browserstack-node-sdk 1.65.6 → 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
- const a15_0x33d891=a15_0x4270;function a15_0x4270(_0xa21c07,_0x3ac0f5){const _0x52df05=a15_0x52df();return a15_0x4270=function(_0x427019,_0x347fda){_0x427019=_0x427019-0x6a;let _0x1f34ac=_0x52df05[_0x427019];return _0x1f34ac;},a15_0x4270(_0xa21c07,_0x3ac0f5);}function a15_0x52df(){const _0x12336e=['grids','allGrids','queued','liyrH','3luHLfU','81vDZByt','ykoCg','PcwkK','../../config/constants','stringify','zQTYv','ViqGs','uXMrw','password','IvgXE','stack','UcpJH','QrybL','argv','log','1219600shYhIf','cluster-name','gpLeo','status','Browserstack','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','tCeQK','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','list-grids-called','description','QdtPy','grid-name','bstackUsername','363740psYHeo','error','1060792KersOt','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-grids','server-error','../../utils/instrumentationUtils','STEQt','push','dnoMK','requestId','1209010iGCRRe','unauthorised','help','lWQyI','username','qqzoM','HsPDo','options','https://','got','902912qXjJRF','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','3214274xzhunx','2397162hJjweO','existsSync','exit','list','kaAjM','desc','ERROR','xMcrC','usage','czEJR','command','body','clusterName','running','statusCode','parse','INFO','IRDWN','builder','QobbU','/packages/cli/get-all-grids','grid-id','name','WhkDe','wOhzz','forEach'];a15_0x52df=function(){return _0x12336e;};return a15_0x52df();}(function(_0x41a747,_0x8ff1ec){const _0x399479=a15_0x4270,_0x227d47=_0x41a747();while(!![]){try{const _0x3fda03=parseInt(_0x399479(0x98))/0x1+-parseInt(_0x399479(0x9a))/0x2*(-parseInt(_0x399479(0x7b))/0x3)+-parseInt(_0x399479(0xad))/0x4+parseInt(_0x399479(0xa3))/0x5+parseInt(_0x399479(0xb1))/0x6+parseInt(_0x399479(0xb0))/0x7+-parseInt(_0x399479(0x8b))/0x8*(parseInt(_0x399479(0x7c))/0x9);if(_0x3fda03===_0x8ff1ec)break;else _0x227d47['push'](_0x227d47['shift']());}catch(_0x3414bb){_0x227d47['push'](_0x227d47['shift']());}}}(a15_0x52df,0x60e45));const fs=require('fs'),got=require(a15_0x33d891(0xac)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x33d891(0x7f)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x33d891(0x9e));exports[a15_0x33d891(0xbb)]=a15_0x33d891(0x77),exports[a15_0x33d891(0xb6)]=a15_0x33d891(0x90),exports[a15_0x33d891(0x6f)]=function(_0x428c75){const _0x45f53b=a15_0x33d891,_0x3a6e3a={};_0x3a6e3a[_0x45f53b(0x74)]=_0x45f53b(0x92),_0x3a6e3a[_0x45f53b(0xa8)]='boolean',_0x3a6e3a[_0x45f53b(0x9f)]=_0x45f53b(0xa5);const _0x2bfd5f=_0x3a6e3a,_0x15a5f3={};_0x15a5f3[_0x45f53b(0x94)]=_0x2bfd5f['WhkDe'],_0x15a5f3['type']=_0x2bfd5f[_0x45f53b(0xa8)];const _0x1c49d4={};return _0x1c49d4['all-grids']=_0x15a5f3,_0x428c75[_0x45f53b(0xb9)](HELP_HEADER_MESSAGE[_0x45f53b(0xb4)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x45f53b(0xaa)](_0x1c49d4)['help'](_0x2bfd5f[_0x45f53b(0x9f)])[_0x45f53b(0x89)];},exports['handler']=async function(_0x328059){const _0x2276e2=a15_0x33d891,_0x2eac48={'wOhzz':function(_0x3c8dfd){return _0x3c8dfd();},'tCeQK':function(_0x17ce4e){return _0x17ce4e();},'jTDGE':_0x2276e2(0x9b),'uXMrw':function(_0x2b1c4f,_0x21f837,_0x5dfe0b,_0x590694,_0x444b06,_0x464dbe,_0x32d634){return _0x2b1c4f(_0x21f837,_0x5dfe0b,_0x590694,_0x444b06,_0x464dbe,_0x32d634);},'IRDWN':_0x2276e2(0x93),'kaAjM':'init-not-called','ykoCg':'GET','gpLeo':function(_0x402bf9,_0x260845,_0x57271e){return _0x402bf9(_0x260845,_0x57271e);},'QdtPy':function(_0x1d654d,_0x2107d5){return _0x1d654d!==_0x2107d5;},'ViqGs':function(_0x388624,_0x29c68e){return _0x388624!==_0x29c68e;},'QobbU':function(_0x214272,_0x4f4be8){return _0x214272===_0x4f4be8;},'MAmdy':'\x0aFound\x20the\x20following\x20grids:\x0a','zQTYv':_0x2276e2(0x72),'lWQyI':_0x2276e2(0x96),'dnoMK':_0x2276e2(0x8e),'UcpJH':_0x2276e2(0x6a),'liyrH':_0x2276e2(0x79),'QrybL':_0x2276e2(0x8c),'Sgjrk':function(_0x8a01f1,_0x392a39){return _0x8a01f1(_0x392a39);},'czEJR':_0x2276e2(0xaf),'IvgXE':function(_0x5a9545,_0x793be9,_0x478aa7,_0x29d294,_0x657267,_0x38b8e8,_0x18aa93){return _0x5a9545(_0x793be9,_0x478aa7,_0x29d294,_0x657267,_0x38b8e8,_0x18aa93);},'HsPDo':_0x2276e2(0xa4),'xMcrC':function(_0xbcd282,_0x36a5b2,_0x3f6ef4,_0x33dba9,_0x37dcba,_0x417835,_0x19fb7e){return _0xbcd282(_0x36a5b2,_0x3f6ef4,_0x33dba9,_0x37dcba,_0x417835,_0x19fb7e);},'mIVHw':_0x2276e2(0x9d),'PcwkK':'unknown-error'};try{global_registry[_0x2276e2(0xa2)]=_0x2eac48[_0x2276e2(0x75)](uuidv4);!fs[_0x2276e2(0xb2)](_0x2eac48[_0x2276e2(0x91)](getCredentialsPath))&&(console[_0x2276e2(0x99)](_0x2eac48['jTDGE']),await _0x2eac48[_0x2276e2(0x83)](sendInstrumentationEvent,_0x328059,_0x2eac48[_0x2276e2(0x6e)],messageTypes[_0x2276e2(0xb7)],_0x2eac48[_0x2276e2(0xb5)],null,_0x328059),process[_0x2276e2(0xb3)](0x1));const _0x5dee25=JSON[_0x2276e2(0x6c)](fs[_0x2276e2(0xae)](_0x2eac48[_0x2276e2(0x91)](getCredentialsPath)));let _0x3d57a0=_0x2276e2(0xab)+AG_API_URL+_0x2276e2(0x9c);_0x328059[_0x2276e2(0x78)]&&(_0x3d57a0=_0x2276e2(0xab)+AG_API_URL+_0x2276e2(0x71));const _0x952652={'method':_0x2eac48[_0x2276e2(0x7d)],'headers':_0x2eac48['gpLeo'](getAuthHeader,_0x5dee25['Browserstack'][_0x2276e2(0xa7)],_0x5dee25[_0x2276e2(0x8f)]['password']),'throwHttpErrors':![]};global_registry[_0x2276e2(0x97)]=_0x5dee25['Browserstack'][_0x2276e2(0xa7)],global_registry['bstackAccesskey']=_0x5dee25[_0x2276e2(0x8f)][_0x2276e2(0x84)],_0x2eac48[_0x2276e2(0x83)](sendInstrumentationEvent,_0x328059,_0x2eac48['IRDWN'],messageTypes[_0x2276e2(0x6d)],null,null,_0x328059);const _0x38da38=await _0x2eac48[_0x2276e2(0x8d)](got,_0x3d57a0,_0x952652);if(_0x2eac48[_0x2276e2(0x95)](_0x38da38,null)&&_0x2eac48[_0x2276e2(0x82)](_0x38da38,undefined)&&_0x2eac48['QobbU'](_0x38da38[_0x2276e2(0x6b)],0xc8)){const _0x57e8e1=JSON['parse'](_0x38da38[_0x2276e2(0xbc)]);console['log'](_0x2eac48['MAmdy']);const _0x4ac2cc=[];_0x4ac2cc[_0x2276e2(0xa0)]([_0x2eac48[_0x2276e2(0x81)],_0x2eac48[_0x2276e2(0xa6)],_0x2eac48[_0x2276e2(0xa1)],_0x2eac48[_0x2276e2(0x87)],_0x2eac48[_0x2276e2(0x7a)],_0x2eac48[_0x2276e2(0x88)]]),_0x57e8e1[_0x2276e2(0x76)](_0xc6e5fd=>{const _0x2ccd8e=_0x2276e2;_0x4ac2cc[_0x2ccd8e(0xa0)]([_0xc6e5fd['id'],_0xc6e5fd[_0x2ccd8e(0x73)],_0xc6e5fd[_0x2ccd8e(0x8e)],_0xc6e5fd[_0x2ccd8e(0x6a)],_0xc6e5fd[_0x2ccd8e(0x79)],_0xc6e5fd[_0x2ccd8e(0xbd)]]);}),console[_0x2276e2(0x8a)](_0x2eac48['Sgjrk'](table,_0x4ac2cc)),process[_0x2276e2(0xb3)](0x0);}_0x2eac48[_0x2276e2(0x70)](_0x38da38[_0x2276e2(0x6b)],0x191)&&(console[_0x2276e2(0x99)](_0x2eac48[_0x2276e2(0xba)]),await _0x2eac48[_0x2276e2(0x85)](sendInstrumentationEvent,_0x328059,_0x2eac48[_0x2276e2(0x6e)],messageTypes['ERROR'],_0x2eac48[_0x2276e2(0xa9)],null,_0x328059),process[_0x2276e2(0xb3)](0x1)),console[_0x2276e2(0x99)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2276e2(0x80)](_0x38da38)),await _0x2eac48[_0x2276e2(0xb8)](sendInstrumentationEvent,_0x328059,_0x2eac48['IRDWN'],messageTypes[_0x2276e2(0xb7)],_0x2eac48['mIVHw'],_0x38da38,_0x328059),process[_0x2276e2(0xb3)](0x1);}catch(_0x348bac){console[_0x2276e2(0x99)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x348bac[_0x2276e2(0x86)]),await _0x2eac48[_0x2276e2(0x83)](sendInstrumentationEvent,_0x328059,_0x2eac48[_0x2276e2(0x6e)],messageTypes[_0x2276e2(0xb7)],_0x2eac48[_0x2276e2(0x7e)],_0x348bac,_0x328059),process['exit'](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_0x488b(){const _0x4cc862=['58023XLAVzP','../config/constants','tMULs','usage','3547ZkHHkw','demandCommand','1211410vSDHnz','974460AKTrkV','496ejWCDE','pre-check','pre_check','94atYgwJ','help','6272431IfUIcV','49145CEHtQI','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','8paXnKD','desc','commandDir','opvAZ','epilogue','42LupEyC','35865ycdAoR','recommendCommands'];a16_0x488b=function(){return _0x4cc862;};return a16_0x488b();}const a16_0x2a1fc5=a16_0x30c8;(function(_0x29dbb5,_0x5169db){const _0x42865a=a16_0x30c8,_0x562069=_0x29dbb5();while(!![]){try{const _0x31b240=-parseInt(_0x42865a(0x1cb))/0x1*(-parseInt(_0x42865a(0x1d2))/0x2)+-parseInt(_0x42865a(0x1ce))/0x3+parseInt(_0x42865a(0x1d7))/0x4*(-parseInt(_0x42865a(0x1d5))/0x5)+parseInt(_0x42865a(0x1c4))/0x6*(-parseInt(_0x42865a(0x1c7))/0x7)+-parseInt(_0x42865a(0x1cf))/0x8*(parseInt(_0x42865a(0x1c5))/0x9)+parseInt(_0x42865a(0x1cd))/0xa+parseInt(_0x42865a(0x1d4))/0xb;if(_0x31b240===_0x5169db)break;else _0x562069['push'](_0x562069['shift']());}catch(_0xd8bb4e){_0x562069['push'](_0x562069['shift']());}}}(a16_0x488b,0x32e74));function a16_0x30c8(_0x19fce2,_0x18849c){const _0x488b73=a16_0x488b();return a16_0x30c8=function(_0x30c8a4,_0x42146f){_0x30c8a4=_0x30c8a4-0x1c0;let _0x18db51=_0x488b73[_0x30c8a4];return _0x18db51;},a16_0x30c8(_0x19fce2,_0x18849c);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2a1fc5(0x1c8));exports['command']=a16_0x2a1fc5(0x1d0),exports[a16_0x2a1fc5(0x1c0)]=a16_0x2a1fc5(0x1d6),exports['builder']=function(_0x485f7b){const _0x3663a6=a16_0x2a1fc5,_0x3a5252={};_0x3a5252[_0x3663a6(0x1c9)]='precheck_commands',_0x3a5252[_0x3663a6(0x1c2)]=_0x3663a6(0x1d3);const _0x216ee0=_0x3a5252;return _0x485f7b[_0x3663a6(0x1ca)](HELP_HEADER_MESSAGE[_0x3663a6(0x1d1)])[_0x3663a6(0x1c3)](HELP_FOOTER_MESSAGE)[_0x3663a6(0x1c1)](_0x216ee0['tMULs'])[_0x3663a6(0x1cc)]()[_0x3663a6(0x1c6)]()['strict']()[_0x3663a6(0x1d3)](_0x216ee0[_0x3663a6(0x1c2)]);},exports['handler']=function(_0x503dcf){};
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_0x4428c2=a17_0x1912;(function(_0x3e4541,_0x281f62){const _0x55aee1=a17_0x1912,_0x4165ab=_0x3e4541();while(!![]){try{const _0x1f9979=parseInt(_0x55aee1(0x169))/0x1+parseInt(_0x55aee1(0x12f))/0x2+parseInt(_0x55aee1(0x199))/0x3+-parseInt(_0x55aee1(0x126))/0x4*(-parseInt(_0x55aee1(0x1b9))/0x5)+parseInt(_0x55aee1(0x15e))/0x6+-parseInt(_0x55aee1(0x16f))/0x7+-parseInt(_0x55aee1(0x136))/0x8;if(_0x1f9979===_0x281f62)break;else _0x4165ab['push'](_0x4165ab['shift']());}catch(_0x3a0814){_0x4165ab['push'](_0x4165ab['shift']());}}}(a17_0x5f44,0x4f35e));const fs=require('fs'),ws=require('ws'),got=require(a17_0x4428c2(0x192)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x4428c2(0x132)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4428c2(0x1ab)),{logger}=require(a17_0x4428c2(0x141)),{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_0x4428c2(0xd3)),{getCloudProviderObjectWithOutInit}=require(a17_0x4428c2(0x128)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x4428c2(0x1ce));function a17_0x1912(_0x33b85d,_0x4caeff){const _0x5f444f=a17_0x5f44();return a17_0x1912=function(_0x1912fc,_0x510f71){_0x1912fc=_0x1912fc-0xd2;let _0x123ef1=_0x5f444f[_0x1912fc];return _0x123ef1;},a17_0x1912(_0x33b85d,_0x4caeff);}exports[a17_0x4428c2(0x1b2)]=a17_0x4428c2(0x14f),exports[a17_0x4428c2(0x19a)]=a17_0x4428c2(0xfa),exports[a17_0x4428c2(0xf2)]=function(_0x5ad10d){const _0x5a02f9=a17_0x4428c2,_0x190a3c={};_0x190a3c[_0x5a02f9(0x121)]=_0x5a02f9(0x160),_0x190a3c['UNjnj']=_0x5a02f9(0x19f),_0x190a3c[_0x5a02f9(0x1a8)]=_0x5a02f9(0xef),_0x190a3c['tOrgB']=_0x5a02f9(0x175),_0x190a3c[_0x5a02f9(0xf3)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x190a3c[_0x5a02f9(0xfb)]='help';const _0x172c50=_0x190a3c,_0xc57bbd={};_0xc57bbd['description']=_0x172c50['Kiwgx'],_0xc57bbd[_0x5a02f9(0x105)]=_0x172c50[_0x5a02f9(0x166)];const _0x240719={};_0x240719['description']=_0x172c50[_0x5a02f9(0x1a8)],_0x240719[_0x5a02f9(0x105)]=_0x172c50[_0x5a02f9(0x166)];const _0x331725={};_0x331725[_0x5a02f9(0x16b)]=_0x172c50['tOrgB'],_0x331725[_0x5a02f9(0x105)]=_0x172c50[_0x5a02f9(0x166)];const _0x52cbc3={};_0x52cbc3[_0x5a02f9(0x16b)]=_0x172c50[_0x5a02f9(0xf3)],_0x52cbc3[_0x5a02f9(0x105)]=_0x172c50[_0x5a02f9(0x166)];const _0x4ac998={};return _0x4ac998['cluster-name']=_0xc57bbd,_0x4ac998[_0x5a02f9(0x16a)]=_0x240719,_0x4ac998['region']=_0x331725,_0x4ac998[_0x5a02f9(0x178)]=_0x52cbc3,_0x5ad10d[_0x5a02f9(0xe8)](HELP_HEADER_MESSAGE[_0x5a02f9(0x1c3)])[_0x5a02f9(0xd9)](HELP_FOOTER_MESSAGE)[_0x5a02f9(0xec)](_0x4ac998)[_0x5a02f9(0x19b)](_0x172c50[_0x5a02f9(0xfb)])[_0x5a02f9(0xed)];};async function inputValidation(_0x2b0e25,_0x18ae9e){const _0x1e2acf=a17_0x4428c2,_0xfc1daa={'bEciC':'Error\x20Details:\x0a','xhstb':'N/A','VYUIK':_0x1e2acf(0x13c),'RDMdy':function(_0x1dbaad,_0x1da5f7){return _0x1dbaad+_0x1da5f7;},'gcLBG':_0x1e2acf(0x18d),'mwEoJ':_0x1e2acf(0x189),'vzGJG':function(_0x15ac7d,_0x2f37a0){return _0x15ac7d||_0x2f37a0;},'NzYNd':'error','aksKp':_0x1e2acf(0x1bf),'Lhnyn':_0x1e2acf(0xd7),'JrZhb':'will\x20be\x20created','qTMyj':'region','WpuiY':'cloud-provider','oPMGR':function(_0x978713,_0x3b04ae){return _0x978713!==_0x3b04ae;},'xwVjQ':_0x1e2acf(0x156),'UPzPk':function(_0x51b8f3,_0x4bac0a){return _0x51b8f3===_0x4bac0a;},'yeIDx':_0x1e2acf(0x1bc),'yjjyD':_0x1e2acf(0x1a1),'fMbzl':_0x1e2acf(0x108),'xsOqo':'vJzGZ','AfGhK':_0x1e2acf(0x1bb),'aOJEm':_0x1e2acf(0x17b),'YaQpt':_0x1e2acf(0x17c),'TFEwV':_0x1e2acf(0xff),'QHhox':function(_0x561884,_0x387b7f){return _0x561884>_0x387b7f;},'xdqTG':function(_0xcdaf0,_0x60cdd2){return _0xcdaf0!==_0x60cdd2;},'rJggW':_0x1e2acf(0x179),'qXWMh':function(_0x4dcd42,_0x71f78c,_0x32bc61,_0x1a9395,_0x5692fa,_0x5c0db2,_0x4cd68f,_0x3919e7){return _0x4dcd42(_0x71f78c,_0x32bc61,_0x1a9395,_0x5692fa,_0x5c0db2,_0x4cd68f,_0x3919e7);},'ZFfkq':'pre-check-grid-called','RVuJI':'pre-check-cluster-args-not-passed','pspIz':_0x1e2acf(0x1c0),'Xnbmo':_0x1e2acf(0xee),'ywpMP':_0x1e2acf(0x111),'NyFEb':_0x1e2acf(0x14e),'rrOLl':_0x1e2acf(0xd8),'CqmsS':function(_0x3d029e,_0x1813ad){return _0x3d029e!==_0x1813ad;},'tjpww':'jDcHM','SFTMK':_0x1e2acf(0x1b4),'vbLOD':function(_0x30ba78,_0x42d945,_0x4fc27b){return _0x30ba78(_0x42d945,_0x4fc27b);},'yzhIq':function(_0x1b0269,_0x88fa6d,_0x2b9fe3,_0x594953,_0x4d6321,_0x347042){return _0x1b0269(_0x88fa6d,_0x2b9fe3,_0x594953,_0x4d6321,_0x347042);},'qLLjN':_0x1e2acf(0x101),'wYYnS':_0x1e2acf(0x178),'oJTkE':function(_0x223a57,_0x1a1871){return _0x223a57===_0x1a1871;},'zXpUm':function(_0x27468b,_0x588f3e){return _0x27468b===_0x588f3e;},'jaWZh':_0x1e2acf(0x162),'jeFbp':function(_0x278bd0,_0x1b0f34){return _0x278bd0(_0x1b0f34);},'nYYTt':_0x1e2acf(0x1a9),'rjuis':'pre-check-grid-profile-empty','loQWh':function(_0x1649c8,_0x707f51){return _0x1649c8!==_0x707f51;},'eqtIT':_0x1e2acf(0x18f),'KkIXE':function(_0x2e454a,_0x2d9817){return _0x2e454a===_0x2d9817;},'dnELe':'ssdDH','KMhCs':_0x1e2acf(0x107),'bUCQf':function(_0x47e9d2,_0x24bb87){return _0x47e9d2===_0x24bb87;},'AVvjm':_0x1e2acf(0x15b),'JBQCB':_0x1e2acf(0x10c),'blrhw':function(_0x2ef735,_0x18d124){return _0x2ef735===_0x18d124;},'ycvVX':_0x1e2acf(0x119),'VDGPf':_0x1e2acf(0x148),'qXRbY':function(_0xb14988,_0x1743bf,_0x345609,_0x3ce7c8,_0x29e99f,_0x4841da,_0x7d830e,_0x406ead){return _0xb14988(_0x1743bf,_0x345609,_0x3ce7c8,_0x29e99f,_0x4841da,_0x7d830e,_0x406ead);}};let _0x43efd7;try{if(_0xfc1daa['oPMGR'](_0xfc1daa['xwVjQ'],_0xfc1daa[_0x1e2acf(0x1cc)]))_0x3b0c4b+=_0x1e2acf(0xdf)+_0x2699ad[_0x1e2acf(0x137)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{if(_0x2b0e25[_0x1e2acf(0x137)]||_0x2b0e25['cloudProvider']||_0x2b0e25[_0x1e2acf(0x1cf)]){if(_0xfc1daa[_0x1e2acf(0x11b)](_0xfc1daa['yeIDx'],_0xfc1daa[_0x1e2acf(0x177)]))_0x5542aa['info']('['+_0x3d81bd+']\x20status\x20:\x20'+_0x42b1ab[_0x1e2acf(0x158)]+_0x1e2acf(0xd4)+_0x5ddc7d['data']+'\x20error\x20:\x20'+_0x14fc11[_0x1e2acf(0x13a)]),_0x5857c3[_0x1e2acf(0x13a)]&&_0x3ffce5[_0x1e2acf(0x13a)](_0x1e2acf(0x112)+_0x38be35[_0x1e2acf(0x13a)][_0x1e2acf(0x147)]);else{const _0x288efa=[];!_0x2b0e25[_0x1e2acf(0x137)]&&(_0xfc1daa['UPzPk'](_0xfc1daa[_0x1e2acf(0xf9)],_0xfc1daa['xsOqo'])?(_0x149db7+=_0xfc1daa['bEciC'],_0x2e6702+=_0x1e2acf(0x19e)+(_0x415162[_0x1e2acf(0x161)]||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a',_0x56b107+=_0x1e2acf(0xdc)+(_0x407083[_0x1e2acf(0x122)]||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a',_0x12e371+='\x20\x20Stack:\x20'+(_0x422ee6['stack']||_0xfc1daa['xhstb'])+'\x0a'):_0x288efa[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0xf6)]));;!_0x2b0e25[_0x1e2acf(0x13f)]&&(_0xfc1daa[_0x1e2acf(0x11b)](_0xfc1daa[_0x1e2acf(0x11a)],_0xfc1daa[_0x1e2acf(0x1a5)])?_0x19b2a8[_0x1e2acf(0xfd)](0x1):_0x288efa[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0x183)]));;!_0x2b0e25[_0x1e2acf(0x1cf)]&&(_0xfc1daa[_0x1e2acf(0x1c8)](_0xfc1daa[_0x1e2acf(0x135)],_0xfc1daa[_0x1e2acf(0x193)])?_0x288efa[_0x1e2acf(0xe7)](_0xfc1daa['qTMyj']):_0x28bf21[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0xf6)]));;if(_0xfc1daa[_0x1e2acf(0x14d)](_0x288efa['length'],0x0)){if(_0xfc1daa[_0x1e2acf(0xd6)](_0xfc1daa[_0x1e2acf(0x1c4)],_0xfc1daa['rJggW'])){const {header:_0x53e4c3,response:_0x5011d4}=_0x393b7e,{status:_0x239cc4,data:_0x4ac090,error:_0x50a346}=_0x5011d4;_0xe31e95+=_0x53e4c3+'\x20#'+_0xfc1daa[_0x1e2acf(0x113)](_0x3732bf,0x1)+'\x0a',_0x472c28+=_0x1e2acf(0x17f)+(_0x239cc4?_0xfc1daa[_0x1e2acf(0x167)]:_0xfc1daa[_0x1e2acf(0x13d)])+'\x0a',_0x4372ea+='Message:\x20'+_0xfc1daa['vzGJG'](_0x4ac090,_0xfc1daa['xhstb'])+'\x0a',_0x50a346&&(_0x1beb18+=_0xfc1daa[_0x1e2acf(0x1c6)],_0x321957+=_0x1e2acf(0x19e)+(_0x50a346[_0x1e2acf(0x161)]||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a',_0x494751+=_0x1e2acf(0xdc)+(_0x50a346[_0x1e2acf(0x122)]||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a',_0x252362+=_0x1e2acf(0x1c9)+(_0x50a346['stack']||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a'),_0x3f06e6+='\x0a\x0a';}else _0x43efd7='Missing\x20required\x20arguments:\x20'+_0x288efa['join'](',\x20')+_0x1e2acf(0x14b),await _0xfc1daa[_0x1e2acf(0x1b1)](reportToGalactusAndSendToEDS,_0x2b0e25,_0x18ae9e,_0x43efd7,messageTypes['ERROR'],_0xfc1daa['ZFfkq'],_0xfc1daa['RVuJI'],_0xfc1daa['NzYNd']),logger['error'](_0x43efd7),process[_0x1e2acf(0xfd)](0x1);}if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1e2acf(0x104)](_0x2b0e25['cloudProvider'][_0x1e2acf(0x106)]())){if(_0xfc1daa[_0x1e2acf(0x11b)](_0xfc1daa['pspIz'],_0xfc1daa['Xnbmo'])){const _0x114e42={};_0x114e42[_0x1e2acf(0x105)]=_0x8d0d02['LOG'],_0x114e42[_0x1e2acf(0x161)]=_0x57e24c,_0x30d42f[_0x1e2acf(0x140)](_0x2af136,_0x114e42,_0xfc1daa[_0x1e2acf(0x138)],!![]);}else _0x43efd7=_0xfc1daa[_0x1e2acf(0x10e)],await _0xfc1daa[_0x1e2acf(0x1b1)](reportToGalactusAndSendToEDS,_0x2b0e25,_0x18ae9e,_0x43efd7,messageTypes[_0x1e2acf(0x131)],_0xfc1daa['ZFfkq'],_0xfc1daa[_0x1e2acf(0x18a)],_0xfc1daa[_0x1e2acf(0x138)]),logger[_0x1e2acf(0x13a)](_0x43efd7),!_0x2b0e25[_0x1e2acf(0x13f)]&&(_0xfc1daa[_0x1e2acf(0x11b)](_0xfc1daa[_0x1e2acf(0x12b)],_0xfc1daa[_0x1e2acf(0x12b)])?(logger[_0x1e2acf(0x17e)](_0x1e2acf(0xf0)+DEFAULT_CLUSTER_DETAILS[_0x1e2acf(0x18b)]+'\x20'),_0x2b0e25['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x468085[_0x1e2acf(0x17e)]('Cluster\x20`'+_0x47fee7[_0x1e2acf(0x137)]+'`\x20already\x20exists'));}global_registry[_0x1e2acf(0x137)]=_0x2b0e25['clusterName'],global_registry[_0x1e2acf(0x13f)]=_0x2b0e25[_0x1e2acf(0x13f)],global_registry[_0x1e2acf(0x164)]=_0x2b0e25[_0x1e2acf(0x1cf)];}}else{if(_0x2b0e25[_0x1e2acf(0x19c)]){if(_0xfc1daa[_0x1e2acf(0xfe)](_0xfc1daa[_0x1e2acf(0xe0)],_0xfc1daa[_0x1e2acf(0xe0)]))_0x827fdb['error'](_0xfc1daa['aksKp']),_0x3e6be0[_0x1e2acf(0xfd)](0x1);else{global_registry['gridProfile']=_0x2b0e25[_0x1e2acf(0x19c)],logger[_0x1e2acf(0x134)](_0x1e2acf(0xe6)+_0x2b0e25['gridProfile']);const _0x3a3344='https://'+AG_API_URL+_0x1e2acf(0x12d),_0x2bc81e={};_0x2bc81e[_0x1e2acf(0x13b)]=_0xfc1daa[_0x1e2acf(0xe1)],_0x2bc81e[_0x1e2acf(0xf1)]=global_registry['authHeader'],_0x2bc81e['throwHttpErrors']=![];const _0x2878b5=_0x2bc81e,_0x56b19b=await _0xfc1daa['vbLOD'](got,_0x3a3344,_0x2878b5),_0x37579b=await _0xfc1daa[_0x1e2acf(0xe2)](responseValidation,_0x56b19b,_0xfc1daa[_0x1e2acf(0x18e)],_0xfc1daa[_0x1e2acf(0x1c5)],_0x2b0e25,_0x18ae9e);let _0x46a069={};if(_0xfc1daa[_0x1e2acf(0x18c)](_0x37579b,0xc8)){if(_0xfc1daa[_0x1e2acf(0x170)](_0xfc1daa[_0x1e2acf(0x14c)],_0xfc1daa[_0x1e2acf(0x14c)])){const _0x4bcd34=JSON[_0x1e2acf(0x152)](_0x56b19b[_0x1e2acf(0x1a2)]),_0x325569=_0x4bcd34[_0x1e2acf(0x12e)](_0x39e613=>_0x39e613['name']===_0x2b0e25[_0x1e2acf(0x19c)])||null;_0xfc1daa[_0x1e2acf(0x168)](isUndefined,_0x325569)?_0xfc1daa[_0x1e2acf(0xfe)](_0xfc1daa['nYYTt'],_0xfc1daa[_0x1e2acf(0x15d)])?_0x488982=_0x4e1969:(_0x43efd7=_0x1e2acf(0x154)+_0x2b0e25[_0x1e2acf(0x19c)]+_0x1e2acf(0x181),await _0xfc1daa[_0x1e2acf(0x1b1)](reportToGalactusAndSendToEDS,_0x2b0e25,_0x18ae9e,_0x43efd7,messageTypes[_0x1e2acf(0x131)],_0xfc1daa['ZFfkq'],_0xfc1daa[_0x1e2acf(0x1ba)],_0xfc1daa['NzYNd']),logger[_0x1e2acf(0x13a)](_0x43efd7),process[_0x1e2acf(0xfd)](0x1)):_0xfc1daa[_0x1e2acf(0xde)](_0xfc1daa[_0x1e2acf(0x15a)],_0xfc1daa[_0x1e2acf(0x15a)])?_0x2e1b44+=_0x1e2acf(0xdf)+_0x100c65['clusterName']+'\x20'+(_0x4b08f5?_0xfc1daa['Lhnyn']:_0xfc1daa['JrZhb'])+'\x0a\x0a':_0x46a069=_0x325569;}else _0x2fe958[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0x159)]);}else _0xfc1daa[_0x1e2acf(0x163)](_0xfc1daa[_0x1e2acf(0x184)],_0xfc1daa[_0x1e2acf(0x184)])?process[_0x1e2acf(0xfd)](0x1):_0x19fa2e[_0x1e2acf(0x13a)](_0x1e2acf(0x112)+_0x39df44[_0x1e2acf(0x13a)][_0x1e2acf(0x147)]);const _0x515bd8={};_0x515bd8[_0x1e2acf(0x105)]=WS_EVENTS[_0x1e2acf(0x1cb)],_0x515bd8[_0x1e2acf(0x161)]=_0xfc1daa['KMhCs'],webSocketUtils[_0x1e2acf(0x140)](_0x18ae9e,_0x515bd8),global_registry[_0x1e2acf(0x13f)]=_0x46a069[_0x1e2acf(0x13f)],global_registry[_0x1e2acf(0x164)]=_0x46a069[_0x1e2acf(0x1cf)],global_registry[_0x1e2acf(0x137)]=_0x46a069[_0x1e2acf(0x137)];}}else _0xfc1daa[_0x1e2acf(0x1af)](_0xfc1daa[_0x1e2acf(0x1c7)],_0xfc1daa[_0x1e2acf(0x103)])?(_0x4017d4[_0x1e2acf(0x17e)](_0x1e2acf(0xf0)+_0xa713d4[_0x1e2acf(0x18b)]+'\x20'),_0x495b45[_0x1e2acf(0x13f)]=_0x564f66['CLOUD_PROVIDER']):(logger['error'](_0xfc1daa['aksKp']),process[_0x1e2acf(0xfd)](0x1));}}}catch(_0xc5f6a2){_0xfc1daa[_0x1e2acf(0x120)](_0xfc1daa[_0x1e2acf(0x145)],_0xfc1daa[_0x1e2acf(0x172)])?_0x126e0d[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0x183)]):(_0x43efd7=_0x1e2acf(0x15c)+_0xc5f6a2+':\x20'+_0xc5f6a2[_0x1e2acf(0x147)],logger[_0x1e2acf(0x13a)](_0x43efd7),await _0xfc1daa[_0x1e2acf(0x198)](reportToGalactusAndSendToEDS,_0x2b0e25,_0x18ae9e,_0x43efd7,messageTypes['ERROR'],_0xfc1daa[_0x1e2acf(0x149)],_0xfc1daa[_0x1e2acf(0x18a)],_0xfc1daa['NzYNd']),process[_0x1e2acf(0xfd)](0x1));}}function a17_0x5f44(){const _0x397d08=['Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','message','mWVmf','KkIXE','clusterRegion','twAvz','UNjnj','gcLBG','jeFbp','490065PDcdfn','cloud-provider','description','header','existsSync','XXUDm','2460269BLfIij','zXpUm','SSL\x20Configured','VDGPf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eUeXx','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20region\x20-\x20','yjjyD','grid-profile','eQroI','dtxHQ','xfdmb','tTYwU','Message:\x20','info','Status:\x20','PmVdm','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','QYdYV','WpuiY','dnELe','uensy','init','bGlIb','connectionTimeout','Failure','NyFEb','CLOUD_PROVIDER','oJTkE','Success','qLLjN','shMmj','cluster-check-failed-','checkAccess','got','TFEwV','stringify','MIunj','mfjwY','delay','qXRbY','1395516mxhNrp','desc','help','gridProfile','data','\x20\x20Message:\x20','string','WebSocket','posgz','body','\x20===\x0a\x0a','dummy-grid','aOJEm','klFNf','VuQzB','CJCMb','zNLhP','\x20error\x20:\x20','../../utils/utilityMethods','username','Pre-check\x20running\x20for\x20Cloud\x20-\x20','isTls1_2_SUPPORTED','bUCQf','LTxXP','qXWMh','command','kZqWO','GET','password','pre-check-grid-called','Failed\x20in\x20pre-check!\x20Error:\x20','mhHQP','5fIXQlW','rjuis','MCFvi','LaLRB','uSrFB','bstackUsername','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','MCoKI','oWQaZ','stack\x20trace\x20','pre_check','rJggW','wYYnS','bEciC','AVvjm','oPMGR','\x20\x20Stack:\x20','isTrialGridAccessible','LOG','xwVjQ','lLLca','../../utils/instrumentationUtils','region','handler','../../config/constants','\x20data\x20:\x20','replace','xdqTG','is\x20already\x20present','Xrgre','epilogue','`\x20already\x20exists','will\x20be\x20created','\x20\x20Code:\x20','Cluster\x20details\x0a-----------------------\x0a','loQWh','Cluster\x20','tjpww','SFTMK','yzhIq','vvqsq','readFileSync','gjplU','grid\x20profile\x20flow\x20','push','usage','KGuLK','Tool\x20Installed','Rnfir','options','argv','rpjAy','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Setting\x20cloud\x20provider\x20as\x20','headers','builder','yfRxj','ptFmu','unable\x20to\x20verify\x20if\x20cluster\x20`','VYUIK','getUTCDate','Browserstack','fMbzl','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','icada','accessResp','exit','CqmsS','gWVXR','isCliToolInstalled','pre-check','bstackAccesskey','JBQCB','includes','type','toLowerCase','Grid\x20profile\x20fetched\x20for\x20pre-check','DHNQj','getUTCMinutes','urUhh','<PasswordPlaceholder>','aoKJx','authHeader','ywpMP','YnyGc','Error\x20Details:\x0a','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','error\x20stack\x20:\x20','RDMdy','kbgwk','xhstb','getUTCMonth','EgdFU','agOaQ','RUJOV','AfGhK','UPzPk','rEvPn','aZcIl','Cluster\x20`','suwHo','blrhw','Kiwgx','code','credential-not-found','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ZRNfh','386288qbZYAX','JVPes','../../cloudproviders/utils','INFO','User\x20Access','rrOLl','split','/packages/cli/get-all-grid-profiles','find','281102UMHILJ',']\x20status\x20:\x20','ERROR','reconnecting-websocket','mIcED','debug','YaQpt','5236400Wcrlyi','clusterName','NzYNd','requestId','error','method','cluster-name','mwEoJ','MsZtc','cloudProvider','sendEventToBackend','../../config/logger','OovTJ','rOLFZ','response','ycvVX','MgLQT','stack','GeRVL','ZFfkq','FbRDq','.\x20Please\x20provide\x20all\x20required\x20arguments.','jaWZh','QHhox','cloud-provider-not-supported','grid','===\x20Precheck\x20Report\x20-\x20','writeFileSync','parse','0|3|4|2|1','Invalid\x20input.\x20grid\x20profiles:\x20','FpEqr','GuSvc','toolInstalledResp','status','qTMyj','eqtIT','cPAiQ','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','nYYTt','828618tVHmXn','XOKBh'];a17_0x5f44=function(){return _0x397d08;};return a17_0x5f44();}function printResponse(_0x4e2421,_0x215556){const _0x2ce174=a17_0x4428c2,_0x135285={};_0x135285['rEvPn']=_0x2ce174(0x160),_0x135285[_0x2ce174(0x182)]=_0x2ce174(0x19f),_0x135285[_0x2ce174(0x165)]=_0x2ce174(0xef),_0x135285[_0x2ce174(0x10f)]=_0x2ce174(0x175),_0x135285['MgLQT']=_0x2ce174(0x124),_0x135285[_0x2ce174(0xe3)]=_0x2ce174(0x19b),_0x135285[_0x2ce174(0x1b0)]=function(_0x307396,_0x252b9d){return _0x307396===_0x252b9d;},_0x135285[_0x2ce174(0x1b3)]='hXuZY',_0x135285[_0x2ce174(0x127)]=_0x2ce174(0x155);const _0x4dbb35=_0x135285;logger[_0x2ce174(0x17e)]('['+_0x4e2421+_0x2ce174(0x130)+_0x215556[_0x2ce174(0x158)]+_0x2ce174(0xd4)+_0x215556[_0x2ce174(0x19d)]+_0x2ce174(0x1aa)+_0x215556[_0x2ce174(0x13a)]);if(_0x215556[_0x2ce174(0x13a)]){if(_0x4dbb35[_0x2ce174(0x1b0)](_0x4dbb35[_0x2ce174(0x1b3)],_0x4dbb35[_0x2ce174(0x127)])){const _0x7644c3={};_0x7644c3[_0x2ce174(0x16b)]=_0x4dbb35[_0x2ce174(0x11c)],_0x7644c3[_0x2ce174(0x105)]=_0x4dbb35['QYdYV'];const _0x550b66={};_0x550b66[_0x2ce174(0x16b)]=_0x4dbb35[_0x2ce174(0x165)],_0x550b66['type']=_0x4dbb35[_0x2ce174(0x182)];const _0x128574={};_0x128574[_0x2ce174(0x16b)]=_0x4dbb35['YnyGc'],_0x128574[_0x2ce174(0x105)]=_0x4dbb35[_0x2ce174(0x182)];const _0x3517d9={};_0x3517d9[_0x2ce174(0x16b)]=_0x4dbb35[_0x2ce174(0x146)],_0x3517d9[_0x2ce174(0x105)]=_0x4dbb35['QYdYV'];const _0x5448df={};return _0x5448df[_0x2ce174(0x13c)]=_0x7644c3,_0x5448df[_0x2ce174(0x16a)]=_0x550b66,_0x5448df[_0x2ce174(0x1cf)]=_0x128574,_0x5448df[_0x2ce174(0x178)]=_0x3517d9,_0x48f6a5[_0x2ce174(0xe8)](_0x4ccad4[_0x2ce174(0x1c3)])['epilogue'](_0xce67fe)['options'](_0x5448df)['help'](_0x4dbb35['vvqsq'])[_0x2ce174(0xed)];}else logger['error']('error\x20stack\x20:\x20'+_0x215556[_0x2ce174(0x13a)][_0x2ce174(0x147)]);}}async function generateReport(_0x8a6a4f,_0x1a128d){const _0x1f8e50=a17_0x4428c2,_0x1f8859={'agOaQ':function(_0x17b430,_0x4d18f8){return _0x17b430+_0x4d18f8;},'ptFmu':_0x1f8e50(0x18d),'mfjwY':_0x1f8e50(0x189),'pFgOX':function(_0x1ea4f3,_0x4437f9){return _0x1ea4f3||_0x4437f9;},'MsZtc':'N/A','zUbHh':_0x1f8e50(0x110),'MIunj':_0x1f8e50(0xdd),'nZJeR':function(_0x127190,_0x40de0a){return _0x127190!=_0x40de0a;},'PmVdm':_0x1f8e50(0xd7),'NtaCn':_0x1f8e50(0xdb),'gjplU':function(_0x4bc978){return _0x4bc978();}};let _0x11ae87=_0x1f8e50(0x150)+global_registry[_0x1f8e50(0x13f)]+_0x1f8e50(0x1a3);return _0x8a6a4f['forEach']((_0x515285,_0x31c4ee)=>{const _0xab4f9e=_0x1f8e50,{header:_0x4e47f3,response:_0x3624b7}=_0x515285,{status:_0x15a796,data:_0x11a4eb,error:_0x29ca1f}=_0x3624b7;_0x11ae87+=_0x4e47f3+'\x20#'+_0x1f8859[_0xab4f9e(0x118)](_0x31c4ee,0x1)+'\x0a',_0x11ae87+=_0xab4f9e(0x17f)+(_0x15a796?_0x1f8859[_0xab4f9e(0xf4)]:_0x1f8859[_0xab4f9e(0x196)])+'\x0a',_0x11ae87+=_0xab4f9e(0x17d)+_0x1f8859['pFgOX'](_0x11a4eb,_0x1f8859[_0xab4f9e(0x13e)])+'\x0a',_0x29ca1f&&(_0x11ae87+=_0x1f8859['zUbHh'],_0x11ae87+='\x20\x20Message:\x20'+(_0x29ca1f[_0xab4f9e(0x161)]||_0x1f8859[_0xab4f9e(0x13e)])+'\x0a',_0x11ae87+='\x20\x20Code:\x20'+(_0x29ca1f[_0xab4f9e(0x122)]||_0x1f8859['MsZtc'])+'\x0a',_0x11ae87+='\x20\x20Stack:\x20'+(_0x29ca1f[_0xab4f9e(0x147)]||_0x1f8859[_0xab4f9e(0x13e)])+'\x0a'),_0x11ae87+='\x0a\x0a';}),_0x11ae87+=_0x1f8859[_0x1f8e50(0x195)],_0x1f8859['nZJeR'](_0x1a128d,null)?_0x11ae87+='Cluster\x20'+global_registry[_0x1f8e50(0x137)]+'\x20'+(_0x1a128d?_0x1f8859[_0x1f8e50(0x180)]:_0x1f8859['NtaCn'])+'\x0a\x0a':_0x11ae87+=_0x1f8e50(0xdf)+global_registry[_0x1f8e50(0x137)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x11ae87+=_0x1f8859[_0x1f8e50(0xe5)](getSystemMetaData),_0x11ae87;};exports[a17_0x4428c2(0xd2)]=async function(_0x4a9e36){const _0x3f5024=a17_0x4428c2,_0x39bbb4={'EgdFU':function(_0x1323c4){return _0x1323c4();},'suwHo':function(_0x33b54d){return _0x33b54d();},'XOKBh':_0x3f5024(0x173),'GPlSe':function(_0x494dfb,_0x48739b,_0x17610c,_0x365fa9,_0x5924e3,_0x2a8726,_0x1cb81d,_0x3ea0){return _0x494dfb(_0x48739b,_0x17610c,_0x365fa9,_0x5924e3,_0x2a8726,_0x1cb81d,_0x3ea0);},'kbgwk':_0x3f5024(0x1b6),'oWQaZ':_0x3f5024(0x123),'VuQzB':_0x3f5024(0x13a),'klFNf':function(_0x47d7eb,_0x6c7f61,_0xf2a50f,_0x50f9e6,_0x3a5b39,_0x32db7b,_0x401f52){return _0x47d7eb(_0x6c7f61,_0xf2a50f,_0x50f9e6,_0x3a5b39,_0x32db7b,_0x401f52);},'oxBfV':function(_0x248f26){return _0x248f26();},'KGuLK':'<UsernamePlaceholder>','Rnfir':_0x3f5024(0x10b),'FbRDq':function(_0x409980,_0x1d6b12,_0x491a8e){return _0x409980(_0x1d6b12,_0x491a8e);},'aZcIl':function(_0x3792f1,_0x239edc,_0x36db53){return _0x3792f1(_0x239edc,_0x36db53);},'OovTJ':_0x3f5024(0x1a4),'uSrFB':function(_0x354246,_0x1f93d0,_0x2b0214){return _0x354246(_0x1f93d0,_0x2b0214);},'eUeXx':_0x3f5024(0x157),'ZRNfh':_0x3f5024(0x153),'urUhh':function(_0x498c3f,_0x4b7a6f,_0x4fdbc1,_0x1b3aff,_0x2ae353,_0x50fcf,_0x19615f,_0x417fb8){return _0x498c3f(_0x4b7a6f,_0x4fdbc1,_0x1b3aff,_0x2ae353,_0x50fcf,_0x19615f,_0x417fb8);},'KXzJE':_0x3f5024(0xfc),'BJwAx':_0x3f5024(0x1ca),'XXUDm':function(_0x17ae77,_0x55d317){return _0x17ae77(_0x55d317);},'uensy':'TLSv1_2_client_method','mIcED':function(_0x792c1f,_0x25c080,_0x2e9506){return _0x792c1f(_0x25c080,_0x2e9506);},'dtxHQ':_0x3f5024(0x1ae),'mhHQP':_0x3f5024(0xea),'pFTNP':_0x3f5024(0x12a),'lLLca':'Whitelisted\x20browserstack','ldiaa':_0x3f5024(0x171),'bGlIb':function(_0x271a9e,_0x3afa4a,_0x50665c){return _0x271a9e(_0x3afa4a,_0x50665c);},'rOLFZ':function(_0x9a842e,_0x2511bd){return _0x9a842e+_0x2511bd;},'cJCHO':'utf-8','jJnMr':'pre-check-failed'};let _0xcd53dd,_0x274919;try{global_registry[_0x3f5024(0x139)]=_0x39bbb4[_0x3f5024(0x117)](uuidv4);!fs[_0x3f5024(0x16d)](_0x39bbb4[_0x3f5024(0x11f)](getCredentialsPath))&&(_0x274919=_0x39bbb4[_0x3f5024(0x15f)],logger[_0x3f5024(0x13a)](_0x274919),await _0x39bbb4['GPlSe'](reportToGalactusAndSendToEDS,_0x4a9e36,_0xcd53dd,_0x274919,messageTypes['ERROR'],_0x39bbb4[_0x3f5024(0x114)],_0x39bbb4[_0x3f5024(0x1c1)],_0x39bbb4['VuQzB']),process[_0x3f5024(0xfd)](0x1));_0x39bbb4['klFNf'](sendInstrumentationEvent,_0x4a9e36,_0x39bbb4[_0x3f5024(0x114)],messageTypes[_0x3f5024(0x129)],null,null,_0x4a9e36);const _0x5d21e3=JSON['parse'](fs[_0x3f5024(0xe4)](_0x39bbb4['oxBfV'](getCredentialsPath)));global_registry['bstackUsername']=_0x5d21e3[_0x3f5024(0xf8)][_0x3f5024(0x1ac)],global_registry[_0x3f5024(0x102)]=_0x5d21e3[_0x3f5024(0xf8)][_0x3f5024(0x1b5)];const _0x3080de=WS_ENDPOINT['replace'](_0x39bbb4[_0x3f5024(0xe9)],_0x5d21e3[_0x3f5024(0xf8)][_0x3f5024(0x1ac)])[_0x3f5024(0xd5)](_0x39bbb4[_0x3f5024(0xeb)],_0x5d21e3['Browserstack'][_0x3f5024(0x1b5)]),_0x23fe14={};_0x23fe14[_0x3f5024(0x1a0)]=ws,_0x23fe14[_0x3f5024(0x188)]=0x36ee80,_0xcd53dd=new ReconnectingWebSocket(_0x3080de,[],_0x23fe14),global_registry[_0x3f5024(0x10d)]=_0x39bbb4[_0x3f5024(0x14a)](getAuthHeader,global_registry[_0x3f5024(0x1be)],global_registry[_0x3f5024(0x102)]),await _0x39bbb4['aZcIl'](inputValidation,_0x4a9e36,_0xcd53dd),logger[_0x3f5024(0x17e)](_0x3f5024(0x1ad)+global_registry['cloudProvider']+_0x3f5024(0x176)+global_registry[_0x3f5024(0x164)]);let _0x1b4fdc=await _0x39bbb4[_0x3f5024(0x1a6)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x3f5024(0x137)],_0x39bbb4[_0x3f5024(0x142)],_0xcd53dd,webSocketUtils,_0x4a9e36);const _0xc964ba=await _0x1b4fdc[_0x3f5024(0x100)]();_0x39bbb4[_0x3f5024(0x1bd)](printResponse,_0x39bbb4[_0x3f5024(0x174)],_0xc964ba),_0x1b4fdc=await _0x1b4fdc[_0x3f5024(0x186)]();let _0x321c07=![];try{_0x321c07=await _0x1b4fdc['isClusterPresent']();}catch(_0x3704c5){const _0x5a1a1a=_0x39bbb4[_0x3f5024(0x125)][_0x3f5024(0x12c)]('|');let _0x5da77f=0x0;while(!![]){switch(_0x5a1a1a[_0x5da77f++]){case'0':_0x274919=_0x3f5024(0xf5)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x3704c5;continue;case'1':await _0x39bbb4[_0x3f5024(0x10a)](reportToGalactusAndSendToEDS,_0x4a9e36,_0xcd53dd,_0x274919,messageTypes['ERROR'],_0x39bbb4[_0x3f5024(0x114)],_0x3f5024(0x190)+global_registry[_0x3f5024(0x13f)],_0x39bbb4[_0x3f5024(0x1a7)]);continue;case'2':_0x274919+='\x0a'+JSON[_0x3f5024(0x194)](_0x3704c5[_0x3f5024(0x147)]);continue;case'3':_0x321c07=null;continue;case'4':logger[_0x3f5024(0x13a)](_0x274919);continue;}break;}}_0x321c07&&logger[_0x3f5024(0x17e)](_0x3f5024(0x11e)+global_registry[_0x3f5024(0x137)]+_0x3f5024(0xda));const _0x5b1531=await _0x1b4fdc[_0x3f5024(0x191)]();_0x39bbb4[_0x3f5024(0x11d)](printResponse,_0x39bbb4['KXzJE'],_0x5b1531);const _0x57a909=await _0x39bbb4[_0x3f5024(0x117)](curlRequest);_0x39bbb4[_0x3f5024(0x11d)](printResponse,_0x39bbb4['BJwAx'],_0x57a909);const _0x1dce0c=await _0x39bbb4[_0x3f5024(0x16e)](isTlsSupported,_0x39bbb4[_0x3f5024(0x185)]);_0x39bbb4[_0x3f5024(0x133)](printResponse,_0x39bbb4[_0x3f5024(0x17a)],_0x1dce0c);const _0x468637={};_0x468637[_0x3f5024(0x16c)]=_0x39bbb4[_0x3f5024(0x1b8)],_0x468637[_0x3f5024(0x144)]=_0xc964ba;const _0x2d6275={};_0x2d6275['header']=_0x39bbb4['pFTNP'],_0x2d6275['response']=_0x5b1531;const _0x17a66c={};_0x17a66c[_0x3f5024(0x16c)]=_0x39bbb4[_0x3f5024(0x1cd)],_0x17a66c[_0x3f5024(0x144)]=_0x57a909;const _0x4f80c7={};_0x4f80c7['header']=_0x39bbb4['ldiaa'],_0x4f80c7['response']=_0x1dce0c;const _0x492ec9=[_0x468637,_0x2d6275,_0x17a66c,_0x4f80c7],_0x29651a=await _0x39bbb4[_0x3f5024(0x187)](generateReport,_0x492ec9,_0x321c07),_0x4ab2d9=new Date(),_0x4ec9f9=_0x4ab2d9['getUTCFullYear']()+'_'+_0x39bbb4[_0x3f5024(0x143)](_0x4ab2d9[_0x3f5024(0x116)](),0x1)+'_'+_0x4ab2d9[_0x3f5024(0xf7)]()+'_'+_0x4ab2d9['getUTCHours']()+'_'+_0x4ab2d9[_0x3f5024(0x109)](),_0x3f2ab8='log/report_'+_0x4ec9f9+'.txt';fs[_0x3f5024(0x151)](_0x3f2ab8,_0x29651a,_0x39bbb4['cJCHO']),logger[_0x3f5024(0x17e)]('Report\x20saved\x20in\x20'+_0x3f2ab8),process[_0x3f5024(0xfd)](0x0);}catch(_0x35de3a){let _0x2aa5c9=_0x3f5024(0x1b7)+_0x35de3a+'\x20';logger[_0x3f5024(0x13a)](_0x2aa5c9),_0x2aa5c9+='\x0a'+JSON[_0x3f5024(0x194)](_0x35de3a[_0x3f5024(0x147)]),logger['debug'](_0x3f5024(0x1c2)+_0x35de3a[_0x3f5024(0x147)]);if(_0xcd53dd){const _0x191bfd={};_0x191bfd['type']=WS_EVENTS[_0x3f5024(0x1cb)],_0x191bfd[_0x3f5024(0x161)]=_0x2aa5c9,webSocketUtils[_0x3f5024(0x140)](_0xcd53dd,_0x191bfd,_0x39bbb4[_0x3f5024(0x1a7)],!![]);}await webSocketUtils[_0x3f5024(0x197)](0x7d0);const _0x2048ca={};_0x2048ca['error']=_0x2aa5c9,await _0x39bbb4[_0x3f5024(0x1a6)](sendInstrumentationEvent,_0x4a9e36,_0x39bbb4[_0x3f5024(0x114)],messageTypes[_0x3f5024(0x131)],_0x39bbb4['jJnMr'],_0x2048ca,_0x4a9e36),process[_0x3f5024(0xfd)](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_0x1e5b1f=a18_0x2d6e;(function(_0x6cf8bf,_0x658c8c){const _0x55661e=a18_0x2d6e,_0x1034f4=_0x6cf8bf();while(!![]){try{const _0x319dea=parseInt(_0x55661e(0x124))/0x1*(-parseInt(_0x55661e(0x12b))/0x2)+parseInt(_0x55661e(0x12c))/0x3*(-parseInt(_0x55661e(0x127))/0x4)+-parseInt(_0x55661e(0x132))/0x5*(parseInt(_0x55661e(0x11a))/0x6)+parseInt(_0x55661e(0x120))/0x7*(-parseInt(_0x55661e(0x12d))/0x8)+parseInt(_0x55661e(0x122))/0x9*(parseInt(_0x55661e(0x11c))/0xa)+parseInt(_0x55661e(0x125))/0xb+parseInt(_0x55661e(0x12f))/0xc;if(_0x319dea===_0x658c8c)break;else _0x1034f4['push'](_0x1034f4['shift']());}catch(_0x41700e){_0x1034f4['push'](_0x1034f4['shift']());}}}(a18_0x57bb,0x35bac));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1e5b1f(0x121));function a18_0x2d6e(_0x28eb71,_0x2cd6ba){const _0x57bbaf=a18_0x57bb();return a18_0x2d6e=function(_0x2d6ed8,_0x3832c6){_0x2d6ed8=_0x2d6ed8-0x11a;let _0x3df8bd=_0x57bbaf[_0x2d6ed8];return _0x3df8bd;},a18_0x2d6e(_0x28eb71,_0x2cd6ba);}exports[a18_0x1e5b1f(0x123)]=a18_0x1e5b1f(0x129),exports[a18_0x1e5b1f(0x11e)]=a18_0x1e5b1f(0x131),exports[a18_0x1e5b1f(0x12a)]=function(_0x1101d0){const _0x405426=a18_0x1e5b1f,_0x54a158={};_0x54a158[_0x405426(0x12e)]='start_commands',_0x54a158['WlbUb']=_0x405426(0x126);const _0x5f378c=_0x54a158;return _0x1101d0['usage'](HELP_HEADER_MESSAGE[_0x405426(0x129)])[_0x405426(0x11f)](HELP_FOOTER_MESSAGE)[_0x405426(0x130)](_0x5f378c['ZcFDP'])['demandCommand']()[_0x405426(0x11b)]()['strict']()['help'](_0x5f378c[_0x405426(0x128)]);},exports[a18_0x1e5b1f(0x11d)]=function(_0x52c7b4){};function a18_0x57bb(){const _0x2e5e68=['start','builder','2HAXUuN','81729MRXyxK','9368nYQJAT','ZcFDP','1929432wzBNZX','commandDir','Start\x20an\x20existing\x20Automation\x20grid.','200YButcI','2682oNnqlX','recommendCommands','20KMKlNs','handler','desc','epilogue','1561yfgyWE','../config/constants','1634481hniqHz','command','74933irsHTP','2348236QYbgpp','help','24jpiVfF','WlbUb'];a18_0x57bb=function(){return _0x2e5e68;};return a18_0x57bb();}
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
- const a19_0x97d4a5=a19_0x2525;function a19_0x2525(_0x2eafc4,_0x3140da){const _0x14fe89=a19_0x14fe();return a19_0x2525=function(_0x25254e,_0x15608f){_0x25254e=_0x25254e-0x102;let _0x2bedc4=_0x14fe89[_0x25254e];return _0x2bedc4;},a19_0x2525(_0x2eafc4,_0x3140da);}function a19_0x14fe(){const _0x601ccd=['KblDi','statusCode','oJxSb','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yVAdB','skipTlsCertVerify','addListeners','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','handler','PjCfp','Uqoew','Starting\x20grid\x20','9995720UaOhdz','Browserstack','5peEUbt','16lKyvcE','pIkng','NfasG','bstackUsername','usage','azchw','name','lgmLT','3QmnJYa','2fCJCyY','DSMII','replace','existsSync','5874015GwFDnO','readFileSync','Adding\x20Websocket\x20listeners','ZHEhO','skip-tls-cert-verify','HqBcG','exit','../../utils/webSocketUtils','ERROR','builder','username','TmCLG','LcWyX','ObvKl','../../cloudproviders/utils','boolean','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','5424102yjSrOF','<UsernamePlaceholder>','Skip\x20insecure\x20cert\x20verification.','gridId','command','INFO','help','description','server-error','info','ZTtsz','invalid-grid-id','12PRWHbY','bstackAccesskey','unauthorised','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cloudProvider','850033WqCDSN','36139378kVMUwT','message','desc','clusterName','DSlVN','argv','Qzzzl','1401564PIhPdA','password','../../config/constants','XSOpj','body','parse','error','debug','2566268hiKzFK','tRfUZ','grid-id','enoQQ','type','WebSocket'];a19_0x14fe=function(){return _0x601ccd;};return a19_0x14fe();}(function(_0x1ca660,_0xc519d2){const _0x38e91e=a19_0x2525,_0x7fed2e=_0x1ca660();while(!![]){try{const _0x5965eb=-parseInt(_0x38e91e(0x102))/0x1*(parseInt(_0x38e91e(0x130))/0x2)+-parseInt(_0x38e91e(0x12f))/0x3*(parseInt(_0x38e91e(0x112))/0x4)+-parseInt(_0x38e91e(0x126))/0x5*(-parseInt(_0x38e91e(0x10a))/0x6)+parseInt(_0x38e91e(0x134))/0x7+-parseInt(_0x38e91e(0x127))/0x8*(parseInt(_0x38e91e(0x145))/0x9)+-parseInt(_0x38e91e(0x124))/0xa+-parseInt(_0x38e91e(0x103))/0xb*(-parseInt(_0x38e91e(0x151))/0xc);if(_0x5965eb===_0xc519d2)break;else _0x7fed2e['push'](_0x7fed2e['shift']());}catch(_0x544c42){_0x7fed2e['push'](_0x7fed2e['shift']());}}}(a19_0x14fe,0xa1869));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x97d4a5(0x10c)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x97d4a5(0x13b)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x97d4a5(0x142));exports[a19_0x97d4a5(0x149)]='grid',exports[a19_0x97d4a5(0x105)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x97d4a5(0x13d)]=function(_0x5a893c){const _0x195994=a19_0x97d4a5,_0x14e573={};_0x14e573['TmCLG']=_0x195994(0x144),_0x14e573[_0x195994(0x131)]='string',_0x14e573[_0x195994(0x109)]=_0x195994(0x147),_0x14e573[_0x195994(0x121)]=_0x195994(0x143),_0x14e573[_0x195994(0x118)]=_0x195994(0x14b);const _0x38cc2a=_0x14e573,_0x2a53cd={};_0x2a53cd[_0x195994(0x14c)]=_0x38cc2a[_0x195994(0x13f)],_0x2a53cd[_0x195994(0x116)]=_0x38cc2a['DSMII'];const _0x3f8a9b={};_0x3f8a9b[_0x195994(0x14c)]=_0x38cc2a[_0x195994(0x109)],_0x3f8a9b[_0x195994(0x116)]=_0x38cc2a[_0x195994(0x121)],_0x3f8a9b['default']=![];const _0x1b80f5={};return _0x1b80f5[_0x195994(0x114)]=_0x2a53cd,_0x1b80f5[_0x195994(0x138)]=_0x3f8a9b,_0x5a893c[_0x195994(0x12b)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x1b80f5)[_0x195994(0x14b)](_0x38cc2a[_0x195994(0x118)])[_0x195994(0x108)];},exports[a19_0x97d4a5(0x120)]=async function(_0x1c77f3){const _0x2fe0a0=a19_0x97d4a5,_0xa2e4ed={'LcWyX':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','ZHEhO':function(_0x49afce){return _0x49afce();},'NfasG':_0x2fe0a0(0x11b),'DSlVN':function(_0x302fde,_0x4695e2,_0x3c849c,_0x28b07a,_0x4c8068,_0x54d6d4,_0x457a35){return _0x302fde(_0x4695e2,_0x3c849c,_0x28b07a,_0x4c8068,_0x54d6d4,_0x457a35);},'ObvKl':'start-grid-called','Uqoew':'init-not-called','enoQQ':_0x2fe0a0(0x146),'XSOpj':'<PasswordPlaceholder>','azchw':_0x2fe0a0(0x136),'ZTtsz':function(_0x2b5f5b,_0x1f2324,_0xb0661,_0x1bc705){return _0x2b5f5b(_0x1f2324,_0xb0661,_0x1bc705);},'lgmLT':function(_0x4a4ad8,_0x323e3b,_0x5b8b96){return _0x4a4ad8(_0x323e3b,_0x5b8b96);},'oJxSb':'Grid\x20started','yVAdB':function(_0x5d3d9a,_0x27d138){return _0x5d3d9a===_0x27d138;},'kJTWU':_0x2fe0a0(0x154),'VppPd':_0x2fe0a0(0x153),'pIkng':_0x2fe0a0(0x150),'tRfUZ':function(_0x5cc758,_0x34e851,_0x196559,_0x1ba272,_0x1aff62,_0x17924c,_0x24e765){return _0x5cc758(_0x34e851,_0x196559,_0x1ba272,_0x1aff62,_0x17924c,_0x24e765);},'HqBcG':_0x2fe0a0(0x14d)};let _0x26d7f9;try{!_0x1c77f3[_0x2fe0a0(0x148)]&&(logger['error'](_0xa2e4ed[_0x2fe0a0(0x140)]),process[_0x2fe0a0(0x13a)](0x1));!fs[_0x2fe0a0(0x133)](_0xa2e4ed[_0x2fe0a0(0x137)](getCredentialsPath))&&(logger[_0x2fe0a0(0x110)](_0xa2e4ed[_0x2fe0a0(0x129)]),await _0xa2e4ed['DSlVN'](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed[_0x2fe0a0(0x141)],messageTypes[_0x2fe0a0(0x13c)],_0xa2e4ed[_0x2fe0a0(0x122)],null,_0x1c77f3),process['exit'](0x1));logger[_0x2fe0a0(0x14e)](_0x2fe0a0(0x123)+_0x1c77f3[_0x2fe0a0(0x148)]),await _0xa2e4ed['DSlVN'](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed[_0x2fe0a0(0x141)],messageTypes[_0x2fe0a0(0x14a)],null,null,_0x1c77f3);const _0x7125b5=JSON[_0x2fe0a0(0x10f)](fs[_0x2fe0a0(0x135)](_0xa2e4ed[_0x2fe0a0(0x137)](getCredentialsPath)));global_registry[_0x2fe0a0(0x12a)]=_0x7125b5['Browserstack'][_0x2fe0a0(0x13e)],global_registry[_0x2fe0a0(0x152)]=_0x7125b5[_0x2fe0a0(0x125)][_0x2fe0a0(0x10b)];const _0x392554=WS_ENDPOINT['replace'](_0xa2e4ed[_0x2fe0a0(0x115)],_0x7125b5[_0x2fe0a0(0x125)][_0x2fe0a0(0x13e)])[_0x2fe0a0(0x132)](_0xa2e4ed[_0x2fe0a0(0x10d)],_0x7125b5[_0x2fe0a0(0x125)][_0x2fe0a0(0x10b)]),_0x2a31bd={};_0x2a31bd[_0x2fe0a0(0x117)]=ws,_0x2a31bd['connectionTimeout']=0x36ee80,_0x26d7f9=new ReconnectingWebSocket(_0x392554,[],_0x2a31bd),logger[_0x2fe0a0(0x111)](_0xa2e4ed[_0x2fe0a0(0x12c)]),webSocketUtils[_0x2fe0a0(0x11e)](_0x26d7f9,_0x1c77f3['user'],_0x1c77f3[_0x2fe0a0(0x10b)]);const [_0x246c16,_0x14795b]=await _0xa2e4ed[_0x2fe0a0(0x14f)](getGridDetails,_0x7125b5['Browserstack']['username'],_0x7125b5['Browserstack']['password'],_0x1c77f3[_0x2fe0a0(0x148)]);if(_0x14795b){const _0x77b48f=_0x14795b['info'];global_registry['cloudProvider']=_0x77b48f['cloudProvider'],global_registry['clusterRegion']=_0x77b48f['region'],global_registry['clusterName']=_0x77b48f[_0x2fe0a0(0x106)];const _0x179603=await _0xa2e4ed[_0x2fe0a0(0x107)](getCloudProviderObject,_0x77b48f[_0x2fe0a0(0x155)],_0x77b48f['clusterName'],_0x77b48f[_0x2fe0a0(0x12d)],_0x26d7f9,webSocketUtils,_0x1c77f3),[_0x3a1b46,_0x571690,_0x4e7efd,_0x26df58,_0x22e7c3,_0x5be990]=await _0xa2e4ed[_0x2fe0a0(0x12e)](createK8sClient,_0x179603,_0x1c77f3[_0x2fe0a0(0x11d)]);await _0xa2e4ed[_0x2fe0a0(0x12e)](scaleUpHubDeployment,_0x571690,_0x77b48f['name']),logger[_0x2fe0a0(0x14e)](_0xa2e4ed[_0x2fe0a0(0x11a)]),process[_0x2fe0a0(0x13a)](0x0);}_0xa2e4ed[_0x2fe0a0(0x11c)](_0x246c16['statusCode'],0x191)&&(logger[_0x2fe0a0(0x110)](_0xa2e4ed['kJTWU']),await _0xa2e4ed[_0x2fe0a0(0x107)](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed[_0x2fe0a0(0x141)],messageTypes[_0x2fe0a0(0x13c)],_0xa2e4ed['VppPd'],null,_0x1c77f3),process[_0x2fe0a0(0x13a)](0x1)),_0xa2e4ed[_0x2fe0a0(0x11c)](_0x246c16[_0x2fe0a0(0x119)],0x190)&&(logger[_0x2fe0a0(0x110)](JSON[_0x2fe0a0(0x10f)](_0x246c16[_0x2fe0a0(0x10e)])[_0x2fe0a0(0x104)]),await _0xa2e4ed[_0x2fe0a0(0x107)](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed[_0x2fe0a0(0x141)],messageTypes['ERROR'],_0xa2e4ed[_0x2fe0a0(0x128)],null,_0x1c77f3),process[_0x2fe0a0(0x13a)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x246c16)),await _0xa2e4ed[_0x2fe0a0(0x113)](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed['ObvKl'],messageTypes['ERROR'],_0xa2e4ed[_0x2fe0a0(0x139)],_0x246c16,_0x1c77f3),process[_0x2fe0a0(0x13a)](0x1);}catch(_0x11db7b){const _0x3e2408=_0x2fe0a0(0x11f)+_0x11db7b+'\x20\x0a'+JSON['stringify'](_0x11db7b['stack'])+'\x20';logger[_0x2fe0a0(0x110)](_0x3e2408),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_0xd5c315=a20_0x4249;function a20_0x4957(){const _0x114db5=['stop_commands','handler','help','2993067bBRzNU','usage','502979QAChDC','vXZRc','Stop\x20a\x20running\x20Automation\x20grid.','436232NLKUYz','140rupJPV','315032JVKRNR','2155655LwOyzs','stop','12AjNgmP','builder','112ezfCNo','LGeZX','266387ORzCGs','10604QnJTgP','recommendCommands','epilogue','desc','../config/constants','command','465bdQasP'];a20_0x4957=function(){return _0x114db5;};return a20_0x4957();}(function(_0xe06213,_0x450220){const _0x100abd=a20_0x4249,_0x168179=_0xe06213();while(!![]){try{const _0xececfa=parseInt(_0x100abd(0x1b6))/0x1+-parseInt(_0x100abd(0x1aa))/0x2*(parseInt(_0x100abd(0x1b0))/0x3)+-parseInt(_0x100abd(0x1b9))/0x4+-parseInt(_0x100abd(0x1bc))/0x5*(-parseInt(_0x100abd(0x1a5))/0x6)+-parseInt(_0x100abd(0x1a7))/0x7*(parseInt(_0x100abd(0x1bb))/0x8)+parseInt(_0x100abd(0x1b4))/0x9+parseInt(_0x100abd(0x1ba))/0xa*(parseInt(_0x100abd(0x1a9))/0xb);if(_0xececfa===_0x450220)break;else _0x168179['push'](_0x168179['shift']());}catch(_0x5cc5f5){_0x168179['push'](_0x168179['shift']());}}}(a20_0x4957,0x74306));function a20_0x4249(_0x5d38c0,_0x5301f6){const _0x49570e=a20_0x4957();return a20_0x4249=function(_0x424919,_0x2a6409){_0x424919=_0x424919-0x1a5;let _0x93c584=_0x49570e[_0x424919];return _0x93c584;},a20_0x4249(_0x5d38c0,_0x5301f6);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xd5c315(0x1ae));exports[a20_0xd5c315(0x1af)]=a20_0xd5c315(0x1bd),exports[a20_0xd5c315(0x1ad)]=a20_0xd5c315(0x1b8),exports[a20_0xd5c315(0x1a6)]=function(_0x24fb51){const _0x3a8272=a20_0xd5c315,_0x2344cd={};_0x2344cd[_0x3a8272(0x1b7)]=_0x3a8272(0x1b1),_0x2344cd[_0x3a8272(0x1a8)]=_0x3a8272(0x1b3);const _0x43927c=_0x2344cd;return _0x24fb51[_0x3a8272(0x1b5)](HELP_HEADER_MESSAGE[_0x3a8272(0x1bd)])[_0x3a8272(0x1ac)](HELP_FOOTER_MESSAGE)['commandDir'](_0x43927c['vXZRc'])['demandCommand']()[_0x3a8272(0x1ab)]()['strict']()[_0x3a8272(0x1b3)](_0x43927c[_0x3a8272(0x1a8)]);},exports[a20_0xd5c315(0x1b2)]=function(_0xbc562c){};
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_0xbe0fb4=a21_0x3a53;(function(_0x43cb3b,_0x213c5f){const _0x15afca=a21_0x3a53,_0x438a58=_0x43cb3b();while(!![]){try{const _0x511777=parseInt(_0x15afca(0x172))/0x1*(parseInt(_0x15afca(0x1ae))/0x2)+parseInt(_0x15afca(0x169))/0x3*(parseInt(_0x15afca(0x177))/0x4)+-parseInt(_0x15afca(0x18b))/0x5*(-parseInt(_0x15afca(0x1bf))/0x6)+parseInt(_0x15afca(0x164))/0x7+-parseInt(_0x15afca(0x18d))/0x8+-parseInt(_0x15afca(0x199))/0x9+-parseInt(_0x15afca(0x179))/0xa;if(_0x511777===_0x213c5f)break;else _0x438a58['push'](_0x438a58['shift']());}catch(_0x53ae2a){_0x438a58['push'](_0x438a58['shift']());}}}(a21_0x15f1,0x54dae));function a21_0x15f1(){const _0x4ca19a=['Browserstack','options','grid','758dwJLhp','QUkly','hqCvI','stack','string','<PasswordPlaceholder>','IeIvQ','../../config/constants','error','dzNvl','info','handler','Stopping\x20grid\x20','parse','amnnX','Stop\x20a\x20running\x20Automation\x20grid.','EmMDy','1079508HjzxWu','body','clusterRegion','Adding\x20Websocket\x20listeners','skip-tls-cert-verify','1758316RYNCKC','replace','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bstackAccesskey','11121sQpOyq','stringify','MwbXN','unauthorised','addListeners','password','../../utils/createk8sClient','clusterName','stop-grid-called','569kMYYFc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','description','skipTlsCertVerify','user','312GMtvSj','yJJls','77640slENmv','gridId','builder','ERROR','AIBeb','JjpCY','help','nmOLi','argv','lGIlh','username','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','name','../../utils/utilityMethods','kzGzd','Skip\x20insecure\x20cert\x20verification.','message','exit','10rHqBHP','DVgRC','4270184EPcKtg','hevAn','connectionTimeout','../../utils/gridComponents','kyviw','region','XlhsF','invalid-grid-id','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kYwZQ','<UsernamePlaceholder>','usage','2040462pQHJrB','boolean','WebSocket','cloudProvider','grid-id','init-not-called','OGcTg','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','kbXcc','type','command','TZOlx','statusCode','BaYNY','JVSRd','stop','ovsSe','bstackUsername'];a21_0x15f1=function(){return _0x4ca19a;};return a21_0x15f1();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0xbe0fb4(0x1b5)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0xbe0fb4(0x186)),{scaleDownHubDeployment}=require(a21_0xbe0fb4(0x190)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0xbe0fb4(0x16f)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x3a53(_0x363c33,_0x491fd5){const _0x15f15f=a21_0x15f1();return a21_0x3a53=function(_0x3a537c,_0x194ff4){_0x3a537c=_0x3a537c-0x161;let _0x157ec8=_0x15f15f[_0x3a537c];return _0x157ec8;},a21_0x3a53(_0x363c33,_0x491fd5);}exports[a21_0xbe0fb4(0x1a3)]=a21_0xbe0fb4(0x1ad),exports['desc']=a21_0xbe0fb4(0x1bd),exports[a21_0xbe0fb4(0x17b)]=function(_0x55f8e0){const _0x47cc15=a21_0xbe0fb4,_0x35fb07={};_0x35fb07[_0x47cc15(0x19f)]=_0x47cc15(0x1a0),_0x35fb07['yJJls']=_0x47cc15(0x1b2),_0x35fb07['TZOlx']=_0x47cc15(0x188),_0x35fb07[_0x47cc15(0x1b0)]=_0x47cc15(0x19a),_0x35fb07[_0x47cc15(0x18c)]=_0x47cc15(0x17f);const _0x16104e=_0x35fb07,_0x19cfcc={};_0x19cfcc[_0x47cc15(0x174)]=_0x16104e[_0x47cc15(0x19f)],_0x19cfcc[_0x47cc15(0x1a2)]=_0x16104e[_0x47cc15(0x178)];const _0x16e5b1={};_0x16e5b1['description']=_0x16104e[_0x47cc15(0x1a4)],_0x16e5b1['type']=_0x16104e[_0x47cc15(0x1b0)],_0x16e5b1['default']=![];const _0x58290d={};return _0x58290d[_0x47cc15(0x19d)]=_0x19cfcc,_0x58290d[_0x47cc15(0x163)]=_0x16e5b1,_0x55f8e0[_0x47cc15(0x198)](HELP_HEADER_MESSAGE[_0x47cc15(0x1a8)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x47cc15(0x1ac)](_0x58290d)[_0x47cc15(0x17f)](_0x16104e[_0x47cc15(0x18c)])[_0x47cc15(0x181)];},exports[a21_0xbe0fb4(0x1b9)]=async function(_0x27ffec){const _0x1ff6c2=a21_0xbe0fb4,_0x1700ca={'kbXcc':_0x1ff6c2(0x184),'hevAn':function(_0x545da1){return _0x545da1();},'VBpGg':_0x1ff6c2(0x167),'kYwZQ':function(_0x4f7adc,_0x3216d6,_0x178343,_0x41651a,_0x117f3b,_0x512fd0,_0x35cea0){return _0x4f7adc(_0x3216d6,_0x178343,_0x41651a,_0x117f3b,_0x512fd0,_0x35cea0);},'lGIlh':_0x1ff6c2(0x171),'amnnX':_0x1ff6c2(0x19e),'ovsSe':function(_0x27e351,_0x4c1d6c,_0x12b860,_0x49bc0f,_0x422591,_0x4d86c1,_0x46b6ee){return _0x27e351(_0x4c1d6c,_0x12b860,_0x49bc0f,_0x422591,_0x4d86c1,_0x46b6ee);},'JjpCY':_0x1ff6c2(0x197),'kzGzd':_0x1ff6c2(0x1b3),'BaYNY':_0x1ff6c2(0x162),'AIBeb':function(_0x3a4980,_0x2b9768,_0xbcf26a,_0x4f5115){return _0x3a4980(_0x2b9768,_0xbcf26a,_0x4f5115);},'IeIvQ':function(_0x279745,_0x2f96c0,_0x97c1a7,_0x44b48d,_0x31f153,_0x42dc68,_0x25393f){return _0x279745(_0x2f96c0,_0x97c1a7,_0x44b48d,_0x31f153,_0x42dc68,_0x25393f);},'JVSRd':function(_0x1294fe,_0x3d4565,_0x4b6297){return _0x1294fe(_0x3d4565,_0x4b6297);},'kyviw':'Grid\x20stoppped.','KUppw':function(_0x233ece,_0x881d14){return _0x233ece===_0x881d14;},'MwbXN':_0x1ff6c2(0x195),'XlhsF':_0x1ff6c2(0x16c),'dmfUy':function(_0x2c5889,_0x5806a0){return _0x2c5889===_0x5806a0;},'nmOLi':function(_0x11ee06,_0x58428e,_0x302335,_0x2c09e9,_0x28566e,_0x3f2068,_0x4ec013){return _0x11ee06(_0x58428e,_0x302335,_0x2c09e9,_0x28566e,_0x3f2068,_0x4ec013);},'EmMDy':_0x1ff6c2(0x194),'dzNvl':function(_0xcf0941,_0x44d0ef,_0x21ed3f,_0x277c1a,_0x5eba90,_0x530e2d,_0x20d227){return _0xcf0941(_0x44d0ef,_0x21ed3f,_0x277c1a,_0x5eba90,_0x530e2d,_0x20d227);},'QUkly':'server-error'};let _0x541880;try{!_0x27ffec[_0x1ff6c2(0x17a)]&&(logger[_0x1ff6c2(0x1b6)](_0x1700ca[_0x1ff6c2(0x1a1)]),process[_0x1ff6c2(0x18a)](0x1));!fs['existsSync'](_0x1700ca[_0x1ff6c2(0x18e)](getCredentialsPath))&&(logger['error'](_0x1700ca['VBpGg']),await _0x1700ca[_0x1ff6c2(0x196)](sendInstrumentationEvent,_0x27ffec,_0x1700ca['lGIlh'],messageTypes['ERROR'],_0x1700ca[_0x1ff6c2(0x1bc)],null,_0x27ffec),process[_0x1ff6c2(0x18a)](0x1));logger['info'](_0x1ff6c2(0x1ba)+_0x27ffec[_0x1ff6c2(0x17a)]),await _0x1700ca[_0x1ff6c2(0x1a9)](sendInstrumentationEvent,_0x27ffec,_0x1700ca[_0x1ff6c2(0x182)],messageTypes['INFO'],null,null,_0x27ffec);const _0x1d55cb=JSON[_0x1ff6c2(0x1bb)](fs['readFileSync'](_0x1700ca[_0x1ff6c2(0x18e)](getCredentialsPath)));global_registry[_0x1ff6c2(0x1aa)]=_0x1d55cb['Browserstack'][_0x1ff6c2(0x183)],global_registry[_0x1ff6c2(0x168)]=_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x16e)];const _0x5c4ccc=WS_ENDPOINT['replace'](_0x1700ca[_0x1ff6c2(0x17e)],_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x183)])[_0x1ff6c2(0x165)](_0x1700ca[_0x1ff6c2(0x187)],_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x16e)]),_0x2f3cf4={};_0x2f3cf4[_0x1ff6c2(0x19b)]=ws,_0x2f3cf4[_0x1ff6c2(0x18f)]=0x36ee80,_0x541880=new ReconnectingWebSocket(_0x5c4ccc,[],_0x2f3cf4),logger['debug'](_0x1700ca[_0x1ff6c2(0x1a6)]),webSocketUtils[_0x1ff6c2(0x16d)](_0x541880,_0x27ffec[_0x1ff6c2(0x176)],_0x27ffec['password']);const [_0x196453,_0x62219b]=await _0x1700ca[_0x1ff6c2(0x17d)](getGridDetails,_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x183)],_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x16e)],_0x27ffec[_0x1ff6c2(0x17a)]);if(_0x62219b){const _0x3dcdbc=_0x62219b[_0x1ff6c2(0x1b8)];global_registry[_0x1ff6c2(0x19c)]=_0x3dcdbc[_0x1ff6c2(0x19c)],global_registry[_0x1ff6c2(0x161)]=_0x3dcdbc[_0x1ff6c2(0x192)],global_registry[_0x1ff6c2(0x170)]=_0x3dcdbc['clusterName'];const _0x2d0f10=await _0x1700ca[_0x1ff6c2(0x1b4)](getCloudProviderObject,_0x3dcdbc[_0x1ff6c2(0x19c)],_0x3dcdbc['clusterName'],_0x3dcdbc[_0x1ff6c2(0x185)],_0x541880,webSocketUtils,_0x27ffec),[_0x329717,_0x3e692e,_0x5de499,_0x11bfa4,_0x5e7c45,_0x5e1d81]=await _0x1700ca[_0x1ff6c2(0x1a7)](createK8sClient,_0x2d0f10,_0x27ffec[_0x1ff6c2(0x175)]);await _0x1700ca[_0x1ff6c2(0x1a7)](scaleDownHubDeployment,_0x3e692e,_0x3dcdbc[_0x1ff6c2(0x185)]),logger[_0x1ff6c2(0x1b8)](_0x1700ca[_0x1ff6c2(0x191)]),process[_0x1ff6c2(0x18a)](0x0);}_0x1700ca['KUppw'](_0x196453[_0x1ff6c2(0x1a5)],0x191)&&(logger[_0x1ff6c2(0x1b6)](_0x1700ca[_0x1ff6c2(0x16b)]),await _0x1700ca['ovsSe'](sendInstrumentationEvent,_0x27ffec,_0x1700ca[_0x1ff6c2(0x182)],messageTypes[_0x1ff6c2(0x17c)],_0x1700ca[_0x1ff6c2(0x193)],null,_0x27ffec),process[_0x1ff6c2(0x18a)](0x1)),_0x1700ca['dmfUy'](_0x196453[_0x1ff6c2(0x1a5)],0x190)&&(logger['error'](JSON[_0x1ff6c2(0x1bb)](_0x196453[_0x1ff6c2(0x1c0)])[_0x1ff6c2(0x189)]),await _0x1700ca[_0x1ff6c2(0x180)](sendInstrumentationEvent,_0x27ffec,_0x1700ca[_0x1ff6c2(0x182)],messageTypes[_0x1ff6c2(0x17c)],_0x1700ca[_0x1ff6c2(0x1be)],null,_0x27ffec),process[_0x1ff6c2(0x18a)](0x1)),logger[_0x1ff6c2(0x1b6)](_0x1ff6c2(0x173)+JSON[_0x1ff6c2(0x16a)](_0x196453)),await _0x1700ca[_0x1ff6c2(0x1b7)](sendInstrumentationEvent,_0x27ffec,_0x1700ca[_0x1ff6c2(0x182)],messageTypes['ERROR'],_0x1700ca[_0x1ff6c2(0x1af)],_0x196453,_0x27ffec),process[_0x1ff6c2(0x18a)](0x1);}catch(_0x413c7b){const _0x521401=_0x1ff6c2(0x166)+_0x413c7b+'\x20\x0a'+JSON[_0x1ff6c2(0x16a)](_0x413c7b[_0x1ff6c2(0x1b1)])+'\x20';logger[_0x1ff6c2(0x1b6)](_0x521401),process[_0x1ff6c2(0x18a)](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_0x27b89e=a22_0x23cc;(function(_0x1d82b5,_0x3a75f5){const _0x3fa445=a22_0x23cc,_0x3a0e1e=_0x1d82b5();while(!![]){try{const _0x50a6a8=parseInt(_0x3fa445(0xb3))/0x1*(-parseInt(_0x3fa445(0x90))/0x2)+-parseInt(_0x3fa445(0x76))/0x3+parseInt(_0x3fa445(0x83))/0x4+-parseInt(_0x3fa445(0xa8))/0x5+parseInt(_0x3fa445(0xa2))/0x6+-parseInt(_0x3fa445(0xa9))/0x7*(-parseInt(_0x3fa445(0x93))/0x8)+parseInt(_0x3fa445(0xb8))/0x9;if(_0x50a6a8===_0x3a75f5)break;else _0x3a0e1e['push'](_0x3a0e1e['shift']());}catch(_0x50a874){_0x3a0e1e['push'](_0x3a0e1e['shift']());}}}(a22_0x561a,0x86725),require(a22_0x27b89e(0xc5))['config']());let gridURL=a22_0x27b89e(0xd9),bsApiUrl=a22_0x27b89e(0xbb),agApiUrl=a22_0x27b89e(0xda);const _env=(process[a22_0x27b89e(0xae)][a22_0x27b89e(0x85)]||a22_0x27b89e(0xd3))['toLowerCase']();if(_env==='staging'||_env===a22_0x27b89e(0xa3))gridURL=a22_0x27b89e(0x71),bsApiUrl=a22_0x27b89e(0x91),agApiUrl=a22_0x27b89e(0x9e);else(_env===a22_0x27b89e(0x75)||_env==='pre-prod')&&(gridURL=a22_0x27b89e(0x98),bsApiUrl=a22_0x27b89e(0xcd),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process[a22_0x27b89e(0xae)][a22_0x27b89e(0xd7)]||gridURL,exports[a22_0x27b89e(0xb6)]=process[a22_0x27b89e(0xae)][a22_0x27b89e(0xb6)]||bsApiUrl,exports[a22_0x27b89e(0xac)]=process['env'][a22_0x27b89e(0xac)]||agApiUrl,exports[a22_0x27b89e(0x7d)]='wss://'+this[a22_0x27b89e(0xac)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x27b89e(0xc6)]=a22_0x27b89e(0xc8),exports[a22_0x27b89e(0x9c)]=a22_0x27b89e(0xdd),exports[a22_0x27b89e(0xad)]=a22_0x27b89e(0xaf),exports['AWS']='aws',exports['CLUSTER_DEP_STACK_NAME']=a22_0x27b89e(0x84),exports[a22_0x27b89e(0x74)]=a22_0x27b89e(0xc4),exports[a22_0x27b89e(0x7f)]=a22_0x27b89e(0x88),exports[a22_0x27b89e(0x9b)]=a22_0x27b89e(0xb0),exports[a22_0x27b89e(0xd0)]=a22_0x27b89e(0x95),exports[a22_0x27b89e(0x78)]=a22_0x27b89e(0x70),exports[a22_0x27b89e(0xa4)]=[this[a22_0x27b89e(0xc0)],this[a22_0x27b89e(0xd0)],this[a22_0x27b89e(0x78)]];const a22_0x295207={};a22_0x295207[a22_0x27b89e(0x8d)]=a22_0x27b89e(0x80),a22_0x295207[a22_0x27b89e(0x89)]=a22_0x27b89e(0x8a);const a22_0x1ab8dd={};a22_0x1ab8dd[a22_0x27b89e(0x8d)]=a22_0x27b89e(0x8c),a22_0x1ab8dd[a22_0x27b89e(0x89)]=a22_0x27b89e(0xbd);function a22_0x561a(){const _0x2194c8=['preprod','202833BInueJ','connect','GCP','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','global_registry','unknown','gridProfile','WS_ENDPOINT','grid-profile','CLUSTER_HUB_HA_STACK_NAME','browserstack:managedBy','CLI_RUN_STARTED','RAW_ARGS_REGEX','2081716wnGpec','BSTACK-ATS-CLUSTER','BROWSERSTACK_ENV','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','high-scale-grid-cluster','BSTACK-ATS-CLUSTER-HUB-HA','Value','BrowserStack','GRID_URL','browserstack:service','Key','SUPPORTED_CLOUD_PROVIDERS','[REDACTED]','4EeMkMx','api-devhst.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','8KVtPys','aws','azure','start','LOG','grid-preprod.bsstag.com','log','info','TURBOSCALE_DEPLOYMENT','IAM_USER_NAME','TURBOSCALE_CUSTOM_TAGS','grid-api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','pre-check','1983018zfcFpA','stag','ALL_SUPPORTED_CLOUD_PROVIDERS','UNKNOWN','WS_EVENTS','list','4263595ILCiGG','2047283ltIxMG','delete','gridUrl','AG_API_URL','DEFAULT_GRID_NAME','env','high-scale-grid','browserstack-turboscale-grid','COMMON_HST_TAGS','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','32543gkSrhL','init','CLOUD_PROVIDER','BS_API_URL','create','3534372eMhgsi','LINK_MESSAGE','HELP_HEADER_MESSAGE','api.browserstack.com','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack-Automate-TurboScale','INFO','pre_check','AWS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','NULL','CLI_RUN_FINISHED','BSTACK-ATS-CLUSTER-AUTOSCALER','dotenv','CP_CONFIG_FILE','HST_CLUSTER_TAGS','credentials','SUCCESS','push','error','messageTypes','api-preprod.bsstag.com','TRIAL_GRID_URL','REGION','AZURE','split','WARNING','prod','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','DEFAULT_CLUSTER_DETAILS','DASHBOARD_ENDPOINT','forEach','grid.browserstack.com','grid-api.browserstack.com','ERROR','root','BrowserStackIAMUser','MessageDescription','REDACTED','grid','gcp','grid-devhst.bsstag.com','resourceInfo','RESOURCES','CLUSTER_AUTOSCALER_STACK_NAME'];a22_0x561a=function(){return _0x2194c8;};return a22_0x561a();}const common_hst_tags_list=[a22_0x295207,a22_0x1ab8dd];if(process[a22_0x27b89e(0xae)][a22_0x27b89e(0x9d)]){const parsedTags=process[a22_0x27b89e(0xae)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x27b89e(0xd1)](',');parsedTags[a22_0x27b89e(0xd8)](_0x59b8cf=>{const _0x13cd57=a22_0x27b89e,_0x25c5ff=_0x59b8cf[_0x13cd57(0xd1)](':'),_0x32bed6={};_0x32bed6[_0x13cd57(0x8d)]=_0x25c5ff[0x0],_0x32bed6[_0x13cd57(0x89)]=_0x25c5ff[0x1],common_hst_tags_list[_0x13cd57(0xca)](_0x32bed6);});}exports[a22_0x27b89e(0xb1)]=common_hst_tags_list;const a22_0x313ad0={};a22_0x313ad0['browserstack:managedBy']='BrowserStack',a22_0x313ad0['browserstack:service']=a22_0x27b89e(0xbd),exports[a22_0x27b89e(0xc7)]=a22_0x313ad0,exports[a22_0x27b89e(0x8e)]=[this['AWS']];const a22_0x1344f8={};a22_0x1344f8[a22_0x27b89e(0x97)]=a22_0x27b89e(0x99),a22_0x1344f8[a22_0x27b89e(0x73)]=a22_0x27b89e(0x72),a22_0x1344f8[a22_0x27b89e(0x8b)]=a22_0x27b89e(0xab),a22_0x1344f8[a22_0x27b89e(0x81)]='cliRunStarted',a22_0x1344f8[a22_0x27b89e(0xc3)]='cliRunFinished',exports[a22_0x27b89e(0xa6)]=a22_0x1344f8,exports[a22_0x27b89e(0x7a)]={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x152a4b={};a22_0x152a4b[a22_0x27b89e(0xdc)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xb4)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x27b89e(0xb9)],a22_0x152a4b['configure']=a22_0x27b89e(0x9f)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xb7)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x152a4b[a22_0x27b89e(0xa7)]={},a22_0x152a4b[a22_0x27b89e(0xaa)]=a22_0x27b89e(0xd5)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0x77)]=a22_0x27b89e(0xbc)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0x96)]=a22_0x27b89e(0x86)+this[a22_0x27b89e(0xb9)],a22_0x152a4b['stop']=a22_0x27b89e(0x92)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xbf)]=a22_0x27b89e(0xa0)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xa7)][a22_0x27b89e(0xdc)]=a22_0x27b89e(0xd4)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xa7)][a22_0x27b89e(0x6f)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x152a4b[a22_0x27b89e(0xa7)][a22_0x27b89e(0x7c)]=a22_0x27b89e(0xc1)+this[a22_0x27b89e(0xb9)],exports[a22_0x27b89e(0xba)]=a22_0x152a4b,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x47ee6a={};a22_0x47ee6a[a22_0x27b89e(0xc9)]='success',a22_0x47ee6a[a22_0x27b89e(0xdb)]=a22_0x27b89e(0xcb),a22_0x47ee6a[a22_0x27b89e(0xbe)]=a22_0x27b89e(0x9a),a22_0x47ee6a[a22_0x27b89e(0xd2)]='warning',a22_0x47ee6a[a22_0x27b89e(0xa5)]=a22_0x27b89e(0x7b),a22_0x47ee6a[a22_0x27b89e(0xc2)]=null,exports[a22_0x27b89e(0xcc)]=a22_0x47ee6a,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x27b89e(0x82)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x27b89e(0x6e)]=a22_0x27b89e(0x8f);const a22_0x7a9a84={};a22_0x7a9a84[a22_0x27b89e(0x7e)]=a22_0x27b89e(0xb2);const a22_0x46d458={};a22_0x46d458[a22_0x27b89e(0xa1)]=a22_0x7a9a84,exports[a22_0x27b89e(0xde)]=a22_0x46d458,exports[a22_0x27b89e(0xce)]=a22_0x27b89e(0x79);function a22_0x23cc(_0x4e75ea,_0x3557f8){const _0x561aa5=a22_0x561a();return a22_0x23cc=function(_0x23cc9c,_0x8cb3e2){_0x23cc9c=_0x23cc9c-0x6e;let _0x23530e=_0x561aa5[_0x23cc9c];return _0x23530e;},a22_0x23cc(_0x4e75ea,_0x3557f8);}const a22_0x21702e={};a22_0x21702e['CLUSTER']=a22_0x27b89e(0x87),a22_0x21702e[a22_0x27b89e(0xb5)]=a22_0x27b89e(0x94),a22_0x21702e[a22_0x27b89e(0xcf)]='us-east-1',exports[a22_0x27b89e(0xd6)]=a22_0x21702e;
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_0x42c228=a23_0x1c2d;(function(_0x3a699f,_0x2b67da){const _0x420253=a23_0x1c2d,_0x2eb4ef=_0x3a699f();while(!![]){try{const _0x5e5dd2=-parseInt(_0x420253(0x142))/0x1+-parseInt(_0x420253(0x13f))/0x2*(-parseInt(_0x420253(0x148))/0x3)+parseInt(_0x420253(0x130))/0x4+parseInt(_0x420253(0x14a))/0x5*(parseInt(_0x420253(0x13c))/0x6)+-parseInt(_0x420253(0x131))/0x7*(parseInt(_0x420253(0x13d))/0x8)+parseInt(_0x420253(0x12d))/0x9+-parseInt(_0x420253(0x137))/0xa;if(_0x5e5dd2===_0x2b67da)break;else _0x2eb4ef['push'](_0x2eb4ef['shift']());}catch(_0x5bb613){_0x2eb4ef['push'](_0x2eb4ef['shift']());}}}(a23_0x2343,0x940a5));function a23_0x2343(){const _0x14caa3=['YYYY-MM-DD\x20HH:mm:ss','3095130pLAPLG','debug','Console','level','transports','34800yRHDpy','3835232ISgFRQ','File','10Wvfjjp','winston','printf','238869hBwcXg','usage.log','timestamp','join','format','console.info','44223ijdWDg','name','155sQSEgw','colorize','mkdirSync','\x20-\x20','3951648BjrTxI','log','logger','3766328geAuMu','7bJUpsj','message','existsSync','createLogger','fileLogger'];a23_0x2343=function(){return _0x14caa3;};return a23_0x2343();}const winston=require(a23_0x42c228(0x140)),fs=require('fs'),path=require('path'),logDir=a23_0x42c228(0x12e);!fs[a23_0x42c228(0x133)](logDir)&&fs[a23_0x42c228(0x12b)](logDir);const a23_0x2173a1={};a23_0x2173a1[a23_0x42c228(0x146)]=a23_0x42c228(0x136);const a23_0x2ee20c={};a23_0x2ee20c[a23_0x42c228(0x13a)]=!![];const a23_0x21eae2={};a23_0x21eae2[a23_0x42c228(0x149)]=a23_0x42c228(0x147),exports[a23_0x42c228(0x12f)]=new winston['createLogger']({'format':winston[a23_0x42c228(0x146)]['combine'](winston['format'][a23_0x42c228(0x144)](a23_0x2173a1),winston['format'][a23_0x42c228(0x14b)](a23_0x2ee20c),winston[a23_0x42c228(0x146)][a23_0x42c228(0x141)](_0x9e7ba4=>_0x9e7ba4[a23_0x42c228(0x144)]+a23_0x42c228(0x12c)+_0x9e7ba4[a23_0x42c228(0x13a)]+':\x20'+_0x9e7ba4[a23_0x42c228(0x132)])),'transports':[new winston[(a23_0x42c228(0x13b))][(a23_0x42c228(0x139))](a23_0x21eae2),new winston[(a23_0x42c228(0x13b))][(a23_0x42c228(0x13e))]({'filename':path[a23_0x42c228(0x145)](logDir,'events.log'),'level':'debug'})]});function a23_0x1c2d(_0x5ef1a9,_0x59ba72){const _0x234377=a23_0x2343();return a23_0x1c2d=function(_0x1c2dab,_0x1f1746){_0x1c2dab=_0x1c2dab-0x12b;let _0x824638=_0x234377[_0x1c2dab];return _0x824638;},a23_0x1c2d(_0x5ef1a9,_0x59ba72);}const winstonFileLoggerParams={'transports':[new winston[(a23_0x42c228(0x13b))][(a23_0x42c228(0x13e))]({'filename':path['join'](logDir,a23_0x42c228(0x143)),'level':a23_0x42c228(0x138)})]};exports[a23_0x42c228(0x135)]=new winston[(a23_0x42c228(0x134))](winstonFileLoggerParams);
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';function a24_0x106b(_0x828e76,_0x65149a){const _0x1df7f2=a24_0x1df7();return a24_0x106b=function(_0x106b90,_0x446131){_0x106b90=_0x106b90-0x1f2;let _0x4f443=_0x1df7f2[_0x106b90];return _0x4f443;},a24_0x106b(_0x828e76,_0x65149a);}const a24_0x3967b1=a24_0x106b;function a24_0x1df7(){const _0x4fb476=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','demandCommand','help','6rCNUuk','88547MhcfbJ','752472NibHFB','env','rSAyL','10PBBKQF','commandDir','513612WtIyeB','root','exports','88362hOgQGa','usage','39pBbEvL','10HlCFWJ','commands','8754SQbzcP','448lHXQUl','YTcnu','2411761tOlwFa','5890920cUxTAF','1813QZnSSm'];a24_0x1df7=function(){return _0x4fb476;};return a24_0x1df7();}(function(_0x180487,_0x380418){const _0x4d93c4=a24_0x106b,_0x5c45f1=_0x180487();while(!![]){try{const _0x38f089=parseInt(_0x4d93c4(0x203))/0x1*(-parseInt(_0x4d93c4(0x202))/0x2)+parseInt(_0x4d93c4(0x209))/0x3+parseInt(_0x4d93c4(0x204))/0x4*(-parseInt(_0x4d93c4(0x1f7))/0x5)+parseInt(_0x4d93c4(0x1f9))/0x6*(-parseInt(_0x4d93c4(0x1fe))/0x7)+parseInt(_0x4d93c4(0x1fa))/0x8*(-parseInt(_0x4d93c4(0x1f4))/0x9)+-parseInt(_0x4d93c4(0x207))/0xa*(-parseInt(_0x4d93c4(0x1fc))/0xb)+-parseInt(_0x4d93c4(0x1fd))/0xc*(-parseInt(_0x4d93c4(0x1f6))/0xd);if(_0x38f089===_0x380418)break;else _0x5c45f1['push'](_0x5c45f1['shift']());}catch(_0x228e54){_0x5c45f1['push'](_0x5c45f1['shift']());}}}(a24_0x1df7,0x47af3));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x3967b1(0x205)][a24_0x3967b1(0x1ff)]=0x1;function run(_0x25ca96){const _0x7fa64c=a24_0x3967b1,_0x416b0a={};_0x416b0a[_0x7fa64c(0x1fb)]=_0x7fa64c(0x1f8),_0x416b0a['rSAyL']=_0x7fa64c(0x201);const _0x5c53c1=_0x416b0a;_0x25ca96[_0x7fa64c(0x1f5)](HELP_HEADER_MESSAGE[_0x7fa64c(0x1f2)])[_0x7fa64c(0x208)](_0x5c53c1[_0x7fa64c(0x1fb)])[_0x7fa64c(0x200)]()[_0x7fa64c(0x201)](_0x5c53c1[_0x7fa64c(0x206)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x3967b1(0x1f3)]=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;