browserstack-node-sdk 1.55.4 → 1.55.5

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 (199) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +3 -2
  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/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/capsMapping.js +1 -1
  156. package/src/helpers/central-scanner/constants.js +1 -1
  157. package/src/helpers/central-scanner/helpers.js +1 -1
  158. package/src/helpers/classLogger.js +1 -1
  159. package/src/helpers/globals.js +1 -1
  160. package/src/helpers/helper.js +1 -1
  161. package/src/helpers/logger.js +1 -1
  162. package/src/helpers/metadata.js +1 -1
  163. package/src/helpers/patchHelper.js +1 -1
  164. package/src/helpers/patchHelpers.js +1 -1
  165. package/src/helpers/percy/Percy.js +1 -1
  166. package/src/helpers/percy/PercyBinary.js +1 -1
  167. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  168. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  169. package/src/helpers/percy/PercySDK.js +1 -1
  170. package/src/helpers/percy/index.js +1 -1
  171. package/src/helpers/percy/utils.js +1 -1
  172. package/src/helpers/performance/constants.js +1 -1
  173. package/src/helpers/performance/performance-tester.js +1 -1
  174. package/src/helpers/playwright-helper.js +1 -1
  175. package/src/helpers/processHelper.js +1 -1
  176. package/src/helpers/puppeteer-helper.js +1 -1
  177. package/src/helpers/request-spy.js +1 -1
  178. package/src/helpers/setKeepAlive.js +1 -1
  179. package/src/helpers/stackFrameUtils.js +1 -0
  180. package/src/helpers/test-observability/constants.js +1 -1
  181. package/src/helpers/test-observability/error-handler.js +1 -1
  182. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  183. package/src/helpers/test-observability/sessionHandler.js +1 -1
  184. package/src/helpers/test-observability/utils.js +1 -1
  185. package/src/helpers/test-orchestration/constants.js +1 -1
  186. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  187. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  188. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  189. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  190. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  191. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  192. package/src/helpers/testhub/constants.js +1 -1
  193. package/src/helpers/testhub/testhubHandler.js +1 -1
  194. package/src/helpers/testhub/utils.js +1 -1
  195. package/src/helpers/timeoutPromise.js +1 -1
  196. package/src/helpers/utilities.js +1 -1
  197. package/src/helpers/w3cMapping.js +1 -1
  198. package/src/hubAllocationMethods.js +1 -1
  199. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x4bf32a=a15_0x1e98;(function(_0x2ca08b,_0x17b86c){const _0x472353=a15_0x1e98,_0xf5b6f=_0x2ca08b();while(!![]){try{const _0x42bb41=-parseInt(_0x472353(0x1a0))/0x1+parseInt(_0x472353(0x1b7))/0x2+-parseInt(_0x472353(0x1ac))/0x3*(parseInt(_0x472353(0x1ad))/0x4)+-parseInt(_0x472353(0x19f))/0x5*(-parseInt(_0x472353(0x1ab))/0x6)+-parseInt(_0x472353(0x1b5))/0x7*(parseInt(_0x472353(0x1be))/0x8)+parseInt(_0x472353(0x19e))/0x9*(parseInt(_0x472353(0x1ba))/0xa)+parseInt(_0x472353(0x1dc))/0xb;if(_0x42bb41===_0x17b86c)break;else _0xf5b6f['push'](_0xf5b6f['shift']());}catch(_0x2c47b2){_0xf5b6f['push'](_0xf5b6f['shift']());}}}(a15_0x3dc0,0x4946f));const fs=require('fs'),got=require(a15_0x4bf32a(0x1c5)),{table}=require(a15_0x4bf32a(0x1c0)),{v4:uuidv4}=require(a15_0x4bf32a(0x1ce)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4bf32a(0x1b9)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x4bf32a(0x197));function a15_0x1e98(_0x35bbf4,_0xdf1ff3){const _0x3dc0c7=a15_0x3dc0();return a15_0x1e98=function(_0x1e98b4,_0x560982){_0x1e98b4=_0x1e98b4-0x191;let _0x5bd012=_0x3dc0c7[_0x1e98b4];return _0x5bd012;},a15_0x1e98(_0x35bbf4,_0xdf1ff3);}exports[a15_0x4bf32a(0x1b4)]=a15_0x4bf32a(0x1aa),exports[a15_0x4bf32a(0x1b0)]=a15_0x4bf32a(0x1c1),exports[a15_0x4bf32a(0x1e6)]=function(_0xa7c92f){const _0x4150e1=a15_0x4bf32a,_0x24596c={};_0x24596c[_0x4150e1(0x19b)]=_0x4150e1(0x1a6),_0x24596c[_0x4150e1(0x1b1)]=_0x4150e1(0x1d1),_0x24596c[_0x4150e1(0x196)]='help';const _0x2033dc=_0x24596c,_0x494535={};_0x494535['description']=_0x2033dc[_0x4150e1(0x19b)],_0x494535[_0x4150e1(0x1a1)]=_0x2033dc[_0x4150e1(0x1b1)];const _0x4a31a3={};return _0x4a31a3[_0x4150e1(0x1bc)]=_0x494535,_0xa7c92f[_0x4150e1(0x1bb)](HELP_HEADER_MESSAGE[_0x4150e1(0x1e3)][_0x4150e1(0x1da)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4150e1(0x1af)](_0x4a31a3)[_0x4150e1(0x1d2)](_0x2033dc['ajzbs'])[_0x4150e1(0x1eb)];},exports[a15_0x4bf32a(0x1e9)]=async function(_0x4d1270){const _0x2c299c=a15_0x4bf32a,_0x1da805={'cFyxg':function(_0x1e9100){return _0x1e9100();},'PDrAk':function(_0x25dc6b){return _0x25dc6b();},'anrBR':_0x2c299c(0x193),'xxpIa':function(_0x2cbcb2,_0x417cf0,_0x4dc280,_0x3dadf6,_0x35e06c,_0x20808f,_0x148e9e){return _0x2cbcb2(_0x417cf0,_0x4dc280,_0x3dadf6,_0x35e06c,_0x20808f,_0x148e9e);},'FjWwQ':'list-grids-called','JuSwq':_0x2c299c(0x1c4),'xhbpC':_0x2c299c(0x1c7),'MZufi':function(_0x5a26f3,_0x36127d,_0x1fcd80){return _0x5a26f3(_0x36127d,_0x1fcd80);},'usRzZ':function(_0x3c1973,_0x41674d,_0x3c4ee2,_0x323640,_0x5f4acb,_0x3687f6,_0x41b0ad){return _0x3c1973(_0x41674d,_0x3c4ee2,_0x323640,_0x5f4acb,_0x3687f6,_0x41b0ad);},'Bvbhw':function(_0x30766b,_0x18ca8f,_0x5e6bb2){return _0x30766b(_0x18ca8f,_0x5e6bb2);},'ZLDPC':function(_0x4dbe19,_0x475470){return _0x4dbe19!==_0x475470;},'cQKJE':function(_0x559654,_0x514477){return _0x559654!==_0x514477;},'qxKsl':function(_0x1861eb,_0x41aabb){return _0x1861eb===_0x41aabb;},'rqeAQ':_0x2c299c(0x1c9),'bRxkI':_0x2c299c(0x1bf),'lYxTN':_0x2c299c(0x1c2),'aWpeN':'status','BnYGJ':'running','NRYKm':_0x2c299c(0x1e2),'uuims':_0x2c299c(0x1ee),'OKaty':function(_0x2ece16,_0x851eb3){return _0x2ece16(_0x851eb3);},'YIOnh':function(_0x245ef9,_0x1fe3f3){return _0x245ef9===_0x1fe3f3;},'hCnAq':_0x2c299c(0x1cd),'rPbKP':function(_0x386a64,_0x19f349,_0x31f180,_0x141f6f,_0x1d68b7,_0x76a36c,_0x30bf5b){return _0x386a64(_0x19f349,_0x31f180,_0x141f6f,_0x1d68b7,_0x76a36c,_0x30bf5b);},'XlFlG':_0x2c299c(0x1ec),'VjxYu':function(_0x2e6690,_0x5f4290,_0x4adfe6,_0x4b4c5d,_0x27a984,_0x2a7b4f,_0x2179d4){return _0x2e6690(_0x5f4290,_0x4adfe6,_0x4b4c5d,_0x27a984,_0x2a7b4f,_0x2179d4);},'UErgq':_0x2c299c(0x199),'dwKmh':function(_0x5203b8,_0x4da82b,_0x28264d,_0x579311,_0x39febe,_0xfa2069,_0x188674){return _0x5203b8(_0x4da82b,_0x28264d,_0x579311,_0x39febe,_0xfa2069,_0x188674);},'hTmQa':_0x2c299c(0x1dd)};try{global_registry[_0x2c299c(0x1e4)]=_0x1da805[_0x2c299c(0x1a8)](uuidv4);!fs[_0x2c299c(0x1ae)](_0x1da805[_0x2c299c(0x195)](getCredentialsPath))&&(console[_0x2c299c(0x192)](_0x1da805[_0x2c299c(0x1a7)]),await _0x1da805['xxpIa'](sendInstrumentationEvent,_0x4d1270,_0x1da805[_0x2c299c(0x1cf)],messageTypes[_0x2c299c(0x1e0)],_0x1da805[_0x2c299c(0x1db)],null,_0x4d1270),process[_0x2c299c(0x191)](0x1));const _0x5c56dd=JSON['parse'](fs[_0x2c299c(0x1d3)](_0x1da805['cFyxg'](getCredentialsPath)));let _0xe1c4ed=_0x2c299c(0x1d6)+AG_API_URL+'/packages/cli/get-grids';_0x4d1270[_0x2c299c(0x1c6)]&&(_0xe1c4ed='https://'+AG_API_URL+_0x2c299c(0x1d8));const _0x3e18fc={'method':_0x1da805[_0x2c299c(0x19d)],'headers':_0x1da805[_0x2c299c(0x1bd)](getAuthHeader,_0x5c56dd[_0x2c299c(0x1b8)]['username'],_0x5c56dd[_0x2c299c(0x1b8)][_0x2c299c(0x1cb)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x5c56dd[_0x2c299c(0x1b8)]['username'],global_registry['bstackAccesskey']=_0x5c56dd[_0x2c299c(0x1b8)][_0x2c299c(0x1cb)],_0x1da805['usRzZ'](sendInstrumentationEvent,_0x4d1270,_0x1da805[_0x2c299c(0x1cf)],messageTypes[_0x2c299c(0x1a2)],null,null,_0x4d1270);const _0x1a6db1=await _0x1da805[_0x2c299c(0x1c8)](got,_0xe1c4ed,_0x3e18fc);if(_0x1da805[_0x2c299c(0x1d5)](_0x1a6db1,null)&&_0x1da805[_0x2c299c(0x1e5)](_0x1a6db1,undefined)&&_0x1da805[_0x2c299c(0x1d4)](_0x1a6db1['statusCode'],0xc8)){const _0x1cd814=JSON[_0x2c299c(0x1d7)](_0x1a6db1[_0x2c299c(0x1ea)]);console[_0x2c299c(0x1ca)](_0x1da805['rqeAQ']);const _0x4059d8=[];_0x4059d8[_0x2c299c(0x1ed)]([_0x1da805[_0x2c299c(0x1e8)],_0x1da805['lYxTN'],_0x1da805[_0x2c299c(0x1e7)],_0x1da805[_0x2c299c(0x1a3)],_0x1da805['NRYKm'],_0x1da805[_0x2c299c(0x1b6)]]),_0x1cd814[_0x2c299c(0x198)](_0x27a69c=>{const _0x481b63=_0x2c299c;_0x4059d8['push']([_0x27a69c['id'],_0x27a69c[_0x481b63(0x1c3)],_0x27a69c[_0x481b63(0x1b2)],_0x27a69c[_0x481b63(0x1e1)],_0x27a69c[_0x481b63(0x1e2)],_0x27a69c[_0x481b63(0x1a4)]]);}),console[_0x2c299c(0x1ca)](_0x1da805[_0x2c299c(0x19c)](table,_0x4059d8)),process['exit'](0x0);}_0x1da805[_0x2c299c(0x194)](_0x1a6db1[_0x2c299c(0x1de)],0x191)&&(console[_0x2c299c(0x192)](_0x1da805['hCnAq']),await _0x1da805[_0x2c299c(0x19a)](sendInstrumentationEvent,_0x4d1270,_0x1da805['FjWwQ'],messageTypes[_0x2c299c(0x1e0)],_0x1da805[_0x2c299c(0x1cc)],null,_0x4d1270),process[_0x2c299c(0x191)](0x1)),console[_0x2c299c(0x192)](_0x2c299c(0x1a5)+JSON[_0x2c299c(0x1df)](_0x1a6db1)),await _0x1da805['VjxYu'](sendInstrumentationEvent,_0x4d1270,_0x1da805[_0x2c299c(0x1cf)],messageTypes[_0x2c299c(0x1e0)],_0x1da805[_0x2c299c(0x1d9)],_0x1a6db1,_0x4d1270),process[_0x2c299c(0x191)](0x1);}catch(_0x50e7a8){console[_0x2c299c(0x192)](_0x2c299c(0x1a9)+_0x50e7a8['stack']),await _0x1da805[_0x2c299c(0x1b3)](sendInstrumentationEvent,_0x4d1270,_0x1da805[_0x2c299c(0x1cf)],messageTypes[_0x2c299c(0x1e0)],_0x1da805[_0x2c299c(0x1d0)],_0x50e7a8,_0x4d1270),process[_0x2c299c(0x191)](0x1);}};function a15_0x3dc0(){const _0x278cb8=['pfWMG','status','dwKmh','command','2921009aeOOcL','uuims','792812RsuJDI','Browserstack','../../config/constants','10enMiJO','usage','all-grids','MZufi','8tylSND','grid-id','table','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','grid-name','name','init-not-called','got','allGrids','GET','Bvbhw','\x0aFound\x20the\x20following\x20grids:\x0a','log','password','XlFlG','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uuid','FjWwQ','hTmQa','boolean','help','readFileSync','qxKsl','ZLDPC','https://','parse','/packages/cli/get-all-grids','UErgq','grid','JuSwq','3678554GxCPgB','unknown-error','statusCode','stringify','ERROR','running','queued','list','requestId','cQKJE','builder','aWpeN','bRxkI','handler','body','argv','unauthorised','push','cluster-name','exit','error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YIOnh','PDrAk','ajzbs','../../utils/instrumentationUtils','forEach','server-error','rPbKP','MJBwP','OKaty','xhbpC','3678849zqAbPN','20sdJeOq','111023ubiFaM','type','INFO','BnYGJ','clusterName','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','anrBR','cFyxg','Failed\x20to\x20list\x20resources!\x20Error:\x20','grids','40926BerxGj','12uHNjjf','338412vQVOXO','existsSync','options','desc'];a15_0x3dc0=function(){return _0x278cb8;};return a15_0x3dc0();}
1
+ function a15_0x5c44(){const _0x6e7c8b=['tswMT','unauthorised','argv','Browserstack','usage','pHvwv','DMHRl','unknown-error','IDjKY','status','TOiAh','running','all-grids','name','got','Yjxjj','allGrids','/packages/cli/get-grids','description','INFO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KvOIR','ERROR','stringify','zVmcC','grid-id','init-not-called','table','\x0aFound\x20the\x20following\x20grids:\x0a','grid-name','BSGvh','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','push','list','username','body','list-grids-called','1590543dHqCYl','password','error','JVIuf','14619WWIBPA','help','mhMSf','3434ReJxRM','smFbK','../../utils/utilityMethods','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','requestId','statusCode','forEach','parse','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','tuaCk','HJyNO','255564eYZTej','exit','101YXjVfb','epilogue','existsSync','log','cluster-name','PvhJX','776454bvlYLk','8VYpfMo','bstackUsername','server-error','ykrOS','stack','20uhHvll','boolean','88099DUexXk','builder','GET','OdWVu','30RZAlQL','Failed\x20to\x20list\x20resources!\x20Error:\x20','NGkGL','queued','clusterName','ZQbXE','QfZnE','1059520qtxkNq'];a15_0x5c44=function(){return _0x6e7c8b;};return a15_0x5c44();}const a15_0x5478ae=a15_0x4f92;function a15_0x4f92(_0x22e192,_0x575840){const _0x5c448f=a15_0x5c44();return a15_0x4f92=function(_0x4f92bc,_0x1bc720){_0x4f92bc=_0x4f92bc-0xe4;let _0x7acef3=_0x5c448f[_0x4f92bc];return _0x7acef3;},a15_0x4f92(_0x22e192,_0x575840);}(function(_0x1b4aab,_0x3f63e1){const _0xbc1677=a15_0x4f92,_0x7e8581=_0x1b4aab();while(!![]){try{const _0x381d47=parseInt(_0xbc1677(0xf9))/0x1*(parseInt(_0xbc1677(0xec))/0x2)+parseInt(_0xbc1677(0xe9))/0x3*(-parseInt(_0xbc1677(0x100))/0x4)+parseInt(_0xbc1677(0x105))/0x5*(-parseInt(_0xbc1677(0xf7))/0x6)+parseInt(_0xbc1677(0xff))/0x7+-parseInt(_0xbc1677(0x112))/0x8+parseInt(_0xbc1677(0xe5))/0x9+parseInt(_0xbc1677(0x10b))/0xa*(parseInt(_0xbc1677(0x107))/0xb);if(_0x381d47===_0x3f63e1)break;else _0x7e8581['push'](_0x7e8581['shift']());}catch(_0x572979){_0x7e8581['push'](_0x7e8581['shift']());}}}(a15_0x5c44,0x2a1f3));const fs=require('fs'),got=require(a15_0x5478ae(0x121)),{table}=require(a15_0x5478ae(0x12e)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x5478ae(0xee)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']='grids',exports['desc']=a15_0x5478ae(0x132),exports[a15_0x5478ae(0x108)]=function(_0x36dff8){const _0x3009da=a15_0x5478ae,_0x45ca83={};_0x45ca83[_0x3009da(0x11b)]=_0x3009da(0xf4),_0x45ca83['QfZnE']=_0x3009da(0x106),_0x45ca83[_0x3009da(0x128)]='help';const _0x35100e=_0x45ca83,_0x2aaf54={};_0x2aaf54[_0x3009da(0x125)]=_0x35100e['IDjKY'],_0x2aaf54['type']=_0x35100e[_0x3009da(0x111)];const _0x26bb8f={};return _0x26bb8f[_0x3009da(0x11f)]=_0x2aaf54,_0x36dff8[_0x3009da(0x117)](HELP_HEADER_MESSAGE[_0x3009da(0x134)]['grid'])[_0x3009da(0xfa)](HELP_FOOTER_MESSAGE)['options'](_0x26bb8f)[_0x3009da(0xea)](_0x35100e['KvOIR'])[_0x3009da(0x115)];},exports['handler']=async function(_0x227a6d){const _0xc54480=a15_0x5478ae,_0x541f40={'HJyNO':function(_0x2e469f){return _0x2e469f();},'DMHRl':function(_0x237018){return _0x237018();},'NGkGL':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BSGvh':function(_0x1f0689,_0x44bd41,_0x27247c,_0x2c09db,_0x44dca2,_0x1931e8,_0x50a208){return _0x1f0689(_0x44bd41,_0x27247c,_0x2c09db,_0x44dca2,_0x1931e8,_0x50a208);},'smFbK':_0xc54480(0xe4),'tswMT':_0xc54480(0x12d),'WSPes':_0xc54480(0x109),'pHvwv':function(_0x76b99e,_0x46ff14,_0x7a1edb){return _0x76b99e(_0x46ff14,_0x7a1edb);},'mhMSf':function(_0x2f395f,_0x4602a9,_0x37b843,_0x3f0c6e,_0x4950d2,_0x1cb8ef,_0x2726ef){return _0x2f395f(_0x4602a9,_0x37b843,_0x3f0c6e,_0x4950d2,_0x1cb8ef,_0x2726ef);},'JVIuf':function(_0xa68228,_0x45f7fd,_0x458314){return _0xa68228(_0x45f7fd,_0x458314);},'wDxeM':function(_0x30cb69,_0x25bd36){return _0x30cb69!==_0x25bd36;},'PfZVG':function(_0x52264b,_0x2db462){return _0x52264b!==_0x2db462;},'OdWVu':function(_0x1afb98,_0x156502){return _0x1afb98===_0x156502;},'wFvOG':_0xc54480(0x12f),'YdkLM':_0xc54480(0x12c),'LEkWv':_0xc54480(0x130),'PvhJX':_0xc54480(0x11c),'Yjxjj':_0xc54480(0x11e),'HBtoi':_0xc54480(0x10e),'TOiAh':_0xc54480(0xfd),'ZQbXE':function(_0x32a9d9,_0x4840ba){return _0x32a9d9(_0x4840ba);},'GdXFj':_0xc54480(0x127),'zVmcC':function(_0x1ebb96,_0x1192ea,_0x2ed464,_0x10d4ef,_0x1a64fb,_0x5ed418,_0x50db2a){return _0x1ebb96(_0x1192ea,_0x2ed464,_0x10d4ef,_0x1a64fb,_0x5ed418,_0x50db2a);},'QDsjx':_0xc54480(0x114),'ykrOS':_0xc54480(0x102),'tuaCk':_0xc54480(0x11a)};try{global_registry[_0xc54480(0xf0)]=_0x541f40[_0xc54480(0xf6)](uuidv4);!fs[_0xc54480(0xfb)](_0x541f40[_0xc54480(0x119)](getCredentialsPath))&&(console[_0xc54480(0xe7)](_0x541f40[_0xc54480(0x10d)]),await _0x541f40[_0xc54480(0x131)](sendInstrumentationEvent,_0x227a6d,_0x541f40[_0xc54480(0xed)],messageTypes[_0xc54480(0x129)],_0x541f40[_0xc54480(0x113)],null,_0x227a6d),process[_0xc54480(0xf8)](0x1));const _0x7a4fcf=JSON[_0xc54480(0xf3)](fs['readFileSync'](_0x541f40[_0xc54480(0x119)](getCredentialsPath)));let _0x2eba41='https://'+AG_API_URL+_0xc54480(0x124);_0x227a6d[_0xc54480(0x123)]&&(_0x2eba41='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x19d7bb={'method':_0x541f40['WSPes'],'headers':_0x541f40[_0xc54480(0x118)](getAuthHeader,_0x7a4fcf[_0xc54480(0x116)][_0xc54480(0x135)],_0x7a4fcf[_0xc54480(0x116)][_0xc54480(0xe6)]),'throwHttpErrors':![]};global_registry[_0xc54480(0x101)]=_0x7a4fcf[_0xc54480(0x116)][_0xc54480(0x135)],global_registry['bstackAccesskey']=_0x7a4fcf[_0xc54480(0x116)]['password'],_0x541f40[_0xc54480(0xeb)](sendInstrumentationEvent,_0x227a6d,_0x541f40['smFbK'],messageTypes[_0xc54480(0x126)],null,null,_0x227a6d);const _0x2e3dbc=await _0x541f40[_0xc54480(0xe8)](got,_0x2eba41,_0x19d7bb);if(_0x541f40['wDxeM'](_0x2e3dbc,null)&&_0x541f40['PfZVG'](_0x2e3dbc,undefined)&&_0x541f40[_0xc54480(0x10a)](_0x2e3dbc[_0xc54480(0xf1)],0xc8)){const _0x49abfb=JSON['parse'](_0x2e3dbc[_0xc54480(0x136)]);console[_0xc54480(0xfc)](_0x541f40['wFvOG']);const _0x49bb9e=[];_0x49bb9e[_0xc54480(0x133)]([_0x541f40['YdkLM'],_0x541f40['LEkWv'],_0x541f40[_0xc54480(0xfe)],_0x541f40[_0xc54480(0x122)],_0x541f40['HBtoi'],_0x541f40[_0xc54480(0x11d)]]),_0x49abfb[_0xc54480(0xf2)](_0x4ec888=>{const _0x9ed3b0=_0xc54480;_0x49bb9e[_0x9ed3b0(0x133)]([_0x4ec888['id'],_0x4ec888[_0x9ed3b0(0x120)],_0x4ec888[_0x9ed3b0(0x11c)],_0x4ec888[_0x9ed3b0(0x11e)],_0x4ec888[_0x9ed3b0(0x10e)],_0x4ec888[_0x9ed3b0(0x10f)]]);}),console[_0xc54480(0xfc)](_0x541f40[_0xc54480(0x110)](table,_0x49bb9e)),process[_0xc54480(0xf8)](0x0);}_0x541f40[_0xc54480(0x10a)](_0x2e3dbc[_0xc54480(0xf1)],0x191)&&(console[_0xc54480(0xe7)](_0x541f40['GdXFj']),await _0x541f40[_0xc54480(0x12b)](sendInstrumentationEvent,_0x227a6d,_0x541f40[_0xc54480(0xed)],messageTypes[_0xc54480(0x129)],_0x541f40['QDsjx'],null,_0x227a6d),process[_0xc54480(0xf8)](0x1)),console[_0xc54480(0xe7)](_0xc54480(0xef)+JSON[_0xc54480(0x12a)](_0x2e3dbc)),await _0x541f40[_0xc54480(0x12b)](sendInstrumentationEvent,_0x227a6d,_0x541f40['smFbK'],messageTypes[_0xc54480(0x129)],_0x541f40[_0xc54480(0x103)],_0x2e3dbc,_0x227a6d),process[_0xc54480(0xf8)](0x1);}catch(_0xd4be2){console[_0xc54480(0xe7)](_0xc54480(0x10c)+_0xd4be2[_0xc54480(0x104)]),await _0x541f40[_0xc54480(0x131)](sendInstrumentationEvent,_0x227a6d,_0x541f40[_0xc54480(0xed)],messageTypes[_0xc54480(0x129)],_0x541f40[_0xc54480(0xf5)],_0xd4be2,_0x227a6d),process[_0xc54480(0xf8)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x1ad3(_0x3e3bea,_0x5d4c45){const _0x22e053=a16_0x22e0();return a16_0x1ad3=function(_0x1ad365,_0x439b04){_0x1ad365=_0x1ad365-0x1a1;let _0x3b490b=_0x22e053[_0x1ad365];return _0x3b490b;},a16_0x1ad3(_0x3e3bea,_0x5d4c45);}const a16_0x17e11c=a16_0x1ad3;function a16_0x22e0(){const _0x4b7a0a=['uoaWB','command','23540cFqSAg','usage','strict','254318krynFP','3180PEkgMa','888228OXnCiM','136362DyUtGB','1EcdOxp','epilogue','pre_check','handler','demandCommand','builder','440BHVPAX','25023rTajfu','desc','15OrgQVK','922876FLekWm','3297CTSAOC','tmJaS','commandDir'];a16_0x22e0=function(){return _0x4b7a0a;};return a16_0x22e0();}(function(_0x23d49c,_0x165277){const _0x5341af=a16_0x1ad3,_0x92ae00=_0x23d49c();while(!![]){try{const _0x421473=-parseInt(_0x5341af(0x1a2))/0x1*(parseInt(_0x5341af(0x1b5))/0x2)+-parseInt(_0x5341af(0x1a9))/0x3+-parseInt(_0x5341af(0x1ac))/0x4+parseInt(_0x5341af(0x1ab))/0x5*(-parseInt(_0x5341af(0x1a1))/0x6)+parseInt(_0x5341af(0x1ad))/0x7*(-parseInt(_0x5341af(0x1a8))/0x8)+-parseInt(_0x5341af(0x1b7))/0x9+-parseInt(_0x5341af(0x1b6))/0xa*(-parseInt(_0x5341af(0x1b2))/0xb);if(_0x421473===_0x165277)break;else _0x92ae00['push'](_0x92ae00['shift']());}catch(_0x38678e){_0x92ae00['push'](_0x92ae00['shift']());}}}(a16_0x22e0,0x1dab3));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x17e11c(0x1b1)]='pre-check',exports[a16_0x17e11c(0x1aa)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x17e11c(0x1a7)]=function(_0x49545f){const _0x2e9792=a16_0x17e11c,_0x1407a9={};_0x1407a9[_0x2e9792(0x1ae)]='precheck_commands',_0x1407a9[_0x2e9792(0x1b0)]='help';const _0x3a9ca9=_0x1407a9;return _0x49545f[_0x2e9792(0x1b3)](HELP_HEADER_MESSAGE[_0x2e9792(0x1a4)])[_0x2e9792(0x1a3)](HELP_FOOTER_MESSAGE)[_0x2e9792(0x1af)](_0x3a9ca9[_0x2e9792(0x1ae)])[_0x2e9792(0x1a6)]()['recommendCommands']()[_0x2e9792(0x1b4)]()['help'](_0x3a9ca9[_0x2e9792(0x1b0)]);},exports[a16_0x17e11c(0x1a5)]=function(_0x3a2b50){};
1
+ function a16_0x2214(_0x3a2bfb,_0x273389){const _0x5775dd=a16_0x5775();return a16_0x2214=function(_0x2214dc,_0x3552c5){_0x2214dc=_0x2214dc-0x136;let _0x3e0702=_0x5775dd[_0x2214dc];return _0x3e0702;},a16_0x2214(_0x3a2bfb,_0x273389);}const a16_0x177e60=a16_0x2214;(function(_0x529987,_0x15f277){const _0x18d1b7=a16_0x2214,_0x53abef=_0x529987();while(!![]){try{const _0x7da1e4=parseInt(_0x18d1b7(0x136))/0x1*(-parseInt(_0x18d1b7(0x140))/0x2)+parseInt(_0x18d1b7(0x13f))/0x3+parseInt(_0x18d1b7(0x13a))/0x4+-parseInt(_0x18d1b7(0x142))/0x5+parseInt(_0x18d1b7(0x138))/0x6+-parseInt(_0x18d1b7(0x147))/0x7+parseInt(_0x18d1b7(0x137))/0x8;if(_0x7da1e4===_0x15f277)break;else _0x53abef['push'](_0x53abef['shift']());}catch(_0x406122){_0x53abef['push'](_0x53abef['shift']());}}}(a16_0x5775,0x92ea7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a16_0x177e60(0x141),exports[a16_0x177e60(0x143)]=a16_0x177e60(0x144),exports['builder']=function(_0x17da87){const _0x53f5b6=a16_0x177e60,_0x261e1b={};_0x261e1b['mXaoC']='precheck_commands',_0x261e1b[_0x53f5b6(0x13d)]=_0x53f5b6(0x13c);const _0x10b7b5=_0x261e1b;return _0x17da87['usage'](HELP_HEADER_MESSAGE[_0x53f5b6(0x13b)])[_0x53f5b6(0x149)](HELP_FOOTER_MESSAGE)[_0x53f5b6(0x145)](_0x10b7b5[_0x53f5b6(0x139)])[_0x53f5b6(0x13e)]()[_0x53f5b6(0x146)]()['strict']()[_0x53f5b6(0x13c)](_0x10b7b5[_0x53f5b6(0x13d)]);},exports[a16_0x177e60(0x148)]=function(_0x625e95){};function a16_0x5775(){const _0xc8a144=['8ouAqEk','11547144caoDCw','3920202PSnxAL','mXaoC','1683972ZuEMeC','pre_check','help','eMhOI','demandCommand','568419DDlWvr','253042fUWygL','pre-check','842200KbWzlz','desc','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','commandDir','recommendCommands','6473957yFwPwZ','handler','epilogue'];a16_0x5775=function(){return _0xc8a144;};return a16_0x5775();}
@@ -1 +1 @@
1
- const a17_0x14fa52=a17_0x4aad;function a17_0xcb28(){const _0x4ca178=['GpxLJ','MFUjn','is\x20already\x20present','length','WsYkV','delay','pre-check-failed','Report\x20saved\x20in\x20','toLowerCase','jdvOK','reconnecting-websocket','log/report_','ubgbT','WebSocket','EUNKF','N/A','NJNlm','PfnCP','fxAPv','pre_check','existsSync','region','kKNLl','CNUWI','grid-profile','includes','xBnRZ','Failure','builder','toolInstalledResp','Setting\x20cloud\x20provider\x20as\x20','body','gridProfile','WoHAO','glitU','===\x20Precheck\x20Report\x20-\x20','SaBip','qebGr','Xxuer','method','pre-check','cloud-provider-not-supported','../../config/logger','replace','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','argv','header','\x20region\x20-\x20','requestId','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','info','\x20\x20Code:\x20','fkjMQ','will\x20be\x20created','QoQhj','gxFOp','EDuOr','xFMvD','MmVWw','vtWHH','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YZhkZ','getUTCHours','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','cluster-check-failed-','Cluster\x20','message','mfJly','otEle','usage','\x20===\x0a\x0a','GplgM','THfRa','FyfMC','1JAeCmE','pre-check-grid-profile-empty','dZTml','.txt','vAwgZ','2068970ykHcrj','headers','ixtrp','find','Uootk','clusterRegion','4056200zBaqki','qbkNX','init','TLSv1_2_client_method','XsRRp','Failed\x20in\x20pre-check!\x20Error:\x20','getUTCDate','XwPeu','nktCs','mJwCO','QDeLn','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','lFGGB','ucjmp','Status:\x20','utf-8','username','stack\x20trace\x20','JMaDN','lCIBm','Grid\x20profile\x20fetched\x20for\x20pre-check','throwHttpErrors','sendEventToBackend','yzhkF','accessResp','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','WpARY','CVVml','eUWfc','OsBpS','connectionTimeout','atBZm','response','pre-check-grid-called','woQgD','CzItW','pEVeJ','type','zApRV','uuid','MDGfI','33TxVzPX','credential-not-found','isTls1_2_SUPPORTED','SxQZv','SSL\x20Configured','IvbEZ','jFRIt','exit','\x20error\x20:\x20','pwaQt',']\x20status\x20:\x20','forEach','BaXPG','1575834uaQYoP','9393822VtYpcS','fgkCN','parse','ROVeS','Message:\x20','JrxWr','3833851TZhofy','\x20\x20Message:\x20','EZVQy','FXtDF','getUTCMinutes','fyssH','.\x20Please\x20provide\x20all\x20required\x20arguments.','Cluster\x20details\x0a-----------------------\x0a','fQSun','cloudProvider','zTMOa','jJAEO','aNLjd','data','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Invalid\x20input.\x20grid\x20profiles:\x20','TZSUL','TfuDB','`\x20is\x20present\x20in\x20region\x20`','LrXDj','fKPQR','TmKaw','HasRj','debug','bstackUsername','JuisZ','dummy-grid','authHeader','10SIjEWs','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','description','cloud-provider','stack','HEgMP','8YdozUO','LsDKD','Error\x20Details:\x0a','xyLYx','ToKhQ','bstackAccesskey','pDxhE','ERROR','NIzsb','hYpuI','BYqxR','Pre-check\x20running\x20for\x20Cloud\x20-\x20','tMqla','isTrialGridAccessible','../../utils/utilityMethods','YlAfZ','TMnId','XCSzX','531546kQIqht','\x20data\x20:\x20','FCmOg','`\x20,error\x20:\x20','status','DVMiR','wsGco','pnZoy','clusterName','push','string','error\x20stack\x20:\x20','icQKQ','AWsAz','KwRHM','name','usKyW','epilogue','Cluster\x20`','options','620790jHcbkt','\x20\x20Stack:\x20','sdFqD','cluster-name','iIYdq','iYsMr','GET','`\x20already\x20exists','isCliToolInstalled','../../utils/instrumentationUtils','LOG','Pxttn','error','https://','kwWHZ','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Browserstack','tkaBA','code','Whitelisted\x20browserstack','grid\x20profile\x20flow\x20','IdsUC','../../utils/webSocketUtils','lZwcn','grid','CLOUD_PROVIDER','hiazB','KeDCY','Missing\x20required\x20arguments:\x20','<PasswordPlaceholder>','<UsernamePlaceholder>','Success','FjJOu','stringify','WtnEW','BoiGg','got','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','help','owLzL','OKQOE','isClusterPresent','SKCdF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','NDUoW','pre-check-cluster-args-not-passed','FeOjS'];a17_0xcb28=function(){return _0x4ca178;};return a17_0xcb28();}(function(_0x2d7d57,_0x5e17e4){const _0x3d03c9=a17_0x4aad,_0x2136f7=_0x2d7d57();while(!![]){try{const _0x285829=parseInt(_0x3d03c9(0x193))/0x1*(parseInt(_0x3d03c9(0x198))/0x2)+-parseInt(_0x3d03c9(0x1d4))/0x3+parseInt(_0x3d03c9(0x19e))/0x4+-parseInt(_0x3d03c9(0x1f7))/0x5*(parseInt(_0x3d03c9(0x20f))/0x6)+parseInt(_0x3d03c9(0x1db))/0x7+parseInt(_0x3d03c9(0x1fd))/0x8*(-parseInt(_0x3d03c9(0x1d5))/0x9)+parseInt(_0x3d03c9(0x11a))/0xa*(-parseInt(_0x3d03c9(0x1c7))/0xb);if(_0x285829===_0x5e17e4)break;else _0x2136f7['push'](_0x2136f7['shift']());}catch(_0xa92ae7){_0x2136f7['push'](_0x2136f7['shift']());}}}(a17_0xcb28,0xa20dd));const fs=require('fs'),ws=require('ws'),got=require(a17_0x14fa52(0x13e)),{v4:uuidv4}=require(a17_0x14fa52(0x1c5)),ReconnectingWebSocket=require(a17_0x14fa52(0x153)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x14fa52(0x20b)),{logger}=require(a17_0x14fa52(0x173)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x14fa52(0x130)),{sendInstrumentationEvent}=require(a17_0x14fa52(0x123));function a17_0x4aad(_0x44ca95,_0x5b5fd2){const _0xcb2893=a17_0xcb28();return a17_0x4aad=function(_0x4aadda,_0x1546d4){_0x4aadda=_0x4aadda-0x117;let _0x69385e=_0xcb2893[_0x4aadda];return _0x69385e;},a17_0x4aad(_0x44ca95,_0x5b5fd2);}exports['command']=a17_0x14fa52(0x132),exports['desc']=a17_0x14fa52(0x1b7),exports[a17_0x14fa52(0x165)]=function(_0xbe9111){const _0x4874ac=a17_0x14fa52,_0x28835d={};_0x28835d[_0x4874ac(0x128)]=_0x4874ac(0x129),_0x28835d[_0x4874ac(0x125)]=_0x4874ac(0x219),_0x28835d['SxQZv']=_0x4874ac(0x1a9),_0x28835d['eUWfc']=_0x4874ac(0x175),_0x28835d[_0x4874ac(0x203)]=_0x4874ac(0x185),_0x28835d['FCmOg']=_0x4874ac(0x140);const _0xde25bc=_0x28835d,_0x5db9b8={};_0x5db9b8[_0x4874ac(0x1f9)]=_0xde25bc[_0x4874ac(0x128)],_0x5db9b8['type']=_0xde25bc['Pxttn'];const _0x504ed5={};_0x504ed5[_0x4874ac(0x1f9)]=_0xde25bc[_0x4874ac(0x1ca)],_0x504ed5[_0x4874ac(0x1c3)]=_0xde25bc[_0x4874ac(0x125)];const _0x141db7={};_0x141db7[_0x4874ac(0x1f9)]=_0xde25bc[_0x4874ac(0x1ba)],_0x141db7[_0x4874ac(0x1c3)]=_0xde25bc['Pxttn'];const _0x3a4d09={};_0x3a4d09[_0x4874ac(0x1f9)]=_0xde25bc['pDxhE'],_0x3a4d09[_0x4874ac(0x1c3)]=_0xde25bc[_0x4874ac(0x125)];const _0x2c2e6f={};return _0x2c2e6f[_0x4874ac(0x11d)]=_0x5db9b8,_0x2c2e6f[_0x4874ac(0x1fa)]=_0x504ed5,_0x2c2e6f[_0x4874ac(0x15e)]=_0x141db7,_0x2c2e6f[_0x4874ac(0x161)]=_0x3a4d09,_0xbe9111[_0x4874ac(0x18e)](HELP_HEADER_MESSAGE[_0x4874ac(0x15c)])[_0x4874ac(0x117)](HELP_FOOTER_MESSAGE)[_0x4874ac(0x119)](_0x2c2e6f)[_0x4874ac(0x140)](_0xde25bc[_0x4874ac(0x211)])[_0x4874ac(0x176)];};async function inputValidation(_0x400908,_0x10a988){const _0x40694e=a17_0x14fa52,_0x794aee={'fgkCN':_0x40694e(0x13f),'MDGfI':_0x40694e(0x1ff),'EDuOr':'N/A','qebGr':'cloud-provider','lZwcn':function(_0x2335b6,_0x111b9f){return _0x2335b6+_0x111b9f;},'mfJly':_0x40694e(0x139),'uBClN':'Failure','DVMiR':function(_0x441ee6,_0x2e4291){return _0x441ee6||_0x2e4291;},'BYqxR':_0x40694e(0x14b),'xBnRZ':_0x40694e(0x17e),'ucjmp':'error','jdvOK':_0x40694e(0x15e),'REqaB':_0x40694e(0x129),'XwPeu':_0x40694e(0x219),'johWC':_0x40694e(0x1a9),'BoiGg':_0x40694e(0x175),'aqVSf':_0x40694e(0x185),'LrXDj':_0x40694e(0x140),'EUNKF':function(_0x16a4c4,_0x1aa528){return _0x16a4c4!==_0x1aa528;},'FyfMC':'PbKCh','KwRHM':_0x40694e(0x1f1),'sdFqD':function(_0x870ee,_0x4c7c09){return _0x870ee===_0x4c7c09;},'GpxLJ':'hfIVr','hiazB':_0x40694e(0x186),'iIYdq':function(_0x86a14d,_0x234191){return _0x86a14d!==_0x234191;},'OsBpS':_0x40694e(0x1b1),'CzItW':_0x40694e(0x141),'WtnEW':_0x40694e(0x11d),'oVvHS':function(_0x2bc620,_0x529397){return _0x2bc620!==_0x529397;},'fWzcD':_0x40694e(0x1e6),'NDUoW':_0x40694e(0x14a),'BaXPG':_0x40694e(0x1fe),'dZTml':function(_0x2c5f1d,_0x340619){return _0x2c5f1d>_0x340619;},'ubgbT':'DczyT','jQwej':function(_0x5efbe4,_0x123e11,_0x19a763,_0x41a128,_0x3c0e0b,_0x1787c4,_0x572f4c,_0x549274){return _0x5efbe4(_0x123e11,_0x19a763,_0x41a128,_0x3c0e0b,_0x1787c4,_0x572f4c,_0x549274);},'kKNLl':_0x40694e(0x1bf),'WsYkV':_0x40694e(0x147),'IdsUC':_0x40694e(0x1fc),'OKQOE':_0x40694e(0x1e9),'woQgD':function(_0x11ab71,_0x489a51,_0x35c45b,_0x2e2470,_0x236683,_0x2e9f30,_0x890eed,_0x4bfdcc){return _0x11ab71(_0x489a51,_0x35c45b,_0x2e2470,_0x236683,_0x2e9f30,_0x890eed,_0x4bfdcc);},'qbkNX':_0x40694e(0x172),'xyLYx':'eRHeR','aNLjd':_0x40694e(0x1dd),'dfeTl':_0x40694e(0x120),'JMaDN':function(_0x14cc71,_0x1951e9,_0x3c6f97){return _0x14cc71(_0x1951e9,_0x3c6f97);},'yHrSe':function(_0x29740b,_0x2ea7d8,_0x50000e,_0x1420f6,_0x25bbab,_0x438a50){return _0x29740b(_0x2ea7d8,_0x50000e,_0x1420f6,_0x25bbab,_0x438a50);},'THfRa':_0x40694e(0x171),'FjJOu':_0x40694e(0x161),'tkaBA':function(_0x2f0fab,_0x5dc662){return _0x2f0fab===_0x5dc662;},'NIzsb':function(_0x1ada62,_0x4442c8){return _0x1ada62!==_0x4442c8;},'Xxuer':_0x40694e(0x1eb),'WoHAO':_0x40694e(0x216),'otEle':function(_0x369b90,_0x5d2171){return _0x369b90(_0x5d2171);},'ToKhQ':function(_0xeb6021,_0x2e5520){return _0xeb6021!==_0x2e5520;},'tMqla':_0x40694e(0x16b),'nktCs':function(_0x1e7b54,_0x4a4d36,_0x28058e,_0x35cdea,_0x368073,_0x523e57,_0x1a4b25,_0x4bbe0a){return _0x1e7b54(_0x4a4d36,_0x28058e,_0x35cdea,_0x368073,_0x523e57,_0x1a4b25,_0x4bbe0a);},'AWsAz':_0x40694e(0x194),'fxAPv':_0x40694e(0x1a8),'fyssH':_0x40694e(0x148),'mJwCO':_0x40694e(0x1bd),'bMtvU':_0x40694e(0x1b2),'nMoVV':function(_0x2c3a26,_0x567ab1){return _0x2c3a26===_0x567ab1;},'rkJdm':_0x40694e(0x183),'RYrki':_0x40694e(0x180),'GplgM':function(_0x147d51,_0x25d729){return _0x147d51!==_0x25d729;},'SKCdF':'dpyHC','CNUWI':_0x40694e(0x1ef)};let _0x2a38db;try{if(_0x794aee[_0x40694e(0x157)](_0x794aee[_0x40694e(0x192)],_0x794aee[_0x40694e(0x21d)])){if(_0x400908[_0x40694e(0x217)]||_0x400908[_0x40694e(0x1e4)]||_0x400908[_0x40694e(0x15e)]){if(_0x794aee[_0x40694e(0x11c)](_0x794aee[_0x40694e(0x149)],_0x794aee[_0x40694e(0x134)]))_0x582194[_0x40694e(0x17b)](_0x40694e(0x167)+_0x11cafa[_0x40694e(0x133)]+'\x20'),_0x28df54[_0x40694e(0x1e4)]=_0x1d6aa8['CLOUD_PROVIDER'];else{const _0x31d601=[];!_0x400908[_0x40694e(0x217)]&&(_0x794aee[_0x40694e(0x11e)](_0x794aee[_0x40694e(0x1bb)],_0x794aee[_0x40694e(0x1c1)])?_0x31d601[_0x40694e(0x218)](_0x794aee[_0x40694e(0x13c)]):_0x3d57e7[_0x40694e(0x1ce)](0x1));;!_0x400908['cloudProvider']&&(_0x794aee['oVvHS'](_0x794aee['fWzcD'],_0x794aee[_0x40694e(0x146)])?_0x31d601[_0x40694e(0x218)](_0x794aee[_0x40694e(0x16e)]):(_0x5bdefe[_0x40694e(0x126)](_0x794aee[_0x40694e(0x1d6)]),_0x447b76[_0x40694e(0x1ce)](0x1)));;!_0x400908['region']&&(_0x794aee[_0x40694e(0x11e)](_0x794aee[_0x40694e(0x1d3)],_0x794aee[_0x40694e(0x1d3)])?_0x4ba710[_0x40694e(0x17b)]('Cluster\x20`'+_0x5f56c3[_0x40694e(0x217)]+_0x40694e(0x121)):_0x31d601[_0x40694e(0x218)](_0x794aee[_0x40694e(0x152)]));;_0x794aee[_0x40694e(0x195)](_0x31d601[_0x40694e(0x14c)],0x0)&&(_0x794aee[_0x40694e(0x11c)](_0x794aee[_0x40694e(0x155)],_0x794aee[_0x40694e(0x155)])?(_0x2a38db=_0x40694e(0x136)+_0x31d601['join'](',\x20')+_0x40694e(0x1e1),await _0x794aee['jQwej'](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes[_0x40694e(0x204)],_0x794aee[_0x40694e(0x15f)],_0x794aee[_0x40694e(0x14d)],_0x794aee[_0x40694e(0x1ab)]),logger['error'](_0x2a38db),process['exit'](0x1)):(_0x34f7b2+=_0x794aee[_0x40694e(0x1c6)],_0x55327e+=_0x40694e(0x1dc)+(_0x2afb34[_0x40694e(0x18b)]||_0x794aee['EDuOr'])+'\x0a',_0x57f23f+='\x20\x20Code:\x20'+(_0x56e07f[_0x40694e(0x12c)]||_0x794aee[_0x40694e(0x181)])+'\x0a',_0x46f7f2+=_0x40694e(0x11b)+(_0x2cdd21['stack']||_0x794aee['EDuOr'])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x40694e(0x162)](_0x400908['cloudProvider'][_0x40694e(0x151)]())&&(_0x794aee[_0x40694e(0x11e)](_0x794aee[_0x40694e(0x12f)],_0x794aee[_0x40694e(0x12f)])?_0x2ef0a4['error'](_0x40694e(0x21a)+_0x1ee7c6[_0x40694e(0x126)][_0x40694e(0x1fb)]):(_0x2a38db=_0x794aee[_0x40694e(0x142)],await _0x794aee[_0x40694e(0x1c0)](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes[_0x40694e(0x204)],_0x794aee[_0x40694e(0x15f)],_0x794aee[_0x40694e(0x19f)],_0x794aee[_0x40694e(0x1ab)]),logger['error'](_0x2a38db),!_0x400908[_0x40694e(0x1e4)]&&(_0x794aee[_0x40694e(0x11c)](_0x794aee[_0x40694e(0x200)],_0x794aee[_0x40694e(0x200)])?(logger['info'](_0x40694e(0x167)+DEFAULT_CLUSTER_DETAILS[_0x40694e(0x133)]+'\x20'),_0x400908['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x545e97[_0x40694e(0x218)](_0x794aee['qebGr'])))),global_registry['clusterName']=_0x400908[_0x40694e(0x217)],global_registry['cloudProvider']=_0x400908[_0x40694e(0x1e4)],global_registry[_0x40694e(0x19d)]=_0x400908['region'];}}else{if(_0x400908[_0x40694e(0x169)]){if(_0x794aee[_0x40694e(0x11c)](_0x794aee['aNLjd'],_0x794aee[_0x40694e(0x1e7)])){global_registry[_0x40694e(0x169)]=_0x400908['gridProfile'],logger[_0x40694e(0x1f2)](_0x40694e(0x12e)+_0x400908['gridProfile']);const _0x3a1b99=_0x40694e(0x127)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x5ef698={};_0x5ef698[_0x40694e(0x170)]=_0x794aee['dfeTl'],_0x5ef698[_0x40694e(0x199)]=global_registry['authHeader'],_0x5ef698[_0x40694e(0x1b3)]=![];const _0x93cfd1=_0x5ef698,_0x4be229=await _0x794aee[_0x40694e(0x1b0)](got,_0x3a1b99,_0x93cfd1),_0x54fd61=await _0x794aee['yHrSe'](responseValidation,_0x4be229,_0x794aee[_0x40694e(0x191)],_0x794aee[_0x40694e(0x13a)],_0x400908,_0x10a988);let _0x10bb42={};if(_0x794aee[_0x40694e(0x12b)](_0x54fd61,0xc8)){if(_0x794aee[_0x40694e(0x205)](_0x794aee[_0x40694e(0x16f)],_0x794aee[_0x40694e(0x16a)])){const _0x163125=JSON[_0x40694e(0x1d7)](_0x4be229[_0x40694e(0x168)]),_0x148804=_0x163125[_0x40694e(0x19b)](_0xf15c3=>_0xf15c3[_0x40694e(0x21e)]===_0x400908[_0x40694e(0x169)])||null;if(_0x794aee[_0x40694e(0x18d)](isUndefined,_0x148804)){if(_0x794aee[_0x40694e(0x201)](_0x794aee[_0x40694e(0x209)],_0x794aee[_0x40694e(0x209)])){const {header:_0x2e1260,response:_0x3e10be}=_0xa7c584,{status:_0x4256e7,data:_0x3270d1,error:_0x357615}=_0x3e10be;_0x37f08c+=_0x2e1260+'\x20#'+_0x794aee[_0x40694e(0x131)](_0x149b29,0x1)+'\x0a',_0x28dcaa+=_0x40694e(0x1ac)+(_0x4256e7?_0x794aee[_0x40694e(0x18c)]:_0x794aee['uBClN'])+'\x0a',_0xd1ebc2+='Message:\x20'+_0x794aee[_0x40694e(0x214)](_0x3270d1,_0x794aee[_0x40694e(0x181)])+'\x0a',_0x357615&&(_0x512b87+=_0x794aee['MDGfI'],_0x40f6f0+=_0x40694e(0x1dc)+(_0x357615['message']||_0x794aee['EDuOr'])+'\x0a',_0x2b546b+='\x20\x20Code:\x20'+(_0x357615[_0x40694e(0x12c)]||_0x794aee[_0x40694e(0x181)])+'\x0a',_0x22f12e+=_0x40694e(0x11b)+(_0x357615['stack']||_0x794aee[_0x40694e(0x181)])+'\x0a'),_0x18ffec+='\x0a\x0a';}else _0x2a38db=_0x40694e(0x1ea)+_0x400908[_0x40694e(0x169)]+_0x40694e(0x1f8),await _0x794aee[_0x40694e(0x1a6)](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes['ERROR'],_0x794aee[_0x40694e(0x15f)],_0x794aee[_0x40694e(0x21c)],_0x794aee[_0x40694e(0x1ab)]),logger[_0x40694e(0x126)](_0x2a38db),process[_0x40694e(0x1ce)](0x1);}else _0x794aee[_0x40694e(0x157)](_0x794aee[_0x40694e(0x15b)],_0x794aee[_0x40694e(0x1e0)])?_0x10bb42=_0x148804:_0x222217+=_0x40694e(0x18a)+_0x2966bc[_0x40694e(0x217)]+'\x20'+(_0x1c6d50?_0x794aee[_0x40694e(0x207)]:_0x794aee[_0x40694e(0x163)])+'\x0a\x0a';}else{const _0x3c09c8={};_0x3c09c8[_0x40694e(0x1c3)]=_0x1bb5da['LOG'],_0x3c09c8[_0x40694e(0x18b)]=_0x594aa2,_0x39774b[_0x40694e(0x1b4)](_0x52110b,_0x3c09c8,_0x794aee[_0x40694e(0x1ab)],!![]);}}else _0x794aee['sdFqD'](_0x794aee[_0x40694e(0x1a7)],_0x794aee[_0x40694e(0x1a7)])?process[_0x40694e(0x1ce)](0x1):(_0x225d52[_0x40694e(0x17b)]('['+_0x35f09f+_0x40694e(0x1d1)+_0x20fab2['status']+_0x40694e(0x210)+_0x1ffcde[_0x40694e(0x1e8)]+_0x40694e(0x1cf)+_0x28eccf[_0x40694e(0x126)]),_0x5eea3a[_0x40694e(0x126)]&&_0x4ee5cf[_0x40694e(0x126)](_0x40694e(0x21a)+_0x1c4a74[_0x40694e(0x126)]['stack']));const _0x1dc5b5={};_0x1dc5b5['type']=WS_EVENTS[_0x40694e(0x124)],_0x1dc5b5['message']=_0x794aee['bMtvU'],webSocketUtils[_0x40694e(0x1b4)](_0x10a988,_0x1dc5b5),global_registry['cloudProvider']=_0x10bb42[_0x40694e(0x1e4)],global_registry[_0x40694e(0x19d)]=_0x10bb42['region'],global_registry['clusterName']=_0x10bb42[_0x40694e(0x217)];}else _0x88cfd9['push'](_0x794aee[_0x40694e(0x152)]);}else _0x794aee['nMoVV'](_0x794aee['rkJdm'],_0x794aee['RYrki'])?_0x2b0bfb+=_0x40694e(0x18a)+_0x5b9d45[_0x40694e(0x217)]+_0x40694e(0x17a):(logger[_0x40694e(0x126)](_0x794aee[_0x40694e(0x1d6)]),process[_0x40694e(0x1ce)](0x1));}}else _0x110877=_0x3d0659;}catch(_0x1909e9){if(_0x794aee[_0x40694e(0x190)](_0x794aee[_0x40694e(0x144)],_0x794aee[_0x40694e(0x160)]))_0x2a38db=_0x40694e(0x188)+_0x1909e9+':\x20'+_0x1909e9[_0x40694e(0x1fb)],logger[_0x40694e(0x126)](_0x2a38db),await _0x794aee['woQgD'](reportToGalactusAndSendToEDS,_0x400908,_0x10a988,_0x2a38db,messageTypes[_0x40694e(0x204)],_0x794aee['kKNLl'],_0x794aee[_0x40694e(0x19f)],_0x794aee[_0x40694e(0x1ab)]),process[_0x40694e(0x1ce)](0x1);else{const _0x19275e={};_0x19275e[_0x40694e(0x1f9)]=_0x794aee['REqaB'],_0x19275e[_0x40694e(0x1c3)]=_0x794aee[_0x40694e(0x1a5)];const _0x217c08={};_0x217c08[_0x40694e(0x1f9)]=_0x794aee['johWC'],_0x217c08[_0x40694e(0x1c3)]=_0x794aee['XwPeu'];const _0x390b2c={};_0x390b2c[_0x40694e(0x1f9)]=_0x794aee[_0x40694e(0x13d)],_0x390b2c[_0x40694e(0x1c3)]=_0x794aee[_0x40694e(0x1a5)];const _0x48aeac={};_0x48aeac['description']=_0x794aee['aqVSf'],_0x48aeac[_0x40694e(0x1c3)]=_0x794aee[_0x40694e(0x1a5)];const _0x3f3cdb={};return _0x3f3cdb[_0x40694e(0x11d)]=_0x19275e,_0x3f3cdb[_0x40694e(0x1fa)]=_0x217c08,_0x3f3cdb['region']=_0x390b2c,_0x3f3cdb['grid-profile']=_0x48aeac,_0x4cbccb[_0x40694e(0x18e)](_0x1a680a[_0x40694e(0x15c)])[_0x40694e(0x117)](_0x310130)[_0x40694e(0x119)](_0x3f3cdb)[_0x40694e(0x140)](_0x794aee[_0x40694e(0x1ee)])[_0x40694e(0x176)];}}}function printResponse(_0x42da7c,_0x4f30d7){const _0x21d562=a17_0x14fa52,_0x1f6c7e={};_0x1f6c7e[_0x21d562(0x1b5)]='cluster-name',_0x1f6c7e['Igvsa']=function(_0x4c898d,_0x5e1a4a){return _0x4c898d===_0x5e1a4a;},_0x1f6c7e[_0x21d562(0x1f0)]=_0x21d562(0x1b8),_0x1f6c7e[_0x21d562(0x17d)]=_0x21d562(0x1a2);const _0x2f6ec5=_0x1f6c7e;logger[_0x21d562(0x17b)]('['+_0x42da7c+_0x21d562(0x1d1)+_0x4f30d7[_0x21d562(0x213)]+_0x21d562(0x210)+_0x4f30d7['data']+'\x20error\x20:\x20'+_0x4f30d7[_0x21d562(0x126)]),_0x4f30d7[_0x21d562(0x126)]&&(_0x2f6ec5['Igvsa'](_0x2f6ec5[_0x21d562(0x1f0)],_0x2f6ec5[_0x21d562(0x17d)])?_0x50ef2a['push'](_0x2f6ec5[_0x21d562(0x1b5)]):logger['error'](_0x21d562(0x21a)+_0x4f30d7[_0x21d562(0x126)][_0x21d562(0x1fb)]));}async function generateReport(_0x18a0a6,_0x6c6bf6){const _0xaa7622=a17_0x14fa52,_0x907fda={'TfuDB':function(_0x2213e7,_0x52656d){return _0x2213e7+_0x52656d;},'iYsMr':_0xaa7622(0x139),'NJNlm':_0xaa7622(0x164),'pwaQt':function(_0x3f0840,_0x45ff83){return _0x3f0840||_0x45ff83;},'SaBip':_0xaa7622(0x158),'cIiFi':_0xaa7622(0x1ff),'FXtDF':_0xaa7622(0x1e2),'fQSun':function(_0xef7f20,_0x398439){return _0xef7f20!=_0x398439;},'ixtrp':_0xaa7622(0x14b),'XCSzX':'will\x20be\x20created','jFRIt':function(_0x969926){return _0x969926();}};let _0x165e41=_0xaa7622(0x16c)+global_registry['cloudProvider']+_0xaa7622(0x18f);return _0x18a0a6[_0xaa7622(0x1d2)]((_0x1ae92c,_0x4cf300)=>{const _0x497d8c=_0xaa7622,{header:_0xb53b15,response:_0x356cef}=_0x1ae92c,{status:_0x155dd1,data:_0x51e064,error:_0x22e450}=_0x356cef;_0x165e41+=_0xb53b15+'\x20#'+_0x907fda[_0x497d8c(0x1ec)](_0x4cf300,0x1)+'\x0a',_0x165e41+=_0x497d8c(0x1ac)+(_0x155dd1?_0x907fda[_0x497d8c(0x11f)]:_0x907fda[_0x497d8c(0x159)])+'\x0a',_0x165e41+=_0x497d8c(0x1d9)+_0x907fda[_0x497d8c(0x1d0)](_0x51e064,_0x907fda[_0x497d8c(0x16d)])+'\x0a',_0x22e450&&(_0x165e41+=_0x907fda['cIiFi'],_0x165e41+='\x20\x20Message:\x20'+(_0x22e450['message']||_0x907fda['SaBip'])+'\x0a',_0x165e41+=_0x497d8c(0x17c)+(_0x22e450[_0x497d8c(0x12c)]||_0x907fda[_0x497d8c(0x16d)])+'\x0a',_0x165e41+=_0x497d8c(0x11b)+(_0x22e450[_0x497d8c(0x1fb)]||_0x907fda['SaBip'])+'\x0a'),_0x165e41+='\x0a\x0a';}),_0x165e41+=_0x907fda[_0xaa7622(0x1de)],_0x907fda[_0xaa7622(0x1e3)](_0x6c6bf6,null)?_0x165e41+=_0xaa7622(0x18a)+global_registry['clusterName']+'\x20'+(_0x6c6bf6?_0x907fda[_0xaa7622(0x19a)]:_0x907fda[_0xaa7622(0x20e)])+'\x0a\x0a':_0x165e41+=_0xaa7622(0x18a)+global_registry[_0xaa7622(0x217)]+_0xaa7622(0x17a),_0x165e41+=_0x907fda[_0xaa7622(0x1cd)](getSystemMetaData),_0x165e41;};exports['handler']=async function(_0x5471d4){const _0x4c9cb1=a17_0x14fa52,_0x189197={'PfnCP':function(_0x262172){return _0x262172();},'KhFGO':function(_0x20ffc2){return _0x20ffc2();},'zqRYg':_0x4c9cb1(0x145),'pnoDf':function(_0x443957,_0x347e34,_0x3342bb,_0x1e9479,_0x2cbbb8,_0x1e18d5,_0x59c212,_0x539165){return _0x443957(_0x347e34,_0x3342bb,_0x1e9479,_0x2cbbb8,_0x1e18d5,_0x59c212,_0x539165);},'QoQhj':_0x4c9cb1(0x1bf),'lFGGB':_0x4c9cb1(0x1c8),'usKyW':_0x4c9cb1(0x126),'icQKQ':function(_0x31ddb1,_0x2baee2,_0xc534df,_0x286fab,_0x29d5ec,_0x1ea9a2,_0x20272e){return _0x31ddb1(_0x2baee2,_0xc534df,_0x286fab,_0x29d5ec,_0x1ea9a2,_0x20272e);},'ivPGG':_0x4c9cb1(0x138),'KeDCY':_0x4c9cb1(0x137),'vtWHH':function(_0x2170c1,_0x3a1dea,_0x378163){return _0x2170c1(_0x3a1dea,_0x378163);},'wsGco':_0x4c9cb1(0x1f5),'DlBuj':_0x4c9cb1(0x166),'JuisZ':'2|1|0|3|4','vAwgZ':function(_0x1de7cc,_0x109b67,_0x4d2d4a,_0x8ead63,_0x86626d,_0x29b9f2,_0x10df5b,_0x4bc36d){return _0x1de7cc(_0x109b67,_0x4d2d4a,_0x8ead63,_0x86626d,_0x29b9f2,_0x10df5b,_0x4bc36d);},'zTMOa':_0x4c9cb1(0x1b6),'YlAfZ':function(_0x1610b5){return _0x1610b5();},'zApRV':function(_0x1e3b53,_0x42f606,_0x7213e8){return _0x1e3b53(_0x42f606,_0x7213e8);},'kiibv':_0x4c9cb1(0x20a),'Uootk':function(_0x15a964,_0x32dfd2){return _0x15a964(_0x32dfd2);},'CVVml':_0x4c9cb1(0x1a1),'ROVeS':function(_0x2f4e6b,_0x5a1e91,_0x1b4fa0){return _0x2f4e6b(_0x5a1e91,_0x1b4fa0);},'hYpuI':_0x4c9cb1(0x1c9),'IvbEZ':'Tool\x20Installed','AibmJ':'User\x20Access','JrxWr':_0x4c9cb1(0x12d),'TMnId':_0x4c9cb1(0x1cb),'xFMvD':function(_0x41a913,_0x40c613){return _0x41a913+_0x40c613;},'pEVeJ':_0x4c9cb1(0x1ad),'YMKhB':function(_0x1dfcef,_0x2c8473,_0x2e2a8b,_0x255719,_0x5c9690,_0x387f11,_0x5ce1ef){return _0x1dfcef(_0x2c8473,_0x2e2a8b,_0x255719,_0x5c9690,_0x387f11,_0x5ce1ef);},'jxGNt':_0x4c9cb1(0x14f)};let _0x5f14a3,_0x5178ef;try{global_registry[_0x4c9cb1(0x179)]=_0x189197[_0x4c9cb1(0x15a)](uuidv4);!fs[_0x4c9cb1(0x15d)](_0x189197['KhFGO'](getCredentialsPath))&&(_0x5178ef=_0x189197['zqRYg'],logger[_0x4c9cb1(0x126)](_0x5178ef),await _0x189197['pnoDf'](reportToGalactusAndSendToEDS,_0x5471d4,_0x5f14a3,_0x5178ef,messageTypes[_0x4c9cb1(0x204)],_0x189197[_0x4c9cb1(0x17f)],_0x189197[_0x4c9cb1(0x1aa)],_0x189197[_0x4c9cb1(0x21f)]),process[_0x4c9cb1(0x1ce)](0x1));_0x189197['icQKQ'](sendInstrumentationEvent,_0x5471d4,_0x189197[_0x4c9cb1(0x17f)],messageTypes['INFO'],null,null,_0x5471d4);const _0x2f8427=JSON[_0x4c9cb1(0x1d7)](fs['readFileSync'](_0x189197[_0x4c9cb1(0x15a)](getCredentialsPath)));global_registry['bstackUsername']=_0x2f8427[_0x4c9cb1(0x12a)][_0x4c9cb1(0x1ae)],global_registry[_0x4c9cb1(0x202)]=_0x2f8427[_0x4c9cb1(0x12a)]['password'];const _0x5bca3a=WS_ENDPOINT[_0x4c9cb1(0x174)](_0x189197['ivPGG'],_0x2f8427[_0x4c9cb1(0x12a)][_0x4c9cb1(0x1ae)])[_0x4c9cb1(0x174)](_0x189197[_0x4c9cb1(0x135)],_0x2f8427[_0x4c9cb1(0x12a)]['password']),_0x3aeb70={};_0x3aeb70[_0x4c9cb1(0x156)]=ws,_0x3aeb70[_0x4c9cb1(0x1bc)]=0x36ee80,_0x5f14a3=new ReconnectingWebSocket(_0x5bca3a,[],_0x3aeb70),global_registry[_0x4c9cb1(0x1f6)]=_0x189197['vtWHH'](getAuthHeader,global_registry[_0x4c9cb1(0x1f3)],global_registry[_0x4c9cb1(0x202)]),await _0x189197[_0x4c9cb1(0x184)](inputValidation,_0x5471d4,_0x5f14a3),logger[_0x4c9cb1(0x17b)](_0x4c9cb1(0x208)+global_registry['cloudProvider']+_0x4c9cb1(0x178)+global_registry[_0x4c9cb1(0x19d)]);let _0x3dbd7c=await _0x189197[_0x4c9cb1(0x21b)](getCloudProviderObjectWithOutInit,global_registry[_0x4c9cb1(0x1e4)],global_registry[_0x4c9cb1(0x217)],_0x189197[_0x4c9cb1(0x215)],_0x5f14a3,webSocketUtils,_0x5471d4);const _0x1f8eaf=await _0x3dbd7c[_0x4c9cb1(0x122)]();_0x189197[_0x4c9cb1(0x184)](printResponse,_0x189197['DlBuj'],_0x1f8eaf),_0x3dbd7c=await _0x3dbd7c[_0x4c9cb1(0x1a0)]();let _0x600db=![];try{_0x600db=await _0x3dbd7c[_0x4c9cb1(0x143)]();}catch(_0x1589c2){const _0x1d9eb8=_0x189197[_0x4c9cb1(0x1f4)]['split']('|');let _0x44f10f=0x0;while(!![]){switch(_0x1d9eb8[_0x44f10f++]){case'0':logger[_0x4c9cb1(0x126)](_0x5178ef);continue;case'1':_0x600db=null;continue;case'2':_0x5178ef='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+_0x4c9cb1(0x1ed)+global_registry[_0x4c9cb1(0x19d)]+_0x4c9cb1(0x212)+_0x1589c2;continue;case'3':_0x5178ef+='\x0a'+JSON[_0x4c9cb1(0x13b)](_0x1589c2['stack']);continue;case'4':await _0x189197[_0x4c9cb1(0x197)](reportToGalactusAndSendToEDS,_0x5471d4,_0x5f14a3,_0x5178ef,messageTypes[_0x4c9cb1(0x204)],_0x189197[_0x4c9cb1(0x17f)],_0x4c9cb1(0x189)+global_registry['cloudProvider'],_0x189197[_0x4c9cb1(0x21f)]);continue;}break;}}_0x600db&&logger[_0x4c9cb1(0x17b)](_0x4c9cb1(0x118)+global_registry[_0x4c9cb1(0x217)]+_0x4c9cb1(0x121));const _0x53e43e=await _0x3dbd7c['checkAccess']();_0x189197[_0x4c9cb1(0x184)](printResponse,_0x189197[_0x4c9cb1(0x1e5)],_0x53e43e);const _0x1c6c25=await _0x189197[_0x4c9cb1(0x20c)](curlRequest);_0x189197[_0x4c9cb1(0x1c4)](printResponse,_0x189197['kiibv'],_0x1c6c25);const _0x15312a=await _0x189197[_0x4c9cb1(0x19c)](isTlsSupported,_0x189197[_0x4c9cb1(0x1b9)]);_0x189197[_0x4c9cb1(0x1d8)](printResponse,_0x189197[_0x4c9cb1(0x206)],_0x15312a);const _0x1669e5={};_0x1669e5[_0x4c9cb1(0x177)]=_0x189197[_0x4c9cb1(0x1cc)],_0x1669e5['response']=_0x1f8eaf;const _0x212299={};_0x212299[_0x4c9cb1(0x177)]=_0x189197['AibmJ'],_0x212299[_0x4c9cb1(0x1be)]=_0x53e43e;const _0x113492={};_0x113492[_0x4c9cb1(0x177)]=_0x189197[_0x4c9cb1(0x1da)],_0x113492[_0x4c9cb1(0x1be)]=_0x1c6c25;const _0x119ce3={};_0x119ce3[_0x4c9cb1(0x177)]=_0x189197[_0x4c9cb1(0x20d)],_0x119ce3[_0x4c9cb1(0x1be)]=_0x15312a;const _0x3970b8=[_0x1669e5,_0x212299,_0x113492,_0x119ce3],_0x11541a=await _0x189197[_0x4c9cb1(0x1c4)](generateReport,_0x3970b8,_0x600db),_0xdae133=new Date(),_0x13cb70=_0xdae133['getUTCFullYear']()+'_'+_0x189197[_0x4c9cb1(0x182)](_0xdae133['getUTCMonth'](),0x1)+'_'+_0xdae133[_0x4c9cb1(0x1a4)]()+'_'+_0xdae133[_0x4c9cb1(0x187)]()+'_'+_0xdae133[_0x4c9cb1(0x1df)](),_0x2ff416=_0x4c9cb1(0x154)+_0x13cb70+_0x4c9cb1(0x196);fs['writeFileSync'](_0x2ff416,_0x11541a,_0x189197[_0x4c9cb1(0x1c2)]),logger[_0x4c9cb1(0x17b)](_0x4c9cb1(0x150)+_0x2ff416),process[_0x4c9cb1(0x1ce)](0x0);}catch(_0x47128a){let _0x4fd9f7=_0x4c9cb1(0x1a3)+_0x47128a+'\x20';logger[_0x4c9cb1(0x126)](_0x4fd9f7),_0x4fd9f7+='\x0a'+JSON[_0x4c9cb1(0x13b)](_0x47128a[_0x4c9cb1(0x1fb)]),logger['debug'](_0x4c9cb1(0x1af)+_0x47128a['stack']);if(_0x5f14a3){const _0x3076e4={};_0x3076e4['type']=WS_EVENTS[_0x4c9cb1(0x124)],_0x3076e4[_0x4c9cb1(0x18b)]=_0x4fd9f7,webSocketUtils[_0x4c9cb1(0x1b4)](_0x5f14a3,_0x3076e4,_0x189197[_0x4c9cb1(0x21f)],!![]);}await webSocketUtils[_0x4c9cb1(0x14e)](0x7d0);const _0x3cb0df={};_0x3cb0df[_0x4c9cb1(0x126)]=_0x4fd9f7,await _0x189197['YMKhB'](sendInstrumentationEvent,_0x5471d4,_0x189197[_0x4c9cb1(0x17f)],messageTypes[_0x4c9cb1(0x204)],_0x189197['jxGNt'],_0x3cb0df,_0x5471d4),process[_0x4c9cb1(0x1ce)](0x1);}};
1
+ const a17_0xc471b4=a17_0x24bd;(function(_0x31dcfe,_0x3bb03e){const _0x9e8138=a17_0x24bd,_0x5672b4=_0x31dcfe();while(!![]){try{const _0x2c4da3=-parseInt(_0x9e8138(0x264))/0x1*(-parseInt(_0x9e8138(0x1d2))/0x2)+parseInt(_0x9e8138(0x250))/0x3*(-parseInt(_0x9e8138(0x234))/0x4)+-parseInt(_0x9e8138(0x1db))/0x5*(-parseInt(_0x9e8138(0x1f2))/0x6)+-parseInt(_0x9e8138(0x20d))/0x7*(-parseInt(_0x9e8138(0x206))/0x8)+-parseInt(_0x9e8138(0x17d))/0x9*(-parseInt(_0x9e8138(0x1ce))/0xa)+-parseInt(_0x9e8138(0x249))/0xb*(parseInt(_0x9e8138(0x1f0))/0xc)+parseInt(_0x9e8138(0x1ae))/0xd*(-parseInt(_0x9e8138(0x1be))/0xe);if(_0x2c4da3===_0x3bb03e)break;else _0x5672b4['push'](_0x5672b4['shift']());}catch(_0x2df38c){_0x5672b4['push'](_0x5672b4['shift']());}}}(a17_0x1cea,0x3c5be));const fs=require('fs'),ws=require('ws'),got=require(a17_0xc471b4(0x225)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0xc471b4(0x209)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0xc471b4(0x190)),{logger}=require(a17_0xc471b4(0x1ec)),{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_0xc471b4(0x1cf)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0xc471b4(0x26c)]=a17_0xc471b4(0x239),exports[a17_0xc471b4(0x1ed)]=a17_0xc471b4(0x18d),exports['builder']=function(_0x453bff){const _0x1378a1=a17_0xc471b4,_0x5961ec={};_0x5961ec[_0x1378a1(0x1c8)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x5961ec[_0x1378a1(0x1f5)]=_0x1378a1(0x1d3),_0x5961ec['hcqtz']=_0x1378a1(0x1a1),_0x5961ec[_0x1378a1(0x1af)]=_0x1378a1(0x1aa),_0x5961ec['qTSdR']=_0x1378a1(0x19c),_0x5961ec['BlflG']=_0x1378a1(0x1b6);const _0x3d8239=_0x5961ec,_0x2551c1={};_0x2551c1['description']=_0x3d8239[_0x1378a1(0x1c8)],_0x2551c1[_0x1378a1(0x208)]=_0x3d8239[_0x1378a1(0x1f5)];const _0x5305f5={};_0x5305f5[_0x1378a1(0x197)]=_0x3d8239[_0x1378a1(0x278)],_0x5305f5['type']=_0x3d8239[_0x1378a1(0x1f5)];const _0x40e495={};_0x40e495['description']=_0x3d8239[_0x1378a1(0x1af)],_0x40e495['type']=_0x3d8239[_0x1378a1(0x1f5)];const _0x408611={};_0x408611[_0x1378a1(0x197)]=_0x3d8239[_0x1378a1(0x26e)],_0x408611[_0x1378a1(0x208)]=_0x3d8239['yruJt'];const _0x2776c9={};return _0x2776c9['cluster-name']=_0x2551c1,_0x2776c9[_0x1378a1(0x240)]=_0x5305f5,_0x2776c9[_0x1378a1(0x265)]=_0x40e495,_0x2776c9[_0x1378a1(0x24a)]=_0x408611,_0x453bff[_0x1378a1(0x1e1)](HELP_HEADER_MESSAGE[_0x1378a1(0x273)])[_0x1378a1(0x237)](HELP_FOOTER_MESSAGE)[_0x1378a1(0x1de)](_0x2776c9)[_0x1378a1(0x1b6)](_0x3d8239[_0x1378a1(0x19d)])[_0x1378a1(0x1d4)];};async function inputValidation(_0x3ba5de,_0x307e43){const _0x543165=a17_0xc471b4,_0xe96ba1={'GZUhC':'is\x20already\x20present','eiWKY':_0x543165(0x238),'NoYcg':_0x543165(0x276),'iixrW':_0x543165(0x224),'lFqyc':_0x543165(0x240),'qXlEV':_0x543165(0x1a7),'hxlrT':'N/A','gdUwG':_0x543165(0x1fe),'XeQzm':_0x543165(0x1d3),'ARooe':_0x543165(0x1a1),'hGxWx':_0x543165(0x1aa),'XgFKW':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Injyb':_0x543165(0x1b6),'JTUkJ':function(_0x4cae99,_0x6973da){return _0x4cae99+_0x6973da;},'VpqHM':_0x543165(0x1d5),'agCwk':_0x543165(0x252),'WcBeI':function(_0x5e8ae5,_0x3abcfb){return _0x5e8ae5||_0x3abcfb;},'RftpM':'region','tDBuj':_0x543165(0x1bf),'DpjAU':function(_0x57f907,_0x237a8d){return _0x57f907===_0x237a8d;},'hxUZt':_0x543165(0x1e5),'hISul':function(_0x32e437,_0x5b8103){return _0x32e437!==_0x5b8103;},'iHLJa':_0x543165(0x1a0),'HTbKg':_0x543165(0x213),'CPhQK':_0x543165(0x1f6),'rQiSf':'azxrw','yqyVs':function(_0x2edfe5,_0x33f674){return _0x2edfe5!==_0x33f674;},'EhZgr':'sFcNb','Irywo':_0x543165(0x17f),'QIeNU':function(_0xde3626,_0x1a7079){return _0xde3626>_0x1a7079;},'EVOaH':function(_0x45ba02,_0x2cab47){return _0x45ba02!==_0x2cab47;},'KxBxy':_0x543165(0x191),'Hcdnr':function(_0x244462,_0x16e15b,_0x3621a0,_0x4aa2e6,_0xa8dc01,_0x46430b,_0x4a8a03,_0x4fa609){return _0x244462(_0x16e15b,_0x3621a0,_0x4aa2e6,_0xa8dc01,_0x46430b,_0x4a8a03,_0x4fa609);},'leUGB':_0x543165(0x21c),'KISEx':_0x543165(0x1b2),'LJwqX':_0x543165(0x266),'ttOHL':_0x543165(0x22a),'APhJr':_0x543165(0x1f4),'eLvEe':_0x543165(0x1ff),'WGIeT':_0x543165(0x1ef),'oBOsD':_0x543165(0x20f),'fihOw':function(_0x35160b,_0x2db181){return _0x35160b===_0x2db181;},'IwFfa':'GwjXZ','ouYyg':_0x543165(0x233),'DmQQf':_0x543165(0x27b),'JzutT':function(_0x1b06ac,_0x684b03,_0x39eed6){return _0x1b06ac(_0x684b03,_0x39eed6);},'XMLLh':function(_0xb05c29,_0x145ec9,_0x313ae2,_0xb6746a,_0x427348,_0x24716c){return _0xb05c29(_0x145ec9,_0x313ae2,_0xb6746a,_0x427348,_0x24716c);},'HqASl':_0x543165(0x184),'rvRes':_0x543165(0x24a),'mVspy':function(_0x3370d9,_0x2b3ecc){return _0x3370d9===_0x2b3ecc;},'UIYwE':_0x543165(0x1b0),'hlpwF':_0x543165(0x187),'lhfTG':function(_0x887e28,_0x18bffa){return _0x887e28(_0x18bffa);},'sSzqI':'Ohawq','TeXZO':'fOwpZ','ZXPVc':function(_0x4d5776,_0x43c634,_0x338c42,_0x4948f6,_0x57c05e,_0x3deb19,_0x58f850,_0x24290b){return _0x4d5776(_0x43c634,_0x338c42,_0x4948f6,_0x57c05e,_0x3deb19,_0x58f850,_0x24290b);},'iWcAw':'pre-check-grid-profile-empty','eNNie':_0x543165(0x21b),'IxdcQ':function(_0x58f1cc,_0x2c53e1){return _0x58f1cc!==_0x2c53e1;},'OSmua':_0x543165(0x1b4),'jtNeR':'wdESO','lKRnO':'Grid\x20profile\x20fetched\x20for\x20pre-check','bPPIe':function(_0x3d6e7e,_0x5ea2c9){return _0x3d6e7e===_0x5ea2c9;},'RTiBt':'FXALo','ioYeG':'QRayW','yxoMW':_0x543165(0x27c),'vHNZv':'ONXqQ'};let _0x102223;try{if(_0xe96ba1[_0x543165(0x26b)](_0xe96ba1[_0x543165(0x199)],_0xe96ba1['hxUZt'])){if(_0x3ba5de[_0x543165(0x183)]||_0x3ba5de[_0x543165(0x269)]||_0x3ba5de['region']){if(_0xe96ba1[_0x543165(0x1c6)](_0xe96ba1['iHLJa'],_0xe96ba1[_0x543165(0x210)]))_0x4b9fd4+=_0x543165(0x1cb)+_0x1c302e[_0x543165(0x183)]+'\x20'+(_0x513ecc?_0xe96ba1[_0x543165(0x1eb)]:_0xe96ba1[_0x543165(0x203)])+'\x0a\x0a';else{const _0x5c278b=[];!_0x3ba5de[_0x543165(0x183)]&&(_0xe96ba1[_0x543165(0x26b)](_0xe96ba1[_0x543165(0x1f1)],_0xe96ba1[_0x543165(0x1f1)])?_0x5c278b['push'](_0xe96ba1[_0x543165(0x1fa)]):_0x7bed=_0xf7645f);;!_0x3ba5de[_0x543165(0x269)]&&(_0xe96ba1[_0x543165(0x26b)](_0xe96ba1['CPhQK'],_0xe96ba1[_0x543165(0x23d)])?_0x10ffb5[_0x543165(0x224)]('error\x20stack\x20:\x20'+_0x597d3c[_0x543165(0x224)][_0x543165(0x1c2)]):_0x5c278b[_0x543165(0x214)](_0xe96ba1[_0x543165(0x26d)]));;!_0x3ba5de['region']&&(_0xe96ba1['yqyVs'](_0xe96ba1[_0x543165(0x25e)],_0xe96ba1[_0x543165(0x24b)])?_0x5c278b[_0x543165(0x214)](_0xe96ba1[_0x543165(0x1a5)]):(_0x6d1696['info']('['+_0x157b67+_0x543165(0x21d)+_0x242d8c[_0x543165(0x1a4)]+_0x543165(0x26f)+_0x33dc8d[_0x543165(0x1c9)]+_0x543165(0x220)+_0x59364e['error']),_0x9d9d3e[_0x543165(0x224)]&&_0x3cf030['error'](_0x543165(0x1d1)+_0x38eb64[_0x543165(0x224)][_0x543165(0x1c2)])));;_0xe96ba1[_0x543165(0x1e7)](_0x5c278b[_0x543165(0x25b)],0x0)&&(_0xe96ba1[_0x543165(0x17e)](_0xe96ba1['KxBxy'],_0xe96ba1['KxBxy'])?(_0x4a4233[_0x543165(0x224)](_0xe96ba1[_0x543165(0x186)]),_0x404c1a[_0x543165(0x261)](0x1)):(_0x102223=_0x543165(0x1e6)+_0x5c278b[_0x543165(0x1d8)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0xe96ba1[_0x543165(0x23c)](reportToGalactusAndSendToEDS,_0x3ba5de,_0x307e43,_0x102223,messageTypes[_0x543165(0x194)],_0xe96ba1[_0x543165(0x207)],_0xe96ba1['KISEx'],_0xe96ba1[_0x543165(0x254)]),logger[_0x543165(0x224)](_0x102223),process[_0x543165(0x261)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x543165(0x22c)](_0x3ba5de[_0x543165(0x269)][_0x543165(0x259)]())){if(_0xe96ba1[_0x543165(0x26b)](_0xe96ba1[_0x543165(0x263)],_0xe96ba1['ttOHL'])){const _0x395143={};_0x395143[_0x543165(0x208)]=_0x25de14['LOG'],_0x395143[_0x543165(0x201)]=_0x27f302,_0x4d147a[_0x543165(0x25c)](_0x1c5a19,_0x395143,_0xe96ba1[_0x543165(0x254)],!![]);}else _0x102223=_0xe96ba1['APhJr'],await _0xe96ba1[_0x543165(0x23c)](reportToGalactusAndSendToEDS,_0x3ba5de,_0x307e43,_0x102223,messageTypes[_0x543165(0x194)],_0xe96ba1[_0x543165(0x207)],_0xe96ba1[_0x543165(0x182)],_0xe96ba1['iixrW']),logger[_0x543165(0x224)](_0x102223),!_0x3ba5de[_0x543165(0x269)]&&(_0xe96ba1[_0x543165(0x26b)](_0xe96ba1[_0x543165(0x21a)],_0xe96ba1[_0x543165(0x185)])?_0x26ddcb[_0x543165(0x214)](_0xe96ba1[_0x543165(0x26d)]):(logger[_0x543165(0x1cc)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x543165(0x23b)]+'\x20'),_0x3ba5de[_0x543165(0x269)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry[_0x543165(0x183)]=_0x3ba5de[_0x543165(0x183)],global_registry[_0x543165(0x269)]=_0x3ba5de[_0x543165(0x269)],global_registry['clusterRegion']=_0x3ba5de[_0x543165(0x265)];}}else{if(_0x3ba5de[_0x543165(0x226)]){if(_0xe96ba1[_0x543165(0x18f)](_0xe96ba1[_0x543165(0x25f)],_0xe96ba1[_0x543165(0x215)]))_0x455cbf+=_0xe96ba1['qXlEV'],_0x2739b2+=_0x543165(0x270)+(_0x3f03cd['message']||_0xe96ba1['hxlrT'])+'\x0a',_0x224b4f+=_0x543165(0x1b8)+(_0x101fc5[_0x543165(0x241)]||_0xe96ba1[_0x543165(0x24e)])+'\x0a',_0x21fc56+=_0x543165(0x246)+(_0x54ec13[_0x543165(0x1c2)]||_0xe96ba1[_0x543165(0x24e)])+'\x0a';else{global_registry[_0x543165(0x226)]=_0x3ba5de[_0x543165(0x226)],logger[_0x543165(0x262)](_0x543165(0x181)+_0x3ba5de[_0x543165(0x226)]);const _0x4e6531=_0x543165(0x1ac)+AG_API_URL+_0x543165(0x198),_0x3fb1eb={};_0x3fb1eb[_0x543165(0x1c4)]=_0xe96ba1[_0x543165(0x229)],_0x3fb1eb['headers']=global_registry[_0x543165(0x1f8)],_0x3fb1eb[_0x543165(0x1cd)]=![];const _0x39be80=_0x3fb1eb,_0x14a059=await _0xe96ba1[_0x543165(0x1d9)](got,_0x4e6531,_0x39be80),_0x43b970=await _0xe96ba1['XMLLh'](responseValidation,_0x14a059,_0xe96ba1[_0x543165(0x1e2)],_0xe96ba1[_0x543165(0x20a)],_0x3ba5de,_0x307e43);let _0xadb258={};if(_0xe96ba1[_0x543165(0x235)](_0x43b970,0xc8)){if(_0xe96ba1['EVOaH'](_0xe96ba1[_0x543165(0x23e)],_0xe96ba1['hlpwF'])){const _0xd8bac5=JSON[_0x543165(0x271)](_0x14a059['body']),_0x18251a=_0xd8bac5['find'](_0x1c0e92=>_0x1c0e92['name']===_0x3ba5de[_0x543165(0x226)])||null;if(_0xe96ba1[_0x543165(0x244)](isUndefined,_0x18251a)){if(_0xe96ba1['hISul'](_0xe96ba1[_0x543165(0x192)],_0xe96ba1[_0x543165(0x279)]))_0x102223='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x3ba5de[_0x543165(0x226)]+_0x543165(0x1bc),await _0xe96ba1[_0x543165(0x1b9)](reportToGalactusAndSendToEDS,_0x3ba5de,_0x307e43,_0x102223,messageTypes['ERROR'],_0xe96ba1[_0x543165(0x207)],_0xe96ba1[_0x543165(0x247)],_0xe96ba1[_0x543165(0x254)]),logger[_0x543165(0x224)](_0x102223),process[_0x543165(0x261)](0x1);else{const _0x402953={};_0x402953['description']=_0xe96ba1['gdUwG'],_0x402953[_0x543165(0x208)]=_0xe96ba1[_0x543165(0x248)];const _0x36a2bd={};_0x36a2bd['description']=_0xe96ba1[_0x543165(0x251)],_0x36a2bd[_0x543165(0x208)]=_0xe96ba1[_0x543165(0x248)];const _0x2427e8={};_0x2427e8[_0x543165(0x197)]=_0xe96ba1[_0x543165(0x255)],_0x2427e8['type']=_0xe96ba1['XeQzm'];const _0xe1d8ff={};_0xe1d8ff[_0x543165(0x197)]=_0xe96ba1[_0x543165(0x22e)],_0xe1d8ff[_0x543165(0x208)]=_0xe96ba1[_0x543165(0x248)];const _0x269630={};return _0x269630['cluster-name']=_0x402953,_0x269630[_0x543165(0x240)]=_0x36a2bd,_0x269630[_0x543165(0x265)]=_0x2427e8,_0x269630[_0x543165(0x24a)]=_0xe1d8ff,_0x3aaf9e[_0x543165(0x1e1)](_0x4d94b5['pre_check'])[_0x543165(0x237)](_0x185811)[_0x543165(0x1de)](_0x269630)[_0x543165(0x1b6)](_0xe96ba1[_0x543165(0x1ca)])[_0x543165(0x1d4)];}}else{if(_0xe96ba1['DpjAU'](_0xe96ba1[_0x543165(0x272)],_0xe96ba1[_0x543165(0x272)]))_0xadb258=_0x18251a;else{const {header:_0x44b7b9,response:_0x2df6d}=_0x1dca9c,{status:_0x40d83f,data:_0x11dac0,error:_0x5031ed}=_0x2df6d;_0x109780+=_0x44b7b9+'\x20#'+_0xe96ba1[_0x543165(0x1fb)](_0xdbca53,0x1)+'\x0a',_0x1a3c4a+=_0x543165(0x20e)+(_0x40d83f?_0xe96ba1[_0x543165(0x19e)]:_0xe96ba1[_0x543165(0x1d7)])+'\x0a',_0xe6ca8e+=_0x543165(0x189)+_0xe96ba1[_0x543165(0x1dc)](_0x11dac0,_0xe96ba1['hxlrT'])+'\x0a',_0x5031ed&&(_0x373477+=_0xe96ba1[_0x543165(0x257)],_0x2cf635+='\x20\x20Message:\x20'+(_0x5031ed[_0x543165(0x201)]||_0xe96ba1[_0x543165(0x24e)])+'\x0a',_0x200f5e+=_0x543165(0x1b8)+(_0x5031ed[_0x543165(0x241)]||_0xe96ba1[_0x543165(0x24e)])+'\x0a',_0x27efa7+=_0x543165(0x246)+(_0x5031ed[_0x543165(0x1c2)]||_0xe96ba1[_0x543165(0x24e)])+'\x0a'),_0x4d14c9+='\x0a\x0a';}}}else _0x437fed[_0x543165(0x214)](_0xe96ba1['RftpM']);}else _0xe96ba1[_0x543165(0x1bd)](_0xe96ba1[_0x543165(0x1ab)],_0xe96ba1['jtNeR'])?process[_0x543165(0x261)](0x1):(_0x563eb2[_0x543165(0x1cc)]('Setting\x20cloud\x20provider\x20as\x20'+_0x2cd664[_0x543165(0x23b)]+'\x20'),_0x41818d[_0x543165(0x269)]=_0x5e7566[_0x543165(0x23b)]);const _0x393a96={};_0x393a96[_0x543165(0x208)]=WS_EVENTS[_0x543165(0x19a)],_0x393a96[_0x543165(0x201)]=_0xe96ba1['lKRnO'],webSocketUtils['sendEventToBackend'](_0x307e43,_0x393a96),global_registry['cloudProvider']=_0xadb258['cloudProvider'],global_registry[_0x543165(0x268)]=_0xadb258[_0x543165(0x265)],global_registry[_0x543165(0x183)]=_0xadb258['clusterName'];}}else _0xe96ba1['bPPIe'](_0xe96ba1['RTiBt'],_0xe96ba1[_0x543165(0x1e9)])?_0x21e94e[_0x543165(0x1cc)]('Cluster\x20`'+_0xe39537['clusterName']+'`\x20already\x20exists'):(logger['error'](_0xe96ba1[_0x543165(0x186)]),process[_0x543165(0x261)](0x1));}}else _0x33232a+='Cluster\x20'+_0x491d25[_0x543165(0x183)]+_0x543165(0x25a);}catch(_0xff2a03){_0xe96ba1['fihOw'](_0xe96ba1[_0x543165(0x193)],_0xe96ba1[_0x543165(0x1e3)])?_0x185ea9[_0x543165(0x214)](_0xe96ba1[_0x543165(0x1fa)]):(_0x102223=_0x543165(0x228)+_0xff2a03+':\x20'+_0xff2a03[_0x543165(0x1c2)],logger[_0x543165(0x224)](_0x102223),await _0xe96ba1['ZXPVc'](reportToGalactusAndSendToEDS,_0x3ba5de,_0x307e43,_0x102223,messageTypes[_0x543165(0x194)],_0xe96ba1['leUGB'],_0xe96ba1[_0x543165(0x182)],_0xe96ba1[_0x543165(0x254)]),process[_0x543165(0x261)](0x1));}}function printResponse(_0x1e8b8a,_0x4ee319){const _0x119dc3=a17_0xc471b4,_0x3465b6={};_0x3465b6[_0x119dc3(0x1c3)]=function(_0x1c1b4d,_0x19269c){return _0x1c1b4d===_0x19269c;},_0x3465b6['nlrlE']=_0x119dc3(0x243),_0x3465b6[_0x119dc3(0x1d0)]='LYRYS';const _0x1acd40=_0x3465b6;logger[_0x119dc3(0x1cc)]('['+_0x1e8b8a+_0x119dc3(0x21d)+_0x4ee319['status']+'\x20data\x20:\x20'+_0x4ee319['data']+_0x119dc3(0x220)+_0x4ee319[_0x119dc3(0x224)]),_0x4ee319['error']&&(_0x1acd40[_0x119dc3(0x1c3)](_0x1acd40[_0x119dc3(0x253)],_0x1acd40[_0x119dc3(0x1d0)])?_0x1df25a[_0x119dc3(0x261)](0x1):logger[_0x119dc3(0x224)](_0x119dc3(0x1d1)+_0x4ee319['error'][_0x119dc3(0x1c2)]));}function a17_0x24bd(_0x46472b,_0x2e4d3b){const _0x1ceaa3=a17_0x1cea();return a17_0x24bd=function(_0x24bd8c,_0x5e9cd8){_0x24bd8c=_0x24bd8c-0x17d;let _0x546fea=_0x1ceaa3[_0x24bd8c];return _0x546fea;},a17_0x24bd(_0x46472b,_0x2e4d3b);}async function generateReport(_0x13a3dd,_0x45a0ac){const _0xde0df2=a17_0xc471b4,_0x55000a={'ueoKs':function(_0x189805,_0x582f3b){return _0x189805+_0x582f3b;},'pOkNI':_0xde0df2(0x1d5),'blBsE':_0xde0df2(0x252),'sTQsg':function(_0xf447c4,_0x1cf2f1){return _0xf447c4||_0x1cf2f1;},'ZtIul':'N/A','xHAVJ':_0xde0df2(0x1a7),'ncQhf':_0xde0df2(0x1a3),'Nrrby':function(_0x3689e2,_0x3a53c3){return _0x3689e2!=_0x3a53c3;},'UEWyh':_0xde0df2(0x258),'LuItj':'will\x20be\x20created','maaXE':function(_0x2a17a6){return _0x2a17a6();}};let _0x10ddad='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0xde0df2(0x269)]+'\x20===\x0a\x0a';return _0x13a3dd['forEach']((_0x6de3f6,_0x570136)=>{const _0x29b9b7=_0xde0df2,{header:_0x35ce18,response:_0x2e7e3c}=_0x6de3f6,{status:_0x1c31d9,data:_0xce02a9,error:_0x51f070}=_0x2e7e3c;_0x10ddad+=_0x35ce18+'\x20#'+_0x55000a['ueoKs'](_0x570136,0x1)+'\x0a',_0x10ddad+=_0x29b9b7(0x20e)+(_0x1c31d9?_0x55000a[_0x29b9b7(0x223)]:_0x55000a[_0x29b9b7(0x22b)])+'\x0a',_0x10ddad+=_0x29b9b7(0x189)+_0x55000a[_0x29b9b7(0x277)](_0xce02a9,_0x55000a[_0x29b9b7(0x230)])+'\x0a',_0x51f070&&(_0x10ddad+=_0x55000a[_0x29b9b7(0x24f)],_0x10ddad+=_0x29b9b7(0x270)+(_0x51f070[_0x29b9b7(0x201)]||_0x55000a['ZtIul'])+'\x0a',_0x10ddad+=_0x29b9b7(0x1b8)+(_0x51f070['code']||_0x55000a['ZtIul'])+'\x0a',_0x10ddad+=_0x29b9b7(0x246)+(_0x51f070[_0x29b9b7(0x1c2)]||_0x55000a[_0x29b9b7(0x230)])+'\x0a'),_0x10ddad+='\x0a\x0a';}),_0x10ddad+=_0x55000a[_0xde0df2(0x1f9)],_0x55000a[_0xde0df2(0x19b)](_0x45a0ac,null)?_0x10ddad+='Cluster\x20'+global_registry[_0xde0df2(0x183)]+'\x20'+(_0x45a0ac?_0x55000a['UEWyh']:_0x55000a[_0xde0df2(0x20c)])+'\x0a\x0a':_0x10ddad+='Cluster\x20'+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x10ddad+=_0x55000a['maaXE'](getSystemMetaData),_0x10ddad;}function a17_0x1cea(){const _0xb9d114=['VlNQF','yVtzM','isTrialGridAccessible','help','EacRs','\x20\x20Code:\x20','ZXPVc','dummy-grid','3|0|1|2|4','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','IxdcQ','28vGCuTR','cluster-name','yBqvB','IDUVO','stack','JjIGx','method','SSL\x20Configured','hISul','`\x20is\x20present\x20in\x20region\x20`','YQpZa','data','Injyb','Cluster\x20','info','throwHttpErrors','416930mDWOzG','../../config/constants','FUIRP','error\x20stack\x20:\x20','12092nZvxOc','string','argv','Success','mizzl','agCwk','join','JzutT','hMXqv','364360LYAXnB','WcBeI','TLSv1_2_client_method','options','`\x20already\x20exists','isCliToolInstalled','usage','HqASl','vHNZv','checkAccess','vYuvL','Missing\x20required\x20arguments:\x20','QIeNU','jRaxJ','ioYeG','INFO','GZUhC','../../config/logger','desc','getUTCMinutes','dKLsc','1184028phlaEP','HTbKg','6wKzTQF','UTtSe','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','yruJt','zuAGF','stack\x20trace\x20','authHeader','ncQhf','tDBuj','JTUkJ','PIlDf','Cluster\x20`','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','cloud-provider-not-supported','stringify','message','split','eiWKY','WTIsA','writeFileSync','719136ivFDOC','leUGB','type','reconnecting-websocket','rvRes','JuQHj','LuItj','35UlRSbv','Status:\x20','Lzcvv','iHLJa','WmxiW','unable\x20to\x20verify\x20if\x20cluster\x20`','VAaBL','push','ouYyg','cluster-check-failed-','password','requestId','fTdJK','WGIeT','OIGAy','pre-check-grid-called',']\x20status\x20:\x20','Whitelisted\x20browserstack','AWlSK','\x20error\x20:\x20','Tool\x20Installed','utf-8','pOkNI','error','got','gridProfile','header','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','DmQQf','lLLDZ','blBsE','includes','mKnvr','XgFKW','bstackAccesskey','ZtIul','isTls1_2_SUPPORTED','getUTCMonth','fUUqY','16BffNtT','mVspy','username','epilogue','will\x20be\x20created','grid','DWcfV','CLOUD_PROVIDER','Hcdnr','rQiSf','UIYwE','bstackUsername','cloud-provider','code','<UsernamePlaceholder>','XcMHs','lhfTG','accessResp','\x20\x20Stack:\x20','iWcAw','XeQzm','11UBYmgE','grid-profile','Irywo','connectionTimeout','credential-not-found','hxlrT','xHAVJ','18039qbVGla','ARooe','Failure','nlrlE','iixrW','hGxWx','pre-check-failed','qXlEV','is\x20already\x20present','toLowerCase','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','length','sendEventToBackend','existsSync','EhZgr','IwFfa','XgbaX','exit','debug','LJwqX','8cydawo','region','NULdy','Pre-check\x20running\x20for\x20Cloud\x20-\x20','clusterRegion','cloudProvider','iKTko','DpjAU','command','lFqyc','qTSdR','\x20data\x20:\x20','\x20\x20Message:\x20','parse','eNNie','pre_check','readFileSync','<PasswordPlaceholder>','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','sTQsg','hcqtz','TeXZO','response','GET','BaKaQ','GxEVl','81ucSaQB','EVOaH','tfmuJ','.txt','grid\x20profile\x20flow\x20','eLvEe','clusterName','pre-check','oBOsD','NoYcg','MQSKW','nJHTc','Message:\x20','isClusterPresent','mDKWK','Failed\x20in\x20pre-check!\x20Error:\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','\x20region\x20-\x20','fihOw','../../utils/utilityMethods','KaBQA','sSzqI','yxoMW','ERROR','pCBfg','`\x20,error\x20:\x20','description','/packages/cli/get-all-grid-profiles','hxUZt','LOG','Nrrby','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','BlflG','VpqHM','Browserstack','hpzia','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','getUTCFullYear','Cluster\x20details\x0a-----------------------\x0a','status','RftpM','getUTCDate','Error\x20Details:\x0a','replace','rrAvr','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','OSmua','https://','tNrkk','3743909uOJKMI','ewXBI','YQlLx','xFwlo','pre-check-cluster-args-not-passed'];a17_0x1cea=function(){return _0xb9d114;};return a17_0x1cea();};exports['handler']=async function(_0x4235b0){const _0x4a04d5=a17_0xc471b4,_0x3c3463={'rrAvr':function(_0x216de0){return _0x216de0();},'XgbaX':function(_0x8ae14b){return _0x8ae14b();},'WTIsA':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fTdJK':function(_0x497585,_0x330cdb,_0x2c3db4,_0x586581,_0x4fea79,_0x51dcc2,_0x40a21e,_0x4922be){return _0x497585(_0x330cdb,_0x2c3db4,_0x586581,_0x4fea79,_0x51dcc2,_0x40a21e,_0x4922be);},'hMXqv':_0x4a04d5(0x21c),'yBqvB':_0x4a04d5(0x24d),'mizzl':_0x4a04d5(0x224),'mKnvr':function(_0x2abe3e,_0x1152c9,_0x4a8da4,_0x2c5820,_0x13d497,_0x56891f,_0x13025d){return _0x2abe3e(_0x1152c9,_0x4a8da4,_0x2c5820,_0x13d497,_0x56891f,_0x13025d);},'KmNuT':_0x4a04d5(0x242),'IDUVO':_0x4a04d5(0x275),'tNrkk':function(_0x1eee30,_0x3d9964,_0x791710){return _0x1eee30(_0x3d9964,_0x791710);},'jRaxJ':function(_0x288afb,_0x1b6108,_0x272b8b,_0x53555e,_0x2797db,_0x397a6b,_0x30898e){return _0x288afb(_0x1b6108,_0x272b8b,_0x53555e,_0x2797db,_0x397a6b,_0x30898e);},'hCvDh':_0x4a04d5(0x1ba),'mDKWK':'toolInstalledResp','UTtSe':_0x4a04d5(0x1bb),'pCBfg':function(_0x2a24eb,_0x1c1d9d,_0x2f3cf6){return _0x2a24eb(_0x1c1d9d,_0x2f3cf6);},'GxEVl':_0x4a04d5(0x245),'fkkTb':_0x4a04d5(0x1b5),'xFwlo':function(_0x279bec,_0x4995d3){return _0x279bec(_0x4995d3);},'EacRs':_0x4a04d5(0x1dd),'iKTko':function(_0x48cdd0,_0xe98cc5,_0x239872){return _0x48cdd0(_0xe98cc5,_0x239872);},'JuQHj':_0x4a04d5(0x231),'WmxiW':_0x4a04d5(0x221),'mGsQd':'User\x20Access','DWcfV':_0x4a04d5(0x21e),'AWlSK':_0x4a04d5(0x1c5),'PIlDf':function(_0x16ac00,_0x4d3b62){return _0x16ac00+_0x4d3b62;},'VlNQF':_0x4a04d5(0x222),'nJHTc':function(_0x5ccd86,_0x5cb167,_0x44847d,_0x414383,_0x277f0c,_0x487ea1,_0x52c544){return _0x5ccd86(_0x5cb167,_0x44847d,_0x414383,_0x277f0c,_0x487ea1,_0x52c544);},'ViIIe':_0x4a04d5(0x256)};let _0x77736e,_0x1a74be;try{global_registry[_0x4a04d5(0x218)]=_0x3c3463[_0x4a04d5(0x1a9)](uuidv4);!fs[_0x4a04d5(0x25d)](_0x3c3463[_0x4a04d5(0x260)](getCredentialsPath))&&(_0x1a74be=_0x3c3463[_0x4a04d5(0x204)],logger[_0x4a04d5(0x224)](_0x1a74be),await _0x3c3463[_0x4a04d5(0x219)](reportToGalactusAndSendToEDS,_0x4235b0,_0x77736e,_0x1a74be,messageTypes[_0x4a04d5(0x194)],_0x3c3463['hMXqv'],_0x3c3463[_0x4a04d5(0x1c0)],_0x3c3463[_0x4a04d5(0x1d6)]),process[_0x4a04d5(0x261)](0x1));_0x3c3463[_0x4a04d5(0x22d)](sendInstrumentationEvent,_0x4235b0,_0x3c3463[_0x4a04d5(0x1da)],messageTypes[_0x4a04d5(0x1ea)],null,null,_0x4235b0);const _0x563861=JSON[_0x4a04d5(0x271)](fs[_0x4a04d5(0x274)](_0x3c3463[_0x4a04d5(0x1a9)](getCredentialsPath)));global_registry['bstackUsername']=_0x563861['Browserstack'][_0x4a04d5(0x236)],global_registry[_0x4a04d5(0x22f)]=_0x563861[_0x4a04d5(0x19f)][_0x4a04d5(0x217)];const _0x493669=WS_ENDPOINT[_0x4a04d5(0x1a8)](_0x3c3463['KmNuT'],_0x563861[_0x4a04d5(0x19f)][_0x4a04d5(0x236)])[_0x4a04d5(0x1a8)](_0x3c3463[_0x4a04d5(0x1c1)],_0x563861['Browserstack']['password']),_0x5b985d={};_0x5b985d['WebSocket']=ws,_0x5b985d[_0x4a04d5(0x24c)]=0x36ee80,_0x77736e=new ReconnectingWebSocket(_0x493669,[],_0x5b985d),global_registry['authHeader']=_0x3c3463[_0x4a04d5(0x1ad)](getAuthHeader,global_registry[_0x4a04d5(0x23f)],global_registry[_0x4a04d5(0x22f)]),await _0x3c3463[_0x4a04d5(0x1ad)](inputValidation,_0x4235b0,_0x77736e),logger[_0x4a04d5(0x1cc)](_0x4a04d5(0x267)+global_registry[_0x4a04d5(0x269)]+_0x4a04d5(0x18e)+global_registry[_0x4a04d5(0x268)]);let _0x3fd748=await _0x3c3463[_0x4a04d5(0x1e8)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x4a04d5(0x183)],_0x3c3463['hCvDh'],_0x77736e,webSocketUtils,_0x4235b0);const _0x3d76f1=await _0x3fd748[_0x4a04d5(0x1e0)]();_0x3c3463[_0x4a04d5(0x1ad)](printResponse,_0x3c3463[_0x4a04d5(0x18b)],_0x3d76f1),_0x3fd748=await _0x3fd748['init']();let _0x3fbfb8=![];try{_0x3fbfb8=await _0x3fd748[_0x4a04d5(0x18a)]();}catch(_0x187ebc){const _0x18c00c=_0x3c3463[_0x4a04d5(0x1f3)][_0x4a04d5(0x202)]('|');let _0x2edd92=0x0;while(!![]){switch(_0x18c00c[_0x2edd92++]){case'0':_0x3fbfb8=null;continue;case'1':logger[_0x4a04d5(0x224)](_0x1a74be);continue;case'2':_0x1a74be+='\x0a'+JSON['stringify'](_0x187ebc[_0x4a04d5(0x1c2)]);continue;case'3':_0x1a74be=_0x4a04d5(0x212)+global_registry['clusterName']+_0x4a04d5(0x1c7)+global_registry[_0x4a04d5(0x268)]+_0x4a04d5(0x196)+_0x187ebc;continue;case'4':await _0x3c3463[_0x4a04d5(0x219)](reportToGalactusAndSendToEDS,_0x4235b0,_0x77736e,_0x1a74be,messageTypes[_0x4a04d5(0x194)],_0x3c3463['hMXqv'],_0x4a04d5(0x216)+global_registry['cloudProvider'],_0x3c3463[_0x4a04d5(0x1d6)]);continue;}break;}}_0x3fbfb8&&logger[_0x4a04d5(0x1cc)](_0x4a04d5(0x1fd)+global_registry['clusterName']+_0x4a04d5(0x1df));const _0x2e5440=await _0x3fd748[_0x4a04d5(0x1e4)]();_0x3c3463['pCBfg'](printResponse,_0x3c3463[_0x4a04d5(0x27d)],_0x2e5440);const _0x33e6dd=await _0x3c3463[_0x4a04d5(0x260)](curlRequest);_0x3c3463[_0x4a04d5(0x195)](printResponse,_0x3c3463['fkkTb'],_0x33e6dd);const _0x321cc5=await _0x3c3463[_0x4a04d5(0x1b1)](isTlsSupported,_0x3c3463[_0x4a04d5(0x1b7)]);_0x3c3463[_0x4a04d5(0x26a)](printResponse,_0x3c3463[_0x4a04d5(0x20b)],_0x321cc5);const _0x25e666={};_0x25e666[_0x4a04d5(0x227)]=_0x3c3463[_0x4a04d5(0x211)],_0x25e666[_0x4a04d5(0x27a)]=_0x3d76f1;const _0xdf3743={};_0xdf3743['header']=_0x3c3463['mGsQd'],_0xdf3743[_0x4a04d5(0x27a)]=_0x2e5440;const _0x485f61={};_0x485f61[_0x4a04d5(0x227)]=_0x3c3463[_0x4a04d5(0x23a)],_0x485f61[_0x4a04d5(0x27a)]=_0x33e6dd;const _0x4cb76c={};_0x4cb76c[_0x4a04d5(0x227)]=_0x3c3463[_0x4a04d5(0x21f)],_0x4cb76c['response']=_0x321cc5;const _0x49a71c=[_0x25e666,_0xdf3743,_0x485f61,_0x4cb76c],_0x12131c=await _0x3c3463[_0x4a04d5(0x26a)](generateReport,_0x49a71c,_0x3fbfb8),_0x1459c1=new Date(),_0x344b19=_0x1459c1[_0x4a04d5(0x1a2)]()+'_'+_0x3c3463[_0x4a04d5(0x1fc)](_0x1459c1[_0x4a04d5(0x232)](),0x1)+'_'+_0x1459c1[_0x4a04d5(0x1a6)]()+'_'+_0x1459c1['getUTCHours']()+'_'+_0x1459c1[_0x4a04d5(0x1ee)](),_0x19e038='log/report_'+_0x344b19+_0x4a04d5(0x180);fs[_0x4a04d5(0x205)](_0x19e038,_0x12131c,_0x3c3463[_0x4a04d5(0x1b3)]),logger[_0x4a04d5(0x1cc)]('Report\x20saved\x20in\x20'+_0x19e038),process[_0x4a04d5(0x261)](0x0);}catch(_0x12d598){let _0x1a644d=_0x4a04d5(0x18c)+_0x12d598+'\x20';logger[_0x4a04d5(0x224)](_0x1a644d),_0x1a644d+='\x0a'+JSON[_0x4a04d5(0x200)](_0x12d598[_0x4a04d5(0x1c2)]),logger['debug'](_0x4a04d5(0x1f7)+_0x12d598[_0x4a04d5(0x1c2)]);if(_0x77736e){const _0x2b5446={};_0x2b5446[_0x4a04d5(0x208)]=WS_EVENTS['LOG'],_0x2b5446[_0x4a04d5(0x201)]=_0x1a644d,webSocketUtils[_0x4a04d5(0x25c)](_0x77736e,_0x2b5446,_0x3c3463['mizzl'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x2b11fa={};_0x2b11fa['error']=_0x1a644d,await _0x3c3463[_0x4a04d5(0x188)](sendInstrumentationEvent,_0x4235b0,_0x3c3463[_0x4a04d5(0x1da)],messageTypes[_0x4a04d5(0x194)],_0x3c3463['ViIIe'],_0x2b11fa,_0x4235b0),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a18_0x885c(_0xeeb2c,_0x430bd3){const _0xd9c1d6=a18_0xd9c1();return a18_0x885c=function(_0x885c12,_0x5a049b){_0x885c12=_0x885c12-0x175;let _0x344964=_0xd9c1d6[_0x885c12];return _0x344964;},a18_0x885c(_0xeeb2c,_0x430bd3);}const a18_0x5cba39=a18_0x885c;function a18_0xd9c1(){const _0x12a195=['3592884FDSoig','commandDir','246460gYCdcp','309279gvthom','epilogue','usage','WkytZ','Start\x20an\x20existing\x20Automation\x20grid.','1417678dXdghp','35occJeP','3258342vXZWyA','handler','1126629LrVqFq','help','40LszKWn','1288074xQOdyH','desc','command','builder','40TlncOB','start_commands','Qvbjm'];a18_0xd9c1=function(){return _0x12a195;};return a18_0xd9c1();}(function(_0x290598,_0x446387){const _0x5dc1f9=a18_0x885c,_0xcaf647=_0x290598();while(!![]){try{const _0xcb5040=parseInt(_0x5dc1f9(0x183))/0x1+parseInt(_0x5dc1f9(0x188))/0x2+parseInt(_0x5dc1f9(0x179))/0x3+parseInt(_0x5dc1f9(0x182))/0x4*(parseInt(_0x5dc1f9(0x189))/0x5)+-parseInt(_0x5dc1f9(0x180))/0x6+parseInt(_0x5dc1f9(0x176))/0x7*(parseInt(_0x5dc1f9(0x17d))/0x8)+-parseInt(_0x5dc1f9(0x18a))/0x9*(parseInt(_0x5dc1f9(0x178))/0xa);if(_0xcb5040===_0x446387)break;else _0xcaf647['push'](_0xcaf647['shift']());}catch(_0x1499a5){_0xcaf647['push'](_0xcaf647['shift']());}}}(a18_0xd9c1,0x9b686));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x5cba39(0x17b)]='start',exports[a18_0x5cba39(0x17a)]=a18_0x5cba39(0x187),exports[a18_0x5cba39(0x17c)]=function(_0x4c0f14){const _0x172f3d=a18_0x5cba39,_0x6ca2b8={};_0x6ca2b8['WkytZ']=_0x172f3d(0x17e),_0x6ca2b8[_0x172f3d(0x17f)]='help';const _0x496693=_0x6ca2b8;return _0x4c0f14[_0x172f3d(0x185)](HELP_HEADER_MESSAGE['start'])[_0x172f3d(0x184)](HELP_FOOTER_MESSAGE)[_0x172f3d(0x181)](_0x496693[_0x172f3d(0x186)])['demandCommand']()['recommendCommands']()['strict']()[_0x172f3d(0x177)](_0x496693['Qvbjm']);},exports[a18_0x5cba39(0x175)]=function(_0x49ec7f){};
1
+ function a18_0x3a53(_0x577555,_0x512717){const _0x23f8be=a18_0x23f8();return a18_0x3a53=function(_0x3a5376,_0x59a4b9){_0x3a5376=_0x3a5376-0x73;let _0x64a841=_0x23f8be[_0x3a5376];return _0x64a841;},a18_0x3a53(_0x577555,_0x512717);}const a18_0x16f1c7=a18_0x3a53;function a18_0x23f8(){const _0x54e93a=['12888864UpCDan','vJLrP','25194213aViQzO','176ZpJtva','epilogue','404345aiftFc','2530MLIOqo','4308EfxnkQ','demandCommand','recommendCommands','21498AkwZmF','start','10EwEDDc','9652032yuNZoQ','3700WPpHSo','14231youGyP','help','start_commands','usage','../config/constants','strict','builder','QbYNu','desc','Start\x20an\x20existing\x20Automation\x20grid.','handler'];a18_0x23f8=function(){return _0x54e93a;};return a18_0x23f8();}(function(_0x2879d7,_0xe6d1b0){const _0x253092=a18_0x3a53,_0x5e448e=_0x2879d7();while(!![]){try{const _0x364205=-parseInt(_0x253092(0x7c))/0x1+-parseInt(_0x253092(0x7a))/0x2*(-parseInt(_0x253092(0x81))/0x3)+-parseInt(_0x253092(0x85))/0x4*(parseInt(_0x253092(0x7d))/0x5)+-parseInt(_0x253092(0x7e))/0x6*(parseInt(_0x253092(0x86))/0x7)+-parseInt(_0x253092(0x84))/0x8+-parseInt(_0x253092(0x77))/0x9*(-parseInt(_0x253092(0x83))/0xa)+parseInt(_0x253092(0x79))/0xb;if(_0x364205===_0xe6d1b0)break;else _0x5e448e['push'](_0x5e448e['shift']());}catch(_0x5f3f1b){_0x5e448e['push'](_0x5e448e['shift']());}}}(a18_0x23f8,0xc6d9e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x16f1c7(0x8a));exports['command']=a18_0x16f1c7(0x82),exports[a18_0x16f1c7(0x74)]=a18_0x16f1c7(0x75),exports[a18_0x16f1c7(0x8c)]=function(_0x56b3fe){const _0x5c795e=a18_0x16f1c7,_0x4998ad={};_0x4998ad[_0x5c795e(0x78)]=_0x5c795e(0x88),_0x4998ad[_0x5c795e(0x73)]=_0x5c795e(0x87);const _0x3096a5=_0x4998ad;return _0x56b3fe[_0x5c795e(0x89)](HELP_HEADER_MESSAGE[_0x5c795e(0x82)])[_0x5c795e(0x7b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3096a5['vJLrP'])[_0x5c795e(0x7f)]()[_0x5c795e(0x80)]()[_0x5c795e(0x8b)]()[_0x5c795e(0x87)](_0x3096a5[_0x5c795e(0x73)]);},exports[a18_0x16f1c7(0x76)]=function(_0x4d1f9a){};
@@ -1 +1 @@
1
- const a19_0x3b556e=a19_0x5c8b;(function(_0x254a71,_0x482c99){const _0xd08df3=a19_0x5c8b,_0xd99b8e=_0x254a71();while(!![]){try{const _0x54e723=-parseInt(_0xd08df3(0x99))/0x1*(-parseInt(_0xd08df3(0xd7))/0x2)+parseInt(_0xd08df3(0xc5))/0x3*(-parseInt(_0xd08df3(0xc9))/0x4)+parseInt(_0xd08df3(0xba))/0x5+parseInt(_0xd08df3(0xda))/0x6*(-parseInt(_0xd08df3(0xa4))/0x7)+parseInt(_0xd08df3(0xee))/0x8+parseInt(_0xd08df3(0xe7))/0x9*(-parseInt(_0xd08df3(0xc8))/0xa)+parseInt(_0xd08df3(0xb6))/0xb;if(_0x54e723===_0x482c99)break;else _0xd99b8e['push'](_0xd99b8e['shift']());}catch(_0x27c8ef){_0xd99b8e['push'](_0xd99b8e['shift']());}}}(a19_0x18fe,0x3bd95));function a19_0x5c8b(_0x1fb4a3,_0x3a8a3f){const _0x18fe66=a19_0x18fe();return a19_0x5c8b=function(_0x5c8b2e,_0x5ca13d){_0x5c8b2e=_0x5c8b2e-0x92;let _0x307381=_0x18fe66[_0x5c8b2e];return _0x307381;},a19_0x5c8b(_0x1fb4a3,_0x3a8a3f);}function a19_0x18fe(){const _0x1eece1=['debug','type','options','boolean','desc','9omhNaO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','statusCode','../../cloudproviders/utils','default','Starting\x20grid\x20','QglFk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','start','7mFgzcl','PqKsN','skip-tls-cert-verify','WebSocket','Grid\x20started','tonAd','skipTlsCertVerify','IKyyz','ZdhFR','clusterName','nigzZ','Browserstack','XREcc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ncfAF','Skip\x20insecure\x20cert\x20verification.','<PasswordPlaceholder>','NtDjq','2171983qrcDZN','readFileSync','start-grid-called','../../config/logger','345280HWlIvk','existsSync','khcbq','bstackAccesskey','reconnecting-websocket','crgbW','vCJKV','connectionTimeout','cloudProvider','FBQxB','grid','816xDUTIg','DaByo','../../utils/instrumentationUtils','10NnotAD','6368xZhksT','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','handler','../../config/constants','password','PQaiT','../../utils/gridComponents','exit','stringify','user','gridId','name','../../utils/createk8sClient','parse','105402qWjgip','command','lYTLg','650316DgWBmO','replace','VUibZ','grid-id','help','ZJEwl','server-error','builder','message','clusterRegion','unauthorised','epilogue','vgMgl','1003473wwBBoh','Start\x20an\x20existing\x20Automation\x20grid.','username','ERROR','CNsVI','jlxbs','argv','1257840nnQhRq','invalid-grid-id','jJSGN','bstackUsername','stack'];a19_0x18fe=function(){return _0x1eece1;};return a19_0x18fe();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3b556e(0xbe)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3b556e(0xcc)),{logger}=require(a19_0x3b556e(0xb9)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x3b556e(0xcf)),{sendInstrumentationEvent}=require(a19_0x3b556e(0xc7)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x3b556e(0xd5)),{getCloudProviderObject}=require(a19_0x3b556e(0x9d));exports[a19_0x3b556e(0xd8)]=a19_0x3b556e(0xc4),exports[a19_0x3b556e(0x98)]=a19_0x3b556e(0xe8),exports[a19_0x3b556e(0xe1)]=function(_0x3bb25b){const _0x46b3cf=a19_0x3b556e,_0x2c3af4={};_0x2c3af4[_0x46b3cf(0xdf)]=_0x46b3cf(0xb1),_0x2c3af4[_0x46b3cf(0xb5)]='string',_0x2c3af4[_0x46b3cf(0xa5)]=_0x46b3cf(0xb3),_0x2c3af4[_0x46b3cf(0xec)]=_0x46b3cf(0x97),_0x2c3af4['kVqIo']=_0x46b3cf(0xde);const _0x21094b=_0x2c3af4,_0x4cffa4={};_0x4cffa4['description']=_0x21094b[_0x46b3cf(0xdf)],_0x4cffa4[_0x46b3cf(0x95)]=_0x21094b[_0x46b3cf(0xb5)];const _0x292fd2={};_0x292fd2['description']=_0x21094b[_0x46b3cf(0xa5)],_0x292fd2[_0x46b3cf(0x95)]=_0x21094b[_0x46b3cf(0xec)],_0x292fd2[_0x46b3cf(0x9e)]=![];const _0x354498={};return _0x354498[_0x46b3cf(0xdd)]=_0x4cffa4,_0x354498[_0x46b3cf(0xa6)]=_0x292fd2,_0x3bb25b['usage'](HELP_HEADER_MESSAGE[_0x46b3cf(0xa3)])[_0x46b3cf(0xe5)](HELP_FOOTER_MESSAGE)[_0x46b3cf(0x96)](_0x354498)[_0x46b3cf(0xde)](_0x21094b['kVqIo'])[_0x46b3cf(0xed)];},exports[a19_0x3b556e(0xcb)]=async function(_0x3aa26f){const _0x33567b=a19_0x3b556e,_0x41ec46={'FBQxB':_0x33567b(0xca),'IKyyz':function(_0x289369){return _0x289369();},'ncfAF':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vCJKV':function(_0x1c78f2,_0x39368e,_0x3492d5,_0x3e6220,_0x336f8c,_0x18a74d,_0x466baa){return _0x1c78f2(_0x39368e,_0x3492d5,_0x3e6220,_0x336f8c,_0x18a74d,_0x466baa);},'XREcc':_0x33567b(0xb8),'jJSGN':'init-not-called','NHfdc':'<UsernamePlaceholder>','PQaiT':_0x33567b(0xb4),'TRPJv':'Adding\x20Websocket\x20listeners','nigzZ':function(_0x1441bd,_0x58ea77,_0x33c5eb,_0x1c1c83){return _0x1441bd(_0x58ea77,_0x33c5eb,_0x1c1c83);},'crgbW':function(_0x2e5935,_0x2ec02f,_0x2a4930,_0x253049,_0xa630ea,_0xf4a9b7,_0xfc25eb){return _0x2e5935(_0x2ec02f,_0x2a4930,_0x253049,_0xa630ea,_0xf4a9b7,_0xfc25eb);},'vgMgl':function(_0x473c31,_0x2ec745,_0x318f04){return _0x473c31(_0x2ec745,_0x318f04);},'khcbq':function(_0x29e31c,_0x19887f,_0x5355b8){return _0x29e31c(_0x19887f,_0x5355b8);},'tonAd':_0x33567b(0xa8),'ZdhFR':function(_0x4fc0fb,_0x2d1f27){return _0x4fc0fb===_0x2d1f27;},'Tkndx':_0x33567b(0x9a),'DaByo':function(_0x9cf5fb,_0x5f1a5e,_0x531850,_0x544dce,_0x288274,_0xa5b5e1,_0x5f48f2){return _0x9cf5fb(_0x5f1a5e,_0x531850,_0x544dce,_0x288274,_0xa5b5e1,_0x5f48f2);},'VUibZ':_0x33567b(0xe4),'QglFk':function(_0x22a0c1,_0xa602ba){return _0x22a0c1===_0xa602ba;},'CNsVI':_0x33567b(0xef),'lYTLg':_0x33567b(0xe0)};let _0x2c8369;try{!_0x3aa26f[_0x33567b(0xd3)]&&(logger[_0x33567b(0xa2)](_0x41ec46[_0x33567b(0xc3)]),process['exit'](0x1));!fs[_0x33567b(0xbb)](_0x41ec46['IKyyz'](getCredentialsPath))&&(logger['error'](_0x41ec46[_0x33567b(0xb2)]),await _0x41ec46[_0x33567b(0xc0)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes[_0x33567b(0xea)],_0x41ec46[_0x33567b(0xf0)],null,_0x3aa26f),process[_0x33567b(0xd0)](0x1));logger['info'](_0x33567b(0x9f)+_0x3aa26f[_0x33567b(0xd3)]),await _0x41ec46[_0x33567b(0xc0)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes['INFO'],null,null,_0x3aa26f);const _0x4e9152=JSON[_0x33567b(0xd6)](fs[_0x33567b(0xb7)](_0x41ec46[_0x33567b(0xab)](getCredentialsPath)));global_registry[_0x33567b(0x92)]=_0x4e9152[_0x33567b(0xaf)][_0x33567b(0xe9)],global_registry[_0x33567b(0xbd)]=_0x4e9152[_0x33567b(0xaf)][_0x33567b(0xcd)];const _0x568333=WS_ENDPOINT[_0x33567b(0xdb)](_0x41ec46['NHfdc'],_0x4e9152[_0x33567b(0xaf)][_0x33567b(0xe9)])[_0x33567b(0xdb)](_0x41ec46[_0x33567b(0xce)],_0x4e9152['Browserstack'][_0x33567b(0xcd)]),_0x582221={};_0x582221[_0x33567b(0xa7)]=ws,_0x582221[_0x33567b(0xc1)]=0x36ee80,_0x2c8369=new ReconnectingWebSocket(_0x568333,[],_0x582221),logger[_0x33567b(0x94)](_0x41ec46['TRPJv']),webSocketUtils['addListeners'](_0x2c8369,_0x3aa26f[_0x33567b(0xd2)],_0x3aa26f[_0x33567b(0xcd)]);const [_0x1d9f16,_0x161a82]=await _0x41ec46[_0x33567b(0xae)](getGridDetails,_0x4e9152['Browserstack'][_0x33567b(0xe9)],_0x4e9152[_0x33567b(0xaf)][_0x33567b(0xcd)],_0x3aa26f['gridId']);if(_0x161a82){const _0xc54c85=_0x161a82[_0x33567b(0x9b)];global_registry['cloudProvider']=_0xc54c85[_0x33567b(0xc2)],global_registry[_0x33567b(0xe3)]=_0xc54c85['region'],global_registry[_0x33567b(0xad)]=_0xc54c85[_0x33567b(0xad)];const _0x58a91f=await _0x41ec46[_0x33567b(0xbf)](getCloudProviderObject,_0xc54c85[_0x33567b(0xc2)],_0xc54c85[_0x33567b(0xad)],_0xc54c85[_0x33567b(0xd4)],_0x2c8369,webSocketUtils,_0x3aa26f),[_0x254b79,_0x50cf05,_0x317607,_0x4a44dc,_0x56b0a9,_0x55d304]=await _0x41ec46[_0x33567b(0xe6)](createK8sClient,_0x58a91f,_0x3aa26f[_0x33567b(0xaa)]);await _0x41ec46[_0x33567b(0xbc)](scaleUpHubDeployment,_0x50cf05,_0xc54c85[_0x33567b(0xd4)]),logger[_0x33567b(0x9b)](_0x41ec46[_0x33567b(0xa9)]),process[_0x33567b(0xd0)](0x0);}_0x41ec46[_0x33567b(0xac)](_0x1d9f16[_0x33567b(0x9c)],0x191)&&(logger[_0x33567b(0xa2)](_0x41ec46['Tkndx']),await _0x41ec46[_0x33567b(0xc6)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes[_0x33567b(0xea)],_0x41ec46[_0x33567b(0xdc)],null,_0x3aa26f),process[_0x33567b(0xd0)](0x1)),_0x41ec46[_0x33567b(0xa0)](_0x1d9f16['statusCode'],0x190)&&(logger[_0x33567b(0xa2)](JSON['parse'](_0x1d9f16['body'])[_0x33567b(0xe2)]),await _0x41ec46[_0x33567b(0xc0)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes['ERROR'],_0x41ec46[_0x33567b(0xeb)],null,_0x3aa26f),process[_0x33567b(0xd0)](0x1)),logger[_0x33567b(0xa2)](_0x33567b(0xa1)+JSON[_0x33567b(0xd1)](_0x1d9f16)),await _0x41ec46[_0x33567b(0xc6)](sendInstrumentationEvent,_0x3aa26f,_0x41ec46[_0x33567b(0xb0)],messageTypes[_0x33567b(0xea)],_0x41ec46[_0x33567b(0xd9)],_0x1d9f16,_0x3aa26f),process['exit'](0x1);}catch(_0x3c8850){const _0x3749ac='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x3c8850+'\x20\x0a'+JSON[_0x33567b(0xd1)](_0x3c8850[_0x33567b(0x93)])+'\x20';logger[_0x33567b(0xa2)](_0x3749ac),process[_0x33567b(0xd0)](0x1);}};
1
+ function a19_0x2701(_0x2fc535,_0x39f420){const _0x450970=a19_0x4509();return a19_0x2701=function(_0x2701d8,_0x3f075a){_0x2701d8=_0x2701d8-0x19a;let _0x2853fd=_0x450970[_0x2701d8];return _0x2853fd;},a19_0x2701(_0x2fc535,_0x39f420);}const a19_0x5aa0a7=a19_0x2701;(function(_0x1031ef,_0x103caa){const _0xff41a7=a19_0x2701,_0x4081a7=_0x1031ef();while(!![]){try{const _0x21f4e7=parseInt(_0xff41a7(0x1dd))/0x1+parseInt(_0xff41a7(0x1ee))/0x2+-parseInt(_0xff41a7(0x1b2))/0x3+parseInt(_0xff41a7(0x1e6))/0x4*(parseInt(_0xff41a7(0x1cb))/0x5)+-parseInt(_0xff41a7(0x1ec))/0x6+-parseInt(_0xff41a7(0x1ae))/0x7*(parseInt(_0xff41a7(0x1c5))/0x8)+-parseInt(_0xff41a7(0x1d7))/0x9*(-parseInt(_0xff41a7(0x1c8))/0xa);if(_0x21f4e7===_0x103caa)break;else _0x4081a7['push'](_0x4081a7['shift']());}catch(_0x1ec8a7){_0x4081a7['push'](_0x4081a7['shift']());}}}(a19_0x4509,0xb86a4));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x5aa0a7(0x1ef)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x5aa0a7(0x1b0)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x5aa0a7(0x1a4)),{sendInstrumentationEvent}=require(a19_0x5aa0a7(0x1ac)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x5aa0a7(0x1c1)]='grid',exports['desc']=a19_0x5aa0a7(0x1cf),exports[a19_0x5aa0a7(0x1b3)]=function(_0x2c7164){const _0x354a07=a19_0x5aa0a7,_0x33c8dd={};_0x33c8dd['IaKSb']=_0x354a07(0x1a9),_0x33c8dd[_0x354a07(0x1b5)]=_0x354a07(0x1a7),_0x33c8dd[_0x354a07(0x1de)]=_0x354a07(0x1ca),_0x33c8dd['EshNu']=_0x354a07(0x1a1),_0x33c8dd[_0x354a07(0x1be)]=_0x354a07(0x1b4);const _0x3356bc=_0x33c8dd,_0x15f905={};_0x15f905[_0x354a07(0x1c6)]=_0x3356bc[_0x354a07(0x1e4)],_0x15f905[_0x354a07(0x19c)]=_0x3356bc['TXShM'];const _0x382699={};_0x382699[_0x354a07(0x1c6)]=_0x3356bc['eiuVK'],_0x382699['type']=_0x3356bc[_0x354a07(0x1e7)],_0x382699[_0x354a07(0x1a8)]=![];const _0xd1dacf={};return _0xd1dacf['grid-id']=_0x15f905,_0xd1dacf[_0x354a07(0x19d)]=_0x382699,_0x2c7164[_0x354a07(0x1cd)](HELP_HEADER_MESSAGE[_0x354a07(0x1a5)])[_0x354a07(0x1ed)](HELP_FOOTER_MESSAGE)[_0x354a07(0x1f5)](_0xd1dacf)[_0x354a07(0x1b4)](_0x3356bc[_0x354a07(0x1be)])[_0x354a07(0x1c3)];},exports['handler']=async function(_0x430072){const _0x56131e=a19_0x5aa0a7,_0x1a898e={'qdprP':_0x56131e(0x1e0),'LfPun':function(_0xb485){return _0xb485();},'XfcoJ':_0x56131e(0x1b1),'IPmoQ':function(_0x28401b,_0x553e26,_0x305823,_0x43e81c,_0x5909fa,_0x286b03,_0xe8b9ed){return _0x28401b(_0x553e26,_0x305823,_0x43e81c,_0x5909fa,_0x286b03,_0xe8b9ed);},'wwrWO':'start-grid-called','HCyYr':_0x56131e(0x1a3),'KYCVL':_0x56131e(0x1d9),'YlZAm':'<PasswordPlaceholder>','DHQeg':_0x56131e(0x1d8),'LOcGZ':function(_0x197818,_0x24a6ba,_0x3e0cd4,_0x3aa84e){return _0x197818(_0x24a6ba,_0x3e0cd4,_0x3aa84e);},'hErhU':function(_0xcac6e1,_0x3ed471,_0x23f5be,_0x59dd54,_0x1f1174,_0x396088,_0x509375){return _0xcac6e1(_0x3ed471,_0x23f5be,_0x59dd54,_0x1f1174,_0x396088,_0x509375);},'wAfaF':function(_0x530024,_0x154fc1,_0x1f4cf8){return _0x530024(_0x154fc1,_0x1f4cf8);},'BaLjB':function(_0x166c4e,_0x56381d,_0x4495d9){return _0x166c4e(_0x56381d,_0x4495d9);},'HQLQT':_0x56131e(0x1e1),'gcOIe':function(_0x1d0e47,_0xc6d2e){return _0x1d0e47===_0xc6d2e;},'UWzmm':_0x56131e(0x1bd),'UdSPK':_0x56131e(0x1d5),'nWBbl':function(_0x3c3933,_0x3ec075,_0x2463e5,_0x5cee61,_0x11b313,_0x24380f,_0x266ede){return _0x3c3933(_0x3ec075,_0x2463e5,_0x5cee61,_0x11b313,_0x24380f,_0x266ede);},'dzArJ':_0x56131e(0x1e8),'cdTlp':function(_0x128da9,_0x1d015a,_0x192572,_0x30aba0,_0x5e4132,_0x547d35,_0xf0ad66){return _0x128da9(_0x1d015a,_0x192572,_0x30aba0,_0x5e4132,_0x547d35,_0xf0ad66);},'KLIri':_0x56131e(0x1e9)};let _0x34a441;try{!_0x430072[_0x56131e(0x1c4)]&&(logger[_0x56131e(0x1e3)](_0x1a898e['qdprP']),process[_0x56131e(0x1da)](0x1));!fs[_0x56131e(0x1ad)](_0x1a898e['LfPun'](getCredentialsPath))&&(logger['error'](_0x1a898e[_0x56131e(0x1df)]),await _0x1a898e['IPmoQ'](sendInstrumentationEvent,_0x430072,_0x1a898e[_0x56131e(0x1dc)],messageTypes[_0x56131e(0x1a0)],_0x1a898e[_0x56131e(0x1b7)],null,_0x430072),process[_0x56131e(0x1da)](0x1));logger[_0x56131e(0x1f1)](_0x56131e(0x1ba)+_0x430072[_0x56131e(0x1c4)]),await _0x1a898e['IPmoQ'](sendInstrumentationEvent,_0x430072,_0x1a898e['wwrWO'],messageTypes[_0x56131e(0x19f)],null,null,_0x430072);const _0x166681=JSON['parse'](fs[_0x56131e(0x1f4)](_0x1a898e[_0x56131e(0x1ab)](getCredentialsPath)));global_registry[_0x56131e(0x1af)]=_0x166681['Browserstack'][_0x56131e(0x1c7)],global_registry[_0x56131e(0x1f3)]=_0x166681[_0x56131e(0x1b9)]['password'];const _0x4154cd=WS_ENDPOINT[_0x56131e(0x1d3)](_0x1a898e[_0x56131e(0x1b6)],_0x166681[_0x56131e(0x1b9)]['username'])['replace'](_0x1a898e['YlZAm'],_0x166681[_0x56131e(0x1b9)][_0x56131e(0x1f0)]),_0x2b55e5={};_0x2b55e5[_0x56131e(0x1c0)]=ws,_0x2b55e5[_0x56131e(0x1d6)]=0x36ee80,_0x34a441=new ReconnectingWebSocket(_0x4154cd,[],_0x2b55e5),logger[_0x56131e(0x1d2)](_0x1a898e[_0x56131e(0x19e)]),webSocketUtils['addListeners'](_0x34a441,_0x430072[_0x56131e(0x1f2)],_0x430072[_0x56131e(0x1f0)]);const [_0x27e78d,_0x322135]=await _0x1a898e[_0x56131e(0x1db)](getGridDetails,_0x166681[_0x56131e(0x1b9)][_0x56131e(0x1c7)],_0x166681['Browserstack']['password'],_0x430072['gridId']);if(_0x322135){const _0x46779b=_0x322135[_0x56131e(0x1f1)];global_registry['cloudProvider']=_0x46779b['cloudProvider'],global_registry['clusterRegion']=_0x46779b[_0x56131e(0x1d4)],global_registry['clusterName']=_0x46779b[_0x56131e(0x1a2)];const _0x298163=await _0x1a898e[_0x56131e(0x1b8)](getCloudProviderObject,_0x46779b[_0x56131e(0x1aa)],_0x46779b['clusterName'],_0x46779b[_0x56131e(0x19b)],_0x34a441,webSocketUtils,_0x430072),[_0x1f0aa6,_0x11c017,_0x2ddff4,_0x1f2136,_0x54a74e,_0xb4d529]=await _0x1a898e['wAfaF'](createK8sClient,_0x298163,_0x430072['skipTlsCertVerify']);await _0x1a898e[_0x56131e(0x1d0)](scaleUpHubDeployment,_0x11c017,_0x46779b['name']),logger[_0x56131e(0x1f1)](_0x1a898e[_0x56131e(0x1c9)]),process[_0x56131e(0x1da)](0x0);}_0x1a898e[_0x56131e(0x1a6)](_0x27e78d[_0x56131e(0x19a)],0x191)&&(logger[_0x56131e(0x1e3)](_0x1a898e[_0x56131e(0x1bc)]),await _0x1a898e['hErhU'](sendInstrumentationEvent,_0x430072,_0x1a898e[_0x56131e(0x1dc)],messageTypes[_0x56131e(0x1a0)],_0x1a898e['UdSPK'],null,_0x430072),process[_0x56131e(0x1da)](0x1)),_0x1a898e['gcOIe'](_0x27e78d['statusCode'],0x190)&&(logger[_0x56131e(0x1e3)](JSON[_0x56131e(0x1c2)](_0x27e78d[_0x56131e(0x1bb)])[_0x56131e(0x1bf)]),await _0x1a898e[_0x56131e(0x1cc)](sendInstrumentationEvent,_0x430072,_0x1a898e['wwrWO'],messageTypes[_0x56131e(0x1a0)],_0x1a898e[_0x56131e(0x1eb)],null,_0x430072),process['exit'](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x56131e(0x1e5)](_0x27e78d)),await _0x1a898e[_0x56131e(0x1e2)](sendInstrumentationEvent,_0x430072,_0x1a898e[_0x56131e(0x1dc)],messageTypes[_0x56131e(0x1a0)],_0x1a898e[_0x56131e(0x1d1)],_0x27e78d,_0x430072),process['exit'](0x1);}catch(_0x541a48){const _0x1ce44b=_0x56131e(0x1ea)+_0x541a48+'\x20\x0a'+JSON[_0x56131e(0x1e5)](_0x541a48[_0x56131e(0x1ce)])+'\x20';logger[_0x56131e(0x1e3)](_0x1ce44b),process[_0x56131e(0x1da)](0x1);}};function a19_0x4509(){const _0x44bfcd=['500660vklBSx','HQLQT','Skip\x20insecure\x20cert\x20verification.','5PETOJg','nWBbl','usage','stack','Start\x20an\x20existing\x20Automation\x20grid.','BaLjB','KLIri','debug','replace','region','unauthorised','connectionTimeout','117TUJzld','Adding\x20Websocket\x20listeners','<UsernamePlaceholder>','exit','LOcGZ','wwrWO','711398UfpnoH','eiuVK','XfcoJ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Grid\x20started','cdTlp','error','IaKSb','stringify','3489304DAEqqJ','EshNu','invalid-grid-id','server-error','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','dzArJ','5107908KjNtZC','epilogue','136980EKLuNS','reconnecting-websocket','password','info','user','bstackAccesskey','readFileSync','options','statusCode','name','type','skip-tls-cert-verify','DHQeg','INFO','ERROR','boolean','clusterName','init-not-called','../../utils/gridComponents','start','gcOIe','string','default','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','cloudProvider','LfPun','../../utils/instrumentationUtils','existsSync','2191EACiDD','bstackUsername','../../config/logger','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','1842213IvpJuX','builder','help','TXShM','KYCVL','HCyYr','hErhU','Browserstack','Starting\x20grid\x20','body','UWzmm','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','lPJhq','message','WebSocket','command','parse','argv','gridId','2104YKfWRr','description','username'];a19_0x4509=function(){return _0x44bfcd;};return a19_0x4509();}
@@ -1 +1 @@
1
- const a20_0x5b38d7=a20_0x3de9;function a20_0x21e9(){const _0x44777a=['40rYPWcj','epilogue','builder','479325zQHBYe','7878244DJkCBn','usage','stop_commands','32yDWEzw','7LzXvCS','HFJut','2456TMhSLB','865220BVYDKA','29871gPFvIA','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','commandDir','7107495KFHshq','4282188CSDQVX','help','desc','handler','../config/constants','stop','1713284farOmv'];a20_0x21e9=function(){return _0x44777a;};return a20_0x21e9();}(function(_0x4c3805,_0x5dc3f5){const _0x5a3e8e=a20_0x3de9,_0x3b0252=_0x4c3805();while(!![]){try{const _0x1d05bf=parseInt(_0x5a3e8e(0x125))/0x1+parseInt(_0x5a3e8e(0x131))/0x2+parseInt(_0x5a3e8e(0x135))/0x3*(-parseInt(_0x5a3e8e(0x139))/0x4)+parseInt(_0x5a3e8e(0x12a))/0x5+parseInt(_0x5a3e8e(0x12b))/0x6*(parseInt(_0x5a3e8e(0x13a))/0x7)+parseInt(_0x5a3e8e(0x124))/0x8*(parseInt(_0x5a3e8e(0x126))/0x9)+parseInt(_0x5a3e8e(0x132))/0xa*(-parseInt(_0x5a3e8e(0x136))/0xb);if(_0x1d05bf===_0x5dc3f5)break;else _0x3b0252['push'](_0x3b0252['shift']());}catch(_0x2d67be){_0x3b0252['push'](_0x3b0252['shift']());}}}(a20_0x21e9,0xb2f30));function a20_0x3de9(_0x14a746,_0x26f454){const _0x21e927=a20_0x21e9();return a20_0x3de9=function(_0x3de98d,_0x33adfa){_0x3de98d=_0x3de98d-0x123;let _0x5c2f33=_0x21e927[_0x3de98d];return _0x5c2f33;},a20_0x3de9(_0x14a746,_0x26f454);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5b38d7(0x12f));exports['command']=a20_0x5b38d7(0x130),exports[a20_0x5b38d7(0x12d)]=a20_0x5b38d7(0x127),exports[a20_0x5b38d7(0x134)]=function(_0xdf9134){const _0x76fbb9=a20_0x5b38d7,_0x1f2209={};_0x1f2209[_0x76fbb9(0x123)]=_0x76fbb9(0x138),_0x1f2209['hSldn']=_0x76fbb9(0x12c);const _0x493182=_0x1f2209;return _0xdf9134[_0x76fbb9(0x137)](HELP_HEADER_MESSAGE['stop'])[_0x76fbb9(0x133)](HELP_FOOTER_MESSAGE)[_0x76fbb9(0x129)](_0x493182[_0x76fbb9(0x123)])[_0x76fbb9(0x128)]()['recommendCommands']()['strict']()[_0x76fbb9(0x12c)](_0x493182['hSldn']);},exports[a20_0x5b38d7(0x12e)]=function(_0x25359a){};
1
+ const a20_0x2ac5c8=a20_0x333b;(function(_0x4c5c92,_0x3bfc5b){const _0x8b1ae4=a20_0x333b,_0x4ee1aa=_0x4c5c92();while(!![]){try{const _0x30457e=parseInt(_0x8b1ae4(0x1a7))/0x1+-parseInt(_0x8b1ae4(0x1ac))/0x2+-parseInt(_0x8b1ae4(0x1b5))/0x3+parseInt(_0x8b1ae4(0x1a4))/0x4*(-parseInt(_0x8b1ae4(0x1a9))/0x5)+parseInt(_0x8b1ae4(0x1a5))/0x6+parseInt(_0x8b1ae4(0x1a6))/0x7+parseInt(_0x8b1ae4(0x1ae))/0x8*(parseInt(_0x8b1ae4(0x1b1))/0x9);if(_0x30457e===_0x3bfc5b)break;else _0x4ee1aa['push'](_0x4ee1aa['shift']());}catch(_0x5d5dc9){_0x4ee1aa['push'](_0x4ee1aa['shift']());}}}(a20_0x35f6,0xb41f5));function a20_0x35f6(){const _0x2d7c18=['Stop\x20a\x20running\x20Automation\x20grid.','commandDir','epilogue','1436972gTqjTQ','5527116ctNcsE','197568qlQeSB','310297JTnvcC','demandCommand','15BudNsO','../config/constants','strict','3366Udwlxp','recommendCommands','6483416ofgFUo','command','XebfA','18vIjNwF','builder','stop','usage','3190104XkiYyj','kAycF','handler','help'];a20_0x35f6=function(){return _0x2d7c18;};return a20_0x35f6();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x2ac5c8(0x1aa));function a20_0x333b(_0x1ce333,_0x11cca1){const _0x35f60a=a20_0x35f6();return a20_0x333b=function(_0x333bec,_0x92da8d){_0x333bec=_0x333bec-0x1a0;let _0xf446aa=_0x35f60a[_0x333bec];return _0xf446aa;},a20_0x333b(_0x1ce333,_0x11cca1);}exports[a20_0x2ac5c8(0x1af)]='stop',exports['desc']=a20_0x2ac5c8(0x1a1),exports[a20_0x2ac5c8(0x1b2)]=function(_0x143070){const _0x32489d=a20_0x2ac5c8,_0x2d0b6c={};_0x2d0b6c[_0x32489d(0x1b0)]='stop_commands',_0x2d0b6c['kAycF']=_0x32489d(0x1a0);const _0x1c924b=_0x2d0b6c;return _0x143070[_0x32489d(0x1b4)](HELP_HEADER_MESSAGE[_0x32489d(0x1b3)])[_0x32489d(0x1a3)](HELP_FOOTER_MESSAGE)[_0x32489d(0x1a2)](_0x1c924b[_0x32489d(0x1b0)])[_0x32489d(0x1a8)]()[_0x32489d(0x1ad)]()[_0x32489d(0x1ab)]()[_0x32489d(0x1a0)](_0x1c924b[_0x32489d(0x1b6)]);},exports[a20_0x2ac5c8(0x1b7)]=function(_0x4a6915){};
@@ -1 +1 @@
1
- function a21_0x2a9c(_0xc80812,_0x50ff9d){const _0x1ccb1e=a21_0x1ccb();return a21_0x2a9c=function(_0x2a9c1a,_0x510a72){_0x2a9c1a=_0x2a9c1a-0x15c;let _0x2d3740=_0x1ccb1e[_0x2a9c1a];return _0x2d3740;},a21_0x2a9c(_0xc80812,_0x50ff9d);}const a21_0x2d95fe=a21_0x2a9c;(function(_0x1e5d4b,_0x232f71){const _0x11b1b7=a21_0x2a9c,_0x5ba012=_0x1e5d4b();while(!![]){try{const _0x2741fa=parseInt(_0x11b1b7(0x1b4))/0x1+-parseInt(_0x11b1b7(0x18d))/0x2*(-parseInt(_0x11b1b7(0x182))/0x3)+-parseInt(_0x11b1b7(0x183))/0x4*(-parseInt(_0x11b1b7(0x1b9))/0x5)+parseInt(_0x11b1b7(0x1b1))/0x6*(parseInt(_0x11b1b7(0x1ac))/0x7)+-parseInt(_0x11b1b7(0x16d))/0x8*(parseInt(_0x11b1b7(0x1a9))/0x9)+-parseInt(_0x11b1b7(0x187))/0xa+-parseInt(_0x11b1b7(0x18c))/0xb*(parseInt(_0x11b1b7(0x1aa))/0xc);if(_0x2741fa===_0x232f71)break;else _0x5ba012['push'](_0x5ba012['shift']());}catch(_0x2c53dd){_0x5ba012['push'](_0x5ba012['shift']());}}}(a21_0x1ccb,0x24943));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2d95fe(0x1b5)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2d95fe(0x185)),{logger}=require(a21_0x2d95fe(0x1a6)),{getCredentialsPath,getGridDetails}=require(a21_0x2d95fe(0x171)),{scaleDownHubDeployment}=require(a21_0x2d95fe(0x1a4)),{sendInstrumentationEvent}=require(a21_0x2d95fe(0x1bb)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x2d95fe(0x192)),{getCloudProviderObject}=require(a21_0x2d95fe(0x1b0));function a21_0x1ccb(){const _0x332ac8=['<UsernamePlaceholder>','type','ApxiJ','clusterRegion','dGHpR','cloudProvider','Qksmk','Grid\x20stoppped.','TzsMr','string','RNoKr','Skip\x20insecure\x20cert\x20verification.','lOjzf','stop','3vArvtS','234116emhcsJ','region','../../config/constants','options','1026180OcMbPC','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AhgrP','replace','ZIJan','714967GrqPAM','325894uhVJCf','connectionTimeout','usage','addListeners','invalid-grid-id','../../utils/createk8sClient','stack','ERROR','jdjpD','readFileSync','HSiTd','szJzm','skipTlsCertVerify','CRLic','gAoRn','Stopping\x20grid\x20','body','clnbH','existsSync','description','clusterName','RcitE','statusCode','../../utils/gridComponents','gridId','../../config/logger','Adding\x20Websocket\x20listeners','gnwDA','1392003OsTheX','24ksttxn','command','6482XjOvte','debug','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../cloudproviders/utils','198ZoGquc','Xgdym','server-error','168014OmfVIY','reconnecting-websocket','WDjKB','exit','boolean','15mLdwDQ','ocuuU','../../utils/instrumentationUtils','jhSnV','user','OKAKO','epilogue','username','PZiZj','Stop\x20a\x20running\x20Automation\x20grid.','message','handler','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','help','parse','grid','QHwEe','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Browserstack','unauthorised','stop-grid-called','8qltydv','error','default','password','../../utils/utilityMethods','skip-tls-cert-verify','name'];a21_0x1ccb=function(){return _0x332ac8;};return a21_0x1ccb();}exports[a21_0x2d95fe(0x1ab)]=a21_0x2d95fe(0x167),exports['desc']=a21_0x2d95fe(0x161),exports['builder']=function(_0x4d7b68){const _0x5de81e=a21_0x2d95fe,_0x7cb03={};_0x7cb03[_0x5de81e(0x1a8)]=_0x5de81e(0x164),_0x7cb03[_0x5de81e(0x1a2)]=_0x5de81e(0x17d),_0x7cb03[_0x5de81e(0x17e)]=_0x5de81e(0x17f),_0x7cb03[_0x5de81e(0x19a)]=_0x5de81e(0x1b8),_0x7cb03[_0x5de81e(0x160)]=_0x5de81e(0x165);const _0x2e3048=_0x7cb03,_0x2199b7={};_0x2199b7[_0x5de81e(0x1a0)]=_0x2e3048['gnwDA'],_0x2199b7[_0x5de81e(0x175)]=_0x2e3048[_0x5de81e(0x1a2)];const _0x2c94fb={};_0x2c94fb[_0x5de81e(0x1a0)]=_0x2e3048[_0x5de81e(0x17e)],_0x2c94fb[_0x5de81e(0x175)]=_0x2e3048[_0x5de81e(0x19a)],_0x2c94fb[_0x5de81e(0x16f)]=![];const _0x4d11be={};return _0x4d11be['grid-id']=_0x2199b7,_0x4d11be[_0x5de81e(0x172)]=_0x2c94fb,_0x4d7b68[_0x5de81e(0x18f)](HELP_HEADER_MESSAGE[_0x5de81e(0x181)])[_0x5de81e(0x15e)](HELP_FOOTER_MESSAGE)[_0x5de81e(0x186)](_0x4d11be)[_0x5de81e(0x165)](_0x2e3048[_0x5de81e(0x160)])['argv'];},exports[a21_0x2d95fe(0x163)]=async function(_0x505974){const _0x1e95bc=a21_0x2d95fe,_0x16251e={'QHwEe':_0x1e95bc(0x169),'AhgrP':function(_0x29ba92){return _0x29ba92();},'clnbH':_0x1e95bc(0x188),'jdjpD':function(_0x1ea173,_0x5376c1,_0x20b292,_0x1cbc49,_0x311e75,_0x208a73,_0x524228){return _0x1ea173(_0x5376c1,_0x20b292,_0x1cbc49,_0x311e75,_0x208a73,_0x524228);},'jhSnV':_0x1e95bc(0x16c),'QdnBt':'init-not-called','dGHpR':function(_0x375dca,_0x28593a,_0x3e90b6,_0xf0cc30,_0x3a8d20,_0x17a646,_0x4881ae){return _0x375dca(_0x28593a,_0x3e90b6,_0xf0cc30,_0x3a8d20,_0x17a646,_0x4881ae);},'gAoRn':function(_0x2ea4b5){return _0x2ea4b5();},'szJzm':_0x1e95bc(0x174),'ZIJan':'<PasswordPlaceholder>','ApxiJ':_0x1e95bc(0x1a7),'HSiTd':function(_0x218439,_0x190742,_0x567352,_0x1e35e9){return _0x218439(_0x190742,_0x567352,_0x1e35e9);},'OKAKO':function(_0x43e346,_0x4c3114,_0x3bb4cf,_0x381e31,_0x2916eb,_0x15cc1f,_0x4f1b7e){return _0x43e346(_0x4c3114,_0x3bb4cf,_0x381e31,_0x2916eb,_0x15cc1f,_0x4f1b7e);},'ocuuU':function(_0x38b7eb,_0x23cda5,_0x5c8cd7){return _0x38b7eb(_0x23cda5,_0x5c8cd7);},'LsdqL':function(_0xb03875,_0xdfffbb,_0x9283a9){return _0xb03875(_0xdfffbb,_0x9283a9);},'wQQok':_0x1e95bc(0x17b),'lOjzf':function(_0x5a4c31,_0x28cf51){return _0x5a4c31===_0x28cf51;},'Qksmk':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xeBYm':_0x1e95bc(0x16b),'WDjKB':_0x1e95bc(0x191),'TzsMr':function(_0x1f8a2a,_0x1cd9a8,_0x1e723f,_0x2657af,_0xdb5c25,_0x14cba7,_0x5a89f7){return _0x1f8a2a(_0x1cd9a8,_0x1e723f,_0x2657af,_0xdb5c25,_0x14cba7,_0x5a89f7);},'Xgdym':_0x1e95bc(0x1b3)};let _0x4f8143;try{!_0x505974[_0x1e95bc(0x1a5)]&&(logger[_0x1e95bc(0x16e)](_0x16251e[_0x1e95bc(0x168)]),process[_0x1e95bc(0x1b7)](0x1));!fs[_0x1e95bc(0x19f)](_0x16251e[_0x1e95bc(0x189)](getCredentialsPath))&&(logger[_0x1e95bc(0x16e)](_0x16251e[_0x1e95bc(0x19e)]),await _0x16251e['jdjpD'](sendInstrumentationEvent,_0x505974,_0x16251e['jhSnV'],messageTypes[_0x1e95bc(0x194)],_0x16251e['QdnBt'],null,_0x505974),process[_0x1e95bc(0x1b7)](0x1));logger[_0x1e95bc(0x1ae)](_0x1e95bc(0x19c)+_0x505974[_0x1e95bc(0x1a5)]),await _0x16251e[_0x1e95bc(0x178)](sendInstrumentationEvent,_0x505974,_0x16251e[_0x1e95bc(0x1bc)],messageTypes['INFO'],null,null,_0x505974);const _0x348cf2=JSON[_0x1e95bc(0x166)](fs[_0x1e95bc(0x196)](_0x16251e[_0x1e95bc(0x19b)](getCredentialsPath)));global_registry['bstackUsername']=_0x348cf2['Browserstack'][_0x1e95bc(0x15f)],global_registry['bstackAccesskey']=_0x348cf2['Browserstack']['password'];const _0x4b25c3=WS_ENDPOINT[_0x1e95bc(0x18a)](_0x16251e[_0x1e95bc(0x198)],_0x348cf2[_0x1e95bc(0x16a)][_0x1e95bc(0x15f)])['replace'](_0x16251e[_0x1e95bc(0x18b)],_0x348cf2[_0x1e95bc(0x16a)]['password']),_0x3f80ef={};_0x3f80ef['WebSocket']=ws,_0x3f80ef[_0x1e95bc(0x18e)]=0x36ee80,_0x4f8143=new ReconnectingWebSocket(_0x4b25c3,[],_0x3f80ef),logger[_0x1e95bc(0x1ad)](_0x16251e[_0x1e95bc(0x176)]),webSocketUtils[_0x1e95bc(0x190)](_0x4f8143,_0x505974[_0x1e95bc(0x15c)],_0x505974['password']);const [_0x3c19cf,_0x3090b6]=await _0x16251e[_0x1e95bc(0x197)](getGridDetails,_0x348cf2[_0x1e95bc(0x16a)][_0x1e95bc(0x15f)],_0x348cf2[_0x1e95bc(0x16a)][_0x1e95bc(0x170)],_0x505974[_0x1e95bc(0x1a5)]);if(_0x3090b6){const _0x4b7507=_0x3090b6[_0x1e95bc(0x1ae)];global_registry[_0x1e95bc(0x179)]=_0x4b7507[_0x1e95bc(0x179)],global_registry[_0x1e95bc(0x177)]=_0x4b7507[_0x1e95bc(0x184)],global_registry[_0x1e95bc(0x1a1)]=_0x4b7507[_0x1e95bc(0x1a1)];const _0x4f62a8=await _0x16251e[_0x1e95bc(0x15d)](getCloudProviderObject,_0x4b7507[_0x1e95bc(0x179)],_0x4b7507['clusterName'],_0x4b7507[_0x1e95bc(0x173)],_0x4f8143,webSocketUtils,_0x505974),[_0x515f68,_0x2b22aa,_0x339ab4,_0x53f04d,_0xf79058,_0x16c1f1]=await _0x16251e[_0x1e95bc(0x1ba)](createK8sClient,_0x4f62a8,_0x505974[_0x1e95bc(0x199)]);await _0x16251e['LsdqL'](scaleDownHubDeployment,_0x2b22aa,_0x4b7507[_0x1e95bc(0x173)]),logger[_0x1e95bc(0x1ae)](_0x16251e['wQQok']),process[_0x1e95bc(0x1b7)](0x0);}_0x16251e[_0x1e95bc(0x180)](_0x3c19cf['statusCode'],0x191)&&(logger[_0x1e95bc(0x16e)](_0x16251e[_0x1e95bc(0x17a)]),await _0x16251e[_0x1e95bc(0x195)](sendInstrumentationEvent,_0x505974,_0x16251e[_0x1e95bc(0x1bc)],messageTypes['ERROR'],_0x16251e['xeBYm'],null,_0x505974),process['exit'](0x1)),_0x16251e[_0x1e95bc(0x180)](_0x3c19cf[_0x1e95bc(0x1a3)],0x190)&&(logger[_0x1e95bc(0x16e)](JSON[_0x1e95bc(0x166)](_0x3c19cf[_0x1e95bc(0x19d)])[_0x1e95bc(0x162)]),await _0x16251e[_0x1e95bc(0x15d)](sendInstrumentationEvent,_0x505974,_0x16251e[_0x1e95bc(0x1bc)],messageTypes[_0x1e95bc(0x194)],_0x16251e[_0x1e95bc(0x1b6)],null,_0x505974),process['exit'](0x1)),logger['error'](_0x1e95bc(0x1af)+JSON['stringify'](_0x3c19cf)),await _0x16251e[_0x1e95bc(0x17c)](sendInstrumentationEvent,_0x505974,_0x16251e[_0x1e95bc(0x1bc)],messageTypes[_0x1e95bc(0x194)],_0x16251e[_0x1e95bc(0x1b2)],_0x3c19cf,_0x505974),process[_0x1e95bc(0x1b7)](0x1);}catch(_0x327b3d){const _0x7f0e84='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x327b3d+'\x20\x0a'+JSON['stringify'](_0x327b3d[_0x1e95bc(0x193)])+'\x20';logger[_0x1e95bc(0x16e)](_0x7f0e84),process['exit'](0x1);}};
1
+ const a21_0x479e23=a21_0x5e0b;(function(_0x2fd27d,_0x44152c){const _0x2f2f60=a21_0x5e0b,_0x4b54f7=_0x2fd27d();while(!![]){try{const _0x1e57b7=parseInt(_0x2f2f60(0x148))/0x1+-parseInt(_0x2f2f60(0x111))/0x2+parseInt(_0x2f2f60(0x142))/0x3+parseInt(_0x2f2f60(0xf2))/0x4+parseInt(_0x2f2f60(0x114))/0x5+-parseInt(_0x2f2f60(0x100))/0x6+parseInt(_0x2f2f60(0x109))/0x7;if(_0x1e57b7===_0x44152c)break;else _0x4b54f7['push'](_0x4b54f7['shift']());}catch(_0x2d0e42){_0x4b54f7['push'](_0x4b54f7['shift']());}}}(a21_0x4a55,0xb6f09));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x479e23(0x10e)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x479e23(0x108)),{getCredentialsPath,getGridDetails}=require(a21_0x479e23(0x110)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x479e23(0x145)),{createK8sClient}=require(a21_0x479e23(0x13b)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x5e0b(_0x417d88,_0x2c0941){const _0x4a55db=a21_0x4a55();return a21_0x5e0b=function(_0x5e0b30,_0x3ee753){_0x5e0b30=_0x5e0b30-0xef;let _0x1ca854=_0x4a55db[_0x5e0b30];return _0x1ca854;},a21_0x5e0b(_0x417d88,_0x2c0941);}function a21_0x4a55(){const _0x2f23ce=['JhqDF','error','type','GDJZa','OpGSG','../../utils/createk8sClient','eFQlO','vIIQI','bstackAccesskey','Stopping\x20grid\x20','body','VqAVC','4334004RPabJf','init-not-called','Stop\x20a\x20running\x20Automation\x20grid.','../../utils/webSocketUtils','password','VULBG','390661LsESPB','bstackUsername','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','GRGTm','637188dnUTWD','<PasswordPlaceholder>','usage','clusterName','command','wxtrB','Skip\x20insecure\x20cert\x20verification.','WebSocket','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','Browserstack','stop','name','username','7348536awuGix','replace','cloudProvider','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','readFileSync','yarJt','region','builder','../../config/logger','710038TlWVSC','help','stringify','statusCode','stop-grid-called','reconnecting-websocket','unauthorised','../../utils/utilityMethods','1748182LNsjzS','kHKUE','skip-tls-cert-verify','3760540mCipRi','connectionTimeout','grid-id','uStDk','gridId','boolean','server-error','clusterRegion','WNMSX','AeiBz','addListeners','exit','epilogue','yxxFl','grid','stack','rNDfG','options','wqbuY','gIhul','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','<UsernamePlaceholder>','parse','qwBcK','message','existsSync','fkvyk','tkVhW','hjpLp','IqsIf','fIiDw','KHvVA','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','user'];a21_0x4a55=function(){return _0x2f23ce;};return a21_0x4a55();}exports[a21_0x479e23(0xf6)]=a21_0x479e23(0x122),exports['desc']=a21_0x479e23(0x144),exports[a21_0x479e23(0x107)]=function(_0x53bd9c){const _0x2340d8=a21_0x479e23,_0x20c35a={};_0x20c35a[_0x2340d8(0xf7)]=_0x2340d8(0x103),_0x20c35a['VqAVC']='string',_0x20c35a[_0x2340d8(0x126)]=_0x2340d8(0xf8),_0x20c35a[_0x2340d8(0x11c)]=_0x2340d8(0x119),_0x20c35a[_0x2340d8(0x11d)]=_0x2340d8(0x10a);const _0x4c8064=_0x20c35a,_0x2dae43={};_0x2dae43['description']=_0x4c8064[_0x2340d8(0xf7)],_0x2dae43['type']=_0x4c8064[_0x2340d8(0x141)];const _0x168b16={};_0x168b16['description']=_0x4c8064[_0x2340d8(0x126)],_0x168b16[_0x2340d8(0x138)]=_0x4c8064[_0x2340d8(0x11c)],_0x168b16['default']=![];const _0x18db69={};return _0x18db69[_0x2340d8(0x116)]=_0x2dae43,_0x18db69[_0x2340d8(0x113)]=_0x168b16,_0x53bd9c[_0x2340d8(0xf4)](HELP_HEADER_MESSAGE[_0x2340d8(0xfd)])[_0x2340d8(0x120)](HELP_FOOTER_MESSAGE)[_0x2340d8(0x125)](_0x18db69)[_0x2340d8(0x10a)](_0x4c8064[_0x2340d8(0x11d)])['argv'];},exports['handler']=async function(_0x1f17de){const _0x10cf46=a21_0x479e23,_0xdb5886={'eFQlO':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','hjpLp':function(_0x8fdb4b){return _0x8fdb4b();},'qwBcK':_0x10cf46(0xef),'fIiDw':function(_0x3e85c5,_0x5a0956,_0x8b8d70,_0x25bc13,_0x3735d3,_0x3874c9,_0x1a8245){return _0x3e85c5(_0x5a0956,_0x8b8d70,_0x25bc13,_0x3735d3,_0x3874c9,_0x1a8245);},'KHvVA':_0x10cf46(0x10d),'tkVhW':_0x10cf46(0x143),'uStDk':function(_0x150715,_0x343a47,_0x2ff66d,_0x30f2fe,_0x2cefd8,_0x27276d,_0x56078e){return _0x150715(_0x343a47,_0x2ff66d,_0x30f2fe,_0x2cefd8,_0x27276d,_0x56078e);},'yxxFl':_0x10cf46(0x129),'fkvyk':_0x10cf46(0xf3),'JhqDF':'Adding\x20Websocket\x20listeners','yarJt':function(_0x30bdfd,_0x3ea384,_0xd3b808,_0x10f1b4){return _0x30bdfd(_0x3ea384,_0xd3b808,_0x10f1b4);},'GDJZa':function(_0x4b4ce7,_0x4988b7,_0x456641,_0x1b8cea,_0x3eff64,_0x547051,_0x4ac12f){return _0x4b4ce7(_0x4988b7,_0x456641,_0x1b8cea,_0x3eff64,_0x547051,_0x4ac12f);},'rNDfG':function(_0x1be46c,_0x293ede,_0x33a568){return _0x1be46c(_0x293ede,_0x33a568);},'XgINW':'Grid\x20stoppped.','kHKUE':function(_0x5d27b5,_0x41a759){return _0x5d27b5===_0x41a759;},'OpGSG':_0x10cf46(0xfa),'vIIQI':function(_0x385e14,_0x35888f,_0x53349c,_0xcab321,_0x34bb82,_0x21d7ce,_0x32151c){return _0x385e14(_0x35888f,_0x53349c,_0xcab321,_0x34bb82,_0x21d7ce,_0x32151c);},'GRGTm':_0x10cf46(0x10f),'gIhul':function(_0x58cb9a,_0x5a686b,_0x4eee67,_0x1be5dc,_0x21d987,_0xa5b47,_0x19dcaa){return _0x58cb9a(_0x5a686b,_0x4eee67,_0x1be5dc,_0x21d987,_0xa5b47,_0x19dcaa);},'VULBG':'invalid-grid-id','IqsIf':_0x10cf46(0x11a)};let _0x2f30b3;try{!_0x1f17de[_0x10cf46(0x118)]&&(logger[_0x10cf46(0x137)](_0xdb5886[_0x10cf46(0x13c)]),process[_0x10cf46(0x11f)](0x1));!fs[_0x10cf46(0x12d)](_0xdb5886[_0x10cf46(0x130)](getCredentialsPath))&&(logger[_0x10cf46(0x137)](_0xdb5886[_0x10cf46(0x12b)]),await _0xdb5886[_0x10cf46(0x132)](sendInstrumentationEvent,_0x1f17de,_0xdb5886[_0x10cf46(0x133)],messageTypes[_0x10cf46(0xf0)],_0xdb5886[_0x10cf46(0x12f)],null,_0x1f17de),process['exit'](0x1));logger['info'](_0x10cf46(0x13f)+_0x1f17de[_0x10cf46(0x118)]),await _0xdb5886[_0x10cf46(0x117)](sendInstrumentationEvent,_0x1f17de,_0xdb5886[_0x10cf46(0x133)],messageTypes['INFO'],null,null,_0x1f17de);const _0x2b28cb=JSON[_0x10cf46(0x12a)](fs[_0x10cf46(0x104)](_0xdb5886[_0x10cf46(0x130)](getCredentialsPath)));global_registry[_0x10cf46(0x149)]=_0x2b28cb['Browserstack'][_0x10cf46(0xff)],global_registry[_0x10cf46(0x13e)]=_0x2b28cb[_0x10cf46(0xfc)][_0x10cf46(0x146)];const _0x8e3a88=WS_ENDPOINT['replace'](_0xdb5886[_0x10cf46(0x121)],_0x2b28cb[_0x10cf46(0xfc)][_0x10cf46(0xff)])[_0x10cf46(0x101)](_0xdb5886[_0x10cf46(0x12e)],_0x2b28cb[_0x10cf46(0xfc)][_0x10cf46(0x146)]),_0x387045={};_0x387045[_0x10cf46(0xf9)]=ws,_0x387045[_0x10cf46(0x115)]=0x36ee80,_0x2f30b3=new ReconnectingWebSocket(_0x8e3a88,[],_0x387045),logger['debug'](_0xdb5886[_0x10cf46(0x136)]),webSocketUtils[_0x10cf46(0x11e)](_0x2f30b3,_0x1f17de[_0x10cf46(0x135)],_0x1f17de[_0x10cf46(0x146)]);const [_0x11f1ca,_0x49d1fd]=await _0xdb5886[_0x10cf46(0x105)](getGridDetails,_0x2b28cb[_0x10cf46(0xfc)][_0x10cf46(0xff)],_0x2b28cb[_0x10cf46(0xfc)]['password'],_0x1f17de[_0x10cf46(0x118)]);if(_0x49d1fd){const _0x49ce16=_0x49d1fd['info'];global_registry[_0x10cf46(0x102)]=_0x49ce16['cloudProvider'],global_registry[_0x10cf46(0x11b)]=_0x49ce16[_0x10cf46(0x106)],global_registry[_0x10cf46(0xf5)]=_0x49ce16['clusterName'];const _0x4ef070=await _0xdb5886[_0x10cf46(0x139)](getCloudProviderObject,_0x49ce16[_0x10cf46(0x102)],_0x49ce16[_0x10cf46(0xf5)],_0x49ce16[_0x10cf46(0xfe)],_0x2f30b3,webSocketUtils,_0x1f17de),[_0x4fc678,_0x38b82b,_0x579f98,_0x36efdc,_0x145352,_0x3c9772]=await _0xdb5886[_0x10cf46(0x124)](createK8sClient,_0x4ef070,_0x1f17de['skipTlsCertVerify']);await _0xdb5886[_0x10cf46(0x124)](scaleDownHubDeployment,_0x38b82b,_0x49ce16[_0x10cf46(0xfe)]),logger[_0x10cf46(0xfb)](_0xdb5886['XgINW']),process['exit'](0x0);}_0xdb5886['kHKUE'](_0x11f1ca['statusCode'],0x191)&&(logger['error'](_0xdb5886[_0x10cf46(0x13a)]),await _0xdb5886[_0x10cf46(0x13d)](sendInstrumentationEvent,_0x1f17de,_0xdb5886['KHvVA'],messageTypes['ERROR'],_0xdb5886[_0x10cf46(0xf1)],null,_0x1f17de),process['exit'](0x1)),_0xdb5886[_0x10cf46(0x112)](_0x11f1ca[_0x10cf46(0x10c)],0x190)&&(logger[_0x10cf46(0x137)](JSON[_0x10cf46(0x12a)](_0x11f1ca[_0x10cf46(0x140)])[_0x10cf46(0x12c)]),await _0xdb5886[_0x10cf46(0x127)](sendInstrumentationEvent,_0x1f17de,_0xdb5886[_0x10cf46(0x133)],messageTypes['ERROR'],_0xdb5886[_0x10cf46(0x147)],null,_0x1f17de),process[_0x10cf46(0x11f)](0x1)),logger['error'](_0x10cf46(0x128)+JSON[_0x10cf46(0x10b)](_0x11f1ca)),await _0xdb5886[_0x10cf46(0x117)](sendInstrumentationEvent,_0x1f17de,_0xdb5886[_0x10cf46(0x133)],messageTypes['ERROR'],_0xdb5886[_0x10cf46(0x131)],_0x11f1ca,_0x1f17de),process['exit'](0x1);}catch(_0x2490f0){const _0xa57fe8=_0x10cf46(0x134)+_0x2490f0+'\x20\x0a'+JSON['stringify'](_0x2490f0[_0x10cf46(0x123)])+'\x20';logger[_0x10cf46(0x137)](_0xa57fe8),process[_0x10cf46(0x11f)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x373789=a22_0x5ef2;(function(_0x15fd16,_0x55e9c8){const _0xb4c48c=a22_0x5ef2,_0x157fc3=_0x15fd16();while(!![]){try{const _0x2fba8e=parseInt(_0xb4c48c(0x120))/0x1*(-parseInt(_0xb4c48c(0x12b))/0x2)+-parseInt(_0xb4c48c(0x135))/0x3+parseInt(_0xb4c48c(0x168))/0x4+parseInt(_0xb4c48c(0x17b))/0x5+-parseInt(_0xb4c48c(0x160))/0x6*(parseInt(_0xb4c48c(0x15b))/0x7)+parseInt(_0xb4c48c(0x156))/0x8+parseInt(_0xb4c48c(0x176))/0x9;if(_0x2fba8e===_0x55e9c8)break;else _0x157fc3['push'](_0x157fc3['shift']());}catch(_0x318201){_0x157fc3['push'](_0x157fc3['shift']());}}}(a22_0x1383,0xdbdc2),require(a22_0x373789(0x18a))[a22_0x373789(0x123)]());let gridURL=a22_0x373789(0x188),bsApiUrl=a22_0x373789(0x13e),agApiUrl=a22_0x373789(0x14a);function a22_0x1383(){const _0x2a07a8=['Key','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','cliRunStarted','1646505NnMWpE','BS_API_URL','toLowerCase','split','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','TRIAL_GRID_URL','grid-preprod.bsstag.com','create','browserstack-turboscale-grid','api.browserstack.com','Value','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CLUSTER','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid-devhst.bsstag.com','stag','WS_EVENTS','pre-prod','CLUSTER_HUB_HA_STACK_NAME','GRID_URL','BrowserStack-Automate-TurboScale','grid-api.browserstack.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','LOG','success','aws','wss://','init','gcp','BSTACK-ATS-CLUSTER','RAW_ARGS_REGEX','HST_CLUSTER_TAGS','10883080lTnftK','WS_ENDPOINT','pre-check','LINK_MESSAGE','browserstack:managedBy','21ckhJpf','GCP','IAM_USER_NAME','BSTACK-ATS-CLUSTER-AUTOSCALER','root','810462zonFqe','INFO','api-preprod.bsstag.com','stop','info','grid-api-preprod.bsstag.com','[REDACTED]','CLI_ARGS_REGEX','5014560YSRLiJ','staging','TURBOSCALE_CUSTOM_TAGS','AWS','grid','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','log','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','gridUrl','DEFAULT_CLUSTER_DETAILS','global_registry','messageTypes','forEach','CLUSTER_AUTOSCALER_STACK_NAME','3144258osjfGF','BrowserStack','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','ERROR','api-devhst.bsstag.com','1405120YeLooJ','WARNING','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','us-east-1','gridProfile','MessageDescription','warning','list','REGION','TURBOSCALE_DEPLOYMENT','grid-api-devhst.bsstag.com','start','DASHBOARD_ENDPOINT','grid.browserstack.com','browserstack:service','dotenv','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','high-scale-grid','error','REDACTED','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','1231LcIcMC','env','CLI_RUN_STARTED','config','HELP_HEADER_MESSAGE','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','resourceInfo','cliRunFinished','DEFAULT_GRID_NAME','CP_CONFIG_FILE','COMMON_HST_TAGS','2258nbsuYc','azure','AG_API_URL','UNKNOWN','CLI_RUN_FINISHED','high-scale-grid-cluster','credentials'];a22_0x1383=function(){return _0x2a07a8;};return a22_0x1383();}const _env=(process[a22_0x373789(0x121)]['BROWSERSTACK_ENV']||'prod')[a22_0x373789(0x137)]();if(_env===a22_0x373789(0x169)||_env===a22_0x373789(0x144))gridURL=a22_0x373789(0x143),bsApiUrl=a22_0x373789(0x17a),agApiUrl=a22_0x373789(0x185);else(_env==='preprod'||_env===a22_0x373789(0x146))&&(gridURL=a22_0x373789(0x13b),bsApiUrl=a22_0x373789(0x162),agApiUrl=a22_0x373789(0x165));exports[a22_0x373789(0x187)]=process[a22_0x373789(0x121)][a22_0x373789(0x187)]||gridURL,exports[a22_0x373789(0x136)]=process['env']['BS_API_URL']||bsApiUrl,exports[a22_0x373789(0x12d)]=process[a22_0x373789(0x121)]['AG_API_URL']||agApiUrl,exports[a22_0x373789(0x157)]=a22_0x373789(0x150)+this[a22_0x373789(0x12d)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x373789(0x129)]=a22_0x373789(0x131),exports[a22_0x373789(0x15d)]='BrowserStackIAMUser',exports[a22_0x373789(0x128)]=a22_0x373789(0x18c),exports[a22_0x373789(0x16b)]=a22_0x373789(0x14f),exports['CLUSTER_DEP_STACK_NAME']=a22_0x373789(0x153),exports[a22_0x373789(0x175)]=a22_0x373789(0x15e),exports[a22_0x373789(0x147)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x373789(0x184)]=a22_0x373789(0x13d),exports['AZURE']=a22_0x373789(0x12c),exports[a22_0x373789(0x15c)]=a22_0x373789(0x152),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x373789(0x16b)],this['AZURE'],this['GCP']];const a22_0xbd6986={};a22_0xbd6986[a22_0x373789(0x132)]=a22_0x373789(0x15a),a22_0xbd6986[a22_0x373789(0x13f)]='BrowserStack';const a22_0x2422ff={};a22_0x2422ff[a22_0x373789(0x132)]=a22_0x373789(0x189),a22_0x2422ff[a22_0x373789(0x13f)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0xbd6986,a22_0x2422ff];if(process[a22_0x373789(0x121)][a22_0x373789(0x16a)]){const parsedTags=process[a22_0x373789(0x121)][a22_0x373789(0x16a)]['split'](',');parsedTags[a22_0x373789(0x174)](_0x405ba5=>{const _0x1f3eb5=a22_0x373789,_0x5d1022=_0x405ba5[_0x1f3eb5(0x138)](':'),_0x27da29={};_0x27da29['Key']=_0x5d1022[0x0],_0x27da29[_0x1f3eb5(0x13f)]=_0x5d1022[0x1],common_hst_tags_list['push'](_0x27da29);});}exports[a22_0x373789(0x12a)]=common_hst_tags_list;const a22_0x2dc635={};a22_0x2dc635[a22_0x373789(0x15a)]=a22_0x373789(0x177),a22_0x2dc635['browserstack:service']=a22_0x373789(0x149),exports[a22_0x373789(0x155)]=a22_0x2dc635,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0xe29d16={};a22_0xe29d16[a22_0x373789(0x14d)]=a22_0x373789(0x16e),a22_0xe29d16['RESOURCES']=a22_0x373789(0x126),a22_0xe29d16[a22_0x373789(0x148)]=a22_0x373789(0x170),a22_0xe29d16[a22_0x373789(0x122)]=a22_0x373789(0x134),a22_0xe29d16[a22_0x373789(0x12f)]=a22_0x373789(0x127),exports[a22_0x373789(0x145)]=a22_0xe29d16,exports[a22_0x373789(0x172)]={},exports[a22_0x373789(0x159)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x1ae7e9={};function a22_0x5ef2(_0x7a89e6,_0x3ca436){const _0x13838f=a22_0x1383();return a22_0x5ef2=function(_0x5ef2c6,_0x3d485c){_0x5ef2c6=_0x5ef2c6-0x11f;let _0x1689ac=_0x13838f[_0x5ef2c6];return _0x1689ac;},a22_0x5ef2(_0x7a89e6,_0x3ca436);}a22_0x1ae7e9[a22_0x373789(0x15f)]=a22_0x373789(0x18b)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x151)]=a22_0x373789(0x139)+this[a22_0x373789(0x159)],a22_0x1ae7e9['configure']=a22_0x373789(0x190)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x13c)]=a22_0x373789(0x133)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x182)]={},a22_0x1ae7e9['delete']=a22_0x373789(0x16f)+this[a22_0x373789(0x159)],a22_0x1ae7e9['connect']=a22_0x373789(0x178)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x186)]=a22_0x373789(0x14c)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x163)]=a22_0x373789(0x140)+this[a22_0x373789(0x159)],a22_0x1ae7e9['pre_check']=a22_0x373789(0x125)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x182)][a22_0x373789(0x15f)]=a22_0x373789(0x11f)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x182)][a22_0x373789(0x16c)]=a22_0x373789(0x14b)+this[a22_0x373789(0x159)],a22_0x1ae7e9[a22_0x373789(0x182)][a22_0x373789(0x17f)]=a22_0x373789(0x17d)+this[a22_0x373789(0x159)],exports[a22_0x373789(0x124)]=a22_0x1ae7e9,exports['HELP_FOOTER_MESSAGE']=a22_0x373789(0x142);const a22_0x1257cc={};a22_0x1257cc['SUCCESS']=a22_0x373789(0x14e),a22_0x1257cc[a22_0x373789(0x179)]=a22_0x373789(0x18d),a22_0x1257cc[a22_0x373789(0x161)]=a22_0x373789(0x164),a22_0x1257cc[a22_0x373789(0x17c)]=a22_0x373789(0x181),a22_0x1257cc[a22_0x373789(0x12e)]='unknown',a22_0x1257cc['NULL']=null,exports[a22_0x373789(0x173)]=a22_0x1257cc,exports[a22_0x373789(0x167)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x373789(0x154)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x373789(0x18e)]=a22_0x373789(0x166);const a22_0x12ca54={};a22_0x12ca54['grid-profile']=a22_0x373789(0x18f);const a22_0x2d0c1={};a22_0x2d0c1[a22_0x373789(0x158)]=a22_0x12ca54,exports[a22_0x373789(0x180)]=a22_0x2d0c1,exports[a22_0x373789(0x13a)]=a22_0x373789(0x16d);const a22_0x43d20e={};a22_0x43d20e[a22_0x373789(0x141)]=a22_0x373789(0x130),a22_0x43d20e['CLOUD_PROVIDER']=a22_0x373789(0x14f),a22_0x43d20e[a22_0x373789(0x183)]=a22_0x373789(0x17e),exports[a22_0x373789(0x171)]=a22_0x43d20e;
1
+ const a22_0x5199d0=a22_0x20bb;(function(_0x3fc4b4,_0x35cda4){const _0x59406e=a22_0x20bb,_0x127a54=_0x3fc4b4();while(!![]){try{const _0x224ac4=parseInt(_0x59406e(0x16b))/0x1+parseInt(_0x59406e(0x158))/0x2*(parseInt(_0x59406e(0x189))/0x3)+parseInt(_0x59406e(0x174))/0x4*(-parseInt(_0x59406e(0x19f))/0x5)+-parseInt(_0x59406e(0x18d))/0x6+parseInt(_0x59406e(0x179))/0x7+parseInt(_0x59406e(0x16d))/0x8+parseInt(_0x59406e(0x190))/0x9*(-parseInt(_0x59406e(0x166))/0xa);if(_0x224ac4===_0x35cda4)break;else _0x127a54['push'](_0x127a54['shift']());}catch(_0x341749){_0x127a54['push'](_0x127a54['shift']());}}}(a22_0x1358,0xdfa23),require(a22_0x5199d0(0x154))[a22_0x5199d0(0x1a1)]());let gridURL=a22_0x5199d0(0x1a9),bsApiUrl=a22_0x5199d0(0x195),agApiUrl=a22_0x5199d0(0x180);const _env=(process[a22_0x5199d0(0x160)][a22_0x5199d0(0x173)]||a22_0x5199d0(0x15d))[a22_0x5199d0(0x194)]();if(_env==='staging'||_env===a22_0x5199d0(0x19b))gridURL=a22_0x5199d0(0x1a6),bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x5199d0(0x1b0);else(_env===a22_0x5199d0(0x197)||_env===a22_0x5199d0(0x161))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x5199d0(0x155),agApiUrl=a22_0x5199d0(0x182));exports['DASHBOARD_ENDPOINT']=process[a22_0x5199d0(0x160)][a22_0x5199d0(0x1ae)]||gridURL,exports['BS_API_URL']=process[a22_0x5199d0(0x160)][a22_0x5199d0(0x17b)]||bsApiUrl,exports[a22_0x5199d0(0x19e)]=process[a22_0x5199d0(0x160)][a22_0x5199d0(0x19e)]||agApiUrl,exports[a22_0x5199d0(0x175)]=a22_0x5199d0(0x18c)+this[a22_0x5199d0(0x19e)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x5199d0(0x17e)]=a22_0x5199d0(0x18f),exports['IAM_USER_NAME']=a22_0x5199d0(0x176),exports[a22_0x5199d0(0x1b6)]=a22_0x5199d0(0x19d),exports['AWS']='aws',exports[a22_0x5199d0(0x14f)]=a22_0x5199d0(0x17a),exports[a22_0x5199d0(0x164)]=a22_0x5199d0(0x188),exports[a22_0x5199d0(0x151)]='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x5199d0(0x19a)]=a22_0x5199d0(0x192),exports[a22_0x5199d0(0x168)]='gcp',exports[a22_0x5199d0(0x16f)]=[this[a22_0x5199d0(0x1b5)],this[a22_0x5199d0(0x19a)],this[a22_0x5199d0(0x168)]];const a22_0x53f2d5={};a22_0x53f2d5['Key']=a22_0x5199d0(0x198),a22_0x53f2d5['Value']='BrowserStack';const a22_0x134c4a={};a22_0x134c4a[a22_0x5199d0(0x170)]=a22_0x5199d0(0x1a0),a22_0x134c4a['Value']=a22_0x5199d0(0x1a7);const common_hst_tags_list=[a22_0x53f2d5,a22_0x134c4a];if(process[a22_0x5199d0(0x160)][a22_0x5199d0(0x15c)]){const parsedTags=process[a22_0x5199d0(0x160)][a22_0x5199d0(0x15c)][a22_0x5199d0(0x1ad)](',');parsedTags['forEach'](_0x4d2ded=>{const _0x2a21e5=a22_0x5199d0,_0x30239a=_0x4d2ded['split'](':'),_0x6799dd={};_0x6799dd[_0x2a21e5(0x170)]=_0x30239a[0x0],_0x6799dd[_0x2a21e5(0x17d)]=_0x30239a[0x1],common_hst_tags_list[_0x2a21e5(0x178)](_0x6799dd);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x15163d={};a22_0x15163d[a22_0x5199d0(0x198)]=a22_0x5199d0(0x1a8),a22_0x15163d[a22_0x5199d0(0x1a0)]=a22_0x5199d0(0x1a7),exports[a22_0x5199d0(0x14b)]=a22_0x15163d,exports[a22_0x5199d0(0x1a2)]=[this[a22_0x5199d0(0x1b5)]];const a22_0xc30fea={};function a22_0x1358(){const _0x3e0be2=['DEFAULT_GRID_NAME','MessageDescription','HST_CLUSTER_TAGS','pre_check','NULL','CLUSTER','CLUSTER_DEP_STACK_NAME','resourceInfo','CLUSTER_HUB_HA_STACK_NAME','grid-profile','us-east-1','dotenv','api-preprod.bsstag.com','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','create','214LdYXVm','global_registry','CLI_RUN_FINISHED','pre-check','TURBOSCALE_CUSTOM_TAGS','prod','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','INFO','env','pre-prod','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid','CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','6250060NNzaNG','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','GCP','delete','start','466161XRGppc','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','8723520nazOmB','configure','ALL_SUPPORTED_CLOUD_PROVIDERS','Key','DEFAULT_CLUSTER_DETAILS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','BROWSERSTACK_ENV','612392gxsVig','WS_ENDPOINT','BrowserStackIAMUser','root','push','12749828gfFclj','BSTACK-ATS-CLUSTER','BS_API_URL','info','Value','CP_CONFIG_FILE','cliRunFinished','grid-api.browserstack.com','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid-api-preprod.bsstag.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','LOG','RESOURCES','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','CLI_RUN_STARTED','BSTACK-ATS-CLUSTER-AUTOSCALER','38073KNIlsZ','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','aws','wss://','8989446VhooNl','HELP_HEADER_MESSAGE','credentials','18qbkOSA','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','azure','GRID_URL','toLowerCase','api.browserstack.com','LINK_MESSAGE','preprod','browserstack:managedBy','SUCCESS','AZURE','stag','gridProfile','high-scale-grid','AG_API_URL','35yYkGMa','browserstack:service','config','SUPPORTED_CLOUD_PROVIDERS','gridUrl','CLI_ARGS_REGEX','init','grid-devhst.bsstag.com','BrowserStack-Automate-TurboScale','BrowserStack','grid.browserstack.com','messageTypes','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','connect','split','DASHBOARD_ENDPOINT','WARNING','grid-api-devhst.bsstag.com','list','HELP_FOOTER_MESSAGE','RAW_ARGS_REGEX','REGION','AWS'];a22_0x1358=function(){return _0x3e0be2;};return a22_0x1358();}function a22_0x20bb(_0x3bfcd7,_0x3aeeb9){const _0x1358c9=a22_0x1358();return a22_0x20bb=function(_0x20bb57,_0x4f0af2){_0x20bb57=_0x20bb57-0x14b;let _0x4d19a2=_0x1358c9[_0x20bb57];return _0x4d19a2;},a22_0x20bb(_0x3bfcd7,_0x3aeeb9);}a22_0xc30fea[a22_0x5199d0(0x184)]='log',a22_0xc30fea[a22_0x5199d0(0x185)]=a22_0x5199d0(0x150),a22_0xc30fea[a22_0x5199d0(0x193)]=a22_0x5199d0(0x1a3),a22_0xc30fea[a22_0x5199d0(0x187)]='cliRunStarted',a22_0xc30fea[a22_0x5199d0(0x15a)]=a22_0x5199d0(0x17f),exports['WS_EVENTS']=a22_0xc30fea,exports[a22_0x5199d0(0x159)]={},exports[a22_0x5199d0(0x196)]=a22_0x5199d0(0x167);const a22_0x328243={};a22_0x328243['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x5199d0(0x196)],a22_0x328243[a22_0x5199d0(0x1a5)]=a22_0x5199d0(0x191)+this[a22_0x5199d0(0x196)],a22_0x328243[a22_0x5199d0(0x16e)]=a22_0x5199d0(0x18a)+this['LINK_MESSAGE'],a22_0x328243[a22_0x5199d0(0x157)]=a22_0x5199d0(0x156)+this[a22_0x5199d0(0x196)],a22_0x328243[a22_0x5199d0(0x1b1)]={},a22_0x328243[a22_0x5199d0(0x169)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x5199d0(0x196)],a22_0x328243[a22_0x5199d0(0x1ac)]=a22_0x5199d0(0x186)+this['LINK_MESSAGE'],a22_0x328243[a22_0x5199d0(0x16a)]=a22_0x5199d0(0x181)+this[a22_0x5199d0(0x196)],a22_0x328243['stop']=a22_0x5199d0(0x15e)+this[a22_0x5199d0(0x196)],a22_0x328243[a22_0x5199d0(0x14c)]=a22_0x5199d0(0x172)+this[a22_0x5199d0(0x196)],a22_0x328243[a22_0x5199d0(0x1b1)][a22_0x5199d0(0x177)]=a22_0x5199d0(0x1ab)+this[a22_0x5199d0(0x196)],a22_0x328243[a22_0x5199d0(0x1b1)][a22_0x5199d0(0x163)]=a22_0x5199d0(0x16c)+this[a22_0x5199d0(0x196)],a22_0x328243[a22_0x5199d0(0x1b1)][a22_0x5199d0(0x19c)]=a22_0x5199d0(0x165)+this[a22_0x5199d0(0x196)],exports[a22_0x5199d0(0x18e)]=a22_0x328243,exports[a22_0x5199d0(0x1b2)]=a22_0x5199d0(0x162);const a22_0x4ddb17={};a22_0x4ddb17[a22_0x5199d0(0x199)]='success',a22_0x4ddb17['ERROR']='error',a22_0x4ddb17[a22_0x5199d0(0x15f)]=a22_0x5199d0(0x17c),a22_0x4ddb17[a22_0x5199d0(0x1af)]='warning',a22_0x4ddb17['UNKNOWN']='unknown',a22_0x4ddb17[a22_0x5199d0(0x14d)]=null,exports[a22_0x5199d0(0x1aa)]=a22_0x4ddb17,exports[a22_0x5199d0(0x1a4)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5199d0(0x1b3)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0x5002de={};a22_0x5002de[a22_0x5199d0(0x152)]=a22_0x5199d0(0x183);const a22_0x5064eb={};a22_0x5064eb[a22_0x5199d0(0x15b)]=a22_0x5002de,exports[a22_0x5199d0(0x1b7)]=a22_0x5064eb,exports['TRIAL_GRID_URL']='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x5b0c7e={};a22_0x5b0c7e[a22_0x5199d0(0x14e)]='high-scale-grid-cluster',a22_0x5b0c7e['CLOUD_PROVIDER']=a22_0x5199d0(0x18b),a22_0x5b0c7e[a22_0x5199d0(0x1b4)]=a22_0x5199d0(0x153),exports[a22_0x5199d0(0x171)]=a22_0x5b0c7e;
@@ -1 +1 @@
1
- const a23_0xd2ca28=a23_0x3d71;function a23_0x36d1(){const _0x33b60a=['transports','5774868edumux','level','join','9012PcJVEO','YYYY-MM-DD\x20HH:mm:ss','name','usage.log','console.info','70302bxFFdt','File','mkdirSync','215rfMGho','7265740kbjYwO','createLogger','printf','136AUihBi','\x20-\x20','fileLogger','9jQumqW','debug','winston','path','existsSync','timestamp','logger','12iHusPI','Console','29911jpUBVO','message','format','1447254NindfF','events.log','colorize','622101eQFMKM'];a23_0x36d1=function(){return _0x33b60a;};return a23_0x36d1();}(function(_0x1fecd0,_0x4962ea){const _0x56cdb7=a23_0x3d71,_0x1b5660=_0x1fecd0();while(!![]){try{const _0x1383ab=parseInt(_0x56cdb7(0xda))/0x1+parseInt(_0x56cdb7(0xd2))/0x2+parseInt(_0x56cdb7(0xd5))/0x3*(-parseInt(_0x56cdb7(0xcd))/0x4)+parseInt(_0x56cdb7(0xe2))/0x5*(parseInt(_0x56cdb7(0xdf))/0x6)+-parseInt(_0x56cdb7(0xcf))/0x7*(parseInt(_0x56cdb7(0xc3))/0x8)+parseInt(_0x56cdb7(0xc6))/0x9*(parseInt(_0x56cdb7(0xc0))/0xa)+-parseInt(_0x56cdb7(0xd7))/0xb;if(_0x1383ab===_0x4962ea)break;else _0x1b5660['push'](_0x1b5660['shift']());}catch(_0x192878){_0x1b5660['push'](_0x1b5660['shift']());}}}(a23_0x36d1,0xb5792));const winston=require(a23_0xd2ca28(0xc8)),fs=require('fs'),path=require(a23_0xd2ca28(0xc9)),logDir='log';!fs[a23_0xd2ca28(0xca)](logDir)&&fs[a23_0xd2ca28(0xe1)](logDir);const a23_0xdb1407={};a23_0xdb1407['format']=a23_0xd2ca28(0xdb);const a23_0x1938be={};function a23_0x3d71(_0x58ca0b,_0x7323f0){const _0x36d169=a23_0x36d1();return a23_0x3d71=function(_0x3d710a,_0x43a8ec){_0x3d710a=_0x3d710a-0xc0;let _0x4af5b3=_0x36d169[_0x3d710a];return _0x4af5b3;},a23_0x3d71(_0x58ca0b,_0x7323f0);}a23_0x1938be[a23_0xd2ca28(0xd8)]=!![];const a23_0x243fd7={};a23_0x243fd7[a23_0xd2ca28(0xdc)]=a23_0xd2ca28(0xde),exports[a23_0xd2ca28(0xcc)]=new winston[(a23_0xd2ca28(0xc1))]({'format':winston['format']['combine'](winston[a23_0xd2ca28(0xd1)][a23_0xd2ca28(0xcb)](a23_0xdb1407),winston[a23_0xd2ca28(0xd1)][a23_0xd2ca28(0xd4)](a23_0x1938be),winston['format'][a23_0xd2ca28(0xc2)](_0xfff82b=>_0xfff82b[a23_0xd2ca28(0xcb)]+a23_0xd2ca28(0xc4)+_0xfff82b['level']+':\x20'+_0xfff82b[a23_0xd2ca28(0xd0)])),'transports':[new winston[(a23_0xd2ca28(0xd6))][(a23_0xd2ca28(0xce))](a23_0x243fd7),new winston[(a23_0xd2ca28(0xd6))]['File']({'filename':path[a23_0xd2ca28(0xd9)](logDir,a23_0xd2ca28(0xd3)),'level':a23_0xd2ca28(0xc7)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0xd2ca28(0xe0))]({'filename':path['join'](logDir,a23_0xd2ca28(0xdd)),'level':'debug'})]};exports[a23_0xd2ca28(0xc5)]=new winston[(a23_0xd2ca28(0xc1))](winstonFileLoggerParams);
1
+ const a23_0xe6fb93=a23_0x3414;function a23_0x56cd(){const _0x1ddbbe=['350872RcoHDr','createLogger','11799183pZYzMo','YYYY-MM-DD\x20HH:mm:ss','File','message','mkdirSync','winston','4078298PXoIyF','log','console.info','logger','fileLogger','106550elYgwp','transports','65345huIbeB','debug','284kBeNUS','405SkHqtW','1354092oCKbwG','1QxgnPK','colorize','join','\x20-\x20','events.log','192WXvcXx','timestamp','format','path','Console','printf','8265eGjMaR'];a23_0x56cd=function(){return _0x1ddbbe;};return a23_0x56cd();}function a23_0x3414(_0x3c84d6,_0x67327){const _0x56cda2=a23_0x56cd();return a23_0x3414=function(_0x341424,_0xebea5){_0x341424=_0x341424-0x13f;let _0x4fab0b=_0x56cda2[_0x341424];return _0x4fab0b;},a23_0x3414(_0x3c84d6,_0x67327);}(function(_0x4c0f1a,_0x5df448){const _0x203f11=a23_0x3414,_0x202b20=_0x4c0f1a();while(!![]){try{const _0x19c717=-parseInt(_0x203f11(0x149))/0x1*(parseInt(_0x203f11(0x148))/0x2)+-parseInt(_0x203f11(0x154))/0x3*(parseInt(_0x203f11(0x146))/0x4)+parseInt(_0x203f11(0x144))/0x5*(parseInt(_0x203f11(0x14e))/0x6)+parseInt(_0x203f11(0x15d))/0x7+-parseInt(_0x203f11(0x155))/0x8+-parseInt(_0x203f11(0x147))/0x9*(parseInt(_0x203f11(0x142))/0xa)+parseInt(_0x203f11(0x157))/0xb;if(_0x19c717===_0x5df448)break;else _0x202b20['push'](_0x202b20['shift']());}catch(_0x4970bf){_0x202b20['push'](_0x202b20['shift']());}}}(a23_0x56cd,0xa5672));const winston=require(a23_0xe6fb93(0x15c)),fs=require('fs'),path=require(a23_0xe6fb93(0x151)),logDir=a23_0xe6fb93(0x15e);!fs['existsSync'](logDir)&&fs[a23_0xe6fb93(0x15b)](logDir);const a23_0xdc6adc={};a23_0xdc6adc[a23_0xe6fb93(0x150)]=a23_0xe6fb93(0x158);const a23_0x95f96c={};a23_0x95f96c['level']=!![];const a23_0x4c0ff7={};a23_0x4c0ff7['name']=a23_0xe6fb93(0x13f),exports[a23_0xe6fb93(0x140)]=new winston[(a23_0xe6fb93(0x156))]({'format':winston['format']['combine'](winston['format'][a23_0xe6fb93(0x14f)](a23_0xdc6adc),winston[a23_0xe6fb93(0x150)][a23_0xe6fb93(0x14a)](a23_0x95f96c),winston['format'][a23_0xe6fb93(0x153)](_0x346481=>_0x346481[a23_0xe6fb93(0x14f)]+a23_0xe6fb93(0x14c)+_0x346481['level']+':\x20'+_0x346481[a23_0xe6fb93(0x15a)])),'transports':[new winston[(a23_0xe6fb93(0x143))][(a23_0xe6fb93(0x152))](a23_0x4c0ff7),new winston[(a23_0xe6fb93(0x143))]['File']({'filename':path['join'](logDir,a23_0xe6fb93(0x14d)),'level':a23_0xe6fb93(0x145)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0xe6fb93(0x143))][(a23_0xe6fb93(0x159))]({'filename':path[a23_0xe6fb93(0x14b)](logDir,'usage.log'),'level':a23_0xe6fb93(0x145)})]};exports[a23_0xe6fb93(0x141)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x30412a=a24_0x51bd;(function(_0x13f5f8,_0x5499ae){const _0x3cfe9a=a24_0x51bd,_0x4cb944=_0x13f5f8();while(!![]){try{const _0x1cb31c=-parseInt(_0x3cfe9a(0x16f))/0x1*(-parseInt(_0x3cfe9a(0x177))/0x2)+parseInt(_0x3cfe9a(0x16c))/0x3*(parseInt(_0x3cfe9a(0x16a))/0x4)+-parseInt(_0x3cfe9a(0x175))/0x5*(-parseInt(_0x3cfe9a(0x176))/0x6)+-parseInt(_0x3cfe9a(0x16b))/0x7+parseInt(_0x3cfe9a(0x169))/0x8+-parseInt(_0x3cfe9a(0x165))/0x9+-parseInt(_0x3cfe9a(0x168))/0xa;if(_0x1cb31c===_0x5499ae)break;else _0x4cb944['push'](_0x4cb944['shift']());}catch(_0x479fa5){_0x4cb944['push'](_0x4cb944['shift']());}}}(a24_0x2656,0x4ac32));function a24_0x51bd(_0x1b9caa,_0xb9afbe){const _0x265635=a24_0x2656();return a24_0x51bd=function(_0x51bd3a,_0x423170){_0x51bd3a=_0x51bd3a-0x165;let _0x459cd2=_0x265635[_0x51bd3a];return _0x459cd2;},a24_0x51bd(_0x1b9caa,_0xb9afbe);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process['env'][a24_0x30412a(0x178)]=0x1;function a24_0x2656(){const _0x1caeae=['pygzV','demandCommand','2WCKUXW','root','epilogue','exports','help','commandDir','1760AfVKTr','10344DmCQGT','247582ceWTxF','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','2572137pSGFsw','commands','usage','5432240Elutvh','1139328vrsHJY','282760BbEBbW','20881RGPqCz','6AOgbAa'];a24_0x2656=function(){return _0x1caeae;};return a24_0x2656();}function run(_0x1cab31){const _0xe3584b=a24_0x30412a,_0x222ec1={};_0x222ec1[_0xe3584b(0x16d)]=_0xe3584b(0x166),_0x222ec1['WlqrN']=_0xe3584b(0x173);const _0x2d0607=_0x222ec1;_0x1cab31[_0xe3584b(0x167)](HELP_HEADER_MESSAGE[_0xe3584b(0x170)])[_0xe3584b(0x174)](_0x2d0607[_0xe3584b(0x16d)])[_0xe3584b(0x16e)]()[_0xe3584b(0x173)](_0x2d0607['WlqrN'])[_0xe3584b(0x171)](HELP_FOOTER_MESSAGE);}module[a24_0x30412a(0x172)]=run;
2
+ 'use strict';const a24_0x35dffc=a24_0x362a;function a24_0x362a(_0x342fc9,_0x45d9df){const _0x985022=a24_0x9850();return a24_0x362a=function(_0x362ab5,_0x4ee847){_0x362ab5=_0x362ab5-0x1a4;let _0x49e1fd=_0x985022[_0x362ab5];return _0x49e1fd;},a24_0x362a(_0x342fc9,_0x45d9df);}(function(_0x1e3cb4,_0x46358f){const _0x2c10cd=a24_0x362a,_0x18ac2a=_0x1e3cb4();while(!![]){try{const _0x1cfe3c=parseInt(_0x2c10cd(0x1aa))/0x1*(parseInt(_0x2c10cd(0x1ac))/0x2)+-parseInt(_0x2c10cd(0x1a4))/0x3+parseInt(_0x2c10cd(0x1ae))/0x4*(-parseInt(_0x2c10cd(0x1af))/0x5)+-parseInt(_0x2c10cd(0x1a7))/0x6+-parseInt(_0x2c10cd(0x1b0))/0x7*(parseInt(_0x2c10cd(0x1b6))/0x8)+parseInt(_0x2c10cd(0x1a9))/0x9*(parseInt(_0x2c10cd(0x1b4))/0xa)+parseInt(_0x2c10cd(0x1a5))/0xb*(parseInt(_0x2c10cd(0x1b1))/0xc);if(_0x1cfe3c===_0x46358f)break;else _0x18ac2a['push'](_0x18ac2a['shift']());}catch(_0x51d4d7){_0x18ac2a['push'](_0x18ac2a['shift']());}}}(a24_0x9850,0x90e9e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x35dffc(0x1a6));function a24_0x9850(){const _0x3f4849=['430PQogyL','epilogue','648YuQyBU','29530BMZRlO','14HqRpbw','36benwaY','help','exports','399910ZdBncv','commandDir','246128znbEVn','usage','lkNcu','1085004PlTQWv','6688374ohKrDb','./config/constants','6759576JnFbYH','qlmXf','63RmvvrF','4633BhBVJz','demandCommand'];a24_0x9850=function(){return _0x3f4849;};return a24_0x9850();}process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x302394){const _0x279011=a24_0x35dffc,_0x1969a7={};_0x1969a7['lkNcu']='commands',_0x1969a7[_0x279011(0x1a8)]='help';const _0x18ae0b=_0x1969a7;_0x302394[_0x279011(0x1b7)](HELP_HEADER_MESSAGE['root'])[_0x279011(0x1b5)](_0x18ae0b[_0x279011(0x1b8)])[_0x279011(0x1ab)]()[_0x279011(0x1b2)](_0x18ae0b[_0x279011(0x1a8)])[_0x279011(0x1ad)](HELP_FOOTER_MESSAGE);}module[a24_0x35dffc(0x1b3)]=run;