browserstack-node-sdk 1.63.5 → 1.64.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 (218) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x2ff013=a15_0x23e7;function a15_0x29e7(){const _0x2fa67c=['GET','nyYAZ','XdXJC','argv','UEyGZ','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1758537iNRSJs','vDVoh','vRdAp','all-grids','clusterName','MUBrL','stringify','ERROR','FfLBH','table','dVgXN','YYOPC','argFu','username','../../config/constants','INFO','password','XxIqV','running','got','bstackUsername','bJMgd','upZjb','AIXRR','server-error','bstackAccesskey','grid-id','rPVSC','epilogue','2269625rOyJgu','6KMBeXs','desc','body','224338FMDiKw','unauthorised','exit','../../utils/utilityMethods','248032QfDaFT','requestId','stack','rvvGB','log','GsLZh','error','40lxXYNu','\x0aFound\x20the\x20following\x20grids:\x0a','statusCode','unknown-error','name','command','699282fOxuMh','../../utils/instrumentationUtils','grids','963611EQaQbe','Failed\x20to\x20list\x20resources!\x20Error:\x20','cluster-name','help','options','allGrids','https://','15lNJSaP','queued','eywMq','JhESs','uuid','push','boolean','7YcIrIS','list','nJwOR','usage','ZmkCc','handler','FlHSw','forEach','Browserstack','5787896pnrefX','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-grids','mWwGf'];a15_0x29e7=function(){return _0x2fa67c;};return a15_0x29e7();}(function(_0x4b78f2,_0x23a14e){const _0x24628e=a15_0x23e7,_0x4f056f=_0x4b78f2();while(!![]){try{const _0x1731ec=-parseInt(_0x24628e(0xe6))/0x1+-parseInt(_0x24628e(0xd5))/0x2*(-parseInt(_0x24628e(0xf0))/0x3)+-parseInt(_0x24628e(0xd9))/0x4+-parseInt(_0x24628e(0xd1))/0x5*(-parseInt(_0x24628e(0xd2))/0x6)+parseInt(_0x24628e(0xf7))/0x7*(parseInt(_0x24628e(0x100))/0x8)+-parseInt(_0x24628e(0xb4))/0x9+-parseInt(_0x24628e(0xe0))/0xa*(parseInt(_0x24628e(0xe9))/0xb);if(_0x1731ec===_0x23a14e)break;else _0x4f056f['push'](_0x4f056f['shift']());}catch(_0x1ca38e){_0x4f056f['push'](_0x4f056f['shift']());}}}(a15_0x29e7,0x69442));const fs=require('fs'),got=require(a15_0x2ff013(0xc7)),{table}=require(a15_0x2ff013(0xbd)),{v4:uuidv4}=require(a15_0x2ff013(0xf4)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2ff013(0xc2)),{getCredentialsPath,getAuthHeader}=require(a15_0x2ff013(0xd8)),{sendInstrumentationEvent}=require(a15_0x2ff013(0xe7));function a15_0x23e7(_0xff06eb,_0x47a766){const _0x29e786=a15_0x29e7();return a15_0x23e7=function(_0x23e784,_0x238ed4){_0x23e784=_0x23e784-0xb2;let _0x253c30=_0x29e786[_0x23e784];return _0x253c30;},a15_0x23e7(_0xff06eb,_0x47a766);}exports[a15_0x2ff013(0xe5)]=a15_0x2ff013(0xe8),exports[a15_0x2ff013(0xd3)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x2539ea){const _0xdbd600=a15_0x2ff013,_0x1b3778={};_0x1b3778[_0xdbd600(0xbe)]=_0xdbd600(0x109),_0x1b3778[_0xdbd600(0xf3)]=_0xdbd600(0xf6),_0x1b3778[_0xdbd600(0xde)]='help';const _0xfe7c60=_0x1b3778,_0x1b3eae={};_0x1b3eae['description']=_0xfe7c60[_0xdbd600(0xbe)],_0x1b3eae['type']=_0xfe7c60['JhESs'];const _0x2e6ee5={};return _0x2e6ee5[_0xdbd600(0xb7)]=_0x1b3eae,_0x2539ea[_0xdbd600(0xfa)](HELP_HEADER_MESSAGE[_0xdbd600(0xf8)][_0xdbd600(0xb2)])[_0xdbd600(0xd0)](HELP_FOOTER_MESSAGE)[_0xdbd600(0xed)](_0x2e6ee5)[_0xdbd600(0xec)](_0xfe7c60[_0xdbd600(0xde)])[_0xdbd600(0x107)];},exports[a15_0x2ff013(0xfc)]=async function(_0x87b0f4){const _0x9cbe63=a15_0x2ff013,_0x5f0f9d={'FfLBH':function(_0x35ddaa){return _0x35ddaa();},'vRdAp':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','nJwOR':function(_0x109198,_0xc6c8ac,_0x5dc621,_0xb73181,_0x38caeb,_0x13b8d1,_0x186ef4){return _0x109198(_0xc6c8ac,_0x5dc621,_0xb73181,_0x38caeb,_0x13b8d1,_0x186ef4);},'upZjb':'list-grids-called','bJMgd':'init-not-called','FlHSw':_0x9cbe63(0x104),'MUBrL':function(_0x2fbb42,_0x32d094,_0x48984b){return _0x2fbb42(_0x32d094,_0x48984b);},'rvvGB':function(_0x48ce95,_0x17fe57,_0x122871,_0x345e38,_0xbf5502,_0x2a7e21,_0x51e81e){return _0x48ce95(_0x17fe57,_0x122871,_0x345e38,_0xbf5502,_0x2a7e21,_0x51e81e);},'eywMq':function(_0x12e615,_0x191118){return _0x12e615!==_0x191118;},'WeLca':function(_0x430ae9,_0x5eb5a6){return _0x430ae9===_0x5eb5a6;},'UEyGZ':_0x9cbe63(0xe1),'XdXJC':_0x9cbe63(0xce),'XxIqV':'grid-name','OFSsS':'status','ZmkCc':_0x9cbe63(0xc6),'nyYAZ':'queued','rPVSC':_0x9cbe63(0xeb),'itSIU':function(_0x22d456,_0x3dc5df){return _0x22d456(_0x3dc5df);},'YYOPC':function(_0x43a870,_0x1c240f){return _0x43a870===_0x1c240f;},'RLSDt':_0x9cbe63(0x101),'mWwGf':function(_0x150746,_0x398679,_0x2fb7c9,_0x90efd2,_0x2e11ad,_0x1833ff,_0x247945){return _0x150746(_0x398679,_0x2fb7c9,_0x90efd2,_0x2e11ad,_0x1833ff,_0x247945);},'AIXRR':_0x9cbe63(0xd6),'vDVoh':_0x9cbe63(0xcc),'argFu':_0x9cbe63(0xe3)};try{global_registry[_0x9cbe63(0xda)]=_0x5f0f9d[_0x9cbe63(0xbc)](uuidv4);!fs['existsSync'](_0x5f0f9d[_0x9cbe63(0xbc)](getCredentialsPath))&&(console[_0x9cbe63(0xdf)](_0x5f0f9d[_0x9cbe63(0xb6)]),await _0x5f0f9d[_0x9cbe63(0xf9)](sendInstrumentationEvent,_0x87b0f4,_0x5f0f9d[_0x9cbe63(0xca)],messageTypes[_0x9cbe63(0xbb)],_0x5f0f9d[_0x9cbe63(0xc9)],null,_0x87b0f4),process[_0x9cbe63(0xd7)](0x1));const _0x185925=JSON['parse'](fs['readFileSync'](_0x5f0f9d[_0x9cbe63(0xbc)](getCredentialsPath)));let _0x1995c6=_0x9cbe63(0xef)+AG_API_URL+_0x9cbe63(0x102);_0x87b0f4[_0x9cbe63(0xee)]&&(_0x1995c6=_0x9cbe63(0xef)+AG_API_URL+'/packages/cli/get-all-grids');const _0x455e84={'method':_0x5f0f9d[_0x9cbe63(0xfd)],'headers':_0x5f0f9d[_0x9cbe63(0xb9)](getAuthHeader,_0x185925[_0x9cbe63(0xff)][_0x9cbe63(0xc1)],_0x185925[_0x9cbe63(0xff)][_0x9cbe63(0xc4)]),'throwHttpErrors':![]};global_registry[_0x9cbe63(0xc8)]=_0x185925[_0x9cbe63(0xff)][_0x9cbe63(0xc1)],global_registry[_0x9cbe63(0xcd)]=_0x185925[_0x9cbe63(0xff)][_0x9cbe63(0xc4)],_0x5f0f9d[_0x9cbe63(0xdc)](sendInstrumentationEvent,_0x87b0f4,_0x5f0f9d[_0x9cbe63(0xca)],messageTypes[_0x9cbe63(0xc3)],null,null,_0x87b0f4);const _0x37343e=await _0x5f0f9d[_0x9cbe63(0xb9)](got,_0x1995c6,_0x455e84);if(_0x5f0f9d[_0x9cbe63(0xf2)](_0x37343e,null)&&_0x5f0f9d[_0x9cbe63(0xf2)](_0x37343e,undefined)&&_0x5f0f9d['WeLca'](_0x37343e[_0x9cbe63(0xe2)],0xc8)){const _0x4fb213=JSON['parse'](_0x37343e[_0x9cbe63(0xd4)]);console[_0x9cbe63(0xdd)](_0x5f0f9d[_0x9cbe63(0x108)]);const _0x351f69=[];_0x351f69[_0x9cbe63(0xf5)]([_0x5f0f9d[_0x9cbe63(0x106)],_0x5f0f9d[_0x9cbe63(0xc5)],_0x5f0f9d['OFSsS'],_0x5f0f9d[_0x9cbe63(0xfb)],_0x5f0f9d[_0x9cbe63(0x105)],_0x5f0f9d[_0x9cbe63(0xcf)]]),_0x4fb213[_0x9cbe63(0xfe)](_0xc8cba5=>{const _0x3587a9=_0x9cbe63;_0x351f69[_0x3587a9(0xf5)]([_0xc8cba5['id'],_0xc8cba5[_0x3587a9(0xe4)],_0xc8cba5['status'],_0xc8cba5[_0x3587a9(0xc6)],_0xc8cba5[_0x3587a9(0xf1)],_0xc8cba5[_0x3587a9(0xb8)]]);}),console[_0x9cbe63(0xdd)](_0x5f0f9d['itSIU'](table,_0x351f69)),process['exit'](0x0);}_0x5f0f9d[_0x9cbe63(0xbf)](_0x37343e['statusCode'],0x191)&&(console[_0x9cbe63(0xdf)](_0x5f0f9d['RLSDt']),await _0x5f0f9d[_0x9cbe63(0x103)](sendInstrumentationEvent,_0x87b0f4,_0x5f0f9d[_0x9cbe63(0xca)],messageTypes['ERROR'],_0x5f0f9d[_0x9cbe63(0xcb)],null,_0x87b0f4),process[_0x9cbe63(0xd7)](0x1)),console[_0x9cbe63(0xdf)](_0x9cbe63(0xb3)+JSON[_0x9cbe63(0xba)](_0x37343e)),await _0x5f0f9d[_0x9cbe63(0x103)](sendInstrumentationEvent,_0x87b0f4,_0x5f0f9d[_0x9cbe63(0xca)],messageTypes[_0x9cbe63(0xbb)],_0x5f0f9d[_0x9cbe63(0xb5)],_0x37343e,_0x87b0f4),process[_0x9cbe63(0xd7)](0x1);}catch(_0x179bde){console[_0x9cbe63(0xdf)](_0x9cbe63(0xea)+_0x179bde[_0x9cbe63(0xdb)]),await _0x5f0f9d[_0x9cbe63(0x103)](sendInstrumentationEvent,_0x87b0f4,_0x5f0f9d[_0x9cbe63(0xca)],messageTypes[_0x9cbe63(0xbb)],_0x5f0f9d[_0x9cbe63(0xc0)],_0x179bde,_0x87b0f4),process[_0x9cbe63(0xd7)](0x1);}};
1
+ const a15_0x424da8=a15_0x41d3;(function(_0x1576c3,_0x232405){const _0x680ab2=a15_0x41d3,_0x28d49e=_0x1576c3();while(!![]){try{const _0x21c0b4=parseInt(_0x680ab2(0x174))/0x1+parseInt(_0x680ab2(0x199))/0x2+parseInt(_0x680ab2(0x17c))/0x3*(-parseInt(_0x680ab2(0x19d))/0x4)+-parseInt(_0x680ab2(0x1bd))/0x5+-parseInt(_0x680ab2(0x192))/0x6*(-parseInt(_0x680ab2(0x189))/0x7)+-parseInt(_0x680ab2(0x1b5))/0x8*(parseInt(_0x680ab2(0x16f))/0x9)+parseInt(_0x680ab2(0x1a9))/0xa;if(_0x21c0b4===_0x232405)break;else _0x28d49e['push'](_0x28d49e['shift']());}catch(_0x17e42e){_0x28d49e['push'](_0x28d49e['shift']());}}}(a15_0x31f4,0xf35f1));function a15_0x41d3(_0x29992b,_0xe78f3c){const _0x31f4c5=a15_0x31f4();return a15_0x41d3=function(_0x41d33c,_0x4a7b86){_0x41d33c=_0x41d33c-0x164;let _0x6b7003=_0x31f4c5[_0x41d33c];return _0x6b7003;},a15_0x41d3(_0x29992b,_0xe78f3c);}const fs=require('fs'),got=require(a15_0x424da8(0x180)),{table}=require(a15_0x424da8(0x165)),{v4:uuidv4}=require(a15_0x424da8(0x173)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x424da8(0x1ad)),{getCredentialsPath,getAuthHeader}=require(a15_0x424da8(0x179)),{sendInstrumentationEvent}=require(a15_0x424da8(0x1ae));exports[a15_0x424da8(0x167)]=a15_0x424da8(0x178),exports[a15_0x424da8(0x187)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x2dff13){const _0x42cbbf=a15_0x424da8,_0xe4025a={};_0xe4025a[_0x42cbbf(0x168)]=_0x42cbbf(0x197),_0xe4025a[_0x42cbbf(0x1b8)]='boolean',_0xe4025a[_0x42cbbf(0x193)]='help';const _0x561d41=_0xe4025a,_0x126ed4={};_0x126ed4[_0x42cbbf(0x1ac)]=_0x561d41['ghrax'],_0x126ed4[_0x42cbbf(0x1a2)]=_0x561d41[_0x42cbbf(0x1b8)];const _0x531068={};return _0x531068[_0x42cbbf(0x19c)]=_0x126ed4,_0x2dff13[_0x42cbbf(0x1a3)](HELP_HEADER_MESSAGE['list'][_0x42cbbf(0x191)])[_0x42cbbf(0x164)](HELP_FOOTER_MESSAGE)[_0x42cbbf(0x18b)](_0x531068)[_0x42cbbf(0x18e)](_0x561d41[_0x42cbbf(0x193)])[_0x42cbbf(0x175)];},exports[a15_0x424da8(0x1c0)]=async function(_0x3696a0){const _0x7947cc=a15_0x424da8,_0x4cf014={'sSGwm':function(_0x55b189){return _0x55b189();},'ltvTv':_0x7947cc(0x1b6),'OqOBx':function(_0x141bb2,_0x16e9bb,_0x30dde4,_0xba08bd,_0x5a4bcf,_0x2d286c,_0x335d4d){return _0x141bb2(_0x16e9bb,_0x30dde4,_0xba08bd,_0x5a4bcf,_0x2d286c,_0x335d4d);},'FRQcX':_0x7947cc(0x19b),'jsdmW':_0x7947cc(0x16d),'RubhW':'GET','CMqvC':function(_0x3f9587,_0x11f5b1,_0x23d694){return _0x3f9587(_0x11f5b1,_0x23d694);},'vVoJA':function(_0x314eac,_0x4b127c,_0x5e5de2,_0x4ddacb,_0x2ed89e,_0x49e231,_0x286940){return _0x314eac(_0x4b127c,_0x5e5de2,_0x4ddacb,_0x2ed89e,_0x49e231,_0x286940);},'TitUP':function(_0x24a101,_0x552397){return _0x24a101!==_0x552397;},'DahLq':function(_0x1fa00d,_0x378243){return _0x1fa00d===_0x378243;},'znLhL':_0x7947cc(0x1af),'DVRSc':_0x7947cc(0x188),'xIAac':_0x7947cc(0x1b0),'QQIGX':_0x7947cc(0x16b),'GhATt':_0x7947cc(0x17b),'pSTaV':_0x7947cc(0x1bc),'VxhKl':_0x7947cc(0x19e),'WsyBN':function(_0x378bc1,_0xe4569f){return _0x378bc1(_0xe4569f);},'GEmru':function(_0x1c9b20,_0x448b0e){return _0x1c9b20===_0x448b0e;},'zyTMv':_0x7947cc(0x17a),'EpPIm':function(_0x3060d9,_0x38ce27,_0x3f360e,_0x4b5480,_0x5d56a3,_0x10dc3c,_0x4b21b0){return _0x3060d9(_0x38ce27,_0x3f360e,_0x4b5480,_0x5d56a3,_0x10dc3c,_0x4b21b0);},'isktc':_0x7947cc(0x1ab),'yaMtx':function(_0x91091f,_0x8f956c,_0x252f71,_0x314ac3,_0x1342fc,_0x5ced86,_0x313e2f){return _0x91091f(_0x8f956c,_0x252f71,_0x314ac3,_0x1342fc,_0x5ced86,_0x313e2f);},'Ijzfl':_0x7947cc(0x195),'zFCuB':_0x7947cc(0x1b9)};try{global_registry[_0x7947cc(0x1a7)]=_0x4cf014[_0x7947cc(0x1a8)](uuidv4);!fs[_0x7947cc(0x1b1)](_0x4cf014[_0x7947cc(0x1a8)](getCredentialsPath))&&(console[_0x7947cc(0x16e)](_0x4cf014[_0x7947cc(0x18c)]),await _0x4cf014['OqOBx'](sendInstrumentationEvent,_0x3696a0,_0x4cf014[_0x7947cc(0x1bf)],messageTypes[_0x7947cc(0x1be)],_0x4cf014[_0x7947cc(0x1aa)],null,_0x3696a0),process[_0x7947cc(0x1ba)](0x1));const _0x4a303d=JSON[_0x7947cc(0x18d)](fs['readFileSync'](_0x4cf014[_0x7947cc(0x1a8)](getCredentialsPath)));let _0x33ec82='https://'+AG_API_URL+_0x7947cc(0x1b3);_0x3696a0[_0x7947cc(0x1b4)]&&(_0x33ec82='https://'+AG_API_URL+_0x7947cc(0x1b7));const _0x5d9f1b={'method':_0x4cf014[_0x7947cc(0x17f)],'headers':_0x4cf014['CMqvC'](getAuthHeader,_0x4a303d[_0x7947cc(0x17d)][_0x7947cc(0x17e)],_0x4a303d[_0x7947cc(0x17d)][_0x7947cc(0x1a5)]),'throwHttpErrors':![]};global_registry[_0x7947cc(0x1a4)]=_0x4a303d['Browserstack'][_0x7947cc(0x17e)],global_registry['bstackAccesskey']=_0x4a303d[_0x7947cc(0x17d)][_0x7947cc(0x1a5)],_0x4cf014[_0x7947cc(0x18f)](sendInstrumentationEvent,_0x3696a0,_0x4cf014['FRQcX'],messageTypes[_0x7947cc(0x1a6)],null,null,_0x3696a0);const _0x253a29=await _0x4cf014['CMqvC'](got,_0x33ec82,_0x5d9f1b);if(_0x4cf014['TitUP'](_0x253a29,null)&&_0x4cf014[_0x7947cc(0x16c)](_0x253a29,undefined)&&_0x4cf014[_0x7947cc(0x185)](_0x253a29[_0x7947cc(0x198)],0xc8)){const _0x555361=JSON['parse'](_0x253a29[_0x7947cc(0x1b2)]);console['log'](_0x4cf014[_0x7947cc(0x182)]);const _0x46888e=[];_0x46888e[_0x7947cc(0x19f)]([_0x4cf014[_0x7947cc(0x166)],_0x4cf014[_0x7947cc(0x181)],_0x4cf014[_0x7947cc(0x16a)],_0x4cf014[_0x7947cc(0x177)],_0x4cf014['pSTaV'],_0x4cf014[_0x7947cc(0x176)]]),_0x555361[_0x7947cc(0x1bb)](_0x42b7cf=>{const _0x528e7a=_0x7947cc;_0x46888e[_0x528e7a(0x19f)]([_0x42b7cf['id'],_0x42b7cf[_0x528e7a(0x183)],_0x42b7cf[_0x528e7a(0x16b)],_0x42b7cf[_0x528e7a(0x17b)],_0x42b7cf[_0x528e7a(0x1bc)],_0x42b7cf[_0x528e7a(0x190)]]);}),console[_0x7947cc(0x170)](_0x4cf014[_0x7947cc(0x1a0)](table,_0x46888e)),process[_0x7947cc(0x1ba)](0x0);}_0x4cf014[_0x7947cc(0x186)](_0x253a29[_0x7947cc(0x198)],0x191)&&(console[_0x7947cc(0x16e)](_0x4cf014[_0x7947cc(0x171)]),await _0x4cf014['EpPIm'](sendInstrumentationEvent,_0x3696a0,_0x4cf014[_0x7947cc(0x1bf)],messageTypes[_0x7947cc(0x1be)],_0x4cf014[_0x7947cc(0x1a1)],null,_0x3696a0),process[_0x7947cc(0x1ba)](0x1)),console[_0x7947cc(0x16e)](_0x7947cc(0x19a)+JSON[_0x7947cc(0x18a)](_0x253a29)),await _0x4cf014[_0x7947cc(0x184)](sendInstrumentationEvent,_0x3696a0,_0x4cf014[_0x7947cc(0x1bf)],messageTypes[_0x7947cc(0x1be)],_0x4cf014[_0x7947cc(0x169)],_0x253a29,_0x3696a0),process[_0x7947cc(0x1ba)](0x1);}catch(_0x19b8be){console[_0x7947cc(0x16e)](_0x7947cc(0x172)+_0x19b8be[_0x7947cc(0x1c1)]),await _0x4cf014[_0x7947cc(0x194)](sendInstrumentationEvent,_0x3696a0,_0x4cf014[_0x7947cc(0x1bf)],messageTypes[_0x7947cc(0x1be)],_0x4cf014[_0x7947cc(0x196)],_0x19b8be,_0x3696a0),process['exit'](0x1);}};function a15_0x31f4(){const _0x27e662=['list-grids-called','all-grids','4XpLmzp','cluster-name','push','WsyBN','isktc','type','usage','bstackUsername','password','INFO','requestId','sSGwm','34067120ZECFHr','jsdmW','unauthorised','description','../../config/constants','../../utils/instrumentationUtils','\x0aFound\x20the\x20following\x20grids:\x0a','grid-name','existsSync','body','/packages/cli/get-grids','allGrids','16yWcHyv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-all-grids','UCdMa','unknown-error','exit','forEach','queued','8729770cGmwzA','ERROR','FRQcX','handler','stack','epilogue','table','DVRSc','command','ghrax','Ijzfl','QQIGX','status','TitUP','init-not-called','error','6261453MKKlXC','log','zyTMv','Failed\x20to\x20list\x20resources!\x20Error:\x20','uuid','469936hXjIhw','argv','VxhKl','GhATt','grids','../../utils/utilityMethods','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','running','2009427XwETfM','Browserstack','username','RubhW','got','xIAac','znLhL','name','yaMtx','DahLq','GEmru','desc','grid-id','2154145QwfDEm','stringify','options','ltvTv','parse','help','vVoJA','clusterName','grid','18YksDtF','MsPqY','OqOBx','server-error','zFCuB','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','statusCode','8386KCJryi','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a15_0x31f4=function(){return _0x27e662;};return a15_0x31f4();}
@@ -1 +1 @@
1
- const a16_0xa5f73b=a16_0x1567;function a16_0x1567(_0x10358f,_0x3bc2cc){const _0x133cd7=a16_0x133c();return a16_0x1567=function(_0x1567a0,_0x5a9bff){_0x1567a0=_0x1567a0-0x13b;let _0x248a45=_0x133cd7[_0x1567a0];return _0x248a45;},a16_0x1567(_0x10358f,_0x3bc2cc);}(function(_0x19dcd8,_0x998f34){const _0x57f614=a16_0x1567,_0x5ac0d1=_0x19dcd8();while(!![]){try{const _0x1db775=parseInt(_0x57f614(0x144))/0x1*(-parseInt(_0x57f614(0x13c))/0x2)+-parseInt(_0x57f614(0x13e))/0x3+parseInt(_0x57f614(0x145))/0x4+parseInt(_0x57f614(0x141))/0x5*(-parseInt(_0x57f614(0x13f))/0x6)+parseInt(_0x57f614(0x142))/0x7*(-parseInt(_0x57f614(0x14e))/0x8)+-parseInt(_0x57f614(0x14c))/0x9*(parseInt(_0x57f614(0x14a))/0xa)+parseInt(_0x57f614(0x147))/0xb;if(_0x1db775===_0x998f34)break;else _0x5ac0d1['push'](_0x5ac0d1['shift']());}catch(_0x3cf67f){_0x5ac0d1['push'](_0x5ac0d1['shift']());}}}(a16_0x133c,0xb9421));function a16_0x133c(){const _0x32027c=['PsXXD','help','30AeVkMt','OwoUv','4105413EeyRNP','../config/constants','16TdussM','pre-check','pre_check','builder','precheck_commands','2756FcvCNR','usage','164175KXWcpA','12DLEhqd','commandDir','2071555owHrwo','5163046PfvKhI','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1nsuOip','68808eYyhQn','recommendCommands','49169637JQxRQG'];a16_0x133c=function(){return _0x32027c;};return a16_0x133c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xa5f73b(0x14d));exports['command']=a16_0xa5f73b(0x14f),exports['desc']=a16_0xa5f73b(0x143),exports[a16_0xa5f73b(0x151)]=function(_0x5d7cc3){const _0x5f4ad2=a16_0xa5f73b,_0x545182={};_0x545182[_0x5f4ad2(0x14b)]=_0x5f4ad2(0x13b),_0x545182[_0x5f4ad2(0x148)]=_0x5f4ad2(0x149);const _0xd11d1b=_0x545182;return _0x5d7cc3[_0x5f4ad2(0x13d)](HELP_HEADER_MESSAGE[_0x5f4ad2(0x150)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f4ad2(0x140)](_0xd11d1b[_0x5f4ad2(0x14b)])['demandCommand']()[_0x5f4ad2(0x146)]()['strict']()[_0x5f4ad2(0x149)](_0xd11d1b['PsXXD']);},exports['handler']=function(_0x26c29b){};
1
+ const a16_0x5dca7f=a16_0x547f;function a16_0x2ccf(){const _0x7b182a=['OoVgI','commandDir','RGnWU','pre-check','7431390aDJIAu','strict','987684NoqdQl','370vhqFQa','pre_check','help','65256SRlsit','9006472zxDOuf','usage','3557190LwxTXU','precheck_commands','builder','recommendCommands','44cfQBfd','10824010wUJkWu','12apTQIj','handler','command','1002oCRDHl','epilogue','1140kLyETm'];a16_0x2ccf=function(){return _0x7b182a;};return a16_0x2ccf();}(function(_0x3475bd,_0x1954b2){const _0x5d26f1=a16_0x547f,_0x3da180=_0x3475bd();while(!![]){try{const _0x316536=-parseInt(_0x5d26f1(0x140))/0x1+-parseInt(_0x5d26f1(0x139))/0x2*(parseInt(_0x5d26f1(0x137))/0x3)+-parseInt(_0x5d26f1(0x12b))/0x4*(parseInt(_0x5d26f1(0x141))/0x5)+-parseInt(_0x5d26f1(0x134))/0x6*(parseInt(_0x5d26f1(0x12e))/0x7)+-parseInt(_0x5d26f1(0x12c))/0x8+parseInt(_0x5d26f1(0x13e))/0x9+-parseInt(_0x5d26f1(0x133))/0xa*(-parseInt(_0x5d26f1(0x132))/0xb);if(_0x316536===_0x1954b2)break;else _0x3da180['push'](_0x3da180['shift']());}catch(_0x5c0ae9){_0x3da180['push'](_0x3da180['shift']());}}}(a16_0x2ccf,0x99499));function a16_0x547f(_0x3f31dc,_0x2b829d){const _0x2ccf8e=a16_0x2ccf();return a16_0x547f=function(_0x547f1b,_0x43fc80){_0x547f1b=_0x547f1b-0x12a;let _0x251d1b=_0x2ccf8e[_0x547f1b];return _0x251d1b;},a16_0x547f(_0x3f31dc,_0x2b829d);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x5dca7f(0x136)]=a16_0x5dca7f(0x13d),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x5dca7f(0x130)]=function(_0x52369c){const _0x418f55=a16_0x5dca7f,_0x2f4625={};_0x2f4625[_0x418f55(0x13c)]=_0x418f55(0x12f),_0x2f4625[_0x418f55(0x13a)]='help';const _0x23dece=_0x2f4625;return _0x52369c[_0x418f55(0x12d)](HELP_HEADER_MESSAGE[_0x418f55(0x142)])[_0x418f55(0x138)](HELP_FOOTER_MESSAGE)[_0x418f55(0x13b)](_0x23dece[_0x418f55(0x13c)])['demandCommand']()[_0x418f55(0x131)]()[_0x418f55(0x13f)]()[_0x418f55(0x12a)](_0x23dece[_0x418f55(0x13a)]);},exports[a16_0x5dca7f(0x135)]=function(_0x19bd41){};
@@ -1 +1 @@
1
- const a17_0x4e580a=a17_0x4a51;(function(_0x3c4a0b,_0x56cee9){const _0x599db8=a17_0x4a51,_0x31678d=_0x3c4a0b();while(!![]){try{const _0x31bd4=-parseInt(_0x599db8(0xd4))/0x1+-parseInt(_0x599db8(0xb7))/0x2*(-parseInt(_0x599db8(0x156))/0x3)+parseInt(_0x599db8(0xca))/0x4+parseInt(_0x599db8(0x19f))/0x5*(parseInt(_0x599db8(0x176))/0x6)+-parseInt(_0x599db8(0xb5))/0x7*(-parseInt(_0x599db8(0x14a))/0x8)+parseInt(_0x599db8(0xff))/0x9*(parseInt(_0x599db8(0x1a2))/0xa)+-parseInt(_0x599db8(0x126))/0xb;if(_0x31bd4===_0x56cee9)break;else _0x31678d['push'](_0x31678d['shift']());}catch(_0x4cc7c0){_0x31678d['push'](_0x31678d['shift']());}}}(a17_0x2d10,0xc7f8d));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x4e580a(0x17f)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x4e580a(0x161)),{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_0x4e580a(0x144)),{getCloudProviderObjectWithOutInit}=require(a17_0x4e580a(0xbc)),webSocketUtils=require(a17_0x4e580a(0xb0)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x4a51(_0x1d7940,_0x13514f){const _0x2d10af=a17_0x2d10();return a17_0x4a51=function(_0x4a51c8,_0x397c7a){_0x4a51c8=_0x4a51c8-0xad;let _0x386e31=_0x2d10af[_0x4a51c8];return _0x386e31;},a17_0x4a51(_0x1d7940,_0x13514f);}exports[a17_0x4e580a(0x18f)]=a17_0x4e580a(0xc8),exports[a17_0x4e580a(0x18c)]=a17_0x4e580a(0x105),exports[a17_0x4e580a(0xe2)]=function(_0x8356a4){const _0x3581c8=a17_0x4e580a,_0x61964={};_0x61964[_0x3581c8(0xe1)]=_0x3581c8(0x167),_0x61964[_0x3581c8(0x1a5)]=_0x3581c8(0xec),_0x61964['meRxm']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x61964['QrpFI']=_0x3581c8(0x10d),_0x61964[_0x3581c8(0xd0)]=_0x3581c8(0x12e),_0x61964[_0x3581c8(0x140)]=_0x3581c8(0x164);const _0x255936=_0x61964,_0x2f8a25={};_0x2f8a25[_0x3581c8(0xf0)]=_0x255936[_0x3581c8(0xe1)],_0x2f8a25['type']=_0x255936[_0x3581c8(0x1a5)];const _0x42f55d={};_0x42f55d[_0x3581c8(0xf0)]=_0x255936['meRxm'],_0x42f55d[_0x3581c8(0x174)]=_0x255936[_0x3581c8(0x1a5)];const _0x2f54f4={};_0x2f54f4['description']=_0x255936[_0x3581c8(0x1a7)],_0x2f54f4[_0x3581c8(0x174)]=_0x255936['Ahsin'];const _0x26ef8e={};_0x26ef8e[_0x3581c8(0xf0)]=_0x255936['eTVHE'],_0x26ef8e[_0x3581c8(0x174)]=_0x255936[_0x3581c8(0x1a5)];const _0x5977d0={};return _0x5977d0[_0x3581c8(0x14e)]=_0x2f8a25,_0x5977d0[_0x3581c8(0xbe)]=_0x42f55d,_0x5977d0[_0x3581c8(0x100)]=_0x2f54f4,_0x5977d0['grid-profile']=_0x26ef8e,_0x8356a4[_0x3581c8(0x15e)](HELP_HEADER_MESSAGE[_0x3581c8(0x152)])[_0x3581c8(0x110)](HELP_FOOTER_MESSAGE)[_0x3581c8(0xf7)](_0x5977d0)[_0x3581c8(0x164)](_0x255936[_0x3581c8(0x140)])[_0x3581c8(0x12f)];};async function inputValidation(_0x23ecc1,_0x1ee9c4){const _0x1ff892=a17_0x4e580a,_0x113d90={'KyVfT':_0x1ff892(0x100),'YFWBJ':function(_0x2ef38a,_0x4642d2){return _0x2ef38a+_0x4642d2;},'VZYAg':_0x1ff892(0x13f),'ufwYO':_0x1ff892(0x18e),'vFYhM':function(_0x4d1610,_0x4f5647){return _0x4d1610||_0x4f5647;},'YPXwp':_0x1ff892(0x19a),'cnhfi':_0x1ff892(0x10b),'swfpv':_0x1ff892(0xd8),'YzPDb':_0x1ff892(0xbe),'mwmxW':_0x1ff892(0x139),'evVoQ':_0x1ff892(0x167),'Fxkjb':_0x1ff892(0xec),'xxsyI':_0x1ff892(0xf3),'LeOty':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','BaRLc':_0x1ff892(0x12e),'rwylX':_0x1ff892(0x164),'NzxEr':_0x1ff892(0x193),'MpHzY':_0x1ff892(0x11e),'HExLZ':_0x1ff892(0x14e),'hQYjR':function(_0x2be21e,_0x5e55d9){return _0x2be21e===_0x5e55d9;},'XUVqy':_0x1ff892(0xfa),'LsKBP':function(_0x4c90ee,_0x413026){return _0x4c90ee!==_0x413026;},'YJgnz':_0x1ff892(0x146),'JnGDL':function(_0x52b877,_0x35a03b){return _0x52b877===_0x35a03b;},'nvPel':_0x1ff892(0xcf),'DzEkk':_0x1ff892(0xd6),'DmEaH':_0x1ff892(0xf4),'wZMcP':_0x1ff892(0x141),'OkbLk':function(_0x39e7fc,_0x2b25dd){return _0x39e7fc===_0x2b25dd;},'nxbHN':'zhdEU','wfGrh':_0x1ff892(0x149),'pVmMt':function(_0x58db07,_0x5b220b){return _0x58db07>_0x5b220b;},'lsVQQ':function(_0x2d026c,_0x3c3145){return _0x2d026c!==_0x3c3145;},'jQeEO':_0x1ff892(0x189),'FBqAd':_0x1ff892(0x162),'saPMs':function(_0x3989c2,_0x88f66f,_0x2fc6b3,_0x55e0c9,_0x47c86e,_0x11c679,_0x40f1ad,_0x5a7e95){return _0x3989c2(_0x88f66f,_0x2fc6b3,_0x55e0c9,_0x47c86e,_0x11c679,_0x40f1ad,_0x5a7e95);},'ECLfS':_0x1ff892(0xb8),'mzzfL':'pre-check-cluster-args-not-passed','mzyiI':_0x1ff892(0xcc),'Uzqlj':_0x1ff892(0x182),'Fcaql':'cloud-provider-not-supported','qwAUd':function(_0x1b49d1,_0x4eb1c3){return _0x1b49d1===_0x4eb1c3;},'eaJgI':'BUWvd','TRBVL':function(_0x181bc5,_0x48318a){return _0x181bc5!==_0x48318a;},'zXlFd':_0x1ff892(0x19d),'PRCll':'GET','lTAsv':function(_0x2851c1,_0x1c6b28,_0x3e5220){return _0x2851c1(_0x1c6b28,_0x3e5220);},'cWGzH':function(_0x22ef72,_0x175e44,_0x5a25d8,_0x51116e,_0x35a8bc,_0x255f5b){return _0x22ef72(_0x175e44,_0x5a25d8,_0x51116e,_0x35a8bc,_0x255f5b);},'VOPwz':'pre-check','avFRQ':_0x1ff892(0xf9),'heGfT':function(_0x2ebd72,_0x412afa){return _0x2ebd72===_0x412afa;},'Fswbg':_0x1ff892(0x151),'GKWzj':_0x1ff892(0xe9),'sOFpX':function(_0x403b94,_0x4cf1be){return _0x403b94(_0x4cf1be);},'qpuOh':'lrOvQ','mSeaY':'IZdyK','BpyRj':_0x1ff892(0x107),'yjgvf':'aXiLH','uvYgq':'pGUJP','YraHS':_0x1ff892(0x197),'eFGEC':_0x1ff892(0x132),'UnBID':_0x1ff892(0xf8),'YuAJT':_0x1ff892(0x194),'DgkuI':function(_0x4aabaf,_0x1a457e){return _0x4aabaf===_0x1a457e;},'YnjNV':_0x1ff892(0xd7),'SFOvk':'ulTUo'};let _0x1d6bb9;try{if(_0x113d90['hQYjR'](_0x113d90[_0x1ff892(0xad)],_0x113d90[_0x1ff892(0xad)])){if(_0x23ecc1[_0x1ff892(0x158)]||_0x23ecc1['cloudProvider']||_0x23ecc1[_0x1ff892(0x100)]){if(_0x113d90[_0x1ff892(0x11b)](_0x113d90[_0x1ff892(0x155)],_0x113d90[_0x1ff892(0x155)]))_0x1c9426[_0x1ff892(0xb2)](_0x113d90['KyVfT']);else{const _0x23c948=[];!_0x23ecc1[_0x1ff892(0x158)]&&(_0x113d90[_0x1ff892(0x125)](_0x113d90['nvPel'],_0x113d90[_0x1ff892(0x18b)])?_0x11c7db+=_0x1ff892(0xee)+_0x53c794[_0x1ff892(0x158)]+_0x1ff892(0x17b):_0x23c948[_0x1ff892(0xb2)](_0x113d90[_0x1ff892(0x165)]));;if(!_0x23ecc1[_0x1ff892(0x130)]){if(_0x113d90[_0x1ff892(0xb6)](_0x113d90[_0x1ff892(0xeb)],_0x113d90[_0x1ff892(0x1a6)])){const {header:_0x39a347,response:_0x475390}=_0x2dee9c,{status:_0x1ecb3b,data:_0x25d3a8,error:_0x5c0471}=_0x475390;_0x183d08+=_0x39a347+'\x20#'+_0x113d90[_0x1ff892(0x181)](_0x360077,0x1)+'\x0a',_0x229b3b+=_0x1ff892(0xcd)+(_0x1ecb3b?_0x113d90[_0x1ff892(0x15d)]:_0x113d90[_0x1ff892(0x169)])+'\x0a',_0x1a5587+=_0x1ff892(0x183)+_0x113d90[_0x1ff892(0x16a)](_0x25d3a8,_0x113d90[_0x1ff892(0xb1)])+'\x0a',_0x5c0471&&(_0xab1d64+=_0x113d90[_0x1ff892(0xdc)],_0x44eb22+=_0x1ff892(0xc9)+(_0x5c0471[_0x1ff892(0x108)]||_0x113d90[_0x1ff892(0xb1)])+'\x0a',_0x4b803a+=_0x1ff892(0x123)+(_0x5c0471[_0x1ff892(0x14d)]||_0x113d90[_0x1ff892(0xb1)])+'\x0a',_0xb01ce0+='\x20\x20Stack:\x20'+(_0x5c0471[_0x1ff892(0x101)]||_0x113d90[_0x1ff892(0xb1)])+'\x0a'),_0x8ff77d+='\x0a\x0a';}else _0x23c948[_0x1ff892(0xb2)](_0x113d90['YzPDb']);};!_0x23ecc1['region']&&(_0x113d90['OkbLk'](_0x113d90['nxbHN'],_0x113d90[_0x1ff892(0x12b)])?(_0x5828f5+=_0x113d90[_0x1ff892(0xdc)],_0x5b011c+=_0x1ff892(0xc9)+(_0x6c9099[_0x1ff892(0x108)]||_0x113d90[_0x1ff892(0xb1)])+'\x0a',_0x42ec32+=_0x1ff892(0x123)+(_0x33a26c[_0x1ff892(0x14d)]||_0x113d90['YPXwp'])+'\x0a',_0x31ea99+=_0x1ff892(0xf5)+(_0x5ea401[_0x1ff892(0x101)]||_0x113d90[_0x1ff892(0xb1)])+'\x0a'):_0x23c948[_0x1ff892(0xb2)](_0x113d90[_0x1ff892(0x196)]));;_0x113d90[_0x1ff892(0xc6)](_0x23c948['length'],0x0)&&(_0x113d90[_0x1ff892(0x143)](_0x113d90[_0x1ff892(0xc3)],_0x113d90[_0x1ff892(0xf2)])?(_0x1d6bb9='Missing\x20required\x20arguments:\x20'+_0x23c948['join'](',\x20')+_0x1ff892(0xde),await _0x113d90[_0x1ff892(0x145)](reportToGalactusAndSendToEDS,_0x23ecc1,_0x1ee9c4,_0x1d6bb9,messageTypes[_0x1ff892(0xbd)],_0x113d90[_0x1ff892(0x11c)],_0x113d90['mzzfL'],_0x113d90['swfpv']),logger[_0x1ff892(0xd8)](_0x1d6bb9),process[_0x1ff892(0x187)](0x1)):_0x3f2c2a=_0x47ab57);if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1ff892(0xfc)](_0x23ecc1[_0x1ff892(0x130)][_0x1ff892(0x18a)]())){if(_0x113d90['lsVQQ'](_0x113d90[_0x1ff892(0xd1)],_0x113d90['mzyiI'])){const _0xaaee97={};_0xaaee97[_0x1ff892(0x174)]=_0x54bc11['LOG'],_0xaaee97['message']=_0x280b39,_0x3f1e5b[_0x1ff892(0xda)](_0x4d4097,_0xaaee97,_0x113d90[_0x1ff892(0x19b)],!![]);}else _0x1d6bb9=_0x113d90[_0x1ff892(0x113)],await _0x113d90[_0x1ff892(0x145)](reportToGalactusAndSendToEDS,_0x23ecc1,_0x1ee9c4,_0x1d6bb9,messageTypes[_0x1ff892(0xbd)],_0x113d90[_0x1ff892(0x11c)],_0x113d90[_0x1ff892(0x178)],_0x113d90[_0x1ff892(0x19b)]),logger['error'](_0x1d6bb9),!_0x23ecc1[_0x1ff892(0x130)]&&(_0x113d90['qwAUd'](_0x113d90[_0x1ff892(0x157)],_0x113d90[_0x1ff892(0x157)])?(logger[_0x1ff892(0x1a4)](_0x1ff892(0x111)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x23ecc1[_0x1ff892(0x130)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x3eb19c[_0x1ff892(0x187)](0x1));}global_registry['clusterName']=_0x23ecc1['clusterName'],global_registry[_0x1ff892(0x130)]=_0x23ecc1['cloudProvider'],global_registry[_0x1ff892(0x13e)]=_0x23ecc1[_0x1ff892(0x100)];}}else{if(_0x23ecc1[_0x1ff892(0x1a0)]){if(_0x113d90[_0x1ff892(0xc1)](_0x113d90[_0x1ff892(0x13a)],_0x113d90[_0x1ff892(0x13a)]))_0x4ee47b[_0x1ff892(0x1a4)]('Setting\x20cloud\x20provider\x20as\x20'+_0x4800ec['CLOUD_PROVIDER']+'\x20'),_0x56b10b[_0x1ff892(0x130)]=_0x649e3f['CLOUD_PROVIDER'];else{global_registry[_0x1ff892(0x1a0)]=_0x23ecc1['gridProfile'],logger[_0x1ff892(0x13c)](_0x1ff892(0xfe)+_0x23ecc1[_0x1ff892(0x1a0)]);const _0x178b2e=_0x1ff892(0x16d)+AG_API_URL+_0x1ff892(0xce),_0x415a90={};_0x415a90[_0x1ff892(0xc7)]=_0x113d90[_0x1ff892(0x11d)],_0x415a90[_0x1ff892(0x170)]=global_registry[_0x1ff892(0xed)],_0x415a90[_0x1ff892(0xe0)]=![];const _0x3ca5a7=_0x415a90,_0x1ec91c=await _0x113d90[_0x1ff892(0xdf)](got,_0x178b2e,_0x3ca5a7),_0x4110fd=await _0x113d90[_0x1ff892(0x150)](responseValidation,_0x1ec91c,_0x113d90[_0x1ff892(0x104)],_0x113d90[_0x1ff892(0x163)],_0x23ecc1,_0x1ee9c4);let _0x5d0efb={};if(_0x113d90[_0x1ff892(0x125)](_0x4110fd,0xc8)){if(_0x113d90[_0x1ff892(0xf1)](_0x113d90['Fswbg'],_0x113d90[_0x1ff892(0x1a8)]))_0xd2f66c[_0x1ff892(0x1a4)]('['+_0x483445+_0x1ff892(0x12d)+_0x225ddb['status']+'\x20data\x20:\x20'+_0x135382[_0x1ff892(0x137)]+_0x1ff892(0x128)+_0x1f2ca7[_0x1ff892(0xd8)]),_0x26a5be['error']&&_0x2313c3['error'](_0x1ff892(0xc2)+_0x14f71b[_0x1ff892(0xd8)][_0x1ff892(0x101)]);else{const _0x46092b=JSON['parse'](_0x1ec91c[_0x1ff892(0x119)]),_0x2fb1bf=_0x46092b[_0x1ff892(0xb3)](_0x259b32=>_0x259b32[_0x1ff892(0x117)]===_0x23ecc1[_0x1ff892(0x1a0)])||null;_0x113d90[_0x1ff892(0x12c)](isUndefined,_0x2fb1bf)?_0x113d90[_0x1ff892(0x143)](_0x113d90['qpuOh'],_0x113d90[_0x1ff892(0xe5)])?(_0x1d6bb9=_0x1ff892(0xe6)+_0x23ecc1[_0x1ff892(0x1a0)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x113d90[_0x1ff892(0x145)](reportToGalactusAndSendToEDS,_0x23ecc1,_0x1ee9c4,_0x1d6bb9,messageTypes[_0x1ff892(0xbd)],_0x113d90['ECLfS'],_0x113d90['BpyRj'],_0x113d90['swfpv']),logger[_0x1ff892(0xd8)](_0x1d6bb9),process[_0x1ff892(0x187)](0x1)):_0x575e22[_0x1ff892(0xb2)](_0x113d90[_0x1ff892(0xbb)]):_0x113d90[_0x1ff892(0xb6)](_0x113d90[_0x1ff892(0x14b)],_0x113d90[_0x1ff892(0x14b)])?_0x5d0efb=_0x2fb1bf:_0x7775c6[_0x1ff892(0xd8)](_0x1ff892(0xc2)+_0x3c410e[_0x1ff892(0xd8)]['stack']);}}else _0x113d90[_0x1ff892(0x143)](_0x113d90[_0x1ff892(0x17d)],_0x113d90['YraHS'])?process[_0x1ff892(0x187)](0x1):(_0x41e818['error'](_0x113d90[_0x1ff892(0x173)]),_0x3ff810['exit'](0x1));const _0x41e940={};_0x41e940[_0x1ff892(0x174)]=WS_EVENTS[_0x1ff892(0x1a1)],_0x41e940[_0x1ff892(0x108)]=_0x113d90[_0x1ff892(0x1a9)],webSocketUtils[_0x1ff892(0xda)](_0x1ee9c4,_0x41e940),global_registry[_0x1ff892(0x130)]=_0x5d0efb[_0x1ff892(0x130)],global_registry['clusterRegion']=_0x5d0efb[_0x1ff892(0x100)],global_registry[_0x1ff892(0x158)]=_0x5d0efb[_0x1ff892(0x158)];}}else{if(_0x113d90[_0x1ff892(0x143)](_0x113d90[_0x1ff892(0x124)],_0x113d90['YuAJT']))logger[_0x1ff892(0xd8)](_0x113d90[_0x1ff892(0x173)]),process[_0x1ff892(0x187)](0x1);else{const _0x51760a={};_0x51760a[_0x1ff892(0xf0)]=_0x113d90['evVoQ'],_0x51760a['type']=_0x113d90[_0x1ff892(0x148)];const _0x2214d8={};_0x2214d8['description']=_0x113d90[_0x1ff892(0xdb)],_0x2214d8[_0x1ff892(0x174)]=_0x113d90[_0x1ff892(0x148)];const _0x5885d1={};_0x5885d1[_0x1ff892(0xf0)]=_0x113d90['LeOty'],_0x5885d1[_0x1ff892(0x174)]=_0x113d90[_0x1ff892(0x148)];const _0x22a191={};_0x22a191[_0x1ff892(0xf0)]=_0x113d90[_0x1ff892(0x10f)],_0x22a191[_0x1ff892(0x174)]=_0x113d90['Fxkjb'];const _0x282c0c={};return _0x282c0c[_0x1ff892(0x14e)]=_0x51760a,_0x282c0c[_0x1ff892(0xbe)]=_0x2214d8,_0x282c0c[_0x1ff892(0x100)]=_0x5885d1,_0x282c0c[_0x1ff892(0xf9)]=_0x22a191,_0x1be67b['usage'](_0xfabd87[_0x1ff892(0x152)])[_0x1ff892(0x110)](_0x3b5a5b)['options'](_0x282c0c)[_0x1ff892(0x164)](_0x113d90[_0x1ff892(0x10a)])[_0x1ff892(0x12f)];}}}}else _0x35746d+=_0x1ff892(0xee)+_0xd7fcd6[_0x1ff892(0x158)]+'\x20'+(_0x59b8ef?_0x113d90[_0x1ff892(0x133)]:_0x113d90[_0x1ff892(0xc0)])+'\x0a\x0a';}catch(_0x457d25){_0x113d90[_0x1ff892(0xc5)](_0x113d90[_0x1ff892(0x116)],_0x113d90['SFOvk'])?_0xe82b91[_0x1ff892(0xb2)](_0x113d90['HExLZ']):(_0x1d6bb9=_0x1ff892(0x19c)+_0x457d25+':\x20'+_0x457d25[_0x1ff892(0x101)],logger['error'](_0x1d6bb9),await _0x113d90[_0x1ff892(0x145)](reportToGalactusAndSendToEDS,_0x23ecc1,_0x1ee9c4,_0x1d6bb9,messageTypes[_0x1ff892(0xbd)],_0x113d90['ECLfS'],_0x113d90['Fcaql'],_0x113d90[_0x1ff892(0x19b)]),process[_0x1ff892(0x187)](0x1));}}function printResponse(_0x1cad22,_0x274e14){const _0x29b149=a17_0x4e580a,_0x5e2016={};_0x5e2016['xymil']=function(_0x193a77,_0x599bf4){return _0x193a77!==_0x599bf4;},_0x5e2016[_0x29b149(0xae)]=_0x29b149(0x13b);const _0x4b5947=_0x5e2016;logger['info']('['+_0x1cad22+_0x29b149(0x12d)+_0x274e14[_0x29b149(0x147)]+_0x29b149(0x1a3)+_0x274e14[_0x29b149(0x137)]+_0x29b149(0x128)+_0x274e14[_0x29b149(0xd8)]),_0x274e14[_0x29b149(0xd8)]&&(_0x4b5947[_0x29b149(0x16c)](_0x4b5947['QvYmt'],_0x4b5947[_0x29b149(0xae)])?_0x532217[_0x29b149(0x1a4)](_0x29b149(0x171)+_0x1fb4bc[_0x29b149(0x158)]+_0x29b149(0x15b)):logger['error']('error\x20stack\x20:\x20'+_0x274e14[_0x29b149(0xd8)][_0x29b149(0x101)]));}async function generateReport(_0x33523b,_0x4fd802){const _0x124123=a17_0x4e580a,_0x1e6920={'DbsDo':function(_0x54bb19,_0x18a928){return _0x54bb19+_0x18a928;},'GKoYJ':'Success','Iovrt':_0x124123(0x18e),'odwIT':function(_0x52da66,_0x425e9d){return _0x52da66||_0x425e9d;},'KMnJd':_0x124123(0x19a),'LfYIB':_0x124123(0x10b),'jlsPX':_0x124123(0x131),'JomKK':function(_0x454efd,_0x1c073d){return _0x454efd!=_0x1c073d;},'HunQv':_0x124123(0x193),'aXzsP':_0x124123(0x11e),'fnpvR':function(_0x3e2afe){return _0x3e2afe();}};let _0x19fa02=_0x124123(0x14f)+global_registry[_0x124123(0x130)]+'\x20===\x0a\x0a';return _0x33523b[_0x124123(0xaf)]((_0x30ab9a,_0x5b5698)=>{const _0x350ef5=_0x124123,{header:_0x3aae02,response:_0x220cee}=_0x30ab9a,{status:_0x5a18b6,data:_0x34cbb1,error:_0x2db9da}=_0x220cee;_0x19fa02+=_0x3aae02+'\x20#'+_0x1e6920[_0x350ef5(0x115)](_0x5b5698,0x1)+'\x0a',_0x19fa02+=_0x350ef5(0xcd)+(_0x5a18b6?_0x1e6920['GKoYJ']:_0x1e6920[_0x350ef5(0xfd)])+'\x0a',_0x19fa02+='Message:\x20'+_0x1e6920[_0x350ef5(0x17c)](_0x34cbb1,_0x1e6920[_0x350ef5(0x106)])+'\x0a',_0x2db9da&&(_0x19fa02+=_0x1e6920[_0x350ef5(0x198)],_0x19fa02+='\x20\x20Message:\x20'+(_0x2db9da['message']||_0x1e6920[_0x350ef5(0x106)])+'\x0a',_0x19fa02+=_0x350ef5(0x123)+(_0x2db9da[_0x350ef5(0x14d)]||_0x1e6920['KMnJd'])+'\x0a',_0x19fa02+='\x20\x20Stack:\x20'+(_0x2db9da[_0x350ef5(0x101)]||_0x1e6920[_0x350ef5(0x106)])+'\x0a'),_0x19fa02+='\x0a\x0a';}),_0x19fa02+=_0x1e6920[_0x124123(0x192)],_0x1e6920[_0x124123(0xea)](_0x4fd802,null)?_0x19fa02+=_0x124123(0xee)+global_registry[_0x124123(0x158)]+'\x20'+(_0x4fd802?_0x1e6920[_0x124123(0x122)]:_0x1e6920[_0x124123(0x199)])+'\x0a\x0a':_0x19fa02+='Cluster\x20'+global_registry[_0x124123(0x158)]+_0x124123(0x17b),_0x19fa02+=_0x1e6920[_0x124123(0x118)](getSystemMetaData),_0x19fa02;};exports['handler']=async function(_0x2a50b4){const _0x4deae5=a17_0x4e580a,_0x33e1ec={'Nnxyk':function(_0x54965d){return _0x54965d();},'FXVzv':_0x4deae5(0x142),'ixNLg':function(_0x2297a2,_0xfc79ed,_0x2998a9,_0x9e4395,_0x2a4842,_0x34b915,_0x321cff,_0x1ca774){return _0x2297a2(_0xfc79ed,_0x2998a9,_0x9e4395,_0x2a4842,_0x34b915,_0x321cff,_0x1ca774);},'viwAM':_0x4deae5(0xb8),'eYgUL':'credential-not-found','LHhrq':'error','ZmRTq':function(_0x283d2d,_0x4e10df,_0x2c1baf,_0x3b5680,_0x61f9f3,_0x3f7d1c,_0x53f553){return _0x283d2d(_0x4e10df,_0x2c1baf,_0x3b5680,_0x61f9f3,_0x3f7d1c,_0x53f553);},'oHkPW':function(_0x15144c){return _0x15144c();},'KXxHi':_0x4deae5(0x120),'FUGOj':_0x4deae5(0x14c),'QSUvZ':function(_0x49c3ad,_0x213d0d,_0x556cfd){return _0x49c3ad(_0x213d0d,_0x556cfd);},'ckMKO':'dummy-grid','TvHqa':_0x4deae5(0x177),'Empzp':_0x4deae5(0x175),'KgONh':function(_0x97ddf9,_0x466920,_0x3c832b,_0x35b437,_0x575d56,_0x4191c2,_0x3d945d,_0x57332e){return _0x97ddf9(_0x466920,_0x3c832b,_0x35b437,_0x575d56,_0x4191c2,_0x3d945d,_0x57332e);},'sSkma':function(_0x160a89,_0x3864ec,_0x242edc){return _0x160a89(_0x3864ec,_0x242edc);},'WWrww':'accessResp','RxVdz':function(_0x10a6bb){return _0x10a6bb();},'NvMdB':function(_0x405db6,_0x12555d,_0x6f45ed){return _0x405db6(_0x12555d,_0x6f45ed);},'hoghC':_0x4deae5(0xd9),'HHhpI':function(_0x3a1a0e,_0x3d2c40){return _0x3a1a0e(_0x3d2c40);},'Drvba':_0x4deae5(0x16b),'ErAQB':_0x4deae5(0x112),'rifGF':_0x4deae5(0xe3),'JaQox':_0x4deae5(0x191),'qbDeI':_0x4deae5(0xe7),'OXrgz':_0x4deae5(0x138),'UvMvG':function(_0x176b5a,_0x1bff63){return _0x176b5a+_0x1bff63;},'aOUnR':'utf-8','HjDho':_0x4deae5(0xbf)};let _0x975f37,_0x39d346;try{global_registry[_0x4deae5(0xdd)]=_0x33e1ec[_0x4deae5(0x109)](uuidv4);!fs[_0x4deae5(0x160)](_0x33e1ec['Nnxyk'](getCredentialsPath))&&(_0x39d346=_0x33e1ec[_0x4deae5(0x180)],logger[_0x4deae5(0xd8)](_0x39d346),await _0x33e1ec[_0x4deae5(0x185)](reportToGalactusAndSendToEDS,_0x2a50b4,_0x975f37,_0x39d346,messageTypes[_0x4deae5(0xbd)],_0x33e1ec[_0x4deae5(0x114)],_0x33e1ec[_0x4deae5(0x17a)],_0x33e1ec['LHhrq']),process[_0x4deae5(0x187)](0x1));_0x33e1ec['ZmRTq'](sendInstrumentationEvent,_0x2a50b4,_0x33e1ec[_0x4deae5(0x114)],messageTypes[_0x4deae5(0x13d)],null,null,_0x2a50b4);const _0x4824f6=JSON[_0x4deae5(0x179)](fs[_0x4deae5(0xd5)](_0x33e1ec[_0x4deae5(0xf6)](getCredentialsPath)));global_registry[_0x4deae5(0xc4)]=_0x4824f6[_0x4deae5(0x127)]['username'],global_registry['bstackAccesskey']=_0x4824f6[_0x4deae5(0x127)]['password'];const _0x3dd66c=WS_ENDPOINT[_0x4deae5(0x129)](_0x33e1ec[_0x4deae5(0x195)],_0x4824f6[_0x4deae5(0x127)][_0x4deae5(0x103)])[_0x4deae5(0x129)](_0x33e1ec[_0x4deae5(0x188)],_0x4824f6['Browserstack'][_0x4deae5(0x102)]),_0x5f46a3={};_0x5f46a3['WebSocket']=ws,_0x5f46a3[_0x4deae5(0x11f)]=0x36ee80,_0x975f37=new ReconnectingWebSocket(_0x3dd66c,[],_0x5f46a3),global_registry[_0x4deae5(0xed)]=_0x33e1ec['QSUvZ'](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x33e1ec[_0x4deae5(0xba)](inputValidation,_0x2a50b4,_0x975f37),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x4deae5(0x130)]+_0x4deae5(0xb9)+global_registry[_0x4deae5(0x13e)]);let _0x5c4604=await _0x33e1ec['ZmRTq'](getCloudProviderObjectWithOutInit,global_registry[_0x4deae5(0x130)],global_registry['clusterName'],_0x33e1ec[_0x4deae5(0xe4)],_0x975f37,webSocketUtils,_0x2a50b4);const _0x4a9915=await _0x5c4604[_0x4deae5(0xd3)]();_0x33e1ec[_0x4deae5(0xba)](printResponse,_0x33e1ec['TvHqa'],_0x4a9915),_0x5c4604=await _0x5c4604[_0x4deae5(0x15a)]();let _0x51c66c=![];try{_0x51c66c=await _0x5c4604[_0x4deae5(0x12a)]();}catch(_0x31bc3f){const _0x59ecf1=_0x33e1ec['Empzp'][_0x4deae5(0x134)]('|');let _0x4c437e=0x0;while(!![]){switch(_0x59ecf1[_0x4c437e++]){case'0':logger[_0x4deae5(0xd8)](_0x39d346);continue;case'1':await _0x33e1ec['KgONh'](reportToGalactusAndSendToEDS,_0x2a50b4,_0x975f37,_0x39d346,messageTypes[_0x4deae5(0xbd)],_0x33e1ec[_0x4deae5(0x114)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x33e1ec[_0x4deae5(0xd2)]);continue;case'2':_0x39d346+='\x0a'+JSON['stringify'](_0x31bc3f[_0x4deae5(0x101)]);continue;case'3':_0x39d346='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x4deae5(0x13e)]+_0x4deae5(0xfb)+_0x31bc3f;continue;case'4':_0x51c66c=null;continue;}break;}}_0x51c66c&&logger[_0x4deae5(0x1a4)](_0x4deae5(0x171)+global_registry[_0x4deae5(0x158)]+_0x4deae5(0x15b));const _0x43e6fc=await _0x5c4604[_0x4deae5(0x136)]();_0x33e1ec[_0x4deae5(0x168)](printResponse,_0x33e1ec[_0x4deae5(0xe8)],_0x43e6fc);const _0x2d971a=await _0x33e1ec[_0x4deae5(0x16f)](curlRequest);_0x33e1ec[_0x4deae5(0x135)](printResponse,_0x33e1ec['hoghC'],_0x2d971a);const _0x19a01c=await _0x33e1ec[_0x4deae5(0x19e)](isTlsSupported,_0x33e1ec[_0x4deae5(0x15c)]);_0x33e1ec[_0x4deae5(0x168)](printResponse,_0x33e1ec[_0x4deae5(0x10c)],_0x19a01c);const _0x354fd6={};_0x354fd6[_0x4deae5(0x184)]=_0x33e1ec[_0x4deae5(0x190)],_0x354fd6[_0x4deae5(0x15f)]=_0x4a9915;const _0xb08cf8={};_0xb08cf8['header']=_0x33e1ec[_0x4deae5(0xef)],_0xb08cf8[_0x4deae5(0x15f)]=_0x43e6fc;const _0xe04c7f={};_0xe04c7f['header']=_0x33e1ec['qbDeI'],_0xe04c7f['response']=_0x2d971a;const _0x17d478={};_0x17d478['header']=_0x33e1ec['OXrgz'],_0x17d478[_0x4deae5(0x15f)]=_0x19a01c;const _0x20fed1=[_0x354fd6,_0xb08cf8,_0xe04c7f,_0x17d478],_0x419642=await _0x33e1ec[_0x4deae5(0x168)](generateReport,_0x20fed1,_0x51c66c),_0x1dae8c=new Date(),_0x11deaf=_0x1dae8c[_0x4deae5(0x159)]()+'_'+_0x33e1ec['UvMvG'](_0x1dae8c[_0x4deae5(0x17e)](),0x1)+'_'+_0x1dae8c[_0x4deae5(0x172)]()+'_'+_0x1dae8c['getUTCHours']()+'_'+_0x1dae8c['getUTCMinutes'](),_0x329259=_0x4deae5(0x18d)+_0x11deaf+_0x4deae5(0x121);fs[_0x4deae5(0x11a)](_0x329259,_0x419642,_0x33e1ec[_0x4deae5(0xcb)]),logger[_0x4deae5(0x1a4)](_0x4deae5(0xb4)+_0x329259),process['exit'](0x0);}catch(_0x169c8b){let _0x5887b2=_0x4deae5(0x153)+_0x169c8b+'\x20';logger[_0x4deae5(0xd8)](_0x5887b2),_0x5887b2+='\x0a'+JSON[_0x4deae5(0x186)](_0x169c8b[_0x4deae5(0x101)]),logger[_0x4deae5(0x13c)](_0x4deae5(0x154)+_0x169c8b[_0x4deae5(0x101)]);if(_0x975f37){const _0x3afe91={};_0x3afe91[_0x4deae5(0x174)]=WS_EVENTS[_0x4deae5(0x1a1)],_0x3afe91['message']=_0x5887b2,webSocketUtils['sendEventToBackend'](_0x975f37,_0x3afe91,_0x33e1ec[_0x4deae5(0xd2)],!![]);}await webSocketUtils[_0x4deae5(0x16e)](0x7d0);const _0x414ad4={};_0x414ad4['error']=_0x5887b2,await _0x33e1ec[_0x4deae5(0x10e)](sendInstrumentationEvent,_0x2a50b4,_0x33e1ec[_0x4deae5(0x114)],messageTypes[_0x4deae5(0xbd)],_0x33e1ec[_0x4deae5(0x166)],_0x414ad4,_0x2a50b4),process['exit'](0x1);}};function a17_0x2d10(){const _0x30c2e1=['hQYjR','38cqgYyw','pre-check-grid-called','\x20region\x20-\x20','QSUvZ','YzPDb','../../cloudproviders/utils','ERROR','cloud-provider','pre-check-failed','MpHzY','TRBVL','error\x20stack\x20:\x20','jQeEO','bstackUsername','DgkuI','pVmMt','method','grid','\x20\x20Message:\x20','4401344IwNeJx','aOUnR','fNpOs','Status:\x20','/packages/cli/get-all-grid-profiles','PecXr','eTVHE','mzyiI','LHhrq','isCliToolInstalled','643404WASFgg','readFileSync','JCTAV','QGrjP','error','isTrialGridAccessible','sendEventToBackend','xxsyI','cnhfi','requestId','.\x20Please\x20provide\x20all\x20required\x20arguments.','lTAsv','throwHttpErrors','mjIEI','builder','Tool\x20Installed','ckMKO','mSeaY','Invalid\x20input.\x20grid\x20profiles:\x20','Whitelisted\x20browserstack','WWrww','hUbdc','JomKK','DmEaH','string','authHeader','Cluster\x20','JaQox','description','heGfT','FBqAd','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','dHTDx','\x20\x20Stack:\x20','oHkPW','options','DRanw','grid-profile','gIqoP','`\x20,error\x20:\x20','includes','Iovrt','grid\x20profile\x20flow\x20','31095pSTHAk','region','stack','password','username','VOPwz','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','KMnJd','pre-check-grid-profile-empty','message','Nnxyk','rwylX','Error\x20Details:\x0a','ErAQB','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ZmRTq','BaRLc','epilogue','Setting\x20cloud\x20provider\x20as\x20','isTls1_2_SUPPORTED','Uzqlj','viwAM','DbsDo','YnjNV','name','fnpvR','body','writeFileSync','LsKBP','ECLfS','PRCll','will\x20be\x20created','connectionTimeout','<UsernamePlaceholder>','.txt','HunQv','\x20\x20Code:\x20','UnBID','JnGDL','7858301EAXIjE','Browserstack','\x20error\x20:\x20','replace','isClusterPresent','wfGrh','sOFpX',']\x20status\x20:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','argv','cloudProvider','Cluster\x20details\x0a-----------------------\x0a','Grid\x20profile\x20fetched\x20for\x20pre-check','NzxEr','split','NvMdB','checkAccess','data','SSL\x20Configured','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','zXlFd','fvbXL','debug','INFO','clusterRegion','Success','jWxDZ','XJezV','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lsVQQ','../../config/constants','saPMs','xMVRq','status','Fxkjb','uATQp','254248RMIjNX','yjgvf','<PasswordPlaceholder>','code','cluster-name','===\x20Precheck\x20Report\x20-\x20','cWGzH','uouFE','pre_check','Failed\x20in\x20pre-check!\x20Error:\x20','stack\x20trace\x20','YJgnz','115530bBqGCC','eaJgI','clusterName','getUTCFullYear','init','`\x20already\x20exists','Drvba','VZYAg','usage','response','existsSync','../../config/logger','WlXLT','avFRQ','help','HExLZ','HjDho','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','sSkma','ufwYO','vFYhM','TLSv1_2_client_method','xymil','https://','delay','RxVdz','headers','Cluster\x20`','getUTCDate','mwmxW','type','3|4|0|2|1','120HIZaoM','toolInstalledResp','Fcaql','parse','eYgUL','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','odwIT','uvYgq','getUTCMonth','uuid','FXVzv','YFWBJ','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Message:\x20','header','ixNLg','stringify','exit','FUGOj','tsAKU','toLowerCase','DzEkk','desc','log/report_','Failure','command','rifGF','User\x20Access','jlsPX','is\x20already\x20present','WYkfN','KXxHi','KyVfT','CLbsG','LfYIB','aXzsP','N/A','swfpv','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','ZMbuT','HHhpI','4335Tvpiin','gridProfile','LOG','580wOMfyP','\x20data\x20:\x20','info','Ahsin','wZMcP','QrpFI','GKWzj','eFGEC','XUVqy','QvYmt','forEach','../../utils/webSocketUtils','YPXwp','push','find','Report\x20saved\x20in\x20','28oHOXab'];a17_0x2d10=function(){return _0x30c2e1;};return a17_0x2d10();}
1
+ const a17_0x282992=a17_0x1bf4;(function(_0x354414,_0x97d1bf){const _0x4d0d28=a17_0x1bf4,_0x50fc53=_0x354414();while(!![]){try{const _0x31c8b1=parseInt(_0x4d0d28(0x190))/0x1*(-parseInt(_0x4d0d28(0x1ea))/0x2)+parseInt(_0x4d0d28(0x1d0))/0x3+parseInt(_0x4d0d28(0x1b3))/0x4+parseInt(_0x4d0d28(0x235))/0x5+-parseInt(_0x4d0d28(0x25c))/0x6+parseInt(_0x4d0d28(0x25d))/0x7*(-parseInt(_0x4d0d28(0x191))/0x8)+-parseInt(_0x4d0d28(0x160))/0x9*(-parseInt(_0x4d0d28(0x1bd))/0xa);if(_0x31c8b1===_0x97d1bf)break;else _0x50fc53['push'](_0x50fc53['shift']());}catch(_0xb4804e){_0x50fc53['push'](_0x50fc53['shift']());}}}(a17_0x3d68,0x2b39c));const fs=require('fs'),ws=require('ws'),got=require(a17_0x282992(0x211)),{v4:uuidv4}=require(a17_0x282992(0x1f0)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x282992(0x1e6)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x282992(0x1d2)),{getCloudProviderObjectWithOutInit}=require(a17_0x282992(0x167)),webSocketUtils=require(a17_0x282992(0x1db)),{sendInstrumentationEvent}=require(a17_0x282992(0x1fa));exports[a17_0x282992(0x256)]='grid',exports[a17_0x282992(0x243)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x282992(0x23b)]=function(_0x5d3a03){const _0x1a04cb=a17_0x282992,_0x488914={};_0x488914[_0x1a04cb(0x207)]=_0x1a04cb(0x216),_0x488914[_0x1a04cb(0x1de)]='string',_0x488914[_0x1a04cb(0x1b2)]=_0x1a04cb(0x197),_0x488914[_0x1a04cb(0x231)]=_0x1a04cb(0x198),_0x488914[_0x1a04cb(0x1c5)]=_0x1a04cb(0x1bb),_0x488914[_0x1a04cb(0x22b)]=_0x1a04cb(0x22a);const _0x24e4c1=_0x488914,_0x4bd5ce={};_0x4bd5ce['description']=_0x24e4c1[_0x1a04cb(0x207)],_0x4bd5ce['type']=_0x24e4c1[_0x1a04cb(0x1de)];const _0x21a70a={};_0x21a70a[_0x1a04cb(0x1a3)]=_0x24e4c1[_0x1a04cb(0x1b2)],_0x21a70a['type']=_0x24e4c1[_0x1a04cb(0x1de)];const _0xbabb7e={};_0xbabb7e[_0x1a04cb(0x1a3)]=_0x24e4c1[_0x1a04cb(0x231)],_0xbabb7e['type']=_0x24e4c1[_0x1a04cb(0x1de)];const _0x2ed8c2={};_0x2ed8c2[_0x1a04cb(0x1a3)]=_0x24e4c1['dUvnz'],_0x2ed8c2['type']=_0x24e4c1[_0x1a04cb(0x1de)];const _0x499a3a={};return _0x499a3a['cluster-name']=_0x4bd5ce,_0x499a3a[_0x1a04cb(0x1bf)]=_0x21a70a,_0x499a3a[_0x1a04cb(0x252)]=_0xbabb7e,_0x499a3a['grid-profile']=_0x2ed8c2,_0x5d3a03[_0x1a04cb(0x24a)](HELP_HEADER_MESSAGE[_0x1a04cb(0x22c)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1a04cb(0x209)](_0x499a3a)['help'](_0x24e4c1[_0x1a04cb(0x22b)])[_0x1a04cb(0x1e4)];};function a17_0x3d68(){const _0x9ed032=['gridProfile','builder','bpmeC','MrNOv','checkAccess','PbxiS','\x20\x20Stack:\x20','IECrI','eIbzP','desc','rMzSu','Setting\x20cloud\x20provider\x20as\x20','IltYE','includes','QFiKC','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','usage','/packages/cli/get-all-grid-profiles','fOyoV','pWkZY','JMtZZ','ERROR','header','Eqmvg','region','pre-check','INFO','KeyVM','command','is\x20already\x20present','KpvPv','OOres','pre-check-grid-profile-empty','Cluster\x20`','1515906eEDoPy','1974sermnx','WvapO','1466379EeccHX','exit','connectionTimeout','isTls1_2_SUPPORTED','mCQbL','stringify','XBYuO','../../cloudproviders/utils','Cluster\x20','code','stack\x20trace\x20','aofzV','https://','clusterRegion','.txt','Failure','Browserstack','data','string','ingHy','isTrialGridAccessible','YLSdd','hGerJ','\x20\x20Code:\x20','\x20region\x20-\x20','UUKrU','clusterName','VJDWP','fQVmW','Missing\x20required\x20arguments:\x20','.\x20Please\x20provide\x20all\x20required\x20arguments.','getUTCMonth','NCwdi','accessResp','===\x20Precheck\x20Report\x20-\x20','status','push','dzCgi','qQoIr','esdzb','isClusterPresent','debug','wcTaZ','LOG','Cqkdv','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','UKVgL','yHTnI','1185leIqTt','7240fSfvsi','eMKkV','hgjEE','delay','JnfoI','log/report_','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','JlFgt','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','hTGRB',']\x20status\x20:\x20','Status:\x20','pre-check-grid-called','JrkNU','uLtAb','headers','AeobO','description','method','xQecx','getUTCMinutes','DCqDm','MpZVg','SRHdI','Invalid\x20input.\x20grid\x20profiles:\x20','Hokrj','dummy-grid','join','tyskw','OMvNs','grid-profile','Grid\x20profile\x20fetched\x20for\x20pre-check','vkmxW','386244RVeNMZ','getUTCHours','User\x20Access','xJgWz','QfXkz','isCliToolInstalled','Success','eeIkJ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','\x20data\x20:\x20','10EamWYp','Error\x20Details:\x0a','cloud-provider','toolInstalledResp','CLOUD_PROVIDER','Report\x20saved\x20in\x20','utf-8','Whitelisted\x20browserstack','dUvnz','VNrQM','UZdGi','parse','`\x20already\x20exists','pre-check-cluster-args-not-passed','authHeader','SSL\x20Configured','info','bzarp','response','758568wOksEp','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','../../config/constants','AfsAO','find','requestId','LzAjh','type','replace','WebSocket','heFMj','../../utils/webSocketUtils','existsSync','qGnYp','UMYLE','MJOGP','Nwnyt','PnBzB','username','UavEr','argv','cloud-provider-not-supported','../../utils/utilityMethods','ilzWj','GhPTg','FqRdT','142LaIimw','password','`\x20,error\x20:\x20','iRkiN','gEcsd','Rjlwn','uuid','Message:\x20','toLowerCase','cloudProvider','PszDf','MUCEy','cluster-check-failed-','OxoEF','bstackAccesskey','eypEb','../../utils/instrumentationUtils','zMerv','JQKDk','tGmeG','JbemL','split','LXgDp','iBqoa','N/A','<PasswordPlaceholder>','bstackUsername','sendEventToBackend','message','XaYSd','UBuee','options','cluster-name','WqgkS','jXDhC','pre-check-failed','Failed\x20in\x20pre-check!\x20Error:\x20','RXhRb','\x20\x20Message:\x20','got','qiqsM','ERPYs','body','error','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','KMift','hyPSr','Hrrql','rgWwh','Pre-check\x20running\x20for\x20Cloud\x20-\x20','dEYsZ','bkHNR','TLSv1_2_client_method','KWIGN','ABkCx','stack','RSPlT','HQuYa','<UsernamePlaceholder>','getUTCDate','Cluster\x20details\x0a-----------------------\x0a','HIKbG','tTaGa','readFileSync','help','Tzkzm','pre_check','\x20===\x0a\x0a','error\x20stack\x20:\x20','alMvK','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','yBsdp','gsUpd','name','ouFPZ','1283500kkNKvU','grid\x20profile\x20flow\x20','\x20error\x20:\x20','dRunr','agmyX'];a17_0x3d68=function(){return _0x9ed032;};return a17_0x3d68();}function a17_0x1bf4(_0x4dea94,_0x1ca011){const _0x3d68e1=a17_0x3d68();return a17_0x1bf4=function(_0x1bf43b,_0x4bb3c8){_0x1bf43b=_0x1bf43b-0x160;let _0x3da3a6=_0x3d68e1[_0x1bf43b];return _0x3da3a6;},a17_0x1bf4(_0x4dea94,_0x1ca011);}async function inputValidation(_0x2dbab1,_0x54dc5c){const _0x25d79f=a17_0x282992,_0x93b4b1={'ggzqd':function(_0x4670eb,_0x11434f){return _0x4670eb+_0x11434f;},'JbemL':_0x25d79f(0x1b9),'Hrrql':'Failure','eeIkJ':function(_0x45eede,_0x56c224){return _0x45eede||_0x56c224;},'uLtAb':_0x25d79f(0x202),'UKVgL':_0x25d79f(0x1be),'ouFPZ':_0x25d79f(0x257),'dRunr':'will\x20be\x20created','alMvK':_0x25d79f(0x1bf),'Eqmvg':_0x25d79f(0x215),'RsYjU':_0x25d79f(0x1d1),'RXhRb':_0x25d79f(0x252),'Rjlwn':_0x25d79f(0x20a),'iRkiN':function(_0xd81dfe,_0x220fdf){return _0xd81dfe===_0x220fdf;},'qGnYp':'OlVCp','TIYxB':_0x25d79f(0x258),'JMtZZ':_0x25d79f(0x1ae),'xJgWz':'miDWH','SRHdI':_0x25d79f(0x18a),'heFMj':function(_0x493716,_0x3a83fc){return _0x493716===_0x3a83fc;},'qiqsM':_0x25d79f(0x23f),'XBYuO':_0x25d79f(0x1e0),'sVKVJ':_0x25d79f(0x186),'fOyoV':function(_0x153197,_0x3dc50d){return _0x153197>_0x3dc50d;},'WvapO':_0x25d79f(0x20c),'VJDWP':function(_0x2e6947,_0x4416ec,_0x44c9f6,_0x85d79,_0x206b06,_0x50f158,_0x1bbfea,_0x5e6372){return _0x2e6947(_0x4416ec,_0x44c9f6,_0x85d79,_0x206b06,_0x50f158,_0x1bbfea,_0x5e6372);},'iBqoa':_0x25d79f(0x19e),'OOres':_0x25d79f(0x1ca),'MpZVg':function(_0x451832,_0x5c6543){return _0x451832!==_0x5c6543;},'UBuee':'QMgee','MUCEy':'JVPDK','ehRVu':_0x25d79f(0x230),'MJOGP':function(_0xecf508,_0x5392d7,_0x271197,_0x527f34,_0xd478c3,_0x3cd88f,_0x556563,_0x492bd9){return _0xecf508(_0x5392d7,_0x271197,_0x527f34,_0xd478c3,_0x3cd88f,_0x556563,_0x492bd9);},'aofzV':_0x25d79f(0x1e5),'ERPYs':_0x25d79f(0x1ee),'wbEpl':_0x25d79f(0x222),'dEYsZ':function(_0xb0a911,_0x5ae234){return _0xb0a911!==_0x5ae234;},'esdzb':_0x25d79f(0x248),'MrNOv':'GET','yHTnI':function(_0x3666fa,_0x3f4733,_0x19ef0d){return _0x3666fa(_0x3f4733,_0x19ef0d);},'xQecx':function(_0xbaec32,_0x2b1bc3,_0x1dc92d,_0x18431a,_0x2c1632,_0x562ce2){return _0xbaec32(_0x2b1bc3,_0x1dc92d,_0x18431a,_0x2c1632,_0x562ce2);},'WqgkS':_0x25d79f(0x253),'itEUI':'grid-profile','Cqkdv':function(_0x56eb7e,_0x39095a){return _0x56eb7e!==_0x39095a;},'AeobO':_0x25d79f(0x1e3),'GhPTg':function(_0x42b29c,_0x27fdd3){return _0x42b29c(_0x27fdd3);},'eIbzP':function(_0x1bdfc8,_0x954952){return _0x1bdfc8!==_0x954952;},'hgjEE':'ZZnBi','zBKiZ':function(_0x557cb1,_0x21a826,_0x14011f,_0x3eaacd,_0x226719,_0xc0716d,_0x5d59fc,_0x3d07d4){return _0x557cb1(_0x21a826,_0x14011f,_0x3eaacd,_0x226719,_0xc0716d,_0x5d59fc,_0x3d07d4);},'JnfoI':_0x25d79f(0x25a),'KeyVM':'UjDgW','bRnoW':function(_0x1023bf,_0x534167){return _0x1023bf===_0x534167;},'CIckt':'Tnogk','ingHy':'IMwUE','AfsAO':_0x25d79f(0x1b1),'hTGRB':function(_0x421dfe,_0x3417f9){return _0x421dfe!==_0x3417f9;},'gKlDg':'LNlcu','QfXkz':function(_0x367856,_0x5c7522){return _0x367856===_0x5c7522;},'bmoxk':_0x25d79f(0x228),'PnBzB':'chaHX'};let _0x1adae7;try{if(_0x93b4b1['iRkiN'](_0x93b4b1[_0x25d79f(0x1dd)],_0x93b4b1['TIYxB'])){const {header:_0x430fe3,response:_0xd9fec1}=_0x12a585,{status:_0xc29a48,data:_0x5a5e00,error:_0x4bbfc2}=_0xd9fec1;_0x2c0329+=_0x430fe3+'\x20#'+_0x93b4b1['ggzqd'](_0x282a8e,0x1)+'\x0a',_0x58ab0c+='Status:\x20'+(_0xc29a48?_0x93b4b1[_0x25d79f(0x1fe)]:_0x93b4b1[_0x25d79f(0x219)])+'\x0a',_0x4dd92c+=_0x25d79f(0x1f1)+_0x93b4b1[_0x25d79f(0x1ba)](_0x5a5e00,_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a',_0x4bbfc2&&(_0xdd8c8c+=_0x93b4b1[_0x25d79f(0x18e)],_0xed0942+=_0x25d79f(0x210)+(_0x4bbfc2[_0x25d79f(0x206)]||_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a',_0xea42b6+=_0x25d79f(0x177)+(_0x4bbfc2[_0x25d79f(0x169)]||_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a',_0x4828d6+=_0x25d79f(0x240)+(_0x4bbfc2[_0x25d79f(0x221)]||_0x93b4b1['uLtAb'])+'\x0a'),_0x4e6140+='\x0a\x0a';}else{if(_0x2dbab1['clusterName']||_0x2dbab1[_0x25d79f(0x1f3)]||_0x2dbab1[_0x25d79f(0x252)]){if(_0x93b4b1[_0x25d79f(0x1ed)](_0x93b4b1[_0x25d79f(0x24e)],_0x93b4b1['JMtZZ'])){const _0x377879=[];!_0x2dbab1[_0x25d79f(0x17a)]&&(_0x93b4b1[_0x25d79f(0x1ed)](_0x93b4b1[_0x25d79f(0x1b6)],_0x93b4b1[_0x25d79f(0x1a9)])?_0x526d1c+=_0x25d79f(0x168)+_0x2986e6[_0x25d79f(0x17a)]+'\x20'+(_0x2a9a70?_0x93b4b1[_0x25d79f(0x234)]:_0x93b4b1[_0x25d79f(0x238)])+'\x0a\x0a':_0x377879['push'](_0x93b4b1[_0x25d79f(0x1ef)]));;!_0x2dbab1[_0x25d79f(0x1f3)]&&(_0x93b4b1[_0x25d79f(0x1da)](_0x93b4b1[_0x25d79f(0x212)],_0x93b4b1[_0x25d79f(0x212)])?_0x377879[_0x25d79f(0x184)](_0x93b4b1[_0x25d79f(0x22f)]):_0x7516ca[_0x25d79f(0x184)](_0x93b4b1[_0x25d79f(0x22f)]));;if(!_0x2dbab1[_0x25d79f(0x252)]){if(_0x93b4b1[_0x25d79f(0x1ed)](_0x93b4b1[_0x25d79f(0x166)],_0x93b4b1['sVKVJ'])){const _0x4caf30={};_0x4caf30[_0x25d79f(0x1d7)]=_0x689fa9['LOG'],_0x4caf30[_0x25d79f(0x206)]=_0x12dd04,_0x2a86da[_0x25d79f(0x205)](_0x11ddd7,_0x4caf30,_0x93b4b1[_0x25d79f(0x251)],!![]);}else _0x377879[_0x25d79f(0x184)](_0x93b4b1['RXhRb']);};_0x93b4b1[_0x25d79f(0x24c)](_0x377879['length'],0x0)&&(_0x93b4b1[_0x25d79f(0x1da)](_0x93b4b1[_0x25d79f(0x25e)],_0x93b4b1[_0x25d79f(0x25e)])?(_0x1adae7=_0x25d79f(0x17d)+_0x377879[_0x25d79f(0x1ad)](',\x20')+_0x25d79f(0x17e),await _0x93b4b1[_0x25d79f(0x17b)](reportToGalactusAndSendToEDS,_0x2dbab1,_0x54dc5c,_0x1adae7,messageTypes['ERROR'],_0x93b4b1[_0x25d79f(0x201)],_0x93b4b1[_0x25d79f(0x259)],_0x93b4b1[_0x25d79f(0x251)]),logger[_0x25d79f(0x215)](_0x1adae7),process[_0x25d79f(0x161)](0x1)):_0x36ce48+=_0x25d79f(0x168)+_0x3b05a6[_0x25d79f(0x17a)]+_0x25d79f(0x19a)),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x25d79f(0x247)](_0x2dbab1['cloudProvider'][_0x25d79f(0x1f2)]())&&(_0x93b4b1[_0x25d79f(0x1a8)](_0x93b4b1[_0x25d79f(0x208)],_0x93b4b1[_0x25d79f(0x1f5)])?(_0x1adae7=_0x93b4b1['ehRVu'],await _0x93b4b1['MJOGP'](reportToGalactusAndSendToEDS,_0x2dbab1,_0x54dc5c,_0x1adae7,messageTypes['ERROR'],_0x93b4b1[_0x25d79f(0x201)],_0x93b4b1[_0x25d79f(0x16b)],_0x93b4b1['Eqmvg']),logger['error'](_0x1adae7),!_0x2dbab1[_0x25d79f(0x1f3)]&&(_0x93b4b1[_0x25d79f(0x1da)](_0x93b4b1[_0x25d79f(0x213)],_0x93b4b1['wbEpl'])?_0x31b58f['info'](_0x25d79f(0x25b)+_0x2482c7[_0x25d79f(0x17a)]+_0x25d79f(0x1c9)):(logger[_0x25d79f(0x1cd)](_0x25d79f(0x245)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x2dbab1['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x25d79f(0x1c1)]))):(_0x3dfd4e+=_0x93b4b1['UKVgL'],_0x19e1a9+=_0x25d79f(0x210)+(_0x18c285[_0x25d79f(0x206)]||_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a',_0x4156b9+=_0x25d79f(0x177)+(_0x5aa408[_0x25d79f(0x169)]||_0x93b4b1['uLtAb'])+'\x0a',_0x5d869b+=_0x25d79f(0x240)+(_0x318b0a['stack']||_0x93b4b1[_0x25d79f(0x1a0)])+'\x0a')),global_registry['clusterName']=_0x2dbab1[_0x25d79f(0x17a)],global_registry[_0x25d79f(0x1f3)]=_0x2dbab1[_0x25d79f(0x1f3)],global_registry[_0x25d79f(0x16d)]=_0x2dbab1['region'];}else _0x256266['error'](_0x93b4b1['RsYjU']),_0xf71c72[_0x25d79f(0x161)](0x1);}else{if(_0x2dbab1[_0x25d79f(0x23a)]){if(_0x93b4b1[_0x25d79f(0x21c)](_0x93b4b1[_0x25d79f(0x187)],_0x93b4b1[_0x25d79f(0x187)]))_0x7730b3[_0x25d79f(0x1cd)]('Setting\x20cloud\x20provider\x20as\x20'+_0x2d1d38[_0x25d79f(0x1c1)]+'\x20'),_0x1924ef['cloudProvider']=_0x2b02fe[_0x25d79f(0x1c1)];else{global_registry[_0x25d79f(0x23a)]=_0x2dbab1[_0x25d79f(0x23a)],logger[_0x25d79f(0x189)](_0x25d79f(0x236)+_0x2dbab1[_0x25d79f(0x23a)]);const _0x2581b7=_0x25d79f(0x16c)+AG_API_URL+_0x25d79f(0x24b),_0x534e41={};_0x534e41[_0x25d79f(0x1a4)]=_0x93b4b1[_0x25d79f(0x23d)],_0x534e41[_0x25d79f(0x1a1)]=global_registry[_0x25d79f(0x1cb)],_0x534e41['throwHttpErrors']=![];const _0x3bee09=_0x534e41,_0x1fdf25=await _0x93b4b1[_0x25d79f(0x18f)](got,_0x2581b7,_0x3bee09),_0x1c7d69=await _0x93b4b1[_0x25d79f(0x1a5)](responseValidation,_0x1fdf25,_0x93b4b1[_0x25d79f(0x20b)],_0x93b4b1['itEUI'],_0x2dbab1,_0x54dc5c);let _0x4464a9={};if(_0x93b4b1[_0x25d79f(0x1ed)](_0x1c7d69,0xc8)){if(_0x93b4b1[_0x25d79f(0x18c)](_0x93b4b1[_0x25d79f(0x1a2)],_0x93b4b1[_0x25d79f(0x1a2)]))_0x484c9f[_0x25d79f(0x215)](_0x25d79f(0x22e)+_0x555f21[_0x25d79f(0x215)][_0x25d79f(0x221)]);else{const _0x2948f8=JSON[_0x25d79f(0x1c8)](_0x1fdf25[_0x25d79f(0x214)]),_0x386385=_0x2948f8[_0x25d79f(0x1d4)](_0x14dda5=>_0x14dda5[_0x25d79f(0x233)]===_0x2dbab1[_0x25d79f(0x23a)])||null;_0x93b4b1[_0x25d79f(0x1e8)](isUndefined,_0x386385)?_0x93b4b1[_0x25d79f(0x242)](_0x93b4b1[_0x25d79f(0x193)],_0x93b4b1[_0x25d79f(0x193)])?_0xe9efba[_0x25d79f(0x184)](_0x93b4b1[_0x25d79f(0x20f)]):(_0x1adae7=_0x25d79f(0x1aa)+_0x2dbab1[_0x25d79f(0x23a)]+_0x25d79f(0x18d),await _0x93b4b1['zBKiZ'](reportToGalactusAndSendToEDS,_0x2dbab1,_0x54dc5c,_0x1adae7,messageTypes[_0x25d79f(0x24f)],_0x93b4b1['iBqoa'],_0x93b4b1[_0x25d79f(0x195)],_0x93b4b1['Eqmvg']),logger[_0x25d79f(0x215)](_0x1adae7),process[_0x25d79f(0x161)](0x1)):_0x93b4b1['Cqkdv'](_0x93b4b1[_0x25d79f(0x255)],_0x93b4b1[_0x25d79f(0x255)])?_0x1b2cf4=_0x3cafd9:_0x4464a9=_0x386385;}}else _0x93b4b1['bRnoW'](_0x93b4b1['CIckt'],_0x93b4b1[_0x25d79f(0x173)])?_0x126f33[_0x25d79f(0x161)](0x1):process[_0x25d79f(0x161)](0x1);const _0x55a9b5={};_0x55a9b5['type']=WS_EVENTS[_0x25d79f(0x18b)],_0x55a9b5[_0x25d79f(0x206)]=_0x93b4b1[_0x25d79f(0x1d3)],webSocketUtils[_0x25d79f(0x205)](_0x54dc5c,_0x55a9b5),global_registry[_0x25d79f(0x1f3)]=_0x4464a9[_0x25d79f(0x1f3)],global_registry[_0x25d79f(0x16d)]=_0x4464a9[_0x25d79f(0x252)],global_registry[_0x25d79f(0x17a)]=_0x4464a9[_0x25d79f(0x17a)];}}else _0x93b4b1[_0x25d79f(0x19b)](_0x93b4b1['gKlDg'],_0x93b4b1['gKlDg'])?(_0x4d3abe[_0x25d79f(0x1cd)]('['+_0xbef09a+_0x25d79f(0x19c)+_0x4b1317['status']+_0x25d79f(0x1bc)+_0xea24a6[_0x25d79f(0x171)]+_0x25d79f(0x237)+_0x5bceb4[_0x25d79f(0x215)]),_0x3e4c45[_0x25d79f(0x215)]&&_0x17aa0e[_0x25d79f(0x215)](_0x25d79f(0x22e)+_0x40e49c[_0x25d79f(0x215)][_0x25d79f(0x221)])):(logger[_0x25d79f(0x215)](_0x93b4b1['RsYjU']),process[_0x25d79f(0x161)](0x1));}}}catch(_0x42cf64){_0x93b4b1[_0x25d79f(0x1b7)](_0x93b4b1['bmoxk'],_0x93b4b1[_0x25d79f(0x1e1)])?_0x1563fe['push'](_0x93b4b1['Rjlwn']):(_0x1adae7=_0x25d79f(0x249)+_0x42cf64+':\x20'+_0x42cf64[_0x25d79f(0x221)],logger['error'](_0x1adae7),await _0x93b4b1[_0x25d79f(0x1df)](reportToGalactusAndSendToEDS,_0x2dbab1,_0x54dc5c,_0x1adae7,messageTypes['ERROR'],_0x93b4b1[_0x25d79f(0x201)],_0x93b4b1['aofzV'],_0x93b4b1[_0x25d79f(0x251)]),process[_0x25d79f(0x161)](0x1));}}function printResponse(_0x2d1d6b,_0x4d404b){const _0x5cccf9=a17_0x282992,_0x4e758c={};_0x4e758c[_0x5cccf9(0x21a)]=_0x5cccf9(0x216),_0x4e758c[_0x5cccf9(0x1ce)]=_0x5cccf9(0x172),_0x4e758c[_0x5cccf9(0x200)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4e758c[_0x5cccf9(0x244)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4e758c[_0x5cccf9(0x185)]=_0x5cccf9(0x1bb),_0x4e758c[_0x5cccf9(0x217)]=_0x5cccf9(0x22a),_0x4e758c[_0x5cccf9(0x1a7)]=function(_0x5eaa98,_0x26511c){return _0x5eaa98===_0x26511c;},_0x4e758c['IltYE']='sEVhG';const _0x4b1027=_0x4e758c;logger[_0x5cccf9(0x1cd)]('['+_0x2d1d6b+_0x5cccf9(0x19c)+_0x4d404b[_0x5cccf9(0x183)]+_0x5cccf9(0x1bc)+_0x4d404b[_0x5cccf9(0x171)]+_0x5cccf9(0x237)+_0x4d404b['error']);if(_0x4d404b[_0x5cccf9(0x215)]){if(_0x4b1027[_0x5cccf9(0x1a7)](_0x4b1027['IltYE'],_0x4b1027[_0x5cccf9(0x246)]))logger[_0x5cccf9(0x215)](_0x5cccf9(0x22e)+_0x4d404b[_0x5cccf9(0x215)][_0x5cccf9(0x221)]);else{const _0x1ddace={};_0x1ddace[_0x5cccf9(0x1a3)]=_0x4b1027['rgWwh'],_0x1ddace['type']=_0x4b1027[_0x5cccf9(0x1ce)];const _0x23aee1={};_0x23aee1[_0x5cccf9(0x1a3)]=_0x4b1027[_0x5cccf9(0x200)],_0x23aee1[_0x5cccf9(0x1d7)]=_0x4b1027['bzarp'];const _0x3a338e={};_0x3a338e[_0x5cccf9(0x1a3)]=_0x4b1027['rMzSu'],_0x3a338e[_0x5cccf9(0x1d7)]=_0x4b1027[_0x5cccf9(0x1ce)];const _0x4d9c2d={};_0x4d9c2d[_0x5cccf9(0x1a3)]=_0x4b1027['dzCgi'],_0x4d9c2d['type']=_0x4b1027[_0x5cccf9(0x1ce)];const _0x51fa70={};return _0x51fa70[_0x5cccf9(0x20a)]=_0x1ddace,_0x51fa70[_0x5cccf9(0x1bf)]=_0x23aee1,_0x51fa70[_0x5cccf9(0x252)]=_0x3a338e,_0x51fa70[_0x5cccf9(0x1b0)]=_0x4d9c2d,_0x29e973['usage'](_0x304c11['pre_check'])['epilogue'](_0x1258a9)[_0x5cccf9(0x209)](_0x51fa70)[_0x5cccf9(0x22a)](_0x4b1027[_0x5cccf9(0x217)])[_0x5cccf9(0x1e4)];}}}async function generateReport(_0xaaf8bf,_0x357ccd){const _0x10e0ff=a17_0x282992,_0x183282={'zMerv':function(_0x529396,_0x30f42f){return _0x529396+_0x30f42f;},'AvtcL':_0x10e0ff(0x1b9),'fQVmW':_0x10e0ff(0x16f),'bkHNR':function(_0x5181a8,_0x436fe1){return _0x5181a8||_0x436fe1;},'JrkNU':_0x10e0ff(0x202),'YLSdd':_0x10e0ff(0x1be),'eMKkV':_0x10e0ff(0x226),'KkXoA':function(_0x5a3ffb,_0x4516ae){return _0x5a3ffb!=_0x4516ae;},'YdefI':_0x10e0ff(0x257),'TINYV':'will\x20be\x20created','PszDf':function(_0x5c29e2){return _0x5c29e2();}};let _0x1f084b=_0x10e0ff(0x182)+global_registry[_0x10e0ff(0x1f3)]+_0x10e0ff(0x22d);return _0xaaf8bf['forEach']((_0x1e9a6d,_0x5a418b)=>{const _0x3a4076=_0x10e0ff,{header:_0x5fca68,response:_0x3f0d6d}=_0x1e9a6d,{status:_0x3edf42,data:_0x210164,error:_0xe8f920}=_0x3f0d6d;_0x1f084b+=_0x5fca68+'\x20#'+_0x183282[_0x3a4076(0x1fb)](_0x5a418b,0x1)+'\x0a',_0x1f084b+=_0x3a4076(0x19d)+(_0x3edf42?_0x183282['AvtcL']:_0x183282[_0x3a4076(0x17c)])+'\x0a',_0x1f084b+=_0x3a4076(0x1f1)+_0x183282[_0x3a4076(0x21d)](_0x210164,_0x183282['JrkNU'])+'\x0a',_0xe8f920&&(_0x1f084b+=_0x183282[_0x3a4076(0x175)],_0x1f084b+=_0x3a4076(0x210)+(_0xe8f920[_0x3a4076(0x206)]||_0x183282[_0x3a4076(0x19f)])+'\x0a',_0x1f084b+='\x20\x20Code:\x20'+(_0xe8f920[_0x3a4076(0x169)]||_0x183282['JrkNU'])+'\x0a',_0x1f084b+='\x20\x20Stack:\x20'+(_0xe8f920[_0x3a4076(0x221)]||_0x183282[_0x3a4076(0x19f)])+'\x0a'),_0x1f084b+='\x0a\x0a';}),_0x1f084b+=_0x183282[_0x10e0ff(0x192)],_0x183282['KkXoA'](_0x357ccd,null)?_0x1f084b+=_0x10e0ff(0x168)+global_registry['clusterName']+'\x20'+(_0x357ccd?_0x183282['YdefI']:_0x183282['TINYV'])+'\x0a\x0a':_0x1f084b+='Cluster\x20'+global_registry['clusterName']+_0x10e0ff(0x19a),_0x1f084b+=_0x183282[_0x10e0ff(0x1f4)](getSystemMetaData),_0x1f084b;};exports['handler']=async function(_0x1cd4b2){const _0x563f7a=a17_0x282992,_0x15f3fa={'UZdGi':function(_0x2761ad){return _0x2761ad();},'FqRdT':function(_0x26683a){return _0x26683a();},'Hokrj':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ilzWj':function(_0x258dc6,_0x58b66f,_0x4f5c9f,_0x32cbf1,_0x1f102c,_0x217579,_0x371387,_0x5dc4c0){return _0x258dc6(_0x58b66f,_0x4f5c9f,_0x32cbf1,_0x1f102c,_0x217579,_0x371387,_0x5dc4c0);},'JlFgt':_0x563f7a(0x19e),'HIKbG':'credential-not-found','UUKrU':_0x563f7a(0x215),'LzAjh':function(_0x2ca5a0,_0x4826b5,_0x55898e,_0x5aa869,_0x4ec003,_0x1b8e31,_0x15cae9){return _0x2ca5a0(_0x4826b5,_0x55898e,_0x5aa869,_0x4ec003,_0x1b8e31,_0x15cae9);},'JQKDk':_0x563f7a(0x224),'tGmeG':_0x563f7a(0x203),'mCQbL':function(_0x3829b1,_0x48fffe,_0x33bc4d){return _0x3829b1(_0x48fffe,_0x33bc4d);},'hGerJ':_0x563f7a(0x1ac),'NCwdi':function(_0x5130fa,_0x5ada31,_0x56681d){return _0x5130fa(_0x5ada31,_0x56681d);},'OxoEF':_0x563f7a(0x1c0),'khcrH':'4|0|2|1|3','CGfSD':_0x563f7a(0x181),'HQuYa':function(_0xb9284c){return _0xb9284c();},'NqzoR':_0x563f7a(0x174),'bpmeC':function(_0x3c0f27,_0x3d0f71){return _0x3c0f27(_0x3d0f71);},'hyPSr':_0x563f7a(0x21e),'ABkCx':function(_0x1f67ca,_0x571b76,_0x3be0fa){return _0x1f67ca(_0x571b76,_0x3be0fa);},'gsUpd':_0x563f7a(0x163),'XZuFV':'Tool\x20Installed','OMvNs':_0x563f7a(0x1b5),'IECrI':_0x563f7a(0x1c4),'KWIGN':_0x563f7a(0x1cc),'agmyX':function(_0x5abf81,_0x2b4825,_0x4022d8){return _0x5abf81(_0x2b4825,_0x4022d8);},'VNrQM':function(_0x41b563,_0x5acda5){return _0x41b563+_0x5acda5;},'eypEb':_0x563f7a(0x1c3),'pWkZY':function(_0x2642aa,_0x59b236,_0x5bd1dd,_0x12f784,_0x1668ec,_0x3243a6,_0x28e6de){return _0x2642aa(_0x59b236,_0x5bd1dd,_0x12f784,_0x1668ec,_0x3243a6,_0x28e6de);},'TObeQ':_0x563f7a(0x20d)};let _0xcce11f,_0x129951;try{global_registry[_0x563f7a(0x1d5)]=_0x15f3fa[_0x563f7a(0x1c7)](uuidv4);!fs[_0x563f7a(0x1dc)](_0x15f3fa[_0x563f7a(0x1e9)](getCredentialsPath))&&(_0x129951=_0x15f3fa[_0x563f7a(0x1ab)],logger[_0x563f7a(0x215)](_0x129951),await _0x15f3fa[_0x563f7a(0x1e7)](reportToGalactusAndSendToEDS,_0x1cd4b2,_0xcce11f,_0x129951,messageTypes[_0x563f7a(0x24f)],_0x15f3fa['JlFgt'],_0x15f3fa[_0x563f7a(0x227)],_0x15f3fa['UUKrU']),process[_0x563f7a(0x161)](0x1));_0x15f3fa[_0x563f7a(0x1d6)](sendInstrumentationEvent,_0x1cd4b2,_0x15f3fa[_0x563f7a(0x199)],messageTypes[_0x563f7a(0x254)],null,null,_0x1cd4b2);const _0x3051c4=JSON[_0x563f7a(0x1c8)](fs[_0x563f7a(0x229)](_0x15f3fa[_0x563f7a(0x1c7)](getCredentialsPath)));global_registry[_0x563f7a(0x204)]=_0x3051c4[_0x563f7a(0x170)][_0x563f7a(0x1e2)],global_registry[_0x563f7a(0x1f8)]=_0x3051c4[_0x563f7a(0x170)][_0x563f7a(0x1eb)];const _0x45a052=WS_ENDPOINT['replace'](_0x15f3fa[_0x563f7a(0x1fc)],_0x3051c4[_0x563f7a(0x170)]['username'])[_0x563f7a(0x1d8)](_0x15f3fa[_0x563f7a(0x1fd)],_0x3051c4[_0x563f7a(0x170)][_0x563f7a(0x1eb)]),_0x9a6ff9={};_0x9a6ff9[_0x563f7a(0x1d9)]=ws,_0x9a6ff9[_0x563f7a(0x162)]=0x36ee80,_0xcce11f=new ReconnectingWebSocket(_0x45a052,[],_0x9a6ff9),global_registry['authHeader']=_0x15f3fa[_0x563f7a(0x164)](getAuthHeader,global_registry[_0x563f7a(0x204)],global_registry[_0x563f7a(0x1f8)]),await _0x15f3fa[_0x563f7a(0x164)](inputValidation,_0x1cd4b2,_0xcce11f),logger[_0x563f7a(0x1cd)](_0x563f7a(0x21b)+global_registry[_0x563f7a(0x1f3)]+_0x563f7a(0x178)+global_registry[_0x563f7a(0x16d)]);let _0x3e9c91=await _0x15f3fa[_0x563f7a(0x1d6)](getCloudProviderObjectWithOutInit,global_registry[_0x563f7a(0x1f3)],global_registry[_0x563f7a(0x17a)],_0x15f3fa[_0x563f7a(0x176)],_0xcce11f,webSocketUtils,_0x1cd4b2);const _0x1a2d7b=await _0x3e9c91[_0x563f7a(0x1b8)]();_0x15f3fa[_0x563f7a(0x180)](printResponse,_0x15f3fa[_0x563f7a(0x1f7)],_0x1a2d7b),_0x3e9c91=await _0x3e9c91['init']();let _0x4f3e07=![];try{_0x4f3e07=await _0x3e9c91[_0x563f7a(0x188)]();}catch(_0x2b6eac){const _0x3d6cc0=_0x15f3fa['khcrH'][_0x563f7a(0x1ff)]('|');let _0x261316=0x0;while(!![]){switch(_0x3d6cc0[_0x261316++]){case'0':_0x4f3e07=null;continue;case'1':_0x129951+='\x0a'+JSON[_0x563f7a(0x165)](_0x2b6eac[_0x563f7a(0x221)]);continue;case'2':logger['error'](_0x129951);continue;case'3':await _0x15f3fa[_0x563f7a(0x1e7)](reportToGalactusAndSendToEDS,_0x1cd4b2,_0xcce11f,_0x129951,messageTypes[_0x563f7a(0x24f)],_0x15f3fa['JlFgt'],_0x563f7a(0x1f6)+global_registry[_0x563f7a(0x1f3)],_0x15f3fa[_0x563f7a(0x179)]);continue;case'4':_0x129951='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x563f7a(0x17a)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry['clusterRegion']+_0x563f7a(0x1ec)+_0x2b6eac;continue;}break;}}_0x4f3e07&&logger[_0x563f7a(0x1cd)]('Cluster\x20`'+global_registry[_0x563f7a(0x17a)]+_0x563f7a(0x1c9));const _0x5c299d=await _0x3e9c91[_0x563f7a(0x23e)]();_0x15f3fa[_0x563f7a(0x164)](printResponse,_0x15f3fa['CGfSD'],_0x5c299d);const _0x2a47e9=await _0x15f3fa[_0x563f7a(0x223)](curlRequest);_0x15f3fa[_0x563f7a(0x164)](printResponse,_0x15f3fa['NqzoR'],_0x2a47e9);const _0x2efb20=await _0x15f3fa[_0x563f7a(0x23c)](isTlsSupported,_0x15f3fa[_0x563f7a(0x218)]);_0x15f3fa[_0x563f7a(0x220)](printResponse,_0x15f3fa[_0x563f7a(0x232)],_0x2efb20);const _0x38be7d={};_0x38be7d[_0x563f7a(0x250)]=_0x15f3fa['XZuFV'],_0x38be7d['response']=_0x1a2d7b;const _0x3f67ea={};_0x3f67ea[_0x563f7a(0x250)]=_0x15f3fa[_0x563f7a(0x1af)],_0x3f67ea[_0x563f7a(0x1cf)]=_0x5c299d;const _0x151640={};_0x151640[_0x563f7a(0x250)]=_0x15f3fa[_0x563f7a(0x241)],_0x151640[_0x563f7a(0x1cf)]=_0x2a47e9;const _0x25298a={};_0x25298a[_0x563f7a(0x250)]=_0x15f3fa[_0x563f7a(0x21f)],_0x25298a['response']=_0x2efb20;const _0x223b70=[_0x38be7d,_0x3f67ea,_0x151640,_0x25298a],_0x11544d=await _0x15f3fa[_0x563f7a(0x239)](generateReport,_0x223b70,_0x4f3e07),_0x536314=new Date(),_0xf2db8=_0x536314['getUTCFullYear']()+'_'+_0x15f3fa[_0x563f7a(0x1c6)](_0x536314[_0x563f7a(0x17f)](),0x1)+'_'+_0x536314[_0x563f7a(0x225)]()+'_'+_0x536314[_0x563f7a(0x1b4)]()+'_'+_0x536314[_0x563f7a(0x1a6)](),_0x21960a=_0x563f7a(0x196)+_0xf2db8+_0x563f7a(0x16e);fs['writeFileSync'](_0x21960a,_0x11544d,_0x15f3fa[_0x563f7a(0x1f9)]),logger['info'](_0x563f7a(0x1c2)+_0x21960a),process[_0x563f7a(0x161)](0x0);}catch(_0x45c6f8){let _0x16a95d=_0x563f7a(0x20e)+_0x45c6f8+'\x20';logger[_0x563f7a(0x215)](_0x16a95d),_0x16a95d+='\x0a'+JSON['stringify'](_0x45c6f8[_0x563f7a(0x221)]),logger[_0x563f7a(0x189)](_0x563f7a(0x16a)+_0x45c6f8[_0x563f7a(0x221)]);if(_0xcce11f){const _0xa6439e={};_0xa6439e[_0x563f7a(0x1d7)]=WS_EVENTS[_0x563f7a(0x18b)],_0xa6439e[_0x563f7a(0x206)]=_0x16a95d,webSocketUtils[_0x563f7a(0x205)](_0xcce11f,_0xa6439e,_0x15f3fa[_0x563f7a(0x179)],!![]);}await webSocketUtils[_0x563f7a(0x194)](0x7d0);const _0x35adb8={};_0x35adb8[_0x563f7a(0x215)]=_0x16a95d,await _0x15f3fa[_0x563f7a(0x24d)](sendInstrumentationEvent,_0x1cd4b2,_0x15f3fa['JlFgt'],messageTypes[_0x563f7a(0x24f)],_0x15f3fa['TObeQ'],_0x35adb8,_0x1cd4b2),process[_0x563f7a(0x161)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x24be34=a18_0x378e;(function(_0x253b5d,_0xda1f6f){const _0x11a080=a18_0x378e,_0x13178e=_0x253b5d();while(!![]){try{const _0x3ad459=parseInt(_0x11a080(0x127))/0x1+-parseInt(_0x11a080(0x124))/0x2*(-parseInt(_0x11a080(0x11a))/0x3)+parseInt(_0x11a080(0x118))/0x4+-parseInt(_0x11a080(0x11c))/0x5*(parseInt(_0x11a080(0x122))/0x6)+-parseInt(_0x11a080(0x11f))/0x7+parseInt(_0x11a080(0x123))/0x8+-parseInt(_0x11a080(0x119))/0x9*(parseInt(_0x11a080(0x125))/0xa);if(_0x3ad459===_0xda1f6f)break;else _0x13178e['push'](_0x13178e['shift']());}catch(_0x3f8db7){_0x13178e['push'](_0x13178e['shift']());}}}(a18_0x7a35,0x30252));function a18_0x378e(_0x299d7c,_0x219783){const _0x7a35fa=a18_0x7a35();return a18_0x378e=function(_0x378e23,_0x4d9ff1){_0x378e23=_0x378e23-0x117;let _0x278801=_0x7a35fa[_0x378e23];return _0x278801;},a18_0x378e(_0x299d7c,_0x219783);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x24be34(0x11b),exports[a18_0x24be34(0x12a)]=a18_0x24be34(0x121),exports[a18_0x24be34(0x11e)]=function(_0x1675db){const _0x18584a=a18_0x24be34,_0xef1f4e={};_0xef1f4e['Ovmrf']='start_commands',_0xef1f4e[_0x18584a(0x126)]=_0x18584a(0x117);const _0x337b62=_0xef1f4e;return _0x1675db[_0x18584a(0x12b)](HELP_HEADER_MESSAGE[_0x18584a(0x11b)])[_0x18584a(0x11d)](HELP_FOOTER_MESSAGE)['commandDir'](_0x337b62[_0x18584a(0x128)])['demandCommand']()[_0x18584a(0x129)]()[_0x18584a(0x120)]()['help'](_0x337b62[_0x18584a(0x126)]);},exports['handler']=function(_0x48534c){};function a18_0x7a35(){const _0x2dc8b8=['Start\x20an\x20existing\x20Automation\x20grid.','1411218mJcemR','2138536HjJkOW','478YgnWMD','751780fpWNUv','XhPDS','46483zaVwVn','Ovmrf','recommendCommands','desc','usage','help','1465272PkJKCH','36xcdXmZ','2022VlApRu','start','5QzTmIV','epilogue','builder','756609KAmTbe','strict'];a18_0x7a35=function(){return _0x2dc8b8;};return a18_0x7a35();}
1
+ const a18_0x40e3be=a18_0x2e4a;function a18_0x2e4a(_0x608fe1,_0xa62cbb){const _0x380d7d=a18_0x380d();return a18_0x2e4a=function(_0x2e4a7,_0x4f9dd8){_0x2e4a7=_0x2e4a7-0x16c;let _0x5de8f4=_0x380d7d[_0x2e4a7];return _0x5de8f4;},a18_0x2e4a(_0x608fe1,_0xa62cbb);}(function(_0x46ecd3,_0x53903d){const _0x28ddfb=a18_0x2e4a,_0x160482=_0x46ecd3();while(!![]){try{const _0x187431=-parseInt(_0x28ddfb(0x179))/0x1+-parseInt(_0x28ddfb(0x17e))/0x2+-parseInt(_0x28ddfb(0x176))/0x3+parseInt(_0x28ddfb(0x177))/0x4+parseInt(_0x28ddfb(0x16d))/0x5+-parseInt(_0x28ddfb(0x182))/0x6*(parseInt(_0x28ddfb(0x174))/0x7)+-parseInt(_0x28ddfb(0x171))/0x8*(-parseInt(_0x28ddfb(0x17c))/0x9);if(_0x187431===_0x53903d)break;else _0x160482['push'](_0x160482['shift']());}catch(_0x1e5ee0){_0x160482['push'](_0x160482['shift']());}}}(a18_0x380d,0x26e5a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x40e3be(0x16c));function a18_0x380d(){const _0x4c7189=['../config/constants','366485pzGAkN','strict','epilogue','Start\x20an\x20existing\x20Automation\x20grid.','177056AGUzsX','start','help','702317GOJobo','usage','371538XmBhtS','1225756xjVDGy','commandDir','34638RBpGcM','demandCommand','recommendCommands','90zrgtSo','handler','365838xOAdel','builder','start_commands','FEDfu','6zyIqHu'];a18_0x380d=function(){return _0x4c7189;};return a18_0x380d();}exports['command']=a18_0x40e3be(0x172),exports['desc']=a18_0x40e3be(0x170),exports[a18_0x40e3be(0x17f)]=function(_0x215d14){const _0x4d020e=a18_0x40e3be,_0x2503ec={};_0x2503ec[_0x4d020e(0x181)]=_0x4d020e(0x180),_0x2503ec['uwkSo']=_0x4d020e(0x173);const _0xb3a78=_0x2503ec;return _0x215d14[_0x4d020e(0x175)](HELP_HEADER_MESSAGE[_0x4d020e(0x172)])[_0x4d020e(0x16f)](HELP_FOOTER_MESSAGE)[_0x4d020e(0x178)](_0xb3a78[_0x4d020e(0x181)])[_0x4d020e(0x17a)]()[_0x4d020e(0x17b)]()[_0x4d020e(0x16e)]()['help'](_0xb3a78['uwkSo']);},exports[a18_0x40e3be(0x17d)]=function(_0x1313d5){};
@@ -1 +1 @@
1
- const a19_0xbb89e2=a19_0x4d80;(function(_0x213bad,_0x22b01a){const _0x32875f=a19_0x4d80,_0x5b102d=_0x213bad();while(!![]){try{const _0xaf919d=-parseInt(_0x32875f(0x193))/0x1*(parseInt(_0x32875f(0x182))/0x2)+parseInt(_0x32875f(0x1aa))/0x3*(parseInt(_0x32875f(0x164))/0x4)+parseInt(_0x32875f(0x18a))/0x5+-parseInt(_0x32875f(0x174))/0x6*(-parseInt(_0x32875f(0x191))/0x7)+-parseInt(_0x32875f(0x18b))/0x8*(parseInt(_0x32875f(0x17a))/0x9)+parseInt(_0x32875f(0x190))/0xa+-parseInt(_0x32875f(0x17c))/0xb;if(_0xaf919d===_0x22b01a)break;else _0x5b102d['push'](_0x5b102d['shift']());}catch(_0x3fda73){_0x5b102d['push'](_0x5b102d['shift']());}}}(a19_0x5a6c,0x226a0));function a19_0x4d80(_0x37f645,_0x1148ac){const _0x5a6caf=a19_0x5a6c();return a19_0x4d80=function(_0x4d800b,_0x1a1987){_0x4d800b=_0x4d800b-0x160;let _0x1b2784=_0x5a6caf[_0x4d800b];return _0x1b2784;},a19_0x4d80(_0x37f645,_0x1148ac);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0xbb89e2(0x1b3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0xbb89e2(0x16a)),{logger}=require(a19_0xbb89e2(0x183)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0xbb89e2(0x1af)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0xbb89e2(0x161)),{createK8sClient}=require(a19_0xbb89e2(0x197)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x5a6c(){const _0x5e1411=['../../utils/createk8sClient','clusterName','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Browserstack','error','replace','DiTlf','KYzIg','Adding\x20Websocket\x20listeners','readFileSync','builder','debug','hKPnx','region','gsxof','tHhSu','name','exit','ABDdG','15JNaYpg','RANSl','unauthorised','addListeners','skip-tls-cert-verify','../../utils/gridComponents','sMPWx','username','GPDxR','reconnecting-websocket','start-grid-called','password','MvYMV','xUqEB','message','options','bstackUsername','command','parse','description','boolean','BfaIZ','../../utils/webSocketUtils','gridId','Skip\x20insecure\x20cert\x20verification.','161780JfPAfv','TSIyl','stack','Uhpez','string','Start\x20an\x20existing\x20Automation\x20grid.','../../config/constants','server-error','clusterRegion','statusCode','Zwwam','ignjj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','hwkNt','JXqpV','user','318tJNcaZ','info','desc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','start','skipTlsCertVerify','965268UvluVx','prIUw','570966LZjNLv','init-not-called','type','<PasswordPlaceholder>','Grid\x20started','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','44nyghWt','../../config/logger','bstackAccesskey','grid','ERROR','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','INFO','cyviq','1009260JoOnNj','8bITFrq','help','existsSync','argv','cloudProvider','1161320HSmoEl','4207KncPIo','usage','11452dUHKLD','invalid-grid-id','ElyKp','stringify'];a19_0x5a6c=function(){return _0x5e1411;};return a19_0x5a6c();}exports[a19_0xbb89e2(0x1bb)]=a19_0xbb89e2(0x185),exports[a19_0xbb89e2(0x176)]=a19_0xbb89e2(0x169),exports[a19_0xbb89e2(0x1a1)]=function(_0x995692){const _0x2c94b9=a19_0xbb89e2,_0x4b1e4a={};_0x4b1e4a[_0x2c94b9(0x1a3)]=_0x2c94b9(0x177),_0x4b1e4a[_0x2c94b9(0x167)]=_0x2c94b9(0x168),_0x4b1e4a[_0x2c94b9(0x1a6)]=_0x2c94b9(0x163),_0x4b1e4a['RANSl']=_0x2c94b9(0x1be),_0x4b1e4a[_0x2c94b9(0x19d)]=_0x2c94b9(0x18c);const _0x3ddcb6=_0x4b1e4a,_0xc11ef={};_0xc11ef[_0x2c94b9(0x1bd)]=_0x3ddcb6[_0x2c94b9(0x1a3)],_0xc11ef['type']=_0x3ddcb6['Uhpez'];const _0xd5b53f={};_0xd5b53f[_0x2c94b9(0x1bd)]=_0x3ddcb6[_0x2c94b9(0x1a6)],_0xd5b53f[_0x2c94b9(0x17e)]=_0x3ddcb6[_0x2c94b9(0x1ab)],_0xd5b53f['default']=![];const _0x15e045={};return _0x15e045['grid-id']=_0xc11ef,_0x15e045[_0x2c94b9(0x1ae)]=_0xd5b53f,_0x995692[_0x2c94b9(0x192)](HELP_HEADER_MESSAGE[_0x2c94b9(0x178)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2c94b9(0x1b9)](_0x15e045)[_0x2c94b9(0x18c)](_0x3ddcb6[_0x2c94b9(0x19d)])[_0x2c94b9(0x18e)];},exports['handler']=async function(_0x481a3c){const _0x7545b2=a19_0xbb89e2,_0x1ec28e={'jDtsw':_0x7545b2(0x199),'GPDxR':function(_0x38b329){return _0x38b329();},'BfaIZ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','prIUw':function(_0x12521e,_0x21aa93,_0xb48ce9,_0x7623c3,_0x2ad499,_0x492bb7,_0x20e148){return _0x12521e(_0x21aa93,_0xb48ce9,_0x7623c3,_0x2ad499,_0x492bb7,_0x20e148);},'TSIyl':_0x7545b2(0x1b4),'Zwwam':_0x7545b2(0x17d),'MvYMV':function(_0x393062){return _0x393062();},'ignjj':'<UsernamePlaceholder>','sMPWx':_0x7545b2(0x17f),'grVlH':_0x7545b2(0x19f),'gsxof':function(_0xe7ef7b,_0x583021,_0x263036,_0x50fe9c){return _0xe7ef7b(_0x583021,_0x263036,_0x50fe9c);},'ElyKp':function(_0x4aa36a,_0x48c460,_0x3cf4d7){return _0x4aa36a(_0x48c460,_0x3cf4d7);},'JXqpV':_0x7545b2(0x180),'cyviq':function(_0x54877d,_0x271838){return _0x54877d===_0x271838;},'xUqEB':_0x7545b2(0x181),'hwkNt':function(_0x3b8008,_0x32d7b1,_0x267a33,_0x1feea2,_0x38f8d3,_0x92b443,_0x154376){return _0x3b8008(_0x32d7b1,_0x267a33,_0x1feea2,_0x38f8d3,_0x92b443,_0x154376);},'KYzIg':_0x7545b2(0x1ac),'vtfjO':function(_0x2eb626,_0x5079cb){return _0x2eb626===_0x5079cb;},'LOpjb':_0x7545b2(0x194),'ABDdG':_0x7545b2(0x16b)};let _0x341777;try{!_0x481a3c[_0x7545b2(0x162)]&&(logger[_0x7545b2(0x19b)](_0x1ec28e['jDtsw']),process[_0x7545b2(0x1a8)](0x1));!fs[_0x7545b2(0x18d)](_0x1ec28e[_0x7545b2(0x1b2)](getCredentialsPath))&&(logger['error'](_0x1ec28e[_0x7545b2(0x160)]),await _0x1ec28e[_0x7545b2(0x17b)](sendInstrumentationEvent,_0x481a3c,_0x1ec28e[_0x7545b2(0x165)],messageTypes['ERROR'],_0x1ec28e[_0x7545b2(0x16e)],null,_0x481a3c),process[_0x7545b2(0x1a8)](0x1));logger[_0x7545b2(0x175)]('Starting\x20grid\x20'+_0x481a3c['gridId']),await _0x1ec28e[_0x7545b2(0x17b)](sendInstrumentationEvent,_0x481a3c,_0x1ec28e['TSIyl'],messageTypes[_0x7545b2(0x188)],null,null,_0x481a3c);const _0x280427=JSON[_0x7545b2(0x1bc)](fs[_0x7545b2(0x1a0)](_0x1ec28e[_0x7545b2(0x1b6)](getCredentialsPath)));global_registry[_0x7545b2(0x1ba)]=_0x280427['Browserstack'][_0x7545b2(0x1b1)],global_registry[_0x7545b2(0x184)]=_0x280427[_0x7545b2(0x19a)][_0x7545b2(0x1b5)];const _0x428172=WS_ENDPOINT[_0x7545b2(0x19c)](_0x1ec28e[_0x7545b2(0x16f)],_0x280427['Browserstack']['username'])[_0x7545b2(0x19c)](_0x1ec28e[_0x7545b2(0x1b0)],_0x280427[_0x7545b2(0x19a)]['password']),_0x5f9862={};_0x5f9862['WebSocket']=ws,_0x5f9862['connectionTimeout']=0x36ee80,_0x341777=new ReconnectingWebSocket(_0x428172,[],_0x5f9862),logger[_0x7545b2(0x1a2)](_0x1ec28e['grVlH']),webSocketUtils[_0x7545b2(0x1ad)](_0x341777,_0x481a3c[_0x7545b2(0x173)],_0x481a3c['password']);const [_0x397e6,_0x422011]=await _0x1ec28e[_0x7545b2(0x1a5)](getGridDetails,_0x280427[_0x7545b2(0x19a)]['username'],_0x280427[_0x7545b2(0x19a)][_0x7545b2(0x1b5)],_0x481a3c['gridId']);if(_0x422011){const _0x3aace2=_0x422011[_0x7545b2(0x175)];global_registry[_0x7545b2(0x18f)]=_0x3aace2[_0x7545b2(0x18f)],global_registry[_0x7545b2(0x16c)]=_0x3aace2[_0x7545b2(0x1a4)],global_registry[_0x7545b2(0x198)]=_0x3aace2[_0x7545b2(0x198)];const _0x4e5959=await _0x1ec28e[_0x7545b2(0x17b)](getCloudProviderObject,_0x3aace2[_0x7545b2(0x18f)],_0x3aace2[_0x7545b2(0x198)],_0x3aace2[_0x7545b2(0x1a7)],_0x341777,webSocketUtils,_0x481a3c),[_0x128953,_0xc95186,_0x1e83a8,_0x233f4f,_0x433525,_0x8b41a7]=await _0x1ec28e[_0x7545b2(0x195)](createK8sClient,_0x4e5959,_0x481a3c[_0x7545b2(0x179)]);await _0x1ec28e['ElyKp'](scaleUpHubDeployment,_0xc95186,_0x3aace2['name']),logger[_0x7545b2(0x175)](_0x1ec28e[_0x7545b2(0x172)]),process[_0x7545b2(0x1a8)](0x0);}_0x1ec28e[_0x7545b2(0x189)](_0x397e6[_0x7545b2(0x16d)],0x191)&&(logger['error'](_0x1ec28e[_0x7545b2(0x1b7)]),await _0x1ec28e[_0x7545b2(0x171)](sendInstrumentationEvent,_0x481a3c,_0x1ec28e[_0x7545b2(0x165)],messageTypes['ERROR'],_0x1ec28e[_0x7545b2(0x19e)],null,_0x481a3c),process[_0x7545b2(0x1a8)](0x1)),_0x1ec28e['vtfjO'](_0x397e6['statusCode'],0x190)&&(logger[_0x7545b2(0x19b)](JSON[_0x7545b2(0x1bc)](_0x397e6['body'])[_0x7545b2(0x1b8)]),await _0x1ec28e[_0x7545b2(0x171)](sendInstrumentationEvent,_0x481a3c,_0x1ec28e[_0x7545b2(0x165)],messageTypes[_0x7545b2(0x186)],_0x1ec28e['LOpjb'],null,_0x481a3c),process[_0x7545b2(0x1a8)](0x1)),logger[_0x7545b2(0x19b)](_0x7545b2(0x170)+JSON[_0x7545b2(0x196)](_0x397e6)),await _0x1ec28e[_0x7545b2(0x17b)](sendInstrumentationEvent,_0x481a3c,_0x1ec28e[_0x7545b2(0x165)],messageTypes[_0x7545b2(0x186)],_0x1ec28e[_0x7545b2(0x1a9)],_0x397e6,_0x481a3c),process['exit'](0x1);}catch(_0x1afd29){const _0x21302a=_0x7545b2(0x187)+_0x1afd29+'\x20\x0a'+JSON['stringify'](_0x1afd29[_0x7545b2(0x166)])+'\x20';logger['error'](_0x21302a),process[_0x7545b2(0x1a8)](0x1);}};
1
+ function a19_0x37e1(_0x56b8bd,_0x13d3e7){const _0x2d0f2d=a19_0x2d0f();return a19_0x37e1=function(_0x37e1d2,_0x2506dc){_0x37e1d2=_0x37e1d2-0x8a;let _0x175bd9=_0x2d0f2d[_0x37e1d2];return _0x175bd9;},a19_0x37e1(_0x56b8bd,_0x13d3e7);}const a19_0x23615c=a19_0x37e1;(function(_0x432eee,_0x8aabf){const _0x108323=a19_0x37e1,_0x1d4b9c=_0x432eee();while(!![]){try{const _0xaab3d5=-parseInt(_0x108323(0xe0))/0x1+parseInt(_0x108323(0xc0))/0x2+-parseInt(_0x108323(0x8f))/0x3*(parseInt(_0x108323(0xe5))/0x4)+parseInt(_0x108323(0xb6))/0x5+parseInt(_0x108323(0xde))/0x6*(-parseInt(_0x108323(0x90))/0x7)+-parseInt(_0x108323(0xc9))/0x8+parseInt(_0x108323(0xe1))/0x9;if(_0xaab3d5===_0x8aabf)break;else _0x1d4b9c['push'](_0x1d4b9c['shift']());}catch(_0x2ec084){_0x1d4b9c['push'](_0x1d4b9c['shift']());}}}(a19_0x2d0f,0x3445e));function a19_0x2d0f(){const _0x49b6b0=['options','aBlkx','region','3341312NClfIv','desc','fUrEq','Start\x20an\x20existing\x20Automation\x20grid.','hgwnO','skip-tls-cert-verify','statusCode','bstackAccesskey','../../utils/webSocketUtils','body','BjTsK','../../utils/utilityMethods','<PasswordPlaceholder>','../../cloudproviders/utils','fcFyJ','boolean','UdKOb','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','existsSync','cloudProvider','kqGgv','6054GQLBID','../../config/constants','100925lmLmhG','6056253WnLXJW','clusterRegion','jkYZZ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','124calLIB','builder','fhcRB','WyTsE','description','Starting\x20grid\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','BmMEx','Browserstack','10593cCVMOj','343XnIXYc','username','string','Grid\x20started','message','grid-id','readFileSync','XcGSv','BWzjf','grid','Skip\x20insecure\x20cert\x20verification.','RaYaU','KbhIS','waUBX','addListeners','epilogue','error','GDPld','info','exit','password','Adding\x20Websocket\x20listeners','init-not-called','SHMol','<UsernamePlaceholder>','ERROR','argv','server-error','stringify','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','OVrEC','connectionTimeout','bstackUsername','qdmMy','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','unauthorised','help','miguT','967780sEtMpW','ZMkno','IvuFq','dgyBq','start-grid-called','clusterName','../../utils/gridComponents','parse','gridId','invalid-grid-id','50256tKjJUj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','name','../../config/logger','INFO','type'];a19_0x2d0f=function(){return _0x49b6b0;};return a19_0x2d0f();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x23615c(0xdf)),{logger}=require(a19_0x23615c(0xc3)),{getCredentialsPath,getGridDetails}=require(a19_0x23615c(0xd4)),{scaleUpHubDeployment}=require(a19_0x23615c(0xbc)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x23615c(0xd1)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x23615c(0xd6));exports['command']=a19_0x23615c(0x99),exports[a19_0x23615c(0xca)]=a19_0x23615c(0xcc),exports[a19_0x23615c(0xe6)]=function(_0xdeff68){const _0x1f8738=a19_0x23615c,_0x50b0d9={};_0x50b0d9[_0x1f8738(0x9d)]=_0x1f8738(0xb2),_0x50b0d9[_0x1f8738(0xb8)]=_0x1f8738(0x92),_0x50b0d9[_0x1f8738(0x8d)]=_0x1f8738(0x9a),_0x50b0d9[_0x1f8738(0xe7)]=_0x1f8738(0xd8),_0x50b0d9['KbhIS']='help';const _0x1b0930=_0x50b0d9,_0x1b8bea={};_0x1b8bea[_0x1f8738(0x8a)]=_0x1b0930['waUBX'],_0x1b8bea[_0x1f8738(0xc5)]=_0x1b0930[_0x1f8738(0xb8)];const _0x309aed={};_0x309aed[_0x1f8738(0x8a)]=_0x1b0930['BmMEx'],_0x309aed['type']=_0x1b0930['fhcRB'],_0x309aed['default']=![];const _0xe6c806={};return _0xe6c806[_0x1f8738(0x95)]=_0x1b8bea,_0xe6c806[_0x1f8738(0xce)]=_0x309aed,_0xdeff68['usage'](HELP_HEADER_MESSAGE['start'])[_0x1f8738(0x9f)](HELP_FOOTER_MESSAGE)[_0x1f8738(0xc6)](_0xe6c806)[_0x1f8738(0xb4)](_0x1b0930[_0x1f8738(0x9c)])[_0x1f8738(0xaa)];},exports['handler']=async function(_0x4ce4d0){const _0x22f3f8=a19_0x23615c,_0x262c47={'qZNBq':_0x22f3f8(0xda),'ZMkno':function(_0x2f3cd7){return _0x2f3cd7();},'WyTsE':_0x22f3f8(0xc1),'cFvOp':function(_0x15f761,_0x54661c,_0x5d7dab,_0x36a3f0,_0x1212ff,_0x11cbee,_0xa8e0e0){return _0x15f761(_0x54661c,_0x5d7dab,_0x36a3f0,_0x1212ff,_0x11cbee,_0xa8e0e0);},'RaYaU':_0x22f3f8(0xba),'XcGSv':_0x22f3f8(0xa6),'kqGgv':_0x22f3f8(0xa8),'BjTsK':_0x22f3f8(0xd5),'miguT':_0x22f3f8(0xa5),'jkYZZ':function(_0x47ef41,_0x24b6ed,_0x5871ec,_0x28b952){return _0x47ef41(_0x24b6ed,_0x5871ec,_0x28b952);},'GDPld':function(_0x1890b3,_0x4f0ec7,_0x52bac4,_0xc17b67,_0x3459d3,_0x45e8b3,_0x2ab7d2){return _0x1890b3(_0x4f0ec7,_0x52bac4,_0xc17b67,_0x3459d3,_0x45e8b3,_0x2ab7d2);},'qdmMy':function(_0x53974,_0x53a0f4,_0xa9419b){return _0x53974(_0x53a0f4,_0xa9419b);},'OVrEC':function(_0x415b9c,_0x273d90,_0x5afa38){return _0x415b9c(_0x273d90,_0x5afa38);},'aBlkx':_0x22f3f8(0x93),'BWzjf':function(_0x5a1bb5,_0x21568b){return _0x5a1bb5===_0x21568b;},'UdKOb':_0x22f3f8(0xe4),'dgyBq':_0x22f3f8(0xb3),'hgwnO':function(_0x3ba2a9,_0x5da355){return _0x3ba2a9===_0x5da355;},'SHMol':function(_0x486196,_0x5ac689,_0x4f1516,_0x244f4c,_0x40b29b,_0x4d0fbe,_0x7a096a){return _0x486196(_0x5ac689,_0x4f1516,_0x244f4c,_0x40b29b,_0x4d0fbe,_0x7a096a);},'RPNMP':_0x22f3f8(0xbf),'fUrEq':function(_0x239ad9,_0xcc2778,_0x5d7f2d,_0x353a20,_0x3acf2c,_0x220c8f,_0x2215d1){return _0x239ad9(_0xcc2778,_0x5d7f2d,_0x353a20,_0x3acf2c,_0x220c8f,_0x2215d1);},'fcFyJ':_0x22f3f8(0xab)};let _0x335ea1;try{!_0x4ce4d0[_0x22f3f8(0xbe)]&&(logger['error'](_0x262c47['qZNBq']),process['exit'](0x1));!fs[_0x22f3f8(0xdb)](_0x262c47['ZMkno'](getCredentialsPath))&&(logger[_0x22f3f8(0xa0)](_0x262c47[_0x22f3f8(0xe8)]),await _0x262c47['cFvOp'](sendInstrumentationEvent,_0x4ce4d0,_0x262c47[_0x22f3f8(0x9b)],messageTypes[_0x22f3f8(0xa9)],_0x262c47[_0x22f3f8(0x97)],null,_0x4ce4d0),process[_0x22f3f8(0xa3)](0x1));logger[_0x22f3f8(0xa2)](_0x22f3f8(0x8b)+_0x4ce4d0[_0x22f3f8(0xbe)]),await _0x262c47['cFvOp'](sendInstrumentationEvent,_0x4ce4d0,_0x262c47[_0x22f3f8(0x9b)],messageTypes[_0x22f3f8(0xc4)],null,null,_0x4ce4d0);const _0x3d3ad4=JSON[_0x22f3f8(0xbd)](fs[_0x22f3f8(0x96)](_0x262c47[_0x22f3f8(0xb7)](getCredentialsPath)));global_registry[_0x22f3f8(0xb0)]=_0x3d3ad4['Browserstack']['username'],global_registry[_0x22f3f8(0xd0)]=_0x3d3ad4[_0x22f3f8(0x8e)][_0x22f3f8(0xa4)];const _0x33b170=WS_ENDPOINT['replace'](_0x262c47[_0x22f3f8(0xdd)],_0x3d3ad4['Browserstack'][_0x22f3f8(0x91)])['replace'](_0x262c47[_0x22f3f8(0xd3)],_0x3d3ad4[_0x22f3f8(0x8e)][_0x22f3f8(0xa4)]),_0x5d3db2={};_0x5d3db2['WebSocket']=ws,_0x5d3db2[_0x22f3f8(0xaf)]=0x36ee80,_0x335ea1=new ReconnectingWebSocket(_0x33b170,[],_0x5d3db2),logger['debug'](_0x262c47[_0x22f3f8(0xb5)]),webSocketUtils[_0x22f3f8(0x9e)](_0x335ea1,_0x4ce4d0['user'],_0x4ce4d0[_0x22f3f8(0xa4)]);const [_0x49b939,_0x205d24]=await _0x262c47[_0x22f3f8(0xe3)](getGridDetails,_0x3d3ad4[_0x22f3f8(0x8e)][_0x22f3f8(0x91)],_0x3d3ad4[_0x22f3f8(0x8e)][_0x22f3f8(0xa4)],_0x4ce4d0['gridId']);if(_0x205d24){const _0x427b45=_0x205d24[_0x22f3f8(0xa2)];global_registry['cloudProvider']=_0x427b45[_0x22f3f8(0xdc)],global_registry[_0x22f3f8(0xe2)]=_0x427b45[_0x22f3f8(0xc8)],global_registry[_0x22f3f8(0xbb)]=_0x427b45[_0x22f3f8(0xbb)];const _0x2fa087=await _0x262c47['GDPld'](getCloudProviderObject,_0x427b45[_0x22f3f8(0xdc)],_0x427b45[_0x22f3f8(0xbb)],_0x427b45['name'],_0x335ea1,webSocketUtils,_0x4ce4d0),[_0x25cddd,_0x5c2bc5,_0x24f24c,_0x1d3f3f,_0x3321be,_0x4f6046]=await _0x262c47[_0x22f3f8(0xb1)](createK8sClient,_0x2fa087,_0x4ce4d0['skipTlsCertVerify']);await _0x262c47[_0x22f3f8(0xae)](scaleUpHubDeployment,_0x5c2bc5,_0x427b45[_0x22f3f8(0xc2)]),logger[_0x22f3f8(0xa2)](_0x262c47[_0x22f3f8(0xc7)]),process[_0x22f3f8(0xa3)](0x0);}_0x262c47[_0x22f3f8(0x98)](_0x49b939[_0x22f3f8(0xcf)],0x191)&&(logger[_0x22f3f8(0xa0)](_0x262c47[_0x22f3f8(0xd9)]),await _0x262c47[_0x22f3f8(0xa1)](sendInstrumentationEvent,_0x4ce4d0,_0x262c47[_0x22f3f8(0x9b)],messageTypes[_0x22f3f8(0xa9)],_0x262c47[_0x22f3f8(0xb9)],null,_0x4ce4d0),process[_0x22f3f8(0xa3)](0x1)),_0x262c47[_0x22f3f8(0xcd)](_0x49b939[_0x22f3f8(0xcf)],0x190)&&(logger[_0x22f3f8(0xa0)](JSON[_0x22f3f8(0xbd)](_0x49b939[_0x22f3f8(0xd2)])[_0x22f3f8(0x94)]),await _0x262c47[_0x22f3f8(0xa7)](sendInstrumentationEvent,_0x4ce4d0,_0x262c47[_0x22f3f8(0x9b)],messageTypes[_0x22f3f8(0xa9)],_0x262c47['RPNMP'],null,_0x4ce4d0),process['exit'](0x1)),logger['error'](_0x22f3f8(0x8c)+JSON[_0x22f3f8(0xac)](_0x49b939)),await _0x262c47[_0x22f3f8(0xcb)](sendInstrumentationEvent,_0x4ce4d0,_0x262c47['RaYaU'],messageTypes[_0x22f3f8(0xa9)],_0x262c47[_0x22f3f8(0xd7)],_0x49b939,_0x4ce4d0),process[_0x22f3f8(0xa3)](0x1);}catch(_0x30a66b){const _0xefc027=_0x22f3f8(0xad)+_0x30a66b+'\x20\x0a'+JSON['stringify'](_0x30a66b['stack'])+'\x20';logger['error'](_0xefc027),process[_0x22f3f8(0xa3)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x3bcbc6=a20_0x1ad6;(function(_0x13cd3b,_0x28ab4b){const _0x61e99b=a20_0x1ad6,_0x2b9bf5=_0x13cd3b();while(!![]){try{const _0x1c8a62=parseInt(_0x61e99b(0x1a0))/0x1*(parseInt(_0x61e99b(0x1a2))/0x2)+parseInt(_0x61e99b(0x196))/0x3*(-parseInt(_0x61e99b(0x19a))/0x4)+parseInt(_0x61e99b(0x194))/0x5+parseInt(_0x61e99b(0x19e))/0x6+parseInt(_0x61e99b(0x1a9))/0x7*(parseInt(_0x61e99b(0x1ab))/0x8)+-parseInt(_0x61e99b(0x1a1))/0x9*(-parseInt(_0x61e99b(0x1a4))/0xa)+-parseInt(_0x61e99b(0x1a7))/0xb;if(_0x1c8a62===_0x28ab4b)break;else _0x2b9bf5['push'](_0x2b9bf5['shift']());}catch(_0x4dcf10){_0x2b9bf5['push'](_0x2b9bf5['shift']());}}}(a20_0x155b,0x76270));function a20_0x1ad6(_0x125b02,_0x5d41c6){const _0x155b44=a20_0x155b();return a20_0x1ad6=function(_0x1ad649,_0x3dde02){_0x1ad649=_0x1ad649-0x194;let _0x4b1a13=_0x155b44[_0x1ad649];return _0x4b1a13;},a20_0x1ad6(_0x125b02,_0x5d41c6);}function a20_0x155b(){const _0x3f7384=['199464LpJYTq','strict','desc','handler','20Zipmby','command','epilogue','stop_commands','3081570gIXLcF','help','3bYvQWO','324VcbLgE','198890eXRdVx','builder','165050hrdAtJ','usage','Stop\x20a\x20running\x20Automation\x20grid.','12653729wEjorV','WKshU','728iXpDVX','mwuHj','42192pgOjQg','demandCommand','60625blFiXr','commandDir'];a20_0x155b=function(){return _0x3f7384;};return a20_0x155b();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x3bcbc6(0x19b)]='stop',exports[a20_0x3bcbc6(0x198)]=a20_0x3bcbc6(0x1a6),exports[a20_0x3bcbc6(0x1a3)]=function(_0x5d94c8){const _0xff2090=a20_0x3bcbc6,_0x37e9b7={};_0x37e9b7['WKshU']=_0xff2090(0x19d),_0x37e9b7[_0xff2090(0x1aa)]=_0xff2090(0x19f);const _0x5c8567=_0x37e9b7;return _0x5d94c8[_0xff2090(0x1a5)](HELP_HEADER_MESSAGE['stop'])[_0xff2090(0x19c)](HELP_FOOTER_MESSAGE)[_0xff2090(0x195)](_0x5c8567[_0xff2090(0x1a8)])[_0xff2090(0x1ac)]()['recommendCommands']()[_0xff2090(0x197)]()['help'](_0x5c8567[_0xff2090(0x1aa)]);},exports[a20_0x3bcbc6(0x199)]=function(_0x2f2f06){};
1
+ const a20_0x25f4b4=a20_0x1d0b;(function(_0x1492c6,_0x315858){const _0x53fe69=a20_0x1d0b,_0x11f81f=_0x1492c6();while(!![]){try{const _0x3b69e1=-parseInt(_0x53fe69(0x174))/0x1+-parseInt(_0x53fe69(0x184))/0x2*(parseInt(_0x53fe69(0x176))/0x3)+-parseInt(_0x53fe69(0x16f))/0x4*(parseInt(_0x53fe69(0x17d))/0x5)+parseInt(_0x53fe69(0x178))/0x6*(-parseInt(_0x53fe69(0x16d))/0x7)+parseInt(_0x53fe69(0x17b))/0x8*(-parseInt(_0x53fe69(0x175))/0x9)+parseInt(_0x53fe69(0x180))/0xa*(-parseInt(_0x53fe69(0x17e))/0xb)+parseInt(_0x53fe69(0x17f))/0xc;if(_0x3b69e1===_0x315858)break;else _0x11f81f['push'](_0x11f81f['shift']());}catch(_0x4de20b){_0x11f81f['push'](_0x11f81f['shift']());}}}(a20_0x52c6,0x962a1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x25f4b4(0x179));function a20_0x1d0b(_0x4545a3,_0x570b68){const _0x52c6de=a20_0x52c6();return a20_0x1d0b=function(_0x1d0bf5,_0x5b86fa){_0x1d0bf5=_0x1d0bf5-0x16c;let _0xb3f0a=_0x52c6de[_0x1d0bf5];return _0xb3f0a;},a20_0x1d0b(_0x4545a3,_0x570b68);}function a20_0x52c6(){const _0x2342ba=['strict','164pPGxQV','commandDir','builder','stop_commands','help','79350HSfUch','9TXzbht','9SBtwBY','recommendCommands','619908CAJFrx','../config/constants','command','8453584pdwtAm','demandCommand','146375rCDXyE','2153305VCppFo','61142280YSskTc','10KIAUEd','KYJeo','LyZnh','usage','816542EUrmcs','stop','49xEoNJG'];a20_0x52c6=function(){return _0x2342ba;};return a20_0x52c6();}exports[a20_0x25f4b4(0x17a)]=a20_0x25f4b4(0x16c),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x25f4b4(0x171)]=function(_0x2ea535){const _0x47dd2a=a20_0x25f4b4,_0x4eab9f={};_0x4eab9f[_0x47dd2a(0x182)]=_0x47dd2a(0x172),_0x4eab9f[_0x47dd2a(0x181)]=_0x47dd2a(0x173);const _0x494fec=_0x4eab9f;return _0x2ea535[_0x47dd2a(0x183)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x47dd2a(0x170)](_0x494fec[_0x47dd2a(0x182)])[_0x47dd2a(0x17c)]()[_0x47dd2a(0x177)]()[_0x47dd2a(0x16e)]()[_0x47dd2a(0x173)](_0x494fec[_0x47dd2a(0x181)]);},exports['handler']=function(_0x85defa){};
@@ -1 +1 @@
1
- function a21_0x2fe7(){const _0x54cde1=['replace','Grid\x20stoppped.','mnBxG','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid-id','debug','sxxRu','VmeWA','BFdip','../../utils/gridComponents','CDBsG','argv','Adding\x20Websocket\x20listeners','ESfju','GpqaD','1283211anDgdA','command','builder','parse','stop','init-not-called','error','../../cloudproviders/utils','24zsyxJq','289702SIxfjd','NVXrb','djueC','reconnecting-websocket','5763942eigmEI','../../utils/createk8sClient','51946HuXtqD','Browserstack','invalid-grid-id','7gontTa','8362233mjtolQ','teOxI','name','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','../../config/logger','info','ERROR','qLBlc','stack','112ixRGjL','cloudProvider','clusterRegion','ZqNqY','username','grid','<PasswordPlaceholder>','eOnLf','Skip\x20insecure\x20cert\x20verification.','connectionTimeout','VUfuv','boolean','description','unauthorised','Stop\x20a\x20running\x20Automation\x20grid.','existsSync','xEXiO','1189197xKgAjy','../../utils/utilityMethods','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','VbDXW','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','skipTlsCertVerify','4mEwSZm','clusterName','../../config/constants','type','usage','WebSocket','EhmGJ','<UsernamePlaceholder>','stringify','bstackUsername','dHjKB','options','xvCLR','2727810dvMfar','server-error','password','epilogue','10NWPKDj','stop-grid-called','Stopping\x20grid\x20','exit','body','SWGnT'];a21_0x2fe7=function(){return _0x54cde1;};return a21_0x2fe7();}function a21_0x2279(_0x1d0ab4,_0x37e6d2){const _0x2fe766=a21_0x2fe7();return a21_0x2279=function(_0x227987,_0x2493f4){_0x227987=_0x227987-0xee;let _0x4e0a59=_0x2fe766[_0x227987];return _0x4e0a59;},a21_0x2279(_0x1d0ab4,_0x37e6d2);}const a21_0x46ca0b=a21_0x2279;(function(_0x5d8071,_0x35afde){const _0x50f44e=a21_0x2279,_0x93effa=_0x5d8071();while(!![]){try{const _0x47b1e9=parseInt(_0x50f44e(0x140))/0x1*(-parseInt(_0x50f44e(0x13d))/0x2)+-parseInt(_0x50f44e(0x101))/0x3*(-parseInt(_0x50f44e(0x108))/0x4)+parseInt(_0x50f44e(0x115))/0x5+parseInt(_0x50f44e(0x13b))/0x6+-parseInt(_0x50f44e(0x137))/0x7*(-parseInt(_0x50f44e(0xf0))/0x8)+-parseInt(_0x50f44e(0x12e))/0x9*(parseInt(_0x50f44e(0x119))/0xa)+parseInt(_0x50f44e(0x141))/0xb*(-parseInt(_0x50f44e(0x136))/0xc);if(_0x47b1e9===_0x35afde)break;else _0x93effa['push'](_0x93effa['shift']());}catch(_0x1b2e23){_0x93effa['push'](_0x93effa['shift']());}}}(a21_0x2fe7,0x9b92a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x46ca0b(0x13a)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x46ca0b(0x10a)),{logger}=require(a21_0x46ca0b(0x145)),{getCredentialsPath,getGridDetails}=require(a21_0x46ca0b(0x102)),{scaleDownHubDeployment}=require(a21_0x46ca0b(0x128)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x46ca0b(0x13c)),{getCloudProviderObject}=require(a21_0x46ca0b(0x135));exports[a21_0x46ca0b(0x12f)]=a21_0x46ca0b(0xf5),exports['desc']=a21_0x46ca0b(0xfe),exports[a21_0x46ca0b(0x130)]=function(_0x5125c6){const _0x1eb5fd=a21_0x46ca0b,_0x28fd36={};_0x28fd36['BFdip']=_0x1eb5fd(0x144),_0x28fd36[_0x1eb5fd(0x142)]='string',_0x28fd36[_0x1eb5fd(0x138)]=_0x1eb5fd(0xf8),_0x28fd36['SWGnT']=_0x1eb5fd(0xfb),_0x28fd36[_0x1eb5fd(0x112)]='help';const _0x11c95a=_0x28fd36,_0x4d449e={};_0x4d449e['description']=_0x11c95a[_0x1eb5fd(0x127)],_0x4d449e[_0x1eb5fd(0x10b)]=_0x11c95a[_0x1eb5fd(0x142)];const _0x5ba927={};_0x5ba927[_0x1eb5fd(0xfc)]=_0x11c95a['NVXrb'],_0x5ba927[_0x1eb5fd(0x10b)]=_0x11c95a[_0x1eb5fd(0x11e)],_0x5ba927['default']=![];const _0x5b9ebb={};return _0x5b9ebb[_0x1eb5fd(0x123)]=_0x4d449e,_0x5b9ebb['skip-tls-cert-verify']=_0x5ba927,_0x5125c6[_0x1eb5fd(0x10c)](HELP_HEADER_MESSAGE[_0x1eb5fd(0x132)])[_0x1eb5fd(0x118)](HELP_FOOTER_MESSAGE)[_0x1eb5fd(0x113)](_0x5b9ebb)[_0x1eb5fd(0x106)](_0x11c95a[_0x1eb5fd(0x112)])[_0x1eb5fd(0x12a)];},exports['handler']=async function(_0x2c5fdc){const _0x5ca339=a21_0x46ca0b,_0x5ebde5={'VUfuv':_0x5ca339(0x103),'qLBlc':function(_0x894e94){return _0x894e94();},'VbDXW':_0x5ca339(0x105),'xvCLR':function(_0x32c119,_0x5c9760,_0x8bf635,_0x3d87ec,_0x3dac6f,_0x211492,_0x39645c){return _0x32c119(_0x5c9760,_0x8bf635,_0x3d87ec,_0x3dac6f,_0x211492,_0x39645c);},'sxxRu':_0x5ca339(0x11a),'EhmGJ':_0x5ca339(0x133),'xEXiO':function(_0x1d0c70){return _0x1d0c70();},'djueC':_0x5ca339(0x10f),'VmeWA':_0x5ca339(0xf6),'gaXzT':_0x5ca339(0x12b),'Bjqiw':function(_0x2188c2,_0x4be81b,_0x54142b,_0x490883){return _0x2188c2(_0x4be81b,_0x54142b,_0x490883);},'ZqNqY':function(_0x85949d,_0x2296d9,_0x10bc0f){return _0x85949d(_0x2296d9,_0x10bc0f);},'eOnLf':_0x5ca339(0x120),'GpqaD':function(_0x5a2bac,_0x410a38){return _0x5a2bac===_0x410a38;},'CDBsG':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','mEVeM':_0x5ca339(0xfd),'WsQKz':function(_0x548b3f,_0x437b2b){return _0x548b3f===_0x437b2b;},'mnBxG':function(_0x30efcb,_0xd25020,_0x15cbfb,_0x6269d5,_0x53515e,_0x33151f,_0xffba59){return _0x30efcb(_0xd25020,_0x15cbfb,_0x6269d5,_0x53515e,_0x33151f,_0xffba59);},'hTyfz':_0x5ca339(0x13f),'ESfju':_0x5ca339(0x116)};let _0x2fd334;try{!_0x2c5fdc['gridId']&&(logger['error'](_0x5ebde5[_0x5ca339(0xfa)]),process['exit'](0x1));!fs[_0x5ca339(0xff)](_0x5ebde5[_0x5ca339(0xee)](getCredentialsPath))&&(logger['error'](_0x5ebde5[_0x5ca339(0x104)]),await _0x5ebde5[_0x5ca339(0x114)](sendInstrumentationEvent,_0x2c5fdc,_0x5ebde5['sxxRu'],messageTypes[_0x5ca339(0x147)],_0x5ebde5[_0x5ca339(0x10e)],null,_0x2c5fdc),process[_0x5ca339(0x11c)](0x1));logger['info'](_0x5ca339(0x11b)+_0x2c5fdc['gridId']),await _0x5ebde5[_0x5ca339(0x114)](sendInstrumentationEvent,_0x2c5fdc,_0x5ebde5[_0x5ca339(0x125)],messageTypes['INFO'],null,null,_0x2c5fdc);const _0x3e0adb=JSON[_0x5ca339(0x131)](fs['readFileSync'](_0x5ebde5[_0x5ca339(0x100)](getCredentialsPath)));global_registry[_0x5ca339(0x111)]=_0x3e0adb[_0x5ca339(0x13e)][_0x5ca339(0xf4)],global_registry['bstackAccesskey']=_0x3e0adb[_0x5ca339(0x13e)][_0x5ca339(0x117)];const _0x180b3b=WS_ENDPOINT[_0x5ca339(0x11f)](_0x5ebde5[_0x5ca339(0x139)],_0x3e0adb[_0x5ca339(0x13e)][_0x5ca339(0xf4)])[_0x5ca339(0x11f)](_0x5ebde5[_0x5ca339(0x126)],_0x3e0adb[_0x5ca339(0x13e)][_0x5ca339(0x117)]),_0x151004={};_0x151004[_0x5ca339(0x10d)]=ws,_0x151004[_0x5ca339(0xf9)]=0x36ee80,_0x2fd334=new ReconnectingWebSocket(_0x180b3b,[],_0x151004),logger[_0x5ca339(0x124)](_0x5ebde5['gaXzT']),webSocketUtils['addListeners'](_0x2fd334,_0x2c5fdc['user'],_0x2c5fdc[_0x5ca339(0x117)]);const [_0x2e464a,_0x16a433]=await _0x5ebde5['Bjqiw'](getGridDetails,_0x3e0adb[_0x5ca339(0x13e)][_0x5ca339(0xf4)],_0x3e0adb[_0x5ca339(0x13e)][_0x5ca339(0x117)],_0x2c5fdc['gridId']);if(_0x16a433){const _0x49f482=_0x16a433['info'];global_registry['cloudProvider']=_0x49f482[_0x5ca339(0xf1)],global_registry[_0x5ca339(0xf2)]=_0x49f482['region'],global_registry[_0x5ca339(0x109)]=_0x49f482[_0x5ca339(0x109)];const _0x5821a7=await _0x5ebde5[_0x5ca339(0x114)](getCloudProviderObject,_0x49f482[_0x5ca339(0xf1)],_0x49f482[_0x5ca339(0x109)],_0x49f482[_0x5ca339(0x143)],_0x2fd334,webSocketUtils,_0x2c5fdc),[_0x4b9382,_0x5b75b0,_0x4fd188,_0x3590e6,_0x1f2485,_0x403fd5]=await _0x5ebde5[_0x5ca339(0xf3)](createK8sClient,_0x5821a7,_0x2c5fdc[_0x5ca339(0x107)]);await _0x5ebde5['ZqNqY'](scaleDownHubDeployment,_0x5b75b0,_0x49f482[_0x5ca339(0x143)]),logger[_0x5ca339(0x146)](_0x5ebde5[_0x5ca339(0xf7)]),process[_0x5ca339(0x11c)](0x0);}_0x5ebde5[_0x5ca339(0x12d)](_0x2e464a['statusCode'],0x191)&&(logger[_0x5ca339(0x134)](_0x5ebde5[_0x5ca339(0x129)]),await _0x5ebde5[_0x5ca339(0x114)](sendInstrumentationEvent,_0x2c5fdc,_0x5ebde5[_0x5ca339(0x125)],messageTypes[_0x5ca339(0x147)],_0x5ebde5['mEVeM'],null,_0x2c5fdc),process['exit'](0x1)),_0x5ebde5['WsQKz'](_0x2e464a['statusCode'],0x190)&&(logger['error'](JSON[_0x5ca339(0x131)](_0x2e464a[_0x5ca339(0x11d)])['message']),await _0x5ebde5[_0x5ca339(0x121)](sendInstrumentationEvent,_0x2c5fdc,_0x5ebde5['sxxRu'],messageTypes['ERROR'],_0x5ebde5['hTyfz'],null,_0x2c5fdc),process[_0x5ca339(0x11c)](0x1)),logger[_0x5ca339(0x134)](_0x5ca339(0x122)+JSON[_0x5ca339(0x110)](_0x2e464a)),await _0x5ebde5['xvCLR'](sendInstrumentationEvent,_0x2c5fdc,_0x5ebde5[_0x5ca339(0x125)],messageTypes[_0x5ca339(0x147)],_0x5ebde5[_0x5ca339(0x12c)],_0x2e464a,_0x2c5fdc),process[_0x5ca339(0x11c)](0x1);}catch(_0x25d0d8){const _0x5c296f='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x25d0d8+'\x20\x0a'+JSON[_0x5ca339(0x110)](_0x25d0d8[_0x5ca339(0xef)])+'\x20';logger[_0x5ca339(0x134)](_0x5c296f),process[_0x5ca339(0x11c)](0x1);}};
1
+ const a21_0x449c29=a21_0x84d3;(function(_0x3a226f,_0x4b30fc){const _0x3a0e68=a21_0x84d3,_0x5c4122=_0x3a226f();while(!![]){try{const _0x28e31c=parseInt(_0x3a0e68(0x228))/0x1+-parseInt(_0x3a0e68(0x200))/0x2+-parseInt(_0x3a0e68(0x222))/0x3+parseInt(_0x3a0e68(0x220))/0x4+-parseInt(_0x3a0e68(0x1d7))/0x5*(-parseInt(_0x3a0e68(0x203))/0x6)+parseInt(_0x3a0e68(0x1d5))/0x7*(parseInt(_0x3a0e68(0x1e1))/0x8)+-parseInt(_0x3a0e68(0x218))/0x9*(parseInt(_0x3a0e68(0x1ec))/0xa);if(_0x28e31c===_0x4b30fc)break;else _0x5c4122['push'](_0x5c4122['shift']());}catch(_0x594d25){_0x5c4122['push'](_0x5c4122['shift']());}}}(a21_0x40fd,0x43f42));function a21_0x84d3(_0x2ef2b5,_0x5cca4f){const _0x40fdda=a21_0x40fd();return a21_0x84d3=function(_0x84d398,_0x4b1191){_0x84d398=_0x84d398-0x1d3;let _0x45d40a=_0x40fdda[_0x84d398];return _0x45d40a;},a21_0x84d3(_0x2ef2b5,_0x5cca4f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x449c29(0x1e0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x449c29(0x209)),{logger}=require(a21_0x449c29(0x226)),{getCredentialsPath,getGridDetails}=require(a21_0x449c29(0x1f2)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x449c29(0x1e4)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x449c29(0x1f9)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x40fd(){const _0x4ce01d=['108606nhuasG','BSJPs','options','6wMoglp','parse','grid-id','xZXDn','password','oDpSC','../../config/constants','server-error','invalid-grid-id','init-not-called','stringify','message','FjMzW','<UsernamePlaceholder>','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Browserstack','stack','username','desc','clusterRegion','replace','9jffChp','type','WebSocket','Skip\x20insecure\x20cert\x20verification.','user','existsSync','bqxew','region','1263136SDoneE','MnvBy','849345DOoZsW','KaLwl','command','boolean','../../config/logger','FAoZl','169702NQcOky','stop-grid-called','INFO','UVnHJ','epilogue','Stopping\x20grid\x20','ERROR','grid','RVkPh','stop','string','28BJEqgC','Grid\x20stoppped.','1227605sRGtcU','readFileSync','Stop\x20a\x20running\x20Automation\x20grid.','ZNZAj','error','clusterName','body','handler','gSccR','reconnecting-websocket','503768wTTkFN','default','name','../../utils/instrumentationUtils','dPRue','oKtJX','NIBsT','info','<PasswordPlaceholder>','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','statusCode','3671350LeiYUa','dTlKE','qWTuk','usage','GJKuR','bstackAccesskey','../../utils/utilityMethods','gridId','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','cloudProvider','exit','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/createk8sClient','argv','ICRLK','unauthorised','BmgSt','skip-tls-cert-verify','JrKRN'];a21_0x40fd=function(){return _0x4ce01d;};return a21_0x40fd();}exports[a21_0x449c29(0x224)]=a21_0x449c29(0x22f),exports[a21_0x449c29(0x215)]=a21_0x449c29(0x1d9),exports['builder']=function(_0x4b60ce){const _0x7a6bd0=a21_0x449c29,_0x5a5157={};_0x5a5157['UVnHJ']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x5a5157[_0x7a6bd0(0x206)]=_0x7a6bd0(0x1d4),_0x5a5157[_0x7a6bd0(0x230)]=_0x7a6bd0(0x21b),_0x5a5157[_0x7a6bd0(0x21e)]=_0x7a6bd0(0x225),_0x5a5157[_0x7a6bd0(0x223)]=_0x7a6bd0(0x1f7);const _0x3ed4d9=_0x5a5157,_0x27b2b5={};_0x27b2b5['description']=_0x3ed4d9[_0x7a6bd0(0x22b)],_0x27b2b5[_0x7a6bd0(0x219)]=_0x3ed4d9[_0x7a6bd0(0x206)];const _0x3182d7={};_0x3182d7['description']=_0x3ed4d9[_0x7a6bd0(0x230)],_0x3182d7['type']=_0x3ed4d9['bqxew'],_0x3182d7[_0x7a6bd0(0x1e2)]=![];const _0x1aa2a7={};return _0x1aa2a7[_0x7a6bd0(0x205)]=_0x27b2b5,_0x1aa2a7[_0x7a6bd0(0x1fe)]=_0x3182d7,_0x4b60ce[_0x7a6bd0(0x1ef)](HELP_HEADER_MESSAGE[_0x7a6bd0(0x1d3)])[_0x7a6bd0(0x22c)](HELP_FOOTER_MESSAGE)[_0x7a6bd0(0x202)](_0x1aa2a7)[_0x7a6bd0(0x1f7)](_0x3ed4d9['KaLwl'])[_0x7a6bd0(0x1fa)];},exports[a21_0x449c29(0x1de)]=async function(_0x2c4240){const _0x49528d=a21_0x449c29,_0x340f04={'dTlKE':_0x49528d(0x1ea),'BSJPs':function(_0x4463f5){return _0x4463f5();},'dPRue':_0x49528d(0x211),'mvzOa':function(_0x3de6f,_0x12a3ae,_0x1e2f42,_0xcf1aa8,_0x147d88,_0x1a8d0a,_0x28195c){return _0x3de6f(_0x12a3ae,_0x1e2f42,_0xcf1aa8,_0x147d88,_0x1a8d0a,_0x28195c);},'ICRLK':_0x49528d(0x229),'gSccR':_0x49528d(0x20c),'MnvBy':function(_0xc82c95,_0x5a8781,_0x13641a,_0x52dd21,_0xd9251e,_0x1a22a4,_0x4a7d78){return _0xc82c95(_0x5a8781,_0x13641a,_0x52dd21,_0xd9251e,_0x1a22a4,_0x4a7d78);},'GJKuR':function(_0xa08f5f){return _0xa08f5f();},'gDOtR':_0x49528d(0x210),'NIBsT':_0x49528d(0x1e9),'vDHJL':'Adding\x20Websocket\x20listeners','qWTuk':function(_0x2d9394,_0x89dce9,_0x343e2f,_0x46d19d){return _0x2d9394(_0x89dce9,_0x343e2f,_0x46d19d);},'FjMzW':function(_0x18c565,_0x20ede3,_0x3b00f2,_0x10dd6c,_0x2e79dd,_0xa393e4,_0x46c9d8){return _0x18c565(_0x20ede3,_0x3b00f2,_0x10dd6c,_0x2e79dd,_0xa393e4,_0x46c9d8);},'oDpSC':function(_0x2c4a1b,_0x4a8135,_0x4a8810){return _0x2c4a1b(_0x4a8135,_0x4a8810);},'BmgSt':_0x49528d(0x1d6),'FAoZl':function(_0x3ee9f5,_0x4f0c08){return _0x3ee9f5===_0x4f0c08;},'HZleN':_0x49528d(0x1f8),'vGOaY':function(_0x51ff9a,_0x112195,_0x2121a6,_0x2fdadc,_0xef8472,_0x2d74c6,_0x14d77c){return _0x51ff9a(_0x112195,_0x2121a6,_0x2fdadc,_0xef8472,_0x2d74c6,_0x14d77c);},'oKtJX':_0x49528d(0x1fc),'ZNZAj':function(_0x786041,_0x3117ae,_0x334141,_0xef701d,_0x15a2fa,_0x3a1268,_0x2f78b1){return _0x786041(_0x3117ae,_0x334141,_0xef701d,_0x15a2fa,_0x3a1268,_0x2f78b1);},'JrKRN':_0x49528d(0x20b),'dksrS':function(_0xc85567,_0x1795bd,_0x2055ba,_0x59fd48,_0x575aa2,_0x466cfd,_0x5307ec){return _0xc85567(_0x1795bd,_0x2055ba,_0x59fd48,_0x575aa2,_0x466cfd,_0x5307ec);},'TZdfu':_0x49528d(0x20a)};let _0x108a8c;try{!_0x2c4240['gridId']&&(logger[_0x49528d(0x1db)](_0x340f04[_0x49528d(0x1ed)]),process[_0x49528d(0x1f6)](0x1));!fs[_0x49528d(0x21d)](_0x340f04[_0x49528d(0x201)](getCredentialsPath))&&(logger[_0x49528d(0x1db)](_0x340f04[_0x49528d(0x1e5)]),await _0x340f04['mvzOa'](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22e)],_0x340f04[_0x49528d(0x1df)],null,_0x2c4240),process[_0x49528d(0x1f6)](0x1));logger[_0x49528d(0x1e8)](_0x49528d(0x22d)+_0x2c4240['gridId']),await _0x340f04[_0x49528d(0x221)](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22a)],null,null,_0x2c4240);const _0xa738af=JSON[_0x49528d(0x204)](fs[_0x49528d(0x1d8)](_0x340f04[_0x49528d(0x1f0)](getCredentialsPath)));global_registry['bstackUsername']=_0xa738af[_0x49528d(0x212)][_0x49528d(0x214)],global_registry[_0x49528d(0x1f1)]=_0xa738af[_0x49528d(0x212)][_0x49528d(0x207)];const _0x230d84=WS_ENDPOINT[_0x49528d(0x217)](_0x340f04['gDOtR'],_0xa738af[_0x49528d(0x212)]['username'])[_0x49528d(0x217)](_0x340f04[_0x49528d(0x1e7)],_0xa738af['Browserstack'][_0x49528d(0x207)]),_0x1102bb={};_0x1102bb[_0x49528d(0x21a)]=ws,_0x1102bb['connectionTimeout']=0x36ee80,_0x108a8c=new ReconnectingWebSocket(_0x230d84,[],_0x1102bb),logger['debug'](_0x340f04['vDHJL']),webSocketUtils['addListeners'](_0x108a8c,_0x2c4240[_0x49528d(0x21c)],_0x2c4240[_0x49528d(0x207)]);const [_0x3b1009,_0x28a8e3]=await _0x340f04[_0x49528d(0x1ee)](getGridDetails,_0xa738af[_0x49528d(0x212)]['username'],_0xa738af[_0x49528d(0x212)][_0x49528d(0x207)],_0x2c4240[_0x49528d(0x1f3)]);if(_0x28a8e3){const _0x16fa35=_0x28a8e3[_0x49528d(0x1e8)];global_registry[_0x49528d(0x1f5)]=_0x16fa35['cloudProvider'],global_registry[_0x49528d(0x216)]=_0x16fa35[_0x49528d(0x21f)],global_registry[_0x49528d(0x1dc)]=_0x16fa35[_0x49528d(0x1dc)];const _0x42bc30=await _0x340f04[_0x49528d(0x20f)](getCloudProviderObject,_0x16fa35[_0x49528d(0x1f5)],_0x16fa35[_0x49528d(0x1dc)],_0x16fa35['name'],_0x108a8c,webSocketUtils,_0x2c4240),[_0x510532,_0xac2583,_0x4e48de,_0x1017a5,_0x289a95,_0x468394]=await _0x340f04[_0x49528d(0x208)](createK8sClient,_0x42bc30,_0x2c4240['skipTlsCertVerify']);await _0x340f04['oDpSC'](scaleDownHubDeployment,_0xac2583,_0x16fa35[_0x49528d(0x1e3)]),logger[_0x49528d(0x1e8)](_0x340f04[_0x49528d(0x1fd)]),process[_0x49528d(0x1f6)](0x0);}_0x340f04[_0x49528d(0x227)](_0x3b1009[_0x49528d(0x1eb)],0x191)&&(logger[_0x49528d(0x1db)](_0x340f04['HZleN']),await _0x340f04['vGOaY'](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22e)],_0x340f04[_0x49528d(0x1e6)],null,_0x2c4240),process[_0x49528d(0x1f6)](0x1)),_0x340f04[_0x49528d(0x227)](_0x3b1009[_0x49528d(0x1eb)],0x190)&&(logger[_0x49528d(0x1db)](JSON[_0x49528d(0x204)](_0x3b1009[_0x49528d(0x1dd)])[_0x49528d(0x20e)]),await _0x340f04[_0x49528d(0x1da)](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22e)],_0x340f04[_0x49528d(0x1ff)],null,_0x2c4240),process[_0x49528d(0x1f6)](0x1)),logger[_0x49528d(0x1db)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x49528d(0x20d)](_0x3b1009)),await _0x340f04['dksrS'](sendInstrumentationEvent,_0x2c4240,_0x340f04[_0x49528d(0x1fb)],messageTypes[_0x49528d(0x22e)],_0x340f04['TZdfu'],_0x3b1009,_0x2c4240),process[_0x49528d(0x1f6)](0x1);}catch(_0x57da55){const _0x181903=_0x49528d(0x1f4)+_0x57da55+'\x20\x0a'+JSON[_0x49528d(0x20d)](_0x57da55[_0x49528d(0x213)])+'\x20';logger[_0x49528d(0x1db)](_0x181903),process[_0x49528d(0x1f6)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x1f7a06=a22_0x376d;(function(_0x4bcc90,_0x1f3930){const _0x387ed9=a22_0x376d,_0x1102cb=_0x4bcc90();while(!![]){try{const _0x3da89a=parseInt(_0x387ed9(0x1bb))/0x1*(-parseInt(_0x387ed9(0x193))/0x2)+parseInt(_0x387ed9(0x172))/0x3+parseInt(_0x387ed9(0x1c3))/0x4*(parseInt(_0x387ed9(0x1c0))/0x5)+parseInt(_0x387ed9(0x1a5))/0x6+parseInt(_0x387ed9(0x1b4))/0x7*(-parseInt(_0x387ed9(0x1ac))/0x8)+-parseInt(_0x387ed9(0x19e))/0x9+parseInt(_0x387ed9(0x197))/0xa*(-parseInt(_0x387ed9(0x167))/0xb);if(_0x3da89a===_0x1f3930)break;else _0x1102cb['push'](_0x1102cb['shift']());}catch(_0x366d30){_0x1102cb['push'](_0x1102cb['shift']());}}}(a22_0x2ec4,0x28022),require('dotenv')['config']());let gridURL=a22_0x1f7a06(0x1bf),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x1f7a06(0x166);const _env=(process[a22_0x1f7a06(0x192)]['BROWSERSTACK_ENV']||a22_0x1f7a06(0x1cd))[a22_0x1f7a06(0x1c9)]();if(_env===a22_0x1f7a06(0x17a)||_env===a22_0x1f7a06(0x17b))gridURL=a22_0x1f7a06(0x162),bsApiUrl=a22_0x1f7a06(0x17f),agApiUrl=a22_0x1f7a06(0x164);else(_env==='preprod'||_env===a22_0x1f7a06(0x176))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x1f7a06(0x1ce),agApiUrl=a22_0x1f7a06(0x179));exports[a22_0x1f7a06(0x1ca)]=process[a22_0x1f7a06(0x192)][a22_0x1f7a06(0x1ca)]||gridURL,exports[a22_0x1f7a06(0x199)]=process[a22_0x1f7a06(0x192)][a22_0x1f7a06(0x199)]||bsApiUrl,exports[a22_0x1f7a06(0x1c6)]=process[a22_0x1f7a06(0x192)][a22_0x1f7a06(0x1c6)]||agApiUrl,exports[a22_0x1f7a06(0x195)]=a22_0x1f7a06(0x188)+this['AG_API_URL']+a22_0x1f7a06(0x165),exports[a22_0x1f7a06(0x1c8)]=a22_0x1f7a06(0x191),exports[a22_0x1f7a06(0x16a)]=a22_0x1f7a06(0x19d),exports['DEFAULT_GRID_NAME']=a22_0x1f7a06(0x1c5),exports[a22_0x1f7a06(0x1b3)]=a22_0x1f7a06(0x18b),exports[a22_0x1f7a06(0x169)]='BSTACK-ATS-CLUSTER',exports[a22_0x1f7a06(0x17d)]=a22_0x1f7a06(0x1d1),exports[a22_0x1f7a06(0x18c)]='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports['AZURE']=a22_0x1f7a06(0x1a0),exports['GCP']=a22_0x1f7a06(0x17e),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x1f7a06(0x1b3)],this[a22_0x1f7a06(0x1bd)],this[a22_0x1f7a06(0x1af)]];const a22_0x30a795={};a22_0x30a795[a22_0x1f7a06(0x1be)]='browserstack:managedBy',a22_0x30a795[a22_0x1f7a06(0x17c)]=a22_0x1f7a06(0x1b9);const a22_0x3964ca={};a22_0x3964ca[a22_0x1f7a06(0x1be)]=a22_0x1f7a06(0x19f),a22_0x3964ca[a22_0x1f7a06(0x17c)]=a22_0x1f7a06(0x183);const common_hst_tags_list=[a22_0x30a795,a22_0x3964ca];if(process[a22_0x1f7a06(0x192)][a22_0x1f7a06(0x1cc)]){const parsedTags=process[a22_0x1f7a06(0x192)][a22_0x1f7a06(0x1cc)]['split'](',');parsedTags[a22_0x1f7a06(0x168)](_0x36bbf8=>{const _0x3a03af=a22_0x1f7a06,_0xe0c682=_0x36bbf8[_0x3a03af(0x198)](':'),_0xb48789={};_0xb48789[_0x3a03af(0x1be)]=_0xe0c682[0x0],_0xb48789[_0x3a03af(0x17c)]=_0xe0c682[0x1],common_hst_tags_list[_0x3a03af(0x189)](_0xb48789);});}function a22_0x2ec4(){const _0x2374ad=['log','GRID_URL','NULL','UNKNOWN','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','1178344JxUEkp','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','LOG','GCP','unknown','CLI_RUN_STARTED','info','AWS','7yJobAk','us-east-1','error','REGION','CLI_RUN_FINISHED','BrowserStack','WARNING','289859CYtBzi','CLI_ARGS_REGEX','AZURE','Key','grid.browserstack.com','615HYUlBJ','cliRunFinished','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','7228UhYjiS','COMMON_HST_TAGS','high-scale-grid','AG_API_URL','WS_EVENTS','CP_CONFIG_FILE','toLowerCase','DASHBOARD_ENDPOINT','TRIAL_GRID_URL','TURBOSCALE_CUSTOM_TAGS','prod','api-preprod.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','ERROR','BSTACK-ATS-CLUSTER-AUTOSCALER','CLOUD_PROVIDER','REDACTED','grid-devhst.bsstag.com','CLUSTER','grid-api-devhst.bsstag.com','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','grid-api.browserstack.com','77bSyCrO','forEach','CLUSTER_DEP_STACK_NAME','IAM_USER_NAME','stop','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','LINK_MESSAGE','MessageDescription','INFO','create','root','945240sfjXYQ','warning','gridProfile','pre_check','pre-prod','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','SUPPORTED_CLOUD_PROVIDERS','grid-api-preprod.bsstag.com','staging','stag','Value','CLUSTER_AUTOSCALER_STACK_NAME','gcp','api-devhst.bsstag.com','HELP_HEADER_MESSAGE','grid','pre-check','BrowserStack-Automate-TurboScale','delete','resourceInfo','[REDACTED]','RESOURCES','wss://','push','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','aws','CLUSTER_HUB_HA_STACK_NAME','SUCCESS','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','messageTypes','credentials','env','2lEJzrq','high-scale-grid-cluster','WS_ENDPOINT','configure','188030FndyIa','split','BS_API_URL','HELP_FOOTER_MESSAGE','list','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','BrowserStackIAMUser','96975Kblqhe','browserstack:service','azure','success','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','cliRunStarted','init','1236486XCwTlG','DEFAULT_CLUSTER_DETAILS'];a22_0x2ec4=function(){return _0x2374ad;};return a22_0x2ec4();}exports[a22_0x1f7a06(0x1c4)]=common_hst_tags_list;const a22_0x2579b6={};function a22_0x376d(_0x3804d0,_0x1c5c97){const _0x2ec402=a22_0x2ec4();return a22_0x376d=function(_0x376d37,_0x514aa9){_0x376d37=_0x376d37-0x160;let _0x556dfa=_0x2ec402[_0x376d37];return _0x556dfa;},a22_0x376d(_0x3804d0,_0x1c5c97);}a22_0x2579b6['browserstack:managedBy']='BrowserStack',a22_0x2579b6[a22_0x1f7a06(0x19f)]=a22_0x1f7a06(0x183),exports['HST_CLUSTER_TAGS']=a22_0x2579b6,exports[a22_0x1f7a06(0x178)]=[this[a22_0x1f7a06(0x1b3)]];const a22_0xa00e14={};a22_0xa00e14[a22_0x1f7a06(0x1ae)]=a22_0x1f7a06(0x1a7),a22_0xa00e14[a22_0x1f7a06(0x187)]=a22_0x1f7a06(0x185),a22_0xa00e14[a22_0x1f7a06(0x1a8)]='gridUrl',a22_0xa00e14[a22_0x1f7a06(0x1b1)]=a22_0x1f7a06(0x1a3),a22_0xa00e14[a22_0x1f7a06(0x1b8)]=a22_0x1f7a06(0x1c1),exports[a22_0x1f7a06(0x1c7)]=a22_0xa00e14,exports['global_registry']={},exports[a22_0x1f7a06(0x16d)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x29c6ba={};a22_0x29c6ba['root']=a22_0x1f7a06(0x1a2)+this[a22_0x1f7a06(0x16d)],a22_0x29c6ba[a22_0x1f7a06(0x1a4)]=a22_0x1f7a06(0x1c2)+this[a22_0x1f7a06(0x16d)],a22_0x29c6ba[a22_0x1f7a06(0x196)]=a22_0x1f7a06(0x18f)+this[a22_0x1f7a06(0x16d)],a22_0x29c6ba[a22_0x1f7a06(0x170)]=a22_0x1f7a06(0x1ad)+this[a22_0x1f7a06(0x16d)],a22_0x29c6ba[a22_0x1f7a06(0x19b)]={},a22_0x29c6ba[a22_0x1f7a06(0x184)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x29c6ba['connect']=a22_0x1f7a06(0x1ab)+this['LINK_MESSAGE'],a22_0x29c6ba['start']=a22_0x1f7a06(0x18a)+this['LINK_MESSAGE'],a22_0x29c6ba[a22_0x1f7a06(0x16b)]=a22_0x1f7a06(0x16c)+this[a22_0x1f7a06(0x16d)],a22_0x29c6ba[a22_0x1f7a06(0x175)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x29c6ba[a22_0x1f7a06(0x19b)][a22_0x1f7a06(0x171)]=a22_0x1f7a06(0x177)+this['LINK_MESSAGE'],a22_0x29c6ba[a22_0x1f7a06(0x19b)][a22_0x1f7a06(0x181)]=a22_0x1f7a06(0x1cf)+this[a22_0x1f7a06(0x16d)],a22_0x29c6ba[a22_0x1f7a06(0x19b)][a22_0x1f7a06(0x174)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x1f7a06(0x16d)],exports[a22_0x1f7a06(0x180)]=a22_0x29c6ba,exports[a22_0x1f7a06(0x19a)]=a22_0x1f7a06(0x19c);const a22_0x4cdd9c={};a22_0x4cdd9c[a22_0x1f7a06(0x18d)]=a22_0x1f7a06(0x1a1),a22_0x4cdd9c[a22_0x1f7a06(0x1d0)]=a22_0x1f7a06(0x1b6),a22_0x4cdd9c[a22_0x1f7a06(0x16f)]=a22_0x1f7a06(0x1b2),a22_0x4cdd9c[a22_0x1f7a06(0x1ba)]=a22_0x1f7a06(0x173),a22_0x4cdd9c[a22_0x1f7a06(0x1aa)]=a22_0x1f7a06(0x1b0),a22_0x4cdd9c[a22_0x1f7a06(0x1a9)]=null,exports[a22_0x1f7a06(0x190)]=a22_0x4cdd9c,exports[a22_0x1f7a06(0x1bc)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1f7a06(0x18e)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1f7a06(0x161)]=a22_0x1f7a06(0x186);const a22_0x4daa64={};a22_0x4daa64['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x437e15={};a22_0x437e15[a22_0x1f7a06(0x182)]=a22_0x4daa64,exports[a22_0x1f7a06(0x16e)]=a22_0x437e15,exports[a22_0x1f7a06(0x1cb)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x49bf76={};a22_0x49bf76[a22_0x1f7a06(0x163)]=a22_0x1f7a06(0x194),a22_0x49bf76[a22_0x1f7a06(0x160)]='aws',a22_0x49bf76[a22_0x1f7a06(0x1b7)]=a22_0x1f7a06(0x1b5),exports[a22_0x1f7a06(0x1a6)]=a22_0x49bf76;
1
+ const a22_0x516380=a22_0x1bb2;(function(_0x29fddc,_0x51cd64){const _0x502a81=a22_0x1bb2,_0x73e3fa=_0x29fddc();while(!![]){try{const _0x50c03f=-parseInt(_0x502a81(0x182))/0x1+parseInt(_0x502a81(0x19b))/0x2*(-parseInt(_0x502a81(0x197))/0x3)+parseInt(_0x502a81(0x17f))/0x4+-parseInt(_0x502a81(0x16c))/0x5*(-parseInt(_0x502a81(0x1a5))/0x6)+-parseInt(_0x502a81(0x161))/0x7+parseInt(_0x502a81(0x17a))/0x8*(parseInt(_0x502a81(0x151))/0x9)+-parseInt(_0x502a81(0x15f))/0xa*(-parseInt(_0x502a81(0x1af))/0xb);if(_0x50c03f===_0x51cd64)break;else _0x73e3fa['push'](_0x73e3fa['shift']());}catch(_0x50ec73){_0x73e3fa['push'](_0x73e3fa['shift']());}}}(a22_0x27a7,0x812ae),require(a22_0x516380(0x14e))[a22_0x516380(0x16a)]());let gridURL=a22_0x516380(0x160),bsApiUrl=a22_0x516380(0x14c),agApiUrl=a22_0x516380(0x190);const _env=(process['env'][a22_0x516380(0x166)]||a22_0x516380(0x146))['toLowerCase']();if(_env===a22_0x516380(0x17b)||_env==='stag')gridURL=a22_0x516380(0x186),bsApiUrl=a22_0x516380(0x173),agApiUrl=a22_0x516380(0x181);else(_env==='preprod'||_env===a22_0x516380(0x159))&&(gridURL=a22_0x516380(0x169),bsApiUrl=a22_0x516380(0x18f),agApiUrl='grid-api-preprod.bsstag.com');function a22_0x27a7(){const _0x2f574d=['CLI_RUN_FINISHED','3086132HMsuPz','UNKNOWN','grid-api-devhst.bsstag.com','154175IePmUf','AWS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','grid-devhst.bsstag.com','DASHBOARD_ENDPOINT','gridUrl','RESOURCES','TRIAL_GRID_URL','GCP','DEFAULT_GRID_NAME','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','api-preprod.bsstag.com','grid-api.browserstack.com','init','connect','AZURE','gridProfile','start','create','3WLffqw','[REDACTED]','CLUSTER_DEP_STACK_NAME','HELP_FOOTER_MESSAGE','1777574PKkRQh','BrowserStack-Automate-TurboScale','BrowserStackIAMUser','list','cliRunFinished','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','CLUSTER','log','REGION','NULL','6WzenKz','credentials','messageTypes','cliRunStarted','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','unknown','CLOUD_PROVIDER','SUCCESS','AG_API_URL','CLI_ARGS_REGEX','7128561ahiZfG','LINK_MESSAGE','GRID_URL','success','split','delete','HST_CLUSTER_TAGS','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BS_API_URL','BrowserStack','Key','prod','grid-profile','BSTACK-ATS-CLUSTER-AUTOSCALER','high-scale-grid-cluster','CLUSTER_HUB_HA_STACK_NAME','TURBOSCALE_CUSTOM_TAGS','api.browserstack.com','gcp','dotenv','info','error','45SEHyPu','ALL_SUPPORTED_CLOUD_PROVIDERS','INFO','DEFAULT_CLUSTER_DETAILS','HELP_HEADER_MESSAGE','high-scale-grid','SUPPORTED_CLOUD_PROVIDERS','us-east-1','pre-prod','MessageDescription','BSTACK-ATS-CLUSTER','browserstack:service','BSTACK-ATS-CLUSTER-HUB-HA','global_registry','20jwVfCb','grid.browserstack.com','5452454JYMDbt','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','RAW_ARGS_REGEX','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','warning','BROWSERSTACK_ENV','aws','CP_CONFIG_FILE','grid-preprod.bsstag.com','config','forEach','760570OmKElv','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TURBOSCALE_DEPLOYMENT','stop','ERROR','pre-check','api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','root','Value','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','env','wss://','209928BgKRxs','staging','browserstack-turboscale-grid','COMMON_HST_TAGS'];a22_0x27a7=function(){return _0x2f574d;};return a22_0x27a7();}exports[a22_0x516380(0x187)]=process[a22_0x516380(0x178)][a22_0x516380(0x187)]||gridURL,exports[a22_0x516380(0x143)]=process[a22_0x516380(0x178)][a22_0x516380(0x143)]||bsApiUrl,exports['AG_API_URL']=process['env']['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x516380(0x179)+this[a22_0x516380(0x1ad)]+a22_0x516380(0x184),exports[a22_0x516380(0x168)]=a22_0x516380(0x1a6),exports['IAM_USER_NAME']=a22_0x516380(0x19d),exports[a22_0x516380(0x18c)]=a22_0x516380(0x156),exports['AWS']=a22_0x516380(0x167),exports[a22_0x516380(0x199)]=a22_0x516380(0x15b),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x516380(0x148),exports[a22_0x516380(0x14a)]=a22_0x516380(0x15d),exports[a22_0x516380(0x16f)]=a22_0x516380(0x17c),exports[a22_0x516380(0x193)]='azure',exports[a22_0x516380(0x18b)]=a22_0x516380(0x14d),exports[a22_0x516380(0x152)]=[this[a22_0x516380(0x183)],this['AZURE'],this[a22_0x516380(0x18b)]];const a22_0x3d5857={};a22_0x3d5857[a22_0x516380(0x145)]='browserstack:managedBy',a22_0x3d5857['Value']=a22_0x516380(0x144);const a22_0x3572dc={};a22_0x3572dc['Key']=a22_0x516380(0x15c),a22_0x3572dc[a22_0x516380(0x176)]=a22_0x516380(0x19c);const common_hst_tags_list=[a22_0x3d5857,a22_0x3572dc];if(process[a22_0x516380(0x178)][a22_0x516380(0x14b)]){const parsedTags=process[a22_0x516380(0x178)][a22_0x516380(0x14b)][a22_0x516380(0x13f)](',');parsedTags[a22_0x516380(0x16b)](_0x3b1f5f=>{const _0x136271=a22_0x516380,_0x5c02f8=_0x3b1f5f['split'](':'),_0x2b1698={};_0x2b1698[_0x136271(0x145)]=_0x5c02f8[0x0],_0x2b1698[_0x136271(0x176)]=_0x5c02f8[0x1],common_hst_tags_list['push'](_0x2b1698);});}exports[a22_0x516380(0x17d)]=common_hst_tags_list;const a22_0x574861={};a22_0x574861['browserstack:managedBy']=a22_0x516380(0x144),a22_0x574861['browserstack:service']='BrowserStack-Automate-TurboScale',exports[a22_0x516380(0x141)]=a22_0x574861,exports[a22_0x516380(0x157)]=[this['AWS']];const a22_0x55d41b={};function a22_0x1bb2(_0x374a2a,_0x26b03c){const _0x27a70e=a22_0x27a7();return a22_0x1bb2=function(_0x1bb29a,_0x37b197){_0x1bb29a=_0x1bb29a-0x13e;let _0x36c72e=_0x27a70e[_0x1bb29a];return _0x36c72e;},a22_0x1bb2(_0x374a2a,_0x26b03c);}a22_0x55d41b['LOG']=a22_0x516380(0x1a2),a22_0x55d41b[a22_0x516380(0x189)]='resourceInfo',a22_0x55d41b[a22_0x516380(0x1b1)]=a22_0x516380(0x188),a22_0x55d41b['CLI_RUN_STARTED']=a22_0x516380(0x1a8),a22_0x55d41b[a22_0x516380(0x17e)]=a22_0x516380(0x19f),exports['WS_EVENTS']=a22_0x55d41b,exports[a22_0x516380(0x15e)]={},exports[a22_0x516380(0x1b0)]=a22_0x516380(0x162);const a22_0x4b4d4a={};a22_0x4b4d4a[a22_0x516380(0x175)]=a22_0x516380(0x16d)+this['LINK_MESSAGE'],a22_0x4b4d4a[a22_0x516380(0x191)]=a22_0x516380(0x18d)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a['configure']=a22_0x516380(0x174)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x196)]=a22_0x516380(0x1a0)+this['LINK_MESSAGE'],a22_0x4b4d4a[a22_0x516380(0x19e)]={},a22_0x4b4d4a[a22_0x516380(0x140)]=a22_0x516380(0x1a9)+this['LINK_MESSAGE'],a22_0x4b4d4a[a22_0x516380(0x192)]=a22_0x516380(0x142)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x195)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x170)]=a22_0x516380(0x177)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a['pre_check']=a22_0x516380(0x18e)+this['LINK_MESSAGE'],a22_0x4b4d4a[a22_0x516380(0x19e)]['root']=a22_0x516380(0x185)+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x19e)]['grid']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x516380(0x1b0)],a22_0x4b4d4a[a22_0x516380(0x19e)][a22_0x516380(0x194)]=a22_0x516380(0x16e)+this[a22_0x516380(0x1b0)],exports[a22_0x516380(0x155)]=a22_0x4b4d4a,exports[a22_0x516380(0x19a)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x3ac5e4={};a22_0x3ac5e4[a22_0x516380(0x1ac)]=a22_0x516380(0x13e),a22_0x3ac5e4[a22_0x516380(0x171)]=a22_0x516380(0x150),a22_0x3ac5e4[a22_0x516380(0x153)]=a22_0x516380(0x14f),a22_0x3ac5e4['WARNING']=a22_0x516380(0x165),a22_0x3ac5e4[a22_0x516380(0x180)]=a22_0x516380(0x1aa),a22_0x3ac5e4[a22_0x516380(0x1a4)]=null,exports[a22_0x516380(0x1a7)]=a22_0x3ac5e4,exports[a22_0x516380(0x1ae)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x516380(0x163)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x516380(0x198);const a22_0x5806c9={};a22_0x5806c9[a22_0x516380(0x147)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x25acf9={};a22_0x25acf9[a22_0x516380(0x172)]=a22_0x5806c9,exports[a22_0x516380(0x15a)]=a22_0x25acf9,exports[a22_0x516380(0x18a)]=a22_0x516380(0x164);const a22_0x33259b={};a22_0x33259b[a22_0x516380(0x1a1)]=a22_0x516380(0x149),a22_0x33259b[a22_0x516380(0x1ab)]=a22_0x516380(0x167),a22_0x33259b[a22_0x516380(0x1a3)]=a22_0x516380(0x158),exports[a22_0x516380(0x154)]=a22_0x33259b;
@@ -1 +1 @@
1
- const a23_0x5535ab=a23_0x41d5;(function(_0x117573,_0x533514){const _0x23d014=a23_0x41d5,_0x1dc3f9=_0x117573();while(!![]){try{const _0x463dc6=parseInt(_0x23d014(0x167))/0x1+-parseInt(_0x23d014(0x178))/0x2*(-parseInt(_0x23d014(0x168))/0x3)+parseInt(_0x23d014(0x169))/0x4*(parseInt(_0x23d014(0x177))/0x5)+-parseInt(_0x23d014(0x163))/0x6*(-parseInt(_0x23d014(0x17a))/0x7)+-parseInt(_0x23d014(0x166))/0x8*(parseInt(_0x23d014(0x17c))/0x9)+-parseInt(_0x23d014(0x181))/0xa*(parseInt(_0x23d014(0x170))/0xb)+-parseInt(_0x23d014(0x16b))/0xc;if(_0x463dc6===_0x533514)break;else _0x1dc3f9['push'](_0x1dc3f9['shift']());}catch(_0x447a92){_0x1dc3f9['push'](_0x1dc3f9['shift']());}}}(a23_0x1679,0x478e8));const winston=require(a23_0x5535ab(0x164)),fs=require('fs'),path=require(a23_0x5535ab(0x16a)),logDir=a23_0x5535ab(0x182);function a23_0x41d5(_0x10f5de,_0x44d3a3){const _0x167954=a23_0x1679();return a23_0x41d5=function(_0x41d5b6,_0x3afef5){_0x41d5b6=_0x41d5b6-0x162;let _0x17c7bd=_0x167954[_0x41d5b6];return _0x17c7bd;},a23_0x41d5(_0x10f5de,_0x44d3a3);}!fs[a23_0x5535ab(0x17b)](logDir)&&fs[a23_0x5535ab(0x184)](logDir);const a23_0x5dc658={};a23_0x5dc658[a23_0x5535ab(0x16c)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x9cea7={};a23_0x9cea7[a23_0x5535ab(0x171)]=!![];function a23_0x1679(){const _0x3fe747=['Console','105Qeoezq','existsSync','2065176AjyLpB','File','colorize','logger','join','10XUJHUH','log','debug','mkdirSync','\x20-\x20','message','24162HTNgJf','winston','console.info','16mWbatE','438085evFVIf','36651yMJkwS','146752UEKAXP','path','2116296esZVOU','format','events.log','usage.log','transports','4280001GArzXG','level','printf','fileLogger','timestamp','createLogger','name','60sKXChN','62JRdPCA'];a23_0x1679=function(){return _0x3fe747;};return a23_0x1679();}const a23_0x1d8b97={};a23_0x1d8b97[a23_0x5535ab(0x176)]=a23_0x5535ab(0x165),exports[a23_0x5535ab(0x17f)]=new winston[(a23_0x5535ab(0x175))]({'format':winston[a23_0x5535ab(0x16c)]['combine'](winston[a23_0x5535ab(0x16c)]['timestamp'](a23_0x5dc658),winston[a23_0x5535ab(0x16c)][a23_0x5535ab(0x17e)](a23_0x9cea7),winston[a23_0x5535ab(0x16c)][a23_0x5535ab(0x172)](_0x32ff4a=>_0x32ff4a[a23_0x5535ab(0x174)]+a23_0x5535ab(0x185)+_0x32ff4a['level']+':\x20'+_0x32ff4a[a23_0x5535ab(0x162)])),'transports':[new winston[(a23_0x5535ab(0x16f))][(a23_0x5535ab(0x179))](a23_0x1d8b97),new winston['transports'][(a23_0x5535ab(0x17d))]({'filename':path[a23_0x5535ab(0x180)](logDir,a23_0x5535ab(0x16d)),'level':a23_0x5535ab(0x183)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x5535ab(0x16f))]['File']({'filename':path[a23_0x5535ab(0x180)](logDir,a23_0x5535ab(0x16e)),'level':'debug'})]};exports[a23_0x5535ab(0x173)]=new winston[(a23_0x5535ab(0x175))](winstonFileLoggerParams);
1
+ const a23_0x3a66f0=a23_0x2496;(function(_0x309bf9,_0x152fa3){const _0x54d8e2=a23_0x2496,_0x374aaf=_0x309bf9();while(!![]){try{const _0x51e73e=-parseInt(_0x54d8e2(0x179))/0x1*(parseInt(_0x54d8e2(0x17d))/0x2)+-parseInt(_0x54d8e2(0x170))/0x3+parseInt(_0x54d8e2(0x168))/0x4+-parseInt(_0x54d8e2(0x17c))/0x5*(parseInt(_0x54d8e2(0x16c))/0x6)+-parseInt(_0x54d8e2(0x171))/0x7*(-parseInt(_0x54d8e2(0x17a))/0x8)+parseInt(_0x54d8e2(0x175))/0x9*(parseInt(_0x54d8e2(0x162))/0xa)+parseInt(_0x54d8e2(0x169))/0xb;if(_0x51e73e===_0x152fa3)break;else _0x374aaf['push'](_0x374aaf['shift']());}catch(_0x363d01){_0x374aaf['push'](_0x374aaf['shift']());}}}(a23_0x37f0,0xeeae1));const winston=require(a23_0x3a66f0(0x173)),fs=require('fs'),path=require(a23_0x3a66f0(0x172)),logDir=a23_0x3a66f0(0x16e);!fs['existsSync'](logDir)&&fs[a23_0x3a66f0(0x176)](logDir);function a23_0x37f0(){const _0x4a3e58=['combine','timestamp','File','\x20-\x20','join','2618100mDrTue','22101409waRoeT','debug','fileLogger','6egJKds','transports','log','message','4677954FxOdic','175XqCbQP','path','winston','usage.log','537237NMdOse','mkdirSync','YYYY-MM-DD\x20HH:mm:ss','Console','10YFbqrd','149656hzIgoa','createLogger','5201115unsPWu','209314knjElM','format','level','console.info','250LinGWE'];a23_0x37f0=function(){return _0x4a3e58;};return a23_0x37f0();}const a23_0x21e5b0={};a23_0x21e5b0[a23_0x3a66f0(0x17e)]=a23_0x3a66f0(0x177);const a23_0x56e04f={};function a23_0x2496(_0x3be43c,_0x13b700){const _0x37f009=a23_0x37f0();return a23_0x2496=function(_0x249600,_0x233a60){_0x249600=_0x249600-0x160;let _0x450fbc=_0x37f009[_0x249600];return _0x450fbc;},a23_0x2496(_0x3be43c,_0x13b700);}a23_0x56e04f['level']=!![];const a23_0x1b6b4c={};a23_0x1b6b4c['name']=a23_0x3a66f0(0x161),exports['logger']=new winston['createLogger']({'format':winston[a23_0x3a66f0(0x17e)][a23_0x3a66f0(0x163)](winston['format']['timestamp'](a23_0x21e5b0),winston[a23_0x3a66f0(0x17e)]['colorize'](a23_0x56e04f),winston[a23_0x3a66f0(0x17e)]['printf'](_0x31151f=>_0x31151f[a23_0x3a66f0(0x164)]+a23_0x3a66f0(0x166)+_0x31151f[a23_0x3a66f0(0x160)]+':\x20'+_0x31151f[a23_0x3a66f0(0x16f)])),'transports':[new winston[(a23_0x3a66f0(0x16d))][(a23_0x3a66f0(0x178))](a23_0x1b6b4c),new winston['transports']['File']({'filename':path[a23_0x3a66f0(0x167)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3a66f0(0x16d))][(a23_0x3a66f0(0x165))]({'filename':path[a23_0x3a66f0(0x167)](logDir,a23_0x3a66f0(0x174)),'level':a23_0x3a66f0(0x16a)})]};exports[a23_0x3a66f0(0x16b)]=new winston[(a23_0x3a66f0(0x17b))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x2e7644=a24_0x476b;(function(_0x575736,_0x2f68fb){const _0x57bba1=a24_0x476b,_0x4aa233=_0x575736();while(!![]){try{const _0xf54ae3=-parseInt(_0x57bba1(0x1ea))/0x1+-parseInt(_0x57bba1(0x1ec))/0x2+parseInt(_0x57bba1(0x1ed))/0x3*(-parseInt(_0x57bba1(0x1e3))/0x4)+parseInt(_0x57bba1(0x1ef))/0x5+parseInt(_0x57bba1(0x1f1))/0x6+parseInt(_0x57bba1(0x1e5))/0x7*(parseInt(_0x57bba1(0x1e1))/0x8)+parseInt(_0x57bba1(0x1e0))/0x9*(parseInt(_0x57bba1(0x1f0))/0xa);if(_0xf54ae3===_0x2f68fb)break;else _0x4aa233['push'](_0x4aa233['shift']());}catch(_0x52a872){_0x4aa233['push'](_0x4aa233['shift']());}}}(a24_0x5f3a,0xe80a9));function a24_0x476b(_0x2b851e,_0x4b073e){const _0x5f3abb=a24_0x5f3a();return a24_0x476b=function(_0x476b7a,_0x4f196f){_0x476b7a=_0x476b7a-0x1df;let _0x2ee9d8=_0x5f3abb[_0x476b7a];return _0x2ee9d8;},a24_0x476b(_0x2b851e,_0x4b073e);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2e7644(0x1ee));process[a24_0x2e7644(0x1df)][a24_0x2e7644(0x1e7)]=0x1;function a24_0x5f3a(){const _0x34f746=['env','17613MzltuK','102016WqkLED','KfXbc','40cccewi','demandCommand','203WhBcLi','help','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports','ISSik','387505CPFgkM','commandDir','2387426cAKXOX','183315YqXlKD','./config/constants','3967045EHMLcX','940PLLcog','10773204xJCgQb'];a24_0x5f3a=function(){return _0x34f746;};return a24_0x5f3a();}function run(_0x5190f6){const _0x438bc2=a24_0x2e7644,_0x431679={};_0x431679['KfXbc']='commands',_0x431679['ISSik']='help';const _0x3c47e2=_0x431679;_0x5190f6['usage'](HELP_HEADER_MESSAGE['root'])[_0x438bc2(0x1eb)](_0x3c47e2[_0x438bc2(0x1e2)])[_0x438bc2(0x1e4)]()[_0x438bc2(0x1e6)](_0x3c47e2[_0x438bc2(0x1e9)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x2e7644(0x1e8)]=run;
2
+ 'use strict';const a24_0x7e9689=a24_0x13c3;(function(_0x4d0c56,_0x3ec36d){const _0x506fd8=a24_0x13c3,_0x249929=_0x4d0c56();while(!![]){try{const _0x48c010=-parseInt(_0x506fd8(0x77))/0x1+-parseInt(_0x506fd8(0x73))/0x2+parseInt(_0x506fd8(0x72))/0x3*(-parseInt(_0x506fd8(0x79))/0x4)+parseInt(_0x506fd8(0x7b))/0x5+-parseInt(_0x506fd8(0x76))/0x6*(-parseInt(_0x506fd8(0x6f))/0x7)+parseInt(_0x506fd8(0x74))/0x8+parseInt(_0x506fd8(0x69))/0x9*(parseInt(_0x506fd8(0x6d))/0xa);if(_0x48c010===_0x3ec36d)break;else _0x249929['push'](_0x249929['shift']());}catch(_0x10410c){_0x249929['push'](_0x249929['shift']());}}}(a24_0x3c1a,0x9837f));function a24_0x13c3(_0x5ecbcd,_0x2297fc){const _0x3c1a68=a24_0x3c1a();return a24_0x13c3=function(_0x13c33f,_0x5b99ce){_0x13c33f=_0x13c33f-0x69;let _0x5955c8=_0x3c1a68[_0x13c33f];return _0x5955c8;},a24_0x13c3(_0x5ecbcd,_0x2297fc);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x7e9689(0x75));process[a24_0x7e9689(0x7a)][a24_0x7e9689(0x71)]=0x1;function run(_0x54e15f){const _0x4db38f=a24_0x7e9689,_0x2f4ead={};_0x2f4ead['tKXxW']=_0x4db38f(0x6e),_0x2f4ead['cdblZ']=_0x4db38f(0x70);const _0x3a8ba9=_0x2f4ead;_0x54e15f[_0x4db38f(0x6b)](HELP_HEADER_MESSAGE[_0x4db38f(0x6a)])['commandDir'](_0x3a8ba9['tKXxW'])['demandCommand']()[_0x4db38f(0x70)](_0x3a8ba9[_0x4db38f(0x78)])[_0x4db38f(0x6c)](HELP_FOOTER_MESSAGE);}function a24_0x3c1a(){const _0x16050f=['usage','epilogue','26230nhZCZT','commands','7iEXlvF','help','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','298524huilRq','2471010ehKKQb','7781200ITSbFV','./config/constants','1177338mrCbPm','1129197FzfqcL','cdblZ','4JtdvJQ','env','5908805fWIFWA','2529KKyrCM','root'];a24_0x3c1a=function(){return _0x16050f;};return a24_0x3c1a();}module['exports']=run;