browserstack-node-sdk 1.66.4 → 1.68.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 (221) 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/browserstack.yml.sample +34 -1
  41. package/package.json +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/detox/a11ySetup.js +1 -1
  54. package/src/bin/detox/command.js +1 -1
  55. package/src/bin/detox/modifyDetoxConf.js +1 -1
  56. package/src/bin/detox/traEmitter.js +1 -1
  57. package/src/bin/integrations/command.js +1 -1
  58. package/src/bin/integrations/constants.js +1 -1
  59. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  60. package/src/bin/jasmine/command.js +1 -1
  61. package/src/bin/jasmine/test.setup.js +1 -1
  62. package/src/bin/jasmine/testRunMap.js +1 -1
  63. package/src/bin/jest/command.js +1 -1
  64. package/src/bin/jest/customImplements/customCircus.js +1 -1
  65. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  66. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  67. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  68. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  69. package/src/bin/jest/jest.setup.js +1 -1
  70. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  71. package/src/bin/jest/test-observability/helper.js +1 -1
  72. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  73. package/src/bin/jest/test-observability/test-details.js +1 -1
  74. package/src/bin/jest/test.setup.js +1 -1
  75. package/src/bin/jest/test_before.setup.js +1 -1
  76. package/src/bin/launcher/launcher.js +1 -1
  77. package/src/bin/load/index.js +1 -1
  78. package/src/bin/load/loadErrors.js +1 -1
  79. package/src/bin/load/loadUtils.js +1 -1
  80. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  81. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  82. package/src/bin/mocha/command.js +1 -1
  83. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  84. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  85. package/src/bin/mocha/test.setup.js +1 -1
  86. package/src/bin/newman/command.js +1 -1
  87. package/src/bin/newman/helper.js +1 -1
  88. package/src/bin/newman/reporter/index.js +1 -1
  89. package/src/bin/newman/scriptRunner.js +1 -1
  90. package/src/bin/nightwatch/command.js +1 -1
  91. package/src/bin/node-generic/client.js +1 -1
  92. package/src/bin/playwright/accessibility-helper.js +1 -1
  93. package/src/bin/playwright/command.js +1 -1
  94. package/src/bin/playwright/globalSetup.js +1 -1
  95. package/src/bin/playwright/mock-process.js +1 -1
  96. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  97. package/src/bin/playwright/patches.js +1 -1
  98. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  99. package/src/bin/playwright/reporter/reporter.js +1 -1
  100. package/src/bin/playwright/reporter/test-details.js +1 -1
  101. package/src/bin/playwright/reporterArgs.js +1 -1
  102. package/src/bin/playwright/sessionDetails.js +1 -1
  103. package/src/bin/puppeteer/patches.js +1 -1
  104. package/src/bin/puppeteer/sessionDetails.js +1 -1
  105. package/src/bin/puppeteer/test.setup.js +1 -1
  106. package/src/bin/runner.js +1 -1
  107. package/src/bin/setup.js +1 -1
  108. package/src/bin/test-runner/index.js +1 -1
  109. package/src/bin/test-runner/runTest.js +1 -1
  110. package/src/bin/test-runner/testWorker.js +1 -1
  111. package/src/bin/testcafe/a11y-runner.js +1 -1
  112. package/src/bin/testcafe/command.js +1 -1
  113. package/src/bin/testcafe/reporter/index.js +1 -1
  114. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  115. package/src/bin/testcafe/session-registry.js +1 -1
  116. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  117. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  118. package/src/bin/testcafe/w3c-driver.js +1 -1
  119. package/src/bin/utils/apiUtilityMethods.js +1 -1
  120. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  121. package/src/bin/utils/constants.js +1 -1
  122. package/src/bin/utils/log4jsAppender.js +1 -1
  123. package/src/bin/utils/logPatcher.js +1 -1
  124. package/src/bin/utils/logReportingAPI.js +1 -1
  125. package/src/bin/utils/playwright-patcher.js +1 -1
  126. package/src/bin/utils/puppeteer-patcher.js +1 -1
  127. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  128. package/src/bin/utils/sharedUtils.js +1 -1
  129. package/src/bin/v2/TestInfo.js +1 -1
  130. package/src/bin/v2/browserstackCLI.js +1 -1
  131. package/src/bin/v2/cliUtils.js +1 -1
  132. package/src/bin/v2/customTagManager.js +1 -1
  133. package/src/bin/v2/eventDispatcher.js +1 -1
  134. package/src/bin/v2/framework/automationFramework.js +1 -1
  135. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  137. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  138. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  139. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  140. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  143. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  144. package/src/bin/v2/framework/testFramework.js +1 -1
  145. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  146. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  147. package/src/bin/v2/grpcClient.js +1 -1
  148. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  149. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  150. package/src/bin/v2/instances/trackedContext.js +1 -1
  151. package/src/bin/v2/instances/trackedInstance.js +1 -1
  152. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  153. package/src/bin/v2/modules/baseModule.js +1 -1
  154. package/src/bin/v2/modules/loadTestModule.js +1 -1
  155. package/src/bin/v2/modules/observabilityModule.js +1 -1
  156. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  157. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  158. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  159. package/src/bin/v2/modules/testhubModule.js +1 -1
  160. package/src/bin/v2/sdkErrorHandler.js +1 -1
  161. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  162. package/src/bin/v2/state/hookState.js +1 -1
  163. package/src/bin/v2/state/testFrameworkState.js +1 -1
  164. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  165. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  166. package/src/bin/v2/utils/jest-utils.js +1 -1
  167. package/src/bin/vanilla-js/command.js +1 -1
  168. package/src/browserStackSdk.js +1 -1
  169. package/src/helpers/BrowserStackSetup.js +1 -1
  170. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  171. package/src/helpers/accessibility-automation/constants.js +1 -1
  172. package/src/helpers/accessibility-automation/helper.js +1 -1
  173. package/src/helpers/accessibility-automation/scripts.js +1 -1
  174. package/src/helpers/ats/constants.js +1 -1
  175. package/src/helpers/ats/helper.js +1 -1
  176. package/src/helpers/caCertHelper.js +1 -1
  177. package/src/helpers/capsMapping.js +1 -1
  178. package/src/helpers/central-scanner/constants.js +1 -1
  179. package/src/helpers/central-scanner/helpers.js +1 -1
  180. package/src/helpers/classLogger.js +1 -1
  181. package/src/helpers/driverInitErrorReporter.js +1 -1
  182. package/src/helpers/globals.js +1 -1
  183. package/src/helpers/helper.js +1 -1
  184. package/src/helpers/logger.js +1 -1
  185. package/src/helpers/metadata.js +1 -1
  186. package/src/helpers/patchHelper.js +1 -1
  187. package/src/helpers/patchHelpers.js +1 -1
  188. package/src/helpers/percy/Percy.js +1 -1
  189. package/src/helpers/percy/PercyBinary.js +1 -1
  190. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  191. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  192. package/src/helpers/percy/PercySDK.js +1 -1
  193. package/src/helpers/percy/index.js +1 -1
  194. package/src/helpers/percy/utils.js +1 -1
  195. package/src/helpers/performance/constants.js +1 -1
  196. package/src/helpers/performance/performance-tester.js +1 -1
  197. package/src/helpers/playwright-helper.js +1 -1
  198. package/src/helpers/processHelper.js +1 -1
  199. package/src/helpers/puppeteer-helper.js +1 -1
  200. package/src/helpers/request-spy.js +1 -1
  201. package/src/helpers/setKeepAlive.js +1 -1
  202. package/src/helpers/stackFrameUtils.js +1 -1
  203. package/src/helpers/test-observability/constants.js +1 -1
  204. package/src/helpers/test-observability/error-handler.js +1 -1
  205. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  206. package/src/helpers/test-observability/sessionHandler.js +1 -1
  207. package/src/helpers/test-observability/utils.js +1 -1
  208. package/src/helpers/test-orchestration/constants.js +1 -1
  209. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  210. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  211. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  212. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  213. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  214. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  215. package/src/helpers/testhub/constants.js +1 -1
  216. package/src/helpers/testhub/testhubHandler.js +1 -1
  217. package/src/helpers/testhub/utils.js +1 -1
  218. package/src/helpers/utilities.js +1 -1
  219. package/src/helpers/w3cMapping.js +1 -1
  220. package/src/hubAllocationMethods.js +1 -1
  221. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x27ec(_0x3eb4ea,_0x3314ce){const _0x4eef5c=a15_0x4eef();return a15_0x27ec=function(_0x27ec40,_0x377c98){_0x27ec40=_0x27ec40-0x198;let _0xa5c7c0=_0x4eef5c[_0x27ec40];return _0xa5c7c0;},a15_0x27ec(_0x3eb4ea,_0x3314ce);}const a15_0x4d5af9=a15_0x27ec;function a15_0x4eef(){const _0x354077=['GET','running','command','/packages/cli/get-all-grids','grid-id','tQyrl','status','INFO','eHkAz','username','grid','desc','parse','builder','readFileSync','flZAE','LITEM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','4286493QUHHmx','lDTOd','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','https://','password','fNsPt','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','GPBhJ','zzWxc','bstackUsername','747694RZfzgx','epilogue','7635220HjPWsr','zaUXt','allGrids','13412511FJNbaW','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','requestId','list','push','clusterName','QNvxY','2imBSaF','../../config/constants','crRuE','server-error','tpBTr','type','grid-name','argv','log','stringify','6162aajGLO','3408600YxHZlJ','../../utils/utilityMethods','queued','boolean','handler','BgPNB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zxDZT','got','924848qKevYG','../../utils/instrumentationUtils','existsSync','unauthorised','/packages/cli/get-grids','uuid','cluster-name','fFZXf','PnYGV','sGPDv','ERROR','3934qCuCTY','Browserstack','TfGHs','niRSJ','grids','statusCode','init-not-called','unknown-error','error','stack','forEach'];a15_0x4eef=function(){return _0x354077;};return a15_0x4eef();}(function(_0x4ba2cd,_0x4ca034){const _0x12d59e=a15_0x27ec,_0x3cbf66=_0x4ba2cd();while(!![]){try{const _0x92b500=-parseInt(_0x12d59e(0x1ca))/0x1*(-parseInt(_0x12d59e(0x1d7))/0x2)+-parseInt(_0x12d59e(0x1c0))/0x3+-parseInt(_0x12d59e(0x1e2))/0x4+parseInt(_0x12d59e(0x1cc))/0x5+parseInt(_0x12d59e(0x1e1))/0x6*(-parseInt(_0x12d59e(0x1a3))/0x7)+-parseInt(_0x12d59e(0x198))/0x8+parseInt(_0x12d59e(0x1cf))/0x9;if(_0x92b500===_0x4ca034)break;else _0x3cbf66['push'](_0x3cbf66['shift']());}catch(_0x5262b5){_0x3cbf66['push'](_0x3cbf66['shift']());}}}(a15_0x4eef,0xc12d8));const fs=require('fs'),got=require(a15_0x4d5af9(0x1ea)),{table}=require('table'),{v4:uuidv4}=require(a15_0x4d5af9(0x19d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4d5af9(0x1d8)),{getCredentialsPath,getAuthHeader}=require(a15_0x4d5af9(0x1e3)),{sendInstrumentationEvent}=require(a15_0x4d5af9(0x199));exports[a15_0x4d5af9(0x1b0)]=a15_0x4d5af9(0x1a7),exports[a15_0x4d5af9(0x1b9)]=a15_0x4d5af9(0x1c2),exports[a15_0x4d5af9(0x1bb)]=function(_0x1d64f5){const _0x3cd708=a15_0x4d5af9,_0x1073b4={};_0x1073b4['jYQhc']=_0x3cd708(0x1c6),_0x1073b4[_0x3cd708(0x1c5)]=_0x3cd708(0x1e5),_0x1073b4['Htkcy']='help';const _0x54bf05=_0x1073b4,_0x59773a={};_0x59773a['description']=_0x54bf05['jYQhc'],_0x59773a[_0x3cd708(0x1dc)]=_0x54bf05[_0x3cd708(0x1c5)];const _0x5a7aca={};return _0x5a7aca['all-grids']=_0x59773a,_0x1d64f5['usage'](HELP_HEADER_MESSAGE[_0x3cd708(0x1d3)][_0x3cd708(0x1b8)])[_0x3cd708(0x1cb)](HELP_FOOTER_MESSAGE)['options'](_0x5a7aca)['help'](_0x54bf05['Htkcy'])[_0x3cd708(0x1de)];},exports[a15_0x4d5af9(0x1e6)]=async function(_0x27bf34){const _0x51c595=a15_0x4d5af9,_0x293167={'zaUXt':function(_0x5efda8){return _0x5efda8();},'rrtci':_0x51c595(0x1e8),'eHkAz':function(_0x31e8e9,_0x4c52fb,_0x260f4a,_0x5dba00,_0x25711a,_0x43c351,_0x2f7a8e){return _0x31e8e9(_0x4c52fb,_0x260f4a,_0x5dba00,_0x25711a,_0x43c351,_0x2f7a8e);},'BgPNB':'list-grids-called','tpBTr':_0x51c595(0x1a9),'tQyrl':_0x51c595(0x1ae),'zxDZT':function(_0x2be301,_0x56d400,_0x1f1874){return _0x2be301(_0x56d400,_0x1f1874);},'crRuE':function(_0x3feae7,_0x2209f1,_0x53da81){return _0x3feae7(_0x2209f1,_0x53da81);},'LxUBk':function(_0x1ef442,_0x26184f){return _0x1ef442!==_0x26184f;},'zzWxc':function(_0x3a3ed1,_0xfef5d6){return _0x3a3ed1!==_0xfef5d6;},'sGPDv':function(_0x110d48,_0x146348){return _0x110d48===_0x146348;},'tdnNs':'\x0aFound\x20the\x20following\x20grids:\x0a','tKscl':_0x51c595(0x1b2),'PnYGV':_0x51c595(0x1dd),'LITEM':_0x51c595(0x1b4),'niRSJ':_0x51c595(0x1af),'TfGHs':_0x51c595(0x1e4),'PyEzM':_0x51c595(0x19e),'lDaXP':function(_0xb0a429,_0x1c5f21){return _0xb0a429(_0x1c5f21);},'fFZXf':_0x51c595(0x1d1),'QNvxY':function(_0x73bf3c,_0x2558e6,_0x296675,_0x14fa8c,_0x1b01b2,_0x3a0c87,_0x1e240e){return _0x73bf3c(_0x2558e6,_0x296675,_0x14fa8c,_0x1b01b2,_0x3a0c87,_0x1e240e);},'lDTOd':_0x51c595(0x19b),'UxFjQ':function(_0x5396ea,_0x399fdf,_0x3b8bd5,_0x36dc20,_0x3995fc,_0x15a70c,_0x21c1b9){return _0x5396ea(_0x399fdf,_0x3b8bd5,_0x36dc20,_0x3995fc,_0x15a70c,_0x21c1b9);},'GPBhJ':_0x51c595(0x1da),'flZAE':_0x51c595(0x1aa)};try{global_registry[_0x51c595(0x1d2)]=_0x293167[_0x51c595(0x1cd)](uuidv4);!fs[_0x51c595(0x19a)](_0x293167[_0x51c595(0x1cd)](getCredentialsPath))&&(console[_0x51c595(0x1ab)](_0x293167['rrtci']),await _0x293167[_0x51c595(0x1b6)](sendInstrumentationEvent,_0x27bf34,_0x293167[_0x51c595(0x1e7)],messageTypes[_0x51c595(0x1a2)],_0x293167[_0x51c595(0x1db)],null,_0x27bf34),process[_0x51c595(0x1d0)](0x1));const _0x4411dc=JSON['parse'](fs[_0x51c595(0x1bc)](_0x293167[_0x51c595(0x1cd)](getCredentialsPath)));let _0x5ac0c2=_0x51c595(0x1c3)+AG_API_URL+_0x51c595(0x19c);_0x27bf34[_0x51c595(0x1ce)]&&(_0x5ac0c2=_0x51c595(0x1c3)+AG_API_URL+_0x51c595(0x1b1));const _0x20dc8e={'method':_0x293167[_0x51c595(0x1b3)],'headers':_0x293167[_0x51c595(0x1e9)](getAuthHeader,_0x4411dc[_0x51c595(0x1a4)][_0x51c595(0x1b7)],_0x4411dc[_0x51c595(0x1a4)][_0x51c595(0x1c4)]),'throwHttpErrors':![]};global_registry[_0x51c595(0x1c9)]=_0x4411dc[_0x51c595(0x1a4)][_0x51c595(0x1b7)],global_registry['bstackAccesskey']=_0x4411dc[_0x51c595(0x1a4)]['password'],_0x293167['eHkAz'](sendInstrumentationEvent,_0x27bf34,_0x293167['BgPNB'],messageTypes[_0x51c595(0x1b5)],null,null,_0x27bf34);const _0x56592d=await _0x293167[_0x51c595(0x1d9)](got,_0x5ac0c2,_0x20dc8e);if(_0x293167['LxUBk'](_0x56592d,null)&&_0x293167[_0x51c595(0x1c8)](_0x56592d,undefined)&&_0x293167[_0x51c595(0x1a1)](_0x56592d[_0x51c595(0x1a8)],0xc8)){const _0x264444=JSON[_0x51c595(0x1ba)](_0x56592d['body']);console[_0x51c595(0x1df)](_0x293167['tdnNs']);const _0x11dffb=[];_0x11dffb[_0x51c595(0x1d4)]([_0x293167['tKscl'],_0x293167[_0x51c595(0x1a0)],_0x293167[_0x51c595(0x1be)],_0x293167[_0x51c595(0x1a6)],_0x293167[_0x51c595(0x1a5)],_0x293167['PyEzM']]),_0x264444[_0x51c595(0x1ad)](_0x5852fe=>{const _0x358e18=_0x51c595;_0x11dffb['push']([_0x5852fe['id'],_0x5852fe['name'],_0x5852fe['status'],_0x5852fe[_0x358e18(0x1af)],_0x5852fe['queued'],_0x5852fe[_0x358e18(0x1d5)]]);}),console[_0x51c595(0x1df)](_0x293167['lDaXP'](table,_0x11dffb)),process[_0x51c595(0x1d0)](0x0);}_0x293167[_0x51c595(0x1a1)](_0x56592d['statusCode'],0x191)&&(console[_0x51c595(0x1ab)](_0x293167[_0x51c595(0x19f)]),await _0x293167[_0x51c595(0x1d6)](sendInstrumentationEvent,_0x27bf34,_0x293167[_0x51c595(0x1e7)],messageTypes[_0x51c595(0x1a2)],_0x293167[_0x51c595(0x1c1)],null,_0x27bf34),process[_0x51c595(0x1d0)](0x1)),console[_0x51c595(0x1ab)](_0x51c595(0x1bf)+JSON[_0x51c595(0x1e0)](_0x56592d)),await _0x293167['UxFjQ'](sendInstrumentationEvent,_0x27bf34,_0x293167[_0x51c595(0x1e7)],messageTypes['ERROR'],_0x293167[_0x51c595(0x1c7)],_0x56592d,_0x27bf34),process[_0x51c595(0x1d0)](0x1);}catch(_0x3c9e15){console[_0x51c595(0x1ab)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x3c9e15[_0x51c595(0x1ac)]),await _0x293167[_0x51c595(0x1d6)](sendInstrumentationEvent,_0x27bf34,_0x293167[_0x51c595(0x1e7)],messageTypes[_0x51c595(0x1a2)],_0x293167[_0x51c595(0x1bd)],_0x3c9e15,_0x27bf34),process[_0x51c595(0x1d0)](0x1);}};
1
+ const a15_0x42208e=a15_0x3558;function a15_0x3558(_0x263cc6,_0x43124f){const _0x1659cc=a15_0x1659();return a15_0x3558=function(_0x35580b,_0x580a26){_0x35580b=_0x35580b-0x117;let _0x53b6d7=_0x1659cc[_0x35580b];return _0x53b6d7;},a15_0x3558(_0x263cc6,_0x43124f);}function a15_0x1659(){const _0x2fe6f0=['9669SEPCjJ','description','bstackAccesskey','all-grids','desc','grids','grid','usage','HaOmZ','Browserstack','INFO','cRmkP','bzQHL','ERROR','error','8VKTRFN','fbLaf','TnPtE','password','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','table','../../utils/instrumentationUtils','juUuA','type','https://','1394602NvzPcO','../../utils/utilityMethods','bstackUsername','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','QGgiP','GET','statusCode','vLVxA','WxmpQ','PkpBg','command','clusterName','log','server-error','WPMOw','lbUpw','lazFW','options','running','MvJav','2616271zphzat','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../config/constants','list-grids-called','dCkms','queued','exit','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','epilogue','1182805mgVNxb','ysRSf','parse','allGrids','Ygogn','name','stringify','TlNGj','body','forEach','username','551445ahmJus','6BQMaLE','Failed\x20to\x20list\x20resources!\x20Error:\x20','requestId','uuid','init-not-called','grid-id','unauthorised','10552wTmikt','FNMgE','argv','got','/packages/cli/get-grids','ZwuOb','492355BpAKxk','list','9252UXSFQk','rGfXN','builder','ETPEy','cluster-name','unknown-error','14630kESHEP','hrEuW'];a15_0x1659=function(){return _0x2fe6f0;};return a15_0x1659();}(function(_0x5e631c,_0x42a0be){const _0xc4f294=a15_0x3558,_0x13f2fd=_0x5e631c();while(!![]){try{const _0x531006=parseInt(_0xc4f294(0x11a))/0x1+parseInt(_0xc4f294(0x13d))/0x2+parseInt(_0xc4f294(0x165))/0x3*(-parseInt(_0xc4f294(0x133))/0x4)+parseInt(_0xc4f294(0x15a))/0x5+-parseInt(_0xc4f294(0x166))/0x6*(parseInt(_0xc4f294(0x151))/0x7)+-parseInt(_0xc4f294(0x16d))/0x8*(-parseInt(_0xc4f294(0x11c))/0x9)+-parseInt(_0xc4f294(0x122))/0xa*(parseInt(_0xc4f294(0x124))/0xb);if(_0x531006===_0x42a0be)break;else _0x13f2fd['push'](_0x13f2fd['shift']());}catch(_0x5848e6){_0x13f2fd['push'](_0x13f2fd['shift']());}}}(a15_0x1659,0xb8465));const fs=require('fs'),got=require(a15_0x42208e(0x117)),{table}=require(a15_0x42208e(0x138)),{v4:uuidv4}=require(a15_0x42208e(0x169)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x42208e(0x153)),{getCredentialsPath,getAuthHeader}=require(a15_0x42208e(0x13e)),{sendInstrumentationEvent}=require(a15_0x42208e(0x139));exports[a15_0x42208e(0x147)]=a15_0x42208e(0x129),exports[a15_0x42208e(0x128)]=a15_0x42208e(0x140),exports[a15_0x42208e(0x11e)]=function(_0x5d7e26){const _0x231533=a15_0x42208e,_0x2b212f={};_0x2b212f['WxmpQ']=_0x231533(0x158),_0x2b212f[_0x231533(0x141)]='boolean',_0x2b212f[_0x231533(0x144)]='help';const _0x41fc6b=_0x2b212f,_0x50cb30={};_0x50cb30[_0x231533(0x125)]=_0x41fc6b[_0x231533(0x145)],_0x50cb30[_0x231533(0x13b)]=_0x41fc6b['QGgiP'];const _0x27a2e3={};return _0x27a2e3[_0x231533(0x127)]=_0x50cb30,_0x5d7e26[_0x231533(0x12b)](HELP_HEADER_MESSAGE[_0x231533(0x11b)][_0x231533(0x12a)])[_0x231533(0x159)](HELP_FOOTER_MESSAGE)[_0x231533(0x14e)](_0x27a2e3)['help'](_0x41fc6b[_0x231533(0x144)])[_0x231533(0x16f)];},exports['handler']=async function(_0x25bf2e){const _0x19dc86=a15_0x42208e,_0x37802b={'FNMgE':function(_0x4db4be){return _0x4db4be();},'zfWOz':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','PkpBg':function(_0x158ae7,_0x4abf30,_0x5b69aa,_0x53dc4e,_0x2da1a6,_0x35623e,_0x1bf70a){return _0x158ae7(_0x4abf30,_0x5b69aa,_0x53dc4e,_0x2da1a6,_0x35623e,_0x1bf70a);},'WPMOw':_0x19dc86(0x154),'ETPEy':_0x19dc86(0x16a),'cRmkP':function(_0x421918){return _0x421918();},'KOoez':_0x19dc86(0x142),'Lgmdo':function(_0x2259e6,_0x5d81fa,_0x5c23f6){return _0x2259e6(_0x5d81fa,_0x5c23f6);},'Ygogn':function(_0x29e50b,_0xb17d80,_0x76ce45,_0x482789,_0x119d61,_0xc168dc,_0x5c1e54){return _0x29e50b(_0xb17d80,_0x76ce45,_0x482789,_0x119d61,_0xc168dc,_0x5c1e54);},'FlBjn':function(_0x392786,_0x94534b,_0x6f08a4){return _0x392786(_0x94534b,_0x6f08a4);},'TlNGj':function(_0x214608,_0x4f81c0){return _0x214608!==_0x4f81c0;},'TnPtE':function(_0x42d5c8,_0xae6463){return _0x42d5c8===_0xae6463;},'hrEuW':'\x0aFound\x20the\x20following\x20grids:\x0a','dCkms':_0x19dc86(0x16b),'bzQHL':'grid-name','lazFW':'status','juUuA':_0x19dc86(0x14f),'nlKIy':_0x19dc86(0x156),'rGfXN':_0x19dc86(0x120),'RcgKi':function(_0x9f6ebd,_0x4b12fe){return _0x9f6ebd(_0x4b12fe);},'fbLaf':function(_0x1eaa6f,_0x862259){return _0x1eaa6f===_0x862259;},'HaOmZ':_0x19dc86(0x152),'MvJav':function(_0x33cbc7,_0x4681e0,_0x7051bd,_0x4e82e5,_0x915f78,_0x23326e,_0x2c7105){return _0x33cbc7(_0x4681e0,_0x7051bd,_0x4e82e5,_0x915f78,_0x23326e,_0x2c7105);},'lbUpw':_0x19dc86(0x16c),'KPYhq':_0x19dc86(0x14a),'ZwuOb':function(_0x57a01e,_0x46951a,_0x192bf7,_0x165b1e,_0x6acf53,_0x581bd3,_0x56a02b){return _0x57a01e(_0x46951a,_0x192bf7,_0x165b1e,_0x6acf53,_0x581bd3,_0x56a02b);},'ysRSf':_0x19dc86(0x121)};try{global_registry[_0x19dc86(0x168)]=_0x37802b[_0x19dc86(0x16e)](uuidv4);!fs['existsSync'](_0x37802b[_0x19dc86(0x16e)](getCredentialsPath))&&(console[_0x19dc86(0x132)](_0x37802b['zfWOz']),await _0x37802b[_0x19dc86(0x146)](sendInstrumentationEvent,_0x25bf2e,_0x37802b['WPMOw'],messageTypes['ERROR'],_0x37802b[_0x19dc86(0x11f)],null,_0x25bf2e),process[_0x19dc86(0x157)](0x1));const _0x23ae03=JSON[_0x19dc86(0x15c)](fs['readFileSync'](_0x37802b[_0x19dc86(0x12f)](getCredentialsPath)));let _0xb1d7c0='https://'+AG_API_URL+_0x19dc86(0x118);_0x25bf2e[_0x19dc86(0x15d)]&&(_0xb1d7c0=_0x19dc86(0x13c)+AG_API_URL+'/packages/cli/get-all-grids');const _0x5a7e5e={'method':_0x37802b['KOoez'],'headers':_0x37802b['Lgmdo'](getAuthHeader,_0x23ae03[_0x19dc86(0x12d)][_0x19dc86(0x164)],_0x23ae03[_0x19dc86(0x12d)][_0x19dc86(0x136)]),'throwHttpErrors':![]};global_registry[_0x19dc86(0x13f)]=_0x23ae03['Browserstack'][_0x19dc86(0x164)],global_registry[_0x19dc86(0x126)]=_0x23ae03['Browserstack'][_0x19dc86(0x136)],_0x37802b[_0x19dc86(0x15e)](sendInstrumentationEvent,_0x25bf2e,_0x37802b[_0x19dc86(0x14b)],messageTypes[_0x19dc86(0x12e)],null,null,_0x25bf2e);const _0xcc7554=await _0x37802b['FlBjn'](got,_0xb1d7c0,_0x5a7e5e);if(_0x37802b['TlNGj'](_0xcc7554,null)&&_0x37802b[_0x19dc86(0x161)](_0xcc7554,undefined)&&_0x37802b[_0x19dc86(0x135)](_0xcc7554['statusCode'],0xc8)){const _0x3cf21b=JSON['parse'](_0xcc7554[_0x19dc86(0x162)]);console[_0x19dc86(0x149)](_0x37802b[_0x19dc86(0x123)]);const _0x2a93e2=[];_0x2a93e2['push']([_0x37802b[_0x19dc86(0x155)],_0x37802b[_0x19dc86(0x130)],_0x37802b[_0x19dc86(0x14d)],_0x37802b[_0x19dc86(0x13a)],_0x37802b['nlKIy'],_0x37802b[_0x19dc86(0x11d)]]),_0x3cf21b[_0x19dc86(0x163)](_0x44d96d=>{const _0xcfdf3e=_0x19dc86;_0x2a93e2['push']([_0x44d96d['id'],_0x44d96d[_0xcfdf3e(0x15f)],_0x44d96d['status'],_0x44d96d[_0xcfdf3e(0x14f)],_0x44d96d[_0xcfdf3e(0x156)],_0x44d96d[_0xcfdf3e(0x148)]]);}),console['log'](_0x37802b['RcgKi'](table,_0x2a93e2)),process['exit'](0x0);}_0x37802b[_0x19dc86(0x134)](_0xcc7554[_0x19dc86(0x143)],0x191)&&(console['error'](_0x37802b[_0x19dc86(0x12c)]),await _0x37802b[_0x19dc86(0x150)](sendInstrumentationEvent,_0x25bf2e,_0x37802b[_0x19dc86(0x14b)],messageTypes['ERROR'],_0x37802b[_0x19dc86(0x14c)],null,_0x25bf2e),process[_0x19dc86(0x157)](0x1)),console['error'](_0x19dc86(0x137)+JSON[_0x19dc86(0x160)](_0xcc7554)),await _0x37802b[_0x19dc86(0x150)](sendInstrumentationEvent,_0x25bf2e,_0x37802b[_0x19dc86(0x14b)],messageTypes[_0x19dc86(0x131)],_0x37802b['KPYhq'],_0xcc7554,_0x25bf2e),process[_0x19dc86(0x157)](0x1);}catch(_0x39f699){console['error'](_0x19dc86(0x167)+_0x39f699['stack']),await _0x37802b[_0x19dc86(0x119)](sendInstrumentationEvent,_0x25bf2e,_0x37802b['WPMOw'],messageTypes[_0x19dc86(0x131)],_0x37802b[_0x19dc86(0x15b)],_0x39f699,_0x25bf2e),process[_0x19dc86(0x157)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x177c32=a16_0x5c9b;(function(_0x562286,_0x119e68){const _0x395356=a16_0x5c9b,_0x28e0c7=_0x562286();while(!![]){try{const _0x2970a3=parseInt(_0x395356(0x131))/0x1+-parseInt(_0x395356(0x12e))/0x2*(parseInt(_0x395356(0x11a))/0x3)+parseInt(_0x395356(0x122))/0x4+parseInt(_0x395356(0x12c))/0x5*(parseInt(_0x395356(0x11c))/0x6)+-parseInt(_0x395356(0x12d))/0x7+-parseInt(_0x395356(0x124))/0x8+parseInt(_0x395356(0x12b))/0x9*(parseInt(_0x395356(0x119))/0xa);if(_0x2970a3===_0x119e68)break;else _0x28e0c7['push'](_0x28e0c7['shift']());}catch(_0x31192e){_0x28e0c7['push'](_0x28e0c7['shift']());}}}(a16_0xf86e,0xac7e4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x177c32(0x12a));exports[a16_0x177c32(0x128)]='pre-check',exports['desc']=a16_0x177c32(0x12f),exports[a16_0x177c32(0x125)]=function(_0x191852){const _0x4cd398=a16_0x177c32,_0x31b75a={};_0x31b75a[_0x4cd398(0x121)]=_0x4cd398(0x11b),_0x31b75a['tXgtb']=_0x4cd398(0x120);const _0x204d59=_0x31b75a;return _0x191852[_0x4cd398(0x11e)](HELP_HEADER_MESSAGE[_0x4cd398(0x130)])[_0x4cd398(0x129)](HELP_FOOTER_MESSAGE)[_0x4cd398(0x127)](_0x204d59['qsQpe'])[_0x4cd398(0x11f)]()[_0x4cd398(0x126)]()[_0x4cd398(0x123)]()[_0x4cd398(0x120)](_0x204d59['tXgtb']);},exports[a16_0x177c32(0x11d)]=function(_0x48aa4d){};function a16_0x5c9b(_0x11d784,_0x354c77){const _0xf86e3e=a16_0xf86e();return a16_0x5c9b=function(_0x5c9b70,_0x50d9c9){_0x5c9b70=_0x5c9b70-0x119;let _0x1c0b0b=_0xf86e3e[_0x5c9b70];return _0x1c0b0b;},a16_0x5c9b(_0x11d784,_0x354c77);}function a16_0xf86e(){const _0x52a563=['Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','pre_check','215109CnOMhQ','9246150jQfXJn','32697WPWGcm','precheck_commands','160428LfdVSg','handler','usage','demandCommand','help','qsQpe','219036bZdwlW','strict','6072144VJGNuq','builder','recommendCommands','commandDir','command','epilogue','../config/constants','18fygtqM','70oGBSYA','5364128JCJDts','48COjpMs'];a16_0xf86e=function(){return _0x52a563;};return a16_0xf86e();}
1
+ const a16_0x1279e6=a16_0x4efd;(function(_0x1c1b37,_0x59fb2a){const _0x34f979=a16_0x4efd,_0x10b73b=_0x1c1b37();while(!![]){try{const _0x57098d=-parseInt(_0x34f979(0x1de))/0x1+-parseInt(_0x34f979(0x1d1))/0x2+-parseInt(_0x34f979(0x1d3))/0x3+-parseInt(_0x34f979(0x1da))/0x4+parseInt(_0x34f979(0x1cc))/0x5*(parseInt(_0x34f979(0x1dd))/0x6)+parseInt(_0x34f979(0x1cf))/0x7+parseInt(_0x34f979(0x1d7))/0x8;if(_0x57098d===_0x59fb2a)break;else _0x10b73b['push'](_0x10b73b['shift']());}catch(_0x247173){_0x10b73b['push'](_0x10b73b['shift']());}}}(a16_0x188e,0x98bf0));function a16_0x188e(){const _0x231815=['pre-check','pre_check','1264376vVumqz','strict','command','4469772djoUxQ','225734ivrbOM','fHXKz','precheck_commands','epilogue','recommendCommands','5cDlliW','builder','MsVwE','6725159NBfGlV','../config/constants','462132ncByvP','handler','2814180IgMvYf','help','desc','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','5047224LxhOGV'];a16_0x188e=function(){return _0x231815;};return a16_0x188e();}function a16_0x4efd(_0x57906f,_0xd0fce0){const _0x188e40=a16_0x188e();return a16_0x4efd=function(_0x4efd5b,_0x394a0f){_0x4efd5b=_0x4efd5b-0x1cb;let _0x34af45=_0x188e40[_0x4efd5b];return _0x34af45;},a16_0x4efd(_0x57906f,_0xd0fce0);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1279e6(0x1d0));exports[a16_0x1279e6(0x1dc)]=a16_0x1279e6(0x1d8),exports[a16_0x1279e6(0x1d5)]=a16_0x1279e6(0x1d6),exports[a16_0x1279e6(0x1cd)]=function(_0x816c2c){const _0x308a3d=a16_0x1279e6,_0xbd7451={};_0xbd7451[_0x308a3d(0x1ce)]=_0x308a3d(0x1e0),_0xbd7451[_0x308a3d(0x1df)]=_0x308a3d(0x1d4);const _0x2967aa=_0xbd7451;return _0x816c2c['usage'](HELP_HEADER_MESSAGE[_0x308a3d(0x1d9)])[_0x308a3d(0x1e1)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2967aa[_0x308a3d(0x1ce)])['demandCommand']()[_0x308a3d(0x1cb)]()[_0x308a3d(0x1db)]()[_0x308a3d(0x1d4)](_0x2967aa[_0x308a3d(0x1df)]);},exports[a16_0x1279e6(0x1d2)]=function(_0xca4ff7){};
@@ -1 +1 @@
1
- function a17_0x464c(_0x3982a5,_0x423138){const _0x7f5f27=a17_0x7f5f();return a17_0x464c=function(_0x464c1c,_0x24857e){_0x464c1c=_0x464c1c-0xd0;let _0x237eac=_0x7f5f27[_0x464c1c];return _0x237eac;},a17_0x464c(_0x3982a5,_0x423138);}const a17_0x715358=a17_0x464c;(function(_0x3ccb45,_0x11f7b){const _0x3a92be=a17_0x464c,_0xe0abaa=_0x3ccb45();while(!![]){try{const _0x785119=-parseInt(_0x3a92be(0x121))/0x1+-parseInt(_0x3a92be(0x10d))/0x2+parseInt(_0x3a92be(0x13f))/0x3+parseInt(_0x3a92be(0x12b))/0x4+parseInt(_0x3a92be(0xeb))/0x5*(-parseInt(_0x3a92be(0x1c2))/0x6)+parseInt(_0x3a92be(0x17c))/0x7+parseInt(_0x3a92be(0xdd))/0x8;if(_0x785119===_0x11f7b)break;else _0xe0abaa['push'](_0xe0abaa['shift']());}catch(_0x197cb5){_0xe0abaa['push'](_0xe0abaa['shift']());}}}(a17_0x7f5f,0x553fe));const fs=require('fs'),ws=require('ws'),got=require(a17_0x715358(0xf7)),{v4:uuidv4}=require(a17_0x715358(0xfe)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x715358(0x16a)),{logger}=require(a17_0x715358(0x194)),{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_0x715358(0x1b3)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x715358(0x157));exports[a17_0x715358(0x119)]=a17_0x715358(0xe8),exports['desc']=a17_0x715358(0xdb),exports[a17_0x715358(0x186)]=function(_0x3a5735){const _0x59b61c=a17_0x715358,_0x52edd2={};_0x52edd2[_0x59b61c(0x147)]=_0x59b61c(0x1ac),_0x52edd2['zACBi']='string',_0x52edd2['qVkoK']=_0x59b61c(0xdf),_0x52edd2[_0x59b61c(0xea)]=_0x59b61c(0x13c),_0x52edd2[_0x59b61c(0xd0)]=_0x59b61c(0x18c),_0x52edd2[_0x59b61c(0x145)]=_0x59b61c(0x159);const _0x526fbe=_0x52edd2,_0xa7731={};_0xa7731['description']=_0x526fbe[_0x59b61c(0x147)],_0xa7731[_0x59b61c(0x1b0)]=_0x526fbe['zACBi'];const _0x36d41b={};_0x36d41b['description']=_0x526fbe[_0x59b61c(0x1ab)],_0x36d41b[_0x59b61c(0x1b0)]=_0x526fbe[_0x59b61c(0x104)];const _0x1c00d6={};_0x1c00d6['description']=_0x526fbe[_0x59b61c(0xea)],_0x1c00d6[_0x59b61c(0x1b0)]=_0x526fbe[_0x59b61c(0x104)];const _0x22f610={};_0x22f610[_0x59b61c(0x164)]=_0x526fbe[_0x59b61c(0xd0)],_0x22f610['type']=_0x526fbe[_0x59b61c(0x104)];const _0x5e1ff8={};return _0x5e1ff8[_0x59b61c(0x148)]=_0xa7731,_0x5e1ff8[_0x59b61c(0x1b8)]=_0x36d41b,_0x5e1ff8[_0x59b61c(0x1b4)]=_0x1c00d6,_0x5e1ff8['grid-profile']=_0x22f610,_0x3a5735['usage'](HELP_HEADER_MESSAGE[_0x59b61c(0x167)])[_0x59b61c(0x1b7)](HELP_FOOTER_MESSAGE)[_0x59b61c(0x107)](_0x5e1ff8)['help'](_0x526fbe['airdJ'])[_0x59b61c(0x10c)];};async function inputValidation(_0x11cc86,_0x5b005f){const _0x1c2771=a17_0x715358,_0x3f630e={'hpZIt':function(_0x4ba40c,_0x128744){return _0x4ba40c+_0x128744;},'ZijwN':'Success','nIlPN':'Failure','mnVgG':function(_0x2362cd,_0x638a48){return _0x2362cd||_0x638a48;},'yxynR':_0x1c2771(0x15c),'xuwvC':_0x1c2771(0xfd),'azilc':_0x1c2771(0x11e),'tgeFA':_0x1c2771(0x1b4),'KLiHz':_0x1c2771(0x148),'GAPOJ':_0x1c2771(0x101),'WxROD':_0x1c2771(0x1ac),'oUBNa':'string','hcPzT':_0x1c2771(0xdf),'bndaG':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','xffwL':_0x1c2771(0x18c),'KWSTs':_0x1c2771(0x159),'FLJtj':_0x1c2771(0x1b8),'lmuww':function(_0x1f38bb,_0x2d662f){return _0x1f38bb!==_0x2d662f;},'TaBEY':_0x1c2771(0x1b6),'ndRHF':function(_0x188258,_0x318cb0){return _0x188258===_0x318cb0;},'nFrni':_0x1c2771(0xda),'hPhwu':'PlyiP','GVLpR':_0x1c2771(0x130),'WLqKl':'kHONx','oPDLs':'YJYPP','RPWpO':_0x1c2771(0x10f),'qwomq':'cHEAm','IngIl':function(_0x263e4c,_0x559bf4){return _0x263e4c>_0x559bf4;},'zQcOj':'DCWHy','GYyll':_0x1c2771(0x172),'aItEl':function(_0x2b187f,_0x16f6b2,_0x537774,_0x2d93f5,_0x32e369,_0x54bb69,_0x4c9fea,_0x4daf73){return _0x2b187f(_0x16f6b2,_0x537774,_0x2d93f5,_0x32e369,_0x54bb69,_0x4c9fea,_0x4daf73);},'eDGaA':_0x1c2771(0x155),'SWxOj':'pre-check-cluster-args-not-passed','PEhpb':_0x1c2771(0xf2),'ynFau':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','iFqvg':'cloud-provider-not-supported','GzPki':'dWnbS','XeErp':_0x1c2771(0x115),'oexCa':function(_0x121ba4,_0x481e94){return _0x121ba4===_0x481e94;},'yuwon':_0x1c2771(0x1af),'FEfBd':_0x1c2771(0xd4),'LphyL':'GET','mFpKJ':function(_0x221df2,_0x5898ae,_0x585694){return _0x221df2(_0x5898ae,_0x585694);},'oBwIh':function(_0x24849e,_0x1e7f1e,_0x4284b5,_0x55023e,_0x4f768b,_0xfac73c){return _0x24849e(_0x1e7f1e,_0x4284b5,_0x55023e,_0x4f768b,_0xfac73c);},'wwfkg':'pre-check','ojFym':_0x1c2771(0x1a3),'cTkvs':function(_0x191d62,_0x59dac3){return _0x191d62===_0x59dac3;},'sAiHy':function(_0x5ad0c3,_0x47286d){return _0x5ad0c3===_0x47286d;},'OaaBv':_0x1c2771(0x144),'Aqcyx':function(_0x570182,_0x555f3e){return _0x570182(_0x555f3e);},'IybgH':_0x1c2771(0x114),'XGuwc':'PSpkG','KeMfd':_0x1c2771(0x14c),'yyPQc':function(_0x160644,_0x5d02c7){return _0x160644===_0x5d02c7;},'itzHc':_0x1c2771(0x191),'qpslV':_0x1c2771(0x198),'CNeKo':function(_0x505d21,_0x2dc79a){return _0x505d21!==_0x2dc79a;},'WkBZo':_0x1c2771(0xd7),'eNyyM':_0x1c2771(0x1c3),'nOjSj':function(_0x5f42e4,_0x17f0ba){return _0x5f42e4===_0x17f0ba;},'yPhRj':'OKMHC','kLZJH':_0x1c2771(0x18b),'lOyri':_0x1c2771(0x118),'TYWHS':_0x1c2771(0xdc),'AzCRE':function(_0x3b6c72,_0x400619,_0x30fbab,_0xa16536,_0x57599f,_0x4fd3ba,_0x2cad43,_0x242a57){return _0x3b6c72(_0x400619,_0x30fbab,_0xa16536,_0x57599f,_0x4fd3ba,_0x2cad43,_0x242a57);}};let _0x1c65e5;try{if(_0x3f630e['lmuww'](_0x3f630e[_0x1c2771(0x18e)],_0x3f630e[_0x1c2771(0x18e)]))_0x5b8f1b=_0x464915;else{if(_0x11cc86[_0x1c2771(0xfc)]||_0x11cc86['cloudProvider']||_0x11cc86['region']){if(_0x3f630e[_0x1c2771(0x100)](_0x3f630e[_0x1c2771(0x1aa)],_0x3f630e[_0x1c2771(0x165)])){const {header:_0x5888b2,response:_0x3bd15e}=_0x2497d1,{status:_0x72d71,data:_0x5f9e90,error:_0x5ca288}=_0x3bd15e;_0x5cddae+=_0x5888b2+'\x20#'+_0x3f630e[_0x1c2771(0x1a9)](_0x246690,0x1)+'\x0a',_0x1053c0+=_0x1c2771(0x1a4)+(_0x72d71?_0x3f630e['ZijwN']:_0x3f630e[_0x1c2771(0x112)])+'\x0a',_0x10b8c0+=_0x1c2771(0x11b)+_0x3f630e[_0x1c2771(0x161)](_0x5f9e90,_0x3f630e['yxynR'])+'\x0a',_0x5ca288&&(_0x567f9c+=_0x3f630e['xuwvC'],_0x42eadf+=_0x1c2771(0x16e)+(_0x5ca288['message']||_0x3f630e[_0x1c2771(0xff)])+'\x0a',_0x49983a+=_0x1c2771(0x12f)+(_0x5ca288[_0x1c2771(0x17b)]||_0x3f630e[_0x1c2771(0xff)])+'\x0a',_0x5e2577+='\x20\x20Stack:\x20'+(_0x5ca288['stack']||_0x3f630e['yxynR'])+'\x0a'),_0x109939+='\x0a\x0a';}else{const _0x16419a=[];if(!_0x11cc86['clusterName']){if(_0x3f630e[_0x1c2771(0x162)](_0x3f630e[_0x1c2771(0x143)],_0x3f630e['WLqKl']))_0x16419a[_0x1c2771(0x175)](_0x3f630e['KLiHz']);else{const _0x3e767b={};_0x3e767b[_0x1c2771(0x1b0)]=_0x9490ef[_0x1c2771(0xfa)],_0x3e767b[_0x1c2771(0xf9)]=_0x3c4b71,_0x53c52b[_0x1c2771(0x127)](_0x4aaf76,_0x3e767b,_0x3f630e[_0x1c2771(0x105)],!![]);}};!_0x11cc86[_0x1c2771(0x193)]&&(_0x3f630e[_0x1c2771(0x162)](_0x3f630e[_0x1c2771(0x125)],_0x3f630e['RPWpO'])?_0x16419a[_0x1c2771(0x175)](_0x3f630e[_0x1c2771(0x1b9)]):_0x258ef5+='Cluster\x20'+_0x468496[_0x1c2771(0xfc)]+_0x1c2771(0xd2));;!_0x11cc86['region']&&(_0x3f630e[_0x1c2771(0x162)](_0x3f630e[_0x1c2771(0x126)],_0x3f630e[_0x1c2771(0x126)])?_0xe5c1be[_0x1c2771(0x175)](_0x3f630e[_0x1c2771(0x19f)]):_0x16419a[_0x1c2771(0x175)](_0x3f630e[_0x1c2771(0x19f)]));;_0x3f630e[_0x1c2771(0x1b5)](_0x16419a[_0x1c2771(0x1b2)],0x0)&&(_0x3f630e[_0x1c2771(0x100)](_0x3f630e[_0x1c2771(0xe0)],_0x3f630e[_0x1c2771(0xde)])?_0x207170[_0x1c2771(0x11e)](_0x1c2771(0x1c0)+_0x2de2bf[_0x1c2771(0x11e)][_0x1c2771(0x19a)]):(_0x1c65e5=_0x1c2771(0x1a0)+_0x16419a[_0x1c2771(0x152)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x3f630e[_0x1c2771(0x110)](reportToGalactusAndSendToEDS,_0x11cc86,_0x5b005f,_0x1c65e5,messageTypes[_0x1c2771(0xf5)],_0x3f630e[_0x1c2771(0x11c)],_0x3f630e[_0x1c2771(0x1bf)],_0x3f630e[_0x1c2771(0x105)]),logger['error'](_0x1c65e5),process[_0x1c2771(0xf6)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1c2771(0x19e)](_0x11cc86[_0x1c2771(0x193)][_0x1c2771(0x1a1)]())&&(_0x3f630e['ndRHF'](_0x3f630e[_0x1c2771(0x12e)],_0x3f630e[_0x1c2771(0x12e)])?(_0x1c65e5=_0x3f630e[_0x1c2771(0x117)],await _0x3f630e[_0x1c2771(0x110)](reportToGalactusAndSendToEDS,_0x11cc86,_0x5b005f,_0x1c65e5,messageTypes[_0x1c2771(0xf5)],_0x3f630e[_0x1c2771(0x11c)],_0x3f630e[_0x1c2771(0x13a)],_0x3f630e[_0x1c2771(0x105)]),logger[_0x1c2771(0x11e)](_0x1c65e5),!_0x11cc86[_0x1c2771(0x193)]&&(_0x3f630e[_0x1c2771(0x162)](_0x3f630e['GzPki'],_0x3f630e[_0x1c2771(0xec)])?(logger[_0x1c2771(0x176)](_0x1c2771(0x1c4)+DEFAULT_CLUSTER_DETAILS[_0x1c2771(0x1a2)]+'\x20'),_0x11cc86[_0x1c2771(0x193)]=DEFAULT_CLUSTER_DETAILS[_0x1c2771(0x1a2)]):_0x261121[_0x1c2771(0xf6)](0x1))):_0x425fd8[_0x1c2771(0x175)](_0x3f630e[_0x1c2771(0x16c)])),global_registry[_0x1c2771(0xfc)]=_0x11cc86[_0x1c2771(0xfc)],global_registry['cloudProvider']=_0x11cc86[_0x1c2771(0x193)],global_registry['clusterRegion']=_0x11cc86[_0x1c2771(0x1b4)];}}else{if(_0x11cc86[_0x1c2771(0x103)]){if(_0x3f630e[_0x1c2771(0x19c)](_0x3f630e[_0x1c2771(0x1c7)],_0x3f630e[_0x1c2771(0x1bd)]))_0x9521ff[_0x1c2771(0x11e)](_0x3f630e[_0x1c2771(0x190)]),_0x5e4303[_0x1c2771(0xf6)](0x1);else{global_registry[_0x1c2771(0x103)]=_0x11cc86['gridProfile'],logger[_0x1c2771(0x19d)]('grid\x20profile\x20flow\x20'+_0x11cc86[_0x1c2771(0x103)]);const _0x24fc48=_0x1c2771(0x195)+AG_API_URL+_0x1c2771(0x1ba),_0x2269a6={};_0x2269a6[_0x1c2771(0x133)]=_0x3f630e[_0x1c2771(0x16b)],_0x2269a6[_0x1c2771(0x12a)]=global_registry[_0x1c2771(0xf3)],_0x2269a6[_0x1c2771(0xee)]=![];const _0x23642e=_0x2269a6,_0x103479=await _0x3f630e['mFpKJ'](got,_0x24fc48,_0x23642e),_0xcb9b4d=await _0x3f630e['oBwIh'](responseValidation,_0x103479,_0x3f630e['wwfkg'],_0x3f630e[_0x1c2771(0x170)],_0x11cc86,_0x5b005f);let _0x580d41={};if(_0x3f630e['cTkvs'](_0xcb9b4d,0xc8)){if(_0x3f630e['sAiHy'](_0x3f630e[_0x1c2771(0x178)],_0x3f630e[_0x1c2771(0x178)])){const _0x51c25e=JSON[_0x1c2771(0x166)](_0x103479[_0x1c2771(0x196)]),_0x4dea37=_0x51c25e[_0x1c2771(0x109)](_0x4f1915=>_0x4f1915[_0x1c2771(0xf0)]===_0x11cc86['gridProfile'])||null;if(_0x3f630e[_0x1c2771(0x151)](isUndefined,_0x4dea37)){if(_0x3f630e[_0x1c2771(0x162)](_0x3f630e['IybgH'],_0x3f630e[_0x1c2771(0x181)]))_0x1c65e5='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x11cc86[_0x1c2771(0x103)]+_0x1c2771(0x138),await _0x3f630e[_0x1c2771(0x110)](reportToGalactusAndSendToEDS,_0x11cc86,_0x5b005f,_0x1c65e5,messageTypes[_0x1c2771(0xf5)],_0x3f630e[_0x1c2771(0x11c)],_0x3f630e[_0x1c2771(0x156)],_0x3f630e[_0x1c2771(0x105)]),logger[_0x1c2771(0x11e)](_0x1c65e5),process['exit'](0x1);else{const _0x3329cc={};_0x3329cc[_0x1c2771(0x164)]=_0x3f630e[_0x1c2771(0xe2)],_0x3329cc[_0x1c2771(0x1b0)]=_0x3f630e[_0x1c2771(0x174)];const _0x1b06be={};_0x1b06be[_0x1c2771(0x164)]=_0x3f630e[_0x1c2771(0x184)],_0x1b06be['type']=_0x3f630e[_0x1c2771(0x174)];const _0x2bf81c={};_0x2bf81c[_0x1c2771(0x164)]=_0x3f630e[_0x1c2771(0xf8)],_0x2bf81c[_0x1c2771(0x1b0)]=_0x3f630e[_0x1c2771(0x174)];const _0x102e57={};_0x102e57[_0x1c2771(0x164)]=_0x3f630e['xffwL'],_0x102e57['type']=_0x3f630e[_0x1c2771(0x174)];const _0x275217={};return _0x275217[_0x1c2771(0x148)]=_0x3329cc,_0x275217['cloud-provider']=_0x1b06be,_0x275217[_0x1c2771(0x1b4)]=_0x2bf81c,_0x275217[_0x1c2771(0x1a3)]=_0x102e57,_0x2f96d6[_0x1c2771(0x10b)](_0x1ce1d0['pre_check'])[_0x1c2771(0x1b7)](_0x3ec00d)[_0x1c2771(0x107)](_0x275217)[_0x1c2771(0x159)](_0x3f630e[_0x1c2771(0xd9)])['argv'];}}else _0x3f630e[_0x1c2771(0x1ad)](_0x3f630e['itzHc'],_0x3f630e['qpslV'])?(_0x428bb3[_0x1c2771(0x176)]('['+_0x342fa5+_0x1c2771(0x102)+_0x413c45['status']+_0x1c2771(0x177)+_0x3c0828[_0x1c2771(0x12d)]+_0x1c2771(0x197)+_0x11d605[_0x1c2771(0x11e)]),_0x51037c[_0x1c2771(0x11e)]&&_0x16f69a[_0x1c2771(0x11e)](_0x1c2771(0x1c0)+_0x170d67['error'][_0x1c2771(0x19a)])):_0x580d41=_0x4dea37;}else _0x3c235a+=_0x3f630e[_0x1c2771(0x18a)],_0x5eb7c1+='\x20\x20Message:\x20'+(_0x4e05be['message']||_0x3f630e[_0x1c2771(0xff)])+'\x0a',_0x6909e+=_0x1c2771(0x12f)+(_0x47f0f1['code']||_0x3f630e[_0x1c2771(0xff)])+'\x0a',_0x2a5f80+=_0x1c2771(0x17a)+(_0x4820fa[_0x1c2771(0x19a)]||_0x3f630e[_0x1c2771(0xff)])+'\x0a';}else _0x3f630e[_0x1c2771(0x15e)](_0x3f630e[_0x1c2771(0x1c5)],_0x3f630e[_0x1c2771(0x1c5)])?(_0x2b28ff[_0x1c2771(0x176)]('Setting\x20cloud\x20provider\x20as\x20'+_0x39687c['CLOUD_PROVIDER']+'\x20'),_0x408cc7[_0x1c2771(0x193)]=_0x2d34aa['CLOUD_PROVIDER']):process[_0x1c2771(0xf6)](0x1);const _0x1c2282={};_0x1c2282[_0x1c2771(0x1b0)]=WS_EVENTS[_0x1c2771(0xfa)],_0x1c2282[_0x1c2771(0xf9)]=_0x3f630e['eNyyM'],webSocketUtils['sendEventToBackend'](_0x5b005f,_0x1c2282),global_registry[_0x1c2771(0x193)]=_0x580d41[_0x1c2771(0x193)],global_registry[_0x1c2771(0xf1)]=_0x580d41['region'],global_registry['clusterName']=_0x580d41[_0x1c2771(0xfc)];}}else _0x3f630e['nOjSj'](_0x3f630e[_0x1c2771(0x173)],_0x3f630e[_0x1c2771(0x179)])?_0x566ed8[_0x1c2771(0x176)]('Cluster\x20`'+_0x2af4e9[_0x1c2771(0xfc)]+_0x1c2771(0x192)):(logger[_0x1c2771(0x11e)](_0x3f630e[_0x1c2771(0x190)]),process[_0x1c2771(0xf6)](0x1));}}}catch(_0x364a3a){_0x3f630e['nOjSj'](_0x3f630e['lOyri'],_0x3f630e[_0x1c2771(0x154)])?_0x2e0382[_0x1c2771(0x175)](_0x3f630e[_0x1c2771(0x1b9)]):(_0x1c65e5='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x364a3a+':\x20'+_0x364a3a[_0x1c2771(0x19a)],logger[_0x1c2771(0x11e)](_0x1c65e5),await _0x3f630e[_0x1c2771(0x116)](reportToGalactusAndSendToEDS,_0x11cc86,_0x5b005f,_0x1c65e5,messageTypes[_0x1c2771(0xf5)],_0x3f630e[_0x1c2771(0x11c)],_0x3f630e['iFqvg'],_0x3f630e[_0x1c2771(0x105)]),process[_0x1c2771(0xf6)](0x1));}}function printResponse(_0x47a96b,_0x2a6b3e){const _0x4f5dc5=a17_0x715358,_0x35690f={};_0x35690f['vimSe']=_0x4f5dc5(0x185),_0x35690f[_0x4f5dc5(0x18d)]=_0x4f5dc5(0xe7),_0x35690f[_0x4f5dc5(0xd1)]=function(_0xd06ef3,_0x446cbb){return _0xd06ef3===_0x446cbb;},_0x35690f[_0x4f5dc5(0x141)]=_0x4f5dc5(0xef),_0x35690f[_0x4f5dc5(0x1c1)]=_0x4f5dc5(0x132);const _0x3194c4=_0x35690f;logger[_0x4f5dc5(0x176)]('['+_0x47a96b+_0x4f5dc5(0x102)+_0x2a6b3e['status']+'\x20data\x20:\x20'+_0x2a6b3e[_0x4f5dc5(0x12d)]+_0x4f5dc5(0x197)+_0x2a6b3e[_0x4f5dc5(0x11e)]),_0x2a6b3e[_0x4f5dc5(0x11e)]&&(_0x3194c4[_0x4f5dc5(0xd1)](_0x3194c4[_0x4f5dc5(0x141)],_0x3194c4[_0x4f5dc5(0x1c1)])?_0x25bdc8+=_0x4f5dc5(0x187)+_0x18c8b9[_0x4f5dc5(0xfc)]+'\x20'+(_0x239755?_0x3194c4['vimSe']:_0x3194c4[_0x4f5dc5(0x18d)])+'\x0a\x0a':logger['error'](_0x4f5dc5(0x1c0)+_0x2a6b3e[_0x4f5dc5(0x11e)][_0x4f5dc5(0x19a)]));}function a17_0x7f5f(){const _0xcbbfe5=['Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','LsDYK','writeFileSync','714645mRsWrj','TTrTs','ppUcT','isTrialGridAccessible','GVLpR','yqILD','airdJ','TJIdH','SwhSk','cluster-name','header','stringify','vLLKn','pre-check-grid-profile-empty','Browserstack','getUTCMonth','Report\x20saved\x20in\x20','qnBtF','Aqcyx','join','log/report_','TYWHS','pre-check-grid-called','KeMfd','../../utils/instrumentationUtils','xTzUm','help','DqFCF','JgbnP','N/A','response','CNeKo','Pre-check\x20running\x20for\x20Cloud\x20-\x20','CqcyR','mnVgG','lmuww','checkAccess','description','hPhwu','parse','pre_check','\x20region\x20-\x20','isCliToolInstalled','../../utils/utilityMethods','LphyL','KLiHz','isTls1_2_SUPPORTED','\x20\x20Message:\x20','Tool\x20Installed','ojFym','bstackAccesskey','QpHqm','yPhRj','oUBNa','push','info','\x20data\x20:\x20','OaaBv','kLZJH','\x20\x20Stack:\x20','code','2018968xvqBPX','mgDHi','bPvoc','lJXQH','getUTCDate','XGuwc','utf-8','`\x20,error\x20:\x20','hcPzT','is\x20already\x20present','builder','Cluster\x20','MVIWh','BSdxk','xuwvC','ZyZNA','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','lJFBX','TaBEY','cluster-check-failed-','GAPOJ','UvRqz','`\x20already\x20exists','cloudProvider','../../config/logger','https://','body','\x20error\x20:\x20','eZCnu','ZVDHh','stack','isClusterPresent','oexCa','debug','includes','tgeFA','Missing\x20required\x20arguments:\x20','toLowerCase','CLOUD_PROVIDER','grid-profile','Status:\x20','Failed\x20in\x20pre-check!\x20Error:\x20','getUTCMinutes','unable\x20to\x20verify\x20if\x20cluster\x20`','bstackUsername','hpZIt','nFrni','qVkoK','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','yyPQc','Cluster\x20details\x0a-----------------------\x0a','nSTAL','type','GKUis','length','../../config/constants','region','IngIl','NsVYO','epilogue','cloud-provider','FLJtj','/packages/cli/get-all-grid-profiles','WebSocket','SSL\x20Configured','FEfBd','getUTCHours','SWxOj','error\x20stack\x20:\x20','tXNBS','841062lVByjR','Grid\x20profile\x20fetched\x20for\x20pre-check','Setting\x20cloud\x20provider\x20as\x20','WkBZo','NcLHa','yuwon','dIwMJ','SmgnN','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','username','kOgWO','yltZe','mAZOy','IKcFN','`\x20is\x20present\x20in\x20region\x20`','KWSTs','tSnbT','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','DAYgK','6642384UgtTMS','GYyll','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','zQcOj','xvYRV','WxROD','viHNK','forEach','cGMxK','INFO','will\x20be\x20created','grid','.txt','kilra','15phgTmG','XeErp','toolInstalledResp','throwHttpErrors','uXvAU','name','clusterRegion','rNSbQ','authHeader','<UsernamePlaceholder>','ERROR','exit','got','bndaG','message','LOG','readFileSync','clusterName','Error\x20Details:\x0a','uuid','yxynR','ndRHF','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region',']\x20status\x20:\x20','gridProfile','zACBi','azilc','WIQNR','options','Cluster\x20`','find','User\x20Access','usage','argv','830932DRQhAb','password','riNAt','aItEl','Whitelisted\x20browserstack','nIlPN','replace','HZEMU','ozPUi','AzCRE','ynFau','tinuM','command','\x20===\x0a\x0a','Message:\x20','eDGaA','pBGuv','error','pMDHP','init','181545xQPyfe','WGaAj','requestId','Failure','oPDLs','qwomq','sendEventToBackend','TLSv1_2_client_method','sOXKX','headers','39148GgOWuR','getUTCFullYear','data','PEhpb','\x20\x20Code:\x20','KKIuX','split','iZrIE','method','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','womuy','Success','IZCwV','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','miPbH','iFqvg','mnyxn'];a17_0x7f5f=function(){return _0xcbbfe5;};return a17_0x7f5f();}async function generateReport(_0x10f809,_0x31775e){const _0x38bf29=a17_0x715358,_0x5daec8={'yltZe':function(_0x48daeb,_0x5cb91d){return _0x48daeb+_0x5cb91d;},'vLLKn':_0x38bf29(0x136),'xTzUm':_0x38bf29(0x124),'sOXKX':function(_0x4f6db2,_0x395bb3){return _0x4f6db2||_0x395bb3;},'CqcyR':_0x38bf29(0x15c),'ZVDHh':_0x38bf29(0xfd),'gaXIL':_0x38bf29(0x1ae),'nLzgF':function(_0x4a44b4,_0xd3092d){return _0x4a44b4!=_0xd3092d;},'lJXQH':'is\x20already\x20present','womuy':_0x38bf29(0xe7),'VHkTT':function(_0x2fbc58){return _0x2fbc58();}};let _0x1f3f8b='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x38bf29(0x193)]+_0x38bf29(0x11a);return _0x10f809[_0x38bf29(0xe4)]((_0x204144,_0x176474)=>{const _0x3351fa=_0x38bf29,{header:_0x216ce4,response:_0x42b6bb}=_0x204144,{status:_0x368818,data:_0x4cd637,error:_0x3c1959}=_0x42b6bb;_0x1f3f8b+=_0x216ce4+'\x20#'+_0x5daec8[_0x3351fa(0xd5)](_0x176474,0x1)+'\x0a',_0x1f3f8b+=_0x3351fa(0x1a4)+(_0x368818?_0x5daec8[_0x3351fa(0x14b)]:_0x5daec8[_0x3351fa(0x158)])+'\x0a',_0x1f3f8b+='Message:\x20'+_0x5daec8[_0x3351fa(0x129)](_0x4cd637,_0x5daec8[_0x3351fa(0x160)])+'\x0a',_0x3c1959&&(_0x1f3f8b+=_0x5daec8[_0x3351fa(0x199)],_0x1f3f8b+=_0x3351fa(0x16e)+(_0x3c1959[_0x3351fa(0xf9)]||_0x5daec8['CqcyR'])+'\x0a',_0x1f3f8b+=_0x3351fa(0x12f)+(_0x3c1959[_0x3351fa(0x17b)]||_0x5daec8['CqcyR'])+'\x0a',_0x1f3f8b+=_0x3351fa(0x17a)+(_0x3c1959[_0x3351fa(0x19a)]||_0x5daec8[_0x3351fa(0x160)])+'\x0a'),_0x1f3f8b+='\x0a\x0a';}),_0x1f3f8b+=_0x5daec8['gaXIL'],_0x5daec8['nLzgF'](_0x31775e,null)?_0x1f3f8b+=_0x38bf29(0x187)+global_registry[_0x38bf29(0xfc)]+'\x20'+(_0x31775e?_0x5daec8[_0x38bf29(0x17f)]:_0x5daec8[_0x38bf29(0x135)])+'\x0a\x0a':_0x1f3f8b+=_0x38bf29(0x187)+global_registry[_0x38bf29(0xfc)]+_0x38bf29(0xd2),_0x1f3f8b+=_0x5daec8['VHkTT'](getSystemMetaData),_0x1f3f8b;};exports['handler']=async function(_0x55c2fa){const _0x1b8439=a17_0x715358,_0x28c4bf={'cGMxK':function(_0x3b5e72){return _0x3b5e72();},'JgbnP':function(_0x358170){return _0x358170();},'IZCwV':_0x1b8439(0x134),'pBGuv':function(_0x5b6d5a,_0x62d6a7,_0x48cfc3,_0x36e319,_0xf5ab7e,_0x28a801,_0x34e089,_0x5e4431){return _0x5b6d5a(_0x62d6a7,_0x48cfc3,_0x36e319,_0xf5ab7e,_0x28a801,_0x34e089,_0x5e4431);},'MVIWh':_0x1b8439(0x155),'miPbH':'credential-not-found','GKUis':_0x1b8439(0x11e),'qnBtF':function(_0x1c5bd8,_0x5eb80a,_0x17ceb6,_0x401a2e,_0x1d4995,_0x335291,_0x555d3e){return _0x1c5bd8(_0x5eb80a,_0x17ceb6,_0x401a2e,_0x1d4995,_0x335291,_0x555d3e);},'BSdxk':function(_0x48c01a){return _0x48c01a();},'viHNK':_0x1b8439(0xf4),'WEDmJ':'<PasswordPlaceholder>','mgDHi':function(_0x35b9ab,_0x2f40b6,_0x3b03a3){return _0x35b9ab(_0x2f40b6,_0x3b03a3);},'mAZOy':'dummy-grid','LsDYK':_0x1b8439(0xed),'WGaAj':'3|0|4|1|2','PTOFR':function(_0x5b1a0b,_0x581240,_0x412e4a,_0x195923,_0x32f906,_0x833e0a,_0x2f3760,_0x380a40){return _0x5b1a0b(_0x581240,_0x412e4a,_0x195923,_0x32f906,_0x833e0a,_0x2f3760,_0x380a40);},'NcLHa':'accessResp','wUIma':function(_0x857727){return _0x857727();},'qGWgj':function(_0x4b20e4,_0xfabcfd,_0x57b681){return _0x4b20e4(_0xfabcfd,_0x57b681);},'mnyxn':_0x1b8439(0x142),'TTrTs':function(_0xf9e4f2,_0x3a2c85){return _0xf9e4f2(_0x3a2c85);},'DqFCF':_0x1b8439(0x128),'OHRSr':function(_0x4293b8,_0x11294f,_0x1da449){return _0x4293b8(_0x11294f,_0x1da449);},'bPvoc':_0x1b8439(0x16d),'pMDHP':_0x1b8439(0x16f),'srKRj':_0x1b8439(0x10a),'xvYRV':_0x1b8439(0x111),'MYPCS':_0x1b8439(0x1bc),'WIQNR':function(_0x54b60f,_0x11ac11,_0x394707){return _0x54b60f(_0x11ac11,_0x394707);},'TJIdH':function(_0x784a0,_0x11b5e5){return _0x784a0+_0x11b5e5;},'LVsVg':_0x1b8439(0x182),'UZZla':'pre-check-failed'};let _0x7cc4,_0x1d3df6;try{global_registry[_0x1b8439(0x123)]=_0x28c4bf[_0x1b8439(0xe5)](uuidv4);!fs['existsSync'](_0x28c4bf[_0x1b8439(0x15b)](getCredentialsPath))&&(_0x1d3df6=_0x28c4bf[_0x1b8439(0x137)],logger['error'](_0x1d3df6),await _0x28c4bf[_0x1b8439(0x11d)](reportToGalactusAndSendToEDS,_0x55c2fa,_0x7cc4,_0x1d3df6,messageTypes['ERROR'],_0x28c4bf[_0x1b8439(0x188)],_0x28c4bf[_0x1b8439(0x139)],_0x28c4bf[_0x1b8439(0x1b1)]),process[_0x1b8439(0xf6)](0x1));_0x28c4bf[_0x1b8439(0x150)](sendInstrumentationEvent,_0x55c2fa,_0x28c4bf[_0x1b8439(0x188)],messageTypes[_0x1b8439(0xe6)],null,null,_0x55c2fa);const _0x52b248=JSON['parse'](fs[_0x1b8439(0xfb)](_0x28c4bf[_0x1b8439(0x189)](getCredentialsPath)));global_registry[_0x1b8439(0x1a8)]=_0x52b248['Browserstack'][_0x1b8439(0xd3)],global_registry[_0x1b8439(0x171)]=_0x52b248[_0x1b8439(0x14d)]['password'];const _0x3b0f12=WS_ENDPOINT[_0x1b8439(0x113)](_0x28c4bf[_0x1b8439(0xe3)],_0x52b248[_0x1b8439(0x14d)][_0x1b8439(0xd3)])[_0x1b8439(0x113)](_0x28c4bf['WEDmJ'],_0x52b248['Browserstack'][_0x1b8439(0x10e)]),_0xd4bb60={};_0xd4bb60[_0x1b8439(0x1bb)]=ws,_0xd4bb60['connectionTimeout']=0x36ee80,_0x7cc4=new ReconnectingWebSocket(_0x3b0f12,[],_0xd4bb60),global_registry[_0x1b8439(0xf3)]=_0x28c4bf[_0x1b8439(0x17d)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x28c4bf[_0x1b8439(0x17d)](inputValidation,_0x55c2fa,_0x7cc4),logger[_0x1b8439(0x176)](_0x1b8439(0x15f)+global_registry[_0x1b8439(0x193)]+_0x1b8439(0x168)+global_registry[_0x1b8439(0xf1)]);let _0x577095=await _0x28c4bf[_0x1b8439(0x150)](getCloudProviderObjectWithOutInit,global_registry[_0x1b8439(0x193)],global_registry['clusterName'],_0x28c4bf[_0x1b8439(0xd6)],_0x7cc4,webSocketUtils,_0x55c2fa);const _0x358c5c=await _0x577095[_0x1b8439(0x169)]();_0x28c4bf[_0x1b8439(0x17d)](printResponse,_0x28c4bf[_0x1b8439(0x13d)],_0x358c5c),_0x577095=await _0x577095[_0x1b8439(0x120)]();let _0x5241e0=![];try{_0x5241e0=await _0x577095[_0x1b8439(0x19b)]();}catch(_0x2b58e6){const _0x17cc74=_0x28c4bf[_0x1b8439(0x122)][_0x1b8439(0x131)]('|');let _0x4e2905=0x0;while(!![]){switch(_0x17cc74[_0x4e2905++]){case'0':_0x5241e0=null;continue;case'1':_0x1d3df6+='\x0a'+JSON['stringify'](_0x2b58e6[_0x1b8439(0x19a)]);continue;case'2':await _0x28c4bf['PTOFR'](reportToGalactusAndSendToEDS,_0x55c2fa,_0x7cc4,_0x1d3df6,messageTypes[_0x1b8439(0xf5)],_0x28c4bf[_0x1b8439(0x188)],_0x1b8439(0x18f)+global_registry[_0x1b8439(0x193)],_0x28c4bf[_0x1b8439(0x1b1)]);continue;case'3':_0x1d3df6=_0x1b8439(0x1a7)+global_registry[_0x1b8439(0xfc)]+_0x1b8439(0xd8)+global_registry[_0x1b8439(0xf1)]+_0x1b8439(0x183)+_0x2b58e6;continue;case'4':logger[_0x1b8439(0x11e)](_0x1d3df6);continue;}break;}}_0x5241e0&&logger[_0x1b8439(0x176)](_0x1b8439(0x108)+global_registry[_0x1b8439(0xfc)]+_0x1b8439(0x192));const _0x18311a=await _0x577095[_0x1b8439(0x163)]();_0x28c4bf[_0x1b8439(0x17d)](printResponse,_0x28c4bf[_0x1b8439(0x1c6)],_0x18311a);const _0x4b3020=await _0x28c4bf['wUIma'](curlRequest);_0x28c4bf['qGWgj'](printResponse,_0x28c4bf[_0x1b8439(0x13b)],_0x4b3020);const _0x5daf20=await _0x28c4bf[_0x1b8439(0x140)](isTlsSupported,_0x28c4bf[_0x1b8439(0x15a)]);_0x28c4bf['OHRSr'](printResponse,_0x28c4bf[_0x1b8439(0x17e)],_0x5daf20);const _0x186ef7={};_0x186ef7['header']=_0x28c4bf[_0x1b8439(0x11f)],_0x186ef7[_0x1b8439(0x15d)]=_0x358c5c;const _0x5f3a4e={};_0x5f3a4e['header']=_0x28c4bf['srKRj'],_0x5f3a4e[_0x1b8439(0x15d)]=_0x18311a;const _0x545449={};_0x545449[_0x1b8439(0x149)]=_0x28c4bf[_0x1b8439(0xe1)],_0x545449[_0x1b8439(0x15d)]=_0x4b3020;const _0x240071={};_0x240071[_0x1b8439(0x149)]=_0x28c4bf['MYPCS'],_0x240071['response']=_0x5daf20;const _0x1debf9=[_0x186ef7,_0x5f3a4e,_0x545449,_0x240071],_0x3c529e=await _0x28c4bf[_0x1b8439(0x106)](generateReport,_0x1debf9,_0x5241e0),_0x28c670=new Date(),_0x47cd9e=_0x28c670[_0x1b8439(0x12c)]()+'_'+_0x28c4bf[_0x1b8439(0x146)](_0x28c670[_0x1b8439(0x14e)](),0x1)+'_'+_0x28c670[_0x1b8439(0x180)]()+'_'+_0x28c670[_0x1b8439(0x1be)]()+'_'+_0x28c670[_0x1b8439(0x1a6)](),_0x32d4a7=_0x1b8439(0x153)+_0x47cd9e+_0x1b8439(0xe9);fs[_0x1b8439(0x13e)](_0x32d4a7,_0x3c529e,_0x28c4bf['LVsVg']),logger['info'](_0x1b8439(0x14f)+_0x32d4a7),process['exit'](0x0);}catch(_0x121a1d){let _0x38ac22=_0x1b8439(0x1a5)+_0x121a1d+'\x20';logger[_0x1b8439(0x11e)](_0x38ac22),_0x38ac22+='\x0a'+JSON[_0x1b8439(0x14a)](_0x121a1d[_0x1b8439(0x19a)]),logger['debug']('stack\x20trace\x20'+_0x121a1d[_0x1b8439(0x19a)]);if(_0x7cc4){const _0x2428af={};_0x2428af['type']=WS_EVENTS[_0x1b8439(0xfa)],_0x2428af[_0x1b8439(0xf9)]=_0x38ac22,webSocketUtils[_0x1b8439(0x127)](_0x7cc4,_0x2428af,_0x28c4bf[_0x1b8439(0x1b1)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x2049ad={};_0x2049ad[_0x1b8439(0x11e)]=_0x38ac22,await _0x28c4bf[_0x1b8439(0x150)](sendInstrumentationEvent,_0x55c2fa,_0x28c4bf[_0x1b8439(0x188)],messageTypes['ERROR'],_0x28c4bf['UZZla'],_0x2049ad,_0x55c2fa),process[_0x1b8439(0xf6)](0x1);}};
1
+ const a17_0x311f72=a17_0xed75;(function(_0x280fe7,_0x1a4b2f){const _0xbeb7a7=a17_0xed75,_0x285eff=_0x280fe7();while(!![]){try{const _0x25497c=parseInt(_0xbeb7a7(0x238))/0x1*(parseInt(_0xbeb7a7(0x228))/0x2)+-parseInt(_0xbeb7a7(0x1d1))/0x3*(-parseInt(_0xbeb7a7(0x209))/0x4)+-parseInt(_0xbeb7a7(0x260))/0x5+-parseInt(_0xbeb7a7(0x19b))/0x6*(parseInt(_0xbeb7a7(0x1c6))/0x7)+parseInt(_0xbeb7a7(0x234))/0x8*(-parseInt(_0xbeb7a7(0x286))/0x9)+-parseInt(_0xbeb7a7(0x1ce))/0xa*(-parseInt(_0xbeb7a7(0x1d9))/0xb)+-parseInt(_0xbeb7a7(0x274))/0xc*(-parseInt(_0xbeb7a7(0x240))/0xd);if(_0x25497c===_0x1a4b2f)break;else _0x285eff['push'](_0x285eff['shift']());}catch(_0x156c46){_0x285eff['push'](_0x285eff['shift']());}}}(a17_0x3365,0x284c7));const fs=require('fs'),ws=require('ws'),got=require(a17_0x311f72(0x1bc)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x311f72(0x1d7)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x311f72(0x263)),{logger}=require(a17_0x311f72(0x220)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x311f72(0x268)),webSocketUtils=require(a17_0x311f72(0x1b7)),{sendInstrumentationEvent}=require(a17_0x311f72(0x1fe));function a17_0x3365(){const _0x2c52ec=['length','stack','zpZuI','`\x20already\x20exists','type','0|4|1|3|2','420eQUnJq','will\x20be\x20created','header','TXnAk','accessResp','response','Grid\x20profile\x20fetched\x20for\x20pre-check','VHWSd','RXhrp','forEach','Missing\x20required\x20arguments:\x20','TxVkD','ERROR','getUTCDate','WNaob','argv','kbjqV','<UsernamePlaceholder>','throwHttpErrors','gridProfile','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','CWvfr','nMJgD','Message:\x20','authHeader','mmrLi','bstackAccesskey','data','../../utils/webSocketUtils','NAEVS','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','THfEP','WHWkH','got','info','VgCBm','getUTCMonth','MmSSB','nqWpU','XfNHJ','fhOsG','OTAIq','Cluster\x20','21672EeDJSk','cloud-provider-not-supported','RnwGm','Failure','hSutx','Error\x20Details:\x0a','nQTdO','isCliToolInstalled','10iGCQJD','futex','https://','6eSOwBH','AOfvr','checkAccess','VJmlg','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','reconnecting-websocket','tODxY','961378eiHaoB','\x20\x20Stack:\x20','MnQmm','RxTqU','VIMHG','utf-8','pxDUV','clusterName','username','arRAQ','roEgr','iMMhc','fKwRl','stack\x20trace\x20','lNjgY','error\x20stack\x20:\x20','toLowerCase','vpMUZ','options','OMOOc','error','zkqbl',']\x20status\x20:\x20','Cluster\x20details\x0a-----------------------\x0a','LOG','string','N/A','isTrialGridAccessible','handler','nVPdY','fBVTX','Cluster\x20`','description','mSJiE','split','qWKdY','requestId','../../utils/instrumentationUtils','grid','nhlRR','vuZqZ','Setting\x20cloud\x20provider\x20as\x20','oooVw','TGPpR','xEpQB','DVXeJ','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','eRBfN','551220YrsmeD','join','KiOvY','readFileSync','exit','VfcJI','sendEventToBackend','DhhCm','`\x20is\x20present\x20in\x20region\x20`','\x20===\x0a\x0a','\x20region\x20-\x20','PuKKF','code','FCBCA','iXABL','TLSv1_2_client_method','bHYvb','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','axVUr','message','OgxTi','/packages/cli/get-all-grid-profiles','pre-check-grid-profile-empty','../../config/logger','replace','NPowk','===\x20Precheck\x20Report\x20-\x20','sZDWw','wxBAE','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','LYXvl','2YdpEPj','KbXuL','desc','delay','WebSocket','hHkyq','ZprVr','nKlKa','getUTCFullYear','nxNaW','doLpA','cluster-name','1232ZKuPyf','usage','kDvcB','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','293927zLbTOp','includes','Hqees','existsSync','SgtBm','yVHgB','help','MUOWn','423787dAKjAl','omcfb','NCyqr','\x20error\x20:\x20','DIDSf','toolInstalledResp','PGtOx','VCOSA','debug','`\x20,error\x20:\x20','nbhkg','cloudProvider','IBLPB','XipTL','RAJvU','XRUPE','find','init','SPsKJ','oUQdH','ioMnj','nUhbj','XKAsD','cloud-provider','BjtcA','bstackUsername','\x20\x20Message:\x20','QdLKD','Browserstack','FhtmE','iTfOj','ZKXnR','1032865hLuOcH','YmpMt','Success','../../utils/utilityMethods','\x20\x20Code:\x20','isTls1_2_SUPPORTED','fVFKp','VrUiM','../../cloudproviders/utils','CLOUD_PROVIDER','push','ZCprn','qvLKI','clusterRegion','User\x20Access','\x20data\x20:\x20','UxogP','AKjSo','sNwde','parse','12Snhnxj','grid\x20profile\x20flow\x20','stringify','is\x20already\x20present','jQmQa','pre-check-failed','PAsTB','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','region','eygGb','xqZnM','status','gDVcJ','QFnaX','dummy-grid','AAQek','wtfxc','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','5913Eavtpr','PpbeB','umpMX','RLEmP','log/report_','Tool\x20Installed','NhOEv','writeFileSync','password','cMlsv'];a17_0x3365=function(){return _0x2c52ec;};return a17_0x3365();}exports['command']=a17_0x311f72(0x1ff),exports[a17_0x311f72(0x22a)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x1f424e){const _0x47851d=a17_0x311f72,_0x2b741e={};_0x2b741e[_0x47851d(0x1e2)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2b741e[_0x47851d(0x289)]=_0x47851d(0x1f2),_0x2b741e[_0x47851d(0x1a6)]=_0x47851d(0x1af),_0x2b741e[_0x47851d(0x271)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2b741e['fBVTX']=_0x47851d(0x237),_0x2b741e[_0x47851d(0x1a2)]='help';const _0x2dce9c=_0x2b741e,_0x276fc0={};_0x276fc0[_0x47851d(0x1f9)]=_0x2dce9c['arRAQ'],_0x276fc0[_0x47851d(0x199)]=_0x2dce9c['RLEmP'];const _0x1e5e09={};_0x1e5e09['description']=_0x2dce9c[_0x47851d(0x1a6)],_0x1e5e09[_0x47851d(0x199)]=_0x2dce9c['RLEmP'];const _0x4eea25={};_0x4eea25[_0x47851d(0x1f9)]=_0x2dce9c[_0x47851d(0x271)],_0x4eea25[_0x47851d(0x199)]=_0x2dce9c[_0x47851d(0x289)];const _0x12dabc={};_0x12dabc[_0x47851d(0x1f9)]=_0x2dce9c[_0x47851d(0x1f7)],_0x12dabc['type']=_0x2dce9c['RLEmP'];const _0x2e2553={};return _0x2e2553[_0x47851d(0x233)]=_0x276fc0,_0x2e2553[_0x47851d(0x257)]=_0x1e5e09,_0x2e2553[_0x47851d(0x27c)]=_0x4eea25,_0x2e2553['grid-profile']=_0x12dabc,_0x1f424e[_0x47851d(0x235)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x47851d(0x1eb)](_0x2e2553)[_0x47851d(0x23e)](_0x2dce9c[_0x47851d(0x1a2)])[_0x47851d(0x1aa)];};async function inputValidation(_0x158ea0,_0x20599b){const _0x12f780=a17_0x311f72,_0x8fdc21={'VgCBm':_0x12f780(0x1b9),'cMlsv':function(_0x202519,_0x4cf5f4){return _0x202519+_0x4cf5f4;},'WNaob':_0x12f780(0x262),'nhlRR':_0x12f780(0x1c9),'fkmqJ':function(_0x2b26f9,_0x22acd4){return _0x2b26f9||_0x22acd4;},'umpMX':_0x12f780(0x1f3),'XRUPE':_0x12f780(0x1cb),'vuZqZ':_0x12f780(0x226),'nxNaW':_0x12f780(0x1f2),'gDVcJ':_0x12f780(0x1af),'pxDUV':_0x12f780(0x1d5),'wxBAE':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','SqzXY':_0x12f780(0x23e),'eygGb':_0x12f780(0x257),'VIMHG':_0x12f780(0x27c),'eRBfN':_0x12f780(0x233),'futex':_0x12f780(0x1ed),'yVHgB':_0x12f780(0x277),'omcfb':_0x12f780(0x19c),'kbjqV':function(_0x4716f6,_0x3b0636){return _0x4716f6===_0x3b0636;},'SMIxM':_0x12f780(0x1c2),'axVUr':function(_0x3d1971,_0x4e8cd2){return _0x3d1971!==_0x4e8cd2;},'tODxY':_0x12f780(0x242),'MUOWn':'uLlvp','XipTL':function(_0xe39a8b,_0x237d4c){return _0xe39a8b===_0x237d4c;},'xEpQB':_0x12f780(0x216),'iXABL':_0x12f780(0x247),'PpbeB':'bNjwR','wHQez':function(_0x2c7255,_0x14ee38){return _0x2c7255>_0x14ee38;},'nbhkg':function(_0x261f52,_0x3e81ce){return _0x261f52!==_0x3e81ce;},'RXhrp':_0x12f780(0x23a),'fKwRl':'JqUZM','DIDSf':function(_0x44f20f,_0x104685,_0x386c9b,_0x5d91aa,_0x5d5c6e,_0x44173c,_0x16804e,_0x567199){return _0x44f20f(_0x104685,_0x386c9b,_0x5d91aa,_0x5d5c6e,_0x44173c,_0x16804e,_0x567199);},'KbXuL':'pre-check-grid-called','KiOvY':'pre-check-cluster-args-not-passed','mmrLi':_0x12f780(0x1bb),'OMOOc':'xYCaE','jQmQa':_0x12f780(0x27b),'nmwtI':function(_0xbc5145,_0x31a82e,_0x1ba8ac,_0x24cb3c,_0x57703c,_0x379c2b,_0x1d17ea,_0x3a229d){return _0xbc5145(_0x31a82e,_0x1ba8ac,_0x24cb3c,_0x57703c,_0x379c2b,_0x1d17ea,_0x3a229d);},'RAJvU':_0x12f780(0x1c7),'PGtOx':_0x12f780(0x1e4),'nUhbj':'jBtct','VfcJI':'GET','FhtmE':function(_0x4bc2d6,_0x2e4a5f,_0x594a02){return _0x4bc2d6(_0x2e4a5f,_0x594a02);},'Lqsta':function(_0x5c1675,_0x5e57ae,_0x2afe80,_0x3bed61,_0xd5e797,_0x485075){return _0x5c1675(_0x5e57ae,_0x2afe80,_0x3bed61,_0xd5e797,_0x485075);},'MnQmm':'pre-check','hHkyq':'grid-profile','wtfxc':function(_0xeea833,_0x3ac951){return _0xeea833===_0x3ac951;},'LYXvl':function(_0x3e8377,_0x2ec48f){return _0x3e8377===_0x2ec48f;},'lNjgY':_0x12f780(0x214),'XKAsD':function(_0x3d51a7,_0x5be008){return _0x3d51a7(_0x5be008);},'DVXeJ':_0x12f780(0x1ee),'sNwde':_0x12f780(0x1fc),'bHYvb':_0x12f780(0x21f),'VrUiM':function(_0x3ca324,_0x59db7d){return _0x3ca324===_0x59db7d;},'dgMzZ':_0x12f780(0x236),'YmpMt':_0x12f780(0x1e3),'VDATT':function(_0x26530a,_0x1db58c){return _0x26530a!==_0x1db58c;},'mSJiE':_0x12f780(0x1f6),'nKlKa':'nVrWO','bbNjm':_0x12f780(0x1a1),'fVFKp':'FcBMy','TGPpR':_0x12f780(0x1cc),'ioMnj':function(_0x40fe3a,_0x21f531){return _0x40fe3a===_0x21f531;},'oUQdH':'YuLWN','OgxTi':'tvAaw','EPkDo':function(_0x8965a7,_0x52325a,_0x63e303,_0x8c8351,_0x210f92,_0x4af6f8,_0x101e59,_0x541a08){return _0x8965a7(_0x52325a,_0x63e303,_0x8c8351,_0x210f92,_0x4af6f8,_0x101e59,_0x541a08);}};let _0x3d951b;try{if(_0x8fdc21[_0x12f780(0x1ab)](_0x8fdc21['SMIxM'],_0x8fdc21['SMIxM'])){if(_0x158ea0[_0x12f780(0x1e0)]||_0x158ea0['cloudProvider']||_0x158ea0[_0x12f780(0x27c)]){if(_0x8fdc21[_0x12f780(0x21b)](_0x8fdc21[_0x12f780(0x1d8)],_0x8fdc21[_0x12f780(0x23f)])){const _0x5bec46=[];!_0x158ea0[_0x12f780(0x1e0)]&&(_0x8fdc21[_0x12f780(0x24d)](_0x8fdc21['xEpQB'],_0x8fdc21[_0x12f780(0x205)])?_0x5bec46[_0x12f780(0x26a)](_0x8fdc21[_0x12f780(0x208)]):(_0x1f0144[_0x12f780(0x1ed)](_0x8fdc21[_0x12f780(0x1be)]),_0x3b1aed[_0x12f780(0x20d)](0x1)));;if(!_0x158ea0[_0x12f780(0x24b)]){if(_0x8fdc21[_0x12f780(0x21b)](_0x8fdc21[_0x12f780(0x217)],_0x8fdc21[_0x12f780(0x217)])){const {header:_0x15b714,response:_0x2a1d46}=_0x4cc988,{status:_0x2ceb96,data:_0x5e4949,error:_0x2c40ee}=_0x2a1d46;_0x1f48ab+=_0x15b714+'\x20#'+_0x8fdc21[_0x12f780(0x194)](_0x577c96,0x1)+'\x0a',_0x5eb432+='Status:\x20'+(_0x2ceb96?_0x8fdc21[_0x12f780(0x1a9)]:_0x8fdc21[_0x12f780(0x200)])+'\x0a',_0x103d60+='Message:\x20'+_0x8fdc21['fkmqJ'](_0x5e4949,_0x8fdc21['umpMX'])+'\x0a',_0x2c40ee&&(_0x27d4a9+=_0x8fdc21[_0x12f780(0x24f)],_0x21d879+='\x20\x20Message:\x20'+(_0x2c40ee[_0x12f780(0x21c)]||_0x8fdc21[_0x12f780(0x288)])+'\x0a',_0x142982+=_0x12f780(0x264)+(_0x2c40ee[_0x12f780(0x215)]||_0x8fdc21['umpMX'])+'\x0a',_0xde58e4+=_0x12f780(0x1da)+(_0x2c40ee[_0x12f780(0x196)]||_0x8fdc21[_0x12f780(0x288)])+'\x0a'),_0x509b7b+='\x0a\x0a';}else _0x5bec46[_0x12f780(0x26a)](_0x8fdc21[_0x12f780(0x27d)]);};if(!_0x158ea0[_0x12f780(0x27c)]){if(_0x8fdc21[_0x12f780(0x24d)](_0x8fdc21[_0x12f780(0x287)],_0x8fdc21[_0x12f780(0x287)]))_0x5bec46[_0x12f780(0x26a)](_0x8fdc21[_0x12f780(0x1dd)]);else{const _0x5990a1={};_0x5990a1[_0x12f780(0x1f9)]=_0x8fdc21[_0x12f780(0x201)],_0x5990a1[_0x12f780(0x199)]=_0x8fdc21[_0x12f780(0x231)];const _0x11682c={};_0x11682c[_0x12f780(0x1f9)]=_0x8fdc21[_0x12f780(0x280)],_0x11682c[_0x12f780(0x199)]=_0x8fdc21[_0x12f780(0x231)];const _0x5e6e7e={};_0x5e6e7e[_0x12f780(0x1f9)]=_0x8fdc21[_0x12f780(0x1df)],_0x5e6e7e[_0x12f780(0x199)]=_0x8fdc21[_0x12f780(0x231)];const _0x10c55f={};_0x10c55f[_0x12f780(0x1f9)]=_0x8fdc21[_0x12f780(0x225)],_0x10c55f[_0x12f780(0x199)]=_0x8fdc21[_0x12f780(0x231)];const _0x51926a={};return _0x51926a['cluster-name']=_0x5990a1,_0x51926a[_0x12f780(0x257)]=_0x11682c,_0x51926a[_0x12f780(0x27c)]=_0x5e6e7e,_0x51926a['grid-profile']=_0x10c55f,_0x1e0ffd[_0x12f780(0x235)](_0x1435ca['pre_check'])['epilogue'](_0x43a58d)[_0x12f780(0x1eb)](_0x51926a)[_0x12f780(0x23e)](_0x8fdc21['SqzXY'])[_0x12f780(0x1aa)];}};_0x8fdc21['wHQez'](_0x5bec46[_0x12f780(0x195)],0x0)&&(_0x8fdc21[_0x12f780(0x24a)](_0x8fdc21[_0x12f780(0x1a3)],_0x8fdc21[_0x12f780(0x1e5)])?(_0x3d951b=_0x12f780(0x1a5)+_0x5bec46[_0x12f780(0x20a)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x8fdc21[_0x12f780(0x244)](reportToGalactusAndSendToEDS,_0x158ea0,_0x20599b,_0x3d951b,messageTypes[_0x12f780(0x1a7)],_0x8fdc21['KbXuL'],_0x8fdc21[_0x12f780(0x20b)],_0x8fdc21['futex']),logger[_0x12f780(0x1ed)](_0x3d951b),process[_0x12f780(0x20d)](0x1)):_0x1424b1[_0x12f780(0x1bd)](_0x12f780(0x1f8)+_0x220ebe[_0x12f780(0x1e0)]+_0x12f780(0x198))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x12f780(0x239)](_0x158ea0[_0x12f780(0x24b)][_0x12f780(0x1e9)]())&&(_0x8fdc21[_0x12f780(0x21b)](_0x8fdc21[_0x12f780(0x1b4)],_0x8fdc21[_0x12f780(0x1ec)])?(_0x3d951b=_0x8fdc21[_0x12f780(0x278)],await _0x8fdc21['nmwtI'](reportToGalactusAndSendToEDS,_0x158ea0,_0x20599b,_0x3d951b,messageTypes[_0x12f780(0x1a7)],_0x8fdc21[_0x12f780(0x229)],_0x8fdc21['RAJvU'],_0x8fdc21[_0x12f780(0x1cf)]),logger[_0x12f780(0x1ed)](_0x3d951b),!_0x158ea0['cloudProvider']&&(_0x8fdc21[_0x12f780(0x1ab)](_0x8fdc21[_0x12f780(0x246)],_0x8fdc21[_0x12f780(0x246)])?(logger[_0x12f780(0x1bd)](_0x12f780(0x202)+DEFAULT_CLUSTER_DETAILS[_0x12f780(0x269)]+'\x20'),_0x158ea0['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x12f780(0x269)]):_0x21053e[_0x12f780(0x26a)](_0x8fdc21['eygGb']))):_0x3b7100+=_0x12f780(0x1c5)+_0x4e3f0d[_0x12f780(0x1e0)]+_0x12f780(0x285)),global_registry[_0x12f780(0x1e0)]=_0x158ea0[_0x12f780(0x1e0)],global_registry[_0x12f780(0x24b)]=_0x158ea0[_0x12f780(0x24b)],global_registry[_0x12f780(0x26d)]=_0x158ea0[_0x12f780(0x27c)];}else _0x49f0fc[_0x12f780(0x1bd)](_0x12f780(0x202)+_0x586f99['CLOUD_PROVIDER']+'\x20'),_0x3395be[_0x12f780(0x24b)]=_0x3e5603['CLOUD_PROVIDER'];}else{if(_0x158ea0[_0x12f780(0x1ae)]){if(_0x8fdc21['kbjqV'](_0x8fdc21[_0x12f780(0x255)],_0x8fdc21[_0x12f780(0x255)])){global_registry[_0x12f780(0x1ae)]=_0x158ea0[_0x12f780(0x1ae)],logger[_0x12f780(0x248)](_0x12f780(0x275)+_0x158ea0[_0x12f780(0x1ae)]);const _0x481ec0=_0x12f780(0x1d0)+AG_API_URL+_0x12f780(0x21e),_0x5f0f55={};_0x5f0f55['method']=_0x8fdc21[_0x12f780(0x20e)],_0x5f0f55['headers']=global_registry[_0x12f780(0x1b3)],_0x5f0f55[_0x12f780(0x1ad)]=![];const _0x6f0d0f=_0x5f0f55,_0x37e0c5=await _0x8fdc21[_0x12f780(0x25d)](got,_0x481ec0,_0x6f0d0f),_0x28cf9e=await _0x8fdc21['Lqsta'](responseValidation,_0x37e0c5,_0x8fdc21[_0x12f780(0x1db)],_0x8fdc21[_0x12f780(0x22d)],_0x158ea0,_0x20599b);let _0xc39fb2={};if(_0x8fdc21[_0x12f780(0x284)](_0x28cf9e,0xc8)){if(_0x8fdc21['LYXvl'](_0x8fdc21[_0x12f780(0x1e7)],_0x8fdc21['lNjgY'])){const _0x3e4d1b=JSON[_0x12f780(0x273)](_0x37e0c5['body']),_0xe8e584=_0x3e4d1b[_0x12f780(0x250)](_0x1c8b48=>_0x1c8b48['name']===_0x158ea0[_0x12f780(0x1ae)])||null;_0x8fdc21[_0x12f780(0x256)](isUndefined,_0xe8e584)?_0x8fdc21['axVUr'](_0x8fdc21[_0x12f780(0x206)],_0x8fdc21[_0x12f780(0x272)])?(_0x3d951b='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x158ea0[_0x12f780(0x1ae)]+_0x12f780(0x207),await _0x8fdc21[_0x12f780(0x244)](reportToGalactusAndSendToEDS,_0x158ea0,_0x20599b,_0x3d951b,messageTypes[_0x12f780(0x1a7)],_0x8fdc21[_0x12f780(0x229)],_0x8fdc21[_0x12f780(0x219)],_0x8fdc21[_0x12f780(0x1cf)]),logger[_0x12f780(0x1ed)](_0x3d951b),process[_0x12f780(0x20d)](0x1)):_0x291030['push'](_0x8fdc21[_0x12f780(0x1dd)]):_0x8fdc21[_0x12f780(0x267)](_0x8fdc21['dgMzZ'],_0x8fdc21[_0x12f780(0x261)])?_0x15fd61['push'](_0x8fdc21[_0x12f780(0x208)]):_0xc39fb2=_0xe8e584;}else _0x35a114+=_0x8fdc21[_0x12f780(0x24f)],_0x462359+='\x20\x20Message:\x20'+(_0x38c044['message']||_0x8fdc21[_0x12f780(0x288)])+'\x0a',_0x2bef58+=_0x12f780(0x264)+(_0x51b5ac[_0x12f780(0x215)]||_0x8fdc21[_0x12f780(0x288)])+'\x0a',_0x421497+='\x20\x20Stack:\x20'+(_0x5df87d[_0x12f780(0x196)]||_0x8fdc21['umpMX'])+'\x0a';}else _0x8fdc21['VDATT'](_0x8fdc21[_0x12f780(0x1fa)],_0x8fdc21[_0x12f780(0x22f)])?process[_0x12f780(0x20d)](0x1):_0x4e386c[_0x12f780(0x20d)](0x1);const _0x535e21={};_0x535e21['type']=WS_EVENTS[_0x12f780(0x1f1)],_0x535e21[_0x12f780(0x21c)]=_0x8fdc21['bbNjm'],webSocketUtils[_0x12f780(0x20f)](_0x20599b,_0x535e21),global_registry[_0x12f780(0x24b)]=_0xc39fb2[_0x12f780(0x24b)],global_registry[_0x12f780(0x26d)]=_0xc39fb2[_0x12f780(0x27c)],global_registry[_0x12f780(0x1e0)]=_0xc39fb2[_0x12f780(0x1e0)];}else _0x3fd166[_0x12f780(0x1ed)](_0x12f780(0x1e8)+_0x4ad201[_0x12f780(0x1ed)][_0x12f780(0x196)]);}else _0x8fdc21[_0x12f780(0x227)](_0x8fdc21[_0x12f780(0x266)],_0x8fdc21[_0x12f780(0x204)])?_0x2a893c=_0x12a5df:(logger[_0x12f780(0x1ed)](_0x8fdc21[_0x12f780(0x1be)]),process['exit'](0x1));}}else{const _0x40a80d={};_0x40a80d[_0x12f780(0x199)]=_0x2de3dd['LOG'],_0x40a80d[_0x12f780(0x21c)]=_0x505d18,_0x34d301[_0x12f780(0x20f)](_0x38e87f,_0x40a80d,_0x8fdc21[_0x12f780(0x1cf)],!![]);}}catch(_0x4492b7){_0x8fdc21[_0x12f780(0x254)](_0x8fdc21[_0x12f780(0x253)],_0x8fdc21[_0x12f780(0x21d)])?_0x4bb98d+=_0x12f780(0x1c5)+_0x311a13[_0x12f780(0x1e0)]+'\x20'+(_0x3f81b7?_0x8fdc21[_0x12f780(0x23d)]:_0x8fdc21[_0x12f780(0x241)])+'\x0a\x0a':(_0x3d951b=_0x12f780(0x21a)+_0x4492b7+':\x20'+_0x4492b7['stack'],logger[_0x12f780(0x1ed)](_0x3d951b),await _0x8fdc21['EPkDo'](reportToGalactusAndSendToEDS,_0x158ea0,_0x20599b,_0x3d951b,messageTypes[_0x12f780(0x1a7)],_0x8fdc21[_0x12f780(0x229)],_0x8fdc21[_0x12f780(0x24e)],_0x8fdc21[_0x12f780(0x1cf)]),process[_0x12f780(0x20d)](0x1));}}function a17_0xed75(_0x349361,_0x4fe363){const _0x3365f2=a17_0x3365();return a17_0xed75=function(_0xed751d,_0x1e95ad){_0xed751d=_0xed751d-0x191;let _0x2ad3cc=_0x3365f2[_0xed751d];return _0x2ad3cc;},a17_0xed75(_0x349361,_0x4fe363);}function printResponse(_0x14c7ab,_0x54a047){const _0x11b451=a17_0x311f72,_0x12f501={};_0x12f501[_0x11b451(0x283)]=function(_0x251685,_0x545389){return _0x251685!==_0x545389;},_0x12f501[_0x11b451(0x258)]=_0x11b451(0x22e);const _0x2f2040=_0x12f501;logger[_0x11b451(0x1bd)]('['+_0x14c7ab+_0x11b451(0x1ef)+_0x54a047[_0x11b451(0x27f)]+_0x11b451(0x26f)+_0x54a047['data']+_0x11b451(0x243)+_0x54a047[_0x11b451(0x1ed)]),_0x54a047['error']&&(_0x2f2040[_0x11b451(0x283)](_0x2f2040['BjtcA'],_0x2f2040[_0x11b451(0x258)])?(_0x560e18[_0x11b451(0x1bd)]('['+_0x595ed2+_0x11b451(0x1ef)+_0x4683ca['status']+_0x11b451(0x26f)+_0x2b04cd[_0x11b451(0x1b6)]+_0x11b451(0x243)+_0x5beeec[_0x11b451(0x1ed)]),_0x1fc398['error']&&_0x15e900[_0x11b451(0x1ed)](_0x11b451(0x1e8)+_0x42adb2['error']['stack'])):logger[_0x11b451(0x1ed)]('error\x20stack\x20:\x20'+_0x54a047['error'][_0x11b451(0x196)]));}async function generateReport(_0x1176aa,_0x4dd42a){const _0x2b4029=a17_0x311f72,_0x216536={'zHeAu':function(_0x193f0f,_0x276563){return _0x193f0f+_0x276563;},'aEorK':_0x2b4029(0x262),'nMJgD':'Failure','rPqFT':function(_0x232b90,_0x4ce793){return _0x232b90||_0x4ce793;},'doLpA':_0x2b4029(0x1f3),'nqWpU':_0x2b4029(0x1cb),'oooVw':_0x2b4029(0x1f0),'fhOsG':function(_0x1bc5d2,_0x11e7c9){return _0x1bc5d2!=_0x11e7c9;},'ZCprn':_0x2b4029(0x277),'THfEP':_0x2b4029(0x19c),'DhhCm':function(_0x509666){return _0x509666();}};let _0x857c37=_0x2b4029(0x223)+global_registry[_0x2b4029(0x24b)]+_0x2b4029(0x212);return _0x1176aa[_0x2b4029(0x1a4)]((_0x56452f,_0xb87377)=>{const _0x3e7187=_0x2b4029,{header:_0x4d1e11,response:_0x5da3c5}=_0x56452f,{status:_0x85c334,data:_0x477ee9,error:_0x9ede95}=_0x5da3c5;_0x857c37+=_0x4d1e11+'\x20#'+_0x216536['zHeAu'](_0xb87377,0x1)+'\x0a',_0x857c37+='Status:\x20'+(_0x85c334?_0x216536['aEorK']:_0x216536[_0x3e7187(0x1b1)])+'\x0a',_0x857c37+=_0x3e7187(0x1b2)+_0x216536['rPqFT'](_0x477ee9,_0x216536[_0x3e7187(0x232)])+'\x0a',_0x9ede95&&(_0x857c37+=_0x216536[_0x3e7187(0x1c1)],_0x857c37+=_0x3e7187(0x25a)+(_0x9ede95[_0x3e7187(0x21c)]||_0x216536['doLpA'])+'\x0a',_0x857c37+=_0x3e7187(0x264)+(_0x9ede95[_0x3e7187(0x215)]||_0x216536[_0x3e7187(0x232)])+'\x0a',_0x857c37+=_0x3e7187(0x1da)+(_0x9ede95['stack']||_0x216536[_0x3e7187(0x232)])+'\x0a'),_0x857c37+='\x0a\x0a';}),_0x857c37+=_0x216536[_0x2b4029(0x203)],_0x216536[_0x2b4029(0x1c3)](_0x4dd42a,null)?_0x857c37+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x4dd42a?_0x216536[_0x2b4029(0x26b)]:_0x216536[_0x2b4029(0x1ba)])+'\x0a\x0a':_0x857c37+=_0x2b4029(0x1c5)+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x857c37+=_0x216536[_0x2b4029(0x210)](getSystemMetaData),_0x857c37;};exports[a17_0x311f72(0x1f5)]=async function(_0x4d77f2){const _0xc8f28=a17_0x311f72,_0x414454={'NhOEv':function(_0x4ff7c1){return _0x4ff7c1();},'hkAqS':function(_0x4a40ed){return _0x4a40ed();},'vpMUZ':_0xc8f28(0x1d6),'AOfvr':function(_0x5beadb,_0x52d647,_0x53cb09,_0x22564a,_0xa70f7e,_0x309bb9,_0x3382a8,_0x5ac682){return _0x5beadb(_0x52d647,_0x53cb09,_0x22564a,_0xa70f7e,_0x309bb9,_0x3382a8,_0x5ac682);},'OTAIq':'pre-check-grid-called','CFdkz':'credential-not-found','VJmlg':_0xc8f28(0x1ed),'xqZnM':function(_0x430e3b,_0xb1d1a1,_0x513fb6,_0x3c44d9,_0x4726b1,_0xc5638,_0x33db34){return _0x430e3b(_0xb1d1a1,_0x513fb6,_0x3c44d9,_0x4726b1,_0xc5638,_0x33db34);},'PAsTB':function(_0x54549b){return _0x54549b();},'NAEVS':_0xc8f28(0x1ac),'QFnaX':'<PasswordPlaceholder>','SgtBm':function(_0x2a0da5,_0x3f4d95,_0x53d1ba){return _0x2a0da5(_0x3f4d95,_0x53d1ba);},'iTfOj':_0xc8f28(0x282),'TXnAk':function(_0x17af0c,_0x5027c6,_0x1d0d9c){return _0x17af0c(_0x5027c6,_0x1d0d9c);},'NPowk':_0xc8f28(0x245),'KGvVq':_0xc8f28(0x19a),'ZKXnR':function(_0x5c8d32,_0x2a2e4f,_0x4e6f3a,_0x21deae,_0x126f1e,_0x10dbf5,_0x156d13,_0xd8d673){return _0x5c8d32(_0x2a2e4f,_0x4e6f3a,_0x21deae,_0x126f1e,_0x10dbf5,_0x156d13,_0xd8d673);},'IBLPB':function(_0x323a31,_0x1e0757,_0x315535){return _0x323a31(_0x1e0757,_0x315535);},'aFiGd':_0xc8f28(0x19f),'CWvfr':_0xc8f28(0x1f4),'zpZuI':function(_0x3ad3a6,_0x22b262){return _0x3ad3a6(_0x22b262);},'sZDWw':_0xc8f28(0x218),'MmSSB':function(_0x314f58,_0x428849,_0x2d7300){return _0x314f58(_0x428849,_0x2d7300);},'ftmOk':_0xc8f28(0x265),'RnwGm':_0xc8f28(0x28b),'qvLKI':_0xc8f28(0x26e),'UxogP':'Whitelisted\x20browserstack','RxTqU':'SSL\x20Configured','dkIFV':function(_0x24f36f,_0x23cc90,_0x56ba37){return _0x24f36f(_0x23cc90,_0x56ba37);},'hSutx':function(_0x4a9dab,_0x2d7e46){return _0x4a9dab+_0x2d7e46;},'SPsKJ':_0xc8f28(0x1de),'QdLKD':_0xc8f28(0x279)};let _0x308513,_0x1dd133;try{global_registry[_0xc8f28(0x1fd)]=_0x414454['NhOEv'](uuidv4);!fs[_0xc8f28(0x23b)](_0x414454['hkAqS'](getCredentialsPath))&&(_0x1dd133=_0x414454[_0xc8f28(0x1ea)],logger[_0xc8f28(0x1ed)](_0x1dd133),await _0x414454[_0xc8f28(0x1d2)](reportToGalactusAndSendToEDS,_0x4d77f2,_0x308513,_0x1dd133,messageTypes[_0xc8f28(0x1a7)],_0x414454['OTAIq'],_0x414454['CFdkz'],_0x414454[_0xc8f28(0x1d4)]),process[_0xc8f28(0x20d)](0x1));_0x414454['xqZnM'](sendInstrumentationEvent,_0x4d77f2,_0x414454[_0xc8f28(0x1c4)],messageTypes['INFO'],null,null,_0x4d77f2);const _0x401d7d=JSON[_0xc8f28(0x273)](fs[_0xc8f28(0x20c)](_0x414454[_0xc8f28(0x27a)](getCredentialsPath)));global_registry['bstackUsername']=_0x401d7d[_0xc8f28(0x25c)][_0xc8f28(0x1e1)],global_registry[_0xc8f28(0x1b5)]=_0x401d7d[_0xc8f28(0x25c)][_0xc8f28(0x193)];const _0x518de2=WS_ENDPOINT[_0xc8f28(0x221)](_0x414454[_0xc8f28(0x1b8)],_0x401d7d['Browserstack'][_0xc8f28(0x1e1)])['replace'](_0x414454[_0xc8f28(0x281)],_0x401d7d['Browserstack'][_0xc8f28(0x193)]),_0x4c1d4a={};_0x4c1d4a[_0xc8f28(0x22c)]=ws,_0x4c1d4a['connectionTimeout']=0x36ee80,_0x308513=new ReconnectingWebSocket(_0x518de2,[],_0x4c1d4a),global_registry[_0xc8f28(0x1b3)]=_0x414454[_0xc8f28(0x23c)](getAuthHeader,global_registry[_0xc8f28(0x259)],global_registry[_0xc8f28(0x1b5)]),await _0x414454[_0xc8f28(0x23c)](inputValidation,_0x4d77f2,_0x308513),logger[_0xc8f28(0x1bd)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0xc8f28(0x24b)]+_0xc8f28(0x213)+global_registry[_0xc8f28(0x26d)]);let _0x314447=await _0x414454[_0xc8f28(0x27e)](getCloudProviderObjectWithOutInit,global_registry[_0xc8f28(0x24b)],global_registry[_0xc8f28(0x1e0)],_0x414454[_0xc8f28(0x25e)],_0x308513,webSocketUtils,_0x4d77f2);const _0xdc5ce7=await _0x314447[_0xc8f28(0x1cd)]();_0x414454[_0xc8f28(0x19e)](printResponse,_0x414454[_0xc8f28(0x222)],_0xdc5ce7),_0x314447=await _0x314447[_0xc8f28(0x251)]();let _0x3e1a0d=![];try{_0x3e1a0d=await _0x314447['isClusterPresent']();}catch(_0x42c304){const _0x3d83d2=_0x414454['KGvVq'][_0xc8f28(0x1fb)]('|');let _0x58ed3d=0x0;while(!![]){switch(_0x3d83d2[_0x58ed3d++]){case'0':_0x1dd133='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0xc8f28(0x1e0)]+_0xc8f28(0x211)+global_registry[_0xc8f28(0x26d)]+_0xc8f28(0x249)+_0x42c304;continue;case'1':logger[_0xc8f28(0x1ed)](_0x1dd133);continue;case'2':await _0x414454[_0xc8f28(0x25f)](reportToGalactusAndSendToEDS,_0x4d77f2,_0x308513,_0x1dd133,messageTypes[_0xc8f28(0x1a7)],_0x414454[_0xc8f28(0x1c4)],'cluster-check-failed-'+global_registry[_0xc8f28(0x24b)],_0x414454['VJmlg']);continue;case'3':_0x1dd133+='\x0a'+JSON[_0xc8f28(0x276)](_0x42c304[_0xc8f28(0x196)]);continue;case'4':_0x3e1a0d=null;continue;}break;}}_0x3e1a0d&&logger[_0xc8f28(0x1bd)](_0xc8f28(0x1f8)+global_registry[_0xc8f28(0x1e0)]+_0xc8f28(0x198));const _0x585268=await _0x314447[_0xc8f28(0x1d3)]();_0x414454[_0xc8f28(0x24c)](printResponse,_0x414454['aFiGd'],_0x585268);const _0x49cd39=await _0x414454[_0xc8f28(0x191)](curlRequest);_0x414454[_0xc8f28(0x19e)](printResponse,_0x414454[_0xc8f28(0x1b0)],_0x49cd39);const _0x5b4347=await _0x414454[_0xc8f28(0x197)](isTlsSupported,_0x414454[_0xc8f28(0x224)]);_0x414454[_0xc8f28(0x1c0)](printResponse,_0x414454['ftmOk'],_0x5b4347);const _0x31dd6d={};_0x31dd6d['header']=_0x414454[_0xc8f28(0x1c8)],_0x31dd6d[_0xc8f28(0x1a0)]=_0xdc5ce7;const _0x2cd2e0={};_0x2cd2e0[_0xc8f28(0x19d)]=_0x414454[_0xc8f28(0x26c)],_0x2cd2e0[_0xc8f28(0x1a0)]=_0x585268;const _0x27a0e7={};_0x27a0e7[_0xc8f28(0x19d)]=_0x414454[_0xc8f28(0x270)],_0x27a0e7[_0xc8f28(0x1a0)]=_0x49cd39;const _0x29f819={};_0x29f819[_0xc8f28(0x19d)]=_0x414454[_0xc8f28(0x1dc)],_0x29f819[_0xc8f28(0x1a0)]=_0x5b4347;const _0x45a81e=[_0x31dd6d,_0x2cd2e0,_0x27a0e7,_0x29f819],_0x1dae7d=await _0x414454['dkIFV'](generateReport,_0x45a81e,_0x3e1a0d),_0x1f0c68=new Date(),_0x2f8dc0=_0x1f0c68[_0xc8f28(0x230)]()+'_'+_0x414454[_0xc8f28(0x1ca)](_0x1f0c68[_0xc8f28(0x1bf)](),0x1)+'_'+_0x1f0c68[_0xc8f28(0x1a8)]()+'_'+_0x1f0c68['getUTCHours']()+'_'+_0x1f0c68['getUTCMinutes'](),_0x24a67d=_0xc8f28(0x28a)+_0x2f8dc0+'.txt';fs[_0xc8f28(0x192)](_0x24a67d,_0x1dae7d,_0x414454[_0xc8f28(0x252)]),logger[_0xc8f28(0x1bd)]('Report\x20saved\x20in\x20'+_0x24a67d),process['exit'](0x0);}catch(_0x4f88f3){let _0x508d58='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x4f88f3+'\x20';logger[_0xc8f28(0x1ed)](_0x508d58),_0x508d58+='\x0a'+JSON[_0xc8f28(0x276)](_0x4f88f3[_0xc8f28(0x196)]),logger[_0xc8f28(0x248)](_0xc8f28(0x1e6)+_0x4f88f3[_0xc8f28(0x196)]);if(_0x308513){const _0x10c380={};_0x10c380[_0xc8f28(0x199)]=WS_EVENTS[_0xc8f28(0x1f1)],_0x10c380[_0xc8f28(0x21c)]=_0x508d58,webSocketUtils[_0xc8f28(0x20f)](_0x308513,_0x10c380,_0x414454['VJmlg'],!![]);}await webSocketUtils[_0xc8f28(0x22b)](0x7d0);const _0x164292={};_0x164292[_0xc8f28(0x1ed)]=_0x508d58,await _0x414454[_0xc8f28(0x27e)](sendInstrumentationEvent,_0x4d77f2,_0x414454[_0xc8f28(0x1c4)],messageTypes[_0xc8f28(0x1a7)],_0x414454[_0xc8f28(0x25b)],_0x164292,_0x4d77f2),process[_0xc8f28(0x20d)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x4533af=a18_0x1167;function a18_0x3512(){const _0x42ff36=['707113SDyugy','436420LgdwXf','demandCommand','10mPtPMP','../config/constants','109334NlSslA','commandDir','help','2176WvrRJy','usage','strict','epilogue','4WDJcnh','810082RowGRO','1358724DBJdoS','start_commands','YlWUv','recommendCommands','3rNYMCJ','7146OqYfxZ','start','603308xLcsql','LuHPn'];a18_0x3512=function(){return _0x42ff36;};return a18_0x3512();}(function(_0x169a1f,_0x2238a3){const _0x3c5a4c=a18_0x1167,_0x19a910=_0x169a1f();while(!![]){try{const _0x83d773=-parseInt(_0x3c5a4c(0x179))/0x1*(-parseInt(_0x3c5a4c(0x180))/0x2)+-parseInt(_0x3c5a4c(0x16f))/0x3*(parseInt(_0x3c5a4c(0x172))/0x4)+parseInt(_0x3c5a4c(0x175))/0x5+parseInt(_0x3c5a4c(0x16b))/0x6+-parseInt(_0x3c5a4c(0x181))/0x7+-parseInt(_0x3c5a4c(0x17c))/0x8*(parseInt(_0x3c5a4c(0x170))/0x9)+parseInt(_0x3c5a4c(0x177))/0xa*(parseInt(_0x3c5a4c(0x174))/0xb);if(_0x83d773===_0x2238a3)break;else _0x19a910['push'](_0x19a910['shift']());}catch(_0x2df98a){_0x19a910['push'](_0x19a910['shift']());}}}(a18_0x3512,0x1bdf8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x4533af(0x178));function a18_0x1167(_0x344976,_0x1172a8){const _0x3512e8=a18_0x3512();return a18_0x1167=function(_0x11679c,_0x2c6c5f){_0x11679c=_0x11679c-0x16b;let _0x5ee474=_0x3512e8[_0x11679c];return _0x5ee474;},a18_0x1167(_0x344976,_0x1172a8);}exports['command']=a18_0x4533af(0x171),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x52d98e){const _0x11b0bf=a18_0x4533af,_0x3eb4e1={};_0x3eb4e1[_0x11b0bf(0x16d)]=_0x11b0bf(0x16c),_0x3eb4e1[_0x11b0bf(0x173)]=_0x11b0bf(0x17b);const _0xc0f10=_0x3eb4e1;return _0x52d98e[_0x11b0bf(0x17d)](HELP_HEADER_MESSAGE[_0x11b0bf(0x171)])[_0x11b0bf(0x17f)](HELP_FOOTER_MESSAGE)[_0x11b0bf(0x17a)](_0xc0f10[_0x11b0bf(0x16d)])[_0x11b0bf(0x176)]()[_0x11b0bf(0x16e)]()[_0x11b0bf(0x17e)]()['help'](_0xc0f10[_0x11b0bf(0x173)]);},exports['handler']=function(_0xf6a13e){};
1
+ const a18_0x14146e=a18_0x155a;(function(_0x1e23da,_0x3da210){const _0x1630d4=a18_0x155a,_0x2e2231=_0x1e23da();while(!![]){try{const _0x5cd718=-parseInt(_0x1630d4(0x9b))/0x1+parseInt(_0x1630d4(0xa0))/0x2*(parseInt(_0x1630d4(0x9c))/0x3)+-parseInt(_0x1630d4(0x93))/0x4*(-parseInt(_0x1630d4(0xa4))/0x5)+parseInt(_0x1630d4(0xa5))/0x6*(-parseInt(_0x1630d4(0xa3))/0x7)+-parseInt(_0x1630d4(0x99))/0x8*(parseInt(_0x1630d4(0x94))/0x9)+parseInt(_0x1630d4(0x9e))/0xa+parseInt(_0x1630d4(0x9d))/0xb;if(_0x5cd718===_0x3da210)break;else _0x2e2231['push'](_0x2e2231['shift']());}catch(_0x4feeb1){_0x2e2231['push'](_0x2e2231['shift']());}}}(a18_0x2c11,0xee302));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x14146e(0x95));exports['command']='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x238f88){const _0x3a5a97=a18_0x14146e,_0x1cf61a={};_0x1cf61a[_0x3a5a97(0xa1)]=_0x3a5a97(0x9f),_0x1cf61a[_0x3a5a97(0x92)]=_0x3a5a97(0x9a);const _0x4ae94c=_0x1cf61a;return _0x238f88[_0x3a5a97(0x97)](HELP_HEADER_MESSAGE['start'])[_0x3a5a97(0x98)](HELP_FOOTER_MESSAGE)[_0x3a5a97(0x96)](_0x4ae94c['niJnF'])['demandCommand']()['recommendCommands']()[_0x3a5a97(0x91)]()['help'](_0x4ae94c[_0x3a5a97(0x92)]);},exports[a18_0x14146e(0xa2)]=function(_0x4340b6){};function a18_0x155a(_0x14c2ac,_0x119371){const _0x2c11d1=a18_0x2c11();return a18_0x155a=function(_0x155a9f,_0x24dfe5){_0x155a9f=_0x155a9f-0x91;let _0x5c8b05=_0x2c11d1[_0x155a9f];return _0x5c8b05;},a18_0x155a(_0x14c2ac,_0x119371);}function a18_0x2c11(){const _0x3e7b86=['2044910HAhQKj','start_commands','20JwYWZb','niJnF','handler','3896809dOYCiv','207595rEVfaF','6bvuZKs','strict','Tmbij','76ZnIFvw','319266SoQyuM','../config/constants','commandDir','usage','epilogue','248NMmpYB','help','1089566SSjZHs','225534pbEnJe','21740763NnxnXy'];a18_0x2c11=function(){return _0x3e7b86;};return a18_0x2c11();}
@@ -1 +1 @@
1
- function a19_0x1b9f(){const _0x72444c=['builder','clusterName','debug','addListeners','ffEtj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../cloudproviders/utils','argv','2752646plivxo','Starting\x20grid\x20','grid-id','password','info','OmROi','QLVqb','name','invalid-grid-id','WebSocket','boolean','stack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','existsSync','5TWIndx','HHaam','4848158NMwayc','INFO','12VVfmEv','../../config/constants','../../config/logger','description','Browserstack','../../utils/webSocketUtils','OlFDd','uHYHU','username','790537KUCqyn','readFileSync','doPIs','options','bstackAccesskey','exit','UYIHP','default','90aLjxXE','replace','ERROR','stringify','desc','user','wvPre','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','Start\x20an\x20existing\x20Automation\x20grid.','4edGEWx','handler','parse','help','cVYNe','Skip\x20insecure\x20cert\x20verification.','RzlwS','614265maxxTh','10Bcxsqf','<PasswordPlaceholder>','skip-tls-cert-verify','../../utils/utilityMethods','message','error','server-error','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','grid','string','5752770ZZsIna','unauthorised','JLDcy','gridId','bEanK','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','QeZVC','gVfRB','91136xgxCzM','133204FoYPUp','YfKrs','type','vpxvK','start-grid-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Grid\x20started','kktNx','cloudProvider','statusCode','clusterRegion','puxSd','TBdqi','FiYEI','gXjTW','Myhdg','GGyhE','reconnecting-websocket','bstackUsername','75UBHtlq','../../utils/gridComponents','FtgAc'];a19_0x1b9f=function(){return _0x72444c;};return a19_0x1b9f();}const a19_0x384a0e=a19_0xf993;(function(_0x2613a8,_0x5a41ec){const _0x343dc8=a19_0xf993,_0x3b4db7=_0x2613a8();while(!![]){try{const _0x24129c=-parseInt(_0x343dc8(0x16e))/0x1*(-parseInt(_0x343dc8(0x167))/0x2)+-parseInt(_0x343dc8(0x12f))/0x3*(parseInt(_0x343dc8(0x182))/0x4)+-parseInt(_0x343dc8(0x148))/0x5*(-parseInt(_0x343dc8(0x179))/0x6)+-parseInt(_0x343dc8(0x14a))/0x7+-parseInt(_0x343dc8(0x181))/0x8*(parseInt(_0x343dc8(0x15d))/0x9)+-parseInt(_0x343dc8(0x16f))/0xa*(parseInt(_0x343dc8(0x155))/0xb)+parseInt(_0x343dc8(0x14c))/0xc*(parseInt(_0x343dc8(0x13a))/0xd);if(_0x24129c===_0x5a41ec)break;else _0x3b4db7['push'](_0x3b4db7['shift']());}catch(_0x1003d2){_0x3b4db7['push'](_0x3b4db7['shift']());}}}(a19_0x1b9f,0xa8021));function a19_0xf993(_0x3363ee,_0x2c1bab){const _0x1b9f95=a19_0x1b9f();return a19_0xf993=function(_0xf99398,_0x1d21f2){_0xf99398=_0xf99398-0x125;let _0x59d561=_0x1b9f95[_0xf99398];return _0x59d561;},a19_0xf993(_0x3363ee,_0x2c1bab);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x384a0e(0x12d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x384a0e(0x14d)),{logger}=require(a19_0x384a0e(0x14e)),{getCredentialsPath,getGridDetails}=require(a19_0x384a0e(0x172)),{scaleUpHubDeployment}=require(a19_0x384a0e(0x130)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x384a0e(0x151)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x384a0e(0x138));exports['command']=a19_0x384a0e(0x177),exports[a19_0x384a0e(0x161)]=a19_0x384a0e(0x166),exports[a19_0x384a0e(0x132)]=function(_0x594dab){const _0x2b7efa=a19_0x384a0e,_0x2e6d9c={};_0x2e6d9c['JLDcy']=_0x2b7efa(0x17e),_0x2e6d9c[_0x2b7efa(0x12a)]=_0x2b7efa(0x178),_0x2e6d9c[_0x2b7efa(0x127)]=_0x2b7efa(0x16c),_0x2e6d9c[_0x2b7efa(0x157)]=_0x2b7efa(0x144),_0x2e6d9c['wvPre']='help';const _0x319174=_0x2e6d9c,_0x2ba38b={};_0x2ba38b[_0x2b7efa(0x14f)]=_0x319174[_0x2b7efa(0x17b)],_0x2ba38b[_0x2b7efa(0x184)]=_0x319174['gXjTW'];const _0x11b666={};_0x11b666[_0x2b7efa(0x14f)]=_0x319174[_0x2b7efa(0x127)],_0x11b666[_0x2b7efa(0x184)]=_0x319174[_0x2b7efa(0x157)],_0x11b666[_0x2b7efa(0x15c)]=![];const _0x4552b8={};return _0x4552b8[_0x2b7efa(0x13c)]=_0x2ba38b,_0x4552b8[_0x2b7efa(0x171)]=_0x11b666,_0x594dab['usage'](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2b7efa(0x158)](_0x4552b8)[_0x2b7efa(0x16a)](_0x319174[_0x2b7efa(0x163)])[_0x2b7efa(0x139)];},exports[a19_0x384a0e(0x168)]=async function(_0x323d71){const _0x168200=a19_0x384a0e,_0x173a5c={'FiYEI':_0x168200(0x146),'uHYHU':function(_0x576aad){return _0x576aad();},'QLVqb':_0x168200(0x164),'QeZVC':function(_0x4f42f3,_0x292f09,_0x551ef6,_0x199ee1,_0x34b6f0,_0x3ae610,_0x32c0c1){return _0x4f42f3(_0x292f09,_0x551ef6,_0x199ee1,_0x34b6f0,_0x3ae610,_0x32c0c1);},'UYIHP':_0x168200(0x186),'Myhdg':'init-not-called','YfKrs':function(_0x245c6b){return _0x245c6b();},'cVYNe':'<UsernamePlaceholder>','RzlwS':_0x168200(0x170),'HHaam':'Adding\x20Websocket\x20listeners','NEDfk':function(_0x343ad1,_0x5a7fae,_0x1ba298,_0x516f7e){return _0x343ad1(_0x5a7fae,_0x1ba298,_0x516f7e);},'TBdqi':function(_0x4267f7,_0x34b88c,_0x266c41,_0x5aeb87,_0x4b97b4,_0x2e6916,_0xd033c9){return _0x4267f7(_0x34b88c,_0x266c41,_0x5aeb87,_0x4b97b4,_0x2e6916,_0xd033c9);},'OlFDd':function(_0x1c6969,_0x1483a7,_0x56ee36){return _0x1c6969(_0x1483a7,_0x56ee36);},'vpxvK':function(_0x508e08,_0x1db805,_0x4d4c8d){return _0x508e08(_0x1db805,_0x4d4c8d);},'kktNx':_0x168200(0x188),'GGyhE':function(_0x54f58a,_0x123a7c){return _0x54f58a===_0x123a7c;},'gVfRB':_0x168200(0x137),'FtgAc':_0x168200(0x17a),'OmROi':function(_0x32a9c7,_0x52b459){return _0x32a9c7===_0x52b459;},'ffEtj':function(_0x318245,_0x237d51,_0x32c868,_0x396b0c,_0x470ed5,_0x4b4df9,_0x3d443e){return _0x318245(_0x237d51,_0x32c868,_0x396b0c,_0x470ed5,_0x4b4df9,_0x3d443e);},'bEanK':_0x168200(0x142),'yEXIB':_0x168200(0x175)};let _0x5a9cfa;try{!_0x323d71[_0x168200(0x17c)]&&(logger['error'](_0x173a5c[_0x168200(0x129)]),process['exit'](0x1));!fs[_0x168200(0x147)](_0x173a5c[_0x168200(0x153)](getCredentialsPath))&&(logger['error'](_0x173a5c[_0x168200(0x140)]),await _0x173a5c[_0x168200(0x17f)](sendInstrumentationEvent,_0x323d71,_0x173a5c[_0x168200(0x15b)],messageTypes[_0x168200(0x15f)],_0x173a5c[_0x168200(0x12b)],null,_0x323d71),process[_0x168200(0x15a)](0x1));logger[_0x168200(0x13e)](_0x168200(0x13b)+_0x323d71[_0x168200(0x17c)]),await _0x173a5c[_0x168200(0x17f)](sendInstrumentationEvent,_0x323d71,_0x173a5c[_0x168200(0x15b)],messageTypes[_0x168200(0x14b)],null,null,_0x323d71);const _0x343cca=JSON['parse'](fs[_0x168200(0x156)](_0x173a5c[_0x168200(0x183)](getCredentialsPath)));global_registry[_0x168200(0x12e)]=_0x343cca[_0x168200(0x150)][_0x168200(0x154)],global_registry[_0x168200(0x159)]=_0x343cca[_0x168200(0x150)][_0x168200(0x13d)];const _0x20d184=WS_ENDPOINT[_0x168200(0x15e)](_0x173a5c[_0x168200(0x16b)],_0x343cca[_0x168200(0x150)]['username'])[_0x168200(0x15e)](_0x173a5c[_0x168200(0x16d)],_0x343cca[_0x168200(0x150)]['password']),_0xb7030f={};_0xb7030f[_0x168200(0x143)]=ws,_0xb7030f['connectionTimeout']=0x36ee80,_0x5a9cfa=new ReconnectingWebSocket(_0x20d184,[],_0xb7030f),logger[_0x168200(0x134)](_0x173a5c[_0x168200(0x149)]),webSocketUtils[_0x168200(0x135)](_0x5a9cfa,_0x323d71[_0x168200(0x162)],_0x323d71['password']);const [_0x4262ff,_0x3a9dca]=await _0x173a5c['NEDfk'](getGridDetails,_0x343cca[_0x168200(0x150)][_0x168200(0x154)],_0x343cca[_0x168200(0x150)][_0x168200(0x13d)],_0x323d71[_0x168200(0x17c)]);if(_0x3a9dca){const _0x4e0d04=_0x3a9dca[_0x168200(0x13e)];global_registry[_0x168200(0x18a)]=_0x4e0d04[_0x168200(0x18a)],global_registry[_0x168200(0x126)]=_0x4e0d04['region'],global_registry[_0x168200(0x133)]=_0x4e0d04['clusterName'];const _0x2eebfc=await _0x173a5c[_0x168200(0x128)](getCloudProviderObject,_0x4e0d04['cloudProvider'],_0x4e0d04[_0x168200(0x133)],_0x4e0d04[_0x168200(0x141)],_0x5a9cfa,webSocketUtils,_0x323d71),[_0x1684c2,_0x49e8ee,_0x35a82f,_0x3a6102,_0x1f935f,_0x3ad72c]=await _0x173a5c[_0x168200(0x152)](createK8sClient,_0x2eebfc,_0x323d71['skipTlsCertVerify']);await _0x173a5c[_0x168200(0x185)](scaleUpHubDeployment,_0x49e8ee,_0x4e0d04[_0x168200(0x141)]),logger[_0x168200(0x13e)](_0x173a5c[_0x168200(0x189)]),process[_0x168200(0x15a)](0x0);}_0x173a5c[_0x168200(0x12c)](_0x4262ff[_0x168200(0x125)],0x191)&&(logger['error'](_0x173a5c[_0x168200(0x180)]),await _0x173a5c['QeZVC'](sendInstrumentationEvent,_0x323d71,_0x173a5c[_0x168200(0x15b)],messageTypes[_0x168200(0x15f)],_0x173a5c[_0x168200(0x131)],null,_0x323d71),process[_0x168200(0x15a)](0x1)),_0x173a5c[_0x168200(0x13f)](_0x4262ff['statusCode'],0x190)&&(logger[_0x168200(0x174)](JSON[_0x168200(0x169)](_0x4262ff[_0x168200(0x165)])[_0x168200(0x173)]),await _0x173a5c[_0x168200(0x136)](sendInstrumentationEvent,_0x323d71,_0x173a5c[_0x168200(0x15b)],messageTypes[_0x168200(0x15f)],_0x173a5c[_0x168200(0x17d)],null,_0x323d71),process[_0x168200(0x15a)](0x1)),logger['error'](_0x168200(0x187)+JSON[_0x168200(0x160)](_0x4262ff)),await _0x173a5c[_0x168200(0x128)](sendInstrumentationEvent,_0x323d71,_0x173a5c['UYIHP'],messageTypes[_0x168200(0x15f)],_0x173a5c['yEXIB'],_0x4262ff,_0x323d71),process['exit'](0x1);}catch(_0x146e26){const _0x429b7d=_0x168200(0x176)+_0x146e26+'\x20\x0a'+JSON['stringify'](_0x146e26[_0x168200(0x145)])+'\x20';logger[_0x168200(0x174)](_0x429b7d),process[_0x168200(0x15a)](0x1);}};
1
+ function a19_0x541f(){const _0x28769c=['7kCHimT','Adding\x20Websocket\x20listeners','jIyqS','help','10961630zuKGEp','skipTlsCertVerify','username','invalid-grid-id','usage','parse','9uqmRdE','LwHxa','password','bstackAccesskey','gHnmk','kSygq','HmIqK','plYro','body','../../utils/webSocketUtils','start-grid-called','AZeWP','1400436mJYKjy','statusCode','reconnecting-websocket','piNak','debug','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','replace','HnMga','iHBCA','command','EvqFz','ZKKbp','../../config/constants','bstackUsername','type','user','description','argv','grid','../../config/logger','../../utils/instrumentationUtils','unauthorised','clRLK','builder','../../utils/createk8sClient','<UsernamePlaceholder>','QTEYt','init-not-called','server-error','beDoq','gridId','64424BnfmsN','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','error','handler','dXieW','default','254945CkmJUt','grid-id','skip-tls-cert-verify','<PasswordPlaceholder>','juDNL','yIJTV','HUemJ','../../cloudproviders/utils','desc','options','../../utils/gridComponents','start','ERROR','255880iNcpJU','region','DWXXP','connectionTimeout','cloudProvider','Grid\x20started','../../utils/utilityMethods','2046522WDhBuS','readFileSync','exit','Starting\x20grid\x20','stringify','Browserstack','45xZwXtD','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','existsSync','nWTKG','clusterName','message','1764096yxySIY','info','Start\x20an\x20existing\x20Automation\x20grid.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','addListeners'];a19_0x541f=function(){return _0x28769c;};return a19_0x541f();}const a19_0x325907=a19_0x5173;function a19_0x5173(_0x4a2926,_0x288bcd){const _0x541f9e=a19_0x541f();return a19_0x5173=function(_0x51732e,_0x212b75){_0x51732e=_0x51732e-0x1f2;let _0x2d8828=_0x541f9e[_0x51732e];return _0x2d8828;},a19_0x5173(_0x4a2926,_0x288bcd);}(function(_0x5363f9,_0x3d7d5d){const _0x1284bd=a19_0x5173,_0xd0bf93=_0x5363f9();while(!![]){try{const _0x54cbf6=parseInt(_0x1284bd(0x248))/0x1+parseInt(_0x1284bd(0x242))/0x2+parseInt(_0x1284bd(0x223))/0x3+parseInt(_0x1284bd(0x1f5))/0x4*(parseInt(_0x1284bd(0x202))/0x5)+-parseInt(_0x1284bd(0x1fc))/0x6*(-parseInt(_0x1284bd(0x20d))/0x7)+-parseInt(_0x1284bd(0x208))/0x8+-parseInt(_0x1284bd(0x217))/0x9*(parseInt(_0x1284bd(0x211))/0xa);if(_0x54cbf6===_0x3d7d5d)break;else _0xd0bf93['push'](_0xd0bf93['shift']());}catch(_0x5636ac){_0xd0bf93['push'](_0xd0bf93['shift']());}}}(a19_0x541f,0x5673f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x325907(0x225)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x325907(0x22f)),{logger}=require(a19_0x325907(0x236)),{getCredentialsPath,getGridDetails}=require(a19_0x325907(0x1fb)),{scaleUpHubDeployment}=require(a19_0x325907(0x1f2)),{sendInstrumentationEvent}=require(a19_0x325907(0x237)),webSocketUtils=require(a19_0x325907(0x220)),{createK8sClient}=require(a19_0x325907(0x23b)),{getCloudProviderObject}=require(a19_0x325907(0x24f));exports[a19_0x325907(0x22c)]=a19_0x325907(0x235),exports[a19_0x325907(0x250)]=a19_0x325907(0x20a),exports[a19_0x325907(0x23a)]=function(_0x1f7016){const _0x33b6ad=a19_0x325907,_0x40141c={};_0x40141c['beDoq']=_0x33b6ad(0x243),_0x40141c[_0x33b6ad(0x22b)]='string',_0x40141c[_0x33b6ad(0x22d)]='Skip\x20insecure\x20cert\x20verification.',_0x40141c[_0x33b6ad(0x246)]='boolean',_0x40141c[_0x33b6ad(0x1f7)]=_0x33b6ad(0x210);const _0x166169=_0x40141c,_0xa48c55={};_0xa48c55[_0x33b6ad(0x233)]=_0x166169[_0x33b6ad(0x240)],_0xa48c55[_0x33b6ad(0x231)]=_0x166169['iHBCA'];const _0x43b82d={};_0x43b82d[_0x33b6ad(0x233)]=_0x166169[_0x33b6ad(0x22d)],_0x43b82d['type']=_0x166169[_0x33b6ad(0x246)],_0x43b82d[_0x33b6ad(0x247)]=![];const _0xcda468={};return _0xcda468[_0x33b6ad(0x249)]=_0xa48c55,_0xcda468[_0x33b6ad(0x24a)]=_0x43b82d,_0x1f7016[_0x33b6ad(0x215)](HELP_HEADER_MESSAGE[_0x33b6ad(0x1f3)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x33b6ad(0x251)](_0xcda468)[_0x33b6ad(0x210)](_0x166169[_0x33b6ad(0x1f7)])[_0x33b6ad(0x234)];},exports[a19_0x325907(0x245)]=async function(_0xbd0b5f){const _0x5c4083=a19_0x325907,_0x36a0f0={'kSygq':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','piNak':function(_0x48e1e9){return _0x48e1e9();},'QTEYt':_0x5c4083(0x20b),'juDNL':function(_0x35bdbc,_0x2c9071,_0xad9697,_0x24b10f,_0x58d12c,_0x58377e,_0x91d429){return _0x35bdbc(_0x2c9071,_0xad9697,_0x24b10f,_0x58d12c,_0x58377e,_0x91d429);},'plYro':_0x5c4083(0x221),'AZeWP':_0x5c4083(0x23e),'kpSph':function(_0x461eb4,_0xc44740,_0x50a2f4,_0x90fe07,_0x1fffd5,_0x3c8733,_0x223f77){return _0x461eb4(_0xc44740,_0x50a2f4,_0x90fe07,_0x1fffd5,_0x3c8733,_0x223f77);},'YNXRf':_0x5c4083(0x23c),'jIyqS':_0x5c4083(0x24b),'colCt':_0x5c4083(0x20e),'HUemJ':function(_0x4f4c87,_0x17d1e1,_0x32f1a1,_0x51bb17){return _0x4f4c87(_0x17d1e1,_0x32f1a1,_0x51bb17);},'ZKKbp':function(_0x3c4a2d,_0x395f42,_0x352eee,_0x4455e2,_0x2236f9,_0x3f2a3a,_0x113008){return _0x3c4a2d(_0x395f42,_0x352eee,_0x4455e2,_0x2236f9,_0x3f2a3a,_0x113008);},'HmIqK':function(_0x7334f0,_0x4fafe6,_0x22c9bf){return _0x7334f0(_0x4fafe6,_0x22c9bf);},'IGojm':function(_0x44f751,_0xf0b51c,_0x32dbd4){return _0x44f751(_0xf0b51c,_0x32dbd4);},'nWTKG':_0x5c4083(0x1fa),'HnMga':function(_0x1f706d,_0x224637){return _0x1f706d===_0x224637;},'yIJTV':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','HvkMq':_0x5c4083(0x238),'LwHxa':_0x5c4083(0x214),'clRLK':function(_0x3b9c19,_0x428560,_0x447910,_0x3f4af1,_0x558c44,_0x364b70,_0x32b592){return _0x3b9c19(_0x428560,_0x447910,_0x3f4af1,_0x558c44,_0x364b70,_0x32b592);},'gHnmk':_0x5c4083(0x23f)};let _0x43ee12;try{!_0xbd0b5f[_0x5c4083(0x241)]&&(logger[_0x5c4083(0x244)](_0x36a0f0[_0x5c4083(0x21c)]),process[_0x5c4083(0x1fe)](0x1));!fs[_0x5c4083(0x204)](_0x36a0f0['piNak'](getCredentialsPath))&&(logger['error'](_0x36a0f0[_0x5c4083(0x23d)]),await _0x36a0f0[_0x5c4083(0x24c)](sendInstrumentationEvent,_0xbd0b5f,_0x36a0f0[_0x5c4083(0x21e)],messageTypes['ERROR'],_0x36a0f0[_0x5c4083(0x222)],null,_0xbd0b5f),process[_0x5c4083(0x1fe)](0x1));logger['info'](_0x5c4083(0x1ff)+_0xbd0b5f[_0x5c4083(0x241)]),await _0x36a0f0['kpSph'](sendInstrumentationEvent,_0xbd0b5f,_0x36a0f0[_0x5c4083(0x21e)],messageTypes['INFO'],null,null,_0xbd0b5f);const _0x25a4c5=JSON[_0x5c4083(0x216)](fs[_0x5c4083(0x1fd)](_0x36a0f0[_0x5c4083(0x226)](getCredentialsPath)));global_registry[_0x5c4083(0x230)]=_0x25a4c5[_0x5c4083(0x201)][_0x5c4083(0x213)],global_registry[_0x5c4083(0x21a)]=_0x25a4c5['Browserstack'][_0x5c4083(0x219)];const _0x51d51f=WS_ENDPOINT[_0x5c4083(0x229)](_0x36a0f0['YNXRf'],_0x25a4c5['Browserstack']['username'])[_0x5c4083(0x229)](_0x36a0f0[_0x5c4083(0x20f)],_0x25a4c5[_0x5c4083(0x201)][_0x5c4083(0x219)]),_0x6c09ed={};_0x6c09ed['WebSocket']=ws,_0x6c09ed[_0x5c4083(0x1f8)]=0x36ee80,_0x43ee12=new ReconnectingWebSocket(_0x51d51f,[],_0x6c09ed),logger[_0x5c4083(0x227)](_0x36a0f0['colCt']),webSocketUtils[_0x5c4083(0x20c)](_0x43ee12,_0xbd0b5f[_0x5c4083(0x232)],_0xbd0b5f[_0x5c4083(0x219)]);const [_0x550576,_0x258691]=await _0x36a0f0[_0x5c4083(0x24e)](getGridDetails,_0x25a4c5['Browserstack'][_0x5c4083(0x213)],_0x25a4c5[_0x5c4083(0x201)][_0x5c4083(0x219)],_0xbd0b5f[_0x5c4083(0x241)]);if(_0x258691){const _0x2fa4fd=_0x258691[_0x5c4083(0x209)];global_registry['cloudProvider']=_0x2fa4fd[_0x5c4083(0x1f9)],global_registry['clusterRegion']=_0x2fa4fd[_0x5c4083(0x1f6)],global_registry[_0x5c4083(0x206)]=_0x2fa4fd[_0x5c4083(0x206)];const _0x1213be=await _0x36a0f0[_0x5c4083(0x22e)](getCloudProviderObject,_0x2fa4fd[_0x5c4083(0x1f9)],_0x2fa4fd[_0x5c4083(0x206)],_0x2fa4fd['name'],_0x43ee12,webSocketUtils,_0xbd0b5f),[_0x3ebbdc,_0x19f606,_0x1b04ca,_0x4ec430,_0x1c8f86,_0x1177b2]=await _0x36a0f0[_0x5c4083(0x21d)](createK8sClient,_0x1213be,_0xbd0b5f[_0x5c4083(0x212)]);await _0x36a0f0['IGojm'](scaleUpHubDeployment,_0x19f606,_0x2fa4fd['name']),logger[_0x5c4083(0x209)](_0x36a0f0[_0x5c4083(0x205)]),process[_0x5c4083(0x1fe)](0x0);}_0x36a0f0[_0x5c4083(0x22a)](_0x550576[_0x5c4083(0x224)],0x191)&&(logger[_0x5c4083(0x244)](_0x36a0f0[_0x5c4083(0x24d)]),await _0x36a0f0[_0x5c4083(0x22e)](sendInstrumentationEvent,_0xbd0b5f,_0x36a0f0[_0x5c4083(0x21e)],messageTypes[_0x5c4083(0x1f4)],_0x36a0f0['HvkMq'],null,_0xbd0b5f),process[_0x5c4083(0x1fe)](0x1)),_0x36a0f0[_0x5c4083(0x22a)](_0x550576[_0x5c4083(0x224)],0x190)&&(logger['error'](JSON[_0x5c4083(0x216)](_0x550576[_0x5c4083(0x21f)])[_0x5c4083(0x207)]),await _0x36a0f0['kpSph'](sendInstrumentationEvent,_0xbd0b5f,_0x36a0f0['plYro'],messageTypes['ERROR'],_0x36a0f0[_0x5c4083(0x218)],null,_0xbd0b5f),process[_0x5c4083(0x1fe)](0x1)),logger[_0x5c4083(0x244)](_0x5c4083(0x228)+JSON[_0x5c4083(0x200)](_0x550576)),await _0x36a0f0[_0x5c4083(0x239)](sendInstrumentationEvent,_0xbd0b5f,_0x36a0f0[_0x5c4083(0x21e)],messageTypes[_0x5c4083(0x1f4)],_0x36a0f0[_0x5c4083(0x21b)],_0x550576,_0xbd0b5f),process[_0x5c4083(0x1fe)](0x1);}catch(_0x45b174){const _0x8a6d64=_0x5c4083(0x203)+_0x45b174+'\x20\x0a'+JSON[_0x5c4083(0x200)](_0x45b174['stack'])+'\x20';logger[_0x5c4083(0x244)](_0x8a6d64),process[_0x5c4083(0x1fe)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x3f21fd=a20_0x4d66;(function(_0x49440d,_0x71d0af){const _0x2e4a2a=a20_0x4d66,_0x51e55c=_0x49440d();while(!![]){try{const _0x2f3b6a=parseInt(_0x2e4a2a(0x100))/0x1*(-parseInt(_0x2e4a2a(0x109))/0x2)+-parseInt(_0x2e4a2a(0x103))/0x3*(parseInt(_0x2e4a2a(0xf6))/0x4)+parseInt(_0x2e4a2a(0x10a))/0x5*(-parseInt(_0x2e4a2a(0xff))/0x6)+-parseInt(_0x2e4a2a(0x101))/0x7*(parseInt(_0x2e4a2a(0xfc))/0x8)+-parseInt(_0x2e4a2a(0xf8))/0x9+-parseInt(_0x2e4a2a(0x10c))/0xa*(-parseInt(_0x2e4a2a(0x107))/0xb)+parseInt(_0x2e4a2a(0xfe))/0xc;if(_0x2f3b6a===_0x71d0af)break;else _0x51e55c['push'](_0x51e55c['shift']());}catch(_0x3e1fbd){_0x51e55c['push'](_0x51e55c['shift']());}}}(a20_0x1bcf,0xa4c2f));function a20_0x4d66(_0x26fc0d,_0x2b618d){const _0x1bcff7=a20_0x1bcf();return a20_0x4d66=function(_0x4d66a2,_0x42771c){_0x4d66a2=_0x4d66a2-0xf5;let _0xc720a6=_0x1bcff7[_0x4d66a2];return _0xc720a6;},a20_0x4d66(_0x26fc0d,_0x2b618d);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x3f21fd(0x104));exports['command']=a20_0x3f21fd(0x105),exports[a20_0x3f21fd(0xfd)]=a20_0x3f21fd(0x102),exports[a20_0x3f21fd(0x10b)]=function(_0x22e710){const _0x187651=a20_0x3f21fd,_0x3aa463={};_0x3aa463[_0x187651(0xf7)]=_0x187651(0xfa),_0x3aa463[_0x187651(0x10d)]='help';const _0x244486=_0x3aa463;return _0x22e710['usage'](HELP_HEADER_MESSAGE[_0x187651(0x105)])[_0x187651(0xf5)](HELP_FOOTER_MESSAGE)[_0x187651(0xfb)](_0x244486[_0x187651(0xf7)])[_0x187651(0x108)]()[_0x187651(0x106)]()['strict']()[_0x187651(0xf9)](_0x244486[_0x187651(0x10d)]);},exports['handler']=function(_0x59fb6c){};function a20_0x1bcf(){const _0x210b41=['59381472ffVKDM','3020532FWeevs','239gcmiFd','12376waqZfL','Stop\x20a\x20running\x20Automation\x20grid.','526329eMTAXh','../config/constants','stop','recommendCommands','154AwJewe','demandCommand','7274WdlgVJ','10uziNuL','builder','149130KvsJfq','HDclZ','epilogue','16xWfsuP','ivvzY','9486972psnczh','help','stop_commands','commandDir','3848kfRhzU','desc'];a20_0x1bcf=function(){return _0x210b41;};return a20_0x1bcf();}
1
+ const a20_0x2cd1d3=a20_0x3547;function a20_0xc92c(){const _0x573373=['174951cecgdb','builder','../config/constants','4736860CWzRwT','FrsMZ','6201Xmoecd','handler','usage','epilogue','58104QSyzAC','stop_commands','xDqbr','380186tNTUSy','138vYifhH','5230946VsFfyq','demandCommand','519DFCARw','command','help','79925vPLxZm','88dCnPsm','Stop\x20a\x20running\x20Automation\x20grid.','stop','commandDir','1eJkibQ','7636LBAqfJ','11yIGuvD'];a20_0xc92c=function(){return _0x573373;};return a20_0xc92c();}(function(_0x2af0d2,_0x4209a8){const _0x11fce8=a20_0x3547,_0x5c4e5f=_0x2af0d2();while(!![]){try{const _0x36f6ea=parseInt(_0x11fce8(0x1cc))/0x1*(-parseInt(_0x11fce8(0x1db))/0x2)+parseInt(_0x11fce8(0x1df))/0x3*(-parseInt(_0x11fce8(0x1cd))/0x4)+-parseInt(_0x11fce8(0x1e2))/0x5*(parseInt(_0x11fce8(0x1dc))/0x6)+-parseInt(_0x11fce8(0x1dd))/0x7+-parseInt(_0x11fce8(0x1e3))/0x8*(-parseInt(_0x11fce8(0x1cf))/0x9)+-parseInt(_0x11fce8(0x1d2))/0xa*(parseInt(_0x11fce8(0x1ce))/0xb)+parseInt(_0x11fce8(0x1d8))/0xc*(parseInt(_0x11fce8(0x1d4))/0xd);if(_0x36f6ea===_0x4209a8)break;else _0x5c4e5f['push'](_0x5c4e5f['shift']());}catch(_0x4edcee){_0x5c4e5f['push'](_0x5c4e5f['shift']());}}}(a20_0xc92c,0x6531e));function a20_0x3547(_0x231b88,_0x410866){const _0xc92c33=a20_0xc92c();return a20_0x3547=function(_0x354739,_0x492250){_0x354739=_0x354739-0x1cc;let _0x52e350=_0xc92c33[_0x354739];return _0x52e350;},a20_0x3547(_0x231b88,_0x410866);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x2cd1d3(0x1d1));exports[a20_0x2cd1d3(0x1e0)]='stop',exports['desc']=a20_0x2cd1d3(0x1e4),exports[a20_0x2cd1d3(0x1d0)]=function(_0x41c380){const _0x4d6736=a20_0x2cd1d3,_0x4c320f={};_0x4c320f[_0x4d6736(0x1da)]=_0x4d6736(0x1d9),_0x4c320f['FrsMZ']=_0x4d6736(0x1e1);const _0x35d27b=_0x4c320f;return _0x41c380[_0x4d6736(0x1d6)](HELP_HEADER_MESSAGE[_0x4d6736(0x1e5)])[_0x4d6736(0x1d7)](HELP_FOOTER_MESSAGE)[_0x4d6736(0x1e6)](_0x35d27b['xDqbr'])[_0x4d6736(0x1de)]()['recommendCommands']()['strict']()[_0x4d6736(0x1e1)](_0x35d27b[_0x4d6736(0x1d3)]);},exports[a20_0x2cd1d3(0x1d5)]=function(_0x355cf8){};
@@ -1 +1 @@
1
- const a21_0x4b4993=a21_0x10eb;function a21_0x10eb(_0x4b52a3,_0x20d5b0){const _0x49f45a=a21_0x49f4();return a21_0x10eb=function(_0x10eb6a,_0x58007d){_0x10eb6a=_0x10eb6a-0x1b3;let _0x29d8e2=_0x49f45a[_0x10eb6a];return _0x29d8e2;},a21_0x10eb(_0x4b52a3,_0x20d5b0);}(function(_0x59644c,_0x50ecc2){const _0x4a864d=a21_0x10eb,_0x3bcb0c=_0x59644c();while(!![]){try{const _0x1b7910=-parseInt(_0x4a864d(0x1de))/0x1*(-parseInt(_0x4a864d(0x1cf))/0x2)+parseInt(_0x4a864d(0x1b4))/0x3+-parseInt(_0x4a864d(0x1be))/0x4*(-parseInt(_0x4a864d(0x1c6))/0x5)+parseInt(_0x4a864d(0x1fe))/0x6+parseInt(_0x4a864d(0x1f7))/0x7+-parseInt(_0x4a864d(0x1bf))/0x8+-parseInt(_0x4a864d(0x1df))/0x9;if(_0x1b7910===_0x50ecc2)break;else _0x3bcb0c['push'](_0x3bcb0c['shift']());}catch(_0x1278d9){_0x3bcb0c['push'](_0x3bcb0c['shift']());}}}(a21_0x49f4,0x75fef));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4b4993(0x1dd)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x4b4993(0x1ca)),{logger}=require(a21_0x4b4993(0x1d9)),{getCredentialsPath,getGridDetails}=require(a21_0x4b4993(0x1f3)),{scaleDownHubDeployment}=require(a21_0x4b4993(0x1d6)),{sendInstrumentationEvent}=require(a21_0x4b4993(0x1ba)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x4b4993(0x1d3));exports['command']=a21_0x4b4993(0x1c0),exports[a21_0x4b4993(0x1b8)]=a21_0x4b4993(0x1d7),exports[a21_0x4b4993(0x1fd)]=function(_0x191ae7){const _0x16c5bd=a21_0x4b4993,_0x465168={};_0x465168[_0x16c5bd(0x20b)]=_0x16c5bd(0x1da),_0x465168['vmXtG']=_0x16c5bd(0x1c7),_0x465168[_0x16c5bd(0x1f2)]=_0x16c5bd(0x1e1),_0x465168['dvMsp']=_0x16c5bd(0x205),_0x465168['jxSkK']=_0x16c5bd(0x1ee);const _0x26feab=_0x465168,_0x47eca1={};_0x47eca1[_0x16c5bd(0x1ec)]=_0x26feab[_0x16c5bd(0x20b)],_0x47eca1[_0x16c5bd(0x1fc)]=_0x26feab[_0x16c5bd(0x1e3)];const _0x5f797a={};_0x5f797a[_0x16c5bd(0x1ec)]=_0x26feab[_0x16c5bd(0x1f2)],_0x5f797a[_0x16c5bd(0x1fc)]=_0x26feab[_0x16c5bd(0x1e5)],_0x5f797a['default']=![];const _0x392a41={};return _0x392a41['grid-id']=_0x47eca1,_0x392a41[_0x16c5bd(0x1cd)]=_0x5f797a,_0x191ae7['usage'](HELP_HEADER_MESSAGE[_0x16c5bd(0x1e9)])[_0x16c5bd(0x206)](HELP_FOOTER_MESSAGE)[_0x16c5bd(0x1d5)](_0x392a41)[_0x16c5bd(0x1ee)](_0x26feab['jxSkK'])[_0x16c5bd(0x1bc)];},exports[a21_0x4b4993(0x1f5)]=async function(_0x27b7c6){const _0x228b24=a21_0x4b4993,_0x52b913={'srStk':_0x228b24(0x209),'Yivii':function(_0x3e9fd1){return _0x3e9fd1();},'XqqbZ':_0x228b24(0x1e6),'vMHoZ':function(_0x28ad4b,_0x682d37,_0x18a767,_0x4bdcbf,_0x4bf627,_0x522799,_0x2fa204){return _0x28ad4b(_0x682d37,_0x18a767,_0x4bdcbf,_0x4bf627,_0x522799,_0x2fa204);},'GqTRY':_0x228b24(0x1b7),'zTqdb':_0x228b24(0x1c1),'OqeDj':function(_0x396bc2){return _0x396bc2();},'EJuAF':_0x228b24(0x1f6),'fIcqk':'<PasswordPlaceholder>','RLCLz':_0x228b24(0x1f8),'LIwmH':function(_0x18fa10,_0x4e6ca5,_0x406da2,_0x577611){return _0x18fa10(_0x4e6ca5,_0x406da2,_0x577611);},'YYmnm':function(_0x5f2ef9,_0x2a7ed2,_0x32a0b3,_0x2716b3,_0x395861,_0x4eb4fb,_0x34d849){return _0x5f2ef9(_0x2a7ed2,_0x32a0b3,_0x2716b3,_0x395861,_0x4eb4fb,_0x34d849);},'gDoGr':function(_0x21c60c,_0x3207fd,_0x313826){return _0x21c60c(_0x3207fd,_0x313826);},'ncNnV':_0x228b24(0x1fb),'VJZYg':function(_0x53eb98,_0x3ae46b){return _0x53eb98===_0x3ae46b;},'pTxkv':_0x228b24(0x208),'ZbCZo':_0x228b24(0x1ff),'IhmDc':function(_0x3035ea,_0x9c1247){return _0x3035ea===_0x9c1247;},'QWcCa':function(_0x16c596,_0x3a8224,_0x387faf,_0x1eecda,_0x407f30,_0x17354e,_0x1ba134){return _0x16c596(_0x3a8224,_0x387faf,_0x1eecda,_0x407f30,_0x17354e,_0x1ba134);},'lavvl':'invalid-grid-id','sfoQb':function(_0x57d5f3,_0xd6eaad,_0x441946,_0x1298d4,_0xab6f07,_0x14359c,_0x45d157){return _0x57d5f3(_0xd6eaad,_0x441946,_0x1298d4,_0xab6f07,_0x14359c,_0x45d157);},'Ifprs':_0x228b24(0x1eb)};let _0x4242ff;try{!_0x27b7c6[_0x228b24(0x1c9)]&&(logger[_0x228b24(0x1e2)](_0x52b913[_0x228b24(0x1c4)]),process['exit'](0x1));!fs[_0x228b24(0x1b5)](_0x52b913['Yivii'](getCredentialsPath))&&(logger[_0x228b24(0x1e2)](_0x52b913[_0x228b24(0x1d0)]),await _0x52b913[_0x228b24(0x1ef)](sendInstrumentationEvent,_0x27b7c6,_0x52b913[_0x228b24(0x1e0)],messageTypes['ERROR'],_0x52b913[_0x228b24(0x202)],null,_0x27b7c6),process[_0x228b24(0x1e7)](0x1));logger['info'](_0x228b24(0x1d4)+_0x27b7c6[_0x228b24(0x1c9)]),await _0x52b913[_0x228b24(0x1ef)](sendInstrumentationEvent,_0x27b7c6,_0x52b913[_0x228b24(0x1e0)],messageTypes[_0x228b24(0x1c3)],null,null,_0x27b7c6);const _0x5ead52=JSON[_0x228b24(0x1f9)](fs[_0x228b24(0x1f0)](_0x52b913[_0x228b24(0x1ea)](getCredentialsPath)));global_registry[_0x228b24(0x201)]=_0x5ead52[_0x228b24(0x1c2)][_0x228b24(0x20d)],global_registry[_0x228b24(0x1f4)]=_0x5ead52['Browserstack'][_0x228b24(0x1bb)];const _0x3645d4=WS_ENDPOINT[_0x228b24(0x1b6)](_0x52b913[_0x228b24(0x1c5)],_0x5ead52['Browserstack'][_0x228b24(0x20d)])[_0x228b24(0x1b6)](_0x52b913[_0x228b24(0x203)],_0x5ead52[_0x228b24(0x1c2)][_0x228b24(0x1bb)]),_0x37d721={};_0x37d721[_0x228b24(0x1b3)]=ws,_0x37d721[_0x228b24(0x1d2)]=0x36ee80,_0x4242ff=new ReconnectingWebSocket(_0x3645d4,[],_0x37d721),logger['debug'](_0x52b913['RLCLz']),webSocketUtils['addListeners'](_0x4242ff,_0x27b7c6[_0x228b24(0x1dc)],_0x27b7c6[_0x228b24(0x1bb)]);const [_0x50ea5c,_0x5b8c5a]=await _0x52b913['LIwmH'](getGridDetails,_0x5ead52[_0x228b24(0x1c2)][_0x228b24(0x20d)],_0x5ead52['Browserstack'][_0x228b24(0x1bb)],_0x27b7c6[_0x228b24(0x1c9)]);if(_0x5b8c5a){const _0xfb34ce=_0x5b8c5a['info'];global_registry[_0x228b24(0x200)]=_0xfb34ce[_0x228b24(0x200)],global_registry[_0x228b24(0x1f1)]=_0xfb34ce[_0x228b24(0x207)],global_registry['clusterName']=_0xfb34ce[_0x228b24(0x1fa)];const _0x72ac8c=await _0x52b913[_0x228b24(0x20c)](getCloudProviderObject,_0xfb34ce[_0x228b24(0x200)],_0xfb34ce[_0x228b24(0x1fa)],_0xfb34ce[_0x228b24(0x204)],_0x4242ff,webSocketUtils,_0x27b7c6),[_0x224602,_0x385908,_0x1d765d,_0x22c270,_0x213305,_0x4492ed]=await _0x52b913[_0x228b24(0x1ed)](createK8sClient,_0x72ac8c,_0x27b7c6[_0x228b24(0x1e8)]);await _0x52b913[_0x228b24(0x1ed)](scaleDownHubDeployment,_0x385908,_0xfb34ce[_0x228b24(0x204)]),logger['info'](_0x52b913['ncNnV']),process[_0x228b24(0x1e7)](0x0);}_0x52b913[_0x228b24(0x1d1)](_0x50ea5c[_0x228b24(0x1d8)],0x191)&&(logger['error'](_0x52b913[_0x228b24(0x1db)]),await _0x52b913[_0x228b24(0x20c)](sendInstrumentationEvent,_0x27b7c6,_0x52b913[_0x228b24(0x1e0)],messageTypes[_0x228b24(0x1cb)],_0x52b913[_0x228b24(0x1c8)],null,_0x27b7c6),process['exit'](0x1)),_0x52b913['IhmDc'](_0x50ea5c['statusCode'],0x190)&&(logger[_0x228b24(0x1e2)](JSON[_0x228b24(0x1f9)](_0x50ea5c['body'])[_0x228b24(0x20a)]),await _0x52b913['QWcCa'](sendInstrumentationEvent,_0x27b7c6,_0x52b913[_0x228b24(0x1e0)],messageTypes[_0x228b24(0x1cb)],_0x52b913['lavvl'],null,_0x27b7c6),process[_0x228b24(0x1e7)](0x1)),logger[_0x228b24(0x1e2)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x50ea5c)),await _0x52b913[_0x228b24(0x1cc)](sendInstrumentationEvent,_0x27b7c6,_0x52b913[_0x228b24(0x1e0)],messageTypes['ERROR'],_0x52b913[_0x228b24(0x1bd)],_0x50ea5c,_0x27b7c6),process[_0x228b24(0x1e7)](0x1);}catch(_0x44520d){const _0x1432aa=_0x228b24(0x1e4)+_0x44520d+'\x20\x0a'+JSON[_0x228b24(0x1b9)](_0x44520d[_0x228b24(0x1ce)])+'\x20';logger['error'](_0x1432aa),process[_0x228b24(0x1e7)](0x1);}};function a21_0x49f4(){const _0x2a94f1=['ERROR','sfoQb','skip-tls-cert-verify','stack','1710658yfkfpd','XqqbZ','VJZYg','connectionTimeout','../../cloudproviders/utils','Stopping\x20grid\x20','options','../../utils/gridComponents','Stop\x20a\x20running\x20Automation\x20grid.','statusCode','../../config/logger','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','pTxkv','user','reconnecting-websocket','1nLvtOK','12919635TzxQJg','GqTRY','Skip\x20insecure\x20cert\x20verification.','error','vmXtG','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','dvMsp','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','skipTlsCertVerify','stop','OqeDj','server-error','description','gDoGr','help','vMHoZ','readFileSync','clusterRegion','LOvdI','../../utils/utilityMethods','bstackAccesskey','handler','<UsernamePlaceholder>','6201538FuhIPu','Adding\x20Websocket\x20listeners','parse','clusterName','Grid\x20stoppped.','type','builder','2019612wHsiIs','unauthorised','cloudProvider','bstackUsername','zTqdb','fIcqk','name','boolean','epilogue','region','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','message','DWNbG','YYmnm','username','WebSocket','735390UhVgNh','existsSync','replace','stop-grid-called','desc','stringify','../../utils/instrumentationUtils','password','argv','Ifprs','4CQoexR','3909584QfVbnw','grid','init-not-called','Browserstack','INFO','srStk','EJuAF','422645KGCPfk','string','ZbCZo','gridId','../../config/constants'];a21_0x49f4=function(){return _0x2a94f1;};return a21_0x49f4();}
1
+ const a21_0x373154=a21_0x586a;(function(_0x491f3a,_0x5a8c21){const _0x38fdbe=a21_0x586a,_0x260fba=_0x491f3a();while(!![]){try{const _0x3bb33a=-parseInt(_0x38fdbe(0x13e))/0x1*(-parseInt(_0x38fdbe(0x127))/0x2)+parseInt(_0x38fdbe(0x128))/0x3+-parseInt(_0x38fdbe(0x15c))/0x4+parseInt(_0x38fdbe(0x11a))/0x5*(parseInt(_0x38fdbe(0x126))/0x6)+parseInt(_0x38fdbe(0x122))/0x7*(-parseInt(_0x38fdbe(0x13f))/0x8)+parseInt(_0x38fdbe(0x141))/0x9*(-parseInt(_0x38fdbe(0x12e))/0xa)+parseInt(_0x38fdbe(0x148))/0xb*(parseInt(_0x38fdbe(0x119))/0xc);if(_0x3bb33a===_0x5a8c21)break;else _0x260fba['push'](_0x260fba['shift']());}catch(_0x4826f5){_0x260fba['push'](_0x260fba['shift']());}}}(a21_0x16ed,0x515bf));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x373154(0x151)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x373154(0x159)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x373154(0x134)),webSocketUtils=require(a21_0x373154(0x157)),{createK8sClient}=require(a21_0x373154(0x149)),{getCloudProviderObject}=require(a21_0x373154(0x15e));function a21_0x586a(_0x582f61,_0x437164){const _0x16ed55=a21_0x16ed();return a21_0x586a=function(_0x586ad4,_0x33833e){_0x586ad4=_0x586ad4-0x117;let _0x35a076=_0x16ed55[_0x586ad4];return _0x35a076;},a21_0x586a(_0x582f61,_0x437164);}function a21_0x16ed(){const _0xa5f038=['Skip\x20insecure\x20cert\x20verification.','YveyG','invalid-grid-id','error','XFptz','existsSync','MXtSl','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ciXSU','server-error','Browserstack','12HiyBqI','1825RtYDFw','grid-id','stringify','debug','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','CRFNc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','message','63dZfPay','AFPww','builder','readFileSync','10284rZwTxA','8scrvtj','588987yXVVQs','usage','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','addListeners','SWhXl','user','80UNWbuh','cloudProvider','options','info','string','argv','../../utils/instrumentationUtils','stop-grid-called','skip-tls-cert-verify','help','stack','RrpAK','clusterRegion','bstackAccesskey','body','connectionTimeout','25172YHiNVY','428760Towdms','<PasswordPlaceholder>','582021sbHqJT','RuJeh','Svdir','description','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','init-not-called','bstackUsername','10037379zcGkpB','../../utils/createk8sClient','default','ERROR','WebSocket','type','Stopping\x20grid\x20','qaBYF','INFO','reconnecting-websocket','statusCode','Grid\x20stoppped.','zYTne','gsMnu','name','../../utils/webSocketUtils','password','../../utils/utilityMethods','boolean','clusterName','2008648TLPuIR','tCMBS','../../cloudproviders/utils','JYXLb','username','gridId','Bzwbe','grid','HUMOY','xhcTz','exit','aXUsE','WPVpD','desc','parse','ZweOP'];a21_0x16ed=function(){return _0xa5f038;};return a21_0x16ed();}exports['command']=a21_0x373154(0x163),exports[a21_0x373154(0x169)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x373154(0x124)]=function(_0x3fdbfa){const _0xeeb413=a21_0x373154,_0x8544a5={};_0x8544a5[_0xeeb413(0x167)]=_0xeeb413(0x11e),_0x8544a5['xhcTz']=_0xeeb413(0x132),_0x8544a5[_0xeeb413(0x155)]=_0xeeb413(0x16c),_0x8544a5[_0xeeb413(0x172)]=_0xeeb413(0x15a),_0x8544a5[_0xeeb413(0x143)]='help';const _0x5d4cac=_0x8544a5,_0x203501={};_0x203501[_0xeeb413(0x144)]=_0x5d4cac[_0xeeb413(0x167)],_0x203501[_0xeeb413(0x14d)]=_0x5d4cac[_0xeeb413(0x165)];const _0x4e8b76={};_0x4e8b76['description']=_0x5d4cac[_0xeeb413(0x155)],_0x4e8b76['type']=_0x5d4cac['MXtSl'],_0x4e8b76[_0xeeb413(0x14a)]=![];const _0x278875={};return _0x278875[_0xeeb413(0x11b)]=_0x203501,_0x278875[_0xeeb413(0x136)]=_0x4e8b76,_0x3fdbfa[_0xeeb413(0x129)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0xeeb413(0x130)](_0x278875)[_0xeeb413(0x137)](_0x5d4cac['Svdir'])[_0xeeb413(0x133)];},exports['handler']=async function(_0x50fc74){const _0x25f24b=a21_0x373154,_0x5af2ad={'BBwtM':_0x25f24b(0x145),'zYTne':function(_0x7f855b){return _0x7f855b();},'YveyG':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WPVpD':function(_0x5601bb,_0x1d345e,_0x194c9c,_0x3200dd,_0x13489f,_0x4f55b1,_0xf29489){return _0x5601bb(_0x1d345e,_0x194c9c,_0x3200dd,_0x13489f,_0x4f55b1,_0xf29489);},'qaBYF':_0x25f24b(0x135),'AFPww':_0x25f24b(0x146),'SWhXl':function(_0x303828,_0x4b305e,_0x30bd7a,_0x402c61,_0x2ff1ea,_0x1cfdb9,_0x26ea19){return _0x303828(_0x4b305e,_0x30bd7a,_0x402c61,_0x2ff1ea,_0x1cfdb9,_0x26ea19);},'HUMOY':function(_0x34c024){return _0x34c024();},'tCMBS':'<UsernamePlaceholder>','TKitk':_0x25f24b(0x140),'JYXLb':'Adding\x20Websocket\x20listeners','ciXSU':function(_0x24a30d,_0x2da488,_0x1dd0db,_0x4fa00d){return _0x24a30d(_0x2da488,_0x1dd0db,_0x4fa00d);},'CRFNc':function(_0x2bf2c7,_0xdc9d26,_0xa10b47,_0x5d4f57,_0x48753f,_0x3cef9c,_0x1df93a){return _0x2bf2c7(_0xdc9d26,_0xa10b47,_0x5d4f57,_0x48753f,_0x3cef9c,_0x1df93a);},'DYIbA':function(_0x4ac189,_0x4096cf,_0x2f1b47){return _0x4ac189(_0x4096cf,_0x2f1b47);},'Bzwbe':function(_0x1ee921,_0x4a1b4a,_0x5837d1){return _0x1ee921(_0x4a1b4a,_0x5837d1);},'ZweOP':_0x25f24b(0x153),'YRcQm':function(_0x135c88,_0x5cfef5){return _0x135c88===_0x5cfef5;},'RuJeh':_0x25f24b(0x120),'RrpAK':'unauthorised','giiBJ':_0x25f24b(0x16e),'XFptz':_0x25f24b(0x117)};let _0x45c151;try{!_0x50fc74[_0x25f24b(0x161)]&&(logger['error'](_0x5af2ad['BBwtM']),process[_0x25f24b(0x166)](0x1));!fs[_0x25f24b(0x171)](_0x5af2ad[_0x25f24b(0x154)](getCredentialsPath))&&(logger['error'](_0x5af2ad[_0x25f24b(0x16d)]),await _0x5af2ad[_0x25f24b(0x168)](sendInstrumentationEvent,_0x50fc74,_0x5af2ad[_0x25f24b(0x14f)],messageTypes[_0x25f24b(0x14b)],_0x5af2ad[_0x25f24b(0x123)],null,_0x50fc74),process[_0x25f24b(0x166)](0x1));logger['info'](_0x25f24b(0x14e)+_0x50fc74[_0x25f24b(0x161)]),await _0x5af2ad[_0x25f24b(0x12c)](sendInstrumentationEvent,_0x50fc74,_0x5af2ad[_0x25f24b(0x14f)],messageTypes[_0x25f24b(0x150)],null,null,_0x50fc74);const _0x1d49c2=JSON[_0x25f24b(0x16a)](fs[_0x25f24b(0x125)](_0x5af2ad[_0x25f24b(0x164)](getCredentialsPath)));global_registry[_0x25f24b(0x147)]=_0x1d49c2[_0x25f24b(0x118)][_0x25f24b(0x160)],global_registry[_0x25f24b(0x13b)]=_0x1d49c2[_0x25f24b(0x118)]['password'];const _0x27a013=WS_ENDPOINT['replace'](_0x5af2ad[_0x25f24b(0x15d)],_0x1d49c2[_0x25f24b(0x118)][_0x25f24b(0x160)])['replace'](_0x5af2ad['TKitk'],_0x1d49c2[_0x25f24b(0x118)][_0x25f24b(0x158)]),_0x5c44cc={};_0x5c44cc[_0x25f24b(0x14c)]=ws,_0x5c44cc[_0x25f24b(0x13d)]=0x36ee80,_0x45c151=new ReconnectingWebSocket(_0x27a013,[],_0x5c44cc),logger[_0x25f24b(0x11d)](_0x5af2ad[_0x25f24b(0x15f)]),webSocketUtils[_0x25f24b(0x12b)](_0x45c151,_0x50fc74[_0x25f24b(0x12d)],_0x50fc74[_0x25f24b(0x158)]);const [_0x518b71,_0x59dcfa]=await _0x5af2ad[_0x25f24b(0x174)](getGridDetails,_0x1d49c2['Browserstack'][_0x25f24b(0x160)],_0x1d49c2['Browserstack'][_0x25f24b(0x158)],_0x50fc74['gridId']);if(_0x59dcfa){const _0x38ae6e=_0x59dcfa[_0x25f24b(0x131)];global_registry['cloudProvider']=_0x38ae6e['cloudProvider'],global_registry[_0x25f24b(0x13a)]=_0x38ae6e['region'],global_registry['clusterName']=_0x38ae6e['clusterName'];const _0x76fbca=await _0x5af2ad[_0x25f24b(0x11f)](getCloudProviderObject,_0x38ae6e[_0x25f24b(0x12f)],_0x38ae6e[_0x25f24b(0x15b)],_0x38ae6e['name'],_0x45c151,webSocketUtils,_0x50fc74),[_0x116883,_0x2a674a,_0x898e26,_0x515c24,_0x1a9fdc,_0xbfa04c]=await _0x5af2ad['DYIbA'](createK8sClient,_0x76fbca,_0x50fc74['skipTlsCertVerify']);await _0x5af2ad[_0x25f24b(0x162)](scaleDownHubDeployment,_0x2a674a,_0x38ae6e[_0x25f24b(0x156)]),logger['info'](_0x5af2ad[_0x25f24b(0x16b)]),process[_0x25f24b(0x166)](0x0);}_0x5af2ad['YRcQm'](_0x518b71[_0x25f24b(0x152)],0x191)&&(logger['error'](_0x5af2ad[_0x25f24b(0x142)]),await _0x5af2ad[_0x25f24b(0x168)](sendInstrumentationEvent,_0x50fc74,_0x5af2ad['qaBYF'],messageTypes[_0x25f24b(0x14b)],_0x5af2ad[_0x25f24b(0x139)],null,_0x50fc74),process[_0x25f24b(0x166)](0x1)),_0x5af2ad['YRcQm'](_0x518b71[_0x25f24b(0x152)],0x190)&&(logger['error'](JSON['parse'](_0x518b71[_0x25f24b(0x13c)])[_0x25f24b(0x121)]),await _0x5af2ad[_0x25f24b(0x12c)](sendInstrumentationEvent,_0x50fc74,_0x5af2ad[_0x25f24b(0x14f)],messageTypes['ERROR'],_0x5af2ad['giiBJ'],null,_0x50fc74),process[_0x25f24b(0x166)](0x1)),logger['error'](_0x25f24b(0x173)+JSON[_0x25f24b(0x11c)](_0x518b71)),await _0x5af2ad[_0x25f24b(0x168)](sendInstrumentationEvent,_0x50fc74,_0x5af2ad[_0x25f24b(0x14f)],messageTypes[_0x25f24b(0x14b)],_0x5af2ad[_0x25f24b(0x170)],_0x518b71,_0x50fc74),process[_0x25f24b(0x166)](0x1);}catch(_0x131894){const _0x16eff1=_0x25f24b(0x12a)+_0x131894+'\x20\x0a'+JSON['stringify'](_0x131894[_0x25f24b(0x138)])+'\x20';logger[_0x25f24b(0x16f)](_0x16eff1),process[_0x25f24b(0x166)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x74e6f1=a22_0x1f82;(function(_0x51e11b,_0x11b1c6){const _0x5ac5de=a22_0x1f82,_0x19423e=_0x51e11b();while(!![]){try{const _0x267111=-parseInt(_0x5ac5de(0x181))/0x1+-parseInt(_0x5ac5de(0x17d))/0x2+-parseInt(_0x5ac5de(0x131))/0x3+-parseInt(_0x5ac5de(0x166))/0x4*(parseInt(_0x5ac5de(0x175))/0x5)+-parseInt(_0x5ac5de(0x14c))/0x6*(parseInt(_0x5ac5de(0x134))/0x7)+-parseInt(_0x5ac5de(0x12d))/0x8*(parseInt(_0x5ac5de(0x128))/0x9)+parseInt(_0x5ac5de(0x137))/0xa;if(_0x267111===_0x11b1c6)break;else _0x19423e['push'](_0x19423e['shift']());}catch(_0x4c0145){_0x19423e['push'](_0x19423e['shift']());}}}(a22_0x430d,0x98831),require(a22_0x74e6f1(0x12c))['config']());let gridURL=a22_0x74e6f1(0x174),bsApiUrl=a22_0x74e6f1(0x16c),agApiUrl=a22_0x74e6f1(0x149);const _env=(process[a22_0x74e6f1(0x12b)][a22_0x74e6f1(0x151)]||a22_0x74e6f1(0x13a))[a22_0x74e6f1(0x16a)]();if(_env==='staging'||_env===a22_0x74e6f1(0x15e))gridURL=a22_0x74e6f1(0x139),bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x74e6f1(0x184);else(_env===a22_0x74e6f1(0x132)||_env===a22_0x74e6f1(0x16f))&&(gridURL=a22_0x74e6f1(0x12e),bsApiUrl=a22_0x74e6f1(0x135),agApiUrl=a22_0x74e6f1(0x158));function a22_0x430d(){const _0x10c435=['high-scale-grid','AWS','stag','forEach','AZURE','CLI_RUN_FINISHED','WARNING','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','list','warning','3636376iMILXA','LINK_MESSAGE','log','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','toLowerCase','BS_API_URL','api.browserstack.com','CLOUD_PROVIDER','BSTACK-ATS-CLUSTER-HUB-HA','pre-prod','us-east-1','root','BrowserStack','TURBOSCALE_CUSTOM_TAGS','grid.browserstack.com','5DFYmwH','messageTypes','info','AG_API_URL','azure','resourceInfo','REGION','pre-check','1294704gLnmIN','CLI_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','CLUSTER_DEP_STACK_NAME','988114axFCZz','HST_CLUSTER_TAGS','GCP','grid-api-devhst.bsstag.com','Key','browserstack-turboscale-grid','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','[REDACTED]','delete','gridProfile','CLUSTER_HUB_HA_STACK_NAME','browserstack:service','start','ERROR','GRID_URL','SUCCESS','Value','COMMON_HST_TAGS','BrowserStackIAMUser','init','grid-profile','global_registry','CP_CONFIG_FILE','BrowserStack-Automate-TurboScale','9MsBtml','CLUSTER','INFO','env','dotenv','4023048CNzKak','grid-preprod.bsstag.com','cliRunFinished','grid','741939RBcEdM','preprod','CLUSTER_AUTOSCALER_STACK_NAME','1548967GBIivv','api-preprod.bsstag.com','cliRunStarted','41407240BSoDgu','DEFAULT_CLUSTER_DETAILS','grid-devhst.bsstag.com','prod','HELP_FOOTER_MESSAGE','success','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','CLI_RUN_STARTED','browserstack:managedBy','SUPPORTED_CLOUD_PROVIDERS','credentials','split','RAW_ARGS_REGEX','BSTACK-ATS-CLUSTER-AUTOSCALER','UNKNOWN','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','REDACTED','MessageDescription','grid-api.browserstack.com','WS_EVENTS','DASHBOARD_ENDPOINT','6PIVVlJ','push','configure','HELP_HEADER_MESSAGE','BSTACK-ATS-CLUSTER','BROWSERSTACK_ENV','IAM_USER_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','WS_ENDPOINT','DEFAULT_GRID_NAME','wss://','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid-api-preprod.bsstag.com','gcp','gridUrl','create'];a22_0x430d=function(){return _0x10c435;};return a22_0x430d();}exports[a22_0x74e6f1(0x14b)]=process[a22_0x74e6f1(0x12b)][a22_0x74e6f1(0x14b)]||gridURL,exports['BS_API_URL']=process['env'][a22_0x74e6f1(0x16b)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x74e6f1(0x12b)][a22_0x74e6f1(0x178)]||agApiUrl,exports[a22_0x74e6f1(0x154)]=a22_0x74e6f1(0x156)+this[a22_0x74e6f1(0x178)]+a22_0x74e6f1(0x146),exports[a22_0x74e6f1(0x126)]=a22_0x74e6f1(0x141),exports[a22_0x74e6f1(0x152)]=a22_0x74e6f1(0x122),exports[a22_0x74e6f1(0x155)]=a22_0x74e6f1(0x15c),exports[a22_0x74e6f1(0x15d)]='aws',exports[a22_0x74e6f1(0x180)]=a22_0x74e6f1(0x150),exports[a22_0x74e6f1(0x133)]=a22_0x74e6f1(0x144),exports[a22_0x74e6f1(0x18b)]=a22_0x74e6f1(0x16e),exports['TURBOSCALE_DEPLOYMENT']=a22_0x74e6f1(0x186),exports['AZURE']=a22_0x74e6f1(0x179),exports[a22_0x74e6f1(0x183)]=a22_0x74e6f1(0x159),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x74e6f1(0x160)],this['GCP']];const a22_0x16ff8f={};a22_0x16ff8f[a22_0x74e6f1(0x185)]=a22_0x74e6f1(0x13f),a22_0x16ff8f[a22_0x74e6f1(0x120)]=a22_0x74e6f1(0x172);const a22_0x4d0632={};a22_0x4d0632[a22_0x74e6f1(0x185)]=a22_0x74e6f1(0x18c),a22_0x4d0632[a22_0x74e6f1(0x120)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x16ff8f,a22_0x4d0632];if(process[a22_0x74e6f1(0x12b)][a22_0x74e6f1(0x173)]){const parsedTags=process[a22_0x74e6f1(0x12b)][a22_0x74e6f1(0x173)][a22_0x74e6f1(0x142)](',');parsedTags[a22_0x74e6f1(0x15f)](_0x20179f=>{const _0x276907=a22_0x74e6f1,_0x41244e=_0x20179f[_0x276907(0x142)](':'),_0x5f425d={};_0x5f425d['Key']=_0x41244e[0x0],_0x5f425d['Value']=_0x41244e[0x1],common_hst_tags_list[_0x276907(0x14d)](_0x5f425d);});}exports[a22_0x74e6f1(0x121)]=common_hst_tags_list;const a22_0x990f2={};a22_0x990f2['browserstack:managedBy']='BrowserStack',a22_0x990f2[a22_0x74e6f1(0x18c)]=a22_0x74e6f1(0x127),exports[a22_0x74e6f1(0x182)]=a22_0x990f2,exports[a22_0x74e6f1(0x140)]=[this[a22_0x74e6f1(0x15d)]];const a22_0x1649ba={};a22_0x1649ba['LOG']=a22_0x74e6f1(0x168),a22_0x1649ba['RESOURCES']=a22_0x74e6f1(0x17a),a22_0x1649ba[a22_0x74e6f1(0x11e)]=a22_0x74e6f1(0x15a),a22_0x1649ba[a22_0x74e6f1(0x13e)]=a22_0x74e6f1(0x136),a22_0x1649ba[a22_0x74e6f1(0x161)]=a22_0x74e6f1(0x12f),exports[a22_0x74e6f1(0x14a)]=a22_0x1649ba,exports[a22_0x74e6f1(0x125)]={},exports['LINK_MESSAGE']=a22_0x74e6f1(0x187);const a22_0x2ed2e7={};a22_0x2ed2e7['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x74e6f1(0x167)],a22_0x2ed2e7[a22_0x74e6f1(0x123)]=a22_0x74e6f1(0x17f)+this[a22_0x74e6f1(0x167)],a22_0x2ed2e7[a22_0x74e6f1(0x14e)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x74e6f1(0x167)],a22_0x2ed2e7[a22_0x74e6f1(0x15b)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x2ed2e7[a22_0x74e6f1(0x164)]={},a22_0x2ed2e7[a22_0x74e6f1(0x189)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x74e6f1(0x167)],a22_0x2ed2e7['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x74e6f1(0x167)],a22_0x2ed2e7[a22_0x74e6f1(0x18d)]=a22_0x74e6f1(0x157)+this['LINK_MESSAGE'],a22_0x2ed2e7['stop']=a22_0x74e6f1(0x163)+this[a22_0x74e6f1(0x167)],a22_0x2ed2e7['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x74e6f1(0x167)],a22_0x2ed2e7[a22_0x74e6f1(0x164)][a22_0x74e6f1(0x171)]=a22_0x74e6f1(0x169)+this[a22_0x74e6f1(0x167)],a22_0x2ed2e7[a22_0x74e6f1(0x164)][a22_0x74e6f1(0x130)]=a22_0x74e6f1(0x153)+this[a22_0x74e6f1(0x167)],a22_0x2ed2e7[a22_0x74e6f1(0x164)][a22_0x74e6f1(0x18a)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports[a22_0x74e6f1(0x14f)]=a22_0x2ed2e7,exports[a22_0x74e6f1(0x13b)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x49f685={};a22_0x49f685[a22_0x74e6f1(0x11f)]=a22_0x74e6f1(0x13c),a22_0x49f685[a22_0x74e6f1(0x18e)]='error',a22_0x49f685[a22_0x74e6f1(0x12a)]=a22_0x74e6f1(0x177),a22_0x49f685[a22_0x74e6f1(0x162)]=a22_0x74e6f1(0x165),a22_0x49f685[a22_0x74e6f1(0x145)]='unknown',a22_0x49f685['NULL']=null,exports[a22_0x74e6f1(0x176)]=a22_0x49f685,exports[a22_0x74e6f1(0x17e)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x74e6f1(0x143)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x74e6f1(0x147)]=a22_0x74e6f1(0x188);const a22_0x208eb2={};a22_0x208eb2[a22_0x74e6f1(0x124)]=a22_0x74e6f1(0x13d);const a22_0x41be38={};a22_0x41be38[a22_0x74e6f1(0x17c)]=a22_0x208eb2,exports[a22_0x74e6f1(0x148)]=a22_0x41be38,exports['TRIAL_GRID_URL']='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x44d609={};function a22_0x1f82(_0x1ccb93,_0x4ce765){const _0x430d16=a22_0x430d();return a22_0x1f82=function(_0x1f8296,_0x337bf1){_0x1f8296=_0x1f8296-0x11e;let _0x3b1213=_0x430d16[_0x1f8296];return _0x3b1213;},a22_0x1f82(_0x1ccb93,_0x4ce765);}a22_0x44d609[a22_0x74e6f1(0x129)]='high-scale-grid-cluster',a22_0x44d609[a22_0x74e6f1(0x16d)]='aws',a22_0x44d609[a22_0x74e6f1(0x17b)]=a22_0x74e6f1(0x170),exports[a22_0x74e6f1(0x138)]=a22_0x44d609;
1
+ const a22_0x262c14=a22_0x2418;(function(_0xb0d118,_0x52cc9e){const _0x4e783e=a22_0x2418,_0x44b2bf=_0xb0d118();while(!![]){try{const _0x399d1f=-parseInt(_0x4e783e(0x116))/0x1+parseInt(_0x4e783e(0xd4))/0x2*(parseInt(_0x4e783e(0x11d))/0x3)+parseInt(_0x4e783e(0x103))/0x4+parseInt(_0x4e783e(0xee))/0x5*(parseInt(_0x4e783e(0xf2))/0x6)+parseInt(_0x4e783e(0xd7))/0x7+-parseInt(_0x4e783e(0x10b))/0x8+-parseInt(_0x4e783e(0x127))/0x9*(-parseInt(_0x4e783e(0x11e))/0xa);if(_0x399d1f===_0x52cc9e)break;else _0x44b2bf['push'](_0x44b2bf['shift']());}catch(_0x490c41){_0x44b2bf['push'](_0x44b2bf['shift']());}}}(a22_0x4b56,0x9ca6e),require(a22_0x262c14(0x12b))[a22_0x262c14(0x128)]());let gridURL='grid.browserstack.com',bsApiUrl=a22_0x262c14(0xf8),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x262c14(0x130)][a22_0x262c14(0xe7)]||a22_0x262c14(0xda))[a22_0x262c14(0xdc)]();if(_env==='staging'||_env===a22_0x262c14(0x105))gridURL=a22_0x262c14(0x132),bsApiUrl=a22_0x262c14(0x119),agApiUrl=a22_0x262c14(0x134);else(_env==='preprod'||_env===a22_0x262c14(0x12c))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x262c14(0xe0));exports[a22_0x262c14(0x110)]=process[a22_0x262c14(0x130)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x262c14(0xf6)]=process[a22_0x262c14(0x130)][a22_0x262c14(0xf6)]||bsApiUrl,exports[a22_0x262c14(0xe9)]=process['env'][a22_0x262c14(0xe9)]||agApiUrl,exports[a22_0x262c14(0x123)]='wss://'+this[a22_0x262c14(0xe9)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports['CP_CONFIG_FILE']=a22_0x262c14(0x133),exports[a22_0x262c14(0xfc)]=a22_0x262c14(0x104),exports[a22_0x262c14(0x117)]=a22_0x262c14(0x109),exports[a22_0x262c14(0xf4)]=a22_0x262c14(0x12e),exports[a22_0x262c14(0xd9)]=a22_0x262c14(0x100),exports[a22_0x262c14(0xfe)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x262c14(0xea),exports['TURBOSCALE_DEPLOYMENT']=a22_0x262c14(0xde),exports[a22_0x262c14(0xe8)]=a22_0x262c14(0x12d),exports[a22_0x262c14(0xd2)]='gcp',exports[a22_0x262c14(0x11f)]=[this[a22_0x262c14(0xf4)],this['AZURE'],this['GCP']];function a22_0x4b56(){const _0x4b1e76=['\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','pre-check','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','BROWSERSTACK_ENV','AZURE','AG_API_URL','BSTACK-ATS-CLUSTER-HUB-HA','Key','Value','create','5UmMJhK','HELP_HEADER_MESSAGE','REDACTED','success','1519662QHmUlv','BrowserStack-Automate-TurboScale','AWS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','BS_API_URL','TRIAL_GRID_URL','api.browserstack.com','delete','CLI_RUN_STARTED','ERROR','IAM_USER_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','CLUSTER_AUTOSCALER_STACK_NAME','configure','BSTACK-ATS-CLUSTER','gridProfile','gridUrl','1966820Qastyr','BrowserStackIAMUser','stag','us-east-1','BrowserStack','list','high-scale-grid','resourceInfo','7746072ThWQrQ','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','start','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','split','DASHBOARD_ENDPOINT','RESOURCES','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLI_RUN_FINISHED','forEach','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','1065289DqIytZ','DEFAULT_GRID_NAME','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','api-devhst.bsstag.com','INFO','NULL','CLUSTER','703797DnrEhP','830UCQKBn','ALL_SUPPORTED_CLOUD_PROVIDERS','TURBOSCALE_CUSTOM_TAGS','LINK_MESSAGE','global_registry','WS_ENDPOINT','RAW_ARGS_REGEX','DEFAULT_CLUSTER_DETAILS','grid-profile','30591tmWtGA','config','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','CLI_ARGS_REGEX','dotenv','pre-prod','azure','aws','log','env','MessageDescription','grid-devhst.bsstag.com','credentials','grid-api-devhst.bsstag.com','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','high-scale-grid-cluster','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','GCP','browserstack:service','6YmXxbD','unknown','browserstack:managedBy','6610086TRGqLD','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','CLUSTER_DEP_STACK_NAME','prod','HELP_FOOTER_MESSAGE','toLowerCase','grid','browserstack-turboscale-grid','connect','grid-api-preprod.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','pre_check','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'];a22_0x4b56=function(){return _0x4b1e76;};return a22_0x4b56();}const a22_0xb53185={};a22_0xb53185[a22_0x262c14(0xeb)]=a22_0x262c14(0xd6),a22_0xb53185['Value']=a22_0x262c14(0x107);const a22_0x457da8={};a22_0x457da8[a22_0x262c14(0xeb)]=a22_0x262c14(0xd3),a22_0x457da8[a22_0x262c14(0xec)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0xb53185,a22_0x457da8];if(process[a22_0x262c14(0x130)][a22_0x262c14(0x120)]){const parsedTags=process[a22_0x262c14(0x130)][a22_0x262c14(0x120)][a22_0x262c14(0x10f)](',');parsedTags[a22_0x262c14(0x114)](_0x28b75d=>{const _0x18ea15=a22_0x262c14,_0x407367=_0x28b75d[_0x18ea15(0x10f)](':'),_0x36818b={};_0x36818b[_0x18ea15(0xeb)]=_0x407367[0x0],_0x36818b[_0x18ea15(0xec)]=_0x407367[0x1],common_hst_tags_list['push'](_0x36818b);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x53932c={};a22_0x53932c['browserstack:managedBy']=a22_0x262c14(0x107),a22_0x53932c[a22_0x262c14(0xd3)]=a22_0x262c14(0xf3),exports['HST_CLUSTER_TAGS']=a22_0x53932c,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x262c14(0xf4)]];function a22_0x2418(_0x59e7c9,_0x1aca7a){const _0x4b56e9=a22_0x4b56();return a22_0x2418=function(_0x24180b,_0x4af364){_0x24180b=_0x24180b-0xcf;let _0x10217e=_0x4b56e9[_0x24180b];return _0x10217e;},a22_0x2418(_0x59e7c9,_0x1aca7a);}const a22_0x3f7bf0={};a22_0x3f7bf0['LOG']=a22_0x262c14(0x12f),a22_0x3f7bf0[a22_0x262c14(0x111)]=a22_0x262c14(0x10a),a22_0x3f7bf0['GRID_URL']=a22_0x262c14(0x102),a22_0x3f7bf0[a22_0x262c14(0xfa)]='cliRunStarted',a22_0x3f7bf0[a22_0x262c14(0x113)]='cliRunFinished',exports['WS_EVENTS']=a22_0x3f7bf0,exports[a22_0x262c14(0x122)]={},exports[a22_0x262c14(0x121)]=a22_0x262c14(0x112);const a22_0x2ffe7e={};a22_0x2ffe7e['root']=a22_0x262c14(0xd1)+this['LINK_MESSAGE'],a22_0x2ffe7e['init']=a22_0x262c14(0xe1)+this[a22_0x262c14(0x121)],a22_0x2ffe7e[a22_0x262c14(0xff)]=a22_0x262c14(0xe3)+this[a22_0x262c14(0x121)],a22_0x2ffe7e[a22_0x262c14(0xed)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x262c14(0x121)],a22_0x2ffe7e[a22_0x262c14(0x108)]={},a22_0x2ffe7e[a22_0x262c14(0xf9)]=a22_0x262c14(0x129)+this[a22_0x262c14(0x121)],a22_0x2ffe7e[a22_0x262c14(0xdf)]=a22_0x262c14(0xd8)+this[a22_0x262c14(0x121)],a22_0x2ffe7e[a22_0x262c14(0x10d)]=a22_0x262c14(0xe4)+this[a22_0x262c14(0x121)],a22_0x2ffe7e['stop']=a22_0x262c14(0xe6)+this[a22_0x262c14(0x121)],a22_0x2ffe7e[a22_0x262c14(0xe2)]=a22_0x262c14(0xcf)+this[a22_0x262c14(0x121)],a22_0x2ffe7e[a22_0x262c14(0x108)]['root']=a22_0x262c14(0xfd)+this[a22_0x262c14(0x121)],a22_0x2ffe7e[a22_0x262c14(0x108)][a22_0x262c14(0xdd)]=a22_0x262c14(0x10c)+this['LINK_MESSAGE'],a22_0x2ffe7e[a22_0x262c14(0x108)][a22_0x262c14(0x101)]=a22_0x262c14(0xf5)+this[a22_0x262c14(0x121)],exports[a22_0x262c14(0xef)]=a22_0x2ffe7e,exports[a22_0x262c14(0xdb)]=a22_0x262c14(0x118);const a22_0x2e8410={};a22_0x2e8410['SUCCESS']=a22_0x262c14(0xf1),a22_0x2e8410[a22_0x262c14(0xfb)]='error',a22_0x2e8410[a22_0x262c14(0x11a)]='info',a22_0x2e8410['WARNING']='warning',a22_0x2e8410['UNKNOWN']=a22_0x262c14(0xd5),a22_0x2e8410[a22_0x262c14(0x11b)]=null,exports['messageTypes']=a22_0x2e8410,exports[a22_0x262c14(0x12a)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x262c14(0x124)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x262c14(0xf0)]='[REDACTED]';const a22_0x12b6ba={};a22_0x12b6ba[a22_0x262c14(0x126)]=a22_0x262c14(0x115);const a22_0x19c4d6={};a22_0x19c4d6[a22_0x262c14(0xe5)]=a22_0x12b6ba,exports[a22_0x262c14(0x131)]=a22_0x19c4d6,exports[a22_0x262c14(0xf7)]=a22_0x262c14(0x10e);const a22_0x3118b0={};a22_0x3118b0[a22_0x262c14(0x11c)]=a22_0x262c14(0xd0),a22_0x3118b0['CLOUD_PROVIDER']=a22_0x262c14(0x12e),a22_0x3118b0['REGION']=a22_0x262c14(0x106),exports[a22_0x262c14(0x125)]=a22_0x3118b0;
@@ -1 +1 @@
1
- const a23_0x3912cc=a23_0x353a;(function(_0x2e8a5f,_0x53e31c){const _0x409170=a23_0x353a,_0x4c9756=_0x2e8a5f();while(!![]){try{const _0x50f58f=-parseInt(_0x409170(0xed))/0x1+parseInt(_0x409170(0xff))/0x2+parseInt(_0x409170(0xe6))/0x3+parseInt(_0x409170(0xf0))/0x4+-parseInt(_0x409170(0xe8))/0x5*(parseInt(_0x409170(0xfd))/0x6)+parseInt(_0x409170(0xf6))/0x7+parseInt(_0x409170(0x101))/0x8*(-parseInt(_0x409170(0xeb))/0x9);if(_0x50f58f===_0x53e31c)break;else _0x4c9756['push'](_0x4c9756['shift']());}catch(_0x13c1a0){_0x4c9756['push'](_0x4c9756['shift']());}}}(a23_0x56cb,0x1fa74));const winston=require('winston'),fs=require('fs'),path=require(a23_0x3912cc(0xe7)),logDir=a23_0x3912cc(0xf2);!fs['existsSync'](logDir)&&fs[a23_0x3912cc(0xf4)](logDir);const a23_0x299127={};a23_0x299127['format']=a23_0x3912cc(0xec);const a23_0x36b89a={};a23_0x36b89a[a23_0x3912cc(0xee)]=!![];const a23_0x27d98d={};function a23_0x353a(_0x1a4f9d,_0x34c5e6){const _0x56cb8e=a23_0x56cb();return a23_0x353a=function(_0x353ace,_0x3fcb03){_0x353ace=_0x353ace-0xe4;let _0x194b67=_0x56cb8e[_0x353ace];return _0x194b67;},a23_0x353a(_0x1a4f9d,_0x34c5e6);}a23_0x27d98d[a23_0x3912cc(0xfa)]='console.info',exports[a23_0x3912cc(0xf1)]=new winston['createLogger']({'format':winston[a23_0x3912cc(0xfc)]['combine'](winston[a23_0x3912cc(0xfc)][a23_0x3912cc(0xf9)](a23_0x299127),winston['format'][a23_0x3912cc(0xf7)](a23_0x36b89a),winston[a23_0x3912cc(0xfc)][a23_0x3912cc(0xe5)](_0xa77b2e=>_0xa77b2e[a23_0x3912cc(0xf9)]+a23_0x3912cc(0xf5)+_0xa77b2e[a23_0x3912cc(0xee)]+':\x20'+_0xa77b2e[a23_0x3912cc(0xea)])),'transports':[new winston[(a23_0x3912cc(0xef))][(a23_0x3912cc(0xe9))](a23_0x27d98d),new winston[(a23_0x3912cc(0xef))][(a23_0x3912cc(0xfe))]({'filename':path[a23_0x3912cc(0xf8)](logDir,a23_0x3912cc(0xe4)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3912cc(0xef))][(a23_0x3912cc(0xfe))]({'filename':path[a23_0x3912cc(0xf8)](logDir,a23_0x3912cc(0x100)),'level':a23_0x3912cc(0xfb)})]};exports['fileLogger']=new winston[(a23_0x3912cc(0xf3))](winstonFileLoggerParams);function a23_0x56cb(){const _0x2500f3=['301038McWLdd','path','60320svvVRF','Console','message','2530566aeYLRe','YYYY-MM-DD\x20HH:mm:ss','46501KucYht','level','transports','661044dWgvMF','logger','log','createLogger','mkdirSync','\x20-\x20','1426992asHpPX','colorize','join','timestamp','name','debug','format','66WyvaJU','File','241136CEqurs','usage.log','8mzFyZV','events.log','printf'];a23_0x56cb=function(){return _0x2500f3;};return a23_0x56cb();}
1
+ const a23_0x4d7b17=a23_0x57d5;(function(_0x195f6c,_0x31ca3b){const _0x3dc12f=a23_0x57d5,_0x5bfa22=_0x195f6c();while(!![]){try{const _0x589cb5=-parseInt(_0x3dc12f(0xf5))/0x1+-parseInt(_0x3dc12f(0xf2))/0x2+parseInt(_0x3dc12f(0xe5))/0x3+parseInt(_0x3dc12f(0xf1))/0x4*(-parseInt(_0x3dc12f(0xec))/0x5)+-parseInt(_0x3dc12f(0xde))/0x6+-parseInt(_0x3dc12f(0xe0))/0x7*(-parseInt(_0x3dc12f(0xda))/0x8)+parseInt(_0x3dc12f(0xf0))/0x9;if(_0x589cb5===_0x31ca3b)break;else _0x5bfa22['push'](_0x5bfa22['shift']());}catch(_0x1c4953){_0x5bfa22['push'](_0x5bfa22['shift']());}}}(a23_0x1860,0x2d43e));const winston=require(a23_0x4d7b17(0xf3)),fs=require('fs'),path=require(a23_0x4d7b17(0xe3)),logDir=a23_0x4d7b17(0xd8);!fs[a23_0x4d7b17(0xd9)](logDir)&&fs[a23_0x4d7b17(0xee)](logDir);const a23_0x12d05f={};a23_0x12d05f[a23_0x4d7b17(0xdc)]='YYYY-MM-DD\x20HH:mm:ss';function a23_0x1860(){const _0x3adf02=['name','Console','debug','5pqFJeB','\x20-\x20','mkdirSync','level','7410861utkcbe','1455196QxBGlB','217818EHNZBq','winston','printf','195097KLVZvg','File','fileLogger','log','existsSync','154488OqCNbu','timestamp','format','createLogger','926244eCITbw','colorize','7BqsMNc','combine','transports','path','events.log','494535GTHOdI','logger','join','message'];a23_0x1860=function(){return _0x3adf02;};return a23_0x1860();}const a23_0x3c21a1={};function a23_0x57d5(_0x59a84c,_0x32da43){const _0x186088=a23_0x1860();return a23_0x57d5=function(_0x57d522,_0x21f63d){_0x57d522=_0x57d522-0xd8;let _0x35dca9=_0x186088[_0x57d522];return _0x35dca9;},a23_0x57d5(_0x59a84c,_0x32da43);}a23_0x3c21a1[a23_0x4d7b17(0xef)]=!![];const a23_0x4b4d19={};a23_0x4b4d19[a23_0x4d7b17(0xe9)]='console.info',exports[a23_0x4d7b17(0xe6)]=new winston[(a23_0x4d7b17(0xdd))]({'format':winston[a23_0x4d7b17(0xdc)][a23_0x4d7b17(0xe1)](winston[a23_0x4d7b17(0xdc)][a23_0x4d7b17(0xdb)](a23_0x12d05f),winston[a23_0x4d7b17(0xdc)][a23_0x4d7b17(0xdf)](a23_0x3c21a1),winston['format'][a23_0x4d7b17(0xf4)](_0x33fa1f=>_0x33fa1f[a23_0x4d7b17(0xdb)]+a23_0x4d7b17(0xed)+_0x33fa1f[a23_0x4d7b17(0xef)]+':\x20'+_0x33fa1f[a23_0x4d7b17(0xe8)])),'transports':[new winston['transports'][(a23_0x4d7b17(0xea))](a23_0x4b4d19),new winston['transports'][(a23_0x4d7b17(0xf6))]({'filename':path[a23_0x4d7b17(0xe7)](logDir,a23_0x4d7b17(0xe4)),'level':a23_0x4d7b17(0xeb)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x4d7b17(0xe2))][(a23_0x4d7b17(0xf6))]({'filename':path[a23_0x4d7b17(0xe7)](logDir,'usage.log'),'level':a23_0x4d7b17(0xeb)})]};exports[a23_0x4d7b17(0xf7)]=new winston[(a23_0x4d7b17(0xdd))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x12c6(){const _0x2a22fc=['531568GXPzIP','15267xFKPYC','usage','root','help','2940030dmLLCT','1128WqyJyM','424080DHHeVE','77riTuTz','3986811VpEiaU','demandCommand','1OiJmFT','10119060LlvUmV','env','9TSgYir','commandDir','aUJih','ZQOub','8nrAvVE','epilogue','2127118XLgaor'];a24_0x12c6=function(){return _0x2a22fc;};return a24_0x12c6();}const a24_0xc427c3=a24_0x878d;(function(_0x15cc70,_0x1a2a82){const _0x452e05=a24_0x878d,_0x287e44=_0x15cc70();while(!![]){try{const _0x5886a3=-parseInt(_0x452e05(0x18a))/0x1*(parseInt(_0x452e05(0x193))/0x2)+parseInt(_0x452e05(0x18d))/0x3*(parseInt(_0x452e05(0x194))/0x4)+parseInt(_0x452e05(0x184))/0x5+-parseInt(_0x452e05(0x185))/0x6*(parseInt(_0x452e05(0x195))/0x7)+parseInt(_0x452e05(0x191))/0x8*(parseInt(_0x452e05(0x188))/0x9)+parseInt(_0x452e05(0x18b))/0xa+-parseInt(_0x452e05(0x187))/0xb*(parseInt(_0x452e05(0x186))/0xc);if(_0x5886a3===_0x1a2a82)break;else _0x287e44['push'](_0x287e44['shift']());}catch(_0x34f41f){_0x287e44['push'](_0x287e44['shift']());}}}(a24_0x12c6,0xafed8));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0xc427c3(0x18c)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x135932){const _0x213abe=a24_0xc427c3,_0x33f422={};_0x33f422[_0x213abe(0x190)]='commands',_0x33f422[_0x213abe(0x18f)]=_0x213abe(0x183);const _0x52fc5c=_0x33f422;_0x135932[_0x213abe(0x196)](HELP_HEADER_MESSAGE[_0x213abe(0x182)])[_0x213abe(0x18e)](_0x52fc5c[_0x213abe(0x190)])[_0x213abe(0x189)]()[_0x213abe(0x183)](_0x52fc5c[_0x213abe(0x18f)])[_0x213abe(0x192)](HELP_FOOTER_MESSAGE);}function a24_0x878d(_0x2f2b5b,_0x44f17a){const _0x12c645=a24_0x12c6();return a24_0x878d=function(_0x878d1f,_0x2ded5d){_0x878d1f=_0x878d1f-0x182;let _0x1ac1f1=_0x12c645[_0x878d1f];return _0x1ac1f1;},a24_0x878d(_0x2f2b5b,_0x44f17a);}module['exports']=run;
2
+ 'use strict';const a24_0x1c456b=a24_0x1ea5;(function(_0x190229,_0x168bed){const _0x47458f=a24_0x1ea5,_0x56ab4c=_0x190229();while(!![]){try{const _0x13c29e=-parseInt(_0x47458f(0x19c))/0x1+-parseInt(_0x47458f(0x1ab))/0x2*(-parseInt(_0x47458f(0x1a4))/0x3)+parseInt(_0x47458f(0x19a))/0x4+-parseInt(_0x47458f(0x1a9))/0x5*(-parseInt(_0x47458f(0x19f))/0x6)+-parseInt(_0x47458f(0x1a2))/0x7*(-parseInt(_0x47458f(0x1ac))/0x8)+parseInt(_0x47458f(0x1a7))/0x9+parseInt(_0x47458f(0x1a1))/0xa*(-parseInt(_0x47458f(0x19d))/0xb);if(_0x13c29e===_0x168bed)break;else _0x56ab4c['push'](_0x56ab4c['shift']());}catch(_0x3f44b8){_0x56ab4c['push'](_0x56ab4c['shift']());}}}(a24_0x24fb,0xe51a1));function a24_0x24fb(){const _0x4c24b9=['Hxdan','help','2812968LMTGeg','root','585mTUKgh','exports','4342dToGvK','40zQcoyV','./config/constants','commandDir','YlKuC','2432632EyGTYw','epilogue','1785745tVXFlw','11wsarPJ','usage','62514xBGhUa','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','17109230cJuggk','2268217yLwNtN','env','933YAzDNg'];a24_0x24fb=function(){return _0x4c24b9;};return a24_0x24fb();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x1c456b(0x1ad));process[a24_0x1c456b(0x1a3)][a24_0x1c456b(0x1a0)]=0x1;function run(_0x13784d){const _0x33ea61=a24_0x1c456b,_0x3c79d8={};_0x3c79d8[_0x33ea61(0x199)]='commands',_0x3c79d8[_0x33ea61(0x1a5)]=_0x33ea61(0x1a6);const _0x3df7ed=_0x3c79d8;_0x13784d[_0x33ea61(0x19e)](HELP_HEADER_MESSAGE[_0x33ea61(0x1a8)])[_0x33ea61(0x198)](_0x3df7ed['YlKuC'])['demandCommand']()[_0x33ea61(0x1a6)](_0x3df7ed[_0x33ea61(0x1a5)])[_0x33ea61(0x19b)](HELP_FOOTER_MESSAGE);}function a24_0x1ea5(_0xf4d529,_0x19990a){const _0x24fb1e=a24_0x24fb();return a24_0x1ea5=function(_0x1ea5f0,_0x5c82d8){_0x1ea5f0=_0x1ea5f0-0x198;let _0xc2509e=_0x24fb1e[_0x1ea5f0];return _0xc2509e;},a24_0x1ea5(_0xf4d529,_0x19990a);}module[a24_0x1c456b(0x1aa)]=run;