browserstack-node-sdk 1.65.7 → 1.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) 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/generated/sdk-messages_pb.d.ts +118 -0
  41. package/generated/sdk-messages_pb.js +908 -0
  42. package/generated/sdk_grpc_pb.d.ts +10 -0
  43. package/generated/sdk_grpc_pb.js +74 -0
  44. package/package.json +1 -1
  45. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  46. package/src/bin/codeceptjs/command.js +1 -1
  47. package/src/bin/codeceptjs/helper.js +1 -1
  48. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  49. package/src/bin/cucumber-js/command.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  52. package/src/bin/cucumber-js/test-observability.js +1 -1
  53. package/src/bin/cucumber-js/test.setup.js +1 -1
  54. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  55. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  56. package/src/bin/detox/a11ySetup.js +1 -0
  57. package/src/bin/detox/command.js +2 -0
  58. package/src/bin/detox/modifyDetoxConf.js +1 -0
  59. package/src/bin/detox/traEmitter.js +1 -0
  60. package/src/bin/integrations/command.js +1 -1
  61. package/src/bin/integrations/constants.js +1 -1
  62. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  63. package/src/bin/jasmine/command.js +1 -1
  64. package/src/bin/jasmine/test.setup.js +1 -1
  65. package/src/bin/jasmine/testRunMap.js +1 -1
  66. package/src/bin/jest/command.js +1 -1
  67. package/src/bin/jest/customImplements/customCircus.js +1 -1
  68. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  69. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  70. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  71. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  72. package/src/bin/jest/jest.setup.js +1 -1
  73. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  74. package/src/bin/jest/test-observability/helper.js +1 -1
  75. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  76. package/src/bin/jest/test-observability/test-details.js +1 -1
  77. package/src/bin/jest/test.setup.js +1 -1
  78. package/src/bin/jest/test_before.setup.js +1 -1
  79. package/src/bin/launcher/launcher.js +1 -1
  80. package/src/bin/load/index.js +1 -1
  81. package/src/bin/load/loadErrors.js +1 -1
  82. package/src/bin/load/loadUtils.js +1 -1
  83. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  84. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  85. package/src/bin/mocha/command.js +1 -1
  86. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  87. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  88. package/src/bin/mocha/test.setup.js +1 -1
  89. package/src/bin/newman/command.js +1 -1
  90. package/src/bin/newman/helper.js +1 -1
  91. package/src/bin/newman/reporter/index.js +1 -1
  92. package/src/bin/newman/scriptRunner.js +1 -1
  93. package/src/bin/nightwatch/command.js +1 -1
  94. package/src/bin/node-generic/client.js +1 -1
  95. package/src/bin/playwright/accessibility-helper.js +1 -1
  96. package/src/bin/playwright/command.js +1 -1
  97. package/src/bin/playwright/globalSetup.js +1 -1
  98. package/src/bin/playwright/mock-process.js +1 -1
  99. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  100. package/src/bin/playwright/patches.js +1 -1
  101. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  102. package/src/bin/playwright/reporter/reporter.js +1 -1
  103. package/src/bin/playwright/reporter/test-details.js +1 -1
  104. package/src/bin/playwright/reporterArgs.js +1 -1
  105. package/src/bin/playwright/sessionDetails.js +1 -1
  106. package/src/bin/puppeteer/patches.js +1 -1
  107. package/src/bin/puppeteer/sessionDetails.js +1 -1
  108. package/src/bin/puppeteer/test.setup.js +1 -1
  109. package/src/bin/runner.js +1 -1
  110. package/src/bin/setup.js +1 -1
  111. package/src/bin/test-runner/index.js +1 -1
  112. package/src/bin/test-runner/runTest.js +1 -1
  113. package/src/bin/test-runner/testWorker.js +1 -1
  114. package/src/bin/testcafe/a11y-runner.js +1 -1
  115. package/src/bin/testcafe/command.js +1 -1
  116. package/src/bin/testcafe/reporter/index.js +1 -1
  117. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  118. package/src/bin/testcafe/session-registry.js +1 -1
  119. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  120. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  121. package/src/bin/testcafe/w3c-driver.js +1 -1
  122. package/src/bin/utils/apiUtilityMethods.js +1 -1
  123. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  124. package/src/bin/utils/constants.js +1 -1
  125. package/src/bin/utils/log4jsAppender.js +1 -1
  126. package/src/bin/utils/logPatcher.js +1 -1
  127. package/src/bin/utils/logReportingAPI.js +1 -1
  128. package/src/bin/utils/playwright-patcher.js +1 -1
  129. package/src/bin/utils/puppeteer-patcher.js +1 -1
  130. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  131. package/src/bin/utils/sharedUtils.js +1 -1
  132. package/src/bin/v2/TestInfo.js +1 -1
  133. package/src/bin/v2/browserstackCLI.js +1 -1
  134. package/src/bin/v2/cliUtils.js +1 -1
  135. package/src/bin/v2/customTagManager.js +1 -1
  136. package/src/bin/v2/eventDispatcher.js +1 -1
  137. package/src/bin/v2/framework/automationFramework.js +1 -1
  138. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  139. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  140. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  141. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  142. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  143. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  144. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  146. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  147. package/src/bin/v2/framework/testFramework.js +1 -1
  148. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  149. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  150. package/src/bin/v2/grpcClient.js +1 -1
  151. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  152. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  153. package/src/bin/v2/instances/trackedContext.js +1 -1
  154. package/src/bin/v2/instances/trackedInstance.js +1 -1
  155. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  156. package/src/bin/v2/modules/baseModule.js +1 -1
  157. package/src/bin/v2/modules/loadTestModule.js +1 -1
  158. package/src/bin/v2/modules/observabilityModule.js +1 -1
  159. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  160. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  161. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  162. package/src/bin/v2/modules/testhubModule.js +1 -1
  163. package/src/bin/v2/sdkErrorHandler.js +1 -1
  164. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  165. package/src/bin/v2/state/hookState.js +1 -1
  166. package/src/bin/v2/state/testFrameworkState.js +1 -1
  167. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  168. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  169. package/src/bin/v2/utils/jest-utils.js +1 -1
  170. package/src/bin/vanilla-js/command.js +1 -1
  171. package/src/browserStackSdk.js +1 -1
  172. package/src/detox-driver/a11y.js +574 -0
  173. package/src/detox-driver/allocationDriver.js +26 -0
  174. package/src/detox-driver/cloudPlatformAction.js +111 -0
  175. package/src/detox-driver/environment.js +253 -0
  176. package/src/detox-driver/expect.js +44 -0
  177. package/src/detox-driver/index.js +12 -0
  178. package/src/detox-driver/login-timeout-preload.js +25 -0
  179. package/src/detox-driver/runtimeDriver.js +351 -0
  180. package/src/detox-driver/session-reporter.js +41 -0
  181. package/src/detox-driver/tra-capture.js +81 -0
  182. package/src/helpers/BrowserStackSetup.js +1 -1
  183. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  184. package/src/helpers/accessibility-automation/constants.js +1 -1
  185. package/src/helpers/accessibility-automation/helper.js +1 -1
  186. package/src/helpers/accessibility-automation/scripts.js +1 -1
  187. package/src/helpers/ats/constants.js +1 -1
  188. package/src/helpers/ats/helper.js +1 -1
  189. package/src/helpers/caCertHelper.js +1 -1
  190. package/src/helpers/capsMapping.js +1 -1
  191. package/src/helpers/central-scanner/constants.js +1 -1
  192. package/src/helpers/central-scanner/helpers.js +1 -1
  193. package/src/helpers/classLogger.js +1 -1
  194. package/src/helpers/driverInitErrorReporter.js +1 -1
  195. package/src/helpers/globals.js +1 -1
  196. package/src/helpers/helper.js +1 -1
  197. package/src/helpers/logger.js +1 -1
  198. package/src/helpers/metadata.js +1 -1
  199. package/src/helpers/patchHelper.js +1 -1
  200. package/src/helpers/patchHelpers.js +1 -1
  201. package/src/helpers/percy/Percy.js +1 -1
  202. package/src/helpers/percy/PercyBinary.js +1 -1
  203. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  204. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  205. package/src/helpers/percy/PercySDK.js +1 -1
  206. package/src/helpers/percy/index.js +1 -1
  207. package/src/helpers/percy/utils.js +1 -1
  208. package/src/helpers/performance/constants.js +1 -1
  209. package/src/helpers/performance/performance-tester.js +1 -1
  210. package/src/helpers/playwright-helper.js +1 -1
  211. package/src/helpers/processHelper.js +1 -1
  212. package/src/helpers/puppeteer-helper.js +1 -1
  213. package/src/helpers/request-spy.js +1 -1
  214. package/src/helpers/setKeepAlive.js +1 -1
  215. package/src/helpers/stackFrameUtils.js +1 -1
  216. package/src/helpers/test-observability/constants.js +1 -1
  217. package/src/helpers/test-observability/error-handler.js +1 -1
  218. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  219. package/src/helpers/test-observability/sessionHandler.js +1 -1
  220. package/src/helpers/test-observability/utils.js +1 -1
  221. package/src/helpers/test-orchestration/constants.js +1 -1
  222. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  223. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  224. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  225. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  226. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  227. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  228. package/src/helpers/testhub/constants.js +1 -1
  229. package/src/helpers/testhub/testhubHandler.js +1 -1
  230. package/src/helpers/testhub/utils.js +1 -1
  231. package/src/helpers/utilities.js +1 -1
  232. package/src/helpers/w3cMapping.js +1 -1
  233. package/src/hubAllocationMethods.js +1 -1
  234. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0xf171(){const _0x597221=['Browserstack','rwkwt','type','BoICO','kSDBV','IbuLA','UfbeN','50VaXGcQ','command','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','queued','../../config/constants','usage','bmGUw','boolean','ITTrI','1742864qGOErY','init-not-called','clusterName','got','grids','Noywu','/packages/cli/get-all-grids','../../utils/instrumentationUtils','UfspU','push','OKLfp','WFmfa','vVQIt','cfNkI','3683274BjmucN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1oVNAUK','lAhup','username','server-error','CqVLR','all-grids','ixPQt','grid-id','ERROR','stringify','exit','running','parse','requestId','handler','WNcMz','unauthorised','https://','argv','options','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','stack','desc','6pgMiEB','name','cluster-name','9CRiwqh','UgdqD','QpicT','Failed\x20to\x20list\x20resources!\x20Error:\x20','MLqrM','NmHzI','builder','\x0aFound\x20the\x20following\x20grids:\x0a','3336672HAsfUs','dtWdZ','help','INFO','bstackAccesskey','3622729mNuRRt','allGrids','readFileSync','9336728DlpzIG','2788274WKfZmd','forEach','statusCode','list','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','97550hhPAxG','epilogue','error','euYkd','status','GET'];a15_0xf171=function(){return _0x597221;};return a15_0xf171();}const a15_0x427bc5=a15_0x22bf;(function(_0x24ea8a,_0x1779e4){const _0x56a40f=a15_0x22bf,_0x2d8853=_0x24ea8a();while(!![]){try{const _0x3ad114=-parseInt(_0x56a40f(0x195))/0x1*(-parseInt(_0x56a40f(0x16a))/0x2)+-parseInt(_0x56a40f(0x1b7))/0x3+-parseInt(_0x56a40f(0x185))/0x4+parseInt(_0x56a40f(0x16f))/0x5+-parseInt(_0x56a40f(0x1ac))/0x6*(-parseInt(_0x56a40f(0x193))/0x7)+parseInt(_0x56a40f(0x169))/0x8*(-parseInt(_0x56a40f(0x1af))/0x9)+-parseInt(_0x56a40f(0x17c))/0xa*(-parseInt(_0x56a40f(0x1bc))/0xb);if(_0x3ad114===_0x1779e4)break;else _0x2d8853['push'](_0x2d8853['shift']());}catch(_0x5c836b){_0x2d8853['push'](_0x2d8853['shift']());}}}(a15_0xf171,0xd4c45));function a15_0x22bf(_0x48fbd9,_0xa12aaf){const _0xf17141=a15_0xf171();return a15_0x22bf=function(_0x22bfe9,_0x4145a8){_0x22bfe9=_0x22bfe9-0x167;let _0x4af96e=_0xf17141[_0x22bfe9];return _0x4af96e;},a15_0x22bf(_0x48fbd9,_0xa12aaf);}const fs=require('fs'),got=require(a15_0x427bc5(0x188)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x427bc5(0x180)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x427bc5(0x18c));exports[a15_0x427bc5(0x17d)]=a15_0x427bc5(0x189),exports[a15_0x427bc5(0x1ab)]=a15_0x427bc5(0x1a9),exports[a15_0x427bc5(0x1b5)]=function(_0x431295){const _0x5d08de=a15_0x427bc5,_0x3a09f7={};_0x3a09f7[_0x5d08de(0x199)]=_0x5d08de(0x17e),_0x3a09f7['OKLfp']=_0x5d08de(0x183),_0x3a09f7['UfbeN']=_0x5d08de(0x1b9);const _0x313a5c=_0x3a09f7,_0x1c528b={};_0x1c528b['description']=_0x313a5c['CqVLR'],_0x1c528b[_0x5d08de(0x177)]=_0x313a5c[_0x5d08de(0x18f)];const _0x28b8b3={};return _0x28b8b3[_0x5d08de(0x19a)]=_0x1c528b,_0x431295[_0x5d08de(0x181)](HELP_HEADER_MESSAGE[_0x5d08de(0x16d)]['grid'])[_0x5d08de(0x170)](HELP_FOOTER_MESSAGE)[_0x5d08de(0x1a8)](_0x28b8b3)['help'](_0x313a5c[_0x5d08de(0x17b)])[_0x5d08de(0x1a7)];},exports[a15_0x427bc5(0x1a3)]=async function(_0x3bfef0){const _0xc754ef=a15_0x427bc5,_0x49d2b8={'WNcMz':function(_0x10ca9b){return _0x10ca9b();},'IbuLA':_0xc754ef(0x16e),'BoICO':function(_0x422c74,_0x282313,_0x338948,_0x320479,_0x5e0734,_0x25ed22,_0x110e7e){return _0x422c74(_0x282313,_0x338948,_0x320479,_0x5e0734,_0x25ed22,_0x110e7e);},'MLqrM':'list-grids-called','EVXyA':_0xc754ef(0x186),'cfNkI':_0xc754ef(0x174),'Noywu':function(_0x58d940,_0x5f243d,_0x47e52d){return _0x58d940(_0x5f243d,_0x47e52d);},'UgdqD':function(_0x37c199,_0x2bbbc7,_0x5b21d8,_0x24d01f,_0x46e62b,_0x4582f0,_0x18a296){return _0x37c199(_0x2bbbc7,_0x5b21d8,_0x24d01f,_0x46e62b,_0x4582f0,_0x18a296);},'NmHzI':function(_0x1a3344,_0x57e8b1,_0x5bb657){return _0x1a3344(_0x57e8b1,_0x5bb657);},'ITTrI':function(_0x46cabd,_0x114c74){return _0x46cabd!==_0x114c74;},'lAhup':function(_0x51fc96,_0x1cc437){return _0x51fc96===_0x1cc437;},'ixPQt':_0xc754ef(0x1b6),'UfspU':_0xc754ef(0x19c),'dtWdZ':'grid-name','WFmfa':'status','QpicT':_0xc754ef(0x1a0),'JjVQD':_0xc754ef(0x17f),'jwhHj':_0xc754ef(0x1ae),'eLSOC':function(_0x2dbab9,_0x59de8d){return _0x2dbab9(_0x59de8d);},'vVQIt':_0xc754ef(0x194),'euYkd':_0xc754ef(0x1a5),'kSDBV':function(_0x438719,_0x17e2f2,_0x3a3e08,_0x368981,_0x9cf172,_0x24450b,_0x2bc4b3){return _0x438719(_0x17e2f2,_0x3a3e08,_0x368981,_0x9cf172,_0x24450b,_0x2bc4b3);},'rwkwt':_0xc754ef(0x198),'bmGUw':'unknown-error'};try{global_registry[_0xc754ef(0x1a2)]=_0x49d2b8[_0xc754ef(0x1a4)](uuidv4);!fs['existsSync'](_0x49d2b8[_0xc754ef(0x1a4)](getCredentialsPath))&&(console[_0xc754ef(0x171)](_0x49d2b8[_0xc754ef(0x17a)]),await _0x49d2b8['BoICO'](sendInstrumentationEvent,_0x3bfef0,_0x49d2b8['MLqrM'],messageTypes[_0xc754ef(0x19d)],_0x49d2b8['EVXyA'],null,_0x3bfef0),process[_0xc754ef(0x19f)](0x1));const _0x5b5703=JSON[_0xc754ef(0x1a1)](fs[_0xc754ef(0x168)](_0x49d2b8[_0xc754ef(0x1a4)](getCredentialsPath)));let _0xc4be59=_0xc754ef(0x1a6)+AG_API_URL+'/packages/cli/get-grids';_0x3bfef0[_0xc754ef(0x167)]&&(_0xc4be59='https://'+AG_API_URL+_0xc754ef(0x18b));const _0x2b5f2f={'method':_0x49d2b8[_0xc754ef(0x192)],'headers':_0x49d2b8[_0xc754ef(0x18a)](getAuthHeader,_0x5b5703[_0xc754ef(0x175)][_0xc754ef(0x197)],_0x5b5703[_0xc754ef(0x175)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x5b5703[_0xc754ef(0x175)][_0xc754ef(0x197)],global_registry[_0xc754ef(0x1bb)]=_0x5b5703[_0xc754ef(0x175)]['password'],_0x49d2b8[_0xc754ef(0x1b0)](sendInstrumentationEvent,_0x3bfef0,_0x49d2b8['MLqrM'],messageTypes[_0xc754ef(0x1ba)],null,null,_0x3bfef0);const _0x6a650c=await _0x49d2b8[_0xc754ef(0x1b4)](got,_0xc4be59,_0x2b5f2f);if(_0x49d2b8[_0xc754ef(0x184)](_0x6a650c,null)&&_0x49d2b8[_0xc754ef(0x184)](_0x6a650c,undefined)&&_0x49d2b8[_0xc754ef(0x196)](_0x6a650c[_0xc754ef(0x16c)],0xc8)){const _0x21f6e9=JSON[_0xc754ef(0x1a1)](_0x6a650c['body']);console['log'](_0x49d2b8[_0xc754ef(0x19b)]);const _0x1f17b8=[];_0x1f17b8[_0xc754ef(0x18e)]([_0x49d2b8[_0xc754ef(0x18d)],_0x49d2b8[_0xc754ef(0x1b8)],_0x49d2b8[_0xc754ef(0x190)],_0x49d2b8[_0xc754ef(0x1b1)],_0x49d2b8['JjVQD'],_0x49d2b8['jwhHj']]),_0x21f6e9[_0xc754ef(0x16b)](_0xfa3f49=>{const _0x7c4c45=_0xc754ef;_0x1f17b8[_0x7c4c45(0x18e)]([_0xfa3f49['id'],_0xfa3f49[_0x7c4c45(0x1ad)],_0xfa3f49[_0x7c4c45(0x173)],_0xfa3f49[_0x7c4c45(0x1a0)],_0xfa3f49[_0x7c4c45(0x17f)],_0xfa3f49[_0x7c4c45(0x187)]]);}),console['log'](_0x49d2b8['eLSOC'](table,_0x1f17b8)),process[_0xc754ef(0x19f)](0x0);}_0x49d2b8[_0xc754ef(0x196)](_0x6a650c[_0xc754ef(0x16c)],0x191)&&(console[_0xc754ef(0x171)](_0x49d2b8[_0xc754ef(0x191)]),await _0x49d2b8[_0xc754ef(0x178)](sendInstrumentationEvent,_0x3bfef0,_0x49d2b8['MLqrM'],messageTypes[_0xc754ef(0x19d)],_0x49d2b8[_0xc754ef(0x172)],null,_0x3bfef0),process[_0xc754ef(0x19f)](0x1)),console[_0xc754ef(0x171)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0xc754ef(0x19e)](_0x6a650c)),await _0x49d2b8[_0xc754ef(0x179)](sendInstrumentationEvent,_0x3bfef0,_0x49d2b8[_0xc754ef(0x1b3)],messageTypes[_0xc754ef(0x19d)],_0x49d2b8[_0xc754ef(0x176)],_0x6a650c,_0x3bfef0),process[_0xc754ef(0x19f)](0x1);}catch(_0x246873){console[_0xc754ef(0x171)](_0xc754ef(0x1b2)+_0x246873[_0xc754ef(0x1aa)]),await _0x49d2b8[_0xc754ef(0x1b0)](sendInstrumentationEvent,_0x3bfef0,_0x49d2b8[_0xc754ef(0x1b3)],messageTypes[_0xc754ef(0x19d)],_0x49d2b8[_0xc754ef(0x182)],_0x246873,_0x3bfef0),process[_0xc754ef(0x19f)](0x1);}};
1
+ function a15_0x74cf(){const _0x5a7b42=['JuVRr','14634lcesUJ','stringify','init-not-called','1217839LXATUF','handler','password','LtMzX','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','ncepW','mFnBE','IKcAz','unauthorised','bpUYx','unknown-error','clusterName','GET','rBnLb','12635622Mtjjng','help','uuid','lulYJ','list','status','type','6454CAUGmw','requestId','8679016QPCpiZ','epilogue','wOTKl','668aroJIC','30qFkOTL','biSdp','4966625tLppHG','exit','builder','https://','list-grids-called','log','grid-id','flmcT','grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','server-error','UkGkH','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','dGQph','SdWcy','UAvza','name','ZbscA','error','bstackAccesskey','ERROR','/packages/cli/get-all-grids','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','command','uPnXc','table','queued','got','bstackUsername','INFO','3667800peOhCN','mCobf','grid-name','boolean','QELEM','usage','xvQMk','FNmAo','push','ThHkH','parse','LTzkK','EmiIT','zKkxu','running','Browserstack','username','EWvLL','313NUagGu','all-grids','../../utils/utilityMethods'];a15_0x74cf=function(){return _0x5a7b42;};return a15_0x74cf();}function a15_0x3fd5(_0x719552,_0x5db3b2){const _0x74cf44=a15_0x74cf();return a15_0x3fd5=function(_0x3fd530,_0x22a6ea){_0x3fd530=_0x3fd530-0x1ed;let _0x41f213=_0x74cf44[_0x3fd530];return _0x41f213;},a15_0x3fd5(_0x719552,_0x5db3b2);}const a15_0x5c311b=a15_0x3fd5;(function(_0x1ffdf5,_0x14a742){const _0x202d39=a15_0x3fd5,_0x5f381c=_0x1ffdf5();while(!![]){try{const _0x2d299f=-parseInt(_0x202d39(0x23f))/0x1*(parseInt(_0x202d39(0x207))/0x2)+-parseInt(_0x202d39(0x1ef))/0x3*(parseInt(_0x202d39(0x20c))/0x4)+parseInt(_0x202d39(0x20f))/0x5+parseInt(_0x202d39(0x20d))/0x6*(parseInt(_0x202d39(0x1f2))/0x7)+-parseInt(_0x202d39(0x209))/0x8+parseInt(_0x202d39(0x200))/0x9+parseInt(_0x202d39(0x22d))/0xa;if(_0x2d299f===_0x14a742)break;else _0x5f381c['push'](_0x5f381c['shift']());}catch(_0x2053d9){_0x5f381c['push'](_0x5f381c['shift']());}}}(a15_0x74cf,0xb0daa));const fs=require('fs'),got=require(a15_0x5c311b(0x22a)),{table}=require(a15_0x5c311b(0x228)),{v4:uuidv4}=require(a15_0x5c311b(0x202)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x5c311b(0x1ed)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x5c311b(0x226)]=a15_0x5c311b(0x217),exports['desc']=a15_0x5c311b(0x1f6),exports[a15_0x5c311b(0x211)]=function(_0x596fce){const _0x565d87=a15_0x5c311b,_0xaedd3b={};_0xaedd3b[_0x565d87(0x203)]=_0x565d87(0x21b),_0xaedd3b[_0x565d87(0x20b)]=_0x565d87(0x230),_0xaedd3b[_0x565d87(0x233)]=_0x565d87(0x201);const _0x35a4d2=_0xaedd3b,_0x319ff2={};_0x319ff2['description']=_0x35a4d2[_0x565d87(0x203)],_0x319ff2[_0x565d87(0x206)]=_0x35a4d2[_0x565d87(0x20b)];const _0x1e10ef={};return _0x1e10ef[_0x565d87(0x240)]=_0x319ff2,_0x596fce[_0x565d87(0x232)](HELP_HEADER_MESSAGE[_0x565d87(0x204)]['grid'])[_0x565d87(0x20a)](HELP_FOOTER_MESSAGE)['options'](_0x1e10ef)[_0x565d87(0x201)](_0x35a4d2[_0x565d87(0x233)])['argv'];},exports[a15_0x5c311b(0x1f3)]=async function(_0x1f9a27){const _0x143786=a15_0x5c311b,_0x454db2={'UAvza':function(_0xaf43b0){return _0xaf43b0();},'DPFTL':function(_0x122128){return _0x122128();},'EWvLL':_0x143786(0x225),'bpUYx':function(_0x36a0cc,_0xda380,_0x1cbb31,_0x2d9d44,_0x16658c,_0x2cd450,_0x1e9218){return _0x36a0cc(_0xda380,_0x1cbb31,_0x2d9d44,_0x16658c,_0x2cd450,_0x1e9218);},'ThHkH':_0x143786(0x213),'IKcAz':_0x143786(0x1f1),'ZbscA':function(_0x9b008d){return _0x9b008d();},'SdWcy':_0x143786(0x1fe),'JuVRr':function(_0x2cbec6,_0x5be1ca,_0x26b00c){return _0x2cbec6(_0x5be1ca,_0x26b00c);},'ncepW':function(_0x5d97c5,_0x3d627e){return _0x5d97c5!==_0x3d627e;},'FNmAo':function(_0x934976,_0x23023c){return _0x934976!==_0x23023c;},'rBnLb':function(_0x168b0e,_0x30fbcf){return _0x168b0e===_0x30fbcf;},'LtMzX':'\x0aFound\x20the\x20following\x20grids:\x0a','mFnBE':_0x143786(0x215),'dGQph':_0x143786(0x22f),'ZEFmi':_0x143786(0x205),'HaQUz':_0x143786(0x23b),'McNLB':_0x143786(0x229),'LTzkK':'cluster-name','flmcT':function(_0x549018,_0x1ce00b){return _0x549018(_0x1ce00b);},'UkGkH':function(_0x310ffd,_0x342d2b){return _0x310ffd===_0x342d2b;},'EmiIT':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','zKkxu':function(_0x47163e,_0x13a5e2,_0xeda755,_0x3d12b8,_0x35887a,_0x3133b4,_0x478e2d){return _0x47163e(_0x13a5e2,_0xeda755,_0x3d12b8,_0x35887a,_0x3133b4,_0x478e2d);},'QELEM':_0x143786(0x1fa),'mCobf':function(_0x1c927b,_0x5831ce,_0x4a7e80,_0x3a1054,_0x3b0846,_0x21f423,_0xf6a54e){return _0x1c927b(_0x5831ce,_0x4a7e80,_0x3a1054,_0x3b0846,_0x21f423,_0xf6a54e);},'biSdp':_0x143786(0x219),'uPnXc':_0x143786(0x1fc)};try{global_registry[_0x143786(0x208)]=_0x454db2[_0x143786(0x21e)](uuidv4);!fs['existsSync'](_0x454db2['DPFTL'](getCredentialsPath))&&(console['error'](_0x454db2[_0x143786(0x23e)]),await _0x454db2[_0x143786(0x1fb)](sendInstrumentationEvent,_0x1f9a27,_0x454db2[_0x143786(0x236)],messageTypes[_0x143786(0x223)],_0x454db2[_0x143786(0x1f9)],null,_0x1f9a27),process['exit'](0x1));const _0x2c5f85=JSON['parse'](fs['readFileSync'](_0x454db2[_0x143786(0x220)](getCredentialsPath)));let _0x2815a0='https://'+AG_API_URL+'/packages/cli/get-grids';_0x1f9a27['allGrids']&&(_0x2815a0=_0x143786(0x212)+AG_API_URL+_0x143786(0x224));const _0x440b99={'method':_0x454db2[_0x143786(0x21d)],'headers':_0x454db2[_0x143786(0x1ee)](getAuthHeader,_0x2c5f85[_0x143786(0x23c)][_0x143786(0x23d)],_0x2c5f85[_0x143786(0x23c)][_0x143786(0x1f4)]),'throwHttpErrors':![]};global_registry[_0x143786(0x22b)]=_0x2c5f85['Browserstack'][_0x143786(0x23d)],global_registry[_0x143786(0x222)]=_0x2c5f85[_0x143786(0x23c)][_0x143786(0x1f4)],_0x454db2[_0x143786(0x1fb)](sendInstrumentationEvent,_0x1f9a27,_0x454db2['ThHkH'],messageTypes[_0x143786(0x22c)],null,null,_0x1f9a27);const _0x36b578=await _0x454db2[_0x143786(0x1ee)](got,_0x2815a0,_0x440b99);if(_0x454db2[_0x143786(0x1f7)](_0x36b578,null)&&_0x454db2[_0x143786(0x234)](_0x36b578,undefined)&&_0x454db2[_0x143786(0x1ff)](_0x36b578['statusCode'],0xc8)){const _0x47511a=JSON[_0x143786(0x237)](_0x36b578['body']);console[_0x143786(0x214)](_0x454db2[_0x143786(0x1f5)]);const _0x487c00=[];_0x487c00[_0x143786(0x235)]([_0x454db2[_0x143786(0x1f8)],_0x454db2[_0x143786(0x21c)],_0x454db2['ZEFmi'],_0x454db2['HaQUz'],_0x454db2['McNLB'],_0x454db2[_0x143786(0x238)]]),_0x47511a['forEach'](_0x11a25d=>{const _0x53035f=_0x143786;_0x487c00[_0x53035f(0x235)]([_0x11a25d['id'],_0x11a25d[_0x53035f(0x21f)],_0x11a25d[_0x53035f(0x205)],_0x11a25d[_0x53035f(0x23b)],_0x11a25d[_0x53035f(0x229)],_0x11a25d[_0x53035f(0x1fd)]]);}),console[_0x143786(0x214)](_0x454db2[_0x143786(0x216)](table,_0x487c00)),process[_0x143786(0x210)](0x0);}_0x454db2[_0x143786(0x21a)](_0x36b578['statusCode'],0x191)&&(console[_0x143786(0x221)](_0x454db2[_0x143786(0x239)]),await _0x454db2[_0x143786(0x23a)](sendInstrumentationEvent,_0x1f9a27,_0x454db2[_0x143786(0x236)],messageTypes[_0x143786(0x223)],_0x454db2[_0x143786(0x231)],null,_0x1f9a27),process[_0x143786(0x210)](0x1)),console[_0x143786(0x221)](_0x143786(0x218)+JSON[_0x143786(0x1f0)](_0x36b578)),await _0x454db2[_0x143786(0x22e)](sendInstrumentationEvent,_0x1f9a27,_0x454db2[_0x143786(0x236)],messageTypes[_0x143786(0x223)],_0x454db2[_0x143786(0x20e)],_0x36b578,_0x1f9a27),process[_0x143786(0x210)](0x1);}catch(_0x120aaa){console[_0x143786(0x221)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x120aaa['stack']),await _0x454db2['zKkxu'](sendInstrumentationEvent,_0x1f9a27,_0x454db2[_0x143786(0x236)],messageTypes['ERROR'],_0x454db2[_0x143786(0x227)],_0x120aaa,_0x1f9a27),process[_0x143786(0x210)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x3e56(_0x52d6d2,_0x38401e){const _0x56409b=a16_0x5640();return a16_0x3e56=function(_0x3e564f,_0x2f247b){_0x3e564f=_0x3e564f-0x8c;let _0x1c3b4f=_0x56409b[_0x3e564f];return _0x1c3b4f;},a16_0x3e56(_0x52d6d2,_0x38401e);}const a16_0x2a9fe2=a16_0x3e56;function a16_0x5640(){const _0x2bfd44=['commandDir','4469140JClKaF','desc','143108FnHnXe','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','recommendCommands','QyqzA','precheck_commands','1457298ijpKkU','10JgKalO','usage','pre_check','help','321dDaSvw','FayZh','demandCommand','1559820IDastZ','8920DNHjGF','4713084QHRTRh','builder','command','1366906eKOfqU','464SouVqQ'];a16_0x5640=function(){return _0x2bfd44;};return a16_0x5640();}(function(_0x1d8bdc,_0xb7e6a2){const _0x318406=a16_0x3e56,_0x4cccee=_0x1d8bdc();while(!![]){try{const _0x4379f4=-parseInt(_0x318406(0x99))/0x1+parseInt(_0x318406(0x9e))/0x2+parseInt(_0x318406(0x96))/0x3*(parseInt(_0x318406(0x9a))/0x4)+parseInt(_0x318406(0xa1))/0x5+-parseInt(_0x318406(0x9b))/0x6+-parseInt(_0x318406(0x8c))/0x7*(-parseInt(_0x318406(0x9f))/0x8)+-parseInt(_0x318406(0x91))/0x9*(-parseInt(_0x318406(0x92))/0xa);if(_0x4379f4===_0xb7e6a2)break;else _0x4cccee['push'](_0x4cccee['shift']());}catch(_0x440a0d){_0x4cccee['push'](_0x4cccee['shift']());}}}(a16_0x5640,0xc7c37));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x2a9fe2(0x9d)]='pre-check',exports[a16_0x2a9fe2(0xa2)]=a16_0x2a9fe2(0x8d),exports[a16_0x2a9fe2(0x9c)]=function(_0x483239){const _0x186140=a16_0x2a9fe2,_0x5a6e98={};_0x5a6e98[_0x186140(0x8f)]=_0x186140(0x90),_0x5a6e98['FayZh']=_0x186140(0x95);const _0x3223a9=_0x5a6e98;return _0x483239[_0x186140(0x93)](HELP_HEADER_MESSAGE[_0x186140(0x94)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x186140(0xa0)](_0x3223a9[_0x186140(0x8f)])[_0x186140(0x98)]()[_0x186140(0x8e)]()['strict']()[_0x186140(0x95)](_0x3223a9[_0x186140(0x97)]);},exports['handler']=function(_0x1eaf2b){};
1
+ function a16_0x1d62(){const _0x333c93=['2UMhxTN','usage','commandDir','strict','UppvH','help','command','builder','2724831GGJwYg','6755888kryVFP','599540BxJCzy','3335hvGTIl','epilogue','634030YvFofF','pre-check','../config/constants','497903ugaQyU','demandCommand','12BiuwFF','handler','afNXA','1953495aIatby','8328iWPYHG'];a16_0x1d62=function(){return _0x333c93;};return a16_0x1d62();}const a16_0x6f9d14=a16_0x139c;(function(_0x8be500,_0x1d0133){const _0x1fbb46=a16_0x139c,_0x9c11b6=_0x8be500();while(!![]){try{const _0x30fa5b=-parseInt(_0x1fbb46(0x1c1))/0x1+parseInt(_0x1fbb46(0x1b4))/0x2*(parseInt(_0x1fbb46(0x1bc))/0x3)+-parseInt(_0x1fbb46(0x1b3))/0x4*(-parseInt(_0x1fbb46(0x1bf))/0x5)+-parseInt(_0x1fbb46(0x1c6))/0x6*(parseInt(_0x1fbb46(0x1c4))/0x7)+-parseInt(_0x1fbb46(0x1bd))/0x8+parseInt(_0x1fbb46(0x1b2))/0x9+parseInt(_0x1fbb46(0x1be))/0xa;if(_0x30fa5b===_0x1d0133)break;else _0x9c11b6['push'](_0x9c11b6['shift']());}catch(_0x5a7268){_0x9c11b6['push'](_0x9c11b6['shift']());}}}(a16_0x1d62,0xe8b76));function a16_0x139c(_0x535914,_0x58915f){const _0x1d628a=a16_0x1d62();return a16_0x139c=function(_0x139c47,_0x2d82d6){_0x139c47=_0x139c47-0x1b2;let _0x364db4=_0x1d628a[_0x139c47];return _0x364db4;},a16_0x139c(_0x535914,_0x58915f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x6f9d14(0x1c3));exports[a16_0x6f9d14(0x1ba)]=a16_0x6f9d14(0x1c2),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x6f9d14(0x1bb)]=function(_0x133615){const _0x2bf556=a16_0x6f9d14,_0x5a209f={};_0x5a209f[_0x2bf556(0x1c8)]='precheck_commands',_0x5a209f[_0x2bf556(0x1b8)]=_0x2bf556(0x1b9);const _0x5562a0=_0x5a209f;return _0x133615[_0x2bf556(0x1b5)](HELP_HEADER_MESSAGE['pre_check'])[_0x2bf556(0x1c0)](HELP_FOOTER_MESSAGE)[_0x2bf556(0x1b6)](_0x5562a0[_0x2bf556(0x1c8)])[_0x2bf556(0x1c5)]()['recommendCommands']()[_0x2bf556(0x1b7)]()[_0x2bf556(0x1b9)](_0x5562a0[_0x2bf556(0x1b8)]);},exports[a16_0x6f9d14(0x1c7)]=function(_0x2b4b6d){};
@@ -1 +1 @@
1
- const a17_0x5305a1=a17_0x52d5;(function(_0x2f6b1d,_0x155e61){const _0x5f33d4=a17_0x52d5,_0x23d170=_0x2f6b1d();while(!![]){try{const _0x6ae63d=parseInt(_0x5f33d4(0x132))/0x1*(-parseInt(_0x5f33d4(0x10c))/0x2)+-parseInt(_0x5f33d4(0x118))/0x3+-parseInt(_0x5f33d4(0x164))/0x4*(-parseInt(_0x5f33d4(0x15e))/0x5)+parseInt(_0x5f33d4(0xdc))/0x6+parseInt(_0x5f33d4(0xfb))/0x7+-parseInt(_0x5f33d4(0x112))/0x8+-parseInt(_0x5f33d4(0x18a))/0x9;if(_0x6ae63d===_0x155e61)break;else _0x23d170['push'](_0x23d170['shift']());}catch(_0x4b99b8){_0x23d170['push'](_0x23d170['shift']());}}}(a17_0x357a,0xa3ce6));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5305a1(0x191)),{v4:uuidv4}=require(a17_0x5305a1(0xf7)),ReconnectingWebSocket=require(a17_0x5305a1(0xe0)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x5305a1(0x11d)),{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_0x5305a1(0x175)),{getCloudProviderObjectWithOutInit}=require(a17_0x5305a1(0x176)),webSocketUtils=require(a17_0x5305a1(0x16b)),{sendInstrumentationEvent}=require(a17_0x5305a1(0x12e));exports['command']='grid',exports[a17_0x5305a1(0xc4)]=a17_0x5305a1(0x14e),exports[a17_0x5305a1(0xfa)]=function(_0x532395){const _0x51e34b=a17_0x5305a1,_0x1a4613={};_0x1a4613[_0x51e34b(0x114)]=_0x51e34b(0x134),_0x1a4613[_0x51e34b(0x151)]=_0x51e34b(0xd8),_0x1a4613[_0x51e34b(0x136)]=_0x51e34b(0x171),_0x1a4613[_0x51e34b(0xd1)]=_0x51e34b(0xc9),_0x1a4613[_0x51e34b(0xf9)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x1a4613[_0x51e34b(0xbf)]='help';const _0x3c27d4=_0x1a4613,_0xbb59f9={};_0xbb59f9['description']=_0x3c27d4[_0x51e34b(0x114)],_0xbb59f9['type']=_0x3c27d4['BtBhw'];const _0xf359d2={};_0xf359d2['description']=_0x3c27d4['lLwkU'],_0xf359d2[_0x51e34b(0x179)]=_0x3c27d4[_0x51e34b(0x151)];const _0x32ea7b={};_0x32ea7b[_0x51e34b(0xcf)]=_0x3c27d4[_0x51e34b(0xd1)],_0x32ea7b[_0x51e34b(0x179)]=_0x3c27d4[_0x51e34b(0x151)];const _0x4a249e={};_0x4a249e[_0x51e34b(0xcf)]=_0x3c27d4[_0x51e34b(0xf9)],_0x4a249e['type']=_0x3c27d4[_0x51e34b(0x151)];const _0x262021={};return _0x262021[_0x51e34b(0x110)]=_0xbb59f9,_0x262021[_0x51e34b(0x192)]=_0xf359d2,_0x262021[_0x51e34b(0x18c)]=_0x32ea7b,_0x262021[_0x51e34b(0x10b)]=_0x4a249e,_0x532395[_0x51e34b(0x160)](HELP_HEADER_MESSAGE['pre_check'])[_0x51e34b(0x185)](HELP_FOOTER_MESSAGE)['options'](_0x262021)[_0x51e34b(0x166)](_0x3c27d4[_0x51e34b(0xbf)])[_0x51e34b(0x128)];};async function inputValidation(_0x28cf4f,_0xdc9081){const _0x11092c=a17_0x5305a1,_0x498b22={'msBSg':function(_0x116119,_0x2a8032){return _0x116119+_0x2a8032;},'OdjWb':_0x11092c(0x13a),'ClPaB':'Failure','TyzLf':function(_0x55365b,_0xa67c39){return _0x55365b||_0xa67c39;},'McmaR':_0x11092c(0x1af),'GegDx':_0x11092c(0x17f),'qtMtN':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','sQWHc':'is\x20already\x20present','yTtiP':_0x11092c(0xc1),'GQVrn':_0x11092c(0x110),'PjkKW':'error','AnKJz':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','mREku':_0x11092c(0xd8),'luwNr':_0x11092c(0x171),'qwZpU':_0x11092c(0xc9),'IwzyZ':_0x11092c(0x152),'AXBnI':'help','uZMUL':_0x11092c(0x192),'pXVrg':function(_0x22ccf3,_0x1935f7){return _0x22ccf3===_0x1935f7;},'QudlY':_0x11092c(0x17a),'IKlsH':'tytyT','NWedb':function(_0x3aafef,_0x30ef3b){return _0x3aafef!==_0x30ef3b;},'AoWQY':'vOjlO','DlnRn':function(_0x546d4a,_0x12646f){return _0x546d4a!==_0x12646f;},'ENYCu':_0x11092c(0x1b0),'WxxoC':_0x11092c(0x104),'jfwEp':_0x11092c(0x103),'PiGZm':function(_0x2e37d2,_0x1708fc){return _0x2e37d2!==_0x1708fc;},'EQReT':_0x11092c(0x13d),'VBCcx':'LmcgV','Rgxrl':'region','KDguc':function(_0x2f54d3,_0x59366a){return _0x2f54d3>_0x59366a;},'QEdZS':_0x11092c(0x190),'AREQv':function(_0x2c5ae3,_0x35f7bc,_0x153609,_0x2ff755,_0x2526c9,_0xd7b13a,_0x1eb12b,_0x1d0adb){return _0x2c5ae3(_0x35f7bc,_0x153609,_0x2ff755,_0x2526c9,_0xd7b13a,_0x1eb12b,_0x1d0adb);},'oWMvv':'pre-check-grid-called','FdbCU':'pre-check-cluster-args-not-passed','aRwLK':'ZxQvQ','OUVMr':_0x11092c(0xe6),'QZfCA':_0x11092c(0xc8),'JrnSl':'GmhbX','naJoo':_0x11092c(0xba),'ijynZ':function(_0x2eff44,_0x359ecb){return _0x2eff44!==_0x359ecb;},'fOucu':_0x11092c(0x145),'tOrTl':_0x11092c(0x144),'UdbtE':_0x11092c(0xff),'xPZsl':function(_0x3b401f,_0x409233,_0x3a86c8){return _0x3b401f(_0x409233,_0x3a86c8);},'EcEhZ':function(_0x50e0ad,_0x421d2f,_0x44faa7,_0x5e8efa,_0x4955bc,_0x5241ed){return _0x50e0ad(_0x421d2f,_0x44faa7,_0x5e8efa,_0x4955bc,_0x5241ed);},'rIacv':_0x11092c(0xb6),'wSpXg':'grid-profile','LHNWX':function(_0x20ae14,_0x31396d){return _0x20ae14===_0x31396d;},'yafxa':function(_0x4746c3,_0xe82cde){return _0x4746c3===_0xe82cde;},'rJazu':_0x11092c(0x172),'KyEpU':function(_0x1c6d47,_0x19aebd){return _0x1c6d47(_0x19aebd);},'ZdEMB':function(_0xf3d8e8,_0x206a5e){return _0xf3d8e8===_0x206a5e;},'tHkrn':_0x11092c(0x178),'hOCJh':'tKxHK','ClAcW':_0x11092c(0xf1),'yvGjQ':_0x11092c(0x10a),'IyjqW':_0x11092c(0xbd),'ivRlh':_0x11092c(0xeb),'BZygx':function(_0xdeb7e4,_0x1dd25f){return _0xdeb7e4===_0x1dd25f;},'onjIA':_0x11092c(0xf2),'tlgGF':'PzeNA','JzXPL':function(_0x126c92,_0x38c4dc){return _0x126c92!==_0x38c4dc;},'jetmB':'XMIml','UEAXA':function(_0xb35be6,_0x5bcd7e,_0xeb212,_0x121ada,_0x1db4f2,_0x2eae5c,_0x189fa2,_0x1ab164){return _0xb35be6(_0x5bcd7e,_0xeb212,_0x121ada,_0x1db4f2,_0x2eae5c,_0x189fa2,_0x1ab164);}};let _0x9e07f;try{if(_0x498b22[_0x11092c(0x129)](_0x498b22[_0x11092c(0xb0)],_0x498b22[_0x11092c(0x1a6)]))_0x5df75d['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x2420ca[_0x11092c(0x148)]+'\x20'),_0x1a2ebf[_0x11092c(0x182)]=_0x519868[_0x11092c(0x148)];else{if(_0x28cf4f['clusterName']||_0x28cf4f[_0x11092c(0x182)]||_0x28cf4f[_0x11092c(0x18c)]){if(_0x498b22['NWedb'](_0x498b22['AoWQY'],_0x498b22[_0x11092c(0x12f)])){const {header:_0x160bd4,response:_0x4e3293}=_0x3929b0,{status:_0x1de0b7,data:_0x204f17,error:_0x31d26c}=_0x4e3293;_0x44ede5+=_0x160bd4+'\x20#'+_0x498b22[_0x11092c(0xe4)](_0x2b66ca,0x1)+'\x0a',_0x478bd5+=_0x11092c(0x15c)+(_0x1de0b7?_0x498b22[_0x11092c(0x198)]:_0x498b22['ClPaB'])+'\x0a',_0x335e82+=_0x11092c(0xaf)+_0x498b22[_0x11092c(0xf4)](_0x204f17,_0x498b22[_0x11092c(0x109)])+'\x0a',_0x31d26c&&(_0x57b7fa+=_0x498b22[_0x11092c(0x154)],_0x7ed8d4+=_0x11092c(0x17c)+(_0x31d26c[_0x11092c(0x102)]||_0x498b22['McmaR'])+'\x0a',_0x428203+=_0x11092c(0x16e)+(_0x31d26c[_0x11092c(0x1a3)]||_0x498b22[_0x11092c(0x109)])+'\x0a',_0xab4bc5+=_0x11092c(0xb7)+(_0x31d26c[_0x11092c(0xed)]||_0x498b22['McmaR'])+'\x0a'),_0x450638+='\x0a\x0a';}else{const _0x28ce96=[];!_0x28cf4f[_0x11092c(0xf0)]&&(_0x498b22[_0x11092c(0x187)](_0x498b22[_0x11092c(0x138)],_0x498b22[_0x11092c(0x113)])?_0x28ce96[_0x11092c(0xb4)](_0x498b22['GQVrn']):(_0x49095a[_0x11092c(0x177)](_0x498b22[_0x11092c(0x19b)]),_0x3a2da3[_0x11092c(0xce)](0x1)));;!_0x28cf4f[_0x11092c(0x182)]&&(_0x498b22[_0x11092c(0xb3)](_0x498b22[_0x11092c(0x186)],_0x498b22[_0x11092c(0x186)])?_0x380e3e=_0x1d9e28:_0x28ce96['push'](_0x498b22['uZMUL']));;!_0x28cf4f[_0x11092c(0x18c)]&&(_0x498b22[_0x11092c(0x169)](_0x498b22['EQReT'],_0x498b22[_0x11092c(0xe8)])?_0x28ce96[_0x11092c(0xb4)](_0x498b22['Rgxrl']):_0x2275c8+=_0x11092c(0xcd)+_0x12d39d[_0x11092c(0xf0)]+_0x11092c(0x11f));;_0x498b22['KDguc'](_0x28ce96[_0x11092c(0x180)],0x0)&&(_0x498b22[_0x11092c(0xb3)](_0x498b22[_0x11092c(0xde)],_0x498b22[_0x11092c(0xde)])?_0x2897a0+=_0x11092c(0xcd)+_0x2b6c8c[_0x11092c(0xf0)]+'\x20'+(_0x46a65f?_0x498b22['sQWHc']:_0x498b22[_0x11092c(0x12d)])+'\x0a\x0a':(_0x9e07f=_0x11092c(0x122)+_0x28ce96[_0x11092c(0x1a4)](',\x20')+_0x11092c(0xd7),await _0x498b22['AREQv'](reportToGalactusAndSendToEDS,_0x28cf4f,_0xdc9081,_0x9e07f,messageTypes[_0x11092c(0x105)],_0x498b22[_0x11092c(0x170)],_0x498b22[_0x11092c(0x12a)],_0x498b22[_0x11092c(0x168)]),logger[_0x11092c(0x177)](_0x9e07f),process[_0x11092c(0xce)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x11092c(0xb2)](_0x28cf4f[_0x11092c(0x182)]['toLowerCase']())&&(_0x498b22[_0x11092c(0x169)](_0x498b22['aRwLK'],_0x498b22['aRwLK'])?(_0x3e4760[_0x11092c(0xdf)]('['+_0x422367+_0x11092c(0xfe)+_0x13dce1[_0x11092c(0x18d)]+_0x11092c(0x15b)+_0x40b474[_0x11092c(0x19d)]+_0x11092c(0x116)+_0x35fae5[_0x11092c(0x177)]),_0x2fb5d5[_0x11092c(0x177)]&&_0xf67163[_0x11092c(0x177)](_0x11092c(0x1aa)+_0x55f2cf[_0x11092c(0x177)]['stack'])):(_0x9e07f=_0x498b22[_0x11092c(0x140)],await _0x498b22[_0x11092c(0x1a5)](reportToGalactusAndSendToEDS,_0x28cf4f,_0xdc9081,_0x9e07f,messageTypes[_0x11092c(0x105)],_0x498b22['oWMvv'],_0x498b22[_0x11092c(0x111)],_0x498b22[_0x11092c(0x168)]),logger[_0x11092c(0x177)](_0x9e07f),!_0x28cf4f['cloudProvider']&&(_0x498b22[_0x11092c(0xb3)](_0x498b22['JrnSl'],_0x498b22[_0x11092c(0x150)])?(logger[_0x11092c(0xdf)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x11092c(0x148)]+'\x20'),_0x28cf4f[_0x11092c(0x182)]=DEFAULT_CLUSTER_DETAILS[_0x11092c(0x148)]):_0x3cf4e6[_0x11092c(0x177)]('error\x20stack\x20:\x20'+_0x5cb924[_0x11092c(0x177)][_0x11092c(0xed)])))),global_registry[_0x11092c(0xf0)]=_0x28cf4f[_0x11092c(0xf0)],global_registry[_0x11092c(0x182)]=_0x28cf4f[_0x11092c(0x182)],global_registry[_0x11092c(0x149)]=_0x28cf4f[_0x11092c(0x18c)];}}else{if(_0x28cf4f['gridProfile']){if(_0x498b22[_0x11092c(0xfc)](_0x498b22[_0x11092c(0x163)],_0x498b22[_0x11092c(0x15d)])){global_registry[_0x11092c(0x174)]=_0x28cf4f[_0x11092c(0x174)],logger['debug'](_0x11092c(0x1ac)+_0x28cf4f[_0x11092c(0x174)]);const _0x5f19d7=_0x11092c(0x133)+AG_API_URL+_0x11092c(0xb8),_0x4af4b7={};_0x4af4b7['method']=_0x498b22[_0x11092c(0x188)],_0x4af4b7[_0x11092c(0xcb)]=global_registry[_0x11092c(0x11b)],_0x4af4b7[_0x11092c(0x153)]=![];const _0x2fa0c7=_0x4af4b7,_0x5d6a7c=await _0x498b22[_0x11092c(0x159)](got,_0x5f19d7,_0x2fa0c7),_0x3b188c=await _0x498b22[_0x11092c(0x194)](responseValidation,_0x5d6a7c,_0x498b22[_0x11092c(0x181)],_0x498b22[_0x11092c(0x18b)],_0x28cf4f,_0xdc9081);let _0x2f40cd={};if(_0x498b22[_0x11092c(0x123)](_0x3b188c,0xc8)){if(_0x498b22[_0x11092c(0x19a)](_0x498b22[_0x11092c(0x161)],_0x498b22[_0x11092c(0x161)])){const _0x57ce05=JSON[_0x11092c(0xc0)](_0x5d6a7c[_0x11092c(0x107)]),_0x4ea4a3=_0x57ce05[_0x11092c(0x100)](_0x516d9e=>_0x516d9e['name']===_0x28cf4f['gridProfile'])||null;_0x498b22[_0x11092c(0x184)](isUndefined,_0x4ea4a3)?_0x498b22[_0x11092c(0x1a2)](_0x498b22['tHkrn'],_0x498b22[_0x11092c(0x1a7)])?_0xdd30c9['push'](_0x498b22[_0x11092c(0x127)]):(_0x9e07f=_0x11092c(0x120)+_0x28cf4f[_0x11092c(0x174)]+_0x11092c(0xf5),await _0x498b22[_0x11092c(0x1a5)](reportToGalactusAndSendToEDS,_0x28cf4f,_0xdc9081,_0x9e07f,messageTypes['ERROR'],_0x498b22[_0x11092c(0x170)],_0x498b22[_0x11092c(0x126)],_0x498b22[_0x11092c(0x168)]),logger[_0x11092c(0x177)](_0x9e07f),process[_0x11092c(0xce)](0x1)):_0x498b22[_0x11092c(0x123)](_0x498b22[_0x11092c(0x142)],_0x498b22[_0x11092c(0x142)])?_0x2f40cd=_0x4ea4a3:(_0x53438c+=_0x498b22[_0x11092c(0x154)],_0x253884+=_0x11092c(0x17c)+(_0x51df85[_0x11092c(0x102)]||_0x498b22[_0x11092c(0x109)])+'\x0a',_0x452b57+=_0x11092c(0x16e)+(_0xf3cf88['code']||_0x498b22[_0x11092c(0x109)])+'\x0a',_0x25d60d+=_0x11092c(0xb7)+(_0x32c2e6[_0x11092c(0xed)]||_0x498b22['McmaR'])+'\x0a');}else _0x116f81[_0x11092c(0xdf)]('Cluster\x20`'+_0x1f41ff['clusterName']+_0x11092c(0x131));}else _0x498b22[_0x11092c(0x1a2)](_0x498b22[_0x11092c(0x10f)],_0x498b22[_0x11092c(0x10f)])?process[_0x11092c(0xce)](0x1):_0x2f0e44[_0x11092c(0xce)](0x1);const _0x5b729a={};_0x5b729a[_0x11092c(0x179)]=WS_EVENTS[_0x11092c(0x146)],_0x5b729a[_0x11092c(0x102)]=_0x498b22['ivRlh'],webSocketUtils[_0x11092c(0x12c)](_0xdc9081,_0x5b729a),global_registry[_0x11092c(0x182)]=_0x2f40cd[_0x11092c(0x182)],global_registry[_0x11092c(0x149)]=_0x2f40cd[_0x11092c(0x18c)],global_registry[_0x11092c(0xf0)]=_0x2f40cd['clusterName'];}else{const _0x15f84d={};_0x15f84d['type']=_0x2ed042[_0x11092c(0x146)],_0x15f84d[_0x11092c(0x102)]=_0x409aa1,_0x57e58c[_0x11092c(0x12c)](_0x55a475,_0x15f84d,_0x498b22['PjkKW'],!![]);}}else{if(_0x498b22[_0x11092c(0xf8)](_0x498b22[_0x11092c(0x193)],_0x498b22[_0x11092c(0x19e)])){const _0x2759f1={};_0x2759f1['description']=_0x498b22[_0x11092c(0xb1)],_0x2759f1[_0x11092c(0x179)]=_0x498b22[_0x11092c(0x173)];const _0x2137b9={};_0x2137b9['description']=_0x498b22['luwNr'],_0x2137b9[_0x11092c(0x179)]=_0x498b22[_0x11092c(0x173)];const _0x5c8e1a={};_0x5c8e1a[_0x11092c(0xcf)]=_0x498b22[_0x11092c(0x162)],_0x5c8e1a[_0x11092c(0x179)]=_0x498b22[_0x11092c(0x173)];const _0x27fe6a={};_0x27fe6a['description']=_0x498b22[_0x11092c(0x14a)],_0x27fe6a['type']=_0x498b22['mREku'];const _0xadfa35={};return _0xadfa35[_0x11092c(0x110)]=_0x2759f1,_0xadfa35[_0x11092c(0x192)]=_0x2137b9,_0xadfa35['region']=_0x5c8e1a,_0xadfa35[_0x11092c(0x10b)]=_0x27fe6a,_0x36e8a3[_0x11092c(0x160)](_0x3570ee[_0x11092c(0xf6)])[_0x11092c(0x185)](_0x58e3e4)[_0x11092c(0xd2)](_0xadfa35)['help'](_0x498b22[_0x11092c(0x195)])[_0x11092c(0x128)];}else logger['error'](_0x498b22['qtMtN']),process[_0x11092c(0xce)](0x1);}}}}catch(_0x20164d){_0x498b22[_0x11092c(0x16a)](_0x498b22[_0x11092c(0x10e)],_0x498b22[_0x11092c(0x10e)])?_0x40bcbc[_0x11092c(0xb4)](_0x498b22[_0x11092c(0xda)]):(_0x9e07f=_0x11092c(0x14d)+_0x20164d+':\x20'+_0x20164d[_0x11092c(0xed)],logger[_0x11092c(0x177)](_0x9e07f),await _0x498b22[_0x11092c(0x115)](reportToGalactusAndSendToEDS,_0x28cf4f,_0xdc9081,_0x9e07f,messageTypes[_0x11092c(0x105)],_0x498b22['oWMvv'],_0x498b22[_0x11092c(0x111)],_0x498b22[_0x11092c(0x168)]),process[_0x11092c(0xce)](0x1));}}function printResponse(_0xb64944,_0x309498){const _0x31ff57=a17_0x5305a1,_0x3b3533={};_0x3b3533[_0x31ff57(0x143)]=_0x31ff57(0x18c),_0x3b3533[_0x31ff57(0x17d)]=function(_0x49ac21,_0x1507d6){return _0x49ac21===_0x1507d6;},_0x3b3533[_0x31ff57(0x197)]=_0x31ff57(0xd5),_0x3b3533[_0x31ff57(0x121)]=_0x31ff57(0x119);const _0x5065e3=_0x3b3533;logger[_0x31ff57(0xdf)]('['+_0xb64944+_0x31ff57(0xfe)+_0x309498[_0x31ff57(0x18d)]+'\x20data\x20:\x20'+_0x309498['data']+_0x31ff57(0x116)+_0x309498[_0x31ff57(0x177)]),_0x309498[_0x31ff57(0x177)]&&(_0x5065e3[_0x31ff57(0x17d)](_0x5065e3[_0x31ff57(0x197)],_0x5065e3[_0x31ff57(0x121)])?_0x1c804f[_0x31ff57(0xb4)](_0x5065e3[_0x31ff57(0x143)]):logger[_0x31ff57(0x177)](_0x31ff57(0x1aa)+_0x309498[_0x31ff57(0x177)][_0x31ff57(0xed)]));}function a17_0x357a(){const _0x4e87ab=['McmaR','hBhyB','grid-profile','796zMwGly','pre-check-failed','jetmB','IyjqW','cluster-name','QZfCA','105576UMjnyW','WxxoC','MOiKL','UEAXA','\x20error\x20:\x20','accessResp','3775671pEaSux','RFdPX','existsSync','authHeader','Whitelisted\x20browserstack','../../utils/utilityMethods','\x20===\x0a\x0a','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Invalid\x20input.\x20grid\x20profiles:\x20','iHswD','Missing\x20required\x20arguments:\x20','LHNWX','wYeLt','wYudY','ClAcW','GQVrn','argv','pXVrg','FdbCU','GtbwB','sendEventToBackend','yTtiP','../../utils/instrumentationUtils','AoWQY','<PasswordPlaceholder>','`\x20already\x20exists','851fotXly','https://','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','init','lLwkU','QXDHr','ENYCu','cluster-check-failed-','Success','username','===\x20Precheck\x20Report\x20-\x20','ysalO','BdioQ','wHuQk','OUVMr','xKIEK','yvGjQ','OZrAK','uApuu','aCuCb','LOG','utf-8','CLOUD_PROVIDER','clusterRegion','IwzyZ','XNSNx','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','stringify','naJoo','BtBhw','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','throwHttpErrors','GegDx','isClusterPresent','SSL\x20Configured','zPZSB','connectionTimeout','xPZsl','bstackAccesskey','\x20data\x20:\x20','Status:\x20','tOrTl','4646225crbnaa','split','usage','rJazu','qwZpU','fOucu','4KjRQNj','kWQah','help','GCuBR','PjkKW','PiGZm','JzXPL','../../utils/webSocketUtils','response','getUTCMinutes','\x20\x20Code:\x20','skVsu','oWMvv','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','wIAiv','mREku','gridProfile','../../config/constants','../../cloudproviders/utils','error','GhErg','type','faHav','User\x20Access','\x20\x20Message:\x20','KJPgL','PibxU','Error\x20Details:\x0a','length','rIacv','cloudProvider','tKsXp','KyEpU','epilogue','jfwEp','DlnRn','UdbtE','Browserstack','4190184YZqRNN','wSpXg','region','status','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','log/report_','GqAzv','got','cloud-provider','onjIA','EcEhZ','AXBnI','NAhpV','NDpBi','OdjWb','getUTCHours','yafxa','qtMtN','vnHWG','data','tlgGF','QblUc','pre-check-grid-called','requestId','ZdEMB','code','join','AREQv','IKlsH','hOCJh','YMSWz','szyzY','error\x20stack\x20:\x20','getUTCFullYear','grid\x20profile\x20flow\x20','PDwVF','TKQqv','N/A','fnlbT','Message:\x20','QudlY','AnKJz','includes','NWedb','push','Oxyvm','pre-check','\x20\x20Stack:\x20','/packages/cli/get-all-grid-profiles','JFVKq','ruPpS','debug','password','JFTbM','stack\x20trace\x20','aAtbv','parse','will\x20be\x20created','tVRPV','readFileSync','desc','Ahpsd','INFO','Cluster\x20`','cloud-provider-not-supported','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','bstackUsername','headers','WebSocket','Cluster\x20','exit','description','sfziY','ikpdK','options','IVJgp','xnotg','vWAme','replace','.\x20Please\x20provide\x20all\x20required\x20arguments.','string','isTrialGridAccessible','uZMUL','rWxVb','2932188YlckhU','EzNvK','QEdZS','info','reconnecting-websocket','getUTCDate','.txt','grPRn','msBSg','writeFileSync','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','DRFPF','VBCcx','pskoY','asual','Grid\x20profile\x20fetched\x20for\x20pre-check','forEach','stack','jkCoU','getUTCMonth','clusterName','pre-check-grid-profile-empty','wvRqN','yIPwi','TyzLf','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','pre_check','uuid','BZygx','igcDH','builder','9303245eeSFzJ','ijynZ','<UsernamePlaceholder>',']\x20status\x20:\x20','GET','find','ThGTR','message','YOwhg','ElKZm','ERROR','header','body','Cluster\x20details\x0a-----------------------\x0a'];a17_0x357a=function(){return _0x4e87ab;};return a17_0x357a();}async function generateReport(_0x27a021,_0x1409fa){const _0x278232=a17_0x5305a1,_0x1d246b={'asual':function(_0x47fd84,_0x2cbb63){return _0x47fd84+_0x2cbb63;},'rWxVb':_0x278232(0x13a),'Oxyvm':'Failure','ThGTR':function(_0x16f4f4,_0x56d2eb){return _0x16f4f4||_0x56d2eb;},'TKQqv':_0x278232(0x1af),'szyzY':_0x278232(0x17f),'xKIEK':_0x278232(0x108),'wHuQk':function(_0x4f00ab,_0x1ec944){return _0x4f00ab!=_0x1ec944;},'JFVKq':'is\x20already\x20present','sfziY':_0x278232(0xc1),'wYudY':function(_0x510d02){return _0x510d02();}};let _0xfded2=_0x278232(0x13c)+global_registry[_0x278232(0x182)]+_0x278232(0x11e);return _0x27a021[_0x278232(0xec)]((_0x59aeb5,_0x1c5f32)=>{const _0x315644=_0x278232,{header:_0x26e0c5,response:_0x59b898}=_0x59aeb5,{status:_0x562668,data:_0x15afd2,error:_0x2fb326}=_0x59b898;_0xfded2+=_0x26e0c5+'\x20#'+_0x1d246b[_0x315644(0xea)](_0x1c5f32,0x1)+'\x0a',_0xfded2+=_0x315644(0x15c)+(_0x562668?_0x1d246b[_0x315644(0xdb)]:_0x1d246b[_0x315644(0xb5)])+'\x0a',_0xfded2+=_0x315644(0xaf)+_0x1d246b[_0x315644(0x101)](_0x15afd2,_0x1d246b['TKQqv'])+'\x0a',_0x2fb326&&(_0xfded2+=_0x1d246b[_0x315644(0x1a9)],_0xfded2+=_0x315644(0x17c)+(_0x2fb326['message']||_0x1d246b[_0x315644(0x1ae)])+'\x0a',_0xfded2+=_0x315644(0x16e)+(_0x2fb326[_0x315644(0x1a3)]||_0x1d246b['TKQqv'])+'\x0a',_0xfded2+=_0x315644(0xb7)+(_0x2fb326[_0x315644(0xed)]||_0x1d246b[_0x315644(0x1ae)])+'\x0a'),_0xfded2+='\x0a\x0a';}),_0xfded2+=_0x1d246b[_0x278232(0x141)],_0x1d246b[_0x278232(0x13f)](_0x1409fa,null)?_0xfded2+=_0x278232(0xcd)+global_registry[_0x278232(0xf0)]+'\x20'+(_0x1409fa?_0x1d246b[_0x278232(0xb9)]:_0x1d246b[_0x278232(0xd0)])+'\x0a\x0a':_0xfded2+=_0x278232(0xcd)+global_registry[_0x278232(0xf0)]+_0x278232(0x11f),_0xfded2+=_0x1d246b[_0x278232(0x125)](getSystemMetaData),_0xfded2;}function a17_0x52d5(_0x4b5f63,_0x15d535){const _0x357a6d=a17_0x357a();return a17_0x52d5=function(_0x52d5dd,_0x5e7c9b){_0x52d5dd=_0x52d5dd-0xaf;let _0x5a43c7=_0x357a6d[_0x52d5dd];return _0x5a43c7;},a17_0x52d5(_0x4b5f63,_0x15d535);};exports['handler']=async function(_0x1d810e){const _0x5e56ca=a17_0x5305a1,_0x24a30e={'vnHWG':function(_0xb7eecb){return _0xb7eecb();},'yegpb':_0x5e56ca(0x18e),'tVRPV':function(_0x16eb20,_0xfd6e7,_0x313714,_0x4980ff,_0xe3c4,_0x3d89db,_0x32ed9c,_0x57909c){return _0x16eb20(_0xfd6e7,_0x313714,_0x4980ff,_0xe3c4,_0x3d89db,_0x32ed9c,_0x57909c);},'YMSWz':_0x5e56ca(0x1a0),'IVJgp':'credential-not-found','GCuBR':'error','GtbwB':function(_0x49c8c1,_0x34d3c6,_0x2a512f,_0x5249d3,_0x1cd30a,_0x2e42da,_0x2cb587){return _0x49c8c1(_0x34d3c6,_0x2a512f,_0x5249d3,_0x1cd30a,_0x2e42da,_0x2cb587);},'wYeLt':function(_0x4f50f9){return _0x4f50f9();},'BdioQ':_0x5e56ca(0xfd),'NAhpV':_0x5e56ca(0x130),'tKsXp':function(_0xd8b515,_0xd61873,_0x24c86f){return _0xd8b515(_0xd61873,_0x24c86f);},'skVsu':function(_0x530278,_0x5cfc8c,_0x5bff33,_0x599f00,_0x2a5a9a,_0xb50422,_0x38d260){return _0x530278(_0x5cfc8c,_0x5bff33,_0x599f00,_0x2a5a9a,_0xb50422,_0x38d260);},'QXDHr':'dummy-grid','uTllU':'toolInstalledResp','PDwVF':'0|4|3|1|2','XNSNx':_0x5e56ca(0x117),'KCaNF':function(_0x5c8d04){return _0x5c8d04();},'PibxU':_0x5e56ca(0xd9),'Ahpsd':function(_0x4cf22b,_0x37246d){return _0x4cf22b(_0x37246d);},'thwkm':'TLSv1_2_client_method','QblUc':function(_0x1f016c,_0x593ab2,_0x57a2c4){return _0x1f016c(_0x593ab2,_0x57a2c4);},'jkCoU':'isTls1_2_SUPPORTED','pskoY':'Tool\x20Installed','xnotg':_0x5e56ca(0x17b),'kWQah':_0x5e56ca(0x11c),'LVmMd':_0x5e56ca(0x156),'EzNvK':function(_0x3fe1d4,_0x169726,_0x573217){return _0x3fe1d4(_0x169726,_0x573217);},'yIPwi':function(_0x1a77f5,_0x2f77fb){return _0x1a77f5+_0x2f77fb;},'zPZSB':_0x5e56ca(0x147),'grPRn':function(_0x256bd3,_0x19c38b,_0x198123,_0x38932e,_0x5060dc,_0x245b63,_0x110fed){return _0x256bd3(_0x19c38b,_0x198123,_0x38932e,_0x5060dc,_0x245b63,_0x110fed);},'DRFPF':_0x5e56ca(0x10d)};let _0x1bbc7b,_0x48ab9c;try{global_registry[_0x5e56ca(0x1a1)]=_0x24a30e[_0x5e56ca(0x19c)](uuidv4);!fs[_0x5e56ca(0x11a)](_0x24a30e[_0x5e56ca(0x19c)](getCredentialsPath))&&(_0x48ab9c=_0x24a30e['yegpb'],logger[_0x5e56ca(0x177)](_0x48ab9c),await _0x24a30e[_0x5e56ca(0xc2)](reportToGalactusAndSendToEDS,_0x1d810e,_0x1bbc7b,_0x48ab9c,messageTypes[_0x5e56ca(0x105)],_0x24a30e[_0x5e56ca(0x1a8)],_0x24a30e[_0x5e56ca(0xd3)],_0x24a30e[_0x5e56ca(0x167)]),process[_0x5e56ca(0xce)](0x1));_0x24a30e[_0x5e56ca(0x12b)](sendInstrumentationEvent,_0x1d810e,_0x24a30e[_0x5e56ca(0x1a8)],messageTypes[_0x5e56ca(0xc6)],null,null,_0x1d810e);const _0x5f118a=JSON[_0x5e56ca(0xc0)](fs[_0x5e56ca(0xc3)](_0x24a30e[_0x5e56ca(0x124)](getCredentialsPath)));global_registry[_0x5e56ca(0xca)]=_0x5f118a[_0x5e56ca(0x189)][_0x5e56ca(0x13b)],global_registry[_0x5e56ca(0x15a)]=_0x5f118a[_0x5e56ca(0x189)][_0x5e56ca(0xbc)];const _0x3bf53f=WS_ENDPOINT[_0x5e56ca(0xd6)](_0x24a30e[_0x5e56ca(0x13e)],_0x5f118a[_0x5e56ca(0x189)][_0x5e56ca(0x13b)])[_0x5e56ca(0xd6)](_0x24a30e[_0x5e56ca(0x196)],_0x5f118a[_0x5e56ca(0x189)]['password']),_0x32346b={};_0x32346b[_0x5e56ca(0xcc)]=ws,_0x32346b[_0x5e56ca(0x158)]=0x36ee80,_0x1bbc7b=new ReconnectingWebSocket(_0x3bf53f,[],_0x32346b),global_registry[_0x5e56ca(0x11b)]=_0x24a30e['tKsXp'](getAuthHeader,global_registry[_0x5e56ca(0xca)],global_registry[_0x5e56ca(0x15a)]),await _0x24a30e[_0x5e56ca(0x183)](inputValidation,_0x1d810e,_0x1bbc7b),logger[_0x5e56ca(0xdf)](_0x5e56ca(0x14c)+global_registry[_0x5e56ca(0x182)]+'\x20region\x20-\x20'+global_registry[_0x5e56ca(0x149)]);let _0x361049=await _0x24a30e[_0x5e56ca(0x16f)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x5e56ca(0xf0)],_0x24a30e[_0x5e56ca(0x137)],_0x1bbc7b,webSocketUtils,_0x1d810e);const _0x60ac77=await _0x361049['isCliToolInstalled']();_0x24a30e[_0x5e56ca(0x183)](printResponse,_0x24a30e['uTllU'],_0x60ac77),_0x361049=await _0x361049[_0x5e56ca(0x135)]();let _0x32ec6b=![];try{_0x32ec6b=await _0x361049[_0x5e56ca(0x155)]();}catch(_0x3a475a){const _0x5517e0=_0x24a30e[_0x5e56ca(0x1ad)][_0x5e56ca(0x15f)]('|');let _0x13b484=0x0;while(!![]){switch(_0x5517e0[_0x13b484++]){case'0':_0x48ab9c='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x5e56ca(0xf0)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x5e56ca(0x149)]+'`\x20,error\x20:\x20'+_0x3a475a;continue;case'1':_0x48ab9c+='\x0a'+JSON[_0x5e56ca(0x14f)](_0x3a475a[_0x5e56ca(0xed)]);continue;case'2':await _0x24a30e[_0x5e56ca(0xc2)](reportToGalactusAndSendToEDS,_0x1d810e,_0x1bbc7b,_0x48ab9c,messageTypes['ERROR'],_0x24a30e[_0x5e56ca(0x1a8)],_0x5e56ca(0x139)+global_registry['cloudProvider'],_0x24a30e[_0x5e56ca(0x167)]);continue;case'3':logger['error'](_0x48ab9c);continue;case'4':_0x32ec6b=null;continue;}break;}}_0x32ec6b&&logger[_0x5e56ca(0xdf)](_0x5e56ca(0xc7)+global_registry['clusterName']+_0x5e56ca(0x131));const _0x59b5bd=await _0x361049['checkAccess']();_0x24a30e['tKsXp'](printResponse,_0x24a30e[_0x5e56ca(0x14b)],_0x59b5bd);const _0x2363ad=await _0x24a30e['KCaNF'](curlRequest);_0x24a30e[_0x5e56ca(0x183)](printResponse,_0x24a30e[_0x5e56ca(0x17e)],_0x2363ad);const _0x289b9e=await _0x24a30e[_0x5e56ca(0xc5)](isTlsSupported,_0x24a30e['thwkm']);_0x24a30e[_0x5e56ca(0x19f)](printResponse,_0x24a30e[_0x5e56ca(0xee)],_0x289b9e);const _0x57e7dd={};_0x57e7dd[_0x5e56ca(0x106)]=_0x24a30e[_0x5e56ca(0xe9)],_0x57e7dd[_0x5e56ca(0x16c)]=_0x60ac77;const _0x31a8c4={};_0x31a8c4['header']=_0x24a30e[_0x5e56ca(0xd4)],_0x31a8c4[_0x5e56ca(0x16c)]=_0x59b5bd;const _0x39ae7d={};_0x39ae7d[_0x5e56ca(0x106)]=_0x24a30e[_0x5e56ca(0x165)],_0x39ae7d[_0x5e56ca(0x16c)]=_0x2363ad;const _0x5ac330={};_0x5ac330[_0x5e56ca(0x106)]=_0x24a30e['LVmMd'],_0x5ac330[_0x5e56ca(0x16c)]=_0x289b9e;const _0x5b7ab0=[_0x57e7dd,_0x31a8c4,_0x39ae7d,_0x5ac330],_0x3486ef=await _0x24a30e[_0x5e56ca(0xdd)](generateReport,_0x5b7ab0,_0x32ec6b),_0x216d46=new Date(),_0x3ef09a=_0x216d46[_0x5e56ca(0x1ab)]()+'_'+_0x24a30e[_0x5e56ca(0xf3)](_0x216d46[_0x5e56ca(0xef)](),0x1)+'_'+_0x216d46[_0x5e56ca(0xe1)]()+'_'+_0x216d46[_0x5e56ca(0x199)]()+'_'+_0x216d46[_0x5e56ca(0x16d)](),_0x3e00b9=_0x5e56ca(0x18f)+_0x3ef09a+_0x5e56ca(0xe2);fs[_0x5e56ca(0xe5)](_0x3e00b9,_0x3486ef,_0x24a30e[_0x5e56ca(0x157)]),logger['info']('Report\x20saved\x20in\x20'+_0x3e00b9),process[_0x5e56ca(0xce)](0x0);}catch(_0x5db7d7){let _0x44eb88='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x5db7d7+'\x20';logger['error'](_0x44eb88),_0x44eb88+='\x0a'+JSON[_0x5e56ca(0x14f)](_0x5db7d7['stack']),logger[_0x5e56ca(0xbb)](_0x5e56ca(0xbe)+_0x5db7d7['stack']);if(_0x1bbc7b){const _0x84f78f={};_0x84f78f['type']=WS_EVENTS[_0x5e56ca(0x146)],_0x84f78f[_0x5e56ca(0x102)]=_0x44eb88,webSocketUtils[_0x5e56ca(0x12c)](_0x1bbc7b,_0x84f78f,_0x24a30e[_0x5e56ca(0x167)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x1834ca={};_0x1834ca[_0x5e56ca(0x177)]=_0x44eb88,await _0x24a30e[_0x5e56ca(0xe3)](sendInstrumentationEvent,_0x1d810e,_0x24a30e['YMSWz'],messageTypes[_0x5e56ca(0x105)],_0x24a30e[_0x5e56ca(0xe7)],_0x1834ca,_0x1d810e),process[_0x5e56ca(0xce)](0x1);}};
1
+ const a17_0x32a9be=a17_0x4b22;(function(_0x25cf3d,_0x3cc6ba){const _0x175bd5=a17_0x4b22,_0x1b065b=_0x25cf3d();while(!![]){try{const _0x10ee2a=parseInt(_0x175bd5(0x258))/0x1*(parseInt(_0x175bd5(0x214))/0x2)+parseInt(_0x175bd5(0x261))/0x3*(-parseInt(_0x175bd5(0x26b))/0x4)+-parseInt(_0x175bd5(0x1d8))/0x5+parseInt(_0x175bd5(0x20d))/0x6+-parseInt(_0x175bd5(0x220))/0x7*(-parseInt(_0x175bd5(0x22f))/0x8)+parseInt(_0x175bd5(0x1c4))/0x9+-parseInt(_0x175bd5(0x19e))/0xa;if(_0x10ee2a===_0x3cc6ba)break;else _0x1b065b['push'](_0x1b065b['shift']());}catch(_0x1eec80){_0x1b065b['push'](_0x1b065b['shift']());}}}(a17_0x54f4,0x29fa6));const fs=require('fs'),ws=require('ws'),got=require(a17_0x32a9be(0x1a1)),{v4:uuidv4}=require(a17_0x32a9be(0x29e)),ReconnectingWebSocket=require(a17_0x32a9be(0x226)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x32a9be(0x288)),{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_0x32a9be(0x263)),{getCloudProviderObjectWithOutInit}=require(a17_0x32a9be(0x224)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x32a9be(0x1b7));exports[a17_0x32a9be(0x22c)]=a17_0x32a9be(0x256),exports[a17_0x32a9be(0x299)]=a17_0x32a9be(0x1c7),exports[a17_0x32a9be(0x238)]=function(_0x3f222e){const _0x1d30cc=a17_0x32a9be,_0x205989={};_0x205989['conUo']=_0x1d30cc(0x1bb),_0x205989['WNRiu']=_0x1d30cc(0x1de),_0x205989[_0x1d30cc(0x1d7)]=_0x1d30cc(0x218),_0x205989[_0x1d30cc(0x1c3)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x205989[_0x1d30cc(0x1d3)]=_0x1d30cc(0x1ce),_0x205989[_0x1d30cc(0x1f0)]=_0x1d30cc(0x20b);const _0x28504e=_0x205989,_0x3e745d={};_0x3e745d[_0x1d30cc(0x1c6)]=_0x28504e[_0x1d30cc(0x286)],_0x3e745d[_0x1d30cc(0x1e5)]=_0x28504e[_0x1d30cc(0x1dd)];const _0x51883b={};_0x51883b[_0x1d30cc(0x1c6)]=_0x28504e['hiMNV'],_0x51883b[_0x1d30cc(0x1e5)]=_0x28504e[_0x1d30cc(0x1dd)];const _0x4306ba={};_0x4306ba[_0x1d30cc(0x1c6)]=_0x28504e[_0x1d30cc(0x1c3)],_0x4306ba['type']=_0x28504e[_0x1d30cc(0x1dd)];const _0x22872b={};_0x22872b['description']=_0x28504e[_0x1d30cc(0x1d3)],_0x22872b[_0x1d30cc(0x1e5)]=_0x28504e[_0x1d30cc(0x1dd)];const _0x42f2a3={};return _0x42f2a3[_0x1d30cc(0x22e)]=_0x3e745d,_0x42f2a3[_0x1d30cc(0x1d5)]=_0x51883b,_0x42f2a3['region']=_0x4306ba,_0x42f2a3[_0x1d30cc(0x29c)]=_0x22872b,_0x3f222e[_0x1d30cc(0x227)](HELP_HEADER_MESSAGE[_0x1d30cc(0x29b)])[_0x1d30cc(0x222)](HELP_FOOTER_MESSAGE)[_0x1d30cc(0x1a5)](_0x42f2a3)[_0x1d30cc(0x20b)](_0x28504e[_0x1d30cc(0x1f0)])[_0x1d30cc(0x1d4)];};async function inputValidation(_0x2a897d,_0x738c82){const _0x40f804=a17_0x32a9be,_0x8bf6a2={'JbjUA':_0x40f804(0x295),'lOQEb':'Error\x20Details:\x0a','gzTtr':_0x40f804(0x1be),'gCPwO':_0x40f804(0x1d5),'GuiyX':_0x40f804(0x22e),'BOaDk':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','BCVoR':_0x40f804(0x1bb),'ukylA':_0x40f804(0x1de),'TkVLH':_0x40f804(0x218),'dGJMw':_0x40f804(0x1f5),'Bykcm':_0x40f804(0x1ce),'HHfwu':_0x40f804(0x20b),'ZtmeO':_0x40f804(0x223),'PUqGt':_0x40f804(0x24b),'MZVbt':_0x40f804(0x1cd),'bHidr':function(_0x27e347,_0x1a5c8e){return _0x27e347===_0x1a5c8e;},'wNQJr':_0x40f804(0x247),'HePVL':'zlwUw','KptAx':function(_0x37d09b,_0xb154d3){return _0x37d09b!==_0xb154d3;},'jHuxw':_0x40f804(0x282),'CpgOx':_0x40f804(0x1ae),'yNroR':function(_0x6471a7,_0x5b71a2){return _0x6471a7===_0x5b71a2;},'DIeHA':'OgiTu','msUmD':_0x40f804(0x219),'aBSFu':_0x40f804(0x20e),'jQIUJ':function(_0x4769a8,_0x2e0720){return _0x4769a8===_0x2e0720;},'iWjMH':'aoSLz','ayjHD':function(_0x2cb8db,_0x5417d7){return _0x2cb8db>_0x5417d7;},'zbJfN':function(_0x1c9919,_0x27a2a3){return _0x1c9919===_0x27a2a3;},'CasqT':_0x40f804(0x215),'jlNrv':function(_0x5866e3,_0x3dd173,_0x4728c9,_0x5e59d2,_0x5c0828,_0x3188da,_0x1e8716,_0x1a8fd8){return _0x5866e3(_0x3dd173,_0x4728c9,_0x5e59d2,_0x5c0828,_0x3188da,_0x1e8716,_0x1a8fd8);},'xsoXI':_0x40f804(0x27d),'mHFCb':_0x40f804(0x26a),'VnqOZ':function(_0x51d4f2,_0x4d5c69){return _0x51d4f2===_0x4d5c69;},'JDOOe':_0x40f804(0x266),'kdxRV':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','LeTgm':function(_0x5da22c,_0x1bc00c,_0x2ef928,_0x246add,_0x2c6c24,_0x5970aa,_0x5c0d15,_0x39f859){return _0x5da22c(_0x1bc00c,_0x2ef928,_0x246add,_0x2c6c24,_0x5970aa,_0x5c0d15,_0x39f859);},'cvQcx':'cloud-provider-not-supported','GxyfE':function(_0x46f01f,_0x37ee60){return _0x46f01f!==_0x37ee60;},'lUuiG':_0x40f804(0x237),'SSiyz':function(_0x2b63b8,_0x3f67c6){return _0x2b63b8===_0x3f67c6;},'xfcGM':_0x40f804(0x250),'bGKvv':'UMKLI','NHTnq':_0x40f804(0x22d),'cSsRe':function(_0xf2e88b,_0x5b0fbe,_0x4df33a){return _0xf2e88b(_0x5b0fbe,_0x4df33a);},'wEYSd':function(_0x385f08,_0x51be24,_0x4f943a,_0x2832cc,_0x5c97fe,_0x45ef4a){return _0x385f08(_0x51be24,_0x4f943a,_0x2832cc,_0x5c97fe,_0x45ef4a);},'pVaCX':'pre-check','bQGbR':_0x40f804(0x29c),'KJYft':function(_0x50b7,_0x3126af){return _0x50b7===_0x3126af;},'rCSWS':_0x40f804(0x271),'wlUPF':_0x40f804(0x26c),'msSEt':function(_0x3a2fe1,_0x5a0557){return _0x3a2fe1(_0x5a0557);},'YoFrG':function(_0x1a420a,_0x112b23){return _0x1a420a!==_0x112b23;},'EpYZZ':'lufPp','YbgKN':function(_0x56583e,_0x92174e,_0x5e18a0,_0x3ab527,_0x3eeef5,_0x220000,_0x295613,_0x5bee32){return _0x56583e(_0x92174e,_0x5e18a0,_0x3ab527,_0x3eeef5,_0x220000,_0x295613,_0x5bee32);},'GNsXb':_0x40f804(0x28a),'hfqvq':_0x40f804(0x28d),'EDUKU':_0x40f804(0x1e9),'GaYml':_0x40f804(0x1cb),'WUVdc':_0x40f804(0x20f),'sfbMy':function(_0x5bd776,_0x1adf50){return _0x5bd776===_0x1adf50;},'SoMkz':'IPjZw','uMylX':_0x40f804(0x1b8),'CObIQ':_0x40f804(0x1ab)};let _0x42f671;try{if(_0x8bf6a2['bHidr'](_0x8bf6a2[_0x40f804(0x204)],_0x8bf6a2[_0x40f804(0x200)]))_0xad7610=_0x22931d;else{if(_0x2a897d[_0x40f804(0x1f2)]||_0x2a897d[_0x40f804(0x249)]||_0x2a897d[_0x40f804(0x1cd)]){if(_0x8bf6a2[_0x40f804(0x2a1)](_0x8bf6a2['jHuxw'],_0x8bf6a2[_0x40f804(0x1c1)])){const _0x301d0b=[];if(!_0x2a897d['clusterName']){if(_0x8bf6a2[_0x40f804(0x28e)](_0x8bf6a2[_0x40f804(0x24d)],_0x8bf6a2[_0x40f804(0x24d)]))_0x301d0b['push'](_0x8bf6a2[_0x40f804(0x212)]);else{const _0x362417={};_0x362417[_0x40f804(0x1e5)]=_0x4dc7e7[_0x40f804(0x294)],_0x362417[_0x40f804(0x284)]=_0x24990d,_0x4ff1d1[_0x40f804(0x297)](_0x347444,_0x362417,_0x8bf6a2['JbjUA'],!![]);}};!_0x2a897d[_0x40f804(0x249)]&&(_0x8bf6a2[_0x40f804(0x28e)](_0x8bf6a2['msUmD'],_0x8bf6a2[_0x40f804(0x19f)])?(_0x34d4c1+=_0x8bf6a2[_0x40f804(0x278)],_0x640751+='\x20\x20Message:\x20'+(_0x1a000a[_0x40f804(0x284)]||_0x8bf6a2[_0x40f804(0x264)])+'\x0a',_0x3fce6d+=_0x40f804(0x202)+(_0x1a04e9[_0x40f804(0x1e7)]||_0x8bf6a2[_0x40f804(0x264)])+'\x0a',_0x116af9+=_0x40f804(0x23d)+(_0x143e8c[_0x40f804(0x241)]||_0x8bf6a2[_0x40f804(0x264)])+'\x0a'):_0x301d0b[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x1c0)]));;!_0x2a897d[_0x40f804(0x1cd)]&&(_0x8bf6a2[_0x40f804(0x22b)](_0x8bf6a2[_0x40f804(0x25f)],_0x8bf6a2[_0x40f804(0x25f)])?_0x301d0b[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x259)]):_0x5a2686[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x1c0)]));;_0x8bf6a2[_0x40f804(0x285)](_0x301d0b[_0x40f804(0x1a8)],0x0)&&(_0x8bf6a2['zbJfN'](_0x8bf6a2[_0x40f804(0x280)],_0x8bf6a2[_0x40f804(0x280)])?(_0x42f671='Missing\x20required\x20arguments:\x20'+_0x301d0b['join'](',\x20')+_0x40f804(0x1bc),await _0x8bf6a2[_0x40f804(0x246)](reportToGalactusAndSendToEDS,_0x2a897d,_0x738c82,_0x42f671,messageTypes['ERROR'],_0x8bf6a2[_0x40f804(0x211)],_0x8bf6a2[_0x40f804(0x1ec)],_0x8bf6a2[_0x40f804(0x1a9)]),logger[_0x40f804(0x295)](_0x42f671),process['exit'](0x1)):_0x401a02['exit'](0x1)),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x40f804(0x236)](_0x2a897d[_0x40f804(0x249)][_0x40f804(0x25c)]())&&(_0x8bf6a2[_0x40f804(0x21a)](_0x8bf6a2[_0x40f804(0x257)],_0x8bf6a2[_0x40f804(0x257)])?(_0x42f671=_0x8bf6a2[_0x40f804(0x1c8)],await _0x8bf6a2[_0x40f804(0x1cf)](reportToGalactusAndSendToEDS,_0x2a897d,_0x738c82,_0x42f671,messageTypes[_0x40f804(0x1f3)],_0x8bf6a2[_0x40f804(0x211)],_0x8bf6a2['cvQcx'],_0x8bf6a2[_0x40f804(0x1a9)]),logger['error'](_0x42f671),!_0x2a897d[_0x40f804(0x249)]&&(_0x8bf6a2[_0x40f804(0x19d)](_0x8bf6a2['lUuiG'],_0x8bf6a2[_0x40f804(0x242)])?_0x5e331d[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x212)]):(logger[_0x40f804(0x1db)](_0x40f804(0x216)+DEFAULT_CLUSTER_DETAILS[_0x40f804(0x291)]+'\x20'),_0x2a897d[_0x40f804(0x249)]=DEFAULT_CLUSTER_DETAILS[_0x40f804(0x291)]))):_0x15f56c[_0x40f804(0x295)]('error\x20stack\x20:\x20'+_0x34d979[_0x40f804(0x295)][_0x40f804(0x241)])),global_registry[_0x40f804(0x1f2)]=_0x2a897d['clusterName'],global_registry[_0x40f804(0x249)]=_0x2a897d[_0x40f804(0x249)],global_registry[_0x40f804(0x1d6)]=_0x2a897d[_0x40f804(0x1cd)];}else _0x321248[_0x40f804(0x295)](_0x8bf6a2['BOaDk']),_0x580ea6['exit'](0x1);}else{if(_0x2a897d[_0x40f804(0x1af)]){if(_0x8bf6a2[_0x40f804(0x1fc)](_0x8bf6a2['xfcGM'],_0x8bf6a2[_0x40f804(0x29a)]))_0x336894+='Cluster\x20'+_0x114476[_0x40f804(0x1f2)]+_0x40f804(0x251);else{global_registry[_0x40f804(0x1af)]=_0x2a897d[_0x40f804(0x1af)],logger[_0x40f804(0x230)]('grid\x20profile\x20flow\x20'+_0x2a897d['gridProfile']);const _0x4332d4=_0x40f804(0x25e)+AG_API_URL+_0x40f804(0x1c5),_0x5ebae2={};_0x5ebae2['method']=_0x8bf6a2[_0x40f804(0x1fe)],_0x5ebae2['headers']=global_registry[_0x40f804(0x1b2)],_0x5ebae2['throwHttpErrors']=![];const _0xa50134=_0x5ebae2,_0x887c46=await _0x8bf6a2['cSsRe'](got,_0x4332d4,_0xa50134),_0x2413fb=await _0x8bf6a2[_0x40f804(0x221)](responseValidation,_0x887c46,_0x8bf6a2[_0x40f804(0x290)],_0x8bf6a2[_0x40f804(0x1a0)],_0x2a897d,_0x738c82);let _0x37b65a={};if(_0x8bf6a2[_0x40f804(0x25d)](_0x2413fb,0xc8)){if(_0x8bf6a2[_0x40f804(0x19d)](_0x8bf6a2['rCSWS'],_0x8bf6a2[_0x40f804(0x20c)])){const _0x41a098=JSON[_0x40f804(0x1ca)](_0x887c46[_0x40f804(0x269)]),_0x45caf3=_0x41a098[_0x40f804(0x244)](_0x3c8297=>_0x3c8297[_0x40f804(0x28f)]===_0x2a897d[_0x40f804(0x1af)])||null;if(_0x8bf6a2[_0x40f804(0x205)](isUndefined,_0x45caf3))_0x8bf6a2[_0x40f804(0x287)](_0x8bf6a2[_0x40f804(0x234)],_0x8bf6a2[_0x40f804(0x234)])?(_0x3ac3ac[_0x40f804(0x1db)]('['+_0x1f6c4b+_0x40f804(0x206)+_0x425434['status']+_0x40f804(0x1fd)+_0x25d3bf[_0x40f804(0x209)]+_0x40f804(0x213)+_0x5bc30e[_0x40f804(0x295)]),_0x47487a[_0x40f804(0x295)]&&_0x3b328e[_0x40f804(0x295)]('error\x20stack\x20:\x20'+_0x3f0ad1['error'][_0x40f804(0x241)])):(_0x42f671=_0x40f804(0x27a)+_0x2a897d[_0x40f804(0x1af)]+_0x40f804(0x2a0),await _0x8bf6a2[_0x40f804(0x253)](reportToGalactusAndSendToEDS,_0x2a897d,_0x738c82,_0x42f671,messageTypes['ERROR'],_0x8bf6a2[_0x40f804(0x211)],_0x8bf6a2[_0x40f804(0x217)],_0x8bf6a2[_0x40f804(0x1a9)]),logger['error'](_0x42f671),process[_0x40f804(0x1b0)](0x1));else{if(_0x8bf6a2[_0x40f804(0x1ac)](_0x8bf6a2[_0x40f804(0x1da)],_0x8bf6a2[_0x40f804(0x1da)]))_0x37b65a=_0x45caf3;else{const _0x1ff12e={};_0x1ff12e[_0x40f804(0x1c6)]=_0x8bf6a2[_0x40f804(0x245)],_0x1ff12e[_0x40f804(0x1e5)]=_0x8bf6a2[_0x40f804(0x203)];const _0x579e9e={};_0x579e9e['description']=_0x8bf6a2[_0x40f804(0x1ed)],_0x579e9e[_0x40f804(0x1e5)]=_0x8bf6a2['ukylA'];const _0x56bc62={};_0x56bc62[_0x40f804(0x1c6)]=_0x8bf6a2[_0x40f804(0x27b)],_0x56bc62[_0x40f804(0x1e5)]=_0x8bf6a2[_0x40f804(0x203)];const _0x30a23d={};_0x30a23d[_0x40f804(0x1c6)]=_0x8bf6a2[_0x40f804(0x21d)],_0x30a23d[_0x40f804(0x1e5)]=_0x8bf6a2[_0x40f804(0x203)];const _0x9421b1={};return _0x9421b1[_0x40f804(0x22e)]=_0x1ff12e,_0x9421b1[_0x40f804(0x1d5)]=_0x579e9e,_0x9421b1['region']=_0x56bc62,_0x9421b1[_0x40f804(0x29c)]=_0x30a23d,_0x189c91[_0x40f804(0x227)](_0x4fd006['pre_check'])[_0x40f804(0x222)](_0x2e8a37)[_0x40f804(0x1a5)](_0x9421b1)[_0x40f804(0x20b)](_0x8bf6a2[_0x40f804(0x273)])[_0x40f804(0x1d4)];}}}else _0x278cfc+=_0x40f804(0x1f7)+_0x54b534[_0x40f804(0x1f2)]+'\x20'+(_0x206f23?_0x8bf6a2['ZtmeO']:_0x8bf6a2[_0x40f804(0x21b)])+'\x0a\x0a';}else _0x8bf6a2[_0x40f804(0x22b)](_0x8bf6a2[_0x40f804(0x1e8)],_0x8bf6a2['GaYml'])?_0x4692e1[_0x40f804(0x1db)](_0x40f804(0x270)+_0x3c3161[_0x40f804(0x1f2)]+_0x40f804(0x283)):process[_0x40f804(0x1b0)](0x1);const _0x5376c9={};_0x5376c9['type']=WS_EVENTS[_0x40f804(0x294)],_0x5376c9['message']=_0x8bf6a2[_0x40f804(0x208)],webSocketUtils['sendEventToBackend'](_0x738c82,_0x5376c9),global_registry[_0x40f804(0x249)]=_0x37b65a[_0x40f804(0x249)],global_registry[_0x40f804(0x1d6)]=_0x37b65a['region'],global_registry[_0x40f804(0x1f2)]=_0x37b65a[_0x40f804(0x1f2)];}}else _0x8bf6a2[_0x40f804(0x1ea)](_0x8bf6a2[_0x40f804(0x20a)],_0x8bf6a2[_0x40f804(0x233)])?_0x15f0dd[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x259)]):(logger[_0x40f804(0x295)](_0x8bf6a2[_0x40f804(0x1f8)]),process[_0x40f804(0x1b0)](0x1));}}}catch(_0x308e35){_0x8bf6a2[_0x40f804(0x287)](_0x8bf6a2[_0x40f804(0x201)],_0x8bf6a2[_0x40f804(0x201)])?(_0x14843f['info'](_0x40f804(0x216)+_0x2cb406['CLOUD_PROVIDER']+'\x20'),_0x3f6023[_0x40f804(0x249)]=_0x531e55[_0x40f804(0x291)]):(_0x42f671=_0x40f804(0x1dc)+_0x308e35+':\x20'+_0x308e35[_0x40f804(0x241)],logger[_0x40f804(0x295)](_0x42f671),await _0x8bf6a2[_0x40f804(0x1cf)](reportToGalactusAndSendToEDS,_0x2a897d,_0x738c82,_0x42f671,messageTypes[_0x40f804(0x1f3)],_0x8bf6a2['xsoXI'],_0x8bf6a2['cvQcx'],_0x8bf6a2[_0x40f804(0x1a9)]),process[_0x40f804(0x1b0)](0x1));}}function printResponse(_0xdff1c4,_0x35fdd4){const _0x4db49f=a17_0x32a9be,_0x5aea37={};_0x5aea37[_0x4db49f(0x1ef)]=function(_0x4189f0,_0x239538){return _0x4189f0+_0x239538;},_0x5aea37[_0x4db49f(0x29d)]='Success',_0x5aea37['tGBsf']='Failure',_0x5aea37[_0x4db49f(0x23b)]=function(_0x29649b,_0xfd807){return _0x29649b||_0xfd807;},_0x5aea37[_0x4db49f(0x1bf)]=_0x4db49f(0x1be),_0x5aea37[_0x4db49f(0x24c)]=_0x4db49f(0x1d1),_0x5aea37[_0x4db49f(0x277)]=function(_0x511223,_0x10f7e2){return _0x511223!==_0x10f7e2;},_0x5aea37[_0x4db49f(0x248)]='JBFvB',_0x5aea37['RGskw']='LVBcI';const _0x325ab8=_0x5aea37;logger[_0x4db49f(0x1db)]('['+_0xdff1c4+']\x20status\x20:\x20'+_0x35fdd4[_0x4db49f(0x240)]+_0x4db49f(0x1fd)+_0x35fdd4[_0x4db49f(0x209)]+_0x4db49f(0x213)+_0x35fdd4[_0x4db49f(0x295)]);if(_0x35fdd4[_0x4db49f(0x295)]){if(_0x325ab8['znQTy'](_0x325ab8[_0x4db49f(0x248)],_0x325ab8[_0x4db49f(0x255)]))logger['error'](_0x4db49f(0x27e)+_0x35fdd4[_0x4db49f(0x295)][_0x4db49f(0x241)]);else{const {header:_0xe5220b,response:_0x119a96}=_0x513b50,{status:_0x16a7e2,data:_0x46b137,error:_0x503839}=_0x119a96;_0x158cf9+=_0xe5220b+'\x20#'+_0x325ab8['tlyLg'](_0x441e5f,0x1)+'\x0a',_0x215658+=_0x4db49f(0x254)+(_0x16a7e2?_0x325ab8[_0x4db49f(0x29d)]:_0x325ab8['tGBsf'])+'\x0a',_0x3309e6+=_0x4db49f(0x1c9)+_0x325ab8[_0x4db49f(0x23b)](_0x46b137,_0x325ab8['MScfT'])+'\x0a',_0x503839&&(_0x1e61f1+=_0x325ab8['wTiot'],_0x41e563+=_0x4db49f(0x293)+(_0x503839[_0x4db49f(0x284)]||_0x325ab8[_0x4db49f(0x1bf)])+'\x0a',_0x10e1d4+='\x20\x20Code:\x20'+(_0x503839['code']||_0x325ab8[_0x4db49f(0x1bf)])+'\x0a',_0x719bf3+=_0x4db49f(0x23d)+(_0x503839[_0x4db49f(0x241)]||_0x325ab8[_0x4db49f(0x1bf)])+'\x0a'),_0x534aac+='\x0a\x0a';}}}async function generateReport(_0x24c873,_0x572c25){const _0x4f5c6c=a17_0x32a9be,_0x5c490d={'MKMtP':function(_0x9f981a,_0x28eb36){return _0x9f981a+_0x28eb36;},'xbfOI':_0x4f5c6c(0x1e3),'HwGcJ':_0x4f5c6c(0x1aa),'WbBxk':function(_0x28fb81,_0x495d6f){return _0x28fb81||_0x495d6f;},'rQfbl':_0x4f5c6c(0x1be),'rITeQ':'Error\x20Details:\x0a','ndgqD':_0x4f5c6c(0x1b9),'mjcru':function(_0x25fc89,_0x3981e3){return _0x25fc89!=_0x3981e3;},'xkTxK':_0x4f5c6c(0x223),'CFwOv':'will\x20be\x20created','VatlX':function(_0x57563f){return _0x57563f();}};let _0x4e7e9b='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x4f5c6c(0x1a2);return _0x24c873[_0x4f5c6c(0x25b)]((_0x1bc175,_0x183018)=>{const _0x32f4ec=_0x4f5c6c,{header:_0xc4b48e,response:_0x445249}=_0x1bc175,{status:_0x4def4c,data:_0x3bc226,error:_0x3a8f6f}=_0x445249;_0x4e7e9b+=_0xc4b48e+'\x20#'+_0x5c490d[_0x32f4ec(0x1b4)](_0x183018,0x1)+'\x0a',_0x4e7e9b+=_0x32f4ec(0x254)+(_0x4def4c?_0x5c490d[_0x32f4ec(0x1ba)]:_0x5c490d[_0x32f4ec(0x1a3)])+'\x0a',_0x4e7e9b+='Message:\x20'+_0x5c490d[_0x32f4ec(0x25a)](_0x3bc226,_0x5c490d[_0x32f4ec(0x243)])+'\x0a',_0x3a8f6f&&(_0x4e7e9b+=_0x5c490d[_0x32f4ec(0x26f)],_0x4e7e9b+=_0x32f4ec(0x293)+(_0x3a8f6f[_0x32f4ec(0x284)]||_0x5c490d[_0x32f4ec(0x243)])+'\x0a',_0x4e7e9b+='\x20\x20Code:\x20'+(_0x3a8f6f[_0x32f4ec(0x1e7)]||_0x5c490d[_0x32f4ec(0x243)])+'\x0a',_0x4e7e9b+='\x20\x20Stack:\x20'+(_0x3a8f6f[_0x32f4ec(0x241)]||_0x5c490d[_0x32f4ec(0x243)])+'\x0a'),_0x4e7e9b+='\x0a\x0a';}),_0x4e7e9b+=_0x5c490d[_0x4f5c6c(0x252)],_0x5c490d[_0x4f5c6c(0x28b)](_0x572c25,null)?_0x4e7e9b+=_0x4f5c6c(0x1f7)+global_registry['clusterName']+'\x20'+(_0x572c25?_0x5c490d[_0x4f5c6c(0x1a4)]:_0x5c490d['CFwOv'])+'\x0a\x0a':_0x4e7e9b+='Cluster\x20'+global_registry[_0x4f5c6c(0x1f2)]+_0x4f5c6c(0x251),_0x4e7e9b+=_0x5c490d[_0x4f5c6c(0x24a)](getSystemMetaData),_0x4e7e9b;}function a17_0x54f4(){const _0x68890d=['pre-check-failed','MKMtP','header','MTaMy','../../utils/instrumentationUtils','aWZgh','Cluster\x20details\x0a-----------------------\x0a','xbfOI','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','.\x20Please\x20provide\x20all\x20required\x20arguments.','tLXNz','N/A','MScfT','gCPwO','CpgOx','lqzxu','PkBIC','2813274OoLkPD','/packages/cli/get-all-grid-profiles','description','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','kdxRV','Message:\x20','parse','kRtao','iURsa','region','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','LeTgm','WuqwJ','Error\x20Details:\x0a','accessResp','iSAxz','argv','cloud-provider','clusterRegion','hiMNV','353215aruGYZ','getUTCHours','hfqvq','info','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','WNRiu','string','`\x20,error\x20:\x20','oHpbV','CZiKP','requestId','Success','Failed\x20in\x20pre-check!\x20Error:\x20','type','XpmcE','code','EDUKU','biOGI','sfbMy','xgGqb','mHFCb','TkVLH','writeFileSync','tlyLg','GoSHh','uZnes','clusterName','ERROR','getUTCDate','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','push','Cluster\x20','BOaDk','.txt','utf-8','isClusterPresent','SSiyz','\x20data\x20:\x20','NHTnq','eqhsT','HePVL','CObIQ','\x20\x20Code:\x20','ukylA','wNQJr','msSEt',']\x20status\x20:\x20','delay','WUVdc','data','SoMkz','help','wlUPF','1737138yjKsas','aXJAe','Grid\x20profile\x20fetched\x20for\x20pre-check','Browserstack','xsoXI','GuiyX','\x20error\x20:\x20','2cvcSDw','Ojnxn','Setting\x20cloud\x20provider\x20as\x20','GNsXb','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','NnNOh','VnqOZ','PUqGt','handler','Bykcm','username','sWfpU','14xVsmzW','wEYSd','epilogue','is\x20already\x20present','../../cloudproviders/utils','isTls1_2_SUPPORTED','reconnecting-websocket','usage','stringify','readFileSync','stack\x20trace\x20','jQIUJ','command','GET','cluster-name','1056376fWKsHV','debug','FTbQH','Pre-check\x20running\x20for\x20Cloud\x20-\x20','uMylX','EpYZZ','<UsernamePlaceholder>','includes','JdQbJ','builder','getUTCMonth','getUTCMinutes','MzMJD','bstackAccesskey','\x20\x20Stack:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','init','status','stack','lUuiG','rQfbl','find','BCVoR','jlNrv','cACNV','rlIjD','cloudProvider','VatlX','will\x20be\x20created','wTiot','DIeHA','VqDCM','iHCUA','nZeDb','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','ndgqD','YbgKN','Status:\x20','RGskw','grid','JDOOe','53660iAWlpf','MZVbt','WbBxk','forEach','toLowerCase','KJYft','https://','iWjMH','User\x20Access','12mWevWh','vDKVf','../../config/constants','gzTtr','credential-not-found','AozmV','connectionTimeout','dummy-grid','body','pre-check-cluster-args-not-passed','208792qcZymR','NQTzJ','jWRdm','response','rITeQ','Cluster\x20`','lQqMy','wtjFj','HHfwu','Whitelisted\x20browserstack','SSL\x20Configured','isTrialGridAccessible','znQTy','lOQEb','INFO','Invalid\x20input.\x20grid\x20profiles:\x20','dGJMw','toolInstalledResp','pre-check-grid-called','error\x20stack\x20:\x20','kOFHh','CasqT','TLSv1_2_client_method','GKTKv','`\x20already\x20exists','message','ayjHD','conUo','YoFrG','../../config/logger','seRkP','pre-check-grid-profile-empty','mjcru','QlDbO','YyUFw','yNroR','name','pVaCX','CLOUD_PROVIDER','password','\x20\x20Message:\x20','LOG','error','cluster-check-failed-','sendEventToBackend','1|0|2|4|3','desc','bGKvv','pre_check','grid-profile','OcSbb','uuid','split','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','KptAx','GxyfE','4684860hdbfMh','aBSFu','bQGbR','got','\x20===\x0a\x0a','HwGcJ','xkTxK','options','<PasswordPlaceholder>','bstackUsername','length','JbjUA','Failure','cUqij','bHidr','YeYNM','xUdtq','gridProfile','exit','replace','authHeader'];a17_0x54f4=function(){return _0x68890d;};return a17_0x54f4();};function a17_0x4b22(_0x4ff22e,_0x4256f1){const _0x54f41a=a17_0x54f4();return a17_0x4b22=function(_0x4b2275,_0x52ecb0){_0x4b2275=_0x4b2275-0x19d;let _0x3ebe84=_0x54f41a[_0x4b2275];return _0x3ebe84;},a17_0x4b22(_0x4ff22e,_0x4256f1);}exports[a17_0x32a9be(0x21c)]=async function(_0x52ad4b){const _0x4ee695=a17_0x32a9be,_0x91bc86={'CZiKP':function(_0x11321b){return _0x11321b();},'epeOj':function(_0x55f79c){return _0x55f79c();},'oHpbV':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jWRdm':function(_0x4d1b1b,_0x181ffd,_0xd4eeee,_0x3e4cfa,_0x3cc111,_0x489404,_0x20e8c9,_0x38a707){return _0x4d1b1b(_0x181ffd,_0xd4eeee,_0x3e4cfa,_0x3cc111,_0x489404,_0x20e8c9,_0x38a707);},'YeYNM':_0x4ee695(0x27d),'lqzxu':_0x4ee695(0x265),'seRkP':'error','iHCUA':function(_0x27135e,_0x249f8c,_0x246607,_0x3f2265,_0x245251,_0x483491,_0x1dd7d4){return _0x27135e(_0x249f8c,_0x246607,_0x3f2265,_0x245251,_0x483491,_0x1dd7d4);},'sWfpU':function(_0xdbc53c){return _0xdbc53c();},'PoyNd':_0x4ee695(0x235),'aWSVh':_0x4ee695(0x1a6),'eqhsT':function(_0x588f4e,_0x2a1f8f,_0x406407){return _0x588f4e(_0x2a1f8f,_0x406407);},'vDKVf':function(_0x13328c,_0x18ca17,_0x1e861e,_0x614055,_0x55192a,_0x41cc37,_0x3f41d4){return _0x13328c(_0x18ca17,_0x1e861e,_0x614055,_0x55192a,_0x41cc37,_0x3f41d4);},'tdppW':_0x4ee695(0x268),'iURsa':function(_0x4f4050,_0x18858e,_0x379b92){return _0x4f4050(_0x18858e,_0x379b92);},'XpmcE':_0x4ee695(0x27c),'FTbQH':_0x4ee695(0x298),'VqDCM':_0x4ee695(0x1d2),'tLXNz':_0x4ee695(0x276),'RjmvH':function(_0x4e7032,_0x157427){return _0x4e7032(_0x157427);},'QlDbO':_0x4ee695(0x281),'MRduR':function(_0x2edf0a,_0xacca6a,_0x3b653f){return _0x2edf0a(_0xacca6a,_0x3b653f);},'jcdpZ':_0x4ee695(0x225),'wtjFj':'Tool\x20Installed','kOFHh':_0x4ee695(0x260),'MTaMy':_0x4ee695(0x274),'WuqwJ':_0x4ee695(0x275),'uZnes':function(_0x1decbd,_0x309bd0){return _0x1decbd+_0x309bd0;},'QNnKQ':_0x4ee695(0x1fa),'xgGqb':_0x4ee695(0x1b3)};let _0x4e77de,_0x2bbb21;try{global_registry[_0x4ee695(0x1e2)]=_0x91bc86[_0x4ee695(0x1e1)](uuidv4);!fs['existsSync'](_0x91bc86['epeOj'](getCredentialsPath))&&(_0x2bbb21=_0x91bc86[_0x4ee695(0x1e0)],logger[_0x4ee695(0x295)](_0x2bbb21),await _0x91bc86['jWRdm'](reportToGalactusAndSendToEDS,_0x52ad4b,_0x4e77de,_0x2bbb21,messageTypes[_0x4ee695(0x1f3)],_0x91bc86['YeYNM'],_0x91bc86[_0x4ee695(0x1c2)],_0x91bc86[_0x4ee695(0x289)]),process[_0x4ee695(0x1b0)](0x1));_0x91bc86[_0x4ee695(0x24f)](sendInstrumentationEvent,_0x52ad4b,_0x91bc86[_0x4ee695(0x1ad)],messageTypes[_0x4ee695(0x279)],null,null,_0x52ad4b);const _0x5c7791=JSON[_0x4ee695(0x1ca)](fs[_0x4ee695(0x229)](_0x91bc86[_0x4ee695(0x21f)](getCredentialsPath)));global_registry['bstackUsername']=_0x5c7791['Browserstack'][_0x4ee695(0x21e)],global_registry[_0x4ee695(0x23c)]=_0x5c7791[_0x4ee695(0x210)][_0x4ee695(0x292)];const _0x34feb7=WS_ENDPOINT[_0x4ee695(0x1b1)](_0x91bc86['PoyNd'],_0x5c7791['Browserstack'][_0x4ee695(0x21e)])['replace'](_0x91bc86['aWSVh'],_0x5c7791['Browserstack'][_0x4ee695(0x292)]),_0x2e0663={};_0x2e0663['WebSocket']=ws,_0x2e0663[_0x4ee695(0x267)]=0x36ee80,_0x4e77de=new ReconnectingWebSocket(_0x34feb7,[],_0x2e0663),global_registry[_0x4ee695(0x1b2)]=_0x91bc86[_0x4ee695(0x1ff)](getAuthHeader,global_registry[_0x4ee695(0x1a7)],global_registry[_0x4ee695(0x23c)]),await _0x91bc86[_0x4ee695(0x1ff)](inputValidation,_0x52ad4b,_0x4e77de),logger[_0x4ee695(0x1db)](_0x4ee695(0x232)+global_registry[_0x4ee695(0x249)]+'\x20region\x20-\x20'+global_registry[_0x4ee695(0x1d6)]);let _0x33e50b=await _0x91bc86[_0x4ee695(0x262)](getCloudProviderObjectWithOutInit,global_registry[_0x4ee695(0x249)],global_registry['clusterName'],_0x91bc86['tdppW'],_0x4e77de,webSocketUtils,_0x52ad4b);const _0x59cf5d=await _0x33e50b['isCliToolInstalled']();_0x91bc86[_0x4ee695(0x1cc)](printResponse,_0x91bc86[_0x4ee695(0x1e6)],_0x59cf5d),_0x33e50b=await _0x33e50b[_0x4ee695(0x23f)]();let _0xef978b=![];try{_0xef978b=await _0x33e50b[_0x4ee695(0x1fb)]();}catch(_0x4d489d){const _0x34f68d=_0x91bc86[_0x4ee695(0x231)][_0x4ee695(0x29f)]('|');let _0x4971c2=0x0;while(!![]){switch(_0x34f68d[_0x4971c2++]){case'0':_0xef978b=null;continue;case'1':_0x2bbb21=_0x4ee695(0x23e)+global_registry[_0x4ee695(0x1f2)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x4ee695(0x1d6)]+_0x4ee695(0x1df)+_0x4d489d;continue;case'2':logger[_0x4ee695(0x295)](_0x2bbb21);continue;case'3':await _0x91bc86[_0x4ee695(0x26d)](reportToGalactusAndSendToEDS,_0x52ad4b,_0x4e77de,_0x2bbb21,messageTypes['ERROR'],_0x91bc86[_0x4ee695(0x1ad)],_0x4ee695(0x296)+global_registry['cloudProvider'],_0x91bc86[_0x4ee695(0x289)]);continue;case'4':_0x2bbb21+='\x0a'+JSON[_0x4ee695(0x228)](_0x4d489d[_0x4ee695(0x241)]);continue;}break;}}_0xef978b&&logger[_0x4ee695(0x1db)](_0x4ee695(0x270)+global_registry[_0x4ee695(0x1f2)]+_0x4ee695(0x283));const _0x2623a0=await _0x33e50b['checkAccess']();_0x91bc86[_0x4ee695(0x1cc)](printResponse,_0x91bc86[_0x4ee695(0x24e)],_0x2623a0);const _0x171631=await _0x91bc86['epeOj'](curlRequest);_0x91bc86[_0x4ee695(0x1ff)](printResponse,_0x91bc86[_0x4ee695(0x1bd)],_0x171631);const _0x20f8aa=await _0x91bc86['RjmvH'](isTlsSupported,_0x91bc86[_0x4ee695(0x28c)]);_0x91bc86['MRduR'](printResponse,_0x91bc86['jcdpZ'],_0x20f8aa);const _0x3754a9={};_0x3754a9[_0x4ee695(0x1b5)]=_0x91bc86[_0x4ee695(0x272)],_0x3754a9[_0x4ee695(0x26e)]=_0x59cf5d;const _0x9bdb70={};_0x9bdb70[_0x4ee695(0x1b5)]=_0x91bc86[_0x4ee695(0x27f)],_0x9bdb70['response']=_0x2623a0;const _0x3dc92f={};_0x3dc92f[_0x4ee695(0x1b5)]=_0x91bc86[_0x4ee695(0x1b6)],_0x3dc92f['response']=_0x171631;const _0xbf508c={};_0xbf508c[_0x4ee695(0x1b5)]=_0x91bc86[_0x4ee695(0x1d0)],_0xbf508c['response']=_0x20f8aa;const _0x43814b=[_0x3754a9,_0x9bdb70,_0x3dc92f,_0xbf508c],_0x46e2bf=await _0x91bc86[_0x4ee695(0x1ff)](generateReport,_0x43814b,_0xef978b),_0x114020=new Date(),_0x3542b4=_0x114020['getUTCFullYear']()+'_'+_0x91bc86[_0x4ee695(0x1f1)](_0x114020[_0x4ee695(0x239)](),0x1)+'_'+_0x114020[_0x4ee695(0x1f4)]()+'_'+_0x114020[_0x4ee695(0x1d9)]()+'_'+_0x114020[_0x4ee695(0x23a)](),_0x5f33a0='log/report_'+_0x3542b4+_0x4ee695(0x1f9);fs[_0x4ee695(0x1ee)](_0x5f33a0,_0x46e2bf,_0x91bc86['QNnKQ']),logger[_0x4ee695(0x1db)]('Report\x20saved\x20in\x20'+_0x5f33a0),process[_0x4ee695(0x1b0)](0x0);}catch(_0x2cd4bf){let _0x2638f2=_0x4ee695(0x1e4)+_0x2cd4bf+'\x20';logger['error'](_0x2638f2),_0x2638f2+='\x0a'+JSON[_0x4ee695(0x228)](_0x2cd4bf[_0x4ee695(0x241)]),logger[_0x4ee695(0x230)](_0x4ee695(0x22a)+_0x2cd4bf[_0x4ee695(0x241)]);if(_0x4e77de){const _0x46ace0={};_0x46ace0['type']=WS_EVENTS[_0x4ee695(0x294)],_0x46ace0['message']=_0x2638f2,webSocketUtils['sendEventToBackend'](_0x4e77de,_0x46ace0,_0x91bc86[_0x4ee695(0x289)],!![]);}await webSocketUtils[_0x4ee695(0x207)](0x7d0);const _0x3c2c60={};_0x3c2c60[_0x4ee695(0x295)]=_0x2638f2,await _0x91bc86['vDKVf'](sendInstrumentationEvent,_0x52ad4b,_0x91bc86[_0x4ee695(0x1ad)],messageTypes[_0x4ee695(0x1f3)],_0x91bc86[_0x4ee695(0x1eb)],_0x3c2c60,_0x52ad4b),process[_0x4ee695(0x1b0)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x5d5677=a18_0xada8;(function(_0x582684,_0x34484a){const _0x7ab5d0=a18_0xada8,_0x6a5fff=_0x582684();while(!![]){try{const _0x14426e=parseInt(_0x7ab5d0(0x19a))/0x1*(parseInt(_0x7ab5d0(0x195))/0x2)+parseInt(_0x7ab5d0(0x188))/0x3*(parseInt(_0x7ab5d0(0x18f))/0x4)+parseInt(_0x7ab5d0(0x189))/0x5+parseInt(_0x7ab5d0(0x18a))/0x6*(parseInt(_0x7ab5d0(0x184))/0x7)+-parseInt(_0x7ab5d0(0x190))/0x8*(parseInt(_0x7ab5d0(0x194))/0x9)+-parseInt(_0x7ab5d0(0x182))/0xa+parseInt(_0x7ab5d0(0x18e))/0xb*(-parseInt(_0x7ab5d0(0x19b))/0xc);if(_0x14426e===_0x34484a)break;else _0x6a5fff['push'](_0x6a5fff['shift']());}catch(_0x8e40ce){_0x6a5fff['push'](_0x6a5fff['shift']());}}}(a18_0x1110,0xed326));function a18_0x1110(){const _0x4494bb=['start','help','1ntKSnr','2868DFJAlf','6676380mtulJO','handler','735guGceJ','NCdcm','command','recommendCommands','42tnLqBz','8453405MUYGyd','1410uFwaJY','epilogue','dGdyL','desc','32307DEtALh','476056YIQUdy','59656QdqRix','start_commands','usage','strict','1314vrUcsc','96618KoecQq','../config/constants','commandDir'];a18_0x1110=function(){return _0x4494bb;};return a18_0x1110();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x5d5677(0x196));function a18_0xada8(_0x5caec7,_0x2b1617){const _0x1110b2=a18_0x1110();return a18_0xada8=function(_0xada89d,_0x3f7efe){_0xada89d=_0xada89d-0x182;let _0x1d1f3e=_0x1110b2[_0xada89d];return _0x1d1f3e;},a18_0xada8(_0x5caec7,_0x2b1617);}exports[a18_0x5d5677(0x186)]=a18_0x5d5677(0x198),exports[a18_0x5d5677(0x18d)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x527fb4){const _0xf7120d=a18_0x5d5677,_0x363e7d={};_0x363e7d[_0xf7120d(0x18c)]=_0xf7120d(0x191),_0x363e7d[_0xf7120d(0x185)]=_0xf7120d(0x199);const _0x50b99c=_0x363e7d;return _0x527fb4[_0xf7120d(0x192)](HELP_HEADER_MESSAGE[_0xf7120d(0x198)])[_0xf7120d(0x18b)](HELP_FOOTER_MESSAGE)[_0xf7120d(0x197)](_0x50b99c[_0xf7120d(0x18c)])['demandCommand']()[_0xf7120d(0x187)]()[_0xf7120d(0x193)]()[_0xf7120d(0x199)](_0x50b99c[_0xf7120d(0x185)]);},exports[a18_0x5d5677(0x183)]=function(_0x5188b3){};
1
+ function a18_0x269c(_0x487845,_0x4665c4){const _0x116692=a18_0x1166();return a18_0x269c=function(_0x269ceb,_0xc3dbe8){_0x269ceb=_0x269ceb-0x14e;let _0x3e4a42=_0x116692[_0x269ceb];return _0x3e4a42;},a18_0x269c(_0x487845,_0x4665c4);}function a18_0x1166(){const _0x9f9b0b=['66428zINKwm','usage','demandCommand','2066238yPcRfT','strict','commandDir','start_commands','1450twgGmb','help','handler','34180289BOnSrs','30wmfndN','27ZBJClP','recommendCommands','epilogue','GWVwe','../config/constants','3060561xpYvIP','Start\x20an\x20existing\x20Automation\x20grid.','6118ihTdtk','1968BekSuj','start','2792yjHZKh','command','1466530cAisZB'];a18_0x1166=function(){return _0x9f9b0b;};return a18_0x1166();}const a18_0x50753b=a18_0x269c;(function(_0x57c51a,_0xa600b1){const _0xfbdb9c=a18_0x269c,_0x525ec4=_0x57c51a();while(!![]){try{const _0x2b645d=-parseInt(_0xfbdb9c(0x15e))/0x1*(parseInt(_0xfbdb9c(0x153))/0x2)+-parseInt(_0xfbdb9c(0x164))/0x3+parseInt(_0xfbdb9c(0x14e))/0x4*(-parseInt(_0xfbdb9c(0x15a))/0x5)+parseInt(_0xfbdb9c(0x156))/0x6+-parseInt(_0xfbdb9c(0x166))/0x7*(parseInt(_0xfbdb9c(0x150))/0x8)+parseInt(_0xfbdb9c(0x15f))/0x9*(-parseInt(_0xfbdb9c(0x152))/0xa)+parseInt(_0xfbdb9c(0x15d))/0xb;if(_0x2b645d===_0xa600b1)break;else _0x525ec4['push'](_0x525ec4['shift']());}catch(_0x3ba4d3){_0x525ec4['push'](_0x525ec4['shift']());}}}(a18_0x1166,0x85a48));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x50753b(0x163));exports[a18_0x50753b(0x151)]=a18_0x50753b(0x14f),exports['desc']=a18_0x50753b(0x165),exports['builder']=function(_0x418252){const _0x1f70e1=a18_0x50753b,_0x38c0e3={};_0x38c0e3[_0x1f70e1(0x162)]=_0x1f70e1(0x159),_0x38c0e3['ewYcQ']=_0x1f70e1(0x15b);const _0x508392=_0x38c0e3;return _0x418252[_0x1f70e1(0x154)](HELP_HEADER_MESSAGE[_0x1f70e1(0x14f)])[_0x1f70e1(0x161)](HELP_FOOTER_MESSAGE)[_0x1f70e1(0x158)](_0x508392[_0x1f70e1(0x162)])[_0x1f70e1(0x155)]()[_0x1f70e1(0x160)]()[_0x1f70e1(0x157)]()[_0x1f70e1(0x15b)](_0x508392['ewYcQ']);},exports[a18_0x50753b(0x15c)]=function(_0x321c96){};
@@ -1 +1 @@
1
- function a19_0x3192(){const _0x57876e=['Nwhxk','builder','parse','replace','../../config/logger','../../utils/gridComponents','command','EwbaG','clusterName','invalid-grid-id','skip-tls-cert-verify','bstackAccesskey','error','../../config/constants','../../cloudproviders/utils','ERROR','connectionTimeout','csIUo','message','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','INFO','description','../../utils/utilityMethods','password','readFileSync','start-grid-called','30rLHvaF','bstackUsername','existsSync','stringify','371mmHGJN','aNldN','CXOJv','start','region','info','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xcgtb','MUcQQ','4202653kDNwPb','statusCode','type','addListeners','gridId','22IbGzEZ','../../utils/instrumentationUtils','CbLOt','iavPs','exit','epilogue','avJUq','vaxfz','cloudProvider','PLCph','../../utils/createk8sClient','desc','usage','WebSocket','reconnecting-websocket','wjVQY','skipTlsCertVerify','string','1940100SvDWQa','default','options','../../utils/webSocketUtils','19202553zaKTHQ','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Cojsp','<PasswordPlaceholder>','stack','Browserstack','4662016jXKCEt','acorg','server-error','OcAXe','Grid\x20started','debug','Start\x20an\x20existing\x20Automation\x20grid.','Adding\x20Websocket\x20listeners','user','fFFPh','Skip\x20insecure\x20cert\x20verification.','115770ErYNhu','198410XzvyZS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','fovPb','clusterRegion','grid','username','nkJfw'];a19_0x3192=function(){return _0x57876e;};return a19_0x3192();}function a19_0x59ac(_0x2136c9,_0x585c95){const _0x31926b=a19_0x3192();return a19_0x59ac=function(_0x59acb0,_0x3fb411){_0x59acb0=_0x59acb0-0x138;let _0x137412=_0x31926b[_0x59acb0];return _0x137412;},a19_0x59ac(_0x2136c9,_0x585c95);}const a19_0x253cf0=a19_0x59ac;(function(_0x3dfb58,_0x37d94f){const _0x3dbef0=a19_0x59ac,_0x3d575a=_0x3dfb58();while(!![]){try{const _0x804101=parseInt(_0x3dbef0(0x191))/0x1*(parseInt(_0x3dbef0(0x144))/0x2)+parseInt(_0x3dbef0(0x16b))/0x3+-parseInt(_0x3dbef0(0x156))/0x4+parseInt(_0x3dbef0(0x16c))/0x5*(-parseInt(_0x3dbef0(0x18d))/0x6)+-parseInt(_0x3dbef0(0x13f))/0x7+-parseInt(_0x3dbef0(0x160))/0x8+parseInt(_0x3dbef0(0x15a))/0x9;if(_0x804101===_0x37d94f)break;else _0x3d575a['push'](_0x3d575a['shift']());}catch(_0x431e8a){_0x3d575a['push'](_0x3d575a['shift']());}}}(a19_0x3192,0x4b9da));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x253cf0(0x152)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x253cf0(0x180)),{logger}=require(a19_0x253cf0(0x177)),{getCredentialsPath,getGridDetails}=require(a19_0x253cf0(0x189)),{scaleUpHubDeployment}=require(a19_0x253cf0(0x178)),{sendInstrumentationEvent}=require(a19_0x253cf0(0x145)),webSocketUtils=require(a19_0x253cf0(0x159)),{createK8sClient}=require(a19_0x253cf0(0x14e)),{getCloudProviderObject}=require(a19_0x253cf0(0x181));exports[a19_0x253cf0(0x179)]=a19_0x253cf0(0x170),exports[a19_0x253cf0(0x14f)]=a19_0x253cf0(0x166),exports[a19_0x253cf0(0x174)]=function(_0x1a98ca){const _0x5f4083=a19_0x253cf0,_0x368af9={};_0x368af9[_0x5f4083(0x193)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x368af9['gBvJL']=_0x5f4083(0x155),_0x368af9[_0x5f4083(0x184)]=_0x5f4083(0x16a),_0x368af9[_0x5f4083(0x13e)]='boolean',_0x368af9[_0x5f4083(0x169)]='help';const _0x19cb47=_0x368af9,_0x2ab16a={};_0x2ab16a[_0x5f4083(0x188)]=_0x19cb47[_0x5f4083(0x193)],_0x2ab16a[_0x5f4083(0x141)]=_0x19cb47['gBvJL'];const _0x3618de={};_0x3618de[_0x5f4083(0x188)]=_0x19cb47[_0x5f4083(0x184)],_0x3618de['type']=_0x19cb47[_0x5f4083(0x13e)],_0x3618de[_0x5f4083(0x157)]=![];const _0x626ec3={};return _0x626ec3['grid-id']=_0x2ab16a,_0x626ec3[_0x5f4083(0x17d)]=_0x3618de,_0x1a98ca[_0x5f4083(0x150)](HELP_HEADER_MESSAGE[_0x5f4083(0x138)])[_0x5f4083(0x149)](HELP_FOOTER_MESSAGE)[_0x5f4083(0x158)](_0x626ec3)['help'](_0x19cb47[_0x5f4083(0x169)])['argv'];},exports[a19_0x253cf0(0x13b)]=async function(_0x455bb2){const _0x2a1c92=a19_0x253cf0,_0x4b5a4d={'nkJfw':_0x2a1c92(0x186),'CbLOt':function(_0x29e26f){return _0x29e26f();},'xcgtb':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OcAXe':function(_0x34cf1f,_0x356739,_0x13d1bc,_0x43fce5,_0x1c3261,_0x30654d,_0x5c4671){return _0x34cf1f(_0x356739,_0x13d1bc,_0x43fce5,_0x1c3261,_0x30654d,_0x5c4671);},'avJUq':_0x2a1c92(0x18c),'Nwhxk':'init-not-called','Cojsp':function(_0x59dc29,_0x52d3bd,_0x4b9ada,_0xaa0c61,_0x5cbb46,_0x1d2f37,_0x22815a){return _0x59dc29(_0x52d3bd,_0x4b9ada,_0xaa0c61,_0x5cbb46,_0x1d2f37,_0x22815a);},'iavPs':function(_0x5acd6c){return _0x5acd6c();},'ZdNmd':'<UsernamePlaceholder>','KhJZF':_0x2a1c92(0x15d),'EwbaG':_0x2a1c92(0x167),'vaxfz':function(_0x557b1d,_0x210309,_0x2298ad,_0x6aec60){return _0x557b1d(_0x210309,_0x2298ad,_0x6aec60);},'fovPb':function(_0x280b87,_0x43837a,_0x52d415){return _0x280b87(_0x43837a,_0x52d415);},'lyXVg':_0x2a1c92(0x164),'aNldN':function(_0x522fa0,_0x7f05d6){return _0x522fa0===_0x7f05d6;},'yYIFV':_0x2a1c92(0x13c),'wjVQY':'unauthorised','iyudC':function(_0x230a7d,_0x2a9517){return _0x230a7d===_0x2a9517;},'acorg':_0x2a1c92(0x17c),'PLCph':_0x2a1c92(0x162)};let _0x46235e;try{!_0x455bb2[_0x2a1c92(0x143)]&&(logger[_0x2a1c92(0x17f)](_0x4b5a4d[_0x2a1c92(0x172)]),process[_0x2a1c92(0x148)](0x1));!fs[_0x2a1c92(0x18f)](_0x4b5a4d[_0x2a1c92(0x146)](getCredentialsPath))&&(logger[_0x2a1c92(0x17f)](_0x4b5a4d[_0x2a1c92(0x13d)]),await _0x4b5a4d[_0x2a1c92(0x163)](sendInstrumentationEvent,_0x455bb2,_0x4b5a4d[_0x2a1c92(0x14a)],messageTypes[_0x2a1c92(0x182)],_0x4b5a4d[_0x2a1c92(0x173)],null,_0x455bb2),process['exit'](0x1));logger[_0x2a1c92(0x13a)]('Starting\x20grid\x20'+_0x455bb2[_0x2a1c92(0x143)]),await _0x4b5a4d[_0x2a1c92(0x15c)](sendInstrumentationEvent,_0x455bb2,_0x4b5a4d[_0x2a1c92(0x14a)],messageTypes[_0x2a1c92(0x187)],null,null,_0x455bb2);const _0xc9346b=JSON[_0x2a1c92(0x175)](fs[_0x2a1c92(0x18b)](_0x4b5a4d[_0x2a1c92(0x147)](getCredentialsPath)));global_registry[_0x2a1c92(0x18e)]=_0xc9346b[_0x2a1c92(0x15f)][_0x2a1c92(0x171)],global_registry[_0x2a1c92(0x17e)]=_0xc9346b[_0x2a1c92(0x15f)][_0x2a1c92(0x18a)];const _0x48e1bb=WS_ENDPOINT['replace'](_0x4b5a4d['ZdNmd'],_0xc9346b[_0x2a1c92(0x15f)][_0x2a1c92(0x171)])[_0x2a1c92(0x176)](_0x4b5a4d['KhJZF'],_0xc9346b[_0x2a1c92(0x15f)][_0x2a1c92(0x18a)]),_0x289f54={};_0x289f54[_0x2a1c92(0x151)]=ws,_0x289f54[_0x2a1c92(0x183)]=0x36ee80,_0x46235e=new ReconnectingWebSocket(_0x48e1bb,[],_0x289f54),logger[_0x2a1c92(0x165)](_0x4b5a4d[_0x2a1c92(0x17a)]),webSocketUtils[_0x2a1c92(0x142)](_0x46235e,_0x455bb2[_0x2a1c92(0x168)],_0x455bb2['password']);const [_0x354267,_0x128051]=await _0x4b5a4d[_0x2a1c92(0x14b)](getGridDetails,_0xc9346b[_0x2a1c92(0x15f)][_0x2a1c92(0x171)],_0xc9346b['Browserstack']['password'],_0x455bb2[_0x2a1c92(0x143)]);if(_0x128051){const _0x3cfd6a=_0x128051[_0x2a1c92(0x13a)];global_registry[_0x2a1c92(0x14c)]=_0x3cfd6a[_0x2a1c92(0x14c)],global_registry[_0x2a1c92(0x16f)]=_0x3cfd6a[_0x2a1c92(0x139)],global_registry[_0x2a1c92(0x17b)]=_0x3cfd6a['clusterName'];const _0x508371=await _0x4b5a4d['OcAXe'](getCloudProviderObject,_0x3cfd6a[_0x2a1c92(0x14c)],_0x3cfd6a[_0x2a1c92(0x17b)],_0x3cfd6a['name'],_0x46235e,webSocketUtils,_0x455bb2),[_0x4bd138,_0x2e1495,_0x21ad75,_0x10ea86,_0x55018a,_0x28f31b]=await _0x4b5a4d[_0x2a1c92(0x16e)](createK8sClient,_0x508371,_0x455bb2[_0x2a1c92(0x154)]);await _0x4b5a4d[_0x2a1c92(0x16e)](scaleUpHubDeployment,_0x2e1495,_0x3cfd6a['name']),logger[_0x2a1c92(0x13a)](_0x4b5a4d['lyXVg']),process['exit'](0x0);}_0x4b5a4d[_0x2a1c92(0x192)](_0x354267[_0x2a1c92(0x140)],0x191)&&(logger[_0x2a1c92(0x17f)](_0x4b5a4d['yYIFV']),await _0x4b5a4d[_0x2a1c92(0x15c)](sendInstrumentationEvent,_0x455bb2,_0x4b5a4d[_0x2a1c92(0x14a)],messageTypes[_0x2a1c92(0x182)],_0x4b5a4d[_0x2a1c92(0x153)],null,_0x455bb2),process[_0x2a1c92(0x148)](0x1)),_0x4b5a4d['iyudC'](_0x354267[_0x2a1c92(0x140)],0x190)&&(logger['error'](JSON['parse'](_0x354267['body'])[_0x2a1c92(0x185)]),await _0x4b5a4d[_0x2a1c92(0x163)](sendInstrumentationEvent,_0x455bb2,_0x4b5a4d['avJUq'],messageTypes[_0x2a1c92(0x182)],_0x4b5a4d[_0x2a1c92(0x161)],null,_0x455bb2),process['exit'](0x1)),logger[_0x2a1c92(0x17f)](_0x2a1c92(0x16d)+JSON[_0x2a1c92(0x190)](_0x354267)),await _0x4b5a4d['OcAXe'](sendInstrumentationEvent,_0x455bb2,_0x4b5a4d[_0x2a1c92(0x14a)],messageTypes['ERROR'],_0x4b5a4d[_0x2a1c92(0x14d)],_0x354267,_0x455bb2),process[_0x2a1c92(0x148)](0x1);}catch(_0x3ac1c6){const _0x3c135d=_0x2a1c92(0x15b)+_0x3ac1c6+'\x20\x0a'+JSON[_0x2a1c92(0x190)](_0x3ac1c6[_0x2a1c92(0x15e)])+'\x20';logger[_0x2a1c92(0x17f)](_0x3c135d),process['exit'](0x1);}};
1
+ const a19_0x4041f2=a19_0x1edb;function a19_0x1edb(_0xe7f013,_0x378022){const _0x3856a4=a19_0x3856();return a19_0x1edb=function(_0x1edb2b,_0x24f220){_0x1edb2b=_0x1edb2b-0x181;let _0x5b9546=_0x3856a4[_0x1edb2b];return _0x5b9546;},a19_0x1edb(_0xe7f013,_0x378022);}(function(_0x4b98d1,_0xc53c46){const _0x4eef35=a19_0x1edb,_0x200660=_0x4b98d1();while(!![]){try{const _0x1d553c=parseInt(_0x4eef35(0x1b0))/0x1*(parseInt(_0x4eef35(0x1d9))/0x2)+parseInt(_0x4eef35(0x198))/0x3+parseInt(_0x4eef35(0x187))/0x4+-parseInt(_0x4eef35(0x1c3))/0x5*(-parseInt(_0x4eef35(0x196))/0x6)+-parseInt(_0x4eef35(0x1cc))/0x7*(parseInt(_0x4eef35(0x18b))/0x8)+parseInt(_0x4eef35(0x1a7))/0x9+parseInt(_0x4eef35(0x19b))/0xa*(-parseInt(_0x4eef35(0x1d8))/0xb);if(_0x1d553c===_0xc53c46)break;else _0x200660['push'](_0x200660['shift']());}catch(_0x45c6d5){_0x200660['push'](_0x200660['shift']());}}}(a19_0x3856,0x8727c));function a19_0x3856(){const _0x336f49=['Start\x20an\x20existing\x20Automation\x20grid.','NeAHr','13272567nMtdvT','1644658JGtEzK','wrWFz','parse','default','argv','<PasswordPlaceholder>','bstackUsername','type','addListeners','server-error','clusterName','786036tHSicX','builder','ykBCK','../../utils/createk8sClient','40vCcTmB','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Adding\x20Websocket\x20listeners','bstackAccesskey','FBxKZ','string','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','handler','gHOEh','grid-id','../../utils/gridComponents','238284FJbtBA','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','3122061wQlFxz','nrYtP','skipTlsCertVerify','20lwXlTh','replace','info','options','stringify','xqybf','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','exit','clusterRegion','EZBAE','invalid-grid-id','name','4712238nbrPbX','ReKqP','../../utils/instrumentationUtils','help','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','body','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','1kpiXqS','unauthorised','yNeEs','readFileSync','init-not-called','BiaRN','CNice','password','WuAad','boolean','username','../../utils/webSocketUtils','cloudProvider','iJWBD','message','imxLn','command','connectionTimeout','iYmQi','60HxMgAd','uZaAQ','error','fDzrZ','WebSocket','stack','description','debug','Browserstack','130039ELjanp','Starting\x20grid\x20','user','gridId','kjjdo','start','jGQyh','skip-tls-cert-verify','usage','iTizJ'];a19_0x3856=function(){return _0x336f49;};return a19_0x3856();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x4041f2(0x195)),{sendInstrumentationEvent}=require(a19_0x4041f2(0x1a9)),webSocketUtils=require(a19_0x4041f2(0x1bb)),{createK8sClient}=require(a19_0x4041f2(0x18a)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x4041f2(0x1c0)]='grid',exports[a19_0x4041f2(0x1ad)]=a19_0x4041f2(0x1d6),exports[a19_0x4041f2(0x188)]=function(_0x5197b0){const _0xa7f875=a19_0x4041f2,_0x23a69a={};_0x23a69a['jGQyh']=_0xa7f875(0x18c),_0x23a69a['OqyiZ']=_0xa7f875(0x190),_0x23a69a[_0xa7f875(0x1a8)]='Skip\x20insecure\x20cert\x20verification.',_0x23a69a[_0xa7f875(0x1da)]=_0xa7f875(0x1b9),_0x23a69a[_0xa7f875(0x189)]=_0xa7f875(0x1aa);const _0x1d5b68=_0x23a69a,_0x2429e4={};_0x2429e4[_0xa7f875(0x1c9)]=_0x1d5b68[_0xa7f875(0x1d2)],_0x2429e4[_0xa7f875(0x183)]=_0x1d5b68['OqyiZ'];const _0x377127={};_0x377127[_0xa7f875(0x1c9)]=_0x1d5b68[_0xa7f875(0x1a8)],_0x377127['type']=_0x1d5b68[_0xa7f875(0x1da)],_0x377127[_0xa7f875(0x1dc)]=![];const _0x23b2fa={};return _0x23b2fa[_0xa7f875(0x194)]=_0x2429e4,_0x23b2fa[_0xa7f875(0x1d3)]=_0x377127,_0x5197b0[_0xa7f875(0x1d4)](HELP_HEADER_MESSAGE[_0xa7f875(0x1d1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xa7f875(0x19e)](_0x23b2fa)[_0xa7f875(0x1aa)](_0x1d5b68[_0xa7f875(0x189)])[_0xa7f875(0x1dd)];},exports[a19_0x4041f2(0x192)]=async function(_0x543c4e){const _0x2d3975=a19_0x4041f2,_0x3037f3={'mvzGf':_0x2d3975(0x1a1),'IpFKR':function(_0x3945af){return _0x3945af();},'gHOEh':_0x2d3975(0x1ae),'iJWBD':function(_0x1aa54c,_0x4b7de2,_0x567a81,_0x4c0911,_0xc541e,_0x3971a2,_0x5aeae3){return _0x1aa54c(_0x4b7de2,_0x567a81,_0x4c0911,_0xc541e,_0x3971a2,_0x5aeae3);},'uZaAQ':'start-grid-called','iTizJ':_0x2d3975(0x1b4),'Yvpgy':function(_0x346515,_0x28d280,_0x3bdc2b,_0x379368,_0x133b91,_0x5321c6,_0x24292d){return _0x346515(_0x28d280,_0x3bdc2b,_0x379368,_0x133b91,_0x5321c6,_0x24292d);},'yNeEs':function(_0x320d63){return _0x320d63();},'KsKUC':'<UsernamePlaceholder>','xqybf':_0x2d3975(0x181),'EZBAE':_0x2d3975(0x18d),'WuAad':function(_0x3be979,_0x1ce095,_0x401613,_0x2c8450){return _0x3be979(_0x1ce095,_0x401613,_0x2c8450);},'FBxKZ':function(_0x2b8d41,_0x22c412,_0x1e8ded,_0x50f2f8,_0x3ef341,_0x230d09,_0x2caaf0){return _0x2b8d41(_0x22c412,_0x1e8ded,_0x50f2f8,_0x3ef341,_0x230d09,_0x2caaf0);},'NeAHr':function(_0x11b8ce,_0x43fb21,_0x4e52b8){return _0x11b8ce(_0x43fb21,_0x4e52b8);},'kjjdo':function(_0x639e7,_0xf28de3,_0x4a26d5){return _0x639e7(_0xf28de3,_0x4a26d5);},'nrYtP':'Grid\x20started','MJCop':function(_0x111af5,_0x3895a3){return _0x111af5===_0x3895a3;},'CNice':_0x2d3975(0x191),'WvZNK':function(_0x181943,_0x510051,_0x56249b,_0x279c3f,_0x1e8b4e,_0x37b625,_0x31ff26){return _0x181943(_0x510051,_0x56249b,_0x279c3f,_0x1e8b4e,_0x37b625,_0x31ff26);},'iYmQi':_0x2d3975(0x1b1),'ebncP':function(_0x313433,_0x5125ed){return _0x313433===_0x5125ed;},'fDzrZ':function(_0x51921e,_0x4328cb,_0x4464c7,_0x161dea,_0x49f8bd,_0x4ec14f,_0x3cdff3){return _0x51921e(_0x4328cb,_0x4464c7,_0x161dea,_0x49f8bd,_0x4ec14f,_0x3cdff3);},'BiaRN':_0x2d3975(0x1a5),'imxLn':_0x2d3975(0x185)};let _0x188242;try{!_0x543c4e[_0x2d3975(0x1cf)]&&(logger[_0x2d3975(0x1c5)](_0x3037f3['mvzGf']),process[_0x2d3975(0x1a2)](0x1));!fs['existsSync'](_0x3037f3['IpFKR'](getCredentialsPath))&&(logger[_0x2d3975(0x1c5)](_0x3037f3[_0x2d3975(0x193)]),await _0x3037f3[_0x2d3975(0x1bd)](sendInstrumentationEvent,_0x543c4e,_0x3037f3[_0x2d3975(0x1c4)],messageTypes[_0x2d3975(0x1af)],_0x3037f3[_0x2d3975(0x1d5)],null,_0x543c4e),process[_0x2d3975(0x1a2)](0x1));logger[_0x2d3975(0x19d)](_0x2d3975(0x1cd)+_0x543c4e[_0x2d3975(0x1cf)]),await _0x3037f3['Yvpgy'](sendInstrumentationEvent,_0x543c4e,_0x3037f3[_0x2d3975(0x1c4)],messageTypes['INFO'],null,null,_0x543c4e);const _0x371fec=JSON[_0x2d3975(0x1db)](fs[_0x2d3975(0x1b3)](_0x3037f3[_0x2d3975(0x1b2)](getCredentialsPath)));global_registry[_0x2d3975(0x182)]=_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1ba)],global_registry[_0x2d3975(0x18e)]=_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1b7)];const _0x27f09b=WS_ENDPOINT[_0x2d3975(0x19c)](_0x3037f3['KsKUC'],_0x371fec['Browserstack'][_0x2d3975(0x1ba)])[_0x2d3975(0x19c)](_0x3037f3[_0x2d3975(0x1a0)],_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1b7)]),_0x1436de={};_0x1436de[_0x2d3975(0x1c7)]=ws,_0x1436de[_0x2d3975(0x1c1)]=0x36ee80,_0x188242=new ReconnectingWebSocket(_0x27f09b,[],_0x1436de),logger[_0x2d3975(0x1ca)](_0x3037f3[_0x2d3975(0x1a4)]),webSocketUtils[_0x2d3975(0x184)](_0x188242,_0x543c4e[_0x2d3975(0x1ce)],_0x543c4e[_0x2d3975(0x1b7)]);const [_0x471877,_0x3985d2]=await _0x3037f3[_0x2d3975(0x1b8)](getGridDetails,_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1ba)],_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1b7)],_0x543c4e[_0x2d3975(0x1cf)]);if(_0x3985d2){const _0x26ef9e=_0x3985d2['info'];global_registry[_0x2d3975(0x1bc)]=_0x26ef9e['cloudProvider'],global_registry[_0x2d3975(0x1a3)]=_0x26ef9e['region'],global_registry[_0x2d3975(0x186)]=_0x26ef9e[_0x2d3975(0x186)];const _0x25eb93=await _0x3037f3[_0x2d3975(0x18f)](getCloudProviderObject,_0x26ef9e[_0x2d3975(0x1bc)],_0x26ef9e[_0x2d3975(0x186)],_0x26ef9e['name'],_0x188242,webSocketUtils,_0x543c4e),[_0x290e49,_0x2281c1,_0xb59833,_0x2b1b4a,_0x40be8d,_0x402c95]=await _0x3037f3[_0x2d3975(0x1d7)](createK8sClient,_0x25eb93,_0x543c4e[_0x2d3975(0x19a)]);await _0x3037f3[_0x2d3975(0x1d0)](scaleUpHubDeployment,_0x2281c1,_0x26ef9e[_0x2d3975(0x1a6)]),logger['info'](_0x3037f3[_0x2d3975(0x199)]),process['exit'](0x0);}_0x3037f3['MJCop'](_0x471877['statusCode'],0x191)&&(logger[_0x2d3975(0x1c5)](_0x3037f3[_0x2d3975(0x1b6)]),await _0x3037f3['WvZNK'](sendInstrumentationEvent,_0x543c4e,_0x3037f3['uZaAQ'],messageTypes[_0x2d3975(0x1af)],_0x3037f3[_0x2d3975(0x1c2)],null,_0x543c4e),process[_0x2d3975(0x1a2)](0x1)),_0x3037f3['ebncP'](_0x471877['statusCode'],0x190)&&(logger[_0x2d3975(0x1c5)](JSON[_0x2d3975(0x1db)](_0x471877[_0x2d3975(0x1ac)])[_0x2d3975(0x1be)]),await _0x3037f3[_0x2d3975(0x1c6)](sendInstrumentationEvent,_0x543c4e,_0x3037f3['uZaAQ'],messageTypes[_0x2d3975(0x1af)],_0x3037f3[_0x2d3975(0x1b5)],null,_0x543c4e),process['exit'](0x1)),logger[_0x2d3975(0x1c5)](_0x2d3975(0x197)+JSON[_0x2d3975(0x19f)](_0x471877)),await _0x3037f3[_0x2d3975(0x18f)](sendInstrumentationEvent,_0x543c4e,_0x3037f3[_0x2d3975(0x1c4)],messageTypes['ERROR'],_0x3037f3[_0x2d3975(0x1bf)],_0x471877,_0x543c4e),process[_0x2d3975(0x1a2)](0x1);}catch(_0xd19a52){const _0x5a84ba=_0x2d3975(0x1ab)+_0xd19a52+'\x20\x0a'+JSON[_0x2d3975(0x19f)](_0xd19a52[_0x2d3975(0x1c8)])+'\x20';logger[_0x2d3975(0x1c5)](_0x5a84ba),process[_0x2d3975(0x1a2)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x4410da=a20_0x1450;function a20_0x1450(_0x50b1cf,_0x1a946f){const _0x2946b7=a20_0x2946();return a20_0x1450=function(_0x145058,_0x50abfb){_0x145058=_0x145058-0x9a;let _0x5adf91=_0x2946b7[_0x145058];return _0x5adf91;},a20_0x1450(_0x50b1cf,_0x1a946f);}(function(_0x5302cd,_0x14550a){const _0x2e7a62=a20_0x1450,_0x4b1921=_0x5302cd();while(!![]){try{const _0x4c2a64=-parseInt(_0x2e7a62(0xb1))/0x1+-parseInt(_0x2e7a62(0xa1))/0x2*(parseInt(_0x2e7a62(0xac))/0x3)+parseInt(_0x2e7a62(0xa3))/0x4+-parseInt(_0x2e7a62(0xa4))/0x5+-parseInt(_0x2e7a62(0xa9))/0x6+parseInt(_0x2e7a62(0xa6))/0x7*(-parseInt(_0x2e7a62(0xad))/0x8)+parseInt(_0x2e7a62(0xa5))/0x9*(parseInt(_0x2e7a62(0xaa))/0xa);if(_0x4c2a64===_0x14550a)break;else _0x4b1921['push'](_0x4b1921['shift']());}catch(_0x53ae69){_0x4b1921['push'](_0x4b1921['shift']());}}}(a20_0x2946,0xc95cd));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x4410da(0xaf));exports[a20_0x4410da(0xa7)]='stop',exports['desc']=a20_0x4410da(0x9a),exports[a20_0x4410da(0x9b)]=function(_0x5142bb){const _0x14b3ce=a20_0x4410da,_0x56a7d3={};_0x56a7d3[_0x14b3ce(0x9d)]=_0x14b3ce(0xa0),_0x56a7d3['QuVpo']=_0x14b3ce(0xa2);const _0x1dab77=_0x56a7d3;return _0x5142bb[_0x14b3ce(0xab)](HELP_HEADER_MESSAGE[_0x14b3ce(0xb0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x14b3ce(0x9e)](_0x1dab77[_0x14b3ce(0x9d)])['demandCommand']()[_0x14b3ce(0x9c)]()[_0x14b3ce(0xa8)]()[_0x14b3ce(0xa2)](_0x1dab77[_0x14b3ce(0x9f)]);},exports[a20_0x4410da(0xae)]=function(_0x5bd285){};function a20_0x2946(){const _0x46c99e=['recommendCommands','ABoPw','commandDir','QuVpo','stop_commands','434982IuAvso','help','2960896VYxnLk','4173915pDoTjH','9tHmREO','102270FroLLt','command','strict','5460720Mkszqz','52636910zeGqzF','usage','21uJcDXB','176ZoZIKK','handler','../config/constants','stop','1590374OuCqQn','Stop\x20a\x20running\x20Automation\x20grid.','builder'];a20_0x2946=function(){return _0x46c99e;};return a20_0x2946();}
1
+ function a20_0x2e37(_0x647406,_0x23de22){const _0x3fdb60=a20_0x3fdb();return a20_0x2e37=function(_0x2e3725,_0x3a48a5){_0x2e3725=_0x2e3725-0x1c6;let _0x2f479a=_0x3fdb60[_0x2e3725];return _0x2f479a;},a20_0x2e37(_0x647406,_0x23de22);}function a20_0x3fdb(){const _0xa5c59d=['builder','desc','1241708zwqEaN','566709ganVHj','../config/constants','7RhGQar','demandCommand','strict','390cCudDg','BsbzB','428kNFRja','shohM','77643RoGtbh','help','stop','epilogue','4173829ZAkEcT','187xGUneI','Stop\x20a\x20running\x20Automation\x20grid.','recommendCommands','12VfgWrK','1404695mWJvVs','1199512VLxsPU'];a20_0x3fdb=function(){return _0xa5c59d;};return a20_0x3fdb();}const a20_0x27bb85=a20_0x2e37;(function(_0x16e8b2,_0x5e903f){const _0x2f72b9=a20_0x2e37,_0x39756a=_0x16e8b2();while(!![]){try{const _0x1b4602=parseInt(_0x2f72b9(0x1d0))/0x1*(parseInt(_0x2f72b9(0x1c9))/0x2)+parseInt(_0x2f72b9(0x1d9))/0x3+-parseInt(_0x2f72b9(0x1d8))/0x4+parseInt(_0x2f72b9(0x1d4))/0x5*(parseInt(_0x2f72b9(0x1d3))/0x6)+parseInt(_0x2f72b9(0x1db))/0x7*(-parseInt(_0x2f72b9(0x1d5))/0x8)+-parseInt(_0x2f72b9(0x1cb))/0x9*(-parseInt(_0x2f72b9(0x1c7))/0xa)+-parseInt(_0x2f72b9(0x1cf))/0xb;if(_0x1b4602===_0x5e903f)break;else _0x39756a['push'](_0x39756a['shift']());}catch(_0x1798d3){_0x39756a['push'](_0x39756a['shift']());}}}(a20_0x3fdb,0x462d7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x27bb85(0x1da));exports['command']=a20_0x27bb85(0x1cd),exports[a20_0x27bb85(0x1d7)]=a20_0x27bb85(0x1d1),exports[a20_0x27bb85(0x1d6)]=function(_0x20d039){const _0x399506=a20_0x27bb85,_0x493d34={};_0x493d34['BsbzB']='stop_commands',_0x493d34[_0x399506(0x1ca)]='help';const _0x3b4951=_0x493d34;return _0x20d039['usage'](HELP_HEADER_MESSAGE[_0x399506(0x1cd)])[_0x399506(0x1ce)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3b4951[_0x399506(0x1c8)])[_0x399506(0x1dc)]()[_0x399506(0x1d2)]()[_0x399506(0x1c6)]()[_0x399506(0x1cc)](_0x3b4951[_0x399506(0x1ca)]);},exports['handler']=function(_0x40aff8){};
@@ -1 +1 @@
1
- const a21_0x39678a=a21_0x5346;function a21_0x5346(_0xb1b9d7,_0x53c36b){const _0x333645=a21_0x3336();return a21_0x5346=function(_0x534626,_0x32ffd1){_0x534626=_0x534626-0x1e3;let _0x1a14c3=_0x333645[_0x534626];return _0x1a14c3;},a21_0x5346(_0xb1b9d7,_0x53c36b);}(function(_0x34e353,_0x2683e9){const _0x21434d=a21_0x5346,_0x437c1d=_0x34e353();while(!![]){try{const _0x4873c1=-parseInt(_0x21434d(0x1f4))/0x1+parseInt(_0x21434d(0x23a))/0x2+-parseInt(_0x21434d(0x22a))/0x3+parseInt(_0x21434d(0x238))/0x4*(-parseInt(_0x21434d(0x208))/0x5)+-parseInt(_0x21434d(0x223))/0x6*(-parseInt(_0x21434d(0x234))/0x7)+parseInt(_0x21434d(0x216))/0x8*(parseInt(_0x21434d(0x207))/0x9)+parseInt(_0x21434d(0x20f))/0xa;if(_0x4873c1===_0x2683e9)break;else _0x437c1d['push'](_0x437c1d['shift']());}catch(_0x1f65f9){_0x437c1d['push'](_0x437c1d['shift']());}}}(a21_0x3336,0xd4401));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x39678a(0x1f5)),{logger}=require(a21_0x39678a(0x20b)),{getCredentialsPath,getGridDetails}=require(a21_0x39678a(0x221)),{scaleDownHubDeployment}=require(a21_0x39678a(0x228)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x39678a(0x20c)),{createK8sClient}=require(a21_0x39678a(0x1f3)),{getCloudProviderObject}=require(a21_0x39678a(0x247));function a21_0x3336(){const _0x20747f=['string','replace','message','xokiM','GbtHN','parse','server-error','type','WebSocket','Browserstack','builder','readFileSync','unauthorised','FSplC','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','QCKbl','9kGjbJh','234485uuFeHE','exit','clusterName','../../config/logger','../../utils/webSocketUtils','ZhnjO','njvAG','15151060hzMUVM','Iujip','stop-grid-called','INFO','stack','gridId','debug','13474272HIwWME','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GsYCy','argv','grid-id','Skip\x20insecure\x20cert\x20verification.','handler','mTZGv','zEyMP','LYGZs','../../utils/utilityMethods','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','6MdNBFs','rjukf','uKPpk','geNxX','epilogue','../../utils/gridComponents','default','4972620vqtdHk','skip-tls-cert-verify','Grid\x20stoppped.','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Stop\x20a\x20running\x20Automation\x20grid.','statusCode','addListeners','cloudProvider','usage','username','6643259cdRPiw','skipTlsCertVerify','<PasswordPlaceholder>','hgiFH','104DEKMXv','info','1520894bjNgne','VWLHT','stringify','ERROR','description','VSuhu','UzXtf','gXeXI','options','Lognu','connectionTimeout','pcfYB','<UsernamePlaceholder>','../../cloudproviders/utils','password','error','boolean','LgKmb','clusterRegion','help','body','region','command','existsSync','pBCCQ','stop','YxuWJ','grid','desc','bstackUsername','../../utils/createk8sClient','1162635ZCTDia','../../config/constants','user'];a21_0x3336=function(){return _0x20747f;};return a21_0x3336();}exports[a21_0x39678a(0x1eb)]=a21_0x39678a(0x1f0),exports[a21_0x39678a(0x1f1)]=a21_0x39678a(0x22e),exports[a21_0x39678a(0x201)]=function(_0xdf3c98){const _0x22063a=a21_0x39678a,_0x2d14a0={};_0x2d14a0[_0x22063a(0x224)]=_0x22063a(0x22d),_0x2d14a0['mTZGv']=_0x22063a(0x1f7),_0x2d14a0[_0x22063a(0x20e)]=_0x22063a(0x21c),_0x2d14a0['gXeXI']=_0x22063a(0x1e5),_0x2d14a0[_0x22063a(0x23b)]=_0x22063a(0x1e8);const _0x36242f=_0x2d14a0,_0x18f0f4={};_0x18f0f4[_0x22063a(0x23e)]=_0x36242f[_0x22063a(0x224)],_0x18f0f4[_0x22063a(0x1fe)]=_0x36242f[_0x22063a(0x21e)];const _0x4ca180={};_0x4ca180[_0x22063a(0x23e)]=_0x36242f[_0x22063a(0x20e)],_0x4ca180[_0x22063a(0x1fe)]=_0x36242f[_0x22063a(0x241)],_0x4ca180[_0x22063a(0x229)]=![];const _0x3966bb={};return _0x3966bb[_0x22063a(0x21b)]=_0x18f0f4,_0x3966bb[_0x22063a(0x22b)]=_0x4ca180,_0xdf3c98[_0x22063a(0x232)](HELP_HEADER_MESSAGE[_0x22063a(0x1ee)])[_0x22063a(0x227)](HELP_FOOTER_MESSAGE)[_0x22063a(0x242)](_0x3966bb)[_0x22063a(0x1e8)](_0x36242f[_0x22063a(0x23b)])[_0x22063a(0x21a)];},exports[a21_0x39678a(0x21d)]=async function(_0x3747c0){const _0x46caf9=a21_0x39678a,_0x226520={'xokiM':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Iujip':function(_0x294757){return _0x294757();},'pcfYB':_0x46caf9(0x222),'YxuWJ':function(_0x18d9f2,_0x45d3d8,_0x4c61f5,_0x4ec1d1,_0x2935cc,_0x5683f2,_0x319138){return _0x18d9f2(_0x45d3d8,_0x4c61f5,_0x4ec1d1,_0x2935cc,_0x5683f2,_0x319138);},'VSuhu':_0x46caf9(0x211),'vVOZM':'init-not-called','QCKbl':function(_0x2df240,_0x4eaa2e,_0x11d445,_0x3ebe9a,_0x4104e8,_0xb79a2c,_0x2d5e67){return _0x2df240(_0x4eaa2e,_0x11d445,_0x3ebe9a,_0x4104e8,_0xb79a2c,_0x2d5e67);},'uKPpk':function(_0x190a64){return _0x190a64();},'Lognu':_0x46caf9(0x246),'zEyMP':_0x46caf9(0x236),'LgKmb':'Adding\x20Websocket\x20listeners','CdWJV':function(_0x42fe42,_0x30c6fe,_0x3b9243,_0x2566ca){return _0x42fe42(_0x30c6fe,_0x3b9243,_0x2566ca);},'GsYCy':function(_0x3a5ed7,_0x101113,_0x23a319){return _0x3a5ed7(_0x101113,_0x23a319);},'AngnA':function(_0x3aeb18,_0x1724ee,_0x3e43ae){return _0x3aeb18(_0x1724ee,_0x3e43ae);},'UzXtf':_0x46caf9(0x22c),'hgiFH':function(_0x21e260,_0x36ca12){return _0x21e260===_0x36ca12;},'hJylA':_0x46caf9(0x205),'pMkcx':function(_0x5973d5,_0x972d0f,_0x9ea6df,_0x45da98,_0x364be5,_0x1cbbfd,_0x58fe8c){return _0x5973d5(_0x972d0f,_0x9ea6df,_0x45da98,_0x364be5,_0x1cbbfd,_0x58fe8c);},'GbtHN':_0x46caf9(0x203),'geNxX':function(_0x349b7c,_0x210073){return _0x349b7c===_0x210073;},'ZhnjO':function(_0x9f5e10,_0x4f2634,_0x25f0bc,_0x58bd4c,_0x2b3731,_0x4053e8,_0x3967a5){return _0x9f5e10(_0x4f2634,_0x25f0bc,_0x58bd4c,_0x2b3731,_0x4053e8,_0x3967a5);},'LYGZs':'invalid-grid-id','FSplC':function(_0x428200,_0x2ca874,_0x34ff96,_0x3cc6c8,_0x2a7e96,_0xb6543b,_0x2f76c3){return _0x428200(_0x2ca874,_0x34ff96,_0x3cc6c8,_0x2a7e96,_0xb6543b,_0x2f76c3);},'pBCCQ':_0x46caf9(0x1fd)};let _0x23863e;try{!_0x3747c0[_0x46caf9(0x214)]&&(logger[_0x46caf9(0x1e4)](_0x226520[_0x46caf9(0x1fa)]),process[_0x46caf9(0x209)](0x1));!fs[_0x46caf9(0x1ec)](_0x226520[_0x46caf9(0x210)](getCredentialsPath))&&(logger[_0x46caf9(0x1e4)](_0x226520[_0x46caf9(0x245)]),await _0x226520[_0x46caf9(0x1ef)](sendInstrumentationEvent,_0x3747c0,_0x226520[_0x46caf9(0x23f)],messageTypes[_0x46caf9(0x23d)],_0x226520['vVOZM'],null,_0x3747c0),process['exit'](0x1));logger[_0x46caf9(0x239)]('Stopping\x20grid\x20'+_0x3747c0['gridId']),await _0x226520[_0x46caf9(0x206)](sendInstrumentationEvent,_0x3747c0,_0x226520[_0x46caf9(0x23f)],messageTypes[_0x46caf9(0x212)],null,null,_0x3747c0);const _0x4bb6e5=JSON[_0x46caf9(0x1fc)](fs[_0x46caf9(0x202)](_0x226520[_0x46caf9(0x225)](getCredentialsPath)));global_registry[_0x46caf9(0x1f2)]=_0x4bb6e5[_0x46caf9(0x200)][_0x46caf9(0x233)],global_registry['bstackAccesskey']=_0x4bb6e5[_0x46caf9(0x200)][_0x46caf9(0x1e3)];const _0xcafd85=WS_ENDPOINT[_0x46caf9(0x1f8)](_0x226520[_0x46caf9(0x243)],_0x4bb6e5[_0x46caf9(0x200)][_0x46caf9(0x233)])['replace'](_0x226520[_0x46caf9(0x21f)],_0x4bb6e5[_0x46caf9(0x200)][_0x46caf9(0x1e3)]),_0x1fe02e={};_0x1fe02e[_0x46caf9(0x1ff)]=ws,_0x1fe02e[_0x46caf9(0x244)]=0x36ee80,_0x23863e=new ReconnectingWebSocket(_0xcafd85,[],_0x1fe02e),logger[_0x46caf9(0x215)](_0x226520[_0x46caf9(0x1e6)]),webSocketUtils[_0x46caf9(0x230)](_0x23863e,_0x3747c0[_0x46caf9(0x1f6)],_0x3747c0[_0x46caf9(0x1e3)]);const [_0x4cc5e9,_0x2d1ef2]=await _0x226520['CdWJV'](getGridDetails,_0x4bb6e5['Browserstack']['username'],_0x4bb6e5['Browserstack'][_0x46caf9(0x1e3)],_0x3747c0[_0x46caf9(0x214)]);if(_0x2d1ef2){const _0x2cf122=_0x2d1ef2['info'];global_registry[_0x46caf9(0x231)]=_0x2cf122[_0x46caf9(0x231)],global_registry[_0x46caf9(0x1e7)]=_0x2cf122[_0x46caf9(0x1ea)],global_registry[_0x46caf9(0x20a)]=_0x2cf122[_0x46caf9(0x20a)];const _0x921582=await _0x226520['QCKbl'](getCloudProviderObject,_0x2cf122[_0x46caf9(0x231)],_0x2cf122[_0x46caf9(0x20a)],_0x2cf122[_0x46caf9(0x217)],_0x23863e,webSocketUtils,_0x3747c0),[_0x2f89c2,_0x6242a2,_0x1d05a9,_0x3bd19c,_0x92f8ab,_0x3630ce]=await _0x226520[_0x46caf9(0x219)](createK8sClient,_0x921582,_0x3747c0[_0x46caf9(0x235)]);await _0x226520['AngnA'](scaleDownHubDeployment,_0x6242a2,_0x2cf122[_0x46caf9(0x217)]),logger[_0x46caf9(0x239)](_0x226520[_0x46caf9(0x240)]),process[_0x46caf9(0x209)](0x0);}_0x226520[_0x46caf9(0x237)](_0x4cc5e9[_0x46caf9(0x22f)],0x191)&&(logger[_0x46caf9(0x1e4)](_0x226520['hJylA']),await _0x226520['pMkcx'](sendInstrumentationEvent,_0x3747c0,_0x226520[_0x46caf9(0x23f)],messageTypes[_0x46caf9(0x23d)],_0x226520[_0x46caf9(0x1fb)],null,_0x3747c0),process[_0x46caf9(0x209)](0x1)),_0x226520[_0x46caf9(0x226)](_0x4cc5e9[_0x46caf9(0x22f)],0x190)&&(logger[_0x46caf9(0x1e4)](JSON[_0x46caf9(0x1fc)](_0x4cc5e9[_0x46caf9(0x1e9)])[_0x46caf9(0x1f9)]),await _0x226520[_0x46caf9(0x20d)](sendInstrumentationEvent,_0x3747c0,_0x226520[_0x46caf9(0x23f)],messageTypes[_0x46caf9(0x23d)],_0x226520[_0x46caf9(0x220)],null,_0x3747c0),process[_0x46caf9(0x209)](0x1)),logger[_0x46caf9(0x1e4)](_0x46caf9(0x218)+JSON['stringify'](_0x4cc5e9)),await _0x226520[_0x46caf9(0x204)](sendInstrumentationEvent,_0x3747c0,_0x226520[_0x46caf9(0x23f)],messageTypes['ERROR'],_0x226520[_0x46caf9(0x1ed)],_0x4cc5e9,_0x3747c0),process['exit'](0x1);}catch(_0x376ba1){const _0x6c19fd='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x376ba1+'\x20\x0a'+JSON[_0x46caf9(0x23c)](_0x376ba1[_0x46caf9(0x213)])+'\x20';logger['error'](_0x6c19fd),process['exit'](0x1);}};
1
+ function a21_0x3b10(_0x4c098c,_0x12aad7){const _0x3be4c2=a21_0x3be4();return a21_0x3b10=function(_0x3b10db,_0x222c74){_0x3b10db=_0x3b10db-0x19f;let _0x4a2ae5=_0x3be4c2[_0x3b10db];return _0x4a2ae5;},a21_0x3b10(_0x4c098c,_0x12aad7);}const a21_0x83a784=a21_0x3b10;function a21_0x3be4(){const _0x373436=['password','epilogue','info','kLQtf','connectionTimeout','<PasswordPlaceholder>','DVAkG','Browserstack','server-error','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','reconnecting-websocket','../../utils/utilityMethods','stack','body','ZNTGS','error','2985wapLfC','argv','../../utils/createk8sClient','Grid\x20stoppped.','1789896AWffAH','eXbjh','stringify','skipTlsCertVerify','vsbSn','1ZwyqLp','qtwDw','TRUvF','description','message','addListeners','unauthorised','9JnOLjN','qQloa','username','saukE','../../utils/webSocketUtils','UYhgE','type','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Stopping\x20grid\x20','<UsernamePlaceholder>','565610IxBGft','bstackUsername','cloudProvider','33FgFTzS','name','readFileSync','JbLXn','RRItu','desc','debug','invalid-grid-id','WebSocket','parse','../../utils/gridComponents','boolean','clusterRegion','332hUByFF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','options','GZHDQ','Stop\x20a\x20running\x20Automation\x20grid.','192540ZhFQpJ','stop-grid-called','OupLI','exit','../../config/logger','260446YCQbWq','Adding\x20Websocket\x20listeners','clusterName','builder','TUJic','ntEJt','ERROR','2220477FRMLfw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skip-tls-cert-verify','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','gridId','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','INFO','existsSync','61640AUhqzt','replace','btvtb','user','../../utils/instrumentationUtils','statusCode'];a21_0x3be4=function(){return _0x373436;};return a21_0x3be4();}(function(_0x1d3645,_0x2d754d){const _0x51119e=a21_0x3b10,_0x405482=_0x1d3645();while(!![]){try{const _0x356d53=parseInt(_0x51119e(0x1b3))/0x1*(-parseInt(_0x51119e(0x1df))/0x2)+-parseInt(_0x51119e(0x1da))/0x3+-parseInt(_0x51119e(0x1d4))/0x4*(parseInt(_0x51119e(0x1aa))/0x5)+parseInt(_0x51119e(0x1ae))/0x6+parseInt(_0x51119e(0x1e6))/0x7+-parseInt(_0x51119e(0x1ef))/0x8*(parseInt(_0x51119e(0x1ba))/0x9)+-parseInt(_0x51119e(0x1c4))/0xa*(parseInt(_0x51119e(0x1c7))/0xb);if(_0x356d53===_0x2d754d)break;else _0x405482['push'](_0x405482['shift']());}catch(_0x375aeb){_0x405482['push'](_0x405482['shift']());}}}(a21_0x3be4,0x2f689));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x83a784(0x1a4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x83a784(0x1de)),{getCredentialsPath,getGridDetails}=require(a21_0x83a784(0x1a5)),{scaleDownHubDeployment}=require(a21_0x83a784(0x1d1)),{sendInstrumentationEvent}=require(a21_0x83a784(0x1f3)),webSocketUtils=require(a21_0x83a784(0x1be)),{createK8sClient}=require(a21_0x83a784(0x1ac)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports[a21_0x83a784(0x1cc)]=a21_0x83a784(0x1d9),exports[a21_0x83a784(0x1e2)]=function(_0x3c4797){const _0x4741f8=a21_0x83a784,_0x425ef8={};_0x425ef8[_0x4741f8(0x1e4)]=_0x4741f8(0x1a3),_0x425ef8['BfBdk']='string',_0x425ef8['yyIOZ']='Skip\x20insecure\x20cert\x20verification.',_0x425ef8[_0x4741f8(0x1bd)]=_0x4741f8(0x1d2),_0x425ef8[_0x4741f8(0x1b5)]=_0x4741f8(0x1d6);const _0x599f10=_0x425ef8,_0x319933={};_0x319933[_0x4741f8(0x1b6)]=_0x599f10[_0x4741f8(0x1e4)],_0x319933[_0x4741f8(0x1c0)]=_0x599f10['BfBdk'];const _0x3c3eff={};_0x3c3eff[_0x4741f8(0x1b6)]=_0x599f10['yyIOZ'],_0x3c3eff[_0x4741f8(0x1c0)]=_0x599f10['saukE'],_0x3c3eff['default']=![];const _0x121093={};return _0x121093['grid-id']=_0x319933,_0x121093[_0x4741f8(0x1e8)]=_0x3c3eff,_0x3c4797[_0x4741f8(0x1e9)](HELP_HEADER_MESSAGE['stop'])[_0x4741f8(0x1f6)](HELP_FOOTER_MESSAGE)[_0x4741f8(0x1d7)](_0x121093)[_0x4741f8(0x1d6)](_0x599f10[_0x4741f8(0x1b5)])[_0x4741f8(0x1ab)];},exports['handler']=async function(_0x285250){const _0x36b4ab=a21_0x83a784,_0x26a408={'JXzkF':_0x36b4ab(0x1c1),'OupLI':function(_0x503f4f){return _0x503f4f();},'GZHDQ':_0x36b4ab(0x1d5),'qtwDw':function(_0x13a87b,_0x5f23d1,_0x2f380d,_0xbf2ef,_0x519741,_0x57277e,_0x2187a7){return _0x13a87b(_0x5f23d1,_0x2f380d,_0xbf2ef,_0x519741,_0x57277e,_0x2187a7);},'JbLXn':_0x36b4ab(0x1db),'TUJic':'init-not-called','UYhgE':_0x36b4ab(0x1c3),'btvtb':_0x36b4ab(0x19f),'ZNTGS':_0x36b4ab(0x1e0),'vsbSn':function(_0x1a74c3,_0x5bac39,_0x396ded,_0x5f4fa5){return _0x1a74c3(_0x5bac39,_0x396ded,_0x5f4fa5);},'eXbjh':function(_0x380f59,_0x462fbb,_0x38d28c){return _0x380f59(_0x462fbb,_0x38d28c);},'kLQtf':_0x36b4ab(0x1ad),'qQloa':function(_0x6a078a,_0x777035){return _0x6a078a===_0x777035;},'VLWtF':_0x36b4ab(0x1e7),'RRItu':function(_0x121103,_0x6192a,_0x1f1295,_0x2386f5,_0x2553de,_0x578768,_0x409b69){return _0x121103(_0x6192a,_0x1f1295,_0x2386f5,_0x2553de,_0x578768,_0x409b69);},'dmMOl':_0x36b4ab(0x1b9),'DVAkG':_0x36b4ab(0x1ce),'SHxkm':_0x36b4ab(0x1a2)};let _0x19aff6;try{!_0x285250[_0x36b4ab(0x1eb)]&&(logger['error'](_0x26a408['JXzkF']),process[_0x36b4ab(0x1dd)](0x1));!fs[_0x36b4ab(0x1ee)](_0x26a408['OupLI'](getCredentialsPath))&&(logger[_0x36b4ab(0x1a9)](_0x26a408[_0x36b4ab(0x1d8)]),await _0x26a408['qtwDw'](sendInstrumentationEvent,_0x285250,_0x26a408[_0x36b4ab(0x1ca)],messageTypes[_0x36b4ab(0x1e5)],_0x26a408[_0x36b4ab(0x1e3)],null,_0x285250),process[_0x36b4ab(0x1dd)](0x1));logger[_0x36b4ab(0x1f7)](_0x36b4ab(0x1c2)+_0x285250[_0x36b4ab(0x1eb)]),await _0x26a408[_0x36b4ab(0x1b4)](sendInstrumentationEvent,_0x285250,_0x26a408[_0x36b4ab(0x1ca)],messageTypes[_0x36b4ab(0x1ed)],null,null,_0x285250);const _0xa2dc62=JSON[_0x36b4ab(0x1d0)](fs[_0x36b4ab(0x1c9)](_0x26a408[_0x36b4ab(0x1dc)](getCredentialsPath)));global_registry[_0x36b4ab(0x1c5)]=_0xa2dc62[_0x36b4ab(0x1a1)]['username'],global_registry['bstackAccesskey']=_0xa2dc62[_0x36b4ab(0x1a1)][_0x36b4ab(0x1f5)];const _0x560f29=WS_ENDPOINT[_0x36b4ab(0x1f0)](_0x26a408[_0x36b4ab(0x1bf)],_0xa2dc62[_0x36b4ab(0x1a1)][_0x36b4ab(0x1bc)])['replace'](_0x26a408[_0x36b4ab(0x1f1)],_0xa2dc62[_0x36b4ab(0x1a1)][_0x36b4ab(0x1f5)]),_0x46e88e={};_0x46e88e[_0x36b4ab(0x1cf)]=ws,_0x46e88e[_0x36b4ab(0x1f9)]=0x36ee80,_0x19aff6=new ReconnectingWebSocket(_0x560f29,[],_0x46e88e),logger[_0x36b4ab(0x1cd)](_0x26a408[_0x36b4ab(0x1a8)]),webSocketUtils[_0x36b4ab(0x1b8)](_0x19aff6,_0x285250[_0x36b4ab(0x1f2)],_0x285250['password']);const [_0x588888,_0x34d07d]=await _0x26a408[_0x36b4ab(0x1b2)](getGridDetails,_0xa2dc62[_0x36b4ab(0x1a1)][_0x36b4ab(0x1bc)],_0xa2dc62['Browserstack'][_0x36b4ab(0x1f5)],_0x285250['gridId']);if(_0x34d07d){const _0x48f533=_0x34d07d['info'];global_registry[_0x36b4ab(0x1c6)]=_0x48f533[_0x36b4ab(0x1c6)],global_registry[_0x36b4ab(0x1d3)]=_0x48f533['region'],global_registry[_0x36b4ab(0x1e1)]=_0x48f533['clusterName'];const _0x5dd9a2=await _0x26a408[_0x36b4ab(0x1b4)](getCloudProviderObject,_0x48f533['cloudProvider'],_0x48f533['clusterName'],_0x48f533[_0x36b4ab(0x1c8)],_0x19aff6,webSocketUtils,_0x285250),[_0x209b45,_0x51bc4e,_0x28bd8a,_0x485e5c,_0x1a3eaf,_0x434902]=await _0x26a408[_0x36b4ab(0x1af)](createK8sClient,_0x5dd9a2,_0x285250[_0x36b4ab(0x1b1)]);await _0x26a408[_0x36b4ab(0x1af)](scaleDownHubDeployment,_0x51bc4e,_0x48f533[_0x36b4ab(0x1c8)]),logger['info'](_0x26a408[_0x36b4ab(0x1f8)]),process[_0x36b4ab(0x1dd)](0x0);}_0x26a408[_0x36b4ab(0x1bb)](_0x588888['statusCode'],0x191)&&(logger['error'](_0x26a408['VLWtF']),await _0x26a408[_0x36b4ab(0x1cb)](sendInstrumentationEvent,_0x285250,_0x26a408[_0x36b4ab(0x1ca)],messageTypes['ERROR'],_0x26a408['dmMOl'],null,_0x285250),process[_0x36b4ab(0x1dd)](0x1)),_0x26a408[_0x36b4ab(0x1bb)](_0x588888[_0x36b4ab(0x1f4)],0x190)&&(logger[_0x36b4ab(0x1a9)](JSON[_0x36b4ab(0x1d0)](_0x588888[_0x36b4ab(0x1a7)])[_0x36b4ab(0x1b7)]),await _0x26a408['qtwDw'](sendInstrumentationEvent,_0x285250,_0x26a408['JbLXn'],messageTypes[_0x36b4ab(0x1e5)],_0x26a408[_0x36b4ab(0x1a0)],null,_0x285250),process['exit'](0x1)),logger[_0x36b4ab(0x1a9)](_0x36b4ab(0x1ea)+JSON['stringify'](_0x588888)),await _0x26a408[_0x36b4ab(0x1cb)](sendInstrumentationEvent,_0x285250,_0x26a408['JbLXn'],messageTypes[_0x36b4ab(0x1e5)],_0x26a408['SHxkm'],_0x588888,_0x285250),process[_0x36b4ab(0x1dd)](0x1);}catch(_0x575bf0){const _0x45227f=_0x36b4ab(0x1ec)+_0x575bf0+'\x20\x0a'+JSON[_0x36b4ab(0x1b0)](_0x575bf0[_0x36b4ab(0x1a6)])+'\x20';logger[_0x36b4ab(0x1a9)](_0x45227f),process[_0x36b4ab(0x1dd)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x1e12a0=a22_0x460c;(function(_0x52de92,_0x2af0ba){const _0x2014b0=a22_0x460c,_0x12dc19=_0x52de92();while(!![]){try{const _0x3f0e53=-parseInt(_0x2014b0(0x202))/0x1+parseInt(_0x2014b0(0x1c7))/0x2*(parseInt(_0x2014b0(0x21a))/0x3)+parseInt(_0x2014b0(0x1ed))/0x4+-parseInt(_0x2014b0(0x1f0))/0x5*(parseInt(_0x2014b0(0x1c2))/0x6)+-parseInt(_0x2014b0(0x1d0))/0x7+-parseInt(_0x2014b0(0x1de))/0x8+parseInt(_0x2014b0(0x1dd))/0x9;if(_0x3f0e53===_0x2af0ba)break;else _0x12dc19['push'](_0x12dc19['shift']());}catch(_0x215e49){_0x12dc19['push'](_0x12dc19['shift']());}}}(a22_0x5755,0xce0d4),require(a22_0x1e12a0(0x1b1))[a22_0x1e12a0(0x1ae)]());let gridURL=a22_0x1e12a0(0x219),bsApiUrl=a22_0x1e12a0(0x1f3),agApiUrl=a22_0x1e12a0(0x1bb);const _env=(process[a22_0x1e12a0(0x1c5)][a22_0x1e12a0(0x1e2)]||'prod')[a22_0x1e12a0(0x1ff)]();if(_env===a22_0x1e12a0(0x20c)||_env==='stag')gridURL=a22_0x1e12a0(0x1c4),bsApiUrl=a22_0x1e12a0(0x1e9),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x1e12a0(0x206)||_env==='pre-prod')&&(gridURL=a22_0x1e12a0(0x213),bsApiUrl=a22_0x1e12a0(0x1f7),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x1e12a0(0x1b0)]=process['env'][a22_0x1e12a0(0x1b0)]||gridURL,exports[a22_0x1e12a0(0x1e1)]=process[a22_0x1e12a0(0x1c5)]['BS_API_URL']||bsApiUrl,exports[a22_0x1e12a0(0x1b3)]=process[a22_0x1e12a0(0x1c5)][a22_0x1e12a0(0x1b3)]||agApiUrl,exports[a22_0x1e12a0(0x1ba)]=a22_0x1e12a0(0x209)+this[a22_0x1e12a0(0x1b3)]+a22_0x1e12a0(0x1b5),exports[a22_0x1e12a0(0x1ec)]=a22_0x1e12a0(0x1e5),exports[a22_0x1e12a0(0x1d6)]=a22_0x1e12a0(0x1c1),exports[a22_0x1e12a0(0x1eb)]='high-scale-grid',exports['AWS']=a22_0x1e12a0(0x217),exports[a22_0x1e12a0(0x20b)]=a22_0x1e12a0(0x1d5),exports[a22_0x1e12a0(0x1c3)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x1e12a0(0x1bd)]=a22_0x1e12a0(0x1d4),exports[a22_0x1e12a0(0x1ee)]=a22_0x1e12a0(0x1c9),exports[a22_0x1e12a0(0x1cc)]=a22_0x1e12a0(0x1fb),exports[a22_0x1e12a0(0x1d9)]=a22_0x1e12a0(0x1d8),exports[a22_0x1e12a0(0x1fc)]=[this[a22_0x1e12a0(0x215)],this[a22_0x1e12a0(0x1cc)],this[a22_0x1e12a0(0x1d9)]];const a22_0x4a01ad={};a22_0x4a01ad[a22_0x1e12a0(0x200)]=a22_0x1e12a0(0x1b9),a22_0x4a01ad[a22_0x1e12a0(0x1bc)]=a22_0x1e12a0(0x204);const a22_0xaae07a={};a22_0xaae07a[a22_0x1e12a0(0x200)]=a22_0x1e12a0(0x1e7),a22_0xaae07a['Value']='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x4a01ad,a22_0xaae07a];if(process['env'][a22_0x1e12a0(0x1b2)]){const parsedTags=process[a22_0x1e12a0(0x1c5)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x1e12a0(0x1d3)](',');parsedTags[a22_0x1e12a0(0x1c0)](_0x593eab=>{const _0x53115a=a22_0x1e12a0,_0xc0d60e=_0x593eab[_0x53115a(0x1d3)](':'),_0x265fe5={};_0x265fe5[_0x53115a(0x200)]=_0xc0d60e[0x0],_0x265fe5[_0x53115a(0x1bc)]=_0xc0d60e[0x1],common_hst_tags_list[_0x53115a(0x211)](_0x265fe5);});}exports[a22_0x1e12a0(0x1f9)]=common_hst_tags_list;const a22_0x19d238={};a22_0x19d238[a22_0x1e12a0(0x1b9)]=a22_0x1e12a0(0x204),a22_0x19d238[a22_0x1e12a0(0x1e7)]=a22_0x1e12a0(0x1da),exports['HST_CLUSTER_TAGS']=a22_0x19d238,exports[a22_0x1e12a0(0x1c8)]=[this[a22_0x1e12a0(0x215)]];const a22_0x4cba70={};a22_0x4cba70['LOG']='log',a22_0x4cba70[a22_0x1e12a0(0x1f6)]=a22_0x1e12a0(0x207),a22_0x4cba70[a22_0x1e12a0(0x1fe)]=a22_0x1e12a0(0x1be),a22_0x4cba70[a22_0x1e12a0(0x1e6)]=a22_0x1e12a0(0x1f1),a22_0x4cba70[a22_0x1e12a0(0x216)]=a22_0x1e12a0(0x20d),exports[a22_0x1e12a0(0x1f8)]=a22_0x4cba70,exports[a22_0x1e12a0(0x1b6)]={},exports[a22_0x1e12a0(0x1dc)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x209a7d={};a22_0x209a7d[a22_0x1e12a0(0x1cb)]=a22_0x1e12a0(0x1ce)+this['LINK_MESSAGE'],a22_0x209a7d[a22_0x1e12a0(0x210)]=a22_0x1e12a0(0x1af)+this[a22_0x1e12a0(0x1dc)],a22_0x209a7d[a22_0x1e12a0(0x1c6)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x1e12a0(0x1dc)],a22_0x209a7d[a22_0x1e12a0(0x1e3)]=a22_0x1e12a0(0x218)+this[a22_0x1e12a0(0x1dc)],a22_0x209a7d[a22_0x1e12a0(0x212)]={},a22_0x209a7d['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x1e12a0(0x1dc)],a22_0x209a7d[a22_0x1e12a0(0x1fd)]=a22_0x1e12a0(0x205)+this[a22_0x1e12a0(0x1dc)],a22_0x209a7d[a22_0x1e12a0(0x1ca)]=a22_0x1e12a0(0x20a)+this[a22_0x1e12a0(0x1dc)],a22_0x209a7d[a22_0x1e12a0(0x1e8)]=a22_0x1e12a0(0x1b8)+this[a22_0x1e12a0(0x1dc)],a22_0x209a7d[a22_0x1e12a0(0x214)]=a22_0x1e12a0(0x1ea)+this['LINK_MESSAGE'],a22_0x209a7d[a22_0x1e12a0(0x212)][a22_0x1e12a0(0x1cb)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x1e12a0(0x1dc)],a22_0x209a7d[a22_0x1e12a0(0x212)][a22_0x1e12a0(0x1d2)]=a22_0x1e12a0(0x1d7)+this[a22_0x1e12a0(0x1dc)],a22_0x209a7d[a22_0x1e12a0(0x212)]['gridProfile']=a22_0x1e12a0(0x203)+this['LINK_MESSAGE'],exports['HELP_HEADER_MESSAGE']=a22_0x209a7d,exports[a22_0x1e12a0(0x1f2)]=a22_0x1e12a0(0x1b4);function a22_0x5755(){const _0x543121=['REGION','config','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','DASHBOARD_ENDPOINT','dotenv','TURBOSCALE_CUSTOM_TAGS','AG_API_URL','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','global_registry','CLI_ARGS_REGEX','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','browserstack:managedBy','WS_ENDPOINT','grid-api.browserstack.com','Value','CLUSTER_HUB_HA_STACK_NAME','gridUrl','NULL','forEach','BrowserStackIAMUser','168642nhAXKw','CLUSTER_AUTOSCALER_STACK_NAME','grid-devhst.bsstag.com','env','configure','10NiClRo','SUPPORTED_CLOUD_PROVIDERS','browserstack-turboscale-grid','start','root','AZURE','info','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','high-scale-grid-cluster','5731509JsnvBH','unknown','grid','split','BSTACK-ATS-CLUSTER-HUB-HA','BSTACK-ATS-CLUSTER','IAM_USER_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','gcp','GCP','BrowserStack-Automate-TurboScale','error','LINK_MESSAGE','27149283xttFxg','6285496ctczVM','success','REDACTED','BS_API_URL','BROWSERSTACK_ENV','create','us-east-1','credentials','CLI_RUN_STARTED','browserstack:service','stop','api-devhst.bsstag.com','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','DEFAULT_GRID_NAME','CP_CONFIG_FILE','1344808JozoKy','TURBOSCALE_DEPLOYMENT','UNKNOWN','290uERSnz','cliRunStarted','HELP_FOOTER_MESSAGE','api.browserstack.com','warning','CLUSTER','RESOURCES','api-preprod.bsstag.com','WS_EVENTS','COMMON_HST_TAGS','RAW_ARGS_REGEX','azure','ALL_SUPPORTED_CLOUD_PROVIDERS','connect','GRID_URL','toLowerCase','Key','[REDACTED]','610501pLTpiE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','BrowserStack','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','preprod','resourceInfo','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','wss://','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','CLUSTER_DEP_STACK_NAME','staging','cliRunFinished','INFO','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','init','push','list','grid-preprod.bsstag.com','pre_check','AWS','CLI_RUN_FINISHED','aws','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','grid.browserstack.com','801828xLhaPe'];a22_0x5755=function(){return _0x543121;};return a22_0x5755();}const a22_0x511420={};a22_0x511420['SUCCESS']=a22_0x1e12a0(0x1df),a22_0x511420['ERROR']=a22_0x1e12a0(0x1db),a22_0x511420[a22_0x1e12a0(0x20e)]=a22_0x1e12a0(0x1cd),a22_0x511420['WARNING']=a22_0x1e12a0(0x1f4),a22_0x511420[a22_0x1e12a0(0x1ef)]=a22_0x1e12a0(0x1d1),a22_0x511420[a22_0x1e12a0(0x1bf)]=null,exports['messageTypes']=a22_0x511420,exports[a22_0x1e12a0(0x1b7)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1e12a0(0x1fa)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1e12a0(0x1e0)]=a22_0x1e12a0(0x201);const a22_0x284712={};a22_0x284712['grid-profile']=a22_0x1e12a0(0x20f);const a22_0x3caf2c={};a22_0x3caf2c['pre-check']=a22_0x284712,exports['MessageDescription']=a22_0x3caf2c,exports['TRIAL_GRID_URL']=a22_0x1e12a0(0x208);const a22_0xcf8775={};function a22_0x460c(_0x15e9a9,_0x52d817){const _0x575538=a22_0x5755();return a22_0x460c=function(_0x460cf3,_0x37326f){_0x460cf3=_0x460cf3-0x1ad;let _0x3a6e22=_0x575538[_0x460cf3];return _0x3a6e22;},a22_0x460c(_0x15e9a9,_0x52d817);}a22_0xcf8775[a22_0x1e12a0(0x1f5)]=a22_0x1e12a0(0x1cf),a22_0xcf8775['CLOUD_PROVIDER']='aws',a22_0xcf8775[a22_0x1e12a0(0x1ad)]=a22_0x1e12a0(0x1e4),exports['DEFAULT_CLUSTER_DETAILS']=a22_0xcf8775;
1
+ const a22_0x42b2ba=a22_0x4838;(function(_0x30f948,_0x47ae02){const _0x5acc8c=a22_0x4838,_0xe68447=_0x30f948();while(!![]){try{const _0x452809=parseInt(_0x5acc8c(0x195))/0x1+-parseInt(_0x5acc8c(0x16f))/0x2*(-parseInt(_0x5acc8c(0x1b4))/0x3)+-parseInt(_0x5acc8c(0x170))/0x4+parseInt(_0x5acc8c(0x1a4))/0x5+-parseInt(_0x5acc8c(0x190))/0x6*(parseInt(_0x5acc8c(0x1ab))/0x7)+parseInt(_0x5acc8c(0x1bf))/0x8+parseInt(_0x5acc8c(0x1b0))/0x9;if(_0x452809===_0x47ae02)break;else _0xe68447['push'](_0xe68447['shift']());}catch(_0x47f766){_0xe68447['push'](_0xe68447['shift']());}}}(a22_0x3223,0x428a8),require(a22_0x42b2ba(0x1bb))[a22_0x42b2ba(0x193)]());let gridURL=a22_0x42b2ba(0x19e),bsApiUrl=a22_0x42b2ba(0x1ae),agApiUrl=a22_0x42b2ba(0x18c);const _env=(process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x1a5)]||a22_0x42b2ba(0x19c))[a22_0x42b2ba(0x1d3)]();if(_env==='staging'||_env===a22_0x42b2ba(0x185))gridURL=a22_0x42b2ba(0x1b5),bsApiUrl=a22_0x42b2ba(0x1aa),agApiUrl=a22_0x42b2ba(0x16d);else(_env===a22_0x42b2ba(0x17c)||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl='api-preprod.bsstag.com',agApiUrl='grid-api-preprod.bsstag.com');function a22_0x3223(){const _0x5960b9=['browserstack:service','LINK_MESSAGE','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','12kZxkDD','grid-devhst.bsstag.com','GCP','BrowserStackIAMUser','global_registry','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','gridProfile','dotenv','CLI_RUN_STARTED','root','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','1927912wLhAvU','forEach','WS_EVENTS','Value','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','TURBOSCALE_DEPLOYMENT','create','BSTACK-ATS-CLUSTER-HUB-HA','CLUSTER','TURBOSCALE_CUSTOM_TAGS','wss://','aws','IAM_USER_NAME','pre-check','configure','unknown','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','UNKNOWN','SUPPORTED_CLOUD_PROVIDERS','env','toLowerCase','CLUSTER_HUB_HA_STACK_NAME','MessageDescription','browserstack:managedBy','grid-api-devhst.bsstag.com','gridUrl','56858nugehW','1638808WpGDgN','CLOUD_PROVIDER','DASHBOARD_ENDPOINT','CP_CONFIG_FILE','CLI_ARGS_REGEX','cliRunStarted','Key','resourceInfo','delete','RAW_ARGS_REGEX','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','warning','preprod','list','AG_API_URL','us-east-1','BS_API_URL','push','credentials','split','COMMON_HST_TAGS','stag','AWS','gcp','REGION','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','init','WARNING','grid-api.browserstack.com','LOG','AZURE','messageTypes','1400916WvhCTL','BSTACK-ATS-CLUSTER-AUTOSCALER','[REDACTED]','config','HST_CLUSTER_TAGS','251910ndyzbo','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','start','info','error','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','TRIAL_GRID_URL','prod','SUCCESS','grid.browserstack.com','log','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BrowserStack-Automate-TurboScale','BSTACK-ATS-CLUSTER','HELP_FOOTER_MESSAGE','496480jFFEnI','BROWSERSTACK_ENV','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLI_RUN_FINISHED','DEFAULT_CLUSTER_DETAILS','api-devhst.bsstag.com','14ngMsHe','pre_check','HELP_HEADER_MESSAGE','api.browserstack.com','browserstack-turboscale-grid','3989835bIwYIl'];a22_0x3223=function(){return _0x5960b9;};return a22_0x3223();}exports['DASHBOARD_ENDPOINT']=process['env'][a22_0x42b2ba(0x172)]||gridURL,exports[a22_0x42b2ba(0x180)]=process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x180)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x17e)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x42b2ba(0x1c9)+this[a22_0x42b2ba(0x17e)]+a22_0x42b2ba(0x17a),exports[a22_0x42b2ba(0x173)]=a22_0x42b2ba(0x182),exports[a22_0x42b2ba(0x1cb)]=a22_0x42b2ba(0x1b7),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a22_0x42b2ba(0x186)]=a22_0x42b2ba(0x1ca),exports['CLUSTER_DEP_STACK_NAME']=a22_0x42b2ba(0x1a2),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x42b2ba(0x191),exports[a22_0x42b2ba(0x1d4)]=a22_0x42b2ba(0x1c6),exports[a22_0x42b2ba(0x1c4)]=a22_0x42b2ba(0x1af),exports[a22_0x42b2ba(0x18e)]='azure',exports[a22_0x42b2ba(0x1b6)]=a22_0x42b2ba(0x187),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x42b2ba(0x186)],this[a22_0x42b2ba(0x18e)],this[a22_0x42b2ba(0x1b6)]];const a22_0x3a67a2={};a22_0x3a67a2[a22_0x42b2ba(0x176)]='browserstack:managedBy',a22_0x3a67a2[a22_0x42b2ba(0x1c2)]='BrowserStack';const a22_0x44c1a2={};a22_0x44c1a2[a22_0x42b2ba(0x176)]=a22_0x42b2ba(0x1b1),a22_0x44c1a2[a22_0x42b2ba(0x1c2)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x3a67a2,a22_0x44c1a2];if(process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x1c8)]){const parsedTags=process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x1c8)][a22_0x42b2ba(0x183)](',');parsedTags[a22_0x42b2ba(0x1c0)](_0x1557f6=>{const _0x5d611a=a22_0x42b2ba,_0x2c981c=_0x1557f6[_0x5d611a(0x183)](':'),_0x13cd13={};_0x13cd13[_0x5d611a(0x176)]=_0x2c981c[0x0],_0x13cd13[_0x5d611a(0x1c2)]=_0x2c981c[0x1],common_hst_tags_list[_0x5d611a(0x181)](_0x13cd13);});}exports[a22_0x42b2ba(0x184)]=common_hst_tags_list;const a22_0x299f6c={};a22_0x299f6c[a22_0x42b2ba(0x1d6)]='BrowserStack',a22_0x299f6c[a22_0x42b2ba(0x1b1)]=a22_0x42b2ba(0x1a1),exports[a22_0x42b2ba(0x194)]=a22_0x299f6c,exports[a22_0x42b2ba(0x1d1)]=[this[a22_0x42b2ba(0x186)]];function a22_0x4838(_0x303c16,_0x5e9683){const _0x3223fb=a22_0x3223();return a22_0x4838=function(_0x48380e,_0x1bd1bd){_0x48380e=_0x48380e-0x16d;let _0x4aaee8=_0x3223fb[_0x48380e];return _0x4aaee8;},a22_0x4838(_0x303c16,_0x5e9683);}const a22_0x308b33={};a22_0x308b33[a22_0x42b2ba(0x18d)]=a22_0x42b2ba(0x19f),a22_0x308b33['RESOURCES']=a22_0x42b2ba(0x177),a22_0x308b33['GRID_URL']=a22_0x42b2ba(0x16e),a22_0x308b33[a22_0x42b2ba(0x1bc)]=a22_0x42b2ba(0x175),a22_0x308b33[a22_0x42b2ba(0x1a8)]='cliRunFinished',exports[a22_0x42b2ba(0x1c1)]=a22_0x308b33,exports[a22_0x42b2ba(0x1b8)]={},exports[a22_0x42b2ba(0x1b2)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x28bc9a={};a22_0x28bc9a['root']=a22_0x42b2ba(0x1b9)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x18a)]=a22_0x42b2ba(0x1c3)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x1cd)]=a22_0x42b2ba(0x1a0)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x1c5)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x28bc9a[a22_0x42b2ba(0x17d)]={},a22_0x28bc9a[a22_0x42b2ba(0x178)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a['connect']=a22_0x42b2ba(0x1be)+this['LINK_MESSAGE'],a22_0x28bc9a[a22_0x42b2ba(0x197)]=a22_0x42b2ba(0x1a6)+this['LINK_MESSAGE'],a22_0x28bc9a['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x1ac)]=a22_0x42b2ba(0x1b3)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x17d)][a22_0x42b2ba(0x1bd)]=a22_0x42b2ba(0x19a)+this['LINK_MESSAGE'],a22_0x28bc9a[a22_0x42b2ba(0x17d)]['grid']=a22_0x42b2ba(0x196)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x17d)][a22_0x42b2ba(0x1ba)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x42b2ba(0x1b2)],exports[a22_0x42b2ba(0x1ad)]=a22_0x28bc9a,exports[a22_0x42b2ba(0x1a3)]=a22_0x42b2ba(0x189);const a22_0x271ef8={};a22_0x271ef8[a22_0x42b2ba(0x19d)]='success',a22_0x271ef8['ERROR']=a22_0x42b2ba(0x199),a22_0x271ef8['INFO']=a22_0x42b2ba(0x198),a22_0x271ef8[a22_0x42b2ba(0x18b)]=a22_0x42b2ba(0x17b),a22_0x271ef8[a22_0x42b2ba(0x1d0)]=a22_0x42b2ba(0x1ce),a22_0x271ef8['NULL']=null,exports[a22_0x42b2ba(0x18f)]=a22_0x271ef8,exports[a22_0x42b2ba(0x174)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x42b2ba(0x179)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x42b2ba(0x192);const a22_0x3e82b9={};a22_0x3e82b9['grid-profile']=a22_0x42b2ba(0x1cf);const a22_0x4ee643={};a22_0x4ee643[a22_0x42b2ba(0x1cc)]=a22_0x3e82b9,exports[a22_0x42b2ba(0x1d5)]=a22_0x4ee643,exports[a22_0x42b2ba(0x19b)]=a22_0x42b2ba(0x1a7);const a22_0x4cdbc4={};a22_0x4cdbc4[a22_0x42b2ba(0x1c7)]='high-scale-grid-cluster',a22_0x4cdbc4[a22_0x42b2ba(0x171)]='aws',a22_0x4cdbc4[a22_0x42b2ba(0x188)]=a22_0x42b2ba(0x17f),exports[a22_0x42b2ba(0x1a9)]=a22_0x4cdbc4;
@@ -1 +1 @@
1
- const a23_0x5c6d6d=a23_0x2173;function a23_0x2173(_0x537819,_0x4b011c){const _0x35ad69=a23_0x35ad();return a23_0x2173=function(_0x217361,_0x1c7650){_0x217361=_0x217361-0x1b1;let _0xd4bc3a=_0x35ad69[_0x217361];return _0xd4bc3a;},a23_0x2173(_0x537819,_0x4b011c);}(function(_0xd14571,_0x9896f1){const _0x12a7ef=a23_0x2173,_0x9bdf73=_0xd14571();while(!![]){try{const _0x448b59=-parseInt(_0x12a7ef(0x1bc))/0x1+-parseInt(_0x12a7ef(0x1cc))/0x2+parseInt(_0x12a7ef(0x1c6))/0x3*(-parseInt(_0x12a7ef(0x1cd))/0x4)+parseInt(_0x12a7ef(0x1cb))/0x5*(parseInt(_0x12a7ef(0x1ce))/0x6)+parseInt(_0x12a7ef(0x1b3))/0x7*(-parseInt(_0x12a7ef(0x1c2))/0x8)+-parseInt(_0x12a7ef(0x1b7))/0x9+parseInt(_0x12a7ef(0x1b6))/0xa;if(_0x448b59===_0x9896f1)break;else _0x9bdf73['push'](_0x9bdf73['shift']());}catch(_0x47c7fb){_0x9bdf73['push'](_0x9bdf73['shift']());}}}(a23_0x35ad,0x9145e));const winston=require(a23_0x5c6d6d(0x1ca)),fs=require('fs'),path=require('path'),logDir='log';!fs[a23_0x5c6d6d(0x1b4)](logDir)&&fs[a23_0x5c6d6d(0x1c7)](logDir);const a23_0x2e909c={};a23_0x2e909c['format']=a23_0x5c6d6d(0x1b8);const a23_0x1aaaa9={};a23_0x1aaaa9['level']=!![];const a23_0x326aec={};a23_0x326aec[a23_0x5c6d6d(0x1b1)]=a23_0x5c6d6d(0x1c4),exports[a23_0x5c6d6d(0x1b5)]=new winston[(a23_0x5c6d6d(0x1c5))]({'format':winston[a23_0x5c6d6d(0x1c9)][a23_0x5c6d6d(0x1c0)](winston[a23_0x5c6d6d(0x1c9)][a23_0x5c6d6d(0x1be)](a23_0x2e909c),winston[a23_0x5c6d6d(0x1c9)][a23_0x5c6d6d(0x1bf)](a23_0x1aaaa9),winston['format'][a23_0x5c6d6d(0x1b2)](_0x1fd131=>_0x1fd131[a23_0x5c6d6d(0x1be)]+a23_0x5c6d6d(0x1d0)+_0x1fd131[a23_0x5c6d6d(0x1c3)]+':\x20'+_0x1fd131[a23_0x5c6d6d(0x1c1)])),'transports':[new winston[(a23_0x5c6d6d(0x1ba))][(a23_0x5c6d6d(0x1d1))](a23_0x326aec),new winston['transports'][(a23_0x5c6d6d(0x1cf))]({'filename':path[a23_0x5c6d6d(0x1b9)](logDir,'events.log'),'level':a23_0x5c6d6d(0x1c8)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x5c6d6d(0x1ba))]['File']({'filename':path[a23_0x5c6d6d(0x1b9)](logDir,a23_0x5c6d6d(0x1bb)),'level':a23_0x5c6d6d(0x1c8)})]};exports[a23_0x5c6d6d(0x1bd)]=new winston[(a23_0x5c6d6d(0x1c5))](winstonFileLoggerParams);function a23_0x35ad(){const _0x484b50=['Console','name','printf','2425927PiljCH','existsSync','logger','30519250CxJPbE','783360YAyOeE','YYYY-MM-DD\x20HH:mm:ss','join','transports','usage.log','210374dgifmM','fileLogger','timestamp','colorize','combine','message','8LgqLmm','level','console.info','createLogger','13263xtTEHx','mkdirSync','debug','format','winston','472970CIlrId','2037770ptsdnP','804oNyHND','6cJZkgF','File','\x20-\x20'];a23_0x35ad=function(){return _0x484b50;};return a23_0x35ad();}
1
+ const a23_0x21ebec=a23_0x3093;(function(_0x1352f5,_0x51fb8f){const _0x270a10=a23_0x3093,_0x28ae8b=_0x1352f5();while(!![]){try{const _0x2e280c=parseInt(_0x270a10(0x10c))/0x1+parseInt(_0x270a10(0xfd))/0x2+-parseInt(_0x270a10(0x115))/0x3+-parseInt(_0x270a10(0x114))/0x4*(parseInt(_0x270a10(0x104))/0x5)+-parseInt(_0x270a10(0x10b))/0x6*(parseInt(_0x270a10(0xf9))/0x7)+-parseInt(_0x270a10(0x107))/0x8+parseInt(_0x270a10(0xfe))/0x9;if(_0x2e280c===_0x51fb8f)break;else _0x28ae8b['push'](_0x28ae8b['shift']());}catch(_0x5843f4){_0x28ae8b['push'](_0x28ae8b['shift']());}}}(a23_0x40d7,0x773e9));const winston=require('winston'),fs=require('fs'),path=require('path'),logDir=a23_0x21ebec(0xff);!fs[a23_0x21ebec(0x109)](logDir)&&fs[a23_0x21ebec(0x10d)](logDir);const a23_0x1269e6={};a23_0x1269e6['format']=a23_0x21ebec(0xfc);const a23_0x596e53={};a23_0x596e53[a23_0x21ebec(0x113)]=!![];const a23_0x2d02b7={};a23_0x2d02b7[a23_0x21ebec(0x106)]=a23_0x21ebec(0x111),exports[a23_0x21ebec(0x116)]=new winston[(a23_0x21ebec(0x102))]({'format':winston[a23_0x21ebec(0x10f)][a23_0x21ebec(0x100)](winston[a23_0x21ebec(0x10f)]['timestamp'](a23_0x1269e6),winston[a23_0x21ebec(0x10f)][a23_0x21ebec(0x105)](a23_0x596e53),winston[a23_0x21ebec(0x10f)][a23_0x21ebec(0xfb)](_0x3fe0dc=>_0x3fe0dc[a23_0x21ebec(0x101)]+a23_0x21ebec(0x110)+_0x3fe0dc[a23_0x21ebec(0x113)]+':\x20'+_0x3fe0dc[a23_0x21ebec(0x10a)])),'transports':[new winston[(a23_0x21ebec(0xfa))][(a23_0x21ebec(0x103))](a23_0x2d02b7),new winston[(a23_0x21ebec(0xfa))]['File']({'filename':path['join'](logDir,a23_0x21ebec(0xf8)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x21ebec(0xfa))][(a23_0x21ebec(0x10e))]({'filename':path['join'](logDir,a23_0x21ebec(0x108)),'level':a23_0x21ebec(0x112)})]};exports['fileLogger']=new winston[(a23_0x21ebec(0x102))](winstonFileLoggerParams);function a23_0x3093(_0x2da0e8,_0x1d0bdb){const _0x40d79c=a23_0x40d7();return a23_0x3093=function(_0x30933e,_0x24a244){_0x30933e=_0x30933e-0xf8;let _0x4c097a=_0x40d79c[_0x30933e];return _0x4c097a;},a23_0x3093(_0x2da0e8,_0x1d0bdb);}function a23_0x40d7(){const _0x2b08c3=['132954SweFSE','395510jCYSwf','mkdirSync','File','format','\x20-\x20','console.info','debug','level','385568EPUMMN','712845zZSRsJ','logger','events.log','84XYKhKD','transports','printf','YYYY-MM-DD\x20HH:mm:ss','1244WPmzgq','9777150nSAeyn','log','combine','timestamp','createLogger','Console','25YluaeY','colorize','name','68592ZmYfzI','usage.log','existsSync','message'];a23_0x40d7=function(){return _0x2b08c3;};return a23_0x40d7();}
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x3b64c0=a24_0x25ca;(function(_0x5be35b,_0x56c2d3){const _0x163965=a24_0x25ca,_0x2ffeb1=_0x5be35b();while(!![]){try{const _0x564d20=parseInt(_0x163965(0x1e1))/0x1+parseInt(_0x163965(0x1e4))/0x2+-parseInt(_0x163965(0x1dd))/0x3*(parseInt(_0x163965(0x1e7))/0x4)+-parseInt(_0x163965(0x1e2))/0x5*(parseInt(_0x163965(0x1ee))/0x6)+parseInt(_0x163965(0x1ec))/0x7*(parseInt(_0x163965(0x1e9))/0x8)+-parseInt(_0x163965(0x1ef))/0x9+parseInt(_0x163965(0x1eb))/0xa*(-parseInt(_0x163965(0x1ea))/0xb);if(_0x564d20===_0x56c2d3)break;else _0x2ffeb1['push'](_0x2ffeb1['shift']());}catch(_0x20c910){_0x2ffeb1['push'](_0x2ffeb1['shift']());}}}(a24_0x3bf9,0xbc021));function a24_0x25ca(_0xaeb4b9,_0x19f494){const _0x3bf964=a24_0x3bf9();return a24_0x25ca=function(_0x25ca5f,_0x3c9d0c){_0x25ca5f=_0x25ca5f-0x1da;let _0x408481=_0x3bf964[_0x25ca5f];return _0x408481;},a24_0x25ca(_0xaeb4b9,_0x19f494);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3b64c0(0x1e0));function a24_0x3bf9(){const _0x57b29a=['2094240jgPjaK','commands','exports','28iRySWI','commandDir','13616zOiVAs','45793BkewlI','4410sWMfqW','6258VVCqjV','GKcwd','1462722yfyrsq','3333267BZzBMz','Lghrk','usage','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','356781pJNYxY','epilogue','help','./config/constants','1483895EBEdvV','5klZnsJ','env'];a24_0x3bf9=function(){return _0x57b29a;};return a24_0x3bf9();}process[a24_0x3b64c0(0x1e3)][a24_0x3b64c0(0x1dc)]=0x1;function run(_0x42c6c1){const _0x55be5f=a24_0x3b64c0,_0x14e3a4={};_0x14e3a4[_0x55be5f(0x1da)]=_0x55be5f(0x1e5),_0x14e3a4[_0x55be5f(0x1ed)]=_0x55be5f(0x1df);const _0x498bf6=_0x14e3a4;_0x42c6c1[_0x55be5f(0x1db)](HELP_HEADER_MESSAGE['root'])[_0x55be5f(0x1e8)](_0x498bf6[_0x55be5f(0x1da)])['demandCommand']()['help'](_0x498bf6[_0x55be5f(0x1ed)])[_0x55be5f(0x1de)](HELP_FOOTER_MESSAGE);}module[a24_0x3b64c0(0x1e6)]=run;
2
+ 'use strict';const a24_0x1f0e79=a24_0x252c;(function(_0x1895b3,_0xd133d6){const _0x26ad13=a24_0x252c,_0x1ad7d3=_0x1895b3();while(!![]){try{const _0x452766=parseInt(_0x26ad13(0x1cf))/0x1*(-parseInt(_0x26ad13(0x1cb))/0x2)+-parseInt(_0x26ad13(0x1d7))/0x3+-parseInt(_0x26ad13(0x1d4))/0x4+-parseInt(_0x26ad13(0x1d6))/0x5*(-parseInt(_0x26ad13(0x1d0))/0x6)+parseInt(_0x26ad13(0x1dd))/0x7*(parseInt(_0x26ad13(0x1ce))/0x8)+-parseInt(_0x26ad13(0x1d8))/0x9*(-parseInt(_0x26ad13(0x1d3))/0xa)+parseInt(_0x26ad13(0x1d2))/0xb;if(_0x452766===_0xd133d6)break;else _0x1ad7d3['push'](_0x1ad7d3['shift']());}catch(_0x568338){_0x1ad7d3['push'](_0x1ad7d3['shift']());}}}(a24_0x3c71,0x394a0));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x1f0e79(0x1da));process[a24_0x1f0e79(0x1d9)][a24_0x1f0e79(0x1d1)]=0x1;function run(_0x46cf5a){const _0x5c0e41=a24_0x1f0e79,_0x23c68f={};_0x23c68f[_0x5c0e41(0x1de)]='commands',_0x23c68f[_0x5c0e41(0x1dc)]=_0x5c0e41(0x1db);const _0x4959a2=_0x23c68f;_0x46cf5a[_0x5c0e41(0x1cc)](HELP_HEADER_MESSAGE['root'])[_0x5c0e41(0x1ca)](_0x4959a2[_0x5c0e41(0x1de)])[_0x5c0e41(0x1cd)]()[_0x5c0e41(0x1db)](_0x4959a2[_0x5c0e41(0x1dc)])[_0x5c0e41(0x1d5)](HELP_FOOTER_MESSAGE);}function a24_0x252c(_0x4464cf,_0x3e234a){const _0x3c7120=a24_0x3c71();return a24_0x252c=function(_0x252cc7,_0x3c32c0){_0x252cc7=_0x252cc7-0x1ca;let _0x48268c=_0x3c7120[_0x252cc7];return _0x48268c;},a24_0x252c(_0x4464cf,_0x3e234a);}function a24_0x3c71(){const _0x5343a5=['2986MdKxcs','usage','demandCommand','8uzHIom','83ioydeM','78QpYKge','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','8936884ZVfgBq','1890090yUvqSk','1645220AwJWlf','epilogue','7255DQVuJF','950835BAEjpy','9DIjKyq','env','./config/constants','help','ptlKf','465563TEHEPZ','Zbsel','commandDir'];a24_0x3c71=function(){return _0x5343a5;};return a24_0x3c71();}module['exports']=run;