browserstack-node-sdk 1.59.0 → 1.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) 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 +3 -3
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/assets/report.html +1 -1
  43. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  44. package/src/bin/codeceptjs/command.js +1 -1
  45. package/src/bin/codeceptjs/helper.js +1 -1
  46. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  47. package/src/bin/cucumber-js/command.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/test-observability.js +1 -1
  51. package/src/bin/cucumber-js/test.setup.js +1 -1
  52. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  53. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  54. package/src/bin/integrations/command.js +1 -1
  55. package/src/bin/integrations/constants.js +1 -1
  56. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  57. package/src/bin/jasmine/command.js +1 -1
  58. package/src/bin/jasmine/test.setup.js +1 -1
  59. package/src/bin/jasmine/testRunMap.js +1 -1
  60. package/src/bin/jest/command.js +1 -1
  61. package/src/bin/jest/customImplements/customCircus.js +1 -1
  62. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  63. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  64. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  65. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  66. package/src/bin/jest/jest.setup.js +1 -1
  67. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  68. package/src/bin/jest/test-observability/helper.js +1 -1
  69. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  70. package/src/bin/jest/test-observability/test-details.js +1 -1
  71. package/src/bin/jest/test.setup.js +1 -1
  72. package/src/bin/jest/test_before.setup.js +1 -1
  73. package/src/bin/launcher/launcher.js +1 -1
  74. package/src/bin/load/index.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  155. package/src/bin/v2/state/hookState.js +1 -1
  156. package/src/bin/v2/state/testFrameworkState.js +1 -1
  157. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  158. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  159. package/src/bin/v2/utils/jest-utils.js +1 -1
  160. package/src/bin/vanilla-js/command.js +1 -1
  161. package/src/browserStackSdk.js +1 -1
  162. package/src/helpers/BrowserStackSetup.js +1 -1
  163. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  164. package/src/helpers/accessibility-automation/constants.js +1 -1
  165. package/src/helpers/accessibility-automation/helper.js +1 -1
  166. package/src/helpers/accessibility-automation/scripts.js +1 -1
  167. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  168. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  169. package/src/helpers/ats/constants.js +1 -1
  170. package/src/helpers/ats/helper.js +1 -1
  171. package/src/helpers/caCertHelper.js +1 -1
  172. package/src/helpers/capsMapping.js +1 -1
  173. package/src/helpers/central-scanner/constants.js +1 -1
  174. package/src/helpers/central-scanner/helpers.js +1 -1
  175. package/src/helpers/classLogger.js +1 -1
  176. package/src/helpers/driverInitErrorReporter.js +1 -1
  177. package/src/helpers/globals.js +1 -1
  178. package/src/helpers/helper.js +1 -1
  179. package/src/helpers/logger.js +1 -1
  180. package/src/helpers/metadata.js +1 -1
  181. package/src/helpers/patchHelper.js +1 -1
  182. package/src/helpers/patchHelpers.js +1 -1
  183. package/src/helpers/percy/Percy.js +1 -1
  184. package/src/helpers/percy/PercyBinary.js +1 -1
  185. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  186. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  187. package/src/helpers/percy/PercySDK.js +1 -1
  188. package/src/helpers/percy/index.js +1 -1
  189. package/src/helpers/percy/utils.js +1 -1
  190. package/src/helpers/performance/constants.js +1 -1
  191. package/src/helpers/performance/performance-tester.js +1 -1
  192. package/src/helpers/playwright-helper.js +1 -1
  193. package/src/helpers/processHelper.js +1 -1
  194. package/src/helpers/puppeteer-helper.js +1 -1
  195. package/src/helpers/request-spy.js +1 -1
  196. package/src/helpers/setKeepAlive.js +1 -1
  197. package/src/helpers/stackFrameUtils.js +1 -1
  198. package/src/helpers/test-observability/constants.js +1 -1
  199. package/src/helpers/test-observability/error-handler.js +1 -1
  200. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  201. package/src/helpers/test-observability/sessionHandler.js +1 -1
  202. package/src/helpers/test-observability/utils.js +1 -1
  203. package/src/helpers/test-orchestration/constants.js +1 -1
  204. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  205. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  206. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  207. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  208. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  209. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  210. package/src/helpers/testhub/constants.js +1 -1
  211. package/src/helpers/testhub/testhubHandler.js +1 -1
  212. package/src/helpers/testhub/utils.js +1 -1
  213. package/src/helpers/timeoutPromise.js +1 -1
  214. package/src/helpers/utilities.js +1 -1
  215. package/src/helpers/w3cMapping.js +1 -1
  216. package/src/hubAllocationMethods.js +1 -1
  217. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x1597c2=a15_0x339b;function a15_0x339b(_0x3544c7,_0x24ba09){const _0x8379b7=a15_0x8379();return a15_0x339b=function(_0x339b21,_0x49a156){_0x339b21=_0x339b21-0x1ab;let _0x54f866=_0x8379b7[_0x339b21];return _0x54f866;},a15_0x339b(_0x3544c7,_0x24ba09);}(function(_0x23cf43,_0x15663c){const _0x45aeac=a15_0x339b,_0x14773e=_0x23cf43();while(!![]){try{const _0x119d70=parseInt(_0x45aeac(0x1c2))/0x1*(parseInt(_0x45aeac(0x1de))/0x2)+-parseInt(_0x45aeac(0x1c1))/0x3+parseInt(_0x45aeac(0x1fb))/0x4+-parseInt(_0x45aeac(0x1d4))/0x5+-parseInt(_0x45aeac(0x1ec))/0x6*(parseInt(_0x45aeac(0x1e7))/0x7)+parseInt(_0x45aeac(0x1c4))/0x8*(parseInt(_0x45aeac(0x1ad))/0x9)+-parseInt(_0x45aeac(0x1d9))/0xa;if(_0x119d70===_0x15663c)break;else _0x14773e['push'](_0x14773e['shift']());}catch(_0x586100){_0x14773e['push'](_0x14773e['shift']());}}}(a15_0x8379,0xd11be));const fs=require('fs'),got=require(a15_0x1597c2(0x1d7)),{table}=require(a15_0x1597c2(0x1c5)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1597c2(0x1fe)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x1597c2(0x1b3));exports[a15_0x1597c2(0x1f9)]=a15_0x1597c2(0x1b4),exports[a15_0x1597c2(0x1cb)]=a15_0x1597c2(0x1dd),exports[a15_0x1597c2(0x1e5)]=function(_0x106e04){const _0x3a0b5b=a15_0x1597c2,_0x4a723a={};_0x4a723a['doUik']=_0x3a0b5b(0x1bf),_0x4a723a['VDVYa']=_0x3a0b5b(0x1be),_0x4a723a[_0x3a0b5b(0x1fc)]=_0x3a0b5b(0x1ea);const _0x25be5c=_0x4a723a,_0x12ec0e={};_0x12ec0e[_0x3a0b5b(0x1cd)]=_0x25be5c[_0x3a0b5b(0x1ac)],_0x12ec0e['type']=_0x25be5c[_0x3a0b5b(0x1d8)];const _0xdb610={};return _0xdb610[_0x3a0b5b(0x1dc)]=_0x12ec0e,_0x106e04[_0x3a0b5b(0x1bc)](HELP_HEADER_MESSAGE['list'][_0x3a0b5b(0x1f3)])[_0x3a0b5b(0x1f5)](HELP_FOOTER_MESSAGE)[_0x3a0b5b(0x1b0)](_0xdb610)[_0x3a0b5b(0x1ea)](_0x25be5c[_0x3a0b5b(0x1fc)])[_0x3a0b5b(0x1ca)];},exports[a15_0x1597c2(0x1df)]=async function(_0x3afe2c){const _0x1f26a1=a15_0x1597c2,_0x9fc107={'xwgSG':function(_0x60159){return _0x60159();},'xrytq':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cEjPm':function(_0x2163d6,_0x4113d6,_0x3027c9,_0x5dd1a3,_0x2f8e45,_0x1b90d8,_0x39d9aa){return _0x2163d6(_0x4113d6,_0x3027c9,_0x5dd1a3,_0x2f8e45,_0x1b90d8,_0x39d9aa);},'eloLg':_0x1f26a1(0x1c3),'CpJQc':'init-not-called','GcZhj':function(_0x16ae4a){return _0x16ae4a();},'MPsMI':_0x1f26a1(0x1ba),'lSadB':function(_0x59acd3,_0x3d0322,_0x3ae824){return _0x59acd3(_0x3d0322,_0x3ae824);},'MheEK':function(_0x36ec86,_0x4441cd,_0x5e866d){return _0x36ec86(_0x4441cd,_0x5e866d);},'raoky':function(_0x38277f,_0xaf4022){return _0x38277f!==_0xaf4022;},'zXbkU':function(_0x30ca84,_0x23d51a){return _0x30ca84===_0x23d51a;},'sVcEJ':_0x1f26a1(0x1af),'Fkrea':'grid-id','YvxHA':'grid-name','XcmHs':_0x1f26a1(0x200),'ZxcIJ':_0x1f26a1(0x1b2),'Pwfbh':_0x1f26a1(0x1b9),'CahKy':_0x1f26a1(0x1b5),'NMKOw':function(_0x19cf7a,_0x5bd5a7){return _0x19cf7a(_0x5bd5a7);},'PhvTb':function(_0x319268,_0x4a5a39){return _0x319268===_0x4a5a39;},'gcBmE':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cedch':function(_0x2e36e4,_0x53a8bc,_0x4b1ec5,_0x1315a7,_0x43a0cc,_0xe4816e,_0x2e9c6c){return _0x2e36e4(_0x53a8bc,_0x4b1ec5,_0x1315a7,_0x43a0cc,_0xe4816e,_0x2e9c6c);},'EFxGh':_0x1f26a1(0x1d6),'bvoTv':function(_0xf42de8,_0x4485e5,_0x31842e,_0x455f20,_0x4ddf22,_0xb00a27,_0x159801){return _0xf42de8(_0x4485e5,_0x31842e,_0x455f20,_0x4ddf22,_0xb00a27,_0x159801);},'KumZh':_0x1f26a1(0x1e0),'PJTQS':_0x1f26a1(0x1ef)};try{global_registry['requestId']=_0x9fc107[_0x1f26a1(0x1e8)](uuidv4);!fs[_0x1f26a1(0x1d0)](_0x9fc107[_0x1f26a1(0x1e8)](getCredentialsPath))&&(console[_0x1f26a1(0x1ed)](_0x9fc107['xrytq']),await _0x9fc107['cEjPm'](sendInstrumentationEvent,_0x3afe2c,_0x9fc107[_0x1f26a1(0x1eb)],messageTypes[_0x1f26a1(0x1fd)],_0x9fc107[_0x1f26a1(0x1f6)],null,_0x3afe2c),process[_0x1f26a1(0x1bb)](0x1));const _0x15abf7=JSON[_0x1f26a1(0x1f0)](fs[_0x1f26a1(0x1f8)](_0x9fc107[_0x1f26a1(0x1c8)](getCredentialsPath)));let _0xa234f2=_0x1f26a1(0x1ee)+AG_API_URL+_0x1f26a1(0x1da);_0x3afe2c[_0x1f26a1(0x1d1)]&&(_0xa234f2=_0x1f26a1(0x1ee)+AG_API_URL+'/packages/cli/get-all-grids');const _0x34c628={'method':_0x9fc107[_0x1f26a1(0x1c6)],'headers':_0x9fc107['lSadB'](getAuthHeader,_0x15abf7[_0x1f26a1(0x1b7)]['username'],_0x15abf7['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x1f26a1(0x1c9)]=_0x15abf7[_0x1f26a1(0x1b7)]['username'],global_registry[_0x1f26a1(0x1e9)]=_0x15abf7[_0x1f26a1(0x1b7)][_0x1f26a1(0x1fa)],_0x9fc107['cEjPm'](sendInstrumentationEvent,_0x3afe2c,_0x9fc107[_0x1f26a1(0x1eb)],messageTypes[_0x1f26a1(0x1f4)],null,null,_0x3afe2c);const _0x57e0db=await _0x9fc107[_0x1f26a1(0x1ff)](got,_0xa234f2,_0x34c628);if(_0x9fc107['raoky'](_0x57e0db,null)&&_0x9fc107[_0x1f26a1(0x1f7)](_0x57e0db,undefined)&&_0x9fc107['zXbkU'](_0x57e0db[_0x1f26a1(0x1ab)],0xc8)){const _0x373274=JSON[_0x1f26a1(0x1f0)](_0x57e0db[_0x1f26a1(0x1bd)]);console[_0x1f26a1(0x1c7)](_0x9fc107[_0x1f26a1(0x1d2)]);const _0x3490a3=[];_0x3490a3[_0x1f26a1(0x1ce)]([_0x9fc107[_0x1f26a1(0x1f1)],_0x9fc107[_0x1f26a1(0x1e3)],_0x9fc107[_0x1f26a1(0x1e1)],_0x9fc107['ZxcIJ'],_0x9fc107[_0x1f26a1(0x1cc)],_0x9fc107[_0x1f26a1(0x1b6)]]),_0x373274[_0x1f26a1(0x1ae)](_0x2a5632=>{const _0x3f710e=_0x1f26a1;_0x3490a3[_0x3f710e(0x1ce)]([_0x2a5632['id'],_0x2a5632[_0x3f710e(0x1e2)],_0x2a5632['status'],_0x2a5632['running'],_0x2a5632['queued'],_0x2a5632[_0x3f710e(0x1d5)]]);}),console[_0x1f26a1(0x1c7)](_0x9fc107[_0x1f26a1(0x1d3)](table,_0x3490a3)),process[_0x1f26a1(0x1bb)](0x0);}_0x9fc107[_0x1f26a1(0x1f2)](_0x57e0db[_0x1f26a1(0x1ab)],0x191)&&(console[_0x1f26a1(0x1ed)](_0x9fc107[_0x1f26a1(0x1cf)]),await _0x9fc107[_0x1f26a1(0x1db)](sendInstrumentationEvent,_0x3afe2c,_0x9fc107[_0x1f26a1(0x1eb)],messageTypes[_0x1f26a1(0x1fd)],_0x9fc107[_0x1f26a1(0x1c0)],null,_0x3afe2c),process['exit'](0x1)),console[_0x1f26a1(0x1ed)](_0x1f26a1(0x1e4)+JSON['stringify'](_0x57e0db)),await _0x9fc107['bvoTv'](sendInstrumentationEvent,_0x3afe2c,_0x9fc107['eloLg'],messageTypes['ERROR'],_0x9fc107['KumZh'],_0x57e0db,_0x3afe2c),process['exit'](0x1);}catch(_0x1ed7db){console[_0x1f26a1(0x1ed)](_0x1f26a1(0x1b8)+_0x1ed7db[_0x1f26a1(0x1e6)]),await _0x9fc107[_0x1f26a1(0x1db)](sendInstrumentationEvent,_0x3afe2c,_0x9fc107['eloLg'],messageTypes[_0x1f26a1(0x1fd)],_0x9fc107[_0x1f26a1(0x1b1)],_0x1ed7db,_0x3afe2c),process[_0x1f26a1(0x1bb)](0x1);}};function a15_0x8379(){const _0x3b58f1=['13644376XyFLbz','table','MPsMI','log','GcZhj','bstackUsername','argv','desc','Pwfbh','description','push','gcBmE','existsSync','allGrids','sVcEJ','NMKOw','334850dTiXzl','clusterName','unauthorised','got','VDVYa','24591740QXwjqx','/packages/cli/get-grids','cedch','all-grids','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','18qnKUkX','handler','server-error','XcmHs','name','YvxHA','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder','stack','758639JrHVil','xwgSG','bstackAccesskey','help','eloLg','12Ticzbb','error','https://','unknown-error','parse','Fkrea','PhvTb','grid','INFO','epilogue','CpJQc','raoky','readFileSync','command','password','3395412TSbBNe','tWQKB','ERROR','../../config/constants','MheEK','status','statusCode','doUik','9tklkIi','forEach','\x0aFound\x20the\x20following\x20grids:\x0a','options','PJTQS','running','../../utils/instrumentationUtils','grids','cluster-name','CahKy','Browserstack','Failed\x20to\x20list\x20resources!\x20Error:\x20','queued','GET','exit','usage','body','boolean','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','EFxGh','843345JZNYsp','147347uFItvL','list-grids-called'];a15_0x8379=function(){return _0x3b58f1;};return a15_0x8379();}
1
+ function a15_0x3f63(){const _0x52db8e=['GET','exit','Failed\x20to\x20list\x20resources!\x20Error:\x20','desc','Browserstack','IBRZt','got','readFileSync','138175TXJDhq','error','queued','statusCode','description','parse','clusterName','../../config/constants','eaWqH','unknown-error','password','uuid','push','INFO','command','help','unauthorised','body','xUAPm','log','grid-name','ERROR','fVhnr','190221pZWLhB','allGrids','117300NNMupo','esJlL','fTrff','builder','ZGakB','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','/packages/cli/get-grids','lVOhC','DxhRo','UJYAm','handler','grids','sOeqo','585HTAikz','50ExOiyW','VxytP','36SmfHrN','fuZRG','zIrWe','\x0aFound\x20the\x20following\x20grids:\x0a','AYFjc','zqNcg','../../utils/utilityMethods','1765491cWwBML','../../utils/instrumentationUtils','grid-id','698596ZUKmvi','server-error','username','stack','bstackUsername','status','mGMzh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','20aycMJJ','table','list','all-grids','HJpEy','MGQbD','name','usage','2270103eovzez','27088uldCHt','running'];a15_0x3f63=function(){return _0x52db8e;};return a15_0x3f63();}const a15_0x8ab61=a15_0x3166;function a15_0x3166(_0xde33db,_0x46f3c2){const _0x3f634f=a15_0x3f63();return a15_0x3166=function(_0x3166b3,_0x3f45c6){_0x3166b3=_0x3166b3-0x19f;let _0x41e050=_0x3f634f[_0x3166b3];return _0x41e050;},a15_0x3166(_0xde33db,_0x46f3c2);}(function(_0xf28662,_0x307321){const _0x3ed27b=a15_0x3166,_0x5a8bf5=_0xf28662();while(!![]){try{const _0x4bf869=parseInt(_0x3ed27b(0x1e2))/0x1+-parseInt(_0x3ed27b(0x1ad))/0x2+parseInt(_0x3ed27b(0x1e0))/0x3*(-parseInt(_0x3ed27b(0x1b6))/0x4)+parseInt(_0x3ed27b(0x1c9))/0x5*(parseInt(_0x3ed27b(0x1a3))/0x6)+-parseInt(_0x3ed27b(0x1aa))/0x7+parseInt(_0x3ed27b(0x1bf))/0x8*(-parseInt(_0x3ed27b(0x1a0))/0x9)+parseInt(_0x3ed27b(0x1a1))/0xa*(parseInt(_0x3ed27b(0x1be))/0xb);if(_0x4bf869===_0x307321)break;else _0x5a8bf5['push'](_0x5a8bf5['shift']());}catch(_0x573534){_0x5a8bf5['push'](_0x5a8bf5['shift']());}}}(a15_0x3f63,0x2b0d3));const fs=require('fs'),got=require(a15_0x8ab61(0x1c7)),{table}=require(a15_0x8ab61(0x1b7)),{v4:uuidv4}=require(a15_0x8ab61(0x1d4)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x8ab61(0x1d0)),{getCredentialsPath,getAuthHeader}=require(a15_0x8ab61(0x1a9)),{sendInstrumentationEvent}=require(a15_0x8ab61(0x1ab));exports[a15_0x8ab61(0x1d7)]=a15_0x8ab61(0x1ed),exports[a15_0x8ab61(0x1c4)]=a15_0x8ab61(0x1e7),exports[a15_0x8ab61(0x1e5)]=function(_0x20a9fc){const _0x44034f=a15_0x8ab61,_0x4383b2={};_0x4383b2[_0x44034f(0x1e9)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x4383b2[_0x44034f(0x19f)]='boolean',_0x4383b2[_0x44034f(0x1a7)]=_0x44034f(0x1d8);const _0x405ce2=_0x4383b2,_0x34b667={};_0x34b667[_0x44034f(0x1cd)]=_0x405ce2[_0x44034f(0x1e9)],_0x34b667['type']=_0x405ce2['sOeqo'];const _0x1d421f={};return _0x1d421f[_0x44034f(0x1b9)]=_0x34b667,_0x20a9fc[_0x44034f(0x1bd)](HELP_HEADER_MESSAGE[_0x44034f(0x1b8)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x1d421f)[_0x44034f(0x1d8)](_0x405ce2[_0x44034f(0x1a7)])['argv'];},exports[a15_0x8ab61(0x1ec)]=async function(_0x12f0a0){const _0x2f0f7b=a15_0x8ab61,_0x38c278={'HJpEy':function(_0xaa101b){return _0xaa101b();},'OqYPy':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zIrWe':function(_0x279b8c,_0x445d59,_0x13d45e,_0x50c458,_0x5eced7,_0x44144a,_0x2799cd){return _0x279b8c(_0x445d59,_0x13d45e,_0x50c458,_0x5eced7,_0x44144a,_0x2799cd);},'MGQbD':'list-grids-called','xUAPm':'init-not-called','IBRZt':function(_0x52814a){return _0x52814a();},'ZGakB':_0x2f0f7b(0x1c1),'fTrff':function(_0x13747b,_0xa528f0,_0x52eae4){return _0x13747b(_0xa528f0,_0x52eae4);},'BtHuQ':function(_0x5c9439,_0x537323){return _0x5c9439!==_0x537323;},'DxhRo':function(_0x278240,_0x407b2d){return _0x278240!==_0x407b2d;},'fuZRG':function(_0x2bec2a,_0x18c2df){return _0x2bec2a===_0x18c2df;},'HreXE':_0x2f0f7b(0x1a6),'vQOCU':_0x2f0f7b(0x1ac),'mGMzh':_0x2f0f7b(0x1dd),'ywrGx':_0x2f0f7b(0x1b2),'fVhnr':_0x2f0f7b(0x1c0),'eaWqH':_0x2f0f7b(0x1cb),'zqNcg':'cluster-name','BZvdo':function(_0x27125b,_0x2863b5){return _0x27125b(_0x2863b5);},'JABLA':function(_0x4b3dc5,_0x2aac3d){return _0x4b3dc5===_0x2aac3d;},'sdAgu':_0x2f0f7b(0x1b4),'UJYAm':_0x2f0f7b(0x1d9),'TSMpZ':_0x2f0f7b(0x1ae),'VxytP':function(_0x439ebe,_0x592c5b,_0x3dbdda,_0x203b5f,_0x1f9791,_0x5def2e,_0x56e015){return _0x439ebe(_0x592c5b,_0x3dbdda,_0x203b5f,_0x1f9791,_0x5def2e,_0x56e015);},'esJlL':_0x2f0f7b(0x1d2)};try{global_registry['requestId']=_0x38c278[_0x2f0f7b(0x1ba)](uuidv4);!fs['existsSync'](_0x38c278[_0x2f0f7b(0x1ba)](getCredentialsPath))&&(console['error'](_0x38c278['OqYPy']),await _0x38c278['zIrWe'](sendInstrumentationEvent,_0x12f0a0,_0x38c278[_0x2f0f7b(0x1bb)],messageTypes[_0x2f0f7b(0x1de)],_0x38c278[_0x2f0f7b(0x1db)],null,_0x12f0a0),process[_0x2f0f7b(0x1c2)](0x1));const _0x4cdec5=JSON[_0x2f0f7b(0x1ce)](fs[_0x2f0f7b(0x1c8)](_0x38c278[_0x2f0f7b(0x1c6)](getCredentialsPath)));let _0x170469='https://'+AG_API_URL+_0x2f0f7b(0x1e8);_0x12f0a0[_0x2f0f7b(0x1e1)]&&(_0x170469='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x49c8ab={'method':_0x38c278[_0x2f0f7b(0x1e6)],'headers':_0x38c278[_0x2f0f7b(0x1e4)](getAuthHeader,_0x4cdec5[_0x2f0f7b(0x1c5)][_0x2f0f7b(0x1af)],_0x4cdec5['Browserstack'][_0x2f0f7b(0x1d3)]),'throwHttpErrors':![]};global_registry[_0x2f0f7b(0x1b1)]=_0x4cdec5[_0x2f0f7b(0x1c5)][_0x2f0f7b(0x1af)],global_registry['bstackAccesskey']=_0x4cdec5[_0x2f0f7b(0x1c5)][_0x2f0f7b(0x1d3)],_0x38c278['zIrWe'](sendInstrumentationEvent,_0x12f0a0,_0x38c278['MGQbD'],messageTypes[_0x2f0f7b(0x1d6)],null,null,_0x12f0a0);const _0x45de01=await _0x38c278[_0x2f0f7b(0x1e4)](got,_0x170469,_0x49c8ab);if(_0x38c278['BtHuQ'](_0x45de01,null)&&_0x38c278[_0x2f0f7b(0x1ea)](_0x45de01,undefined)&&_0x38c278[_0x2f0f7b(0x1a4)](_0x45de01[_0x2f0f7b(0x1cc)],0xc8)){const _0x3ce039=JSON[_0x2f0f7b(0x1ce)](_0x45de01[_0x2f0f7b(0x1da)]);console['log'](_0x38c278['HreXE']);const _0x262e5a=[];_0x262e5a[_0x2f0f7b(0x1d5)]([_0x38c278['vQOCU'],_0x38c278[_0x2f0f7b(0x1b3)],_0x38c278['ywrGx'],_0x38c278[_0x2f0f7b(0x1df)],_0x38c278[_0x2f0f7b(0x1d1)],_0x38c278[_0x2f0f7b(0x1a8)]]),_0x3ce039['forEach'](_0xf6717d=>{const _0x1d52ef=_0x2f0f7b;_0x262e5a[_0x1d52ef(0x1d5)]([_0xf6717d['id'],_0xf6717d[_0x1d52ef(0x1bc)],_0xf6717d[_0x1d52ef(0x1b2)],_0xf6717d['running'],_0xf6717d['queued'],_0xf6717d[_0x1d52ef(0x1cf)]]);}),console[_0x2f0f7b(0x1dc)](_0x38c278['BZvdo'](table,_0x262e5a)),process[_0x2f0f7b(0x1c2)](0x0);}_0x38c278['JABLA'](_0x45de01[_0x2f0f7b(0x1cc)],0x191)&&(console[_0x2f0f7b(0x1ca)](_0x38c278['sdAgu']),await _0x38c278[_0x2f0f7b(0x1a5)](sendInstrumentationEvent,_0x12f0a0,_0x38c278[_0x2f0f7b(0x1bb)],messageTypes['ERROR'],_0x38c278[_0x2f0f7b(0x1eb)],null,_0x12f0a0),process[_0x2f0f7b(0x1c2)](0x1)),console[_0x2f0f7b(0x1ca)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2f0f7b(0x1b5)](_0x45de01)),await _0x38c278[_0x2f0f7b(0x1a5)](sendInstrumentationEvent,_0x12f0a0,_0x38c278[_0x2f0f7b(0x1bb)],messageTypes[_0x2f0f7b(0x1de)],_0x38c278['TSMpZ'],_0x45de01,_0x12f0a0),process[_0x2f0f7b(0x1c2)](0x1);}catch(_0xfb8921){console[_0x2f0f7b(0x1ca)](_0x2f0f7b(0x1c3)+_0xfb8921[_0x2f0f7b(0x1b0)]),await _0x38c278[_0x2f0f7b(0x1a2)](sendInstrumentationEvent,_0x12f0a0,_0x38c278[_0x2f0f7b(0x1bb)],messageTypes[_0x2f0f7b(0x1de)],_0x38c278[_0x2f0f7b(0x1e3)],_0xfb8921,_0x12f0a0),process[_0x2f0f7b(0x1c2)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x444a3d=a16_0x31b6;(function(_0x2aa2d3,_0xac6e99){const _0x587869=a16_0x31b6,_0x4cb40a=_0x2aa2d3();while(!![]){try{const _0x45b795=-parseInt(_0x587869(0x165))/0x1*(-parseInt(_0x587869(0x16c))/0x2)+parseInt(_0x587869(0x15f))/0x3+-parseInt(_0x587869(0x161))/0x4+parseInt(_0x587869(0x16f))/0x5*(-parseInt(_0x587869(0x168))/0x6)+parseInt(_0x587869(0x15a))/0x7+parseInt(_0x587869(0x160))/0x8+-parseInt(_0x587869(0x16d))/0x9*(parseInt(_0x587869(0x159))/0xa);if(_0x45b795===_0xac6e99)break;else _0x4cb40a['push'](_0x4cb40a['shift']());}catch(_0x332274){_0x4cb40a['push'](_0x4cb40a['shift']());}}}(a16_0x2952,0xbad96));function a16_0x31b6(_0x2b01a7,_0x3a7798){const _0x295299=a16_0x2952();return a16_0x31b6=function(_0x31b680,_0x29e8ca){_0x31b680=_0x31b680-0x159;let _0x5644d5=_0x295299[_0x31b680];return _0x5644d5;},a16_0x31b6(_0x2b01a7,_0x3a7798);}function a16_0x2952(){const _0xf75a4c=['handler','../config/constants','help','4537824fdYUFe','1153576XKgcsS','393812sceyxQ','pre-check','desc','epilogue','1817MSElzm','pqUPt','BqTBf','6iODphN','pre_check','precheck_commands','strict','1042lcFsKe','8937lVzNdJ','recommendCommands','5431295jAKVMh','commandDir','15410TKEJSq','6137579qPxJhK','usage'];a16_0x2952=function(){return _0xf75a4c;};return a16_0x2952();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x444a3d(0x15d));exports['command']=a16_0x444a3d(0x162),exports[a16_0x444a3d(0x163)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x121884){const _0x34b2e2=a16_0x444a3d,_0x4db842={};_0x4db842[_0x34b2e2(0x167)]=_0x34b2e2(0x16a),_0x4db842[_0x34b2e2(0x166)]='help';const _0x4d2f4e=_0x4db842;return _0x121884[_0x34b2e2(0x15b)](HELP_HEADER_MESSAGE[_0x34b2e2(0x169)])[_0x34b2e2(0x164)](HELP_FOOTER_MESSAGE)[_0x34b2e2(0x170)](_0x4d2f4e[_0x34b2e2(0x167)])['demandCommand']()[_0x34b2e2(0x16e)]()[_0x34b2e2(0x16b)]()[_0x34b2e2(0x15e)](_0x4d2f4e[_0x34b2e2(0x166)]);},exports[a16_0x444a3d(0x15c)]=function(_0x77b73b){};
1
+ function a16_0x2476(_0x49ed59,_0xcfdc2c){const _0x2ebdc7=a16_0x2ebd();return a16_0x2476=function(_0x247666,_0x45ba24){_0x247666=_0x247666-0x1e3;let _0x3bc4cc=_0x2ebdc7[_0x247666];return _0x3bc4cc;},a16_0x2476(_0x49ed59,_0xcfdc2c);}const a16_0x3e96d6=a16_0x2476;(function(_0x477726,_0x54f211){const _0x5905bc=a16_0x2476,_0x4adfa3=_0x477726();while(!![]){try{const _0x1eac75=-parseInt(_0x5905bc(0x1e4))/0x1+-parseInt(_0x5905bc(0x1ec))/0x2*(parseInt(_0x5905bc(0x1e7))/0x3)+-parseInt(_0x5905bc(0x1ea))/0x4+-parseInt(_0x5905bc(0x1f8))/0x5+parseInt(_0x5905bc(0x1ef))/0x6+parseInt(_0x5905bc(0x1f6))/0x7*(parseInt(_0x5905bc(0x1fa))/0x8)+parseInt(_0x5905bc(0x1e5))/0x9*(parseInt(_0x5905bc(0x1e9))/0xa);if(_0x1eac75===_0x54f211)break;else _0x4adfa3['push'](_0x4adfa3['shift']());}catch(_0x540173){_0x4adfa3['push'](_0x4adfa3['shift']());}}}(a16_0x2ebd,0xc08c6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x3e96d6(0x1f9));function a16_0x2ebd(){const _0x67f53=['Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','efIAP','pre_check','demandCommand','pre-check','108402QmqJvr','strict','3604650vvfjhf','../config/constants','688LigGyk','builder','768088YoTGbV','12231TjVZJG','recommendCommands','3SJmXQF','epilogue','8110qSWpbM','116412MWPSZS','help','808782ouHrdA','commandDir','Siowt','1663470TWacwI','precheck_commands'];a16_0x2ebd=function(){return _0x67f53;};return a16_0x2ebd();}exports['command']=a16_0x3e96d6(0x1f5),exports['desc']=a16_0x3e96d6(0x1f1),exports[a16_0x3e96d6(0x1e3)]=function(_0x2debd2){const _0xf3eaff=a16_0x3e96d6,_0x8fcdfa={};_0x8fcdfa[_0xf3eaff(0x1f2)]=_0xf3eaff(0x1f0),_0x8fcdfa[_0xf3eaff(0x1ee)]=_0xf3eaff(0x1eb);const _0x304035=_0x8fcdfa;return _0x2debd2['usage'](HELP_HEADER_MESSAGE[_0xf3eaff(0x1f3)])[_0xf3eaff(0x1e8)](HELP_FOOTER_MESSAGE)[_0xf3eaff(0x1ed)](_0x304035[_0xf3eaff(0x1f2)])[_0xf3eaff(0x1f4)]()[_0xf3eaff(0x1e6)]()[_0xf3eaff(0x1f7)]()[_0xf3eaff(0x1eb)](_0x304035[_0xf3eaff(0x1ee)]);},exports['handler']=function(_0x1aea82){};
@@ -1 +1 @@
1
- const a17_0x3fb03f=a17_0x3718;function a17_0x1bfe(){const _0x606b87=['Error\x20Details:\x0a','VfBTW','16MiFmpy','qndsY','stringify','authHeader','sAShS','headers','grid-profile','huIRx','SgOnA','delay','../../utils/utilityMethods','131612bwGGwN','join','fUJIZ','/packages/cli/get-all-grid-profiles','readFileSync','status','HDlMf','string','username','1650VRPwHB','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','BGgVn','CLOUD_PROVIDER','region','pre-check-failed','unable\x20to\x20verify\x20if\x20cluster\x20`','xdSer','forEach','cloudProvider','1914nsKdmd','OcCsW','noJtH','dxffM','push','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','clusterRegion','kEoOV','Missing\x20required\x20arguments:\x20','RlONz','../../config/logger','YzlXQ','ERROR','WmuEv','iuiBF','ZSYfJ','waqmq','xsIEw','DIPZO','command','TLSv1_2_client_method','ZXQNm','bjjMu','split','Cluster\x20`','bRqCE','argv','FsDBm','bjeVB','icSrD','txGkj','pre-check-grid-profile-empty','RGLON','JHrUM','AyTmQ','Chulv','Status:\x20','oblDQ','JNtiA','bstackUsername','Failed\x20in\x20pre-check!\x20Error:\x20','YqxpO','error','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','zVksy','bBeCO','Hlmzb','Invalid\x20input.\x20grid\x20profiles:\x20','got','pDvwW','Rezcq','cluster-check-failed-','NrbDj','AzLPm','dQmVR','acSHB','jApDW','epilogue','tZPzY','toolInstalledResp','../../config/constants','message','grid\x20profile\x20flow\x20','CmdtO','response','\x20\x20Stack:\x20','AcKVF','replace','1700678QDhHIL','\x20\x20Code:\x20','log/report_','\x20region\x20-\x20','bstackAccesskey','\x20error\x20:\x20','handler','hhtwC','naoAg','utf-8','MjVXm','will\x20be\x20created','error\x20stack\x20:\x20','ANeXc','cdTpb','Qjqxn','cloud-provider','credential-not-found','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','uTSfD','BOlkt','pre-check-cluster-args-not-passed','Setting\x20cloud\x20provider\x20as\x20','Avbzd','ZScfT','kDLvj','exit','Message:\x20','YpTad','pjagd','Pre-check\x20running\x20for\x20Cloud\x20-\x20','234540oSJlKe',']\x20status\x20:\x20','===\x20Precheck\x20Report\x20-\x20','ehGeb','clusterName','LnfYN','CdVRc','accessResp','MvykZ','JcFMc','sendEventToBackend','Browserstack','CPsVW','Failure','VHNtw','type','WgcjN','.\x20Please\x20provide\x20all\x20required\x20arguments.','iwlmQ','Whitelisted\x20browserstack','Grid\x20profile\x20fetched\x20for\x20pre-check','<PasswordPlaceholder>','IIjIJ','XwgXt','getUTCFullYear','zJNsG','body','<UsernamePlaceholder>','`\x20already\x20exists','1|3|2|0|4','mIPuI','PfoBY','INFO','parse','Tool\x20Installed','checkAccess','lHtrV','TPsHv','SlbWE','grid','EMhOq','qcjXa','FNWdm','https://','stack','Cluster\x20','usage','eQRhv','description','isTrialGridAccessible','options','GET','../../cloudproviders/utils','debug','SSL\x20Configured','bHMsQ','334974DLVFTf','desc','help','builder','Success','lDYjJ','`\x20,error\x20:\x20','Licng','method','pre_check','find','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','hoPYM','lANxC','gnITZ','ZLmPG','zBNiu','kXdJb','User\x20Access','../../utils/webSocketUtils','263844SYTBUI','connectionTimeout','oCRyb','throwHttpErrors','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','LrzIB','PWLPf','qtMeJ','KsVpf','ZpnKv','password','\x20\x20Message:\x20','existsSync','gridProfile','.txt','dIGpY','ZdUoN','sMkap','EwxtJ','is\x20already\x20present','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','sehFc','XzHaH','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','LOG','code','BCNyG','IhJwT','data','BRcbz','fcycW','length','fmuyS','44060BwgIhk','header','\x20data\x20:\x20','pre-check','NiPYv','pre-check-grid-called','isClusterPresent','dNmDR','MmVgM','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','info','N/A','getUTCMonth','cluster-name','KGmuc','xDFTj','WlWWn','gvqRq'];a17_0x1bfe=function(){return _0x606b87;};return a17_0x1bfe();}(function(_0x1f1900,_0xd83a70){const _0x5aa913=a17_0x3718,_0x4468f1=_0x1f1900();while(!![]){try{const _0x18dd49=parseInt(_0x5aa913(0x215))/0x1+parseInt(_0x5aa913(0x234))/0x2+-parseInt(_0x5aa913(0x2e3))/0x3+-parseInt(_0x5aa913(0x2ab))/0x4+parseInt(_0x5aa913(0x23d))/0x5*(-parseInt(_0x5aa913(0x247))/0x6)+parseInt(_0x5aa913(0x28c))/0x7+-parseInt(_0x5aa913(0x229))/0x8*(-parseInt(_0x5aa913(0x1f4))/0x9);if(_0x18dd49===_0xd83a70)break;else _0x4468f1['push'](_0x4468f1['shift']());}catch(_0x3c453e){_0x4468f1['push'](_0x4468f1['shift']());}}}(a17_0x1bfe,0x212d1));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3fb03f(0x278)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3fb03f(0x233)),{logger}=require(a17_0x3fb03f(0x252)),{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_0x3fb03f(0x284)),{getCloudProviderObjectWithOutInit}=require(a17_0x3fb03f(0x2df)),webSocketUtils=require(a17_0x3fb03f(0x1f3)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x3718(_0x2d0008,_0x1a9693){const _0x1bfecb=a17_0x1bfe();return a17_0x3718=function(_0x37181d,_0x19a844){_0x37181d=_0x37181d-0x1ef;let _0x54292a=_0x1bfecb[_0x37181d];return _0x54292a;},a17_0x3718(_0x2d0008,_0x1a9693);}exports[a17_0x3fb03f(0x25b)]=a17_0x3fb03f(0x2d2),exports[a17_0x3fb03f(0x2e4)]=a17_0x3fb03f(0x273),exports[a17_0x3fb03f(0x2e6)]=function(_0x5e9fd3){const _0x2c9f17=a17_0x3fb03f,_0x179943={};_0x179943[_0x2c9f17(0x2b7)]=_0x2c9f17(0x21e),_0x179943[_0x2c9f17(0x282)]='string',_0x179943[_0x2c9f17(0x230)]=_0x2c9f17(0x208),_0x179943['NiPYv']=_0x2c9f17(0x24c),_0x179943[_0x2c9f17(0x228)]=_0x2c9f17(0x23e),_0x179943[_0x2c9f17(0x299)]=_0x2c9f17(0x2e5);const _0x59a193=_0x179943,_0x31c599={};_0x31c599[_0x2c9f17(0x2db)]=_0x59a193['CPsVW'],_0x31c599[_0x2c9f17(0x2ba)]=_0x59a193[_0x2c9f17(0x282)];const _0x165a79={};_0x165a79[_0x2c9f17(0x2db)]=_0x59a193[_0x2c9f17(0x230)],_0x165a79[_0x2c9f17(0x2ba)]=_0x59a193['tZPzY'];const _0x27131c={};_0x27131c[_0x2c9f17(0x2db)]=_0x59a193[_0x2c9f17(0x219)],_0x27131c['type']=_0x59a193[_0x2c9f17(0x282)];const _0x57ed26={};_0x57ed26[_0x2c9f17(0x2db)]=_0x59a193[_0x2c9f17(0x228)],_0x57ed26['type']=_0x59a193[_0x2c9f17(0x282)];const _0x5090b0={};return _0x5090b0['cluster-name']=_0x31c599,_0x5090b0['cloud-provider']=_0x165a79,_0x5090b0[_0x2c9f17(0x241)]=_0x27131c,_0x5090b0[_0x2c9f17(0x22f)]=_0x57ed26,_0x5e9fd3[_0x2c9f17(0x2d9)](HELP_HEADER_MESSAGE[_0x2c9f17(0x2ec)])[_0x2c9f17(0x281)](HELP_FOOTER_MESSAGE)[_0x2c9f17(0x2dd)](_0x5090b0)[_0x2c9f17(0x2e5)](_0x59a193[_0x2c9f17(0x299)])[_0x2c9f17(0x262)];};async function inputValidation(_0xe42dfb,_0x58fc71){const _0x19f311=a17_0x3fb03f,_0x34e7fb={'qsyYT':function(_0x456b69,_0x4ab387){return _0x456b69+_0x4ab387;},'IIjIJ':_0x19f311(0x2e7),'LNwQU':_0x19f311(0x2b8),'GxiLf':function(_0xcc08df,_0xdba967){return _0xcc08df||_0xdba967;},'acSHB':'N/A','fylUg':_0x19f311(0x227),'uBVrZ':'cloud-provider','iwlmQ':_0x19f311(0x222),'CmdtO':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','IhJwT':_0x19f311(0x23b),'Avbzd':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','AcKVF':_0x19f311(0x24c),'dKAhN':_0x19f311(0x23e),'JcFMc':_0x19f311(0x2e5),'BGgVn':_0x19f311(0x29e),'KsVpf':_0x19f311(0x207),'EqboY':_0x19f311(0x297),'uTSfD':_0x19f311(0x272),'mIPuI':function(_0xe9d5d1,_0x1de7f2){return _0xe9d5d1===_0x1de7f2;},'TPsHv':_0x19f311(0x263),'WmuEv':_0x19f311(0x204),'xsIEw':function(_0x15fab1,_0x3e4afd){return _0x15fab1===_0x3e4afd;},'Rezcq':_0x19f311(0x1f1),'noJtH':function(_0x3062f2,_0x3fff50){return _0x3062f2===_0x3fff50;},'qJmDm':_0x19f311(0x261),'RlONz':'kptGH','dxffM':function(_0x35abe6,_0x190195){return _0x35abe6===_0x190195;},'qcjXa':'kzJSM','lHtrV':'xrJEx','oblDQ':_0x19f311(0x2f0),'adpyA':_0x19f311(0x269),'WlWWn':_0x19f311(0x241),'XzHaH':function(_0x4c75e2,_0x14bfef){return _0x4c75e2>_0x14bfef;},'PWLPf':function(_0x34d286,_0x2aac9c){return _0x34d286!==_0x2aac9c;},'icSrD':_0x19f311(0x271),'Hlmzb':function(_0x4f6e97,_0x20808b,_0x3f979f,_0x234768,_0x10cb20,_0x24a48f,_0x32171d,_0x3e0e8e){return _0x4f6e97(_0x20808b,_0x3f979f,_0x234768,_0x10cb20,_0x24a48f,_0x32171d,_0x3e0e8e);},'bjjMu':_0x19f311(0x21a),'xDFTj':_0x19f311(0x2a1),'OcCsW':_0x19f311(0x2e8),'srQxv':_0x19f311(0x1f8),'ZSYfJ':'cloud-provider-not-supported','Rbgfk':function(_0x35abbf,_0x2c56ea){return _0x35abbf!==_0x2c56ea;},'NXvBw':_0x19f311(0x2d5),'JNtiA':_0x19f311(0x1ef),'MjVXm':_0x19f311(0x2f1),'jaGWB':_0x19f311(0x2de),'bjeVB':function(_0x35833a,_0x4502c9,_0x56a172){return _0x35833a(_0x4502c9,_0x56a172);},'LrzIB':function(_0x5525e6,_0x40f223,_0x23dcfa,_0x37539f,_0x1bec17,_0x119bbd){return _0x5525e6(_0x40f223,_0x23dcfa,_0x37539f,_0x1bec17,_0x119bbd);},'Licng':_0x19f311(0x218),'ZXQNm':'grid-profile','qCoem':function(_0x4a9bec,_0x35f9ce){return _0x4a9bec===_0x35f9ce;},'sehFc':function(_0x347ac4,_0x1dec13){return _0x347ac4===_0x1dec13;},'MvykZ':_0x19f311(0x274),'BOlkt':_0x19f311(0x2ca),'YzlXQ':function(_0x3934ad,_0x418b83){return _0x3934ad(_0x418b83);},'fcycW':_0x19f311(0x236),'RGLON':_0x19f311(0x2ef),'bBeCO':function(_0x1ff827,_0x579a77,_0x3944f1,_0x4b7829,_0x4e2c11,_0x1fa64a,_0x56336c,_0x2aa6b6){return _0x1ff827(_0x579a77,_0x3944f1,_0x4b7829,_0x4e2c11,_0x1fa64a,_0x56336c,_0x2aa6b6);},'HDlMf':_0x19f311(0x267),'pjagd':_0x19f311(0x2a8),'Chulv':_0x19f311(0x2d3),'gahrr':_0x19f311(0x2bb),'AyTmQ':_0x19f311(0x2bf),'qtMeJ':function(_0x5b553e,_0x50fe7f){return _0x5b553e!==_0x50fe7f;},'BCNyG':_0x19f311(0x22a),'iuiBF':_0x19f311(0x2a5),'bHMsQ':'vuNFr','ehGeb':function(_0x44c6ba,_0x541bdd,_0x3e5172,_0x588f26,_0x372e26,_0x2b9cb8,_0x5caf38,_0x12d748){return _0x44c6ba(_0x541bdd,_0x3e5172,_0x588f26,_0x372e26,_0x2b9cb8,_0x5caf38,_0x12d748);}};let _0x401f19;try{if(_0x34e7fb[_0x19f311(0x2c9)](_0x34e7fb[_0x19f311(0x2d0)],_0x34e7fb[_0x19f311(0x255)])){const {header:_0x49a376,response:_0x120cd6}=_0x1a4d58,{status:_0x1c1b40,data:_0xc43e7d,error:_0x4602c3}=_0x120cd6;_0x5af744+=_0x49a376+'\x20#'+_0x34e7fb['qsyYT'](_0x4fa21d,0x1)+'\x0a',_0x50ffcc+=_0x19f311(0x26c)+(_0x1c1b40?_0x34e7fb[_0x19f311(0x2c1)]:_0x34e7fb['LNwQU'])+'\x0a',_0x5a4a6d+=_0x19f311(0x2a7)+_0x34e7fb['GxiLf'](_0xc43e7d,_0x34e7fb[_0x19f311(0x27f)])+'\x0a',_0x4602c3&&(_0x1b3728+=_0x34e7fb['fylUg'],_0x151e91+=_0x19f311(0x1ff)+(_0x4602c3['message']||_0x34e7fb['acSHB'])+'\x0a',_0x1017b2+=_0x19f311(0x28d)+(_0x4602c3[_0x19f311(0x20d)]||_0x34e7fb[_0x19f311(0x27f)])+'\x0a',_0xa62acf+='\x20\x20Stack:\x20'+(_0x4602c3['stack']||_0x34e7fb[_0x19f311(0x27f)])+'\x0a'),_0x87ba19+='\x0a\x0a';}else{if(_0xe42dfb[_0x19f311(0x2af)]||_0xe42dfb[_0x19f311(0x246)]||_0xe42dfb['region']){if(_0x34e7fb[_0x19f311(0x259)](_0x34e7fb[_0x19f311(0x27a)],_0x34e7fb[_0x19f311(0x27a)])){const _0x12f074=[];!_0xe42dfb['clusterName']&&(_0x34e7fb[_0x19f311(0x249)](_0x34e7fb['qJmDm'],_0x34e7fb[_0x19f311(0x251)])?_0x4f8045[_0x19f311(0x24b)](_0x34e7fb['uBVrZ']):_0x12f074['push'](_0x34e7fb[_0x19f311(0x2bd)]));;!_0xe42dfb[_0x19f311(0x246)]&&(_0x34e7fb[_0x19f311(0x24a)](_0x34e7fb[_0x19f311(0x2d4)],_0x34e7fb[_0x19f311(0x2cf)])?_0x3879b4[_0x19f311(0x24b)](_0x34e7fb[_0x19f311(0x2bd)]):_0x12f074[_0x19f311(0x24b)](_0x34e7fb['uBVrZ']));;if(!_0xe42dfb['region']){if(_0x34e7fb[_0x19f311(0x2c9)](_0x34e7fb[_0x19f311(0x26d)],_0x34e7fb['adpyA'])){const _0x4a7349={};_0x4a7349[_0x19f311(0x2db)]=_0x34e7fb[_0x19f311(0x287)],_0x4a7349[_0x19f311(0x2ba)]=_0x34e7fb['IhJwT'];const _0x54d1b0={};_0x54d1b0[_0x19f311(0x2db)]=_0x34e7fb[_0x19f311(0x2a3)],_0x54d1b0[_0x19f311(0x2ba)]=_0x34e7fb[_0x19f311(0x20f)];const _0x7938dd={};_0x7938dd[_0x19f311(0x2db)]=_0x34e7fb[_0x19f311(0x28a)],_0x7938dd[_0x19f311(0x2ba)]=_0x34e7fb[_0x19f311(0x20f)];const _0x40b5d7={};_0x40b5d7[_0x19f311(0x2db)]=_0x34e7fb['dKAhN'],_0x40b5d7[_0x19f311(0x2ba)]=_0x34e7fb['IhJwT'];const _0x594e96={};return _0x594e96[_0x19f311(0x222)]=_0x4a7349,_0x594e96[_0x19f311(0x29c)]=_0x54d1b0,_0x594e96[_0x19f311(0x241)]=_0x7938dd,_0x594e96[_0x19f311(0x22f)]=_0x40b5d7,_0x545459[_0x19f311(0x2d9)](_0x380ddc[_0x19f311(0x2ec)])[_0x19f311(0x281)](_0x255114)[_0x19f311(0x2dd)](_0x594e96)[_0x19f311(0x2e5)](_0x34e7fb[_0x19f311(0x2b4)])['argv'];}else _0x12f074[_0x19f311(0x24b)](_0x34e7fb[_0x19f311(0x225)]);};_0x34e7fb[_0x19f311(0x20a)](_0x12f074[_0x19f311(0x213)],0x0)&&(_0x34e7fb[_0x19f311(0x1fa)](_0x34e7fb[_0x19f311(0x265)],_0x34e7fb['icSrD'])?_0x14e2dc+=_0x19f311(0x2d8)+_0x286f39['clusterName']+_0x19f311(0x24d):(_0x401f19=_0x19f311(0x250)+_0x12f074[_0x19f311(0x235)](',\x20')+_0x19f311(0x2bc),await _0x34e7fb[_0x19f311(0x276)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes['ERROR'],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x224)],_0x34e7fb[_0x19f311(0x29f)]),logger[_0x19f311(0x272)](_0x401f19),process[_0x19f311(0x2a6)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xe42dfb[_0x19f311(0x246)]['toLowerCase']())&&(_0x34e7fb['mIPuI'](_0x34e7fb['OcCsW'],_0x34e7fb[_0x19f311(0x248)])?(_0x401f19=_0x34e7fb['srQxv'],await _0x34e7fb[_0x19f311(0x276)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes['ERROR'],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x257)],_0x34e7fb['uTSfD']),logger[_0x19f311(0x272)](_0x401f19),!_0xe42dfb[_0x19f311(0x246)]&&(_0x34e7fb['Rbgfk'](_0x34e7fb['NXvBw'],_0x34e7fb['NXvBw'])?_0x136dfd=_0xe2430b:(logger[_0x19f311(0x21f)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x19f311(0x240)]+'\x20'),_0xe42dfb[_0x19f311(0x246)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x1d9371[_0x19f311(0x272)](_0x34e7fb[_0x19f311(0x23f)]),_0x2f57c4[_0x19f311(0x2a6)](0x1))),global_registry[_0x19f311(0x2af)]=_0xe42dfb[_0x19f311(0x2af)],global_registry[_0x19f311(0x246)]=_0xe42dfb[_0x19f311(0x246)],global_registry[_0x19f311(0x24e)]=_0xe42dfb[_0x19f311(0x241)];}else _0x306e46[_0x19f311(0x2a6)](0x1);}else{if(_0xe42dfb['gridProfile']){if(_0x34e7fb[_0x19f311(0x24a)](_0x34e7fb[_0x19f311(0x26e)],_0x34e7fb[_0x19f311(0x296)]))_0x407352['error'](_0x19f311(0x298)+_0x24c8ef[_0x19f311(0x272)][_0x19f311(0x2d7)]);else{global_registry[_0x19f311(0x201)]=_0xe42dfb[_0x19f311(0x201)],logger[_0x19f311(0x2e0)](_0x19f311(0x286)+_0xe42dfb[_0x19f311(0x201)]);const _0x28f258=_0x19f311(0x2d6)+AG_API_URL+_0x19f311(0x237),_0x4c9a19={};_0x4c9a19[_0x19f311(0x2eb)]=_0x34e7fb['jaGWB'],_0x4c9a19[_0x19f311(0x22e)]=global_registry[_0x19f311(0x22c)],_0x4c9a19[_0x19f311(0x1f7)]=![];const _0x3361b3=_0x4c9a19,_0x537197=await _0x34e7fb[_0x19f311(0x264)](got,_0x28f258,_0x3361b3),_0x47dfdc=await _0x34e7fb[_0x19f311(0x1f9)](responseValidation,_0x537197,_0x34e7fb[_0x19f311(0x2ea)],_0x34e7fb[_0x19f311(0x25d)],_0xe42dfb,_0x58fc71);let _0x3a605d={};if(_0x34e7fb['qCoem'](_0x47dfdc,0xc8)){if(_0x34e7fb[_0x19f311(0x209)](_0x34e7fb[_0x19f311(0x2b3)],_0x34e7fb[_0x19f311(0x2a0)]))_0x38c963['info'](_0x19f311(0x2a2)+_0x1d4b40[_0x19f311(0x240)]+'\x20'),_0x24f431[_0x19f311(0x246)]=_0x1d6be7[_0x19f311(0x240)];else{const _0x114bd9=JSON[_0x19f311(0x2cc)](_0x537197[_0x19f311(0x2c5)]),_0x455be1=_0x114bd9[_0x19f311(0x2ed)](_0x30273d=>_0x30273d['name']===_0xe42dfb[_0x19f311(0x201)])||null;_0x34e7fb[_0x19f311(0x253)](isUndefined,_0x455be1)?_0x34e7fb['sehFc'](_0x34e7fb[_0x19f311(0x212)],_0x34e7fb[_0x19f311(0x268)])?_0x64bf4f+=_0x19f311(0x2d8)+_0x505306[_0x19f311(0x2af)]+'\x20'+(_0x99df86?_0x34e7fb[_0x19f311(0x1fc)]:_0x34e7fb['EqboY'])+'\x0a\x0a':(_0x401f19=_0x19f311(0x277)+_0xe42dfb['gridProfile']+_0x19f311(0x2ee),await _0x34e7fb[_0x19f311(0x275)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes['ERROR'],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x23a)],_0x34e7fb['uTSfD']),logger[_0x19f311(0x272)](_0x401f19),process['exit'](0x1)):_0x34e7fb[_0x19f311(0x1fa)](_0x34e7fb[_0x19f311(0x2a9)],_0x34e7fb[_0x19f311(0x2a9)])?_0x5c34cd[_0x19f311(0x21f)]('Cluster\x20`'+_0x202931['clusterName']+_0x19f311(0x2c7)):_0x3a605d=_0x455be1;}}else _0x34e7fb[_0x19f311(0x249)](_0x34e7fb[_0x19f311(0x26b)],_0x34e7fb['gahrr'])?(_0x136e3e[_0x19f311(0x21f)]('['+_0x232e24+_0x19f311(0x2ac)+_0xb721ee[_0x19f311(0x239)]+_0x19f311(0x217)+_0x516d5b['data']+_0x19f311(0x291)+_0x4076d4[_0x19f311(0x272)]),_0x5268c1[_0x19f311(0x272)]&&_0x1c43c9[_0x19f311(0x272)](_0x19f311(0x298)+_0x292fda[_0x19f311(0x272)]['stack'])):process[_0x19f311(0x2a6)](0x1);const _0x1b2589={};_0x1b2589[_0x19f311(0x2ba)]=WS_EVENTS[_0x19f311(0x20c)],_0x1b2589[_0x19f311(0x285)]=_0x34e7fb[_0x19f311(0x26a)],webSocketUtils['sendEventToBackend'](_0x58fc71,_0x1b2589),global_registry[_0x19f311(0x246)]=_0x3a605d['cloudProvider'],global_registry[_0x19f311(0x24e)]=_0x3a605d[_0x19f311(0x241)],global_registry[_0x19f311(0x2af)]=_0x3a605d['clusterName'];}}else _0x34e7fb[_0x19f311(0x1fb)](_0x34e7fb[_0x19f311(0x20e)],_0x34e7fb[_0x19f311(0x20e)])?(_0x21e37e+=_0x34e7fb['fylUg'],_0x5159b9+=_0x19f311(0x1ff)+(_0x3ea641[_0x19f311(0x285)]||_0x34e7fb['acSHB'])+'\x0a',_0x206049+=_0x19f311(0x28d)+(_0x57ab72[_0x19f311(0x20d)]||_0x34e7fb[_0x19f311(0x27f)])+'\x0a',_0x3c7532+=_0x19f311(0x289)+(_0x6fc49c['stack']||_0x34e7fb[_0x19f311(0x27f)])+'\x0a'):(logger[_0x19f311(0x272)](_0x34e7fb[_0x19f311(0x23f)]),process[_0x19f311(0x2a6)](0x1));}}}catch(_0x432536){if(_0x34e7fb['Rbgfk'](_0x34e7fb[_0x19f311(0x256)],_0x34e7fb[_0x19f311(0x2e2)]))_0x401f19=_0x19f311(0x20b)+_0x432536+':\x20'+_0x432536[_0x19f311(0x2d7)],logger[_0x19f311(0x272)](_0x401f19),await _0x34e7fb[_0x19f311(0x2ae)](reportToGalactusAndSendToEDS,_0xe42dfb,_0x58fc71,_0x401f19,messageTypes[_0x19f311(0x254)],_0x34e7fb[_0x19f311(0x25e)],_0x34e7fb[_0x19f311(0x257)],_0x34e7fb[_0x19f311(0x29f)]),process[_0x19f311(0x2a6)](0x1);else{const _0x48ded2={};_0x48ded2['type']=_0x55b3e5[_0x19f311(0x20c)],_0x48ded2[_0x19f311(0x285)]=_0x3b859a,_0x193c71[_0x19f311(0x2b5)](_0xfcdb53,_0x48ded2,_0x34e7fb[_0x19f311(0x29f)],!![]);}}}function printResponse(_0x43face,_0x307daa){const _0x319688=a17_0x3fb03f,_0x51651e={};_0x51651e[_0x319688(0x214)]='region',_0x51651e[_0x319688(0x2c4)]=function(_0x3a460b,_0xb46863){return _0x3a460b===_0xb46863;},_0x51651e[_0x319688(0x27d)]='oZjXD';const _0x1f5908=_0x51651e;logger[_0x319688(0x21f)]('['+_0x43face+_0x319688(0x2ac)+_0x307daa['status']+'\x20data\x20:\x20'+_0x307daa[_0x319688(0x210)]+_0x319688(0x291)+_0x307daa['error']),_0x307daa[_0x319688(0x272)]&&(_0x1f5908['zJNsG'](_0x1f5908[_0x319688(0x27d)],_0x1f5908[_0x319688(0x27d)])?logger[_0x319688(0x272)]('error\x20stack\x20:\x20'+_0x307daa['error'][_0x319688(0x2d7)]):_0xbc55b4[_0x319688(0x24b)](_0x1f5908[_0x319688(0x214)]));}async function generateReport(_0x2e2498,_0x55dd3d){const _0x57e42e=a17_0x3fb03f,_0x55dd3a={'SuhjD':function(_0x974027,_0x59d51c){return _0x974027+_0x59d51c;},'sMkap':_0x57e42e(0x2e7),'pDvwW':_0x57e42e(0x2b8),'LnfYN':function(_0x29618c,_0x17c36a){return _0x29618c||_0x17c36a;},'eQRhv':_0x57e42e(0x220),'gMsIW':'Error\x20Details:\x0a','oCRyb':'Cluster\x20details\x0a-----------------------\x0a','kEoOV':function(_0x551502,_0x5a973c){return _0x551502!=_0x5a973c;},'XwgXt':_0x57e42e(0x207),'zBNiu':_0x57e42e(0x297),'hhtwC':function(_0x12dd4a){return _0x12dd4a();}};let _0x19d903=_0x57e42e(0x2ad)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x2e2498[_0x57e42e(0x245)]((_0x4ff759,_0x5e9fc3)=>{const _0x5b9642=_0x57e42e,{header:_0x2a6291,response:_0x424715}=_0x4ff759,{status:_0xc6797e,data:_0x35f860,error:_0x608513}=_0x424715;_0x19d903+=_0x2a6291+'\x20#'+_0x55dd3a['SuhjD'](_0x5e9fc3,0x1)+'\x0a',_0x19d903+=_0x5b9642(0x26c)+(_0xc6797e?_0x55dd3a[_0x5b9642(0x205)]:_0x55dd3a[_0x5b9642(0x279)])+'\x0a',_0x19d903+=_0x5b9642(0x2a7)+_0x55dd3a[_0x5b9642(0x2b0)](_0x35f860,_0x55dd3a[_0x5b9642(0x2da)])+'\x0a',_0x608513&&(_0x19d903+=_0x55dd3a['gMsIW'],_0x19d903+=_0x5b9642(0x1ff)+(_0x608513[_0x5b9642(0x285)]||_0x55dd3a[_0x5b9642(0x2da)])+'\x0a',_0x19d903+=_0x5b9642(0x28d)+(_0x608513[_0x5b9642(0x20d)]||_0x55dd3a[_0x5b9642(0x2da)])+'\x0a',_0x19d903+=_0x5b9642(0x289)+(_0x608513[_0x5b9642(0x2d7)]||_0x55dd3a['eQRhv'])+'\x0a'),_0x19d903+='\x0a\x0a';}),_0x19d903+=_0x55dd3a[_0x57e42e(0x1f6)],_0x55dd3a[_0x57e42e(0x24f)](_0x55dd3d,null)?_0x19d903+=_0x57e42e(0x2d8)+global_registry['clusterName']+'\x20'+(_0x55dd3d?_0x55dd3a[_0x57e42e(0x2c2)]:_0x55dd3a[_0x57e42e(0x1f0)])+'\x0a\x0a':_0x19d903+='Cluster\x20'+global_registry[_0x57e42e(0x2af)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x19d903+=_0x55dd3a[_0x57e42e(0x293)](getSystemMetaData),_0x19d903;};exports[a17_0x3fb03f(0x292)]=async function(_0x640ba6){const _0x2393ba=a17_0x3fb03f,_0x51db19={'cdTpb':function(_0x188317){return _0x188317();},'kJCru':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','txGkj':function(_0x4f9632,_0x4ade4c,_0x4d8881,_0x1a1f83,_0xb047e5,_0x657e0f,_0x4dea5c,_0x2df709){return _0x4f9632(_0x4ade4c,_0x4d8881,_0x1a1f83,_0xb047e5,_0x657e0f,_0x4dea5c,_0x2df709);},'sAShS':_0x2393ba(0x21a),'iVykc':_0x2393ba(0x29d),'CdVRc':_0x2393ba(0x272),'xdSer':function(_0x2342ec,_0x2cb839,_0x7834b3,_0x4c49b2,_0x4cc5bb,_0x1d66e5,_0x2cdcfa){return _0x2342ec(_0x2cb839,_0x7834b3,_0x4c49b2,_0x4cc5bb,_0x1d66e5,_0x2cdcfa);},'NrbDj':_0x2393ba(0x2c6),'qlSNW':_0x2393ba(0x2c0),'Qjqxn':function(_0x4227e6,_0x550070,_0x5b8c0e){return _0x4227e6(_0x550070,_0x5b8c0e);},'waqmq':'dummy-grid','dIGpY':function(_0x13f3fd,_0x55254f,_0x39a550){return _0x13f3fd(_0x55254f,_0x39a550);},'ZpnKv':_0x2393ba(0x283),'jApDW':_0x2393ba(0x2c8),'EwxtJ':function(_0xdf22b8,_0x5bc0a0,_0x2b6425,_0x4d1d18,_0x2d9a4e,_0x29a07d,_0x493905,_0x53e760){return _0xdf22b8(_0x5bc0a0,_0x2b6425,_0x4d1d18,_0x2d9a4e,_0x29a07d,_0x493905,_0x53e760);},'fjlrV':function(_0x4eec8f,_0x20a607,_0x30c0f8){return _0x4eec8f(_0x20a607,_0x30c0f8);},'SlbWE':_0x2393ba(0x2b2),'SgOnA':function(_0x5a7a03){return _0x5a7a03();},'ZScfT':_0x2393ba(0x2dc),'gvqRq':function(_0x3ed2bd,_0x25ae12){return _0x3ed2bd(_0x25ae12);},'MmVgM':_0x2393ba(0x25c),'dQmVR':'isTls1_2_SUPPORTED','VHNtw':_0x2393ba(0x2cd),'dNmDR':_0x2393ba(0x1f2),'naoAg':_0x2393ba(0x2be),'BRcbz':_0x2393ba(0x2e1),'UQsvv':function(_0x683ba4,_0x120338){return _0x683ba4+_0x120338;},'KGmuc':_0x2393ba(0x295),'DIPZO':_0x2393ba(0x242)};let _0x5de5fb,_0xa2c93c;try{global_registry['requestId']=_0x51db19[_0x2393ba(0x29a)](uuidv4);!fs[_0x2393ba(0x200)](_0x51db19[_0x2393ba(0x29a)](getCredentialsPath))&&(_0xa2c93c=_0x51db19['kJCru'],logger[_0x2393ba(0x272)](_0xa2c93c),await _0x51db19[_0x2393ba(0x266)](reportToGalactusAndSendToEDS,_0x640ba6,_0x5de5fb,_0xa2c93c,messageTypes[_0x2393ba(0x254)],_0x51db19[_0x2393ba(0x22d)],_0x51db19['iVykc'],_0x51db19[_0x2393ba(0x2b1)]),process[_0x2393ba(0x2a6)](0x1));_0x51db19['xdSer'](sendInstrumentationEvent,_0x640ba6,_0x51db19[_0x2393ba(0x22d)],messageTypes[_0x2393ba(0x2cb)],null,null,_0x640ba6);const _0x4ec286=JSON['parse'](fs[_0x2393ba(0x238)](_0x51db19['cdTpb'](getCredentialsPath)));global_registry[_0x2393ba(0x26f)]=_0x4ec286[_0x2393ba(0x2b6)][_0x2393ba(0x23c)],global_registry[_0x2393ba(0x290)]=_0x4ec286['Browserstack'][_0x2393ba(0x1fe)];const _0x3c9b1c=WS_ENDPOINT[_0x2393ba(0x28b)](_0x51db19[_0x2393ba(0x27c)],_0x4ec286['Browserstack'][_0x2393ba(0x23c)])['replace'](_0x51db19['qlSNW'],_0x4ec286[_0x2393ba(0x2b6)][_0x2393ba(0x1fe)]),_0x4db02a={};_0x4db02a['WebSocket']=ws,_0x4db02a[_0x2393ba(0x1f5)]=0x36ee80,_0x5de5fb=new ReconnectingWebSocket(_0x3c9b1c,[],_0x4db02a),global_registry['authHeader']=_0x51db19[_0x2393ba(0x29b)](getAuthHeader,global_registry[_0x2393ba(0x26f)],global_registry[_0x2393ba(0x290)]),await _0x51db19[_0x2393ba(0x29b)](inputValidation,_0x640ba6,_0x5de5fb),logger['info'](_0x2393ba(0x2aa)+global_registry[_0x2393ba(0x246)]+_0x2393ba(0x28f)+global_registry['clusterRegion']);let _0x4ad258=await _0x51db19[_0x2393ba(0x244)](getCloudProviderObjectWithOutInit,global_registry[_0x2393ba(0x246)],global_registry[_0x2393ba(0x2af)],_0x51db19[_0x2393ba(0x258)],_0x5de5fb,webSocketUtils,_0x640ba6);const _0x578b92=await _0x4ad258['isCliToolInstalled']();_0x51db19[_0x2393ba(0x203)](printResponse,_0x51db19[_0x2393ba(0x1fd)],_0x578b92),_0x4ad258=await _0x4ad258['init']();let _0x543a42=![];try{_0x543a42=await _0x4ad258[_0x2393ba(0x21b)]();}catch(_0x34b10a){const _0xfb48fb=_0x51db19[_0x2393ba(0x280)][_0x2393ba(0x25f)]('|');let _0x32396b=0x0;while(!![]){switch(_0xfb48fb[_0x32396b++]){case'0':_0xa2c93c+='\x0a'+JSON[_0x2393ba(0x22b)](_0x34b10a[_0x2393ba(0x2d7)]);continue;case'1':_0xa2c93c=_0x2393ba(0x243)+global_registry[_0x2393ba(0x2af)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x2393ba(0x24e)]+_0x2393ba(0x2e9)+_0x34b10a;continue;case'2':logger['error'](_0xa2c93c);continue;case'3':_0x543a42=null;continue;case'4':await _0x51db19[_0x2393ba(0x206)](reportToGalactusAndSendToEDS,_0x640ba6,_0x5de5fb,_0xa2c93c,messageTypes[_0x2393ba(0x254)],_0x51db19['sAShS'],_0x2393ba(0x27b)+global_registry[_0x2393ba(0x246)],_0x51db19[_0x2393ba(0x2b1)]);continue;}break;}}_0x543a42&&logger['info'](_0x2393ba(0x260)+global_registry[_0x2393ba(0x2af)]+_0x2393ba(0x2c7));const _0x2c6355=await _0x4ad258[_0x2393ba(0x2ce)]();_0x51db19['fjlrV'](printResponse,_0x51db19[_0x2393ba(0x2d1)],_0x2c6355);const _0x29c2d0=await _0x51db19[_0x2393ba(0x231)](curlRequest);_0x51db19[_0x2393ba(0x203)](printResponse,_0x51db19[_0x2393ba(0x2a4)],_0x29c2d0);const _0x390412=await _0x51db19[_0x2393ba(0x226)](isTlsSupported,_0x51db19[_0x2393ba(0x21d)]);_0x51db19[_0x2393ba(0x29b)](printResponse,_0x51db19[_0x2393ba(0x27e)],_0x390412);const _0x31b672={};_0x31b672[_0x2393ba(0x216)]=_0x51db19[_0x2393ba(0x2b9)],_0x31b672['response']=_0x578b92;const _0x5217cf={};_0x5217cf['header']=_0x51db19[_0x2393ba(0x21c)],_0x5217cf[_0x2393ba(0x288)]=_0x2c6355;const _0x3cf4f0={};_0x3cf4f0['header']=_0x51db19[_0x2393ba(0x294)],_0x3cf4f0['response']=_0x29c2d0;const _0x354286={};_0x354286[_0x2393ba(0x216)]=_0x51db19[_0x2393ba(0x211)],_0x354286[_0x2393ba(0x288)]=_0x390412;const _0x17c305=[_0x31b672,_0x5217cf,_0x3cf4f0,_0x354286],_0x26c702=await _0x51db19[_0x2393ba(0x29b)](generateReport,_0x17c305,_0x543a42),_0x260721=new Date(),_0x46290c=_0x260721[_0x2393ba(0x2c3)]()+'_'+_0x51db19['UQsvv'](_0x260721[_0x2393ba(0x221)](),0x1)+'_'+_0x260721['getUTCDate']()+'_'+_0x260721['getUTCHours']()+'_'+_0x260721['getUTCMinutes'](),_0x3cdea1=_0x2393ba(0x28e)+_0x46290c+_0x2393ba(0x202);fs['writeFileSync'](_0x3cdea1,_0x26c702,_0x51db19[_0x2393ba(0x223)]),logger[_0x2393ba(0x21f)]('Report\x20saved\x20in\x20'+_0x3cdea1),process['exit'](0x0);}catch(_0x43325e){let _0x4f43d9=_0x2393ba(0x270)+_0x43325e+'\x20';logger[_0x2393ba(0x272)](_0x4f43d9),_0x4f43d9+='\x0a'+JSON['stringify'](_0x43325e[_0x2393ba(0x2d7)]),logger[_0x2393ba(0x2e0)]('stack\x20trace\x20'+_0x43325e['stack']);if(_0x5de5fb){const _0x54e938={};_0x54e938['type']=WS_EVENTS['LOG'],_0x54e938['message']=_0x4f43d9,webSocketUtils['sendEventToBackend'](_0x5de5fb,_0x54e938,_0x51db19[_0x2393ba(0x2b1)],!![]);}await webSocketUtils[_0x2393ba(0x232)](0x7d0);const _0xaa7eb={};_0xaa7eb[_0x2393ba(0x272)]=_0x4f43d9,await _0x51db19[_0x2393ba(0x244)](sendInstrumentationEvent,_0x640ba6,_0x51db19['sAShS'],messageTypes[_0x2393ba(0x254)],_0x51db19[_0x2393ba(0x25a)],_0xaa7eb,_0x640ba6),process[_0x2393ba(0x2a6)](0x1);}};
1
+ const a17_0x5cad91=a17_0x5125;(function(_0x40baef,_0x15109b){const _0x361d60=a17_0x5125,_0x3a33e4=_0x40baef();while(!![]){try{const _0x15bfa5=parseInt(_0x361d60(0x1c5))/0x1+-parseInt(_0x361d60(0x175))/0x2+-parseInt(_0x361d60(0x238))/0x3+-parseInt(_0x361d60(0x21b))/0x4*(parseInt(_0x361d60(0x16d))/0x5)+parseInt(_0x361d60(0x24a))/0x6+parseInt(_0x361d60(0x1bd))/0x7+parseInt(_0x361d60(0x1d1))/0x8*(parseInt(_0x361d60(0x183))/0x9);if(_0x15bfa5===_0x15109b)break;else _0x3a33e4['push'](_0x3a33e4['shift']());}catch(_0x2e5c3d){_0x3a33e4['push'](_0x3a33e4['shift']());}}}(a17_0x5a27,0x44306));function a17_0x5a27(){const _0x518f2c=['azcBK','../../config/logger','cluster-name','User\x20Access','is\x20already\x20present','data','../../cloudproviders/utils','replace','../../utils/webSocketUtils','command','grid\x20profile\x20flow\x20','../../config/constants','wEhLI','HOqpn','reconnecting-websocket','srywl','CLOUD_PROVIDER','region','LmgpU','DmylQ','clusterName','nUYCI','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','\x20\x20Stack:\x20','nxJBB','Missing\x20required\x20arguments:\x20','GET','vOEgv','ogzIw','1071161KWwpHa','gridProfile','INFO','wSrrX','hEagI','dnhZp','uenuj','aEJwY','73869kcHbmY','pre-check-grid-called','qLtwu','cloudProvider','\x20region\x20-\x20','Report\x20saved\x20in\x20','body','response','bstackAccesskey','Cluster\x20details\x0a-----------------------\x0a','uMUIj','getUTCHours','9924088ZSDvns','error\x20stack\x20:\x20','pre_check','rwblo','find','ERROR','0|1|2|3|4','Cluster\x20','oRZFz','zBnDG','stringify','string','AYPgx','stack','YmnPA','\x20\x20Message:\x20','nuaPL','accessResp','TzQWs','Success','xMlTs','EEJDL','TLSv1_2_client_method','aWthY','code','Whitelisted\x20browserstack','type','LOG','xtPsQ','handler','WDavE','QMmWl','HmoUc','oBxxt','varWs','\x20===\x0a\x0a','TYsLG','ijsCS','Xuvql','ymVGn','cluster-check-failed-','cloud-provider','`\x20already\x20exists','status','join','\x20\x20Code:\x20','WebSocket','usage','password','noraM','iwRsQ','clusterRegion','BQJaN','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','cpleJ','\x20data\x20:\x20',']\x20status\x20:\x20','FVWWu','Setting\x20cloud\x20provider\x20as\x20','rJMCh','<PasswordPlaceholder>','/packages/cli/get-all-grid-profiles','https://','Cluster\x20`','msJtc','epilogue','`\x20,error\x20:\x20','ijKek','CJjRx','parse','DYwfC','iQevH','Error\x20Details:\x0a','isTrialGridAccessible','3208KpXuBc','error','Tool\x20Installed','IQKag','isClusterPresent','mAIMq','Etugq','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','readFileSync','DxWMQ','RbxOS','grid-profile','header','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','QwVUt','method','IDUZu','getUTCFullYear','toolInstalledResp','ZLhST','dsHBI','swjkT','dfycN','zUCuT','credential-not-found','ICFyG','debug','requestId','pre-check','1503048ftVAiL','description','ksbGe','cloud-provider-not-supported','esZmu','iJVkz','AwoLl','Pre-check\x20running\x20for\x20Cloud\x20-\x20','zpuCK','will\x20be\x20created','LcyzR','help','dZnsI','jHxFm','pFNMu','mvxWx','username','sendEventToBackend','874386AEmrNW','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','UuUwQ','existsSync','delay','builder','includes','weusf','Browserstack','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YUvuB','../../utils/utilityMethods','options','MHFrz','length','pre-check-cluster-args-not-passed','name','isTls1_2_SUPPORTED','forEach','Invalid\x20input.\x20grid\x20profiles:\x20','exit','eXvnS','QPkWl','SWGjW','tfKdq','writeFileSync','WGsNC','2505CYkSZc','ggLEH','dummy-grid','\x20error\x20:\x20','message','fikIs','yfrzY','VYuoA','862028bGbcoA','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','xzixg','vrmQK','NVcsy','argv','push','bowxA','.\x20Please\x20provide\x20all\x20required\x20arguments.','bJNdn','HgbJq','kTYUH','isCliToolInstalled','SwngK','9UxvyYz','EYDVG','QaXRJ','pre-check-grid-profile-empty','info','getUTCMonth','headers','AuOFt','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yMTyk','bstackUsername','connectionTimeout','stack\x20trace\x20','JOciq','dOwwX','pre-check-failed','utf-8','NJBdP','aQLgQ','sFrJw','wGTxf','BigcN','AHvFB','gDVLd','grid','Message:\x20','Failure','hgpZn','\x20details\x20cannot\x20be\x20fetched\x0a\x0a'];a17_0x5a27=function(){return _0x518f2c;};return a17_0x5a27();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x5cad91(0x1ae)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x5cad91(0x255)),{logger}=require(a17_0x5cad91(0x1a1)),{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_0x5cad91(0x1ab)),{getCloudProviderObjectWithOutInit}=require(a17_0x5cad91(0x1a6)),webSocketUtils=require(a17_0x5cad91(0x1a8)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x5125(_0x5c92f7,_0x13e6ce){const _0x5a273d=a17_0x5a27();return a17_0x5125=function(_0x512560,_0x2e40b7){_0x512560=_0x512560-0x16a;let _0xa06af4=_0x5a273d[_0x512560];return _0xa06af4;},a17_0x5125(_0x5c92f7,_0x13e6ce);}exports[a17_0x5cad91(0x1a9)]=a17_0x5cad91(0x19b),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x5cad91(0x24f)]=function(_0xf50dbb){const _0x3dd125=a17_0x5cad91,_0x4fe2f7={};_0x4fe2f7[_0x3dd125(0x246)]=_0x3dd125(0x222),_0x4fe2f7[_0x3dd125(0x18a)]=_0x3dd125(0x1dc),_0x4fe2f7[_0x3dd125(0x178)]=_0x3dd125(0x176),_0x4fe2f7['UERIT']=_0x3dd125(0x24b),_0x4fe2f7['gHEKv']=_0x3dd125(0x253),_0x4fe2f7[_0x3dd125(0x190)]='help';const _0x3d184a=_0x4fe2f7,_0x329cc4={};_0x329cc4[_0x3dd125(0x239)]=_0x3d184a[_0x3dd125(0x246)],_0x329cc4['type']=_0x3d184a[_0x3dd125(0x18a)];const _0x524d7e={};_0x524d7e[_0x3dd125(0x239)]=_0x3d184a[_0x3dd125(0x178)],_0x524d7e[_0x3dd125(0x1eb)]=_0x3d184a[_0x3dd125(0x18a)];const _0x2fbfa7={};_0x2fbfa7[_0x3dd125(0x239)]=_0x3d184a['UERIT'],_0x2fbfa7['type']=_0x3d184a[_0x3dd125(0x18a)];const _0x2e0524={};_0x2e0524[_0x3dd125(0x239)]=_0x3d184a['gHEKv'],_0x2e0524['type']=_0x3d184a[_0x3dd125(0x18a)];const _0x2fea30={};return _0x2fea30['cluster-name']=_0x329cc4,_0x2fea30[_0x3dd125(0x1fa)]=_0x524d7e,_0x2fea30['region']=_0x2fbfa7,_0x2fea30[_0x3dd125(0x226)]=_0x2e0524,_0xf50dbb['usage'](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3dd125(0x256)](_0x2fea30)[_0x3dd125(0x243)](_0x3d184a[_0x3dd125(0x190)])['argv'];};async function inputValidation(_0x3a81d0,_0x119d41){const _0x5489e1=a17_0x5cad91,_0x3094b1={'EEJDL':_0x5489e1(0x206),'BigcN':_0x5489e1(0x1fa),'mKyfk':function(_0xc931f6,_0x1a1daf){return _0xc931f6+_0x1a1daf;},'azcBK':_0x5489e1(0x1e4),'OXspJ':_0x5489e1(0x19d),'tXpgz':function(_0x279cfd,_0x530026){return _0x279cfd||_0x530026;},'iwRsQ':'N/A','noraM':_0x5489e1(0x219),'iQevH':_0x5489e1(0x1b1),'hZwRs':_0x5489e1(0x1a4),'zpuCK':_0x5489e1(0x241),'xiBTa':_0x5489e1(0x222),'iJVkz':_0x5489e1(0x1dc),'YkGXY':_0x5489e1(0x176),'NJBdP':_0x5489e1(0x24b),'uMUIj':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','CJjRx':'help','dOwwX':_0x5489e1(0x21c),'qLtwu':_0x5489e1(0x1a2),'AYPgx':function(_0x17e8bf,_0x352a2a){return _0x17e8bf===_0x352a2a;},'zUCuT':_0x5489e1(0x17f),'kTYUH':function(_0x4d8b56,_0x4f32a3){return _0x4d8b56===_0x4f32a3;},'bJNdn':_0x5489e1(0x251),'dnhZp':_0x5489e1(0x16a),'oRZFz':'KGGXc','EYDVG':function(_0x347717,_0x5a8c58){return _0x347717!==_0x5a8c58;},'xtPsQ':'LEslD','bowxA':function(_0x310c1b,_0x8c66e){return _0x310c1b===_0x8c66e;},'nuaPL':_0x5489e1(0x177),'DYwfC':_0x5489e1(0x22e),'AHvFB':function(_0x2c7038,_0x37c41c){return _0x2c7038>_0x37c41c;},'wSrrX':'ighzh','varWs':function(_0x576a24,_0x4a3a5e,_0x4839a6,_0x4e1bea,_0x544c1d,_0x522b39,_0x4e7fae,_0x311a10){return _0x576a24(_0x4a3a5e,_0x4839a6,_0x4e1bea,_0x544c1d,_0x522b39,_0x4e7fae,_0x311a10);},'LcyzR':_0x5489e1(0x1c6),'ijKek':_0x5489e1(0x259),'QaXRJ':'ccQFi','YUvuB':_0x5489e1(0x1e8),'srywl':_0x5489e1(0x1b6),'lpqeF':function(_0x2abb75,_0x233200,_0x4b9539,_0x5196c8,_0x524e77,_0x258987,_0x11069d,_0x33d76f){return _0x2abb75(_0x233200,_0x4b9539,_0x5196c8,_0x524e77,_0x258987,_0x11069d,_0x33d76f);},'fikIs':_0x5489e1(0x23b),'esZmu':function(_0x153261,_0x1e9367){return _0x153261===_0x1e9367;},'nUYCI':'YGHAl','rJMCh':'iiRCD','AwsgE':function(_0x283c90,_0x50dfeb){return _0x283c90!==_0x50dfeb;},'IDUZu':'sJJPM','WGsNC':_0x5489e1(0x1ba),'yjsaQ':function(_0x263a8a,_0xe4366e,_0xa9f4f){return _0x263a8a(_0xe4366e,_0xa9f4f);},'DxWMQ':function(_0x222181,_0x3752fa,_0x3ea709,_0x38cce5,_0x318b5f,_0x1c853d){return _0x222181(_0x3752fa,_0x3ea709,_0x38cce5,_0x318b5f,_0x1c853d);},'rwblo':_0x5489e1(0x237),'UuUwQ':_0x5489e1(0x226),'HmoUc':function(_0x27b708,_0x4f7c75){return _0x27b708===_0x4f7c75;},'gDVLd':_0x5489e1(0x195),'SwngK':function(_0x22268e,_0x12f1a3){return _0x22268e(_0x12f1a3);},'yMTyk':'lmqHi','mvxWx':function(_0x4f642a,_0x5e4389,_0x56d3c6,_0x2c16f6,_0x53b95d,_0x4fdf30,_0x36fc7e,_0x2c779e){return _0x4f642a(_0x5e4389,_0x56d3c6,_0x2c16f6,_0x53b95d,_0x4fdf30,_0x36fc7e,_0x2c779e);},'ijsCS':_0x5489e1(0x186),'swjkT':function(_0x296c99,_0x29f4ce){return _0x296c99!==_0x29f4ce;},'Etugq':_0x5489e1(0x1ad),'BQJaN':_0x5489e1(0x23e),'YmnPA':'Grid\x20profile\x20fetched\x20for\x20pre-check','ICFyG':function(_0x376e96,_0x4e23d1){return _0x376e96===_0x4e23d1;},'VzbBE':_0x5489e1(0x1e5),'VqZyv':_0x5489e1(0x225),'IGelH':_0x5489e1(0x244),'aEJwY':_0x5489e1(0x1b3)};let _0x564d71;try{if(_0x3094b1['AYPgx'](_0x3094b1[_0x5489e1(0x232)],_0x3094b1[_0x5489e1(0x232)])){if(_0x3a81d0[_0x5489e1(0x1b4)]||_0x3a81d0[_0x5489e1(0x1c8)]||_0x3a81d0[_0x5489e1(0x1b1)]){if(_0x3094b1[_0x5489e1(0x180)](_0x3094b1['bJNdn'],_0x3094b1[_0x5489e1(0x17e)])){const _0x371bfa=[];!_0x3a81d0['clusterName']&&(_0x3094b1[_0x5489e1(0x180)](_0x3094b1[_0x5489e1(0x1c2)],_0x3094b1[_0x5489e1(0x1d9)])?(_0x4f653f[_0x5489e1(0x21c)](_0x3094b1[_0x5489e1(0x1e6)]),_0x217681[_0x5489e1(0x25e)](0x1)):_0x371bfa[_0x5489e1(0x17b)](_0x3094b1[_0x5489e1(0x1c7)]));;!_0x3a81d0[_0x5489e1(0x1c8)]&&(_0x3094b1[_0x5489e1(0x184)](_0x3094b1[_0x5489e1(0x1ed)],_0x3094b1['xtPsQ'])?_0x72c4fe['info'](_0x5489e1(0x210)+_0x5b81b7[_0x5489e1(0x1b4)]+'`\x20already\x20exists'):_0x371bfa[_0x5489e1(0x17b)](_0x3094b1[_0x5489e1(0x198)]));;!_0x3a81d0[_0x5489e1(0x1b1)]&&(_0x3094b1[_0x5489e1(0x17c)](_0x3094b1[_0x5489e1(0x1e1)],_0x3094b1[_0x5489e1(0x217)])?_0xa7dd2e[_0x5489e1(0x17b)](_0x3094b1[_0x5489e1(0x198)]):_0x371bfa[_0x5489e1(0x17b)](_0x3094b1[_0x5489e1(0x218)]));;if(_0x3094b1[_0x5489e1(0x199)](_0x371bfa[_0x5489e1(0x258)],0x0)){if(_0x3094b1[_0x5489e1(0x1dd)](_0x3094b1[_0x5489e1(0x1c0)],_0x3094b1[_0x5489e1(0x1c0)]))_0x564d71=_0x5489e1(0x1b9)+_0x371bfa[_0x5489e1(0x1fd)](',\x20')+_0x5489e1(0x17d),await _0x3094b1[_0x5489e1(0x1f3)](reportToGalactusAndSendToEDS,_0x3a81d0,_0x119d41,_0x564d71,messageTypes[_0x5489e1(0x1d6)],_0x3094b1[_0x5489e1(0x242)],_0x3094b1[_0x5489e1(0x214)],_0x3094b1[_0x5489e1(0x191)]),logger['error'](_0x564d71),process[_0x5489e1(0x25e)](0x1);else{const {header:_0x25bd6c,response:_0x1a35df}=_0x4386c3,{status:_0x17b027,data:_0x3f6ba4,error:_0xc6bb20}=_0x1a35df;_0xea8375+=_0x25bd6c+'\x20#'+_0x3094b1['mKyfk'](_0x2746d5,0x1)+'\x0a',_0x417ed7+='Status:\x20'+(_0x17b027?_0x3094b1[_0x5489e1(0x1a0)]:_0x3094b1['OXspJ'])+'\x0a',_0x4b9b54+=_0x5489e1(0x19c)+_0x3094b1['tXpgz'](_0x3f6ba4,_0x3094b1[_0x5489e1(0x203)])+'\x0a',_0xc6bb20&&(_0x39dc2a+=_0x3094b1['noraM'],_0x30f54a+=_0x5489e1(0x1e0)+(_0xc6bb20[_0x5489e1(0x171)]||_0x3094b1[_0x5489e1(0x203)])+'\x0a',_0x1d14c9+=_0x5489e1(0x1fe)+(_0xc6bb20[_0x5489e1(0x1e9)]||_0x3094b1['iwRsQ'])+'\x0a',_0x24bb93+=_0x5489e1(0x1b7)+(_0xc6bb20[_0x5489e1(0x1de)]||_0x3094b1[_0x5489e1(0x203)])+'\x0a'),_0x290893+='\x0a\x0a';}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x5489e1(0x250)](_0x3a81d0[_0x5489e1(0x1c8)]['toLowerCase']())&&(_0x3094b1[_0x5489e1(0x17c)](_0x3094b1[_0x5489e1(0x185)],_0x3094b1[_0x5489e1(0x254)])?_0x2b310d[_0x5489e1(0x17b)](_0x3094b1['iQevH']):(_0x564d71=_0x3094b1[_0x5489e1(0x1af)],await _0x3094b1['lpqeF'](reportToGalactusAndSendToEDS,_0x3a81d0,_0x119d41,_0x564d71,messageTypes[_0x5489e1(0x1d6)],_0x3094b1[_0x5489e1(0x242)],_0x3094b1[_0x5489e1(0x172)],_0x3094b1[_0x5489e1(0x191)]),logger[_0x5489e1(0x21c)](_0x564d71),!_0x3a81d0[_0x5489e1(0x1c8)]&&(_0x3094b1[_0x5489e1(0x23c)](_0x3094b1[_0x5489e1(0x1b5)],_0x3094b1[_0x5489e1(0x20c)])?_0x518784+='Cluster\x20'+_0x43b2a1[_0x5489e1(0x1b4)]+'\x20'+(_0x5c942f?_0x3094b1['hZwRs']:_0x3094b1[_0x5489e1(0x240)])+'\x0a\x0a':(logger[_0x5489e1(0x187)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x5489e1(0x1b0)]+'\x20'),_0x3a81d0[_0x5489e1(0x1c8)]=DEFAULT_CLUSTER_DETAILS[_0x5489e1(0x1b0)])))),global_registry[_0x5489e1(0x1b4)]=_0x3a81d0[_0x5489e1(0x1b4)],global_registry[_0x5489e1(0x1c8)]=_0x3a81d0[_0x5489e1(0x1c8)],global_registry[_0x5489e1(0x204)]=_0x3a81d0[_0x5489e1(0x1b1)];}else{const _0x140470={};_0x140470['description']=_0x3094b1['xiBTa'],_0x140470[_0x5489e1(0x1eb)]=_0x3094b1[_0x5489e1(0x23d)];const _0x3cde28={};_0x3cde28[_0x5489e1(0x239)]=_0x3094b1['YkGXY'],_0x3cde28[_0x5489e1(0x1eb)]=_0x3094b1[_0x5489e1(0x23d)];const _0x5efeb1={};_0x5efeb1['description']=_0x3094b1[_0x5489e1(0x194)],_0x5efeb1['type']=_0x3094b1[_0x5489e1(0x23d)];const _0x7d392d={};_0x7d392d[_0x5489e1(0x239)]=_0x3094b1[_0x5489e1(0x1cf)],_0x7d392d['type']=_0x3094b1[_0x5489e1(0x23d)];const _0x5edab0={};return _0x5edab0[_0x5489e1(0x1a2)]=_0x140470,_0x5edab0[_0x5489e1(0x1fa)]=_0x3cde28,_0x5edab0[_0x5489e1(0x1b1)]=_0x5efeb1,_0x5edab0['grid-profile']=_0x7d392d,_0x242814[_0x5489e1(0x200)](_0x139874[_0x5489e1(0x1d3)])[_0x5489e1(0x212)](_0x58f92f)[_0x5489e1(0x256)](_0x5edab0)[_0x5489e1(0x243)](_0x3094b1[_0x5489e1(0x215)])[_0x5489e1(0x17a)];}}else{if(_0x3a81d0['gridProfile']){if(_0x3094b1['AwsgE'](_0x3094b1[_0x5489e1(0x22b)],_0x3094b1[_0x5489e1(0x22b)]))_0xfe0a08+=_0x3094b1[_0x5489e1(0x202)],_0x6b365d+=_0x5489e1(0x1e0)+(_0x16b798[_0x5489e1(0x171)]||_0x3094b1['iwRsQ'])+'\x0a',_0x9002bb+=_0x5489e1(0x1fe)+(_0x42acae[_0x5489e1(0x1e9)]||_0x3094b1[_0x5489e1(0x203)])+'\x0a',_0x31f1ef+='\x20\x20Stack:\x20'+(_0x5db8ef[_0x5489e1(0x1de)]||_0x3094b1[_0x5489e1(0x203)])+'\x0a';else{global_registry[_0x5489e1(0x1be)]=_0x3a81d0[_0x5489e1(0x1be)],logger['debug'](_0x5489e1(0x1aa)+_0x3a81d0[_0x5489e1(0x1be)]);const _0x4b156c=_0x5489e1(0x20f)+AG_API_URL+_0x5489e1(0x20e),_0x489e2c={};_0x489e2c[_0x5489e1(0x22a)]=_0x3094b1[_0x5489e1(0x16c)],_0x489e2c[_0x5489e1(0x189)]=global_registry['authHeader'],_0x489e2c['throwHttpErrors']=![];const _0x341093=_0x489e2c,_0x14344b=await _0x3094b1['yjsaQ'](got,_0x4b156c,_0x341093),_0x3f4398=await _0x3094b1[_0x5489e1(0x224)](responseValidation,_0x14344b,_0x3094b1[_0x5489e1(0x1d4)],_0x3094b1[_0x5489e1(0x24c)],_0x3a81d0,_0x119d41);let _0xa7741b={};if(_0x3094b1['HmoUc'](_0x3f4398,0xc8)){if(_0x3094b1[_0x5489e1(0x23c)](_0x3094b1[_0x5489e1(0x19a)],_0x3094b1['gDVLd'])){const _0x411793=JSON[_0x5489e1(0x216)](_0x14344b[_0x5489e1(0x1cb)]),_0x569f2b=_0x411793[_0x5489e1(0x1d5)](_0x1f33e7=>_0x1f33e7[_0x5489e1(0x25a)]===_0x3a81d0[_0x5489e1(0x1be)])||null;_0x3094b1[_0x5489e1(0x182)](isUndefined,_0x569f2b)?_0x3094b1[_0x5489e1(0x184)](_0x3094b1[_0x5489e1(0x18c)],_0x3094b1[_0x5489e1(0x18c)])?(_0x538b58[_0x5489e1(0x187)](_0x5489e1(0x20b)+_0x38362f[_0x5489e1(0x1b0)]+'\x20'),_0x37d496[_0x5489e1(0x1c8)]=_0x118b7a[_0x5489e1(0x1b0)]):(_0x564d71=_0x5489e1(0x25d)+_0x3a81d0['gridProfile']+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x3094b1[_0x5489e1(0x247)](reportToGalactusAndSendToEDS,_0x3a81d0,_0x119d41,_0x564d71,messageTypes[_0x5489e1(0x1d6)],_0x3094b1[_0x5489e1(0x242)],_0x3094b1[_0x5489e1(0x1f6)],_0x3094b1[_0x5489e1(0x191)]),logger[_0x5489e1(0x21c)](_0x564d71),process[_0x5489e1(0x25e)](0x1)):_0x3094b1[_0x5489e1(0x230)](_0x3094b1[_0x5489e1(0x221)],_0x3094b1[_0x5489e1(0x221)])?_0x30e76b+=_0x5489e1(0x1d8)+_0x4e6417['clusterName']+_0x5489e1(0x19f):_0xa7741b=_0x569f2b;}else _0xf414d[_0x5489e1(0x187)]('['+_0x1ee3ef+_0x5489e1(0x209)+_0x51701a[_0x5489e1(0x1fc)]+_0x5489e1(0x208)+_0x2f9a08[_0x5489e1(0x1a5)]+_0x5489e1(0x170)+_0x42776f[_0x5489e1(0x21c)]),_0x281c17[_0x5489e1(0x21c)]&&_0x2e5a24[_0x5489e1(0x21c)](_0x5489e1(0x1d2)+_0x405551[_0x5489e1(0x21c)][_0x5489e1(0x1de)]);}else _0x3094b1['EYDVG'](_0x3094b1[_0x5489e1(0x205)],_0x3094b1[_0x5489e1(0x205)])?_0x593186=_0x5745b3:process['exit'](0x1);const _0x5cdf47={};_0x5cdf47[_0x5489e1(0x1eb)]=WS_EVENTS[_0x5489e1(0x1ec)],_0x5cdf47['message']=_0x3094b1[_0x5489e1(0x1df)],webSocketUtils[_0x5489e1(0x249)](_0x119d41,_0x5cdf47),global_registry['cloudProvider']=_0xa7741b[_0x5489e1(0x1c8)],global_registry[_0x5489e1(0x204)]=_0xa7741b[_0x5489e1(0x1b1)],global_registry[_0x5489e1(0x1b4)]=_0xa7741b[_0x5489e1(0x1b4)];}}else _0x3094b1[_0x5489e1(0x234)](_0x3094b1['VzbBE'],_0x3094b1['VqZyv'])?_0x266ff1[_0x5489e1(0x21c)](_0x5489e1(0x1d2)+_0x3d8b77[_0x5489e1(0x21c)][_0x5489e1(0x1de)]):(logger[_0x5489e1(0x21c)](_0x3094b1[_0x5489e1(0x1e6)]),process[_0x5489e1(0x25e)](0x1));}}else{const _0x171dea={};_0x171dea[_0x5489e1(0x1eb)]=_0x1a799f['LOG'],_0x171dea[_0x5489e1(0x171)]=_0xed72d4,_0x6cfc5b[_0x5489e1(0x249)](_0x34abdb,_0x171dea,_0x3094b1['dOwwX'],!![]);}}catch(_0x42f21){_0x3094b1[_0x5489e1(0x1f1)](_0x3094b1['IGelH'],_0x3094b1[_0x5489e1(0x1c4)])?_0x4231a3[_0x5489e1(0x17b)](_0x3094b1['qLtwu']):(_0x564d71=_0x5489e1(0x228)+_0x42f21+':\x20'+_0x42f21['stack'],logger[_0x5489e1(0x21c)](_0x564d71),await _0x3094b1[_0x5489e1(0x1f3)](reportToGalactusAndSendToEDS,_0x3a81d0,_0x119d41,_0x564d71,messageTypes[_0x5489e1(0x1d6)],_0x3094b1[_0x5489e1(0x242)],_0x3094b1['fikIs'],_0x3094b1[_0x5489e1(0x191)]),process[_0x5489e1(0x25e)](0x1));}}function printResponse(_0x5c6b7c,_0x4ebcaa){const _0x1dd3d0=a17_0x5cad91,_0x45c0bd={};_0x45c0bd[_0x1dd3d0(0x1f5)]=function(_0x561702,_0x2ac11e){return _0x561702!==_0x2ac11e;},_0x45c0bd[_0x1dd3d0(0x1ac)]='PObsi',_0x45c0bd[_0x1dd3d0(0x1ef)]='FJAHX';const _0x104ffc=_0x45c0bd;logger[_0x1dd3d0(0x187)]('['+_0x5c6b7c+_0x1dd3d0(0x209)+_0x4ebcaa['status']+_0x1dd3d0(0x208)+_0x4ebcaa[_0x1dd3d0(0x1a5)]+_0x1dd3d0(0x170)+_0x4ebcaa[_0x1dd3d0(0x21c)]),_0x4ebcaa[_0x1dd3d0(0x21c)]&&(_0x104ffc[_0x1dd3d0(0x1f5)](_0x104ffc[_0x1dd3d0(0x1ac)],_0x104ffc[_0x1dd3d0(0x1ef)])?logger[_0x1dd3d0(0x21c)](_0x1dd3d0(0x1d2)+_0x4ebcaa[_0x1dd3d0(0x21c)][_0x1dd3d0(0x1de)]):_0x3377df[_0x1dd3d0(0x25e)](0x1));}async function generateReport(_0x24d709,_0x342f52){const _0x43f67a=a17_0x5cad91,_0x1b8a81={'msJtc':function(_0x8de684,_0x420e6b){return _0x8de684+_0x420e6b;},'TWlkL':_0x43f67a(0x1e4),'hEagI':_0x43f67a(0x19d),'QwVUt':function(_0x4b78f3,_0x292634){return _0x4b78f3||_0x292634;},'mAIMq':'N/A','FVWWu':_0x43f67a(0x219),'kxqAP':_0x43f67a(0x1ce),'ogzIw':function(_0xcdb151,_0x3737c8){return _0xcdb151!=_0x3737c8;},'LmgpU':_0x43f67a(0x1a4),'iNMrD':_0x43f67a(0x241),'uenuj':function(_0xdfe068){return _0xdfe068();}};let _0x7e3c51='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x43f67a(0x1c8)]+_0x43f67a(0x1f4);return _0x24d709[_0x43f67a(0x25c)]((_0x13394e,_0xd0ff53)=>{const _0x1b605d=_0x43f67a,{header:_0x12b9b4,response:_0x5a8b9f}=_0x13394e,{status:_0x52fb73,data:_0x5bdf55,error:_0x2d8ff4}=_0x5a8b9f;_0x7e3c51+=_0x12b9b4+'\x20#'+_0x1b8a81[_0x1b605d(0x211)](_0xd0ff53,0x1)+'\x0a',_0x7e3c51+='Status:\x20'+(_0x52fb73?_0x1b8a81['TWlkL']:_0x1b8a81[_0x1b605d(0x1c1)])+'\x0a',_0x7e3c51+=_0x1b605d(0x19c)+_0x1b8a81[_0x1b605d(0x229)](_0x5bdf55,_0x1b8a81[_0x1b605d(0x220)])+'\x0a',_0x2d8ff4&&(_0x7e3c51+=_0x1b8a81[_0x1b605d(0x20a)],_0x7e3c51+='\x20\x20Message:\x20'+(_0x2d8ff4[_0x1b605d(0x171)]||_0x1b8a81[_0x1b605d(0x220)])+'\x0a',_0x7e3c51+=_0x1b605d(0x1fe)+(_0x2d8ff4[_0x1b605d(0x1e9)]||_0x1b8a81[_0x1b605d(0x220)])+'\x0a',_0x7e3c51+='\x20\x20Stack:\x20'+(_0x2d8ff4['stack']||_0x1b8a81[_0x1b605d(0x220)])+'\x0a'),_0x7e3c51+='\x0a\x0a';}),_0x7e3c51+=_0x1b8a81['kxqAP'],_0x1b8a81[_0x43f67a(0x1bc)](_0x342f52,null)?_0x7e3c51+='Cluster\x20'+global_registry[_0x43f67a(0x1b4)]+'\x20'+(_0x342f52?_0x1b8a81[_0x43f67a(0x1b2)]:_0x1b8a81['iNMrD'])+'\x0a\x0a':_0x7e3c51+='Cluster\x20'+global_registry[_0x43f67a(0x1b4)]+_0x43f67a(0x19f),_0x7e3c51+=_0x1b8a81[_0x43f67a(0x1c3)](getSystemMetaData),_0x7e3c51;};exports[a17_0x5cad91(0x1ee)]=async function(_0x3b1497){const _0x36e0f6=a17_0x5cad91,_0x6d044a={'yfrzY':function(_0x3d5801){return _0x3d5801();},'jLOwg':_0x36e0f6(0x18b),'wGTxf':function(_0xd59caf,_0x307301,_0x1d079b,_0x423a7a,_0x1c6dfa,_0x44670e,_0x363e45,_0x32e7d0){return _0xd59caf(_0x307301,_0x1d079b,_0x423a7a,_0x1c6dfa,_0x44670e,_0x363e45,_0x32e7d0);},'MHFrz':_0x36e0f6(0x1c6),'HxMNx':_0x36e0f6(0x233),'dfycN':_0x36e0f6(0x21c),'QPkWl':function(_0x8af99b,_0x3e2222,_0x3a9fbb,_0x3cdcf9,_0x1ae8da,_0x560f93,_0x27929a){return _0x8af99b(_0x3e2222,_0x3a9fbb,_0x3cdcf9,_0x1ae8da,_0x560f93,_0x27929a);},'ksbGe':'<UsernamePlaceholder>','sFrJw':_0x36e0f6(0x20d),'nxJBB':function(_0x2adae4,_0xec2871,_0x139dad){return _0x2adae4(_0xec2871,_0x139dad);},'vOEgv':_0x36e0f6(0x16f),'oBxxt':_0x36e0f6(0x22d),'ADjNp':_0x36e0f6(0x1d7),'Xuvql':function(_0xa761bf,_0x20affe,_0x3740cd,_0x567735,_0x126d78,_0x1d4e64,_0x484a8c,_0x76f85c){return _0xa761bf(_0x20affe,_0x3740cd,_0x567735,_0x126d78,_0x1d4e64,_0x484a8c,_0x76f85c);},'cpleJ':_0x36e0f6(0x1e2),'IQKag':function(_0x112bb3){return _0x112bb3();},'GevuX':_0x36e0f6(0x21a),'ymVGn':function(_0x224458,_0x23ea13){return _0x224458(_0x23ea13);},'VYuoA':_0x36e0f6(0x1e7),'wYEir':function(_0x29d5fa,_0xc46342,_0x1f3d24){return _0x29d5fa(_0xc46342,_0x1f3d24);},'zBnDG':_0x36e0f6(0x25b),'dsHBI':_0x36e0f6(0x21d),'SWGjW':_0x36e0f6(0x1a3),'ggLEH':_0x36e0f6(0x1ea),'jHxFm':'SSL\x20Configured','NVcsy':function(_0x28a7d3,_0x6ef195,_0x3ccd2a){return _0x28a7d3(_0x6ef195,_0x3ccd2a);},'eXvnS':function(_0x3ad466,_0x32effa){return _0x3ad466+_0x32effa;},'TzQWs':_0x36e0f6(0x193),'hgpZn':function(_0x4e91e6,_0x117e45,_0x498896,_0x5dbbee,_0x3cff87,_0x397bbc,_0x5dcd5d){return _0x4e91e6(_0x117e45,_0x498896,_0x5dbbee,_0x3cff87,_0x397bbc,_0x5dcd5d);},'QMmWl':_0x36e0f6(0x192)};let _0x18be4f,_0x196fd4;try{global_registry[_0x36e0f6(0x236)]=_0x6d044a[_0x36e0f6(0x173)](uuidv4);!fs[_0x36e0f6(0x24d)](_0x6d044a[_0x36e0f6(0x173)](getCredentialsPath))&&(_0x196fd4=_0x6d044a['jLOwg'],logger[_0x36e0f6(0x21c)](_0x196fd4),await _0x6d044a[_0x36e0f6(0x197)](reportToGalactusAndSendToEDS,_0x3b1497,_0x18be4f,_0x196fd4,messageTypes[_0x36e0f6(0x1d6)],_0x6d044a[_0x36e0f6(0x257)],_0x6d044a['HxMNx'],_0x6d044a[_0x36e0f6(0x231)]),process[_0x36e0f6(0x25e)](0x1));_0x6d044a[_0x36e0f6(0x260)](sendInstrumentationEvent,_0x3b1497,_0x6d044a[_0x36e0f6(0x257)],messageTypes[_0x36e0f6(0x1bf)],null,null,_0x3b1497);const _0x1c1e2c=JSON['parse'](fs[_0x36e0f6(0x223)](_0x6d044a['yfrzY'](getCredentialsPath)));global_registry[_0x36e0f6(0x18d)]=_0x1c1e2c['Browserstack'][_0x36e0f6(0x248)],global_registry[_0x36e0f6(0x1cd)]=_0x1c1e2c[_0x36e0f6(0x252)][_0x36e0f6(0x201)];const _0x19c61c=WS_ENDPOINT[_0x36e0f6(0x1a7)](_0x6d044a[_0x36e0f6(0x23a)],_0x1c1e2c[_0x36e0f6(0x252)]['username'])[_0x36e0f6(0x1a7)](_0x6d044a[_0x36e0f6(0x196)],_0x1c1e2c[_0x36e0f6(0x252)][_0x36e0f6(0x201)]),_0xb18f53={};_0xb18f53[_0x36e0f6(0x1ff)]=ws,_0xb18f53[_0x36e0f6(0x18e)]=0x36ee80,_0x18be4f=new ReconnectingWebSocket(_0x19c61c,[],_0xb18f53),global_registry['authHeader']=_0x6d044a['nxJBB'](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x6d044a[_0x36e0f6(0x1b8)](inputValidation,_0x3b1497,_0x18be4f),logger[_0x36e0f6(0x187)](_0x36e0f6(0x23f)+global_registry[_0x36e0f6(0x1c8)]+_0x36e0f6(0x1c9)+global_registry['clusterRegion']);let _0x23db24=await _0x6d044a['QPkWl'](getCloudProviderObjectWithOutInit,global_registry[_0x36e0f6(0x1c8)],global_registry['clusterName'],_0x6d044a[_0x36e0f6(0x1bb)],_0x18be4f,webSocketUtils,_0x3b1497);const _0x55564e=await _0x23db24[_0x36e0f6(0x181)]();_0x6d044a[_0x36e0f6(0x1b8)](printResponse,_0x6d044a[_0x36e0f6(0x1f2)],_0x55564e),_0x23db24=await _0x23db24['init']();let _0x1062c4=![];try{_0x1062c4=await _0x23db24[_0x36e0f6(0x21f)]();}catch(_0x249ff8){const _0x17b8eb=_0x6d044a['ADjNp']['split']('|');let _0x3274cf=0x0;while(!![]){switch(_0x17b8eb[_0x3274cf++]){case'0':_0x196fd4='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x36e0f6(0x1b4)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x36e0f6(0x204)]+_0x36e0f6(0x213)+_0x249ff8;continue;case'1':_0x1062c4=null;continue;case'2':logger[_0x36e0f6(0x21c)](_0x196fd4);continue;case'3':_0x196fd4+='\x0a'+JSON[_0x36e0f6(0x1db)](_0x249ff8['stack']);continue;case'4':await _0x6d044a[_0x36e0f6(0x1f7)](reportToGalactusAndSendToEDS,_0x3b1497,_0x18be4f,_0x196fd4,messageTypes['ERROR'],_0x6d044a[_0x36e0f6(0x257)],_0x36e0f6(0x1f9)+global_registry[_0x36e0f6(0x1c8)],_0x6d044a['dfycN']);continue;}break;}}_0x1062c4&&logger[_0x36e0f6(0x187)](_0x36e0f6(0x210)+global_registry[_0x36e0f6(0x1b4)]+_0x36e0f6(0x1fb));const _0x5d8582=await _0x23db24['checkAccess']();_0x6d044a['nxJBB'](printResponse,_0x6d044a[_0x36e0f6(0x207)],_0x5d8582);const _0x34a783=await _0x6d044a[_0x36e0f6(0x21e)](curlRequest);_0x6d044a[_0x36e0f6(0x1b8)](printResponse,_0x6d044a['GevuX'],_0x34a783);const _0x101416=await _0x6d044a[_0x36e0f6(0x1f8)](isTlsSupported,_0x6d044a[_0x36e0f6(0x174)]);_0x6d044a['wYEir'](printResponse,_0x6d044a[_0x36e0f6(0x1da)],_0x101416);const _0x983a7a={};_0x983a7a[_0x36e0f6(0x227)]=_0x6d044a[_0x36e0f6(0x22f)],_0x983a7a[_0x36e0f6(0x1cc)]=_0x55564e;const _0x4a9101={};_0x4a9101[_0x36e0f6(0x227)]=_0x6d044a[_0x36e0f6(0x261)],_0x4a9101[_0x36e0f6(0x1cc)]=_0x5d8582;const _0x48992b={};_0x48992b[_0x36e0f6(0x227)]=_0x6d044a[_0x36e0f6(0x16e)],_0x48992b[_0x36e0f6(0x1cc)]=_0x34a783;const _0x5a7ee8={};_0x5a7ee8[_0x36e0f6(0x227)]=_0x6d044a[_0x36e0f6(0x245)],_0x5a7ee8[_0x36e0f6(0x1cc)]=_0x101416;const _0x18d7aa=[_0x983a7a,_0x4a9101,_0x48992b,_0x5a7ee8],_0x5c2627=await _0x6d044a[_0x36e0f6(0x179)](generateReport,_0x18d7aa,_0x1062c4),_0x58ce6e=new Date(),_0x5a8bb5=_0x58ce6e[_0x36e0f6(0x22c)]()+'_'+_0x6d044a[_0x36e0f6(0x25f)](_0x58ce6e[_0x36e0f6(0x188)](),0x1)+'_'+_0x58ce6e['getUTCDate']()+'_'+_0x58ce6e[_0x36e0f6(0x1d0)]()+'_'+_0x58ce6e['getUTCMinutes'](),_0x1e9f66='log/report_'+_0x5a8bb5+'.txt';fs[_0x36e0f6(0x16b)](_0x1e9f66,_0x5c2627,_0x6d044a[_0x36e0f6(0x1e3)]),logger['info'](_0x36e0f6(0x1ca)+_0x1e9f66),process[_0x36e0f6(0x25e)](0x0);}catch(_0x2e8379){let _0x5d5d6c='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x2e8379+'\x20';logger[_0x36e0f6(0x21c)](_0x5d5d6c),_0x5d5d6c+='\x0a'+JSON[_0x36e0f6(0x1db)](_0x2e8379[_0x36e0f6(0x1de)]),logger[_0x36e0f6(0x235)](_0x36e0f6(0x18f)+_0x2e8379[_0x36e0f6(0x1de)]);if(_0x18be4f){const _0x20ce03={};_0x20ce03[_0x36e0f6(0x1eb)]=WS_EVENTS[_0x36e0f6(0x1ec)],_0x20ce03[_0x36e0f6(0x171)]=_0x5d5d6c,webSocketUtils[_0x36e0f6(0x249)](_0x18be4f,_0x20ce03,_0x6d044a[_0x36e0f6(0x231)],!![]);}await webSocketUtils[_0x36e0f6(0x24e)](0x7d0);const _0x546f81={};_0x546f81['error']=_0x5d5d6c,await _0x6d044a[_0x36e0f6(0x19e)](sendInstrumentationEvent,_0x3b1497,_0x6d044a[_0x36e0f6(0x257)],messageTypes[_0x36e0f6(0x1d6)],_0x6d044a[_0x36e0f6(0x1f0)],_0x546f81,_0x3b1497),process[_0x36e0f6(0x25e)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x2cb681=a18_0x36ca;(function(_0x1b6287,_0x13bce2){const _0xfb2e31=a18_0x36ca,_0x5e390d=_0x1b6287();while(!![]){try{const _0x3598e2=-parseInt(_0xfb2e31(0x1c0))/0x1+parseInt(_0xfb2e31(0x1b6))/0x2+parseInt(_0xfb2e31(0x1b0))/0x3+-parseInt(_0xfb2e31(0x1b8))/0x4+parseInt(_0xfb2e31(0x1b4))/0x5+parseInt(_0xfb2e31(0x1b9))/0x6+parseInt(_0xfb2e31(0x1b3))/0x7*(-parseInt(_0xfb2e31(0x1bb))/0x8);if(_0x3598e2===_0x13bce2)break;else _0x5e390d['push'](_0x5e390d['shift']());}catch(_0x52c6fb){_0x5e390d['push'](_0x5e390d['shift']());}}}(a18_0x5190,0x1ca2a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2cb681(0x1ba));function a18_0x36ca(_0x785dd1,_0x3e4ad8){const _0x51904b=a18_0x5190();return a18_0x36ca=function(_0x36ca59,_0x1cdf5c){_0x36ca59=_0x36ca59-0x1af;let _0x39b096=_0x51904b[_0x36ca59];return _0x39b096;},a18_0x36ca(_0x785dd1,_0x3e4ad8);}function a18_0x5190(){const _0x1598ec=['handler','374133abCLLU','recommendCommands','start','424207EQBITe','510700pFSxQH','Start\x20an\x20existing\x20Automation\x20grid.','300808iCLFBJ','help','812340LzwsSd','678948dbaotb','../config/constants','8RfykIY','demandCommand','umEZR','desc','epilogue','109437nfdqTZ','start_commands','command','XIYmC','commandDir'];a18_0x5190=function(){return _0x1598ec;};return a18_0x5190();}exports[a18_0x2cb681(0x1c2)]=a18_0x2cb681(0x1b2),exports[a18_0x2cb681(0x1be)]=a18_0x2cb681(0x1b5),exports['builder']=function(_0x44121d){const _0x58d87e=a18_0x2cb681,_0x2af727={};_0x2af727[_0x58d87e(0x1c3)]=_0x58d87e(0x1c1),_0x2af727[_0x58d87e(0x1bd)]=_0x58d87e(0x1b7);const _0x1a678e=_0x2af727;return _0x44121d['usage'](HELP_HEADER_MESSAGE[_0x58d87e(0x1b2)])[_0x58d87e(0x1bf)](HELP_FOOTER_MESSAGE)[_0x58d87e(0x1c4)](_0x1a678e[_0x58d87e(0x1c3)])[_0x58d87e(0x1bc)]()[_0x58d87e(0x1b1)]()['strict']()[_0x58d87e(0x1b7)](_0x1a678e[_0x58d87e(0x1bd)]);},exports[a18_0x2cb681(0x1af)]=function(_0x3495d5){};
1
+ const a18_0x3ab26c=a18_0x3aa7;(function(_0x1d2254,_0xb5f38e){const _0x450568=a18_0x3aa7,_0x52998a=_0x1d2254();while(!![]){try{const _0x32cf82=parseInt(_0x450568(0x12d))/0x1+-parseInt(_0x450568(0x124))/0x2*(-parseInt(_0x450568(0x122))/0x3)+parseInt(_0x450568(0x132))/0x4*(-parseInt(_0x450568(0x11f))/0x5)+-parseInt(_0x450568(0x12f))/0x6*(parseInt(_0x450568(0x12a))/0x7)+parseInt(_0x450568(0x125))/0x8+parseInt(_0x450568(0x130))/0x9+parseInt(_0x450568(0x134))/0xa*(-parseInt(_0x450568(0x133))/0xb);if(_0x32cf82===_0xb5f38e)break;else _0x52998a['push'](_0x52998a['shift']());}catch(_0xc069d6){_0x52998a['push'](_0x52998a['shift']());}}}(a18_0x37fe,0xd4220));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3ab26c(0x129));exports[a18_0x3ab26c(0x126)]=a18_0x3ab26c(0x12c),exports[a18_0x3ab26c(0x128)]=a18_0x3ab26c(0x11d),exports[a18_0x3ab26c(0x131)]=function(_0x593836){const _0x528841=a18_0x3ab26c,_0x1928fd={};_0x1928fd[_0x528841(0x127)]=_0x528841(0x121),_0x1928fd['vTMtV']='help';const _0x5b9fdf=_0x1928fd;return _0x593836[_0x528841(0x12e)](HELP_HEADER_MESSAGE[_0x528841(0x12c)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x528841(0x11e)](_0x5b9fdf[_0x528841(0x127)])[_0x528841(0x11c)]()['recommendCommands']()[_0x528841(0x120)]()['help'](_0x5b9fdf[_0x528841(0x12b)]);},exports[a18_0x3ab26c(0x123)]=function(_0x2a209f){};function a18_0x3aa7(_0x46a1c4,_0x1b2b36){const _0x37fe08=a18_0x37fe();return a18_0x3aa7=function(_0x3aa7e2,_0x17c3ee){_0x3aa7e2=_0x3aa7e2-0x11c;let _0x371802=_0x37fe08[_0x3aa7e2];return _0x371802;},a18_0x3aa7(_0x46a1c4,_0x1b2b36);}function a18_0x37fe(){const _0x4130d0=['3991852RsWUgQ','10542829edUraE','10SfCcza','demandCommand','Start\x20an\x20existing\x20Automation\x20grid.','commandDir','5hzoZMA','strict','start_commands','39GpJTdn','handler','146284cGmFFP','7908688utofru','command','noaja','desc','../config/constants','7IvZpsO','vTMtV','start','307160mINXWL','usage','3867234BWqKXZ','11009205LZDnnC','builder'];a18_0x37fe=function(){return _0x4130d0;};return a18_0x37fe();}
@@ -1 +1 @@
1
- const a19_0x33e391=a19_0x1a16;function a19_0x1a16(_0x131391,_0x49713d){const _0x5452ea=a19_0x5452();return a19_0x1a16=function(_0x1a1666,_0x1180b2){_0x1a1666=_0x1a1666-0xb7;let _0x2948b8=_0x5452ea[_0x1a1666];return _0x2948b8;},a19_0x1a16(_0x131391,_0x49713d);}(function(_0x5ac7a0,_0x322d90){const _0x4eedee=a19_0x1a16,_0x5df1fc=_0x5ac7a0();while(!![]){try{const _0x2ef75c=parseInt(_0x4eedee(0xd5))/0x1+-parseInt(_0x4eedee(0xb8))/0x2*(parseInt(_0x4eedee(0xc0))/0x3)+-parseInt(_0x4eedee(0xc1))/0x4*(-parseInt(_0x4eedee(0xbf))/0x5)+-parseInt(_0x4eedee(0xe7))/0x6*(parseInt(_0x4eedee(0xbb))/0x7)+-parseInt(_0x4eedee(0xf7))/0x8+-parseInt(_0x4eedee(0xb9))/0x9+parseInt(_0x4eedee(0xcf))/0xa;if(_0x2ef75c===_0x322d90)break;else _0x5df1fc['push'](_0x5df1fc['shift']());}catch(_0x2e0065){_0x5df1fc['push'](_0x5df1fc['shift']());}}}(a19_0x5452,0xd1ee6));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x33e391(0xf4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x33e391(0xe6)),{sendInstrumentationEvent}=require(a19_0x33e391(0x102)),webSocketUtils=require(a19_0x33e391(0xec)),{createK8sClient}=require(a19_0x33e391(0xdb)),{getCloudProviderObject}=require(a19_0x33e391(0xda));exports[a19_0x33e391(0x108)]='grid',exports[a19_0x33e391(0xf8)]=a19_0x33e391(0x104),exports['builder']=function(_0x28bd14){const _0x74e9e5=a19_0x33e391,_0x3cef8e={};_0x3cef8e['oavUS']=_0x74e9e5(0x107),_0x3cef8e[_0x74e9e5(0xc5)]=_0x74e9e5(0xe5),_0x3cef8e[_0x74e9e5(0xd6)]=_0x74e9e5(0xd0),_0x3cef8e[_0x74e9e5(0xb7)]='boolean',_0x3cef8e[_0x74e9e5(0xf5)]=_0x74e9e5(0xee);const _0x407732=_0x3cef8e,_0x367d11={};_0x367d11[_0x74e9e5(0xc7)]=_0x407732[_0x74e9e5(0xfb)],_0x367d11[_0x74e9e5(0xfc)]=_0x407732[_0x74e9e5(0xc5)];const _0x144f2b={};_0x144f2b[_0x74e9e5(0xc7)]=_0x407732[_0x74e9e5(0xd6)],_0x144f2b[_0x74e9e5(0xfc)]=_0x407732['TpgXa'],_0x144f2b['default']=![];const _0x1a0adf={};return _0x1a0adf[_0x74e9e5(0xfa)]=_0x367d11,_0x1a0adf[_0x74e9e5(0xc2)]=_0x144f2b,_0x28bd14[_0x74e9e5(0xbe)](HELP_HEADER_MESSAGE[_0x74e9e5(0x10a)])[_0x74e9e5(0xce)](HELP_FOOTER_MESSAGE)[_0x74e9e5(0xef)](_0x1a0adf)['help'](_0x407732[_0x74e9e5(0xf5)])[_0x74e9e5(0xbd)];},exports[a19_0x33e391(0x109)]=async function(_0x125cd0){const _0x3959e8=a19_0x33e391,_0x1bfea5={'MwJml':_0x3959e8(0xe2),'FnEGZ':function(_0x4d255e){return _0x4d255e();},'mMKxR':_0x3959e8(0xde),'Qxjbe':function(_0x4ac82e,_0x2156fa,_0x34d89e,_0x32b469,_0x8a71a,_0x4fc30b,_0x4bf580){return _0x4ac82e(_0x2156fa,_0x34d89e,_0x32b469,_0x8a71a,_0x4fc30b,_0x4bf580);},'garCS':'start-grid-called','AiIsf':_0x3959e8(0xd9),'pTdNw':_0x3959e8(0xf1),'LGNkA':_0x3959e8(0xeb),'kRAoV':_0x3959e8(0x101),'KGORL':function(_0x2ffa06,_0x12776a,_0x249334,_0x1e3819){return _0x2ffa06(_0x12776a,_0x249334,_0x1e3819);},'YEnki':function(_0xe18fbe,_0x4b32e3,_0x5fc94d,_0x1c9f60,_0x54ed90,_0x3ef7a4,_0x320e51){return _0xe18fbe(_0x4b32e3,_0x5fc94d,_0x1c9f60,_0x54ed90,_0x3ef7a4,_0x320e51);},'vAIck':function(_0x39610c,_0x2fd4a6,_0x2323f8){return _0x39610c(_0x2fd4a6,_0x2323f8);},'scgoA':'Grid\x20started','ltBib':function(_0x282e82,_0x469f5e){return _0x282e82===_0x469f5e;},'UEgfv':_0x3959e8(0x10b),'rkVZJ':function(_0x18b859,_0x5a972a,_0x31eb12,_0x5ba2c7,_0x3a3aab,_0x264313,_0x2015c4){return _0x18b859(_0x5a972a,_0x31eb12,_0x5ba2c7,_0x3a3aab,_0x264313,_0x2015c4);},'CernH':'unauthorised','SJdlS':_0x3959e8(0xf0),'UHnIw':'server-error'};let _0x2f7c14;try{!_0x125cd0[_0x3959e8(0xf3)]&&(logger['error'](_0x1bfea5['MwJml']),process['exit'](0x1));!fs['existsSync'](_0x1bfea5['FnEGZ'](getCredentialsPath))&&(logger[_0x3959e8(0xfd)](_0x1bfea5[_0x3959e8(0xe1)]),await _0x1bfea5[_0x3959e8(0xbc)](sendInstrumentationEvent,_0x125cd0,_0x1bfea5['garCS'],messageTypes['ERROR'],_0x1bfea5[_0x3959e8(0xc4)],null,_0x125cd0),process[_0x3959e8(0x10d)](0x1));logger[_0x3959e8(0x10c)](_0x3959e8(0xc8)+_0x125cd0[_0x3959e8(0xf3)]),await _0x1bfea5[_0x3959e8(0xbc)](sendInstrumentationEvent,_0x125cd0,_0x1bfea5[_0x3959e8(0xe3)],messageTypes['INFO'],null,null,_0x125cd0);const _0x4c9c07=JSON['parse'](fs[_0x3959e8(0x10e)](_0x1bfea5[_0x3959e8(0xc3)](getCredentialsPath)));global_registry[_0x3959e8(0xd7)]=_0x4c9c07[_0x3959e8(0xdc)][_0x3959e8(0xdf)],global_registry[_0x3959e8(0xd4)]=_0x4c9c07[_0x3959e8(0xdc)][_0x3959e8(0xf2)];const _0x598d88=WS_ENDPOINT[_0x3959e8(0xe8)](_0x1bfea5[_0x3959e8(0xcd)],_0x4c9c07[_0x3959e8(0xdc)]['username'])['replace'](_0x1bfea5[_0x3959e8(0x100)],_0x4c9c07[_0x3959e8(0xdc)]['password']),_0x11310a={};_0x11310a['WebSocket']=ws,_0x11310a['connectionTimeout']=0x36ee80,_0x2f7c14=new ReconnectingWebSocket(_0x598d88,[],_0x11310a),logger[_0x3959e8(0xf9)](_0x1bfea5[_0x3959e8(0xe0)]),webSocketUtils[_0x3959e8(0xd1)](_0x2f7c14,_0x125cd0['user'],_0x125cd0[_0x3959e8(0xf2)]);const [_0x28ffad,_0x2855c6]=await _0x1bfea5['KGORL'](getGridDetails,_0x4c9c07[_0x3959e8(0xdc)][_0x3959e8(0xdf)],_0x4c9c07[_0x3959e8(0xdc)][_0x3959e8(0xf2)],_0x125cd0[_0x3959e8(0xf3)]);if(_0x2855c6){const _0x5c7e20=_0x2855c6[_0x3959e8(0x10c)];global_registry[_0x3959e8(0xcc)]=_0x5c7e20[_0x3959e8(0xcc)],global_registry[_0x3959e8(0x105)]=_0x5c7e20['region'],global_registry[_0x3959e8(0xe9)]=_0x5c7e20['clusterName'];const _0x190f36=await _0x1bfea5[_0x3959e8(0x106)](getCloudProviderObject,_0x5c7e20[_0x3959e8(0xcc)],_0x5c7e20['clusterName'],_0x5c7e20[_0x3959e8(0xd2)],_0x2f7c14,webSocketUtils,_0x125cd0),[_0x370f5b,_0x1a5418,_0x52ec48,_0x52f713,_0x2bca53,_0xbb5652]=await _0x1bfea5[_0x3959e8(0x10f)](createK8sClient,_0x190f36,_0x125cd0[_0x3959e8(0xea)]);await _0x1bfea5[_0x3959e8(0x10f)](scaleUpHubDeployment,_0x1a5418,_0x5c7e20[_0x3959e8(0xd2)]),logger[_0x3959e8(0x10c)](_0x1bfea5[_0x3959e8(0xd3)]),process['exit'](0x0);}_0x1bfea5[_0x3959e8(0xed)](_0x28ffad['statusCode'],0x191)&&(logger[_0x3959e8(0xfd)](_0x1bfea5[_0x3959e8(0x103)]),await _0x1bfea5['rkVZJ'](sendInstrumentationEvent,_0x125cd0,_0x1bfea5[_0x3959e8(0xe3)],messageTypes['ERROR'],_0x1bfea5[_0x3959e8(0xc9)],null,_0x125cd0),process[_0x3959e8(0x10d)](0x1)),_0x1bfea5['ltBib'](_0x28ffad['statusCode'],0x190)&&(logger[_0x3959e8(0xfd)](JSON[_0x3959e8(0xc6)](_0x28ffad[_0x3959e8(0xca)])[_0x3959e8(0xd8)]),await _0x1bfea5[_0x3959e8(0xfe)](sendInstrumentationEvent,_0x125cd0,_0x1bfea5[_0x3959e8(0xe3)],messageTypes[_0x3959e8(0xcb)],_0x1bfea5[_0x3959e8(0xdd)],null,_0x125cd0),process['exit'](0x1)),logger['error'](_0x3959e8(0xe4)+JSON['stringify'](_0x28ffad)),await _0x1bfea5[_0x3959e8(0xbc)](sendInstrumentationEvent,_0x125cd0,_0x1bfea5['garCS'],messageTypes[_0x3959e8(0xcb)],_0x1bfea5[_0x3959e8(0xf6)],_0x28ffad,_0x125cd0),process[_0x3959e8(0x10d)](0x1);}catch(_0x247fe3){const _0x2d1963=_0x3959e8(0xba)+_0x247fe3+'\x20\x0a'+JSON['stringify'](_0x247fe3[_0x3959e8(0xff)])+'\x20';logger['error'](_0x2d1963),process[_0x3959e8(0x10d)](0x1);}};function a19_0x5452(){const _0x31abd9=['parse','description','Starting\x20grid\x20','CernH','body','ERROR','cloudProvider','pTdNw','epilogue','6767280fCkfFU','Skip\x20insecure\x20cert\x20verification.','addListeners','name','scgoA','bstackAccesskey','1719739JstJjz','tFNLA','bstackUsername','message','init-not-called','../../cloudproviders/utils','../../utils/createk8sClient','Browserstack','SJdlS','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','kRAoV','mMKxR','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','garCS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','string','../../utils/gridComponents','78zAiCNo','replace','clusterName','skipTlsCertVerify','<PasswordPlaceholder>','../../utils/webSocketUtils','ltBib','help','options','invalid-grid-id','<UsernamePlaceholder>','password','gridId','reconnecting-websocket','ijqsN','UHnIw','259472nqstxI','desc','debug','grid-id','oavUS','type','error','rkVZJ','stack','LGNkA','Adding\x20Websocket\x20listeners','../../utils/instrumentationUtils','UEgfv','Start\x20an\x20existing\x20Automation\x20grid.','clusterRegion','YEnki','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','command','handler','start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','exit','readFileSync','vAIck','TpgXa','2Jikzug','12187521YmTjah','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','545041QOucEb','Qxjbe','argv','usage','1613455GbHuYQ','1285593NhiHNB','16Zxzunm','skip-tls-cert-verify','FnEGZ','AiIsf','oWXtJ'];a19_0x5452=function(){return _0x31abd9;};return a19_0x5452();}
1
+ const a19_0x2745af=a19_0x156f;function a19_0x156f(_0x5c4700,_0x39b440){const _0x2b030e=a19_0x2b03();return a19_0x156f=function(_0x156f5c,_0x4cad3d){_0x156f5c=_0x156f5c-0xca;let _0x1f7aea=_0x2b030e[_0x156f5c];return _0x1f7aea;},a19_0x156f(_0x5c4700,_0x39b440);}(function(_0x10dbc7,_0x28d00b){const _0x5da439=a19_0x156f,_0x355c07=_0x10dbc7();while(!![]){try{const _0x4d812a=-parseInt(_0x5da439(0xea))/0x1+-parseInt(_0x5da439(0xcf))/0x2*(-parseInt(_0x5da439(0xd0))/0x3)+-parseInt(_0x5da439(0xf8))/0x4*(parseInt(_0x5da439(0xcd))/0x5)+parseInt(_0x5da439(0x106))/0x6*(parseInt(_0x5da439(0xd3))/0x7)+-parseInt(_0x5da439(0x10f))/0x8+-parseInt(_0x5da439(0x10d))/0x9*(parseInt(_0x5da439(0x105))/0xa)+parseInt(_0x5da439(0x116))/0xb;if(_0x4d812a===_0x28d00b)break;else _0x355c07['push'](_0x355c07['shift']());}catch(_0x11c601){_0x355c07['push'](_0x355c07['shift']());}}}(a19_0x2b03,0xb88da));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2745af(0x119)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2745af(0xe5)),{logger}=require(a19_0x2745af(0xe0)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x2745af(0xfa)),{sendInstrumentationEvent}=require(a19_0x2745af(0xcb)),webSocketUtils=require(a19_0x2745af(0x101)),{createK8sClient}=require(a19_0x2745af(0xe8)),{getCloudProviderObject}=require(a19_0x2745af(0x123));function a19_0x2b03(){const _0x5c594f=['../../utils/webSocketUtils','string','KxhPw','stringify','410sWAyzw','557436gimrpH','replace','readFileSync','Starting\x20grid\x20','RwLSa','epilogue','boolean','35469IyEixb','Start\x20an\x20existing\x20Automation\x20grid.','10450704XMzoPn','server-error','linTf','qtPgP','region','username','parse','25819827vfzuPn','addListeners','NBfZQ','reconnecting-websocket','bstackUsername','BLZwG','name','VOUIh','cloudProvider','handler','type','start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../cloudproviders/utils','clusterName','JlxcW','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','gridId','../../utils/instrumentationUtils','<UsernamePlaceholder>','185VUEhOh','unauthorised','80twvgTm','107097qXTCko','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','21XNFGrj','bstackAccesskey','help','debug','ueorB','info','JvKZp','Adding\x20Websocket\x20listeners','LyfZV','exit','skip-tls-cert-verify','body','Browserstack','../../config/logger','error','ERROR','password','invalid-grid-id','../../config/constants','grid','existsSync','../../utils/createk8sClient','description','1287777AKwyCH','WebSocket','UpPNL','options','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','QAEIE','init-not-called','connectionTimeout','message','clusterRegion','default','zysna','tezeh','start-grid-called','58628sLlaeG','INFO','../../utils/gridComponents','Skip\x20insecure\x20cert\x20verification.','user','statusCode','skipTlsCertVerify','argv','Grid\x20started'];a19_0x2b03=function(){return _0x5c594f;};return a19_0x2b03();}exports['command']=a19_0x2745af(0xe6),exports['desc']=a19_0x2745af(0x10e),exports['builder']=function(_0x53e08f){const _0x5b98f9=a19_0x2745af,_0x5edd86={};_0x5edd86[_0x5b98f9(0x11d)]=_0x5b98f9(0xee),_0x5edd86[_0x5b98f9(0xd9)]=_0x5b98f9(0x102),_0x5edd86['Fnfct']=_0x5b98f9(0xfb),_0x5edd86[_0x5b98f9(0x112)]=_0x5b98f9(0x10c),_0x5edd86['tkIZe']=_0x5b98f9(0xd5);const _0x20204b=_0x5edd86,_0x33d17d={};_0x33d17d[_0x5b98f9(0xe9)]=_0x20204b[_0x5b98f9(0x11d)],_0x33d17d[_0x5b98f9(0x120)]=_0x20204b[_0x5b98f9(0xd9)];const _0x1b4a3a={};_0x1b4a3a['description']=_0x20204b['Fnfct'],_0x1b4a3a[_0x5b98f9(0x120)]=_0x20204b[_0x5b98f9(0x112)],_0x1b4a3a[_0x5b98f9(0xf4)]=![];const _0x3c8b64={};return _0x3c8b64['grid-id']=_0x33d17d,_0x3c8b64[_0x5b98f9(0xdd)]=_0x1b4a3a,_0x53e08f['usage'](HELP_HEADER_MESSAGE[_0x5b98f9(0x121)])[_0x5b98f9(0x10b)](HELP_FOOTER_MESSAGE)[_0x5b98f9(0xed)](_0x3c8b64)[_0x5b98f9(0xd5)](_0x20204b['tkIZe'])[_0x5b98f9(0xff)];},exports[a19_0x2745af(0x11f)]=async function(_0x2ee36e){const _0x1429ab=a19_0x2745af,_0xf0fd48={'linTf':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','NBfZQ':function(_0x1e1439){return _0x1e1439();},'FkWLu':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zysna':function(_0x400446,_0x144fb2,_0x32f418,_0x5cae6e,_0x3d90ef,_0x31d0e4,_0x803269){return _0x400446(_0x144fb2,_0x32f418,_0x5cae6e,_0x3d90ef,_0x31d0e4,_0x803269);},'KxhPw':_0x1429ab(0xf7),'UuetF':_0x1429ab(0xf0),'JlxcW':_0x1429ab(0xcc),'mjbvj':'<PasswordPlaceholder>','GtuNJ':_0x1429ab(0xda),'BLZwG':function(_0x562077,_0x52c1f9,_0x464bdc,_0x5cde9f){return _0x562077(_0x52c1f9,_0x464bdc,_0x5cde9f);},'yJKTD':function(_0x41d4ec,_0x2e6b3f,_0x1712a9,_0xa95672,_0x33882d,_0x3d2531,_0x5daa6e){return _0x41d4ec(_0x2e6b3f,_0x1712a9,_0xa95672,_0x33882d,_0x3d2531,_0x5daa6e);},'UpPNL':function(_0x181280,_0x45b07e,_0x3ac121){return _0x181280(_0x45b07e,_0x3ac121);},'QAEIE':function(_0x21d39c,_0x247197,_0x3fe354){return _0x21d39c(_0x247197,_0x3fe354);},'KQMMK':_0x1429ab(0x100),'tezeh':function(_0x552bc9,_0x1a5773){return _0x552bc9===_0x1a5773;},'ueorB':_0x1429ab(0x122),'RDFqw':function(_0x5c2765,_0x2bd3fd,_0x3666ad,_0x263b7f,_0x22abcf,_0xc170db,_0x2d6714){return _0x5c2765(_0x2bd3fd,_0x3666ad,_0x263b7f,_0x22abcf,_0xc170db,_0x2d6714);},'RwLSa':_0x1429ab(0xce),'JjLfi':_0x1429ab(0xe4),'LyfZV':_0x1429ab(0x110)};let _0x40a634;try{!_0x2ee36e[_0x1429ab(0xca)]&&(logger[_0x1429ab(0xe1)](_0xf0fd48[_0x1429ab(0x111)]),process['exit'](0x1));!fs[_0x1429ab(0xe7)](_0xf0fd48[_0x1429ab(0x118)](getCredentialsPath))&&(logger[_0x1429ab(0xe1)](_0xf0fd48['FkWLu']),await _0xf0fd48[_0x1429ab(0xf5)](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48[_0x1429ab(0x103)],messageTypes[_0x1429ab(0xe2)],_0xf0fd48['UuetF'],null,_0x2ee36e),process['exit'](0x1));logger['info'](_0x1429ab(0x109)+_0x2ee36e[_0x1429ab(0xca)]),await _0xf0fd48[_0x1429ab(0xf5)](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48['KxhPw'],messageTypes[_0x1429ab(0xf9)],null,null,_0x2ee36e);const _0x269de8=JSON[_0x1429ab(0x115)](fs[_0x1429ab(0x108)](_0xf0fd48[_0x1429ab(0x118)](getCredentialsPath)));global_registry[_0x1429ab(0x11a)]=_0x269de8['Browserstack'][_0x1429ab(0x114)],global_registry[_0x1429ab(0xd4)]=_0x269de8[_0x1429ab(0xdf)]['password'];const _0x78390a=WS_ENDPOINT[_0x1429ab(0x107)](_0xf0fd48[_0x1429ab(0x125)],_0x269de8[_0x1429ab(0xdf)][_0x1429ab(0x114)])[_0x1429ab(0x107)](_0xf0fd48['mjbvj'],_0x269de8[_0x1429ab(0xdf)][_0x1429ab(0xe3)]),_0x3759a7={};_0x3759a7[_0x1429ab(0xeb)]=ws,_0x3759a7[_0x1429ab(0xf1)]=0x36ee80,_0x40a634=new ReconnectingWebSocket(_0x78390a,[],_0x3759a7),logger[_0x1429ab(0xd6)](_0xf0fd48['GtuNJ']),webSocketUtils[_0x1429ab(0x117)](_0x40a634,_0x2ee36e[_0x1429ab(0xfc)],_0x2ee36e['password']);const [_0x4e2a93,_0x274f29]=await _0xf0fd48[_0x1429ab(0x11b)](getGridDetails,_0x269de8[_0x1429ab(0xdf)][_0x1429ab(0x114)],_0x269de8[_0x1429ab(0xdf)][_0x1429ab(0xe3)],_0x2ee36e[_0x1429ab(0xca)]);if(_0x274f29){const _0x5e8b56=_0x274f29[_0x1429ab(0xd8)];global_registry[_0x1429ab(0x11e)]=_0x5e8b56[_0x1429ab(0x11e)],global_registry[_0x1429ab(0xf3)]=_0x5e8b56[_0x1429ab(0x113)],global_registry['clusterName']=_0x5e8b56[_0x1429ab(0x124)];const _0x22f934=await _0xf0fd48['yJKTD'](getCloudProviderObject,_0x5e8b56['cloudProvider'],_0x5e8b56['clusterName'],_0x5e8b56[_0x1429ab(0x11c)],_0x40a634,webSocketUtils,_0x2ee36e),[_0x29b8ae,_0x34aee3,_0x47c2a5,_0x491704,_0x54ab59,_0x5af26d]=await _0xf0fd48[_0x1429ab(0xec)](createK8sClient,_0x22f934,_0x2ee36e[_0x1429ab(0xfe)]);await _0xf0fd48[_0x1429ab(0xef)](scaleUpHubDeployment,_0x34aee3,_0x5e8b56[_0x1429ab(0x11c)]),logger[_0x1429ab(0xd8)](_0xf0fd48['KQMMK']),process[_0x1429ab(0xdc)](0x0);}_0xf0fd48[_0x1429ab(0xf6)](_0x4e2a93[_0x1429ab(0xfd)],0x191)&&(logger[_0x1429ab(0xe1)](_0xf0fd48[_0x1429ab(0xd7)]),await _0xf0fd48['RDFqw'](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48[_0x1429ab(0x103)],messageTypes[_0x1429ab(0xe2)],_0xf0fd48[_0x1429ab(0x10a)],null,_0x2ee36e),process[_0x1429ab(0xdc)](0x1)),_0xf0fd48[_0x1429ab(0xf6)](_0x4e2a93[_0x1429ab(0xfd)],0x190)&&(logger[_0x1429ab(0xe1)](JSON[_0x1429ab(0x115)](_0x4e2a93[_0x1429ab(0xde)])[_0x1429ab(0xf2)]),await _0xf0fd48['zysna'](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48[_0x1429ab(0x103)],messageTypes['ERROR'],_0xf0fd48['JjLfi'],null,_0x2ee36e),process['exit'](0x1)),logger['error'](_0x1429ab(0xd2)+JSON['stringify'](_0x4e2a93)),await _0xf0fd48['yJKTD'](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48[_0x1429ab(0x103)],messageTypes[_0x1429ab(0xe2)],_0xf0fd48[_0x1429ab(0xdb)],_0x4e2a93,_0x2ee36e),process[_0x1429ab(0xdc)](0x1);}catch(_0x20a880){const _0x1bd12d=_0x1429ab(0x126)+_0x20a880+'\x20\x0a'+JSON[_0x1429ab(0x104)](_0x20a880[_0x1429ab(0xd1)])+'\x20';logger[_0x1429ab(0xe1)](_0x1bd12d),process[_0x1429ab(0xdc)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x362398=a20_0x3bfd;(function(_0x239a6a,_0xff9853){const _0x131bee=a20_0x3bfd,_0xdc6a26=_0x239a6a();while(!![]){try{const _0x57b72f=-parseInt(_0x131bee(0x1e8))/0x1*(parseInt(_0x131bee(0x1ef))/0x2)+parseInt(_0x131bee(0x1da))/0x3+-parseInt(_0x131bee(0x1ee))/0x4*(-parseInt(_0x131bee(0x1f1))/0x5)+-parseInt(_0x131bee(0x1e3))/0x6*(parseInt(_0x131bee(0x1ed))/0x7)+parseInt(_0x131bee(0x1dc))/0x8*(parseInt(_0x131bee(0x1ec))/0x9)+-parseInt(_0x131bee(0x1de))/0xa*(parseInt(_0x131bee(0x1e0))/0xb)+parseInt(_0x131bee(0x1e2))/0xc;if(_0x57b72f===_0xff9853)break;else _0xdc6a26['push'](_0xdc6a26['shift']());}catch(_0x1ca804){_0xdc6a26['push'](_0xdc6a26['shift']());}}}(a20_0x101c,0x93929));function a20_0x3bfd(_0x378674,_0xcdac95){const _0x101c51=a20_0x101c();return a20_0x3bfd=function(_0x3bfd88,_0x5f569e){_0x3bfd88=_0x3bfd88-0x1da;let _0x597df0=_0x101c51[_0x3bfd88];return _0x597df0;},a20_0x3bfd(_0x378674,_0xcdac95);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x362398(0x1e1));exports[a20_0x362398(0x1db)]=a20_0x362398(0x1eb),exports[a20_0x362398(0x1df)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x362398(0x1e9)]=function(_0x5a42cd){const _0x534c8c=a20_0x362398,_0x24a546={};_0x24a546['SXKsu']=_0x534c8c(0x1e5),_0x24a546[_0x534c8c(0x1e4)]='help';const _0x14a098=_0x24a546;return _0x5a42cd['usage'](HELP_HEADER_MESSAGE['stop'])[_0x534c8c(0x1dd)](HELP_FOOTER_MESSAGE)[_0x534c8c(0x1f0)](_0x14a098[_0x534c8c(0x1ea)])['demandCommand']()['recommendCommands']()[_0x534c8c(0x1e6)]()[_0x534c8c(0x1e7)](_0x14a098['oceoz']);},exports['handler']=function(_0x3190a2){};function a20_0x101c(){const _0xb71049=['2666380DXRbna','desc','22VlFhHJ','../config/constants','2218848ZmVFAb','24Cojlxp','oceoz','stop_commands','strict','help','1lGWOVt','builder','SXKsu','stop','9yxlrBE','530754dAmirO','1652276LWWvOh','2105802llvbRI','commandDir','10nROArs','3521508trSaGU','command','2472352TdUwkw','epilogue'];a20_0x101c=function(){return _0xb71049;};return a20_0x101c();}
1
+ const a20_0x1587c6=a20_0x3c08;function a20_0x3c08(_0x1c2501,_0x36da01){const _0x480b07=a20_0x480b();return a20_0x3c08=function(_0x3c08e0,_0x359958){_0x3c08e0=_0x3c08e0-0x88;let _0x1d5586=_0x480b07[_0x3c08e0];return _0x1d5586;},a20_0x3c08(_0x1c2501,_0x36da01);}function a20_0x480b(){const _0x5aaccb=['desc','7459664AUtvqr','4200364iInwkE','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','9izLcuv','usage','epilogue','strict','HAtUo','stop_commands','../config/constants','stop','2191137xikGzY','63865NRPVSm','command','builder','19690900qUtorT','shibZ','help','commandDir','38EGMbCm','1223392DvYxPt','recommendCommands','handler','258NjaZXH','48884UrDtZG'];a20_0x480b=function(){return _0x5aaccb;};return a20_0x480b();}(function(_0x15b15a,_0x599166){const _0x11d0f3=a20_0x3c08,_0x393ff2=_0x15b15a();while(!![]){try{const _0x9651b9=-parseInt(_0x11d0f3(0x94))/0x1*(parseInt(_0x11d0f3(0x8f))/0x2)+-parseInt(_0x11d0f3(0xa2))/0x3+parseInt(_0x11d0f3(0x90))/0x4+-parseInt(_0x11d0f3(0x88))/0x5*(-parseInt(_0x11d0f3(0x93))/0x6)+parseInt(_0x11d0f3(0x97))/0x7+-parseInt(_0x11d0f3(0x96))/0x8*(parseInt(_0x11d0f3(0x9a))/0x9)+parseInt(_0x11d0f3(0x8b))/0xa;if(_0x9651b9===_0x599166)break;else _0x393ff2['push'](_0x393ff2['shift']());}catch(_0x3c9cda){_0x393ff2['push'](_0x393ff2['shift']());}}}(a20_0x480b,0xcb454));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1587c6(0xa0));exports[a20_0x1587c6(0x89)]=a20_0x1587c6(0xa1),exports[a20_0x1587c6(0x95)]=a20_0x1587c6(0x98),exports[a20_0x1587c6(0x8a)]=function(_0x48244f){const _0x1b5142=a20_0x1587c6,_0x13f7c4={};_0x13f7c4[_0x1b5142(0x9e)]=_0x1b5142(0x9f),_0x13f7c4[_0x1b5142(0x8c)]='help';const _0xdb10fe=_0x13f7c4;return _0x48244f[_0x1b5142(0x9b)](HELP_HEADER_MESSAGE[_0x1b5142(0xa1)])[_0x1b5142(0x9c)](HELP_FOOTER_MESSAGE)[_0x1b5142(0x8e)](_0xdb10fe[_0x1b5142(0x9e)])[_0x1b5142(0x99)]()[_0x1b5142(0x91)]()[_0x1b5142(0x9d)]()[_0x1b5142(0x8d)](_0xdb10fe[_0x1b5142(0x8c)]);},exports[a20_0x1587c6(0x92)]=function(_0x3e6d98){};
@@ -1 +1 @@
1
- function a21_0x2115(){const _0x4349bd=['1145vASMIO','VSkhv','STjXi','default','ERROR','init-not-called','PQbKN','description','cloudProvider','../../config/logger','error','exit','../../config/constants','9lfaKdV','../../utils/gridComponents','stringify','971179EcfdCx','kvFys','invalid-grid-id','qagNj','builder','connectionTimeout','clusterName','grid','bstackUsername','40JzYjiJ','../../utils/createk8sClient','XXsAL','addListeners','password','Skip\x20insecure\x20cert\x20verification.','kJuqa','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','1763076mXQvHv','Adding\x20Websocket\x20listeners','vCEBY','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','<PasswordPlaceholder>','../../utils/webSocketUtils','NNJeZ','bstackAccesskey','LnMws','Browserstack','server-error','3275624YWxQIs','1113525cRYzJp','1353702Exvnwl','readFileSync','argv','gridId','VerMZ','grid-id','string','skip-tls-cert-verify','janpF','luHNr','help','Grid\x20stoppped.','unauthorised','Stopping\x20grid\x20','../../utils/utilityMethods','parse','replace','skipTlsCertVerify','handler','reconnecting-websocket','info','CwWFm','bPqwA','kJQAs','meLLB','eBwGU','username','options','boolean','epilogue','body','1128YbGKBr','kDXgW','usage','iptjh','../../cloudproviders/utils','name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','statusCode','stack','INFO','type','CSLNa','DFCvR','kRIos','../../utils/instrumentationUtils','7HKrKqg','25436EUtKsT','clusterRegion'];a21_0x2115=function(){return _0x4349bd;};return a21_0x2115();}const a21_0x3daefd=a21_0x10dd;(function(_0x1fa580,_0x154967){const _0x12c4fe=a21_0x10dd,_0x414fa0=_0x1fa580();while(!![]){try{const _0x21114d=parseInt(_0x12c4fe(0xf1))/0x1*(parseInt(_0x12c4fe(0xe2))/0x2)+parseInt(_0x12c4fe(0x112))/0x3+-parseInt(_0x12c4fe(0x105))/0x4+-parseInt(_0x12c4fe(0xe4))/0x5*(parseInt(_0x12c4fe(0xd2))/0x6)+-parseInt(_0x12c4fe(0xe1))/0x7*(-parseInt(_0x12c4fe(0x110))/0x8)+parseInt(_0x12c4fe(0x111))/0x9+parseInt(_0x12c4fe(0xfd))/0xa*(-parseInt(_0x12c4fe(0xf4))/0xb);if(_0x21114d===_0x154967)break;else _0x414fa0['push'](_0x414fa0['shift']());}catch(_0x2b2344){_0x414fa0['push'](_0x414fa0['shift']());}}}(a21_0x2115,0x3ff09));function a21_0x10dd(_0xa068e3,_0x416188){const _0x21154e=a21_0x2115();return a21_0x10dd=function(_0x10dddf,_0x4b32b9){_0x10dddf=_0x10dddf-0xd0;let _0x3331a4=_0x21154e[_0x10dddf];return _0x3331a4;},a21_0x10dd(_0xa068e3,_0x416188);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3daefd(0x125)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3daefd(0xf0)),{logger}=require(a21_0x3daefd(0xed)),{getCredentialsPath,getGridDetails}=require(a21_0x3daefd(0x120)),{scaleDownHubDeployment}=require(a21_0x3daefd(0xf2)),{sendInstrumentationEvent}=require(a21_0x3daefd(0xe0)),webSocketUtils=require(a21_0x3daefd(0x10a)),{createK8sClient}=require(a21_0x3daefd(0xfe)),{getCloudProviderObject}=require(a21_0x3daefd(0xd6));exports['command']=a21_0x3daefd(0xfb),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x3daefd(0xf8)]=function(_0x106502){const _0x48d9a9=a21_0x3daefd,_0x5703b3={};_0x5703b3[_0x48d9a9(0xd5)]=_0x48d9a9(0x104),_0x5703b3[_0x48d9a9(0xd3)]=_0x48d9a9(0x118),_0x5703b3['NNJeZ']=_0x48d9a9(0x102),_0x5703b3[_0x48d9a9(0xdf)]=_0x48d9a9(0x12e),_0x5703b3[_0x48d9a9(0x11b)]='help';const _0x400b48=_0x5703b3,_0x15b282={};_0x15b282[_0x48d9a9(0xeb)]=_0x400b48['iptjh'],_0x15b282['type']=_0x400b48[_0x48d9a9(0xd3)];const _0x1e8ea1={};_0x1e8ea1[_0x48d9a9(0xeb)]=_0x400b48[_0x48d9a9(0x10b)],_0x1e8ea1[_0x48d9a9(0xdc)]=_0x400b48[_0x48d9a9(0xdf)],_0x1e8ea1[_0x48d9a9(0xe7)]=![];const _0x24f814={};return _0x24f814[_0x48d9a9(0x117)]=_0x15b282,_0x24f814[_0x48d9a9(0x119)]=_0x1e8ea1,_0x106502[_0x48d9a9(0xd4)](HELP_HEADER_MESSAGE['stop'])[_0x48d9a9(0xd0)](HELP_FOOTER_MESSAGE)[_0x48d9a9(0x12d)](_0x24f814)[_0x48d9a9(0x11c)](_0x400b48[_0x48d9a9(0x11b)])[_0x48d9a9(0x114)];},exports[a21_0x3daefd(0x124)]=async function(_0x1be6e7){const _0x11c15=a21_0x3daefd,_0x471241={'PQbKN':_0x11c15(0x108),'VerMZ':function(_0x406ea0){return _0x406ea0();},'LnMws':_0x11c15(0xd8),'CwWFm':function(_0x2507fb,_0x15a1a0,_0x2ce546,_0x22c5c5,_0x439a69,_0x19f4e9,_0x54e99a){return _0x2507fb(_0x15a1a0,_0x2ce546,_0x22c5c5,_0x439a69,_0x19f4e9,_0x54e99a);},'XXsAL':'stop-grid-called','kJQAs':_0x11c15(0xe9),'CSLNa':function(_0x56b964,_0x3806b4,_0x398e35,_0x1570d3,_0x41db0e,_0x586715,_0x31023d){return _0x56b964(_0x3806b4,_0x398e35,_0x1570d3,_0x41db0e,_0x586715,_0x31023d);},'qagNj':'<UsernamePlaceholder>','janpF':_0x11c15(0x109),'XpAhP':_0x11c15(0x106),'eBwGU':function(_0xa2d37a,_0x571d8b,_0x3b98b1,_0x3ebd79){return _0xa2d37a(_0x571d8b,_0x3b98b1,_0x3ebd79);},'kJuqa':function(_0x166317,_0x1956a8,_0x5bb2bc){return _0x166317(_0x1956a8,_0x5bb2bc);},'VSkhv':_0x11c15(0x11d),'bPqwA':function(_0x3ef5b2,_0x28aa90){return _0x3ef5b2===_0x28aa90;},'DFCvR':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','STjXi':_0x11c15(0x11e),'meLLB':function(_0x2ba389,_0x2086eb){return _0x2ba389===_0x2086eb;},'kvFys':_0x11c15(0xf6),'vCEBY':_0x11c15(0x10f)};let _0x57dbed;try{!_0x1be6e7[_0x11c15(0x115)]&&(logger[_0x11c15(0xee)](_0x471241[_0x11c15(0xea)]),process[_0x11c15(0xef)](0x1));!fs['existsSync'](_0x471241[_0x11c15(0x116)](getCredentialsPath))&&(logger[_0x11c15(0xee)](_0x471241[_0x11c15(0x10d)]),await _0x471241['CwWFm'](sendInstrumentationEvent,_0x1be6e7,_0x471241[_0x11c15(0xff)],messageTypes[_0x11c15(0xe8)],_0x471241[_0x11c15(0x129)],null,_0x1be6e7),process['exit'](0x1));logger[_0x11c15(0x126)](_0x11c15(0x11f)+_0x1be6e7[_0x11c15(0x115)]),await _0x471241[_0x11c15(0xdd)](sendInstrumentationEvent,_0x1be6e7,_0x471241['XXsAL'],messageTypes[_0x11c15(0xdb)],null,null,_0x1be6e7);const _0x4b3160=JSON[_0x11c15(0x121)](fs[_0x11c15(0x113)](_0x471241[_0x11c15(0x116)](getCredentialsPath)));global_registry[_0x11c15(0xfc)]=_0x4b3160[_0x11c15(0x10e)]['username'],global_registry[_0x11c15(0x10c)]=_0x4b3160[_0x11c15(0x10e)][_0x11c15(0x101)];const _0x2fecfa=WS_ENDPOINT[_0x11c15(0x122)](_0x471241[_0x11c15(0xf7)],_0x4b3160[_0x11c15(0x10e)][_0x11c15(0x12c)])[_0x11c15(0x122)](_0x471241[_0x11c15(0x11a)],_0x4b3160['Browserstack']['password']),_0x6a0029={};_0x6a0029['WebSocket']=ws,_0x6a0029[_0x11c15(0xf9)]=0x36ee80,_0x57dbed=new ReconnectingWebSocket(_0x2fecfa,[],_0x6a0029),logger['debug'](_0x471241['XpAhP']),webSocketUtils[_0x11c15(0x100)](_0x57dbed,_0x1be6e7['user'],_0x1be6e7[_0x11c15(0x101)]);const [_0x36b030,_0x38ad39]=await _0x471241[_0x11c15(0x12b)](getGridDetails,_0x4b3160['Browserstack']['username'],_0x4b3160[_0x11c15(0x10e)][_0x11c15(0x101)],_0x1be6e7['gridId']);if(_0x38ad39){const _0x2e54a2=_0x38ad39[_0x11c15(0x126)];global_registry[_0x11c15(0xec)]=_0x2e54a2[_0x11c15(0xec)],global_registry[_0x11c15(0xe3)]=_0x2e54a2['region'],global_registry['clusterName']=_0x2e54a2[_0x11c15(0xfa)];const _0x123764=await _0x471241[_0x11c15(0xdd)](getCloudProviderObject,_0x2e54a2[_0x11c15(0xec)],_0x2e54a2[_0x11c15(0xfa)],_0x2e54a2[_0x11c15(0xd7)],_0x57dbed,webSocketUtils,_0x1be6e7),[_0x2f604a,_0x51d073,_0x512067,_0x1339df,_0x3e509c,_0x5f3a21]=await _0x471241[_0x11c15(0x103)](createK8sClient,_0x123764,_0x1be6e7[_0x11c15(0x123)]);await _0x471241[_0x11c15(0x103)](scaleDownHubDeployment,_0x51d073,_0x2e54a2[_0x11c15(0xd7)]),logger[_0x11c15(0x126)](_0x471241[_0x11c15(0xe5)]),process[_0x11c15(0xef)](0x0);}_0x471241[_0x11c15(0x128)](_0x36b030[_0x11c15(0xd9)],0x191)&&(logger['error'](_0x471241[_0x11c15(0xde)]),await _0x471241[_0x11c15(0xdd)](sendInstrumentationEvent,_0x1be6e7,_0x471241[_0x11c15(0xff)],messageTypes['ERROR'],_0x471241[_0x11c15(0xe6)],null,_0x1be6e7),process['exit'](0x1)),_0x471241[_0x11c15(0x12a)](_0x36b030[_0x11c15(0xd9)],0x190)&&(logger['error'](JSON[_0x11c15(0x121)](_0x36b030[_0x11c15(0xd1)])['message']),await _0x471241[_0x11c15(0x127)](sendInstrumentationEvent,_0x1be6e7,_0x471241[_0x11c15(0xff)],messageTypes[_0x11c15(0xe8)],_0x471241[_0x11c15(0xf5)],null,_0x1be6e7),process[_0x11c15(0xef)](0x1)),logger[_0x11c15(0xee)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x36b030)),await _0x471241[_0x11c15(0xdd)](sendInstrumentationEvent,_0x1be6e7,_0x471241[_0x11c15(0xff)],messageTypes['ERROR'],_0x471241[_0x11c15(0x107)],_0x36b030,_0x1be6e7),process[_0x11c15(0xef)](0x1);}catch(_0x355ec2){const _0x3052a6='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x355ec2+'\x20\x0a'+JSON[_0x11c15(0xf3)](_0x355ec2[_0x11c15(0xda)])+'\x20';logger[_0x11c15(0xee)](_0x3052a6),process['exit'](0x1);}};
1
+ function a21_0xb064(){const _0x16e768=['pzyZj','existsSync','bstackUsername','aCPLe','tDCgk','<PasswordPlaceholder>','ClMmX','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','yEyiA','1623666GNdloH','noxoq','clusterName','skipTlsCertVerify','WjMWf','Adding\x20Websocket\x20listeners','719672gWpENu','Grid\x20stoppped.','45LtiRtD','1709YCixaN','../../utils/instrumentationUtils','stringify','Stopping\x20grid\x20','options','Browserstack','../../cloudproviders/utils','../../config/constants','oLPDW','INFO','zELdq','description','readFileSync','stack','uOFBz','addListeners','jZcOj','kLWOk','vyYAd','exit','../../utils/webSocketUtils','../../config/logger','parse','region','stop-grid-called','ERROR','1769515bhwryl','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Stop\x20a\x20running\x20Automation\x20grid.','grid','crtcQ','426dPNlGY','statusCode','debug','unauthorised','gridId','name','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','bstackAccesskey','handler','builder','Kufxq','xHztF','invalid-grid-id','skip-tls-cert-verify','stop','4865150kCGHsL','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','jeYhF','error','info','Skip\x20insecure\x20cert\x20verification.','password','HYwkS','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','type','init-not-called','WebSocket','command','default','21856jczoYG','72JnMIDK','evwNs','../../utils/gridComponents','argv','body','cloudProvider','message','../../utils/utilityMethods','username','27aBIpeC','aXmuS','../../utils/createk8sClient','<UsernamePlaceholder>','7uuzozf','HKVLW','replace','HsaaO','string','desc','boolean','grid-id','994860iHJZbT'];a21_0xb064=function(){return _0x16e768;};return a21_0xb064();}const a21_0x49aadc=a21_0xa08e;function a21_0xa08e(_0x3b6716,_0x50900a){const _0xb064be=a21_0xb064();return a21_0xa08e=function(_0xa08e2,_0x5da7de){_0xa08e2=_0xa08e2-0x140;let _0x2a7236=_0xb064be[_0xa08e2];return _0x2a7236;},a21_0xa08e(_0x3b6716,_0x50900a);}(function(_0x12e53c,_0x634b2a){const _0x17ede9=a21_0xa08e,_0x163eb6=_0x12e53c();while(!![]){try{const _0x3bb308=-parseInt(_0x17ede9(0x15a))/0x1*(parseInt(_0x17ede9(0x179))/0x2)+-parseInt(_0x17ede9(0x146))/0x3+parseInt(_0x17ede9(0x196))/0x4*(parseInt(_0x17ede9(0x159))/0x5)+parseInt(_0x17ede9(0x151))/0x6*(-parseInt(_0x17ede9(0x1a4))/0x7)+-parseInt(_0x17ede9(0x157))/0x8*(parseInt(_0x17ede9(0x1a0))/0x9)+parseInt(_0x17ede9(0x188))/0xa+parseInt(_0x17ede9(0x174))/0xb*(parseInt(_0x17ede9(0x197))/0xc);if(_0x3bb308===_0x634b2a)break;else _0x163eb6['push'](_0x163eb6['shift']());}catch(_0x233b3d){_0x163eb6['push'](_0x163eb6['shift']());}}}(a21_0xb064,0x40a34));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x49aadc(0x161)),{logger}=require(a21_0x49aadc(0x16f)),{getCredentialsPath,getGridDetails}=require(a21_0x49aadc(0x19e)),{scaleDownHubDeployment}=require(a21_0x49aadc(0x199)),{sendInstrumentationEvent}=require(a21_0x49aadc(0x15b)),webSocketUtils=require(a21_0x49aadc(0x16e)),{createK8sClient}=require(a21_0x49aadc(0x1a2)),{getCloudProviderObject}=require(a21_0x49aadc(0x160));exports[a21_0x49aadc(0x194)]=a21_0x49aadc(0x177),exports[a21_0x49aadc(0x143)]=a21_0x49aadc(0x176),exports[a21_0x49aadc(0x182)]=function(_0x2814eb){const _0x21a7e6=a21_0x49aadc,_0x193c94={};_0x193c94[_0x21a7e6(0x141)]=_0x21a7e6(0x175),_0x193c94[_0x21a7e6(0x147)]=_0x21a7e6(0x142),_0x193c94['tDCgk']=_0x21a7e6(0x18d),_0x193c94[_0x21a7e6(0x168)]=_0x21a7e6(0x144),_0x193c94[_0x21a7e6(0x152)]=_0x21a7e6(0x14f);const _0x3ffe54=_0x193c94,_0x5d6dc0={};_0x5d6dc0[_0x21a7e6(0x165)]=_0x3ffe54[_0x21a7e6(0x141)],_0x5d6dc0[_0x21a7e6(0x191)]=_0x3ffe54[_0x21a7e6(0x147)];const _0x38d898={};_0x38d898[_0x21a7e6(0x165)]=_0x3ffe54[_0x21a7e6(0x14b)],_0x38d898['type']=_0x3ffe54[_0x21a7e6(0x168)],_0x38d898[_0x21a7e6(0x195)]=![];const _0x560bb8={};return _0x560bb8[_0x21a7e6(0x145)]=_0x5d6dc0,_0x560bb8[_0x21a7e6(0x186)]=_0x38d898,_0x2814eb['usage'](HELP_HEADER_MESSAGE[_0x21a7e6(0x187)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x21a7e6(0x15e)](_0x560bb8)[_0x21a7e6(0x14f)](_0x3ffe54[_0x21a7e6(0x152)])[_0x21a7e6(0x19a)];},exports[a21_0x49aadc(0x181)]=async function(_0x4e54de){const _0x281bd0=a21_0x49aadc,_0x531364={'vyYAd':_0x281bd0(0x17f),'rIzce':function(_0x97ac4b){return _0x97ac4b();},'eXWyL':_0x281bd0(0x14e),'ClMmX':function(_0x164843,_0x3f8a9a,_0x5196f4,_0x1ffe96,_0x512951,_0x29e843,_0x2bad47){return _0x164843(_0x3f8a9a,_0x5196f4,_0x1ffe96,_0x512951,_0x29e843,_0x2bad47);},'evwNs':_0x281bd0(0x172),'HKVLW':_0x281bd0(0x192),'DHwPj':function(_0x4c508a){return _0x4c508a();},'Kufxq':_0x281bd0(0x1a3),'lBikp':_0x281bd0(0x14c),'aXmuS':_0x281bd0(0x156),'oLPDW':function(_0x1ba773,_0x349450,_0x164197,_0x3e573b){return _0x1ba773(_0x349450,_0x164197,_0x3e573b);},'aCPLe':function(_0x3928c2,_0x1bdcaf,_0x563cd8,_0x5897a7,_0x24f0cf,_0x4ccfb9,_0x441645){return _0x3928c2(_0x1bdcaf,_0x563cd8,_0x5897a7,_0x24f0cf,_0x4ccfb9,_0x441645);},'ECGmv':function(_0x1c9e03,_0x164107,_0x1ef54d){return _0x1c9e03(_0x164107,_0x1ef54d);},'zELdq':_0x281bd0(0x158),'wrFcn':function(_0x2e1a67,_0x28d941){return _0x2e1a67===_0x28d941;},'kLWOk':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','HYwkS':function(_0xb32b8f,_0x50a712,_0x3dccbb,_0x3c38f0,_0x3d16b3,_0x16d5e6,_0x29bebb){return _0xb32b8f(_0x50a712,_0x3dccbb,_0x3c38f0,_0x3d16b3,_0x16d5e6,_0x29bebb);},'jeYhF':_0x281bd0(0x17c),'jZcOj':function(_0x2436b0,_0x5344e5){return _0x2436b0===_0x5344e5;},'WjMWf':function(_0x2236ef,_0x28ce99,_0x3cdc8f,_0x99ff7c,_0x115453,_0x9d4b80,_0x2c4b00){return _0x2236ef(_0x28ce99,_0x3cdc8f,_0x99ff7c,_0x115453,_0x9d4b80,_0x2c4b00);},'xHztF':_0x281bd0(0x185),'crtcQ':function(_0x222753,_0x3c2e33,_0x1c9365,_0x34c2f6,_0x2ea126,_0x2e680d,_0x1457a9){return _0x222753(_0x3c2e33,_0x1c9365,_0x34c2f6,_0x2ea126,_0x2e680d,_0x1457a9);},'yEyiA':'server-error'};let _0x40f48d;try{!_0x4e54de[_0x281bd0(0x17d)]&&(logger[_0x281bd0(0x18b)](_0x531364[_0x281bd0(0x16c)]),process['exit'](0x1));!fs[_0x281bd0(0x148)](_0x531364['rIzce'](getCredentialsPath))&&(logger[_0x281bd0(0x18b)](_0x531364['eXWyL']),await _0x531364[_0x281bd0(0x14d)](sendInstrumentationEvent,_0x4e54de,_0x531364[_0x281bd0(0x198)],messageTypes[_0x281bd0(0x173)],_0x531364[_0x281bd0(0x1a5)],null,_0x4e54de),process['exit'](0x1));logger[_0x281bd0(0x18c)](_0x281bd0(0x15d)+_0x4e54de['gridId']),await _0x531364['ClMmX'](sendInstrumentationEvent,_0x4e54de,_0x531364[_0x281bd0(0x198)],messageTypes[_0x281bd0(0x163)],null,null,_0x4e54de);const _0x3413a8=JSON[_0x281bd0(0x170)](fs[_0x281bd0(0x166)](_0x531364['DHwPj'](getCredentialsPath)));global_registry[_0x281bd0(0x149)]=_0x3413a8[_0x281bd0(0x15f)]['username'],global_registry[_0x281bd0(0x180)]=_0x3413a8[_0x281bd0(0x15f)][_0x281bd0(0x18e)];const _0x4be2c8=WS_ENDPOINT[_0x281bd0(0x140)](_0x531364[_0x281bd0(0x183)],_0x3413a8['Browserstack']['username'])[_0x281bd0(0x140)](_0x531364['lBikp'],_0x3413a8[_0x281bd0(0x15f)]['password']),_0x5c85f8={};_0x5c85f8[_0x281bd0(0x193)]=ws,_0x5c85f8['connectionTimeout']=0x36ee80,_0x40f48d=new ReconnectingWebSocket(_0x4be2c8,[],_0x5c85f8),logger[_0x281bd0(0x17b)](_0x531364[_0x281bd0(0x1a1)]),webSocketUtils[_0x281bd0(0x169)](_0x40f48d,_0x4e54de['user'],_0x4e54de[_0x281bd0(0x18e)]);const [_0x58affe,_0x41575f]=await _0x531364[_0x281bd0(0x162)](getGridDetails,_0x3413a8[_0x281bd0(0x15f)][_0x281bd0(0x19f)],_0x3413a8[_0x281bd0(0x15f)][_0x281bd0(0x18e)],_0x4e54de['gridId']);if(_0x41575f){const _0x1eb724=_0x41575f[_0x281bd0(0x18c)];global_registry[_0x281bd0(0x19c)]=_0x1eb724[_0x281bd0(0x19c)],global_registry['clusterRegion']=_0x1eb724[_0x281bd0(0x171)],global_registry[_0x281bd0(0x153)]=_0x1eb724[_0x281bd0(0x153)];const _0x550473=await _0x531364[_0x281bd0(0x14a)](getCloudProviderObject,_0x1eb724['cloudProvider'],_0x1eb724[_0x281bd0(0x153)],_0x1eb724['name'],_0x40f48d,webSocketUtils,_0x4e54de),[_0x4206e7,_0x2a949b,_0x4dd7e9,_0x23ef14,_0x3a7118,_0x5391c2]=await _0x531364['ECGmv'](createK8sClient,_0x550473,_0x4e54de[_0x281bd0(0x154)]);await _0x531364['ECGmv'](scaleDownHubDeployment,_0x2a949b,_0x1eb724[_0x281bd0(0x17e)]),logger[_0x281bd0(0x18c)](_0x531364[_0x281bd0(0x164)]),process[_0x281bd0(0x16d)](0x0);}_0x531364['wrFcn'](_0x58affe[_0x281bd0(0x17a)],0x191)&&(logger[_0x281bd0(0x18b)](_0x531364[_0x281bd0(0x16b)]),await _0x531364[_0x281bd0(0x18f)](sendInstrumentationEvent,_0x4e54de,_0x531364[_0x281bd0(0x198)],messageTypes[_0x281bd0(0x173)],_0x531364[_0x281bd0(0x18a)],null,_0x4e54de),process['exit'](0x1)),_0x531364[_0x281bd0(0x16a)](_0x58affe[_0x281bd0(0x17a)],0x190)&&(logger[_0x281bd0(0x18b)](JSON['parse'](_0x58affe[_0x281bd0(0x19b)])[_0x281bd0(0x19d)]),await _0x531364[_0x281bd0(0x155)](sendInstrumentationEvent,_0x4e54de,_0x531364[_0x281bd0(0x198)],messageTypes['ERROR'],_0x531364[_0x281bd0(0x184)],null,_0x4e54de),process[_0x281bd0(0x16d)](0x1)),logger[_0x281bd0(0x18b)](_0x281bd0(0x189)+JSON[_0x281bd0(0x15c)](_0x58affe)),await _0x531364[_0x281bd0(0x178)](sendInstrumentationEvent,_0x4e54de,_0x531364['evwNs'],messageTypes[_0x281bd0(0x173)],_0x531364[_0x281bd0(0x150)],_0x58affe,_0x4e54de),process['exit'](0x1);}catch(_0x2244c6){const _0x8643bd=_0x281bd0(0x190)+_0x2244c6+'\x20\x0a'+JSON[_0x281bd0(0x15c)](_0x2244c6[_0x281bd0(0x167)])+'\x20';logger[_0x281bd0(0x18b)](_0x8643bd),process[_0x281bd0(0x16d)](0x1);}};
@@ -1 +1 @@
1
- function a22_0x1422(){const _0x38074a=['BSTACK-ATS-CLUSTER-HUB-HA','azure','prod','error','success','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','WARNING','credentials','ERROR','Key','LOG','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','CLI_ARGS_REGEX','CLI_RUN_FINISHED','GRID_URL','gridProfile','resourceInfo','gridUrl','split','push','5TbEYBH','api-preprod.bsstag.com','list','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','stag','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','2pkBwHv','info','CLUSTER_HUB_HA_STACK_NAME','high-scale-grid-cluster','Value','api-devhst.bsstag.com','grid-api-devhst.bsstag.com','high-scale-grid','forEach','REDACTED','pre-prod','1331656oobsQR','CP_CONFIG_FILE','DEFAULT_CLUSTER_DETAILS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','log','gcp','LINK_MESSAGE','staging','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid-preprod.bsstag.com','BrowserStack','1647530duVltm','BS_API_URL','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','configure','wss://','BROWSERSTACK_ENV','21OPIvlR','AG_API_URL','BSTACK-ATS-CLUSTER','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','create','MessageDescription','ALL_SUPPORTED_CLOUD_PROVIDERS','2032764cHZqVz','GCP','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','UNKNOWN','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','root','messageTypes','SUPPORTED_CLOUD_PROVIDERS','start','env','grid-api.browserstack.com','pre_check','AWS','dotenv','WS_ENDPOINT','aws','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','global_registry','36JylVnU','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLUSTER_DEP_STACK_NAME','AZURE','pre-check','TRIAL_GRID_URL','grid-api-preprod.bsstag.com','TURBOSCALE_CUSTOM_TAGS','us-east-1','CLUSTER','warning','991986oGEXwC','607768qbDsIi','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','COMMON_HST_TAGS','BrowserStack-Automate-TurboScale','browserstack-turboscale-grid','preprod','DASHBOARD_ENDPOINT','BSTACK-ATS-CLUSTER-AUTOSCALER','grid-devhst.bsstag.com','353790OYtZUO','[REDACTED]','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','WS_EVENTS','cliRunFinished','connect','28790839OyIyrb'];a22_0x1422=function(){return _0x38074a;};return a22_0x1422();}const a22_0x5c0832=a22_0x76e4;(function(_0x271c24,_0x3f0520){const _0x337eb3=a22_0x76e4,_0x1fa2b5=_0x271c24();while(!![]){try{const _0x3cc81f=-parseInt(_0x337eb3(0x136))/0x1*(parseInt(_0x337eb3(0x10c))/0x2)+-parseInt(_0x337eb3(0x115))/0x3+-parseInt(_0x337eb3(0xed))/0x4+parseInt(_0x337eb3(0x130))/0x5*(parseInt(_0x337eb3(0x10b))/0x6)+-parseInt(_0x337eb3(0xe6))/0x7*(parseInt(_0x337eb3(0x141))/0x8)+parseInt(_0x337eb3(0x100))/0x9*(-parseInt(_0x337eb3(0x14c))/0xa)+parseInt(_0x337eb3(0x11b))/0xb;if(_0x3cc81f===_0x3f0520)break;else _0x1fa2b5['push'](_0x1fa2b5['shift']());}catch(_0x2c2747){_0x1fa2b5['push'](_0x1fa2b5['shift']());}}}(a22_0x1422,0x5f508),require(a22_0x5c0832(0xfa))['config']());function a22_0x76e4(_0x4992f6,_0x2fe100){const _0x142229=a22_0x1422();return a22_0x76e4=function(_0x76e4a5,_0x2a57b1){_0x76e4a5=_0x76e4a5-0xe6;let _0x463461=_0x142229[_0x76e4a5];return _0x463461;},a22_0x76e4(_0x4992f6,_0x2fe100);}let gridURL='grid.browserstack.com',bsApiUrl='api.browserstack.com',agApiUrl=a22_0x5c0832(0xf7);const _env=(process[a22_0x5c0832(0xf6)][a22_0x5c0832(0x151)]||a22_0x5c0832(0x11e))['toLowerCase']();if(_env===a22_0x5c0832(0x148)||_env===a22_0x5c0832(0x134))gridURL=a22_0x5c0832(0x114),bsApiUrl=a22_0x5c0832(0x13b),agApiUrl=a22_0x5c0832(0x13c);else(_env===a22_0x5c0832(0x111)||_env===a22_0x5c0832(0x140))&&(gridURL=a22_0x5c0832(0x14a),bsApiUrl=a22_0x5c0832(0x131),agApiUrl=a22_0x5c0832(0x106));exports[a22_0x5c0832(0x112)]=process[a22_0x5c0832(0xf6)][a22_0x5c0832(0x112)]||gridURL,exports[a22_0x5c0832(0x14d)]=process[a22_0x5c0832(0xf6)][a22_0x5c0832(0x14d)]||bsApiUrl,exports[a22_0x5c0832(0xe7)]=process[a22_0x5c0832(0xf6)]['AG_API_URL']||agApiUrl,exports[a22_0x5c0832(0xfb)]=a22_0x5c0832(0x150)+this[a22_0x5c0832(0xe7)]+a22_0x5c0832(0x121),exports[a22_0x5c0832(0x142)]=a22_0x5c0832(0x123),exports['IAM_USER_NAME']='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']=a22_0x5c0832(0x13d),exports[a22_0x5c0832(0xf9)]=a22_0x5c0832(0xfc),exports[a22_0x5c0832(0x102)]=a22_0x5c0832(0xe8),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x5c0832(0x113),exports[a22_0x5c0832(0x138)]=a22_0x5c0832(0x11c),exports['TURBOSCALE_DEPLOYMENT']=a22_0x5c0832(0x110),exports[a22_0x5c0832(0x103)]=a22_0x5c0832(0x11d),exports[a22_0x5c0832(0xee)]=a22_0x5c0832(0x146),exports[a22_0x5c0832(0xec)]=[this[a22_0x5c0832(0xf9)],this[a22_0x5c0832(0x103)],this[a22_0x5c0832(0xee)]];const a22_0x455398={};a22_0x455398[a22_0x5c0832(0x125)]='browserstack:managedBy',a22_0x455398[a22_0x5c0832(0x13a)]=a22_0x5c0832(0x14b);const a22_0x155efd={};a22_0x155efd[a22_0x5c0832(0x125)]='browserstack:service',a22_0x155efd[a22_0x5c0832(0x13a)]=a22_0x5c0832(0x10f);const common_hst_tags_list=[a22_0x455398,a22_0x155efd];if(process['env'][a22_0x5c0832(0x107)]){const parsedTags=process['env'][a22_0x5c0832(0x107)][a22_0x5c0832(0x12e)](',');parsedTags[a22_0x5c0832(0x13e)](_0x47a7f1=>{const _0x145022=a22_0x5c0832,_0x4ab97f=_0x47a7f1[_0x145022(0x12e)](':'),_0x34cbea={};_0x34cbea[_0x145022(0x125)]=_0x4ab97f[0x0],_0x34cbea[_0x145022(0x13a)]=_0x4ab97f[0x1],common_hst_tags_list[_0x145022(0x12f)](_0x34cbea);});}exports[a22_0x5c0832(0x10e)]=common_hst_tags_list;const a22_0x1be2f8={};a22_0x1be2f8['browserstack:managedBy']=a22_0x5c0832(0x14b),a22_0x1be2f8['browserstack:service']=a22_0x5c0832(0x10f),exports['HST_CLUSTER_TAGS']=a22_0x1be2f8,exports[a22_0x5c0832(0xf4)]=[this['AWS']];const a22_0xb4367={};a22_0xb4367[a22_0x5c0832(0x126)]=a22_0x5c0832(0x145),a22_0xb4367['RESOURCES']=a22_0x5c0832(0x12c),a22_0xb4367[a22_0x5c0832(0x12a)]=a22_0x5c0832(0x12d),a22_0xb4367[a22_0x5c0832(0xfd)]='cliRunStarted',a22_0xb4367[a22_0x5c0832(0x129)]=a22_0x5c0832(0x119),exports[a22_0x5c0832(0x118)]=a22_0xb4367,exports[a22_0x5c0832(0xff)]={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x7d8fe2={};a22_0x7d8fe2['root']=a22_0x5c0832(0x144)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2['init']=a22_0x5c0832(0x133)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x14f)]=a22_0x5c0832(0xfe)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0xea)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x132)]={},a22_0x7d8fe2['delete']=a22_0x5c0832(0x10d)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x11a)]=a22_0x5c0832(0x135)+this['LINK_MESSAGE'],a22_0x7d8fe2[a22_0x5c0832(0xf5)]=a22_0x5c0832(0x127)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2['stop']=a22_0x5c0832(0xe9)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0xf8)]=a22_0x5c0832(0x117)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x132)][a22_0x5c0832(0xf2)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x132)]['grid']=a22_0x5c0832(0xef)+this[a22_0x5c0832(0x147)],a22_0x7d8fe2[a22_0x5c0832(0x132)][a22_0x5c0832(0x12b)]=a22_0x5c0832(0xf1)+this[a22_0x5c0832(0x147)],exports['HELP_HEADER_MESSAGE']=a22_0x7d8fe2,exports['HELP_FOOTER_MESSAGE']=a22_0x5c0832(0x149);const a22_0x49d25a={};a22_0x49d25a['SUCCESS']=a22_0x5c0832(0x120),a22_0x49d25a[a22_0x5c0832(0x124)]=a22_0x5c0832(0x11f),a22_0x49d25a['INFO']=a22_0x5c0832(0x137),a22_0x49d25a[a22_0x5c0832(0x122)]=a22_0x5c0832(0x10a),a22_0x49d25a[a22_0x5c0832(0xf0)]='unknown',a22_0x49d25a['NULL']=null,exports[a22_0x5c0832(0xf3)]=a22_0x49d25a,exports[a22_0x5c0832(0x128)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5c0832(0x13f)]=a22_0x5c0832(0x116);const a22_0x45619f={};a22_0x45619f['grid-profile']=a22_0x5c0832(0x14e);const a22_0x2ed760={};a22_0x2ed760[a22_0x5c0832(0x104)]=a22_0x45619f,exports[a22_0x5c0832(0xeb)]=a22_0x2ed760,exports[a22_0x5c0832(0x105)]=a22_0x5c0832(0x101);const a22_0x27479b={};a22_0x27479b[a22_0x5c0832(0x109)]=a22_0x5c0832(0x139),a22_0x27479b['CLOUD_PROVIDER']='aws',a22_0x27479b['REGION']=a22_0x5c0832(0x108),exports[a22_0x5c0832(0x143)]=a22_0x27479b;
1
+ const a22_0x7f3336=a22_0x2625;(function(_0x76688b,_0x498621){const _0x483122=a22_0x2625,_0x512fcc=_0x76688b();while(!![]){try{const _0x4c7aa8=parseInt(_0x483122(0x1c3))/0x1+-parseInt(_0x483122(0x1bf))/0x2+parseInt(_0x483122(0x1db))/0x3+parseInt(_0x483122(0x1f6))/0x4*(parseInt(_0x483122(0x1ad))/0x5)+parseInt(_0x483122(0x1ca))/0x6*(-parseInt(_0x483122(0x21a))/0x7)+-parseInt(_0x483122(0x1d8))/0x8+parseInt(_0x483122(0x1e4))/0x9*(-parseInt(_0x483122(0x1ba))/0xa);if(_0x4c7aa8===_0x498621)break;else _0x512fcc['push'](_0x512fcc['shift']());}catch(_0x39529b){_0x512fcc['push'](_0x512fcc['shift']());}}}(a22_0x3299,0x69c13),require(a22_0x7f3336(0x1ed))['config']());let gridURL=a22_0x7f3336(0x1f3),bsApiUrl=a22_0x7f3336(0x1e1),agApiUrl=a22_0x7f3336(0x203);const _env=(process['env'][a22_0x7f3336(0x1e0)]||a22_0x7f3336(0x1fd))[a22_0x7f3336(0x1e7)]();if(_env===a22_0x7f3336(0x1e2)||_env===a22_0x7f3336(0x21c))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x7f3336(0x1ee),agApiUrl=a22_0x7f3336(0x1d4);else(_env===a22_0x7f3336(0x1b6)||_env===a22_0x7f3336(0x1cc))&&(gridURL=a22_0x7f3336(0x1b7),bsApiUrl=a22_0x7f3336(0x1b8),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process['env'][a22_0x7f3336(0x213)]||gridURL,exports[a22_0x7f3336(0x1fb)]=process[a22_0x7f3336(0x1f2)][a22_0x7f3336(0x1fb)]||bsApiUrl,exports[a22_0x7f3336(0x21b)]=process[a22_0x7f3336(0x1f2)][a22_0x7f3336(0x21b)]||agApiUrl,exports[a22_0x7f3336(0x1df)]=a22_0x7f3336(0x1f1)+this[a22_0x7f3336(0x21b)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x7f3336(0x1ef)]='credentials',exports[a22_0x7f3336(0x207)]='BrowserStackIAMUser',exports[a22_0x7f3336(0x209)]=a22_0x7f3336(0x1f7),exports[a22_0x7f3336(0x1ce)]=a22_0x7f3336(0x201),exports['CLUSTER_DEP_STACK_NAME']=a22_0x7f3336(0x20f),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x7f3336(0x1c0),exports[a22_0x7f3336(0x1c7)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x7f3336(0x1d6)]=a22_0x7f3336(0x20b),exports[a22_0x7f3336(0x1d7)]=a22_0x7f3336(0x211),exports['GCP']=a22_0x7f3336(0x1d2),exports[a22_0x7f3336(0x20d)]=[this[a22_0x7f3336(0x1ce)],this[a22_0x7f3336(0x1d7)],this[a22_0x7f3336(0x217)]];const a22_0x365c83={};a22_0x365c83['Key']=a22_0x7f3336(0x218),a22_0x365c83['Value']='BrowserStack';const a22_0x4e0776={};a22_0x4e0776[a22_0x7f3336(0x1fe)]=a22_0x7f3336(0x212),a22_0x4e0776[a22_0x7f3336(0x1e8)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x365c83,a22_0x4e0776];if(process[a22_0x7f3336(0x1f2)][a22_0x7f3336(0x204)]){const parsedTags=process[a22_0x7f3336(0x1f2)][a22_0x7f3336(0x204)][a22_0x7f3336(0x1e3)](',');parsedTags[a22_0x7f3336(0x1d5)](_0x5e13d=>{const _0x3bbfba=a22_0x7f3336,_0x351d8b=_0x5e13d[_0x3bbfba(0x1e3)](':'),_0x5992ea={};_0x5992ea['Key']=_0x351d8b[0x0],_0x5992ea[_0x3bbfba(0x1e8)]=_0x351d8b[0x1],common_hst_tags_list['push'](_0x5992ea);});}exports[a22_0x7f3336(0x1b1)]=common_hst_tags_list;const a22_0x479628={};a22_0x479628['browserstack:managedBy']='BrowserStack',a22_0x479628['browserstack:service']=a22_0x7f3336(0x1ae),exports[a22_0x7f3336(0x1fa)]=a22_0x479628,exports[a22_0x7f3336(0x1eb)]=[this[a22_0x7f3336(0x1ce)]];const a22_0xaa55af={};a22_0xaa55af[a22_0x7f3336(0x1c1)]=a22_0x7f3336(0x1de),a22_0xaa55af[a22_0x7f3336(0x1bd)]='resourceInfo',a22_0xaa55af[a22_0x7f3336(0x216)]=a22_0x7f3336(0x214),a22_0xaa55af[a22_0x7f3336(0x1e5)]='cliRunStarted',a22_0xaa55af['CLI_RUN_FINISHED']=a22_0x7f3336(0x1c8),exports[a22_0x7f3336(0x1c5)]=a22_0xaa55af,exports[a22_0x7f3336(0x1bb)]={},exports['LINK_MESSAGE']=a22_0x7f3336(0x205);const a22_0x3b78d4={};a22_0x3b78d4[a22_0x7f3336(0x1f0)]=a22_0x7f3336(0x1e6)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x206)]=a22_0x7f3336(0x1f9)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1cf)]=a22_0x7f3336(0x1d0)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1be)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1c2)]={},a22_0x3b78d4[a22_0x7f3336(0x1da)]=a22_0x7f3336(0x1b9)+this['LINK_MESSAGE'],a22_0x3b78d4[a22_0x7f3336(0x1ea)]=a22_0x7f3336(0x1af)+this['LINK_MESSAGE'],a22_0x3b78d4[a22_0x7f3336(0x1cd)]=a22_0x7f3336(0x20a)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x20c)]=a22_0x7f3336(0x1ff)+this['LINK_MESSAGE'],a22_0x3b78d4[a22_0x7f3336(0x1ec)]=a22_0x7f3336(0x1f4)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1c2)][a22_0x7f3336(0x1f0)]=a22_0x7f3336(0x219)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1c2)][a22_0x7f3336(0x1f8)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x3b78d4[a22_0x7f3336(0x1c2)][a22_0x7f3336(0x210)]=a22_0x7f3336(0x1d1)+this[a22_0x7f3336(0x20e)],exports[a22_0x7f3336(0x1c6)]=a22_0x3b78d4,exports['HELP_FOOTER_MESSAGE']=a22_0x7f3336(0x1b4);function a22_0x2625(_0xf36216,_0x306720){const _0x3299cb=a22_0x3299();return a22_0x2625=function(_0x262550,_0x4ec0a5){_0x262550=_0x262550-0x1ad;let _0x45074a=_0x3299cb[_0x262550];return _0x45074a;},a22_0x2625(_0xf36216,_0x306720);}const a22_0xb69f95={};function a22_0x3299(){const _0x3551d9=['aws','MessageDescription','grid-api.browserstack.com','TURBOSCALE_CUSTOM_TAGS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','init','IAM_USER_NAME','UNKNOWN','DEFAULT_GRID_NAME','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','browserstack-turboscale-grid','stop','ALL_SUPPORTED_CLOUD_PROVIDERS','LINK_MESSAGE','BSTACK-ATS-CLUSTER','gridProfile','azure','browserstack:service','DASHBOARD_ENDPOINT','gridUrl','CLOUD_PROVIDER','GRID_URL','GCP','browserstack:managedBy','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','42peRomR','AG_API_URL','stag','445HSYdcm','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','success','COMMON_HST_TAGS','RAW_ARGS_REGEX','high-scale-grid-cluster','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','us-east-1','preprod','grid-preprod.bsstag.com','api-preprod.bsstag.com','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','40100YhZijD','global_registry','error','RESOURCES','create','381336mbbkkr','BSTACK-ATS-CLUSTER-AUTOSCALER','LOG','list','479597KBcbzb','NULL','WS_EVENTS','HELP_HEADER_MESSAGE','CLUSTER_HUB_HA_STACK_NAME','cliRunFinished','info','462258dzFjyE','REDACTED','pre-prod','start','AWS','configure','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','gcp','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','grid-api-devhst.bsstag.com','forEach','TURBOSCALE_DEPLOYMENT','AZURE','4760256HBUhkl','unknown','delete','1902933MLAoUi','[REDACTED]','SUCCESS','log','WS_ENDPOINT','BROWSERSTACK_ENV','api.browserstack.com','staging','split','117qQenmS','CLI_RUN_STARTED','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','toLowerCase','Value','messageTypes','connect','SUPPORTED_CLOUD_PROVIDERS','pre_check','dotenv','api-devhst.bsstag.com','CP_CONFIG_FILE','root','wss://','env','grid.browserstack.com','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','CLI_ARGS_REGEX','27836bcUlCx','high-scale-grid','grid','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','HST_CLUSTER_TAGS','BS_API_URL','INFO','prod','Key','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','pre-check'];a22_0x3299=function(){return _0x3551d9;};return a22_0x3299();}a22_0xb69f95[a22_0x7f3336(0x1dd)]=a22_0x7f3336(0x1b0),a22_0xb69f95['ERROR']=a22_0x7f3336(0x1bc),a22_0xb69f95[a22_0x7f3336(0x1fc)]=a22_0x7f3336(0x1c9),a22_0xb69f95['WARNING']='warning',a22_0xb69f95[a22_0x7f3336(0x208)]=a22_0x7f3336(0x1d9),a22_0xb69f95[a22_0x7f3336(0x1c4)]=null,exports[a22_0x7f3336(0x1e9)]=a22_0xb69f95,exports[a22_0x7f3336(0x1f5)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x7f3336(0x1b2)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x7f3336(0x1cb)]=a22_0x7f3336(0x1dc);const a22_0x292172={};a22_0x292172['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x2600f4={};a22_0x2600f4[a22_0x7f3336(0x200)]=a22_0x292172,exports[a22_0x7f3336(0x202)]=a22_0x2600f4,exports['TRIAL_GRID_URL']=a22_0x7f3336(0x1d3);const a22_0x22b42d={};a22_0x22b42d['CLUSTER']=a22_0x7f3336(0x1b3),a22_0x22b42d[a22_0x7f3336(0x215)]=a22_0x7f3336(0x201),a22_0x22b42d['REGION']=a22_0x7f3336(0x1b5),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x22b42d;
@@ -1 +1 @@
1
- const a23_0x1ca382=a23_0x5d5f;(function(_0x286a5b,_0xd31718){const _0xb60841=a23_0x5d5f,_0x5a700e=_0x286a5b();while(!![]){try{const _0x5dd00d=-parseInt(_0xb60841(0x158))/0x1+parseInt(_0xb60841(0x157))/0x2+-parseInt(_0xb60841(0x13e))/0x3+-parseInt(_0xb60841(0x15a))/0x4*(-parseInt(_0xb60841(0x153))/0x5)+parseInt(_0xb60841(0x13c))/0x6*(parseInt(_0xb60841(0x14c))/0x7)+-parseInt(_0xb60841(0x14a))/0x8*(-parseInt(_0xb60841(0x155))/0x9)+-parseInt(_0xb60841(0x146))/0xa*(parseInt(_0xb60841(0x141))/0xb);if(_0x5dd00d===_0xd31718)break;else _0x5a700e['push'](_0x5a700e['shift']());}catch(_0x10b282){_0x5a700e['push'](_0x5a700e['shift']());}}}(a23_0x3f18,0x8493b));const winston=require(a23_0x1ca382(0x144)),fs=require('fs'),path=require('path'),logDir=a23_0x1ca382(0x154);!fs['existsSync'](logDir)&&fs[a23_0x1ca382(0x13d)](logDir);const a23_0x3146b0={};a23_0x3146b0[a23_0x1ca382(0x14b)]=a23_0x1ca382(0x150);const a23_0x22f70e={};a23_0x22f70e[a23_0x1ca382(0x159)]=!![];const a23_0x5ada8e={};a23_0x5ada8e[a23_0x1ca382(0x147)]=a23_0x1ca382(0x13f),exports[a23_0x1ca382(0x13b)]=new winston['createLogger']({'format':winston[a23_0x1ca382(0x14b)][a23_0x1ca382(0x140)](winston['format'][a23_0x1ca382(0x156)](a23_0x3146b0),winston['format'][a23_0x1ca382(0x145)](a23_0x22f70e),winston[a23_0x1ca382(0x14b)][a23_0x1ca382(0x14e)](_0x4121df=>_0x4121df[a23_0x1ca382(0x156)]+a23_0x1ca382(0x149)+_0x4121df['level']+':\x20'+_0x4121df[a23_0x1ca382(0x14f)])),'transports':[new winston[(a23_0x1ca382(0x148))]['Console'](a23_0x5ada8e),new winston['transports']['File']({'filename':path[a23_0x1ca382(0x14d)](logDir,'events.log'),'level':a23_0x1ca382(0x143)})]});function a23_0x5d5f(_0x1adbd1,_0x2fb8bd){const _0x3f1823=a23_0x3f18();return a23_0x5d5f=function(_0x5d5f63,_0x4d57a9){_0x5d5f63=_0x5d5f63-0x13b;let _0x117c3d=_0x3f1823[_0x5d5f63];return _0x117c3d;},a23_0x5d5f(_0x1adbd1,_0x2fb8bd);}function a23_0x3f18(){const _0x1672d0=['debug','winston','colorize','127830qIgFva','name','transports','\x20-\x20','1016632wIYOJj','format','2465799JoxVtr','join','printf','message','YYYY-MM-DD\x20HH:mm:ss','fileLogger','File','1039490ggtTzm','log','54QFrBfC','timestamp','54854MEtonw','818659EpCwTB','level','20vvQKbA','logger','18zujPkw','mkdirSync','1390437YWqkCl','console.info','combine','913OTORuI','createLogger'];a23_0x3f18=function(){return _0x1672d0;};return a23_0x3f18();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x1ca382(0x148))][(a23_0x1ca382(0x152))]({'filename':path[a23_0x1ca382(0x14d)](logDir,'usage.log'),'level':a23_0x1ca382(0x143)})]};exports[a23_0x1ca382(0x151)]=new winston[(a23_0x1ca382(0x142))](winstonFileLoggerParams);
1
+ const a23_0x393f50=a23_0x348e;(function(_0x3173fa,_0x471dd1){const _0x39a29e=a23_0x348e,_0x2f598a=_0x3173fa();while(!![]){try{const _0x465f9b=parseInt(_0x39a29e(0x1be))/0x1*(-parseInt(_0x39a29e(0x1bb))/0x2)+parseInt(_0x39a29e(0x1ba))/0x3+parseInt(_0x39a29e(0x1c8))/0x4*(-parseInt(_0x39a29e(0x1d0))/0x5)+parseInt(_0x39a29e(0x1c6))/0x6*(-parseInt(_0x39a29e(0x1cf))/0x7)+parseInt(_0x39a29e(0x1c7))/0x8+parseInt(_0x39a29e(0x1bf))/0x9+parseInt(_0x39a29e(0x1c9))/0xa*(parseInt(_0x39a29e(0x1d2))/0xb);if(_0x465f9b===_0x471dd1)break;else _0x2f598a['push'](_0x2f598a['shift']());}catch(_0x25ffab){_0x2f598a['push'](_0x2f598a['shift']());}}}(a23_0x1cf5,0x4b9b3));const winston=require('winston'),fs=require('fs'),path=require(a23_0x393f50(0x1d1)),logDir=a23_0x393f50(0x1c4);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x1ef649={};a23_0x1ef649['format']='YYYY-MM-DD\x20HH:mm:ss';function a23_0x1cf5(){const _0x3e3fbf=['1961240PrJAzp','44vbmYjq','890eHNIEl','message','File','fileLogger','name','events.log','364007mThYqU','15115RufROn','path','68123xQVBbI','printf','usage.log','timestamp','debug','287583RUrDJm','184518FOyANf','level','colorize','3IrkvIH','2695779PpAdbA','join','format','transports','createLogger','log','logger','66StHBjD'];a23_0x1cf5=function(){return _0x3e3fbf;};return a23_0x1cf5();}const a23_0x40f6b7={};a23_0x40f6b7['level']=!![];const a23_0x1f488f={};a23_0x1f488f[a23_0x393f50(0x1cd)]='console.info',exports[a23_0x393f50(0x1c5)]=new winston[(a23_0x393f50(0x1c3))]({'format':winston[a23_0x393f50(0x1c1)]['combine'](winston[a23_0x393f50(0x1c1)][a23_0x393f50(0x1b8)](a23_0x1ef649),winston['format'][a23_0x393f50(0x1bd)](a23_0x40f6b7),winston['format'][a23_0x393f50(0x1d3)](_0x13d442=>_0x13d442[a23_0x393f50(0x1b8)]+'\x20-\x20'+_0x13d442[a23_0x393f50(0x1bc)]+':\x20'+_0x13d442[a23_0x393f50(0x1ca)])),'transports':[new winston[(a23_0x393f50(0x1c2))]['Console'](a23_0x1f488f),new winston[(a23_0x393f50(0x1c2))][(a23_0x393f50(0x1cb))]({'filename':path['join'](logDir,a23_0x393f50(0x1ce)),'level':a23_0x393f50(0x1b9)})]});function a23_0x348e(_0x2a3057,_0x1ae47a){const _0x1cf5dc=a23_0x1cf5();return a23_0x348e=function(_0x348e94,_0x37e24f){_0x348e94=_0x348e94-0x1b7;let _0x3f1cb4=_0x1cf5dc[_0x348e94];return _0x3f1cb4;},a23_0x348e(_0x2a3057,_0x1ae47a);}const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x393f50(0x1cb))]({'filename':path[a23_0x393f50(0x1c0)](logDir,a23_0x393f50(0x1b7)),'level':a23_0x393f50(0x1b9)})]};exports[a23_0x393f50(0x1cc)]=new winston[(a23_0x393f50(0x1c3))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x26e00b=a24_0x3f93;function a24_0x3f93(_0xdb7cf1,_0x35fab7){const _0x31eee5=a24_0x31ee();return a24_0x3f93=function(_0x3f93ff,_0x20e13a){_0x3f93ff=_0x3f93ff-0xab;let _0x24d92c=_0x31eee5[_0x3f93ff];return _0x24d92c;},a24_0x3f93(_0xdb7cf1,_0x35fab7);}(function(_0x146ed2,_0x13f9a6){const _0x373676=a24_0x3f93,_0x5c5957=_0x146ed2();while(!![]){try{const _0x2a3e11=parseInt(_0x373676(0xb1))/0x1*(-parseInt(_0x373676(0xb8))/0x2)+-parseInt(_0x373676(0xb6))/0x3*(parseInt(_0x373676(0xaf))/0x4)+parseInt(_0x373676(0xc1))/0x5*(-parseInt(_0x373676(0xae))/0x6)+-parseInt(_0x373676(0xbf))/0x7*(-parseInt(_0x373676(0xb5))/0x8)+parseInt(_0x373676(0xad))/0x9*(parseInt(_0x373676(0xb4))/0xa)+-parseInt(_0x373676(0xbb))/0xb*(parseInt(_0x373676(0xc0))/0xc)+-parseInt(_0x373676(0xc2))/0xd*(-parseInt(_0x373676(0xb3))/0xe);if(_0x2a3e11===_0x13f9a6)break;else _0x5c5957['push'](_0x5c5957['shift']());}catch(_0x10f7cc){_0x5c5957['push'](_0x5c5957['shift']());}}}(a24_0x31ee,0xe6880));function a24_0x31ee(){const _0x409faa=['24XlvBcd','demandCommand','46997isAOpJ','exports','2198hnuhgd','20JuhfHZ','11700712OTnMRF','675441YLvWpO','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','38ZiKwiZ','tPlLH','root','473vTFURR','commands','usage','./config/constants','7UcNPOC','163752aagebP','1417895JaDLCy','223691hDDfhN','help','SKGBF','4628997LvQTNK','30dymQlr'];a24_0x31ee=function(){return _0x409faa;};return a24_0x31ee();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x26e00b(0xbe));process['env'][a24_0x26e00b(0xb7)]=0x1;function run(_0x44c982){const _0x220f5f=a24_0x26e00b,_0x4ff4e4={};_0x4ff4e4['tPlLH']=_0x220f5f(0xbc),_0x4ff4e4['SKGBF']=_0x220f5f(0xab);const _0x1adabf=_0x4ff4e4;_0x44c982[_0x220f5f(0xbd)](HELP_HEADER_MESSAGE[_0x220f5f(0xba)])['commandDir'](_0x1adabf[_0x220f5f(0xb9)])[_0x220f5f(0xb0)]()[_0x220f5f(0xab)](_0x1adabf[_0x220f5f(0xac)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x26e00b(0xb2)]=run;
2
+ 'use strict';function a24_0x241e(_0x30a03c,_0x3a99f8){const _0x1061fd=a24_0x1061();return a24_0x241e=function(_0x241ec4,_0x270863){_0x241ec4=_0x241ec4-0xc0;let _0xe959ec=_0x1061fd[_0x241ec4];return _0xe959ec;},a24_0x241e(_0x30a03c,_0x3a99f8);}const a24_0x135c79=a24_0x241e;function a24_0x1061(){const _0x2589b9=['8SsWTHS','root','nfaZS','usage','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports','155180jPpoMB','help','88786rFrVhL','4583760dwIKEo','env','177732ZaWdzA','159095rtZqJS','epilogue','LHDtP','commands','./config/constants','1723257RFRuue','demandCommand','33066nhwplv','105miOHpN','12sCJxbk'];a24_0x1061=function(){return _0x2589b9;};return a24_0x1061();}(function(_0x40db1b,_0x287be3){const _0x3c98cc=a24_0x241e,_0x155d2a=_0x40db1b();while(!![]){try{const _0x3c798f=-parseInt(_0x3c98cc(0xc9))/0x1+parseInt(_0x3c98cc(0xc5))/0x2+-parseInt(_0x3c98cc(0xc8))/0x3+parseInt(_0x3c98cc(0xd2))/0x4*(parseInt(_0x3c98cc(0xc3))/0x5)+-parseInt(_0x3c98cc(0xd0))/0x6*(parseInt(_0x3c98cc(0xd1))/0x7)+parseInt(_0x3c98cc(0xd3))/0x8*(-parseInt(_0x3c98cc(0xce))/0x9)+parseInt(_0x3c98cc(0xc6))/0xa;if(_0x3c798f===_0x287be3)break;else _0x155d2a['push'](_0x155d2a['shift']());}catch(_0x1dbe94){_0x155d2a['push'](_0x155d2a['shift']());}}}(a24_0x1061,0x193e8));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x135c79(0xcd));process[a24_0x135c79(0xc7)][a24_0x135c79(0xc1)]=0x1;function run(_0x3775bc){const _0x3f4fdc=a24_0x135c79,_0x431f83={};_0x431f83[_0x3f4fdc(0xd5)]=_0x3f4fdc(0xcc),_0x431f83[_0x3f4fdc(0xcb)]=_0x3f4fdc(0xc4);const _0x5a1b10=_0x431f83;_0x3775bc[_0x3f4fdc(0xc0)](HELP_HEADER_MESSAGE[_0x3f4fdc(0xd4)])['commandDir'](_0x5a1b10[_0x3f4fdc(0xd5)])[_0x3f4fdc(0xcf)]()[_0x3f4fdc(0xc4)](_0x5a1b10[_0x3f4fdc(0xcb)])[_0x3f4fdc(0xca)](HELP_FOOTER_MESSAGE);}module[a24_0x135c79(0xc2)]=run;