browserstack-node-sdk 1.42.7 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/cucumber-sessionDetails.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/playwright-patcher.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -0
  128. package/src/helpers/accessibility-automation/constants.js +1 -1
  129. package/src/helpers/accessibility-automation/helper.js +1 -1
  130. package/src/helpers/accessibility-automation/scripts.js +1 -1
  131. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  132. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  133. package/src/helpers/ats/constants.js +1 -1
  134. package/src/helpers/ats/helper.js +1 -1
  135. package/src/helpers/capsMapping.js +1 -1
  136. package/src/helpers/central-scanner/constants.js +1 -1
  137. package/src/helpers/central-scanner/helpers.js +1 -1
  138. package/src/helpers/classLogger.js +1 -1
  139. package/src/helpers/globals.js +1 -1
  140. package/src/helpers/helper.js +1 -1
  141. package/src/helpers/logger.js +1 -1
  142. package/src/helpers/metadata.js +1 -1
  143. package/src/helpers/patchHelper.js +1 -1
  144. package/src/helpers/patchHelpers.js +1 -1
  145. package/src/helpers/percy/Percy.js +1 -1
  146. package/src/helpers/percy/PercyBinary.js +1 -1
  147. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  148. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  149. package/src/helpers/percy/PercySDK.js +1 -1
  150. package/src/helpers/percy/index.js +1 -1
  151. package/src/helpers/percy/utils.js +1 -1
  152. package/src/helpers/performance/constants.js +1 -1
  153. package/src/helpers/performance/performance-tester.js +1 -1
  154. package/src/helpers/playwright-helper.js +1 -1
  155. package/src/helpers/processHelper.js +1 -1
  156. package/src/helpers/request-spy.js +1 -1
  157. package/src/helpers/setKeepAlive.js +1 -1
  158. package/src/helpers/test-observability/constants.js +1 -1
  159. package/src/helpers/test-observability/error-handler.js +1 -1
  160. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  161. package/src/helpers/test-observability/sessionHandler.js +1 -1
  162. package/src/helpers/test-observability/utils.js +1 -1
  163. package/src/helpers/test-orchestration/constants.js +1 -1
  164. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  165. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  166. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  167. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  168. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  169. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  170. package/src/helpers/testhub/constants.js +1 -1
  171. package/src/helpers/testhub/testhubHandler.js +1 -1
  172. package/src/helpers/testhub/utils.js +1 -1
  173. package/src/helpers/timeoutPromise.js +1 -1
  174. package/src/helpers/utilities.js +1 -1
  175. package/src/helpers/w3cMapping.js +1 -1
  176. package/src/hubAllocationMethods.js +1 -1
  177. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x3544(){const _0x486e73=['PRxxV','ncgQM','statusCode','allGrids','INFO','dpJri','okuki','oGEWy','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','8PPakPa','SjJiB','NmsgM','log','51310WfsLpp','IlITY','bstackAccesskey','grid-id','Failed\x20to\x20list\x20resources!\x20Error:\x20','stack','push','boolean','error','17143698GkxXyK','body','FumCX','67znuhql','clusterName','/packages/cli/get-all-grids','EGeLU','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','username','list-grids-called','argv','uuid','ikAbV','usage','builder','369GyaZJA','3814144wDLKsj','description','unauthorised','https://','15326rAxLIi','table','Odjii','ERROR','bstackUsername','xgflU','grid','oZXVL','Browserstack','grids','Vzirw','../../utils/utilityMethods','type','exit','11851WCMFSf','eoHnx','status','all-grids','CledB','hmtvN','eqKSf','running','1219175XQCdzP','unknown-error','epilogue','options','requestId','readFileSync','1328766xUWLay','password','../../config/constants','queued','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OYUXm','cracd','OElbK','parse','VkNLE','help','GET','1068izlHOu'];a15_0x3544=function(){return _0x486e73;};return a15_0x3544();}function a15_0x2ac6(_0x394067,_0x47e858){const _0x3544fb=a15_0x3544();return a15_0x2ac6=function(_0x2ac6bf,_0x405ea9){_0x2ac6bf=_0x2ac6bf-0x9b;let _0x1a91f6=_0x3544fb[_0x2ac6bf];return _0x1a91f6;},a15_0x2ac6(_0x394067,_0x47e858);}const a15_0x56bc50=a15_0x2ac6;(function(_0x117ce8,_0x1664da){const _0x4a15e2=a15_0x2ac6,_0x45a82b=_0x117ce8();while(!![]){try{const _0x274d7a=-parseInt(_0x4a15e2(0xe3))/0x1*(-parseInt(_0x4a15e2(0xa1))/0x2)+parseInt(_0x4a15e2(0xbd))/0x3+parseInt(_0x4a15e2(0xd3))/0x4*(parseInt(_0x4a15e2(0xb7))/0x5)+parseInt(_0x4a15e2(0xc9))/0x6*(-parseInt(_0x4a15e2(0xaf))/0x7)+parseInt(_0x4a15e2(0x9d))/0x8+parseInt(_0x4a15e2(0x9c))/0x9*(parseInt(_0x4a15e2(0xd7))/0xa)+-parseInt(_0x4a15e2(0xe0))/0xb;if(_0x274d7a===_0x1664da)break;else _0x45a82b['push'](_0x45a82b['shift']());}catch(_0x12a14d){_0x45a82b['push'](_0x45a82b['shift']());}}}(a15_0x3544,0x423b0));const fs=require('fs'),got=require('got'),{table}=require(a15_0x56bc50(0xa2)),{v4:uuidv4}=require(a15_0x56bc50(0xeb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x56bc50(0xbf)),{getCredentialsPath,getAuthHeader}=require(a15_0x56bc50(0xac)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a15_0x56bc50(0xaa),exports['desc']=a15_0x56bc50(0xd2),exports[a15_0x56bc50(0x9b)]=function(_0xceb49a){const _0x3329a1=a15_0x56bc50,_0x494882={};_0x494882['HWZDw']=_0x3329a1(0xe7),_0x494882[_0x3329a1(0xb0)]=_0x3329a1(0xde),_0x494882[_0x3329a1(0xd1)]=_0x3329a1(0xc7);const _0x561d8e=_0x494882,_0x4e3dc3={};_0x4e3dc3[_0x3329a1(0x9e)]=_0x561d8e['HWZDw'],_0x4e3dc3[_0x3329a1(0xad)]=_0x561d8e['eoHnx'];const _0x437b3a={};return _0x437b3a[_0x3329a1(0xb2)]=_0x4e3dc3,_0xceb49a[_0x3329a1(0xed)](HELP_HEADER_MESSAGE['list'][_0x3329a1(0xa7)])[_0x3329a1(0xb9)](HELP_FOOTER_MESSAGE)[_0x3329a1(0xba)](_0x437b3a)[_0x3329a1(0xc7)](_0x561d8e['oGEWy'])[_0x3329a1(0xea)];},exports['handler']=async function(_0x52cc47){const _0x596417=a15_0x56bc50,_0x131f35={'NmsgM':function(_0x506272){return _0x506272();},'OYUXm':_0x596417(0xc1),'EGeLU':function(_0x144a99,_0x47f6f2,_0x19a2dc,_0x1cc1cd,_0xc9ac72,_0x339b46,_0x36d432){return _0x144a99(_0x47f6f2,_0x19a2dc,_0x1cc1cd,_0xc9ac72,_0x339b46,_0x36d432);},'Odjii':_0x596417(0xe9),'cracd':'init-not-called','hmtvN':function(_0x2db5b6){return _0x2db5b6();},'SjJiB':_0x596417(0xc8),'okuki':function(_0x4228ed,_0x599466,_0x2eaf4e){return _0x4228ed(_0x599466,_0x2eaf4e);},'CledB':function(_0x4dbb69,_0x1c76d2,_0x10ff22,_0x1fc48f,_0x501d55,_0x161704,_0xacaf80){return _0x4dbb69(_0x1c76d2,_0x10ff22,_0x1fc48f,_0x501d55,_0x161704,_0xacaf80);},'Vzirw':function(_0x27f73f,_0x50fed8,_0x35e341){return _0x27f73f(_0x50fed8,_0x35e341);},'GOoQQ':function(_0x1462cf,_0xa9111c){return _0x1462cf!==_0xa9111c;},'OElbK':function(_0x561a97,_0x15bb30){return _0x561a97!==_0x15bb30;},'VkNLE':function(_0x433ea2,_0x5d3335){return _0x433ea2===_0x5d3335;},'PRxxV':'\x0aFound\x20the\x20following\x20grids:\x0a','sDjNb':_0x596417(0xda),'ikAbV':'grid-name','dpJri':'status','wdqvW':_0x596417(0xb6),'ncgQM':'queued','oZXVL':'cluster-name','IZGFk':function(_0x3ab47c,_0x520cb0){return _0x3ab47c(_0x520cb0);},'xgflU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FumCX':function(_0x1bceb7,_0x2ff3e4,_0x5da2c7,_0x5db067,_0x31baca,_0x50baec,_0xc5358a){return _0x1bceb7(_0x2ff3e4,_0x5da2c7,_0x5db067,_0x31baca,_0x50baec,_0xc5358a);},'eqKSf':_0x596417(0x9f),'ikabD':'server-error','IlITY':_0x596417(0xb8)};try{global_registry[_0x596417(0xbb)]=_0x131f35[_0x596417(0xd5)](uuidv4);!fs['existsSync'](_0x131f35['NmsgM'](getCredentialsPath))&&(console[_0x596417(0xdf)](_0x131f35[_0x596417(0xc2)]),await _0x131f35['EGeLU'](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xc3)],null,_0x52cc47),process['exit'](0x1));const _0x4c272e=JSON[_0x596417(0xc5)](fs[_0x596417(0xbc)](_0x131f35[_0x596417(0xb4)](getCredentialsPath)));let _0x4e2468=_0x596417(0xa0)+AG_API_URL+'/packages/cli/get-grids';_0x52cc47[_0x596417(0xcd)]&&(_0x4e2468=_0x596417(0xa0)+AG_API_URL+_0x596417(0xe5));const _0x18c468={'method':_0x131f35[_0x596417(0xd4)],'headers':_0x131f35[_0x596417(0xd0)](getAuthHeader,_0x4c272e[_0x596417(0xa9)][_0x596417(0xe8)],_0x4c272e[_0x596417(0xa9)][_0x596417(0xbe)]),'throwHttpErrors':![]};global_registry[_0x596417(0xa5)]=_0x4c272e[_0x596417(0xa9)]['username'],global_registry[_0x596417(0xd9)]=_0x4c272e[_0x596417(0xa9)][_0x596417(0xbe)],_0x131f35['CledB'](sendInstrumentationEvent,_0x52cc47,_0x131f35[_0x596417(0xa3)],messageTypes[_0x596417(0xce)],null,null,_0x52cc47);const _0x1ebffb=await _0x131f35[_0x596417(0xab)](got,_0x4e2468,_0x18c468);if(_0x131f35['GOoQQ'](_0x1ebffb,null)&&_0x131f35[_0x596417(0xc4)](_0x1ebffb,undefined)&&_0x131f35[_0x596417(0xc6)](_0x1ebffb[_0x596417(0xcc)],0xc8)){const _0x156876=JSON[_0x596417(0xc5)](_0x1ebffb[_0x596417(0xe1)]);console[_0x596417(0xd6)](_0x131f35[_0x596417(0xca)]);const _0x4e36ac=[];_0x4e36ac['push']([_0x131f35['sDjNb'],_0x131f35[_0x596417(0xec)],_0x131f35[_0x596417(0xcf)],_0x131f35['wdqvW'],_0x131f35[_0x596417(0xcb)],_0x131f35[_0x596417(0xa8)]]),_0x156876['forEach'](_0x576ad5=>{const _0x13467f=_0x596417;_0x4e36ac[_0x13467f(0xdd)]([_0x576ad5['id'],_0x576ad5['name'],_0x576ad5[_0x13467f(0xb1)],_0x576ad5[_0x13467f(0xb6)],_0x576ad5[_0x13467f(0xc0)],_0x576ad5[_0x13467f(0xe4)]]);}),console[_0x596417(0xd6)](_0x131f35['IZGFk'](table,_0x4e36ac)),process[_0x596417(0xae)](0x0);}_0x131f35['VkNLE'](_0x1ebffb[_0x596417(0xcc)],0x191)&&(console[_0x596417(0xdf)](_0x131f35[_0x596417(0xa6)]),await _0x131f35[_0x596417(0xe2)](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xb5)],null,_0x52cc47),process[_0x596417(0xae)](0x1)),console[_0x596417(0xdf)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x1ebffb)),await _0x131f35[_0x596417(0xe6)](sendInstrumentationEvent,_0x52cc47,_0x131f35[_0x596417(0xa3)],messageTypes[_0x596417(0xa4)],_0x131f35['ikabD'],_0x1ebffb,_0x52cc47),process[_0x596417(0xae)](0x1);}catch(_0x5b52dd){console[_0x596417(0xdf)](_0x596417(0xdb)+_0x5b52dd[_0x596417(0xdc)]),await _0x131f35[_0x596417(0xb3)](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xd8)],_0x5b52dd,_0x52cc47),process[_0x596417(0xae)](0x1);}};
