browserstack-node-sdk 1.60.0 → 1.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  79. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  80. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  81. package/src/bin/mocha/test.setup.js +1 -1
  82. package/src/bin/newman/command.js +1 -1
  83. package/src/bin/newman/helper.js +1 -1
  84. package/src/bin/newman/reporter/index.js +1 -1
  85. package/src/bin/newman/scriptRunner.js +1 -1
  86. package/src/bin/nightwatch/command.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/sessionDetails.js +1 -1
  97. package/src/bin/puppeteer/patches.js +1 -1
  98. package/src/bin/puppeteer/sessionDetails.js +1 -1
  99. package/src/bin/puppeteer/test.setup.js +1 -1
  100. package/src/bin/runner.js +1 -1
  101. package/src/bin/setup.js +1 -1
  102. package/src/bin/test-runner/index.js +1 -1
  103. package/src/bin/test-runner/runTest.js +1 -1
  104. package/src/bin/test-runner/testWorker.js +1 -1
  105. package/src/bin/testcafe/a11y-runner.js +1 -1
  106. package/src/bin/testcafe/command.js +1 -1
  107. package/src/bin/testcafe/reporter/index.js +1 -1
  108. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  109. package/src/bin/testcafe/session-registry.js +1 -1
  110. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  111. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  112. package/src/bin/testcafe/w3c-driver.js +1 -1
  113. package/src/bin/utils/apiUtilityMethods.js +1 -1
  114. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  115. package/src/bin/utils/constants.js +1 -1
  116. package/src/bin/utils/log4jsAppender.js +1 -1
  117. package/src/bin/utils/logPatcher.js +1 -1
  118. package/src/bin/utils/logReportingAPI.js +1 -1
  119. package/src/bin/utils/playwright-patcher.js +1 -1
  120. package/src/bin/utils/puppeteer-patcher.js +1 -1
  121. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  122. package/src/bin/utils/sharedUtils.js +1 -1
  123. package/src/bin/v2/TestInfo.js +1 -1
  124. package/src/bin/v2/browserstackCLI.js +1 -1
  125. package/src/bin/v2/cliUtils.js +1 -1
  126. package/src/bin/v2/customTagManager.js +1 -1
  127. package/src/bin/v2/eventDispatcher.js +1 -1
  128. package/src/bin/v2/framework/automationFramework.js +1 -1
  129. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  130. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  132. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  133. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  134. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  136. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/testFramework.js +1 -1
  138. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  140. package/src/bin/v2/grpcClient.js +1 -1
  141. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  142. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/trackedContext.js +1 -1
  144. package/src/bin/v2/instances/trackedInstance.js +1 -1
  145. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  146. package/src/bin/v2/modules/baseModule.js +1 -1
  147. package/src/bin/v2/modules/loadTestModule.js +1 -1
  148. package/src/bin/v2/modules/observabilityModule.js +1 -1
  149. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  150. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  151. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testhubModule.js +1 -1
  153. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  154. package/src/bin/v2/state/hookState.js +1 -1
  155. package/src/bin/v2/state/testFrameworkState.js +1 -1
  156. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  157. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  158. package/src/bin/v2/utils/jest-utils.js +1 -1
  159. package/src/bin/vanilla-js/command.js +1 -1
  160. package/src/browserStackSdk.js +1 -1
  161. package/src/helpers/BrowserStackSetup.js +1 -1
  162. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  163. package/src/helpers/accessibility-automation/constants.js +1 -1
  164. package/src/helpers/accessibility-automation/helper.js +1 -1
  165. package/src/helpers/accessibility-automation/scripts.js +1 -1
  166. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  167. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  168. package/src/helpers/ats/constants.js +1 -1
  169. package/src/helpers/ats/helper.js +1 -1
  170. package/src/helpers/caCertHelper.js +1 -1
  171. package/src/helpers/capsMapping.js +1 -1
  172. package/src/helpers/central-scanner/constants.js +1 -1
  173. package/src/helpers/central-scanner/helpers.js +1 -1
  174. package/src/helpers/classLogger.js +1 -1
  175. package/src/helpers/driverInitErrorReporter.js +1 -1
  176. package/src/helpers/globals.js +1 -1
  177. package/src/helpers/helper.js +1 -1
  178. package/src/helpers/logger.js +1 -1
  179. package/src/helpers/metadata.js +1 -1
  180. package/src/helpers/patchHelper.js +1 -1
  181. package/src/helpers/patchHelpers.js +1 -1
  182. package/src/helpers/percy/Percy.js +1 -1
  183. package/src/helpers/percy/PercyBinary.js +1 -1
  184. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  185. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  186. package/src/helpers/percy/PercySDK.js +1 -1
  187. package/src/helpers/percy/index.js +1 -1
  188. package/src/helpers/percy/utils.js +1 -1
  189. package/src/helpers/performance/constants.js +1 -1
  190. package/src/helpers/performance/performance-tester.js +1 -1
  191. package/src/helpers/playwright-helper.js +1 -1
  192. package/src/helpers/processHelper.js +1 -1
  193. package/src/helpers/puppeteer-helper.js +1 -1
  194. package/src/helpers/request-spy.js +1 -1
  195. package/src/helpers/setKeepAlive.js +1 -1
  196. package/src/helpers/stackFrameUtils.js +1 -1
  197. package/src/helpers/test-observability/constants.js +1 -1
  198. package/src/helpers/test-observability/error-handler.js +1 -1
  199. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  200. package/src/helpers/test-observability/sessionHandler.js +1 -1
  201. package/src/helpers/test-observability/utils.js +1 -1
  202. package/src/helpers/test-orchestration/constants.js +1 -1
  203. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  204. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  205. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  206. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  207. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  208. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  209. package/src/helpers/testhub/constants.js +1 -1
  210. package/src/helpers/testhub/testhubHandler.js +1 -1
  211. package/src/helpers/testhub/utils.js +1 -1
  212. package/src/helpers/timeoutPromise.js +1 -1
  213. package/src/helpers/utilities.js +1 -1
  214. package/src/helpers/w3cMapping.js +1 -1
  215. package/src/hubAllocationMethods.js +1 -1
  216. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x3f63(){const _0x52db8e=['GET','exit','Failed\x20to\x20list\x20resources!\x20Error:\x20','desc','Browserstack','IBRZt','got','readFileSync','138175TXJDhq','error','queued','statusCode','description','parse','clusterName','../../config/constants','eaWqH','unknown-error','password','uuid','push','INFO','command','help','unauthorised','body','xUAPm','log','grid-name','ERROR','fVhnr','190221pZWLhB','allGrids','117300NNMupo','esJlL','fTrff','builder','ZGakB','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','/packages/cli/get-grids','lVOhC','DxhRo','UJYAm','handler','grids','sOeqo','585HTAikz','50ExOiyW','VxytP','36SmfHrN','fuZRG','zIrWe','\x0aFound\x20the\x20following\x20grids:\x0a','AYFjc','zqNcg','../../utils/utilityMethods','1765491cWwBML','../../utils/instrumentationUtils','grid-id','698596ZUKmvi','server-error','username','stack','bstackUsername','status','mGMzh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','20aycMJJ','table','list','all-grids','HJpEy','MGQbD','name','usage','2270103eovzez','27088uldCHt','running'];a15_0x3f63=function(){return _0x52db8e;};return a15_0x3f63();}const a15_0x8ab61=a15_0x3166;function a15_0x3166(_0xde33db,_0x46f3c2){const _0x3f634f=a15_0x3f63();return a15_0x3166=function(_0x3166b3,_0x3f45c6){_0x3166b3=_0x3166b3-0x19f;let _0x41e050=_0x3f634f[_0x3166b3];return _0x41e050;},a15_0x3166(_0xde33db,_0x46f3c2);}(function(_0xf28662,_0x307321){const _0x3ed27b=a15_0x3166,_0x5a8bf5=_0xf28662();while(!![]){try{const _0x4bf869=parseInt(_0x3ed27b(0x1e2))/0x1+-parseInt(_0x3ed27b(0x1ad))/0x2+parseInt(_0x3ed27b(0x1e0))/0x3*(-parseInt(_0x3ed27b(0x1b6))/0x4)+parseInt(_0x3ed27b(0x1c9))/0x5*(parseInt(_0x3ed27b(0x1a3))/0x6)+-parseInt(_0x3ed27b(0x1aa))/0x7+parseInt(_0x3ed27b(0x1bf))/0x8*(-parseInt(_0x3ed27b(0x1a0))/0x9)+parseInt(_0x3ed27b(0x1a1))/0xa*(parseInt(_0x3ed27b(0x1be))/0xb);if(_0x4bf869===_0x307321)break;else _0x5a8bf5['push'](_0x5a8bf5['shift']());}catch(_0x573534){_0x5a8bf5['push'](_0x5a8bf5['shift']());}}}(a15_0x3f63,0x2b0d3));const fs=require('fs'),got=require(a15_0x8ab61(0x1c7)),{table}=require(a15_0x8ab61(0x1b7)),{v4:uuidv4}=require(a15_0x8ab61(0x1d4)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x8ab61(0x1d0)),{getCredentialsPath,getAuthHeader}=require(a15_0x8ab61(0x1a9)),{sendInstrumentationEvent}=require(a15_0x8ab61(0x1ab));exports[a15_0x8ab61(0x1d7)]=a15_0x8ab61(0x1ed),exports[a15_0x8ab61(0x1c4)]=a15_0x8ab61(0x1e7),exports[a15_0x8ab61(0x1e5)]=function(_0x20a9fc){const _0x44034f=a15_0x8ab61,_0x4383b2={};_0x4383b2[_0x44034f(0x1e9)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x4383b2[_0x44034f(0x19f)]='boolean',_0x4383b2[_0x44034f(0x1a7)]=_0x44034f(0x1d8);const _0x405ce2=_0x4383b2,_0x34b667={};_0x34b667[_0x44034f(0x1cd)]=_0x405ce2[_0x44034f(0x1e9)],_0x34b667['type']=_0x405ce2['sOeqo'];const _0x1d421f={};return _0x1d421f[_0x44034f(0x1b9)]=_0x34b667,_0x20a9fc[_0x44034f(0x1bd)](HELP_HEADER_MESSAGE[_0x44034f(0x1b8)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x1d421f)[_0x44034f(0x1d8)](_0x405ce2[_0x44034f(0x1a7)])['argv'];},exports[a15_0x8ab61(0x1ec)]=async function(_0x12f0a0){const _0x2f0f7b=a15_0x8ab61,_0x38c278={'HJpEy':function(_0xaa101b){return _0xaa101b();},'OqYPy':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zIrWe':function(_0x279b8c,_0x445d59,_0x13d45e,_0x50c458,_0x5eced7,_0x44144a,_0x2799cd){return _0x279b8c(_0x445d59,_0x13d45e,_0x50c458,_0x5eced7,_0x44144a,_0x2799cd);},'MGQbD':'list-grids-called','xUAPm':'init-not-called','IBRZt':function(_0x52814a){return _0x52814a();},'ZGakB':_0x2f0f7b(0x1c1),'fTrff':function(_0x13747b,_0xa528f0,_0x52eae4){return _0x13747b(_0xa528f0,_0x52eae4);},'BtHuQ':function(_0x5c9439,_0x537323){return _0x5c9439!==_0x537323;},'DxhRo':function(_0x278240,_0x407b2d){return _0x278240!==_0x407b2d;},'fuZRG':function(_0x2bec2a,_0x18c2df){return _0x2bec2a===_0x18c2df;},'HreXE':_0x2f0f7b(0x1a6),'vQOCU':_0x2f0f7b(0x1ac),'mGMzh':_0x2f0f7b(0x1dd),'ywrGx':_0x2f0f7b(0x1b2),'fVhnr':_0x2f0f7b(0x1c0),'eaWqH':_0x2f0f7b(0x1cb),'zqNcg':'cluster-name','BZvdo':function(_0x27125b,_0x2863b5){return _0x27125b(_0x2863b5);},'JABLA':function(_0x4b3dc5,_0x2aac3d){return _0x4b3dc5===_0x2aac3d;},'sdAgu':_0x2f0f7b(0x1b4),'UJYAm':_0x2f0f7b(0x1d9),'TSMpZ':_0x2f0f7b(0x1ae),'VxytP':function(_0x439ebe,_0x592c5b,_0x3dbdda,_0x203b5f,_0x1f9791,_0x5def2e,_0x56e015){return _0x439ebe(_0x592c5b,_0x3dbdda,_0x203b5f,_0x1f9791,_0x5def2e,_0x56e015);},'esJlL':_0x2f0f7b(0x1d2)};try{global_registry['requestId']=_0x38c278[_0x2f0f7b(0x1ba)](uuidv4);!fs['existsSync'](_0x38c278[_0x2f0f7b(0x1ba)](getCredentialsPath))&&(console['error'](_0x38c278['OqYPy']),await _0x38c278['zIrWe'](sendInstrumentationEvent,_0x12f0a0,_0x38c278[_0x2f0f7b(0x1bb)],messageTypes[_0x2f0f7b(0x1de)],_0x38c278[_0x2f0f7b(0x1db)],null,_0x12f0a0),process[_0x2f0f7b(0x1c2)](0x1));const _0x4cdec5=JSON[_0x2f0f7b(0x1ce)](fs[_0x2f0f7b(0x1c8)](_0x38c278[_0x2f0f7b(0x1c6)](getCredentialsPath)));let _0x170469='https://'+AG_API_URL+_0x2f0f7b(0x1e8);_0x12f0a0[_0x2f0f7b(0x1e1)]&&(_0x170469='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x49c8ab={'method':_0x38c278[_0x2f0f7b(0x1e6)],'headers':_0x38c278[_0x2f0f7b(0x1e4)](getAuthHeader,_0x4cdec5[_0x2f0f7b(0x1c5)][_0x2f0f7b(0x1af)],_0x4cdec5['Browserstack'][_0x2f0f7b(0x1d3)]),'throwHttpErrors':![]};global_registry[_0x2f0f7b(0x1b1)]=_0x4cdec5[_0x2f0f7b(0x1c5)][_0x2f0f7b(0x1af)],global_registry['bstackAccesskey']=_0x4cdec5[_0x2f0f7b(0x1c5)][_0x2f0f7b(0x1d3)],_0x38c278['zIrWe'](sendInstrumentationEvent,_0x12f0a0,_0x38c278['MGQbD'],messageTypes[_0x2f0f7b(0x1d6)],null,null,_0x12f0a0);const _0x45de01=await _0x38c278[_0x2f0f7b(0x1e4)](got,_0x170469,_0x49c8ab);if(_0x38c278['BtHuQ'](_0x45de01,null)&&_0x38c278[_0x2f0f7b(0x1ea)](_0x45de01,undefined)&&_0x38c278[_0x2f0f7b(0x1a4)](_0x45de01[_0x2f0f7b(0x1cc)],0xc8)){const _0x3ce039=JSON[_0x2f0f7b(0x1ce)](_0x45de01[_0x2f0f7b(0x1da)]);console['log'](_0x38c278['HreXE']);const _0x262e5a=[];_0x262e5a[_0x2f0f7b(0x1d5)]([_0x38c278['vQOCU'],_0x38c278[_0x2f0f7b(0x1b3)],_0x38c278['ywrGx'],_0x38c278[_0x2f0f7b(0x1df)],_0x38c278[_0x2f0f7b(0x1d1)],_0x38c278[_0x2f0f7b(0x1a8)]]),_0x3ce039['forEach'](_0xf6717d=>{const _0x1d52ef=_0x2f0f7b;_0x262e5a[_0x1d52ef(0x1d5)]([_0xf6717d['id'],_0xf6717d[_0x1d52ef(0x1bc)],_0xf6717d[_0x1d52ef(0x1b2)],_0xf6717d['running'],_0xf6717d['queued'],_0xf6717d[_0x1d52ef(0x1cf)]]);}),console[_0x2f0f7b(0x1dc)](_0x38c278['BZvdo'](table,_0x262e5a)),process[_0x2f0f7b(0x1c2)](0x0);}_0x38c278['JABLA'](_0x45de01[_0x2f0f7b(0x1cc)],0x191)&&(console[_0x2f0f7b(0x1ca)](_0x38c278['sdAgu']),await _0x38c278[_0x2f0f7b(0x1a5)](sendInstrumentationEvent,_0x12f0a0,_0x38c278[_0x2f0f7b(0x1bb)],messageTypes['ERROR'],_0x38c278[_0x2f0f7b(0x1eb)],null,_0x12f0a0),process[_0x2f0f7b(0x1c2)](0x1)),console[_0x2f0f7b(0x1ca)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2f0f7b(0x1b5)](_0x45de01)),await _0x38c278[_0x2f0f7b(0x1a5)](sendInstrumentationEvent,_0x12f0a0,_0x38c278[_0x2f0f7b(0x1bb)],messageTypes[_0x2f0f7b(0x1de)],_0x38c278['TSMpZ'],_0x45de01,_0x12f0a0),process[_0x2f0f7b(0x1c2)](0x1);}catch(_0xfb8921){console[_0x2f0f7b(0x1ca)](_0x2f0f7b(0x1c3)+_0xfb8921[_0x2f0f7b(0x1b0)]),await _0x38c278[_0x2f0f7b(0x1a2)](sendInstrumentationEvent,_0x12f0a0,_0x38c278[_0x2f0f7b(0x1bb)],messageTypes[_0x2f0f7b(0x1de)],_0x38c278[_0x2f0f7b(0x1e3)],_0xfb8921,_0x12f0a0),process[_0x2f0f7b(0x1c2)](0x1);}};
1
+ const a15_0xc4ed8b=a15_0x1397;function a15_0x1f3b(){const _0x557771=['push','grid-name','type','\x0aFound\x20the\x20following\x20grids:\x0a','GET','dmptC','init-not-called','2543848QfGMRO','ItMhh','njjeJ','340jJDYkO','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','https://','SoHSx','Failed\x20to\x20list\x20resources!\x20Error:\x20','14FRlZJR','clusterName','rwZaG','JYSAy','password','epilogue','Pemga','6744180JsFmlg','sjuok','name','53224fICIXe','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uewWA','grids','options','1463116mElNNp','grid','status','cQOPX','forEach','queued','5352pIwFVY','22055QrSQTw','Browserstack','zXSlU','UQbRG','unauthorised','handler','QWmtn','WUNos','/packages/cli/get-all-grids','running','ERROR','hcGKV','3vJzXWv','usage','existsSync','log','zPwbB','unknown-error','help','desc','statusCode','yVKtQ','argv','builder','description','19BgJzBG','readFileSync','grid-id','aervN','parse','../../config/constants','3955758oWstFY','YNXWm','../../utils/instrumentationUtils','exit','bGRGS','LdINq','jMaSf','all-grids','118134FZyrqG','got','server-error','NTsTW','command','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stringify','stack'];a15_0x1f3b=function(){return _0x557771;};return a15_0x1f3b();}(function(_0x154ad7,_0x545a5f){const _0x2917a6=a15_0x1397,_0x59d205=_0x154ad7();while(!![]){try{const _0x3675c9=parseInt(_0x2917a6(0x138))/0x1*(-parseInt(_0x2917a6(0x169))/0x2)+parseInt(_0x2917a6(0x181))/0x3*(-parseInt(_0x2917a6(0x16e))/0x4)+-parseInt(_0x2917a6(0x166))/0x5+parseInt(_0x2917a6(0x13e))/0x6*(parseInt(_0x2917a6(0x15f))/0x7)+parseInt(_0x2917a6(0x155))/0x8+-parseInt(_0x2917a6(0x146))/0x9*(-parseInt(_0x2917a6(0x158))/0xa)+parseInt(_0x2917a6(0x175))/0xb*(parseInt(_0x2917a6(0x174))/0xc);if(_0x3675c9===_0x545a5f)break;else _0x59d205['push'](_0x59d205['shift']());}catch(_0x184978){_0x59d205['push'](_0x59d205['shift']());}}}(a15_0x1f3b,0xb8c66));function a15_0x1397(_0x31e57d,_0x45c89){const _0x1f3b25=a15_0x1f3b();return a15_0x1397=function(_0x13975e,_0x2b813e){_0x13975e=_0x13975e-0x136;let _0x4f5469=_0x1f3b25[_0x13975e];return _0x4f5469;},a15_0x1397(_0x31e57d,_0x45c89);}const fs=require('fs'),got=require(a15_0xc4ed8b(0x147)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xc4ed8b(0x13d)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0xc4ed8b(0x140));exports[a15_0xc4ed8b(0x14a)]=a15_0xc4ed8b(0x16c),exports[a15_0xc4ed8b(0x188)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0xc4ed8b(0x136)]=function(_0x2c430a){const _0x33ffed=a15_0xc4ed8b,_0x5f28ad={};_0x5f28ad[_0x33ffed(0x157)]=_0x33ffed(0x159),_0x5f28ad[_0x33ffed(0x162)]='boolean',_0x5f28ad[_0x33ffed(0x17b)]=_0x33ffed(0x187);const _0x283481=_0x5f28ad,_0x3f395f={};_0x3f395f[_0x33ffed(0x137)]=_0x283481[_0x33ffed(0x157)],_0x3f395f[_0x33ffed(0x150)]=_0x283481[_0x33ffed(0x162)];const _0x2b6507={};return _0x2b6507[_0x33ffed(0x145)]=_0x3f395f,_0x2c430a[_0x33ffed(0x182)](HELP_HEADER_MESSAGE['list'][_0x33ffed(0x16f)])[_0x33ffed(0x164)](HELP_FOOTER_MESSAGE)[_0x33ffed(0x16d)](_0x2b6507)[_0x33ffed(0x187)](_0x283481[_0x33ffed(0x17b)])[_0x33ffed(0x18b)];},exports[a15_0xc4ed8b(0x17a)]=async function(_0x5ef6b2){const _0x138377=a15_0xc4ed8b,_0x2a787e={'zPwbB':function(_0x4a0e60){return _0x4a0e60();},'Pemga':_0x138377(0x14b),'wHAtn':function(_0x2effaf,_0xc28a26,_0x4ec943,_0x45eb7f,_0x2d4ea5,_0x49027d,_0x3cdbd6){return _0x2effaf(_0xc28a26,_0x4ec943,_0x45eb7f,_0x2d4ea5,_0x49027d,_0x3cdbd6);},'rwZaG':'list-grids-called','bnaVl':_0x138377(0x154),'sjuok':function(_0x8530bd){return _0x8530bd();},'WUNos':_0x138377(0x152),'cQOPX':function(_0x24ebe3,_0x307580,_0x579c89){return _0x24ebe3(_0x307580,_0x579c89);},'yVKtQ':function(_0x599966,_0x2f0edf,_0xff3a1d,_0x3d23e4,_0xb4b98,_0xb2d7b9,_0x29f1ce){return _0x599966(_0x2f0edf,_0xff3a1d,_0x3d23e4,_0xb4b98,_0xb2d7b9,_0x29f1ce);},'hcGKV':function(_0x2b7900,_0x3c6d29,_0x3b610f){return _0x2b7900(_0x3c6d29,_0x3b610f);},'dmptC':function(_0x28be20,_0x120ddc){return _0x28be20!==_0x120ddc;},'NAuRx':function(_0x3ad379,_0x14bc0e){return _0x3ad379===_0x14bc0e;},'UQbRG':_0x138377(0x151),'aervN':_0x138377(0x13a),'wYKFt':_0x138377(0x14f),'zXSlU':_0x138377(0x170),'SoHSx':_0x138377(0x17e),'uewWA':_0x138377(0x173),'NTsTW':'cluster-name','TnNUi':function(_0x3069f3,_0x4d6cb1){return _0x3069f3(_0x4d6cb1);},'LdINq':function(_0x19db0e,_0x47a0ad){return _0x19db0e===_0x47a0ad;},'jMaSf':_0x138377(0x16a),'YNXWm':_0x138377(0x179),'zCuEP':function(_0x34c5de,_0x342328,_0x2b3630,_0x31104b,_0x298c74,_0x9d9f81,_0x556961){return _0x34c5de(_0x342328,_0x2b3630,_0x31104b,_0x298c74,_0x9d9f81,_0x556961);},'ItMhh':_0x138377(0x148),'mZBmY':function(_0x58174b,_0x2bddc6,_0x3ac676,_0x299a5e,_0x1ec1cf,_0x490ec8,_0x3e4bfc){return _0x58174b(_0x2bddc6,_0x3ac676,_0x299a5e,_0x1ec1cf,_0x490ec8,_0x3e4bfc);},'bGRGS':_0x138377(0x186)};try{global_registry['requestId']=_0x2a787e[_0x138377(0x185)](uuidv4);!fs[_0x138377(0x183)](_0x2a787e[_0x138377(0x185)](getCredentialsPath))&&(console[_0x138377(0x15a)](_0x2a787e[_0x138377(0x165)]),await _0x2a787e['wHAtn'](sendInstrumentationEvent,_0x5ef6b2,_0x2a787e[_0x138377(0x161)],messageTypes[_0x138377(0x17f)],_0x2a787e['bnaVl'],null,_0x5ef6b2),process[_0x138377(0x141)](0x1));const _0x203b6=JSON[_0x138377(0x13c)](fs[_0x138377(0x139)](_0x2a787e[_0x138377(0x167)](getCredentialsPath)));let _0x1359a1='https://'+AG_API_URL+'/packages/cli/get-grids';_0x5ef6b2['allGrids']&&(_0x1359a1=_0x138377(0x15c)+AG_API_URL+_0x138377(0x17d));const _0x342747={'method':_0x2a787e[_0x138377(0x17c)],'headers':_0x2a787e[_0x138377(0x171)](getAuthHeader,_0x203b6[_0x138377(0x176)]['username'],_0x203b6[_0x138377(0x176)][_0x138377(0x163)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x203b6[_0x138377(0x176)]['username'],global_registry['bstackAccesskey']=_0x203b6[_0x138377(0x176)][_0x138377(0x163)],_0x2a787e[_0x138377(0x18a)](sendInstrumentationEvent,_0x5ef6b2,_0x2a787e[_0x138377(0x161)],messageTypes['INFO'],null,null,_0x5ef6b2);const _0x59037e=await _0x2a787e[_0x138377(0x180)](got,_0x1359a1,_0x342747);if(_0x2a787e['dmptC'](_0x59037e,null)&&_0x2a787e[_0x138377(0x153)](_0x59037e,undefined)&&_0x2a787e['NAuRx'](_0x59037e['statusCode'],0xc8)){const _0x2d1d5f=JSON[_0x138377(0x13c)](_0x59037e['body']);console[_0x138377(0x184)](_0x2a787e[_0x138377(0x178)]);const _0x40ada4=[];_0x40ada4['push']([_0x2a787e[_0x138377(0x13b)],_0x2a787e['wYKFt'],_0x2a787e[_0x138377(0x177)],_0x2a787e[_0x138377(0x15d)],_0x2a787e[_0x138377(0x16b)],_0x2a787e[_0x138377(0x149)]]),_0x2d1d5f[_0x138377(0x172)](_0x1098d3=>{const _0xd50f08=_0x138377;_0x40ada4[_0xd50f08(0x14e)]([_0x1098d3['id'],_0x1098d3[_0xd50f08(0x168)],_0x1098d3['status'],_0x1098d3[_0xd50f08(0x17e)],_0x1098d3[_0xd50f08(0x173)],_0x1098d3[_0xd50f08(0x160)]]);}),console[_0x138377(0x184)](_0x2a787e['TnNUi'](table,_0x40ada4)),process[_0x138377(0x141)](0x0);}_0x2a787e[_0x138377(0x143)](_0x59037e[_0x138377(0x189)],0x191)&&(console[_0x138377(0x15a)](_0x2a787e[_0x138377(0x144)]),await _0x2a787e[_0x138377(0x18a)](sendInstrumentationEvent,_0x5ef6b2,_0x2a787e['rwZaG'],messageTypes['ERROR'],_0x2a787e[_0x138377(0x13f)],null,_0x5ef6b2),process[_0x138377(0x141)](0x1)),console[_0x138377(0x15a)](_0x138377(0x15b)+JSON[_0x138377(0x14c)](_0x59037e)),await _0x2a787e['zCuEP'](sendInstrumentationEvent,_0x5ef6b2,_0x2a787e[_0x138377(0x161)],messageTypes['ERROR'],_0x2a787e[_0x138377(0x156)],_0x59037e,_0x5ef6b2),process[_0x138377(0x141)](0x1);}catch(_0x55dcd2){console['error'](_0x138377(0x15e)+_0x55dcd2[_0x138377(0x14d)]),await _0x2a787e['mZBmY'](sendInstrumentationEvent,_0x5ef6b2,_0x2a787e[_0x138377(0x161)],messageTypes[_0x138377(0x17f)],_0x2a787e[_0x138377(0x142)],_0x55dcd2,_0x5ef6b2),process[_0x138377(0x141)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x2476(_0x49ed59,_0xcfdc2c){const _0x2ebdc7=a16_0x2ebd();return a16_0x2476=function(_0x247666,_0x45ba24){_0x247666=_0x247666-0x1e3;let _0x3bc4cc=_0x2ebdc7[_0x247666];return _0x3bc4cc;},a16_0x2476(_0x49ed59,_0xcfdc2c);}const a16_0x3e96d6=a16_0x2476;(function(_0x477726,_0x54f211){const _0x5905bc=a16_0x2476,_0x4adfa3=_0x477726();while(!![]){try{const _0x1eac75=-parseInt(_0x5905bc(0x1e4))/0x1+-parseInt(_0x5905bc(0x1ec))/0x2*(parseInt(_0x5905bc(0x1e7))/0x3)+-parseInt(_0x5905bc(0x1ea))/0x4+-parseInt(_0x5905bc(0x1f8))/0x5+parseInt(_0x5905bc(0x1ef))/0x6+parseInt(_0x5905bc(0x1f6))/0x7*(parseInt(_0x5905bc(0x1fa))/0x8)+parseInt(_0x5905bc(0x1e5))/0x9*(parseInt(_0x5905bc(0x1e9))/0xa);if(_0x1eac75===_0x54f211)break;else _0x4adfa3['push'](_0x4adfa3['shift']());}catch(_0x540173){_0x4adfa3['push'](_0x4adfa3['shift']());}}}(a16_0x2ebd,0xc08c6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x3e96d6(0x1f9));function a16_0x2ebd(){const _0x67f53=['Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','efIAP','pre_check','demandCommand','pre-check','108402QmqJvr','strict','3604650vvfjhf','../config/constants','688LigGyk','builder','768088YoTGbV','12231TjVZJG','recommendCommands','3SJmXQF','epilogue','8110qSWpbM','116412MWPSZS','help','808782ouHrdA','commandDir','Siowt','1663470TWacwI','precheck_commands'];a16_0x2ebd=function(){return _0x67f53;};return a16_0x2ebd();}exports['command']=a16_0x3e96d6(0x1f5),exports['desc']=a16_0x3e96d6(0x1f1),exports[a16_0x3e96d6(0x1e3)]=function(_0x2debd2){const _0xf3eaff=a16_0x3e96d6,_0x8fcdfa={};_0x8fcdfa[_0xf3eaff(0x1f2)]=_0xf3eaff(0x1f0),_0x8fcdfa[_0xf3eaff(0x1ee)]=_0xf3eaff(0x1eb);const _0x304035=_0x8fcdfa;return _0x2debd2['usage'](HELP_HEADER_MESSAGE[_0xf3eaff(0x1f3)])[_0xf3eaff(0x1e8)](HELP_FOOTER_MESSAGE)[_0xf3eaff(0x1ed)](_0x304035[_0xf3eaff(0x1f2)])[_0xf3eaff(0x1f4)]()[_0xf3eaff(0x1e6)]()[_0xf3eaff(0x1f7)]()[_0xf3eaff(0x1eb)](_0x304035[_0xf3eaff(0x1ee)]);},exports['handler']=function(_0x1aea82){};
1
+ const a16_0x25a4b3=a16_0x9500;(function(_0x4a528e,_0xb8538b){const _0x4e43e1=a16_0x9500,_0x23c23c=_0x4a528e();while(!![]){try{const _0x354243=parseInt(_0x4e43e1(0x148))/0x1+-parseInt(_0x4e43e1(0x157))/0x2*(-parseInt(_0x4e43e1(0x156))/0x3)+parseInt(_0x4e43e1(0x14d))/0x4*(-parseInt(_0x4e43e1(0x146))/0x5)+parseInt(_0x4e43e1(0x153))/0x6+parseInt(_0x4e43e1(0x149))/0x7+parseInt(_0x4e43e1(0x152))/0x8+-parseInt(_0x4e43e1(0x154))/0x9;if(_0x354243===_0xb8538b)break;else _0x23c23c['push'](_0x23c23c['shift']());}catch(_0x3fd422){_0x23c23c['push'](_0x23c23c['shift']());}}}(a16_0x1f1f,0x3a477));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x25a4b3(0x15a));function a16_0x1f1f(){const _0x394ec8=['epilogue','../config/constants','builder','demandCommand','command','5RpOCjc','pre_check','36797kLwPsX','115948CpyyDP','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','commandDir','489596dZZfKs','CAJDY','recommendCommands','strict','precheck_commands','3167224ZyGLjN','1549026UDZtvv','4015737yBZDAs','hBqbn','12ICCmdK','49934OGupCt','pre-check'];a16_0x1f1f=function(){return _0x394ec8;};return a16_0x1f1f();}function a16_0x9500(_0x9b2bb6,_0x188ec7){const _0x1f1f89=a16_0x1f1f();return a16_0x9500=function(_0x9500c5,_0x1dbde0){_0x9500c5=_0x9500c5-0x144;let _0x31e027=_0x1f1f89[_0x9500c5];return _0x31e027;},a16_0x9500(_0x9b2bb6,_0x188ec7);}exports[a16_0x25a4b3(0x145)]=a16_0x25a4b3(0x158),exports['desc']=a16_0x25a4b3(0x14b),exports[a16_0x25a4b3(0x15b)]=function(_0x3c68e1){const _0xc99360=a16_0x25a4b3,_0x4a4cff={};_0x4a4cff[_0xc99360(0x14e)]=_0xc99360(0x151),_0x4a4cff[_0xc99360(0x155)]='help';const _0x163e16=_0x4a4cff;return _0x3c68e1[_0xc99360(0x14a)](HELP_HEADER_MESSAGE[_0xc99360(0x147)])[_0xc99360(0x159)](HELP_FOOTER_MESSAGE)[_0xc99360(0x14c)](_0x163e16[_0xc99360(0x14e)])[_0xc99360(0x144)]()[_0xc99360(0x14f)]()[_0xc99360(0x150)]()['help'](_0x163e16[_0xc99360(0x155)]);},exports['handler']=function(_0x20f8ab){};
@@ -1 +1 @@
1
- const a17_0x5cad91=a17_0x5125;(function(_0x40baef,_0x15109b){const _0x361d60=a17_0x5125,_0x3a33e4=_0x40baef();while(!![]){try{const _0x15bfa5=parseInt(_0x361d60(0x1c5))/0x1+-parseInt(_0x361d60(0x175))/0x2+-parseInt(_0x361d60(0x238))/0x3+-parseInt(_0x361d60(0x21b))/0x4*(parseInt(_0x361d60(0x16d))/0x5)+parseInt(_0x361d60(0x24a))/0x6+parseInt(_0x361d60(0x1bd))/0x7+parseInt(_0x361d60(0x1d1))/0x8*(parseInt(_0x361d60(0x183))/0x9);if(_0x15bfa5===_0x15109b)break;else _0x3a33e4['push'](_0x3a33e4['shift']());}catch(_0x2e5c3d){_0x3a33e4['push'](_0x3a33e4['shift']());}}}(a17_0x5a27,0x44306));function a17_0x5a27(){const _0x518f2c=['azcBK','../../config/logger','cluster-name','User\x20Access','is\x20already\x20present','data','../../cloudproviders/utils','replace','../../utils/webSocketUtils','command','grid\x20profile\x20flow\x20','../../config/constants','wEhLI','HOqpn','reconnecting-websocket','srywl','CLOUD_PROVIDER','region','LmgpU','DmylQ','clusterName','nUYCI','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','\x20\x20Stack:\x20','nxJBB','Missing\x20required\x20arguments:\x20','GET','vOEgv','ogzIw','1071161KWwpHa','gridProfile','INFO','wSrrX','hEagI','dnhZp','uenuj','aEJwY','73869kcHbmY','pre-check-grid-called','qLtwu','cloudProvider','\x20region\x20-\x20','Report\x20saved\x20in\x20','body','response','bstackAccesskey','Cluster\x20details\x0a-----------------------\x0a','uMUIj','getUTCHours','9924088ZSDvns','error\x20stack\x20:\x20','pre_check','rwblo','find','ERROR','0|1|2|3|4','Cluster\x20','oRZFz','zBnDG','stringify','string','AYPgx','stack','YmnPA','\x20\x20Message:\x20','nuaPL','accessResp','TzQWs','Success','xMlTs','EEJDL','TLSv1_2_client_method','aWthY','code','Whitelisted\x20browserstack','type','LOG','xtPsQ','handler','WDavE','QMmWl','HmoUc','oBxxt','varWs','\x20===\x0a\x0a','TYsLG','ijsCS','Xuvql','ymVGn','cluster-check-failed-','cloud-provider','`\x20already\x20exists','status','join','\x20\x20Code:\x20','WebSocket','usage','password','noraM','iwRsQ','clusterRegion','BQJaN','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','cpleJ','\x20data\x20:\x20',']\x20status\x20:\x20','FVWWu','Setting\x20cloud\x20provider\x20as\x20','rJMCh','<PasswordPlaceholder>','/packages/cli/get-all-grid-profiles','https://','Cluster\x20`','msJtc','epilogue','`\x20,error\x20:\x20','ijKek','CJjRx','parse','DYwfC','iQevH','Error\x20Details:\x0a','isTrialGridAccessible','3208KpXuBc','error','Tool\x20Installed','IQKag','isClusterPresent','mAIMq','Etugq','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','readFileSync','DxWMQ','RbxOS','grid-profile','header','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','QwVUt','method','IDUZu','getUTCFullYear','toolInstalledResp','ZLhST','dsHBI','swjkT','dfycN','zUCuT','credential-not-found','ICFyG','debug','requestId','pre-check','1503048ftVAiL','description','ksbGe','cloud-provider-not-supported','esZmu','iJVkz','AwoLl','Pre-check\x20running\x20for\x20Cloud\x20-\x20','zpuCK','will\x20be\x20created','LcyzR','help','dZnsI','jHxFm','pFNMu','mvxWx','username','sendEventToBackend','874386AEmrNW','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','UuUwQ','existsSync','delay','builder','includes','weusf','Browserstack','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YUvuB','../../utils/utilityMethods','options','MHFrz','length','pre-check-cluster-args-not-passed','name','isTls1_2_SUPPORTED','forEach','Invalid\x20input.\x20grid\x20profiles:\x20','exit','eXvnS','QPkWl','SWGjW','tfKdq','writeFileSync','WGsNC','2505CYkSZc','ggLEH','dummy-grid','\x20error\x20:\x20','message','fikIs','yfrzY','VYuoA','862028bGbcoA','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','xzixg','vrmQK','NVcsy','argv','push','bowxA','.\x20Please\x20provide\x20all\x20required\x20arguments.','bJNdn','HgbJq','kTYUH','isCliToolInstalled','SwngK','9UxvyYz','EYDVG','QaXRJ','pre-check-grid-profile-empty','info','getUTCMonth','headers','AuOFt','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yMTyk','bstackUsername','connectionTimeout','stack\x20trace\x20','JOciq','dOwwX','pre-check-failed','utf-8','NJBdP','aQLgQ','sFrJw','wGTxf','BigcN','AHvFB','gDVLd','grid','Message:\x20','Failure','hgpZn','\x20details\x20cannot\x20be\x20fetched\x0a\x0a'];a17_0x5a27=function(){return _0x518f2c;};return a17_0x5a27();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x5cad91(0x1ae)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x5cad91(0x255)),{logger}=require(a17_0x5cad91(0x1a1)),{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_0x5cad91(0x1ab)),{getCloudProviderObjectWithOutInit}=require(a17_0x5cad91(0x1a6)),webSocketUtils=require(a17_0x5cad91(0x1a8)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x5125(_0x5c92f7,_0x13e6ce){const _0x5a273d=a17_0x5a27();return a17_0x5125=function(_0x512560,_0x2e40b7){_0x512560=_0x512560-0x16a;let _0xa06af4=_0x5a273d[_0x512560];return _0xa06af4;},a17_0x5125(_0x5c92f7,_0x13e6ce);}exports[a17_0x5cad91(0x1a9)]=a17_0x5cad91(0x19b),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x5cad91(0x24f)]=function(_0xf50dbb){const _0x3dd125=a17_0x5cad91,_0x4fe2f7={};_0x4fe2f7[_0x3dd125(0x246)]=_0x3dd125(0x222),_0x4fe2f7[_0x3dd125(0x18a)]=_0x3dd125(0x1dc),_0x4fe2f7[_0x3dd125(0x178)]=_0x3dd125(0x176),_0x4fe2f7['UERIT']=_0x3dd125(0x24b),_0x4fe2f7['gHEKv']=_0x3dd125(0x253),_0x4fe2f7[_0x3dd125(0x190)]='help';const _0x3d184a=_0x4fe2f7,_0x329cc4={};_0x329cc4[_0x3dd125(0x239)]=_0x3d184a[_0x3dd125(0x246)],_0x329cc4['type']=_0x3d184a[_0x3dd125(0x18a)];const _0x524d7e={};_0x524d7e[_0x3dd125(0x239)]=_0x3d184a[_0x3dd125(0x178)],_0x524d7e[_0x3dd125(0x1eb)]=_0x3d184a[_0x3dd125(0x18a)];const _0x2fbfa7={};_0x2fbfa7[_0x3dd125(0x239)]=_0x3d184a['UERIT'],_0x2fbfa7['type']=_0x3d184a[_0x3dd125(0x18a)];const _0x2e0524={};_0x2e0524[_0x3dd125(0x239)]=_0x3d184a['gHEKv'],_0x2e0524['type']=_0x3d184a[_0x3dd125(0x18a)];const _0x2fea30={};return _0x2fea30['cluster-name']=_0x329cc4,_0x2fea30[_0x3dd125(0x1fa)]=_0x524d7e,_0x2fea30['region']=_0x2fbfa7,_0x2fea30[_0x3dd125(0x226)]=_0x2e0524,_0xf50dbb['usage'](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3dd125(0x256)](_0x2fea30)[_0x3dd125(0x243)](_0x3d184a[_0x3dd125(0x190)])['argv'];};async function inputValidation(_0x3a81d0,_0x119d41){const _0x5489e1=a17_0x5cad91,_0x3094b1={'EEJDL':_0x5489e1(0x206),'BigcN':_0x5489e1(0x1fa),'mKyfk':function(_0xc931f6,_0x1a1daf){return _0xc931f6+_0x1a1daf;},'azcBK':_0x5489e1(0x1e4),'OXspJ':_0x5489e1(0x19d),'tXpgz':function(_0x279cfd,_0x530026){return _0x279cfd||_0x530026;},'iwRsQ':'N/A','noraM':_0x5489e1(0x219),'iQevH':_0x5489e1(0x1b1),'hZwRs':_0x5489e1(0x1a4),'zpuCK':_0x5489e1(0x241),'xiBTa':_0x5489e1(0x222),'iJVkz':_0x5489e1(0x1dc),'YkGXY':_0x5489e1(0x176),'NJBdP':_0x5489e1(0x24b),'uMUIj':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','CJjRx':'help','dOwwX':_0x5489e1(0x21c),'qLtwu':_0x5489e1(0x1a2),'AYPgx':function(_0x17e8bf,_0x352a2a){return _0x17e8bf===_0x352a2a;},'zUCuT':_0x5489e1(0x17f),'kTYUH':function(_0x4d8b56,_0x4f32a3){return _0x4d8b56===_0x4f32a3;},'bJNdn':_0x5489e1(0x251),'dnhZp':_0x5489e1(0x16a),'oRZFz':'KGGXc','EYDVG':function(_0x347717,_0x5a8c58){return _0x347717!==_0x5a8c58;},'xtPsQ':'LEslD','bowxA':function(_0x310c1b,_0x8c66e){return _0x310c1b===_0x8c66e;},'nuaPL':_0x5489e1(0x177),'DYwfC':_0x5489e1(0x22e),'AHvFB':function(_0x2c7038,_0x37c41c){return _0x2c7038>_0x37c41c;},'wSrrX':'ighzh','varWs':function(_0x576a24,_0x4a3a5e,_0x4839a6,_0x4e1bea,_0x544c1d,_0x522b39,_0x4e7fae,_0x311a10){return _0x576a24(_0x4a3a5e,_0x4839a6,_0x4e1bea,_0x544c1d,_0x522b39,_0x4e7fae,_0x311a10);},'LcyzR':_0x5489e1(0x1c6),'ijKek':_0x5489e1(0x259),'QaXRJ':'ccQFi','YUvuB':_0x5489e1(0x1e8),'srywl':_0x5489e1(0x1b6),'lpqeF':function(_0x2abb75,_0x233200,_0x4b9539,_0x5196c8,_0x524e77,_0x258987,_0x11069d,_0x33d76f){return _0x2abb75(_0x233200,_0x4b9539,_0x5196c8,_0x524e77,_0x258987,_0x11069d,_0x33d76f);},'fikIs':_0x5489e1(0x23b),'esZmu':function(_0x153261,_0x1e9367){return _0x153261===_0x1e9367;},'nUYCI':'YGHAl','rJMCh':'iiRCD','AwsgE':function(_0x283c90,_0x50dfeb){return _0x283c90!==_0x50dfeb;},'IDUZu':'sJJPM','WGsNC':_0x5489e1(0x1ba),'yjsaQ':function(_0x263a8a,_0xe4366e,_0xa9f4f){return _0x263a8a(_0xe4366e,_0xa9f4f);},'DxWMQ':function(_0x222181,_0x3752fa,_0x3ea709,_0x38cce5,_0x318b5f,_0x1c853d){return _0x222181(_0x3752fa,_0x3ea709,_0x38cce5,_0x318b5f,_0x1c853d);},'rwblo':_0x5489e1(0x237),'UuUwQ':_0x5489e1(0x226),'HmoUc':function(_0x27b708,_0x4f7c75){return _0x27b708===_0x4f7c75;},'gDVLd':_0x5489e1(0x195),'SwngK':function(_0x22268e,_0x12f1a3){return _0x22268e(_0x12f1a3);},'yMTyk':'lmqHi','mvxWx':function(_0x4f642a,_0x5e4389,_0x56d3c6,_0x2c16f6,_0x53b95d,_0x4fdf30,_0x36fc7e,_0x2c779e){return _0x4f642a(_0x5e4389,_0x56d3c6,_0x2c16f6,_0x53b95d,_0x4fdf30,_0x36fc7e,_0x2c779e);},'ijsCS':_0x5489e1(0x186),'swjkT':function(_0x296c99,_0x29f4ce){return _0x296c99!==_0x29f4ce;},'Etugq':_0x5489e1(0x1ad),'BQJaN':_0x5489e1(0x23e),'YmnPA':'Grid\x20profile\x20fetched\x20for\x20pre-check','ICFyG':function(_0x376e96,_0x4e23d1){return _0x376e96===_0x4e23d1;},'VzbBE':_0x5489e1(0x1e5),'VqZyv':_0x5489e1(0x225),'IGelH':_0x5489e1(0x244),'aEJwY':_0x5489e1(0x1b3)};let _0x564d71;try{if(_0x3094b1['AYPgx'](_0x3094b1[_0x5489e1(0x232)],_0x3094b1[_0x5489e1(0x232)])){if(_0x3a81d0[_0x5489e1(0x1b4)]||_0x3a81d0[_0x5489e1(0x1c8)]||_0x3a81d0[_0x5489e1(0x1b1)]){if(_0x3094b1[_0x5489e1(0x180)](_0x3094b1['bJNdn'],_0x3094b1[_0x5489e1(0x17e)])){const _0x371bfa=[];!_0x3a81d0['clusterName']&&(_0x3094b1[_0x5489e1(0x180)](_0x3094b1[_0x5489e1(0x1c2)],_0x3094b1[_0x5489e1(0x1d9)])?(_0x4f653f[_0x5489e1(0x21c)](_0x3094b1[_0x5489e1(0x1e6)]),_0x217681[_0x5489e1(0x25e)](0x1)):_0x371bfa[_0x5489e1(0x17b)](_0x3094b1[_0x5489e1(0x1c7)]));;!_0x3a81d0[_0x5489e1(0x1c8)]&&(_0x3094b1[_0x5489e1(0x184)](_0x3094b1[_0x5489e1(0x1ed)],_0x3094b1['xtPsQ'])?_0x72c4fe['info'](_0x5489e1(0x210)+_0x5b81b7[_0x5489e1(0x1b4)]+'`\x20already\x20exists'):_0x371bfa[_0x5489e1(0x17b)](_0x3094b1[_0x5489e1(0x198)]));;!_0x3a81d0[_0x5489e1(0x1b1)]&&(_0x3094b1[_0x5489e1(0x17c)](_0x3094b1[_0x5489e1(0x1e1)],_0x3094b1[_0x5489e1(0x217)])?_0xa7dd2e[_0x5489e1(0x17b)](_0x3094b1[_0x5489e1(0x198)]):_0x371bfa[_0x5489e1(0x17b)](_0x3094b1[_0x5489e1(0x218)]));;if(_0x3094b1[_0x5489e1(0x199)](_0x371bfa[_0x5489e1(0x258)],0x0)){if(_0x3094b1[_0x5489e1(0x1dd)](_0x3094b1[_0x5489e1(0x1c0)],_0x3094b1[_0x5489e1(0x1c0)]))_0x564d71=_0x5489e1(0x1b9)+_0x371bfa[_0x5489e1(0x1fd)](',\x20')+_0x5489e1(0x17d),await _0x3094b1[_0x5489e1(0x1f3)](reportToGalactusAndSendToEDS,_0x3a81d0,_0x119d41,_0x564d71,messageTypes[_0x5489e1(0x1d6)],_0x3094b1[_0x5489e1(0x242)],_0x3094b1[_0x5489e1(0x214)],_0x3094b1[_0x5489e1(0x191)]),logger['error'](_0x564d71),process[_0x5489e1(0x25e)](0x1);else{const {header:_0x25bd6c,response:_0x1a35df}=_0x4386c3,{status:_0x17b027,data:_0x3f6ba4,error:_0xc6bb20}=_0x1a35df;_0xea8375+=_0x25bd6c+'\x20#'+_0x3094b1['mKyfk'](_0x2746d5,0x1)+'\x0a',_0x417ed7+='Status:\x20'+(_0x17b027?_0x3094b1[_0x5489e1(0x1a0)]:_0x3094b1['OXspJ'])+'\x0a',_0x4b9b54+=_0x5489e1(0x19c)+_0x3094b1['tXpgz'](_0x3f6ba4,_0x3094b1[_0x5489e1(0x203)])+'\x0a',_0xc6bb20&&(_0x39dc2a+=_0x3094b1['noraM'],_0x30f54a+=_0x5489e1(0x1e0)+(_0xc6bb20[_0x5489e1(0x171)]||_0x3094b1[_0x5489e1(0x203)])+'\x0a',_0x1d14c9+=_0x5489e1(0x1fe)+(_0xc6bb20[_0x5489e1(0x1e9)]||_0x3094b1['iwRsQ'])+'\x0a',_0x24bb93+=_0x5489e1(0x1b7)+(_0xc6bb20[_0x5489e1(0x1de)]||_0x3094b1[_0x5489e1(0x203)])+'\x0a'),_0x290893+='\x0a\x0a';}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x5489e1(0x250)](_0x3a81d0[_0x5489e1(0x1c8)]['toLowerCase']())&&(_0x3094b1[_0x5489e1(0x17c)](_0x3094b1[_0x5489e1(0x185)],_0x3094b1[_0x5489e1(0x254)])?_0x2b310d[_0x5489e1(0x17b)](_0x3094b1['iQevH']):(_0x564d71=_0x3094b1[_0x5489e1(0x1af)],await _0x3094b1['lpqeF'](reportToGalactusAndSendToEDS,_0x3a81d0,_0x119d41,_0x564d71,messageTypes[_0x5489e1(0x1d6)],_0x3094b1[_0x5489e1(0x242)],_0x3094b1[_0x5489e1(0x172)],_0x3094b1[_0x5489e1(0x191)]),logger[_0x5489e1(0x21c)](_0x564d71),!_0x3a81d0[_0x5489e1(0x1c8)]&&(_0x3094b1[_0x5489e1(0x23c)](_0x3094b1[_0x5489e1(0x1b5)],_0x3094b1[_0x5489e1(0x20c)])?_0x518784+='Cluster\x20'+_0x43b2a1[_0x5489e1(0x1b4)]+'\x20'+(_0x5c942f?_0x3094b1['hZwRs']:_0x3094b1[_0x5489e1(0x240)])+'\x0a\x0a':(logger[_0x5489e1(0x187)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x5489e1(0x1b0)]+'\x20'),_0x3a81d0[_0x5489e1(0x1c8)]=DEFAULT_CLUSTER_DETAILS[_0x5489e1(0x1b0)])))),global_registry[_0x5489e1(0x1b4)]=_0x3a81d0[_0x5489e1(0x1b4)],global_registry[_0x5489e1(0x1c8)]=_0x3a81d0[_0x5489e1(0x1c8)],global_registry[_0x5489e1(0x204)]=_0x3a81d0[_0x5489e1(0x1b1)];}else{const _0x140470={};_0x140470['description']=_0x3094b1['xiBTa'],_0x140470[_0x5489e1(0x1eb)]=_0x3094b1[_0x5489e1(0x23d)];const _0x3cde28={};_0x3cde28[_0x5489e1(0x239)]=_0x3094b1['YkGXY'],_0x3cde28[_0x5489e1(0x1eb)]=_0x3094b1[_0x5489e1(0x23d)];const _0x5efeb1={};_0x5efeb1['description']=_0x3094b1[_0x5489e1(0x194)],_0x5efeb1['type']=_0x3094b1[_0x5489e1(0x23d)];const _0x7d392d={};_0x7d392d[_0x5489e1(0x239)]=_0x3094b1[_0x5489e1(0x1cf)],_0x7d392d['type']=_0x3094b1[_0x5489e1(0x23d)];const _0x5edab0={};return _0x5edab0[_0x5489e1(0x1a2)]=_0x140470,_0x5edab0[_0x5489e1(0x1fa)]=_0x3cde28,_0x5edab0[_0x5489e1(0x1b1)]=_0x5efeb1,_0x5edab0['grid-profile']=_0x7d392d,_0x242814[_0x5489e1(0x200)](_0x139874[_0x5489e1(0x1d3)])[_0x5489e1(0x212)](_0x58f92f)[_0x5489e1(0x256)](_0x5edab0)[_0x5489e1(0x243)](_0x3094b1[_0x5489e1(0x215)])[_0x5489e1(0x17a)];}}else{if(_0x3a81d0['gridProfile']){if(_0x3094b1['AwsgE'](_0x3094b1[_0x5489e1(0x22b)],_0x3094b1[_0x5489e1(0x22b)]))_0xfe0a08+=_0x3094b1[_0x5489e1(0x202)],_0x6b365d+=_0x5489e1(0x1e0)+(_0x16b798[_0x5489e1(0x171)]||_0x3094b1['iwRsQ'])+'\x0a',_0x9002bb+=_0x5489e1(0x1fe)+(_0x42acae[_0x5489e1(0x1e9)]||_0x3094b1[_0x5489e1(0x203)])+'\x0a',_0x31f1ef+='\x20\x20Stack:\x20'+(_0x5db8ef[_0x5489e1(0x1de)]||_0x3094b1[_0x5489e1(0x203)])+'\x0a';else{global_registry[_0x5489e1(0x1be)]=_0x3a81d0[_0x5489e1(0x1be)],logger['debug'](_0x5489e1(0x1aa)+_0x3a81d0[_0x5489e1(0x1be)]);const _0x4b156c=_0x5489e1(0x20f)+AG_API_URL+_0x5489e1(0x20e),_0x489e2c={};_0x489e2c[_0x5489e1(0x22a)]=_0x3094b1[_0x5489e1(0x16c)],_0x489e2c[_0x5489e1(0x189)]=global_registry['authHeader'],_0x489e2c['throwHttpErrors']=![];const _0x341093=_0x489e2c,_0x14344b=await _0x3094b1['yjsaQ'](got,_0x4b156c,_0x341093),_0x3f4398=await _0x3094b1[_0x5489e1(0x224)](responseValidation,_0x14344b,_0x3094b1[_0x5489e1(0x1d4)],_0x3094b1[_0x5489e1(0x24c)],_0x3a81d0,_0x119d41);let _0xa7741b={};if(_0x3094b1['HmoUc'](_0x3f4398,0xc8)){if(_0x3094b1[_0x5489e1(0x23c)](_0x3094b1[_0x5489e1(0x19a)],_0x3094b1['gDVLd'])){const _0x411793=JSON[_0x5489e1(0x216)](_0x14344b[_0x5489e1(0x1cb)]),_0x569f2b=_0x411793[_0x5489e1(0x1d5)](_0x1f33e7=>_0x1f33e7[_0x5489e1(0x25a)]===_0x3a81d0[_0x5489e1(0x1be)])||null;_0x3094b1[_0x5489e1(0x182)](isUndefined,_0x569f2b)?_0x3094b1[_0x5489e1(0x184)](_0x3094b1[_0x5489e1(0x18c)],_0x3094b1[_0x5489e1(0x18c)])?(_0x538b58[_0x5489e1(0x187)](_0x5489e1(0x20b)+_0x38362f[_0x5489e1(0x1b0)]+'\x20'),_0x37d496[_0x5489e1(0x1c8)]=_0x118b7a[_0x5489e1(0x1b0)]):(_0x564d71=_0x5489e1(0x25d)+_0x3a81d0['gridProfile']+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x3094b1[_0x5489e1(0x247)](reportToGalactusAndSendToEDS,_0x3a81d0,_0x119d41,_0x564d71,messageTypes[_0x5489e1(0x1d6)],_0x3094b1[_0x5489e1(0x242)],_0x3094b1[_0x5489e1(0x1f6)],_0x3094b1[_0x5489e1(0x191)]),logger[_0x5489e1(0x21c)](_0x564d71),process[_0x5489e1(0x25e)](0x1)):_0x3094b1[_0x5489e1(0x230)](_0x3094b1[_0x5489e1(0x221)],_0x3094b1[_0x5489e1(0x221)])?_0x30e76b+=_0x5489e1(0x1d8)+_0x4e6417['clusterName']+_0x5489e1(0x19f):_0xa7741b=_0x569f2b;}else _0xf414d[_0x5489e1(0x187)]('['+_0x1ee3ef+_0x5489e1(0x209)+_0x51701a[_0x5489e1(0x1fc)]+_0x5489e1(0x208)+_0x2f9a08[_0x5489e1(0x1a5)]+_0x5489e1(0x170)+_0x42776f[_0x5489e1(0x21c)]),_0x281c17[_0x5489e1(0x21c)]&&_0x2e5a24[_0x5489e1(0x21c)](_0x5489e1(0x1d2)+_0x405551[_0x5489e1(0x21c)][_0x5489e1(0x1de)]);}else _0x3094b1['EYDVG'](_0x3094b1[_0x5489e1(0x205)],_0x3094b1[_0x5489e1(0x205)])?_0x593186=_0x5745b3:process['exit'](0x1);const _0x5cdf47={};_0x5cdf47[_0x5489e1(0x1eb)]=WS_EVENTS[_0x5489e1(0x1ec)],_0x5cdf47['message']=_0x3094b1[_0x5489e1(0x1df)],webSocketUtils[_0x5489e1(0x249)](_0x119d41,_0x5cdf47),global_registry['cloudProvider']=_0xa7741b[_0x5489e1(0x1c8)],global_registry[_0x5489e1(0x204)]=_0xa7741b[_0x5489e1(0x1b1)],global_registry[_0x5489e1(0x1b4)]=_0xa7741b[_0x5489e1(0x1b4)];}}else _0x3094b1[_0x5489e1(0x234)](_0x3094b1['VzbBE'],_0x3094b1['VqZyv'])?_0x266ff1[_0x5489e1(0x21c)](_0x5489e1(0x1d2)+_0x3d8b77[_0x5489e1(0x21c)][_0x5489e1(0x1de)]):(logger[_0x5489e1(0x21c)](_0x3094b1[_0x5489e1(0x1e6)]),process[_0x5489e1(0x25e)](0x1));}}else{const _0x171dea={};_0x171dea[_0x5489e1(0x1eb)]=_0x1a799f['LOG'],_0x171dea[_0x5489e1(0x171)]=_0xed72d4,_0x6cfc5b[_0x5489e1(0x249)](_0x34abdb,_0x171dea,_0x3094b1['dOwwX'],!![]);}}catch(_0x42f21){_0x3094b1[_0x5489e1(0x1f1)](_0x3094b1['IGelH'],_0x3094b1[_0x5489e1(0x1c4)])?_0x4231a3[_0x5489e1(0x17b)](_0x3094b1['qLtwu']):(_0x564d71=_0x5489e1(0x228)+_0x42f21+':\x20'+_0x42f21['stack'],logger[_0x5489e1(0x21c)](_0x564d71),await _0x3094b1[_0x5489e1(0x1f3)](reportToGalactusAndSendToEDS,_0x3a81d0,_0x119d41,_0x564d71,messageTypes[_0x5489e1(0x1d6)],_0x3094b1[_0x5489e1(0x242)],_0x3094b1['fikIs'],_0x3094b1[_0x5489e1(0x191)]),process[_0x5489e1(0x25e)](0x1));}}function printResponse(_0x5c6b7c,_0x4ebcaa){const _0x1dd3d0=a17_0x5cad91,_0x45c0bd={};_0x45c0bd[_0x1dd3d0(0x1f5)]=function(_0x561702,_0x2ac11e){return _0x561702!==_0x2ac11e;},_0x45c0bd[_0x1dd3d0(0x1ac)]='PObsi',_0x45c0bd[_0x1dd3d0(0x1ef)]='FJAHX';const _0x104ffc=_0x45c0bd;logger[_0x1dd3d0(0x187)]('['+_0x5c6b7c+_0x1dd3d0(0x209)+_0x4ebcaa['status']+_0x1dd3d0(0x208)+_0x4ebcaa[_0x1dd3d0(0x1a5)]+_0x1dd3d0(0x170)+_0x4ebcaa[_0x1dd3d0(0x21c)]),_0x4ebcaa[_0x1dd3d0(0x21c)]&&(_0x104ffc[_0x1dd3d0(0x1f5)](_0x104ffc[_0x1dd3d0(0x1ac)],_0x104ffc[_0x1dd3d0(0x1ef)])?logger[_0x1dd3d0(0x21c)](_0x1dd3d0(0x1d2)+_0x4ebcaa[_0x1dd3d0(0x21c)][_0x1dd3d0(0x1de)]):_0x3377df[_0x1dd3d0(0x25e)](0x1));}async function generateReport(_0x24d709,_0x342f52){const _0x43f67a=a17_0x5cad91,_0x1b8a81={'msJtc':function(_0x8de684,_0x420e6b){return _0x8de684+_0x420e6b;},'TWlkL':_0x43f67a(0x1e4),'hEagI':_0x43f67a(0x19d),'QwVUt':function(_0x4b78f3,_0x292634){return _0x4b78f3||_0x292634;},'mAIMq':'N/A','FVWWu':_0x43f67a(0x219),'kxqAP':_0x43f67a(0x1ce),'ogzIw':function(_0xcdb151,_0x3737c8){return _0xcdb151!=_0x3737c8;},'LmgpU':_0x43f67a(0x1a4),'iNMrD':_0x43f67a(0x241),'uenuj':function(_0xdfe068){return _0xdfe068();}};let _0x7e3c51='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x43f67a(0x1c8)]+_0x43f67a(0x1f4);return _0x24d709[_0x43f67a(0x25c)]((_0x13394e,_0xd0ff53)=>{const _0x1b605d=_0x43f67a,{header:_0x12b9b4,response:_0x5a8b9f}=_0x13394e,{status:_0x52fb73,data:_0x5bdf55,error:_0x2d8ff4}=_0x5a8b9f;_0x7e3c51+=_0x12b9b4+'\x20#'+_0x1b8a81[_0x1b605d(0x211)](_0xd0ff53,0x1)+'\x0a',_0x7e3c51+='Status:\x20'+(_0x52fb73?_0x1b8a81['TWlkL']:_0x1b8a81[_0x1b605d(0x1c1)])+'\x0a',_0x7e3c51+=_0x1b605d(0x19c)+_0x1b8a81[_0x1b605d(0x229)](_0x5bdf55,_0x1b8a81[_0x1b605d(0x220)])+'\x0a',_0x2d8ff4&&(_0x7e3c51+=_0x1b8a81[_0x1b605d(0x20a)],_0x7e3c51+='\x20\x20Message:\x20'+(_0x2d8ff4[_0x1b605d(0x171)]||_0x1b8a81[_0x1b605d(0x220)])+'\x0a',_0x7e3c51+=_0x1b605d(0x1fe)+(_0x2d8ff4[_0x1b605d(0x1e9)]||_0x1b8a81[_0x1b605d(0x220)])+'\x0a',_0x7e3c51+='\x20\x20Stack:\x20'+(_0x2d8ff4['stack']||_0x1b8a81[_0x1b605d(0x220)])+'\x0a'),_0x7e3c51+='\x0a\x0a';}),_0x7e3c51+=_0x1b8a81['kxqAP'],_0x1b8a81[_0x43f67a(0x1bc)](_0x342f52,null)?_0x7e3c51+='Cluster\x20'+global_registry[_0x43f67a(0x1b4)]+'\x20'+(_0x342f52?_0x1b8a81[_0x43f67a(0x1b2)]:_0x1b8a81['iNMrD'])+'\x0a\x0a':_0x7e3c51+='Cluster\x20'+global_registry[_0x43f67a(0x1b4)]+_0x43f67a(0x19f),_0x7e3c51+=_0x1b8a81[_0x43f67a(0x1c3)](getSystemMetaData),_0x7e3c51;};exports[a17_0x5cad91(0x1ee)]=async function(_0x3b1497){const _0x36e0f6=a17_0x5cad91,_0x6d044a={'yfrzY':function(_0x3d5801){return _0x3d5801();},'jLOwg':_0x36e0f6(0x18b),'wGTxf':function(_0xd59caf,_0x307301,_0x1d079b,_0x423a7a,_0x1c6dfa,_0x44670e,_0x363e45,_0x32e7d0){return _0xd59caf(_0x307301,_0x1d079b,_0x423a7a,_0x1c6dfa,_0x44670e,_0x363e45,_0x32e7d0);},'MHFrz':_0x36e0f6(0x1c6),'HxMNx':_0x36e0f6(0x233),'dfycN':_0x36e0f6(0x21c),'QPkWl':function(_0x8af99b,_0x3e2222,_0x3a9fbb,_0x3cdcf9,_0x1ae8da,_0x560f93,_0x27929a){return _0x8af99b(_0x3e2222,_0x3a9fbb,_0x3cdcf9,_0x1ae8da,_0x560f93,_0x27929a);},'ksbGe':'<UsernamePlaceholder>','sFrJw':_0x36e0f6(0x20d),'nxJBB':function(_0x2adae4,_0xec2871,_0x139dad){return _0x2adae4(_0xec2871,_0x139dad);},'vOEgv':_0x36e0f6(0x16f),'oBxxt':_0x36e0f6(0x22d),'ADjNp':_0x36e0f6(0x1d7),'Xuvql':function(_0xa761bf,_0x20affe,_0x3740cd,_0x567735,_0x126d78,_0x1d4e64,_0x484a8c,_0x76f85c){return _0xa761bf(_0x20affe,_0x3740cd,_0x567735,_0x126d78,_0x1d4e64,_0x484a8c,_0x76f85c);},'cpleJ':_0x36e0f6(0x1e2),'IQKag':function(_0x112bb3){return _0x112bb3();},'GevuX':_0x36e0f6(0x21a),'ymVGn':function(_0x224458,_0x23ea13){return _0x224458(_0x23ea13);},'VYuoA':_0x36e0f6(0x1e7),'wYEir':function(_0x29d5fa,_0xc46342,_0x1f3d24){return _0x29d5fa(_0xc46342,_0x1f3d24);},'zBnDG':_0x36e0f6(0x25b),'dsHBI':_0x36e0f6(0x21d),'SWGjW':_0x36e0f6(0x1a3),'ggLEH':_0x36e0f6(0x1ea),'jHxFm':'SSL\x20Configured','NVcsy':function(_0x28a7d3,_0x6ef195,_0x3ccd2a){return _0x28a7d3(_0x6ef195,_0x3ccd2a);},'eXvnS':function(_0x3ad466,_0x32effa){return _0x3ad466+_0x32effa;},'TzQWs':_0x36e0f6(0x193),'hgpZn':function(_0x4e91e6,_0x117e45,_0x498896,_0x5dbbee,_0x3cff87,_0x397bbc,_0x5dcd5d){return _0x4e91e6(_0x117e45,_0x498896,_0x5dbbee,_0x3cff87,_0x397bbc,_0x5dcd5d);},'QMmWl':_0x36e0f6(0x192)};let _0x18be4f,_0x196fd4;try{global_registry[_0x36e0f6(0x236)]=_0x6d044a[_0x36e0f6(0x173)](uuidv4);!fs[_0x36e0f6(0x24d)](_0x6d044a[_0x36e0f6(0x173)](getCredentialsPath))&&(_0x196fd4=_0x6d044a['jLOwg'],logger[_0x36e0f6(0x21c)](_0x196fd4),await _0x6d044a[_0x36e0f6(0x197)](reportToGalactusAndSendToEDS,_0x3b1497,_0x18be4f,_0x196fd4,messageTypes[_0x36e0f6(0x1d6)],_0x6d044a[_0x36e0f6(0x257)],_0x6d044a['HxMNx'],_0x6d044a[_0x36e0f6(0x231)]),process[_0x36e0f6(0x25e)](0x1));_0x6d044a[_0x36e0f6(0x260)](sendInstrumentationEvent,_0x3b1497,_0x6d044a[_0x36e0f6(0x257)],messageTypes[_0x36e0f6(0x1bf)],null,null,_0x3b1497);const _0x1c1e2c=JSON['parse'](fs[_0x36e0f6(0x223)](_0x6d044a['yfrzY'](getCredentialsPath)));global_registry[_0x36e0f6(0x18d)]=_0x1c1e2c['Browserstack'][_0x36e0f6(0x248)],global_registry[_0x36e0f6(0x1cd)]=_0x1c1e2c[_0x36e0f6(0x252)][_0x36e0f6(0x201)];const _0x19c61c=WS_ENDPOINT[_0x36e0f6(0x1a7)](_0x6d044a[_0x36e0f6(0x23a)],_0x1c1e2c[_0x36e0f6(0x252)]['username'])[_0x36e0f6(0x1a7)](_0x6d044a[_0x36e0f6(0x196)],_0x1c1e2c[_0x36e0f6(0x252)][_0x36e0f6(0x201)]),_0xb18f53={};_0xb18f53[_0x36e0f6(0x1ff)]=ws,_0xb18f53[_0x36e0f6(0x18e)]=0x36ee80,_0x18be4f=new ReconnectingWebSocket(_0x19c61c,[],_0xb18f53),global_registry['authHeader']=_0x6d044a['nxJBB'](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x6d044a[_0x36e0f6(0x1b8)](inputValidation,_0x3b1497,_0x18be4f),logger[_0x36e0f6(0x187)](_0x36e0f6(0x23f)+global_registry[_0x36e0f6(0x1c8)]+_0x36e0f6(0x1c9)+global_registry['clusterRegion']);let _0x23db24=await _0x6d044a['QPkWl'](getCloudProviderObjectWithOutInit,global_registry[_0x36e0f6(0x1c8)],global_registry['clusterName'],_0x6d044a[_0x36e0f6(0x1bb)],_0x18be4f,webSocketUtils,_0x3b1497);const _0x55564e=await _0x23db24[_0x36e0f6(0x181)]();_0x6d044a[_0x36e0f6(0x1b8)](printResponse,_0x6d044a[_0x36e0f6(0x1f2)],_0x55564e),_0x23db24=await _0x23db24['init']();let _0x1062c4=![];try{_0x1062c4=await _0x23db24[_0x36e0f6(0x21f)]();}catch(_0x249ff8){const _0x17b8eb=_0x6d044a['ADjNp']['split']('|');let _0x3274cf=0x0;while(!![]){switch(_0x17b8eb[_0x3274cf++]){case'0':_0x196fd4='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x36e0f6(0x1b4)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x36e0f6(0x204)]+_0x36e0f6(0x213)+_0x249ff8;continue;case'1':_0x1062c4=null;continue;case'2':logger[_0x36e0f6(0x21c)](_0x196fd4);continue;case'3':_0x196fd4+='\x0a'+JSON[_0x36e0f6(0x1db)](_0x249ff8['stack']);continue;case'4':await _0x6d044a[_0x36e0f6(0x1f7)](reportToGalactusAndSendToEDS,_0x3b1497,_0x18be4f,_0x196fd4,messageTypes['ERROR'],_0x6d044a[_0x36e0f6(0x257)],_0x36e0f6(0x1f9)+global_registry[_0x36e0f6(0x1c8)],_0x6d044a['dfycN']);continue;}break;}}_0x1062c4&&logger[_0x36e0f6(0x187)](_0x36e0f6(0x210)+global_registry[_0x36e0f6(0x1b4)]+_0x36e0f6(0x1fb));const _0x5d8582=await _0x23db24['checkAccess']();_0x6d044a['nxJBB'](printResponse,_0x6d044a[_0x36e0f6(0x207)],_0x5d8582);const _0x34a783=await _0x6d044a[_0x36e0f6(0x21e)](curlRequest);_0x6d044a[_0x36e0f6(0x1b8)](printResponse,_0x6d044a['GevuX'],_0x34a783);const _0x101416=await _0x6d044a[_0x36e0f6(0x1f8)](isTlsSupported,_0x6d044a[_0x36e0f6(0x174)]);_0x6d044a['wYEir'](printResponse,_0x6d044a[_0x36e0f6(0x1da)],_0x101416);const _0x983a7a={};_0x983a7a[_0x36e0f6(0x227)]=_0x6d044a[_0x36e0f6(0x22f)],_0x983a7a[_0x36e0f6(0x1cc)]=_0x55564e;const _0x4a9101={};_0x4a9101[_0x36e0f6(0x227)]=_0x6d044a[_0x36e0f6(0x261)],_0x4a9101[_0x36e0f6(0x1cc)]=_0x5d8582;const _0x48992b={};_0x48992b[_0x36e0f6(0x227)]=_0x6d044a[_0x36e0f6(0x16e)],_0x48992b[_0x36e0f6(0x1cc)]=_0x34a783;const _0x5a7ee8={};_0x5a7ee8[_0x36e0f6(0x227)]=_0x6d044a[_0x36e0f6(0x245)],_0x5a7ee8[_0x36e0f6(0x1cc)]=_0x101416;const _0x18d7aa=[_0x983a7a,_0x4a9101,_0x48992b,_0x5a7ee8],_0x5c2627=await _0x6d044a[_0x36e0f6(0x179)](generateReport,_0x18d7aa,_0x1062c4),_0x58ce6e=new Date(),_0x5a8bb5=_0x58ce6e[_0x36e0f6(0x22c)]()+'_'+_0x6d044a[_0x36e0f6(0x25f)](_0x58ce6e[_0x36e0f6(0x188)](),0x1)+'_'+_0x58ce6e['getUTCDate']()+'_'+_0x58ce6e[_0x36e0f6(0x1d0)]()+'_'+_0x58ce6e['getUTCMinutes'](),_0x1e9f66='log/report_'+_0x5a8bb5+'.txt';fs[_0x36e0f6(0x16b)](_0x1e9f66,_0x5c2627,_0x6d044a[_0x36e0f6(0x1e3)]),logger['info'](_0x36e0f6(0x1ca)+_0x1e9f66),process[_0x36e0f6(0x25e)](0x0);}catch(_0x2e8379){let _0x5d5d6c='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x2e8379+'\x20';logger[_0x36e0f6(0x21c)](_0x5d5d6c),_0x5d5d6c+='\x0a'+JSON[_0x36e0f6(0x1db)](_0x2e8379[_0x36e0f6(0x1de)]),logger[_0x36e0f6(0x235)](_0x36e0f6(0x18f)+_0x2e8379[_0x36e0f6(0x1de)]);if(_0x18be4f){const _0x20ce03={};_0x20ce03[_0x36e0f6(0x1eb)]=WS_EVENTS[_0x36e0f6(0x1ec)],_0x20ce03[_0x36e0f6(0x171)]=_0x5d5d6c,webSocketUtils[_0x36e0f6(0x249)](_0x18be4f,_0x20ce03,_0x6d044a[_0x36e0f6(0x231)],!![]);}await webSocketUtils[_0x36e0f6(0x24e)](0x7d0);const _0x546f81={};_0x546f81['error']=_0x5d5d6c,await _0x6d044a[_0x36e0f6(0x19e)](sendInstrumentationEvent,_0x3b1497,_0x6d044a[_0x36e0f6(0x257)],messageTypes[_0x36e0f6(0x1d6)],_0x6d044a[_0x36e0f6(0x1f0)],_0x546f81,_0x3b1497),process[_0x36e0f6(0x25e)](0x1);}};
1
+ const a17_0x1e4726=a17_0x107a;(function(_0x536992,_0x18c4b2){const _0xdd3786=a17_0x107a,_0xa873ac=_0x536992();while(!![]){try{const _0x50725c=parseInt(_0xdd3786(0x2ac))/0x1*(-parseInt(_0xdd3786(0x268))/0x2)+-parseInt(_0xdd3786(0x205))/0x3*(-parseInt(_0xdd3786(0x1bb))/0x4)+-parseInt(_0xdd3786(0x1e7))/0x5*(-parseInt(_0xdd3786(0x220))/0x6)+parseInt(_0xdd3786(0x224))/0x7*(-parseInt(_0xdd3786(0x245))/0x8)+parseInt(_0xdd3786(0x26e))/0x9*(parseInt(_0xdd3786(0x221))/0xa)+-parseInt(_0xdd3786(0x1d0))/0xb+parseInt(_0xdd3786(0x243))/0xc;if(_0x50725c===_0x18c4b2)break;else _0xa873ac['push'](_0xa873ac['shift']());}catch(_0xaaad92){_0xa873ac['push'](_0xa873ac['shift']());}}}(a17_0x3153,0x79423));function a17_0x107a(_0x7736f,_0x55e8c7){const _0x3153d6=a17_0x3153();return a17_0x107a=function(_0x107a05,_0x2edec9){_0x107a05=_0x107a05-0x1b7;let _0x428eb0=_0x3153d6[_0x107a05];return _0x428eb0;},a17_0x107a(_0x7736f,_0x55e8c7);}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x1e4726(0x226)),ReconnectingWebSocket=require(a17_0x1e4726(0x28e)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1e4726(0x23f)),{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_0x1e4726(0x1ba)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x1e4726(0x236)),{sendInstrumentationEvent}=require(a17_0x1e4726(0x270));exports['command']=a17_0x1e4726(0x258),exports[a17_0x1e4726(0x2b3)]=a17_0x1e4726(0x28f),exports[a17_0x1e4726(0x294)]=function(_0x13ed5b){const _0x379202=a17_0x1e4726,_0x1e0e9a={};_0x1e0e9a[_0x379202(0x239)]=_0x379202(0x2a3),_0x1e0e9a['UeRJJ']=_0x379202(0x1d7),_0x1e0e9a['XlOgn']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1e0e9a['xbjMg']=_0x379202(0x22f),_0x1e0e9a['ExLit']=_0x379202(0x1fd),_0x1e0e9a[_0x379202(0x1c4)]=_0x379202(0x1f6);const _0x55522e=_0x1e0e9a,_0x427bc5={};_0x427bc5[_0x379202(0x280)]=_0x55522e[_0x379202(0x239)],_0x427bc5[_0x379202(0x240)]=_0x55522e[_0x379202(0x292)];const _0x138a3a={};_0x138a3a[_0x379202(0x280)]=_0x55522e['XlOgn'],_0x138a3a['type']=_0x55522e[_0x379202(0x292)];const _0x145cb6={};_0x145cb6['description']=_0x55522e['xbjMg'],_0x145cb6[_0x379202(0x240)]=_0x55522e[_0x379202(0x292)];const _0x2dd714={};_0x2dd714['description']=_0x55522e[_0x379202(0x22c)],_0x2dd714[_0x379202(0x240)]=_0x55522e['UeRJJ'];const _0x3dfabf={};return _0x3dfabf[_0x379202(0x1b7)]=_0x427bc5,_0x3dfabf[_0x379202(0x212)]=_0x138a3a,_0x3dfabf['region']=_0x145cb6,_0x3dfabf['grid-profile']=_0x2dd714,_0x13ed5b[_0x379202(0x204)](HELP_HEADER_MESSAGE[_0x379202(0x238)])[_0x379202(0x26c)](HELP_FOOTER_MESSAGE)[_0x379202(0x2b0)](_0x3dfabf)[_0x379202(0x1f6)](_0x55522e[_0x379202(0x1c4)])['argv'];};async function inputValidation(_0x1a2b5c,_0x2872c9){const _0xd72c10=a17_0x1e4726,_0x17d03a={'jDdQZ':'error','PqVzO':_0xd72c10(0x246),'DynDf':_0xd72c10(0x1b9),'VhyHc':function(_0xb333b2,_0x29f9eb){return _0xb333b2+_0x29f9eb;},'nLxva':_0xd72c10(0x1eb),'eMAOD':'Failure','BFycV':function(_0x1127ad,_0x2ba787){return _0x1127ad||_0x2ba787;},'eGGXA':_0xd72c10(0x259),'WXmBM':'Error\x20Details:\x0a','GaQHt':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','XIJye':'string','GGldU':_0xd72c10(0x2a1),'qDqKu':_0xd72c10(0x22f),'yUnBT':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hQhqQ':_0xd72c10(0x1f6),'IAkZx':_0xd72c10(0x212),'syWJO':'region','GLXRu':_0xd72c10(0x25d),'LSHVd':_0xd72c10(0x1b7),'wiNve':function(_0x41e89b,_0xb77a40){return _0x41e89b!==_0xb77a40;},'PdBzc':_0xd72c10(0x223),'ESmQM':'gbcae','ODrWK':function(_0x130d73,_0x3fac9b){return _0x130d73===_0x3fac9b;},'nYDuT':'gVmhq','qIfFu':_0xd72c10(0x283),'gEqLW':_0xd72c10(0x21a),'gVEor':_0xd72c10(0x26a),'TZbrk':'rQCdw','eDcWC':function(_0x27e997,_0x5e4015){return _0x27e997>_0x5e4015;},'bkPgZ':function(_0x42b7b4,_0x61caea){return _0x42b7b4===_0x61caea;},'iAXwV':_0xd72c10(0x21b),'oEQki':function(_0x49062f,_0x409ba9,_0xa80152,_0x4ad9fb,_0x4c75c0,_0x4851c3,_0x44988f,_0x1d7360){return _0x49062f(_0x409ba9,_0xa80152,_0x4ad9fb,_0x4c75c0,_0x4851c3,_0x44988f,_0x1d7360);},'yMedL':_0xd72c10(0x227),'lwhaH':_0xd72c10(0x1bc),'XJkph':function(_0xc32eb,_0x3b9e84){return _0xc32eb!==_0x3b9e84;},'tBmSu':_0xd72c10(0x2ae),'dNHAo':_0xd72c10(0x1fe),'viTaQ':_0xd72c10(0x1cf),'EOuPk':function(_0x5af1f0,_0x53663b,_0x19b5b3,_0x29a0ae,_0x4b3577,_0x315e73,_0x4a23fb,_0x3fac48){return _0x5af1f0(_0x53663b,_0x19b5b3,_0x29a0ae,_0x4b3577,_0x315e73,_0x4a23fb,_0x3fac48);},'dTURl':_0xd72c10(0x1d3),'dEdIV':function(_0x4afa16,_0x39abe4){return _0x4afa16!==_0x39abe4;},'zAEMa':_0xd72c10(0x296),'GOaOt':_0xd72c10(0x20f),'bRhDU':function(_0x20042a,_0x56c5bf){return _0x20042a===_0x56c5bf;},'UcMno':_0xd72c10(0x29c),'snArQ':_0xd72c10(0x1f7),'jFLsf':_0xd72c10(0x2b1),'KOHWg':function(_0x4e8a87,_0x5e7f44,_0x39214a){return _0x4e8a87(_0x5e7f44,_0x39214a);},'XnZCH':function(_0x3f80ae,_0x1a91fb,_0x6697ab,_0x39efd7,_0x5c10e6,_0x24ab2c){return _0x3f80ae(_0x1a91fb,_0x6697ab,_0x39efd7,_0x5c10e6,_0x24ab2c);},'Bdlzv':'pre-check','Ichxc':_0xd72c10(0x2b2),'AsqvC':function(_0x2bede9,_0x1cc442){return _0x2bede9===_0x1cc442;},'WlBuf':function(_0x1dc739,_0x4b7a49){return _0x1dc739===_0x4b7a49;},'nLGPZ':_0xd72c10(0x1c5),'yDKox':function(_0x3582d3,_0x4f7068){return _0x3582d3(_0x4f7068);},'PXbIj':_0xd72c10(0x255),'qrkzY':function(_0x48c1e3,_0x35abe9,_0x11cd95,_0x5f4715,_0x1665fe,_0x4c049b,_0x3843fa,_0x2a4678){return _0x48c1e3(_0x35abe9,_0x11cd95,_0x5f4715,_0x1665fe,_0x4c049b,_0x3843fa,_0x2a4678);},'rRDiO':'pre-check-grid-profile-empty','cHZLP':_0xd72c10(0x2ab),'hCFds':_0xd72c10(0x232),'HpQnd':'Grid\x20profile\x20fetched\x20for\x20pre-check','GYvMO':function(_0x36fa7c,_0x578067){return _0x36fa7c===_0x578067;},'GpNzk':_0xd72c10(0x222),'tDxNV':_0xd72c10(0x24f)};let _0xab0695;try{if(_0x17d03a['wiNve'](_0x17d03a['PdBzc'],_0x17d03a[_0xd72c10(0x251)])){const _0x5e0824={};_0x5e0824[_0xd72c10(0x240)]=_0x29628a[_0xd72c10(0x257)],_0x5e0824['message']=_0x26c32f,_0x409caa[_0xd72c10(0x1b8)](_0x2b3a81,_0x5e0824,_0x17d03a['jDdQZ'],!![]);}else{if(_0x1a2b5c['clusterName']||_0x1a2b5c[_0xd72c10(0x1cc)]||_0x1a2b5c[_0xd72c10(0x20c)]){if(_0x17d03a['wiNve'](_0x17d03a[_0xd72c10(0x229)],_0x17d03a[_0xd72c10(0x229)]))_0x2b5a38+=_0xd72c10(0x22a)+_0x3bef24['clusterName']+'\x20'+(_0x5e66c7?_0x17d03a[_0xd72c10(0x28d)]:_0x17d03a[_0xd72c10(0x217)])+'\x0a\x0a';else{const _0x46b8d9=[];!_0x1a2b5c[_0xd72c10(0x1ec)]&&(_0x17d03a[_0xd72c10(0x2aa)](_0x17d03a[_0xd72c10(0x267)],_0x17d03a[_0xd72c10(0x242)])?_0x30b5bd+=_0xd72c10(0x22a)+_0x5ae0ac[_0xd72c10(0x1ec)]+_0xd72c10(0x233):_0x46b8d9[_0xd72c10(0x254)](_0x17d03a[_0xd72c10(0x289)]));;if(!_0x1a2b5c['cloudProvider']){if(_0x17d03a[_0xd72c10(0x2aa)](_0x17d03a[_0xd72c10(0x1e6)],_0x17d03a[_0xd72c10(0x1e6)]))_0x46b8d9['push'](_0x17d03a[_0xd72c10(0x285)]);else{const {header:_0x4a64b5,response:_0x15ee1d}=_0x5b8dcf,{status:_0x150b57,data:_0x3c0271,error:_0x3e849e}=_0x15ee1d;_0x52be7+=_0x4a64b5+'\x20#'+_0x17d03a[_0xd72c10(0x248)](_0x4ae2df,0x1)+'\x0a',_0x2f5fd5+=_0xd72c10(0x29d)+(_0x150b57?_0x17d03a[_0xd72c10(0x201)]:_0x17d03a[_0xd72c10(0x21f)])+'\x0a',_0x472492+=_0xd72c10(0x27a)+_0x17d03a[_0xd72c10(0x286)](_0x3c0271,_0x17d03a[_0xd72c10(0x1c6)])+'\x0a',_0x3e849e&&(_0x5dd5a2+=_0x17d03a[_0xd72c10(0x244)],_0x329740+=_0xd72c10(0x1e5)+(_0x3e849e[_0xd72c10(0x225)]||_0x17d03a['eGGXA'])+'\x0a',_0x4fbda7+='\x20\x20Code:\x20'+(_0x3e849e[_0xd72c10(0x21c)]||_0x17d03a[_0xd72c10(0x1c6)])+'\x0a',_0x3c2941+='\x20\x20Stack:\x20'+(_0x3e849e[_0xd72c10(0x209)]||_0x17d03a['eGGXA'])+'\x0a'),_0xff9d35+='\x0a\x0a';}};if(!_0x1a2b5c[_0xd72c10(0x20c)]){if(_0x17d03a[_0xd72c10(0x29b)](_0x17d03a[_0xd72c10(0x21d)],_0x17d03a[_0xd72c10(0x202)]))_0x46b8d9[_0xd72c10(0x254)](_0x17d03a['syWJO']);else{const _0x526966={};_0x526966[_0xd72c10(0x280)]=_0x17d03a[_0xd72c10(0x1d8)],_0x526966['type']=_0x17d03a[_0xd72c10(0x27b)];const _0x385b20={};_0x385b20[_0xd72c10(0x280)]=_0x17d03a[_0xd72c10(0x1f0)],_0x385b20[_0xd72c10(0x240)]=_0x17d03a[_0xd72c10(0x27b)];const _0x35b3dc={};_0x35b3dc[_0xd72c10(0x280)]=_0x17d03a[_0xd72c10(0x29f)],_0x35b3dc['type']=_0x17d03a[_0xd72c10(0x27b)];const _0x87bb8={};_0x87bb8['description']=_0x17d03a['yUnBT'],_0x87bb8[_0xd72c10(0x240)]=_0x17d03a['XIJye'];const _0x572c2a={};return _0x572c2a[_0xd72c10(0x1b7)]=_0x526966,_0x572c2a['cloud-provider']=_0x385b20,_0x572c2a[_0xd72c10(0x20c)]=_0x35b3dc,_0x572c2a['grid-profile']=_0x87bb8,_0x1a4a30[_0xd72c10(0x204)](_0x44c477[_0xd72c10(0x238)])[_0xd72c10(0x26c)](_0x5a3166)[_0xd72c10(0x2b0)](_0x572c2a)[_0xd72c10(0x1f6)](_0x17d03a[_0xd72c10(0x1c1)])['argv'];}};_0x17d03a[_0xd72c10(0x203)](_0x46b8d9[_0xd72c10(0x24d)],0x0)&&(_0x17d03a[_0xd72c10(0x1bd)](_0x17d03a['iAXwV'],_0x17d03a[_0xd72c10(0x1c8)])?(_0xab0695='Missing\x20required\x20arguments:\x20'+_0x46b8d9[_0xd72c10(0x1dc)](',\x20')+_0xd72c10(0x298),await _0x17d03a[_0xd72c10(0x231)](reportToGalactusAndSendToEDS,_0x1a2b5c,_0x2872c9,_0xab0695,messageTypes[_0xd72c10(0x1f3)],_0x17d03a['yMedL'],_0x17d03a[_0xd72c10(0x282)],_0x17d03a[_0xd72c10(0x266)]),logger['error'](_0xab0695),process[_0xd72c10(0x2af)](0x1)):(_0x163415[_0xd72c10(0x1f2)]('['+_0x170365+_0xd72c10(0x2a5)+_0x333d2e[_0xd72c10(0x208)]+_0xd72c10(0x24e)+_0x171a00['data']+_0xd72c10(0x2a8)+_0x1013d0[_0xd72c10(0x1d1)]),_0x5b3e71['error']&&_0x353926[_0xd72c10(0x1d1)]('error\x20stack\x20:\x20'+_0x206129['error'][_0xd72c10(0x209)]))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xd72c10(0x27d)](_0x1a2b5c[_0xd72c10(0x1cc)][_0xd72c10(0x1dd)]())&&(_0x17d03a['XJkph'](_0x17d03a[_0xd72c10(0x287)],_0x17d03a[_0xd72c10(0x210)])?(_0xab0695=_0x17d03a[_0xd72c10(0x290)],await _0x17d03a['EOuPk'](reportToGalactusAndSendToEDS,_0x1a2b5c,_0x2872c9,_0xab0695,messageTypes[_0xd72c10(0x1f3)],_0x17d03a[_0xd72c10(0x1ea)],_0x17d03a[_0xd72c10(0x29a)],_0x17d03a['jDdQZ']),logger['error'](_0xab0695),!_0x1a2b5c[_0xd72c10(0x1cc)]&&(_0x17d03a['dEdIV'](_0x17d03a['zAEMa'],_0x17d03a[_0xd72c10(0x1be)])?(logger['info'](_0xd72c10(0x2b4)+DEFAULT_CLUSTER_DETAILS[_0xd72c10(0x237)]+'\x20'),_0x1a2b5c['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0xd72c10(0x237)]):(_0x12d2ab[_0xd72c10(0x1f2)](_0xd72c10(0x2b4)+_0x39e57d[_0xd72c10(0x237)]+'\x20'),_0x1ad2e7['cloudProvider']=_0x40dbd9['CLOUD_PROVIDER']))):_0x4f6868[_0xd72c10(0x2af)](0x1)),global_registry[_0xd72c10(0x1ec)]=_0x1a2b5c[_0xd72c10(0x1ec)],global_registry[_0xd72c10(0x1cc)]=_0x1a2b5c[_0xd72c10(0x1cc)],global_registry[_0xd72c10(0x1d6)]=_0x1a2b5c[_0xd72c10(0x20c)];}}else{if(_0x1a2b5c[_0xd72c10(0x207)]){if(_0x17d03a[_0xd72c10(0x1e2)](_0x17d03a[_0xd72c10(0x1c3)],_0x17d03a['snArQ']))_0x3bdbc3[_0xd72c10(0x254)](_0x17d03a[_0xd72c10(0x285)]);else{global_registry[_0xd72c10(0x207)]=_0x1a2b5c[_0xd72c10(0x207)],logger[_0xd72c10(0x27e)]('grid\x20profile\x20flow\x20'+_0x1a2b5c['gridProfile']);const _0x34cf01=_0xd72c10(0x218)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x3f1972={};_0x3f1972[_0xd72c10(0x1f5)]=_0x17d03a[_0xd72c10(0x1fa)],_0x3f1972['headers']=global_registry[_0xd72c10(0x264)],_0x3f1972[_0xd72c10(0x260)]=![];const _0x3f2e8d=_0x3f1972,_0x58f852=await _0x17d03a[_0xd72c10(0x295)](got,_0x34cf01,_0x3f2e8d),_0x47fd16=await _0x17d03a['XnZCH'](responseValidation,_0x58f852,_0x17d03a[_0xd72c10(0x1ff)],_0x17d03a[_0xd72c10(0x2a2)],_0x1a2b5c,_0x2872c9);let _0x1f4851={};if(_0x17d03a[_0xd72c10(0x278)](_0x47fd16,0xc8)){if(_0x17d03a[_0xd72c10(0x1fb)](_0x17d03a[_0xd72c10(0x252)],_0x17d03a[_0xd72c10(0x252)])){const _0x4d4b6d=JSON[_0xd72c10(0x1da)](_0x58f852['body']),_0x4d4691=_0x4d4b6d[_0xd72c10(0x1d4)](_0x2bac80=>_0x2bac80['name']===_0x1a2b5c[_0xd72c10(0x207)])||null;_0x17d03a['yDKox'](isUndefined,_0x4d4691)?_0x17d03a['XJkph'](_0x17d03a[_0xd72c10(0x1c7)],_0x17d03a[_0xd72c10(0x1c7)])?_0xc22dcf[_0xd72c10(0x254)](_0x17d03a[_0xd72c10(0x23e)]):(_0xab0695=_0xd72c10(0x284)+_0x1a2b5c[_0xd72c10(0x207)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x17d03a[_0xd72c10(0x269)](reportToGalactusAndSendToEDS,_0x1a2b5c,_0x2872c9,_0xab0695,messageTypes[_0xd72c10(0x1f3)],_0x17d03a['yMedL'],_0x17d03a['rRDiO'],_0x17d03a['jDdQZ']),logger[_0xd72c10(0x1d1)](_0xab0695),process[_0xd72c10(0x2af)](0x1)):_0x17d03a[_0xd72c10(0x1d9)](_0x17d03a[_0xd72c10(0x1df)],_0x17d03a[_0xd72c10(0x1df)])?(_0x407c07[_0xd72c10(0x1d1)](_0x17d03a['GLXRu']),_0x15380b[_0xd72c10(0x2af)](0x1)):_0x1f4851=_0x4d4691;}else _0x429963+=_0x17d03a['WXmBM'],_0x3bdf9f+=_0xd72c10(0x1e5)+(_0xefcf41[_0xd72c10(0x225)]||_0x17d03a[_0xd72c10(0x1c6)])+'\x0a',_0x5c3177+=_0xd72c10(0x25f)+(_0x14aa32['code']||_0x17d03a[_0xd72c10(0x1c6)])+'\x0a',_0x2359fb+=_0xd72c10(0x1d2)+(_0x3598ec[_0xd72c10(0x209)]||_0x17d03a[_0xd72c10(0x1c6)])+'\x0a';}else _0x17d03a['AsqvC'](_0x17d03a[_0xd72c10(0x20b)],_0x17d03a[_0xd72c10(0x20b)])?process[_0xd72c10(0x2af)](0x1):_0x325532[_0xd72c10(0x254)](_0x17d03a['LSHVd']);const _0x4941e3={};_0x4941e3[_0xd72c10(0x240)]=WS_EVENTS[_0xd72c10(0x257)],_0x4941e3['message']=_0x17d03a[_0xd72c10(0x28b)],webSocketUtils['sendEventToBackend'](_0x2872c9,_0x4941e3),global_registry[_0xd72c10(0x1cc)]=_0x1f4851[_0xd72c10(0x1cc)],global_registry[_0xd72c10(0x1d6)]=_0x1f4851['region'],global_registry[_0xd72c10(0x1ec)]=_0x1f4851[_0xd72c10(0x1ec)];}}else _0x17d03a['GYvMO'](_0x17d03a['GpNzk'],_0x17d03a[_0xd72c10(0x21e)])?(logger[_0xd72c10(0x1d1)](_0x17d03a['GLXRu']),process[_0xd72c10(0x2af)](0x1)):_0x2fa7a5['error'](_0xd72c10(0x297)+_0x3449be[_0xd72c10(0x1d1)][_0xd72c10(0x209)]);}}}catch(_0xb30d5){_0x17d03a[_0xd72c10(0x262)](_0x17d03a['tDxNV'],_0x17d03a['tDxNV'])?_0xd3b4c2=_0x196655:(_0xab0695='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0xb30d5+':\x20'+_0xb30d5[_0xd72c10(0x209)],logger[_0xd72c10(0x1d1)](_0xab0695),await _0x17d03a['oEQki'](reportToGalactusAndSendToEDS,_0x1a2b5c,_0x2872c9,_0xab0695,messageTypes['ERROR'],_0x17d03a['yMedL'],_0x17d03a['dTURl'],_0x17d03a[_0xd72c10(0x266)]),process[_0xd72c10(0x2af)](0x1));}}function printResponse(_0x1437db,_0x11ef0){const _0x393f10=a17_0x1e4726,_0x1b06fb={};_0x1b06fb[_0x393f10(0x261)]=function(_0x4207b0,_0x433613){return _0x4207b0===_0x433613;},_0x1b06fb[_0x393f10(0x299)]='csVtR';const _0x4b9585=_0x1b06fb;logger[_0x393f10(0x1f2)]('['+_0x1437db+_0x393f10(0x2a5)+_0x11ef0[_0x393f10(0x208)]+_0x393f10(0x24e)+_0x11ef0[_0x393f10(0x27f)]+_0x393f10(0x2a8)+_0x11ef0['error']),_0x11ef0['error']&&(_0x4b9585['SCuZL'](_0x4b9585[_0x393f10(0x299)],_0x4b9585[_0x393f10(0x299)])?logger[_0x393f10(0x1d1)](_0x393f10(0x297)+_0x11ef0[_0x393f10(0x1d1)]['stack']):_0x2df859[_0x393f10(0x1f2)](_0x393f10(0x2ad)+_0x56f88b[_0x393f10(0x1ec)]+_0x393f10(0x1c9)));}async function generateReport(_0x39d42b,_0x51b9d5){const _0x3af965=a17_0x1e4726,_0x1ae6a4={'sdNWW':function(_0x3ac671,_0x16170f){return _0x3ac671+_0x16170f;},'eDUHH':_0x3af965(0x1eb),'Qdgmf':_0x3af965(0x20e),'mZgpb':function(_0x45f305,_0x5482b6){return _0x45f305||_0x5482b6;},'yTHSB':_0x3af965(0x259),'QiFKj':'Error\x20Details:\x0a','ghEVW':_0x3af965(0x1de),'ctlyQ':function(_0x1d9c6b,_0x16b9ac){return _0x1d9c6b!=_0x16b9ac;},'LYVvL':'is\x20already\x20present','sRnrC':_0x3af965(0x1b9),'cOwJp':function(_0x524a16){return _0x524a16();}};let _0x4db1e9=_0x3af965(0x23a)+global_registry['cloudProvider']+_0x3af965(0x1f4);return _0x39d42b[_0x3af965(0x273)]((_0x4830c3,_0x252e56)=>{const _0x5aa11f=_0x3af965,{header:_0xadcf79,response:_0x643e95}=_0x4830c3,{status:_0x2261d9,data:_0x2e14b7,error:_0x3da43e}=_0x643e95;_0x4db1e9+=_0xadcf79+'\x20#'+_0x1ae6a4[_0x5aa11f(0x23d)](_0x252e56,0x1)+'\x0a',_0x4db1e9+=_0x5aa11f(0x29d)+(_0x2261d9?_0x1ae6a4[_0x5aa11f(0x1e0)]:_0x1ae6a4[_0x5aa11f(0x272)])+'\x0a',_0x4db1e9+=_0x5aa11f(0x27a)+_0x1ae6a4[_0x5aa11f(0x293)](_0x2e14b7,_0x1ae6a4['yTHSB'])+'\x0a',_0x3da43e&&(_0x4db1e9+=_0x1ae6a4[_0x5aa11f(0x247)],_0x4db1e9+='\x20\x20Message:\x20'+(_0x3da43e['message']||_0x1ae6a4[_0x5aa11f(0x1ed)])+'\x0a',_0x4db1e9+=_0x5aa11f(0x25f)+(_0x3da43e[_0x5aa11f(0x21c)]||_0x1ae6a4[_0x5aa11f(0x1ed)])+'\x0a',_0x4db1e9+=_0x5aa11f(0x1d2)+(_0x3da43e[_0x5aa11f(0x209)]||_0x1ae6a4[_0x5aa11f(0x1ed)])+'\x0a'),_0x4db1e9+='\x0a\x0a';}),_0x4db1e9+=_0x1ae6a4[_0x3af965(0x274)],_0x1ae6a4[_0x3af965(0x1f1)](_0x51b9d5,null)?_0x4db1e9+=_0x3af965(0x22a)+global_registry[_0x3af965(0x1ec)]+'\x20'+(_0x51b9d5?_0x1ae6a4[_0x3af965(0x1e4)]:_0x1ae6a4[_0x3af965(0x28a)])+'\x0a\x0a':_0x4db1e9+=_0x3af965(0x22a)+global_registry['clusterName']+_0x3af965(0x233),_0x4db1e9+=_0x1ae6a4['cOwJp'](getSystemMetaData),_0x4db1e9;};exports[a17_0x1e4726(0x279)]=async function(_0x573cbf){const _0x4237be=a17_0x1e4726,_0x26cf23={'bJwTx':function(_0x22a166){return _0x22a166();},'sbaNl':function(_0x72f845){return _0x72f845();},'pnsqw':_0x4237be(0x20d),'vLLHS':function(_0x59c012,_0x382be7,_0x13f211,_0x42d89c,_0x353afd,_0x1e78ef,_0x418030,_0x467cfa){return _0x59c012(_0x382be7,_0x13f211,_0x42d89c,_0x353afd,_0x1e78ef,_0x418030,_0x467cfa);},'NInPc':_0x4237be(0x227),'AHHjB':_0x4237be(0x215),'ScQVU':_0x4237be(0x1d1),'MfMOd':function(_0x1cb0cf,_0x5187ea,_0x20dff1,_0x4ae1c7,_0x3adb34,_0x4a658c,_0x198ef9){return _0x1cb0cf(_0x5187ea,_0x20dff1,_0x4ae1c7,_0x3adb34,_0x4a658c,_0x198ef9);},'aSXEX':function(_0x660294){return _0x660294();},'UHFWL':_0x4237be(0x2a4),'BvWzv':_0x4237be(0x281),'DWECN':function(_0x55c415,_0x418b6c,_0x358ffc){return _0x55c415(_0x418b6c,_0x358ffc);},'XrlNk':function(_0x25c2e0,_0x4fc160,_0x4a49db){return _0x25c2e0(_0x4fc160,_0x4a49db);},'EQodB':_0x4237be(0x235),'NeaLe':_0x4237be(0x25c),'WpKjU':_0x4237be(0x228),'yisAE':function(_0x340ddb,_0x41fd5b,_0x11ce10,_0x53e0c6,_0x6f611e,_0x4ea21a,_0x263c0e,_0x31a95e){return _0x340ddb(_0x41fd5b,_0x11ce10,_0x53e0c6,_0x6f611e,_0x4ea21a,_0x263c0e,_0x31a95e);},'CqHvF':'accessResp','hKnjW':function(_0x1262a2,_0x4eb606,_0x24f299){return _0x1262a2(_0x4eb606,_0x24f299);},'Ukwxo':_0x4237be(0x1ef),'WzNGe':function(_0x55e2ad,_0x58d80c){return _0x55e2ad(_0x58d80c);},'UxYkW':_0x4237be(0x1cd),'byfTi':function(_0x42d2a2,_0x1cc6fd,_0x46d419){return _0x42d2a2(_0x1cc6fd,_0x46d419);},'aIkoF':_0x4237be(0x1e1),'aHigw':_0x4237be(0x1f9),'TJjEA':_0x4237be(0x25b),'xaEUX':_0x4237be(0x22b),'DmhYG':_0x4237be(0x2a6),'vNGJE':function(_0x53d1f4,_0x47ec5f){return _0x53d1f4+_0x47ec5f;},'ODzSJ':_0x4237be(0x20a),'JpWgZ':function(_0x3551b7,_0x4584f2,_0x1bd334,_0x4c2998,_0xab1a12,_0xf53de7,_0x598762){return _0x3551b7(_0x4584f2,_0x1bd334,_0x4c2998,_0xab1a12,_0xf53de7,_0x598762);},'MMgPQ':'pre-check-failed'};let _0x1f5f0c,_0x1356e8;try{global_registry[_0x4237be(0x256)]=_0x26cf23[_0x4237be(0x288)](uuidv4);!fs[_0x4237be(0x1e9)](_0x26cf23[_0x4237be(0x291)](getCredentialsPath))&&(_0x1356e8=_0x26cf23['pnsqw'],logger['error'](_0x1356e8),await _0x26cf23[_0x4237be(0x216)](reportToGalactusAndSendToEDS,_0x573cbf,_0x1f5f0c,_0x1356e8,messageTypes['ERROR'],_0x26cf23[_0x4237be(0x2a9)],_0x26cf23[_0x4237be(0x26f)],_0x26cf23[_0x4237be(0x24a)]),process['exit'](0x1));_0x26cf23[_0x4237be(0x2a7)](sendInstrumentationEvent,_0x573cbf,_0x26cf23[_0x4237be(0x2a9)],messageTypes[_0x4237be(0x27c)],null,null,_0x573cbf);const _0x5ade9d=JSON[_0x4237be(0x1da)](fs[_0x4237be(0x1e8)](_0x26cf23['aSXEX'](getCredentialsPath)));global_registry['bstackUsername']=_0x5ade9d['Browserstack']['username'],global_registry[_0x4237be(0x265)]=_0x5ade9d[_0x4237be(0x1ee)][_0x4237be(0x23c)];const _0xb22e95=WS_ENDPOINT[_0x4237be(0x1ce)](_0x26cf23[_0x4237be(0x1db)],_0x5ade9d['Browserstack'][_0x4237be(0x28c)])[_0x4237be(0x1ce)](_0x26cf23[_0x4237be(0x26d)],_0x5ade9d[_0x4237be(0x1ee)][_0x4237be(0x23c)]),_0x147fed={};_0x147fed[_0x4237be(0x219)]=ws,_0x147fed[_0x4237be(0x25e)]=0x36ee80,_0x1f5f0c=new ReconnectingWebSocket(_0xb22e95,[],_0x147fed),global_registry[_0x4237be(0x264)]=_0x26cf23[_0x4237be(0x1fc)](getAuthHeader,global_registry[_0x4237be(0x1ca)],global_registry[_0x4237be(0x265)]),await _0x26cf23['XrlNk'](inputValidation,_0x573cbf,_0x1f5f0c),logger[_0x4237be(0x1f2)](_0x4237be(0x253)+global_registry['cloudProvider']+_0x4237be(0x277)+global_registry[_0x4237be(0x1d6)]);let _0x44373e=await _0x26cf23[_0x4237be(0x2a7)](getCloudProviderObjectWithOutInit,global_registry[_0x4237be(0x1cc)],global_registry[_0x4237be(0x1ec)],_0x26cf23['EQodB'],_0x1f5f0c,webSocketUtils,_0x573cbf);const _0x31965f=await _0x44373e[_0x4237be(0x213)]();_0x26cf23['XrlNk'](printResponse,_0x26cf23['NeaLe'],_0x31965f),_0x44373e=await _0x44373e[_0x4237be(0x26b)]();let _0x17c7f1=![];try{_0x17c7f1=await _0x44373e['isClusterPresent']();}catch(_0x5ecf57){const _0x492e91=_0x26cf23[_0x4237be(0x29e)][_0x4237be(0x24c)]('|');let _0x21a574=0x0;while(!![]){switch(_0x492e91[_0x21a574++]){case'0':await _0x26cf23[_0x4237be(0x1c0)](reportToGalactusAndSendToEDS,_0x573cbf,_0x1f5f0c,_0x1356e8,messageTypes[_0x4237be(0x1f3)],_0x26cf23[_0x4237be(0x2a9)],'cluster-check-failed-'+global_registry[_0x4237be(0x1cc)],_0x26cf23[_0x4237be(0x24a)]);continue;case'1':_0x17c7f1=null;continue;case'2':logger['error'](_0x1356e8);continue;case'3':_0x1356e8+='\x0a'+JSON[_0x4237be(0x234)](_0x5ecf57['stack']);continue;case'4':_0x1356e8=_0x4237be(0x211)+global_registry[_0x4237be(0x1ec)]+_0x4237be(0x24b)+global_registry[_0x4237be(0x1d6)]+_0x4237be(0x263)+_0x5ecf57;continue;}break;}}_0x17c7f1&&logger[_0x4237be(0x1f2)](_0x4237be(0x2ad)+global_registry['clusterName']+_0x4237be(0x1c9));const _0x4f1c21=await _0x44373e[_0x4237be(0x206)]();_0x26cf23[_0x4237be(0x1e3)](printResponse,_0x26cf23[_0x4237be(0x23b)],_0x4f1c21);const _0x36976b=await _0x26cf23[_0x4237be(0x1bf)](curlRequest);_0x26cf23['hKnjW'](printResponse,_0x26cf23['Ukwxo'],_0x36976b);const _0x46f90a=await _0x26cf23[_0x4237be(0x230)](isTlsSupported,_0x26cf23[_0x4237be(0x271)]);_0x26cf23[_0x4237be(0x1f8)](printResponse,_0x26cf23[_0x4237be(0x1c2)],_0x46f90a);const _0x3f2337={};_0x3f2337[_0x4237be(0x1d5)]=_0x26cf23['aHigw'],_0x3f2337[_0x4237be(0x214)]=_0x31965f;const _0x335334={};_0x335334[_0x4237be(0x1d5)]=_0x26cf23[_0x4237be(0x250)],_0x335334[_0x4237be(0x214)]=_0x4f1c21;const _0x24b865={};_0x24b865['header']=_0x26cf23['xaEUX'],_0x24b865['response']=_0x36976b;const _0x521368={};_0x521368[_0x4237be(0x1d5)]=_0x26cf23[_0x4237be(0x25a)],_0x521368[_0x4237be(0x214)]=_0x46f90a;const _0x32bcdf=[_0x3f2337,_0x335334,_0x24b865,_0x521368],_0x299c71=await _0x26cf23['XrlNk'](generateReport,_0x32bcdf,_0x17c7f1),_0x4170bf=new Date(),_0x594da5=_0x4170bf['getUTCFullYear']()+'_'+_0x26cf23[_0x4237be(0x1cb)](_0x4170bf[_0x4237be(0x2a0)](),0x1)+'_'+_0x4170bf[_0x4237be(0x276)]()+'_'+_0x4170bf[_0x4237be(0x241)]()+'_'+_0x4170bf[_0x4237be(0x249)](),_0x236b2f='log/report_'+_0x594da5+'.txt';fs[_0x4237be(0x275)](_0x236b2f,_0x299c71,_0x26cf23[_0x4237be(0x22d)]),logger[_0x4237be(0x1f2)]('Report\x20saved\x20in\x20'+_0x236b2f),process[_0x4237be(0x2af)](0x0);}catch(_0x50ff30){let _0x5a563d='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x50ff30+'\x20';logger[_0x4237be(0x1d1)](_0x5a563d),_0x5a563d+='\x0a'+JSON[_0x4237be(0x234)](_0x50ff30[_0x4237be(0x209)]),logger[_0x4237be(0x27e)]('stack\x20trace\x20'+_0x50ff30[_0x4237be(0x209)]);if(_0x1f5f0c){const _0x5c5823={};_0x5c5823[_0x4237be(0x240)]=WS_EVENTS[_0x4237be(0x257)],_0x5c5823[_0x4237be(0x225)]=_0x5a563d,webSocketUtils[_0x4237be(0x1b8)](_0x1f5f0c,_0x5c5823,_0x26cf23[_0x4237be(0x24a)],!![]);}await webSocketUtils[_0x4237be(0x200)](0x7d0);const _0x149483={};_0x149483[_0x4237be(0x1d1)]=_0x5a563d,await _0x26cf23['JpWgZ'](sendInstrumentationEvent,_0x573cbf,_0x26cf23[_0x4237be(0x2a9)],messageTypes['ERROR'],_0x26cf23[_0x4237be(0x22e)],_0x149483,_0x573cbf),process[_0x4237be(0x2af)](0x1);}};function a17_0x3153(){const _0xd495c4=['response','credential-not-found','vLLHS','DynDf','https://','WebSocket','yBDmD','eYeGP','code','gVEor','GpNzk','eMAOD','2950074GzznZz','9155890SIsrUN','FrEOP','iTBsp','316967SboVyB','message','uuid','pre-check-grid-called','4|1|2|3|0','ESmQM','Cluster\x20','Whitelisted\x20browserstack','ExLit','ODzSJ','MMgPQ','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','WzNGe','oEQki','WuSGe','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','stringify','dummy-grid','../../utils/webSocketUtils','CLOUD_PROVIDER','pre_check','fMdZr','===\x20Precheck\x20Report\x20-\x20','CqHvF','password','sdNWW','syWJO','../../utils/utilityMethods','type','getUTCHours','qIfFu','586800olIcRk','WXmBM','160bbjKiy','is\x20already\x20present','QiFKj','VhyHc','getUTCMinutes','ScQVU','`\x20is\x20present\x20in\x20region\x20`','split','length','\x20data\x20:\x20','pUAAz','TJjEA','PdBzc','nLGPZ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','push','wbjOk','requestId','LOG','grid','N/A','DmhYG','User\x20Access','toolInstalledResp','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','connectionTimeout','\x20\x20Code:\x20','throwHttpErrors','SCuZL','XJkph','`\x20,error\x20:\x20','authHeader','bstackAccesskey','jDdQZ','nYDuT','2njpVeu','qrkzY','waTeA','init','epilogue','BvWzv','9oKSqcd','AHHjB','../../utils/instrumentationUtils','UxYkW','Qdgmf','forEach','ghEVW','writeFileSync','getUTCDate','\x20region\x20-\x20','AsqvC','handler','Message:\x20','XIJye','INFO','includes','debug','data','description','<PasswordPlaceholder>','lwhaH','ppZmn','Invalid\x20input.\x20grid\x20profiles:\x20','IAkZx','BFycV','tBmSu','bJwTx','LSHVd','sRnrC','HpQnd','username','PqVzO','reconnecting-websocket','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','viTaQ','sbaNl','UeRJJ','mZgpb','builder','KOHWg','Hdrcl','error\x20stack\x20:\x20','.\x20Please\x20provide\x20all\x20required\x20arguments.','klfsZ','dTURl','wiNve','KwdwB','Status:\x20','WpKjU','qDqKu','getUTCMonth','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Ichxc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','<UsernamePlaceholder>',']\x20status\x20:\x20','SSL\x20Configured','MfMOd','\x20error\x20:\x20','NInPc','ODrWK','IrjUN','749108ioRjSI','Cluster\x20`','whuhg','exit','options','GET','grid-profile','desc','Setting\x20cloud\x20provider\x20as\x20','cluster-name','sendEventToBackend','will\x20be\x20created','../../config/constants','1919644QUdSrn','pre-check-cluster-args-not-passed','bkPgZ','GOaOt','aSXEX','yisAE','hQhqQ','aIkoF','UcMno','nmtzb','Niqkv','eGGXA','PXbIj','iAXwV','`\x20already\x20exists','bstackUsername','vNGJE','cloudProvider','TLSv1_2_client_method','replace','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','2910457nCdJyB','error','\x20\x20Stack:\x20','cloud-provider-not-supported','find','header','clusterRegion','string','GaQHt','dEdIV','parse','UHFWL','join','toLowerCase','Cluster\x20details\x0a-----------------------\x0a','cHZLP','eDUHH','isTls1_2_SUPPORTED','bRhDU','XrlNk','LYVvL','\x20\x20Message:\x20','gEqLW','5tnMJjk','readFileSync','existsSync','yMedL','Success','clusterName','yTHSB','Browserstack','isTrialGridAccessible','GGldU','ctlyQ','info','ERROR','\x20===\x0a\x0a','method','help','oasZa','byfTi','Tool\x20Installed','jFLsf','WlBuf','DWECN','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','NxLyI','Bdlzv','delay','nLxva','TZbrk','eDcWC','usage','6sdPOHQ','checkAccess','gridProfile','status','stack','utf-8','hCFds','region','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Failure','tPkfk','dNHAo','unable\x20to\x20verify\x20if\x20cluster\x20`','cloud-provider','isCliToolInstalled'];a17_0x3153=function(){return _0xd495c4;};return a17_0x3153();}
@@ -1 +1 @@
1
- const a18_0x3ab26c=a18_0x3aa7;(function(_0x1d2254,_0xb5f38e){const _0x450568=a18_0x3aa7,_0x52998a=_0x1d2254();while(!![]){try{const _0x32cf82=parseInt(_0x450568(0x12d))/0x1+-parseInt(_0x450568(0x124))/0x2*(-parseInt(_0x450568(0x122))/0x3)+parseInt(_0x450568(0x132))/0x4*(-parseInt(_0x450568(0x11f))/0x5)+-parseInt(_0x450568(0x12f))/0x6*(parseInt(_0x450568(0x12a))/0x7)+parseInt(_0x450568(0x125))/0x8+parseInt(_0x450568(0x130))/0x9+parseInt(_0x450568(0x134))/0xa*(-parseInt(_0x450568(0x133))/0xb);if(_0x32cf82===_0xb5f38e)break;else _0x52998a['push'](_0x52998a['shift']());}catch(_0xc069d6){_0x52998a['push'](_0x52998a['shift']());}}}(a18_0x37fe,0xd4220));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3ab26c(0x129));exports[a18_0x3ab26c(0x126)]=a18_0x3ab26c(0x12c),exports[a18_0x3ab26c(0x128)]=a18_0x3ab26c(0x11d),exports[a18_0x3ab26c(0x131)]=function(_0x593836){const _0x528841=a18_0x3ab26c,_0x1928fd={};_0x1928fd[_0x528841(0x127)]=_0x528841(0x121),_0x1928fd['vTMtV']='help';const _0x5b9fdf=_0x1928fd;return _0x593836[_0x528841(0x12e)](HELP_HEADER_MESSAGE[_0x528841(0x12c)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x528841(0x11e)](_0x5b9fdf[_0x528841(0x127)])[_0x528841(0x11c)]()['recommendCommands']()[_0x528841(0x120)]()['help'](_0x5b9fdf[_0x528841(0x12b)]);},exports[a18_0x3ab26c(0x123)]=function(_0x2a209f){};function a18_0x3aa7(_0x46a1c4,_0x1b2b36){const _0x37fe08=a18_0x37fe();return a18_0x3aa7=function(_0x3aa7e2,_0x17c3ee){_0x3aa7e2=_0x3aa7e2-0x11c;let _0x371802=_0x37fe08[_0x3aa7e2];return _0x371802;},a18_0x3aa7(_0x46a1c4,_0x1b2b36);}function a18_0x37fe(){const _0x4130d0=['3991852RsWUgQ','10542829edUraE','10SfCcza','demandCommand','Start\x20an\x20existing\x20Automation\x20grid.','commandDir','5hzoZMA','strict','start_commands','39GpJTdn','handler','146284cGmFFP','7908688utofru','command','noaja','desc','../config/constants','7IvZpsO','vTMtV','start','307160mINXWL','usage','3867234BWqKXZ','11009205LZDnnC','builder'];a18_0x37fe=function(){return _0x4130d0;};return a18_0x37fe();}
1
+ const a18_0x2c4f32=a18_0x27e4;function a18_0x4131(){const _0x3575db=['16BlsgMJ','builder','147933BPgkgo','Start\x20an\x20existing\x20Automation\x20grid.','epilogue','3662472vsxaHw','28FxsXfc','strict','NBHnL','start','../config/constants','1998360TGkZDA','recommendCommands','start_commands','commandDir','1487545ZQnBCf','usage','16975251WCgwZd','6hICTcU','command','help','794518eOaoyu','zSZEG','demandCommand','526989vhlboE','handler'];a18_0x4131=function(){return _0x3575db;};return a18_0x4131();}(function(_0xadb86e,_0x3265a0){const _0x765f0f=a18_0x27e4,_0x12e56a=_0xadb86e();while(!![]){try{const _0x12fe8f=-parseInt(_0x765f0f(0x117))/0x1+parseInt(_0x765f0f(0x110))/0x2+-parseInt(_0x765f0f(0x113))/0x3*(-parseInt(_0x765f0f(0x115))/0x4)+parseInt(_0x765f0f(0x10a))/0x5*(parseInt(_0x765f0f(0x10d))/0x6)+-parseInt(_0x765f0f(0x11b))/0x7*(-parseInt(_0x765f0f(0x11a))/0x8)+-parseInt(_0x765f0f(0x10c))/0x9+-parseInt(_0x765f0f(0x106))/0xa;if(_0x12fe8f===_0x3265a0)break;else _0x12e56a['push'](_0x12e56a['shift']());}catch(_0x1dd472){_0x12e56a['push'](_0x12e56a['shift']());}}}(a18_0x4131,0xf2dbc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2c4f32(0x11f));function a18_0x27e4(_0x34bda1,_0x2f5142){const _0x4131cb=a18_0x4131();return a18_0x27e4=function(_0x27e4ac,_0x2e6dec){_0x27e4ac=_0x27e4ac-0x106;let _0x501970=_0x4131cb[_0x27e4ac];return _0x501970;},a18_0x27e4(_0x34bda1,_0x2f5142);}exports[a18_0x2c4f32(0x10e)]=a18_0x2c4f32(0x11e),exports['desc']=a18_0x2c4f32(0x118),exports[a18_0x2c4f32(0x116)]=function(_0x3086e7){const _0xeb8b7c=a18_0x2c4f32,_0x26da8b={};_0x26da8b[_0xeb8b7c(0x111)]=_0xeb8b7c(0x108),_0x26da8b['NBHnL']=_0xeb8b7c(0x10f);const _0x17792c=_0x26da8b;return _0x3086e7[_0xeb8b7c(0x10b)](HELP_HEADER_MESSAGE['start'])[_0xeb8b7c(0x119)](HELP_FOOTER_MESSAGE)[_0xeb8b7c(0x109)](_0x17792c[_0xeb8b7c(0x111)])[_0xeb8b7c(0x112)]()[_0xeb8b7c(0x107)]()[_0xeb8b7c(0x11c)]()[_0xeb8b7c(0x10f)](_0x17792c[_0xeb8b7c(0x11d)]);},exports[a18_0x2c4f32(0x114)]=function(_0x10e491){};
@@ -1 +1 @@
1
- const a19_0x2745af=a19_0x156f;function a19_0x156f(_0x5c4700,_0x39b440){const _0x2b030e=a19_0x2b03();return a19_0x156f=function(_0x156f5c,_0x4cad3d){_0x156f5c=_0x156f5c-0xca;let _0x1f7aea=_0x2b030e[_0x156f5c];return _0x1f7aea;},a19_0x156f(_0x5c4700,_0x39b440);}(function(_0x10dbc7,_0x28d00b){const _0x5da439=a19_0x156f,_0x355c07=_0x10dbc7();while(!![]){try{const _0x4d812a=-parseInt(_0x5da439(0xea))/0x1+-parseInt(_0x5da439(0xcf))/0x2*(-parseInt(_0x5da439(0xd0))/0x3)+-parseInt(_0x5da439(0xf8))/0x4*(parseInt(_0x5da439(0xcd))/0x5)+parseInt(_0x5da439(0x106))/0x6*(parseInt(_0x5da439(0xd3))/0x7)+-parseInt(_0x5da439(0x10f))/0x8+-parseInt(_0x5da439(0x10d))/0x9*(parseInt(_0x5da439(0x105))/0xa)+parseInt(_0x5da439(0x116))/0xb;if(_0x4d812a===_0x28d00b)break;else _0x355c07['push'](_0x355c07['shift']());}catch(_0x11c601){_0x355c07['push'](_0x355c07['shift']());}}}(a19_0x2b03,0xb88da));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2745af(0x119)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2745af(0xe5)),{logger}=require(a19_0x2745af(0xe0)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x2745af(0xfa)),{sendInstrumentationEvent}=require(a19_0x2745af(0xcb)),webSocketUtils=require(a19_0x2745af(0x101)),{createK8sClient}=require(a19_0x2745af(0xe8)),{getCloudProviderObject}=require(a19_0x2745af(0x123));function a19_0x2b03(){const _0x5c594f=['../../utils/webSocketUtils','string','KxhPw','stringify','410sWAyzw','557436gimrpH','replace','readFileSync','Starting\x20grid\x20','RwLSa','epilogue','boolean','35469IyEixb','Start\x20an\x20existing\x20Automation\x20grid.','10450704XMzoPn','server-error','linTf','qtPgP','region','username','parse','25819827vfzuPn','addListeners','NBfZQ','reconnecting-websocket','bstackUsername','BLZwG','name','VOUIh','cloudProvider','handler','type','start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../cloudproviders/utils','clusterName','JlxcW','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','gridId','../../utils/instrumentationUtils','<UsernamePlaceholder>','185VUEhOh','unauthorised','80twvgTm','107097qXTCko','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','21XNFGrj','bstackAccesskey','help','debug','ueorB','info','JvKZp','Adding\x20Websocket\x20listeners','LyfZV','exit','skip-tls-cert-verify','body','Browserstack','../../config/logger','error','ERROR','password','invalid-grid-id','../../config/constants','grid','existsSync','../../utils/createk8sClient','description','1287777AKwyCH','WebSocket','UpPNL','options','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','QAEIE','init-not-called','connectionTimeout','message','clusterRegion','default','zysna','tezeh','start-grid-called','58628sLlaeG','INFO','../../utils/gridComponents','Skip\x20insecure\x20cert\x20verification.','user','statusCode','skipTlsCertVerify','argv','Grid\x20started'];a19_0x2b03=function(){return _0x5c594f;};return a19_0x2b03();}exports['command']=a19_0x2745af(0xe6),exports['desc']=a19_0x2745af(0x10e),exports['builder']=function(_0x53e08f){const _0x5b98f9=a19_0x2745af,_0x5edd86={};_0x5edd86[_0x5b98f9(0x11d)]=_0x5b98f9(0xee),_0x5edd86[_0x5b98f9(0xd9)]=_0x5b98f9(0x102),_0x5edd86['Fnfct']=_0x5b98f9(0xfb),_0x5edd86[_0x5b98f9(0x112)]=_0x5b98f9(0x10c),_0x5edd86['tkIZe']=_0x5b98f9(0xd5);const _0x20204b=_0x5edd86,_0x33d17d={};_0x33d17d[_0x5b98f9(0xe9)]=_0x20204b[_0x5b98f9(0x11d)],_0x33d17d[_0x5b98f9(0x120)]=_0x20204b[_0x5b98f9(0xd9)];const _0x1b4a3a={};_0x1b4a3a['description']=_0x20204b['Fnfct'],_0x1b4a3a[_0x5b98f9(0x120)]=_0x20204b[_0x5b98f9(0x112)],_0x1b4a3a[_0x5b98f9(0xf4)]=![];const _0x3c8b64={};return _0x3c8b64['grid-id']=_0x33d17d,_0x3c8b64[_0x5b98f9(0xdd)]=_0x1b4a3a,_0x53e08f['usage'](HELP_HEADER_MESSAGE[_0x5b98f9(0x121)])[_0x5b98f9(0x10b)](HELP_FOOTER_MESSAGE)[_0x5b98f9(0xed)](_0x3c8b64)[_0x5b98f9(0xd5)](_0x20204b['tkIZe'])[_0x5b98f9(0xff)];},exports[a19_0x2745af(0x11f)]=async function(_0x2ee36e){const _0x1429ab=a19_0x2745af,_0xf0fd48={'linTf':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','NBfZQ':function(_0x1e1439){return _0x1e1439();},'FkWLu':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zysna':function(_0x400446,_0x144fb2,_0x32f418,_0x5cae6e,_0x3d90ef,_0x31d0e4,_0x803269){return _0x400446(_0x144fb2,_0x32f418,_0x5cae6e,_0x3d90ef,_0x31d0e4,_0x803269);},'KxhPw':_0x1429ab(0xf7),'UuetF':_0x1429ab(0xf0),'JlxcW':_0x1429ab(0xcc),'mjbvj':'<PasswordPlaceholder>','GtuNJ':_0x1429ab(0xda),'BLZwG':function(_0x562077,_0x52c1f9,_0x464bdc,_0x5cde9f){return _0x562077(_0x52c1f9,_0x464bdc,_0x5cde9f);},'yJKTD':function(_0x41d4ec,_0x2e6b3f,_0x1712a9,_0xa95672,_0x33882d,_0x3d2531,_0x5daa6e){return _0x41d4ec(_0x2e6b3f,_0x1712a9,_0xa95672,_0x33882d,_0x3d2531,_0x5daa6e);},'UpPNL':function(_0x181280,_0x45b07e,_0x3ac121){return _0x181280(_0x45b07e,_0x3ac121);},'QAEIE':function(_0x21d39c,_0x247197,_0x3fe354){return _0x21d39c(_0x247197,_0x3fe354);},'KQMMK':_0x1429ab(0x100),'tezeh':function(_0x552bc9,_0x1a5773){return _0x552bc9===_0x1a5773;},'ueorB':_0x1429ab(0x122),'RDFqw':function(_0x5c2765,_0x2bd3fd,_0x3666ad,_0x263b7f,_0x22abcf,_0xc170db,_0x2d6714){return _0x5c2765(_0x2bd3fd,_0x3666ad,_0x263b7f,_0x22abcf,_0xc170db,_0x2d6714);},'RwLSa':_0x1429ab(0xce),'JjLfi':_0x1429ab(0xe4),'LyfZV':_0x1429ab(0x110)};let _0x40a634;try{!_0x2ee36e[_0x1429ab(0xca)]&&(logger[_0x1429ab(0xe1)](_0xf0fd48[_0x1429ab(0x111)]),process['exit'](0x1));!fs[_0x1429ab(0xe7)](_0xf0fd48[_0x1429ab(0x118)](getCredentialsPath))&&(logger[_0x1429ab(0xe1)](_0xf0fd48['FkWLu']),await _0xf0fd48[_0x1429ab(0xf5)](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48[_0x1429ab(0x103)],messageTypes[_0x1429ab(0xe2)],_0xf0fd48['UuetF'],null,_0x2ee36e),process['exit'](0x1));logger['info'](_0x1429ab(0x109)+_0x2ee36e[_0x1429ab(0xca)]),await _0xf0fd48[_0x1429ab(0xf5)](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48['KxhPw'],messageTypes[_0x1429ab(0xf9)],null,null,_0x2ee36e);const _0x269de8=JSON[_0x1429ab(0x115)](fs[_0x1429ab(0x108)](_0xf0fd48[_0x1429ab(0x118)](getCredentialsPath)));global_registry[_0x1429ab(0x11a)]=_0x269de8['Browserstack'][_0x1429ab(0x114)],global_registry[_0x1429ab(0xd4)]=_0x269de8[_0x1429ab(0xdf)]['password'];const _0x78390a=WS_ENDPOINT[_0x1429ab(0x107)](_0xf0fd48[_0x1429ab(0x125)],_0x269de8[_0x1429ab(0xdf)][_0x1429ab(0x114)])[_0x1429ab(0x107)](_0xf0fd48['mjbvj'],_0x269de8[_0x1429ab(0xdf)][_0x1429ab(0xe3)]),_0x3759a7={};_0x3759a7[_0x1429ab(0xeb)]=ws,_0x3759a7[_0x1429ab(0xf1)]=0x36ee80,_0x40a634=new ReconnectingWebSocket(_0x78390a,[],_0x3759a7),logger[_0x1429ab(0xd6)](_0xf0fd48['GtuNJ']),webSocketUtils[_0x1429ab(0x117)](_0x40a634,_0x2ee36e[_0x1429ab(0xfc)],_0x2ee36e['password']);const [_0x4e2a93,_0x274f29]=await _0xf0fd48[_0x1429ab(0x11b)](getGridDetails,_0x269de8[_0x1429ab(0xdf)][_0x1429ab(0x114)],_0x269de8[_0x1429ab(0xdf)][_0x1429ab(0xe3)],_0x2ee36e[_0x1429ab(0xca)]);if(_0x274f29){const _0x5e8b56=_0x274f29[_0x1429ab(0xd8)];global_registry[_0x1429ab(0x11e)]=_0x5e8b56[_0x1429ab(0x11e)],global_registry[_0x1429ab(0xf3)]=_0x5e8b56[_0x1429ab(0x113)],global_registry['clusterName']=_0x5e8b56[_0x1429ab(0x124)];const _0x22f934=await _0xf0fd48['yJKTD'](getCloudProviderObject,_0x5e8b56['cloudProvider'],_0x5e8b56['clusterName'],_0x5e8b56[_0x1429ab(0x11c)],_0x40a634,webSocketUtils,_0x2ee36e),[_0x29b8ae,_0x34aee3,_0x47c2a5,_0x491704,_0x54ab59,_0x5af26d]=await _0xf0fd48[_0x1429ab(0xec)](createK8sClient,_0x22f934,_0x2ee36e[_0x1429ab(0xfe)]);await _0xf0fd48[_0x1429ab(0xef)](scaleUpHubDeployment,_0x34aee3,_0x5e8b56[_0x1429ab(0x11c)]),logger[_0x1429ab(0xd8)](_0xf0fd48['KQMMK']),process[_0x1429ab(0xdc)](0x0);}_0xf0fd48[_0x1429ab(0xf6)](_0x4e2a93[_0x1429ab(0xfd)],0x191)&&(logger[_0x1429ab(0xe1)](_0xf0fd48[_0x1429ab(0xd7)]),await _0xf0fd48['RDFqw'](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48[_0x1429ab(0x103)],messageTypes[_0x1429ab(0xe2)],_0xf0fd48[_0x1429ab(0x10a)],null,_0x2ee36e),process[_0x1429ab(0xdc)](0x1)),_0xf0fd48[_0x1429ab(0xf6)](_0x4e2a93[_0x1429ab(0xfd)],0x190)&&(logger[_0x1429ab(0xe1)](JSON[_0x1429ab(0x115)](_0x4e2a93[_0x1429ab(0xde)])[_0x1429ab(0xf2)]),await _0xf0fd48['zysna'](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48[_0x1429ab(0x103)],messageTypes['ERROR'],_0xf0fd48['JjLfi'],null,_0x2ee36e),process['exit'](0x1)),logger['error'](_0x1429ab(0xd2)+JSON['stringify'](_0x4e2a93)),await _0xf0fd48['yJKTD'](sendInstrumentationEvent,_0x2ee36e,_0xf0fd48[_0x1429ab(0x103)],messageTypes[_0x1429ab(0xe2)],_0xf0fd48[_0x1429ab(0xdb)],_0x4e2a93,_0x2ee36e),process[_0x1429ab(0xdc)](0x1);}catch(_0x20a880){const _0x1bd12d=_0x1429ab(0x126)+_0x20a880+'\x20\x0a'+JSON[_0x1429ab(0x104)](_0x20a880[_0x1429ab(0xd1)])+'\x20';logger[_0x1429ab(0xe1)](_0x1bd12d),process[_0x1429ab(0xdc)](0x1);}};
1
+ const a19_0x2aa329=a19_0x4908;(function(_0x53a27a,_0x514877){const _0x429089=a19_0x4908,_0x348912=_0x53a27a();while(!![]){try{const _0x4e4316=-parseInt(_0x429089(0x1a3))/0x1+parseInt(_0x429089(0x1bf))/0x2*(-parseInt(_0x429089(0x1d1))/0x3)+-parseInt(_0x429089(0x1ef))/0x4+-parseInt(_0x429089(0x1d3))/0x5+parseInt(_0x429089(0x1bb))/0x6*(-parseInt(_0x429089(0x1ca))/0x7)+parseInt(_0x429089(0x1e7))/0x8+parseInt(_0x429089(0x1ec))/0x9*(parseInt(_0x429089(0x1e1))/0xa);if(_0x4e4316===_0x514877)break;else _0x348912['push'](_0x348912['shift']());}catch(_0x5c1716){_0x348912['push'](_0x348912['shift']());}}}(a19_0x3710,0x27806));function a19_0x3710(){const _0x10549c=['51201IIVFWa','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lcCDy','statusCode','type','ERROR','stringify','rpZds','skipTlsCertVerify','zLDTv','grid-id','QkSHz','Skip\x20insecure\x20cert\x20verification.','message','init-not-called','handler','QISUs','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gridId','server-error','builder','default','UpSBL','region','6378kuMTtu','lqNlJ','readFileSync','user','758slijEy','pGHWA','<PasswordPlaceholder>','oZulq','../../utils/createk8sClient','string','../../config/logger','jZNEU','gXVvs','options','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','245pNrofZ','Start\x20an\x20existing\x20Automation\x20grid.','command','../../utils/webSocketUtils','stack','CZVbs','error','1479NdDIHg','sAEIz','795995AKRnDd','VAsMN','pIIpX','argv','parse','name','reconnecting-websocket','debug','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','unauthorised','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../cloudproviders/utils','clusterName','body','1670CSHWDv','exit','NKYeY','info','password','invalid-grid-id','977952lBBNDh','bstackUsername','Browserstack','VddwS','<UsernamePlaceholder>','30717tCGmVU','connectionTimeout','skip-tls-cert-verify','383860xTeUeL','Adding\x20Websocket\x20listeners','help','start-grid-called','../../utils/gridComponents','INFO','XOwvp','eOUlF','username','MwjPM','start','cloudProvider','aWAar','WebSocket','pBDZo','replace','description','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','addListeners'];a19_0x3710=function(){return _0x10549c;};return a19_0x3710();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2aa329(0x1d9)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x2aa329(0x1c5)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x2aa329(0x194)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x2aa329(0x1cd)),{createK8sClient}=require(a19_0x2aa329(0x1c3)),{getCloudProviderObject}=require(a19_0x2aa329(0x1de));function a19_0x4908(_0xedd823,_0x331aad){const _0x37104e=a19_0x3710();return a19_0x4908=function(_0x49083f,_0x2158bd){_0x49083f=_0x49083f-0x192;let _0xc7761b=_0x37104e[_0x49083f];return _0xc7761b;},a19_0x4908(_0xedd823,_0x331aad);}exports[a19_0x2aa329(0x1cc)]='grid',exports['desc']=a19_0x2aa329(0x1cb),exports[a19_0x2aa329(0x1b7)]=function(_0x285f29){const _0xc652fe=a19_0x2aa329,_0x42da84={};_0x42da84['zLDTv']=_0xc652fe(0x1c9),_0x42da84['YeHPP']=_0xc652fe(0x1c4),_0x42da84[_0xc652fe(0x1d2)]=_0xc652fe(0x1af),_0x42da84[_0xc652fe(0x1c2)]='boolean',_0x42da84[_0xc652fe(0x199)]='help';const _0x4bfc33=_0x42da84,_0x1e301d={};_0x1e301d[_0xc652fe(0x1a0)]=_0x4bfc33[_0xc652fe(0x1ac)],_0x1e301d[_0xc652fe(0x1a7)]=_0x4bfc33['YeHPP'];const _0x58a26f={};_0x58a26f['description']=_0x4bfc33[_0xc652fe(0x1d2)],_0x58a26f['type']=_0x4bfc33[_0xc652fe(0x1c2)],_0x58a26f[_0xc652fe(0x1b8)]=![];const _0x29ed67={};return _0x29ed67[_0xc652fe(0x1ad)]=_0x1e301d,_0x29ed67[_0xc652fe(0x1ee)]=_0x58a26f,_0x285f29['usage'](HELP_HEADER_MESSAGE[_0xc652fe(0x19a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xc652fe(0x1c8)](_0x29ed67)[_0xc652fe(0x192)](_0x4bfc33[_0xc652fe(0x199)])[_0xc652fe(0x1d6)];},exports[a19_0x2aa329(0x1b2)]=async function(_0x49db5d){const _0x2d7f16=a19_0x2aa329,_0x59dd5e={'rwkFe':_0x2d7f16(0x1a1),'QISUs':function(_0x38ba33){return _0x38ba33();},'gXVvs':_0x2d7f16(0x1a4),'XOwvp':function(_0x4c1efc,_0x106855,_0x19d5ad,_0x2d0168,_0x200578,_0x2feb24,_0x7bc932){return _0x4c1efc(_0x106855,_0x19d5ad,_0x2d0168,_0x200578,_0x2feb24,_0x7bc932);},'pIIpX':_0x2d7f16(0x193),'rpZds':_0x2d7f16(0x1b1),'aWAar':_0x2d7f16(0x1eb),'eOUlF':_0x2d7f16(0x1c1),'VAsMN':_0x2d7f16(0x1f0),'CZVbs':function(_0x1943cb,_0x12dd03,_0x42bcbe,_0x4130ec){return _0x1943cb(_0x12dd03,_0x42bcbe,_0x4130ec);},'QkSHz':function(_0x426705,_0xc56a08,_0x1831da){return _0x426705(_0xc56a08,_0x1831da);},'lqNlJ':function(_0x31a211,_0x418f37,_0x1afd97){return _0x31a211(_0x418f37,_0x1afd97);},'NKYeY':'Grid\x20started','oTeOZ':function(_0x35bccb,_0x2908f2){return _0x35bccb===_0x2908f2;},'lcCDy':_0x2d7f16(0x1b4),'pGHWA':_0x2d7f16(0x1dc),'VddwS':function(_0x33a746,_0x122fec){return _0x33a746===_0x122fec;},'jZNEU':_0x2d7f16(0x1e6),'pBDZo':function(_0x56af12,_0x49eee2,_0x3e9029,_0x24b670,_0x4aecb9,_0x3c14d7,_0x2d729f){return _0x56af12(_0x49eee2,_0x3e9029,_0x24b670,_0x4aecb9,_0x3c14d7,_0x2d729f);},'UpSBL':_0x2d7f16(0x1b6)};let _0x5ddab8;try{!_0x49db5d[_0x2d7f16(0x1b5)]&&(logger[_0x2d7f16(0x1d0)](_0x59dd5e['rwkFe']),process[_0x2d7f16(0x1e2)](0x1));!fs['existsSync'](_0x59dd5e[_0x2d7f16(0x1b3)](getCredentialsPath))&&(logger['error'](_0x59dd5e[_0x2d7f16(0x1c7)]),await _0x59dd5e['XOwvp'](sendInstrumentationEvent,_0x49db5d,_0x59dd5e[_0x2d7f16(0x1d5)],messageTypes['ERROR'],_0x59dd5e[_0x2d7f16(0x1aa)],null,_0x49db5d),process[_0x2d7f16(0x1e2)](0x1));logger['info']('Starting\x20grid\x20'+_0x49db5d['gridId']),await _0x59dd5e[_0x2d7f16(0x196)](sendInstrumentationEvent,_0x49db5d,_0x59dd5e['pIIpX'],messageTypes[_0x2d7f16(0x195)],null,null,_0x49db5d);const _0x597c6a=JSON[_0x2d7f16(0x1d7)](fs[_0x2d7f16(0x1bd)](_0x59dd5e['QISUs'](getCredentialsPath)));global_registry[_0x2d7f16(0x1e8)]=_0x597c6a[_0x2d7f16(0x1e9)][_0x2d7f16(0x198)],global_registry['bstackAccesskey']=_0x597c6a[_0x2d7f16(0x1e9)][_0x2d7f16(0x1e5)];const _0x5dd981=WS_ENDPOINT[_0x2d7f16(0x19f)](_0x59dd5e[_0x2d7f16(0x19c)],_0x597c6a[_0x2d7f16(0x1e9)]['username'])[_0x2d7f16(0x19f)](_0x59dd5e[_0x2d7f16(0x197)],_0x597c6a['Browserstack']['password']),_0x37243b={};_0x37243b[_0x2d7f16(0x19d)]=ws,_0x37243b[_0x2d7f16(0x1ed)]=0x36ee80,_0x5ddab8=new ReconnectingWebSocket(_0x5dd981,[],_0x37243b),logger[_0x2d7f16(0x1da)](_0x59dd5e[_0x2d7f16(0x1d4)]),webSocketUtils[_0x2d7f16(0x1a2)](_0x5ddab8,_0x49db5d[_0x2d7f16(0x1be)],_0x49db5d[_0x2d7f16(0x1e5)]);const [_0x293efd,_0x430a2d]=await _0x59dd5e[_0x2d7f16(0x1cf)](getGridDetails,_0x597c6a[_0x2d7f16(0x1e9)][_0x2d7f16(0x198)],_0x597c6a[_0x2d7f16(0x1e9)][_0x2d7f16(0x1e5)],_0x49db5d[_0x2d7f16(0x1b5)]);if(_0x430a2d){const _0xec9325=_0x430a2d['info'];global_registry['cloudProvider']=_0xec9325[_0x2d7f16(0x19b)],global_registry['clusterRegion']=_0xec9325[_0x2d7f16(0x1ba)],global_registry['clusterName']=_0xec9325[_0x2d7f16(0x1df)];const _0x2f421e=await _0x59dd5e[_0x2d7f16(0x196)](getCloudProviderObject,_0xec9325[_0x2d7f16(0x19b)],_0xec9325[_0x2d7f16(0x1df)],_0xec9325[_0x2d7f16(0x1d8)],_0x5ddab8,webSocketUtils,_0x49db5d),[_0x55406f,_0x20af9b,_0x5519b7,_0x12d08f,_0x39353c,_0x438674]=await _0x59dd5e[_0x2d7f16(0x1ae)](createK8sClient,_0x2f421e,_0x49db5d[_0x2d7f16(0x1ab)]);await _0x59dd5e[_0x2d7f16(0x1bc)](scaleUpHubDeployment,_0x20af9b,_0xec9325[_0x2d7f16(0x1d8)]),logger[_0x2d7f16(0x1e4)](_0x59dd5e[_0x2d7f16(0x1e3)]),process['exit'](0x0);}_0x59dd5e['oTeOZ'](_0x293efd[_0x2d7f16(0x1a6)],0x191)&&(logger[_0x2d7f16(0x1d0)](_0x59dd5e[_0x2d7f16(0x1a5)]),await _0x59dd5e['XOwvp'](sendInstrumentationEvent,_0x49db5d,_0x59dd5e[_0x2d7f16(0x1d5)],messageTypes['ERROR'],_0x59dd5e[_0x2d7f16(0x1c0)],null,_0x49db5d),process[_0x2d7f16(0x1e2)](0x1)),_0x59dd5e[_0x2d7f16(0x1ea)](_0x293efd[_0x2d7f16(0x1a6)],0x190)&&(logger['error'](JSON[_0x2d7f16(0x1d7)](_0x293efd[_0x2d7f16(0x1e0)])[_0x2d7f16(0x1b0)]),await _0x59dd5e[_0x2d7f16(0x196)](sendInstrumentationEvent,_0x49db5d,_0x59dd5e[_0x2d7f16(0x1d5)],messageTypes[_0x2d7f16(0x1a8)],_0x59dd5e[_0x2d7f16(0x1c6)],null,_0x49db5d),process[_0x2d7f16(0x1e2)](0x1)),logger[_0x2d7f16(0x1d0)](_0x2d7f16(0x1dd)+JSON[_0x2d7f16(0x1a9)](_0x293efd)),await _0x59dd5e[_0x2d7f16(0x19e)](sendInstrumentationEvent,_0x49db5d,_0x59dd5e['pIIpX'],messageTypes[_0x2d7f16(0x1a8)],_0x59dd5e[_0x2d7f16(0x1b9)],_0x293efd,_0x49db5d),process[_0x2d7f16(0x1e2)](0x1);}catch(_0x2eba94){const _0x28fdfa=_0x2d7f16(0x1db)+_0x2eba94+'\x20\x0a'+JSON[_0x2d7f16(0x1a9)](_0x2eba94[_0x2d7f16(0x1ce)])+'\x20';logger['error'](_0x28fdfa),process[_0x2d7f16(0x1e2)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x1587c6=a20_0x3c08;function a20_0x3c08(_0x1c2501,_0x36da01){const _0x480b07=a20_0x480b();return a20_0x3c08=function(_0x3c08e0,_0x359958){_0x3c08e0=_0x3c08e0-0x88;let _0x1d5586=_0x480b07[_0x3c08e0];return _0x1d5586;},a20_0x3c08(_0x1c2501,_0x36da01);}function a20_0x480b(){const _0x5aaccb=['desc','7459664AUtvqr','4200364iInwkE','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','9izLcuv','usage','epilogue','strict','HAtUo','stop_commands','../config/constants','stop','2191137xikGzY','63865NRPVSm','command','builder','19690900qUtorT','shibZ','help','commandDir','38EGMbCm','1223392DvYxPt','recommendCommands','handler','258NjaZXH','48884UrDtZG'];a20_0x480b=function(){return _0x5aaccb;};return a20_0x480b();}(function(_0x15b15a,_0x599166){const _0x11d0f3=a20_0x3c08,_0x393ff2=_0x15b15a();while(!![]){try{const _0x9651b9=-parseInt(_0x11d0f3(0x94))/0x1*(parseInt(_0x11d0f3(0x8f))/0x2)+-parseInt(_0x11d0f3(0xa2))/0x3+parseInt(_0x11d0f3(0x90))/0x4+-parseInt(_0x11d0f3(0x88))/0x5*(-parseInt(_0x11d0f3(0x93))/0x6)+parseInt(_0x11d0f3(0x97))/0x7+-parseInt(_0x11d0f3(0x96))/0x8*(parseInt(_0x11d0f3(0x9a))/0x9)+parseInt(_0x11d0f3(0x8b))/0xa;if(_0x9651b9===_0x599166)break;else _0x393ff2['push'](_0x393ff2['shift']());}catch(_0x3c9cda){_0x393ff2['push'](_0x393ff2['shift']());}}}(a20_0x480b,0xcb454));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1587c6(0xa0));exports[a20_0x1587c6(0x89)]=a20_0x1587c6(0xa1),exports[a20_0x1587c6(0x95)]=a20_0x1587c6(0x98),exports[a20_0x1587c6(0x8a)]=function(_0x48244f){const _0x1b5142=a20_0x1587c6,_0x13f7c4={};_0x13f7c4[_0x1b5142(0x9e)]=_0x1b5142(0x9f),_0x13f7c4[_0x1b5142(0x8c)]='help';const _0xdb10fe=_0x13f7c4;return _0x48244f[_0x1b5142(0x9b)](HELP_HEADER_MESSAGE[_0x1b5142(0xa1)])[_0x1b5142(0x9c)](HELP_FOOTER_MESSAGE)[_0x1b5142(0x8e)](_0xdb10fe[_0x1b5142(0x9e)])[_0x1b5142(0x99)]()[_0x1b5142(0x91)]()[_0x1b5142(0x9d)]()[_0x1b5142(0x8d)](_0xdb10fe[_0x1b5142(0x8c)]);},exports[a20_0x1587c6(0x92)]=function(_0x3e6d98){};
1
+ const a20_0x5e7ce3=a20_0x1164;(function(_0x17ebf4,_0x4c1d68){const _0x5e6bcc=a20_0x1164,_0x44896c=_0x17ebf4();while(!![]){try{const _0x1c16cb=-parseInt(_0x5e6bcc(0x7d))/0x1*(-parseInt(_0x5e6bcc(0x7b))/0x2)+parseInt(_0x5e6bcc(0x80))/0x3+parseInt(_0x5e6bcc(0x87))/0x4*(-parseInt(_0x5e6bcc(0x81))/0x5)+parseInt(_0x5e6bcc(0x86))/0x6+-parseInt(_0x5e6bcc(0x79))/0x7+-parseInt(_0x5e6bcc(0x77))/0x8*(-parseInt(_0x5e6bcc(0x85))/0x9)+-parseInt(_0x5e6bcc(0x78))/0xa;if(_0x1c16cb===_0x4c1d68)break;else _0x44896c['push'](_0x44896c['shift']());}catch(_0x49f867){_0x44896c['push'](_0x44896c['shift']());}}}(a20_0x48e0,0x9b18c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x1164(_0xafc64c,_0x27f1ee){const _0x48e0f6=a20_0x48e0();return a20_0x1164=function(_0x116460,_0x40dc00){_0x116460=_0x116460-0x72;let _0x47c7d6=_0x48e0f6[_0x116460];return _0x47c7d6;},a20_0x1164(_0xafc64c,_0x27f1ee);}exports[a20_0x5e7ce3(0x7f)]=a20_0x5e7ce3(0x7a),exports[a20_0x5e7ce3(0x82)]=a20_0x5e7ce3(0x73),exports['builder']=function(_0x4b4f3c){const _0x523b6f=a20_0x5e7ce3,_0x366a97={};_0x366a97[_0x523b6f(0x75)]=_0x523b6f(0x7c),_0x366a97[_0x523b6f(0x89)]=_0x523b6f(0x88);const _0x1f089f=_0x366a97;return _0x4b4f3c[_0x523b6f(0x76)](HELP_HEADER_MESSAGE[_0x523b6f(0x7a)])[_0x523b6f(0x83)](HELP_FOOTER_MESSAGE)[_0x523b6f(0x7e)](_0x1f089f[_0x523b6f(0x75)])[_0x523b6f(0x72)]()[_0x523b6f(0x74)]()[_0x523b6f(0x84)]()['help'](_0x1f089f['bRXSP']);},exports['handler']=function(_0x310d8e){};function a20_0x48e0(){const _0x5b8b39=['728545BmcGsd','desc','epilogue','strict','5769pwQCTC','4873272iatUel','28gcLQam','help','bRXSP','demandCommand','Stop\x20a\x20running\x20Automation\x20grid.','recommendCommands','VCvSp','usage','7720jQLiCd','3132290gopoXP','7102536cZhbWv','stop','802rpRRtO','stop_commands','1033hBomMY','commandDir','command','3414318asjxGy'];a20_0x48e0=function(){return _0x5b8b39;};return a20_0x48e0();}
@@ -1 +1 @@
1
- function a21_0xb064(){const _0x16e768=['pzyZj','existsSync','bstackUsername','aCPLe','tDCgk','<PasswordPlaceholder>','ClMmX','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','yEyiA','1623666GNdloH','noxoq','clusterName','skipTlsCertVerify','WjMWf','Adding\x20Websocket\x20listeners','719672gWpENu','Grid\x20stoppped.','45LtiRtD','1709YCixaN','../../utils/instrumentationUtils','stringify','Stopping\x20grid\x20','options','Browserstack','../../cloudproviders/utils','../../config/constants','oLPDW','INFO','zELdq','description','readFileSync','stack','uOFBz','addListeners','jZcOj','kLWOk','vyYAd','exit','../../utils/webSocketUtils','../../config/logger','parse','region','stop-grid-called','ERROR','1769515bhwryl','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Stop\x20a\x20running\x20Automation\x20grid.','grid','crtcQ','426dPNlGY','statusCode','debug','unauthorised','gridId','name','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','bstackAccesskey','handler','builder','Kufxq','xHztF','invalid-grid-id','skip-tls-cert-verify','stop','4865150kCGHsL','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','jeYhF','error','info','Skip\x20insecure\x20cert\x20verification.','password','HYwkS','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','type','init-not-called','WebSocket','command','default','21856jczoYG','72JnMIDK','evwNs','../../utils/gridComponents','argv','body','cloudProvider','message','../../utils/utilityMethods','username','27aBIpeC','aXmuS','../../utils/createk8sClient','<UsernamePlaceholder>','7uuzozf','HKVLW','replace','HsaaO','string','desc','boolean','grid-id','994860iHJZbT'];a21_0xb064=function(){return _0x16e768;};return a21_0xb064();}const a21_0x49aadc=a21_0xa08e;function a21_0xa08e(_0x3b6716,_0x50900a){const _0xb064be=a21_0xb064();return a21_0xa08e=function(_0xa08e2,_0x5da7de){_0xa08e2=_0xa08e2-0x140;let _0x2a7236=_0xb064be[_0xa08e2];return _0x2a7236;},a21_0xa08e(_0x3b6716,_0x50900a);}(function(_0x12e53c,_0x634b2a){const _0x17ede9=a21_0xa08e,_0x163eb6=_0x12e53c();while(!![]){try{const _0x3bb308=-parseInt(_0x17ede9(0x15a))/0x1*(parseInt(_0x17ede9(0x179))/0x2)+-parseInt(_0x17ede9(0x146))/0x3+parseInt(_0x17ede9(0x196))/0x4*(parseInt(_0x17ede9(0x159))/0x5)+parseInt(_0x17ede9(0x151))/0x6*(-parseInt(_0x17ede9(0x1a4))/0x7)+-parseInt(_0x17ede9(0x157))/0x8*(parseInt(_0x17ede9(0x1a0))/0x9)+parseInt(_0x17ede9(0x188))/0xa+parseInt(_0x17ede9(0x174))/0xb*(parseInt(_0x17ede9(0x197))/0xc);if(_0x3bb308===_0x634b2a)break;else _0x163eb6['push'](_0x163eb6['shift']());}catch(_0x233b3d){_0x163eb6['push'](_0x163eb6['shift']());}}}(a21_0xb064,0x40a34));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x49aadc(0x161)),{logger}=require(a21_0x49aadc(0x16f)),{getCredentialsPath,getGridDetails}=require(a21_0x49aadc(0x19e)),{scaleDownHubDeployment}=require(a21_0x49aadc(0x199)),{sendInstrumentationEvent}=require(a21_0x49aadc(0x15b)),webSocketUtils=require(a21_0x49aadc(0x16e)),{createK8sClient}=require(a21_0x49aadc(0x1a2)),{getCloudProviderObject}=require(a21_0x49aadc(0x160));exports[a21_0x49aadc(0x194)]=a21_0x49aadc(0x177),exports[a21_0x49aadc(0x143)]=a21_0x49aadc(0x176),exports[a21_0x49aadc(0x182)]=function(_0x2814eb){const _0x21a7e6=a21_0x49aadc,_0x193c94={};_0x193c94[_0x21a7e6(0x141)]=_0x21a7e6(0x175),_0x193c94[_0x21a7e6(0x147)]=_0x21a7e6(0x142),_0x193c94['tDCgk']=_0x21a7e6(0x18d),_0x193c94[_0x21a7e6(0x168)]=_0x21a7e6(0x144),_0x193c94[_0x21a7e6(0x152)]=_0x21a7e6(0x14f);const _0x3ffe54=_0x193c94,_0x5d6dc0={};_0x5d6dc0[_0x21a7e6(0x165)]=_0x3ffe54[_0x21a7e6(0x141)],_0x5d6dc0[_0x21a7e6(0x191)]=_0x3ffe54[_0x21a7e6(0x147)];const _0x38d898={};_0x38d898[_0x21a7e6(0x165)]=_0x3ffe54[_0x21a7e6(0x14b)],_0x38d898['type']=_0x3ffe54[_0x21a7e6(0x168)],_0x38d898[_0x21a7e6(0x195)]=![];const _0x560bb8={};return _0x560bb8[_0x21a7e6(0x145)]=_0x5d6dc0,_0x560bb8[_0x21a7e6(0x186)]=_0x38d898,_0x2814eb['usage'](HELP_HEADER_MESSAGE[_0x21a7e6(0x187)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x21a7e6(0x15e)](_0x560bb8)[_0x21a7e6(0x14f)](_0x3ffe54[_0x21a7e6(0x152)])[_0x21a7e6(0x19a)];},exports[a21_0x49aadc(0x181)]=async function(_0x4e54de){const _0x281bd0=a21_0x49aadc,_0x531364={'vyYAd':_0x281bd0(0x17f),'rIzce':function(_0x97ac4b){return _0x97ac4b();},'eXWyL':_0x281bd0(0x14e),'ClMmX':function(_0x164843,_0x3f8a9a,_0x5196f4,_0x1ffe96,_0x512951,_0x29e843,_0x2bad47){return _0x164843(_0x3f8a9a,_0x5196f4,_0x1ffe96,_0x512951,_0x29e843,_0x2bad47);},'evwNs':_0x281bd0(0x172),'HKVLW':_0x281bd0(0x192),'DHwPj':function(_0x4c508a){return _0x4c508a();},'Kufxq':_0x281bd0(0x1a3),'lBikp':_0x281bd0(0x14c),'aXmuS':_0x281bd0(0x156),'oLPDW':function(_0x1ba773,_0x349450,_0x164197,_0x3e573b){return _0x1ba773(_0x349450,_0x164197,_0x3e573b);},'aCPLe':function(_0x3928c2,_0x1bdcaf,_0x563cd8,_0x5897a7,_0x24f0cf,_0x4ccfb9,_0x441645){return _0x3928c2(_0x1bdcaf,_0x563cd8,_0x5897a7,_0x24f0cf,_0x4ccfb9,_0x441645);},'ECGmv':function(_0x1c9e03,_0x164107,_0x1ef54d){return _0x1c9e03(_0x164107,_0x1ef54d);},'zELdq':_0x281bd0(0x158),'wrFcn':function(_0x2e1a67,_0x28d941){return _0x2e1a67===_0x28d941;},'kLWOk':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','HYwkS':function(_0xb32b8f,_0x50a712,_0x3dccbb,_0x3c38f0,_0x3d16b3,_0x16d5e6,_0x29bebb){return _0xb32b8f(_0x50a712,_0x3dccbb,_0x3c38f0,_0x3d16b3,_0x16d5e6,_0x29bebb);},'jeYhF':_0x281bd0(0x17c),'jZcOj':function(_0x2436b0,_0x5344e5){return _0x2436b0===_0x5344e5;},'WjMWf':function(_0x2236ef,_0x28ce99,_0x3cdc8f,_0x99ff7c,_0x115453,_0x9d4b80,_0x2c4b00){return _0x2236ef(_0x28ce99,_0x3cdc8f,_0x99ff7c,_0x115453,_0x9d4b80,_0x2c4b00);},'xHztF':_0x281bd0(0x185),'crtcQ':function(_0x222753,_0x3c2e33,_0x1c9365,_0x34c2f6,_0x2ea126,_0x2e680d,_0x1457a9){return _0x222753(_0x3c2e33,_0x1c9365,_0x34c2f6,_0x2ea126,_0x2e680d,_0x1457a9);},'yEyiA':'server-error'};let _0x40f48d;try{!_0x4e54de[_0x281bd0(0x17d)]&&(logger[_0x281bd0(0x18b)](_0x531364[_0x281bd0(0x16c)]),process['exit'](0x1));!fs[_0x281bd0(0x148)](_0x531364['rIzce'](getCredentialsPath))&&(logger[_0x281bd0(0x18b)](_0x531364['eXWyL']),await _0x531364[_0x281bd0(0x14d)](sendInstrumentationEvent,_0x4e54de,_0x531364[_0x281bd0(0x198)],messageTypes[_0x281bd0(0x173)],_0x531364[_0x281bd0(0x1a5)],null,_0x4e54de),process['exit'](0x1));logger[_0x281bd0(0x18c)](_0x281bd0(0x15d)+_0x4e54de['gridId']),await _0x531364['ClMmX'](sendInstrumentationEvent,_0x4e54de,_0x531364[_0x281bd0(0x198)],messageTypes[_0x281bd0(0x163)],null,null,_0x4e54de);const _0x3413a8=JSON[_0x281bd0(0x170)](fs[_0x281bd0(0x166)](_0x531364['DHwPj'](getCredentialsPath)));global_registry[_0x281bd0(0x149)]=_0x3413a8[_0x281bd0(0x15f)]['username'],global_registry[_0x281bd0(0x180)]=_0x3413a8[_0x281bd0(0x15f)][_0x281bd0(0x18e)];const _0x4be2c8=WS_ENDPOINT[_0x281bd0(0x140)](_0x531364[_0x281bd0(0x183)],_0x3413a8['Browserstack']['username'])[_0x281bd0(0x140)](_0x531364['lBikp'],_0x3413a8[_0x281bd0(0x15f)]['password']),_0x5c85f8={};_0x5c85f8[_0x281bd0(0x193)]=ws,_0x5c85f8['connectionTimeout']=0x36ee80,_0x40f48d=new ReconnectingWebSocket(_0x4be2c8,[],_0x5c85f8),logger[_0x281bd0(0x17b)](_0x531364[_0x281bd0(0x1a1)]),webSocketUtils[_0x281bd0(0x169)](_0x40f48d,_0x4e54de['user'],_0x4e54de[_0x281bd0(0x18e)]);const [_0x58affe,_0x41575f]=await _0x531364[_0x281bd0(0x162)](getGridDetails,_0x3413a8[_0x281bd0(0x15f)][_0x281bd0(0x19f)],_0x3413a8[_0x281bd0(0x15f)][_0x281bd0(0x18e)],_0x4e54de['gridId']);if(_0x41575f){const _0x1eb724=_0x41575f[_0x281bd0(0x18c)];global_registry[_0x281bd0(0x19c)]=_0x1eb724[_0x281bd0(0x19c)],global_registry['clusterRegion']=_0x1eb724[_0x281bd0(0x171)],global_registry[_0x281bd0(0x153)]=_0x1eb724[_0x281bd0(0x153)];const _0x550473=await _0x531364[_0x281bd0(0x14a)](getCloudProviderObject,_0x1eb724['cloudProvider'],_0x1eb724[_0x281bd0(0x153)],_0x1eb724['name'],_0x40f48d,webSocketUtils,_0x4e54de),[_0x4206e7,_0x2a949b,_0x4dd7e9,_0x23ef14,_0x3a7118,_0x5391c2]=await _0x531364['ECGmv'](createK8sClient,_0x550473,_0x4e54de[_0x281bd0(0x154)]);await _0x531364['ECGmv'](scaleDownHubDeployment,_0x2a949b,_0x1eb724[_0x281bd0(0x17e)]),logger[_0x281bd0(0x18c)](_0x531364[_0x281bd0(0x164)]),process[_0x281bd0(0x16d)](0x0);}_0x531364['wrFcn'](_0x58affe[_0x281bd0(0x17a)],0x191)&&(logger[_0x281bd0(0x18b)](_0x531364[_0x281bd0(0x16b)]),await _0x531364[_0x281bd0(0x18f)](sendInstrumentationEvent,_0x4e54de,_0x531364[_0x281bd0(0x198)],messageTypes[_0x281bd0(0x173)],_0x531364[_0x281bd0(0x18a)],null,_0x4e54de),process['exit'](0x1)),_0x531364[_0x281bd0(0x16a)](_0x58affe[_0x281bd0(0x17a)],0x190)&&(logger[_0x281bd0(0x18b)](JSON['parse'](_0x58affe[_0x281bd0(0x19b)])[_0x281bd0(0x19d)]),await _0x531364[_0x281bd0(0x155)](sendInstrumentationEvent,_0x4e54de,_0x531364[_0x281bd0(0x198)],messageTypes['ERROR'],_0x531364[_0x281bd0(0x184)],null,_0x4e54de),process[_0x281bd0(0x16d)](0x1)),logger[_0x281bd0(0x18b)](_0x281bd0(0x189)+JSON[_0x281bd0(0x15c)](_0x58affe)),await _0x531364[_0x281bd0(0x178)](sendInstrumentationEvent,_0x4e54de,_0x531364['evwNs'],messageTypes[_0x281bd0(0x173)],_0x531364[_0x281bd0(0x150)],_0x58affe,_0x4e54de),process['exit'](0x1);}catch(_0x2244c6){const _0x8643bd=_0x281bd0(0x190)+_0x2244c6+'\x20\x0a'+JSON[_0x281bd0(0x15c)](_0x2244c6[_0x281bd0(0x167)])+'\x20';logger[_0x281bd0(0x18b)](_0x8643bd),process[_0x281bd0(0x16d)](0x1);}};
1
+ function a21_0x2631(_0x3fb799,_0x4d306e){const _0x130195=a21_0x1301();return a21_0x2631=function(_0x2631d6,_0x15813a){_0x2631d6=_0x2631d6-0x16a;let _0x697721=_0x130195[_0x2631d6];return _0x697721;},a21_0x2631(_0x3fb799,_0x4d306e);}const a21_0x1c8b2f=a21_0x2631;(function(_0x159b0d,_0x54b000){const _0x2b0ee0=a21_0x2631,_0x20eaa6=_0x159b0d();while(!![]){try{const _0x473b15=parseInt(_0x2b0ee0(0x1c4))/0x1*(parseInt(_0x2b0ee0(0x17a))/0x2)+-parseInt(_0x2b0ee0(0x172))/0x3+-parseInt(_0x2b0ee0(0x185))/0x4+parseInt(_0x2b0ee0(0x1b8))/0x5*(-parseInt(_0x2b0ee0(0x1a3))/0x6)+-parseInt(_0x2b0ee0(0x1a1))/0x7*(parseInt(_0x2b0ee0(0x173))/0x8)+parseInt(_0x2b0ee0(0x184))/0x9+-parseInt(_0x2b0ee0(0x1a7))/0xa*(-parseInt(_0x2b0ee0(0x183))/0xb);if(_0x473b15===_0x54b000)break;else _0x20eaa6['push'](_0x20eaa6['shift']());}catch(_0x5554b0){_0x20eaa6['push'](_0x20eaa6['shift']());}}}(a21_0x1301,0xb092e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x1c8b2f(0x17b)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x1c8b2f(0x178)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x1c8b2f(0x1ac)),{createK8sClient}=require(a21_0x1c8b2f(0x195)),{getCloudProviderObject}=require(a21_0x1c8b2f(0x1bf));exports[a21_0x1c8b2f(0x181)]=a21_0x1c8b2f(0x1c0),exports[a21_0x1c8b2f(0x19c)]=a21_0x1c8b2f(0x190),exports['builder']=function(_0x564d11){const _0x11745b=a21_0x1c8b2f,_0x1b76ea={};_0x1b76ea[_0x11745b(0x1b1)]=_0x11745b(0x1be),_0x1b76ea[_0x11745b(0x1bd)]=_0x11745b(0x1ba),_0x1b76ea['xWyXa']=_0x11745b(0x19b),_0x1b76ea[_0x11745b(0x1c1)]=_0x11745b(0x177),_0x1b76ea['xAtfU']='help';const _0x4bf3fe=_0x1b76ea,_0x9df8eb={};_0x9df8eb[_0x11745b(0x199)]=_0x4bf3fe[_0x11745b(0x1b1)],_0x9df8eb[_0x11745b(0x1af)]=_0x4bf3fe['rNsir'];const _0x5e5304={};_0x5e5304[_0x11745b(0x199)]=_0x4bf3fe['xWyXa'],_0x5e5304[_0x11745b(0x1af)]=_0x4bf3fe['nbRiI'],_0x5e5304[_0x11745b(0x18e)]=![];const _0x27783d={};return _0x27783d[_0x11745b(0x18f)]=_0x9df8eb,_0x27783d[_0x11745b(0x1ae)]=_0x5e5304,_0x564d11[_0x11745b(0x18c)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x27783d)[_0x11745b(0x189)](_0x4bf3fe[_0x11745b(0x1c3)])[_0x11745b(0x17f)];},exports[a21_0x1c8b2f(0x1a5)]=async function(_0x10400a){const _0x3eaab1=a21_0x1c8b2f,_0x298748={'KGFAJ':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','aKYAM':function(_0x194cdd){return _0x194cdd();},'Jdvjc':_0x3eaab1(0x179),'KPumx':function(_0xe73020,_0x446fde,_0x9ddcad,_0x10c79f,_0x221c34,_0x1583eb,_0x59e1bf){return _0xe73020(_0x446fde,_0x9ddcad,_0x10c79f,_0x221c34,_0x1583eb,_0x59e1bf);},'QMrNH':_0x3eaab1(0x180),'ZusQT':_0x3eaab1(0x188),'uVZsc':function(_0x4e3212,_0xbefd9f,_0xd56e,_0x2dd3a3,_0x2bd3ea,_0x1a3855,_0x373bd5){return _0x4e3212(_0xbefd9f,_0xd56e,_0x2dd3a3,_0x2bd3ea,_0x1a3855,_0x373bd5);},'Moahg':_0x3eaab1(0x192),'vgBRP':_0x3eaab1(0x19f),'CZWIc':_0x3eaab1(0x1a6),'hXqIP':function(_0x2f28c4,_0x5c934e,_0x3eab16,_0x39f112){return _0x2f28c4(_0x5c934e,_0x3eab16,_0x39f112);},'TxJtD':function(_0xd1eebd,_0x498125,_0x2bf816,_0x3f3f36,_0x5a6aa7,_0x144157,_0x1bfee2){return _0xd1eebd(_0x498125,_0x2bf816,_0x3f3f36,_0x5a6aa7,_0x144157,_0x1bfee2);},'jzPXp':function(_0x32dbba,_0x19a599,_0x1a4ac4){return _0x32dbba(_0x19a599,_0x1a4ac4);},'IoDKU':_0x3eaab1(0x1ad),'hDfav':function(_0x149726,_0x17a297){return _0x149726===_0x17a297;},'RHsBH':_0x3eaab1(0x1b5),'wWwfC':function(_0x351656,_0x5de144,_0x4526b1,_0x3e2ccf,_0x2122ce,_0x2522fd,_0x3d8fd7){return _0x351656(_0x5de144,_0x4526b1,_0x3e2ccf,_0x2122ce,_0x2522fd,_0x3d8fd7);},'bVhxD':_0x3eaab1(0x17e),'BAEpR':function(_0x1df425,_0x370887,_0x5a125d,_0x4d7fc0,_0x48c985,_0x5947af,_0x1987a2){return _0x1df425(_0x370887,_0x5a125d,_0x4d7fc0,_0x48c985,_0x5947af,_0x1987a2);},'KaDyW':_0x3eaab1(0x197),'rWIjj':function(_0x3a4ee2,_0x37f0d9,_0x3d1d4e,_0x28e34f,_0x166170,_0x53884e,_0x1805a3){return _0x3a4ee2(_0x37f0d9,_0x3d1d4e,_0x28e34f,_0x166170,_0x53884e,_0x1805a3);},'LquTk':_0x3eaab1(0x16f)};let _0x370a34;try{!_0x10400a[_0x3eaab1(0x191)]&&(logger[_0x3eaab1(0x198)](_0x298748[_0x3eaab1(0x16b)]),process[_0x3eaab1(0x1aa)](0x1));!fs['existsSync'](_0x298748[_0x3eaab1(0x1a0)](getCredentialsPath))&&(logger['error'](_0x298748[_0x3eaab1(0x1b7)]),await _0x298748[_0x3eaab1(0x16c)](sendInstrumentationEvent,_0x10400a,_0x298748[_0x3eaab1(0x19a)],messageTypes['ERROR'],_0x298748['ZusQT'],null,_0x10400a),process[_0x3eaab1(0x1aa)](0x1));logger[_0x3eaab1(0x16e)](_0x3eaab1(0x18b)+_0x10400a[_0x3eaab1(0x191)]),await _0x298748['uVZsc'](sendInstrumentationEvent,_0x10400a,_0x298748[_0x3eaab1(0x19a)],messageTypes[_0x3eaab1(0x1c6)],null,null,_0x10400a);const _0x4d3cda=JSON[_0x3eaab1(0x1b4)](fs[_0x3eaab1(0x1bc)](_0x298748[_0x3eaab1(0x1a0)](getCredentialsPath)));global_registry[_0x3eaab1(0x16d)]=_0x4d3cda[_0x3eaab1(0x1b2)][_0x3eaab1(0x170)],global_registry[_0x3eaab1(0x176)]=_0x4d3cda[_0x3eaab1(0x1b2)]['password'];const _0x4b8281=WS_ENDPOINT[_0x3eaab1(0x1a4)](_0x298748['Moahg'],_0x4d3cda['Browserstack'][_0x3eaab1(0x170)])[_0x3eaab1(0x1a4)](_0x298748[_0x3eaab1(0x1bb)],_0x4d3cda[_0x3eaab1(0x1b2)]['password']),_0x271ca1={};_0x271ca1[_0x3eaab1(0x182)]=ws,_0x271ca1[_0x3eaab1(0x174)]=0x36ee80,_0x370a34=new ReconnectingWebSocket(_0x4b8281,[],_0x271ca1),logger[_0x3eaab1(0x1c2)](_0x298748[_0x3eaab1(0x171)]),webSocketUtils[_0x3eaab1(0x18d)](_0x370a34,_0x10400a['user'],_0x10400a[_0x3eaab1(0x196)]);const [_0x42e3dc,_0x51e236]=await _0x298748[_0x3eaab1(0x1ab)](getGridDetails,_0x4d3cda['Browserstack'][_0x3eaab1(0x170)],_0x4d3cda[_0x3eaab1(0x1b2)][_0x3eaab1(0x196)],_0x10400a[_0x3eaab1(0x191)]);if(_0x51e236){const _0xa9bdba=_0x51e236[_0x3eaab1(0x16e)];global_registry[_0x3eaab1(0x1c5)]=_0xa9bdba[_0x3eaab1(0x1c5)],global_registry[_0x3eaab1(0x194)]=_0xa9bdba[_0x3eaab1(0x18a)],global_registry[_0x3eaab1(0x186)]=_0xa9bdba[_0x3eaab1(0x186)];const _0x4bfcf3=await _0x298748[_0x3eaab1(0x1a2)](getCloudProviderObject,_0xa9bdba['cloudProvider'],_0xa9bdba[_0x3eaab1(0x186)],_0xa9bdba[_0x3eaab1(0x1a8)],_0x370a34,webSocketUtils,_0x10400a),[_0x1225ba,_0x1b121f,_0x19d1e9,_0x47309f,_0xa832fa,_0x23aedd]=await _0x298748['jzPXp'](createK8sClient,_0x4bfcf3,_0x10400a['skipTlsCertVerify']);await _0x298748[_0x3eaab1(0x16a)](scaleDownHubDeployment,_0x1b121f,_0xa9bdba[_0x3eaab1(0x1a8)]),logger['info'](_0x298748[_0x3eaab1(0x1a9)]),process['exit'](0x0);}_0x298748[_0x3eaab1(0x187)](_0x42e3dc['statusCode'],0x191)&&(logger[_0x3eaab1(0x198)](_0x298748['RHsBH']),await _0x298748[_0x3eaab1(0x175)](sendInstrumentationEvent,_0x10400a,_0x298748[_0x3eaab1(0x19a)],messageTypes[_0x3eaab1(0x1c7)],_0x298748[_0x3eaab1(0x1b9)],null,_0x10400a),process[_0x3eaab1(0x1aa)](0x1)),_0x298748[_0x3eaab1(0x187)](_0x42e3dc['statusCode'],0x190)&&(logger[_0x3eaab1(0x198)](JSON[_0x3eaab1(0x1b4)](_0x42e3dc[_0x3eaab1(0x1b3)])[_0x3eaab1(0x17c)]),await _0x298748['BAEpR'](sendInstrumentationEvent,_0x10400a,_0x298748['QMrNH'],messageTypes['ERROR'],_0x298748[_0x3eaab1(0x1b6)],null,_0x10400a),process[_0x3eaab1(0x1aa)](0x1)),logger[_0x3eaab1(0x198)](_0x3eaab1(0x193)+JSON['stringify'](_0x42e3dc)),await _0x298748['rWIjj'](sendInstrumentationEvent,_0x10400a,_0x298748[_0x3eaab1(0x19a)],messageTypes[_0x3eaab1(0x1c7)],_0x298748[_0x3eaab1(0x17d)],_0x42e3dc,_0x10400a),process[_0x3eaab1(0x1aa)](0x1);}catch(_0x29ae1a){const _0x20cddb=_0x3eaab1(0x19d)+_0x29ae1a+'\x20\x0a'+JSON[_0x3eaab1(0x1b0)](_0x29ae1a[_0x3eaab1(0x19e)])+'\x20';logger[_0x3eaab1(0x198)](_0x20cddb),process[_0x3eaab1(0x1aa)](0x1);}};function a21_0x1301(){const _0x120973=['../../utils/webSocketUtils','Grid\x20stoppped.','skip-tls-cert-verify','type','stringify','SkHAr','Browserstack','body','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KaDyW','Jdvjc','5dQdJEV','bVhxD','string','vgBRP','readFileSync','rNsir','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','../../cloudproviders/utils','grid','nbRiI','debug','xAtfU','13421fESwHi','cloudProvider','INFO','ERROR','jzPXp','KGFAJ','KPumx','bstackUsername','info','server-error','username','CZWIc','810564sOgHCP','120RRZRHN','connectionTimeout','wWwfC','bstackAccesskey','boolean','../../utils/utilityMethods','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','124DQeiku','reconnecting-websocket','message','LquTk','unauthorised','argv','stop-grid-called','command','WebSocket','33GcHBKJ','4947345LuYgGn','2246860wGFXtJ','clusterName','hDfav','init-not-called','help','region','Stopping\x20grid\x20','usage','addListeners','default','grid-id','Stop\x20a\x20running\x20Automation\x20grid.','gridId','<UsernamePlaceholder>','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','clusterRegion','../../utils/createk8sClient','password','invalid-grid-id','error','description','QMrNH','Skip\x20insecure\x20cert\x20verification.','desc','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','stack','<PasswordPlaceholder>','aKYAM','446110AjqGTW','TxJtD','2012838dRjobY','replace','handler','Adding\x20Websocket\x20listeners','4882550ZJFeno','name','IoDKU','exit','hXqIP'];a21_0x1301=function(){return _0x120973;};return a21_0x1301();}
@@ -1 +1 @@
1
- const a22_0x7f3336=a22_0x2625;(function(_0x76688b,_0x498621){const _0x483122=a22_0x2625,_0x512fcc=_0x76688b();while(!![]){try{const _0x4c7aa8=parseInt(_0x483122(0x1c3))/0x1+-parseInt(_0x483122(0x1bf))/0x2+parseInt(_0x483122(0x1db))/0x3+parseInt(_0x483122(0x1f6))/0x4*(parseInt(_0x483122(0x1ad))/0x5)+parseInt(_0x483122(0x1ca))/0x6*(-parseInt(_0x483122(0x21a))/0x7)+-parseInt(_0x483122(0x1d8))/0x8+parseInt(_0x483122(0x1e4))/0x9*(-parseInt(_0x483122(0x1ba))/0xa);if(_0x4c7aa8===_0x498621)break;else _0x512fcc['push'](_0x512fcc['shift']());}catch(_0x39529b){_0x512fcc['push'](_0x512fcc['shift']());}}}(a22_0x3299,0x69c13),require(a22_0x7f3336(0x1ed))['config']());let gridURL=a22_0x7f3336(0x1f3),bsApiUrl=a22_0x7f3336(0x1e1),agApiUrl=a22_0x7f3336(0x203);const _env=(process['env'][a22_0x7f3336(0x1e0)]||a22_0x7f3336(0x1fd))[a22_0x7f3336(0x1e7)]();if(_env===a22_0x7f3336(0x1e2)||_env===a22_0x7f3336(0x21c))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x7f3336(0x1ee),agApiUrl=a22_0x7f3336(0x1d4);else(_env===a22_0x7f3336(0x1b6)||_env===a22_0x7f3336(0x1cc))&&(gridURL=a22_0x7f3336(0x1b7),bsApiUrl=a22_0x7f3336(0x1b8),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process['env'][a22_0x7f3336(0x213)]||gridURL,exports[a22_0x7f3336(0x1fb)]=process[a22_0x7f3336(0x1f2)][a22_0x7f3336(0x1fb)]||bsApiUrl,exports[a22_0x7f3336(0x21b)]=process[a22_0x7f3336(0x1f2)][a22_0x7f3336(0x21b)]||agApiUrl,exports[a22_0x7f3336(0x1df)]=a22_0x7f3336(0x1f1)+this[a22_0x7f3336(0x21b)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x7f3336(0x1ef)]='credentials',exports[a22_0x7f3336(0x207)]='BrowserStackIAMUser',exports[a22_0x7f3336(0x209)]=a22_0x7f3336(0x1f7),exports[a22_0x7f3336(0x1ce)]=a22_0x7f3336(0x201),exports['CLUSTER_DEP_STACK_NAME']=a22_0x7f3336(0x20f),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x7f3336(0x1c0),exports[a22_0x7f3336(0x1c7)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x7f3336(0x1d6)]=a22_0x7f3336(0x20b),exports[a22_0x7f3336(0x1d7)]=a22_0x7f3336(0x211),exports['GCP']=a22_0x7f3336(0x1d2),exports[a22_0x7f3336(0x20d)]=[this[a22_0x7f3336(0x1ce)],this[a22_0x7f3336(0x1d7)],this[a22_0x7f3336(0x217)]];const a22_0x365c83={};a22_0x365c83['Key']=a22_0x7f3336(0x218),a22_0x365c83['Value']='BrowserStack';const a22_0x4e0776={};a22_0x4e0776[a22_0x7f3336(0x1fe)]=a22_0x7f3336(0x212),a22_0x4e0776[a22_0x7f3336(0x1e8)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x365c83,a22_0x4e0776];if(process[a22_0x7f3336(0x1f2)][a22_0x7f3336(0x204)]){const parsedTags=process[a22_0x7f3336(0x1f2)][a22_0x7f3336(0x204)][a22_0x7f3336(0x1e3)](',');parsedTags[a22_0x7f3336(0x1d5)](_0x5e13d=>{const _0x3bbfba=a22_0x7f3336,_0x351d8b=_0x5e13d[_0x3bbfba(0x1e3)](':'),_0x5992ea={};_0x5992ea['Key']=_0x351d8b[0x0],_0x5992ea[_0x3bbfba(0x1e8)]=_0x351d8b[0x1],common_hst_tags_list['push'](_0x5992ea);});}exports[a22_0x7f3336(0x1b1)]=common_hst_tags_list;const a22_0x479628={};a22_0x479628['browserstack:managedBy']='BrowserStack',a22_0x479628['browserstack:service']=a22_0x7f3336(0x1ae),exports[a22_0x7f3336(0x1fa)]=a22_0x479628,exports[a22_0x7f3336(0x1eb)]=[this[a22_0x7f3336(0x1ce)]];const a22_0xaa55af={};a22_0xaa55af[a22_0x7f3336(0x1c1)]=a22_0x7f3336(0x1de),a22_0xaa55af[a22_0x7f3336(0x1bd)]='resourceInfo',a22_0xaa55af[a22_0x7f3336(0x216)]=a22_0x7f3336(0x214),a22_0xaa55af[a22_0x7f3336(0x1e5)]='cliRunStarted',a22_0xaa55af['CLI_RUN_FINISHED']=a22_0x7f3336(0x1c8),exports[a22_0x7f3336(0x1c5)]=a22_0xaa55af,exports[a22_0x7f3336(0x1bb)]={},exports['LINK_MESSAGE']=a22_0x7f3336(0x205);const a22_0x3b78d4={};a22_0x3b78d4[a22_0x7f3336(0x1f0)]=a22_0x7f3336(0x1e6)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x206)]=a22_0x7f3336(0x1f9)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1cf)]=a22_0x7f3336(0x1d0)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1be)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1c2)]={},a22_0x3b78d4[a22_0x7f3336(0x1da)]=a22_0x7f3336(0x1b9)+this['LINK_MESSAGE'],a22_0x3b78d4[a22_0x7f3336(0x1ea)]=a22_0x7f3336(0x1af)+this['LINK_MESSAGE'],a22_0x3b78d4[a22_0x7f3336(0x1cd)]=a22_0x7f3336(0x20a)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x20c)]=a22_0x7f3336(0x1ff)+this['LINK_MESSAGE'],a22_0x3b78d4[a22_0x7f3336(0x1ec)]=a22_0x7f3336(0x1f4)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1c2)][a22_0x7f3336(0x1f0)]=a22_0x7f3336(0x219)+this[a22_0x7f3336(0x20e)],a22_0x3b78d4[a22_0x7f3336(0x1c2)][a22_0x7f3336(0x1f8)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x3b78d4[a22_0x7f3336(0x1c2)][a22_0x7f3336(0x210)]=a22_0x7f3336(0x1d1)+this[a22_0x7f3336(0x20e)],exports[a22_0x7f3336(0x1c6)]=a22_0x3b78d4,exports['HELP_FOOTER_MESSAGE']=a22_0x7f3336(0x1b4);function a22_0x2625(_0xf36216,_0x306720){const _0x3299cb=a22_0x3299();return a22_0x2625=function(_0x262550,_0x4ec0a5){_0x262550=_0x262550-0x1ad;let _0x45074a=_0x3299cb[_0x262550];return _0x45074a;},a22_0x2625(_0xf36216,_0x306720);}const a22_0xb69f95={};function a22_0x3299(){const _0x3551d9=['aws','MessageDescription','grid-api.browserstack.com','TURBOSCALE_CUSTOM_TAGS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','init','IAM_USER_NAME','UNKNOWN','DEFAULT_GRID_NAME','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','browserstack-turboscale-grid','stop','ALL_SUPPORTED_CLOUD_PROVIDERS','LINK_MESSAGE','BSTACK-ATS-CLUSTER','gridProfile','azure','browserstack:service','DASHBOARD_ENDPOINT','gridUrl','CLOUD_PROVIDER','GRID_URL','GCP','browserstack:managedBy','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','42peRomR','AG_API_URL','stag','445HSYdcm','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','success','COMMON_HST_TAGS','RAW_ARGS_REGEX','high-scale-grid-cluster','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','us-east-1','preprod','grid-preprod.bsstag.com','api-preprod.bsstag.com','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','40100YhZijD','global_registry','error','RESOURCES','create','381336mbbkkr','BSTACK-ATS-CLUSTER-AUTOSCALER','LOG','list','479597KBcbzb','NULL','WS_EVENTS','HELP_HEADER_MESSAGE','CLUSTER_HUB_HA_STACK_NAME','cliRunFinished','info','462258dzFjyE','REDACTED','pre-prod','start','AWS','configure','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','gcp','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','grid-api-devhst.bsstag.com','forEach','TURBOSCALE_DEPLOYMENT','AZURE','4760256HBUhkl','unknown','delete','1902933MLAoUi','[REDACTED]','SUCCESS','log','WS_ENDPOINT','BROWSERSTACK_ENV','api.browserstack.com','staging','split','117qQenmS','CLI_RUN_STARTED','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','toLowerCase','Value','messageTypes','connect','SUPPORTED_CLOUD_PROVIDERS','pre_check','dotenv','api-devhst.bsstag.com','CP_CONFIG_FILE','root','wss://','env','grid.browserstack.com','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','CLI_ARGS_REGEX','27836bcUlCx','high-scale-grid','grid','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','HST_CLUSTER_TAGS','BS_API_URL','INFO','prod','Key','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','pre-check'];a22_0x3299=function(){return _0x3551d9;};return a22_0x3299();}a22_0xb69f95[a22_0x7f3336(0x1dd)]=a22_0x7f3336(0x1b0),a22_0xb69f95['ERROR']=a22_0x7f3336(0x1bc),a22_0xb69f95[a22_0x7f3336(0x1fc)]=a22_0x7f3336(0x1c9),a22_0xb69f95['WARNING']='warning',a22_0xb69f95[a22_0x7f3336(0x208)]=a22_0x7f3336(0x1d9),a22_0xb69f95[a22_0x7f3336(0x1c4)]=null,exports[a22_0x7f3336(0x1e9)]=a22_0xb69f95,exports[a22_0x7f3336(0x1f5)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x7f3336(0x1b2)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x7f3336(0x1cb)]=a22_0x7f3336(0x1dc);const a22_0x292172={};a22_0x292172['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x2600f4={};a22_0x2600f4[a22_0x7f3336(0x200)]=a22_0x292172,exports[a22_0x7f3336(0x202)]=a22_0x2600f4,exports['TRIAL_GRID_URL']=a22_0x7f3336(0x1d3);const a22_0x22b42d={};a22_0x22b42d['CLUSTER']=a22_0x7f3336(0x1b3),a22_0x22b42d[a22_0x7f3336(0x215)]=a22_0x7f3336(0x201),a22_0x22b42d['REGION']=a22_0x7f3336(0x1b5),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x22b42d;
1
+ function a22_0x417c(_0x19b046,_0x461673){const _0x1f23ac=a22_0x1f23();return a22_0x417c=function(_0x417cd6,_0x12144f){_0x417cd6=_0x417cd6-0x197;let _0x1125ef=_0x1f23ac[_0x417cd6];return _0x1125ef;},a22_0x417c(_0x19b046,_0x461673);}const a22_0x215a6b=a22_0x417c;(function(_0x4b2859,_0x52b69d){const _0x2e0f8e=a22_0x417c,_0x3a6581=_0x4b2859();while(!![]){try{const _0x35fafe=-parseInt(_0x2e0f8e(0x1ae))/0x1*(parseInt(_0x2e0f8e(0x1a3))/0x2)+-parseInt(_0x2e0f8e(0x1b6))/0x3*(parseInt(_0x2e0f8e(0x1f9))/0x4)+parseInt(_0x2e0f8e(0x1eb))/0x5+-parseInt(_0x2e0f8e(0x1df))/0x6*(-parseInt(_0x2e0f8e(0x1bc))/0x7)+parseInt(_0x2e0f8e(0x1fb))/0x8+-parseInt(_0x2e0f8e(0x1a6))/0x9+-parseInt(_0x2e0f8e(0x1b8))/0xa*(parseInt(_0x2e0f8e(0x1ff))/0xb);if(_0x35fafe===_0x52b69d)break;else _0x3a6581['push'](_0x3a6581['shift']());}catch(_0x91fc1e){_0x3a6581['push'](_0x3a6581['shift']());}}}(a22_0x1f23,0xd213f),require('dotenv')[a22_0x215a6b(0x1a0)]());let gridURL=a22_0x215a6b(0x1fe),bsApiUrl=a22_0x215a6b(0x1f1),agApiUrl=a22_0x215a6b(0x202);const _env=(process[a22_0x215a6b(0x1e2)][a22_0x215a6b(0x1e1)]||a22_0x215a6b(0x1c4))[a22_0x215a6b(0x1d2)]();if(_env===a22_0x215a6b(0x1f2)||_env===a22_0x215a6b(0x1f5))gridURL=a22_0x215a6b(0x1e8),bsApiUrl=a22_0x215a6b(0x1c3),agApiUrl=a22_0x215a6b(0x1f7);else(_env===a22_0x215a6b(0x1a8)||_env===a22_0x215a6b(0x1b1))&&(gridURL=a22_0x215a6b(0x1a9),bsApiUrl=a22_0x215a6b(0x1b2),agApiUrl=a22_0x215a6b(0x1d8));exports[a22_0x215a6b(0x197)]=process[a22_0x215a6b(0x1e2)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x215a6b(0x1bf)]=process[a22_0x215a6b(0x1e2)][a22_0x215a6b(0x1bf)]||bsApiUrl,exports[a22_0x215a6b(0x1dc)]=process[a22_0x215a6b(0x1e2)]['AG_API_URL']||agApiUrl,exports[a22_0x215a6b(0x1c9)]='wss://'+this[a22_0x215a6b(0x1dc)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports['CP_CONFIG_FILE']=a22_0x215a6b(0x1b3),exports['IAM_USER_NAME']=a22_0x215a6b(0x1fd),exports['DEFAULT_GRID_NAME']=a22_0x215a6b(0x1d5),exports[a22_0x215a6b(0x1b0)]=a22_0x215a6b(0x1f8),exports[a22_0x215a6b(0x203)]=a22_0x215a6b(0x1d9),exports[a22_0x215a6b(0x1d3)]=a22_0x215a6b(0x1dd),exports[a22_0x215a6b(0x19a)]='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']=a22_0x215a6b(0x1cf),exports[a22_0x215a6b(0x1e7)]='azure',exports[a22_0x215a6b(0x1d4)]=a22_0x215a6b(0x1cc),exports[a22_0x215a6b(0x1ca)]=[this[a22_0x215a6b(0x1b0)],this['AZURE'],this[a22_0x215a6b(0x1d4)]];const a22_0x2e5a96={};a22_0x2e5a96['Key']=a22_0x215a6b(0x204),a22_0x2e5a96[a22_0x215a6b(0x1ee)]=a22_0x215a6b(0x1de);const a22_0x32f089={};a22_0x32f089[a22_0x215a6b(0x1a7)]=a22_0x215a6b(0x1fc),a22_0x32f089[a22_0x215a6b(0x1ee)]=a22_0x215a6b(0x1be);const common_hst_tags_list=[a22_0x2e5a96,a22_0x32f089];if(process['env'][a22_0x215a6b(0x1c2)]){const parsedTags=process[a22_0x215a6b(0x1e2)][a22_0x215a6b(0x1c2)][a22_0x215a6b(0x1af)](',');parsedTags[a22_0x215a6b(0x1c1)](_0x315fae=>{const _0x2357b2=a22_0x215a6b,_0xe5b95d=_0x315fae['split'](':'),_0x13c55c={};_0x13c55c[_0x2357b2(0x1a7)]=_0xe5b95d[0x0],_0x13c55c['Value']=_0xe5b95d[0x1],common_hst_tags_list['push'](_0x13c55c);});}exports[a22_0x215a6b(0x1d1)]=common_hst_tags_list;const a22_0xf6f97d={};a22_0xf6f97d[a22_0x215a6b(0x204)]='BrowserStack',a22_0xf6f97d[a22_0x215a6b(0x1fc)]=a22_0x215a6b(0x1be),exports[a22_0x215a6b(0x1c8)]=a22_0xf6f97d,exports[a22_0x215a6b(0x1b4)]=[this[a22_0x215a6b(0x1b0)]];const a22_0x15546b={};a22_0x15546b['LOG']=a22_0x215a6b(0x1aa),a22_0x15546b['RESOURCES']='resourceInfo',a22_0x15546b[a22_0x215a6b(0x1e9)]=a22_0x215a6b(0x1a5),a22_0x15546b[a22_0x215a6b(0x1bb)]=a22_0x215a6b(0x1e3),a22_0x15546b['CLI_RUN_FINISHED']=a22_0x215a6b(0x19d),exports[a22_0x215a6b(0x198)]=a22_0x15546b,exports['global_registry']={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0xd4693e={};a22_0xd4693e[a22_0x215a6b(0x1fa)]=a22_0x215a6b(0x1ab)+this['LINK_MESSAGE'],a22_0xd4693e[a22_0x215a6b(0x1bd)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x215a6b(0x1b7)],a22_0xd4693e[a22_0x215a6b(0x1c0)]=a22_0x215a6b(0x1f4)+this[a22_0x215a6b(0x1b7)],a22_0xd4693e[a22_0x215a6b(0x1ed)]=a22_0x215a6b(0x1e0)+this[a22_0x215a6b(0x1b7)],a22_0xd4693e[a22_0x215a6b(0x1f0)]={},a22_0xd4693e[a22_0x215a6b(0x1ec)]=a22_0x215a6b(0x1ad)+this[a22_0x215a6b(0x1b7)],a22_0xd4693e[a22_0x215a6b(0x1da)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x215a6b(0x1b7)],a22_0xd4693e['start']=a22_0x215a6b(0x1ce)+this[a22_0x215a6b(0x1b7)],a22_0xd4693e[a22_0x215a6b(0x1db)]=a22_0x215a6b(0x19b)+this['LINK_MESSAGE'],a22_0xd4693e['pre_check']=a22_0x215a6b(0x1e6)+this[a22_0x215a6b(0x1b7)],a22_0xd4693e[a22_0x215a6b(0x1f0)]['root']=a22_0x215a6b(0x206)+this[a22_0x215a6b(0x1b7)],a22_0xd4693e[a22_0x215a6b(0x1f0)][a22_0x215a6b(0x1d0)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x215a6b(0x1b7)],a22_0xd4693e[a22_0x215a6b(0x1f0)][a22_0x215a6b(0x1e4)]=a22_0x215a6b(0x1a4)+this[a22_0x215a6b(0x1b7)],exports[a22_0x215a6b(0x1c7)]=a22_0xd4693e,exports['HELP_FOOTER_MESSAGE']=a22_0x215a6b(0x1a1);const a22_0x1b20ec={};function a22_0x1f23(){const _0x2cb766=['TURBOSCALE_CUSTOM_TAGS','api-devhst.bsstag.com','prod','MessageDescription','ERROR','HELP_HEADER_MESSAGE','HST_CLUSTER_TAGS','WS_ENDPOINT','ALL_SUPPORTED_CLOUD_PROVIDERS','INFO','gcp','error','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','browserstack-turboscale-grid','grid','COMMON_HST_TAGS','toLowerCase','CLUSTER_AUTOSCALER_STACK_NAME','GCP','high-scale-grid','CLOUD_PROVIDER','NULL','grid-api-preprod.bsstag.com','BSTACK-ATS-CLUSTER','connect','stop','AG_API_URL','BSTACK-ATS-CLUSTER-AUTOSCALER','BrowserStack','426NgBKxb','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BROWSERSTACK_ENV','env','cliRunStarted','gridProfile','warning','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','AZURE','grid-devhst.bsstag.com','GRID_URL','WARNING','7612190oqBUNY','delete','create','Value','info','list','api.browserstack.com','staging','UNKNOWN','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','stag','REDACTED','grid-api-devhst.bsstag.com','aws','62328jTJJcE','root','1231712hplWze','browserstack:service','BrowserStackIAMUser','grid.browserstack.com','1353StzCgG','us-east-1','[REDACTED]','grid-api.browserstack.com','CLUSTER_DEP_STACK_NAME','browserstack:managedBy','success','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','DASHBOARD_ENDPOINT','WS_EVENTS','RAW_ARGS_REGEX','CLUSTER_HUB_HA_STACK_NAME','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','unknown','cliRunFinished','REGION','CLI_ARGS_REGEX','config','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','high-scale-grid-cluster','302cSDwvT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','gridUrl','4642965bMNAJr','Key','preprod','grid-preprod.bsstag.com','log','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','grid-profile','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','8906rcauwv','split','AWS','pre-prod','api-preprod.bsstag.com','credentials','SUPPORTED_CLOUD_PROVIDERS','SUCCESS','6uAwbcJ','LINK_MESSAGE','19580mQCfAy','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLUSTER','CLI_RUN_STARTED','129822vfOSuv','init','BrowserStack-Automate-TurboScale','BS_API_URL','configure','forEach'];a22_0x1f23=function(){return _0x2cb766;};return a22_0x1f23();}a22_0x1b20ec[a22_0x215a6b(0x1b5)]=a22_0x215a6b(0x205),a22_0x1b20ec[a22_0x215a6b(0x1c6)]=a22_0x215a6b(0x1cd),a22_0x1b20ec[a22_0x215a6b(0x1cb)]=a22_0x215a6b(0x1ef),a22_0x1b20ec[a22_0x215a6b(0x1ea)]=a22_0x215a6b(0x1e5),a22_0x1b20ec[a22_0x215a6b(0x1f3)]=a22_0x215a6b(0x19c),a22_0x1b20ec[a22_0x215a6b(0x1d7)]=null,exports['messageTypes']=a22_0x1b20ec,exports[a22_0x215a6b(0x19f)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x215a6b(0x199)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x215a6b(0x1f6)]=a22_0x215a6b(0x201);const a22_0x326db3={};a22_0x326db3[a22_0x215a6b(0x1ac)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x2218e9={};a22_0x2218e9['pre-check']=a22_0x326db3,exports[a22_0x215a6b(0x1c5)]=a22_0x2218e9,exports['TRIAL_GRID_URL']=a22_0x215a6b(0x1b9);const a22_0xbac2bb={};a22_0xbac2bb[a22_0x215a6b(0x1ba)]=a22_0x215a6b(0x1a2),a22_0xbac2bb[a22_0x215a6b(0x1d6)]='aws',a22_0xbac2bb[a22_0x215a6b(0x19e)]=a22_0x215a6b(0x200),exports['DEFAULT_CLUSTER_DETAILS']=a22_0xbac2bb;
@@ -1 +1 @@
1
- const a23_0x393f50=a23_0x348e;(function(_0x3173fa,_0x471dd1){const _0x39a29e=a23_0x348e,_0x2f598a=_0x3173fa();while(!![]){try{const _0x465f9b=parseInt(_0x39a29e(0x1be))/0x1*(-parseInt(_0x39a29e(0x1bb))/0x2)+parseInt(_0x39a29e(0x1ba))/0x3+parseInt(_0x39a29e(0x1c8))/0x4*(-parseInt(_0x39a29e(0x1d0))/0x5)+parseInt(_0x39a29e(0x1c6))/0x6*(-parseInt(_0x39a29e(0x1cf))/0x7)+parseInt(_0x39a29e(0x1c7))/0x8+parseInt(_0x39a29e(0x1bf))/0x9+parseInt(_0x39a29e(0x1c9))/0xa*(parseInt(_0x39a29e(0x1d2))/0xb);if(_0x465f9b===_0x471dd1)break;else _0x2f598a['push'](_0x2f598a['shift']());}catch(_0x25ffab){_0x2f598a['push'](_0x2f598a['shift']());}}}(a23_0x1cf5,0x4b9b3));const winston=require('winston'),fs=require('fs'),path=require(a23_0x393f50(0x1d1)),logDir=a23_0x393f50(0x1c4);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x1ef649={};a23_0x1ef649['format']='YYYY-MM-DD\x20HH:mm:ss';function a23_0x1cf5(){const _0x3e3fbf=['1961240PrJAzp','44vbmYjq','890eHNIEl','message','File','fileLogger','name','events.log','364007mThYqU','15115RufROn','path','68123xQVBbI','printf','usage.log','timestamp','debug','287583RUrDJm','184518FOyANf','level','colorize','3IrkvIH','2695779PpAdbA','join','format','transports','createLogger','log','logger','66StHBjD'];a23_0x1cf5=function(){return _0x3e3fbf;};return a23_0x1cf5();}const a23_0x40f6b7={};a23_0x40f6b7['level']=!![];const a23_0x1f488f={};a23_0x1f488f[a23_0x393f50(0x1cd)]='console.info',exports[a23_0x393f50(0x1c5)]=new winston[(a23_0x393f50(0x1c3))]({'format':winston[a23_0x393f50(0x1c1)]['combine'](winston[a23_0x393f50(0x1c1)][a23_0x393f50(0x1b8)](a23_0x1ef649),winston['format'][a23_0x393f50(0x1bd)](a23_0x40f6b7),winston['format'][a23_0x393f50(0x1d3)](_0x13d442=>_0x13d442[a23_0x393f50(0x1b8)]+'\x20-\x20'+_0x13d442[a23_0x393f50(0x1bc)]+':\x20'+_0x13d442[a23_0x393f50(0x1ca)])),'transports':[new winston[(a23_0x393f50(0x1c2))]['Console'](a23_0x1f488f),new winston[(a23_0x393f50(0x1c2))][(a23_0x393f50(0x1cb))]({'filename':path['join'](logDir,a23_0x393f50(0x1ce)),'level':a23_0x393f50(0x1b9)})]});function a23_0x348e(_0x2a3057,_0x1ae47a){const _0x1cf5dc=a23_0x1cf5();return a23_0x348e=function(_0x348e94,_0x37e24f){_0x348e94=_0x348e94-0x1b7;let _0x3f1cb4=_0x1cf5dc[_0x348e94];return _0x3f1cb4;},a23_0x348e(_0x2a3057,_0x1ae47a);}const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x393f50(0x1cb))]({'filename':path[a23_0x393f50(0x1c0)](logDir,a23_0x393f50(0x1b7)),'level':a23_0x393f50(0x1b9)})]};exports[a23_0x393f50(0x1cc)]=new winston[(a23_0x393f50(0x1c3))](winstonFileLoggerParams);
1
+ const a23_0x480f49=a23_0x1cbf;(function(_0x41e2db,_0x2335ec){const _0x23ea1f=a23_0x1cbf,_0x46feee=_0x41e2db();while(!![]){try{const _0x8f9f69=parseInt(_0x23ea1f(0x7b))/0x1*(parseInt(_0x23ea1f(0x89))/0x2)+parseInt(_0x23ea1f(0x92))/0x3*(parseInt(_0x23ea1f(0x8c))/0x4)+parseInt(_0x23ea1f(0x96))/0x5*(-parseInt(_0x23ea1f(0x85))/0x6)+parseInt(_0x23ea1f(0x8e))/0x7*(parseInt(_0x23ea1f(0x82))/0x8)+parseInt(_0x23ea1f(0x8b))/0x9*(parseInt(_0x23ea1f(0x8f))/0xa)+parseInt(_0x23ea1f(0x8d))/0xb*(parseInt(_0x23ea1f(0x9b))/0xc)+parseInt(_0x23ea1f(0x9d))/0xd*(-parseInt(_0x23ea1f(0x88))/0xe);if(_0x8f9f69===_0x2335ec)break;else _0x46feee['push'](_0x46feee['shift']());}catch(_0x944bc3){_0x46feee['push'](_0x46feee['shift']());}}}(a23_0x5da3,0x5a1d1));function a23_0x5da3(){const _0x1c1e79=['84204BBEYxx','debug','transports','14uEeqJC','59174ZVgjLs','\x20-\x20','197658ZJzrzR','14348gfrTCU','3080198VIoegf','55699NCcgwJ','190vKvOid','message','join','219SrqSbF','winston','path','logger','205oUxlhf','log','colorize','Console','timestamp','24xPPUOh','events.log','15997423RegzHZ','fileLogger','printf','level','console.info','12XzWyEj','mkdirSync','File','name','existsSync','usage.log','format','584uzgWcD','combine','createLogger'];a23_0x5da3=function(){return _0x1c1e79;};return a23_0x5da3();}const winston=require(a23_0x480f49(0x93)),fs=require('fs'),path=require(a23_0x480f49(0x94)),logDir=a23_0x480f49(0x97);!fs[a23_0x480f49(0x7f)](logDir)&&fs[a23_0x480f49(0x7c)](logDir);const a23_0x5e0965={};a23_0x5e0965['format']='YYYY-MM-DD\x20HH:mm:ss';const a23_0x2515ef={};a23_0x2515ef[a23_0x480f49(0x79)]=!![];const a23_0x4cb033={};a23_0x4cb033[a23_0x480f49(0x7e)]=a23_0x480f49(0x7a),exports[a23_0x480f49(0x95)]=new winston[(a23_0x480f49(0x84))]({'format':winston['format'][a23_0x480f49(0x83)](winston[a23_0x480f49(0x81)][a23_0x480f49(0x9a)](a23_0x5e0965),winston['format'][a23_0x480f49(0x98)](a23_0x2515ef),winston['format'][a23_0x480f49(0x78)](_0x5bc0e7=>_0x5bc0e7['timestamp']+a23_0x480f49(0x8a)+_0x5bc0e7[a23_0x480f49(0x79)]+':\x20'+_0x5bc0e7[a23_0x480f49(0x90)])),'transports':[new winston[(a23_0x480f49(0x87))][(a23_0x480f49(0x99))](a23_0x4cb033),new winston['transports'][(a23_0x480f49(0x7d))]({'filename':path[a23_0x480f49(0x91)](logDir,a23_0x480f49(0x9c)),'level':a23_0x480f49(0x86)})]});function a23_0x1cbf(_0x4c1b5c,_0x423238){const _0x5da360=a23_0x5da3();return a23_0x1cbf=function(_0x1cbf1e,_0x44904f){_0x1cbf1e=_0x1cbf1e-0x77;let _0x103333=_0x5da360[_0x1cbf1e];return _0x103333;},a23_0x1cbf(_0x4c1b5c,_0x423238);}const winstonFileLoggerParams={'transports':[new winston[(a23_0x480f49(0x87))][(a23_0x480f49(0x7d))]({'filename':path[a23_0x480f49(0x91)](logDir,a23_0x480f49(0x80)),'level':a23_0x480f49(0x86)})]};exports[a23_0x480f49(0x77)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x241e(_0x30a03c,_0x3a99f8){const _0x1061fd=a24_0x1061();return a24_0x241e=function(_0x241ec4,_0x270863){_0x241ec4=_0x241ec4-0xc0;let _0xe959ec=_0x1061fd[_0x241ec4];return _0xe959ec;},a24_0x241e(_0x30a03c,_0x3a99f8);}const a24_0x135c79=a24_0x241e;function a24_0x1061(){const _0x2589b9=['8SsWTHS','root','nfaZS','usage','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports','155180jPpoMB','help','88786rFrVhL','4583760dwIKEo','env','177732ZaWdzA','159095rtZqJS','epilogue','LHDtP','commands','./config/constants','1723257RFRuue','demandCommand','33066nhwplv','105miOHpN','12sCJxbk'];a24_0x1061=function(){return _0x2589b9;};return a24_0x1061();}(function(_0x40db1b,_0x287be3){const _0x3c98cc=a24_0x241e,_0x155d2a=_0x40db1b();while(!![]){try{const _0x3c798f=-parseInt(_0x3c98cc(0xc9))/0x1+parseInt(_0x3c98cc(0xc5))/0x2+-parseInt(_0x3c98cc(0xc8))/0x3+parseInt(_0x3c98cc(0xd2))/0x4*(parseInt(_0x3c98cc(0xc3))/0x5)+-parseInt(_0x3c98cc(0xd0))/0x6*(parseInt(_0x3c98cc(0xd1))/0x7)+parseInt(_0x3c98cc(0xd3))/0x8*(-parseInt(_0x3c98cc(0xce))/0x9)+parseInt(_0x3c98cc(0xc6))/0xa;if(_0x3c798f===_0x287be3)break;else _0x155d2a['push'](_0x155d2a['shift']());}catch(_0x1dbe94){_0x155d2a['push'](_0x155d2a['shift']());}}}(a24_0x1061,0x193e8));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x135c79(0xcd));process[a24_0x135c79(0xc7)][a24_0x135c79(0xc1)]=0x1;function run(_0x3775bc){const _0x3f4fdc=a24_0x135c79,_0x431f83={};_0x431f83[_0x3f4fdc(0xd5)]=_0x3f4fdc(0xcc),_0x431f83[_0x3f4fdc(0xcb)]=_0x3f4fdc(0xc4);const _0x5a1b10=_0x431f83;_0x3775bc[_0x3f4fdc(0xc0)](HELP_HEADER_MESSAGE[_0x3f4fdc(0xd4)])['commandDir'](_0x5a1b10[_0x3f4fdc(0xd5)])[_0x3f4fdc(0xcf)]()[_0x3f4fdc(0xc4)](_0x5a1b10[_0x3f4fdc(0xcb)])[_0x3f4fdc(0xca)](HELP_FOOTER_MESSAGE);}module[a24_0x135c79(0xc2)]=run;
2
+ 'use strict';const a24_0x2d3ae5=a24_0x362d;function a24_0x1887(){const _0x302cb3=['99tnnBEz','8PBRXbn','617915jQrPEq','usage','fQSki','help','root','3608ElUTzh','11568kApvFf','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','168532qhJUGg','commands','9490AjttwW','117840oGtZUS','epilogue','12cgwkSd','commandDir','sMzqw','6258NfUGnz','605988nxruWB','demandCommand','./config/constants'];a24_0x1887=function(){return _0x302cb3;};return a24_0x1887();}(function(_0x3eda62,_0x2068c4){const _0x4c174c=a24_0x362d,_0x5dc38b=_0x3eda62();while(!![]){try{const _0x112c10=parseInt(_0x4c174c(0x1f5))/0x1+-parseInt(_0x4c174c(0x1f3))/0x2*(parseInt(_0x4c174c(0x1eb))/0x3)+-parseInt(_0x4c174c(0x1ec))/0x4*(parseInt(_0x4c174c(0x1ed))/0x5)+-parseInt(_0x4c174c(0x1fa))/0x6*(-parseInt(_0x4c174c(0x1fd))/0x7)+parseInt(_0x4c174c(0x1f8))/0x8+parseInt(_0x4c174c(0x1fe))/0x9+parseInt(_0x4c174c(0x1f7))/0xa*(parseInt(_0x4c174c(0x1f2))/0xb);if(_0x112c10===_0x2068c4)break;else _0x5dc38b['push'](_0x5dc38b['shift']());}catch(_0x54512d){_0x5dc38b['push'](_0x5dc38b['shift']());}}}(a24_0x1887,0x1eab0));function a24_0x362d(_0x40c05e,_0xf82ad8){const _0x18870d=a24_0x1887();return a24_0x362d=function(_0x362d6b,_0x39bccc){_0x362d6b=_0x362d6b-0x1ea;let _0x4e4438=_0x18870d[_0x362d6b];return _0x4e4438;},a24_0x362d(_0x40c05e,_0xf82ad8);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2d3ae5(0x1ea));process['env'][a24_0x2d3ae5(0x1f4)]=0x1;function run(_0x409916){const _0x2bd5cf=a24_0x2d3ae5,_0x22d7d6={};_0x22d7d6['sMzqw']=_0x2bd5cf(0x1f6),_0x22d7d6[_0x2bd5cf(0x1ef)]=_0x2bd5cf(0x1f0);const _0x186d19=_0x22d7d6;_0x409916[_0x2bd5cf(0x1ee)](HELP_HEADER_MESSAGE[_0x2bd5cf(0x1f1)])[_0x2bd5cf(0x1fb)](_0x186d19[_0x2bd5cf(0x1fc)])[_0x2bd5cf(0x1ff)]()[_0x2bd5cf(0x1f0)](_0x186d19['fQSki'])[_0x2bd5cf(0x1f9)](HELP_FOOTER_MESSAGE);}module['exports']=run;