browserstack-node-sdk 1.53.2 → 1.53.4

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 (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +6 -4
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x57a2(){const _0x22c280=['497448kzNGHN','dABQX','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oElJd','log','forEach','SEGwt','439941KEsIvr','152645yJyNMR','uuid','all-grids','bstackAccesskey','ygzkj','queued','MTugT','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','UziRV','type','HmIAF','bstackUsername','existsSync','usage','name','aBRGi','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','command','ZRBIa','grid-name','clusterName','ERROR','87643WdRMeQ','cluster-name','dOtiW','GXmNm','allGrids','grids','thVUQ','INFO','argv','boolean','LkjPD','EqjWW','../../utils/utilityMethods','ihVPz','grid','fbzdK','dcwid','username','https://','rnrkC','1671828UYLEVn','../../config/constants','CAayi','\x0aFound\x20the\x20following\x20grids:\x0a','statusCode','requestId','error','stack','Failed\x20to\x20list\x20resources!\x20Error:\x20','body','44256YlFHIT','password','hqQrh','running','parse','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','server-error','ZzXDS','description','../../utils/instrumentationUtils','exit','pYoCj','grid-id','push','Browserstack','TlaBv','got','options','unauthorised','UYFHY','/packages/cli/get-grids','desc','FRFla','362664OzTXLU','Qgtjf','table'];a15_0x57a2=function(){return _0x22c280;};return a15_0x57a2();}const a15_0x4bf847=a15_0x2a7f;function a15_0x2a7f(_0x3f4ce5,_0x3030b2){const _0x57a29c=a15_0x57a2();return a15_0x2a7f=function(_0x2a7ffa,_0x531dad){_0x2a7ffa=_0x2a7ffa-0x86;let _0x8befa7=_0x57a29c[_0x2a7ffa];return _0x8befa7;},a15_0x2a7f(_0x3f4ce5,_0x3030b2);}(function(_0x222a01,_0x26a4bf){const _0x3e594c=a15_0x2a7f,_0x96ff63=_0x222a01();while(!![]){try{const _0xf5f10a=parseInt(_0x3e594c(0xc8))/0x1+parseInt(_0x3e594c(0xa5))/0x2+parseInt(_0x3e594c(0xaf))/0x3+-parseInt(_0x3e594c(0x8e))/0x4+-parseInt(_0x3e594c(0xb0))/0x5+-parseInt(_0x3e594c(0xdc))/0x6+parseInt(_0x3e594c(0xa8))/0x7;if(_0xf5f10a===_0x26a4bf)break;else _0x96ff63['push'](_0x96ff63['shift']());}catch(_0x4c7a3){_0x96ff63['push'](_0x96ff63['shift']());}}}(a15_0x57a2,0x28a37));const fs=require('fs'),got=require(a15_0x4bf847(0x9e)),{table}=require(a15_0x4bf847(0xa7)),{v4:uuidv4}=require(a15_0x4bf847(0xb1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4bf847(0xdd)),{getCredentialsPath,getAuthHeader}=require(a15_0x4bf847(0xd4)),{sendInstrumentationEvent}=require(a15_0x4bf847(0x97));exports[a15_0x4bf847(0xc3)]=a15_0x4bf847(0xcd),exports[a15_0x4bf847(0xa3)]=a15_0x4bf847(0x93),exports['builder']=function(_0x4c47f9){const _0x1edc68=a15_0x4bf847,_0x13a33b={};_0x13a33b['dOtiW']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x13a33b[_0x1edc68(0xa4)]=_0x1edc68(0xd1),_0x13a33b['TlaBv']=_0x1edc68(0xb7);const _0x2936ef=_0x13a33b,_0x3015a6={};_0x3015a6[_0x1edc68(0x96)]=_0x2936ef[_0x1edc68(0xca)],_0x3015a6[_0x1edc68(0xba)]=_0x2936ef[_0x1edc68(0xa4)];const _0x1881dd={};return _0x1881dd[_0x1edc68(0xb2)]=_0x3015a6,_0x4c47f9[_0x1edc68(0xbe)](HELP_HEADER_MESSAGE['list'][_0x1edc68(0xd6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1edc68(0x9f)](_0x1881dd)[_0x1edc68(0xb7)](_0x2936ef[_0x1edc68(0x9d)])[_0x1edc68(0xd0)];},exports[a15_0x4bf847(0xc1)]=async function(_0x28b39a){const _0x372e95=a15_0x4bf847,_0x338c0f={'thVUQ':function(_0x16e38e){return _0x16e38e();},'oElJd':function(_0x10a5de){return _0x10a5de();},'rnrkC':_0x372e95(0xaa),'ktNKe':function(_0x308e75,_0xe02479,_0x3578db,_0x23a3d0,_0x5eb3d3,_0x46ca0d,_0x3d53e9){return _0x308e75(_0xe02479,_0x3578db,_0x23a3d0,_0x5eb3d3,_0x46ca0d,_0x3d53e9);},'UziRV':'list-grids-called','pYoCj':'init-not-called','MTugT':function(_0x7d1745){return _0x7d1745();},'hNhdm':'GET','dcwid':function(_0x1ffc66,_0x3e4d83,_0x301bca){return _0x1ffc66(_0x3e4d83,_0x301bca);},'VuWZB':function(_0xfab0c9,_0x3c5506,_0xac4e15,_0x5828ed,_0xc8cc40,_0x396c8b,_0x1c7354){return _0xfab0c9(_0x3c5506,_0xac4e15,_0x5828ed,_0xc8cc40,_0x396c8b,_0x1c7354);},'SEGwt':function(_0x476558,_0x5a09e5,_0x4f96b5){return _0x476558(_0x5a09e5,_0x4f96b5);},'HmIAF':function(_0x3e0bf4,_0xbf15e6){return _0x3e0bf4!==_0xbf15e6;},'LkjPD':function(_0x4d653d,_0x687b4e){return _0x4d653d!==_0x687b4e;},'GXmNm':function(_0x4e7773,_0x418062){return _0x4e7773===_0x418062;},'hqQrh':_0x372e95(0x87),'ygzkj':_0x372e95(0x9a),'dABQX':_0x372e95(0xc5),'HUWJf':'status','mwzWs':'running','ZzXDS':_0x372e95(0xb5),'CAayi':_0x372e95(0xc9),'ZRBIa':function(_0x4434cc,_0x455985){return _0x4434cc(_0x455985);},'aBRGi':function(_0x417000,_0x15490d){return _0x417000===_0x15490d;},'ihVPz':_0x372e95(0xc2),'fbzdK':function(_0x15cb92,_0x5379ff,_0x66e8ab,_0x20b52d,_0x37692e,_0x1996fd,_0x277d02){return _0x15cb92(_0x5379ff,_0x66e8ab,_0x20b52d,_0x37692e,_0x1996fd,_0x277d02);},'EqjWW':_0x372e95(0xa0),'Qgtjf':_0x372e95(0x94),'UYFHY':function(_0x360e65,_0x2e0b6e,_0x1f3847,_0x3e2c56,_0x5567ee,_0x2c6b0a,_0x340f8a){return _0x360e65(_0x2e0b6e,_0x1f3847,_0x3e2c56,_0x5567ee,_0x2c6b0a,_0x340f8a);},'bAiBo':'unknown-error'};try{global_registry[_0x372e95(0x89)]=_0x338c0f[_0x372e95(0xce)](uuidv4);!fs[_0x372e95(0xbd)](_0x338c0f[_0x372e95(0xab)](getCredentialsPath))&&(console[_0x372e95(0x8a)](_0x338c0f[_0x372e95(0xdb)]),await _0x338c0f['ktNKe'](sendInstrumentationEvent,_0x28b39a,_0x338c0f[_0x372e95(0xb9)],messageTypes[_0x372e95(0xc7)],_0x338c0f[_0x372e95(0x99)],null,_0x28b39a),process[_0x372e95(0x98)](0x1));const _0x1c9521=JSON[_0x372e95(0x92)](fs['readFileSync'](_0x338c0f[_0x372e95(0xb6)](getCredentialsPath)));let _0x538fc1=_0x372e95(0xda)+AG_API_URL+_0x372e95(0xa2);_0x28b39a[_0x372e95(0xcc)]&&(_0x538fc1=_0x372e95(0xda)+AG_API_URL+'/packages/cli/get-all-grids');const _0x2e76ee={'method':_0x338c0f['hNhdm'],'headers':_0x338c0f[_0x372e95(0xd8)](getAuthHeader,_0x1c9521[_0x372e95(0x9c)][_0x372e95(0xd9)],_0x1c9521[_0x372e95(0x9c)][_0x372e95(0x8f)]),'throwHttpErrors':![]};global_registry[_0x372e95(0xbc)]=_0x1c9521[_0x372e95(0x9c)][_0x372e95(0xd9)],global_registry[_0x372e95(0xb3)]=_0x1c9521[_0x372e95(0x9c)][_0x372e95(0x8f)],_0x338c0f['VuWZB'](sendInstrumentationEvent,_0x28b39a,_0x338c0f[_0x372e95(0xb9)],messageTypes[_0x372e95(0xcf)],null,null,_0x28b39a);const _0x7e554=await _0x338c0f[_0x372e95(0xae)](got,_0x538fc1,_0x2e76ee);if(_0x338c0f[_0x372e95(0xbb)](_0x7e554,null)&&_0x338c0f[_0x372e95(0xd2)](_0x7e554,undefined)&&_0x338c0f[_0x372e95(0xcb)](_0x7e554[_0x372e95(0x88)],0xc8)){const _0x3d671a=JSON['parse'](_0x7e554[_0x372e95(0x8d)]);console[_0x372e95(0xac)](_0x338c0f[_0x372e95(0x90)]);const _0x1273e5=[];_0x1273e5['push']([_0x338c0f[_0x372e95(0xb4)],_0x338c0f[_0x372e95(0xa9)],_0x338c0f['HUWJf'],_0x338c0f['mwzWs'],_0x338c0f[_0x372e95(0x95)],_0x338c0f[_0x372e95(0x86)]]),_0x3d671a[_0x372e95(0xad)](_0x32ff0c=>{const _0x10b6d8=_0x372e95;_0x1273e5[_0x10b6d8(0x9b)]([_0x32ff0c['id'],_0x32ff0c[_0x10b6d8(0xbf)],_0x32ff0c['status'],_0x32ff0c[_0x10b6d8(0x91)],_0x32ff0c[_0x10b6d8(0xb5)],_0x32ff0c[_0x10b6d8(0xc6)]]);}),console[_0x372e95(0xac)](_0x338c0f[_0x372e95(0xc4)](table,_0x1273e5)),process[_0x372e95(0x98)](0x0);}_0x338c0f[_0x372e95(0xc0)](_0x7e554[_0x372e95(0x88)],0x191)&&(console[_0x372e95(0x8a)](_0x338c0f[_0x372e95(0xd5)]),await _0x338c0f[_0x372e95(0xd7)](sendInstrumentationEvent,_0x28b39a,_0x338c0f[_0x372e95(0xb9)],messageTypes[_0x372e95(0xc7)],_0x338c0f[_0x372e95(0xd3)],null,_0x28b39a),process[_0x372e95(0x98)](0x1)),console['error'](_0x372e95(0xb8)+JSON['stringify'](_0x7e554)),await _0x338c0f['fbzdK'](sendInstrumentationEvent,_0x28b39a,_0x338c0f[_0x372e95(0xb9)],messageTypes[_0x372e95(0xc7)],_0x338c0f[_0x372e95(0xa6)],_0x7e554,_0x28b39a),process[_0x372e95(0x98)](0x1);}catch(_0x4fb864){console['error'](_0x372e95(0x8c)+_0x4fb864[_0x372e95(0x8b)]),await _0x338c0f[_0x372e95(0xa1)](sendInstrumentationEvent,_0x28b39a,_0x338c0f[_0x372e95(0xb9)],messageTypes[_0x372e95(0xc7)],_0x338c0f['bAiBo'],_0x4fb864,_0x28b39a),process['exit'](0x1);}};
1
+ function a15_0x24b4(_0x2b62da,_0x56aaff){const _0x484f3f=a15_0x484f();return a15_0x24b4=function(_0x24b43c,_0x42d6d8){_0x24b43c=_0x24b43c-0xf1;let _0x333377=_0x484f3f[_0x24b43c];return _0x333377;},a15_0x24b4(_0x2b62da,_0x56aaff);}function a15_0x484f(){const _0x16253c=['3243232lgfeZt','existsSync','grid-id','12KpvaXi','password','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','readFileSync','server-error','handler','status','HGOdD','28VApHNk','requestId','stringify','CbMMX','bstackAccesskey','NwfHe','error','epilogue','18lIxcHs','body','grid-name','RUOni','stack','\x0aFound\x20the\x20following\x20grids:\x0a','argv','../../utils/instrumentationUtils','options','Browserstack','push','grid','KJMyu','mEPNW','running','../../config/constants','all-grids','../../utils/utilityMethods','parse','log','builder','init-not-called','table','ERROR','34698ZnAeeT','clusterName','cluster-name','Failed\x20to\x20list\x20resources!\x20Error:\x20','grids','879565iyZLKP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','queued','cnLlv','got','Pxpbq','uzDwK','mkaNe','uEAWI','OnHpd','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','eYzrv','LmMqG','unauthorised','2460990lKBGnD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','statusCode','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','LmIBt','/packages/cli/get-grids','22559150WZBoLd','uuid','https://','list-grids-called','cvQEK','HVKEz','lNsHF','/packages/cli/get-all-grids','469696WTmcSo','help','description','type','command','bstackUsername','2615020hrJqXZ','GET','CInGn','username','name','xTAuF'];a15_0x484f=function(){return _0x16253c;};return a15_0x484f();}const a15_0x18c98d=a15_0x24b4;(function(_0x2fd495,_0x2dbc9e){const _0x4d409a=a15_0x24b4,_0x3e3043=_0x2fd495();while(!![]){try{const _0x24028b=parseInt(_0x4d409a(0x146))/0x1+parseInt(_0x4d409a(0x116))/0x2+-parseInt(_0x4d409a(0x141))/0x3*(-parseInt(_0x4d409a(0x121))/0x4)+-parseInt(_0x4d409a(0x110))/0x5*(-parseInt(_0x4d409a(0x119))/0x6)+-parseInt(_0x4d409a(0xfb))/0x7+-parseInt(_0x4d409a(0x10a))/0x8*(parseInt(_0x4d409a(0x129))/0x9)+-parseInt(_0x4d409a(0x102))/0xa;if(_0x24028b===_0x2dbc9e)break;else _0x3e3043['push'](_0x3e3043['shift']());}catch(_0x21c370){_0x3e3043['push'](_0x3e3043['shift']());}}}(a15_0x484f,0xdc84a));const fs=require('fs'),got=require(a15_0x18c98d(0xf1)),{table}=require(a15_0x18c98d(0x13f)),{v4:uuidv4}=require(a15_0x18c98d(0x103)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x18c98d(0x138)),{getCredentialsPath,getAuthHeader}=require(a15_0x18c98d(0x13a)),{sendInstrumentationEvent}=require(a15_0x18c98d(0x130));exports[a15_0x18c98d(0x10e)]=a15_0x18c98d(0x145),exports['desc']=a15_0x18c98d(0x11b),exports[a15_0x18c98d(0x13d)]=function(_0x4696a7){const _0x5c0603=a15_0x18c98d,_0x1444cf={};_0x1444cf[_0x5c0603(0x126)]=_0x5c0603(0xf7),_0x1444cf[_0x5c0603(0x106)]='boolean',_0x1444cf[_0x5c0603(0xf5)]=_0x5c0603(0x10b);const _0x123b70=_0x1444cf,_0x464c47={};_0x464c47[_0x5c0603(0x10c)]=_0x123b70[_0x5c0603(0x126)],_0x464c47[_0x5c0603(0x10d)]=_0x123b70[_0x5c0603(0x106)];const _0x5c3921={};return _0x5c3921[_0x5c0603(0x139)]=_0x464c47,_0x4696a7['usage'](HELP_HEADER_MESSAGE['list'][_0x5c0603(0x134)])[_0x5c0603(0x128)](HELP_FOOTER_MESSAGE)[_0x5c0603(0x131)](_0x5c3921)['help'](_0x123b70[_0x5c0603(0xf5)])[_0x5c0603(0x12f)];},exports[a15_0x18c98d(0x11e)]=async function(_0x19b42a){const _0x1315c2=a15_0x18c98d,_0x5a27a2={'lNsHF':function(_0x11f03c){return _0x11f03c();},'CnzDs':function(_0x5c70b8){return _0x5c70b8();},'HVKEz':_0x1315c2(0xfc),'LmIBt':function(_0x2d210d,_0x163ed7,_0x638d3d,_0x2d410d,_0x247f09,_0x36189f,_0x148f44){return _0x2d210d(_0x163ed7,_0x638d3d,_0x2d410d,_0x247f09,_0x36189f,_0x148f44);},'KJMyu':_0x1315c2(0x105),'eYzrv':_0x1315c2(0x13e),'ZaMdP':function(_0x2f9559){return _0x2f9559();},'mkaNe':_0x1315c2(0x111),'Pxpbq':function(_0x14c18d,_0x5e61fe,_0x8e0851){return _0x14c18d(_0x5e61fe,_0x8e0851);},'cnLlv':function(_0x417687,_0x7717aa,_0x39b199,_0x4bbc88,_0x2f6726,_0x5414a7,_0x46e6fb){return _0x417687(_0x7717aa,_0x39b199,_0x4bbc88,_0x2f6726,_0x5414a7,_0x46e6fb);},'sQToc':function(_0x32788f,_0x2b001e){return _0x32788f!==_0x2b001e;},'xTAuF':function(_0x1125b8,_0x44d58b){return _0x1125b8!==_0x44d58b;},'CbMMX':function(_0x121822,_0x1cf0ac){return _0x121822===_0x1cf0ac;},'uzDwK':_0x1315c2(0x12e),'rDZiO':_0x1315c2(0x118),'LmMqG':_0x1315c2(0x12b),'HGOdD':_0x1315c2(0x11f),'FJMFj':_0x1315c2(0x137),'HpmxD':_0x1315c2(0x148),'OnHpd':_0x1315c2(0x143),'mEPNW':function(_0x382676,_0x1ef19a){return _0x382676(_0x1ef19a);},'ImtHY':_0x1315c2(0x147),'RUOni':_0x1315c2(0xfa),'CInGn':_0x1315c2(0x11d),'RApSM':'unknown-error'};try{global_registry[_0x1315c2(0x122)]=_0x5a27a2[_0x1315c2(0x108)](uuidv4);!fs[_0x1315c2(0x117)](_0x5a27a2['CnzDs'](getCredentialsPath))&&(console[_0x1315c2(0x127)](_0x5a27a2[_0x1315c2(0x107)]),await _0x5a27a2[_0x1315c2(0x100)](sendInstrumentationEvent,_0x19b42a,_0x5a27a2['KJMyu'],messageTypes[_0x1315c2(0x140)],_0x5a27a2[_0x1315c2(0xf8)],null,_0x19b42a),process['exit'](0x1));const _0x2dc4f2=JSON['parse'](fs[_0x1315c2(0x11c)](_0x5a27a2['ZaMdP'](getCredentialsPath)));let _0x27122b=_0x1315c2(0x104)+AG_API_URL+_0x1315c2(0x101);_0x19b42a['allGrids']&&(_0x27122b=_0x1315c2(0x104)+AG_API_URL+_0x1315c2(0x109));const _0x19e636={'method':_0x5a27a2[_0x1315c2(0xf4)],'headers':_0x5a27a2[_0x1315c2(0xf2)](getAuthHeader,_0x2dc4f2[_0x1315c2(0x132)][_0x1315c2(0x113)],_0x2dc4f2['Browserstack'][_0x1315c2(0x11a)]),'throwHttpErrors':![]};global_registry[_0x1315c2(0x10f)]=_0x2dc4f2[_0x1315c2(0x132)][_0x1315c2(0x113)],global_registry[_0x1315c2(0x125)]=_0x2dc4f2[_0x1315c2(0x132)][_0x1315c2(0x11a)],_0x5a27a2['cnLlv'](sendInstrumentationEvent,_0x19b42a,_0x5a27a2[_0x1315c2(0x135)],messageTypes['INFO'],null,null,_0x19b42a);const _0x148cc4=await _0x5a27a2[_0x1315c2(0xf2)](got,_0x27122b,_0x19e636);if(_0x5a27a2['sQToc'](_0x148cc4,null)&&_0x5a27a2[_0x1315c2(0x115)](_0x148cc4,undefined)&&_0x5a27a2[_0x1315c2(0x124)](_0x148cc4[_0x1315c2(0xfd)],0xc8)){const _0x369218=JSON[_0x1315c2(0x13b)](_0x148cc4[_0x1315c2(0x12a)]);console[_0x1315c2(0x13c)](_0x5a27a2[_0x1315c2(0xf3)]);const _0x24a14a=[];_0x24a14a['push']([_0x5a27a2['rDZiO'],_0x5a27a2[_0x1315c2(0xf9)],_0x5a27a2[_0x1315c2(0x120)],_0x5a27a2['FJMFj'],_0x5a27a2['HpmxD'],_0x5a27a2[_0x1315c2(0xf6)]]),_0x369218['forEach'](_0x2d13c6=>{const _0x282b57=_0x1315c2;_0x24a14a[_0x282b57(0x133)]([_0x2d13c6['id'],_0x2d13c6[_0x282b57(0x114)],_0x2d13c6[_0x282b57(0x11f)],_0x2d13c6[_0x282b57(0x137)],_0x2d13c6[_0x282b57(0x148)],_0x2d13c6[_0x282b57(0x142)]]);}),console[_0x1315c2(0x13c)](_0x5a27a2[_0x1315c2(0x136)](table,_0x24a14a)),process[_0x1315c2(0xfe)](0x0);}_0x5a27a2[_0x1315c2(0x124)](_0x148cc4[_0x1315c2(0xfd)],0x191)&&(console[_0x1315c2(0x127)](_0x5a27a2['ImtHY']),await _0x5a27a2[_0x1315c2(0x149)](sendInstrumentationEvent,_0x19b42a,_0x5a27a2[_0x1315c2(0x135)],messageTypes['ERROR'],_0x5a27a2[_0x1315c2(0x12c)],null,_0x19b42a),process['exit'](0x1)),console[_0x1315c2(0x127)](_0x1315c2(0xff)+JSON[_0x1315c2(0x123)](_0x148cc4)),await _0x5a27a2[_0x1315c2(0x100)](sendInstrumentationEvent,_0x19b42a,_0x5a27a2[_0x1315c2(0x135)],messageTypes[_0x1315c2(0x140)],_0x5a27a2[_0x1315c2(0x112)],_0x148cc4,_0x19b42a),process[_0x1315c2(0xfe)](0x1);}catch(_0x4c1e63){console[_0x1315c2(0x127)](_0x1315c2(0x144)+_0x4c1e63[_0x1315c2(0x12d)]),await _0x5a27a2[_0x1315c2(0x100)](sendInstrumentationEvent,_0x19b42a,_0x5a27a2[_0x1315c2(0x135)],messageTypes[_0x1315c2(0x140)],_0x5a27a2['RApSM'],_0x4c1e63,_0x19b42a),process[_0x1315c2(0xfe)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x48c8fb=a16_0x22f6;function a16_0x4834(){const _0x21cae0=['desc','83394ZyoPfa','14ZnMTlT','strict','command','14979382DCihfT','2153256xRxsKP','qiyGp','precheck_commands','6srgHeN','3171788JhwvLs','5WagYrf','5984070FEWLjG','epilogue','1075077SMRvrr','729690wPKCgA','pre_check','help','64TWImgi','pre-check','builder','usage','xjDFU'];a16_0x4834=function(){return _0x21cae0;};return a16_0x4834();}function a16_0x22f6(_0x274a23,_0x2dd367){const _0x483467=a16_0x4834();return a16_0x22f6=function(_0x22f611,_0x3d3428){_0x22f611=_0x22f611-0x87;let _0x44d7c9=_0x483467[_0x22f611];return _0x44d7c9;},a16_0x22f6(_0x274a23,_0x2dd367);}(function(_0x515644,_0x5c6114){const _0x15ec1f=a16_0x22f6,_0xa7aaee=_0x515644();while(!![]){try{const _0x1d3a5d=-parseInt(_0x15ec1f(0x9c))/0x1+-parseInt(_0x15ec1f(0x8f))/0x2*(parseInt(_0x15ec1f(0x8e))/0x3)+parseInt(_0x15ec1f(0x97))/0x4*(-parseInt(_0x15ec1f(0x98))/0x5)+-parseInt(_0x15ec1f(0x96))/0x6*(parseInt(_0x15ec1f(0x93))/0x7)+parseInt(_0x15ec1f(0x88))/0x8*(parseInt(_0x15ec1f(0x9b))/0x9)+parseInt(_0x15ec1f(0x99))/0xa+parseInt(_0x15ec1f(0x92))/0xb;if(_0x1d3a5d===_0x5c6114)break;else _0xa7aaee['push'](_0xa7aaee['shift']());}catch(_0x51293d){_0xa7aaee['push'](_0xa7aaee['shift']());}}}(a16_0x4834,0xd9852));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x48c8fb(0x91)]=a16_0x48c8fb(0x89),exports[a16_0x48c8fb(0x8d)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x48c8fb(0x8a)]=function(_0x2e1230){const _0x3b1f13=a16_0x48c8fb,_0x29552c={};_0x29552c[_0x3b1f13(0x8c)]=_0x3b1f13(0x95),_0x29552c[_0x3b1f13(0x94)]=_0x3b1f13(0x87);const _0x4fcc1d=_0x29552c;return _0x2e1230[_0x3b1f13(0x8b)](HELP_HEADER_MESSAGE[_0x3b1f13(0x9d)])[_0x3b1f13(0x9a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4fcc1d['xjDFU'])['demandCommand']()['recommendCommands']()[_0x3b1f13(0x90)]()[_0x3b1f13(0x87)](_0x4fcc1d[_0x3b1f13(0x94)]);},exports['handler']=function(_0x30b1e6){};
1
+ function a16_0xc243(_0xdbb238,_0x13d5a1){const _0x341988=a16_0x3419();return a16_0xc243=function(_0xc24365,_0x356acb){_0xc24365=_0xc24365-0xf3;let _0x2d9bfd=_0x341988[_0xc24365];return _0x2d9bfd;},a16_0xc243(_0xdbb238,_0x13d5a1);}const a16_0x14f1e4=a16_0xc243;(function(_0x2a718f,_0x1a2cb8){const _0x2bb0db=a16_0xc243,_0x2d1178=_0x2a718f();while(!![]){try{const _0x494fce=-parseInt(_0x2bb0db(0xfb))/0x1+parseInt(_0x2bb0db(0x105))/0x2+-parseInt(_0x2bb0db(0x108))/0x3+-parseInt(_0x2bb0db(0xfa))/0x4+parseInt(_0x2bb0db(0x103))/0x5*(parseInt(_0x2bb0db(0xff))/0x6)+-parseInt(_0x2bb0db(0x101))/0x7+parseInt(_0x2bb0db(0x109))/0x8*(parseInt(_0x2bb0db(0xf9))/0x9);if(_0x494fce===_0x1a2cb8)break;else _0x2d1178['push'](_0x2d1178['shift']());}catch(_0x11fb1f){_0x2d1178['push'](_0x2d1178['shift']());}}}(a16_0x3419,0x5c55d));function a16_0x3419(){const _0x238a0c=['41071HtGHAK','demandCommand','../config/constants','usage','1419576GeltPV','OTYKP','5178600bmizme','command','5zKatJA','recommendCommands','129630iSeaCj','pre-check','pre_check','609474DiSLwv','12164056rMqKor','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','SKmvB','desc','strict','builder','epilogue','commandDir','9PRwgbs','1838736VwMsVQ'];a16_0x3419=function(){return _0x238a0c;};return a16_0x3419();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x14f1e4(0xfd));exports[a16_0x14f1e4(0x102)]=a16_0x14f1e4(0x106),exports[a16_0x14f1e4(0xf4)]=a16_0x14f1e4(0x10a),exports[a16_0x14f1e4(0xf6)]=function(_0xb2da33){const _0x30a56e=a16_0x14f1e4,_0x62b76a={};_0x62b76a[_0x30a56e(0x100)]='precheck_commands',_0x62b76a[_0x30a56e(0xf3)]='help';const _0x248417=_0x62b76a;return _0xb2da33[_0x30a56e(0xfe)](HELP_HEADER_MESSAGE[_0x30a56e(0x107)])[_0x30a56e(0xf7)](HELP_FOOTER_MESSAGE)[_0x30a56e(0xf8)](_0x248417['OTYKP'])[_0x30a56e(0xfc)]()[_0x30a56e(0x104)]()[_0x30a56e(0xf5)]()['help'](_0x248417[_0x30a56e(0xf3)]);},exports['handler']=function(_0x59d3ed){};
@@ -1 +1 @@
1
- function a17_0x1335(){const _0x2c9f40=['10975370JNIRmX','Failed\x20in\x20pre-check!\x20Error:\x20','4tlxbUo','KqNAr','GEkHU','accessResp','writeFileSync','12qNPdks','XwAQy','stack\x20trace\x20','QpOMS','TLSv1_2_client_method','ERROR','645668popJEx','method','`\x20is\x20present\x20in\x20region\x20`','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','info','HPOyc',']\x20status\x20:\x20','blaGL','got','gVlyo','JAeIV','Setting\x20cloud\x20provider\x20as\x20','gridProfile','hvHFH','options','jwkEb','LXOkb','init','LCwfY','uuid','split','Adebv','ntTGV','Error\x20Details:\x0a','BbpKu','UtQHw','readFileSync','dnvYF','authHeader','header','toolInstalledResp','nCwxT','../../cloudproviders/utils','Success','checkAccess','QsUBi','password','grid\x20profile\x20flow\x20','pJvmP','hBCTl','EghiK','rxABK','Failure','isClusterPresent','pre-check-grid-profile-empty','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','leakS','JZtLA','requestId','hijir','3044035CFbdGa','PmORi','wOzOh','getUTCFullYear','jbIQH','iiIND','mLPMD','getUTCMonth','IWxuD','hZecd','cSeov','Ccqem','pre-check','ngSIP','epilogue','clusterName','GkVRX','Status:\x20','hemDv','getUTCMinutes','reconnecting-websocket','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','error\x20stack\x20:\x20','\x20error\x20:\x20','MaMSe','.\x20Please\x20provide\x20all\x20required\x20arguments.','pre-check-failed','argv','length','throwHttpErrors','Grid\x20profile\x20fetched\x20for\x20pre-check','ewEQW','GET','stack','GFIhx','code','QfCLr','builder','AEasR','mJqUv','wbEKC','clusterRegion','data','XguQd','CLOUD_PROVIDER','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Message:\x20','getUTCDate','MZECZ','Cluster\x20`','oXYNB','ufBbH','tbUQp','\x20\x20Code:\x20','xXzoX','OgRkT','help','isTls1_2_SUPPORTED','Whitelisted\x20browserstack','kZZCs','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Invalid\x20input.\x20grid\x20profiles:\x20','qqxJh','QDoxz','Browserstack','KmisN','INFO','NBgqr','\x20\x20Message:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','IJHdi','iQyKc','1587859Zrfelt','WbWyo','VeztO','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','log/report_','spycV','push','SSL\x20Configured','nKLib','yKuUj','sPBTj','===\x20Precheck\x20Report\x20-\x20','eArmN','sendEventToBackend','error','<UsernamePlaceholder>','tJjzb','username','kNqLb','status','hsOPY','xoOZI','description','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','is\x20already\x20present','.txt','grid','231507rCMAtr','/packages/cli/get-all-grid-profiles','cloudProvider','XvdmR','type','toLowerCase','exit','usage','BdrmM','mEQRk','message','Cluster\x20details\x0a-----------------------\x0a','496kwCBMA','`\x20,error\x20:\x20','BeLAK','isCliToolInstalled','Wyvna','cluster-name','PMaLC','WTKug','Eacwd','parse','tarLe','hShzP','wdEjG','OhbUf','FzlNV','response','iUfYg','isTrialGridAccessible','pre-check-cluster-args-not-passed','unable\x20to\x20verify\x20if\x20cluster\x20`','UrmbH','94140GFRfnF','region','tZPgU','\x20\x20Stack:\x20','Tool\x20Installed','cloud-provider','qZuaI','rQXfd','Pre-check\x20running\x20for\x20Cloud\x20-\x20','pre-check-grid-called','grid-profile','N/A','REbtp','pre_check','qkOEJ','User\x20Access','mphlt','stringify','command','qjYzF','Egrpi','Cluster\x20','debug','406059NPxnmP','kUOOt','utf-8','Kmley','handler','delay','LOG','../../utils/webSocketUtils','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','credential-not-found','replace','PnJPw','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','MtWjF','`\x20already\x20exists','\x20data\x20:\x20','ommgA','QZZoy','../../config/constants','WebSocket','ulEbd','OBilW','tOctA','headers','../../utils/utilityMethods','will\x20be\x20created','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','existsSync','ptrBq','bstackUsername','YQjKO'];a17_0x1335=function(){return _0x2c9f40;};return a17_0x1335();}const a17_0x4fa12a=a17_0x352a;function a17_0x352a(_0x19ce8c,_0x489cc5){const _0x1335c5=a17_0x1335();return a17_0x352a=function(_0x352a6f,_0x53bf36){_0x352a6f=_0x352a6f-0x117;let _0x26eb05=_0x1335c5[_0x352a6f];return _0x26eb05;},a17_0x352a(_0x19ce8c,_0x489cc5);}(function(_0x23f5dd,_0x5aff9f){const _0x3f6c33=a17_0x352a,_0x20d53c=_0x23f5dd();while(!![]){try{const _0x50cfe0=parseInt(_0x3f6c33(0x126))/0x1+parseInt(_0x3f6c33(0x152))/0x2+-parseInt(_0x3f6c33(0x1e7))/0x3+parseInt(_0x3f6c33(0x147))/0x4*(parseInt(_0x3f6c33(0x184))/0x5)+parseInt(_0x3f6c33(0x14c))/0x6*(-parseInt(_0x3f6c33(0x1cc))/0x7)+parseInt(_0x3f6c33(0x1f3))/0x8*(parseInt(_0x3f6c33(0x208))/0x9)+-parseInt(_0x3f6c33(0x145))/0xa;if(_0x50cfe0===_0x5aff9f)break;else _0x20d53c['push'](_0x20d53c['shift']());}catch(_0x3a11a0){_0x20d53c['push'](_0x20d53c['shift']());}}}(a17_0x1335,0x575d0));const fs=require('fs'),ws=require('ws'),got=require(a17_0x4fa12a(0x15a)),{v4:uuidv4}=require(a17_0x4fa12a(0x165)),ReconnectingWebSocket=require(a17_0x4fa12a(0x198)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4fa12a(0x13e)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x4fa12a(0x138)),{getCloudProviderObjectWithOutInit}=require(a17_0x4fa12a(0x172)),webSocketUtils=require(a17_0x4fa12a(0x12d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x4fa12a(0x121)]=a17_0x4fa12a(0x1e6),exports['desc']=a17_0x4fa12a(0x12e),exports[a17_0x4fa12a(0x1a9)]=function(_0x9056f){const _0x494226=a17_0x4fa12a,_0x453d2e={};_0x453d2e[_0x494226(0x13c)]=_0x494226(0x155),_0x453d2e['UrmbH']='string',_0x453d2e[_0x494226(0x18d)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x453d2e[_0x494226(0x1c3)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x453d2e['PnJPw']=_0x494226(0x1b1),_0x453d2e[_0x494226(0x19c)]=_0x494226(0x1bc);const _0xdad8ea=_0x453d2e,_0x143183={};_0x143183[_0x494226(0x1e2)]=_0xdad8ea['tOctA'],_0x143183[_0x494226(0x1eb)]=_0xdad8ea[_0x494226(0x207)];const _0x7d1286={};_0x7d1286[_0x494226(0x1e2)]=_0xdad8ea[_0x494226(0x18d)],_0x7d1286[_0x494226(0x1eb)]=_0xdad8ea[_0x494226(0x207)];const _0x188386={};_0x188386['description']=_0xdad8ea[_0x494226(0x1c3)],_0x188386['type']=_0xdad8ea['UrmbH'];const _0x20b0a5={};_0x20b0a5['description']=_0xdad8ea[_0x494226(0x131)],_0x20b0a5[_0x494226(0x1eb)]=_0xdad8ea[_0x494226(0x207)];const _0x5af9f8={};return _0x5af9f8[_0x494226(0x1f8)]=_0x143183,_0x5af9f8[_0x494226(0x20d)]=_0x7d1286,_0x5af9f8[_0x494226(0x209)]=_0x188386,_0x5af9f8['grid-profile']=_0x20b0a5,_0x9056f[_0x494226(0x1ee)](HELP_HEADER_MESSAGE[_0x494226(0x11c)])[_0x494226(0x192)](HELP_FOOTER_MESSAGE)[_0x494226(0x160)](_0x5af9f8)[_0x494226(0x1bc)](_0xdad8ea[_0x494226(0x19c)])[_0x494226(0x19f)];};async function inputValidation(_0x254781,_0xac280b){const _0x977ed2=a17_0x4fa12a,_0x394e16={'tbUQp':_0x977ed2(0x1e4),'yKuUj':_0x977ed2(0x13f),'mEQRk':_0x977ed2(0x20d),'xAVyv':_0x977ed2(0x155),'blaGL':'string','hShzP':_0x977ed2(0x199),'ufBbH':_0x977ed2(0x140),'XwAQy':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','kNqLb':_0x977ed2(0x1bc),'tZPgU':_0x977ed2(0x1cf),'ulEbd':_0x977ed2(0x209),'OhbUf':'Error\x20Details:\x0a','dnvYF':'N/A','XvdmR':_0x977ed2(0x1da),'KmisN':_0x977ed2(0x1f8),'mJqUv':function(_0x229ed8,_0x3bfa67){return _0x229ed8+_0x3bfa67;},'MZECZ':_0x977ed2(0x173),'mmHRF':_0x977ed2(0x17c),'KqNAr':function(_0x2af8b5,_0x18dab2){return _0x2af8b5||_0x18dab2;},'Ccqem':function(_0x417a03,_0x37c53c){return _0x417a03!==_0x37c53c;},'ommgA':_0x977ed2(0x1ef),'JAeIV':function(_0x260775,_0x45517b){return _0x260775===_0x45517b;},'rQXfd':'CsyhZ','SBgHX':_0x977ed2(0x16b),'YQjKO':_0x977ed2(0x1bf),'ntTGV':function(_0x4fcb27,_0x2f417d){return _0x4fcb27!==_0x2f417d;},'lJBgH':'EEzif','FRUKc':_0x977ed2(0x1dc),'MtxKu':function(_0x8ddf1e,_0x161c46){return _0x8ddf1e>_0x161c46;},'QfCLr':_0x977ed2(0x1cd),'ZsAeX':function(_0x38a14f,_0x42c160,_0x2045e2,_0x38a671,_0x5148d9,_0x2fa52b,_0x214185,_0x474e5b){return _0x38a14f(_0x42c160,_0x2045e2,_0x38a671,_0x5148d9,_0x2fa52b,_0x214185,_0x474e5b);},'OgRkT':_0x977ed2(0x118),'bSFEk':_0x977ed2(0x205),'rxABK':function(_0x32c03e,_0x3f46a8){return _0x32c03e===_0x3f46a8;},'wfxuJ':_0x977ed2(0x188),'leakS':_0x977ed2(0x1e3),'Ictxq':function(_0x5d2e5f,_0x40ccc1,_0x1461d9,_0x365561,_0xa57f62,_0x20b53d,_0x3596f9,_0x1581fc){return _0x5d2e5f(_0x40ccc1,_0x1461d9,_0x365561,_0xa57f62,_0x20b53d,_0x3596f9,_0x1581fc);},'Adebv':'cloud-provider-not-supported','Wyvna':function(_0x256291,_0x2b9601){return _0x256291===_0x2b9601;},'NrNti':_0x977ed2(0x16a),'OBilW':_0x977ed2(0x20e),'GkVRX':function(_0x4a8f3b,_0x24ff24){return _0x4a8f3b!==_0x24ff24;},'wOzOh':'uFwNL','VeztO':_0x977ed2(0x1a4),'IWxuD':function(_0x2aadbf,_0x548ea2,_0x4c9073){return _0x2aadbf(_0x548ea2,_0x4c9073);},'XguQd':function(_0xfe0b4d,_0x2381fa,_0x5f3154,_0x3b4ad2,_0x1f6d7a,_0x2d82bf){return _0xfe0b4d(_0x2381fa,_0x5f3154,_0x3b4ad2,_0x1f6d7a,_0x2d82bf);},'hBCTl':_0x977ed2(0x190),'EQOYZ':'grid-profile','WTKug':function(_0x3f6258,_0x4d14d1){return _0x3f6258!==_0x4d14d1;},'QpOMS':'WZDEY','mLPMD':function(_0xcb67f8,_0x1390f5){return _0xcb67f8(_0x1390f5);},'tarLe':function(_0x39a238,_0x14758b){return _0x39a238===_0x14758b;},'TzUaU':_0x977ed2(0x137),'xoOZI':_0x977ed2(0x15f),'hsOPY':function(_0xf80adb,_0x461d84,_0x48aef3,_0x405476,_0x34577c,_0xaae552,_0x25a8ec,_0x566884){return _0xf80adb(_0x461d84,_0x48aef3,_0x405476,_0x34577c,_0xaae552,_0x25a8ec,_0x566884);},'hijir':_0x977ed2(0x17e),'hemDv':function(_0x134669,_0x2855ea){return _0x134669!==_0x2855ea;},'xXzoX':_0x977ed2(0x142),'spycV':function(_0x52b451,_0x26482c){return _0x52b451===_0x26482c;},'Kmley':_0x977ed2(0x1aa),'TqtYh':_0x977ed2(0x1a2),'ZtGYn':function(_0x3d0e4b,_0x3e940f){return _0x3d0e4b!==_0x3e940f;},'iUfYg':'sgQhb','kUOOt':_0x977ed2(0x1fb),'wdEjG':function(_0x1c091b,_0x20e99d){return _0x1c091b===_0x20e99d;},'LXOkb':'AJHpp','XEpxM':function(_0x25b3e7,_0x344025,_0x5c062e,_0x169ee1,_0x5d3030,_0x5d4201,_0x56db58,_0xcdb7ef){return _0x25b3e7(_0x344025,_0x5c062e,_0x169ee1,_0x5d3030,_0x5d4201,_0x56db58,_0xcdb7ef);}};let _0x3cd818;try{if(_0x394e16[_0x977ed2(0x18f)](_0x394e16[_0x977ed2(0x136)],_0x394e16[_0x977ed2(0x136)]))_0x4726e6+='Cluster\x20'+_0x7535a7[_0x977ed2(0x193)]+'\x20'+(_0xbcd467?_0x394e16[_0x977ed2(0x1b8)]:_0x394e16[_0x977ed2(0x1d5)])+'\x0a\x0a';else{if(_0x254781[_0x977ed2(0x193)]||_0x254781['cloudProvider']||_0x254781[_0x977ed2(0x209)]){if(_0x394e16[_0x977ed2(0x15c)](_0x394e16[_0x977ed2(0x20f)],_0x394e16['SBgHX']))_0x2a6639[_0x977ed2(0x1ed)](0x1);else{const _0x493827=[];!_0x254781['clusterName']&&(_0x394e16[_0x977ed2(0x15c)](_0x394e16[_0x977ed2(0x144)],_0x394e16[_0x977ed2(0x144)])?_0x493827[_0x977ed2(0x1d2)](_0x394e16[_0x977ed2(0x1c5)]):_0x4ba63b[_0x977ed2(0x1d2)](_0x394e16[_0x977ed2(0x1f0)]));;if(!_0x254781['cloudProvider']){if(_0x394e16[_0x977ed2(0x168)](_0x394e16['lJBgH'],_0x394e16['lJBgH'])){const _0xc8c15d={};_0xc8c15d['description']=_0x394e16['xAVyv'],_0xc8c15d[_0x977ed2(0x1eb)]=_0x394e16[_0x977ed2(0x159)];const _0x1e2ff5={};_0x1e2ff5[_0x977ed2(0x1e2)]=_0x394e16[_0x977ed2(0x1fe)],_0x1e2ff5[_0x977ed2(0x1eb)]=_0x394e16[_0x977ed2(0x159)];const _0x36bf56={};_0x36bf56[_0x977ed2(0x1e2)]=_0x394e16[_0x977ed2(0x1b7)],_0x36bf56['type']=_0x394e16['blaGL'];const _0x4a206c={};_0x4a206c['description']=_0x394e16[_0x977ed2(0x14d)],_0x4a206c[_0x977ed2(0x1eb)]=_0x394e16[_0x977ed2(0x159)];const _0x2083b2={};return _0x2083b2[_0x977ed2(0x1f8)]=_0xc8c15d,_0x2083b2[_0x977ed2(0x20d)]=_0x1e2ff5,_0x2083b2[_0x977ed2(0x209)]=_0x36bf56,_0x2083b2[_0x977ed2(0x119)]=_0x4a206c,_0x2eb6a0[_0x977ed2(0x1ee)](_0x107aeb['pre_check'])[_0x977ed2(0x192)](_0x3d2f71)[_0x977ed2(0x160)](_0x2083b2)[_0x977ed2(0x1bc)](_0x394e16[_0x977ed2(0x1de)])[_0x977ed2(0x19f)];}else _0x493827[_0x977ed2(0x1d2)](_0x394e16[_0x977ed2(0x1f0)]);};!_0x254781['region']&&(_0x394e16['JAeIV'](_0x394e16['FRUKc'],_0x394e16['FRUKc'])?_0x493827[_0x977ed2(0x1d2)](_0x394e16[_0x977ed2(0x13a)]):(_0x1236ab[_0x977ed2(0x1da)](_0x394e16[_0x977ed2(0x20a)]),_0x5d29fb[_0x977ed2(0x1ed)](0x1)));;_0x394e16['MtxKu'](_0x493827[_0x977ed2(0x1a0)],0x0)&&(_0x394e16['ntTGV'](_0x394e16[_0x977ed2(0x1a8)],_0x394e16['QfCLr'])?(_0x4f9ab7[_0x977ed2(0x156)]('['+_0x5742cd+_0x977ed2(0x158)+_0x2f06b2[_0x977ed2(0x1df)]+_0x977ed2(0x135)+_0x590ef5[_0x977ed2(0x1ae)]+_0x977ed2(0x19b)+_0x295824[_0x977ed2(0x1da)]),_0x15d541[_0x977ed2(0x1da)]&&_0x334716[_0x977ed2(0x1da)](_0x977ed2(0x19a)+_0x368e73[_0x977ed2(0x1da)][_0x977ed2(0x1a5)])):(_0x3cd818='Missing\x20required\x20arguments:\x20'+_0x493827['join'](',\x20')+_0x977ed2(0x19d),await _0x394e16['ZsAeX'](reportToGalactusAndSendToEDS,_0x254781,_0xac280b,_0x3cd818,messageTypes[_0x977ed2(0x151)],_0x394e16[_0x977ed2(0x1bb)],_0x394e16['bSFEk'],_0x394e16[_0x977ed2(0x1ea)]),logger['error'](_0x3cd818),process[_0x977ed2(0x1ed)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x254781['cloudProvider'][_0x977ed2(0x1ec)]())&&(_0x394e16[_0x977ed2(0x17b)](_0x394e16['wfxuJ'],_0x394e16['wfxuJ'])?(_0x3cd818=_0x394e16[_0x977ed2(0x180)],await _0x394e16['Ictxq'](reportToGalactusAndSendToEDS,_0x254781,_0xac280b,_0x3cd818,messageTypes['ERROR'],_0x394e16[_0x977ed2(0x1bb)],_0x394e16[_0x977ed2(0x167)],_0x394e16[_0x977ed2(0x1ea)]),logger[_0x977ed2(0x1da)](_0x3cd818),!_0x254781[_0x977ed2(0x1e9)]&&(_0x394e16[_0x977ed2(0x1f7)](_0x394e16['NrNti'],_0x394e16[_0x977ed2(0x13b)])?_0x127095=_0x39443a:(logger[_0x977ed2(0x156)](_0x977ed2(0x15d)+DEFAULT_CLUSTER_DETAILS[_0x977ed2(0x1b0)]+'\x20'),_0x254781[_0x977ed2(0x1e9)]=DEFAULT_CLUSTER_DETAILS[_0x977ed2(0x1b0)]))):(_0x508e4e['info'](_0x977ed2(0x15d)+_0x4e1dc3[_0x977ed2(0x1b0)]+'\x20'),_0xe2e7d['cloudProvider']=_0x51f306[_0x977ed2(0x1b0)])),global_registry['clusterName']=_0x254781[_0x977ed2(0x193)],global_registry[_0x977ed2(0x1e9)]=_0x254781[_0x977ed2(0x1e9)],global_registry['clusterRegion']=_0x254781['region'];}}else{if(_0x254781[_0x977ed2(0x15e)]){if(_0x394e16[_0x977ed2(0x194)](_0x394e16[_0x977ed2(0x186)],_0x394e16['wOzOh']))_0x3ca901[_0x977ed2(0x1d2)](_0x394e16[_0x977ed2(0x13a)]);else{global_registry['gridProfile']=_0x254781[_0x977ed2(0x15e)],logger['debug'](_0x977ed2(0x177)+_0x254781['gridProfile']);const _0x3393e0='https://'+AG_API_URL+_0x977ed2(0x1e8),_0x1d77f7={};_0x1d77f7[_0x977ed2(0x153)]=_0x394e16[_0x977ed2(0x1ce)],_0x1d77f7[_0x977ed2(0x13d)]=global_registry[_0x977ed2(0x16e)],_0x1d77f7[_0x977ed2(0x1a1)]=![];const _0x18b2a0=_0x1d77f7,_0x392536=await _0x394e16[_0x977ed2(0x18c)](got,_0x3393e0,_0x18b2a0),_0x379df1=await _0x394e16[_0x977ed2(0x1af)](responseValidation,_0x392536,_0x394e16[_0x977ed2(0x179)],_0x394e16['EQOYZ'],_0x254781,_0xac280b);let _0x2eeabf={};if(_0x394e16[_0x977ed2(0x17b)](_0x379df1,0xc8)){if(_0x394e16[_0x977ed2(0x1fa)](_0x394e16[_0x977ed2(0x14f)],_0x394e16[_0x977ed2(0x14f)]))_0x39f76a[_0x977ed2(0x1da)]('error\x20stack\x20:\x20'+_0x273014[_0x977ed2(0x1da)][_0x977ed2(0x1a5)]);else{const _0x3bf509=JSON['parse'](_0x392536['body']),_0x5f08b5=_0x3bf509['find'](_0x1163f4=>_0x1163f4['name']===_0x254781['gridProfile'])||null;if(_0x394e16[_0x977ed2(0x18a)](isUndefined,_0x5f08b5))_0x394e16[_0x977ed2(0x1fd)](_0x394e16['TzUaU'],_0x394e16[_0x977ed2(0x1e1)])?(_0x1d0362+=_0x394e16[_0x977ed2(0x200)],_0x24fc50+=_0x977ed2(0x1c8)+(_0x1e6e96[_0x977ed2(0x1f1)]||_0x394e16[_0x977ed2(0x16d)])+'\x0a',_0x47ad8e+=_0x977ed2(0x1b9)+(_0x567607[_0x977ed2(0x1a7)]||_0x394e16[_0x977ed2(0x16d)])+'\x0a',_0xbaa831+=_0x977ed2(0x20b)+(_0x4fa68c[_0x977ed2(0x1a5)]||_0x394e16[_0x977ed2(0x16d)])+'\x0a'):(_0x3cd818=_0x977ed2(0x1c1)+_0x254781[_0x977ed2(0x15e)]+_0x977ed2(0x1c9),await _0x394e16[_0x977ed2(0x1e0)](reportToGalactusAndSendToEDS,_0x254781,_0xac280b,_0x3cd818,messageTypes[_0x977ed2(0x151)],_0x394e16[_0x977ed2(0x1bb)],_0x394e16[_0x977ed2(0x183)],_0x394e16[_0x977ed2(0x1ea)]),logger['error'](_0x3cd818),process['exit'](0x1));else{if(_0x394e16[_0x977ed2(0x196)](_0x394e16[_0x977ed2(0x1ba)],_0x394e16['xXzoX'])){const _0x1bb136={};_0x1bb136[_0x977ed2(0x1eb)]=_0xe56c7[_0x977ed2(0x12c)],_0x1bb136[_0x977ed2(0x1f1)]=_0x6dd4e0,_0x12b733[_0x977ed2(0x1d9)](_0x40c934,_0x1bb136,_0x394e16[_0x977ed2(0x1ea)],!![]);}else _0x2eeabf=_0x5f08b5;}}}else _0x394e16[_0x977ed2(0x1d1)](_0x394e16[_0x977ed2(0x129)],_0x394e16[_0x977ed2(0x129)])?process['exit'](0x1):_0xc77780[_0x977ed2(0x1d2)](_0x394e16[_0x977ed2(0x1c5)]);const _0x286a65={};_0x286a65[_0x977ed2(0x1eb)]=WS_EVENTS[_0x977ed2(0x12c)],_0x286a65[_0x977ed2(0x1f1)]=_0x394e16['TqtYh'],webSocketUtils[_0x977ed2(0x1d9)](_0xac280b,_0x286a65),global_registry[_0x977ed2(0x1e9)]=_0x2eeabf['cloudProvider'],global_registry[_0x977ed2(0x1ad)]=_0x2eeabf[_0x977ed2(0x209)],global_registry['clusterName']=_0x2eeabf[_0x977ed2(0x193)];}}else _0x394e16['ZtGYn'](_0x394e16[_0x977ed2(0x203)],_0x394e16[_0x977ed2(0x127)])?(logger['error'](_0x394e16[_0x977ed2(0x20a)]),process[_0x977ed2(0x1ed)](0x1)):_0x5b6edb[_0x977ed2(0x156)](_0x977ed2(0x1b5)+_0x204622[_0x977ed2(0x193)]+_0x977ed2(0x134));}}}catch(_0x11a1e8){if(_0x394e16[_0x977ed2(0x1ff)](_0x394e16[_0x977ed2(0x162)],_0x394e16[_0x977ed2(0x162)]))_0x3cd818=_0x977ed2(0x1c0)+_0x11a1e8+':\x20'+_0x11a1e8[_0x977ed2(0x1a5)],logger['error'](_0x3cd818),await _0x394e16['XEpxM'](reportToGalactusAndSendToEDS,_0x254781,_0xac280b,_0x3cd818,messageTypes[_0x977ed2(0x151)],_0x394e16['OgRkT'],_0x394e16[_0x977ed2(0x167)],_0x394e16[_0x977ed2(0x1ea)]),process[_0x977ed2(0x1ed)](0x1);else{const {header:_0x11af0f,response:_0x4f50d0}=_0x4a5963,{status:_0x59ad2e,data:_0x3f71e8,error:_0x456d77}=_0x4f50d0;_0x5457d2+=_0x11af0f+'\x20#'+_0x394e16[_0x977ed2(0x1ab)](_0x164f3a,0x1)+'\x0a',_0x3dad79+=_0x977ed2(0x195)+(_0x59ad2e?_0x394e16[_0x977ed2(0x1b4)]:_0x394e16['mmHRF'])+'\x0a',_0x1da609+=_0x977ed2(0x1b2)+_0x394e16[_0x977ed2(0x148)](_0x3f71e8,_0x394e16['dnvYF'])+'\x0a',_0x456d77&&(_0x152ac4+=_0x394e16[_0x977ed2(0x200)],_0x3ff9e9+=_0x977ed2(0x1c8)+(_0x456d77[_0x977ed2(0x1f1)]||_0x394e16[_0x977ed2(0x16d)])+'\x0a',_0x8c8176+='\x20\x20Code:\x20'+(_0x456d77[_0x977ed2(0x1a7)]||_0x394e16[_0x977ed2(0x16d)])+'\x0a',_0x153e88+='\x20\x20Stack:\x20'+(_0x456d77[_0x977ed2(0x1a5)]||_0x394e16[_0x977ed2(0x16d)])+'\x0a'),_0x4f08d0+='\x0a\x0a';}}}function printResponse(_0x17d9e6,_0x2748ff){const _0x1af7ef=a17_0x4fa12a,_0x62164d={};_0x62164d[_0x1af7ef(0x191)]=function(_0x559df5,_0x22121){return _0x559df5!==_0x22121;},_0x62164d[_0x1af7ef(0x1d4)]='xqhlj';const _0x4f5dc2=_0x62164d;logger[_0x1af7ef(0x156)]('['+_0x17d9e6+_0x1af7ef(0x158)+_0x2748ff['status']+_0x1af7ef(0x135)+_0x2748ff[_0x1af7ef(0x1ae)]+_0x1af7ef(0x19b)+_0x2748ff[_0x1af7ef(0x1da)]),_0x2748ff[_0x1af7ef(0x1da)]&&(_0x4f5dc2[_0x1af7ef(0x191)](_0x4f5dc2[_0x1af7ef(0x1d4)],_0x4f5dc2[_0x1af7ef(0x1d4)])?_0x509916+=_0x1af7ef(0x124)+_0x2cf59a[_0x1af7ef(0x193)]+_0x1af7ef(0x132):logger[_0x1af7ef(0x1da)](_0x1af7ef(0x19a)+_0x2748ff[_0x1af7ef(0x1da)][_0x1af7ef(0x1a5)]));}async function generateReport(_0x12cfee,_0xe8caa6){const _0x30df92=a17_0x4fa12a,_0x92479d={'PMaLC':function(_0x26bd8b,_0x1092cf){return _0x26bd8b+_0x1092cf;},'wGPly':_0x30df92(0x173),'gVlyo':_0x30df92(0x17c),'lNutY':function(_0x3754c5,_0x55af2c){return _0x3754c5||_0x55af2c;},'ewEQW':_0x30df92(0x11a),'cSeov':_0x30df92(0x169),'LJoZo':_0x30df92(0x1f2),'GFIhx':function(_0x4237e7,_0xaf9d0e){return _0x4237e7!=_0xaf9d0e;},'hrBdN':'is\x20already\x20present','EghiK':_0x30df92(0x13f),'GEkHU':function(_0x395e1b){return _0x395e1b();}};let _0x16cc70=_0x30df92(0x1d7)+global_registry[_0x30df92(0x1e9)]+'\x20===\x0a\x0a';return _0x12cfee['forEach']((_0x88311f,_0x5357a7)=>{const _0x41873f=_0x30df92,{header:_0x20a7bb,response:_0xffa7dd}=_0x88311f,{status:_0x21f902,data:_0x5e4372,error:_0x5b9ae8}=_0xffa7dd;_0x16cc70+=_0x20a7bb+'\x20#'+_0x92479d[_0x41873f(0x1f9)](_0x5357a7,0x1)+'\x0a',_0x16cc70+=_0x41873f(0x195)+(_0x21f902?_0x92479d['wGPly']:_0x92479d[_0x41873f(0x15b)])+'\x0a',_0x16cc70+=_0x41873f(0x1b2)+_0x92479d['lNutY'](_0x5e4372,_0x92479d[_0x41873f(0x1a3)])+'\x0a',_0x5b9ae8&&(_0x16cc70+=_0x92479d[_0x41873f(0x18e)],_0x16cc70+=_0x41873f(0x1c8)+(_0x5b9ae8[_0x41873f(0x1f1)]||_0x92479d['ewEQW'])+'\x0a',_0x16cc70+=_0x41873f(0x1b9)+(_0x5b9ae8[_0x41873f(0x1a7)]||_0x92479d[_0x41873f(0x1a3)])+'\x0a',_0x16cc70+=_0x41873f(0x20b)+(_0x5b9ae8['stack']||_0x92479d[_0x41873f(0x1a3)])+'\x0a'),_0x16cc70+='\x0a\x0a';}),_0x16cc70+=_0x92479d['LJoZo'],_0x92479d[_0x30df92(0x1a6)](_0xe8caa6,null)?_0x16cc70+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0xe8caa6?_0x92479d['hrBdN']:_0x92479d[_0x30df92(0x17a)])+'\x0a\x0a':_0x16cc70+=_0x30df92(0x124)+global_registry[_0x30df92(0x193)]+_0x30df92(0x132),_0x16cc70+=_0x92479d[_0x30df92(0x149)](getSystemMetaData),_0x16cc70;};exports[a17_0x4fa12a(0x12a)]=async function(_0x3eebe4){const _0xcf9cc4=a17_0x4fa12a,_0x10ae40={'xoLya':function(_0x5d7fef){return _0x5d7fef();},'hmcwL':function(_0x4737a5){return _0x4737a5();},'wbEKC':_0xcf9cc4(0x17f),'qjYzF':function(_0x415449,_0x1d7dd7,_0x1c3be6,_0x2d3b03,_0x864502,_0x36de79,_0x4a65d6,_0x3c7c54){return _0x415449(_0x1d7dd7,_0x1c3be6,_0x2d3b03,_0x864502,_0x36de79,_0x4a65d6,_0x3c7c54);},'LCwfY':_0xcf9cc4(0x118),'sPBTj':_0xcf9cc4(0x12f),'REbtp':'error','Egrpi':function(_0x3a7f70,_0x2a751f,_0x762559,_0x92de7e,_0x498a5f,_0x1d0d1b,_0x4570a5){return _0x3a7f70(_0x2a751f,_0x762559,_0x92de7e,_0x498a5f,_0x1d0d1b,_0x4570a5);},'iQyKc':_0xcf9cc4(0x1db),'YfMsG':'<PasswordPlaceholder>','HPOyc':function(_0x599841,_0x525d34,_0x350dcf){return _0x599841(_0x525d34,_0x350dcf);},'iiIND':function(_0x40875c,_0x34584c,_0x10b783,_0x25986f,_0x2926cc,_0x5f2695,_0x4dccfe){return _0x40875c(_0x34584c,_0x10b783,_0x25986f,_0x2926cc,_0x5f2695,_0x4dccfe);},'BeLAK':'dummy-grid','xXofM':_0xcf9cc4(0x170),'eArmN':'2|0|4|3|1','JZtLA':function(_0x4abaf7,_0x2d2e5b,_0x1e441c,_0x2bce7,_0x236474,_0x595e48,_0x4a1a36,_0x5ddc7a){return _0x4abaf7(_0x2d2e5b,_0x1e441c,_0x2bce7,_0x236474,_0x595e48,_0x4a1a36,_0x5ddc7a);},'qqxJh':function(_0xc31d54,_0x54fe59,_0x5b51f1){return _0xc31d54(_0x54fe59,_0x5b51f1);},'qkOEJ':_0xcf9cc4(0x14a),'MtWjF':function(_0x58a4b4){return _0x58a4b4();},'jwkEb':_0xcf9cc4(0x204),'QsUBi':function(_0x16eb3a,_0x37f8b3){return _0x16eb3a(_0x37f8b3);},'IJHdi':_0xcf9cc4(0x150),'uykgz':_0xcf9cc4(0x1bd),'mphlt':_0xcf9cc4(0x20c),'nCwxT':_0xcf9cc4(0x11e),'pJvmP':_0xcf9cc4(0x1be),'FzlNV':_0xcf9cc4(0x1d3),'gYpaL':function(_0x12592f,_0x4219ed,_0x137409){return _0x12592f(_0x4219ed,_0x137409);},'PmORi':function(_0x1a7627,_0x12f92f){return _0x1a7627+_0x12f92f;},'oXYNB':_0xcf9cc4(0x128),'HKuma':function(_0x493ae8,_0x58028e,_0x47d36c,_0x1aef97,_0x2c14e5,_0x15a5c6,_0x2985bd){return _0x493ae8(_0x58028e,_0x47d36c,_0x1aef97,_0x2c14e5,_0x15a5c6,_0x2985bd);},'NBgqr':_0xcf9cc4(0x19e)};let _0x257b9e,_0x83294c;try{global_registry[_0xcf9cc4(0x182)]=_0x10ae40['xoLya'](uuidv4);!fs[_0xcf9cc4(0x141)](_0x10ae40['hmcwL'](getCredentialsPath))&&(_0x83294c=_0x10ae40[_0xcf9cc4(0x1ac)],logger['error'](_0x83294c),await _0x10ae40[_0xcf9cc4(0x122)](reportToGalactusAndSendToEDS,_0x3eebe4,_0x257b9e,_0x83294c,messageTypes[_0xcf9cc4(0x151)],_0x10ae40[_0xcf9cc4(0x164)],_0x10ae40[_0xcf9cc4(0x1d6)],_0x10ae40['REbtp']),process[_0xcf9cc4(0x1ed)](0x1));_0x10ae40[_0xcf9cc4(0x123)](sendInstrumentationEvent,_0x3eebe4,_0x10ae40[_0xcf9cc4(0x164)],messageTypes[_0xcf9cc4(0x1c6)],null,null,_0x3eebe4);const _0x3dbce4=JSON[_0xcf9cc4(0x1fc)](fs[_0xcf9cc4(0x16c)](_0x10ae40['xoLya'](getCredentialsPath)));global_registry[_0xcf9cc4(0x143)]=_0x3dbce4['Browserstack'][_0xcf9cc4(0x1dd)],global_registry['bstackAccesskey']=_0x3dbce4[_0xcf9cc4(0x1c4)]['password'];const _0x3e9592=WS_ENDPOINT['replace'](_0x10ae40[_0xcf9cc4(0x1cb)],_0x3dbce4[_0xcf9cc4(0x1c4)][_0xcf9cc4(0x1dd)])[_0xcf9cc4(0x130)](_0x10ae40['YfMsG'],_0x3dbce4['Browserstack'][_0xcf9cc4(0x176)]),_0x3715fa={};_0x3715fa[_0xcf9cc4(0x139)]=ws,_0x3715fa['connectionTimeout']=0x36ee80,_0x257b9e=new ReconnectingWebSocket(_0x3e9592,[],_0x3715fa),global_registry[_0xcf9cc4(0x16e)]=_0x10ae40[_0xcf9cc4(0x157)](getAuthHeader,global_registry[_0xcf9cc4(0x143)],global_registry['bstackAccesskey']),await _0x10ae40['HPOyc'](inputValidation,_0x3eebe4,_0x257b9e),logger[_0xcf9cc4(0x156)](_0xcf9cc4(0x117)+global_registry[_0xcf9cc4(0x1e9)]+'\x20region\x20-\x20'+global_registry[_0xcf9cc4(0x1ad)]);let _0x5ef09d=await _0x10ae40[_0xcf9cc4(0x189)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0xcf9cc4(0x193)],_0x10ae40[_0xcf9cc4(0x1f5)],_0x257b9e,webSocketUtils,_0x3eebe4);const _0x8f57e5=await _0x5ef09d[_0xcf9cc4(0x1f6)]();_0x10ae40['HPOyc'](printResponse,_0x10ae40['xXofM'],_0x8f57e5),_0x5ef09d=await _0x5ef09d[_0xcf9cc4(0x163)]();let _0x114fa6=![];try{_0x114fa6=await _0x5ef09d[_0xcf9cc4(0x17d)]();}catch(_0xb45871){const _0x3b1dd1=_0x10ae40[_0xcf9cc4(0x1d8)][_0xcf9cc4(0x166)]('|');let _0x5c72e3=0x0;while(!![]){switch(_0x3b1dd1[_0x5c72e3++]){case'0':_0x114fa6=null;continue;case'1':await _0x10ae40[_0xcf9cc4(0x181)](reportToGalactusAndSendToEDS,_0x3eebe4,_0x257b9e,_0x83294c,messageTypes[_0xcf9cc4(0x151)],_0x10ae40[_0xcf9cc4(0x164)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x10ae40[_0xcf9cc4(0x11b)]);continue;case'2':_0x83294c=_0xcf9cc4(0x206)+global_registry[_0xcf9cc4(0x193)]+_0xcf9cc4(0x154)+global_registry[_0xcf9cc4(0x1ad)]+_0xcf9cc4(0x1f4)+_0xb45871;continue;case'3':_0x83294c+='\x0a'+JSON[_0xcf9cc4(0x120)](_0xb45871['stack']);continue;case'4':logger[_0xcf9cc4(0x1da)](_0x83294c);continue;}break;}}_0x114fa6&&logger['info'](_0xcf9cc4(0x1b5)+global_registry[_0xcf9cc4(0x193)]+_0xcf9cc4(0x134));const _0x54ab27=await _0x5ef09d[_0xcf9cc4(0x174)]();_0x10ae40['qqxJh'](printResponse,_0x10ae40[_0xcf9cc4(0x11d)],_0x54ab27);const _0x4cfaa5=await _0x10ae40[_0xcf9cc4(0x133)](curlRequest);_0x10ae40[_0xcf9cc4(0x1c2)](printResponse,_0x10ae40[_0xcf9cc4(0x161)],_0x4cfaa5);const _0x174426=await _0x10ae40[_0xcf9cc4(0x175)](isTlsSupported,_0x10ae40[_0xcf9cc4(0x1ca)]);_0x10ae40['HPOyc'](printResponse,_0x10ae40['uykgz'],_0x174426);const _0x229fde={};_0x229fde['header']=_0x10ae40[_0xcf9cc4(0x11f)],_0x229fde[_0xcf9cc4(0x202)]=_0x8f57e5;const _0x20dfcc={};_0x20dfcc['header']=_0x10ae40[_0xcf9cc4(0x171)],_0x20dfcc[_0xcf9cc4(0x202)]=_0x54ab27;const _0x40a92c={};_0x40a92c['header']=_0x10ae40[_0xcf9cc4(0x178)],_0x40a92c[_0xcf9cc4(0x202)]=_0x4cfaa5;const _0xeb511c={};_0xeb511c[_0xcf9cc4(0x16f)]=_0x10ae40[_0xcf9cc4(0x201)],_0xeb511c[_0xcf9cc4(0x202)]=_0x174426;const _0x4606a8=[_0x229fde,_0x20dfcc,_0x40a92c,_0xeb511c],_0x14d0fc=await _0x10ae40['gYpaL'](generateReport,_0x4606a8,_0x114fa6),_0x28b4a9=new Date(),_0x324bb5=_0x28b4a9[_0xcf9cc4(0x187)]()+'_'+_0x10ae40[_0xcf9cc4(0x185)](_0x28b4a9[_0xcf9cc4(0x18b)](),0x1)+'_'+_0x28b4a9[_0xcf9cc4(0x1b3)]()+'_'+_0x28b4a9['getUTCHours']()+'_'+_0x28b4a9[_0xcf9cc4(0x197)](),_0x33431e=_0xcf9cc4(0x1d0)+_0x324bb5+_0xcf9cc4(0x1e5);fs[_0xcf9cc4(0x14b)](_0x33431e,_0x14d0fc,_0x10ae40[_0xcf9cc4(0x1b6)]),logger[_0xcf9cc4(0x156)]('Report\x20saved\x20in\x20'+_0x33431e),process['exit'](0x0);}catch(_0x47dea4){let _0x1e4eef=_0xcf9cc4(0x146)+_0x47dea4+'\x20';logger[_0xcf9cc4(0x1da)](_0x1e4eef),_0x1e4eef+='\x0a'+JSON['stringify'](_0x47dea4[_0xcf9cc4(0x1a5)]),logger[_0xcf9cc4(0x125)](_0xcf9cc4(0x14e)+_0x47dea4[_0xcf9cc4(0x1a5)]);if(_0x257b9e){const _0xbc9f1f={};_0xbc9f1f[_0xcf9cc4(0x1eb)]=WS_EVENTS[_0xcf9cc4(0x12c)],_0xbc9f1f[_0xcf9cc4(0x1f1)]=_0x1e4eef,webSocketUtils['sendEventToBackend'](_0x257b9e,_0xbc9f1f,_0x10ae40['REbtp'],!![]);}await webSocketUtils[_0xcf9cc4(0x12b)](0x7d0);const _0x1e1e83={};_0x1e1e83[_0xcf9cc4(0x1da)]=_0x1e4eef,await _0x10ae40['HKuma'](sendInstrumentationEvent,_0x3eebe4,_0x10ae40['LCwfY'],messageTypes[_0xcf9cc4(0x151)],_0x10ae40[_0xcf9cc4(0x1c7)],_0x1e1e83,_0x3eebe4),process[_0xcf9cc4(0x1ed)](0x1);}};
1
+ function a17_0x37b6(){const _0x5bd4e5=['xBFqU','qrAGC','code','xUory','DCcQi','fuECM','Failed\x20in\x20pre-check!\x20Error:\x20','ebqAm','Setting\x20cloud\x20provider\x20as\x20','ePaLs','../../config/constants','length','Missing\x20required\x20arguments:\x20','SSL\x20Configured','byRMu','XXyDo',']\x20status\x20:\x20','PiFtF','Whitelisted\x20browserstack','faUKH','njkUF','gKIEO','fNrpQ','LOG','.txt','WrrQH','\x20\x20Stack:\x20','nIXir','connectionTimeout','accessResp','LlVyF','2277188yZzvNa','FOWWu','password','8uhIthh','Qnokw','hrymn','N/A','RhRCP','stringify','NfuiN','qzsxx','EfAyo','XTVaJ','hizGL','RkkJT','PsCRD','Grid\x20profile\x20fetched\x20for\x20pre-check','zSThC','https://','10eQsEMA','\x20\x20Code:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','is\x20already\x20present','PZbDb','usage','oXOaN','cloudProvider','Cluster\x20`','weaHi','`\x20already\x20exists','shwsH','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','KXdBZ','Browserstack','HjVHr','sDNjF','VATVA','ylHlV','argv','getUTCHours','pre-check-grid-called','eTJoV','reconnecting-websocket','gAKXq','unable\x20to\x20verify\x20if\x20cluster\x20`','XkcME','readFileSync','lTibo','throwHttpErrors','delay','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','replace','vpNCT','\x20region\x20-\x20','ZCJld','IkCTB','dummy-grid','builder','epilogue','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','15785181UKKidd','toLowerCase','aTGKN','.\x20Please\x20provide\x20all\x20required\x20arguments.','push','ECbYt','pPgZI','isTrialGridAccessible','clusterName','xyRog','data','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','getUTCFullYear','owJze','rtUqU','Cluster\x20details\x0a-----------------------\x0a','message','forEach','lmDnM','NrerO','cqdqT','requestId','init','kMOYr','aUSkV','help','cluster-check-failed-','2359641jAfOyG','RcGpi','KLhkm','\x20error\x20:\x20','body','\x20===\x0a\x0a','tSYGQ','../../utils/webSocketUtils','sInNr','KEwch','utf-8','type','string','crqzT','status','IzXpe','stack','got','clusterRegion','WuBcm','lyzFz','CaFmZ','GET','pre-check-grid-profile-empty','Tool\x20Installed','126734vrGByc','1915242DgcASG','2930045repXUN','JKfyx','bstackAccesskey','bstackUsername','ITMcr','6bdsVGc','ddTRP','gwbPn','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pre-check','cloud-provider','LgZbZ','pre-check-cluster-args-not-passed','ERROR','aRcDX','xnwBV','info','uuid','description','authHeader','parse','PNjUN','UiHNw','Message:\x20','isCliToolInstalled','PrOyX','error','cluster-name','wmSEt','HbJed','Pre-check\x20running\x20for\x20Cloud\x20-\x20','isTls1_2_SUPPORTED','NArZp','handler','OWSqg','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','uDGmU','WzDnu','VBsWr','grid\x20profile\x20flow\x20','jNgMN','oZtou','hTPOD','sendEventToBackend','grid-profile','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','CRGMc','YSkUP','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','error\x20stack\x20:\x20','icKov','oAQec','Error\x20Details:\x0a','gridProfile','cwryd','username','log/report_','getUTCMonth','eEOxo','JxgxT','GGhGX','<UsernamePlaceholder>','nllOw','rTUpL','options','exit','ojXNH','WebSocket','includes','yeNqN','header','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Fivcf','UNlpI','nlWKz','region','Cluster\x20','mbvbI','cSYyL','\x20\x20Message:\x20','mRICE','nVMUc','esVHu','22UYyfbI','fQWnN','/packages/cli/get-all-grid-profiles','existsSync','Success','PjIJS','will\x20be\x20created','TLSv1_2_client_method','`\x20is\x20present\x20in\x20region\x20`','KAYQO','wPtBY','response','DyJSU','grid','Failure','getUTCDate','UyVlM','toolInstalledResp','uJdpf','getUTCMinutes','KrLHG','<PasswordPlaceholder>','SUIDF','CLOUD_PROVIDER','4261670aYzWlG','eYKQB','KLFpT','CJugD','\x20data\x20:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a17_0x37b6=function(){return _0x5bd4e5;};return a17_0x37b6();}const a17_0x241156=a17_0x4ca2;(function(_0x14588d,_0x179845){const _0x268d35=a17_0x4ca2,_0x4187cb=_0x14588d();while(!![]){try{const _0x5dae4f=parseInt(_0x268d35(0x1bb))/0x1*(-parseInt(_0x268d35(0x260))/0x2)+-parseInt(_0x268d35(0x2a4))/0x3+-parseInt(_0x268d35(0x24d))/0x4+-parseInt(_0x268d35(0x1bd))/0x5*(-parseInt(_0x268d35(0x1c2))/0x6)+-parseInt(_0x268d35(0x1bc))/0x7+-parseInt(_0x268d35(0x250))/0x8*(-parseInt(_0x268d35(0x289))/0x9)+parseInt(_0x268d35(0x228))/0xa*(parseInt(_0x268d35(0x210))/0xb);if(_0x5dae4f===_0x179845)break;else _0x4187cb['push'](_0x4187cb['shift']());}catch(_0x3d5d45){_0x4187cb['push'](_0x4187cb['shift']());}}}(a17_0x37b6,0xe2d6c));const fs=require('fs'),ws=require('ws'),got=require(a17_0x241156(0x2b5)),{v4:uuidv4}=require(a17_0x241156(0x1ce)),ReconnectingWebSocket=require(a17_0x241156(0x277)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x241156(0x238)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x241156(0x2ab)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a17_0x241156(0x21d),exports['desc']=a17_0x241156(0x204),exports[a17_0x241156(0x286)]=function(_0x260a68){const _0x31dd4d=a17_0x241156,_0x5ef273={};_0x5ef273[_0x31dd4d(0x25c)]=_0x31dd4d(0x262),_0x5ef273[_0x31dd4d(0x207)]='string',_0x5ef273[_0x31dd4d(0x235)]=_0x31dd4d(0x294),_0x5ef273['ITMcr']=_0x31dd4d(0x288),_0x5ef273['xBFqU']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5ef273['sInNr']=_0x31dd4d(0x2a2);const _0x125381=_0x5ef273,_0x2f6c8e={};_0x2f6c8e[_0x31dd4d(0x1cf)]=_0x125381['PsCRD'],_0x2f6c8e[_0x31dd4d(0x2af)]=_0x125381['nlWKz'];const _0x2f16d9={};_0x2f16d9[_0x31dd4d(0x1cf)]=_0x125381['ebqAm'],_0x2f16d9[_0x31dd4d(0x2af)]=_0x125381[_0x31dd4d(0x207)];const _0xf1b063={};_0xf1b063[_0x31dd4d(0x1cf)]=_0x125381[_0x31dd4d(0x1c1)],_0xf1b063[_0x31dd4d(0x2af)]=_0x125381[_0x31dd4d(0x207)];const _0x599475={};_0x599475[_0x31dd4d(0x1cf)]=_0x125381[_0x31dd4d(0x22e)],_0x599475[_0x31dd4d(0x2af)]=_0x125381[_0x31dd4d(0x207)];const _0x50fe54={};return _0x50fe54[_0x31dd4d(0x1d8)]=_0x2f6c8e,_0x50fe54[_0x31dd4d(0x1c7)]=_0x2f16d9,_0x50fe54['region']=_0xf1b063,_0x50fe54[_0x31dd4d(0x1e9)]=_0x599475,_0x260a68[_0x31dd4d(0x265)](HELP_HEADER_MESSAGE['pre_check'])[_0x31dd4d(0x287)](HELP_FOOTER_MESSAGE)['options'](_0x50fe54)[_0x31dd4d(0x2a2)](_0x125381[_0x31dd4d(0x2ac)])[_0x31dd4d(0x273)];};function a17_0x4ca2(_0x59f920,_0x2bea41){const _0x37b63a=a17_0x37b6();return a17_0x4ca2=function(_0x4ca2d5,_0x1d8664){_0x4ca2d5=_0x4ca2d5-0x1bb;let _0x455d95=_0x37b63a[_0x4ca2d5];return _0x455d95;},a17_0x4ca2(_0x59f920,_0x2bea41);}async function inputValidation(_0x2f3937,_0x2bf831){const _0x104c42=a17_0x241156,_0x2f680a={'weaHi':_0x104c42(0x1d7),'mbvbI':function(_0xa5a54a,_0x56df89){return _0xa5a54a+_0x56df89;},'nFjnp':_0x104c42(0x214),'xUory':_0x104c42(0x21e),'XXyDo':function(_0x2286e4,_0xc6cc47){return _0x2286e4||_0xc6cc47;},'ojXNH':'N/A','sDNjF':'Error\x20Details:\x0a','PjIJS':_0x104c42(0x26c),'VBsWr':_0x104c42(0x262),'uDGmU':_0x104c42(0x2b0),'QwDOT':_0x104c42(0x294),'KLhkm':_0x104c42(0x288),'oAQec':_0x104c42(0x1c5),'pIViq':'help','rtUqU':'region','UNlpI':_0x104c42(0x1c7),'ylHlV':_0x104c42(0x263),'DCcQi':_0x104c42(0x216),'ePaLs':_0x104c42(0x1d8),'rTUpL':function(_0x127d28,_0x127e2d){return _0x127d28!==_0x127e2d;},'qzsxx':'YemGR','hTPOD':'FCaab','faUKH':_0x104c42(0x1ec),'QAPkZ':_0x104c42(0x1eb),'PNjUN':'FjwxJ','ddTRP':function(_0x452d3e,_0x290be5){return _0x452d3e===_0x290be5;},'uJdpf':_0x104c42(0x26b),'KXdBZ':function(_0x4bd8bb,_0x276c81){return _0x4bd8bb!==_0x276c81;},'pPgZI':_0x104c42(0x26f),'QhXZv':function(_0xb08edc,_0x5a2b5e){return _0xb08edc>_0x5a2b5e;},'lTibo':_0x104c42(0x2a0),'eYKQB':_0x104c42(0x20f),'njkUF':function(_0x2e1281,_0x433656,_0x2ecc93,_0x4f64ff,_0x99587f,_0x4900df,_0x1b6219,_0x573559){return _0x2e1281(_0x433656,_0x2ecc93,_0x4f64ff,_0x99587f,_0x4900df,_0x1b6219,_0x573559);},'IzXpe':_0x104c42(0x275),'NrerO':_0x104c42(0x1c9),'IzKjF':function(_0x10cade,_0xd0af02){return _0x10cade===_0xd0af02;},'SUIDF':'RibEZ','CJugD':_0x104c42(0x1f3),'iixCu':_0x104c42(0x1e0),'KEwch':'cloud-provider-not-supported','LgZbZ':function(_0x5b5e7f,_0x3aa1c0){return _0x5b5e7f!==_0x3aa1c0;},'XTVaJ':'VWpzH','UiHNw':'QEhFR','tSYGQ':'CVqJI','UlIOd':_0x104c42(0x233),'OWSqg':_0x104c42(0x2ba),'PHXfW':function(_0x9aedf1,_0x393525,_0x366b35){return _0x9aedf1(_0x393525,_0x366b35);},'CaFmZ':function(_0x18c485,_0x2d24c8,_0x38d796,_0xcaac2c,_0x1faa02,_0x1adee1){return _0x18c485(_0x2d24c8,_0x38d796,_0xcaac2c,_0x1faa02,_0x1adee1);},'wmSEt':_0x104c42(0x1c6),'JxgxT':_0x104c42(0x1e9),'lyzFz':function(_0x3e3e10,_0x2762b1){return _0x3e3e10===_0x2762b1;},'KLFpT':function(_0x55d631,_0x3776e8){return _0x55d631!==_0x3776e8;},'aTGKN':_0x104c42(0x21c),'IkCTB':_0x104c42(0x224),'nllOw':function(_0x53cbfd,_0x2e977f){return _0x53cbfd(_0x2e977f);},'WzDnu':function(_0x4b0747,_0xbe3d98){return _0x4b0747!==_0xbe3d98;},'xMFPX':_0x104c42(0x244),'HbJed':'BWzxd','byRMu':function(_0xacea8,_0x9149c8,_0x5b76c8,_0x275b72,_0x1c68ad,_0x4ca562,_0x34b29e,_0x207e45){return _0xacea8(_0x9149c8,_0x5b76c8,_0x275b72,_0x1c68ad,_0x4ca562,_0x34b29e,_0x207e45);},'EfAyo':_0x104c42(0x2bb),'gwbPn':function(_0x117b0c,_0x1c5a8e){return _0x117b0c===_0x1c5a8e;},'oXOaN':_0x104c42(0x271),'gKIEO':'GeIYH','RhRCP':function(_0x14ec7e,_0x4db3f5){return _0x14ec7e!==_0x4db3f5;},'hizGL':_0x104c42(0x2b7),'jNgMN':_0x104c42(0x25d),'oZtou':function(_0xbec642,_0xdd06ac){return _0xbec642!==_0xdd06ac;},'YRbNC':'IYkSU','DhDOx':_0x104c42(0x25e),'ECbYt':_0x104c42(0x283),'PrOyX':function(_0x4084c7,_0x4a2c40,_0x10a987,_0x2344be,_0x397ca6,_0x47c1ef,_0xf6083b,_0xc3bd8c){return _0x4084c7(_0x4a2c40,_0x10a987,_0x2344be,_0x397ca6,_0x47c1ef,_0xf6083b,_0xc3bd8c);}};let _0x2da15a;try{if(_0x2f680a[_0x104c42(0x1fc)](_0x2f680a[_0x104c42(0x257)],_0x2f680a[_0x104c42(0x257)])){const _0x452775={};_0x452775[_0x104c42(0x2af)]=_0x5b9aca[_0x104c42(0x245)],_0x452775[_0x104c42(0x299)]=_0x11e7b6,_0x194366[_0x104c42(0x1e8)](_0x29c7c1,_0x452775,_0x2f680a['weaHi'],!![]);}else{if(_0x2f3937[_0x104c42(0x291)]||_0x2f3937[_0x104c42(0x267)]||_0x2f3937['region']){if(_0x2f680a[_0x104c42(0x1fc)](_0x2f680a[_0x104c42(0x1e7)],_0x2f680a[_0x104c42(0x241)])){const _0x1cfc9d=[];if(!_0x2f3937['clusterName']){if(_0x2f680a['rTUpL'](_0x2f680a['QAPkZ'],_0x2f680a[_0x104c42(0x1d2)]))_0x1cfc9d[_0x104c42(0x28d)](_0x2f680a['ePaLs']);else{const {header:_0x4ac350,response:_0x315c7f}=_0x9215d9,{status:_0x3ce8a7,data:_0x3e4d5e,error:_0x4459a7}=_0x315c7f;_0x27c885+=_0x4ac350+'\x20#'+_0x2f680a[_0x104c42(0x20a)](_0x1e2694,0x1)+'\x0a',_0x1cb80e+='Status:\x20'+(_0x3ce8a7?_0x2f680a['nFjnp']:_0x2f680a[_0x104c42(0x231)])+'\x0a',_0x213aed+=_0x104c42(0x1d4)+_0x2f680a[_0x104c42(0x23d)](_0x3e4d5e,_0x2f680a[_0x104c42(0x1ff)])+'\x0a',_0x4459a7&&(_0x446e46+=_0x2f680a[_0x104c42(0x270)],_0x1d6781+=_0x104c42(0x20c)+(_0x4459a7[_0x104c42(0x299)]||_0x2f680a[_0x104c42(0x1ff)])+'\x0a',_0x561f36+=_0x104c42(0x261)+(_0x4459a7[_0x104c42(0x230)]||_0x2f680a[_0x104c42(0x1ff)])+'\x0a',_0x3cc6c3+=_0x104c42(0x248)+(_0x4459a7[_0x104c42(0x2b4)]||_0x2f680a[_0x104c42(0x1ff)])+'\x0a'),_0x42d25c+='\x0a\x0a';}};!_0x2f3937['cloudProvider']&&(_0x2f680a[_0x104c42(0x1c3)](_0x2f680a['uJdpf'],_0x2f680a[_0x104c42(0x222)])?_0x1cfc9d[_0x104c42(0x28d)](_0x2f680a['UNlpI']):(_0x1bde6f[_0x104c42(0x1d7)](_0x2f680a['PjIJS']),_0x1d46e3[_0x104c42(0x1fe)](0x1)));;if(!_0x2f3937[_0x104c42(0x208)]){if(_0x2f680a[_0x104c42(0x26d)](_0x2f680a[_0x104c42(0x28f)],_0x2f680a[_0x104c42(0x28f)])){const _0x52acff={};_0x52acff[_0x104c42(0x1cf)]=_0x2f680a[_0x104c42(0x1e3)],_0x52acff[_0x104c42(0x2af)]=_0x2f680a['uDGmU'];const _0x76169={};_0x76169[_0x104c42(0x1cf)]=_0x2f680a['QwDOT'],_0x76169[_0x104c42(0x2af)]=_0x2f680a[_0x104c42(0x1e1)];const _0x57f747={};_0x57f747[_0x104c42(0x1cf)]=_0x2f680a[_0x104c42(0x2a6)],_0x57f747[_0x104c42(0x2af)]=_0x2f680a[_0x104c42(0x1e1)];const _0x16fe5c={};_0x16fe5c[_0x104c42(0x1cf)]=_0x2f680a[_0x104c42(0x1f0)],_0x16fe5c[_0x104c42(0x2af)]=_0x2f680a[_0x104c42(0x1e1)];const _0x1a98b8={};return _0x1a98b8[_0x104c42(0x1d8)]=_0x52acff,_0x1a98b8[_0x104c42(0x1c7)]=_0x76169,_0x1a98b8[_0x104c42(0x208)]=_0x57f747,_0x1a98b8[_0x104c42(0x1e9)]=_0x16fe5c,_0xf3f03[_0x104c42(0x265)](_0x1446f2['pre_check'])['epilogue'](_0x37f603)[_0x104c42(0x1fd)](_0x1a98b8)['help'](_0x2f680a['pIViq'])['argv'];}else _0x1cfc9d[_0x104c42(0x28d)](_0x2f680a['rtUqU']);};_0x2f680a['QhXZv'](_0x1cfc9d[_0x104c42(0x239)],0x0)&&(_0x2f680a[_0x104c42(0x1fc)](_0x2f680a[_0x104c42(0x27c)],_0x2f680a[_0x104c42(0x229)])?(_0x2da15a=_0x104c42(0x23a)+_0x1cfc9d['join'](',\x20')+_0x104c42(0x28c),await _0x2f680a[_0x104c42(0x242)](reportToGalactusAndSendToEDS,_0x2f3937,_0x2bf831,_0x2da15a,messageTypes[_0x104c42(0x1ca)],_0x2f680a[_0x104c42(0x2b3)],_0x2f680a[_0x104c42(0x29c)],_0x2f680a['weaHi']),logger[_0x104c42(0x1d7)](_0x2da15a),process[_0x104c42(0x1fe)](0x1)):(_0x4cbc64+=_0x2f680a[_0x104c42(0x270)],_0x23f0ff+=_0x104c42(0x20c)+(_0x21039b[_0x104c42(0x299)]||_0x2f680a[_0x104c42(0x1ff)])+'\x0a',_0x4daf2e+=_0x104c42(0x261)+(_0x5ea198['code']||_0x2f680a['ojXNH'])+'\x0a',_0x30f4a5+=_0x104c42(0x248)+(_0x4adba1[_0x104c42(0x2b4)]||_0x2f680a['ojXNH'])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x104c42(0x201)](_0x2f3937[_0x104c42(0x267)][_0x104c42(0x28a)]())&&(_0x2f680a['IzKjF'](_0x2f680a[_0x104c42(0x226)],_0x2f680a[_0x104c42(0x22b)])?_0x5100b0['error'](_0x104c42(0x1ee)+_0x125652['error'][_0x104c42(0x2b4)]):(_0x2da15a=_0x2f680a['iixCu'],await _0x2f680a[_0x104c42(0x242)](reportToGalactusAndSendToEDS,_0x2f3937,_0x2bf831,_0x2da15a,messageTypes[_0x104c42(0x1ca)],_0x2f680a[_0x104c42(0x2b3)],_0x2f680a[_0x104c42(0x2ad)],_0x2f680a[_0x104c42(0x269)]),logger[_0x104c42(0x1d7)](_0x2da15a),!_0x2f3937[_0x104c42(0x267)]&&(_0x2f680a[_0x104c42(0x1c8)](_0x2f680a[_0x104c42(0x259)],_0x2f680a[_0x104c42(0x1d3)])?(logger['info'](_0x104c42(0x236)+DEFAULT_CLUSTER_DETAILS[_0x104c42(0x227)]+'\x20'),_0x2f3937[_0x104c42(0x267)]=DEFAULT_CLUSTER_DETAILS[_0x104c42(0x227)]):_0x32ec90[_0x104c42(0x28d)](_0x2f680a[_0x104c42(0x297)])))),global_registry[_0x104c42(0x291)]=_0x2f3937['clusterName'],global_registry[_0x104c42(0x267)]=_0x2f3937['cloudProvider'],global_registry['clusterRegion']=_0x2f3937['region'];}else _0x1c4393[_0x104c42(0x1fe)](0x1);}else{if(_0x2f3937[_0x104c42(0x1f2)]){if(_0x2f680a[_0x104c42(0x1c3)](_0x2f680a[_0x104c42(0x2aa)],_0x2f680a['UlIOd']))_0x5530d6+=_0x104c42(0x209)+_0x25eca4[_0x104c42(0x291)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{global_registry[_0x104c42(0x1f2)]=_0x2f3937[_0x104c42(0x1f2)],logger['debug'](_0x104c42(0x1e4)+_0x2f3937[_0x104c42(0x1f2)]);const _0x8c4592=_0x104c42(0x25f)+AG_API_URL+_0x104c42(0x212),_0x2a7244={};_0x2a7244['method']=_0x2f680a[_0x104c42(0x1df)],_0x2a7244['headers']=global_registry[_0x104c42(0x1d0)],_0x2a7244[_0x104c42(0x27d)]=![];const _0x3fdeda=_0x2a7244,_0x58faa3=await _0x2f680a['PHXfW'](got,_0x8c4592,_0x3fdeda),_0x1e31a4=await _0x2f680a[_0x104c42(0x2b9)](responseValidation,_0x58faa3,_0x2f680a[_0x104c42(0x1d9)],_0x2f680a[_0x104c42(0x1f8)],_0x2f3937,_0x2bf831);let _0x394e31={};if(_0x2f680a[_0x104c42(0x2b8)](_0x1e31a4,0xc8)){if(_0x2f680a[_0x104c42(0x22a)](_0x2f680a[_0x104c42(0x28b)],_0x2f680a[_0x104c42(0x284)])){const _0xf4b35a=JSON[_0x104c42(0x1d1)](_0x58faa3[_0x104c42(0x2a8)]),_0x4b8c27=_0xf4b35a['find'](_0x107934=>_0x107934['name']===_0x2f3937['gridProfile'])||null;_0x2f680a[_0x104c42(0x1fb)](isUndefined,_0x4b8c27)?_0x2f680a[_0x104c42(0x1e2)](_0x2f680a['xMFPX'],_0x2f680a[_0x104c42(0x1da)])?(_0x2da15a='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x2f3937[_0x104c42(0x1f2)]+_0x104c42(0x1ed),await _0x2f680a[_0x104c42(0x23c)](reportToGalactusAndSendToEDS,_0x2f3937,_0x2bf831,_0x2da15a,messageTypes[_0x104c42(0x1ca)],_0x2f680a['IzXpe'],_0x2f680a[_0x104c42(0x258)],_0x2f680a[_0x104c42(0x269)]),logger[_0x104c42(0x1d7)](_0x2da15a),process['exit'](0x1)):_0x5f24a4[_0x104c42(0x28d)](_0x2f680a[_0x104c42(0x206)]):_0x2f680a[_0x104c42(0x1c4)](_0x2f680a[_0x104c42(0x266)],_0x2f680a[_0x104c42(0x243)])?_0x5ef83[_0x104c42(0x1cd)]('Cluster\x20`'+_0x3e979c[_0x104c42(0x291)]+_0x104c42(0x26a)):_0x394e31=_0x4b8c27;}else _0x4cb8a7+=_0x104c42(0x209)+_0x49f2dc[_0x104c42(0x291)]+'\x20'+(_0x91d891?_0x2f680a[_0x104c42(0x272)]:_0x2f680a[_0x104c42(0x232)])+'\x0a\x0a';}else _0x2f680a[_0x104c42(0x254)](_0x2f680a[_0x104c42(0x25a)],_0x2f680a[_0x104c42(0x25a)])?(_0x306807['info']('['+_0x4bf55f+']\x20status\x20:\x20'+_0xd2913d[_0x104c42(0x2b2)]+_0x104c42(0x22c)+_0xfde629[_0x104c42(0x293)]+'\x20error\x20:\x20'+_0x250c49['error']),_0x1429df['error']&&_0x1a6145[_0x104c42(0x1d7)](_0x104c42(0x1ee)+_0x3e0376[_0x104c42(0x1d7)][_0x104c42(0x2b4)])):process[_0x104c42(0x1fe)](0x1);const _0x3ad78f={};_0x3ad78f['type']=WS_EVENTS[_0x104c42(0x245)],_0x3ad78f[_0x104c42(0x299)]=_0x2f680a[_0x104c42(0x1e5)],webSocketUtils[_0x104c42(0x1e8)](_0x2bf831,_0x3ad78f),global_registry[_0x104c42(0x267)]=_0x394e31['cloudProvider'],global_registry['clusterRegion']=_0x394e31['region'],global_registry[_0x104c42(0x291)]=_0x394e31['clusterName'];}}else _0x2f680a[_0x104c42(0x1e6)](_0x2f680a['YRbNC'],_0x2f680a['DhDOx'])?(logger[_0x104c42(0x1d7)](_0x2f680a[_0x104c42(0x215)]),process['exit'](0x1)):_0x391a0b['push'](_0x2f680a[_0x104c42(0x237)]);}}}catch(_0x44de4e){_0x2f680a[_0x104c42(0x1c3)](_0x2f680a[_0x104c42(0x28e)],_0x2f680a[_0x104c42(0x28e)])?(_0x2da15a=_0x104c42(0x27f)+_0x44de4e+':\x20'+_0x44de4e['stack'],logger['error'](_0x2da15a),await _0x2f680a[_0x104c42(0x1d6)](reportToGalactusAndSendToEDS,_0x2f3937,_0x2bf831,_0x2da15a,messageTypes['ERROR'],_0x2f680a[_0x104c42(0x2b3)],_0x2f680a[_0x104c42(0x2ad)],_0x2f680a[_0x104c42(0x269)]),process['exit'](0x1)):_0xc7944=_0x177ae7;}}function printResponse(_0x54a99b,_0x3c99f3){const _0x1ee6b9=a17_0x241156,_0x13d3da={};_0x13d3da[_0x1ee6b9(0x264)]=function(_0x3e29da,_0x2cdaa4){return _0x3e29da===_0x2cdaa4;},_0x13d3da[_0x1ee6b9(0x1f9)]='qAcLk',_0x13d3da[_0x1ee6b9(0x296)]='UNYdn';const _0x2fa635=_0x13d3da;logger['info']('['+_0x54a99b+_0x1ee6b9(0x23e)+_0x3c99f3[_0x1ee6b9(0x2b2)]+_0x1ee6b9(0x22c)+_0x3c99f3[_0x1ee6b9(0x293)]+_0x1ee6b9(0x2a7)+_0x3c99f3[_0x1ee6b9(0x1d7)]),_0x3c99f3[_0x1ee6b9(0x1d7)]&&(_0x2fa635[_0x1ee6b9(0x264)](_0x2fa635[_0x1ee6b9(0x1f9)],_0x2fa635[_0x1ee6b9(0x296)])?(_0xfdb02f[_0x1ee6b9(0x1cd)](_0x1ee6b9(0x236)+_0x559aa3[_0x1ee6b9(0x227)]+'\x20'),_0x13e295['cloudProvider']=_0xb2c82e[_0x1ee6b9(0x227)]):logger[_0x1ee6b9(0x1d7)]('error\x20stack\x20:\x20'+_0x3c99f3['error']['stack']));}async function generateReport(_0x57e9fd,_0x1c1c28){const _0x191984=a17_0x241156,_0x1c1802={'QtwOq':function(_0x1ae8e7,_0x1b45d8){return _0x1ae8e7+_0x1b45d8;},'vVpzE':_0x191984(0x214),'ETgUr':_0x191984(0x21e),'yeNqN':function(_0x595915,_0x43034d){return _0x595915||_0x43034d;},'Qnokw':_0x191984(0x253),'qrAGC':_0x191984(0x1f1),'KAYQO':_0x191984(0x298),'Fivcf':function(_0x5d0e2e,_0x317837){return _0x5d0e2e!=_0x317837;},'nIXir':_0x191984(0x263),'fQWnN':_0x191984(0x216),'lmDnM':function(_0x414825){return _0x414825();}};let _0x8ecbe5='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x191984(0x267)]+_0x191984(0x2a9);return _0x57e9fd[_0x191984(0x29a)]((_0x459c80,_0x542af2)=>{const _0x4784ed=_0x191984,{header:_0x26753f,response:_0x4b7baa}=_0x459c80,{status:_0x3dffad,data:_0x148a9e,error:_0x5ec0e3}=_0x4b7baa;_0x8ecbe5+=_0x26753f+'\x20#'+_0x1c1802['QtwOq'](_0x542af2,0x1)+'\x0a',_0x8ecbe5+='Status:\x20'+(_0x3dffad?_0x1c1802['vVpzE']:_0x1c1802['ETgUr'])+'\x0a',_0x8ecbe5+='Message:\x20'+_0x1c1802[_0x4784ed(0x202)](_0x148a9e,_0x1c1802[_0x4784ed(0x251)])+'\x0a',_0x5ec0e3&&(_0x8ecbe5+=_0x1c1802[_0x4784ed(0x22f)],_0x8ecbe5+=_0x4784ed(0x20c)+(_0x5ec0e3[_0x4784ed(0x299)]||_0x1c1802['Qnokw'])+'\x0a',_0x8ecbe5+=_0x4784ed(0x261)+(_0x5ec0e3[_0x4784ed(0x230)]||_0x1c1802[_0x4784ed(0x251)])+'\x0a',_0x8ecbe5+='\x20\x20Stack:\x20'+(_0x5ec0e3[_0x4784ed(0x2b4)]||_0x1c1802[_0x4784ed(0x251)])+'\x0a'),_0x8ecbe5+='\x0a\x0a';}),_0x8ecbe5+=_0x1c1802[_0x191984(0x219)],_0x1c1802[_0x191984(0x205)](_0x1c1c28,null)?_0x8ecbe5+=_0x191984(0x209)+global_registry[_0x191984(0x291)]+'\x20'+(_0x1c1c28?_0x1c1802[_0x191984(0x249)]:_0x1c1802[_0x191984(0x211)])+'\x0a\x0a':_0x8ecbe5+=_0x191984(0x209)+global_registry[_0x191984(0x291)]+_0x191984(0x1ea),_0x8ecbe5+=_0x1c1802[_0x191984(0x29b)](getSystemMetaData),_0x8ecbe5;};exports[a17_0x241156(0x1de)]=async function(_0x31cbcf){const _0x12180b=a17_0x241156,_0x237175={'vpNCT':function(_0x51bf8f){return _0x51bf8f();},'eEOxo':_0x12180b(0x22d),'aRcDX':function(_0xe2a3a4,_0x49d3d3,_0x39f821,_0x128eec,_0x2723c3,_0x28242f,_0x2e6ba9,_0x42f778){return _0xe2a3a4(_0x49d3d3,_0x39f821,_0x128eec,_0x2723c3,_0x28242f,_0x2e6ba9,_0x42f778);},'NfuiN':_0x12180b(0x275),'hrymn':'credential-not-found','xyRog':_0x12180b(0x1d7),'cSYyL':function(_0x4f3710,_0x2dc385,_0x47a6c8,_0x52e079,_0x486240,_0x50d07c,_0x506000){return _0x4f3710(_0x2dc385,_0x47a6c8,_0x52e079,_0x486240,_0x50d07c,_0x506000);},'RkkJT':function(_0x3d454f){return _0x3d454f();},'crqzT':_0x12180b(0x1fa),'eTJoV':_0x12180b(0x225),'nVMUc':function(_0x884d6,_0x3cacdc,_0x3bb175){return _0x884d6(_0x3cacdc,_0x3bb175);},'LlVyF':function(_0x49e7a6,_0x5ec75e,_0x176e27){return _0x49e7a6(_0x5ec75e,_0x176e27);},'PiFtF':function(_0x3d79a7,_0x17f360,_0x1683be,_0x42539a,_0x44c451,_0x291a3c,_0x13b6a6){return _0x3d79a7(_0x17f360,_0x1683be,_0x42539a,_0x44c451,_0x291a3c,_0x13b6a6);},'mRICE':_0x12180b(0x285),'PkXFW':_0x12180b(0x221),'JKfyx':'0|1|2|3|4','aUSkV':function(_0x5d99af,_0x284d9e,_0x28ff6f,_0x7a5569,_0x5309dc,_0x1eb9fb,_0x280d34,_0x297eb5){return _0x5d99af(_0x284d9e,_0x28ff6f,_0x7a5569,_0x5309dc,_0x1eb9fb,_0x280d34,_0x297eb5);},'cqdqT':function(_0x9117c5,_0x4b768c,_0x27ecdf){return _0x9117c5(_0x4b768c,_0x27ecdf);},'RcGpi':_0x12180b(0x24b),'xnwBV':_0x12180b(0x290),'rlBpH':function(_0x3d2d05,_0x590ba2){return _0x3d2d05(_0x590ba2);},'wPtBY':_0x12180b(0x217),'gAKXq':_0x12180b(0x1dc),'riZeN':_0x12180b(0x2bc),'UyVlM':'User\x20Access','XkcME':_0x12180b(0x240),'WrrQH':_0x12180b(0x23b),'icKov':function(_0x22a675,_0x4124ac){return _0x22a675+_0x4124ac;},'FOWWu':_0x12180b(0x2ae),'SEaZU':function(_0xc558d7,_0x563f56,_0x182252,_0x9b01,_0x51b5e8,_0x10f6a6,_0x20bd6d){return _0xc558d7(_0x563f56,_0x182252,_0x9b01,_0x51b5e8,_0x10f6a6,_0x20bd6d);},'NArZp':'pre-check-failed'};let _0xcdc98b,_0x3e0369;try{global_registry[_0x12180b(0x29e)]=_0x237175[_0x12180b(0x281)](uuidv4);!fs[_0x12180b(0x213)](_0x237175[_0x12180b(0x281)](getCredentialsPath))&&(_0x3e0369=_0x237175[_0x12180b(0x1f7)],logger[_0x12180b(0x1d7)](_0x3e0369),await _0x237175[_0x12180b(0x1cb)](reportToGalactusAndSendToEDS,_0x31cbcf,_0xcdc98b,_0x3e0369,messageTypes['ERROR'],_0x237175[_0x12180b(0x256)],_0x237175[_0x12180b(0x252)],_0x237175[_0x12180b(0x292)]),process['exit'](0x1));_0x237175[_0x12180b(0x20b)](sendInstrumentationEvent,_0x31cbcf,_0x237175[_0x12180b(0x256)],messageTypes['INFO'],null,null,_0x31cbcf);const _0x2bb0e8=JSON[_0x12180b(0x1d1)](fs[_0x12180b(0x27b)](_0x237175[_0x12180b(0x25b)](getCredentialsPath)));global_registry[_0x12180b(0x1c0)]=_0x2bb0e8[_0x12180b(0x26e)][_0x12180b(0x1f4)],global_registry[_0x12180b(0x1bf)]=_0x2bb0e8['Browserstack'][_0x12180b(0x24f)];const _0x18aaea=WS_ENDPOINT[_0x12180b(0x280)](_0x237175[_0x12180b(0x2b1)],_0x2bb0e8[_0x12180b(0x26e)]['username'])[_0x12180b(0x280)](_0x237175[_0x12180b(0x276)],_0x2bb0e8[_0x12180b(0x26e)]['password']),_0x5f4831={};_0x5f4831[_0x12180b(0x200)]=ws,_0x5f4831[_0x12180b(0x24a)]=0x36ee80,_0xcdc98b=new ReconnectingWebSocket(_0x18aaea,[],_0x5f4831),global_registry[_0x12180b(0x1d0)]=_0x237175[_0x12180b(0x20e)](getAuthHeader,global_registry[_0x12180b(0x1c0)],global_registry[_0x12180b(0x1bf)]),await _0x237175[_0x12180b(0x24c)](inputValidation,_0x31cbcf,_0xcdc98b),logger[_0x12180b(0x1cd)](_0x12180b(0x1db)+global_registry[_0x12180b(0x267)]+_0x12180b(0x282)+global_registry[_0x12180b(0x2b6)]);let _0x4d5d61=await _0x237175[_0x12180b(0x23f)](getCloudProviderObjectWithOutInit,global_registry[_0x12180b(0x267)],global_registry['clusterName'],_0x237175[_0x12180b(0x20d)],_0xcdc98b,webSocketUtils,_0x31cbcf);const _0x15bd39=await _0x4d5d61[_0x12180b(0x1d5)]();_0x237175['nVMUc'](printResponse,_0x237175['PkXFW'],_0x15bd39),_0x4d5d61=await _0x4d5d61[_0x12180b(0x29f)]();let _0x3d289b=![];try{_0x3d289b=await _0x4d5d61['isClusterPresent']();}catch(_0x41e26c){const _0x9b4274=_0x237175[_0x12180b(0x1be)]['split']('|');let _0x4c5ea0=0x0;while(!![]){switch(_0x9b4274[_0x4c5ea0++]){case'0':_0x3e0369=_0x12180b(0x279)+global_registry[_0x12180b(0x291)]+_0x12180b(0x218)+global_registry[_0x12180b(0x2b6)]+'`\x20,error\x20:\x20'+_0x41e26c;continue;case'1':_0x3d289b=null;continue;case'2':logger[_0x12180b(0x1d7)](_0x3e0369);continue;case'3':_0x3e0369+='\x0a'+JSON[_0x12180b(0x255)](_0x41e26c['stack']);continue;case'4':await _0x237175[_0x12180b(0x2a1)](reportToGalactusAndSendToEDS,_0x31cbcf,_0xcdc98b,_0x3e0369,messageTypes[_0x12180b(0x1ca)],_0x237175[_0x12180b(0x256)],_0x12180b(0x2a3)+global_registry[_0x12180b(0x267)],_0x237175[_0x12180b(0x292)]);continue;}break;}}_0x3d289b&&logger[_0x12180b(0x1cd)](_0x12180b(0x268)+global_registry['clusterName']+_0x12180b(0x26a));const _0x17c126=await _0x4d5d61['checkAccess']();_0x237175[_0x12180b(0x29d)](printResponse,_0x237175[_0x12180b(0x2a5)],_0x17c126);const _0x22451b=await _0x237175[_0x12180b(0x281)](curlRequest);_0x237175[_0x12180b(0x24c)](printResponse,_0x237175[_0x12180b(0x1cc)],_0x22451b);const _0x56130e=await _0x237175['rlBpH'](isTlsSupported,_0x237175[_0x12180b(0x21a)]);_0x237175[_0x12180b(0x29d)](printResponse,_0x237175[_0x12180b(0x278)],_0x56130e);const _0x504d6f={};_0x504d6f['header']=_0x237175['riZeN'],_0x504d6f[_0x12180b(0x21b)]=_0x15bd39;const _0x51173e={};_0x51173e['header']=_0x237175[_0x12180b(0x220)],_0x51173e[_0x12180b(0x21b)]=_0x17c126;const _0x32ff50={};_0x32ff50[_0x12180b(0x203)]=_0x237175[_0x12180b(0x27a)],_0x32ff50[_0x12180b(0x21b)]=_0x22451b;const _0x2f7527={};_0x2f7527[_0x12180b(0x203)]=_0x237175[_0x12180b(0x247)],_0x2f7527[_0x12180b(0x21b)]=_0x56130e;const _0x585a11=[_0x504d6f,_0x51173e,_0x32ff50,_0x2f7527],_0x3b9013=await _0x237175['nVMUc'](generateReport,_0x585a11,_0x3d289b),_0x586d4f=new Date(),_0x3b4490=_0x586d4f[_0x12180b(0x295)]()+'_'+_0x237175[_0x12180b(0x1ef)](_0x586d4f[_0x12180b(0x1f6)](),0x1)+'_'+_0x586d4f[_0x12180b(0x21f)]()+'_'+_0x586d4f[_0x12180b(0x274)]()+'_'+_0x586d4f[_0x12180b(0x223)](),_0x25d12f=_0x12180b(0x1f5)+_0x3b4490+_0x12180b(0x246);fs['writeFileSync'](_0x25d12f,_0x3b9013,_0x237175[_0x12180b(0x24e)]),logger[_0x12180b(0x1cd)]('Report\x20saved\x20in\x20'+_0x25d12f),process[_0x12180b(0x1fe)](0x0);}catch(_0x57a340){let _0x5329a2=_0x12180b(0x234)+_0x57a340+'\x20';logger[_0x12180b(0x1d7)](_0x5329a2),_0x5329a2+='\x0a'+JSON[_0x12180b(0x255)](_0x57a340['stack']),logger['debug']('stack\x20trace\x20'+_0x57a340['stack']);if(_0xcdc98b){const _0x9c4ff2={};_0x9c4ff2[_0x12180b(0x2af)]=WS_EVENTS['LOG'],_0x9c4ff2[_0x12180b(0x299)]=_0x5329a2,webSocketUtils[_0x12180b(0x1e8)](_0xcdc98b,_0x9c4ff2,_0x237175['xyRog'],!![]);}await webSocketUtils[_0x12180b(0x27e)](0x7d0);const _0x5457eb={};_0x5457eb[_0x12180b(0x1d7)]=_0x5329a2,await _0x237175['SEaZU'](sendInstrumentationEvent,_0x31cbcf,_0x237175[_0x12180b(0x256)],messageTypes[_0x12180b(0x1ca)],_0x237175[_0x12180b(0x1dd)],_0x5457eb,_0x31cbcf),process[_0x12180b(0x1fe)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x3aa32f=a18_0x5cdb;function a18_0x5cdb(_0x139309,_0x5f1ffb){const _0x214d7b=a18_0x214d();return a18_0x5cdb=function(_0x5cdb61,_0x93d4f9){_0x5cdb61=_0x5cdb61-0x111;let _0x5c8d29=_0x214d7b[_0x5cdb61];return _0x5c8d29;},a18_0x5cdb(_0x139309,_0x5f1ffb);}(function(_0x417391,_0x12b51a){const _0x305938=a18_0x5cdb,_0x31cc09=_0x417391();while(!![]){try{const _0x326484=parseInt(_0x305938(0x11c))/0x1+-parseInt(_0x305938(0x117))/0x2+parseInt(_0x305938(0x114))/0x3*(parseInt(_0x305938(0x120))/0x4)+parseInt(_0x305938(0x112))/0x5*(parseInt(_0x305938(0x122))/0x6)+-parseInt(_0x305938(0x111))/0x7*(parseInt(_0x305938(0x125))/0x8)+parseInt(_0x305938(0x126))/0x9+-parseInt(_0x305938(0x119))/0xa;if(_0x326484===_0x12b51a)break;else _0x31cc09['push'](_0x31cc09['shift']());}catch(_0x536f82){_0x31cc09['push'](_0x31cc09['shift']());}}}(a18_0x214d,0x1b084));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x214d(){const _0x2b155d=['ysnTN','strict','39624zpAFfl','Start\x20an\x20existing\x20Automation\x20grid.','853090IhLWLd','usage','command','33151ElyrAn','handler','help','commandDir','164rMXgZq','epilogue','60lfRNcz','start','demandCommand','104sOlvvu','1266777kQNuvg','18046NrRdQV','31270PtNPPf','PvjOA','945chmSUl'];a18_0x214d=function(){return _0x2b155d;};return a18_0x214d();}exports[a18_0x3aa32f(0x11b)]=a18_0x3aa32f(0x123),exports['desc']=a18_0x3aa32f(0x118),exports['builder']=function(_0x2d9d39){const _0x34dc10=a18_0x3aa32f,_0xea67a={};_0xea67a[_0x34dc10(0x113)]='start_commands',_0xea67a[_0x34dc10(0x115)]=_0x34dc10(0x11e);const _0x28fd68=_0xea67a;return _0x2d9d39[_0x34dc10(0x11a)](HELP_HEADER_MESSAGE[_0x34dc10(0x123)])[_0x34dc10(0x121)](HELP_FOOTER_MESSAGE)[_0x34dc10(0x11f)](_0x28fd68['PvjOA'])[_0x34dc10(0x124)]()['recommendCommands']()[_0x34dc10(0x116)]()[_0x34dc10(0x11e)](_0x28fd68[_0x34dc10(0x115)]);},exports[a18_0x3aa32f(0x11d)]=function(_0x4c19de){};
1
+ const a18_0x34095d=a18_0x3923;(function(_0x24e651,_0x2a264b){const _0x3b4a49=a18_0x3923,_0xbbad3b=_0x24e651();while(!![]){try{const _0x137e0b=-parseInt(_0x3b4a49(0x1c7))/0x1*(parseInt(_0x3b4a49(0x1cd))/0x2)+-parseInt(_0x3b4a49(0x1cc))/0x3+-parseInt(_0x3b4a49(0x1ca))/0x4*(-parseInt(_0x3b4a49(0x1ce))/0x5)+-parseInt(_0x3b4a49(0x1c9))/0x6*(-parseInt(_0x3b4a49(0x1c2))/0x7)+-parseInt(_0x3b4a49(0x1cb))/0x8*(parseInt(_0x3b4a49(0x1c8))/0x9)+-parseInt(_0x3b4a49(0x1cf))/0xa*(parseInt(_0x3b4a49(0x1c1))/0xb)+parseInt(_0x3b4a49(0x1c6))/0xc;if(_0x137e0b===_0x2a264b)break;else _0xbbad3b['push'](_0xbbad3b['shift']());}catch(_0x91ec0){_0xbbad3b['push'](_0xbbad3b['shift']());}}}(a18_0x5a2a,0x4a36a));function a18_0x5a2a(){const _0x45fa23=['5400132wXpaRm','219392tAfFUC','1403478zebrPN','1275132WFZKto','116ZvXMlm','16ITHCPO','200070DKPwVB','2biAFiA','89575NFEyGm','100540pUepAc','handler','help','command','demandCommand','start_commands','../config/constants','strict','Start\x20an\x20existing\x20Automation\x20grid.','commandDir','recommendCommands','539clLjly','14ZjdTXj','QLToP','NWPeX','start'];a18_0x5a2a=function(){return _0x45fa23;};return a18_0x5a2a();}function a18_0x3923(_0x48e872,_0x9d109e){const _0x5a2a7a=a18_0x5a2a();return a18_0x3923=function(_0x3923dc,_0x22fda3){_0x3923dc=_0x3923dc-0x1bb;let _0x23212d=_0x5a2a7a[_0x3923dc];return _0x23212d;},a18_0x3923(_0x48e872,_0x9d109e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x34095d(0x1bc));exports[a18_0x34095d(0x1d2)]=a18_0x34095d(0x1c5),exports['desc']=a18_0x34095d(0x1be),exports['builder']=function(_0x2315a7){const _0x151eae=a18_0x34095d,_0x253ffc={};_0x253ffc[_0x151eae(0x1c3)]=_0x151eae(0x1bb),_0x253ffc[_0x151eae(0x1c4)]=_0x151eae(0x1d1);const _0x673f75=_0x253ffc;return _0x2315a7['usage'](HELP_HEADER_MESSAGE[_0x151eae(0x1c5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x151eae(0x1bf)](_0x673f75['QLToP'])[_0x151eae(0x1d3)]()[_0x151eae(0x1c0)]()[_0x151eae(0x1bd)]()[_0x151eae(0x1d1)](_0x673f75[_0x151eae(0x1c4)]);},exports[a18_0x34095d(0x1d0)]=function(_0x212c32){};
@@ -1 +1 @@
1
- const a19_0x223ed3=a19_0x115a;(function(_0x2d245d,_0x4fe6be){const _0x3b66cb=a19_0x115a,_0x392aae=_0x2d245d();while(!![]){try{const _0x39290d=-parseInt(_0x3b66cb(0x147))/0x1+-parseInt(_0x3b66cb(0x183))/0x2*(parseInt(_0x3b66cb(0x18f))/0x3)+-parseInt(_0x3b66cb(0x187))/0x4+-parseInt(_0x3b66cb(0x18a))/0x5+parseInt(_0x3b66cb(0x186))/0x6*(parseInt(_0x3b66cb(0x154))/0x7)+parseInt(_0x3b66cb(0x16a))/0x8+-parseInt(_0x3b66cb(0x15d))/0x9*(-parseInt(_0x3b66cb(0x19a))/0xa);if(_0x39290d===_0x4fe6be)break;else _0x392aae['push'](_0x392aae['shift']());}catch(_0x2549b4){_0x392aae['push'](_0x392aae['shift']());}}}(a19_0x3c54,0x68620));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x223ed3(0x162)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x223ed3(0x16c)),{logger}=require(a19_0x223ed3(0x164)),{getCredentialsPath,getGridDetails}=require(a19_0x223ed3(0x14a)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x223ed3(0x15a)),webSocketUtils=require(a19_0x223ed3(0x16f)),{createK8sClient}=require(a19_0x223ed3(0x17a)),{getCloudProviderObject}=require(a19_0x223ed3(0x156));exports['command']=a19_0x223ed3(0x178),exports[a19_0x223ed3(0x145)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x221ea5){const _0x2bbe2b=a19_0x223ed3,_0x4d499d={};_0x4d499d['VciPZ']=_0x2bbe2b(0x198),_0x4d499d[_0x2bbe2b(0x157)]='string',_0x4d499d[_0x2bbe2b(0x184)]=_0x2bbe2b(0x182),_0x4d499d[_0x2bbe2b(0x14f)]='boolean',_0x4d499d[_0x2bbe2b(0x16b)]=_0x2bbe2b(0x158);const _0x24ae06=_0x4d499d,_0x2a2ab7={};_0x2a2ab7['description']=_0x24ae06[_0x2bbe2b(0x151)],_0x2a2ab7[_0x2bbe2b(0x14d)]=_0x24ae06['BPFSW'];const _0x5b0f3e={};_0x5b0f3e[_0x2bbe2b(0x146)]=_0x24ae06[_0x2bbe2b(0x184)],_0x5b0f3e[_0x2bbe2b(0x14d)]=_0x24ae06[_0x2bbe2b(0x14f)],_0x5b0f3e[_0x2bbe2b(0x155)]=![];const _0x756372={};return _0x756372[_0x2bbe2b(0x180)]=_0x2a2ab7,_0x756372['skip-tls-cert-verify']=_0x5b0f3e,_0x221ea5['usage'](HELP_HEADER_MESSAGE[_0x2bbe2b(0x17b)])[_0x2bbe2b(0x15f)](HELP_FOOTER_MESSAGE)[_0x2bbe2b(0x15c)](_0x756372)['help'](_0x24ae06['ooMVb'])['argv'];},exports[a19_0x223ed3(0x16e)]=async function(_0x63fb00){const _0x25e2c3=a19_0x223ed3,_0x412f39={'xDuMX':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','ADKPR':function(_0x4ad710){return _0x4ad710();},'TVBYY':_0x25e2c3(0x185),'yLCfa':function(_0x536e7a,_0x307fae,_0x3c75a8,_0x3bc130,_0x2aaf80,_0x451445,_0x81c6aa){return _0x536e7a(_0x307fae,_0x3c75a8,_0x3bc130,_0x2aaf80,_0x451445,_0x81c6aa);},'qaQLH':_0x25e2c3(0x165),'uySMh':_0x25e2c3(0x14c),'LGoCU':_0x25e2c3(0x172),'PCEJQ':'<PasswordPlaceholder>','ZRhFw':_0x25e2c3(0x163),'wpyuD':function(_0x153421,_0x595665,_0x724c67,_0x3def2e){return _0x153421(_0x595665,_0x724c67,_0x3def2e);},'IPnRP':function(_0x3d88b4,_0x19a2c9,_0x3002e0){return _0x3d88b4(_0x19a2c9,_0x3002e0);},'QpsTo':function(_0x81d031,_0x202e05,_0x46429e){return _0x81d031(_0x202e05,_0x46429e);},'qDxFG':_0x25e2c3(0x197),'IhWJJ':function(_0x4904b7,_0x48af62){return _0x4904b7===_0x48af62;},'eXGUx':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','DHzFG':function(_0x4e9927,_0x379bd9,_0x5b3056,_0x2d9c76,_0x231583,_0x566f11,_0x57d26a){return _0x4e9927(_0x379bd9,_0x5b3056,_0x2d9c76,_0x231583,_0x566f11,_0x57d26a);},'ceNTM':_0x25e2c3(0x148),'ztCEc':function(_0x251c65,_0x55befc){return _0x251c65===_0x55befc;},'EjeBw':function(_0x1b7cb9,_0x357384,_0x3c7547,_0x2aae42,_0x483456,_0x24655d,_0x1b74cf){return _0x1b7cb9(_0x357384,_0x3c7547,_0x2aae42,_0x483456,_0x24655d,_0x1b74cf);},'LlrBC':_0x25e2c3(0x194),'puZms':_0x25e2c3(0x166)};let _0x40e5cf;try{!_0x63fb00[_0x25e2c3(0x196)]&&(logger['error'](_0x412f39['xDuMX']),process[_0x25e2c3(0x189)](0x1));!fs[_0x25e2c3(0x195)](_0x412f39[_0x25e2c3(0x188)](getCredentialsPath))&&(logger['error'](_0x412f39[_0x25e2c3(0x149)]),await _0x412f39[_0x25e2c3(0x159)](sendInstrumentationEvent,_0x63fb00,_0x412f39['qaQLH'],messageTypes[_0x25e2c3(0x167)],_0x412f39[_0x25e2c3(0x173)],null,_0x63fb00),process[_0x25e2c3(0x189)](0x1));logger['info']('Starting\x20grid\x20'+_0x63fb00[_0x25e2c3(0x196)]),await _0x412f39[_0x25e2c3(0x159)](sendInstrumentationEvent,_0x63fb00,_0x412f39['qaQLH'],messageTypes[_0x25e2c3(0x16d)],null,null,_0x63fb00);const _0x48f64d=JSON['parse'](fs['readFileSync'](_0x412f39[_0x25e2c3(0x188)](getCredentialsPath)));global_registry['bstackUsername']=_0x48f64d[_0x25e2c3(0x174)]['username'],global_registry[_0x25e2c3(0x169)]=_0x48f64d[_0x25e2c3(0x174)]['password'];const _0x90ad1d=WS_ENDPOINT[_0x25e2c3(0x171)](_0x412f39[_0x25e2c3(0x15b)],_0x48f64d[_0x25e2c3(0x174)][_0x25e2c3(0x161)])[_0x25e2c3(0x171)](_0x412f39[_0x25e2c3(0x176)],_0x48f64d[_0x25e2c3(0x174)][_0x25e2c3(0x14e)]),_0x595bc2={};_0x595bc2[_0x25e2c3(0x193)]=ws,_0x595bc2[_0x25e2c3(0x152)]=0x36ee80,_0x40e5cf=new ReconnectingWebSocket(_0x90ad1d,[],_0x595bc2),logger[_0x25e2c3(0x181)](_0x412f39[_0x25e2c3(0x18b)]),webSocketUtils[_0x25e2c3(0x168)](_0x40e5cf,_0x63fb00[_0x25e2c3(0x179)],_0x63fb00['password']);const [_0x1a2c48,_0x36c050]=await _0x412f39[_0x25e2c3(0x17f)](getGridDetails,_0x48f64d['Browserstack'][_0x25e2c3(0x161)],_0x48f64d[_0x25e2c3(0x174)][_0x25e2c3(0x14e)],_0x63fb00[_0x25e2c3(0x196)]);if(_0x36c050){const _0x4f16be=_0x36c050['info'];global_registry[_0x25e2c3(0x160)]=_0x4f16be[_0x25e2c3(0x160)],global_registry[_0x25e2c3(0x17c)]=_0x4f16be['region'],global_registry[_0x25e2c3(0x18c)]=_0x4f16be[_0x25e2c3(0x18c)];const _0x2d2adc=await _0x412f39['yLCfa'](getCloudProviderObject,_0x4f16be[_0x25e2c3(0x160)],_0x4f16be[_0x25e2c3(0x18c)],_0x4f16be['name'],_0x40e5cf,webSocketUtils,_0x63fb00),[_0x5c9db4,_0x3c8abd,_0x364759,_0x58e66a,_0x2d53ae,_0x49ce1c]=await _0x412f39['IPnRP'](createK8sClient,_0x2d2adc,_0x63fb00['skipTlsCertVerify']);await _0x412f39[_0x25e2c3(0x17d)](scaleUpHubDeployment,_0x3c8abd,_0x4f16be[_0x25e2c3(0x153)]),logger[_0x25e2c3(0x177)](_0x412f39[_0x25e2c3(0x18e)]),process['exit'](0x0);}_0x412f39[_0x25e2c3(0x190)](_0x1a2c48[_0x25e2c3(0x175)],0x191)&&(logger[_0x25e2c3(0x15e)](_0x412f39['eXGUx']),await _0x412f39['DHzFG'](sendInstrumentationEvent,_0x63fb00,_0x412f39['qaQLH'],messageTypes[_0x25e2c3(0x167)],_0x412f39[_0x25e2c3(0x17e)],null,_0x63fb00),process[_0x25e2c3(0x189)](0x1)),_0x412f39[_0x25e2c3(0x192)](_0x1a2c48[_0x25e2c3(0x175)],0x190)&&(logger[_0x25e2c3(0x15e)](JSON[_0x25e2c3(0x150)](_0x1a2c48['body'])['message']),await _0x412f39['EjeBw'](sendInstrumentationEvent,_0x63fb00,_0x412f39[_0x25e2c3(0x18d)],messageTypes['ERROR'],_0x412f39[_0x25e2c3(0x170)],null,_0x63fb00),process[_0x25e2c3(0x189)](0x1)),logger[_0x25e2c3(0x15e)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x25e2c3(0x199)](_0x1a2c48)),await _0x412f39[_0x25e2c3(0x191)](sendInstrumentationEvent,_0x63fb00,_0x412f39[_0x25e2c3(0x18d)],messageTypes[_0x25e2c3(0x167)],_0x412f39['puZms'],_0x1a2c48,_0x63fb00),process[_0x25e2c3(0x189)](0x1);}catch(_0x96c1ef){const _0x1b3c14=_0x25e2c3(0x14b)+_0x96c1ef+'\x20\x0a'+JSON[_0x25e2c3(0x199)](_0x96c1ef['stack'])+'\x20';logger[_0x25e2c3(0x15e)](_0x1b3c14),process[_0x25e2c3(0x189)](0x1);}};function a19_0x115a(_0x21be53,_0x91953b){const _0x3c541a=a19_0x3c54();return a19_0x115a=function(_0x115abd,_0x52e972){_0x115abd=_0x115abd-0x145;let _0x3d45a5=_0x3c541a[_0x115abd];return _0x3d45a5;},a19_0x115a(_0x21be53,_0x91953b);}function a19_0x3c54(){const _0x19f1fc=['../../utils/webSocketUtils','LlrBC','replace','<UsernamePlaceholder>','uySMh','Browserstack','statusCode','PCEJQ','info','grid','user','../../utils/createk8sClient','start','clusterRegion','QpsTo','ceNTM','wpyuD','grid-id','debug','Skip\x20insecure\x20cert\x20verification.','2DwivWX','zcfgH','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','21408TRFDzN','2348676oteQAX','ADKPR','exit','912575lZxVvz','ZRhFw','clusterName','qaQLH','qDxFG','1555965wYSxxO','IhWJJ','DHzFG','ztCEc','WebSocket','invalid-grid-id','existsSync','gridId','Grid\x20started','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','stringify','2930sXDsIu','desc','description','524796klXttJ','unauthorised','TVBYY','../../utils/utilityMethods','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','init-not-called','type','password','PVRaU','parse','VciPZ','connectionTimeout','name','413MKqEFb','default','../../cloudproviders/utils','BPFSW','help','yLCfa','../../utils/instrumentationUtils','LGoCU','options','50229BEtPqo','error','epilogue','cloudProvider','username','reconnecting-websocket','Adding\x20Websocket\x20listeners','../../config/logger','start-grid-called','server-error','ERROR','addListeners','bstackAccesskey','3159536ddcXRU','ooMVb','../../config/constants','INFO','handler'];a19_0x3c54=function(){return _0x19f1fc;};return a19_0x3c54();}
1
+ function a19_0x5468(_0x31505b,_0x1c635b){const _0x188e48=a19_0x188e();return a19_0x5468=function(_0x5468d6,_0x2dc01a){_0x5468d6=_0x5468d6-0x1bb;let _0x189757=_0x188e48[_0x5468d6];return _0x189757;},a19_0x5468(_0x31505b,_0x1c635b);}const a19_0x247081=a19_0x5468;(function(_0x5549b9,_0x5bfc8b){const _0x2f81a7=a19_0x5468,_0x583900=_0x5549b9();while(!![]){try{const _0x1fd0ee=-parseInt(_0x2f81a7(0x206))/0x1*(parseInt(_0x2f81a7(0x1f8))/0x2)+parseInt(_0x2f81a7(0x1bb))/0x3+-parseInt(_0x2f81a7(0x205))/0x4+parseInt(_0x2f81a7(0x1d2))/0x5+-parseInt(_0x2f81a7(0x210))/0x6*(-parseInt(_0x2f81a7(0x1bc))/0x7)+-parseInt(_0x2f81a7(0x211))/0x8*(parseInt(_0x2f81a7(0x1e9))/0x9)+-parseInt(_0x2f81a7(0x1be))/0xa*(-parseInt(_0x2f81a7(0x1d9))/0xb);if(_0x1fd0ee===_0x5bfc8b)break;else _0x583900['push'](_0x583900['shift']());}catch(_0x48f49e){_0x583900['push'](_0x583900['shift']());}}}(a19_0x188e,0x41aa5));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x247081(0x1dd)),{logger}=require(a19_0x247081(0x1cc)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x247081(0x1ef)),{createK8sClient}=require(a19_0x247081(0x1e1)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x247081(0x1fd)]=a19_0x247081(0x1df),exports['desc']=a19_0x247081(0x1fc),exports[a19_0x247081(0x1f6)]=function(_0x1a7940){const _0x10270c=a19_0x247081,_0x1da12a={};_0x1da12a[_0x10270c(0x1ec)]=_0x10270c(0x1f1),_0x1da12a[_0x10270c(0x1fe)]=_0x10270c(0x1bf),_0x1da12a[_0x10270c(0x1d3)]=_0x10270c(0x1c0),_0x1da12a[_0x10270c(0x1fa)]=_0x10270c(0x20f),_0x1da12a[_0x10270c(0x1d4)]=_0x10270c(0x1e8);const _0x16b5d9=_0x1da12a,_0xe599df={};_0xe599df[_0x10270c(0x1db)]=_0x16b5d9[_0x10270c(0x1ec)],_0xe599df[_0x10270c(0x1c6)]=_0x16b5d9['CJFvE'];const _0x45d302={};_0x45d302[_0x10270c(0x1db)]=_0x16b5d9[_0x10270c(0x1d3)],_0x45d302['type']=_0x16b5d9[_0x10270c(0x1fa)],_0x45d302[_0x10270c(0x213)]=![];const _0x4c5bf0={};return _0x4c5bf0['grid-id']=_0xe599df,_0x4c5bf0[_0x10270c(0x20d)]=_0x45d302,_0x1a7940[_0x10270c(0x202)](HELP_HEADER_MESSAGE[_0x10270c(0x1c3)])[_0x10270c(0x1f9)](HELP_FOOTER_MESSAGE)['options'](_0x4c5bf0)['help'](_0x16b5d9[_0x10270c(0x1d4)])['argv'];},exports['handler']=async function(_0x4e0445){const _0x1c1c2d=a19_0x247081,_0x14a56b={'YSOgV':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','pSWBI':function(_0x24abba){return _0x24abba();},'jVedo':_0x1c1c2d(0x201),'QKMaQ':function(_0x3f1750,_0xb7c925,_0x2fd73f,_0x538f30,_0x8688bb,_0x3175d0,_0x100f84){return _0x3f1750(_0xb7c925,_0x2fd73f,_0x538f30,_0x8688bb,_0x3175d0,_0x100f84);},'DxXIa':_0x1c1c2d(0x208),'pavrK':_0x1c1c2d(0x1c1),'ufRFs':function(_0x3f2570){return _0x3f2570();},'iLkEy':_0x1c1c2d(0x1fb),'aWtZo':_0x1c1c2d(0x1c9),'PJMCL':_0x1c1c2d(0x1e2),'Sumrj':function(_0x4de58c,_0x409d3e,_0x23836a,_0x4e296a){return _0x4de58c(_0x409d3e,_0x23836a,_0x4e296a);},'lSFDK':function(_0x33a18e,_0x100102,_0x548eaa){return _0x33a18e(_0x100102,_0x548eaa);},'PPLoQ':_0x1c1c2d(0x1cb),'ZsNOd':function(_0x10ab4,_0x135795){return _0x10ab4===_0x135795;},'oxUfo':_0x1c1c2d(0x203),'IDhoz':'unauthorised','LCAyI':function(_0xc048f3,_0x1caf85){return _0xc048f3===_0x1caf85;},'OAwtx':'invalid-grid-id','DNmoe':function(_0xc150bc,_0x4d4c11,_0x42c3c0,_0x4b0030,_0x34ca39,_0x8b568,_0x467581){return _0xc150bc(_0x4d4c11,_0x42c3c0,_0x4b0030,_0x34ca39,_0x8b568,_0x467581);},'sbtSj':_0x1c1c2d(0x1e6)};let _0x3d1368;try{!_0x4e0445[_0x1c1c2d(0x1da)]&&(logger['error'](_0x14a56b[_0x1c1c2d(0x1e0)]),process['exit'](0x1));!fs['existsSync'](_0x14a56b[_0x1c1c2d(0x1f3)](getCredentialsPath))&&(logger[_0x1c1c2d(0x1d5)](_0x14a56b[_0x1c1c2d(0x1f4)]),await _0x14a56b[_0x1c1c2d(0x1cf)](sendInstrumentationEvent,_0x4e0445,_0x14a56b[_0x1c1c2d(0x1d0)],messageTypes[_0x1c1c2d(0x1c4)],_0x14a56b[_0x1c1c2d(0x1dc)],null,_0x4e0445),process[_0x1c1c2d(0x1e5)](0x1));logger[_0x1c1c2d(0x20a)](_0x1c1c2d(0x1bd)+_0x4e0445[_0x1c1c2d(0x1da)]),await _0x14a56b[_0x1c1c2d(0x1cf)](sendInstrumentationEvent,_0x4e0445,_0x14a56b[_0x1c1c2d(0x1d0)],messageTypes[_0x1c1c2d(0x1ca)],null,null,_0x4e0445);const _0x4d7947=JSON[_0x1c1c2d(0x1f5)](fs[_0x1c1c2d(0x1ea)](_0x14a56b[_0x1c1c2d(0x1e7)](getCredentialsPath)));global_registry[_0x1c1c2d(0x1ed)]=_0x4d7947[_0x1c1c2d(0x1ff)][_0x1c1c2d(0x1c7)],global_registry[_0x1c1c2d(0x20b)]=_0x4d7947[_0x1c1c2d(0x1ff)][_0x1c1c2d(0x1d1)];const _0x55749c=WS_ENDPOINT[_0x1c1c2d(0x209)](_0x14a56b['iLkEy'],_0x4d7947[_0x1c1c2d(0x1ff)][_0x1c1c2d(0x1c7)])['replace'](_0x14a56b[_0x1c1c2d(0x1f7)],_0x4d7947[_0x1c1c2d(0x1ff)][_0x1c1c2d(0x1d1)]),_0x2fea7f={};_0x2fea7f['WebSocket']=ws,_0x2fea7f['connectionTimeout']=0x36ee80,_0x3d1368=new ReconnectingWebSocket(_0x55749c,[],_0x2fea7f),logger[_0x1c1c2d(0x1ee)](_0x14a56b[_0x1c1c2d(0x1f2)]),webSocketUtils['addListeners'](_0x3d1368,_0x4e0445[_0x1c1c2d(0x1f0)],_0x4e0445[_0x1c1c2d(0x1d1)]);const [_0x1ebb00,_0x453c73]=await _0x14a56b[_0x1c1c2d(0x1e3)](getGridDetails,_0x4d7947[_0x1c1c2d(0x1ff)][_0x1c1c2d(0x1c7)],_0x4d7947[_0x1c1c2d(0x1ff)][_0x1c1c2d(0x1d1)],_0x4e0445[_0x1c1c2d(0x1da)]);if(_0x453c73){const _0x5df377=_0x453c73[_0x1c1c2d(0x20a)];global_registry[_0x1c1c2d(0x1ce)]=_0x5df377[_0x1c1c2d(0x1ce)],global_registry['clusterRegion']=_0x5df377[_0x1c1c2d(0x1c2)],global_registry[_0x1c1c2d(0x1c8)]=_0x5df377[_0x1c1c2d(0x1c8)];const _0x59181e=await _0x14a56b['QKMaQ'](getCloudProviderObject,_0x5df377[_0x1c1c2d(0x1ce)],_0x5df377[_0x1c1c2d(0x1c8)],_0x5df377[_0x1c1c2d(0x207)],_0x3d1368,webSocketUtils,_0x4e0445),[_0x470a08,_0x100e85,_0x1bfacb,_0x3f1a8a,_0x4b8b2f,_0x4ece7c]=await _0x14a56b[_0x1c1c2d(0x1cd)](createK8sClient,_0x59181e,_0x4e0445[_0x1c1c2d(0x1e4)]);await _0x14a56b['lSFDK'](scaleUpHubDeployment,_0x100e85,_0x5df377[_0x1c1c2d(0x207)]),logger[_0x1c1c2d(0x20a)](_0x14a56b['PPLoQ']),process[_0x1c1c2d(0x1e5)](0x0);}_0x14a56b[_0x1c1c2d(0x1d7)](_0x1ebb00[_0x1c1c2d(0x1c5)],0x191)&&(logger[_0x1c1c2d(0x1d5)](_0x14a56b['oxUfo']),await _0x14a56b['QKMaQ'](sendInstrumentationEvent,_0x4e0445,_0x14a56b[_0x1c1c2d(0x1d0)],messageTypes['ERROR'],_0x14a56b['IDhoz'],null,_0x4e0445),process[_0x1c1c2d(0x1e5)](0x1)),_0x14a56b[_0x1c1c2d(0x1eb)](_0x1ebb00[_0x1c1c2d(0x1c5)],0x190)&&(logger[_0x1c1c2d(0x1d5)](JSON['parse'](_0x1ebb00[_0x1c1c2d(0x20e)])[_0x1c1c2d(0x1d6)]),await _0x14a56b[_0x1c1c2d(0x1cf)](sendInstrumentationEvent,_0x4e0445,_0x14a56b[_0x1c1c2d(0x1d0)],messageTypes[_0x1c1c2d(0x1c4)],_0x14a56b[_0x1c1c2d(0x1de)],null,_0x4e0445),process['exit'](0x1)),logger[_0x1c1c2d(0x1d5)](_0x1c1c2d(0x212)+JSON[_0x1c1c2d(0x204)](_0x1ebb00)),await _0x14a56b[_0x1c1c2d(0x200)](sendInstrumentationEvent,_0x4e0445,_0x14a56b[_0x1c1c2d(0x1d0)],messageTypes[_0x1c1c2d(0x1c4)],_0x14a56b[_0x1c1c2d(0x1d8)],_0x1ebb00,_0x4e0445),process[_0x1c1c2d(0x1e5)](0x1);}catch(_0x4f77ad){const _0xea1c77=_0x1c1c2d(0x20c)+_0x4f77ad+'\x20\x0a'+JSON['stringify'](_0x4f77ad['stack'])+'\x20';logger[_0x1c1c2d(0x1d5)](_0xea1c77),process[_0x1c1c2d(0x1e5)](0x1);}};function a19_0x188e(){const _0x3c85f9=['grid','YSOgV','../../utils/createk8sClient','Adding\x20Websocket\x20listeners','Sumrj','skipTlsCertVerify','exit','server-error','ufRFs','help','9MWFzTw','readFileSync','LCAyI','ELXKs','bstackUsername','debug','../../utils/webSocketUtils','user','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','PJMCL','pSWBI','jVedo','parse','builder','aWtZo','28GgsXtN','epilogue','ydXDz','<UsernamePlaceholder>','Start\x20an\x20existing\x20Automation\x20grid.','command','CJFvE','Browserstack','DNmoe','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','1854536FPwCCB','7060iFBJxG','name','start-grid-called','replace','info','bstackAccesskey','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','skip-tls-cert-verify','body','boolean','6SpIhHV','2815640DKdQQw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','default','33720ZEKsDf','203231HRLQdG','Starting\x20grid\x20','26900IbOYyp','string','Skip\x20insecure\x20cert\x20verification.','init-not-called','region','start','ERROR','statusCode','type','username','clusterName','<PasswordPlaceholder>','INFO','Grid\x20started','../../config/logger','lSFDK','cloudProvider','QKMaQ','DxXIa','password','12805Zhvylo','NZWDg','GORPU','error','message','ZsNOd','sbtSj','4664hhNpiW','gridId','description','pavrK','../../config/constants','OAwtx'];a19_0x188e=function(){return _0x3c85f9;};return a19_0x188e();}
@@ -1 +1 @@
1
- const a20_0x4e4f4a=a20_0x7110;(function(_0x35fc6c,_0x1f005e){const _0x1b3f82=a20_0x7110,_0x35c92e=_0x35fc6c();while(!![]){try{const _0x3f40a5=-parseInt(_0x1b3f82(0xf6))/0x1+-parseInt(_0x1b3f82(0xfd))/0x2+parseInt(_0x1b3f82(0xfe))/0x3*(parseInt(_0x1b3f82(0xfc))/0x4)+-parseInt(_0x1b3f82(0xf4))/0x5+parseInt(_0x1b3f82(0xf3))/0x6+parseInt(_0x1b3f82(0xe9))/0x7*(-parseInt(_0x1b3f82(0xff))/0x8)+-parseInt(_0x1b3f82(0xf9))/0x9*(-parseInt(_0x1b3f82(0xec))/0xa);if(_0x3f40a5===_0x1f005e)break;else _0x35c92e['push'](_0x35c92e['shift']());}catch(_0x2f2240){_0x35c92e['push'](_0x35c92e['shift']());}}}(a20_0x1a77,0x77d70));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x7110(_0x46e4e2,_0x52c1fc){const _0x1a7799=a20_0x1a77();return a20_0x7110=function(_0x711016,_0x3179d1){_0x711016=_0x711016-0xe9;let _0x443077=_0x1a7799[_0x711016];return _0x443077;},a20_0x7110(_0x46e4e2,_0x52c1fc);}function a20_0x1a77(){const _0x1bcacb=['18KRbifH','stop','Stop\x20a\x20running\x20Automation\x20grid.','8lQHgyN','908438LrsDjb','253779JnwoYW','6288KfsCWx','2702MoooMi','demandCommand','desc','7123510qkFnLx','recommendCommands','builder','usage','help','strict','stop_commands','3235644cKIlSq','2821955oufVGG','handler','320292tibPlU','commandDir','epilogue'];a20_0x1a77=function(){return _0x1bcacb;};return a20_0x1a77();}exports['command']=a20_0x4e4f4a(0xfa),exports[a20_0x4e4f4a(0xeb)]=a20_0x4e4f4a(0xfb),exports[a20_0x4e4f4a(0xee)]=function(_0x5f074f){const _0x112f6f=a20_0x4e4f4a,_0x2fa14b={};_0x2fa14b['tmagx']=_0x112f6f(0xf2),_0x2fa14b['wRIro']=_0x112f6f(0xf0);const _0x1a08fc=_0x2fa14b;return _0x5f074f[_0x112f6f(0xef)](HELP_HEADER_MESSAGE[_0x112f6f(0xfa)])[_0x112f6f(0xf8)](HELP_FOOTER_MESSAGE)[_0x112f6f(0xf7)](_0x1a08fc['tmagx'])[_0x112f6f(0xea)]()[_0x112f6f(0xed)]()[_0x112f6f(0xf1)]()[_0x112f6f(0xf0)](_0x1a08fc['wRIro']);},exports[a20_0x4e4f4a(0xf5)]=function(_0x1f4db4){};
1
+ const a20_0x572a2a=a20_0x40c8;(function(_0x2fd7e3,_0x52a2cf){const _0x3c4679=a20_0x40c8,_0xe494a6=_0x2fd7e3();while(!![]){try{const _0x509064=parseInt(_0x3c4679(0x185))/0x1+parseInt(_0x3c4679(0x193))/0x2*(parseInt(_0x3c4679(0x198))/0x3)+parseInt(_0x3c4679(0x18f))/0x4+-parseInt(_0x3c4679(0x189))/0x5+parseInt(_0x3c4679(0x196))/0x6*(parseInt(_0x3c4679(0x18c))/0x7)+-parseInt(_0x3c4679(0x188))/0x8*(parseInt(_0x3c4679(0x184))/0x9)+-parseInt(_0x3c4679(0x18e))/0xa*(parseInt(_0x3c4679(0x199))/0xb);if(_0x509064===_0x52a2cf)break;else _0xe494a6['push'](_0xe494a6['shift']());}catch(_0x497ae3){_0xe494a6['push'](_0xe494a6['shift']());}}}(a20_0x1fc4,0xc875b));function a20_0x40c8(_0x558258,_0x12dd72){const _0x1fc4fc=a20_0x1fc4();return a20_0x40c8=function(_0x40c80c,_0x5b2665){_0x40c80c=_0x40c80c-0x182;let _0x111a67=_0x1fc4fc[_0x40c80c];return _0x111a67;},a20_0x40c8(_0x558258,_0x12dd72);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x572a2a(0x194));exports[a20_0x572a2a(0x197)]='stop',exports[a20_0x572a2a(0x190)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x2087f9){const _0x5fc0cf=a20_0x572a2a,_0x58f60e={};_0x58f60e[_0x5fc0cf(0x18a)]=_0x5fc0cf(0x192),_0x58f60e[_0x5fc0cf(0x187)]=_0x5fc0cf(0x191);const _0x4f570f=_0x58f60e;return _0x2087f9['usage'](HELP_HEADER_MESSAGE['stop'])[_0x5fc0cf(0x182)](HELP_FOOTER_MESSAGE)[_0x5fc0cf(0x18b)](_0x4f570f[_0x5fc0cf(0x18a)])[_0x5fc0cf(0x186)]()[_0x5fc0cf(0x183)]()[_0x5fc0cf(0x195)]()[_0x5fc0cf(0x191)](_0x4f570f[_0x5fc0cf(0x187)]);},exports[a20_0x572a2a(0x18d)]=function(_0x3f2311){};function a20_0x1fc4(){const _0x4ec13d=['srOaJ','5252528AbnfJd','1160145uKJfmN','oDhgY','commandDir','3582166VkYXyo','handler','330StRUAp','1466100lbGhtp','desc','help','stop_commands','1364620HvxVZP','../config/constants','strict','18PaJTBK','command','3SveDlk','716507ajKaRs','epilogue','recommendCommands','9EzOVaW','1275150yaChRD','demandCommand'];a20_0x1fc4=function(){return _0x4ec13d;};return a20_0x1fc4();}
@@ -1 +1 @@
1
- const a21_0x4fbfbd=a21_0x1ee9;(function(_0x43089a,_0x1474fb){const _0x4a176d=a21_0x1ee9,_0x30b6cb=_0x43089a();while(!![]){try{const _0x5dc780=-parseInt(_0x4a176d(0x171))/0x1+-parseInt(_0x4a176d(0x164))/0x2+parseInt(_0x4a176d(0x14d))/0x3+parseInt(_0x4a176d(0x181))/0x4*(-parseInt(_0x4a176d(0x18f))/0x5)+-parseInt(_0x4a176d(0x170))/0x6+-parseInt(_0x4a176d(0x166))/0x7*(-parseInt(_0x4a176d(0x169))/0x8)+parseInt(_0x4a176d(0x14b))/0x9*(parseInt(_0x4a176d(0x180))/0xa);if(_0x5dc780===_0x1474fb)break;else _0x30b6cb['push'](_0x30b6cb['shift']());}catch(_0x1002e7){_0x30b6cb['push'](_0x30b6cb['shift']());}}}(a21_0x18aa,0x39b6a));function a21_0x18aa(){const _0x43b75a=['ERROR','../../utils/instrumentationUtils','description','yGJBT','clusterName','sqGxq','avjNd','init-not-called','cloudProvider','VQydH','WebSocket','invalid-grid-id','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','replace','IgXTZ','body','DChaY','../../utils/utilityMethods','readFileSync','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','303418FmYwdV','epilogue','39326iQnfve','WzNwP','password','128UsFUlm','bstackUsername','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','hlxKa','grid','FPYxr','grid-id','143742HNKIzt','449207KMYzaM','connectionTimeout','<PasswordPlaceholder>','exit','stringify','string','FEDXC','lmxla','avdbP','info','zNIXo','JPdjU','region','existsSync','ZFnQR','168750gbuyAY','4yLRJEM','../../utils/gridComponents','../../utils/createk8sClient','unauthorised','Grid\x20stoppped.','default','CvmlH','name','VhRbi','username','user','Stopping\x20grid\x20','INFO','../../utils/webSocketUtils','217705HBKVQN','help','dIfRB','bstackAccesskey','reconnecting-websocket','boolean','debug','../../config/constants','addListeners','statusCode','error','parse','argv','usage','Skip\x20insecure\x20cert\x20verification.','type','clusterRegion','options','mKjPY','Browserstack','stop-grid-called','gridId','../../config/logger','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','rxpoj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder','desc','405EoglCs','server-error','166635rOYJrr','stack'];a21_0x18aa=function(){return _0x43b75a;};return a21_0x18aa();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4fbfbd(0x133)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x4fbfbd(0x136)),{logger}=require(a21_0x4fbfbd(0x145)),{getCredentialsPath,getGridDetails}=require(a21_0x4fbfbd(0x161)),{scaleDownHubDeployment}=require(a21_0x4fbfbd(0x182)),{sendInstrumentationEvent}=require(a21_0x4fbfbd(0x150)),webSocketUtils=require(a21_0x4fbfbd(0x18e)),{createK8sClient}=require(a21_0x4fbfbd(0x183)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x1ee9(_0xd7e7e1,_0x4f8dcc){const _0x18aaf7=a21_0x18aa();return a21_0x1ee9=function(_0x1ee987,_0x40b35b){_0x1ee987=_0x1ee987-0x133;let _0x712f2b=_0x18aaf7[_0x1ee987];return _0x712f2b;},a21_0x1ee9(_0xd7e7e1,_0x4f8dcc);}exports['command']=a21_0x4fbfbd(0x16d),exports[a21_0x4fbfbd(0x14a)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x4fbfbd(0x149)]=function(_0xba7a44){const _0x1a11f1=a21_0x4fbfbd,_0x424e5d={};_0x424e5d['WzNwP']=_0x1a11f1(0x15b),_0x424e5d[_0x1a11f1(0x189)]=_0x1a11f1(0x176),_0x424e5d[_0x1a11f1(0x17f)]=_0x1a11f1(0x13d),_0x424e5d['HkDPf']=_0x1a11f1(0x134),_0x424e5d[_0x1a11f1(0x177)]=_0x1a11f1(0x190);const _0x1527d3=_0x424e5d,_0x4dfae7={};_0x4dfae7[_0x1a11f1(0x151)]=_0x1527d3[_0x1a11f1(0x167)],_0x4dfae7[_0x1a11f1(0x13e)]=_0x1527d3[_0x1a11f1(0x189)];const _0x48c445={};_0x48c445[_0x1a11f1(0x151)]=_0x1527d3[_0x1a11f1(0x17f)],_0x48c445[_0x1a11f1(0x13e)]=_0x1527d3['HkDPf'],_0x48c445[_0x1a11f1(0x186)]=![];const _0x17756c={};return _0x17756c[_0x1a11f1(0x16f)]=_0x4dfae7,_0x17756c['skip-tls-cert-verify']=_0x48c445,_0xba7a44[_0x1a11f1(0x13c)](HELP_HEADER_MESSAGE['stop'])[_0x1a11f1(0x165)](HELP_FOOTER_MESSAGE)[_0x1a11f1(0x140)](_0x17756c)[_0x1a11f1(0x190)](_0x1527d3[_0x1a11f1(0x177)])[_0x1a11f1(0x13b)];},exports['handler']=async function(_0x418506){const _0x366486=a21_0x4fbfbd,_0x4df5fa={'CvmlH':_0x366486(0x146),'avdbP':function(_0x3b48cb){return _0x3b48cb();},'DChaY':_0x366486(0x163),'rxpoj':function(_0x2e0900,_0xe97043,_0x1f2f01,_0x28cbd3,_0x45c0a3,_0x2acc30,_0x3784c1){return _0x2e0900(_0xe97043,_0x1f2f01,_0x28cbd3,_0x45c0a3,_0x2acc30,_0x3784c1);},'mKjPY':_0x366486(0x143),'CTgff':_0x366486(0x156),'JPdjU':function(_0x40df67,_0xb4e8ea,_0x4f5e8c,_0x5441c4,_0x3d976d,_0x4780bc,_0x18da99){return _0x40df67(_0xb4e8ea,_0x4f5e8c,_0x5441c4,_0x3d976d,_0x4780bc,_0x18da99);},'XPNqd':'<UsernamePlaceholder>','lmxla':_0x366486(0x173),'sqGxq':'Adding\x20Websocket\x20listeners','lIACF':function(_0x40c908,_0x2a00c5,_0xda3426,_0x1d2a13){return _0x40c908(_0x2a00c5,_0xda3426,_0x1d2a13);},'FPYxr':function(_0x2cf723,_0x2142f3,_0x55342a,_0x23f826,_0x1fed55,_0x56f778,_0xd9353d){return _0x2cf723(_0x2142f3,_0x55342a,_0x23f826,_0x1fed55,_0x56f778,_0xd9353d);},'yGJBT':function(_0x46b56a,_0x3858cd,_0x5cecf3){return _0x46b56a(_0x3858cd,_0x5cecf3);},'WCBQu':function(_0x5c8925,_0x4d3fc7,_0x226a02){return _0x5c8925(_0x4d3fc7,_0x226a02);},'zNIXo':_0x366486(0x185),'IgXTZ':function(_0x145ff4,_0x1d59e2){return _0x145ff4===_0x1d59e2;},'VQydH':_0x366486(0x15c),'dIfRB':function(_0x13de51,_0x345c68,_0x3eeb07,_0x121ec4,_0x4cd037,_0x10cb03,_0x259652){return _0x13de51(_0x345c68,_0x3eeb07,_0x121ec4,_0x4cd037,_0x10cb03,_0x259652);},'hlxKa':_0x366486(0x184),'avjNd':_0x366486(0x15a),'PYpcN':_0x366486(0x14c)};let _0x53be85;try{!_0x418506[_0x366486(0x144)]&&(logger['error'](_0x4df5fa[_0x366486(0x187)]),process['exit'](0x1));!fs[_0x366486(0x17e)](_0x4df5fa['avdbP'](getCredentialsPath))&&(logger[_0x366486(0x139)](_0x4df5fa[_0x366486(0x160)]),await _0x4df5fa[_0x366486(0x147)](sendInstrumentationEvent,_0x418506,_0x4df5fa[_0x366486(0x141)],messageTypes[_0x366486(0x14f)],_0x4df5fa['CTgff'],null,_0x418506),process['exit'](0x1));logger[_0x366486(0x17a)](_0x366486(0x18c)+_0x418506[_0x366486(0x144)]),await _0x4df5fa[_0x366486(0x17c)](sendInstrumentationEvent,_0x418506,_0x4df5fa[_0x366486(0x141)],messageTypes[_0x366486(0x18d)],null,null,_0x418506);const _0x1ebbc2=JSON[_0x366486(0x13a)](fs[_0x366486(0x162)](_0x4df5fa[_0x366486(0x179)](getCredentialsPath)));global_registry[_0x366486(0x16a)]=_0x1ebbc2[_0x366486(0x142)][_0x366486(0x18a)],global_registry[_0x366486(0x192)]=_0x1ebbc2[_0x366486(0x142)]['password'];const _0x152d12=WS_ENDPOINT[_0x366486(0x15d)](_0x4df5fa['XPNqd'],_0x1ebbc2[_0x366486(0x142)][_0x366486(0x18a)])[_0x366486(0x15d)](_0x4df5fa[_0x366486(0x178)],_0x1ebbc2[_0x366486(0x142)][_0x366486(0x168)]),_0x54279a={};_0x54279a[_0x366486(0x159)]=ws,_0x54279a[_0x366486(0x172)]=0x36ee80,_0x53be85=new ReconnectingWebSocket(_0x152d12,[],_0x54279a),logger[_0x366486(0x135)](_0x4df5fa[_0x366486(0x154)]),webSocketUtils[_0x366486(0x137)](_0x53be85,_0x418506[_0x366486(0x18b)],_0x418506['password']);const [_0x413212,_0x506a7b]=await _0x4df5fa['lIACF'](getGridDetails,_0x1ebbc2[_0x366486(0x142)]['username'],_0x1ebbc2['Browserstack'][_0x366486(0x168)],_0x418506[_0x366486(0x144)]);if(_0x506a7b){const _0x18dacc=_0x506a7b[_0x366486(0x17a)];global_registry[_0x366486(0x157)]=_0x18dacc[_0x366486(0x157)],global_registry[_0x366486(0x13f)]=_0x18dacc[_0x366486(0x17d)],global_registry[_0x366486(0x153)]=_0x18dacc[_0x366486(0x153)];const _0x33cb69=await _0x4df5fa[_0x366486(0x16e)](getCloudProviderObject,_0x18dacc[_0x366486(0x157)],_0x18dacc['clusterName'],_0x18dacc[_0x366486(0x188)],_0x53be85,webSocketUtils,_0x418506),[_0x2b3ac0,_0x421cb3,_0x4eb4e7,_0xd84d0c,_0x51b260,_0x222d55]=await _0x4df5fa[_0x366486(0x152)](createK8sClient,_0x33cb69,_0x418506['skipTlsCertVerify']);await _0x4df5fa['WCBQu'](scaleDownHubDeployment,_0x421cb3,_0x18dacc[_0x366486(0x188)]),logger[_0x366486(0x17a)](_0x4df5fa[_0x366486(0x17b)]),process[_0x366486(0x174)](0x0);}_0x4df5fa[_0x366486(0x15e)](_0x413212['statusCode'],0x191)&&(logger[_0x366486(0x139)](_0x4df5fa[_0x366486(0x158)]),await _0x4df5fa[_0x366486(0x191)](sendInstrumentationEvent,_0x418506,_0x4df5fa[_0x366486(0x141)],messageTypes[_0x366486(0x14f)],_0x4df5fa[_0x366486(0x16c)],null,_0x418506),process[_0x366486(0x174)](0x1)),_0x4df5fa[_0x366486(0x15e)](_0x413212[_0x366486(0x138)],0x190)&&(logger['error'](JSON['parse'](_0x413212[_0x366486(0x15f)])['message']),await _0x4df5fa['dIfRB'](sendInstrumentationEvent,_0x418506,_0x4df5fa[_0x366486(0x141)],messageTypes[_0x366486(0x14f)],_0x4df5fa[_0x366486(0x155)],null,_0x418506),process[_0x366486(0x174)](0x1)),logger[_0x366486(0x139)](_0x366486(0x148)+JSON[_0x366486(0x175)](_0x413212)),await _0x4df5fa[_0x366486(0x17c)](sendInstrumentationEvent,_0x418506,_0x4df5fa['mKjPY'],messageTypes['ERROR'],_0x4df5fa['PYpcN'],_0x413212,_0x418506),process[_0x366486(0x174)](0x1);}catch(_0x375456){const _0x20e129=_0x366486(0x16b)+_0x375456+'\x20\x0a'+JSON[_0x366486(0x175)](_0x375456[_0x366486(0x14e)])+'\x20';logger[_0x366486(0x139)](_0x20e129),process[_0x366486(0x174)](0x1);}};
1
+ const a21_0x5310f1=a21_0x3000;function a21_0x3000(_0x57e94a,_0x199cbd){const _0x4d482=a21_0x4d48();return a21_0x3000=function(_0x30002a,_0x51cd34){_0x30002a=_0x30002a-0x1b5;let _0x4d8440=_0x4d482[_0x30002a];return _0x4d8440;},a21_0x3000(_0x57e94a,_0x199cbd);}(function(_0x4a7230,_0x55c615){const _0x445aa3=a21_0x3000,_0x1ca075=_0x4a7230();while(!![]){try{const _0xfd69f1=parseInt(_0x445aa3(0x1d0))/0x1*(-parseInt(_0x445aa3(0x1d2))/0x2)+parseInt(_0x445aa3(0x1ce))/0x3*(-parseInt(_0x445aa3(0x1c7))/0x4)+parseInt(_0x445aa3(0x1fe))/0x5*(parseInt(_0x445aa3(0x1eb))/0x6)+parseInt(_0x445aa3(0x1ec))/0x7*(parseInt(_0x445aa3(0x1b8))/0x8)+parseInt(_0x445aa3(0x1cf))/0x9*(-parseInt(_0x445aa3(0x1e2))/0xa)+parseInt(_0x445aa3(0x213))/0xb*(-parseInt(_0x445aa3(0x1ff))/0xc)+-parseInt(_0x445aa3(0x1c5))/0xd*(-parseInt(_0x445aa3(0x1e7))/0xe);if(_0xfd69f1===_0x55c615)break;else _0x1ca075['push'](_0x1ca075['shift']());}catch(_0x21c5a0){_0x1ca075['push'](_0x1ca075['shift']());}}}(a21_0x4d48,0x7c57a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5310f1(0x203)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x5310f1(0x1db)),{getCredentialsPath,getGridDetails}=require(a21_0x5310f1(0x1d4)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x5310f1(0x21b)),webSocketUtils=require(a21_0x5310f1(0x207)),{createK8sClient}=require(a21_0x5310f1(0x1e9)),{getCloudProviderObject}=require(a21_0x5310f1(0x1f6));exports[a21_0x5310f1(0x212)]=a21_0x5310f1(0x1e0),exports['desc']=a21_0x5310f1(0x1b5),exports[a21_0x5310f1(0x20b)]=function(_0x562d2d){const _0x29f66a=a21_0x5310f1,_0x5f2d26={};_0x5f2d26[_0x29f66a(0x1be)]=_0x29f66a(0x1ba),_0x5f2d26[_0x29f66a(0x1c9)]=_0x29f66a(0x206),_0x5f2d26[_0x29f66a(0x1e6)]=_0x29f66a(0x202),_0x5f2d26[_0x29f66a(0x21a)]=_0x29f66a(0x20c),_0x5f2d26[_0x29f66a(0x214)]=_0x29f66a(0x1c1);const _0x454dd2=_0x5f2d26,_0x400e7b={};_0x400e7b[_0x29f66a(0x1d5)]=_0x454dd2[_0x29f66a(0x1be)],_0x400e7b['type']=_0x454dd2[_0x29f66a(0x1c9)];const _0x1b7c0b={};_0x1b7c0b['description']=_0x454dd2[_0x29f66a(0x1e6)],_0x1b7c0b[_0x29f66a(0x1fd)]=_0x454dd2[_0x29f66a(0x21a)],_0x1b7c0b[_0x29f66a(0x1f8)]=![];const _0x188d28={};return _0x188d28[_0x29f66a(0x218)]=_0x400e7b,_0x188d28[_0x29f66a(0x1c8)]=_0x1b7c0b,_0x562d2d[_0x29f66a(0x1f7)](HELP_HEADER_MESSAGE[_0x29f66a(0x1c2)])[_0x29f66a(0x200)](HELP_FOOTER_MESSAGE)[_0x29f66a(0x1df)](_0x188d28)[_0x29f66a(0x1c1)](_0x454dd2[_0x29f66a(0x214)])[_0x29f66a(0x1e1)];},exports[a21_0x5310f1(0x21c)]=async function(_0x1ff503){const _0x5305ba=a21_0x5310f1,_0x3ef672={'XQwiO':_0x5305ba(0x1f9),'vucPu':function(_0x55e66b){return _0x55e66b();},'MXPdM':_0x5305ba(0x219),'qfGrY':function(_0x4ff39a,_0x4d8c1d,_0x371a06,_0x4bf89f,_0x515ca2,_0x6de124,_0x148dde){return _0x4ff39a(_0x4d8c1d,_0x371a06,_0x4bf89f,_0x515ca2,_0x6de124,_0x148dde);},'JvUfM':_0x5305ba(0x1f5),'gZzpX':'init-not-called','Yvkpn':function(_0x1dc0cb,_0x567270,_0xd571d8,_0x2b72af,_0x6af2d1,_0x497b30,_0x367f91){return _0x1dc0cb(_0x567270,_0xd571d8,_0x2b72af,_0x6af2d1,_0x497b30,_0x367f91);},'Swuam':_0x5305ba(0x1c3),'CIePr':_0x5305ba(0x1fa),'EFiAS':_0x5305ba(0x216),'fAkfy':function(_0x5d2553,_0x41d617,_0x3a60f8,_0x3a9a18){return _0x5d2553(_0x41d617,_0x3a60f8,_0x3a9a18);},'AnVeB':function(_0x4efc19,_0x4d2ec0,_0x384a38,_0x43df81,_0x6c8ffa,_0x2f4c30,_0x4d88bd){return _0x4efc19(_0x4d2ec0,_0x384a38,_0x43df81,_0x6c8ffa,_0x2f4c30,_0x4d88bd);},'chjVr':function(_0x112e7f,_0x5e4acb,_0x4ffe42){return _0x112e7f(_0x5e4acb,_0x4ffe42);},'UYHiu':function(_0x3a3f88,_0x3d0924,_0x45a8d9){return _0x3a3f88(_0x3d0924,_0x45a8d9);},'pTzHl':_0x5305ba(0x1f1),'TtNVm':function(_0x3ae832,_0x38dd4a){return _0x3ae832===_0x38dd4a;},'bFMKQ':_0x5305ba(0x1f4),'IueMl':function(_0x46ca11,_0x446b10,_0x221d99,_0x887e37,_0x390d48,_0x2c11b7,_0x1a5d31){return _0x46ca11(_0x446b10,_0x221d99,_0x887e37,_0x390d48,_0x2c11b7,_0x1a5d31);},'OsGEE':_0x5305ba(0x1ed),'HvrTG':function(_0x28f8b9,_0x441c86,_0xebbb04,_0x628a05,_0xf43133,_0x218480,_0x15a2ab){return _0x28f8b9(_0x441c86,_0xebbb04,_0x628a05,_0xf43133,_0x218480,_0x15a2ab);},'JgbFL':_0x5305ba(0x1cd),'RFHVK':function(_0x5a7c61,_0x59b971,_0x502166,_0xcb00f4,_0x864408,_0x2b801a,_0x31ea62){return _0x5a7c61(_0x59b971,_0x502166,_0xcb00f4,_0x864408,_0x2b801a,_0x31ea62);},'ZjBMj':_0x5305ba(0x1cb)};let _0x57c586;try{!_0x1ff503[_0x5305ba(0x1de)]&&(logger['error'](_0x3ef672[_0x5305ba(0x1b9)]),process['exit'](0x1));!fs[_0x5305ba(0x1ef)](_0x3ef672['vucPu'](getCredentialsPath))&&(logger[_0x5305ba(0x1da)](_0x3ef672[_0x5305ba(0x209)]),await _0x3ef672['qfGrY'](sendInstrumentationEvent,_0x1ff503,_0x3ef672[_0x5305ba(0x211)],messageTypes[_0x5305ba(0x1cc)],_0x3ef672['gZzpX'],null,_0x1ff503),process[_0x5305ba(0x1bf)](0x1));logger[_0x5305ba(0x205)](_0x5305ba(0x20e)+_0x1ff503[_0x5305ba(0x1de)]),await _0x3ef672[_0x5305ba(0x1fc)](sendInstrumentationEvent,_0x1ff503,_0x3ef672['JvUfM'],messageTypes[_0x5305ba(0x215)],null,null,_0x1ff503);const _0x45a4b7=JSON[_0x5305ba(0x1d3)](fs[_0x5305ba(0x1d8)](_0x3ef672[_0x5305ba(0x1b6)](getCredentialsPath)));global_registry[_0x5305ba(0x1e4)]=_0x45a4b7[_0x5305ba(0x1e8)][_0x5305ba(0x1dd)],global_registry['bstackAccesskey']=_0x45a4b7['Browserstack'][_0x5305ba(0x1c4)];const _0x43c929=WS_ENDPOINT[_0x5305ba(0x1ca)](_0x3ef672[_0x5305ba(0x20d)],_0x45a4b7[_0x5305ba(0x1e8)][_0x5305ba(0x1dd)])[_0x5305ba(0x1ca)](_0x3ef672[_0x5305ba(0x204)],_0x45a4b7[_0x5305ba(0x1e8)][_0x5305ba(0x1c4)]),_0x11c770={};_0x11c770[_0x5305ba(0x1ea)]=ws,_0x11c770[_0x5305ba(0x1f3)]=0x36ee80,_0x57c586=new ReconnectingWebSocket(_0x43c929,[],_0x11c770),logger[_0x5305ba(0x1c0)](_0x3ef672['EFiAS']),webSocketUtils[_0x5305ba(0x1e5)](_0x57c586,_0x1ff503[_0x5305ba(0x1b7)],_0x1ff503[_0x5305ba(0x1c4)]);const [_0x104d7c,_0x3cbfd6]=await _0x3ef672[_0x5305ba(0x1ee)](getGridDetails,_0x45a4b7['Browserstack'][_0x5305ba(0x1dd)],_0x45a4b7[_0x5305ba(0x1e8)][_0x5305ba(0x1c4)],_0x1ff503[_0x5305ba(0x1de)]);if(_0x3cbfd6){const _0x2c4df0=_0x3cbfd6[_0x5305ba(0x205)];global_registry[_0x5305ba(0x217)]=_0x2c4df0['cloudProvider'],global_registry[_0x5305ba(0x1bc)]=_0x2c4df0['region'],global_registry['clusterName']=_0x2c4df0[_0x5305ba(0x1bb)];const _0x3b3bea=await _0x3ef672['AnVeB'](getCloudProviderObject,_0x2c4df0[_0x5305ba(0x217)],_0x2c4df0[_0x5305ba(0x1bb)],_0x2c4df0[_0x5305ba(0x20f)],_0x57c586,webSocketUtils,_0x1ff503),[_0x3ea75a,_0x4b6663,_0x5e5db0,_0xc42df2,_0x5d5062,_0x1b8905]=await _0x3ef672[_0x5305ba(0x1dc)](createK8sClient,_0x3b3bea,_0x1ff503[_0x5305ba(0x1f2)]);await _0x3ef672[_0x5305ba(0x1fb)](scaleDownHubDeployment,_0x4b6663,_0x2c4df0['name']),logger[_0x5305ba(0x205)](_0x3ef672['pTzHl']),process[_0x5305ba(0x1bf)](0x0);}_0x3ef672[_0x5305ba(0x1d7)](_0x104d7c[_0x5305ba(0x1c6)],0x191)&&(logger[_0x5305ba(0x1da)](_0x3ef672[_0x5305ba(0x208)]),await _0x3ef672[_0x5305ba(0x1d1)](sendInstrumentationEvent,_0x1ff503,_0x3ef672[_0x5305ba(0x211)],messageTypes[_0x5305ba(0x1cc)],_0x3ef672[_0x5305ba(0x1f0)],null,_0x1ff503),process[_0x5305ba(0x1bf)](0x1)),_0x3ef672[_0x5305ba(0x1d7)](_0x104d7c[_0x5305ba(0x1c6)],0x190)&&(logger[_0x5305ba(0x1da)](JSON[_0x5305ba(0x1d3)](_0x104d7c[_0x5305ba(0x1d6)])[_0x5305ba(0x1bd)]),await _0x3ef672['HvrTG'](sendInstrumentationEvent,_0x1ff503,_0x3ef672[_0x5305ba(0x211)],messageTypes[_0x5305ba(0x1cc)],_0x3ef672['JgbFL'],null,_0x1ff503),process['exit'](0x1)),logger[_0x5305ba(0x1da)](_0x5305ba(0x201)+JSON[_0x5305ba(0x1e3)](_0x104d7c)),await _0x3ef672[_0x5305ba(0x210)](sendInstrumentationEvent,_0x1ff503,_0x3ef672['JvUfM'],messageTypes[_0x5305ba(0x1cc)],_0x3ef672['ZjBMj'],_0x104d7c,_0x1ff503),process[_0x5305ba(0x1bf)](0x1);}catch(_0x97fef){const _0x526975=_0x5305ba(0x1d9)+_0x97fef+'\x20\x0a'+JSON[_0x5305ba(0x1e3)](_0x97fef[_0x5305ba(0x20a)])+'\x20';logger[_0x5305ba(0x1da)](_0x526975),process['exit'](0x1);}};function a21_0x4d48(){const _0x2ff9f6=['vucPu','user','200sRQbUE','XQwiO','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','clusterName','clusterRegion','message','LumDd','exit','debug','help','stop','<UsernamePlaceholder>','password','26wdTEZu','statusCode','84164OPzpcS','skip-tls-cert-verify','GJiiv','replace','server-error','ERROR','invalid-grid-id','21gUtrpV','294939vVkUpn','466657oxTymC','IueMl','2chKpYT','parse','../../utils/utilityMethods','description','body','TtNVm','readFileSync','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','error','../../config/logger','chjVr','username','gridId','options','grid','argv','10SRdWAN','stringify','bstackUsername','addListeners','WFsnR','5198956LnsQxh','Browserstack','../../utils/createk8sClient','WebSocket','492BqNuRQ','270515RsJuQA','unauthorised','fAkfy','existsSync','OsGEE','Grid\x20stoppped.','skipTlsCertVerify','connectionTimeout','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stop-grid-called','../../cloudproviders/utils','usage','default','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','<PasswordPlaceholder>','UYHiu','Yvkpn','type','24615WHJKHP','12zTYxCj','epilogue','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Skip\x20insecure\x20cert\x20verification.','reconnecting-websocket','CIePr','info','string','../../utils/webSocketUtils','bFMKQ','MXPdM','stack','builder','boolean','Swuam','Stopping\x20grid\x20','name','RFHVK','JvUfM','command','10521478beTtck','oisNz','INFO','Adding\x20Websocket\x20listeners','cloudProvider','grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cKlfS','../../utils/instrumentationUtils','handler','Stop\x20a\x20running\x20Automation\x20grid.'];a21_0x4d48=function(){return _0x2ff9f6;};return a21_0x4d48();}
@@ -1 +1 @@
1
- const a22_0x359854=a22_0x2eaf;(function(_0xca0a30,_0x1447c8){const _0x4775a6=a22_0x2eaf,_0x436cf7=_0xca0a30();while(!![]){try{const _0x4e551e=parseInt(_0x4775a6(0x167))/0x1*(-parseInt(_0x4775a6(0x128))/0x2)+parseInt(_0x4775a6(0x16a))/0x3*(-parseInt(_0x4775a6(0x148))/0x4)+parseInt(_0x4775a6(0x142))/0x5*(-parseInt(_0x4775a6(0x129))/0x6)+-parseInt(_0x4775a6(0x164))/0x7+-parseInt(_0x4775a6(0x104))/0x8+-parseInt(_0x4775a6(0x11c))/0x9*(-parseInt(_0x4775a6(0x14a))/0xa)+parseInt(_0x4775a6(0x13d))/0xb;if(_0x4e551e===_0x1447c8)break;else _0x436cf7['push'](_0x436cf7['shift']());}catch(_0x815e2e){_0x436cf7['push'](_0x436cf7['shift']());}}}(a22_0x27b8,0xdb5f9),require(a22_0x359854(0x15c))[a22_0x359854(0x157)]());let gridURL=a22_0x359854(0x15b),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x359854(0x118);const _env=(process[a22_0x359854(0x168)][a22_0x359854(0x111)]||a22_0x359854(0x13a))[a22_0x359854(0x119)]();if(_env===a22_0x359854(0x147)||_env==='stag')gridURL=a22_0x359854(0x159),bsApiUrl=a22_0x359854(0x137),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env==='pre-prod')&&(gridURL=a22_0x359854(0x110),bsApiUrl=a22_0x359854(0x11d),agApiUrl=a22_0x359854(0x115));exports[a22_0x359854(0x113)]=process['env'][a22_0x359854(0x113)]||gridURL,exports[a22_0x359854(0x11f)]=process[a22_0x359854(0x168)][a22_0x359854(0x11f)]||bsApiUrl,exports['AG_API_URL']=process['env'][a22_0x359854(0x109)]||agApiUrl,exports['WS_ENDPOINT']='wss://'+this[a22_0x359854(0x109)]+a22_0x359854(0x125),exports[a22_0x359854(0x14d)]='credentials',exports[a22_0x359854(0x15a)]=a22_0x359854(0x116),exports[a22_0x359854(0x16b)]=a22_0x359854(0x12b),exports[a22_0x359854(0x103)]='aws',exports[a22_0x359854(0x13c)]=a22_0x359854(0x13e),exports[a22_0x359854(0x121)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x359854(0x117)]=a22_0x359854(0x154),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports['AZURE']=a22_0x359854(0x165),exports[a22_0x359854(0x10e)]=a22_0x359854(0x107),exports[a22_0x359854(0x11e)]=[this['AWS'],this[a22_0x359854(0x138)],this[a22_0x359854(0x10e)]];const a22_0x48f3e9={};function a22_0x2eaf(_0x3de4bd,_0xc05c3e){const _0x27b892=a22_0x27b8();return a22_0x2eaf=function(_0x2eafd9,_0x3b5bb5){_0x2eafd9=_0x2eafd9-0x102;let _0x5acdb0=_0x27b892[_0x2eafd9];return _0x5acdb0;},a22_0x2eaf(_0x3de4bd,_0xc05c3e);}a22_0x48f3e9[a22_0x359854(0x155)]=a22_0x359854(0x151),a22_0x48f3e9[a22_0x359854(0x133)]=a22_0x359854(0x10d);const a22_0x4ffc79={};a22_0x4ffc79[a22_0x359854(0x155)]=a22_0x359854(0x130),a22_0x4ffc79['Value']=a22_0x359854(0x131);const common_hst_tags_list=[a22_0x48f3e9,a22_0x4ffc79];if(process['env']['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x359854(0x168)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x359854(0x122)](',');parsedTags['forEach'](_0x5cd70d=>{const _0x418900=a22_0x359854,_0x365ea9=_0x5cd70d[_0x418900(0x122)](':'),_0x5af2f6={};_0x5af2f6['Key']=_0x365ea9[0x0],_0x5af2f6[_0x418900(0x133)]=_0x365ea9[0x1],common_hst_tags_list[_0x418900(0x12e)](_0x5af2f6);});}exports[a22_0x359854(0x12c)]=common_hst_tags_list;const a22_0x35e6e4={};a22_0x35e6e4['browserstack:managedBy']=a22_0x359854(0x10d),a22_0x35e6e4[a22_0x359854(0x130)]=a22_0x359854(0x131),exports[a22_0x359854(0x152)]=a22_0x35e6e4,exports[a22_0x359854(0x156)]=[this['AWS']];const a22_0x26a95c={};a22_0x26a95c['LOG']=a22_0x359854(0x158),a22_0x26a95c[a22_0x359854(0x145)]=a22_0x359854(0x124),a22_0x26a95c[a22_0x359854(0x11a)]=a22_0x359854(0x15e),a22_0x26a95c['CLI_RUN_STARTED']=a22_0x359854(0x10f),a22_0x26a95c['CLI_RUN_FINISHED']=a22_0x359854(0x13f),exports['WS_EVENTS']=a22_0x26a95c,exports['global_registry']={},exports[a22_0x359854(0x14f)]=a22_0x359854(0x136);const a22_0x21090c={};a22_0x21090c['root']=a22_0x359854(0x140)+this[a22_0x359854(0x14f)],a22_0x21090c[a22_0x359854(0x11b)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x359854(0x14f)],a22_0x21090c[a22_0x359854(0x132)]=a22_0x359854(0x149)+this[a22_0x359854(0x14f)],a22_0x21090c[a22_0x359854(0x146)]=a22_0x359854(0x10c)+this[a22_0x359854(0x14f)],a22_0x21090c[a22_0x359854(0x139)]={},a22_0x21090c['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x21090c[a22_0x359854(0x153)]=a22_0x359854(0x143)+this['LINK_MESSAGE'],a22_0x21090c[a22_0x359854(0x123)]=a22_0x359854(0x13b)+this['LINK_MESSAGE'],a22_0x21090c[a22_0x359854(0x102)]=a22_0x359854(0x144)+this[a22_0x359854(0x14f)],a22_0x21090c[a22_0x359854(0x14c)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x21090c[a22_0x359854(0x139)]['root']=a22_0x359854(0x135)+this[a22_0x359854(0x14f)],a22_0x21090c[a22_0x359854(0x139)][a22_0x359854(0x15d)]=a22_0x359854(0x162)+this[a22_0x359854(0x14f)],a22_0x21090c[a22_0x359854(0x139)]['gridProfile']=a22_0x359854(0x14b)+this[a22_0x359854(0x14f)],exports[a22_0x359854(0x112)]=a22_0x21090c,exports[a22_0x359854(0x14e)]=a22_0x359854(0x106);const a22_0x38b285={};a22_0x38b285[a22_0x359854(0x127)]='success',a22_0x38b285[a22_0x359854(0x166)]=a22_0x359854(0x12d),a22_0x38b285[a22_0x359854(0x114)]=a22_0x359854(0x15f),a22_0x38b285[a22_0x359854(0x160)]=a22_0x359854(0x141),a22_0x38b285[a22_0x359854(0x120)]='unknown',a22_0x38b285['NULL']=null,exports[a22_0x359854(0x108)]=a22_0x38b285,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x359854(0x105);const a22_0xba8ec5={};a22_0xba8ec5[a22_0x359854(0x10b)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x923ec={};a22_0x923ec['pre-check']=a22_0xba8ec5,exports['MessageDescription']=a22_0x923ec,exports[a22_0x359854(0x12a)]=a22_0x359854(0x161);const a22_0x4023c4={};function a22_0x27b8(){const _0x57462a=['AZURE','list','prod','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','CLUSTER_DEP_STACK_NAME','31951117zbMYyi','BSTACK-ATS-CLUSTER','cliRunFinished','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','warning','265OpvFZh','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','RESOURCES','create','staging','29352LRFVJA','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','10FVSfvi','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','pre_check','CP_CONFIG_FILE','HELP_FOOTER_MESSAGE','LINK_MESSAGE','us-east-1','browserstack:managedBy','HST_CLUSTER_TAGS','connect','BSTACK-ATS-CLUSTER-HUB-HA','Key','SUPPORTED_CLOUD_PROVIDERS','config','log','grid-devhst.bsstag.com','IAM_USER_NAME','grid.browserstack.com','dotenv','grid','gridUrl','info','WARNING','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','aws','1527134Tsfkvi','azure','ERROR','1BHVYic','env','CLOUD_PROVIDER','189yeRIAf','DEFAULT_GRID_NAME','stop','AWS','12177736sLLwcK','[REDACTED]','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','gcp','messageTypes','AG_API_URL','CLUSTER','grid-profile','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BrowserStack','GCP','cliRunStarted','grid-preprod.bsstag.com','BROWSERSTACK_ENV','HELP_HEADER_MESSAGE','DASHBOARD_ENDPOINT','INFO','grid-api-preprod.bsstag.com','BrowserStackIAMUser','CLUSTER_HUB_HA_STACK_NAME','grid-api.browserstack.com','toLowerCase','GRID_URL','init','11243430mCmZWQ','api-preprod.bsstag.com','ALL_SUPPORTED_CLOUD_PROVIDERS','BS_API_URL','UNKNOWN','CLUSTER_AUTOSCALER_STACK_NAME','split','start','resourceInfo','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','high-scale-grid-cluster','SUCCESS','1190708UgxOTl','51774cIsJHS','TRIAL_GRID_URL','high-scale-grid','COMMON_HST_TAGS','error','push','DEFAULT_CLUSTER_DETAILS','browserstack:service','BrowserStack-Automate-TurboScale','configure','Value','REGION','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','api-devhst.bsstag.com'];a22_0x27b8=function(){return _0x57462a;};return a22_0x27b8();}a22_0x4023c4[a22_0x359854(0x10a)]=a22_0x359854(0x126),a22_0x4023c4[a22_0x359854(0x169)]=a22_0x359854(0x163),a22_0x4023c4[a22_0x359854(0x134)]=a22_0x359854(0x150),exports[a22_0x359854(0x12f)]=a22_0x4023c4;
1
+ const a22_0x14ab28=a22_0x1247;(function(_0x5d0a05,_0x3be54f){const _0xebba09=a22_0x1247,_0x12bd1c=_0x5d0a05();while(!![]){try{const _0x39d625=-parseInt(_0xebba09(0x92))/0x1*(-parseInt(_0xebba09(0xc6))/0x2)+-parseInt(_0xebba09(0x94))/0x3+-parseInt(_0xebba09(0x9f))/0x4+parseInt(_0xebba09(0xdb))/0x5+-parseInt(_0xebba09(0x9b))/0x6+-parseInt(_0xebba09(0xe2))/0x7+parseInt(_0xebba09(0xcf))/0x8;if(_0x39d625===_0x3be54f)break;else _0x12bd1c['push'](_0x12bd1c['shift']());}catch(_0x58fb77){_0x12bd1c['push'](_0x12bd1c['shift']());}}}(a22_0x2a1f,0xb5eda),require(a22_0x14ab28(0xe1))['config']());let gridURL=a22_0x14ab28(0xb9),bsApiUrl=a22_0x14ab28(0xc9),agApiUrl=a22_0x14ab28(0xd6);const _env=(process['env']['BROWSERSTACK_ENV']||a22_0x14ab28(0xb1))[a22_0x14ab28(0xbd)]();if(_env==='staging'||_env===a22_0x14ab28(0xc1))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x14ab28(0xc0)||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x14ab28(0xe3),agApiUrl=a22_0x14ab28(0xc3));exports[a22_0x14ab28(0xda)]=process[a22_0x14ab28(0xb0)][a22_0x14ab28(0xda)]||gridURL,exports[a22_0x14ab28(0xc5)]=process[a22_0x14ab28(0xb0)][a22_0x14ab28(0xc5)]||bsApiUrl,exports[a22_0x14ab28(0x8a)]=process[a22_0x14ab28(0xb0)][a22_0x14ab28(0x8a)]||agApiUrl,exports[a22_0x14ab28(0xbb)]=a22_0x14ab28(0xb8)+this[a22_0x14ab28(0x8a)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x14ab28(0xb3)]=a22_0x14ab28(0xbe),exports[a22_0x14ab28(0xde)]='BrowserStackIAMUser',exports[a22_0x14ab28(0xcc)]='high-scale-grid',exports['AWS']='aws',exports[a22_0x14ab28(0xa3)]='BSTACK-ATS-CLUSTER',exports[a22_0x14ab28(0x89)]=a22_0x14ab28(0xd8),exports[a22_0x14ab28(0xb5)]=a22_0x14ab28(0x8d),exports[a22_0x14ab28(0xac)]=a22_0x14ab28(0x85),exports['AZURE']='azure',exports['GCP']=a22_0x14ab28(0xad),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x14ab28(0x86)],this[a22_0x14ab28(0x97)],this[a22_0x14ab28(0xd2)]];const a22_0x33bb76={};a22_0x33bb76[a22_0x14ab28(0xc4)]=a22_0x14ab28(0xe0),a22_0x33bb76[a22_0x14ab28(0x8b)]=a22_0x14ab28(0xa2);const a22_0x3ce9f5={};a22_0x3ce9f5[a22_0x14ab28(0xc4)]=a22_0x14ab28(0xa8),a22_0x3ce9f5['Value']=a22_0x14ab28(0xc7);const common_hst_tags_list=[a22_0x33bb76,a22_0x3ce9f5];if(process[a22_0x14ab28(0xb0)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x14ab28(0xb0)][a22_0x14ab28(0xa6)][a22_0x14ab28(0xb2)](',');parsedTags[a22_0x14ab28(0x90)](_0x3ae101=>{const _0x566262=a22_0x14ab28,_0x209d58=_0x3ae101[_0x566262(0xb2)](':'),_0x31d993={};_0x31d993[_0x566262(0xc4)]=_0x209d58[0x0],_0x31d993[_0x566262(0x8b)]=_0x209d58[0x1],common_hst_tags_list['push'](_0x31d993);});}exports[a22_0x14ab28(0x9c)]=common_hst_tags_list;const a22_0x25bfe6={};a22_0x25bfe6['browserstack:managedBy']=a22_0x14ab28(0xa2),a22_0x25bfe6[a22_0x14ab28(0xa8)]=a22_0x14ab28(0xc7),exports[a22_0x14ab28(0xa4)]=a22_0x25bfe6,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x14ab28(0x86)]];function a22_0x1247(_0x36f022,_0x4344c7){const _0x2a1f2b=a22_0x2a1f();return a22_0x1247=function(_0x12473d,_0xb46d43){_0x12473d=_0x12473d-0x84;let _0x361d10=_0x2a1f2b[_0x12473d];return _0x361d10;},a22_0x1247(_0x36f022,_0x4344c7);}const a22_0x15e580={};function a22_0x2a1f(){const _0x53a0c0=['CLUSTER','preprod','stag','connect','grid-api-preprod.bsstag.com','Key','BS_API_URL','2ixOGpd','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','api.browserstack.com','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','DEFAULT_GRID_NAME','CLI_RUN_STARTED','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','18743048TUuASg','grid-profile','CLI_RUN_FINISHED','GCP','cliRunStarted','RESOURCES','grid','grid-api.browserstack.com','cliRunFinished','BSTACK-ATS-CLUSTER-AUTOSCALER','LINK_MESSAGE','DASHBOARD_ENDPOINT','751075ZzCOaY','[REDACTED]','NULL','IAM_USER_NAME','SUCCESS','browserstack:managedBy','dotenv','931427gVDHQo','api-preprod.bsstag.com','GRID_URL','INFO','LOG','browserstack-turboscale-grid','AWS','DEFAULT_CLUSTER_DETAILS','start','CLUSTER_AUTOSCALER_STACK_NAME','AG_API_URL','Value','MessageDescription','BSTACK-ATS-CLUSTER-HUB-HA','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','RAW_ARGS_REGEX','forEach','pre_check','54238XnpBdl','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','2544510hprYRB','error','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','AZURE','gridUrl','list','unknown','4380072SdGMXs','COMMON_HST_TAGS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','init','363652UJBMwP','pre-check','us-east-1','BrowserStack','CLUSTER_DEP_STACK_NAME','HST_CLUSTER_TAGS','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','TURBOSCALE_CUSTOM_TAGS','info','browserstack:service','high-scale-grid-cluster','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','gridProfile','TURBOSCALE_DEPLOYMENT','gcp','success','root','env','prod','split','CP_CONFIG_FILE','CLI_ARGS_REGEX','CLUSTER_HUB_HA_STACK_NAME','aws','ERROR','wss://','grid.browserstack.com','messageTypes','WS_ENDPOINT','HELP_FOOTER_MESSAGE','toLowerCase','credentials'];a22_0x2a1f=function(){return _0x53a0c0;};return a22_0x2a1f();}a22_0x15e580[a22_0x14ab28(0x84)]='log',a22_0x15e580[a22_0x14ab28(0xd4)]='resourceInfo',a22_0x15e580[a22_0x14ab28(0xe4)]=a22_0x14ab28(0x98),a22_0x15e580[a22_0x14ab28(0xcd)]=a22_0x14ab28(0xd3),a22_0x15e580[a22_0x14ab28(0xd1)]=a22_0x14ab28(0xd7),exports['WS_EVENTS']=a22_0x15e580,exports['global_registry']={},exports[a22_0x14ab28(0xd9)]=a22_0x14ab28(0x9d);const a22_0x586235={};a22_0x586235[a22_0x14ab28(0xaf)]=a22_0x14ab28(0xce)+this['LINK_MESSAGE'],a22_0x586235[a22_0x14ab28(0x9e)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x14ab28(0xd9)],a22_0x586235['configure']=a22_0x14ab28(0xcb)+this[a22_0x14ab28(0xd9)],a22_0x586235['create']=a22_0x14ab28(0xc8)+this['LINK_MESSAGE'],a22_0x586235[a22_0x14ab28(0x99)]={},a22_0x586235['delete']=a22_0x14ab28(0xca)+this[a22_0x14ab28(0xd9)],a22_0x586235[a22_0x14ab28(0xc2)]=a22_0x14ab28(0x96)+this[a22_0x14ab28(0xd9)],a22_0x586235[a22_0x14ab28(0x88)]=a22_0x14ab28(0x8e)+this[a22_0x14ab28(0xd9)],a22_0x586235['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x14ab28(0xd9)],a22_0x586235[a22_0x14ab28(0x91)]=a22_0x14ab28(0x93)+this[a22_0x14ab28(0xd9)],a22_0x586235[a22_0x14ab28(0x99)]['root']=a22_0x14ab28(0xaa)+this[a22_0x14ab28(0xd9)],a22_0x586235[a22_0x14ab28(0x99)][a22_0x14ab28(0xd5)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x14ab28(0xd9)],a22_0x586235[a22_0x14ab28(0x99)][a22_0x14ab28(0xab)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x14ab28(0xd9)],exports['HELP_HEADER_MESSAGE']=a22_0x586235,exports[a22_0x14ab28(0xbc)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x3dbde1={};a22_0x3dbde1[a22_0x14ab28(0xdf)]=a22_0x14ab28(0xae),a22_0x3dbde1[a22_0x14ab28(0xb7)]=a22_0x14ab28(0x95),a22_0x3dbde1[a22_0x14ab28(0xe5)]=a22_0x14ab28(0xa7),a22_0x3dbde1['WARNING']='warning',a22_0x3dbde1['UNKNOWN']=a22_0x14ab28(0x9a),a22_0x3dbde1[a22_0x14ab28(0xdd)]=null,exports[a22_0x14ab28(0xba)]=a22_0x3dbde1,exports[a22_0x14ab28(0xb4)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x14ab28(0x8f)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x14ab28(0xdc);const a22_0x32597d={};a22_0x32597d[a22_0x14ab28(0xd0)]=a22_0x14ab28(0xa5);const a22_0x4505f9={};a22_0x4505f9[a22_0x14ab28(0xa0)]=a22_0x32597d,exports[a22_0x14ab28(0x8c)]=a22_0x4505f9,exports['TRIAL_GRID_URL']='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x318830={};a22_0x318830[a22_0x14ab28(0xbf)]=a22_0x14ab28(0xa9),a22_0x318830['CLOUD_PROVIDER']=a22_0x14ab28(0xb6),a22_0x318830['REGION']=a22_0x14ab28(0xa1),exports[a22_0x14ab28(0x87)]=a22_0x318830;
@@ -1 +1 @@
1
- const a23_0x447a12=a23_0x1a75;(function(_0x3224ea,_0x37329d){const _0x57870a=a23_0x1a75,_0x9afbdd=_0x3224ea();while(!![]){try{const _0x5637e8=parseInt(_0x57870a(0x10e))/0x1*(-parseInt(_0x57870a(0x126))/0x2)+parseInt(_0x57870a(0x11d))/0x3+-parseInt(_0x57870a(0x10f))/0x4+-parseInt(_0x57870a(0x11e))/0x5*(parseInt(_0x57870a(0x10d))/0x6)+-parseInt(_0x57870a(0x128))/0x7*(-parseInt(_0x57870a(0x112))/0x8)+parseInt(_0x57870a(0x110))/0x9*(parseInt(_0x57870a(0x123))/0xa)+parseInt(_0x57870a(0x11a))/0xb*(parseInt(_0x57870a(0x121))/0xc);if(_0x5637e8===_0x37329d)break;else _0x9afbdd['push'](_0x9afbdd['shift']());}catch(_0x2e7165){_0x9afbdd['push'](_0x9afbdd['shift']());}}}(a23_0x2f74,0xe347b));const winston=require(a23_0x447a12(0x11b)),fs=require('fs'),path=require(a23_0x447a12(0x109)),logDir=a23_0x447a12(0x125);!fs[a23_0x447a12(0x11f)](logDir)&&fs[a23_0x447a12(0x10b)](logDir);const a23_0x3914da={};a23_0x3914da['format']='YYYY-MM-DD\x20HH:mm:ss';function a23_0x1a75(_0x38f528,_0x3663b9){const _0x2f74c2=a23_0x2f74();return a23_0x1a75=function(_0x1a7557,_0x1e05a7){_0x1a7557=_0x1a7557-0x109;let _0x44e984=_0x2f74c2[_0x1a7557];return _0x44e984;},a23_0x1a75(_0x38f528,_0x3663b9);}const a23_0x4476da={};a23_0x4476da[a23_0x447a12(0x115)]=!![];const a23_0x47900c={};a23_0x47900c[a23_0x447a12(0x11c)]=a23_0x447a12(0x111),exports[a23_0x447a12(0x120)]=new winston[(a23_0x447a12(0x113))]({'format':winston[a23_0x447a12(0x122)][a23_0x447a12(0x118)](winston['format'][a23_0x447a12(0x129)](a23_0x3914da),winston[a23_0x447a12(0x122)]['colorize'](a23_0x4476da),winston['format']['printf'](_0x680757=>_0x680757[a23_0x447a12(0x129)]+a23_0x447a12(0x116)+_0x680757[a23_0x447a12(0x115)]+':\x20'+_0x680757['message'])),'transports':[new winston[(a23_0x447a12(0x119))][(a23_0x447a12(0x117))](a23_0x47900c),new winston['transports'][(a23_0x447a12(0x10c))]({'filename':path[a23_0x447a12(0x127)](logDir,'events.log'),'level':a23_0x447a12(0x124)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x447a12(0x10c))]({'filename':path[a23_0x447a12(0x127)](logDir,a23_0x447a12(0x10a)),'level':'debug'})]};function a23_0x2f74(){const _0x1a04d0=['fileLogger','level','\x20-\x20','Console','combine','transports','10267114hckamG','winston','name','4333104AncCRQ','320GCWpUJ','existsSync','logger','24pLQwmu','format','10rThXRW','debug','log','922082eubmNE','join','2527jEpyMd','timestamp','path','usage.log','mkdirSync','File','104502vIJFBN','4TxYKPF','6330332kQnHvC','3729411SHKDFz','console.info','38712auEvov','createLogger'];a23_0x2f74=function(){return _0x1a04d0;};return a23_0x2f74();}exports[a23_0x447a12(0x114)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x1787d5=a23_0x1ac7;(function(_0x2fa679,_0x5ac35e){const _0x3725e2=a23_0x1ac7,_0x34802a=_0x2fa679();while(!![]){try{const _0x5ce7b9=-parseInt(_0x3725e2(0x1e0))/0x1*(parseInt(_0x3725e2(0x1e8))/0x2)+parseInt(_0x3725e2(0x1de))/0x3+-parseInt(_0x3725e2(0x1e4))/0x4*(parseInt(_0x3725e2(0x1e5))/0x5)+-parseInt(_0x3725e2(0x1ee))/0x6*(-parseInt(_0x3725e2(0x1f9))/0x7)+parseInt(_0x3725e2(0x1e7))/0x8+parseInt(_0x3725e2(0x1f6))/0x9*(-parseInt(_0x3725e2(0x1ec))/0xa)+-parseInt(_0x3725e2(0x1ef))/0xb*(-parseInt(_0x3725e2(0x1e6))/0xc);if(_0x5ce7b9===_0x5ac35e)break;else _0x34802a['push'](_0x34802a['shift']());}catch(_0xe626b){_0x34802a['push'](_0x34802a['shift']());}}}(a23_0x4bad,0x50202));const winston=require(a23_0x1787d5(0x1e9)),fs=require('fs'),path=require(a23_0x1787d5(0x1df)),logDir=a23_0x1787d5(0x1f7);!fs[a23_0x1787d5(0x1db)](logDir)&&fs[a23_0x1787d5(0x1fa)](logDir);const a23_0x29d80c={};a23_0x29d80c['format']=a23_0x1787d5(0x1ea);const a23_0x12286d={};function a23_0x4bad(){const _0x531dab=['path','39nNKshy','timestamp','combine','transports','873692cEXzGY','5FdACRj','544620LxCeKz','4525240GVycXh','20782BfUEsT','winston','YYYY-MM-DD\x20HH:mm:ss','debug','5150KypJRJ','Console','6540LLizQr','11CwAPxM','format','logger','File','message','printf','colorize','1629foHcPX','log','level','1183ZRmxRj','mkdirSync','createLogger','events.log','existsSync','usage.log','join','749493mSFLkw'];a23_0x4bad=function(){return _0x531dab;};return a23_0x4bad();}a23_0x12286d[a23_0x1787d5(0x1f8)]=!![];function a23_0x1ac7(_0x52b02d,_0x5b797a){const _0x4bad74=a23_0x4bad();return a23_0x1ac7=function(_0x1ac73a,_0x28c9f1){_0x1ac73a=_0x1ac73a-0x1db;let _0x34cb50=_0x4bad74[_0x1ac73a];return _0x34cb50;},a23_0x1ac7(_0x52b02d,_0x5b797a);}const a23_0x3632a0={};a23_0x3632a0['name']='console.info',exports[a23_0x1787d5(0x1f1)]=new winston[(a23_0x1787d5(0x1fb))]({'format':winston[a23_0x1787d5(0x1f0)][a23_0x1787d5(0x1e2)](winston[a23_0x1787d5(0x1f0)][a23_0x1787d5(0x1e1)](a23_0x29d80c),winston[a23_0x1787d5(0x1f0)][a23_0x1787d5(0x1f5)](a23_0x12286d),winston['format'][a23_0x1787d5(0x1f4)](_0xe22b8d=>_0xe22b8d[a23_0x1787d5(0x1e1)]+'\x20-\x20'+_0xe22b8d['level']+':\x20'+_0xe22b8d[a23_0x1787d5(0x1f3)])),'transports':[new winston[(a23_0x1787d5(0x1e3))][(a23_0x1787d5(0x1ed))](a23_0x3632a0),new winston[(a23_0x1787d5(0x1e3))]['File']({'filename':path[a23_0x1787d5(0x1dd)](logDir,a23_0x1787d5(0x1fc)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x1787d5(0x1f2))]({'filename':path[a23_0x1787d5(0x1dd)](logDir,a23_0x1787d5(0x1dc)),'level':a23_0x1787d5(0x1eb)})]};exports['fileLogger']=new winston[(a23_0x1787d5(0x1fb))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x5781(){const _0xc16bc4=['88214yZNpuD','ibORb','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','demandCommand','48310xJSWBT','3754102VJyQfb','16aClzho','epilogue','451485KcwhHO','commandDir','./config/constants','548832NbHsMj','commands','8OOyXLn','help','root','2867XnWoRo','exports','625580fXRVgI','env','36ckRZSn','48ESvkOy'];a24_0x5781=function(){return _0xc16bc4;};return a24_0x5781();}const a24_0x29cea2=a24_0xf0d2;(function(_0x2578c9,_0x307ce0){const _0x410501=a24_0xf0d2,_0x167bcd=_0x2578c9();while(!![]){try{const _0xa428bc=parseInt(_0x410501(0x1b7))/0x1*(-parseInt(_0x410501(0x1b4))/0x2)+parseInt(_0x410501(0x1af))/0x3+parseInt(_0x410501(0x1ad))/0x4*(-parseInt(_0x410501(0x1ab))/0x5)+parseInt(_0x410501(0x1bc))/0x6*(-parseInt(_0x410501(0x1bd))/0x7)+parseInt(_0x410501(0x1b2))/0x8+-parseInt(_0x410501(0x1bb))/0x9*(parseInt(_0x410501(0x1b9))/0xa)+parseInt(_0x410501(0x1ac))/0xb;if(_0xa428bc===_0x307ce0)break;else _0x167bcd['push'](_0x167bcd['shift']());}catch(_0x286c98){_0x167bcd['push'](_0x167bcd['shift']());}}}(a24_0x5781,0x26df1));function a24_0xf0d2(_0x3d3642,_0x32e09a){const _0x578131=a24_0x5781();return a24_0xf0d2=function(_0xf0d294,_0x48e523){_0xf0d294=_0xf0d294-0x1a9;let _0xae6869=_0x578131[_0xf0d294];return _0xae6869;},a24_0xf0d2(_0x3d3642,_0x32e09a);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x29cea2(0x1b1));process[a24_0x29cea2(0x1ba)][a24_0x29cea2(0x1a9)]=0x1;function run(_0x18db93){const _0x1d7990=a24_0x29cea2,_0x556f92={};_0x556f92['pyoie']=_0x1d7990(0x1b3),_0x556f92[_0x1d7990(0x1be)]=_0x1d7990(0x1b5);const _0x41821e=_0x556f92;_0x18db93['usage'](HELP_HEADER_MESSAGE[_0x1d7990(0x1b6)])[_0x1d7990(0x1b0)](_0x41821e['pyoie'])[_0x1d7990(0x1aa)]()[_0x1d7990(0x1b5)](_0x41821e[_0x1d7990(0x1be)])[_0x1d7990(0x1ae)](HELP_FOOTER_MESSAGE);}module[a24_0x29cea2(0x1b8)]=run;
2
+ 'use strict';const a24_0x2e9a6e=a24_0x3415;(function(_0x3405e7,_0x26a920){const _0x246ddc=a24_0x3415,_0x44164b=_0x3405e7();while(!![]){try{const _0xe0fbb0=-parseInt(_0x246ddc(0x183))/0x1*(-parseInt(_0x246ddc(0x18c))/0x2)+-parseInt(_0x246ddc(0x193))/0x3+-parseInt(_0x246ddc(0x195))/0x4+parseInt(_0x246ddc(0x18e))/0x5+parseInt(_0x246ddc(0x181))/0x6*(-parseInt(_0x246ddc(0x196))/0x7)+parseInt(_0x246ddc(0x185))/0x8*(parseInt(_0x246ddc(0x18b))/0x9)+parseInt(_0x246ddc(0x182))/0xa*(parseInt(_0x246ddc(0x184))/0xb);if(_0xe0fbb0===_0x26a920)break;else _0x44164b['push'](_0x44164b['shift']());}catch(_0x4c6de0){_0x44164b['push'](_0x44164b['shift']());}}}(a24_0x16eb,0x7c65c));function a24_0x16eb(){const _0x5e97bd=['commands','epilogue','demandCommand','commandDir','1106883CAnuOH','2oIkEeT','help','3822505gkSbYu','rzQpI','DYtOm','./config/constants','env','2050836WvQGae','usage','2162972DAuRZh','1626380rljfSf','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','18BGaHSV','20tSzlzR','524633eoUPIw','5603323QvYbuS','8nxmSEM','exports'];a24_0x16eb=function(){return _0x5e97bd;};return a24_0x16eb();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2e9a6e(0x191));function a24_0x3415(_0x21da8e,_0x7506c9){const _0x16eb14=a24_0x16eb();return a24_0x3415=function(_0x341577,_0x55f7df){_0x341577=_0x341577-0x181;let _0x378fa4=_0x16eb14[_0x341577];return _0x378fa4;},a24_0x3415(_0x21da8e,_0x7506c9);}process[a24_0x2e9a6e(0x192)][a24_0x2e9a6e(0x197)]=0x1;function run(_0x4e774d){const _0x10c873=a24_0x2e9a6e,_0x48f0b1={};_0x48f0b1[_0x10c873(0x190)]=_0x10c873(0x187),_0x48f0b1['rzQpI']='help';const _0x42d06d=_0x48f0b1;_0x4e774d[_0x10c873(0x194)](HELP_HEADER_MESSAGE['root'])[_0x10c873(0x18a)](_0x42d06d[_0x10c873(0x190)])[_0x10c873(0x189)]()[_0x10c873(0x18d)](_0x42d06d[_0x10c873(0x18f)])[_0x10c873(0x188)](HELP_FOOTER_MESSAGE);}module[a24_0x2e9a6e(0x186)]=run;