1
+ function a15_0x37ec(_0x39fdfd,_0x1c8f5d){const _0x2ff1e4=a15_0x2ff1();return a15_0x37ec=function(_0x37ec09,_0x16db42){_0x37ec09=_0x37ec09-0x147;let _0x25040a=_0x2ff1e4[_0x37ec09];return _0x25040a;},a15_0x37ec(_0x39fdfd,_0x1c8f5d);}function a15_0x2ff1(){const _0x6d8d2e=['builder','/packages/cli/get-all-grids','server-error','gddfD','queued','sBfBK','unknown-error','DgXgv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/instrumentationUtils','push','../../utils/utilityMethods','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grids','username','EMEGF','grid-name','YgwrT','1951610ugAIcA','desc','https://','uuid','allGrids','name','grid','115BApDJz','running','CGjWQ','error','vUQCo','DsIvx','list-grids-called','../../config/constants','existsSync','argv','type','command','2123114nUDjQH','EXiCc','195032vaHXZx','5201778iUItDN','hpjNV','list','CDCoZ','524570vftQhK','tPlqs','3kTSApH','epilogue','parse','description','handler','66xjUNxS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stack','help','cHaoM','WiOsx','4122672YEzZrg','1481678bqVUre','body','Browserstack','readFileSync','qzUoz','log','stringify','unauthorised','OhFjW','statusCode','boolean','all-grids','ERROR','bstackUsername','Failed\x20to\x20list\x20resources!\x20Error:\x20','ETKkn','cluster-name','password','exit','\x0aFound\x20the\x20following\x20grids:\x0a','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','24MMiVvs','poAPv','GET','clusterName','uklQn','got','9UmgBio','/packages/cli/get-grids'];a15_0x2ff1=function(){return _0x6d8d2e;};return a15_0x2ff1();}const a15_0xbafc42=a15_0x37ec;(function(_0xe363a7,_0x1d78f5){const _0x64f705=a15_0x37ec,_0x577611=_0xe363a7();while(!![]){try{const _0x4085c2=parseInt(_0x64f705(0x181))/0x1+-parseInt(_0x64f705(0x18f))/0x2*(parseInt(_0x64f705(0x183))/0x3)+parseInt(_0x64f705(0x17c))/0x4*(-parseInt(_0x64f705(0x16e))/0x5)+-parseInt(_0x64f705(0x17d))/0x6+-parseInt(_0x64f705(0x17a))/0x7*(-parseInt(_0x64f705(0x14d))/0x8)+-parseInt(_0x64f705(0x153))/0x9*(parseInt(_0x64f705(0x167))/0xa)+parseInt(_0x64f705(0x188))/0xb*(parseInt(_0x64f705(0x18e))/0xc);if(_0x4085c2===_0x1d78f5)break;else _0x577611['push'](_0x577611['shift']());}catch(_0x465a72){_0x577611['push'](_0x577611['shift']());}}}(a15_0x2ff1,0x8b817));const fs=require('fs'),got=require(a15_0xbafc42(0x152)),{table}=require('table'),{v4:uuidv4}=require(a15_0xbafc42(0x16a)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xbafc42(0x175)),{getCredentialsPath,getAuthHeader}=require(a15_0xbafc42(0x160)),{sendInstrumentationEvent}=require(a15_0xbafc42(0x15e));exports[a15_0xbafc42(0x179)]=a15_0xbafc42(0x162),exports[a15_0xbafc42(0x168)]=a15_0xbafc42(0x14c),exports[a15_0xbafc42(0x155)]=function(_0xa2de90){const _0x532bfe=a15_0xbafc42,_0x21a60d={};_0x21a60d['ZEkwj']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x21a60d[_0x532bfe(0x151)]=_0x532bfe(0x199),_0x21a60d[_0x532bfe(0x172)]=_0x532bfe(0x18b);const _0x471f72=_0x21a60d,_0x4dffdf={};_0x4dffdf[_0x532bfe(0x186)]=_0x471f72['ZEkwj'],_0x4dffdf[_0x532bfe(0x178)]=_0x471f72[_0x532bfe(0x151)];const _0x2ecbe8={};return _0x2ecbe8[_0x532bfe(0x19a)]=_0x4dffdf,_0xa2de90['usage'](HELP_HEADER_MESSAGE[_0x532bfe(0x17f)][_0x532bfe(0x16d)])[_0x532bfe(0x184)](HELP_FOOTER_MESSAGE)['options'](_0x2ecbe8)[_0x532bfe(0x18b)](_0x471f72[_0x532bfe(0x172)])[_0x532bfe(0x177)];},exports[a15_0xbafc42(0x187)]=async function(_0x44e458){const _0x1deccd=a15_0xbafc42,_0x28f23d={'WiOsx':function(_0x56e646){return _0x56e646();},'gddfD':function(_0x9b9773){return _0x9b9773();},'ruYbV':_0x1deccd(0x161),'EXiCc':function(_0x43e502,_0x42de44,_0x4ec611,_0x509173,_0x3004a5,_0x5a1469,_0x248ef3){return _0x43e502(_0x42de44,_0x4ec611,_0x509173,_0x3004a5,_0x5a1469,_0x248ef3);},'DgXgv':_0x1deccd(0x174),'poAPv':'init-not-called','hpjNV':_0x1deccd(0x14f),'ETKkn':function(_0x10e2a2,_0x5c12fa,_0xc5eedb){return _0x10e2a2(_0x5c12fa,_0xc5eedb);},'OhFjW':function(_0x149a96,_0x45f920,_0x579c46,_0x3189c3,_0x1b9446,_0x155ba2,_0x273a65){return _0x149a96(_0x45f920,_0x579c46,_0x3189c3,_0x1b9446,_0x155ba2,_0x273a65);},'mAHTo':function(_0x17f18f,_0x10d9b0,_0x723a51){return _0x17f18f(_0x10d9b0,_0x723a51);},'DsIvx':function(_0x300f6c,_0x3992f8){return _0x300f6c!==_0x3992f8;},'sBfBK':function(_0x5ab3fe,_0x56846f){return _0x5ab3fe===_0x56846f;},'xjuKa':_0x1deccd(0x14b),'qzUoz':'grid-id','YgwrT':_0x1deccd(0x165),'cHaoM':'status','CDCoZ':_0x1deccd(0x16f),'NjLYG':_0x1deccd(0x159),'tPlqs':_0x1deccd(0x148),'gLUQi':function(_0x11f42e,_0x452c1c){return _0x11f42e(_0x452c1c);},'RwVpd':function(_0x19d50f,_0x1bc170){return _0x19d50f===_0x1bc170;},'CGjWQ':_0x1deccd(0x15d),'whovb':_0x1deccd(0x196),'UVYMQ':function(_0x489caf,_0x6c1515,_0x1296fa,_0x4a99c4,_0x4b2115,_0x20e395,_0x2c6ea8){return _0x489caf(_0x6c1515,_0x1296fa,_0x4a99c4,_0x4b2115,_0x20e395,_0x2c6ea8);},'NhCtt':_0x1deccd(0x157),'EMEGF':_0x1deccd(0x15b)};try{global_registry['requestId']=_0x28f23d[_0x1deccd(0x18d)](uuidv4);!fs[_0x1deccd(0x176)](_0x28f23d[_0x1deccd(0x158)](getCredentialsPath))&&(console[_0x1deccd(0x171)](_0x28f23d['ruYbV']),await _0x28f23d[_0x1deccd(0x17b)](sendInstrumentationEvent,_0x44e458,_0x28f23d[_0x1deccd(0x15c)],messageTypes[_0x1deccd(0x19b)],_0x28f23d[_0x1deccd(0x14e)],null,_0x44e458),process[_0x1deccd(0x14a)](0x1));const _0x478462=JSON[_0x1deccd(0x185)](fs[_0x1deccd(0x192)](_0x28f23d[_0x1deccd(0x18d)](getCredentialsPath)));let _0x1449e1=_0x1deccd(0x169)+AG_API_URL+_0x1deccd(0x154);_0x44e458[_0x1deccd(0x16b)]&&(_0x1449e1=_0x1deccd(0x169)+AG_API_URL+_0x1deccd(0x156));const _0x295266={'method':_0x28f23d[_0x1deccd(0x17e)],'headers':_0x28f23d[_0x1deccd(0x147)](getAuthHeader,_0x478462[_0x1deccd(0x191)][_0x1deccd(0x163)],_0x478462[_0x1deccd(0x191)][_0x1deccd(0x149)]),'throwHttpErrors':![]};global_registry[_0x1deccd(0x19c)]=_0x478462[_0x1deccd(0x191)][_0x1deccd(0x163)],global_registry['bstackAccesskey']=_0x478462[_0x1deccd(0x191)][_0x1deccd(0x149)],_0x28f23d[_0x1deccd(0x197)](sendInstrumentationEvent,_0x44e458,_0x28f23d['DgXgv'],messageTypes['INFO'],null,null,_0x44e458);const _0x37e0a7=await _0x28f23d['mAHTo'](got,_0x1449e1,_0x295266);if(_0x28f23d[_0x1deccd(0x173)](_0x37e0a7,null)&&_0x28f23d[_0x1deccd(0x173)](_0x37e0a7,undefined)&&_0x28f23d[_0x1deccd(0x15a)](_0x37e0a7[_0x1deccd(0x198)],0xc8)){const _0x3c9741=JSON[_0x1deccd(0x185)](_0x37e0a7[_0x1deccd(0x190)]);console[_0x1deccd(0x194)](_0x28f23d['xjuKa']);const _0x13618b=[];_0x13618b[_0x1deccd(0x15f)]([_0x28f23d[_0x1deccd(0x193)],_0x28f23d[_0x1deccd(0x166)],_0x28f23d[_0x1deccd(0x18c)],_0x28f23d[_0x1deccd(0x180)],_0x28f23d['NjLYG'],_0x28f23d[_0x1deccd(0x182)]]),_0x3c9741['forEach'](_0x1f336d=>{const _0x5d6d81=_0x1deccd;_0x13618b[_0x5d6d81(0x15f)]([_0x1f336d['id'],_0x1f336d[_0x5d6d81(0x16c)],_0x1f336d['status'],_0x1f336d['running'],_0x1f336d[_0x5d6d81(0x159)],_0x1f336d[_0x5d6d81(0x150)]]);}),console[_0x1deccd(0x194)](_0x28f23d['gLUQi'](table,_0x13618b)),process[_0x1deccd(0x14a)](0x0);}_0x28f23d['RwVpd'](_0x37e0a7['statusCode'],0x191)&&(console[_0x1deccd(0x171)](_0x28f23d[_0x1deccd(0x170)]),await _0x28f23d['EXiCc'](sendInstrumentationEvent,_0x44e458,_0x28f23d[_0x1deccd(0x15c)],messageTypes[_0x1deccd(0x19b)],_0x28f23d['whovb'],null,_0x44e458),process[_0x1deccd(0x14a)](0x1)),console[_0x1deccd(0x171)](_0x1deccd(0x189)+JSON[_0x1deccd(0x195)](_0x37e0a7)),await _0x28f23d['UVYMQ'](sendInstrumentationEvent,_0x44e458,_0x28f23d[_0x1deccd(0x15c)],messageTypes[_0x1deccd(0x19b)],_0x28f23d['NhCtt'],_0x37e0a7,_0x44e458),process['exit'](0x1);}catch(_0x153c6f){console[_0x1deccd(0x171)](_0x1deccd(0x19d)+_0x153c6f[_0x1deccd(0x18a)]),await _0x28f23d[_0x1deccd(0x197)](sendInstrumentationEvent,_0x44e458,_0x28f23d[_0x1deccd(0x15c)],messageTypes[_0x1deccd(0x19b)],_0x28f23d[_0x1deccd(0x164)],_0x153c6f,_0x44e458),process[_0x1deccd(0x14a)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x4c1995=a16_0x20be;(function(_0x1542ea,_0x4a5076){const _0x7c2d1b=a16_0x20be,_0x4bba5b=_0x1542ea();while(!![]){try{const _0x2ec6ea=parseInt(_0x7c2d1b(0x84))/0x1+-parseInt(_0x7c2d1b(0x7c))/0x2+-parseInt(_0x7c2d1b(0x92))/0x3+-parseInt(_0x7c2d1b(0x81))/0x4*(-parseInt(_0x7c2d1b(0x89))/0x5)+parseInt(_0x7c2d1b(0x8f))/0x6*(parseInt(_0x7c2d1b(0x86))/0x7)+parseInt(_0x7c2d1b(0x7e))/0x8+parseInt(_0x7c2d1b(0x80))/0x9;if(_0x2ec6ea===_0x4a5076)break;else _0x4bba5b['push'](_0x4bba5b['shift']());}catch(_0xf3081f){_0x4bba5b['push'](_0x4bba5b['shift']());}}}(a16_0x3415,0x44778));function a16_0x20be(_0x33d84e,_0x464fde){const _0x3415c0=a16_0x3415();return a16_0x20be=function(_0x20be47,_0x1f34bc){_0x20be47=_0x20be47-0x7c;let _0x2943fb=_0x3415c0[_0x20be47];return _0x2943fb;},a16_0x20be(_0x33d84e,_0x464fde);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x3415(){const _0x23ea43=['demandCommand','epilogue','commandDir','handler','pre-check','1362okjFHQ','FsSRW','ybDtL','1204986jASvgY','strict','recommendCommands','1083650zPxNju','command','2373032HGaUOb','precheck_commands','1112103bURNJj','4hBTobQ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','402843OXpsnm','usage','5194utxDKJ','builder','pre_check','1162270HogOVh'];a16_0x3415=function(){return _0x23ea43;};return a16_0x3415();}exports[a16_0x4c1995(0x7d)]=a16_0x4c1995(0x8e),exports['desc']=a16_0x4c1995(0x82),exports[a16_0x4c1995(0x87)]=function(_0x594e34){const _0x5db112=a16_0x4c1995,_0x23f521={};_0x23f521[_0x5db112(0x91)]=_0x5db112(0x7f),_0x23f521[_0x5db112(0x90)]=_0x5db112(0x83);const _0x4110a9=_0x23f521;return _0x594e34[_0x5db112(0x85)](HELP_HEADER_MESSAGE[_0x5db112(0x88)])[_0x5db112(0x8b)](HELP_FOOTER_MESSAGE)[_0x5db112(0x8c)](_0x4110a9[_0x5db112(0x91)])[_0x5db112(0x8a)]()[_0x5db112(0x94)]()[_0x5db112(0x93)]()[_0x5db112(0x83)](_0x4110a9[_0x5db112(0x90)]);},exports[a16_0x4c1995(0x8d)]=function(_0x1c3d2b){};
1
+ function a16_0x39c2(_0x2b4016,_0x10b7b7){const _0x29a1fa=a16_0x29a1();return a16_0x39c2=function(_0x39c296,_0x54bde4){_0x39c296=_0x39c296-0x18f;let _0x1f7c4a=_0x29a1fa[_0x39c296];return _0x1f7c4a;},a16_0x39c2(_0x2b4016,_0x10b7b7);}const a16_0x23bb7c=a16_0x39c2;(function(_0x3890f1,_0x268ead){const _0xa9a329=a16_0x39c2,_0xa4907c=_0x3890f1();while(!![]){try{const _0x2aefd8=-parseInt(_0xa9a329(0x1a1))/0x1*(parseInt(_0xa9a329(0x198))/0x2)+-parseInt(_0xa9a329(0x193))/0x3+-parseInt(_0xa9a329(0x1a6))/0x4*(parseInt(_0xa9a329(0x19c))/0x5)+parseInt(_0xa9a329(0x192))/0x6*(parseInt(_0xa9a329(0x190))/0x7)+-parseInt(_0xa9a329(0x19b))/0x8*(parseInt(_0xa9a329(0x1ab))/0x9)+parseInt(_0xa9a329(0x194))/0xa*(-parseInt(_0xa9a329(0x19f))/0xb)+parseInt(_0xa9a329(0x1a0))/0xc*(parseInt(_0xa9a329(0x1a4))/0xd);if(_0x2aefd8===_0x268ead)break;else _0xa4907c['push'](_0xa4907c['shift']());}catch(_0x55508c){_0xa4907c['push'](_0xa4907c['shift']());}}}(a16_0x29a1,0x8b963));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x23bb7c(0x19d));function a16_0x29a1(){const _0x3d7279=['39504127yBBHwT','pre-check','7852vltKbW','help','commandDir','precheck_commands','demandCommand','54mCBvHj','pre_check','7tjDXVr','recommendCommands','4436970wRfyHZ','1325586TYRElE','1730vPHJRl','NBzPn','strict','handler','70yRIRQS','builder','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','950952qTyNOJ','2395qQilxg','../config/constants','epilogue','44693XtHsGJ','12WQLAmd','11665oUKQLb','command','usage'];a16_0x29a1=function(){return _0x3d7279;};return a16_0x29a1();}exports[a16_0x23bb7c(0x1a2)]=a16_0x23bb7c(0x1a5),exports['desc']=a16_0x23bb7c(0x19a),exports[a16_0x23bb7c(0x199)]=function(_0x40323f){const _0x4c89f8=a16_0x23bb7c,_0x562a7d={};_0x562a7d['lsjnD']=_0x4c89f8(0x1a9),_0x562a7d[_0x4c89f8(0x195)]=_0x4c89f8(0x1a7);const _0x5a2045=_0x562a7d;return _0x40323f[_0x4c89f8(0x1a3)](HELP_HEADER_MESSAGE[_0x4c89f8(0x18f)])[_0x4c89f8(0x19e)](HELP_FOOTER_MESSAGE)[_0x4c89f8(0x1a8)](_0x5a2045['lsjnD'])[_0x4c89f8(0x1aa)]()[_0x4c89f8(0x191)]()[_0x4c89f8(0x196)]()['help'](_0x5a2045[_0x4c89f8(0x195)]);},exports[a16_0x23bb7c(0x197)]=function(_0x46fbc2){};
@@ -1 +1 @@
1
- const a17_0x3b23b4=a17_0x4f2e;(function(_0x5cc7a4,_0x4d1503){const _0x1c72ba=a17_0x4f2e,_0x1413d4=_0x5cc7a4();while(!![]){try{const _0x2dd175=parseInt(_0x1c72ba(0x237))/0x1+-parseInt(_0x1c72ba(0x207))/0x2+-parseInt(_0x1c72ba(0x2aa))/0x3*(parseInt(_0x1c72ba(0x1cc))/0x4)+parseInt(_0x1c72ba(0x1dc))/0x5*(parseInt(_0x1c72ba(0x247))/0x6)+parseInt(_0x1c72ba(0x1ce))/0x7*(-parseInt(_0x1c72ba(0x1f6))/0x8)+-parseInt(_0x1c72ba(0x26b))/0x9*(-parseInt(_0x1c72ba(0x20a))/0xa)+parseInt(_0x1c72ba(0x22a))/0xb;if(_0x2dd175===_0x4d1503)break;else _0x1413d4['push'](_0x1413d4['shift']());}catch(_0x1998ed){_0x1413d4['push'](_0x1413d4['shift']());}}}(a17_0x5a37,0x246c0));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3b23b4(0x2ac)),{v4:uuidv4}=require(a17_0x3b23b4(0x262)),ReconnectingWebSocket=require(a17_0x3b23b4(0x212)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3b23b4(0x1c8)),{logger}=require(a17_0x3b23b4(0x1b5)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x3b23b4(0x1f9)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x3b23b4(0x238)),{sendInstrumentationEvent}=require(a17_0x3b23b4(0x1b2));function a17_0x5a37(){const _0x245faf=['Yqqhy','UqqBU','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','FaxkM','N/A','YypAh','cedbw','/packages/cli/get-all-grid-profiles','\x20region\x20-\x20','DoUSf','PCcLr','MEsdo','1644bAIKLU','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','IDULv','message','dozFS','OXSEe','WebSocket','===\x20Precheck\x20Report\x20-\x20','oEaLW','npHta','FGyrY','readFileSync','ELoVu','raQGU','ZLLlc','Whitelisted\x20browserstack','<UsernamePlaceholder>','User\x20Access','ditbQ','Missing\x20required\x20arguments:\x20','Failure','iEEBC','jquqf','grid','forEach','ETTjo','lzMNE','uuid','status','getUTCMinutes','help','epilogue','`\x20,error\x20:\x20','aRFsr','wjBhA','ROsGz','31446YCfULg','stringify','odXMq','pSTXw','LOG','stack\x20trace\x20','cloudProvider','authHeader','zxJfJ','description','VWQWe','grid\x20profile\x20flow\x20','FHwTG','buZya','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','oPDNK','KorlP','\x20\x20Message:\x20','JSKhF','tOUyW','join','accessResp','MxsFN','VMpwJ','gkGEn','wmEws','dNYDs','exit','WXcIA','push','DrKNg','.txt','tztQl','AQeMt','getUTCHours','code','Browserstack','getUTCFullYear','command','nrbaf','AHkQn','qLHZz','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region',']\x20status\x20:\x20','BCKEZ','connectionTimeout','UdEih','xCQor','header','qxzZP','XeNKN','hBxlo','IcSKc','\x20data\x20:\x20','WOZLs','bstackUsername','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','options','Message:\x20','oXTBX','bTUao','Opfrh','headers','6iUDoXH','jovYx','got','SQGlS','\x20===\x0a\x0a','CXjMw','debug','gylTh','pSWLG','KYytK','tDAzA','includes','../../utils/instrumentationUtils','clusterRegion','Report\x20saved\x20in\x20','../../config/logger','response','`\x20already\x20exists','body','bstackAccesskey','ivzdH','grid-profile','IaeYC','credential-not-found','unable\x20to\x20verify\x20if\x20cluster\x20`','usage','jVxfZ','init','GET','Setting\x20cloud\x20provider\x20as\x20','\x20error\x20:\x20','length','ERROR','ZQsHV','../../utils/utilityMethods','YFaLs','IowOS','msZEz','506392wYFztf','vlnPk','1112237KnwjKb','TLSv1_2_client_method','delay','cloud-provider','QDBdu','\x20\x20Stack:\x20','LXdpJ','Invalid\x20input.\x20grid\x20profiles:\x20','Status:\x20','gLFKd','cluster-name','ukNaj','bQscv','pre-check-failed','2050QoFmGm','is\x20already\x20present','string','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','tpmel','toLowerCase','oJxjX','pre_check','type','ozNBA','cloud-provider-not-supported','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','Success','gridProfile','eEvNb','rQpnj','replace','split','mlsza','hGDDq','FCRPN','IdJYj','JrMDz','wJQrl','handler','error\x20stack\x20:\x20','8tQATkI','thycr','isCliToolInstalled','../../config/constants','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x20\x20Code:\x20','ySQOW','Grid\x20profile\x20fetched\x20for\x20pre-check','dXwky','getUTCDate','ZIvxH','getUTCMonth','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WIjPj','SSL\x20Configured','iJqen','468652VeahEY','password','JMynb','340DjCJDF','utf-8','VEVXT','Cluster\x20`','parse','region','XTfSt','yXzPS','reconnecting-websocket','KwqWM','stack','Error\x20Details:\x0a','ZWWER','BaNOs','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','2|4|3|1|0','method','Cluster\x20','CLOUD_PROVIDER','Pre-check\x20running\x20for\x20Cloud\x20-\x20','tLkPP','clusterName','name','YqVNl','vARYS','twzBv','toolInstalledResp','vYPSk','data','checkAccess','Failed\x20in\x20pre-check!\x20Error:\x20','sendEventToBackend','4142281ofVPOd','pre-check','isvIy','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','isClusterPresent','nylzK','rTxav','fymVV','error','LivPY','info','YeOSd','will\x20be\x20created','187890ZGoRrV','../../utils/webSocketUtils','log/report_','isTls1_2_SUPPORTED'];a17_0x5a37=function(){return _0x245faf;};return a17_0x5a37();}exports[a17_0x3b23b4(0x291)]=a17_0x3b23b4(0x25e),exports[a17_0x3b23b4(0x1fa)]=a17_0x3b23b4(0x279),exports['builder']=function(_0x46bfbb){const _0x31be11=a17_0x3b23b4,_0x942fc={};_0x942fc['dozFS']=_0x31be11(0x23d),_0x942fc['wJQrl']=_0x31be11(0x1de),_0x942fc[_0x31be11(0x26d)]=_0x31be11(0x2a3),_0x942fc[_0x31be11(0x28c)]=_0x31be11(0x248),_0x942fc[_0x31be11(0x2af)]=_0x31be11(0x203),_0x942fc[_0x31be11(0x246)]=_0x31be11(0x265);const _0x282ea2=_0x942fc,_0x1d3849={};_0x1d3849[_0x31be11(0x274)]=_0x282ea2[_0x31be11(0x24b)],_0x1d3849[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x5b6bb9={};_0x5b6bb9['description']=_0x282ea2[_0x31be11(0x26d)],_0x5b6bb9[_0x31be11(0x1e4)]=_0x282ea2['wJQrl'];const _0x3e0f4a={};_0x3e0f4a[_0x31be11(0x274)]=_0x282ea2['AQeMt'],_0x3e0f4a[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x1091f7={};_0x1091f7[_0x31be11(0x274)]=_0x282ea2['CXjMw'],_0x1091f7['type']=_0x282ea2[_0x31be11(0x1f3)];const _0x36eb4f={};return _0x36eb4f[_0x31be11(0x1d8)]=_0x1d3849,_0x36eb4f[_0x31be11(0x1d1)]=_0x5b6bb9,_0x36eb4f[_0x31be11(0x20f)]=_0x3e0f4a,_0x36eb4f[_0x31be11(0x1bb)]=_0x1091f7,_0x46bfbb[_0x31be11(0x1bf)](HELP_HEADER_MESSAGE[_0x31be11(0x1e3)])[_0x31be11(0x266)](HELP_FOOTER_MESSAGE)[_0x31be11(0x2a4)](_0x36eb4f)[_0x31be11(0x265)](_0x282ea2[_0x31be11(0x246)])['argv'];};async function inputValidation(_0x5c791e,_0x5aebcf){const _0x1556ce=a17_0x3b23b4,_0x4c8df1={'ROsGz':_0x1556ce(0x232),'Ugqrz':_0x1556ce(0x23d),'zxJfJ':'string','oPDNK':_0x1556ce(0x2a3),'UqqBU':_0x1556ce(0x248),'DoUSf':_0x1556ce(0x203),'NBDCq':_0x1556ce(0x265),'IaeYC':_0x1556ce(0x1d8),'VMpwJ':_0x1556ce(0x295),'YqVNl':function(_0x2a0e8d,_0x4b21b6){return _0x2a0e8d+_0x4b21b6;},'twzBv':_0x1556ce(0x1e8),'aQKVB':_0x1556ce(0x25b),'msZEz':function(_0x465296,_0x2ce77d){return _0x465296||_0x2ce77d;},'bQscv':'N/A','IcSKc':_0x1556ce(0x215),'itnRN':_0x1556ce(0x1dd),'dNYDs':_0x1556ce(0x236),'jquqf':_0x1556ce(0x1d1),'aRFsr':function(_0x34ee35,_0x58126e){return _0x34ee35!==_0x58126e;},'JikjW':_0x1556ce(0x1f7),'UvXQb':_0x1556ce(0x209),'dXwky':function(_0x56479b,_0x52a6c8){return _0x56479b===_0x52a6c8;},'vARYS':'Uemab','KYytK':function(_0x389fbb,_0x24e735){return _0x389fbb!==_0x24e735;},'tpmel':_0x1556ce(0x261),'wjBhA':_0x1556ce(0x22f),'wmEws':_0x1556ce(0x29c),'YeOSd':_0x1556ce(0x297),'ksGVY':_0x1556ce(0x23b),'riDmp':_0x1556ce(0x253),'ZWWER':_0x1556ce(0x20f),'ukNaj':function(_0x5b4955,_0x208f12){return _0x5b4955>_0x208f12;},'ditbQ':_0x1556ce(0x275),'WXcIA':_0x1556ce(0x245),'WOZLs':function(_0x12f49e,_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020){return _0x12f49e(_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020);},'FHwTG':'pre-check-grid-called','FCRPN':'pre-check-cluster-args-not-passed','xzGOJ':function(_0x5ed734,_0x6a2f2f){return _0x5ed734!==_0x6a2f2f;},'KorlP':_0x1556ce(0x2b4),'ZIvxH':_0x1556ce(0x22d),'pNDLo':_0x1556ce(0x1e6),'ivzdH':function(_0x573bbd,_0x168946){return _0x573bbd!==_0x168946;},'UdEih':'nfXXy','eEvNb':function(_0x17308f,_0x2eeae0){return _0x17308f===_0x2eeae0;},'lkKYF':_0x1556ce(0x23e),'iEEBC':_0x1556ce(0x24f),'oXTBX':_0x1556ce(0x1c2),'AHkQn':function(_0x37f311,_0x27ecfc,_0x3c7ebe){return _0x37f311(_0x27ecfc,_0x3c7ebe);},'OXSEe':function(_0x9ff1f1,_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb){return _0x9ff1f1(_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb);},'jovYx':_0x1556ce(0x22b),'KpYLp':_0x1556ce(0x1bb),'elfmu':_0x1556ce(0x254),'ZQWJc':function(_0x949141,_0x5bb083){return _0x949141(_0x5bb083);},'hGDDq':function(_0x4fd96e,_0xa45690){return _0x4fd96e!==_0xa45690;},'vYPSk':_0x1556ce(0x231),'JSKhF':'pre-check-grid-profile-empty','WIjPj':'Jvajr','ZLLlc':'QVnGK','qLHZz':_0x1556ce(0x28b),'bTUao':_0x1556ce(0x1fe),'KwqWM':_0x1556ce(0x1eb),'YFaLs':_0x1556ce(0x21e),'ETTjo':function(_0x777856,_0x2ba190){return _0x777856===_0x2ba190;},'isvIy':_0x1556ce(0x210)};let _0x11e858;try{if(_0x4c8df1[_0x1556ce(0x268)](_0x4c8df1['JikjW'],_0x4c8df1['UvXQb'])){if(_0x5c791e['clusterName']||_0x5c791e[_0x1556ce(0x271)]||_0x5c791e[_0x1556ce(0x20f)]){if(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1[_0x1556ce(0x222)],_0x4c8df1[_0x1556ce(0x222)])){const _0xaa35b8=[];!_0x5c791e[_0x1556ce(0x21f)]&&(_0x4c8df1['KYytK'](_0x4c8df1[_0x1556ce(0x1e0)],_0x4c8df1[_0x1556ce(0x269)])?_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):_0x4d64f3['info'](_0x1556ce(0x20d)+_0x573a20[_0x1556ce(0x21f)]+_0x1556ce(0x1b7)));;if(!_0x5c791e['cloudProvider']){if(_0x4c8df1['dXwky'](_0x4c8df1[_0x1556ce(0x284)],_0x4c8df1[_0x1556ce(0x235)])){const _0x18ca36={};_0x18ca36[_0x1556ce(0x1e4)]=_0x51cf20[_0x1556ce(0x26f)],_0x18ca36[_0x1556ce(0x24a)]=_0x3bc148,_0x25f7a9[_0x1556ce(0x229)](_0x414166,_0x18ca36,_0x4c8df1[_0x1556ce(0x26a)],!![]);}else _0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x25d)]);};!_0x5c791e[_0x1556ce(0x20f)]&&(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1['ksGVY'],_0x4c8df1['riDmp'])?(_0x2aff6e[_0x1556ce(0x234)](_0x1556ce(0x1c3)+_0x343376['CLOUD_PROVIDER']+'\x20'),_0x507fe5['cloudProvider']=_0x582c2b[_0x1556ce(0x21c)]):_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x216)]));;if(_0x4c8df1[_0x1556ce(0x1d9)](_0xaa35b8[_0x1556ce(0x1c5)],0x0)){if(_0x4c8df1[_0x1556ce(0x2b3)](_0x4c8df1[_0x1556ce(0x259)],_0x4c8df1[_0x1556ce(0x287)]))_0x11e858=_0x1556ce(0x25a)+_0xaa35b8[_0x1556ce(0x27f)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x1f0)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1);else{const _0x8b7acb={};_0x8b7acb[_0x1556ce(0x274)]=_0x4c8df1['Ugqrz'],_0x8b7acb[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x5d21f5={};_0x5d21f5[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x27a)],_0x5d21f5[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x3517ed={};_0x3517ed[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x23c)],_0x3517ed[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0x19c15d={};_0x19c15d[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x244)],_0x19c15d[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0xf5b738={};return _0xf5b738[_0x1556ce(0x1d8)]=_0x8b7acb,_0xf5b738[_0x1556ce(0x1d1)]=_0x5d21f5,_0xf5b738[_0x1556ce(0x20f)]=_0x3517ed,_0xf5b738[_0x1556ce(0x1bb)]=_0x19c15d,_0x3c246e[_0x1556ce(0x1bf)](_0x11e770['pre_check'])[_0x1556ce(0x266)](_0x1163df)[_0x1556ce(0x2a4)](_0xf5b738)['help'](_0x4c8df1['NBDCq'])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1556ce(0x1b1)](_0x5c791e[_0x1556ce(0x271)][_0x1556ce(0x1e1)]())&&(_0x4c8df1['xzGOJ'](_0x4c8df1[_0x1556ce(0x27b)],_0x4c8df1[_0x1556ce(0x27b)])?_0x202fb5[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):(_0x11e858=_0x4c8df1[_0x1556ce(0x201)],await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),!_0x5c791e[_0x1556ce(0x271)]&&(_0x4c8df1['ivzdH'](_0x4c8df1[_0x1556ce(0x299)],_0x4c8df1[_0x1556ce(0x299)])?_0x1472e9[_0x1556ce(0x232)](_0x1556ce(0x1f5)+_0x45e7bd[_0x1556ce(0x232)]['stack']):(logger[_0x1556ce(0x234)](_0x1556ce(0x1c3)+DEFAULT_CLUSTER_DETAILS[_0x1556ce(0x21c)]+'\x20'),_0x5c791e[_0x1556ce(0x271)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x1556ce(0x21f)]=_0x5c791e['clusterName'],global_registry[_0x1556ce(0x271)]=_0x5c791e[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x5c791e['region'];}else _0x1ebae2['info']('['+_0x9eba50+']\x20status\x20:\x20'+_0x2e1b62[_0x1556ce(0x263)]+_0x1556ce(0x2a0)+_0x89e54d[_0x1556ce(0x226)]+'\x20error\x20:\x20'+_0x5adc42['error']),_0x54ce21[_0x1556ce(0x232)]&&_0x1858c9[_0x1556ce(0x232)]('error\x20stack\x20:\x20'+_0x57294d[_0x1556ce(0x232)][_0x1556ce(0x214)]);}else{if(_0x5c791e['gridProfile']){if(_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1['lkKYF'],_0x4c8df1[_0x1556ce(0x25c)]))_0x4b7aab[_0x1556ce(0x232)](_0x4c8df1[_0x1556ce(0x282)]),_0x3502a5[_0x1556ce(0x286)](0x1);else{global_registry[_0x1556ce(0x1e9)]=_0x5c791e[_0x1556ce(0x1e9)],logger[_0x1556ce(0x2b0)](_0x1556ce(0x276)+_0x5c791e[_0x1556ce(0x1e9)]);const _0x2112d7='https://'+AG_API_URL+_0x1556ce(0x242),_0x35ea78={};_0x35ea78[_0x1556ce(0x21a)]=_0x4c8df1[_0x1556ce(0x2a6)],_0x35ea78[_0x1556ce(0x2a9)]=global_registry['authHeader'],_0x35ea78['throwHttpErrors']=![];const _0x1f6b0e=_0x35ea78,_0x2d1def=await _0x4c8df1[_0x1556ce(0x293)](got,_0x2112d7,_0x1f6b0e),_0x61d6cf=await _0x4c8df1[_0x1556ce(0x24c)](responseValidation,_0x2d1def,_0x4c8df1[_0x1556ce(0x2ab)],_0x4c8df1['KpYLp'],_0x5c791e,_0x5aebcf);let _0x46b3ea={};if(_0x4c8df1[_0x1556ce(0x1ea)](_0x61d6cf,0xc8)){if(_0x4c8df1[_0x1556ce(0x1ba)](_0x4c8df1['elfmu'],_0x4c8df1['elfmu'])){const {header:_0x40111c,response:_0x5087db}=_0x1b5130,{status:_0x357d5f,data:_0x53a1ed,error:_0x2e407c}=_0x5087db;_0xf00a70+=_0x40111c+'\x20#'+_0x4c8df1[_0x1556ce(0x221)](_0x737f63,0x1)+'\x0a',_0x38c65d+=_0x1556ce(0x1d6)+(_0x357d5f?_0x4c8df1[_0x1556ce(0x223)]:_0x4c8df1['aQKVB'])+'\x0a',_0x52eeb5+=_0x1556ce(0x2a5)+_0x4c8df1[_0x1556ce(0x1cb)](_0x53a1ed,_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x2e407c&&(_0x426533+=_0x4c8df1[_0x1556ce(0x29f)],_0x18e08b+=_0x1556ce(0x27c)+(_0x2e407c[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0xfe6d6d+=_0x1556ce(0x1fc)+(_0x2e407c[_0x1556ce(0x28e)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x10a204+=_0x1556ce(0x1d3)+(_0x2e407c['stack']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a'),_0xfe2560+='\x0a\x0a';}else{const _0x46bfc8=JSON[_0x1556ce(0x20e)](_0x2d1def[_0x1556ce(0x1b8)]),_0x5d3e61=_0x46bfc8['find'](_0x59bb50=>_0x59bb50[_0x1556ce(0x220)]===_0x5c791e[_0x1556ce(0x1e9)])||null;_0x4c8df1['ZQWJc'](isUndefined,_0x5d3e61)?_0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1['vYPSk'],_0x4c8df1[_0x1556ce(0x225)])?_0x361e43+=_0x1556ce(0x21b)+_0x52d505[_0x1556ce(0x21f)]+'\x20'+(_0x5796b9?_0x4c8df1['itnRN']:_0x4c8df1[_0x1556ce(0x285)])+'\x0a\x0a':(_0x11e858=_0x1556ce(0x1d5)+_0x5c791e[_0x1556ce(0x1e9)]+_0x1556ce(0x1e7),await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x27d)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1)):_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1[_0x1556ce(0x204)],_0x4c8df1[_0x1556ce(0x255)])?_0x29dfdb+=_0x1556ce(0x21b)+_0x2262c2[_0x1556ce(0x21f)]+_0x1556ce(0x1df):_0x46b3ea=_0x5d3e61;}}else _0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1[_0x1556ce(0x294)],_0x4c8df1[_0x1556ce(0x294)])?(_0x26f256+=_0x4c8df1[_0x1556ce(0x29f)],_0x2fb7d7+=_0x1556ce(0x27c)+(_0x42786b[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x5b6d52+=_0x1556ce(0x1fc)+(_0x24e16b['code']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x17f2d8+=_0x1556ce(0x1d3)+(_0x5378cd[_0x1556ce(0x214)]||_0x4c8df1['bQscv'])+'\x0a'):process[_0x1556ce(0x286)](0x1);const _0x1da674={};_0x1da674[_0x1556ce(0x1e4)]=WS_EVENTS[_0x1556ce(0x26f)],_0x1da674[_0x1556ce(0x24a)]=_0x4c8df1[_0x1556ce(0x2a7)],webSocketUtils[_0x1556ce(0x229)](_0x5aebcf,_0x1da674),global_registry[_0x1556ce(0x271)]=_0x46b3ea[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x46b3ea[_0x1556ce(0x20f)],global_registry[_0x1556ce(0x21f)]=_0x46b3ea[_0x1556ce(0x21f)];}}else _0x4c8df1['hGDDq'](_0x4c8df1[_0x1556ce(0x213)],_0x4c8df1[_0x1556ce(0x1c9)])?(logger[_0x1556ce(0x232)](_0x4c8df1['VMpwJ']),process['exit'](0x1)):_0x10ad27=_0x1c4d6b;}}else _0x4b3146[_0x1556ce(0x286)](0x1);}catch(_0x3f4633){_0x4c8df1[_0x1556ce(0x260)](_0x4c8df1[_0x1556ce(0x22c)],_0x4c8df1[_0x1556ce(0x22c)])?(_0x11e858=_0x1556ce(0x218)+_0x3f4633+':\x20'+_0x3f4633[_0x1556ce(0x214)],logger[_0x1556ce(0x232)](_0x11e858),await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),process[_0x1556ce(0x286)](0x1)):_0x354fe0[_0x1556ce(0x288)](_0x4c8df1['jquqf']);}}function printResponse(_0x5db037,_0x3cd99f){const _0xa51358=a17_0x3b23b4,_0x5bcf14={};_0x5bcf14[_0xa51358(0x1e2)]=_0xa51358(0x20f),_0x5bcf14[_0xa51358(0x1c7)]=function(_0x32d8e3,_0x5f1334){return _0x32d8e3===_0x5f1334;},_0x5bcf14[_0xa51358(0x27e)]='tRiuG',_0x5bcf14[_0xa51358(0x1e5)]=_0xa51358(0x26e);const _0x32ca75=_0x5bcf14;logger[_0xa51358(0x234)]('['+_0x5db037+_0xa51358(0x296)+_0x3cd99f[_0xa51358(0x263)]+_0xa51358(0x2a0)+_0x3cd99f[_0xa51358(0x226)]+_0xa51358(0x1c4)+_0x3cd99f['error']),_0x3cd99f[_0xa51358(0x232)]&&(_0x32ca75['ZQsHV'](_0x32ca75[_0xa51358(0x27e)],_0x32ca75['ozNBA'])?_0x34d312['push'](_0x32ca75[_0xa51358(0x1e2)]):logger[_0xa51358(0x232)]('error\x20stack\x20:\x20'+_0x3cd99f[_0xa51358(0x232)][_0xa51358(0x214)]));}function a17_0x4f2e(_0x240957,_0x26979c){const _0x5a37a9=a17_0x5a37();return a17_0x4f2e=function(_0x4f2e09,_0x4cb122){_0x4f2e09=_0x4f2e09-0x1b1;let _0x357962=_0x5a37a9[_0x4f2e09];return _0x357962;},a17_0x4f2e(_0x240957,_0x26979c);}async function generateReport(_0x4ed127,_0x17c68d){const _0x2b7e67=a17_0x3b23b4,_0x28aa2a={'PfLYK':function(_0x41c4bf,_0x2ed62e){return _0x41c4bf+_0x2ed62e;},'iydNY':'Success','mlsza':_0x2b7e67(0x25b),'buZya':function(_0x167aae,_0x45c867){return _0x167aae||_0x45c867;},'YypAh':_0x2b7e67(0x23f),'gylTh':_0x2b7e67(0x215),'iJqen':'Cluster\x20details\x0a-----------------------\x0a','FGyrY':function(_0x412d87,_0x46f33e){return _0x412d87!=_0x46f33e;},'IDULv':_0x2b7e67(0x1dd),'yXzPS':_0x2b7e67(0x236),'pygnY':function(_0x5a74e4){return _0x5a74e4();}};let _0x1ce5a3=_0x2b7e67(0x24e)+global_registry['cloudProvider']+_0x2b7e67(0x2ae);return _0x4ed127[_0x2b7e67(0x25f)]((_0x1401e7,_0xa7ed1)=>{const _0x5a4093=_0x2b7e67,{header:_0x33903d,response:_0xe0fb3c}=_0x1401e7,{status:_0x3c8449,data:_0x1b8642,error:_0x2dfe89}=_0xe0fb3c;_0x1ce5a3+=_0x33903d+'\x20#'+_0x28aa2a['PfLYK'](_0xa7ed1,0x1)+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d6)+(_0x3c8449?_0x28aa2a['iydNY']:_0x28aa2a[_0x5a4093(0x1ee)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x2a5)+_0x28aa2a[_0x5a4093(0x278)](_0x1b8642,_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x2dfe89&&(_0x1ce5a3+=_0x28aa2a[_0x5a4093(0x2b1)],_0x1ce5a3+=_0x5a4093(0x27c)+(_0x2dfe89[_0x5a4093(0x24a)]||_0x28aa2a['YypAh'])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1fc)+(_0x2dfe89[_0x5a4093(0x28e)]||_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d3)+(_0x2dfe89[_0x5a4093(0x214)]||_0x28aa2a['YypAh'])+'\x0a'),_0x1ce5a3+='\x0a\x0a';}),_0x1ce5a3+=_0x28aa2a[_0x2b7e67(0x206)],_0x28aa2a[_0x2b7e67(0x251)](_0x17c68d,null)?_0x1ce5a3+='Cluster\x20'+global_registry[_0x2b7e67(0x21f)]+'\x20'+(_0x17c68d?_0x28aa2a[_0x2b7e67(0x249)]:_0x28aa2a[_0x2b7e67(0x211)])+'\x0a\x0a':_0x1ce5a3+=_0x2b7e67(0x21b)+global_registry[_0x2b7e67(0x21f)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x1ce5a3+=_0x28aa2a['pygnY'](getSystemMetaData),_0x1ce5a3;};exports[a17_0x3b23b4(0x1f4)]=async function(_0x50bbec){const _0x38e0d8=a17_0x3b23b4,_0x405bcc={'LXdpJ':function(_0x3e8de4){return _0x3e8de4();},'pzDof':function(_0x2c999c){return _0x2c999c();},'VEVXT':_0x38e0d8(0x1fb),'nrbaf':function(_0x16c0ce,_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270){return _0x16c0ce(_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270);},'gLFKd':'pre-check-grid-called','jVxfZ':_0x38e0d8(0x1bd),'rTxav':_0x38e0d8(0x232),'npHta':function(_0x5024d9,_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85){return _0x5024d9(_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85);},'gkGEn':_0x38e0d8(0x257),'ySQOW':'<PasswordPlaceholder>','MxsFN':function(_0x3ec305,_0xdc097f,_0x19401c){return _0x3ec305(_0xdc097f,_0x19401c);},'vESCO':function(_0x18845a,_0x2d904b,_0x3ea541){return _0x18845a(_0x2d904b,_0x3ea541);},'hBxlo':function(_0x4e40c2,_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b){return _0x4e40c2(_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b);},'cedbw':'dummy-grid','wwSvv':function(_0x3586c5,_0x4cebdf,_0x20661b){return _0x3586c5(_0x4cebdf,_0x20661b);},'BaNOs':_0x38e0d8(0x224),'LivPY':_0x38e0d8(0x219),'xCQor':function(_0x20c007,_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818){return _0x20c007(_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818);},'Opfrh':_0x38e0d8(0x280),'pSWLG':function(_0x557d00){return _0x557d00();},'SQGlS':function(_0x314b21,_0xdd5775,_0x14b665){return _0x314b21(_0xdd5775,_0x14b665);},'ikvdt':'isTrialGridAccessible','ETySx':function(_0x2ce930,_0x4a2bce){return _0x2ce930(_0x4a2bce);},'QDBdu':_0x38e0d8(0x1cf),'IowOS':function(_0x3a0f28,_0x455a10,_0x5f31cd){return _0x3a0f28(_0x455a10,_0x5f31cd);},'zMUOb':_0x38e0d8(0x23a),'JrMDz':'Tool\x20Installed','DrKNg':_0x38e0d8(0x258),'yLXBm':_0x38e0d8(0x256),'vlnPk':_0x38e0d8(0x205),'XeNKN':function(_0x3eb2ea,_0x244372,_0x3287df){return _0x3eb2ea(_0x244372,_0x3287df);},'AefdU':function(_0x171867,_0x485ab4){return _0x171867+_0x485ab4;},'MgAGI':_0x38e0d8(0x20b),'IdJYj':function(_0x2f905f,_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12){return _0x2f905f(_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12);},'gXJaK':_0x38e0d8(0x1db)};let _0x118434,_0x396019;try{global_registry['requestId']=_0x405bcc[_0x38e0d8(0x1d4)](uuidv4);!fs['existsSync'](_0x405bcc['pzDof'](getCredentialsPath))&&(_0x396019=_0x405bcc[_0x38e0d8(0x20c)],logger[_0x38e0d8(0x232)](_0x396019),await _0x405bcc[_0x38e0d8(0x292)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],_0x405bcc[_0x38e0d8(0x1c0)],_0x405bcc['rTxav']),process[_0x38e0d8(0x286)](0x1));_0x405bcc[_0x38e0d8(0x250)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes['INFO'],null,null,_0x50bbec);const _0x104fa6=JSON[_0x38e0d8(0x20e)](fs[_0x38e0d8(0x252)](_0x405bcc['LXdpJ'](getCredentialsPath)));global_registry[_0x38e0d8(0x2a2)]=_0x104fa6['Browserstack']['username'],global_registry['bstackAccesskey']=_0x104fa6[_0x38e0d8(0x28f)]['password'];const _0x560874=WS_ENDPOINT['replace'](_0x405bcc[_0x38e0d8(0x283)],_0x104fa6[_0x38e0d8(0x28f)]['username'])[_0x38e0d8(0x1ec)](_0x405bcc[_0x38e0d8(0x1fd)],_0x104fa6[_0x38e0d8(0x28f)][_0x38e0d8(0x208)]),_0x4cafc9={};_0x4cafc9[_0x38e0d8(0x24d)]=ws,_0x4cafc9[_0x38e0d8(0x298)]=0x36ee80,_0x118434=new ReconnectingWebSocket(_0x560874,[],_0x4cafc9),global_registry[_0x38e0d8(0x272)]=_0x405bcc[_0x38e0d8(0x281)](getAuthHeader,global_registry[_0x38e0d8(0x2a2)],global_registry[_0x38e0d8(0x1b9)]),await _0x405bcc['vESCO'](inputValidation,_0x50bbec,_0x118434),logger[_0x38e0d8(0x234)](_0x38e0d8(0x21d)+global_registry[_0x38e0d8(0x271)]+_0x38e0d8(0x243)+global_registry[_0x38e0d8(0x1b3)]);let _0x583331=await _0x405bcc[_0x38e0d8(0x29e)](getCloudProviderObjectWithOutInit,global_registry[_0x38e0d8(0x271)],global_registry[_0x38e0d8(0x21f)],_0x405bcc[_0x38e0d8(0x241)],_0x118434,webSocketUtils,_0x50bbec);const _0x3b5349=await _0x583331[_0x38e0d8(0x1f8)]();_0x405bcc['wwSvv'](printResponse,_0x405bcc[_0x38e0d8(0x217)],_0x3b5349),_0x583331=await _0x583331[_0x38e0d8(0x1c1)]();let _0x70b294=![];try{_0x70b294=await _0x583331[_0x38e0d8(0x22e)]();}catch(_0x36116c){const _0x855fe7=_0x405bcc[_0x38e0d8(0x233)][_0x38e0d8(0x1ed)]('|');let _0x506d09=0x0;while(!![]){switch(_0x855fe7[_0x506d09++]){case'0':await _0x405bcc[_0x38e0d8(0x29a)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],'cluster-check-failed-'+global_registry[_0x38e0d8(0x271)],_0x405bcc['rTxav']);continue;case'1':_0x396019+='\x0a'+JSON[_0x38e0d8(0x26c)](_0x36116c[_0x38e0d8(0x214)]);continue;case'2':_0x396019=_0x38e0d8(0x1be)+global_registry[_0x38e0d8(0x21f)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x38e0d8(0x1b3)]+_0x38e0d8(0x267)+_0x36116c;continue;case'3':logger[_0x38e0d8(0x232)](_0x396019);continue;case'4':_0x70b294=null;continue;}break;}}_0x70b294&&logger['info'](_0x38e0d8(0x20d)+global_registry['clusterName']+_0x38e0d8(0x1b7));const _0x117912=await _0x583331[_0x38e0d8(0x227)]();_0x405bcc['MxsFN'](printResponse,_0x405bcc[_0x38e0d8(0x2a8)],_0x117912);const _0x3d824d=await _0x405bcc[_0x38e0d8(0x2b2)](curlRequest);_0x405bcc[_0x38e0d8(0x2ad)](printResponse,_0x405bcc['ikvdt'],_0x3d824d);const _0x24ad1c=await _0x405bcc['ETySx'](isTlsSupported,_0x405bcc[_0x38e0d8(0x1d2)]);_0x405bcc[_0x38e0d8(0x1ca)](printResponse,_0x405bcc['zMUOb'],_0x24ad1c);const _0x5e179a={};_0x5e179a[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x1f2)],_0x5e179a[_0x38e0d8(0x1b6)]=_0x3b5349;const _0x23dc9d={};_0x23dc9d[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x289)],_0x23dc9d[_0x38e0d8(0x1b6)]=_0x117912;const _0xd71ec4={};_0xd71ec4[_0x38e0d8(0x29b)]=_0x405bcc['yLXBm'],_0xd71ec4['response']=_0x3d824d;const _0x1b9cc3={};_0x1b9cc3['header']=_0x405bcc[_0x38e0d8(0x1cd)],_0x1b9cc3['response']=_0x24ad1c;const _0x23d763=[_0x5e179a,_0x23dc9d,_0xd71ec4,_0x1b9cc3],_0x12d6db=await _0x405bcc[_0x38e0d8(0x29d)](generateReport,_0x23d763,_0x70b294),_0x119caa=new Date(),_0x1b9c9a=_0x119caa[_0x38e0d8(0x290)]()+'_'+_0x405bcc['AefdU'](_0x119caa[_0x38e0d8(0x202)](),0x1)+'_'+_0x119caa[_0x38e0d8(0x200)]()+'_'+_0x119caa[_0x38e0d8(0x28d)]()+'_'+_0x119caa[_0x38e0d8(0x264)](),_0x1244bd=_0x38e0d8(0x239)+_0x1b9c9a+_0x38e0d8(0x28a);fs['writeFileSync'](_0x1244bd,_0x12d6db,_0x405bcc['MgAGI']),logger[_0x38e0d8(0x234)](_0x38e0d8(0x1b4)+_0x1244bd),process['exit'](0x0);}catch(_0x3c6ae8){let _0x374078=_0x38e0d8(0x228)+_0x3c6ae8+'\x20';logger[_0x38e0d8(0x232)](_0x374078),_0x374078+='\x0a'+JSON['stringify'](_0x3c6ae8[_0x38e0d8(0x214)]),logger[_0x38e0d8(0x2b0)](_0x38e0d8(0x270)+_0x3c6ae8[_0x38e0d8(0x214)]);if(_0x118434){const _0xa60cf1={};_0xa60cf1['type']=WS_EVENTS[_0x38e0d8(0x26f)],_0xa60cf1[_0x38e0d8(0x24a)]=_0x374078,webSocketUtils[_0x38e0d8(0x229)](_0x118434,_0xa60cf1,_0x405bcc[_0x38e0d8(0x230)],!![]);}await webSocketUtils[_0x38e0d8(0x1d0)](0x7d0);const _0x3224c7={};_0x3224c7[_0x38e0d8(0x232)]=_0x374078,await _0x405bcc[_0x38e0d8(0x1f1)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes[_0x38e0d8(0x1c6)],_0x405bcc['gXJaK'],_0x3224c7,_0x50bbec),process[_0x38e0d8(0x286)](0x1);}};
1
+ const a17_0x42cf53=a17_0x413e;function a17_0x467f(){const _0x228e6e=['HmOYn','exit','jWQPR','IGSuH','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','split','lkfar','Error\x20Details:\x0a','vGvXn','getUTCFullYear','pre-check-grid-profile-empty','Vxkal','data','sLiBD','debug','faNuD','zuEmD','OZuaQ','eWfTD','CBpCk','aZHDj','Missing\x20required\x20arguments:\x20','MitUe','qNwnL','WebSocket','eURsj','code','clusterName','\x20\x20Stack:\x20','DPPEq','response','getUTCMinutes','myYRj','cidfT','ILNLe','ueLMS','bstackUsername','init','Jczqk','body','grid\x20profile\x20flow\x20','NbRgq','gwPFp','epilogue','pre-check-cluster-args-not-passed','desc','password','TLSv1_2_client_method','Cluster\x20details\x0a-----------------------\x0a','NSGwP','string','`\x20is\x20present\x20in\x20region\x20`','DErOB','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','push','isTrialGridAccessible','grid-profile','YtadT','WavGI','mpuFM','GET','qsczB','N/A','User\x20Access','options','command','FfwCb','delay','fOiav','grid','ynkwz','isTls1_2_SUPPORTED','/packages/cli/get-all-grid-profiles','connectionTimeout','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','vFGTb','HfSuQ','../../utils/utilityMethods','sNkMU','CJaIX','ERROR','SSL\x20Configured','.txt','CqzAf','bstackAccesskey','NgvMQ','Failure','../../cloudproviders/utils','cloud-provider','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','dZQWw','replace','Setting\x20cloud\x20provider\x20as\x20','cluster-name','UzNsK','accessResp','eqQtA','Report\x20saved\x20in\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','===\x20Precheck\x20Report\x20-\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eakcm','GnfXd','Cluster\x20','Success','\x20===\x0a\x0a','username','Grid\x20profile\x20fetched\x20for\x20pre-check','acycu','parse','PdHzT','1733877nSpbin','JXwXr','gridProfile','SvMQg','EUirF','pTWUm','message','ucIZu','readFileSync','log/report_','vwCut','ylyZL','bNEhq','XAeZb','type','XqkuF','requestId','IuIOJ','uWAWK','dcQpP','MBwlS','error','Message:\x20','185ugasho','5708JMTwRr','Gntoe','\x20error\x20:\x20','DdqWy','https://','rzzfS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','CCLaZ','pre-check-failed','YEEot','utf-8','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','931693EvZdfe','is\x20already\x20present','HqJBj','HTobT','error\x20stack\x20:\x20','sendEventToBackend','BmJFm','Browserstack','lmoga','clusterRegion','../../utils/instrumentationUtils','\x20data\x20:\x20','LOG','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','`\x20already\x20exists','GfDPm','unable\x20to\x20verify\x20if\x20cluster\x20`','ODiJB','description','208104EhptZI','gefHH','Pre-check\x20running\x20for\x20Cloud\x20-\x20','DlZSB','\x20region\x20-\x20','stack\x20trace\x20','cloud-provider-not-supported','XwhNA','stringify','iYSzw','tduit','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','uuid','KyXmV','laCjh','join','headers','../../utils/webSocketUtils','miuGJ','<UsernamePlaceholder>','info','nTgCk','AXgjH','CLOUD_PROVIDER','oTEXu','header','aRkUG','7811720vnKgvI','qDasg','getUTCMonth','existsSync','\x20\x20Code:\x20','dbOjP','699MCICXR','Status:\x20','FGxRD','AnDel','getUTCHours','1263216HaRIih','checkAccess','IuxTO','reconnecting-websocket','Cluster\x20`','Whitelisted\x20browserstack','SmXeu','cloudProvider','Nupfx','RgIgR','hdHaq','uexaB','region','writeFileSync','getUTCDate','kGvaH','will\x20be\x20created','stack','hdnGv','got','Invalid\x20input.\x20grid\x20profiles:\x20','ezrAA','keczi','argv','xCVCj','rDuva','pre-check-grid-called','pre_check',']\x20status\x20:\x20','help','UVBaZ','rwdhh','kmkjy','tTCJM','1|2|0|3|4','.\x20Please\x20provide\x20all\x20required\x20arguments.','authHeader','usage','forEach','mXXFG','\x20\x20Message:\x20','oJIFn','aEIYn','throwHttpErrors','status','YWfJu','RUDGB','tLKfw','158478Qsxags','lxCJv','10lrbBmd','mCSso','AfbUM','YKibr','kBEqY','includes','LaIUL'];a17_0x467f=function(){return _0x228e6e;};return a17_0x467f();}(function(_0x30d5da,_0x3f33b1){const _0x4e7d6b=a17_0x413e,_0x1cd9e8=_0x30d5da();while(!![]){try{const _0x39fe79=parseInt(_0x4e7d6b(0xd7))/0x1+parseInt(_0x4e7d6b(0x167))/0x2*(parseInt(_0x4e7d6b(0xa2))/0x3)+-parseInt(_0x4e7d6b(0xa7))/0x4+parseInt(_0x4e7d6b(0x166))/0x5*(parseInt(_0x4e7d6b(0x81))/0x6)+parseInt(_0x4e7d6b(0x173))/0x7+-parseInt(_0x4e7d6b(0x9c))/0x8+-parseInt(_0x4e7d6b(0x14f))/0x9*(parseInt(_0x4e7d6b(0xd9))/0xa);if(_0x39fe79===_0x3f33b1)break;else _0x1cd9e8['push'](_0x1cd9e8['shift']());}catch(_0x2de207){_0x1cd9e8['push'](_0x1cd9e8['shift']());}}}(a17_0x467f,0xb8501));const fs=require('fs'),ws=require('ws'),got=require(a17_0x42cf53(0xba)),{v4:uuidv4}=require(a17_0x42cf53(0x8d)),ReconnectingWebSocket=require(a17_0x42cf53(0xaa)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x42cf53(0x12d)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x42cf53(0x137)),webSocketUtils=require(a17_0x42cf53(0x92)),{sendInstrumentationEvent}=require(a17_0x42cf53(0x78));exports[a17_0x42cf53(0x121)]=a17_0x42cf53(0x125),exports[a17_0x42cf53(0x10d)]=a17_0x42cf53(0x142),exports['builder']=function(_0x49928c){const _0x304d15=a17_0x42cf53,_0x37be4b={};_0x37be4b[_0x304d15(0xc0)]=_0x304d15(0x16d),_0x37be4b[_0x304d15(0xb2)]=_0x304d15(0x112),_0x37be4b[_0x304d15(0x11b)]=_0x304d15(0x139),_0x37be4b[_0x304d15(0xf6)]=_0x304d15(0x115),_0x37be4b['dZQWw']=_0x304d15(0x12a),_0x37be4b[_0x304d15(0xe2)]=_0x304d15(0xc4);const _0x4f4f2e=_0x37be4b,_0x3a0149={};_0x3a0149[_0x304d15(0x80)]=_0x4f4f2e[_0x304d15(0xc0)],_0x3a0149[_0x304d15(0x15d)]=_0x4f4f2e[_0x304d15(0xb2)];const _0x41d479={};_0x41d479['description']=_0x4f4f2e[_0x304d15(0x11b)],_0x41d479[_0x304d15(0x15d)]=_0x4f4f2e[_0x304d15(0xb2)];const _0x31b087={};_0x31b087[_0x304d15(0x80)]=_0x4f4f2e[_0x304d15(0xf6)],_0x31b087[_0x304d15(0x15d)]=_0x4f4f2e['uexaB'];const _0x48ace0={};_0x48ace0['description']=_0x4f4f2e[_0x304d15(0x13a)],_0x48ace0[_0x304d15(0x15d)]=_0x4f4f2e[_0x304d15(0xb2)];const _0x3192ad={};return _0x3192ad['cluster-name']=_0x3a0149,_0x3192ad['cloud-provider']=_0x41d479,_0x3192ad[_0x304d15(0xb3)]=_0x31b087,_0x3192ad['grid-profile']=_0x48ace0,_0x49928c[_0x304d15(0xcc)](HELP_HEADER_MESSAGE[_0x304d15(0xc2)])[_0x304d15(0x10b)](HELP_FOOTER_MESSAGE)[_0x304d15(0x120)](_0x3192ad)[_0x304d15(0xc4)](_0x4f4f2e[_0x304d15(0xe2)])[_0x304d15(0xbe)];};async function inputValidation(_0x388c90,_0x299032){const _0x386caf=a17_0x42cf53,_0xfb6a61={'myYRj':_0x386caf(0x13d),'CBpCk':_0x386caf(0x16d),'HfSuQ':_0x386caf(0x112),'VnjOw':_0x386caf(0x139),'kBEqY':_0x386caf(0x115),'WLGMS':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','PshmN':_0x386caf(0xc4),'tTCJM':_0x386caf(0x164),'HWkqG':_0x386caf(0x174),'YWfJu':_0x386caf(0xb7),'pTWUm':_0x386caf(0xe7),'UzNsK':_0x386caf(0x11e),'acycu':function(_0x484139,_0x110c68){return _0x484139+_0x110c68;},'OZuaQ':_0x386caf(0x148),'FfwCb':_0x386caf(0x136),'VPmST':function(_0x4df15d,_0x333688){return _0x4df15d||_0x333688;},'XqkuF':_0x386caf(0xb3),'WavGI':_0x386caf(0x138),'AfbUM':function(_0x56787d,_0x37d14e){return _0x56787d!==_0x37d14e;},'sNkMU':'FLxyt','qDasg':function(_0x483798,_0x2123b0){return _0x483798===_0x2123b0;},'nTgCk':_0x386caf(0x124),'lkfar':_0x386caf(0xef),'XAeZb':_0x386caf(0x126),'GnfXd':_0x386caf(0x7d),'IuIOJ':function(_0x2a4e63,_0x754226){return _0x2a4e63===_0x754226;},'Jczqk':'waUsm','VfamF':'gRHGR','dMspS':function(_0x1f2fb5,_0x3f0152){return _0x1f2fb5>_0x3f0152;},'tduit':function(_0x386f97,_0x213d7f){return _0x386f97===_0x213d7f;},'AnDel':_0x386caf(0xd5),'kmkjy':'Zlfhk','UVBaZ':function(_0x195427,_0x2a16e8,_0x749d31,_0x5afa3b,_0x16454f,_0x38b1cb,_0x33f31f,_0xd3b186){return _0x195427(_0x2a16e8,_0x749d31,_0x5afa3b,_0x16454f,_0x38b1cb,_0x33f31f,_0xd3b186);},'eqQtA':_0x386caf(0xc1),'laCjh':_0x386caf(0x10c),'gwPFp':function(_0x4be337,_0x4938e5){return _0x4be337===_0x4938e5;},'FGxRD':'QTrYG','qNwnL':_0x386caf(0xe4),'keczi':_0x386caf(0x87),'AaDOS':function(_0x13808b,_0x456e3a){return _0x13808b!==_0x456e3a;},'CCLaZ':_0x386caf(0x176),'YtadT':_0x386caf(0xf9),'dbOjP':'qzhUS','JXwXr':_0x386caf(0x133),'sLiBD':_0x386caf(0x11c),'Gntoe':function(_0x213944,_0xca2272,_0x2edfac){return _0x213944(_0xca2272,_0x2edfac);},'PCoWL':function(_0x10444c,_0x18894d,_0x2f9f70,_0x179b4e,_0x10741e,_0x35ad48){return _0x10444c(_0x18894d,_0x2f9f70,_0x179b4e,_0x10741e,_0x35ad48);},'aZHDj':'pre-check','Lqekr':'grid-profile','DErOB':function(_0x519d96,_0x21b2ca){return _0x519d96===_0x21b2ca;},'ylyZL':'DRIqV','DlZSB':_0x386caf(0xdc),'uDrLD':function(_0x2d2fa8,_0x58da74){return _0x2d2fa8(_0x58da74);},'EUirF':function(_0x32a938,_0x1f270b){return _0x32a938===_0x1f270b;},'DPPEq':_0x386caf(0x16a),'hdHaq':function(_0x4ac4fe,_0x2d0d5b,_0x100098,_0x493652,_0x21179a,_0x1f79d7,_0x7c4093,_0x8855e3){return _0x4ac4fe(_0x2d0d5b,_0x100098,_0x493652,_0x21179a,_0x1f79d7,_0x7c4093,_0x8855e3);},'mXXFG':_0x386caf(0xea),'vGvXn':function(_0x1b5618,_0x118fd8){return _0x1b5618!==_0x118fd8;},'esMkj':'kutfm','tLKfw':_0x386caf(0x97),'HqJBj':'tlfjJ','miuGJ':_0x386caf(0x14b),'aEIYn':_0x386caf(0xdf),'vFGTb':'bxyfi','HmOYn':_0x386caf(0x8c),'KyXmV':function(_0x4c9776,_0x5e8df1){return _0x4c9776===_0x5e8df1;},'HcyGd':_0x386caf(0x101),'lmoga':'eHNNt','NgvMQ':function(_0x49f93f,_0x473699,_0x58d512,_0x5dd426,_0x2aa429,_0x3963b1,_0x5dfb4e,_0x57ff5a){return _0x49f93f(_0x473699,_0x58d512,_0x5dd426,_0x2aa429,_0x3963b1,_0x5dfb4e,_0x57ff5a);}};let _0x1c5f83;try{if(_0xfb6a61[_0x386caf(0xdb)](_0xfb6a61['sNkMU'],_0xfb6a61[_0x386caf(0x12e)]))_0x4b49fc[_0x386caf(0xe1)](0x1);else{if(_0x388c90[_0x386caf(0xfb)]||_0x388c90[_0x386caf(0xae)]||_0x388c90[_0x386caf(0xb3)]){if(_0xfb6a61[_0x386caf(0x9d)](_0xfb6a61[_0x386caf(0x96)],_0xfb6a61[_0x386caf(0xe6)]))_0x48bfa7[_0x386caf(0x95)](_0x386caf(0x13c)+_0x53d1e6[_0x386caf(0x98)]+'\x20'),_0x459bfc[_0x386caf(0xae)]=_0x257a56[_0x386caf(0x98)];else{const _0x415552=[];!_0x388c90[_0x386caf(0xfb)]&&(_0xfb6a61[_0x386caf(0x9d)](_0xfb6a61['XAeZb'],_0xfb6a61[_0x386caf(0x15c)])?_0x415552[_0x386caf(0x116)](_0xfb6a61[_0x386caf(0x100)]):_0x34b74e[_0x386caf(0x95)](_0x386caf(0xab)+_0x2f5116[_0x386caf(0xfb)]+'`\x20already\x20exists'));;!_0x388c90['cloudProvider']&&(_0xfb6a61[_0x386caf(0x9d)](_0xfb6a61[_0x386caf(0x146)],_0xfb6a61[_0x386caf(0x146)])?_0x415552[_0x386caf(0x116)](_0xfb6a61[_0x386caf(0x11a)]):_0x522034['push'](_0xfb6a61['myYRj']));;if(!_0x388c90[_0x386caf(0xb3)]){if(_0xfb6a61[_0x386caf(0x160)](_0xfb6a61[_0x386caf(0x106)],_0xfb6a61['VfamF'])){const _0x400b62={};_0x400b62['description']=_0xfb6a61[_0x386caf(0xf3)],_0x400b62[_0x386caf(0x15d)]=_0xfb6a61[_0x386caf(0x12c)];const _0x111418={};_0x111418[_0x386caf(0x80)]=_0xfb6a61['VnjOw'],_0x111418[_0x386caf(0x15d)]=_0xfb6a61[_0x386caf(0x12c)];const _0x163527={};_0x163527[_0x386caf(0x80)]=_0xfb6a61[_0x386caf(0xdd)],_0x163527[_0x386caf(0x15d)]=_0xfb6a61['HfSuQ'];const _0x22c92e={};_0x22c92e[_0x386caf(0x80)]=_0xfb6a61['WLGMS'],_0x22c92e[_0x386caf(0x15d)]=_0xfb6a61['HfSuQ'];const _0x7e7941={};return _0x7e7941[_0x386caf(0x13d)]=_0x400b62,_0x7e7941['cloud-provider']=_0x111418,_0x7e7941['region']=_0x163527,_0x7e7941[_0x386caf(0x118)]=_0x22c92e,_0x2c5a83[_0x386caf(0xcc)](_0x4fe6f4['pre_check'])['epilogue'](_0x4a18c4)[_0x386caf(0x120)](_0x7e7941)['help'](_0xfb6a61['PshmN'])[_0x386caf(0xbe)];}else _0x415552[_0x386caf(0x116)](_0xfb6a61['XqkuF']);};if(_0xfb6a61['dMspS'](_0x415552['length'],0x0)){if(_0xfb6a61[_0x386caf(0x8b)](_0xfb6a61[_0x386caf(0xa5)],_0xfb6a61[_0x386caf(0xc7)])){const _0xec4ba5={};_0xec4ba5[_0x386caf(0x15d)]=_0x38187c['LOG'],_0xec4ba5[_0x386caf(0x155)]=_0xde2d5a,_0x50395a[_0x386caf(0x178)](_0x1d221c,_0xec4ba5,_0xfb6a61[_0x386caf(0xc8)],!![]);}else _0x1c5f83=_0x386caf(0xf5)+_0x415552[_0x386caf(0x90)](',\x20')+_0x386caf(0xca),await _0xfb6a61['UVBaZ'](reportToGalactusAndSendToEDS,_0x388c90,_0x299032,_0x1c5f83,messageTypes[_0x386caf(0x130)],_0xfb6a61[_0x386caf(0x140)],_0xfb6a61[_0x386caf(0x8f)],_0xfb6a61[_0x386caf(0xc8)]),logger[_0x386caf(0x164)](_0x1c5f83),process['exit'](0x1);}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x386caf(0xde)](_0x388c90['cloudProvider']['toLowerCase']())&&(_0xfb6a61[_0x386caf(0x10a)](_0xfb6a61[_0x386caf(0xa4)],_0xfb6a61[_0x386caf(0xa4)])?(_0x1c5f83=_0xfb6a61[_0x386caf(0xf7)],await _0xfb6a61[_0x386caf(0xc5)](reportToGalactusAndSendToEDS,_0x388c90,_0x299032,_0x1c5f83,messageTypes[_0x386caf(0x130)],_0xfb6a61['eqQtA'],_0xfb6a61['keczi'],_0xfb6a61['tTCJM']),logger[_0x386caf(0x164)](_0x1c5f83),!_0x388c90[_0x386caf(0xae)]&&(_0xfb6a61['AaDOS'](_0xfb6a61[_0x386caf(0x16e)],_0xfb6a61[_0x386caf(0x119)])?(logger[_0x386caf(0x95)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x388c90[_0x386caf(0xae)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x426c75+=_0x386caf(0x147)+_0x14b6a8[_0x386caf(0xfb)]+'\x20'+(_0x4894a4?_0xfb6a61['HWkqG']:_0xfb6a61[_0x386caf(0xd4)])+'\x0a\x0a')):(_0x1889d3[_0x386caf(0x95)]('['+_0x5edca7+_0x386caf(0xc3)+_0x21b3c7[_0x386caf(0xd3)]+_0x386caf(0x79)+_0x242274[_0x386caf(0xec)]+_0x386caf(0x169)+_0x61027e[_0x386caf(0x164)]),_0x3b13a1[_0x386caf(0x164)]&&_0x255f31['error']('error\x20stack\x20:\x20'+_0xc522fa[_0x386caf(0x164)][_0x386caf(0xb8)]))),global_registry['clusterName']=_0x388c90['clusterName'],global_registry[_0x386caf(0xae)]=_0x388c90[_0x386caf(0xae)],global_registry[_0x386caf(0x77)]=_0x388c90[_0x386caf(0xb3)];}}else{if(_0x388c90[_0x386caf(0x151)]){if(_0xfb6a61[_0x386caf(0xdb)](_0xfb6a61[_0x386caf(0xa1)],_0xfb6a61[_0x386caf(0x150)])){global_registry[_0x386caf(0x151)]=_0x388c90['gridProfile'],logger[_0x386caf(0xee)](_0x386caf(0x108)+_0x388c90['gridProfile']);const _0x3f9cd9=_0x386caf(0x16b)+AG_API_URL+_0x386caf(0x128),_0x87d202={};_0x87d202['method']=_0xfb6a61[_0x386caf(0xed)],_0x87d202[_0x386caf(0x91)]=global_registry['authHeader'],_0x87d202[_0x386caf(0xd2)]=![];const _0x2215f3=_0x87d202,_0x1f27f4=await _0xfb6a61[_0x386caf(0x168)](got,_0x3f9cd9,_0x2215f3),_0x283332=await _0xfb6a61['PCoWL'](responseValidation,_0x1f27f4,_0xfb6a61[_0x386caf(0xf4)],_0xfb6a61['Lqekr'],_0x388c90,_0x299032);let _0x2170d9={};if(_0xfb6a61[_0x386caf(0x9d)](_0x283332,0xc8)){if(_0xfb6a61[_0x386caf(0x114)](_0xfb6a61[_0x386caf(0x15a)],_0xfb6a61[_0x386caf(0x84)]))_0x3d1af5[_0x386caf(0x164)](_0x386caf(0x177)+_0x585408[_0x386caf(0x164)][_0x386caf(0xb8)]);else{const _0x5f549c=JSON[_0x386caf(0x14d)](_0x1f27f4[_0x386caf(0x107)]),_0x511bb8=_0x5f549c['find'](_0x41f772=>_0x41f772['name']===_0x388c90[_0x386caf(0x151)])||null;if(_0xfb6a61['uDrLD'](isUndefined,_0x511bb8))_0xfb6a61[_0x386caf(0x153)](_0xfb6a61[_0x386caf(0xfd)],_0xfb6a61['DPPEq'])?(_0x1c5f83=_0x386caf(0xbb)+_0x388c90[_0x386caf(0x151)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0xfb6a61[_0x386caf(0xb1)](reportToGalactusAndSendToEDS,_0x388c90,_0x299032,_0x1c5f83,messageTypes[_0x386caf(0x130)],_0xfb6a61[_0x386caf(0x140)],_0xfb6a61[_0x386caf(0xce)],_0xfb6a61[_0x386caf(0xc8)]),logger['error'](_0x1c5f83),process[_0x386caf(0xe1)](0x1)):(_0x3a7a91+=_0xfb6a61[_0x386caf(0x154)],_0x587d08+=_0x386caf(0xcf)+(_0x346794[_0x386caf(0x155)]||_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0x1c16f2+=_0x386caf(0xa0)+(_0x2cac2d['code']||_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0x599afb+='\x20\x20Stack:\x20'+(_0x477232[_0x386caf(0xb8)]||_0xfb6a61['UzNsK'])+'\x0a');else{if(_0xfb6a61[_0x386caf(0xe8)](_0xfb6a61['esMkj'],_0xfb6a61[_0x386caf(0xd6)]))_0x2170d9=_0x511bb8;else{const {header:_0x5519f6,response:_0x494d15}=_0x57bcb8,{status:_0x3a4400,data:_0x52fde2,error:_0x5aa1c7}=_0x494d15;_0x408a84+=_0x5519f6+'\x20#'+_0xfb6a61[_0x386caf(0x14c)](_0x5759c0,0x1)+'\x0a',_0x2af844+=_0x386caf(0xa3)+(_0x3a4400?_0xfb6a61[_0x386caf(0xf1)]:_0xfb6a61[_0x386caf(0x122)])+'\x0a',_0xf899b2+=_0x386caf(0x165)+_0xfb6a61['VPmST'](_0x52fde2,_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0x5aa1c7&&(_0x23e1da+=_0xfb6a61['pTWUm'],_0x4116c9+='\x20\x20Message:\x20'+(_0x5aa1c7[_0x386caf(0x155)]||_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0x332ad7+=_0x386caf(0xa0)+(_0x5aa1c7['code']||_0xfb6a61[_0x386caf(0x13e)])+'\x0a',_0xfdfeef+=_0x386caf(0xfc)+(_0x5aa1c7['stack']||_0xfb6a61[_0x386caf(0x13e)])+'\x0a'),_0x42e1d9+='\x0a\x0a';}}}}else _0xfb6a61[_0x386caf(0xdb)](_0xfb6a61[_0x386caf(0x175)],_0xfb6a61[_0x386caf(0x175)])?_0x2a1aff[_0x386caf(0x116)](_0xfb6a61[_0x386caf(0x15e)]):process[_0x386caf(0xe1)](0x1);const _0x144f3c={};_0x144f3c[_0x386caf(0x15d)]=WS_EVENTS['LOG'],_0x144f3c[_0x386caf(0x155)]=_0xfb6a61[_0x386caf(0x93)],webSocketUtils[_0x386caf(0x178)](_0x299032,_0x144f3c),global_registry['cloudProvider']=_0x2170d9[_0x386caf(0xae)],global_registry[_0x386caf(0x77)]=_0x2170d9[_0x386caf(0xb3)],global_registry['clusterName']=_0x2170d9['clusterName'];}else _0x4fa52e['push'](_0xfb6a61[_0x386caf(0x11a)]);}else _0xfb6a61[_0x386caf(0x160)](_0xfb6a61[_0x386caf(0xd1)],_0xfb6a61[_0x386caf(0x12b)])?_0x2ce86e=_0x829d2b:(logger[_0x386caf(0x164)](_0xfb6a61[_0x386caf(0xe0)]),process[_0x386caf(0xe1)](0x1));}}}catch(_0x17b5f7){_0xfb6a61[_0x386caf(0x8e)](_0xfb6a61['HcyGd'],_0xfb6a61[_0x386caf(0x76)])?_0x327ac0+=_0x386caf(0x147)+_0x44bcf6[_0x386caf(0xfb)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x1c5f83=_0x386caf(0x172)+_0x17b5f7+':\x20'+_0x17b5f7[_0x386caf(0xb8)],logger['error'](_0x1c5f83),await _0xfb6a61[_0x386caf(0x135)](reportToGalactusAndSendToEDS,_0x388c90,_0x299032,_0x1c5f83,messageTypes['ERROR'],_0xfb6a61[_0x386caf(0x140)],_0xfb6a61[_0x386caf(0xbd)],_0xfb6a61['tTCJM']),process[_0x386caf(0xe1)](0x1));}}function printResponse(_0x42a980,_0x3b4f89){const _0x203446=a17_0x42cf53,_0x46f623={};_0x46f623[_0x203446(0xad)]=_0x203446(0x8c),_0x46f623['PdHzT']=function(_0x1c9c42,_0x42dcd0){return _0x1c9c42!==_0x42dcd0;},_0x46f623['IGSuH']='ZliMq',_0x46f623[_0x203446(0x111)]=_0x203446(0x74);const _0x4db549=_0x46f623;logger[_0x203446(0x95)]('['+_0x42a980+_0x203446(0xc3)+_0x3b4f89[_0x203446(0xd3)]+_0x203446(0x79)+_0x3b4f89['data']+_0x203446(0x169)+_0x3b4f89[_0x203446(0x164)]),_0x3b4f89[_0x203446(0x164)]&&(_0x4db549[_0x203446(0x14e)](_0x4db549[_0x203446(0xe3)],_0x4db549[_0x203446(0x111)])?logger['error'](_0x203446(0x177)+_0x3b4f89[_0x203446(0x164)][_0x203446(0xb8)]):(_0x671fea[_0x203446(0x164)](_0x4db549[_0x203446(0xad)]),_0x1a221a[_0x203446(0xe1)](0x1)));}async function generateReport(_0x29ec8a,_0x3218bf){const _0x4b2745=a17_0x42cf53,_0x1bbc1a={'dcQpP':function(_0x1a23d3,_0x3baf7a){return _0x1a23d3+_0x3baf7a;},'pPccJ':_0x4b2745(0x148),'ueLMS':_0x4b2745(0x136),'DhaTM':function(_0x2c7041,_0xcd5afb){return _0x2c7041||_0xcd5afb;},'ucIZu':_0x4b2745(0x11e),'bNEhq':_0x4b2745(0xe7),'IuxTO':_0x4b2745(0x110),'XwhNA':function(_0x1c0324,_0x1913b8){return _0x1c0324!=_0x1913b8;},'Vxkal':_0x4b2745(0x174),'RgIgR':'will\x20be\x20created','xCVCj':function(_0x5a6965){return _0x5a6965();}};let _0x24af93=_0x4b2745(0x143)+global_registry[_0x4b2745(0xae)]+_0x4b2745(0x149);return _0x29ec8a[_0x4b2745(0xcd)]((_0x420da1,_0x4b30b1)=>{const _0x5dd41a=_0x4b2745,{header:_0x3cf69e,response:_0x363212}=_0x420da1,{status:_0x7e6c2c,data:_0xd77e05,error:_0x3fde73}=_0x363212;_0x24af93+=_0x3cf69e+'\x20#'+_0x1bbc1a[_0x5dd41a(0x162)](_0x4b30b1,0x1)+'\x0a',_0x24af93+=_0x5dd41a(0xa3)+(_0x7e6c2c?_0x1bbc1a['pPccJ']:_0x1bbc1a[_0x5dd41a(0x103)])+'\x0a',_0x24af93+='Message:\x20'+_0x1bbc1a['DhaTM'](_0xd77e05,_0x1bbc1a[_0x5dd41a(0x156)])+'\x0a',_0x3fde73&&(_0x24af93+=_0x1bbc1a[_0x5dd41a(0x15b)],_0x24af93+='\x20\x20Message:\x20'+(_0x3fde73[_0x5dd41a(0x155)]||_0x1bbc1a[_0x5dd41a(0x156)])+'\x0a',_0x24af93+='\x20\x20Code:\x20'+(_0x3fde73[_0x5dd41a(0xfa)]||_0x1bbc1a['ucIZu'])+'\x0a',_0x24af93+='\x20\x20Stack:\x20'+(_0x3fde73['stack']||_0x1bbc1a['ucIZu'])+'\x0a'),_0x24af93+='\x0a\x0a';}),_0x24af93+=_0x1bbc1a[_0x4b2745(0xa9)],_0x1bbc1a[_0x4b2745(0x88)](_0x3218bf,null)?_0x24af93+='Cluster\x20'+global_registry[_0x4b2745(0xfb)]+'\x20'+(_0x3218bf?_0x1bbc1a[_0x4b2745(0xeb)]:_0x1bbc1a[_0x4b2745(0xb0)])+'\x0a\x0a':_0x24af93+='Cluster\x20'+global_registry[_0x4b2745(0xfb)]+_0x4b2745(0x7b),_0x24af93+=_0x1bbc1a[_0x4b2745(0xbf)](getSystemMetaData),_0x24af93;}function a17_0x413e(_0x307b5a,_0x11bc54){const _0x467f43=a17_0x467f();return a17_0x413e=function(_0x413e9e,_0x55b0fc){_0x413e9e=_0x413e9e-0x74;let _0x571fa9=_0x467f43[_0x413e9e];return _0x571fa9;},a17_0x413e(_0x307b5a,_0x11bc54);};exports['handler']=async function(_0xf2a7d3){const _0x3ab2a4=a17_0x42cf53,_0x23d81a={'MBwlS':function(_0x2a5409){return _0x2a5409();},'YEEot':function(_0x4fe3f7){return _0x4fe3f7();},'mCSso':_0x3ab2a4(0x144),'hdnGv':function(_0x570f88,_0x2ed002,_0x37a282,_0x19bbcc,_0xa15980,_0x1321d4,_0x3784a8,_0x3b17a7){return _0x570f88(_0x2ed002,_0x37a282,_0x19bbcc,_0xa15980,_0x1321d4,_0x3784a8,_0x3b17a7);},'NbRgq':_0x3ab2a4(0xc1),'rzzfS':'credential-not-found','eakcm':_0x3ab2a4(0x164),'ODiJB':function(_0xf5e606,_0x16bf06,_0x50a858,_0x6548ab,_0x3278d9,_0x4e8979,_0xac6048){return _0xf5e606(_0x16bf06,_0x50a858,_0x6548ab,_0x3278d9,_0x4e8979,_0xac6048);},'ILNLe':function(_0x24f72c){return _0x24f72c();},'oJIFn':_0x3ab2a4(0x94),'gAZED':'<PasswordPlaceholder>','uWAWK':function(_0x48af9e,_0x225bd7,_0x3e7f55){return _0x48af9e(_0x225bd7,_0x3e7f55);},'NmOxC':'dummy-grid','JVeyQ':'toolInstalledResp','knklt':_0x3ab2a4(0xc9),'lxCJv':function(_0x2e6635,_0x17b6f7,_0x8fba94){return _0x2e6635(_0x17b6f7,_0x8fba94);},'oTEXu':_0x3ab2a4(0x13f),'zuEmD':function(_0x4e1fa3){return _0x4e1fa3();},'Nupfx':function(_0x2fd126,_0x312668,_0x24d95a){return _0x2fd126(_0x312668,_0x24d95a);},'ezrAA':_0x3ab2a4(0x117),'CJaIX':function(_0x4a1aa2,_0x388460){return _0x4a1aa2(_0x388460);},'gCIzO':_0x3ab2a4(0x10f),'rwdhh':function(_0x70ee68,_0x3d38c9,_0x27a490){return _0x70ee68(_0x3d38c9,_0x27a490);},'eWfTD':_0x3ab2a4(0x127),'aRkUG':'Tool\x20Installed','qsczB':_0x3ab2a4(0x11f),'kGvaH':_0x3ab2a4(0xac),'gefHH':_0x3ab2a4(0x131),'vwCut':function(_0x1643e3,_0x37454b,_0x490df5){return _0x1643e3(_0x37454b,_0x490df5);},'iYSzw':function(_0x49a519,_0x50b073){return _0x49a519+_0x50b073;},'ugZhG':_0x3ab2a4(0x171),'SvMQg':_0x3ab2a4(0x16f)};let _0x354033,_0x3685ba;try{global_registry[_0x3ab2a4(0x15f)]=_0x23d81a[_0x3ab2a4(0x163)](uuidv4);!fs[_0x3ab2a4(0x9f)](_0x23d81a[_0x3ab2a4(0x170)](getCredentialsPath))&&(_0x3685ba=_0x23d81a[_0x3ab2a4(0xda)],logger['error'](_0x3685ba),await _0x23d81a[_0x3ab2a4(0xb9)](reportToGalactusAndSendToEDS,_0xf2a7d3,_0x354033,_0x3685ba,messageTypes[_0x3ab2a4(0x130)],_0x23d81a['NbRgq'],_0x23d81a[_0x3ab2a4(0x16c)],_0x23d81a[_0x3ab2a4(0x145)]),process[_0x3ab2a4(0xe1)](0x1));_0x23d81a['ODiJB'](sendInstrumentationEvent,_0xf2a7d3,_0x23d81a[_0x3ab2a4(0x109)],messageTypes['INFO'],null,null,_0xf2a7d3);const _0x362a03=JSON[_0x3ab2a4(0x14d)](fs[_0x3ab2a4(0x157)](_0x23d81a[_0x3ab2a4(0x102)](getCredentialsPath)));global_registry[_0x3ab2a4(0x104)]=_0x362a03['Browserstack'][_0x3ab2a4(0x14a)],global_registry[_0x3ab2a4(0x134)]=_0x362a03['Browserstack'][_0x3ab2a4(0x10e)];const _0x3e1786=WS_ENDPOINT[_0x3ab2a4(0x13b)](_0x23d81a[_0x3ab2a4(0xd0)],_0x362a03[_0x3ab2a4(0x75)][_0x3ab2a4(0x14a)])[_0x3ab2a4(0x13b)](_0x23d81a['gAZED'],_0x362a03[_0x3ab2a4(0x75)]['password']),_0x1e99b3={};_0x1e99b3[_0x3ab2a4(0xf8)]=ws,_0x1e99b3[_0x3ab2a4(0x129)]=0x36ee80,_0x354033=new ReconnectingWebSocket(_0x3e1786,[],_0x1e99b3),global_registry[_0x3ab2a4(0xcb)]=_0x23d81a[_0x3ab2a4(0x161)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x23d81a['uWAWK'](inputValidation,_0xf2a7d3,_0x354033),logger[_0x3ab2a4(0x95)](_0x3ab2a4(0x83)+global_registry['cloudProvider']+_0x3ab2a4(0x85)+global_registry[_0x3ab2a4(0x77)]);let _0x4b127f=await _0x23d81a[_0x3ab2a4(0x7f)](getCloudProviderObjectWithOutInit,global_registry[_0x3ab2a4(0xae)],global_registry[_0x3ab2a4(0xfb)],_0x23d81a['NmOxC'],_0x354033,webSocketUtils,_0xf2a7d3);const _0x17bf8a=await _0x4b127f['isCliToolInstalled']();_0x23d81a[_0x3ab2a4(0x161)](printResponse,_0x23d81a['JVeyQ'],_0x17bf8a),_0x4b127f=await _0x4b127f[_0x3ab2a4(0x105)]();let _0x2c723d=![];try{_0x2c723d=await _0x4b127f['isClusterPresent']();}catch(_0x40f3ca){const _0x2d8fa0=_0x23d81a['knklt'][_0x3ab2a4(0xe5)]('|');let _0x4ac2f9=0x0;while(!![]){switch(_0x2d8fa0[_0x4ac2f9++]){case'0':logger[_0x3ab2a4(0x164)](_0x3685ba);continue;case'1':_0x3685ba=_0x3ab2a4(0x7e)+global_registry[_0x3ab2a4(0xfb)]+_0x3ab2a4(0x113)+global_registry[_0x3ab2a4(0x77)]+'`\x20,error\x20:\x20'+_0x40f3ca;continue;case'2':_0x2c723d=null;continue;case'3':_0x3685ba+='\x0a'+JSON[_0x3ab2a4(0x89)](_0x40f3ca['stack']);continue;case'4':await _0x23d81a[_0x3ab2a4(0xb9)](reportToGalactusAndSendToEDS,_0xf2a7d3,_0x354033,_0x3685ba,messageTypes[_0x3ab2a4(0x130)],_0x23d81a[_0x3ab2a4(0x109)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x23d81a[_0x3ab2a4(0x145)]);continue;}break;}}_0x2c723d&&logger['info']('Cluster\x20`'+global_registry[_0x3ab2a4(0xfb)]+_0x3ab2a4(0x7c));const _0x1c3906=await _0x4b127f[_0x3ab2a4(0xa8)]();_0x23d81a[_0x3ab2a4(0xd8)](printResponse,_0x23d81a[_0x3ab2a4(0x99)],_0x1c3906);const _0x3e4c12=await _0x23d81a[_0x3ab2a4(0xf0)](curlRequest);_0x23d81a[_0x3ab2a4(0xaf)](printResponse,_0x23d81a[_0x3ab2a4(0xbc)],_0x3e4c12);const _0x173bff=await _0x23d81a[_0x3ab2a4(0x12f)](isTlsSupported,_0x23d81a['gCIzO']);_0x23d81a[_0x3ab2a4(0xc6)](printResponse,_0x23d81a[_0x3ab2a4(0xf2)],_0x173bff);const _0x4fe7f4={};_0x4fe7f4[_0x3ab2a4(0x9a)]=_0x23d81a[_0x3ab2a4(0x9b)],_0x4fe7f4['response']=_0x17bf8a;const _0x3e69ff={};_0x3e69ff[_0x3ab2a4(0x9a)]=_0x23d81a[_0x3ab2a4(0x11d)],_0x3e69ff[_0x3ab2a4(0xfe)]=_0x1c3906;const _0x1d1f41={};_0x1d1f41[_0x3ab2a4(0x9a)]=_0x23d81a[_0x3ab2a4(0xb6)],_0x1d1f41['response']=_0x3e4c12;const _0xf4f330={};_0xf4f330['header']=_0x23d81a[_0x3ab2a4(0x82)],_0xf4f330[_0x3ab2a4(0xfe)]=_0x173bff;const _0x5152b2=[_0x4fe7f4,_0x3e69ff,_0x1d1f41,_0xf4f330],_0x184dc2=await _0x23d81a[_0x3ab2a4(0x159)](generateReport,_0x5152b2,_0x2c723d),_0x586a48=new Date(),_0x352f0c=_0x586a48[_0x3ab2a4(0xe9)]()+'_'+_0x23d81a[_0x3ab2a4(0x8a)](_0x586a48[_0x3ab2a4(0x9e)](),0x1)+'_'+_0x586a48[_0x3ab2a4(0xb5)]()+'_'+_0x586a48[_0x3ab2a4(0xa6)]()+'_'+_0x586a48[_0x3ab2a4(0xff)](),_0x24bdcf=_0x3ab2a4(0x158)+_0x352f0c+_0x3ab2a4(0x132);fs[_0x3ab2a4(0xb4)](_0x24bdcf,_0x184dc2,_0x23d81a['ugZhG']),logger[_0x3ab2a4(0x95)](_0x3ab2a4(0x141)+_0x24bdcf),process[_0x3ab2a4(0xe1)](0x0);}catch(_0x2b5bc7){let _0x15013c='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x2b5bc7+'\x20';logger[_0x3ab2a4(0x164)](_0x15013c),_0x15013c+='\x0a'+JSON['stringify'](_0x2b5bc7[_0x3ab2a4(0xb8)]),logger['debug'](_0x3ab2a4(0x86)+_0x2b5bc7[_0x3ab2a4(0xb8)]);if(_0x354033){const _0x4ac20d={};_0x4ac20d['type']=WS_EVENTS[_0x3ab2a4(0x7a)],_0x4ac20d[_0x3ab2a4(0x155)]=_0x15013c,webSocketUtils[_0x3ab2a4(0x178)](_0x354033,_0x4ac20d,_0x23d81a[_0x3ab2a4(0x145)],!![]);}await webSocketUtils[_0x3ab2a4(0x123)](0x7d0);const _0x1b3bc1={};_0x1b3bc1['error']=_0x15013c,await _0x23d81a[_0x3ab2a4(0x7f)](sendInstrumentationEvent,_0xf2a7d3,_0x23d81a[_0x3ab2a4(0x109)],messageTypes['ERROR'],_0x23d81a[_0x3ab2a4(0x152)],_0x1b3bc1,_0xf2a7d3),process[_0x3ab2a4(0xe1)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x1b96f7=a18_0x1ff9;(function(_0x3b7fe3,_0x20732a){const _0x21b239=a18_0x1ff9,_0x2ad848=_0x3b7fe3();while(!![]){try{const _0x387a64=parseInt(_0x21b239(0x13a))/0x1+parseInt(_0x21b239(0x139))/0x2*(-parseInt(_0x21b239(0x13e))/0x3)+parseInt(_0x21b239(0x130))/0x4*(-parseInt(_0x21b239(0x13d))/0x5)+-parseInt(_0x21b239(0x12b))/0x6*(-parseInt(_0x21b239(0x12e))/0x7)+parseInt(_0x21b239(0x13c))/0x8+parseInt(_0x21b239(0x128))/0x9+-parseInt(_0x21b239(0x137))/0xa;if(_0x387a64===_0x20732a)break;else _0x2ad848['push'](_0x2ad848['shift']());}catch(_0x3ff225){_0x2ad848['push'](_0x2ad848['shift']());}}}(a18_0x5754,0xa6826));function a18_0x5754(){const _0x33e628=['desc','start','strict','commandDir','builder','21878720VTSczY','handler','289042maErMQ','1155287lAdVjD','Uewjp','4450144qStgwI','294990cXqeaI','9eOkfmR','usage','bFUEG','recommendCommands','4083534TYcwPj','demandCommand','../config/constants','292260PhjPHp','start_commands','command','189HtwzOF','Start\x20an\x20existing\x20Automation\x20grid.','12CtPJqc','help'];a18_0x5754=function(){return _0x33e628;};return a18_0x5754();}function a18_0x1ff9(_0x5d722d,_0x208459){const _0x575481=a18_0x5754();return a18_0x1ff9=function(_0x1ff92c,_0x4ea4fe){_0x1ff92c=_0x1ff92c-0x126;let _0x55811f=_0x575481[_0x1ff92c];return _0x55811f;},a18_0x1ff9(_0x5d722d,_0x208459);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1b96f7(0x12a));exports[a18_0x1b96f7(0x12d)]=a18_0x1b96f7(0x133),exports[a18_0x1b96f7(0x132)]=a18_0x1b96f7(0x12f),exports[a18_0x1b96f7(0x136)]=function(_0x2c39ea){const _0x43ea0f=a18_0x1b96f7,_0x430db5={};_0x430db5[_0x43ea0f(0x126)]=_0x43ea0f(0x12c),_0x430db5['Uewjp']=_0x43ea0f(0x131);const _0x2211d7=_0x430db5;return _0x2c39ea[_0x43ea0f(0x13f)](HELP_HEADER_MESSAGE[_0x43ea0f(0x133)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x43ea0f(0x135)](_0x2211d7['bFUEG'])[_0x43ea0f(0x129)]()[_0x43ea0f(0x127)]()[_0x43ea0f(0x134)]()['help'](_0x2211d7[_0x43ea0f(0x13b)]);},exports[a18_0x1b96f7(0x138)]=function(_0x35f552){};
1
+ const a18_0x34fce9=a18_0x1729;(function(_0x586507,_0x224201){const _0x5e8387=a18_0x1729,_0xb12650=_0x586507();while(!![]){try{const _0x16ecef=-parseInt(_0x5e8387(0x1ee))/0x1*(parseInt(_0x5e8387(0x1ed))/0x2)+-parseInt(_0x5e8387(0x1fe))/0x3*(-parseInt(_0x5e8387(0x1ec))/0x4)+parseInt(_0x5e8387(0x1e7))/0x5+-parseInt(_0x5e8387(0x1f6))/0x6+-parseInt(_0x5e8387(0x1e8))/0x7*(parseInt(_0x5e8387(0x1f1))/0x8)+parseInt(_0x5e8387(0x1f2))/0x9+parseInt(_0x5e8387(0x1ea))/0xa*(parseInt(_0x5e8387(0x1e9))/0xb);if(_0x16ecef===_0x224201)break;else _0xb12650['push'](_0xb12650['shift']());}catch(_0x477b9c){_0xb12650['push'](_0xb12650['shift']());}}}(a18_0x450b,0x22a78));function a18_0x1729(_0x21bc9b,_0x34404e){const _0x450bdd=a18_0x450b();return a18_0x1729=function(_0x1729dc,_0x5add49){_0x1729dc=_0x1729dc-0x1e7;let _0x581dea=_0x450bdd[_0x1729dc];return _0x581dea;},a18_0x1729(_0x21bc9b,_0x34404e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x34fce9(0x1ef));function a18_0x450b(){const _0x410bd4=['42ZCLyCh','4946vPbhtu','../config/constants','usage','33448KsSSkJ','2022003ZsBTyD','command','builder','JSTtm','429786vkRzZl','desc','help','demandCommand','start_commands','handler','start','commandDir','6QkYXyU','strict','EYGlL','163235NlaHDg','441YboOWS','1077252jcPULW','30aQOLzl','recommendCommands','59468kvaGnh'];a18_0x450b=function(){return _0x410bd4;};return a18_0x450b();}exports[a18_0x34fce9(0x1f3)]=a18_0x34fce9(0x1fc),exports[a18_0x34fce9(0x1f7)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x34fce9(0x1f4)]=function(_0x1cfb12){const _0x4d34ee=a18_0x34fce9,_0x41dbd9={};_0x41dbd9[_0x4d34ee(0x200)]=_0x4d34ee(0x1fa),_0x41dbd9[_0x4d34ee(0x1f5)]=_0x4d34ee(0x1f8);const _0x34fc11=_0x41dbd9;return _0x1cfb12[_0x4d34ee(0x1f0)](HELP_HEADER_MESSAGE[_0x4d34ee(0x1fc)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4d34ee(0x1fd)](_0x34fc11['EYGlL'])[_0x4d34ee(0x1f9)]()[_0x4d34ee(0x1eb)]()[_0x4d34ee(0x1ff)]()['help'](_0x34fc11[_0x4d34ee(0x1f5)]);},exports[a18_0x34fce9(0x1fb)]=function(_0x4d3ada){};
@@ -1 +1 @@
1
- const a19_0x3c67a7=a19_0x4dcb;(function(_0xe12203,_0x1d03cb){const _0x13eb35=a19_0x4dcb,_0x545e37=_0xe12203();while(!![]){try{const _0x281fbf=-parseInt(_0x13eb35(0xb7))/0x1*(-parseInt(_0x13eb35(0xd7))/0x2)+-parseInt(_0x13eb35(0xbb))/0x3+parseInt(_0x13eb35(0xe6))/0x4+-parseInt(_0x13eb35(0xa6))/0x5+-parseInt(_0x13eb35(0xb1))/0x6*(-parseInt(_0x13eb35(0xd4))/0x7)+-parseInt(_0x13eb35(0xcb))/0x8+-parseInt(_0x13eb35(0xcf))/0x9*(-parseInt(_0x13eb35(0xc6))/0xa);if(_0x281fbf===_0x1d03cb)break;else _0x545e37['push'](_0x545e37['shift']());}catch(_0x57fa27){_0x545e37['push'](_0x545e37['shift']());}}}(a19_0x46ee,0xc6d5a));function a19_0x46ee(){const _0xc2cef6=['49TdGAZR','info','bstackUsername','2vEfVrJ','Adding\x20Websocket\x20listeners','../../utils/createk8sClient','replace','hjJel','ERROR','options','statusCode','connectionTimeout','gridId','addListeners','command','JqHHI','bstackAccesskey','unauthorised','3505876gbITrK','<PasswordPlaceholder>','grid-id','body','OxbcR','parse','type','name','menyG','uuMlP','user','password','../../utils/gridComponents','MAliK','argv','YQmTW','UaNow','Gutut','Start\x20an\x20existing\x20Automation\x20grid.','boolean','tdXCS','../../cloudproviders/utils','error','7111910oiHqra','description','../../utils/utilityMethods','clusterName','builder','INFO','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','RpgXp','OMOmv','server-error','462846lBtZEJ','reconnecting-websocket','../../utils/webSocketUtils','RDLqS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','280794xQrlJa','zflWd','desc','region','2080134bQJHWC','debug','jhQSL','readFileSync','usage','clusterRegion','Grid\x20started','Starting\x20grid\x20','ZuZSd','Skip\x20insecure\x20cert\x20verification.','Browserstack','2990VEgoHk','start-grid-called','<UsernamePlaceholder>','stringify','IWakk','9313176ZIojzS','cloudProvider','EMTiy','exit','72153yyjgPy','username','start','../../utils/instrumentationUtils','TOSyT'];a19_0x46ee=function(){return _0xc2cef6;};return a19_0x46ee();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3c67a7(0xb2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x3c67a7(0xa8)),{scaleUpHubDeployment}=require(a19_0x3c67a7(0xf2)),{sendInstrumentationEvent}=require(a19_0x3c67a7(0xd2)),webSocketUtils=require(a19_0x3c67a7(0xb3)),{createK8sClient}=require(a19_0x3c67a7(0xd9)),{getCloudProviderObject}=require(a19_0x3c67a7(0xa4));function a19_0x4dcb(_0x44cf5f,_0x341ff7){const _0x46eeee=a19_0x46ee();return a19_0x4dcb=function(_0x4dcb57,_0x321c42){_0x4dcb57=_0x4dcb57-0x9f;let _0x5f0735=_0x46eeee[_0x4dcb57];return _0x5f0735;},a19_0x4dcb(_0x44cf5f,_0x341ff7);}exports[a19_0x3c67a7(0xe2)]='grid',exports[a19_0x3c67a7(0xb9)]=a19_0x3c67a7(0xa1),exports[a19_0x3c67a7(0xaa)]=function(_0xb34c27){const _0x5f27c1=a19_0x3c67a7,_0x565324={};_0x565324[_0x5f27c1(0xe3)]=_0x5f27c1(0xad),_0x565324[_0x5f27c1(0xae)]='string',_0x565324[_0x5f27c1(0xb8)]=_0x5f27c1(0xc4),_0x565324[_0x5f27c1(0xd3)]=_0x5f27c1(0xa2),_0x565324[_0x5f27c1(0xf5)]='help';const _0x57e5fd=_0x565324,_0x6abb3b={};_0x6abb3b[_0x5f27c1(0xa7)]=_0x57e5fd['JqHHI'],_0x6abb3b[_0x5f27c1(0xec)]=_0x57e5fd[_0x5f27c1(0xae)];const _0xa8859b={};_0xa8859b[_0x5f27c1(0xa7)]=_0x57e5fd[_0x5f27c1(0xb8)],_0xa8859b[_0x5f27c1(0xec)]=_0x57e5fd['TOSyT'],_0xa8859b['default']=![];const _0x4e80e1={};return _0x4e80e1[_0x5f27c1(0xe8)]=_0x6abb3b,_0x4e80e1['skip-tls-cert-verify']=_0xa8859b,_0xb34c27[_0x5f27c1(0xbf)](HELP_HEADER_MESSAGE[_0x5f27c1(0xd1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f27c1(0xdd)](_0x4e80e1)['help'](_0x57e5fd[_0x5f27c1(0xf5)])[_0x5f27c1(0xf4)];},exports['handler']=async function(_0x46a9dc){const _0x16ee09=a19_0x3c67a7,_0x2dc354={'IllXl':_0x16ee09(0xb6),'wtFyF':function(_0x26aa03){return _0x26aa03();},'igMvz':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UaNow':function(_0x468a02,_0x28b913,_0x20f433,_0x4f3cb9,_0x35b57f,_0x677ff8,_0x529b74){return _0x468a02(_0x28b913,_0x20f433,_0x4f3cb9,_0x35b57f,_0x677ff8,_0x529b74);},'OxbcR':_0x16ee09(0xc7),'Gutut':'init-not-called','ilxNp':function(_0x168fae){return _0x168fae();},'RDLqS':_0x16ee09(0xc8),'MAliK':_0x16ee09(0xe7),'menyG':_0x16ee09(0xd8),'IWakk':function(_0x540f23,_0x2d36a7,_0x4bd64e,_0x1d536d){return _0x540f23(_0x2d36a7,_0x4bd64e,_0x1d536d);},'EMTiy':function(_0x4492c1,_0xf71466,_0x1721cc){return _0x4492c1(_0xf71466,_0x1721cc);},'tdXCS':function(_0x980aac,_0x3c94c5,_0x1cfc63){return _0x980aac(_0x3c94c5,_0x1cfc63);},'uuMlP':_0x16ee09(0xc1),'OMOmv':function(_0x4a318a,_0x31353e){return _0x4a318a===_0x31353e;},'ZrEtt':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TPBzs':function(_0xfe79a,_0x2dd05a,_0x2ce8d5,_0x4fc4e1,_0x376169,_0x18fb67,_0x2827b5){return _0xfe79a(_0x2dd05a,_0x2ce8d5,_0x4fc4e1,_0x376169,_0x18fb67,_0x2827b5);},'hjJel':_0x16ee09(0xe5),'ZuZSd':function(_0x2afa86,_0x40ccd9,_0x4b80d3,_0x3dd835,_0x156f86,_0x543f93,_0x2ba1be){return _0x2afa86(_0x40ccd9,_0x4b80d3,_0x3dd835,_0x156f86,_0x543f93,_0x2ba1be);},'RzlUR':'invalid-grid-id','jhQSL':_0x16ee09(0xb0)};let _0x3475c6;try{!_0x46a9dc['gridId']&&(logger[_0x16ee09(0xa5)](_0x2dc354['IllXl']),process['exit'](0x1));!fs['existsSync'](_0x2dc354['wtFyF'](getCredentialsPath))&&(logger[_0x16ee09(0xa5)](_0x2dc354['igMvz']),await _0x2dc354[_0x16ee09(0x9f)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xa0)],null,_0x46a9dc),process['exit'](0x1));logger[_0x16ee09(0xd5)](_0x16ee09(0xc2)+_0x46a9dc[_0x16ee09(0xe0)]),await _0x2dc354['UaNow'](sendInstrumentationEvent,_0x46a9dc,_0x2dc354['OxbcR'],messageTypes[_0x16ee09(0xab)],null,null,_0x46a9dc);const _0x3284db=JSON[_0x16ee09(0xeb)](fs[_0x16ee09(0xbe)](_0x2dc354['ilxNp'](getCredentialsPath)));global_registry[_0x16ee09(0xd6)]=_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xd0)],global_registry[_0x16ee09(0xe4)]=_0x3284db[_0x16ee09(0xc5)]['password'];const _0xbc260e=WS_ENDPOINT[_0x16ee09(0xda)](_0x2dc354[_0x16ee09(0xb4)],_0x3284db['Browserstack'][_0x16ee09(0xd0)])[_0x16ee09(0xda)](_0x2dc354[_0x16ee09(0xf3)],_0x3284db[_0x16ee09(0xc5)]['password']),_0x20c44c={};_0x20c44c['WebSocket']=ws,_0x20c44c[_0x16ee09(0xdf)]=0x36ee80,_0x3475c6=new ReconnectingWebSocket(_0xbc260e,[],_0x20c44c),logger[_0x16ee09(0xbc)](_0x2dc354[_0x16ee09(0xee)]),webSocketUtils[_0x16ee09(0xe1)](_0x3475c6,_0x46a9dc[_0x16ee09(0xf0)],_0x46a9dc[_0x16ee09(0xf1)]);const [_0x605c03,_0x2a1649]=await _0x2dc354[_0x16ee09(0xca)](getGridDetails,_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xd0)],_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xf1)],_0x46a9dc[_0x16ee09(0xe0)]);if(_0x2a1649){const _0x390710=_0x2a1649[_0x16ee09(0xd5)];global_registry[_0x16ee09(0xcc)]=_0x390710[_0x16ee09(0xcc)],global_registry[_0x16ee09(0xc0)]=_0x390710[_0x16ee09(0xba)],global_registry['clusterName']=_0x390710[_0x16ee09(0xa9)];const _0x46c041=await _0x2dc354[_0x16ee09(0x9f)](getCloudProviderObject,_0x390710[_0x16ee09(0xcc)],_0x390710['clusterName'],_0x390710[_0x16ee09(0xed)],_0x3475c6,webSocketUtils,_0x46a9dc),[_0x2f7bf7,_0x14ab66,_0x5f1769,_0x6988e6,_0x44d091,_0x5729d6]=await _0x2dc354[_0x16ee09(0xcd)](createK8sClient,_0x46c041,_0x46a9dc[_0x16ee09(0xac)]);await _0x2dc354[_0x16ee09(0xa3)](scaleUpHubDeployment,_0x14ab66,_0x390710[_0x16ee09(0xed)]),logger[_0x16ee09(0xd5)](_0x2dc354[_0x16ee09(0xef)]),process[_0x16ee09(0xce)](0x0);}_0x2dc354[_0x16ee09(0xaf)](_0x605c03[_0x16ee09(0xde)],0x191)&&(logger['error'](_0x2dc354['ZrEtt']),await _0x2dc354['TPBzs'](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xdb)],null,_0x46a9dc),process['exit'](0x1)),_0x2dc354[_0x16ee09(0xaf)](_0x605c03[_0x16ee09(0xde)],0x190)&&(logger[_0x16ee09(0xa5)](JSON['parse'](_0x605c03[_0x16ee09(0xe9)])['message']),await _0x2dc354[_0x16ee09(0xc3)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes['ERROR'],_0x2dc354['RzlUR'],null,_0x46a9dc),process[_0x16ee09(0xce)](0x1)),logger[_0x16ee09(0xa5)](_0x16ee09(0xb5)+JSON[_0x16ee09(0xc9)](_0x605c03)),await _0x2dc354[_0x16ee09(0xc3)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xbd)],_0x605c03,_0x46a9dc),process['exit'](0x1);}catch(_0x425391){const _0x1b7b6b='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x425391+'\x20\x0a'+JSON[_0x16ee09(0xc9)](_0x425391['stack'])+'\x20';logger['error'](_0x1b7b6b),process[_0x16ee09(0xce)](0x1);}};
1
+ function a19_0x189e(){const _0x4481ff=['WrvDO','unauthorised','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Skip\x20insecure\x20cert\x20verification.','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','desc','help','argv','WHaUy','stringify','type','info','username','UYLKR','builder','ERROR','command','description','INFO','default','evfEi','grid-id','UgulM','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','kskwb','statusCode','server-error','skipTlsCertVerify','../../utils/gridComponents','../../utils/createk8sClient','debug','Grid\x20started','error','bstackUsername','<PasswordPlaceholder>','body','invalid-grid-id','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ZKHZL','14vcVOft','init-not-called','wvbtR','jbJli','JfWAz','reconnecting-websocket','clusterName','replace','password','19756HDMUwS','Adding\x20Websocket\x20listeners','95nRtIPp','6451272rSWbYc','123xEHDBb','addListeners','bstackAccesskey','4164yoLGvc','OCkGF','WebSocket','Starting\x20grid\x20','message','qVyLV','UIHYq','388712puZZAx','Start\x20an\x20existing\x20Automation\x20grid.','name','usage','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','user','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bWQhz','286356EKSWon','Browserstack','../../utils/instrumentationUtils','Njujf','bWuQe','81237efKEhs','105pIimcL','boolean','nqLjZ','exit','80684jtGEtF','region','../../utils/utilityMethods','10687860PFjAmz','gridId','existsSync','cloudProvider','jedos','stack','oIDmd'];a19_0x189e=function(){return _0x4481ff;};return a19_0x189e();}const a19_0x82ae23=a19_0x4a0f;(function(_0x5344f3,_0x51cdda){const _0x25a1d2=a19_0x4a0f,_0x2ad563=_0x5344f3();while(!![]){try{const _0x457ac4=-parseInt(_0x25a1d2(0x8a))/0x1*(-parseInt(_0x25a1d2(0xc2))/0x2)+parseInt(_0x25a1d2(0xcf))/0x3*(-parseInt(_0x25a1d2(0x8f))/0x4)+parseInt(_0x25a1d2(0xcd))/0x5*(-parseInt(_0x25a1d2(0x85))/0x6)+-parseInt(_0x25a1d2(0x8b))/0x7*(-parseInt(_0x25a1d2(0x7b))/0x8)+-parseInt(_0x25a1d2(0xce))/0x9+parseInt(_0x25a1d2(0x92))/0xa+parseInt(_0x25a1d2(0xcb))/0xb*(parseInt(_0x25a1d2(0xd2))/0xc);if(_0x457ac4===_0x51cdda)break;else _0x2ad563['push'](_0x2ad563['shift']());}catch(_0x4d7713){_0x2ad563['push'](_0x2ad563['shift']());}}}(a19_0x189e,0x838ff));function a19_0x4a0f(_0x5c7204,_0x5b2e36){const _0x189e15=a19_0x189e();return a19_0x4a0f=function(_0x4a0f25,_0x356bae){_0x4a0f25=_0x4a0f25-0x75;let _0x5dcec1=_0x189e15[_0x4a0f25];return _0x5dcec1;},a19_0x4a0f(_0x5c7204,_0x5b2e36);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x82ae23(0xc7)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x82ae23(0x91)),{scaleUpHubDeployment}=require(a19_0x82ae23(0xb7)),{sendInstrumentationEvent}=require(a19_0x82ae23(0x87)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x82ae23(0xb8)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x82ae23(0xaa)]=a19_0x82ae23(0x9b),exports[a19_0x82ae23(0x9f)]=a19_0x82ae23(0x7c),exports[a19_0x82ae23(0xa8)]=function(_0x2fa2d0){const _0x4bf6c8=a19_0x82ae23,_0x482a2c={};_0x482a2c[_0x4bf6c8(0xb0)]=_0x4bf6c8(0xc0),_0x482a2c['bWuQe']='string',_0x482a2c[_0x4bf6c8(0xc1)]=_0x4bf6c8(0x9d),_0x482a2c['qVyLV']=_0x4bf6c8(0x8c),_0x482a2c[_0x4bf6c8(0xc5)]='help';const _0x5d8a15=_0x482a2c,_0x560df8={};_0x560df8[_0x4bf6c8(0xab)]=_0x5d8a15[_0x4bf6c8(0xb0)],_0x560df8[_0x4bf6c8(0xa4)]=_0x5d8a15[_0x4bf6c8(0x89)];const _0x13b9eb={};_0x13b9eb[_0x4bf6c8(0xab)]=_0x5d8a15['ZKHZL'],_0x13b9eb[_0x4bf6c8(0xa4)]=_0x5d8a15[_0x4bf6c8(0x79)],_0x13b9eb[_0x4bf6c8(0xad)]=![];const _0x22b65a={};return _0x22b65a[_0x4bf6c8(0xaf)]=_0x560df8,_0x22b65a['skip-tls-cert-verify']=_0x13b9eb,_0x2fa2d0[_0x4bf6c8(0x7e)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4bf6c8(0x82)](_0x22b65a)[_0x4bf6c8(0xa0)](_0x5d8a15['jbJli'])[_0x4bf6c8(0xa1)];},exports['handler']=async function(_0x27cbf1){const _0x5dbc44=a19_0x82ae23,_0x1a3356={'nqLjZ':_0x5dbc44(0xb2),'JfWAz':function(_0x593aa1){return _0x593aa1();},'avRqJ':_0x5dbc44(0x83),'Njujf':function(_0xa90c32,_0xea941d,_0x524d60,_0x31008a,_0x133d53,_0x146b1f,_0xf71929){return _0xa90c32(_0xea941d,_0x524d60,_0x31008a,_0x133d53,_0x146b1f,_0xf71929);},'jedos':'start-grid-called','WrvDO':_0x5dbc44(0xc3),'RfvWw':function(_0x32bf33){return _0x32bf33();},'bWQhz':'<UsernamePlaceholder>','wvbtR':_0x5dbc44(0xbd),'LYDiW':_0x5dbc44(0xcc),'boFdW':function(_0x32d6e5,_0x24037a,_0x93005d,_0x511602){return _0x32d6e5(_0x24037a,_0x93005d,_0x511602);},'OCkGF':function(_0x5e4593,_0x59d9a1,_0x56c4b4){return _0x5e4593(_0x59d9a1,_0x56c4b4);},'UYLKR':function(_0xbdc636,_0x484b0a,_0x3808cb){return _0xbdc636(_0x484b0a,_0x3808cb);},'WHaUy':_0x5dbc44(0xba),'evfEi':function(_0x37bc4e,_0x4c57f3){return _0x37bc4e===_0x4c57f3;},'kskwb':_0x5dbc44(0x80),'UIHYq':_0x5dbc44(0x9a),'oIDmd':_0x5dbc44(0xbf),'ZqQzc':_0x5dbc44(0xb5)};let _0x34a345;try{!_0x27cbf1[_0x5dbc44(0x93)]&&(logger[_0x5dbc44(0xbb)](_0x1a3356[_0x5dbc44(0x8d)]),process[_0x5dbc44(0x8e)](0x1));!fs[_0x5dbc44(0x94)](_0x1a3356[_0x5dbc44(0xc6)](getCredentialsPath))&&(logger[_0x5dbc44(0xbb)](_0x1a3356['avRqJ']),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xa9)],_0x1a3356[_0x5dbc44(0x99)],null,_0x27cbf1),process[_0x5dbc44(0x8e)](0x1));logger[_0x5dbc44(0xa5)](_0x5dbc44(0x77)+_0x27cbf1[_0x5dbc44(0x93)]),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xac)],null,null,_0x27cbf1);const _0xd62598=JSON['parse'](fs[_0x5dbc44(0x7f)](_0x1a3356['RfvWw'](getCredentialsPath)));global_registry[_0x5dbc44(0xbc)]=_0xd62598[_0x5dbc44(0x86)]['username'],global_registry[_0x5dbc44(0xd1)]=_0xd62598[_0x5dbc44(0x86)][_0x5dbc44(0xca)];const _0x38f924=WS_ENDPOINT[_0x5dbc44(0xc9)](_0x1a3356[_0x5dbc44(0x84)],_0xd62598['Browserstack']['username'])[_0x5dbc44(0xc9)](_0x1a3356[_0x5dbc44(0xc4)],_0xd62598[_0x5dbc44(0x86)]['password']),_0x1eb902={};_0x1eb902[_0x5dbc44(0x76)]=ws,_0x1eb902[_0x5dbc44(0xb1)]=0x36ee80,_0x34a345=new ReconnectingWebSocket(_0x38f924,[],_0x1eb902),logger[_0x5dbc44(0xb9)](_0x1a3356['LYDiW']),webSocketUtils[_0x5dbc44(0xd0)](_0x34a345,_0x27cbf1[_0x5dbc44(0x81)],_0x27cbf1[_0x5dbc44(0xca)]);const [_0x4d38ba,_0x1e0600]=await _0x1a3356['boFdW'](getGridDetails,_0xd62598[_0x5dbc44(0x86)][_0x5dbc44(0xa6)],_0xd62598[_0x5dbc44(0x86)][_0x5dbc44(0xca)],_0x27cbf1[_0x5dbc44(0x93)]);if(_0x1e0600){const _0x23a539=_0x1e0600[_0x5dbc44(0xa5)];global_registry[_0x5dbc44(0x95)]=_0x23a539['cloudProvider'],global_registry['clusterRegion']=_0x23a539[_0x5dbc44(0x90)],global_registry[_0x5dbc44(0xc8)]=_0x23a539[_0x5dbc44(0xc8)];const _0x6cafce=await _0x1a3356[_0x5dbc44(0x88)](getCloudProviderObject,_0x23a539[_0x5dbc44(0x95)],_0x23a539['clusterName'],_0x23a539[_0x5dbc44(0x7d)],_0x34a345,webSocketUtils,_0x27cbf1),[_0x316399,_0x2e05df,_0x280cb3,_0x24a559,_0x114e41,_0x2c945b]=await _0x1a3356[_0x5dbc44(0x75)](createK8sClient,_0x6cafce,_0x27cbf1[_0x5dbc44(0xb6)]);await _0x1a3356[_0x5dbc44(0xa7)](scaleUpHubDeployment,_0x2e05df,_0x23a539['name']),logger['info'](_0x1a3356[_0x5dbc44(0xa2)]),process[_0x5dbc44(0x8e)](0x0);}_0x1a3356[_0x5dbc44(0xae)](_0x4d38ba[_0x5dbc44(0xb4)],0x191)&&(logger[_0x5dbc44(0xbb)](_0x1a3356[_0x5dbc44(0xb3)]),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xa9)],_0x1a3356[_0x5dbc44(0x7a)],null,_0x27cbf1),process['exit'](0x1)),_0x1a3356[_0x5dbc44(0xae)](_0x4d38ba[_0x5dbc44(0xb4)],0x190)&&(logger[_0x5dbc44(0xbb)](JSON['parse'](_0x4d38ba[_0x5dbc44(0xbe)])[_0x5dbc44(0x78)]),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xa9)],_0x1a3356[_0x5dbc44(0x98)],null,_0x27cbf1),process[_0x5dbc44(0x8e)](0x1)),logger['error'](_0x5dbc44(0x9c)+JSON[_0x5dbc44(0xa3)](_0x4d38ba)),await _0x1a3356[_0x5dbc44(0x88)](sendInstrumentationEvent,_0x27cbf1,_0x1a3356[_0x5dbc44(0x96)],messageTypes[_0x5dbc44(0xa9)],_0x1a3356['ZqQzc'],_0x4d38ba,_0x27cbf1),process[_0x5dbc44(0x8e)](0x1);}catch(_0x5788cf){const _0x50adda=_0x5dbc44(0x9e)+_0x5788cf+'\x20\x0a'+JSON['stringify'](_0x5788cf[_0x5dbc44(0x97)])+'\x20';logger['error'](_0x50adda),process[_0x5dbc44(0x8e)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x507def=a20_0x4a4e;function a20_0x4a4e(_0x11cf95,_0x5a3591){const _0x191050=a20_0x1910();return a20_0x4a4e=function(_0x4a4ea0,_0x39a6ad){_0x4a4ea0=_0x4a4ea0-0x7e;let _0x5966e4=_0x191050[_0x4a4ea0];return _0x5966e4;},a20_0x4a4e(_0x11cf95,_0x5a3591);}function a20_0x1910(){const _0x4ba88b=['handler','XZqqF','usage','fTVXc','help','228102LwVZdV','91435yCSuNX','builder','12511490TpDoRb','command','787874oCMuYc','66dRCoqS','commandDir','138987ESascC','1328810rKteio','1pBesLF','stop','stop_commands','recommendCommands','../config/constants','desc','Stop\x20a\x20running\x20Automation\x20grid.','192ikMukX','1052096GgNeik'];a20_0x1910=function(){return _0x4ba88b;};return a20_0x1910();}(function(_0x5e12d8,_0x50c767){const _0x29fd3c=a20_0x4a4e,_0x44c63e=_0x5e12d8();while(!![]){try{const _0x1cf60e=parseInt(_0x29fd3c(0x8f))/0x1*(-parseInt(_0x29fd3c(0x8a))/0x2)+-parseInt(_0x29fd3c(0x85))/0x3+parseInt(_0x29fd3c(0x7f))/0x4+-parseInt(_0x29fd3c(0x86))/0x5*(parseInt(_0x29fd3c(0x8b))/0x6)+-parseInt(_0x29fd3c(0x8e))/0x7+parseInt(_0x29fd3c(0x7e))/0x8*(-parseInt(_0x29fd3c(0x8d))/0x9)+parseInt(_0x29fd3c(0x88))/0xa;if(_0x1cf60e===_0x50c767)break;else _0x44c63e['push'](_0x44c63e['shift']());}catch(_0x4ac5ae){_0x44c63e['push'](_0x44c63e['shift']());}}}(a20_0x1910,0x44fd7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x507def(0x93));exports[a20_0x507def(0x89)]='stop',exports[a20_0x507def(0x94)]=a20_0x507def(0x95),exports[a20_0x507def(0x87)]=function(_0x27ca59){const _0x39257a=a20_0x507def,_0x6e4e7d={};_0x6e4e7d['XZqqF']=_0x39257a(0x91),_0x6e4e7d[_0x39257a(0x83)]=_0x39257a(0x84);const _0x2c36a8=_0x6e4e7d;return _0x27ca59[_0x39257a(0x82)](HELP_HEADER_MESSAGE[_0x39257a(0x90)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x39257a(0x8c)](_0x2c36a8[_0x39257a(0x81)])['demandCommand']()[_0x39257a(0x92)]()['strict']()[_0x39257a(0x84)](_0x2c36a8[_0x39257a(0x83)]);},exports[a20_0x507def(0x80)]=function(_0x40ce8d){};
1
+ const a20_0x547f5c=a20_0x2783;function a20_0x2783(_0x93be7f,_0x4acc70){const _0x11ec89=a20_0x11ec();return a20_0x2783=function(_0x27836c,_0x5a29ca){_0x27836c=_0x27836c-0x132;let _0x488e2b=_0x11ec89[_0x27836c];return _0x488e2b;},a20_0x2783(_0x93be7f,_0x4acc70);}(function(_0xf640e9,_0x4f1dcc){const _0x3c7c1d=a20_0x2783,_0x4ab71c=_0xf640e9();while(!![]){try{const _0x524314=-parseInt(_0x3c7c1d(0x149))/0x1+parseInt(_0x3c7c1d(0x13d))/0x2*(-parseInt(_0x3c7c1d(0x146))/0x3)+-parseInt(_0x3c7c1d(0x136))/0x4+-parseInt(_0x3c7c1d(0x147))/0x5+-parseInt(_0x3c7c1d(0x13f))/0x6*(parseInt(_0x3c7c1d(0x143))/0x7)+-parseInt(_0x3c7c1d(0x144))/0x8+parseInt(_0x3c7c1d(0x13a))/0x9;if(_0x524314===_0x4f1dcc)break;else _0x4ab71c['push'](_0x4ab71c['shift']());}catch(_0xadb075){_0x4ab71c['push'](_0x4ab71c['shift']());}}}(a20_0x11ec,0x8d29a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x547f5c(0x148));function a20_0x11ec(){const _0x2a7b30=['desc','handler','38047491SjaGow','SVhoX','stop','1473238PwVpcb','Stop\x20a\x20running\x20Automation\x20grid.','678906tNleJe','demandCommand','stop_commands','usage','7PEVoDU','4614320osjExQ','builder','3XRkVRK','4652515tkyjDj','../config/constants','1083773bINTqI','strict','help','command','Ikqal','833844LdineK','recommendCommands'];a20_0x11ec=function(){return _0x2a7b30;};return a20_0x11ec();}exports[a20_0x547f5c(0x134)]='stop',exports[a20_0x547f5c(0x138)]=a20_0x547f5c(0x13e),exports[a20_0x547f5c(0x145)]=function(_0x2db100){const _0x1cb761=a20_0x547f5c,_0x39f57b={};_0x39f57b['Ikqal']=_0x1cb761(0x141),_0x39f57b[_0x1cb761(0x13b)]=_0x1cb761(0x133);const _0x13aff7=_0x39f57b;return _0x2db100[_0x1cb761(0x142)](HELP_HEADER_MESSAGE[_0x1cb761(0x13c)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x13aff7[_0x1cb761(0x135)])[_0x1cb761(0x140)]()[_0x1cb761(0x137)]()[_0x1cb761(0x132)]()['help'](_0x13aff7[_0x1cb761(0x13b)]);},exports[a20_0x547f5c(0x139)]=function(_0x7fc353){};
@@ -1 +1 @@
1
- const a21_0x40d87d=a21_0x1007;function a21_0x398e(){const _0x596252=['<PasswordPlaceholder>','ERROR','../../config/logger','3647124bxbblA','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','epilogue','invalid-grid-id','nXQLv','../../utils/gridComponents','grid-id','686885xbbRXG','skipTlsCertVerify','../../utils/instrumentationUtils','LwHOp','YyLDh','connectionTimeout','WebSocket','stack','command','ncGIW','../../config/constants','boolean','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','init-not-called','Adding\x20Websocket\x20listeners','string','AvxnF','JxhiN','type','36213OzIDXU','help','clusterName','gridId','region','1103893nKpIIm','unauthorised','password','argv','QkeJv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','RSFFo','cloudProvider','name','user','error','JSkcV','scNtO','XpOwE','existsSync','info','12lbBhYj','Stop\x20a\x20running\x20Automation\x20grid.','statusCode','reconnecting-websocket','1287304gBkYsH','<UsernamePlaceholder>','description','readFileSync','MEfaD','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','skip-tls-cert-verify','stop','username','body','txEhl','../../utils/createk8sClient','AMoOI','hwbLH','bstackUsername','21337376oVzXhU','usage','kgeBS','desc','../../utils/webSocketUtils','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','myUlG','exit','default','Browserstack','3620199MYxJWy','handler','DvdPQ','message','bstackAccesskey','MWcCU'];a21_0x398e=function(){return _0x596252;};return a21_0x398e();}(function(_0x2c738a,_0x2903df){const _0x59dff5=a21_0x1007,_0x401509=_0x2c738a();while(!![]){try{const _0x379683=-parseInt(_0x59dff5(0x90))/0x1+parseInt(_0x59dff5(0xa9))/0x2+-parseInt(_0x59dff5(0xc3))/0x3+-parseInt(_0x59dff5(0x76))/0x4+parseInt(_0x59dff5(0x7d))/0x5+parseInt(_0x59dff5(0xa5))/0x6*(-parseInt(_0x59dff5(0x95))/0x7)+parseInt(_0x59dff5(0xb8))/0x8;if(_0x379683===_0x2903df)break;else _0x401509['push'](_0x401509['shift']());}catch(_0x305195){_0x401509['push'](_0x401509['shift']());}}}(a21_0x398e,0xeec9c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x40d87d(0xa8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x40d87d(0x87)),{logger}=require(a21_0x40d87d(0x75)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x40d87d(0x7b)),{sendInstrumentationEvent}=require(a21_0x40d87d(0x7f)),webSocketUtils=require(a21_0x40d87d(0xbc)),{createK8sClient}=require(a21_0x40d87d(0xb4)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x1007(_0x10a980,_0x2a6aa0){const _0x398e19=a21_0x398e();return a21_0x1007=function(_0x100775,_0x5eb099){_0x100775=_0x100775-0x75;let _0x403444=_0x398e19[_0x100775];return _0x403444;},a21_0x1007(_0x10a980,_0x2a6aa0);}exports[a21_0x40d87d(0x85)]='grid',exports[a21_0x40d87d(0xbb)]=a21_0x40d87d(0xa6),exports['builder']=function(_0x1523f8){const _0x404826=a21_0x40d87d,_0x1b98ba={};_0x1b98ba[_0x404826(0x8e)]=_0x404826(0xae),_0x1b98ba[_0x404826(0xa2)]=_0x404826(0x8c),_0x1b98ba[_0x404826(0x9b)]='Skip\x20insecure\x20cert\x20verification.',_0x1b98ba[_0x404826(0xb5)]=_0x404826(0x88),_0x1b98ba['tudoa']=_0x404826(0x91);const _0x3220d0=_0x1b98ba,_0x4cddaa={};_0x4cddaa[_0x404826(0xab)]=_0x3220d0['JxhiN'],_0x4cddaa[_0x404826(0x8f)]=_0x3220d0['XpOwE'];const _0x3aa181={};_0x3aa181['description']=_0x3220d0[_0x404826(0x9b)],_0x3aa181[_0x404826(0x8f)]=_0x3220d0[_0x404826(0xb5)],_0x3aa181[_0x404826(0xc1)]=![];const _0x535797={};return _0x535797[_0x404826(0x7c)]=_0x4cddaa,_0x535797[_0x404826(0xaf)]=_0x3aa181,_0x1523f8[_0x404826(0xb9)](HELP_HEADER_MESSAGE[_0x404826(0xb0)])[_0x404826(0x78)](HELP_FOOTER_MESSAGE)[_0x404826(0xbd)](_0x535797)['help'](_0x3220d0['tudoa'])[_0x404826(0x98)];},exports[a21_0x40d87d(0xc4)]=async function(_0x4bcdab){const _0x1398ff=a21_0x40d87d,_0x1eb35d={'YyLDh':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','kDheu':function(_0xf01e23){return _0xf01e23();},'TAwPk':_0x1398ff(0xbe),'kgeBS':function(_0x2b623b,_0x16a0d1,_0x9a1bf5,_0xf576ee,_0xab0f9f,_0x4787c0,_0x3b1989){return _0x2b623b(_0x16a0d1,_0x9a1bf5,_0xf576ee,_0xab0f9f,_0x4787c0,_0x3b1989);},'nXQLv':'stop-grid-called','JSkcV':_0x1398ff(0x8a),'hwbLH':function(_0x5e5a0b,_0x59890e,_0x2b0842,_0x215742,_0x2091e3,_0x44c1d6,_0x2f97c4){return _0x5e5a0b(_0x59890e,_0x2b0842,_0x215742,_0x2091e3,_0x44c1d6,_0x2f97c4);},'cVXGp':function(_0x26ceb9){return _0x26ceb9();},'uwmke':_0x1398ff(0xaa),'scNtO':_0x1398ff(0xc9),'DvdPQ':_0x1398ff(0x8b),'hZEcA':function(_0x3d9dff,_0x39e829,_0x5c6729,_0x288fe1){return _0x3d9dff(_0x39e829,_0x5c6729,_0x288fe1);},'AvxnF':function(_0x17bca8,_0x3fb7d1,_0x2e244f){return _0x17bca8(_0x3fb7d1,_0x2e244f);},'myUlG':function(_0xf17430,_0x371be0,_0x13d67b){return _0xf17430(_0x371be0,_0x13d67b);},'MWcCU':'Grid\x20stoppped.','LwHOp':function(_0x1e90ca,_0x536248){return _0x1e90ca===_0x536248;},'MEfaD':_0x1398ff(0x89),'txEhl':_0x1398ff(0x96),'liuPb':function(_0x2586e8,_0x22bda9){return _0x2586e8===_0x22bda9;},'QkeJv':_0x1398ff(0x79),'ncGIW':'server-error'};let _0x5a0570;try{!_0x4bcdab[_0x1398ff(0x93)]&&(logger[_0x1398ff(0x9f)](_0x1eb35d[_0x1398ff(0x81)]),process[_0x1398ff(0xc0)](0x1));!fs[_0x1398ff(0xa3)](_0x1eb35d['kDheu'](getCredentialsPath))&&(logger[_0x1398ff(0x9f)](_0x1eb35d['TAwPk']),await _0x1eb35d['kgeBS'](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0xa0)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1));logger[_0x1398ff(0xa4)]('Stopping\x20grid\x20'+_0x4bcdab[_0x1398ff(0x93)]),await _0x1eb35d[_0x1398ff(0xb6)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes['INFO'],null,null,_0x4bcdab);const _0x39cdc7=JSON['parse'](fs[_0x1398ff(0xac)](_0x1eb35d['cVXGp'](getCredentialsPath)));global_registry[_0x1398ff(0xb7)]=_0x39cdc7[_0x1398ff(0xc2)]['username'],global_registry[_0x1398ff(0xc7)]=_0x39cdc7['Browserstack'][_0x1398ff(0x97)];const _0xec67e4=WS_ENDPOINT['replace'](_0x1eb35d['uwmke'],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0xb1)])['replace'](_0x1eb35d[_0x1398ff(0xa1)],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0x97)]),_0x1ca27e={};_0x1ca27e[_0x1398ff(0x83)]=ws,_0x1ca27e[_0x1398ff(0x82)]=0x36ee80,_0x5a0570=new ReconnectingWebSocket(_0xec67e4,[],_0x1ca27e),logger['debug'](_0x1eb35d[_0x1398ff(0xc5)]),webSocketUtils['addListeners'](_0x5a0570,_0x4bcdab[_0x1398ff(0x9e)],_0x4bcdab['password']);const [_0x1a0fec,_0x406906]=await _0x1eb35d['hZEcA'](getGridDetails,_0x39cdc7['Browserstack'][_0x1398ff(0xb1)],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0x97)],_0x4bcdab[_0x1398ff(0x93)]);if(_0x406906){const _0xdb9db=_0x406906['info'];global_registry[_0x1398ff(0x9c)]=_0xdb9db[_0x1398ff(0x9c)],global_registry['clusterRegion']=_0xdb9db[_0x1398ff(0x94)],global_registry[_0x1398ff(0x92)]=_0xdb9db[_0x1398ff(0x92)];const _0x5eb537=await _0x1eb35d['kgeBS'](getCloudProviderObject,_0xdb9db['cloudProvider'],_0xdb9db['clusterName'],_0xdb9db[_0x1398ff(0x9d)],_0x5a0570,webSocketUtils,_0x4bcdab),[_0x2c4c11,_0x2a3c07,_0x2a07ed,_0xaa2aa7,_0x1eb8c6,_0x16f405]=await _0x1eb35d[_0x1398ff(0x8d)](createK8sClient,_0x5eb537,_0x4bcdab[_0x1398ff(0x7e)]);await _0x1eb35d[_0x1398ff(0xbf)](scaleDownHubDeployment,_0x2a3c07,_0xdb9db[_0x1398ff(0x9d)]),logger['info'](_0x1eb35d[_0x1398ff(0xc8)]),process[_0x1398ff(0xc0)](0x0);}_0x1eb35d[_0x1398ff(0x80)](_0x1a0fec[_0x1398ff(0xa7)],0x191)&&(logger[_0x1398ff(0x9f)](_0x1eb35d[_0x1398ff(0xad)]),await _0x1eb35d[_0x1398ff(0xba)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d[_0x1398ff(0x7a)],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0xb3)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1)),_0x1eb35d['liuPb'](_0x1a0fec[_0x1398ff(0xa7)],0x190)&&(logger[_0x1398ff(0x9f)](JSON['parse'](_0x1a0fec[_0x1398ff(0xb2)])[_0x1398ff(0xc6)]),await _0x1eb35d[_0x1398ff(0xb6)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0x99)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1)),logger['error'](_0x1398ff(0x9a)+JSON['stringify'](_0x1a0fec)),await _0x1eb35d[_0x1398ff(0xba)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d[_0x1398ff(0x7a)],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0x86)],_0x1a0fec,_0x4bcdab),process[_0x1398ff(0xc0)](0x1);}catch(_0x1f9023){const _0x5c33a5=_0x1398ff(0x77)+_0x1f9023+'\x20\x0a'+JSON['stringify'](_0x1f9023[_0x1398ff(0x84)])+'\x20';logger[_0x1398ff(0x9f)](_0x5c33a5),process[_0x1398ff(0xc0)](0x1);}};
1
+ const a21_0x4e8a3c=a21_0x3d11;(function(_0x9387d7,_0x2e1892){const _0xc47129=a21_0x3d11,_0x1fff1d=_0x9387d7();while(!![]){try{const _0x1c5da9=parseInt(_0xc47129(0x1c7))/0x1+-parseInt(_0xc47129(0x1e5))/0x2+parseInt(_0xc47129(0x1c5))/0x3*(-parseInt(_0xc47129(0x1ee))/0x4)+-parseInt(_0xc47129(0x1e8))/0x5*(-parseInt(_0xc47129(0x1bb))/0x6)+-parseInt(_0xc47129(0x1f5))/0x7*(-parseInt(_0xc47129(0x1ed))/0x8)+parseInt(_0xc47129(0x1a0))/0x9+-parseInt(_0xc47129(0x1ab))/0xa;if(_0x1c5da9===_0x2e1892)break;else _0x1fff1d['push'](_0x1fff1d['shift']());}catch(_0x4ca9b8){_0x1fff1d['push'](_0x1fff1d['shift']());}}}(a21_0x5724,0xe1358));function a21_0x3d11(_0x2498f7,_0x1d774f){const _0x57244b=a21_0x5724();return a21_0x3d11=function(_0x3d1126,_0x5c7cb5){_0x3d1126=_0x3d1126-0x19d;let _0x4d01e2=_0x57244b[_0x3d1126];return _0x4d01e2;},a21_0x3d11(_0x2498f7,_0x1d774f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x4e8a3c(0x1f6)),{getCredentialsPath,getGridDetails}=require(a21_0x4e8a3c(0x1b0)),{scaleDownHubDeployment}=require(a21_0x4e8a3c(0x1a6)),{sendInstrumentationEvent}=require(a21_0x4e8a3c(0x1f1)),webSocketUtils=require(a21_0x4e8a3c(0x1b3)),{createK8sClient}=require(a21_0x4e8a3c(0x1f3)),{getCloudProviderObject}=require(a21_0x4e8a3c(0x1c6));function a21_0x5724(){const _0x4922a9=['skip-tls-cert-verify','7EEeRMM','../../config/logger','parse','error','BQSas','addListeners','usage','16320438bGWzJP','epilogue','Adding\x20Websocket\x20listeners','default','uObAj','clusterName','../../utils/gridComponents','bstackAccesskey','yukRv','TjGvv','VtqAQ','12864640FtxdFK','pvOZD','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/utilityMethods','yzeDT','bZnzm','../../utils/webSocketUtils','<UsernamePlaceholder>','dCSbN','Skip\x20insecure\x20cert\x20verification.','Stop\x20a\x20running\x20Automation\x20grid.','stop','BIKcU','info','288186RzEgFD','gridId','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','message','stop-grid-called','skipTlsCertVerify','Browserstack','ggKks','pvllj','command','51PHjirl','../../cloudproviders/utils','1058935AQrhcV','DUpbi','boolean','UsPyX','help','cloudProvider','Peevn','Zqneb','INFO','IwOME','ERROR','clusterRegion','server-error','password','options','zoFfS','<PasswordPlaceholder>','name','PuuTT','Yacuf','existsSync','connectionTimeout','IQAUk','dLaPW','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','statusCode','Stopping\x20grid\x20','grid','2289420gkkolZ','description','stack','25xxKazF','username','WkjrP','Grid\x20stoppped.','stringify','12815248QtBCTB','320176QzuRej','replace','bstackUsername','../../utils/instrumentationUtils','user','../../utils/createk8sClient'];a21_0x5724=function(){return _0x4922a9;};return a21_0x5724();}exports[a21_0x4e8a3c(0x1c4)]=a21_0x4e8a3c(0x1e4),exports['desc']=a21_0x4e8a3c(0x1b7),exports['builder']=function(_0x1ee0b8){const _0x186abf=a21_0x4e8a3c,_0x4e7437={};_0x4e7437[_0x186abf(0x1c2)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x4e7437[_0x186abf(0x1ac)]='string',_0x4e7437[_0x186abf(0x1b5)]=_0x186abf(0x1b6),_0x4e7437['pvllj']=_0x186abf(0x1c9),_0x4e7437[_0x186abf(0x1ca)]=_0x186abf(0x1cb);const _0x17d556=_0x4e7437,_0x154d60={};_0x154d60[_0x186abf(0x1e6)]=_0x17d556[_0x186abf(0x1c2)],_0x154d60['type']=_0x17d556['pvOZD'];const _0x21a91e={};_0x21a91e['description']=_0x17d556[_0x186abf(0x1b5)],_0x21a91e['type']=_0x17d556[_0x186abf(0x1c3)],_0x21a91e[_0x186abf(0x1a3)]=![];const _0x2d2ffe={};return _0x2d2ffe[_0x186abf(0x1e1)]=_0x154d60,_0x2d2ffe[_0x186abf(0x1f4)]=_0x21a91e,_0x1ee0b8[_0x186abf(0x19f)](HELP_HEADER_MESSAGE[_0x186abf(0x1b8)])[_0x186abf(0x1a1)](HELP_FOOTER_MESSAGE)[_0x186abf(0x1d5)](_0x2d2ffe)['help'](_0x17d556[_0x186abf(0x1ca)])['argv'];},exports[a21_0x4e8a3c(0x1df)]=async function(_0x580146){const _0x15ccb2=a21_0x4e8a3c,_0x8b2024={'eocXo':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','DUpbi':function(_0xd0e05f){return _0xd0e05f();},'bZnzm':_0x15ccb2(0x1e0),'yzeDT':function(_0xb1d941,_0x5944e0,_0x5b609e,_0x124349,_0x41faac,_0x10605d,_0xbb5fc8){return _0xb1d941(_0x5944e0,_0x5b609e,_0x124349,_0x41faac,_0x10605d,_0xbb5fc8);},'Peevn':_0x15ccb2(0x1bf),'PuuTT':'init-not-called','Zqneb':_0x15ccb2(0x1b4),'TjGvv':_0x15ccb2(0x1d7),'zoFfS':_0x15ccb2(0x1a2),'VtqAQ':function(_0x1542c9,_0x1d60f9,_0x4b4d1f,_0x1fde9d){return _0x1542c9(_0x1d60f9,_0x4b4d1f,_0x1fde9d);},'IQAUk':function(_0x208262,_0x4a8297,_0x336b91){return _0x208262(_0x4a8297,_0x336b91);},'WkjrP':_0x15ccb2(0x1eb),'Yacuf':function(_0x1f6a6a,_0x1a56c1){return _0x1f6a6a===_0x1a56c1;},'IwOME':_0x15ccb2(0x1ad),'dLaPW':function(_0x37f318,_0x8d04d8,_0xdac47b,_0x4b80ba,_0x59b89d,_0x2a7fc2,_0x374e20){return _0x37f318(_0x8d04d8,_0xdac47b,_0x4b80ba,_0x59b89d,_0x2a7fc2,_0x374e20);},'UbVDF':'unauthorised','BIKcU':function(_0x1b07ea,_0x211608){return _0x1b07ea===_0x211608;},'BQSas':function(_0x5c15ca,_0x4131fb,_0x3e1275,_0x2d5b8c,_0x52a1ee,_0x58aa2b,_0x2e6cca){return _0x5c15ca(_0x4131fb,_0x3e1275,_0x2d5b8c,_0x52a1ee,_0x58aa2b,_0x2e6cca);},'uObAj':'invalid-grid-id','yukRv':function(_0xbedf2a,_0x27c72b,_0x3ce5d7,_0x1d2de5,_0x3f71d3,_0x2bc88d,_0x579f25){return _0xbedf2a(_0x27c72b,_0x3ce5d7,_0x1d2de5,_0x3f71d3,_0x2bc88d,_0x579f25);},'yTwIT':_0x15ccb2(0x1d3)};let _0x365df5;try{!_0x580146[_0x15ccb2(0x1bc)]&&(logger[_0x15ccb2(0x1f8)](_0x8b2024['eocXo']),process[_0x15ccb2(0x1ae)](0x1));!fs[_0x15ccb2(0x1db)](_0x8b2024[_0x15ccb2(0x1c8)](getCredentialsPath))&&(logger['error'](_0x8b2024[_0x15ccb2(0x1b2)]),await _0x8b2024[_0x15ccb2(0x1b1)](sendInstrumentationEvent,_0x580146,_0x8b2024[_0x15ccb2(0x1cd)],messageTypes[_0x15ccb2(0x1d1)],_0x8b2024[_0x15ccb2(0x1d9)],null,_0x580146),process[_0x15ccb2(0x1ae)](0x1));logger['info'](_0x15ccb2(0x1e3)+_0x580146[_0x15ccb2(0x1bc)]),await _0x8b2024[_0x15ccb2(0x1b1)](sendInstrumentationEvent,_0x580146,_0x8b2024[_0x15ccb2(0x1cd)],messageTypes[_0x15ccb2(0x1cf)],null,null,_0x580146);const _0x195b99=JSON[_0x15ccb2(0x1f7)](fs['readFileSync'](_0x8b2024[_0x15ccb2(0x1c8)](getCredentialsPath)));global_registry[_0x15ccb2(0x1f0)]=_0x195b99[_0x15ccb2(0x1c1)]['username'],global_registry[_0x15ccb2(0x1a7)]=_0x195b99['Browserstack'][_0x15ccb2(0x1d4)];const _0x2a7998=WS_ENDPOINT[_0x15ccb2(0x1ef)](_0x8b2024[_0x15ccb2(0x1ce)],_0x195b99[_0x15ccb2(0x1c1)][_0x15ccb2(0x1e9)])[_0x15ccb2(0x1ef)](_0x8b2024[_0x15ccb2(0x1a9)],_0x195b99['Browserstack']['password']),_0x5b95be={};_0x5b95be['WebSocket']=ws,_0x5b95be[_0x15ccb2(0x1dc)]=0x36ee80,_0x365df5=new ReconnectingWebSocket(_0x2a7998,[],_0x5b95be),logger['debug'](_0x8b2024[_0x15ccb2(0x1d6)]),webSocketUtils[_0x15ccb2(0x19e)](_0x365df5,_0x580146[_0x15ccb2(0x1f2)],_0x580146[_0x15ccb2(0x1d4)]);const [_0x3be7b6,_0x432c4e]=await _0x8b2024[_0x15ccb2(0x1aa)](getGridDetails,_0x195b99[_0x15ccb2(0x1c1)]['username'],_0x195b99[_0x15ccb2(0x1c1)][_0x15ccb2(0x1d4)],_0x580146['gridId']);if(_0x432c4e){const _0x2e3f8a=_0x432c4e[_0x15ccb2(0x1ba)];global_registry[_0x15ccb2(0x1cc)]=_0x2e3f8a[_0x15ccb2(0x1cc)],global_registry[_0x15ccb2(0x1d2)]=_0x2e3f8a['region'],global_registry[_0x15ccb2(0x1a5)]=_0x2e3f8a[_0x15ccb2(0x1a5)];const _0x3f0741=await _0x8b2024[_0x15ccb2(0x1b1)](getCloudProviderObject,_0x2e3f8a[_0x15ccb2(0x1cc)],_0x2e3f8a[_0x15ccb2(0x1a5)],_0x2e3f8a[_0x15ccb2(0x1d8)],_0x365df5,webSocketUtils,_0x580146),[_0x5ad8e3,_0x3dd579,_0x41e80e,_0x140021,_0x5bc26c,_0x33279f]=await _0x8b2024[_0x15ccb2(0x1dd)](createK8sClient,_0x3f0741,_0x580146[_0x15ccb2(0x1c0)]);await _0x8b2024['IQAUk'](scaleDownHubDeployment,_0x3dd579,_0x2e3f8a[_0x15ccb2(0x1d8)]),logger[_0x15ccb2(0x1ba)](_0x8b2024[_0x15ccb2(0x1ea)]),process[_0x15ccb2(0x1ae)](0x0);}_0x8b2024[_0x15ccb2(0x1da)](_0x3be7b6['statusCode'],0x191)&&(logger[_0x15ccb2(0x1f8)](_0x8b2024[_0x15ccb2(0x1d0)]),await _0x8b2024[_0x15ccb2(0x1de)](sendInstrumentationEvent,_0x580146,_0x8b2024[_0x15ccb2(0x1cd)],messageTypes[_0x15ccb2(0x1d1)],_0x8b2024['UbVDF'],null,_0x580146),process[_0x15ccb2(0x1ae)](0x1)),_0x8b2024[_0x15ccb2(0x1b9)](_0x3be7b6[_0x15ccb2(0x1e2)],0x190)&&(logger['error'](JSON['parse'](_0x3be7b6['body'])[_0x15ccb2(0x1be)]),await _0x8b2024[_0x15ccb2(0x19d)](sendInstrumentationEvent,_0x580146,_0x8b2024[_0x15ccb2(0x1cd)],messageTypes[_0x15ccb2(0x1d1)],_0x8b2024[_0x15ccb2(0x1a4)],null,_0x580146),process[_0x15ccb2(0x1ae)](0x1)),logger[_0x15ccb2(0x1f8)](_0x15ccb2(0x1af)+JSON[_0x15ccb2(0x1ec)](_0x3be7b6)),await _0x8b2024[_0x15ccb2(0x1a8)](sendInstrumentationEvent,_0x580146,_0x8b2024['Peevn'],messageTypes[_0x15ccb2(0x1d1)],_0x8b2024['yTwIT'],_0x3be7b6,_0x580146),process['exit'](0x1);}catch(_0x5417e3){const _0x4e5b50=_0x15ccb2(0x1bd)+_0x5417e3+'\x20\x0a'+JSON[_0x15ccb2(0x1ec)](_0x5417e3[_0x15ccb2(0x1e7)])+'\x20';logger['error'](_0x4e5b50),process[_0x15ccb2(0x1ae)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x50086a=a22_0x3b8f;(function(_0x4d819b,_0x490808){const _0x37e1ec=a22_0x3b8f,_0x1f8ed2=_0x4d819b();while(!![]){try{const _0x4edf8f=parseInt(_0x37e1ec(0xd3))/0x1*(parseInt(_0x37e1ec(0xb1))/0x2)+parseInt(_0x37e1ec(0xe0))/0x3*(parseInt(_0x37e1ec(0xdb))/0x4)+-parseInt(_0x37e1ec(0xd5))/0x5+parseInt(_0x37e1ec(0xcf))/0x6*(parseInt(_0x37e1ec(0xe1))/0x7)+parseInt(_0x37e1ec(0xb0))/0x8+parseInt(_0x37e1ec(0xb2))/0x9*(-parseInt(_0x37e1ec(0x9d))/0xa)+-parseInt(_0x37e1ec(0xf8))/0xb;if(_0x4edf8f===_0x490808)break;else _0x1f8ed2['push'](_0x1f8ed2['shift']());}catch(_0x4b753e){_0x1f8ed2['push'](_0x1f8ed2['shift']());}}}(a22_0x3266,0x7025d),require(a22_0x50086a(0xbe))[a22_0x50086a(0xe4)]());let gridURL=a22_0x50086a(0xca),bsApiUrl=a22_0x50086a(0xf5),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x50086a(0xa0)][a22_0x50086a(0xc0)]||a22_0x50086a(0xb6))[a22_0x50086a(0x98)]();if(_env===a22_0x50086a(0x9b)||_env==='stag')gridURL=a22_0x50086a(0xaa),bsApiUrl=a22_0x50086a(0x95),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x50086a(0xe8))&&(gridURL=a22_0x50086a(0x9e),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x50086a(0x92));exports[a22_0x50086a(0xf6)]=process[a22_0x50086a(0xa0)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x50086a(0xc7)]=process[a22_0x50086a(0xa0)][a22_0x50086a(0xc7)]||bsApiUrl,exports[a22_0x50086a(0xa3)]=process[a22_0x50086a(0xa0)]['AG_API_URL']||agApiUrl,exports[a22_0x50086a(0xea)]=a22_0x50086a(0xeb)+this['AG_API_URL']+a22_0x50086a(0xa1),exports[a22_0x50086a(0x8f)]=a22_0x50086a(0xf0),exports[a22_0x50086a(0x8a)]=a22_0x50086a(0xd4),exports[a22_0x50086a(0xdd)]=a22_0x50086a(0xe6),exports[a22_0x50086a(0xc3)]=a22_0x50086a(0x89),exports[a22_0x50086a(0xba)]=a22_0x50086a(0xa4),exports[a22_0x50086a(0xed)]=a22_0x50086a(0xb4),exports[a22_0x50086a(0xfb)]=a22_0x50086a(0xee),exports[a22_0x50086a(0xec)]=a22_0x50086a(0xd9),exports['AZURE']=a22_0x50086a(0xcd),exports[a22_0x50086a(0xae)]=a22_0x50086a(0xc8),exports[a22_0x50086a(0xda)]=[this['AWS'],this[a22_0x50086a(0xbb)],this[a22_0x50086a(0xae)]];function a22_0x3266(){const _0x301655=['configure','1659QbMXby','14idqhvp','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','config','root','high-scale-grid','REGION','pre-prod','Value','WS_ENDPOINT','wss://','TURBOSCALE_DEPLOYMENT','CLUSTER_AUTOSCALER_STACK_NAME','BSTACK-ATS-CLUSTER-HUB-HA','CLOUD_PROVIDER','credentials','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','list','SUPPORTED_CLOUD_PROVIDERS','RESOURCES','api.browserstack.com','DASHBOARD_ENDPOINT','unknown','8208574gMaxbi','browserstack:service','TURBOSCALE_CUSTOM_TAGS','CLUSTER_HUB_HA_STACK_NAME','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','aws','IAM_USER_NAME','warning','LOG','gridUrl','UNKNOWN','CP_CONFIG_FILE','cliRunStarted','grid-profile','grid-api-preprod.bsstag.com','stop','split','api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','toLowerCase','CLI_ARGS_REGEX','gridProfile','staging','info','3860arUEjy','grid-preprod.bsstag.com','resourceInfo','env','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','AG_API_URL','BSTACK-ATS-CLUSTER','DEFAULT_CLUSTER_DETAILS','INFO','us-east-1','TRIAL_GRID_URL','global_registry','grid-devhst.bsstag.com','BrowserStack','log','CLI_RUN_FINISHED','GCP','Key','5194672aRTVOD','2SLqSEX','5121zbyFSR','CLUSTER','BSTACK-ATS-CLUSTER-AUTOSCALER','HELP_FOOTER_MESSAGE','prod','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','create','CLUSTER_DEP_STACK_NAME','AZURE','SUCCESS','high-scale-grid-cluster','dotenv','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BROWSERSTACK_ENV','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AWS','CLI_RUN_STARTED','cliRunFinished','[REDACTED]','BS_API_URL','gcp','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid.browserstack.com','start','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','azure','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','842034fPoGko','ERROR','WS_EVENTS','LINK_MESSAGE','619008DfmPCZ','BrowserStackIAMUser','3641120MtPRsz','messageTypes','WARNING','grid','browserstack-turboscale-grid','ALL_SUPPORTED_CLOUD_PROVIDERS','4372KcBpix','GRID_URL','DEFAULT_GRID_NAME','browserstack:managedBy'];a22_0x3266=function(){return _0x301655;};return a22_0x3266();}const a22_0x3da3e4={};a22_0x3da3e4[a22_0x50086a(0xaf)]=a22_0x50086a(0xde),a22_0x3da3e4[a22_0x50086a(0xe9)]=a22_0x50086a(0xab);const a22_0xc82ce8={};a22_0xc82ce8['Key']=a22_0x50086a(0xf9),a22_0xc82ce8[a22_0x50086a(0xe9)]=a22_0x50086a(0xe2);const common_hst_tags_list=[a22_0x3da3e4,a22_0xc82ce8];if(process[a22_0x50086a(0xa0)][a22_0x50086a(0xfa)]){const parsedTags=process[a22_0x50086a(0xa0)][a22_0x50086a(0xfa)]['split'](',');parsedTags['forEach'](_0x3b7f1c=>{const _0x4ae65b=a22_0x50086a,_0x1c149f=_0x3b7f1c[_0x4ae65b(0x94)](':'),_0x50de5a={};_0x50de5a[_0x4ae65b(0xaf)]=_0x1c149f[0x0],_0x50de5a[_0x4ae65b(0xe9)]=_0x1c149f[0x1],common_hst_tags_list['push'](_0x50de5a);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x2393fd={};a22_0x2393fd['browserstack:managedBy']=a22_0x50086a(0xab),a22_0x2393fd[a22_0x50086a(0xf9)]=a22_0x50086a(0xe2),exports['HST_CLUSTER_TAGS']=a22_0x2393fd,exports[a22_0x50086a(0xf3)]=[this[a22_0x50086a(0xc3)]];const a22_0x26d524={};a22_0x26d524[a22_0x50086a(0x8c)]=a22_0x50086a(0xac),a22_0x26d524[a22_0x50086a(0xf4)]=a22_0x50086a(0x9f),a22_0x26d524[a22_0x50086a(0xdc)]=a22_0x50086a(0x8d),a22_0x26d524[a22_0x50086a(0xc4)]=a22_0x50086a(0x90),a22_0x26d524[a22_0x50086a(0xad)]=a22_0x50086a(0xc5),exports[a22_0x50086a(0xd1)]=a22_0x26d524,exports[a22_0x50086a(0xa9)]={},exports[a22_0x50086a(0xd2)]=a22_0x50086a(0xb8);const a22_0x36a236={};a22_0x36a236['root']=a22_0x50086a(0xb7)+this[a22_0x50086a(0xd2)],a22_0x36a236['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xdf)]=a22_0x50086a(0x88)+this['LINK_MESSAGE'],a22_0x36a236[a22_0x50086a(0xb9)]=a22_0x50086a(0xbf)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)]={},a22_0x36a236[a22_0x50086a(0xc1)]=a22_0x50086a(0xc9)+this[a22_0x50086a(0xd2)],a22_0x36a236['connect']=a22_0x50086a(0xe3)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xcb)]=a22_0x50086a(0xcc)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0x93)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x50086a(0xd2)],a22_0x36a236['pre_check']=a22_0x50086a(0xf1)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0xe5)]=a22_0x50086a(0x96)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0xd8)]=a22_0x50086a(0xa2)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0x9a)]=a22_0x50086a(0xc2)+this[a22_0x50086a(0xd2)],exports['HELP_HEADER_MESSAGE']=a22_0x36a236,exports[a22_0x50086a(0xb5)]=a22_0x50086a(0xce);const a22_0x577d26={};function a22_0x3b8f(_0x1aaaa6,_0x79a752){const _0x3266a8=a22_0x3266();return a22_0x3b8f=function(_0x3b8f5a,_0x38c978){_0x3b8f5a=_0x3b8f5a-0x88;let _0x549345=_0x3266a8[_0x3b8f5a];return _0x549345;},a22_0x3b8f(_0x1aaaa6,_0x79a752);}a22_0x577d26[a22_0x50086a(0xbc)]='success',a22_0x577d26[a22_0x50086a(0xd0)]='error',a22_0x577d26[a22_0x50086a(0xa6)]=a22_0x50086a(0x9c),a22_0x577d26[a22_0x50086a(0xd7)]=a22_0x50086a(0x8b),a22_0x577d26[a22_0x50086a(0x8e)]=a22_0x50086a(0xf7),a22_0x577d26[a22_0x50086a(0xfc)]=null,exports[a22_0x50086a(0xd6)]=a22_0x577d26,exports[a22_0x50086a(0x99)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x50086a(0xc6);const a22_0x29e9f7={};a22_0x29e9f7[a22_0x50086a(0x91)]=a22_0x50086a(0x97);const a22_0x23b957={};a22_0x23b957['pre-check']=a22_0x29e9f7,exports['MessageDescription']=a22_0x23b957,exports[a22_0x50086a(0xa8)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x3dda79={};a22_0x3dda79[a22_0x50086a(0xb3)]=a22_0x50086a(0xbd),a22_0x3dda79[a22_0x50086a(0xef)]=a22_0x50086a(0x89),a22_0x3dda79[a22_0x50086a(0xe7)]=a22_0x50086a(0xa7),exports[a22_0x50086a(0xa5)]=a22_0x3dda79;
1
+ const a22_0x5b355c=a22_0x3d8c;(function(_0x1e100b,_0x1d77e8){const _0x8f2c03=a22_0x3d8c,_0x5d9af6=_0x1e100b();while(!![]){try{const _0x232f47=parseInt(_0x8f2c03(0x12c))/0x1+parseInt(_0x8f2c03(0x174))/0x2*(-parseInt(_0x8f2c03(0x133))/0x3)+parseInt(_0x8f2c03(0x16d))/0x4+parseInt(_0x8f2c03(0x17a))/0x5*(-parseInt(_0x8f2c03(0x171))/0x6)+parseInt(_0x8f2c03(0x13f))/0x7*(parseInt(_0x8f2c03(0x13e))/0x8)+parseInt(_0x8f2c03(0x16c))/0x9*(-parseInt(_0x8f2c03(0x180))/0xa)+parseInt(_0x8f2c03(0x165))/0xb*(parseInt(_0x8f2c03(0x156))/0xc);if(_0x232f47===_0x1d77e8)break;else _0x5d9af6['push'](_0x5d9af6['shift']());}catch(_0x322a73){_0x5d9af6['push'](_0x5d9af6['shift']());}}}(a22_0x19ac,0x3367a),require(a22_0x5b355c(0x125))[a22_0x5b355c(0x12d)]());function a22_0x3d8c(_0x4fc7cf,_0x38da04){const _0x19acd2=a22_0x19ac();return a22_0x3d8c=function(_0x3d8c71,_0x55a2cd){_0x3d8c71=_0x3d8c71-0x111;let _0x155f46=_0x19acd2[_0x3d8c71];return _0x155f46;},a22_0x3d8c(_0x4fc7cf,_0x38da04);}let gridURL=a22_0x5b355c(0x14b),bsApiUrl=a22_0x5b355c(0x12a),agApiUrl=a22_0x5b355c(0x152);const _env=(process['env'][a22_0x5b355c(0x11e)]||a22_0x5b355c(0x163))['toLowerCase']();if(_env==='staging'||_env===a22_0x5b355c(0x15d))gridURL=a22_0x5b355c(0x122),bsApiUrl=a22_0x5b355c(0x138),agApiUrl=a22_0x5b355c(0x17e);else(_env===a22_0x5b355c(0x169)||_env==='pre-prod')&&(gridURL=a22_0x5b355c(0x148),bsApiUrl=a22_0x5b355c(0x14f),agApiUrl=a22_0x5b355c(0x14d));exports[a22_0x5b355c(0x129)]=process[a22_0x5b355c(0x130)][a22_0x5b355c(0x129)]||gridURL,exports[a22_0x5b355c(0x121)]=process['env'][a22_0x5b355c(0x121)]||bsApiUrl,exports[a22_0x5b355c(0x142)]=process[a22_0x5b355c(0x130)][a22_0x5b355c(0x142)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x5b355c(0x117)+this['AG_API_URL']+a22_0x5b355c(0x135),exports['CP_CONFIG_FILE']=a22_0x5b355c(0x14a),exports[a22_0x5b355c(0x13a)]=a22_0x5b355c(0x149),exports[a22_0x5b355c(0x179)]=a22_0x5b355c(0x136),exports[a22_0x5b355c(0x153)]=a22_0x5b355c(0x173),exports['CLUSTER_DEP_STACK_NAME']=a22_0x5b355c(0x147),exports[a22_0x5b355c(0x164)]=a22_0x5b355c(0x150),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x5b355c(0x146)]=a22_0x5b355c(0x113),exports['AZURE']=a22_0x5b355c(0x119),exports['GCP']=a22_0x5b355c(0x17b),exports[a22_0x5b355c(0x15c)]=[this[a22_0x5b355c(0x153)],this[a22_0x5b355c(0x137)],this['GCP']];const a22_0x58fdd7={};a22_0x58fdd7[a22_0x5b355c(0x13c)]=a22_0x5b355c(0x143),a22_0x58fdd7[a22_0x5b355c(0x178)]=a22_0x5b355c(0x127);const a22_0x40513d={};a22_0x40513d['Key']=a22_0x5b355c(0x16a),a22_0x40513d['Value']=a22_0x5b355c(0x170);const common_hst_tags_list=[a22_0x58fdd7,a22_0x40513d];if(process[a22_0x5b355c(0x130)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x5b355c(0x130)][a22_0x5b355c(0x15b)][a22_0x5b355c(0x12f)](',');parsedTags[a22_0x5b355c(0x111)](_0x38894f=>{const _0x23af32=a22_0x5b355c,_0x5d3d37=_0x38894f[_0x23af32(0x12f)](':'),_0x17444b={};_0x17444b['Key']=_0x5d3d37[0x0],_0x17444b[_0x23af32(0x178)]=_0x5d3d37[0x1],common_hst_tags_list[_0x23af32(0x168)](_0x17444b);});}exports[a22_0x5b355c(0x151)]=common_hst_tags_list;const a22_0xfab5cb={};a22_0xfab5cb[a22_0x5b355c(0x143)]='BrowserStack',a22_0xfab5cb[a22_0x5b355c(0x16a)]='BrowserStack-Automate-TurboScale',exports[a22_0x5b355c(0x126)]=a22_0xfab5cb,exports[a22_0x5b355c(0x176)]=[this[a22_0x5b355c(0x153)]];const a22_0x2b342e={};a22_0x2b342e['LOG']=a22_0x5b355c(0x160),a22_0x2b342e[a22_0x5b355c(0x16b)]=a22_0x5b355c(0x161),a22_0x2b342e[a22_0x5b355c(0x13b)]='gridUrl',a22_0x2b342e['CLI_RUN_STARTED']='cliRunStarted',a22_0x2b342e[a22_0x5b355c(0x12b)]='cliRunFinished',exports['WS_EVENTS']=a22_0x2b342e,exports[a22_0x5b355c(0x15a)]={},exports['LINK_MESSAGE']=a22_0x5b355c(0x181);const a22_0x4496bd={};a22_0x4496bd[a22_0x5b355c(0x11a)]=a22_0x5b355c(0x17f)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x140)]=a22_0x5b355c(0x17d)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x118)]=a22_0x5b355c(0x154)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x132)]=a22_0x5b355c(0x157)+this['LINK_MESSAGE'],a22_0x4496bd[a22_0x5b355c(0x162)]={},a22_0x4496bd[a22_0x5b355c(0x131)]=a22_0x5b355c(0x115)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x139)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x172)]=a22_0x5b355c(0x116)+this[a22_0x5b355c(0x16f)],a22_0x4496bd['stop']=a22_0x5b355c(0x14c)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x11f)]=a22_0x5b355c(0x141)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x162)][a22_0x5b355c(0x11a)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x4496bd[a22_0x5b355c(0x162)][a22_0x5b355c(0x155)]=a22_0x5b355c(0x158)+this[a22_0x5b355c(0x16f)],a22_0x4496bd[a22_0x5b355c(0x162)][a22_0x5b355c(0x16e)]=a22_0x5b355c(0x144)+this[a22_0x5b355c(0x16f)],exports[a22_0x5b355c(0x15f)]=a22_0x4496bd,exports[a22_0x5b355c(0x15e)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x359148={};function a22_0x19ac(){const _0x200784=['root','MessageDescription','success','[REDACTED]','BROWSERSTACK_ENV','pre_check','grid-profile','BS_API_URL','grid-devhst.bsstag.com','messageTypes','high-scale-grid-cluster','dotenv','HST_CLUSTER_TAGS','BrowserStack','info','DASHBOARD_ENDPOINT','api.browserstack.com','CLI_RUN_FINISHED','129449CffsnR','config','INFO','split','env','delete','create','53199IoTCEc','CLI_ARGS_REGEX','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','high-scale-grid','AZURE','api-devhst.bsstag.com','connect','IAM_USER_NAME','GRID_URL','Key','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','289624iFEBXe','7uQAKHM','init','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','AG_API_URL','browserstack:managedBy','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','ERROR','TURBOSCALE_DEPLOYMENT','BSTACK-ATS-CLUSTER','grid-preprod.bsstag.com','BrowserStackIAMUser','credentials','grid.browserstack.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','grid-api-preprod.bsstag.com','warning','api-preprod.bsstag.com','BSTACK-ATS-CLUSTER-AUTOSCALER','COMMON_HST_TAGS','grid-api.browserstack.com','AWS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','grid','1300440IQzVTw','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','REGION','global_registry','TURBOSCALE_CUSTOM_TAGS','ALL_SUPPORTED_CLOUD_PROVIDERS','stag','HELP_FOOTER_MESSAGE','HELP_HEADER_MESSAGE','log','resourceInfo','list','prod','CLUSTER_AUTOSCALER_STACK_NAME','88BqdUYh','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLOUD_PROVIDER','push','preprod','browserstack:service','RESOURCES','84654LGAedS','225016FuXFjI','gridProfile','LINK_MESSAGE','BrowserStack-Automate-TurboScale','6ZtSscQ','start','aws','26PbbKqe','REDACTED','SUPPORTED_CLOUD_PROVIDERS','SUCCESS','Value','DEFAULT_GRID_NAME','1357715KzTujM','gcp','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-api-devhst.bsstag.com','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','400eXDenV','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','forEach','us-east-1','browserstack-turboscale-grid','pre-check','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','wss://','configure','azure'];a22_0x19ac=function(){return _0x200784;};return a22_0x19ac();}a22_0x359148[a22_0x5b355c(0x177)]=a22_0x5b355c(0x11c),a22_0x359148[a22_0x5b355c(0x145)]='error',a22_0x359148[a22_0x5b355c(0x12e)]=a22_0x5b355c(0x128),a22_0x359148['WARNING']=a22_0x5b355c(0x14e),a22_0x359148['UNKNOWN']='unknown',a22_0x359148[a22_0x5b355c(0x17c)]=null,exports[a22_0x5b355c(0x123)]=a22_0x359148,exports[a22_0x5b355c(0x134)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5b355c(0x175)]=a22_0x5b355c(0x11d);const a22_0x429a1f={};a22_0x429a1f[a22_0x5b355c(0x120)]=a22_0x5b355c(0x13d);const a22_0x4bc8fb={};a22_0x4bc8fb[a22_0x5b355c(0x114)]=a22_0x429a1f,exports[a22_0x5b355c(0x11b)]=a22_0x4bc8fb,exports['TRIAL_GRID_URL']=a22_0x5b355c(0x166);const a22_0x2f3c92={};a22_0x2f3c92['CLUSTER']=a22_0x5b355c(0x124),a22_0x2f3c92[a22_0x5b355c(0x167)]=a22_0x5b355c(0x173),a22_0x2f3c92[a22_0x5b355c(0x159)]=a22_0x5b355c(0x112),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x2f3c92;
@@ -1 +1 @@
1
- const a23_0x211a41=a23_0x5873;function a23_0x5873(_0x18f089,_0x28c624){const _0x20e7e5=a23_0x20e7();return a23_0x5873=function(_0x58731f,_0x1f7a5d){_0x58731f=_0x58731f-0xb1;let _0x3622bf=_0x20e7e5[_0x58731f];return _0x3622bf;},a23_0x5873(_0x18f089,_0x28c624);}(function(_0x2710aa,_0x400b42){const _0x53fed1=a23_0x5873,_0x17af7=_0x2710aa();while(!![]){try{const _0x5018ea=parseInt(_0x53fed1(0xc7))/0x1+-parseInt(_0x53fed1(0xb3))/0x2+parseInt(_0x53fed1(0xc0))/0x3+-parseInt(_0x53fed1(0xcb))/0x4*(parseInt(_0x53fed1(0xbb))/0x5)+parseInt(_0x53fed1(0xb5))/0x6+parseInt(_0x53fed1(0xbf))/0x7*(parseInt(_0x53fed1(0xcc))/0x8)+parseInt(_0x53fed1(0xd0))/0x9*(-parseInt(_0x53fed1(0xb7))/0xa);if(_0x5018ea===_0x400b42)break;else _0x17af7['push'](_0x17af7['shift']());}catch(_0x468e03){_0x17af7['push'](_0x17af7['shift']());}}}(a23_0x20e7,0x7dd13));const winston=require(a23_0x211a41(0xc5)),fs=require('fs'),path=require('path'),logDir=a23_0x211a41(0xc8);!fs[a23_0x211a41(0xce)](logDir)&&fs[a23_0x211a41(0xbd)](logDir);const a23_0x151388={};a23_0x151388[a23_0x211a41(0xc1)]=a23_0x211a41(0xc6);function a23_0x20e7(){const _0x3478c8=['695984NNcJQA','logger','existsSync','level','9PIGlLs','debug','console.info','772188eIIBEv','combine','6064974ykLPWO','transports','12209990TRTKAE','printf','Console','join','14855LLHySa','usage.log','mkdirSync','name','7erOYec','2950974BxXDWd','format','File','fileLogger','message','winston','YYYY-MM-DD\x20HH:mm:ss','724285MITRfY','log','timestamp','createLogger','920IvLeSa'];a23_0x20e7=function(){return _0x3478c8;};return a23_0x20e7();}const a23_0x1011f6={};a23_0x1011f6[a23_0x211a41(0xcf)]=!![];const a23_0x301aa8={};a23_0x301aa8[a23_0x211a41(0xbe)]=a23_0x211a41(0xb2),exports[a23_0x211a41(0xcd)]=new winston[(a23_0x211a41(0xca))]({'format':winston[a23_0x211a41(0xc1)][a23_0x211a41(0xb4)](winston[a23_0x211a41(0xc1)][a23_0x211a41(0xc9)](a23_0x151388),winston['format']['colorize'](a23_0x1011f6),winston['format'][a23_0x211a41(0xb8)](_0x2d2b35=>_0x2d2b35[a23_0x211a41(0xc9)]+'\x20-\x20'+_0x2d2b35[a23_0x211a41(0xcf)]+':\x20'+_0x2d2b35[a23_0x211a41(0xc4)])),'transports':[new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xb9))](a23_0x301aa8),new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xc2))]({'filename':path[a23_0x211a41(0xba)](logDir,'events.log'),'level':a23_0x211a41(0xb1)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xc2))]({'filename':path[a23_0x211a41(0xba)](logDir,a23_0x211a41(0xbc)),'level':a23_0x211a41(0xb1)})]};exports[a23_0x211a41(0xc3)]=new winston[(a23_0x211a41(0xca))](winstonFileLoggerParams);
1
+ function a23_0x3e25(_0x517beb,_0x18fdfc){const _0x2c65ac=a23_0x2c65();return a23_0x3e25=function(_0x3e2581,_0x2e2b9e){_0x3e2581=_0x3e2581-0xd0;let _0x5090cf=_0x2c65ac[_0x3e2581];return _0x5090cf;},a23_0x3e25(_0x517beb,_0x18fdfc);}const a23_0x295554=a23_0x3e25;(function(_0x12c9ea,_0x3f6a06){const _0x2950a8=a23_0x3e25,_0xf28a3d=_0x12c9ea();while(!![]){try{const _0x26a8d8=parseInt(_0x2950a8(0xe4))/0x1*(parseInt(_0x2950a8(0xd7))/0x2)+-parseInt(_0x2950a8(0xf2))/0x3*(parseInt(_0x2950a8(0xd0))/0x4)+parseInt(_0x2950a8(0xee))/0x5*(-parseInt(_0x2950a8(0xf1))/0x6)+parseInt(_0x2950a8(0xe9))/0x7+parseInt(_0x2950a8(0xd2))/0x8*(-parseInt(_0x2950a8(0xd3))/0x9)+-parseInt(_0x2950a8(0xe2))/0xa+-parseInt(_0x2950a8(0xef))/0xb*(-parseInt(_0x2950a8(0xde))/0xc);if(_0x26a8d8===_0x3f6a06)break;else _0xf28a3d['push'](_0xf28a3d['shift']());}catch(_0x5e66aa){_0xf28a3d['push'](_0xf28a3d['shift']());}}}(a23_0x2c65,0xb64b2));const winston=require(a23_0x295554(0xeb)),fs=require('fs'),path=require('path'),logDir=a23_0x295554(0xe5);!fs[a23_0x295554(0xd9)](logDir)&&fs[a23_0x295554(0xdb)](logDir);const a23_0x2b92bd={};a23_0x2b92bd[a23_0x295554(0xf0)]=a23_0x295554(0xea);const a23_0x568e80={};function a23_0x2c65(){const _0x5ea999=['Console','\x20-\x20','35WDsrHm','478621JkLwpX','format','1229130HpFPUS','532029lRlNLo','24jcCpVS','console.info','310568iYmKYA','99diCCGJ','transports','fileLogger','logger','22pwyqWO','File','existsSync','usage.log','mkdirSync','level','combine','696SKUPHB','createLogger','name','join','12624180thbioW','events.log','103868NsvXwJ','log','message','debug','timestamp','8875860KVnDia','YYYY-MM-DD\x20HH:mm:ss','winston'];a23_0x2c65=function(){return _0x5ea999;};return a23_0x2c65();}a23_0x568e80['level']=!![];const a23_0x595a1b={};a23_0x595a1b[a23_0x295554(0xe0)]=a23_0x295554(0xd1),exports[a23_0x295554(0xd6)]=new winston[(a23_0x295554(0xdf))]({'format':winston['format'][a23_0x295554(0xdd)](winston[a23_0x295554(0xf0)][a23_0x295554(0xe8)](a23_0x2b92bd),winston[a23_0x295554(0xf0)]['colorize'](a23_0x568e80),winston['format']['printf'](_0x4cfadd=>_0x4cfadd[a23_0x295554(0xe8)]+a23_0x295554(0xed)+_0x4cfadd[a23_0x295554(0xdc)]+':\x20'+_0x4cfadd[a23_0x295554(0xe6)])),'transports':[new winston[(a23_0x295554(0xd4))][(a23_0x295554(0xec))](a23_0x595a1b),new winston['transports'][(a23_0x295554(0xd8))]({'filename':path[a23_0x295554(0xe1)](logDir,a23_0x295554(0xe3)),'level':a23_0x295554(0xe7)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x295554(0xd4))][(a23_0x295554(0xd8))]({'filename':path[a23_0x295554(0xe1)](logDir,a23_0x295554(0xda)),'level':'debug'})]};exports[a23_0x295554(0xd5)]=new winston[(a23_0x295554(0xdf))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x495989=a24_0x484b;(function(_0x3e547a,_0x343764){const _0x5c0bf3=a24_0x484b,_0x5339bf=_0x3e547a();while(!![]){try{const _0x6b3eea=parseInt(_0x5c0bf3(0x11e))/0x1+-parseInt(_0x5c0bf3(0x113))/0x2*(-parseInt(_0x5c0bf3(0x112))/0x3)+parseInt(_0x5c0bf3(0x121))/0x4*(-parseInt(_0x5c0bf3(0x118))/0x5)+-parseInt(_0x5c0bf3(0x11a))/0x6*(parseInt(_0x5c0bf3(0x116))/0x7)+parseInt(_0x5c0bf3(0x123))/0x8+parseInt(_0x5c0bf3(0x126))/0x9*(-parseInt(_0x5c0bf3(0x119))/0xa)+-parseInt(_0x5c0bf3(0x117))/0xb*(parseInt(_0x5c0bf3(0x11f))/0xc);if(_0x6b3eea===_0x343764)break;else _0x5339bf['push'](_0x5339bf['shift']());}catch(_0x519ef1){_0x5339bf['push'](_0x5339bf['shift']());}}}(a24_0x20ab,0xdfba4));function a24_0x20ab(){const _0x4d1758=['demandCommand','root','1976823gzQleV','commandDir','281832gLnQSI','26NUyXoN','NwnJd','help','217TBWGRR','10833141oxRhvZ','3113735aZfGjH','10HxjeXL','134850XMHJID','epilogue','jvgBr','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1373751QblbSu','12HWupox','commands','4iuiaov','./config/constants','6762520NraXKc'];a24_0x20ab=function(){return _0x4d1758;};return a24_0x20ab();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x495989(0x122));process['env'][a24_0x495989(0x11d)]=0x1;function a24_0x484b(_0x40c130,_0x252b4){const _0x20ab91=a24_0x20ab();return a24_0x484b=function(_0x484b8c,_0x418816){_0x484b8c=_0x484b8c-0x111;let _0x390645=_0x20ab91[_0x484b8c];return _0x390645;},a24_0x484b(_0x40c130,_0x252b4);}function run(_0x518006){const _0x2290bc=a24_0x495989,_0xf0fa3e={};_0xf0fa3e[_0x2290bc(0x114)]=_0x2290bc(0x120),_0xf0fa3e[_0x2290bc(0x11c)]=_0x2290bc(0x115);const _0x5f9452=_0xf0fa3e;_0x518006['usage'](HELP_HEADER_MESSAGE[_0x2290bc(0x125)])[_0x2290bc(0x111)](_0x5f9452[_0x2290bc(0x114)])[_0x2290bc(0x124)]()[_0x2290bc(0x115)](_0x5f9452[_0x2290bc(0x11c)])[_0x2290bc(0x11b)](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';function a24_0x240a(_0x2cea11,_0x5a01a3){const _0x2d41f8=a24_0x2d41();return a24_0x240a=function(_0x240a74,_0x16adf8){_0x240a74=_0x240a74-0x1b9;let _0x36e483=_0x2d41f8[_0x240a74];return _0x36e483;},a24_0x240a(_0x2cea11,_0x5a01a3);}const a24_0x283e82=a24_0x240a;(function(_0x4f4bc7,_0x54a0db){const _0x3bccb4=a24_0x240a,_0x3e6138=_0x4f4bc7();while(!![]){try{const _0x3e8463=parseInt(_0x3bccb4(0x1b9))/0x1+parseInt(_0x3bccb4(0x1c8))/0x2*(-parseInt(_0x3bccb4(0x1c4))/0x3)+-parseInt(_0x3bccb4(0x1cc))/0x4+parseInt(_0x3bccb4(0x1cd))/0x5+-parseInt(_0x3bccb4(0x1bf))/0x6*(parseInt(_0x3bccb4(0x1c5))/0x7)+parseInt(_0x3bccb4(0x1c2))/0x8+parseInt(_0x3bccb4(0x1ba))/0x9*(parseInt(_0x3bccb4(0x1bb))/0xa);if(_0x3e8463===_0x54a0db)break;else _0x3e6138['push'](_0x3e6138['shift']());}catch(_0x4af8d8){_0x3e6138['push'](_0x3e6138['shift']());}}}(a24_0x2d41,0xaf9a6));function a24_0x2d41(){const _0xb1bd1c=['help','usage','341616IgWcuD','env','23292XRuceO','773213OHyguJ','root','demandCommand','238GETCCs','./config/constants','exports','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','5074712tSvHfa','116145uEGLyK','1177042cYbKaj','9nqyKwl','21107270usFakb','commands','JbCmE','JOEDn','24ISODAR'];a24_0x2d41=function(){return _0xb1bd1c;};return a24_0x2d41();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x283e82(0x1c9));process[a24_0x283e82(0x1c3)][a24_0x283e82(0x1cb)]=0x1;function run(_0x5875db){const _0x3feb24=a24_0x283e82,_0xead691={};_0xead691[_0x3feb24(0x1bd)]=_0x3feb24(0x1bc),_0xead691[_0x3feb24(0x1be)]=_0x3feb24(0x1c0);const _0x363804=_0xead691;_0x5875db[_0x3feb24(0x1c1)](HELP_HEADER_MESSAGE[_0x3feb24(0x1c6)])['commandDir'](_0x363804[_0x3feb24(0x1bd)])[_0x3feb24(0x1c7)]()[_0x3feb24(0x1c0)](_0x363804[_0x3feb24(0x1be)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x283e82(0x1ca)]=run;