browserstack-node-sdk 1.64.0 → 1.64.1

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 (218) 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/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x424da8=a15_0x41d3;(function(_0x1576c3,_0x232405){const _0x680ab2=a15_0x41d3,_0x28d49e=_0x1576c3();while(!![]){try{const _0x21c0b4=parseInt(_0x680ab2(0x174))/0x1+parseInt(_0x680ab2(0x199))/0x2+parseInt(_0x680ab2(0x17c))/0x3*(-parseInt(_0x680ab2(0x19d))/0x4)+-parseInt(_0x680ab2(0x1bd))/0x5+-parseInt(_0x680ab2(0x192))/0x6*(-parseInt(_0x680ab2(0x189))/0x7)+-parseInt(_0x680ab2(0x1b5))/0x8*(parseInt(_0x680ab2(0x16f))/0x9)+parseInt(_0x680ab2(0x1a9))/0xa;if(_0x21c0b4===_0x232405)break;else _0x28d49e['push'](_0x28d49e['shift']());}catch(_0x17e42e){_0x28d49e['push'](_0x28d49e['shift']());}}}(a15_0x31f4,0xf35f1));function a15_0x41d3(_0x29992b,_0xe78f3c){const _0x31f4c5=a15_0x31f4();return a15_0x41d3=function(_0x41d33c,_0x4a7b86){_0x41d33c=_0x41d33c-0x164;let _0x6b7003=_0x31f4c5[_0x41d33c];return _0x6b7003;},a15_0x41d3(_0x29992b,_0xe78f3c);}const fs=require('fs'),got=require(a15_0x424da8(0x180)),{table}=require(a15_0x424da8(0x165)),{v4:uuidv4}=require(a15_0x424da8(0x173)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x424da8(0x1ad)),{getCredentialsPath,getAuthHeader}=require(a15_0x424da8(0x179)),{sendInstrumentationEvent}=require(a15_0x424da8(0x1ae));exports[a15_0x424da8(0x167)]=a15_0x424da8(0x178),exports[a15_0x424da8(0x187)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x2dff13){const _0x42cbbf=a15_0x424da8,_0xe4025a={};_0xe4025a[_0x42cbbf(0x168)]=_0x42cbbf(0x197),_0xe4025a[_0x42cbbf(0x1b8)]='boolean',_0xe4025a[_0x42cbbf(0x193)]='help';const _0x561d41=_0xe4025a,_0x126ed4={};_0x126ed4[_0x42cbbf(0x1ac)]=_0x561d41['ghrax'],_0x126ed4[_0x42cbbf(0x1a2)]=_0x561d41[_0x42cbbf(0x1b8)];const _0x531068={};return _0x531068[_0x42cbbf(0x19c)]=_0x126ed4,_0x2dff13[_0x42cbbf(0x1a3)](HELP_HEADER_MESSAGE['list'][_0x42cbbf(0x191)])[_0x42cbbf(0x164)](HELP_FOOTER_MESSAGE)[_0x42cbbf(0x18b)](_0x531068)[_0x42cbbf(0x18e)](_0x561d41[_0x42cbbf(0x193)])[_0x42cbbf(0x175)];},exports[a15_0x424da8(0x1c0)]=async function(_0x3696a0){const _0x7947cc=a15_0x424da8,_0x4cf014={'sSGwm':function(_0x55b189){return _0x55b189();},'ltvTv':_0x7947cc(0x1b6),'OqOBx':function(_0x141bb2,_0x16e9bb,_0x30dde4,_0xba08bd,_0x5a4bcf,_0x2d286c,_0x335d4d){return _0x141bb2(_0x16e9bb,_0x30dde4,_0xba08bd,_0x5a4bcf,_0x2d286c,_0x335d4d);},'FRQcX':_0x7947cc(0x19b),'jsdmW':_0x7947cc(0x16d),'RubhW':'GET','CMqvC':function(_0x3f9587,_0x11f5b1,_0x23d694){return _0x3f9587(_0x11f5b1,_0x23d694);},'vVoJA':function(_0x314eac,_0x4b127c,_0x5e5de2,_0x4ddacb,_0x2ed89e,_0x49e231,_0x286940){return _0x314eac(_0x4b127c,_0x5e5de2,_0x4ddacb,_0x2ed89e,_0x49e231,_0x286940);},'TitUP':function(_0x24a101,_0x552397){return _0x24a101!==_0x552397;},'DahLq':function(_0x1fa00d,_0x378243){return _0x1fa00d===_0x378243;},'znLhL':_0x7947cc(0x1af),'DVRSc':_0x7947cc(0x188),'xIAac':_0x7947cc(0x1b0),'QQIGX':_0x7947cc(0x16b),'GhATt':_0x7947cc(0x17b),'pSTaV':_0x7947cc(0x1bc),'VxhKl':_0x7947cc(0x19e),'WsyBN':function(_0x378bc1,_0xe4569f){return _0x378bc1(_0xe4569f);},'GEmru':function(_0x1c9b20,_0x448b0e){return _0x1c9b20===_0x448b0e;},'zyTMv':_0x7947cc(0x17a),'EpPIm':function(_0x3060d9,_0x38ce27,_0x3f360e,_0x4b5480,_0x5d56a3,_0x10dc3c,_0x4b21b0){return _0x3060d9(_0x38ce27,_0x3f360e,_0x4b5480,_0x5d56a3,_0x10dc3c,_0x4b21b0);},'isktc':_0x7947cc(0x1ab),'yaMtx':function(_0x91091f,_0x8f956c,_0x252f71,_0x314ac3,_0x1342fc,_0x5ced86,_0x313e2f){return _0x91091f(_0x8f956c,_0x252f71,_0x314ac3,_0x1342fc,_0x5ced86,_0x313e2f);},'Ijzfl':_0x7947cc(0x195),'zFCuB':_0x7947cc(0x1b9)};try{global_registry[_0x7947cc(0x1a7)]=_0x4cf014[_0x7947cc(0x1a8)](uuidv4);!fs[_0x7947cc(0x1b1)](_0x4cf014[_0x7947cc(0x1a8)](getCredentialsPath))&&(console[_0x7947cc(0x16e)](_0x4cf014[_0x7947cc(0x18c)]),await _0x4cf014['OqOBx'](sendInstrumentationEvent,_0x3696a0,_0x4cf014[_0x7947cc(0x1bf)],messageTypes[_0x7947cc(0x1be)],_0x4cf014[_0x7947cc(0x1aa)],null,_0x3696a0),process[_0x7947cc(0x1ba)](0x1));const _0x4a303d=JSON[_0x7947cc(0x18d)](fs['readFileSync'](_0x4cf014[_0x7947cc(0x1a8)](getCredentialsPath)));let _0x33ec82='https://'+AG_API_URL+_0x7947cc(0x1b3);_0x3696a0[_0x7947cc(0x1b4)]&&(_0x33ec82='https://'+AG_API_URL+_0x7947cc(0x1b7));const _0x5d9f1b={'method':_0x4cf014[_0x7947cc(0x17f)],'headers':_0x4cf014['CMqvC'](getAuthHeader,_0x4a303d[_0x7947cc(0x17d)][_0x7947cc(0x17e)],_0x4a303d[_0x7947cc(0x17d)][_0x7947cc(0x1a5)]),'throwHttpErrors':![]};global_registry[_0x7947cc(0x1a4)]=_0x4a303d['Browserstack'][_0x7947cc(0x17e)],global_registry['bstackAccesskey']=_0x4a303d[_0x7947cc(0x17d)][_0x7947cc(0x1a5)],_0x4cf014[_0x7947cc(0x18f)](sendInstrumentationEvent,_0x3696a0,_0x4cf014['FRQcX'],messageTypes[_0x7947cc(0x1a6)],null,null,_0x3696a0);const _0x253a29=await _0x4cf014['CMqvC'](got,_0x33ec82,_0x5d9f1b);if(_0x4cf014['TitUP'](_0x253a29,null)&&_0x4cf014[_0x7947cc(0x16c)](_0x253a29,undefined)&&_0x4cf014[_0x7947cc(0x185)](_0x253a29[_0x7947cc(0x198)],0xc8)){const _0x555361=JSON['parse'](_0x253a29[_0x7947cc(0x1b2)]);console['log'](_0x4cf014[_0x7947cc(0x182)]);const _0x46888e=[];_0x46888e[_0x7947cc(0x19f)]([_0x4cf014[_0x7947cc(0x166)],_0x4cf014[_0x7947cc(0x181)],_0x4cf014[_0x7947cc(0x16a)],_0x4cf014[_0x7947cc(0x177)],_0x4cf014['pSTaV'],_0x4cf014[_0x7947cc(0x176)]]),_0x555361[_0x7947cc(0x1bb)](_0x42b7cf=>{const _0x528e7a=_0x7947cc;_0x46888e[_0x528e7a(0x19f)]([_0x42b7cf['id'],_0x42b7cf[_0x528e7a(0x183)],_0x42b7cf[_0x528e7a(0x16b)],_0x42b7cf[_0x528e7a(0x17b)],_0x42b7cf[_0x528e7a(0x1bc)],_0x42b7cf[_0x528e7a(0x190)]]);}),console[_0x7947cc(0x170)](_0x4cf014[_0x7947cc(0x1a0)](table,_0x46888e)),process[_0x7947cc(0x1ba)](0x0);}_0x4cf014[_0x7947cc(0x186)](_0x253a29[_0x7947cc(0x198)],0x191)&&(console[_0x7947cc(0x16e)](_0x4cf014[_0x7947cc(0x171)]),await _0x4cf014['EpPIm'](sendInstrumentationEvent,_0x3696a0,_0x4cf014[_0x7947cc(0x1bf)],messageTypes[_0x7947cc(0x1be)],_0x4cf014[_0x7947cc(0x1a1)],null,_0x3696a0),process[_0x7947cc(0x1ba)](0x1)),console[_0x7947cc(0x16e)](_0x7947cc(0x19a)+JSON[_0x7947cc(0x18a)](_0x253a29)),await _0x4cf014[_0x7947cc(0x184)](sendInstrumentationEvent,_0x3696a0,_0x4cf014[_0x7947cc(0x1bf)],messageTypes[_0x7947cc(0x1be)],_0x4cf014[_0x7947cc(0x169)],_0x253a29,_0x3696a0),process[_0x7947cc(0x1ba)](0x1);}catch(_0x19b8be){console[_0x7947cc(0x16e)](_0x7947cc(0x172)+_0x19b8be[_0x7947cc(0x1c1)]),await _0x4cf014[_0x7947cc(0x194)](sendInstrumentationEvent,_0x3696a0,_0x4cf014[_0x7947cc(0x1bf)],messageTypes[_0x7947cc(0x1be)],_0x4cf014[_0x7947cc(0x196)],_0x19b8be,_0x3696a0),process['exit'](0x1);}};function a15_0x31f4(){const _0x27e662=['list-grids-called','all-grids','4XpLmzp','cluster-name','push','WsyBN','isktc','type','usage','bstackUsername','password','INFO','requestId','sSGwm','34067120ZECFHr','jsdmW','unauthorised','description','../../config/constants','../../utils/instrumentationUtils','\x0aFound\x20the\x20following\x20grids:\x0a','grid-name','existsSync','body','/packages/cli/get-grids','allGrids','16yWcHyv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-all-grids','UCdMa','unknown-error','exit','forEach','queued','8729770cGmwzA','ERROR','FRQcX','handler','stack','epilogue','table','DVRSc','command','ghrax','Ijzfl','QQIGX','status','TitUP','init-not-called','error','6261453MKKlXC','log','zyTMv','Failed\x20to\x20list\x20resources!\x20Error:\x20','uuid','469936hXjIhw','argv','VxhKl','GhATt','grids','../../utils/utilityMethods','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','running','2009427XwETfM','Browserstack','username','RubhW','got','xIAac','znLhL','name','yaMtx','DahLq','GEmru','desc','grid-id','2154145QwfDEm','stringify','options','ltvTv','parse','help','vVoJA','clusterName','grid','18YksDtF','MsPqY','OqOBx','server-error','zFCuB','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','statusCode','8386KCJryi','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a15_0x31f4=function(){return _0x27e662;};return a15_0x31f4();}
1
+ function a15_0x59ba(_0x32c6ea,_0x5145fa){const _0x475c5f=a15_0x475c();return a15_0x59ba=function(_0x59ba40,_0x3e5351){_0x59ba40=_0x59ba40-0x1df;let _0x4ce6e8=_0x475c5f[_0x59ba40];return _0x4ce6e8;},a15_0x59ba(_0x32c6ea,_0x5145fa);}const a15_0x3e859e=a15_0x59ba;(function(_0x35ffd4,_0x3551e1){const _0xbaac5e=a15_0x59ba,_0x5701f5=_0x35ffd4();while(!![]){try{const _0x524784=parseInt(_0xbaac5e(0x1ee))/0x1+parseInt(_0xbaac5e(0x1f1))/0x2+-parseInt(_0xbaac5e(0x1ff))/0x3+-parseInt(_0xbaac5e(0x22f))/0x4*(parseInt(_0xbaac5e(0x209))/0x5)+-parseInt(_0xbaac5e(0x221))/0x6*(-parseInt(_0xbaac5e(0x220))/0x7)+parseInt(_0xbaac5e(0x22b))/0x8*(parseInt(_0xbaac5e(0x219))/0x9)+parseInt(_0xbaac5e(0x225))/0xa;if(_0x524784===_0x3551e1)break;else _0x5701f5['push'](_0x5701f5['shift']());}catch(_0x1c1b33){_0x5701f5['push'](_0x5701f5['shift']());}}}(a15_0x475c,0x86b67));const fs=require('fs'),got=require('got'),{table}=require(a15_0x3e859e(0x21e)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x475c(){const _0xf843ef=['uUNNr','bsSgZ','uIXcJ','table','yTYQZ','1309PjAHMu','24pcZtog','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','parse','handler','11674220rtevzI','server-error','cluster-name','DEoAP','/packages/cli/get-all-grids','readFileSync','8aCXYYc','epilogue','grids','desc','171652BYSMZh','AgSdo','existsSync','FOdsX','NLzfY','unknown-error','all-grids','list-grids-called','boolean','INFO','username','unauthorised','statusCode','log','HZvma','CreOy','help','init-not-called','bstackAccesskey','list','KkbWz','294944EZaiGp','queued','builder','241928WvTLSr','allGrids','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','\x0aFound\x20the\x20following\x20grids:\x0a','Failed\x20to\x20list\x20resources!\x20Error:\x20','GET','forEach','options','https://','yDulJ','Browserstack','Xwqtk','TWrud','body','3241461gSBCxC','description','grid-id','LYShg','VSqxg','aAUPL','bstackUsername','UNwNb','rCyry','pSCoV','55yyuRSr','push','usage','AijTe','error','ERROR','kENuD','UihVc','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','exit','JHIQv','type','status','running','4682115mCpxfd','clusterName'];a15_0x475c=function(){return _0xf843ef;};return a15_0x475c();}exports['command']=a15_0x3e859e(0x22d),exports[a15_0x3e859e(0x22e)]=a15_0x3e859e(0x222),exports[a15_0x3e859e(0x1f0)]=function(_0x5e8edb){const _0x5457d6=a15_0x3e859e,_0x227f11={};_0x227f11[_0x5457d6(0x206)]=_0x5457d6(0x1f3),_0x227f11[_0x5457d6(0x21f)]=_0x5457d6(0x1e1),_0x227f11[_0x5457d6(0x1ed)]=_0x5457d6(0x1e9);const _0x23ee16=_0x227f11,_0x174d03={};_0x174d03[_0x5457d6(0x200)]=_0x23ee16['UNwNb'],_0x174d03[_0x5457d6(0x216)]=_0x23ee16['yTYQZ'];const _0x4eb72c={};return _0x4eb72c[_0x5457d6(0x1df)]=_0x174d03,_0x5e8edb[_0x5457d6(0x20b)](HELP_HEADER_MESSAGE[_0x5457d6(0x1ec)]['grid'])[_0x5457d6(0x22c)](HELP_FOOTER_MESSAGE)[_0x5457d6(0x1f8)](_0x4eb72c)['help'](_0x23ee16[_0x5457d6(0x1ed)])['argv'];},exports[a15_0x3e859e(0x224)]=async function(_0x1f7fe5){const _0x2fd63a=a15_0x3e859e,_0x418e37={'uIXcJ':function(_0x461b70){return _0x461b70();},'yDulJ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bsSgZ':function(_0x5b7fc0,_0x22aa1b,_0xf232c5,_0x560689,_0x502ee3,_0x6abe3b,_0x4a5f2d){return _0x5b7fc0(_0x22aa1b,_0xf232c5,_0x560689,_0x502ee3,_0x6abe3b,_0x4a5f2d);},'Xwqtk':_0x2fd63a(0x1e0),'FOdsX':_0x2fd63a(0x1ea),'SNHeI':function(_0x2d1bf1){return _0x2d1bf1();},'nBnmx':_0x2fd63a(0x1f6),'VSqxg':function(_0x223405,_0x5e8142,_0x474492){return _0x223405(_0x5e8142,_0x474492);},'aAUPL':function(_0x81850b,_0x1802e0){return _0x81850b!==_0x1802e0;},'EXaaU':function(_0x431755,_0x5e5b2d){return _0x431755===_0x5e5b2d;},'uUNNr':_0x2fd63a(0x1f4),'TWrud':_0x2fd63a(0x201),'JHIQv':'grid-name','AgSdo':_0x2fd63a(0x217),'UihVc':_0x2fd63a(0x218),'HZvma':_0x2fd63a(0x1ef),'rCyry':_0x2fd63a(0x227),'LYShg':function(_0x4c0879,_0x44c1ed){return _0x4c0879(_0x44c1ed);},'DEoAP':function(_0x5728a8,_0x55d3ba){return _0x5728a8===_0x55d3ba;},'CreOy':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','eCsuC':function(_0x23d4e6,_0x361ebb,_0x3c6733,_0xca3dcc,_0x681c7,_0x2c2bec,_0x2f5347){return _0x23d4e6(_0x361ebb,_0x3c6733,_0xca3dcc,_0x681c7,_0x2c2bec,_0x2f5347);},'AijTe':_0x2fd63a(0x1e4),'NLzfY':function(_0x36d544,_0x599cff,_0x135965,_0x4e478e,_0x1ef6cd,_0x27ee49,_0x16397f){return _0x36d544(_0x599cff,_0x135965,_0x4e478e,_0x1ef6cd,_0x27ee49,_0x16397f);},'pSCoV':_0x2fd63a(0x226),'kENuD':_0x2fd63a(0x234)};try{global_registry['requestId']=_0x418e37['uIXcJ'](uuidv4);!fs[_0x2fd63a(0x231)](_0x418e37[_0x2fd63a(0x21d)](getCredentialsPath))&&(console[_0x2fd63a(0x20d)](_0x418e37[_0x2fd63a(0x1fa)]),await _0x418e37[_0x2fd63a(0x21c)](sendInstrumentationEvent,_0x1f7fe5,_0x418e37['Xwqtk'],messageTypes[_0x2fd63a(0x20e)],_0x418e37[_0x2fd63a(0x232)],null,_0x1f7fe5),process[_0x2fd63a(0x214)](0x1));const _0xca9382=JSON[_0x2fd63a(0x223)](fs[_0x2fd63a(0x22a)](_0x418e37['SNHeI'](getCredentialsPath)));let _0x3a71d9=_0x2fd63a(0x1f9)+AG_API_URL+'/packages/cli/get-grids';_0x1f7fe5[_0x2fd63a(0x1f2)]&&(_0x3a71d9=_0x2fd63a(0x1f9)+AG_API_URL+_0x2fd63a(0x229));const _0x12b878={'method':_0x418e37['nBnmx'],'headers':_0x418e37['VSqxg'](getAuthHeader,_0xca9382[_0x2fd63a(0x1fb)][_0x2fd63a(0x1e3)],_0xca9382[_0x2fd63a(0x1fb)][_0x2fd63a(0x213)]),'throwHttpErrors':![]};global_registry[_0x2fd63a(0x205)]=_0xca9382[_0x2fd63a(0x1fb)][_0x2fd63a(0x1e3)],global_registry[_0x2fd63a(0x1eb)]=_0xca9382[_0x2fd63a(0x1fb)][_0x2fd63a(0x213)],_0x418e37['bsSgZ'](sendInstrumentationEvent,_0x1f7fe5,_0x418e37['Xwqtk'],messageTypes[_0x2fd63a(0x1e2)],null,null,_0x1f7fe5);const _0x5e25c0=await _0x418e37[_0x2fd63a(0x203)](got,_0x3a71d9,_0x12b878);if(_0x418e37[_0x2fd63a(0x204)](_0x5e25c0,null)&&_0x418e37[_0x2fd63a(0x204)](_0x5e25c0,undefined)&&_0x418e37['EXaaU'](_0x5e25c0[_0x2fd63a(0x1e5)],0xc8)){const _0x15c5e0=JSON[_0x2fd63a(0x223)](_0x5e25c0[_0x2fd63a(0x1fe)]);console[_0x2fd63a(0x1e6)](_0x418e37[_0x2fd63a(0x21b)]);const _0x3f8039=[];_0x3f8039[_0x2fd63a(0x20a)]([_0x418e37[_0x2fd63a(0x1fd)],_0x418e37[_0x2fd63a(0x215)],_0x418e37[_0x2fd63a(0x230)],_0x418e37[_0x2fd63a(0x210)],_0x418e37[_0x2fd63a(0x1e7)],_0x418e37[_0x2fd63a(0x207)]]),_0x15c5e0[_0x2fd63a(0x1f7)](_0x23bd27=>{const _0x23bd6e=_0x2fd63a;_0x3f8039[_0x23bd6e(0x20a)]([_0x23bd27['id'],_0x23bd27[_0x23bd6e(0x211)],_0x23bd27[_0x23bd6e(0x217)],_0x23bd27[_0x23bd6e(0x218)],_0x23bd27[_0x23bd6e(0x1ef)],_0x23bd27[_0x23bd6e(0x21a)]]);}),console[_0x2fd63a(0x1e6)](_0x418e37[_0x2fd63a(0x202)](table,_0x3f8039)),process['exit'](0x0);}_0x418e37[_0x2fd63a(0x228)](_0x5e25c0[_0x2fd63a(0x1e5)],0x191)&&(console['error'](_0x418e37[_0x2fd63a(0x1e8)]),await _0x418e37['eCsuC'](sendInstrumentationEvent,_0x1f7fe5,_0x418e37['Xwqtk'],messageTypes[_0x2fd63a(0x20e)],_0x418e37[_0x2fd63a(0x20c)],null,_0x1f7fe5),process[_0x2fd63a(0x214)](0x1)),console[_0x2fd63a(0x20d)](_0x2fd63a(0x212)+JSON['stringify'](_0x5e25c0)),await _0x418e37[_0x2fd63a(0x233)](sendInstrumentationEvent,_0x1f7fe5,_0x418e37[_0x2fd63a(0x1fc)],messageTypes[_0x2fd63a(0x20e)],_0x418e37[_0x2fd63a(0x208)],_0x5e25c0,_0x1f7fe5),process[_0x2fd63a(0x214)](0x1);}catch(_0x53e4a3){console[_0x2fd63a(0x20d)](_0x2fd63a(0x1f5)+_0x53e4a3['stack']),await _0x418e37[_0x2fd63a(0x233)](sendInstrumentationEvent,_0x1f7fe5,_0x418e37[_0x2fd63a(0x1fc)],messageTypes[_0x2fd63a(0x20e)],_0x418e37[_0x2fd63a(0x20f)],_0x53e4a3,_0x1f7fe5),process[_0x2fd63a(0x214)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x5dca7f=a16_0x547f;function a16_0x2ccf(){const _0x7b182a=['OoVgI','commandDir','RGnWU','pre-check','7431390aDJIAu','strict','987684NoqdQl','370vhqFQa','pre_check','help','65256SRlsit','9006472zxDOuf','usage','3557190LwxTXU','precheck_commands','builder','recommendCommands','44cfQBfd','10824010wUJkWu','12apTQIj','handler','command','1002oCRDHl','epilogue','1140kLyETm'];a16_0x2ccf=function(){return _0x7b182a;};return a16_0x2ccf();}(function(_0x3475bd,_0x1954b2){const _0x5d26f1=a16_0x547f,_0x3da180=_0x3475bd();while(!![]){try{const _0x316536=-parseInt(_0x5d26f1(0x140))/0x1+-parseInt(_0x5d26f1(0x139))/0x2*(parseInt(_0x5d26f1(0x137))/0x3)+-parseInt(_0x5d26f1(0x12b))/0x4*(parseInt(_0x5d26f1(0x141))/0x5)+-parseInt(_0x5d26f1(0x134))/0x6*(parseInt(_0x5d26f1(0x12e))/0x7)+-parseInt(_0x5d26f1(0x12c))/0x8+parseInt(_0x5d26f1(0x13e))/0x9+-parseInt(_0x5d26f1(0x133))/0xa*(-parseInt(_0x5d26f1(0x132))/0xb);if(_0x316536===_0x1954b2)break;else _0x3da180['push'](_0x3da180['shift']());}catch(_0x5c0ae9){_0x3da180['push'](_0x3da180['shift']());}}}(a16_0x2ccf,0x99499));function a16_0x547f(_0x3f31dc,_0x2b829d){const _0x2ccf8e=a16_0x2ccf();return a16_0x547f=function(_0x547f1b,_0x43fc80){_0x547f1b=_0x547f1b-0x12a;let _0x251d1b=_0x2ccf8e[_0x547f1b];return _0x251d1b;},a16_0x547f(_0x3f31dc,_0x2b829d);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x5dca7f(0x136)]=a16_0x5dca7f(0x13d),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x5dca7f(0x130)]=function(_0x52369c){const _0x418f55=a16_0x5dca7f,_0x2f4625={};_0x2f4625[_0x418f55(0x13c)]=_0x418f55(0x12f),_0x2f4625[_0x418f55(0x13a)]='help';const _0x23dece=_0x2f4625;return _0x52369c[_0x418f55(0x12d)](HELP_HEADER_MESSAGE[_0x418f55(0x142)])[_0x418f55(0x138)](HELP_FOOTER_MESSAGE)[_0x418f55(0x13b)](_0x23dece[_0x418f55(0x13c)])['demandCommand']()[_0x418f55(0x131)]()[_0x418f55(0x13f)]()[_0x418f55(0x12a)](_0x23dece[_0x418f55(0x13a)]);},exports[a16_0x5dca7f(0x135)]=function(_0x19bd41){};
1
+ const a16_0x5aa695=a16_0x5ef6;function a16_0x5ef6(_0x121158,_0xeb96a1){const _0x1ae0f7=a16_0x1ae0();return a16_0x5ef6=function(_0x5ef680,_0x587720){_0x5ef680=_0x5ef680-0x1c1;let _0x4901fc=_0x1ae0f7[_0x5ef680];return _0x4901fc;},a16_0x5ef6(_0x121158,_0xeb96a1);}(function(_0x553b0b,_0x303bc8){const _0x346f1d=a16_0x5ef6,_0x355632=_0x553b0b();while(!![]){try{const _0x20ec6d=parseInt(_0x346f1d(0x1cd))/0x1*(-parseInt(_0x346f1d(0x1ca))/0x2)+-parseInt(_0x346f1d(0x1c2))/0x3+-parseInt(_0x346f1d(0x1c3))/0x4+parseInt(_0x346f1d(0x1c1))/0x5*(-parseInt(_0x346f1d(0x1cf))/0x6)+-parseInt(_0x346f1d(0x1d8))/0x7*(-parseInt(_0x346f1d(0x1c7))/0x8)+-parseInt(_0x346f1d(0x1d7))/0x9+parseInt(_0x346f1d(0x1d1))/0xa;if(_0x20ec6d===_0x303bc8)break;else _0x355632['push'](_0x355632['shift']());}catch(_0x2a7198){_0x355632['push'](_0x355632['shift']());}}}(a16_0x1ae0,0xd6bd9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x1ae0(){const _0x4c71c7=['17185JZZxOZ','4091343jHXwDL','5958588pLAyPu','handler','epilogue','help','8248qXYDBq','recommendCommands','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','3502114XNtBLp','desc','precheck_commands','1rNevvo','rHmty','492xohXmS','pre-check','64069350qEFZdU','command','Igsgo','pre_check','usage','strict','11448099XGxyIN','4284pCRVGY','commandDir','demandCommand'];a16_0x1ae0=function(){return _0x4c71c7;};return a16_0x1ae0();}exports[a16_0x5aa695(0x1d2)]=a16_0x5aa695(0x1d0),exports[a16_0x5aa695(0x1cb)]=a16_0x5aa695(0x1c9),exports['builder']=function(_0x296554){const _0x53a209=a16_0x5aa695,_0x9ff472={};_0x9ff472[_0x53a209(0x1d3)]=_0x53a209(0x1cc),_0x9ff472[_0x53a209(0x1ce)]='help';const _0x22d8e3=_0x9ff472;return _0x296554[_0x53a209(0x1d5)](HELP_HEADER_MESSAGE[_0x53a209(0x1d4)])[_0x53a209(0x1c5)](HELP_FOOTER_MESSAGE)[_0x53a209(0x1d9)](_0x22d8e3[_0x53a209(0x1d3)])[_0x53a209(0x1da)]()[_0x53a209(0x1c8)]()[_0x53a209(0x1d6)]()[_0x53a209(0x1c6)](_0x22d8e3['rHmty']);},exports[a16_0x5aa695(0x1c4)]=function(_0x2b0491){};
@@ -1 +1 @@
1
- const a17_0x282992=a17_0x1bf4;(function(_0x354414,_0x97d1bf){const _0x4d0d28=a17_0x1bf4,_0x50fc53=_0x354414();while(!![]){try{const _0x31c8b1=parseInt(_0x4d0d28(0x190))/0x1*(-parseInt(_0x4d0d28(0x1ea))/0x2)+parseInt(_0x4d0d28(0x1d0))/0x3+parseInt(_0x4d0d28(0x1b3))/0x4+parseInt(_0x4d0d28(0x235))/0x5+-parseInt(_0x4d0d28(0x25c))/0x6+parseInt(_0x4d0d28(0x25d))/0x7*(-parseInt(_0x4d0d28(0x191))/0x8)+-parseInt(_0x4d0d28(0x160))/0x9*(-parseInt(_0x4d0d28(0x1bd))/0xa);if(_0x31c8b1===_0x97d1bf)break;else _0x50fc53['push'](_0x50fc53['shift']());}catch(_0xb4804e){_0x50fc53['push'](_0x50fc53['shift']());}}}(a17_0x3d68,0x2b39c));const fs=require('fs'),ws=require('ws'),got=require(a17_0x282992(0x211)),{v4:uuidv4}=require(a17_0x282992(0x1f0)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x282992(0x1e6)),{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(a17_0x282992(0x1d2)),{getCloudProviderObjectWithOutInit}=require(a17_0x282992(0x167)),webSocketUtils=require(a17_0x282992(0x1db)),{sendInstrumentationEvent}=require(a17_0x282992(0x1fa));exports[a17_0x282992(0x256)]='grid',exports[a17_0x282992(0x243)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x282992(0x23b)]=function(_0x5d3a03){const _0x1a04cb=a17_0x282992,_0x488914={};_0x488914[_0x1a04cb(0x207)]=_0x1a04cb(0x216),_0x488914[_0x1a04cb(0x1de)]='string',_0x488914[_0x1a04cb(0x1b2)]=_0x1a04cb(0x197),_0x488914[_0x1a04cb(0x231)]=_0x1a04cb(0x198),_0x488914[_0x1a04cb(0x1c5)]=_0x1a04cb(0x1bb),_0x488914[_0x1a04cb(0x22b)]=_0x1a04cb(0x22a);const _0x24e4c1=_0x488914,_0x4bd5ce={};_0x4bd5ce['description']=_0x24e4c1[_0x1a04cb(0x207)],_0x4bd5ce['type']=_0x24e4c1[_0x1a04cb(0x1de)];const _0x21a70a={};_0x21a70a[_0x1a04cb(0x1a3)]=_0x24e4c1[_0x1a04cb(0x1b2)],_0x21a70a['type']=_0x24e4c1[_0x1a04cb(0x1de)];const _0xbabb7e={};_0xbabb7e[_0x1a04cb(0x1a3)]=_0x24e4c1[_0x1a04cb(0x231)],_0xbabb7e['type']=_0x24e4c1[_0x1a04cb(0x1de)];const _0x2ed8c2={};_0x2ed8c2[_0x1a04cb(0x1a3)]=_0x24e4c1['dUvnz'],_0x2ed8c2['type']=_0x24e4c1[_0x1a04cb(0x1de)];const _0x499a3a={};return _0x499a3a['cluster-name']=_0x4bd5ce,_0x499a3a[_0x1a04cb(0x1bf)]=_0x21a70a,_0x499a3a[_0x1a04cb(0x252)]=_0xbabb7e,_0x499a3a['grid-profile']=_0x2ed8c2,_0x5d3a03[_0x1a04cb(0x24a)](HELP_HEADER_MESSAGE[_0x1a04cb(0x22c)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1a04cb(0x209)](_0x499a3a)['help'](_0x24e4c1[_0x1a04cb(0x22b)])[_0x1a04cb(0x1e4)];};function a17_0x3d68(){const _0x9ed032=['gridProfile','builder','bpmeC','MrNOv','checkAccess','PbxiS','\x20\x20Stack:\x20','IECrI','eIbzP','desc','rMzSu','Setting\x20cloud\x20provider\x20as\x20','IltYE','includes','QFiKC','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','usage','/packages/cli/get-all-grid-profiles','fOyoV','pWkZY','JMtZZ','ERROR','header','Eqmvg','region','pre-check','INFO','KeyVM','command','is\x20already\x20present','KpvPv','OOres','pre-check-grid-profile-empty','Cluster\x20`','1515906eEDoPy','1974sermnx','WvapO','1466379EeccHX','exit','connectionTimeout','isTls1_2_SUPPORTED','mCQbL','stringify','XBYuO','../../cloudproviders/utils','Cluster\x20','code','stack\x20trace\x20','aofzV','https://','clusterRegion','.txt','Failure','Browserstack','data','string','ingHy','isTrialGridAccessible','YLSdd','hGerJ','\x20\x20Code:\x20','\x20region\x20-\x20','UUKrU','clusterName','VJDWP','fQVmW','Missing\x20required\x20arguments:\x20','.\x20Please\x20provide\x20all\x20required\x20arguments.','getUTCMonth','NCwdi','accessResp','===\x20Precheck\x20Report\x20-\x20','status','push','dzCgi','qQoIr','esdzb','isClusterPresent','debug','wcTaZ','LOG','Cqkdv','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','UKVgL','yHTnI','1185leIqTt','7240fSfvsi','eMKkV','hgjEE','delay','JnfoI','log/report_','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','JlFgt','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','hTGRB',']\x20status\x20:\x20','Status:\x20','pre-check-grid-called','JrkNU','uLtAb','headers','AeobO','description','method','xQecx','getUTCMinutes','DCqDm','MpZVg','SRHdI','Invalid\x20input.\x20grid\x20profiles:\x20','Hokrj','dummy-grid','join','tyskw','OMvNs','grid-profile','Grid\x20profile\x20fetched\x20for\x20pre-check','vkmxW','386244RVeNMZ','getUTCHours','User\x20Access','xJgWz','QfXkz','isCliToolInstalled','Success','eeIkJ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','\x20data\x20:\x20','10EamWYp','Error\x20Details:\x0a','cloud-provider','toolInstalledResp','CLOUD_PROVIDER','Report\x20saved\x20in\x20','utf-8','Whitelisted\x20browserstack','dUvnz','VNrQM','UZdGi','parse','`\x20already\x20exists','pre-check-cluster-args-not-passed','authHeader','SSL\x20Configured','info','bzarp','response','758568wOksEp','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','../../config/constants','AfsAO','find','requestId','LzAjh','type','replace','WebSocket','heFMj','../../utils/webSocketUtils','existsSync','qGnYp','UMYLE','MJOGP','Nwnyt','PnBzB','username','UavEr','argv','cloud-provider-not-supported','../../utils/utilityMethods','ilzWj','GhPTg','FqRdT','142LaIimw','password','`\x20,error\x20:\x20','iRkiN','gEcsd','Rjlwn','uuid','Message:\x20','toLowerCase','cloudProvider','PszDf','MUCEy','cluster-check-failed-','OxoEF','bstackAccesskey','eypEb','../../utils/instrumentationUtils','zMerv','JQKDk','tGmeG','JbemL','split','LXgDp','iBqoa','N/A','<PasswordPlaceholder>','bstackUsername','sendEventToBackend','message','XaYSd','UBuee','options','cluster-name','WqgkS','jXDhC','pre-check-failed','Failed\x20in\x20pre-check!\x20Error:\x20','RXhRb','\x20\x20Message:\x20','got','qiqsM','ERPYs','body','error','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','KMift','hyPSr','Hrrql','rgWwh','Pre-check\x20running\x20for\x20Cloud\x20-\x20','dEYsZ','bkHNR','TLSv1_2_client_method','KWIGN','ABkCx','stack','RSPlT','HQuYa','<UsernamePlaceholder>','getUTCDate','Cluster\x20details\x0a-----------------------\x0a','HIKbG','tTaGa','readFileSync','help','Tzkzm','pre_check','\x20===\x0a\x0a','error\x20stack\x20:\x20','alMvK','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','yBsdp','gsUpd','name','ouFPZ','1283500kkNKvU','grid\x20profile\x20flow\x20','\x20error\x20:\x20','dRunr','agmyX'];a17_0x3d68=function(){return _0x9ed032;};return a17_0x3d68();}function a17_0x1bf4(_0x4dea94,_0x1ca011){const _0x3d68e1=a17_0x3d68();return a17_0x1bf4=function(_0x1bf43b,_0x4bb3c8){_0x1bf43b=_0x1bf43b-0x160;let _0x3da3a6=_0x3d68e1[_0x1bf43b];return _0x3da3a6;},a17_0x1bf4(_0x4dea94,_0x1ca011);}async function inputValidation(_0x2dbab1,_0x54dc5c){const _0x25d79f=a17_0x282992,_0x93b4b1={'ggzqd':function(_0x4670eb,_0x11434f){return _0x4670eb+_0x11434f;},'JbemL':_0x25d79f(0x1b9),'Hrrql':'Failure','eeIkJ':function(_0x45eede,_0x56c224){return _0x45eede||_0x56c224;},'uLtAb':_0x25d79f(0x202),'UKVgL':_0x25d79f(0x1be),'ouFPZ':_0x25d79f(0x257),'dRunr':'will\x20be\x20created','alMvK':_0x25d79f(0x1bf),'Eqmvg':_0x25d79f(0x215),'RsYjU':_0x25d79f(0x1d1),'RXhRb':_0x25d79f(0x252),'Rjlwn':_0x25d79f(0x20a),'iRkiN':function(_0xd81dfe,_0x220fdf){return _0xd81dfe===_0x220fdf;},'qGnYp':'OlVCp','TIYxB':_0x25d79f(0x258),'JMtZZ':_0x25d79f(0x1ae),'xJgWz':'miDWH','SRHdI':_0x25d79f(0x18a),'heFMj':function(_0x493716,_0x3a83fc){return _0x493716===_0x3a83fc;},'qiqsM':_0x25d79f(0x23f),'XBYuO':_0x25d79f(0x1e0),'sVKVJ':_0x25d79f(0x186),'fOyoV':function(_0x153197,_0x3dc50d){return _0x153197>_0x3dc50d;},'WvapO':_0x25d79f(0x20c),'VJDWP':function(_0x2e6947,_0x4416ec,_0x44c9f6,_0x85d79,_0x206b06,_0x50f158,_0x1bbfea,_0x5e6372){return _0x2e6947(_0x4416ec,_0x44c9f6,_0x85d79,_0x206b06,_0x50f158,_0x1bbfea,_0x5e6372);},'iBqoa':_0x25d79f(0x19e),'OOres':_0x25d79f(0x1ca),'MpZVg':function(_0x451832,_0x5c6543){return _0x451832!==_0x5c6543;},'UBuee':'QMgee','MUCEy':'JVPDK','ehRVu':_0x25d79f(0x230),'MJOGP':function(_0xecf508,_0x5392d7,_0x271197,_0x527f34,_0xd478c3,_0x3cd88f,_0x556563,_0x492bd9){return _0xecf508(_0x5392d7,_0x271197,_0x527f34,_0xd478c3,_0x3cd88f,_0x556563,_0x492bd9);},'aofzV':_0x25d79f(0x1e5),'ERPYs':_0x25d79f(0x1ee),'wbEpl':_0x25d79f(0x222),'dEYsZ':function(_0xb0a911,_0x5ae234){return _0xb0a911!==_0x5ae234;},'esdzb':_0x25d79f(0x248),'MrNOv':'GET','yHTnI':function(_0x3666fa,_0x3f4733,_0x19ef0d){return _0x3666fa(_0x3f4733,_0x19ef0d);},'xQecx':function(_0xbaec32,_0x2b1bc3,_0x1dc92d,_0x18431a,_0x2c1632,_0x562ce2){return _0xbaec32(_0x2b1bc3,_0x1dc92d,_0x18431a,_0x2c1632,_0x562ce2);},'WqgkS':_0x25d79f(0x253),'itEUI':'grid-profile','Cqkdv':function(_0x56eb7e,_0x39095a){return _0x56eb7e!==_0x39095a;},'AeobO':_0x25d79f(0x1e3),'GhPTg':function(_0x42b29c,_0x27fdd3){return _0x42b29c(_0x27fdd3);},'eIbzP':function(_0x1bdfc8,_0x954952){return _0x1bdfc8!==_0x954952;},'hgjEE':'ZZnBi','zBKiZ':function(_0x557cb1,_0x21a826,_0x14011f,_0x3eaacd,_0x226719,_0xc0716d,_0x5d59fc,_0x3d07d4){return _0x557cb1(_0x21a826,_0x14011f,_0x3eaacd,_0x226719,_0xc0716d,_0x5d59fc,_0x3d07d4);},'JnfoI':_0x25d79f(0x25a),'KeyVM':'UjDgW','bRnoW':function(_0x1023bf,_0x534167){return _0x1023bf===_0x534167;},'CIckt':'Tnogk','ingHy':'IMwUE','AfsAO':_0x25d79f(0x1b1),'hTGRB':function(_0x421dfe,_0x3417f9){return _0x421dfe!==_0x3417f9;},'gKlDg':'LNlcu','QfXkz':function(_0x367856,_0x5c7522){return _0x367856===_0x5c7522;},'bmoxk':_0x25d79f(0x228),'PnBzB':'chaHX'};let _0x1adae7;try{if(_0x93b4b1['iRkiN'](_0x93b4b1[_0x25d79f(0x1dd)],_0x93b4b1['TIYxB'])){const {header:_0x430fe3,response:_0xd9fec1}=_0x12a585,{status:_0xc29a48,data:_0x5a5e00,error:_0x4bbfc2}=_0xd9fec1;_0x2c0329+=_0x430fe3+'\x20#'+_0x93b4b1['ggzqd'](_0x282a8e,0x1)+'\x0a',_0x58ab0c+='Status:\x20'+(_0xc29a48?_0x93b4b1[_0x25d79f(0x1fe)]:_0x93b4b1[_0x25d79f(0x219)])+'\x0a',_0x4dd92c+=_0x25d79f(0x1f1)+_0x93b4b1[_0x25d79f(0x1ba)](_0x5a5e00,_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a',_0x4bbfc2&&(_0xdd8c8c+=_0x93b4b1[_0x25d79f(0x18e)],_0xed0942+=_0x25d79f(0x210)+(_0x4bbfc2[_0x25d79f(0x206)]||_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a',_0xea42b6+=_0x25d79f(0x177)+(_0x4bbfc2[_0x25d79f(0x169)]||_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a',_0x4828d6+=_0x25d79f(0x240)+(_0x4bbfc2[_0x25d79f(0x221)]||_0x93b4b1['uLtAb'])+'\x0a'),_0x4e6140+='\x0a\x0a';}else{if(_0x2dbab1['clusterName']||_0x2dbab1[_0x25d79f(0x1f3)]||_0x2dbab1[_0x25d79f(0x252)]){if(_0x93b4b1[_0x25d79f(0x1ed)](_0x93b4b1[_0x25d79f(0x24e)],_0x93b4b1['JMtZZ'])){const _0x377879=[];!_0x2dbab1[_0x25d79f(0x17a)]&&(_0x93b4b1[_0x25d79f(0x1ed)](_0x93b4b1[_0x25d79f(0x1b6)],_0x93b4b1[_0x25d79f(0x1a9)])?_0x526d1c+=_0x25d79f(0x168)+_0x2986e6[_0x25d79f(0x17a)]+'\x20'+(_0x2a9a70?_0x93b4b1[_0x25d79f(0x234)]:_0x93b4b1[_0x25d79f(0x238)])+'\x0a\x0a':_0x377879['push'](_0x93b4b1[_0x25d79f(0x1ef)]));;!_0x2dbab1[_0x25d79f(0x1f3)]&&(_0x93b4b1[_0x25d79f(0x1da)](_0x93b4b1[_0x25d79f(0x212)],_0x93b4b1[_0x25d79f(0x212)])?_0x377879[_0x25d79f(0x184)](_0x93b4b1[_0x25d79f(0x22f)]):_0x7516ca[_0x25d79f(0x184)](_0x93b4b1[_0x25d79f(0x22f)]));;if(!_0x2dbab1[_0x25d79f(0x252)]){if(_0x93b4b1[_0x25d79f(0x1ed)](_0x93b4b1[_0x25d79f(0x166)],_0x93b4b1['sVKVJ'])){const _0x4caf30={};_0x4caf30[_0x25d79f(0x1d7)]=_0x689fa9['LOG'],_0x4caf30[_0x25d79f(0x206)]=_0x12dd04,_0x2a86da[_0x25d79f(0x205)](_0x11ddd7,_0x4caf30,_0x93b4b1[_0x25d79f(0x251)],!![]);}else _0x377879[_0x25d79f(0x184)](_0x93b4b1['RXhRb']);};_0x93b4b1[_0x25d79f(0x24c)](_0x377879['length'],0x0)&&(_0x93b4b1[_0x25d79f(0x1da)](_0x93b4b1[_0x25d79f(0x25e)],_0x93b4b1[_0x25d79f(0x25e)])?(_0x1adae7=_0x25d79f(0x17d)+_0x377879[_0x25d79f(0x1ad)](',\x20')+_0x25d79f(0x17e),await _0x93b4b1[_0x25d79f(0x17b)](reportToGalactusAndSendToEDS,_0x2dbab1,_0x54dc5c,_0x1adae7,messageTypes['ERROR'],_0x93b4b1[_0x25d79f(0x201)],_0x93b4b1[_0x25d79f(0x259)],_0x93b4b1[_0x25d79f(0x251)]),logger[_0x25d79f(0x215)](_0x1adae7),process[_0x25d79f(0x161)](0x1)):_0x36ce48+=_0x25d79f(0x168)+_0x3b05a6[_0x25d79f(0x17a)]+_0x25d79f(0x19a)),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x25d79f(0x247)](_0x2dbab1['cloudProvider'][_0x25d79f(0x1f2)]())&&(_0x93b4b1[_0x25d79f(0x1a8)](_0x93b4b1[_0x25d79f(0x208)],_0x93b4b1[_0x25d79f(0x1f5)])?(_0x1adae7=_0x93b4b1['ehRVu'],await _0x93b4b1['MJOGP'](reportToGalactusAndSendToEDS,_0x2dbab1,_0x54dc5c,_0x1adae7,messageTypes['ERROR'],_0x93b4b1[_0x25d79f(0x201)],_0x93b4b1[_0x25d79f(0x16b)],_0x93b4b1['Eqmvg']),logger['error'](_0x1adae7),!_0x2dbab1[_0x25d79f(0x1f3)]&&(_0x93b4b1[_0x25d79f(0x1da)](_0x93b4b1[_0x25d79f(0x213)],_0x93b4b1['wbEpl'])?_0x31b58f['info'](_0x25d79f(0x25b)+_0x2482c7[_0x25d79f(0x17a)]+_0x25d79f(0x1c9)):(logger[_0x25d79f(0x1cd)](_0x25d79f(0x245)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x2dbab1['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x25d79f(0x1c1)]))):(_0x3dfd4e+=_0x93b4b1['UKVgL'],_0x19e1a9+=_0x25d79f(0x210)+(_0x18c285[_0x25d79f(0x206)]||_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a',_0x4156b9+=_0x25d79f(0x177)+(_0x5aa408[_0x25d79f(0x169)]||_0x93b4b1['uLtAb'])+'\x0a',_0x5d869b+=_0x25d79f(0x240)+(_0x318b0a['stack']||_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a')),global_registry['clusterName']=_0x2dbab1[_0x25d79f(0x17a)],global_registry[_0x25d79f(0x1f3)]=_0x2dbab1[_0x25d79f(0x1f3)],global_registry[_0x25d79f(0x16d)]=_0x2dbab1['region'];}else _0x256266['error'](_0x93b4b1['RsYjU']),_0xf71c72[_0x25d79f(0x161)](0x1);}else{if(_0x2dbab1[_0x25d79f(0x23a)]){if(_0x93b4b1[_0x25d79f(0x21c)](_0x93b4b1[_0x25d79f(0x187)],_0x93b4b1[_0x25d79f(0x187)]))_0x7730b3[_0x25d79f(0x1cd)]('Setting\x20cloud\x20provider\x20as\x20'+_0x2d1d38[_0x25d79f(0x1c1)]+'\x20'),_0x1924ef['cloudProvider']=_0x2b02fe[_0x25d79f(0x1c1)];else{global_registry[_0x25d79f(0x23a)]=_0x2dbab1[_0x25d79f(0x23a)],logger[_0x25d79f(0x189)](_0x25d79f(0x236)+_0x2dbab1[_0x25d79f(0x23a)]);const _0x2581b7=_0x25d79f(0x16c)+AG_API_URL+_0x25d79f(0x24b),_0x534e41={};_0x534e41[_0x25d79f(0x1a4)]=_0x93b4b1[_0x25d79f(0x23d)],_0x534e41[_0x25d79f(0x1a1)]=global_registry[_0x25d79f(0x1cb)],_0x534e41['throwHttpErrors']=![];const _0x3bee09=_0x534e41,_0x1fdf25=await _0x93b4b1[_0x25d79f(0x18f)](got,_0x2581b7,_0x3bee09),_0x1c7d69=await _0x93b4b1[_0x25d79f(0x1a5)](responseValidation,_0x1fdf25,_0x93b4b1[_0x25d79f(0x20b)],_0x93b4b1['itEUI'],_0x2dbab1,_0x54dc5c);let _0x4464a9={};if(_0x93b4b1[_0x25d79f(0x1ed)](_0x1c7d69,0xc8)){if(_0x93b4b1[_0x25d79f(0x18c)](_0x93b4b1[_0x25d79f(0x1a2)],_0x93b4b1[_0x25d79f(0x1a2)]))_0x484c9f[_0x25d79f(0x215)](_0x25d79f(0x22e)+_0x555f21[_0x25d79f(0x215)][_0x25d79f(0x221)]);else{const _0x2948f8=JSON[_0x25d79f(0x1c8)](_0x1fdf25[_0x25d79f(0x214)]),_0x386385=_0x2948f8[_0x25d79f(0x1d4)](_0x14dda5=>_0x14dda5[_0x25d79f(0x233)]===_0x2dbab1[_0x25d79f(0x23a)])||null;_0x93b4b1[_0x25d79f(0x1e8)](isUndefined,_0x386385)?_0x93b4b1[_0x25d79f(0x242)](_0x93b4b1[_0x25d79f(0x193)],_0x93b4b1[_0x25d79f(0x193)])?_0xe9efba[_0x25d79f(0x184)](_0x93b4b1[_0x25d79f(0x20f)]):(_0x1adae7=_0x25d79f(0x1aa)+_0x2dbab1[_0x25d79f(0x23a)]+_0x25d79f(0x18d),await _0x93b4b1['zBKiZ'](reportToGalactusAndSendToEDS,_0x2dbab1,_0x54dc5c,_0x1adae7,messageTypes[_0x25d79f(0x24f)],_0x93b4b1['iBqoa'],_0x93b4b1[_0x25d79f(0x195)],_0x93b4b1['Eqmvg']),logger[_0x25d79f(0x215)](_0x1adae7),process[_0x25d79f(0x161)](0x1)):_0x93b4b1['Cqkdv'](_0x93b4b1[_0x25d79f(0x255)],_0x93b4b1[_0x25d79f(0x255)])?_0x1b2cf4=_0x3cafd9:_0x4464a9=_0x386385;}}else _0x93b4b1['bRnoW'](_0x93b4b1['CIckt'],_0x93b4b1[_0x25d79f(0x173)])?_0x126f33[_0x25d79f(0x161)](0x1):process[_0x25d79f(0x161)](0x1);const _0x55a9b5={};_0x55a9b5['type']=WS_EVENTS[_0x25d79f(0x18b)],_0x55a9b5[_0x25d79f(0x206)]=_0x93b4b1[_0x25d79f(0x1d3)],webSocketUtils[_0x25d79f(0x205)](_0x54dc5c,_0x55a9b5),global_registry[_0x25d79f(0x1f3)]=_0x4464a9[_0x25d79f(0x1f3)],global_registry[_0x25d79f(0x16d)]=_0x4464a9[_0x25d79f(0x252)],global_registry[_0x25d79f(0x17a)]=_0x4464a9[_0x25d79f(0x17a)];}}else _0x93b4b1[_0x25d79f(0x19b)](_0x93b4b1['gKlDg'],_0x93b4b1['gKlDg'])?(_0x4d3abe[_0x25d79f(0x1cd)]('['+_0xbef09a+_0x25d79f(0x19c)+_0x4b1317['status']+_0x25d79f(0x1bc)+_0xea24a6[_0x25d79f(0x171)]+_0x25d79f(0x237)+_0x5bceb4[_0x25d79f(0x215)]),_0x3e4c45[_0x25d79f(0x215)]&&_0x17aa0e[_0x25d79f(0x215)](_0x25d79f(0x22e)+_0x40e49c[_0x25d79f(0x215)][_0x25d79f(0x221)])):(logger[_0x25d79f(0x215)](_0x93b4b1['RsYjU']),process[_0x25d79f(0x161)](0x1));}}}catch(_0x42cf64){_0x93b4b1[_0x25d79f(0x1b7)](_0x93b4b1['bmoxk'],_0x93b4b1[_0x25d79f(0x1e1)])?_0x1563fe['push'](_0x93b4b1['Rjlwn']):(_0x1adae7=_0x25d79f(0x249)+_0x42cf64+':\x20'+_0x42cf64[_0x25d79f(0x221)],logger['error'](_0x1adae7),await _0x93b4b1[_0x25d79f(0x1df)](reportToGalactusAndSendToEDS,_0x2dbab1,_0x54dc5c,_0x1adae7,messageTypes['ERROR'],_0x93b4b1[_0x25d79f(0x201)],_0x93b4b1['aofzV'],_0x93b4b1[_0x25d79f(0x251)]),process[_0x25d79f(0x161)](0x1));}}function printResponse(_0x2d1d6b,_0x4d404b){const _0x5cccf9=a17_0x282992,_0x4e758c={};_0x4e758c[_0x5cccf9(0x21a)]=_0x5cccf9(0x216),_0x4e758c[_0x5cccf9(0x1ce)]=_0x5cccf9(0x172),_0x4e758c[_0x5cccf9(0x200)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4e758c[_0x5cccf9(0x244)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4e758c[_0x5cccf9(0x185)]=_0x5cccf9(0x1bb),_0x4e758c[_0x5cccf9(0x217)]=_0x5cccf9(0x22a),_0x4e758c[_0x5cccf9(0x1a7)]=function(_0x5eaa98,_0x26511c){return _0x5eaa98===_0x26511c;},_0x4e758c['IltYE']='sEVhG';const _0x4b1027=_0x4e758c;logger[_0x5cccf9(0x1cd)]('['+_0x2d1d6b+_0x5cccf9(0x19c)+_0x4d404b[_0x5cccf9(0x183)]+_0x5cccf9(0x1bc)+_0x4d404b[_0x5cccf9(0x171)]+_0x5cccf9(0x237)+_0x4d404b['error']);if(_0x4d404b[_0x5cccf9(0x215)]){if(_0x4b1027[_0x5cccf9(0x1a7)](_0x4b1027['IltYE'],_0x4b1027[_0x5cccf9(0x246)]))logger[_0x5cccf9(0x215)](_0x5cccf9(0x22e)+_0x4d404b[_0x5cccf9(0x215)][_0x5cccf9(0x221)]);else{const _0x1ddace={};_0x1ddace[_0x5cccf9(0x1a3)]=_0x4b1027['rgWwh'],_0x1ddace['type']=_0x4b1027[_0x5cccf9(0x1ce)];const _0x23aee1={};_0x23aee1[_0x5cccf9(0x1a3)]=_0x4b1027[_0x5cccf9(0x200)],_0x23aee1[_0x5cccf9(0x1d7)]=_0x4b1027['bzarp'];const _0x3a338e={};_0x3a338e[_0x5cccf9(0x1a3)]=_0x4b1027['rMzSu'],_0x3a338e[_0x5cccf9(0x1d7)]=_0x4b1027[_0x5cccf9(0x1ce)];const _0x4d9c2d={};_0x4d9c2d[_0x5cccf9(0x1a3)]=_0x4b1027['dzCgi'],_0x4d9c2d['type']=_0x4b1027[_0x5cccf9(0x1ce)];const _0x51fa70={};return _0x51fa70[_0x5cccf9(0x20a)]=_0x1ddace,_0x51fa70[_0x5cccf9(0x1bf)]=_0x23aee1,_0x51fa70[_0x5cccf9(0x252)]=_0x3a338e,_0x51fa70[_0x5cccf9(0x1b0)]=_0x4d9c2d,_0x29e973['usage'](_0x304c11['pre_check'])['epilogue'](_0x1258a9)[_0x5cccf9(0x209)](_0x51fa70)[_0x5cccf9(0x22a)](_0x4b1027[_0x5cccf9(0x217)])[_0x5cccf9(0x1e4)];}}}async function generateReport(_0xaaf8bf,_0x357ccd){const _0x10e0ff=a17_0x282992,_0x183282={'zMerv':function(_0x529396,_0x30f42f){return _0x529396+_0x30f42f;},'AvtcL':_0x10e0ff(0x1b9),'fQVmW':_0x10e0ff(0x16f),'bkHNR':function(_0x5181a8,_0x436fe1){return _0x5181a8||_0x436fe1;},'JrkNU':_0x10e0ff(0x202),'YLSdd':_0x10e0ff(0x1be),'eMKkV':_0x10e0ff(0x226),'KkXoA':function(_0x5a3ffb,_0x4516ae){return _0x5a3ffb!=_0x4516ae;},'YdefI':_0x10e0ff(0x257),'TINYV':'will\x20be\x20created','PszDf':function(_0x5c29e2){return _0x5c29e2();}};let _0x1f084b=_0x10e0ff(0x182)+global_registry[_0x10e0ff(0x1f3)]+_0x10e0ff(0x22d);return _0xaaf8bf['forEach']((_0x1e9a6d,_0x5a418b)=>{const _0x3a4076=_0x10e0ff,{header:_0x5fca68,response:_0x3f0d6d}=_0x1e9a6d,{status:_0x3edf42,data:_0x210164,error:_0xe8f920}=_0x3f0d6d;_0x1f084b+=_0x5fca68+'\x20#'+_0x183282[_0x3a4076(0x1fb)](_0x5a418b,0x1)+'\x0a',_0x1f084b+=_0x3a4076(0x19d)+(_0x3edf42?_0x183282['AvtcL']:_0x183282[_0x3a4076(0x17c)])+'\x0a',_0x1f084b+=_0x3a4076(0x1f1)+_0x183282[_0x3a4076(0x21d)](_0x210164,_0x183282['JrkNU'])+'\x0a',_0xe8f920&&(_0x1f084b+=_0x183282[_0x3a4076(0x175)],_0x1f084b+=_0x3a4076(0x210)+(_0xe8f920[_0x3a4076(0x206)]||_0x183282[_0x3a4076(0x19f)])+'\x0a',_0x1f084b+='\x20\x20Code:\x20'+(_0xe8f920[_0x3a4076(0x169)]||_0x183282['JrkNU'])+'\x0a',_0x1f084b+='\x20\x20Stack:\x20'+(_0xe8f920[_0x3a4076(0x221)]||_0x183282[_0x3a4076(0x19f)])+'\x0a'),_0x1f084b+='\x0a\x0a';}),_0x1f084b+=_0x183282[_0x10e0ff(0x192)],_0x183282['KkXoA'](_0x357ccd,null)?_0x1f084b+=_0x10e0ff(0x168)+global_registry['clusterName']+'\x20'+(_0x357ccd?_0x183282['YdefI']:_0x183282['TINYV'])+'\x0a\x0a':_0x1f084b+='Cluster\x20'+global_registry['clusterName']+_0x10e0ff(0x19a),_0x1f084b+=_0x183282[_0x10e0ff(0x1f4)](getSystemMetaData),_0x1f084b;};exports['handler']=async function(_0x1cd4b2){const _0x563f7a=a17_0x282992,_0x15f3fa={'UZdGi':function(_0x2761ad){return _0x2761ad();},'FqRdT':function(_0x26683a){return _0x26683a();},'Hokrj':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ilzWj':function(_0x258dc6,_0x58b66f,_0x4f5c9f,_0x32cbf1,_0x1f102c,_0x217579,_0x371387,_0x5dc4c0){return _0x258dc6(_0x58b66f,_0x4f5c9f,_0x32cbf1,_0x1f102c,_0x217579,_0x371387,_0x5dc4c0);},'JlFgt':_0x563f7a(0x19e),'HIKbG':'credential-not-found','UUKrU':_0x563f7a(0x215),'LzAjh':function(_0x2ca5a0,_0x4826b5,_0x55898e,_0x5aa869,_0x4ec003,_0x1b8e31,_0x15cae9){return _0x2ca5a0(_0x4826b5,_0x55898e,_0x5aa869,_0x4ec003,_0x1b8e31,_0x15cae9);},'JQKDk':_0x563f7a(0x224),'tGmeG':_0x563f7a(0x203),'mCQbL':function(_0x3829b1,_0x48fffe,_0x33bc4d){return _0x3829b1(_0x48fffe,_0x33bc4d);},'hGerJ':_0x563f7a(0x1ac),'NCwdi':function(_0x5130fa,_0x5ada31,_0x56681d){return _0x5130fa(_0x5ada31,_0x56681d);},'OxoEF':_0x563f7a(0x1c0),'khcrH':'4|0|2|1|3','CGfSD':_0x563f7a(0x181),'HQuYa':function(_0xb9284c){return _0xb9284c();},'NqzoR':_0x563f7a(0x174),'bpmeC':function(_0x3c0f27,_0x3d0f71){return _0x3c0f27(_0x3d0f71);},'hyPSr':_0x563f7a(0x21e),'ABkCx':function(_0x1f67ca,_0x571b76,_0x3be0fa){return _0x1f67ca(_0x571b76,_0x3be0fa);},'gsUpd':_0x563f7a(0x163),'XZuFV':'Tool\x20Installed','OMvNs':_0x563f7a(0x1b5),'IECrI':_0x563f7a(0x1c4),'KWIGN':_0x563f7a(0x1cc),'agmyX':function(_0x5abf81,_0x2b4825,_0x4022d8){return _0x5abf81(_0x2b4825,_0x4022d8);},'VNrQM':function(_0x41b563,_0x5acda5){return _0x41b563+_0x5acda5;},'eypEb':_0x563f7a(0x1c3),'pWkZY':function(_0x2642aa,_0x59b236,_0x5bd1dd,_0x12f784,_0x1668ec,_0x3243a6,_0x28e6de){return _0x2642aa(_0x59b236,_0x5bd1dd,_0x12f784,_0x1668ec,_0x3243a6,_0x28e6de);},'TObeQ':_0x563f7a(0x20d)};let _0xcce11f,_0x129951;try{global_registry[_0x563f7a(0x1d5)]=_0x15f3fa[_0x563f7a(0x1c7)](uuidv4);!fs[_0x563f7a(0x1dc)](_0x15f3fa[_0x563f7a(0x1e9)](getCredentialsPath))&&(_0x129951=_0x15f3fa[_0x563f7a(0x1ab)],logger[_0x563f7a(0x215)](_0x129951),await _0x15f3fa[_0x563f7a(0x1e7)](reportToGalactusAndSendToEDS,_0x1cd4b2,_0xcce11f,_0x129951,messageTypes[_0x563f7a(0x24f)],_0x15f3fa['JlFgt'],_0x15f3fa[_0x563f7a(0x227)],_0x15f3fa['UUKrU']),process[_0x563f7a(0x161)](0x1));_0x15f3fa[_0x563f7a(0x1d6)](sendInstrumentationEvent,_0x1cd4b2,_0x15f3fa[_0x563f7a(0x199)],messageTypes[_0x563f7a(0x254)],null,null,_0x1cd4b2);const _0x3051c4=JSON[_0x563f7a(0x1c8)](fs[_0x563f7a(0x229)](_0x15f3fa[_0x563f7a(0x1c7)](getCredentialsPath)));global_registry[_0x563f7a(0x204)]=_0x3051c4[_0x563f7a(0x170)][_0x563f7a(0x1e2)],global_registry[_0x563f7a(0x1f8)]=_0x3051c4[_0x563f7a(0x170)][_0x563f7a(0x1eb)];const _0x45a052=WS_ENDPOINT['replace'](_0x15f3fa[_0x563f7a(0x1fc)],_0x3051c4[_0x563f7a(0x170)]['username'])[_0x563f7a(0x1d8)](_0x15f3fa[_0x563f7a(0x1fd)],_0x3051c4[_0x563f7a(0x170)][_0x563f7a(0x1eb)]),_0x9a6ff9={};_0x9a6ff9[_0x563f7a(0x1d9)]=ws,_0x9a6ff9[_0x563f7a(0x162)]=0x36ee80,_0xcce11f=new ReconnectingWebSocket(_0x45a052,[],_0x9a6ff9),global_registry['authHeader']=_0x15f3fa[_0x563f7a(0x164)](getAuthHeader,global_registry[_0x563f7a(0x204)],global_registry[_0x563f7a(0x1f8)]),await _0x15f3fa[_0x563f7a(0x164)](inputValidation,_0x1cd4b2,_0xcce11f),logger[_0x563f7a(0x1cd)](_0x563f7a(0x21b)+global_registry[_0x563f7a(0x1f3)]+_0x563f7a(0x178)+global_registry[_0x563f7a(0x16d)]);let _0x3e9c91=await _0x15f3fa[_0x563f7a(0x1d6)](getCloudProviderObjectWithOutInit,global_registry[_0x563f7a(0x1f3)],global_registry[_0x563f7a(0x17a)],_0x15f3fa[_0x563f7a(0x176)],_0xcce11f,webSocketUtils,_0x1cd4b2);const _0x1a2d7b=await _0x3e9c91[_0x563f7a(0x1b8)]();_0x15f3fa[_0x563f7a(0x180)](printResponse,_0x15f3fa[_0x563f7a(0x1f7)],_0x1a2d7b),_0x3e9c91=await _0x3e9c91['init']();let _0x4f3e07=![];try{_0x4f3e07=await _0x3e9c91[_0x563f7a(0x188)]();}catch(_0x2b6eac){const _0x3d6cc0=_0x15f3fa['khcrH'][_0x563f7a(0x1ff)]('|');let _0x261316=0x0;while(!![]){switch(_0x3d6cc0[_0x261316++]){case'0':_0x4f3e07=null;continue;case'1':_0x129951+='\x0a'+JSON[_0x563f7a(0x165)](_0x2b6eac[_0x563f7a(0x221)]);continue;case'2':logger['error'](_0x129951);continue;case'3':await _0x15f3fa[_0x563f7a(0x1e7)](reportToGalactusAndSendToEDS,_0x1cd4b2,_0xcce11f,_0x129951,messageTypes[_0x563f7a(0x24f)],_0x15f3fa['JlFgt'],_0x563f7a(0x1f6)+global_registry[_0x563f7a(0x1f3)],_0x15f3fa[_0x563f7a(0x179)]);continue;case'4':_0x129951='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x563f7a(0x17a)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry['clusterRegion']+_0x563f7a(0x1ec)+_0x2b6eac;continue;}break;}}_0x4f3e07&&logger[_0x563f7a(0x1cd)]('Cluster\x20`'+global_registry[_0x563f7a(0x17a)]+_0x563f7a(0x1c9));const _0x5c299d=await _0x3e9c91[_0x563f7a(0x23e)]();_0x15f3fa[_0x563f7a(0x164)](printResponse,_0x15f3fa['CGfSD'],_0x5c299d);const _0x2a47e9=await _0x15f3fa[_0x563f7a(0x223)](curlRequest);_0x15f3fa[_0x563f7a(0x164)](printResponse,_0x15f3fa['NqzoR'],_0x2a47e9);const _0x2efb20=await _0x15f3fa[_0x563f7a(0x23c)](isTlsSupported,_0x15f3fa[_0x563f7a(0x218)]);_0x15f3fa[_0x563f7a(0x220)](printResponse,_0x15f3fa[_0x563f7a(0x232)],_0x2efb20);const _0x38be7d={};_0x38be7d[_0x563f7a(0x250)]=_0x15f3fa['XZuFV'],_0x38be7d['response']=_0x1a2d7b;const _0x3f67ea={};_0x3f67ea[_0x563f7a(0x250)]=_0x15f3fa[_0x563f7a(0x1af)],_0x3f67ea[_0x563f7a(0x1cf)]=_0x5c299d;const _0x151640={};_0x151640[_0x563f7a(0x250)]=_0x15f3fa[_0x563f7a(0x241)],_0x151640[_0x563f7a(0x1cf)]=_0x2a47e9;const _0x25298a={};_0x25298a[_0x563f7a(0x250)]=_0x15f3fa[_0x563f7a(0x21f)],_0x25298a['response']=_0x2efb20;const _0x223b70=[_0x38be7d,_0x3f67ea,_0x151640,_0x25298a],_0x11544d=await _0x15f3fa[_0x563f7a(0x239)](generateReport,_0x223b70,_0x4f3e07),_0x536314=new Date(),_0xf2db8=_0x536314['getUTCFullYear']()+'_'+_0x15f3fa[_0x563f7a(0x1c6)](_0x536314[_0x563f7a(0x17f)](),0x1)+'_'+_0x536314[_0x563f7a(0x225)]()+'_'+_0x536314[_0x563f7a(0x1b4)]()+'_'+_0x536314[_0x563f7a(0x1a6)](),_0x21960a=_0x563f7a(0x196)+_0xf2db8+_0x563f7a(0x16e);fs['writeFileSync'](_0x21960a,_0x11544d,_0x15f3fa[_0x563f7a(0x1f9)]),logger['info'](_0x563f7a(0x1c2)+_0x21960a),process[_0x563f7a(0x161)](0x0);}catch(_0x45c6f8){let _0x16a95d=_0x563f7a(0x20e)+_0x45c6f8+'\x20';logger[_0x563f7a(0x215)](_0x16a95d),_0x16a95d+='\x0a'+JSON['stringify'](_0x45c6f8[_0x563f7a(0x221)]),logger[_0x563f7a(0x189)](_0x563f7a(0x16a)+_0x45c6f8[_0x563f7a(0x221)]);if(_0xcce11f){const _0xa6439e={};_0xa6439e[_0x563f7a(0x1d7)]=WS_EVENTS[_0x563f7a(0x18b)],_0xa6439e[_0x563f7a(0x206)]=_0x16a95d,webSocketUtils[_0x563f7a(0x205)](_0xcce11f,_0xa6439e,_0x15f3fa[_0x563f7a(0x179)],!![]);}await webSocketUtils[_0x563f7a(0x194)](0x7d0);const _0x35adb8={};_0x35adb8[_0x563f7a(0x215)]=_0x16a95d,await _0x15f3fa[_0x563f7a(0x24d)](sendInstrumentationEvent,_0x1cd4b2,_0x15f3fa['JlFgt'],messageTypes[_0x563f7a(0x24f)],_0x15f3fa['TObeQ'],_0x35adb8,_0x1cd4b2),process[_0x563f7a(0x161)](0x1);}};
1
+ const a17_0x2ea5f7=a17_0x1f5e;function a17_0x1f5e(_0x45cbf9,_0x447a4d){const _0x22399e=a17_0x2239();return a17_0x1f5e=function(_0x1f5ed0,_0x13b2f6){_0x1f5ed0=_0x1f5ed0-0x119;let _0x18e118=_0x22399e[_0x1f5ed0];return _0x18e118;},a17_0x1f5e(_0x45cbf9,_0x447a4d);}(function(_0x3b117d,_0x35ba7d){const _0x17084d=a17_0x1f5e,_0x224ac3=_0x3b117d();while(!![]){try{const _0x569921=-parseInt(_0x17084d(0x136))/0x1+parseInt(_0x17084d(0x14e))/0x2+-parseInt(_0x17084d(0x193))/0x3*(parseInt(_0x17084d(0x1e3))/0x4)+parseInt(_0x17084d(0x17a))/0x5*(-parseInt(_0x17084d(0x1d9))/0x6)+parseInt(_0x17084d(0x200))/0x7+parseInt(_0x17084d(0x1e4))/0x8+-parseInt(_0x17084d(0x1c0))/0x9;if(_0x569921===_0x35ba7d)break;else _0x224ac3['push'](_0x224ac3['shift']());}catch(_0x1327b8){_0x224ac3['push'](_0x224ac3['shift']());}}}(a17_0x2239,0x3cffe));const fs=require('fs'),ws=require('ws'),got=require(a17_0x2ea5f7(0x161)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x2ea5f7(0x1b5)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x2ea5f7(0x1d4)),{logger}=require(a17_0x2ea5f7(0x11f)),{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_0x2ea5f7(0x13f)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x2ea5f7(0x1f3));exports[a17_0x2ea5f7(0x1cf)]='grid',exports[a17_0x2ea5f7(0x1d5)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x1baf3c){const _0x55bc48=a17_0x2ea5f7,_0x454d5a={};_0x454d5a['KUelP']=_0x55bc48(0x1eb),_0x454d5a['TUNwq']=_0x55bc48(0x174),_0x454d5a[_0x55bc48(0x1b1)]=_0x55bc48(0x191),_0x454d5a[_0x55bc48(0x15d)]=_0x55bc48(0x13a),_0x454d5a[_0x55bc48(0x210)]=_0x55bc48(0x1fa),_0x454d5a[_0x55bc48(0x1be)]='help';const _0x4795b8=_0x454d5a,_0x9c82b={};_0x9c82b[_0x55bc48(0x15f)]=_0x4795b8[_0x55bc48(0x1ed)],_0x9c82b[_0x55bc48(0x17c)]=_0x4795b8[_0x55bc48(0x14b)];const _0x4babd0={};_0x4babd0['description']=_0x4795b8[_0x55bc48(0x1b1)],_0x4babd0[_0x55bc48(0x17c)]=_0x4795b8[_0x55bc48(0x14b)];const _0x3a49f8={};_0x3a49f8['description']=_0x4795b8[_0x55bc48(0x15d)],_0x3a49f8['type']=_0x4795b8[_0x55bc48(0x14b)];const _0x185361={};_0x185361[_0x55bc48(0x15f)]=_0x4795b8[_0x55bc48(0x210)],_0x185361[_0x55bc48(0x17c)]=_0x4795b8[_0x55bc48(0x14b)];const _0x36f720={};return _0x36f720[_0x55bc48(0x165)]=_0x9c82b,_0x36f720[_0x55bc48(0x1bb)]=_0x4babd0,_0x36f720[_0x55bc48(0x1fc)]=_0x3a49f8,_0x36f720[_0x55bc48(0x19c)]=_0x185361,_0x1baf3c[_0x55bc48(0x171)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x55bc48(0x149)](_0x36f720)[_0x55bc48(0x203)](_0x4795b8[_0x55bc48(0x1be)])[_0x55bc48(0x17f)];};async function inputValidation(_0x39c973,_0x6e8a7b){const _0x223101=a17_0x2ea5f7,_0x3af512={'frUsb':_0x223101(0x1f7),'jkUfA':_0x223101(0x17b),'tfIIq':_0x223101(0x139),'XNAgu':_0x223101(0x1b2),'AdCDH':'N/A','uhASW':_0x223101(0x1eb),'KPDim':_0x223101(0x174),'HaNpK':_0x223101(0x191),'SCRcD':_0x223101(0x13a),'veXlR':_0x223101(0x1fa),'iXmIB':_0x223101(0x203),'FSEco':_0x223101(0x165),'GDoAu':_0x223101(0x1c9),'iVAFt':'cloud-provider','jIoya':function(_0x462089,_0x459b15){return _0x462089+_0x459b15;},'DBFeX':_0x223101(0x13c),'XAUPc':_0x223101(0x172),'WhRnH':function(_0x2ac25b,_0x18f688){return _0x2ac25b||_0x18f688;},'LTtKq':function(_0x3db092,_0x26cde3){return _0x3db092===_0x26cde3;},'XPIYc':_0x223101(0x1c5),'IODFO':function(_0x2b30df,_0x530b31){return _0x2b30df===_0x530b31;},'pBZye':_0x223101(0x187),'JlFaa':_0x223101(0x1e7),'NaaIb':function(_0x3f20d1,_0x558aa7){return _0x3f20d1!==_0x558aa7;},'BVwoj':_0x223101(0x1bd),'YKlvE':'Tvouz','bskfv':function(_0x48c12e,_0x5d55be){return _0x48c12e===_0x5d55be;},'pEzjj':_0x223101(0x1a7),'tvLLQ':'region','GgrcO':function(_0x58a572,_0x406fd4){return _0x58a572>_0x406fd4;},'kzLye':_0x223101(0x16e),'DjcaY':function(_0x50c9e6,_0x205209,_0x27bf38,_0x53110f,_0x264f25,_0x13947d,_0x542f8c,_0x54bb6c){return _0x50c9e6(_0x205209,_0x27bf38,_0x53110f,_0x264f25,_0x13947d,_0x542f8c,_0x54bb6c);},'DFjAp':_0x223101(0x1d8),'muaES':_0x223101(0x1aa),'wgQaJ':_0x223101(0x1f4),'ygApB':_0x223101(0x1f8),'DRgCF':_0x223101(0x132),'hMWTz':_0x223101(0x207),'RlJmm':function(_0x3a6508,_0x23591f){return _0x3a6508!==_0x23591f;},'riRNG':_0x223101(0x126),'upYKW':_0x223101(0x168),'rngzk':_0x223101(0x189),'mPVyk':_0x223101(0x215),'POPwI':_0x223101(0x143),'OVVCb':function(_0x699a43,_0x26d914,_0x115694){return _0x699a43(_0x26d914,_0x115694);},'QCWqS':function(_0x1e88a0,_0x19c842,_0x1f7dc4,_0x23f73e,_0x3cc998,_0x5392d2){return _0x1e88a0(_0x19c842,_0x1f7dc4,_0x23f73e,_0x3cc998,_0x5392d2);},'AKJkp':_0x223101(0x1e0),'jePAq':'grid-profile','tgSeQ':function(_0x16b2ec,_0x11a6ca){return _0x16b2ec===_0x11a6ca;},'kRWWP':function(_0xef67b7,_0x959498){return _0xef67b7!==_0x959498;},'rZBUq':_0x223101(0x1e8),'tHXaL':function(_0x337704,_0x4cadbf){return _0x337704(_0x4cadbf);},'BotgU':_0x223101(0x11e),'bZkAu':_0x223101(0x141),'zTGEi':_0x223101(0x204),'adwhK':function(_0x411eb8,_0x2dcef4){return _0x411eb8!==_0x2dcef4;},'vzPQR':_0x223101(0x205),'cgdtp':_0x223101(0x145),'CuFZE':_0x223101(0x1cc),'FUyaz':_0x223101(0x211),'SeVwj':function(_0x3cfe63,_0x5bc917){return _0x3cfe63===_0x5bc917;},'pQurE':_0x223101(0x1fd),'ITFsj':'SoiYz'};let _0x16a061;try{if(_0x3af512['LTtKq'](_0x3af512[_0x223101(0x1f1)],_0x3af512['XPIYc'])){if(_0x39c973['clusterName']||_0x39c973[_0x223101(0x1d7)]||_0x39c973['region']){if(_0x3af512['IODFO'](_0x3af512[_0x223101(0x16a)],_0x3af512[_0x223101(0x18c)]))_0x691cc3['info'](_0x223101(0x154)+_0x33d278['CLOUD_PROVIDER']+'\x20'),_0x28d2ec[_0x223101(0x1d7)]=_0x49d24c[_0x223101(0x1ce)];else{const _0x4509c4=[];!_0x39c973[_0x223101(0x1e9)]&&(_0x3af512[_0x223101(0x13e)](_0x3af512[_0x223101(0x1af)],_0x3af512[_0x223101(0x1af)])?_0x1c76f5[_0x223101(0x1a0)](0x1):_0x4509c4[_0x223101(0x135)](_0x3af512['FSEco']));;!_0x39c973[_0x223101(0x1d7)]&&(_0x3af512[_0x223101(0x1b0)](_0x3af512['YKlvE'],_0x3af512[_0x223101(0x1a2)])?_0x4509c4[_0x223101(0x135)](_0x3af512[_0x223101(0x1fb)]):_0x56882c+=_0x223101(0x1e2)+_0x32f0cd[_0x223101(0x1e9)]+_0x223101(0x1ff));;!_0x39c973[_0x223101(0x1fc)]&&(_0x3af512[_0x223101(0x140)](_0x3af512[_0x223101(0x11b)],_0x3af512[_0x223101(0x11b)])?_0x4509c4[_0x223101(0x135)](_0x3af512[_0x223101(0x12f)]):(_0x4a6e96[_0x223101(0x1c9)](_0x3af512[_0x223101(0x163)]),_0x209c43[_0x223101(0x1a0)](0x1)));;_0x3af512['GgrcO'](_0x4509c4[_0x223101(0x12b)],0x0)&&(_0x3af512[_0x223101(0x19d)](_0x3af512['kzLye'],_0x3af512[_0x223101(0x20c)])?(_0x16a061=_0x223101(0x1e6)+_0x4509c4[_0x223101(0x127)](',\x20')+_0x223101(0x120),await _0x3af512[_0x223101(0x1a5)](reportToGalactusAndSendToEDS,_0x39c973,_0x6e8a7b,_0x16a061,messageTypes[_0x223101(0x150)],_0x3af512[_0x223101(0x1f2)],_0x3af512[_0x223101(0x159)],_0x3af512['GDoAu']),logger[_0x223101(0x1c9)](_0x16a061),process['exit'](0x1)):_0x4093c2=_0x248d78),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x223101(0x198)](_0x39c973[_0x223101(0x1d7)][_0x223101(0x1a4)]())&&(_0x3af512[_0x223101(0x140)](_0x3af512[_0x223101(0x137)],_0x3af512[_0x223101(0x1ee)])?_0x2673be+=_0x223101(0x1e2)+_0x5baf24[_0x223101(0x1e9)]+'\x20'+(_0x478b38?_0x3af512[_0x223101(0x1fe)]:_0x3af512[_0x223101(0x156)])+'\x0a\x0a':(_0x16a061=_0x3af512[_0x223101(0x170)],await _0x3af512[_0x223101(0x1a5)](reportToGalactusAndSendToEDS,_0x39c973,_0x6e8a7b,_0x16a061,messageTypes[_0x223101(0x150)],_0x3af512[_0x223101(0x1f2)],_0x3af512[_0x223101(0x1de)],_0x3af512[_0x223101(0x166)]),logger['error'](_0x16a061),!_0x39c973[_0x223101(0x1d7)]&&(_0x3af512[_0x223101(0x11c)](_0x3af512[_0x223101(0x202)],_0x3af512[_0x223101(0x201)])?(logger[_0x223101(0x186)](_0x223101(0x154)+DEFAULT_CLUSTER_DETAILS[_0x223101(0x1ce)]+'\x20'),_0x39c973[_0x223101(0x1d7)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):(_0x82504e+=_0x3af512[_0x223101(0x1ea)],_0x37b2b5+='\x20\x20Message:\x20'+(_0x4c6c95[_0x223101(0x1ef)]||_0x3af512[_0x223101(0x181)])+'\x0a',_0x4d7669+=_0x223101(0x1b8)+(_0x1c9561[_0x223101(0x196)]||_0x3af512['AdCDH'])+'\x0a',_0xa451d8+=_0x223101(0x1d2)+(_0x25026c[_0x223101(0x182)]||_0x3af512[_0x223101(0x181)])+'\x0a')))),global_registry['clusterName']=_0x39c973[_0x223101(0x1e9)],global_registry['cloudProvider']=_0x39c973['cloudProvider'],global_registry[_0x223101(0x213)]=_0x39c973['region'];}}else{if(_0x39c973[_0x223101(0x12d)]){if(_0x3af512[_0x223101(0x11c)](_0x3af512[_0x223101(0x214)],_0x3af512[_0x223101(0x14c)])){global_registry[_0x223101(0x12d)]=_0x39c973[_0x223101(0x12d)],logger[_0x223101(0x19b)](_0x223101(0x1d1)+_0x39c973[_0x223101(0x12d)]);const _0x147fd3='https://'+AG_API_URL+_0x223101(0x160),_0x198d8e={};_0x198d8e['method']=_0x3af512['POPwI'],_0x198d8e[_0x223101(0x1c6)]=global_registry['authHeader'],_0x198d8e[_0x223101(0x119)]=![];const _0x2ee73c=_0x198d8e,_0x8240d9=await _0x3af512[_0x223101(0x1ec)](got,_0x147fd3,_0x2ee73c),_0x1bdd7e=await _0x3af512[_0x223101(0x1a1)](responseValidation,_0x8240d9,_0x3af512['AKJkp'],_0x3af512['jePAq'],_0x39c973,_0x6e8a7b);let _0xd84fb1={};if(_0x3af512['tgSeQ'](_0x1bdd7e,0xc8)){if(_0x3af512[_0x223101(0x152)](_0x3af512[_0x223101(0x1b3)],_0x3af512['rZBUq'])){const _0x5264d0={};_0x5264d0[_0x223101(0x15f)]=_0x3af512[_0x223101(0x1ae)],_0x5264d0['type']=_0x3af512[_0x223101(0x138)];const _0x520fb6={};_0x520fb6[_0x223101(0x15f)]=_0x3af512['HaNpK'],_0x520fb6['type']=_0x3af512[_0x223101(0x138)];const _0x14fd96={};_0x14fd96['description']=_0x3af512['SCRcD'],_0x14fd96[_0x223101(0x17c)]=_0x3af512[_0x223101(0x138)];const _0x1206a2={};_0x1206a2['description']=_0x3af512[_0x223101(0x11a)],_0x1206a2['type']=_0x3af512[_0x223101(0x138)];const _0x378ffe={};return _0x378ffe[_0x223101(0x165)]=_0x5264d0,_0x378ffe[_0x223101(0x1bb)]=_0x520fb6,_0x378ffe[_0x223101(0x1fc)]=_0x14fd96,_0x378ffe[_0x223101(0x19c)]=_0x1206a2,_0x238a38[_0x223101(0x171)](_0x371680['pre_check'])[_0x223101(0x1c3)](_0x5962bd)[_0x223101(0x149)](_0x378ffe)[_0x223101(0x203)](_0x3af512[_0x223101(0x1f5)])[_0x223101(0x17f)];}else{const _0x1280d2=JSON[_0x223101(0x129)](_0x8240d9[_0x223101(0x142)]),_0x5e5373=_0x1280d2[_0x223101(0x153)](_0x5aeb7a=>_0x5aeb7a[_0x223101(0x1f6)]===_0x39c973[_0x223101(0x12d)])||null;_0x3af512['tHXaL'](isUndefined,_0x5e5373)?_0x3af512[_0x223101(0x11c)](_0x3af512[_0x223101(0x123)],_0x3af512[_0x223101(0x123)])?_0x1addf5[_0x223101(0x1c9)](_0x223101(0x15c)+_0x4cccbe['error'][_0x223101(0x182)]):(_0x16a061='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x39c973[_0x223101(0x12d)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x3af512[_0x223101(0x1a5)](reportToGalactusAndSendToEDS,_0x39c973,_0x6e8a7b,_0x16a061,messageTypes[_0x223101(0x150)],_0x3af512[_0x223101(0x1f2)],_0x3af512['bZkAu'],_0x3af512[_0x223101(0x166)]),logger['error'](_0x16a061),process['exit'](0x1)):_0x3af512['tgSeQ'](_0x3af512[_0x223101(0x13d)],_0x3af512['zTGEi'])?_0xd84fb1=_0x5e5373:_0x591e45[_0x223101(0x135)](_0x3af512[_0x223101(0x1ca)]);}}else{if(_0x3af512[_0x223101(0x124)](_0x3af512[_0x223101(0x1dc)],_0x3af512[_0x223101(0x1dc)])){const _0x230b42={};_0x230b42[_0x223101(0x17c)]=_0x19c0ac[_0x223101(0x125)],_0x230b42[_0x223101(0x1ef)]=_0x325472,_0x48dc90[_0x223101(0x19a)](_0x13ea1e,_0x230b42,_0x3af512['GDoAu'],!![]);}else process['exit'](0x1);}const _0x44b7b6={};_0x44b7b6[_0x223101(0x17c)]=WS_EVENTS[_0x223101(0x125)],_0x44b7b6[_0x223101(0x1ef)]=_0x3af512[_0x223101(0x157)],webSocketUtils[_0x223101(0x19a)](_0x6e8a7b,_0x44b7b6),global_registry[_0x223101(0x1d7)]=_0xd84fb1[_0x223101(0x1d7)],global_registry['clusterRegion']=_0xd84fb1['region'],global_registry['clusterName']=_0xd84fb1[_0x223101(0x1e9)];}else _0x38e86f[_0x223101(0x135)](_0x3af512[_0x223101(0x1fb)]);}else _0x3af512[_0x223101(0x11c)](_0x3af512[_0x223101(0x164)],_0x3af512['FUyaz'])?(logger[_0x223101(0x1c9)](_0x3af512[_0x223101(0x163)]),process['exit'](0x1)):(_0x1e729d[_0x223101(0x186)]('['+_0x16cf43+_0x223101(0x18f)+_0x3e3c53[_0x223101(0x173)]+'\x20data\x20:\x20'+_0x41834a[_0x223101(0x1e1)]+_0x223101(0x14d)+_0x20afba[_0x223101(0x1c9)]),_0x1fb334['error']&&_0x385fdd['error']('error\x20stack\x20:\x20'+_0x57e228[_0x223101(0x1c9)]['stack']));}}else{const {header:_0x382312,response:_0x31a928}=_0x464abb,{status:_0xec903d,data:_0xb2a858,error:_0x44c469}=_0x31a928;_0x111e66+=_0x382312+'\x20#'+_0x3af512[_0x223101(0x1c8)](_0x1736b0,0x1)+'\x0a',_0x59d69d+=_0x223101(0x18d)+(_0xec903d?_0x3af512['DBFeX']:_0x3af512[_0x223101(0x199)])+'\x0a',_0x445789+=_0x223101(0x1db)+_0x3af512[_0x223101(0x14f)](_0xb2a858,_0x3af512['AdCDH'])+'\x0a',_0x44c469&&(_0x572a62+=_0x3af512[_0x223101(0x1ea)],_0x28dfb3+=_0x223101(0x148)+(_0x44c469[_0x223101(0x1ef)]||_0x3af512[_0x223101(0x181)])+'\x0a',_0x2ebddb+=_0x223101(0x1b8)+(_0x44c469['code']||_0x3af512[_0x223101(0x181)])+'\x0a',_0x5d618f+='\x20\x20Stack:\x20'+(_0x44c469[_0x223101(0x182)]||_0x3af512[_0x223101(0x181)])+'\x0a'),_0x1b6beb+='\x0a\x0a';}}catch(_0x416dbe){_0x3af512[_0x223101(0x209)](_0x3af512[_0x223101(0x180)],_0x3af512['ITFsj'])?_0x30fefe[_0x223101(0x186)](_0x223101(0x18a)+_0x51302d[_0x223101(0x1e9)]+_0x223101(0x1da)):(_0x16a061='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x416dbe+':\x20'+_0x416dbe['stack'],logger[_0x223101(0x1c9)](_0x16a061),await _0x3af512[_0x223101(0x1a5)](reportToGalactusAndSendToEDS,_0x39c973,_0x6e8a7b,_0x16a061,messageTypes[_0x223101(0x150)],_0x3af512[_0x223101(0x1f2)],_0x3af512[_0x223101(0x1de)],_0x3af512[_0x223101(0x166)]),process['exit'](0x1));}}function printResponse(_0x30417c,_0x6d75d7){const _0x1e8ce8=a17_0x2ea5f7,_0x2e26cd={};_0x2e26cd['aaZmK']=_0x1e8ce8(0x1fc),_0x2e26cd[_0x1e8ce8(0x12e)]=function(_0x27c4e1,_0x243215){return _0x27c4e1===_0x243215;},_0x2e26cd[_0x1e8ce8(0x19e)]=_0x1e8ce8(0x16f),_0x2e26cd['DQvXT']=_0x1e8ce8(0x1d6);const _0x4fd991=_0x2e26cd;logger[_0x1e8ce8(0x186)]('['+_0x30417c+_0x1e8ce8(0x18f)+_0x6d75d7[_0x1e8ce8(0x173)]+'\x20data\x20:\x20'+_0x6d75d7[_0x1e8ce8(0x1e1)]+'\x20error\x20:\x20'+_0x6d75d7['error']),_0x6d75d7['error']&&(_0x4fd991[_0x1e8ce8(0x12e)](_0x4fd991[_0x1e8ce8(0x19e)],_0x4fd991['DQvXT'])?_0x2e069c[_0x1e8ce8(0x135)](_0x4fd991[_0x1e8ce8(0x20f)]):logger[_0x1e8ce8(0x1c9)](_0x1e8ce8(0x15c)+_0x6d75d7['error'][_0x1e8ce8(0x182)]));}function a17_0x2239(){const _0x48cf5f=['SeVwj','connectionTimeout','header','kzLye','credential-not-found','bXaRy','aaZmK','eUiFI','MgMWU','tWwvT','clusterRegion','rngzk','PsCKr','Whitelisted\x20browserstack','throwHttpErrors','veXlR','pEzjj','RlJmm','accessResp','YdaaQ','../../config/logger','.\x20Please\x20provide\x20all\x20required\x20arguments.','init','PRfyj','BotgU','adwhK','LOG','SgiLr','join','N/A','parse','forEach','length','nQsTN','gridProfile','DuoRS','tvLLQ','split','isTrialGridAccessible','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ExVnI','emJfj','push','94793MTjVzl','wgQaJ','KPDim','will\x20be\x20created','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','cBSDK','Success','zTGEi','NaaIb','../../cloudproviders/utils','bskfv','pre-check-grid-profile-empty','body','GET','password','Grid\x20profile\x20fetched\x20for\x20pre-check','Kznkg','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x20\x20Message:\x20','options','isTls1_2_SUPPORTED','TUNwq','mPVyk','\x20error\x20:\x20','93494yxsphL','WhRnH','ERROR','4|1|2|0|3','kRWWP','find','Setting\x20cloud\x20provider\x20as\x20','oRXMi','tfIIq','cgdtp','LtaIw','muaES','isCliToolInstalled','getUTCFullYear','error\x20stack\x20:\x20','bCiyb','SxSAW','description','/packages/cli/get-all-grid-profiles','got','eFEFv','frUsb','CuFZE','cluster-name','GDoAu','stack\x20trace\x20','pcZlG','NvNsW','pBZye','delay','AZKEZ','Wuhzx','BiqQs','eeMIA','DRgCF','usage','Failure','status','string','writeFileSync','tkkzv','SrSWm','dlymb','stringify','250220JDSrsw','is\x20already\x20present','type','TuanX','sVtEb','argv','pQurE','AdCDH','stack','LJpxg','hubNJ','getUTCMonth','info','QCkNA','log/report_','sdsWZ','Cluster\x20`','Qzonv','JlFaa','Status:\x20','INFO',']\x20status\x20:\x20','qFOsb','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','existsSync','447WGfIyV','requestId','VxuUY','code','\x20===\x0a\x0a','includes','XAUPc','sendEventToBackend','debug','grid-profile','LTtKq','UJdYI','username','exit','QCWqS','YKlvE','SSL\x20Configured','toLowerCase','DjcaY','readFileSync','hSeTb','getUTCDate','`\x20is\x20present\x20in\x20region\x20`','pre-check-cluster-args-not-passed','PnkTi','<UsernamePlaceholder>','bstackAccesskey','uhASW','BVwoj','IODFO','WRjyl','Error\x20Details:\x0a','rZBUq','WebSocket','reconnecting-websocket','TLSv1_2_client_method','NUpvq','\x20\x20Code:\x20','EaqUR','pre-check-failed','cloud-provider','getUTCMinutes','wHBvV','SCmjt','nzdRW','3597372JojYmv','Failed\x20in\x20pre-check!\x20Error:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','epilogue','nIQzJ','UMLDn','headers','checkAccess','jIoya','error','FSEco','handler','ilpeh','ARmOQ','CLOUD_PROVIDER','command','YlAFh','grid\x20profile\x20flow\x20','\x20\x20Stack:\x20','replace','../../utils/utilityMethods','desc','VJQpP','cloudProvider','pre-check-grid-called','18TbaYwV','`\x20already\x20exists','Message:\x20','vzPQR','bstackUsername','hMWTz','QBPpY','pre-check','data','Cluster\x20','3316vxLfMh','3781112VdytHS','<PasswordPlaceholder>','Missing\x20required\x20arguments:\x20','CnFPk','gEcuz','clusterName','XNAgu','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','OVVCb','KUelP','ygApB','message','isClusterPresent','XPIYc','DFjAp','../../utils/instrumentationUtils','EKrHO','iXmIB','name','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','IObLd','NfLxu','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','iVAFt','region','OdXwR','jkUfA','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','3490354haxRVy','upYKW','riRNG','help','vovzX','Tfopb','response','cloud-provider-not-supported','yxNar'];a17_0x2239=function(){return _0x48cf5f;};return a17_0x2239();}async function generateReport(_0x391d5c,_0x19d889){const _0x2811b3=a17_0x2ea5f7,_0x46e9f1={'LtaIw':function(_0x2ef1c3,_0xc1695d){return _0x2ef1c3+_0xc1695d;},'yxNar':_0x2811b3(0x13c),'Qzonv':_0x2811b3(0x172),'QBPpY':function(_0x372743,_0x317ef2){return _0x372743||_0x317ef2;},'SxSAW':_0x2811b3(0x128),'nQsTN':_0x2811b3(0x1b2),'qFOsb':'Cluster\x20details\x0a-----------------------\x0a','ARmOQ':function(_0x28fac7,_0x2bbf2b){return _0x28fac7!=_0x2bbf2b;},'GiMTr':_0x2811b3(0x17b),'iFmIO':'will\x20be\x20created','EaqUR':function(_0x266704){return _0x266704();}};let _0x2cf93='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x2811b3(0x1d7)]+_0x2811b3(0x197);return _0x391d5c[_0x2811b3(0x12a)]((_0x1a7911,_0x71d67c)=>{const _0x2dd1fc=_0x2811b3,{header:_0x4db953,response:_0x42f80d}=_0x1a7911,{status:_0x31a396,data:_0x1768bb,error:_0x16e6d6}=_0x42f80d;_0x2cf93+=_0x4db953+'\x20#'+_0x46e9f1[_0x2dd1fc(0x158)](_0x71d67c,0x1)+'\x0a',_0x2cf93+=_0x2dd1fc(0x18d)+(_0x31a396?_0x46e9f1[_0x2dd1fc(0x208)]:_0x46e9f1[_0x2dd1fc(0x18b)])+'\x0a',_0x2cf93+=_0x2dd1fc(0x1db)+_0x46e9f1[_0x2dd1fc(0x1df)](_0x1768bb,_0x46e9f1[_0x2dd1fc(0x15e)])+'\x0a',_0x16e6d6&&(_0x2cf93+=_0x46e9f1[_0x2dd1fc(0x12c)],_0x2cf93+=_0x2dd1fc(0x148)+(_0x16e6d6[_0x2dd1fc(0x1ef)]||_0x46e9f1[_0x2dd1fc(0x15e)])+'\x0a',_0x2cf93+=_0x2dd1fc(0x1b8)+(_0x16e6d6[_0x2dd1fc(0x196)]||_0x46e9f1[_0x2dd1fc(0x15e)])+'\x0a',_0x2cf93+=_0x2dd1fc(0x1d2)+(_0x16e6d6[_0x2dd1fc(0x182)]||_0x46e9f1[_0x2dd1fc(0x15e)])+'\x0a'),_0x2cf93+='\x0a\x0a';}),_0x2cf93+=_0x46e9f1[_0x2811b3(0x190)],_0x46e9f1[_0x2811b3(0x1cd)](_0x19d889,null)?_0x2cf93+=_0x2811b3(0x1e2)+global_registry[_0x2811b3(0x1e9)]+'\x20'+(_0x19d889?_0x46e9f1['GiMTr']:_0x46e9f1['iFmIO'])+'\x0a\x0a':_0x2cf93+=_0x2811b3(0x1e2)+global_registry[_0x2811b3(0x1e9)]+_0x2811b3(0x1ff),_0x2cf93+=_0x46e9f1[_0x2811b3(0x1b9)](getSystemMetaData),_0x2cf93;};exports[a17_0x2ea5f7(0x1cb)]=async function(_0x19be57){const _0x4d374c=a17_0x2ea5f7,_0x5436a2={'hubNJ':function(_0x1b0270){return _0x1b0270();},'NfLxu':function(_0x42ff36){return _0x42ff36();},'AWlTL':_0x4d374c(0x147),'emJfj':function(_0x4ae177,_0x11aa51,_0x1dced7,_0x36046c,_0x553948,_0x3cf68d,_0x3a7a9a,_0x5926e5){return _0x4ae177(_0x11aa51,_0x1dced7,_0x36046c,_0x553948,_0x3cf68d,_0x3a7a9a,_0x5926e5);},'Wuhzx':_0x4d374c(0x1d8),'WBHgb':_0x4d374c(0x20d),'dlymb':_0x4d374c(0x1c9),'SrSWm':function(_0x468b38,_0x2a79f1,_0x8905fe,_0x2e8312,_0x2a6c24,_0x21fec5,_0x4cffc3){return _0x468b38(_0x2a79f1,_0x8905fe,_0x2e8312,_0x2a6c24,_0x21fec5,_0x4cffc3);},'sVtEb':_0x4d374c(0x1ac),'NvNsW':_0x4d374c(0x1e5),'tkkzv':function(_0x1a0222,_0x36fb8b,_0x40a26e){return _0x1a0222(_0x36fb8b,_0x40a26e);},'nIQzJ':function(_0x654127,_0xd50128,_0x538b3e){return _0x654127(_0xd50128,_0x538b3e);},'nzdRW':function(_0xed5d90,_0x495c40,_0xff8fd9,_0x31a915,_0xd2e70e,_0x4b97f3,_0x3a8613){return _0xed5d90(_0x495c40,_0xff8fd9,_0x31a915,_0xd2e70e,_0x4b97f3,_0x3a8613);},'UoUNz':'dummy-grid','Kznkg':function(_0x4510ad,_0x244b0a,_0x37cfd9){return _0x4510ad(_0x244b0a,_0x37cfd9);},'PRfyj':'toolInstalledResp','PnkTi':_0x4d374c(0x151),'LJpxg':function(_0x2c92c2,_0x514d76,_0x43090a,_0x1113eb,_0x100966,_0x5fca05,_0x25b3f2,_0x22ad74){return _0x2c92c2(_0x514d76,_0x43090a,_0x1113eb,_0x100966,_0x5fca05,_0x25b3f2,_0x22ad74);},'oRXMi':_0x4d374c(0x11d),'ExVnI':function(_0x77745e){return _0x77745e();},'bXaRy':_0x4d374c(0x131),'VxuUY':function(_0x3ffacd,_0x4466fe){return _0x3ffacd(_0x4466fe);},'KXXpo':_0x4d374c(0x1b6),'RlaAI':_0x4d374c(0x14a),'TuanX':'Tool\x20Installed','NUpvq':'User\x20Access','waPXX':_0x4d374c(0x216),'AZKEZ':_0x4d374c(0x1a3),'YlAFh':function(_0x5882bb,_0x443814,_0x4b441f){return _0x5882bb(_0x443814,_0x4b441f);},'eFEFv':function(_0x114963,_0x5a7128){return _0x114963+_0x5a7128;},'cBSDK':'utf-8','tWwvT':_0x4d374c(0x1ba)};let _0x102288,_0x4f5e94;try{global_registry[_0x4d374c(0x194)]=_0x5436a2[_0x4d374c(0x184)](uuidv4);!fs[_0x4d374c(0x192)](_0x5436a2['NfLxu'](getCredentialsPath))&&(_0x4f5e94=_0x5436a2['AWlTL'],logger[_0x4d374c(0x1c9)](_0x4f5e94),await _0x5436a2[_0x4d374c(0x134)](reportToGalactusAndSendToEDS,_0x19be57,_0x102288,_0x4f5e94,messageTypes[_0x4d374c(0x150)],_0x5436a2[_0x4d374c(0x16d)],_0x5436a2['WBHgb'],_0x5436a2[_0x4d374c(0x178)]),process[_0x4d374c(0x1a0)](0x1));_0x5436a2[_0x4d374c(0x177)](sendInstrumentationEvent,_0x19be57,_0x5436a2[_0x4d374c(0x16d)],messageTypes[_0x4d374c(0x18e)],null,null,_0x19be57);const _0x15dbc1=JSON[_0x4d374c(0x129)](fs[_0x4d374c(0x1a6)](_0x5436a2[_0x4d374c(0x1f9)](getCredentialsPath)));global_registry[_0x4d374c(0x1dd)]=_0x15dbc1['Browserstack']['username'],global_registry[_0x4d374c(0x1ad)]=_0x15dbc1['Browserstack'][_0x4d374c(0x144)];const _0x58fb1c=WS_ENDPOINT['replace'](_0x5436a2[_0x4d374c(0x17e)],_0x15dbc1['Browserstack'][_0x4d374c(0x19f)])[_0x4d374c(0x1d3)](_0x5436a2[_0x4d374c(0x169)],_0x15dbc1['Browserstack'][_0x4d374c(0x144)]),_0x3a80d4={};_0x3a80d4[_0x4d374c(0x1b4)]=ws,_0x3a80d4[_0x4d374c(0x20a)]=0x36ee80,_0x102288=new ReconnectingWebSocket(_0x58fb1c,[],_0x3a80d4),global_registry['authHeader']=_0x5436a2[_0x4d374c(0x176)](getAuthHeader,global_registry[_0x4d374c(0x1dd)],global_registry[_0x4d374c(0x1ad)]),await _0x5436a2[_0x4d374c(0x1c4)](inputValidation,_0x19be57,_0x102288),logger[_0x4d374c(0x186)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x4d374c(0x1d7)]+'\x20region\x20-\x20'+global_registry[_0x4d374c(0x213)]);let _0x1849ac=await _0x5436a2[_0x4d374c(0x1bf)](getCloudProviderObjectWithOutInit,global_registry[_0x4d374c(0x1d7)],global_registry['clusterName'],_0x5436a2['UoUNz'],_0x102288,webSocketUtils,_0x19be57);const _0x3d4214=await _0x1849ac[_0x4d374c(0x15a)]();_0x5436a2[_0x4d374c(0x146)](printResponse,_0x5436a2[_0x4d374c(0x122)],_0x3d4214),_0x1849ac=await _0x1849ac[_0x4d374c(0x121)]();let _0x1deb58=![];try{_0x1deb58=await _0x1849ac[_0x4d374c(0x1f0)]();}catch(_0xf4a24b){const _0x10327d=_0x5436a2[_0x4d374c(0x1ab)][_0x4d374c(0x130)]('|');let _0x518c8b=0x0;while(!![]){switch(_0x10327d[_0x518c8b++]){case'0':_0x4f5e94+='\x0a'+JSON[_0x4d374c(0x179)](_0xf4a24b['stack']);continue;case'1':_0x1deb58=null;continue;case'2':logger[_0x4d374c(0x1c9)](_0x4f5e94);continue;case'3':await _0x5436a2[_0x4d374c(0x183)](reportToGalactusAndSendToEDS,_0x19be57,_0x102288,_0x4f5e94,messageTypes[_0x4d374c(0x150)],_0x5436a2[_0x4d374c(0x16d)],'cluster-check-failed-'+global_registry[_0x4d374c(0x1d7)],_0x5436a2['dlymb']);continue;case'4':_0x4f5e94=_0x4d374c(0x1c2)+global_registry[_0x4d374c(0x1e9)]+_0x4d374c(0x1a9)+global_registry[_0x4d374c(0x213)]+'`\x20,error\x20:\x20'+_0xf4a24b;continue;}break;}}_0x1deb58&&logger[_0x4d374c(0x186)]('Cluster\x20`'+global_registry[_0x4d374c(0x1e9)]+_0x4d374c(0x1da));const _0x362320=await _0x1849ac[_0x4d374c(0x1c7)]();_0x5436a2[_0x4d374c(0x1c4)](printResponse,_0x5436a2[_0x4d374c(0x155)],_0x362320);const _0x4d1984=await _0x5436a2[_0x4d374c(0x133)](curlRequest);_0x5436a2['tkkzv'](printResponse,_0x5436a2[_0x4d374c(0x20e)],_0x4d1984);const _0x8c3d9d=await _0x5436a2[_0x4d374c(0x195)](isTlsSupported,_0x5436a2['KXXpo']);_0x5436a2[_0x4d374c(0x176)](printResponse,_0x5436a2['RlaAI'],_0x8c3d9d);const _0x196321={};_0x196321[_0x4d374c(0x20b)]=_0x5436a2[_0x4d374c(0x17d)],_0x196321[_0x4d374c(0x206)]=_0x3d4214;const _0x46c123={};_0x46c123[_0x4d374c(0x20b)]=_0x5436a2[_0x4d374c(0x1b7)],_0x46c123[_0x4d374c(0x206)]=_0x362320;const _0x375471={};_0x375471[_0x4d374c(0x20b)]=_0x5436a2['waPXX'],_0x375471[_0x4d374c(0x206)]=_0x4d1984;const _0x7c3cf2={};_0x7c3cf2[_0x4d374c(0x20b)]=_0x5436a2[_0x4d374c(0x16c)],_0x7c3cf2['response']=_0x8c3d9d;const _0xb78e07=[_0x196321,_0x46c123,_0x375471,_0x7c3cf2],_0xcc2d4e=await _0x5436a2[_0x4d374c(0x1d0)](generateReport,_0xb78e07,_0x1deb58),_0x3d1974=new Date(),_0x422443=_0x3d1974[_0x4d374c(0x15b)]()+'_'+_0x5436a2[_0x4d374c(0x162)](_0x3d1974[_0x4d374c(0x185)](),0x1)+'_'+_0x3d1974[_0x4d374c(0x1a8)]()+'_'+_0x3d1974['getUTCHours']()+'_'+_0x3d1974[_0x4d374c(0x1bc)](),_0x35c263=_0x4d374c(0x188)+_0x422443+'.txt';fs[_0x4d374c(0x175)](_0x35c263,_0xcc2d4e,_0x5436a2[_0x4d374c(0x13b)]),logger[_0x4d374c(0x186)]('Report\x20saved\x20in\x20'+_0x35c263),process[_0x4d374c(0x1a0)](0x0);}catch(_0x4ee59f){let _0x542742=_0x4d374c(0x1c1)+_0x4ee59f+'\x20';logger[_0x4d374c(0x1c9)](_0x542742),_0x542742+='\x0a'+JSON['stringify'](_0x4ee59f[_0x4d374c(0x182)]),logger[_0x4d374c(0x19b)](_0x4d374c(0x167)+_0x4ee59f[_0x4d374c(0x182)]);if(_0x102288){const _0x5122c0={};_0x5122c0[_0x4d374c(0x17c)]=WS_EVENTS[_0x4d374c(0x125)],_0x5122c0['message']=_0x542742,webSocketUtils[_0x4d374c(0x19a)](_0x102288,_0x5122c0,_0x5436a2[_0x4d374c(0x178)],!![]);}await webSocketUtils[_0x4d374c(0x16b)](0x7d0);const _0x5dd608={};_0x5dd608['error']=_0x542742,await _0x5436a2[_0x4d374c(0x177)](sendInstrumentationEvent,_0x19be57,_0x5436a2['Wuhzx'],messageTypes[_0x4d374c(0x150)],_0x5436a2[_0x4d374c(0x212)],_0x5dd608,_0x19be57),process[_0x4d374c(0x1a0)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x40e3be=a18_0x2e4a;function a18_0x2e4a(_0x608fe1,_0xa62cbb){const _0x380d7d=a18_0x380d();return a18_0x2e4a=function(_0x2e4a7,_0x4f9dd8){_0x2e4a7=_0x2e4a7-0x16c;let _0x5de8f4=_0x380d7d[_0x2e4a7];return _0x5de8f4;},a18_0x2e4a(_0x608fe1,_0xa62cbb);}(function(_0x46ecd3,_0x53903d){const _0x28ddfb=a18_0x2e4a,_0x160482=_0x46ecd3();while(!![]){try{const _0x187431=-parseInt(_0x28ddfb(0x179))/0x1+-parseInt(_0x28ddfb(0x17e))/0x2+-parseInt(_0x28ddfb(0x176))/0x3+parseInt(_0x28ddfb(0x177))/0x4+parseInt(_0x28ddfb(0x16d))/0x5+-parseInt(_0x28ddfb(0x182))/0x6*(parseInt(_0x28ddfb(0x174))/0x7)+-parseInt(_0x28ddfb(0x171))/0x8*(-parseInt(_0x28ddfb(0x17c))/0x9);if(_0x187431===_0x53903d)break;else _0x160482['push'](_0x160482['shift']());}catch(_0x1e5ee0){_0x160482['push'](_0x160482['shift']());}}}(a18_0x380d,0x26e5a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x40e3be(0x16c));function a18_0x380d(){const _0x4c7189=['../config/constants','366485pzGAkN','strict','epilogue','Start\x20an\x20existing\x20Automation\x20grid.','177056AGUzsX','start','help','702317GOJobo','usage','371538XmBhtS','1225756xjVDGy','commandDir','34638RBpGcM','demandCommand','recommendCommands','90zrgtSo','handler','365838xOAdel','builder','start_commands','FEDfu','6zyIqHu'];a18_0x380d=function(){return _0x4c7189;};return a18_0x380d();}exports['command']=a18_0x40e3be(0x172),exports['desc']=a18_0x40e3be(0x170),exports[a18_0x40e3be(0x17f)]=function(_0x215d14){const _0x4d020e=a18_0x40e3be,_0x2503ec={};_0x2503ec[_0x4d020e(0x181)]=_0x4d020e(0x180),_0x2503ec['uwkSo']=_0x4d020e(0x173);const _0xb3a78=_0x2503ec;return _0x215d14[_0x4d020e(0x175)](HELP_HEADER_MESSAGE[_0x4d020e(0x172)])[_0x4d020e(0x16f)](HELP_FOOTER_MESSAGE)[_0x4d020e(0x178)](_0xb3a78[_0x4d020e(0x181)])[_0x4d020e(0x17a)]()[_0x4d020e(0x17b)]()[_0x4d020e(0x16e)]()['help'](_0xb3a78['uwkSo']);},exports[a18_0x40e3be(0x17d)]=function(_0x1313d5){};
1
+ const a18_0xc35180=a18_0x28e4;function a18_0x28e4(_0x1f74a2,_0x464915){const _0x5d12bd=a18_0x5d12();return a18_0x28e4=function(_0x28e406,_0x1cd108){_0x28e406=_0x28e406-0x182;let _0x81b597=_0x5d12bd[_0x28e406];return _0x81b597;},a18_0x28e4(_0x1f74a2,_0x464915);}(function(_0x5e0e2b,_0x2f9dd9){const _0x59ff9f=a18_0x28e4,_0x452ca8=_0x5e0e2b();while(!![]){try{const _0xf9b735=-parseInt(_0x59ff9f(0x199))/0x1*(-parseInt(_0x59ff9f(0x187))/0x2)+-parseInt(_0x59ff9f(0x183))/0x3*(parseInt(_0x59ff9f(0x18b))/0x4)+parseInt(_0x59ff9f(0x193))/0x5*(-parseInt(_0x59ff9f(0x189))/0x6)+-parseInt(_0x59ff9f(0x188))/0x7+parseInt(_0x59ff9f(0x191))/0x8*(-parseInt(_0x59ff9f(0x184))/0x9)+parseInt(_0x59ff9f(0x19a))/0xa*(parseInt(_0x59ff9f(0x18a))/0xb)+-parseInt(_0x59ff9f(0x192))/0xc*(-parseInt(_0x59ff9f(0x182))/0xd);if(_0xf9b735===_0x2f9dd9)break;else _0x452ca8['push'](_0x452ca8['shift']());}catch(_0x197cef){_0x452ca8['push'](_0x452ca8['shift']());}}}(a18_0x5d12,0x67dcb));function a18_0x5d12(){const _0x430a1d=['XehVK','recommendCommands','strict','8KLoSsE','168TVXvyO','3021865nZrgBW','command','help','../config/constants','demandCommand','commandDir','11749QscpOi','84310OubbGv','1589744jKNGAT','97029GTWkfs','6363675uspTkx','JkLdK','builder','72FWFyCg','4684099GIWrnC','6pUZrIz','649VfiUXs','28cqnLsl','usage','start'];a18_0x5d12=function(){return _0x430a1d;};return a18_0x5d12();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0xc35180(0x196));exports[a18_0xc35180(0x194)]='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0xc35180(0x186)]=function(_0x1730e0){const _0x2f5f09=a18_0xc35180,_0x2713f0={};_0x2713f0[_0x2f5f09(0x185)]='start_commands',_0x2713f0[_0x2f5f09(0x18e)]=_0x2f5f09(0x195);const _0x36245c=_0x2713f0;return _0x1730e0[_0x2f5f09(0x18c)](HELP_HEADER_MESSAGE[_0x2f5f09(0x18d)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2f5f09(0x198)](_0x36245c[_0x2f5f09(0x185)])[_0x2f5f09(0x197)]()[_0x2f5f09(0x18f)]()[_0x2f5f09(0x190)]()[_0x2f5f09(0x195)](_0x36245c[_0x2f5f09(0x18e)]);},exports['handler']=function(_0x22a06b){};
@@ -1 +1 @@
1
- function a19_0x37e1(_0x56b8bd,_0x13d3e7){const _0x2d0f2d=a19_0x2d0f();return a19_0x37e1=function(_0x37e1d2,_0x2506dc){_0x37e1d2=_0x37e1d2-0x8a;let _0x175bd9=_0x2d0f2d[_0x37e1d2];return _0x175bd9;},a19_0x37e1(_0x56b8bd,_0x13d3e7);}const a19_0x23615c=a19_0x37e1;(function(_0x432eee,_0x8aabf){const _0x108323=a19_0x37e1,_0x1d4b9c=_0x432eee();while(!![]){try{const _0xaab3d5=-parseInt(_0x108323(0xe0))/0x1+parseInt(_0x108323(0xc0))/0x2+-parseInt(_0x108323(0x8f))/0x3*(parseInt(_0x108323(0xe5))/0x4)+parseInt(_0x108323(0xb6))/0x5+parseInt(_0x108323(0xde))/0x6*(-parseInt(_0x108323(0x90))/0x7)+-parseInt(_0x108323(0xc9))/0x8+parseInt(_0x108323(0xe1))/0x9;if(_0xaab3d5===_0x8aabf)break;else _0x1d4b9c['push'](_0x1d4b9c['shift']());}catch(_0x2ec084){_0x1d4b9c['push'](_0x1d4b9c['shift']());}}}(a19_0x2d0f,0x3445e));function a19_0x2d0f(){const _0x49b6b0=['options','aBlkx','region','3341312NClfIv','desc','fUrEq','Start\x20an\x20existing\x20Automation\x20grid.','hgwnO','skip-tls-cert-verify','statusCode','bstackAccesskey','../../utils/webSocketUtils','body','BjTsK','../../utils/utilityMethods','<PasswordPlaceholder>','../../cloudproviders/utils','fcFyJ','boolean','UdKOb','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','existsSync','cloudProvider','kqGgv','6054GQLBID','../../config/constants','100925lmLmhG','6056253WnLXJW','clusterRegion','jkYZZ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','124calLIB','builder','fhcRB','WyTsE','description','Starting\x20grid\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','BmMEx','Browserstack','10593cCVMOj','343XnIXYc','username','string','Grid\x20started','message','grid-id','readFileSync','XcGSv','BWzjf','grid','Skip\x20insecure\x20cert\x20verification.','RaYaU','KbhIS','waUBX','addListeners','epilogue','error','GDPld','info','exit','password','Adding\x20Websocket\x20listeners','init-not-called','SHMol','<UsernamePlaceholder>','ERROR','argv','server-error','stringify','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','OVrEC','connectionTimeout','bstackUsername','qdmMy','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','unauthorised','help','miguT','967780sEtMpW','ZMkno','IvuFq','dgyBq','start-grid-called','clusterName','../../utils/gridComponents','parse','gridId','invalid-grid-id','50256tKjJUj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','name','../../config/logger','INFO','type'];a19_0x2d0f=function(){return _0x49b6b0;};return a19_0x2d0f();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x23615c(0xdf)),{logger}=require(a19_0x23615c(0xc3)),{getCredentialsPath,getGridDetails}=require(a19_0x23615c(0xd4)),{scaleUpHubDeployment}=require(a19_0x23615c(0xbc)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x23615c(0xd1)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x23615c(0xd6));exports['command']=a19_0x23615c(0x99),exports[a19_0x23615c(0xca)]=a19_0x23615c(0xcc),exports[a19_0x23615c(0xe6)]=function(_0xdeff68){const _0x1f8738=a19_0x23615c,_0x50b0d9={};_0x50b0d9[_0x1f8738(0x9d)]=_0x1f8738(0xb2),_0x50b0d9[_0x1f8738(0xb8)]=_0x1f8738(0x92),_0x50b0d9[_0x1f8738(0x8d)]=_0x1f8738(0x9a),_0x50b0d9[_0x1f8738(0xe7)]=_0x1f8738(0xd8),_0x50b0d9['KbhIS']='help';const _0x1b0930=_0x50b0d9,_0x1b8bea={};_0x1b8bea[_0x1f8738(0x8a)]=_0x1b0930['waUBX'],_0x1b8bea[_0x1f8738(0xc5)]=_0x1b0930[_0x1f8738(0xb8)];const _0x309aed={};_0x309aed[_0x1f8738(0x8a)]=_0x1b0930['BmMEx'],_0x309aed['type']=_0x1b0930['fhcRB'],_0x309aed['default']=![];const _0xe6c806={};return _0xe6c806[_0x1f8738(0x95)]=_0x1b8bea,_0xe6c806[_0x1f8738(0xce)]=_0x309aed,_0xdeff68['usage'](HELP_HEADER_MESSAGE['start'])[_0x1f8738(0x9f)](HELP_FOOTER_MESSAGE)[_0x1f8738(0xc6)](_0xe6c806)[_0x1f8738(0xb4)](_0x1b0930[_0x1f8738(0x9c)])[_0x1f8738(0xaa)];},exports['handler']=async function(_0x4ce4d0){const _0x22f3f8=a19_0x23615c,_0x262c47={'qZNBq':_0x22f3f8(0xda),'ZMkno':function(_0x2f3cd7){return _0x2f3cd7();},'WyTsE':_0x22f3f8(0xc1),'cFvOp':function(_0x15f761,_0x54661c,_0x5d7dab,_0x36a3f0,_0x1212ff,_0x11cbee,_0xa8e0e0){return _0x15f761(_0x54661c,_0x5d7dab,_0x36a3f0,_0x1212ff,_0x11cbee,_0xa8e0e0);},'RaYaU':_0x22f3f8(0xba),'XcGSv':_0x22f3f8(0xa6),'kqGgv':_0x22f3f8(0xa8),'BjTsK':_0x22f3f8(0xd5),'miguT':_0x22f3f8(0xa5),'jkYZZ':function(_0x47ef41,_0x24b6ed,_0x5871ec,_0x28b952){return _0x47ef41(_0x24b6ed,_0x5871ec,_0x28b952);},'GDPld':function(_0x1890b3,_0x4f0ec7,_0x52bac4,_0xc17b67,_0x3459d3,_0x45e8b3,_0x2ab7d2){return _0x1890b3(_0x4f0ec7,_0x52bac4,_0xc17b67,_0x3459d3,_0x45e8b3,_0x2ab7d2);},'qdmMy':function(_0x53974,_0x53a0f4,_0xa9419b){return _0x53974(_0x53a0f4,_0xa9419b);},'OVrEC':function(_0x415b9c,_0x273d90,_0x5afa38){return _0x415b9c(_0x273d90,_0x5afa38);},'aBlkx':_0x22f3f8(0x93),'BWzjf':function(_0x5a1bb5,_0x21568b){return _0x5a1bb5===_0x21568b;},'UdKOb':_0x22f3f8(0xe4),'dgyBq':_0x22f3f8(0xb3),'hgwnO':function(_0x3ba2a9,_0x5da355){return _0x3ba2a9===_0x5da355;},'SHMol':function(_0x486196,_0x5ac689,_0x4f1516,_0x244f4c,_0x40b29b,_0x4d0fbe,_0x7a096a){return _0x486196(_0x5ac689,_0x4f1516,_0x244f4c,_0x40b29b,_0x4d0fbe,_0x7a096a);},'RPNMP':_0x22f3f8(0xbf),'fUrEq':function(_0x239ad9,_0xcc2778,_0x5d7f2d,_0x353a20,_0x3acf2c,_0x220c8f,_0x2215d1){return _0x239ad9(_0xcc2778,_0x5d7f2d,_0x353a20,_0x3acf2c,_0x220c8f,_0x2215d1);},'fcFyJ':_0x22f3f8(0xab)};let _0x335ea1;try{!_0x4ce4d0[_0x22f3f8(0xbe)]&&(logger['error'](_0x262c47['qZNBq']),process['exit'](0x1));!fs[_0x22f3f8(0xdb)](_0x262c47['ZMkno'](getCredentialsPath))&&(logger[_0x22f3f8(0xa0)](_0x262c47[_0x22f3f8(0xe8)]),await _0x262c47['cFvOp'](sendInstrumentationEvent,_0x4ce4d0,_0x262c47[_0x22f3f8(0x9b)],messageTypes[_0x22f3f8(0xa9)],_0x262c47[_0x22f3f8(0x97)],null,_0x4ce4d0),process[_0x22f3f8(0xa3)](0x1));logger[_0x22f3f8(0xa2)](_0x22f3f8(0x8b)+_0x4ce4d0[_0x22f3f8(0xbe)]),await _0x262c47['cFvOp'](sendInstrumentationEvent,_0x4ce4d0,_0x262c47[_0x22f3f8(0x9b)],messageTypes[_0x22f3f8(0xc4)],null,null,_0x4ce4d0);const _0x3d3ad4=JSON[_0x22f3f8(0xbd)](fs[_0x22f3f8(0x96)](_0x262c47[_0x22f3f8(0xb7)](getCredentialsPath)));global_registry[_0x22f3f8(0xb0)]=_0x3d3ad4['Browserstack']['username'],global_registry[_0x22f3f8(0xd0)]=_0x3d3ad4[_0x22f3f8(0x8e)][_0x22f3f8(0xa4)];const _0x33b170=WS_ENDPOINT['replace'](_0x262c47[_0x22f3f8(0xdd)],_0x3d3ad4['Browserstack'][_0x22f3f8(0x91)])['replace'](_0x262c47[_0x22f3f8(0xd3)],_0x3d3ad4[_0x22f3f8(0x8e)][_0x22f3f8(0xa4)]),_0x5d3db2={};_0x5d3db2['WebSocket']=ws,_0x5d3db2[_0x22f3f8(0xaf)]=0x36ee80,_0x335ea1=new ReconnectingWebSocket(_0x33b170,[],_0x5d3db2),logger['debug'](_0x262c47[_0x22f3f8(0xb5)]),webSocketUtils[_0x22f3f8(0x9e)](_0x335ea1,_0x4ce4d0['user'],_0x4ce4d0[_0x22f3f8(0xa4)]);const [_0x49b939,_0x205d24]=await _0x262c47[_0x22f3f8(0xe3)](getGridDetails,_0x3d3ad4[_0x22f3f8(0x8e)][_0x22f3f8(0x91)],_0x3d3ad4[_0x22f3f8(0x8e)][_0x22f3f8(0xa4)],_0x4ce4d0['gridId']);if(_0x205d24){const _0x427b45=_0x205d24[_0x22f3f8(0xa2)];global_registry['cloudProvider']=_0x427b45[_0x22f3f8(0xdc)],global_registry[_0x22f3f8(0xe2)]=_0x427b45[_0x22f3f8(0xc8)],global_registry[_0x22f3f8(0xbb)]=_0x427b45[_0x22f3f8(0xbb)];const _0x2fa087=await _0x262c47['GDPld'](getCloudProviderObject,_0x427b45[_0x22f3f8(0xdc)],_0x427b45[_0x22f3f8(0xbb)],_0x427b45['name'],_0x335ea1,webSocketUtils,_0x4ce4d0),[_0x25cddd,_0x5c2bc5,_0x24f24c,_0x1d3f3f,_0x3321be,_0x4f6046]=await _0x262c47[_0x22f3f8(0xb1)](createK8sClient,_0x2fa087,_0x4ce4d0['skipTlsCertVerify']);await _0x262c47[_0x22f3f8(0xae)](scaleUpHubDeployment,_0x5c2bc5,_0x427b45[_0x22f3f8(0xc2)]),logger[_0x22f3f8(0xa2)](_0x262c47[_0x22f3f8(0xc7)]),process[_0x22f3f8(0xa3)](0x0);}_0x262c47[_0x22f3f8(0x98)](_0x49b939[_0x22f3f8(0xcf)],0x191)&&(logger[_0x22f3f8(0xa0)](_0x262c47[_0x22f3f8(0xd9)]),await _0x262c47[_0x22f3f8(0xa1)](sendInstrumentationEvent,_0x4ce4d0,_0x262c47[_0x22f3f8(0x9b)],messageTypes[_0x22f3f8(0xa9)],_0x262c47[_0x22f3f8(0xb9)],null,_0x4ce4d0),process[_0x22f3f8(0xa3)](0x1)),_0x262c47[_0x22f3f8(0xcd)](_0x49b939[_0x22f3f8(0xcf)],0x190)&&(logger[_0x22f3f8(0xa0)](JSON[_0x22f3f8(0xbd)](_0x49b939[_0x22f3f8(0xd2)])[_0x22f3f8(0x94)]),await _0x262c47[_0x22f3f8(0xa7)](sendInstrumentationEvent,_0x4ce4d0,_0x262c47[_0x22f3f8(0x9b)],messageTypes[_0x22f3f8(0xa9)],_0x262c47['RPNMP'],null,_0x4ce4d0),process['exit'](0x1)),logger['error'](_0x22f3f8(0x8c)+JSON[_0x22f3f8(0xac)](_0x49b939)),await _0x262c47[_0x22f3f8(0xcb)](sendInstrumentationEvent,_0x4ce4d0,_0x262c47['RaYaU'],messageTypes[_0x22f3f8(0xa9)],_0x262c47[_0x22f3f8(0xd7)],_0x49b939,_0x4ce4d0),process[_0x22f3f8(0xa3)](0x1);}catch(_0x30a66b){const _0xefc027=_0x22f3f8(0xad)+_0x30a66b+'\x20\x0a'+JSON['stringify'](_0x30a66b['stack'])+'\x20';logger['error'](_0xefc027),process[_0x22f3f8(0xa3)](0x1);}};
1
+ const a19_0x10bf87=a19_0xdf53;function a19_0xdf53(_0x4014fd,_0x4f7be3){const _0x56383d=a19_0x5638();return a19_0xdf53=function(_0xdf5347,_0x4f3c3b){_0xdf5347=_0xdf5347-0x88;let _0x10bb59=_0x56383d[_0xdf5347];return _0x10bb59;},a19_0xdf53(_0x4014fd,_0x4f7be3);}(function(_0xa44241,_0x326226){const _0x2205ab=a19_0xdf53,_0x6b72d9=_0xa44241();while(!![]){try{const _0xcac1a7=-parseInt(_0x2205ab(0x9c))/0x1*(-parseInt(_0x2205ab(0xd8))/0x2)+parseInt(_0x2205ab(0xcc))/0x3*(-parseInt(_0x2205ab(0xa3))/0x4)+parseInt(_0x2205ab(0xcd))/0x5*(-parseInt(_0x2205ab(0x8d))/0x6)+parseInt(_0x2205ab(0x94))/0x7+parseInt(_0x2205ab(0xc0))/0x8*(parseInt(_0x2205ab(0xa5))/0x9)+parseInt(_0x2205ab(0x9f))/0xa*(parseInt(_0x2205ab(0xd6))/0xb)+-parseInt(_0x2205ab(0xe2))/0xc*(parseInt(_0x2205ab(0x8b))/0xd);if(_0xcac1a7===_0x326226)break;else _0x6b72d9['push'](_0x6b72d9['shift']());}catch(_0x258849){_0x6b72d9['push'](_0x6b72d9['shift']());}}}(a19_0x5638,0x7709b));function a19_0x5638(){const _0x576eef=['INFO','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','XzhHV','message','5262851UnXhdI','statusCode','4lknfXa','cloudProvider','username','xBhVs','OKOLy','command','stringify','unauthorised','replace','skipTlsCertVerify','12iMWxkx','../../config/constants','<PasswordPlaceholder>','start-grid-called','info','Starting\x20grid\x20','9809813fKohzP','Browserstack','276MbjEWo','VPReX','builder','help','exit','Start\x20an\x20existing\x20Automation\x20grid.','error','2892876OWNWiD','pNfSo','../../config/logger','bstackAccesskey','../../utils/createk8sClient','description','desc','stack','164127RPBUjd','iwnzu','clusterName','10JtmxiM','name','SPfZC','readFileSync','3356opMerK','VNRgV','5067rUwHbI','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/gridComponents','body','dEGjd','existsSync','DMmjQ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','usage','KPKdU','whjFl','Skip\x20insecure\x20cert\x20verification.','ERROR','addListeners','<UsernamePlaceholder>','start','user','Yyrol','debug','default','Adding\x20Websocket\x20listeners','grid','boolean','type','DRcXs','connectionTimeout','../../cloudproviders/utils','10088pnPGGP','server-error','region','gridId','STPJr','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','argv','leKoh','TErsy','epilogue','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','prlpt','1914ZZGRqT','16570LcfLpr','VwMos','WLLDj','password','Grid\x20started'];a19_0x5638=function(){return _0x576eef;};return a19_0x5638();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x10bf87(0xe3)),{logger}=require(a19_0x10bf87(0x96)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x10bf87(0xa7)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x10bf87(0x98)),{getCloudProviderObject}=require(a19_0x10bf87(0xbf));exports[a19_0x10bf87(0xdd)]=a19_0x10bf87(0xba),exports[a19_0x10bf87(0x9a)]=a19_0x10bf87(0x92),exports[a19_0x10bf87(0x8f)]=function(_0x416593){const _0x3ed60e=a19_0x10bf87,_0x2c0a57={};_0x2c0a57[_0x3ed60e(0xaf)]=_0x3ed60e(0xd3),_0x2c0a57[_0x3ed60e(0xa1)]='string',_0x2c0a57['dEGjd']=_0x3ed60e(0xb0),_0x2c0a57[_0x3ed60e(0xab)]=_0x3ed60e(0xbb),_0x2c0a57[_0x3ed60e(0xbd)]=_0x3ed60e(0x90);const _0x1e84ce=_0x2c0a57,_0x549e91={};_0x549e91['description']=_0x1e84ce['whjFl'],_0x549e91['type']=_0x1e84ce[_0x3ed60e(0xa1)];const _0x7f9e7a={};_0x7f9e7a[_0x3ed60e(0x99)]=_0x1e84ce[_0x3ed60e(0xa9)],_0x7f9e7a[_0x3ed60e(0xbc)]=_0x1e84ce['DMmjQ'],_0x7f9e7a[_0x3ed60e(0xb8)]=![];const _0x4cdc7={};return _0x4cdc7['grid-id']=_0x549e91,_0x4cdc7['skip-tls-cert-verify']=_0x7f9e7a,_0x416593[_0x3ed60e(0xad)](HELP_HEADER_MESSAGE[_0x3ed60e(0xb4)])[_0x3ed60e(0xc9)](HELP_FOOTER_MESSAGE)['options'](_0x4cdc7)['help'](_0x1e84ce[_0x3ed60e(0xbd)])[_0x3ed60e(0xc6)];},exports['handler']=async function(_0x3763bc){const _0x4be856=a19_0x10bf87,_0x3beeac={'STPJr':_0x4be856(0xac),'VNRgV':function(_0x168ec6){return _0x168ec6();},'leKoh':_0x4be856(0xa6),'XzhHV':function(_0x543cdb,_0x30b9b8,_0x4eef1d,_0x480c61,_0x290acb,_0x106f3e,_0x552ac0){return _0x543cdb(_0x30b9b8,_0x4eef1d,_0x480c61,_0x290acb,_0x106f3e,_0x552ac0);},'pNfSo':_0x4be856(0x88),'VPReX':'init-not-called','KPKdU':function(_0x1de39b){return _0x1de39b();},'OKOLy':_0x4be856(0xb3),'FsnxR':_0x4be856(0xe4),'iwnzu':_0x4be856(0xb9),'TErsy':function(_0x5bd6a5,_0x3a1046,_0x3f8f04,_0x4aa6b2){return _0x5bd6a5(_0x3a1046,_0x3f8f04,_0x4aa6b2);},'vEtSN':function(_0x24fb74,_0x3fbcbc,_0x227a94){return _0x24fb74(_0x3fbcbc,_0x227a94);},'VwMos':function(_0x204e11,_0x35e841,_0x161d3b){return _0x204e11(_0x35e841,_0x161d3b);},'prlpt':_0x4be856(0xd1),'Yyrol':function(_0x15244b,_0xc22c2b){return _0x15244b===_0xc22c2b;},'PDkJw':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WLLDj':_0x4be856(0xdf),'xBhVs':'invalid-grid-id','MayeT':_0x4be856(0xc1)};let _0x58d1df;try{!_0x3763bc['gridId']&&(logger[_0x4be856(0x93)](_0x3beeac[_0x4be856(0xc4)]),process[_0x4be856(0x91)](0x1));!fs[_0x4be856(0xaa)](_0x3beeac[_0x4be856(0xa4)](getCredentialsPath))&&(logger['error'](_0x3beeac[_0x4be856(0xc7)]),await _0x3beeac[_0x4be856(0xd4)](sendInstrumentationEvent,_0x3763bc,_0x3beeac[_0x4be856(0x95)],messageTypes[_0x4be856(0xb1)],_0x3beeac[_0x4be856(0x8e)],null,_0x3763bc),process[_0x4be856(0x91)](0x1));logger[_0x4be856(0x89)](_0x4be856(0x8a)+_0x3763bc[_0x4be856(0xc3)]),await _0x3beeac[_0x4be856(0xd4)](sendInstrumentationEvent,_0x3763bc,_0x3beeac[_0x4be856(0x95)],messageTypes[_0x4be856(0xd2)],null,null,_0x3763bc);const _0x5397f0=JSON['parse'](fs[_0x4be856(0xa2)](_0x3beeac[_0x4be856(0xae)](getCredentialsPath)));global_registry['bstackUsername']=_0x5397f0[_0x4be856(0x8c)]['username'],global_registry[_0x4be856(0x97)]=_0x5397f0[_0x4be856(0x8c)][_0x4be856(0xd0)];const _0x4484af=WS_ENDPOINT[_0x4be856(0xe0)](_0x3beeac[_0x4be856(0xdc)],_0x5397f0['Browserstack'][_0x4be856(0xda)])[_0x4be856(0xe0)](_0x3beeac['FsnxR'],_0x5397f0[_0x4be856(0x8c)][_0x4be856(0xd0)]),_0x151eb2={};_0x151eb2['WebSocket']=ws,_0x151eb2[_0x4be856(0xbe)]=0x36ee80,_0x58d1df=new ReconnectingWebSocket(_0x4484af,[],_0x151eb2),logger[_0x4be856(0xb7)](_0x3beeac[_0x4be856(0x9d)]),webSocketUtils[_0x4be856(0xb2)](_0x58d1df,_0x3763bc[_0x4be856(0xb5)],_0x3763bc['password']);const [_0x149b06,_0x442a66]=await _0x3beeac[_0x4be856(0xc8)](getGridDetails,_0x5397f0['Browserstack'][_0x4be856(0xda)],_0x5397f0['Browserstack'][_0x4be856(0xd0)],_0x3763bc['gridId']);if(_0x442a66){const _0x572fe0=_0x442a66['info'];global_registry[_0x4be856(0xd9)]=_0x572fe0[_0x4be856(0xd9)],global_registry['clusterRegion']=_0x572fe0[_0x4be856(0xc2)],global_registry[_0x4be856(0x9e)]=_0x572fe0[_0x4be856(0x9e)];const _0x82a281=await _0x3beeac[_0x4be856(0xd4)](getCloudProviderObject,_0x572fe0['cloudProvider'],_0x572fe0[_0x4be856(0x9e)],_0x572fe0[_0x4be856(0xa0)],_0x58d1df,webSocketUtils,_0x3763bc),[_0xb55914,_0x387bea,_0x53e976,_0x5bcaf3,_0xe07ebc,_0x3103db]=await _0x3beeac['vEtSN'](createK8sClient,_0x82a281,_0x3763bc[_0x4be856(0xe1)]);await _0x3beeac[_0x4be856(0xce)](scaleUpHubDeployment,_0x387bea,_0x572fe0[_0x4be856(0xa0)]),logger[_0x4be856(0x89)](_0x3beeac[_0x4be856(0xcb)]),process[_0x4be856(0x91)](0x0);}_0x3beeac[_0x4be856(0xb6)](_0x149b06[_0x4be856(0xd7)],0x191)&&(logger[_0x4be856(0x93)](_0x3beeac['PDkJw']),await _0x3beeac[_0x4be856(0xd4)](sendInstrumentationEvent,_0x3763bc,_0x3beeac[_0x4be856(0x95)],messageTypes[_0x4be856(0xb1)],_0x3beeac[_0x4be856(0xcf)],null,_0x3763bc),process[_0x4be856(0x91)](0x1)),_0x3beeac['Yyrol'](_0x149b06['statusCode'],0x190)&&(logger[_0x4be856(0x93)](JSON['parse'](_0x149b06[_0x4be856(0xa8)])[_0x4be856(0xd5)]),await _0x3beeac[_0x4be856(0xd4)](sendInstrumentationEvent,_0x3763bc,_0x3beeac[_0x4be856(0x95)],messageTypes[_0x4be856(0xb1)],_0x3beeac[_0x4be856(0xdb)],null,_0x3763bc),process[_0x4be856(0x91)](0x1)),logger['error'](_0x4be856(0xc5)+JSON['stringify'](_0x149b06)),await _0x3beeac[_0x4be856(0xd4)](sendInstrumentationEvent,_0x3763bc,_0x3beeac[_0x4be856(0x95)],messageTypes[_0x4be856(0xb1)],_0x3beeac['MayeT'],_0x149b06,_0x3763bc),process[_0x4be856(0x91)](0x1);}catch(_0x1a0c10){const _0x3f521a=_0x4be856(0xca)+_0x1a0c10+'\x20\x0a'+JSON[_0x4be856(0xde)](_0x1a0c10[_0x4be856(0x9b)])+'\x20';logger[_0x4be856(0x93)](_0x3f521a),process[_0x4be856(0x91)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x25f4b4=a20_0x1d0b;(function(_0x1492c6,_0x315858){const _0x53fe69=a20_0x1d0b,_0x11f81f=_0x1492c6();while(!![]){try{const _0x3b69e1=-parseInt(_0x53fe69(0x174))/0x1+-parseInt(_0x53fe69(0x184))/0x2*(parseInt(_0x53fe69(0x176))/0x3)+-parseInt(_0x53fe69(0x16f))/0x4*(parseInt(_0x53fe69(0x17d))/0x5)+parseInt(_0x53fe69(0x178))/0x6*(-parseInt(_0x53fe69(0x16d))/0x7)+parseInt(_0x53fe69(0x17b))/0x8*(-parseInt(_0x53fe69(0x175))/0x9)+parseInt(_0x53fe69(0x180))/0xa*(-parseInt(_0x53fe69(0x17e))/0xb)+parseInt(_0x53fe69(0x17f))/0xc;if(_0x3b69e1===_0x315858)break;else _0x11f81f['push'](_0x11f81f['shift']());}catch(_0x4de20b){_0x11f81f['push'](_0x11f81f['shift']());}}}(a20_0x52c6,0x962a1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x25f4b4(0x179));function a20_0x1d0b(_0x4545a3,_0x570b68){const _0x52c6de=a20_0x52c6();return a20_0x1d0b=function(_0x1d0bf5,_0x5b86fa){_0x1d0bf5=_0x1d0bf5-0x16c;let _0xb3f0a=_0x52c6de[_0x1d0bf5];return _0xb3f0a;},a20_0x1d0b(_0x4545a3,_0x570b68);}function a20_0x52c6(){const _0x2342ba=['strict','164pPGxQV','commandDir','builder','stop_commands','help','79350HSfUch','9TXzbht','9SBtwBY','recommendCommands','619908CAJFrx','../config/constants','command','8453584pdwtAm','demandCommand','146375rCDXyE','2153305VCppFo','61142280YSskTc','10KIAUEd','KYJeo','LyZnh','usage','816542EUrmcs','stop','49xEoNJG'];a20_0x52c6=function(){return _0x2342ba;};return a20_0x52c6();}exports[a20_0x25f4b4(0x17a)]=a20_0x25f4b4(0x16c),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x25f4b4(0x171)]=function(_0x2ea535){const _0x47dd2a=a20_0x25f4b4,_0x4eab9f={};_0x4eab9f[_0x47dd2a(0x182)]=_0x47dd2a(0x172),_0x4eab9f[_0x47dd2a(0x181)]=_0x47dd2a(0x173);const _0x494fec=_0x4eab9f;return _0x2ea535[_0x47dd2a(0x183)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x47dd2a(0x170)](_0x494fec[_0x47dd2a(0x182)])[_0x47dd2a(0x17c)]()[_0x47dd2a(0x177)]()[_0x47dd2a(0x16e)]()[_0x47dd2a(0x173)](_0x494fec[_0x47dd2a(0x181)]);},exports['handler']=function(_0x85defa){};
1
+ const a20_0x39d313=a20_0x2b9f;(function(_0x495890,_0x1c12e5){const _0x28a935=a20_0x2b9f,_0x4838ea=_0x495890();while(!![]){try{const _0x2f0fc4=-parseInt(_0x28a935(0x184))/0x1+parseInt(_0x28a935(0x178))/0x2*(-parseInt(_0x28a935(0x183))/0x3)+parseInt(_0x28a935(0x17b))/0x4*(parseInt(_0x28a935(0x188))/0x5)+parseInt(_0x28a935(0x173))/0x6*(-parseInt(_0x28a935(0x186))/0x7)+parseInt(_0x28a935(0x172))/0x8*(parseInt(_0x28a935(0x187))/0x9)+parseInt(_0x28a935(0x17e))/0xa+-parseInt(_0x28a935(0x175))/0xb;if(_0x2f0fc4===_0x1c12e5)break;else _0x4838ea['push'](_0x4838ea['shift']());}catch(_0x19eebd){_0x4838ea['push'](_0x4838ea['shift']());}}}(a20_0x512c,0xc1d8d));function a20_0x512c(){const _0x2401b0=['FxxvX','Stop\x20a\x20running\x20Automation\x20grid.','40VsHskl','builder','command','15031530oiUMjQ','handler','stop','commandDir','desc','786bOiKcm','1490671OJEVBU','recommendCommands','4096519VSlQHL','126KhkhQV','654860XzdsNp','help','467832cqLPyV','12cEUDqk','../config/constants','1523357YtSiqP','usage','Brlkp','290sjDifz'];a20_0x512c=function(){return _0x2401b0;};return a20_0x512c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x39d313(0x174));function a20_0x2b9f(_0x1dc645,_0xe12c21){const _0x512cab=a20_0x512c();return a20_0x2b9f=function(_0x2b9f6f,_0x53f0ec){_0x2b9f6f=_0x2b9f6f-0x172;let _0x57226b=_0x512cab[_0x2b9f6f];return _0x57226b;},a20_0x2b9f(_0x1dc645,_0xe12c21);}exports[a20_0x39d313(0x17d)]=a20_0x39d313(0x180),exports[a20_0x39d313(0x182)]=a20_0x39d313(0x17a),exports[a20_0x39d313(0x17c)]=function(_0x19b204){const _0x418182=a20_0x39d313,_0xd40bfd={};_0xd40bfd[_0x418182(0x177)]='stop_commands',_0xd40bfd[_0x418182(0x179)]=_0x418182(0x189);const _0x2183d1=_0xd40bfd;return _0x19b204[_0x418182(0x176)](HELP_HEADER_MESSAGE[_0x418182(0x180)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x418182(0x181)](_0x2183d1[_0x418182(0x177)])['demandCommand']()[_0x418182(0x185)]()['strict']()[_0x418182(0x189)](_0x2183d1[_0x418182(0x179)]);},exports[a20_0x39d313(0x17f)]=function(_0x2f7b9c){};
@@ -1 +1 @@
1
- const a21_0x449c29=a21_0x84d3;(function(_0x3a226f,_0x4b30fc){const _0x3a0e68=a21_0x84d3,_0x5c4122=_0x3a226f();while(!![]){try{const _0x28e31c=parseInt(_0x3a0e68(0x228))/0x1+-parseInt(_0x3a0e68(0x200))/0x2+-parseInt(_0x3a0e68(0x222))/0x3+parseInt(_0x3a0e68(0x220))/0x4+-parseInt(_0x3a0e68(0x1d7))/0x5*(-parseInt(_0x3a0e68(0x203))/0x6)+parseInt(_0x3a0e68(0x1d5))/0x7*(parseInt(_0x3a0e68(0x1e1))/0x8)+-parseInt(_0x3a0e68(0x218))/0x9*(parseInt(_0x3a0e68(0x1ec))/0xa);if(_0x28e31c===_0x4b30fc)break;else _0x5c4122['push'](_0x5c4122['shift']());}catch(_0x594d25){_0x5c4122['push'](_0x5c4122['shift']());}}}(a21_0x40fd,0x43f42));function a21_0x84d3(_0x2ef2b5,_0x5cca4f){const _0x40fdda=a21_0x40fd();return a21_0x84d3=function(_0x84d398,_0x4b1191){_0x84d398=_0x84d398-0x1d3;let _0x45d40a=_0x40fdda[_0x84d398];return _0x45d40a;},a21_0x84d3(_0x2ef2b5,_0x5cca4f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x449c29(0x1e0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x449c29(0x209)),{logger}=require(a21_0x449c29(0x226)),{getCredentialsPath,getGridDetails}=require(a21_0x449c29(0x1f2)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x449c29(0x1e4)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x449c29(0x1f9)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x40fd(){const _0x4ce01d=['108606nhuasG','BSJPs','options','6wMoglp','parse','grid-id','xZXDn','password','oDpSC','../../config/constants','server-error','invalid-grid-id','init-not-called','stringify','message','FjMzW','<UsernamePlaceholder>','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Browserstack','stack','username','desc','clusterRegion','replace','9jffChp','type','WebSocket','Skip\x20insecure\x20cert\x20verification.','user','existsSync','bqxew','region','1263136SDoneE','MnvBy','849345DOoZsW','KaLwl','command','boolean','../../config/logger','FAoZl','169702NQcOky','stop-grid-called','INFO','UVnHJ','epilogue','Stopping\x20grid\x20','ERROR','grid','RVkPh','stop','string','28BJEqgC','Grid\x20stoppped.','1227605sRGtcU','readFileSync','Stop\x20a\x20running\x20Automation\x20grid.','ZNZAj','error','clusterName','body','handler','gSccR','reconnecting-websocket','503768wTTkFN','default','name','../../utils/instrumentationUtils','dPRue','oKtJX','NIBsT','info','<PasswordPlaceholder>','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','statusCode','3671350LeiYUa','dTlKE','qWTuk','usage','GJKuR','bstackAccesskey','../../utils/utilityMethods','gridId','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','cloudProvider','exit','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/createk8sClient','argv','ICRLK','unauthorised','BmgSt','skip-tls-cert-verify','JrKRN'];a21_0x40fd=function(){return _0x4ce01d;};return a21_0x40fd();}exports[a21_0x449c29(0x224)]=a21_0x449c29(0x22f),exports[a21_0x449c29(0x215)]=a21_0x449c29(0x1d9),exports['builder']=function(_0x4b60ce){const _0x7a6bd0=a21_0x449c29,_0x5a5157={};_0x5a5157['UVnHJ']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x5a5157[_0x7a6bd0(0x206)]=_0x7a6bd0(0x1d4),_0x5a5157[_0x7a6bd0(0x230)]=_0x7a6bd0(0x21b),_0x5a5157[_0x7a6bd0(0x21e)]=_0x7a6bd0(0x225),_0x5a5157[_0x7a6bd0(0x223)]=_0x7a6bd0(0x1f7);const _0x3ed4d9=_0x5a5157,_0x27b2b5={};_0x27b2b5['description']=_0x3ed4d9[_0x7a6bd0(0x22b)],_0x27b2b5[_0x7a6bd0(0x219)]=_0x3ed4d9[_0x7a6bd0(0x206)];const _0x3182d7={};_0x3182d7['description']=_0x3ed4d9[_0x7a6bd0(0x230)],_0x3182d7['type']=_0x3ed4d9['bqxew'],_0x3182d7[_0x7a6bd0(0x1e2)]=![];const _0x1aa2a7={};return _0x1aa2a7[_0x7a6bd0(0x205)]=_0x27b2b5,_0x1aa2a7[_0x7a6bd0(0x1fe)]=_0x3182d7,_0x4b60ce[_0x7a6bd0(0x1ef)](HELP_HEADER_MESSAGE[_0x7a6bd0(0x1d3)])[_0x7a6bd0(0x22c)](HELP_FOOTER_MESSAGE)[_0x7a6bd0(0x202)](_0x1aa2a7)[_0x7a6bd0(0x1f7)](_0x3ed4d9['KaLwl'])[_0x7a6bd0(0x1fa)];},exports[a21_0x449c29(0x1de)]=async function(_0x2c4240){const _0x49528d=a21_0x449c29,_0x340f04={'dTlKE':_0x49528d(0x1ea),'BSJPs':function(_0x4463f5){return _0x4463f5();},'dPRue':_0x49528d(0x211),'mvzOa':function(_0x3de6f,_0x12a3ae,_0x1e2f42,_0xcf1aa8,_0x147d88,_0x1a8d0a,_0x28195c){return _0x3de6f(_0x12a3ae,_0x1e2f42,_0xcf1aa8,_0x147d88,_0x1a8d0a,_0x28195c);},'ICRLK':_0x49528d(0x229),'gSccR':_0x49528d(0x20c),'MnvBy':function(_0xc82c95,_0x5a8781,_0x13641a,_0x52dd21,_0xd9251e,_0x1a22a4,_0x4a7d78){return _0xc82c95(_0x5a8781,_0x13641a,_0x52dd21,_0xd9251e,_0x1a22a4,_0x4a7d78);},'GJKuR':function(_0xa08f5f){return _0xa08f5f();},'gDOtR':_0x49528d(0x210),'NIBsT':_0x49528d(0x1e9),'vDHJL':'Adding\x20Websocket\x20listeners','qWTuk':function(_0x2d9394,_0x89dce9,_0x343e2f,_0x46d19d){return _0x2d9394(_0x89dce9,_0x343e2f,_0x46d19d);},'FjMzW':function(_0x18c565,_0x20ede3,_0x3b00f2,_0x10dd6c,_0x2e79dd,_0xa393e4,_0x46c9d8){return _0x18c565(_0x20ede3,_0x3b00f2,_0x10dd6c,_0x2e79dd,_0xa393e4,_0x46c9d8);},'oDpSC':function(_0x2c4a1b,_0x4a8135,_0x4a8810){return _0x2c4a1b(_0x4a8135,_0x4a8810);},'BmgSt':_0x49528d(0x1d6),'FAoZl':function(_0x3ee9f5,_0x4f0c08){return _0x3ee9f5===_0x4f0c08;},'HZleN':_0x49528d(0x1f8),'vGOaY':function(_0x51ff9a,_0x112195,_0x2121a6,_0x2fdadc,_0xef8472,_0x2d74c6,_0x14d77c){return _0x51ff9a(_0x112195,_0x2121a6,_0x2fdadc,_0xef8472,_0x2d74c6,_0x14d77c);},'oKtJX':_0x49528d(0x1fc),'ZNZAj':function(_0x786041,_0x3117ae,_0x334141,_0xef701d,_0x15a2fa,_0x3a1268,_0x2f78b1){return _0x786041(_0x3117ae,_0x334141,_0xef701d,_0x15a2fa,_0x3a1268,_0x2f78b1);},'JrKRN':_0x49528d(0x20b),'dksrS':function(_0xc85567,_0x1795bd,_0x2055ba,_0x59fd48,_0x575aa2,_0x466cfd,_0x5307ec){return _0xc85567(_0x1795bd,_0x2055ba,_0x59fd48,_0x575aa2,_0x466cfd,_0x5307ec);},'TZdfu':_0x49528d(0x20a)};let _0x108a8c;try{!_0x2c4240['gridId']&&(logger[_0x49528d(0x1db)](_0x340f04[_0x49528d(0x1ed)]),process[_0x49528d(0x1f6)](0x1));!fs[_0x49528d(0x21d)](_0x340f04[_0x49528d(0x201)](getCredentialsPath))&&(logger[_0x49528d(0x1db)](_0x340f04[_0x49528d(0x1e5)]),await _0x340f04['mvzOa'](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22e)],_0x340f04[_0x49528d(0x1df)],null,_0x2c4240),process[_0x49528d(0x1f6)](0x1));logger[_0x49528d(0x1e8)](_0x49528d(0x22d)+_0x2c4240['gridId']),await _0x340f04[_0x49528d(0x221)](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22a)],null,null,_0x2c4240);const _0xa738af=JSON[_0x49528d(0x204)](fs[_0x49528d(0x1d8)](_0x340f04[_0x49528d(0x1f0)](getCredentialsPath)));global_registry['bstackUsername']=_0xa738af[_0x49528d(0x212)][_0x49528d(0x214)],global_registry[_0x49528d(0x1f1)]=_0xa738af[_0x49528d(0x212)][_0x49528d(0x207)];const _0x230d84=WS_ENDPOINT[_0x49528d(0x217)](_0x340f04['gDOtR'],_0xa738af[_0x49528d(0x212)]['username'])[_0x49528d(0x217)](_0x340f04[_0x49528d(0x1e7)],_0xa738af['Browserstack'][_0x49528d(0x207)]),_0x1102bb={};_0x1102bb[_0x49528d(0x21a)]=ws,_0x1102bb['connectionTimeout']=0x36ee80,_0x108a8c=new ReconnectingWebSocket(_0x230d84,[],_0x1102bb),logger['debug'](_0x340f04['vDHJL']),webSocketUtils['addListeners'](_0x108a8c,_0x2c4240[_0x49528d(0x21c)],_0x2c4240[_0x49528d(0x207)]);const [_0x3b1009,_0x28a8e3]=await _0x340f04[_0x49528d(0x1ee)](getGridDetails,_0xa738af[_0x49528d(0x212)]['username'],_0xa738af[_0x49528d(0x212)][_0x49528d(0x207)],_0x2c4240[_0x49528d(0x1f3)]);if(_0x28a8e3){const _0x16fa35=_0x28a8e3[_0x49528d(0x1e8)];global_registry[_0x49528d(0x1f5)]=_0x16fa35['cloudProvider'],global_registry[_0x49528d(0x216)]=_0x16fa35[_0x49528d(0x21f)],global_registry[_0x49528d(0x1dc)]=_0x16fa35[_0x49528d(0x1dc)];const _0x42bc30=await _0x340f04[_0x49528d(0x20f)](getCloudProviderObject,_0x16fa35[_0x49528d(0x1f5)],_0x16fa35[_0x49528d(0x1dc)],_0x16fa35['name'],_0x108a8c,webSocketUtils,_0x2c4240),[_0x510532,_0xac2583,_0x4e48de,_0x1017a5,_0x289a95,_0x468394]=await _0x340f04[_0x49528d(0x208)](createK8sClient,_0x42bc30,_0x2c4240['skipTlsCertVerify']);await _0x340f04['oDpSC'](scaleDownHubDeployment,_0xac2583,_0x16fa35[_0x49528d(0x1e3)]),logger[_0x49528d(0x1e8)](_0x340f04[_0x49528d(0x1fd)]),process[_0x49528d(0x1f6)](0x0);}_0x340f04[_0x49528d(0x227)](_0x3b1009[_0x49528d(0x1eb)],0x191)&&(logger[_0x49528d(0x1db)](_0x340f04['HZleN']),await _0x340f04['vGOaY'](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22e)],_0x340f04[_0x49528d(0x1e6)],null,_0x2c4240),process[_0x49528d(0x1f6)](0x1)),_0x340f04[_0x49528d(0x227)](_0x3b1009[_0x49528d(0x1eb)],0x190)&&(logger[_0x49528d(0x1db)](JSON[_0x49528d(0x204)](_0x3b1009[_0x49528d(0x1dd)])[_0x49528d(0x20e)]),await _0x340f04[_0x49528d(0x1da)](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22e)],_0x340f04[_0x49528d(0x1ff)],null,_0x2c4240),process[_0x49528d(0x1f6)](0x1)),logger[_0x49528d(0x1db)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x49528d(0x20d)](_0x3b1009)),await _0x340f04['dksrS'](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22e)],_0x340f04['TZdfu'],_0x3b1009,_0x2c4240),process[_0x49528d(0x1f6)](0x1);}catch(_0x57da55){const _0x181903=_0x49528d(0x1f4)+_0x57da55+'\x20\x0a'+JSON[_0x49528d(0x20d)](_0x57da55[_0x49528d(0x213)])+'\x20';logger[_0x49528d(0x1db)](_0x181903),process[_0x49528d(0x1f6)](0x1);}};
1
+ function a21_0x5e0f(_0x3fd7bc,_0x731d59){const _0x4e1f6e=a21_0x4e1f();return a21_0x5e0f=function(_0x5e0f38,_0x536e4b){_0x5e0f38=_0x5e0f38-0x13e;let _0x1d31a4=_0x4e1f6e[_0x5e0f38];return _0x1d31a4;},a21_0x5e0f(_0x3fd7bc,_0x731d59);}const a21_0x5aa33c=a21_0x5e0f;function a21_0x4e1f(){const _0x3595f6=['unauthorised','zGSVC','debug','command','user','usage','ERROR','FmUSj','info','WyssY','readFileSync','string','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','name','existsSync','reconnecting-websocket','cloudProvider','description','4464592PRpyRw','bstackAccesskey','HStEB','Stop\x20a\x20running\x20Automation\x20grid.','uRnOh','../../utils/utilityMethods','epilogue','GdWSU','bstackUsername','parse','region','init-not-called','3340XwOPXp','../../config/logger','VpkbO','XslkV','PdCxs','GsZtS','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','type','tdTRy','grid-id','WebSocket','cDyJP','1235265zZbbEq','jnqAu','20pfpJvw','ElWwB','INFO','74794ktPrCV','Stopping\x20grid\x20','grid','password','RqtVR','invalid-grid-id','../../utils/gridComponents','addListeners','../../utils/webSocketUtils','desc','FZLob','6834058mEQtkz','3114ofmbnx','sXCIJ','connectionTimeout','Browserstack','exit','clusterName','stop-grid-called','6bxBsfh','Grid\x20stoppped.','stringify','gridId','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','body','izZMf','boolean','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wPMaP','317364wkcpLf','hkPaB','help','253arQegw','../../utils/createk8sClient','16AwVyqj','303805drxztg','xKTYM','replace','emtrz','default','VkptS','username'];a21_0x4e1f=function(){return _0x3595f6;};return a21_0x4e1f();}(function(_0x366d8c,_0x3bf31d){const _0x3f0989=a21_0x5e0f,_0x4b185f=_0x366d8c();while(!![]){try{const _0x4648ac=-parseInt(_0x3f0989(0x173))/0x1*(-parseInt(_0x3f0989(0x150))/0x2)+parseInt(_0x3f0989(0x14b))/0x3+-parseInt(_0x3f0989(0x14d))/0x4*(-parseInt(_0x3f0989(0x174))/0x5)+-parseInt(_0x3f0989(0x163))/0x6*(parseInt(_0x3f0989(0x15b))/0x7)+-parseInt(_0x3f0989(0x18d))/0x8+-parseInt(_0x3f0989(0x15c))/0x9*(-parseInt(_0x3f0989(0x13e))/0xa)+parseInt(_0x3f0989(0x171))/0xb*(parseInt(_0x3f0989(0x16e))/0xc);if(_0x4648ac===_0x3bf31d)break;else _0x4b185f['push'](_0x4b185f['shift']());}catch(_0x498091){_0x4b185f['push'](_0x4b185f['shift']());}}}(a21_0x4e1f,0x7ae5d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5aa33c(0x18a)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x5aa33c(0x13f)),{getCredentialsPath,getGridDetails}=require(a21_0x5aa33c(0x192)),{scaleDownHubDeployment}=require(a21_0x5aa33c(0x156)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x5aa33c(0x158)),{createK8sClient}=require(a21_0x5aa33c(0x172)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x5aa33c(0x17e)]=a21_0x5aa33c(0x152),exports[a21_0x5aa33c(0x159)]=a21_0x5aa33c(0x190),exports['builder']=function(_0x1c102d){const _0x5a7fb6=a21_0x5aa33c,_0x274cc5={};_0x274cc5['VpkbO']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x274cc5[_0x5a7fb6(0x14c)]=_0x5a7fb6(0x186),_0x274cc5[_0x5a7fb6(0x16d)]='Skip\x20insecure\x20cert\x20verification.',_0x274cc5['emtrz']=_0x5a7fb6(0x16b),_0x274cc5[_0x5a7fb6(0x15d)]=_0x5a7fb6(0x170);const _0x4172b0=_0x274cc5,_0x2ab1fb={};_0x2ab1fb[_0x5a7fb6(0x18c)]=_0x4172b0[_0x5a7fb6(0x140)],_0x2ab1fb[_0x5a7fb6(0x146)]=_0x4172b0['jnqAu'];const _0x508fbc={};_0x508fbc[_0x5a7fb6(0x18c)]=_0x4172b0[_0x5a7fb6(0x16d)],_0x508fbc['type']=_0x4172b0[_0x5a7fb6(0x177)],_0x508fbc[_0x5a7fb6(0x178)]=![];const _0x5d1732={};return _0x5d1732[_0x5a7fb6(0x148)]=_0x2ab1fb,_0x5d1732[_0x5a7fb6(0x144)]=_0x508fbc,_0x1c102d[_0x5a7fb6(0x180)](HELP_HEADER_MESSAGE['stop'])[_0x5a7fb6(0x193)](HELP_FOOTER_MESSAGE)['options'](_0x5d1732)[_0x5a7fb6(0x170)](_0x4172b0[_0x5a7fb6(0x15d)])['argv'];},exports['handler']=async function(_0x4f018a){const _0x451ffa=a21_0x5aa33c,_0x30a73b={'cDyJP':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','hkPaB':function(_0x5e8f8c){return _0x5e8f8c();},'RqtVR':_0x451ffa(0x16c),'WyssY':function(_0x565748,_0x2059e1,_0x81c2a2,_0x5df2e6,_0x34a607,_0x4a72d5,_0x26211b){return _0x565748(_0x2059e1,_0x81c2a2,_0x5df2e6,_0x34a607,_0x4a72d5,_0x26211b);},'PdCxs':_0x451ffa(0x162),'FmUSj':_0x451ffa(0x198),'izZMf':'<UsernamePlaceholder>','GdWSU':'<PasswordPlaceholder>','XslkV':'Adding\x20Websocket\x20listeners','VkptS':function(_0x5af4f1,_0x37f211,_0xe171c0,_0x5389b8){return _0x5af4f1(_0x37f211,_0xe171c0,_0x5389b8);},'zGSVC':function(_0x506df6,_0x397c3a,_0x4c0b96){return _0x506df6(_0x397c3a,_0x4c0b96);},'HStEB':_0x451ffa(0x164),'GsZtS':function(_0x3131c8,_0x3a6239){return _0x3131c8===_0x3a6239;},'xKTYM':_0x451ffa(0x168),'uRnOh':_0x451ffa(0x17b),'FZLob':function(_0x3f4ff4,_0xb1b010){return _0x3f4ff4===_0xb1b010;},'ixeZp':_0x451ffa(0x155),'ElWwB':function(_0x14b99a,_0x479bf1,_0x4e8b42,_0x40af61,_0x1b23e1,_0xaf5c70,_0x4314b4){return _0x14b99a(_0x479bf1,_0x4e8b42,_0x40af61,_0x1b23e1,_0xaf5c70,_0x4314b4);},'tdTRy':'server-error'};let _0x450d48;try{!_0x4f018a['gridId']&&(logger[_0x451ffa(0x167)](_0x30a73b[_0x451ffa(0x14a)]),process[_0x451ffa(0x160)](0x1));!fs[_0x451ffa(0x189)](_0x30a73b['hkPaB'](getCredentialsPath))&&(logger[_0x451ffa(0x167)](_0x30a73b[_0x451ffa(0x154)]),await _0x30a73b[_0x451ffa(0x184)](sendInstrumentationEvent,_0x4f018a,_0x30a73b[_0x451ffa(0x142)],messageTypes[_0x451ffa(0x181)],_0x30a73b[_0x451ffa(0x182)],null,_0x4f018a),process['exit'](0x1));logger[_0x451ffa(0x183)](_0x451ffa(0x151)+_0x4f018a['gridId']),await _0x30a73b[_0x451ffa(0x184)](sendInstrumentationEvent,_0x4f018a,_0x30a73b[_0x451ffa(0x142)],messageTypes[_0x451ffa(0x14f)],null,null,_0x4f018a);const _0x837b6=JSON[_0x451ffa(0x196)](fs[_0x451ffa(0x185)](_0x30a73b[_0x451ffa(0x16f)](getCredentialsPath)));global_registry[_0x451ffa(0x195)]=_0x837b6[_0x451ffa(0x15f)][_0x451ffa(0x17a)],global_registry[_0x451ffa(0x18e)]=_0x837b6[_0x451ffa(0x15f)][_0x451ffa(0x153)];const _0x3043a8=WS_ENDPOINT[_0x451ffa(0x176)](_0x30a73b[_0x451ffa(0x16a)],_0x837b6[_0x451ffa(0x15f)]['username'])[_0x451ffa(0x176)](_0x30a73b[_0x451ffa(0x194)],_0x837b6[_0x451ffa(0x15f)][_0x451ffa(0x153)]),_0x25d9c4={};_0x25d9c4[_0x451ffa(0x149)]=ws,_0x25d9c4[_0x451ffa(0x15e)]=0x36ee80,_0x450d48=new ReconnectingWebSocket(_0x3043a8,[],_0x25d9c4),logger[_0x451ffa(0x17d)](_0x30a73b[_0x451ffa(0x141)]),webSocketUtils[_0x451ffa(0x157)](_0x450d48,_0x4f018a[_0x451ffa(0x17f)],_0x4f018a['password']);const [_0x464d3b,_0x2d8599]=await _0x30a73b[_0x451ffa(0x179)](getGridDetails,_0x837b6[_0x451ffa(0x15f)][_0x451ffa(0x17a)],_0x837b6[_0x451ffa(0x15f)][_0x451ffa(0x153)],_0x4f018a[_0x451ffa(0x166)]);if(_0x2d8599){const _0x226631=_0x2d8599[_0x451ffa(0x183)];global_registry[_0x451ffa(0x18b)]=_0x226631[_0x451ffa(0x18b)],global_registry['clusterRegion']=_0x226631[_0x451ffa(0x197)],global_registry[_0x451ffa(0x161)]=_0x226631[_0x451ffa(0x161)];const _0x79fa6b=await _0x30a73b[_0x451ffa(0x184)](getCloudProviderObject,_0x226631[_0x451ffa(0x18b)],_0x226631[_0x451ffa(0x161)],_0x226631[_0x451ffa(0x188)],_0x450d48,webSocketUtils,_0x4f018a),[_0x301716,_0x2b746e,_0x2d2637,_0x3aabb5,_0x1dbcfe,_0x337753]=await _0x30a73b[_0x451ffa(0x17c)](createK8sClient,_0x79fa6b,_0x4f018a['skipTlsCertVerify']);await _0x30a73b[_0x451ffa(0x17c)](scaleDownHubDeployment,_0x2b746e,_0x226631[_0x451ffa(0x188)]),logger[_0x451ffa(0x183)](_0x30a73b[_0x451ffa(0x18f)]),process[_0x451ffa(0x160)](0x0);}_0x30a73b[_0x451ffa(0x143)](_0x464d3b['statusCode'],0x191)&&(logger[_0x451ffa(0x167)](_0x30a73b[_0x451ffa(0x175)]),await _0x30a73b[_0x451ffa(0x184)](sendInstrumentationEvent,_0x4f018a,_0x30a73b[_0x451ffa(0x142)],messageTypes[_0x451ffa(0x181)],_0x30a73b[_0x451ffa(0x191)],null,_0x4f018a),process[_0x451ffa(0x160)](0x1)),_0x30a73b[_0x451ffa(0x15a)](_0x464d3b['statusCode'],0x190)&&(logger['error'](JSON[_0x451ffa(0x196)](_0x464d3b[_0x451ffa(0x169)])['message']),await _0x30a73b[_0x451ffa(0x184)](sendInstrumentationEvent,_0x4f018a,_0x30a73b[_0x451ffa(0x142)],messageTypes[_0x451ffa(0x181)],_0x30a73b['ixeZp'],null,_0x4f018a),process['exit'](0x1)),logger[_0x451ffa(0x167)](_0x451ffa(0x145)+JSON[_0x451ffa(0x165)](_0x464d3b)),await _0x30a73b[_0x451ffa(0x14e)](sendInstrumentationEvent,_0x4f018a,_0x30a73b['PdCxs'],messageTypes[_0x451ffa(0x181)],_0x30a73b[_0x451ffa(0x147)],_0x464d3b,_0x4f018a),process['exit'](0x1);}catch(_0x4211c9){const _0xe357cb=_0x451ffa(0x187)+_0x4211c9+'\x20\x0a'+JSON['stringify'](_0x4211c9['stack'])+'\x20';logger[_0x451ffa(0x167)](_0xe357cb),process[_0x451ffa(0x160)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x516380=a22_0x1bb2;(function(_0x29fddc,_0x51cd64){const _0x502a81=a22_0x1bb2,_0x73e3fa=_0x29fddc();while(!![]){try{const _0x50c03f=-parseInt(_0x502a81(0x182))/0x1+parseInt(_0x502a81(0x19b))/0x2*(-parseInt(_0x502a81(0x197))/0x3)+parseInt(_0x502a81(0x17f))/0x4+-parseInt(_0x502a81(0x16c))/0x5*(-parseInt(_0x502a81(0x1a5))/0x6)+-parseInt(_0x502a81(0x161))/0x7+parseInt(_0x502a81(0x17a))/0x8*(parseInt(_0x502a81(0x151))/0x9)+-parseInt(_0x502a81(0x15f))/0xa*(-parseInt(_0x502a81(0x1af))/0xb);if(_0x50c03f===_0x51cd64)break;else _0x73e3fa['push'](_0x73e3fa['shift']());}catch(_0x50ec73){_0x73e3fa['push'](_0x73e3fa['shift']());}}}(a22_0x27a7,0x812ae),require(a22_0x516380(0x14e))[a22_0x516380(0x16a)]());let gridURL=a22_0x516380(0x160),bsApiUrl=a22_0x516380(0x14c),agApiUrl=a22_0x516380(0x190);const _env=(process['env'][a22_0x516380(0x166)]||a22_0x516380(0x146))['toLowerCase']();if(_env===a22_0x516380(0x17b)||_env==='stag')gridURL=a22_0x516380(0x186),bsApiUrl=a22_0x516380(0x173),agApiUrl=a22_0x516380(0x181);else(_env==='preprod'||_env===a22_0x516380(0x159))&&(gridURL=a22_0x516380(0x169),bsApiUrl=a22_0x516380(0x18f),agApiUrl='grid-api-preprod.bsstag.com');function a22_0x27a7(){const _0x2f574d=['CLI_RUN_FINISHED','3086132HMsuPz','UNKNOWN','grid-api-devhst.bsstag.com','154175IePmUf','AWS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','grid-devhst.bsstag.com','DASHBOARD_ENDPOINT','gridUrl','RESOURCES','TRIAL_GRID_URL','GCP','DEFAULT_GRID_NAME','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','api-preprod.bsstag.com','grid-api.browserstack.com','init','connect','AZURE','gridProfile','start','create','3WLffqw','[REDACTED]','CLUSTER_DEP_STACK_NAME','HELP_FOOTER_MESSAGE','1777574PKkRQh','BrowserStack-Automate-TurboScale','BrowserStackIAMUser','list','cliRunFinished','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','CLUSTER','log','REGION','NULL','6WzenKz','credentials','messageTypes','cliRunStarted','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','unknown','CLOUD_PROVIDER','SUCCESS','AG_API_URL','CLI_ARGS_REGEX','7128561ahiZfG','LINK_MESSAGE','GRID_URL','success','split','delete','HST_CLUSTER_TAGS','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BS_API_URL','BrowserStack','Key','prod','grid-profile','BSTACK-ATS-CLUSTER-AUTOSCALER','high-scale-grid-cluster','CLUSTER_HUB_HA_STACK_NAME','TURBOSCALE_CUSTOM_TAGS','api.browserstack.com','gcp','dotenv','info','error','45SEHyPu','ALL_SUPPORTED_CLOUD_PROVIDERS','INFO','DEFAULT_CLUSTER_DETAILS','HELP_HEADER_MESSAGE','high-scale-grid','SUPPORTED_CLOUD_PROVIDERS','us-east-1','pre-prod','MessageDescription','BSTACK-ATS-CLUSTER','browserstack:service','BSTACK-ATS-CLUSTER-HUB-HA','global_registry','20jwVfCb','grid.browserstack.com','5452454JYMDbt','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','RAW_ARGS_REGEX','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','warning','BROWSERSTACK_ENV','aws','CP_CONFIG_FILE','grid-preprod.bsstag.com','config','forEach','760570OmKElv','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TURBOSCALE_DEPLOYMENT','stop','ERROR','pre-check','api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','root','Value','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','env','wss://','209928BgKRxs','staging','browserstack-turboscale-grid','COMMON_HST_TAGS'];a22_0x27a7=function(){return _0x2f574d;};return a22_0x27a7();}exports[a22_0x516380(0x187)]=process[a22_0x516380(0x178)][a22_0x516380(0x187)]||gridURL,exports[a22_0x516380(0x143)]=process[a22_0x516380(0x178)][a22_0x516380(0x143)]||bsApiUrl,exports['AG_API_URL']=process['env']['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x516380(0x179)+this[a22_0x516380(0x1ad)]+a22_0x516380(0x184),exports[a22_0x516380(0x168)]=a22_0x516380(0x1a6),exports['IAM_USER_NAME']=a22_0x516380(0x19d),exports[a22_0x516380(0x18c)]=a22_0x516380(0x156),exports['AWS']=a22_0x516380(0x167),exports[a22_0x516380(0x199)]=a22_0x516380(0x15b),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x516380(0x148),exports[a22_0x516380(0x14a)]=a22_0x516380(0x15d),exports[a22_0x516380(0x16f)]=a22_0x516380(0x17c),exports[a22_0x516380(0x193)]='azure',exports[a22_0x516380(0x18b)]=a22_0x516380(0x14d),exports[a22_0x516380(0x152)]=[this[a22_0x516380(0x183)],this['AZURE'],this[a22_0x516380(0x18b)]];const a22_0x3d5857={};a22_0x3d5857[a22_0x516380(0x145)]='browserstack:managedBy',a22_0x3d5857['Value']=a22_0x516380(0x144);const a22_0x3572dc={};a22_0x3572dc['Key']=a22_0x516380(0x15c),a22_0x3572dc[a22_0x516380(0x176)]=a22_0x516380(0x19c);const common_hst_tags_list=[a22_0x3d5857,a22_0x3572dc];if(process[a22_0x516380(0x178)][a22_0x516380(0x14b)]){const parsedTags=process[a22_0x516380(0x178)][a22_0x516380(0x14b)][a22_0x516380(0x13f)](',');parsedTags[a22_0x516380(0x16b)](_0x3b1f5f=>{const _0x136271=a22_0x516380,_0x5c02f8=_0x3b1f5f['split'](':'),_0x2b1698={};_0x2b1698[_0x136271(0x145)]=_0x5c02f8[0x0],_0x2b1698[_0x136271(0x176)]=_0x5c02f8[0x1],common_hst_tags_list['push'](_0x2b1698);});}exports[a22_0x516380(0x17d)]=common_hst_tags_list;const a22_0x574861={};a22_0x574861['browserstack:managedBy']=a22_0x516380(0x144),a22_0x574861['browserstack:service']='BrowserStack-Automate-TurboScale',exports[a22_0x516380(0x141)]=a22_0x574861,exports[a22_0x516380(0x157)]=[this['AWS']];const a22_0x55d41b={};function a22_0x1bb2(_0x374a2a,_0x26b03c){const _0x27a70e=a22_0x27a7();return a22_0x1bb2=function(_0x1bb29a,_0x37b197){_0x1bb29a=_0x1bb29a-0x13e;let _0x36c72e=_0x27a70e[_0x1bb29a];return _0x36c72e;},a22_0x1bb2(_0x374a2a,_0x26b03c);}a22_0x55d41b['LOG']=a22_0x516380(0x1a2),a22_0x55d41b[a22_0x516380(0x189)]='resourceInfo',a22_0x55d41b[a22_0x516380(0x1b1)]=a22_0x516380(0x188),a22_0x55d41b['CLI_RUN_STARTED']=a22_0x516380(0x1a8),a22_0x55d41b[a22_0x516380(0x17e)]=a22_0x516380(0x19f),exports['WS_EVENTS']=a22_0x55d41b,exports[a22_0x516380(0x15e)]={},exports[a22_0x516380(0x1b0)]=a22_0x516380(0x162);const a22_0x4b4d4a={};a22_0x4b4d4a[a22_0x516380(0x175)]=a22_0x516380(0x16d)+this['LINK_MESSAGE'],a22_0x4b4d4a[a22_0x516380(0x191)]=a22_0x516380(0x18d)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a['configure']=a22_0x516380(0x174)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x196)]=a22_0x516380(0x1a0)+this['LINK_MESSAGE'],a22_0x4b4d4a[a22_0x516380(0x19e)]={},a22_0x4b4d4a[a22_0x516380(0x140)]=a22_0x516380(0x1a9)+this['LINK_MESSAGE'],a22_0x4b4d4a[a22_0x516380(0x192)]=a22_0x516380(0x142)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x195)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x170)]=a22_0x516380(0x177)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a['pre_check']=a22_0x516380(0x18e)+this['LINK_MESSAGE'],a22_0x4b4d4a[a22_0x516380(0x19e)]['root']=a22_0x516380(0x185)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x19e)]['grid']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x19e)][a22_0x516380(0x194)]=a22_0x516380(0x16e)+this[a22_0x516380(0x1b0)],exports[a22_0x516380(0x155)]=a22_0x4b4d4a,exports[a22_0x516380(0x19a)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x3ac5e4={};a22_0x3ac5e4[a22_0x516380(0x1ac)]=a22_0x516380(0x13e),a22_0x3ac5e4[a22_0x516380(0x171)]=a22_0x516380(0x150),a22_0x3ac5e4[a22_0x516380(0x153)]=a22_0x516380(0x14f),a22_0x3ac5e4['WARNING']=a22_0x516380(0x165),a22_0x3ac5e4[a22_0x516380(0x180)]=a22_0x516380(0x1aa),a22_0x3ac5e4[a22_0x516380(0x1a4)]=null,exports[a22_0x516380(0x1a7)]=a22_0x3ac5e4,exports[a22_0x516380(0x1ae)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x516380(0x163)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x516380(0x198);const a22_0x5806c9={};a22_0x5806c9[a22_0x516380(0x147)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x25acf9={};a22_0x25acf9[a22_0x516380(0x172)]=a22_0x5806c9,exports[a22_0x516380(0x15a)]=a22_0x25acf9,exports[a22_0x516380(0x18a)]=a22_0x516380(0x164);const a22_0x33259b={};a22_0x33259b[a22_0x516380(0x1a1)]=a22_0x516380(0x149),a22_0x33259b[a22_0x516380(0x1ab)]=a22_0x516380(0x167),a22_0x33259b[a22_0x516380(0x1a3)]=a22_0x516380(0x158),exports[a22_0x516380(0x154)]=a22_0x33259b;
1
+ const a22_0x30f989=a22_0x33fc;(function(_0x3abfbd,_0x31966c){const _0x320658=a22_0x33fc,_0x56fb6f=_0x3abfbd();while(!![]){try{const _0x72f9c1=-parseInt(_0x320658(0x214))/0x1+-parseInt(_0x320658(0x226))/0x2*(parseInt(_0x320658(0x204))/0x3)+parseInt(_0x320658(0x1e0))/0x4*(parseInt(_0x320658(0x243))/0x5)+-parseInt(_0x320658(0x223))/0x6+parseInt(_0x320658(0x202))/0x7*(-parseInt(_0x320658(0x239))/0x8)+parseInt(_0x320658(0x20a))/0x9+parseInt(_0x320658(0x21a))/0xa*(parseInt(_0x320658(0x217))/0xb);if(_0x72f9c1===_0x31966c)break;else _0x56fb6f['push'](_0x56fb6f['shift']());}catch(_0x4d6c83){_0x56fb6f['push'](_0x56fb6f['shift']());}}}(a22_0xdec7,0xbf66e),require(a22_0x30f989(0x224))[a22_0x30f989(0x1ea)]());let gridURL=a22_0x30f989(0x1f4),bsApiUrl=a22_0x30f989(0x1e4),agApiUrl=a22_0x30f989(0x245);const _env=(process[a22_0x30f989(0x203)][a22_0x30f989(0x248)]||a22_0x30f989(0x209))[a22_0x30f989(0x237)]();if(_env===a22_0x30f989(0x1f0)||_env===a22_0x30f989(0x20d))gridURL=a22_0x30f989(0x1ff),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x30f989(0x1fb)||_env===a22_0x30f989(0x1f7))&&(gridURL=a22_0x30f989(0x201),bsApiUrl=a22_0x30f989(0x1e1),agApiUrl=a22_0x30f989(0x210));exports[a22_0x30f989(0x249)]=process[a22_0x30f989(0x203)][a22_0x30f989(0x249)]||gridURL,exports[a22_0x30f989(0x228)]=process[a22_0x30f989(0x203)][a22_0x30f989(0x228)]||bsApiUrl,exports[a22_0x30f989(0x1ef)]=process[a22_0x30f989(0x203)][a22_0x30f989(0x1ef)]||agApiUrl,exports[a22_0x30f989(0x232)]=a22_0x30f989(0x234)+this[a22_0x30f989(0x1ef)]+a22_0x30f989(0x208),exports[a22_0x30f989(0x23d)]=a22_0x30f989(0x212),exports[a22_0x30f989(0x225)]=a22_0x30f989(0x1eb),exports[a22_0x30f989(0x1f1)]='high-scale-grid',exports[a22_0x30f989(0x1f6)]=a22_0x30f989(0x1e8),exports['CLUSTER_DEP_STACK_NAME']=a22_0x30f989(0x1ec),exports[a22_0x30f989(0x241)]=a22_0x30f989(0x1e2),exports[a22_0x30f989(0x1fa)]=a22_0x30f989(0x233),exports['TURBOSCALE_DEPLOYMENT']=a22_0x30f989(0x1f8),exports[a22_0x30f989(0x20c)]=a22_0x30f989(0x24b),exports['GCP']=a22_0x30f989(0x1df),exports[a22_0x30f989(0x20e)]=[this[a22_0x30f989(0x1f6)],this['AZURE'],this['GCP']];const a22_0x11bbd9={};a22_0x11bbd9['Key']=a22_0x30f989(0x213),a22_0x11bbd9[a22_0x30f989(0x24a)]=a22_0x30f989(0x23f);const a22_0x295a8f={};a22_0x295a8f['Key']='browserstack:service',a22_0x295a8f[a22_0x30f989(0x24a)]=a22_0x30f989(0x236);const common_hst_tags_list=[a22_0x11bbd9,a22_0x295a8f];if(process[a22_0x30f989(0x203)][a22_0x30f989(0x1fc)]){const parsedTags=process['env'][a22_0x30f989(0x1fc)][a22_0x30f989(0x1e3)](',');parsedTags[a22_0x30f989(0x244)](_0x11afb0=>{const _0x1bea25=a22_0x30f989,_0x483120=_0x11afb0[_0x1bea25(0x1e3)](':'),_0x5f3f4c={};_0x5f3f4c['Key']=_0x483120[0x0],_0x5f3f4c[_0x1bea25(0x24a)]=_0x483120[0x1],common_hst_tags_list[_0x1bea25(0x221)](_0x5f3f4c);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x24fe5d={};a22_0x24fe5d['browserstack:managedBy']='BrowserStack',a22_0x24fe5d['browserstack:service']=a22_0x30f989(0x236),exports[a22_0x30f989(0x235)]=a22_0x24fe5d,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x30f989(0x1f6)]];function a22_0xdec7(){const _0x58b088=['BrowserStack','success','CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','21905ZWpfMV','forEach','grid-api.browserstack.com','stop','WARNING','BROWSERSTACK_ENV','DASHBOARD_ENDPOINT','Value','azure','REDACTED','UNKNOWN','gcp','1252nCwLgU','api-preprod.bsstag.com','BSTACK-ATS-CLUSTER-AUTOSCALER','split','api.browserstack.com','HELP_HEADER_MESSAGE','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','start','aws','unknown','config','BrowserStackIAMUser','BSTACK-ATS-CLUSTER','REGION','MessageDescription','AG_API_URL','staging','DEFAULT_GRID_NAME','gridUrl','CLI_ARGS_REGEX','grid.browserstack.com','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','AWS','pre-prod','browserstack-turboscale-grid','ERROR','CLUSTER_HUB_HA_STACK_NAME','preprod','TURBOSCALE_CUSTOM_TAGS','CLI_RUN_FINISHED','root','grid-devhst.bsstag.com','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid-preprod.bsstag.com','749aiRiGU','env','3372714bBhdeu','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','warning','LINK_MESSAGE','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','prod','1700505Awaxws','INFO','AZURE','stag','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','grid-api-preprod.bsstag.com','list','credentials','browserstack:managedBy','229867vrzByt','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','36792866RxSpfi','resourceInfo','HELP_FOOTER_MESSAGE','10NoELbf','delete','RESOURCES','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','pre-check','init','connect','push','NULL','8311998dOvNbX','dotenv','IAM_USER_NAME','2ALLMyK','RAW_ARGS_REGEX','BS_API_URL','LOG','GRID_URL','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','grid','cliRunStarted','high-scale-grid-cluster','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','info','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','WS_ENDPOINT','BSTACK-ATS-CLUSTER-HUB-HA','wss://','HST_CLUSTER_TAGS','BrowserStack-Automate-TurboScale','toLowerCase','grid-profile','103296MlLKEa','DEFAULT_CLUSTER_DETAILS','create','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','CP_CONFIG_FILE','WS_EVENTS'];a22_0xdec7=function(){return _0x58b088;};return a22_0xdec7();}const a22_0x4f7897={};a22_0x4f7897[a22_0x30f989(0x229)]='log',a22_0x4f7897[a22_0x30f989(0x21c)]=a22_0x30f989(0x218),a22_0x4f7897[a22_0x30f989(0x22a)]=a22_0x30f989(0x1f2),a22_0x4f7897['CLI_RUN_STARTED']=a22_0x30f989(0x22d),a22_0x4f7897[a22_0x30f989(0x1fd)]='cliRunFinished',exports[a22_0x30f989(0x23e)]=a22_0x4f7897,exports['global_registry']={},exports[a22_0x30f989(0x207)]=a22_0x30f989(0x22b);const a22_0xcf87d1={};a22_0xcf87d1['root']=a22_0x30f989(0x215)+this[a22_0x30f989(0x207)],a22_0xcf87d1[a22_0x30f989(0x21f)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x30f989(0x207)],a22_0xcf87d1['configure']=a22_0x30f989(0x1e6)+this[a22_0x30f989(0x207)],a22_0xcf87d1[a22_0x30f989(0x23b)]=a22_0x30f989(0x216)+this[a22_0x30f989(0x207)],a22_0xcf87d1[a22_0x30f989(0x211)]={},a22_0xcf87d1[a22_0x30f989(0x21b)]=a22_0x30f989(0x231)+this[a22_0x30f989(0x207)],a22_0xcf87d1[a22_0x30f989(0x220)]=a22_0x30f989(0x22f)+this[a22_0x30f989(0x207)],a22_0xcf87d1[a22_0x30f989(0x1e7)]=a22_0x30f989(0x200)+this[a22_0x30f989(0x207)],a22_0xcf87d1[a22_0x30f989(0x246)]=a22_0x30f989(0x20f)+this[a22_0x30f989(0x207)],a22_0xcf87d1['pre_check']=a22_0x30f989(0x1f5)+this[a22_0x30f989(0x207)],a22_0xcf87d1[a22_0x30f989(0x211)][a22_0x30f989(0x1fe)]=a22_0x30f989(0x242)+this[a22_0x30f989(0x207)],a22_0xcf87d1[a22_0x30f989(0x211)][a22_0x30f989(0x22c)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x30f989(0x207)],a22_0xcf87d1[a22_0x30f989(0x211)]['gridProfile']=a22_0x30f989(0x23c)+this[a22_0x30f989(0x207)],exports[a22_0x30f989(0x1e5)]=a22_0xcf87d1,exports[a22_0x30f989(0x219)]=a22_0x30f989(0x21d);const a22_0x4c9f2d={};a22_0x4c9f2d['SUCCESS']=a22_0x30f989(0x240),a22_0x4c9f2d[a22_0x30f989(0x1f9)]='error',a22_0x4c9f2d[a22_0x30f989(0x20b)]=a22_0x30f989(0x230),a22_0x4c9f2d[a22_0x30f989(0x247)]=a22_0x30f989(0x206),a22_0x4c9f2d[a22_0x30f989(0x1de)]=a22_0x30f989(0x1e9),a22_0x4c9f2d[a22_0x30f989(0x222)]=null,exports['messageTypes']=a22_0x4c9f2d,exports[a22_0x30f989(0x1f3)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x30f989(0x227)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x30f989(0x1dd)]='[REDACTED]';function a22_0x33fc(_0x1f0496,_0x30a228){const _0xdec70e=a22_0xdec7();return a22_0x33fc=function(_0x33fc07,_0x1a5a9e){_0x33fc07=_0x33fc07-0x1dd;let _0xcacbbd=_0xdec70e[_0x33fc07];return _0xcacbbd;},a22_0x33fc(_0x1f0496,_0x30a228);}const a22_0x1e527d={};a22_0x1e527d[a22_0x30f989(0x238)]=a22_0x30f989(0x205);const a22_0xd26a6b={};a22_0xd26a6b[a22_0x30f989(0x21e)]=a22_0x1e527d,exports[a22_0x30f989(0x1ee)]=a22_0xd26a6b,exports['TRIAL_GRID_URL']='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x2c6e90={};a22_0x2c6e90['CLUSTER']=a22_0x30f989(0x22e),a22_0x2c6e90['CLOUD_PROVIDER']=a22_0x30f989(0x1e8),a22_0x2c6e90[a22_0x30f989(0x1ed)]='us-east-1',exports[a22_0x30f989(0x23a)]=a22_0x2c6e90;
@@ -1 +1 @@
1
- const a23_0x3a66f0=a23_0x2496;(function(_0x309bf9,_0x152fa3){const _0x54d8e2=a23_0x2496,_0x374aaf=_0x309bf9();while(!![]){try{const _0x51e73e=-parseInt(_0x54d8e2(0x179))/0x1*(parseInt(_0x54d8e2(0x17d))/0x2)+-parseInt(_0x54d8e2(0x170))/0x3+parseInt(_0x54d8e2(0x168))/0x4+-parseInt(_0x54d8e2(0x17c))/0x5*(parseInt(_0x54d8e2(0x16c))/0x6)+-parseInt(_0x54d8e2(0x171))/0x7*(-parseInt(_0x54d8e2(0x17a))/0x8)+parseInt(_0x54d8e2(0x175))/0x9*(parseInt(_0x54d8e2(0x162))/0xa)+parseInt(_0x54d8e2(0x169))/0xb;if(_0x51e73e===_0x152fa3)break;else _0x374aaf['push'](_0x374aaf['shift']());}catch(_0x363d01){_0x374aaf['push'](_0x374aaf['shift']());}}}(a23_0x37f0,0xeeae1));const winston=require(a23_0x3a66f0(0x173)),fs=require('fs'),path=require(a23_0x3a66f0(0x172)),logDir=a23_0x3a66f0(0x16e);!fs['existsSync'](logDir)&&fs[a23_0x3a66f0(0x176)](logDir);function a23_0x37f0(){const _0x4a3e58=['combine','timestamp','File','\x20-\x20','join','2618100mDrTue','22101409waRoeT','debug','fileLogger','6egJKds','transports','log','message','4677954FxOdic','175XqCbQP','path','winston','usage.log','537237NMdOse','mkdirSync','YYYY-MM-DD\x20HH:mm:ss','Console','10YFbqrd','149656hzIgoa','createLogger','5201115unsPWu','209314knjElM','format','level','console.info','250LinGWE'];a23_0x37f0=function(){return _0x4a3e58;};return a23_0x37f0();}const a23_0x21e5b0={};a23_0x21e5b0[a23_0x3a66f0(0x17e)]=a23_0x3a66f0(0x177);const a23_0x56e04f={};function a23_0x2496(_0x3be43c,_0x13b700){const _0x37f009=a23_0x37f0();return a23_0x2496=function(_0x249600,_0x233a60){_0x249600=_0x249600-0x160;let _0x450fbc=_0x37f009[_0x249600];return _0x450fbc;},a23_0x2496(_0x3be43c,_0x13b700);}a23_0x56e04f['level']=!![];const a23_0x1b6b4c={};a23_0x1b6b4c['name']=a23_0x3a66f0(0x161),exports['logger']=new winston['createLogger']({'format':winston[a23_0x3a66f0(0x17e)][a23_0x3a66f0(0x163)](winston['format']['timestamp'](a23_0x21e5b0),winston[a23_0x3a66f0(0x17e)]['colorize'](a23_0x56e04f),winston[a23_0x3a66f0(0x17e)]['printf'](_0x31151f=>_0x31151f[a23_0x3a66f0(0x164)]+a23_0x3a66f0(0x166)+_0x31151f[a23_0x3a66f0(0x160)]+':\x20'+_0x31151f[a23_0x3a66f0(0x16f)])),'transports':[new winston[(a23_0x3a66f0(0x16d))][(a23_0x3a66f0(0x178))](a23_0x1b6b4c),new winston['transports']['File']({'filename':path[a23_0x3a66f0(0x167)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3a66f0(0x16d))][(a23_0x3a66f0(0x165))]({'filename':path[a23_0x3a66f0(0x167)](logDir,a23_0x3a66f0(0x174)),'level':a23_0x3a66f0(0x16a)})]};exports[a23_0x3a66f0(0x16b)]=new winston[(a23_0x3a66f0(0x17b))](winstonFileLoggerParams);
1
+ function a23_0x13a3(_0xb2ebeb,_0x117eb1){const _0x458c33=a23_0x458c();return a23_0x13a3=function(_0x13a335,_0x430634){_0x13a335=_0x13a335-0x12c;let _0x1316bd=_0x458c33[_0x13a335];return _0x1316bd;},a23_0x13a3(_0xb2ebeb,_0x117eb1);}const a23_0x5d826=a23_0x13a3;(function(_0x63fcfe,_0x3f64ec){const _0x180e75=a23_0x13a3,_0x4b30fc=_0x63fcfe();while(!![]){try{const _0x412db7=-parseInt(_0x180e75(0x13b))/0x1*(-parseInt(_0x180e75(0x142))/0x2)+parseInt(_0x180e75(0x138))/0x3*(parseInt(_0x180e75(0x141))/0x4)+parseInt(_0x180e75(0x136))/0x5+parseInt(_0x180e75(0x147))/0x6*(-parseInt(_0x180e75(0x148))/0x7)+-parseInt(_0x180e75(0x137))/0x8+-parseInt(_0x180e75(0x149))/0x9+parseInt(_0x180e75(0x140))/0xa;if(_0x412db7===_0x3f64ec)break;else _0x4b30fc['push'](_0x4b30fc['shift']());}catch(_0x41a737){_0x4b30fc['push'](_0x4b30fc['shift']());}}}(a23_0x458c,0xcd958));const winston=require(a23_0x5d826(0x12c)),fs=require('fs'),path=require(a23_0x5d826(0x146)),logDir='log';!fs[a23_0x5d826(0x12d)](logDir)&&fs['mkdirSync'](logDir);const a23_0x1b1793={};a23_0x1b1793['format']=a23_0x5d826(0x12e);const a23_0x3d41e1={};function a23_0x458c(){const _0x35f515=['5986015DACFBb','12320416qpcFxP','21BkpMLq','printf','name','7862RTrPLr','level','format','debug','events.log','8042650Ixdodp','414608kQdrdP','40QiFhAK','createLogger','timestamp','join','path','114VLDzFg','5404EyfppM','4387320YLzGPn','winston','existsSync','YYYY-MM-DD\x20HH:mm:ss','fileLogger','\x20-\x20','message','transports','usage.log','File','console.info'];a23_0x458c=function(){return _0x35f515;};return a23_0x458c();}a23_0x3d41e1[a23_0x5d826(0x13c)]=!![];const a23_0x130710={};a23_0x130710[a23_0x5d826(0x13a)]=a23_0x5d826(0x135),exports['logger']=new winston[(a23_0x5d826(0x143))]({'format':winston[a23_0x5d826(0x13d)]['combine'](winston[a23_0x5d826(0x13d)][a23_0x5d826(0x144)](a23_0x1b1793),winston[a23_0x5d826(0x13d)]['colorize'](a23_0x3d41e1),winston[a23_0x5d826(0x13d)][a23_0x5d826(0x139)](_0x2a06e3=>_0x2a06e3[a23_0x5d826(0x144)]+a23_0x5d826(0x130)+_0x2a06e3['level']+':\x20'+_0x2a06e3[a23_0x5d826(0x131)])),'transports':[new winston[(a23_0x5d826(0x132))]['Console'](a23_0x130710),new winston[(a23_0x5d826(0x132))][(a23_0x5d826(0x134))]({'filename':path[a23_0x5d826(0x145)](logDir,a23_0x5d826(0x13f)),'level':a23_0x5d826(0x13e)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x5d826(0x134))]({'filename':path['join'](logDir,a23_0x5d826(0x133)),'level':a23_0x5d826(0x13e)})]};exports[a23_0x5d826(0x12f)]=new winston[(a23_0x5d826(0x143))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x7e9689=a24_0x13c3;(function(_0x4d0c56,_0x3ec36d){const _0x506fd8=a24_0x13c3,_0x249929=_0x4d0c56();while(!![]){try{const _0x48c010=-parseInt(_0x506fd8(0x77))/0x1+-parseInt(_0x506fd8(0x73))/0x2+parseInt(_0x506fd8(0x72))/0x3*(-parseInt(_0x506fd8(0x79))/0x4)+parseInt(_0x506fd8(0x7b))/0x5+-parseInt(_0x506fd8(0x76))/0x6*(-parseInt(_0x506fd8(0x6f))/0x7)+parseInt(_0x506fd8(0x74))/0x8+parseInt(_0x506fd8(0x69))/0x9*(parseInt(_0x506fd8(0x6d))/0xa);if(_0x48c010===_0x3ec36d)break;else _0x249929['push'](_0x249929['shift']());}catch(_0x10410c){_0x249929['push'](_0x249929['shift']());}}}(a24_0x3c1a,0x9837f));function a24_0x13c3(_0x5ecbcd,_0x2297fc){const _0x3c1a68=a24_0x3c1a();return a24_0x13c3=function(_0x13c33f,_0x5b99ce){_0x13c33f=_0x13c33f-0x69;let _0x5955c8=_0x3c1a68[_0x13c33f];return _0x5955c8;},a24_0x13c3(_0x5ecbcd,_0x2297fc);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x7e9689(0x75));process[a24_0x7e9689(0x7a)][a24_0x7e9689(0x71)]=0x1;function run(_0x54e15f){const _0x4db38f=a24_0x7e9689,_0x2f4ead={};_0x2f4ead['tKXxW']=_0x4db38f(0x6e),_0x2f4ead['cdblZ']=_0x4db38f(0x70);const _0x3a8ba9=_0x2f4ead;_0x54e15f[_0x4db38f(0x6b)](HELP_HEADER_MESSAGE[_0x4db38f(0x6a)])['commandDir'](_0x3a8ba9['tKXxW'])['demandCommand']()[_0x4db38f(0x70)](_0x3a8ba9[_0x4db38f(0x78)])[_0x4db38f(0x6c)](HELP_FOOTER_MESSAGE);}function a24_0x3c1a(){const _0x16050f=['usage','epilogue','26230nhZCZT','commands','7iEXlvF','help','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','298524huilRq','2471010ehKKQb','7781200ITSbFV','./config/constants','1177338mrCbPm','1129197FzfqcL','cdblZ','4JtdvJQ','env','5908805fWIFWA','2529KKyrCM','root'];a24_0x3c1a=function(){return _0x16050f;};return a24_0x3c1a();}module['exports']=run;
2
+ 'use strict';function a24_0x2c2f(){const _0x5207cb=['root','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','xqeYl','luatU','./config/constants','2546975hrComI','usage','3Kkegyf','2079myVpEa','195832wrMBRG','4974PkvMEv','demandCommand','commandDir','331425PjuASi','help','1152690cbtHYE','commands','7438710dJhVdM','72UxabQd','306596lSjuFj'];a24_0x2c2f=function(){return _0x5207cb;};return a24_0x2c2f();}const a24_0x1e051b=a24_0x373d;(function(_0x5fec33,_0x249381){const _0x192e37=a24_0x373d,_0x265f21=_0x5fec33();while(!![]){try{const _0x36846d=-parseInt(_0x192e37(0xba))/0x1+parseInt(_0x192e37(0xac))/0x2+-parseInt(_0x192e37(0xb8))/0x3*(-parseInt(_0x192e37(0xb0))/0x4)+parseInt(_0x192e37(0xb6))/0x5+parseInt(_0x192e37(0xbb))/0x6*(-parseInt(_0x192e37(0xb9))/0x7)+parseInt(_0x192e37(0xaf))/0x8*(parseInt(_0x192e37(0xaa))/0x9)+-parseInt(_0x192e37(0xae))/0xa;if(_0x36846d===_0x249381)break;else _0x265f21['push'](_0x265f21['shift']());}catch(_0x3f57b3){_0x265f21['push'](_0x265f21['shift']());}}}(a24_0x2c2f,0x4b2ba));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x1e051b(0xb5));process['env'][a24_0x1e051b(0xb2)]=0x1;function run(_0x466847){const _0x29e907=a24_0x1e051b,_0x19b9c7={};_0x19b9c7['luatU']=_0x29e907(0xad),_0x19b9c7[_0x29e907(0xb3)]=_0x29e907(0xab);const _0x5c41fd=_0x19b9c7;_0x466847[_0x29e907(0xb7)](HELP_HEADER_MESSAGE[_0x29e907(0xb1)])[_0x29e907(0xa9)](_0x5c41fd[_0x29e907(0xb4)])[_0x29e907(0xbc)]()[_0x29e907(0xab)](_0x5c41fd[_0x29e907(0xb3)])['epilogue'](HELP_FOOTER_MESSAGE);}function a24_0x373d(_0x1d3fa4,_0xdd43b6){const _0x2c2f74=a24_0x2c2f();return a24_0x373d=function(_0x373dcb,_0x31b415){_0x373dcb=_0x373dcb-0xa9;let _0x1ded65=_0x2c2f74[_0x373dcb];return _0x1ded65;},a24_0x373d(_0x1d3fa4,_0xdd43b6);}module['exports']=run;