browserstack-node-sdk 1.54.0 → 1.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +7 -7
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x1e871d=a15_0x2c01;(function(_0x5838dc,_0xd43f29){const _0x4af328=a15_0x2c01,_0x2c1d47=_0x5838dc();while(!![]){try{const _0x4aef33=parseInt(_0x4af328(0xd0))/0x1+-parseInt(_0x4af328(0xc5))/0x2*(-parseInt(_0x4af328(0xb7))/0x3)+parseInt(_0x4af328(0xab))/0x4*(parseInt(_0x4af328(0xd3))/0x5)+parseInt(_0x4af328(0xbe))/0x6*(-parseInt(_0x4af328(0xbd))/0x7)+parseInt(_0x4af328(0x9d))/0x8+-parseInt(_0x4af328(0xcc))/0x9+-parseInt(_0x4af328(0xb8))/0xa*(parseInt(_0x4af328(0xdf))/0xb);if(_0x4aef33===_0xd43f29)break;else _0x2c1d47['push'](_0x2c1d47['shift']());}catch(_0x1b0b00){_0x2c1d47['push'](_0x2c1d47['shift']());}}}(a15_0xadb8,0xefbcc));function a15_0x2c01(_0x39924b,_0x5dcda8){const _0xadb8dc=a15_0xadb8();return a15_0x2c01=function(_0x2c016b,_0x57be3d){_0x2c016b=_0x2c016b-0x94;let _0x32c697=_0xadb8dc[_0x2c016b];return _0x32c697;},a15_0x2c01(_0x39924b,_0x5dcda8);}const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a15_0x1e871d(0xdc)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1e871d(0xe3)),{getCredentialsPath,getAuthHeader}=require(a15_0x1e871d(0x9a)),{sendInstrumentationEvent}=require(a15_0x1e871d(0x99));exports[a15_0x1e871d(0xda)]=a15_0x1e871d(0xe0),exports[a15_0x1e871d(0xa5)]=a15_0x1e871d(0x9f),exports[a15_0x1e871d(0xb2)]=function(_0x304659){const _0x5f0437=a15_0x1e871d,_0x531721={};_0x531721[_0x5f0437(0xa4)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x531721[_0x5f0437(0xa3)]=_0x5f0437(0xa1),_0x531721[_0x5f0437(0xde)]=_0x5f0437(0xb9);const _0x349d62=_0x531721,_0x3bb678={};_0x3bb678[_0x5f0437(0xcf)]=_0x349d62['dTitH'],_0x3bb678['type']=_0x349d62[_0x5f0437(0xa3)];const _0x131bc5={};return _0x131bc5['all-grids']=_0x3bb678,_0x304659[_0x5f0437(0xd8)](HELP_HEADER_MESSAGE[_0x5f0437(0xd4)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f0437(0x95)](_0x131bc5)[_0x5f0437(0xb9)](_0x349d62['RbaKf'])['argv'];},exports[a15_0x1e871d(0xa8)]=async function(_0xe7ba15){const _0x590063=a15_0x1e871d,_0x34c542={'FZlZN':function(_0x3c0c70){return _0x3c0c70();},'gcbHT':_0x590063(0xaa),'qDawe':function(_0x2e384d,_0x3a4f1f,_0x3b63cf,_0xade138,_0xaa366d,_0x1937c5,_0x184641){return _0x2e384d(_0x3a4f1f,_0x3b63cf,_0xade138,_0xaa366d,_0x1937c5,_0x184641);},'igvMd':_0x590063(0xe4),'tspYS':_0x590063(0xc8),'DPnkR':_0x590063(0xc3),'tfinY':function(_0x11cecc,_0x1a5cb6,_0x59fc5c){return _0x11cecc(_0x1a5cb6,_0x59fc5c);},'pcsAG':function(_0x5a36dc,_0x42138a){return _0x5a36dc!==_0x42138a;},'WISeI':function(_0x2e4659,_0x4202d2){return _0x2e4659!==_0x4202d2;},'LsIDs':function(_0x5956ef,_0x3de0f9){return _0x5956ef===_0x3de0f9;},'lJuzx':'\x0aFound\x20the\x20following\x20grids:\x0a','mtjie':_0x590063(0xae),'FopaG':'grid-name','beEqg':_0x590063(0x9c),'bvaVf':_0x590063(0xb1),'wrgqP':_0x590063(0xd1),'eFnLe':_0x590063(0xce),'qAoED':function(_0x328679,_0x57b581){return _0x328679(_0x57b581);},'jIulL':function(_0x44a689,_0x29da2c){return _0x44a689===_0x29da2c;},'SlHZp':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XwzdJ':function(_0x19c1fc,_0x569850,_0x2f7532,_0x50bbc1,_0x1bc3e2,_0x1cea26,_0x24c750){return _0x19c1fc(_0x569850,_0x2f7532,_0x50bbc1,_0x1bc3e2,_0x1cea26,_0x24c750);},'vAVeY':_0x590063(0x97),'kYjUk':_0x590063(0xad),'IOqdy':function(_0x2245ca,_0x27f2b8,_0x361807,_0x526d5d,_0x20f677,_0xbefd2f,_0x4c125b){return _0x2245ca(_0x27f2b8,_0x361807,_0x526d5d,_0x20f677,_0xbefd2f,_0x4c125b);},'dQrnS':_0x590063(0xd7)};try{global_registry[_0x590063(0xaf)]=_0x34c542[_0x590063(0xd6)](uuidv4);!fs[_0x590063(0xdb)](_0x34c542[_0x590063(0xd6)](getCredentialsPath))&&(console['error'](_0x34c542[_0x590063(0xe6)]),await _0x34c542[_0x590063(0xc7)](sendInstrumentationEvent,_0xe7ba15,_0x34c542[_0x590063(0xb6)],messageTypes[_0x590063(0xba)],_0x34c542[_0x590063(0xb5)],null,_0xe7ba15),process[_0x590063(0xc1)](0x1));const _0x1b1398=JSON['parse'](fs[_0x590063(0xcd)](_0x34c542[_0x590063(0xd6)](getCredentialsPath)));let _0x20f41a='https://'+AG_API_URL+_0x590063(0xc6);_0xe7ba15['allGrids']&&(_0x20f41a=_0x590063(0xd9)+AG_API_URL+_0x590063(0xbb));const _0x2e770e={'method':_0x34c542['DPnkR'],'headers':_0x34c542['tfinY'](getAuthHeader,_0x1b1398['Browserstack'][_0x590063(0xd5)],_0x1b1398[_0x590063(0xbc)][_0x590063(0xd2)]),'throwHttpErrors':![]};global_registry[_0x590063(0xdd)]=_0x1b1398['Browserstack'][_0x590063(0xd5)],global_registry[_0x590063(0xc4)]=_0x1b1398['Browserstack'][_0x590063(0xd2)],_0x34c542[_0x590063(0xc7)](sendInstrumentationEvent,_0xe7ba15,_0x34c542['igvMd'],messageTypes['INFO'],null,null,_0xe7ba15);const _0x1ef6fb=await _0x34c542['tfinY'](got,_0x20f41a,_0x2e770e);if(_0x34c542[_0x590063(0xa0)](_0x1ef6fb,null)&&_0x34c542[_0x590063(0xb0)](_0x1ef6fb,undefined)&&_0x34c542['LsIDs'](_0x1ef6fb[_0x590063(0xb4)],0xc8)){const _0x2883e8=JSON[_0x590063(0x9b)](_0x1ef6fb['body']);console['log'](_0x34c542[_0x590063(0x96)]);const _0x432baf=[];_0x432baf['push']([_0x34c542[_0x590063(0xa7)],_0x34c542['FopaG'],_0x34c542[_0x590063(0xb3)],_0x34c542['bvaVf'],_0x34c542[_0x590063(0x94)],_0x34c542[_0x590063(0xe2)]]),_0x2883e8['forEach'](_0x1bf8b5=>{const _0x1e2b32=_0x590063;_0x432baf['push']([_0x1bf8b5['id'],_0x1bf8b5[_0x1e2b32(0xa9)],_0x1bf8b5[_0x1e2b32(0x9c)],_0x1bf8b5[_0x1e2b32(0xb1)],_0x1bf8b5[_0x1e2b32(0xd1)],_0x1bf8b5[_0x1e2b32(0xc9)]]);}),console[_0x590063(0xcb)](_0x34c542[_0x590063(0xac)](table,_0x432baf)),process[_0x590063(0xc1)](0x0);}_0x34c542[_0x590063(0xc2)](_0x1ef6fb[_0x590063(0xb4)],0x191)&&(console[_0x590063(0xc0)](_0x34c542[_0x590063(0xe1)]),await _0x34c542[_0x590063(0x9e)](sendInstrumentationEvent,_0xe7ba15,_0x34c542['igvMd'],messageTypes[_0x590063(0xba)],_0x34c542[_0x590063(0xe5)],null,_0xe7ba15),process[_0x590063(0xc1)](0x1)),console[_0x590063(0xc0)](_0x590063(0xbf)+JSON['stringify'](_0x1ef6fb)),await _0x34c542[_0x590063(0x9e)](sendInstrumentationEvent,_0xe7ba15,_0x34c542[_0x590063(0xb6)],messageTypes[_0x590063(0xba)],_0x34c542[_0x590063(0xa2)],_0x1ef6fb,_0xe7ba15),process[_0x590063(0xc1)](0x1);}catch(_0x1f0728){console[_0x590063(0xc0)](_0x590063(0xa6)+_0x1f0728[_0x590063(0xca)]),await _0x34c542['IOqdy'](sendInstrumentationEvent,_0xe7ba15,_0x34c542[_0x590063(0xb6)],messageTypes[_0x590063(0xba)],_0x34c542[_0x590063(0x98)],_0x1f0728,_0xe7ba15),process[_0x590063(0xc1)](0x1);}};function a15_0xadb8(){const _0x355c99=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','exit','jIulL','GET','bstackAccesskey','2Xdthpr','/packages/cli/get-grids','qDawe','init-not-called','clusterName','stack','log','8186652LUeudZ','readFileSync','cluster-name','description','1553678VBZnZe','queued','password','952810kzNrdp','list','username','FZlZN','unknown-error','usage','https://','command','existsSync','uuid','bstackUsername','RbaKf','22047619OeHmsB','grids','SlHZp','eFnLe','../../config/constants','list-grids-called','vAVeY','gcbHT','wrgqP','options','lJuzx','unauthorised','dQrnS','../../utils/instrumentationUtils','../../utils/utilityMethods','parse','status','14524808fLusDP','XwzdJ','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','pcsAG','boolean','kYjUk','NcZYw','dTitH','desc','Failed\x20to\x20list\x20resources!\x20Error:\x20','mtjie','handler','name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','8hiiIJH','qAoED','server-error','grid-id','requestId','WISeI','running','builder','beEqg','statusCode','tspYS','igvMd','4430445RacixC','10OcaiJU','help','ERROR','/packages/cli/get-all-grids','Browserstack','22897vySEyI','2442bGxWOD'];a15_0xadb8=function(){return _0x355c99;};return a15_0xadb8();}
1
+ const a15_0x30b91e=a15_0x414c;function a15_0x414c(_0x500a3c,_0x27c776){const _0x1db56f=a15_0x1db5();return a15_0x414c=function(_0x414cfc,_0x59443a){_0x414cfc=_0x414cfc-0xf6;let _0x4650ea=_0x1db56f[_0x414cfc];return _0x4650ea;},a15_0x414c(_0x500a3c,_0x27c776);}(function(_0x1a7d59,_0x4194a9){const _0x1d7aed=a15_0x414c,_0x549a41=_0x1a7d59();while(!![]){try{const _0xfe459e=-parseInt(_0x1d7aed(0x10b))/0x1*(-parseInt(_0x1d7aed(0x114))/0x2)+parseInt(_0x1d7aed(0x14a))/0x3+-parseInt(_0x1d7aed(0x144))/0x4*(-parseInt(_0x1d7aed(0xf6))/0x5)+-parseInt(_0x1d7aed(0xff))/0x6+parseInt(_0x1d7aed(0x125))/0x7*(parseInt(_0x1d7aed(0xf7))/0x8)+parseInt(_0x1d7aed(0x13c))/0x9*(parseInt(_0x1d7aed(0x119))/0xa)+-parseInt(_0x1d7aed(0x112))/0xb;if(_0xfe459e===_0x4194a9)break;else _0x549a41['push'](_0x549a41['shift']());}catch(_0x3b025c){_0x549a41['push'](_0x549a41['shift']());}}}(a15_0x1db5,0x6b8b9));function a15_0x1db5(){const _0x3f7882=['WFyDQ','984812rjNbYo','argv','server-error','XQIfQ','KkIqZ','bXnxp','1805277FeZWKc','grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','Gfqqx','existsSync','type','readFileSync','5ACKvBS','862128pWIMuJ','INFO','name','Browserstack','parse','bstackUsername','bgJXT','FgrSX','4718430VPeBEK','iYFLc','IVmwx','EJsWq','../../utils/instrumentationUtils','statusCode','OPuZF','bstackAccesskey','dgTJJ','allGrids','vtnsv','desc','2057BYKWWl','stringify','grid-name','../../config/constants','https://','usage','status','13978536roPxWW','epilogue','836GnQsZx','iIbVO','grid-id','forEach','CkQIs','110IsamMR','handler','stack','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','unknown-error','queued','LxOel','CIkPB','got','HJpvr','/packages/cli/get-grids','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','7vKPPSe','bXoqD','password','uuid','unauthorised','help','list','zBgtu','Failed\x20to\x20list\x20resources!\x20Error:\x20','grid','running','exit','log','FqgaB','cCwUT','swEoo','ERROR','table','lzyQv','PNjKn','body','cluster-name','/packages/cli/get-all-grids','558108oZgpcw','\x0aFound\x20the\x20following\x20grids:\x0a','command','boolean','push','requestId','WqDPa'];a15_0x1db5=function(){return _0x3f7882;};return a15_0x1db5();}const fs=require('fs'),got=require(a15_0x30b91e(0x121)),{table}=require(a15_0x30b91e(0x136)),{v4:uuidv4}=require(a15_0x30b91e(0x128)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x30b91e(0x10e)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x30b91e(0x103));exports[a15_0x30b91e(0x13e)]=a15_0x30b91e(0x14b),exports[a15_0x30b91e(0x10a)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x3c2712){const _0x1f00a4=a15_0x30b91e,_0x202ffb={};_0x202ffb['CIkPB']=_0x1f00a4(0x11c),_0x202ffb[_0x1f00a4(0x147)]=_0x1f00a4(0x13f),_0x202ffb[_0x1f00a4(0x12c)]=_0x1f00a4(0x12a);const _0x1d7c63=_0x202ffb,_0x1c9483={};_0x1c9483['description']=_0x1d7c63[_0x1f00a4(0x120)],_0x1c9483[_0x1f00a4(0x152)]=_0x1d7c63[_0x1f00a4(0x147)];const _0x2728a6={};return _0x2728a6['all-grids']=_0x1c9483,_0x3c2712[_0x1f00a4(0x110)](HELP_HEADER_MESSAGE[_0x1f00a4(0x12b)][_0x1f00a4(0x12e)])[_0x1f00a4(0x113)](HELP_FOOTER_MESSAGE)[_0x1f00a4(0x14d)](_0x2728a6)['help'](_0x1d7c63[_0x1f00a4(0x12c)])[_0x1f00a4(0x145)];},exports[a15_0x30b91e(0x11a)]=async function(_0x104b7b){const _0x102614=a15_0x30b91e,_0x12220a={'PNjKn':function(_0x5afba7){return _0x5afba7();},'jabpp':function(_0x4b2125){return _0x4b2125();},'WFyDQ':_0x102614(0x124),'LxOel':function(_0x113d49,_0x52c552,_0x330111,_0x19f34f,_0x1bd3f0,_0x4f69be,_0x968d89){return _0x113d49(_0x52c552,_0x330111,_0x19f34f,_0x1bd3f0,_0x4f69be,_0x968d89);},'lzyQv':'list-grids-called','Gfqqx':'init-not-called','HJpvr':function(_0x4a63ca){return _0x4a63ca();},'WOGqE':'GET','KkIqZ':function(_0x1839e3,_0x25c169,_0x13415e){return _0x1839e3(_0x25c169,_0x13415e);},'bgJXT':function(_0x364b0f,_0x46cf42,_0x4fa781){return _0x364b0f(_0x46cf42,_0x4fa781);},'FgrSX':function(_0x17407b,_0x378bbb){return _0x17407b!==_0x378bbb;},'iIbVO':function(_0x14ea8e,_0x401bc1){return _0x14ea8e!==_0x401bc1;},'bXnxp':function(_0x28ac2e,_0x1170e8){return _0x28ac2e===_0x1170e8;},'vLePe':_0x102614(0x13d),'FqgaB':_0x102614(0x116),'tHQoQ':_0x102614(0x10d),'WqDPa':_0x102614(0x111),'iYFLc':_0x102614(0x12f),'dgTJJ':'queued','swEoo':_0x102614(0x13a),'SPCBT':function(_0x45f92a,_0x2340ee){return _0x45f92a(_0x2340ee);},'cCwUT':function(_0xdae8cf,_0x9140cd){return _0xdae8cf===_0x9140cd;},'vtnsv':_0x102614(0x14c),'tTEcH':function(_0x3cab5d,_0x136524,_0x5bb87b,_0x259274,_0x23c51a,_0x29e458,_0x45fea7){return _0x3cab5d(_0x136524,_0x5bb87b,_0x259274,_0x23c51a,_0x29e458,_0x45fea7);},'EJsWq':_0x102614(0x129),'bXoqD':function(_0x24f010,_0x20c204,_0x2c78f6,_0x1e90b4,_0x24c4a1,_0x13e5ce,_0x2a515b){return _0x24f010(_0x20c204,_0x2c78f6,_0x1e90b4,_0x24c4a1,_0x13e5ce,_0x2a515b);},'IVmwx':_0x102614(0x146),'CkQIs':function(_0x4b62c2,_0x5f5247,_0x5d6e2d,_0x5340d1,_0x50430c,_0x135bde,_0x635826){return _0x4b62c2(_0x5f5247,_0x5d6e2d,_0x5340d1,_0x50430c,_0x135bde,_0x635826);},'OPuZF':_0x102614(0x11d)};try{global_registry[_0x102614(0x141)]=_0x12220a[_0x102614(0x138)](uuidv4);!fs[_0x102614(0x151)](_0x12220a['jabpp'](getCredentialsPath))&&(console[_0x102614(0x14f)](_0x12220a[_0x102614(0x143)]),await _0x12220a[_0x102614(0x11f)](sendInstrumentationEvent,_0x104b7b,_0x12220a['lzyQv'],messageTypes[_0x102614(0x135)],_0x12220a[_0x102614(0x150)],null,_0x104b7b),process['exit'](0x1));const _0x169ce4=JSON[_0x102614(0xfb)](fs[_0x102614(0x153)](_0x12220a[_0x102614(0x122)](getCredentialsPath)));let _0x535aaf=_0x102614(0x10f)+AG_API_URL+_0x102614(0x123);_0x104b7b[_0x102614(0x108)]&&(_0x535aaf=_0x102614(0x10f)+AG_API_URL+_0x102614(0x13b));const _0x546712={'method':_0x12220a['WOGqE'],'headers':_0x12220a[_0x102614(0x148)](getAuthHeader,_0x169ce4[_0x102614(0xfa)]['username'],_0x169ce4['Browserstack'][_0x102614(0x127)]),'throwHttpErrors':![]};global_registry[_0x102614(0xfc)]=_0x169ce4[_0x102614(0xfa)]['username'],global_registry[_0x102614(0x106)]=_0x169ce4[_0x102614(0xfa)][_0x102614(0x127)],_0x12220a[_0x102614(0x11f)](sendInstrumentationEvent,_0x104b7b,_0x12220a['lzyQv'],messageTypes[_0x102614(0xf8)],null,null,_0x104b7b);const _0x20854c=await _0x12220a[_0x102614(0xfd)](got,_0x535aaf,_0x546712);if(_0x12220a[_0x102614(0xfe)](_0x20854c,null)&&_0x12220a[_0x102614(0x115)](_0x20854c,undefined)&&_0x12220a[_0x102614(0x149)](_0x20854c[_0x102614(0x104)],0xc8)){const _0x20bfa7=JSON[_0x102614(0xfb)](_0x20854c[_0x102614(0x139)]);console[_0x102614(0x131)](_0x12220a['vLePe']);const _0x55113b=[];_0x55113b[_0x102614(0x140)]([_0x12220a[_0x102614(0x132)],_0x12220a['tHQoQ'],_0x12220a[_0x102614(0x142)],_0x12220a[_0x102614(0x100)],_0x12220a[_0x102614(0x107)],_0x12220a[_0x102614(0x134)]]),_0x20bfa7[_0x102614(0x117)](_0x38c3a1=>{const _0x58e414=_0x102614;_0x55113b[_0x58e414(0x140)]([_0x38c3a1['id'],_0x38c3a1[_0x58e414(0xf9)],_0x38c3a1[_0x58e414(0x111)],_0x38c3a1[_0x58e414(0x12f)],_0x38c3a1[_0x58e414(0x11e)],_0x38c3a1['clusterName']]);}),console[_0x102614(0x131)](_0x12220a['SPCBT'](table,_0x55113b)),process[_0x102614(0x130)](0x0);}_0x12220a[_0x102614(0x133)](_0x20854c[_0x102614(0x104)],0x191)&&(console['error'](_0x12220a[_0x102614(0x109)]),await _0x12220a['tTEcH'](sendInstrumentationEvent,_0x104b7b,_0x12220a['lzyQv'],messageTypes[_0x102614(0x135)],_0x12220a[_0x102614(0x102)],null,_0x104b7b),process['exit'](0x1)),console['error'](_0x102614(0x14e)+JSON[_0x102614(0x10c)](_0x20854c)),await _0x12220a[_0x102614(0x126)](sendInstrumentationEvent,_0x104b7b,_0x12220a[_0x102614(0x137)],messageTypes[_0x102614(0x135)],_0x12220a[_0x102614(0x101)],_0x20854c,_0x104b7b),process['exit'](0x1);}catch(_0xbffc69){console[_0x102614(0x14f)](_0x102614(0x12d)+_0xbffc69[_0x102614(0x11b)]),await _0x12220a[_0x102614(0x118)](sendInstrumentationEvent,_0x104b7b,_0x12220a[_0x102614(0x137)],messageTypes[_0x102614(0x135)],_0x12220a[_0x102614(0x105)],_0xbffc69,_0x104b7b),process[_0x102614(0x130)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x48d69e=a16_0x377e;(function(_0x416524,_0x255ab0){const _0x3c577e=a16_0x377e,_0x55cbf8=_0x416524();while(!![]){try{const _0x19532a=parseInt(_0x3c577e(0x187))/0x1+-parseInt(_0x3c577e(0x193))/0x2*(-parseInt(_0x3c577e(0x191))/0x3)+-parseInt(_0x3c577e(0x18a))/0x4+-parseInt(_0x3c577e(0x194))/0x5+-parseInt(_0x3c577e(0x184))/0x6*(parseInt(_0x3c577e(0x189))/0x7)+-parseInt(_0x3c577e(0x182))/0x8*(parseInt(_0x3c577e(0x196))/0x9)+parseInt(_0x3c577e(0x197))/0xa;if(_0x19532a===_0x255ab0)break;else _0x55cbf8['push'](_0x55cbf8['shift']());}catch(_0x4c1026){_0x55cbf8['push'](_0x55cbf8['shift']());}}}(a16_0x2c90,0xc406f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x48d69e(0x18d));function a16_0x377e(_0x4a8a4c,_0x41af92){const _0x2c9087=a16_0x2c90();return a16_0x377e=function(_0x377e1f,_0x3b0ac1){_0x377e1f=_0x377e1f-0x17f;let _0x49afa4=_0x2c9087[_0x377e1f];return _0x49afa4;},a16_0x377e(_0x4a8a4c,_0x41af92);}function a16_0x2c90(){const _0x897ff1=['5536gnvaeW','541875KELYmQ','precheck_commands','148437UdoCJe','19398470TPuUar','pre_check','usage','builder','DUAgW','desc','656WQZJJM','pre-check','102jhwQxF','demandCommand','fQAjW','798023prLMFk','handler','441035cXWgXB','955972ldWeGa','command','recommendCommands','../config/constants','help','epilogue','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','906FYUABS','strict'];a16_0x2c90=function(){return _0x897ff1;};return a16_0x2c90();}exports[a16_0x48d69e(0x18b)]=a16_0x48d69e(0x183),exports[a16_0x48d69e(0x181)]=a16_0x48d69e(0x190),exports[a16_0x48d69e(0x17f)]=function(_0x5db319){const _0x376ebc=a16_0x48d69e,_0xdae836={};_0xdae836['DUAgW']=_0x376ebc(0x195),_0xdae836[_0x376ebc(0x186)]='help';const _0x258169=_0xdae836;return _0x5db319[_0x376ebc(0x199)](HELP_HEADER_MESSAGE[_0x376ebc(0x198)])[_0x376ebc(0x18f)](HELP_FOOTER_MESSAGE)['commandDir'](_0x258169[_0x376ebc(0x180)])[_0x376ebc(0x185)]()[_0x376ebc(0x18c)]()[_0x376ebc(0x192)]()[_0x376ebc(0x18e)](_0x258169[_0x376ebc(0x186)]);},exports[a16_0x48d69e(0x188)]=function(_0x388f26){};
1
+ function a16_0x5730(){const _0x5b3d10=['help','recommendCommands','usage','960ZKUfOt','24mdJeUm','58214dSTVSZ','7YmVqff','1860726pPVrWA','epilogue','desc','4qGczmb','pre-check','6129384xOXAMi','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','15695647LzQsDp','strict','8841627PKhFet','19134ciBYuK','32hszIMJ','pre_check','handler','4250650ZDJnEl','itzMg','precheck_commands','../config/constants','commandDir'];a16_0x5730=function(){return _0x5b3d10;};return a16_0x5730();}function a16_0x245f(_0x3220be,_0x338c46){const _0x5730ac=a16_0x5730();return a16_0x245f=function(_0x245fb4,_0x14d7b1){_0x245fb4=_0x245fb4-0x186;let _0x2fcbc8=_0x5730ac[_0x245fb4];return _0x2fcbc8;},a16_0x245f(_0x3220be,_0x338c46);}const a16_0x3c4df2=a16_0x245f;(function(_0x3b27e8,_0x29bcdd){const _0x24ff2a=a16_0x245f,_0x304bec=_0x3b27e8();while(!![]){try{const _0x1ea960=parseInt(_0x24ff2a(0x192))/0x1*(parseInt(_0x24ff2a(0x19f))/0x2)+parseInt(_0x24ff2a(0x187))/0x3*(parseInt(_0x24ff2a(0x18a))/0x4)+parseInt(_0x24ff2a(0x19d))/0x5*(parseInt(_0x24ff2a(0x191))/0x6)+-parseInt(_0x24ff2a(0x186))/0x7*(-parseInt(_0x24ff2a(0x18c))/0x8)+parseInt(_0x24ff2a(0x190))/0x9+-parseInt(_0x24ff2a(0x195))/0xa+-parseInt(_0x24ff2a(0x18e))/0xb*(parseInt(_0x24ff2a(0x19e))/0xc);if(_0x1ea960===_0x29bcdd)break;else _0x304bec['push'](_0x304bec['shift']());}catch(_0x3df965){_0x304bec['push'](_0x304bec['shift']());}}}(a16_0x5730,0x9ab6f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x3c4df2(0x198));exports['command']=a16_0x3c4df2(0x18b),exports[a16_0x3c4df2(0x189)]=a16_0x3c4df2(0x18d),exports['builder']=function(_0x2bb9a9){const _0x3314c4=a16_0x3c4df2,_0x3da1ab={};_0x3da1ab['UiZyH']=_0x3314c4(0x197),_0x3da1ab[_0x3314c4(0x196)]=_0x3314c4(0x19a);const _0x2e44d5=_0x3da1ab;return _0x2bb9a9[_0x3314c4(0x19c)](HELP_HEADER_MESSAGE[_0x3314c4(0x193)])[_0x3314c4(0x188)](HELP_FOOTER_MESSAGE)[_0x3314c4(0x199)](_0x2e44d5['UiZyH'])['demandCommand']()[_0x3314c4(0x19b)]()[_0x3314c4(0x18f)]()[_0x3314c4(0x19a)](_0x2e44d5[_0x3314c4(0x196)]);},exports[a16_0x3c4df2(0x194)]=function(_0x216456){};
@@ -1 +1 @@
1
- const a17_0x16d4ea=a17_0x42f9;function a17_0x42f9(_0x34b4b4,_0x48f882){const _0x1c8af6=a17_0x1c8a();return a17_0x42f9=function(_0x42f99f,_0x38c2b5){_0x42f99f=_0x42f99f-0x192;let _0x2f9c73=_0x1c8af6[_0x42f99f];return _0x2f9c73;},a17_0x42f9(_0x34b4b4,_0x48f882);}(function(_0x448fe2,_0x4311b9){const _0x22f281=a17_0x42f9,_0x152477=_0x448fe2();while(!![]){try{const _0x599ecb=-parseInt(_0x22f281(0x1f0))/0x1+parseInt(_0x22f281(0x1b9))/0x2+parseInt(_0x22f281(0x240))/0x3+parseInt(_0x22f281(0x1da))/0x4+parseInt(_0x22f281(0x196))/0x5*(-parseInt(_0x22f281(0x1ee))/0x6)+parseInt(_0x22f281(0x22e))/0x7*(parseInt(_0x22f281(0x223))/0x8)+parseInt(_0x22f281(0x278))/0x9*(-parseInt(_0x22f281(0x252))/0xa);if(_0x599ecb===_0x4311b9)break;else _0x152477['push'](_0x152477['shift']());}catch(_0x3d8966){_0x152477['push'](_0x152477['shift']());}}}(a17_0x1c8a,0x3e3ac));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x16d4ea(0x1fb)),ReconnectingWebSocket=require(a17_0x16d4ea(0x1c7)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x16d4ea(0x263)),{logger}=require(a17_0x16d4ea(0x231)),{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_0x16d4ea(0x1ac)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x16d4ea(0x237)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x16d4ea(0x21c)]=a17_0x16d4ea(0x1ff),exports['desc']=a17_0x16d4ea(0x265),exports[a17_0x16d4ea(0x228)]=function(_0x1bae33){const _0x3901a9=a17_0x16d4ea,_0x3df232={};_0x3df232[_0x3901a9(0x224)]=_0x3901a9(0x26c),_0x3df232[_0x3901a9(0x1af)]=_0x3901a9(0x200),_0x3df232['uRhvw']=_0x3901a9(0x199),_0x3df232[_0x3901a9(0x27d)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3df232[_0x3901a9(0x25d)]=_0x3901a9(0x19d),_0x3df232['oRuLH']=_0x3901a9(0x1a3);const _0x5cabdc=_0x3df232,_0x1161a8={};_0x1161a8[_0x3901a9(0x27b)]=_0x5cabdc['gziyR'],_0x1161a8[_0x3901a9(0x24f)]=_0x5cabdc[_0x3901a9(0x1af)];const _0x1b5d55={};_0x1b5d55[_0x3901a9(0x27b)]=_0x5cabdc[_0x3901a9(0x1eb)],_0x1b5d55[_0x3901a9(0x24f)]=_0x5cabdc[_0x3901a9(0x1af)];const _0x5a902c={};_0x5a902c[_0x3901a9(0x27b)]=_0x5cabdc[_0x3901a9(0x27d)],_0x5a902c[_0x3901a9(0x24f)]=_0x5cabdc[_0x3901a9(0x1af)];const _0x38cfc0={};_0x38cfc0['description']=_0x5cabdc['kdpzf'],_0x38cfc0[_0x3901a9(0x24f)]=_0x5cabdc[_0x3901a9(0x1af)];const _0x2c5648={};return _0x2c5648[_0x3901a9(0x261)]=_0x1161a8,_0x2c5648[_0x3901a9(0x22f)]=_0x1b5d55,_0x2c5648[_0x3901a9(0x19a)]=_0x5a902c,_0x2c5648[_0x3901a9(0x21f)]=_0x38cfc0,_0x1bae33[_0x3901a9(0x282)](HELP_HEADER_MESSAGE[_0x3901a9(0x20d)])[_0x3901a9(0x249)](HELP_FOOTER_MESSAGE)['options'](_0x2c5648)[_0x3901a9(0x1a3)](_0x5cabdc[_0x3901a9(0x268)])[_0x3901a9(0x1fd)];};async function inputValidation(_0x444779,_0x926c3a){const _0x1ce29b=a17_0x16d4ea,_0x159b92={'DakFR':function(_0x35850d,_0x546eb7){return _0x35850d+_0x546eb7;},'eQCQe':_0x1ce29b(0x267),'siVUq':'Failure','ONdXh':function(_0x4afc1a,_0x44deab){return _0x4afc1a||_0x44deab;},'dHFsp':'N/A','DvVZS':'Error\x20Details:\x0a','KeIMX':_0x1ce29b(0x22f),'ffyyo':'cluster-name','EvxDc':_0x1ce29b(0x19a),'TIGsa':_0x1ce29b(0x1b8),'GEQBA':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','OOEfh':_0x1ce29b(0x26c),'bdAVj':_0x1ce29b(0x200),'oXGVG':_0x1ce29b(0x199),'vhhoC':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','PZSrD':_0x1ce29b(0x19d),'SAtFw':_0x1ce29b(0x1a3),'RSmZg':function(_0x3b22a0,_0x4b9e1c){return _0x3b22a0!==_0x4b9e1c;},'PwnGN':_0x1ce29b(0x1a1),'MSLME':'aZVBf','HESQj':_0x1ce29b(0x264),'AbPMJ':'TopTV','wZnfS':function(_0x461542,_0x3f8e2b){return _0x461542===_0x3f8e2b;},'wBtLD':_0x1ce29b(0x222),'bAqqU':function(_0x383167,_0x39d223){return _0x383167===_0x39d223;},'PPLmI':_0x1ce29b(0x256),'XfSiU':'GqTSO','cQeMJ':_0x1ce29b(0x289),'IWwla':function(_0x43c514,_0x5e54ce){return _0x43c514>_0x5e54ce;},'Ffcme':function(_0x14e364,_0x74027){return _0x14e364!==_0x74027;},'KlpqW':_0x1ce29b(0x1d2),'NJBDb':function(_0x1ba924,_0x75c6f1,_0x1e9585,_0x7cf92,_0x459ad7,_0x1d99be,_0x31a9c6,_0x443b80){return _0x1ba924(_0x75c6f1,_0x1e9585,_0x7cf92,_0x459ad7,_0x1d99be,_0x31a9c6,_0x443b80);},'yhmQi':'pre-check-grid-called','qhQTl':_0x1ce29b(0x192),'wnAbm':'fcRuf','udBFX':_0x1ce29b(0x1c9),'NKsud':_0x1ce29b(0x26a),'KkVQm':function(_0x1da770,_0x54e9ea){return _0x1da770!==_0x54e9ea;},'gRPPO':'cPupu','uiLZL':'BYRqV','XMBzS':_0x1ce29b(0x234),'LuURL':function(_0x13f4d7,_0x380746,_0x51d8a2){return _0x13f4d7(_0x380746,_0x51d8a2);},'eOOAQ':function(_0x2710c4,_0x620dd,_0x41abb7,_0x498792,_0x172810,_0x228141){return _0x2710c4(_0x620dd,_0x41abb7,_0x498792,_0x172810,_0x228141);},'nSUbg':_0x1ce29b(0x1aa),'TorDm':'grid-profile','XdvSi':function(_0xf9ef8,_0x4eedef){return _0xf9ef8!==_0x4eedef;},'sHAou':_0x1ce29b(0x25b),'tyJfQ':function(_0x1c19b0,_0x31bafd){return _0x1c19b0(_0x31bafd);},'fgtrA':function(_0x216724,_0x2d70b7){return _0x216724===_0x2d70b7;},'eHLAX':'ZylWq','JVzRY':function(_0x11258b,_0x430d43,_0x5ce4e1,_0x36a02f,_0x32f93f,_0xdd5d13,_0x7c7e50,_0x47d614){return _0x11258b(_0x430d43,_0x5ce4e1,_0x36a02f,_0x32f93f,_0xdd5d13,_0x7c7e50,_0x47d614);},'gyVcV':'pre-check-grid-profile-empty','Utubh':_0x1ce29b(0x279),'xbCGL':_0x1ce29b(0x22d),'BJoOL':_0x1ce29b(0x20f),'pQojN':_0x1ce29b(0x1fc),'pCCfc':'gqAHw','EsKJr':function(_0x5a589f,_0x219cc0){return _0x5a589f!==_0x219cc0;},'AuJtH':'zDOnI'};let _0x369f9f;try{if(_0x159b92[_0x1ce29b(0x210)](_0x159b92['PwnGN'],_0x159b92['MSLME'])){if(_0x444779[_0x1ce29b(0x1d8)]||_0x444779[_0x1ce29b(0x26f)]||_0x444779[_0x1ce29b(0x19a)]){if(_0x159b92[_0x1ce29b(0x210)](_0x159b92[_0x1ce29b(0x1fe)],_0x159b92[_0x1ce29b(0x239)])){const _0x26a239=[];if(!_0x444779['clusterName']){if(_0x159b92['wZnfS'](_0x159b92[_0x1ce29b(0x207)],_0x159b92['wBtLD']))_0x26a239[_0x1ce29b(0x253)](_0x159b92[_0x1ce29b(0x1e5)]);else{const {header:_0xaddfd4,response:_0x1839cc}=_0x1de627,{status:_0x1a0b42,data:_0x549083,error:_0x1124e3}=_0x1839cc;_0x4479e5+=_0xaddfd4+'\x20#'+_0x159b92[_0x1ce29b(0x1c6)](_0x29633c,0x1)+'\x0a',_0x36381b+=_0x1ce29b(0x1d4)+(_0x1a0b42?_0x159b92[_0x1ce29b(0x286)]:_0x159b92[_0x1ce29b(0x1a2)])+'\x0a',_0x195935+=_0x1ce29b(0x1f1)+_0x159b92['ONdXh'](_0x549083,_0x159b92['dHFsp'])+'\x0a',_0x1124e3&&(_0x468e7e+=_0x159b92[_0x1ce29b(0x230)],_0x424d2a+=_0x1ce29b(0x1c8)+(_0x1124e3[_0x1ce29b(0x19b)]||_0x159b92[_0x1ce29b(0x25e)])+'\x0a',_0x537b12+=_0x1ce29b(0x1ef)+(_0x1124e3[_0x1ce29b(0x1f3)]||_0x159b92[_0x1ce29b(0x25e)])+'\x0a',_0x33866e+='\x20\x20Stack:\x20'+(_0x1124e3['stack']||_0x159b92[_0x1ce29b(0x25e)])+'\x0a'),_0x33402b+='\x0a\x0a';}};!_0x444779['cloudProvider']&&(_0x159b92[_0x1ce29b(0x1c1)](_0x159b92[_0x1ce29b(0x246)],_0x159b92[_0x1ce29b(0x246)])?_0x26a239[_0x1ce29b(0x253)](_0x159b92[_0x1ce29b(0x248)]):_0x2dbc25[_0x1ce29b(0x253)](_0x159b92[_0x1ce29b(0x248)]));;!_0x444779[_0x1ce29b(0x19a)]&&(_0x159b92['RSmZg'](_0x159b92[_0x1ce29b(0x21d)],_0x159b92[_0x1ce29b(0x24a)])?_0x26a239['push'](_0x159b92[_0x1ce29b(0x23d)]):_0x5f2446[_0x1ce29b(0x253)](_0x159b92[_0x1ce29b(0x1e5)]));;_0x159b92[_0x1ce29b(0x23a)](_0x26a239[_0x1ce29b(0x1c2)],0x0)&&(_0x159b92[_0x1ce29b(0x221)](_0x159b92[_0x1ce29b(0x280)],_0x159b92['KlpqW'])?_0x1179b3[_0x1ce29b(0x1b8)](_0x1ce29b(0x208)+_0x7ec10f[_0x1ce29b(0x1b8)][_0x1ce29b(0x227)]):(_0x369f9f=_0x1ce29b(0x20e)+_0x26a239[_0x1ce29b(0x281)](',\x20')+_0x1ce29b(0x287),await _0x159b92[_0x1ce29b(0x1d3)](reportToGalactusAndSendToEDS,_0x444779,_0x926c3a,_0x369f9f,messageTypes[_0x1ce29b(0x24b)],_0x159b92[_0x1ce29b(0x1cc)],_0x159b92[_0x1ce29b(0x270)],_0x159b92[_0x1ce29b(0x274)]),logger[_0x1ce29b(0x1b8)](_0x369f9f),process[_0x1ce29b(0x1a6)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1ce29b(0x28a)](_0x444779[_0x1ce29b(0x26f)][_0x1ce29b(0x1b7)]())&&(_0x159b92[_0x1ce29b(0x1c1)](_0x159b92[_0x1ce29b(0x288)],_0x159b92[_0x1ce29b(0x288)])?(_0x369f9f=_0x159b92[_0x1ce29b(0x28c)],await _0x159b92[_0x1ce29b(0x1d3)](reportToGalactusAndSendToEDS,_0x444779,_0x926c3a,_0x369f9f,messageTypes['ERROR'],_0x159b92[_0x1ce29b(0x1cc)],_0x159b92[_0x1ce29b(0x1b6)],_0x159b92['TIGsa']),logger[_0x1ce29b(0x1b8)](_0x369f9f),!_0x444779['cloudProvider']&&(_0x159b92[_0x1ce29b(0x1e4)](_0x159b92[_0x1ce29b(0x204)],_0x159b92[_0x1ce29b(0x204)])?_0x125e4f[_0x1ce29b(0x253)](_0x159b92[_0x1ce29b(0x23d)]):(logger[_0x1ce29b(0x238)](_0x1ce29b(0x277)+DEFAULT_CLUSTER_DETAILS[_0x1ce29b(0x266)]+'\x20'),_0x444779[_0x1ce29b(0x26f)]=DEFAULT_CLUSTER_DETAILS[_0x1ce29b(0x266)]))):_0x10254f[_0x1ce29b(0x1a6)](0x1)),global_registry[_0x1ce29b(0x1d8)]=_0x444779['clusterName'],global_registry[_0x1ce29b(0x26f)]=_0x444779[_0x1ce29b(0x26f)],global_registry['clusterRegion']=_0x444779[_0x1ce29b(0x19a)];}else _0xc69dbf=_0x585a17;}else{if(_0x444779[_0x1ce29b(0x205)]){if(_0x159b92['wZnfS'](_0x159b92[_0x1ce29b(0x271)],_0x159b92[_0x1ce29b(0x271)])){global_registry['gridProfile']=_0x444779[_0x1ce29b(0x205)],logger[_0x1ce29b(0x1fa)](_0x1ce29b(0x195)+_0x444779[_0x1ce29b(0x205)]);const _0x20764d='https://'+AG_API_URL+_0x1ce29b(0x1ad),_0x3638fa={};_0x3638fa[_0x1ce29b(0x20c)]=_0x159b92['XMBzS'],_0x3638fa[_0x1ce29b(0x1d1)]=global_registry[_0x1ce29b(0x22c)],_0x3638fa['throwHttpErrors']=![];const _0xa78c60=_0x3638fa,_0x471770=await _0x159b92['LuURL'](got,_0x20764d,_0xa78c60),_0x51d0f0=await _0x159b92[_0x1ce29b(0x201)](responseValidation,_0x471770,_0x159b92[_0x1ce29b(0x213)],_0x159b92[_0x1ce29b(0x206)],_0x444779,_0x926c3a);let _0x55dc8c={};if(_0x159b92[_0x1ce29b(0x1c1)](_0x51d0f0,0xc8)){if(_0x159b92[_0x1ce29b(0x1cd)](_0x159b92[_0x1ce29b(0x1e6)],_0x159b92[_0x1ce29b(0x1e6)]))_0x378f82+=_0x1ce29b(0x1e1)+_0x33ea84[_0x1ce29b(0x1d8)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{const _0x2242bf=JSON[_0x1ce29b(0x1ba)](_0x471770[_0x1ce29b(0x247)]),_0x2cfa48=_0x2242bf[_0x1ce29b(0x23e)](_0x2a5f18=>_0x2a5f18[_0x1ce29b(0x269)]===_0x444779[_0x1ce29b(0x205)])||null;if(_0x159b92['tyJfQ'](isUndefined,_0x2cfa48))_0x159b92[_0x1ce29b(0x1bc)](_0x159b92[_0x1ce29b(0x1b2)],_0x159b92[_0x1ce29b(0x1b2)])?(_0x369f9f=_0x1ce29b(0x232)+_0x444779[_0x1ce29b(0x205)]+_0x1ce29b(0x1f2),await _0x159b92[_0x1ce29b(0x1a0)](reportToGalactusAndSendToEDS,_0x444779,_0x926c3a,_0x369f9f,messageTypes[_0x1ce29b(0x24b)],_0x159b92['yhmQi'],_0x159b92[_0x1ce29b(0x1dd)],_0x159b92[_0x1ce29b(0x274)]),logger[_0x1ce29b(0x1b8)](_0x369f9f),process['exit'](0x1)):_0x157477[_0x1ce29b(0x238)](_0x1ce29b(0x1f5)+_0x45ccb3[_0x1ce29b(0x1d8)]+_0x1ce29b(0x27a));else{if(_0x159b92[_0x1ce29b(0x1cd)](_0x159b92[_0x1ce29b(0x1d9)],_0x159b92['Utubh'])){const _0x415c45={};_0x415c45[_0x1ce29b(0x24f)]=_0xfe4c98['LOG'],_0x415c45[_0x1ce29b(0x19b)]=_0x49c964,_0x36456a[_0x1ce29b(0x217)](_0x10d50a,_0x415c45,_0x159b92[_0x1ce29b(0x274)],!![]);}else _0x55dc8c=_0x2cfa48;}}}else _0x159b92[_0x1ce29b(0x1bc)](_0x159b92[_0x1ce29b(0x1ed)],_0x159b92[_0x1ce29b(0x1ed)])?process[_0x1ce29b(0x1a6)](0x1):(_0x56b7e7[_0x1ce29b(0x1b8)](_0x159b92[_0x1ce29b(0x1b0)]),_0x18112d[_0x1ce29b(0x1a6)](0x1));const _0x492b4a={};_0x492b4a[_0x1ce29b(0x24f)]=WS_EVENTS['LOG'],_0x492b4a[_0x1ce29b(0x19b)]=_0x159b92[_0x1ce29b(0x236)],webSocketUtils['sendEventToBackend'](_0x926c3a,_0x492b4a),global_registry[_0x1ce29b(0x26f)]=_0x55dc8c[_0x1ce29b(0x26f)],global_registry['clusterRegion']=_0x55dc8c['region'],global_registry[_0x1ce29b(0x1d8)]=_0x55dc8c['clusterName'];}else{const _0x2a061c={};_0x2a061c['description']=_0x159b92[_0x1ce29b(0x255)],_0x2a061c[_0x1ce29b(0x24f)]=_0x159b92[_0x1ce29b(0x214)];const _0x236d1f={};_0x236d1f[_0x1ce29b(0x27b)]=_0x159b92['oXGVG'],_0x236d1f['type']=_0x159b92['bdAVj'];const _0x1d95c6={};_0x1d95c6[_0x1ce29b(0x27b)]=_0x159b92[_0x1ce29b(0x275)],_0x1d95c6[_0x1ce29b(0x24f)]=_0x159b92[_0x1ce29b(0x214)];const _0x43755d={};_0x43755d[_0x1ce29b(0x27b)]=_0x159b92[_0x1ce29b(0x1cb)],_0x43755d[_0x1ce29b(0x24f)]=_0x159b92['bdAVj'];const _0x1365d4={};return _0x1365d4[_0x1ce29b(0x261)]=_0x2a061c,_0x1365d4[_0x1ce29b(0x22f)]=_0x236d1f,_0x1365d4[_0x1ce29b(0x19a)]=_0x1d95c6,_0x1365d4[_0x1ce29b(0x21f)]=_0x43755d,_0x4ac5df[_0x1ce29b(0x282)](_0x1d6cb6[_0x1ce29b(0x20d)])[_0x1ce29b(0x249)](_0x17c836)[_0x1ce29b(0x245)](_0x1365d4)[_0x1ce29b(0x1a3)](_0x159b92[_0x1ce29b(0x1f4)])[_0x1ce29b(0x1fd)];}}else _0x159b92[_0x1ce29b(0x1a4)](_0x159b92[_0x1ce29b(0x1ea)],_0x159b92[_0x1ce29b(0x202)])?(_0x5f2a30+=_0x159b92[_0x1ce29b(0x230)],_0x17660b+='\x20\x20Message:\x20'+(_0x2bbcf0[_0x1ce29b(0x19b)]||_0x159b92['dHFsp'])+'\x0a',_0x1c017b+=_0x1ce29b(0x1ef)+(_0x195adb['code']||_0x159b92[_0x1ce29b(0x25e)])+'\x0a',_0x7387b4+=_0x1ce29b(0x1e0)+(_0xfd882b[_0x1ce29b(0x227)]||_0x159b92['dHFsp'])+'\x0a'):(logger[_0x1ce29b(0x1b8)](_0x159b92[_0x1ce29b(0x1b0)]),process[_0x1ce29b(0x1a6)](0x1));}}else _0x34d109[_0x1ce29b(0x238)](_0x1ce29b(0x277)+_0xa1708[_0x1ce29b(0x266)]+'\x20'),_0x43f744[_0x1ce29b(0x26f)]=_0x4c2d16[_0x1ce29b(0x266)];}catch(_0xc2a6eb){_0x159b92[_0x1ce29b(0x1f7)](_0x159b92['AuJtH'],_0x159b92[_0x1ce29b(0x26d)])?(_0x1fd174['info']('['+_0x5e2bfb+_0x1ce29b(0x1ab)+_0x63589d[_0x1ce29b(0x22b)]+_0x1ce29b(0x250)+_0x449a51[_0x1ce29b(0x26e)]+_0x1ce29b(0x23f)+_0x318bcd[_0x1ce29b(0x1b8)]),_0x42cb9d[_0x1ce29b(0x1b8)]&&_0xe7c086[_0x1ce29b(0x1b8)](_0x1ce29b(0x208)+_0x51cc12['error'][_0x1ce29b(0x227)])):(_0x369f9f=_0x1ce29b(0x272)+_0xc2a6eb+':\x20'+_0xc2a6eb[_0x1ce29b(0x227)],logger[_0x1ce29b(0x1b8)](_0x369f9f),await _0x159b92[_0x1ce29b(0x1d3)](reportToGalactusAndSendToEDS,_0x444779,_0x926c3a,_0x369f9f,messageTypes[_0x1ce29b(0x24b)],_0x159b92['yhmQi'],_0x159b92[_0x1ce29b(0x1b6)],_0x159b92[_0x1ce29b(0x274)]),process[_0x1ce29b(0x1a6)](0x1));}}function printResponse(_0x9c0f8e,_0x3a2fa4){const _0x1026e5=a17_0x16d4ea,_0xf6f60d={};_0xf6f60d[_0x1026e5(0x1a9)]=_0x1026e5(0x254),_0xf6f60d['GsgpL']=_0x1026e5(0x258),_0xf6f60d['wwmES']=function(_0x570df7,_0x1eb9fb){return _0x570df7===_0x1eb9fb;},_0xf6f60d[_0x1026e5(0x284)]=_0x1026e5(0x1c4),_0xf6f60d[_0x1026e5(0x22a)]='AcnhP';const _0x29b39b=_0xf6f60d;logger[_0x1026e5(0x238)]('['+_0x9c0f8e+_0x1026e5(0x1ab)+_0x3a2fa4[_0x1026e5(0x22b)]+_0x1026e5(0x250)+_0x3a2fa4[_0x1026e5(0x26e)]+_0x1026e5(0x23f)+_0x3a2fa4[_0x1026e5(0x1b8)]),_0x3a2fa4[_0x1026e5(0x1b8)]&&(_0x29b39b[_0x1026e5(0x235)](_0x29b39b[_0x1026e5(0x284)],_0x29b39b[_0x1026e5(0x22a)])?_0x3f119a+=_0x1026e5(0x1e1)+_0x48ce18[_0x1026e5(0x1d8)]+'\x20'+(_0x43b9d2?_0x29b39b[_0x1026e5(0x1a9)]:_0x29b39b['GsgpL'])+'\x0a\x0a':logger['error'](_0x1026e5(0x208)+_0x3a2fa4[_0x1026e5(0x1b8)][_0x1026e5(0x227)]));}function a17_0x1c8a(){const _0x13e382=['KlpqW','join','usage','bstackUsername','hDpig','AaMRy','eQCQe','.\x20Please\x20provide\x20all\x20required\x20arguments.','wnAbm','dZYxI','includes','checkAccess','udBFX','pre-check-cluster-args-not-passed','xwZdP','getUTCDate','grid\x20profile\x20flow\x20','973325KccCkl','WeVSi','writeFileSync','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','region','message','ipaKQ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','replace','WmrOE','JVzRY','bQbUz','siVUq','help','wZnfS','SEHYM','exit','N/A','UKmqF','AEKcQ','pre-check',']\x20status\x20:\x20','../../config/constants','/packages/cli/get-all-grid-profiles','EynMH','xHzOu','GEQBA','connectionTimeout','eHLAX','TLSv1_2_client_method','response','password','NKsud','toLowerCase','error','598016rAGCSi','parse','utf-8','fgtrA','<UsernamePlaceholder>','IsjQg','isCliToolInstalled','clusterRegion','bAqqU','length','User\x20Access','ymvxp','handler','DakFR','reconnecting-websocket','\x20\x20Message:\x20','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','CiRQp','PZSrD','yhmQi','XdvSi','Browserstack','===\x20Precheck\x20Report\x20-\x20','isTls1_2_SUPPORTED','headers','MnTXn','NJBDb','Status:\x20','MCiKy','ZkBmO','bstackAccesskey','clusterName','Utubh','1170240ZIJEOp','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','WebSocket','gyVcV','RDzST','GKSKB','\x20\x20Stack:\x20','Cluster\x20','Msrmx','Failure','KkVQm','ffyyo','sHAou','PLSnS','gjknu','rbnmm','pQojN','uRhvw','dummy-grid','xbCGL','6GkiwHr','\x20\x20Code:\x20','77409qYMqgd','Message:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','code','SAtFw','Cluster\x20`','IEScI','EsKJr','INFO','`\x20is\x20present\x20in\x20region\x20`','debug','uuid','NLiFm','argv','HESQj','grid','string','eOOAQ','pCCfc','XEgvK','gRPPO','gridProfile','TorDm','wBtLD','error\x20stack\x20:\x20','.txt','EebdK','bKPFR','method','pre_check','Missing\x20required\x20arguments:\x20','Grid\x20profile\x20fetched\x20for\x20pre-check','RSmZg','accessResp','getUTCMonth','nSUbg','bdAVj','tcfIS','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sendEventToBackend','gxYDf','Pre-check\x20running\x20for\x20Cloud\x20-\x20','DzYNO','`\x20,error\x20:\x20','command','XfSiU','readFileSync','grid-profile','getUTCHours','Ffcme','SWgEa','1221672hePJFs','gziyR','pre-check-failed','AjQWX','stack','builder','header','UyzAw','status','authHeader','ahYTs','7yiZUBM','cloud-provider','DvVZS','../../config/logger','Invalid\x20input.\x20grid\x20profiles:\x20','KJrAG','GET','wwmES','BJoOL','../../utils/webSocketUtils','info','AbPMJ','IWwla','isClusterPresent','toolInstalledResp','EvxDc','find','\x20error\x20:\x20','789561elUrCD','HUBea','getUTCMinutes','requestId','stringify','options','PPLmI','body','KeIMX','epilogue','cQeMJ','ERROR','zubxO','isTrialGridAccessible','delay','type','\x20data\x20:\x20','rmwsN','15110kvGwDt','push','is\x20already\x20present','OOEfh','cBlwH','init','will\x20be\x20created','fzOEy','log/report_','pASor','unqrX','kdpzf','dHFsp','RIwxU','split','cluster-name','qPsKb','../../utils/utilityMethods','YPgAJ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','CLOUD_PROVIDER','Success','oRuLH','name','cloud-provider-not-supported','nmwRo','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','AuJtH','data','cloudProvider','qhQTl','uiLZL','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Report\x20saved\x20in\x20','TIGsa','vhhoC','Failed\x20in\x20pre-check!\x20Error:\x20','Setting\x20cloud\x20provider\x20as\x20','2862PIowKr','aYqeY','`\x20already\x20exists','description','username','jRAWe','\x20===\x0a\x0a','HjpgS'];a17_0x1c8a=function(){return _0x13e382;};return a17_0x1c8a();}async function generateReport(_0x50c839,_0x4ee7cd){const _0x945683=a17_0x16d4ea,_0x175910={'GKSKB':function(_0x3018e6,_0x5eb8a8){return _0x3018e6+_0x5eb8a8;},'WmrOE':_0x945683(0x267),'xwZdP':_0x945683(0x1e3),'nmwRo':function(_0x1b1ddd,_0x4ab4ff){return _0x1b1ddd||_0x4ab4ff;},'WeVSi':_0x945683(0x1a7),'IEScI':'Error\x20Details:\x0a','Msrmx':'Cluster\x20details\x0a-----------------------\x0a','fzOEy':function(_0xd97807,_0x3d7f2d){return _0xd97807!=_0x3d7f2d;},'tcfIS':_0x945683(0x254),'vWzbe':_0x945683(0x258),'AaMRy':function(_0x162396){return _0x162396();}};let _0x5d9c05=_0x945683(0x1cf)+global_registry[_0x945683(0x26f)]+_0x945683(0x27e);return _0x50c839['forEach']((_0x1c49e3,_0x42a723)=>{const _0xe0cb82=_0x945683,{header:_0x3b530d,response:_0x34ce9c}=_0x1c49e3,{status:_0x400520,data:_0x200fc3,error:_0x4ae106}=_0x34ce9c;_0x5d9c05+=_0x3b530d+'\x20#'+_0x175910[_0xe0cb82(0x1df)](_0x42a723,0x1)+'\x0a',_0x5d9c05+='Status:\x20'+(_0x400520?_0x175910[_0xe0cb82(0x19f)]:_0x175910[_0xe0cb82(0x193)])+'\x0a',_0x5d9c05+=_0xe0cb82(0x1f1)+_0x175910[_0xe0cb82(0x26b)](_0x200fc3,_0x175910['WeVSi'])+'\x0a',_0x4ae106&&(_0x5d9c05+=_0x175910[_0xe0cb82(0x1f6)],_0x5d9c05+=_0xe0cb82(0x1c8)+(_0x4ae106[_0xe0cb82(0x19b)]||_0x175910[_0xe0cb82(0x197)])+'\x0a',_0x5d9c05+=_0xe0cb82(0x1ef)+(_0x4ae106[_0xe0cb82(0x1f3)]||_0x175910[_0xe0cb82(0x197)])+'\x0a',_0x5d9c05+=_0xe0cb82(0x1e0)+(_0x4ae106['stack']||_0x175910[_0xe0cb82(0x197)])+'\x0a'),_0x5d9c05+='\x0a\x0a';}),_0x5d9c05+=_0x175910[_0x945683(0x1e2)],_0x175910[_0x945683(0x259)](_0x4ee7cd,null)?_0x5d9c05+=_0x945683(0x1e1)+global_registry[_0x945683(0x1d8)]+'\x20'+(_0x4ee7cd?_0x175910[_0x945683(0x215)]:_0x175910['vWzbe'])+'\x0a\x0a':_0x5d9c05+=_0x945683(0x1e1)+global_registry[_0x945683(0x1d8)]+_0x945683(0x1db),_0x5d9c05+=_0x175910[_0x945683(0x285)](getSystemMetaData),_0x5d9c05;};exports[a17_0x16d4ea(0x1c5)]=async function(_0xa17ba){const _0x21466c=a17_0x16d4ea,_0xe34b02={'zubxO':function(_0x5d30ab){return _0x5d30ab();},'bKPFR':_0x21466c(0x216),'sMuTX':function(_0x25b5d8,_0x3f8a40,_0x5c1d3b,_0x12bb50,_0x224a22,_0x565ab3,_0xcba60d,_0x135175){return _0x25b5d8(_0x3f8a40,_0x5c1d3b,_0x12bb50,_0x224a22,_0x565ab3,_0xcba60d,_0x135175);},'CiRQp':'pre-check-grid-called','gjknu':'credential-not-found','XEgvK':_0x21466c(0x1b8),'HjpgS':function(_0x3d0da8,_0x19cce9,_0x4eb43e,_0x1fd2e5,_0x382cf2,_0x23fc1e,_0x2f0943){return _0x3d0da8(_0x19cce9,_0x4eb43e,_0x1fd2e5,_0x382cf2,_0x23fc1e,_0x2f0943);},'VQsqY':_0x21466c(0x1bd),'DzYNO':'<PasswordPlaceholder>','UKmqF':function(_0x3b73c8,_0x2e9499,_0x335b12){return _0x3b73c8(_0x2e9499,_0x335b12);},'rbnmm':function(_0x26e490,_0x402a36,_0x41ead5){return _0x26e490(_0x402a36,_0x41ead5);},'RDzST':function(_0x1d197e,_0x24067a,_0x4eed97,_0x36a257,_0x5f2cdd,_0x5b0deb,_0x4748f5){return _0x1d197e(_0x24067a,_0x4eed97,_0x36a257,_0x5f2cdd,_0x5b0deb,_0x4748f5);},'EynMH':_0x21466c(0x1ec),'qPsKb':_0x21466c(0x23c),'EebdK':'1|2|0|3|4','pIqFB':function(_0x27414a,_0x32223c,_0x5ab170,_0x2c9d7d,_0x51ad67,_0x56ca2f,_0x7dea77,_0x19ebe1){return _0x27414a(_0x32223c,_0x5ab170,_0x2c9d7d,_0x51ad67,_0x56ca2f,_0x7dea77,_0x19ebe1);},'RIwxU':function(_0x424de2,_0x2fb4ca,_0x40ec4f){return _0x424de2(_0x2fb4ca,_0x40ec4f);},'VehPf':_0x21466c(0x211),'HUBea':function(_0x115360){return _0x115360();},'ipaKQ':function(_0x337752,_0x3c4c80,_0x5f2228){return _0x337752(_0x3c4c80,_0x5f2228);},'ZkBmO':_0x21466c(0x24d),'MCiKy':function(_0x300587,_0x3ecf1c){return _0x300587(_0x3ecf1c);},'KJrAG':_0x21466c(0x1b3),'UBkJU':function(_0x157b64,_0x51a23b,_0x40d7aa){return _0x157b64(_0x51a23b,_0x40d7aa);},'QNzoL':_0x21466c(0x1d0),'gxYDf':'Tool\x20Installed','unqrX':_0x21466c(0x1c3),'rmwsN':'Whitelisted\x20browserstack','IsjQg':'SSL\x20Configured','AjQWX':function(_0x4b1418,_0xf50f88){return _0x4b1418+_0xf50f88;},'SEHYM':_0x21466c(0x1bb),'PLSnS':_0x21466c(0x225)};let _0x2dbf99,_0x4719b4;try{global_registry[_0x21466c(0x243)]=_0xe34b02[_0x21466c(0x24c)](uuidv4);!fs['existsSync'](_0xe34b02[_0x21466c(0x24c)](getCredentialsPath))&&(_0x4719b4=_0xe34b02[_0x21466c(0x20b)],logger[_0x21466c(0x1b8)](_0x4719b4),await _0xe34b02['sMuTX'](reportToGalactusAndSendToEDS,_0xa17ba,_0x2dbf99,_0x4719b4,messageTypes[_0x21466c(0x24b)],_0xe34b02[_0x21466c(0x1ca)],_0xe34b02[_0x21466c(0x1e8)],_0xe34b02['XEgvK']),process[_0x21466c(0x1a6)](0x1));_0xe34b02[_0x21466c(0x27f)](sendInstrumentationEvent,_0xa17ba,_0xe34b02[_0x21466c(0x1ca)],messageTypes[_0x21466c(0x1f8)],null,null,_0xa17ba);const _0x226d93=JSON[_0x21466c(0x1ba)](fs[_0x21466c(0x21e)](_0xe34b02[_0x21466c(0x24c)](getCredentialsPath)));global_registry[_0x21466c(0x283)]=_0x226d93['Browserstack'][_0x21466c(0x27c)],global_registry[_0x21466c(0x1d7)]=_0x226d93[_0x21466c(0x1ce)][_0x21466c(0x1b5)];const _0x3aa146=WS_ENDPOINT['replace'](_0xe34b02['VQsqY'],_0x226d93['Browserstack'][_0x21466c(0x27c)])[_0x21466c(0x19e)](_0xe34b02[_0x21466c(0x21a)],_0x226d93[_0x21466c(0x1ce)][_0x21466c(0x1b5)]),_0x87b593={};_0x87b593[_0x21466c(0x1dc)]=ws,_0x87b593[_0x21466c(0x1b1)]=0x36ee80,_0x2dbf99=new ReconnectingWebSocket(_0x3aa146,[],_0x87b593),global_registry[_0x21466c(0x22c)]=_0xe34b02[_0x21466c(0x1a8)](getAuthHeader,global_registry[_0x21466c(0x283)],global_registry[_0x21466c(0x1d7)]),await _0xe34b02[_0x21466c(0x1e9)](inputValidation,_0xa17ba,_0x2dbf99),logger[_0x21466c(0x238)](_0x21466c(0x219)+global_registry[_0x21466c(0x26f)]+'\x20region\x20-\x20'+global_registry[_0x21466c(0x1c0)]);let _0x53beaa=await _0xe34b02[_0x21466c(0x1de)](getCloudProviderObjectWithOutInit,global_registry[_0x21466c(0x26f)],global_registry['clusterName'],_0xe34b02[_0x21466c(0x1ae)],_0x2dbf99,webSocketUtils,_0xa17ba);const _0x4f6190=await _0x53beaa[_0x21466c(0x1bf)]();_0xe34b02[_0x21466c(0x1a8)](printResponse,_0xe34b02[_0x21466c(0x262)],_0x4f6190),_0x53beaa=await _0x53beaa[_0x21466c(0x257)]();let _0x4fd5cc=![];try{_0x4fd5cc=await _0x53beaa[_0x21466c(0x23b)]();}catch(_0xe44ee4){const _0x15f9a4=_0xe34b02[_0x21466c(0x20a)][_0x21466c(0x260)]('|');let _0x16c4e8=0x0;while(!![]){switch(_0x15f9a4[_0x16c4e8++]){case'0':logger[_0x21466c(0x1b8)](_0x4719b4);continue;case'1':_0x4719b4='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+_0x21466c(0x1f9)+global_registry[_0x21466c(0x1c0)]+_0x21466c(0x21b)+_0xe44ee4;continue;case'2':_0x4fd5cc=null;continue;case'3':_0x4719b4+='\x0a'+JSON['stringify'](_0xe44ee4[_0x21466c(0x227)]);continue;case'4':await _0xe34b02['pIqFB'](reportToGalactusAndSendToEDS,_0xa17ba,_0x2dbf99,_0x4719b4,messageTypes[_0x21466c(0x24b)],_0xe34b02[_0x21466c(0x1ca)],'cluster-check-failed-'+global_registry[_0x21466c(0x26f)],_0xe34b02[_0x21466c(0x203)]);continue;}break;}}_0x4fd5cc&&logger[_0x21466c(0x238)](_0x21466c(0x1f5)+global_registry['clusterName']+_0x21466c(0x27a));const _0xbd3da=await _0x53beaa[_0x21466c(0x28b)]();_0xe34b02[_0x21466c(0x25f)](printResponse,_0xe34b02['VehPf'],_0xbd3da);const _0x533bc6=await _0xe34b02[_0x21466c(0x241)](curlRequest);_0xe34b02['ipaKQ'](printResponse,_0xe34b02[_0x21466c(0x1d6)],_0x533bc6);const _0x20d2c8=await _0xe34b02[_0x21466c(0x1d5)](isTlsSupported,_0xe34b02[_0x21466c(0x233)]);_0xe34b02['UBkJU'](printResponse,_0xe34b02['QNzoL'],_0x20d2c8);const _0x43abda={};_0x43abda[_0x21466c(0x229)]=_0xe34b02[_0x21466c(0x218)],_0x43abda[_0x21466c(0x1b4)]=_0x4f6190;const _0x1712ca={};_0x1712ca['header']=_0xe34b02[_0x21466c(0x25c)],_0x1712ca['response']=_0xbd3da;const _0x24a6bb={};_0x24a6bb[_0x21466c(0x229)]=_0xe34b02[_0x21466c(0x251)],_0x24a6bb[_0x21466c(0x1b4)]=_0x533bc6;const _0x109d5b={};_0x109d5b[_0x21466c(0x229)]=_0xe34b02[_0x21466c(0x1be)],_0x109d5b['response']=_0x20d2c8;const _0x45a258=[_0x43abda,_0x1712ca,_0x24a6bb,_0x109d5b],_0x2bb241=await _0xe34b02[_0x21466c(0x19c)](generateReport,_0x45a258,_0x4fd5cc),_0x11e7cb=new Date(),_0x1a6702=_0x11e7cb['getUTCFullYear']()+'_'+_0xe34b02[_0x21466c(0x226)](_0x11e7cb[_0x21466c(0x212)](),0x1)+'_'+_0x11e7cb[_0x21466c(0x194)]()+'_'+_0x11e7cb[_0x21466c(0x220)]()+'_'+_0x11e7cb[_0x21466c(0x242)](),_0x3d3e35=_0x21466c(0x25a)+_0x1a6702+_0x21466c(0x209);fs[_0x21466c(0x198)](_0x3d3e35,_0x2bb241,_0xe34b02[_0x21466c(0x1a5)]),logger[_0x21466c(0x238)](_0x21466c(0x273)+_0x3d3e35),process[_0x21466c(0x1a6)](0x0);}catch(_0x24d6cd){let _0x490122=_0x21466c(0x276)+_0x24d6cd+'\x20';logger[_0x21466c(0x1b8)](_0x490122),_0x490122+='\x0a'+JSON[_0x21466c(0x244)](_0x24d6cd[_0x21466c(0x227)]),logger[_0x21466c(0x1fa)]('stack\x20trace\x20'+_0x24d6cd[_0x21466c(0x227)]);if(_0x2dbf99){const _0x3a6746={};_0x3a6746['type']=WS_EVENTS['LOG'],_0x3a6746[_0x21466c(0x19b)]=_0x490122,webSocketUtils[_0x21466c(0x217)](_0x2dbf99,_0x3a6746,_0xe34b02[_0x21466c(0x203)],!![]);}await webSocketUtils[_0x21466c(0x24e)](0x7d0);const _0x5e7057={};_0x5e7057[_0x21466c(0x1b8)]=_0x490122,await _0xe34b02[_0x21466c(0x1de)](sendInstrumentationEvent,_0xa17ba,_0xe34b02['CiRQp'],messageTypes['ERROR'],_0xe34b02[_0x21466c(0x1e7)],_0x5e7057,_0xa17ba),process[_0x21466c(0x1a6)](0x1);}};
1
+ const a17_0x30922c=a17_0x29c9;function a17_0x233b(){const _0x23f074=[']\x20status\x20:\x20','throwHttpErrors','WyIqn','yojsy','fuMhf','dummy-grid','INFO','../../config/constants','rlrWw','\x20\x20Code:\x20','===\x20Precheck\x20Report\x20-\x20','VHSSg','WebSocket','CvKvR','562347KciLrI','string','pre-check','\x20data\x20:\x20','wnYgC','GtoQD','NgMGe','\x20\x20Message:\x20','requestId','3122415ltceeJ','iTeEY','1446403ZBPTBb','Cluster\x20','Setting\x20cloud\x20provider\x20as\x20','stringify','syZoC','getUTCMonth','includes','Whitelisted\x20browserstack','password','clusterName','uBRms','iLtIa','JSqXM','EfhTH','DWcuZ','vShyE','znXIu','command','getUTCDate','header','response','is\x20already\x20present','unable\x20to\x20verify\x20if\x20cluster\x20`','lfRrV','2678934jIWUZa','NzyZk','rFREn','data','cloud-provider-not-supported','rABuV','rNxeO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','narqp','4BSilRn','length','HtbRw','cloudProvider','bstackAccesskey','ZzYHR','delay','wTOIt','https://','noebJ','iJKJb','SCcXV','pre_check','LOG','nIaYq','JFWPc','IFhrs','authHeader','username','forEach','readFileSync','reconnecting-websocket','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','grid-profile','UwAmu','MhmzK','397115PLqMWX','name','existsSync','YrRnK','info','vbMpE','ERROR','DvDHO','JiDZQ','sendEventToBackend','usage','argv','ZhvuD','Browserstack','Failed\x20in\x20pre-check!\x20Error:\x20','Cluster\x20details\x0a-----------------------\x0a','type','CHzpt','jmlgA','\x20\x20Stack:\x20','178390lpWPxM','handler','Hzynd','Tadbq','clusterRegion','options','.\x20Please\x20provide\x20all\x20required\x20arguments.','bvKrP','DlswN','Status:\x20','ohtvR','caVBQ','Message:\x20','accessResp','uSmJO','mAtHg','VdjCs','status','KoNNL','message','Hhwbr','vyrTa','checkAccess','error','TxslI','oeVOa','vmhSQ','stack\x20trace\x20','find','../../utils/utilityMethods','hIYZE','Pre-check\x20running\x20for\x20Cloud\x20-\x20','cluster-name','hAMvK','replace','N/A','debug','tKpGz','getUTCHours','bqeJC','TLSv1_2_client_method','jIuVj','ZnVPH','KXTyc','qnzQv','error\x20stack\x20:\x20','MBPUh','YTKrk','OmVfA','User\x20Access','pre-check-failed','Report\x20saved\x20in\x20','connectionTimeout','TRUwW','uufsX','MyUPF','push','help','builder','pre-check-grid-profile-empty','CIxjR','stack','Cluster\x20`','WVEgq','worgO','CLOUD_PROVIDER','IliSI','GukZl','RxQuD','nuFza','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','init','writeFileSync','parse','<PasswordPlaceholder>','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','`\x20already\x20exists','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','body','VPGvF','epilogue','desc','srrdC','`\x20is\x20present\x20in\x20region\x20`','uXgUr','getUTCFullYear','will\x20be\x20created','ZwQSD','../../utils/instrumentationUtils','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Error\x20Details:\x0a','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','zLHbO','eLfzb','EDiFu','uuid','rgYAY','isClusterPresent','VXvrv','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','join','cloud-provider','fXPuv','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','description','credential-not-found','code','EhEjZ','SSL\x20Configured','kdTpK','headers','gridProfile','pZEuJ','lSHpC','jRnTD','11247111neuMuP','bstackUsername','vGKzz','HEwWf','`\x20,error\x20:\x20','getUTCMinutes','kmvpf','Success','cnWse','method','\x20error\x20:\x20','vGyit','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','qpwuq','Failure','FEGml','0|2|3|4|1','region','AORAQ','pre-check-grid-called','XikDk','Vvcwq','GET','<UsernamePlaceholder>','8HkKrcc'];a17_0x233b=function(){return _0x23f074;};return a17_0x233b();}function a17_0x29c9(_0x4f1025,_0x872666){const _0x233b29=a17_0x233b();return a17_0x29c9=function(_0x29c98e,_0x6cb2f5){_0x29c98e=_0x29c98e-0xa6;let _0x57467e=_0x233b29[_0x29c98e];return _0x57467e;},a17_0x29c9(_0x4f1025,_0x872666);}(function(_0x21968f,_0x15c712){const _0x3af771=a17_0x29c9,_0x57228c=_0x21968f();while(!![]){try{const _0x46bb82=parseInt(_0x3af771(0x16c))/0x1+-parseInt(_0x3af771(0xd2))/0x2+parseInt(_0x3af771(0x175))/0x3+parseInt(_0x3af771(0x199))/0x4*(parseInt(_0x3af771(0xbe))/0x5)+parseInt(_0x3af771(0x18f))/0x6+parseInt(_0x3af771(0x177))/0x7*(-parseInt(_0x3af771(0x15d))/0x8)+-parseInt(_0x3af771(0x145))/0x9;if(_0x46bb82===_0x15c712)break;else _0x57228c['push'](_0x57228c['shift']());}catch(_0x10e6db){_0x57228c['push'](_0x57228c['shift']());}}}(a17_0x233b,0x8e789));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x30922c(0x131)),ReconnectingWebSocket=require(a17_0x30922c(0xb9)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x30922c(0xef)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x30922c(0x165)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x30922c(0x12a));exports[a17_0x30922c(0x188)]='grid',exports[a17_0x30922c(0x123)]=a17_0x30922c(0x135),exports[a17_0x30922c(0x10c)]=function(_0xc68587){const _0x2a6835=a17_0x30922c,_0x43aa3b={};_0x43aa3b['zLHbO']=_0x2a6835(0x118),_0x43aa3b['nIaYq']='string',_0x43aa3b[_0x2a6835(0x18e)]=_0x2a6835(0x12b),_0x43aa3b[_0x2a6835(0xd4)]=_0x2a6835(0x11f),_0x43aa3b[_0x2a6835(0x161)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x43aa3b[_0x2a6835(0x150)]='help';const _0x3f2810=_0x43aa3b,_0x4e19f0={};_0x4e19f0[_0x2a6835(0x13a)]=_0x3f2810[_0x2a6835(0x12e)],_0x4e19f0['type']=_0x3f2810[_0x2a6835(0xb2)];const _0x3cbe4f={};_0x3cbe4f[_0x2a6835(0x13a)]=_0x3f2810[_0x2a6835(0x18e)],_0x3cbe4f[_0x2a6835(0xce)]=_0x3f2810[_0x2a6835(0xb2)];const _0x3de6e6={};_0x3de6e6['description']=_0x3f2810[_0x2a6835(0xd4)],_0x3de6e6[_0x2a6835(0xce)]=_0x3f2810['nIaYq'];const _0xe8133f={};_0xe8133f[_0x2a6835(0x13a)]=_0x3f2810[_0x2a6835(0x161)],_0xe8133f[_0x2a6835(0xce)]=_0x3f2810[_0x2a6835(0xb2)];const _0x3cf135={};return _0x3cf135[_0x2a6835(0xf2)]=_0x4e19f0,_0x3cf135['cloud-provider']=_0x3cbe4f,_0x3cf135[_0x2a6835(0x156)]=_0x3de6e6,_0x3cf135[_0x2a6835(0xbb)]=_0xe8133f,_0xc68587[_0x2a6835(0xc8)](HELP_HEADER_MESSAGE[_0x2a6835(0xb0)])[_0x2a6835(0x122)](HELP_FOOTER_MESSAGE)[_0x2a6835(0xd7)](_0x3cf135)['help'](_0x3f2810[_0x2a6835(0x150)])[_0x2a6835(0xc9)];};async function inputValidation(_0x1b9ef6,_0x2176d4){const _0x5cbc79=a17_0x30922c,_0x1e5513={'wnYgC':function(_0x43898f,_0xefa335){return _0x43898f+_0xefa335;},'JiDZQ':_0x5cbc79(0x14c),'wTOIt':'Failure','CvKvR':function(_0x3a50e1,_0x439213){return _0x3a50e1||_0x439213;},'RxQuD':_0x5cbc79(0xf5),'nuFza':_0x5cbc79(0x12c),'iXMNr':_0x5cbc79(0x139),'Vvcwq':_0x5cbc79(0x118),'KXTyc':_0x5cbc79(0x16d),'noebJ':_0x5cbc79(0x12b),'ThcOH':_0x5cbc79(0x11f),'lyYBX':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','AORAQ':_0x5cbc79(0x10b),'Hhwbr':_0x5cbc79(0x156),'WyIqn':_0x5cbc79(0x18c),'cnWse':_0x5cbc79(0x128),'worgO':'cluster-name','bqeJC':_0x5cbc79(0xe9),'rFREn':function(_0x3e4889,_0x44dcec){return _0x3e4889===_0x44dcec;},'vNbkg':_0x5cbc79(0xfb),'ZhvuD':_0x5cbc79(0x14b),'iJKJb':_0x5cbc79(0x147),'XMgOl':_0x5cbc79(0xb3),'ZwQSD':_0x5cbc79(0x194),'hAMvK':'WjjZp','IliSI':'cloud-provider','jRnTD':function(_0x5073a8,_0x35b357){return _0x5073a8!==_0x35b357;},'HtbRw':_0x5cbc79(0x148),'zsYqR':function(_0x53bbd1,_0x4c368f){return _0x53bbd1>_0x4c368f;},'UwAmu':function(_0x4f87db,_0x595334){return _0x4f87db!==_0x595334;},'CAEfK':_0x5cbc79(0x183),'EhEjZ':'VfGoN','lSHpC':function(_0x161c80,_0x4ac527,_0xcc9c52,_0x2633f1,_0x204ea6,_0x5eb6e4,_0x30f932,_0x876c16){return _0x161c80(_0x4ac527,_0xcc9c52,_0x2633f1,_0x204ea6,_0x5eb6e4,_0x30f932,_0x876c16);},'uSmJO':_0x5cbc79(0x158),'vyrTa':'pre-check-cluster-args-not-passed','Wqfbt':function(_0xc97938,_0x288c5e){return _0xc97938!==_0x288c5e;},'SCcXV':_0x5cbc79(0xd5),'jmlgA':_0x5cbc79(0x11d),'dwNNk':function(_0x562f0b,_0xb0e46e,_0x30afbb,_0x2fd131,_0x2cdd61,_0x1f4ea7,_0x1a9d83,_0x197755){return _0x562f0b(_0xb0e46e,_0x30afbb,_0x2fd131,_0x2cdd61,_0x1f4ea7,_0x1a9d83,_0x197755);},'vShyE':_0x5cbc79(0x193),'GtoQD':function(_0xa44c1,_0x596cf5){return _0xa44c1===_0x596cf5;},'ohtvR':'iiBkZ','VLtpP':'oslhf','NgMGe':_0x5cbc79(0x154),'bvKrP':_0x5cbc79(0x15b),'kBqns':function(_0x144f22,_0x55d81b,_0x29cb75){return _0x144f22(_0x55d81b,_0x29cb75);},'caVBQ':function(_0x6a31fa,_0x5f5d69,_0x2e58c2,_0x3a03ad,_0x5a207a,_0x1fd837){return _0x6a31fa(_0x5f5d69,_0x2e58c2,_0x3a03ad,_0x5a207a,_0x1fd837);},'WVEgq':_0x5cbc79(0x16e),'Sihlp':_0x5cbc79(0xbb),'DWcuZ':function(_0x3a0ed2,_0x30a5ee){return _0x3a0ed2===_0x30a5ee;},'YrRnK':'Xroqk','DvDHO':_0x5cbc79(0xa9),'mAtHg':function(_0x3083b9,_0xc384d9){return _0x3083b9(_0xc384d9);},'CIxjR':function(_0x43ae9e,_0x135478){return _0x43ae9e===_0x135478;},'CHzpt':_0x5cbc79(0xf0),'EJkyz':'HXCgd','fXPuv':_0x5cbc79(0x10d),'kdTpK':_0x5cbc79(0x162),'syZoC':'XaSZM','NzyZk':'Grid\x20profile\x20fetched\x20for\x20pre-check','IFhrs':function(_0x316b5d,_0x11d154){return _0x316b5d!==_0x11d154;},'srrdC':'mZZVO','YTKrk':_0x5cbc79(0x132),'oeVOa':_0x5cbc79(0xea),'VdjCs':function(_0x5457ba,_0x11c19b,_0x3da98d,_0x444f0c,_0x5bac97,_0x16b894,_0x2f86a8,_0x4e222c){return _0x5457ba(_0x11c19b,_0x3da98d,_0x444f0c,_0x5bac97,_0x16b894,_0x2f86a8,_0x4e222c);}};let _0x429c12;try{if(_0x1e5513[_0x5cbc79(0x191)](_0x1e5513['vNbkg'],_0x1e5513['vNbkg'])){if(_0x1b9ef6[_0x5cbc79(0x180)]||_0x1b9ef6[_0x5cbc79(0xa7)]||_0x1b9ef6[_0x5cbc79(0x156)]){if(_0x1e5513['rFREn'](_0x1e5513[_0x5cbc79(0xca)],_0x1e5513[_0x5cbc79(0xae)]))_0x203597['error'](_0x5cbc79(0xff)+_0xc26924[_0x5cbc79(0xe9)]['stack']);else{const _0x2123fa=[];if(!_0x1b9ef6['clusterName']){if(_0x1e5513['rFREn'](_0x1e5513['XMgOl'],_0x1e5513[_0x5cbc79(0x129)])){const {header:_0x488b8f,response:_0x49da7a}=_0x341fad,{status:_0x343a1b,data:_0x11e58d,error:_0x45337b}=_0x49da7a;_0x2fb0b7+=_0x488b8f+'\x20#'+_0x1e5513[_0x5cbc79(0x170)](_0x2366a4,0x1)+'\x0a',_0x4daf2e+=_0x5cbc79(0xdb)+(_0x343a1b?_0x1e5513[_0x5cbc79(0xc6)]:_0x1e5513[_0x5cbc79(0xab)])+'\x0a',_0x49216d+=_0x5cbc79(0xde)+_0x1e5513[_0x5cbc79(0x16b)](_0x11e58d,_0x1e5513['RxQuD'])+'\x0a',_0x45337b&&(_0x136619+=_0x1e5513[_0x5cbc79(0x117)],_0xf813df+=_0x5cbc79(0x173)+(_0x45337b[_0x5cbc79(0xe5)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a',_0x51eff5+='\x20\x20Code:\x20'+(_0x45337b[_0x5cbc79(0x13c)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a',_0x24dcb1+=_0x5cbc79(0xd1)+(_0x45337b[_0x5cbc79(0x10f)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a'),_0x4d0caa+='\x0a\x0a';}else _0x2123fa[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0x112)]);};!_0x1b9ef6[_0x5cbc79(0xa7)]&&(_0x1e5513[_0x5cbc79(0x191)](_0x1e5513[_0x5cbc79(0xf3)],_0x1e5513[_0x5cbc79(0xf3)])?_0x2123fa[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0x114)]):(_0x2c0061['info'](_0x5cbc79(0x179)+_0x5876cb['CLOUD_PROVIDER']+'\x20'),_0x2c3c03[_0x5cbc79(0xa7)]=_0x306d94[_0x5cbc79(0x113)]));;!_0x1b9ef6[_0x5cbc79(0x156)]&&(_0x1e5513[_0x5cbc79(0x144)](_0x1e5513['HtbRw'],_0x1e5513[_0x5cbc79(0xa6)])?(_0x541d79[_0x5cbc79(0xc2)]('['+_0xa51a50+_0x5cbc79(0x15e)+_0x133bac[_0x5cbc79(0xe3)]+_0x5cbc79(0x16f)+_0x5934b0[_0x5cbc79(0x192)]+_0x5cbc79(0x14f)+_0x32a91c['error']),_0x46542d[_0x5cbc79(0xe9)]&&_0x1bdbd2[_0x5cbc79(0xe9)](_0x5cbc79(0xff)+_0x2f9669['error']['stack'])):_0x2123fa[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0xe6)]));;_0x1e5513['zsYqR'](_0x2123fa[_0x5cbc79(0x19a)],0x0)&&(_0x1e5513[_0x5cbc79(0xbc)](_0x1e5513['CAEfK'],_0x1e5513[_0x5cbc79(0x13d)])?(_0x429c12='Missing\x20required\x20arguments:\x20'+_0x2123fa[_0x5cbc79(0x136)](',\x20')+_0x5cbc79(0xd8),await _0x1e5513[_0x5cbc79(0x143)](reportToGalactusAndSendToEDS,_0x1b9ef6,_0x2176d4,_0x429c12,messageTypes[_0x5cbc79(0xc4)],_0x1e5513[_0x5cbc79(0xe0)],_0x1e5513[_0x5cbc79(0xe7)],_0x1e5513[_0x5cbc79(0xf9)]),logger[_0x5cbc79(0xe9)](_0x429c12),process[_0x5cbc79(0x197)](0x1)):(_0x2c96a8[_0x5cbc79(0xe9)](_0x1e5513['iXMNr']),_0x4e6601[_0x5cbc79(0x197)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x5cbc79(0x17d)](_0x1b9ef6[_0x5cbc79(0xa7)]['toLowerCase']())){if(_0x1e5513['Wqfbt'](_0x1e5513[_0x5cbc79(0xaf)],_0x1e5513[_0x5cbc79(0xaf)]))_0x1fec94=_0x227cfa;else{_0x429c12=_0x1e5513[_0x5cbc79(0xd0)],await _0x1e5513['dwNNk'](reportToGalactusAndSendToEDS,_0x1b9ef6,_0x2176d4,_0x429c12,messageTypes['ERROR'],_0x1e5513[_0x5cbc79(0xe0)],_0x1e5513[_0x5cbc79(0x186)],_0x1e5513[_0x5cbc79(0xf9)]),logger[_0x5cbc79(0xe9)](_0x429c12);if(!_0x1b9ef6[_0x5cbc79(0xa7)]){if(_0x1e5513[_0x5cbc79(0x171)](_0x1e5513[_0x5cbc79(0xdc)],_0x1e5513['VLtpP'])){const _0x194175={};_0x194175[_0x5cbc79(0x13a)]=_0x1e5513[_0x5cbc79(0x15a)],_0x194175[_0x5cbc79(0xce)]=_0x1e5513[_0x5cbc79(0xfd)];const _0x24b509={};_0x24b509[_0x5cbc79(0x13a)]=_0x1e5513[_0x5cbc79(0xad)],_0x24b509[_0x5cbc79(0xce)]=_0x1e5513[_0x5cbc79(0xfd)];const _0x3ee27e={};_0x3ee27e[_0x5cbc79(0x13a)]=_0x1e5513['ThcOH'],_0x3ee27e['type']=_0x1e5513[_0x5cbc79(0xfd)];const _0x178c9f={};_0x178c9f['description']=_0x1e5513['lyYBX'],_0x178c9f[_0x5cbc79(0xce)]=_0x1e5513[_0x5cbc79(0xfd)];const _0x307d8a={};return _0x307d8a[_0x5cbc79(0xf2)]=_0x194175,_0x307d8a['cloud-provider']=_0x24b509,_0x307d8a[_0x5cbc79(0x156)]=_0x3ee27e,_0x307d8a['grid-profile']=_0x178c9f,_0x1bbe63[_0x5cbc79(0xc8)](_0x5cf7eb[_0x5cbc79(0xb0)])[_0x5cbc79(0x122)](_0x15665b)[_0x5cbc79(0xd7)](_0x307d8a)[_0x5cbc79(0x10b)](_0x1e5513[_0x5cbc79(0x157)])[_0x5cbc79(0xc9)];}else logger[_0x5cbc79(0xc2)](_0x5cbc79(0x179)+DEFAULT_CLUSTER_DETAILS[_0x5cbc79(0x113)]+'\x20'),_0x1b9ef6['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'];}}}global_registry[_0x5cbc79(0x180)]=_0x1b9ef6[_0x5cbc79(0x180)],global_registry[_0x5cbc79(0xa7)]=_0x1b9ef6['cloudProvider'],global_registry[_0x5cbc79(0xd6)]=_0x1b9ef6[_0x5cbc79(0x156)];}}else{if(_0x1b9ef6[_0x5cbc79(0x141)]){if(_0x1e5513[_0x5cbc79(0xbc)](_0x1e5513[_0x5cbc79(0x172)],_0x1e5513[_0x5cbc79(0x172)]))_0x2afb1d[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0xe6)]);else{global_registry['gridProfile']=_0x1b9ef6[_0x5cbc79(0x141)],logger[_0x5cbc79(0xf6)]('grid\x20profile\x20flow\x20'+_0x1b9ef6['gridProfile']);const _0xac8099=_0x5cbc79(0xac)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x5972ee={};_0x5972ee[_0x5cbc79(0x14e)]=_0x1e5513[_0x5cbc79(0xd9)],_0x5972ee[_0x5cbc79(0x140)]=global_registry['authHeader'],_0x5972ee[_0x5cbc79(0x15f)]=![];const _0x49b378=_0x5972ee,_0x4cf2cf=await _0x1e5513['kBqns'](got,_0xac8099,_0x49b378),_0x5459ff=await _0x1e5513[_0x5cbc79(0xdd)](responseValidation,_0x4cf2cf,_0x1e5513[_0x5cbc79(0x111)],_0x1e5513['Sihlp'],_0x1b9ef6,_0x2176d4);let _0xffee66={};if(_0x1e5513[_0x5cbc79(0x185)](_0x5459ff,0xc8)){if(_0x1e5513['DWcuZ'](_0x1e5513[_0x5cbc79(0xc1)],_0x1e5513[_0x5cbc79(0xc5)]))_0x40afe4[_0x5cbc79(0xc2)](_0x5cbc79(0x110)+_0x479714[_0x5cbc79(0x180)]+'`\x20already\x20exists');else{const _0x50f555=JSON[_0x5cbc79(0x11b)](_0x4cf2cf[_0x5cbc79(0x120)]),_0x23c9c9=_0x50f555[_0x5cbc79(0xee)](_0x44a9d7=>_0x44a9d7[_0x5cbc79(0xbf)]===_0x1b9ef6[_0x5cbc79(0x141)])||null;_0x1e5513[_0x5cbc79(0xe1)](isUndefined,_0x23c9c9)?_0x1e5513[_0x5cbc79(0x10e)](_0x1e5513[_0x5cbc79(0xcf)],_0x1e5513['EJkyz'])?_0x5d35fb+=_0x5cbc79(0x178)+_0x50d175[_0x5cbc79(0x180)]+_0x5cbc79(0xba):(_0x429c12='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x1b9ef6[_0x5cbc79(0x141)]+_0x5cbc79(0x12d),await _0x1e5513[_0x5cbc79(0x143)](reportToGalactusAndSendToEDS,_0x1b9ef6,_0x2176d4,_0x429c12,messageTypes[_0x5cbc79(0xc4)],_0x1e5513['uSmJO'],_0x1e5513[_0x5cbc79(0x138)],_0x1e5513['bqeJC']),logger[_0x5cbc79(0xe9)](_0x429c12),process[_0x5cbc79(0x197)](0x1)):_0x1e5513['CIxjR'](_0x1e5513[_0x5cbc79(0x13f)],_0x1e5513['kdTpK'])?_0xffee66=_0x23c9c9:_0x53e4a8+=_0x5cbc79(0x178)+_0x4e6ed2[_0x5cbc79(0x180)]+'\x20'+(_0x31ff2f?_0x1e5513[_0x5cbc79(0x160)]:_0x1e5513[_0x5cbc79(0x14d)])+'\x0a\x0a';}}else _0x1e5513[_0x5cbc79(0xbc)](_0x1e5513[_0x5cbc79(0x17b)],_0x1e5513['syZoC'])?(_0xf4fea6+=_0x1e5513[_0x5cbc79(0x117)],_0x17986e+='\x20\x20Message:\x20'+(_0x4fb975[_0x5cbc79(0xe5)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a',_0x36b55a+='\x20\x20Code:\x20'+(_0x562fe4[_0x5cbc79(0x13c)]||_0x1e5513['RxQuD'])+'\x0a',_0x8bf662+=_0x5cbc79(0xd1)+(_0x42da95[_0x5cbc79(0x10f)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a'):process['exit'](0x1);const _0x3b3c88={};_0x3b3c88[_0x5cbc79(0xce)]=WS_EVENTS[_0x5cbc79(0xb1)],_0x3b3c88[_0x5cbc79(0xe5)]=_0x1e5513[_0x5cbc79(0x190)],webSocketUtils[_0x5cbc79(0xc7)](_0x2176d4,_0x3b3c88),global_registry[_0x5cbc79(0xa7)]=_0xffee66['cloudProvider'],global_registry[_0x5cbc79(0xd6)]=_0xffee66[_0x5cbc79(0x156)],global_registry[_0x5cbc79(0x180)]=_0xffee66[_0x5cbc79(0x180)];}}else _0x1e5513[_0x5cbc79(0xb4)](_0x1e5513[_0x5cbc79(0x124)],_0x1e5513[_0x5cbc79(0x124)])?_0x4d4087[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0x112)]):(logger['error'](_0x1e5513['iXMNr']),process[_0x5cbc79(0x197)](0x1));}}else{const _0x3e256={};_0x3e256['type']=_0x3aa9f5[_0x5cbc79(0xb1)],_0x3e256[_0x5cbc79(0xe5)]=_0x2c8287,_0x4f61e1[_0x5cbc79(0xc7)](_0x5ac1b6,_0x3e256,_0x1e5513[_0x5cbc79(0xf9)],!![]);}}catch(_0x4d77c2){_0x1e5513[_0x5cbc79(0x171)](_0x1e5513[_0x5cbc79(0x101)],_0x1e5513[_0x5cbc79(0xeb)])?_0xd10946['exit'](0x1):(_0x429c12=_0x5cbc79(0x151)+_0x4d77c2+':\x20'+_0x4d77c2[_0x5cbc79(0x10f)],logger['error'](_0x429c12),await _0x1e5513[_0x5cbc79(0xe2)](reportToGalactusAndSendToEDS,_0x1b9ef6,_0x2176d4,_0x429c12,messageTypes[_0x5cbc79(0xc4)],_0x1e5513[_0x5cbc79(0xe0)],_0x1e5513[_0x5cbc79(0x186)],_0x1e5513[_0x5cbc79(0xf9)]),process[_0x5cbc79(0x197)](0x1));}}function printResponse(_0x13ff48,_0x15e494){const _0x1c9a17=a17_0x30922c,_0x541e19={};_0x541e19['lZkHO']=_0x1c9a17(0x137),_0x541e19['Txizk']=function(_0x47785b,_0x4ef501){return _0x47785b!==_0x4ef501;},_0x541e19[_0x1c9a17(0xbd)]='FUNOl';const _0x1c43a1=_0x541e19;logger[_0x1c9a17(0xc2)]('['+_0x13ff48+_0x1c9a17(0x15e)+_0x15e494[_0x1c9a17(0xe3)]+_0x1c9a17(0x16f)+_0x15e494['data']+_0x1c9a17(0x14f)+_0x15e494['error']),_0x15e494['error']&&(_0x1c43a1['Txizk'](_0x1c43a1['MhmzK'],_0x1c43a1['MhmzK'])?_0x1c4e35[_0x1c9a17(0x10a)](_0x1c43a1['lZkHO']):logger['error'](_0x1c9a17(0xff)+_0x15e494['error']['stack']));}async function generateReport(_0x4870d6,_0x4a5058){const _0x3a4b47=a17_0x30922c,_0x2a1ac3={'pZEuJ':function(_0x3fed73,_0x17fb42){return _0x3fed73+_0x17fb42;},'Hujja':'Success','LmByE':_0x3a4b47(0x153),'CLohd':function(_0x41effd,_0x210649){return _0x41effd||_0x210649;},'rNxeO':_0x3a4b47(0xf5),'gTwQn':_0x3a4b47(0x12c),'ZnVPH':_0x3a4b47(0xcd),'znXIu':function(_0x4c993a,_0x1bafe8){return _0x4c993a!=_0x1bafe8;},'KoNNL':_0x3a4b47(0x18c),'rlrWw':_0x3a4b47(0x128),'GukZl':function(_0x5e0cad){return _0x5e0cad();}};let _0x54683a=_0x3a4b47(0x168)+global_registry[_0x3a4b47(0xa7)]+'\x20===\x0a\x0a';return _0x4870d6[_0x3a4b47(0xb7)]((_0x2a744e,_0x5753ea)=>{const _0x49d0a4=_0x3a4b47,{header:_0xf53084,response:_0x2c8ac3}=_0x2a744e,{status:_0x4b3949,data:_0x56f40b,error:_0x274184}=_0x2c8ac3;_0x54683a+=_0xf53084+'\x20#'+_0x2a1ac3[_0x49d0a4(0x142)](_0x5753ea,0x1)+'\x0a',_0x54683a+=_0x49d0a4(0xdb)+(_0x4b3949?_0x2a1ac3['Hujja']:_0x2a1ac3['LmByE'])+'\x0a',_0x54683a+=_0x49d0a4(0xde)+_0x2a1ac3['CLohd'](_0x56f40b,_0x2a1ac3[_0x49d0a4(0x195)])+'\x0a',_0x274184&&(_0x54683a+=_0x2a1ac3['gTwQn'],_0x54683a+=_0x49d0a4(0x173)+(_0x274184[_0x49d0a4(0xe5)]||_0x2a1ac3[_0x49d0a4(0x195)])+'\x0a',_0x54683a+=_0x49d0a4(0x167)+(_0x274184[_0x49d0a4(0x13c)]||_0x2a1ac3[_0x49d0a4(0x195)])+'\x0a',_0x54683a+=_0x49d0a4(0xd1)+(_0x274184[_0x49d0a4(0x10f)]||_0x2a1ac3[_0x49d0a4(0x195)])+'\x0a'),_0x54683a+='\x0a\x0a';}),_0x54683a+=_0x2a1ac3[_0x3a4b47(0xfc)],_0x2a1ac3[_0x3a4b47(0x187)](_0x4a5058,null)?_0x54683a+='Cluster\x20'+global_registry[_0x3a4b47(0x180)]+'\x20'+(_0x4a5058?_0x2a1ac3[_0x3a4b47(0xe4)]:_0x2a1ac3[_0x3a4b47(0x166)])+'\x0a\x0a':_0x54683a+=_0x3a4b47(0x178)+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x54683a+=_0x2a1ac3[_0x3a4b47(0x115)](getSystemMetaData),_0x54683a;};exports[a17_0x30922c(0xd3)]=async function(_0x42e09e){const _0x4e2dde=a17_0x30922c,_0x5b00bd={'VXvrv':function(_0x54fa78){return _0x54fa78();},'DlswN':_0x4e2dde(0x196),'tKpGz':function(_0x213ccd,_0x26016f,_0x4e8752,_0x35c8d1,_0x297360,_0x4b6e9b,_0x52bc4d,_0x11edcf){return _0x213ccd(_0x26016f,_0x4e8752,_0x35c8d1,_0x297360,_0x4b6e9b,_0x52bc4d,_0x11edcf);},'narqp':_0x4e2dde(0x158),'aooft':_0x4e2dde(0x13b),'EDiFu':'error','vmhSQ':function(_0xea91af,_0x1b7279,_0x583377,_0x35f303,_0x3b80f6,_0x483247,_0x553e7d){return _0xea91af(_0x1b7279,_0x583377,_0x35f303,_0x3b80f6,_0x483247,_0x553e7d);},'OmVfA':_0x4e2dde(0x15c),'IHYVW':_0x4e2dde(0x11c),'VPGvF':function(_0x5e7d12,_0x547373,_0x5f014d){return _0x5e7d12(_0x547373,_0x5f014d);},'iLtIa':_0x4e2dde(0x163),'XikDk':'toolInstalledResp','MyUPF':_0x4e2dde(0x155),'uBRms':function(_0x3a61e7,_0x31aee8,_0x1cf8e3){return _0x3a61e7(_0x31aee8,_0x1cf8e3);},'uufsX':_0x4e2dde(0xdf),'EfhTH':function(_0x40faa4,_0x4a9d91,_0x5b1165){return _0x40faa4(_0x4a9d91,_0x5b1165);},'HmbUg':'isTrialGridAccessible','vbMpE':function(_0x1103c6,_0x4f8f16){return _0x1103c6(_0x4f8f16);},'qpwuq':_0x4e2dde(0xfa),'qnzQv':'isTls1_2_SUPPORTED','VHSSg':'Tool\x20Installed','HFIpp':_0x4e2dde(0x103),'jZChN':_0x4e2dde(0x17e),'uXgUr':_0x4e2dde(0x13e),'eLfzb':function(_0x153bbe,_0x5eb1f5,_0x2afbba){return _0x153bbe(_0x5eb1f5,_0x2afbba);},'MBPUh':function(_0x30ccbe,_0x19f556){return _0x30ccbe+_0x19f556;},'TRUwW':'utf-8','iTeEY':_0x4e2dde(0x104)};let _0x46a13b,_0x3383dd;try{global_registry[_0x4e2dde(0x174)]=_0x5b00bd[_0x4e2dde(0x134)](uuidv4);!fs[_0x4e2dde(0xc0)](_0x5b00bd[_0x4e2dde(0x134)](getCredentialsPath))&&(_0x3383dd=_0x5b00bd[_0x4e2dde(0xda)],logger['error'](_0x3383dd),await _0x5b00bd[_0x4e2dde(0xf7)](reportToGalactusAndSendToEDS,_0x42e09e,_0x46a13b,_0x3383dd,messageTypes[_0x4e2dde(0xc4)],_0x5b00bd[_0x4e2dde(0x198)],_0x5b00bd['aooft'],_0x5b00bd['EDiFu']),process[_0x4e2dde(0x197)](0x1));_0x5b00bd[_0x4e2dde(0xec)](sendInstrumentationEvent,_0x42e09e,_0x5b00bd['narqp'],messageTypes[_0x4e2dde(0x164)],null,null,_0x42e09e);const _0x4b9a26=JSON[_0x4e2dde(0x11b)](fs[_0x4e2dde(0xb8)](_0x5b00bd['VXvrv'](getCredentialsPath)));global_registry[_0x4e2dde(0x146)]=_0x4b9a26['Browserstack']['username'],global_registry[_0x4e2dde(0xa8)]=_0x4b9a26[_0x4e2dde(0xcb)][_0x4e2dde(0x17f)];const _0x261506=WS_ENDPOINT[_0x4e2dde(0xf4)](_0x5b00bd[_0x4e2dde(0x102)],_0x4b9a26[_0x4e2dde(0xcb)][_0x4e2dde(0xb6)])[_0x4e2dde(0xf4)](_0x5b00bd['IHYVW'],_0x4b9a26[_0x4e2dde(0xcb)]['password']),_0x3658f0={};_0x3658f0[_0x4e2dde(0x16a)]=ws,_0x3658f0[_0x4e2dde(0x106)]=0x36ee80,_0x46a13b=new ReconnectingWebSocket(_0x261506,[],_0x3658f0),global_registry[_0x4e2dde(0xb5)]=_0x5b00bd['VPGvF'](getAuthHeader,global_registry[_0x4e2dde(0x146)],global_registry[_0x4e2dde(0xa8)]),await _0x5b00bd[_0x4e2dde(0x121)](inputValidation,_0x42e09e,_0x46a13b),logger[_0x4e2dde(0xc2)](_0x4e2dde(0xf1)+global_registry[_0x4e2dde(0xa7)]+'\x20region\x20-\x20'+global_registry[_0x4e2dde(0xd6)]);let _0x445de0=await _0x5b00bd[_0x4e2dde(0xec)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x4e2dde(0x180)],_0x5b00bd[_0x4e2dde(0x182)],_0x46a13b,webSocketUtils,_0x42e09e);const _0xad2a47=await _0x445de0['isCliToolInstalled']();_0x5b00bd[_0x4e2dde(0x121)](printResponse,_0x5b00bd[_0x4e2dde(0x159)],_0xad2a47),_0x445de0=await _0x445de0[_0x4e2dde(0x119)]();let _0x126a2c=![];try{_0x126a2c=await _0x445de0[_0x4e2dde(0x133)]();}catch(_0x7a6d0e){const _0xaa7171=_0x5b00bd[_0x4e2dde(0x109)]['split']('|');let _0x5a54ef=0x0;while(!![]){switch(_0xaa7171[_0x5a54ef++]){case'0':_0x3383dd=_0x4e2dde(0x18d)+global_registry[_0x4e2dde(0x180)]+_0x4e2dde(0x125)+global_registry['clusterRegion']+_0x4e2dde(0x149)+_0x7a6d0e;continue;case'1':await _0x5b00bd[_0x4e2dde(0xf7)](reportToGalactusAndSendToEDS,_0x42e09e,_0x46a13b,_0x3383dd,messageTypes['ERROR'],_0x5b00bd['narqp'],'cluster-check-failed-'+global_registry[_0x4e2dde(0xa7)],_0x5b00bd[_0x4e2dde(0x130)]);continue;case'2':_0x126a2c=null;continue;case'3':logger[_0x4e2dde(0xe9)](_0x3383dd);continue;case'4':_0x3383dd+='\x0a'+JSON[_0x4e2dde(0x17a)](_0x7a6d0e[_0x4e2dde(0x10f)]);continue;}break;}}_0x126a2c&&logger['info']('Cluster\x20`'+global_registry['clusterName']+_0x4e2dde(0x11e));const _0x2e73f0=await _0x445de0[_0x4e2dde(0xe8)]();_0x5b00bd[_0x4e2dde(0x181)](printResponse,_0x5b00bd[_0x4e2dde(0x108)],_0x2e73f0);const _0x2b8e65=await _0x5b00bd['VXvrv'](curlRequest);_0x5b00bd[_0x4e2dde(0x184)](printResponse,_0x5b00bd['HmbUg'],_0x2b8e65);const _0x1bd71e=await _0x5b00bd[_0x4e2dde(0xc3)](isTlsSupported,_0x5b00bd[_0x4e2dde(0x152)]);_0x5b00bd['EfhTH'](printResponse,_0x5b00bd[_0x4e2dde(0xfe)],_0x1bd71e);const _0x1ba73c={};_0x1ba73c['header']=_0x5b00bd[_0x4e2dde(0x169)],_0x1ba73c[_0x4e2dde(0x18b)]=_0xad2a47;const _0x5e7189={};_0x5e7189[_0x4e2dde(0x18a)]=_0x5b00bd['HFIpp'],_0x5e7189[_0x4e2dde(0x18b)]=_0x2e73f0;const _0x5ae199={};_0x5ae199['header']=_0x5b00bd['jZChN'],_0x5ae199[_0x4e2dde(0x18b)]=_0x2b8e65;const _0x3dd01d={};_0x3dd01d['header']=_0x5b00bd[_0x4e2dde(0x126)],_0x3dd01d['response']=_0x1bd71e;const _0x57ad02=[_0x1ba73c,_0x5e7189,_0x5ae199,_0x3dd01d],_0x509635=await _0x5b00bd[_0x4e2dde(0x12f)](generateReport,_0x57ad02,_0x126a2c),_0x1ac978=new Date(),_0xc392c4=_0x1ac978[_0x4e2dde(0x127)]()+'_'+_0x5b00bd[_0x4e2dde(0x100)](_0x1ac978[_0x4e2dde(0x17c)](),0x1)+'_'+_0x1ac978[_0x4e2dde(0x189)]()+'_'+_0x1ac978[_0x4e2dde(0xf8)]()+'_'+_0x1ac978[_0x4e2dde(0x14a)](),_0x534321='log/report_'+_0xc392c4+'.txt';fs[_0x4e2dde(0x11a)](_0x534321,_0x509635,_0x5b00bd[_0x4e2dde(0x107)]),logger[_0x4e2dde(0xc2)](_0x4e2dde(0x105)+_0x534321),process[_0x4e2dde(0x197)](0x0);}catch(_0x3e4627){let _0x575af0=_0x4e2dde(0xcc)+_0x3e4627+'\x20';logger[_0x4e2dde(0xe9)](_0x575af0),_0x575af0+='\x0a'+JSON[_0x4e2dde(0x17a)](_0x3e4627[_0x4e2dde(0x10f)]),logger[_0x4e2dde(0xf6)](_0x4e2dde(0xed)+_0x3e4627[_0x4e2dde(0x10f)]);if(_0x46a13b){const _0x546f66={};_0x546f66[_0x4e2dde(0xce)]=WS_EVENTS['LOG'],_0x546f66['message']=_0x575af0,webSocketUtils[_0x4e2dde(0xc7)](_0x46a13b,_0x546f66,_0x5b00bd[_0x4e2dde(0x130)],!![]);}await webSocketUtils[_0x4e2dde(0xaa)](0x7d0);const _0x34df26={};_0x34df26[_0x4e2dde(0xe9)]=_0x575af0,await _0x5b00bd[_0x4e2dde(0xec)](sendInstrumentationEvent,_0x42e09e,_0x5b00bd[_0x4e2dde(0x198)],messageTypes[_0x4e2dde(0xc4)],_0x5b00bd[_0x4e2dde(0x176)],_0x34df26,_0x42e09e),process[_0x4e2dde(0x197)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x59f7(_0x38afaa,_0x4427f7){const _0x56d1f4=a18_0x56d1();return a18_0x59f7=function(_0x59f7e0,_0x29adac){_0x59f7e0=_0x59f7e0-0x174;let _0x48a700=_0x56d1f4[_0x59f7e0];return _0x48a700;},a18_0x59f7(_0x38afaa,_0x4427f7);}function a18_0x56d1(){const _0x59b860=['60tVKHha','104uMjFmp','31984740zLBnze','../config/constants','desc','recommendCommands','142038RWnFat','help','commandDir','1291239FhzwcZ','156DVVKeN','start','usage','demandCommand','Start\x20an\x20existing\x20Automation\x20grid.','handler','builder','1304188GBmzgT','18376tZdzlY','start_commands','titVV','1163036wMGzmr','2415960yFnaUQ','lTJEu'];a18_0x56d1=function(){return _0x59b860;};return a18_0x56d1();}const a18_0x17e3fc=a18_0x59f7;(function(_0x20be88,_0x3d99ea){const _0x12091f=a18_0x59f7,_0x219b34=_0x20be88();while(!![]){try{const _0x77741e=parseInt(_0x12091f(0x177))/0x1*(parseInt(_0x12091f(0x187))/0x2)+parseInt(_0x12091f(0x186))/0x3+parseInt(_0x12091f(0x176))/0x4+parseInt(_0x12091f(0x17b))/0x5+parseInt(_0x12091f(0x17d))/0x6*(parseInt(_0x12091f(0x17a))/0x7)+parseInt(_0x12091f(0x17e))/0x8*(-parseInt(_0x12091f(0x183))/0x9)+-parseInt(_0x12091f(0x17f))/0xa;if(_0x77741e===_0x3d99ea)break;else _0x219b34['push'](_0x219b34['shift']());}catch(_0x1e28eb){_0x219b34['push'](_0x219b34['shift']());}}}(a18_0x56d1,0xe3404));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x17e3fc(0x180));exports['command']='start',exports[a18_0x17e3fc(0x181)]=a18_0x17e3fc(0x18b),exports[a18_0x17e3fc(0x175)]=function(_0x464762){const _0x531e8a=a18_0x17e3fc,_0x23d378={};_0x23d378['lTJEu']=_0x531e8a(0x178),_0x23d378[_0x531e8a(0x179)]=_0x531e8a(0x184);const _0xc55764=_0x23d378;return _0x464762[_0x531e8a(0x189)](HELP_HEADER_MESSAGE[_0x531e8a(0x188)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x531e8a(0x185)](_0xc55764[_0x531e8a(0x17c)])[_0x531e8a(0x18a)]()[_0x531e8a(0x182)]()['strict']()[_0x531e8a(0x184)](_0xc55764[_0x531e8a(0x179)]);},exports[a18_0x17e3fc(0x174)]=function(_0x31015d){};
1
+ const a18_0x840248=a18_0x58e7;(function(_0x5979a1,_0x4a29de){const _0x1ad0fd=a18_0x58e7,_0x1fed07=_0x5979a1();while(!![]){try{const _0x1dab0d=-parseInt(_0x1ad0fd(0x1b5))/0x1*(-parseInt(_0x1ad0fd(0x1c8))/0x2)+parseInt(_0x1ad0fd(0x1c0))/0x3*(parseInt(_0x1ad0fd(0x1b0))/0x4)+parseInt(_0x1ad0fd(0x1b1))/0x5+parseInt(_0x1ad0fd(0x1b9))/0x6*(parseInt(_0x1ad0fd(0x1c5))/0x7)+-parseInt(_0x1ad0fd(0x1bb))/0x8*(parseInt(_0x1ad0fd(0x1bf))/0x9)+-parseInt(_0x1ad0fd(0x1c4))/0xa*(parseInt(_0x1ad0fd(0x1c1))/0xb)+parseInt(_0x1ad0fd(0x1b3))/0xc*(-parseInt(_0x1ad0fd(0x1c6))/0xd);if(_0x1dab0d===_0x4a29de)break;else _0x1fed07['push'](_0x1fed07['shift']());}catch(_0x41b358){_0x1fed07['push'](_0x1fed07['shift']());}}}(a18_0xbc9e,0x74580));function a18_0x58e7(_0x380115,_0x2128f2){const _0xbc9ea2=a18_0xbc9e();return a18_0x58e7=function(_0x58e712,_0x3512c4){_0x58e712=_0x58e712-0x1b0;let _0x1b5828=_0xbc9ea2[_0x58e712];return _0x1b5828;},a18_0x58e7(_0x380115,_0x2128f2);}function a18_0xbc9e(){const _0x53f5f6=['handler','216TVFtgf','start_commands','449258agYUTU','start','command','fDIMz','6JHVCTp','Start\x20an\x20existing\x20Automation\x20grid.','270856Vkjwym','help','builder','strict','9ADgXFc','1448715eBrLIB','128194LcjZWQ','demandCommand','usage','380uGWAfM','60228sIqoqH','483925PynrDO','QTUif','2vBbRAc','4KsjBhQ','3412680MAwDTj'];a18_0xbc9e=function(){return _0x53f5f6;};return a18_0xbc9e();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x840248(0x1b7)]=a18_0x840248(0x1b6),exports['desc']=a18_0x840248(0x1ba),exports[a18_0x840248(0x1bd)]=function(_0x4ba206){const _0x6d3fff=a18_0x840248,_0x438f1f={};_0x438f1f[_0x6d3fff(0x1c7)]=_0x6d3fff(0x1b4),_0x438f1f['fDIMz']=_0x6d3fff(0x1bc);const _0x30153d=_0x438f1f;return _0x4ba206[_0x6d3fff(0x1c3)](HELP_HEADER_MESSAGE[_0x6d3fff(0x1b6)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x30153d[_0x6d3fff(0x1c7)])[_0x6d3fff(0x1c2)]()['recommendCommands']()[_0x6d3fff(0x1be)]()[_0x6d3fff(0x1bc)](_0x30153d[_0x6d3fff(0x1b8)]);},exports[a18_0x840248(0x1b2)]=function(_0x595266){};
@@ -1 +1 @@
1
- function a19_0x3065(){const _0x113e77=['GOpgV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skip-tls-cert-verify','clusterName','Adding\x20Websocket\x20listeners','LNMey','help','../../utils/webSocketUtils','Mugvn','16myLnRo','stringify','handler','usage','KFyKZ','desc','HhnNz','GKlVI','../../utils/gridComponents','mfeuq','command','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','cloudProvider','reconnecting-websocket','<UsernamePlaceholder>','vMTYh','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','parse','default','addListeners','stack','../../utils/instrumentationUtils','info','1750VlKIib','SmWfS','28757964VypfOO','Start\x20an\x20existing\x20Automation\x20grid.','ERROR','statusCode','../../utils/createk8sClient','3590037ChUoch','INFO','QsQbe','description','start-grid-called','type','228mhFDWu','gridId','ZCyRw','replace','body','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','7142664lPUTVV','../../config/logger','exit','lAtBM','../../config/constants','password','server-error','Browserstack','1789415wjqiLs','dubga','zpRnp','string','username','Starting\x20grid\x20','aYuZx','2cvlwkv','argv','AUFLB','vRCjK','../../cloudproviders/utils','readFileSync','Grid\x20started','Skip\x20insecure\x20cert\x20verification.','15190kaMpVd','470519EjZeCT','LayuR','27090CgrmtC','skipTlsCertVerify','message','WebSocket','11rQJVwn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','epilogue','user','builder'];a19_0x3065=function(){return _0x113e77;};return a19_0x3065();}const a19_0x3650d7=a19_0x50d3;(function(_0x38e3bb,_0x1a6070){const _0x585865=a19_0x50d3,_0x5a6145=_0x38e3bb();while(!![]){try{const _0x5b4329=-parseInt(_0x585865(0x13f))/0x1*(-parseInt(_0x585865(0x146))/0x2)+-parseInt(_0x585865(0x12a))/0x3+parseInt(_0x585865(0x130))/0x4*(-parseInt(_0x585865(0xf7))/0x5)+-parseInt(_0x585865(0x137))/0x6+-parseInt(_0x585865(0xf8))/0x7*(parseInt(_0x585865(0x10c))/0x8)+parseInt(_0x585865(0xfa))/0x9*(-parseInt(_0x585865(0x123))/0xa)+parseInt(_0x585865(0xfe))/0xb*(parseInt(_0x585865(0x125))/0xc);if(_0x5b4329===_0x1a6070)break;else _0x5a6145['push'](_0x5a6145['shift']());}catch(_0x13bee0){_0x5a6145['push'](_0x5a6145['shift']());}}}(a19_0x3065,0xeb757));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3650d7(0x119)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3650d7(0x13b)),{logger}=require(a19_0x3650d7(0x138)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x3650d7(0x114)),{sendInstrumentationEvent}=require(a19_0x3650d7(0x121)),webSocketUtils=require(a19_0x3650d7(0x10a)),{createK8sClient}=require(a19_0x3650d7(0x129)),{getCloudProviderObject}=require(a19_0x3650d7(0xf3));function a19_0x50d3(_0x5da997,_0x6b3b5c){const _0x30657f=a19_0x3065();return a19_0x50d3=function(_0x50d3c3,_0x440b0b){_0x50d3c3=_0x50d3c3-0xf3;let _0x23ede4=_0x30657f[_0x50d3c3];return _0x23ede4;},a19_0x50d3(_0x5da997,_0x6b3b5c);}exports[a19_0x3650d7(0x116)]='grid',exports[a19_0x3650d7(0x111)]=a19_0x3650d7(0x126),exports[a19_0x3650d7(0x102)]=function(_0x6cacbe){const _0x2a05d4=a19_0x3650d7,_0x2b8053={};_0x2b8053[_0x2a05d4(0x12c)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x2b8053[_0x2a05d4(0x108)]=_0x2a05d4(0x142),_0x2b8053[_0x2a05d4(0x115)]=_0x2a05d4(0xf6),_0x2b8053[_0x2a05d4(0x140)]='boolean',_0x2b8053['HhnNz']=_0x2a05d4(0x109);const _0x5e14cf=_0x2b8053,_0x46e2db={};_0x46e2db[_0x2a05d4(0x12d)]=_0x5e14cf['QsQbe'],_0x46e2db[_0x2a05d4(0x12f)]=_0x5e14cf[_0x2a05d4(0x108)];const _0x51e2e6={};_0x51e2e6[_0x2a05d4(0x12d)]=_0x5e14cf['mfeuq'],_0x51e2e6['type']=_0x5e14cf[_0x2a05d4(0x140)],_0x51e2e6[_0x2a05d4(0x11e)]=![];const _0x37e496={};return _0x37e496['grid-id']=_0x46e2db,_0x37e496[_0x2a05d4(0x105)]=_0x51e2e6,_0x6cacbe[_0x2a05d4(0x10f)](HELP_HEADER_MESSAGE['start'])[_0x2a05d4(0x100)](HELP_FOOTER_MESSAGE)['options'](_0x37e496)[_0x2a05d4(0x109)](_0x5e14cf[_0x2a05d4(0x112)])[_0x2a05d4(0x147)];},exports[a19_0x3650d7(0x10e)]=async function(_0x1945b7){const _0x5f4cc8=a19_0x3650d7,_0x212a45={'Llvrz':_0x5f4cc8(0x11c),'GKlVI':function(_0xfccc83){return _0xfccc83();},'ZCyRw':_0x5f4cc8(0x135),'fgMeY':function(_0x37efbc,_0x1fb9bc,_0x35021a,_0x5d2e7d,_0xd7d21f,_0x321c2b,_0x5a8e83){return _0x37efbc(_0x1fb9bc,_0x35021a,_0x5d2e7d,_0xd7d21f,_0x321c2b,_0x5a8e83);},'aYuZx':_0x5f4cc8(0x12e),'ZRXKy':'init-not-called','AUFLB':function(_0x2c672c,_0x1dd980,_0x207267,_0x2708f2,_0x5461ca,_0x304ef1,_0x389e23){return _0x2c672c(_0x1dd980,_0x207267,_0x2708f2,_0x5461ca,_0x304ef1,_0x389e23);},'KFyKZ':_0x5f4cc8(0x11a),'LayuR':'<PasswordPlaceholder>','Mugvn':_0x5f4cc8(0x107),'EKQQY':function(_0x546031,_0x5a3e24,_0x5225ad,_0x44b070){return _0x546031(_0x5a3e24,_0x5225ad,_0x44b070);},'vRCjK':function(_0x49d5a0,_0x36f489,_0x16c243,_0x19e082,_0x2efaf7,_0x3658e3,_0x2aeaf0){return _0x49d5a0(_0x36f489,_0x16c243,_0x19e082,_0x2efaf7,_0x3658e3,_0x2aeaf0);},'SmWfS':function(_0x3d7973,_0x216be2,_0x254b47){return _0x3d7973(_0x216be2,_0x254b47);},'nSghK':function(_0x4ce068,_0x1d43bc,_0x3d881e){return _0x4ce068(_0x1d43bc,_0x3d881e);},'CjEku':_0x5f4cc8(0xf5),'vMTYh':function(_0x3ec0fa,_0x3ede6e){return _0x3ec0fa===_0x3ede6e;},'zpRnp':_0x5f4cc8(0x104),'mNpOE':'unauthorised','GOpgV':'invalid-grid-id','lAtBM':_0x5f4cc8(0x13d)};let _0x3c0599;try{!_0x1945b7[_0x5f4cc8(0x131)]&&(logger[_0x5f4cc8(0x136)](_0x212a45['Llvrz']),process[_0x5f4cc8(0x139)](0x1));!fs['existsSync'](_0x212a45[_0x5f4cc8(0x113)](getCredentialsPath))&&(logger[_0x5f4cc8(0x136)](_0x212a45[_0x5f4cc8(0x132)]),await _0x212a45['fgMeY'](sendInstrumentationEvent,_0x1945b7,_0x212a45['aYuZx'],messageTypes[_0x5f4cc8(0x127)],_0x212a45['ZRXKy'],null,_0x1945b7),process[_0x5f4cc8(0x139)](0x1));logger[_0x5f4cc8(0x122)](_0x5f4cc8(0x144)+_0x1945b7[_0x5f4cc8(0x131)]),await _0x212a45[_0x5f4cc8(0x148)](sendInstrumentationEvent,_0x1945b7,_0x212a45[_0x5f4cc8(0x145)],messageTypes[_0x5f4cc8(0x12b)],null,null,_0x1945b7);const _0x59a680=JSON[_0x5f4cc8(0x11d)](fs[_0x5f4cc8(0xf4)](_0x212a45[_0x5f4cc8(0x113)](getCredentialsPath)));global_registry['bstackUsername']=_0x59a680[_0x5f4cc8(0x13e)]['username'],global_registry['bstackAccesskey']=_0x59a680[_0x5f4cc8(0x13e)][_0x5f4cc8(0x13c)];const _0x525a9f=WS_ENDPOINT[_0x5f4cc8(0x133)](_0x212a45[_0x5f4cc8(0x110)],_0x59a680['Browserstack']['username'])[_0x5f4cc8(0x133)](_0x212a45[_0x5f4cc8(0xf9)],_0x59a680[_0x5f4cc8(0x13e)][_0x5f4cc8(0x13c)]),_0x355bff={};_0x355bff[_0x5f4cc8(0xfd)]=ws,_0x355bff['connectionTimeout']=0x36ee80,_0x3c0599=new ReconnectingWebSocket(_0x525a9f,[],_0x355bff),logger['debug'](_0x212a45[_0x5f4cc8(0x10b)]),webSocketUtils[_0x5f4cc8(0x11f)](_0x3c0599,_0x1945b7[_0x5f4cc8(0x101)],_0x1945b7[_0x5f4cc8(0x13c)]);const [_0xbe32e7,_0xa188fc]=await _0x212a45['EKQQY'](getGridDetails,_0x59a680[_0x5f4cc8(0x13e)][_0x5f4cc8(0x143)],_0x59a680[_0x5f4cc8(0x13e)][_0x5f4cc8(0x13c)],_0x1945b7[_0x5f4cc8(0x131)]);if(_0xa188fc){const _0xe92d8a=_0xa188fc['info'];global_registry[_0x5f4cc8(0x118)]=_0xe92d8a[_0x5f4cc8(0x118)],global_registry['clusterRegion']=_0xe92d8a['region'],global_registry[_0x5f4cc8(0x106)]=_0xe92d8a[_0x5f4cc8(0x106)];const _0x3c0f1d=await _0x212a45[_0x5f4cc8(0x149)](getCloudProviderObject,_0xe92d8a[_0x5f4cc8(0x118)],_0xe92d8a['clusterName'],_0xe92d8a['name'],_0x3c0599,webSocketUtils,_0x1945b7),[_0x11d4aa,_0x51e3ec,_0x34f5e6,_0x243071,_0x253ae9,_0x1e0263]=await _0x212a45[_0x5f4cc8(0x124)](createK8sClient,_0x3c0f1d,_0x1945b7[_0x5f4cc8(0xfb)]);await _0x212a45['nSghK'](scaleUpHubDeployment,_0x51e3ec,_0xe92d8a['name']),logger['info'](_0x212a45['CjEku']),process['exit'](0x0);}_0x212a45[_0x5f4cc8(0x11b)](_0xbe32e7[_0x5f4cc8(0x128)],0x191)&&(logger['error'](_0x212a45[_0x5f4cc8(0x141)]),await _0x212a45[_0x5f4cc8(0x149)](sendInstrumentationEvent,_0x1945b7,_0x212a45[_0x5f4cc8(0x145)],messageTypes[_0x5f4cc8(0x127)],_0x212a45['mNpOE'],null,_0x1945b7),process[_0x5f4cc8(0x139)](0x1)),_0x212a45[_0x5f4cc8(0x11b)](_0xbe32e7['statusCode'],0x190)&&(logger[_0x5f4cc8(0x136)](JSON[_0x5f4cc8(0x11d)](_0xbe32e7[_0x5f4cc8(0x134)])[_0x5f4cc8(0xfc)]),await _0x212a45[_0x5f4cc8(0x149)](sendInstrumentationEvent,_0x1945b7,_0x212a45[_0x5f4cc8(0x145)],messageTypes[_0x5f4cc8(0x127)],_0x212a45[_0x5f4cc8(0x103)],null,_0x1945b7),process[_0x5f4cc8(0x139)](0x1)),logger[_0x5f4cc8(0x136)](_0x5f4cc8(0xff)+JSON[_0x5f4cc8(0x10d)](_0xbe32e7)),await _0x212a45['AUFLB'](sendInstrumentationEvent,_0x1945b7,_0x212a45[_0x5f4cc8(0x145)],messageTypes[_0x5f4cc8(0x127)],_0x212a45[_0x5f4cc8(0x13a)],_0xbe32e7,_0x1945b7),process[_0x5f4cc8(0x139)](0x1);}catch(_0x267ca7){const _0x56d3f6=_0x5f4cc8(0x117)+_0x267ca7+'\x20\x0a'+JSON[_0x5f4cc8(0x10d)](_0x267ca7[_0x5f4cc8(0x120)])+'\x20';logger[_0x5f4cc8(0x136)](_0x56d3f6),process[_0x5f4cc8(0x139)](0x1);}};
1
+ const a19_0x447423=a19_0x13ff;function a19_0x13ff(_0x4ca682,_0xcafea6){const _0x343228=a19_0x3432();return a19_0x13ff=function(_0x13ffe1,_0x14583f){_0x13ffe1=_0x13ffe1-0x142;let _0x50ac71=_0x343228[_0x13ffe1];return _0x50ac71;},a19_0x13ff(_0x4ca682,_0xcafea6);}(function(_0x3422f8,_0x53773d){const _0x1c369d=a19_0x13ff,_0xa576b1=_0x3422f8();while(!![]){try{const _0x4fd99d=parseInt(_0x1c369d(0x18c))/0x1*(parseInt(_0x1c369d(0x148))/0x2)+parseInt(_0x1c369d(0x14d))/0x3*(-parseInt(_0x1c369d(0x150))/0x4)+-parseInt(_0x1c369d(0x170))/0x5*(-parseInt(_0x1c369d(0x14a))/0x6)+parseInt(_0x1c369d(0x173))/0x7+parseInt(_0x1c369d(0x17e))/0x8*(parseInt(_0x1c369d(0x158))/0x9)+parseInt(_0x1c369d(0x172))/0xa+parseInt(_0x1c369d(0x18b))/0xb*(-parseInt(_0x1c369d(0x15d))/0xc);if(_0x4fd99d===_0x53773d)break;else _0xa576b1['push'](_0xa576b1['shift']());}catch(_0x26a02f){_0xa576b1['push'](_0xa576b1['shift']());}}}(a19_0x3432,0x7538b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x447423(0x149)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x447423(0x184)),{scaleUpHubDeployment}=require(a19_0x447423(0x179)),{sendInstrumentationEvent}=require(a19_0x447423(0x187)),webSocketUtils=require(a19_0x447423(0x1a0)),{createK8sClient}=require(a19_0x447423(0x18e)),{getCloudProviderObject}=require(a19_0x447423(0x180));exports[a19_0x447423(0x163)]=a19_0x447423(0x171),exports['desc']=a19_0x447423(0x192),exports[a19_0x447423(0x147)]=function(_0x956437){const _0x40429c=a19_0x447423,_0xc0a248={};_0xc0a248[_0x40429c(0x154)]=_0x40429c(0x174),_0xc0a248[_0x40429c(0x165)]=_0x40429c(0x182),_0xc0a248[_0x40429c(0x19d)]='Skip\x20insecure\x20cert\x20verification.',_0xc0a248[_0x40429c(0x168)]='boolean',_0xc0a248[_0x40429c(0x188)]=_0x40429c(0x14e);const _0x4f2e3a=_0xc0a248,_0x1e82cf={};_0x1e82cf[_0x40429c(0x159)]=_0x4f2e3a['NeuOd'],_0x1e82cf[_0x40429c(0x15c)]=_0x4f2e3a[_0x40429c(0x165)];const _0x907cc7={};_0x907cc7[_0x40429c(0x159)]=_0x4f2e3a[_0x40429c(0x19d)],_0x907cc7[_0x40429c(0x15c)]=_0x4f2e3a[_0x40429c(0x168)],_0x907cc7[_0x40429c(0x167)]=![];const _0x3b68c6={};return _0x3b68c6[_0x40429c(0x15b)]=_0x1e82cf,_0x3b68c6[_0x40429c(0x164)]=_0x907cc7,_0x956437['usage'](HELP_HEADER_MESSAGE[_0x40429c(0x153)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x40429c(0x191)](_0x3b68c6)[_0x40429c(0x14e)](_0x4f2e3a[_0x40429c(0x188)])['argv'];},exports[a19_0x447423(0x15f)]=async function(_0x237eb2){const _0x1ce349=a19_0x447423,_0x340c85={'zFMkP':_0x1ce349(0x145),'FIEyQ':function(_0x186626){return _0x186626();},'GnfhQ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hvGvf':function(_0x3caa5c,_0x548728,_0x3e47b1,_0x488a27,_0x28c80f,_0x1e1929,_0x14388b){return _0x3caa5c(_0x548728,_0x3e47b1,_0x488a27,_0x28c80f,_0x1e1929,_0x14388b);},'AKQDS':_0x1ce349(0x19f),'muMjq':'init-not-called','qilfn':function(_0xe16e1f,_0x27f6bb,_0x2f27dc,_0x4988a6,_0xffacdd,_0x86b12f,_0x1f7e55){return _0xe16e1f(_0x27f6bb,_0x2f27dc,_0x4988a6,_0xffacdd,_0x86b12f,_0x1f7e55);},'BJsEO':function(_0x1e7395){return _0x1e7395();},'qdaHd':_0x1ce349(0x144),'SkfJF':_0x1ce349(0x186),'GTgwr':_0x1ce349(0x19a),'aLLSX':function(_0x565c59,_0x3b0c42,_0xea4e37,_0x398991){return _0x565c59(_0x3b0c42,_0xea4e37,_0x398991);},'shgIW':function(_0x1460e0,_0xa4200d,_0x4fc52d,_0x2f0347,_0xa460df,_0xedf333,_0x305a08){return _0x1460e0(_0xa4200d,_0x4fc52d,_0x2f0347,_0xa460df,_0xedf333,_0x305a08);},'pwsTw':function(_0x2b3240,_0x88c56c,_0x29be09){return _0x2b3240(_0x88c56c,_0x29be09);},'YvsWY':_0x1ce349(0x17c),'FSrZw':function(_0x51fcb7,_0x241c2f){return _0x51fcb7===_0x241c2f;},'aVbEc':_0x1ce349(0x18d),'Slqmz':function(_0xfdd03a,_0x5bb7ee,_0x1dd3bd,_0x1cdbbd,_0x493b38,_0x31be83,_0x19ab8c){return _0xfdd03a(_0x5bb7ee,_0x1dd3bd,_0x1cdbbd,_0x493b38,_0x31be83,_0x19ab8c);},'MADoL':_0x1ce349(0x195),'aRsjt':function(_0x361b9e,_0x4b0d6b,_0x545135,_0x53b644,_0x3941f9,_0x73de2b,_0x512fc6){return _0x361b9e(_0x4b0d6b,_0x545135,_0x53b644,_0x3941f9,_0x73de2b,_0x512fc6);},'SXypU':_0x1ce349(0x190),'BQRPT':function(_0x2fe315,_0x382ece,_0x47f1f4,_0x2bf3e1,_0x24edda,_0x7d3de1,_0x1ac58){return _0x2fe315(_0x382ece,_0x47f1f4,_0x2bf3e1,_0x24edda,_0x7d3de1,_0x1ac58);},'fJzIt':_0x1ce349(0x161)};let _0x43aeee;try{!_0x237eb2[_0x1ce349(0x19b)]&&(logger[_0x1ce349(0x152)](_0x340c85[_0x1ce349(0x162)]),process[_0x1ce349(0x169)](0x1));!fs['existsSync'](_0x340c85[_0x1ce349(0x17b)](getCredentialsPath))&&(logger[_0x1ce349(0x152)](_0x340c85[_0x1ce349(0x17f)]),await _0x340c85['hvGvf'](sendInstrumentationEvent,_0x237eb2,_0x340c85[_0x1ce349(0x15e)],messageTypes[_0x1ce349(0x17a)],_0x340c85[_0x1ce349(0x196)],null,_0x237eb2),process[_0x1ce349(0x169)](0x1));logger['info']('Starting\x20grid\x20'+_0x237eb2['gridId']),await _0x340c85[_0x1ce349(0x19c)](sendInstrumentationEvent,_0x237eb2,_0x340c85[_0x1ce349(0x15e)],messageTypes[_0x1ce349(0x15a)],null,null,_0x237eb2);const _0x123c4e=JSON[_0x1ce349(0x16d)](fs['readFileSync'](_0x340c85[_0x1ce349(0x14f)](getCredentialsPath)));global_registry['bstackUsername']=_0x123c4e[_0x1ce349(0x175)][_0x1ce349(0x198)],global_registry[_0x1ce349(0x151)]=_0x123c4e[_0x1ce349(0x175)][_0x1ce349(0x160)];const _0x4d185e=WS_ENDPOINT[_0x1ce349(0x194)](_0x340c85[_0x1ce349(0x16a)],_0x123c4e[_0x1ce349(0x175)][_0x1ce349(0x198)])[_0x1ce349(0x194)](_0x340c85[_0x1ce349(0x166)],_0x123c4e['Browserstack'][_0x1ce349(0x160)]),_0x180ed2={};_0x180ed2[_0x1ce349(0x189)]=ws,_0x180ed2[_0x1ce349(0x146)]=0x36ee80,_0x43aeee=new ReconnectingWebSocket(_0x4d185e,[],_0x180ed2),logger[_0x1ce349(0x142)](_0x340c85['GTgwr']),webSocketUtils[_0x1ce349(0x143)](_0x43aeee,_0x237eb2[_0x1ce349(0x157)],_0x237eb2[_0x1ce349(0x160)]);const [_0x505b29,_0x5e85d0]=await _0x340c85[_0x1ce349(0x18f)](getGridDetails,_0x123c4e[_0x1ce349(0x175)]['username'],_0x123c4e['Browserstack'][_0x1ce349(0x160)],_0x237eb2[_0x1ce349(0x19b)]);if(_0x5e85d0){const _0x44d590=_0x5e85d0[_0x1ce349(0x19e)];global_registry[_0x1ce349(0x16c)]=_0x44d590['cloudProvider'],global_registry[_0x1ce349(0x14c)]=_0x44d590['region'],global_registry[_0x1ce349(0x177)]=_0x44d590[_0x1ce349(0x177)];const _0x968dcd=await _0x340c85[_0x1ce349(0x18a)](getCloudProviderObject,_0x44d590[_0x1ce349(0x16c)],_0x44d590[_0x1ce349(0x177)],_0x44d590['name'],_0x43aeee,webSocketUtils,_0x237eb2),[_0x3afc44,_0x51fb8a,_0x19e043,_0x1c6337,_0x44a596,_0x2c8beb]=await _0x340c85['pwsTw'](createK8sClient,_0x968dcd,_0x237eb2[_0x1ce349(0x183)]);await _0x340c85[_0x1ce349(0x193)](scaleUpHubDeployment,_0x51fb8a,_0x44d590[_0x1ce349(0x14b)]),logger['info'](_0x340c85[_0x1ce349(0x16e)]),process[_0x1ce349(0x169)](0x0);}_0x340c85[_0x1ce349(0x17d)](_0x505b29[_0x1ce349(0x16f)],0x191)&&(logger[_0x1ce349(0x152)](_0x340c85[_0x1ce349(0x176)]),await _0x340c85[_0x1ce349(0x197)](sendInstrumentationEvent,_0x237eb2,_0x340c85['AKQDS'],messageTypes[_0x1ce349(0x17a)],_0x340c85['MADoL'],null,_0x237eb2),process[_0x1ce349(0x169)](0x1)),_0x340c85[_0x1ce349(0x17d)](_0x505b29[_0x1ce349(0x16f)],0x190)&&(logger[_0x1ce349(0x152)](JSON['parse'](_0x505b29['body'])[_0x1ce349(0x185)]),await _0x340c85['aRsjt'](sendInstrumentationEvent,_0x237eb2,_0x340c85[_0x1ce349(0x15e)],messageTypes[_0x1ce349(0x17a)],_0x340c85[_0x1ce349(0x178)],null,_0x237eb2),process[_0x1ce349(0x169)](0x1)),logger[_0x1ce349(0x152)](_0x1ce349(0x16b)+JSON['stringify'](_0x505b29)),await _0x340c85['BQRPT'](sendInstrumentationEvent,_0x237eb2,_0x340c85[_0x1ce349(0x15e)],messageTypes[_0x1ce349(0x17a)],_0x340c85[_0x1ce349(0x199)],_0x505b29,_0x237eb2),process[_0x1ce349(0x169)](0x1);}catch(_0x16069d){const _0xccac8a=_0x1ce349(0x155)+_0x16069d+'\x20\x0a'+JSON[_0x1ce349(0x181)](_0x16069d[_0x1ce349(0x156)])+'\x20';logger[_0x1ce349(0x152)](_0xccac8a),process[_0x1ce349(0x169)](0x1);}};function a19_0x3432(){const _0x297930=['error','start','NeuOd','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','stack','user','1287099ThHoxm','description','INFO','grid-id','type','42564pKDybB','AKQDS','handler','password','server-error','zFMkP','command','skip-tls-cert-verify','rQJFJ','SkfJF','default','bMdXY','exit','qdaHd','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','cloudProvider','parse','YvsWY','statusCode','2261890ueEoHV','grid','2726590xWVODt','3625622qjWubg','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Browserstack','aVbEc','clusterName','SXypU','../../utils/gridComponents','ERROR','FIEyQ','Grid\x20started','FSrZw','8JjfAwu','GnfhQ','../../cloudproviders/utils','stringify','string','skipTlsCertVerify','../../utils/utilityMethods','message','<PasswordPlaceholder>','../../utils/instrumentationUtils','QsFXs','WebSocket','shgIW','7150eRJYBK','955711fLPDAs','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/createk8sClient','aLLSX','invalid-grid-id','options','Start\x20an\x20existing\x20Automation\x20grid.','pwsTw','replace','unauthorised','muMjq','Slqmz','username','fJzIt','Adding\x20Websocket\x20listeners','gridId','qilfn','PmbAW','info','start-grid-called','../../utils/webSocketUtils','debug','addListeners','<UsernamePlaceholder>','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','connectionTimeout','builder','2YNiUcZ','reconnecting-websocket','12EfousS','name','clusterRegion','25182zXYwwa','help','BJsEO','4lWWYKI','bstackAccesskey'];a19_0x3432=function(){return _0x297930;};return a19_0x3432();}
@@ -1 +1 @@
1
- const a20_0x4c38c0=a20_0xc693;(function(_0x2f2bf0,_0x86a0a4){const _0x1585df=a20_0xc693,_0x22c112=_0x2f2bf0();while(!![]){try{const _0xf993c=parseInt(_0x1585df(0x182))/0x1*(-parseInt(_0x1585df(0x174))/0x2)+parseInt(_0x1585df(0x17c))/0x3+-parseInt(_0x1585df(0x17e))/0x4*(-parseInt(_0x1585df(0x175))/0x5)+-parseInt(_0x1585df(0x17f))/0x6+parseInt(_0x1585df(0x17d))/0x7+-parseInt(_0x1585df(0x177))/0x8+-parseInt(_0x1585df(0x188))/0x9*(-parseInt(_0x1585df(0x17b))/0xa);if(_0xf993c===_0x86a0a4)break;else _0x22c112['push'](_0x22c112['shift']());}catch(_0x20e67f){_0x22c112['push'](_0x22c112['shift']());}}}(a20_0xccfa,0xc0ebd));function a20_0xc693(_0x2778b3,_0x1a9b84){const _0xccfafb=a20_0xccfa();return a20_0xc693=function(_0xc69356,_0x1b8a86){_0xc69356=_0xc69356-0x174;let _0xeb267e=_0xccfafb[_0xc69356];return _0xeb267e;},a20_0xc693(_0x2778b3,_0x1a9b84);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0xccfa(){const _0x273f40=['2792118xtjyZa','4uacIKG','7898502wifCDx','help','epilogue','21umJjvE','NhqJw','command','stop','Stop\x20a\x20running\x20Automation\x20grid.','builder','9bYDtUO','28974MtwUke','3475660CmZgnk','Eazvr','4889288DKJbkz','usage','desc','handler','12566110QTfEGs','2014179KHIsuG'];a20_0xccfa=function(){return _0x273f40;};return a20_0xccfa();}exports[a20_0x4c38c0(0x184)]=a20_0x4c38c0(0x185),exports[a20_0x4c38c0(0x179)]=a20_0x4c38c0(0x186),exports[a20_0x4c38c0(0x187)]=function(_0x1b7818){const _0x302b25=a20_0x4c38c0,_0x3e665d={};_0x3e665d[_0x302b25(0x183)]='stop_commands',_0x3e665d['Eazvr']='help';const _0x49f162=_0x3e665d;return _0x1b7818[_0x302b25(0x178)](HELP_HEADER_MESSAGE[_0x302b25(0x185)])[_0x302b25(0x181)](HELP_FOOTER_MESSAGE)['commandDir'](_0x49f162[_0x302b25(0x183)])['demandCommand']()['recommendCommands']()['strict']()[_0x302b25(0x180)](_0x49f162[_0x302b25(0x176)]);},exports[a20_0x4c38c0(0x17a)]=function(_0x36bb13){};
1
+ const a20_0x14c44f=a20_0x5614;(function(_0xbae306,_0x2c18bc){const _0x40456c=a20_0x5614,_0x5b895e=_0xbae306();while(!![]){try{const _0x1dea0f=parseInt(_0x40456c(0x1b6))/0x1+parseInt(_0x40456c(0x1b1))/0x2*(-parseInt(_0x40456c(0x1b3))/0x3)+parseInt(_0x40456c(0x1aa))/0x4+parseInt(_0x40456c(0x1ac))/0x5*(-parseInt(_0x40456c(0x1a6))/0x6)+parseInt(_0x40456c(0x1af))/0x7+-parseInt(_0x40456c(0x1ae))/0x8+parseInt(_0x40456c(0x1b0))/0x9;if(_0x1dea0f===_0x2c18bc)break;else _0x5b895e['push'](_0x5b895e['shift']());}catch(_0x2bc3a0){_0x5b895e['push'](_0x5b895e['shift']());}}}(a20_0x4f70,0x8a6f8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x14c44f(0x1ab));function a20_0x4f70(){const _0x278708=['47870bLeOEp','usage','111GHzxpb','demandCommand','stop','371790TCkSoa','handler','epilogue','gdlnL','6341574KCtggR','desc','XgNLS','builder','2510916VMkHUX','../config/constants','5ylXDBj','help','5133072puOTPd','4837665ERCVPK','13145184vTuUbL'];a20_0x4f70=function(){return _0x278708;};return a20_0x4f70();}function a20_0x5614(_0x5d24c5,_0x2cf0d4){const _0x4f707e=a20_0x4f70();return a20_0x5614=function(_0x5614f0,_0x1b523a){_0x5614f0=_0x5614f0-0x1a4;let _0x57fb37=_0x4f707e[_0x5614f0];return _0x57fb37;},a20_0x5614(_0x5d24c5,_0x2cf0d4);}exports['command']=a20_0x14c44f(0x1b5),exports[a20_0x14c44f(0x1a7)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x14c44f(0x1a9)]=function(_0x12fa6b){const _0x16e680=a20_0x14c44f,_0x1c1dea={};_0x1c1dea[_0x16e680(0x1a8)]='stop_commands',_0x1c1dea['gdlnL']=_0x16e680(0x1ad);const _0x2af48a=_0x1c1dea;return _0x12fa6b[_0x16e680(0x1b2)](HELP_HEADER_MESSAGE[_0x16e680(0x1b5)])[_0x16e680(0x1a4)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2af48a[_0x16e680(0x1a8)])[_0x16e680(0x1b4)]()['recommendCommands']()['strict']()[_0x16e680(0x1ad)](_0x2af48a[_0x16e680(0x1a5)]);},exports[a20_0x14c44f(0x1b7)]=function(_0x40ef38){};
@@ -1 +1 @@
1
- const a21_0x50d230=a21_0x2ed6;(function(_0x4c7ffc,_0x3ead4d){const _0x18c83b=a21_0x2ed6,_0x2c0666=_0x4c7ffc();while(!![]){try{const _0x553de4=-parseInt(_0x18c83b(0x204))/0x1*(-parseInt(_0x18c83b(0x1e0))/0x2)+parseInt(_0x18c83b(0x22a))/0x3*(-parseInt(_0x18c83b(0x226))/0x4)+parseInt(_0x18c83b(0x1fd))/0x5*(parseInt(_0x18c83b(0x223))/0x6)+parseInt(_0x18c83b(0x1e1))/0x7+parseInt(_0x18c83b(0x21f))/0x8*(-parseInt(_0x18c83b(0x1e3))/0x9)+-parseInt(_0x18c83b(0x1de))/0xa+-parseInt(_0x18c83b(0x213))/0xb;if(_0x553de4===_0x3ead4d)break;else _0x2c0666['push'](_0x2c0666['shift']());}catch(_0x9b4f51){_0x2c0666['push'](_0x2c0666['shift']());}}}(a21_0x3720,0x79ae2));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x50d230(0x1e8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x50d230(0x205)),{logger}=require(a21_0x50d230(0x1df)),{getCredentialsPath,getGridDetails}=require(a21_0x50d230(0x1e2)),{scaleDownHubDeployment}=require(a21_0x50d230(0x232)),{sendInstrumentationEvent}=require(a21_0x50d230(0x1f0)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x50d230(0x1ef)),{getCloudProviderObject}=require(a21_0x50d230(0x1e4));exports[a21_0x50d230(0x225)]=a21_0x50d230(0x20f),exports[a21_0x50d230(0x1f5)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x50d230(0x21a)]=function(_0x13984f){const _0x464626=a21_0x50d230,_0x300276={};_0x300276[_0x464626(0x22b)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x300276['ZhrWq']='string',_0x300276[_0x464626(0x215)]=_0x464626(0x209),_0x300276[_0x464626(0x20c)]=_0x464626(0x20b),_0x300276[_0x464626(0x214)]='help';const _0x3041f3=_0x300276,_0xde1d29={};_0xde1d29['description']=_0x3041f3[_0x464626(0x22b)],_0xde1d29['type']=_0x3041f3[_0x464626(0x211)];const _0x4192a8={};_0x4192a8[_0x464626(0x212)]=_0x3041f3['wUDxo'],_0x4192a8[_0x464626(0x22d)]=_0x3041f3['YsmBc'],_0x4192a8['default']=![];const _0x117fb7={};return _0x117fb7[_0x464626(0x222)]=_0xde1d29,_0x117fb7['skip-tls-cert-verify']=_0x4192a8,_0x13984f[_0x464626(0x1dc)](HELP_HEADER_MESSAGE[_0x464626(0x1fa)])[_0x464626(0x216)](HELP_FOOTER_MESSAGE)[_0x464626(0x1ee)](_0x117fb7)['help'](_0x3041f3[_0x464626(0x214)])[_0x464626(0x20e)];},exports[a21_0x50d230(0x231)]=async function(_0xaa060){const _0x54def0=a21_0x50d230,_0x5ec565={'ZsKiF':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','WgEsg':function(_0x5517b5){return _0x5517b5();},'hrPFt':_0x54def0(0x21b),'mwsuA':function(_0x194b5e,_0x5a34a6,_0x5f08eb,_0x195f3a,_0x46b18a,_0x4b0f1d,_0x124beb){return _0x194b5e(_0x5a34a6,_0x5f08eb,_0x195f3a,_0x46b18a,_0x4b0f1d,_0x124beb);},'goGjn':_0x54def0(0x21c),'NOlgG':'init-not-called','OEhWq':function(_0xab9ff3){return _0xab9ff3();},'TnHPz':_0x54def0(0x1f6),'tiWla':_0x54def0(0x234),'QFAUm':'Adding\x20Websocket\x20listeners','VFNre':function(_0x8a16fa,_0x499788,_0x586702,_0x52795e){return _0x8a16fa(_0x499788,_0x586702,_0x52795e);},'elUyk':function(_0x100835,_0x1eff58,_0x5eeedf){return _0x100835(_0x1eff58,_0x5eeedf);},'PUmFR':_0x54def0(0x206),'FEZsD':function(_0x139b48,_0xc66e2b){return _0x139b48===_0xc66e2b;},'eynXH':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XAinn':_0x54def0(0x1fb),'kRzoE':_0x54def0(0x229),'GRmmn':_0x54def0(0x203)};let _0x3747ef;try{!_0xaa060['gridId']&&(logger[_0x54def0(0x1db)](_0x5ec565['ZsKiF']),process['exit'](0x1));!fs[_0x54def0(0x1f1)](_0x5ec565['WgEsg'](getCredentialsPath))&&(logger[_0x54def0(0x1db)](_0x5ec565[_0x54def0(0x1f4)]),await _0x5ec565[_0x54def0(0x1da)](sendInstrumentationEvent,_0xaa060,_0x5ec565[_0x54def0(0x1f8)],messageTypes[_0x54def0(0x1ff)],_0x5ec565[_0x54def0(0x1dd)],null,_0xaa060),process['exit'](0x1));logger[_0x54def0(0x224)](_0x54def0(0x22c)+_0xaa060[_0x54def0(0x1f7)]),await _0x5ec565[_0x54def0(0x1da)](sendInstrumentationEvent,_0xaa060,_0x5ec565[_0x54def0(0x1f8)],messageTypes['INFO'],null,null,_0xaa060);const _0x4c41c4=JSON[_0x54def0(0x201)](fs[_0x54def0(0x227)](_0x5ec565['OEhWq'](getCredentialsPath)));global_registry[_0x54def0(0x1f2)]=_0x4c41c4[_0x54def0(0x20d)][_0x54def0(0x22f)],global_registry[_0x54def0(0x1eb)]=_0x4c41c4['Browserstack']['password'];const _0xcd4346=WS_ENDPOINT['replace'](_0x5ec565[_0x54def0(0x207)],_0x4c41c4[_0x54def0(0x20d)][_0x54def0(0x22f)])[_0x54def0(0x218)](_0x5ec565[_0x54def0(0x200)],_0x4c41c4[_0x54def0(0x20d)][_0x54def0(0x22e)]),_0x40a878={};_0x40a878[_0x54def0(0x1ea)]=ws,_0x40a878[_0x54def0(0x1e7)]=0x36ee80,_0x3747ef=new ReconnectingWebSocket(_0xcd4346,[],_0x40a878),logger['debug'](_0x5ec565['QFAUm']),webSocketUtils[_0x54def0(0x21e)](_0x3747ef,_0xaa060[_0x54def0(0x221)],_0xaa060[_0x54def0(0x22e)]);const [_0x1e876a,_0x37518c]=await _0x5ec565[_0x54def0(0x1e9)](getGridDetails,_0x4c41c4[_0x54def0(0x20d)][_0x54def0(0x22f)],_0x4c41c4['Browserstack'][_0x54def0(0x22e)],_0xaa060['gridId']);if(_0x37518c){const _0x1c7de8=_0x37518c['info'];global_registry['cloudProvider']=_0x1c7de8[_0x54def0(0x1fe)],global_registry[_0x54def0(0x1e5)]=_0x1c7de8[_0x54def0(0x1e6)],global_registry['clusterName']=_0x1c7de8['clusterName'];const _0x5313e1=await _0x5ec565[_0x54def0(0x1da)](getCloudProviderObject,_0x1c7de8['cloudProvider'],_0x1c7de8[_0x54def0(0x217)],_0x1c7de8['name'],_0x3747ef,webSocketUtils,_0xaa060),[_0x17d26e,_0xd0c765,_0x589af8,_0x5cf6ce,_0x37e93a,_0x1bbff9]=await _0x5ec565[_0x54def0(0x220)](createK8sClient,_0x5313e1,_0xaa060[_0x54def0(0x1f3)]);await _0x5ec565[_0x54def0(0x220)](scaleDownHubDeployment,_0xd0c765,_0x1c7de8[_0x54def0(0x219)]),logger[_0x54def0(0x224)](_0x5ec565[_0x54def0(0x230)]),process[_0x54def0(0x1ed)](0x0);}_0x5ec565[_0x54def0(0x202)](_0x1e876a[_0x54def0(0x1fc)],0x191)&&(logger['error'](_0x5ec565['eynXH']),await _0x5ec565['mwsuA'](sendInstrumentationEvent,_0xaa060,_0x5ec565['goGjn'],messageTypes['ERROR'],_0x5ec565[_0x54def0(0x1ec)],null,_0xaa060),process[_0x54def0(0x1ed)](0x1)),_0x5ec565[_0x54def0(0x202)](_0x1e876a[_0x54def0(0x1fc)],0x190)&&(logger[_0x54def0(0x1db)](JSON[_0x54def0(0x201)](_0x1e876a[_0x54def0(0x233)])[_0x54def0(0x20a)]),await _0x5ec565[_0x54def0(0x1da)](sendInstrumentationEvent,_0xaa060,_0x5ec565[_0x54def0(0x1f8)],messageTypes[_0x54def0(0x1ff)],_0x5ec565[_0x54def0(0x210)],null,_0xaa060),process['exit'](0x1)),logger[_0x54def0(0x1db)](_0x54def0(0x1f9)+JSON[_0x54def0(0x208)](_0x1e876a)),await _0x5ec565[_0x54def0(0x1da)](sendInstrumentationEvent,_0xaa060,_0x5ec565[_0x54def0(0x1f8)],messageTypes[_0x54def0(0x1ff)],_0x5ec565[_0x54def0(0x228)],_0x1e876a,_0xaa060),process[_0x54def0(0x1ed)](0x1);}catch(_0x3d3ba9){const _0x22dc7c=_0x54def0(0x21d)+_0x3d3ba9+'\x20\x0a'+JSON['stringify'](_0x3d3ba9['stack'])+'\x20';logger[_0x54def0(0x1db)](_0x22dc7c),process[_0x54def0(0x1ed)](0x1);}};function a21_0x2ed6(_0x5cd73f,_0x3d863e){const _0x3720cf=a21_0x3720();return a21_0x2ed6=function(_0x2ed6e0,_0x190c8f){_0x2ed6e0=_0x2ed6e0-0x1da;let _0x52ffbc=_0x3720cf[_0x2ed6e0];return _0x52ffbc;},a21_0x2ed6(_0x5cd73f,_0x3d863e);}function a21_0x3720(){const _0x49738f=['hrPFt','desc','<UsernamePlaceholder>','gridId','goGjn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stop','unauthorised','statusCode','1186995nUkFOy','cloudProvider','ERROR','tiWla','parse','FEZsD','server-error','14087pdSptU','../../config/constants','Grid\x20stoppped.','TnHPz','stringify','Skip\x20insecure\x20cert\x20verification.','message','boolean','YsmBc','Browserstack','argv','grid','kRzoE','ZhrWq','description','494021NtGRvW','eiMKU','wUDxo','epilogue','clusterName','replace','name','builder','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stop-grid-called','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','addListeners','8GJTxOe','elUyk','user','grid-id','12HeLtzc','info','command','358144kzBvTi','readFileSync','GRmmn','invalid-grid-id','3Zgnzcs','AgRvR','Stopping\x20grid\x20','type','password','username','PUmFR','handler','../../utils/gridComponents','body','<PasswordPlaceholder>','mwsuA','error','usage','NOlgG','626040meQtiH','../../config/logger','68snENVc','2126012rZJXbE','../../utils/utilityMethods','5058171NmHmum','../../cloudproviders/utils','clusterRegion','region','connectionTimeout','reconnecting-websocket','VFNre','WebSocket','bstackAccesskey','XAinn','exit','options','../../utils/createk8sClient','../../utils/instrumentationUtils','existsSync','bstackUsername','skipTlsCertVerify'];a21_0x3720=function(){return _0x49738f;};return a21_0x3720();}
1
+ const a21_0x41bab7=a21_0x11bf;(function(_0x65d533,_0x83d8e1){const _0x4aa81d=a21_0x11bf,_0x3e0bb4=_0x65d533();while(!![]){try{const _0x338b1a=-parseInt(_0x4aa81d(0x1c5))/0x1*(parseInt(_0x4aa81d(0x1bb))/0x2)+parseInt(_0x4aa81d(0x1bd))/0x3+-parseInt(_0x4aa81d(0x1d4))/0x4+-parseInt(_0x4aa81d(0x1a8))/0x5+-parseInt(_0x4aa81d(0x194))/0x6+parseInt(_0x4aa81d(0x1a6))/0x7+-parseInt(_0x4aa81d(0x1e2))/0x8*(-parseInt(_0x4aa81d(0x1be))/0x9);if(_0x338b1a===_0x83d8e1)break;else _0x3e0bb4['push'](_0x3e0bb4['shift']());}catch(_0x356853){_0x3e0bb4['push'](_0x3e0bb4['shift']());}}}(a21_0x1bab,0x701c6));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x41bab7(0x1d3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x41bab7(0x198)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x41bab7(0x1aa)),webSocketUtils=require(a21_0x41bab7(0x1c9)),{createK8sClient}=require(a21_0x41bab7(0x1b0)),{getCloudProviderObject}=require(a21_0x41bab7(0x18f));function a21_0x11bf(_0x3d97fb,_0x5e16e8){const _0x1babe3=a21_0x1bab();return a21_0x11bf=function(_0x11bffd,_0x1d6712){_0x11bffd=_0x11bffd-0x18e;let _0x492b55=_0x1babe3[_0x11bffd];return _0x492b55;},a21_0x11bf(_0x3d97fb,_0x5e16e8);}exports[a21_0x41bab7(0x1b2)]=a21_0x41bab7(0x1b4),exports[a21_0x41bab7(0x1da)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x41bab7(0x1cb)]=function(_0x479f3a){const _0xfee708=a21_0x41bab7,_0x178895={};_0x178895[_0xfee708(0x1d2)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x178895[_0xfee708(0x195)]=_0xfee708(0x1a2),_0x178895[_0xfee708(0x1d6)]=_0xfee708(0x1ad),_0x178895['ctWfe']=_0xfee708(0x1d5),_0x178895[_0xfee708(0x1ab)]=_0xfee708(0x1a1);const _0x2a3450=_0x178895,_0x29dff7={};_0x29dff7['description']=_0x2a3450['UoOvE'],_0x29dff7[_0xfee708(0x1e3)]=_0x2a3450[_0xfee708(0x195)];const _0x48d577={};_0x48d577['description']=_0x2a3450[_0xfee708(0x1d6)],_0x48d577[_0xfee708(0x1e3)]=_0x2a3450[_0xfee708(0x1c2)],_0x48d577[_0xfee708(0x1bc)]=![];const _0xb3bafb={};return _0xb3bafb['grid-id']=_0x29dff7,_0xb3bafb[_0xfee708(0x19c)]=_0x48d577,_0x479f3a[_0xfee708(0x1a5)](HELP_HEADER_MESSAGE[_0xfee708(0x1a3)])[_0xfee708(0x1ba)](HELP_FOOTER_MESSAGE)[_0xfee708(0x1cc)](_0xb3bafb)[_0xfee708(0x1a1)](_0x2a3450[_0xfee708(0x1ab)])[_0xfee708(0x193)];},exports[a21_0x41bab7(0x18e)]=async function(_0x29e189){const _0x430873=a21_0x41bab7,_0x40d23={'QHoOR':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','UHdaI':function(_0x58baf4){return _0x58baf4();},'felEo':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ltLjx':function(_0x471f62,_0x1f9333,_0x1da38b,_0x1341de,_0x3e5284,_0x354e3a,_0x21f5b0){return _0x471f62(_0x1f9333,_0x1da38b,_0x1341de,_0x3e5284,_0x354e3a,_0x21f5b0);},'yjrna':_0x430873(0x1b6),'gXDyS':_0x430873(0x1b5),'OaSYE':_0x430873(0x1c7),'JeQsz':'<PasswordPlaceholder>','Pxsbu':'Adding\x20Websocket\x20listeners','Mzipi':function(_0x435c02,_0x1c97cd,_0x25751e,_0x428c39){return _0x435c02(_0x1c97cd,_0x25751e,_0x428c39);},'ETZzK':function(_0x3972d1,_0x4408a9,_0x1776f4,_0x293570,_0x24e16b,_0x504bc1,_0x1470d5){return _0x3972d1(_0x4408a9,_0x1776f4,_0x293570,_0x24e16b,_0x504bc1,_0x1470d5);},'XHeYI':function(_0x291a7a,_0x24d5eb,_0x333e51){return _0x291a7a(_0x24d5eb,_0x333e51);},'sGycM':function(_0x1e5676,_0x139954,_0x51b27b){return _0x1e5676(_0x139954,_0x51b27b);},'ZcMcX':'Grid\x20stoppped.','xVtcn':function(_0x279e2b,_0x179676){return _0x279e2b===_0x179676;},'xJhHg':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','vguHX':_0x430873(0x1d0),'OkRZh':function(_0x4ac684,_0x480f8c){return _0x4ac684===_0x480f8c;},'OuPrp':function(_0x3830f6,_0x54434c,_0x96dbb5,_0x7d071c,_0x3cf29d,_0xe44c4f,_0x5a1b2a){return _0x3830f6(_0x54434c,_0x96dbb5,_0x7d071c,_0x3cf29d,_0xe44c4f,_0x5a1b2a);},'PWSPT':_0x430873(0x1df),'FBFCW':function(_0x32ad7e,_0x550e36,_0xdc62fb,_0x920c15,_0x2efbb1,_0x36558b,_0x2937c9){return _0x32ad7e(_0x550e36,_0xdc62fb,_0x920c15,_0x2efbb1,_0x36558b,_0x2937c9);},'NkVEF':'server-error'};let _0x1c7707;try{!_0x29e189[_0x430873(0x1c6)]&&(logger['error'](_0x40d23[_0x430873(0x1c8)]),process[_0x430873(0x1db)](0x1));!fs['existsSync'](_0x40d23[_0x430873(0x1a0)](getCredentialsPath))&&(logger['error'](_0x40d23[_0x430873(0x19b)]),await _0x40d23[_0x430873(0x191)](sendInstrumentationEvent,_0x29e189,_0x40d23['yjrna'],messageTypes[_0x430873(0x1c4)],_0x40d23[_0x430873(0x1d8)],null,_0x29e189),process['exit'](0x1));logger[_0x430873(0x1ac)]('Stopping\x20grid\x20'+_0x29e189[_0x430873(0x1c6)]),await _0x40d23[_0x430873(0x191)](sendInstrumentationEvent,_0x29e189,_0x40d23[_0x430873(0x197)],messageTypes[_0x430873(0x19f)],null,null,_0x29e189);const _0x3f8cdb=JSON[_0x430873(0x1e4)](fs['readFileSync'](_0x40d23[_0x430873(0x1a0)](getCredentialsPath)));global_registry['bstackUsername']=_0x3f8cdb[_0x430873(0x19d)][_0x430873(0x1dd)],global_registry[_0x430873(0x19a)]=_0x3f8cdb[_0x430873(0x19d)][_0x430873(0x1b1)];const _0x10173a=WS_ENDPOINT[_0x430873(0x1de)](_0x40d23[_0x430873(0x1d7)],_0x3f8cdb['Browserstack']['username'])[_0x430873(0x1de)](_0x40d23[_0x430873(0x1c0)],_0x3f8cdb['Browserstack'][_0x430873(0x1b1)]),_0x49910a={};_0x49910a[_0x430873(0x190)]=ws,_0x49910a[_0x430873(0x1a4)]=0x36ee80,_0x1c7707=new ReconnectingWebSocket(_0x10173a,[],_0x49910a),logger[_0x430873(0x1b8)](_0x40d23[_0x430873(0x1d1)]),webSocketUtils[_0x430873(0x1ca)](_0x1c7707,_0x29e189[_0x430873(0x1a9)],_0x29e189[_0x430873(0x1b1)]);const [_0x5a0f4d,_0x1ce350]=await _0x40d23['Mzipi'](getGridDetails,_0x3f8cdb[_0x430873(0x19d)]['username'],_0x3f8cdb['Browserstack'][_0x430873(0x1b1)],_0x29e189['gridId']);if(_0x1ce350){const _0x2ceed3=_0x1ce350[_0x430873(0x1ac)];global_registry['cloudProvider']=_0x2ceed3['cloudProvider'],global_registry[_0x430873(0x1b9)]=_0x2ceed3['region'],global_registry[_0x430873(0x199)]=_0x2ceed3[_0x430873(0x199)];const _0x141407=await _0x40d23[_0x430873(0x1c3)](getCloudProviderObject,_0x2ceed3[_0x430873(0x1cd)],_0x2ceed3[_0x430873(0x199)],_0x2ceed3[_0x430873(0x1a7)],_0x1c7707,webSocketUtils,_0x29e189),[_0x1c6a30,_0x5c597e,_0x268f71,_0x2bef42,_0x388b29,_0x5d68ab]=await _0x40d23[_0x430873(0x1dc)](createK8sClient,_0x141407,_0x29e189['skipTlsCertVerify']);await _0x40d23['sGycM'](scaleDownHubDeployment,_0x5c597e,_0x2ceed3['name']),logger[_0x430873(0x1ac)](_0x40d23[_0x430873(0x1af)]),process[_0x430873(0x1db)](0x0);}_0x40d23[_0x430873(0x196)](_0x5a0f4d['statusCode'],0x191)&&(logger[_0x430873(0x1b3)](_0x40d23[_0x430873(0x1e1)]),await _0x40d23[_0x430873(0x191)](sendInstrumentationEvent,_0x29e189,_0x40d23[_0x430873(0x197)],messageTypes[_0x430873(0x1c4)],_0x40d23[_0x430873(0x1c1)],null,_0x29e189),process[_0x430873(0x1db)](0x1)),_0x40d23['OkRZh'](_0x5a0f4d[_0x430873(0x1e0)],0x190)&&(logger[_0x430873(0x1b3)](JSON[_0x430873(0x1e4)](_0x5a0f4d['body'])[_0x430873(0x1d9)]),await _0x40d23[_0x430873(0x1cf)](sendInstrumentationEvent,_0x29e189,_0x40d23[_0x430873(0x197)],messageTypes[_0x430873(0x1c4)],_0x40d23[_0x430873(0x19e)],null,_0x29e189),process['exit'](0x1)),logger['error'](_0x430873(0x1ce)+JSON[_0x430873(0x192)](_0x5a0f4d)),await _0x40d23[_0x430873(0x1ae)](sendInstrumentationEvent,_0x29e189,_0x40d23[_0x430873(0x197)],messageTypes['ERROR'],_0x40d23[_0x430873(0x1b7)],_0x5a0f4d,_0x29e189),process['exit'](0x1);}catch(_0x392273){const _0x30b915=_0x430873(0x1bf)+_0x392273+'\x20\x0a'+JSON[_0x430873(0x192)](_0x392273['stack'])+'\x20';logger[_0x430873(0x1b3)](_0x30b915),process['exit'](0x1);}};function a21_0x1bab(){const _0x99f47=['connectionTimeout','usage','3131492BKHbnn','name','3566750IzoXkP','user','../../utils/instrumentationUtils','sWKYP','info','Skip\x20insecure\x20cert\x20verification.','FBFCW','ZcMcX','../../utils/createk8sClient','password','command','error','grid','init-not-called','stop-grid-called','NkVEF','debug','clusterRegion','epilogue','6776mKCmZu','default','2623317ZFlvUs','12325518bSXWiQ','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','JeQsz','vguHX','ctWfe','ETZzK','ERROR','199EUGTBY','gridId','<UsernamePlaceholder>','QHoOR','../../utils/webSocketUtils','addListeners','builder','options','cloudProvider','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','OuPrp','unauthorised','Pxsbu','UoOvE','reconnecting-websocket','1650432KsjbeQ','boolean','CuzFM','OaSYE','gXDyS','message','desc','exit','XHeYI','username','replace','invalid-grid-id','statusCode','xJhHg','8QAkkHd','type','parse','handler','../../cloudproviders/utils','WebSocket','ltLjx','stringify','argv','2591526rrdgci','Gwchb','xVtcn','yjrna','../../utils/utilityMethods','clusterName','bstackAccesskey','felEo','skip-tls-cert-verify','Browserstack','PWSPT','INFO','UHdaI','help','string','stop'];a21_0x1bab=function(){return _0x99f47;};return a21_0x1bab();}
@@ -1 +1 @@
1
- const a22_0x10a01b=a22_0x419b;(function(_0x3f5f97,_0x3cb32d){const _0x5c8afe=a22_0x419b,_0x2eeea0=_0x3f5f97();while(!![]){try{const _0x5e69ec=parseInt(_0x5c8afe(0xd5))/0x1*(parseInt(_0x5c8afe(0xf0))/0x2)+parseInt(_0x5c8afe(0x124))/0x3*(-parseInt(_0x5c8afe(0xd4))/0x4)+parseInt(_0x5c8afe(0x12c))/0x5+-parseInt(_0x5c8afe(0x111))/0x6+parseInt(_0x5c8afe(0xdd))/0x7+-parseInt(_0x5c8afe(0xf9))/0x8*(-parseInt(_0x5c8afe(0x11a))/0x9)+-parseInt(_0x5c8afe(0x116))/0xa;if(_0x5e69ec===_0x3cb32d)break;else _0x2eeea0['push'](_0x2eeea0['shift']());}catch(_0x48fbfd){_0x2eeea0['push'](_0x2eeea0['shift']());}}}(a22_0x1597,0x55c53),require(a22_0x10a01b(0x101))['config']());function a22_0x419b(_0x2c374e,_0x372299){const _0x1597d9=a22_0x1597();return a22_0x419b=function(_0x419b1d,_0x19ef18){_0x419b1d=_0x419b1d-0xd0;let _0x196b18=_0x1597d9[_0x419b1d];return _0x196b18;},a22_0x419b(_0x2c374e,_0x372299);}let gridURL='grid.browserstack.com',bsApiUrl=a22_0x10a01b(0x107),agApiUrl=a22_0x10a01b(0xfa);const _env=(process['env'][a22_0x10a01b(0xd8)]||a22_0x10a01b(0x108))['toLowerCase']();if(_env==='staging'||_env==='stag')gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x10a01b(0x11d),agApiUrl=a22_0x10a01b(0xd0);else(_env===a22_0x10a01b(0xe8)||_env==='pre-prod')&&(gridURL=a22_0x10a01b(0xed),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x10a01b(0xd1));exports[a22_0x10a01b(0xf6)]=process[a22_0x10a01b(0xea)][a22_0x10a01b(0xf6)]||gridURL,exports['BS_API_URL']=process['env'][a22_0x10a01b(0xda)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x10a01b(0xea)][a22_0x10a01b(0x125)]||agApiUrl,exports[a22_0x10a01b(0x137)]='wss://'+this[a22_0x10a01b(0x125)]+a22_0x10a01b(0x126),exports[a22_0x10a01b(0xe7)]=a22_0x10a01b(0xdf),exports[a22_0x10a01b(0x114)]=a22_0x10a01b(0x128),exports[a22_0x10a01b(0x134)]='high-scale-grid',exports['AWS']='aws',exports['CLUSTER_DEP_STACK_NAME']=a22_0x10a01b(0xd6),exports[a22_0x10a01b(0x105)]=a22_0x10a01b(0x12d),exports[a22_0x10a01b(0xf3)]=a22_0x10a01b(0x121),exports[a22_0x10a01b(0x11c)]=a22_0x10a01b(0xe1),exports[a22_0x10a01b(0x10e)]='azure',exports[a22_0x10a01b(0x10c)]=a22_0x10a01b(0xe9),exports[a22_0x10a01b(0xf7)]=[this['AWS'],this['AZURE'],this[a22_0x10a01b(0x10c)]];const a22_0x4ee546={};a22_0x4ee546['Key']='browserstack:managedBy',a22_0x4ee546[a22_0x10a01b(0x109)]=a22_0x10a01b(0x100);const a22_0x178195={};a22_0x178195[a22_0x10a01b(0x102)]=a22_0x10a01b(0x133),a22_0x178195[a22_0x10a01b(0x109)]=a22_0x10a01b(0x10a);const common_hst_tags_list=[a22_0x4ee546,a22_0x178195];if(process[a22_0x10a01b(0xea)][a22_0x10a01b(0x11f)]){const parsedTags=process[a22_0x10a01b(0xea)][a22_0x10a01b(0x11f)]['split'](',');parsedTags['forEach'](_0x3be0bd=>{const _0x415a81=a22_0x10a01b,_0x354bd8=_0x3be0bd['split'](':'),_0x2f9a15={};_0x2f9a15[_0x415a81(0x102)]=_0x354bd8[0x0],_0x2f9a15[_0x415a81(0x109)]=_0x354bd8[0x1],common_hst_tags_list[_0x415a81(0x131)](_0x2f9a15);});}exports[a22_0x10a01b(0xdb)]=common_hst_tags_list;const a22_0x33c9bd={};a22_0x33c9bd[a22_0x10a01b(0xeb)]='BrowserStack',a22_0x33c9bd['browserstack:service']=a22_0x10a01b(0x10a),exports['HST_CLUSTER_TAGS']=a22_0x33c9bd,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x52be65={};a22_0x52be65[a22_0x10a01b(0x123)]=a22_0x10a01b(0x112),a22_0x52be65[a22_0x10a01b(0x122)]=a22_0x10a01b(0xe3),a22_0x52be65[a22_0x10a01b(0x136)]=a22_0x10a01b(0x120),a22_0x52be65[a22_0x10a01b(0xfc)]=a22_0x10a01b(0xec),a22_0x52be65[a22_0x10a01b(0x130)]=a22_0x10a01b(0x119),exports['WS_EVENTS']=a22_0x52be65,exports[a22_0x10a01b(0x12b)]={},exports[a22_0x10a01b(0xf4)]=a22_0x10a01b(0x10f);const a22_0x34c8a0={};a22_0x34c8a0[a22_0x10a01b(0x115)]=a22_0x10a01b(0xfe)+this[a22_0x10a01b(0xf4)],a22_0x34c8a0[a22_0x10a01b(0xde)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x10a01b(0xf4)],a22_0x34c8a0[a22_0x10a01b(0xd2)]=a22_0x10a01b(0xdc)+this[a22_0x10a01b(0xf4)],a22_0x34c8a0[a22_0x10a01b(0xf1)]=a22_0x10a01b(0x129)+this[a22_0x10a01b(0xf4)],a22_0x34c8a0[a22_0x10a01b(0x106)]={},a22_0x34c8a0['delete']=a22_0x10a01b(0x117)+this['LINK_MESSAGE'],a22_0x34c8a0['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x10a01b(0xf4)],a22_0x34c8a0[a22_0x10a01b(0xf2)]=a22_0x10a01b(0xe5)+this[a22_0x10a01b(0xf4)],a22_0x34c8a0[a22_0x10a01b(0x132)]=a22_0x10a01b(0xd3)+this[a22_0x10a01b(0xf4)],a22_0x34c8a0[a22_0x10a01b(0x12a)]=a22_0x10a01b(0x10b)+this[a22_0x10a01b(0xf4)],a22_0x34c8a0[a22_0x10a01b(0x106)][a22_0x10a01b(0x115)]=a22_0x10a01b(0xf5)+this['LINK_MESSAGE'],a22_0x34c8a0[a22_0x10a01b(0x106)][a22_0x10a01b(0x118)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x34c8a0[a22_0x10a01b(0x106)][a22_0x10a01b(0xe4)]=a22_0x10a01b(0xfb)+this['LINK_MESSAGE'],exports['HELP_HEADER_MESSAGE']=a22_0x34c8a0,exports['HELP_FOOTER_MESSAGE']=a22_0x10a01b(0xff);const a22_0x407eac={};a22_0x407eac[a22_0x10a01b(0xfd)]=a22_0x10a01b(0x11e),a22_0x407eac['ERROR']='error',a22_0x407eac['INFO']='info',a22_0x407eac[a22_0x10a01b(0xee)]='warning',a22_0x407eac[a22_0x10a01b(0xe2)]=a22_0x10a01b(0x135),a22_0x407eac[a22_0x10a01b(0x11b)]=null,exports[a22_0x10a01b(0x113)]=a22_0x407eac,exports[a22_0x10a01b(0x10d)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x10a01b(0x12e)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x10a01b(0x12f)]=a22_0x10a01b(0xef);const a22_0x644945={};a22_0x644945[a22_0x10a01b(0xe0)]=a22_0x10a01b(0x127);const a22_0x493a83={};a22_0x493a83[a22_0x10a01b(0x110)]=a22_0x644945,exports[a22_0x10a01b(0xe6)]=a22_0x493a83,exports[a22_0x10a01b(0xd7)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x56f32d={};function a22_0x1597(){const _0x1e20e0=['env','browserstack:managedBy','cliRunStarted','grid-preprod.bsstag.com','WARNING','[REDACTED]','2DGnhBu','create','start','CLUSTER_HUB_HA_STACK_NAME','LINK_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','DASHBOARD_ENDPOINT','ALL_SUPPORTED_CLOUD_PROVIDERS','high-scale-grid-cluster','8McAwQv','grid-api.browserstack.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','CLI_RUN_STARTED','SUCCESS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','BrowserStack','dotenv','Key','REGION','us-east-1','CLUSTER_AUTOSCALER_STACK_NAME','list','api.browserstack.com','prod','Value','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','GCP','CLI_ARGS_REGEX','AZURE','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','pre-check','1427760DmpWcp','log','messageTypes','IAM_USER_NAME','root','4176650OBnbJM','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid','cliRunFinished','812313zmlXQd','NULL','TURBOSCALE_DEPLOYMENT','api-devhst.bsstag.com','success','TURBOSCALE_CUSTOM_TAGS','gridUrl','BSTACK-ATS-CLUSTER-HUB-HA','RESOURCES','LOG','22926XBxoRj','AG_API_URL','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','BrowserStackIAMUser','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','pre_check','global_registry','2785470ycOoEW','BSTACK-ATS-CLUSTER-AUTOSCALER','RAW_ARGS_REGEX','REDACTED','CLI_RUN_FINISHED','push','stop','browserstack:service','DEFAULT_GRID_NAME','unknown','GRID_URL','WS_ENDPOINT','grid-api-devhst.bsstag.com','grid-api-preprod.bsstag.com','configure','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','152NucrKx','38071wNtKZM','BSTACK-ATS-CLUSTER','TRIAL_GRID_URL','BROWSERSTACK_ENV','CLUSTER','BS_API_URL','COMMON_HST_TAGS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','4283398puYUWe','init','credentials','grid-profile','browserstack-turboscale-grid','UNKNOWN','resourceInfo','gridProfile','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','MessageDescription','CP_CONFIG_FILE','preprod','gcp'];a22_0x1597=function(){return _0x1e20e0;};return a22_0x1597();}a22_0x56f32d[a22_0x10a01b(0xd9)]=a22_0x10a01b(0xf8),a22_0x56f32d['CLOUD_PROVIDER']='aws',a22_0x56f32d[a22_0x10a01b(0x103)]=a22_0x10a01b(0x104),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x56f32d;
1
+ const a22_0x2fcaee=a22_0x1d63;(function(_0x3cca32,_0x348568){const _0x110219=a22_0x1d63,_0x5b4a8a=_0x3cca32();while(!![]){try{const _0x8b25f=-parseInt(_0x110219(0x148))/0x1*(parseInt(_0x110219(0x132))/0x2)+parseInt(_0x110219(0x15d))/0x3+-parseInt(_0x110219(0xfd))/0x4+-parseInt(_0x110219(0x135))/0x5+-parseInt(_0x110219(0x163))/0x6*(parseInt(_0x110219(0x141))/0x7)+-parseInt(_0x110219(0x151))/0x8*(parseInt(_0x110219(0x107))/0x9)+parseInt(_0x110219(0x115))/0xa;if(_0x8b25f===_0x348568)break;else _0x5b4a8a['push'](_0x5b4a8a['shift']());}catch(_0x395898){_0x5b4a8a['push'](_0x5b4a8a['shift']());}}}(a22_0x370e,0x7f2f2),require(a22_0x2fcaee(0x10e))['config']());let gridURL=a22_0x2fcaee(0xff),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x2fcaee(0x12d);const _env=(process[a22_0x2fcaee(0x122)]['BROWSERSTACK_ENV']||a22_0x2fcaee(0x146))[a22_0x2fcaee(0x117)]();if(_env===a22_0x2fcaee(0x145)||_env===a22_0x2fcaee(0x106))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x2fcaee(0x103);else(_env===a22_0x2fcaee(0x130)||_env===a22_0x2fcaee(0xfb))&&(gridURL=a22_0x2fcaee(0x15a),bsApiUrl=a22_0x2fcaee(0x156),agApiUrl=a22_0x2fcaee(0x140));exports[a22_0x2fcaee(0x108)]=process[a22_0x2fcaee(0x122)][a22_0x2fcaee(0x108)]||gridURL,exports[a22_0x2fcaee(0x127)]=process[a22_0x2fcaee(0x122)][a22_0x2fcaee(0x127)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x2fcaee(0x122)][a22_0x2fcaee(0x150)]||agApiUrl,exports[a22_0x2fcaee(0x10f)]=a22_0x2fcaee(0x123)+this[a22_0x2fcaee(0x150)]+a22_0x2fcaee(0x13b),exports['CP_CONFIG_FILE']='credentials',exports[a22_0x2fcaee(0x11b)]=a22_0x2fcaee(0x14d),exports[a22_0x2fcaee(0x10d)]=a22_0x2fcaee(0x125),exports[a22_0x2fcaee(0x114)]=a22_0x2fcaee(0x102),exports[a22_0x2fcaee(0xfc)]=a22_0x2fcaee(0x121),exports[a22_0x2fcaee(0x133)]=a22_0x2fcaee(0x128),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']=a22_0x2fcaee(0x15b),exports['AZURE']='azure',exports[a22_0x2fcaee(0x142)]=a22_0x2fcaee(0x112),exports[a22_0x2fcaee(0x11c)]=[this[a22_0x2fcaee(0x114)],this[a22_0x2fcaee(0x15e)],this['GCP']];const a22_0xcafef8={};a22_0xcafef8[a22_0x2fcaee(0x116)]=a22_0x2fcaee(0x155),a22_0xcafef8[a22_0x2fcaee(0x157)]=a22_0x2fcaee(0x152);const a22_0x1e7233={};a22_0x1e7233[a22_0x2fcaee(0x116)]='browserstack:service',a22_0x1e7233[a22_0x2fcaee(0x157)]='BrowserStack-Automate-TurboScale';function a22_0x1d63(_0x3ccd75,_0xa8262b){const _0x370eb4=a22_0x370e();return a22_0x1d63=function(_0x1d6385,_0x1f6a98){_0x1d6385=_0x1d6385-0xfa;let _0x12a47c=_0x370eb4[_0x1d6385];return _0x12a47c;},a22_0x1d63(_0x3ccd75,_0xa8262b);}const common_hst_tags_list=[a22_0xcafef8,a22_0x1e7233];if(process[a22_0x2fcaee(0x122)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x2fcaee(0x122)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x2fcaee(0x153)](',');parsedTags['forEach'](_0x404f1f=>{const _0x8c6609=a22_0x2fcaee,_0x42265a=_0x404f1f[_0x8c6609(0x153)](':'),_0x324fe3={};_0x324fe3[_0x8c6609(0x116)]=_0x42265a[0x0],_0x324fe3['Value']=_0x42265a[0x1],common_hst_tags_list[_0x8c6609(0x14a)](_0x324fe3);});}function a22_0x370e(){const _0x12b657=['BSTACK-ATS-CLUSTER-AUTOSCALER','global_registry','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','LINK_MESSAGE','grid-api.browserstack.com','LOG','CLI_RUN_FINISHED','preprod','delete','70978lahUDV','CLUSTER_AUTOSCALER_STACK_NAME','REDACTED','2042460SlGxyS','connect','UNKNOWN','root','grid-profile','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','SUPPORTED_CLOUD_PROVIDERS','warning','GRID_URL','CLI_ARGS_REGEX','grid-api-preprod.bsstag.com','7266847RsNmLm','GCP','unknown','CLI_RUN_STARTED','staging','prod','WARNING','23kWbfwU','error','push','BrowserStack-Automate-TurboScale','pre_check','BrowserStackIAMUser','TRIAL_GRID_URL','CLUSTER','AG_API_URL','88GxsPck','BrowserStack','split','cliRunStarted','browserstack:managedBy','api-preprod.bsstag.com','Value','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','log','grid-preprod.bsstag.com','browserstack-turboscale-grid','SUCCESS','2972625NHJaBf','AZURE','CLOUD_PROVIDER','[REDACTED]','list','gridUrl','6FwMDjI','success','HST_CLUSTER_TAGS','DEFAULT_CLUSTER_DETAILS','pre-prod','CLUSTER_DEP_STACK_NAME','447052imhNsH','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid.browserstack.com','messageTypes','HELP_FOOTER_MESSAGE','aws','grid-api-devhst.bsstag.com','WS_EVENTS','browserstack:service','stag','608112FpbMTn','DASHBOARD_ENDPOINT','init','REGION','HELP_HEADER_MESSAGE','grid','DEFAULT_GRID_NAME','dotenv','WS_ENDPOINT','start','stop','gcp','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','AWS','26479420IElNdw','Key','toLowerCase','gridProfile','RAW_ARGS_REGEX','us-east-1','IAM_USER_NAME','ALL_SUPPORTED_CLOUD_PROVIDERS','ERROR','high-scale-grid-cluster','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','BSTACK-ATS-CLUSTER','env','wss://','RESOURCES','high-scale-grid','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','BS_API_URL'];a22_0x370e=function(){return _0x12b657;};return a22_0x370e();}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x522ff9={};a22_0x522ff9[a22_0x2fcaee(0x155)]='BrowserStack',a22_0x522ff9[a22_0x2fcaee(0x105)]=a22_0x2fcaee(0x14b),exports[a22_0x2fcaee(0x165)]=a22_0x522ff9,exports[a22_0x2fcaee(0x13c)]=[this[a22_0x2fcaee(0x114)]];const a22_0x2f5714={};a22_0x2f5714[a22_0x2fcaee(0x12e)]=a22_0x2fcaee(0x159),a22_0x2f5714[a22_0x2fcaee(0x124)]='resourceInfo',a22_0x2f5714[a22_0x2fcaee(0x13e)]=a22_0x2fcaee(0x162),a22_0x2f5714[a22_0x2fcaee(0x144)]=a22_0x2fcaee(0x154),a22_0x2f5714[a22_0x2fcaee(0x12f)]='cliRunFinished',exports[a22_0x2fcaee(0x104)]=a22_0x2f5714,exports[a22_0x2fcaee(0x129)]={},exports[a22_0x2fcaee(0x12c)]=a22_0x2fcaee(0x126);const a22_0x4feed3={};a22_0x4feed3[a22_0x2fcaee(0x138)]=a22_0x2fcaee(0x12a)+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x109)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x2fcaee(0x12c)],a22_0x4feed3['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x4feed3['create']='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x161)]={},a22_0x4feed3[a22_0x2fcaee(0x131)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4feed3[a22_0x2fcaee(0x136)]=a22_0x2fcaee(0x11f)+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x110)]=a22_0x2fcaee(0xfe)+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x111)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x14c)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4feed3[a22_0x2fcaee(0x161)][a22_0x2fcaee(0x138)]=a22_0x2fcaee(0x120)+this['LINK_MESSAGE'],a22_0x4feed3[a22_0x2fcaee(0x161)][a22_0x2fcaee(0x10c)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x161)][a22_0x2fcaee(0x118)]=a22_0x2fcaee(0x158)+this['LINK_MESSAGE'],exports[a22_0x2fcaee(0x10b)]=a22_0x4feed3,exports[a22_0x2fcaee(0x101)]=a22_0x2fcaee(0x12b);const a22_0x5e9ed8={};a22_0x5e9ed8[a22_0x2fcaee(0x15c)]=a22_0x2fcaee(0x164),a22_0x5e9ed8[a22_0x2fcaee(0x11d)]=a22_0x2fcaee(0x149),a22_0x5e9ed8['INFO']='info',a22_0x5e9ed8[a22_0x2fcaee(0x147)]=a22_0x2fcaee(0x13d),a22_0x5e9ed8[a22_0x2fcaee(0x137)]=a22_0x2fcaee(0x143),a22_0x5e9ed8['NULL']=null,exports[a22_0x2fcaee(0x100)]=a22_0x5e9ed8,exports[a22_0x2fcaee(0x13f)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2fcaee(0x119)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2fcaee(0x134)]=a22_0x2fcaee(0x160);const a22_0x20ebce={};a22_0x20ebce[a22_0x2fcaee(0x139)]=a22_0x2fcaee(0x13a);const a22_0x3f0fa9={};a22_0x3f0fa9['pre-check']=a22_0x20ebce,exports['MessageDescription']=a22_0x3f0fa9,exports[a22_0x2fcaee(0x14e)]=a22_0x2fcaee(0x113);const a22_0x13f510={};a22_0x13f510[a22_0x2fcaee(0x14f)]=a22_0x2fcaee(0x11e),a22_0x13f510[a22_0x2fcaee(0x15f)]=a22_0x2fcaee(0x102),a22_0x13f510[a22_0x2fcaee(0x10a)]=a22_0x2fcaee(0x11a),exports[a22_0x2fcaee(0xfa)]=a22_0x13f510;
@@ -1 +1 @@
1
- const a23_0x3e9951=a23_0x3083;(function(_0x14ed03,_0x119920){const _0x2f297c=a23_0x3083,_0x3f0950=_0x14ed03();while(!![]){try{const _0x3125fd=-parseInt(_0x2f297c(0x193))/0x1*(-parseInt(_0x2f297c(0x192))/0x2)+-parseInt(_0x2f297c(0x1a1))/0x3*(-parseInt(_0x2f297c(0x1a0))/0x4)+parseInt(_0x2f297c(0x18f))/0x5+-parseInt(_0x2f297c(0x18e))/0x6*(parseInt(_0x2f297c(0x18b))/0x7)+parseInt(_0x2f297c(0x19e))/0x8*(-parseInt(_0x2f297c(0x18d))/0x9)+parseInt(_0x2f297c(0x194))/0xa+-parseInt(_0x2f297c(0x191))/0xb;if(_0x3125fd===_0x119920)break;else _0x3f0950['push'](_0x3f0950['shift']());}catch(_0x42c0b7){_0x3f0950['push'](_0x3f0950['shift']());}}}(a23_0x21e0,0x3b33a));const winston=require('winston'),fs=require('fs'),path=require(a23_0x3e9951(0x19f)),logDir='log';!fs['existsSync'](logDir)&&fs[a23_0x3e9951(0x196)](logDir);const a23_0x5a2c25={};function a23_0x3083(_0x347900,_0x5dd1a3){const _0x21e0d7=a23_0x21e0();return a23_0x3083=function(_0x3083f8,_0x55a8ce){_0x3083f8=_0x3083f8-0x18a;let _0x46a1a7=_0x21e0d7[_0x3083f8];return _0x46a1a7;},a23_0x3083(_0x347900,_0x5dd1a3);}a23_0x5a2c25['format']='YYYY-MM-DD\x20HH:mm:ss';const a23_0x38ce01={};a23_0x38ce01['level']=!![];const a23_0xee6ca0={};a23_0xee6ca0['name']='console.info',exports[a23_0x3e9951(0x19d)]=new winston[(a23_0x3e9951(0x198))]({'format':winston['format'][a23_0x3e9951(0x19b)](winston[a23_0x3e9951(0x18c)][a23_0x3e9951(0x190)](a23_0x5a2c25),winston['format'][a23_0x3e9951(0x1a2)](a23_0x38ce01),winston[a23_0x3e9951(0x18c)][a23_0x3e9951(0x1a5)](_0x38b6f3=>_0x38b6f3['timestamp']+a23_0x3e9951(0x19c)+_0x38b6f3[a23_0x3e9951(0x19a)]+':\x20'+_0x38b6f3['message'])),'transports':[new winston[(a23_0x3e9951(0x195))][(a23_0x3e9951(0x1a3))](a23_0xee6ca0),new winston[(a23_0x3e9951(0x195))][(a23_0x3e9951(0x199))]({'filename':path[a23_0x3e9951(0x1a6)](logDir,'events.log'),'level':a23_0x3e9951(0x1a4)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3e9951(0x195))][(a23_0x3e9951(0x199))]({'filename':path[a23_0x3e9951(0x1a6)](logDir,a23_0x3e9951(0x197)),'level':a23_0x3e9951(0x1a4)})]};exports[a23_0x3e9951(0x18a)]=new winston['createLogger'](winstonFileLoggerParams);function a23_0x21e0(){const _0x5e2888=['4jMXJBa','1381791UatWjq','colorize','Console','debug','printf','join','fileLogger','1981HMGnrF','format','157842vvQNtr','5034szOTIl','1181310GwiPyb','timestamp','7667396KMXeIL','386RUDyWP','1002IhqxcW','3042560VDjxUP','transports','mkdirSync','usage.log','createLogger','File','level','combine','\x20-\x20','logger','8TLijbw','path'];a23_0x21e0=function(){return _0x5e2888;};return a23_0x21e0();}
1
+ const a23_0x2bd3ba=a23_0x52cc;function a23_0x52cc(_0xf68e00,_0x2a2bdf){const _0x8d4dee=a23_0x8d4d();return a23_0x52cc=function(_0x52cc94,_0x96a84e){_0x52cc94=_0x52cc94-0x115;let _0x19e8d4=_0x8d4dee[_0x52cc94];return _0x19e8d4;},a23_0x52cc(_0xf68e00,_0x2a2bdf);}(function(_0x55010a,_0x5b40b3){const _0x94d412=a23_0x52cc,_0x2b2570=_0x55010a();while(!![]){try{const _0x1df366=parseInt(_0x94d412(0x128))/0x1*(-parseInt(_0x94d412(0x137))/0x2)+-parseInt(_0x94d412(0x115))/0x3*(-parseInt(_0x94d412(0x122))/0x4)+parseInt(_0x94d412(0x12a))/0x5*(-parseInt(_0x94d412(0x129))/0x6)+parseInt(_0x94d412(0x131))/0x7*(parseInt(_0x94d412(0x11e))/0x8)+-parseInt(_0x94d412(0x117))/0x9+-parseInt(_0x94d412(0x124))/0xa+parseInt(_0x94d412(0x126))/0xb*(parseInt(_0x94d412(0x135))/0xc);if(_0x1df366===_0x5b40b3)break;else _0x2b2570['push'](_0x2b2570['shift']());}catch(_0x3c2a6e){_0x2b2570['push'](_0x2b2570['shift']());}}}(a23_0x8d4d,0x3bc7e));const winston=require('winston'),fs=require('fs'),path=require(a23_0x2bd3ba(0x11f)),logDir=a23_0x2bd3ba(0x12d);!fs[a23_0x2bd3ba(0x118)](logDir)&&fs[a23_0x2bd3ba(0x11c)](logDir);const a23_0x2862d0={};function a23_0x8d4d(){const _0x56cf0d=['mkdirSync','Console','376FjyDcr','path','console.info','usage.log','76eNHeXg','File','3089050rurxAh','timestamp','11KMQKzu','level','151LezqvC','2749902gNwwCC','5SvaXoS','combine','format','log','transports','events.log','colorize','10507iDFxtA','fileLogger','join','message','10631388vuGEnI','createLogger','864XaCqkA','33687yHPmnK','logger','832779IVcSjc','existsSync','printf','\x20-\x20','debug'];a23_0x8d4d=function(){return _0x56cf0d;};return a23_0x8d4d();}a23_0x2862d0[a23_0x2bd3ba(0x12c)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x219d1a={};a23_0x219d1a[a23_0x2bd3ba(0x127)]=!![];const a23_0x4b9ec6={};a23_0x4b9ec6['name']=a23_0x2bd3ba(0x120),exports[a23_0x2bd3ba(0x116)]=new winston[(a23_0x2bd3ba(0x136))]({'format':winston[a23_0x2bd3ba(0x12c)][a23_0x2bd3ba(0x12b)](winston[a23_0x2bd3ba(0x12c)][a23_0x2bd3ba(0x125)](a23_0x2862d0),winston['format'][a23_0x2bd3ba(0x130)](a23_0x219d1a),winston[a23_0x2bd3ba(0x12c)][a23_0x2bd3ba(0x119)](_0x5d64d2=>_0x5d64d2[a23_0x2bd3ba(0x125)]+a23_0x2bd3ba(0x11a)+_0x5d64d2[a23_0x2bd3ba(0x127)]+':\x20'+_0x5d64d2[a23_0x2bd3ba(0x134)])),'transports':[new winston[(a23_0x2bd3ba(0x12e))][(a23_0x2bd3ba(0x11d))](a23_0x4b9ec6),new winston[(a23_0x2bd3ba(0x12e))][(a23_0x2bd3ba(0x123))]({'filename':path[a23_0x2bd3ba(0x133)](logDir,a23_0x2bd3ba(0x12f)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x2bd3ba(0x123))]({'filename':path['join'](logDir,a23_0x2bd3ba(0x121)),'level':a23_0x2bd3ba(0x11b)})]};exports[a23_0x2bd3ba(0x132)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x4330(){const _0x232a4c=['2ExLdXI','682DzcQfR','77YrrsyC','./config/constants','help','698736MDpSAO','commands','69060YGrxMi','root','demandCommand','2845025CyVvLP','tWWwa','495536gsGbHN','usage','XciGU','env','1066316VNqAhN','2698359WRgrgp','epilogue','6fQjvYT','1936791ATQXko'];a24_0x4330=function(){return _0x232a4c;};return a24_0x4330();}function a24_0x5b04(_0x2a04bd,_0xabff9f){const _0x4330d2=a24_0x4330();return a24_0x5b04=function(_0x5b0437,_0x597d00){_0x5b0437=_0x5b0437-0x15f;let _0x18281b=_0x4330d2[_0x5b0437];return _0x18281b;},a24_0x5b04(_0x2a04bd,_0xabff9f);}const a24_0x22ac7c=a24_0x5b04;(function(_0x1806b4,_0x1afe63){const _0x43a294=a24_0x5b04,_0x32f880=_0x1806b4();while(!![]){try{const _0x1480af=-parseInt(_0x43a294(0x170))/0x1*(-parseInt(_0x43a294(0x164))/0x2)+parseInt(_0x43a294(0x160))/0x3+-parseInt(_0x43a294(0x15f))/0x4+parseInt(_0x43a294(0x16e))/0x5*(parseInt(_0x43a294(0x162))/0x6)+parseInt(_0x43a294(0x166))/0x7*(-parseInt(_0x43a294(0x169))/0x8)+parseInt(_0x43a294(0x163))/0x9+-parseInt(_0x43a294(0x16b))/0xa*(parseInt(_0x43a294(0x165))/0xb);if(_0x1480af===_0x1afe63)break;else _0x32f880['push'](_0x32f880['shift']());}catch(_0x24174c){_0x32f880['push'](_0x32f880['shift']());}}}(a24_0x4330,0x7fda0));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x22ac7c(0x167));process[a24_0x22ac7c(0x173)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x2ef73a){const _0x1b3549=a24_0x22ac7c,_0x33d1a3={};_0x33d1a3[_0x1b3549(0x16f)]=_0x1b3549(0x16a),_0x33d1a3['XciGU']=_0x1b3549(0x168);const _0x52274c=_0x33d1a3;_0x2ef73a[_0x1b3549(0x171)](HELP_HEADER_MESSAGE[_0x1b3549(0x16c)])['commandDir'](_0x52274c[_0x1b3549(0x16f)])[_0x1b3549(0x16d)]()[_0x1b3549(0x168)](_0x52274c[_0x1b3549(0x172)])[_0x1b3549(0x161)](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a24_0x512bec=a24_0x1bbc;function a24_0x3c73(){const _0x533e47=['epilogue','957780IFidqM','1375437ThHVzu','16ighrhh','fvnBT','349914zUOPtj','demandCommand','168766VWikvd','1173966pYrrBA','exports','994265MdpmHd','env','ofwcp','usage','1112064HmTVud','help','root'];a24_0x3c73=function(){return _0x533e47;};return a24_0x3c73();}(function(_0xb60c13,_0x33dbcf){const _0x306626=a24_0x1bbc,_0x46e845=_0xb60c13();while(!![]){try{const _0x2beac5=parseInt(_0x306626(0xb5))/0x1+-parseInt(_0x306626(0xb3))/0x2+-parseInt(_0x306626(0xbc))/0x3+parseInt(_0x306626(0xaf))/0x4+parseInt(_0x306626(0xb8))/0x5+-parseInt(_0x306626(0xb6))/0x6+parseInt(_0x306626(0xb0))/0x7*(parseInt(_0x306626(0xb1))/0x8);if(_0x2beac5===_0x33dbcf)break;else _0x46e845['push'](_0x46e845['shift']());}catch(_0x4323af){_0x46e845['push'](_0x46e845['shift']());}}}(a24_0x3c73,0x3f2b4));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x512bec(0xb9)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function a24_0x1bbc(_0x217127,_0x410d48){const _0x3c73f6=a24_0x3c73();return a24_0x1bbc=function(_0x1bbc41,_0x3fdb82){_0x1bbc41=_0x1bbc41-0xaf;let _0x39294f=_0x3c73f6[_0x1bbc41];return _0x39294f;},a24_0x1bbc(_0x217127,_0x410d48);}function run(_0x3dd3ae){const _0x2f6ca9=a24_0x512bec,_0x5e3764={};_0x5e3764[_0x2f6ca9(0xba)]='commands',_0x5e3764[_0x2f6ca9(0xb2)]=_0x2f6ca9(0xbd);const _0x359aa1=_0x5e3764;_0x3dd3ae[_0x2f6ca9(0xbb)](HELP_HEADER_MESSAGE[_0x2f6ca9(0xbe)])['commandDir'](_0x359aa1[_0x2f6ca9(0xba)])[_0x2f6ca9(0xb4)]()[_0x2f6ca9(0xbd)](_0x359aa1[_0x2f6ca9(0xb2)])[_0x2f6ca9(0xbf)](HELP_FOOTER_MESSAGE);}module[a24_0x512bec(0xb7)]=run;