browserstack-node-sdk 1.65.5 → 1.65.6

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 (216) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/integrations/command.js +1 -1
  53. package/src/bin/integrations/constants.js +1 -1
  54. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/jasmine/command.js +1 -1
  56. package/src/bin/jasmine/test.setup.js +1 -1
  57. package/src/bin/jasmine/testRunMap.js +1 -1
  58. package/src/bin/jest/command.js +1 -1
  59. package/src/bin/jest/customImplements/customCircus.js +1 -1
  60. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  61. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  62. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  63. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  64. package/src/bin/jest/jest.setup.js +1 -1
  65. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  66. package/src/bin/jest/test-observability/helper.js +1 -1
  67. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  68. package/src/bin/jest/test-observability/test-details.js +1 -1
  69. package/src/bin/jest/test.setup.js +1 -1
  70. package/src/bin/jest/test_before.setup.js +1 -1
  71. package/src/bin/launcher/launcher.js +1 -1
  72. package/src/bin/load/index.js +1 -1
  73. package/src/bin/load/loadErrors.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  79. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  80. package/src/bin/mocha/test.setup.js +1 -1
  81. package/src/bin/newman/command.js +1 -1
  82. package/src/bin/newman/helper.js +1 -1
  83. package/src/bin/newman/reporter/index.js +1 -1
  84. package/src/bin/newman/scriptRunner.js +1 -1
  85. package/src/bin/nightwatch/command.js +1 -1
  86. package/src/bin/node-generic/client.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/reporterArgs.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  138. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  142. package/src/bin/v2/grpcClient.js +1 -1
  143. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/trackedContext.js +1 -1
  146. package/src/bin/v2/instances/trackedInstance.js +1 -1
  147. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  148. package/src/bin/v2/modules/baseModule.js +1 -1
  149. package/src/bin/v2/modules/loadTestModule.js +1 -1
  150. package/src/bin/v2/modules/observabilityModule.js +1 -1
  151. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  152. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testhubModule.js +1 -1
  155. package/src/bin/v2/sdkErrorHandler.js +1 -1
  156. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  157. package/src/bin/v2/state/hookState.js +1 -1
  158. package/src/bin/v2/state/testFrameworkState.js +1 -1
  159. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  160. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  161. package/src/bin/v2/utils/jest-utils.js +1 -1
  162. package/src/bin/vanilla-js/command.js +1 -1
  163. package/src/browserStackSdk.js +1 -1
  164. package/src/helpers/BrowserStackSetup.js +1 -1
  165. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  166. package/src/helpers/accessibility-automation/constants.js +1 -1
  167. package/src/helpers/accessibility-automation/helper.js +1 -1
  168. package/src/helpers/accessibility-automation/scripts.js +1 -1
  169. package/src/helpers/ats/constants.js +1 -1
  170. package/src/helpers/ats/helper.js +1 -1
  171. package/src/helpers/caCertHelper.js +1 -1
  172. package/src/helpers/capsMapping.js +1 -1
  173. package/src/helpers/central-scanner/constants.js +1 -1
  174. package/src/helpers/central-scanner/helpers.js +1 -1
  175. package/src/helpers/classLogger.js +1 -1
  176. package/src/helpers/driverInitErrorReporter.js +1 -1
  177. package/src/helpers/globals.js +1 -1
  178. package/src/helpers/helper.js +1 -1
  179. package/src/helpers/logger.js +1 -1
  180. package/src/helpers/metadata.js +1 -1
  181. package/src/helpers/patchHelper.js +1 -1
  182. package/src/helpers/patchHelpers.js +1 -1
  183. package/src/helpers/percy/Percy.js +1 -1
  184. package/src/helpers/percy/PercyBinary.js +1 -1
  185. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  186. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  187. package/src/helpers/percy/PercySDK.js +1 -1
  188. package/src/helpers/percy/index.js +1 -1
  189. package/src/helpers/percy/utils.js +1 -1
  190. package/src/helpers/performance/constants.js +1 -1
  191. package/src/helpers/performance/performance-tester.js +1 -1
  192. package/src/helpers/playwright-helper.js +1 -1
  193. package/src/helpers/processHelper.js +1 -1
  194. package/src/helpers/puppeteer-helper.js +1 -1
  195. package/src/helpers/request-spy.js +1 -1
  196. package/src/helpers/setKeepAlive.js +1 -1
  197. package/src/helpers/stackFrameUtils.js +1 -1
  198. package/src/helpers/test-observability/constants.js +1 -1
  199. package/src/helpers/test-observability/error-handler.js +1 -1
  200. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  201. package/src/helpers/test-observability/sessionHandler.js +1 -1
  202. package/src/helpers/test-observability/utils.js +1 -1
  203. package/src/helpers/test-orchestration/constants.js +1 -1
  204. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  205. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  206. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  207. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  208. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  209. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  210. package/src/helpers/testhub/constants.js +1 -1
  211. package/src/helpers/testhub/testhubHandler.js +1 -1
  212. package/src/helpers/testhub/utils.js +1 -1
  213. package/src/helpers/utilities.js +1 -1
  214. package/src/helpers/w3cMapping.js +1 -1
  215. package/src/hubAllocationMethods.js +1 -1
  216. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x18cf(_0x1893b2,_0x35ae97){const _0x2864f7=a15_0x2864();return a15_0x18cf=function(_0x18cfa8,_0x2b2ece){_0x18cfa8=_0x18cfa8-0x82;let _0x131e33=_0x2864f7[_0x18cfa8];return _0x131e33;},a15_0x18cf(_0x1893b2,_0x35ae97);}const a15_0x273da1=a15_0x18cf;(function(_0x8f0d6a,_0x402779){const _0x79032b=a15_0x18cf,_0x3207c9=_0x8f0d6a();while(!![]){try{const _0x3c0b4c=parseInt(_0x79032b(0xc0))/0x1*(parseInt(_0x79032b(0xdb))/0x2)+parseInt(_0x79032b(0xc5))/0x3+parseInt(_0x79032b(0xa5))/0x4+parseInt(_0x79032b(0xa1))/0x5*(parseInt(_0x79032b(0x89))/0x6)+parseInt(_0x79032b(0xd4))/0x7*(-parseInt(_0x79032b(0xc3))/0x8)+parseInt(_0x79032b(0xd2))/0x9*(-parseInt(_0x79032b(0xbe))/0xa)+-parseInt(_0x79032b(0x84))/0xb;if(_0x3c0b4c===_0x402779)break;else _0x3207c9['push'](_0x3207c9['shift']());}catch(_0x2e25a2){_0x3207c9['push'](_0x3207c9['shift']());}}}(a15_0x2864,0xeedb0));const fs=require('fs'),got=require(a15_0x273da1(0xc2)),{table}=require('table'),{v4:uuidv4}=require(a15_0x273da1(0x87)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x273da1(0xb3)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x273da1(0xa9));exports[a15_0x273da1(0xcd)]=a15_0x273da1(0xde),exports[a15_0x273da1(0xaf)]=a15_0x273da1(0xdc),exports[a15_0x273da1(0xce)]=function(_0x2b3ee0){const _0x20a4a5=a15_0x273da1,_0x25b561={};_0x25b561[_0x20a4a5(0xb9)]=_0x20a4a5(0x82),_0x25b561[_0x20a4a5(0xcb)]=_0x20a4a5(0x8e),_0x25b561[_0x20a4a5(0xcc)]=_0x20a4a5(0x9f);const _0x33f75c=_0x25b561,_0x2a60be={};_0x2a60be[_0x20a4a5(0xb5)]=_0x33f75c[_0x20a4a5(0xb9)],_0x2a60be['type']=_0x33f75c[_0x20a4a5(0xcb)];const _0x4fdbb9={};return _0x4fdbb9[_0x20a4a5(0xbb)]=_0x2a60be,_0x2b3ee0[_0x20a4a5(0xbf)](HELP_HEADER_MESSAGE[_0x20a4a5(0xcf)][_0x20a4a5(0xad)])[_0x20a4a5(0xe0)](HELP_FOOTER_MESSAGE)['options'](_0x4fdbb9)['help'](_0x33f75c[_0x20a4a5(0xcc)])[_0x20a4a5(0x97)];},exports['handler']=async function(_0x47b450){const _0x578590=a15_0x273da1,_0x42c0f2={'GYhiQ':function(_0x583d1c){return _0x583d1c();},'MWKNt':_0x578590(0x9c),'wJpRC':function(_0xa749f2,_0x328186,_0x2b8eb8,_0x321da1,_0x1d0d77,_0x3f7e28,_0x5db8ad){return _0xa749f2(_0x328186,_0x2b8eb8,_0x321da1,_0x1d0d77,_0x3f7e28,_0x5db8ad);},'uwTgD':_0x578590(0x91),'qHGcH':_0x578590(0x98),'djsFg':function(_0x4b4e1e){return _0x4b4e1e();},'RugVn':_0x578590(0x8c),'Dcjqf':function(_0x2e2d39,_0x7401f1,_0x54a070){return _0x2e2d39(_0x7401f1,_0x54a070);},'zoMWO':function(_0x3871ea,_0x5aedf1,_0x5d609d,_0x5afb22,_0x3d762f,_0x2a8221,_0xc30c8c){return _0x3871ea(_0x5aedf1,_0x5d609d,_0x5afb22,_0x3d762f,_0x2a8221,_0xc30c8c);},'QgnYd':function(_0x1d320d,_0x428549,_0x29d1b1){return _0x1d320d(_0x428549,_0x29d1b1);},'sVIng':function(_0x1ae440,_0x6555d3){return _0x1ae440!==_0x6555d3;},'YCemK':function(_0x3b1812,_0x3941c6){return _0x3b1812===_0x3941c6;},'JJSDD':_0x578590(0xa2),'CDjhI':_0x578590(0xbd),'zkzJt':_0x578590(0xac),'IrNrb':_0x578590(0xdd),'PVzNJ':_0x578590(0xbc),'PyrnW':_0x578590(0xb6),'tcewi':'cluster-name','vecnu':function(_0x85d2cc,_0x30c9bf){return _0x85d2cc(_0x30c9bf);},'sawYy':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kZssK':_0x578590(0x8b),'AFfhP':function(_0x77540a,_0x56ffc6,_0x62e356,_0x4cb476,_0x17ce5b,_0x2c1427,_0x359570){return _0x77540a(_0x56ffc6,_0x62e356,_0x4cb476,_0x17ce5b,_0x2c1427,_0x359570);},'RCJqn':'server-error','wDXhY':function(_0x1b8d89,_0x238566,_0x423dab,_0x3e262b,_0x512762,_0x9008a3,_0x2672ac){return _0x1b8d89(_0x238566,_0x423dab,_0x3e262b,_0x512762,_0x9008a3,_0x2672ac);},'Zhvdx':_0x578590(0xda)};try{global_registry[_0x578590(0xc4)]=_0x42c0f2[_0x578590(0xa7)](uuidv4);!fs[_0x578590(0xa0)](_0x42c0f2['GYhiQ'](getCredentialsPath))&&(console[_0x578590(0xd6)](_0x42c0f2[_0x578590(0x96)]),await _0x42c0f2[_0x578590(0xca)](sendInstrumentationEvent,_0x47b450,_0x42c0f2['uwTgD'],messageTypes[_0x578590(0x9a)],_0x42c0f2[_0x578590(0xba)],null,_0x47b450),process[_0x578590(0xd1)](0x1));const _0x57eacc=JSON[_0x578590(0xd7)](fs[_0x578590(0xb7)](_0x42c0f2[_0x578590(0xae)](getCredentialsPath)));let _0x239cfc=_0x578590(0x9e)+AG_API_URL+_0x578590(0x9d);_0x47b450[_0x578590(0x95)]&&(_0x239cfc='https://'+AG_API_URL+_0x578590(0xd3));const _0x149659={'method':_0x42c0f2[_0x578590(0xb2)],'headers':_0x42c0f2[_0x578590(0xc8)](getAuthHeader,_0x57eacc['Browserstack'][_0x578590(0xaa)],_0x57eacc['Browserstack'][_0x578590(0xc9)]),'throwHttpErrors':![]};global_registry[_0x578590(0x94)]=_0x57eacc[_0x578590(0x8f)][_0x578590(0xaa)],global_registry[_0x578590(0xa4)]=_0x57eacc[_0x578590(0x8f)][_0x578590(0xc9)],_0x42c0f2[_0x578590(0xa8)](sendInstrumentationEvent,_0x47b450,_0x42c0f2[_0x578590(0xa3)],messageTypes['INFO'],null,null,_0x47b450);const _0x3a36b6=await _0x42c0f2[_0x578590(0xd5)](got,_0x239cfc,_0x149659);if(_0x42c0f2[_0x578590(0xd8)](_0x3a36b6,null)&&_0x42c0f2[_0x578590(0xd8)](_0x3a36b6,undefined)&&_0x42c0f2[_0x578590(0x88)](_0x3a36b6['statusCode'],0xc8)){const _0x108297=JSON[_0x578590(0xd7)](_0x3a36b6[_0x578590(0xa6)]);console[_0x578590(0xc6)](_0x42c0f2['JJSDD']);const _0x568cc6=[];_0x568cc6[_0x578590(0xc7)]([_0x42c0f2[_0x578590(0xb0)],_0x42c0f2['zkzJt'],_0x42c0f2[_0x578590(0x85)],_0x42c0f2[_0x578590(0x92)],_0x42c0f2[_0x578590(0xb8)],_0x42c0f2[_0x578590(0x8d)]]),_0x108297[_0x578590(0xd0)](_0x1172f2=>{const _0x239a5f=_0x578590;_0x568cc6['push']([_0x1172f2['id'],_0x1172f2[_0x239a5f(0xab)],_0x1172f2[_0x239a5f(0xdd)],_0x1172f2[_0x239a5f(0xbc)],_0x1172f2[_0x239a5f(0xb6)],_0x1172f2[_0x239a5f(0x9b)]]);}),console['log'](_0x42c0f2[_0x578590(0xdf)](table,_0x568cc6)),process[_0x578590(0xd1)](0x0);}_0x42c0f2[_0x578590(0x88)](_0x3a36b6[_0x578590(0x83)],0x191)&&(console['error'](_0x42c0f2[_0x578590(0x86)]),await _0x42c0f2[_0x578590(0xca)](sendInstrumentationEvent,_0x47b450,_0x42c0f2[_0x578590(0xa3)],messageTypes[_0x578590(0x9a)],_0x42c0f2['kZssK'],null,_0x47b450),process['exit'](0x1)),console['error'](_0x578590(0x93)+JSON[_0x578590(0x90)](_0x3a36b6)),await _0x42c0f2[_0x578590(0xb1)](sendInstrumentationEvent,_0x47b450,_0x42c0f2['uwTgD'],messageTypes[_0x578590(0x9a)],_0x42c0f2[_0x578590(0xc1)],_0x3a36b6,_0x47b450),process[_0x578590(0xd1)](0x1);}catch(_0xf0300d){console['error'](_0x578590(0x99)+_0xf0300d[_0x578590(0x8a)]),await _0x42c0f2[_0x578590(0xd9)](sendInstrumentationEvent,_0x47b450,_0x42c0f2['uwTgD'],messageTypes[_0x578590(0x9a)],_0x42c0f2[_0x578590(0xb4)],_0xf0300d,_0x47b450),process['exit'](0x1);}};function a15_0x2864(){const _0x38b214=['vecnu','epilogue','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','statusCode','40898264baUDvb','IrNrb','sawYy','uuid','YCemK','10187274cgzEgj','stack','unauthorised','GET','tcewi','boolean','Browserstack','stringify','list-grids-called','PVzNJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackUsername','allGrids','MWKNt','argv','init-not-called','Failed\x20to\x20list\x20resources!\x20Error:\x20','ERROR','clusterName','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-grids','https://','help','existsSync','5ISWkqF','\x0aFound\x20the\x20following\x20grids:\x0a','uwTgD','bstackAccesskey','6701684WmWQCA','body','GYhiQ','zoMWO','../../utils/instrumentationUtils','username','name','grid-name','grid','djsFg','desc','CDjhI','AFfhP','RugVn','../../config/constants','Zhvdx','description','queued','readFileSync','PyrnW','SzvED','qHGcH','all-grids','running','grid-id','542380iPvFwJ','usage','1ZDJwyj','RCJqn','got','56JiMiLC','requestId','5633652UprnHO','log','push','Dcjqf','password','wJpRC','zyhhH','JWJYz','command','builder','list','forEach','exit','144HgxtyE','/packages/cli/get-all-grids','439117QyKwnR','QgnYd','error','parse','sVIng','wDXhY','unknown-error','1504234NdySEr','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','status','grids'];a15_0x2864=function(){return _0x38b214;};return a15_0x2864();}
1
+ const a15_0x33d891=a15_0x4270;function a15_0x4270(_0xa21c07,_0x3ac0f5){const _0x52df05=a15_0x52df();return a15_0x4270=function(_0x427019,_0x347fda){_0x427019=_0x427019-0x6a;let _0x1f34ac=_0x52df05[_0x427019];return _0x1f34ac;},a15_0x4270(_0xa21c07,_0x3ac0f5);}function a15_0x52df(){const _0x12336e=['grids','allGrids','queued','liyrH','3luHLfU','81vDZByt','ykoCg','PcwkK','../../config/constants','stringify','zQTYv','ViqGs','uXMrw','password','IvgXE','stack','UcpJH','QrybL','argv','log','1219600shYhIf','cluster-name','gpLeo','status','Browserstack','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','tCeQK','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','list-grids-called','description','QdtPy','grid-name','bstackUsername','363740psYHeo','error','1060792KersOt','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-grids','server-error','../../utils/instrumentationUtils','STEQt','push','dnoMK','requestId','1209010iGCRRe','unauthorised','help','lWQyI','username','qqzoM','HsPDo','options','https://','got','902912qXjJRF','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','3214274xzhunx','2397162hJjweO','existsSync','exit','list','kaAjM','desc','ERROR','xMcrC','usage','czEJR','command','body','clusterName','running','statusCode','parse','INFO','IRDWN','builder','QobbU','/packages/cli/get-all-grids','grid-id','name','WhkDe','wOhzz','forEach'];a15_0x52df=function(){return _0x12336e;};return a15_0x52df();}(function(_0x41a747,_0x8ff1ec){const _0x399479=a15_0x4270,_0x227d47=_0x41a747();while(!![]){try{const _0x3fda03=parseInt(_0x399479(0x98))/0x1+-parseInt(_0x399479(0x9a))/0x2*(-parseInt(_0x399479(0x7b))/0x3)+-parseInt(_0x399479(0xad))/0x4+parseInt(_0x399479(0xa3))/0x5+parseInt(_0x399479(0xb1))/0x6+parseInt(_0x399479(0xb0))/0x7+-parseInt(_0x399479(0x8b))/0x8*(parseInt(_0x399479(0x7c))/0x9);if(_0x3fda03===_0x8ff1ec)break;else _0x227d47['push'](_0x227d47['shift']());}catch(_0x3414bb){_0x227d47['push'](_0x227d47['shift']());}}}(a15_0x52df,0x60e45));const fs=require('fs'),got=require(a15_0x33d891(0xac)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x33d891(0x7f)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x33d891(0x9e));exports[a15_0x33d891(0xbb)]=a15_0x33d891(0x77),exports[a15_0x33d891(0xb6)]=a15_0x33d891(0x90),exports[a15_0x33d891(0x6f)]=function(_0x428c75){const _0x45f53b=a15_0x33d891,_0x3a6e3a={};_0x3a6e3a[_0x45f53b(0x74)]=_0x45f53b(0x92),_0x3a6e3a[_0x45f53b(0xa8)]='boolean',_0x3a6e3a[_0x45f53b(0x9f)]=_0x45f53b(0xa5);const _0x2bfd5f=_0x3a6e3a,_0x15a5f3={};_0x15a5f3[_0x45f53b(0x94)]=_0x2bfd5f['WhkDe'],_0x15a5f3['type']=_0x2bfd5f[_0x45f53b(0xa8)];const _0x1c49d4={};return _0x1c49d4['all-grids']=_0x15a5f3,_0x428c75[_0x45f53b(0xb9)](HELP_HEADER_MESSAGE[_0x45f53b(0xb4)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x45f53b(0xaa)](_0x1c49d4)['help'](_0x2bfd5f[_0x45f53b(0x9f)])[_0x45f53b(0x89)];},exports['handler']=async function(_0x328059){const _0x2276e2=a15_0x33d891,_0x2eac48={'wOhzz':function(_0x3c8dfd){return _0x3c8dfd();},'tCeQK':function(_0x17ce4e){return _0x17ce4e();},'jTDGE':_0x2276e2(0x9b),'uXMrw':function(_0x2b1c4f,_0x21f837,_0x5dfe0b,_0x590694,_0x444b06,_0x464dbe,_0x32d634){return _0x2b1c4f(_0x21f837,_0x5dfe0b,_0x590694,_0x444b06,_0x464dbe,_0x32d634);},'IRDWN':_0x2276e2(0x93),'kaAjM':'init-not-called','ykoCg':'GET','gpLeo':function(_0x402bf9,_0x260845,_0x57271e){return _0x402bf9(_0x260845,_0x57271e);},'QdtPy':function(_0x1d654d,_0x2107d5){return _0x1d654d!==_0x2107d5;},'ViqGs':function(_0x388624,_0x29c68e){return _0x388624!==_0x29c68e;},'QobbU':function(_0x214272,_0x4f4be8){return _0x214272===_0x4f4be8;},'MAmdy':'\x0aFound\x20the\x20following\x20grids:\x0a','zQTYv':_0x2276e2(0x72),'lWQyI':_0x2276e2(0x96),'dnoMK':_0x2276e2(0x8e),'UcpJH':_0x2276e2(0x6a),'liyrH':_0x2276e2(0x79),'QrybL':_0x2276e2(0x8c),'Sgjrk':function(_0x8a01f1,_0x392a39){return _0x8a01f1(_0x392a39);},'czEJR':_0x2276e2(0xaf),'IvgXE':function(_0x5a9545,_0x793be9,_0x478aa7,_0x29d294,_0x657267,_0x38b8e8,_0x18aa93){return _0x5a9545(_0x793be9,_0x478aa7,_0x29d294,_0x657267,_0x38b8e8,_0x18aa93);},'HsPDo':_0x2276e2(0xa4),'xMcrC':function(_0xbcd282,_0x36a5b2,_0x3f6ef4,_0x33dba9,_0x37dcba,_0x417835,_0x19fb7e){return _0xbcd282(_0x36a5b2,_0x3f6ef4,_0x33dba9,_0x37dcba,_0x417835,_0x19fb7e);},'mIVHw':_0x2276e2(0x9d),'PcwkK':'unknown-error'};try{global_registry[_0x2276e2(0xa2)]=_0x2eac48[_0x2276e2(0x75)](uuidv4);!fs[_0x2276e2(0xb2)](_0x2eac48[_0x2276e2(0x91)](getCredentialsPath))&&(console[_0x2276e2(0x99)](_0x2eac48['jTDGE']),await _0x2eac48[_0x2276e2(0x83)](sendInstrumentationEvent,_0x328059,_0x2eac48[_0x2276e2(0x6e)],messageTypes[_0x2276e2(0xb7)],_0x2eac48[_0x2276e2(0xb5)],null,_0x328059),process[_0x2276e2(0xb3)](0x1));const _0x5dee25=JSON[_0x2276e2(0x6c)](fs[_0x2276e2(0xae)](_0x2eac48[_0x2276e2(0x91)](getCredentialsPath)));let _0x3d57a0=_0x2276e2(0xab)+AG_API_URL+_0x2276e2(0x9c);_0x328059[_0x2276e2(0x78)]&&(_0x3d57a0=_0x2276e2(0xab)+AG_API_URL+_0x2276e2(0x71));const _0x952652={'method':_0x2eac48[_0x2276e2(0x7d)],'headers':_0x2eac48['gpLeo'](getAuthHeader,_0x5dee25['Browserstack'][_0x2276e2(0xa7)],_0x5dee25[_0x2276e2(0x8f)]['password']),'throwHttpErrors':![]};global_registry[_0x2276e2(0x97)]=_0x5dee25['Browserstack'][_0x2276e2(0xa7)],global_registry['bstackAccesskey']=_0x5dee25[_0x2276e2(0x8f)][_0x2276e2(0x84)],_0x2eac48[_0x2276e2(0x83)](sendInstrumentationEvent,_0x328059,_0x2eac48['IRDWN'],messageTypes[_0x2276e2(0x6d)],null,null,_0x328059);const _0x38da38=await _0x2eac48[_0x2276e2(0x8d)](got,_0x3d57a0,_0x952652);if(_0x2eac48[_0x2276e2(0x95)](_0x38da38,null)&&_0x2eac48[_0x2276e2(0x82)](_0x38da38,undefined)&&_0x2eac48['QobbU'](_0x38da38[_0x2276e2(0x6b)],0xc8)){const _0x57e8e1=JSON['parse'](_0x38da38[_0x2276e2(0xbc)]);console['log'](_0x2eac48['MAmdy']);const _0x4ac2cc=[];_0x4ac2cc[_0x2276e2(0xa0)]([_0x2eac48[_0x2276e2(0x81)],_0x2eac48[_0x2276e2(0xa6)],_0x2eac48[_0x2276e2(0xa1)],_0x2eac48[_0x2276e2(0x87)],_0x2eac48[_0x2276e2(0x7a)],_0x2eac48[_0x2276e2(0x88)]]),_0x57e8e1[_0x2276e2(0x76)](_0xc6e5fd=>{const _0x2ccd8e=_0x2276e2;_0x4ac2cc[_0x2ccd8e(0xa0)]([_0xc6e5fd['id'],_0xc6e5fd[_0x2ccd8e(0x73)],_0xc6e5fd[_0x2ccd8e(0x8e)],_0xc6e5fd[_0x2ccd8e(0x6a)],_0xc6e5fd[_0x2ccd8e(0x79)],_0xc6e5fd[_0x2ccd8e(0xbd)]]);}),console[_0x2276e2(0x8a)](_0x2eac48['Sgjrk'](table,_0x4ac2cc)),process[_0x2276e2(0xb3)](0x0);}_0x2eac48[_0x2276e2(0x70)](_0x38da38[_0x2276e2(0x6b)],0x191)&&(console[_0x2276e2(0x99)](_0x2eac48[_0x2276e2(0xba)]),await _0x2eac48[_0x2276e2(0x85)](sendInstrumentationEvent,_0x328059,_0x2eac48[_0x2276e2(0x6e)],messageTypes['ERROR'],_0x2eac48[_0x2276e2(0xa9)],null,_0x328059),process[_0x2276e2(0xb3)](0x1)),console[_0x2276e2(0x99)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2276e2(0x80)](_0x38da38)),await _0x2eac48[_0x2276e2(0xb8)](sendInstrumentationEvent,_0x328059,_0x2eac48['IRDWN'],messageTypes[_0x2276e2(0xb7)],_0x2eac48['mIVHw'],_0x38da38,_0x328059),process[_0x2276e2(0xb3)](0x1);}catch(_0x348bac){console[_0x2276e2(0x99)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x348bac[_0x2276e2(0x86)]),await _0x2eac48[_0x2276e2(0x83)](sendInstrumentationEvent,_0x328059,_0x2eac48[_0x2276e2(0x6e)],messageTypes[_0x2276e2(0xb7)],_0x2eac48[_0x2276e2(0x7e)],_0x348bac,_0x328059),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x10c2d9=a16_0x5357;(function(_0xdf048a,_0x296623){const _0x451480=a16_0x5357,_0x2b4f7e=_0xdf048a();while(!![]){try{const _0x4d6412=-parseInt(_0x451480(0x1b9))/0x1*(parseInt(_0x451480(0x1ac))/0x2)+-parseInt(_0x451480(0x1b5))/0x3+parseInt(_0x451480(0x1b0))/0x4+parseInt(_0x451480(0x1ad))/0x5+-parseInt(_0x451480(0x1b1))/0x6+parseInt(_0x451480(0x1b4))/0x7+-parseInt(_0x451480(0x1a5))/0x8*(-parseInt(_0x451480(0x1aa))/0x9);if(_0x4d6412===_0x296623)break;else _0x2b4f7e['push'](_0x2b4f7e['shift']());}catch(_0x19f574){_0x2b4f7e['push'](_0x2b4f7e['shift']());}}}(a16_0x4f1c,0x46a09));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x10c2d9(0x1b3));function a16_0x4f1c(){const _0x9c4a4c=['desc','../config/constants','2015678PqzKpk','1455312dnYFYr','pre_check','handler','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1wDbaMF','command','921208GwEBNP','precheck_commands','help','DxSFh','recommendCommands','45PqRXjg','pre-check','93662lQxXzd','80175vDqsMH','commandDir','PBYoA','154540JdLimh','582930FKcfyX'];a16_0x4f1c=function(){return _0x9c4a4c;};return a16_0x4f1c();}function a16_0x5357(_0xe1c64c,_0x3ba07a){const _0x4f1c0e=a16_0x4f1c();return a16_0x5357=function(_0x5357ab,_0x192ce6){_0x5357ab=_0x5357ab-0x1a5;let _0x321794=_0x4f1c0e[_0x5357ab];return _0x321794;},a16_0x5357(_0xe1c64c,_0x3ba07a);}exports[a16_0x10c2d9(0x1ba)]=a16_0x10c2d9(0x1ab),exports[a16_0x10c2d9(0x1b2)]=a16_0x10c2d9(0x1b8),exports['builder']=function(_0x1f2c5a){const _0x122796=a16_0x10c2d9,_0xb82df7={};_0xb82df7['DxSFh']=_0x122796(0x1a6),_0xb82df7[_0x122796(0x1af)]=_0x122796(0x1a7);const _0x35462a=_0xb82df7;return _0x1f2c5a['usage'](HELP_HEADER_MESSAGE[_0x122796(0x1b6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x122796(0x1ae)](_0x35462a[_0x122796(0x1a8)])['demandCommand']()[_0x122796(0x1a9)]()['strict']()[_0x122796(0x1a7)](_0x35462a[_0x122796(0x1af)]);},exports[a16_0x10c2d9(0x1b7)]=function(_0x10654a){};
1
+ function a16_0x488b(){const _0x4cc862=['58023XLAVzP','../config/constants','tMULs','usage','3547ZkHHkw','demandCommand','1211410vSDHnz','974460AKTrkV','496ejWCDE','pre-check','pre_check','94atYgwJ','help','6272431IfUIcV','49145CEHtQI','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','8paXnKD','desc','commandDir','opvAZ','epilogue','42LupEyC','35865ycdAoR','recommendCommands'];a16_0x488b=function(){return _0x4cc862;};return a16_0x488b();}const a16_0x2a1fc5=a16_0x30c8;(function(_0x29dbb5,_0x5169db){const _0x42865a=a16_0x30c8,_0x562069=_0x29dbb5();while(!![]){try{const _0x31b240=-parseInt(_0x42865a(0x1cb))/0x1*(-parseInt(_0x42865a(0x1d2))/0x2)+-parseInt(_0x42865a(0x1ce))/0x3+parseInt(_0x42865a(0x1d7))/0x4*(-parseInt(_0x42865a(0x1d5))/0x5)+parseInt(_0x42865a(0x1c4))/0x6*(-parseInt(_0x42865a(0x1c7))/0x7)+-parseInt(_0x42865a(0x1cf))/0x8*(parseInt(_0x42865a(0x1c5))/0x9)+parseInt(_0x42865a(0x1cd))/0xa+parseInt(_0x42865a(0x1d4))/0xb;if(_0x31b240===_0x5169db)break;else _0x562069['push'](_0x562069['shift']());}catch(_0xd8bb4e){_0x562069['push'](_0x562069['shift']());}}}(a16_0x488b,0x32e74));function a16_0x30c8(_0x19fce2,_0x18849c){const _0x488b73=a16_0x488b();return a16_0x30c8=function(_0x30c8a4,_0x42146f){_0x30c8a4=_0x30c8a4-0x1c0;let _0x18db51=_0x488b73[_0x30c8a4];return _0x18db51;},a16_0x30c8(_0x19fce2,_0x18849c);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2a1fc5(0x1c8));exports['command']=a16_0x2a1fc5(0x1d0),exports[a16_0x2a1fc5(0x1c0)]=a16_0x2a1fc5(0x1d6),exports['builder']=function(_0x485f7b){const _0x3663a6=a16_0x2a1fc5,_0x3a5252={};_0x3a5252[_0x3663a6(0x1c9)]='precheck_commands',_0x3a5252[_0x3663a6(0x1c2)]=_0x3663a6(0x1d3);const _0x216ee0=_0x3a5252;return _0x485f7b[_0x3663a6(0x1ca)](HELP_HEADER_MESSAGE[_0x3663a6(0x1d1)])[_0x3663a6(0x1c3)](HELP_FOOTER_MESSAGE)[_0x3663a6(0x1c1)](_0x216ee0['tMULs'])[_0x3663a6(0x1cc)]()[_0x3663a6(0x1c6)]()['strict']()[_0x3663a6(0x1d3)](_0x216ee0[_0x3663a6(0x1c2)]);},exports['handler']=function(_0x503dcf){};
@@ -1 +1 @@
1
- const a17_0x3a4ad9=a17_0x2871;function a17_0x2871(_0x6e3155,_0x525c51){const _0x30e4da=a17_0x30e4();return a17_0x2871=function(_0x287155,_0x1cf9fe){_0x287155=_0x287155-0xe8;let _0x3c1d01=_0x30e4da[_0x287155];return _0x3c1d01;},a17_0x2871(_0x6e3155,_0x525c51);}(function(_0x1edb8f,_0x57b2ab){const _0x235e24=a17_0x2871,_0x2a7f8f=_0x1edb8f();while(!![]){try{const _0x1a8c1d=-parseInt(_0x235e24(0x179))/0x1*(parseInt(_0x235e24(0xfe))/0x2)+-parseInt(_0x235e24(0x18d))/0x3+-parseInt(_0x235e24(0x17a))/0x4*(parseInt(_0x235e24(0x1c3))/0x5)+parseInt(_0x235e24(0x1e7))/0x6+parseInt(_0x235e24(0x19b))/0x7*(parseInt(_0x235e24(0x105))/0x8)+parseInt(_0x235e24(0x101))/0x9+-parseInt(_0x235e24(0x12c))/0xa;if(_0x1a8c1d===_0x57b2ab)break;else _0x2a7f8f['push'](_0x2a7f8f['shift']());}catch(_0x453cd0){_0x2a7f8f['push'](_0x2a7f8f['shift']());}}}(a17_0x30e4,0x7b4e4));function a17_0x30e4(){const _0x175c71=['pre-check-grid-called','getUTCHours','grid-profile','LOG','JQgXi','epilogue','SSL\x20Configured','accessResp','N/A','975430TiZmKi','grid\x20profile\x20flow\x20','dZrXl','KQjtB','EbqLc','<PasswordPlaceholder>','getUTCFullYear','DvsHd','`\x20is\x20present\x20in\x20region\x20`','Message:\x20','isTls1_2_SUPPORTED','reconnecting-websocket','WYIWl','kKoVv','JkTHY','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','init','data','Pre-check\x20running\x20for\x20Cloud\x20-\x20','got','DORuv','bdcHa','ToKSA','debug','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','will\x20be\x20created','code','pre-check-failed','gdPue','Cluster\x20`','password','region','User\x20Access','help','\x20\x20Message:\x20','YYJfR','mOmXC','`\x20already\x20exists','yrbpH','DOLRm','\x20\x20Stack:\x20','checkAccess','mOAep','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Failure','vVYml','ASUtd','IXXLl','KiCgO','unable\x20to\x20verify\x20if\x20cluster\x20`','`\x20,error\x20:\x20','nmALZ','wgBfd','toolInstalledResp','ERROR','command','isCliToolInstalled','pCGnF','handler','dummy-grid','cloud-provider','mxfrS','../../config/logger','WebSocket','desc','XmBuQ','UxdIC','delay','4|0|2|1|3','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','header','is\x20already\x20present','GoDmP','INFO','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','fYpOZ','../../cloudproviders/utils','29AXJwaF','3396EjsUcM','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','OjdLB','https://','nXAYH','builder','Success','requestId','uMsqk','xjfXG','Cluster\x20','TKfSq','nwUjA','uGRaN','lTzDD','\x20\x20Code:\x20','TLSv1_2_client_method','KEMJJ','headers','901116bbdWMr','wypHa','status','SqNLA','YRGQR','IbhnX',']\x20status\x20:\x20','stack','rvqGA','intrm','zPMrw','response','zAbih','lkEGN','8589nsBjkt','getUTCMinutes','Failed\x20in\x20pre-check!\x20Error:\x20','jUDli','kUpXK','hbfnx','Jbygk','Hrbry','qSTHq','description','TFAxQ','gppPS','NwsnD','join','jBMun','aOCIB','info','AEqmJ','csVrP','clusterRegion','GET','mAWMb','BFiyT','find','dQUvG','cluster-name','pre-check','LVobk','llmEm','tDGiR','CrGzx','Error\x20Details:\x0a','xqXWG','DlwcW','XWBHE','FKjkh','existsSync','\x20region\x20-\x20','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','aLNrh','3840AZyTcm','message','DrAwE','NmZiR','Bcqyx','tWKYo','Ltmdi','DBALR','zmHFF','JhBdi','OKqpV','isClusterPresent','eWijP','username','nPJpC','pre_check','yAGUH','Setting\x20cloud\x20provider\x20as\x20','XewUK','clusterName','TPyiO','includes','.txt','\x20data\x20:\x20','MOooO','utf-8','readFileSync','ugaaE','TYIpQ','wmZlG','dDCJn','Browserstack','log/report_','lwFsH','lTCGY','jJrST','3284538WEfsGl','options','lpkwG','Grid\x20profile\x20fetched\x20for\x20pre-check','uuid','YsmGr','njMMU','Tool\x20Installed','UpSvL','type','NFxYS','orqnV','bstackUsername','usage','orHxg','ZsFYK','Status:\x20','bufwU','IbMFq','MUwjw','Whitelisted\x20browserstack','../../utils/webSocketUtils','SpWoM','\x20===\x0a\x0a','authHeader','.\x20Please\x20provide\x20all\x20required\x20arguments.','../../utils/instrumentationUtils','QbxQi','toLowerCase','exit','cloudProvider','FKwxI','NNZos','Missing\x20required\x20arguments:\x20','7650bndFlp','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','\x20error\x20:\x20','7736508WIwjUG','===\x20Precheck\x20Report\x20-\x20','HCUxH','error','1688sPHgwr','pre-check-grid-profile-empty','tNRDq','argv','sendEventToBackend','EDUVO','OVlks','gridProfile','CLOUD_PROVIDER','YgDjV','push','QLTcO','method','uBCIc','error\x20stack\x20:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','RESNW','qziya','bcRdD','YNQDG','bstackAccesskey','Dadua','forEach','Cakgt','split','parse','string','lsHkI','../../utils/utilityMethods','writeFileSync'];a17_0x30e4=function(){return _0x175c71;};return a17_0x30e4();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x3a4ad9(0x13f)),{v4:uuidv4}=require(a17_0x3a4ad9(0x1eb)),ReconnectingWebSocket=require(a17_0x3a4ad9(0x137)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3a4ad9(0x121)),{logger}=require(a17_0x3a4ad9(0x16a)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x3a4ad9(0x178)),webSocketUtils=require(a17_0x3a4ad9(0xf1)),{sendInstrumentationEvent}=require(a17_0x3a4ad9(0xf6));exports[a17_0x3a4ad9(0x163)]='grid',exports[a17_0x3a4ad9(0x16c)]=a17_0x3a4ad9(0x157),exports[a17_0x3a4ad9(0x17f)]=function(_0x2f64e7){const _0x3265b7=a17_0x3a4ad9,_0x20b2f5={};_0x20b2f5[_0x3265b7(0x191)]=_0x3265b7(0xff),_0x20b2f5[_0x3265b7(0x1c8)]=_0x3265b7(0x11f),_0x20b2f5[_0x3265b7(0x1ef)]=_0x3265b7(0x17b),_0x20b2f5[_0x3265b7(0x159)]=_0x3265b7(0x144),_0x20b2f5[_0x3265b7(0x1ed)]=_0x3265b7(0x114),_0x20b2f5[_0x3265b7(0x1ac)]=_0x3265b7(0x14d);const _0x2e6a22=_0x20b2f5,_0x18fdc2={};_0x18fdc2['description']=_0x2e6a22['YRGQR'],_0x18fdc2[_0x3265b7(0x1f0)]=_0x2e6a22[_0x3265b7(0x1c8)];const _0x5c584f={};_0x5c584f[_0x3265b7(0x1a4)]=_0x2e6a22[_0x3265b7(0x1ef)],_0x5c584f['type']=_0x2e6a22[_0x3265b7(0x1c8)];const _0x271316={};_0x271316[_0x3265b7(0x1a4)]=_0x2e6a22[_0x3265b7(0x159)],_0x271316['type']=_0x2e6a22['tWKYo'];const _0x1c38d2={};_0x1c38d2[_0x3265b7(0x1a4)]=_0x2e6a22[_0x3265b7(0x1ed)],_0x1c38d2['type']=_0x2e6a22[_0x3265b7(0x1c8)];const _0x553381={};return _0x553381[_0x3265b7(0x1b4)]=_0x18fdc2,_0x553381[_0x3265b7(0x168)]=_0x5c584f,_0x553381[_0x3265b7(0x14b)]=_0x271316,_0x553381[_0x3265b7(0x125)]=_0x1c38d2,_0x2f64e7['usage'](HELP_HEADER_MESSAGE[_0x3265b7(0x1d2)])[_0x3265b7(0x128)](HELP_FOOTER_MESSAGE)[_0x3265b7(0x1e8)](_0x553381)[_0x3265b7(0x14d)](_0x2e6a22[_0x3265b7(0x1ac)])['argv'];};async function inputValidation(_0x5185a9,_0x1925c9){const _0x503830=a17_0x3a4ad9,_0x38efcb={'XewUK':_0x503830(0x1b4),'fYpOZ':_0x503830(0x14b),'rvqGA':'error','NNZos':_0x503830(0xff),'ZsFYK':'string','zmHFF':_0x503830(0x17b),'LCaTy':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Ltmdi':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','HEiWC':_0x503830(0x14d),'SqNLA':_0x503830(0x1ba),'CrGzx':_0x503830(0x12b),'DlwcW':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','mOAep':_0x503830(0x173),'kKoVv':_0x503830(0x145),'NmZiR':'cloud-provider','Cakgt':function(_0x2d7590,_0x3253e3){return _0x2d7590===_0x3253e3;},'xqXWG':'RUJkR','lTCGY':_0x503830(0x1ca),'tDGiR':function(_0x200cf2,_0x169bd7){return _0x200cf2===_0x169bd7;},'lsHkI':'HypVA','dZrXl':function(_0x3f31ab,_0x537385){return _0x3f31ab!==_0x537385;},'yoawa':_0x503830(0x1e0),'lTzDD':_0x503830(0xee),'uMsqk':function(_0x5d478e,_0x467796){return _0x5d478e!==_0x467796;},'intrm':'qyeWO','FKwxI':_0x503830(0x153),'csVrP':function(_0x507e06,_0x540fe4){return _0x507e06>_0x540fe4;},'gppPS':_0x503830(0x152),'HCUxH':function(_0x4f9b28,_0x33ee9d,_0x3af9de,_0x132ec8,_0x52b2eb,_0x3cc181,_0x188e06,_0x1be036){return _0x4f9b28(_0x33ee9d,_0x3af9de,_0x132ec8,_0x52b2eb,_0x3cc181,_0x188e06,_0x1be036);},'gdPue':_0x503830(0x123),'nXAYH':'pre-check-cluster-args-not-passed','mxfrS':_0x503830(0x19f),'JkTHY':_0x503830(0x12f),'Dadua':_0x503830(0x176),'GoDmP':function(_0x4f397a,_0x412a63,_0x37f849,_0x5cd6f6,_0x53edc0,_0x5278e9,_0x85b608,_0x52e54d){return _0x4f397a(_0x412a63,_0x37f849,_0x5cd6f6,_0x53edc0,_0x5278e9,_0x85b608,_0x52e54d);},'Bcqyx':'cloud-provider-not-supported','BFiyT':function(_0x451d45,_0x38ffb6){return _0x451d45===_0x38ffb6;},'rwfdf':_0x503830(0x1b3),'ToKSA':_0x503830(0x10a),'eMgbZ':function(_0x5f54ef,_0x56d2a3){return _0x5f54ef===_0x56d2a3;},'WYIWl':_0x503830(0x1a9),'qSTHq':_0x503830(0x1c2),'EbqLc':_0x503830(0x1af),'llmEm':function(_0x1d0514,_0x151ae4,_0xa5d647){return _0x1d0514(_0x151ae4,_0xa5d647);},'xjfXG':function(_0x698b21,_0x3491da,_0x45e164,_0x4e50f2,_0x22d42c,_0x1812d9){return _0x698b21(_0x3491da,_0x45e164,_0x4e50f2,_0x22d42c,_0x1812d9);},'NwsnD':_0x503830(0x1b5),'Hrbry':'grid-profile','OVlks':_0x503830(0x1ec),'jUDli':_0x503830(0x16e),'LVobk':function(_0x28752c,_0x367220){return _0x28752c(_0x367220);},'bcRdD':function(_0x5b4455,_0x487a18){return _0x5b4455===_0x487a18;},'KEMJJ':_0x503830(0x10e),'sYTtO':_0x503830(0x106),'aOCIB':function(_0x18b000,_0x3d63c0){return _0x18b000===_0x3d63c0;},'FlZcT':_0x503830(0x112),'Jbygk':_0x503830(0x18e),'ZyMjb':function(_0x3e4f87,_0x49510a){return _0x3e4f87===_0x49510a;},'ASUtd':_0x503830(0x199),'dDCJn':_0x503830(0x150),'dqbKC':_0x503830(0x1ea),'JhBdi':_0x503830(0xef),'DORuv':function(_0x5716ba,_0x52c72d){return _0x5716ba===_0x52c72d;},'NFxYS':_0x503830(0x1db),'DvsHd':'hmfHh'};let _0x1490d4;try{if(_0x38efcb[_0x503830(0x11c)](_0x38efcb[_0x503830(0x1bb)],_0x38efcb[_0x503830(0x1e5)]))_0x380fac[_0x503830(0x10f)](_0x38efcb['XewUK']);else{if(_0x5185a9['clusterName']||_0x5185a9[_0x503830(0xfa)]||_0x5185a9[_0x503830(0x14b)]){if(_0x38efcb[_0x503830(0x1b8)](_0x38efcb[_0x503830(0x120)],_0x38efcb[_0x503830(0x120)])){const _0x3e8470=[];!_0x5185a9[_0x503830(0x1d6)]&&(_0x38efcb[_0x503830(0x12e)](_0x38efcb['yoawa'],_0x38efcb[_0x503830(0x188)])?_0x3e8470[_0x503830(0x10f)](_0x38efcb[_0x503830(0x1d5)]):_0x435ddd=_0x47ddbc);;!_0x5185a9[_0x503830(0xfa)]&&(_0x38efcb[_0x503830(0x182)](_0x38efcb[_0x503830(0x196)],_0x38efcb[_0x503830(0x196)])?_0x238a38[_0x503830(0x10f)](_0x38efcb[_0x503830(0x177)]):_0x3e8470['push'](_0x38efcb[_0x503830(0x1c6)]));;if(!_0x5185a9[_0x503830(0x14b)]){if(_0x38efcb['dZrXl'](_0x38efcb[_0x503830(0xfb)],_0x38efcb[_0x503830(0xfb)])){const _0x23578f={};_0x23578f[_0x503830(0x1f0)]=_0x1f8fb1[_0x503830(0x126)],_0x23578f[_0x503830(0x1c4)]=_0x322a6e,_0x36856b[_0x503830(0x109)](_0x53da5b,_0x23578f,_0x38efcb[_0x503830(0x195)],!![]);}else _0x3e8470[_0x503830(0x10f)](_0x38efcb['fYpOZ']);};_0x38efcb[_0x503830(0x1ad)](_0x3e8470['length'],0x0)&&(_0x38efcb[_0x503830(0x1b8)](_0x38efcb[_0x503830(0x1a6)],_0x38efcb['gppPS'])?(_0x1490d4=_0x503830(0xfd)+_0x3e8470[_0x503830(0x1a8)](',\x20')+_0x503830(0xf5),await _0x38efcb[_0x503830(0x103)](reportToGalactusAndSendToEDS,_0x5185a9,_0x1925c9,_0x1490d4,messageTypes[_0x503830(0x162)],_0x38efcb['gdPue'],_0x38efcb[_0x503830(0x17e)],_0x38efcb[_0x503830(0x195)]),logger[_0x503830(0x104)](_0x1490d4),process[_0x503830(0xf9)](0x1)):_0x305950[_0x503830(0x1ab)](_0x503830(0x149)+_0xac0dc9[_0x503830(0x1d6)]+_0x503830(0x151)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x503830(0x1d8)](_0x5185a9[_0x503830(0xfa)][_0x503830(0xf8)]())){if(_0x38efcb[_0x503830(0x1b8)](_0x38efcb[_0x503830(0x169)],_0x38efcb[_0x503830(0x13a)])){const _0x12b3f6={};_0x12b3f6[_0x503830(0x1a4)]=_0x38efcb[_0x503830(0xfc)],_0x12b3f6['type']=_0x38efcb[_0x503830(0xeb)];const _0x497b08={};_0x497b08['description']=_0x38efcb[_0x503830(0x1cb)],_0x497b08[_0x503830(0x1f0)]=_0x38efcb[_0x503830(0xeb)];const _0x5c1cf8={};_0x5c1cf8['description']=_0x38efcb['LCaTy'],_0x5c1cf8[_0x503830(0x1f0)]=_0x38efcb[_0x503830(0xeb)];const _0x2489a9={};_0x2489a9[_0x503830(0x1a4)]=_0x38efcb[_0x503830(0x1c9)],_0x2489a9['type']=_0x38efcb[_0x503830(0xeb)];const _0x43838f={};return _0x43838f[_0x503830(0x1b4)]=_0x12b3f6,_0x43838f[_0x503830(0x168)]=_0x497b08,_0x43838f[_0x503830(0x14b)]=_0x5c1cf8,_0x43838f['grid-profile']=_0x2489a9,_0x2fd837[_0x503830(0xe9)](_0xc3eebf[_0x503830(0x1d2)])[_0x503830(0x128)](_0x115b94)[_0x503830(0x1e8)](_0x43838f)[_0x503830(0x14d)](_0x38efcb['HEiWC'])[_0x503830(0x108)];}else _0x1490d4=_0x38efcb[_0x503830(0x11a)],await _0x38efcb[_0x503830(0x174)](reportToGalactusAndSendToEDS,_0x5185a9,_0x1925c9,_0x1490d4,messageTypes[_0x503830(0x162)],_0x38efcb[_0x503830(0x148)],_0x38efcb['Bcqyx'],_0x38efcb[_0x503830(0x195)]),logger[_0x503830(0x104)](_0x1490d4),!_0x5185a9[_0x503830(0xfa)]&&(_0x38efcb['BFiyT'](_0x38efcb['rwfdf'],_0x38efcb[_0x503830(0x142)])?(_0x539fbb['info'](_0x503830(0x1d4)+_0xaef161[_0x503830(0x10d)]+'\x20'),_0x3c0765['cloudProvider']=_0x21ba52[_0x503830(0x10d)]):(logger[_0x503830(0x1ab)](_0x503830(0x1d4)+DEFAULT_CLUSTER_DETAILS[_0x503830(0x10d)]+'\x20'),_0x5185a9[_0x503830(0xfa)]=DEFAULT_CLUSTER_DETAILS[_0x503830(0x10d)]));}global_registry['clusterName']=_0x5185a9[_0x503830(0x1d6)],global_registry['cloudProvider']=_0x5185a9[_0x503830(0xfa)],global_registry[_0x503830(0x1ae)]=_0x5185a9['region'];}else _0x25ec41[_0x503830(0xf9)](0x1);}else{if(_0x5185a9[_0x503830(0x10c)]){if(_0x38efcb['eMgbZ'](_0x38efcb[_0x503830(0x138)],_0x38efcb[_0x503830(0x1a3)]))_0x41afa6+=_0x38efcb[_0x503830(0x190)],_0xe82b8e+=_0x503830(0x14e)+(_0x5f329b['message']||_0x38efcb[_0x503830(0x1b9)])+'\x0a',_0x5d3bca+='\x20\x20Code:\x20'+(_0x4dab76[_0x503830(0x146)]||_0x38efcb[_0x503830(0x1b9)])+'\x0a',_0x1321b3+='\x20\x20Stack:\x20'+(_0x1988d6[_0x503830(0x194)]||_0x38efcb[_0x503830(0x1b9)])+'\x0a';else{global_registry[_0x503830(0x10c)]=_0x5185a9[_0x503830(0x10c)],logger[_0x503830(0x143)](_0x503830(0x12d)+_0x5185a9['gridProfile']);const _0x37fdb1=_0x503830(0x17d)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x323ded={};_0x323ded[_0x503830(0x111)]=_0x38efcb[_0x503830(0x130)],_0x323ded[_0x503830(0x18c)]=global_registry[_0x503830(0xf4)],_0x323ded['throwHttpErrors']=![];const _0x3f59a6=_0x323ded,_0x5d36ca=await _0x38efcb[_0x503830(0x1b7)](got,_0x37fdb1,_0x3f59a6),_0xb3e293=await _0x38efcb[_0x503830(0x183)](responseValidation,_0x5d36ca,_0x38efcb[_0x503830(0x1a7)],_0x38efcb[_0x503830(0x1a2)],_0x5185a9,_0x1925c9);let _0x2989d4={};if(_0x38efcb[_0x503830(0x1b1)](_0xb3e293,0xc8)){if(_0x38efcb['eMgbZ'](_0x38efcb[_0x503830(0x10b)],_0x38efcb[_0x503830(0x19e)]))_0x1cee03[_0x503830(0x1ab)]('['+_0xd9b830+_0x503830(0x193)+_0x3ed2ad[_0x503830(0x18f)]+_0x503830(0x1da)+_0x2de86c[_0x503830(0x13d)]+_0x503830(0x100)+_0x387732[_0x503830(0x104)]),_0x4e1695['error']&&_0x569c96[_0x503830(0x104)](_0x503830(0x113)+_0x5d920a[_0x503830(0x104)][_0x503830(0x194)]);else{const _0x7fc56e=JSON[_0x503830(0x11e)](_0x5d36ca['body']),_0x235abc=_0x7fc56e[_0x503830(0x1b2)](_0x56cc8f=>_0x56cc8f['name']===_0x5185a9[_0x503830(0x10c)])||null;_0x38efcb[_0x503830(0x1b6)](isUndefined,_0x235abc)?_0x38efcb[_0x503830(0x117)](_0x38efcb['KEMJJ'],_0x38efcb[_0x503830(0x18b)])?(_0x1490d4='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x5185a9[_0x503830(0x10c)]+_0x503830(0x171),await _0x38efcb[_0x503830(0x103)](reportToGalactusAndSendToEDS,_0x5185a9,_0x1925c9,_0x1490d4,messageTypes[_0x503830(0x162)],_0x38efcb[_0x503830(0x148)],_0x38efcb['sYTtO'],_0x38efcb[_0x503830(0x195)]),logger[_0x503830(0x104)](_0x1490d4),process[_0x503830(0xf9)](0x1)):(_0x2221eb[_0x503830(0x104)](_0x38efcb['DlwcW']),_0x177043['exit'](0x1)):_0x38efcb[_0x503830(0x1aa)](_0x38efcb['FlZcT'],_0x38efcb[_0x503830(0x1a1)])?_0x2a1aef[_0x503830(0x104)]('error\x20stack\x20:\x20'+_0x840184[_0x503830(0x104)][_0x503830(0x194)]):_0x2989d4=_0x235abc;}}else _0x38efcb['ZyMjb'](_0x38efcb[_0x503830(0x15a)],_0x38efcb[_0x503830(0x1e1)])?_0x543328+=_0x503830(0x184)+_0x4450c2[_0x503830(0x1d6)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':process['exit'](0x1);const _0x24e2b1={};_0x24e2b1[_0x503830(0x1f0)]=WS_EVENTS[_0x503830(0x126)],_0x24e2b1[_0x503830(0x1c4)]=_0x38efcb['dqbKC'],webSocketUtils[_0x503830(0x109)](_0x1925c9,_0x24e2b1),global_registry[_0x503830(0xfa)]=_0x2989d4[_0x503830(0xfa)],global_registry['clusterRegion']=_0x2989d4[_0x503830(0x14b)],global_registry['clusterName']=_0x2989d4[_0x503830(0x1d6)];}}else _0x38efcb[_0x503830(0x12e)](_0x38efcb[_0x503830(0x1cc)],_0x38efcb[_0x503830(0x1cc)])?_0x4c8ba1+=_0x503830(0x184)+_0xc38cb3[_0x503830(0x1d6)]+'\x20'+(_0x5d0793?_0x38efcb[_0x503830(0x156)]:_0x38efcb[_0x503830(0x139)])+'\x0a\x0a':(logger[_0x503830(0x104)](_0x38efcb[_0x503830(0x1bc)]),process['exit'](0x1));}}}catch(_0x535fe2){_0x38efcb[_0x503830(0x140)](_0x38efcb[_0x503830(0x1f1)],_0x38efcb[_0x503830(0x133)])?_0x76c824[_0x503830(0x10f)](_0x38efcb['NmZiR']):(_0x1490d4=_0x503830(0x1c1)+_0x535fe2+':\x20'+_0x535fe2[_0x503830(0x194)],logger[_0x503830(0x104)](_0x1490d4),await _0x38efcb[_0x503830(0x103)](reportToGalactusAndSendToEDS,_0x5185a9,_0x1925c9,_0x1490d4,messageTypes[_0x503830(0x162)],_0x38efcb[_0x503830(0x148)],_0x38efcb[_0x503830(0x1c7)],_0x38efcb['rvqGA']),process[_0x503830(0xf9)](0x1));}}function printResponse(_0x286d81,_0xbff425){const _0x17966e=a17_0x3a4ad9,_0x58eb53={};_0x58eb53[_0x17966e(0x197)]=function(_0x2e7a7d,_0x578f1d){return _0x2e7a7d+_0x578f1d;},_0x58eb53[_0x17966e(0x1a5)]=_0x17966e(0x180),_0x58eb53['WjZPN']=_0x17966e(0x158),_0x58eb53['qziya']=function(_0x4efbfb,_0x12300d){return _0x4efbfb||_0x12300d;},_0x58eb53[_0x17966e(0x1f2)]='N/A',_0x58eb53[_0x17966e(0x1de)]=_0x17966e(0x1ba),_0x58eb53[_0x17966e(0x185)]=function(_0x4997aa,_0x4b1864){return _0x4997aa!==_0x4b1864;},_0x58eb53[_0x17966e(0x1a0)]=_0x17966e(0x118);const _0x2f9c0d=_0x58eb53;logger[_0x17966e(0x1ab)]('['+_0x286d81+_0x17966e(0x193)+_0xbff425['status']+_0x17966e(0x1da)+_0xbff425[_0x17966e(0x13d)]+_0x17966e(0x100)+_0xbff425[_0x17966e(0x104)]);if(_0xbff425['error']){if(_0x2f9c0d[_0x17966e(0x185)](_0x2f9c0d['hbfnx'],_0x2f9c0d[_0x17966e(0x1a0)])){const {header:_0x5cade9,response:_0x4a614a}=_0x3a77ee,{status:_0x12e9ed,data:_0x24d9da,error:_0x52224a}=_0x4a614a;_0x42a6cd+=_0x5cade9+'\x20#'+_0x2f9c0d['zPMrw'](_0x35598c,0x1)+'\x0a',_0x7453c3+='Status:\x20'+(_0x12e9ed?_0x2f9c0d[_0x17966e(0x1a5)]:_0x2f9c0d['WjZPN'])+'\x0a',_0xb01f2b+=_0x17966e(0x135)+_0x2f9c0d[_0x17966e(0x116)](_0x24d9da,_0x2f9c0d[_0x17966e(0x1f2)])+'\x0a',_0x52224a&&(_0xc8da0b+=_0x2f9c0d[_0x17966e(0x1de)],_0x36ffdf+=_0x17966e(0x14e)+(_0x52224a[_0x17966e(0x1c4)]||_0x2f9c0d[_0x17966e(0x1f2)])+'\x0a',_0x58009c+=_0x17966e(0x189)+(_0x52224a[_0x17966e(0x146)]||_0x2f9c0d[_0x17966e(0x1f2)])+'\x0a',_0x20111d+=_0x17966e(0x154)+(_0x52224a[_0x17966e(0x194)]||_0x2f9c0d[_0x17966e(0x1f2)])+'\x0a'),_0x4c683+='\x0a\x0a';}else logger[_0x17966e(0x104)](_0x17966e(0x113)+_0xbff425[_0x17966e(0x104)][_0x17966e(0x194)]);}}async function generateReport(_0x9174de,_0x535799){const _0x1542a8=a17_0x3a4ad9,_0x1c277b={'nwUjA':function(_0x2eb6f2,_0x2464db){return _0x2eb6f2+_0x2464db;},'bdcHa':_0x1542a8(0x180),'IbhnX':_0x1542a8(0x158),'bufwU':function(_0xd9c7d7,_0x3d8f4e){return _0xd9c7d7||_0x3d8f4e;},'lpkwG':'N/A','KiCgO':_0x1542a8(0x1ba),'uGRaN':'Cluster\x20details\x0a-----------------------\x0a','nmALZ':function(_0x84334d,_0x5ee61b){return _0x84334d!=_0x5ee61b;},'XmBuQ':_0x1542a8(0x173),'QLTcO':_0x1542a8(0x145),'orHxg':function(_0x2d9af5){return _0x2d9af5();}};let _0xb8738e=_0x1542a8(0x102)+global_registry[_0x1542a8(0xfa)]+_0x1542a8(0xf3);return _0x9174de[_0x1542a8(0x11b)]((_0x262cc2,_0x2e7c25)=>{const _0x3d8bbd=_0x1542a8,{header:_0x5c6eb8,response:_0xc9e9b8}=_0x262cc2,{status:_0x1dc341,data:_0x40d5ce,error:_0x1b21ed}=_0xc9e9b8;_0xb8738e+=_0x5c6eb8+'\x20#'+_0x1c277b[_0x3d8bbd(0x186)](_0x2e7c25,0x1)+'\x0a',_0xb8738e+=_0x3d8bbd(0xec)+(_0x1dc341?_0x1c277b[_0x3d8bbd(0x141)]:_0x1c277b[_0x3d8bbd(0x192)])+'\x0a',_0xb8738e+=_0x3d8bbd(0x135)+_0x1c277b[_0x3d8bbd(0xed)](_0x40d5ce,_0x1c277b['lpkwG'])+'\x0a',_0x1b21ed&&(_0xb8738e+=_0x1c277b[_0x3d8bbd(0x15c)],_0xb8738e+='\x20\x20Message:\x20'+(_0x1b21ed['message']||_0x1c277b[_0x3d8bbd(0x1e9)])+'\x0a',_0xb8738e+='\x20\x20Code:\x20'+(_0x1b21ed[_0x3d8bbd(0x146)]||_0x1c277b[_0x3d8bbd(0x1e9)])+'\x0a',_0xb8738e+=_0x3d8bbd(0x154)+(_0x1b21ed['stack']||_0x1c277b['lpkwG'])+'\x0a'),_0xb8738e+='\x0a\x0a';}),_0xb8738e+=_0x1c277b[_0x1542a8(0x187)],_0x1c277b[_0x1542a8(0x15f)](_0x535799,null)?_0xb8738e+=_0x1542a8(0x184)+global_registry[_0x1542a8(0x1d6)]+'\x20'+(_0x535799?_0x1c277b[_0x1542a8(0x16d)]:_0x1c277b[_0x1542a8(0x110)])+'\x0a\x0a':_0xb8738e+=_0x1542a8(0x184)+global_registry[_0x1542a8(0x1d6)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0xb8738e+=_0x1c277b[_0x1542a8(0xea)](getSystemMetaData),_0xb8738e;};exports[a17_0x3a4ad9(0x166)]=async function(_0x3fb720){const _0x2c1328=a17_0x3a4ad9,_0x4e80e7={'TPyiO':function(_0x5ec569){return _0x5ec569();},'RESNW':function(_0x171d85){return _0x171d85();},'EnVkV':_0x2c1328(0x13b),'YYJfR':function(_0x34d40a,_0x1d5bc4,_0xc8b6f2,_0x27ce99,_0x3a13db,_0x1a0dee,_0x54cc0a,_0x5ca0fb){return _0x34d40a(_0x1d5bc4,_0xc8b6f2,_0x27ce99,_0x3a13db,_0x1a0dee,_0x54cc0a,_0x5ca0fb);},'OKqpV':_0x2c1328(0x123),'JQgXi':'credential-not-found','QbxQi':'error','slrxK':function(_0x27c97b,_0x1bc10a,_0x43f950,_0x33c114,_0x1d27f5,_0x2b82c0,_0x14bc93){return _0x27c97b(_0x1bc10a,_0x43f950,_0x33c114,_0x1d27f5,_0x2b82c0,_0x14bc93);},'nPJpC':'<UsernamePlaceholder>','eWijP':_0x2c1328(0x131),'wgBfd':function(_0x36be71,_0x255604,_0x5c1f72){return _0x36be71(_0x255604,_0x5c1f72);},'XWBHE':function(_0x1fb271,_0x2adbdc,_0x51f66a){return _0x1fb271(_0x2adbdc,_0x51f66a);},'pCGnF':function(_0x363145,_0x1d4e86,_0x8c7f90,_0x40e666,_0x52f81e,_0x2393f1,_0x454daf){return _0x363145(_0x1d4e86,_0x8c7f90,_0x40e666,_0x52f81e,_0x2393f1,_0x454daf);},'tNRDq':_0x2c1328(0x167),'FKjkh':_0x2c1328(0x161),'mJzvC':_0x2c1328(0x170),'mAWMb':_0x2c1328(0x12a),'yAGUH':function(_0x31aaf4,_0x52108e,_0x402867){return _0x31aaf4(_0x52108e,_0x402867);},'DrAwE':'isTrialGridAccessible','IXXLl':function(_0x2b8540,_0x2a0d01){return _0x2b8540(_0x2a0d01);},'lkEGN':_0x2c1328(0x18a),'SpWoM':_0x2c1328(0x136),'DAHRG':_0x2c1328(0x1ee),'TYIpQ':_0x2c1328(0x14c),'jJrST':_0x2c1328(0xf0),'lwFsH':_0x2c1328(0x129),'BDmmT':function(_0x1ad8d2,_0x4c9c36){return _0x1ad8d2+_0x4c9c36;},'OjdLB':_0x2c1328(0x1dc),'stavE':_0x2c1328(0x147)};let _0x27e9d8,_0x370b77;try{global_registry[_0x2c1328(0x181)]=_0x4e80e7[_0x2c1328(0x1d7)](uuidv4);!fs[_0x2c1328(0x1bf)](_0x4e80e7['RESNW'](getCredentialsPath))&&(_0x370b77=_0x4e80e7['EnVkV'],logger['error'](_0x370b77),await _0x4e80e7[_0x2c1328(0x14f)](reportToGalactusAndSendToEDS,_0x3fb720,_0x27e9d8,_0x370b77,messageTypes[_0x2c1328(0x162)],_0x4e80e7['OKqpV'],_0x4e80e7[_0x2c1328(0x127)],_0x4e80e7['QbxQi']),process[_0x2c1328(0xf9)](0x1));_0x4e80e7['slrxK'](sendInstrumentationEvent,_0x3fb720,_0x4e80e7[_0x2c1328(0x1cd)],messageTypes[_0x2c1328(0x175)],null,null,_0x3fb720);const _0x4c5de3=JSON['parse'](fs[_0x2c1328(0x1dd)](_0x4e80e7[_0x2c1328(0x1d7)](getCredentialsPath)));global_registry[_0x2c1328(0xe8)]=_0x4c5de3[_0x2c1328(0x1e2)][_0x2c1328(0x1d0)],global_registry[_0x2c1328(0x119)]=_0x4c5de3[_0x2c1328(0x1e2)]['password'];const _0x23b14f=WS_ENDPOINT['replace'](_0x4e80e7[_0x2c1328(0x1d1)],_0x4c5de3['Browserstack'][_0x2c1328(0x1d0)])['replace'](_0x4e80e7[_0x2c1328(0x1cf)],_0x4c5de3['Browserstack'][_0x2c1328(0x14a)]),_0x38f8d2={};_0x38f8d2[_0x2c1328(0x16b)]=ws,_0x38f8d2['connectionTimeout']=0x36ee80,_0x27e9d8=new ReconnectingWebSocket(_0x23b14f,[],_0x38f8d2),global_registry['authHeader']=_0x4e80e7[_0x2c1328(0x160)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x2c1328(0x119)]),await _0x4e80e7[_0x2c1328(0x1bd)](inputValidation,_0x3fb720,_0x27e9d8),logger[_0x2c1328(0x1ab)](_0x2c1328(0x13e)+global_registry[_0x2c1328(0xfa)]+_0x2c1328(0x1c0)+global_registry[_0x2c1328(0x1ae)]);let _0x1a457d=await _0x4e80e7[_0x2c1328(0x165)](getCloudProviderObjectWithOutInit,global_registry[_0x2c1328(0xfa)],global_registry['clusterName'],_0x4e80e7[_0x2c1328(0x107)],_0x27e9d8,webSocketUtils,_0x3fb720);const _0x2bf265=await _0x1a457d[_0x2c1328(0x164)]();_0x4e80e7[_0x2c1328(0x1bd)](printResponse,_0x4e80e7[_0x2c1328(0x1be)],_0x2bf265),_0x1a457d=await _0x1a457d[_0x2c1328(0x13c)]();let _0x577b54=![];try{_0x577b54=await _0x1a457d[_0x2c1328(0x1ce)]();}catch(_0x424ec6){const _0x128de0=_0x4e80e7['mJzvC'][_0x2c1328(0x11d)]('|');let _0xf3073c=0x0;while(!![]){switch(_0x128de0[_0xf3073c++]){case'0':_0x577b54=null;continue;case'1':_0x370b77+='\x0a'+JSON['stringify'](_0x424ec6[_0x2c1328(0x194)]);continue;case'2':logger[_0x2c1328(0x104)](_0x370b77);continue;case'3':await _0x4e80e7[_0x2c1328(0x14f)](reportToGalactusAndSendToEDS,_0x3fb720,_0x27e9d8,_0x370b77,messageTypes[_0x2c1328(0x162)],_0x4e80e7[_0x2c1328(0x1cd)],'cluster-check-failed-'+global_registry[_0x2c1328(0xfa)],_0x4e80e7[_0x2c1328(0xf7)]);continue;case'4':_0x370b77=_0x2c1328(0x15d)+global_registry['clusterName']+_0x2c1328(0x134)+global_registry['clusterRegion']+_0x2c1328(0x15e)+_0x424ec6;continue;}break;}}_0x577b54&&logger[_0x2c1328(0x1ab)]('Cluster\x20`'+global_registry[_0x2c1328(0x1d6)]+'`\x20already\x20exists');const _0xd6973d=await _0x1a457d[_0x2c1328(0x155)]();_0x4e80e7['wgBfd'](printResponse,_0x4e80e7[_0x2c1328(0x1b0)],_0xd6973d);const _0x15fd08=await _0x4e80e7[_0x2c1328(0x115)](curlRequest);_0x4e80e7[_0x2c1328(0x1d3)](printResponse,_0x4e80e7[_0x2c1328(0x1c5)],_0x15fd08);const _0x438108=await _0x4e80e7[_0x2c1328(0x15b)](isTlsSupported,_0x4e80e7[_0x2c1328(0x19a)]);_0x4e80e7[_0x2c1328(0x1d3)](printResponse,_0x4e80e7[_0x2c1328(0xf2)],_0x438108);const _0x1b79c7={};_0x1b79c7[_0x2c1328(0x172)]=_0x4e80e7['DAHRG'],_0x1b79c7[_0x2c1328(0x198)]=_0x2bf265;const _0x45dc5a={};_0x45dc5a['header']=_0x4e80e7[_0x2c1328(0x1df)],_0x45dc5a[_0x2c1328(0x198)]=_0xd6973d;const _0x2a0570={};_0x2a0570[_0x2c1328(0x172)]=_0x4e80e7[_0x2c1328(0x1e6)],_0x2a0570[_0x2c1328(0x198)]=_0x15fd08;const _0x4ce882={};_0x4ce882[_0x2c1328(0x172)]=_0x4e80e7[_0x2c1328(0x1e4)],_0x4ce882[_0x2c1328(0x198)]=_0x438108;const _0x17e93f=[_0x1b79c7,_0x45dc5a,_0x2a0570,_0x4ce882],_0x196bf6=await _0x4e80e7[_0x2c1328(0x1bd)](generateReport,_0x17e93f,_0x577b54),_0x435a05=new Date(),_0x544bf0=_0x435a05[_0x2c1328(0x132)]()+'_'+_0x4e80e7['BDmmT'](_0x435a05['getUTCMonth'](),0x1)+'_'+_0x435a05['getUTCDate']()+'_'+_0x435a05[_0x2c1328(0x124)]()+'_'+_0x435a05[_0x2c1328(0x19c)](),_0x73d4bc=_0x2c1328(0x1e3)+_0x544bf0+_0x2c1328(0x1d9);fs[_0x2c1328(0x122)](_0x73d4bc,_0x196bf6,_0x4e80e7[_0x2c1328(0x17c)]),logger[_0x2c1328(0x1ab)]('Report\x20saved\x20in\x20'+_0x73d4bc),process[_0x2c1328(0xf9)](0x0);}catch(_0x2d7ac6){let _0x52d340=_0x2c1328(0x19d)+_0x2d7ac6+'\x20';logger['error'](_0x52d340),_0x52d340+='\x0a'+JSON['stringify'](_0x2d7ac6[_0x2c1328(0x194)]),logger['debug']('stack\x20trace\x20'+_0x2d7ac6[_0x2c1328(0x194)]);if(_0x27e9d8){const _0x392afb={};_0x392afb[_0x2c1328(0x1f0)]=WS_EVENTS[_0x2c1328(0x126)],_0x392afb[_0x2c1328(0x1c4)]=_0x52d340,webSocketUtils[_0x2c1328(0x109)](_0x27e9d8,_0x392afb,_0x4e80e7[_0x2c1328(0xf7)],!![]);}await webSocketUtils[_0x2c1328(0x16f)](0x7d0);const _0x143371={};_0x143371[_0x2c1328(0x104)]=_0x52d340,await _0x4e80e7[_0x2c1328(0x165)](sendInstrumentationEvent,_0x3fb720,_0x4e80e7[_0x2c1328(0x1cd)],messageTypes['ERROR'],_0x4e80e7['stavE'],_0x143371,_0x3fb720),process[_0x2c1328(0xf9)](0x1);}};
1
+ const a17_0x4428c2=a17_0x1912;(function(_0x3e4541,_0x281f62){const _0x55aee1=a17_0x1912,_0x4165ab=_0x3e4541();while(!![]){try{const _0x1f9979=parseInt(_0x55aee1(0x169))/0x1+parseInt(_0x55aee1(0x12f))/0x2+parseInt(_0x55aee1(0x199))/0x3+-parseInt(_0x55aee1(0x126))/0x4*(-parseInt(_0x55aee1(0x1b9))/0x5)+parseInt(_0x55aee1(0x15e))/0x6+-parseInt(_0x55aee1(0x16f))/0x7+-parseInt(_0x55aee1(0x136))/0x8;if(_0x1f9979===_0x281f62)break;else _0x4165ab['push'](_0x4165ab['shift']());}catch(_0x3a0814){_0x4165ab['push'](_0x4165ab['shift']());}}}(a17_0x5f44,0x4f35e));const fs=require('fs'),ws=require('ws'),got=require(a17_0x4428c2(0x192)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x4428c2(0x132)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4428c2(0x1ab)),{logger}=require(a17_0x4428c2(0x141)),{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_0x4428c2(0xd3)),{getCloudProviderObjectWithOutInit}=require(a17_0x4428c2(0x128)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x4428c2(0x1ce));function a17_0x1912(_0x33b85d,_0x4caeff){const _0x5f444f=a17_0x5f44();return a17_0x1912=function(_0x1912fc,_0x510f71){_0x1912fc=_0x1912fc-0xd2;let _0x123ef1=_0x5f444f[_0x1912fc];return _0x123ef1;},a17_0x1912(_0x33b85d,_0x4caeff);}exports[a17_0x4428c2(0x1b2)]=a17_0x4428c2(0x14f),exports[a17_0x4428c2(0x19a)]=a17_0x4428c2(0xfa),exports[a17_0x4428c2(0xf2)]=function(_0x5ad10d){const _0x5a02f9=a17_0x4428c2,_0x190a3c={};_0x190a3c[_0x5a02f9(0x121)]=_0x5a02f9(0x160),_0x190a3c['UNjnj']=_0x5a02f9(0x19f),_0x190a3c[_0x5a02f9(0x1a8)]=_0x5a02f9(0xef),_0x190a3c['tOrgB']=_0x5a02f9(0x175),_0x190a3c[_0x5a02f9(0xf3)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x190a3c[_0x5a02f9(0xfb)]='help';const _0x172c50=_0x190a3c,_0xc57bbd={};_0xc57bbd['description']=_0x172c50['Kiwgx'],_0xc57bbd[_0x5a02f9(0x105)]=_0x172c50[_0x5a02f9(0x166)];const _0x240719={};_0x240719['description']=_0x172c50[_0x5a02f9(0x1a8)],_0x240719[_0x5a02f9(0x105)]=_0x172c50[_0x5a02f9(0x166)];const _0x331725={};_0x331725[_0x5a02f9(0x16b)]=_0x172c50['tOrgB'],_0x331725[_0x5a02f9(0x105)]=_0x172c50[_0x5a02f9(0x166)];const _0x52cbc3={};_0x52cbc3[_0x5a02f9(0x16b)]=_0x172c50[_0x5a02f9(0xf3)],_0x52cbc3[_0x5a02f9(0x105)]=_0x172c50[_0x5a02f9(0x166)];const _0x4ac998={};return _0x4ac998['cluster-name']=_0xc57bbd,_0x4ac998[_0x5a02f9(0x16a)]=_0x240719,_0x4ac998['region']=_0x331725,_0x4ac998[_0x5a02f9(0x178)]=_0x52cbc3,_0x5ad10d[_0x5a02f9(0xe8)](HELP_HEADER_MESSAGE[_0x5a02f9(0x1c3)])[_0x5a02f9(0xd9)](HELP_FOOTER_MESSAGE)[_0x5a02f9(0xec)](_0x4ac998)[_0x5a02f9(0x19b)](_0x172c50[_0x5a02f9(0xfb)])[_0x5a02f9(0xed)];};async function inputValidation(_0x2b0e25,_0x18ae9e){const _0x1e2acf=a17_0x4428c2,_0xfc1daa={'bEciC':'Error\x20Details:\x0a','xhstb':'N/A','VYUIK':_0x1e2acf(0x13c),'RDMdy':function(_0x1dbaad,_0x1da5f7){return _0x1dbaad+_0x1da5f7;},'gcLBG':_0x1e2acf(0x18d),'mwEoJ':_0x1e2acf(0x189),'vzGJG':function(_0x15ac7d,_0x2f37a0){return _0x15ac7d||_0x2f37a0;},'NzYNd':'error','aksKp':_0x1e2acf(0x1bf),'Lhnyn':_0x1e2acf(0xd7),'JrZhb':'will\x20be\x20created','qTMyj':'region','WpuiY':'cloud-provider','oPMGR':function(_0x978713,_0x3b04ae){return _0x978713!==_0x3b04ae;},'xwVjQ':_0x1e2acf(0x156),'UPzPk':function(_0x51b8f3,_0x4bac0a){return _0x51b8f3===_0x4bac0a;},'yeIDx':_0x1e2acf(0x1bc),'yjjyD':_0x1e2acf(0x1a1),'fMbzl':_0x1e2acf(0x108),'xsOqo':'vJzGZ','AfGhK':_0x1e2acf(0x1bb),'aOJEm':_0x1e2acf(0x17b),'YaQpt':_0x1e2acf(0x17c),'TFEwV':_0x1e2acf(0xff),'QHhox':function(_0x561884,_0x387b7f){return _0x561884>_0x387b7f;},'xdqTG':function(_0xcdaf0,_0x60cdd2){return _0xcdaf0!==_0x60cdd2;},'rJggW':_0x1e2acf(0x179),'qXWMh':function(_0x4dcd42,_0x71f78c,_0x32bc61,_0x1a9395,_0x5692fa,_0x5c0db2,_0x4cd68f,_0x3919e7){return _0x4dcd42(_0x71f78c,_0x32bc61,_0x1a9395,_0x5692fa,_0x5c0db2,_0x4cd68f,_0x3919e7);},'ZFfkq':'pre-check-grid-called','RVuJI':'pre-check-cluster-args-not-passed','pspIz':_0x1e2acf(0x1c0),'Xnbmo':_0x1e2acf(0xee),'ywpMP':_0x1e2acf(0x111),'NyFEb':_0x1e2acf(0x14e),'rrOLl':_0x1e2acf(0xd8),'CqmsS':function(_0x3d029e,_0x1813ad){return _0x3d029e!==_0x1813ad;},'tjpww':'jDcHM','SFTMK':_0x1e2acf(0x1b4),'vbLOD':function(_0x30ba78,_0x42d945,_0x4fc27b){return _0x30ba78(_0x42d945,_0x4fc27b);},'yzhIq':function(_0x1b0269,_0x88fa6d,_0x2b9fe3,_0x594953,_0x4d6321,_0x347042){return _0x1b0269(_0x88fa6d,_0x2b9fe3,_0x594953,_0x4d6321,_0x347042);},'qLLjN':_0x1e2acf(0x101),'wYYnS':_0x1e2acf(0x178),'oJTkE':function(_0x223a57,_0x1a1871){return _0x223a57===_0x1a1871;},'zXpUm':function(_0x27468b,_0x588f3e){return _0x27468b===_0x588f3e;},'jaWZh':_0x1e2acf(0x162),'jeFbp':function(_0x278bd0,_0x1b0f34){return _0x278bd0(_0x1b0f34);},'nYYTt':_0x1e2acf(0x1a9),'rjuis':'pre-check-grid-profile-empty','loQWh':function(_0x1649c8,_0x707f51){return _0x1649c8!==_0x707f51;},'eqtIT':_0x1e2acf(0x18f),'KkIXE':function(_0x2e454a,_0x2d9817){return _0x2e454a===_0x2d9817;},'dnELe':'ssdDH','KMhCs':_0x1e2acf(0x107),'bUCQf':function(_0x47e9d2,_0x24bb87){return _0x47e9d2===_0x24bb87;},'AVvjm':_0x1e2acf(0x15b),'JBQCB':_0x1e2acf(0x10c),'blrhw':function(_0x2ef735,_0x18d124){return _0x2ef735===_0x18d124;},'ycvVX':_0x1e2acf(0x119),'VDGPf':_0x1e2acf(0x148),'qXRbY':function(_0xb14988,_0x1743bf,_0x345609,_0x3ce7c8,_0x29e99f,_0x4841da,_0x7d830e,_0x406ead){return _0xb14988(_0x1743bf,_0x345609,_0x3ce7c8,_0x29e99f,_0x4841da,_0x7d830e,_0x406ead);}};let _0x43efd7;try{if(_0xfc1daa['oPMGR'](_0xfc1daa['xwVjQ'],_0xfc1daa[_0x1e2acf(0x1cc)]))_0x3b0c4b+=_0x1e2acf(0xdf)+_0x2699ad[_0x1e2acf(0x137)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{if(_0x2b0e25[_0x1e2acf(0x137)]||_0x2b0e25['cloudProvider']||_0x2b0e25[_0x1e2acf(0x1cf)]){if(_0xfc1daa[_0x1e2acf(0x11b)](_0xfc1daa['yeIDx'],_0xfc1daa[_0x1e2acf(0x177)]))_0x5542aa['info']('['+_0x3d81bd+']\x20status\x20:\x20'+_0x42b1ab[_0x1e2acf(0x158)]+_0x1e2acf(0xd4)+_0x5ddc7d['data']+'\x20error\x20:\x20'+_0x14fc11[_0x1e2acf(0x13a)]),_0x5857c3[_0x1e2acf(0x13a)]&&_0x3ffce5[_0x1e2acf(0x13a)](_0x1e2acf(0x112)+_0x38be35[_0x1e2acf(0x13a)][_0x1e2acf(0x147)]);else{const _0x288efa=[];!_0x2b0e25[_0x1e2acf(0x137)]&&(_0xfc1daa['UPzPk'](_0xfc1daa[_0x1e2acf(0xf9)],_0xfc1daa['xsOqo'])?(_0x149db7+=_0xfc1daa['bEciC'],_0x2e6702+=_0x1e2acf(0x19e)+(_0x415162[_0x1e2acf(0x161)]||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a',_0x56b107+=_0x1e2acf(0xdc)+(_0x407083[_0x1e2acf(0x122)]||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a',_0x12e371+='\x20\x20Stack:\x20'+(_0x422ee6['stack']||_0xfc1daa['xhstb'])+'\x0a'):_0x288efa[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0xf6)]));;!_0x2b0e25[_0x1e2acf(0x13f)]&&(_0xfc1daa[_0x1e2acf(0x11b)](_0xfc1daa[_0x1e2acf(0x11a)],_0xfc1daa[_0x1e2acf(0x1a5)])?_0x19b2a8[_0x1e2acf(0xfd)](0x1):_0x288efa[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0x183)]));;!_0x2b0e25[_0x1e2acf(0x1cf)]&&(_0xfc1daa[_0x1e2acf(0x1c8)](_0xfc1daa[_0x1e2acf(0x135)],_0xfc1daa[_0x1e2acf(0x193)])?_0x288efa[_0x1e2acf(0xe7)](_0xfc1daa['qTMyj']):_0x28bf21[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0xf6)]));;if(_0xfc1daa[_0x1e2acf(0x14d)](_0x288efa['length'],0x0)){if(_0xfc1daa[_0x1e2acf(0xd6)](_0xfc1daa[_0x1e2acf(0x1c4)],_0xfc1daa['rJggW'])){const {header:_0x53e4c3,response:_0x5011d4}=_0x393b7e,{status:_0x239cc4,data:_0x4ac090,error:_0x50a346}=_0x5011d4;_0xe31e95+=_0x53e4c3+'\x20#'+_0xfc1daa[_0x1e2acf(0x113)](_0x3732bf,0x1)+'\x0a',_0x472c28+=_0x1e2acf(0x17f)+(_0x239cc4?_0xfc1daa[_0x1e2acf(0x167)]:_0xfc1daa[_0x1e2acf(0x13d)])+'\x0a',_0x4372ea+='Message:\x20'+_0xfc1daa['vzGJG'](_0x4ac090,_0xfc1daa['xhstb'])+'\x0a',_0x50a346&&(_0x1beb18+=_0xfc1daa[_0x1e2acf(0x1c6)],_0x321957+=_0x1e2acf(0x19e)+(_0x50a346[_0x1e2acf(0x161)]||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a',_0x494751+=_0x1e2acf(0xdc)+(_0x50a346[_0x1e2acf(0x122)]||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a',_0x252362+=_0x1e2acf(0x1c9)+(_0x50a346['stack']||_0xfc1daa[_0x1e2acf(0x115)])+'\x0a'),_0x3f06e6+='\x0a\x0a';}else _0x43efd7='Missing\x20required\x20arguments:\x20'+_0x288efa['join'](',\x20')+_0x1e2acf(0x14b),await _0xfc1daa[_0x1e2acf(0x1b1)](reportToGalactusAndSendToEDS,_0x2b0e25,_0x18ae9e,_0x43efd7,messageTypes['ERROR'],_0xfc1daa['ZFfkq'],_0xfc1daa['RVuJI'],_0xfc1daa['NzYNd']),logger['error'](_0x43efd7),process[_0x1e2acf(0xfd)](0x1);}if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1e2acf(0x104)](_0x2b0e25['cloudProvider'][_0x1e2acf(0x106)]())){if(_0xfc1daa[_0x1e2acf(0x11b)](_0xfc1daa['pspIz'],_0xfc1daa['Xnbmo'])){const _0x114e42={};_0x114e42[_0x1e2acf(0x105)]=_0x8d0d02['LOG'],_0x114e42[_0x1e2acf(0x161)]=_0x57e24c,_0x30d42f[_0x1e2acf(0x140)](_0x2af136,_0x114e42,_0xfc1daa[_0x1e2acf(0x138)],!![]);}else _0x43efd7=_0xfc1daa[_0x1e2acf(0x10e)],await _0xfc1daa[_0x1e2acf(0x1b1)](reportToGalactusAndSendToEDS,_0x2b0e25,_0x18ae9e,_0x43efd7,messageTypes[_0x1e2acf(0x131)],_0xfc1daa['ZFfkq'],_0xfc1daa[_0x1e2acf(0x18a)],_0xfc1daa[_0x1e2acf(0x138)]),logger[_0x1e2acf(0x13a)](_0x43efd7),!_0x2b0e25[_0x1e2acf(0x13f)]&&(_0xfc1daa[_0x1e2acf(0x11b)](_0xfc1daa[_0x1e2acf(0x12b)],_0xfc1daa[_0x1e2acf(0x12b)])?(logger[_0x1e2acf(0x17e)](_0x1e2acf(0xf0)+DEFAULT_CLUSTER_DETAILS[_0x1e2acf(0x18b)]+'\x20'),_0x2b0e25['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x468085[_0x1e2acf(0x17e)]('Cluster\x20`'+_0x47fee7[_0x1e2acf(0x137)]+'`\x20already\x20exists'));}global_registry[_0x1e2acf(0x137)]=_0x2b0e25['clusterName'],global_registry[_0x1e2acf(0x13f)]=_0x2b0e25[_0x1e2acf(0x13f)],global_registry[_0x1e2acf(0x164)]=_0x2b0e25[_0x1e2acf(0x1cf)];}}else{if(_0x2b0e25[_0x1e2acf(0x19c)]){if(_0xfc1daa[_0x1e2acf(0xfe)](_0xfc1daa[_0x1e2acf(0xe0)],_0xfc1daa[_0x1e2acf(0xe0)]))_0x827fdb['error'](_0xfc1daa['aksKp']),_0x3e6be0[_0x1e2acf(0xfd)](0x1);else{global_registry['gridProfile']=_0x2b0e25[_0x1e2acf(0x19c)],logger[_0x1e2acf(0x134)](_0x1e2acf(0xe6)+_0x2b0e25['gridProfile']);const _0x3a3344='https://'+AG_API_URL+_0x1e2acf(0x12d),_0x2bc81e={};_0x2bc81e[_0x1e2acf(0x13b)]=_0xfc1daa[_0x1e2acf(0xe1)],_0x2bc81e[_0x1e2acf(0xf1)]=global_registry['authHeader'],_0x2bc81e['throwHttpErrors']=![];const _0x2878b5=_0x2bc81e,_0x56b19b=await _0xfc1daa['vbLOD'](got,_0x3a3344,_0x2878b5),_0x37579b=await _0xfc1daa[_0x1e2acf(0xe2)](responseValidation,_0x56b19b,_0xfc1daa[_0x1e2acf(0x18e)],_0xfc1daa[_0x1e2acf(0x1c5)],_0x2b0e25,_0x18ae9e);let _0x46a069={};if(_0xfc1daa[_0x1e2acf(0x18c)](_0x37579b,0xc8)){if(_0xfc1daa[_0x1e2acf(0x170)](_0xfc1daa[_0x1e2acf(0x14c)],_0xfc1daa[_0x1e2acf(0x14c)])){const _0x4bcd34=JSON[_0x1e2acf(0x152)](_0x56b19b[_0x1e2acf(0x1a2)]),_0x325569=_0x4bcd34[_0x1e2acf(0x12e)](_0x39e613=>_0x39e613['name']===_0x2b0e25[_0x1e2acf(0x19c)])||null;_0xfc1daa[_0x1e2acf(0x168)](isUndefined,_0x325569)?_0xfc1daa[_0x1e2acf(0xfe)](_0xfc1daa['nYYTt'],_0xfc1daa[_0x1e2acf(0x15d)])?_0x488982=_0x4e1969:(_0x43efd7=_0x1e2acf(0x154)+_0x2b0e25[_0x1e2acf(0x19c)]+_0x1e2acf(0x181),await _0xfc1daa[_0x1e2acf(0x1b1)](reportToGalactusAndSendToEDS,_0x2b0e25,_0x18ae9e,_0x43efd7,messageTypes[_0x1e2acf(0x131)],_0xfc1daa['ZFfkq'],_0xfc1daa[_0x1e2acf(0x1ba)],_0xfc1daa['NzYNd']),logger[_0x1e2acf(0x13a)](_0x43efd7),process[_0x1e2acf(0xfd)](0x1)):_0xfc1daa[_0x1e2acf(0xde)](_0xfc1daa[_0x1e2acf(0x15a)],_0xfc1daa[_0x1e2acf(0x15a)])?_0x2e1b44+=_0x1e2acf(0xdf)+_0x100c65['clusterName']+'\x20'+(_0x4b08f5?_0xfc1daa['Lhnyn']:_0xfc1daa['JrZhb'])+'\x0a\x0a':_0x46a069=_0x325569;}else _0x2fe958[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0x159)]);}else _0xfc1daa[_0x1e2acf(0x163)](_0xfc1daa[_0x1e2acf(0x184)],_0xfc1daa[_0x1e2acf(0x184)])?process[_0x1e2acf(0xfd)](0x1):_0x19fa2e[_0x1e2acf(0x13a)](_0x1e2acf(0x112)+_0x39df44[_0x1e2acf(0x13a)][_0x1e2acf(0x147)]);const _0x515bd8={};_0x515bd8[_0x1e2acf(0x105)]=WS_EVENTS[_0x1e2acf(0x1cb)],_0x515bd8[_0x1e2acf(0x161)]=_0xfc1daa['KMhCs'],webSocketUtils[_0x1e2acf(0x140)](_0x18ae9e,_0x515bd8),global_registry[_0x1e2acf(0x13f)]=_0x46a069[_0x1e2acf(0x13f)],global_registry[_0x1e2acf(0x164)]=_0x46a069[_0x1e2acf(0x1cf)],global_registry[_0x1e2acf(0x137)]=_0x46a069[_0x1e2acf(0x137)];}}else _0xfc1daa[_0x1e2acf(0x1af)](_0xfc1daa[_0x1e2acf(0x1c7)],_0xfc1daa[_0x1e2acf(0x103)])?(_0x4017d4[_0x1e2acf(0x17e)](_0x1e2acf(0xf0)+_0xa713d4[_0x1e2acf(0x18b)]+'\x20'),_0x495b45[_0x1e2acf(0x13f)]=_0x564f66['CLOUD_PROVIDER']):(logger['error'](_0xfc1daa['aksKp']),process[_0x1e2acf(0xfd)](0x1));}}}catch(_0xc5f6a2){_0xfc1daa[_0x1e2acf(0x120)](_0xfc1daa[_0x1e2acf(0x145)],_0xfc1daa[_0x1e2acf(0x172)])?_0x126e0d[_0x1e2acf(0xe7)](_0xfc1daa[_0x1e2acf(0x183)]):(_0x43efd7=_0x1e2acf(0x15c)+_0xc5f6a2+':\x20'+_0xc5f6a2[_0x1e2acf(0x147)],logger[_0x1e2acf(0x13a)](_0x43efd7),await _0xfc1daa[_0x1e2acf(0x198)](reportToGalactusAndSendToEDS,_0x2b0e25,_0x18ae9e,_0x43efd7,messageTypes['ERROR'],_0xfc1daa[_0x1e2acf(0x149)],_0xfc1daa[_0x1e2acf(0x18a)],_0xfc1daa['NzYNd']),process[_0x1e2acf(0xfd)](0x1));}}function a17_0x5f44(){const _0x397d08=['Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','message','mWVmf','KkIXE','clusterRegion','twAvz','UNjnj','gcLBG','jeFbp','490065PDcdfn','cloud-provider','description','header','existsSync','XXUDm','2460269BLfIij','zXpUm','SSL\x20Configured','VDGPf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eUeXx','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20region\x20-\x20','yjjyD','grid-profile','eQroI','dtxHQ','xfdmb','tTYwU','Message:\x20','info','Status:\x20','PmVdm','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','QYdYV','WpuiY','dnELe','uensy','init','bGlIb','connectionTimeout','Failure','NyFEb','CLOUD_PROVIDER','oJTkE','Success','qLLjN','shMmj','cluster-check-failed-','checkAccess','got','TFEwV','stringify','MIunj','mfjwY','delay','qXRbY','1395516mxhNrp','desc','help','gridProfile','data','\x20\x20Message:\x20','string','WebSocket','posgz','body','\x20===\x0a\x0a','dummy-grid','aOJEm','klFNf','VuQzB','CJCMb','zNLhP','\x20error\x20:\x20','../../utils/utilityMethods','username','Pre-check\x20running\x20for\x20Cloud\x20-\x20','isTls1_2_SUPPORTED','bUCQf','LTxXP','qXWMh','command','kZqWO','GET','password','pre-check-grid-called','Failed\x20in\x20pre-check!\x20Error:\x20','mhHQP','5fIXQlW','rjuis','MCFvi','LaLRB','uSrFB','bstackUsername','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','MCoKI','oWQaZ','stack\x20trace\x20','pre_check','rJggW','wYYnS','bEciC','AVvjm','oPMGR','\x20\x20Stack:\x20','isTrialGridAccessible','LOG','xwVjQ','lLLca','../../utils/instrumentationUtils','region','handler','../../config/constants','\x20data\x20:\x20','replace','xdqTG','is\x20already\x20present','Xrgre','epilogue','`\x20already\x20exists','will\x20be\x20created','\x20\x20Code:\x20','Cluster\x20details\x0a-----------------------\x0a','loQWh','Cluster\x20','tjpww','SFTMK','yzhIq','vvqsq','readFileSync','gjplU','grid\x20profile\x20flow\x20','push','usage','KGuLK','Tool\x20Installed','Rnfir','options','argv','rpjAy','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Setting\x20cloud\x20provider\x20as\x20','headers','builder','yfRxj','ptFmu','unable\x20to\x20verify\x20if\x20cluster\x20`','VYUIK','getUTCDate','Browserstack','fMbzl','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','icada','accessResp','exit','CqmsS','gWVXR','isCliToolInstalled','pre-check','bstackAccesskey','JBQCB','includes','type','toLowerCase','Grid\x20profile\x20fetched\x20for\x20pre-check','DHNQj','getUTCMinutes','urUhh','<PasswordPlaceholder>','aoKJx','authHeader','ywpMP','YnyGc','Error\x20Details:\x0a','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','error\x20stack\x20:\x20','RDMdy','kbgwk','xhstb','getUTCMonth','EgdFU','agOaQ','RUJOV','AfGhK','UPzPk','rEvPn','aZcIl','Cluster\x20`','suwHo','blrhw','Kiwgx','code','credential-not-found','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ZRNfh','386288qbZYAX','JVPes','../../cloudproviders/utils','INFO','User\x20Access','rrOLl','split','/packages/cli/get-all-grid-profiles','find','281102UMHILJ',']\x20status\x20:\x20','ERROR','reconnecting-websocket','mIcED','debug','YaQpt','5236400Wcrlyi','clusterName','NzYNd','requestId','error','method','cluster-name','mwEoJ','MsZtc','cloudProvider','sendEventToBackend','../../config/logger','OovTJ','rOLFZ','response','ycvVX','MgLQT','stack','GeRVL','ZFfkq','FbRDq','.\x20Please\x20provide\x20all\x20required\x20arguments.','jaWZh','QHhox','cloud-provider-not-supported','grid','===\x20Precheck\x20Report\x20-\x20','writeFileSync','parse','0|3|4|2|1','Invalid\x20input.\x20grid\x20profiles:\x20','FpEqr','GuSvc','toolInstalledResp','status','qTMyj','eqtIT','cPAiQ','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','nYYTt','828618tVHmXn','XOKBh'];a17_0x5f44=function(){return _0x397d08;};return a17_0x5f44();}function printResponse(_0x4e2421,_0x215556){const _0x2ce174=a17_0x4428c2,_0x135285={};_0x135285['rEvPn']=_0x2ce174(0x160),_0x135285[_0x2ce174(0x182)]=_0x2ce174(0x19f),_0x135285[_0x2ce174(0x165)]=_0x2ce174(0xef),_0x135285[_0x2ce174(0x10f)]=_0x2ce174(0x175),_0x135285['MgLQT']=_0x2ce174(0x124),_0x135285[_0x2ce174(0xe3)]=_0x2ce174(0x19b),_0x135285[_0x2ce174(0x1b0)]=function(_0x307396,_0x252b9d){return _0x307396===_0x252b9d;},_0x135285[_0x2ce174(0x1b3)]='hXuZY',_0x135285[_0x2ce174(0x127)]=_0x2ce174(0x155);const _0x4dbb35=_0x135285;logger[_0x2ce174(0x17e)]('['+_0x4e2421+_0x2ce174(0x130)+_0x215556[_0x2ce174(0x158)]+_0x2ce174(0xd4)+_0x215556[_0x2ce174(0x19d)]+_0x2ce174(0x1aa)+_0x215556[_0x2ce174(0x13a)]);if(_0x215556[_0x2ce174(0x13a)]){if(_0x4dbb35[_0x2ce174(0x1b0)](_0x4dbb35[_0x2ce174(0x1b3)],_0x4dbb35[_0x2ce174(0x127)])){const _0x7644c3={};_0x7644c3[_0x2ce174(0x16b)]=_0x4dbb35[_0x2ce174(0x11c)],_0x7644c3[_0x2ce174(0x105)]=_0x4dbb35['QYdYV'];const _0x550b66={};_0x550b66[_0x2ce174(0x16b)]=_0x4dbb35[_0x2ce174(0x165)],_0x550b66['type']=_0x4dbb35[_0x2ce174(0x182)];const _0x128574={};_0x128574[_0x2ce174(0x16b)]=_0x4dbb35['YnyGc'],_0x128574[_0x2ce174(0x105)]=_0x4dbb35[_0x2ce174(0x182)];const _0x3517d9={};_0x3517d9[_0x2ce174(0x16b)]=_0x4dbb35[_0x2ce174(0x146)],_0x3517d9[_0x2ce174(0x105)]=_0x4dbb35['QYdYV'];const _0x5448df={};return _0x5448df[_0x2ce174(0x13c)]=_0x7644c3,_0x5448df[_0x2ce174(0x16a)]=_0x550b66,_0x5448df[_0x2ce174(0x1cf)]=_0x128574,_0x5448df[_0x2ce174(0x178)]=_0x3517d9,_0x48f6a5[_0x2ce174(0xe8)](_0x4ccad4[_0x2ce174(0x1c3)])['epilogue'](_0xce67fe)['options'](_0x5448df)['help'](_0x4dbb35['vvqsq'])[_0x2ce174(0xed)];}else logger['error']('error\x20stack\x20:\x20'+_0x215556[_0x2ce174(0x13a)][_0x2ce174(0x147)]);}}async function generateReport(_0x8a6a4f,_0x1a128d){const _0x1f8e50=a17_0x4428c2,_0x1f8859={'agOaQ':function(_0x17b430,_0x4d18f8){return _0x17b430+_0x4d18f8;},'ptFmu':_0x1f8e50(0x18d),'mfjwY':_0x1f8e50(0x189),'pFgOX':function(_0x1ea4f3,_0x4437f9){return _0x1ea4f3||_0x4437f9;},'MsZtc':'N/A','zUbHh':_0x1f8e50(0x110),'MIunj':_0x1f8e50(0xdd),'nZJeR':function(_0x127190,_0x40de0a){return _0x127190!=_0x40de0a;},'PmVdm':_0x1f8e50(0xd7),'NtaCn':_0x1f8e50(0xdb),'gjplU':function(_0x4bc978){return _0x4bc978();}};let _0x11ae87=_0x1f8e50(0x150)+global_registry[_0x1f8e50(0x13f)]+_0x1f8e50(0x1a3);return _0x8a6a4f['forEach']((_0x515285,_0x31c4ee)=>{const _0xab4f9e=_0x1f8e50,{header:_0x4e47f3,response:_0x3624b7}=_0x515285,{status:_0x15a796,data:_0x11a4eb,error:_0x29ca1f}=_0x3624b7;_0x11ae87+=_0x4e47f3+'\x20#'+_0x1f8859[_0xab4f9e(0x118)](_0x31c4ee,0x1)+'\x0a',_0x11ae87+=_0xab4f9e(0x17f)+(_0x15a796?_0x1f8859[_0xab4f9e(0xf4)]:_0x1f8859[_0xab4f9e(0x196)])+'\x0a',_0x11ae87+=_0xab4f9e(0x17d)+_0x1f8859['pFgOX'](_0x11a4eb,_0x1f8859[_0xab4f9e(0x13e)])+'\x0a',_0x29ca1f&&(_0x11ae87+=_0x1f8859['zUbHh'],_0x11ae87+='\x20\x20Message:\x20'+(_0x29ca1f[_0xab4f9e(0x161)]||_0x1f8859[_0xab4f9e(0x13e)])+'\x0a',_0x11ae87+='\x20\x20Code:\x20'+(_0x29ca1f[_0xab4f9e(0x122)]||_0x1f8859['MsZtc'])+'\x0a',_0x11ae87+='\x20\x20Stack:\x20'+(_0x29ca1f[_0xab4f9e(0x147)]||_0x1f8859[_0xab4f9e(0x13e)])+'\x0a'),_0x11ae87+='\x0a\x0a';}),_0x11ae87+=_0x1f8859[_0x1f8e50(0x195)],_0x1f8859['nZJeR'](_0x1a128d,null)?_0x11ae87+='Cluster\x20'+global_registry[_0x1f8e50(0x137)]+'\x20'+(_0x1a128d?_0x1f8859[_0x1f8e50(0x180)]:_0x1f8859['NtaCn'])+'\x0a\x0a':_0x11ae87+=_0x1f8e50(0xdf)+global_registry[_0x1f8e50(0x137)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x11ae87+=_0x1f8859[_0x1f8e50(0xe5)](getSystemMetaData),_0x11ae87;};exports[a17_0x4428c2(0xd2)]=async function(_0x4a9e36){const _0x3f5024=a17_0x4428c2,_0x39bbb4={'EgdFU':function(_0x1323c4){return _0x1323c4();},'suwHo':function(_0x33b54d){return _0x33b54d();},'XOKBh':_0x3f5024(0x173),'GPlSe':function(_0x494dfb,_0x48739b,_0x17610c,_0x365fa9,_0x5924e3,_0x2a8726,_0x1cb81d,_0x3ea0){return _0x494dfb(_0x48739b,_0x17610c,_0x365fa9,_0x5924e3,_0x2a8726,_0x1cb81d,_0x3ea0);},'kbgwk':_0x3f5024(0x1b6),'oWQaZ':_0x3f5024(0x123),'VuQzB':_0x3f5024(0x13a),'klFNf':function(_0x47d7eb,_0x6c7f61,_0xf2a50f,_0x50f9e6,_0x3a5b39,_0x32db7b,_0x401f52){return _0x47d7eb(_0x6c7f61,_0xf2a50f,_0x50f9e6,_0x3a5b39,_0x32db7b,_0x401f52);},'oxBfV':function(_0x248f26){return _0x248f26();},'KGuLK':'<UsernamePlaceholder>','Rnfir':_0x3f5024(0x10b),'FbRDq':function(_0x409980,_0x1d6b12,_0x491a8e){return _0x409980(_0x1d6b12,_0x491a8e);},'aZcIl':function(_0x3792f1,_0x239edc,_0x36db53){return _0x3792f1(_0x239edc,_0x36db53);},'OovTJ':_0x3f5024(0x1a4),'uSrFB':function(_0x354246,_0x1f93d0,_0x2b0214){return _0x354246(_0x1f93d0,_0x2b0214);},'eUeXx':_0x3f5024(0x157),'ZRNfh':_0x3f5024(0x153),'urUhh':function(_0x498c3f,_0x4b7a6f,_0x4fdbc1,_0x1b3aff,_0x2ae353,_0x50fcf,_0x19615f,_0x417fb8){return _0x498c3f(_0x4b7a6f,_0x4fdbc1,_0x1b3aff,_0x2ae353,_0x50fcf,_0x19615f,_0x417fb8);},'KXzJE':_0x3f5024(0xfc),'BJwAx':_0x3f5024(0x1ca),'XXUDm':function(_0x17ae77,_0x55d317){return _0x17ae77(_0x55d317);},'uensy':'TLSv1_2_client_method','mIcED':function(_0x792c1f,_0x25c080,_0x2e9506){return _0x792c1f(_0x25c080,_0x2e9506);},'dtxHQ':_0x3f5024(0x1ae),'mhHQP':_0x3f5024(0xea),'pFTNP':_0x3f5024(0x12a),'lLLca':'Whitelisted\x20browserstack','ldiaa':_0x3f5024(0x171),'bGlIb':function(_0x271a9e,_0x3afa4a,_0x50665c){return _0x271a9e(_0x3afa4a,_0x50665c);},'rOLFZ':function(_0x9a842e,_0x2511bd){return _0x9a842e+_0x2511bd;},'cJCHO':'utf-8','jJnMr':'pre-check-failed'};let _0xcd53dd,_0x274919;try{global_registry[_0x3f5024(0x139)]=_0x39bbb4[_0x3f5024(0x117)](uuidv4);!fs[_0x3f5024(0x16d)](_0x39bbb4[_0x3f5024(0x11f)](getCredentialsPath))&&(_0x274919=_0x39bbb4[_0x3f5024(0x15f)],logger[_0x3f5024(0x13a)](_0x274919),await _0x39bbb4['GPlSe'](reportToGalactusAndSendToEDS,_0x4a9e36,_0xcd53dd,_0x274919,messageTypes['ERROR'],_0x39bbb4[_0x3f5024(0x114)],_0x39bbb4[_0x3f5024(0x1c1)],_0x39bbb4['VuQzB']),process[_0x3f5024(0xfd)](0x1));_0x39bbb4['klFNf'](sendInstrumentationEvent,_0x4a9e36,_0x39bbb4[_0x3f5024(0x114)],messageTypes[_0x3f5024(0x129)],null,null,_0x4a9e36);const _0x5d21e3=JSON['parse'](fs[_0x3f5024(0xe4)](_0x39bbb4['oxBfV'](getCredentialsPath)));global_registry['bstackUsername']=_0x5d21e3[_0x3f5024(0xf8)][_0x3f5024(0x1ac)],global_registry[_0x3f5024(0x102)]=_0x5d21e3[_0x3f5024(0xf8)][_0x3f5024(0x1b5)];const _0x3080de=WS_ENDPOINT['replace'](_0x39bbb4[_0x3f5024(0xe9)],_0x5d21e3[_0x3f5024(0xf8)][_0x3f5024(0x1ac)])[_0x3f5024(0xd5)](_0x39bbb4[_0x3f5024(0xeb)],_0x5d21e3['Browserstack'][_0x3f5024(0x1b5)]),_0x23fe14={};_0x23fe14[_0x3f5024(0x1a0)]=ws,_0x23fe14[_0x3f5024(0x188)]=0x36ee80,_0xcd53dd=new ReconnectingWebSocket(_0x3080de,[],_0x23fe14),global_registry[_0x3f5024(0x10d)]=_0x39bbb4[_0x3f5024(0x14a)](getAuthHeader,global_registry[_0x3f5024(0x1be)],global_registry[_0x3f5024(0x102)]),await _0x39bbb4['aZcIl'](inputValidation,_0x4a9e36,_0xcd53dd),logger[_0x3f5024(0x17e)](_0x3f5024(0x1ad)+global_registry['cloudProvider']+_0x3f5024(0x176)+global_registry[_0x3f5024(0x164)]);let _0x1b4fdc=await _0x39bbb4[_0x3f5024(0x1a6)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x3f5024(0x137)],_0x39bbb4[_0x3f5024(0x142)],_0xcd53dd,webSocketUtils,_0x4a9e36);const _0xc964ba=await _0x1b4fdc[_0x3f5024(0x100)]();_0x39bbb4[_0x3f5024(0x1bd)](printResponse,_0x39bbb4[_0x3f5024(0x174)],_0xc964ba),_0x1b4fdc=await _0x1b4fdc[_0x3f5024(0x186)]();let _0x321c07=![];try{_0x321c07=await _0x1b4fdc['isClusterPresent']();}catch(_0x3704c5){const _0x5a1a1a=_0x39bbb4[_0x3f5024(0x125)][_0x3f5024(0x12c)]('|');let _0x5da77f=0x0;while(!![]){switch(_0x5a1a1a[_0x5da77f++]){case'0':_0x274919=_0x3f5024(0xf5)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x3704c5;continue;case'1':await _0x39bbb4[_0x3f5024(0x10a)](reportToGalactusAndSendToEDS,_0x4a9e36,_0xcd53dd,_0x274919,messageTypes['ERROR'],_0x39bbb4[_0x3f5024(0x114)],_0x3f5024(0x190)+global_registry[_0x3f5024(0x13f)],_0x39bbb4[_0x3f5024(0x1a7)]);continue;case'2':_0x274919+='\x0a'+JSON[_0x3f5024(0x194)](_0x3704c5[_0x3f5024(0x147)]);continue;case'3':_0x321c07=null;continue;case'4':logger[_0x3f5024(0x13a)](_0x274919);continue;}break;}}_0x321c07&&logger[_0x3f5024(0x17e)](_0x3f5024(0x11e)+global_registry[_0x3f5024(0x137)]+_0x3f5024(0xda));const _0x5b1531=await _0x1b4fdc[_0x3f5024(0x191)]();_0x39bbb4[_0x3f5024(0x11d)](printResponse,_0x39bbb4['KXzJE'],_0x5b1531);const _0x57a909=await _0x39bbb4[_0x3f5024(0x117)](curlRequest);_0x39bbb4[_0x3f5024(0x11d)](printResponse,_0x39bbb4['BJwAx'],_0x57a909);const _0x1dce0c=await _0x39bbb4[_0x3f5024(0x16e)](isTlsSupported,_0x39bbb4[_0x3f5024(0x185)]);_0x39bbb4[_0x3f5024(0x133)](printResponse,_0x39bbb4[_0x3f5024(0x17a)],_0x1dce0c);const _0x468637={};_0x468637[_0x3f5024(0x16c)]=_0x39bbb4[_0x3f5024(0x1b8)],_0x468637[_0x3f5024(0x144)]=_0xc964ba;const _0x2d6275={};_0x2d6275['header']=_0x39bbb4['pFTNP'],_0x2d6275['response']=_0x5b1531;const _0x17a66c={};_0x17a66c[_0x3f5024(0x16c)]=_0x39bbb4[_0x3f5024(0x1cd)],_0x17a66c[_0x3f5024(0x144)]=_0x57a909;const _0x4f80c7={};_0x4f80c7['header']=_0x39bbb4['ldiaa'],_0x4f80c7['response']=_0x1dce0c;const _0x492ec9=[_0x468637,_0x2d6275,_0x17a66c,_0x4f80c7],_0x29651a=await _0x39bbb4[_0x3f5024(0x187)](generateReport,_0x492ec9,_0x321c07),_0x4ab2d9=new Date(),_0x4ec9f9=_0x4ab2d9['getUTCFullYear']()+'_'+_0x39bbb4[_0x3f5024(0x143)](_0x4ab2d9[_0x3f5024(0x116)](),0x1)+'_'+_0x4ab2d9[_0x3f5024(0xf7)]()+'_'+_0x4ab2d9['getUTCHours']()+'_'+_0x4ab2d9[_0x3f5024(0x109)](),_0x3f2ab8='log/report_'+_0x4ec9f9+'.txt';fs[_0x3f5024(0x151)](_0x3f2ab8,_0x29651a,_0x39bbb4['cJCHO']),logger[_0x3f5024(0x17e)]('Report\x20saved\x20in\x20'+_0x3f2ab8),process[_0x3f5024(0xfd)](0x0);}catch(_0x35de3a){let _0x2aa5c9=_0x3f5024(0x1b7)+_0x35de3a+'\x20';logger[_0x3f5024(0x13a)](_0x2aa5c9),_0x2aa5c9+='\x0a'+JSON[_0x3f5024(0x194)](_0x35de3a[_0x3f5024(0x147)]),logger['debug'](_0x3f5024(0x1c2)+_0x35de3a[_0x3f5024(0x147)]);if(_0xcd53dd){const _0x191bfd={};_0x191bfd['type']=WS_EVENTS[_0x3f5024(0x1cb)],_0x191bfd[_0x3f5024(0x161)]=_0x2aa5c9,webSocketUtils[_0x3f5024(0x140)](_0xcd53dd,_0x191bfd,_0x39bbb4[_0x3f5024(0x1a7)],!![]);}await webSocketUtils[_0x3f5024(0x197)](0x7d0);const _0x2048ca={};_0x2048ca['error']=_0x2aa5c9,await _0x39bbb4[_0x3f5024(0x1a6)](sendInstrumentationEvent,_0x4a9e36,_0x39bbb4[_0x3f5024(0x114)],messageTypes[_0x3f5024(0x131)],_0x39bbb4['jJnMr'],_0x2048ca,_0x4a9e36),process[_0x3f5024(0xfd)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x3737(){const _0x96a1a7=['epilogue','fBjtn','../config/constants','handler','5ORtIKR','demandCommand','desc','3716670NeHbPj','Start\x20an\x20existing\x20Automation\x20grid.','command','1565676XjVDUn','builder','9DIDKjH','recommendCommands','usage','help','1597330hjouxU','582422sFBlUS','commandDir','1862548DzwNrH','start','ZTlfl','1051358xxMXZw','2677576oRsEHe'];a18_0x3737=function(){return _0x96a1a7;};return a18_0x3737();}const a18_0x6533df=a18_0x4fba;(function(_0x1f42e6,_0x30886e){const _0x228cb0=a18_0x4fba,_0x170b1e=_0x1f42e6();while(!![]){try{const _0x1065de=parseInt(_0x228cb0(0x170))/0x1+-parseInt(_0x228cb0(0x175))/0x2+parseInt(_0x228cb0(0x169))/0x3+parseInt(_0x228cb0(0x172))/0x4+parseInt(_0x228cb0(0x163))/0x5*(-parseInt(_0x228cb0(0x166))/0x6)+parseInt(_0x228cb0(0x16f))/0x7+parseInt(_0x228cb0(0x176))/0x8*(-parseInt(_0x228cb0(0x16b))/0x9);if(_0x1065de===_0x30886e)break;else _0x170b1e['push'](_0x170b1e['shift']());}catch(_0x44b2ff){_0x170b1e['push'](_0x170b1e['shift']());}}}(a18_0x3737,0x4db70));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x6533df(0x161));function a18_0x4fba(_0x4477b2,_0x2d410f){const _0x373747=a18_0x3737();return a18_0x4fba=function(_0x4fba81,_0x245a39){_0x4fba81=_0x4fba81-0x161;let _0x1a99bd=_0x373747[_0x4fba81];return _0x1a99bd;},a18_0x4fba(_0x4477b2,_0x2d410f);}exports[a18_0x6533df(0x168)]=a18_0x6533df(0x173),exports[a18_0x6533df(0x165)]=a18_0x6533df(0x167),exports[a18_0x6533df(0x16a)]=function(_0xf783d6){const _0x4d9381=a18_0x6533df,_0x57c1b9={};_0x57c1b9['ZTlfl']='start_commands',_0x57c1b9[_0x4d9381(0x178)]=_0x4d9381(0x16e);const _0x4058da=_0x57c1b9;return _0xf783d6[_0x4d9381(0x16d)](HELP_HEADER_MESSAGE[_0x4d9381(0x173)])[_0x4d9381(0x177)](HELP_FOOTER_MESSAGE)[_0x4d9381(0x171)](_0x4058da[_0x4d9381(0x174)])[_0x4d9381(0x164)]()[_0x4d9381(0x16c)]()['strict']()[_0x4d9381(0x16e)](_0x4058da[_0x4d9381(0x178)]);},exports[a18_0x6533df(0x162)]=function(_0x1a7158){};
1
+ const a18_0x1e5b1f=a18_0x2d6e;(function(_0x6cf8bf,_0x658c8c){const _0x55661e=a18_0x2d6e,_0x1034f4=_0x6cf8bf();while(!![]){try{const _0x319dea=parseInt(_0x55661e(0x124))/0x1*(-parseInt(_0x55661e(0x12b))/0x2)+parseInt(_0x55661e(0x12c))/0x3*(-parseInt(_0x55661e(0x127))/0x4)+-parseInt(_0x55661e(0x132))/0x5*(parseInt(_0x55661e(0x11a))/0x6)+parseInt(_0x55661e(0x120))/0x7*(-parseInt(_0x55661e(0x12d))/0x8)+parseInt(_0x55661e(0x122))/0x9*(parseInt(_0x55661e(0x11c))/0xa)+parseInt(_0x55661e(0x125))/0xb+parseInt(_0x55661e(0x12f))/0xc;if(_0x319dea===_0x658c8c)break;else _0x1034f4['push'](_0x1034f4['shift']());}catch(_0x41700e){_0x1034f4['push'](_0x1034f4['shift']());}}}(a18_0x57bb,0x35bac));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1e5b1f(0x121));function a18_0x2d6e(_0x28eb71,_0x2cd6ba){const _0x57bbaf=a18_0x57bb();return a18_0x2d6e=function(_0x2d6ed8,_0x3832c6){_0x2d6ed8=_0x2d6ed8-0x11a;let _0x3df8bd=_0x57bbaf[_0x2d6ed8];return _0x3df8bd;},a18_0x2d6e(_0x28eb71,_0x2cd6ba);}exports[a18_0x1e5b1f(0x123)]=a18_0x1e5b1f(0x129),exports[a18_0x1e5b1f(0x11e)]=a18_0x1e5b1f(0x131),exports[a18_0x1e5b1f(0x12a)]=function(_0x1101d0){const _0x405426=a18_0x1e5b1f,_0x54a158={};_0x54a158[_0x405426(0x12e)]='start_commands',_0x54a158['WlbUb']=_0x405426(0x126);const _0x5f378c=_0x54a158;return _0x1101d0['usage'](HELP_HEADER_MESSAGE[_0x405426(0x129)])[_0x405426(0x11f)](HELP_FOOTER_MESSAGE)[_0x405426(0x130)](_0x5f378c['ZcFDP'])['demandCommand']()[_0x405426(0x11b)]()['strict']()['help'](_0x5f378c[_0x405426(0x128)]);},exports[a18_0x1e5b1f(0x11d)]=function(_0x52c7b4){};function a18_0x57bb(){const _0x2e5e68=['start','builder','2HAXUuN','81729MRXyxK','9368nYQJAT','ZcFDP','1929432wzBNZX','commandDir','Start\x20an\x20existing\x20Automation\x20grid.','200YButcI','2682oNnqlX','recommendCommands','20KMKlNs','handler','desc','epilogue','1561yfgyWE','../config/constants','1634481hniqHz','command','74933irsHTP','2348236QYbgpp','help','24jpiVfF','WlbUb'];a18_0x57bb=function(){return _0x2e5e68;};return a18_0x57bb();}
@@ -1 +1 @@
1
- function a19_0x2ae5(_0x314995,_0x5b528a){const _0x4719bc=a19_0x4719();return a19_0x2ae5=function(_0x2ae5ee,_0xc0de88){_0x2ae5ee=_0x2ae5ee-0x135;let _0x46fb0f=_0x4719bc[_0x2ae5ee];return _0x46fb0f;},a19_0x2ae5(_0x314995,_0x5b528a);}function a19_0x4719(){const _0x247ce8=['<PasswordPlaceholder>','474OZzBPU','exit','grid-id','reconnecting-websocket','QDSHd','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','epilogue','bAyrY','string','1705280mYmvNs','MKhIc','../../config/logger','QWPrs','replace','builder','INFO','ZlXLc','start-grid-called','ytfWH','PVqBb','gridId','bstackAccesskey','help','name','30aHyqRe','CsfbN','5534880bhdIOv','<UsernamePlaceholder>','qHkTr','MPqhb','readFileSync','../../utils/utilityMethods','FqlXB','OJLQo','CruZe','clusterRegion','1063192wkVbXP','cYZbH','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','existsSync','parse','Grid\x20started','../../utils/instrumentationUtils','UCfOf','boolean','ERROR','ESJIS','28XgvbjO','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','command','YanIh','cloudProvider','init-not-called','WebSocket','username','663776LXvHXh','argv','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Browserstack','../../utils/createk8sClient','error','region','clusterName','addListeners','stringify','handler','Start\x20an\x20existing\x20Automation\x20grid.','Skip\x20insecure\x20cert\x20verification.','bstackUsername','../../utils/gridComponents','type','options','../../config/constants','MVmhX','grid','unauthorised','statusCode','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','wNidP','Znzxz','message','359293OHLZdx','Adding\x20Websocket\x20listeners','3210slwJEX','18ukHlEp','stack','16030817HtOnvr','../../cloudproviders/utils','skipTlsCertVerify','password'];a19_0x4719=function(){return _0x247ce8;};return a19_0x4719();}const a19_0x2847d1=a19_0x2ae5;(function(_0x165977,_0x2bdf63){const _0xafca65=a19_0x2ae5,_0x71e51b=_0x165977();while(!![]){try{const _0x5dea54=-parseInt(_0xafca65(0x180))/0x1+-parseInt(_0xafca65(0x18a))/0x2*(parseInt(_0xafca65(0x182))/0x3)+-parseInt(_0xafca65(0x166))/0x4*(parseInt(_0xafca65(0x146))/0x5)+parseInt(_0xafca65(0x148))/0x6+parseInt(_0xafca65(0x15d))/0x7*(-parseInt(_0xafca65(0x152))/0x8)+parseInt(_0xafca65(0x183))/0x9*(parseInt(_0xafca65(0x137))/0xa)+parseInt(_0xafca65(0x185))/0xb;if(_0x5dea54===_0x2bdf63)break;else _0x71e51b['push'](_0x71e51b['shift']());}catch(_0xb80b48){_0x71e51b['push'](_0x71e51b['shift']());}}}(a19_0x4719,0x8dc84));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2847d1(0x18d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2847d1(0x177)),{logger}=require(a19_0x2847d1(0x139)),{getCredentialsPath,getGridDetails}=require(a19_0x2847d1(0x14d)),{scaleUpHubDeployment}=require(a19_0x2847d1(0x174)),{sendInstrumentationEvent}=require(a19_0x2847d1(0x158)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x2847d1(0x16a)),{getCloudProviderObject}=require(a19_0x2847d1(0x186));exports[a19_0x2847d1(0x160)]=a19_0x2847d1(0x179),exports['desc']=a19_0x2847d1(0x171),exports[a19_0x2847d1(0x13c)]=function(_0x4bec37){const _0xaadd5a=a19_0x2847d1,_0x3d698c={};_0x3d698c[_0xaadd5a(0x15c)]=_0xaadd5a(0x168),_0x3d698c['CCGhh']=_0xaadd5a(0x136),_0x3d698c[_0xaadd5a(0x17e)]=_0xaadd5a(0x172),_0x3d698c[_0xaadd5a(0x13e)]=_0xaadd5a(0x15a),_0x3d698c[_0xaadd5a(0x14b)]=_0xaadd5a(0x144);const _0x3be1fa=_0x3d698c,_0x1fbf03={};_0x1fbf03['description']=_0x3be1fa[_0xaadd5a(0x15c)],_0x1fbf03[_0xaadd5a(0x175)]=_0x3be1fa['CCGhh'];const _0x798a0b={};_0x798a0b[_0xaadd5a(0x15e)]=_0x3be1fa[_0xaadd5a(0x17e)],_0x798a0b[_0xaadd5a(0x175)]=_0x3be1fa['ZlXLc'],_0x798a0b['default']=![];const _0x4cbc98={};return _0x4cbc98[_0xaadd5a(0x18c)]=_0x1fbf03,_0x4cbc98['skip-tls-cert-verify']=_0x798a0b,_0x4bec37['usage'](HELP_HEADER_MESSAGE['start'])[_0xaadd5a(0x190)](HELP_FOOTER_MESSAGE)[_0xaadd5a(0x176)](_0x4cbc98)[_0xaadd5a(0x144)](_0x3be1fa[_0xaadd5a(0x14b)])[_0xaadd5a(0x167)];},exports[a19_0x2847d1(0x170)]=async function(_0x5102a3){const _0x386332=a19_0x2847d1,_0x30aac3={'FqlXB':_0x386332(0x17c),'cYZbH':function(_0x32f077){return _0x32f077();},'YanIh':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bAyrY':function(_0x188f95,_0x5586a9,_0x59eeec,_0x344295,_0xc23083,_0x10f972,_0x2877f0){return _0x188f95(_0x5586a9,_0x59eeec,_0x344295,_0xc23083,_0x10f972,_0x2877f0);},'QWPrs':_0x386332(0x13f),'wNidP':_0x386332(0x163),'ytfWH':_0x386332(0x149),'CruZe':_0x386332(0x189),'IXDUh':_0x386332(0x181),'ByeBP':function(_0x162f1a,_0x562be1,_0x2c38dc,_0x11f666){return _0x162f1a(_0x562be1,_0x2c38dc,_0x11f666);},'qHkTr':function(_0x5ebfbb,_0x455331,_0x6ea924){return _0x5ebfbb(_0x455331,_0x6ea924);},'WoXtt':_0x386332(0x157),'OJLQo':function(_0x282063,_0x15037b){return _0x282063===_0x15037b;},'PVqBb':_0x386332(0x15f),'UCfOf':function(_0x40bb88,_0x5e0d0b,_0x240cae,_0x3cfb5a,_0x30af16,_0x27316e,_0x880825){return _0x40bb88(_0x5e0d0b,_0x240cae,_0x3cfb5a,_0x30af16,_0x27316e,_0x880825);},'QDSHd':_0x386332(0x17a),'MKhIc':'invalid-grid-id','MVmhX':function(_0xc96e8b,_0x294287,_0x2cdc14,_0x45db78,_0x2250a9,_0x12f693,_0x9cc046){return _0xc96e8b(_0x294287,_0x2cdc14,_0x45db78,_0x2250a9,_0x12f693,_0x9cc046);},'CsfbN':'server-error'};let _0x1cc5a0;try{!_0x5102a3[_0x386332(0x142)]&&(logger[_0x386332(0x16b)](_0x30aac3[_0x386332(0x14e)]),process['exit'](0x1));!fs[_0x386332(0x155)](_0x30aac3['cYZbH'](getCredentialsPath))&&(logger[_0x386332(0x16b)](_0x30aac3[_0x386332(0x161)]),await _0x30aac3['bAyrY'](sendInstrumentationEvent,_0x5102a3,_0x30aac3[_0x386332(0x13a)],messageTypes['ERROR'],_0x30aac3[_0x386332(0x17d)],null,_0x5102a3),process[_0x386332(0x18b)](0x1));logger['info']('Starting\x20grid\x20'+_0x5102a3[_0x386332(0x142)]),await _0x30aac3[_0x386332(0x135)](sendInstrumentationEvent,_0x5102a3,_0x30aac3[_0x386332(0x13a)],messageTypes[_0x386332(0x13d)],null,null,_0x5102a3);const _0x3897e4=JSON[_0x386332(0x156)](fs[_0x386332(0x14c)](_0x30aac3[_0x386332(0x153)](getCredentialsPath)));global_registry[_0x386332(0x173)]=_0x3897e4[_0x386332(0x169)][_0x386332(0x165)],global_registry[_0x386332(0x143)]=_0x3897e4['Browserstack']['password'];const _0x2ae1f8=WS_ENDPOINT[_0x386332(0x13b)](_0x30aac3[_0x386332(0x140)],_0x3897e4[_0x386332(0x169)][_0x386332(0x165)])[_0x386332(0x13b)](_0x30aac3[_0x386332(0x150)],_0x3897e4[_0x386332(0x169)][_0x386332(0x188)]),_0x4f550b={};_0x4f550b[_0x386332(0x164)]=ws,_0x4f550b['connectionTimeout']=0x36ee80,_0x1cc5a0=new ReconnectingWebSocket(_0x2ae1f8,[],_0x4f550b),logger['debug'](_0x30aac3['IXDUh']),webSocketUtils[_0x386332(0x16e)](_0x1cc5a0,_0x5102a3['user'],_0x5102a3['password']);const [_0x26841b,_0x4ad04b]=await _0x30aac3['ByeBP'](getGridDetails,_0x3897e4['Browserstack'][_0x386332(0x165)],_0x3897e4[_0x386332(0x169)]['password'],_0x5102a3[_0x386332(0x142)]);if(_0x4ad04b){const _0x3c34d0=_0x4ad04b['info'];global_registry[_0x386332(0x162)]=_0x3c34d0[_0x386332(0x162)],global_registry[_0x386332(0x151)]=_0x3c34d0[_0x386332(0x16c)],global_registry[_0x386332(0x16d)]=_0x3c34d0['clusterName'];const _0x3bf75c=await _0x30aac3[_0x386332(0x135)](getCloudProviderObject,_0x3c34d0[_0x386332(0x162)],_0x3c34d0[_0x386332(0x16d)],_0x3c34d0['name'],_0x1cc5a0,webSocketUtils,_0x5102a3),[_0x352b42,_0x32cff9,_0x6d49f3,_0x2ed480,_0x23e0bf,_0xf91e4b]=await _0x30aac3[_0x386332(0x14a)](createK8sClient,_0x3bf75c,_0x5102a3[_0x386332(0x187)]);await _0x30aac3['qHkTr'](scaleUpHubDeployment,_0x32cff9,_0x3c34d0[_0x386332(0x145)]),logger['info'](_0x30aac3['WoXtt']),process[_0x386332(0x18b)](0x0);}_0x30aac3[_0x386332(0x14f)](_0x26841b[_0x386332(0x17b)],0x191)&&(logger['error'](_0x30aac3[_0x386332(0x141)]),await _0x30aac3[_0x386332(0x159)](sendInstrumentationEvent,_0x5102a3,_0x30aac3[_0x386332(0x13a)],messageTypes[_0x386332(0x15b)],_0x30aac3[_0x386332(0x18e)],null,_0x5102a3),process[_0x386332(0x18b)](0x1)),_0x30aac3[_0x386332(0x14f)](_0x26841b['statusCode'],0x190)&&(logger[_0x386332(0x16b)](JSON[_0x386332(0x156)](_0x26841b['body'])[_0x386332(0x17f)]),await _0x30aac3[_0x386332(0x159)](sendInstrumentationEvent,_0x5102a3,_0x30aac3['QWPrs'],messageTypes[_0x386332(0x15b)],_0x30aac3[_0x386332(0x138)],null,_0x5102a3),process[_0x386332(0x18b)](0x1)),logger['error'](_0x386332(0x18f)+JSON['stringify'](_0x26841b)),await _0x30aac3[_0x386332(0x178)](sendInstrumentationEvent,_0x5102a3,_0x30aac3[_0x386332(0x13a)],messageTypes[_0x386332(0x15b)],_0x30aac3[_0x386332(0x147)],_0x26841b,_0x5102a3),process[_0x386332(0x18b)](0x1);}catch(_0x2c1665){const _0x56339c=_0x386332(0x154)+_0x2c1665+'\x20\x0a'+JSON[_0x386332(0x16f)](_0x2c1665[_0x386332(0x184)])+'\x20';logger[_0x386332(0x16b)](_0x56339c),process['exit'](0x1);}};
1
+ const a19_0x97d4a5=a19_0x2525;function a19_0x2525(_0x2eafc4,_0x3140da){const _0x14fe89=a19_0x14fe();return a19_0x2525=function(_0x25254e,_0x15608f){_0x25254e=_0x25254e-0x102;let _0x2bedc4=_0x14fe89[_0x25254e];return _0x2bedc4;},a19_0x2525(_0x2eafc4,_0x3140da);}function a19_0x14fe(){const _0x601ccd=['KblDi','statusCode','oJxSb','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yVAdB','skipTlsCertVerify','addListeners','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','handler','PjCfp','Uqoew','Starting\x20grid\x20','9995720UaOhdz','Browserstack','5peEUbt','16lKyvcE','pIkng','NfasG','bstackUsername','usage','azchw','name','lgmLT','3QmnJYa','2fCJCyY','DSMII','replace','existsSync','5874015GwFDnO','readFileSync','Adding\x20Websocket\x20listeners','ZHEhO','skip-tls-cert-verify','HqBcG','exit','../../utils/webSocketUtils','ERROR','builder','username','TmCLG','LcWyX','ObvKl','../../cloudproviders/utils','boolean','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','5424102yjSrOF','<UsernamePlaceholder>','Skip\x20insecure\x20cert\x20verification.','gridId','command','INFO','help','description','server-error','info','ZTtsz','invalid-grid-id','12PRWHbY','bstackAccesskey','unauthorised','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cloudProvider','850033WqCDSN','36139378kVMUwT','message','desc','clusterName','DSlVN','argv','Qzzzl','1401564PIhPdA','password','../../config/constants','XSOpj','body','parse','error','debug','2566268hiKzFK','tRfUZ','grid-id','enoQQ','type','WebSocket'];a19_0x14fe=function(){return _0x601ccd;};return a19_0x14fe();}(function(_0x1ca660,_0xc519d2){const _0x38e91e=a19_0x2525,_0x7fed2e=_0x1ca660();while(!![]){try{const _0x5965eb=-parseInt(_0x38e91e(0x102))/0x1*(parseInt(_0x38e91e(0x130))/0x2)+-parseInt(_0x38e91e(0x12f))/0x3*(parseInt(_0x38e91e(0x112))/0x4)+-parseInt(_0x38e91e(0x126))/0x5*(-parseInt(_0x38e91e(0x10a))/0x6)+parseInt(_0x38e91e(0x134))/0x7+-parseInt(_0x38e91e(0x127))/0x8*(parseInt(_0x38e91e(0x145))/0x9)+-parseInt(_0x38e91e(0x124))/0xa+-parseInt(_0x38e91e(0x103))/0xb*(-parseInt(_0x38e91e(0x151))/0xc);if(_0x5965eb===_0xc519d2)break;else _0x7fed2e['push'](_0x7fed2e['shift']());}catch(_0x544c42){_0x7fed2e['push'](_0x7fed2e['shift']());}}}(a19_0x14fe,0xa1869));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x97d4a5(0x10c)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x97d4a5(0x13b)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x97d4a5(0x142));exports[a19_0x97d4a5(0x149)]='grid',exports[a19_0x97d4a5(0x105)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x97d4a5(0x13d)]=function(_0x5a893c){const _0x195994=a19_0x97d4a5,_0x14e573={};_0x14e573['TmCLG']=_0x195994(0x144),_0x14e573[_0x195994(0x131)]='string',_0x14e573[_0x195994(0x109)]=_0x195994(0x147),_0x14e573[_0x195994(0x121)]=_0x195994(0x143),_0x14e573[_0x195994(0x118)]=_0x195994(0x14b);const _0x38cc2a=_0x14e573,_0x2a53cd={};_0x2a53cd[_0x195994(0x14c)]=_0x38cc2a[_0x195994(0x13f)],_0x2a53cd[_0x195994(0x116)]=_0x38cc2a['DSMII'];const _0x3f8a9b={};_0x3f8a9b[_0x195994(0x14c)]=_0x38cc2a[_0x195994(0x109)],_0x3f8a9b[_0x195994(0x116)]=_0x38cc2a[_0x195994(0x121)],_0x3f8a9b['default']=![];const _0x1b80f5={};return _0x1b80f5[_0x195994(0x114)]=_0x2a53cd,_0x1b80f5[_0x195994(0x138)]=_0x3f8a9b,_0x5a893c[_0x195994(0x12b)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x1b80f5)[_0x195994(0x14b)](_0x38cc2a[_0x195994(0x118)])[_0x195994(0x108)];},exports[a19_0x97d4a5(0x120)]=async function(_0x1c77f3){const _0x2fe0a0=a19_0x97d4a5,_0xa2e4ed={'LcWyX':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','ZHEhO':function(_0x49afce){return _0x49afce();},'NfasG':_0x2fe0a0(0x11b),'DSlVN':function(_0x302fde,_0x4695e2,_0x3c849c,_0x28b07a,_0x4c8068,_0x54d6d4,_0x457a35){return _0x302fde(_0x4695e2,_0x3c849c,_0x28b07a,_0x4c8068,_0x54d6d4,_0x457a35);},'ObvKl':'start-grid-called','Uqoew':'init-not-called','enoQQ':_0x2fe0a0(0x146),'XSOpj':'<PasswordPlaceholder>','azchw':_0x2fe0a0(0x136),'ZTtsz':function(_0x2b5f5b,_0x1f2324,_0xb0661,_0x1bc705){return _0x2b5f5b(_0x1f2324,_0xb0661,_0x1bc705);},'lgmLT':function(_0x4a4ad8,_0x323e3b,_0x5b8b96){return _0x4a4ad8(_0x323e3b,_0x5b8b96);},'oJxSb':'Grid\x20started','yVAdB':function(_0x5d3d9a,_0x27d138){return _0x5d3d9a===_0x27d138;},'kJTWU':_0x2fe0a0(0x154),'VppPd':_0x2fe0a0(0x153),'pIkng':_0x2fe0a0(0x150),'tRfUZ':function(_0x5cc758,_0x34e851,_0x196559,_0x1ba272,_0x1aff62,_0x17924c,_0x24e765){return _0x5cc758(_0x34e851,_0x196559,_0x1ba272,_0x1aff62,_0x17924c,_0x24e765);},'HqBcG':_0x2fe0a0(0x14d)};let _0x26d7f9;try{!_0x1c77f3[_0x2fe0a0(0x148)]&&(logger['error'](_0xa2e4ed[_0x2fe0a0(0x140)]),process[_0x2fe0a0(0x13a)](0x1));!fs[_0x2fe0a0(0x133)](_0xa2e4ed[_0x2fe0a0(0x137)](getCredentialsPath))&&(logger[_0x2fe0a0(0x110)](_0xa2e4ed[_0x2fe0a0(0x129)]),await _0xa2e4ed['DSlVN'](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed[_0x2fe0a0(0x141)],messageTypes[_0x2fe0a0(0x13c)],_0xa2e4ed[_0x2fe0a0(0x122)],null,_0x1c77f3),process['exit'](0x1));logger[_0x2fe0a0(0x14e)](_0x2fe0a0(0x123)+_0x1c77f3[_0x2fe0a0(0x148)]),await _0xa2e4ed['DSlVN'](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed[_0x2fe0a0(0x141)],messageTypes[_0x2fe0a0(0x14a)],null,null,_0x1c77f3);const _0x7125b5=JSON[_0x2fe0a0(0x10f)](fs[_0x2fe0a0(0x135)](_0xa2e4ed[_0x2fe0a0(0x137)](getCredentialsPath)));global_registry[_0x2fe0a0(0x12a)]=_0x7125b5['Browserstack'][_0x2fe0a0(0x13e)],global_registry[_0x2fe0a0(0x152)]=_0x7125b5[_0x2fe0a0(0x125)][_0x2fe0a0(0x10b)];const _0x392554=WS_ENDPOINT['replace'](_0xa2e4ed[_0x2fe0a0(0x115)],_0x7125b5[_0x2fe0a0(0x125)][_0x2fe0a0(0x13e)])[_0x2fe0a0(0x132)](_0xa2e4ed[_0x2fe0a0(0x10d)],_0x7125b5[_0x2fe0a0(0x125)][_0x2fe0a0(0x10b)]),_0x2a31bd={};_0x2a31bd[_0x2fe0a0(0x117)]=ws,_0x2a31bd['connectionTimeout']=0x36ee80,_0x26d7f9=new ReconnectingWebSocket(_0x392554,[],_0x2a31bd),logger[_0x2fe0a0(0x111)](_0xa2e4ed[_0x2fe0a0(0x12c)]),webSocketUtils[_0x2fe0a0(0x11e)](_0x26d7f9,_0x1c77f3['user'],_0x1c77f3[_0x2fe0a0(0x10b)]);const [_0x246c16,_0x14795b]=await _0xa2e4ed[_0x2fe0a0(0x14f)](getGridDetails,_0x7125b5['Browserstack']['username'],_0x7125b5['Browserstack']['password'],_0x1c77f3[_0x2fe0a0(0x148)]);if(_0x14795b){const _0x77b48f=_0x14795b['info'];global_registry['cloudProvider']=_0x77b48f['cloudProvider'],global_registry['clusterRegion']=_0x77b48f['region'],global_registry['clusterName']=_0x77b48f[_0x2fe0a0(0x106)];const _0x179603=await _0xa2e4ed[_0x2fe0a0(0x107)](getCloudProviderObject,_0x77b48f[_0x2fe0a0(0x155)],_0x77b48f['clusterName'],_0x77b48f[_0x2fe0a0(0x12d)],_0x26d7f9,webSocketUtils,_0x1c77f3),[_0x3a1b46,_0x571690,_0x4e7efd,_0x26df58,_0x22e7c3,_0x5be990]=await _0xa2e4ed[_0x2fe0a0(0x12e)](createK8sClient,_0x179603,_0x1c77f3[_0x2fe0a0(0x11d)]);await _0xa2e4ed[_0x2fe0a0(0x12e)](scaleUpHubDeployment,_0x571690,_0x77b48f['name']),logger[_0x2fe0a0(0x14e)](_0xa2e4ed[_0x2fe0a0(0x11a)]),process[_0x2fe0a0(0x13a)](0x0);}_0xa2e4ed[_0x2fe0a0(0x11c)](_0x246c16['statusCode'],0x191)&&(logger[_0x2fe0a0(0x110)](_0xa2e4ed['kJTWU']),await _0xa2e4ed[_0x2fe0a0(0x107)](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed[_0x2fe0a0(0x141)],messageTypes[_0x2fe0a0(0x13c)],_0xa2e4ed['VppPd'],null,_0x1c77f3),process[_0x2fe0a0(0x13a)](0x1)),_0xa2e4ed[_0x2fe0a0(0x11c)](_0x246c16[_0x2fe0a0(0x119)],0x190)&&(logger[_0x2fe0a0(0x110)](JSON[_0x2fe0a0(0x10f)](_0x246c16[_0x2fe0a0(0x10e)])[_0x2fe0a0(0x104)]),await _0xa2e4ed[_0x2fe0a0(0x107)](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed[_0x2fe0a0(0x141)],messageTypes['ERROR'],_0xa2e4ed[_0x2fe0a0(0x128)],null,_0x1c77f3),process[_0x2fe0a0(0x13a)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x246c16)),await _0xa2e4ed[_0x2fe0a0(0x113)](sendInstrumentationEvent,_0x1c77f3,_0xa2e4ed['ObvKl'],messageTypes['ERROR'],_0xa2e4ed[_0x2fe0a0(0x139)],_0x246c16,_0x1c77f3),process[_0x2fe0a0(0x13a)](0x1);}catch(_0x11db7b){const _0x3e2408=_0x2fe0a0(0x11f)+_0x11db7b+'\x20\x0a'+JSON['stringify'](_0x11db7b['stack'])+'\x20';logger[_0x2fe0a0(0x110)](_0x3e2408),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0xb20155=a20_0x4f9c;(function(_0x2556b1,_0x1a9446){const _0x33e491=a20_0x4f9c,_0x30599f=_0x2556b1();while(!![]){try{const _0x4acff1=parseInt(_0x33e491(0xdf))/0x1*(parseInt(_0x33e491(0xd5))/0x2)+parseInt(_0x33e491(0xd2))/0x3*(parseInt(_0x33e491(0xd1))/0x4)+-parseInt(_0x33e491(0xd4))/0x5*(parseInt(_0x33e491(0xce))/0x6)+parseInt(_0x33e491(0xdb))/0x7*(-parseInt(_0x33e491(0xde))/0x8)+parseInt(_0x33e491(0xdc))/0x9+parseInt(_0x33e491(0xda))/0xa+-parseInt(_0x33e491(0xcb))/0xb;if(_0x4acff1===_0x1a9446)break;else _0x30599f['push'](_0x30599f['shift']());}catch(_0x32fba7){_0x30599f['push'](_0x30599f['shift']());}}}(a20_0x1ddd,0x2e6c3));function a20_0x1ddd(){const _0x299bc3=['4003XHfkay','fxUdC','2676762rIIymM','desc','recommendCommands','290634GKAQgw','stop_commands','stop','1216BmKAor','3702CyyEsQ','../config/constants','15VIvIRr','74vaZYcX','strict','Stop\x20a\x20running\x20Automation\x20grid.','usage','help','412040UygblT','22029dwqqEw','2649942RWYOVa','PmvQc','712xXXtEM'];a20_0x1ddd=function(){return _0x299bc3;};return a20_0x1ddd();}function a20_0x4f9c(_0x26f074,_0x5a3de2){const _0x1ddd20=a20_0x1ddd();return a20_0x4f9c=function(_0x4f9c73,_0x3c6bae){_0x4f9c73=_0x4f9c73-0xcb;let _0x5d0039=_0x1ddd20[_0x4f9c73];return _0x5d0039;},a20_0x4f9c(_0x26f074,_0x5a3de2);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xb20155(0xd3));exports['command']=a20_0xb20155(0xd0),exports[a20_0xb20155(0xcc)]=a20_0xb20155(0xd7),exports['builder']=function(_0xd07c70){const _0x435369=a20_0xb20155,_0xfd724b={};_0xfd724b[_0x435369(0xe0)]=_0x435369(0xcf),_0xfd724b[_0x435369(0xdd)]=_0x435369(0xd9);const _0x4118fd=_0xfd724b;return _0xd07c70[_0x435369(0xd8)](HELP_HEADER_MESSAGE[_0x435369(0xd0)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x4118fd['fxUdC'])['demandCommand']()[_0x435369(0xcd)]()[_0x435369(0xd6)]()['help'](_0x4118fd[_0x435369(0xdd)]);},exports['handler']=function(_0x56a402){};
1
+ const a20_0xd5c315=a20_0x4249;function a20_0x4957(){const _0x114db5=['stop_commands','handler','help','2993067bBRzNU','usage','502979QAChDC','vXZRc','Stop\x20a\x20running\x20Automation\x20grid.','436232NLKUYz','140rupJPV','315032JVKRNR','2155655LwOyzs','stop','12AjNgmP','builder','112ezfCNo','LGeZX','266387ORzCGs','10604QnJTgP','recommendCommands','epilogue','desc','../config/constants','command','465bdQasP'];a20_0x4957=function(){return _0x114db5;};return a20_0x4957();}(function(_0xe06213,_0x450220){const _0x100abd=a20_0x4249,_0x168179=_0xe06213();while(!![]){try{const _0xececfa=parseInt(_0x100abd(0x1b6))/0x1+-parseInt(_0x100abd(0x1aa))/0x2*(parseInt(_0x100abd(0x1b0))/0x3)+-parseInt(_0x100abd(0x1b9))/0x4+-parseInt(_0x100abd(0x1bc))/0x5*(-parseInt(_0x100abd(0x1a5))/0x6)+-parseInt(_0x100abd(0x1a7))/0x7*(parseInt(_0x100abd(0x1bb))/0x8)+parseInt(_0x100abd(0x1b4))/0x9+parseInt(_0x100abd(0x1ba))/0xa*(parseInt(_0x100abd(0x1a9))/0xb);if(_0xececfa===_0x450220)break;else _0x168179['push'](_0x168179['shift']());}catch(_0x5cc5f5){_0x168179['push'](_0x168179['shift']());}}}(a20_0x4957,0x74306));function a20_0x4249(_0x5d38c0,_0x5301f6){const _0x49570e=a20_0x4957();return a20_0x4249=function(_0x424919,_0x2a6409){_0x424919=_0x424919-0x1a5;let _0x93c584=_0x49570e[_0x424919];return _0x93c584;},a20_0x4249(_0x5d38c0,_0x5301f6);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xd5c315(0x1ae));exports[a20_0xd5c315(0x1af)]=a20_0xd5c315(0x1bd),exports[a20_0xd5c315(0x1ad)]=a20_0xd5c315(0x1b8),exports[a20_0xd5c315(0x1a6)]=function(_0x24fb51){const _0x3a8272=a20_0xd5c315,_0x2344cd={};_0x2344cd[_0x3a8272(0x1b7)]=_0x3a8272(0x1b1),_0x2344cd[_0x3a8272(0x1a8)]=_0x3a8272(0x1b3);const _0x43927c=_0x2344cd;return _0x24fb51[_0x3a8272(0x1b5)](HELP_HEADER_MESSAGE[_0x3a8272(0x1bd)])[_0x3a8272(0x1ac)](HELP_FOOTER_MESSAGE)['commandDir'](_0x43927c['vXZRc'])['demandCommand']()[_0x3a8272(0x1ab)]()['strict']()[_0x3a8272(0x1b3)](_0x43927c[_0x3a8272(0x1a8)]);},exports[a20_0xd5c315(0x1b2)]=function(_0xbc562c){};
@@ -1 +1 @@
1
- function a21_0x7314(_0xa699e2,_0x534277){const _0x34c9eb=a21_0x34c9();return a21_0x7314=function(_0x731498,_0x52cff0){_0x731498=_0x731498-0x1de;let _0x1c2b7e=_0x34c9eb[_0x731498];return _0x1c2b7e;},a21_0x7314(_0xa699e2,_0x534277);}function a21_0x34c9(){const _0x39056b=['init-not-called','805209MSzWnE','pwhDG','clusterName','cloudProvider','grid','existsSync','bstackUsername','RABuW','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','options','command','clusterRegion','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','message','1642740SivlJK','skip-tls-cert-verify','2510361xKoCEi','region','grid-id','replace','description','epilogue','name','Adding\x20Websocket\x20listeners','handler','Stopping\x20grid\x20','error','odFuW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','QmHoJ','boolean','Stop\x20a\x20running\x20Automation\x20grid.','gridId','../../utils/instrumentationUtils','default','JAmiA','type','LvyVN','desc','lmyLT','user','pUnDU','18388143ZDYrbM','username','smLac','INFO','JTnew','ckOjP','1119882PtmbaR','parse','stop-grid-called','../../utils/utilityMethods','stop','YsySP','<PasswordPlaceholder>','mbOhI','help','1504LpUYgG','EKRuR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','42yLGTER','exit','YATeX','statusCode','ERROR','Browserstack','cTZFe','hjxwT','unauthorised','4535ElSvGe','pNKsb','password','info','../../utils/gridComponents','readFileSync','stringify','skipTlsCertVerify','../../config/logger','../../cloudproviders/utils','../../utils/createk8sClient','6176264MMdWBg','builder','<UsernamePlaceholder>','../../config/constants','oZlHx','body','Grid\x20stoppped.','stack'];a21_0x34c9=function(){return _0x39056b;};return a21_0x34c9();}const a21_0x1d453d=a21_0x7314;(function(_0x5d7d4f,_0xcd7284){const _0x3d0784=a21_0x7314,_0x5a5cae=_0x5d7d4f();while(!![]){try{const _0x11dba6=parseInt(_0x3d0784(0x1f7))/0x1+-parseInt(_0x3d0784(0x205))/0x2+parseInt(_0x3d0784(0x207))/0x3+parseInt(_0x3d0784(0x230))/0x4*(-parseInt(_0x3d0784(0x1e3))/0x5)+-parseInt(_0x3d0784(0x227))/0x6*(parseInt(_0x3d0784(0x233))/0x7)+-parseInt(_0x3d0784(0x1ee))/0x8+parseInt(_0x3d0784(0x221))/0x9;if(_0x11dba6===_0xcd7284)break;else _0x5a5cae['push'](_0x5a5cae['shift']());}catch(_0x31ba54){_0x5a5cae['push'](_0x5a5cae['shift']());}}}(a21_0x34c9,0x9a016));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1d453d(0x1f1)),{logger}=require(a21_0x1d453d(0x1eb)),{getCredentialsPath,getGridDetails}=require(a21_0x1d453d(0x22a)),{scaleDownHubDeployment}=require(a21_0x1d453d(0x1e7)),{sendInstrumentationEvent}=require(a21_0x1d453d(0x218)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x1d453d(0x1ed)),{getCloudProviderObject}=require(a21_0x1d453d(0x1ec));exports[a21_0x1d453d(0x201)]=a21_0x1d453d(0x1fb),exports[a21_0x1d453d(0x21d)]=a21_0x1d453d(0x216),exports[a21_0x1d453d(0x1ef)]=function(_0x494163){const _0x5de78a=a21_0x1d453d,_0x49a28f={};_0x49a28f[_0x5de78a(0x1fe)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x49a28f[_0x5de78a(0x1e4)]='string',_0x49a28f[_0x5de78a(0x22e)]='Skip\x20insecure\x20cert\x20verification.',_0x49a28f['ZppZG']=_0x5de78a(0x215),_0x49a28f[_0x5de78a(0x21e)]='help';const _0x40a0a3=_0x49a28f,_0x160ba7={};_0x160ba7[_0x5de78a(0x20b)]=_0x40a0a3['RABuW'],_0x160ba7['type']=_0x40a0a3[_0x5de78a(0x1e4)];const _0x320230={};_0x320230[_0x5de78a(0x20b)]=_0x40a0a3[_0x5de78a(0x22e)],_0x320230[_0x5de78a(0x21b)]=_0x40a0a3['ZppZG'],_0x320230[_0x5de78a(0x219)]=![];const _0x37ce8d={};return _0x37ce8d[_0x5de78a(0x209)]=_0x160ba7,_0x37ce8d[_0x5de78a(0x206)]=_0x320230,_0x494163['usage'](HELP_HEADER_MESSAGE[_0x5de78a(0x22b)])[_0x5de78a(0x20c)](HELP_FOOTER_MESSAGE)[_0x5de78a(0x200)](_0x37ce8d)[_0x5de78a(0x22f)](_0x40a0a3['lmyLT'])['argv'];},exports[a21_0x1d453d(0x20f)]=async function(_0x2ee3d8){const _0x2d3425=a21_0x1d453d,_0x40d3a8={'oZlHx':_0x2d3425(0x1ff),'hjxwT':function(_0x4ef426){return _0x4ef426();},'YsySP':_0x2d3425(0x232),'LvyVN':function(_0x36d3e6,_0x1e23db,_0x4b3ba0,_0xae6ffa,_0x4b60f6,_0x435a9b,_0x7f585){return _0x36d3e6(_0x1e23db,_0x4b3ba0,_0xae6ffa,_0x4b60f6,_0x435a9b,_0x7f585);},'JTnew':_0x2d3425(0x229),'LjpVB':_0x2d3425(0x1f6),'cTZFe':_0x2d3425(0x1f0),'YATeX':_0x2d3425(0x22d),'JAmiA':_0x2d3425(0x20e),'pwhDG':function(_0x5c9134,_0x3d370e,_0x455ab9,_0x51b6ac){return _0x5c9134(_0x3d370e,_0x455ab9,_0x51b6ac);},'ckOjP':function(_0x1e4aa4,_0x33b73e,_0x2abcf4,_0x41070c,_0x29e657,_0x3caa42,_0x4c42da){return _0x1e4aa4(_0x33b73e,_0x2abcf4,_0x41070c,_0x29e657,_0x3caa42,_0x4c42da);},'qvyYW':function(_0x9155bb,_0x2f23f3,_0x58e9bb){return _0x9155bb(_0x2f23f3,_0x58e9bb);},'QmHoJ':_0x2d3425(0x1f4),'byURY':function(_0x44390c,_0x9c9480){return _0x44390c===_0x9c9480;},'QFatR':_0x2d3425(0x213),'pUnDU':function(_0x532f60,_0x2a489f,_0x493a6c,_0x3a372c,_0x37a8cf,_0x35314b,_0x33d748){return _0x532f60(_0x2a489f,_0x493a6c,_0x3a372c,_0x37a8cf,_0x35314b,_0x33d748);},'EKRuR':_0x2d3425(0x1e2),'jHmPv':function(_0xbd0987,_0x2b6bdb,_0x2947d2,_0x359070,_0x194b5e,_0x50cc94,_0x37f616){return _0xbd0987(_0x2b6bdb,_0x2947d2,_0x359070,_0x194b5e,_0x50cc94,_0x37f616);},'odFuW':'invalid-grid-id','smLac':'server-error'};let _0x2831c7;try{!_0x2ee3d8[_0x2d3425(0x217)]&&(logger['error'](_0x40d3a8[_0x2d3425(0x1f2)]),process[_0x2d3425(0x234)](0x1));!fs[_0x2d3425(0x1fc)](_0x40d3a8[_0x2d3425(0x1e1)](getCredentialsPath))&&(logger['error'](_0x40d3a8[_0x2d3425(0x22c)]),await _0x40d3a8[_0x2d3425(0x21c)](sendInstrumentationEvent,_0x2ee3d8,_0x40d3a8[_0x2d3425(0x225)],messageTypes[_0x2d3425(0x1de)],_0x40d3a8['LjpVB'],null,_0x2ee3d8),process[_0x2d3425(0x234)](0x1));logger[_0x2d3425(0x1e6)](_0x2d3425(0x210)+_0x2ee3d8[_0x2d3425(0x217)]),await _0x40d3a8[_0x2d3425(0x21c)](sendInstrumentationEvent,_0x2ee3d8,_0x40d3a8[_0x2d3425(0x225)],messageTypes[_0x2d3425(0x224)],null,null,_0x2ee3d8);const _0x336209=JSON[_0x2d3425(0x228)](fs[_0x2d3425(0x1e8)](_0x40d3a8[_0x2d3425(0x1e1)](getCredentialsPath)));global_registry[_0x2d3425(0x1fd)]=_0x336209[_0x2d3425(0x1df)]['username'],global_registry['bstackAccesskey']=_0x336209[_0x2d3425(0x1df)][_0x2d3425(0x1e5)];const _0x3c2c98=WS_ENDPOINT[_0x2d3425(0x20a)](_0x40d3a8[_0x2d3425(0x1e0)],_0x336209[_0x2d3425(0x1df)][_0x2d3425(0x222)])['replace'](_0x40d3a8[_0x2d3425(0x235)],_0x336209[_0x2d3425(0x1df)][_0x2d3425(0x1e5)]),_0x1637c9={};_0x1637c9['WebSocket']=ws,_0x1637c9['connectionTimeout']=0x36ee80,_0x2831c7=new ReconnectingWebSocket(_0x3c2c98,[],_0x1637c9),logger['debug'](_0x40d3a8[_0x2d3425(0x21a)]),webSocketUtils['addListeners'](_0x2831c7,_0x2ee3d8[_0x2d3425(0x21f)],_0x2ee3d8['password']);const [_0x2e796e,_0x42ca35]=await _0x40d3a8[_0x2d3425(0x1f8)](getGridDetails,_0x336209[_0x2d3425(0x1df)][_0x2d3425(0x222)],_0x336209['Browserstack'][_0x2d3425(0x1e5)],_0x2ee3d8[_0x2d3425(0x217)]);if(_0x42ca35){const _0x475871=_0x42ca35[_0x2d3425(0x1e6)];global_registry['cloudProvider']=_0x475871[_0x2d3425(0x1fa)],global_registry[_0x2d3425(0x202)]=_0x475871[_0x2d3425(0x208)],global_registry['clusterName']=_0x475871[_0x2d3425(0x1f9)];const _0x2fc392=await _0x40d3a8[_0x2d3425(0x226)](getCloudProviderObject,_0x475871['cloudProvider'],_0x475871['clusterName'],_0x475871[_0x2d3425(0x20d)],_0x2831c7,webSocketUtils,_0x2ee3d8),[_0x5b9134,_0x1ebeb4,_0x57ddde,_0x1ebee4,_0x3c9a0f,_0x3d762c]=await _0x40d3a8['qvyYW'](createK8sClient,_0x2fc392,_0x2ee3d8[_0x2d3425(0x1ea)]);await _0x40d3a8['qvyYW'](scaleDownHubDeployment,_0x1ebeb4,_0x475871['name']),logger[_0x2d3425(0x1e6)](_0x40d3a8[_0x2d3425(0x214)]),process[_0x2d3425(0x234)](0x0);}_0x40d3a8['byURY'](_0x2e796e[_0x2d3425(0x236)],0x191)&&(logger[_0x2d3425(0x211)](_0x40d3a8['QFatR']),await _0x40d3a8[_0x2d3425(0x220)](sendInstrumentationEvent,_0x2ee3d8,_0x40d3a8['JTnew'],messageTypes['ERROR'],_0x40d3a8[_0x2d3425(0x231)],null,_0x2ee3d8),process[_0x2d3425(0x234)](0x1)),_0x40d3a8['byURY'](_0x2e796e['statusCode'],0x190)&&(logger[_0x2d3425(0x211)](JSON[_0x2d3425(0x228)](_0x2e796e[_0x2d3425(0x1f3)])[_0x2d3425(0x204)]),await _0x40d3a8['jHmPv'](sendInstrumentationEvent,_0x2ee3d8,_0x40d3a8[_0x2d3425(0x225)],messageTypes[_0x2d3425(0x1de)],_0x40d3a8[_0x2d3425(0x212)],null,_0x2ee3d8),process[_0x2d3425(0x234)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2d3425(0x1e9)](_0x2e796e)),await _0x40d3a8[_0x2d3425(0x21c)](sendInstrumentationEvent,_0x2ee3d8,_0x40d3a8[_0x2d3425(0x225)],messageTypes[_0x2d3425(0x1de)],_0x40d3a8[_0x2d3425(0x223)],_0x2e796e,_0x2ee3d8),process[_0x2d3425(0x234)](0x1);}catch(_0x43c6e8){const _0x5c70d7=_0x2d3425(0x203)+_0x43c6e8+'\x20\x0a'+JSON[_0x2d3425(0x1e9)](_0x43c6e8[_0x2d3425(0x1f5)])+'\x20';logger[_0x2d3425(0x211)](_0x5c70d7),process[_0x2d3425(0x234)](0x1);}};
1
+ const a21_0xbe0fb4=a21_0x3a53;(function(_0x43cb3b,_0x213c5f){const _0x15afca=a21_0x3a53,_0x438a58=_0x43cb3b();while(!![]){try{const _0x511777=parseInt(_0x15afca(0x172))/0x1*(parseInt(_0x15afca(0x1ae))/0x2)+parseInt(_0x15afca(0x169))/0x3*(parseInt(_0x15afca(0x177))/0x4)+-parseInt(_0x15afca(0x18b))/0x5*(-parseInt(_0x15afca(0x1bf))/0x6)+parseInt(_0x15afca(0x164))/0x7+-parseInt(_0x15afca(0x18d))/0x8+-parseInt(_0x15afca(0x199))/0x9+-parseInt(_0x15afca(0x179))/0xa;if(_0x511777===_0x213c5f)break;else _0x438a58['push'](_0x438a58['shift']());}catch(_0x53ae2a){_0x438a58['push'](_0x438a58['shift']());}}}(a21_0x15f1,0x54dae));function a21_0x15f1(){const _0x4ca19a=['Browserstack','options','grid','758dwJLhp','QUkly','hqCvI','stack','string','<PasswordPlaceholder>','IeIvQ','../../config/constants','error','dzNvl','info','handler','Stopping\x20grid\x20','parse','amnnX','Stop\x20a\x20running\x20Automation\x20grid.','EmMDy','1079508HjzxWu','body','clusterRegion','Adding\x20Websocket\x20listeners','skip-tls-cert-verify','1758316RYNCKC','replace','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bstackAccesskey','11121sQpOyq','stringify','MwbXN','unauthorised','addListeners','password','../../utils/createk8sClient','clusterName','stop-grid-called','569kMYYFc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','description','skipTlsCertVerify','user','312GMtvSj','yJJls','77640slENmv','gridId','builder','ERROR','AIBeb','JjpCY','help','nmOLi','argv','lGIlh','username','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','name','../../utils/utilityMethods','kzGzd','Skip\x20insecure\x20cert\x20verification.','message','exit','10rHqBHP','DVgRC','4270184EPcKtg','hevAn','connectionTimeout','../../utils/gridComponents','kyviw','region','XlhsF','invalid-grid-id','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kYwZQ','<UsernamePlaceholder>','usage','2040462pQHJrB','boolean','WebSocket','cloudProvider','grid-id','init-not-called','OGcTg','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','kbXcc','type','command','TZOlx','statusCode','BaYNY','JVSRd','stop','ovsSe','bstackUsername'];a21_0x15f1=function(){return _0x4ca19a;};return a21_0x15f1();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0xbe0fb4(0x1b5)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0xbe0fb4(0x186)),{scaleDownHubDeployment}=require(a21_0xbe0fb4(0x190)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0xbe0fb4(0x16f)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x3a53(_0x363c33,_0x491fd5){const _0x15f15f=a21_0x15f1();return a21_0x3a53=function(_0x3a537c,_0x194ff4){_0x3a537c=_0x3a537c-0x161;let _0x157ec8=_0x15f15f[_0x3a537c];return _0x157ec8;},a21_0x3a53(_0x363c33,_0x491fd5);}exports[a21_0xbe0fb4(0x1a3)]=a21_0xbe0fb4(0x1ad),exports['desc']=a21_0xbe0fb4(0x1bd),exports[a21_0xbe0fb4(0x17b)]=function(_0x55f8e0){const _0x47cc15=a21_0xbe0fb4,_0x35fb07={};_0x35fb07[_0x47cc15(0x19f)]=_0x47cc15(0x1a0),_0x35fb07['yJJls']=_0x47cc15(0x1b2),_0x35fb07['TZOlx']=_0x47cc15(0x188),_0x35fb07[_0x47cc15(0x1b0)]=_0x47cc15(0x19a),_0x35fb07[_0x47cc15(0x18c)]=_0x47cc15(0x17f);const _0x16104e=_0x35fb07,_0x19cfcc={};_0x19cfcc[_0x47cc15(0x174)]=_0x16104e[_0x47cc15(0x19f)],_0x19cfcc[_0x47cc15(0x1a2)]=_0x16104e[_0x47cc15(0x178)];const _0x16e5b1={};_0x16e5b1['description']=_0x16104e[_0x47cc15(0x1a4)],_0x16e5b1['type']=_0x16104e[_0x47cc15(0x1b0)],_0x16e5b1['default']=![];const _0x58290d={};return _0x58290d[_0x47cc15(0x19d)]=_0x19cfcc,_0x58290d[_0x47cc15(0x163)]=_0x16e5b1,_0x55f8e0[_0x47cc15(0x198)](HELP_HEADER_MESSAGE[_0x47cc15(0x1a8)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x47cc15(0x1ac)](_0x58290d)[_0x47cc15(0x17f)](_0x16104e[_0x47cc15(0x18c)])[_0x47cc15(0x181)];},exports[a21_0xbe0fb4(0x1b9)]=async function(_0x27ffec){const _0x1ff6c2=a21_0xbe0fb4,_0x1700ca={'kbXcc':_0x1ff6c2(0x184),'hevAn':function(_0x545da1){return _0x545da1();},'VBpGg':_0x1ff6c2(0x167),'kYwZQ':function(_0x4f7adc,_0x3216d6,_0x178343,_0x41651a,_0x117f3b,_0x512fd0,_0x35cea0){return _0x4f7adc(_0x3216d6,_0x178343,_0x41651a,_0x117f3b,_0x512fd0,_0x35cea0);},'lGIlh':_0x1ff6c2(0x171),'amnnX':_0x1ff6c2(0x19e),'ovsSe':function(_0x27e351,_0x4c1d6c,_0x12b860,_0x49bc0f,_0x422591,_0x4d86c1,_0x46b6ee){return _0x27e351(_0x4c1d6c,_0x12b860,_0x49bc0f,_0x422591,_0x4d86c1,_0x46b6ee);},'JjpCY':_0x1ff6c2(0x197),'kzGzd':_0x1ff6c2(0x1b3),'BaYNY':_0x1ff6c2(0x162),'AIBeb':function(_0x3a4980,_0x2b9768,_0xbcf26a,_0x4f5115){return _0x3a4980(_0x2b9768,_0xbcf26a,_0x4f5115);},'IeIvQ':function(_0x279745,_0x2f96c0,_0x97c1a7,_0x44b48d,_0x31f153,_0x42dc68,_0x25393f){return _0x279745(_0x2f96c0,_0x97c1a7,_0x44b48d,_0x31f153,_0x42dc68,_0x25393f);},'JVSRd':function(_0x1294fe,_0x3d4565,_0x4b6297){return _0x1294fe(_0x3d4565,_0x4b6297);},'kyviw':'Grid\x20stoppped.','KUppw':function(_0x233ece,_0x881d14){return _0x233ece===_0x881d14;},'MwbXN':_0x1ff6c2(0x195),'XlhsF':_0x1ff6c2(0x16c),'dmfUy':function(_0x2c5889,_0x5806a0){return _0x2c5889===_0x5806a0;},'nmOLi':function(_0x11ee06,_0x58428e,_0x302335,_0x2c09e9,_0x28566e,_0x3f2068,_0x4ec013){return _0x11ee06(_0x58428e,_0x302335,_0x2c09e9,_0x28566e,_0x3f2068,_0x4ec013);},'EmMDy':_0x1ff6c2(0x194),'dzNvl':function(_0xcf0941,_0x44d0ef,_0x21ed3f,_0x277c1a,_0x5eba90,_0x530e2d,_0x20d227){return _0xcf0941(_0x44d0ef,_0x21ed3f,_0x277c1a,_0x5eba90,_0x530e2d,_0x20d227);},'QUkly':'server-error'};let _0x541880;try{!_0x27ffec[_0x1ff6c2(0x17a)]&&(logger[_0x1ff6c2(0x1b6)](_0x1700ca[_0x1ff6c2(0x1a1)]),process[_0x1ff6c2(0x18a)](0x1));!fs['existsSync'](_0x1700ca[_0x1ff6c2(0x18e)](getCredentialsPath))&&(logger['error'](_0x1700ca['VBpGg']),await _0x1700ca[_0x1ff6c2(0x196)](sendInstrumentationEvent,_0x27ffec,_0x1700ca['lGIlh'],messageTypes['ERROR'],_0x1700ca[_0x1ff6c2(0x1bc)],null,_0x27ffec),process[_0x1ff6c2(0x18a)](0x1));logger['info'](_0x1ff6c2(0x1ba)+_0x27ffec[_0x1ff6c2(0x17a)]),await _0x1700ca[_0x1ff6c2(0x1a9)](sendInstrumentationEvent,_0x27ffec,_0x1700ca[_0x1ff6c2(0x182)],messageTypes['INFO'],null,null,_0x27ffec);const _0x1d55cb=JSON[_0x1ff6c2(0x1bb)](fs['readFileSync'](_0x1700ca[_0x1ff6c2(0x18e)](getCredentialsPath)));global_registry[_0x1ff6c2(0x1aa)]=_0x1d55cb['Browserstack'][_0x1ff6c2(0x183)],global_registry[_0x1ff6c2(0x168)]=_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x16e)];const _0x5c4ccc=WS_ENDPOINT['replace'](_0x1700ca[_0x1ff6c2(0x17e)],_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x183)])[_0x1ff6c2(0x165)](_0x1700ca[_0x1ff6c2(0x187)],_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x16e)]),_0x2f3cf4={};_0x2f3cf4[_0x1ff6c2(0x19b)]=ws,_0x2f3cf4[_0x1ff6c2(0x18f)]=0x36ee80,_0x541880=new ReconnectingWebSocket(_0x5c4ccc,[],_0x2f3cf4),logger['debug'](_0x1700ca[_0x1ff6c2(0x1a6)]),webSocketUtils[_0x1ff6c2(0x16d)](_0x541880,_0x27ffec[_0x1ff6c2(0x176)],_0x27ffec['password']);const [_0x196453,_0x62219b]=await _0x1700ca[_0x1ff6c2(0x17d)](getGridDetails,_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x183)],_0x1d55cb[_0x1ff6c2(0x1ab)][_0x1ff6c2(0x16e)],_0x27ffec[_0x1ff6c2(0x17a)]);if(_0x62219b){const _0x3dcdbc=_0x62219b[_0x1ff6c2(0x1b8)];global_registry[_0x1ff6c2(0x19c)]=_0x3dcdbc[_0x1ff6c2(0x19c)],global_registry[_0x1ff6c2(0x161)]=_0x3dcdbc[_0x1ff6c2(0x192)],global_registry[_0x1ff6c2(0x170)]=_0x3dcdbc['clusterName'];const _0x2d0f10=await _0x1700ca[_0x1ff6c2(0x1b4)](getCloudProviderObject,_0x3dcdbc[_0x1ff6c2(0x19c)],_0x3dcdbc['clusterName'],_0x3dcdbc[_0x1ff6c2(0x185)],_0x541880,webSocketUtils,_0x27ffec),[_0x329717,_0x3e692e,_0x5de499,_0x11bfa4,_0x5e7c45,_0x5e1d81]=await _0x1700ca[_0x1ff6c2(0x1a7)](createK8sClient,_0x2d0f10,_0x27ffec[_0x1ff6c2(0x175)]);await _0x1700ca[_0x1ff6c2(0x1a7)](scaleDownHubDeployment,_0x3e692e,_0x3dcdbc[_0x1ff6c2(0x185)]),logger[_0x1ff6c2(0x1b8)](_0x1700ca[_0x1ff6c2(0x191)]),process[_0x1ff6c2(0x18a)](0x0);}_0x1700ca['KUppw'](_0x196453[_0x1ff6c2(0x1a5)],0x191)&&(logger[_0x1ff6c2(0x1b6)](_0x1700ca[_0x1ff6c2(0x16b)]),await _0x1700ca['ovsSe'](sendInstrumentationEvent,_0x27ffec,_0x1700ca[_0x1ff6c2(0x182)],messageTypes[_0x1ff6c2(0x17c)],_0x1700ca[_0x1ff6c2(0x193)],null,_0x27ffec),process[_0x1ff6c2(0x18a)](0x1)),_0x1700ca['dmfUy'](_0x196453[_0x1ff6c2(0x1a5)],0x190)&&(logger['error'](JSON[_0x1ff6c2(0x1bb)](_0x196453[_0x1ff6c2(0x1c0)])[_0x1ff6c2(0x189)]),await _0x1700ca[_0x1ff6c2(0x180)](sendInstrumentationEvent,_0x27ffec,_0x1700ca[_0x1ff6c2(0x182)],messageTypes[_0x1ff6c2(0x17c)],_0x1700ca[_0x1ff6c2(0x1be)],null,_0x27ffec),process[_0x1ff6c2(0x18a)](0x1)),logger[_0x1ff6c2(0x1b6)](_0x1ff6c2(0x173)+JSON[_0x1ff6c2(0x16a)](_0x196453)),await _0x1700ca[_0x1ff6c2(0x1b7)](sendInstrumentationEvent,_0x27ffec,_0x1700ca[_0x1ff6c2(0x182)],messageTypes['ERROR'],_0x1700ca[_0x1ff6c2(0x1af)],_0x196453,_0x27ffec),process[_0x1ff6c2(0x18a)](0x1);}catch(_0x413c7b){const _0x521401=_0x1ff6c2(0x166)+_0x413c7b+'\x20\x0a'+JSON[_0x1ff6c2(0x16a)](_0x413c7b[_0x1ff6c2(0x1b1)])+'\x20';logger[_0x1ff6c2(0x1b6)](_0x521401),process[_0x1ff6c2(0x18a)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x12f343=a22_0x28fa;(function(_0x3c69a3,_0x5f0974){const _0x140564=a22_0x28fa,_0x2ec0eb=_0x3c69a3();while(!![]){try{const _0x1a9044=-parseInt(_0x140564(0x1c4))/0x1+parseInt(_0x140564(0x209))/0x2+parseInt(_0x140564(0x1c1))/0x3*(-parseInt(_0x140564(0x1ae))/0x4)+-parseInt(_0x140564(0x1ca))/0x5+parseInt(_0x140564(0x1b0))/0x6+-parseInt(_0x140564(0x1cb))/0x7*(-parseInt(_0x140564(0x1cf))/0x8)+-parseInt(_0x140564(0x1b1))/0x9;if(_0x1a9044===_0x5f0974)break;else _0x2ec0eb['push'](_0x2ec0eb['shift']());}catch(_0x50e470){_0x2ec0eb['push'](_0x2ec0eb['shift']());}}}(a22_0x8149,0xb8728),require(a22_0x12f343(0x1f9))['config']());let gridURL=a22_0x12f343(0x1f3),bsApiUrl=a22_0x12f343(0x1e3),agApiUrl=a22_0x12f343(0x1ee);const _env=(process['env']['BROWSERSTACK_ENV']||'prod')[a22_0x12f343(0x1ef)]();if(_env===a22_0x12f343(0x1db)||_env===a22_0x12f343(0x1e2))gridURL=a22_0x12f343(0x1bf),bsApiUrl=a22_0x12f343(0x1d3),agApiUrl=a22_0x12f343(0x214);else(_env===a22_0x12f343(0x20c)||_env===a22_0x12f343(0x1cc))&&(gridURL=a22_0x12f343(0x21b),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x12f343(0x1f5));exports['DASHBOARD_ENDPOINT']=process[a22_0x12f343(0x211)][a22_0x12f343(0x1ab)]||gridURL,exports[a22_0x12f343(0x1ff)]=process[a22_0x12f343(0x211)][a22_0x12f343(0x1ff)]||bsApiUrl,exports[a22_0x12f343(0x207)]=process[a22_0x12f343(0x211)][a22_0x12f343(0x207)]||agApiUrl,exports[a22_0x12f343(0x217)]='wss://'+this[a22_0x12f343(0x207)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x12f343(0x1fa)]=a22_0x12f343(0x1aa),exports[a22_0x12f343(0x1e7)]=a22_0x12f343(0x216),exports[a22_0x12f343(0x20d)]=a22_0x12f343(0x1dc),exports[a22_0x12f343(0x20b)]=a22_0x12f343(0x1f8),exports['CLUSTER_DEP_STACK_NAME']=a22_0x12f343(0x21a),exports[a22_0x12f343(0x1df)]=a22_0x12f343(0x201),exports[a22_0x12f343(0x1b5)]=a22_0x12f343(0x208),exports[a22_0x12f343(0x1d4)]='browserstack-turboscale-grid',exports[a22_0x12f343(0x1d5)]=a22_0x12f343(0x1d6),exports[a22_0x12f343(0x1f0)]=a22_0x12f343(0x1e6),exports[a22_0x12f343(0x1da)]=[this[a22_0x12f343(0x20b)],this[a22_0x12f343(0x1d5)],this[a22_0x12f343(0x1f0)]];const a22_0x3a17eb={};function a22_0x28fa(_0x2d39ce,_0x32d078){const _0x814908=a22_0x8149();return a22_0x28fa=function(_0x28fa56,_0x451a3f){_0x28fa56=_0x28fa56-0x1aa;let _0x575a4d=_0x814908[_0x28fa56];return _0x575a4d;},a22_0x28fa(_0x2d39ce,_0x32d078);}a22_0x3a17eb[a22_0x12f343(0x1d0)]=a22_0x12f343(0x1d8),a22_0x3a17eb[a22_0x12f343(0x1cd)]=a22_0x12f343(0x1e1);const a22_0x564afe={};a22_0x564afe['Key']=a22_0x12f343(0x1fd),a22_0x564afe[a22_0x12f343(0x1cd)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x3a17eb,a22_0x564afe];if(process['env']['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x12f343(0x211)][a22_0x12f343(0x1ed)][a22_0x12f343(0x1eb)](',');parsedTags[a22_0x12f343(0x1c9)](_0x552797=>{const _0x59f140=a22_0x12f343,_0x42a5c0=_0x552797[_0x59f140(0x1eb)](':'),_0x1f2279={};_0x1f2279[_0x59f140(0x1d0)]=_0x42a5c0[0x0],_0x1f2279[_0x59f140(0x1cd)]=_0x42a5c0[0x1],common_hst_tags_list[_0x59f140(0x1ce)](_0x1f2279);});}exports[a22_0x12f343(0x1ea)]=common_hst_tags_list;const a22_0x125677={};a22_0x125677[a22_0x12f343(0x1d8)]='BrowserStack',a22_0x125677[a22_0x12f343(0x1fd)]='BrowserStack-Automate-TurboScale',exports[a22_0x12f343(0x1e5)]=a22_0x125677,exports[a22_0x12f343(0x1f7)]=[this[a22_0x12f343(0x20b)]];const a22_0x31946b={};a22_0x31946b[a22_0x12f343(0x1f2)]='log',a22_0x31946b[a22_0x12f343(0x210)]=a22_0x12f343(0x1af),a22_0x31946b[a22_0x12f343(0x1fe)]=a22_0x12f343(0x1f4),a22_0x31946b[a22_0x12f343(0x1bd)]='cliRunStarted',a22_0x31946b['CLI_RUN_FINISHED']=a22_0x12f343(0x1d9),exports[a22_0x12f343(0x1b6)]=a22_0x31946b,exports[a22_0x12f343(0x20e)]={},exports[a22_0x12f343(0x1e9)]=a22_0x12f343(0x204);const a22_0x421870={};function a22_0x8149(){const _0xfd65fe=['Key','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','api-devhst.bsstag.com','TURBOSCALE_DEPLOYMENT','AZURE','azure','high-scale-grid-cluster','browserstack:managedBy','cliRunFinished','ALL_SUPPORTED_CLOUD_PROVIDERS','staging','high-scale-grid','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','NULL','CLUSTER_AUTOSCALER_STACK_NAME','list','BrowserStack','stag','api.browserstack.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','HST_CLUSTER_TAGS','gcp','IAM_USER_NAME','REGION','LINK_MESSAGE','COMMON_HST_TAGS','split','connect','TURBOSCALE_CUSTOM_TAGS','grid-api.browserstack.com','toLowerCase','GCP','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','LOG','grid.browserstack.com','gridUrl','grid-api-preprod.bsstag.com','SUCCESS','SUPPORTED_CLOUD_PROVIDERS','aws','dotenv','CP_CONFIG_FILE','delete','create','browserstack:service','GRID_URL','BS_API_URL','info','BSTACK-ATS-CLUSTER-AUTOSCALER','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','warning','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','configure','AG_API_URL','BSTACK-ATS-CLUSTER-HUB-HA','1104466OmBlqx','error','AWS','preprod','DEFAULT_GRID_NAME','global_registry','init','RESOURCES','env','REDACTED','pre-check','grid-api-devhst.bsstag.com','us-east-1','BrowserStackIAMUser','WS_ENDPOINT','ERROR','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BSTACK-ATS-CLUSTER','grid-preprod.bsstag.com','credentials','DASHBOARD_ENDPOINT','stop','success','16eNjMai','resourceInfo','6592206BNPtJK','17053533YdKcEv','CLUSTER','UNKNOWN','TRIAL_GRID_URL','CLUSTER_HUB_HA_STACK_NAME','WS_EVENTS','grid-profile','HELP_FOOTER_MESSAGE','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','MessageDescription','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','CLI_RUN_STARTED','root','grid-devhst.bsstag.com','messageTypes','131214HNZkep','WARNING','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','108566LCVSZg','pre_check','DEFAULT_CLUSTER_DETAILS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLOUD_PROVIDER','forEach','460260BnIOOE','7HZvhsJ','pre-prod','Value','push','10999752eibNlg'];a22_0x8149=function(){return _0xfd65fe;};return a22_0x8149();}a22_0x421870[a22_0x12f343(0x1be)]=a22_0x12f343(0x1c3)+this[a22_0x12f343(0x1e9)],a22_0x421870[a22_0x12f343(0x20f)]=a22_0x12f343(0x1ba)+this[a22_0x12f343(0x1e9)],a22_0x421870[a22_0x12f343(0x206)]=a22_0x12f343(0x1c7)+this['LINK_MESSAGE'],a22_0x421870[a22_0x12f343(0x1fc)]=a22_0x12f343(0x219)+this[a22_0x12f343(0x1e9)],a22_0x421870[a22_0x12f343(0x1e0)]={},a22_0x421870[a22_0x12f343(0x1fb)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x421870[a22_0x12f343(0x1ec)]=a22_0x12f343(0x1bc)+this['LINK_MESSAGE'],a22_0x421870['start']=a22_0x12f343(0x205)+this['LINK_MESSAGE'],a22_0x421870[a22_0x12f343(0x1ac)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x421870[a22_0x12f343(0x1c5)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x12f343(0x1e9)],a22_0x421870[a22_0x12f343(0x1e0)]['root']=a22_0x12f343(0x1d2)+this[a22_0x12f343(0x1e9)],a22_0x421870[a22_0x12f343(0x1e0)]['grid']=a22_0x12f343(0x202)+this[a22_0x12f343(0x1e9)],a22_0x421870[a22_0x12f343(0x1e0)]['gridProfile']=a22_0x12f343(0x1e4)+this['LINK_MESSAGE'],exports['HELP_HEADER_MESSAGE']=a22_0x421870,exports[a22_0x12f343(0x1b8)]=a22_0x12f343(0x1d1);const a22_0x563b03={};a22_0x563b03[a22_0x12f343(0x1f6)]=a22_0x12f343(0x1ad),a22_0x563b03[a22_0x12f343(0x218)]=a22_0x12f343(0x20a),a22_0x563b03['INFO']=a22_0x12f343(0x200),a22_0x563b03[a22_0x12f343(0x1c2)]=a22_0x12f343(0x203),a22_0x563b03[a22_0x12f343(0x1b3)]='unknown',a22_0x563b03[a22_0x12f343(0x1de)]=null,exports[a22_0x12f343(0x1c0)]=a22_0x563b03,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x12f343(0x1b9)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x12f343(0x212)]='[REDACTED]';const a22_0x728e9f={};a22_0x728e9f[a22_0x12f343(0x1b7)]=a22_0x12f343(0x1f1);const a22_0x93ac03={};a22_0x93ac03[a22_0x12f343(0x213)]=a22_0x728e9f,exports[a22_0x12f343(0x1bb)]=a22_0x93ac03,exports[a22_0x12f343(0x1b4)]=a22_0x12f343(0x1dd);const a22_0x7fb041={};a22_0x7fb041[a22_0x12f343(0x1b2)]=a22_0x12f343(0x1d7),a22_0x7fb041[a22_0x12f343(0x1c8)]=a22_0x12f343(0x1f8),a22_0x7fb041[a22_0x12f343(0x1e8)]=a22_0x12f343(0x215),exports[a22_0x12f343(0x1c6)]=a22_0x7fb041;
1
+ const a22_0x27b89e=a22_0x23cc;(function(_0x1d82b5,_0x3a75f5){const _0x3fa445=a22_0x23cc,_0x3a0e1e=_0x1d82b5();while(!![]){try{const _0x50a6a8=parseInt(_0x3fa445(0xb3))/0x1*(-parseInt(_0x3fa445(0x90))/0x2)+-parseInt(_0x3fa445(0x76))/0x3+parseInt(_0x3fa445(0x83))/0x4+-parseInt(_0x3fa445(0xa8))/0x5+parseInt(_0x3fa445(0xa2))/0x6+-parseInt(_0x3fa445(0xa9))/0x7*(-parseInt(_0x3fa445(0x93))/0x8)+parseInt(_0x3fa445(0xb8))/0x9;if(_0x50a6a8===_0x3a75f5)break;else _0x3a0e1e['push'](_0x3a0e1e['shift']());}catch(_0x50a874){_0x3a0e1e['push'](_0x3a0e1e['shift']());}}}(a22_0x561a,0x86725),require(a22_0x27b89e(0xc5))['config']());let gridURL=a22_0x27b89e(0xd9),bsApiUrl=a22_0x27b89e(0xbb),agApiUrl=a22_0x27b89e(0xda);const _env=(process[a22_0x27b89e(0xae)][a22_0x27b89e(0x85)]||a22_0x27b89e(0xd3))['toLowerCase']();if(_env==='staging'||_env===a22_0x27b89e(0xa3))gridURL=a22_0x27b89e(0x71),bsApiUrl=a22_0x27b89e(0x91),agApiUrl=a22_0x27b89e(0x9e);else(_env===a22_0x27b89e(0x75)||_env==='pre-prod')&&(gridURL=a22_0x27b89e(0x98),bsApiUrl=a22_0x27b89e(0xcd),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process[a22_0x27b89e(0xae)][a22_0x27b89e(0xd7)]||gridURL,exports[a22_0x27b89e(0xb6)]=process[a22_0x27b89e(0xae)][a22_0x27b89e(0xb6)]||bsApiUrl,exports[a22_0x27b89e(0xac)]=process['env'][a22_0x27b89e(0xac)]||agApiUrl,exports[a22_0x27b89e(0x7d)]='wss://'+this[a22_0x27b89e(0xac)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x27b89e(0xc6)]=a22_0x27b89e(0xc8),exports[a22_0x27b89e(0x9c)]=a22_0x27b89e(0xdd),exports[a22_0x27b89e(0xad)]=a22_0x27b89e(0xaf),exports['AWS']='aws',exports['CLUSTER_DEP_STACK_NAME']=a22_0x27b89e(0x84),exports[a22_0x27b89e(0x74)]=a22_0x27b89e(0xc4),exports[a22_0x27b89e(0x7f)]=a22_0x27b89e(0x88),exports[a22_0x27b89e(0x9b)]=a22_0x27b89e(0xb0),exports[a22_0x27b89e(0xd0)]=a22_0x27b89e(0x95),exports[a22_0x27b89e(0x78)]=a22_0x27b89e(0x70),exports[a22_0x27b89e(0xa4)]=[this[a22_0x27b89e(0xc0)],this[a22_0x27b89e(0xd0)],this[a22_0x27b89e(0x78)]];const a22_0x295207={};a22_0x295207[a22_0x27b89e(0x8d)]=a22_0x27b89e(0x80),a22_0x295207[a22_0x27b89e(0x89)]=a22_0x27b89e(0x8a);const a22_0x1ab8dd={};a22_0x1ab8dd[a22_0x27b89e(0x8d)]=a22_0x27b89e(0x8c),a22_0x1ab8dd[a22_0x27b89e(0x89)]=a22_0x27b89e(0xbd);function a22_0x561a(){const _0x2194c8=['preprod','202833BInueJ','connect','GCP','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','global_registry','unknown','gridProfile','WS_ENDPOINT','grid-profile','CLUSTER_HUB_HA_STACK_NAME','browserstack:managedBy','CLI_RUN_STARTED','RAW_ARGS_REGEX','2081716wnGpec','BSTACK-ATS-CLUSTER','BROWSERSTACK_ENV','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','high-scale-grid-cluster','BSTACK-ATS-CLUSTER-HUB-HA','Value','BrowserStack','GRID_URL','browserstack:service','Key','SUPPORTED_CLOUD_PROVIDERS','[REDACTED]','4EeMkMx','api-devhst.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','8KVtPys','aws','azure','start','LOG','grid-preprod.bsstag.com','log','info','TURBOSCALE_DEPLOYMENT','IAM_USER_NAME','TURBOSCALE_CUSTOM_TAGS','grid-api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','pre-check','1983018zfcFpA','stag','ALL_SUPPORTED_CLOUD_PROVIDERS','UNKNOWN','WS_EVENTS','list','4263595ILCiGG','2047283ltIxMG','delete','gridUrl','AG_API_URL','DEFAULT_GRID_NAME','env','high-scale-grid','browserstack-turboscale-grid','COMMON_HST_TAGS','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','32543gkSrhL','init','CLOUD_PROVIDER','BS_API_URL','create','3534372eMhgsi','LINK_MESSAGE','HELP_HEADER_MESSAGE','api.browserstack.com','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack-Automate-TurboScale','INFO','pre_check','AWS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','NULL','CLI_RUN_FINISHED','BSTACK-ATS-CLUSTER-AUTOSCALER','dotenv','CP_CONFIG_FILE','HST_CLUSTER_TAGS','credentials','SUCCESS','push','error','messageTypes','api-preprod.bsstag.com','TRIAL_GRID_URL','REGION','AZURE','split','WARNING','prod','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','DEFAULT_CLUSTER_DETAILS','DASHBOARD_ENDPOINT','forEach','grid.browserstack.com','grid-api.browserstack.com','ERROR','root','BrowserStackIAMUser','MessageDescription','REDACTED','grid','gcp','grid-devhst.bsstag.com','resourceInfo','RESOURCES','CLUSTER_AUTOSCALER_STACK_NAME'];a22_0x561a=function(){return _0x2194c8;};return a22_0x561a();}const common_hst_tags_list=[a22_0x295207,a22_0x1ab8dd];if(process[a22_0x27b89e(0xae)][a22_0x27b89e(0x9d)]){const parsedTags=process[a22_0x27b89e(0xae)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x27b89e(0xd1)](',');parsedTags[a22_0x27b89e(0xd8)](_0x59b8cf=>{const _0x13cd57=a22_0x27b89e,_0x25c5ff=_0x59b8cf[_0x13cd57(0xd1)](':'),_0x32bed6={};_0x32bed6[_0x13cd57(0x8d)]=_0x25c5ff[0x0],_0x32bed6[_0x13cd57(0x89)]=_0x25c5ff[0x1],common_hst_tags_list[_0x13cd57(0xca)](_0x32bed6);});}exports[a22_0x27b89e(0xb1)]=common_hst_tags_list;const a22_0x313ad0={};a22_0x313ad0['browserstack:managedBy']='BrowserStack',a22_0x313ad0['browserstack:service']=a22_0x27b89e(0xbd),exports[a22_0x27b89e(0xc7)]=a22_0x313ad0,exports[a22_0x27b89e(0x8e)]=[this['AWS']];const a22_0x1344f8={};a22_0x1344f8[a22_0x27b89e(0x97)]=a22_0x27b89e(0x99),a22_0x1344f8[a22_0x27b89e(0x73)]=a22_0x27b89e(0x72),a22_0x1344f8[a22_0x27b89e(0x8b)]=a22_0x27b89e(0xab),a22_0x1344f8[a22_0x27b89e(0x81)]='cliRunStarted',a22_0x1344f8[a22_0x27b89e(0xc3)]='cliRunFinished',exports[a22_0x27b89e(0xa6)]=a22_0x1344f8,exports[a22_0x27b89e(0x7a)]={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x152a4b={};a22_0x152a4b[a22_0x27b89e(0xdc)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xb4)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x27b89e(0xb9)],a22_0x152a4b['configure']=a22_0x27b89e(0x9f)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xb7)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x152a4b[a22_0x27b89e(0xa7)]={},a22_0x152a4b[a22_0x27b89e(0xaa)]=a22_0x27b89e(0xd5)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0x77)]=a22_0x27b89e(0xbc)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0x96)]=a22_0x27b89e(0x86)+this[a22_0x27b89e(0xb9)],a22_0x152a4b['stop']=a22_0x27b89e(0x92)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xbf)]=a22_0x27b89e(0xa0)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xa7)][a22_0x27b89e(0xdc)]=a22_0x27b89e(0xd4)+this[a22_0x27b89e(0xb9)],a22_0x152a4b[a22_0x27b89e(0xa7)][a22_0x27b89e(0x6f)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x152a4b[a22_0x27b89e(0xa7)][a22_0x27b89e(0x7c)]=a22_0x27b89e(0xc1)+this[a22_0x27b89e(0xb9)],exports[a22_0x27b89e(0xba)]=a22_0x152a4b,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x47ee6a={};a22_0x47ee6a[a22_0x27b89e(0xc9)]='success',a22_0x47ee6a[a22_0x27b89e(0xdb)]=a22_0x27b89e(0xcb),a22_0x47ee6a[a22_0x27b89e(0xbe)]=a22_0x27b89e(0x9a),a22_0x47ee6a[a22_0x27b89e(0xd2)]='warning',a22_0x47ee6a[a22_0x27b89e(0xa5)]=a22_0x27b89e(0x7b),a22_0x47ee6a[a22_0x27b89e(0xc2)]=null,exports[a22_0x27b89e(0xcc)]=a22_0x47ee6a,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x27b89e(0x82)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x27b89e(0x6e)]=a22_0x27b89e(0x8f);const a22_0x7a9a84={};a22_0x7a9a84[a22_0x27b89e(0x7e)]=a22_0x27b89e(0xb2);const a22_0x46d458={};a22_0x46d458[a22_0x27b89e(0xa1)]=a22_0x7a9a84,exports[a22_0x27b89e(0xde)]=a22_0x46d458,exports[a22_0x27b89e(0xce)]=a22_0x27b89e(0x79);function a22_0x23cc(_0x4e75ea,_0x3557f8){const _0x561aa5=a22_0x561a();return a22_0x23cc=function(_0x23cc9c,_0x8cb3e2){_0x23cc9c=_0x23cc9c-0x6e;let _0x23530e=_0x561aa5[_0x23cc9c];return _0x23530e;},a22_0x23cc(_0x4e75ea,_0x3557f8);}const a22_0x21702e={};a22_0x21702e['CLUSTER']=a22_0x27b89e(0x87),a22_0x21702e[a22_0x27b89e(0xb5)]=a22_0x27b89e(0x94),a22_0x21702e[a22_0x27b89e(0xcf)]='us-east-1',exports[a22_0x27b89e(0xd6)]=a22_0x21702e;
@@ -1 +1 @@
1
- const a23_0x3fea3f=a23_0x20c1;(function(_0x3f6ca7,_0x439742){const _0xef8b1c=a23_0x20c1,_0x58d596=_0x3f6ca7();while(!![]){try{const _0x195c9b=-parseInt(_0xef8b1c(0x196))/0x1*(parseInt(_0xef8b1c(0x1b3))/0x2)+parseInt(_0xef8b1c(0x1b1))/0x3+-parseInt(_0xef8b1c(0x1af))/0x4*(-parseInt(_0xef8b1c(0x19f))/0x5)+-parseInt(_0xef8b1c(0x199))/0x6*(-parseInt(_0xef8b1c(0x1a1))/0x7)+parseInt(_0xef8b1c(0x19b))/0x8*(parseInt(_0xef8b1c(0x1b4))/0x9)+parseInt(_0xef8b1c(0x1a3))/0xa+-parseInt(_0xef8b1c(0x1a2))/0xb*(parseInt(_0xef8b1c(0x19d))/0xc);if(_0x195c9b===_0x439742)break;else _0x58d596['push'](_0x58d596['shift']());}catch(_0x3e7a44){_0x58d596['push'](_0x58d596['shift']());}}}(a23_0x555f,0x3b4ed));const winston=require(a23_0x3fea3f(0x1b0)),fs=require('fs'),path=require(a23_0x3fea3f(0x1ae)),logDir=a23_0x3fea3f(0x1a7);!fs[a23_0x3fea3f(0x19a)](logDir)&&fs[a23_0x3fea3f(0x194)](logDir);const a23_0x6eb8a={};function a23_0x20c1(_0x17f7b7,_0xc0f4bd){const _0x555f3a=a23_0x555f();return a23_0x20c1=function(_0x20c102,_0x3026ea){_0x20c102=_0x20c102-0x193;let _0xb68175=_0x555f3a[_0x20c102];return _0xb68175;},a23_0x20c1(_0x17f7b7,_0xc0f4bd);}a23_0x6eb8a[a23_0x3fea3f(0x1a5)]=a23_0x3fea3f(0x195);const a23_0x2a72e6={};a23_0x2a72e6[a23_0x3fea3f(0x19e)]=!![];const a23_0x56881a={};a23_0x56881a[a23_0x3fea3f(0x1ac)]='console.info',exports['logger']=new winston[(a23_0x3fea3f(0x1a8))]({'format':winston['format'][a23_0x3fea3f(0x1ad)](winston[a23_0x3fea3f(0x1a5)]['timestamp'](a23_0x6eb8a),winston[a23_0x3fea3f(0x1a5)][a23_0x3fea3f(0x198)](a23_0x2a72e6),winston['format'][a23_0x3fea3f(0x1aa)](_0x32b43a=>_0x32b43a[a23_0x3fea3f(0x1b2)]+a23_0x3fea3f(0x1a9)+_0x32b43a['level']+':\x20'+_0x32b43a[a23_0x3fea3f(0x1a6)])),'transports':[new winston['transports'][(a23_0x3fea3f(0x193))](a23_0x56881a),new winston['transports'][(a23_0x3fea3f(0x19c))]({'filename':path[a23_0x3fea3f(0x1a4)](logDir,a23_0x3fea3f(0x197)),'level':a23_0x3fea3f(0x1ab)})]});function a23_0x555f(){const _0x45cf6d=['printf','debug','name','combine','path','81236IOCLLW','winston','1353246tfCtaq','timestamp','773540OaYtuM','426591MapcdQ','Console','mkdirSync','YYYY-MM-DD\x20HH:mm:ss','1ptNadr','events.log','colorize','676836ElOdWQ','existsSync','8APAGcO','File','2868BbDYhC','level','95rfVVIL','fileLogger','7vykoRY','24233tmVETg','1590540szykNB','join','format','message','log','createLogger','\x20-\x20'];a23_0x555f=function(){return _0x45cf6d;};return a23_0x555f();}const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x3fea3f(0x19c))]({'filename':path[a23_0x3fea3f(0x1a4)](logDir,'usage.log'),'level':a23_0x3fea3f(0x1ab)})]};exports[a23_0x3fea3f(0x1a0)]=new winston[(a23_0x3fea3f(0x1a8))](winstonFileLoggerParams);
1
+ const a23_0x42c228=a23_0x1c2d;(function(_0x3a699f,_0x2b67da){const _0x420253=a23_0x1c2d,_0x2eb4ef=_0x3a699f();while(!![]){try{const _0x5e5dd2=-parseInt(_0x420253(0x142))/0x1+-parseInt(_0x420253(0x13f))/0x2*(-parseInt(_0x420253(0x148))/0x3)+parseInt(_0x420253(0x130))/0x4+parseInt(_0x420253(0x14a))/0x5*(parseInt(_0x420253(0x13c))/0x6)+-parseInt(_0x420253(0x131))/0x7*(parseInt(_0x420253(0x13d))/0x8)+parseInt(_0x420253(0x12d))/0x9+-parseInt(_0x420253(0x137))/0xa;if(_0x5e5dd2===_0x2b67da)break;else _0x2eb4ef['push'](_0x2eb4ef['shift']());}catch(_0x5bb613){_0x2eb4ef['push'](_0x2eb4ef['shift']());}}}(a23_0x2343,0x940a5));function a23_0x2343(){const _0x14caa3=['YYYY-MM-DD\x20HH:mm:ss','3095130pLAPLG','debug','Console','level','transports','34800yRHDpy','3835232ISgFRQ','File','10Wvfjjp','winston','printf','238869hBwcXg','usage.log','timestamp','join','format','console.info','44223ijdWDg','name','155sQSEgw','colorize','mkdirSync','\x20-\x20','3951648BjrTxI','log','logger','3766328geAuMu','7bJUpsj','message','existsSync','createLogger','fileLogger'];a23_0x2343=function(){return _0x14caa3;};return a23_0x2343();}const winston=require(a23_0x42c228(0x140)),fs=require('fs'),path=require('path'),logDir=a23_0x42c228(0x12e);!fs[a23_0x42c228(0x133)](logDir)&&fs[a23_0x42c228(0x12b)](logDir);const a23_0x2173a1={};a23_0x2173a1[a23_0x42c228(0x146)]=a23_0x42c228(0x136);const a23_0x2ee20c={};a23_0x2ee20c[a23_0x42c228(0x13a)]=!![];const a23_0x21eae2={};a23_0x21eae2[a23_0x42c228(0x149)]=a23_0x42c228(0x147),exports[a23_0x42c228(0x12f)]=new winston['createLogger']({'format':winston[a23_0x42c228(0x146)]['combine'](winston['format'][a23_0x42c228(0x144)](a23_0x2173a1),winston['format'][a23_0x42c228(0x14b)](a23_0x2ee20c),winston[a23_0x42c228(0x146)][a23_0x42c228(0x141)](_0x9e7ba4=>_0x9e7ba4[a23_0x42c228(0x144)]+a23_0x42c228(0x12c)+_0x9e7ba4[a23_0x42c228(0x13a)]+':\x20'+_0x9e7ba4[a23_0x42c228(0x132)])),'transports':[new winston[(a23_0x42c228(0x13b))][(a23_0x42c228(0x139))](a23_0x21eae2),new winston[(a23_0x42c228(0x13b))][(a23_0x42c228(0x13e))]({'filename':path[a23_0x42c228(0x145)](logDir,'events.log'),'level':'debug'})]});function a23_0x1c2d(_0x5ef1a9,_0x59ba72){const _0x234377=a23_0x2343();return a23_0x1c2d=function(_0x1c2dab,_0x1f1746){_0x1c2dab=_0x1c2dab-0x12b;let _0x824638=_0x234377[_0x1c2dab];return _0x824638;},a23_0x1c2d(_0x5ef1a9,_0x59ba72);}const winstonFileLoggerParams={'transports':[new winston[(a23_0x42c228(0x13b))][(a23_0x42c228(0x13e))]({'filename':path['join'](logDir,a23_0x42c228(0x143)),'level':a23_0x42c228(0x138)})]};exports[a23_0x42c228(0x135)]=new winston[(a23_0x42c228(0x134))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x4c3775=a24_0x1c6f;function a24_0x1c6f(_0x5feeb7,_0x465414){const _0x46f474=a24_0x46f4();return a24_0x1c6f=function(_0x1c6f73,_0x3956d8){_0x1c6f73=_0x1c6f73-0x1cd;let _0xe3c17d=_0x46f474[_0x1c6f73];return _0xe3c17d;},a24_0x1c6f(_0x5feeb7,_0x465414);}(function(_0x35d36f,_0x209e6f){const _0x3c9cfa=a24_0x1c6f,_0x4417f9=_0x35d36f();while(!![]){try{const _0x5aec04=-parseInt(_0x3c9cfa(0x1de))/0x1+parseInt(_0x3c9cfa(0x1ce))/0x2+parseInt(_0x3c9cfa(0x1d3))/0x3+parseInt(_0x3c9cfa(0x1d2))/0x4+parseInt(_0x3c9cfa(0x1d5))/0x5+-parseInt(_0x3c9cfa(0x1d1))/0x6*(parseInt(_0x3c9cfa(0x1dd))/0x7)+parseInt(_0x3c9cfa(0x1d9))/0x8*(-parseInt(_0x3c9cfa(0x1da))/0x9);if(_0x5aec04===_0x209e6f)break;else _0x4417f9['push'](_0x4417f9['shift']());}catch(_0x150a06){_0x4417f9['push'](_0x4417f9['shift']());}}}(a24_0x46f4,0x73f34));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x4c3775(0x1d7));process[a24_0x4c3775(0x1d4)][a24_0x4c3775(0x1cf)]=0x1;function run(_0x24defc){const _0x15f5fb=a24_0x4c3775,_0x2aef52={};_0x2aef52['ymhhe']='commands',_0x2aef52[_0x15f5fb(0x1dc)]=_0x15f5fb(0x1cd);const _0x1d0d5b=_0x2aef52;_0x24defc['usage'](HELP_HEADER_MESSAGE[_0x15f5fb(0x1d0)])[_0x15f5fb(0x1d8)](_0x1d0d5b[_0x15f5fb(0x1df)])['demandCommand']()['help'](_0x1d0d5b[_0x15f5fb(0x1dc)])[_0x15f5fb(0x1d6)](HELP_FOOTER_MESSAGE);}module[a24_0x4c3775(0x1db)]=run;function a24_0x46f4(){const _0x403120=['443462OZGPGJ','ymhhe','help','1173732ywBNqO','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','root','96474kMskjX','3699420SjTtAI','161442bBFYta','env','2055780qcYYGA','epilogue','./config/constants','commandDir','27736jSinbG','702sDasmk','exports','IyOtG','343FmByJn'];a24_0x46f4=function(){return _0x403120;};return a24_0x46f4();}
2
+ 'use strict';function a24_0x106b(_0x828e76,_0x65149a){const _0x1df7f2=a24_0x1df7();return a24_0x106b=function(_0x106b90,_0x446131){_0x106b90=_0x106b90-0x1f2;let _0x4f443=_0x1df7f2[_0x106b90];return _0x4f443;},a24_0x106b(_0x828e76,_0x65149a);}const a24_0x3967b1=a24_0x106b;function a24_0x1df7(){const _0x4fb476=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','demandCommand','help','6rCNUuk','88547MhcfbJ','752472NibHFB','env','rSAyL','10PBBKQF','commandDir','513612WtIyeB','root','exports','88362hOgQGa','usage','39pBbEvL','10HlCFWJ','commands','8754SQbzcP','448lHXQUl','YTcnu','2411761tOlwFa','5890920cUxTAF','1813QZnSSm'];a24_0x1df7=function(){return _0x4fb476;};return a24_0x1df7();}(function(_0x180487,_0x380418){const _0x4d93c4=a24_0x106b,_0x5c45f1=_0x180487();while(!![]){try{const _0x38f089=parseInt(_0x4d93c4(0x203))/0x1*(-parseInt(_0x4d93c4(0x202))/0x2)+parseInt(_0x4d93c4(0x209))/0x3+parseInt(_0x4d93c4(0x204))/0x4*(-parseInt(_0x4d93c4(0x1f7))/0x5)+parseInt(_0x4d93c4(0x1f9))/0x6*(-parseInt(_0x4d93c4(0x1fe))/0x7)+parseInt(_0x4d93c4(0x1fa))/0x8*(-parseInt(_0x4d93c4(0x1f4))/0x9)+-parseInt(_0x4d93c4(0x207))/0xa*(-parseInt(_0x4d93c4(0x1fc))/0xb)+-parseInt(_0x4d93c4(0x1fd))/0xc*(-parseInt(_0x4d93c4(0x1f6))/0xd);if(_0x38f089===_0x380418)break;else _0x5c45f1['push'](_0x5c45f1['shift']());}catch(_0x228e54){_0x5c45f1['push'](_0x5c45f1['shift']());}}}(a24_0x1df7,0x47af3));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x3967b1(0x205)][a24_0x3967b1(0x1ff)]=0x1;function run(_0x25ca96){const _0x7fa64c=a24_0x3967b1,_0x416b0a={};_0x416b0a[_0x7fa64c(0x1fb)]=_0x7fa64c(0x1f8),_0x416b0a['rSAyL']=_0x7fa64c(0x201);const _0x5c53c1=_0x416b0a;_0x25ca96[_0x7fa64c(0x1f5)](HELP_HEADER_MESSAGE[_0x7fa64c(0x1f2)])[_0x7fa64c(0x208)](_0x5c53c1[_0x7fa64c(0x1fb)])[_0x7fa64c(0x200)]()[_0x7fa64c(0x201)](_0x5c53c1[_0x7fa64c(0x206)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x3967b1(0x1f3)]=run;