browserstack-node-sdk 1.50.3 → 1.50.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) 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/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x5d66af=a15_0x4d6c;function a15_0x4d6c(_0x17c2aa,_0x3d0353){const _0x5bd924=a15_0x5bd9();return a15_0x4d6c=function(_0x4d6c3a,_0x324d5b){_0x4d6c3a=_0x4d6c3a-0x159;let _0x50b662=_0x5bd924[_0x4d6c3a];return _0x50b662;},a15_0x4d6c(_0x17c2aa,_0x3d0353);}(function(_0x4bdeb5,_0x183d36){const _0x3fcd6f=a15_0x4d6c,_0x46a4e8=_0x4bdeb5();while(!![]){try{const _0x556dbc=-parseInt(_0x3fcd6f(0x164))/0x1+parseInt(_0x3fcd6f(0x190))/0x2+parseInt(_0x3fcd6f(0x1a0))/0x3+parseInt(_0x3fcd6f(0x18a))/0x4*(-parseInt(_0x3fcd6f(0x18b))/0x5)+parseInt(_0x3fcd6f(0x193))/0x6*(-parseInt(_0x3fcd6f(0x19c))/0x7)+parseInt(_0x3fcd6f(0x15f))/0x8*(-parseInt(_0x3fcd6f(0x188))/0x9)+parseInt(_0x3fcd6f(0x19a))/0xa*(parseInt(_0x3fcd6f(0x19d))/0xb);if(_0x556dbc===_0x183d36)break;else _0x46a4e8['push'](_0x46a4e8['shift']());}catch(_0x1a6518){_0x46a4e8['push'](_0x46a4e8['shift']());}}}(a15_0x5bd9,0xbcb71));const fs=require('fs'),got=require(a15_0x5d66af(0x15d)),{table}=require(a15_0x5d66af(0x182)),{v4:uuidv4}=require(a15_0x5d66af(0x1ac)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5d66af(0x1a9)),{getCredentialsPath,getAuthHeader}=require(a15_0x5d66af(0x199)),{sendInstrumentationEvent}=require(a15_0x5d66af(0x167));exports[a15_0x5d66af(0x17e)]=a15_0x5d66af(0x16d),exports[a15_0x5d66af(0x19f)]=a15_0x5d66af(0x179),exports[a15_0x5d66af(0x171)]=function(_0x43993f){const _0x28f39f=a15_0x5d66af,_0x465360={};_0x465360[_0x28f39f(0x1a3)]=_0x28f39f(0x173),_0x465360['KJzxp']=_0x28f39f(0x15a),_0x465360[_0x28f39f(0x168)]=_0x28f39f(0x198);const _0x673d58=_0x465360,_0x13d829={};_0x13d829[_0x28f39f(0x189)]=_0x673d58[_0x28f39f(0x1a3)],_0x13d829[_0x28f39f(0x169)]=_0x673d58[_0x28f39f(0x19e)];const _0x1e3d3a={};return _0x1e3d3a[_0x28f39f(0x16b)]=_0x13d829,_0x43993f['usage'](HELP_HEADER_MESSAGE[_0x28f39f(0x18f)]['grid'])[_0x28f39f(0x16c)](HELP_FOOTER_MESSAGE)[_0x28f39f(0x1aa)](_0x1e3d3a)[_0x28f39f(0x198)](_0x673d58['XmpXf'])['argv'];},exports[a15_0x5d66af(0x15e)]=async function(_0x5be3f2){const _0x5d7ce4=a15_0x5d66af,_0x3b116f={'kVilm':function(_0x50dd67){return _0x50dd67();},'bvImX':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','SgzAw':function(_0xc8b0b0,_0x5d46bc,_0x186b3e,_0x5c3e76,_0x593df1,_0x34b586,_0x5f3d6d){return _0xc8b0b0(_0x5d46bc,_0x186b3e,_0x5c3e76,_0x593df1,_0x34b586,_0x5f3d6d);},'QjqtX':'list-grids-called','sHapx':_0x5d7ce4(0x185),'PdLSC':_0x5d7ce4(0x1a2),'GlTBN':function(_0x3f06d5,_0x2216e3,_0x4c88c0){return _0x3f06d5(_0x2216e3,_0x4c88c0);},'DKRDi':function(_0x58f2c3,_0x36d8b3){return _0x58f2c3!==_0x36d8b3;},'AhzFq':function(_0x322359,_0x3b673f){return _0x322359===_0x3b673f;},'rBeSY':_0x5d7ce4(0x15b),'LfSUr':'grid-id','uymcB':_0x5d7ce4(0x17a),'VJJsw':_0x5d7ce4(0x1a4),'hEruQ':_0x5d7ce4(0x17c),'yWvEI':_0x5d7ce4(0x196),'EbbBv':_0x5d7ce4(0x161),'MZSoo':function(_0x43ac81,_0x4f7c77){return _0x43ac81(_0x4f7c77);},'TMbvT':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','vakhO':_0x5d7ce4(0x159),'XAvNJ':function(_0x4a9efd,_0x5ae459,_0x2d6ce8,_0x1659ff,_0x3f63ab,_0x5f3deb,_0x4336db){return _0x4a9efd(_0x5ae459,_0x2d6ce8,_0x1659ff,_0x3f63ab,_0x5f3deb,_0x4336db);},'nqGdy':_0x5d7ce4(0x16e),'QYaGD':function(_0x107a6f,_0x18cd96,_0x33f931,_0x252104,_0x141ea9,_0x433468,_0x2d0001){return _0x107a6f(_0x18cd96,_0x33f931,_0x252104,_0x141ea9,_0x433468,_0x2d0001);},'ZaUBi':_0x5d7ce4(0x17d)};try{global_registry['requestId']=_0x3b116f[_0x5d7ce4(0x15c)](uuidv4);!fs['existsSync'](_0x3b116f[_0x5d7ce4(0x15c)](getCredentialsPath))&&(console[_0x5d7ce4(0x176)](_0x3b116f['bvImX']),await _0x3b116f[_0x5d7ce4(0x16a)](sendInstrumentationEvent,_0x5be3f2,_0x3b116f['QjqtX'],messageTypes[_0x5d7ce4(0x1ad)],_0x3b116f[_0x5d7ce4(0x1a5)],null,_0x5be3f2),process[_0x5d7ce4(0x1a6)](0x1));const _0x4f58e3=JSON[_0x5d7ce4(0x1a8)](fs[_0x5d7ce4(0x165)](_0x3b116f[_0x5d7ce4(0x15c)](getCredentialsPath)));let _0x2596c2=_0x5d7ce4(0x160)+AG_API_URL+_0x5d7ce4(0x1ae);_0x5be3f2[_0x5d7ce4(0x18e)]&&(_0x2596c2=_0x5d7ce4(0x160)+AG_API_URL+_0x5d7ce4(0x18c));const _0x1a81dd={'method':_0x3b116f['PdLSC'],'headers':_0x3b116f[_0x5d7ce4(0x184)](getAuthHeader,_0x4f58e3[_0x5d7ce4(0x192)]['username'],_0x4f58e3[_0x5d7ce4(0x192)][_0x5d7ce4(0x183)]),'throwHttpErrors':![]};global_registry[_0x5d7ce4(0x172)]=_0x4f58e3[_0x5d7ce4(0x192)][_0x5d7ce4(0x195)],global_registry[_0x5d7ce4(0x1a7)]=_0x4f58e3[_0x5d7ce4(0x192)][_0x5d7ce4(0x183)],_0x3b116f['SgzAw'](sendInstrumentationEvent,_0x5be3f2,_0x3b116f[_0x5d7ce4(0x194)],messageTypes[_0x5d7ce4(0x170)],null,null,_0x5be3f2);const _0x4ac043=await _0x3b116f[_0x5d7ce4(0x184)](got,_0x2596c2,_0x1a81dd);if(_0x3b116f[_0x5d7ce4(0x17b)](_0x4ac043,null)&&_0x3b116f[_0x5d7ce4(0x17b)](_0x4ac043,undefined)&&_0x3b116f['AhzFq'](_0x4ac043['statusCode'],0xc8)){const _0xf3128d=JSON[_0x5d7ce4(0x1a8)](_0x4ac043[_0x5d7ce4(0x166)]);console[_0x5d7ce4(0x175)](_0x3b116f[_0x5d7ce4(0x162)]);const _0x32d5d2=[];_0x32d5d2[_0x5d7ce4(0x1a1)]([_0x3b116f[_0x5d7ce4(0x181)],_0x3b116f[_0x5d7ce4(0x177)],_0x3b116f[_0x5d7ce4(0x19b)],_0x3b116f['hEruQ'],_0x3b116f[_0x5d7ce4(0x17f)],_0x3b116f[_0x5d7ce4(0x178)]]),_0xf3128d[_0x5d7ce4(0x18d)](_0x4ede31=>{const _0x40cf98=_0x5d7ce4;_0x32d5d2[_0x40cf98(0x1a1)]([_0x4ede31['id'],_0x4ede31['name'],_0x4ede31['status'],_0x4ede31['running'],_0x4ede31[_0x40cf98(0x196)],_0x4ede31[_0x40cf98(0x186)]]);}),console['log'](_0x3b116f[_0x5d7ce4(0x1b0)](table,_0x32d5d2)),process[_0x5d7ce4(0x1a6)](0x0);}_0x3b116f[_0x5d7ce4(0x1ab)](_0x4ac043['statusCode'],0x191)&&(console['error'](_0x3b116f[_0x5d7ce4(0x187)]),await _0x3b116f[_0x5d7ce4(0x16a)](sendInstrumentationEvent,_0x5be3f2,_0x3b116f[_0x5d7ce4(0x194)],messageTypes[_0x5d7ce4(0x1ad)],_0x3b116f[_0x5d7ce4(0x180)],null,_0x5be3f2),process[_0x5d7ce4(0x1a6)](0x1)),console[_0x5d7ce4(0x176)](_0x5d7ce4(0x163)+JSON[_0x5d7ce4(0x174)](_0x4ac043)),await _0x3b116f[_0x5d7ce4(0x191)](sendInstrumentationEvent,_0x5be3f2,_0x3b116f['QjqtX'],messageTypes['ERROR'],_0x3b116f[_0x5d7ce4(0x1af)],_0x4ac043,_0x5be3f2),process[_0x5d7ce4(0x1a6)](0x1);}catch(_0x39f447){console[_0x5d7ce4(0x176)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x39f447[_0x5d7ce4(0x16f)]),await _0x3b116f['QYaGD'](sendInstrumentationEvent,_0x5be3f2,_0x3b116f[_0x5d7ce4(0x194)],messageTypes[_0x5d7ce4(0x1ad)],_0x3b116f[_0x5d7ce4(0x197)],_0x39f447,_0x5be3f2),process[_0x5d7ce4(0x1a6)](0x1);}};function a15_0x5bd9(){const _0x145919=['rBeSY','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1113204gHuokq','readFileSync','body','../../utils/instrumentationUtils','XmpXf','type','SgzAw','all-grids','epilogue','grids','server-error','stack','INFO','builder','bstackUsername','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','stringify','log','error','uymcB','EbbBv','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','grid-name','DKRDi','running','unknown-error','command','yWvEI','vakhO','LfSUr','table','password','GlTBN','init-not-called','clusterName','TMbvT','12763395lURGhg','description','908bKNEUD','3345bZqOGr','/packages/cli/get-all-grids','forEach','allGrids','list','2652604sLxuOx','XAvNJ','Browserstack','270XLfIzJ','QjqtX','username','queued','ZaUBi','help','../../utils/utilityMethods','173720GTulnx','VJJsw','174356IiTEzY','1474roEFlU','KJzxp','desc','2768727YzdrAj','push','GET','oSmXv','status','sHapx','exit','bstackAccesskey','parse','../../config/constants','options','AhzFq','uuid','ERROR','/packages/cli/get-grids','nqGdy','MZSoo','unauthorised','boolean','\x0aFound\x20the\x20following\x20grids:\x0a','kVilm','got','handler','8PEVkLj','https://','cluster-name'];a15_0x5bd9=function(){return _0x145919;};return a15_0x5bd9();}
1
+ const a15_0x16de10=a15_0x745e;function a15_0x2cce(){const _0x5350bb=['clusterName','queued','argv','grid','wwCZS','/packages/cli/get-all-grids','wsBGH','INFO','XmFKH','4205005TWuQDo','mVhrd','grids','help','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','XkZRH','gcSBR','vgCCb','WADDH','allGrids','2424mrtSHI','tOdpA','nXcHk','DDZSx','33318aZLTVF','bstackUsername','HDWXh','bstackAccesskey','\x0aFound\x20the\x20following\x20grids:\x0a','options','parse','REdVD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','usage','push','1686190eMWtCW','UjmwI','zsZLj','Failed\x20to\x20list\x20resources!\x20Error:\x20','699846OGmChz','body','JJJqe','running','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','/packages/cli/get-grids','log','epilogue','password','wRfWC','name','init-not-called','table','description','type','forEach','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','xfMia','statusCode','status','ERROR','../../config/constants','kwaNS','username','Browserstack','got','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','1458VVZBYD','2830984TJpazg','xUwst','stack','../../utils/instrumentationUtils','RYpzb','list-grids-called','ReSHP','../../utils/utilityMethods','server-error','GET','exit','error','2661352PqFybO','handler','list','HmUMZ','grid-id','all-grids','https://'];a15_0x2cce=function(){return _0x5350bb;};return a15_0x2cce();}(function(_0x3fd26e,_0x30179a){const _0x39d146=a15_0x745e,_0x8d3b89=_0x3fd26e();while(!![]){try{const _0x538497=-parseInt(_0x39d146(0x1bb))/0x1+-parseInt(_0x39d146(0x1a8))/0x2*(-parseInt(_0x39d146(0x181))/0x3)+-parseInt(_0x39d146(0x182))/0x4+parseInt(_0x39d146(0x1b7))/0x5+-parseInt(_0x39d146(0x1ac))/0x6+parseInt(_0x39d146(0x19e))/0x7+parseInt(_0x39d146(0x18e))/0x8;if(_0x538497===_0x30179a)break;else _0x8d3b89['push'](_0x8d3b89['shift']());}catch(_0x466946){_0x8d3b89['push'](_0x8d3b89['shift']());}}}(a15_0x2cce,0x6d02d));function a15_0x745e(_0x3645e4,_0x4e26a3){const _0x2ccef6=a15_0x2cce();return a15_0x745e=function(_0x745e81,_0x3d776d){_0x745e81=_0x745e81-0x170;let _0x3ec6f6=_0x2ccef6[_0x745e81];return _0x3ec6f6;},a15_0x745e(_0x3645e4,_0x4e26a3);}const fs=require('fs'),got=require(a15_0x16de10(0x17f)),{table}=require(a15_0x16de10(0x171)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x16de10(0x17b)),{getCredentialsPath,getAuthHeader}=require(a15_0x16de10(0x189)),{sendInstrumentationEvent}=require(a15_0x16de10(0x185));exports['command']=a15_0x16de10(0x1a0),exports['desc']=a15_0x16de10(0x1a2),exports['builder']=function(_0x19d60a){const _0x3998c2=a15_0x16de10,_0x16268b={};_0x16268b['REdVD']=_0x3998c2(0x180),_0x16268b[_0x3998c2(0x19f)]='boolean',_0x16268b[_0x3998c2(0x1b9)]=_0x3998c2(0x1a1);const _0x3c7589=_0x16268b,_0x21d0e2={};_0x21d0e2[_0x3998c2(0x172)]=_0x3c7589[_0x3998c2(0x1b3)],_0x21d0e2[_0x3998c2(0x173)]=_0x3c7589['mVhrd'];const _0x58068c={};return _0x58068c[_0x3998c2(0x193)]=_0x21d0e2,_0x19d60a[_0x3998c2(0x1b5)](HELP_HEADER_MESSAGE[_0x3998c2(0x190)][_0x3998c2(0x198)])[_0x3998c2(0x1c3)](HELP_FOOTER_MESSAGE)[_0x3998c2(0x1b1)](_0x58068c)['help'](_0x3c7589['zsZLj'])[_0x3998c2(0x197)];},exports[a15_0x16de10(0x18f)]=async function(_0x458533){const _0x583cc8=a15_0x16de10,_0x150081={'nXcHk':function(_0x56f58e){return _0x56f58e();},'vgCCb':function(_0x57de24){return _0x57de24();},'WADDH':_0x583cc8(0x1b4),'HDWXh':function(_0x550550,_0x3fa796,_0x4c687a,_0x197223,_0x2e336a,_0x32a46a,_0x36021a){return _0x550550(_0x3fa796,_0x4c687a,_0x197223,_0x2e336a,_0x32a46a,_0x36021a);},'wRfWC':_0x583cc8(0x187),'tOdpA':_0x583cc8(0x170),'kwaNS':function(_0x31ff2c){return _0x31ff2c();},'qUgHf':_0x583cc8(0x18b),'RYpzb':function(_0x1de45b,_0x201c42,_0x5c8806){return _0x1de45b(_0x201c42,_0x5c8806);},'UuEZC':function(_0x1b7cbd,_0x4a360b){return _0x1b7cbd!==_0x4a360b;},'gcSBR':function(_0x10c576,_0x5ad85a){return _0x10c576===_0x5ad85a;},'XmFKH':_0x583cc8(0x1b0),'JJJqe':_0x583cc8(0x192),'nHzDm':'grid-name','UjmwI':_0x583cc8(0x179),'DDZSx':_0x583cc8(0x1be),'ReSHP':_0x583cc8(0x196),'PciGg':'cluster-name','wsBGH':function(_0x176c7b,_0x56d52b){return _0x176c7b(_0x56d52b);},'XkZRH':_0x583cc8(0x1bf),'xUwst':'unauthorised','xfMia':function(_0x11fb39,_0x2544b7,_0xf3f75d,_0x113ed7,_0x17acef,_0x5c841d,_0x3877f4){return _0x11fb39(_0x2544b7,_0xf3f75d,_0x113ed7,_0x17acef,_0x5c841d,_0x3877f4);},'HmUMZ':_0x583cc8(0x18a),'wwCZS':'unknown-error'};try{global_registry['requestId']=_0x150081[_0x583cc8(0x1aa)](uuidv4);!fs[_0x583cc8(0x176)](_0x150081[_0x583cc8(0x1a5)](getCredentialsPath))&&(console[_0x583cc8(0x18d)](_0x150081[_0x583cc8(0x1a6)]),await _0x150081['HDWXh'](sendInstrumentationEvent,_0x458533,_0x150081['wRfWC'],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x1a9)],null,_0x458533),process['exit'](0x1));const _0x1dd750=JSON[_0x583cc8(0x1b2)](fs['readFileSync'](_0x150081[_0x583cc8(0x17c)](getCredentialsPath)));let _0x23c071=_0x583cc8(0x194)+AG_API_URL+_0x583cc8(0x1c1);_0x458533[_0x583cc8(0x1a7)]&&(_0x23c071=_0x583cc8(0x194)+AG_API_URL+_0x583cc8(0x19a));const _0x4ded9b={'method':_0x150081['qUgHf'],'headers':_0x150081[_0x583cc8(0x186)](getAuthHeader,_0x1dd750[_0x583cc8(0x17e)][_0x583cc8(0x17d)],_0x1dd750[_0x583cc8(0x17e)][_0x583cc8(0x1c4)]),'throwHttpErrors':![]};global_registry[_0x583cc8(0x1ad)]=_0x1dd750['Browserstack'][_0x583cc8(0x17d)],global_registry[_0x583cc8(0x1af)]=_0x1dd750['Browserstack']['password'],_0x150081[_0x583cc8(0x1ae)](sendInstrumentationEvent,_0x458533,_0x150081['wRfWC'],messageTypes[_0x583cc8(0x19c)],null,null,_0x458533);const _0x35c686=await _0x150081[_0x583cc8(0x186)](got,_0x23c071,_0x4ded9b);if(_0x150081['UuEZC'](_0x35c686,null)&&_0x150081['UuEZC'](_0x35c686,undefined)&&_0x150081[_0x583cc8(0x1a4)](_0x35c686[_0x583cc8(0x178)],0xc8)){const _0xed2632=JSON[_0x583cc8(0x1b2)](_0x35c686[_0x583cc8(0x1bc)]);console['log'](_0x150081[_0x583cc8(0x19d)]);const _0x535f7d=[];_0x535f7d[_0x583cc8(0x1b6)]([_0x150081[_0x583cc8(0x1bd)],_0x150081['nHzDm'],_0x150081[_0x583cc8(0x1b8)],_0x150081[_0x583cc8(0x1ab)],_0x150081[_0x583cc8(0x188)],_0x150081['PciGg']]),_0xed2632[_0x583cc8(0x174)](_0x565e12=>{const _0xce31fa=_0x583cc8;_0x535f7d['push']([_0x565e12['id'],_0x565e12[_0xce31fa(0x1c6)],_0x565e12[_0xce31fa(0x179)],_0x565e12['running'],_0x565e12['queued'],_0x565e12[_0xce31fa(0x195)]]);}),console[_0x583cc8(0x1c2)](_0x150081[_0x583cc8(0x19b)](table,_0x535f7d)),process[_0x583cc8(0x18c)](0x0);}_0x150081['gcSBR'](_0x35c686[_0x583cc8(0x178)],0x191)&&(console['error'](_0x150081[_0x583cc8(0x1a3)]),await _0x150081[_0x583cc8(0x1ae)](sendInstrumentationEvent,_0x458533,_0x150081[_0x583cc8(0x1c5)],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x183)],null,_0x458533),process[_0x583cc8(0x18c)](0x1)),console['error'](_0x583cc8(0x175)+JSON[_0x583cc8(0x1c0)](_0x35c686)),await _0x150081[_0x583cc8(0x177)](sendInstrumentationEvent,_0x458533,_0x150081[_0x583cc8(0x1c5)],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x191)],_0x35c686,_0x458533),process['exit'](0x1);}catch(_0x5a3b20){console[_0x583cc8(0x18d)](_0x583cc8(0x1ba)+_0x5a3b20[_0x583cc8(0x184)]),await _0x150081[_0x583cc8(0x177)](sendInstrumentationEvent,_0x458533,_0x150081[_0x583cc8(0x1c5)],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x199)],_0x5a3b20,_0x458533),process[_0x583cc8(0x18c)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x132945=a16_0x3cd1;(function(_0x19f6ec,_0x504e56){const _0x1d1516=a16_0x3cd1,_0x440675=_0x19f6ec();while(!![]){try{const _0xb315d7=-parseInt(_0x1d1516(0xea))/0x1+parseInt(_0x1d1516(0xd9))/0x2*(parseInt(_0x1d1516(0xe9))/0x3)+parseInt(_0x1d1516(0xda))/0x4*(parseInt(_0x1d1516(0xeb))/0x5)+-parseInt(_0x1d1516(0xd5))/0x6+parseInt(_0x1d1516(0xe7))/0x7+parseInt(_0x1d1516(0xdd))/0x8+parseInt(_0x1d1516(0xe4))/0x9*(-parseInt(_0x1d1516(0xe8))/0xa);if(_0xb315d7===_0x504e56)break;else _0x440675['push'](_0x440675['shift']());}catch(_0x21b245){_0x440675['push'](_0x440675['shift']());}}}(a16_0x13a0,0x841f7));function a16_0x3cd1(_0x93d365,_0x31173e){const _0x13a01b=a16_0x13a0();return a16_0x3cd1=function(_0x3cd1ea,_0x404c49){_0x3cd1ea=_0x3cd1ea-0xd5;let _0x1160c9=_0x13a01b[_0x3cd1ea];return _0x1160c9;},a16_0x3cd1(_0x93d365,_0x31173e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x132945(0xdc));exports[a16_0x132945(0xdf)]=a16_0x132945(0xe3),exports[a16_0x132945(0xd8)]=a16_0x132945(0xe5),exports['builder']=function(_0x2e519a){const _0x2f8cc3=a16_0x132945,_0x1a07bb={};_0x1a07bb['JsBaA']=_0x2f8cc3(0xd6),_0x1a07bb[_0x2f8cc3(0xdb)]='help';const _0x15e4b2=_0x1a07bb;return _0x2e519a['usage'](HELP_HEADER_MESSAGE[_0x2f8cc3(0xe0)])[_0x2f8cc3(0xe6)](HELP_FOOTER_MESSAGE)[_0x2f8cc3(0xe2)](_0x15e4b2['JsBaA'])[_0x2f8cc3(0xd7)]()[_0x2f8cc3(0xe1)]()['strict']()[_0x2f8cc3(0xde)](_0x15e4b2[_0x2f8cc3(0xdb)]);},exports['handler']=function(_0xf33cf7){};function a16_0x13a0(){const _0x3a5577=['oLyQv','../config/constants','258472giKZkS','help','command','pre_check','recommendCommands','commandDir','pre-check','95571jNzSmG','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','epilogue','1459010wdJBLn','100QPtHjR','3435RssWqN','14566foKXDJ','11575rKJPKL','5357298DOOhwK','precheck_commands','demandCommand','desc','1802xjzLPo','488xLozqk'];a16_0x13a0=function(){return _0x3a5577;};return a16_0x13a0();}
1
+ function a16_0x220e(){const _0xb9ae2c=['2547809PTXzqD','recommendCommands','precheck_commands','builder','epilogue','44NjsSTi','demandCommand','usage','fLIds','639696ULEauE','65288MgkeGZ','../config/constants','7MyQwaj','2922LWEuaR','pre_check','handler','234zSDguy','3743870FQTCpB','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','desc','command','15pOOWIn','166224TNbKLK','52496UwYGtY','dEuxR'];a16_0x220e=function(){return _0xb9ae2c;};return a16_0x220e();}const a16_0x229cda=a16_0x4146;(function(_0x610cc,_0x24b0eb){const _0x466bd0=a16_0x4146,_0x504277=_0x610cc();while(!![]){try{const _0xd7f653=-parseInt(_0x466bd0(0x19c))/0x1*(parseInt(_0x466bd0(0x1a4))/0x2)+parseInt(_0x466bd0(0x1a0))/0x3+-parseInt(_0x466bd0(0x1a1))/0x4*(-parseInt(_0x466bd0(0x1ad))/0x5)+parseInt(_0x466bd0(0x1ae))/0x6*(-parseInt(_0x466bd0(0x1a3))/0x7)+parseInt(_0x466bd0(0x1af))/0x8*(parseInt(_0x466bd0(0x1a7))/0x9)+-parseInt(_0x466bd0(0x1a8))/0xa+parseInt(_0x466bd0(0x197))/0xb;if(_0xd7f653===_0x24b0eb)break;else _0x504277['push'](_0x504277['shift']());}catch(_0x41c97f){_0x504277['push'](_0x504277['shift']());}}}(a16_0x220e,0x305a6));function a16_0x4146(_0x32cf6f,_0x298995){const _0x220e44=a16_0x220e();return a16_0x4146=function(_0x41462e,_0x58c063){_0x41462e=_0x41462e-0x197;let _0x2405f6=_0x220e44[_0x41462e];return _0x2405f6;},a16_0x4146(_0x32cf6f,_0x298995);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x229cda(0x1a2));exports[a16_0x229cda(0x1ac)]='pre-check',exports[a16_0x229cda(0x1ab)]=a16_0x229cda(0x1a9),exports[a16_0x229cda(0x19a)]=function(_0xebcf6e){const _0x4c01f2=a16_0x229cda,_0x5508dd={};_0x5508dd['fLIds']=_0x4c01f2(0x199),_0x5508dd['dEuxR']=_0x4c01f2(0x1aa);const _0x5e14f7=_0x5508dd;return _0xebcf6e[_0x4c01f2(0x19e)](HELP_HEADER_MESSAGE[_0x4c01f2(0x1a5)])[_0x4c01f2(0x19b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5e14f7[_0x4c01f2(0x19f)])[_0x4c01f2(0x19d)]()[_0x4c01f2(0x198)]()['strict']()['help'](_0x5e14f7[_0x4c01f2(0x1b0)]);},exports[a16_0x229cda(0x1a6)]=function(_0x212f0d){};
@@ -1 +1 @@
1
- const a17_0x543959=a17_0x4687;(function(_0xd17de1,_0x31b0b9){const _0x558292=a17_0x4687,_0x3d9f10=_0xd17de1();while(!![]){try{const _0x5dfa=-parseInt(_0x558292(0x1a7))/0x1*(parseInt(_0x558292(0x19b))/0x2)+-parseInt(_0x558292(0x178))/0x3+-parseInt(_0x558292(0x154))/0x4+-parseInt(_0x558292(0x1a9))/0x5*(-parseInt(_0x558292(0x15f))/0x6)+-parseInt(_0x558292(0xff))/0x7+-parseInt(_0x558292(0x17e))/0x8+-parseInt(_0x558292(0xfc))/0x9*(-parseInt(_0x558292(0x16d))/0xa);if(_0x5dfa===_0x31b0b9)break;else _0x3d9f10['push'](_0x3d9f10['shift']());}catch(_0x3beb27){_0x3d9f10['push'](_0x3d9f10['shift']());}}}(a17_0x2134,0x24a8c));const fs=require('fs'),ws=require('ws'),got=require(a17_0x543959(0x17b)),{v4:uuidv4}=require(a17_0x543959(0xf7)),ReconnectingWebSocket=require(a17_0x543959(0x14e)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x543959(0x18d)),{logger}=require(a17_0x543959(0x160)),{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_0x543959(0x113)),{getCloudProviderObjectWithOutInit}=require(a17_0x543959(0xc1)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x543959(0x189)]=a17_0x543959(0x147),exports[a17_0x543959(0x14d)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x543959(0xbf)]=function(_0xa75b45){const _0xb579d2=a17_0x543959,_0x2dd8ec={};_0x2dd8ec[_0xb579d2(0x11c)]=_0xb579d2(0x15d),_0x2dd8ec[_0xb579d2(0x108)]=_0xb579d2(0x101),_0x2dd8ec['ykFXl']=_0xb579d2(0x181),_0x2dd8ec['HMpjI']=_0xb579d2(0xec),_0x2dd8ec['uIhQt']=_0xb579d2(0x144),_0x2dd8ec[_0xb579d2(0x17a)]=_0xb579d2(0xf2);const _0x41f790=_0x2dd8ec,_0x86d1f3={};_0x86d1f3[_0xb579d2(0x156)]=_0x41f790['hLYuh'],_0x86d1f3[_0xb579d2(0xd7)]=_0x41f790['UdRbt'];const _0x19de9f={};_0x19de9f['description']=_0x41f790[_0xb579d2(0x155)],_0x19de9f[_0xb579d2(0xd7)]=_0x41f790['UdRbt'];const _0x1e391c={};_0x1e391c[_0xb579d2(0x156)]=_0x41f790[_0xb579d2(0x184)],_0x1e391c[_0xb579d2(0xd7)]=_0x41f790['UdRbt'];const _0x4933da={};_0x4933da['description']=_0x41f790['uIhQt'],_0x4933da[_0xb579d2(0xd7)]=_0x41f790[_0xb579d2(0x108)];const _0x4e1123={};return _0x4e1123[_0xb579d2(0x1ad)]=_0x86d1f3,_0x4e1123[_0xb579d2(0xcb)]=_0x19de9f,_0x4e1123[_0xb579d2(0x16f)]=_0x1e391c,_0x4e1123[_0xb579d2(0x15e)]=_0x4933da,_0xa75b45[_0xb579d2(0x1af)](HELP_HEADER_MESSAGE['pre_check'])[_0xb579d2(0x145)](HELP_FOOTER_MESSAGE)[_0xb579d2(0x14b)](_0x4e1123)[_0xb579d2(0xf2)](_0x41f790[_0xb579d2(0x17a)])[_0xb579d2(0x14f)];};async function inputValidation(_0x5bbb51,_0x356602){const _0x441c92=a17_0x543959,_0x40ea0e={'hdEOX':function(_0x40ef1e,_0x401ce5){return _0x40ef1e+_0x401ce5;},'rflrq':_0x441c92(0x12f),'SGWVQ':_0x441c92(0x1a4),'wBUyL':function(_0x537a8a,_0x2409c1){return _0x537a8a||_0x2409c1;},'SaXQS':_0x441c92(0x1ac),'WTigT':_0x441c92(0x103),'BdelG':_0x441c92(0x1ad),'pbqDX':_0x441c92(0x16f),'dkuqS':_0x441c92(0x1ab),'oScrx':_0x441c92(0xcb),'ltoDM':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','subuO':_0x441c92(0x15d),'NSamI':_0x441c92(0x101),'wiffI':_0x441c92(0x181),'FLyUv':_0x441c92(0xec),'rmIPp':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','yHLRl':_0x441c92(0xf2),'VfoMn':_0x441c92(0x1a8),'WRMcG':_0x441c92(0x18c),'NqFes':function(_0x5db648,_0x2e1ada){return _0x5db648===_0x2e1ada;},'ujapo':'mzrtD','Ymhzf':function(_0x5a19ac,_0x6ebd79){return _0x5a19ac===_0x6ebd79;},'akJuS':_0x441c92(0x19d),'KeqpX':_0x441c92(0x122),'Fctvs':'yEBZF','NgoAs':_0x441c92(0x194),'hNFfc':function(_0x50839d,_0x611fdb){return _0x50839d===_0x611fdb;},'mTBJk':_0x441c92(0x11e),'yEqix':function(_0x387fea,_0x1b5770){return _0x387fea>_0x1b5770;},'aLxPm':function(_0xfd6e3,_0x32be9f){return _0xfd6e3===_0x32be9f;},'ngQBr':'mBxIg','mczbX':_0x441c92(0x18f),'HswxD':function(_0x151a3,_0x3b62d2,_0x2a1d5d,_0x385d7f,_0x5c9220,_0x2b1329,_0x5d7ef9,_0x5e4c82){return _0x151a3(_0x3b62d2,_0x2a1d5d,_0x385d7f,_0x5c9220,_0x2b1329,_0x5d7ef9,_0x5e4c82);},'weDRg':_0x441c92(0xd6),'wuCLp':'pre-check-cluster-args-not-passed','uUGXM':function(_0x194e80,_0x55cedf){return _0x194e80!==_0x55cedf;},'CtDvV':_0x441c92(0xef),'sxspY':_0x441c92(0x1a5),'mJSSj':_0x441c92(0xe8),'hQVXw':_0x441c92(0x168),'caCRu':_0x441c92(0x12b),'BjdGc':function(_0x3a2cc9,_0x37c6a1){return _0x3a2cc9!==_0x37c6a1;},'FezoD':_0x441c92(0xf9),'okRdw':'GET','PWjEM':function(_0x525b88,_0x57ba7a,_0x537c31){return _0x525b88(_0x57ba7a,_0x537c31);},'uYOaG':function(_0x4e66a7,_0x59739b,_0x2134f9,_0x5bc58b,_0x2a4b0d,_0x204417){return _0x4e66a7(_0x59739b,_0x2134f9,_0x5bc58b,_0x2a4b0d,_0x204417);},'IofNh':_0x441c92(0x163),'caEiG':_0x441c92(0x15e),'zHSFt':function(_0x15df17,_0x666108){return _0x15df17===_0x666108;},'muRDo':_0x441c92(0x197),'rCqkq':function(_0x114895,_0x155451){return _0x114895(_0x155451);},'qwqyO':function(_0x428d98,_0x22ea91){return _0x428d98===_0x22ea91;},'VvUgy':_0x441c92(0x16c),'POuVa':_0x441c92(0x129),'MypNW':_0x441c92(0x12a),'VcCKy':'NNNzY','BXhqo':_0x441c92(0x174),'rfvnp':function(_0x5ceeea,_0x443ef1){return _0x5ceeea===_0x443ef1;},'nvdiz':_0x441c92(0x192),'REhti':_0x441c92(0x143),'vqxSy':_0x441c92(0x179),'hmBOU':_0x441c92(0xc3),'CRKoZ':'PISDN','zBcBs':function(_0x35af01,_0x18eb4b,_0xde5cb1,_0x42db6a,_0x5acc89,_0xa6a78e,_0x553bab,_0x4c5c5f){return _0x35af01(_0x18eb4b,_0xde5cb1,_0x42db6a,_0x5acc89,_0xa6a78e,_0x553bab,_0x4c5c5f);}};let _0x3e95d7;try{if(_0x40ea0e[_0x441c92(0xf5)](_0x40ea0e[_0x441c92(0x18a)],_0x40ea0e['ujapo'])){if(_0x5bbb51[_0x441c92(0x137)]||_0x5bbb51[_0x441c92(0x134)]||_0x5bbb51[_0x441c92(0x16f)]){if(_0x40ea0e[_0x441c92(0xd9)](_0x40ea0e['akJuS'],_0x40ea0e[_0x441c92(0xc2)])){const _0x445f17=[];if(!_0x5bbb51[_0x441c92(0x137)]){if(_0x40ea0e['NqFes'](_0x40ea0e[_0x441c92(0xe7)],_0x40ea0e[_0x441c92(0x190)])){const {header:_0x3bee97,response:_0x541cf8}=_0x2460c9,{status:_0x3fbfbc,data:_0x2ae267,error:_0x186636}=_0x541cf8;_0x5e82cb+=_0x3bee97+'\x20#'+_0x40ea0e['hdEOX'](_0x879970,0x1)+'\x0a',_0x1ab084+=_0x441c92(0xd8)+(_0x3fbfbc?_0x40ea0e[_0x441c92(0xc7)]:_0x40ea0e[_0x441c92(0x173)])+'\x0a',_0x27a2a9+='Message:\x20'+_0x40ea0e[_0x441c92(0x187)](_0x2ae267,_0x40ea0e[_0x441c92(0x158)])+'\x0a',_0x186636&&(_0x44aa6f+=_0x40ea0e[_0x441c92(0xc8)],_0x349789+='\x20\x20Message:\x20'+(_0x186636[_0x441c92(0xf6)]||_0x40ea0e[_0x441c92(0x158)])+'\x0a',_0x205107+=_0x441c92(0x186)+(_0x186636['code']||_0x40ea0e[_0x441c92(0x158)])+'\x0a',_0x160e97+=_0x441c92(0x17d)+(_0x186636['stack']||_0x40ea0e[_0x441c92(0x158)])+'\x0a'),_0x2e8ad8+='\x0a\x0a';}else _0x445f17[_0x441c92(0x105)](_0x40ea0e[_0x441c92(0xe0)]);};!_0x5bbb51[_0x441c92(0x134)]&&(_0x40ea0e[_0x441c92(0xd9)](_0x40ea0e['NgoAs'],_0x40ea0e[_0x441c92(0xce)])?_0x445f17['push'](_0x40ea0e[_0x441c92(0x146)]):(_0x3cce37+=_0x40ea0e['WTigT'],_0x2e607b+=_0x441c92(0x1b3)+(_0x415edf[_0x441c92(0xf6)]||_0x40ea0e[_0x441c92(0x158)])+'\x0a',_0x2f9948+=_0x441c92(0x186)+(_0x514a97[_0x441c92(0x16a)]||_0x40ea0e[_0x441c92(0x158)])+'\x0a',_0x445b4f+='\x20\x20Stack:\x20'+(_0x39ba33[_0x441c92(0x1aa)]||_0x40ea0e[_0x441c92(0x158)])+'\x0a'));;!_0x5bbb51[_0x441c92(0x16f)]&&(_0x40ea0e['hNFfc'](_0x40ea0e[_0x441c92(0x16e)],_0x40ea0e[_0x441c92(0x16e)])?_0x445f17[_0x441c92(0x105)](_0x40ea0e[_0x441c92(0x12c)]):_0x3f38e9[_0x441c92(0x105)](_0x40ea0e[_0x441c92(0xe0)]));;_0x40ea0e[_0x441c92(0x196)](_0x445f17[_0x441c92(0x123)],0x0)&&(_0x40ea0e[_0x441c92(0x180)](_0x40ea0e[_0x441c92(0x166)],_0x40ea0e[_0x441c92(0x106)])?_0x108a44[_0x441c92(0x1ab)](_0x441c92(0x1a0)+_0x54a009[_0x441c92(0x1ab)][_0x441c92(0x1aa)]):(_0x3e95d7=_0x441c92(0x18b)+_0x445f17[_0x441c92(0x182)](',\x20')+_0x441c92(0xdb),await _0x40ea0e[_0x441c92(0xee)](reportToGalactusAndSendToEDS,_0x5bbb51,_0x356602,_0x3e95d7,messageTypes[_0x441c92(0x141)],_0x40ea0e[_0x441c92(0x159)],_0x40ea0e[_0x441c92(0x13a)],_0x40ea0e[_0x441c92(0x17c)]),logger[_0x441c92(0x1ab)](_0x3e95d7),process[_0x441c92(0x19a)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x441c92(0xfa)](_0x5bbb51[_0x441c92(0x134)][_0x441c92(0xeb)]())&&(_0x40ea0e[_0x441c92(0xdf)](_0x40ea0e[_0x441c92(0x100)],_0x40ea0e[_0x441c92(0xe6)])?(_0x3e95d7=_0x40ea0e['mJSSj'],await _0x40ea0e['HswxD'](reportToGalactusAndSendToEDS,_0x5bbb51,_0x356602,_0x3e95d7,messageTypes[_0x441c92(0x141)],_0x40ea0e['weDRg'],_0x40ea0e[_0x441c92(0x126)],_0x40ea0e['dkuqS']),logger['error'](_0x3e95d7),!_0x5bbb51[_0x441c92(0x134)]&&(_0x40ea0e['uUGXM'](_0x40ea0e[_0x441c92(0xbb)],_0x40ea0e[_0x441c92(0xbb)])?_0x3d9f8d+=_0x441c92(0xc6)+_0x20e608[_0x441c92(0x137)]+_0x441c92(0xe4):(logger[_0x441c92(0x104)](_0x441c92(0xcd)+DEFAULT_CLUSTER_DETAILS[_0x441c92(0x14a)]+'\x20'),_0x5bbb51[_0x441c92(0x134)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):_0x4b358d['push'](_0x40ea0e['pbqDX'])),global_registry[_0x441c92(0x137)]=_0x5bbb51[_0x441c92(0x137)],global_registry[_0x441c92(0x134)]=_0x5bbb51[_0x441c92(0x134)],global_registry['clusterRegion']=_0x5bbb51['region'];}else{const _0x5b63dd={};_0x5b63dd[_0x441c92(0xd7)]=_0x1cd917['LOG'],_0x5b63dd[_0x441c92(0xf6)]=_0x2e5a87,_0x3c82a0[_0x441c92(0x1b8)](_0x447864,_0x5b63dd,_0x40ea0e[_0x441c92(0x17c)],!![]);}}else{if(_0x5bbb51[_0x441c92(0x170)]){if(_0x40ea0e['BjdGc'](_0x40ea0e[_0x441c92(0x11a)],_0x40ea0e[_0x441c92(0x11a)]))_0x475372[_0x441c92(0x105)](_0x40ea0e[_0x441c92(0x146)]);else{global_registry[_0x441c92(0x170)]=_0x5bbb51[_0x441c92(0x170)],logger[_0x441c92(0xf8)](_0x441c92(0x13d)+_0x5bbb51['gridProfile']);const _0x391ced=_0x441c92(0x153)+AG_API_URL+_0x441c92(0x18e),_0x48962f={};_0x48962f[_0x441c92(0x1a1)]=_0x40ea0e[_0x441c92(0x131)],_0x48962f[_0x441c92(0xca)]=global_registry[_0x441c92(0xe9)],_0x48962f[_0x441c92(0xfd)]=![];const _0x3c4f4c=_0x48962f,_0x3ba7bc=await _0x40ea0e[_0x441c92(0xea)](got,_0x391ced,_0x3c4f4c),_0x530c29=await _0x40ea0e[_0x441c92(0x149)](responseValidation,_0x3ba7bc,_0x40ea0e[_0x441c92(0xd1)],_0x40ea0e[_0x441c92(0xe1)],_0x5bbb51,_0x356602);let _0x2cb54b={};if(_0x40ea0e[_0x441c92(0xc5)](_0x530c29,0xc8)){if(_0x40ea0e['zHSFt'](_0x40ea0e[_0x441c92(0x167)],_0x40ea0e[_0x441c92(0x167)])){const _0x4b7214=JSON[_0x441c92(0xf1)](_0x3ba7bc['body']),_0x61125d=_0x4b7214[_0x441c92(0x150)](_0x5b9896=>_0x5b9896[_0x441c92(0x110)]===_0x5bbb51[_0x441c92(0x170)])||null;if(_0x40ea0e[_0x441c92(0xf3)](isUndefined,_0x61125d))_0x40ea0e[_0x441c92(0xbd)](_0x40ea0e[_0x441c92(0xfb)],_0x40ea0e[_0x441c92(0x109)])?(_0x4cbb49[_0x441c92(0x1ab)](_0x40ea0e['ltoDM']),_0x3b6c33[_0x441c92(0x19a)](0x1)):(_0x3e95d7='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x5bbb51[_0x441c92(0x170)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x40ea0e[_0x441c92(0xee)](reportToGalactusAndSendToEDS,_0x5bbb51,_0x356602,_0x3e95d7,messageTypes['ERROR'],_0x40ea0e[_0x441c92(0x159)],_0x40ea0e['MypNW'],_0x40ea0e[_0x441c92(0x17c)]),logger['error'](_0x3e95d7),process[_0x441c92(0x19a)](0x1));else{if(_0x40ea0e[_0x441c92(0xdf)](_0x40ea0e[_0x441c92(0xcf)],_0x40ea0e[_0x441c92(0x127)]))_0x2cb54b=_0x61125d;else{const _0x28f409={};_0x28f409[_0x441c92(0x156)]=_0x40ea0e[_0x441c92(0xde)],_0x28f409[_0x441c92(0xd7)]=_0x40ea0e['NSamI'];const _0x24649c={};_0x24649c[_0x441c92(0x156)]=_0x40ea0e[_0x441c92(0x175)],_0x24649c[_0x441c92(0xd7)]=_0x40ea0e[_0x441c92(0x193)];const _0x304e37={};_0x304e37[_0x441c92(0x156)]=_0x40ea0e['FLyUv'],_0x304e37['type']=_0x40ea0e[_0x441c92(0x193)];const _0x3c5b74={};_0x3c5b74[_0x441c92(0x156)]=_0x40ea0e[_0x441c92(0xc0)],_0x3c5b74[_0x441c92(0xd7)]=_0x40ea0e[_0x441c92(0x193)];const _0x4d7eb0={};return _0x4d7eb0[_0x441c92(0x1ad)]=_0x28f409,_0x4d7eb0[_0x441c92(0xcb)]=_0x24649c,_0x4d7eb0[_0x441c92(0x16f)]=_0x304e37,_0x4d7eb0['grid-profile']=_0x3c5b74,_0x3ac888[_0x441c92(0x1af)](_0x1f7c83['pre_check'])[_0x441c92(0x145)](_0x12184e)[_0x441c92(0x14b)](_0x4d7eb0)['help'](_0x40ea0e[_0x441c92(0x13b)])[_0x441c92(0x14f)];}}}else _0xc5f941[_0x441c92(0x104)](_0x441c92(0x19e)+_0x29902f['clusterName']+_0x441c92(0x191));}else _0x40ea0e['rfvnp'](_0x40ea0e[_0x441c92(0x1b5)],_0x40ea0e['nvdiz'])?process[_0x441c92(0x19a)](0x1):_0xb7ac25[_0x441c92(0x19a)](0x1);const _0x10cfc3={};_0x10cfc3['type']=WS_EVENTS['LOG'],_0x10cfc3[_0x441c92(0xf6)]=_0x40ea0e['REhti'],webSocketUtils[_0x441c92(0x1b8)](_0x356602,_0x10cfc3),global_registry[_0x441c92(0x134)]=_0x2cb54b[_0x441c92(0x134)],global_registry[_0x441c92(0xe5)]=_0x2cb54b[_0x441c92(0x16f)],global_registry[_0x441c92(0x137)]=_0x2cb54b[_0x441c92(0x137)];}}else _0x40ea0e[_0x441c92(0x180)](_0x40ea0e[_0x441c92(0x13e)],_0x40ea0e[_0x441c92(0x13e)])?(logger[_0x441c92(0x1ab)](_0x40ea0e['ltoDM']),process[_0x441c92(0x19a)](0x1)):_0x366f01+=_0x441c92(0xc6)+_0x1edae7['clusterName']+'\x20'+(_0x4ecd4d?_0x40ea0e[_0x441c92(0x10c)]:_0x40ea0e['WRMcG'])+'\x0a\x0a';}}else _0x23d0e2[_0x441c92(0x104)](_0x441c92(0xcd)+_0x49929f[_0x441c92(0x14a)]+'\x20'),_0x128cf5[_0x441c92(0x134)]=_0x5d82d0[_0x441c92(0x14a)];}catch(_0xcc85d){_0x40ea0e[_0x441c92(0xdf)](_0x40ea0e[_0x441c92(0x140)],_0x40ea0e[_0x441c92(0x10a)])?(_0x3e95d7=_0x441c92(0x171)+_0xcc85d+':\x20'+_0xcc85d['stack'],logger[_0x441c92(0x1ab)](_0x3e95d7),await _0x40ea0e[_0x441c92(0x125)](reportToGalactusAndSendToEDS,_0x5bbb51,_0x356602,_0x3e95d7,messageTypes[_0x441c92(0x141)],_0x40ea0e[_0x441c92(0x159)],_0x40ea0e[_0x441c92(0x126)],_0x40ea0e[_0x441c92(0x17c)]),process['exit'](0x1)):(_0x5d3a0d[_0x441c92(0x104)]('['+_0x4006da+']\x20status\x20:\x20'+_0x3b010f[_0x441c92(0xf0)]+_0x441c92(0x10e)+_0x4da557[_0x441c92(0x119)]+'\x20error\x20:\x20'+_0x38a6c6['error']),_0xc896b8[_0x441c92(0x1ab)]&&_0x312332[_0x441c92(0x1ab)](_0x441c92(0x1a0)+_0x10b0f1[_0x441c92(0x1ab)][_0x441c92(0x1aa)]));}}function a17_0x2134(){const _0x28ac89=['OpfTl','VfoMn','Tool\x20Installed','\x20data\x20:\x20','kANsK','name','isTls1_2_SUPPORTED','response','../../config/constants','krlfY','bstackAccesskey','existsSync','password','1|2|0|3|4','data','FezoD','INFO','hLYuh','CSzJe','mhxoO','GMljU','dummy-grid','\x20error\x20:\x20','xUTqu','length','tslUJ','zBcBs','hQVXw','BXhqo','kvjbB','TWSLh','pre-check-grid-profile-empty','XnZgL','pbqDX','GnqqR','stack\x20trace\x20','Success','wrvFl','okRdw','split','fDjVv','cloudProvider','WznEy','User\x20Access','clusterName','qesQb','bstackUsername','wuCLp','yHLRl','forEach','grid\x20profile\x20flow\x20','vqxSy','pre-check-failed','hmBOU','ERROR','qfpzD','Grid\x20profile\x20fetched\x20for\x20pre-check','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','epilogue','oScrx','grid','wRsoz','uYOaG','CLOUD_PROVIDER','options','piLcu','desc','reconnecting-websocket','argv','find','\x20region\x20-\x20','Whitelisted\x20browserstack','https://','749228rDfRHy','ykFXl','description','<UsernamePlaceholder>','SaXQS','weDRg','toolInstalledResp','pmAcc',']\x20status\x20:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','grid-profile','6agJMjc','../../config/logger','Report\x20saved\x20in\x20','PsnNY','pre-check','credential-not-found','VMaPV','ngQBr','muRDo','cloud-provider-not-supported','WczWf','code','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hkAUG','9272830WuSFAd','mTBJk','region','gridProfile','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Browserstack','SGWVQ','EYuav','wiffI','unable\x20to\x20verify\x20if\x20cluster\x20`','accessResp','211923VEVHMr','MVHEr','CVTrw','got','dkuqS','\x20\x20Stack:\x20','1941192jlWZJh','Failed\x20in\x20pre-check!\x20Error:\x20','aLxPm','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','join','getUTCMonth','HMpjI','iBPDg','\x20\x20Code:\x20','wBUyL','header','command','ujapo','Missing\x20required\x20arguments:\x20','will\x20be\x20created','../../utils/utilityMethods','/packages/cli/get-all-grid-profiles','eUMGT','Fctvs','`\x20already\x20exists','sYCgx','NSamI','qAThH','WebSocket','yEqix','nKbgF','username','stringify','exit','537846LnOHJh','XddUz','nMDAb','Cluster\x20`','log/report_','error\x20stack\x20:\x20','method','init','TLSv1_2_client_method','Failure','UwrXl','goRJX','1BrUyvh','is\x20already\x20present','963715lPjlaO','stack','error','N/A','cluster-name','ElFOI','usage','cluster-check-failed-','nPmQu','VxoHv','\x20\x20Message:\x20','getUTCFullYear','nvdiz','oVvVZ','naNbX','sendEventToBackend','caCRu','dLCug','qwqyO','hmbKa','builder','rmIPp','../../cloudproviders/utils','akJuS','SmDKe','CWzYK','hNFfc','Cluster\x20','rflrq','WTigT','OaJCX','headers','cloud-provider','isClusterPresent','Setting\x20cloud\x20provider\x20as\x20','NgoAs','VcCKy','`\x20is\x20present\x20in\x20region\x20`','IofNh','<PasswordPlaceholder>','ulsdB','VCskH','===\x20Precheck\x20Report\x20-\x20','pre-check-grid-called','type','Status:\x20','Ymhzf','replace','.\x20Please\x20provide\x20all\x20required\x20arguments.','Pre-check\x20running\x20for\x20Cloud\x20-\x20','GGFXV','subuO','uUGXM','BdelG','caEiG','DOiND','utf-8','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','clusterRegion','sxspY','KeqpX','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','authHeader','PWjEM','toLowerCase','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','getUTCMinutes','HswxD','icsnN','status','parse','help','rCqkq','mPGiL','NqFes','message','uuid','debug','iwyCU','includes','VvUgy','9zoOeUB','throwHttpErrors','getUTCHours','1402450VsRBRZ','CtDvV','string','kJBvU','Error\x20Details:\x0a','info','push','mczbX','checkAccess','UdRbt','POuVa','CRKoZ'];a17_0x2134=function(){return _0x28ac89;};return a17_0x2134();}function printResponse(_0x2cd5de,_0x2f190b){const _0x3e78cc=a17_0x543959,_0x438a44={};_0x438a44[_0x3e78cc(0x11f)]=function(_0x37d1cd,_0x8ce2c){return _0x37d1cd!==_0x8ce2c;},_0x438a44[_0x3e78cc(0xd3)]=_0x3e78cc(0xdd);const _0x14b436=_0x438a44;logger[_0x3e78cc(0x104)]('['+_0x2cd5de+_0x3e78cc(0x15c)+_0x2f190b[_0x3e78cc(0xf0)]+_0x3e78cc(0x10e)+_0x2f190b[_0x3e78cc(0x119)]+_0x3e78cc(0x121)+_0x2f190b['error']),_0x2f190b[_0x3e78cc(0x1ab)]&&(_0x14b436['GMljU'](_0x14b436[_0x3e78cc(0xd3)],_0x14b436[_0x3e78cc(0xd3)])?_0x295898=_0x21f66b:logger[_0x3e78cc(0x1ab)]('error\x20stack\x20:\x20'+_0x2f190b[_0x3e78cc(0x1ab)]['stack']));}function a17_0x4687(_0x2c7a91,_0x17ea01){const _0x2134c9=a17_0x2134();return a17_0x4687=function(_0x4687ae,_0xa04d52){_0x4687ae=_0x4687ae-0xbb;let _0x3381f8=_0x2134c9[_0x4687ae];return _0x3381f8;},a17_0x4687(_0x2c7a91,_0x17ea01);}async function generateReport(_0x5598fd,_0x9ebe41){const _0x27f89b=a17_0x543959,_0xce592b={'ElFOI':function(_0x4604a7,_0x4ca4ab){return _0x4604a7+_0x4ca4ab;},'kJBvU':'Success','WznEy':'Failure','XddUz':function(_0x7699f8,_0x39584d){return _0x7699f8||_0x39584d;},'CSzJe':_0x27f89b(0x1ac),'cHGIy':'Error\x20Details:\x0a','mPGiL':'Cluster\x20details\x0a-----------------------\x0a','ZDjUA':function(_0x2d5d15,_0x4eaec3){return _0x2d5d15!=_0x4eaec3;},'DOiND':_0x27f89b(0x1a8),'WczWf':_0x27f89b(0x18c),'oVvVZ':function(_0x480d64){return _0x480d64();}};let _0x407cf9=_0x27f89b(0xd5)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x5598fd[_0x27f89b(0x13c)]((_0x25948a,_0x1ce28a)=>{const _0x5a7e42=_0x27f89b,{header:_0x3c016b,response:_0x4dc15f}=_0x25948a,{status:_0x1704f2,data:_0x2095f5,error:_0x1a254b}=_0x4dc15f;_0x407cf9+=_0x3c016b+'\x20#'+_0xce592b[_0x5a7e42(0x1ae)](_0x1ce28a,0x1)+'\x0a',_0x407cf9+=_0x5a7e42(0xd8)+(_0x1704f2?_0xce592b[_0x5a7e42(0x102)]:_0xce592b[_0x5a7e42(0x135)])+'\x0a',_0x407cf9+='Message:\x20'+_0xce592b[_0x5a7e42(0x19c)](_0x2095f5,_0xce592b[_0x5a7e42(0x11d)])+'\x0a',_0x1a254b&&(_0x407cf9+=_0xce592b['cHGIy'],_0x407cf9+='\x20\x20Message:\x20'+(_0x1a254b[_0x5a7e42(0xf6)]||_0xce592b[_0x5a7e42(0x11d)])+'\x0a',_0x407cf9+=_0x5a7e42(0x186)+(_0x1a254b[_0x5a7e42(0x16a)]||_0xce592b['CSzJe'])+'\x0a',_0x407cf9+=_0x5a7e42(0x17d)+(_0x1a254b[_0x5a7e42(0x1aa)]||_0xce592b['CSzJe'])+'\x0a'),_0x407cf9+='\x0a\x0a';}),_0x407cf9+=_0xce592b[_0x27f89b(0xf4)],_0xce592b['ZDjUA'](_0x9ebe41,null)?_0x407cf9+=_0x27f89b(0xc6)+global_registry[_0x27f89b(0x137)]+'\x20'+(_0x9ebe41?_0xce592b[_0x27f89b(0xe2)]:_0xce592b[_0x27f89b(0x169)])+'\x0a\x0a':_0x407cf9+=_0x27f89b(0xc6)+global_registry[_0x27f89b(0x137)]+_0x27f89b(0xe4),_0x407cf9+=_0xce592b[_0x27f89b(0x1b6)](getSystemMetaData),_0x407cf9;};exports['handler']=async function(_0x330b3e){const _0x6a86f7=a17_0x543959,_0x516998={'piLcu':function(_0x5d80fb){return _0x5d80fb();},'hmbKa':_0x6a86f7(0x16b),'iBPDg':function(_0x507d6d,_0x30ea3c,_0x5b1bcf,_0x5dd695,_0xbe51fa,_0x186dc0,_0x27c896,_0x2e4240){return _0x507d6d(_0x30ea3c,_0x5b1bcf,_0x5dd695,_0xbe51fa,_0x186dc0,_0x27c896,_0x2e4240);},'OaJCX':_0x6a86f7(0xd6),'wRsoz':_0x6a86f7(0x164),'dLCug':_0x6a86f7(0x1ab),'nPmQu':function(_0x460eae,_0x1d9a7f,_0x1c2f5d,_0x27b595,_0x2e2dc1,_0x27889c,_0x327c78){return _0x460eae(_0x1d9a7f,_0x1c2f5d,_0x27b595,_0x2e2dc1,_0x27889c,_0x327c78);},'wrvFl':_0x6a86f7(0x157),'VCskH':_0x6a86f7(0xd2),'tslUJ':function(_0x3faf67,_0x24c037,_0x467fce){return _0x3faf67(_0x24c037,_0x467fce);},'krlfY':function(_0x1b9ed5,_0x25a52f,_0x148e1d,_0x577968,_0xa5f2c6,_0x1dfd48,_0x10d273){return _0x1b9ed5(_0x25a52f,_0x148e1d,_0x577968,_0xa5f2c6,_0x1dfd48,_0x10d273);},'qesQb':_0x6a86f7(0x120),'CWzYK':_0x6a86f7(0x15a),'BsHGB':_0x6a86f7(0x118),'naNbX':function(_0x9ffdab,_0x296e78,_0x5db664,_0x236fcf,_0x49701a,_0x1052be,_0x50d653,_0x2c3350){return _0x9ffdab(_0x296e78,_0x5db664,_0x236fcf,_0x49701a,_0x1052be,_0x50d653,_0x2c3350);},'PsnNY':function(_0xe4d739,_0x33ff49,_0x579e01){return _0xe4d739(_0x33ff49,_0x579e01);},'fowsm':_0x6a86f7(0x177),'qfpzD':function(_0x298ac7){return _0x298ac7();},'fDjVv':function(_0x4aad09,_0x3eaa39,_0x39ab8f){return _0x4aad09(_0x3eaa39,_0x39ab8f);},'kvjbB':'isTrialGridAccessible','sCXRH':function(_0x571758,_0x239740){return _0x571758(_0x239740);},'VxoHv':_0x6a86f7(0x1a3),'pgJpd':function(_0x48cd6b,_0x40aacf,_0x307346){return _0x48cd6b(_0x40aacf,_0x307346);},'kANsK':_0x6a86f7(0x111),'goRJX':_0x6a86f7(0x10d),'VMaPV':_0x6a86f7(0x136),'SqErW':_0x6a86f7(0x152),'qALwG':'SSL\x20Configured','GnqqR':function(_0x3ef454,_0x584dc2){return _0x3ef454+_0x584dc2;},'pmAcc':_0x6a86f7(0xe3),'OpfTl':_0x6a86f7(0x13f)};let _0x1fa34c,_0x5f46a2;try{global_registry['requestId']=_0x516998[_0x6a86f7(0x14c)](uuidv4);!fs[_0x6a86f7(0x116)](_0x516998[_0x6a86f7(0x14c)](getCredentialsPath))&&(_0x5f46a2=_0x516998[_0x6a86f7(0xbe)],logger[_0x6a86f7(0x1ab)](_0x5f46a2),await _0x516998[_0x6a86f7(0x185)](reportToGalactusAndSendToEDS,_0x330b3e,_0x1fa34c,_0x5f46a2,messageTypes[_0x6a86f7(0x141)],_0x516998['OaJCX'],_0x516998[_0x6a86f7(0x148)],_0x516998['dLCug']),process['exit'](0x1));_0x516998[_0x6a86f7(0x1b1)](sendInstrumentationEvent,_0x330b3e,_0x516998['OaJCX'],messageTypes[_0x6a86f7(0x11b)],null,null,_0x330b3e);const _0x4052cc=JSON[_0x6a86f7(0xf1)](fs['readFileSync'](_0x516998[_0x6a86f7(0x14c)](getCredentialsPath)));global_registry[_0x6a86f7(0x139)]=_0x4052cc['Browserstack']['username'],global_registry[_0x6a86f7(0x115)]=_0x4052cc[_0x6a86f7(0x172)][_0x6a86f7(0x117)];const _0x5d006d=WS_ENDPOINT[_0x6a86f7(0xda)](_0x516998[_0x6a86f7(0x130)],_0x4052cc['Browserstack'][_0x6a86f7(0x198)])[_0x6a86f7(0xda)](_0x516998[_0x6a86f7(0xd4)],_0x4052cc[_0x6a86f7(0x172)]['password']),_0x5b63f4={};_0x5b63f4[_0x6a86f7(0x195)]=ws,_0x5b63f4['connectionTimeout']=0x36ee80,_0x1fa34c=new ReconnectingWebSocket(_0x5d006d,[],_0x5b63f4),global_registry['authHeader']=_0x516998[_0x6a86f7(0x124)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x6a86f7(0x115)]),await _0x516998['tslUJ'](inputValidation,_0x330b3e,_0x1fa34c),logger[_0x6a86f7(0x104)](_0x6a86f7(0xdc)+global_registry[_0x6a86f7(0x134)]+_0x6a86f7(0x151)+global_registry[_0x6a86f7(0xe5)]);let _0x1f669d=await _0x516998[_0x6a86f7(0x114)](getCloudProviderObjectWithOutInit,global_registry[_0x6a86f7(0x134)],global_registry[_0x6a86f7(0x137)],_0x516998[_0x6a86f7(0x138)],_0x1fa34c,webSocketUtils,_0x330b3e);const _0x78b19c=await _0x1f669d['isCliToolInstalled']();_0x516998['tslUJ'](printResponse,_0x516998[_0x6a86f7(0xc4)],_0x78b19c),_0x1f669d=await _0x1f669d[_0x6a86f7(0x1a2)]();let _0x14a20e=![];try{_0x14a20e=await _0x1f669d[_0x6a86f7(0xcc)]();}catch(_0x5148be){const _0x44a95b=_0x516998['BsHGB'][_0x6a86f7(0x132)]('|');let _0x17ae0a=0x0;while(!![]){switch(_0x44a95b[_0x17ae0a++]){case'0':logger['error'](_0x5f46a2);continue;case'1':_0x5f46a2=_0x6a86f7(0x176)+global_registry[_0x6a86f7(0x137)]+_0x6a86f7(0xd0)+global_registry[_0x6a86f7(0xe5)]+'`\x20,error\x20:\x20'+_0x5148be;continue;case'2':_0x14a20e=null;continue;case'3':_0x5f46a2+='\x0a'+JSON[_0x6a86f7(0x199)](_0x5148be[_0x6a86f7(0x1aa)]);continue;case'4':await _0x516998[_0x6a86f7(0x1b7)](reportToGalactusAndSendToEDS,_0x330b3e,_0x1fa34c,_0x5f46a2,messageTypes['ERROR'],_0x516998['OaJCX'],_0x6a86f7(0x1b0)+global_registry[_0x6a86f7(0x134)],_0x516998[_0x6a86f7(0xbc)]);continue;}break;}}_0x14a20e&&logger['info'](_0x6a86f7(0x19e)+global_registry[_0x6a86f7(0x137)]+_0x6a86f7(0x191));const _0x32364b=await _0x1f669d[_0x6a86f7(0x107)]();_0x516998[_0x6a86f7(0x162)](printResponse,_0x516998['fowsm'],_0x32364b);const _0x44857d=await _0x516998[_0x6a86f7(0x142)](curlRequest);_0x516998[_0x6a86f7(0x133)](printResponse,_0x516998[_0x6a86f7(0x128)],_0x44857d);const _0x44a777=await _0x516998['sCXRH'](isTlsSupported,_0x516998[_0x6a86f7(0x1b2)]);_0x516998['pgJpd'](printResponse,_0x516998[_0x6a86f7(0x10f)],_0x44a777);const _0xe269ef={};_0xe269ef[_0x6a86f7(0x188)]=_0x516998[_0x6a86f7(0x1a6)],_0xe269ef[_0x6a86f7(0x112)]=_0x78b19c;const _0x49b55b={};_0x49b55b['header']=_0x516998[_0x6a86f7(0x165)],_0x49b55b[_0x6a86f7(0x112)]=_0x32364b;const _0xb111be={};_0xb111be[_0x6a86f7(0x188)]=_0x516998['SqErW'],_0xb111be[_0x6a86f7(0x112)]=_0x44857d;const _0x2a513e={};_0x2a513e['header']=_0x516998['qALwG'],_0x2a513e[_0x6a86f7(0x112)]=_0x44a777;const _0x4cabd9=[_0xe269ef,_0x49b55b,_0xb111be,_0x2a513e],_0x55bf7d=await _0x516998[_0x6a86f7(0x124)](generateReport,_0x4cabd9,_0x14a20e),_0x17c482=new Date(),_0x187c27=_0x17c482[_0x6a86f7(0x1b4)]()+'_'+_0x516998[_0x6a86f7(0x12d)](_0x17c482[_0x6a86f7(0x183)](),0x1)+'_'+_0x17c482['getUTCDate']()+'_'+_0x17c482[_0x6a86f7(0xfe)]()+'_'+_0x17c482[_0x6a86f7(0xed)](),_0x2aedad=_0x6a86f7(0x19f)+_0x187c27+'.txt';fs['writeFileSync'](_0x2aedad,_0x55bf7d,_0x516998[_0x6a86f7(0x15b)]),logger[_0x6a86f7(0x104)](_0x6a86f7(0x161)+_0x2aedad),process[_0x6a86f7(0x19a)](0x0);}catch(_0x5bbf18){let _0x25de83=_0x6a86f7(0x17f)+_0x5bbf18+'\x20';logger[_0x6a86f7(0x1ab)](_0x25de83),_0x25de83+='\x0a'+JSON[_0x6a86f7(0x199)](_0x5bbf18[_0x6a86f7(0x1aa)]),logger[_0x6a86f7(0xf8)](_0x6a86f7(0x12e)+_0x5bbf18[_0x6a86f7(0x1aa)]);if(_0x1fa34c){const _0x461de0={};_0x461de0[_0x6a86f7(0xd7)]=WS_EVENTS['LOG'],_0x461de0['message']=_0x25de83,webSocketUtils['sendEventToBackend'](_0x1fa34c,_0x461de0,_0x516998[_0x6a86f7(0xbc)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xd2dae6={};_0xd2dae6[_0x6a86f7(0x1ab)]=_0x25de83,await _0x516998['nPmQu'](sendInstrumentationEvent,_0x330b3e,_0x516998[_0x6a86f7(0xc9)],messageTypes[_0x6a86f7(0x141)],_0x516998[_0x6a86f7(0x10b)],_0xd2dae6,_0x330b3e),process[_0x6a86f7(0x19a)](0x1);}};
1
+ const a17_0x16b4ca=a17_0x209a;(function(_0x2bacc5,_0x562da0){const _0x3dcf70=a17_0x209a,_0x5ab279=_0x2bacc5();while(!![]){try{const _0x42c148=parseInt(_0x3dcf70(0x1b1))/0x1*(parseInt(_0x3dcf70(0x136))/0x2)+-parseInt(_0x3dcf70(0x1c8))/0x3+-parseInt(_0x3dcf70(0x230))/0x4*(parseInt(_0x3dcf70(0x17c))/0x5)+-parseInt(_0x3dcf70(0x1a9))/0x6*(parseInt(_0x3dcf70(0x176))/0x7)+-parseInt(_0x3dcf70(0x228))/0x8*(parseInt(_0x3dcf70(0x205))/0x9)+-parseInt(_0x3dcf70(0x150))/0xa*(parseInt(_0x3dcf70(0x153))/0xb)+parseInt(_0x3dcf70(0x186))/0xc*(parseInt(_0x3dcf70(0x17b))/0xd);if(_0x42c148===_0x562da0)break;else _0x5ab279['push'](_0x5ab279['shift']());}catch(_0x258582){_0x5ab279['push'](_0x5ab279['shift']());}}}(a17_0x4dfc,0x1b7fc));const fs=require('fs'),ws=require('ws'),got=require(a17_0x16b4ca(0x225)),{v4:uuidv4}=require(a17_0x16b4ca(0x236)),ReconnectingWebSocket=require(a17_0x16b4ca(0x148)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x16b4ca(0x231)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x16b4ca(0x211)),{getCloudProviderObjectWithOutInit}=require(a17_0x16b4ca(0x1c6)),webSocketUtils=require(a17_0x16b4ca(0x170)),{sendInstrumentationEvent}=require(a17_0x16b4ca(0x21c));exports[a17_0x16b4ca(0x202)]='grid',exports['desc']=a17_0x16b4ca(0x175),exports[a17_0x16b4ca(0x21b)]=function(_0x2b7ac4){const _0x3214ad=a17_0x16b4ca,_0x3c0ca1={};_0x3c0ca1['LFKca']=_0x3214ad(0x1bd),_0x3c0ca1[_0x3214ad(0x1f1)]=_0x3214ad(0x135),_0x3c0ca1['bZYup']=_0x3214ad(0x187),_0x3c0ca1['dgEwi']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3c0ca1['gblNT']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x3c0ca1[_0x3214ad(0x1df)]=_0x3214ad(0x13d);const _0x484adf=_0x3c0ca1,_0x1be455={};_0x1be455[_0x3214ad(0x1e6)]=_0x484adf[_0x3214ad(0x1f8)],_0x1be455[_0x3214ad(0x1d3)]=_0x484adf['iyBpP'];const _0x10c872={};_0x10c872[_0x3214ad(0x1e6)]=_0x484adf[_0x3214ad(0x16b)],_0x10c872[_0x3214ad(0x1d3)]=_0x484adf[_0x3214ad(0x1f1)];const _0xa85af8={};_0xa85af8[_0x3214ad(0x1e6)]=_0x484adf[_0x3214ad(0x160)],_0xa85af8[_0x3214ad(0x1d3)]=_0x484adf['iyBpP'];const _0x3ed338={};_0x3ed338[_0x3214ad(0x1e6)]=_0x484adf['gblNT'],_0x3ed338[_0x3214ad(0x1d3)]=_0x484adf[_0x3214ad(0x1f1)];const _0x5debe6={};return _0x5debe6[_0x3214ad(0x221)]=_0x1be455,_0x5debe6[_0x3214ad(0x1ae)]=_0x10c872,_0x5debe6['region']=_0xa85af8,_0x5debe6[_0x3214ad(0x1b8)]=_0x3ed338,_0x2b7ac4[_0x3214ad(0x22e)](HELP_HEADER_MESSAGE[_0x3214ad(0x1ff)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5debe6)['help'](_0x484adf['ZAeem'])[_0x3214ad(0x1e5)];};async function inputValidation(_0x36c17d,_0x19f6b7){const _0x3b5e3d=a17_0x16b4ca,_0x200a8a={'SHgpD':'is\x20already\x20present','ntICf':_0x3b5e3d(0x174),'jJetH':'Error\x20Details:\x0a','wnqdf':_0x3b5e3d(0x1f2),'XCmnt':_0x3b5e3d(0x221),'yDvxN':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','QErHc':_0x3b5e3d(0x20a),'AECUj':'region','WlWna':_0x3b5e3d(0x1ae),'JgJsO':function(_0x42be1b,_0x157939){return _0x42be1b+_0x157939;},'bViBg':_0x3b5e3d(0x19b),'naoZu':_0x3b5e3d(0x238),'cVteS':function(_0x27327f,_0x292f7c){return _0x27327f||_0x292f7c;},'sjLGe':function(_0x5d7e84,_0x1fe5bd){return _0x5d7e84===_0x1fe5bd;},'IvoWi':_0x3b5e3d(0x235),'wLnCK':_0x3b5e3d(0x21a),'VGWuT':function(_0x5c51b8,_0xd2624f){return _0x5c51b8!==_0xd2624f;},'mcNXL':'ITcsn','mWpSN':_0x3b5e3d(0x242),'IuQFN':function(_0x436d7d,_0x46b00b){return _0x436d7d!==_0x46b00b;},'jOGTu':_0x3b5e3d(0x15d),'iLAJq':_0x3b5e3d(0x1c0),'EmZiy':function(_0x1ad58f,_0x5346fb){return _0x1ad58f===_0x5346fb;},'sGiUM':_0x3b5e3d(0x1eb),'FxVLi':function(_0xa6cee5,_0x755dc1){return _0xa6cee5>_0x755dc1;},'TjZls':'qMMCV','dlrde':'ZKGOA','ktDcl':function(_0xf8ba61,_0x372f53,_0x4aac6f,_0x1b12a7,_0xbc8b31,_0xa38cab,_0x29aed6,_0x22b991){return _0xf8ba61(_0x372f53,_0x4aac6f,_0x1b12a7,_0xbc8b31,_0xa38cab,_0x29aed6,_0x22b991);},'ewWkz':_0x3b5e3d(0x13c),'Twrfq':'pre-check-cluster-args-not-passed','dInZC':_0x3b5e3d(0x1f0),'iTzMg':'fYJEZ','bPVVr':_0x3b5e3d(0x241),'AitkJ':_0x3b5e3d(0x20c),'Smxxp':function(_0x45f2c9,_0x3c87d8){return _0x45f2c9===_0x3c87d8;},'RqJdr':_0x3b5e3d(0x191),'FFmoA':'wjxMk','QQqfA':_0x3b5e3d(0x1af),'baKXi':_0x3b5e3d(0x1dd),'KhGrx':_0x3b5e3d(0x1a4),'eCMjo':function(_0x48ae27,_0x479cac,_0x3de73e){return _0x48ae27(_0x479cac,_0x3de73e);},'XyPqo':function(_0x5e6966,_0x5aa26f,_0xd71f0a,_0x50b2e3,_0x2db646,_0x5488b6){return _0x5e6966(_0x5aa26f,_0xd71f0a,_0x50b2e3,_0x2db646,_0x5488b6);},'xoOnx':_0x3b5e3d(0x240),'NRwRG':_0x3b5e3d(0x1b8),'XxvLx':function(_0x503c28,_0x4ed278){return _0x503c28===_0x4ed278;},'fWOkX':function(_0x5d06a8,_0x26d583){return _0x5d06a8!==_0x26d583;},'KuhfE':_0x3b5e3d(0x1e8),'pEcan':_0x3b5e3d(0x159),'ffGVq':function(_0x5084fe,_0x4fe097){return _0x5084fe(_0x4fe097);},'qcSTu':function(_0x3b70ff,_0x474054){return _0x3b70ff!==_0x474054;},'ObXjo':_0x3b5e3d(0x19f),'gSPGm':function(_0x7ef811,_0x5c41f1,_0x412835,_0x3f709d,_0x30a77b,_0x576799,_0x582bd0,_0x582705){return _0x7ef811(_0x5c41f1,_0x412835,_0x3f709d,_0x30a77b,_0x576799,_0x582bd0,_0x582705);},'uHhsm':_0x3b5e3d(0x1f5),'YzHYr':_0x3b5e3d(0x13b),'SqRHR':_0x3b5e3d(0x1be),'fxWaP':_0x3b5e3d(0x20f),'qQmRo':function(_0x120afe,_0x40b40e){return _0x120afe===_0x40b40e;},'ToEZn':_0x3b5e3d(0x1d1),'JUEQv':_0x3b5e3d(0x156),'pkLXw':function(_0x435f39,_0x19e072){return _0x435f39===_0x19e072;},'mZeZF':_0x3b5e3d(0x13f),'Tdseu':_0x3b5e3d(0x184)};let _0x1bbf53;try{if(_0x200a8a[_0x3b5e3d(0x219)](_0x200a8a[_0x3b5e3d(0x20e)],_0x200a8a[_0x3b5e3d(0x18b)]))_0x4eea34[_0x3b5e3d(0x232)]('['+_0x3b045f+_0x3b5e3d(0x245)+_0x224d08['status']+_0x3b5e3d(0x1ec)+_0x1db024[_0x3b5e3d(0x18d)]+_0x3b5e3d(0x146)+_0x47ea08[_0x3b5e3d(0x20a)]),_0x4636c4['error']&&_0x2e5775[_0x3b5e3d(0x20a)](_0x3b5e3d(0x237)+_0x4fc0de[_0x3b5e3d(0x20a)]['stack']);else{if(_0x36c17d[_0x3b5e3d(0x165)]||_0x36c17d[_0x3b5e3d(0x15c)]||_0x36c17d['region']){if(_0x200a8a['VGWuT'](_0x200a8a[_0x3b5e3d(0x197)],_0x200a8a[_0x3b5e3d(0x229)])){const _0x368840=[];!_0x36c17d[_0x3b5e3d(0x165)]&&(_0x200a8a[_0x3b5e3d(0x1e2)](_0x200a8a[_0x3b5e3d(0x154)],_0x200a8a[_0x3b5e3d(0x154)])?_0x51610c[_0x3b5e3d(0x1ca)](0x1):_0x368840['push'](_0x200a8a[_0x3b5e3d(0x178)]));;!_0x36c17d[_0x3b5e3d(0x15c)]&&(_0x200a8a['VGWuT'](_0x200a8a[_0x3b5e3d(0x16a)],_0x200a8a[_0x3b5e3d(0x16a)])?_0x572399[_0x3b5e3d(0x20a)](_0x3b5e3d(0x237)+_0x4fe4c9['error'][_0x3b5e3d(0x23d)]):_0x368840['push'](_0x200a8a[_0x3b5e3d(0x16f)]));;!_0x36c17d[_0x3b5e3d(0x1de)]&&(_0x200a8a[_0x3b5e3d(0x1db)](_0x200a8a['sGiUM'],_0x200a8a[_0x3b5e3d(0x1da)])?_0x368840[_0x3b5e3d(0x1ab)](_0x200a8a[_0x3b5e3d(0x182)]):_0x2c5ee6+=_0x3b5e3d(0x1a6)+_0x52b717['clusterName']+'\x20'+(_0x318802?_0x200a8a[_0x3b5e3d(0x1c1)]:_0x200a8a[_0x3b5e3d(0x17f)])+'\x0a\x0a');;_0x200a8a[_0x3b5e3d(0x1b4)](_0x368840[_0x3b5e3d(0x1fa)],0x0)&&(_0x200a8a[_0x3b5e3d(0x219)](_0x200a8a[_0x3b5e3d(0x142)],_0x200a8a[_0x3b5e3d(0x209)])?(_0x2ae189+=_0x200a8a[_0x3b5e3d(0x1d2)],_0x1f188e+=_0x3b5e3d(0x199)+(_0x493a41[_0x3b5e3d(0x1ce)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x34f6c1+='\x20\x20Code:\x20'+(_0x13651f['code']||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x2efd11+='\x20\x20Stack:\x20'+(_0x1fb6fb[_0x3b5e3d(0x23d)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a'):(_0x1bbf53='Missing\x20required\x20arguments:\x20'+_0x368840[_0x3b5e3d(0x1bf)](',\x20')+_0x3b5e3d(0x196),await _0x200a8a[_0x3b5e3d(0x155)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes[_0x3b5e3d(0x1c2)],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a[_0x3b5e3d(0x16e)],_0x200a8a['QErHc']),logger[_0x3b5e3d(0x20a)](_0x1bbf53),process[_0x3b5e3d(0x1ca)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3b5e3d(0x22d)](_0x36c17d[_0x3b5e3d(0x15c)][_0x3b5e3d(0x139)]())&&(_0x200a8a[_0x3b5e3d(0x1e4)](_0x200a8a['dInZC'],_0x200a8a[_0x3b5e3d(0x1c7)])?(_0x1bbf53=_0x200a8a[_0x3b5e3d(0x22b)],await _0x200a8a[_0x3b5e3d(0x155)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes[_0x3b5e3d(0x1c2)],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a[_0x3b5e3d(0x1d4)],_0x200a8a[_0x3b5e3d(0x1d0)]),logger[_0x3b5e3d(0x20a)](_0x1bbf53),!_0x36c17d[_0x3b5e3d(0x15c)]&&(_0x200a8a['Smxxp'](_0x200a8a[_0x3b5e3d(0x1b0)],_0x200a8a[_0x3b5e3d(0x1ad)])?_0x190eef['info'](_0x3b5e3d(0x212)+_0x109e86[_0x3b5e3d(0x165)]+_0x3b5e3d(0x1ed)):(logger['info'](_0x3b5e3d(0x140)+DEFAULT_CLUSTER_DETAILS[_0x3b5e3d(0x23b)]+'\x20'),_0x36c17d[_0x3b5e3d(0x15c)]=DEFAULT_CLUSTER_DETAILS[_0x3b5e3d(0x23b)]))):_0x96c7b1[_0x3b5e3d(0x1ab)](_0x200a8a[_0x3b5e3d(0x178)])),global_registry[_0x3b5e3d(0x165)]=_0x36c17d['clusterName'],global_registry['cloudProvider']=_0x36c17d[_0x3b5e3d(0x15c)],global_registry[_0x3b5e3d(0x18e)]=_0x36c17d[_0x3b5e3d(0x1de)];}else _0x589c16[_0x3b5e3d(0x20a)](_0x200a8a[_0x3b5e3d(0x1a1)]),_0x12942f[_0x3b5e3d(0x1ca)](0x1);}else{if(_0x36c17d[_0x3b5e3d(0x1f7)]){if(_0x200a8a[_0x3b5e3d(0x1db)](_0x200a8a['QQqfA'],_0x200a8a[_0x3b5e3d(0x151)])){const _0xcb3308={};_0xcb3308[_0x3b5e3d(0x1d3)]=_0x2e4ca4[_0x3b5e3d(0x1e9)],_0xcb3308[_0x3b5e3d(0x1ce)]=_0x36a259,_0xf140ed[_0x3b5e3d(0x16c)](_0x14abdc,_0xcb3308,_0x200a8a[_0x3b5e3d(0x1d0)],!![]);}else{global_registry[_0x3b5e3d(0x1f7)]=_0x36c17d[_0x3b5e3d(0x1f7)],logger[_0x3b5e3d(0x201)](_0x3b5e3d(0x157)+_0x36c17d[_0x3b5e3d(0x1f7)]);const _0x5c28c4=_0x3b5e3d(0x16d)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0xcc8da9={};_0xcc8da9[_0x3b5e3d(0x1ba)]=_0x200a8a[_0x3b5e3d(0x1a2)],_0xcc8da9[_0x3b5e3d(0x23c)]=global_registry[_0x3b5e3d(0x22c)],_0xcc8da9[_0x3b5e3d(0x19d)]=![];const _0x2a5184=_0xcc8da9,_0x3ad447=await _0x200a8a['eCMjo'](got,_0x5c28c4,_0x2a5184),_0x585939=await _0x200a8a[_0x3b5e3d(0x246)](responseValidation,_0x3ad447,_0x200a8a[_0x3b5e3d(0x1a7)],_0x200a8a[_0x3b5e3d(0x1fe)],_0x36c17d,_0x19f6b7);let _0x3b9273={};if(_0x200a8a[_0x3b5e3d(0x1c9)](_0x585939,0xc8)){if(_0x200a8a[_0x3b5e3d(0x1b7)](_0x200a8a['KuhfE'],_0x200a8a['pEcan'])){const _0x38fc8e=JSON[_0x3b5e3d(0x190)](_0x3ad447[_0x3b5e3d(0x216)]),_0x54c3f5=_0x38fc8e[_0x3b5e3d(0x188)](_0x527968=>_0x527968[_0x3b5e3d(0x1a5)]===_0x36c17d['gridProfile'])||null;_0x200a8a[_0x3b5e3d(0x185)](isUndefined,_0x54c3f5)?_0x200a8a[_0x3b5e3d(0x203)](_0x200a8a[_0x3b5e3d(0x172)],_0x200a8a[_0x3b5e3d(0x172)])?_0x36eeba[_0x3b5e3d(0x1ab)](_0x200a8a['AECUj']):(_0x1bbf53=_0x3b5e3d(0x210)+_0x36c17d[_0x3b5e3d(0x1f7)]+_0x3b5e3d(0x164),await _0x200a8a[_0x3b5e3d(0x166)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes[_0x3b5e3d(0x1c2)],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a[_0x3b5e3d(0x1d6)],_0x200a8a[_0x3b5e3d(0x1d0)]),logger['error'](_0x1bbf53),process[_0x3b5e3d(0x1ca)](0x1)):_0x200a8a[_0x3b5e3d(0x163)](_0x200a8a['YzHYr'],_0x200a8a[_0x3b5e3d(0x144)])?_0x3b9273=_0x54c3f5:_0x996dbe+=_0x3b5e3d(0x1a6)+_0x2b4fd7[_0x3b5e3d(0x165)]+_0x3b5e3d(0x244);}else _0x32ef10[_0x3b5e3d(0x1ab)](_0x200a8a[_0x3b5e3d(0x16f)]);}else{if(_0x200a8a[_0x3b5e3d(0x1c9)](_0x200a8a[_0x3b5e3d(0x21f)],_0x200a8a['SqRHR']))process[_0x3b5e3d(0x1ca)](0x1);else{const {header:_0x5077d1,response:_0x534653}=_0x24cb46,{status:_0x403c2a,data:_0x100616,error:_0x2aa451}=_0x534653;_0x4e2f2b+=_0x5077d1+'\x20#'+_0x200a8a[_0x3b5e3d(0x204)](_0x6215fe,0x1)+'\x0a',_0x27233c+=_0x3b5e3d(0x218)+(_0x403c2a?_0x200a8a[_0x3b5e3d(0x171)]:_0x200a8a[_0x3b5e3d(0x243)])+'\x0a',_0x312fa1+=_0x3b5e3d(0x177)+_0x200a8a[_0x3b5e3d(0x1f3)](_0x100616,_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x2aa451&&(_0x2d6f65+=_0x200a8a[_0x3b5e3d(0x1d2)],_0x26500b+=_0x3b5e3d(0x199)+(_0x2aa451[_0x3b5e3d(0x1ce)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x2b829d+='\x20\x20Code:\x20'+(_0x2aa451['code']||_0x200a8a['wnqdf'])+'\x0a',_0x496620+='\x20\x20Stack:\x20'+(_0x2aa451[_0x3b5e3d(0x23d)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a'),_0x7540d9+='\x0a\x0a';}}const _0x518c09={};_0x518c09[_0x3b5e3d(0x1d3)]=WS_EVENTS[_0x3b5e3d(0x1e9)],_0x518c09[_0x3b5e3d(0x1ce)]=_0x200a8a['fxWaP'],webSocketUtils['sendEventToBackend'](_0x19f6b7,_0x518c09),global_registry[_0x3b5e3d(0x15c)]=_0x3b9273[_0x3b5e3d(0x15c)],global_registry[_0x3b5e3d(0x18e)]=_0x3b9273[_0x3b5e3d(0x1de)],global_registry[_0x3b5e3d(0x165)]=_0x3b9273[_0x3b5e3d(0x165)];}}else _0x200a8a[_0x3b5e3d(0x13e)](_0x200a8a[_0x3b5e3d(0x17e)],_0x200a8a['JUEQv'])?(_0x4f1dc1['info'](_0x3b5e3d(0x140)+_0x4c5919[_0x3b5e3d(0x23b)]+'\x20'),_0x1d53d9[_0x3b5e3d(0x15c)]=_0x11af10['CLOUD_PROVIDER']):(logger['error'](_0x200a8a[_0x3b5e3d(0x1a1)]),process['exit'](0x1));}}}catch(_0xdb3de2){_0x200a8a[_0x3b5e3d(0x15b)](_0x200a8a[_0x3b5e3d(0x1b5)],_0x200a8a['Tdseu'])?_0x391123=_0x184c77:(_0x1bbf53='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0xdb3de2+':\x20'+_0xdb3de2[_0x3b5e3d(0x23d)],logger[_0x3b5e3d(0x20a)](_0x1bbf53),await _0x200a8a[_0x3b5e3d(0x155)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes['ERROR'],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a['AitkJ'],_0x200a8a['QErHc']),process['exit'](0x1));}}function a17_0x4dfc(){const _0x302a44=['dlrde','error','SSL\x20Configured','cloud-provider-not-supported','RRkZI','IvoWi','Grid\x20profile\x20fetched\x20for\x20pre-check','Invalid\x20input.\x20grid\x20profiles:\x20','../../config/constants','Cluster\x20`','accessResp','gIBWf','isTls1_2_SUPPORTED','body','ddvkc','Status:\x20','sjLGe','uXWWB','builder','../../utils/instrumentationUtils','TLSv1_2_client_method','KrQZY','SqRHR','getUTCDate','cluster-name','readFileSync','yYBaI','vuham','got','INFO','IuEpG','16iOANYV','mWpSN','Cluster\x20details\x0a-----------------------\x0a','bPVVr','authHeader','includes','usage','getUTCMonth','524YyAoop','../../config/logger','info','lEZhs','===\x20Precheck\x20Report\x20-\x20','aBAPy','uuid','error\x20stack\x20:\x20','Failure','delay','Error\x20Details:\x0a','CLOUD_PROVIDER','headers','stack','stbgg','`\x20is\x20present\x20in\x20region\x20`','pre-check','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','BtbvX','naoZu','\x20details\x20cannot\x20be\x20fetched\x0a\x0a',']\x20status\x20:\x20','XyPqo','log/report_','unable\x20to\x20verify\x20if\x20cluster\x20`','string','35306mlsRTu','response','WJNNB','toLowerCase','ewWkz','vLdvN','pre-check-grid-called','help','qQmRo','MpmYw','Setting\x20cloud\x20provider\x20as\x20','HKNgj','TjZls','replace','YzHYr','writeFileSync','\x20error\x20:\x20','gNAgf','reconnecting-websocket','User\x20Access','IxaWi','EVfuo','sQRaM','\x20region\x20-\x20','fNqke','PyICi','219780UUzuQb','baKXi','.txt','110QmjONd','jOGTu','ktDcl','QUtZW','grid\x20profile\x20flow\x20','ofZSl','FVQVV','2|3|1|0|4','pkLXw','cloudProvider','Cnhwf','bstackUsername','iQaFe','dgEwi','<PasswordPlaceholder>','stringify','Smxxp','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','clusterName','gSPGm','connectionTimeout','init','Browserstack','iLAJq','bZYup','sendEventToBackend','https://','Twrfq','WlWna','../../utils/webSocketUtils','bViBg','ObXjo','status','will\x20be\x20created','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','915033TmYcbO','Message:\x20','XCmnt','EBfUk','Whitelisted\x20browserstack','15509BuksKn','655pqmFTh','OhmIX','ToEZn','ntICf','isTrialGridAccessible','ckqgy','AECUj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cSIzb','ffGVq','5604EvHuiE','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','find','FZfIN','getUTCMinutes','wLnCK','FoHZN','data','clusterRegion','sIPdb','parse','sMuxq','cJDgS','VRuwY','kvAng','password','.\x20Please\x20provide\x20all\x20required\x20arguments.','mcNXL','UkbRD','\x20\x20Message:\x20','DndDf','Success','split','throwHttpErrors','epilogue','XeHPC','nKhBb','yDvxN','KhGrx','toolInstalledResp','GET','name','Cluster\x20','xoOnx','getUTCHours','6pDAUQa','jDCtr','push','azOSU','FFmoA','cloud-provider','cOfDi','RqJdr','11SvNxVp','EtnlU','`\x20,error\x20:\x20','FxVLi','mZeZF','header','fWOkX','grid-profile','dummy-grid','method','code','FrNHK','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rAaTq','join','tofyY','SHgpD','ERROR','forEach','username','stack\x20trace\x20','../../cloudproviders/utils','iTzMg','533976fAchtc','XxvLx','exit','\x20===\x0a\x0a','utf-8','pre-check-failed','message','<UsernamePlaceholder>','QErHc','fLPvE','jJetH','type','AitkJ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','uHhsm','PfnwZ','isCliToolInstalled','Report\x20saved\x20in\x20','sGiUM','EmZiy','wnqdf','GqlwG','region','ZAeem','is\x20already\x20present','\x20\x20Code:\x20','IuQFN','handler','VGWuT','argv','description','options','DLadf','LOG','eyacW','CddBR','\x20data\x20:\x20','`\x20already\x20exists','gcibH','lSjLD','JDWmY','iyBpP','N/A','cVteS','vIzgW','pre-check-grid-profile-empty','\x20\x20Stack:\x20','gridProfile','LFKca','Vvrre','length','bstackAccesskey','requestId','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','NRwRG','pre_check','qNmCT','debug','command','qcSTu','JgJsO','418617qsevzW','Tool\x20Installed','FLMbi','EMRcH'];a17_0x4dfc=function(){return _0x302a44;};return a17_0x4dfc();}function printResponse(_0x40dbe8,_0x137c7c){const _0xc0a5d5=a17_0x16b4ca,_0x241469={};_0x241469['ofZSl']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x241469[_0xc0a5d5(0x194)]=_0xc0a5d5(0x135),_0x241469[_0xc0a5d5(0x224)]=_0xc0a5d5(0x187),_0x241469[_0xc0a5d5(0x1ac)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x241469[_0xc0a5d5(0x19a)]=_0xc0a5d5(0x1fd),_0x241469['lEZhs']=_0xc0a5d5(0x13d),_0x241469[_0xc0a5d5(0x1f4)]=function(_0x2b528a,_0x28c3b7){return _0x2b528a===_0x28c3b7;},_0x241469[_0xc0a5d5(0x138)]=_0xc0a5d5(0x147),_0x241469['gIBWf']=_0xc0a5d5(0x207);const _0x5d0635=_0x241469;logger[_0xc0a5d5(0x232)]('['+_0x40dbe8+_0xc0a5d5(0x245)+_0x137c7c[_0xc0a5d5(0x173)]+_0xc0a5d5(0x1ec)+_0x137c7c[_0xc0a5d5(0x18d)]+_0xc0a5d5(0x146)+_0x137c7c[_0xc0a5d5(0x20a)]);if(_0x137c7c[_0xc0a5d5(0x20a)]){if(_0x5d0635[_0xc0a5d5(0x1f4)](_0x5d0635[_0xc0a5d5(0x138)],_0x5d0635[_0xc0a5d5(0x214)])){const _0x1a44cc={};_0x1a44cc[_0xc0a5d5(0x1e6)]=_0x5d0635[_0xc0a5d5(0x158)],_0x1a44cc['type']=_0x5d0635[_0xc0a5d5(0x194)];const _0x4dad35={};_0x4dad35[_0xc0a5d5(0x1e6)]=_0x5d0635[_0xc0a5d5(0x224)],_0x4dad35[_0xc0a5d5(0x1d3)]=_0x5d0635[_0xc0a5d5(0x194)];const _0x4c55ab={};_0x4c55ab[_0xc0a5d5(0x1e6)]=_0x5d0635['azOSU'],_0x4c55ab['type']=_0x5d0635[_0xc0a5d5(0x194)];const _0xf062a4={};_0xf062a4[_0xc0a5d5(0x1e6)]=_0x5d0635['DndDf'],_0xf062a4['type']=_0x5d0635[_0xc0a5d5(0x194)];const _0x2c6eb9={};return _0x2c6eb9[_0xc0a5d5(0x221)]=_0x1a44cc,_0x2c6eb9[_0xc0a5d5(0x1ae)]=_0x4dad35,_0x2c6eb9['region']=_0x4c55ab,_0x2c6eb9[_0xc0a5d5(0x1b8)]=_0xf062a4,_0x132c3f[_0xc0a5d5(0x22e)](_0x99e899[_0xc0a5d5(0x1ff)])[_0xc0a5d5(0x19e)](_0x188b6f)[_0xc0a5d5(0x1e7)](_0x2c6eb9)[_0xc0a5d5(0x13d)](_0x5d0635[_0xc0a5d5(0x233)])[_0xc0a5d5(0x1e5)];}else logger['error']('error\x20stack\x20:\x20'+_0x137c7c[_0xc0a5d5(0x20a)]['stack']);}}async function generateReport(_0x2affb3,_0x4b1072){const _0x5da325=a17_0x16b4ca,_0x1ebdc1={'iQaFe':function(_0x1e8e7c,_0x8bf801){return _0x1e8e7c+_0x8bf801;},'EtnlU':_0x5da325(0x19b),'nKhBb':_0x5da325(0x238),'EMRcH':function(_0x200f92,_0x5a38d2){return _0x200f92||_0x5a38d2;},'jDCtr':_0x5da325(0x1f2),'lSjLD':_0x5da325(0x23a),'JMBAg':_0x5da325(0x22a),'sQRaM':function(_0x1ea863,_0x85d183){return _0x1ea863!=_0x85d183;},'EVfuo':_0x5da325(0x1e0),'PfnwZ':_0x5da325(0x174),'UkbRD':function(_0x29d1a2){return _0x29d1a2();}};let _0x549808=_0x5da325(0x234)+global_registry[_0x5da325(0x15c)]+_0x5da325(0x1cb);return _0x2affb3[_0x5da325(0x1c3)]((_0x2cb685,_0x1e7c69)=>{const _0x307a11=_0x5da325,{header:_0x3ef90d,response:_0x1cb38d}=_0x2cb685,{status:_0x2e67fa,data:_0x35c01e,error:_0xc36b31}=_0x1cb38d;_0x549808+=_0x3ef90d+'\x20#'+_0x1ebdc1[_0x307a11(0x15f)](_0x1e7c69,0x1)+'\x0a',_0x549808+=_0x307a11(0x218)+(_0x2e67fa?_0x1ebdc1[_0x307a11(0x1b2)]:_0x1ebdc1[_0x307a11(0x1a0)])+'\x0a',_0x549808+=_0x307a11(0x177)+_0x1ebdc1[_0x307a11(0x208)](_0x35c01e,_0x1ebdc1[_0x307a11(0x1aa)])+'\x0a',_0xc36b31&&(_0x549808+=_0x1ebdc1[_0x307a11(0x1ef)],_0x549808+=_0x307a11(0x199)+(_0xc36b31[_0x307a11(0x1ce)]||_0x1ebdc1[_0x307a11(0x1aa)])+'\x0a',_0x549808+=_0x307a11(0x1e1)+(_0xc36b31[_0x307a11(0x1bb)]||_0x1ebdc1['jDCtr'])+'\x0a',_0x549808+=_0x307a11(0x1f6)+(_0xc36b31[_0x307a11(0x23d)]||_0x1ebdc1[_0x307a11(0x1aa)])+'\x0a'),_0x549808+='\x0a\x0a';}),_0x549808+=_0x1ebdc1['JMBAg'],_0x1ebdc1[_0x5da325(0x14c)](_0x4b1072,null)?_0x549808+=_0x5da325(0x1a6)+global_registry[_0x5da325(0x165)]+'\x20'+(_0x4b1072?_0x1ebdc1[_0x5da325(0x14b)]:_0x1ebdc1[_0x5da325(0x1d7)])+'\x0a\x0a':_0x549808+=_0x5da325(0x1a6)+global_registry[_0x5da325(0x165)]+_0x5da325(0x244),_0x549808+=_0x1ebdc1[_0x5da325(0x198)](getSystemMetaData),_0x549808;};function a17_0x209a(_0x35d338,_0x2f1ace){const _0x4dfc79=a17_0x4dfc();return a17_0x209a=function(_0x209aee,_0x2c6073){_0x209aee=_0x209aee-0x134;let _0x2ab8de=_0x4dfc79[_0x209aee];return _0x2ab8de;},a17_0x209a(_0x35d338,_0x2f1ace);}exports[a17_0x16b4ca(0x1e3)]=async function(_0x1761a5){const _0x1c6aa2=a17_0x16b4ca,_0x51b9f8={'KrQZY':function(_0x469d5b){return _0x469d5b();},'ckqgy':function(_0x569566){return _0x569566();},'stbgg':_0x1c6aa2(0x183),'IuEpG':function(_0x4ddfc3,_0x4a68a6,_0x5a13a8,_0x10d81c,_0x3b728f,_0x4ab8bd,_0x4dcf44,_0xca8fbc){return _0x4ddfc3(_0x4a68a6,_0x5a13a8,_0x10d81c,_0x3b728f,_0x4ab8bd,_0x4dcf44,_0xca8fbc);},'FZfIN':_0x1c6aa2(0x13c),'EBfUk':'credential-not-found','Vvrre':_0x1c6aa2(0x20a),'fNqke':function(_0x444d05,_0x408400,_0x138cb1,_0x395faf,_0x4c1cd4,_0x4a3849,_0x10bce3){return _0x444d05(_0x408400,_0x138cb1,_0x395faf,_0x4c1cd4,_0x4a3849,_0x10bce3);},'IxaWi':_0x1c6aa2(0x1cf),'RRkZI':_0x1c6aa2(0x161),'cJDgS':function(_0x1e96c3,_0x24a500,_0x2f49e8){return _0x1e96c3(_0x24a500,_0x2f49e8);},'qNmCT':function(_0x23cc5d,_0x6de770,_0xff844d){return _0x23cc5d(_0x6de770,_0xff844d);},'sIPdb':_0x1c6aa2(0x1b9),'bymGw':function(_0x6a8ba2,_0x5ef6f1,_0xdf277c){return _0x6a8ba2(_0x5ef6f1,_0xdf277c);},'HKNgj':_0x1c6aa2(0x1a3),'OhmIX':_0x1c6aa2(0x15a),'xaAhP':_0x1c6aa2(0x213),'ddvkc':function(_0x4f1f66,_0x176a02,_0x5dd783){return _0x4f1f66(_0x176a02,_0x5dd783);},'PyICi':_0x1c6aa2(0x180),'yYBaI':function(_0x4317f1,_0x39f6f2){return _0x4317f1(_0x39f6f2);},'tzBxz':_0x1c6aa2(0x21d),'VRuwY':_0x1c6aa2(0x215),'FrNHK':_0x1c6aa2(0x206),'FoHZN':_0x1c6aa2(0x149),'OvoSf':_0x1c6aa2(0x17a),'EEtgz':_0x1c6aa2(0x20b),'gcibH':function(_0x5bab5d,_0x24ba2f){return _0x5bab5d+_0x24ba2f;},'eyacW':_0x1c6aa2(0x1cc),'bBmCz':function(_0x3f3d1b,_0x5a74ff,_0x3aa7b1,_0x1690da,_0x1631fb,_0x3db380,_0xcc6bfc){return _0x3f3d1b(_0x5a74ff,_0x3aa7b1,_0x1690da,_0x1631fb,_0x3db380,_0xcc6bfc);},'byaQj':_0x1c6aa2(0x1cd)};let _0x49d331,_0x7b35a5;try{global_registry[_0x1c6aa2(0x1fc)]=_0x51b9f8[_0x1c6aa2(0x21e)](uuidv4);!fs['existsSync'](_0x51b9f8[_0x1c6aa2(0x181)](getCredentialsPath))&&(_0x7b35a5=_0x51b9f8[_0x1c6aa2(0x23e)],logger[_0x1c6aa2(0x20a)](_0x7b35a5),await _0x51b9f8[_0x1c6aa2(0x227)](reportToGalactusAndSendToEDS,_0x1761a5,_0x49d331,_0x7b35a5,messageTypes['ERROR'],_0x51b9f8[_0x1c6aa2(0x189)],_0x51b9f8[_0x1c6aa2(0x179)],_0x51b9f8[_0x1c6aa2(0x1f9)]),process[_0x1c6aa2(0x1ca)](0x1));_0x51b9f8[_0x1c6aa2(0x14e)](sendInstrumentationEvent,_0x1761a5,_0x51b9f8[_0x1c6aa2(0x189)],messageTypes[_0x1c6aa2(0x226)],null,null,_0x1761a5);const _0x84b3e3=JSON[_0x1c6aa2(0x190)](fs[_0x1c6aa2(0x222)](_0x51b9f8['ckqgy'](getCredentialsPath)));global_registry[_0x1c6aa2(0x15e)]=_0x84b3e3[_0x1c6aa2(0x169)]['username'],global_registry[_0x1c6aa2(0x1fb)]=_0x84b3e3['Browserstack'][_0x1c6aa2(0x195)];const _0x3abe23=WS_ENDPOINT[_0x1c6aa2(0x143)](_0x51b9f8[_0x1c6aa2(0x14a)],_0x84b3e3[_0x1c6aa2(0x169)][_0x1c6aa2(0x1c4)])[_0x1c6aa2(0x143)](_0x51b9f8[_0x1c6aa2(0x20d)],_0x84b3e3['Browserstack'][_0x1c6aa2(0x195)]),_0x19f121={};_0x19f121['WebSocket']=ws,_0x19f121[_0x1c6aa2(0x167)]=0x36ee80,_0x49d331=new ReconnectingWebSocket(_0x3abe23,[],_0x19f121),global_registry[_0x1c6aa2(0x22c)]=_0x51b9f8[_0x1c6aa2(0x192)](getAuthHeader,global_registry[_0x1c6aa2(0x15e)],global_registry['bstackAccesskey']),await _0x51b9f8[_0x1c6aa2(0x200)](inputValidation,_0x1761a5,_0x49d331),logger[_0x1c6aa2(0x232)](_0x1c6aa2(0x1d5)+global_registry[_0x1c6aa2(0x15c)]+_0x1c6aa2(0x14d)+global_registry['clusterRegion']);let _0x89943b=await _0x51b9f8[_0x1c6aa2(0x14e)](getCloudProviderObjectWithOutInit,global_registry[_0x1c6aa2(0x15c)],global_registry[_0x1c6aa2(0x165)],_0x51b9f8[_0x1c6aa2(0x18f)],_0x49d331,webSocketUtils,_0x1761a5);const _0x5157d5=await _0x89943b[_0x1c6aa2(0x1d8)]();_0x51b9f8['bymGw'](printResponse,_0x51b9f8[_0x1c6aa2(0x141)],_0x5157d5),_0x89943b=await _0x89943b[_0x1c6aa2(0x168)]();let _0x593db8=![];try{_0x593db8=await _0x89943b['isClusterPresent']();}catch(_0x5c994c){const _0xd8f703=_0x51b9f8[_0x1c6aa2(0x17d)][_0x1c6aa2(0x19c)]('|');let _0x16211e=0x0;while(!![]){switch(_0xd8f703[_0x16211e++]){case'0':_0x7b35a5+='\x0a'+JSON[_0x1c6aa2(0x162)](_0x5c994c[_0x1c6aa2(0x23d)]);continue;case'1':logger['error'](_0x7b35a5);continue;case'2':_0x7b35a5=_0x1c6aa2(0x134)+global_registry[_0x1c6aa2(0x165)]+_0x1c6aa2(0x23f)+global_registry[_0x1c6aa2(0x18e)]+_0x1c6aa2(0x1b3)+_0x5c994c;continue;case'3':_0x593db8=null;continue;case'4':await _0x51b9f8['IuEpG'](reportToGalactusAndSendToEDS,_0x1761a5,_0x49d331,_0x7b35a5,messageTypes[_0x1c6aa2(0x1c2)],_0x51b9f8[_0x1c6aa2(0x189)],'cluster-check-failed-'+global_registry[_0x1c6aa2(0x15c)],_0x51b9f8[_0x1c6aa2(0x1f9)]);continue;}break;}}_0x593db8&&logger[_0x1c6aa2(0x232)](_0x1c6aa2(0x212)+global_registry[_0x1c6aa2(0x165)]+_0x1c6aa2(0x1ed));const _0x4e0065=await _0x89943b['checkAccess']();_0x51b9f8[_0x1c6aa2(0x192)](printResponse,_0x51b9f8['xaAhP'],_0x4e0065);const _0x4578ec=await _0x51b9f8['ckqgy'](curlRequest);_0x51b9f8[_0x1c6aa2(0x217)](printResponse,_0x51b9f8[_0x1c6aa2(0x14f)],_0x4578ec);const _0x8c8d5c=await _0x51b9f8[_0x1c6aa2(0x223)](isTlsSupported,_0x51b9f8['tzBxz']);_0x51b9f8[_0x1c6aa2(0x200)](printResponse,_0x51b9f8[_0x1c6aa2(0x193)],_0x8c8d5c);const _0x293aac={};_0x293aac[_0x1c6aa2(0x1b6)]=_0x51b9f8[_0x1c6aa2(0x1bc)],_0x293aac[_0x1c6aa2(0x137)]=_0x5157d5;const _0xb7a8b2={};_0xb7a8b2[_0x1c6aa2(0x1b6)]=_0x51b9f8[_0x1c6aa2(0x18c)],_0xb7a8b2[_0x1c6aa2(0x137)]=_0x4e0065;const _0x961a07={};_0x961a07[_0x1c6aa2(0x1b6)]=_0x51b9f8['OvoSf'],_0x961a07[_0x1c6aa2(0x137)]=_0x4578ec;const _0x20a986={};_0x20a986[_0x1c6aa2(0x1b6)]=_0x51b9f8['EEtgz'],_0x20a986['response']=_0x8c8d5c;const _0x1f8510=[_0x293aac,_0xb7a8b2,_0x961a07,_0x20a986],_0x41b7bc=await _0x51b9f8['qNmCT'](generateReport,_0x1f8510,_0x593db8),_0x5d3f7e=new Date(),_0x39441b=_0x5d3f7e['getUTCFullYear']()+'_'+_0x51b9f8[_0x1c6aa2(0x1ee)](_0x5d3f7e[_0x1c6aa2(0x22f)](),0x1)+'_'+_0x5d3f7e[_0x1c6aa2(0x220)]()+'_'+_0x5d3f7e[_0x1c6aa2(0x1a8)]()+'_'+_0x5d3f7e[_0x1c6aa2(0x18a)](),_0x4cb94e=_0x1c6aa2(0x247)+_0x39441b+_0x1c6aa2(0x152);fs[_0x1c6aa2(0x145)](_0x4cb94e,_0x41b7bc,_0x51b9f8[_0x1c6aa2(0x1ea)]),logger[_0x1c6aa2(0x232)](_0x1c6aa2(0x1d9)+_0x4cb94e),process[_0x1c6aa2(0x1ca)](0x0);}catch(_0x19b1d6){let _0x1b6f6a='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x19b1d6+'\x20';logger['error'](_0x1b6f6a),_0x1b6f6a+='\x0a'+JSON[_0x1c6aa2(0x162)](_0x19b1d6[_0x1c6aa2(0x23d)]),logger[_0x1c6aa2(0x201)](_0x1c6aa2(0x1c5)+_0x19b1d6['stack']);if(_0x49d331){const _0x3360f8={};_0x3360f8[_0x1c6aa2(0x1d3)]=WS_EVENTS[_0x1c6aa2(0x1e9)],_0x3360f8['message']=_0x1b6f6a,webSocketUtils['sendEventToBackend'](_0x49d331,_0x3360f8,_0x51b9f8['Vvrre'],!![]);}await webSocketUtils[_0x1c6aa2(0x239)](0x7d0);const _0x2cf342={};_0x2cf342[_0x1c6aa2(0x20a)]=_0x1b6f6a,await _0x51b9f8['bBmCz'](sendInstrumentationEvent,_0x1761a5,_0x51b9f8[_0x1c6aa2(0x189)],messageTypes[_0x1c6aa2(0x1c2)],_0x51b9f8['byaQj'],_0x2cf342,_0x1761a5),process[_0x1c6aa2(0x1ca)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x2ffa79=a18_0x24a0;(function(_0x37c6e6,_0x1ae37d){const _0x22bd92=a18_0x24a0,_0x3aa52f=_0x37c6e6();while(!![]){try{const _0x4a820d=parseInt(_0x22bd92(0xb2))/0x1+parseInt(_0x22bd92(0xab))/0x2+parseInt(_0x22bd92(0xb4))/0x3*(-parseInt(_0x22bd92(0xb0))/0x4)+parseInt(_0x22bd92(0xb9))/0x5+-parseInt(_0x22bd92(0xbc))/0x6+parseInt(_0x22bd92(0xaa))/0x7+-parseInt(_0x22bd92(0xbf))/0x8;if(_0x4a820d===_0x1ae37d)break;else _0x3aa52f['push'](_0x3aa52f['shift']());}catch(_0x61737c){_0x3aa52f['push'](_0x3aa52f['shift']());}}}(a18_0x2b27,0x278e5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x24a0(_0x4d0dfc,_0xf1a4ed){const _0x2b27bc=a18_0x2b27();return a18_0x24a0=function(_0x24a085,_0x44ffe9){_0x24a085=_0x24a085-0xa9;let _0x5e9871=_0x2b27bc[_0x24a085];return _0x5e9871;},a18_0x24a0(_0x4d0dfc,_0xf1a4ed);}function a18_0x2b27(){const _0x4cbb2e=['builder','783186RRPFec','help','YhyWt','387200yWAAnI','commandDir','1064049EMICdV','322738iOmlTB','start_commands','handler','desc','strict','86584ZvjRJM','start','111678yXNvXR','command','15dkMCDX','epilogue','Start\x20an\x20existing\x20Automation\x20grid.','MouDf','recommendCommands','120640mNsSQO','usage'];a18_0x2b27=function(){return _0x4cbb2e;};return a18_0x2b27();}exports[a18_0x2ffa79(0xb3)]=a18_0x2ffa79(0xb1),exports[a18_0x2ffa79(0xae)]=a18_0x2ffa79(0xb6),exports[a18_0x2ffa79(0xbb)]=function(_0x340b96){const _0x30db07=a18_0x2ffa79,_0x36c98d={};_0x36c98d['YhyWt']=_0x30db07(0xac),_0x36c98d['MouDf']='help';const _0x5c52f9=_0x36c98d;return _0x340b96[_0x30db07(0xba)](HELP_HEADER_MESSAGE[_0x30db07(0xb1)])[_0x30db07(0xb5)](HELP_FOOTER_MESSAGE)[_0x30db07(0xa9)](_0x5c52f9[_0x30db07(0xbe)])['demandCommand']()[_0x30db07(0xb8)]()[_0x30db07(0xaf)]()[_0x30db07(0xbd)](_0x5c52f9[_0x30db07(0xb7)]);},exports[a18_0x2ffa79(0xad)]=function(_0x2ce6ed){};
1
+ function a18_0x1bd4(){const _0x87dcbd=['120582vRcorT','start_commands','82926LTOdKb','1486785EeyHiv','demandCommand','start','578448ZfsEjN','handler','4QVJEHx','commandDir','builder','recommendCommands','84eFMpAU','help','203007fhlTrG','command','usage','KyfNW','sWRUb','epilogue','Start\x20an\x20existing\x20Automation\x20grid.','191345AcKgNE','816608quZpAV'];a18_0x1bd4=function(){return _0x87dcbd;};return a18_0x1bd4();}const a18_0x5a899a=a18_0x1224;(function(_0x37c9ae,_0x563651){const _0x177ff2=a18_0x1224,_0x263b81=_0x37c9ae();while(!![]){try{const _0x108089=parseInt(_0x177ff2(0x1b3))/0x1+parseInt(_0x177ff2(0x1b5))/0x2+-parseInt(_0x177ff2(0x1c3))/0x3+-parseInt(_0x177ff2(0x1bd))/0x4*(parseInt(_0x177ff2(0x1b8))/0x5)+-parseInt(_0x177ff2(0x1b7))/0x6*(-parseInt(_0x177ff2(0x1c1))/0x7)+parseInt(_0x177ff2(0x1b4))/0x8+parseInt(_0x177ff2(0x1bb))/0x9;if(_0x108089===_0x563651)break;else _0x263b81['push'](_0x263b81['shift']());}catch(_0x269235){_0x263b81['push'](_0x263b81['shift']());}}}(a18_0x1bd4,0x356ba));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x1224(_0x31d5c3,_0x1a96f2){const _0x1bd4a2=a18_0x1bd4();return a18_0x1224=function(_0x12242e,_0xaa9dd3){_0x12242e=_0x12242e-0x1af;let _0x30ef51=_0x1bd4a2[_0x12242e];return _0x30ef51;},a18_0x1224(_0x31d5c3,_0x1a96f2);}exports[a18_0x5a899a(0x1c4)]='start',exports['desc']=a18_0x5a899a(0x1b2),exports[a18_0x5a899a(0x1bf)]=function(_0x3150ff){const _0x2fa3cd=a18_0x5a899a,_0x4b1943={};_0x4b1943['sWRUb']=_0x2fa3cd(0x1b6),_0x4b1943[_0x2fa3cd(0x1af)]=_0x2fa3cd(0x1c2);const _0x4565a5=_0x4b1943;return _0x3150ff[_0x2fa3cd(0x1c5)](HELP_HEADER_MESSAGE[_0x2fa3cd(0x1ba)])[_0x2fa3cd(0x1b1)](HELP_FOOTER_MESSAGE)[_0x2fa3cd(0x1be)](_0x4565a5[_0x2fa3cd(0x1b0)])[_0x2fa3cd(0x1b9)]()[_0x2fa3cd(0x1c0)]()['strict']()[_0x2fa3cd(0x1c2)](_0x4565a5['KyfNW']);},exports[a18_0x5a899a(0x1bc)]=function(_0x6f61d4){};
@@ -1 +1 @@
1
- const a19_0x14aa70=a19_0x505a;function a19_0x42fc(){const _0x1eb1a5=['435773OmqMpz','ERROR','GvOZg','SPrGB','WebSocket','BzFgm','ABDxo','257590ADWVTf','../../utils/instrumentationUtils','help','167224WPHcTI','pNygD','INFO','kYkPw','../../utils/createk8sClient','description','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','init-not-called','Browserstack','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','38020dnFZVw','bstackUsername','unauthorised','builder','server-error','skip-tls-cert-verify','region','grid','exit','ZIsiw','clusterRegion','start','readFileSync','5dliMRd','VASRT','../../cloudproviders/utils','Starting\x20grid\x20','<PasswordPlaceholder>','username','63FuvixS','message','epilogue','zyNRm','usage','2007250LBEONz','options','Qpzim','statusCode','invalid-grid-id','Start\x20an\x20existing\x20Automation\x20grid.','sVzzy','TXzUw','debug','WkEmr','LSaMM','error','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','connectionTimeout','6owzKHp','user','grid-id','nUMcJ','203106pnRwPK','cBbfl','stringify','rlRAq','XVarw','type','Grid\x20started','tiXwt','reconnecting-websocket','info','desc','417388DZzoYD','../../utils/utilityMethods','parse','password','start-grid-called','gridId','clusterName','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','cloudProvider','SHaQs','default','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','handler'];a19_0x42fc=function(){return _0x1eb1a5;};return a19_0x42fc();}function a19_0x505a(_0x2e0eff,_0x3a4eb8){const _0x42fc0c=a19_0x42fc();return a19_0x505a=function(_0x505aea,_0x2573bd){_0x505aea=_0x505aea-0xa4;let _0x139d42=_0x42fc0c[_0x505aea];return _0x139d42;},a19_0x505a(_0x2e0eff,_0x3a4eb8);}(function(_0x2c2bae,_0xb26cbf){const _0x5b0fdc=a19_0x505a,_0x41edc4=_0x2c2bae();while(!![]){try{const _0x33ce68=-parseInt(_0x5b0fdc(0xd1))/0x1+parseInt(_0x5b0fdc(0xd8))/0x2*(parseInt(_0x5b0fdc(0xb5))/0x3)+parseInt(_0x5b0fdc(0xc4))/0x4+parseInt(_0x5b0fdc(0xf3))/0x5*(-parseInt(_0x5b0fdc(0xb9))/0x6)+parseInt(_0x5b0fdc(0xa7))/0x7+-parseInt(_0x5b0fdc(0xdb))/0x8*(-parseInt(_0x5b0fdc(0xf9))/0x9)+parseInt(_0x5b0fdc(0xe6))/0xa;if(_0x33ce68===_0xb26cbf)break;else _0x41edc4['push'](_0x41edc4['shift']());}catch(_0x1cdfbb){_0x41edc4['push'](_0x41edc4['shift']());}}}(a19_0x42fc,0x505e2));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x14aa70(0xc1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x14aa70(0xc5)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x14aa70(0xd9)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x14aa70(0xdf)),{getCloudProviderObject}=require(a19_0x14aa70(0xf5));exports['command']=a19_0x14aa70(0xed),exports[a19_0x14aa70(0xc3)]=a19_0x14aa70(0xac),exports[a19_0x14aa70(0xe9)]=function(_0x57aa16){const _0x4d5c02=a19_0x14aa70,_0x9a0683={};_0x9a0683['LSaMM']=_0x4d5c02(0xcf),_0x9a0683[_0x4d5c02(0xc0)]='string',_0x9a0683[_0x4d5c02(0xd3)]='Skip\x20insecure\x20cert\x20verification.',_0x9a0683[_0x4d5c02(0xef)]='boolean',_0x9a0683[_0x4d5c02(0xd4)]=_0x4d5c02(0xda);const _0x5042f1=_0x9a0683,_0x24756b={};_0x24756b[_0x4d5c02(0xe0)]=_0x5042f1[_0x4d5c02(0xb1)],_0x24756b[_0x4d5c02(0xbe)]=_0x5042f1[_0x4d5c02(0xc0)];const _0x5727d3={};_0x5727d3[_0x4d5c02(0xe0)]=_0x5042f1[_0x4d5c02(0xd3)],_0x5727d3['type']=_0x5042f1[_0x4d5c02(0xef)],_0x5727d3[_0x4d5c02(0xce)]=![];const _0x591fa7={};return _0x591fa7[_0x4d5c02(0xb7)]=_0x24756b,_0x591fa7[_0x4d5c02(0xeb)]=_0x5727d3,_0x57aa16[_0x4d5c02(0xa6)](HELP_HEADER_MESSAGE[_0x4d5c02(0xf1)])[_0x4d5c02(0xa4)](HELP_FOOTER_MESSAGE)[_0x4d5c02(0xa8)](_0x591fa7)[_0x4d5c02(0xda)](_0x5042f1[_0x4d5c02(0xd4)])['argv'];},exports[a19_0x14aa70(0xd0)]=async function(_0x16a5d7){const _0x218cb0=a19_0x14aa70,_0x3523cd={'XVarw':_0x218cb0(0xcb),'zyNRm':function(_0x38b62c){return _0x38b62c();},'rkBaR':_0x218cb0(0xe1),'nUMcJ':function(_0x4756c6,_0x5d9284,_0x15fc15,_0x56a673,_0x326324,_0x56de9a,_0x3ffc4c){return _0x4756c6(_0x5d9284,_0x15fc15,_0x56a673,_0x326324,_0x56de9a,_0x3ffc4c);},'ABDxo':_0x218cb0(0xc8),'kYkPw':_0x218cb0(0xe2),'pSvkM':function(_0x401b23){return _0x401b23();},'TXzUw':'<UsernamePlaceholder>','BzFgm':_0x218cb0(0xf7),'cBbfl':'Adding\x20Websocket\x20listeners','VASRT':function(_0x3f24ba,_0x577721,_0x24fe3f,_0x277de3){return _0x3f24ba(_0x577721,_0x24fe3f,_0x277de3);},'WkEmr':function(_0x5983af,_0xea6b15,_0x1c6fd6,_0x2d916d,_0x1cfa3e,_0xe29425,_0x2f82f5){return _0x5983af(_0xea6b15,_0x1c6fd6,_0x2d916d,_0x1cfa3e,_0xe29425,_0x2f82f5);},'Qpzim':function(_0x50770e,_0x2bedec,_0x23fac2){return _0x50770e(_0x2bedec,_0x23fac2);},'pNygD':_0x218cb0(0xbf),'rlRAq':function(_0x3fcf07,_0x2ae55b){return _0x3fcf07===_0x2ae55b;},'sVzzy':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','wNrht':_0x218cb0(0xe8),'wSDqb':_0x218cb0(0xab),'SHaQs':_0x218cb0(0xea)};let _0x51cb6d;try{!_0x16a5d7[_0x218cb0(0xc9)]&&(logger[_0x218cb0(0xb2)](_0x3523cd[_0x218cb0(0xbd)]),process['exit'](0x1));!fs['existsSync'](_0x3523cd[_0x218cb0(0xa5)](getCredentialsPath))&&(logger[_0x218cb0(0xb2)](_0x3523cd['rkBaR']),await _0x3523cd[_0x218cb0(0xb8)](sendInstrumentationEvent,_0x16a5d7,_0x3523cd[_0x218cb0(0xd7)],messageTypes['ERROR'],_0x3523cd[_0x218cb0(0xde)],null,_0x16a5d7),process[_0x218cb0(0xee)](0x1));logger[_0x218cb0(0xc2)](_0x218cb0(0xf6)+_0x16a5d7[_0x218cb0(0xc9)]),await _0x3523cd['nUMcJ'](sendInstrumentationEvent,_0x16a5d7,_0x3523cd[_0x218cb0(0xd7)],messageTypes[_0x218cb0(0xdd)],null,null,_0x16a5d7);const _0x10193b=JSON[_0x218cb0(0xc6)](fs[_0x218cb0(0xf2)](_0x3523cd['pSvkM'](getCredentialsPath)));global_registry[_0x218cb0(0xe7)]=_0x10193b[_0x218cb0(0xe3)][_0x218cb0(0xf8)],global_registry['bstackAccesskey']=_0x10193b['Browserstack'][_0x218cb0(0xc7)];const _0x4d1bd2=WS_ENDPOINT['replace'](_0x3523cd[_0x218cb0(0xae)],_0x10193b[_0x218cb0(0xe3)][_0x218cb0(0xf8)])['replace'](_0x3523cd[_0x218cb0(0xd6)],_0x10193b[_0x218cb0(0xe3)][_0x218cb0(0xc7)]),_0x53f334={};_0x53f334[_0x218cb0(0xd5)]=ws,_0x53f334[_0x218cb0(0xb4)]=0x36ee80,_0x51cb6d=new ReconnectingWebSocket(_0x4d1bd2,[],_0x53f334),logger[_0x218cb0(0xaf)](_0x3523cd[_0x218cb0(0xba)]),webSocketUtils['addListeners'](_0x51cb6d,_0x16a5d7[_0x218cb0(0xb6)],_0x16a5d7['password']);const [_0x59aa1e,_0x2d7dc1]=await _0x3523cd[_0x218cb0(0xf4)](getGridDetails,_0x10193b[_0x218cb0(0xe3)][_0x218cb0(0xf8)],_0x10193b[_0x218cb0(0xe3)][_0x218cb0(0xc7)],_0x16a5d7[_0x218cb0(0xc9)]);if(_0x2d7dc1){const _0x444898=_0x2d7dc1['info'];global_registry[_0x218cb0(0xcc)]=_0x444898[_0x218cb0(0xcc)],global_registry[_0x218cb0(0xf0)]=_0x444898[_0x218cb0(0xec)],global_registry[_0x218cb0(0xca)]=_0x444898[_0x218cb0(0xca)];const _0x56d91f=await _0x3523cd[_0x218cb0(0xb0)](getCloudProviderObject,_0x444898[_0x218cb0(0xcc)],_0x444898['clusterName'],_0x444898[_0x218cb0(0xe4)],_0x51cb6d,webSocketUtils,_0x16a5d7),[_0x3aeef6,_0x595e4b,_0x51246d,_0x5813f4,_0x369f13,_0xe561fd]=await _0x3523cd[_0x218cb0(0xa9)](createK8sClient,_0x56d91f,_0x16a5d7['skipTlsCertVerify']);await _0x3523cd[_0x218cb0(0xa9)](scaleUpHubDeployment,_0x595e4b,_0x444898[_0x218cb0(0xe4)]),logger[_0x218cb0(0xc2)](_0x3523cd[_0x218cb0(0xdc)]),process['exit'](0x0);}_0x3523cd[_0x218cb0(0xbc)](_0x59aa1e['statusCode'],0x191)&&(logger[_0x218cb0(0xb2)](_0x3523cd[_0x218cb0(0xad)]),await _0x3523cd[_0x218cb0(0xb8)](sendInstrumentationEvent,_0x16a5d7,_0x3523cd['ABDxo'],messageTypes['ERROR'],_0x3523cd['wNrht'],null,_0x16a5d7),process[_0x218cb0(0xee)](0x1)),_0x3523cd[_0x218cb0(0xbc)](_0x59aa1e[_0x218cb0(0xaa)],0x190)&&(logger[_0x218cb0(0xb2)](JSON[_0x218cb0(0xc6)](_0x59aa1e['body'])[_0x218cb0(0xfa)]),await _0x3523cd[_0x218cb0(0xb8)](sendInstrumentationEvent,_0x16a5d7,_0x3523cd[_0x218cb0(0xd7)],messageTypes[_0x218cb0(0xd2)],_0x3523cd['wSDqb'],null,_0x16a5d7),process['exit'](0x1)),logger['error'](_0x218cb0(0xe5)+JSON[_0x218cb0(0xbb)](_0x59aa1e)),await _0x3523cd[_0x218cb0(0xb8)](sendInstrumentationEvent,_0x16a5d7,_0x3523cd[_0x218cb0(0xd7)],messageTypes[_0x218cb0(0xd2)],_0x3523cd[_0x218cb0(0xcd)],_0x59aa1e,_0x16a5d7),process[_0x218cb0(0xee)](0x1);}catch(_0x1f474d){const _0x5081aa=_0x218cb0(0xb3)+_0x1f474d+'\x20\x0a'+JSON[_0x218cb0(0xbb)](_0x1f474d['stack'])+'\x20';logger[_0x218cb0(0xb2)](_0x5081aa),process[_0x218cb0(0xee)](0x1);}};
1
+ function a19_0x5407(){const _0x47da78=['flVtJ','<PasswordPlaceholder>','kDQYc','WRDio','string','message','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','VpAWU','4676864tkvUmr','INFO','parse','63CYZkbh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','TDEKx','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YSAQr','iOeuf','grid','type','skip-tls-cert-verify','sJjEg','grid-id','exit','gIcRh','cloudProvider','3300885HRwokr','Acqzl','description','EKBVN','OBBaV','connectionTimeout','stack','ERROR','../../utils/utilityMethods','2402028WXeYOd','../../utils/createk8sClient','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','<UsernamePlaceholder>','vZkXk','server-error','bDSaA','bstackAccesskey','Skip\x20insecure\x20cert\x20verification.','SbnrW','559720wbapwo','command','options','../../cloudproviders/utils','usage','start','1744833fsmYuZ','handler','Browserstack','epilogue','414zmBFXc','password','name','oOcIY','addListeners','619588JHoABk','Grid\x20started','Starting\x20grid\x20','stringify','boolean','user','error','QlzzK','YkQIx','MNucX','help','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gridId','Luqjt','RcMZL','start-grid-called','username','xLhfL','builder','clusterName','body','bstackUsername','existsSync','WebSocket','info','statusCode','replace'];a19_0x5407=function(){return _0x47da78;};return a19_0x5407();}const a19_0x5037bb=a19_0x473c;(function(_0x25146c,_0x55580c){const _0x400fd0=a19_0x473c,_0x4195fa=_0x25146c();while(!![]){try{const _0x2c83b8=-parseInt(_0x400fd0(0x13f))/0x1*(-parseInt(_0x400fd0(0x16a))/0x2)+parseInt(_0x400fd0(0x166))/0x3+parseInt(_0x400fd0(0x16f))/0x4+parseInt(_0x400fd0(0x160))/0x5+-parseInt(_0x400fd0(0x156))/0x6+-parseInt(_0x400fd0(0x14d))/0x7+parseInt(_0x400fd0(0x13c))/0x8;if(_0x2c83b8===_0x55580c)break;else _0x4195fa['push'](_0x4195fa['shift']());}catch(_0xb1c4bc){_0x4195fa['push'](_0x4195fa['shift']());}}}(a19_0x5407,0x8c300));function a19_0x473c(_0x2c2596,_0x582df4){const _0x540721=a19_0x5407();return a19_0x473c=function(_0x473c89,_0x534e3f){_0x473c89=_0x473c89-0x128;let _0x4e71a3=_0x540721[_0x473c89];return _0x4e71a3;},a19_0x473c(_0x2c2596,_0x582df4);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x5037bb(0x155)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x5037bb(0x157)),{getCloudProviderObject}=require(a19_0x5037bb(0x163));exports[a19_0x5037bb(0x161)]=a19_0x5037bb(0x145),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x5037bb(0x12b)]=function(_0x417859){const _0x5666b7=a19_0x5037bb,_0x57b239={};_0x57b239['cpqvq']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x57b239[_0x5666b7(0x12a)]=_0x5666b7(0x138),_0x57b239['RcMZL']=_0x5666b7(0x15e),_0x57b239['YSAQr']=_0x5666b7(0x173),_0x57b239[_0x5666b7(0x16d)]=_0x5666b7(0x179);const _0xefbe56=_0x57b239,_0x3d8f09={};_0x3d8f09[_0x5666b7(0x14f)]=_0xefbe56['cpqvq'],_0x3d8f09['type']=_0xefbe56[_0x5666b7(0x12a)];const _0x13c2a9={};_0x13c2a9[_0x5666b7(0x14f)]=_0xefbe56[_0x5666b7(0x17d)],_0x13c2a9[_0x5666b7(0x146)]=_0xefbe56[_0x5666b7(0x143)],_0x13c2a9['default']=![];const _0xe75ae={};return _0xe75ae[_0x5666b7(0x149)]=_0x3d8f09,_0xe75ae[_0x5666b7(0x147)]=_0x13c2a9,_0x417859[_0x5666b7(0x164)](HELP_HEADER_MESSAGE[_0x5666b7(0x165)])[_0x5666b7(0x169)](HELP_FOOTER_MESSAGE)[_0x5666b7(0x162)](_0xe75ae)[_0x5666b7(0x179)](_0xefbe56[_0x5666b7(0x16d)])['argv'];},exports[a19_0x5037bb(0x167)]=async function(_0x7edd21){const _0x168ce7=a19_0x5037bb,_0x206f5a={'vZkXk':_0x168ce7(0x13a),'VpAWU':function(_0x248aa3){return _0x248aa3();},'SbnrW':_0x168ce7(0x17a),'EKBVN':function(_0xe2b91f,_0x5aeb7d,_0x32da49,_0x501091,_0x3ed777,_0xa6eeac,_0x56d90a){return _0xe2b91f(_0x5aeb7d,_0x32da49,_0x501091,_0x3ed777,_0xa6eeac,_0x56d90a);},'QlzzK':_0x168ce7(0x128),'YkQIx':'init-not-called','Luqjt':function(_0x3663fa,_0x546634,_0x93941e,_0xfcbfeb,_0x13eaa0,_0x5d9552,_0x4bb0bc){return _0x3663fa(_0x546634,_0x93941e,_0xfcbfeb,_0x13eaa0,_0x5d9552,_0x4bb0bc);},'OBBaV':function(_0x6f37be){return _0x6f37be();},'iijoe':_0x168ce7(0x159),'kDQYc':_0x168ce7(0x135),'MNucX':'Adding\x20Websocket\x20listeners','WRDio':function(_0x2ca6b8,_0x166ad5,_0x1764a5,_0x1b3dac){return _0x2ca6b8(_0x166ad5,_0x1764a5,_0x1b3dac);},'pwqWz':function(_0x1e1ec2,_0x4de697,_0x224901,_0x30e30c,_0xd96ef4,_0x2dcfa3,_0x247b53){return _0x1e1ec2(_0x4de697,_0x224901,_0x30e30c,_0xd96ef4,_0x2dcfa3,_0x247b53);},'flVtJ':function(_0x28021f,_0x21ba71,_0x48c24e){return _0x28021f(_0x21ba71,_0x48c24e);},'TDEKx':_0x168ce7(0x170),'TRsLD':function(_0x3fc069,_0x42b3d4){return _0x3fc069===_0x42b3d4;},'bDSaA':_0x168ce7(0x142),'sJjEg':function(_0x4e7e1a,_0x5f4140,_0x57be39,_0x48e888,_0x2ca0c3,_0x5858ae,_0x36e259){return _0x4e7e1a(_0x5f4140,_0x57be39,_0x48e888,_0x2ca0c3,_0x5858ae,_0x36e259);},'Rnjso':'unauthorised','gIcRh':function(_0x4a8160,_0x141f78){return _0x4a8160===_0x141f78;},'iOeuf':'invalid-grid-id','Acqzl':_0x168ce7(0x15b)};let _0xe1c036;try{!_0x7edd21[_0x168ce7(0x17b)]&&(logger[_0x168ce7(0x175)](_0x206f5a[_0x168ce7(0x15a)]),process[_0x168ce7(0x14a)](0x1));!fs[_0x168ce7(0x12f)](_0x206f5a[_0x168ce7(0x13b)](getCredentialsPath))&&(logger[_0x168ce7(0x175)](_0x206f5a[_0x168ce7(0x15f)]),await _0x206f5a[_0x168ce7(0x150)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes['ERROR'],_0x206f5a[_0x168ce7(0x177)],null,_0x7edd21),process[_0x168ce7(0x14a)](0x1));logger[_0x168ce7(0x131)](_0x168ce7(0x171)+_0x7edd21[_0x168ce7(0x17b)]),await _0x206f5a[_0x168ce7(0x17c)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes[_0x168ce7(0x13d)],null,null,_0x7edd21);const _0x7e6326=JSON[_0x168ce7(0x13e)](fs['readFileSync'](_0x206f5a[_0x168ce7(0x151)](getCredentialsPath)));global_registry[_0x168ce7(0x12e)]=_0x7e6326[_0x168ce7(0x168)]['username'],global_registry[_0x168ce7(0x15d)]=_0x7e6326['Browserstack']['password'];const _0x2b3e25=WS_ENDPOINT[_0x168ce7(0x133)](_0x206f5a['iijoe'],_0x7e6326[_0x168ce7(0x168)][_0x168ce7(0x129)])[_0x168ce7(0x133)](_0x206f5a[_0x168ce7(0x136)],_0x7e6326[_0x168ce7(0x168)]['password']),_0x15dbc7={};_0x15dbc7[_0x168ce7(0x130)]=ws,_0x15dbc7[_0x168ce7(0x152)]=0x36ee80,_0xe1c036=new ReconnectingWebSocket(_0x2b3e25,[],_0x15dbc7),logger['debug'](_0x206f5a[_0x168ce7(0x178)]),webSocketUtils[_0x168ce7(0x16e)](_0xe1c036,_0x7edd21[_0x168ce7(0x174)],_0x7edd21[_0x168ce7(0x16b)]);const [_0x1b4979,_0x1c1a90]=await _0x206f5a[_0x168ce7(0x137)](getGridDetails,_0x7e6326[_0x168ce7(0x168)]['username'],_0x7e6326['Browserstack']['password'],_0x7edd21[_0x168ce7(0x17b)]);if(_0x1c1a90){const _0x398844=_0x1c1a90[_0x168ce7(0x131)];global_registry[_0x168ce7(0x14c)]=_0x398844[_0x168ce7(0x14c)],global_registry['clusterRegion']=_0x398844['region'],global_registry['clusterName']=_0x398844[_0x168ce7(0x12c)];const _0x324225=await _0x206f5a['pwqWz'](getCloudProviderObject,_0x398844[_0x168ce7(0x14c)],_0x398844[_0x168ce7(0x12c)],_0x398844[_0x168ce7(0x16c)],_0xe1c036,webSocketUtils,_0x7edd21),[_0x2b9960,_0x23d35c,_0x1e69e1,_0x154925,_0x5e8500,_0x50eb7f]=await _0x206f5a[_0x168ce7(0x134)](createK8sClient,_0x324225,_0x7edd21['skipTlsCertVerify']);await _0x206f5a[_0x168ce7(0x134)](scaleUpHubDeployment,_0x23d35c,_0x398844[_0x168ce7(0x16c)]),logger[_0x168ce7(0x131)](_0x206f5a[_0x168ce7(0x141)]),process[_0x168ce7(0x14a)](0x0);}_0x206f5a['TRsLD'](_0x1b4979[_0x168ce7(0x132)],0x191)&&(logger['error'](_0x206f5a[_0x168ce7(0x15c)]),await _0x206f5a[_0x168ce7(0x148)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes[_0x168ce7(0x154)],_0x206f5a['Rnjso'],null,_0x7edd21),process[_0x168ce7(0x14a)](0x1)),_0x206f5a[_0x168ce7(0x14b)](_0x1b4979[_0x168ce7(0x132)],0x190)&&(logger[_0x168ce7(0x175)](JSON[_0x168ce7(0x13e)](_0x1b4979[_0x168ce7(0x12d)])[_0x168ce7(0x139)]),await _0x206f5a[_0x168ce7(0x148)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes[_0x168ce7(0x154)],_0x206f5a[_0x168ce7(0x144)],null,_0x7edd21),process[_0x168ce7(0x14a)](0x1)),logger['error'](_0x168ce7(0x140)+JSON[_0x168ce7(0x172)](_0x1b4979)),await _0x206f5a[_0x168ce7(0x148)](sendInstrumentationEvent,_0x7edd21,_0x206f5a['QlzzK'],messageTypes[_0x168ce7(0x154)],_0x206f5a[_0x168ce7(0x14e)],_0x1b4979,_0x7edd21),process[_0x168ce7(0x14a)](0x1);}catch(_0x5393f5){const _0x40e003=_0x168ce7(0x158)+_0x5393f5+'\x20\x0a'+JSON['stringify'](_0x5393f5[_0x168ce7(0x153)])+'\x20';logger[_0x168ce7(0x175)](_0x40e003),process[_0x168ce7(0x14a)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x2374(){const _0x22ade9=['PbeRf','5258788hNUTaJ','desc','44764956yYbvSB','recommendCommands','handler','usage','10BKjhnP','5FsnZoR','stop','638685JLBWlj','11GbStHY','2028117UmPwJO','6107810GxNEMy','Stop\x20a\x20running\x20Automation\x20grid.','builder','78tTyQcB','176Cvywkm','commandDir','strict','252046XNfejB','help','GeIxv','891632tdvtcr'];a20_0x2374=function(){return _0x22ade9;};return a20_0x2374();}function a20_0x3350(_0x35838d,_0x2f6c11){const _0x23747b=a20_0x2374();return a20_0x3350=function(_0x33503c,_0x3634b4){_0x33503c=_0x33503c-0x10b;let _0x561117=_0x23747b[_0x33503c];return _0x561117;},a20_0x3350(_0x35838d,_0x2f6c11);}const a20_0x369f49=a20_0x3350;(function(_0x31c407,_0x344329){const _0x15303f=a20_0x3350,_0x5cfd77=_0x31c407();while(!![]){try{const _0x179af6=-parseInt(_0x15303f(0x122))/0x1*(parseInt(_0x15303f(0x115))/0x2)+parseInt(_0x15303f(0x11a))/0x3+parseInt(_0x15303f(0x10f))/0x4*(parseInt(_0x15303f(0x116))/0x5)+parseInt(_0x15303f(0x11e))/0x6*(parseInt(_0x15303f(0x10d))/0x7)+-parseInt(_0x15303f(0x11f))/0x8*(-parseInt(_0x15303f(0x118))/0x9)+parseInt(_0x15303f(0x11b))/0xa*(parseInt(_0x15303f(0x119))/0xb)+-parseInt(_0x15303f(0x111))/0xc;if(_0x179af6===_0x344329)break;else _0x5cfd77['push'](_0x5cfd77['shift']());}catch(_0x4c3726){_0x5cfd77['push'](_0x5cfd77['shift']());}}}(a20_0x2374,0xca258));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a20_0x369f49(0x117),exports[a20_0x369f49(0x110)]=a20_0x369f49(0x11c),exports[a20_0x369f49(0x11d)]=function(_0x3a4c05){const _0x5a5118=a20_0x369f49,_0x5f4e0d={};_0x5f4e0d[_0x5a5118(0x10e)]='stop_commands',_0x5f4e0d['GeIxv']=_0x5a5118(0x10b);const _0x11ae6d=_0x5f4e0d;return _0x3a4c05[_0x5a5118(0x114)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5a5118(0x120)](_0x11ae6d[_0x5a5118(0x10e)])['demandCommand']()[_0x5a5118(0x112)]()[_0x5a5118(0x121)]()['help'](_0x11ae6d[_0x5a5118(0x10c)]);},exports[a20_0x369f49(0x113)]=function(_0x2b1fe8){};
1
+ const a20_0x217af2=a20_0x30e6;function a20_0x30e6(_0x3a5adc,_0x379610){const _0x3aab8e=a20_0x3aab();return a20_0x30e6=function(_0x30e674,_0x51b39b){_0x30e674=_0x30e674-0xf1;let _0x9bbde0=_0x3aab8e[_0x30e674];return _0x9bbde0;},a20_0x30e6(_0x3a5adc,_0x379610);}(function(_0x310429,_0x270c23){const _0x2da035=a20_0x30e6,_0x5548f3=_0x310429();while(!![]){try{const _0x44c242=-parseInt(_0x2da035(0x101))/0x1+parseInt(_0x2da035(0xfe))/0x2*(-parseInt(_0x2da035(0xf1))/0x3)+-parseInt(_0x2da035(0xff))/0x4+-parseInt(_0x2da035(0x109))/0x5+-parseInt(_0x2da035(0xf3))/0x6+parseInt(_0x2da035(0x105))/0x7*(parseInt(_0x2da035(0xf5))/0x8)+parseInt(_0x2da035(0xfc))/0x9*(parseInt(_0x2da035(0x104))/0xa);if(_0x44c242===_0x270c23)break;else _0x5548f3['push'](_0x5548f3['shift']());}catch(_0x58eb77){_0x5548f3['push'](_0x5548f3['shift']());}}}(a20_0x3aab,0xe33d1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x3aab(){const _0x3e61d7=['stop','handler','help','kxPIG','216Kyyknj','desc','1817016lgwHZR','4537888VEGYzl','commandDir','786989VjiKhD','stop_commands','GdTAT','2389430dvxNpw','30289uQKoGS','builder','epilogue','strict','7954690QIALqT','6VeUFnB','command','3882390hZgvJO','usage','2168aTnSVl','demandCommand','recommendCommands'];a20_0x3aab=function(){return _0x3e61d7;};return a20_0x3aab();}exports[a20_0x217af2(0xf2)]=a20_0x217af2(0xf8),exports[a20_0x217af2(0xfd)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x217af2(0x106)]=function(_0x53bc79){const _0x56ff8c=a20_0x217af2,_0x45f9dd={};_0x45f9dd[_0x56ff8c(0x103)]=_0x56ff8c(0x102),_0x45f9dd[_0x56ff8c(0xfb)]='help';const _0x2b5298=_0x45f9dd;return _0x53bc79[_0x56ff8c(0xf4)](HELP_HEADER_MESSAGE['stop'])[_0x56ff8c(0x107)](HELP_FOOTER_MESSAGE)[_0x56ff8c(0x100)](_0x2b5298[_0x56ff8c(0x103)])[_0x56ff8c(0xf6)]()[_0x56ff8c(0xf7)]()[_0x56ff8c(0x108)]()[_0x56ff8c(0xfa)](_0x2b5298[_0x56ff8c(0xfb)]);},exports[a20_0x217af2(0xf9)]=function(_0x19f144){};
@@ -1 +1 @@
1
- function a21_0xc730(_0x2b5d41,_0x7e0a43){const _0x3b9254=a21_0x3b92();return a21_0xc730=function(_0xc73002,_0x519701){_0xc73002=_0xc73002-0x117;let _0x15439c=_0x3b9254[_0xc73002];return _0x15439c;},a21_0xc730(_0x2b5d41,_0x7e0a43);}function a21_0x3b92(){const _0xeac392=['init-not-called','exit','builder','password','8hseNzh','WebSocket','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Browserstack','aOWAo','DmtwC','14jHKbxd','719765oeeInW','boolean','tyKNH','epilogue','stringify','skipTlsCertVerify','IQtPg','info','username','server-error','gridId','8574858aUwYXi','nZFiz','reconnecting-websocket','ERROR','clusterName','replace','1553440UjUoTN','<PasswordPlaceholder>','region','error','204109LOCsRH','<UsernamePlaceholder>','3368217zrHkFG','usage','description','yaBTy','hapOR','clusterRegion','user','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/logger','rEvgB','2565441mrsIDB','7xKEQov','help','XLEUY','aAqHb','coYFn','Grid\x20stoppped.','pOuxZ','../../utils/createk8sClient','XJtGx','../../utils/utilityMethods','debug','parse','gVGhz','name','type','tEsiN','addListeners','invalid-grid-id','string','Stop\x20a\x20running\x20Automation\x20grid.','../../utils/instrumentationUtils','default','INFO','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Skip\x20insecure\x20cert\x20verification.','../../cloudproviders/utils','27234010zwAAdt','bstackAccesskey','BuOzn','vMHsy','stop','../../config/constants','options','aWIqg','../../utils/gridComponents','CwMdu','existsSync','bstackUsername','argv','statusCode','IBKln'];a21_0x3b92=function(){return _0xeac392;};return a21_0x3b92();}const a21_0x4e96f8=a21_0xc730;(function(_0x5a5f87,_0x43cad0){const _0x37eb1e=a21_0xc730,_0x1400f6=_0x5a5f87();while(!![]){try{const _0x1aac2f=parseInt(_0x37eb1e(0x125))/0x1*(parseInt(_0x37eb1e(0x165))/0x2)+-parseInt(_0x37eb1e(0x127))/0x3+-parseInt(_0x37eb1e(0x15f))/0x4*(parseInt(_0x37eb1e(0x166))/0x5)+parseInt(_0x37eb1e(0x11b))/0x6*(-parseInt(_0x37eb1e(0x132))/0x7)+-parseInt(_0x37eb1e(0x121))/0x8+-parseInt(_0x37eb1e(0x131))/0x9+parseInt(_0x37eb1e(0x14c))/0xa;if(_0x1aac2f===_0x43cad0)break;else _0x1400f6['push'](_0x1400f6['shift']());}catch(_0x44f1f1){_0x1400f6['push'](_0x1400f6['shift']());}}}(a21_0x3b92,0xcb67b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4e96f8(0x11d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x4e96f8(0x151)),{logger}=require(a21_0x4e96f8(0x12f)),{getCredentialsPath,getGridDetails}=require(a21_0x4e96f8(0x13b)),{scaleDownHubDeployment}=require(a21_0x4e96f8(0x154)),{sendInstrumentationEvent}=require(a21_0x4e96f8(0x146)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x4e96f8(0x139)),{getCloudProviderObject}=require(a21_0x4e96f8(0x14b));exports['command']='grid',exports['desc']=a21_0x4e96f8(0x145),exports[a21_0x4e96f8(0x15d)]=function(_0x514ce4){const _0x45b832=a21_0x4e96f8,_0x2cea8e={};_0x2cea8e[_0x45b832(0x134)]=_0x45b832(0x149),_0x2cea8e['rWDel']=_0x45b832(0x144),_0x2cea8e[_0x45b832(0x138)]=_0x45b832(0x14a),_0x2cea8e[_0x45b832(0x135)]=_0x45b832(0x167),_0x2cea8e[_0x45b832(0x15a)]=_0x45b832(0x133);const _0x2e11f0=_0x2cea8e,_0x514fdb={};_0x514fdb[_0x45b832(0x129)]=_0x2e11f0[_0x45b832(0x134)],_0x514fdb[_0x45b832(0x140)]=_0x2e11f0['rWDel'];const _0x4e7ffe={};_0x4e7ffe['description']=_0x2e11f0['pOuxZ'],_0x4e7ffe[_0x45b832(0x140)]=_0x2e11f0[_0x45b832(0x135)],_0x4e7ffe[_0x45b832(0x147)]=![];const _0x5054c0={};return _0x5054c0['grid-id']=_0x514fdb,_0x5054c0['skip-tls-cert-verify']=_0x4e7ffe,_0x514ce4[_0x45b832(0x128)](HELP_HEADER_MESSAGE[_0x45b832(0x150)])[_0x45b832(0x169)](HELP_FOOTER_MESSAGE)[_0x45b832(0x152)](_0x5054c0)[_0x45b832(0x133)](_0x2e11f0[_0x45b832(0x15a)])[_0x45b832(0x158)];},exports['handler']=async function(_0x1b991b){const _0x3a0cd0=a21_0x4e96f8,_0x11df84={'IQtPg':_0x3a0cd0(0x161),'aOWAo':function(_0x5543a6){return _0x5543a6();},'XJtGx':_0x3a0cd0(0x12e),'SHJpD':function(_0xae1d1d,_0x5e2790,_0x4dfbfa,_0x5a68d8,_0x1b3fd6,_0x204260,_0x270269){return _0xae1d1d(_0x5e2790,_0x4dfbfa,_0x5a68d8,_0x1b3fd6,_0x204260,_0x270269);},'aWIqg':'stop-grid-called','coYFn':_0x3a0cd0(0x15b),'CwMdu':function(_0x391252,_0x587eee,_0x15afe8,_0x2b0844,_0x336823,_0x5d4f31,_0x3bfb07){return _0x391252(_0x587eee,_0x15afe8,_0x2b0844,_0x336823,_0x5d4f31,_0x3bfb07);},'rEvgB':function(_0xa927ca){return _0xa927ca();},'DmtwC':_0x3a0cd0(0x126),'IGGfY':_0x3a0cd0(0x122),'yaBTy':'Adding\x20Websocket\x20listeners','MGbvK':function(_0x221964,_0x4d90d0,_0x595970,_0x1412e6){return _0x221964(_0x4d90d0,_0x595970,_0x1412e6);},'vMHsy':function(_0x375d77,_0x2ec80e,_0x9b5432){return _0x375d77(_0x2ec80e,_0x9b5432);},'gVGhz':_0x3a0cd0(0x137),'tEsiN':function(_0x2021e3,_0x574836){return _0x2021e3===_0x574836;},'hNpdR':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hapOR':function(_0x5336da,_0x27dc8a,_0x9124d7,_0x45c955,_0x3c6c62,_0x26ec50,_0x5102cd){return _0x5336da(_0x27dc8a,_0x9124d7,_0x45c955,_0x3c6c62,_0x26ec50,_0x5102cd);},'BuOzn':'unauthorised','tyKNH':function(_0x378941,_0x2a4146){return _0x378941===_0x2a4146;},'WhCgZ':_0x3a0cd0(0x143),'nZFiz':function(_0xd914e,_0x5bf1f2,_0xc2a140,_0x1558f3,_0x6387f5,_0x3f13da,_0x501ce9){return _0xd914e(_0x5bf1f2,_0xc2a140,_0x1558f3,_0x6387f5,_0x3f13da,_0x501ce9);},'tWRGj':_0x3a0cd0(0x119)};let _0x171ab4;try{!_0x1b991b[_0x3a0cd0(0x11a)]&&(logger['error'](_0x11df84[_0x3a0cd0(0x16c)]),process[_0x3a0cd0(0x15c)](0x1));!fs[_0x3a0cd0(0x156)](_0x11df84[_0x3a0cd0(0x163)](getCredentialsPath))&&(logger[_0x3a0cd0(0x124)](_0x11df84[_0x3a0cd0(0x13a)]),await _0x11df84['SHJpD'](sendInstrumentationEvent,_0x1b991b,_0x11df84[_0x3a0cd0(0x153)],messageTypes[_0x3a0cd0(0x11e)],_0x11df84[_0x3a0cd0(0x136)],null,_0x1b991b),process[_0x3a0cd0(0x15c)](0x1));logger[_0x3a0cd0(0x117)]('Stopping\x20grid\x20'+_0x1b991b[_0x3a0cd0(0x11a)]),await _0x11df84['CwMdu'](sendInstrumentationEvent,_0x1b991b,_0x11df84['aWIqg'],messageTypes[_0x3a0cd0(0x148)],null,null,_0x1b991b);const _0x126418=JSON[_0x3a0cd0(0x13d)](fs['readFileSync'](_0x11df84[_0x3a0cd0(0x130)](getCredentialsPath)));global_registry[_0x3a0cd0(0x157)]=_0x126418[_0x3a0cd0(0x162)][_0x3a0cd0(0x118)],global_registry[_0x3a0cd0(0x14d)]=_0x126418[_0x3a0cd0(0x162)][_0x3a0cd0(0x15e)];const _0x42d820=WS_ENDPOINT[_0x3a0cd0(0x120)](_0x11df84[_0x3a0cd0(0x164)],_0x126418[_0x3a0cd0(0x162)][_0x3a0cd0(0x118)])[_0x3a0cd0(0x120)](_0x11df84['IGGfY'],_0x126418['Browserstack'][_0x3a0cd0(0x15e)]),_0x3234a4={};_0x3234a4[_0x3a0cd0(0x160)]=ws,_0x3234a4['connectionTimeout']=0x36ee80,_0x171ab4=new ReconnectingWebSocket(_0x42d820,[],_0x3234a4),logger[_0x3a0cd0(0x13c)](_0x11df84[_0x3a0cd0(0x12a)]),webSocketUtils[_0x3a0cd0(0x142)](_0x171ab4,_0x1b991b[_0x3a0cd0(0x12d)],_0x1b991b[_0x3a0cd0(0x15e)]);const [_0x7d2dd5,_0x554004]=await _0x11df84['MGbvK'](getGridDetails,_0x126418[_0x3a0cd0(0x162)][_0x3a0cd0(0x118)],_0x126418[_0x3a0cd0(0x162)][_0x3a0cd0(0x15e)],_0x1b991b['gridId']);if(_0x554004){const _0x336796=_0x554004[_0x3a0cd0(0x117)];global_registry['cloudProvider']=_0x336796['cloudProvider'],global_registry[_0x3a0cd0(0x12c)]=_0x336796[_0x3a0cd0(0x123)],global_registry['clusterName']=_0x336796['clusterName'];const _0x106184=await _0x11df84[_0x3a0cd0(0x155)](getCloudProviderObject,_0x336796['cloudProvider'],_0x336796[_0x3a0cd0(0x11f)],_0x336796[_0x3a0cd0(0x13f)],_0x171ab4,webSocketUtils,_0x1b991b),[_0x4dfd58,_0x2dfa03,_0x5b08d7,_0x3d3209,_0x54d4f5,_0x3970eb]=await _0x11df84[_0x3a0cd0(0x14f)](createK8sClient,_0x106184,_0x1b991b[_0x3a0cd0(0x16b)]);await _0x11df84[_0x3a0cd0(0x14f)](scaleDownHubDeployment,_0x2dfa03,_0x336796[_0x3a0cd0(0x13f)]),logger[_0x3a0cd0(0x117)](_0x11df84[_0x3a0cd0(0x13e)]),process[_0x3a0cd0(0x15c)](0x0);}_0x11df84[_0x3a0cd0(0x141)](_0x7d2dd5[_0x3a0cd0(0x159)],0x191)&&(logger[_0x3a0cd0(0x124)](_0x11df84['hNpdR']),await _0x11df84[_0x3a0cd0(0x12b)](sendInstrumentationEvent,_0x1b991b,_0x11df84[_0x3a0cd0(0x153)],messageTypes[_0x3a0cd0(0x11e)],_0x11df84[_0x3a0cd0(0x14e)],null,_0x1b991b),process['exit'](0x1)),_0x11df84[_0x3a0cd0(0x168)](_0x7d2dd5[_0x3a0cd0(0x159)],0x190)&&(logger[_0x3a0cd0(0x124)](JSON['parse'](_0x7d2dd5['body'])['message']),await _0x11df84['SHJpD'](sendInstrumentationEvent,_0x1b991b,_0x11df84['aWIqg'],messageTypes[_0x3a0cd0(0x11e)],_0x11df84['WhCgZ'],null,_0x1b991b),process[_0x3a0cd0(0x15c)](0x1)),logger[_0x3a0cd0(0x124)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3a0cd0(0x16a)](_0x7d2dd5)),await _0x11df84[_0x3a0cd0(0x11c)](sendInstrumentationEvent,_0x1b991b,_0x11df84['aWIqg'],messageTypes[_0x3a0cd0(0x11e)],_0x11df84['tWRGj'],_0x7d2dd5,_0x1b991b),process[_0x3a0cd0(0x15c)](0x1);}catch(_0x49d7c4){const _0x1863cf='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x49d7c4+'\x20\x0a'+JSON['stringify'](_0x49d7c4['stack'])+'\x20';logger[_0x3a0cd0(0x124)](_0x1863cf),process[_0x3a0cd0(0x15c)](0x1);}};
1
+ function a21_0x5064(){const _0x3ae817=['../../config/constants','zPesU','../../utils/createk8sClient','error','username','FUlMO','clusterRegion','DFOmZ','../../utils/webSocketUtils','bAJFN','gridId','jifhh','1359246bjMDNn','type','jWzjI','PvpyN','addListeners','builder','name','Stopping\x20grid\x20','<UsernamePlaceholder>','skipTlsCertVerify','../../utils/gridComponents','string','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','epilogue','connectionTimeout','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1091554cbuxPl','454776njVjJA','lBhFB','lgxrm','rXwql','Browserstack','762XGrwOT','boolean','unauthorised','parse','replace','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','ZAbgI','help','12JmDnbA','stack','Adding\x20Websocket\x20listeners','options','Pnooh','nXQyD','9309771ORgIIo','password','7616104kveGRP','default','RZNIp','init-not-called','desc','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','bstackAccesskey','handler','UxuFk','WoIQZ','region','stop-grid-called','bGZJr','umrfY','cloudProvider','description','Stop\x20a\x20running\x20Automation\x20grid.','Grid\x20stoppped.','command','stop','grid','user','INFO','5780474NvcsCM','debug','body','clusterName','ERROR','statusCode','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','reconnecting-websocket','invalid-grid-id','info','pwaOY','52445mcxDwj','server-error','ypLZi','exit','../../utils/instrumentationUtils','WXlKD','argv','POnnQ','../../cloudproviders/utils','CCWlT','xkIlT'];a21_0x5064=function(){return _0x3ae817;};return a21_0x5064();}const a21_0x23b827=a21_0x589b;(function(_0x4df967,_0x1b9172){const _0x380efd=a21_0x589b,_0x5ccb25=_0x4df967();while(!![]){try{const _0x12336f=parseInt(_0x380efd(0xbc))/0x1+parseInt(_0x380efd(0xac))/0x2+parseInt(_0x380efd(0xcb))/0x3*(parseInt(_0x380efd(0xbd))/0x4)+parseInt(_0x380efd(0x95))/0x5*(parseInt(_0x380efd(0xc2))/0x6)+-parseInt(_0x380efd(0xea))/0x7+-parseInt(_0x380efd(0xd3))/0x8+-parseInt(_0x380efd(0xd1))/0x9;if(_0x12336f===_0x1b9172)break;else _0x5ccb25['push'](_0x5ccb25['shift']());}catch(_0x419f3c){_0x5ccb25['push'](_0x5ccb25['shift']());}}}(a21_0x5064,0xb6172));function a21_0x589b(_0x432850,_0x563df5){const _0x506468=a21_0x5064();return a21_0x589b=function(_0x589b7d,_0x366462){_0x589b7d=_0x589b7d-0x8d;let _0x2ea17e=_0x506468[_0x589b7d];return _0x2ea17e;},a21_0x589b(_0x432850,_0x563df5);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x23b827(0x91)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x23b827(0xa0)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x23b827(0xc8)),{scaleDownHubDeployment}=require(a21_0x23b827(0xb6)),{sendInstrumentationEvent}=require(a21_0x23b827(0x99)),webSocketUtils=require(a21_0x23b827(0xa8)),{createK8sClient}=require(a21_0x23b827(0xa2)),{getCloudProviderObject}=require(a21_0x23b827(0x9d));exports[a21_0x23b827(0xe5)]=a21_0x23b827(0xe7),exports[a21_0x23b827(0xd7)]=a21_0x23b827(0xe3),exports[a21_0x23b827(0xb1)]=function(_0x91b2fe){const _0xd3e440=a21_0x23b827,_0x1c56e5={};_0x1c56e5[_0xd3e440(0xa9)]=_0xd3e440(0xd8),_0x1c56e5[_0xd3e440(0xa1)]=_0xd3e440(0xb7),_0x1c56e5[_0xd3e440(0x9e)]='Skip\x20insecure\x20cert\x20verification.',_0x1c56e5[_0xd3e440(0xc0)]=_0xd3e440(0xc3),_0x1c56e5[_0xd3e440(0xbf)]=_0xd3e440(0xca);const _0x527ca8=_0x1c56e5,_0x7fd1bd={};_0x7fd1bd['description']=_0x527ca8[_0xd3e440(0xa9)],_0x7fd1bd[_0xd3e440(0xad)]=_0x527ca8[_0xd3e440(0xa1)];const _0x15323d={};_0x15323d[_0xd3e440(0xe2)]=_0x527ca8['CCWlT'],_0x15323d[_0xd3e440(0xad)]=_0x527ca8['rXwql'],_0x15323d[_0xd3e440(0xd4)]=![];const _0x34c714={};return _0x34c714['grid-id']=_0x7fd1bd,_0x34c714['skip-tls-cert-verify']=_0x15323d,_0x91b2fe['usage'](HELP_HEADER_MESSAGE[_0xd3e440(0xe6)])[_0xd3e440(0xb9)](HELP_FOOTER_MESSAGE)[_0xd3e440(0xce)](_0x34c714)[_0xd3e440(0xca)](_0x527ca8[_0xd3e440(0xbf)])[_0xd3e440(0x9b)];},exports[a21_0x23b827(0xda)]=async function(_0x4e6630){const _0x506024=a21_0x23b827,_0x17b3f9={'UxuFk':_0x506024(0x90),'wOmuJ':function(_0x430b9a){return _0x430b9a();},'pwaOY':_0x506024(0xc7),'bGZJr':function(_0x12eab9,_0x3d3115,_0x13644a,_0x2f298d,_0x2008ae,_0x2c13cb,_0x546238){return _0x12eab9(_0x3d3115,_0x13644a,_0x2f298d,_0x2008ae,_0x2c13cb,_0x546238);},'ZAbgI':_0x506024(0xde),'jWzjI':_0x506024(0xd6),'ypLZi':function(_0x14e537){return _0x14e537();},'nXQyD':_0x506024(0xb4),'lBhFB':'<PasswordPlaceholder>','fSnOo':_0x506024(0xcd),'PvpyN':function(_0x5de23c,_0xbef858,_0x1ef813,_0x4fcaa2){return _0x5de23c(_0xbef858,_0x1ef813,_0x4fcaa2);},'WXlKD':function(_0x2d9b71,_0x4ec8fa,_0xac84a8){return _0x2d9b71(_0x4ec8fa,_0xac84a8);},'POnnQ':_0x506024(0xe4),'RZNIp':function(_0x51cc51,_0x207108){return _0x51cc51===_0x207108;},'WoIQZ':_0x506024(0xb8),'xkIlT':function(_0x333185,_0xd77754,_0x18035c,_0x1ffd7e,_0x412357,_0x27dfe8,_0x82605f){return _0x333185(_0xd77754,_0x18035c,_0x1ffd7e,_0x412357,_0x27dfe8,_0x82605f);},'umrfY':_0x506024(0xc4),'DFOmZ':function(_0x121cb2,_0x20e300){return _0x121cb2===_0x20e300;},'jifhh':function(_0x23996a,_0x224869,_0x5bf9ca,_0xfda1af,_0x334d96,_0xd71cea,_0x45a4e4){return _0x23996a(_0x224869,_0x5bf9ca,_0xfda1af,_0x334d96,_0xd71cea,_0x45a4e4);},'FUlMO':_0x506024(0x92),'Pnooh':_0x506024(0x96)};let _0x3b196c;try{!_0x4e6630[_0x506024(0xaa)]&&(logger['error'](_0x17b3f9[_0x506024(0xdb)]),process[_0x506024(0x98)](0x1));!fs['existsSync'](_0x17b3f9['wOmuJ'](getCredentialsPath))&&(logger[_0x506024(0xa3)](_0x17b3f9[_0x506024(0x94)]),await _0x17b3f9[_0x506024(0xdf)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9[_0x506024(0xc9)],messageTypes['ERROR'],_0x17b3f9[_0x506024(0xae)],null,_0x4e6630),process['exit'](0x1));logger['info'](_0x506024(0xb3)+_0x4e6630['gridId']),await _0x17b3f9[_0x506024(0xdf)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9['ZAbgI'],messageTypes[_0x506024(0xe9)],null,null,_0x4e6630);const _0x2fe560=JSON[_0x506024(0xc5)](fs['readFileSync'](_0x17b3f9[_0x506024(0x97)](getCredentialsPath)));global_registry['bstackUsername']=_0x2fe560[_0x506024(0xc1)][_0x506024(0xa4)],global_registry[_0x506024(0xd9)]=_0x2fe560[_0x506024(0xc1)][_0x506024(0xd2)];const _0x16d86a=WS_ENDPOINT['replace'](_0x17b3f9[_0x506024(0xd0)],_0x2fe560[_0x506024(0xc1)][_0x506024(0xa4)])[_0x506024(0xc6)](_0x17b3f9[_0x506024(0xbe)],_0x2fe560[_0x506024(0xc1)][_0x506024(0xd2)]),_0x39291b={};_0x39291b['WebSocket']=ws,_0x39291b[_0x506024(0xba)]=0x36ee80,_0x3b196c=new ReconnectingWebSocket(_0x16d86a,[],_0x39291b),logger[_0x506024(0xeb)](_0x17b3f9['fSnOo']),webSocketUtils[_0x506024(0xb0)](_0x3b196c,_0x4e6630[_0x506024(0xe8)],_0x4e6630[_0x506024(0xd2)]);const [_0x2ae979,_0x2ace43]=await _0x17b3f9[_0x506024(0xaf)](getGridDetails,_0x2fe560[_0x506024(0xc1)][_0x506024(0xa4)],_0x2fe560[_0x506024(0xc1)][_0x506024(0xd2)],_0x4e6630[_0x506024(0xaa)]);if(_0x2ace43){const _0x23cd5b=_0x2ace43[_0x506024(0x93)];global_registry[_0x506024(0xe1)]=_0x23cd5b[_0x506024(0xe1)],global_registry[_0x506024(0xa6)]=_0x23cd5b[_0x506024(0xdd)],global_registry[_0x506024(0x8d)]=_0x23cd5b['clusterName'];const _0x26b740=await _0x17b3f9['bGZJr'](getCloudProviderObject,_0x23cd5b['cloudProvider'],_0x23cd5b[_0x506024(0x8d)],_0x23cd5b[_0x506024(0xb2)],_0x3b196c,webSocketUtils,_0x4e6630),[_0x129a17,_0x5a7f1b,_0x34a789,_0x2c7b7e,_0xd10264,_0xf5caf5]=await _0x17b3f9[_0x506024(0x9a)](createK8sClient,_0x26b740,_0x4e6630[_0x506024(0xb5)]);await _0x17b3f9[_0x506024(0x9a)](scaleDownHubDeployment,_0x5a7f1b,_0x23cd5b[_0x506024(0xb2)]),logger[_0x506024(0x93)](_0x17b3f9[_0x506024(0x9c)]),process[_0x506024(0x98)](0x0);}_0x17b3f9[_0x506024(0xd5)](_0x2ae979[_0x506024(0x8f)],0x191)&&(logger[_0x506024(0xa3)](_0x17b3f9[_0x506024(0xdc)]),await _0x17b3f9[_0x506024(0x9f)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9[_0x506024(0xc9)],messageTypes[_0x506024(0x8e)],_0x17b3f9[_0x506024(0xe0)],null,_0x4e6630),process[_0x506024(0x98)](0x1)),_0x17b3f9[_0x506024(0xa7)](_0x2ae979[_0x506024(0x8f)],0x190)&&(logger['error'](JSON[_0x506024(0xc5)](_0x2ae979[_0x506024(0xec)])['message']),await _0x17b3f9[_0x506024(0xab)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9[_0x506024(0xc9)],messageTypes[_0x506024(0x8e)],_0x17b3f9[_0x506024(0xa5)],null,_0x4e6630),process['exit'](0x1)),logger[_0x506024(0xa3)](_0x506024(0xbb)+JSON['stringify'](_0x2ae979)),await _0x17b3f9['jifhh'](sendInstrumentationEvent,_0x4e6630,_0x17b3f9['ZAbgI'],messageTypes[_0x506024(0x8e)],_0x17b3f9[_0x506024(0xcf)],_0x2ae979,_0x4e6630),process[_0x506024(0x98)](0x1);}catch(_0x2b7f53){const _0x28c086='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x2b7f53+'\x20\x0a'+JSON['stringify'](_0x2b7f53[_0x506024(0xcc)])+'\x20';logger[_0x506024(0xa3)](_0x28c086),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0xf4f7ab=a22_0x2a49;(function(_0x4aa924,_0x4b74d8){const _0x454302=a22_0x2a49,_0x502ab9=_0x4aa924();while(!![]){try{const _0x3c772d=-parseInt(_0x454302(0x176))/0x1*(parseInt(_0x454302(0x1cf))/0x2)+parseInt(_0x454302(0x1bc))/0x3*(parseInt(_0x454302(0x17c))/0x4)+parseInt(_0x454302(0x182))/0x5*(-parseInt(_0x454302(0x1b9))/0x6)+parseInt(_0x454302(0x1d3))/0x7*(parseInt(_0x454302(0x1a3))/0x8)+-parseInt(_0x454302(0x174))/0x9+-parseInt(_0x454302(0x193))/0xa*(-parseInt(_0x454302(0x181))/0xb)+parseInt(_0x454302(0x1c1))/0xc*(parseInt(_0x454302(0x17e))/0xd);if(_0x3c772d===_0x4b74d8)break;else _0x502ab9['push'](_0x502ab9['shift']());}catch(_0x130418){_0x502ab9['push'](_0x502ab9['shift']());}}}(a22_0x2d77,0x511d5),require(a22_0xf4f7ab(0x194))[a22_0xf4f7ab(0x18f)]());let gridURL='grid.browserstack.com',bsApiUrl='api.browserstack.com',agApiUrl=a22_0xf4f7ab(0x175);function a22_0x2a49(_0x4c5331,_0x50a66a){const _0x2d7737=a22_0x2d77();return a22_0x2a49=function(_0x2a4933,_0x27459b){_0x2a4933=_0x2a4933-0x16f;let _0x448a74=_0x2d7737[_0x2a4933];return _0x448a74;},a22_0x2a49(_0x4c5331,_0x50a66a);}const _env=(process[a22_0xf4f7ab(0x1cd)][a22_0xf4f7ab(0x1a4)]||'prod')['toLowerCase']();if(_env==='staging'||_env===a22_0xf4f7ab(0x1c0))gridURL=a22_0xf4f7ab(0x1bb),bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0xf4f7ab(0x191);else(_env===a22_0xf4f7ab(0x188)||_env==='pre-prod')&&(gridURL=a22_0xf4f7ab(0x19e),bsApiUrl=a22_0xf4f7ab(0x1c5),agApiUrl=a22_0xf4f7ab(0x1ad));exports['DASHBOARD_ENDPOINT']=process[a22_0xf4f7ab(0x1cd)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0xf4f7ab(0x1a2)]=process[a22_0xf4f7ab(0x1cd)][a22_0xf4f7ab(0x1a2)]||bsApiUrl,exports[a22_0xf4f7ab(0x183)]=process[a22_0xf4f7ab(0x1cd)][a22_0xf4f7ab(0x183)]||agApiUrl,exports[a22_0xf4f7ab(0x190)]=a22_0xf4f7ab(0x185)+this[a22_0xf4f7ab(0x183)]+a22_0xf4f7ab(0x187),exports[a22_0xf4f7ab(0x1bd)]='credentials',exports[a22_0xf4f7ab(0x184)]='BrowserStackIAMUser',exports[a22_0xf4f7ab(0x18e)]=a22_0xf4f7ab(0x1a6),exports[a22_0xf4f7ab(0x1d8)]='aws',exports['CLUSTER_DEP_STACK_NAME']=a22_0xf4f7ab(0x1a8),exports[a22_0xf4f7ab(0x18b)]=a22_0xf4f7ab(0x18a),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0xf4f7ab(0x18d)]='browserstack-turboscale-grid',exports[a22_0xf4f7ab(0x171)]=a22_0xf4f7ab(0x1ab),exports['GCP']=a22_0xf4f7ab(0x16f),exports[a22_0xf4f7ab(0x1d6)]=[this[a22_0xf4f7ab(0x1d8)],this[a22_0xf4f7ab(0x171)],this[a22_0xf4f7ab(0x1ca)]];const a22_0x33e9b3={};a22_0x33e9b3['Key']=a22_0xf4f7ab(0x1ac),a22_0x33e9b3[a22_0xf4f7ab(0x197)]=a22_0xf4f7ab(0x1b6);const a22_0x4f3dfe={};a22_0x4f3dfe['Key']='browserstack:service',a22_0x4f3dfe[a22_0xf4f7ab(0x197)]=a22_0xf4f7ab(0x1b4);const common_hst_tags_list=[a22_0x33e9b3,a22_0x4f3dfe];if(process[a22_0xf4f7ab(0x1cd)][a22_0xf4f7ab(0x189)]){const parsedTags=process[a22_0xf4f7ab(0x1cd)][a22_0xf4f7ab(0x189)][a22_0xf4f7ab(0x19a)](',');parsedTags[a22_0xf4f7ab(0x1d7)](_0x2859ec=>{const _0xee91d8=a22_0xf4f7ab,_0x375b48=_0x2859ec[_0xee91d8(0x19a)](':'),_0x23b0c9={};_0x23b0c9[_0xee91d8(0x1c2)]=_0x375b48[0x0],_0x23b0c9[_0xee91d8(0x197)]=_0x375b48[0x1],common_hst_tags_list['push'](_0x23b0c9);});}exports[a22_0xf4f7ab(0x1d2)]=common_hst_tags_list;function a22_0x2d77(){const _0x3394ac=['BrowserStack','unknown','CLOUD_PROVIDER','675726SInzYH','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','grid-devhst.bsstag.com','24537LVkrEl','CP_CONFIG_FILE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','REGION','stag','3519780AHrViT','Key','RAW_ARGS_REGEX','GRID_URL','api-preprod.bsstag.com','HST_CLUSTER_TAGS','browserstack:service','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','GCP','WARNING','high-scale-grid-cluster','env','INFO','126610WXSfdM','pre-check','[REDACTED]','COMMON_HST_TAGS','13930FoZslj','init','stop','ALL_SUPPORTED_CLOUD_PROVIDERS','forEach','AWS','gcp','HELP_HEADER_MESSAGE','AZURE','MessageDescription','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','284472VXakqd','grid-api.browserstack.com','3HbJDiY','RESOURCES','success','cliRunFinished','cliRunStarted','error','72dQLoMf','REDACTED','13lynrEo','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','warning','847CzERsn','20eJWlYj','AG_API_URL','IAM_USER_NAME','wss://','ERROR','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','preprod','TURBOSCALE_CUSTOM_TAGS','BSTACK-ATS-CLUSTER-AUTOSCALER','CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','TURBOSCALE_DEPLOYMENT','DEFAULT_GRID_NAME','config','WS_ENDPOINT','grid-api-devhst.bsstag.com','gridUrl','30050ZMLtOX','dotenv','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','Value','SUCCESS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','split','start','connect','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','grid-preprod.bsstag.com','WS_EVENTS','CLI_RUN_FINISHED','grid-profile','BS_API_URL','1336UtNmah','BROWSERSTACK_ENV','log','high-scale-grid','list','BSTACK-ATS-CLUSTER','SUPPORTED_CLOUD_PROVIDERS','root','azure','browserstack:managedBy','grid-api-preprod.bsstag.com','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','CLUSTER','global_registry','us-east-1','LINK_MESSAGE','TRIAL_GRID_URL','BrowserStack-Automate-TurboScale','gridProfile'];a22_0x2d77=function(){return _0x3394ac;};return a22_0x2d77();}const a22_0x5a1574={};a22_0x5a1574[a22_0xf4f7ab(0x1ac)]='BrowserStack',a22_0x5a1574[a22_0xf4f7ab(0x1c7)]=a22_0xf4f7ab(0x1b4),exports[a22_0xf4f7ab(0x1c6)]=a22_0x5a1574,exports[a22_0xf4f7ab(0x1a9)]=[this[a22_0xf4f7ab(0x1d8)]];const a22_0x4cde40={};a22_0x4cde40['LOG']=a22_0xf4f7ab(0x1a5),a22_0x4cde40[a22_0xf4f7ab(0x177)]='resourceInfo',a22_0x4cde40[a22_0xf4f7ab(0x1c4)]=a22_0xf4f7ab(0x192),a22_0x4cde40['CLI_RUN_STARTED']=a22_0xf4f7ab(0x17a),a22_0x4cde40[a22_0xf4f7ab(0x1a0)]=a22_0xf4f7ab(0x179),exports[a22_0xf4f7ab(0x19f)]=a22_0x4cde40,exports[a22_0xf4f7ab(0x1b0)]={},exports['LINK_MESSAGE']=a22_0xf4f7ab(0x1ba);const a22_0x5b75fc={};a22_0x5b75fc[a22_0xf4f7ab(0x1aa)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0xf4f7ab(0x1b2)],a22_0x5b75fc[a22_0xf4f7ab(0x1d4)]=a22_0xf4f7ab(0x196)+this['LINK_MESSAGE'],a22_0x5b75fc['configure']=a22_0xf4f7ab(0x19d)+this[a22_0xf4f7ab(0x1b2)],a22_0x5b75fc['create']=a22_0xf4f7ab(0x1ae)+this['LINK_MESSAGE'],a22_0x5b75fc[a22_0xf4f7ab(0x1a7)]={},a22_0x5b75fc['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0xf4f7ab(0x1b2)],a22_0x5b75fc[a22_0xf4f7ab(0x19c)]=a22_0xf4f7ab(0x18c)+this['LINK_MESSAGE'],a22_0x5b75fc[a22_0xf4f7ab(0x19b)]=a22_0xf4f7ab(0x17f)+this['LINK_MESSAGE'],a22_0x5b75fc[a22_0xf4f7ab(0x1d5)]=a22_0xf4f7ab(0x1c9)+this[a22_0xf4f7ab(0x1b2)],a22_0x5b75fc['pre_check']=a22_0xf4f7ab(0x199)+this['LINK_MESSAGE'],a22_0x5b75fc[a22_0xf4f7ab(0x1a7)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0xf4f7ab(0x1b2)],a22_0x5b75fc[a22_0xf4f7ab(0x1a7)]['grid']=a22_0xf4f7ab(0x1c8)+this['LINK_MESSAGE'],a22_0x5b75fc[a22_0xf4f7ab(0x1a7)][a22_0xf4f7ab(0x1b5)]=a22_0xf4f7ab(0x1be)+this['LINK_MESSAGE'],exports[a22_0xf4f7ab(0x170)]=a22_0x5b75fc,exports['HELP_FOOTER_MESSAGE']=a22_0xf4f7ab(0x173);const a22_0x53cd89={};a22_0x53cd89[a22_0xf4f7ab(0x198)]=a22_0xf4f7ab(0x178),a22_0x53cd89[a22_0xf4f7ab(0x186)]=a22_0xf4f7ab(0x17b),a22_0x53cd89[a22_0xf4f7ab(0x1ce)]='info',a22_0x53cd89[a22_0xf4f7ab(0x1cb)]=a22_0xf4f7ab(0x180),a22_0x53cd89['UNKNOWN']=a22_0xf4f7ab(0x1b7),a22_0x53cd89[a22_0xf4f7ab(0x195)]=null,exports['messageTypes']=a22_0x53cd89,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0xf4f7ab(0x1c3)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0xf4f7ab(0x17d)]=a22_0xf4f7ab(0x1d1);const a22_0x3bcba6={};a22_0x3bcba6[a22_0xf4f7ab(0x1a1)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x53e68c={};a22_0x53e68c[a22_0xf4f7ab(0x1d0)]=a22_0x3bcba6,exports[a22_0xf4f7ab(0x172)]=a22_0x53e68c,exports[a22_0xf4f7ab(0x1b3)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x18ac88={};a22_0x18ac88[a22_0xf4f7ab(0x1af)]=a22_0xf4f7ab(0x1cc),a22_0x18ac88[a22_0xf4f7ab(0x1b8)]='aws',a22_0x18ac88[a22_0xf4f7ab(0x1bf)]=a22_0xf4f7ab(0x1b1),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x18ac88;
1
+ const a22_0x43a234=a22_0x3665;(function(_0x4db5ef,_0x1aa370){const _0x2ad58c=a22_0x3665,_0x2f725a=_0x4db5ef();while(!![]){try{const _0x5b8a89=parseInt(_0x2ad58c(0xff))/0x1+parseInt(_0x2ad58c(0x10c))/0x2+parseInt(_0x2ad58c(0x14f))/0x3*(-parseInt(_0x2ad58c(0x118))/0x4)+-parseInt(_0x2ad58c(0x131))/0x5+-parseInt(_0x2ad58c(0x11a))/0x6*(-parseInt(_0x2ad58c(0x15d))/0x7)+parseInt(_0x2ad58c(0x111))/0x8*(-parseInt(_0x2ad58c(0x11d))/0x9)+parseInt(_0x2ad58c(0x100))/0xa;if(_0x5b8a89===_0x1aa370)break;else _0x2f725a['push'](_0x2f725a['shift']());}catch(_0xe33df2){_0x2f725a['push'](_0x2f725a['shift']());}}}(a22_0x97ad,0x56472),require(a22_0x43a234(0x123))[a22_0x43a234(0x10a)]());let gridURL=a22_0x43a234(0x15b),bsApiUrl=a22_0x43a234(0xf8),agApiUrl=a22_0x43a234(0x14d);const _env=(process[a22_0x43a234(0x145)]['BROWSERSTACK_ENV']||a22_0x43a234(0x114))[a22_0x43a234(0x11c)]();if(_env===a22_0x43a234(0x15a)||_env===a22_0x43a234(0x128))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x43a234(0x149);else(_env===a22_0x43a234(0x147)||_env===a22_0x43a234(0x15f))&&(gridURL=a22_0x43a234(0x160),bsApiUrl=a22_0x43a234(0x122),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x43a234(0x117)]=process[a22_0x43a234(0x145)][a22_0x43a234(0x117)]||gridURL,exports[a22_0x43a234(0x153)]=process['env'][a22_0x43a234(0x153)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x43a234(0x145)]['AG_API_URL']||agApiUrl,exports[a22_0x43a234(0x14b)]='wss://'+this['AG_API_URL']+a22_0x43a234(0x11f),exports['CP_CONFIG_FILE']=a22_0x43a234(0x130),exports[a22_0x43a234(0x125)]=a22_0x43a234(0x101),exports[a22_0x43a234(0x119)]='high-scale-grid',exports['AWS']='aws',exports[a22_0x43a234(0x132)]='BSTACK-ATS-CLUSTER',exports[a22_0x43a234(0x152)]=a22_0x43a234(0x13c),exports[a22_0x43a234(0x13e)]=a22_0x43a234(0x13b),exports[a22_0x43a234(0x129)]=a22_0x43a234(0x10e),exports[a22_0x43a234(0x133)]='azure',exports['GCP']=a22_0x43a234(0x154),exports[a22_0x43a234(0x138)]=[this[a22_0x43a234(0x112)],this[a22_0x43a234(0x133)],this[a22_0x43a234(0x15e)]];const a22_0x12b545={};a22_0x12b545[a22_0x43a234(0x148)]='browserstack:managedBy',a22_0x12b545['Value']='BrowserStack';const a22_0x6d525={};a22_0x6d525[a22_0x43a234(0x148)]=a22_0x43a234(0x13a),a22_0x6d525[a22_0x43a234(0x155)]=a22_0x43a234(0x106);const common_hst_tags_list=[a22_0x12b545,a22_0x6d525];if(process[a22_0x43a234(0x145)][a22_0x43a234(0x126)]){const parsedTags=process[a22_0x43a234(0x145)][a22_0x43a234(0x126)][a22_0x43a234(0x10b)](',');parsedTags[a22_0x43a234(0x10f)](_0xef91be=>{const _0x25a514=a22_0x43a234,_0x385f70=_0xef91be[_0x25a514(0x10b)](':'),_0x57f2c7={};_0x57f2c7[_0x25a514(0x148)]=_0x385f70[0x0],_0x57f2c7['Value']=_0x385f70[0x1],common_hst_tags_list['push'](_0x57f2c7);});}exports[a22_0x43a234(0x12f)]=common_hst_tags_list;function a22_0x3665(_0x5b5635,_0x3591c1){const _0x97ad17=a22_0x97ad();return a22_0x3665=function(_0x366596,_0x558e27){_0x366596=_0x366596-0xf6;let _0x895101=_0x97ad17[_0x366596];return _0x895101;},a22_0x3665(_0x5b5635,_0x3591c1);}const a22_0x252fd9={};a22_0x252fd9[a22_0x43a234(0x15c)]=a22_0x43a234(0xfe),a22_0x252fd9[a22_0x43a234(0x13a)]='BrowserStack-Automate-TurboScale',exports[a22_0x43a234(0x11e)]=a22_0x252fd9,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x175844={};a22_0x175844['LOG']=a22_0x43a234(0x143),a22_0x175844[a22_0x43a234(0x137)]=a22_0x43a234(0x115),a22_0x175844[a22_0x43a234(0x12e)]=a22_0x43a234(0x12d),a22_0x175844['CLI_RUN_STARTED']='cliRunStarted',a22_0x175844[a22_0x43a234(0x13d)]='cliRunFinished',exports[a22_0x43a234(0x102)]=a22_0x175844,exports['global_registry']={},exports[a22_0x43a234(0x110)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x7d28fb={};a22_0x7d28fb[a22_0x43a234(0x13f)]=a22_0x43a234(0x144)+this['LINK_MESSAGE'],a22_0x7d28fb[a22_0x43a234(0xfb)]=a22_0x43a234(0xf7)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0x103)]=a22_0x43a234(0x146)+this[a22_0x43a234(0x110)],a22_0x7d28fb['create']=a22_0x43a234(0x136)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xf6)]={},a22_0x7d28fb['delete']=a22_0x43a234(0x113)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xfc)]=a22_0x43a234(0x105)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0x140)]=a22_0x43a234(0x109)+this['LINK_MESSAGE'],a22_0x7d28fb[a22_0x43a234(0x142)]=a22_0x43a234(0x134)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0x14a)]=a22_0x43a234(0x156)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xf6)][a22_0x43a234(0x13f)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x7d28fb[a22_0x43a234(0xf6)][a22_0x43a234(0x108)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xf6)][a22_0x43a234(0xfa)]=a22_0x43a234(0x12a)+this[a22_0x43a234(0x110)],exports['HELP_HEADER_MESSAGE']=a22_0x7d28fb,exports[a22_0x43a234(0x151)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';function a22_0x97ad(){const _0x55c0a9=['1549620GfYylv','BrowserStackIAMUser','WS_EVENTS','configure','TRIAL_GRID_URL','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack-Automate-TurboScale','NULL','grid','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','config','split','1120934Wfhqpt','warning','browserstack-turboscale-grid','forEach','LINK_MESSAGE','830472FebrTn','AWS','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','prod','resourceInfo','REDACTED','DASHBOARD_ENDPOINT','294932JnIPgP','DEFAULT_GRID_NAME','786FTYDNj','[REDACTED]','toLowerCase','9VdCMlw','HST_CLUSTER_TAGS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLUSTER','api-preprod.bsstag.com','dotenv','UNKNOWN','IAM_USER_NAME','TURBOSCALE_CUSTOM_TAGS','info','stag','TURBOSCALE_DEPLOYMENT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','pre-check','high-scale-grid-cluster','gridUrl','GRID_URL','COMMON_HST_TAGS','credentials','1167290yoblEt','CLUSTER_DEP_STACK_NAME','AZURE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CLI_ARGS_REGEX','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','RESOURCES','ALL_SUPPORTED_CLOUD_PROVIDERS','CLOUD_PROVIDER','browserstack:service','BSTACK-ATS-CLUSTER-HUB-HA','BSTACK-ATS-CLUSTER-AUTOSCALER','CLI_RUN_FINISHED','CLUSTER_HUB_HA_STACK_NAME','root','start','success','stop','log','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','env','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','preprod','Key','grid-api-devhst.bsstag.com','pre_check','WS_ENDPOINT','us-east-1','grid-api.browserstack.com','aws','27kQEEpT','grid-profile','HELP_FOOTER_MESSAGE','CLUSTER_AUTOSCALER_STACK_NAME','BS_API_URL','gcp','Value','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','INFO','WARNING','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','staging','grid.browserstack.com','browserstack:managedBy','9737zsOaJh','GCP','pre-prod','grid-preprod.bsstag.com','list','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','api.browserstack.com','MessageDescription','gridProfile','init','connect','ERROR','BrowserStack','456608YVaGEn'];a22_0x97ad=function(){return _0x55c0a9;};return a22_0x97ad();}const a22_0x599739={};a22_0x599739['SUCCESS']=a22_0x43a234(0x141),a22_0x599739[a22_0x43a234(0xfd)]='error',a22_0x599739[a22_0x43a234(0x157)]=a22_0x43a234(0x127),a22_0x599739[a22_0x43a234(0x158)]=a22_0x43a234(0x10d),a22_0x599739[a22_0x43a234(0x124)]='unknown',a22_0x599739[a22_0x43a234(0x107)]=null,exports['messageTypes']=a22_0x599739,exports[a22_0x43a234(0x135)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x43a234(0x116)]=a22_0x43a234(0x11b);const a22_0x3c4b23={};a22_0x3c4b23[a22_0x43a234(0x150)]=a22_0x43a234(0x159);const a22_0x195ab0={};a22_0x195ab0[a22_0x43a234(0x12b)]=a22_0x3c4b23,exports[a22_0x43a234(0xf9)]=a22_0x195ab0,exports[a22_0x43a234(0x104)]=a22_0x43a234(0x120);const a22_0x2caa37={};a22_0x2caa37[a22_0x43a234(0x121)]=a22_0x43a234(0x12c),a22_0x2caa37[a22_0x43a234(0x139)]=a22_0x43a234(0x14e),a22_0x2caa37['REGION']=a22_0x43a234(0x14c),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x2caa37;
@@ -1 +1 @@
1
- const a23_0x36bd0c=a23_0x3bd0;(function(_0x3b4484,_0x379d14){const _0xd8c556=a23_0x3bd0,_0x7bf868=_0x3b4484();while(!![]){try{const _0x249db0=-parseInt(_0xd8c556(0x1f6))/0x1+-parseInt(_0xd8c556(0x209))/0x2*(-parseInt(_0xd8c556(0x203))/0x3)+parseInt(_0xd8c556(0x20a))/0x4*(-parseInt(_0xd8c556(0x1fa))/0x5)+parseInt(_0xd8c556(0x1f9))/0x6*(-parseInt(_0xd8c556(0x1ef))/0x7)+-parseInt(_0xd8c556(0x1ff))/0x8*(parseInt(_0xd8c556(0x208))/0x9)+parseInt(_0xd8c556(0x200))/0xa*(parseInt(_0xd8c556(0x1fd))/0xb)+-parseInt(_0xd8c556(0x1f7))/0xc*(-parseInt(_0xd8c556(0x1f5))/0xd);if(_0x249db0===_0x379d14)break;else _0x7bf868['push'](_0x7bf868['shift']());}catch(_0x535fd0){_0x7bf868['push'](_0x7bf868['shift']());}}}(a23_0x448f,0x35b03));const winston=require(a23_0x36bd0c(0x20f)),fs=require('fs'),path=require(a23_0x36bd0c(0x204)),logDir=a23_0x36bd0c(0x1f1);!fs[a23_0x36bd0c(0x20d)](logDir)&&fs[a23_0x36bd0c(0x207)](logDir);const a23_0x42c553={};a23_0x42c553[a23_0x36bd0c(0x206)]=a23_0x36bd0c(0x1f3);const a23_0x487308={};function a23_0x3bd0(_0x118943,_0x3b57a9){const _0x448f01=a23_0x448f();return a23_0x3bd0=function(_0x3bd093,_0x54d888){_0x3bd093=_0x3bd093-0x1ed;let _0xa755a6=_0x448f01[_0x3bd093];return _0xa755a6;},a23_0x3bd0(_0x118943,_0x3b57a9);}a23_0x487308['level']=!![];const a23_0x251dea={};a23_0x251dea[a23_0x36bd0c(0x1ed)]=a23_0x36bd0c(0x1ee),exports['logger']=new winston[(a23_0x36bd0c(0x205))]({'format':winston[a23_0x36bd0c(0x206)][a23_0x36bd0c(0x1f4)](winston['format']['timestamp'](a23_0x42c553),winston[a23_0x36bd0c(0x206)]['colorize'](a23_0x487308),winston[a23_0x36bd0c(0x206)][a23_0x36bd0c(0x20c)](_0x1d40f5=>_0x1d40f5[a23_0x36bd0c(0x1f2)]+'\x20-\x20'+_0x1d40f5[a23_0x36bd0c(0x1fc)]+':\x20'+_0x1d40f5[a23_0x36bd0c(0x1fe)])),'transports':[new winston[(a23_0x36bd0c(0x202))][(a23_0x36bd0c(0x20b))](a23_0x251dea),new winston[(a23_0x36bd0c(0x202))]['File']({'filename':path[a23_0x36bd0c(0x201)](logDir,a23_0x36bd0c(0x1f8)),'level':a23_0x36bd0c(0x1f0)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x36bd0c(0x1fb))]({'filename':path['join'](logDir,'usage.log'),'level':'debug'})]};function a23_0x448f(){const _0x124ade=['name','console.info','2724295qPjTjf','debug','log','timestamp','YYYY-MM-DD\x20HH:mm:ss','combine','78AabIfI','271798KNwZdd','1764108NpGHMU','events.log','6zUOSmA','1765YGvSxI','File','level','3894UhDbTc','message','272fTFAvD','4500zWCmfi','join','transports','69WiZowM','path','createLogger','format','mkdirSync','25605dTSXuk','1610OAmxim','932tdRvKM','Console','printf','existsSync','fileLogger','winston'];a23_0x448f=function(){return _0x124ade;};return a23_0x448f();}exports[a23_0x36bd0c(0x20e)]=new winston[(a23_0x36bd0c(0x205))](winstonFileLoggerParams);
1
+ const a23_0x34bcbd=a23_0x2706;(function(_0x382f5a,_0x388afc){const _0x38c684=a23_0x2706,_0x7ce34c=_0x382f5a();while(!![]){try{const _0x1bfd5b=parseInt(_0x38c684(0x11a))/0x1+-parseInt(_0x38c684(0x116))/0x2*(-parseInt(_0x38c684(0x10f))/0x3)+parseInt(_0x38c684(0x112))/0x4*(-parseInt(_0x38c684(0x103))/0x5)+parseInt(_0x38c684(0x118))/0x6*(parseInt(_0x38c684(0x117))/0x7)+-parseInt(_0x38c684(0x108))/0x8+parseInt(_0x38c684(0x107))/0x9*(-parseInt(_0x38c684(0x104))/0xa)+parseInt(_0x38c684(0x113))/0xb;if(_0x1bfd5b===_0x388afc)break;else _0x7ce34c['push'](_0x7ce34c['shift']());}catch(_0x369b96){_0x7ce34c['push'](_0x7ce34c['shift']());}}}(a23_0x3515,0xe85f3));const winston=require(a23_0x34bcbd(0x114)),fs=require('fs'),path=require('path'),logDir=a23_0x34bcbd(0x10c);!fs[a23_0x34bcbd(0xff)](logDir)&&fs['mkdirSync'](logDir);function a23_0x2706(_0xb9c01c,_0x55baa6){const _0x351516=a23_0x3515();return a23_0x2706=function(_0x2706cf,_0x1430ea){_0x2706cf=_0x2706cf-0xfd;let _0xcae0f3=_0x351516[_0x2706cf];return _0xcae0f3;},a23_0x2706(_0xb9c01c,_0x55baa6);}const a23_0x81f76c={};a23_0x81f76c['format']=a23_0x34bcbd(0x110);function a23_0x3515(){const _0x4491d7=['debug','existsSync','Console','message','level','65wnbVLM','670270peVpma','join','printf','153KkCHmz','8171176KUbVlK','createLogger','usage.log','format','log','combine','File','126933TdbHOp','YYYY-MM-DD\x20HH:mm:ss','timestamp','550572wwLYHj','43934957dswPvF','winston','\x20-\x20','6YzpTLX','14omNRIq','1007892IFaagw','console.info','445026WNyOTd','transports','colorize','events.log'];a23_0x3515=function(){return _0x4491d7;};return a23_0x3515();}const a23_0x45e540={};a23_0x45e540[a23_0x34bcbd(0x102)]=!![];const a23_0x4be6c9={};a23_0x4be6c9['name']=a23_0x34bcbd(0x119),exports['logger']=new winston[(a23_0x34bcbd(0x109))]({'format':winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x10d)](winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x111)](a23_0x81f76c),winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x11c)](a23_0x45e540),winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x106)](_0x5f4870=>_0x5f4870[a23_0x34bcbd(0x111)]+a23_0x34bcbd(0x115)+_0x5f4870['level']+':\x20'+_0x5f4870[a23_0x34bcbd(0x101)])),'transports':[new winston[(a23_0x34bcbd(0x11b))][(a23_0x34bcbd(0x100))](a23_0x4be6c9),new winston[(a23_0x34bcbd(0x11b))][(a23_0x34bcbd(0x10e))]({'filename':path[a23_0x34bcbd(0x105)](logDir,a23_0x34bcbd(0xfd)),'level':a23_0x34bcbd(0xfe)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x34bcbd(0x11b))][(a23_0x34bcbd(0x10e))]({'filename':path[a23_0x34bcbd(0x105)](logDir,a23_0x34bcbd(0x10a)),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x34bcbd(0x109))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x5b7c(){const _0x352a46=['2593446ZTvXYL','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','484449vgPrBG','fKrKA','4221320tMJpnS','exports','env','usage','epilogue','commandDir','412152ArLVlb','8358CGgRAW','1264MOPvLo','./config/constants','145656lohRKi','CZTwQ','demandCommand','16299TVbdzo','root','8HXdBos'];a24_0x5b7c=function(){return _0x352a46;};return a24_0x5b7c();}const a24_0x1feca5=a24_0x9a5f;(function(_0x4bd095,_0x1255c6){const _0xa29846=a24_0x9a5f,_0x47c1a4=_0x4bd095();while(!![]){try{const _0x3c2737=parseInt(_0xa29846(0xc5))/0x1+parseInt(_0xa29846(0xc9))/0x2+-parseInt(_0xa29846(0xc6))/0x3*(parseInt(_0xa29846(0xba))/0x4)+-parseInt(_0xa29846(0xbf))/0x5+parseInt(_0xa29846(0xbb))/0x6+parseInt(_0xa29846(0xbd))/0x7+-parseInt(_0xa29846(0xc7))/0x8*(-parseInt(_0xa29846(0xb8))/0x9);if(_0x3c2737===_0x1255c6)break;else _0x47c1a4['push'](_0x47c1a4['shift']());}catch(_0x375853){_0x47c1a4['push'](_0x47c1a4['shift']());}}}(a24_0x5b7c,0x6734a));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x1feca5(0xc8));process[a24_0x1feca5(0xc1)][a24_0x1feca5(0xbc)]=0x1;function run(_0x285348){const _0x328261=a24_0x1feca5,_0x4e61da={};_0x4e61da[_0x328261(0xbe)]='commands',_0x4e61da[_0x328261(0xb6)]='help';const _0x28f6a4=_0x4e61da;_0x285348[_0x328261(0xc2)](HELP_HEADER_MESSAGE[_0x328261(0xb9)])[_0x328261(0xc4)](_0x28f6a4[_0x328261(0xbe)])[_0x328261(0xb7)]()['help'](_0x28f6a4[_0x328261(0xb6)])[_0x328261(0xc3)](HELP_FOOTER_MESSAGE);}function a24_0x9a5f(_0x1fc665,_0x5116ae){const _0x5b7c42=a24_0x5b7c();return a24_0x9a5f=function(_0x9a5f01,_0x312a6c){_0x9a5f01=_0x9a5f01-0xb6;let _0x4b89f1=_0x5b7c42[_0x9a5f01];return _0x4b89f1;},a24_0x9a5f(_0x1fc665,_0x5116ae);}module[a24_0x1feca5(0xc0)]=run;
2
+ 'use strict';const a24_0x18cfb7=a24_0x455b;(function(_0x466f81,_0x6f7815){const _0x138e9d=a24_0x455b,_0x5eb49c=_0x466f81();while(!![]){try{const _0x27d62d=parseInt(_0x138e9d(0xda))/0x1+parseInt(_0x138e9d(0xd9))/0x2+parseInt(_0x138e9d(0xe1))/0x3+parseInt(_0x138e9d(0xd0))/0x4*(-parseInt(_0x138e9d(0xd6))/0x5)+-parseInt(_0x138e9d(0xdd))/0x6*(parseInt(_0x138e9d(0xdb))/0x7)+-parseInt(_0x138e9d(0xd5))/0x8*(-parseInt(_0x138e9d(0xd4))/0x9)+-parseInt(_0x138e9d(0xe2))/0xa;if(_0x27d62d===_0x6f7815)break;else _0x5eb49c['push'](_0x5eb49c['shift']());}catch(_0x9252bc){_0x5eb49c['push'](_0x5eb49c['shift']());}}}(a24_0x2489,0xec63e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x18cfb7(0xd8));process[a24_0x18cfb7(0xd2)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x3713c1){const _0x45c988=a24_0x18cfb7,_0x213274={};_0x213274[_0x45c988(0xd3)]=_0x45c988(0xcf),_0x213274[_0x45c988(0xde)]='help';const _0x41fd15=_0x213274;_0x3713c1[_0x45c988(0xdc)](HELP_HEADER_MESSAGE[_0x45c988(0xd7)])[_0x45c988(0xdf)](_0x41fd15[_0x45c988(0xd3)])[_0x45c988(0xe0)]()['help'](_0x41fd15[_0x45c988(0xde)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x18cfb7(0xd1)]=run;function a24_0x455b(_0x237284,_0x35a365){const _0x2489f9=a24_0x2489();return a24_0x455b=function(_0x455baf,_0x22e5da){_0x455baf=_0x455baf-0xcf;let _0x24e7e8=_0x2489f9[_0x455baf];return _0x24e7e8;},a24_0x455b(_0x237284,_0x35a365);}function a24_0x2489(){const _0x306abe=['usage','37314MUxAFx','blLaL','commandDir','demandCommand','5096229mJCIry','9296360EYTihD','commands','20NvIelY','exports','env','hkCGc','54063zRYWlB','136yDhwAm','142465amHMaZ','root','./config/constants','1913602viiPuA','22753wwNvVy','833bBqKYh'];a24_0x2489=function(){return _0x306abe;};return a24_0x2489();}