browserstack-node-sdk 1.70.2 → 1.70.3

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 (223) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/detox/a11ySetup.js +1 -1
  53. package/src/bin/detox/command.js +1 -1
  54. package/src/bin/detox/modifyDetoxConf.js +1 -1
  55. package/src/bin/detox/traEmitter.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/node-generic/client.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/reporterArgs.js +1 -1
  101. package/src/bin/playwright/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/patches.js +1 -1
  103. package/src/bin/puppeteer/sessionDetails.js +1 -1
  104. package/src/bin/puppeteer/test.setup.js +1 -1
  105. package/src/bin/runner.js +1 -1
  106. package/src/bin/setup.js +1 -1
  107. package/src/bin/test-runner/index.js +1 -1
  108. package/src/bin/test-runner/runTest.js +1 -1
  109. package/src/bin/test-runner/testWorker.js +1 -1
  110. package/src/bin/testcafe/a11y-runner.js +1 -1
  111. package/src/bin/testcafe/command.js +1 -1
  112. package/src/bin/testcafe/reporter/index.js +1 -1
  113. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  114. package/src/bin/testcafe/session-registry.js +1 -1
  115. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  116. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  117. package/src/bin/testcafe/w3c-driver.js +1 -1
  118. package/src/bin/utils/apiUtilityMethods.js +1 -1
  119. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  120. package/src/bin/utils/constants.js +1 -1
  121. package/src/bin/utils/log4jsAppender.js +1 -1
  122. package/src/bin/utils/logPatcher.js +1 -1
  123. package/src/bin/utils/logReportingAPI.js +1 -1
  124. package/src/bin/utils/playwright-patcher.js +1 -1
  125. package/src/bin/utils/puppeteer-patcher.js +1 -1
  126. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  127. package/src/bin/utils/sharedUtils.js +1 -1
  128. package/src/bin/v2/TestInfo.js +1 -1
  129. package/src/bin/v2/browserstackCLI.js +1 -1
  130. package/src/bin/v2/cliUtils.js +1 -1
  131. package/src/bin/v2/customTagManager.js +1 -1
  132. package/src/bin/v2/eventDispatcher.js +1 -1
  133. package/src/bin/v2/framework/automationFramework.js +1 -1
  134. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  137. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  138. package/src/bin/v2/framework/mochaTestFramework.js +1 -1
  139. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  140. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  143. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  144. package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/testFramework.js +1 -1
  146. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  147. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  148. package/src/bin/v2/grpcClient.js +1 -1
  149. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  150. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  151. package/src/bin/v2/instances/trackedContext.js +1 -1
  152. package/src/bin/v2/instances/trackedInstance.js +1 -1
  153. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  154. package/src/bin/v2/modules/baseModule.js +1 -1
  155. package/src/bin/v2/modules/loadTestModule.js +1 -1
  156. package/src/bin/v2/modules/observabilityModule.js +1 -1
  157. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  158. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  159. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  160. package/src/bin/v2/modules/testhubModule.js +1 -1
  161. package/src/bin/v2/runStateStore.js +1 -1
  162. package/src/bin/v2/sdkErrorHandler.js +1 -1
  163. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  164. package/src/bin/v2/state/hookState.js +1 -1
  165. package/src/bin/v2/state/testFrameworkState.js +1 -1
  166. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  167. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  168. package/src/bin/v2/utils/jest-utils.js +1 -1
  169. package/src/bin/vanilla-js/command.js +1 -1
  170. package/src/browserStackSdk.js +1 -1
  171. package/src/helpers/BrowserStackSetup.js +1 -1
  172. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  173. package/src/helpers/accessibility-automation/constants.js +1 -1
  174. package/src/helpers/accessibility-automation/helper.js +1 -1
  175. package/src/helpers/accessibility-automation/scripts.js +1 -1
  176. package/src/helpers/ats/constants.js +1 -1
  177. package/src/helpers/ats/helper.js +1 -1
  178. package/src/helpers/caCertHelper.js +1 -1
  179. package/src/helpers/capsMapping.js +1 -1
  180. package/src/helpers/central-scanner/constants.js +1 -1
  181. package/src/helpers/central-scanner/helpers.js +1 -1
  182. package/src/helpers/classLogger.js +1 -1
  183. package/src/helpers/driverInitErrorReporter.js +1 -1
  184. package/src/helpers/globals.js +1 -1
  185. package/src/helpers/helper.js +1 -1
  186. package/src/helpers/logger.js +1 -1
  187. package/src/helpers/metadata.js +1 -1
  188. package/src/helpers/patchHelper.js +1 -1
  189. package/src/helpers/patchHelpers.js +1 -1
  190. package/src/helpers/percy/Percy.js +1 -1
  191. package/src/helpers/percy/PercyBinary.js +1 -1
  192. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  193. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  194. package/src/helpers/percy/PercySDK.js +1 -1
  195. package/src/helpers/percy/index.js +1 -1
  196. package/src/helpers/percy/utils.js +1 -1
  197. package/src/helpers/performance/constants.js +1 -1
  198. package/src/helpers/performance/performance-tester.js +1 -1
  199. package/src/helpers/playwright-helper.js +1 -1
  200. package/src/helpers/processHelper.js +1 -1
  201. package/src/helpers/puppeteer-helper.js +1 -1
  202. package/src/helpers/request-spy.js +1 -1
  203. package/src/helpers/setKeepAlive.js +1 -1
  204. package/src/helpers/stackFrameUtils.js +1 -1
  205. package/src/helpers/test-observability/constants.js +1 -1
  206. package/src/helpers/test-observability/error-handler.js +1 -1
  207. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  208. package/src/helpers/test-observability/sessionHandler.js +1 -1
  209. package/src/helpers/test-observability/utils.js +1 -1
  210. package/src/helpers/test-orchestration/constants.js +1 -1
  211. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  212. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  213. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  214. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  215. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  216. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  217. package/src/helpers/testhub/constants.js +1 -1
  218. package/src/helpers/testhub/testhubHandler.js +1 -1
  219. package/src/helpers/testhub/utils.js +1 -1
  220. package/src/helpers/utilities.js +1 -1
  221. package/src/helpers/w3cMapping.js +1 -1
  222. package/src/hubAllocationMethods.js +1 -1
  223. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x59f2(_0x16704e,_0x1d0239){const _0x28cc3a=a15_0x28cc();return a15_0x59f2=function(_0x59f2d7,_0x4865a7){_0x59f2d7=_0x59f2d7-0x98;let _0x3516fd=_0x28cc3a[_0x59f2d7];return _0x3516fd;},a15_0x59f2(_0x16704e,_0x1d0239);}const a15_0x5ab9c3=a15_0x59f2;(function(_0x3925a5,_0x255f51){const _0x239496=a15_0x59f2,_0x3b5830=_0x3925a5();while(!![]){try{const _0x2c1b26=parseInt(_0x239496(0xd2))/0x1*(parseInt(_0x239496(0xa0))/0x2)+-parseInt(_0x239496(0xb8))/0x3*(-parseInt(_0x239496(0xc8))/0x4)+parseInt(_0x239496(0x9f))/0x5*(-parseInt(_0x239496(0x98))/0x6)+parseInt(_0x239496(0xbd))/0x7*(-parseInt(_0x239496(0xb7))/0x8)+parseInt(_0x239496(0xeb))/0x9+-parseInt(_0x239496(0xae))/0xa*(-parseInt(_0x239496(0x9e))/0xb)+-parseInt(_0x239496(0xe2))/0xc;if(_0x2c1b26===_0x255f51)break;else _0x3b5830['push'](_0x3b5830['shift']());}catch(_0x32cfa2){_0x3b5830['push'](_0x3b5830['shift']());}}}(a15_0x28cc,0x1f9d2));const fs=require('fs'),got=require(a15_0x5ab9c3(0xbb)),{table}=require(a15_0x5ab9c3(0xce)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5ab9c3(0xc6)),{getCredentialsPath,getAuthHeader}=require(a15_0x5ab9c3(0xa7)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x5ab9c3(0xe8)]=a15_0x5ab9c3(0xec),exports[a15_0x5ab9c3(0xc7)]=a15_0x5ab9c3(0xdf),exports[a15_0x5ab9c3(0xe4)]=function(_0x498b56){const _0x157909=a15_0x5ab9c3,_0x4bdf34={};_0x4bdf34[_0x157909(0xd5)]=_0x157909(0xc4),_0x4bdf34[_0x157909(0xb3)]=_0x157909(0xb6),_0x4bdf34[_0x157909(0xba)]=_0x157909(0xa4);const _0x153408=_0x4bdf34,_0x20444d={};_0x20444d[_0x157909(0xcb)]=_0x153408[_0x157909(0xd5)],_0x20444d[_0x157909(0xb5)]=_0x153408[_0x157909(0xb3)];const _0x579e71={};return _0x579e71[_0x157909(0xdb)]=_0x20444d,_0x498b56['usage'](HELP_HEADER_MESSAGE['list'][_0x157909(0x99)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x157909(0xa6)](_0x579e71)[_0x157909(0xa4)](_0x153408[_0x157909(0xba)])[_0x157909(0xb9)];},exports[a15_0x5ab9c3(0xc9)]=async function(_0x5b7cec){const _0x1baaba=a15_0x5ab9c3,_0x36a89a={'VYrnc':function(_0x5901da){return _0x5901da();},'GSIva':function(_0xb9209b){return _0xb9209b();},'TSkCU':_0x1baaba(0xb4),'Aqxti':function(_0xd0c862,_0x35cf14,_0x562db5,_0x445743,_0x40e530,_0x447407,_0x5bde8e){return _0xd0c862(_0x35cf14,_0x562db5,_0x445743,_0x40e530,_0x447407,_0x5bde8e);},'lTLaU':_0x1baaba(0xd9),'BEKEx':_0x1baaba(0xc2),'SKivl':function(_0x220e4a){return _0x220e4a();},'WDoqE':'GET','zsBew':function(_0x473809,_0x279e78,_0x3dc928){return _0x473809(_0x279e78,_0x3dc928);},'LTDFx':function(_0x2b2eaa,_0x4d9eaa,_0x5d2944){return _0x2b2eaa(_0x4d9eaa,_0x5d2944);},'FCqfX':function(_0x501ffd,_0x563d29){return _0x501ffd!==_0x563d29;},'WXOcG':function(_0x434445,_0x535966){return _0x434445===_0x535966;},'qppXQ':_0x1baaba(0xd3),'UbLfy':_0x1baaba(0xcd),'WDFtv':'grid-name','MgfwR':'status','RnlsY':_0x1baaba(0xc0),'tmxpk':_0x1baaba(0xe3),'FksoE':'cluster-name','hWUFc':function(_0x2131c3,_0x2799c9){return _0x2131c3(_0x2799c9);},'proXm':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TbymN':function(_0x45bdeb,_0x571fe9,_0x7de9b7,_0x4e150f,_0x2cb97b,_0x5bf7b2,_0x567b36){return _0x45bdeb(_0x571fe9,_0x7de9b7,_0x4e150f,_0x2cb97b,_0x5bf7b2,_0x567b36);},'TpvUJ':_0x1baaba(0xcf),'JSlIS':function(_0x17a070,_0x24b4cf,_0xb0176b,_0x1356a8,_0x30701e,_0x546e9b,_0x440974){return _0x17a070(_0x24b4cf,_0xb0176b,_0x1356a8,_0x30701e,_0x546e9b,_0x440974);},'ZbmYi':_0x1baaba(0xe5),'qdFzc':function(_0x4387d3,_0x1db953,_0x26a289,_0x292baa,_0x2dc8f9,_0x185297,_0xd9ec2c){return _0x4387d3(_0x1db953,_0x26a289,_0x292baa,_0x2dc8f9,_0x185297,_0xd9ec2c);},'VvvhX':_0x1baaba(0xa3)};try{global_registry['requestId']=_0x36a89a[_0x1baaba(0xda)](uuidv4);!fs[_0x1baaba(0xbe)](_0x36a89a['GSIva'](getCredentialsPath))&&(console[_0x1baaba(0xed)](_0x36a89a[_0x1baaba(0xaf)]),await _0x36a89a['Aqxti'](sendInstrumentationEvent,_0x5b7cec,_0x36a89a[_0x1baaba(0xe6)],messageTypes[_0x1baaba(0xa1)],_0x36a89a[_0x1baaba(0xa2)],null,_0x5b7cec),process[_0x1baaba(0xde)](0x1));const _0x1ffdf5=JSON['parse'](fs[_0x1baaba(0xb1)](_0x36a89a[_0x1baaba(0xd4)](getCredentialsPath)));let _0x54793d=_0x1baaba(0x9a)+AG_API_URL+_0x1baaba(0xe0);_0x5b7cec[_0x1baaba(0xe9)]&&(_0x54793d=_0x1baaba(0x9a)+AG_API_URL+'/packages/cli/get-all-grids');const _0x28ae56={'method':_0x36a89a[_0x1baaba(0xad)],'headers':_0x36a89a[_0x1baaba(0xb2)](getAuthHeader,_0x1ffdf5['Browserstack'][_0x1baaba(0xd6)],_0x1ffdf5['Browserstack'][_0x1baaba(0xc1)]),'throwHttpErrors':![]};global_registry[_0x1baaba(0xc5)]=_0x1ffdf5[_0x1baaba(0xee)]['username'],global_registry[_0x1baaba(0xc3)]=_0x1ffdf5[_0x1baaba(0xee)][_0x1baaba(0xc1)],_0x36a89a[_0x1baaba(0xbf)](sendInstrumentationEvent,_0x5b7cec,_0x36a89a[_0x1baaba(0xe6)],messageTypes['INFO'],null,null,_0x5b7cec);const _0x3b2da1=await _0x36a89a['LTDFx'](got,_0x54793d,_0x28ae56);if(_0x36a89a[_0x1baaba(0xd7)](_0x3b2da1,null)&&_0x36a89a['FCqfX'](_0x3b2da1,undefined)&&_0x36a89a['WXOcG'](_0x3b2da1[_0x1baaba(0xca)],0xc8)){const _0x52043e=JSON[_0x1baaba(0xcc)](_0x3b2da1['body']);console['log'](_0x36a89a[_0x1baaba(0xd0)]);const _0x3f514f=[];_0x3f514f['push']([_0x36a89a[_0x1baaba(0xd8)],_0x36a89a[_0x1baaba(0xaa)],_0x36a89a[_0x1baaba(0xab)],_0x36a89a[_0x1baaba(0xd1)],_0x36a89a['tmxpk'],_0x36a89a[_0x1baaba(0xb0)]]),_0x52043e[_0x1baaba(0xa5)](_0x252ef5=>{const _0x2317d4=_0x1baaba;_0x3f514f[_0x2317d4(0x9c)]([_0x252ef5['id'],_0x252ef5['name'],_0x252ef5[_0x2317d4(0xbc)],_0x252ef5[_0x2317d4(0xc0)],_0x252ef5[_0x2317d4(0xe3)],_0x252ef5[_0x2317d4(0xa8)]]);}),console[_0x1baaba(0xe7)](_0x36a89a['hWUFc'](table,_0x3f514f)),process[_0x1baaba(0xde)](0x0);}_0x36a89a['WXOcG'](_0x3b2da1[_0x1baaba(0xca)],0x191)&&(console['error'](_0x36a89a['proXm']),await _0x36a89a[_0x1baaba(0xac)](sendInstrumentationEvent,_0x5b7cec,_0x36a89a[_0x1baaba(0xe6)],messageTypes[_0x1baaba(0xa1)],_0x36a89a[_0x1baaba(0xe1)],null,_0x5b7cec),process[_0x1baaba(0xde)](0x1)),console[_0x1baaba(0xed)](_0x1baaba(0x9b)+JSON[_0x1baaba(0xdc)](_0x3b2da1)),await _0x36a89a[_0x1baaba(0x9d)](sendInstrumentationEvent,_0x5b7cec,_0x36a89a[_0x1baaba(0xe6)],messageTypes[_0x1baaba(0xa1)],_0x36a89a[_0x1baaba(0xdd)],_0x3b2da1,_0x5b7cec),process[_0x1baaba(0xde)](0x1);}catch(_0x5dec8f){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5dec8f['stack']),await _0x36a89a[_0x1baaba(0xea)](sendInstrumentationEvent,_0x5b7cec,_0x36a89a[_0x1baaba(0xe6)],messageTypes[_0x1baaba(0xa1)],_0x36a89a[_0x1baaba(0xa9)],_0x5dec8f,_0x5b7cec),process[_0x1baaba(0xde)](0x1);}};function a15_0x28cc(){const _0xad6c28=['BEKEx','unknown-error','help','forEach','options','../../utils/utilityMethods','clusterName','VvvhX','WDFtv','MgfwR','TbymN','WDoqE','21030UOfmtO','TSkCU','FksoE','readFileSync','zsBew','dnArF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','type','boolean','2312qMnVMA','597kAxxBp','argv','htguO','got','status','259PNVRYm','existsSync','Aqxti','running','password','init-not-called','bstackAccesskey','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','bstackUsername','../../config/constants','desc','444PKHNch','handler','statusCode','description','parse','grid-id','table','unauthorised','qppXQ','RnlsY','436FutzAl','\x0aFound\x20the\x20following\x20grids:\x0a','SKivl','JHGmB','username','FCqfX','UbLfy','list-grids-called','VYrnc','all-grids','stringify','ZbmYi','exit','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','/packages/cli/get-grids','TpvUJ','1240920rKGOgZ','queued','builder','server-error','lTLaU','log','command','allGrids','qdFzc','632340DDiKgy','grids','error','Browserstack','6aooyNt','grid','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','push','JSlIS','165lzPQmr','110005ZbXgva','650zXiUMO','ERROR'];a15_0x28cc=function(){return _0xad6c28;};return a15_0x28cc();}
1
+ const a15_0xa47e85=a15_0x3556;(function(_0x47b2c5,_0x4de173){const _0xe73854=a15_0x3556,_0x4ae94d=_0x47b2c5();while(!![]){try{const _0x45c90b=parseInt(_0xe73854(0xe5))/0x1*(-parseInt(_0xe73854(0x112))/0x2)+-parseInt(_0xe73854(0xfc))/0x3*(parseInt(_0xe73854(0xf2))/0x4)+parseInt(_0xe73854(0xe9))/0x5+-parseInt(_0xe73854(0xd0))/0x6+parseInt(_0xe73854(0xd6))/0x7*(-parseInt(_0xe73854(0xd2))/0x8)+-parseInt(_0xe73854(0xe3))/0x9*(-parseInt(_0xe73854(0x102))/0xa)+parseInt(_0xe73854(0xd9))/0xb*(parseInt(_0xe73854(0xc6))/0xc);if(_0x45c90b===_0x4de173)break;else _0x4ae94d['push'](_0x4ae94d['shift']());}catch(_0x37bb87){_0x4ae94d['push'](_0x4ae94d['shift']());}}}(a15_0x2bbe,0x55328));const fs=require('fs'),got=require(a15_0xa47e85(0xf7)),{table}=require(a15_0xa47e85(0x109)),{v4:uuidv4}=require(a15_0xa47e85(0xf5)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xa47e85(0xd3)),{getCredentialsPath,getAuthHeader}=require(a15_0xa47e85(0xf8)),{sendInstrumentationEvent}=require(a15_0xa47e85(0x113));function a15_0x2bbe(){const _0x1a71af=['List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','help','215290atubVl','parse','exit','error','uCgyz','existsSync','bstackUsername','table','uTeYo','INFO','forEach','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','argv','wJcZn','usage','handler','2vgGUbS','../../utils/instrumentationUtils','NryPV','hJykp','clusterName','KAYSl','command','status','wsRzi','juFff','username','ibdnP','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stringify','epilogue','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','24akeFWE','cluster-name','mkBYq','list-grids-called','SRETW','Browserstack','builder','KcROy','xwbEV','stack','2744454XbMNDu','list','72ULSZbz','../../config/constants','WHQBo','readFileSync','245224TsSKmJ','description','NOvGN','5611936HEcSCg','requestId','log','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','tSKHy','running','vnTqc','https://','desc','boolean','18CsrPDI','\x0aFound\x20the\x20following\x20grids:\x0a','109897FJwSPu','WarvK','unauthorised','allGrids','2273480fkdvoP','push','ERROR','statusCode','/packages/cli/get-grids','IyNaR','unknown-error','name','FOPgc','286544OTZZBU','HZblM','GET','uuid','bstackAccesskey','got','../../utils/utilityMethods','yQifV','grid-id','Failed\x20to\x20list\x20resources!\x20Error:\x20','12ySjLWX','HOuXl','queued','password'];a15_0x2bbe=function(){return _0x1a71af;};return a15_0x2bbe();}function a15_0x3556(_0x8546f6,_0x276fa3){const _0x2bbe86=a15_0x2bbe();return a15_0x3556=function(_0x3556c2,_0x3ec428){_0x3556c2=_0x3556c2-0xba;let _0x176aff=_0x2bbe86[_0x3556c2];return _0x176aff;},a15_0x3556(_0x8546f6,_0x276fa3);}exports[a15_0xa47e85(0xbc)]='grids',exports[a15_0xa47e85(0xe1)]=a15_0xa47e85(0x100),exports[a15_0xa47e85(0xcc)]=function(_0x4f8c10){const _0x47c574=a15_0xa47e85,_0x10c7c8={};_0x10c7c8[_0x47c574(0xc8)]=_0x47c574(0xdc),_0x10c7c8[_0x47c574(0x115)]=_0x47c574(0xe2),_0x10c7c8[_0x47c574(0xee)]=_0x47c574(0x101);const _0x5daf14=_0x10c7c8,_0x2fb06f={};_0x2fb06f[_0x47c574(0xd7)]=_0x5daf14[_0x47c574(0xc8)],_0x2fb06f['type']=_0x5daf14['hJykp'];const _0x834a05={};return _0x834a05['all-grids']=_0x2fb06f,_0x4f8c10[_0x47c574(0x110)](HELP_HEADER_MESSAGE[_0x47c574(0xd1)]['grid'])[_0x47c574(0xc4)](HELP_FOOTER_MESSAGE)['options'](_0x834a05)['help'](_0x5daf14[_0x47c574(0xee)])[_0x47c574(0x10e)];},exports[a15_0xa47e85(0x111)]=async function(_0x5d44a1){const _0x3b9587=a15_0xa47e85,_0x4e7102={'ibdnP':function(_0xa88b92){return _0xa88b92();},'KcROy':_0x3b9587(0xc2),'xwbEV':function(_0x288488,_0x167fc7,_0x18c0f2,_0x3ff88e,_0x203ae6,_0x1f81ae,_0x2b8235){return _0x288488(_0x167fc7,_0x18c0f2,_0x3ff88e,_0x203ae6,_0x1f81ae,_0x2b8235);},'HOuXl':_0x3b9587(0xc9),'wsRzi':'init-not-called','juFff':function(_0x304599){return _0x304599();},'SRETW':_0x3b9587(0xf4),'uTeYo':function(_0x28b6bd,_0xcf250b,_0x478bf2){return _0x28b6bd(_0xcf250b,_0x478bf2);},'NOvGN':function(_0xe9f3da,_0x523dd,_0x1afb6d,_0x410948,_0x1faf22,_0x474384,_0x2382d2){return _0xe9f3da(_0x523dd,_0x1afb6d,_0x410948,_0x1faf22,_0x474384,_0x2382d2);},'yQifV':function(_0x208f28,_0xf91df2){return _0x208f28!==_0xf91df2;},'WHQBo':function(_0x436809,_0x16bedc){return _0x436809!==_0x16bedc;},'NNpmB':function(_0x30c130,_0x4a8834){return _0x30c130===_0x4a8834;},'FOPgc':_0x3b9587(0xe4),'tSKHy':_0x3b9587(0xfa),'HZblM':'grid-name','NryPV':_0x3b9587(0xbd),'uCgyz':_0x3b9587(0xde),'koZAl':_0x3b9587(0xfe),'vnTqc':_0x3b9587(0xc7),'PyLwD':function(_0x16d094,_0x2e6e47){return _0x16d094(_0x2e6e47);},'KAYSl':function(_0x215b92,_0x46eecd){return _0x215b92===_0x46eecd;},'NEpep':_0x3b9587(0xc5),'WarvK':_0x3b9587(0xe7),'wJcZn':'server-error','SsJpB':_0x3b9587(0xef)};try{global_registry[_0x3b9587(0xda)]=_0x4e7102[_0x3b9587(0xc1)](uuidv4);!fs[_0x3b9587(0x107)](_0x4e7102[_0x3b9587(0xc1)](getCredentialsPath))&&(console[_0x3b9587(0x105)](_0x4e7102[_0x3b9587(0xcd)]),await _0x4e7102[_0x3b9587(0xce)](sendInstrumentationEvent,_0x5d44a1,_0x4e7102[_0x3b9587(0xfd)],messageTypes[_0x3b9587(0xeb)],_0x4e7102[_0x3b9587(0xbe)],null,_0x5d44a1),process[_0x3b9587(0x104)](0x1));const _0x4080f6=JSON['parse'](fs[_0x3b9587(0xd5)](_0x4e7102[_0x3b9587(0xbf)](getCredentialsPath)));let _0x564697=_0x3b9587(0xe0)+AG_API_URL+_0x3b9587(0xed);_0x5d44a1[_0x3b9587(0xe8)]&&(_0x564697='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x19c374={'method':_0x4e7102[_0x3b9587(0xca)],'headers':_0x4e7102[_0x3b9587(0x10a)](getAuthHeader,_0x4080f6[_0x3b9587(0xcb)][_0x3b9587(0xc0)],_0x4080f6['Browserstack'][_0x3b9587(0xff)]),'throwHttpErrors':![]};global_registry[_0x3b9587(0x108)]=_0x4080f6['Browserstack']['username'],global_registry[_0x3b9587(0xf6)]=_0x4080f6[_0x3b9587(0xcb)][_0x3b9587(0xff)],_0x4e7102['NOvGN'](sendInstrumentationEvent,_0x5d44a1,_0x4e7102[_0x3b9587(0xfd)],messageTypes[_0x3b9587(0x10b)],null,null,_0x5d44a1);const _0x11aeb9=await _0x4e7102[_0x3b9587(0x10a)](got,_0x564697,_0x19c374);if(_0x4e7102[_0x3b9587(0xf9)](_0x11aeb9,null)&&_0x4e7102[_0x3b9587(0xd4)](_0x11aeb9,undefined)&&_0x4e7102['NNpmB'](_0x11aeb9[_0x3b9587(0xec)],0xc8)){const _0x3c290a=JSON[_0x3b9587(0x103)](_0x11aeb9['body']);console[_0x3b9587(0xdb)](_0x4e7102[_0x3b9587(0xf1)]);const _0x5cc609=[];_0x5cc609[_0x3b9587(0xea)]([_0x4e7102[_0x3b9587(0xdd)],_0x4e7102[_0x3b9587(0xf3)],_0x4e7102[_0x3b9587(0x114)],_0x4e7102[_0x3b9587(0x106)],_0x4e7102['koZAl'],_0x4e7102[_0x3b9587(0xdf)]]),_0x3c290a[_0x3b9587(0x10c)](_0x1b7163=>{const _0x53a77d=_0x3b9587;_0x5cc609[_0x53a77d(0xea)]([_0x1b7163['id'],_0x1b7163[_0x53a77d(0xf0)],_0x1b7163[_0x53a77d(0xbd)],_0x1b7163[_0x53a77d(0xde)],_0x1b7163['queued'],_0x1b7163[_0x53a77d(0xba)]]);}),console[_0x3b9587(0xdb)](_0x4e7102['PyLwD'](table,_0x5cc609)),process[_0x3b9587(0x104)](0x0);}_0x4e7102[_0x3b9587(0xbb)](_0x11aeb9['statusCode'],0x191)&&(console[_0x3b9587(0x105)](_0x4e7102['NEpep']),await _0x4e7102[_0x3b9587(0xd8)](sendInstrumentationEvent,_0x5d44a1,_0x4e7102[_0x3b9587(0xfd)],messageTypes['ERROR'],_0x4e7102[_0x3b9587(0xe6)],null,_0x5d44a1),process['exit'](0x1)),console[_0x3b9587(0x105)](_0x3b9587(0x10d)+JSON[_0x3b9587(0xc3)](_0x11aeb9)),await _0x4e7102[_0x3b9587(0xd8)](sendInstrumentationEvent,_0x5d44a1,_0x4e7102[_0x3b9587(0xfd)],messageTypes[_0x3b9587(0xeb)],_0x4e7102[_0x3b9587(0x10f)],_0x11aeb9,_0x5d44a1),process['exit'](0x1);}catch(_0x42ef79){console['error'](_0x3b9587(0xfb)+_0x42ef79[_0x3b9587(0xcf)]),await _0x4e7102['NOvGN'](sendInstrumentationEvent,_0x5d44a1,_0x4e7102['HOuXl'],messageTypes[_0x3b9587(0xeb)],_0x4e7102['SsJpB'],_0x42ef79,_0x5d44a1),process[_0x3b9587(0x104)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x297c26=a16_0x2338;(function(_0x24a47d,_0x149133){const _0x1c0f20=a16_0x2338,_0x129990=_0x24a47d();while(!![]){try{const _0x55e132=parseInt(_0x1c0f20(0x117))/0x1+-parseInt(_0x1c0f20(0x127))/0x2*(parseInt(_0x1c0f20(0x122))/0x3)+parseInt(_0x1c0f20(0x126))/0x4+parseInt(_0x1c0f20(0x11d))/0x5*(parseInt(_0x1c0f20(0x11c))/0x6)+-parseInt(_0x1c0f20(0x115))/0x7*(parseInt(_0x1c0f20(0x113))/0x8)+-parseInt(_0x1c0f20(0x128))/0x9*(parseInt(_0x1c0f20(0x112))/0xa)+parseInt(_0x1c0f20(0x123))/0xb*(parseInt(_0x1c0f20(0x11a))/0xc);if(_0x55e132===_0x149133)break;else _0x129990['push'](_0x129990['shift']());}catch(_0x18abcf){_0x129990['push'](_0x129990['shift']());}}}(a16_0x201f,0x30f0c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x297c26(0x121));exports[a16_0x297c26(0x120)]=a16_0x297c26(0x11e),exports[a16_0x297c26(0x114)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x297c26(0x125)]=function(_0x363a7d){const _0x2d60f5=a16_0x297c26,_0x113e0a={};_0x113e0a[_0x2d60f5(0x11b)]=_0x2d60f5(0x129),_0x113e0a['ptzMg']=_0x2d60f5(0x111);const _0x30f286=_0x113e0a;return _0x363a7d[_0x2d60f5(0x118)](HELP_HEADER_MESSAGE['pre_check'])[_0x2d60f5(0x119)](HELP_FOOTER_MESSAGE)[_0x2d60f5(0x110)](_0x30f286[_0x2d60f5(0x11b)])[_0x2d60f5(0x116)]()['recommendCommands']()[_0x2d60f5(0x124)]()[_0x2d60f5(0x111)](_0x30f286['ptzMg']);},exports[a16_0x297c26(0x11f)]=function(_0x5d2ceb){};function a16_0x2338(_0x594e4b,_0x14516c){const _0x201f6c=a16_0x201f();return a16_0x2338=function(_0x2338a0,_0x2f50ec){_0x2338a0=_0x2338a0-0x110;let _0x1f6357=_0x201f6c[_0x2338a0];return _0x1f6357;},a16_0x2338(_0x594e4b,_0x14516c);}function a16_0x201f(){const _0x40969b=['pre-check','handler','command','../config/constants','3kYkyAE','774785encNZk','strict','builder','943780TFPPxH','484518KDIZdM','30087Oxyhre','precheck_commands','commandDir','help','600EcWObV','1260408ZBkRRa','desc','7iXkxId','demandCommand','41435cwGdxO','usage','epilogue','84ZnzzSm','tAlNu','7302HNjoKK','125WVnCJU'];a16_0x201f=function(){return _0x40969b;};return a16_0x201f();}
1
+ const a16_0x3f9f5e=a16_0xa3a2;(function(_0x5a803d,_0x1bedea){const _0x1609d9=a16_0xa3a2,_0x523065=_0x5a803d();while(!![]){try{const _0x2d5aea=-parseInt(_0x1609d9(0x7e))/0x1*(-parseInt(_0x1609d9(0x91))/0x2)+-parseInt(_0x1609d9(0x78))/0x3*(-parseInt(_0x1609d9(0x81))/0x4)+parseInt(_0x1609d9(0x7b))/0x5*(-parseInt(_0x1609d9(0x7c))/0x6)+-parseInt(_0x1609d9(0x87))/0x7*(-parseInt(_0x1609d9(0x8b))/0x8)+parseInt(_0x1609d9(0x90))/0x9*(parseInt(_0x1609d9(0x77))/0xa)+-parseInt(_0x1609d9(0x84))/0xb*(-parseInt(_0x1609d9(0x79))/0xc)+-parseInt(_0x1609d9(0x8a))/0xd;if(_0x2d5aea===_0x1bedea)break;else _0x523065['push'](_0x523065['shift']());}catch(_0x1ec977){_0x523065['push'](_0x523065['shift']());}}}(a16_0x28df,0xf3534));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x3f9f5e(0x8d));exports[a16_0x3f9f5e(0x85)]='pre-check',exports[a16_0x3f9f5e(0x82)]=a16_0x3f9f5e(0x89),exports['builder']=function(_0x3ade6c){const _0x53f5fb=a16_0x3f9f5e,_0x14d5e0={};_0x14d5e0[_0x53f5fb(0x7a)]='precheck_commands',_0x14d5e0['FboRM']='help';const _0x1ad477=_0x14d5e0;return _0x3ade6c[_0x53f5fb(0x8f)](HELP_HEADER_MESSAGE[_0x53f5fb(0x8e)])[_0x53f5fb(0x7d)](HELP_FOOTER_MESSAGE)[_0x53f5fb(0x8c)](_0x1ad477[_0x53f5fb(0x7a)])[_0x53f5fb(0x7f)]()[_0x53f5fb(0x83)]()[_0x53f5fb(0x88)]()[_0x53f5fb(0x80)](_0x1ad477['FboRM']);},exports[a16_0x3f9f5e(0x86)]=function(_0x219686){};function a16_0xa3a2(_0x50bcf9,_0x1d756a){const _0x28df97=a16_0x28df();return a16_0xa3a2=function(_0xa3a22,_0x3e3c35){_0xa3a22=_0xa3a22-0x77;let _0x11d760=_0x28df97[_0xa3a22];return _0x11d760;},a16_0xa3a2(_0x50bcf9,_0x1d756a);}function a16_0x28df(){const _0x2003bc=['4704852ABmIlF','LKUBb','896045CRxuqA','24kAGAiT','epilogue','848270nqaPzC','demandCommand','help','4UvxbOt','desc','recommendCommands','11XGgKAw','command','handler','7987UiHmZa','strict','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','39600821GEZvpk','6792bqQysz','commandDir','../config/constants','pre_check','usage','946584vqwbwM','2lxlNnn','140ehYCWq','3234597VZfyoX'];a16_0x28df=function(){return _0x2003bc;};return a16_0x28df();}
@@ -1 +1 @@
1
- function a17_0x253c(_0x3141d3,_0x20fbe1){const _0x24c224=a17_0x24c2();return a17_0x253c=function(_0x253c3c,_0x2b39ca){_0x253c3c=_0x253c3c-0x65;let _0x106e47=_0x24c224[_0x253c3c];return _0x106e47;},a17_0x253c(_0x3141d3,_0x20fbe1);}function a17_0x24c2(){const _0x23aa1c=['accessResp','lzwwK','WGWHn','data','pre-check-grid-profile-empty','`\x20,error\x20:\x20','will\x20be\x20created','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','xXdAe','uUESN','jUBMl','Cluster\x20details\x0a-----------------------\x0a','response','Message:\x20','eXAYP','isTls1_2_SUPPORTED','Success','QVxjR','LECJR','442PLNhGn','sYowY','mIXCC','connectionTimeout','wCoTN','username','bKuWc','sBDCR','dLXJI','pVKtY','===\x20Precheck\x20Report\x20-\x20','ogPHR','CLOUD_PROVIDER','qsqra','/packages/cli/get-all-grid-profiles','isTrialGridAccessible','BkVGH','cexBR','code','tkKQh','.txt','PIijf','\x20region\x20-\x20','fGPKM','`\x20is\x20present\x20in\x20region\x20`','epilogue','clusterRegion','pre-check','HBUSE','\x20data\x20:\x20','veEYY','ERROR','PSCtc','stack\x20trace\x20','LhAkk','Report\x20saved\x20in\x20','znXYv','TykZr',']\x20status\x20:\x20','split','isClusterPresent','handler','OvsxI','8330248BdhiFJ','EtjPd','pLfif','GzFmb','Whitelisted\x20browserstack','hrXuw','gUQeY','QETea','writeFileSync','reconnecting-websocket','QPnfZ','lsdTQ','OlsuO','.\x20Please\x20provide\x20all\x20required\x20arguments.','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','stack','help','replace','jvwMO','55075UFwgFP','\x20\x20Stack:\x20','MXXxW','GET','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','bETDR','SDLiA','method','AQAct','Error\x20Details:\x0a','init','name','push','TQmZC','727644halvnd','bstackAccesskey','usage','TLSv1_2_client_method','getUTCDate','log/report_','grid\x20profile\x20flow\x20','vzzTF','UCnKA','wTWie','exit','pre-check-failed','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','SSL\x20Configured','N/A','740289PNlLlY','DpJiT','INFO','cloudProvider','Setting\x20cloud\x20provider\x20as\x20','password','tHfOQ','xiCZu','170MqlTMP','getUTCFullYear','Status:\x20','../../utils/instrumentationUtils','argv','PKoXi','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','zrtqf','SVdre','../../cloudproviders/utils','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','error','info','FRPbh','exlwh','KQPel','RyVYX','VMAnO','Browserstack','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','User\x20Access','status','got','QrKxK','ttIFZ','toLowerCase','pvefo','THPxR','jiRzr','JtLZQ','kHoFG','utf-8','naDqy','EHurD','checkAccess','yQPNh','9wNUTwN','\x20\x20Code:\x20','pkRqt','zxIpi','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','CsoJr','TjkKX','aUzmJ','includes','LDshs','getUTCHours','BnXdk','bzPqc','error\x20stack\x20:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','EvLFB','OUhjI','cloud-provider','pre-check-cluster-args-not-passed','DOaHo','ONQgE','uuid','OwjiI','12WpqrLh','MmjTG','wvVcQ','parse','join','iagvZ','VXHcQ','body','message','debug','QUwgZ','gridProfile','oMHBg','pre-check-grid-called','LVUhG','https://','Cluster\x20`','description','azorM','ouXWf','Invalid\x20input.\x20grid\x20profiles:\x20','bISdJ','readFileSync','1381137ffdNNL','kHWpE','oeOPf','Failure','Tool\x20Installed','QFVMy','bstackUsername','region','fXkPk','lxIAh','grid','jZbFE','xNrSI','options','kPxsw','\x20error\x20:\x20','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','MGRXy','1960112ARinRV','Failed\x20in\x20pre-check!\x20Error:\x20','stringify','hQqWw','vokfe','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','cluster-name','pre_check','YEhzK','../../config/logger','header','20oqyNzC','xbBlI','delay','xDFBz','is\x20already\x20present','dummy-grid','EEuFM','clusterName','\x20\x20Message:\x20','getUTCMinutes','headers','873455krUOIQ','LpuMo','Pre-check\x20running\x20for\x20Cloud\x20-\x20','20DLwGHg','Cluster\x20','type','grid-profile','forEach','DsgOy','aMiBd','EfNJH'];a17_0x24c2=function(){return _0x23aa1c;};return a17_0x24c2();}const a17_0x4d0c3e=a17_0x253c;(function(_0x341df4,_0x501552){const _0x581202=a17_0x253c,_0x5d5837=_0x341df4();while(!![]){try{const _0x36c976=parseInt(_0x581202(0x126))/0x1*(parseInt(_0x581202(0xbf))/0x2)+-parseInt(_0x581202(0xa2))/0x3+parseInt(_0x581202(0xcd))/0x4*(-parseInt(_0x581202(0xca))/0x5)+-parseInt(_0x581202(0x8b))/0x6*(parseInt(_0x581202(0xb4))/0x7)+-parseInt(_0x581202(0x113))/0x8*(parseInt(_0x581202(0x74))/0x9)+parseInt(_0x581202(0x14b))/0xa*(parseInt(_0x581202(0x143))/0xb)+parseInt(_0x581202(0x134))/0xc*(parseInt(_0x581202(0xe8))/0xd);if(_0x36c976===_0x501552)break;else _0x5d5837['push'](_0x5d5837['shift']());}catch(_0x363ca9){_0x5d5837['push'](_0x5d5837['shift']());}}}(a17_0x24c2,0xc8860));const fs=require('fs'),ws=require('ws'),got=require(a17_0x4d0c3e(0x66)),{v4:uuidv4}=require(a17_0x4d0c3e(0x89)),ReconnectingWebSocket=require(a17_0x4d0c3e(0x11c)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x4d0c3e(0xbd)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x4d0c3e(0x154)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x4d0c3e(0x14e));exports['command']=a17_0x4d0c3e(0xac),exports['desc']=a17_0x4d0c3e(0x140),exports['builder']=function(_0x1d898b){const _0x15a6e0=a17_0x4d0c3e,_0x114b6c={};_0x114b6c[_0x15a6e0(0xdd)]=_0x15a6e0(0xb9),_0x114b6c[_0x15a6e0(0xaa)]='string',_0x114b6c[_0x15a6e0(0x128)]=_0x15a6e0(0x151),_0x114b6c['vokfe']=_0x15a6e0(0x155),_0x114b6c['vOcTm']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x114b6c[_0x15a6e0(0x116)]=_0x15a6e0(0x123);const _0x42843e=_0x114b6c,_0x59b955={};_0x59b955[_0x15a6e0(0x9c)]=_0x42843e[_0x15a6e0(0xdd)],_0x59b955[_0x15a6e0(0xcf)]=_0x42843e['fXkPk'];const _0x33c8b5={};_0x33c8b5[_0x15a6e0(0x9c)]=_0x42843e['MXXxW'],_0x33c8b5[_0x15a6e0(0xcf)]=_0x42843e[_0x15a6e0(0xaa)];const _0x3bf318={};_0x3bf318['description']=_0x42843e[_0x15a6e0(0xb8)],_0x3bf318[_0x15a6e0(0xcf)]=_0x42843e[_0x15a6e0(0xaa)];const _0x398985={};_0x398985[_0x15a6e0(0x9c)]=_0x42843e['vOcTm'],_0x398985[_0x15a6e0(0xcf)]=_0x42843e[_0x15a6e0(0xaa)];const _0x14384e={};return _0x14384e[_0x15a6e0(0xba)]=_0x59b955,_0x14384e[_0x15a6e0(0x85)]=_0x33c8b5,_0x14384e[_0x15a6e0(0xa9)]=_0x3bf318,_0x14384e[_0x15a6e0(0xd0)]=_0x398985,_0x1d898b['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x15a6e0(0x101)](HELP_FOOTER_MESSAGE)[_0x15a6e0(0xaf)](_0x14384e)[_0x15a6e0(0x123)](_0x42843e[_0x15a6e0(0x116)])[_0x15a6e0(0x14f)];};async function inputValidation(_0x4b4744,_0x57a61a){const _0x7b56a0=a17_0x4d0c3e,_0x5ac6a0={'LVUhG':_0x7b56a0(0x156),'LECJR':_0x7b56a0(0x12f),'lzwwK':_0x7b56a0(0x142),'LpuMo':_0x7b56a0(0x85),'VXRoy':function(_0x2ca745,_0x22a95f){return _0x2ca745+_0x22a95f;},'bKuWc':_0x7b56a0(0xe5),'wTWie':_0x7b56a0(0xa5),'hpeaQ':function(_0x2e173b,_0x36f482){return _0x2e173b||_0x36f482;},'LDshs':_0x7b56a0(0xb9),'zrtqf':'string','mIXCC':_0x7b56a0(0x151),'aUzmJ':_0x7b56a0(0x155),'TykZr':_0x7b56a0(0x15e),'DpJiT':_0x7b56a0(0x123),'DsgOy':_0x7b56a0(0x78),'TjkKX':_0x7b56a0(0xba),'xiCZu':_0x7b56a0(0xc3),'znXYv':_0x7b56a0(0xdb),'rEMzT':_0x7b56a0(0xa9),'xbBlI':function(_0xbed152,_0x202588){return _0xbed152===_0x202588;},'zxIpi':'Yqkny','wvVcQ':_0x7b56a0(0xe3),'JtLZQ':function(_0x296a0e,_0x1bc6d2){return _0x296a0e===_0x1bc6d2;},'QETea':_0x7b56a0(0xe6),'pVKtY':function(_0x3bfa08,_0x567567){return _0x3bfa08!==_0x567567;},'jZbFE':_0x7b56a0(0xf9),'kYCAA':_0x7b56a0(0x159),'WGWHn':_0x7b56a0(0xd4),'QewMv':function(_0x10cef8,_0x3b2933){return _0x10cef8>_0x3b2933;},'SDLiA':function(_0x78698,_0x1cad56){return _0x78698!==_0x1cad56;},'IGUgG':_0x7b56a0(0x112),'tkKQh':_0x7b56a0(0x115),'FRPbh':function(_0xc0d2f1,_0x1f0e77,_0x67cfe8,_0x920ce0,_0x8483c,_0x28548e,_0x314e4b,_0x3bdf08){return _0xc0d2f1(_0x1f0e77,_0x67cfe8,_0x920ce0,_0x8483c,_0x28548e,_0x314e4b,_0x3bdf08);},'LhAkk':'pre-check-grid-called','JgRWv':_0x7b56a0(0x86),'QrKxK':_0x7b56a0(0xc2),'uLBjM':_0x7b56a0(0xa4),'QFVMy':_0x7b56a0(0x12a),'kHoFG':function(_0x40dd95,_0x5657fd,_0x2f12fd,_0x5f4358,_0x562258,_0x57cae4,_0x2508fd,_0x2d3703){return _0x40dd95(_0x5657fd,_0x2f12fd,_0x5f4358,_0x562258,_0x57cae4,_0x2508fd,_0x2d3703);},'uUESN':'cloud-provider-not-supported','DOaHo':function(_0x10a43a,_0x3f1df8){return _0x10a43a===_0x3f1df8;},'hrXuw':_0x7b56a0(0xbc),'RyVYX':function(_0x2fe715,_0x270e76){return _0x2fe715!==_0x270e76;},'naDqy':_0x7b56a0(0x13c),'jiRzr':_0x7b56a0(0x129),'OwjiI':function(_0x3756b6,_0x5f319a,_0x289a2e){return _0x3756b6(_0x5f319a,_0x289a2e);},'rGKmW':function(_0x132473,_0x31f7bf,_0x237f5c,_0xe210df,_0x5b7770,_0x5ee040){return _0x132473(_0x31f7bf,_0x237f5c,_0xe210df,_0x5b7770,_0x5ee040);},'MmjTG':_0x7b56a0(0x103),'oCPsW':'grid-profile','OlsuO':function(_0x227188,_0x46efbd){return _0x227188===_0x46efbd;},'PKoXi':function(_0x4f3907,_0x1d66dd){return _0x4f3907!==_0x1d66dd;},'fGPKM':_0x7b56a0(0x91),'PIijf':_0x7b56a0(0x6a),'hhLCf':function(_0x5f03c3,_0x3aced2){return _0x5f03c3(_0x3aced2);},'EEuFM':function(_0xf992bc,_0xa2c633){return _0xf992bc===_0xa2c633;},'EHurD':_0x7b56a0(0xf5),'lsdTQ':_0x7b56a0(0xd9),'THPxR':function(_0x3809f1,_0x2f8df3){return _0x3809f1!==_0x2f8df3;},'ouXWf':'tyRbj','dLXJI':function(_0x5d5940,_0x20170f){return _0x5d5940!==_0x20170f;},'sYowY':_0x7b56a0(0x79),'BkVGH':'Grid\x20profile\x20fetched\x20for\x20pre-check','PSCtc':function(_0x30e28c,_0x278e45){return _0x30e28c===_0x278e45;},'bETDR':'KBsAj','KQPel':_0x7b56a0(0x80),'QPnfZ':'NtoRr','AQAct':function(_0x5b0cd8,_0x220ae2,_0x163028,_0x440a0d,_0x485ed6,_0x1650ba,_0x429dfe,_0x59f37f){return _0x5b0cd8(_0x220ae2,_0x163028,_0x440a0d,_0x485ed6,_0x1650ba,_0x429dfe,_0x59f37f);}};let _0x1d1b51;try{if(_0x5ac6a0[_0x7b56a0(0xc0)](_0x5ac6a0[_0x7b56a0(0x77)],_0x5ac6a0[_0x7b56a0(0x8d)])){const _0x8ab27f={};_0x8ab27f[_0x7b56a0(0xcf)]=_0x4b4f3e['LOG'],_0x8ab27f[_0x7b56a0(0x93)]=_0x4a6975,_0x4a7310['sendEventToBackend'](_0x23be0f,_0x8ab27f,_0x5ac6a0[_0x7b56a0(0x99)],!![]);}else{if(_0x4b4744[_0x7b56a0(0xc6)]||_0x4b4744['cloudProvider']||_0x4b4744['region']){if(_0x5ac6a0['JtLZQ'](_0x5ac6a0['QETea'],_0x5ac6a0[_0x7b56a0(0x11a)])){const _0x9e562=[];!_0x4b4744[_0x7b56a0(0xc6)]&&(_0x5ac6a0[_0x7b56a0(0xf1)](_0x5ac6a0[_0x7b56a0(0xad)],_0x5ac6a0[_0x7b56a0(0xad)])?(_0x1be373+=_0x5ac6a0[_0x7b56a0(0xe7)],_0x3987a6+=_0x7b56a0(0xc7)+(_0x1c5ce2[_0x7b56a0(0x93)]||_0x5ac6a0[_0x7b56a0(0xd6)])+'\x0a',_0x3bae1d+=_0x7b56a0(0x75)+(_0x4f871c[_0x7b56a0(0xfa)]||_0x5ac6a0[_0x7b56a0(0xd6)])+'\x0a',_0x23345c+=_0x7b56a0(0x127)+(_0x57b879[_0x7b56a0(0x122)]||_0x5ac6a0['lzwwK'])+'\x0a'):_0x9e562[_0x7b56a0(0x132)](_0x5ac6a0[_0x7b56a0(0x7a)]));;!_0x4b4744[_0x7b56a0(0x146)]&&(_0x5ac6a0[_0x7b56a0(0x6d)](_0x5ac6a0['kYCAA'],_0x5ac6a0['kYCAA'])?_0x9e562[_0x7b56a0(0x132)](_0x5ac6a0[_0x7b56a0(0xcb)]):_0x29e9bf['error'](_0x7b56a0(0x81)+_0x588195['error'][_0x7b56a0(0x122)]));;!_0x4b4744[_0x7b56a0(0xa9)]&&(_0x5ac6a0['JtLZQ'](_0x5ac6a0[_0x7b56a0(0xd7)],_0x5ac6a0['WGWHn'])?_0x9e562[_0x7b56a0(0x132)](_0x5ac6a0['rEMzT']):_0x5be01e['push'](_0x5ac6a0[_0x7b56a0(0xcb)]));;_0x5ac6a0['QewMv'](_0x9e562['length'],0x0)&&(_0x5ac6a0[_0x7b56a0(0x12c)](_0x5ac6a0['IGUgG'],_0x5ac6a0[_0x7b56a0(0xfb)])?(_0x1d1b51='Missing\x20required\x20arguments:\x20'+_0x9e562[_0x7b56a0(0x8f)](',\x20')+_0x7b56a0(0x120),await _0x5ac6a0[_0x7b56a0(0x158)](reportToGalactusAndSendToEDS,_0x4b4744,_0x57a61a,_0x1d1b51,messageTypes[_0x7b56a0(0x107)],_0x5ac6a0[_0x7b56a0(0x10a)],_0x5ac6a0['JgRWv'],_0x5ac6a0['LVUhG']),logger[_0x7b56a0(0x156)](_0x1d1b51),process[_0x7b56a0(0x13e)](0x1)):_0x559c56[_0x7b56a0(0x157)](_0x7b56a0(0x9b)+_0x3c4dd0['clusterName']+'`\x20already\x20exists'));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x7b56a0(0x7c)](_0x4b4744[_0x7b56a0(0x146)][_0x7b56a0(0x69)]())){if(_0x5ac6a0['SDLiA'](_0x5ac6a0[_0x7b56a0(0x67)],_0x5ac6a0['uLBjM']))_0x1d1b51=_0x5ac6a0[_0x7b56a0(0xa7)],await _0x5ac6a0[_0x7b56a0(0x6e)](reportToGalactusAndSendToEDS,_0x4b4744,_0x57a61a,_0x1d1b51,messageTypes['ERROR'],_0x5ac6a0[_0x7b56a0(0x10a)],_0x5ac6a0[_0x7b56a0(0xde)],_0x5ac6a0[_0x7b56a0(0x99)]),logger[_0x7b56a0(0x156)](_0x1d1b51),!_0x4b4744[_0x7b56a0(0x146)]&&(_0x5ac6a0[_0x7b56a0(0x87)](_0x5ac6a0[_0x7b56a0(0x118)],_0x5ac6a0['hrXuw'])?(logger['info'](_0x7b56a0(0x147)+DEFAULT_CLUSTER_DETAILS[_0x7b56a0(0xf4)]+'\x20'),_0x4b4744[_0x7b56a0(0x146)]=DEFAULT_CLUSTER_DETAILS[_0x7b56a0(0xf4)]):_0x29311d[_0x7b56a0(0x13e)](0x1));else{const {header:_0x1271b7,response:_0x312c5c}=_0xc5e1b3,{status:_0x17faa6,data:_0x33e13a,error:_0x676cc4}=_0x312c5c;_0xb65b1d+=_0x1271b7+'\x20#'+_0x5ac6a0['VXRoy'](_0xb15864,0x1)+'\x0a',_0x49f178+=_0x7b56a0(0x14d)+(_0x17faa6?_0x5ac6a0[_0x7b56a0(0xee)]:_0x5ac6a0[_0x7b56a0(0x13d)])+'\x0a',_0x3cbabc+=_0x7b56a0(0xe2)+_0x5ac6a0['hpeaQ'](_0x33e13a,_0x5ac6a0['lzwwK'])+'\x0a',_0x676cc4&&(_0x34ce3a+=_0x5ac6a0[_0x7b56a0(0xe7)],_0x34677e+='\x20\x20Message:\x20'+(_0x676cc4[_0x7b56a0(0x93)]||_0x5ac6a0[_0x7b56a0(0xd6)])+'\x0a',_0x20a79f+=_0x7b56a0(0x75)+(_0x676cc4[_0x7b56a0(0xfa)]||_0x5ac6a0[_0x7b56a0(0xd6)])+'\x0a',_0x461673+=_0x7b56a0(0x127)+(_0x676cc4[_0x7b56a0(0x122)]||_0x5ac6a0[_0x7b56a0(0xd6)])+'\x0a'),_0x25c342+='\x0a\x0a';}}global_registry['clusterName']=_0x4b4744[_0x7b56a0(0xc6)],global_registry['cloudProvider']=_0x4b4744[_0x7b56a0(0x146)],global_registry['clusterRegion']=_0x4b4744[_0x7b56a0(0xa9)];}else{const _0x41a8a1={};_0x41a8a1[_0x7b56a0(0x9c)]=_0x5ac6a0[_0x7b56a0(0x7d)],_0x41a8a1['type']=_0x5ac6a0['zrtqf'];const _0x451fc6={};_0x451fc6[_0x7b56a0(0x9c)]=_0x5ac6a0[_0x7b56a0(0xea)],_0x451fc6['type']=_0x5ac6a0[_0x7b56a0(0x152)];const _0x13abb6={};_0x13abb6[_0x7b56a0(0x9c)]=_0x5ac6a0[_0x7b56a0(0x7b)],_0x13abb6[_0x7b56a0(0xcf)]=_0x5ac6a0[_0x7b56a0(0x152)];const _0x4cc9fe={};_0x4cc9fe[_0x7b56a0(0x9c)]=_0x5ac6a0[_0x7b56a0(0x10d)],_0x4cc9fe[_0x7b56a0(0xcf)]=_0x5ac6a0['zrtqf'];const _0x1f355c={};return _0x1f355c['cluster-name']=_0x41a8a1,_0x1f355c['cloud-provider']=_0x451fc6,_0x1f355c['region']=_0x13abb6,_0x1f355c[_0x7b56a0(0xd0)]=_0x4cc9fe,_0x9545f[_0x7b56a0(0x136)](_0x2e8cd1[_0x7b56a0(0xbb)])['epilogue'](_0x2ee6d2)[_0x7b56a0(0xaf)](_0x1f355c)[_0x7b56a0(0x123)](_0x5ac6a0[_0x7b56a0(0x144)])[_0x7b56a0(0x14f)];}}else{if(_0x4b4744[_0x7b56a0(0x96)]){if(_0x5ac6a0[_0x7b56a0(0x15b)](_0x5ac6a0[_0x7b56a0(0x70)],_0x5ac6a0[_0x7b56a0(0x70)]))_0x30c27b[_0x7b56a0(0x156)](_0x5ac6a0[_0x7b56a0(0xd2)]),_0x12273a[_0x7b56a0(0x13e)](0x1);else{global_registry['gridProfile']=_0x4b4744[_0x7b56a0(0x96)],logger[_0x7b56a0(0x94)](_0x7b56a0(0x13a)+_0x4b4744[_0x7b56a0(0x96)]);const _0x57c3d9=_0x7b56a0(0x9a)+AG_API_URL+_0x7b56a0(0xf6),_0x1edce3={};_0x1edce3[_0x7b56a0(0x12d)]=_0x5ac6a0[_0x7b56a0(0x6c)],_0x1edce3[_0x7b56a0(0xc9)]=global_registry['authHeader'],_0x1edce3['throwHttpErrors']=![];const _0x51259d=_0x1edce3,_0x23cf2e=await _0x5ac6a0[_0x7b56a0(0x8a)](got,_0x57c3d9,_0x51259d),_0x2692db=await _0x5ac6a0['rGKmW'](responseValidation,_0x23cf2e,_0x5ac6a0[_0x7b56a0(0x8c)],_0x5ac6a0['oCPsW'],_0x4b4744,_0x57a61a);let _0xb26608={};if(_0x5ac6a0[_0x7b56a0(0x11f)](_0x2692db,0xc8)){if(_0x5ac6a0[_0x7b56a0(0x150)](_0x5ac6a0[_0x7b56a0(0xff)],_0x5ac6a0[_0x7b56a0(0xfd)])){const _0x11e4cc=JSON[_0x7b56a0(0x8e)](_0x23cf2e[_0x7b56a0(0x92)]),_0x4254e5=_0x11e4cc['find'](_0x4ea463=>_0x4ea463[_0x7b56a0(0x131)]===_0x4b4744[_0x7b56a0(0x96)])||null;_0x5ac6a0['hhLCf'](isUndefined,_0x4254e5)?_0x5ac6a0['EEuFM'](_0x5ac6a0[_0x7b56a0(0x71)],_0x5ac6a0['EHurD'])?(_0x1d1b51=_0x7b56a0(0x9f)+_0x4b4744[_0x7b56a0(0x96)]+_0x7b56a0(0x82),await _0x5ac6a0['FRPbh'](reportToGalactusAndSendToEDS,_0x4b4744,_0x57a61a,_0x1d1b51,messageTypes[_0x7b56a0(0x107)],_0x5ac6a0['LhAkk'],_0x5ac6a0[_0x7b56a0(0x11e)],_0x5ac6a0['LVUhG']),logger['error'](_0x1d1b51),process[_0x7b56a0(0x13e)](0x1)):_0x2e2dc4[_0x7b56a0(0x132)](_0x5ac6a0[_0x7b56a0(0x7a)]):_0x5ac6a0[_0x7b56a0(0x6b)](_0x5ac6a0['ouXWf'],_0x5ac6a0[_0x7b56a0(0x9e)])?(_0x264739[_0x7b56a0(0x157)]('['+_0x2b8677+_0x7b56a0(0x10e)+_0x1cedcc[_0x7b56a0(0x65)]+_0x7b56a0(0x105)+_0x55b06a[_0x7b56a0(0xd8)]+'\x20error\x20:\x20'+_0x1f1aee[_0x7b56a0(0x156)]),_0x994300[_0x7b56a0(0x156)]&&_0x484aa9[_0x7b56a0(0x156)](_0x7b56a0(0x81)+_0xca3782[_0x7b56a0(0x156)][_0x7b56a0(0x122)])):_0xb26608=_0x4254e5;}else _0x2bf321+='Cluster\x20'+_0x5da6df[_0x7b56a0(0xc6)]+'\x20'+(_0x3f51a7?_0x5ac6a0[_0x7b56a0(0x14a)]:_0x5ac6a0[_0x7b56a0(0x10c)])+'\x0a\x0a';}else _0x5ac6a0[_0x7b56a0(0xf0)](_0x5ac6a0[_0x7b56a0(0xe9)],_0x5ac6a0[_0x7b56a0(0xe9)])?_0x21ca25[_0x7b56a0(0x132)](_0x5ac6a0['rEMzT']):process[_0x7b56a0(0x13e)](0x1);const _0x4eaef5={};_0x4eaef5[_0x7b56a0(0xcf)]=WS_EVENTS['LOG'],_0x4eaef5['message']=_0x5ac6a0[_0x7b56a0(0xf8)],webSocketUtils['sendEventToBackend'](_0x57a61a,_0x4eaef5),global_registry[_0x7b56a0(0x146)]=_0xb26608[_0x7b56a0(0x146)],global_registry[_0x7b56a0(0x102)]=_0xb26608[_0x7b56a0(0xa9)],global_registry[_0x7b56a0(0xc6)]=_0xb26608[_0x7b56a0(0xc6)];}}else _0x5ac6a0[_0x7b56a0(0x108)](_0x5ac6a0[_0x7b56a0(0x12b)],_0x5ac6a0[_0x7b56a0(0x15a)])?(_0x5c57a5[_0x7b56a0(0x157)](_0x7b56a0(0x147)+_0x5e4476['CLOUD_PROVIDER']+'\x20'),_0x270662[_0x7b56a0(0x146)]=_0x15eed0[_0x7b56a0(0xf4)]):(logger[_0x7b56a0(0x156)](_0x5ac6a0[_0x7b56a0(0xd2)]),process[_0x7b56a0(0x13e)](0x1));}}}catch(_0x329182){_0x5ac6a0[_0x7b56a0(0xc5)](_0x5ac6a0['QPnfZ'],_0x5ac6a0[_0x7b56a0(0x11d)])?(_0x1d1b51=_0x7b56a0(0x121)+_0x329182+':\x20'+_0x329182[_0x7b56a0(0x122)],logger[_0x7b56a0(0x156)](_0x1d1b51),await _0x5ac6a0[_0x7b56a0(0x12e)](reportToGalactusAndSendToEDS,_0x4b4744,_0x57a61a,_0x1d1b51,messageTypes[_0x7b56a0(0x107)],_0x5ac6a0[_0x7b56a0(0x10a)],_0x5ac6a0[_0x7b56a0(0xde)],_0x5ac6a0[_0x7b56a0(0x99)]),process[_0x7b56a0(0x13e)](0x1)):_0x1dff06+=_0x7b56a0(0xce)+_0x6acbba['clusterName']+_0x7b56a0(0xb2);}}function printResponse(_0x1c5d43,_0x4ad5b2){const _0x3449a4=a17_0x4d0c3e,_0x532db0={};_0x532db0[_0x3449a4(0xa3)]=function(_0x418568,_0x6ab864){return _0x418568!==_0x6ab864;},_0x532db0[_0x3449a4(0x9d)]=_0x3449a4(0x106),_0x532db0['EFaOh']='YQrrg';const _0x307c05=_0x532db0;logger['info']('['+_0x1c5d43+_0x3449a4(0x10e)+_0x4ad5b2[_0x3449a4(0x65)]+_0x3449a4(0x105)+_0x4ad5b2[_0x3449a4(0xd8)]+_0x3449a4(0xb1)+_0x4ad5b2[_0x3449a4(0x156)]),_0x4ad5b2[_0x3449a4(0x156)]&&(_0x307c05[_0x3449a4(0xa3)](_0x307c05['azorM'],_0x307c05['EFaOh'])?logger[_0x3449a4(0x156)](_0x3449a4(0x81)+_0x4ad5b2['error'][_0x3449a4(0x122)]):_0x1c22f1=_0x484f7f);}async function generateReport(_0x4fab37,_0x4d9dc0){const _0x9c098c=a17_0x4d0c3e,_0x25f241={'BnXdk':function(_0x41b590,_0x275438){return _0x41b590+_0x275438;},'jvwMO':'Success','lxIAh':'Failure','kRQme':function(_0x1c152b,_0x5a83e8){return _0x1c152b||_0x5a83e8;},'gUQeY':_0x9c098c(0x142),'orfpm':_0x9c098c(0x12f),'tHfOQ':_0x9c098c(0xe0),'bISdJ':function(_0x28ba5f,_0x3f113f){return _0x28ba5f!=_0x3f113f;},'xNrSI':'is\x20already\x20present','SVdre':'will\x20be\x20created','vzzTF':function(_0x594236){return _0x594236();}};let _0x5714ea=_0x9c098c(0xf2)+global_registry[_0x9c098c(0x146)]+'\x20===\x0a\x0a';return _0x4fab37[_0x9c098c(0xd1)]((_0x108ac4,_0x16ba09)=>{const _0x164dfa=_0x9c098c,{header:_0x206f1f,response:_0x1105ba}=_0x108ac4,{status:_0x102b57,data:_0x2d1250,error:_0x2cd915}=_0x1105ba;_0x5714ea+=_0x206f1f+'\x20#'+_0x25f241[_0x164dfa(0x7f)](_0x16ba09,0x1)+'\x0a',_0x5714ea+='Status:\x20'+(_0x102b57?_0x25f241[_0x164dfa(0x125)]:_0x25f241[_0x164dfa(0xab)])+'\x0a',_0x5714ea+='Message:\x20'+_0x25f241['kRQme'](_0x2d1250,_0x25f241[_0x164dfa(0x119)])+'\x0a',_0x2cd915&&(_0x5714ea+=_0x25f241['orfpm'],_0x5714ea+=_0x164dfa(0xc7)+(_0x2cd915['message']||_0x25f241[_0x164dfa(0x119)])+'\x0a',_0x5714ea+=_0x164dfa(0x75)+(_0x2cd915[_0x164dfa(0xfa)]||_0x25f241['gUQeY'])+'\x0a',_0x5714ea+=_0x164dfa(0x127)+(_0x2cd915[_0x164dfa(0x122)]||_0x25f241[_0x164dfa(0x119)])+'\x0a'),_0x5714ea+='\x0a\x0a';}),_0x5714ea+=_0x25f241[_0x9c098c(0x149)],_0x25f241[_0x9c098c(0xa0)](_0x4d9dc0,null)?_0x5714ea+='Cluster\x20'+global_registry[_0x9c098c(0xc6)]+'\x20'+(_0x4d9dc0?_0x25f241[_0x9c098c(0xae)]:_0x25f241[_0x9c098c(0x153)])+'\x0a\x0a':_0x5714ea+='Cluster\x20'+global_registry[_0x9c098c(0xc6)]+_0x9c098c(0xb2),_0x5714ea+=_0x25f241[_0x9c098c(0x13b)](getSystemMetaData),_0x5714ea;};exports[a17_0x4d0c3e(0x111)]=async function(_0x11d877){const _0x14aaf4=a17_0x4d0c3e,_0x50b98e={'iagvZ':function(_0x1c01ad){return _0x1c01ad();},'ONQgE':function(_0x35ad64){return _0x35ad64();},'kPxsw':_0x14aaf4(0xdc),'hQqWw':function(_0x5919a3,_0x1242ae,_0x5b44ba,_0xee2d94,_0x352b9d,_0x1a3f8f,_0x16fbe8,_0x3c63ab){return _0x5919a3(_0x1242ae,_0x5b44ba,_0xee2d94,_0x352b9d,_0x1a3f8f,_0x16fbe8,_0x3c63ab);},'pkRqt':_0x14aaf4(0x98),'TEbJQ':'credential-not-found','QUwgZ':_0x14aaf4(0x156),'XBiAF':function(_0x4bbe10,_0x1a1f61,_0x4da092,_0x2c7216,_0x2ef44e,_0x538b8d,_0x47e6ae){return _0x4bbe10(_0x1a1f61,_0x4da092,_0x2c7216,_0x2ef44e,_0x538b8d,_0x47e6ae);},'EtjPd':function(_0x1d814f){return _0x1d814f();},'VMAnO':'<UsernamePlaceholder>','MGRXy':'<PasswordPlaceholder>','swmPC':function(_0xec387d,_0x193441,_0x2acde2){return _0xec387d(_0x193441,_0x2acde2);},'OUhjI':function(_0x29f574,_0x784177,_0x2fea1f,_0x2dcda0,_0x37af76,_0x1b99ba,_0x40abb2){return _0x29f574(_0x784177,_0x2fea1f,_0x2dcda0,_0x37af76,_0x1b99ba,_0x40abb2);},'SyPvJ':_0x14aaf4(0xc4),'ogPHR':function(_0x6a3890,_0x56a511,_0x21e152){return _0x6a3890(_0x56a511,_0x21e152);},'Tduuu':'toolInstalledResp','aMiBd':'2|0|1|3|4','KwooE':function(_0x1d1e10,_0x18c62b,_0x284bf6,_0x2e120a,_0x1a70e4,_0xd14c06,_0xa31c64,_0x18c7e7){return _0x1d1e10(_0x18c62b,_0x284bf6,_0x2e120a,_0x1a70e4,_0xd14c06,_0xa31c64,_0x18c7e7);},'ttIFZ':_0x14aaf4(0xd5),'oMHBg':function(_0x2242e4){return _0x2242e4();},'upfNB':function(_0x479abe,_0x2c0847,_0x296f9b){return _0x479abe(_0x2c0847,_0x296f9b);},'wCoTN':_0x14aaf4(0xf7),'MVGwC':function(_0x5e8b0d,_0x1b7e7f){return _0x5e8b0d(_0x1b7e7f);},'msEFo':_0x14aaf4(0x137),'TQmZC':_0x14aaf4(0xe4),'CRGxa':_0x14aaf4(0xa6),'jUBMl':_0x14aaf4(0x15f),'sBDCR':_0x14aaf4(0x117),'EvLFB':_0x14aaf4(0x141),'HsYff':function(_0x5e0064,_0x4ce622,_0x311262){return _0x5e0064(_0x4ce622,_0x311262);},'yQPNh':function(_0x3332ec,_0x4c088c){return _0x3332ec+_0x4c088c;},'HBUSE':_0x14aaf4(0x6f),'ojdLx':_0x14aaf4(0x13f)};let _0x4c2b8c,_0x11cc11;try{global_registry['requestId']=_0x50b98e[_0x14aaf4(0x90)](uuidv4);!fs['existsSync'](_0x50b98e[_0x14aaf4(0x88)](getCredentialsPath))&&(_0x11cc11=_0x50b98e[_0x14aaf4(0xb0)],logger[_0x14aaf4(0x156)](_0x11cc11),await _0x50b98e[_0x14aaf4(0xb7)](reportToGalactusAndSendToEDS,_0x11d877,_0x4c2b8c,_0x11cc11,messageTypes[_0x14aaf4(0x107)],_0x50b98e[_0x14aaf4(0x76)],_0x50b98e['TEbJQ'],_0x50b98e[_0x14aaf4(0x95)]),process[_0x14aaf4(0x13e)](0x1));_0x50b98e['XBiAF'](sendInstrumentationEvent,_0x11d877,_0x50b98e['pkRqt'],messageTypes[_0x14aaf4(0x145)],null,null,_0x11d877);const _0x36ec20=JSON[_0x14aaf4(0x8e)](fs[_0x14aaf4(0xa1)](_0x50b98e[_0x14aaf4(0x114)](getCredentialsPath)));global_registry[_0x14aaf4(0xa8)]=_0x36ec20['Browserstack'][_0x14aaf4(0xed)],global_registry[_0x14aaf4(0x135)]=_0x36ec20[_0x14aaf4(0x15d)][_0x14aaf4(0x148)];const _0x39e131=WS_ENDPOINT[_0x14aaf4(0x124)](_0x50b98e[_0x14aaf4(0x15c)],_0x36ec20[_0x14aaf4(0x15d)][_0x14aaf4(0xed)])[_0x14aaf4(0x124)](_0x50b98e[_0x14aaf4(0xb3)],_0x36ec20[_0x14aaf4(0x15d)][_0x14aaf4(0x148)]),_0x5a4be7={};_0x5a4be7['WebSocket']=ws,_0x5a4be7[_0x14aaf4(0xeb)]=0x36ee80,_0x4c2b8c=new ReconnectingWebSocket(_0x39e131,[],_0x5a4be7),global_registry['authHeader']=_0x50b98e['swmPC'](getAuthHeader,global_registry[_0x14aaf4(0xa8)],global_registry[_0x14aaf4(0x135)]),await _0x50b98e['swmPC'](inputValidation,_0x11d877,_0x4c2b8c),logger[_0x14aaf4(0x157)](_0x14aaf4(0xcc)+global_registry[_0x14aaf4(0x146)]+_0x14aaf4(0xfe)+global_registry[_0x14aaf4(0x102)]);let _0x2661a7=await _0x50b98e[_0x14aaf4(0x84)](getCloudProviderObjectWithOutInit,global_registry[_0x14aaf4(0x146)],global_registry[_0x14aaf4(0xc6)],_0x50b98e['SyPvJ'],_0x4c2b8c,webSocketUtils,_0x11d877);const _0x226e23=await _0x2661a7['isCliToolInstalled']();_0x50b98e[_0x14aaf4(0xf3)](printResponse,_0x50b98e['Tduuu'],_0x226e23),_0x2661a7=await _0x2661a7[_0x14aaf4(0x130)]();let _0x5015b1=![];try{_0x5015b1=await _0x2661a7[_0x14aaf4(0x110)]();}catch(_0x4cfb1c){const _0x354679=_0x50b98e[_0x14aaf4(0xd3)][_0x14aaf4(0x10f)]('|');let _0x4017d5=0x0;while(!![]){switch(_0x354679[_0x4017d5++]){case'0':_0x5015b1=null;continue;case'1':logger[_0x14aaf4(0x156)](_0x11cc11);continue;case'2':_0x11cc11='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x14aaf4(0xc6)]+_0x14aaf4(0x100)+global_registry[_0x14aaf4(0x102)]+_0x14aaf4(0xda)+_0x4cfb1c;continue;case'3':_0x11cc11+='\x0a'+JSON[_0x14aaf4(0xb6)](_0x4cfb1c[_0x14aaf4(0x122)]);continue;case'4':await _0x50b98e['KwooE'](reportToGalactusAndSendToEDS,_0x11d877,_0x4c2b8c,_0x11cc11,messageTypes[_0x14aaf4(0x107)],_0x50b98e[_0x14aaf4(0x76)],'cluster-check-failed-'+global_registry[_0x14aaf4(0x146)],_0x50b98e[_0x14aaf4(0x95)]);continue;}break;}}_0x5015b1&&logger['info']('Cluster\x20`'+global_registry[_0x14aaf4(0xc6)]+'`\x20already\x20exists');const _0x3e3b55=await _0x2661a7[_0x14aaf4(0x72)]();_0x50b98e[_0x14aaf4(0xf3)](printResponse,_0x50b98e[_0x14aaf4(0x68)],_0x3e3b55);const _0x45cd98=await _0x50b98e[_0x14aaf4(0x97)](curlRequest);_0x50b98e['upfNB'](printResponse,_0x50b98e[_0x14aaf4(0xec)],_0x45cd98);const _0x1b2d44=await _0x50b98e['MVGwC'](isTlsSupported,_0x50b98e['msEFo']);_0x50b98e[_0x14aaf4(0xf3)](printResponse,_0x50b98e[_0x14aaf4(0x133)],_0x1b2d44);const _0x4004e6={};_0x4004e6[_0x14aaf4(0xbe)]=_0x50b98e['CRGxa'],_0x4004e6[_0x14aaf4(0xe1)]=_0x226e23;const _0x259a12={};_0x259a12['header']=_0x50b98e[_0x14aaf4(0xdf)],_0x259a12['response']=_0x3e3b55;const _0x484a1a={};_0x484a1a[_0x14aaf4(0xbe)]=_0x50b98e[_0x14aaf4(0xef)],_0x484a1a['response']=_0x45cd98;const _0x209709={};_0x209709[_0x14aaf4(0xbe)]=_0x50b98e[_0x14aaf4(0x83)],_0x209709[_0x14aaf4(0xe1)]=_0x1b2d44;const _0x2a75d7=[_0x4004e6,_0x259a12,_0x484a1a,_0x209709],_0x1dafeb=await _0x50b98e['HsYff'](generateReport,_0x2a75d7,_0x5015b1),_0x59aab4=new Date(),_0x5a2579=_0x59aab4[_0x14aaf4(0x14c)]()+'_'+_0x50b98e[_0x14aaf4(0x73)](_0x59aab4['getUTCMonth'](),0x1)+'_'+_0x59aab4[_0x14aaf4(0x138)]()+'_'+_0x59aab4[_0x14aaf4(0x7e)]()+'_'+_0x59aab4[_0x14aaf4(0xc8)](),_0x4fb2d6=_0x14aaf4(0x139)+_0x5a2579+_0x14aaf4(0xfc);fs[_0x14aaf4(0x11b)](_0x4fb2d6,_0x1dafeb,_0x50b98e[_0x14aaf4(0x104)]),logger[_0x14aaf4(0x157)](_0x14aaf4(0x10b)+_0x4fb2d6),process[_0x14aaf4(0x13e)](0x0);}catch(_0x324d2c){let _0x536670=_0x14aaf4(0xb5)+_0x324d2c+'\x20';logger[_0x14aaf4(0x156)](_0x536670),_0x536670+='\x0a'+JSON[_0x14aaf4(0xb6)](_0x324d2c[_0x14aaf4(0x122)]),logger[_0x14aaf4(0x94)](_0x14aaf4(0x109)+_0x324d2c[_0x14aaf4(0x122)]);if(_0x4c2b8c){const _0x333165={};_0x333165[_0x14aaf4(0xcf)]=WS_EVENTS['LOG'],_0x333165[_0x14aaf4(0x93)]=_0x536670,webSocketUtils['sendEventToBackend'](_0x4c2b8c,_0x333165,_0x50b98e['QUwgZ'],!![]);}await webSocketUtils[_0x14aaf4(0xc1)](0x7d0);const _0x4ec1a0={};_0x4ec1a0[_0x14aaf4(0x156)]=_0x536670,await _0x50b98e[_0x14aaf4(0x84)](sendInstrumentationEvent,_0x11d877,_0x50b98e[_0x14aaf4(0x76)],messageTypes[_0x14aaf4(0x107)],_0x50b98e['ojdLx'],_0x4ec1a0,_0x11d877),process[_0x14aaf4(0x13e)](0x1);}};
1
+ const a17_0x26212b=a17_0x1576;function a17_0x3430(){const _0x296444=['unable\x20to\x20verify\x20if\x20cluster\x20`','AuCYa','rnreR','../../config/constants','isTrialGridAccessible','toolInstalledResp','tsGhT','help','uNvLx','length','hezLk','ekTwA','zzyBy','pre-check-cluster-args-not-passed','hsqfN','ejzIm','SSL\x20Configured','writeFileSync','reconnecting-websocket','WUHrX','Success','dSMQu','getUTCDate','\x20\x20Stack:\x20','Failure','`\x20is\x20present\x20in\x20region\x20`','will\x20be\x20created','ERROR','LrXgb','1317632xKRFwK','yXfVQ','\x20\x20Code:\x20','QCZbQ','.\x20Please\x20provide\x20all\x20required\x20arguments.','gYTFR','Invalid\x20input.\x20grid\x20profiles:\x20','brkRF','KNryY','clusterName','description','LOG','mCOrc','rTJVl','pre-check-grid-called','Lcqif','stack','okCLK','QrDUz','pusOC','bWWbS','Error\x20Details:\x0a','TtXRG','BMoRL','TWATO','throwHttpErrors','UfRRA','OudBk','builder','string','status','Cluster\x20details\x0a-----------------------\x0a','RUBII','sendEventToBackend','find','clusterRegion','216252TvfPqo','YAvZS','command',']\x20status\x20:\x20','nUAip','usage','error','message','requestId','debug','QdfNS','parse','exit','QgwMk','rXzWM','Cluster\x20`','LoWSG','xXvub','Message:\x20','Cluster\x20','User\x20Access','UxIsY','vtOXI','INQGl','clNnd','GzrWe','DbXaQ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','code','Missing\x20required\x20arguments:\x20','checkAccess','pIjnp','RILIo','egsPW','kZogs','AprlT','stringify','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','UjAsF','toLowerCase','19745397iHIZjq','log/report_','xpvQU','ltLXI','===\x20Precheck\x20Report\x20-\x20','\x20\x20Message:\x20','region','header','push','eHrGc','stack\x20trace\x20','pvFXY','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','init','EebRy','YYkif','AKjoS','options','NxqGU','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Report\x20saved\x20in\x20','epilogue','3538IrVcYA','INFO','fIzOv','kpNwZ','Status:\x20','https://','replace','response','Whitelisted\x20browserstack','hESDo','error\x20stack\x20:\x20','vqLcS','kjcoH','YcJYf','bSXFJ','SzZDN','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Setting\x20cloud\x20provider\x20as\x20','bilRO','dummy-grid','yPIjP','username','QQBXL','inIzo','data','oAtTP','grid-profile','isTls1_2_SUPPORTED','hVDaV','WCUUV','NiPhY','nYzVW','Tool\x20Installed','WebSocket','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','IGdry','VwTIi','LeyKb','gmqGP','MuunG','../../utils/webSocketUtils','MXwVi','WvCHP','yLYtB','<UsernamePlaceholder>','pre-check-failed','cloud-provider','is\x20already\x20present','authHeader','QuyaX','kdQmX','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','QombM','argv','\x20===\x0a\x0a','746285hRKWew','AZMBT','oewmu','wWWdl','WimRb','TaxBD','utf-8','type','cloudProvider','cluster-name','pMJJv','pre_check','\x20error\x20:\x20','getUTCMonth','aPFWh','uuid','gridProfile','`\x20already\x20exists','getUTCMinutes','473571HxCTLA','../../cloudproviders/utils','crRiV','udLaW','CLOUD_PROVIDER','okehm','info','zCoGk','36GsnkiA','readFileSync','TfGNm','bstackAccesskey','got','\x20data\x20:\x20','KvjRV','split','yTuUp','grid\x20profile\x20flow\x20','WEYDw','getUTCHours','oGzrB','pwBHS','getUTCFullYear','../../utils/instrumentationUtils','SqCDY','mZpYl','wTeLo','Failed\x20in\x20pre-check!\x20Error:\x20','EOyHM','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rhmed','fjVuQ','MovMp','YIXlo','nfxsp','includes','VtaRT','vhVqj','bstackUsername','Browserstack','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','141ZIQXqM','Pre-check\x20running\x20for\x20Cloud\x20-\x20','dINbp','3788918CgUcMs','oYtrp','XhQaH','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','oiJpu','desc'];a17_0x3430=function(){return _0x296444;};return a17_0x3430();}(function(_0x29903f,_0x5868b7){const _0x107438=a17_0x1576,_0xb281ce=_0x29903f();while(!![]){try{const _0x17fbbc=-parseInt(_0x107438(0x20d))/0x1+-parseInt(_0x107438(0x2be))/0x2*(-parseInt(_0x107438(0x236))/0x3)+-parseInt(_0x107438(0x280))/0x4+parseInt(_0x107438(0x1fa))/0x5*(-parseInt(_0x107438(0x215))/0x6)+-parseInt(_0x107438(0x239))/0x7+parseInt(_0x107438(0x25c))/0x8+parseInt(_0x107438(0x2a8))/0x9;if(_0x17fbbc===_0x5868b7)break;else _0xb281ce['push'](_0xb281ce['shift']());}catch(_0x5d4c0e){_0xb281ce['push'](_0xb281ce['shift']());}}}(a17_0x3430,0x74892));const fs=require('fs'),ws=require('ws'),got=require(a17_0x26212b(0x219)),{v4:uuidv4}=require(a17_0x26212b(0x209)),ReconnectingWebSocket=require(a17_0x26212b(0x251)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x26212b(0x242)),{getCloudProviderObjectWithOutInit}=require(a17_0x26212b(0x20e)),webSocketUtils=require(a17_0x26212b(0x1eb)),{sendInstrumentationEvent}=require(a17_0x26212b(0x224));function a17_0x1576(_0x217b49,_0x2835cf){const _0x343052=a17_0x3430();return a17_0x1576=function(_0x1576e5,_0x1a04a){_0x1576e5=_0x1576e5-0x1e2;let _0x4d738a=_0x343052[_0x1576e5];return _0x4d738a;},a17_0x1576(_0x217b49,_0x2835cf);}exports[a17_0x26212b(0x282)]='grid',exports[a17_0x26212b(0x23e)]=a17_0x26212b(0x2a5),exports[a17_0x26212b(0x278)]=function(_0x5c2f2d){const _0x2707a0=a17_0x26212b,_0x14ce27={};_0x14ce27[_0x2707a0(0x2b1)]=_0x2707a0(0x22a),_0x14ce27['uNvLx']=_0x2707a0(0x279),_0x14ce27[_0x2707a0(0x210)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x14ce27[_0x2707a0(0x273)]=_0x2707a0(0x2b4),_0x14ce27[_0x2707a0(0x1f7)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x14ce27[_0x2707a0(0x2c0)]='help';const _0x35e0a4=_0x14ce27,_0xa869fc={};_0xa869fc['description']=_0x35e0a4[_0x2707a0(0x2b1)],_0xa869fc[_0x2707a0(0x201)]=_0x35e0a4[_0x2707a0(0x247)];const _0x5058da={};_0x5058da[_0x2707a0(0x266)]=_0x35e0a4[_0x2707a0(0x210)],_0x5058da[_0x2707a0(0x201)]=_0x35e0a4[_0x2707a0(0x247)];const _0x349a90={};_0x349a90[_0x2707a0(0x266)]=_0x35e0a4[_0x2707a0(0x273)],_0x349a90[_0x2707a0(0x201)]=_0x35e0a4['uNvLx'];const _0x3836b9={};_0x3836b9[_0x2707a0(0x266)]=_0x35e0a4[_0x2707a0(0x1f7)],_0x3836b9['type']=_0x35e0a4[_0x2707a0(0x247)];const _0x39bee6={};return _0x39bee6[_0x2707a0(0x203)]=_0xa869fc,_0x39bee6[_0x2707a0(0x1f1)]=_0x5058da,_0x39bee6[_0x2707a0(0x2ae)]=_0x349a90,_0x39bee6[_0x2707a0(0x2d8)]=_0x3836b9,_0x5c2f2d[_0x2707a0(0x285)](HELP_HEADER_MESSAGE['pre_check'])[_0x2707a0(0x2bd)](HELP_FOOTER_MESSAGE)[_0x2707a0(0x2b9)](_0x39bee6)[_0x2707a0(0x246)](_0x35e0a4['fIzOv'])[_0x2707a0(0x1f8)];};async function inputValidation(_0x28b84f,_0x39cee1){const _0x22830f=a17_0x26212b,_0x58b00f={'rhmed':_0x22830f(0x286),'kuzfW':function(_0x4e3938,_0x590ef6){return _0x4e3938+_0x590ef6;},'TtXRG':_0x22830f(0x253),'MXwVi':_0x22830f(0x257),'MCeFb':function(_0x33dbe1,_0x528405){return _0x33dbe1||_0x528405;},'vqLcS':'N/A','pwBHS':_0x22830f(0x271),'gmqGP':_0x22830f(0x2ae),'rXzWM':_0x22830f(0x1f2),'bWWbS':_0x22830f(0x259),'bSXFJ':_0x22830f(0x1f1),'oPxJP':_0x22830f(0x22a),'pusOC':_0x22830f(0x279),'XhQaH':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SzZDN':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','oiJpu':_0x22830f(0x29b),'tsGhT':'help','oewmu':_0x22830f(0x203),'rTJVl':_0x22830f(0x2ce),'QgwMk':function(_0x31dc74,_0x3d3441){return _0x31dc74===_0x3d3441;},'GUGXd':_0x22830f(0x268),'WEYDw':_0x22830f(0x1e6),'Lcqif':function(_0x2bd7c2,_0x117811){return _0x2bd7c2===_0x117811;},'ffJCp':_0x22830f(0x2c7),'WQUMn':'iHqoS','QCZbQ':_0x22830f(0x225),'xXvub':_0x22830f(0x2aa),'WCUUV':function(_0x340a58,_0x49154e){return _0x340a58===_0x49154e;},'MuunG':_0x22830f(0x214),'wTeLo':_0x22830f(0x229),'bilRO':function(_0x4fa3fa,_0x31034c){return _0x4fa3fa===_0x31034c;},'TaxBD':_0x22830f(0x2ab),'ekTwA':function(_0x57c212,_0xfbe27b){return _0x57c212>_0xfbe27b;},'inIzo':_0x22830f(0x263),'nUAip':_0x22830f(0x231),'euHAz':function(_0x109401,_0x46ab77,_0x5d29c3,_0x33d866,_0x35d8aa,_0x5842a3,_0x566c6d,_0xab11fa){return _0x109401(_0x46ab77,_0x5d29c3,_0x33d866,_0x35d8aa,_0x5842a3,_0x566c6d,_0xab11fa);},'AZMBT':'pre-check-grid-called','WimRb':_0x22830f(0x24c),'clNnd':_0x22830f(0x254),'GzrWe':'YBGxs','hsqfN':_0x22830f(0x2bb),'pPTgG':function(_0x3e61f0,_0x104e15,_0x34c837,_0x55516f,_0x62c798,_0x4237c1,_0x3a5719,_0x4d3ac2){return _0x3e61f0(_0x104e15,_0x34c837,_0x55516f,_0x62c798,_0x4237c1,_0x3a5719,_0x4d3ac2);},'fjVuQ':'cloud-provider-not-supported','DbXaQ':function(_0x37b4e8,_0x464413){return _0x37b4e8!==_0x464413;},'yTuUp':_0x22830f(0x226),'VwTIi':'FJNFI','AKjoS':_0x22830f(0x2c1),'vRcdp':_0x22830f(0x249),'TWATO':'GET','ejzIm':function(_0x49a48b,_0x55cbf4,_0x3f0614){return _0x49a48b(_0x55cbf4,_0x3f0614);},'UjAsF':function(_0xc6cf39,_0x5485ad,_0x4414d4,_0x1b741,_0x925d0a,_0x1a42a3){return _0xc6cf39(_0x5485ad,_0x4414d4,_0x1b741,_0x925d0a,_0x1a42a3);},'oGzrB':'pre-check','OudBk':_0x22830f(0x2d8),'yktgb':function(_0x2d56f2,_0x1bdcc2){return _0x2d56f2===_0x1bdcc2;},'YYkif':function(_0x440b74,_0x4062d8){return _0x440b74!==_0x4062d8;},'oYtrp':_0x22830f(0x276),'WvCHP':function(_0xdef13d,_0x53a304){return _0xdef13d(_0x53a304);},'hVDaV':function(_0x4e4fd1,_0x1598cc){return _0x4e4fd1===_0x1598cc;},'LMUFA':'JBOIa','SlpYB':function(_0x32b927,_0x3f8ee3,_0x5cc30c,_0x515383,_0x4e6bdc,_0x47cdcd,_0x53c3a6,_0x1dd873){return _0x32b927(_0x3f8ee3,_0x5cc30c,_0x515383,_0x4e6bdc,_0x47cdcd,_0x53c3a6,_0x1dd873);},'pMJJv':'pre-check-grid-profile-empty','okehm':_0x22830f(0x296),'yPIjP':_0x22830f(0x22e),'WzyDt':_0x22830f(0x264),'NhRnN':'Grid\x20profile\x20fetched\x20for\x20pre-check','LeyKb':function(_0x375563,_0x213d96){return _0x375563!==_0x213d96;},'WUHrX':_0x22830f(0x25b),'yXfVQ':function(_0x1ee539,_0x10bcd6){return _0x1ee539!==_0x10bcd6;},'BtBMF':'QeeFZ','QrDUz':'IHWKS'};let _0x466459;try{if(_0x58b00f[_0x22830f(0x28d)](_0x58b00f['GUGXd'],_0x58b00f[_0x22830f(0x21f)])){const _0x2fad01={};_0x2fad01[_0x22830f(0x201)]=_0x2867ba[_0x22830f(0x267)],_0x2fad01[_0x22830f(0x287)]=_0x3539d6,_0x2a5db7[_0x22830f(0x27d)](_0x546d20,_0x2fad01,_0x58b00f[_0x22830f(0x22b)],!![]);}else{if(_0x28b84f[_0x22830f(0x265)]||_0x28b84f[_0x22830f(0x202)]||_0x28b84f[_0x22830f(0x2ae)]){if(_0x58b00f[_0x22830f(0x26b)](_0x58b00f['ffJCp'],_0x58b00f['WQUMn'])){const {header:_0x1b1e0a,response:_0x4258cb}=_0x5108eb,{status:_0x4cbfd9,data:_0x57669c,error:_0x376884}=_0x4258cb;_0x50af30+=_0x1b1e0a+'\x20#'+_0x58b00f['kuzfW'](_0x242551,0x1)+'\x0a',_0x1ee43a+=_0x22830f(0x2c2)+(_0x4cbfd9?_0x58b00f[_0x22830f(0x272)]:_0x58b00f[_0x22830f(0x1ec)])+'\x0a',_0x69f135+=_0x22830f(0x292)+_0x58b00f['MCeFb'](_0x57669c,_0x58b00f[_0x22830f(0x2c9)])+'\x0a',_0x376884&&(_0x372308+=_0x58b00f[_0x22830f(0x222)],_0x35107a+='\x20\x20Message:\x20'+(_0x376884[_0x22830f(0x287)]||_0x58b00f[_0x22830f(0x2c9)])+'\x0a',_0x1bc6c8+='\x20\x20Code:\x20'+(_0x376884[_0x22830f(0x29c)]||_0x58b00f[_0x22830f(0x2c9)])+'\x0a',_0x4b744a+=_0x22830f(0x256)+(_0x376884[_0x22830f(0x26c)]||_0x58b00f[_0x22830f(0x2c9)])+'\x0a'),_0x1a6b3a+='\x0a\x0a';}else{const _0x3a5294=[];!_0x28b84f[_0x22830f(0x265)]&&(_0x58b00f['QgwMk'](_0x58b00f[_0x22830f(0x25f)],_0x58b00f[_0x22830f(0x291)])?_0x405e4d[_0x22830f(0x2b0)](_0x58b00f['gmqGP']):_0x3a5294[_0x22830f(0x2b0)](_0x58b00f[_0x22830f(0x1fc)]));;!_0x28b84f[_0x22830f(0x202)]&&(_0x58b00f[_0x22830f(0x2db)](_0x58b00f[_0x22830f(0x1ea)],_0x58b00f[_0x22830f(0x227)])?_0x2e7689[_0x22830f(0x286)](_0x22830f(0x2c8)+_0xe00c92[_0x22830f(0x286)][_0x22830f(0x26c)]):_0x3a5294[_0x22830f(0x2b0)](_0x58b00f[_0x22830f(0x2cc)]));;!_0x28b84f['region']&&(_0x58b00f[_0x22830f(0x2d0)](_0x58b00f[_0x22830f(0x1ff)],_0x58b00f[_0x22830f(0x1ff)])?_0x3a5294['push'](_0x58b00f[_0x22830f(0x1e9)]):_0x11b993=_0x56a9a5);;_0x58b00f[_0x22830f(0x24a)](_0x3a5294[_0x22830f(0x248)],0x0)&&(_0x58b00f['WCUUV'](_0x58b00f[_0x22830f(0x2d5)],_0x58b00f[_0x22830f(0x284)])?_0x54777f[_0x22830f(0x28c)](0x1):(_0x466459=_0x22830f(0x29d)+_0x3a5294['join'](',\x20')+_0x22830f(0x260),await _0x58b00f['euHAz'](reportToGalactusAndSendToEDS,_0x28b84f,_0x39cee1,_0x466459,messageTypes[_0x22830f(0x25a)],_0x58b00f[_0x22830f(0x1fb)],_0x58b00f[_0x22830f(0x1fe)],_0x58b00f[_0x22830f(0x22b)]),logger[_0x22830f(0x286)](_0x466459),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x22830f(0x230)](_0x28b84f['cloudProvider'][_0x22830f(0x2a7)]())&&(_0x58b00f[_0x22830f(0x2d0)](_0x58b00f[_0x22830f(0x298)],_0x58b00f[_0x22830f(0x299)])?_0x1da5da[_0x22830f(0x213)](_0x22830f(0x28f)+_0xeee3ad[_0x22830f(0x265)]+'`\x20already\x20exists'):(_0x466459=_0x58b00f[_0x22830f(0x24d)],await _0x58b00f['pPTgG'](reportToGalactusAndSendToEDS,_0x28b84f,_0x39cee1,_0x466459,messageTypes[_0x22830f(0x25a)],_0x58b00f[_0x22830f(0x1fb)],_0x58b00f[_0x22830f(0x22c)],_0x58b00f['rhmed']),logger[_0x22830f(0x286)](_0x466459),!_0x28b84f[_0x22830f(0x202)]&&(_0x58b00f[_0x22830f(0x29a)](_0x58b00f[_0x22830f(0x21d)],_0x58b00f[_0x22830f(0x1e7)])?(logger[_0x22830f(0x213)](_0x22830f(0x2cf)+DEFAULT_CLUSTER_DETAILS[_0x22830f(0x211)]+'\x20'),_0x28b84f[_0x22830f(0x202)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):(_0x40841e['info']('['+_0x36ff54+_0x22830f(0x283)+_0x142838[_0x22830f(0x27a)]+_0x22830f(0x21a)+_0x43b819[_0x22830f(0x2d6)]+_0x22830f(0x206)+_0x235ed0['error']),_0x47af89['error']&&_0xfd4c79[_0x22830f(0x286)]('error\x20stack\x20:\x20'+_0x259395[_0x22830f(0x286)][_0x22830f(0x26c)]))))),global_registry[_0x22830f(0x265)]=_0x28b84f['clusterName'],global_registry['cloudProvider']=_0x28b84f['cloudProvider'],global_registry[_0x22830f(0x27f)]=_0x28b84f[_0x22830f(0x2ae)];}}else{if(_0x28b84f[_0x22830f(0x20a)]){if(_0x58b00f['Lcqif'](_0x58b00f[_0x22830f(0x2b8)],_0x58b00f['vRcdp']))_0x563457+=_0x22830f(0x293)+_0x550d46[_0x22830f(0x265)]+'\x20'+(_0x767fd?_0x58b00f[_0x22830f(0x28e)]:_0x58b00f[_0x22830f(0x270)])+'\x0a\x0a';else{global_registry['gridProfile']=_0x28b84f[_0x22830f(0x20a)],logger['debug'](_0x22830f(0x21e)+_0x28b84f[_0x22830f(0x20a)]);const _0x41e761=_0x22830f(0x2c3)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x1a509c={};_0x1a509c['method']=_0x58b00f[_0x22830f(0x274)],_0x1a509c['headers']=global_registry[_0x22830f(0x1f3)],_0x1a509c[_0x22830f(0x275)]=![];const _0x253043=_0x1a509c,_0x231061=await _0x58b00f[_0x22830f(0x24e)](got,_0x41e761,_0x253043),_0x20666d=await _0x58b00f[_0x22830f(0x2a6)](responseValidation,_0x231061,_0x58b00f[_0x22830f(0x221)],_0x58b00f[_0x22830f(0x277)],_0x28b84f,_0x39cee1);let _0x2843f5={};if(_0x58b00f['yktgb'](_0x20666d,0xc8)){if(_0x58b00f[_0x22830f(0x2b7)](_0x58b00f['oYtrp'],_0x58b00f[_0x22830f(0x23a)]))_0x199db9['push'](_0x58b00f['bSXFJ']);else{const _0x572f68=JSON[_0x22830f(0x28b)](_0x231061['body']),_0x4ef8b3=_0x572f68[_0x22830f(0x27e)](_0x4d92ce=>_0x4d92ce['name']===_0x28b84f['gridProfile'])||null;if(_0x58b00f[_0x22830f(0x1ed)](isUndefined,_0x4ef8b3)){if(_0x58b00f[_0x22830f(0x2da)](_0x58b00f['LMUFA'],_0x58b00f['LMUFA']))_0x466459=_0x22830f(0x262)+_0x28b84f[_0x22830f(0x20a)]+_0x22830f(0x23c),await _0x58b00f['SlpYB'](reportToGalactusAndSendToEDS,_0x28b84f,_0x39cee1,_0x466459,messageTypes['ERROR'],_0x58b00f[_0x22830f(0x1fb)],_0x58b00f[_0x22830f(0x204)],_0x58b00f[_0x22830f(0x22b)]),logger['error'](_0x466459),process[_0x22830f(0x28c)](0x1);else{const _0x38c6b8={};_0x38c6b8[_0x22830f(0x266)]=_0x58b00f['oPxJP'],_0x38c6b8[_0x22830f(0x201)]=_0x58b00f[_0x22830f(0x26f)];const _0x1eec40={};_0x1eec40[_0x22830f(0x266)]=_0x58b00f[_0x22830f(0x23b)],_0x1eec40[_0x22830f(0x201)]=_0x58b00f['pusOC'];const _0x14fbb5={};_0x14fbb5['description']=_0x58b00f[_0x22830f(0x2cd)],_0x14fbb5[_0x22830f(0x201)]=_0x58b00f[_0x22830f(0x26f)];const _0x501e4c={};_0x501e4c[_0x22830f(0x266)]=_0x58b00f[_0x22830f(0x23d)],_0x501e4c[_0x22830f(0x201)]=_0x58b00f['pusOC'];const _0x52a9c4={};return _0x52a9c4[_0x22830f(0x203)]=_0x38c6b8,_0x52a9c4['cloud-provider']=_0x1eec40,_0x52a9c4[_0x22830f(0x2ae)]=_0x14fbb5,_0x52a9c4[_0x22830f(0x2d8)]=_0x501e4c,_0x64f4d[_0x22830f(0x285)](_0xd9ad8d[_0x22830f(0x205)])[_0x22830f(0x2bd)](_0x1997ff)[_0x22830f(0x2b9)](_0x52a9c4)[_0x22830f(0x246)](_0x58b00f[_0x22830f(0x245)])['argv'];}}else _0x58b00f[_0x22830f(0x26b)](_0x58b00f[_0x22830f(0x212)],_0x58b00f[_0x22830f(0x212)])?_0x2843f5=_0x4ef8b3:_0x282e86[_0x22830f(0x2b0)](_0x58b00f['oewmu']);}}else _0x58b00f[_0x22830f(0x2b7)](_0x58b00f[_0x22830f(0x2d2)],_0x58b00f['WzyDt'])?process[_0x22830f(0x28c)](0x1):(_0x2f1da9+=_0x58b00f[_0x22830f(0x222)],_0x46c004+=_0x22830f(0x2ad)+(_0x56babd['message']||_0x58b00f[_0x22830f(0x2c9)])+'\x0a',_0x3b2ae0+=_0x22830f(0x25e)+(_0x2cb999[_0x22830f(0x29c)]||_0x58b00f[_0x22830f(0x2c9)])+'\x0a',_0x32144b+=_0x22830f(0x256)+(_0x5f4df0[_0x22830f(0x26c)]||_0x58b00f['vqLcS'])+'\x0a');const _0x427fd2={};_0x427fd2['type']=WS_EVENTS['LOG'],_0x427fd2['message']=_0x58b00f['NhRnN'],webSocketUtils[_0x22830f(0x27d)](_0x39cee1,_0x427fd2),global_registry[_0x22830f(0x202)]=_0x2843f5[_0x22830f(0x202)],global_registry[_0x22830f(0x27f)]=_0x2843f5[_0x22830f(0x2ae)],global_registry['clusterName']=_0x2843f5[_0x22830f(0x265)];}}else _0x58b00f[_0x22830f(0x1e8)](_0x58b00f[_0x22830f(0x252)],_0x58b00f[_0x22830f(0x252)])?(_0x5086d4[_0x22830f(0x213)]('Setting\x20cloud\x20provider\x20as\x20'+_0x3c4812['CLOUD_PROVIDER']+'\x20'),_0x16b2f5[_0x22830f(0x202)]=_0x19c9ac[_0x22830f(0x211)]):(logger[_0x22830f(0x286)](_0x58b00f[_0x22830f(0x269)]),process[_0x22830f(0x28c)](0x1));}}}catch(_0xc0204c){_0x58b00f[_0x22830f(0x25d)](_0x58b00f['BtBMF'],_0x58b00f[_0x22830f(0x26e)])?(_0x466459=_0x22830f(0x1f6)+_0xc0204c+':\x20'+_0xc0204c[_0x22830f(0x26c)],logger[_0x22830f(0x286)](_0x466459),await _0x58b00f['pPTgG'](reportToGalactusAndSendToEDS,_0x28b84f,_0x39cee1,_0x466459,messageTypes['ERROR'],_0x58b00f['AZMBT'],_0x58b00f[_0x22830f(0x22c)],_0x58b00f[_0x22830f(0x22b)]),process[_0x22830f(0x28c)](0x1)):(_0x224292[_0x22830f(0x286)](_0x58b00f[_0x22830f(0x269)]),_0x595790[_0x22830f(0x28c)](0x1));}}function printResponse(_0x31b88f,_0x3f37b2){const _0x3b4ae4=a17_0x26212b,_0x4167bb={};_0x4167bb[_0x3b4ae4(0x2a2)]=function(_0x4acb2b,_0x32d15d){return _0x4acb2b===_0x32d15d;},_0x4167bb[_0x3b4ae4(0x1e2)]=_0x3b4ae4(0x2dc);const _0x2ec556=_0x4167bb;logger['info']('['+_0x31b88f+_0x3b4ae4(0x283)+_0x3f37b2[_0x3b4ae4(0x27a)]+_0x3b4ae4(0x21a)+_0x3f37b2[_0x3b4ae4(0x2d6)]+_0x3b4ae4(0x206)+_0x3f37b2['error']),_0x3f37b2[_0x3b4ae4(0x286)]&&(_0x2ec556[_0x3b4ae4(0x2a2)](_0x2ec556[_0x3b4ae4(0x1e2)],_0x2ec556[_0x3b4ae4(0x1e2)])?logger[_0x3b4ae4(0x286)]('error\x20stack\x20:\x20'+_0x3f37b2['error'][_0x3b4ae4(0x26c)]):_0x475283+=_0x3b4ae4(0x293)+_0x136298[_0x3b4ae4(0x265)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a');}async function generateReport(_0x5ca737,_0x2ced48){const _0x2f53e1=a17_0x26212b,_0x293925={'RUBII':function(_0x5354c4,_0x5dbd1b){return _0x5354c4+_0x5dbd1b;},'zzyBy':_0x2f53e1(0x253),'tLjKD':_0x2f53e1(0x257),'QdfNS':function(_0x532b67,_0x4324be){return _0x532b67||_0x4324be;},'INQGl':'N/A','QQBXL':_0x2f53e1(0x271),'JXmGd':_0x2f53e1(0x27b),'zToRQ':function(_0x2c0332,_0x47ac6d){return _0x2c0332!=_0x47ac6d;},'yLYtB':_0x2f53e1(0x1f2),'RILIo':_0x2f53e1(0x259),'hGjTg':function(_0x5e7c38){return _0x5e7c38();}};let _0xe0300b=_0x2f53e1(0x2ac)+global_registry[_0x2f53e1(0x202)]+_0x2f53e1(0x1f9);return _0x5ca737['forEach']((_0x18f389,_0x3713da)=>{const _0x2cee42=_0x2f53e1,{header:_0x442263,response:_0x306ceb}=_0x18f389,{status:_0x2a10b6,data:_0x26b751,error:_0x5b7f14}=_0x306ceb;_0xe0300b+=_0x442263+'\x20#'+_0x293925[_0x2cee42(0x27c)](_0x3713da,0x1)+'\x0a',_0xe0300b+=_0x2cee42(0x2c2)+(_0x2a10b6?_0x293925[_0x2cee42(0x24b)]:_0x293925['tLjKD'])+'\x0a',_0xe0300b+='Message:\x20'+_0x293925[_0x2cee42(0x28a)](_0x26b751,_0x293925[_0x2cee42(0x297)])+'\x0a',_0x5b7f14&&(_0xe0300b+=_0x293925[_0x2cee42(0x2d4)],_0xe0300b+=_0x2cee42(0x2ad)+(_0x5b7f14[_0x2cee42(0x287)]||_0x293925[_0x2cee42(0x297)])+'\x0a',_0xe0300b+='\x20\x20Code:\x20'+(_0x5b7f14[_0x2cee42(0x29c)]||_0x293925[_0x2cee42(0x297)])+'\x0a',_0xe0300b+=_0x2cee42(0x256)+(_0x5b7f14[_0x2cee42(0x26c)]||_0x293925[_0x2cee42(0x297)])+'\x0a'),_0xe0300b+='\x0a\x0a';}),_0xe0300b+=_0x293925['JXmGd'],_0x293925['zToRQ'](_0x2ced48,null)?_0xe0300b+=_0x2f53e1(0x293)+global_registry[_0x2f53e1(0x265)]+'\x20'+(_0x2ced48?_0x293925[_0x2f53e1(0x1ee)]:_0x293925[_0x2f53e1(0x2a0)])+'\x0a\x0a':_0xe0300b+=_0x2f53e1(0x293)+global_registry[_0x2f53e1(0x265)]+_0x2f53e1(0x235),_0xe0300b+=_0x293925['hGjTg'](getSystemMetaData),_0xe0300b;};exports['handler']=async function(_0x2975b5){const _0x35ff06=a17_0x26212b,_0x5e5498={'vhVqj':function(_0x585d53){return _0x585d53();},'okCLK':function(_0x20ffa3){return _0x20ffa3();},'pvFXY':_0x35ff06(0x1e5),'pIjnp':function(_0x32d929,_0x340c5e,_0x109dae,_0x33ed88,_0x302392,_0x239209,_0xc95c0f,_0x67c55c){return _0x32d929(_0x340c5e,_0x109dae,_0x33ed88,_0x302392,_0x239209,_0xc95c0f,_0x67c55c);},'NxqGU':_0x35ff06(0x26a),'YAvZS':'credential-not-found','rnreR':_0x35ff06(0x286),'aPFWh':function(_0x3508ed,_0x577403,_0x4b7364,_0x37b8fe,_0x988a5d,_0xd292a7,_0x4d4324){return _0x3508ed(_0x577403,_0x4b7364,_0x37b8fe,_0x988a5d,_0xd292a7,_0x4d4324);},'vqraD':function(_0x53d567){return _0x53d567();},'kjcoH':_0x35ff06(0x1ef),'QuyaX':'<PasswordPlaceholder>','dINbp':function(_0x1e5225,_0x449ff0,_0x4fe667){return _0x1e5225(_0x449ff0,_0x4fe667);},'UxIsY':_0x35ff06(0x2d1),'KvjRV':function(_0x59cc6b,_0x41f50a,_0x4c6441){return _0x59cc6b(_0x41f50a,_0x4c6441);},'MovMp':_0x35ff06(0x244),'nfxsp':'4|0|1|2|3','AprlT':function(_0x58c391,_0x487e46,_0x3ee509){return _0x58c391(_0x487e46,_0x3ee509);},'EebRy':'accessResp','dWXAd':function(_0x4045a8){return _0x4045a8();},'crRiV':function(_0x508802,_0x27cc3d,_0x2f7dd9){return _0x508802(_0x27cc3d,_0x2f7dd9);},'kdQmX':_0x35ff06(0x243),'Moxss':function(_0x55280a,_0x59f0c3){return _0x55280a(_0x59f0c3);},'wWWdl':'TLSv1_2_client_method','oAtTP':_0x35ff06(0x2d9),'jkCLF':_0x35ff06(0x1e3),'TfGNm':_0x35ff06(0x294),'sYCWH':_0x35ff06(0x2c6),'YcJYf':_0x35ff06(0x24f),'LoWSG':function(_0x1fce93,_0x275af0){return _0x1fce93+_0x275af0;},'AuCYa':_0x35ff06(0x200),'gYTFR':function(_0x2e8c68,_0x36faf2,_0x12ef48,_0x1a0d2c,_0x491f27,_0x101c1a,_0xb8d3b6){return _0x2e8c68(_0x36faf2,_0x12ef48,_0x1a0d2c,_0x491f27,_0x101c1a,_0xb8d3b6);},'egsPW':_0x35ff06(0x1f0)};let _0x42acce,_0x4499cb;try{global_registry[_0x35ff06(0x288)]=_0x5e5498[_0x35ff06(0x232)](uuidv4);!fs['existsSync'](_0x5e5498[_0x35ff06(0x26d)](getCredentialsPath))&&(_0x4499cb=_0x5e5498[_0x35ff06(0x2b3)],logger[_0x35ff06(0x286)](_0x4499cb),await _0x5e5498[_0x35ff06(0x29f)](reportToGalactusAndSendToEDS,_0x2975b5,_0x42acce,_0x4499cb,messageTypes['ERROR'],_0x5e5498[_0x35ff06(0x2ba)],_0x5e5498[_0x35ff06(0x281)],_0x5e5498[_0x35ff06(0x241)]),process[_0x35ff06(0x28c)](0x1));_0x5e5498[_0x35ff06(0x208)](sendInstrumentationEvent,_0x2975b5,_0x5e5498[_0x35ff06(0x2ba)],messageTypes[_0x35ff06(0x2bf)],null,null,_0x2975b5);const _0x4fea62=JSON[_0x35ff06(0x28b)](fs[_0x35ff06(0x216)](_0x5e5498['vqraD'](getCredentialsPath)));global_registry[_0x35ff06(0x233)]=_0x4fea62[_0x35ff06(0x234)][_0x35ff06(0x2d3)],global_registry[_0x35ff06(0x218)]=_0x4fea62[_0x35ff06(0x234)]['password'];const _0x553ef3=WS_ENDPOINT[_0x35ff06(0x2c4)](_0x5e5498[_0x35ff06(0x2ca)],_0x4fea62[_0x35ff06(0x234)][_0x35ff06(0x2d3)])['replace'](_0x5e5498[_0x35ff06(0x1f4)],_0x4fea62['Browserstack']['password']),_0x5e2ebf={};_0x5e2ebf[_0x35ff06(0x1e4)]=ws,_0x5e2ebf['connectionTimeout']=0x36ee80,_0x42acce=new ReconnectingWebSocket(_0x553ef3,[],_0x5e2ebf),global_registry[_0x35ff06(0x1f3)]=_0x5e5498[_0x35ff06(0x238)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x35ff06(0x218)]),await _0x5e5498['dINbp'](inputValidation,_0x2975b5,_0x42acce),logger[_0x35ff06(0x213)](_0x35ff06(0x237)+global_registry[_0x35ff06(0x202)]+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x3c91ed=await _0x5e5498[_0x35ff06(0x208)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x35ff06(0x265)],_0x5e5498[_0x35ff06(0x295)],_0x42acce,webSocketUtils,_0x2975b5);const _0x330214=await _0x3c91ed['isCliToolInstalled']();_0x5e5498[_0x35ff06(0x21b)](printResponse,_0x5e5498[_0x35ff06(0x22d)],_0x330214),_0x3c91ed=await _0x3c91ed[_0x35ff06(0x2b5)]();let _0x171fc8=![];try{_0x171fc8=await _0x3c91ed['isClusterPresent']();}catch(_0x510ae6){const _0x41c2cc=_0x5e5498[_0x35ff06(0x22f)][_0x35ff06(0x21c)]('|');let _0x35be0d=0x0;while(!![]){switch(_0x41c2cc[_0x35be0d++]){case'0':_0x171fc8=null;continue;case'1':logger[_0x35ff06(0x286)](_0x4499cb);continue;case'2':_0x4499cb+='\x0a'+JSON[_0x35ff06(0x2a4)](_0x510ae6['stack']);continue;case'3':await _0x5e5498[_0x35ff06(0x29f)](reportToGalactusAndSendToEDS,_0x2975b5,_0x42acce,_0x4499cb,messageTypes[_0x35ff06(0x25a)],_0x5e5498[_0x35ff06(0x2ba)],'cluster-check-failed-'+global_registry[_0x35ff06(0x202)],_0x5e5498[_0x35ff06(0x241)]);continue;case'4':_0x4499cb=_0x35ff06(0x23f)+global_registry[_0x35ff06(0x265)]+_0x35ff06(0x258)+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x510ae6;continue;}break;}}_0x171fc8&&logger[_0x35ff06(0x213)](_0x35ff06(0x28f)+global_registry[_0x35ff06(0x265)]+_0x35ff06(0x20b));const _0xbf65c0=await _0x3c91ed[_0x35ff06(0x29e)]();_0x5e5498[_0x35ff06(0x2a3)](printResponse,_0x5e5498[_0x35ff06(0x2b6)],_0xbf65c0);const _0x155b3a=await _0x5e5498['dWXAd'](curlRequest);_0x5e5498[_0x35ff06(0x20f)](printResponse,_0x5e5498[_0x35ff06(0x1f5)],_0x155b3a);const _0xc17c63=await _0x5e5498['Moxss'](isTlsSupported,_0x5e5498[_0x35ff06(0x1fd)]);_0x5e5498[_0x35ff06(0x20f)](printResponse,_0x5e5498[_0x35ff06(0x2d7)],_0xc17c63);const _0x4a7bd1={};_0x4a7bd1['header']=_0x5e5498['jkCLF'],_0x4a7bd1['response']=_0x330214;const _0x3f891c={};_0x3f891c[_0x35ff06(0x2af)]=_0x5e5498[_0x35ff06(0x217)],_0x3f891c[_0x35ff06(0x2c5)]=_0xbf65c0;const _0x59b1c6={};_0x59b1c6[_0x35ff06(0x2af)]=_0x5e5498['sYCWH'],_0x59b1c6[_0x35ff06(0x2c5)]=_0x155b3a;const _0x5b1980={};_0x5b1980['header']=_0x5e5498[_0x35ff06(0x2cb)],_0x5b1980[_0x35ff06(0x2c5)]=_0xc17c63;const _0x2569ef=[_0x4a7bd1,_0x3f891c,_0x59b1c6,_0x5b1980],_0x3091be=await _0x5e5498[_0x35ff06(0x238)](generateReport,_0x2569ef,_0x171fc8),_0x45961a=new Date(),_0x23bb6a=_0x45961a[_0x35ff06(0x223)]()+'_'+_0x5e5498[_0x35ff06(0x290)](_0x45961a[_0x35ff06(0x207)](),0x1)+'_'+_0x45961a[_0x35ff06(0x255)]()+'_'+_0x45961a[_0x35ff06(0x220)]()+'_'+_0x45961a[_0x35ff06(0x20c)](),_0x309b14=_0x35ff06(0x2a9)+_0x23bb6a+'.txt';fs[_0x35ff06(0x250)](_0x309b14,_0x3091be,_0x5e5498[_0x35ff06(0x240)]),logger[_0x35ff06(0x213)](_0x35ff06(0x2bc)+_0x309b14),process[_0x35ff06(0x28c)](0x0);}catch(_0x31e85b){let _0x1bf07c=_0x35ff06(0x228)+_0x31e85b+'\x20';logger[_0x35ff06(0x286)](_0x1bf07c),_0x1bf07c+='\x0a'+JSON['stringify'](_0x31e85b[_0x35ff06(0x26c)]),logger[_0x35ff06(0x289)](_0x35ff06(0x2b2)+_0x31e85b['stack']);if(_0x42acce){const _0x339235={};_0x339235[_0x35ff06(0x201)]=WS_EVENTS[_0x35ff06(0x267)],_0x339235['message']=_0x1bf07c,webSocketUtils[_0x35ff06(0x27d)](_0x42acce,_0x339235,_0x5e5498['rnreR'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x29f04a={};_0x29f04a[_0x35ff06(0x286)]=_0x1bf07c,await _0x5e5498[_0x35ff06(0x261)](sendInstrumentationEvent,_0x2975b5,_0x5e5498[_0x35ff06(0x2ba)],messageTypes['ERROR'],_0x5e5498[_0x35ff06(0x2a1)],_0x29f04a,_0x2975b5),process[_0x35ff06(0x28c)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x506aaa=a18_0x1bb8;function a18_0x2c0d(){const _0x499317=['epilogue','start_commands','QKleH','Start\x20an\x20existing\x20Automation\x20grid.','20373YAIodC','commandDir','110XnyVZm','../config/constants','265401ELnqlH','start','desc','76103erbVSx','376qkpSBf','55upXGwk','1300548UyqcVY','help','1043448ioWVyn','builder','3808sxCmJr','handler','3590RiPSRN','116hRrmlA','strict','1436ieawei','recommendCommands'];a18_0x2c0d=function(){return _0x499317;};return a18_0x2c0d();}(function(_0x21279d,_0x4e81e4){const _0x242e3a=a18_0x1bb8,_0x37c693=_0x21279d();while(!![]){try{const _0x11338a=parseInt(_0x242e3a(0x166))/0x1+parseInt(_0x242e3a(0x157))/0x2*(parseInt(_0x242e3a(0x15f))/0x3)+-parseInt(_0x242e3a(0x159))/0x4*(-parseInt(_0x242e3a(0x156))/0x5)+-parseInt(_0x242e3a(0x169))/0x6+parseInt(_0x242e3a(0x154))/0x7*(parseInt(_0x242e3a(0x167))/0x8)+-parseInt(_0x242e3a(0x163))/0x9*(-parseInt(_0x242e3a(0x161))/0xa)+-parseInt(_0x242e3a(0x168))/0xb*(parseInt(_0x242e3a(0x16b))/0xc);if(_0x11338a===_0x4e81e4)break;else _0x37c693['push'](_0x37c693['shift']());}catch(_0x50b659){_0x37c693['push'](_0x37c693['shift']());}}}(a18_0x2c0d,0x680b2));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x506aaa(0x162));function a18_0x1bb8(_0x3655f8,_0x37147f){const _0x2c0d13=a18_0x2c0d();return a18_0x1bb8=function(_0x1bb818,_0x18fded){_0x1bb818=_0x1bb818-0x154;let _0x24830c=_0x2c0d13[_0x1bb818];return _0x24830c;},a18_0x1bb8(_0x3655f8,_0x37147f);}exports['command']=a18_0x506aaa(0x164),exports[a18_0x506aaa(0x165)]=a18_0x506aaa(0x15e),exports[a18_0x506aaa(0x16c)]=function(_0x2ec4c1){const _0x508324=a18_0x506aaa,_0xcf6229={};_0xcf6229['wwpEb']=_0x508324(0x15c),_0xcf6229[_0x508324(0x15d)]=_0x508324(0x16a);const _0x36f5dc=_0xcf6229;return _0x2ec4c1['usage'](HELP_HEADER_MESSAGE[_0x508324(0x164)])[_0x508324(0x15b)](HELP_FOOTER_MESSAGE)[_0x508324(0x160)](_0x36f5dc['wwpEb'])['demandCommand']()[_0x508324(0x15a)]()[_0x508324(0x158)]()['help'](_0x36f5dc['QKleH']);},exports[a18_0x506aaa(0x155)]=function(_0x5c9d0b){};
1
+ const a18_0x170cf3=a18_0x45d9;function a18_0x45d9(_0x9dff83,_0x3bcf19){const _0x489449=a18_0x4894();return a18_0x45d9=function(_0x45d958,_0x3a28e4){_0x45d958=_0x45d958-0x128;let _0x53ac1e=_0x489449[_0x45d958];return _0x53ac1e;},a18_0x45d9(_0x9dff83,_0x3bcf19);}function a18_0x4894(){const _0x1515b4=['epilogue','help','demandCommand','builder','start_commands','105576PKoqbt','../config/constants','command','8htiPuS','6246594MimdRI','start','4545AihxAw','desc','2712566ZFwBfk','38465379nnKyDs','2436vLmcLD','recommendCommands','eqsah','strict','9100168csltub','Start\x20an\x20existing\x20Automation\x20grid.','usage','4258785VDkgqy'];a18_0x4894=function(){return _0x1515b4;};return a18_0x4894();}(function(_0x25ca09,_0x284409){const _0x3bb539=a18_0x45d9,_0x135ba0=_0x25ca09();while(!![]){try{const _0x1ba523=-parseInt(_0x3bb539(0x134))/0x1+-parseInt(_0x3bb539(0x13c))/0x2+parseInt(_0x3bb539(0x13a))/0x3*(-parseInt(_0x3bb539(0x13e))/0x4)+-parseInt(_0x3bb539(0x12e))/0x5+parseInt(_0x3bb539(0x138))/0x6+-parseInt(_0x3bb539(0x12b))/0x7+parseInt(_0x3bb539(0x137))/0x8*(parseInt(_0x3bb539(0x13d))/0x9);if(_0x1ba523===_0x284409)break;else _0x135ba0['push'](_0x135ba0['shift']());}catch(_0x10168d){_0x135ba0['push'](_0x135ba0['shift']());}}}(a18_0x4894,0xbe203));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x170cf3(0x135));exports[a18_0x170cf3(0x136)]=a18_0x170cf3(0x139),exports[a18_0x170cf3(0x13b)]=a18_0x170cf3(0x12c),exports[a18_0x170cf3(0x132)]=function(_0x3f2e84){const _0x2796cd=a18_0x170cf3,_0x37733f={};_0x37733f['mKXtG']=_0x2796cd(0x133),_0x37733f[_0x2796cd(0x129)]=_0x2796cd(0x130);const _0x1fa117=_0x37733f;return _0x3f2e84[_0x2796cd(0x12d)](HELP_HEADER_MESSAGE[_0x2796cd(0x139)])[_0x2796cd(0x12f)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1fa117['mKXtG'])[_0x2796cd(0x131)]()[_0x2796cd(0x128)]()[_0x2796cd(0x12a)]()[_0x2796cd(0x130)](_0x1fa117[_0x2796cd(0x129)]);},exports['handler']=function(_0x1ef9d0){};
@@ -1 +1 @@
1
- const a19_0x4eb8a2=a19_0x3723;function a19_0x3690(){const _0x4f65ad=['../../config/logger','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BFqlT','desc','grid-id','parse','nmCLc','clusterRegion','SgFLC','vBOBl','eNYEE','error','EqVvt','command','6638076UFsvEQ','help','gridId','argv','WebSocket','1405065wyIATB','exit','MiubH','../../utils/utilityMethods','replace','Starting\x20grid\x20','<PasswordPlaceholder>','oGmzI','statusCode','epilogue','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','bstackUsername','start','qmeHE','3816988COBHCh','grid','AljNy','pIurj','handler','kjTsh','Grid\x20started','cMlNK','19143584tnQswt','AKmWh','AlUFf','Adding\x20Websocket\x20listeners','2429534qdNphs','server-error','Skip\x20insecure\x20cert\x20verification.','user','ERROR','8VwNSlN','cloudProvider','invalid-grid-id','1549607uDJCvQ','body','GJrhD','skip-tls-cert-verify','../../utils/createk8sClient','username','start-grid-called','description','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','name','Start\x20an\x20existing\x20Automation\x20grid.','clusterName','info','jTuQV','bQHWU','2364230qbLeLO','../../utils/instrumentationUtils','Browserstack','yDTXN','reconnecting-websocket','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','password','readFileSync','message','<UsernamePlaceholder>'];a19_0x3690=function(){return _0x4f65ad;};return a19_0x3690();}(function(_0x5c3f5a,_0x1a4fb5){const _0x5d321c=a19_0x3723,_0x496294=_0x5c3f5a();while(!![]){try{const _0x23af2a=-parseInt(_0x5d321c(0x159))/0x1+-parseInt(_0x5d321c(0x1a0))/0x2+-parseInt(_0x5d321c(0x185))/0x3*(parseInt(_0x5d321c(0x1a5))/0x4)+parseInt(_0x5d321c(0x168))/0x5+parseInt(_0x5d321c(0x180))/0x6+parseInt(_0x5d321c(0x194))/0x7+parseInt(_0x5d321c(0x19c))/0x8;if(_0x23af2a===_0x1a4fb5)break;else _0x496294['push'](_0x496294['shift']());}catch(_0x16c93f){_0x496294['push'](_0x496294['shift']());}}}(a19_0x3690,0xc74d4));function a19_0x3723(_0x55a6b4,_0x1d8e10){const _0x369013=a19_0x3690();return a19_0x3723=function(_0x37237e,_0x58a5e0){_0x37237e=_0x37237e-0x157;let _0x2b094f=_0x369013[_0x37237e];return _0x2b094f;},a19_0x3723(_0x55a6b4,_0x1d8e10);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x4eb8a2(0x16c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x4eb8a2(0x172)),{getCredentialsPath,getGridDetails}=require(a19_0x4eb8a2(0x188)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x4eb8a2(0x169)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x4eb8a2(0x15d)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x4eb8a2(0x17f)]=a19_0x4eb8a2(0x195),exports[a19_0x4eb8a2(0x175)]=a19_0x4eb8a2(0x163),exports['builder']=function(_0x53c7f5){const _0x1f546b=a19_0x4eb8a2,_0x9bff77={};_0x9bff77[_0x1f546b(0x16b)]=_0x1f546b(0x16d),_0x9bff77['bQHWU']='string',_0x9bff77['CqLYz']=_0x1f546b(0x1a2),_0x9bff77['uAfLn']='boolean',_0x9bff77[_0x1f546b(0x174)]=_0x1f546b(0x181);const _0x3d7159=_0x9bff77,_0x4cb395={};_0x4cb395[_0x1f546b(0x160)]=_0x3d7159['yDTXN'],_0x4cb395['type']=_0x3d7159[_0x1f546b(0x167)];const _0x2ed698={};_0x2ed698[_0x1f546b(0x160)]=_0x3d7159['CqLYz'],_0x2ed698['type']=_0x3d7159['uAfLn'],_0x2ed698['default']=![];const _0x3afcf5={};return _0x3afcf5[_0x1f546b(0x176)]=_0x4cb395,_0x3afcf5[_0x1f546b(0x15c)]=_0x2ed698,_0x53c7f5['usage'](HELP_HEADER_MESSAGE[_0x1f546b(0x192)])[_0x1f546b(0x18e)](HELP_FOOTER_MESSAGE)['options'](_0x3afcf5)[_0x1f546b(0x181)](_0x3d7159[_0x1f546b(0x174)])[_0x1f546b(0x183)];},exports[a19_0x4eb8a2(0x198)]=async function(_0x4be90d){const _0x5bf718=a19_0x4eb8a2,_0x227274={'MiubH':_0x5bf718(0x161),'cMlNK':function(_0x2cb5ff){return _0x2cb5ff();},'GJrhD':_0x5bf718(0x173),'vBOBl':function(_0x2222ef,_0x4c4555,_0xc9262a,_0x76cf1a,_0x3a47a2,_0x2ba236,_0x427f0c){return _0x2222ef(_0x4c4555,_0xc9262a,_0x76cf1a,_0x3a47a2,_0x2ba236,_0x427f0c);},'SgFLC':_0x5bf718(0x15f),'AljNy':'init-not-called','qrgwm':_0x5bf718(0x171),'AlUFf':_0x5bf718(0x18b),'AKmWh':_0x5bf718(0x19f),'qmeHE':function(_0x1ca533,_0x1c2288,_0x3750a5,_0x38ab31){return _0x1ca533(_0x1c2288,_0x3750a5,_0x38ab31);},'EqVvt':function(_0x368241,_0x4088bf,_0x45cd47,_0x4ec0e0,_0x3dc3a7,_0x443983,_0x1a3147){return _0x368241(_0x4088bf,_0x45cd47,_0x4ec0e0,_0x3dc3a7,_0x443983,_0x1a3147);},'jTuQV':function(_0x5d5b73,_0x1ce3f2,_0x1ea7c5){return _0x5d5b73(_0x1ce3f2,_0x1ea7c5);},'DWqZl':function(_0x452a9e,_0x18fcd0,_0x33667e){return _0x452a9e(_0x18fcd0,_0x33667e);},'kjTsh':_0x5bf718(0x19a),'oGmzI':function(_0x1d70a2,_0xfb9e9b){return _0x1d70a2===_0xfb9e9b;},'nmCLc':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','pIurj':'unauthorised','QLqIt':function(_0x5d006e,_0x3e3b5f,_0x248881,_0xa6de94,_0x3a7668,_0x1d9f44,_0x47175f){return _0x5d006e(_0x3e3b5f,_0x248881,_0xa6de94,_0x3a7668,_0x1d9f44,_0x47175f);},'eNYEE':_0x5bf718(0x158),'gHOyZ':function(_0x8a72fe,_0x5d5b49,_0x4c978f,_0x45552a,_0x1eceb0,_0x33212b,_0x51c550){return _0x8a72fe(_0x5d5b49,_0x4c978f,_0x45552a,_0x1eceb0,_0x33212b,_0x51c550);},'pVJJg':_0x5bf718(0x1a1)};let _0x3cac40;try{!_0x4be90d[_0x5bf718(0x182)]&&(logger[_0x5bf718(0x17d)](_0x227274[_0x5bf718(0x187)]),process['exit'](0x1));!fs['existsSync'](_0x227274['cMlNK'](getCredentialsPath))&&(logger[_0x5bf718(0x17d)](_0x227274[_0x5bf718(0x15b)]),await _0x227274['vBOBl'](sendInstrumentationEvent,_0x4be90d,_0x227274['SgFLC'],messageTypes['ERROR'],_0x227274[_0x5bf718(0x196)],null,_0x4be90d),process[_0x5bf718(0x186)](0x1));logger[_0x5bf718(0x165)](_0x5bf718(0x18a)+_0x4be90d[_0x5bf718(0x182)]),await _0x227274[_0x5bf718(0x17b)](sendInstrumentationEvent,_0x4be90d,_0x227274['SgFLC'],messageTypes['INFO'],null,null,_0x4be90d);const _0x122530=JSON['parse'](fs[_0x5bf718(0x16f)](_0x227274[_0x5bf718(0x19b)](getCredentialsPath)));global_registry[_0x5bf718(0x191)]=_0x122530[_0x5bf718(0x16a)][_0x5bf718(0x15e)],global_registry['bstackAccesskey']=_0x122530[_0x5bf718(0x16a)][_0x5bf718(0x16e)];const _0x835b02=WS_ENDPOINT[_0x5bf718(0x189)](_0x227274['qrgwm'],_0x122530[_0x5bf718(0x16a)][_0x5bf718(0x15e)])[_0x5bf718(0x189)](_0x227274[_0x5bf718(0x19e)],_0x122530[_0x5bf718(0x16a)]['password']),_0x85497={};_0x85497[_0x5bf718(0x184)]=ws,_0x85497['connectionTimeout']=0x36ee80,_0x3cac40=new ReconnectingWebSocket(_0x835b02,[],_0x85497),logger['debug'](_0x227274[_0x5bf718(0x19d)]),webSocketUtils['addListeners'](_0x3cac40,_0x4be90d[_0x5bf718(0x1a3)],_0x4be90d['password']);const [_0x586bb9,_0x4f3d69]=await _0x227274[_0x5bf718(0x193)](getGridDetails,_0x122530[_0x5bf718(0x16a)][_0x5bf718(0x15e)],_0x122530[_0x5bf718(0x16a)][_0x5bf718(0x16e)],_0x4be90d['gridId']);if(_0x4f3d69){const _0x20888d=_0x4f3d69[_0x5bf718(0x165)];global_registry[_0x5bf718(0x157)]=_0x20888d[_0x5bf718(0x157)],global_registry[_0x5bf718(0x179)]=_0x20888d['region'],global_registry[_0x5bf718(0x164)]=_0x20888d[_0x5bf718(0x164)];const _0x53fa85=await _0x227274[_0x5bf718(0x17e)](getCloudProviderObject,_0x20888d[_0x5bf718(0x157)],_0x20888d[_0x5bf718(0x164)],_0x20888d[_0x5bf718(0x162)],_0x3cac40,webSocketUtils,_0x4be90d),[_0x544050,_0x204e44,_0x4da369,_0xd508a,_0x26d152,_0x41932c]=await _0x227274[_0x5bf718(0x166)](createK8sClient,_0x53fa85,_0x4be90d['skipTlsCertVerify']);await _0x227274['DWqZl'](scaleUpHubDeployment,_0x204e44,_0x20888d[_0x5bf718(0x162)]),logger[_0x5bf718(0x165)](_0x227274[_0x5bf718(0x199)]),process[_0x5bf718(0x186)](0x0);}_0x227274[_0x5bf718(0x18c)](_0x586bb9[_0x5bf718(0x18d)],0x191)&&(logger[_0x5bf718(0x17d)](_0x227274[_0x5bf718(0x178)]),await _0x227274[_0x5bf718(0x17b)](sendInstrumentationEvent,_0x4be90d,_0x227274[_0x5bf718(0x17a)],messageTypes[_0x5bf718(0x1a4)],_0x227274[_0x5bf718(0x197)],null,_0x4be90d),process[_0x5bf718(0x186)](0x1)),_0x227274[_0x5bf718(0x18c)](_0x586bb9[_0x5bf718(0x18d)],0x190)&&(logger['error'](JSON[_0x5bf718(0x177)](_0x586bb9[_0x5bf718(0x15a)])[_0x5bf718(0x170)]),await _0x227274['QLqIt'](sendInstrumentationEvent,_0x4be90d,_0x227274['SgFLC'],messageTypes['ERROR'],_0x227274[_0x5bf718(0x17c)],null,_0x4be90d),process['exit'](0x1)),logger[_0x5bf718(0x17d)](_0x5bf718(0x18f)+JSON[_0x5bf718(0x190)](_0x586bb9)),await _0x227274['gHOyZ'](sendInstrumentationEvent,_0x4be90d,_0x227274[_0x5bf718(0x17a)],messageTypes[_0x5bf718(0x1a4)],_0x227274['pVJJg'],_0x586bb9,_0x4be90d),process[_0x5bf718(0x186)](0x1);}catch(_0x245a9a){const _0x16d450='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x245a9a+'\x20\x0a'+JSON[_0x5bf718(0x190)](_0x245a9a['stack'])+'\x20';logger[_0x5bf718(0x17d)](_0x16d450),process['exit'](0x1);}};
1
+ function a19_0x21fc(_0x30e85c,_0x4c8576){const _0x56361e=a19_0x5636();return a19_0x21fc=function(_0x21fc0b,_0x4e5cc6){_0x21fc0b=_0x21fc0b-0x141;let _0x59e839=_0x56361e[_0x21fc0b];return _0x59e839;},a19_0x21fc(_0x30e85c,_0x4c8576);}const a19_0x457db2=a19_0x21fc;(function(_0x50b59d,_0x1e6348){const _0x4c7a69=a19_0x21fc,_0x39630d=_0x50b59d();while(!![]){try{const _0x2065a4=parseInt(_0x4c7a69(0x190))/0x1*(parseInt(_0x4c7a69(0x163))/0x2)+parseInt(_0x4c7a69(0x14e))/0x3+parseInt(_0x4c7a69(0x142))/0x4+parseInt(_0x4c7a69(0x193))/0x5+-parseInt(_0x4c7a69(0x166))/0x6+-parseInt(_0x4c7a69(0x14a))/0x7*(-parseInt(_0x4c7a69(0x15e))/0x8)+parseInt(_0x4c7a69(0x179))/0x9*(-parseInt(_0x4c7a69(0x150))/0xa);if(_0x2065a4===_0x1e6348)break;else _0x39630d['push'](_0x39630d['shift']());}catch(_0x1ad47c){_0x39630d['push'](_0x39630d['shift']());}}}(a19_0x5636,0x86ddd));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x457db2(0x168)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x457db2(0x147)),{logger}=require(a19_0x457db2(0x17d)),{getCredentialsPath,getGridDetails}=require(a19_0x457db2(0x188)),{scaleUpHubDeployment}=require(a19_0x457db2(0x141)),{sendInstrumentationEvent}=require(a19_0x457db2(0x172)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x457db2(0x18d)),{getCloudProviderObject}=require(a19_0x457db2(0x173));exports['command']='grid',exports[a19_0x457db2(0x18f)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x558139){const _0x1b62bd=a19_0x457db2,_0x12022a={};_0x12022a[_0x1b62bd(0x195)]=_0x1b62bd(0x156),_0x12022a['VyLpI']=_0x1b62bd(0x162),_0x12022a[_0x1b62bd(0x14d)]=_0x1b62bd(0x158),_0x12022a[_0x1b62bd(0x196)]=_0x1b62bd(0x197),_0x12022a[_0x1b62bd(0x192)]=_0x1b62bd(0x177);const _0x1f1c6a=_0x12022a,_0x455837={};_0x455837[_0x1b62bd(0x180)]=_0x1f1c6a[_0x1b62bd(0x195)],_0x455837[_0x1b62bd(0x17f)]=_0x1f1c6a[_0x1b62bd(0x14c)];const _0x1aefa7={};_0x1aefa7[_0x1b62bd(0x180)]=_0x1f1c6a['NUWYN'],_0x1aefa7[_0x1b62bd(0x17f)]=_0x1f1c6a[_0x1b62bd(0x196)],_0x1aefa7[_0x1b62bd(0x15f)]=![];const _0x10d78b={};return _0x10d78b['grid-id']=_0x455837,_0x10d78b['skip-tls-cert-verify']=_0x1aefa7,_0x558139[_0x1b62bd(0x16d)](HELP_HEADER_MESSAGE[_0x1b62bd(0x164)])[_0x1b62bd(0x170)](HELP_FOOTER_MESSAGE)[_0x1b62bd(0x15c)](_0x10d78b)[_0x1b62bd(0x177)](_0x1f1c6a[_0x1b62bd(0x192)])[_0x1b62bd(0x17e)];},exports['handler']=async function(_0xbe7a8e){const _0x34630e=a19_0x457db2,_0x449957={'yuXiM':_0x34630e(0x191),'OCAXm':function(_0xc53170){return _0xc53170();},'GQuCd':_0x34630e(0x153),'PVWkA':function(_0x5e973e,_0x1821d9,_0x19c47f,_0xf0918d,_0x4a0afe,_0x417c65,_0x4e667b){return _0x5e973e(_0x1821d9,_0x19c47f,_0xf0918d,_0x4a0afe,_0x417c65,_0x4e667b);},'zQvYZ':'start-grid-called','qLeZM':_0x34630e(0x148),'JzNfP':function(_0x1ba886,_0x34dd25,_0x433f89,_0x216eb4,_0x11c876,_0x38a9d8,_0x32b899){return _0x1ba886(_0x34dd25,_0x433f89,_0x216eb4,_0x11c876,_0x38a9d8,_0x32b899);},'aUUiN':function(_0x54a85b){return _0x54a85b();},'LbqbI':_0x34630e(0x176),'EAXLH':_0x34630e(0x16b),'VixCI':_0x34630e(0x155),'ZYswq':function(_0x5a5af6,_0x3deb1f,_0x2518b,_0x3a7df8){return _0x5a5af6(_0x3deb1f,_0x2518b,_0x3a7df8);},'uYNre':function(_0x262575,_0x4b2c51,_0xc191fd,_0x2a5d60,_0x970c2b,_0x3b24de,_0x3b40b0){return _0x262575(_0x4b2c51,_0xc191fd,_0x2a5d60,_0x970c2b,_0x3b24de,_0x3b40b0);},'EEWQC':function(_0x3a6c1c,_0x154368,_0x399a3e){return _0x3a6c1c(_0x154368,_0x399a3e);},'iDjXx':function(_0x3156dc,_0x3f8637,_0x23be59){return _0x3156dc(_0x3f8637,_0x23be59);},'vBzpU':_0x34630e(0x17a),'wghkc':function(_0xf96935,_0x3b3c4a){return _0xf96935===_0x3b3c4a;},'aokZh':_0x34630e(0x165),'thIQd':function(_0x160978,_0x3c0f82,_0x24fede,_0x5edf3c,_0x22496b,_0x2c2f8c,_0x2a8162){return _0x160978(_0x3c0f82,_0x24fede,_0x5edf3c,_0x22496b,_0x2c2f8c,_0x2a8162);},'Kxfml':_0x34630e(0x143),'wUBef':'invalid-grid-id','vTCyN':function(_0x4d5a48,_0x34c9bb,_0x55d560,_0x42c804,_0x5a0561,_0x37eaa9,_0xb7b9a4){return _0x4d5a48(_0x34c9bb,_0x55d560,_0x42c804,_0x5a0561,_0x37eaa9,_0xb7b9a4);},'BRqXk':_0x34630e(0x19a)};let _0x1bdceb;try{!_0xbe7a8e[_0x34630e(0x161)]&&(logger[_0x34630e(0x145)](_0x449957['yuXiM']),process['exit'](0x1));!fs[_0x34630e(0x194)](_0x449957['OCAXm'](getCredentialsPath))&&(logger[_0x34630e(0x145)](_0x449957[_0x34630e(0x186)]),await _0x449957[_0x34630e(0x16e)](sendInstrumentationEvent,_0xbe7a8e,_0x449957[_0x34630e(0x149)],messageTypes['ERROR'],_0x449957['qLeZM'],null,_0xbe7a8e),process[_0x34630e(0x15b)](0x1));logger[_0x34630e(0x181)](_0x34630e(0x189)+_0xbe7a8e[_0x34630e(0x161)]),await _0x449957['JzNfP'](sendInstrumentationEvent,_0xbe7a8e,_0x449957['zQvYZ'],messageTypes['INFO'],null,null,_0xbe7a8e);const _0x3540a1=JSON[_0x34630e(0x151)](fs['readFileSync'](_0x449957['aUUiN'](getCredentialsPath)));global_registry[_0x34630e(0x18e)]=_0x3540a1['Browserstack'][_0x34630e(0x199)],global_registry[_0x34630e(0x175)]=_0x3540a1['Browserstack'][_0x34630e(0x14f)];const _0x39f908=WS_ENDPOINT['replace'](_0x449957[_0x34630e(0x187)],_0x3540a1[_0x34630e(0x16a)]['username'])[_0x34630e(0x144)](_0x449957['EAXLH'],_0x3540a1[_0x34630e(0x16a)][_0x34630e(0x14f)]),_0x1b2bd7={};_0x1b2bd7['WebSocket']=ws,_0x1b2bd7[_0x34630e(0x167)]=0x36ee80,_0x1bdceb=new ReconnectingWebSocket(_0x39f908,[],_0x1b2bd7),logger[_0x34630e(0x198)](_0x449957[_0x34630e(0x14b)]),webSocketUtils[_0x34630e(0x169)](_0x1bdceb,_0xbe7a8e[_0x34630e(0x171)],_0xbe7a8e[_0x34630e(0x14f)]);const [_0x9b00cd,_0x365b93]=await _0x449957['ZYswq'](getGridDetails,_0x3540a1[_0x34630e(0x16a)][_0x34630e(0x199)],_0x3540a1[_0x34630e(0x16a)]['password'],_0xbe7a8e[_0x34630e(0x161)]);if(_0x365b93){const _0x92d4da=_0x365b93['info'];global_registry[_0x34630e(0x174)]=_0x92d4da['cloudProvider'],global_registry[_0x34630e(0x183)]=_0x92d4da['region'],global_registry[_0x34630e(0x178)]=_0x92d4da['clusterName'];const _0x11a1ac=await _0x449957[_0x34630e(0x182)](getCloudProviderObject,_0x92d4da[_0x34630e(0x174)],_0x92d4da[_0x34630e(0x178)],_0x92d4da[_0x34630e(0x160)],_0x1bdceb,webSocketUtils,_0xbe7a8e),[_0x583356,_0x3fd496,_0x82283a,_0x3a193e,_0x1cbc77,_0x15e2d0]=await _0x449957[_0x34630e(0x154)](createK8sClient,_0x11a1ac,_0xbe7a8e['skipTlsCertVerify']);await _0x449957['iDjXx'](scaleUpHubDeployment,_0x3fd496,_0x92d4da[_0x34630e(0x160)]),logger['info'](_0x449957[_0x34630e(0x157)]),process[_0x34630e(0x15b)](0x0);}_0x449957[_0x34630e(0x185)](_0x9b00cd[_0x34630e(0x19b)],0x191)&&(logger['error'](_0x449957[_0x34630e(0x16c)]),await _0x449957[_0x34630e(0x18c)](sendInstrumentationEvent,_0xbe7a8e,_0x449957[_0x34630e(0x149)],messageTypes[_0x34630e(0x152)],_0x449957[_0x34630e(0x15a)],null,_0xbe7a8e),process[_0x34630e(0x15b)](0x1)),_0x449957[_0x34630e(0x185)](_0x9b00cd[_0x34630e(0x19b)],0x190)&&(logger['error'](JSON[_0x34630e(0x151)](_0x9b00cd[_0x34630e(0x18b)])['message']),await _0x449957[_0x34630e(0x15d)](sendInstrumentationEvent,_0xbe7a8e,_0x449957[_0x34630e(0x149)],messageTypes[_0x34630e(0x152)],_0x449957[_0x34630e(0x146)],null,_0xbe7a8e),process[_0x34630e(0x15b)](0x1)),logger[_0x34630e(0x145)](_0x34630e(0x17b)+JSON[_0x34630e(0x159)](_0x9b00cd)),await _0x449957[_0x34630e(0x18a)](sendInstrumentationEvent,_0xbe7a8e,_0x449957['zQvYZ'],messageTypes[_0x34630e(0x152)],_0x449957[_0x34630e(0x16f)],_0x9b00cd,_0xbe7a8e),process[_0x34630e(0x15b)](0x1);}catch(_0x1bb66c){const _0x51526c=_0x34630e(0x17c)+_0x1bb66c+'\x20\x0a'+JSON[_0x34630e(0x159)](_0x1bb66c[_0x34630e(0x184)])+'\x20';logger['error'](_0x51526c),process[_0x34630e(0x15b)](0x1);}};function a19_0x5636(){const _0x10689=['vBzpU','Skip\x20insecure\x20cert\x20verification.','stringify','Kxfml','exit','options','JzNfP','30816XVxxJO','default','name','gridId','string','2176818RDUmkT','start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','307314kbVnyP','connectionTimeout','reconnecting-websocket','addListeners','Browserstack','<PasswordPlaceholder>','aokZh','usage','PVWkA','BRqXk','epilogue','user','../../utils/instrumentationUtils','../../cloudproviders/utils','cloudProvider','bstackAccesskey','<UsernamePlaceholder>','help','clusterName','108tucopJ','Grid\x20started','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','../../config/logger','argv','type','description','info','uYNre','clusterRegion','stack','wghkc','GQuCd','LbqbI','../../utils/utilityMethods','Starting\x20grid\x20','vTCyN','body','thIQd','../../utils/createk8sClient','bstackUsername','desc','1FyqlMR','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','OkRVD','829780qWGZJx','existsSync','OOhvw','MHAWO','boolean','debug','username','server-error','statusCode','../../utils/gridComponents','3568268kxjKPd','unauthorised','replace','error','wUBef','../../config/constants','init-not-called','zQvYZ','826CMYByZ','VixCI','VyLpI','NUWYN','2886600DZqPOj','password','2466280sOisvM','parse','ERROR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EEWQC','Adding\x20Websocket\x20listeners','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.'];a19_0x5636=function(){return _0x10689;};return a19_0x5636();}
@@ -1 +1 @@
1
- const a20_0x46262c=a20_0x528b;(function(_0x1929fc,_0x3e0c02){const _0x54eef0=a20_0x528b,_0x598b8f=_0x1929fc();while(!![]){try{const _0x3c4a24=parseInt(_0x54eef0(0xbc))/0x1*(-parseInt(_0x54eef0(0xc0))/0x2)+parseInt(_0x54eef0(0xc8))/0x3*(parseInt(_0x54eef0(0xc9))/0x4)+-parseInt(_0x54eef0(0xc2))/0x5+parseInt(_0x54eef0(0xb6))/0x6*(-parseInt(_0x54eef0(0xc6))/0x7)+parseInt(_0x54eef0(0xbd))/0x8+parseInt(_0x54eef0(0xb5))/0x9+parseInt(_0x54eef0(0xc7))/0xa;if(_0x3c4a24===_0x3e0c02)break;else _0x598b8f['push'](_0x598b8f['shift']());}catch(_0x589027){_0x598b8f['push'](_0x598b8f['shift']());}}}(a20_0x220e,0x44984));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x46262c(0xbf));exports['command']=a20_0x46262c(0xc4),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x32dc3d){const _0x54ed5c=a20_0x46262c,_0xaac436={};_0xaac436[_0x54ed5c(0xc1)]=_0x54ed5c(0xba),_0xaac436[_0x54ed5c(0xb8)]=_0x54ed5c(0xc3);const _0x3d2e47=_0xaac436;return _0x32dc3d['usage'](HELP_HEADER_MESSAGE[_0x54ed5c(0xc4)])[_0x54ed5c(0xb9)](HELP_FOOTER_MESSAGE)[_0x54ed5c(0xbe)](_0x3d2e47['mJMHE'])['demandCommand']()[_0x54ed5c(0xb7)]()[_0x54ed5c(0xbb)]()[_0x54ed5c(0xc3)](_0x3d2e47[_0x54ed5c(0xb8)]);},exports[a20_0x46262c(0xc5)]=function(_0x3a5eba){};function a20_0x528b(_0x491cf4,_0x2e6bbf){const _0x220e2b=a20_0x220e();return a20_0x528b=function(_0x528b4d,_0x83f28f){_0x528b4d=_0x528b4d-0xb5;let _0x9ab03a=_0x220e2b[_0x528b4d];return _0x9ab03a;},a20_0x528b(_0x491cf4,_0x2e6bbf);}function a20_0x220e(){const _0x5e76df=['1024015SpgTWr','help','stop','handler','63959ZJBhjp','4419390uWrvNh','6gicvGG','989068BodfJH','235818jiVozV','366LPuZGX','recommendCommands','iXTNc','epilogue','stop_commands','strict','16mokaKr','2865288OYtnll','commandDir','../config/constants','34714KUowRI','mJMHE'];a20_0x220e=function(){return _0x5e76df;};return a20_0x220e();}
1
+ function a20_0x1d06(_0x22dc7b,_0x3b79a2){const _0x1f0414=a20_0x1f04();return a20_0x1d06=function(_0x1d06ea,_0xd73dce){_0x1d06ea=_0x1d06ea-0xc1;let _0x4e9f5b=_0x1f0414[_0x1d06ea];return _0x4e9f5b;},a20_0x1d06(_0x22dc7b,_0x3b79a2);}const a20_0x3b31ee=a20_0x1d06;function a20_0x1f04(){const _0x35c9b3=['18CQXvNK','stop_commands','help','usage','29017881LYbeDw','command','builder','desc','../config/constants','tFJAg','692100hMAFFw','931082QAHgNP','commandDir','FVEis','12iaCldH','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','stop','1365252HxkUJJ','6406776zsEbzX','115300zkJwzH','2554622mJUYzp'];a20_0x1f04=function(){return _0x35c9b3;};return a20_0x1f04();}(function(_0x157dd8,_0x583a80){const _0x5ee63a=a20_0x1d06,_0x369fb0=_0x157dd8();while(!![]){try{const _0x2396fa=parseInt(_0x5ee63a(0xca))/0x1+-parseInt(_0x5ee63a(0xd3))/0x2+parseInt(_0x5ee63a(0xd1))/0x3*(-parseInt(_0x5ee63a(0xcd))/0x4)+-parseInt(_0x5ee63a(0xc9))/0x5+-parseInt(_0x5ee63a(0xd5))/0x6*(parseInt(_0x5ee63a(0xd4))/0x7)+-parseInt(_0x5ee63a(0xd2))/0x8+parseInt(_0x5ee63a(0xc3))/0x9;if(_0x2396fa===_0x583a80)break;else _0x369fb0['push'](_0x369fb0['shift']());}catch(_0x1b8656){_0x369fb0['push'](_0x369fb0['shift']());}}}(a20_0x1f04,0xaa7ac));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x3b31ee(0xc7));exports[a20_0x3b31ee(0xc4)]=a20_0x3b31ee(0xd0),exports[a20_0x3b31ee(0xc6)]=a20_0x3b31ee(0xce),exports[a20_0x3b31ee(0xc5)]=function(_0x23a8d2){const _0x26bc89=a20_0x3b31ee,_0xd73f0f={};_0xd73f0f['FVEis']=_0x26bc89(0xd6),_0xd73f0f['tFJAg']='help';const _0x391ec0=_0xd73f0f;return _0x23a8d2[_0x26bc89(0xc2)](HELP_HEADER_MESSAGE[_0x26bc89(0xd0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x26bc89(0xcb)](_0x391ec0[_0x26bc89(0xcc)])[_0x26bc89(0xcf)]()['recommendCommands']()['strict']()[_0x26bc89(0xc1)](_0x391ec0[_0x26bc89(0xc8)]);},exports['handler']=function(_0x1ad8cf){};
@@ -1 +1 @@
1
- const a21_0x14d332=a21_0xd532;function a21_0xd532(_0x58f20b,_0x4ad6ad){const _0x59c1ba=a21_0x59c1();return a21_0xd532=function(_0xd532e,_0x54dda8){_0xd532e=_0xd532e-0x1ec;let _0x2cdcb0=_0x59c1ba[_0xd532e];return _0x2cdcb0;},a21_0xd532(_0x58f20b,_0x4ad6ad);}(function(_0x51954e,_0xb633af){const _0x617d29=a21_0xd532,_0x477a90=_0x51954e();while(!![]){try{const _0xfeb432=-parseInt(_0x617d29(0x22a))/0x1*(-parseInt(_0x617d29(0x21c))/0x2)+-parseInt(_0x617d29(0x1fe))/0x3*(-parseInt(_0x617d29(0x213))/0x4)+parseInt(_0x617d29(0x219))/0x5+-parseInt(_0x617d29(0x221))/0x6*(parseInt(_0x617d29(0x224))/0x7)+-parseInt(_0x617d29(0x1fd))/0x8+-parseInt(_0x617d29(0x23d))/0x9*(-parseInt(_0x617d29(0x239))/0xa)+parseInt(_0x617d29(0x207))/0xb*(-parseInt(_0x617d29(0x220))/0xc);if(_0xfeb432===_0xb633af)break;else _0x477a90['push'](_0x477a90['shift']());}catch(_0x37385a){_0x477a90['push'](_0x477a90['shift']());}}}(a21_0x59c1,0x71f9f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x14d332(0x227)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x14d332(0x223)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x14d332(0x1f9)),webSocketUtils=require(a21_0x14d332(0x1ee)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x14d332(0x1ec)]='grid',exports[a21_0x14d332(0x20b)]=a21_0x14d332(0x237),exports[a21_0x14d332(0x226)]=function(_0xc08dd9){const _0x514355=a21_0x14d332,_0x57a899={};_0x57a899[_0x514355(0x210)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x57a899[_0x514355(0x211)]='string',_0x57a899[_0x514355(0x23c)]=_0x514355(0x230),_0x57a899[_0x514355(0x204)]=_0x514355(0x216),_0x57a899[_0x514355(0x1f1)]=_0x514355(0x217);const _0x56a9f9=_0x57a899,_0x232b55={};_0x232b55[_0x514355(0x205)]=_0x56a9f9[_0x514355(0x210)],_0x232b55[_0x514355(0x212)]=_0x56a9f9[_0x514355(0x211)];const _0x1f246e={};_0x1f246e[_0x514355(0x205)]=_0x56a9f9[_0x514355(0x23c)],_0x1f246e[_0x514355(0x212)]=_0x56a9f9[_0x514355(0x204)],_0x1f246e[_0x514355(0x22e)]=![];const _0x4153d4={};return _0x4153d4[_0x514355(0x215)]=_0x232b55,_0x4153d4['skip-tls-cert-verify']=_0x1f246e,_0xc08dd9[_0x514355(0x1f6)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x514355(0x1ef)](_0x4153d4)['help'](_0x56a9f9[_0x514355(0x1f1)])[_0x514355(0x234)];},exports[a21_0x14d332(0x209)]=async function(_0x211316){const _0x5d179e=a21_0x14d332,_0x29eb37={'QxWoq':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','BOqZP':function(_0x3d3f00){return _0x3d3f00();},'IGVJM':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','epYMB':function(_0x42aea6,_0x1dc4f1,_0x553063,_0x4fcf4f,_0x53bad5,_0x537741,_0x4bd137){return _0x42aea6(_0x1dc4f1,_0x553063,_0x4fcf4f,_0x53bad5,_0x537741,_0x4bd137);},'iRAAe':_0x5d179e(0x1f8),'PBchH':'init-not-called','gkXwr':function(_0x322459,_0x503230,_0x4c60f9,_0x36f1fa,_0x2352d4,_0x4555c8,_0x3ea58c){return _0x322459(_0x503230,_0x4c60f9,_0x36f1fa,_0x2352d4,_0x4555c8,_0x3ea58c);},'ZhPIj':function(_0x535e0c){return _0x535e0c();},'eaScz':_0x5d179e(0x201),'AkwmC':_0x5d179e(0x20c),'mBFSl':'Adding\x20Websocket\x20listeners','UiEZU':function(_0x581efe,_0x567553,_0x59a03c,_0x384cd8){return _0x581efe(_0x567553,_0x59a03c,_0x384cd8);},'izYrl':function(_0x30f448,_0x415643,_0x177396,_0x27d8da,_0x1654c8,_0x41f249,_0x1c3f53){return _0x30f448(_0x415643,_0x177396,_0x27d8da,_0x1654c8,_0x41f249,_0x1c3f53);},'moLLD':function(_0x40dd66,_0x5b8b4b,_0x38812d){return _0x40dd66(_0x5b8b4b,_0x38812d);},'etuUv':_0x5d179e(0x23b),'nGEaw':function(_0x140d1a,_0x526acb){return _0x140d1a===_0x526acb;},'juhVR':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','CqKJB':_0x5d179e(0x1f4),'tXbJo':function(_0x89cc05,_0x2ad1ef){return _0x89cc05===_0x2ad1ef;},'VUjgw':'invalid-grid-id','UYJjF':_0x5d179e(0x236)};let _0x48a01c;try{!_0x211316[_0x5d179e(0x1f0)]&&(logger[_0x5d179e(0x20a)](_0x29eb37[_0x5d179e(0x20d)]),process[_0x5d179e(0x202)](0x1));!fs[_0x5d179e(0x1fb)](_0x29eb37[_0x5d179e(0x1f5)](getCredentialsPath))&&(logger[_0x5d179e(0x20a)](_0x29eb37[_0x5d179e(0x22f)]),await _0x29eb37[_0x5d179e(0x1f7)](sendInstrumentationEvent,_0x211316,_0x29eb37[_0x5d179e(0x21d)],messageTypes[_0x5d179e(0x22c)],_0x29eb37[_0x5d179e(0x20f)],null,_0x211316),process[_0x5d179e(0x202)](0x1));logger[_0x5d179e(0x1ff)]('Stopping\x20grid\x20'+_0x211316['gridId']),await _0x29eb37[_0x5d179e(0x22d)](sendInstrumentationEvent,_0x211316,_0x29eb37[_0x5d179e(0x21d)],messageTypes['INFO'],null,null,_0x211316);const _0x481399=JSON[_0x5d179e(0x229)](fs[_0x5d179e(0x218)](_0x29eb37['ZhPIj'](getCredentialsPath)));global_registry[_0x5d179e(0x22b)]=_0x481399['Browserstack'][_0x5d179e(0x1f3)],global_registry['bstackAccesskey']=_0x481399[_0x5d179e(0x233)][_0x5d179e(0x235)];const _0x3354f7=WS_ENDPOINT[_0x5d179e(0x214)](_0x29eb37[_0x5d179e(0x228)],_0x481399['Browserstack'][_0x5d179e(0x1f3)])[_0x5d179e(0x214)](_0x29eb37['AkwmC'],_0x481399[_0x5d179e(0x233)][_0x5d179e(0x235)]),_0x4aeac8={};_0x4aeac8['WebSocket']=ws,_0x4aeac8[_0x5d179e(0x231)]=0x36ee80,_0x48a01c=new ReconnectingWebSocket(_0x3354f7,[],_0x4aeac8),logger[_0x5d179e(0x21b)](_0x29eb37[_0x5d179e(0x1f2)]),webSocketUtils['addListeners'](_0x48a01c,_0x211316[_0x5d179e(0x20e)],_0x211316['password']);const [_0x50a017,_0x27a79e]=await _0x29eb37[_0x5d179e(0x1ed)](getGridDetails,_0x481399['Browserstack'][_0x5d179e(0x1f3)],_0x481399[_0x5d179e(0x233)]['password'],_0x211316[_0x5d179e(0x1f0)]);if(_0x27a79e){const _0x5e774d=_0x27a79e[_0x5d179e(0x1ff)];global_registry[_0x5d179e(0x208)]=_0x5e774d[_0x5d179e(0x208)],global_registry[_0x5d179e(0x21e)]=_0x5e774d['region'],global_registry[_0x5d179e(0x1fa)]=_0x5e774d[_0x5d179e(0x1fa)];const _0x3070ea=await _0x29eb37['izYrl'](getCloudProviderObject,_0x5e774d[_0x5d179e(0x208)],_0x5e774d[_0x5d179e(0x1fa)],_0x5e774d[_0x5d179e(0x21f)],_0x48a01c,webSocketUtils,_0x211316),[_0x1f9dba,_0x4698a2,_0x4fa4ba,_0x484169,_0x4d65b8,_0x46bcef]=await _0x29eb37[_0x5d179e(0x23a)](createK8sClient,_0x3070ea,_0x211316[_0x5d179e(0x206)]);await _0x29eb37[_0x5d179e(0x23a)](scaleDownHubDeployment,_0x4698a2,_0x5e774d[_0x5d179e(0x21f)]),logger['info'](_0x29eb37[_0x5d179e(0x222)]),process[_0x5d179e(0x202)](0x0);}_0x29eb37['nGEaw'](_0x50a017[_0x5d179e(0x232)],0x191)&&(logger[_0x5d179e(0x20a)](_0x29eb37['juhVR']),await _0x29eb37['izYrl'](sendInstrumentationEvent,_0x211316,_0x29eb37[_0x5d179e(0x21d)],messageTypes[_0x5d179e(0x22c)],_0x29eb37[_0x5d179e(0x200)],null,_0x211316),process['exit'](0x1)),_0x29eb37['tXbJo'](_0x50a017[_0x5d179e(0x232)],0x190)&&(logger['error'](JSON[_0x5d179e(0x229)](_0x50a017[_0x5d179e(0x225)])['message']),await _0x29eb37[_0x5d179e(0x1fc)](sendInstrumentationEvent,_0x211316,_0x29eb37['iRAAe'],messageTypes[_0x5d179e(0x22c)],_0x29eb37['VUjgw'],null,_0x211316),process[_0x5d179e(0x202)](0x1)),logger[_0x5d179e(0x20a)](_0x5d179e(0x238)+JSON[_0x5d179e(0x21a)](_0x50a017)),await _0x29eb37['izYrl'](sendInstrumentationEvent,_0x211316,_0x29eb37[_0x5d179e(0x21d)],messageTypes['ERROR'],_0x29eb37['UYJjF'],_0x50a017,_0x211316),process[_0x5d179e(0x202)](0x1);}catch(_0x407757){const _0x385714='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x407757+'\x20\x0a'+JSON[_0x5d179e(0x21a)](_0x407757[_0x5d179e(0x203)])+'\x20';logger[_0x5d179e(0x20a)](_0x385714),process[_0x5d179e(0x202)](0x1);}};function a21_0x59c1(){const _0x25ab53=['handler','error','desc','<PasswordPlaceholder>','QxWoq','user','PBchH','AexvR','ZGDND','type','610748EuuCGb','replace','grid-id','boolean','help','readFileSync','636850Slazuc','stringify','debug','16CIVLtV','iRAAe','clusterRegion','name','156NBLYtx','35094JLhbFM','etuUv','../../utils/utilityMethods','679noKTGH','body','builder','../../config/constants','eaScz','parse','103811QfqXKt','bstackUsername','ERROR','gkXwr','default','IGVJM','Skip\x20insecure\x20cert\x20verification.','connectionTimeout','statusCode','Browserstack','argv','password','server-error','Stop\x20a\x20running\x20Automation\x20grid.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2631570kGBIXl','moLLD','Grid\x20stoppped.','gcLNI','9KSOJEn','command','UiEZU','../../utils/webSocketUtils','options','gridId','rzMKb','mBFSl','username','unauthorised','BOqZP','usage','epYMB','stop-grid-called','../../utils/instrumentationUtils','clusterName','existsSync','izYrl','2480576AGyeaS','6khUWgR','info','CqKJB','<UsernamePlaceholder>','exit','stack','JGUmJ','description','skipTlsCertVerify','154099iKuiSN','cloudProvider'];a21_0x59c1=function(){return _0x25ab53;};return a21_0x59c1();}
1
+ const a21_0x4a5b6b=a21_0x5ee2;(function(_0x245ca5,_0x367992){const _0x21bb19=a21_0x5ee2,_0x2bb8b0=_0x245ca5();while(!![]){try{const _0x3f602d=parseInt(_0x21bb19(0x104))/0x1+parseInt(_0x21bb19(0x103))/0x2+parseInt(_0x21bb19(0xf2))/0x3*(-parseInt(_0x21bb19(0x134))/0x4)+-parseInt(_0x21bb19(0x102))/0x5+-parseInt(_0x21bb19(0x113))/0x6*(-parseInt(_0x21bb19(0x138))/0x7)+parseInt(_0x21bb19(0xfa))/0x8*(parseInt(_0x21bb19(0x129))/0x9)+-parseInt(_0x21bb19(0x112))/0xa*(parseInt(_0x21bb19(0x11e))/0xb);if(_0x3f602d===_0x367992)break;else _0x2bb8b0['push'](_0x2bb8b0['shift']());}catch(_0x2aa97c){_0x2bb8b0['push'](_0x2bb8b0['shift']());}}}(a21_0x1a5e,0x72776));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4a5b6b(0x110)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x4a5b6b(0x10e)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x4a5b6b(0xff)),{sendInstrumentationEvent}=require(a21_0x4a5b6b(0x109)),webSocketUtils=require(a21_0x4a5b6b(0x111)),{createK8sClient}=require(a21_0x4a5b6b(0xf9)),{getCloudProviderObject}=require(a21_0x4a5b6b(0xf8));function a21_0x1a5e(){const _0xd18b11=['init-not-called','parse','bstackAccesskey','acEpK','TbUpq','IaNSX','473LziaPd','yttUH','Grid\x20stoppped.','xUaBE','usage','cgHqG','ERROR','grid-id','Stop\x20a\x20running\x20Automation\x20grid.','nWdZE','help','7849107RyAHzU','body','unauthorised','addListeners','XFrBH','user','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackUsername','Stopping\x20grid\x20','boolean','4OnycNu','name','connectionTimeout','QAfBQ','56MvpjGW','Adding\x20Websocket\x20listeners','stringify','info','cQNVI','server-error','kxEIH','invalid-grid-id','username','exit','stop','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','password','skipTlsCertVerify','epilogue','nopEj','QgLcf','type','existsSync','odIeX','skip-tls-cert-verify','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','2564193QyOuYd','readFileSync','default','HDTFj','handler','vQKaq','../../cloudproviders/utils','../../utils/createk8sClient','8fILxKW','description','cnTsh','Skip\x20insecure\x20cert\x20verification.','Browserstack','../../utils/gridComponents','region','clusterName','2556420PykiGT','1774280xcLBqL','51907OCCPyZ','<UsernamePlaceholder>','mCoTf','clusterRegion','stack','../../utils/instrumentationUtils','Vxfwl','command','error','replace','../../config/constants','debug','reconnecting-websocket','../../utils/webSocketUtils','144310OuGOlM','483174QmFpiQ','gridId','kJuQB','cloudProvider','message'];a21_0x1a5e=function(){return _0xd18b11;};return a21_0x1a5e();}function a21_0x5ee2(_0x5e8ed0,_0x32ec02){const _0x1a5e42=a21_0x1a5e();return a21_0x5ee2=function(_0x5ee200,_0x567bdf){_0x5ee200=_0x5ee200-0xe4;let _0x1e9c8b=_0x1a5e42[_0x5ee200];return _0x1e9c8b;},a21_0x5ee2(_0x5e8ed0,_0x32ec02);}exports[a21_0x4a5b6b(0x10b)]='grid',exports['desc']=a21_0x4a5b6b(0x126),exports['builder']=function(_0x82ad18){const _0xffc5cd=a21_0x4a5b6b,_0x201a96={};_0x201a96['vQKaq']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x201a96[_0xffc5cd(0xeb)]='string',_0x201a96[_0xffc5cd(0x127)]=_0xffc5cd(0xfd),_0x201a96[_0xffc5cd(0x13e)]=_0xffc5cd(0x133),_0x201a96[_0xffc5cd(0x137)]=_0xffc5cd(0x128);const _0x4d4b87=_0x201a96,_0x4baa3d={};_0x4baa3d[_0xffc5cd(0xfb)]=_0x4d4b87[_0xffc5cd(0xf7)],_0x4baa3d['type']=_0x4d4b87[_0xffc5cd(0xeb)];const _0x3eb153={};_0x3eb153['description']=_0x4d4b87[_0xffc5cd(0x127)],_0x3eb153[_0xffc5cd(0xed)]=_0x4d4b87['kxEIH'],_0x3eb153[_0xffc5cd(0xf4)]=![];const _0x3478fc={};return _0x3478fc[_0xffc5cd(0x125)]=_0x4baa3d,_0x3478fc[_0xffc5cd(0xf0)]=_0x3eb153,_0x82ad18[_0xffc5cd(0x122)](HELP_HEADER_MESSAGE[_0xffc5cd(0xe6)])[_0xffc5cd(0xea)](HELP_FOOTER_MESSAGE)['options'](_0x3478fc)[_0xffc5cd(0x128)](_0x4d4b87[_0xffc5cd(0x137)])[_0xffc5cd(0x12f)];},exports[a21_0x4a5b6b(0xf6)]=async function(_0x3b019c){const _0x5eb61a=a21_0x4a5b6b,_0x1c7145={'AQMbO':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','hxzKl':function(_0xb62a31){return _0xb62a31();},'acEpK':_0x5eb61a(0xe7),'HDTFj':function(_0x1ff3ed,_0x2538bd,_0x2d442d,_0x2bfd19,_0x206f7b,_0x37bcf4,_0x26f980){return _0x1ff3ed(_0x2538bd,_0x2d442d,_0x2bfd19,_0x206f7b,_0x37bcf4,_0x26f980);},'kJuQB':'stop-grid-called','QgLcf':_0x5eb61a(0x118),'cQNVI':_0x5eb61a(0x105),'mCoTf':'<PasswordPlaceholder>','Vxfwl':_0x5eb61a(0x139),'XFrBH':function(_0x100494,_0x1c16bb,_0x1ec424,_0x5d95e2){return _0x100494(_0x1c16bb,_0x1ec424,_0x5d95e2);},'IaNSX':function(_0x1cd0d1,_0x2e2270,_0x56de7b,_0x283c64,_0x415ba2,_0x26ab5d,_0x39ccf2){return _0x1cd0d1(_0x2e2270,_0x56de7b,_0x283c64,_0x415ba2,_0x26ab5d,_0x39ccf2);},'cgHqG':function(_0x1effd4,_0xc205b4,_0x3c464d){return _0x1effd4(_0xc205b4,_0x3c464d);},'cnTsh':_0x5eb61a(0x120),'odIeX':function(_0xfbe4f3,_0x766665){return _0xfbe4f3===_0x766665;},'TbUpq':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','nMYwj':_0x5eb61a(0x12b),'xUaBE':_0x5eb61a(0x13f),'yttUH':_0x5eb61a(0x13d)};let _0x93bcf8;try{!_0x3b019c['gridId']&&(logger[_0x5eb61a(0x10c)](_0x1c7145['AQMbO']),process[_0x5eb61a(0xe5)](0x1));!fs[_0x5eb61a(0xee)](_0x1c7145['hxzKl'](getCredentialsPath))&&(logger[_0x5eb61a(0x10c)](_0x1c7145[_0x5eb61a(0x11b)]),await _0x1c7145[_0x5eb61a(0xf5)](sendInstrumentationEvent,_0x3b019c,_0x1c7145[_0x5eb61a(0x115)],messageTypes[_0x5eb61a(0x124)],_0x1c7145[_0x5eb61a(0xec)],null,_0x3b019c),process[_0x5eb61a(0xe5)](0x1));logger[_0x5eb61a(0x13b)](_0x5eb61a(0x132)+_0x3b019c[_0x5eb61a(0x114)]),await _0x1c7145[_0x5eb61a(0xf5)](sendInstrumentationEvent,_0x3b019c,_0x1c7145[_0x5eb61a(0x115)],messageTypes['INFO'],null,null,_0x3b019c);const _0x671914=JSON[_0x5eb61a(0x119)](fs[_0x5eb61a(0xf3)](_0x1c7145['hxzKl'](getCredentialsPath)));global_registry[_0x5eb61a(0x131)]=_0x671914[_0x5eb61a(0xfe)][_0x5eb61a(0xe4)],global_registry[_0x5eb61a(0x11a)]=_0x671914[_0x5eb61a(0xfe)]['password'];const _0x106ef0=WS_ENDPOINT[_0x5eb61a(0x10d)](_0x1c7145[_0x5eb61a(0x13c)],_0x671914['Browserstack'][_0x5eb61a(0xe4)])[_0x5eb61a(0x10d)](_0x1c7145[_0x5eb61a(0x106)],_0x671914[_0x5eb61a(0xfe)]['password']),_0x4a17d3={};_0x4a17d3['WebSocket']=ws,_0x4a17d3[_0x5eb61a(0x136)]=0x36ee80,_0x93bcf8=new ReconnectingWebSocket(_0x106ef0,[],_0x4a17d3),logger[_0x5eb61a(0x10f)](_0x1c7145[_0x5eb61a(0x10a)]),webSocketUtils[_0x5eb61a(0x12c)](_0x93bcf8,_0x3b019c[_0x5eb61a(0x12e)],_0x3b019c[_0x5eb61a(0xe8)]);const [_0x2679fa,_0x2a94dc]=await _0x1c7145[_0x5eb61a(0x12d)](getGridDetails,_0x671914[_0x5eb61a(0xfe)][_0x5eb61a(0xe4)],_0x671914['Browserstack'][_0x5eb61a(0xe8)],_0x3b019c[_0x5eb61a(0x114)]);if(_0x2a94dc){const _0x578ffa=_0x2a94dc[_0x5eb61a(0x13b)];global_registry[_0x5eb61a(0x116)]=_0x578ffa[_0x5eb61a(0x116)],global_registry[_0x5eb61a(0x107)]=_0x578ffa[_0x5eb61a(0x100)],global_registry[_0x5eb61a(0x101)]=_0x578ffa[_0x5eb61a(0x101)];const _0x101625=await _0x1c7145[_0x5eb61a(0x11d)](getCloudProviderObject,_0x578ffa[_0x5eb61a(0x116)],_0x578ffa['clusterName'],_0x578ffa[_0x5eb61a(0x135)],_0x93bcf8,webSocketUtils,_0x3b019c),[_0x23fe77,_0x26332b,_0x97da99,_0x3ef76e,_0x1bd1db,_0x30a240]=await _0x1c7145[_0x5eb61a(0x123)](createK8sClient,_0x101625,_0x3b019c[_0x5eb61a(0xe9)]);await _0x1c7145[_0x5eb61a(0x123)](scaleDownHubDeployment,_0x26332b,_0x578ffa[_0x5eb61a(0x135)]),logger[_0x5eb61a(0x13b)](_0x1c7145[_0x5eb61a(0xfc)]),process['exit'](0x0);}_0x1c7145[_0x5eb61a(0xef)](_0x2679fa['statusCode'],0x191)&&(logger[_0x5eb61a(0x10c)](_0x1c7145[_0x5eb61a(0x11c)]),await _0x1c7145[_0x5eb61a(0xf5)](sendInstrumentationEvent,_0x3b019c,_0x1c7145[_0x5eb61a(0x115)],messageTypes[_0x5eb61a(0x124)],_0x1c7145['nMYwj'],null,_0x3b019c),process[_0x5eb61a(0xe5)](0x1)),_0x1c7145[_0x5eb61a(0xef)](_0x2679fa['statusCode'],0x190)&&(logger['error'](JSON['parse'](_0x2679fa[_0x5eb61a(0x12a)])[_0x5eb61a(0x117)]),await _0x1c7145['HDTFj'](sendInstrumentationEvent,_0x3b019c,_0x1c7145[_0x5eb61a(0x115)],messageTypes[_0x5eb61a(0x124)],_0x1c7145[_0x5eb61a(0x121)],null,_0x3b019c),process['exit'](0x1)),logger[_0x5eb61a(0x10c)](_0x5eb61a(0x130)+JSON[_0x5eb61a(0x13a)](_0x2679fa)),await _0x1c7145[_0x5eb61a(0xf5)](sendInstrumentationEvent,_0x3b019c,_0x1c7145[_0x5eb61a(0x115)],messageTypes[_0x5eb61a(0x124)],_0x1c7145[_0x5eb61a(0x11f)],_0x2679fa,_0x3b019c),process[_0x5eb61a(0xe5)](0x1);}catch(_0x28a62d){const _0x54dbb7=_0x5eb61a(0xf1)+_0x28a62d+'\x20\x0a'+JSON[_0x5eb61a(0x13a)](_0x28a62d[_0x5eb61a(0x108)])+'\x20';logger[_0x5eb61a(0x10c)](_0x54dbb7),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x488d36=a22_0x1608;(function(_0x1d1e8d,_0x1f8873){const _0x3b5509=a22_0x1608,_0x4a9b1d=_0x1d1e8d();while(!![]){try{const _0x4446ca=-parseInt(_0x3b5509(0x218))/0x1*(parseInt(_0x3b5509(0x224))/0x2)+parseInt(_0x3b5509(0x1b6))/0x3+parseInt(_0x3b5509(0x21c))/0x4+parseInt(_0x3b5509(0x212))/0x5+-parseInt(_0x3b5509(0x1c2))/0x6*(-parseInt(_0x3b5509(0x220))/0x7)+-parseInt(_0x3b5509(0x1c6))/0x8+-parseInt(_0x3b5509(0x1d5))/0x9*(parseInt(_0x3b5509(0x1ea))/0xa);if(_0x4446ca===_0x1f8873)break;else _0x4a9b1d['push'](_0x4a9b1d['shift']());}catch(_0x3e32a6){_0x4a9b1d['push'](_0x4a9b1d['shift']());}}}(a22_0x4234,0x1f367),require(a22_0x488d36(0x1c0))[a22_0x488d36(0x1f5)]());function a22_0x4234(){const _0x3fa4fa=['azure','preprod','root','DEFAULT_CLUSTER_DETAILS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','TURBOSCALE_DEPLOYMENT','CLUSTER_AUTOSCALER_STACK_NAME','GCP','create','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','pre-check','api-preprod.bsstag.com','Value','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BrowserStack-Automate-TurboScale','BrowserStack','unknown','prod','INFO','ALL_SUPPORTED_CLOUD_PROVIDERS','RESOURCES','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','Key','api-devhst.bsstag.com','194855TVIOon','cliRunFinished','success','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','CLUSTER','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','9271JFcowV','wss://','CLI_ARGS_REGEX','NULL','966656mkyuFK','init','high-scale-grid-cluster','browserstack:service','497mdoMbi','pre_check','BSTACK-ATS-CLUSTER','pre-prod','34mFdomf','ERROR','SUCCESS','push','DASHBOARD_ENDPOINT','grid-api.browserstack.com','CLI_RUN_FINISHED','71346CiTBaK','WS_EVENTS','us-east-1','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','browserstack:managedBy','global_registry','gridUrl','start','GRID_URL','warning','dotenv','connect','16734AmArSW','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','aws','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','635760wLSIfk','[REDACTED]','AZURE','RAW_ARGS_REGEX','CP_CONFIG_FILE','HST_CLUSTER_TAGS','resourceInfo','env','REGION','IAM_USER_NAME','browserstack-turboscale-grid','api.browserstack.com','gridProfile','TURBOSCALE_CUSTOM_TAGS','AG_API_URL','36tBNfej','BS_API_URL','grid','list','BSTACK-ATS-CLUSTER-AUTOSCALER','TRIAL_GRID_URL','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','error','grid-api-devhst.bsstag.com','LINK_MESSAGE','info','grid.browserstack.com','CLI_RUN_STARTED','split','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','AWS','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','messageTypes','staging','grid-profile','343780ypnhim','LOG','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','CLUSTER_DEP_STACK_NAME','UNKNOWN','WARNING','HELP_HEADER_MESSAGE','grid-devhst.bsstag.com','credentials','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','MessageDescription','config','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','grid-api-preprod.bsstag.com'];a22_0x4234=function(){return _0x3fa4fa;};return a22_0x4234();}let gridURL=a22_0x488d36(0x1e0),bsApiUrl=a22_0x488d36(0x1d1),agApiUrl=a22_0x488d36(0x229);function a22_0x1608(_0x2aa3cc,_0x5f5c03){const _0x4234b1=a22_0x4234();return a22_0x1608=function(_0x16084f,_0x2832d8){_0x16084f=_0x16084f-0x1b5;let _0x52c050=_0x4234b1[_0x16084f];return _0x52c050;},a22_0x1608(_0x2aa3cc,_0x5f5c03);}const _env=(process[a22_0x488d36(0x1cd)]['BROWSERSTACK_ENV']||a22_0x488d36(0x20b))['toLowerCase']();if(_env===a22_0x488d36(0x1e8)||_env==='stag')gridURL=a22_0x488d36(0x1f1),bsApiUrl=a22_0x488d36(0x211),agApiUrl=a22_0x488d36(0x1dd);else(_env===a22_0x488d36(0x1f9)||_env===a22_0x488d36(0x223))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x488d36(0x204),agApiUrl=a22_0x488d36(0x1f7));exports['DASHBOARD_ENDPOINT']=process[a22_0x488d36(0x1cd)][a22_0x488d36(0x228)]||gridURL,exports[a22_0x488d36(0x1d6)]=process[a22_0x488d36(0x1cd)][a22_0x488d36(0x1d6)]||bsApiUrl,exports[a22_0x488d36(0x1d4)]=process[a22_0x488d36(0x1cd)][a22_0x488d36(0x1d4)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x488d36(0x219)+this[a22_0x488d36(0x1d4)]+a22_0x488d36(0x1f3),exports[a22_0x488d36(0x1ca)]=a22_0x488d36(0x1f2),exports[a22_0x488d36(0x1cf)]='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a22_0x488d36(0x1e4)]=a22_0x488d36(0x1c4),exports[a22_0x488d36(0x1ed)]=a22_0x488d36(0x222),exports[a22_0x488d36(0x1fe)]=a22_0x488d36(0x1d9),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x488d36(0x1fd)]=a22_0x488d36(0x1d0),exports[a22_0x488d36(0x1c8)]=a22_0x488d36(0x1f8),exports['GCP']='gcp',exports[a22_0x488d36(0x20d)]=[this[a22_0x488d36(0x1e4)],this[a22_0x488d36(0x1c8)],this[a22_0x488d36(0x1ff)]];const a22_0x12ee72={};a22_0x12ee72[a22_0x488d36(0x210)]=a22_0x488d36(0x1ba),a22_0x12ee72['Value']=a22_0x488d36(0x209);const a22_0x2a8746={};a22_0x2a8746[a22_0x488d36(0x210)]=a22_0x488d36(0x21f),a22_0x2a8746[a22_0x488d36(0x205)]=a22_0x488d36(0x208);const common_hst_tags_list=[a22_0x12ee72,a22_0x2a8746];if(process[a22_0x488d36(0x1cd)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x488d36(0x1cd)][a22_0x488d36(0x1d3)][a22_0x488d36(0x1e2)](',');parsedTags['forEach'](_0x361934=>{const _0x2a5553=a22_0x488d36,_0x358832=_0x361934[_0x2a5553(0x1e2)](':'),_0x441e6e={};_0x441e6e[_0x2a5553(0x210)]=_0x358832[0x0],_0x441e6e[_0x2a5553(0x205)]=_0x358832[0x1],common_hst_tags_list[_0x2a5553(0x227)](_0x441e6e);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x4adf16={};a22_0x4adf16[a22_0x488d36(0x1ba)]=a22_0x488d36(0x209),a22_0x4adf16['browserstack:service']=a22_0x488d36(0x208),exports[a22_0x488d36(0x1cb)]=a22_0x4adf16,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x488d36(0x1e4)]];const a22_0x19cdca={};a22_0x19cdca[a22_0x488d36(0x1eb)]='log',a22_0x19cdca[a22_0x488d36(0x20e)]=a22_0x488d36(0x1cc),a22_0x19cdca[a22_0x488d36(0x1be)]=a22_0x488d36(0x1bc),a22_0x19cdca[a22_0x488d36(0x1e1)]='cliRunStarted',a22_0x19cdca[a22_0x488d36(0x1b5)]=a22_0x488d36(0x213),exports[a22_0x488d36(0x1b7)]=a22_0x19cdca,exports[a22_0x488d36(0x1bb)]={},exports[a22_0x488d36(0x1de)]=a22_0x488d36(0x1b9);const a22_0x53d127={};a22_0x53d127[a22_0x488d36(0x1fa)]=a22_0x488d36(0x1fc)+this[a22_0x488d36(0x1de)],a22_0x53d127[a22_0x488d36(0x21d)]=a22_0x488d36(0x202)+this[a22_0x488d36(0x1de)],a22_0x53d127['configure']=a22_0x488d36(0x207)+this[a22_0x488d36(0x1de)],a22_0x53d127[a22_0x488d36(0x200)]=a22_0x488d36(0x20f)+this[a22_0x488d36(0x1de)],a22_0x53d127[a22_0x488d36(0x1d8)]={},a22_0x53d127[a22_0x488d36(0x1e5)]=a22_0x488d36(0x1ec)+this[a22_0x488d36(0x1de)],a22_0x53d127[a22_0x488d36(0x1c1)]=a22_0x488d36(0x1c5)+this[a22_0x488d36(0x1de)],a22_0x53d127[a22_0x488d36(0x1bd)]=a22_0x488d36(0x201)+this['LINK_MESSAGE'],a22_0x53d127['stop']=a22_0x488d36(0x1f6)+this[a22_0x488d36(0x1de)],a22_0x53d127[a22_0x488d36(0x221)]=a22_0x488d36(0x1db)+this[a22_0x488d36(0x1de)],a22_0x53d127[a22_0x488d36(0x1d8)][a22_0x488d36(0x1fa)]=a22_0x488d36(0x1e3)+this[a22_0x488d36(0x1de)],a22_0x53d127[a22_0x488d36(0x1d8)][a22_0x488d36(0x1d7)]=a22_0x488d36(0x206)+this[a22_0x488d36(0x1de)],a22_0x53d127[a22_0x488d36(0x1d8)][a22_0x488d36(0x1d2)]=a22_0x488d36(0x1e6)+this[a22_0x488d36(0x1de)],exports[a22_0x488d36(0x1f0)]=a22_0x53d127,exports['HELP_FOOTER_MESSAGE']=a22_0x488d36(0x217);const a22_0x255b5f={};a22_0x255b5f[a22_0x488d36(0x226)]=a22_0x488d36(0x214),a22_0x255b5f[a22_0x488d36(0x225)]=a22_0x488d36(0x1dc),a22_0x255b5f[a22_0x488d36(0x20c)]=a22_0x488d36(0x1df),a22_0x255b5f[a22_0x488d36(0x1ef)]=a22_0x488d36(0x1bf),a22_0x255b5f[a22_0x488d36(0x1ee)]=a22_0x488d36(0x20a),a22_0x255b5f[a22_0x488d36(0x21b)]=null,exports[a22_0x488d36(0x1e7)]=a22_0x255b5f,exports[a22_0x488d36(0x21a)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x488d36(0x1c9)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x488d36(0x1c7);const a22_0x113843={};a22_0x113843[a22_0x488d36(0x1e9)]=a22_0x488d36(0x215);const a22_0x348435={};a22_0x348435[a22_0x488d36(0x203)]=a22_0x113843,exports[a22_0x488d36(0x1f4)]=a22_0x348435,exports[a22_0x488d36(0x1da)]=a22_0x488d36(0x1c3);const a22_0x4a548e={};a22_0x4a548e[a22_0x488d36(0x216)]=a22_0x488d36(0x21e),a22_0x4a548e['CLOUD_PROVIDER']=a22_0x488d36(0x1c4),a22_0x4a548e[a22_0x488d36(0x1ce)]=a22_0x488d36(0x1b8),exports[a22_0x488d36(0x1fb)]=a22_0x4a548e;
1
+ const a22_0x411f02=a22_0x2f41;(function(_0x2fa4f2,_0x266cee){const _0x3eb365=a22_0x2f41,_0x2fc5b9=_0x2fa4f2();while(!![]){try{const _0x914129=-parseInt(_0x3eb365(0xd1))/0x1*(parseInt(_0x3eb365(0xec))/0x2)+parseInt(_0x3eb365(0xfe))/0x3*(parseInt(_0x3eb365(0xfd))/0x4)+parseInt(_0x3eb365(0xa1))/0x5+-parseInt(_0x3eb365(0xa4))/0x6*(-parseInt(_0x3eb365(0xcc))/0x7)+-parseInt(_0x3eb365(0xb3))/0x8*(-parseInt(_0x3eb365(0xf1))/0x9)+parseInt(_0x3eb365(0x101))/0xa*(parseInt(_0x3eb365(0xd4))/0xb)+-parseInt(_0x3eb365(0xf2))/0xc;if(_0x914129===_0x266cee)break;else _0x2fc5b9['push'](_0x2fc5b9['shift']());}catch(_0x2675c6){_0x2fc5b9['push'](_0x2fc5b9['shift']());}}}(a22_0xa19c,0x21060),require(a22_0x411f02(0xbc))['config']());function a22_0xa19c(){const _0x5f3eb3=['\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','split','init','forEach','COMMON_HST_TAGS','109034yoNNWl','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','CLUSTER_HUB_HA_STACK_NAME','gcp','7362NJZFrP','5685120praoyP','wss://','BrowserStack-Automate-TurboScale','connect','grid-preprod.bsstag.com','DEFAULT_CLUSTER_DETAILS','DEFAULT_GRID_NAME','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','resourceInfo','CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','50888RudKgH','6SBrJzO','Value','pre_check','52610NKeiZQ','start','list','NULL','configure','CLI_ARGS_REGEX','high-scale-grid','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','warning','BSTACK-ATS-CLUSTER-AUTOSCALER','REGION','grid.browserstack.com','ALL_SUPPORTED_CLOUD_PROVIDERS','WS_ENDPOINT','cliRunStarted','1011050LIZmSj','HELP_HEADER_MESSAGE','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','30CEzode','SUCCESS','high-scale-grid-cluster','SUPPORTED_CLOUD_PROVIDERS','BROWSERSTACK_ENV','MessageDescription','WARNING','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','TURBOSCALE_DEPLOYMENT','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','api.browserstack.com','grid-devhst.bsstag.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','HELP_FOOTER_MESSAGE','1824aQFIHv','IAM_USER_NAME','api-preprod.bsstag.com','grid','stag','WS_EVENTS','RESOURCES','pre-check','cliRunFinished','dotenv','grid-api-preprod.bsstag.com','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','pre-prod','success','INFO','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','HST_CLUSTER_TAGS','grid-api.browserstack.com','error','CLOUD_PROVIDER','CLUSTER_DEP_STACK_NAME','delete','azure','preprod','REDACTED','217203ozGGvy','Key','grid-api-devhst.bsstag.com','prod','browserstack:managedBy','4foFUFQ','AZURE','BSTACK-ATS-CLUSTER-HUB-HA','539MeIBvQ','LINK_MESSAGE','AG_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','BrowserStack','AWS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','CLI_RUN_FINISHED','browserstack:service','RAW_ARGS_REGEX','env','GRID_URL','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','BSTACK-ATS-CLUSTER','BS_API_URL','gridUrl','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','stop','[REDACTED]'];a22_0xa19c=function(){return _0x5f3eb3;};return a22_0xa19c();}let gridURL=a22_0x411f02(0x9d),bsApiUrl=a22_0x411f02(0xaf),agApiUrl=a22_0x411f02(0xc4);const _env=(process[a22_0x411f02(0xde)][a22_0x411f02(0xa8)]||a22_0x411f02(0xcf))['toLowerCase']();if(_env==='staging'||_env===a22_0x411f02(0xb7))gridURL=a22_0x411f02(0xb0),bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x411f02(0xce);else(_env===a22_0x411f02(0xca)||_env===a22_0x411f02(0xbf))&&(gridURL=a22_0x411f02(0xf6),bsApiUrl=a22_0x411f02(0xb5),agApiUrl=a22_0x411f02(0xbd));exports['DASHBOARD_ENDPOINT']=process['env']['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x411f02(0xe2)]=process[a22_0x411f02(0xde)][a22_0x411f02(0xe2)]||bsApiUrl,exports[a22_0x411f02(0xd6)]=process['env'][a22_0x411f02(0xd6)]||agApiUrl,exports[a22_0x411f02(0x9f)]=a22_0x411f02(0xf3)+this['AG_API_URL']+a22_0x411f02(0xa3),exports['CP_CONFIG_FILE']='credentials',exports[a22_0x411f02(0xb4)]='BrowserStackIAMUser',exports[a22_0x411f02(0xf8)]=a22_0x411f02(0x107),exports['AWS']='aws',exports[a22_0x411f02(0xc7)]=a22_0x411f02(0xe1),exports[a22_0x411f02(0xfb)]=a22_0x411f02(0x9b),exports[a22_0x411f02(0xef)]=a22_0x411f02(0xd3),exports[a22_0x411f02(0xac)]='browserstack-turboscale-grid',exports[a22_0x411f02(0xd2)]=a22_0x411f02(0xc9),exports['GCP']=a22_0x411f02(0xf0),exports[a22_0x411f02(0x9e)]=[this['AWS'],this[a22_0x411f02(0xd2)],this['GCP']];const a22_0x1de695={};a22_0x1de695['Key']=a22_0x411f02(0xd0),a22_0x1de695['Value']=a22_0x411f02(0xd8);const a22_0x3ff243={};a22_0x3ff243['Key']=a22_0x411f02(0xdc),a22_0x3ff243[a22_0x411f02(0xff)]=a22_0x411f02(0xf4);const common_hst_tags_list=[a22_0x1de695,a22_0x3ff243];if(process[a22_0x411f02(0xde)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x411f02(0xe8)](',');parsedTags[a22_0x411f02(0xea)](_0x19292d=>{const _0x22fb18=a22_0x411f02,_0xa68869=_0x19292d['split'](':'),_0x41f859={};_0x41f859[_0x22fb18(0xcd)]=_0xa68869[0x0],_0x41f859[_0x22fb18(0xff)]=_0xa68869[0x1],common_hst_tags_list['push'](_0x41f859);});}exports[a22_0x411f02(0xeb)]=common_hst_tags_list;const a22_0x5b7963={};function a22_0x2f41(_0x4830a4,_0x27287a){const _0xa19c10=a22_0xa19c();return a22_0x2f41=function(_0x2f418f,_0x274dfd){_0x2f418f=_0x2f418f-0x9a;let _0x26b1a8=_0xa19c10[_0x2f418f];return _0x26b1a8;},a22_0x2f41(_0x4830a4,_0x27287a);}a22_0x5b7963[a22_0x411f02(0xd0)]=a22_0x411f02(0xd8),a22_0x5b7963[a22_0x411f02(0xdc)]=a22_0x411f02(0xf4),exports[a22_0x411f02(0xc3)]=a22_0x5b7963,exports[a22_0x411f02(0xa7)]=[this[a22_0x411f02(0xd9)]];const a22_0x2e4b79={};a22_0x2e4b79['LOG']='log',a22_0x2e4b79[a22_0x411f02(0xb9)]=a22_0x411f02(0xfa),a22_0x2e4b79[a22_0x411f02(0xdf)]=a22_0x411f02(0xe3),a22_0x2e4b79['CLI_RUN_STARTED']=a22_0x411f02(0xa0),a22_0x2e4b79[a22_0x411f02(0xdb)]=a22_0x411f02(0xbb),exports[a22_0x411f02(0xb8)]=a22_0x2e4b79,exports['global_registry']={},exports[a22_0x411f02(0xd5)]=a22_0x411f02(0xed);const a22_0x36848d={};a22_0x36848d['root']=a22_0x411f02(0xbe)+this[a22_0x411f02(0xd5)],a22_0x36848d[a22_0x411f02(0xe9)]=a22_0x411f02(0xf9)+this[a22_0x411f02(0xd5)],a22_0x36848d[a22_0x411f02(0x105)]=a22_0x411f02(0xe4)+this[a22_0x411f02(0xd5)],a22_0x36848d['create']=a22_0x411f02(0xee)+this[a22_0x411f02(0xd5)],a22_0x36848d[a22_0x411f02(0x103)]={},a22_0x36848d[a22_0x411f02(0xc8)]=a22_0x411f02(0xc2)+this[a22_0x411f02(0xd5)],a22_0x36848d[a22_0x411f02(0xf5)]=a22_0x411f02(0xfc)+this[a22_0x411f02(0xd5)],a22_0x36848d[a22_0x411f02(0x102)]=a22_0x411f02(0xe0)+this[a22_0x411f02(0xd5)],a22_0x36848d[a22_0x411f02(0xe5)]=a22_0x411f02(0xad)+this['LINK_MESSAGE'],a22_0x36848d[a22_0x411f02(0x100)]=a22_0x411f02(0xab)+this[a22_0x411f02(0xd5)],a22_0x36848d[a22_0x411f02(0x103)]['root']=a22_0x411f02(0xd7)+this[a22_0x411f02(0xd5)],a22_0x36848d[a22_0x411f02(0x103)][a22_0x411f02(0xb6)]=a22_0x411f02(0xe7)+this[a22_0x411f02(0xd5)],a22_0x36848d[a22_0x411f02(0x103)]['gridProfile']=a22_0x411f02(0xae)+this['LINK_MESSAGE'],exports[a22_0x411f02(0xa2)]=a22_0x36848d,exports[a22_0x411f02(0xb2)]=a22_0x411f02(0xda);const a22_0x28e0d4={};a22_0x28e0d4[a22_0x411f02(0xa5)]=a22_0x411f02(0xc0),a22_0x28e0d4['ERROR']=a22_0x411f02(0xc5),a22_0x28e0d4[a22_0x411f02(0xc1)]='info',a22_0x28e0d4[a22_0x411f02(0xaa)]=a22_0x411f02(0x9a),a22_0x28e0d4['UNKNOWN']='unknown',a22_0x28e0d4[a22_0x411f02(0x104)]=null,exports['messageTypes']=a22_0x28e0d4,exports[a22_0x411f02(0x106)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x411f02(0xdd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x411f02(0xcb)]=a22_0x411f02(0xe6);const a22_0x1efaf4={};a22_0x1efaf4['grid-profile']=a22_0x411f02(0xb1);const a22_0x10a96c={};a22_0x10a96c[a22_0x411f02(0xba)]=a22_0x1efaf4,exports[a22_0x411f02(0xa9)]=a22_0x10a96c,exports['TRIAL_GRID_URL']=a22_0x411f02(0x108);const a22_0x12fbf1={};a22_0x12fbf1['CLUSTER']=a22_0x411f02(0xa6),a22_0x12fbf1[a22_0x411f02(0xc6)]='aws',a22_0x12fbf1[a22_0x411f02(0x9c)]='us-east-1',exports[a22_0x411f02(0xf7)]=a22_0x12fbf1;
@@ -1 +1 @@
1
- const a23_0x2970a7=a23_0xfcdc;(function(_0xf6f3b8,_0x23e8ae){const _0x5255ce=a23_0xfcdc,_0x39a4db=_0xf6f3b8();while(!![]){try{const _0x4fe97c=parseInt(_0x5255ce(0x1b7))/0x1+parseInt(_0x5255ce(0x1c2))/0x2*(parseInt(_0x5255ce(0x1cd))/0x3)+parseInt(_0x5255ce(0x1b3))/0x4+-parseInt(_0x5255ce(0x1c4))/0x5*(-parseInt(_0x5255ce(0x1c1))/0x6)+parseInt(_0x5255ce(0x1ce))/0x7+parseInt(_0x5255ce(0x1b4))/0x8*(-parseInt(_0x5255ce(0x1cb))/0x9)+-parseInt(_0x5255ce(0x1b9))/0xa;if(_0x4fe97c===_0x23e8ae)break;else _0x39a4db['push'](_0x39a4db['shift']());}catch(_0x9c6260){_0x39a4db['push'](_0x39a4db['shift']());}}}(a23_0x2f16,0xbc52e));function a23_0xfcdc(_0x20b033,_0x4a0a2b){const _0x2f1686=a23_0x2f16();return a23_0xfcdc=function(_0xfcdc84,_0x4c1551){_0xfcdc84=_0xfcdc84-0x1b2;let _0x24cc49=_0x2f1686[_0xfcdc84];return _0x24cc49;},a23_0xfcdc(_0x20b033,_0x4a0a2b);}const winston=require(a23_0x2970a7(0x1ba)),fs=require('fs'),path=require(a23_0x2970a7(0x1be)),logDir=a23_0x2970a7(0x1c8);!fs['existsSync'](logDir)&&fs[a23_0x2970a7(0x1cc)](logDir);const a23_0x1150f1={};a23_0x1150f1[a23_0x2970a7(0x1b2)]=a23_0x2970a7(0x1bf);const a23_0x2dd3cf={};a23_0x2dd3cf[a23_0x2970a7(0x1b8)]=!![];const a23_0x16e8f1={};a23_0x16e8f1[a23_0x2970a7(0x1d1)]=a23_0x2970a7(0x1b5),exports[a23_0x2970a7(0x1c6)]=new winston[(a23_0x2970a7(0x1c7))]({'format':winston[a23_0x2970a7(0x1b2)][a23_0x2970a7(0x1cf)](winston[a23_0x2970a7(0x1b2)][a23_0x2970a7(0x1b6)](a23_0x1150f1),winston[a23_0x2970a7(0x1b2)][a23_0x2970a7(0x1bb)](a23_0x2dd3cf),winston['format'][a23_0x2970a7(0x1c3)](_0x487fe3=>_0x487fe3[a23_0x2970a7(0x1b6)]+'\x20-\x20'+_0x487fe3[a23_0x2970a7(0x1b8)]+':\x20'+_0x487fe3[a23_0x2970a7(0x1bc)])),'transports':[new winston['transports']['Console'](a23_0x16e8f1),new winston[(a23_0x2970a7(0x1ca))]['File']({'filename':path[a23_0x2970a7(0x1c5)](logDir,a23_0x2970a7(0x1bd)),'level':a23_0x2970a7(0x1c9)})]});function a23_0x2f16(){const _0x4303e4=['printf','35wKyisw','join','logger','createLogger','log','debug','transports','9WbIYQc','mkdirSync','1430958bnfeRT','2620422AeDqKz','combine','usage.log','name','format','1210304MiQxGO','11413016dUMZsB','console.info','timestamp','882154ASftlJ','level','8648470HeZNbc','winston','colorize','message','events.log','path','YYYY-MM-DD\x20HH:mm:ss','File','62412ZfNjTe','6PHspAp'];a23_0x2f16=function(){return _0x4303e4;};return a23_0x2f16();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x2970a7(0x1ca))][(a23_0x2970a7(0x1c0))]({'filename':path[a23_0x2970a7(0x1c5)](logDir,a23_0x2970a7(0x1d0)),'level':a23_0x2970a7(0x1c9)})]};exports['fileLogger']=new winston[(a23_0x2970a7(0x1c7))](winstonFileLoggerParams);
1
+ const a23_0x5ee8e8=a23_0x9ac2;(function(_0x7f9a0e,_0x531c95){const _0x176333=a23_0x9ac2,_0x1e3b3b=_0x7f9a0e();while(!![]){try{const _0x83936=-parseInt(_0x176333(0x129))/0x1*(-parseInt(_0x176333(0x123))/0x2)+parseInt(_0x176333(0x10a))/0x3+parseInt(_0x176333(0x126))/0x4*(-parseInt(_0x176333(0x10c))/0x5)+-parseInt(_0x176333(0x117))/0x6+parseInt(_0x176333(0x114))/0x7*(-parseInt(_0x176333(0x112))/0x8)+-parseInt(_0x176333(0x11e))/0x9*(-parseInt(_0x176333(0x11b))/0xa)+-parseInt(_0x176333(0x115))/0xb*(parseInt(_0x176333(0x124))/0xc);if(_0x83936===_0x531c95)break;else _0x1e3b3b['push'](_0x1e3b3b['shift']());}catch(_0x456c76){_0x1e3b3b['push'](_0x1e3b3b['shift']());}}}(a23_0x5b25,0xc0575));const winston=require('winston'),fs=require('fs'),path=require(a23_0x5ee8e8(0x125)),logDir='log';!fs[a23_0x5ee8e8(0x119)](logDir)&&fs['mkdirSync'](logDir);const a23_0x4ee772={};a23_0x4ee772['format']=a23_0x5ee8e8(0x121);const a23_0x23d3be={};a23_0x23d3be[a23_0x5ee8e8(0x113)]=!![];const a23_0x617d29={};a23_0x617d29[a23_0x5ee8e8(0x10d)]=a23_0x5ee8e8(0x11c),exports[a23_0x5ee8e8(0x10b)]=new winston['createLogger']({'format':winston[a23_0x5ee8e8(0x12a)][a23_0x5ee8e8(0x110)](winston[a23_0x5ee8e8(0x12a)][a23_0x5ee8e8(0x11d)](a23_0x4ee772),winston[a23_0x5ee8e8(0x12a)][a23_0x5ee8e8(0x128)](a23_0x23d3be),winston[a23_0x5ee8e8(0x12a)][a23_0x5ee8e8(0x109)](_0x550fe6=>_0x550fe6[a23_0x5ee8e8(0x11d)]+'\x20-\x20'+_0x550fe6[a23_0x5ee8e8(0x113)]+':\x20'+_0x550fe6[a23_0x5ee8e8(0x11a)])),'transports':[new winston[(a23_0x5ee8e8(0x10f))][(a23_0x5ee8e8(0x116))](a23_0x617d29),new winston[(a23_0x5ee8e8(0x10f))][(a23_0x5ee8e8(0x11f))]({'filename':path['join'](logDir,a23_0x5ee8e8(0x127)),'level':a23_0x5ee8e8(0x10e)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x5ee8e8(0x10f))][(a23_0x5ee8e8(0x11f))]({'filename':path[a23_0x5ee8e8(0x120)](logDir,a23_0x5ee8e8(0x111)),'level':'debug'})]};exports[a23_0x5ee8e8(0x118)]=new winston[(a23_0x5ee8e8(0x122))](winstonFileLoggerParams);function a23_0x9ac2(_0x13aa20,_0x547c97){const _0x5b251b=a23_0x5b25();return a23_0x9ac2=function(_0x9ac248,_0x5a187e){_0x9ac248=_0x9ac248-0x109;let _0x5c612d=_0x5b251b[_0x9ac248];return _0x5c612d;},a23_0x9ac2(_0x13aa20,_0x547c97);}function a23_0x5b25(){const _0x124e1f=['34576AwXeAY','format','printf','2498670BrOEQN','logger','15FDlNow','name','debug','transports','combine','usage.log','90632lPNScR','level','126OFGTHW','2483855FGuyHs','Console','6555240HqxjCf','fileLogger','existsSync','message','30RjMthb','console.info','timestamp','1769103XbDpMw','File','join','YYYY-MM-DD\x20HH:mm:ss','createLogger','54nPXgGJ','12diBAeG','path','61396XSvlFU','events.log','colorize'];a23_0x5b25=function(){return _0x124e1f;};return a23_0x5b25();}
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x2c83(_0x445d1c,_0x9b8b80){const _0x5e8379=a24_0x5e83();return a24_0x2c83=function(_0x2c8399,_0x3fde98){_0x2c8399=_0x2c8399-0x94;let _0x3be2f3=_0x5e8379[_0x2c8399];return _0x3be2f3;},a24_0x2c83(_0x445d1c,_0x9b8b80);}const a24_0x4711c9=a24_0x2c83;(function(_0x38b35d,_0x3b71c9){const _0x2ca4aa=a24_0x2c83,_0x522b9c=_0x38b35d();while(!![]){try{const _0x5ad964=-parseInt(_0x2ca4aa(0xa7))/0x1+-parseInt(_0x2ca4aa(0x9d))/0x2*(parseInt(_0x2ca4aa(0xa3))/0x3)+-parseInt(_0x2ca4aa(0x96))/0x4*(parseInt(_0x2ca4aa(0x94))/0x5)+parseInt(_0x2ca4aa(0x9a))/0x6*(-parseInt(_0x2ca4aa(0xa4))/0x7)+parseInt(_0x2ca4aa(0xa9))/0x8+parseInt(_0x2ca4aa(0x97))/0x9*(-parseInt(_0x2ca4aa(0xa1))/0xa)+-parseInt(_0x2ca4aa(0x95))/0xb*(-parseInt(_0x2ca4aa(0x9e))/0xc);if(_0x5ad964===_0x3b71c9)break;else _0x522b9c['push'](_0x522b9c['shift']());}catch(_0x33badd){_0x522b9c['push'](_0x522b9c['shift']());}}}(a24_0x5e83,0x9dce5));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x4711c9(0x9f));process[a24_0x4711c9(0xa0)][a24_0x4711c9(0xa2)]=0x1;function run(_0x591baa){const _0x4e316d=a24_0x4711c9,_0x1edbc7={};_0x1edbc7[_0x4e316d(0xa6)]=_0x4e316d(0x98),_0x1edbc7['MeuNd']='help';const _0x53c62d=_0x1edbc7;_0x591baa['usage'](HELP_HEADER_MESSAGE[_0x4e316d(0x9b)])[_0x4e316d(0xaa)](_0x53c62d['NNJFd'])[_0x4e316d(0x99)]()[_0x4e316d(0xa8)](_0x53c62d[_0x4e316d(0x9c)])['epilogue'](HELP_FOOTER_MESSAGE);}function a24_0x5e83(){const _0x23101b=['exports','NNJFd','958479mMCNiZ','help','9865384jpGvcW','commandDir','27845rpBBAh','7513mBdinX','916yRgEuX','90YcRjgT','commands','demandCommand','6lBThsw','root','MeuNd','304RXFlIr','47508RcIshz','./config/constants','env','250080NuhMNT','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','9357rdPIvZ','2329943niFZld'];a24_0x5e83=function(){return _0x23101b;};return a24_0x5e83();}module[a24_0x4711c9(0xa5)]=run;
2
+ 'use strict';const a24_0x278042=a24_0xa74d;(function(_0x402a62,_0x4a7783){const _0x5c9c2b=a24_0xa74d,_0x18440a=_0x402a62();while(!![]){try{const _0x420b2d=parseInt(_0x5c9c2b(0x1ab))/0x1+-parseInt(_0x5c9c2b(0x1b4))/0x2*(-parseInt(_0x5c9c2b(0x1ba))/0x3)+parseInt(_0x5c9c2b(0x1b9))/0x4+-parseInt(_0x5c9c2b(0x1bd))/0x5+-parseInt(_0x5c9c2b(0x1b3))/0x6+-parseInt(_0x5c9c2b(0x1b6))/0x7*(-parseInt(_0x5c9c2b(0x1b2))/0x8)+-parseInt(_0x5c9c2b(0x1aa))/0x9;if(_0x420b2d===_0x4a7783)break;else _0x18440a['push'](_0x18440a['shift']());}catch(_0x25515b){_0x18440a['push'](_0x18440a['shift']());}}}(a24_0x319c,0x40c4e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x278042(0x1b0));process[a24_0x278042(0x1ae)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function a24_0x319c(){const _0x39ea5a=['2111165BVoBMM','5806872vfgpWL','346221FLCpUJ','help','VPiWJ','env','demandCommand','./config/constants','root','16yuclQz','229398icZBcP','10EABAaX','usage','1757378jdHrBa','epilogue','GlhnC','1665496egPcXj','63759dsrJYy','exports','commandDir'];a24_0x319c=function(){return _0x39ea5a;};return a24_0x319c();}function run(_0x4fb171){const _0x30c3e8=a24_0x278042,_0x48b43c={};_0x48b43c[_0x30c3e8(0x1ad)]='commands',_0x48b43c['GlhnC']=_0x30c3e8(0x1ac);const _0x1f0f3d=_0x48b43c;_0x4fb171[_0x30c3e8(0x1b5)](HELP_HEADER_MESSAGE[_0x30c3e8(0x1b1)])[_0x30c3e8(0x1bc)](_0x1f0f3d[_0x30c3e8(0x1ad)])[_0x30c3e8(0x1af)]()[_0x30c3e8(0x1ac)](_0x1f0f3d[_0x30c3e8(0x1b8)])[_0x30c3e8(0x1b7)](HELP_FOOTER_MESSAGE);}function a24_0xa74d(_0x5f531b,_0x17e132){const _0x319c1a=a24_0x319c();return a24_0xa74d=function(_0xa74d52,_0x132217){_0xa74d52=_0xa74d52-0x1aa;let _0x146e54=_0x319c1a[_0xa74d52];return _0x146e54;},a24_0xa74d(_0x5f531b,_0x17e132);}module[a24_0x278042(0x1bb)]=run;