browserstack-node-sdk 1.55.2 → 1.55.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/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/test-observability/constants.js +1 -1
  180. package/src/helpers/test-observability/error-handler.js +1 -1
  181. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  182. package/src/helpers/test-observability/sessionHandler.js +1 -1
  183. package/src/helpers/test-observability/utils.js +1 -1
  184. package/src/helpers/test-orchestration/constants.js +1 -1
  185. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  186. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  187. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  188. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  189. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  190. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  191. package/src/helpers/testhub/constants.js +1 -1
  192. package/src/helpers/testhub/testhubHandler.js +1 -1
  193. package/src/helpers/testhub/utils.js +1 -1
  194. package/src/helpers/timeoutPromise.js +1 -1
  195. package/src/helpers/utilities.js +1 -1
  196. package/src/helpers/w3cMapping.js +1 -1
  197. package/src/hubAllocationMethods.js +1 -1
  198. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x44fa67=a15_0xd15e;function a15_0xd15e(_0xf286e0,_0xb8e9e9){const _0x162fb5=a15_0x162f();return a15_0xd15e=function(_0xd15e9c,_0x8a2e44){_0xd15e9c=_0xd15e9c-0xe1;let _0x2ae824=_0x162fb5[_0xd15e9c];return _0x2ae824;},a15_0xd15e(_0xf286e0,_0xb8e9e9);}(function(_0x26d65c,_0x1cd9cf){const _0x48af12=a15_0xd15e,_0x900a8d=_0x26d65c();while(!![]){try{const _0x379342=parseInt(_0x48af12(0x12f))/0x1+-parseInt(_0x48af12(0x102))/0x2*(-parseInt(_0x48af12(0xe8))/0x3)+-parseInt(_0x48af12(0x10f))/0x4*(-parseInt(_0x48af12(0x10b))/0x5)+-parseInt(_0x48af12(0x11d))/0x6*(-parseInt(_0x48af12(0xfa))/0x7)+parseInt(_0x48af12(0xeb))/0x8+parseInt(_0x48af12(0xf0))/0x9+parseInt(_0x48af12(0xe3))/0xa*(-parseInt(_0x48af12(0xf3))/0xb);if(_0x379342===_0x1cd9cf)break;else _0x900a8d['push'](_0x900a8d['shift']());}catch(_0x5ea392){_0x900a8d['push'](_0x900a8d['shift']());}}}(a15_0x162f,0x5d352));const fs=require('fs'),got=require(a15_0x44fa67(0xe1)),{table}=require(a15_0x44fa67(0xfe)),{v4:uuidv4}=require(a15_0x44fa67(0x12d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x44fa67(0xfd)),{getCredentialsPath,getAuthHeader}=require(a15_0x44fa67(0x137)),{sendInstrumentationEvent}=require(a15_0x44fa67(0xf9));exports[a15_0x44fa67(0x10a)]='grids',exports[a15_0x44fa67(0x135)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x44fa67(0x119)]=function(_0xd576db){const _0xa6de61=a15_0x44fa67,_0x3edaa5={};_0x3edaa5['debAC']=_0xa6de61(0x106),_0x3edaa5[_0xa6de61(0x114)]=_0xa6de61(0x110),_0x3edaa5[_0xa6de61(0x12c)]='help';const _0x12a4d6=_0x3edaa5,_0x1edb2e={};_0x1edb2e[_0xa6de61(0x127)]=_0x12a4d6[_0xa6de61(0x132)],_0x1edb2e[_0xa6de61(0xe9)]=_0x12a4d6['JqHii'];const _0x42345f={};return _0x42345f['all-grids']=_0x1edb2e,_0xd576db[_0xa6de61(0x100)](HELP_HEADER_MESSAGE[_0xa6de61(0x101)][_0xa6de61(0x121)])[_0xa6de61(0x130)](HELP_FOOTER_MESSAGE)[_0xa6de61(0x11b)](_0x42345f)['help'](_0x12a4d6[_0xa6de61(0x12c)])[_0xa6de61(0xf8)];},exports[a15_0x44fa67(0xea)]=async function(_0x417d0c){const _0x510428=a15_0x44fa67,_0x348525={'KAEjV':function(_0x4036c0){return _0x4036c0();},'VQSGw':function(_0x2106c9){return _0x2106c9();},'UpZaA':_0x510428(0x129),'vEcrQ':function(_0x3e0e9d,_0x236e96,_0x20551a,_0x423b25,_0x49e208,_0x45f672,_0x198682){return _0x3e0e9d(_0x236e96,_0x20551a,_0x423b25,_0x49e208,_0x45f672,_0x198682);},'ZsBiT':_0x510428(0xf6),'WUiBJ':_0x510428(0xe6),'BRrrZ':'GET','KIaRH':function(_0x55166b,_0x48f0bc,_0x2627dd){return _0x55166b(_0x48f0bc,_0x2627dd);},'lEgCE':function(_0x4da624,_0x1a983e,_0x4d44d1){return _0x4da624(_0x1a983e,_0x4d44d1);},'mXcDO':function(_0x274450,_0x29570f){return _0x274450!==_0x29570f;},'RvGUE':function(_0x37bd15,_0x387b6b){return _0x37bd15!==_0x387b6b;},'LlFbr':function(_0x2d4783,_0x237672){return _0x2d4783===_0x237672;},'fBDle':_0x510428(0x123),'VBJYw':_0x510428(0x104),'mLYCO':_0x510428(0x11e),'FfZGx':'status','kOejf':'running','fygdQ':_0x510428(0x138),'iGDPM':_0x510428(0xfb),'oaOZJ':function(_0x510bbb,_0x2063e6){return _0x510bbb(_0x2063e6);},'QXVnq':_0x510428(0x103),'mnrsr':_0x510428(0x126),'AhLYb':_0x510428(0x10e),'IlcxJ':_0x510428(0x105)};try{global_registry[_0x510428(0x108)]=_0x348525[_0x510428(0x122)](uuidv4);!fs[_0x510428(0xf5)](_0x348525[_0x510428(0x12a)](getCredentialsPath))&&(console[_0x510428(0xe7)](_0x348525[_0x510428(0x136)]),await _0x348525['vEcrQ'](sendInstrumentationEvent,_0x417d0c,_0x348525[_0x510428(0x11a)],messageTypes[_0x510428(0x10c)],_0x348525[_0x510428(0xef)],null,_0x417d0c),process[_0x510428(0x139)](0x1));const _0x457c37=JSON[_0x510428(0x128)](fs[_0x510428(0x111)](_0x348525['KAEjV'](getCredentialsPath)));let _0x48809f='https://'+AG_API_URL+_0x510428(0x120);_0x417d0c[_0x510428(0xf4)]&&(_0x48809f=_0x510428(0x12b)+AG_API_URL+'/packages/cli/get-all-grids');const _0x3a5e9c={'method':_0x348525['BRrrZ'],'headers':_0x348525[_0x510428(0x107)](getAuthHeader,_0x457c37[_0x510428(0x117)][_0x510428(0xed)],_0x457c37[_0x510428(0x117)][_0x510428(0x115)]),'throwHttpErrors':![]};global_registry[_0x510428(0x11c)]=_0x457c37[_0x510428(0x117)]['username'],global_registry[_0x510428(0x125)]=_0x457c37[_0x510428(0x117)][_0x510428(0x115)],_0x348525[_0x510428(0xe4)](sendInstrumentationEvent,_0x417d0c,_0x348525[_0x510428(0x11a)],messageTypes[_0x510428(0xf2)],null,null,_0x417d0c);const _0x26dc75=await _0x348525[_0x510428(0xe5)](got,_0x48809f,_0x3a5e9c);if(_0x348525[_0x510428(0x116)](_0x26dc75,null)&&_0x348525[_0x510428(0x12e)](_0x26dc75,undefined)&&_0x348525[_0x510428(0x134)](_0x26dc75['statusCode'],0xc8)){const _0x599957=JSON[_0x510428(0x128)](_0x26dc75[_0x510428(0xf1)]);console[_0x510428(0x131)](_0x348525[_0x510428(0x113)]);const _0x7b17c4=[];_0x7b17c4[_0x510428(0x133)]([_0x348525['VBJYw'],_0x348525['mLYCO'],_0x348525['FfZGx'],_0x348525[_0x510428(0x13a)],_0x348525['fygdQ'],_0x348525[_0x510428(0xff)]]),_0x599957[_0x510428(0xfc)](_0x325485=>{const _0x316fbe=_0x510428;_0x7b17c4[_0x316fbe(0x133)]([_0x325485['id'],_0x325485[_0x316fbe(0xe2)],_0x325485[_0x316fbe(0x10d)],_0x325485[_0x316fbe(0x112)],_0x325485[_0x316fbe(0x138)],_0x325485[_0x316fbe(0xf7)]]);}),console['log'](_0x348525['oaOZJ'](table,_0x7b17c4)),process[_0x510428(0x139)](0x0);}_0x348525[_0x510428(0x134)](_0x26dc75['statusCode'],0x191)&&(console['error'](_0x348525[_0x510428(0x11f)]),await _0x348525[_0x510428(0xe4)](sendInstrumentationEvent,_0x417d0c,_0x348525[_0x510428(0x11a)],messageTypes[_0x510428(0x10c)],_0x348525[_0x510428(0xec)],null,_0x417d0c),process['exit'](0x1)),console[_0x510428(0xe7)](_0x510428(0x13b)+JSON['stringify'](_0x26dc75)),await _0x348525[_0x510428(0xe4)](sendInstrumentationEvent,_0x417d0c,_0x348525[_0x510428(0x11a)],messageTypes['ERROR'],_0x348525[_0x510428(0x118)],_0x26dc75,_0x417d0c),process['exit'](0x1);}catch(_0x30c47f){console[_0x510428(0xe7)](_0x510428(0x109)+_0x30c47f[_0x510428(0xee)]),await _0x348525[_0x510428(0xe4)](sendInstrumentationEvent,_0x417d0c,_0x348525[_0x510428(0x11a)],messageTypes[_0x510428(0x10c)],_0x348525[_0x510428(0x124)],_0x30c47f,_0x417d0c),process[_0x510428(0x139)](0x1);}};function a15_0x162f(){const _0x200b2a=['password','mXcDO','Browserstack','AhLYb','builder','ZsBiT','options','bstackUsername','648QxuKZF','grid-name','QXVnq','/packages/cli/get-grids','grid','KAEjV','\x0aFound\x20the\x20following\x20grids:\x0a','IlcxJ','bstackAccesskey','unauthorised','description','parse','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VQSGw','https://','PUOLY','uuid','RvGUE','600630JcWFNH','epilogue','log','debAC','push','LlFbr','desc','UpZaA','../../utils/utilityMethods','queued','exit','kOejf','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','got','name','62710MXwHlP','vEcrQ','lEgCE','init-not-called','error','3DsrKNU','type','handler','341992qALAxz','mnrsr','username','stack','WUiBJ','4852224LyOIRn','body','INFO','4037uyacTF','allGrids','existsSync','list-grids-called','clusterName','argv','../../utils/instrumentationUtils','3353NsdWrh','cluster-name','forEach','../../config/constants','table','iGDPM','usage','list','1432430hQQOEU','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid-id','unknown-error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','KIaRH','requestId','Failed\x20to\x20list\x20resources!\x20Error:\x20','command','5mCeCGl','ERROR','status','server-error','2931092aDTKOt','boolean','readFileSync','running','fBDle','JqHii'];a15_0x162f=function(){return _0x200b2a;};return a15_0x162f();}
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 +1 @@
1
- const a16_0x5221ca=a16_0x1fa9;(function(_0x457e91,_0x4c0bc4){const _0x28ef79=a16_0x1fa9,_0x34c6ab=_0x457e91();while(!![]){try{const _0x117c16=-parseInt(_0x28ef79(0x1a8))/0x1+-parseInt(_0x28ef79(0x1a6))/0x2*(parseInt(_0x28ef79(0x1a7))/0x3)+parseInt(_0x28ef79(0x1a4))/0x4+parseInt(_0x28ef79(0x1b4))/0x5*(-parseInt(_0x28ef79(0x1af))/0x6)+-parseInt(_0x28ef79(0x1aa))/0x7+parseInt(_0x28ef79(0x1ac))/0x8*(-parseInt(_0x28ef79(0x1b1))/0x9)+parseInt(_0x28ef79(0x1a9))/0xa*(parseInt(_0x28ef79(0x1b2))/0xb);if(_0x117c16===_0x4c0bc4)break;else _0x34c6ab['push'](_0x34c6ab['shift']());}catch(_0x1e5a68){_0x34c6ab['push'](_0x34c6ab['shift']());}}}(a16_0x8418,0x30c84));function a16_0x1fa9(_0x1d48b8,_0x195a0f){const _0x8418de=a16_0x8418();return a16_0x1fa9=function(_0x1fa952,_0x5deb66){_0x1fa952=_0x1fa952-0x1a1;let _0x92b272=_0x8418de[_0x1fa952];return _0x92b272;},a16_0x1fa9(_0x1d48b8,_0x195a0f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x8418(){const _0x25c8f6=['27088zJkeOj','recommendCommands','help','2046yuIoIB','builder','9gmbzHe','407KynFcZ','handler','5720QWfzKB','command','strict','jveZW','demandCommand','precheck_commands','TeLUh','1364424cQVDls','desc','6YkoRpI','1932MmRBRD','189721YxJeKr','127430XWWWkU','193494qqOfml','usage'];a16_0x8418=function(){return _0x25c8f6;};return a16_0x8418();}exports[a16_0x5221ca(0x1b5)]='pre-check',exports[a16_0x5221ca(0x1a5)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x5221ca(0x1b0)]=function(_0x516267){const _0x2ae5c6=a16_0x5221ca,_0xa766f5={};_0xa766f5[_0x2ae5c6(0x1a3)]=_0x2ae5c6(0x1a2),_0xa766f5[_0x2ae5c6(0x1b7)]=_0x2ae5c6(0x1ae);const _0x55d879=_0xa766f5;return _0x516267[_0x2ae5c6(0x1ab)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x55d879[_0x2ae5c6(0x1a3)])[_0x2ae5c6(0x1a1)]()[_0x2ae5c6(0x1ad)]()[_0x2ae5c6(0x1b6)]()[_0x2ae5c6(0x1ae)](_0x55d879['jveZW']);},exports[a16_0x5221ca(0x1b3)]=function(_0x54250e){};
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 +1 @@
1
- const a17_0x233f63=a17_0x51d6;(function(_0x172842,_0x2adc0a){const _0x171831=a17_0x51d6,_0x136b9d=_0x172842();while(!![]){try{const _0x686d04=parseInt(_0x171831(0x189))/0x1+parseInt(_0x171831(0x177))/0x2*(-parseInt(_0x171831(0xd4))/0x3)+parseInt(_0x171831(0x180))/0x4+-parseInt(_0x171831(0x198))/0x5+-parseInt(_0x171831(0xe2))/0x6*(-parseInt(_0x171831(0x1b4))/0x7)+parseInt(_0x171831(0x1c2))/0x8+-parseInt(_0x171831(0x101))/0x9;if(_0x686d04===_0x2adc0a)break;else _0x136b9d['push'](_0x136b9d['shift']());}catch(_0x38b711){_0x136b9d['push'](_0x136b9d['shift']());}}}(a17_0x2f15,0xbeaa1));const fs=require('fs'),ws=require('ws'),got=require(a17_0x233f63(0x1ac)),{v4:uuidv4}=require(a17_0x233f63(0x116)),ReconnectingWebSocket=require(a17_0x233f63(0x14a)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x233f63(0x1c4)),{logger}=require(a17_0x233f63(0xe4)),{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('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x233f63(0xd8));function a17_0x2f15(){const _0x259bc3=['bstackUsername','isCliToolInstalled','cloud-provider-not-supported','LfJpN','baaFq','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','argv','cloudProvider','IHUyX','handler','pMPrT','method','VrCng','vJlWf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','onIdY','Govba','will\x20be\x20created','Status:\x20','wOiNW','YbLUl','message','GET','region','pkBWi','Failure','SvaCX','BeOlS','jXMTS','builder','gLJfg','cDkae','reconnecting-websocket','usage','includes','LOG','getUTCDate','epilogue','PuppI','RHQYA','\x20error\x20:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','DmYCJ','pre-check-cluster-args-not-passed','forEach','jYqkc','https://','length','oKFvX','erMvJ','pZQwJ','cluster-check-failed-','NHrHT','LRIkE','getUTCMinutes','getUTCHours','jYbXp','wnHhV','header','getUTCMonth','stringify','Setting\x20cloud\x20provider\x20as\x20','authHeader','clusterRegion','pre-check-grid-profile-empty','IVuVV','HsYFw','ynuNv','username','Report\x20saved\x20in\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','bstackAccesskey','headers','Success','NvkUJ','XHqiP','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','1898942rpMfzh','toolInstalledResp','CGGKz','EVQYP','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','cluster-name','sendEventToBackend','MWKss','JTcXD','3759204WpfLZv','sVAvR','isTls1_2_SUPPORTED','type','status','TLSv1_2_client_method','N/A','VoSHe','credential-not-found','979580zEWIyU','lAtDp','gkcao','hpLle','iFFNb','SieuO','throwHttpErrors','vmzqU','error','\x20\x20Code:\x20','MggSQ','DERht','TCWVt','.\x20Please\x20provide\x20all\x20required\x20arguments.','getUTCFullYear','1461520THXOXz','YDHrN','pre-check-grid-called','MGalP','HQqVO','Cluster\x20','LNyLS','AhyVP','XadrP','Missing\x20required\x20arguments:\x20','KMSDr','IWpoZ','dummy-grid','zofeO','response','clusterName','zAnyW','readFileSync','ZtUVB','help','got','Error\x20Details:\x0a','stack','push','isClusterPresent','\x20===\x0a\x0a','User\x20Access','`\x20already\x20exists','203oNQHqd','grid','VIduK','init','IfjMT','error\x20stack\x20:\x20','connectionTimeout','AUpVV','pre-check-failed','bjhyH','<PasswordPlaceholder>','isTrialGridAccessible',']\x20status\x20:\x20','gHBFW','5910920ckcrhw','parse','../../utils/utilityMethods','<UsernamePlaceholder>','sFvft','delay','exit','ZoliA','hqbZV','grid\x20profile\x20flow\x20','GoVMi','ZPEPX','okaTn','gridProfile','VDLqs','BVJrY','fZiLa','options','3hUeWKu','pFAyf','uSAMY','WebSocket','../../utils/instrumentationUtils','KxIyR','yUotl','Cluster\x20`','XeNtR','replace','utf-8','BVBtv','INFO','code','249330eAZcxf','ZzREm','../../config/logger','wWkKr','jPvqe','RipYi','debug','IwYjW','2|3|0|4|1','GSsRT','DjWfG','cOXQN','pre-check','Zvwvq','find','VEdqe','string','kLNaY','qeIrT','DhggN','GYPoP','data','Grid\x20profile\x20fetched\x20for\x20pre-check','Tool\x20Installed','WHheI','bklrE','mbXnK','Cluster\x20details\x0a-----------------------\x0a','BwsqX','cloud-provider','gshyX','16565445aoXOiD','cRobW','ZcHuA','WrLOF','log/report_','grid-profile','CLOUD_PROVIDER','ZytLE','toLowerCase','SSL\x20Configured','`\x20,error\x20:\x20','wolDx','Browserstack','dKoEu','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','SRgDO','Message:\x20','eCQzC','XBuZz','\x20\x20Stack:\x20','Whitelisted\x20browserstack','uuid','wecNS','description','wkuiL','\x20\x20Message:\x20','ZLpMd','Invalid\x20input.\x20grid\x20profiles:\x20','password','info','XdQma','hRDBI','ZCXHz','is\x20already\x20present','checkAccess','PhUxJ','ERROR','gLsua','ucCjG','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','unable\x20to\x20verify\x20if\x20cluster\x20`'];a17_0x2f15=function(){return _0x259bc3;};return a17_0x2f15();}exports['command']=a17_0x233f63(0x1b5),exports['desc']=a17_0x233f63(0x12f),exports[a17_0x233f63(0x147)]=function(_0x1e3263){const _0x3836ef=a17_0x233f63,_0x44b71f={};_0x44b71f[_0x3836ef(0x19c)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x44b71f[_0x3836ef(0x121)]=_0x3836ef(0xf2),_0x44b71f['KCJcB']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x44b71f[_0x3836ef(0x104)]=_0x3836ef(0x153),_0x44b71f[_0x3836ef(0x16c)]=_0x3836ef(0x170),_0x44b71f[_0x3836ef(0xcc)]=_0x3836ef(0x1ab);const _0x397538=_0x44b71f,_0x42cac5={};_0x42cac5[_0x3836ef(0x118)]=_0x397538[_0x3836ef(0x19c)],_0x42cac5[_0x3836ef(0x183)]=_0x397538[_0x3836ef(0x121)];const _0x1f68bf={};_0x1f68bf[_0x3836ef(0x118)]=_0x397538['KCJcB'],_0x1f68bf[_0x3836ef(0x183)]=_0x397538[_0x3836ef(0x121)];const _0x1fa443={};_0x1fa443['description']=_0x397538[_0x3836ef(0x104)],_0x1fa443[_0x3836ef(0x183)]=_0x397538[_0x3836ef(0x121)];const _0x16366e={};_0x16366e[_0x3836ef(0x118)]=_0x397538['HsYFw'],_0x16366e[_0x3836ef(0x183)]=_0x397538['ZCXHz'];const _0xff1cb8={};return _0xff1cb8['cluster-name']=_0x42cac5,_0xff1cb8[_0x3836ef(0xff)]=_0x1f68bf,_0xff1cb8[_0x3836ef(0x141)]=_0x1fa443,_0xff1cb8['grid-profile']=_0x16366e,_0x1e3263['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x3836ef(0x14f)](HELP_FOOTER_MESSAGE)[_0x3836ef(0xd3)](_0xff1cb8)['help'](_0x397538[_0x3836ef(0xcc)])[_0x3836ef(0x130)];};async function inputValidation(_0x1ff836,_0x561126){const _0x132299=a17_0x233f63,_0x557443={'sFvft':_0x132299(0x122),'IWpoZ':_0x132299(0x13b),'erMvJ':_0x132299(0x17c),'TCWVt':'error','wolDx':_0x132299(0x141),'MggSQ':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','bjhyH':_0x132299(0xf2),'IwYjW':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ZPEPX':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ynuNv':_0x132299(0x170),'PhUxJ':_0x132299(0x1ab),'jXMTS':_0x132299(0x1ad),'BwsqX':_0x132299(0x186),'ZLpMd':_0x132299(0xff),'AhyVP':function(_0x25e490,_0x297512){return _0x25e490+_0x297512;},'DhggN':_0x132299(0x173),'fjLwg':_0x132299(0x143),'baaFq':function(_0x52785d,_0x120258){return _0x52785d||_0x120258;},'Govba':function(_0xc06b15,_0x2b9bd9){return _0xc06b15!==_0x2b9bd9;},'SRgDO':_0x132299(0x13d),'wnHhV':function(_0x7658e4,_0x3635fe){return _0x7658e4===_0x3635fe;},'onIdY':_0x132299(0x150),'bklrE':'CYirj','gkcao':function(_0x1b7aa9,_0x155dd8){return _0x1b7aa9===_0x155dd8;},'VoSHe':_0x132299(0x137),'cRobW':'RuGGb','yfnOp':_0x132299(0xe5),'zofeO':'YVNpS','jYbXp':function(_0x3a52b5,_0xfabbec){return _0x3a52b5>_0xfabbec;},'hRDBI':function(_0x306892,_0x2e1cc0){return _0x306892!==_0x2e1cc0;},'xthON':'mSOas','SvaCX':_0x132299(0x149),'AUpVV':function(_0x2b5098,_0x10ebf5,_0x293d9f,_0x485c58,_0x23be8f,_0x17c67b,_0x884b11,_0x4b819d){return _0x2b5098(_0x10ebf5,_0x293d9f,_0x485c58,_0x23be8f,_0x17c67b,_0x884b11,_0x4b819d);},'XBuZz':'pre-check-grid-called','zAnyW':_0x132299(0x155),'KxIyR':_0x132299(0xca),'ZtUVB':_0x132299(0x117),'iFFNb':_0x132299(0x128),'SieuO':_0x132299(0x12c),'eCQzC':function(_0x1cd3d4,_0xaae9f0){return _0x1cd3d4===_0xaae9f0;},'hpLle':_0x132299(0xd5),'gFHgH':_0x132299(0x17f),'XeNtR':_0x132299(0xd2),'qeIrT':_0x132299(0x140),'yUotl':function(_0x3dae77,_0x5555fd,_0xca136d){return _0x3dae77(_0x5555fd,_0xca136d);},'VDLqs':function(_0x4d19de,_0x5e4390,_0x57cd16,_0x1a3c6c,_0x32e5ed,_0x3ad762){return _0x4d19de(_0x5e4390,_0x57cd16,_0x1a3c6c,_0x32e5ed,_0x3ad762);},'GSsRT':_0x132299(0xee),'LNyLS':_0x132299(0x106),'RHQYA':_0x132299(0x194),'mbXnK':function(_0x39518d,_0x119422){return _0x39518d(_0x119422);},'DjWfG':'mbBxp','yxIPL':_0x132299(0x16a),'gshyX':function(_0xbb486c,_0x5b987d){return _0xbb486c!==_0x5b987d;},'oKFvX':_0x132299(0x132),'KMSDr':_0x132299(0xe7),'BLZuT':_0x132299(0xf8),'BeOlS':_0x132299(0x127),'dvMaj':_0x132299(0x176),'wkuiL':_0x132299(0x1b6),'ZytLE':function(_0x531127,_0x5d73ee,_0x4cfca0,_0x4094fc,_0x4d5d51,_0x3c8a53,_0x151aa4,_0x1fef62){return _0x531127(_0x5d73ee,_0x4cfca0,_0x4094fc,_0x4d5d51,_0x3c8a53,_0x151aa4,_0x1fef62);}};let _0x49a560;try{if(_0x557443[_0x132299(0x13a)](_0x557443[_0x132299(0x110)],_0x557443[_0x132299(0x110)]))_0x431a4d['exit'](0x1);else{if(_0x1ff836['clusterName']||_0x1ff836[_0x132299(0x131)]||_0x1ff836[_0x132299(0x141)]){if(_0x557443[_0x132299(0x163)](_0x557443[_0x132299(0x139)],_0x557443[_0x132299(0x139)])){const _0x1cad15=[];!_0x1ff836[_0x132299(0x1a7)]&&(_0x557443[_0x132299(0x13a)](_0x557443['bklrE'],_0x557443[_0x132299(0xfb)])?_0x34886a+=_0x132299(0x19d)+_0x5aaf7c[_0x132299(0x1a7)]+'\x20'+(_0xf801de?_0x557443[_0x132299(0x1c6)]:_0x557443[_0x132299(0x1a3)])+'\x0a\x0a':_0x1cad15[_0x132299(0x1af)](_0x557443[_0x132299(0x15b)]));;!_0x1ff836[_0x132299(0x131)]&&(_0x557443['gkcao'](_0x557443[_0x132299(0x187)],_0x557443[_0x132299(0x102)])?_0xe6db52=_0x3d88f7:_0x1cad15[_0x132299(0x1af)](_0x557443[_0x132299(0x11b)]));;!_0x1ff836[_0x132299(0x141)]&&(_0x557443[_0x132299(0x13a)](_0x557443['yfnOp'],_0x557443[_0x132299(0x1a5)])?_0x1cad15[_0x132299(0x1af)](_0x557443[_0x132299(0x10c)]):_0x59875d[_0x132299(0x1af)](_0x557443[_0x132299(0x15b)]));;if(_0x557443[_0x132299(0x162)](_0x1cad15[_0x132299(0x159)],0x0)){if(_0x557443['hRDBI'](_0x557443['xthON'],_0x557443[_0x132299(0x144)]))_0x49a560=_0x132299(0x1a1)+_0x1cad15['join'](',\x20')+_0x132299(0x196),await _0x557443['AUpVV'](reportToGalactusAndSendToEDS,_0x1ff836,_0x561126,_0x49a560,messageTypes[_0x132299(0x125)],_0x557443[_0x132299(0x113)],_0x557443[_0x132299(0x1a8)],_0x557443[_0x132299(0x195)]),logger[_0x132299(0x191)](_0x49a560),process[_0x132299(0xc8)](0x1);else{const _0x1623a4={};_0x1623a4['type']=_0x34bf72['LOG'],_0x1623a4[_0x132299(0x13f)]=_0x3c499d,_0x49e696[_0x132299(0x17d)](_0x3f1111,_0x1623a4,_0x557443[_0x132299(0x195)],!![]);}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x132299(0x14c)](_0x1ff836[_0x132299(0x131)][_0x132299(0x109)]())&&(_0x557443[_0x132299(0x163)](_0x557443[_0x132299(0xd9)],_0x557443[_0x132299(0x1aa)])?_0x456402[_0x132299(0x11e)](_0x132299(0xdb)+_0x217cb2[_0x132299(0x1a7)]+_0x132299(0x1b3)):(_0x49a560=_0x557443[_0x132299(0x18d)],await _0x557443['AUpVV'](reportToGalactusAndSendToEDS,_0x1ff836,_0x561126,_0x49a560,messageTypes[_0x132299(0x125)],_0x557443[_0x132299(0x113)],_0x557443[_0x132299(0x18e)],_0x557443[_0x132299(0x195)]),logger[_0x132299(0x191)](_0x49a560),!_0x1ff836[_0x132299(0x131)]&&(_0x557443[_0x132299(0x112)](_0x557443[_0x132299(0x18c)],_0x557443[_0x132299(0x18c)])?(logger[_0x132299(0x11e)](_0x132299(0x167)+DEFAULT_CLUSTER_DETAILS[_0x132299(0x107)]+'\x20'),_0x1ff836['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x132299(0x107)]):_0x1d921e[_0x132299(0x1af)](_0x557443[_0x132299(0x10c)])))),global_registry[_0x132299(0x1a7)]=_0x1ff836[_0x132299(0x1a7)],global_registry['cloudProvider']=_0x1ff836['cloudProvider'],global_registry[_0x132299(0x169)]=_0x1ff836['region'];}else{const _0x53c6a7={};_0x53c6a7['description']=_0x557443[_0x132299(0x193)],_0x53c6a7[_0x132299(0x183)]=_0x557443[_0x132299(0x1bd)];const _0x5832af={};_0x5832af[_0x132299(0x118)]=_0x557443[_0x132299(0xe9)],_0x5832af[_0x132299(0x183)]=_0x557443[_0x132299(0x1bd)];const _0x2086a8={};_0x2086a8[_0x132299(0x118)]=_0x557443[_0x132299(0xcd)],_0x2086a8[_0x132299(0x183)]=_0x557443[_0x132299(0x1bd)];const _0x1328a7={};_0x1328a7[_0x132299(0x118)]=_0x557443[_0x132299(0x16d)],_0x1328a7[_0x132299(0x183)]=_0x557443['bjhyH'];const _0x5a07c6={};return _0x5a07c6[_0x132299(0x17c)]=_0x53c6a7,_0x5a07c6['cloud-provider']=_0x5832af,_0x5a07c6[_0x132299(0x141)]=_0x2086a8,_0x5a07c6[_0x132299(0x106)]=_0x1328a7,_0xe99435[_0x132299(0x14b)](_0x451997['pre_check'])['epilogue'](_0x21aa80)[_0x132299(0xd3)](_0x5a07c6)[_0x132299(0x1ab)](_0x557443[_0x132299(0x124)])['argv'];}}else{if(_0x1ff836[_0x132299(0xcf)]){if(_0x557443[_0x132299(0x120)](_0x557443['gFHgH'],_0x557443[_0x132299(0xdc)])){global_registry[_0x132299(0xcf)]=_0x1ff836[_0x132299(0xcf)],logger[_0x132299(0xe8)](_0x132299(0xcb)+_0x1ff836[_0x132299(0xcf)]);const _0x1b8269=_0x132299(0x158)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x52cac3={};_0x52cac3[_0x132299(0x135)]=_0x557443[_0x132299(0xf4)],_0x52cac3[_0x132299(0x172)]=global_registry[_0x132299(0x168)],_0x52cac3[_0x132299(0x18f)]=![];const _0x52626c=_0x52cac3,_0x3230f8=await _0x557443[_0x132299(0xda)](got,_0x1b8269,_0x52626c),_0x3f6172=await _0x557443[_0x132299(0xd0)](responseValidation,_0x3230f8,_0x557443[_0x132299(0xeb)],_0x557443[_0x132299(0x19e)],_0x1ff836,_0x561126);let _0x540bb8={};if(_0x557443[_0x132299(0x18b)](_0x3f6172,0xc8)){if(_0x557443[_0x132299(0x18b)](_0x557443[_0x132299(0x151)],_0x557443['RHQYA'])){const _0x111a28=JSON[_0x132299(0x1c3)](_0x3230f8['body']),_0x580d05=_0x111a28[_0x132299(0xf0)](_0xd73dee=>_0xd73dee['name']===_0x1ff836[_0x132299(0xcf)])||null;_0x557443[_0x132299(0xfc)](isUndefined,_0x580d05)?_0x557443['hRDBI'](_0x557443[_0x132299(0xec)],_0x557443[_0x132299(0xec)])?(_0x3be7fb[_0x132299(0x11e)]('['+_0x1e92a3+_0x132299(0x1c0)+_0x460421['status']+'\x20data\x20:\x20'+_0x3b11cc[_0x132299(0xf7)]+_0x132299(0x152)+_0x4071be[_0x132299(0x191)]),_0x16affb[_0x132299(0x191)]&&_0x47261a[_0x132299(0x191)](_0x132299(0x1b9)+_0xc777ed[_0x132299(0x191)]['stack'])):(_0x49a560=_0x132299(0x11c)+_0x1ff836[_0x132299(0xcf)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x557443[_0x132299(0x1bb)](reportToGalactusAndSendToEDS,_0x1ff836,_0x561126,_0x49a560,messageTypes[_0x132299(0x125)],_0x557443[_0x132299(0x113)],_0x557443['yxIPL'],_0x557443[_0x132299(0x195)]),logger[_0x132299(0x191)](_0x49a560),process[_0x132299(0xc8)](0x1)):_0x557443[_0x132299(0x100)](_0x557443[_0x132299(0x15a)],_0x557443['oKFvX'])?(_0xcf7eb1[_0x132299(0x11e)](_0x132299(0x167)+_0x38a645[_0x132299(0x107)]+'\x20'),_0x242497[_0x132299(0x131)]=_0x209ad0['CLOUD_PROVIDER']):_0x540bb8=_0x580d05;}else _0x30ad4e+=_0x557443[_0x132299(0x146)],_0x35eca2+=_0x132299(0x11a)+(_0xd6b58e[_0x132299(0x13f)]||_0x557443[_0x132299(0xfe)])+'\x0a',_0x1a6461+=_0x132299(0x192)+(_0x24e304[_0x132299(0xe1)]||_0x557443[_0x132299(0xfe)])+'\x0a',_0x302e34+=_0x132299(0x114)+(_0x517ef2[_0x132299(0x1ae)]||_0x557443['BwsqX'])+'\x0a';}else _0x557443[_0x132299(0x112)](_0x557443[_0x132299(0x1a2)],_0x557443[_0x132299(0x1a2)])?process['exit'](0x1):_0x152680['push'](_0x557443[_0x132299(0x11b)]);const _0x3de1da={};_0x3de1da[_0x132299(0x183)]=WS_EVENTS[_0x132299(0x14d)],_0x3de1da[_0x132299(0x13f)]=_0x557443['BLZuT'],webSocketUtils[_0x132299(0x17d)](_0x561126,_0x3de1da),global_registry[_0x132299(0x131)]=_0x540bb8[_0x132299(0x131)],global_registry[_0x132299(0x169)]=_0x540bb8[_0x132299(0x141)],global_registry[_0x132299(0x1a7)]=_0x540bb8[_0x132299(0x1a7)];}else _0x41010f+=_0x132299(0x19d)+_0x1e8ddb[_0x132299(0x1a7)]+_0x132299(0x10f);}else _0x557443[_0x132299(0x18b)](_0x557443[_0x132299(0x145)],_0x557443[_0x132299(0x145)])?(logger['error'](_0x557443['dvMaj']),process['exit'](0x1)):_0x587e9e[_0x132299(0x191)](_0x132299(0x1b9)+_0x32aed[_0x132299(0x191)]['stack']);}}}catch(_0x3ad727){if(_0x557443['Govba'](_0x557443[_0x132299(0x119)],_0x557443[_0x132299(0x119)])){const {header:_0xf6ad26,response:_0x1f23c5}=_0x46cd18,{status:_0x51ce61,data:_0xdd3a50,error:_0x2af50b}=_0x1f23c5;_0x4fb3ed+=_0xf6ad26+'\x20#'+_0x557443[_0x132299(0x19f)](_0x2aaa28,0x1)+'\x0a',_0x58b9e7+='Status:\x20'+(_0x51ce61?_0x557443[_0x132299(0xf5)]:_0x557443['fjLwg'])+'\x0a',_0x539a36+=_0x132299(0x111)+_0x557443[_0x132299(0x12e)](_0xdd3a50,_0x557443[_0x132299(0xfe)])+'\x0a',_0x2af50b&&(_0x52e162+=_0x557443[_0x132299(0x146)],_0x336ddb+=_0x132299(0x11a)+(_0x2af50b[_0x132299(0x13f)]||_0x557443[_0x132299(0xfe)])+'\x0a',_0x567c5d+=_0x132299(0x192)+(_0x2af50b['code']||_0x557443[_0x132299(0xfe)])+'\x0a',_0x992255+=_0x132299(0x114)+(_0x2af50b[_0x132299(0x1ae)]||_0x557443[_0x132299(0xfe)])+'\x0a'),_0x13056b+='\x0a\x0a';}else _0x49a560=_0x132299(0x17b)+_0x3ad727+':\x20'+_0x3ad727[_0x132299(0x1ae)],logger[_0x132299(0x191)](_0x49a560),await _0x557443[_0x132299(0x108)](reportToGalactusAndSendToEDS,_0x1ff836,_0x561126,_0x49a560,messageTypes[_0x132299(0x125)],_0x557443[_0x132299(0x113)],_0x557443[_0x132299(0x18e)],_0x557443[_0x132299(0x195)]),process[_0x132299(0xc8)](0x1);}}function a17_0x51d6(_0x2d5477,_0x170a8c){const _0x2f156d=a17_0x2f15();return a17_0x51d6=function(_0x51d6ce,_0x2f7708){_0x51d6ce=_0x51d6ce-0xc8;let _0x1dfe4c=_0x2f156d[_0x51d6ce];return _0x1dfe4c;},a17_0x51d6(_0x2d5477,_0x170a8c);}function printResponse(_0x3f0af5,_0x456f8a){const _0x42d8e4=a17_0x233f63,_0x2a574e={};_0x2a574e[_0x42d8e4(0x136)]=_0x42d8e4(0x176),_0x2a574e[_0x42d8e4(0x126)]=function(_0x21b8df,_0x5e541b){return _0x21b8df===_0x5e541b;},_0x2a574e['kLNaY']=_0x42d8e4(0x15e),_0x2a574e[_0x42d8e4(0xf1)]='MmKpk';const _0x3094b9=_0x2a574e;logger[_0x42d8e4(0x11e)]('['+_0x3f0af5+_0x42d8e4(0x1c0)+_0x456f8a[_0x42d8e4(0x184)]+'\x20data\x20:\x20'+_0x456f8a[_0x42d8e4(0xf7)]+_0x42d8e4(0x152)+_0x456f8a[_0x42d8e4(0x191)]),_0x456f8a[_0x42d8e4(0x191)]&&(_0x3094b9['gLsua'](_0x3094b9[_0x42d8e4(0xf3)],_0x3094b9[_0x42d8e4(0xf1)])?(_0x51b767[_0x42d8e4(0x191)](_0x3094b9[_0x42d8e4(0x136)]),_0x426905['exit'](0x1)):logger[_0x42d8e4(0x191)](_0x42d8e4(0x1b9)+_0x456f8a[_0x42d8e4(0x191)]['stack']));}async function generateReport(_0x1a8728,_0x1f67e9){const _0xabea88=a17_0x233f63,_0x44c022={'ZcHuA':function(_0x57b2fe,_0x3ffe05){return _0x57b2fe+_0x3ffe05;},'pcCWH':'Success','LRIkE':_0xabea88(0x143),'Zvwvq':function(_0x460643,_0x34589d){return _0x460643||_0x34589d;},'ZoliA':'N/A','gHBFW':_0xabea88(0x1ad),'uSAMY':_0xabea88(0xfd),'jYqkc':function(_0x16fb74,_0x48cd5e){return _0x16fb74!=_0x48cd5e;},'dKoEu':_0xabea88(0x122),'YDHrN':_0xabea88(0x13b),'IfjMT':function(_0x2b5289){return _0x2b5289();}};let _0x58b0a9='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0xabea88(0x131)]+_0xabea88(0x1b1);return _0x1a8728[_0xabea88(0x156)]((_0x5b029f,_0x2b182a)=>{const _0x8cf50b=_0xabea88,{header:_0x2c1da5,response:_0x22b941}=_0x5b029f,{status:_0x24ef69,data:_0x20accb,error:_0x363abb}=_0x22b941;_0x58b0a9+=_0x2c1da5+'\x20#'+_0x44c022[_0x8cf50b(0x103)](_0x2b182a,0x1)+'\x0a',_0x58b0a9+=_0x8cf50b(0x13c)+(_0x24ef69?_0x44c022['pcCWH']:_0x44c022[_0x8cf50b(0x15f)])+'\x0a',_0x58b0a9+=_0x8cf50b(0x111)+_0x44c022[_0x8cf50b(0xef)](_0x20accb,_0x44c022[_0x8cf50b(0xc9)])+'\x0a',_0x363abb&&(_0x58b0a9+=_0x44c022[_0x8cf50b(0x1c1)],_0x58b0a9+='\x20\x20Message:\x20'+(_0x363abb[_0x8cf50b(0x13f)]||_0x44c022[_0x8cf50b(0xc9)])+'\x0a',_0x58b0a9+=_0x8cf50b(0x192)+(_0x363abb['code']||_0x44c022[_0x8cf50b(0xc9)])+'\x0a',_0x58b0a9+=_0x8cf50b(0x114)+(_0x363abb['stack']||_0x44c022[_0x8cf50b(0xc9)])+'\x0a'),_0x58b0a9+='\x0a\x0a';}),_0x58b0a9+=_0x44c022[_0xabea88(0xd6)],_0x44c022[_0xabea88(0x157)](_0x1f67e9,null)?_0x58b0a9+=_0xabea88(0x19d)+global_registry[_0xabea88(0x1a7)]+'\x20'+(_0x1f67e9?_0x44c022[_0xabea88(0x10e)]:_0x44c022[_0xabea88(0x199)])+'\x0a\x0a':_0x58b0a9+=_0xabea88(0x19d)+global_registry[_0xabea88(0x1a7)]+_0xabea88(0x10f),_0x58b0a9+=_0x44c022[_0xabea88(0x1b8)](getSystemMetaData),_0x58b0a9;};exports[a17_0x233f63(0x133)]=async function(_0x3edaa7){const _0x37e8d5=a17_0x233f63,_0x4e0975={'YbLUl':function(_0x2ce350){return _0x2ce350();},'TrkbZ':_0x37e8d5(0x138),'BVJrY':function(_0x4716e9,_0xaca3fa,_0x1fbe40,_0x3c48c2,_0x2a230f,_0x2551d7,_0x7bfa3,_0x34e360){return _0x4716e9(_0xaca3fa,_0x1fbe40,_0x3c48c2,_0x2a230f,_0x2551d7,_0x7bfa3,_0x34e360);},'DmYCJ':_0x37e8d5(0x19a),'OQXvI':_0x37e8d5(0x188),'pZQwJ':_0x37e8d5(0x191),'CGGKz':function(_0x13863b,_0x3dfc02,_0x544eff,_0x2166aa,_0x4d0ea6,_0x471511,_0x61e5a1){return _0x13863b(_0x3dfc02,_0x544eff,_0x2166aa,_0x4d0ea6,_0x471511,_0x61e5a1);},'sVAvR':function(_0x2d0b37){return _0x2d0b37();},'EVQYP':_0x37e8d5(0x1c5),'XHqiP':_0x37e8d5(0x1be),'pkBWi':function(_0x181a98,_0x184be8,_0x312535){return _0x181a98(_0x184be8,_0x312535);},'BVBtv':_0x37e8d5(0x1a4),'ZzREm':function(_0x32fa93,_0x116074,_0x47e214){return _0x32fa93(_0x116074,_0x47e214);},'NvkUJ':_0x37e8d5(0x178),'okaTn':_0x37e8d5(0xea),'jPvqe':function(_0xf20fe1,_0x1321db,_0x64b4ed){return _0xf20fe1(_0x1321db,_0x64b4ed);},'gLJfg':'accessResp','lAtDp':function(_0x4022e7){return _0x4022e7();},'WHheI':function(_0x4381f4,_0x58ab9e,_0x54bdd6){return _0x4381f4(_0x58ab9e,_0x54bdd6);},'MGalP':_0x37e8d5(0x1bf),'GYPoP':function(_0xee16d3,_0xca5534){return _0xee16d3(_0xca5534);},'XadrP':_0x37e8d5(0x185),'ZZeOR':_0x37e8d5(0x182),'XdQma':_0x37e8d5(0xf9),'LfJpN':_0x37e8d5(0x1b2),'vmzqU':_0x37e8d5(0x115),'MWKss':_0x37e8d5(0x10a),'IVuVV':function(_0x182a73,_0x27bb70,_0x1ab3a2){return _0x182a73(_0x27bb70,_0x1ab3a2);},'pMPrT':function(_0x3308e3,_0x3b59a6){return _0x3308e3+_0x3b59a6;},'qtsaK':_0x37e8d5(0xde),'cOXQN':_0x37e8d5(0x1bc)};let _0x4f8b86,_0x4c98e4;try{global_registry['requestId']=_0x4e0975[_0x37e8d5(0x13e)](uuidv4);!fs['existsSync'](_0x4e0975[_0x37e8d5(0x13e)](getCredentialsPath))&&(_0x4c98e4=_0x4e0975['TrkbZ'],logger[_0x37e8d5(0x191)](_0x4c98e4),await _0x4e0975[_0x37e8d5(0xd1)](reportToGalactusAndSendToEDS,_0x3edaa7,_0x4f8b86,_0x4c98e4,messageTypes[_0x37e8d5(0x125)],_0x4e0975[_0x37e8d5(0x154)],_0x4e0975['OQXvI'],_0x4e0975['pZQwJ']),process[_0x37e8d5(0xc8)](0x1));_0x4e0975[_0x37e8d5(0x179)](sendInstrumentationEvent,_0x3edaa7,_0x4e0975[_0x37e8d5(0x154)],messageTypes[_0x37e8d5(0xe0)],null,null,_0x3edaa7);const _0x225918=JSON[_0x37e8d5(0x1c3)](fs[_0x37e8d5(0x1a9)](_0x4e0975[_0x37e8d5(0x181)](getCredentialsPath)));global_registry[_0x37e8d5(0x12a)]=_0x225918[_0x37e8d5(0x10d)][_0x37e8d5(0x16e)],global_registry['bstackAccesskey']=_0x225918[_0x37e8d5(0x10d)]['password'];const _0x2a77ee=WS_ENDPOINT['replace'](_0x4e0975[_0x37e8d5(0x17a)],_0x225918[_0x37e8d5(0x10d)][_0x37e8d5(0x16e)])[_0x37e8d5(0xdd)](_0x4e0975[_0x37e8d5(0x175)],_0x225918['Browserstack'][_0x37e8d5(0x11d)]),_0x24ea4e={};_0x24ea4e[_0x37e8d5(0xd7)]=ws,_0x24ea4e[_0x37e8d5(0x1ba)]=0x36ee80,_0x4f8b86=new ReconnectingWebSocket(_0x2a77ee,[],_0x24ea4e),global_registry[_0x37e8d5(0x168)]=_0x4e0975[_0x37e8d5(0x142)](getAuthHeader,global_registry[_0x37e8d5(0x12a)],global_registry[_0x37e8d5(0x171)]),await _0x4e0975[_0x37e8d5(0x142)](inputValidation,_0x3edaa7,_0x4f8b86),logger[_0x37e8d5(0x11e)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x37e8d5(0x169)]);let _0x514ae4=await _0x4e0975[_0x37e8d5(0x179)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x37e8d5(0x1a7)],_0x4e0975[_0x37e8d5(0xdf)],_0x4f8b86,webSocketUtils,_0x3edaa7);const _0x570689=await _0x514ae4[_0x37e8d5(0x12b)]();_0x4e0975[_0x37e8d5(0xe3)](printResponse,_0x4e0975[_0x37e8d5(0x174)],_0x570689),_0x514ae4=await _0x514ae4[_0x37e8d5(0x1b7)]();let _0x22d2cb=![];try{_0x22d2cb=await _0x514ae4[_0x37e8d5(0x1b0)]();}catch(_0x23b91c){const _0x446aef=_0x4e0975[_0x37e8d5(0xce)]['split']('|');let _0x51a338=0x0;while(!![]){switch(_0x446aef[_0x51a338++]){case'0':logger[_0x37e8d5(0x191)](_0x4c98e4);continue;case'1':await _0x4e0975['BVJrY'](reportToGalactusAndSendToEDS,_0x3edaa7,_0x4f8b86,_0x4c98e4,messageTypes[_0x37e8d5(0x125)],_0x4e0975[_0x37e8d5(0x154)],_0x37e8d5(0x15d)+global_registry['cloudProvider'],_0x4e0975['pZQwJ']);continue;case'2':_0x4c98e4=_0x37e8d5(0x129)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x37e8d5(0x169)]+_0x37e8d5(0x10b)+_0x23b91c;continue;case'3':_0x22d2cb=null;continue;case'4':_0x4c98e4+='\x0a'+JSON[_0x37e8d5(0x166)](_0x23b91c[_0x37e8d5(0x1ae)]);continue;}break;}}_0x22d2cb&&logger[_0x37e8d5(0x11e)](_0x37e8d5(0xdb)+global_registry[_0x37e8d5(0x1a7)]+_0x37e8d5(0x1b3));const _0x5894d0=await _0x514ae4[_0x37e8d5(0x123)]();_0x4e0975[_0x37e8d5(0xe6)](printResponse,_0x4e0975[_0x37e8d5(0x148)],_0x5894d0);const _0x4fdafc=await _0x4e0975[_0x37e8d5(0x18a)](curlRequest);_0x4e0975[_0x37e8d5(0xfa)](printResponse,_0x4e0975[_0x37e8d5(0x19b)],_0x4fdafc);const _0x30975f=await _0x4e0975[_0x37e8d5(0xf6)](isTlsSupported,_0x4e0975[_0x37e8d5(0x1a0)]);_0x4e0975[_0x37e8d5(0xe6)](printResponse,_0x4e0975['ZZeOR'],_0x30975f);const _0x8d9f58={};_0x8d9f58[_0x37e8d5(0x164)]=_0x4e0975[_0x37e8d5(0x11f)],_0x8d9f58[_0x37e8d5(0x1a6)]=_0x570689;const _0x15c999={};_0x15c999['header']=_0x4e0975[_0x37e8d5(0x12d)],_0x15c999[_0x37e8d5(0x1a6)]=_0x5894d0;const _0x37880b={};_0x37880b[_0x37e8d5(0x164)]=_0x4e0975[_0x37e8d5(0x190)],_0x37880b['response']=_0x4fdafc;const _0xc4c469={};_0xc4c469[_0x37e8d5(0x164)]=_0x4e0975[_0x37e8d5(0x17e)],_0xc4c469['response']=_0x30975f;const _0x93a9be=[_0x8d9f58,_0x15c999,_0x37880b,_0xc4c469],_0x4692e6=await _0x4e0975[_0x37e8d5(0x16b)](generateReport,_0x93a9be,_0x22d2cb),_0x2d35d9=new Date(),_0x223d58=_0x2d35d9[_0x37e8d5(0x197)]()+'_'+_0x4e0975[_0x37e8d5(0x134)](_0x2d35d9[_0x37e8d5(0x165)](),0x1)+'_'+_0x2d35d9[_0x37e8d5(0x14e)]()+'_'+_0x2d35d9[_0x37e8d5(0x161)]()+'_'+_0x2d35d9[_0x37e8d5(0x160)](),_0x4c227d=_0x37e8d5(0x105)+_0x223d58+'.txt';fs['writeFileSync'](_0x4c227d,_0x4692e6,_0x4e0975['qtsaK']),logger['info'](_0x37e8d5(0x16f)+_0x4c227d),process['exit'](0x0);}catch(_0x242c9e){let _0x4a8086='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x242c9e+'\x20';logger[_0x37e8d5(0x191)](_0x4a8086),_0x4a8086+='\x0a'+JSON['stringify'](_0x242c9e[_0x37e8d5(0x1ae)]),logger[_0x37e8d5(0xe8)]('stack\x20trace\x20'+_0x242c9e['stack']);if(_0x4f8b86){const _0x30d874={};_0x30d874[_0x37e8d5(0x183)]=WS_EVENTS[_0x37e8d5(0x14d)],_0x30d874['message']=_0x4a8086,webSocketUtils[_0x37e8d5(0x17d)](_0x4f8b86,_0x30d874,_0x4e0975[_0x37e8d5(0x15c)],!![]);}await webSocketUtils[_0x37e8d5(0x1c7)](0x7d0);const _0x513ad3={};_0x513ad3[_0x37e8d5(0x191)]=_0x4a8086,await _0x4e0975['CGGKz'](sendInstrumentationEvent,_0x3edaa7,_0x4e0975[_0x37e8d5(0x154)],messageTypes['ERROR'],_0x4e0975[_0x37e8d5(0xed)],_0x513ad3,_0x3edaa7),process[_0x37e8d5(0xc8)](0x1);}};
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 +1 @@
1
- function a18_0x1ac8(_0x2d09ff,_0x3d06db){const _0x4f8810=a18_0x4f88();return a18_0x1ac8=function(_0x1ac8e8,_0x5aa701){_0x1ac8e8=_0x1ac8e8-0x1f3;let _0xd8c933=_0x4f8810[_0x1ac8e8];return _0xd8c933;},a18_0x1ac8(_0x2d09ff,_0x3d06db);}const a18_0x2ec93c=a18_0x1ac8;(function(_0x5297ea,_0x49905d){const _0x1dc989=a18_0x1ac8,_0x962aca=_0x5297ea();while(!![]){try{const _0x43cde8=-parseInt(_0x1dc989(0x1f3))/0x1*(-parseInt(_0x1dc989(0x201))/0x2)+-parseInt(_0x1dc989(0x205))/0x3*(parseInt(_0x1dc989(0x208))/0x4)+-parseInt(_0x1dc989(0x200))/0x5+-parseInt(_0x1dc989(0x1ff))/0x6+-parseInt(_0x1dc989(0x1f5))/0x7+-parseInt(_0x1dc989(0x204))/0x8+parseInt(_0x1dc989(0x202))/0x9*(parseInt(_0x1dc989(0x1f6))/0xa);if(_0x43cde8===_0x49905d)break;else _0x962aca['push'](_0x962aca['shift']());}catch(_0x229d13){_0x962aca['push'](_0x962aca['shift']());}}}(a18_0x4f88,0x96f0a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2ec93c(0x1fb));function a18_0x4f88(){const _0xb7cb4c=['25096221WjciRj','commandDir','7036144KwDRXB','3401871tSUWim','recommendCommands','UHgYE','4rLrLlK','command','5bznrtA','demandCommand','802501wqanVw','10rrfgVp','help','start','Start\x20an\x20existing\x20Automation\x20grid.','handler','../config/constants','usage','usBWB','desc','867342xyzeuD','827420bQYoWB','107176dptTwD'];a18_0x4f88=function(){return _0xb7cb4c;};return a18_0x4f88();}exports[a18_0x2ec93c(0x209)]='start',exports[a18_0x2ec93c(0x1fe)]=a18_0x2ec93c(0x1f9),exports['builder']=function(_0x2274ce){const _0xdacad1=a18_0x2ec93c,_0x53dad8={};_0x53dad8[_0xdacad1(0x1fd)]='start_commands',_0x53dad8['UHgYE']=_0xdacad1(0x1f7);const _0x49c8dd=_0x53dad8;return _0x2274ce[_0xdacad1(0x1fc)](HELP_HEADER_MESSAGE[_0xdacad1(0x1f8)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xdacad1(0x203)](_0x49c8dd[_0xdacad1(0x1fd)])[_0xdacad1(0x1f4)]()[_0xdacad1(0x206)]()['strict']()[_0xdacad1(0x1f7)](_0x49c8dd[_0xdacad1(0x207)]);},exports[a18_0x2ec93c(0x1fa)]=function(_0x4fd70d){};
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 +1 @@
1
- const a19_0x21e188=a19_0x11da;function a19_0x11da(_0xdd60ec,_0x4eccfe){const _0x30b723=a19_0x30b7();return a19_0x11da=function(_0x11da1f,_0x32177a){_0x11da1f=_0x11da1f-0xd3;let _0x2efac0=_0x30b723[_0x11da1f];return _0x2efac0;},a19_0x11da(_0xdd60ec,_0x4eccfe);}(function(_0x5b44c6,_0x547a82){const _0x47895c=a19_0x11da,_0x6d43b3=_0x5b44c6();while(!![]){try{const _0x42312e=-parseInt(_0x47895c(0x11f))/0x1*(parseInt(_0x47895c(0x102))/0x2)+parseInt(_0x47895c(0x12a))/0x3*(-parseInt(_0x47895c(0x100))/0x4)+-parseInt(_0x47895c(0x118))/0x5*(-parseInt(_0x47895c(0x123))/0x6)+-parseInt(_0x47895c(0xe2))/0x7+-parseInt(_0x47895c(0xef))/0x8*(-parseInt(_0x47895c(0x105))/0x9)+parseInt(_0x47895c(0xfe))/0xa+-parseInt(_0x47895c(0xec))/0xb*(-parseInt(_0x47895c(0xd8))/0xc);if(_0x42312e===_0x547a82)break;else _0x6d43b3['push'](_0x6d43b3['shift']());}catch(_0x2988bf){_0x6d43b3['push'](_0x6d43b3['shift']());}}}(a19_0x30b7,0x1edb0));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x21e188(0xf2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x21e188(0xf5)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x21e188(0xfc)),{createK8sClient}=require(a19_0x21e188(0xf3)),{getCloudProviderObject}=require(a19_0x21e188(0xe1));function a19_0x30b7(){const _0x240a54=['Start\x20an\x20existing\x20Automation\x20grid.','30fxMUCk','statusCode','bstackAccesskey','error','4518aSlJDi','desc','INFO','<UsernamePlaceholder>','bstackUsername','username','help','50727BZsozW','stack','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','KfwQN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','init-not-called','ERROR','oMkeW','12qrOtyb','MAhTv','parse','ArxqX','wKrya','boolean','Starting\x20grid\x20','skipTlsCertVerify','AdbLt','../../cloudproviders/utils','437724uOZXVu','handler','gridId','Adding\x20Websocket\x20listeners','ssvDk','grid-id','user','skip-tls-cert-verify','Browserstack','clusterName','3303718VrpAKT','CxURv','name','125024WJqoID','type','grid','reconnecting-websocket','../../utils/createk8sClient','JGLBC','../../utils/utilityMethods','description','WziWZ','WebSocket','tnTjq','connectionTimeout','cloudProvider','../../utils/webSocketUtils','server-error','1295470GyBORV','body','40RTMKkG','debug','7390VFiJkl','POxiO','options','9IMerPb','password','string','start','hYvjj','info','<PasswordPlaceholder>','JBlLR','invalid-grid-id','MKhof','YrRZo','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','VKvGm','pSVeU','WjOWU','default','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','usage','uHtjY','155IdVeIb','XbaAC','lhcsi','unauthorised','exit','start-grid-called'];a19_0x30b7=function(){return _0x240a54;};return a19_0x30b7();}exports['command']=a19_0x21e188(0xf1),exports[a19_0x21e188(0x124)]=a19_0x21e188(0x11e),exports['builder']=function(_0x259e43){const _0x1936e9=a19_0x21e188,_0x32918f={};_0x32918f[_0x1936e9(0xe6)]=_0x1936e9(0x115),_0x32918f[_0x1936e9(0xd7)]=_0x1936e9(0x107),_0x32918f[_0x1936e9(0xd3)]='Skip\x20insecure\x20cert\x20verification.',_0x32918f[_0x1936e9(0x11a)]=_0x1936e9(0xdd),_0x32918f[_0x1936e9(0x10e)]=_0x1936e9(0x129);const _0x39f2aa=_0x32918f,_0x2dd448={};_0x2dd448[_0x1936e9(0xf6)]=_0x39f2aa['ssvDk'],_0x2dd448[_0x1936e9(0xf0)]=_0x39f2aa[_0x1936e9(0xd7)];const _0x22b46c={};_0x22b46c[_0x1936e9(0xf6)]=_0x39f2aa[_0x1936e9(0xd3)],_0x22b46c[_0x1936e9(0xf0)]=_0x39f2aa[_0x1936e9(0x11a)],_0x22b46c[_0x1936e9(0x114)]=![];const _0x561b9a={};return _0x561b9a[_0x1936e9(0xe7)]=_0x2dd448,_0x561b9a[_0x1936e9(0xe9)]=_0x22b46c,_0x259e43[_0x1936e9(0x116)](HELP_HEADER_MESSAGE[_0x1936e9(0x108)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1936e9(0x104)](_0x561b9a)[_0x1936e9(0x129)](_0x39f2aa[_0x1936e9(0x10e)])['argv'];},exports[a19_0x21e188(0xe3)]=async function(_0x316b58){const _0x581e6f=a19_0x21e188,_0x12eb8e={'wIOKR':_0x581e6f(0x110),'JGLBC':function(_0x2db6fb){return _0x2db6fb();},'POxiO':_0x581e6f(0x12e),'JBlLR':function(_0x22877b,_0x28957b,_0x47d0b9,_0x2b677f,_0x57ac52,_0x2c7446,_0x2856f6){return _0x22877b(_0x28957b,_0x47d0b9,_0x2b677f,_0x57ac52,_0x2c7446,_0x2856f6);},'hYvjj':_0x581e6f(0x11d),'YrRZo':_0x581e6f(0xd5),'jRNlf':_0x581e6f(0x126),'WziWZ':_0x581e6f(0x10b),'tnTjq':_0x581e6f(0xe5),'VKvGm':function(_0x3fbdb1,_0xc56531,_0x557f2e,_0x5a782c){return _0x3fbdb1(_0xc56531,_0x557f2e,_0x5a782c);},'CxURv':function(_0x3c9255,_0x50967a,_0x9310ff,_0x7b9b39,_0x1f4a56,_0x28d421,_0x59b4e9){return _0x3c9255(_0x50967a,_0x9310ff,_0x7b9b39,_0x1f4a56,_0x28d421,_0x59b4e9);},'ArxqX':function(_0x305d1a,_0x7dcb18,_0x23d1c7){return _0x305d1a(_0x7dcb18,_0x23d1c7);},'AdbLt':'Grid\x20started','WjOWU':function(_0x22bbd6,_0xfe5420){return _0x22bbd6===_0xfe5420;},'XbaAC':_0x581e6f(0x12d),'NxeKS':_0x581e6f(0x11b),'pSVeU':function(_0x5d4efe,_0x3ebd2d){return _0x5d4efe===_0x3ebd2d;},'wKrya':function(_0x3e193d,_0x148ee5,_0x83d381,_0x1b51d0,_0x5d6976,_0x5b09b6,_0x4cf891){return _0x3e193d(_0x148ee5,_0x83d381,_0x1b51d0,_0x5d6976,_0x5b09b6,_0x4cf891);},'MAhTv':_0x581e6f(0x10d),'uHtjY':_0x581e6f(0xfd)};let _0x499869;try{!_0x316b58[_0x581e6f(0xe4)]&&(logger[_0x581e6f(0x122)](_0x12eb8e['wIOKR']),process[_0x581e6f(0x11c)](0x1));!fs['existsSync'](_0x12eb8e[_0x581e6f(0xf4)](getCredentialsPath))&&(logger[_0x581e6f(0x122)](_0x12eb8e[_0x581e6f(0x103)]),await _0x12eb8e['JBlLR'](sendInstrumentationEvent,_0x316b58,_0x12eb8e[_0x581e6f(0x109)],messageTypes[_0x581e6f(0xd6)],_0x12eb8e[_0x581e6f(0x10f)],null,_0x316b58),process[_0x581e6f(0x11c)](0x1));logger['info'](_0x581e6f(0xde)+_0x316b58[_0x581e6f(0xe4)]),await _0x12eb8e[_0x581e6f(0x10c)](sendInstrumentationEvent,_0x316b58,_0x12eb8e[_0x581e6f(0x109)],messageTypes[_0x581e6f(0x125)],null,null,_0x316b58);const _0x5d75b9=JSON[_0x581e6f(0xda)](fs['readFileSync'](_0x12eb8e[_0x581e6f(0xf4)](getCredentialsPath)));global_registry[_0x581e6f(0x127)]=_0x5d75b9[_0x581e6f(0xea)][_0x581e6f(0x128)],global_registry[_0x581e6f(0x121)]=_0x5d75b9[_0x581e6f(0xea)][_0x581e6f(0x106)];const _0x272e7c=WS_ENDPOINT['replace'](_0x12eb8e['jRNlf'],_0x5d75b9[_0x581e6f(0xea)]['username'])['replace'](_0x12eb8e[_0x581e6f(0xf7)],_0x5d75b9['Browserstack'][_0x581e6f(0x106)]),_0x4386b0={};_0x4386b0[_0x581e6f(0xf8)]=ws,_0x4386b0[_0x581e6f(0xfa)]=0x36ee80,_0x499869=new ReconnectingWebSocket(_0x272e7c,[],_0x4386b0),logger[_0x581e6f(0x101)](_0x12eb8e[_0x581e6f(0xf9)]),webSocketUtils['addListeners'](_0x499869,_0x316b58[_0x581e6f(0xe8)],_0x316b58[_0x581e6f(0x106)]);const [_0x54ff29,_0x365e11]=await _0x12eb8e[_0x581e6f(0x111)](getGridDetails,_0x5d75b9[_0x581e6f(0xea)]['username'],_0x5d75b9['Browserstack'][_0x581e6f(0x106)],_0x316b58[_0x581e6f(0xe4)]);if(_0x365e11){const _0x579595=_0x365e11[_0x581e6f(0x10a)];global_registry[_0x581e6f(0xfb)]=_0x579595[_0x581e6f(0xfb)],global_registry['clusterRegion']=_0x579595['region'],global_registry['clusterName']=_0x579595[_0x581e6f(0xeb)];const _0x4fd868=await _0x12eb8e[_0x581e6f(0xed)](getCloudProviderObject,_0x579595['cloudProvider'],_0x579595['clusterName'],_0x579595[_0x581e6f(0xee)],_0x499869,webSocketUtils,_0x316b58),[_0x3754b6,_0x3dbd39,_0x4a3f99,_0x1abd8a,_0xac2157,_0x4d9f29]=await _0x12eb8e[_0x581e6f(0xdb)](createK8sClient,_0x4fd868,_0x316b58[_0x581e6f(0xdf)]);await _0x12eb8e[_0x581e6f(0xdb)](scaleUpHubDeployment,_0x3dbd39,_0x579595[_0x581e6f(0xee)]),logger[_0x581e6f(0x10a)](_0x12eb8e[_0x581e6f(0xe0)]),process[_0x581e6f(0x11c)](0x0);}_0x12eb8e[_0x581e6f(0x113)](_0x54ff29[_0x581e6f(0x120)],0x191)&&(logger['error'](_0x12eb8e[_0x581e6f(0x119)]),await _0x12eb8e[_0x581e6f(0xed)](sendInstrumentationEvent,_0x316b58,_0x12eb8e['hYvjj'],messageTypes[_0x581e6f(0xd6)],_0x12eb8e['NxeKS'],null,_0x316b58),process['exit'](0x1)),_0x12eb8e[_0x581e6f(0x112)](_0x54ff29['statusCode'],0x190)&&(logger['error'](JSON[_0x581e6f(0xda)](_0x54ff29[_0x581e6f(0xff)])['message']),await _0x12eb8e[_0x581e6f(0xdc)](sendInstrumentationEvent,_0x316b58,_0x12eb8e[_0x581e6f(0x109)],messageTypes['ERROR'],_0x12eb8e[_0x581e6f(0xd9)],null,_0x316b58),process[_0x581e6f(0x11c)](0x1)),logger[_0x581e6f(0x122)](_0x581e6f(0xd4)+JSON[_0x581e6f(0x12c)](_0x54ff29)),await _0x12eb8e[_0x581e6f(0x10c)](sendInstrumentationEvent,_0x316b58,_0x12eb8e[_0x581e6f(0x109)],messageTypes[_0x581e6f(0xd6)],_0x12eb8e[_0x581e6f(0x117)],_0x54ff29,_0x316b58),process[_0x581e6f(0x11c)](0x1);}catch(_0x53a4c4){const _0x5b51e9='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x53a4c4+'\x20\x0a'+JSON[_0x581e6f(0x12c)](_0x53a4c4[_0x581e6f(0x12b)])+'\x20';logger[_0x581e6f(0x122)](_0x5b51e9),process[_0x581e6f(0x11c)](0x1);}};
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 +1 @@
1
- function a20_0xd4c9(_0xfe1b97,_0x73b302){const _0x54401e=a20_0x5440();return a20_0xd4c9=function(_0xd4c92d,_0x22bd54){_0xd4c92d=_0xd4c92d-0x154;let _0x58f537=_0x54401e[_0xd4c92d];return _0x58f537;},a20_0xd4c9(_0xfe1b97,_0x73b302);}const a20_0x4d7584=a20_0xd4c9;(function(_0x3b2be2,_0x23ac3c){const _0x427310=a20_0xd4c9,_0x27439e=_0x3b2be2();while(!![]){try{const _0x338968=parseInt(_0x427310(0x168))/0x1*(-parseInt(_0x427310(0x163))/0x2)+-parseInt(_0x427310(0x158))/0x3+-parseInt(_0x427310(0x165))/0x4*(parseInt(_0x427310(0x154))/0x5)+-parseInt(_0x427310(0x156))/0x6+-parseInt(_0x427310(0x155))/0x7+parseInt(_0x427310(0x164))/0x8+-parseInt(_0x427310(0x159))/0x9*(-parseInt(_0x427310(0x15a))/0xa);if(_0x338968===_0x23ac3c)break;else _0x27439e['push'](_0x27439e['shift']());}catch(_0x17d859){_0x27439e['push'](_0x27439e['shift']());}}}(a20_0x5440,0xaf19a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x4d7584(0x166));function a20_0x5440(){const _0x1928eb=['7549548ygLKMH','usage','941880wMIzlB','2763ChlSDl','106180EBZLPm','rnywW','Stop\x20a\x20running\x20Automation\x20grid.','QlDpy','commandDir','desc','command','help','stop','702914DihJbV','10346392yfHvAP','4ALjAnd','../config/constants','demandCommand','1VNkkOp','3138580STgmHt','8990968qJvYdt'];a20_0x5440=function(){return _0x1928eb;};return a20_0x5440();}exports[a20_0x4d7584(0x160)]=a20_0x4d7584(0x162),exports[a20_0x4d7584(0x15f)]=a20_0x4d7584(0x15c),exports['builder']=function(_0x35e270){const _0x3a56a6=a20_0x4d7584,_0x3ac410={};_0x3ac410[_0x3a56a6(0x15b)]='stop_commands',_0x3ac410[_0x3a56a6(0x15d)]='help';const _0x2e204c=_0x3ac410;return _0x35e270[_0x3a56a6(0x157)](HELP_HEADER_MESSAGE[_0x3a56a6(0x162)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3a56a6(0x15e)](_0x2e204c['rnywW'])[_0x3a56a6(0x167)]()['recommendCommands']()['strict']()[_0x3a56a6(0x161)](_0x2e204c[_0x3a56a6(0x15d)]);},exports['handler']=function(_0x290090){};
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 +1 @@
1
- const a21_0x3bfd11=a21_0x2298;(function(_0x1d870a,_0x174e3d){const _0x30ff5f=a21_0x2298,_0xa978f4=_0x1d870a();while(!![]){try{const _0x28d09d=-parseInt(_0x30ff5f(0x1d3))/0x1*(-parseInt(_0x30ff5f(0x1c2))/0x2)+parseInt(_0x30ff5f(0x1d0))/0x3+-parseInt(_0x30ff5f(0x1b7))/0x4*(-parseInt(_0x30ff5f(0x1a2))/0x5)+parseInt(_0x30ff5f(0x1ce))/0x6*(parseInt(_0x30ff5f(0x1b1))/0x7)+parseInt(_0x30ff5f(0x1cf))/0x8+-parseInt(_0x30ff5f(0x1a0))/0x9*(parseInt(_0x30ff5f(0x1d1))/0xa)+-parseInt(_0x30ff5f(0x1c6))/0xb*(parseInt(_0x30ff5f(0x1e0))/0xc);if(_0x28d09d===_0x174e3d)break;else _0xa978f4['push'](_0xa978f4['shift']());}catch(_0x13ebd8){_0xa978f4['push'](_0xa978f4['shift']());}}}(a21_0x1ea2,0xc6e77));function a21_0x2298(_0x310f65,_0x23cfec){const _0x1ea271=a21_0x1ea2();return a21_0x2298=function(_0x2298f1,_0x3d7227){_0x2298f1=_0x2298f1-0x19f;let _0xe7a7a0=_0x1ea271[_0x2298f1];return _0xe7a7a0;},a21_0x2298(_0x310f65,_0x23cfec);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3bfd11(0x1c4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3bfd11(0x1d7)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x3bfd11(0x1ba)),{sendInstrumentationEvent}=require(a21_0x3bfd11(0x1b5)),webSocketUtils=require(a21_0x3bfd11(0x1f1)),{createK8sClient}=require(a21_0x3bfd11(0x1bb)),{getCloudProviderObject}=require(a21_0x3bfd11(0x1f3));function a21_0x1ea2(){const _0x4762ce=['AnKlH','CZzeR','9hKBgIv','bstackUsername','634505HCZttT','Browserstack','type','roMKv','stringify','error','JJfYg','parse','unauthorised','pnpAO','readFileSync','Grid\x20stoppped.','options','description','usage','4191572ukAeCu','ZibnJ','cloudProvider','YWAlM','../../utils/instrumentationUtils','statusCode','44ssdTTx','Stopping\x20grid\x20','help','../../utils/gridComponents','../../utils/createk8sClient','EXjOj','XeggO','password','qhvsJ','stack','clusterRegion','188rrYaAH','WebSocket','reconnecting-websocket','command','1105115YxmHxt','INFO','user','connectionTimeout','ERROR','stop','body','<PasswordPlaceholder>','6opesPF','458536jYQGlR','1143498EKmhHd','8596920IjebML','name','10097rxizor','username','boolean','gridId','../../config/constants','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','iMlIG','invalid-grid-id','ETVSy','argv','string','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','204ZnVlZn','Stop\x20a\x20running\x20Automation\x20grid.','message','CyIKb','clusterName','TOfhO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pkhyS','chzTM','lJMKt','grid','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','grid-id','server-error','stop-grid-called','Skip\x20insecure\x20cert\x20verification.','aylqb','../../utils/webSocketUtils','init-not-called','../../cloudproviders/utils','existsSync','exit','QRjHg','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a21_0x1ea2=function(){return _0x4762ce;};return a21_0x1ea2();}exports[a21_0x3bfd11(0x1c5)]=a21_0x3bfd11(0x1ea),exports['desc']=a21_0x3bfd11(0x1e1),exports['builder']=function(_0x13bdc7){const _0x305136=a21_0x3bfd11,_0x4d36bf={};_0x4d36bf[_0x305136(0x1dc)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x4d36bf['tyKBd']=_0x305136(0x1de),_0x4d36bf[_0x305136(0x1b2)]=_0x305136(0x1ef),_0x4d36bf[_0x305136(0x1f8)]=_0x305136(0x1d5),_0x4d36bf[_0x305136(0x1a8)]=_0x305136(0x1b9);const _0x1f8686=_0x4d36bf,_0x5dab89={};_0x5dab89[_0x305136(0x1af)]=_0x1f8686[_0x305136(0x1dc)],_0x5dab89[_0x305136(0x1a4)]=_0x1f8686['tyKBd'];const _0x4dfa8f={};_0x4dfa8f[_0x305136(0x1af)]=_0x1f8686['ZibnJ'],_0x4dfa8f[_0x305136(0x1a4)]=_0x1f8686[_0x305136(0x1f8)],_0x4dfa8f['default']=![];const _0x5f04e2={};return _0x5f04e2[_0x305136(0x1ec)]=_0x5dab89,_0x5f04e2['skip-tls-cert-verify']=_0x4dfa8f,_0x13bdc7[_0x305136(0x1b0)](HELP_HEADER_MESSAGE[_0x305136(0x1cb)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x305136(0x1ae)](_0x5f04e2)[_0x305136(0x1b9)](_0x1f8686[_0x305136(0x1a8)])[_0x305136(0x1dd)];},exports['handler']=async function(_0x3c8df4){const _0x565464=a21_0x3bfd11,_0x48c5e2={'fkuXF':_0x565464(0x1df),'CyIKb':function(_0xf194de){return _0xf194de();},'XeggO':_0x565464(0x1e6),'QRjHg':function(_0x326278,_0x4bb032,_0x595026,_0x31974d,_0x2ca186,_0x3882f1,_0x38d83d){return _0x326278(_0x4bb032,_0x595026,_0x31974d,_0x2ca186,_0x3882f1,_0x38d83d);},'EXjOj':_0x565464(0x1ee),'HLxJV':_0x565464(0x1f2),'YWAlM':function(_0x1a5515){return _0x1a5515();},'YKJBe':'<UsernamePlaceholder>','lJMKt':_0x565464(0x1cd),'MTjKn':'Adding\x20Websocket\x20listeners','FQOQL':function(_0x38d81d,_0x172b57,_0x547c6c,_0x3db05d){return _0x38d81d(_0x172b57,_0x547c6c,_0x3db05d);},'iMlIG':function(_0x2aca29,_0x532225,_0x53247b){return _0x2aca29(_0x532225,_0x53247b);},'chzTM':function(_0x3b3f22,_0x14654a,_0xacab9f){return _0x3b3f22(_0x14654a,_0xacab9f);},'CZzeR':_0x565464(0x1ad),'TOfhO':function(_0x4a2af9,_0x3ae92a){return _0x4a2af9===_0x3ae92a;},'roMKv':_0x565464(0x1d8),'pnpAO':function(_0x37880b,_0x71500d,_0xc4d256,_0x443d82,_0xbd0ca0,_0x2a342f,_0x86a173){return _0x37880b(_0x71500d,_0xc4d256,_0x443d82,_0xbd0ca0,_0x2a342f,_0x86a173);},'qhvsJ':_0x565464(0x1aa),'aylqb':function(_0x4e4233,_0x48197f,_0x360b8a,_0x91e8af,_0x491891,_0x19d761,_0x4949d0){return _0x4e4233(_0x48197f,_0x360b8a,_0x91e8af,_0x491891,_0x19d761,_0x4949d0);},'pkhyS':_0x565464(0x1db),'rHqaL':_0x565464(0x1ed)};let _0x1f6c6e;try{!_0x3c8df4[_0x565464(0x1d6)]&&(logger[_0x565464(0x1a7)](_0x48c5e2['fkuXF']),process['exit'](0x1));!fs[_0x565464(0x1f4)](_0x48c5e2[_0x565464(0x1e3)](getCredentialsPath))&&(logger[_0x565464(0x1a7)](_0x48c5e2[_0x565464(0x1bd)]),await _0x48c5e2[_0x565464(0x1f6)](sendInstrumentationEvent,_0x3c8df4,_0x48c5e2['EXjOj'],messageTypes[_0x565464(0x1ca)],_0x48c5e2['HLxJV'],null,_0x3c8df4),process[_0x565464(0x1f5)](0x1));logger[_0x565464(0x1d9)](_0x565464(0x1b8)+_0x3c8df4['gridId']),await _0x48c5e2[_0x565464(0x1f6)](sendInstrumentationEvent,_0x3c8df4,_0x48c5e2[_0x565464(0x1bc)],messageTypes[_0x565464(0x1c7)],null,null,_0x3c8df4);const _0x147ba3=JSON[_0x565464(0x1a9)](fs[_0x565464(0x1ac)](_0x48c5e2[_0x565464(0x1b4)](getCredentialsPath)));global_registry[_0x565464(0x1a1)]=_0x147ba3['Browserstack']['username'],global_registry['bstackAccesskey']=_0x147ba3[_0x565464(0x1a3)][_0x565464(0x1be)];const _0x46dacd=WS_ENDPOINT['replace'](_0x48c5e2['YKJBe'],_0x147ba3[_0x565464(0x1a3)][_0x565464(0x1d4)])['replace'](_0x48c5e2[_0x565464(0x1e9)],_0x147ba3[_0x565464(0x1a3)]['password']),_0x53d09c={};_0x53d09c[_0x565464(0x1c3)]=ws,_0x53d09c[_0x565464(0x1c9)]=0x36ee80,_0x1f6c6e=new ReconnectingWebSocket(_0x46dacd,[],_0x53d09c),logger['debug'](_0x48c5e2['MTjKn']),webSocketUtils['addListeners'](_0x1f6c6e,_0x3c8df4[_0x565464(0x1c8)],_0x3c8df4[_0x565464(0x1be)]);const [_0xf89690,_0x290f8b]=await _0x48c5e2['FQOQL'](getGridDetails,_0x147ba3[_0x565464(0x1a3)][_0x565464(0x1d4)],_0x147ba3['Browserstack'][_0x565464(0x1be)],_0x3c8df4[_0x565464(0x1d6)]);if(_0x290f8b){const _0x1a8109=_0x290f8b[_0x565464(0x1d9)];global_registry[_0x565464(0x1b3)]=_0x1a8109[_0x565464(0x1b3)],global_registry[_0x565464(0x1c1)]=_0x1a8109['region'],global_registry[_0x565464(0x1e4)]=_0x1a8109['clusterName'];const _0x57dd68=await _0x48c5e2[_0x565464(0x1f6)](getCloudProviderObject,_0x1a8109[_0x565464(0x1b3)],_0x1a8109['clusterName'],_0x1a8109['name'],_0x1f6c6e,webSocketUtils,_0x3c8df4),[_0x1b713b,_0x2529b4,_0x27674a,_0x40430e,_0x350f7b,_0x149f62]=await _0x48c5e2[_0x565464(0x1da)](createK8sClient,_0x57dd68,_0x3c8df4['skipTlsCertVerify']);await _0x48c5e2[_0x565464(0x1e8)](scaleDownHubDeployment,_0x2529b4,_0x1a8109[_0x565464(0x1d2)]),logger[_0x565464(0x1d9)](_0x48c5e2[_0x565464(0x19f)]),process[_0x565464(0x1f5)](0x0);}_0x48c5e2[_0x565464(0x1e5)](_0xf89690['statusCode'],0x191)&&(logger[_0x565464(0x1a7)](_0x48c5e2[_0x565464(0x1a5)]),await _0x48c5e2[_0x565464(0x1ab)](sendInstrumentationEvent,_0x3c8df4,_0x48c5e2[_0x565464(0x1bc)],messageTypes['ERROR'],_0x48c5e2[_0x565464(0x1bf)],null,_0x3c8df4),process[_0x565464(0x1f5)](0x1)),_0x48c5e2[_0x565464(0x1e5)](_0xf89690[_0x565464(0x1b6)],0x190)&&(logger[_0x565464(0x1a7)](JSON[_0x565464(0x1a9)](_0xf89690[_0x565464(0x1cc)])[_0x565464(0x1e2)]),await _0x48c5e2['aylqb'](sendInstrumentationEvent,_0x3c8df4,_0x48c5e2[_0x565464(0x1bc)],messageTypes[_0x565464(0x1ca)],_0x48c5e2[_0x565464(0x1e7)],null,_0x3c8df4),process['exit'](0x1)),logger[_0x565464(0x1a7)](_0x565464(0x1f7)+JSON[_0x565464(0x1a6)](_0xf89690)),await _0x48c5e2[_0x565464(0x1f0)](sendInstrumentationEvent,_0x3c8df4,_0x48c5e2[_0x565464(0x1bc)],messageTypes[_0x565464(0x1ca)],_0x48c5e2['rHqaL'],_0xf89690,_0x3c8df4),process[_0x565464(0x1f5)](0x1);}catch(_0x74f58d){const _0x7246e6=_0x565464(0x1eb)+_0x74f58d+'\x20\x0a'+JSON[_0x565464(0x1a6)](_0x74f58d[_0x565464(0x1c0)])+'\x20';logger[_0x565464(0x1a7)](_0x7246e6),process[_0x565464(0x1f5)](0x1);}};
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 +1 @@
1
- const a22_0x35dc8a=a22_0x1c7a;(function(_0x20163a,_0x2bf22b){const _0x2122dd=a22_0x1c7a,_0x405631=_0x20163a();while(!![]){try{const _0xb43e72=-parseInt(_0x2122dd(0x22e))/0x1+-parseInt(_0x2122dd(0x205))/0x2+-parseInt(_0x2122dd(0x231))/0x3+parseInt(_0x2122dd(0x1fc))/0x4+parseInt(_0x2122dd(0x21c))/0x5*(parseInt(_0x2122dd(0x208))/0x6)+parseInt(_0x2122dd(0x1e3))/0x7+parseInt(_0x2122dd(0x235))/0x8*(parseInt(_0x2122dd(0x218))/0x9);if(_0xb43e72===_0x2bf22b)break;else _0x405631['push'](_0x405631['shift']());}catch(_0x52e7de){_0x405631['push'](_0x405631['shift']());}}}(a22_0x8c9d,0xa5705),require(a22_0x35dc8a(0x1d5))[a22_0x35dc8a(0x211)]());function a22_0x1c7a(_0x2cc5f0,_0x3fe228){const _0x8c9d14=a22_0x8c9d();return a22_0x1c7a=function(_0x1c7a1c,_0x326079){_0x1c7a1c=_0x1c7a1c-0x1d3;let _0x353b24=_0x8c9d14[_0x1c7a1c];return _0x353b24;},a22_0x1c7a(_0x2cc5f0,_0x3fe228);}let gridURL=a22_0x35dc8a(0x1dc),bsApiUrl=a22_0x35dc8a(0x215),agApiUrl=a22_0x35dc8a(0x23d);const _env=(process[a22_0x35dc8a(0x1fd)][a22_0x35dc8a(0x1f9)]||a22_0x35dc8a(0x20f))[a22_0x35dc8a(0x1ff)]();function a22_0x8c9d(){const _0x237339=['success','REGION','BSTACK-ATS-CLUSTER-AUTOSCALER','cliRunStarted','grid-api.browserstack.com','cliRunFinished','REDACTED','BrowserStack','CLUSTER_AUTOSCALER_STACK_NAME','MessageDescription','gridUrl','dotenv','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','AZURE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','ALL_SUPPORTED_CLOUD_PROVIDERS','BrowserStack-Automate-TurboScale','grid.browserstack.com','pre-check','BrowserStackIAMUser','messageTypes','Value','TURBOSCALE_DEPLOYMENT','TURBOSCALE_CUSTOM_TAGS','5481805dmjOmD','api-preprod.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','WARNING','INFO','DEFAULT_GRID_NAME','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','configure','Key','BS_API_URL','grid-profile','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','connect','CLUSTER','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','push','GCP','IAM_USER_NAME','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','[REDACTED]','preprod','BROWSERSTACK_ENV','warning','grid-devhst.bsstag.com','94636mcOiXB','env','NULL','toLowerCase','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','api-devhst.bsstag.com','start','CLI_RUN_FINISHED','grid','2156800BmJeVv','SUPPORTED_CLOUD_PROVIDERS','split','6IEeUmi','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','browserstack:managedBy','stop','forEach','grid-api-devhst.bsstag.com','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','prod','init','config','create','resourceInfo','LOG','api.browserstack.com','TRIAL_GRID_URL','grid-preprod.bsstag.com','20026593ohQftA','BSTACK-ATS-CLUSTER-HUB-HA','stag','info','2460715dEdNsc','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','wss://','pre_check','GRID_URL','browserstack-turboscale-grid','AWS','LINK_MESSAGE','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gcp','high-scale-grid','credentials','aws','WS_EVENTS','CLOUD_PROVIDER','error','list','1351380xfIJfK','high-scale-grid-cluster','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','1250031SYfyBb','HST_CLUSTER_TAGS','browserstack:service','HELP_FOOTER_MESSAGE','8mcZjVY','UNKNOWN','SUCCESS','global_registry'];a22_0x8c9d=function(){return _0x237339;};return a22_0x8c9d();}if(_env==='staging'||_env===a22_0x35dc8a(0x21a))gridURL=a22_0x35dc8a(0x1fb),bsApiUrl=a22_0x35dc8a(0x201),agApiUrl=a22_0x35dc8a(0x20d);else(_env===a22_0x35dc8a(0x1f8)||_env==='pre-prod')&&(gridURL=a22_0x35dc8a(0x217),bsApiUrl=a22_0x35dc8a(0x1e4),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process['env']['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x35dc8a(0x1ed)]=process[a22_0x35dc8a(0x1fd)][a22_0x35dc8a(0x1ed)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x35dc8a(0x1fd)]['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x35dc8a(0x21e)+this['AG_API_URL']+a22_0x35dc8a(0x1f2),exports['CP_CONFIG_FILE']=a22_0x35dc8a(0x228),exports[a22_0x35dc8a(0x1f5)]=a22_0x35dc8a(0x1de),exports[a22_0x35dc8a(0x1e9)]=a22_0x35dc8a(0x227),exports[a22_0x35dc8a(0x222)]=a22_0x35dc8a(0x229),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x35dc8a(0x241)]=a22_0x35dc8a(0x23b),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x35dc8a(0x219),exports[a22_0x35dc8a(0x1e1)]=a22_0x35dc8a(0x221),exports[a22_0x35dc8a(0x1d7)]='azure',exports['GCP']=a22_0x35dc8a(0x226),exports[a22_0x35dc8a(0x1da)]=[this[a22_0x35dc8a(0x222)],this['AZURE'],this[a22_0x35dc8a(0x1f4)]];const a22_0x4fa0f3={};a22_0x4fa0f3[a22_0x35dc8a(0x1ec)]=a22_0x35dc8a(0x20a),a22_0x4fa0f3['Value']=a22_0x35dc8a(0x240);const a22_0x2ca9e7={};a22_0x2ca9e7[a22_0x35dc8a(0x1ec)]='browserstack:service',a22_0x2ca9e7[a22_0x35dc8a(0x1e0)]=a22_0x35dc8a(0x1db);const common_hst_tags_list=[a22_0x4fa0f3,a22_0x2ca9e7];if(process[a22_0x35dc8a(0x1fd)][a22_0x35dc8a(0x1e2)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x35dc8a(0x207)](',');parsedTags[a22_0x35dc8a(0x20c)](_0x1cce9d=>{const _0x2af0be=a22_0x35dc8a,_0x22f167=_0x1cce9d['split'](':'),_0x4f58f2={};_0x4f58f2['Key']=_0x22f167[0x0],_0x4f58f2['Value']=_0x22f167[0x1],common_hst_tags_list[_0x2af0be(0x1f3)](_0x4f58f2);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x3faf63={};a22_0x3faf63[a22_0x35dc8a(0x20a)]='BrowserStack',a22_0x3faf63[a22_0x35dc8a(0x233)]=a22_0x35dc8a(0x1db),exports[a22_0x35dc8a(0x232)]=a22_0x3faf63,exports[a22_0x35dc8a(0x206)]=[this[a22_0x35dc8a(0x222)]];const a22_0xffb5f8={};a22_0xffb5f8[a22_0x35dc8a(0x214)]='log',a22_0xffb5f8['RESOURCES']=a22_0x35dc8a(0x213),a22_0xffb5f8[a22_0x35dc8a(0x220)]=a22_0x35dc8a(0x1d4),a22_0xffb5f8[a22_0x35dc8a(0x224)]=a22_0x35dc8a(0x23c),a22_0xffb5f8[a22_0x35dc8a(0x203)]=a22_0x35dc8a(0x23e),exports[a22_0x35dc8a(0x22a)]=a22_0xffb5f8,exports[a22_0x35dc8a(0x238)]={},exports['LINK_MESSAGE']=a22_0x35dc8a(0x1ef);const a22_0x501ab8={};a22_0x501ab8['root']=a22_0x35dc8a(0x20e)+this[a22_0x35dc8a(0x223)],a22_0x501ab8[a22_0x35dc8a(0x210)]=a22_0x35dc8a(0x1d6)+this['LINK_MESSAGE'],a22_0x501ab8[a22_0x35dc8a(0x1eb)]=a22_0x35dc8a(0x225)+this['LINK_MESSAGE'],a22_0x501ab8[a22_0x35dc8a(0x212)]=a22_0x35dc8a(0x1d8)+this['LINK_MESSAGE'],a22_0x501ab8[a22_0x35dc8a(0x22d)]={},a22_0x501ab8['delete']=a22_0x35dc8a(0x200)+this[a22_0x35dc8a(0x223)],a22_0x501ab8[a22_0x35dc8a(0x1f0)]=a22_0x35dc8a(0x209)+this[a22_0x35dc8a(0x223)],a22_0x501ab8[a22_0x35dc8a(0x202)]=a22_0x35dc8a(0x230)+this[a22_0x35dc8a(0x223)],a22_0x501ab8[a22_0x35dc8a(0x20b)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x35dc8a(0x223)],a22_0x501ab8[a22_0x35dc8a(0x21f)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x35dc8a(0x223)],a22_0x501ab8[a22_0x35dc8a(0x22d)]['root']=a22_0x35dc8a(0x1e5)+this[a22_0x35dc8a(0x223)],a22_0x501ab8[a22_0x35dc8a(0x22d)][a22_0x35dc8a(0x204)]=a22_0x35dc8a(0x1d9)+this[a22_0x35dc8a(0x223)],a22_0x501ab8[a22_0x35dc8a(0x22d)]['gridProfile']=a22_0x35dc8a(0x1ea)+this[a22_0x35dc8a(0x223)],exports['HELP_HEADER_MESSAGE']=a22_0x501ab8,exports[a22_0x35dc8a(0x234)]=a22_0x35dc8a(0x21d);const a22_0x57de90={};a22_0x57de90[a22_0x35dc8a(0x237)]=a22_0x35dc8a(0x239),a22_0x57de90['ERROR']=a22_0x35dc8a(0x22c),a22_0x57de90[a22_0x35dc8a(0x1e8)]=a22_0x35dc8a(0x21b),a22_0x57de90[a22_0x35dc8a(0x1e7)]=a22_0x35dc8a(0x1fa),a22_0x57de90[a22_0x35dc8a(0x236)]='unknown',a22_0x57de90[a22_0x35dc8a(0x1fe)]=null,exports[a22_0x35dc8a(0x1df)]=a22_0x57de90,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x35dc8a(0x23f)]=a22_0x35dc8a(0x1f7);const a22_0x47dfdb={};a22_0x47dfdb[a22_0x35dc8a(0x1ee)]=a22_0x35dc8a(0x1e6);const a22_0xb59f1f={};a22_0xb59f1f[a22_0x35dc8a(0x1dd)]=a22_0x47dfdb,exports[a22_0x35dc8a(0x1d3)]=a22_0xb59f1f,exports[a22_0x35dc8a(0x216)]=a22_0x35dc8a(0x1f6);const a22_0x13dd8a={};a22_0x13dd8a[a22_0x35dc8a(0x1f1)]=a22_0x35dc8a(0x22f),a22_0x13dd8a[a22_0x35dc8a(0x22b)]='aws',a22_0x13dd8a[a22_0x35dc8a(0x23a)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x13dd8a;
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 +1 @@
1
- function a23_0xffc3(){const _0xa68cfe=['name','printf','1648905SgJPfF','YYYY-MM-DD\x20HH:mm:ss','transports','debug','172192gImQLd','\x20-\x20','console.info','level','44397152ucpRFh','File','createLogger','colorize','2669688UjTUeT','85988LwYmGc','2158530dKhAAc','events.log','fileLogger','logger','join','timestamp','usage.log','624gxLiqf','23796nzJjcg','format'];a23_0xffc3=function(){return _0xa68cfe;};return a23_0xffc3();}const a23_0x3c2e1e=a23_0x1e0f;(function(_0x1ac0a5,_0x57e9b7){const _0x41e057=a23_0x1e0f,_0xe9f049=_0x1ac0a5();while(!![]){try{const _0x41a2c7=-parseInt(_0x41e057(0x70))/0x1+-parseInt(_0x41e057(0x7c))/0x2+parseInt(_0x41e057(0x6c))/0x3+parseInt(_0x41e057(0x74))/0x4+-parseInt(_0x41e057(0x7e))/0x5+-parseInt(_0x41e057(0x6b))/0x6*(parseInt(_0x41e057(0x7d))/0x7)+parseInt(_0x41e057(0x78))/0x8;if(_0x41a2c7===_0x57e9b7)break;else _0xe9f049['push'](_0xe9f049['shift']());}catch(_0x4ca77e){_0xe9f049['push'](_0xe9f049['shift']());}}}(a23_0xffc3,0xdd971));const winston=require('winston'),fs=require('fs'),path=require('path'),logDir='log';!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x106622={};a23_0x106622[a23_0x3c2e1e(0x6d)]=a23_0x3c2e1e(0x71);const a23_0x17061f={};a23_0x17061f[a23_0x3c2e1e(0x77)]=!![];const a23_0xc8c25b={};a23_0xc8c25b[a23_0x3c2e1e(0x6e)]=a23_0x3c2e1e(0x76),exports[a23_0x3c2e1e(0x67)]=new winston[(a23_0x3c2e1e(0x7a))]({'format':winston[a23_0x3c2e1e(0x6d)]['combine'](winston[a23_0x3c2e1e(0x6d)]['timestamp'](a23_0x106622),winston[a23_0x3c2e1e(0x6d)][a23_0x3c2e1e(0x7b)](a23_0x17061f),winston[a23_0x3c2e1e(0x6d)][a23_0x3c2e1e(0x6f)](_0x1d117b=>_0x1d117b[a23_0x3c2e1e(0x69)]+a23_0x3c2e1e(0x75)+_0x1d117b[a23_0x3c2e1e(0x77)]+':\x20'+_0x1d117b['message'])),'transports':[new winston['transports']['Console'](a23_0xc8c25b),new winston[(a23_0x3c2e1e(0x72))][(a23_0x3c2e1e(0x79))]({'filename':path[a23_0x3c2e1e(0x68)](logDir,a23_0x3c2e1e(0x7f)),'level':a23_0x3c2e1e(0x73)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3c2e1e(0x72))][(a23_0x3c2e1e(0x79))]({'filename':path['join'](logDir,a23_0x3c2e1e(0x6a)),'level':a23_0x3c2e1e(0x73)})]};function a23_0x1e0f(_0x1f9be2,_0x4d569d){const _0xffc3f0=a23_0xffc3();return a23_0x1e0f=function(_0x1e0fc0,_0xecaed1){_0x1e0fc0=_0x1e0fc0-0x66;let _0x10c101=_0xffc3f0[_0x1e0fc0];return _0x10c101;},a23_0x1e0f(_0x1f9be2,_0x4d569d);}exports[a23_0x3c2e1e(0x66)]=new winston['createLogger'](winstonFileLoggerParams);
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);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x5422(){const _0x251796=['12tRNgOj','LLrwF','1194768ZFtSMe','help','epilogue','544328xySeFI','747795YvIoNy','1754130FkNCFK','root','env','136kABqcy','demandCommand','90933lPHsIN','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','27WYVSsI','./config/constants','3277848sXNFWz','1470130LRaVNs'];a24_0x5422=function(){return _0x251796;};return a24_0x5422();}const a24_0x504396=a24_0x1f9b;function a24_0x1f9b(_0x40bef3,_0x439ece){const _0x54221d=a24_0x5422();return a24_0x1f9b=function(_0x1f9b87,_0x2eccdc){_0x1f9b87=_0x1f9b87-0x1da;let _0x26232b=_0x54221d[_0x1f9b87];return _0x26232b;},a24_0x1f9b(_0x40bef3,_0x439ece);}(function(_0x1b96aa,_0x350845){const _0x4a5b66=a24_0x1f9b,_0x925cb1=_0x1b96aa();while(!![]){try{const _0x53b016=parseInt(_0x4a5b66(0x1e0))/0x1+parseInt(_0x4a5b66(0x1dd))/0x2+parseInt(_0x4a5b66(0x1e7))/0x3*(-parseInt(_0x4a5b66(0x1e5))/0x4)+parseInt(_0x4a5b66(0x1e1))/0x5+-parseInt(_0x4a5b66(0x1db))/0x6*(-parseInt(_0x4a5b66(0x1e2))/0x7)+-parseInt(_0x4a5b66(0x1eb))/0x8+parseInt(_0x4a5b66(0x1e9))/0x9*(parseInt(_0x4a5b66(0x1da))/0xa);if(_0x53b016===_0x350845)break;else _0x925cb1['push'](_0x925cb1['shift']());}catch(_0x47f3f1){_0x925cb1['push'](_0x925cb1['shift']());}}}(a24_0x5422,0xc1a61));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x504396(0x1ea));process[a24_0x504396(0x1e4)][a24_0x504396(0x1e8)]=0x1;function run(_0x360ca3){const _0x9bf2c5=a24_0x504396,_0x241ff0={};_0x241ff0['wHheh']='commands',_0x241ff0[_0x9bf2c5(0x1dc)]=_0x9bf2c5(0x1de);const _0x45a5f9=_0x241ff0;_0x360ca3['usage'](HELP_HEADER_MESSAGE[_0x9bf2c5(0x1e3)])['commandDir'](_0x45a5f9['wHheh'])[_0x9bf2c5(0x1e6)]()['help'](_0x45a5f9[_0x9bf2c5(0x1dc)])[_0x9bf2c5(0x1df)](HELP_FOOTER_MESSAGE);}module['exports']=run;
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;