browserstack-node-sdk 1.66.0 → 1.66.1

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 (220) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/detox/a11ySetup.js +1 -1
  53. package/src/bin/detox/command.js +1 -1
  54. package/src/bin/detox/modifyDetoxConf.js +1 -1
  55. package/src/bin/detox/traEmitter.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/node-generic/client.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/reporterArgs.js +1 -1
  101. package/src/bin/playwright/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/patches.js +1 -1
  103. package/src/bin/puppeteer/sessionDetails.js +1 -1
  104. package/src/bin/puppeteer/test.setup.js +1 -1
  105. package/src/bin/runner.js +1 -1
  106. package/src/bin/setup.js +1 -1
  107. package/src/bin/test-runner/index.js +1 -1
  108. package/src/bin/test-runner/runTest.js +1 -1
  109. package/src/bin/test-runner/testWorker.js +1 -1
  110. package/src/bin/testcafe/a11y-runner.js +1 -1
  111. package/src/bin/testcafe/command.js +1 -1
  112. package/src/bin/testcafe/reporter/index.js +1 -1
  113. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  114. package/src/bin/testcafe/session-registry.js +1 -1
  115. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  116. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  117. package/src/bin/testcafe/w3c-driver.js +1 -1
  118. package/src/bin/utils/apiUtilityMethods.js +1 -1
  119. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  120. package/src/bin/utils/constants.js +1 -1
  121. package/src/bin/utils/log4jsAppender.js +1 -1
  122. package/src/bin/utils/logPatcher.js +1 -1
  123. package/src/bin/utils/logReportingAPI.js +1 -1
  124. package/src/bin/utils/playwright-patcher.js +1 -1
  125. package/src/bin/utils/puppeteer-patcher.js +1 -1
  126. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  127. package/src/bin/utils/sharedUtils.js +1 -1
  128. package/src/bin/v2/TestInfo.js +1 -1
  129. package/src/bin/v2/browserstackCLI.js +1 -1
  130. package/src/bin/v2/cliUtils.js +1 -1
  131. package/src/bin/v2/customTagManager.js +1 -1
  132. package/src/bin/v2/eventDispatcher.js +1 -1
  133. package/src/bin/v2/framework/automationFramework.js +1 -1
  134. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  137. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  138. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  139. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  140. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  142. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  143. package/src/bin/v2/framework/testFramework.js +1 -1
  144. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  146. package/src/bin/v2/grpcClient.js +1 -1
  147. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  148. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  149. package/src/bin/v2/instances/trackedContext.js +1 -1
  150. package/src/bin/v2/instances/trackedInstance.js +1 -1
  151. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  152. package/src/bin/v2/modules/baseModule.js +1 -1
  153. package/src/bin/v2/modules/loadTestModule.js +1 -1
  154. package/src/bin/v2/modules/observabilityModule.js +1 -1
  155. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  156. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  157. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  158. package/src/bin/v2/modules/testhubModule.js +1 -1
  159. package/src/bin/v2/sdkErrorHandler.js +1 -1
  160. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  161. package/src/bin/v2/state/hookState.js +1 -1
  162. package/src/bin/v2/state/testFrameworkState.js +1 -1
  163. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  164. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  165. package/src/bin/v2/utils/jest-utils.js +1 -1
  166. package/src/bin/vanilla-js/command.js +1 -1
  167. package/src/browserStackSdk.js +1 -1
  168. package/src/helpers/BrowserStackSetup.js +1 -1
  169. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  170. package/src/helpers/accessibility-automation/constants.js +1 -1
  171. package/src/helpers/accessibility-automation/helper.js +1 -1
  172. package/src/helpers/accessibility-automation/scripts.js +1 -1
  173. package/src/helpers/ats/constants.js +1 -1
  174. package/src/helpers/ats/helper.js +1 -1
  175. package/src/helpers/caCertHelper.js +1 -1
  176. package/src/helpers/capsMapping.js +1 -1
  177. package/src/helpers/central-scanner/constants.js +1 -1
  178. package/src/helpers/central-scanner/helpers.js +1 -1
  179. package/src/helpers/classLogger.js +1 -1
  180. package/src/helpers/driverInitErrorReporter.js +1 -1
  181. package/src/helpers/globals.js +1 -1
  182. package/src/helpers/helper.js +1 -1
  183. package/src/helpers/logger.js +1 -1
  184. package/src/helpers/metadata.js +1 -1
  185. package/src/helpers/patchHelper.js +1 -1
  186. package/src/helpers/patchHelpers.js +1 -1
  187. package/src/helpers/percy/Percy.js +1 -1
  188. package/src/helpers/percy/PercyBinary.js +1 -1
  189. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  190. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  191. package/src/helpers/percy/PercySDK.js +1 -1
  192. package/src/helpers/percy/index.js +1 -1
  193. package/src/helpers/percy/utils.js +1 -1
  194. package/src/helpers/performance/constants.js +1 -1
  195. package/src/helpers/performance/performance-tester.js +1 -1
  196. package/src/helpers/playwright-helper.js +1 -1
  197. package/src/helpers/processHelper.js +1 -1
  198. package/src/helpers/puppeteer-helper.js +1 -1
  199. package/src/helpers/request-spy.js +1 -1
  200. package/src/helpers/setKeepAlive.js +1 -1
  201. package/src/helpers/stackFrameUtils.js +1 -1
  202. package/src/helpers/test-observability/constants.js +1 -1
  203. package/src/helpers/test-observability/error-handler.js +1 -1
  204. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  205. package/src/helpers/test-observability/sessionHandler.js +1 -1
  206. package/src/helpers/test-observability/utils.js +1 -1
  207. package/src/helpers/test-orchestration/constants.js +1 -1
  208. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  209. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  210. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  211. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  212. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  213. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  214. package/src/helpers/testhub/constants.js +1 -1
  215. package/src/helpers/testhub/testhubHandler.js +1 -1
  216. package/src/helpers/testhub/utils.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x74cf(){const _0x5a7b42=['JuVRr','14634lcesUJ','stringify','init-not-called','1217839LXATUF','handler','password','LtMzX','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','ncepW','mFnBE','IKcAz','unauthorised','bpUYx','unknown-error','clusterName','GET','rBnLb','12635622Mtjjng','help','uuid','lulYJ','list','status','type','6454CAUGmw','requestId','8679016QPCpiZ','epilogue','wOTKl','668aroJIC','30qFkOTL','biSdp','4966625tLppHG','exit','builder','https://','list-grids-called','log','grid-id','flmcT','grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','server-error','UkGkH','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','dGQph','SdWcy','UAvza','name','ZbscA','error','bstackAccesskey','ERROR','/packages/cli/get-all-grids','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','command','uPnXc','table','queued','got','bstackUsername','INFO','3667800peOhCN','mCobf','grid-name','boolean','QELEM','usage','xvQMk','FNmAo','push','ThHkH','parse','LTzkK','EmiIT','zKkxu','running','Browserstack','username','EWvLL','313NUagGu','all-grids','../../utils/utilityMethods'];a15_0x74cf=function(){return _0x5a7b42;};return a15_0x74cf();}function a15_0x3fd5(_0x719552,_0x5db3b2){const _0x74cf44=a15_0x74cf();return a15_0x3fd5=function(_0x3fd530,_0x22a6ea){_0x3fd530=_0x3fd530-0x1ed;let _0x41f213=_0x74cf44[_0x3fd530];return _0x41f213;},a15_0x3fd5(_0x719552,_0x5db3b2);}const a15_0x5c311b=a15_0x3fd5;(function(_0x1ffdf5,_0x14a742){const _0x202d39=a15_0x3fd5,_0x5f381c=_0x1ffdf5();while(!![]){try{const _0x2d299f=-parseInt(_0x202d39(0x23f))/0x1*(parseInt(_0x202d39(0x207))/0x2)+-parseInt(_0x202d39(0x1ef))/0x3*(parseInt(_0x202d39(0x20c))/0x4)+parseInt(_0x202d39(0x20f))/0x5+parseInt(_0x202d39(0x20d))/0x6*(parseInt(_0x202d39(0x1f2))/0x7)+-parseInt(_0x202d39(0x209))/0x8+parseInt(_0x202d39(0x200))/0x9+parseInt(_0x202d39(0x22d))/0xa;if(_0x2d299f===_0x14a742)break;else _0x5f381c['push'](_0x5f381c['shift']());}catch(_0x2053d9){_0x5f381c['push'](_0x5f381c['shift']());}}}(a15_0x74cf,0xb0daa));const fs=require('fs'),got=require(a15_0x5c311b(0x22a)),{table}=require(a15_0x5c311b(0x228)),{v4:uuidv4}=require(a15_0x5c311b(0x202)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x5c311b(0x1ed)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x5c311b(0x226)]=a15_0x5c311b(0x217),exports['desc']=a15_0x5c311b(0x1f6),exports[a15_0x5c311b(0x211)]=function(_0x596fce){const _0x565d87=a15_0x5c311b,_0xaedd3b={};_0xaedd3b[_0x565d87(0x203)]=_0x565d87(0x21b),_0xaedd3b[_0x565d87(0x20b)]=_0x565d87(0x230),_0xaedd3b[_0x565d87(0x233)]=_0x565d87(0x201);const _0x35a4d2=_0xaedd3b,_0x319ff2={};_0x319ff2['description']=_0x35a4d2[_0x565d87(0x203)],_0x319ff2[_0x565d87(0x206)]=_0x35a4d2[_0x565d87(0x20b)];const _0x1e10ef={};return _0x1e10ef[_0x565d87(0x240)]=_0x319ff2,_0x596fce[_0x565d87(0x232)](HELP_HEADER_MESSAGE[_0x565d87(0x204)]['grid'])[_0x565d87(0x20a)](HELP_FOOTER_MESSAGE)['options'](_0x1e10ef)[_0x565d87(0x201)](_0x35a4d2[_0x565d87(0x233)])['argv'];},exports[a15_0x5c311b(0x1f3)]=async function(_0x1f9a27){const _0x143786=a15_0x5c311b,_0x454db2={'UAvza':function(_0xaf43b0){return _0xaf43b0();},'DPFTL':function(_0x122128){return _0x122128();},'EWvLL':_0x143786(0x225),'bpUYx':function(_0x36a0cc,_0xda380,_0x1cbb31,_0x2d9d44,_0x16658c,_0x2cd450,_0x1e9218){return _0x36a0cc(_0xda380,_0x1cbb31,_0x2d9d44,_0x16658c,_0x2cd450,_0x1e9218);},'ThHkH':_0x143786(0x213),'IKcAz':_0x143786(0x1f1),'ZbscA':function(_0x9b008d){return _0x9b008d();},'SdWcy':_0x143786(0x1fe),'JuVRr':function(_0x2cbec6,_0x5be1ca,_0x26b00c){return _0x2cbec6(_0x5be1ca,_0x26b00c);},'ncepW':function(_0x5d97c5,_0x3d627e){return _0x5d97c5!==_0x3d627e;},'FNmAo':function(_0x934976,_0x23023c){return _0x934976!==_0x23023c;},'rBnLb':function(_0x168b0e,_0x30fbcf){return _0x168b0e===_0x30fbcf;},'LtMzX':'\x0aFound\x20the\x20following\x20grids:\x0a','mFnBE':_0x143786(0x215),'dGQph':_0x143786(0x22f),'ZEFmi':_0x143786(0x205),'HaQUz':_0x143786(0x23b),'McNLB':_0x143786(0x229),'LTzkK':'cluster-name','flmcT':function(_0x549018,_0x1ce00b){return _0x549018(_0x1ce00b);},'UkGkH':function(_0x310ffd,_0x342d2b){return _0x310ffd===_0x342d2b;},'EmiIT':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','zKkxu':function(_0x47163e,_0x13a5e2,_0xeda755,_0x3d12b8,_0x35887a,_0x3133b4,_0x478e2d){return _0x47163e(_0x13a5e2,_0xeda755,_0x3d12b8,_0x35887a,_0x3133b4,_0x478e2d);},'QELEM':_0x143786(0x1fa),'mCobf':function(_0x1c927b,_0x5831ce,_0x4a7e80,_0x3a1054,_0x3b0846,_0x21f423,_0xf6a54e){return _0x1c927b(_0x5831ce,_0x4a7e80,_0x3a1054,_0x3b0846,_0x21f423,_0xf6a54e);},'biSdp':_0x143786(0x219),'uPnXc':_0x143786(0x1fc)};try{global_registry[_0x143786(0x208)]=_0x454db2[_0x143786(0x21e)](uuidv4);!fs['existsSync'](_0x454db2['DPFTL'](getCredentialsPath))&&(console['error'](_0x454db2[_0x143786(0x23e)]),await _0x454db2[_0x143786(0x1fb)](sendInstrumentationEvent,_0x1f9a27,_0x454db2[_0x143786(0x236)],messageTypes[_0x143786(0x223)],_0x454db2[_0x143786(0x1f9)],null,_0x1f9a27),process['exit'](0x1));const _0x2c5f85=JSON['parse'](fs['readFileSync'](_0x454db2[_0x143786(0x220)](getCredentialsPath)));let _0x2815a0='https://'+AG_API_URL+'/packages/cli/get-grids';_0x1f9a27['allGrids']&&(_0x2815a0=_0x143786(0x212)+AG_API_URL+_0x143786(0x224));const _0x440b99={'method':_0x454db2[_0x143786(0x21d)],'headers':_0x454db2[_0x143786(0x1ee)](getAuthHeader,_0x2c5f85[_0x143786(0x23c)][_0x143786(0x23d)],_0x2c5f85[_0x143786(0x23c)][_0x143786(0x1f4)]),'throwHttpErrors':![]};global_registry[_0x143786(0x22b)]=_0x2c5f85['Browserstack'][_0x143786(0x23d)],global_registry[_0x143786(0x222)]=_0x2c5f85[_0x143786(0x23c)][_0x143786(0x1f4)],_0x454db2[_0x143786(0x1fb)](sendInstrumentationEvent,_0x1f9a27,_0x454db2['ThHkH'],messageTypes[_0x143786(0x22c)],null,null,_0x1f9a27);const _0x36b578=await _0x454db2[_0x143786(0x1ee)](got,_0x2815a0,_0x440b99);if(_0x454db2[_0x143786(0x1f7)](_0x36b578,null)&&_0x454db2[_0x143786(0x234)](_0x36b578,undefined)&&_0x454db2[_0x143786(0x1ff)](_0x36b578['statusCode'],0xc8)){const _0x47511a=JSON[_0x143786(0x237)](_0x36b578['body']);console[_0x143786(0x214)](_0x454db2[_0x143786(0x1f5)]);const _0x487c00=[];_0x487c00[_0x143786(0x235)]([_0x454db2[_0x143786(0x1f8)],_0x454db2[_0x143786(0x21c)],_0x454db2['ZEFmi'],_0x454db2['HaQUz'],_0x454db2['McNLB'],_0x454db2[_0x143786(0x238)]]),_0x47511a['forEach'](_0x11a25d=>{const _0x53035f=_0x143786;_0x487c00[_0x53035f(0x235)]([_0x11a25d['id'],_0x11a25d[_0x53035f(0x21f)],_0x11a25d[_0x53035f(0x205)],_0x11a25d[_0x53035f(0x23b)],_0x11a25d[_0x53035f(0x229)],_0x11a25d[_0x53035f(0x1fd)]]);}),console[_0x143786(0x214)](_0x454db2[_0x143786(0x216)](table,_0x487c00)),process[_0x143786(0x210)](0x0);}_0x454db2[_0x143786(0x21a)](_0x36b578['statusCode'],0x191)&&(console[_0x143786(0x221)](_0x454db2[_0x143786(0x239)]),await _0x454db2[_0x143786(0x23a)](sendInstrumentationEvent,_0x1f9a27,_0x454db2[_0x143786(0x236)],messageTypes[_0x143786(0x223)],_0x454db2[_0x143786(0x231)],null,_0x1f9a27),process[_0x143786(0x210)](0x1)),console[_0x143786(0x221)](_0x143786(0x218)+JSON[_0x143786(0x1f0)](_0x36b578)),await _0x454db2[_0x143786(0x22e)](sendInstrumentationEvent,_0x1f9a27,_0x454db2[_0x143786(0x236)],messageTypes[_0x143786(0x223)],_0x454db2[_0x143786(0x20e)],_0x36b578,_0x1f9a27),process[_0x143786(0x210)](0x1);}catch(_0x120aaa){console[_0x143786(0x221)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x120aaa['stack']),await _0x454db2['zKkxu'](sendInstrumentationEvent,_0x1f9a27,_0x454db2[_0x143786(0x236)],messageTypes['ERROR'],_0x454db2[_0x143786(0x227)],_0x120aaa,_0x1f9a27),process[_0x143786(0x210)](0x1);}};
1
+ const a15_0xe158b6=a15_0x39d8;function a15_0x2f67(){const _0x1c3941=['INFO','server-error','username','asUPF','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','https://','\x0aFound\x20the\x20following\x20grids:\x0a','running','list','21IrVRNl','password','kiUjK','658322cFkQLr','QvhqR','command','help','ERROR','gZOeZ','parse','rSuNN','LjFxv','BodjT','desc','requestId','table','type','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','sjIFW','name','uuid','onIay','readFileSync','bstackAccesskey','EiSPL','oyviJ','YtEdy','3042710yoiDwO','../../utils/instrumentationUtils','dqttM','BuiHx','jTODv','4205264oBRhKv','clusterName','haCtn','allGrids','exit','lFXYO','usage','argv','forEach','boolean','queued','grid-name','bstackUsername','options','../../utils/utilityMethods','JuEiz','DmvAt','48JaCUxv','builder','push','grid','AriKB','265109tPIybL','VuUhc','statusCode','GET','12249252SEPQve','1014212rQykZh','woaTC','error','SwEmI','PmeaP','../../config/constants','grid-id','log','status','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','80108nseEUQ','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','got','Mtzmq','existsSync','unauthorised'];a15_0x2f67=function(){return _0x1c3941;};return a15_0x2f67();}(function(_0xa992c1,_0x2500ec){const _0x24dd82=a15_0x39d8,_0x548923=_0xa992c1();while(!![]){try{const _0x5e4968=parseInt(_0x24dd82(0xd8))/0x1+parseInt(_0x24dd82(0x88))/0x2+-parseInt(_0x24dd82(0xa2))/0x3*(-parseInt(_0x24dd82(0x92))/0x4)+parseInt(_0x24dd82(0xbd))/0x5+parseInt(_0x24dd82(0xd3))/0x6*(parseInt(_0x24dd82(0xa5))/0x7)+-parseInt(_0x24dd82(0xc2))/0x8+-parseInt(_0x24dd82(0xdc))/0x9;if(_0x5e4968===_0x2500ec)break;else _0x548923['push'](_0x548923['shift']());}catch(_0x1abd6b){_0x548923['push'](_0x548923['shift']());}}}(a15_0x2f67,0x5e644));function a15_0x39d8(_0x30217e,_0x458c20){const _0x2f6752=a15_0x2f67();return a15_0x39d8=function(_0x39d8c6,_0x608771){_0x39d8c6=_0x39d8c6-0x88;let _0x3203b7=_0x2f6752[_0x39d8c6];return _0x3203b7;},a15_0x39d8(_0x30217e,_0x458c20);}const fs=require('fs'),got=require(a15_0xe158b6(0x95)),{table}=require(a15_0xe158b6(0xb1)),{v4:uuidv4}=require(a15_0xe158b6(0xb6)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xe158b6(0x8d)),{getCredentialsPath,getAuthHeader}=require(a15_0xe158b6(0xd0)),{sendInstrumentationEvent}=require(a15_0xe158b6(0xbe));exports[a15_0xe158b6(0xa7)]='grids',exports[a15_0xe158b6(0xaf)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0xe158b6(0xd4)]=function(_0x46539b){const _0x58d65d=a15_0xe158b6,_0x3a8178={};_0x3a8178[_0x58d65d(0xbb)]=_0x58d65d(0xb3),_0x3a8178['jTODv']=_0x58d65d(0xcb),_0x3a8178[_0x58d65d(0xd7)]=_0x58d65d(0xa8);const _0xc2f746=_0x3a8178,_0x8fa324={};_0x8fa324['description']=_0xc2f746[_0x58d65d(0xbb)],_0x8fa324[_0x58d65d(0xb2)]=_0xc2f746[_0x58d65d(0xc1)];const _0x1bbdbc={};return _0x1bbdbc['all-grids']=_0x8fa324,_0x46539b[_0x58d65d(0xc8)](HELP_HEADER_MESSAGE[_0x58d65d(0xa1)][_0x58d65d(0xd6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x58d65d(0xcf)](_0x1bbdbc)[_0x58d65d(0xa8)](_0xc2f746['AriKB'])[_0x58d65d(0xc9)];},exports['handler']=async function(_0x2681c0){const _0x3e9a89=a15_0xe158b6,_0x24edcb={'onIay':function(_0x490507){return _0x490507();},'QvhqR':_0x3e9a89(0x91),'haCtn':function(_0x465b8f,_0xfe1dbf,_0x97d1a,_0x35bc45,_0x160fad,_0x1941aa,_0x54a890){return _0x465b8f(_0xfe1dbf,_0x97d1a,_0x35bc45,_0x160fad,_0x1941aa,_0x54a890);},'sjIFW':'list-grids-called','wxDyK':'init-not-called','SwEmI':function(_0x2e6cd7){return _0x2e6cd7();},'zxBRQ':_0x3e9a89(0xdb),'VuUhc':function(_0x2b0b24,_0x3cdf4a,_0x524d04){return _0x2b0b24(_0x3cdf4a,_0x524d04);},'BuiHx':function(_0x33304d,_0x464ef1,_0x1c9a61,_0x36ea4a,_0x2f8782,_0x3c49ab,_0x4202cb){return _0x33304d(_0x464ef1,_0x1c9a61,_0x36ea4a,_0x2f8782,_0x3c49ab,_0x4202cb);},'woaTC':function(_0x2f6e2d,_0x2c5aa1){return _0x2f6e2d!==_0x2c5aa1;},'LjFxv':function(_0x1ae6a5,_0x482541){return _0x1ae6a5!==_0x482541;},'asUPF':function(_0x240fa1,_0x2d3272){return _0x240fa1===_0x2d3272;},'kiUjK':_0x3e9a89(0x9f),'YtEdy':_0x3e9a89(0x8e),'JuEiz':_0x3e9a89(0xcd),'EiSPL':_0x3e9a89(0x90),'niHeG':_0x3e9a89(0xa0),'BodjT':_0x3e9a89(0xcc),'Mtzmq':'cluster-name','gZOeZ':function(_0x16a5d8,_0x15be10){return _0x16a5d8(_0x15be10);},'PmeaP':_0x3e9a89(0x94),'DmvAt':function(_0x19d317,_0x4f02dd,_0x261679,_0x41bba4,_0x17fd4b,_0x7261f3,_0x1cba28){return _0x19d317(_0x4f02dd,_0x261679,_0x41bba4,_0x17fd4b,_0x7261f3,_0x1cba28);},'rSuNN':_0x3e9a89(0x98),'lFXYO':_0x3e9a89(0x9a),'nkuqb':function(_0x24bfe6,_0xe23d28,_0x2ef79d,_0x1119c6,_0x392217,_0x14b35e,_0xcb68e3){return _0x24bfe6(_0xe23d28,_0x2ef79d,_0x1119c6,_0x392217,_0x14b35e,_0xcb68e3);},'dqttM':'unknown-error'};try{global_registry[_0x3e9a89(0xb0)]=_0x24edcb['onIay'](uuidv4);!fs[_0x3e9a89(0x97)](_0x24edcb[_0x3e9a89(0xb7)](getCredentialsPath))&&(console[_0x3e9a89(0x8a)](_0x24edcb[_0x3e9a89(0xa6)]),await _0x24edcb[_0x3e9a89(0xc4)](sendInstrumentationEvent,_0x2681c0,_0x24edcb['sjIFW'],messageTypes[_0x3e9a89(0xa9)],_0x24edcb['wxDyK'],null,_0x2681c0),process[_0x3e9a89(0xc6)](0x1));const _0x40e4f6=JSON[_0x3e9a89(0xab)](fs[_0x3e9a89(0xb8)](_0x24edcb[_0x3e9a89(0x8b)](getCredentialsPath)));let _0x1856e9=_0x3e9a89(0x9e)+AG_API_URL+'/packages/cli/get-grids';_0x2681c0[_0x3e9a89(0xc5)]&&(_0x1856e9=_0x3e9a89(0x9e)+AG_API_URL+'/packages/cli/get-all-grids');const _0x91ec11={'method':_0x24edcb['zxBRQ'],'headers':_0x24edcb['VuUhc'](getAuthHeader,_0x40e4f6[_0x3e9a89(0x93)][_0x3e9a89(0x9b)],_0x40e4f6[_0x3e9a89(0x93)][_0x3e9a89(0xa3)]),'throwHttpErrors':![]};global_registry[_0x3e9a89(0xce)]=_0x40e4f6[_0x3e9a89(0x93)][_0x3e9a89(0x9b)],global_registry[_0x3e9a89(0xb9)]=_0x40e4f6['Browserstack']['password'],_0x24edcb[_0x3e9a89(0xc0)](sendInstrumentationEvent,_0x2681c0,_0x24edcb['sjIFW'],messageTypes[_0x3e9a89(0x99)],null,null,_0x2681c0);const _0x538670=await _0x24edcb[_0x3e9a89(0xd9)](got,_0x1856e9,_0x91ec11);if(_0x24edcb[_0x3e9a89(0x89)](_0x538670,null)&&_0x24edcb[_0x3e9a89(0xad)](_0x538670,undefined)&&_0x24edcb[_0x3e9a89(0x9c)](_0x538670['statusCode'],0xc8)){const _0x7ee546=JSON['parse'](_0x538670['body']);console[_0x3e9a89(0x8f)](_0x24edcb[_0x3e9a89(0xa4)]);const _0x2f9eb3=[];_0x2f9eb3[_0x3e9a89(0xd5)]([_0x24edcb[_0x3e9a89(0xbc)],_0x24edcb[_0x3e9a89(0xd1)],_0x24edcb[_0x3e9a89(0xba)],_0x24edcb['niHeG'],_0x24edcb[_0x3e9a89(0xae)],_0x24edcb[_0x3e9a89(0x96)]]),_0x7ee546[_0x3e9a89(0xca)](_0x3f91b9=>{const _0x31167a=_0x3e9a89;_0x2f9eb3[_0x31167a(0xd5)]([_0x3f91b9['id'],_0x3f91b9[_0x31167a(0xb5)],_0x3f91b9['status'],_0x3f91b9[_0x31167a(0xa0)],_0x3f91b9['queued'],_0x3f91b9[_0x31167a(0xc3)]]);}),console[_0x3e9a89(0x8f)](_0x24edcb[_0x3e9a89(0xaa)](table,_0x2f9eb3)),process['exit'](0x0);}_0x24edcb[_0x3e9a89(0x9c)](_0x538670[_0x3e9a89(0xda)],0x191)&&(console[_0x3e9a89(0x8a)](_0x24edcb[_0x3e9a89(0x8c)]),await _0x24edcb[_0x3e9a89(0xd2)](sendInstrumentationEvent,_0x2681c0,_0x24edcb[_0x3e9a89(0xb4)],messageTypes['ERROR'],_0x24edcb[_0x3e9a89(0xac)],null,_0x2681c0),process[_0x3e9a89(0xc6)](0x1)),console[_0x3e9a89(0x8a)](_0x3e9a89(0x9d)+JSON['stringify'](_0x538670)),await _0x24edcb['BuiHx'](sendInstrumentationEvent,_0x2681c0,_0x24edcb['sjIFW'],messageTypes[_0x3e9a89(0xa9)],_0x24edcb[_0x3e9a89(0xc7)],_0x538670,_0x2681c0),process[_0x3e9a89(0xc6)](0x1);}catch(_0x192547){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x192547['stack']),await _0x24edcb['nkuqb'](sendInstrumentationEvent,_0x2681c0,_0x24edcb['sjIFW'],messageTypes[_0x3e9a89(0xa9)],_0x24edcb[_0x3e9a89(0xbf)],_0x192547,_0x2681c0),process[_0x3e9a89(0xc6)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x1d62(){const _0x333c93=['2UMhxTN','usage','commandDir','strict','UppvH','help','command','builder','2724831GGJwYg','6755888kryVFP','599540BxJCzy','3335hvGTIl','epilogue','634030YvFofF','pre-check','../config/constants','497903ugaQyU','demandCommand','12BiuwFF','handler','afNXA','1953495aIatby','8328iWPYHG'];a16_0x1d62=function(){return _0x333c93;};return a16_0x1d62();}const a16_0x6f9d14=a16_0x139c;(function(_0x8be500,_0x1d0133){const _0x1fbb46=a16_0x139c,_0x9c11b6=_0x8be500();while(!![]){try{const _0x30fa5b=-parseInt(_0x1fbb46(0x1c1))/0x1+parseInt(_0x1fbb46(0x1b4))/0x2*(parseInt(_0x1fbb46(0x1bc))/0x3)+-parseInt(_0x1fbb46(0x1b3))/0x4*(-parseInt(_0x1fbb46(0x1bf))/0x5)+-parseInt(_0x1fbb46(0x1c6))/0x6*(parseInt(_0x1fbb46(0x1c4))/0x7)+-parseInt(_0x1fbb46(0x1bd))/0x8+parseInt(_0x1fbb46(0x1b2))/0x9+parseInt(_0x1fbb46(0x1be))/0xa;if(_0x30fa5b===_0x1d0133)break;else _0x9c11b6['push'](_0x9c11b6['shift']());}catch(_0x5a7268){_0x9c11b6['push'](_0x9c11b6['shift']());}}}(a16_0x1d62,0xe8b76));function a16_0x139c(_0x535914,_0x58915f){const _0x1d628a=a16_0x1d62();return a16_0x139c=function(_0x139c47,_0x2d82d6){_0x139c47=_0x139c47-0x1b2;let _0x364db4=_0x1d628a[_0x139c47];return _0x364db4;},a16_0x139c(_0x535914,_0x58915f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x6f9d14(0x1c3));exports[a16_0x6f9d14(0x1ba)]=a16_0x6f9d14(0x1c2),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x6f9d14(0x1bb)]=function(_0x133615){const _0x2bf556=a16_0x6f9d14,_0x5a209f={};_0x5a209f[_0x2bf556(0x1c8)]='precheck_commands',_0x5a209f[_0x2bf556(0x1b8)]=_0x2bf556(0x1b9);const _0x5562a0=_0x5a209f;return _0x133615[_0x2bf556(0x1b5)](HELP_HEADER_MESSAGE['pre_check'])[_0x2bf556(0x1c0)](HELP_FOOTER_MESSAGE)[_0x2bf556(0x1b6)](_0x5562a0[_0x2bf556(0x1c8)])[_0x2bf556(0x1c5)]()['recommendCommands']()[_0x2bf556(0x1b7)]()[_0x2bf556(0x1b9)](_0x5562a0[_0x2bf556(0x1b8)]);},exports[a16_0x6f9d14(0x1c7)]=function(_0x2b4b6d){};
1
+ const a16_0x1370da=a16_0x497f;function a16_0x5aa1(){const _0x43112d=['7607580uLrwlU','726010cUascp','../config/constants','3481161ZorITm','864261sSYHPW','builder','epilogue','1450470aBmoTt','DLDDr','handler','command','XAore','help','7zSNdTt','usage','pre_check','21873024jiobcl','precheck_commands','4875016Wihhpy'];a16_0x5aa1=function(){return _0x43112d;};return a16_0x5aa1();}function a16_0x497f(_0x1e01c9,_0x339d70){const _0x5aa1e2=a16_0x5aa1();return a16_0x497f=function(_0x497fbc,_0x3ce139){_0x497fbc=_0x497fbc-0x178;let _0x43f894=_0x5aa1e2[_0x497fbc];return _0x43f894;},a16_0x497f(_0x1e01c9,_0x339d70);}(function(_0xea60d2,_0x3be4ac){const _0x165d66=a16_0x497f,_0x3ae8df=_0xea60d2();while(!![]){try{const _0x53bc28=-parseInt(_0x165d66(0x183))/0x1+-parseInt(_0x165d66(0x180))/0x2+-parseInt(_0x165d66(0x182))/0x3+-parseInt(_0x165d66(0x17e))/0x4+parseInt(_0x165d66(0x186))/0x5+-parseInt(_0x165d66(0x17f))/0x6*(-parseInt(_0x165d66(0x179))/0x7)+parseInt(_0x165d66(0x17c))/0x8;if(_0x53bc28===_0x3be4ac)break;else _0x3ae8df['push'](_0x3ae8df['shift']());}catch(_0x4d4cfd){_0x3ae8df['push'](_0x3ae8df['shift']());}}}(a16_0x5aa1,0xa76b1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1370da(0x181));exports[a16_0x1370da(0x189)]='pre-check',exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x1370da(0x184)]=function(_0x20c863){const _0xe80be9=a16_0x1370da,_0x3570ed={};_0x3570ed['XAore']=_0xe80be9(0x17d),_0x3570ed[_0xe80be9(0x187)]=_0xe80be9(0x178);const _0x3c5242=_0x3570ed;return _0x20c863[_0xe80be9(0x17a)](HELP_HEADER_MESSAGE[_0xe80be9(0x17b)])[_0xe80be9(0x185)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3c5242[_0xe80be9(0x18a)])['demandCommand']()['recommendCommands']()['strict']()[_0xe80be9(0x178)](_0x3c5242[_0xe80be9(0x187)]);},exports[a16_0x1370da(0x188)]=function(_0x28db3e){};
@@ -1 +1 @@
1
- const a17_0x32a9be=a17_0x4b22;(function(_0x25cf3d,_0x3cc6ba){const _0x175bd5=a17_0x4b22,_0x1b065b=_0x25cf3d();while(!![]){try{const _0x10ee2a=parseInt(_0x175bd5(0x258))/0x1*(parseInt(_0x175bd5(0x214))/0x2)+parseInt(_0x175bd5(0x261))/0x3*(-parseInt(_0x175bd5(0x26b))/0x4)+-parseInt(_0x175bd5(0x1d8))/0x5+parseInt(_0x175bd5(0x20d))/0x6+-parseInt(_0x175bd5(0x220))/0x7*(-parseInt(_0x175bd5(0x22f))/0x8)+parseInt(_0x175bd5(0x1c4))/0x9+-parseInt(_0x175bd5(0x19e))/0xa;if(_0x10ee2a===_0x3cc6ba)break;else _0x1b065b['push'](_0x1b065b['shift']());}catch(_0x1eec80){_0x1b065b['push'](_0x1b065b['shift']());}}}(a17_0x54f4,0x29fa6));const fs=require('fs'),ws=require('ws'),got=require(a17_0x32a9be(0x1a1)),{v4:uuidv4}=require(a17_0x32a9be(0x29e)),ReconnectingWebSocket=require(a17_0x32a9be(0x226)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x32a9be(0x288)),{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_0x32a9be(0x263)),{getCloudProviderObjectWithOutInit}=require(a17_0x32a9be(0x224)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x32a9be(0x1b7));exports[a17_0x32a9be(0x22c)]=a17_0x32a9be(0x256),exports[a17_0x32a9be(0x299)]=a17_0x32a9be(0x1c7),exports[a17_0x32a9be(0x238)]=function(_0x3f222e){const _0x1d30cc=a17_0x32a9be,_0x205989={};_0x205989['conUo']=_0x1d30cc(0x1bb),_0x205989['WNRiu']=_0x1d30cc(0x1de),_0x205989[_0x1d30cc(0x1d7)]=_0x1d30cc(0x218),_0x205989[_0x1d30cc(0x1c3)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x205989[_0x1d30cc(0x1d3)]=_0x1d30cc(0x1ce),_0x205989[_0x1d30cc(0x1f0)]=_0x1d30cc(0x20b);const _0x28504e=_0x205989,_0x3e745d={};_0x3e745d[_0x1d30cc(0x1c6)]=_0x28504e[_0x1d30cc(0x286)],_0x3e745d[_0x1d30cc(0x1e5)]=_0x28504e[_0x1d30cc(0x1dd)];const _0x51883b={};_0x51883b[_0x1d30cc(0x1c6)]=_0x28504e['hiMNV'],_0x51883b[_0x1d30cc(0x1e5)]=_0x28504e[_0x1d30cc(0x1dd)];const _0x4306ba={};_0x4306ba[_0x1d30cc(0x1c6)]=_0x28504e[_0x1d30cc(0x1c3)],_0x4306ba['type']=_0x28504e[_0x1d30cc(0x1dd)];const _0x22872b={};_0x22872b['description']=_0x28504e[_0x1d30cc(0x1d3)],_0x22872b[_0x1d30cc(0x1e5)]=_0x28504e[_0x1d30cc(0x1dd)];const _0x42f2a3={};return _0x42f2a3[_0x1d30cc(0x22e)]=_0x3e745d,_0x42f2a3[_0x1d30cc(0x1d5)]=_0x51883b,_0x42f2a3['region']=_0x4306ba,_0x42f2a3[_0x1d30cc(0x29c)]=_0x22872b,_0x3f222e[_0x1d30cc(0x227)](HELP_HEADER_MESSAGE[_0x1d30cc(0x29b)])[_0x1d30cc(0x222)](HELP_FOOTER_MESSAGE)[_0x1d30cc(0x1a5)](_0x42f2a3)[_0x1d30cc(0x20b)](_0x28504e[_0x1d30cc(0x1f0)])[_0x1d30cc(0x1d4)];};async function inputValidation(_0x2a897d,_0x738c82){const _0x40f804=a17_0x32a9be,_0x8bf6a2={'JbjUA':_0x40f804(0x295),'lOQEb':'Error\x20Details:\x0a','gzTtr':_0x40f804(0x1be),'gCPwO':_0x40f804(0x1d5),'GuiyX':_0x40f804(0x22e),'BOaDk':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','BCVoR':_0x40f804(0x1bb),'ukylA':_0x40f804(0x1de),'TkVLH':_0x40f804(0x218),'dGJMw':_0x40f804(0x1f5),'Bykcm':_0x40f804(0x1ce),'HHfwu':_0x40f804(0x20b),'ZtmeO':_0x40f804(0x223),'PUqGt':_0x40f804(0x24b),'MZVbt':_0x40f804(0x1cd),'bHidr':function(_0x27e347,_0x1a5c8e){return _0x27e347===_0x1a5c8e;},'wNQJr':_0x40f804(0x247),'HePVL':'zlwUw','KptAx':function(_0x37d09b,_0xb154d3){return _0x37d09b!==_0xb154d3;},'jHuxw':_0x40f804(0x282),'CpgOx':_0x40f804(0x1ae),'yNroR':function(_0x6471a7,_0x5b71a2){return _0x6471a7===_0x5b71a2;},'DIeHA':'OgiTu','msUmD':_0x40f804(0x219),'aBSFu':_0x40f804(0x20e),'jQIUJ':function(_0x4769a8,_0x2e0720){return _0x4769a8===_0x2e0720;},'iWjMH':'aoSLz','ayjHD':function(_0x2cb8db,_0x5417d7){return _0x2cb8db>_0x5417d7;},'zbJfN':function(_0x1c9919,_0x27a2a3){return _0x1c9919===_0x27a2a3;},'CasqT':_0x40f804(0x215),'jlNrv':function(_0x5866e3,_0x3dd173,_0x4728c9,_0x5e59d2,_0x5c0828,_0x3188da,_0x1e8716,_0x1a8fd8){return _0x5866e3(_0x3dd173,_0x4728c9,_0x5e59d2,_0x5c0828,_0x3188da,_0x1e8716,_0x1a8fd8);},'xsoXI':_0x40f804(0x27d),'mHFCb':_0x40f804(0x26a),'VnqOZ':function(_0x51d4f2,_0x4d5c69){return _0x51d4f2===_0x4d5c69;},'JDOOe':_0x40f804(0x266),'kdxRV':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','LeTgm':function(_0x5da22c,_0x1bc00c,_0x2ef928,_0x246add,_0x2c6c24,_0x5970aa,_0x5c0d15,_0x39f859){return _0x5da22c(_0x1bc00c,_0x2ef928,_0x246add,_0x2c6c24,_0x5970aa,_0x5c0d15,_0x39f859);},'cvQcx':'cloud-provider-not-supported','GxyfE':function(_0x46f01f,_0x37ee60){return _0x46f01f!==_0x37ee60;},'lUuiG':_0x40f804(0x237),'SSiyz':function(_0x2b63b8,_0x3f67c6){return _0x2b63b8===_0x3f67c6;},'xfcGM':_0x40f804(0x250),'bGKvv':'UMKLI','NHTnq':_0x40f804(0x22d),'cSsRe':function(_0xf2e88b,_0x5b0fbe,_0x4df33a){return _0xf2e88b(_0x5b0fbe,_0x4df33a);},'wEYSd':function(_0x385f08,_0x51be24,_0x4f943a,_0x2832cc,_0x5c97fe,_0x45ef4a){return _0x385f08(_0x51be24,_0x4f943a,_0x2832cc,_0x5c97fe,_0x45ef4a);},'pVaCX':'pre-check','bQGbR':_0x40f804(0x29c),'KJYft':function(_0x50b7,_0x3126af){return _0x50b7===_0x3126af;},'rCSWS':_0x40f804(0x271),'wlUPF':_0x40f804(0x26c),'msSEt':function(_0x3a2fe1,_0x5a0557){return _0x3a2fe1(_0x5a0557);},'YoFrG':function(_0x1a420a,_0x112b23){return _0x1a420a!==_0x112b23;},'EpYZZ':'lufPp','YbgKN':function(_0x56583e,_0x92174e,_0x5e18a0,_0x3ab527,_0x3eeef5,_0x220000,_0x295613,_0x5bee32){return _0x56583e(_0x92174e,_0x5e18a0,_0x3ab527,_0x3eeef5,_0x220000,_0x295613,_0x5bee32);},'GNsXb':_0x40f804(0x28a),'hfqvq':_0x40f804(0x28d),'EDUKU':_0x40f804(0x1e9),'GaYml':_0x40f804(0x1cb),'WUVdc':_0x40f804(0x20f),'sfbMy':function(_0x5bd776,_0x1adf50){return _0x5bd776===_0x1adf50;},'SoMkz':'IPjZw','uMylX':_0x40f804(0x1b8),'CObIQ':_0x40f804(0x1ab)};let _0x42f671;try{if(_0x8bf6a2['bHidr'](_0x8bf6a2[_0x40f804(0x204)],_0x8bf6a2[_0x40f804(0x200)]))_0xad7610=_0x22931d;else{if(_0x2a897d[_0x40f804(0x1f2)]||_0x2a897d[_0x40f804(0x249)]||_0x2a897d[_0x40f804(0x1cd)]){if(_0x8bf6a2[_0x40f804(0x2a1)](_0x8bf6a2['jHuxw'],_0x8bf6a2[_0x40f804(0x1c1)])){const _0x301d0b=[];if(!_0x2a897d['clusterName']){if(_0x8bf6a2[_0x40f804(0x28e)](_0x8bf6a2[_0x40f804(0x24d)],_0x8bf6a2[_0x40f804(0x24d)]))_0x301d0b['push'](_0x8bf6a2[_0x40f804(0x212)]);else{const _0x362417={};_0x362417[_0x40f804(0x1e5)]=_0x4dc7e7[_0x40f804(0x294)],_0x362417[_0x40f804(0x284)]=_0x24990d,_0x4ff1d1[_0x40f804(0x297)](_0x347444,_0x362417,_0x8bf6a2['JbjUA'],!![]);}};!_0x2a897d[_0x40f804(0x249)]&&(_0x8bf6a2[_0x40f804(0x28e)](_0x8bf6a2['msUmD'],_0x8bf6a2[_0x40f804(0x19f)])?(_0x34d4c1+=_0x8bf6a2[_0x40f804(0x278)],_0x640751+='\x20\x20Message:\x20'+(_0x1a000a[_0x40f804(0x284)]||_0x8bf6a2[_0x40f804(0x264)])+'\x0a',_0x3fce6d+=_0x40f804(0x202)+(_0x1a04e9[_0x40f804(0x1e7)]||_0x8bf6a2[_0x40f804(0x264)])+'\x0a',_0x116af9+=_0x40f804(0x23d)+(_0x143e8c[_0x40f804(0x241)]||_0x8bf6a2[_0x40f804(0x264)])+'\x0a'):_0x301d0b[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x1c0)]));;!_0x2a897d[_0x40f804(0x1cd)]&&(_0x8bf6a2[_0x40f804(0x22b)](_0x8bf6a2[_0x40f804(0x25f)],_0x8bf6a2[_0x40f804(0x25f)])?_0x301d0b[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x259)]):_0x5a2686[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x1c0)]));;_0x8bf6a2[_0x40f804(0x285)](_0x301d0b[_0x40f804(0x1a8)],0x0)&&(_0x8bf6a2['zbJfN'](_0x8bf6a2[_0x40f804(0x280)],_0x8bf6a2[_0x40f804(0x280)])?(_0x42f671='Missing\x20required\x20arguments:\x20'+_0x301d0b['join'](',\x20')+_0x40f804(0x1bc),await _0x8bf6a2[_0x40f804(0x246)](reportToGalactusAndSendToEDS,_0x2a897d,_0x738c82,_0x42f671,messageTypes['ERROR'],_0x8bf6a2[_0x40f804(0x211)],_0x8bf6a2[_0x40f804(0x1ec)],_0x8bf6a2[_0x40f804(0x1a9)]),logger[_0x40f804(0x295)](_0x42f671),process['exit'](0x1)):_0x401a02['exit'](0x1)),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x40f804(0x236)](_0x2a897d[_0x40f804(0x249)][_0x40f804(0x25c)]())&&(_0x8bf6a2[_0x40f804(0x21a)](_0x8bf6a2[_0x40f804(0x257)],_0x8bf6a2[_0x40f804(0x257)])?(_0x42f671=_0x8bf6a2[_0x40f804(0x1c8)],await _0x8bf6a2[_0x40f804(0x1cf)](reportToGalactusAndSendToEDS,_0x2a897d,_0x738c82,_0x42f671,messageTypes[_0x40f804(0x1f3)],_0x8bf6a2[_0x40f804(0x211)],_0x8bf6a2['cvQcx'],_0x8bf6a2[_0x40f804(0x1a9)]),logger['error'](_0x42f671),!_0x2a897d[_0x40f804(0x249)]&&(_0x8bf6a2[_0x40f804(0x19d)](_0x8bf6a2['lUuiG'],_0x8bf6a2[_0x40f804(0x242)])?_0x5e331d[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x212)]):(logger[_0x40f804(0x1db)](_0x40f804(0x216)+DEFAULT_CLUSTER_DETAILS[_0x40f804(0x291)]+'\x20'),_0x2a897d[_0x40f804(0x249)]=DEFAULT_CLUSTER_DETAILS[_0x40f804(0x291)]))):_0x15f56c[_0x40f804(0x295)]('error\x20stack\x20:\x20'+_0x34d979[_0x40f804(0x295)][_0x40f804(0x241)])),global_registry[_0x40f804(0x1f2)]=_0x2a897d['clusterName'],global_registry[_0x40f804(0x249)]=_0x2a897d[_0x40f804(0x249)],global_registry[_0x40f804(0x1d6)]=_0x2a897d[_0x40f804(0x1cd)];}else _0x321248[_0x40f804(0x295)](_0x8bf6a2['BOaDk']),_0x580ea6['exit'](0x1);}else{if(_0x2a897d[_0x40f804(0x1af)]){if(_0x8bf6a2[_0x40f804(0x1fc)](_0x8bf6a2['xfcGM'],_0x8bf6a2[_0x40f804(0x29a)]))_0x336894+='Cluster\x20'+_0x114476[_0x40f804(0x1f2)]+_0x40f804(0x251);else{global_registry[_0x40f804(0x1af)]=_0x2a897d[_0x40f804(0x1af)],logger[_0x40f804(0x230)]('grid\x20profile\x20flow\x20'+_0x2a897d['gridProfile']);const _0x4332d4=_0x40f804(0x25e)+AG_API_URL+_0x40f804(0x1c5),_0x5ebae2={};_0x5ebae2['method']=_0x8bf6a2[_0x40f804(0x1fe)],_0x5ebae2['headers']=global_registry[_0x40f804(0x1b2)],_0x5ebae2['throwHttpErrors']=![];const _0xa50134=_0x5ebae2,_0x887c46=await _0x8bf6a2['cSsRe'](got,_0x4332d4,_0xa50134),_0x2413fb=await _0x8bf6a2[_0x40f804(0x221)](responseValidation,_0x887c46,_0x8bf6a2[_0x40f804(0x290)],_0x8bf6a2[_0x40f804(0x1a0)],_0x2a897d,_0x738c82);let _0x37b65a={};if(_0x8bf6a2[_0x40f804(0x25d)](_0x2413fb,0xc8)){if(_0x8bf6a2[_0x40f804(0x19d)](_0x8bf6a2['rCSWS'],_0x8bf6a2[_0x40f804(0x20c)])){const _0x41a098=JSON[_0x40f804(0x1ca)](_0x887c46[_0x40f804(0x269)]),_0x45caf3=_0x41a098[_0x40f804(0x244)](_0x3c8297=>_0x3c8297[_0x40f804(0x28f)]===_0x2a897d[_0x40f804(0x1af)])||null;if(_0x8bf6a2[_0x40f804(0x205)](isUndefined,_0x45caf3))_0x8bf6a2[_0x40f804(0x287)](_0x8bf6a2[_0x40f804(0x234)],_0x8bf6a2[_0x40f804(0x234)])?(_0x3ac3ac[_0x40f804(0x1db)]('['+_0x1f6c4b+_0x40f804(0x206)+_0x425434['status']+_0x40f804(0x1fd)+_0x25d3bf[_0x40f804(0x209)]+_0x40f804(0x213)+_0x5bc30e[_0x40f804(0x295)]),_0x47487a[_0x40f804(0x295)]&&_0x3b328e[_0x40f804(0x295)]('error\x20stack\x20:\x20'+_0x3f0ad1['error'][_0x40f804(0x241)])):(_0x42f671=_0x40f804(0x27a)+_0x2a897d[_0x40f804(0x1af)]+_0x40f804(0x2a0),await _0x8bf6a2[_0x40f804(0x253)](reportToGalactusAndSendToEDS,_0x2a897d,_0x738c82,_0x42f671,messageTypes['ERROR'],_0x8bf6a2[_0x40f804(0x211)],_0x8bf6a2[_0x40f804(0x217)],_0x8bf6a2[_0x40f804(0x1a9)]),logger['error'](_0x42f671),process[_0x40f804(0x1b0)](0x1));else{if(_0x8bf6a2[_0x40f804(0x1ac)](_0x8bf6a2[_0x40f804(0x1da)],_0x8bf6a2[_0x40f804(0x1da)]))_0x37b65a=_0x45caf3;else{const _0x1ff12e={};_0x1ff12e[_0x40f804(0x1c6)]=_0x8bf6a2[_0x40f804(0x245)],_0x1ff12e[_0x40f804(0x1e5)]=_0x8bf6a2[_0x40f804(0x203)];const _0x579e9e={};_0x579e9e['description']=_0x8bf6a2[_0x40f804(0x1ed)],_0x579e9e[_0x40f804(0x1e5)]=_0x8bf6a2['ukylA'];const _0x56bc62={};_0x56bc62[_0x40f804(0x1c6)]=_0x8bf6a2[_0x40f804(0x27b)],_0x56bc62[_0x40f804(0x1e5)]=_0x8bf6a2[_0x40f804(0x203)];const _0x30a23d={};_0x30a23d[_0x40f804(0x1c6)]=_0x8bf6a2[_0x40f804(0x21d)],_0x30a23d[_0x40f804(0x1e5)]=_0x8bf6a2[_0x40f804(0x203)];const _0x9421b1={};return _0x9421b1[_0x40f804(0x22e)]=_0x1ff12e,_0x9421b1[_0x40f804(0x1d5)]=_0x579e9e,_0x9421b1['region']=_0x56bc62,_0x9421b1[_0x40f804(0x29c)]=_0x30a23d,_0x189c91[_0x40f804(0x227)](_0x4fd006['pre_check'])[_0x40f804(0x222)](_0x2e8a37)[_0x40f804(0x1a5)](_0x9421b1)[_0x40f804(0x20b)](_0x8bf6a2[_0x40f804(0x273)])[_0x40f804(0x1d4)];}}}else _0x278cfc+=_0x40f804(0x1f7)+_0x54b534[_0x40f804(0x1f2)]+'\x20'+(_0x206f23?_0x8bf6a2['ZtmeO']:_0x8bf6a2[_0x40f804(0x21b)])+'\x0a\x0a';}else _0x8bf6a2[_0x40f804(0x22b)](_0x8bf6a2[_0x40f804(0x1e8)],_0x8bf6a2['GaYml'])?_0x4692e1[_0x40f804(0x1db)](_0x40f804(0x270)+_0x3c3161[_0x40f804(0x1f2)]+_0x40f804(0x283)):process[_0x40f804(0x1b0)](0x1);const _0x5376c9={};_0x5376c9['type']=WS_EVENTS[_0x40f804(0x294)],_0x5376c9['message']=_0x8bf6a2[_0x40f804(0x208)],webSocketUtils['sendEventToBackend'](_0x738c82,_0x5376c9),global_registry[_0x40f804(0x249)]=_0x37b65a[_0x40f804(0x249)],global_registry[_0x40f804(0x1d6)]=_0x37b65a['region'],global_registry[_0x40f804(0x1f2)]=_0x37b65a[_0x40f804(0x1f2)];}}else _0x8bf6a2[_0x40f804(0x1ea)](_0x8bf6a2[_0x40f804(0x20a)],_0x8bf6a2[_0x40f804(0x233)])?_0x15f0dd[_0x40f804(0x1f6)](_0x8bf6a2[_0x40f804(0x259)]):(logger[_0x40f804(0x295)](_0x8bf6a2[_0x40f804(0x1f8)]),process[_0x40f804(0x1b0)](0x1));}}}catch(_0x308e35){_0x8bf6a2[_0x40f804(0x287)](_0x8bf6a2[_0x40f804(0x201)],_0x8bf6a2[_0x40f804(0x201)])?(_0x14843f['info'](_0x40f804(0x216)+_0x2cb406['CLOUD_PROVIDER']+'\x20'),_0x3f6023[_0x40f804(0x249)]=_0x531e55[_0x40f804(0x291)]):(_0x42f671=_0x40f804(0x1dc)+_0x308e35+':\x20'+_0x308e35[_0x40f804(0x241)],logger[_0x40f804(0x295)](_0x42f671),await _0x8bf6a2[_0x40f804(0x1cf)](reportToGalactusAndSendToEDS,_0x2a897d,_0x738c82,_0x42f671,messageTypes[_0x40f804(0x1f3)],_0x8bf6a2['xsoXI'],_0x8bf6a2['cvQcx'],_0x8bf6a2[_0x40f804(0x1a9)]),process[_0x40f804(0x1b0)](0x1));}}function printResponse(_0xdff1c4,_0x35fdd4){const _0x4db49f=a17_0x32a9be,_0x5aea37={};_0x5aea37[_0x4db49f(0x1ef)]=function(_0x4189f0,_0x239538){return _0x4189f0+_0x239538;},_0x5aea37[_0x4db49f(0x29d)]='Success',_0x5aea37['tGBsf']='Failure',_0x5aea37[_0x4db49f(0x23b)]=function(_0x29649b,_0xfd807){return _0x29649b||_0xfd807;},_0x5aea37[_0x4db49f(0x1bf)]=_0x4db49f(0x1be),_0x5aea37[_0x4db49f(0x24c)]=_0x4db49f(0x1d1),_0x5aea37[_0x4db49f(0x277)]=function(_0x511223,_0x10f7e2){return _0x511223!==_0x10f7e2;},_0x5aea37[_0x4db49f(0x248)]='JBFvB',_0x5aea37['RGskw']='LVBcI';const _0x325ab8=_0x5aea37;logger[_0x4db49f(0x1db)]('['+_0xdff1c4+']\x20status\x20:\x20'+_0x35fdd4[_0x4db49f(0x240)]+_0x4db49f(0x1fd)+_0x35fdd4[_0x4db49f(0x209)]+_0x4db49f(0x213)+_0x35fdd4[_0x4db49f(0x295)]);if(_0x35fdd4[_0x4db49f(0x295)]){if(_0x325ab8['znQTy'](_0x325ab8[_0x4db49f(0x248)],_0x325ab8[_0x4db49f(0x255)]))logger['error'](_0x4db49f(0x27e)+_0x35fdd4[_0x4db49f(0x295)][_0x4db49f(0x241)]);else{const {header:_0xe5220b,response:_0x119a96}=_0x513b50,{status:_0x16a7e2,data:_0x46b137,error:_0x503839}=_0x119a96;_0x158cf9+=_0xe5220b+'\x20#'+_0x325ab8['tlyLg'](_0x441e5f,0x1)+'\x0a',_0x215658+=_0x4db49f(0x254)+(_0x16a7e2?_0x325ab8[_0x4db49f(0x29d)]:_0x325ab8['tGBsf'])+'\x0a',_0x3309e6+=_0x4db49f(0x1c9)+_0x325ab8[_0x4db49f(0x23b)](_0x46b137,_0x325ab8['MScfT'])+'\x0a',_0x503839&&(_0x1e61f1+=_0x325ab8['wTiot'],_0x41e563+=_0x4db49f(0x293)+(_0x503839[_0x4db49f(0x284)]||_0x325ab8[_0x4db49f(0x1bf)])+'\x0a',_0x10e1d4+='\x20\x20Code:\x20'+(_0x503839['code']||_0x325ab8[_0x4db49f(0x1bf)])+'\x0a',_0x719bf3+=_0x4db49f(0x23d)+(_0x503839[_0x4db49f(0x241)]||_0x325ab8[_0x4db49f(0x1bf)])+'\x0a'),_0x534aac+='\x0a\x0a';}}}async function generateReport(_0x24c873,_0x572c25){const _0x4f5c6c=a17_0x32a9be,_0x5c490d={'MKMtP':function(_0x9f981a,_0x28eb36){return _0x9f981a+_0x28eb36;},'xbfOI':_0x4f5c6c(0x1e3),'HwGcJ':_0x4f5c6c(0x1aa),'WbBxk':function(_0x28fb81,_0x495d6f){return _0x28fb81||_0x495d6f;},'rQfbl':_0x4f5c6c(0x1be),'rITeQ':'Error\x20Details:\x0a','ndgqD':_0x4f5c6c(0x1b9),'mjcru':function(_0x25fc89,_0x3981e3){return _0x25fc89!=_0x3981e3;},'xkTxK':_0x4f5c6c(0x223),'CFwOv':'will\x20be\x20created','VatlX':function(_0x57563f){return _0x57563f();}};let _0x4e7e9b='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x4f5c6c(0x1a2);return _0x24c873[_0x4f5c6c(0x25b)]((_0x1bc175,_0x183018)=>{const _0x32f4ec=_0x4f5c6c,{header:_0xc4b48e,response:_0x445249}=_0x1bc175,{status:_0x4def4c,data:_0x3bc226,error:_0x3a8f6f}=_0x445249;_0x4e7e9b+=_0xc4b48e+'\x20#'+_0x5c490d[_0x32f4ec(0x1b4)](_0x183018,0x1)+'\x0a',_0x4e7e9b+=_0x32f4ec(0x254)+(_0x4def4c?_0x5c490d[_0x32f4ec(0x1ba)]:_0x5c490d[_0x32f4ec(0x1a3)])+'\x0a',_0x4e7e9b+='Message:\x20'+_0x5c490d[_0x32f4ec(0x25a)](_0x3bc226,_0x5c490d[_0x32f4ec(0x243)])+'\x0a',_0x3a8f6f&&(_0x4e7e9b+=_0x5c490d[_0x32f4ec(0x26f)],_0x4e7e9b+=_0x32f4ec(0x293)+(_0x3a8f6f[_0x32f4ec(0x284)]||_0x5c490d[_0x32f4ec(0x243)])+'\x0a',_0x4e7e9b+='\x20\x20Code:\x20'+(_0x3a8f6f[_0x32f4ec(0x1e7)]||_0x5c490d[_0x32f4ec(0x243)])+'\x0a',_0x4e7e9b+='\x20\x20Stack:\x20'+(_0x3a8f6f[_0x32f4ec(0x241)]||_0x5c490d[_0x32f4ec(0x243)])+'\x0a'),_0x4e7e9b+='\x0a\x0a';}),_0x4e7e9b+=_0x5c490d[_0x4f5c6c(0x252)],_0x5c490d[_0x4f5c6c(0x28b)](_0x572c25,null)?_0x4e7e9b+=_0x4f5c6c(0x1f7)+global_registry['clusterName']+'\x20'+(_0x572c25?_0x5c490d[_0x4f5c6c(0x1a4)]:_0x5c490d['CFwOv'])+'\x0a\x0a':_0x4e7e9b+='Cluster\x20'+global_registry[_0x4f5c6c(0x1f2)]+_0x4f5c6c(0x251),_0x4e7e9b+=_0x5c490d[_0x4f5c6c(0x24a)](getSystemMetaData),_0x4e7e9b;}function a17_0x54f4(){const _0x68890d=['pre-check-failed','MKMtP','header','MTaMy','../../utils/instrumentationUtils','aWZgh','Cluster\x20details\x0a-----------------------\x0a','xbfOI','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','.\x20Please\x20provide\x20all\x20required\x20arguments.','tLXNz','N/A','MScfT','gCPwO','CpgOx','lqzxu','PkBIC','2813274OoLkPD','/packages/cli/get-all-grid-profiles','description','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','kdxRV','Message:\x20','parse','kRtao','iURsa','region','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','LeTgm','WuqwJ','Error\x20Details:\x0a','accessResp','iSAxz','argv','cloud-provider','clusterRegion','hiMNV','353215aruGYZ','getUTCHours','hfqvq','info','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','WNRiu','string','`\x20,error\x20:\x20','oHpbV','CZiKP','requestId','Success','Failed\x20in\x20pre-check!\x20Error:\x20','type','XpmcE','code','EDUKU','biOGI','sfbMy','xgGqb','mHFCb','TkVLH','writeFileSync','tlyLg','GoSHh','uZnes','clusterName','ERROR','getUTCDate','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','push','Cluster\x20','BOaDk','.txt','utf-8','isClusterPresent','SSiyz','\x20data\x20:\x20','NHTnq','eqhsT','HePVL','CObIQ','\x20\x20Code:\x20','ukylA','wNQJr','msSEt',']\x20status\x20:\x20','delay','WUVdc','data','SoMkz','help','wlUPF','1737138yjKsas','aXJAe','Grid\x20profile\x20fetched\x20for\x20pre-check','Browserstack','xsoXI','GuiyX','\x20error\x20:\x20','2cvcSDw','Ojnxn','Setting\x20cloud\x20provider\x20as\x20','GNsXb','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','NnNOh','VnqOZ','PUqGt','handler','Bykcm','username','sWfpU','14xVsmzW','wEYSd','epilogue','is\x20already\x20present','../../cloudproviders/utils','isTls1_2_SUPPORTED','reconnecting-websocket','usage','stringify','readFileSync','stack\x20trace\x20','jQIUJ','command','GET','cluster-name','1056376fWKsHV','debug','FTbQH','Pre-check\x20running\x20for\x20Cloud\x20-\x20','uMylX','EpYZZ','<UsernamePlaceholder>','includes','JdQbJ','builder','getUTCMonth','getUTCMinutes','MzMJD','bstackAccesskey','\x20\x20Stack:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','init','status','stack','lUuiG','rQfbl','find','BCVoR','jlNrv','cACNV','rlIjD','cloudProvider','VatlX','will\x20be\x20created','wTiot','DIeHA','VqDCM','iHCUA','nZeDb','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','ndgqD','YbgKN','Status:\x20','RGskw','grid','JDOOe','53660iAWlpf','MZVbt','WbBxk','forEach','toLowerCase','KJYft','https://','iWjMH','User\x20Access','12mWevWh','vDKVf','../../config/constants','gzTtr','credential-not-found','AozmV','connectionTimeout','dummy-grid','body','pre-check-cluster-args-not-passed','208792qcZymR','NQTzJ','jWRdm','response','rITeQ','Cluster\x20`','lQqMy','wtjFj','HHfwu','Whitelisted\x20browserstack','SSL\x20Configured','isTrialGridAccessible','znQTy','lOQEb','INFO','Invalid\x20input.\x20grid\x20profiles:\x20','dGJMw','toolInstalledResp','pre-check-grid-called','error\x20stack\x20:\x20','kOFHh','CasqT','TLSv1_2_client_method','GKTKv','`\x20already\x20exists','message','ayjHD','conUo','YoFrG','../../config/logger','seRkP','pre-check-grid-profile-empty','mjcru','QlDbO','YyUFw','yNroR','name','pVaCX','CLOUD_PROVIDER','password','\x20\x20Message:\x20','LOG','error','cluster-check-failed-','sendEventToBackend','1|0|2|4|3','desc','bGKvv','pre_check','grid-profile','OcSbb','uuid','split','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','KptAx','GxyfE','4684860hdbfMh','aBSFu','bQGbR','got','\x20===\x0a\x0a','HwGcJ','xkTxK','options','<PasswordPlaceholder>','bstackUsername','length','JbjUA','Failure','cUqij','bHidr','YeYNM','xUdtq','gridProfile','exit','replace','authHeader'];a17_0x54f4=function(){return _0x68890d;};return a17_0x54f4();};function a17_0x4b22(_0x4ff22e,_0x4256f1){const _0x54f41a=a17_0x54f4();return a17_0x4b22=function(_0x4b2275,_0x52ecb0){_0x4b2275=_0x4b2275-0x19d;let _0x3ebe84=_0x54f41a[_0x4b2275];return _0x3ebe84;},a17_0x4b22(_0x4ff22e,_0x4256f1);}exports[a17_0x32a9be(0x21c)]=async function(_0x52ad4b){const _0x4ee695=a17_0x32a9be,_0x91bc86={'CZiKP':function(_0x11321b){return _0x11321b();},'epeOj':function(_0x55f79c){return _0x55f79c();},'oHpbV':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jWRdm':function(_0x4d1b1b,_0x181ffd,_0xd4eeee,_0x3e4cfa,_0x3cc111,_0x489404,_0x20e8c9,_0x38a707){return _0x4d1b1b(_0x181ffd,_0xd4eeee,_0x3e4cfa,_0x3cc111,_0x489404,_0x20e8c9,_0x38a707);},'YeYNM':_0x4ee695(0x27d),'lqzxu':_0x4ee695(0x265),'seRkP':'error','iHCUA':function(_0x27135e,_0x249f8c,_0x246607,_0x3f2265,_0x245251,_0x483491,_0x1dd7d4){return _0x27135e(_0x249f8c,_0x246607,_0x3f2265,_0x245251,_0x483491,_0x1dd7d4);},'sWfpU':function(_0xdbc53c){return _0xdbc53c();},'PoyNd':_0x4ee695(0x235),'aWSVh':_0x4ee695(0x1a6),'eqhsT':function(_0x588f4e,_0x2a1f8f,_0x406407){return _0x588f4e(_0x2a1f8f,_0x406407);},'vDKVf':function(_0x13328c,_0x18ca17,_0x1e861e,_0x614055,_0x55192a,_0x41cc37,_0x3f41d4){return _0x13328c(_0x18ca17,_0x1e861e,_0x614055,_0x55192a,_0x41cc37,_0x3f41d4);},'tdppW':_0x4ee695(0x268),'iURsa':function(_0x4f4050,_0x18858e,_0x379b92){return _0x4f4050(_0x18858e,_0x379b92);},'XpmcE':_0x4ee695(0x27c),'FTbQH':_0x4ee695(0x298),'VqDCM':_0x4ee695(0x1d2),'tLXNz':_0x4ee695(0x276),'RjmvH':function(_0x4e7032,_0x157427){return _0x4e7032(_0x157427);},'QlDbO':_0x4ee695(0x281),'MRduR':function(_0x2edf0a,_0xacca6a,_0x3b653f){return _0x2edf0a(_0xacca6a,_0x3b653f);},'jcdpZ':_0x4ee695(0x225),'wtjFj':'Tool\x20Installed','kOFHh':_0x4ee695(0x260),'MTaMy':_0x4ee695(0x274),'WuqwJ':_0x4ee695(0x275),'uZnes':function(_0x1decbd,_0x309bd0){return _0x1decbd+_0x309bd0;},'QNnKQ':_0x4ee695(0x1fa),'xgGqb':_0x4ee695(0x1b3)};let _0x4e77de,_0x2bbb21;try{global_registry[_0x4ee695(0x1e2)]=_0x91bc86[_0x4ee695(0x1e1)](uuidv4);!fs['existsSync'](_0x91bc86['epeOj'](getCredentialsPath))&&(_0x2bbb21=_0x91bc86[_0x4ee695(0x1e0)],logger[_0x4ee695(0x295)](_0x2bbb21),await _0x91bc86['jWRdm'](reportToGalactusAndSendToEDS,_0x52ad4b,_0x4e77de,_0x2bbb21,messageTypes[_0x4ee695(0x1f3)],_0x91bc86['YeYNM'],_0x91bc86[_0x4ee695(0x1c2)],_0x91bc86[_0x4ee695(0x289)]),process[_0x4ee695(0x1b0)](0x1));_0x91bc86[_0x4ee695(0x24f)](sendInstrumentationEvent,_0x52ad4b,_0x91bc86[_0x4ee695(0x1ad)],messageTypes[_0x4ee695(0x279)],null,null,_0x52ad4b);const _0x5c7791=JSON[_0x4ee695(0x1ca)](fs[_0x4ee695(0x229)](_0x91bc86[_0x4ee695(0x21f)](getCredentialsPath)));global_registry['bstackUsername']=_0x5c7791['Browserstack'][_0x4ee695(0x21e)],global_registry[_0x4ee695(0x23c)]=_0x5c7791[_0x4ee695(0x210)][_0x4ee695(0x292)];const _0x34feb7=WS_ENDPOINT[_0x4ee695(0x1b1)](_0x91bc86['PoyNd'],_0x5c7791['Browserstack'][_0x4ee695(0x21e)])['replace'](_0x91bc86['aWSVh'],_0x5c7791['Browserstack'][_0x4ee695(0x292)]),_0x2e0663={};_0x2e0663['WebSocket']=ws,_0x2e0663[_0x4ee695(0x267)]=0x36ee80,_0x4e77de=new ReconnectingWebSocket(_0x34feb7,[],_0x2e0663),global_registry[_0x4ee695(0x1b2)]=_0x91bc86[_0x4ee695(0x1ff)](getAuthHeader,global_registry[_0x4ee695(0x1a7)],global_registry[_0x4ee695(0x23c)]),await _0x91bc86[_0x4ee695(0x1ff)](inputValidation,_0x52ad4b,_0x4e77de),logger[_0x4ee695(0x1db)](_0x4ee695(0x232)+global_registry[_0x4ee695(0x249)]+'\x20region\x20-\x20'+global_registry[_0x4ee695(0x1d6)]);let _0x33e50b=await _0x91bc86[_0x4ee695(0x262)](getCloudProviderObjectWithOutInit,global_registry[_0x4ee695(0x249)],global_registry['clusterName'],_0x91bc86['tdppW'],_0x4e77de,webSocketUtils,_0x52ad4b);const _0x59cf5d=await _0x33e50b['isCliToolInstalled']();_0x91bc86[_0x4ee695(0x1cc)](printResponse,_0x91bc86[_0x4ee695(0x1e6)],_0x59cf5d),_0x33e50b=await _0x33e50b[_0x4ee695(0x23f)]();let _0xef978b=![];try{_0xef978b=await _0x33e50b[_0x4ee695(0x1fb)]();}catch(_0x4d489d){const _0x34f68d=_0x91bc86[_0x4ee695(0x231)][_0x4ee695(0x29f)]('|');let _0x4971c2=0x0;while(!![]){switch(_0x34f68d[_0x4971c2++]){case'0':_0xef978b=null;continue;case'1':_0x2bbb21=_0x4ee695(0x23e)+global_registry[_0x4ee695(0x1f2)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x4ee695(0x1d6)]+_0x4ee695(0x1df)+_0x4d489d;continue;case'2':logger[_0x4ee695(0x295)](_0x2bbb21);continue;case'3':await _0x91bc86[_0x4ee695(0x26d)](reportToGalactusAndSendToEDS,_0x52ad4b,_0x4e77de,_0x2bbb21,messageTypes['ERROR'],_0x91bc86[_0x4ee695(0x1ad)],_0x4ee695(0x296)+global_registry['cloudProvider'],_0x91bc86[_0x4ee695(0x289)]);continue;case'4':_0x2bbb21+='\x0a'+JSON[_0x4ee695(0x228)](_0x4d489d[_0x4ee695(0x241)]);continue;}break;}}_0xef978b&&logger[_0x4ee695(0x1db)](_0x4ee695(0x270)+global_registry[_0x4ee695(0x1f2)]+_0x4ee695(0x283));const _0x2623a0=await _0x33e50b['checkAccess']();_0x91bc86[_0x4ee695(0x1cc)](printResponse,_0x91bc86[_0x4ee695(0x24e)],_0x2623a0);const _0x171631=await _0x91bc86['epeOj'](curlRequest);_0x91bc86[_0x4ee695(0x1ff)](printResponse,_0x91bc86[_0x4ee695(0x1bd)],_0x171631);const _0x20f8aa=await _0x91bc86['RjmvH'](isTlsSupported,_0x91bc86[_0x4ee695(0x28c)]);_0x91bc86['MRduR'](printResponse,_0x91bc86['jcdpZ'],_0x20f8aa);const _0x3754a9={};_0x3754a9[_0x4ee695(0x1b5)]=_0x91bc86[_0x4ee695(0x272)],_0x3754a9[_0x4ee695(0x26e)]=_0x59cf5d;const _0x9bdb70={};_0x9bdb70[_0x4ee695(0x1b5)]=_0x91bc86[_0x4ee695(0x27f)],_0x9bdb70['response']=_0x2623a0;const _0x3dc92f={};_0x3dc92f[_0x4ee695(0x1b5)]=_0x91bc86[_0x4ee695(0x1b6)],_0x3dc92f['response']=_0x171631;const _0xbf508c={};_0xbf508c[_0x4ee695(0x1b5)]=_0x91bc86[_0x4ee695(0x1d0)],_0xbf508c['response']=_0x20f8aa;const _0x43814b=[_0x3754a9,_0x9bdb70,_0x3dc92f,_0xbf508c],_0x46e2bf=await _0x91bc86[_0x4ee695(0x1ff)](generateReport,_0x43814b,_0xef978b),_0x114020=new Date(),_0x3542b4=_0x114020['getUTCFullYear']()+'_'+_0x91bc86[_0x4ee695(0x1f1)](_0x114020[_0x4ee695(0x239)](),0x1)+'_'+_0x114020[_0x4ee695(0x1f4)]()+'_'+_0x114020[_0x4ee695(0x1d9)]()+'_'+_0x114020[_0x4ee695(0x23a)](),_0x5f33a0='log/report_'+_0x3542b4+_0x4ee695(0x1f9);fs[_0x4ee695(0x1ee)](_0x5f33a0,_0x46e2bf,_0x91bc86['QNnKQ']),logger[_0x4ee695(0x1db)]('Report\x20saved\x20in\x20'+_0x5f33a0),process[_0x4ee695(0x1b0)](0x0);}catch(_0x2cd4bf){let _0x2638f2=_0x4ee695(0x1e4)+_0x2cd4bf+'\x20';logger['error'](_0x2638f2),_0x2638f2+='\x0a'+JSON[_0x4ee695(0x228)](_0x2cd4bf[_0x4ee695(0x241)]),logger[_0x4ee695(0x230)](_0x4ee695(0x22a)+_0x2cd4bf[_0x4ee695(0x241)]);if(_0x4e77de){const _0x46ace0={};_0x46ace0['type']=WS_EVENTS[_0x4ee695(0x294)],_0x46ace0['message']=_0x2638f2,webSocketUtils['sendEventToBackend'](_0x4e77de,_0x46ace0,_0x91bc86[_0x4ee695(0x289)],!![]);}await webSocketUtils[_0x4ee695(0x207)](0x7d0);const _0x3c2c60={};_0x3c2c60[_0x4ee695(0x295)]=_0x2638f2,await _0x91bc86['vDKVf'](sendInstrumentationEvent,_0x52ad4b,_0x91bc86[_0x4ee695(0x1ad)],messageTypes[_0x4ee695(0x1f3)],_0x91bc86[_0x4ee695(0x1eb)],_0x3c2c60,_0x52ad4b),process[_0x4ee695(0x1b0)](0x1);}};
1
+ const a17_0x141739=a17_0x55b9;(function(_0x10824b,_0x144a84){const _0x4d0554=a17_0x55b9,_0x568f94=_0x10824b();while(!![]){try{const _0x3f76b8=-parseInt(_0x4d0554(0xe0))/0x1+-parseInt(_0x4d0554(0xcb))/0x2+parseInt(_0x4d0554(0xf8))/0x3*(-parseInt(_0x4d0554(0x126))/0x4)+-parseInt(_0x4d0554(0x11e))/0x5+parseInt(_0x4d0554(0x125))/0x6+-parseInt(_0x4d0554(0x17e))/0x7*(parseInt(_0x4d0554(0x114))/0x8)+parseInt(_0x4d0554(0x169))/0x9;if(_0x3f76b8===_0x144a84)break;else _0x568f94['push'](_0x568f94['shift']());}catch(_0x48b60d){_0x568f94['push'](_0x568f94['shift']());}}}(a17_0x5655,0xed25d));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x141739(0x103)),ReconnectingWebSocket=require(a17_0x141739(0xc4)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x141739(0xd9)),{logger}=require(a17_0x141739(0xfa)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x141739(0x14a)),{sendInstrumentationEvent}=require(a17_0x141739(0xf9));exports['command']=a17_0x141739(0x115),exports[a17_0x141739(0x12e)]=a17_0x141739(0xf5),exports[a17_0x141739(0x12c)]=function(_0x8ab850){const _0x3a84fe=a17_0x141739,_0x4ae028={};_0x4ae028[_0x3a84fe(0x178)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x4ae028[_0x3a84fe(0xd2)]=_0x3a84fe(0xbf),_0x4ae028[_0x3a84fe(0x158)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4ae028[_0x3a84fe(0x108)]=_0x3a84fe(0x134),_0x4ae028['fpsmf']=_0x3a84fe(0xa4),_0x4ae028[_0x3a84fe(0x16e)]=_0x3a84fe(0x122);const _0x563c45=_0x4ae028,_0x438c6e={};_0x438c6e[_0x3a84fe(0x132)]=_0x563c45[_0x3a84fe(0x178)],_0x438c6e[_0x3a84fe(0xff)]=_0x563c45[_0x3a84fe(0xd2)];const _0x455114={};_0x455114[_0x3a84fe(0x132)]=_0x563c45['qAovl'],_0x455114[_0x3a84fe(0xff)]=_0x563c45[_0x3a84fe(0xd2)];const _0x2e8bc8={};_0x2e8bc8['description']=_0x563c45['bQfAx'],_0x2e8bc8[_0x3a84fe(0xff)]=_0x563c45[_0x3a84fe(0xd2)];const _0x16e9a3={};_0x16e9a3['description']=_0x563c45[_0x3a84fe(0x173)],_0x16e9a3[_0x3a84fe(0xff)]=_0x563c45[_0x3a84fe(0xd2)];const _0x5bea00={};return _0x5bea00['cluster-name']=_0x438c6e,_0x5bea00[_0x3a84fe(0xa7)]=_0x455114,_0x5bea00['region']=_0x2e8bc8,_0x5bea00['grid-profile']=_0x16e9a3,_0x8ab850['usage'](HELP_HEADER_MESSAGE[_0x3a84fe(0x140)])[_0x3a84fe(0xb4)](HELP_FOOTER_MESSAGE)[_0x3a84fe(0xe6)](_0x5bea00)[_0x3a84fe(0x122)](_0x563c45['FcHnb'])['argv'];};async function inputValidation(_0x1e7d69,_0x4d3c9b){const _0x4aeef5=a17_0x141739,_0x51f0ef={'qnaNR':_0x4aeef5(0x18e),'oswkI':_0x4aeef5(0xa7),'cYZcZ':'error','XTkoD':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','todlx':'string','vQdtz':_0x4aeef5(0x13e),'YybnC':_0x4aeef5(0x134),'SBHTA':_0x4aeef5(0xa4),'DEhMb':'help','tdsdI':_0x4aeef5(0x101),'XeVJm':_0x4aeef5(0xf7),'ppdjV':function(_0x1904c5,_0x7a5de3){return _0x1904c5+_0x7a5de3;},'BFLDK':'Success','ickca':'Failure','XJGra':function(_0x199ff2,_0x12317c){return _0x199ff2||_0x12317c;},'vdmPv':_0x4aeef5(0xd1),'tHCtX':'Error\x20Details:\x0a','InlAF':'cluster-name','PnPxL':function(_0x3bf958,_0x419177){return _0x3bf958!==_0x419177;},'fbWJp':_0x4aeef5(0xb9),'XwTMD':_0x4aeef5(0x186),'DQrVK':function(_0x30d5b9,_0x4ef5bc){return _0x30d5b9!==_0x4ef5bc;},'OSPAd':_0x4aeef5(0x11b),'QATKz':_0x4aeef5(0xc2),'qNfcG':function(_0x16ae03,_0x3fa801){return _0x16ae03!==_0x3fa801;},'MQZcX':_0x4aeef5(0xef),'ZHeRp':'HIvNU','pqHET':function(_0xcd2e27,_0x4e9e99){return _0xcd2e27===_0x4e9e99;},'WhWAC':'kNyIY','OIaKT':_0x4aeef5(0x18d),'uCqWA':function(_0x860de4,_0xd1e57d){return _0x860de4===_0xd1e57d;},'xQQGy':_0x4aeef5(0x10f),'RSLHf':_0x4aeef5(0xc8),'eGlJF':function(_0x7657f4,_0x475e07){return _0x7657f4>_0x475e07;},'fMsQd':function(_0x8fffbf,_0x1d348d){return _0x8fffbf!==_0x1d348d;},'gMgrs':_0x4aeef5(0xba),'pZSFM':_0x4aeef5(0xf3),'myiPJ':function(_0x27f9d2,_0x32bf99,_0x37d065,_0x5714fe,_0x542149,_0x36a8e9,_0x2cecfe,_0x307c5f){return _0x27f9d2(_0x32bf99,_0x37d065,_0x5714fe,_0x542149,_0x36a8e9,_0x2cecfe,_0x307c5f);},'ecEXs':_0x4aeef5(0x136),'xvcLB':_0x4aeef5(0x15c),'qVEQX':function(_0xc7efd9,_0x55e0bb){return _0xc7efd9!==_0x55e0bb;},'JbUVl':_0x4aeef5(0xe1),'Csyce':_0x4aeef5(0x161),'GzgOp':_0x4aeef5(0x152),'zQSJv':function(_0x154d19,_0x222354){return _0x154d19!==_0x222354;},'Pcozk':_0x4aeef5(0xb5),'ogGOq':function(_0x284a0c,_0x289b80){return _0x284a0c===_0x289b80;},'EZlAl':_0x4aeef5(0xda),'Sijiv':_0x4aeef5(0xdc),'emGDy':'GET','IgSQb':function(_0x212131,_0x41dc1d,_0x4a7a78){return _0x212131(_0x41dc1d,_0x4a7a78);},'xFYwb':function(_0x58f740,_0x1a347e,_0x303925,_0x2e87a2,_0x3aa537,_0x1389d7){return _0x58f740(_0x1a347e,_0x303925,_0x2e87a2,_0x3aa537,_0x1389d7);},'iCqMe':'pre-check','hzIKu':_0x4aeef5(0x131),'koKRM':_0x4aeef5(0x14c),'DekHl':function(_0x30ccaa,_0x5dacee){return _0x30ccaa(_0x5dacee);},'OsiLx':'tROkc','RlMNf':_0x4aeef5(0x129),'Jtmsq':'pre-check-grid-profile-empty','KHNom':function(_0x1ac9ef,_0x367f10){return _0x1ac9ef===_0x367f10;},'BvHBG':'PxZTO','QRsZT':_0x4aeef5(0x118),'RgTXA':'Grid\x20profile\x20fetched\x20for\x20pre-check','Qdcdq':'Syjss','daHFn':_0x4aeef5(0x17c),'nmwld':_0x4aeef5(0x11d),'pDXbD':function(_0x4ccc42,_0x4aaa82){return _0x4ccc42===_0x4aaa82;},'WemmG':'ZnUuX','ZVPGV':_0x4aeef5(0x119)};let _0x47467b;try{if(_0x51f0ef['PnPxL'](_0x51f0ef[_0x4aeef5(0xf0)],_0x51f0ef[_0x4aeef5(0xd0)])){if(_0x1e7d69[_0x4aeef5(0xd8)]||_0x1e7d69['cloudProvider']||_0x1e7d69['region']){if(_0x51f0ef[_0x4aeef5(0x16b)](_0x51f0ef['OSPAd'],_0x51f0ef[_0x4aeef5(0xb8)])){const _0x4a1fd2=[];!_0x1e7d69[_0x4aeef5(0xd8)]&&(_0x51f0ef[_0x4aeef5(0x151)](_0x51f0ef[_0x4aeef5(0xa6)],_0x51f0ef['ZHeRp'])?_0x4a1fd2[_0x4aeef5(0x141)](_0x51f0ef['InlAF']):_0x3e22f8=_0x5b9ec1);;!_0x1e7d69['cloudProvider']&&(_0x51f0ef[_0x4aeef5(0x12b)](_0x51f0ef[_0x4aeef5(0xc3)],_0x51f0ef[_0x4aeef5(0xae)])?_0x1549c5[_0x4aeef5(0x141)](_0x51f0ef[_0x4aeef5(0x194)]):_0x4a1fd2[_0x4aeef5(0x141)](_0x51f0ef['oswkI']));;!_0x1e7d69[_0x4aeef5(0x18e)]&&(_0x51f0ef[_0x4aeef5(0x142)](_0x51f0ef['xQQGy'],_0x51f0ef[_0x4aeef5(0x14b)])?_0x35e61e[_0x4aeef5(0x18c)](_0x4aeef5(0xd4)+_0x1994c1[_0x4aeef5(0x18c)][_0x4aeef5(0xb1)]):_0x4a1fd2['push'](_0x51f0ef[_0x4aeef5(0x194)]));;_0x51f0ef[_0x4aeef5(0x123)](_0x4a1fd2[_0x4aeef5(0x102)],0x0)&&(_0x51f0ef[_0x4aeef5(0xe3)](_0x51f0ef['gMgrs'],_0x51f0ef[_0x4aeef5(0xbb)])?(_0x47467b='Missing\x20required\x20arguments:\x20'+_0x4a1fd2[_0x4aeef5(0x107)](',\x20')+_0x4aeef5(0x170),await _0x51f0ef[_0x4aeef5(0x14e)](reportToGalactusAndSendToEDS,_0x1e7d69,_0x4d3c9b,_0x47467b,messageTypes[_0x4aeef5(0x13a)],_0x51f0ef[_0x4aeef5(0x168)],_0x51f0ef[_0x4aeef5(0x147)],_0x51f0ef['cYZcZ']),logger[_0x4aeef5(0x18c)](_0x47467b),process[_0x4aeef5(0xca)](0x1)):_0x5a0770['push'](_0x51f0ef[_0x4aeef5(0x13f)]));if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x1e7d69[_0x4aeef5(0x127)][_0x4aeef5(0xfb)]())){if(_0x51f0ef['qVEQX'](_0x51f0ef[_0x4aeef5(0x105)],_0x51f0ef[_0x4aeef5(0x105)])){const _0x1c0a06={};_0x1c0a06[_0x4aeef5(0xff)]=_0x17eccf['LOG'],_0x1c0a06['message']=_0x8b5231,_0x497ad1[_0x4aeef5(0x137)](_0x1eca66,_0x1c0a06,_0x51f0ef['cYZcZ'],!![]);}else{_0x47467b=_0x51f0ef[_0x4aeef5(0xaf)],await _0x51f0ef[_0x4aeef5(0x14e)](reportToGalactusAndSendToEDS,_0x1e7d69,_0x4d3c9b,_0x47467b,messageTypes[_0x4aeef5(0x13a)],_0x51f0ef['ecEXs'],_0x51f0ef[_0x4aeef5(0x18f)],_0x51f0ef['cYZcZ']),logger[_0x4aeef5(0x18c)](_0x47467b);if(!_0x1e7d69[_0x4aeef5(0x127)]){if(_0x51f0ef[_0x4aeef5(0x192)](_0x51f0ef[_0x4aeef5(0x111)],_0x51f0ef[_0x4aeef5(0x111)])){const _0x46d19e={};_0x46d19e['description']=_0x51f0ef['XTkoD'],_0x46d19e[_0x4aeef5(0xff)]=_0x51f0ef[_0x4aeef5(0x10d)];const _0x3fd9a8={};_0x3fd9a8['description']=_0x51f0ef['vQdtz'],_0x3fd9a8['type']=_0x51f0ef[_0x4aeef5(0x10d)];const _0x2f12bd={};_0x2f12bd[_0x4aeef5(0x132)]=_0x51f0ef['YybnC'],_0x2f12bd['type']=_0x51f0ef[_0x4aeef5(0x10d)];const _0x2fcd78={};_0x2fcd78[_0x4aeef5(0x132)]=_0x51f0ef['SBHTA'],_0x2fcd78[_0x4aeef5(0xff)]=_0x51f0ef[_0x4aeef5(0x10d)];const _0x52133b={};return _0x52133b[_0x4aeef5(0x10e)]=_0x46d19e,_0x52133b['cloud-provider']=_0x3fd9a8,_0x52133b['region']=_0x2f12bd,_0x52133b[_0x4aeef5(0x131)]=_0x2fcd78,_0x41ac06[_0x4aeef5(0xc6)](_0x45bc8e['pre_check'])[_0x4aeef5(0xb4)](_0xe1831f)[_0x4aeef5(0xe6)](_0x52133b)['help'](_0x51f0ef[_0x4aeef5(0x150)])[_0x4aeef5(0x157)];}else logger[_0x4aeef5(0x183)](_0x4aeef5(0x15d)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x1e7d69[_0x4aeef5(0x127)]=DEFAULT_CLUSTER_DETAILS[_0x4aeef5(0xe9)];}}}global_registry[_0x4aeef5(0xd8)]=_0x1e7d69[_0x4aeef5(0xd8)],global_registry[_0x4aeef5(0x127)]=_0x1e7d69[_0x4aeef5(0x127)],global_registry[_0x4aeef5(0xe8)]=_0x1e7d69[_0x4aeef5(0x18e)];}else _0x35dc76+=_0x4aeef5(0x12d)+_0x515e5a[_0x4aeef5(0xd8)]+'\x20'+(_0x49d4f1?_0x51f0ef[_0x4aeef5(0xde)]:_0x51f0ef['XeVJm'])+'\x0a\x0a';}else{if(_0x1e7d69[_0x4aeef5(0x9e)]){if(_0x51f0ef[_0x4aeef5(0x154)](_0x51f0ef['EZlAl'],_0x51f0ef[_0x4aeef5(0x9f)]))_0x4fedef['info'](_0x4aeef5(0x15d)+_0x52536['CLOUD_PROVIDER']+'\x20'),_0x753b2e[_0x4aeef5(0x127)]=_0x46feed['CLOUD_PROVIDER'];else{global_registry[_0x4aeef5(0x9e)]=_0x1e7d69['gridProfile'],logger[_0x4aeef5(0x10c)](_0x4aeef5(0x159)+_0x1e7d69[_0x4aeef5(0x9e)]);const _0x2877d3='https://'+AG_API_URL+_0x4aeef5(0x124),_0x29dc03={};_0x29dc03[_0x4aeef5(0x121)]=_0x51f0ef[_0x4aeef5(0x138)],_0x29dc03[_0x4aeef5(0xdd)]=global_registry[_0x4aeef5(0xeb)],_0x29dc03[_0x4aeef5(0xc9)]=![];const _0x2bcd96=_0x29dc03,_0x56456d=await _0x51f0ef[_0x4aeef5(0x16f)](got,_0x2877d3,_0x2bcd96),_0x4212bb=await _0x51f0ef[_0x4aeef5(0xe7)](responseValidation,_0x56456d,_0x51f0ef[_0x4aeef5(0xce)],_0x51f0ef[_0x4aeef5(0xbc)],_0x1e7d69,_0x4d3c9b);let _0x2819ab={};if(_0x51f0ef[_0x4aeef5(0x12b)](_0x4212bb,0xc8)){if(_0x51f0ef[_0x4aeef5(0x192)](_0x51f0ef[_0x4aeef5(0x155)],_0x51f0ef[_0x4aeef5(0x155)])){const {header:_0x5de5bd,response:_0x32ca87}=_0x3e0fa2,{status:_0x308922,data:_0x51293c,error:_0x4bff38}=_0x32ca87;_0x4f9f2b+=_0x5de5bd+'\x20#'+_0x51f0ef[_0x4aeef5(0xfe)](_0x2b4c24,0x1)+'\x0a',_0x397489+='Status:\x20'+(_0x308922?_0x51f0ef[_0x4aeef5(0x15a)]:_0x51f0ef[_0x4aeef5(0x185)])+'\x0a',_0x2c1528+=_0x4aeef5(0x10a)+_0x51f0ef['XJGra'](_0x51293c,_0x51f0ef['vdmPv'])+'\x0a',_0x4bff38&&(_0x3810ee+=_0x51f0ef['tHCtX'],_0x134734+='\x20\x20Message:\x20'+(_0x4bff38['message']||_0x51f0ef[_0x4aeef5(0xc7)])+'\x0a',_0x1a46ec+=_0x4aeef5(0x179)+(_0x4bff38[_0x4aeef5(0x15b)]||_0x51f0ef[_0x4aeef5(0xc7)])+'\x0a',_0x41266c+='\x20\x20Stack:\x20'+(_0x4bff38[_0x4aeef5(0xb1)]||_0x51f0ef[_0x4aeef5(0xc7)])+'\x0a'),_0x4133e1+='\x0a\x0a';}else{const _0x1baced=JSON[_0x4aeef5(0x13d)](_0x56456d[_0x4aeef5(0xed)]),_0x41762e=_0x1baced[_0x4aeef5(0x189)](_0x5e1540=>_0x5e1540[_0x4aeef5(0x16c)]===_0x1e7d69[_0x4aeef5(0x9e)])||null;_0x51f0ef[_0x4aeef5(0x14d)](isUndefined,_0x41762e)?_0x51f0ef['pqHET'](_0x51f0ef[_0x4aeef5(0xd6)],_0x51f0ef[_0x4aeef5(0x193)])?_0x27b5e9['info'](_0x4aeef5(0x10b)+_0x492f02[_0x4aeef5(0xd8)]+_0x4aeef5(0xe4)):(_0x47467b='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x1e7d69['gridProfile']+_0x4aeef5(0x163),await _0x51f0ef['myiPJ'](reportToGalactusAndSendToEDS,_0x1e7d69,_0x4d3c9b,_0x47467b,messageTypes['ERROR'],_0x51f0ef[_0x4aeef5(0x168)],_0x51f0ef['Jtmsq'],_0x51f0ef[_0x4aeef5(0xcf)]),logger['error'](_0x47467b),process['exit'](0x1)):_0x51f0ef[_0x4aeef5(0x110)](_0x51f0ef['BvHBG'],_0x51f0ef[_0x4aeef5(0x153)])?_0x2819ab=_0x41762e:_0x54d24d+=_0x4aeef5(0x12d)+_0x566ed9[_0x4aeef5(0xd8)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}}else _0x51f0ef['DQrVK'](_0x51f0ef[_0x4aeef5(0x167)],_0x51f0ef[_0x4aeef5(0x167)])?_0x7821bb[_0x4aeef5(0x141)](_0x51f0ef['InlAF']):process[_0x4aeef5(0xca)](0x1);const _0x523261={};_0x523261['type']=WS_EVENTS['LOG'],_0x523261[_0x4aeef5(0x106)]=_0x51f0ef['RgTXA'],webSocketUtils[_0x4aeef5(0x137)](_0x4d3c9b,_0x523261),global_registry[_0x4aeef5(0x127)]=_0x2819ab[_0x4aeef5(0x127)],global_registry[_0x4aeef5(0xe8)]=_0x2819ab[_0x4aeef5(0x18e)],global_registry[_0x4aeef5(0xd8)]=_0x2819ab['clusterName'];}}else _0x51f0ef[_0x4aeef5(0x151)](_0x51f0ef[_0x4aeef5(0x146)],_0x51f0ef[_0x4aeef5(0x17d)])?(logger[_0x4aeef5(0x18c)](_0x51f0ef['nmwld']),process[_0x4aeef5(0xca)](0x1)):_0x387fd0[_0x4aeef5(0xca)](0x1);}}else _0x3e6d80+=_0x51f0ef[_0x4aeef5(0xc1)],_0x1a0a2e+=_0x4aeef5(0x171)+(_0x263091['message']||_0x51f0ef[_0x4aeef5(0xc7)])+'\x0a',_0x237028+='\x20\x20Code:\x20'+(_0x38b52a['code']||_0x51f0ef[_0x4aeef5(0xc7)])+'\x0a',_0x4c0a9f+=_0x4aeef5(0x16d)+(_0x12a8ae['stack']||_0x51f0ef[_0x4aeef5(0xc7)])+'\x0a';}catch(_0x50e3d1){_0x51f0ef[_0x4aeef5(0x13b)](_0x51f0ef[_0x4aeef5(0x166)],_0x51f0ef[_0x4aeef5(0x148)])?(_0x241981['info']('['+_0x32e527+_0x4aeef5(0xfd)+_0x1e9342[_0x4aeef5(0xe2)]+_0x4aeef5(0xdb)+_0x3715ff[_0x4aeef5(0x187)]+_0x4aeef5(0x188)+_0x2582b1[_0x4aeef5(0x18c)]),_0x5a7593[_0x4aeef5(0x18c)]&&_0x2f0196['error'](_0x4aeef5(0xd4)+_0x2d0444[_0x4aeef5(0x18c)]['stack'])):(_0x47467b='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x50e3d1+':\x20'+_0x50e3d1[_0x4aeef5(0xb1)],logger[_0x4aeef5(0x18c)](_0x47467b),await _0x51f0ef[_0x4aeef5(0x14e)](reportToGalactusAndSendToEDS,_0x1e7d69,_0x4d3c9b,_0x47467b,messageTypes['ERROR'],_0x51f0ef['ecEXs'],_0x51f0ef[_0x4aeef5(0x18f)],_0x51f0ef[_0x4aeef5(0xcf)]),process['exit'](0x1));}}function printResponse(_0x41450c,_0x4923d3){const _0x4a6435=a17_0x141739,_0x598e23={};_0x598e23[_0x4a6435(0x135)]=_0x4a6435(0x11d),_0x598e23[_0x4a6435(0x12a)]=function(_0x5d4ab4,_0x2ba2fd){return _0x5d4ab4!==_0x2ba2fd;},_0x598e23[_0x4a6435(0x128)]=_0x4a6435(0x160),_0x598e23['XgjQi']=_0x4a6435(0xd7);const _0x241a55=_0x598e23;logger[_0x4a6435(0x183)]('['+_0x41450c+_0x4a6435(0xfd)+_0x4923d3[_0x4a6435(0xe2)]+_0x4a6435(0xdb)+_0x4923d3[_0x4a6435(0x187)]+_0x4a6435(0x188)+_0x4923d3[_0x4a6435(0x18c)]),_0x4923d3[_0x4a6435(0x18c)]&&(_0x241a55[_0x4a6435(0x12a)](_0x241a55[_0x4a6435(0x128)],_0x241a55[_0x4a6435(0xd5)])?logger[_0x4a6435(0x18c)]('error\x20stack\x20:\x20'+_0x4923d3[_0x4a6435(0x18c)][_0x4a6435(0xb1)]):(_0x2eaca6['error'](_0x241a55[_0x4a6435(0x135)]),_0x31b76f['exit'](0x1)));}function a17_0x5655(){const _0x55b2c0=['BmaFy','JbUVl','message','join','bQfAx','toolInstalledResp','Message:\x20','Cluster\x20`','debug','todlx','cluster-name','zydxL','KHNom','Pcozk','credential-not-found','checkAccess','3147864LZYWxL','grid','getUTCDate','vyZxm','UGpKP','NeLuU','isClusterPresent','BcauW','ZgVmT','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','8811285xEDNOd','User\x20Access','3|0|4|2|1','method','help','eGlJF','/packages/cli/get-all-grid-profiles','9582072GJnQva','1866676hfyfbE','cloudProvider','TzltS','ONGex','vGKpF','pqHET','builder','Cluster\x20','desc','Boatt','IBDwn','grid-profile','description','itJrD','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','DXHaJ','pre-check-grid-called','sendEventToBackend','emGDy','NmEeb','ERROR','pDXbD','replace','parse','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','oswkI','pre_check','push','uCqWA','EXdez','zcOCQ','liIOX','Qdcdq','xvcLB','ZVPGV','AOHQq','../../utils/webSocketUtils','RSLHf','kPqtw','DekHl','myiPJ','zqYQS','DEhMb','qNfcG','cloud-provider-not-supported','BvHBG','ogGOq','koKRM','unable\x20to\x20verify\x20if\x20cluster\x20`','argv','qAovl','grid\x20profile\x20flow\x20','BFLDK','code','pre-check-cluster-args-not-passed','Setting\x20cloud\x20provider\x20as\x20','log/report_','writeFileSync','sbSZG','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','YdnRb','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','isTls1_2_SUPPORTED','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','WemmG','QRsZT','ecEXs','36979578jFszFp','lfXmB','DQrVK','name','\x20\x20Stack:\x20','FcHnb','IgSQb','.\x20Please\x20provide\x20all\x20required\x20arguments.','\x20\x20Message:\x20','\x20===\x0a\x0a','fpsmf','Whitelisted\x20browserstack','Success','accessResp','bbtOt','FSLON','\x20\x20Code:\x20','bstackUsername','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','uycZi','daHFn','21Yydssf','Cluster\x20details\x0a-----------------------\x0a','stringify','existsSync','isTrialGridAccessible','info','header','ickca','MPUJt','data','\x20error\x20:\x20','find','requestId','IledS','error','mKWda','region','GzgOp','isCliToolInstalled','HMNSC','zQSJv','RlMNf','qnaNR','gridProfile','Sijiv','===\x20Precheck\x20Report\x20-\x20','Pre-check\x20running\x20for\x20Cloud\x20-\x20','jfnCd','getUTCFullYear','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','response','MQZcX','cloud-provider','ThGOK','getUTCHours','.txt','forEach','<UsernamePlaceholder>','password','OIaKT','Csyce','Failed\x20in\x20pre-check!\x20Error:\x20','stack','SSL\x20Configured','init','epilogue','EJQoB','ffnTb','WebSocket','QATKz','qYhrW','eRsMz','pZSFM','hzIKu','username','connectionTimeout','string','`\x20,error\x20:\x20','tHCtX','ovrBa','WhWAC','reconnecting-websocket','Browserstack','usage','vdmPv','NriUX','throwHttpErrors','exit','1877354QOkIOu','handler','ZJfXg','iCqMe','cYZcZ','XwTMD','N/A','FHPHf','readFileSync','error\x20stack\x20:\x20','XgjQi','OsiLx','htqmo','clusterName','../../utils/utilityMethods','uHuiV','\x20data\x20:\x20','rdDbm','headers','tdsdI','FQHKm','386445MqpedU','hCKOP','status','fMsQd','`\x20already\x20exists','KWWvx','options','xFYwb','clusterRegion','CLOUD_PROVIDER','INFO','authHeader','\x20region\x20-\x20','body','Status:\x20','nixGf','fbWJp','Report\x20saved\x20in\x20','TLSv1_2_client_method','ZALgV','VtDeE','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','HkQAz','will\x20be\x20created','3ziSGhr','../../utils/instrumentationUtils','../../config/logger','toLowerCase','Failure',']\x20status\x20:\x20','ppdjV','type','lZXee','is\x20already\x20present','length','uuid'];a17_0x5655=function(){return _0x55b2c0;};return a17_0x5655();}function a17_0x55b9(_0xf4baf,_0x5dc057){const _0x565593=a17_0x5655();return a17_0x55b9=function(_0x55b969,_0x48c51f){_0x55b969=_0x55b969-0x9e;let _0x363321=_0x565593[_0x55b969];return _0x363321;},a17_0x55b9(_0xf4baf,_0x5dc057);}async function generateReport(_0x3ca50b,_0x28d2d4){const _0x5514d2=a17_0x141739,_0x322410={'ffnTb':function(_0x5c0a57,_0x9e0ac7){return _0x5c0a57+_0x9e0ac7;},'Boatt':_0x5514d2(0x175),'EXdez':_0x5514d2(0xfc),'lrQjB':function(_0x5cde3a,_0x132abe){return _0x5cde3a||_0x132abe;},'IledS':_0x5514d2(0xd1),'vyZxm':'Error\x20Details:\x0a','itJrD':_0x5514d2(0x17f),'MHOqL':function(_0x21ecad,_0x2a16e1){return _0x21ecad!=_0x2a16e1;},'ZgVmT':'is\x20already\x20present','UhjYt':'will\x20be\x20created','zcOCQ':function(_0x404b5b){return _0x404b5b();}};let _0x217bda=_0x5514d2(0xa0)+global_registry['cloudProvider']+_0x5514d2(0x172);return _0x3ca50b[_0x5514d2(0xab)]((_0x14295e,_0x4c20c6)=>{const _0x13ca59=_0x5514d2,{header:_0x589327,response:_0x33c332}=_0x14295e,{status:_0x3baae8,data:_0x3994ec,error:_0x231b49}=_0x33c332;_0x217bda+=_0x589327+'\x20#'+_0x322410[_0x13ca59(0xb6)](_0x4c20c6,0x1)+'\x0a',_0x217bda+=_0x13ca59(0xee)+(_0x3baae8?_0x322410[_0x13ca59(0x12f)]:_0x322410[_0x13ca59(0x143)])+'\x0a',_0x217bda+=_0x13ca59(0x10a)+_0x322410['lrQjB'](_0x3994ec,_0x322410[_0x13ca59(0x18b)])+'\x0a',_0x231b49&&(_0x217bda+=_0x322410[_0x13ca59(0x117)],_0x217bda+=_0x13ca59(0x171)+(_0x231b49['message']||_0x322410[_0x13ca59(0x18b)])+'\x0a',_0x217bda+=_0x13ca59(0x179)+(_0x231b49[_0x13ca59(0x15b)]||_0x322410[_0x13ca59(0x18b)])+'\x0a',_0x217bda+=_0x13ca59(0x16d)+(_0x231b49[_0x13ca59(0xb1)]||_0x322410[_0x13ca59(0x18b)])+'\x0a'),_0x217bda+='\x0a\x0a';}),_0x217bda+=_0x322410[_0x5514d2(0x133)],_0x322410['MHOqL'](_0x28d2d4,null)?_0x217bda+='Cluster\x20'+global_registry[_0x5514d2(0xd8)]+'\x20'+(_0x28d2d4?_0x322410[_0x5514d2(0x11c)]:_0x322410['UhjYt'])+'\x0a\x0a':_0x217bda+=_0x5514d2(0x12d)+global_registry['clusterName']+_0x5514d2(0x165),_0x217bda+=_0x322410[_0x5514d2(0x144)](getSystemMetaData),_0x217bda;};exports[a17_0x141739(0xcc)]=async function(_0x2eb474){const _0x1b5f9b=a17_0x141739,_0x4355ed={'Rojbw':function(_0x378845){return _0x378845();},'FQHKm':function(_0x272cda){return _0x272cda();},'HjvGg':_0x1b5f9b(0x17b),'KWWvx':function(_0x1e4e7d,_0x4b8497,_0x3f43a7,_0x2b26f1,_0x84ee7f,_0xc9a3b,_0x51e8f6,_0x39b434){return _0x1e4e7d(_0x4b8497,_0x3f43a7,_0x2b26f1,_0x84ee7f,_0xc9a3b,_0x51e8f6,_0x39b434);},'jfnCd':_0x1b5f9b(0x136),'ThGOK':_0x1b5f9b(0x112),'ZJfXg':_0x1b5f9b(0x18c),'HMNSC':function(_0x1348bb,_0x15d3e9,_0x12ede8,_0x5e98fb,_0x4ca82b,_0x1625c7,_0x3ce32c){return _0x1348bb(_0x15d3e9,_0x12ede8,_0x5e98fb,_0x4ca82b,_0x1625c7,_0x3ce32c);},'bbtOt':_0x1b5f9b(0xac),'TKWtD':'<PasswordPlaceholder>','lZXee':function(_0x123b1b,_0x759278,_0x3ba732){return _0x123b1b(_0x759278,_0x3ba732);},'BmaFy':function(_0x4486a9,_0x35ac27,_0x3c190f,_0x1f645c,_0x488eb5,_0x3d29ac,_0x2ebf62){return _0x4486a9(_0x35ac27,_0x3c190f,_0x1f645c,_0x488eb5,_0x3d29ac,_0x2ebf62);},'NmEeb':'dummy-grid','zqYQS':_0x1b5f9b(0x109),'AOHQq':_0x1b5f9b(0x120),'VtDeE':_0x1b5f9b(0x176),'liIOX':_0x1b5f9b(0x182),'ElZJQ':function(_0x3ed0cf,_0x463791){return _0x3ed0cf(_0x463791);},'lfXmB':_0x1b5f9b(0xf2),'IBDwn':_0x1b5f9b(0x164),'LpuSV':'Tool\x20Installed','zRTNB':_0x1b5f9b(0x11f),'vhglI':_0x1b5f9b(0x174),'YdnRb':_0x1b5f9b(0xb2),'xJFSx':function(_0xc6e4c9,_0x3b8c57){return _0xc6e4c9+_0x3b8c57;},'HkQAz':'utf-8','WiVGq':function(_0x38f0e0,_0x51737a,_0x54281b,_0x5aba3c,_0x4e37a6,_0x30d39a,_0x4f7a25){return _0x38f0e0(_0x51737a,_0x54281b,_0x5aba3c,_0x4e37a6,_0x30d39a,_0x4f7a25);},'IwssD':'pre-check-failed'};let _0x3f84f0,_0xd36f15;try{global_registry[_0x1b5f9b(0x18a)]=_0x4355ed['Rojbw'](uuidv4);!fs[_0x1b5f9b(0x181)](_0x4355ed[_0x1b5f9b(0xdf)](getCredentialsPath))&&(_0xd36f15=_0x4355ed['HjvGg'],logger[_0x1b5f9b(0x18c)](_0xd36f15),await _0x4355ed['KWWvx'](reportToGalactusAndSendToEDS,_0x2eb474,_0x3f84f0,_0xd36f15,messageTypes[_0x1b5f9b(0x13a)],_0x4355ed[_0x1b5f9b(0xa2)],_0x4355ed[_0x1b5f9b(0xa8)],_0x4355ed[_0x1b5f9b(0xcd)]),process[_0x1b5f9b(0xca)](0x1));_0x4355ed[_0x1b5f9b(0x191)](sendInstrumentationEvent,_0x2eb474,_0x4355ed[_0x1b5f9b(0xa2)],messageTypes[_0x1b5f9b(0xea)],null,null,_0x2eb474);const _0x232fa8=JSON[_0x1b5f9b(0x13d)](fs[_0x1b5f9b(0xd3)](_0x4355ed['Rojbw'](getCredentialsPath)));global_registry[_0x1b5f9b(0x17a)]=_0x232fa8[_0x1b5f9b(0xc5)][_0x1b5f9b(0xbd)],global_registry['bstackAccesskey']=_0x232fa8[_0x1b5f9b(0xc5)][_0x1b5f9b(0xad)];const _0x12a231=WS_ENDPOINT[_0x1b5f9b(0x13c)](_0x4355ed[_0x1b5f9b(0x177)],_0x232fa8[_0x1b5f9b(0xc5)][_0x1b5f9b(0xbd)])[_0x1b5f9b(0x13c)](_0x4355ed['TKWtD'],_0x232fa8[_0x1b5f9b(0xc5)][_0x1b5f9b(0xad)]),_0x2b340a={};_0x2b340a[_0x1b5f9b(0xb7)]=ws,_0x2b340a[_0x1b5f9b(0xbe)]=0x36ee80,_0x3f84f0=new ReconnectingWebSocket(_0x12a231,[],_0x2b340a),global_registry['authHeader']=_0x4355ed[_0x1b5f9b(0x100)](getAuthHeader,global_registry[_0x1b5f9b(0x17a)],global_registry['bstackAccesskey']),await _0x4355ed[_0x1b5f9b(0x100)](inputValidation,_0x2eb474,_0x3f84f0),logger[_0x1b5f9b(0x183)](_0x1b5f9b(0xa1)+global_registry['cloudProvider']+_0x1b5f9b(0xec)+global_registry['clusterRegion']);let _0x21149e=await _0x4355ed[_0x1b5f9b(0x104)](getCloudProviderObjectWithOutInit,global_registry[_0x1b5f9b(0x127)],global_registry[_0x1b5f9b(0xd8)],_0x4355ed[_0x1b5f9b(0x139)],_0x3f84f0,webSocketUtils,_0x2eb474);const _0x1eb343=await _0x21149e[_0x1b5f9b(0x190)]();_0x4355ed[_0x1b5f9b(0x100)](printResponse,_0x4355ed[_0x1b5f9b(0x14f)],_0x1eb343),_0x21149e=await _0x21149e[_0x1b5f9b(0xb3)]();let _0x25989d=![];try{_0x25989d=await _0x21149e[_0x1b5f9b(0x11a)]();}catch(_0x516f54){const _0x20c46b=_0x4355ed[_0x1b5f9b(0x149)]['split']('|');let _0x1a3ca0=0x0;while(!![]){switch(_0x20c46b[_0x1a3ca0++]){case'0':_0x25989d=null;continue;case'1':await _0x4355ed[_0x1b5f9b(0xe5)](reportToGalactusAndSendToEDS,_0x2eb474,_0x3f84f0,_0xd36f15,messageTypes['ERROR'],_0x4355ed['jfnCd'],'cluster-check-failed-'+global_registry['cloudProvider'],_0x4355ed['ZJfXg']);continue;case'2':_0xd36f15+='\x0a'+JSON[_0x1b5f9b(0x180)](_0x516f54[_0x1b5f9b(0xb1)]);continue;case'3':_0xd36f15=_0x1b5f9b(0x156)+global_registry[_0x1b5f9b(0xd8)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x1b5f9b(0xe8)]+_0x1b5f9b(0xc0)+_0x516f54;continue;case'4':logger[_0x1b5f9b(0x18c)](_0xd36f15);continue;}break;}}_0x25989d&&logger[_0x1b5f9b(0x183)](_0x1b5f9b(0x10b)+global_registry[_0x1b5f9b(0xd8)]+_0x1b5f9b(0xe4));const _0x1493a6=await _0x21149e[_0x1b5f9b(0x113)]();_0x4355ed[_0x1b5f9b(0x100)](printResponse,_0x4355ed[_0x1b5f9b(0xf4)],_0x1493a6);const _0x1a0521=await _0x4355ed[_0x1b5f9b(0xdf)](curlRequest);_0x4355ed[_0x1b5f9b(0x100)](printResponse,_0x4355ed[_0x1b5f9b(0x145)],_0x1a0521);const _0xd5e24d=await _0x4355ed['ElZJQ'](isTlsSupported,_0x4355ed[_0x1b5f9b(0x16a)]);_0x4355ed['lZXee'](printResponse,_0x4355ed[_0x1b5f9b(0x130)],_0xd5e24d);const _0x5233ef={};_0x5233ef[_0x1b5f9b(0x184)]=_0x4355ed['LpuSV'],_0x5233ef[_0x1b5f9b(0xa5)]=_0x1eb343;const _0x4bb2c8={};_0x4bb2c8[_0x1b5f9b(0x184)]=_0x4355ed['zRTNB'],_0x4bb2c8[_0x1b5f9b(0xa5)]=_0x1493a6;const _0x3485bd={};_0x3485bd['header']=_0x4355ed['vhglI'],_0x3485bd[_0x1b5f9b(0xa5)]=_0x1a0521;const _0x3540cb={};_0x3540cb[_0x1b5f9b(0x184)]=_0x4355ed[_0x1b5f9b(0x162)],_0x3540cb['response']=_0xd5e24d;const _0x1879d4=[_0x5233ef,_0x4bb2c8,_0x3485bd,_0x3540cb],_0x53e753=await _0x4355ed['lZXee'](generateReport,_0x1879d4,_0x25989d),_0x3fabef=new Date(),_0x4cc47f=_0x3fabef[_0x1b5f9b(0xa3)]()+'_'+_0x4355ed['xJFSx'](_0x3fabef['getUTCMonth'](),0x1)+'_'+_0x3fabef[_0x1b5f9b(0x116)]()+'_'+_0x3fabef[_0x1b5f9b(0xa9)]()+'_'+_0x3fabef['getUTCMinutes'](),_0xfcd8b4=_0x1b5f9b(0x15e)+_0x4cc47f+_0x1b5f9b(0xaa);fs[_0x1b5f9b(0x15f)](_0xfcd8b4,_0x53e753,_0x4355ed[_0x1b5f9b(0xf6)]),logger[_0x1b5f9b(0x183)](_0x1b5f9b(0xf1)+_0xfcd8b4),process[_0x1b5f9b(0xca)](0x0);}catch(_0x1ec218){let _0x517de1=_0x1b5f9b(0xb0)+_0x1ec218+'\x20';logger[_0x1b5f9b(0x18c)](_0x517de1),_0x517de1+='\x0a'+JSON[_0x1b5f9b(0x180)](_0x1ec218[_0x1b5f9b(0xb1)]),logger[_0x1b5f9b(0x10c)]('stack\x20trace\x20'+_0x1ec218['stack']);if(_0x3f84f0){const _0x5a0dd2={};_0x5a0dd2[_0x1b5f9b(0xff)]=WS_EVENTS['LOG'],_0x5a0dd2[_0x1b5f9b(0x106)]=_0x517de1,webSocketUtils[_0x1b5f9b(0x137)](_0x3f84f0,_0x5a0dd2,_0x4355ed[_0x1b5f9b(0xcd)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x55ecbb={};_0x55ecbb[_0x1b5f9b(0x18c)]=_0x517de1,await _0x4355ed['WiVGq'](sendInstrumentationEvent,_0x2eb474,_0x4355ed[_0x1b5f9b(0xa2)],messageTypes[_0x1b5f9b(0x13a)],_0x4355ed['IwssD'],_0x55ecbb,_0x2eb474),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a18_0x269c(_0x487845,_0x4665c4){const _0x116692=a18_0x1166();return a18_0x269c=function(_0x269ceb,_0xc3dbe8){_0x269ceb=_0x269ceb-0x14e;let _0x3e4a42=_0x116692[_0x269ceb];return _0x3e4a42;},a18_0x269c(_0x487845,_0x4665c4);}function a18_0x1166(){const _0x9f9b0b=['66428zINKwm','usage','demandCommand','2066238yPcRfT','strict','commandDir','start_commands','1450twgGmb','help','handler','34180289BOnSrs','30wmfndN','27ZBJClP','recommendCommands','epilogue','GWVwe','../config/constants','3060561xpYvIP','Start\x20an\x20existing\x20Automation\x20grid.','6118ihTdtk','1968BekSuj','start','2792yjHZKh','command','1466530cAisZB'];a18_0x1166=function(){return _0x9f9b0b;};return a18_0x1166();}const a18_0x50753b=a18_0x269c;(function(_0x57c51a,_0xa600b1){const _0xfbdb9c=a18_0x269c,_0x525ec4=_0x57c51a();while(!![]){try{const _0x2b645d=-parseInt(_0xfbdb9c(0x15e))/0x1*(parseInt(_0xfbdb9c(0x153))/0x2)+-parseInt(_0xfbdb9c(0x164))/0x3+parseInt(_0xfbdb9c(0x14e))/0x4*(-parseInt(_0xfbdb9c(0x15a))/0x5)+parseInt(_0xfbdb9c(0x156))/0x6+-parseInt(_0xfbdb9c(0x166))/0x7*(parseInt(_0xfbdb9c(0x150))/0x8)+parseInt(_0xfbdb9c(0x15f))/0x9*(-parseInt(_0xfbdb9c(0x152))/0xa)+parseInt(_0xfbdb9c(0x15d))/0xb;if(_0x2b645d===_0xa600b1)break;else _0x525ec4['push'](_0x525ec4['shift']());}catch(_0x3ba4d3){_0x525ec4['push'](_0x525ec4['shift']());}}}(a18_0x1166,0x85a48));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x50753b(0x163));exports[a18_0x50753b(0x151)]=a18_0x50753b(0x14f),exports['desc']=a18_0x50753b(0x165),exports['builder']=function(_0x418252){const _0x1f70e1=a18_0x50753b,_0x38c0e3={};_0x38c0e3[_0x1f70e1(0x162)]=_0x1f70e1(0x159),_0x38c0e3['ewYcQ']=_0x1f70e1(0x15b);const _0x508392=_0x38c0e3;return _0x418252[_0x1f70e1(0x154)](HELP_HEADER_MESSAGE[_0x1f70e1(0x14f)])[_0x1f70e1(0x161)](HELP_FOOTER_MESSAGE)[_0x1f70e1(0x158)](_0x508392[_0x1f70e1(0x162)])[_0x1f70e1(0x155)]()[_0x1f70e1(0x160)]()[_0x1f70e1(0x157)]()[_0x1f70e1(0x15b)](_0x508392['ewYcQ']);},exports[a18_0x50753b(0x15c)]=function(_0x321c96){};
1
+ const a18_0x5834a6=a18_0x2fb6;(function(_0x2acc2c,_0x9c460d){const _0x327b30=a18_0x2fb6,_0x3e491c=_0x2acc2c();while(!![]){try{const _0x1ddbf9=-parseInt(_0x327b30(0x1ac))/0x1*(-parseInt(_0x327b30(0x1a5))/0x2)+-parseInt(_0x327b30(0x1a3))/0x3+parseInt(_0x327b30(0x1a2))/0x4*(parseInt(_0x327b30(0x1b5))/0x5)+-parseInt(_0x327b30(0x1b1))/0x6+parseInt(_0x327b30(0x1a4))/0x7+-parseInt(_0x327b30(0x1b6))/0x8*(parseInt(_0x327b30(0x1a9))/0x9)+-parseInt(_0x327b30(0x1a1))/0xa;if(_0x1ddbf9===_0x9c460d)break;else _0x3e491c['push'](_0x3e491c['shift']());}catch(_0x2f09ba){_0x3e491c['push'](_0x3e491c['shift']());}}}(a18_0x2258,0x7f84c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x5834a6(0x1b3));function a18_0x2fb6(_0x1980d0,_0x5013f7){const _0x2258ea=a18_0x2258();return a18_0x2fb6=function(_0x2fb6df,_0x1a592b){_0x2fb6df=_0x2fb6df-0x19e;let _0x242289=_0x2258ea[_0x2fb6df];return _0x242289;},a18_0x2fb6(_0x1980d0,_0x5013f7);}exports[a18_0x5834a6(0x1b2)]=a18_0x5834a6(0x1a6),exports[a18_0x5834a6(0x1a7)]=a18_0x5834a6(0x1ad),exports[a18_0x5834a6(0x1a8)]=function(_0x479cb7){const _0x32c973=a18_0x5834a6,_0x190359={};_0x190359[_0x32c973(0x19f)]=_0x32c973(0x1a0),_0x190359['myrJK']='help';const _0xd224e7=_0x190359;return _0x479cb7[_0x32c973(0x1ae)](HELP_HEADER_MESSAGE[_0x32c973(0x1a6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x32c973(0x1af)](_0xd224e7['WqonU'])[_0x32c973(0x1b4)]()[_0x32c973(0x19e)]()[_0x32c973(0x1aa)]()[_0x32c973(0x1b0)](_0xd224e7[_0x32c973(0x1ab)]);},exports['handler']=function(_0xf451d9){};function a18_0x2258(){const _0x4988a8=['builder','20214bndmHM','strict','myrJK','274297NseyVB','Start\x20an\x20existing\x20Automation\x20grid.','usage','commandDir','help','107262uGJreh','command','../config/constants','demandCommand','715955kcQFrz','1360KuzyRB','recommendCommands','WqonU','start_commands','878260yplQEJ','28ZjrWAP','1327767Pbjfez','1230558nJkEGG','2MQLQkO','start','desc'];a18_0x2258=function(){return _0x4988a8;};return a18_0x2258();}
@@ -1 +1 @@
1
- const a19_0x4041f2=a19_0x1edb;function a19_0x1edb(_0xe7f013,_0x378022){const _0x3856a4=a19_0x3856();return a19_0x1edb=function(_0x1edb2b,_0x24f220){_0x1edb2b=_0x1edb2b-0x181;let _0x5b9546=_0x3856a4[_0x1edb2b];return _0x5b9546;},a19_0x1edb(_0xe7f013,_0x378022);}(function(_0x4b98d1,_0xc53c46){const _0x4eef35=a19_0x1edb,_0x200660=_0x4b98d1();while(!![]){try{const _0x1d553c=parseInt(_0x4eef35(0x1b0))/0x1*(parseInt(_0x4eef35(0x1d9))/0x2)+parseInt(_0x4eef35(0x198))/0x3+parseInt(_0x4eef35(0x187))/0x4+-parseInt(_0x4eef35(0x1c3))/0x5*(-parseInt(_0x4eef35(0x196))/0x6)+-parseInt(_0x4eef35(0x1cc))/0x7*(parseInt(_0x4eef35(0x18b))/0x8)+parseInt(_0x4eef35(0x1a7))/0x9+parseInt(_0x4eef35(0x19b))/0xa*(-parseInt(_0x4eef35(0x1d8))/0xb);if(_0x1d553c===_0xc53c46)break;else _0x200660['push'](_0x200660['shift']());}catch(_0x45c6d5){_0x200660['push'](_0x200660['shift']());}}}(a19_0x3856,0x8727c));function a19_0x3856(){const _0x336f49=['Start\x20an\x20existing\x20Automation\x20grid.','NeAHr','13272567nMtdvT','1644658JGtEzK','wrWFz','parse','default','argv','<PasswordPlaceholder>','bstackUsername','type','addListeners','server-error','clusterName','786036tHSicX','builder','ykBCK','../../utils/createk8sClient','40vCcTmB','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Adding\x20Websocket\x20listeners','bstackAccesskey','FBxKZ','string','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','handler','gHOEh','grid-id','../../utils/gridComponents','238284FJbtBA','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','3122061wQlFxz','nrYtP','skipTlsCertVerify','20lwXlTh','replace','info','options','stringify','xqybf','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','exit','clusterRegion','EZBAE','invalid-grid-id','name','4712238nbrPbX','ReKqP','../../utils/instrumentationUtils','help','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','body','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','1kpiXqS','unauthorised','yNeEs','readFileSync','init-not-called','BiaRN','CNice','password','WuAad','boolean','username','../../utils/webSocketUtils','cloudProvider','iJWBD','message','imxLn','command','connectionTimeout','iYmQi','60HxMgAd','uZaAQ','error','fDzrZ','WebSocket','stack','description','debug','Browserstack','130039ELjanp','Starting\x20grid\x20','user','gridId','kjjdo','start','jGQyh','skip-tls-cert-verify','usage','iTizJ'];a19_0x3856=function(){return _0x336f49;};return a19_0x3856();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x4041f2(0x195)),{sendInstrumentationEvent}=require(a19_0x4041f2(0x1a9)),webSocketUtils=require(a19_0x4041f2(0x1bb)),{createK8sClient}=require(a19_0x4041f2(0x18a)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x4041f2(0x1c0)]='grid',exports[a19_0x4041f2(0x1ad)]=a19_0x4041f2(0x1d6),exports[a19_0x4041f2(0x188)]=function(_0x5197b0){const _0xa7f875=a19_0x4041f2,_0x23a69a={};_0x23a69a['jGQyh']=_0xa7f875(0x18c),_0x23a69a['OqyiZ']=_0xa7f875(0x190),_0x23a69a[_0xa7f875(0x1a8)]='Skip\x20insecure\x20cert\x20verification.',_0x23a69a[_0xa7f875(0x1da)]=_0xa7f875(0x1b9),_0x23a69a[_0xa7f875(0x189)]=_0xa7f875(0x1aa);const _0x1d5b68=_0x23a69a,_0x2429e4={};_0x2429e4[_0xa7f875(0x1c9)]=_0x1d5b68[_0xa7f875(0x1d2)],_0x2429e4[_0xa7f875(0x183)]=_0x1d5b68['OqyiZ'];const _0x377127={};_0x377127[_0xa7f875(0x1c9)]=_0x1d5b68[_0xa7f875(0x1a8)],_0x377127['type']=_0x1d5b68[_0xa7f875(0x1da)],_0x377127[_0xa7f875(0x1dc)]=![];const _0x23b2fa={};return _0x23b2fa[_0xa7f875(0x194)]=_0x2429e4,_0x23b2fa[_0xa7f875(0x1d3)]=_0x377127,_0x5197b0[_0xa7f875(0x1d4)](HELP_HEADER_MESSAGE[_0xa7f875(0x1d1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xa7f875(0x19e)](_0x23b2fa)[_0xa7f875(0x1aa)](_0x1d5b68[_0xa7f875(0x189)])[_0xa7f875(0x1dd)];},exports[a19_0x4041f2(0x192)]=async function(_0x543c4e){const _0x2d3975=a19_0x4041f2,_0x3037f3={'mvzGf':_0x2d3975(0x1a1),'IpFKR':function(_0x3945af){return _0x3945af();},'gHOEh':_0x2d3975(0x1ae),'iJWBD':function(_0x1aa54c,_0x4b7de2,_0x567a81,_0x4c0911,_0xc541e,_0x3971a2,_0x5aeae3){return _0x1aa54c(_0x4b7de2,_0x567a81,_0x4c0911,_0xc541e,_0x3971a2,_0x5aeae3);},'uZaAQ':'start-grid-called','iTizJ':_0x2d3975(0x1b4),'Yvpgy':function(_0x346515,_0x28d280,_0x3bdc2b,_0x379368,_0x133b91,_0x5321c6,_0x24292d){return _0x346515(_0x28d280,_0x3bdc2b,_0x379368,_0x133b91,_0x5321c6,_0x24292d);},'yNeEs':function(_0x320d63){return _0x320d63();},'KsKUC':'<UsernamePlaceholder>','xqybf':_0x2d3975(0x181),'EZBAE':_0x2d3975(0x18d),'WuAad':function(_0x3be979,_0x1ce095,_0x401613,_0x2c8450){return _0x3be979(_0x1ce095,_0x401613,_0x2c8450);},'FBxKZ':function(_0x2b8d41,_0x22c412,_0x1e8ded,_0x50f2f8,_0x3ef341,_0x230d09,_0x2caaf0){return _0x2b8d41(_0x22c412,_0x1e8ded,_0x50f2f8,_0x3ef341,_0x230d09,_0x2caaf0);},'NeAHr':function(_0x11b8ce,_0x43fb21,_0x4e52b8){return _0x11b8ce(_0x43fb21,_0x4e52b8);},'kjjdo':function(_0x639e7,_0xf28de3,_0x4a26d5){return _0x639e7(_0xf28de3,_0x4a26d5);},'nrYtP':'Grid\x20started','MJCop':function(_0x111af5,_0x3895a3){return _0x111af5===_0x3895a3;},'CNice':_0x2d3975(0x191),'WvZNK':function(_0x181943,_0x510051,_0x56249b,_0x279c3f,_0x1e8b4e,_0x37b625,_0x31ff26){return _0x181943(_0x510051,_0x56249b,_0x279c3f,_0x1e8b4e,_0x37b625,_0x31ff26);},'iYmQi':_0x2d3975(0x1b1),'ebncP':function(_0x313433,_0x5125ed){return _0x313433===_0x5125ed;},'fDzrZ':function(_0x51921e,_0x4328cb,_0x4464c7,_0x161dea,_0x49f8bd,_0x4ec14f,_0x3cdff3){return _0x51921e(_0x4328cb,_0x4464c7,_0x161dea,_0x49f8bd,_0x4ec14f,_0x3cdff3);},'BiaRN':_0x2d3975(0x1a5),'imxLn':_0x2d3975(0x185)};let _0x188242;try{!_0x543c4e[_0x2d3975(0x1cf)]&&(logger[_0x2d3975(0x1c5)](_0x3037f3['mvzGf']),process[_0x2d3975(0x1a2)](0x1));!fs['existsSync'](_0x3037f3['IpFKR'](getCredentialsPath))&&(logger[_0x2d3975(0x1c5)](_0x3037f3[_0x2d3975(0x193)]),await _0x3037f3[_0x2d3975(0x1bd)](sendInstrumentationEvent,_0x543c4e,_0x3037f3[_0x2d3975(0x1c4)],messageTypes[_0x2d3975(0x1af)],_0x3037f3[_0x2d3975(0x1d5)],null,_0x543c4e),process[_0x2d3975(0x1a2)](0x1));logger[_0x2d3975(0x19d)](_0x2d3975(0x1cd)+_0x543c4e[_0x2d3975(0x1cf)]),await _0x3037f3['Yvpgy'](sendInstrumentationEvent,_0x543c4e,_0x3037f3[_0x2d3975(0x1c4)],messageTypes['INFO'],null,null,_0x543c4e);const _0x371fec=JSON[_0x2d3975(0x1db)](fs[_0x2d3975(0x1b3)](_0x3037f3[_0x2d3975(0x1b2)](getCredentialsPath)));global_registry[_0x2d3975(0x182)]=_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1ba)],global_registry[_0x2d3975(0x18e)]=_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1b7)];const _0x27f09b=WS_ENDPOINT[_0x2d3975(0x19c)](_0x3037f3['KsKUC'],_0x371fec['Browserstack'][_0x2d3975(0x1ba)])[_0x2d3975(0x19c)](_0x3037f3[_0x2d3975(0x1a0)],_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1b7)]),_0x1436de={};_0x1436de[_0x2d3975(0x1c7)]=ws,_0x1436de[_0x2d3975(0x1c1)]=0x36ee80,_0x188242=new ReconnectingWebSocket(_0x27f09b,[],_0x1436de),logger[_0x2d3975(0x1ca)](_0x3037f3[_0x2d3975(0x1a4)]),webSocketUtils[_0x2d3975(0x184)](_0x188242,_0x543c4e[_0x2d3975(0x1ce)],_0x543c4e[_0x2d3975(0x1b7)]);const [_0x471877,_0x3985d2]=await _0x3037f3[_0x2d3975(0x1b8)](getGridDetails,_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1ba)],_0x371fec[_0x2d3975(0x1cb)][_0x2d3975(0x1b7)],_0x543c4e[_0x2d3975(0x1cf)]);if(_0x3985d2){const _0x26ef9e=_0x3985d2['info'];global_registry[_0x2d3975(0x1bc)]=_0x26ef9e['cloudProvider'],global_registry[_0x2d3975(0x1a3)]=_0x26ef9e['region'],global_registry[_0x2d3975(0x186)]=_0x26ef9e[_0x2d3975(0x186)];const _0x25eb93=await _0x3037f3[_0x2d3975(0x18f)](getCloudProviderObject,_0x26ef9e[_0x2d3975(0x1bc)],_0x26ef9e[_0x2d3975(0x186)],_0x26ef9e['name'],_0x188242,webSocketUtils,_0x543c4e),[_0x290e49,_0x2281c1,_0xb59833,_0x2b1b4a,_0x40be8d,_0x402c95]=await _0x3037f3[_0x2d3975(0x1d7)](createK8sClient,_0x25eb93,_0x543c4e[_0x2d3975(0x19a)]);await _0x3037f3[_0x2d3975(0x1d0)](scaleUpHubDeployment,_0x2281c1,_0x26ef9e[_0x2d3975(0x1a6)]),logger['info'](_0x3037f3[_0x2d3975(0x199)]),process['exit'](0x0);}_0x3037f3['MJCop'](_0x471877['statusCode'],0x191)&&(logger[_0x2d3975(0x1c5)](_0x3037f3[_0x2d3975(0x1b6)]),await _0x3037f3['WvZNK'](sendInstrumentationEvent,_0x543c4e,_0x3037f3['uZaAQ'],messageTypes[_0x2d3975(0x1af)],_0x3037f3[_0x2d3975(0x1c2)],null,_0x543c4e),process[_0x2d3975(0x1a2)](0x1)),_0x3037f3['ebncP'](_0x471877['statusCode'],0x190)&&(logger[_0x2d3975(0x1c5)](JSON[_0x2d3975(0x1db)](_0x471877[_0x2d3975(0x1ac)])[_0x2d3975(0x1be)]),await _0x3037f3[_0x2d3975(0x1c6)](sendInstrumentationEvent,_0x543c4e,_0x3037f3['uZaAQ'],messageTypes[_0x2d3975(0x1af)],_0x3037f3[_0x2d3975(0x1b5)],null,_0x543c4e),process['exit'](0x1)),logger[_0x2d3975(0x1c5)](_0x2d3975(0x197)+JSON[_0x2d3975(0x19f)](_0x471877)),await _0x3037f3[_0x2d3975(0x18f)](sendInstrumentationEvent,_0x543c4e,_0x3037f3[_0x2d3975(0x1c4)],messageTypes['ERROR'],_0x3037f3[_0x2d3975(0x1bf)],_0x471877,_0x543c4e),process[_0x2d3975(0x1a2)](0x1);}catch(_0xd19a52){const _0x5a84ba=_0x2d3975(0x1ab)+_0xd19a52+'\x20\x0a'+JSON[_0x2d3975(0x19f)](_0xd19a52[_0x2d3975(0x1c8)])+'\x20';logger[_0x2d3975(0x1c5)](_0x5a84ba),process[_0x2d3975(0x1a2)](0x1);}};
1
+ const a19_0xa64788=a19_0x43dd;(function(_0x1d98c2,_0xc5d14a){const _0x16c02e=a19_0x43dd,_0x4a2331=_0x1d98c2();while(!![]){try{const _0x3cf3cb=-parseInt(_0x16c02e(0x1ed))/0x1*(-parseInt(_0x16c02e(0x1c6))/0x2)+-parseInt(_0x16c02e(0x1e7))/0x3+parseInt(_0x16c02e(0x19b))/0x4*(-parseInt(_0x16c02e(0x1e4))/0x5)+parseInt(_0x16c02e(0x1e0))/0x6*(parseInt(_0x16c02e(0x1de))/0x7)+parseInt(_0x16c02e(0x1c5))/0x8*(-parseInt(_0x16c02e(0x19c))/0x9)+parseInt(_0x16c02e(0x1ca))/0xa*(parseInt(_0x16c02e(0x1dd))/0xb)+-parseInt(_0x16c02e(0x1c4))/0xc*(-parseInt(_0x16c02e(0x1c7))/0xd);if(_0x3cf3cb===_0xc5d14a)break;else _0x4a2331['push'](_0x4a2331['shift']());}catch(_0x25e7fa){_0x4a2331['push'](_0x4a2331['shift']());}}}(a19_0x2974,0x1aff9));function a19_0x2974(){const _0x2dcc81=['Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../utils/instrumentationUtils','gridId','help','IFFuG','XtrVd','Starting\x20grid\x20','replace','clusterName','IglGw','username','vrenT','name','bstackUsername','argv','GqMPb','AimSs','string','server-error','Browserstack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Adding\x20Websocket\x20listeners','skipTlsCertVerify','region','existsSync','INFO','../../utils/gridComponents','fxmVz','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','usage','invalid-grid-id','bstackAccesskey','description','grid','FVwOQ','150864gghlxb','498616iLnKhX','216866NcBQaw','13sBHZMi','grid-id','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','10cNoonK','connectionTimeout','builder','password','skip-tls-cert-verify','PKDji','boolean','command','jzcXR','stack','sXANS','unauthorised','FXbLG','../../config/constants','desc','type','OjRNL','ARHdG','BpvmB','568293KNFPBf','7fMYqyy','xsmYl','663192RncKes','info','MFNfl','epilogue','13285UByLsf','default','readFileSync','274230YKjrNf','zTOLo','../../utils/utilityMethods','exit','clusterRegion','airLi','2CmLoms','rcbXP','../../cloudproviders/utils','sGiXs','<PasswordPlaceholder>','parse','stringify','user','statusCode','ERROR','<UsernamePlaceholder>','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4WAQUnD','27lQpRYG','COiMK','debug','cloudProvider'];a19_0x2974=function(){return _0x2dcc81;};return a19_0x2974();}function a19_0x43dd(_0x46dda0,_0x2bba23){const _0x29741c=a19_0x2974();return a19_0x43dd=function(_0x43dd28,_0x52fb09){_0x43dd28=_0x43dd28-0x18f;let _0x1743b4=_0x29741c[_0x43dd28];return _0x1743b4;},a19_0x43dd(_0x46dda0,_0x2bba23);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0xa64788(0x1d7)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0xa64788(0x1e9)),{scaleUpHubDeployment}=require(a19_0xa64788(0x1ba)),{sendInstrumentationEvent}=require(a19_0xa64788(0x1a1)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0xa64788(0x190));exports[a19_0xa64788(0x1d1)]=a19_0xa64788(0x1c2),exports[a19_0xa64788(0x1d8)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0xa64788(0x1cc)]=function(_0x222545){const _0x22e2c6=a19_0xa64788,_0x18a8b1={};_0x18a8b1[_0x22e2c6(0x1d4)]=_0x22e2c6(0x1a0),_0x18a8b1[_0x22e2c6(0x1df)]=_0x22e2c6(0x1b1),_0x18a8b1['BpvmB']='Skip\x20insecure\x20cert\x20verification.',_0x18a8b1[_0x22e2c6(0x1ab)]=_0x22e2c6(0x1d0),_0x18a8b1['mSuOD']=_0x22e2c6(0x1a3);const _0x2dfa49=_0x18a8b1,_0x19839e={};_0x19839e['description']=_0x2dfa49['sXANS'],_0x19839e[_0x22e2c6(0x1d9)]=_0x2dfa49[_0x22e2c6(0x1df)];const _0x4cfa3d={};_0x4cfa3d[_0x22e2c6(0x1c1)]=_0x2dfa49[_0x22e2c6(0x1dc)],_0x4cfa3d['type']=_0x2dfa49[_0x22e2c6(0x1ab)],_0x4cfa3d[_0x22e2c6(0x1e5)]=![];const _0x900683={};return _0x900683[_0x22e2c6(0x1c8)]=_0x19839e,_0x900683[_0x22e2c6(0x1ce)]=_0x4cfa3d,_0x222545[_0x22e2c6(0x1be)](HELP_HEADER_MESSAGE['start'])[_0x22e2c6(0x1e3)](HELP_FOOTER_MESSAGE)['options'](_0x900683)[_0x22e2c6(0x1a3)](_0x2dfa49['mSuOD'])[_0x22e2c6(0x1ae)];},exports[a19_0xa64788(0x199)]=async function(_0x209077){const _0xf2ab0=a19_0xa64788,_0x50cea1={'fxmVz':_0xf2ab0(0x1b4),'zLJqV':function(_0x152906){return _0x152906();},'zTOLo':_0xf2ab0(0x19a),'FXbLG':function(_0x2213ae,_0x19ff3b,_0x31f562,_0x40545c,_0x40b909,_0x2583f3,_0x1c7d25){return _0x2213ae(_0x19ff3b,_0x31f562,_0x40545c,_0x40b909,_0x2583f3,_0x1c7d25);},'sGiXs':'start-grid-called','rcbXP':'init-not-called','FVwOQ':function(_0x3d3c90){return _0x3d3c90();},'XtrVd':_0xf2ab0(0x198),'AimSs':_0xf2ab0(0x192),'GqMPb':_0xf2ab0(0x1b5),'MNchW':function(_0x49a861,_0x5c2413,_0x4268b8,_0x53769e){return _0x49a861(_0x5c2413,_0x4268b8,_0x53769e);},'airLi':function(_0x357395,_0x1d0a91,_0x462fdc,_0x5afc6c,_0x599f01,_0x33311b,_0x3d63c2){return _0x357395(_0x1d0a91,_0x462fdc,_0x5afc6c,_0x599f01,_0x33311b,_0x3d63c2);},'ARHdG':function(_0x5e3360,_0x4d3423,_0x323054){return _0x5e3360(_0x4d3423,_0x323054);},'COiMK':function(_0x5f1255,_0x3dbcaf,_0x196983){return _0x5f1255(_0x3dbcaf,_0x196983);},'fUUVo':'Grid\x20started','OjRNL':function(_0x3b27e0,_0x531b4c){return _0x3b27e0===_0x531b4c;},'IFFuG':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','MFNfl':function(_0x65ac72,_0x4bc06b,_0x43e273,_0x1302d1,_0x2c452a,_0x2ac6a8,_0x492bbc){return _0x65ac72(_0x4bc06b,_0x43e273,_0x1302d1,_0x2c452a,_0x2ac6a8,_0x492bbc);},'PKDji':_0xf2ab0(0x1d5),'jzcXR':function(_0x49ceaf,_0x5c5eb4,_0x45d9be,_0x34abc7,_0x1bcb4a,_0x31e7d5,_0x5b88f2){return _0x49ceaf(_0x5c5eb4,_0x45d9be,_0x34abc7,_0x1bcb4a,_0x31e7d5,_0x5b88f2);},'yyKKh':_0xf2ab0(0x1bf),'IglGw':_0xf2ab0(0x1b2)};let _0x1f04b3;try{!_0x209077['gridId']&&(logger['error'](_0x50cea1[_0xf2ab0(0x1bb)]),process[_0xf2ab0(0x1ea)](0x1));!fs[_0xf2ab0(0x1b8)](_0x50cea1['zLJqV'](getCredentialsPath))&&(logger[_0xf2ab0(0x1bc)](_0x50cea1[_0xf2ab0(0x1e8)]),await _0x50cea1[_0xf2ab0(0x1d6)](sendInstrumentationEvent,_0x209077,_0x50cea1['sGiXs'],messageTypes[_0xf2ab0(0x197)],_0x50cea1[_0xf2ab0(0x18f)],null,_0x209077),process[_0xf2ab0(0x1ea)](0x1));logger[_0xf2ab0(0x1e1)](_0xf2ab0(0x1a6)+_0x209077[_0xf2ab0(0x1a2)]),await _0x50cea1[_0xf2ab0(0x1d6)](sendInstrumentationEvent,_0x209077,_0x50cea1['sGiXs'],messageTypes[_0xf2ab0(0x1b9)],null,null,_0x209077);const _0x1b35a1=JSON[_0xf2ab0(0x193)](fs[_0xf2ab0(0x1e6)](_0x50cea1[_0xf2ab0(0x1c3)](getCredentialsPath)));global_registry[_0xf2ab0(0x1ad)]=_0x1b35a1['Browserstack'][_0xf2ab0(0x1aa)],global_registry[_0xf2ab0(0x1c0)]=_0x1b35a1[_0xf2ab0(0x1b3)][_0xf2ab0(0x1cd)];const _0x3d72cd=WS_ENDPOINT[_0xf2ab0(0x1a7)](_0x50cea1[_0xf2ab0(0x1a5)],_0x1b35a1[_0xf2ab0(0x1b3)][_0xf2ab0(0x1aa)])['replace'](_0x50cea1[_0xf2ab0(0x1b0)],_0x1b35a1[_0xf2ab0(0x1b3)][_0xf2ab0(0x1cd)]),_0x37ec4a={};_0x37ec4a['WebSocket']=ws,_0x37ec4a[_0xf2ab0(0x1cb)]=0x36ee80,_0x1f04b3=new ReconnectingWebSocket(_0x3d72cd,[],_0x37ec4a),logger[_0xf2ab0(0x19e)](_0x50cea1[_0xf2ab0(0x1af)]),webSocketUtils['addListeners'](_0x1f04b3,_0x209077[_0xf2ab0(0x195)],_0x209077[_0xf2ab0(0x1cd)]);const [_0xb606be,_0x4705b7]=await _0x50cea1['MNchW'](getGridDetails,_0x1b35a1[_0xf2ab0(0x1b3)][_0xf2ab0(0x1aa)],_0x1b35a1['Browserstack'][_0xf2ab0(0x1cd)],_0x209077['gridId']);if(_0x4705b7){const _0x42c26a=_0x4705b7['info'];global_registry['cloudProvider']=_0x42c26a[_0xf2ab0(0x19f)],global_registry[_0xf2ab0(0x1eb)]=_0x42c26a[_0xf2ab0(0x1b7)],global_registry['clusterName']=_0x42c26a[_0xf2ab0(0x1a8)];const _0x3d044a=await _0x50cea1[_0xf2ab0(0x1ec)](getCloudProviderObject,_0x42c26a[_0xf2ab0(0x19f)],_0x42c26a[_0xf2ab0(0x1a8)],_0x42c26a[_0xf2ab0(0x1ac)],_0x1f04b3,webSocketUtils,_0x209077),[_0xfa8c45,_0x2b5608,_0x371246,_0x15a8e0,_0x582711,_0x1911e4]=await _0x50cea1[_0xf2ab0(0x1db)](createK8sClient,_0x3d044a,_0x209077[_0xf2ab0(0x1b6)]);await _0x50cea1[_0xf2ab0(0x19d)](scaleUpHubDeployment,_0x2b5608,_0x42c26a[_0xf2ab0(0x1ac)]),logger[_0xf2ab0(0x1e1)](_0x50cea1['fUUVo']),process[_0xf2ab0(0x1ea)](0x0);}_0x50cea1[_0xf2ab0(0x1da)](_0xb606be[_0xf2ab0(0x196)],0x191)&&(logger[_0xf2ab0(0x1bc)](_0x50cea1[_0xf2ab0(0x1a4)]),await _0x50cea1[_0xf2ab0(0x1e2)](sendInstrumentationEvent,_0x209077,_0x50cea1[_0xf2ab0(0x191)],messageTypes['ERROR'],_0x50cea1[_0xf2ab0(0x1cf)],null,_0x209077),process[_0xf2ab0(0x1ea)](0x1)),_0x50cea1[_0xf2ab0(0x1da)](_0xb606be[_0xf2ab0(0x196)],0x190)&&(logger[_0xf2ab0(0x1bc)](JSON[_0xf2ab0(0x193)](_0xb606be['body'])['message']),await _0x50cea1[_0xf2ab0(0x1d2)](sendInstrumentationEvent,_0x209077,_0x50cea1[_0xf2ab0(0x191)],messageTypes['ERROR'],_0x50cea1['yyKKh'],null,_0x209077),process[_0xf2ab0(0x1ea)](0x1)),logger[_0xf2ab0(0x1bc)](_0xf2ab0(0x1bd)+JSON[_0xf2ab0(0x194)](_0xb606be)),await _0x50cea1[_0xf2ab0(0x1d6)](sendInstrumentationEvent,_0x209077,_0x50cea1['sGiXs'],messageTypes['ERROR'],_0x50cea1[_0xf2ab0(0x1a9)],_0xb606be,_0x209077),process['exit'](0x1);}catch(_0x54fc8d){const _0x2f1960=_0xf2ab0(0x1c9)+_0x54fc8d+'\x20\x0a'+JSON[_0xf2ab0(0x194)](_0x54fc8d[_0xf2ab0(0x1d3)])+'\x20';logger[_0xf2ab0(0x1bc)](_0x2f1960),process[_0xf2ab0(0x1ea)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x2e37(_0x647406,_0x23de22){const _0x3fdb60=a20_0x3fdb();return a20_0x2e37=function(_0x2e3725,_0x3a48a5){_0x2e3725=_0x2e3725-0x1c6;let _0x2f479a=_0x3fdb60[_0x2e3725];return _0x2f479a;},a20_0x2e37(_0x647406,_0x23de22);}function a20_0x3fdb(){const _0xa5c59d=['builder','desc','1241708zwqEaN','566709ganVHj','../config/constants','7RhGQar','demandCommand','strict','390cCudDg','BsbzB','428kNFRja','shohM','77643RoGtbh','help','stop','epilogue','4173829ZAkEcT','187xGUneI','Stop\x20a\x20running\x20Automation\x20grid.','recommendCommands','12VfgWrK','1404695mWJvVs','1199512VLxsPU'];a20_0x3fdb=function(){return _0xa5c59d;};return a20_0x3fdb();}const a20_0x27bb85=a20_0x2e37;(function(_0x16e8b2,_0x5e903f){const _0x2f72b9=a20_0x2e37,_0x39756a=_0x16e8b2();while(!![]){try{const _0x1b4602=parseInt(_0x2f72b9(0x1d0))/0x1*(parseInt(_0x2f72b9(0x1c9))/0x2)+parseInt(_0x2f72b9(0x1d9))/0x3+-parseInt(_0x2f72b9(0x1d8))/0x4+parseInt(_0x2f72b9(0x1d4))/0x5*(parseInt(_0x2f72b9(0x1d3))/0x6)+parseInt(_0x2f72b9(0x1db))/0x7*(-parseInt(_0x2f72b9(0x1d5))/0x8)+-parseInt(_0x2f72b9(0x1cb))/0x9*(-parseInt(_0x2f72b9(0x1c7))/0xa)+-parseInt(_0x2f72b9(0x1cf))/0xb;if(_0x1b4602===_0x5e903f)break;else _0x39756a['push'](_0x39756a['shift']());}catch(_0x1798d3){_0x39756a['push'](_0x39756a['shift']());}}}(a20_0x3fdb,0x462d7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x27bb85(0x1da));exports['command']=a20_0x27bb85(0x1cd),exports[a20_0x27bb85(0x1d7)]=a20_0x27bb85(0x1d1),exports[a20_0x27bb85(0x1d6)]=function(_0x20d039){const _0x399506=a20_0x27bb85,_0x493d34={};_0x493d34['BsbzB']='stop_commands',_0x493d34[_0x399506(0x1ca)]='help';const _0x3b4951=_0x493d34;return _0x20d039['usage'](HELP_HEADER_MESSAGE[_0x399506(0x1cd)])[_0x399506(0x1ce)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3b4951[_0x399506(0x1c8)])[_0x399506(0x1dc)]()[_0x399506(0x1d2)]()[_0x399506(0x1c6)]()[_0x399506(0x1cc)](_0x3b4951[_0x399506(0x1ca)]);},exports['handler']=function(_0x40aff8){};
1
+ const a20_0x2d5412=a20_0x42bc;function a20_0x42bc(_0x12be94,_0x57cbd8){const _0x47da59=a20_0x47da();return a20_0x42bc=function(_0x42bc98,_0x59d254){_0x42bc98=_0x42bc98-0x1a0;let _0xc250d3=_0x47da59[_0x42bc98];return _0xc250d3;},a20_0x42bc(_0x12be94,_0x57cbd8);}function a20_0x47da(){const _0x445b2c=['builder','97248zarEsT','780200ppaoeV','38295XeFZZX','help','recommendCommands','832xxDKxW','Poobn','demandCommand','1418454ArVlMz','commandDir','Stop\x20a\x20running\x20Automation\x20grid.','strict','109776ISyaAK','desc','10PAWUfF','RLHMB','command','3903ZqczWW','stop_commands','1936186dkbcWK','stop','65wDxjVh'];a20_0x47da=function(){return _0x445b2c;};return a20_0x47da();}(function(_0x5087a3,_0x4aff5f){const _0x1043ee=a20_0x42bc,_0x4d34e1=_0x5087a3();while(!![]){try{const _0x44644d=parseInt(_0x1043ee(0x1ac))/0x1+-parseInt(_0x1043ee(0x1b6))/0x2+-parseInt(_0x1043ee(0x1a4))/0x3*(parseInt(_0x1043ee(0x1af))/0x4)+-parseInt(_0x1043ee(0x1a8))/0x5*(-parseInt(_0x1043ee(0x1aa))/0x6)+parseInt(_0x1043ee(0x1a6))/0x7+parseInt(_0x1043ee(0x1ab))/0x8+parseInt(_0x1043ee(0x1b2))/0x9*(-parseInt(_0x1043ee(0x1a1))/0xa);if(_0x44644d===_0x4aff5f)break;else _0x4d34e1['push'](_0x4d34e1['shift']());}catch(_0x1835b9){_0x4d34e1['push'](_0x4d34e1['shift']());}}}(a20_0x47da,0x222f4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x2d5412(0x1a3)]=a20_0x2d5412(0x1a7),exports[a20_0x2d5412(0x1a0)]=a20_0x2d5412(0x1b4),exports[a20_0x2d5412(0x1a9)]=function(_0x41b6d6){const _0x16d8c8=a20_0x2d5412,_0x392585={};_0x392585[_0x16d8c8(0x1a2)]=_0x16d8c8(0x1a5),_0x392585[_0x16d8c8(0x1b0)]=_0x16d8c8(0x1ad);const _0x2869b4=_0x392585;return _0x41b6d6['usage'](HELP_HEADER_MESSAGE[_0x16d8c8(0x1a7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x16d8c8(0x1b3)](_0x2869b4[_0x16d8c8(0x1a2)])[_0x16d8c8(0x1b1)]()[_0x16d8c8(0x1ae)]()[_0x16d8c8(0x1b5)]()[_0x16d8c8(0x1ad)](_0x2869b4[_0x16d8c8(0x1b0)]);},exports['handler']=function(_0xc54469){};
@@ -1 +1 @@
1
- function a21_0x3b10(_0x4c098c,_0x12aad7){const _0x3be4c2=a21_0x3be4();return a21_0x3b10=function(_0x3b10db,_0x222c74){_0x3b10db=_0x3b10db-0x19f;let _0x4a2ae5=_0x3be4c2[_0x3b10db];return _0x4a2ae5;},a21_0x3b10(_0x4c098c,_0x12aad7);}const a21_0x83a784=a21_0x3b10;function a21_0x3be4(){const _0x373436=['password','epilogue','info','kLQtf','connectionTimeout','<PasswordPlaceholder>','DVAkG','Browserstack','server-error','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','reconnecting-websocket','../../utils/utilityMethods','stack','body','ZNTGS','error','2985wapLfC','argv','../../utils/createk8sClient','Grid\x20stoppped.','1789896AWffAH','eXbjh','stringify','skipTlsCertVerify','vsbSn','1ZwyqLp','qtwDw','TRUvF','description','message','addListeners','unauthorised','9JnOLjN','qQloa','username','saukE','../../utils/webSocketUtils','UYhgE','type','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Stopping\x20grid\x20','<UsernamePlaceholder>','565610IxBGft','bstackUsername','cloudProvider','33FgFTzS','name','readFileSync','JbLXn','RRItu','desc','debug','invalid-grid-id','WebSocket','parse','../../utils/gridComponents','boolean','clusterRegion','332hUByFF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','options','GZHDQ','Stop\x20a\x20running\x20Automation\x20grid.','192540ZhFQpJ','stop-grid-called','OupLI','exit','../../config/logger','260446YCQbWq','Adding\x20Websocket\x20listeners','clusterName','builder','TUJic','ntEJt','ERROR','2220477FRMLfw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skip-tls-cert-verify','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','gridId','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','INFO','existsSync','61640AUhqzt','replace','btvtb','user','../../utils/instrumentationUtils','statusCode'];a21_0x3be4=function(){return _0x373436;};return a21_0x3be4();}(function(_0x1d3645,_0x2d754d){const _0x51119e=a21_0x3b10,_0x405482=_0x1d3645();while(!![]){try{const _0x356d53=parseInt(_0x51119e(0x1b3))/0x1*(-parseInt(_0x51119e(0x1df))/0x2)+-parseInt(_0x51119e(0x1da))/0x3+-parseInt(_0x51119e(0x1d4))/0x4*(parseInt(_0x51119e(0x1aa))/0x5)+parseInt(_0x51119e(0x1ae))/0x6+parseInt(_0x51119e(0x1e6))/0x7+-parseInt(_0x51119e(0x1ef))/0x8*(parseInt(_0x51119e(0x1ba))/0x9)+-parseInt(_0x51119e(0x1c4))/0xa*(parseInt(_0x51119e(0x1c7))/0xb);if(_0x356d53===_0x2d754d)break;else _0x405482['push'](_0x405482['shift']());}catch(_0x375aeb){_0x405482['push'](_0x405482['shift']());}}}(a21_0x3be4,0x2f689));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x83a784(0x1a4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x83a784(0x1de)),{getCredentialsPath,getGridDetails}=require(a21_0x83a784(0x1a5)),{scaleDownHubDeployment}=require(a21_0x83a784(0x1d1)),{sendInstrumentationEvent}=require(a21_0x83a784(0x1f3)),webSocketUtils=require(a21_0x83a784(0x1be)),{createK8sClient}=require(a21_0x83a784(0x1ac)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports[a21_0x83a784(0x1cc)]=a21_0x83a784(0x1d9),exports[a21_0x83a784(0x1e2)]=function(_0x3c4797){const _0x4741f8=a21_0x83a784,_0x425ef8={};_0x425ef8[_0x4741f8(0x1e4)]=_0x4741f8(0x1a3),_0x425ef8['BfBdk']='string',_0x425ef8['yyIOZ']='Skip\x20insecure\x20cert\x20verification.',_0x425ef8[_0x4741f8(0x1bd)]=_0x4741f8(0x1d2),_0x425ef8[_0x4741f8(0x1b5)]=_0x4741f8(0x1d6);const _0x599f10=_0x425ef8,_0x319933={};_0x319933[_0x4741f8(0x1b6)]=_0x599f10[_0x4741f8(0x1e4)],_0x319933[_0x4741f8(0x1c0)]=_0x599f10['BfBdk'];const _0x3c3eff={};_0x3c3eff[_0x4741f8(0x1b6)]=_0x599f10['yyIOZ'],_0x3c3eff[_0x4741f8(0x1c0)]=_0x599f10['saukE'],_0x3c3eff['default']=![];const _0x121093={};return _0x121093['grid-id']=_0x319933,_0x121093[_0x4741f8(0x1e8)]=_0x3c3eff,_0x3c4797[_0x4741f8(0x1e9)](HELP_HEADER_MESSAGE['stop'])[_0x4741f8(0x1f6)](HELP_FOOTER_MESSAGE)[_0x4741f8(0x1d7)](_0x121093)[_0x4741f8(0x1d6)](_0x599f10[_0x4741f8(0x1b5)])[_0x4741f8(0x1ab)];},exports['handler']=async function(_0x285250){const _0x36b4ab=a21_0x83a784,_0x26a408={'JXzkF':_0x36b4ab(0x1c1),'OupLI':function(_0x503f4f){return _0x503f4f();},'GZHDQ':_0x36b4ab(0x1d5),'qtwDw':function(_0x13a87b,_0x5f23d1,_0x2f380d,_0xbf2ef,_0x519741,_0x57277e,_0x2187a7){return _0x13a87b(_0x5f23d1,_0x2f380d,_0xbf2ef,_0x519741,_0x57277e,_0x2187a7);},'JbLXn':_0x36b4ab(0x1db),'TUJic':'init-not-called','UYhgE':_0x36b4ab(0x1c3),'btvtb':_0x36b4ab(0x19f),'ZNTGS':_0x36b4ab(0x1e0),'vsbSn':function(_0x1a74c3,_0x5bac39,_0x396ded,_0x5f4fa5){return _0x1a74c3(_0x5bac39,_0x396ded,_0x5f4fa5);},'eXbjh':function(_0x380f59,_0x462fbb,_0x38d28c){return _0x380f59(_0x462fbb,_0x38d28c);},'kLQtf':_0x36b4ab(0x1ad),'qQloa':function(_0x6a078a,_0x777035){return _0x6a078a===_0x777035;},'VLWtF':_0x36b4ab(0x1e7),'RRItu':function(_0x121103,_0x6192a,_0x1f1295,_0x2386f5,_0x2553de,_0x578768,_0x409b69){return _0x121103(_0x6192a,_0x1f1295,_0x2386f5,_0x2553de,_0x578768,_0x409b69);},'dmMOl':_0x36b4ab(0x1b9),'DVAkG':_0x36b4ab(0x1ce),'SHxkm':_0x36b4ab(0x1a2)};let _0x19aff6;try{!_0x285250[_0x36b4ab(0x1eb)]&&(logger['error'](_0x26a408['JXzkF']),process[_0x36b4ab(0x1dd)](0x1));!fs[_0x36b4ab(0x1ee)](_0x26a408['OupLI'](getCredentialsPath))&&(logger[_0x36b4ab(0x1a9)](_0x26a408[_0x36b4ab(0x1d8)]),await _0x26a408['qtwDw'](sendInstrumentationEvent,_0x285250,_0x26a408[_0x36b4ab(0x1ca)],messageTypes[_0x36b4ab(0x1e5)],_0x26a408[_0x36b4ab(0x1e3)],null,_0x285250),process[_0x36b4ab(0x1dd)](0x1));logger[_0x36b4ab(0x1f7)](_0x36b4ab(0x1c2)+_0x285250[_0x36b4ab(0x1eb)]),await _0x26a408[_0x36b4ab(0x1b4)](sendInstrumentationEvent,_0x285250,_0x26a408[_0x36b4ab(0x1ca)],messageTypes[_0x36b4ab(0x1ed)],null,null,_0x285250);const _0xa2dc62=JSON[_0x36b4ab(0x1d0)](fs[_0x36b4ab(0x1c9)](_0x26a408[_0x36b4ab(0x1dc)](getCredentialsPath)));global_registry[_0x36b4ab(0x1c5)]=_0xa2dc62[_0x36b4ab(0x1a1)]['username'],global_registry['bstackAccesskey']=_0xa2dc62[_0x36b4ab(0x1a1)][_0x36b4ab(0x1f5)];const _0x560f29=WS_ENDPOINT[_0x36b4ab(0x1f0)](_0x26a408[_0x36b4ab(0x1bf)],_0xa2dc62[_0x36b4ab(0x1a1)][_0x36b4ab(0x1bc)])['replace'](_0x26a408[_0x36b4ab(0x1f1)],_0xa2dc62[_0x36b4ab(0x1a1)][_0x36b4ab(0x1f5)]),_0x46e88e={};_0x46e88e[_0x36b4ab(0x1cf)]=ws,_0x46e88e[_0x36b4ab(0x1f9)]=0x36ee80,_0x19aff6=new ReconnectingWebSocket(_0x560f29,[],_0x46e88e),logger[_0x36b4ab(0x1cd)](_0x26a408[_0x36b4ab(0x1a8)]),webSocketUtils[_0x36b4ab(0x1b8)](_0x19aff6,_0x285250[_0x36b4ab(0x1f2)],_0x285250['password']);const [_0x588888,_0x34d07d]=await _0x26a408[_0x36b4ab(0x1b2)](getGridDetails,_0xa2dc62[_0x36b4ab(0x1a1)][_0x36b4ab(0x1bc)],_0xa2dc62['Browserstack'][_0x36b4ab(0x1f5)],_0x285250['gridId']);if(_0x34d07d){const _0x48f533=_0x34d07d['info'];global_registry[_0x36b4ab(0x1c6)]=_0x48f533[_0x36b4ab(0x1c6)],global_registry[_0x36b4ab(0x1d3)]=_0x48f533['region'],global_registry[_0x36b4ab(0x1e1)]=_0x48f533['clusterName'];const _0x5dd9a2=await _0x26a408[_0x36b4ab(0x1b4)](getCloudProviderObject,_0x48f533['cloudProvider'],_0x48f533['clusterName'],_0x48f533[_0x36b4ab(0x1c8)],_0x19aff6,webSocketUtils,_0x285250),[_0x209b45,_0x51bc4e,_0x28bd8a,_0x485e5c,_0x1a3eaf,_0x434902]=await _0x26a408[_0x36b4ab(0x1af)](createK8sClient,_0x5dd9a2,_0x285250[_0x36b4ab(0x1b1)]);await _0x26a408[_0x36b4ab(0x1af)](scaleDownHubDeployment,_0x51bc4e,_0x48f533[_0x36b4ab(0x1c8)]),logger['info'](_0x26a408[_0x36b4ab(0x1f8)]),process[_0x36b4ab(0x1dd)](0x0);}_0x26a408[_0x36b4ab(0x1bb)](_0x588888['statusCode'],0x191)&&(logger['error'](_0x26a408['VLWtF']),await _0x26a408[_0x36b4ab(0x1cb)](sendInstrumentationEvent,_0x285250,_0x26a408[_0x36b4ab(0x1ca)],messageTypes['ERROR'],_0x26a408['dmMOl'],null,_0x285250),process[_0x36b4ab(0x1dd)](0x1)),_0x26a408[_0x36b4ab(0x1bb)](_0x588888[_0x36b4ab(0x1f4)],0x190)&&(logger[_0x36b4ab(0x1a9)](JSON[_0x36b4ab(0x1d0)](_0x588888[_0x36b4ab(0x1a7)])[_0x36b4ab(0x1b7)]),await _0x26a408['qtwDw'](sendInstrumentationEvent,_0x285250,_0x26a408['JbLXn'],messageTypes[_0x36b4ab(0x1e5)],_0x26a408[_0x36b4ab(0x1a0)],null,_0x285250),process['exit'](0x1)),logger[_0x36b4ab(0x1a9)](_0x36b4ab(0x1ea)+JSON['stringify'](_0x588888)),await _0x26a408[_0x36b4ab(0x1cb)](sendInstrumentationEvent,_0x285250,_0x26a408['JbLXn'],messageTypes[_0x36b4ab(0x1e5)],_0x26a408['SHxkm'],_0x588888,_0x285250),process[_0x36b4ab(0x1dd)](0x1);}catch(_0x575bf0){const _0x45227f=_0x36b4ab(0x1ec)+_0x575bf0+'\x20\x0a'+JSON[_0x36b4ab(0x1b0)](_0x575bf0[_0x36b4ab(0x1a6)])+'\x20';logger[_0x36b4ab(0x1a9)](_0x45227f),process[_0x36b4ab(0x1dd)](0x1);}};
1
+ const a21_0x358db1=a21_0x1a61;function a21_0x1a61(_0x2f3e0a,_0x25eb66){const _0x52b7c6=a21_0x52b7();return a21_0x1a61=function(_0x1a61a2,_0x213497){_0x1a61a2=_0x1a61a2-0x150;let _0x3b96f3=_0x52b7c6[_0x1a61a2];return _0x3b96f3;},a21_0x1a61(_0x2f3e0a,_0x25eb66);}(function(_0xa3b4f1,_0x9e8ab8){const _0x4e1045=a21_0x1a61,_0x5c3c66=_0xa3b4f1();while(!![]){try{const _0x1b881b=-parseInt(_0x4e1045(0x1aa))/0x1+-parseInt(_0x4e1045(0x1ae))/0x2*(parseInt(_0x4e1045(0x180))/0x3)+parseInt(_0x4e1045(0x17c))/0x4+parseInt(_0x4e1045(0x19c))/0x5+-parseInt(_0x4e1045(0x185))/0x6*(parseInt(_0x4e1045(0x16b))/0x7)+parseInt(_0x4e1045(0x1a5))/0x8+parseInt(_0x4e1045(0x192))/0x9;if(_0x1b881b===_0x9e8ab8)break;else _0x5c3c66['push'](_0x5c3c66['shift']());}catch(_0xdf56be){_0x5c3c66['push'](_0x5c3c66['shift']());}}}(a21_0x52b7,0x674a6));function a21_0x52b7(){const _0x1cb246=['stringify','region','GtJrC','vJruA','../../cloudproviders/utils','readFileSync','addListeners','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','67856WptKZm','handler','type','server-error','../../config/constants','719799RIoafA','../../utils/utilityMethods','options','LPntF','766tioEfE','name','uXerC','../../utils/instrumentationUtils','Adding\x20Websocket\x20listeners','WebSocket','grid-id','description','grid','REsJp','stack','dAwrJ','connectionTimeout','ERROR','../../utils/createk8sClient','string','skipTlsCertVerify','<PasswordPlaceholder>','neJks','LOuGs','stop-grid-called','XcJAF','../../config/logger','Stopping\x20grid\x20','KabXx','info','Skip\x20insecure\x20cert\x20verification.','DTZan','error','101381gbnmDo','password','bBXHe','clusterName','username','desc','invalid-grid-id','epilogue','clusterRegion','body','../../utils/webSocketUtils','default','bstackAccesskey','skip-tls-cert-verify','<UsernamePlaceholder>','eiVgB','user','2985744hdYziP','hwzUB','command','usage','3603yRyelF','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cloudProvider','gridId','150nSssWh','rjvfI','Browserstack','message','Stop\x20a\x20running\x20Automation\x20grid.','replace','stop','cpMzM','argv','exit','oxgBq','builder','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','6530535yaFGZI','HInrB','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','AOQPE','debug','reconnecting-websocket','../../utils/gridComponents','EVWyH','statusCode','2422010TqQbbG'];a21_0x52b7=function(){return _0x1cb246;};return a21_0x52b7();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x358db1(0x198)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x358db1(0x1a9)),{logger}=require(a21_0x358db1(0x164)),{getCredentialsPath,getGridDetails}=require(a21_0x358db1(0x1ab)),{scaleDownHubDeployment}=require(a21_0x358db1(0x199)),{sendInstrumentationEvent}=require(a21_0x358db1(0x151)),webSocketUtils=require(a21_0x358db1(0x175)),{createK8sClient}=require(a21_0x358db1(0x15c)),{getCloudProviderObject}=require(a21_0x358db1(0x1a1));exports[a21_0x358db1(0x17e)]=a21_0x358db1(0x156),exports[a21_0x358db1(0x170)]=a21_0x358db1(0x189),exports[a21_0x358db1(0x190)]=function(_0x2a5c37){const _0x31c3ab=a21_0x358db1,_0x517446={};_0x517446[_0x31c3ab(0x161)]=_0x31c3ab(0x1a4),_0x517446['HInrB']=_0x31c3ab(0x15d),_0x517446[_0x31c3ab(0x1a0)]=_0x31c3ab(0x168),_0x517446[_0x31c3ab(0x1ad)]='boolean',_0x517446[_0x31c3ab(0x16d)]='help';const _0x4b125a=_0x517446,_0x42529a={};_0x42529a[_0x31c3ab(0x155)]=_0x4b125a[_0x31c3ab(0x161)],_0x42529a[_0x31c3ab(0x1a7)]=_0x4b125a[_0x31c3ab(0x193)];const _0x389354={};_0x389354[_0x31c3ab(0x155)]=_0x4b125a[_0x31c3ab(0x1a0)],_0x389354[_0x31c3ab(0x1a7)]=_0x4b125a[_0x31c3ab(0x1ad)],_0x389354[_0x31c3ab(0x176)]=![];const _0x721c28={};return _0x721c28[_0x31c3ab(0x154)]=_0x42529a,_0x721c28[_0x31c3ab(0x178)]=_0x389354,_0x2a5c37[_0x31c3ab(0x17f)](HELP_HEADER_MESSAGE[_0x31c3ab(0x18b)])[_0x31c3ab(0x172)](HELP_FOOTER_MESSAGE)[_0x31c3ab(0x1ac)](_0x721c28)['help'](_0x4b125a[_0x31c3ab(0x16d)])[_0x31c3ab(0x18d)];},exports[a21_0x358db1(0x1a6)]=async function(_0x1a3a44){const _0x5ad679=a21_0x358db1,_0x102440={'DTZan':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','eiVgB':function(_0x3aa61b){return _0x3aa61b();},'GtJrC':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cpMzM':function(_0x47d107,_0x4148f0,_0x343e81,_0x35eef4,_0x2de95b,_0x2c4dfa,_0x1e2d14){return _0x47d107(_0x4148f0,_0x343e81,_0x35eef4,_0x2de95b,_0x2c4dfa,_0x1e2d14);},'REsJp':_0x5ad679(0x162),'sDRPu':'init-not-called','KabXx':function(_0x3ef063){return _0x3ef063();},'BpIIC':_0x5ad679(0x179),'oxgBq':_0x5ad679(0x15f),'uXerC':_0x5ad679(0x152),'FJJjJ':function(_0x821ce4,_0x3b4614,_0x4c3095,_0x2dfd09){return _0x821ce4(_0x3b4614,_0x4c3095,_0x2dfd09);},'EVWyH':function(_0xa9f088,_0x4b890d,_0x597f85){return _0xa9f088(_0x4b890d,_0x597f85);},'injha':function(_0x18fd25,_0x5dba78,_0x14d463){return _0x18fd25(_0x5dba78,_0x14d463);},'AOQPE':'Grid\x20stoppped.','neJks':function(_0x1feb16,_0x5e9290){return _0x1feb16===_0x5e9290;},'hkVrf':_0x5ad679(0x182),'eemGq':function(_0x2be7fc,_0x5a3cb1,_0x15872b,_0x388b3f,_0x3ca149,_0x3b4419,_0x4484bf){return _0x2be7fc(_0x5a3cb1,_0x15872b,_0x388b3f,_0x3ca149,_0x3b4419,_0x4484bf);},'hwzUB':'unauthorised','OACXD':function(_0x184414,_0x3a6fad){return _0x184414===_0x3a6fad;},'dAwrJ':_0x5ad679(0x171),'rjvfI':function(_0x42d37b,_0x119524,_0x8541bf,_0x4fc03e,_0x48d89c,_0x3c9a98,_0x4829a8){return _0x42d37b(_0x119524,_0x8541bf,_0x4fc03e,_0x48d89c,_0x3c9a98,_0x4829a8);},'XcJAF':_0x5ad679(0x1a8)};let _0x25ba8f;try{!_0x1a3a44['gridId']&&(logger[_0x5ad679(0x16a)](_0x102440[_0x5ad679(0x169)]),process[_0x5ad679(0x18e)](0x1));!fs[_0x5ad679(0x194)](_0x102440[_0x5ad679(0x17a)](getCredentialsPath))&&(logger['error'](_0x102440[_0x5ad679(0x19f)]),await _0x102440[_0x5ad679(0x18c)](sendInstrumentationEvent,_0x1a3a44,_0x102440['REsJp'],messageTypes['ERROR'],_0x102440['sDRPu'],null,_0x1a3a44),process[_0x5ad679(0x18e)](0x1));logger[_0x5ad679(0x167)](_0x5ad679(0x165)+_0x1a3a44[_0x5ad679(0x184)]),await _0x102440[_0x5ad679(0x18c)](sendInstrumentationEvent,_0x1a3a44,_0x102440[_0x5ad679(0x157)],messageTypes['INFO'],null,null,_0x1a3a44);const _0x3b754a=JSON[_0x5ad679(0x181)](fs[_0x5ad679(0x1a2)](_0x102440[_0x5ad679(0x166)](getCredentialsPath)));global_registry['bstackUsername']=_0x3b754a[_0x5ad679(0x187)]['username'],global_registry[_0x5ad679(0x177)]=_0x3b754a['Browserstack'][_0x5ad679(0x16c)];const _0x4ac702=WS_ENDPOINT[_0x5ad679(0x18a)](_0x102440['BpIIC'],_0x3b754a[_0x5ad679(0x187)][_0x5ad679(0x16f)])['replace'](_0x102440[_0x5ad679(0x18f)],_0x3b754a[_0x5ad679(0x187)][_0x5ad679(0x16c)]),_0x418e06={};_0x418e06[_0x5ad679(0x153)]=ws,_0x418e06[_0x5ad679(0x15a)]=0x36ee80,_0x25ba8f=new ReconnectingWebSocket(_0x4ac702,[],_0x418e06),logger[_0x5ad679(0x197)](_0x102440[_0x5ad679(0x150)]),webSocketUtils[_0x5ad679(0x1a3)](_0x25ba8f,_0x1a3a44[_0x5ad679(0x17b)],_0x1a3a44[_0x5ad679(0x16c)]);const [_0x427e1c,_0x4fcd3c]=await _0x102440['FJJjJ'](getGridDetails,_0x3b754a[_0x5ad679(0x187)][_0x5ad679(0x16f)],_0x3b754a[_0x5ad679(0x187)][_0x5ad679(0x16c)],_0x1a3a44[_0x5ad679(0x184)]);if(_0x4fcd3c){const _0x4f4b29=_0x4fcd3c[_0x5ad679(0x167)];global_registry[_0x5ad679(0x183)]=_0x4f4b29[_0x5ad679(0x183)],global_registry[_0x5ad679(0x173)]=_0x4f4b29[_0x5ad679(0x19e)],global_registry[_0x5ad679(0x16e)]=_0x4f4b29[_0x5ad679(0x16e)];const _0x73d2ed=await _0x102440[_0x5ad679(0x18c)](getCloudProviderObject,_0x4f4b29[_0x5ad679(0x183)],_0x4f4b29[_0x5ad679(0x16e)],_0x4f4b29[_0x5ad679(0x1af)],_0x25ba8f,webSocketUtils,_0x1a3a44),[_0x517a6b,_0x2ad415,_0x1f7c97,_0x396230,_0x16faa8,_0x2eee82]=await _0x102440[_0x5ad679(0x19a)](createK8sClient,_0x73d2ed,_0x1a3a44[_0x5ad679(0x15e)]);await _0x102440['injha'](scaleDownHubDeployment,_0x2ad415,_0x4f4b29['name']),logger[_0x5ad679(0x167)](_0x102440[_0x5ad679(0x196)]),process[_0x5ad679(0x18e)](0x0);}_0x102440[_0x5ad679(0x160)](_0x427e1c[_0x5ad679(0x19b)],0x191)&&(logger['error'](_0x102440['hkVrf']),await _0x102440['eemGq'](sendInstrumentationEvent,_0x1a3a44,_0x102440[_0x5ad679(0x157)],messageTypes[_0x5ad679(0x15b)],_0x102440[_0x5ad679(0x17d)],null,_0x1a3a44),process[_0x5ad679(0x18e)](0x1)),_0x102440['OACXD'](_0x427e1c[_0x5ad679(0x19b)],0x190)&&(logger[_0x5ad679(0x16a)](JSON['parse'](_0x427e1c[_0x5ad679(0x174)])[_0x5ad679(0x188)]),await _0x102440[_0x5ad679(0x18c)](sendInstrumentationEvent,_0x1a3a44,_0x102440[_0x5ad679(0x157)],messageTypes['ERROR'],_0x102440[_0x5ad679(0x159)],null,_0x1a3a44),process[_0x5ad679(0x18e)](0x1)),logger[_0x5ad679(0x16a)](_0x5ad679(0x195)+JSON['stringify'](_0x427e1c)),await _0x102440[_0x5ad679(0x186)](sendInstrumentationEvent,_0x1a3a44,_0x102440['REsJp'],messageTypes['ERROR'],_0x102440[_0x5ad679(0x163)],_0x427e1c,_0x1a3a44),process['exit'](0x1);}catch(_0x1a185d){const _0x469429=_0x5ad679(0x191)+_0x1a185d+'\x20\x0a'+JSON[_0x5ad679(0x19d)](_0x1a185d[_0x5ad679(0x158)])+'\x20';logger[_0x5ad679(0x16a)](_0x469429),process[_0x5ad679(0x18e)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x42b2ba=a22_0x4838;(function(_0x30f948,_0x47ae02){const _0x5acc8c=a22_0x4838,_0xe68447=_0x30f948();while(!![]){try{const _0x452809=parseInt(_0x5acc8c(0x195))/0x1+-parseInt(_0x5acc8c(0x16f))/0x2*(-parseInt(_0x5acc8c(0x1b4))/0x3)+-parseInt(_0x5acc8c(0x170))/0x4+parseInt(_0x5acc8c(0x1a4))/0x5+-parseInt(_0x5acc8c(0x190))/0x6*(parseInt(_0x5acc8c(0x1ab))/0x7)+parseInt(_0x5acc8c(0x1bf))/0x8+parseInt(_0x5acc8c(0x1b0))/0x9;if(_0x452809===_0x47ae02)break;else _0xe68447['push'](_0xe68447['shift']());}catch(_0x47f766){_0xe68447['push'](_0xe68447['shift']());}}}(a22_0x3223,0x428a8),require(a22_0x42b2ba(0x1bb))[a22_0x42b2ba(0x193)]());let gridURL=a22_0x42b2ba(0x19e),bsApiUrl=a22_0x42b2ba(0x1ae),agApiUrl=a22_0x42b2ba(0x18c);const _env=(process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x1a5)]||a22_0x42b2ba(0x19c))[a22_0x42b2ba(0x1d3)]();if(_env==='staging'||_env===a22_0x42b2ba(0x185))gridURL=a22_0x42b2ba(0x1b5),bsApiUrl=a22_0x42b2ba(0x1aa),agApiUrl=a22_0x42b2ba(0x16d);else(_env===a22_0x42b2ba(0x17c)||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl='api-preprod.bsstag.com',agApiUrl='grid-api-preprod.bsstag.com');function a22_0x3223(){const _0x5960b9=['browserstack:service','LINK_MESSAGE','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','12kZxkDD','grid-devhst.bsstag.com','GCP','BrowserStackIAMUser','global_registry','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','gridProfile','dotenv','CLI_RUN_STARTED','root','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','1927912wLhAvU','forEach','WS_EVENTS','Value','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','TURBOSCALE_DEPLOYMENT','create','BSTACK-ATS-CLUSTER-HUB-HA','CLUSTER','TURBOSCALE_CUSTOM_TAGS','wss://','aws','IAM_USER_NAME','pre-check','configure','unknown','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','UNKNOWN','SUPPORTED_CLOUD_PROVIDERS','env','toLowerCase','CLUSTER_HUB_HA_STACK_NAME','MessageDescription','browserstack:managedBy','grid-api-devhst.bsstag.com','gridUrl','56858nugehW','1638808WpGDgN','CLOUD_PROVIDER','DASHBOARD_ENDPOINT','CP_CONFIG_FILE','CLI_ARGS_REGEX','cliRunStarted','Key','resourceInfo','delete','RAW_ARGS_REGEX','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','warning','preprod','list','AG_API_URL','us-east-1','BS_API_URL','push','credentials','split','COMMON_HST_TAGS','stag','AWS','gcp','REGION','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','init','WARNING','grid-api.browserstack.com','LOG','AZURE','messageTypes','1400916WvhCTL','BSTACK-ATS-CLUSTER-AUTOSCALER','[REDACTED]','config','HST_CLUSTER_TAGS','251910ndyzbo','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','start','info','error','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','TRIAL_GRID_URL','prod','SUCCESS','grid.browserstack.com','log','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BrowserStack-Automate-TurboScale','BSTACK-ATS-CLUSTER','HELP_FOOTER_MESSAGE','496480jFFEnI','BROWSERSTACK_ENV','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLI_RUN_FINISHED','DEFAULT_CLUSTER_DETAILS','api-devhst.bsstag.com','14ngMsHe','pre_check','HELP_HEADER_MESSAGE','api.browserstack.com','browserstack-turboscale-grid','3989835bIwYIl'];a22_0x3223=function(){return _0x5960b9;};return a22_0x3223();}exports['DASHBOARD_ENDPOINT']=process['env'][a22_0x42b2ba(0x172)]||gridURL,exports[a22_0x42b2ba(0x180)]=process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x180)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x17e)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x42b2ba(0x1c9)+this[a22_0x42b2ba(0x17e)]+a22_0x42b2ba(0x17a),exports[a22_0x42b2ba(0x173)]=a22_0x42b2ba(0x182),exports[a22_0x42b2ba(0x1cb)]=a22_0x42b2ba(0x1b7),exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a22_0x42b2ba(0x186)]=a22_0x42b2ba(0x1ca),exports['CLUSTER_DEP_STACK_NAME']=a22_0x42b2ba(0x1a2),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x42b2ba(0x191),exports[a22_0x42b2ba(0x1d4)]=a22_0x42b2ba(0x1c6),exports[a22_0x42b2ba(0x1c4)]=a22_0x42b2ba(0x1af),exports[a22_0x42b2ba(0x18e)]='azure',exports[a22_0x42b2ba(0x1b6)]=a22_0x42b2ba(0x187),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x42b2ba(0x186)],this[a22_0x42b2ba(0x18e)],this[a22_0x42b2ba(0x1b6)]];const a22_0x3a67a2={};a22_0x3a67a2[a22_0x42b2ba(0x176)]='browserstack:managedBy',a22_0x3a67a2[a22_0x42b2ba(0x1c2)]='BrowserStack';const a22_0x44c1a2={};a22_0x44c1a2[a22_0x42b2ba(0x176)]=a22_0x42b2ba(0x1b1),a22_0x44c1a2[a22_0x42b2ba(0x1c2)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x3a67a2,a22_0x44c1a2];if(process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x1c8)]){const parsedTags=process[a22_0x42b2ba(0x1d2)][a22_0x42b2ba(0x1c8)][a22_0x42b2ba(0x183)](',');parsedTags[a22_0x42b2ba(0x1c0)](_0x1557f6=>{const _0x5d611a=a22_0x42b2ba,_0x2c981c=_0x1557f6[_0x5d611a(0x183)](':'),_0x13cd13={};_0x13cd13[_0x5d611a(0x176)]=_0x2c981c[0x0],_0x13cd13[_0x5d611a(0x1c2)]=_0x2c981c[0x1],common_hst_tags_list[_0x5d611a(0x181)](_0x13cd13);});}exports[a22_0x42b2ba(0x184)]=common_hst_tags_list;const a22_0x299f6c={};a22_0x299f6c[a22_0x42b2ba(0x1d6)]='BrowserStack',a22_0x299f6c[a22_0x42b2ba(0x1b1)]=a22_0x42b2ba(0x1a1),exports[a22_0x42b2ba(0x194)]=a22_0x299f6c,exports[a22_0x42b2ba(0x1d1)]=[this[a22_0x42b2ba(0x186)]];function a22_0x4838(_0x303c16,_0x5e9683){const _0x3223fb=a22_0x3223();return a22_0x4838=function(_0x48380e,_0x1bd1bd){_0x48380e=_0x48380e-0x16d;let _0x4aaee8=_0x3223fb[_0x48380e];return _0x4aaee8;},a22_0x4838(_0x303c16,_0x5e9683);}const a22_0x308b33={};a22_0x308b33[a22_0x42b2ba(0x18d)]=a22_0x42b2ba(0x19f),a22_0x308b33['RESOURCES']=a22_0x42b2ba(0x177),a22_0x308b33['GRID_URL']=a22_0x42b2ba(0x16e),a22_0x308b33[a22_0x42b2ba(0x1bc)]=a22_0x42b2ba(0x175),a22_0x308b33[a22_0x42b2ba(0x1a8)]='cliRunFinished',exports[a22_0x42b2ba(0x1c1)]=a22_0x308b33,exports[a22_0x42b2ba(0x1b8)]={},exports[a22_0x42b2ba(0x1b2)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x28bc9a={};a22_0x28bc9a['root']=a22_0x42b2ba(0x1b9)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x18a)]=a22_0x42b2ba(0x1c3)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x1cd)]=a22_0x42b2ba(0x1a0)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x1c5)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x28bc9a[a22_0x42b2ba(0x17d)]={},a22_0x28bc9a[a22_0x42b2ba(0x178)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a['connect']=a22_0x42b2ba(0x1be)+this['LINK_MESSAGE'],a22_0x28bc9a[a22_0x42b2ba(0x197)]=a22_0x42b2ba(0x1a6)+this['LINK_MESSAGE'],a22_0x28bc9a['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x1ac)]=a22_0x42b2ba(0x1b3)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x17d)][a22_0x42b2ba(0x1bd)]=a22_0x42b2ba(0x19a)+this['LINK_MESSAGE'],a22_0x28bc9a[a22_0x42b2ba(0x17d)]['grid']=a22_0x42b2ba(0x196)+this[a22_0x42b2ba(0x1b2)],a22_0x28bc9a[a22_0x42b2ba(0x17d)][a22_0x42b2ba(0x1ba)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x42b2ba(0x1b2)],exports[a22_0x42b2ba(0x1ad)]=a22_0x28bc9a,exports[a22_0x42b2ba(0x1a3)]=a22_0x42b2ba(0x189);const a22_0x271ef8={};a22_0x271ef8[a22_0x42b2ba(0x19d)]='success',a22_0x271ef8['ERROR']=a22_0x42b2ba(0x199),a22_0x271ef8['INFO']=a22_0x42b2ba(0x198),a22_0x271ef8[a22_0x42b2ba(0x18b)]=a22_0x42b2ba(0x17b),a22_0x271ef8[a22_0x42b2ba(0x1d0)]=a22_0x42b2ba(0x1ce),a22_0x271ef8['NULL']=null,exports[a22_0x42b2ba(0x18f)]=a22_0x271ef8,exports[a22_0x42b2ba(0x174)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x42b2ba(0x179)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x42b2ba(0x192);const a22_0x3e82b9={};a22_0x3e82b9['grid-profile']=a22_0x42b2ba(0x1cf);const a22_0x4ee643={};a22_0x4ee643[a22_0x42b2ba(0x1cc)]=a22_0x3e82b9,exports[a22_0x42b2ba(0x1d5)]=a22_0x4ee643,exports[a22_0x42b2ba(0x19b)]=a22_0x42b2ba(0x1a7);const a22_0x4cdbc4={};a22_0x4cdbc4[a22_0x42b2ba(0x1c7)]='high-scale-grid-cluster',a22_0x4cdbc4[a22_0x42b2ba(0x171)]='aws',a22_0x4cdbc4[a22_0x42b2ba(0x188)]=a22_0x42b2ba(0x17f),exports[a22_0x42b2ba(0x1a9)]=a22_0x4cdbc4;
1
+ const a22_0x2c1b4=a22_0x397f;(function(_0x5d6e88,_0x4f840a){const _0x1b86e3=a22_0x397f,_0x443264=_0x5d6e88();while(!![]){try{const _0x28ed92=parseInt(_0x1b86e3(0x103))/0x1*(-parseInt(_0x1b86e3(0xae))/0x2)+-parseInt(_0x1b86e3(0xb3))/0x3*(parseInt(_0x1b86e3(0xbc))/0x4)+-parseInt(_0x1b86e3(0xa9))/0x5*(parseInt(_0x1b86e3(0xe7))/0x6)+parseInt(_0x1b86e3(0x101))/0x7*(parseInt(_0x1b86e3(0xd0))/0x8)+-parseInt(_0x1b86e3(0xe0))/0x9+-parseInt(_0x1b86e3(0xe2))/0xa*(-parseInt(_0x1b86e3(0xcd))/0xb)+-parseInt(_0x1b86e3(0xde))/0xc*(-parseInt(_0x1b86e3(0xc6))/0xd);if(_0x28ed92===_0x4f840a)break;else _0x443264['push'](_0x443264['shift']());}catch(_0x171f74){_0x443264['push'](_0x443264['shift']());}}}(a22_0x17b3,0x1f5d7),require('dotenv')[a22_0x2c1b4(0x113)]());let gridURL=a22_0x2c1b4(0xb4),bsApiUrl=a22_0x2c1b4(0xaf),agApiUrl=a22_0x2c1b4(0xf4);const _env=(process['env'][a22_0x2c1b4(0xff)]||'prod')[a22_0x2c1b4(0x115)]();if(_env===a22_0x2c1b4(0xaa)||_env===a22_0x2c1b4(0xcf))gridURL=a22_0x2c1b4(0xba),bsApiUrl=a22_0x2c1b4(0xe4),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x2c1b4(0xdd)||_env===a22_0x2c1b4(0xe9))&&(gridURL=a22_0x2c1b4(0x104),bsApiUrl=a22_0x2c1b4(0xee),agApiUrl=a22_0x2c1b4(0xb5));exports['DASHBOARD_ENDPOINT']=process['env'][a22_0x2c1b4(0xca)]||gridURL,exports[a22_0x2c1b4(0x10f)]=process[a22_0x2c1b4(0xd4)][a22_0x2c1b4(0x10f)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x2c1b4(0xd4)][a22_0x2c1b4(0xea)]||agApiUrl,exports[a22_0x2c1b4(0xf9)]=a22_0x2c1b4(0xc4)+this['AG_API_URL']+a22_0x2c1b4(0xbe),exports[a22_0x2c1b4(0xc0)]=a22_0x2c1b4(0xb0),exports[a22_0x2c1b4(0x108)]='BrowserStackIAMUser',exports[a22_0x2c1b4(0xf8)]='high-scale-grid',exports[a22_0x2c1b4(0x107)]=a22_0x2c1b4(0x110),exports['CLUSTER_DEP_STACK_NAME']=a22_0x2c1b4(0xbb),exports[a22_0x2c1b4(0x106)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x2c1b4(0x105)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x2c1b4(0xd2)]='browserstack-turboscale-grid',exports[a22_0x2c1b4(0xf7)]=a22_0x2c1b4(0xdc),exports[a22_0x2c1b4(0xfa)]=a22_0x2c1b4(0xec),exports[a22_0x2c1b4(0xb2)]=[this[a22_0x2c1b4(0x107)],this['AZURE'],this[a22_0x2c1b4(0xfa)]];const a22_0x2ace4b={};a22_0x2ace4b[a22_0x2c1b4(0xed)]=a22_0x2c1b4(0xfd),a22_0x2ace4b[a22_0x2c1b4(0xd8)]='BrowserStack';const a22_0x2ed12b={};a22_0x2ed12b[a22_0x2c1b4(0xed)]='browserstack:service',a22_0x2ed12b[a22_0x2c1b4(0xd8)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x2ace4b,a22_0x2ed12b];if(process[a22_0x2c1b4(0xd4)][a22_0x2c1b4(0xd1)]){const parsedTags=process[a22_0x2c1b4(0xd4)][a22_0x2c1b4(0xd1)][a22_0x2c1b4(0xe5)](',');parsedTags['forEach'](_0x226166=>{const _0xba03b8=a22_0x2c1b4,_0x4bf001=_0x226166['split'](':'),_0x251bef={};_0x251bef[_0xba03b8(0xed)]=_0x4bf001[0x0],_0x251bef[_0xba03b8(0xd8)]=_0x4bf001[0x1],common_hst_tags_list[_0xba03b8(0xf5)](_0x251bef);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x34569a={};a22_0x34569a[a22_0x2c1b4(0xfd)]=a22_0x2c1b4(0x10d),a22_0x34569a[a22_0x2c1b4(0xac)]=a22_0x2c1b4(0xcb),exports[a22_0x2c1b4(0xc8)]=a22_0x34569a,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x2c1b4(0x107)]];const a22_0x4872b0={};a22_0x4872b0[a22_0x2c1b4(0x102)]=a22_0x2c1b4(0x10c),a22_0x4872b0[a22_0x2c1b4(0xc1)]=a22_0x2c1b4(0xe1),a22_0x4872b0[a22_0x2c1b4(0x109)]=a22_0x2c1b4(0xf0),a22_0x4872b0['CLI_RUN_STARTED']='cliRunStarted',a22_0x4872b0['CLI_RUN_FINISHED']=a22_0x2c1b4(0xd3),exports[a22_0x2c1b4(0xd5)]=a22_0x4872b0,exports[a22_0x2c1b4(0xe8)]={},exports['LINK_MESSAGE']=a22_0x2c1b4(0xb1);const a22_0x2a3f75={};a22_0x2a3f75[a22_0x2c1b4(0xc2)]=a22_0x2c1b4(0xf2)+this['LINK_MESSAGE'],a22_0x2a3f75[a22_0x2c1b4(0xc3)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x2c1b4(0x114)],a22_0x2a3f75[a22_0x2c1b4(0xc9)]=a22_0x2c1b4(0xe3)+this[a22_0x2c1b4(0x114)],a22_0x2a3f75[a22_0x2c1b4(0xce)]=a22_0x2c1b4(0xb9)+this[a22_0x2c1b4(0x114)],a22_0x2a3f75[a22_0x2c1b4(0xf1)]={},a22_0x2a3f75['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x2c1b4(0x114)],a22_0x2a3f75[a22_0x2c1b4(0xdf)]=a22_0x2c1b4(0xef)+this[a22_0x2c1b4(0x114)],a22_0x2a3f75['start']=a22_0x2c1b4(0xd9)+this[a22_0x2c1b4(0x114)],a22_0x2a3f75[a22_0x2c1b4(0xb8)]=a22_0x2c1b4(0xd6)+this[a22_0x2c1b4(0x114)],a22_0x2a3f75['pre_check']=a22_0x2c1b4(0xda)+this[a22_0x2c1b4(0x114)],a22_0x2a3f75[a22_0x2c1b4(0xf1)]['root']=a22_0x2c1b4(0xf6)+this[a22_0x2c1b4(0x114)],a22_0x2a3f75[a22_0x2c1b4(0xf1)][a22_0x2c1b4(0xbd)]=a22_0x2c1b4(0xbf)+this[a22_0x2c1b4(0x114)],a22_0x2a3f75[a22_0x2c1b4(0xf1)][a22_0x2c1b4(0xc7)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x2c1b4(0x114)],exports[a22_0x2c1b4(0x10e)]=a22_0x2a3f75,exports[a22_0x2c1b4(0xf3)]=a22_0x2c1b4(0x10a);const a22_0x1afef8={};a22_0x1afef8[a22_0x2c1b4(0x100)]=a22_0x2c1b4(0xdb),a22_0x1afef8['ERROR']=a22_0x2c1b4(0xeb),a22_0x1afef8[a22_0x2c1b4(0x112)]='info',a22_0x1afef8['WARNING']='warning',a22_0x1afef8['UNKNOWN']=a22_0x2c1b4(0xfb),a22_0x1afef8[a22_0x2c1b4(0xb7)]=null,exports['messageTypes']=a22_0x1afef8,exports[a22_0x2c1b4(0xab)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x2c1b4(0xc5);const a22_0x3bb1aa={};function a22_0x17b3(){const _0x248b4c=['GRID_URL','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','us-east-1','log','BrowserStack','HELP_HEADER_MESSAGE','BS_API_URL','aws','MessageDescription','INFO','config','LINK_MESSAGE','toLowerCase','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','1020995OLfOwZ','staging','CLI_ARGS_REGEX','browserstack:service','grid-profile','682KROoMd','api.browserstack.com','credentials','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','ALL_SUPPORTED_CLOUD_PROVIDERS','42UlFqlv','grid.browserstack.com','grid-api-preprod.bsstag.com','CLUSTER','NULL','stop','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','grid-devhst.bsstag.com','BSTACK-ATS-CLUSTER','35324ynCreV','grid','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','CP_CONFIG_FILE','RESOURCES','root','init','wss://','[REDACTED]','2821LAksfa','gridProfile','HST_CLUSTER_TAGS','configure','DASHBOARD_ENDPOINT','BrowserStack-Automate-TurboScale','DEFAULT_CLUSTER_DETAILS','44tlYDIF','create','stag','1225648KyuArV','TURBOSCALE_CUSTOM_TAGS','TURBOSCALE_DEPLOYMENT','cliRunFinished','env','WS_EVENTS','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','pre-check','Value','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','success','azure','preprod','34428PJhBpX','connect','2140155qZuKod','resourceInfo','3810MZAKDQ','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','api-devhst.bsstag.com','split','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','6TfIHHV','global_registry','pre-prod','AG_API_URL','error','gcp','Key','api-preprod.bsstag.com','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','gridUrl','list','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','HELP_FOOTER_MESSAGE','grid-api.browserstack.com','push','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','AZURE','DEFAULT_GRID_NAME','WS_ENDPOINT','GCP','unknown','TRIAL_GRID_URL','browserstack:managedBy','CLOUD_PROVIDER','BROWSERSTACK_ENV','SUCCESS','7aoLrxu','LOG','244fyKTFo','grid-preprod.bsstag.com','CLUSTER_HUB_HA_STACK_NAME','CLUSTER_AUTOSCALER_STACK_NAME','AWS','IAM_USER_NAME'];a22_0x17b3=function(){return _0x248b4c;};return a22_0x17b3();}a22_0x3bb1aa[a22_0x2c1b4(0xad)]=a22_0x2c1b4(0xa8);const a22_0x481001={};a22_0x481001[a22_0x2c1b4(0xd7)]=a22_0x3bb1aa,exports[a22_0x2c1b4(0x111)]=a22_0x481001,exports[a22_0x2c1b4(0xfc)]=a22_0x2c1b4(0xe6);const a22_0x3bf992={};function a22_0x397f(_0x26377e,_0x4eb37b){const _0x17b32b=a22_0x17b3();return a22_0x397f=function(_0x397f9e,_0x493a3e){_0x397f9e=_0x397f9e-0xa8;let _0xe3ece6=_0x17b32b[_0x397f9e];return _0xe3ece6;},a22_0x397f(_0x26377e,_0x4eb37b);}a22_0x3bf992[a22_0x2c1b4(0xb6)]='high-scale-grid-cluster',a22_0x3bf992[a22_0x2c1b4(0xfe)]=a22_0x2c1b4(0x110),a22_0x3bf992['REGION']=a22_0x2c1b4(0x10b),exports[a22_0x2c1b4(0xcc)]=a22_0x3bf992;
@@ -1 +1 @@
1
- const a23_0x21ebec=a23_0x3093;(function(_0x1352f5,_0x51fb8f){const _0x270a10=a23_0x3093,_0x28ae8b=_0x1352f5();while(!![]){try{const _0x2e280c=parseInt(_0x270a10(0x10c))/0x1+parseInt(_0x270a10(0xfd))/0x2+-parseInt(_0x270a10(0x115))/0x3+-parseInt(_0x270a10(0x114))/0x4*(parseInt(_0x270a10(0x104))/0x5)+-parseInt(_0x270a10(0x10b))/0x6*(parseInt(_0x270a10(0xf9))/0x7)+-parseInt(_0x270a10(0x107))/0x8+parseInt(_0x270a10(0xfe))/0x9;if(_0x2e280c===_0x51fb8f)break;else _0x28ae8b['push'](_0x28ae8b['shift']());}catch(_0x5843f4){_0x28ae8b['push'](_0x28ae8b['shift']());}}}(a23_0x40d7,0x773e9));const winston=require('winston'),fs=require('fs'),path=require('path'),logDir=a23_0x21ebec(0xff);!fs[a23_0x21ebec(0x109)](logDir)&&fs[a23_0x21ebec(0x10d)](logDir);const a23_0x1269e6={};a23_0x1269e6['format']=a23_0x21ebec(0xfc);const a23_0x596e53={};a23_0x596e53[a23_0x21ebec(0x113)]=!![];const a23_0x2d02b7={};a23_0x2d02b7[a23_0x21ebec(0x106)]=a23_0x21ebec(0x111),exports[a23_0x21ebec(0x116)]=new winston[(a23_0x21ebec(0x102))]({'format':winston[a23_0x21ebec(0x10f)][a23_0x21ebec(0x100)](winston[a23_0x21ebec(0x10f)]['timestamp'](a23_0x1269e6),winston[a23_0x21ebec(0x10f)][a23_0x21ebec(0x105)](a23_0x596e53),winston[a23_0x21ebec(0x10f)][a23_0x21ebec(0xfb)](_0x3fe0dc=>_0x3fe0dc[a23_0x21ebec(0x101)]+a23_0x21ebec(0x110)+_0x3fe0dc[a23_0x21ebec(0x113)]+':\x20'+_0x3fe0dc[a23_0x21ebec(0x10a)])),'transports':[new winston[(a23_0x21ebec(0xfa))][(a23_0x21ebec(0x103))](a23_0x2d02b7),new winston[(a23_0x21ebec(0xfa))]['File']({'filename':path['join'](logDir,a23_0x21ebec(0xf8)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x21ebec(0xfa))][(a23_0x21ebec(0x10e))]({'filename':path['join'](logDir,a23_0x21ebec(0x108)),'level':a23_0x21ebec(0x112)})]};exports['fileLogger']=new winston[(a23_0x21ebec(0x102))](winstonFileLoggerParams);function a23_0x3093(_0x2da0e8,_0x1d0bdb){const _0x40d79c=a23_0x40d7();return a23_0x3093=function(_0x30933e,_0x24a244){_0x30933e=_0x30933e-0xf8;let _0x4c097a=_0x40d79c[_0x30933e];return _0x4c097a;},a23_0x3093(_0x2da0e8,_0x1d0bdb);}function a23_0x40d7(){const _0x2b08c3=['132954SweFSE','395510jCYSwf','mkdirSync','File','format','\x20-\x20','console.info','debug','level','385568EPUMMN','712845zZSRsJ','logger','events.log','84XYKhKD','transports','printf','YYYY-MM-DD\x20HH:mm:ss','1244WPmzgq','9777150nSAeyn','log','combine','timestamp','createLogger','Console','25YluaeY','colorize','name','68592ZmYfzI','usage.log','existsSync','message'];a23_0x40d7=function(){return _0x2b08c3;};return a23_0x40d7();}
1
+ const a23_0xe53300=a23_0x4f0b;(function(_0x21d2da,_0x56ce7b){const _0x3feedb=a23_0x4f0b,_0x10ce31=_0x21d2da();while(!![]){try{const _0x3eac74=parseInt(_0x3feedb(0x1f5))/0x1+parseInt(_0x3feedb(0x1fa))/0x2+-parseInt(_0x3feedb(0x205))/0x3+parseInt(_0x3feedb(0x200))/0x4*(parseInt(_0x3feedb(0x1f4))/0x5)+parseInt(_0x3feedb(0x1f7))/0x6*(parseInt(_0x3feedb(0x1f3))/0x7)+-parseInt(_0x3feedb(0x203))/0x8*(-parseInt(_0x3feedb(0x1f2))/0x9)+-parseInt(_0x3feedb(0x1f6))/0xa;if(_0x3eac74===_0x56ce7b)break;else _0x10ce31['push'](_0x10ce31['shift']());}catch(_0x4fe205){_0x10ce31['push'](_0x10ce31['shift']());}}}(a23_0x3f46,0x78c2e));const winston=require(a23_0xe53300(0x204)),fs=require('fs'),path=require(a23_0xe53300(0x1ed)),logDir=a23_0xe53300(0x1ee);!fs[a23_0xe53300(0x1fb)](logDir)&&fs[a23_0xe53300(0x202)](logDir);const a23_0x443196={};function a23_0x3f46(){const _0x712c41=['25075890OMxrUE','308058ENOIUT','debug','level','1255632WAzsVx','existsSync','\x20-\x20','format','logger','createLogger','42920zKYJSx','transports','mkdirSync','40fNwByR','winston','693336bBCgvw','File','printf','message','usage.log','fileLogger','join','name','console.info','colorize','path','log','YYYY-MM-DD\x20HH:mm:ss','Console','combine','425403HobFno','126fwEvCe','305DIVTTZ','790484XvlRZx'];a23_0x3f46=function(){return _0x712c41;};return a23_0x3f46();}a23_0x443196[a23_0xe53300(0x1fd)]=a23_0xe53300(0x1ef);function a23_0x4f0b(_0x10d9dd,_0x58c87b){const _0x3f46f2=a23_0x3f46();return a23_0x4f0b=function(_0x4f0bcc,_0x373a5c){_0x4f0bcc=_0x4f0bcc-0x1e5;let _0x500497=_0x3f46f2[_0x4f0bcc];return _0x500497;},a23_0x4f0b(_0x10d9dd,_0x58c87b);}const a23_0x372af2={};a23_0x372af2[a23_0xe53300(0x1f9)]=!![];const a23_0x1514c={};a23_0x1514c[a23_0xe53300(0x1ea)]=a23_0xe53300(0x1eb),exports[a23_0xe53300(0x1fe)]=new winston[(a23_0xe53300(0x1ff))]({'format':winston[a23_0xe53300(0x1fd)][a23_0xe53300(0x1f1)](winston['format']['timestamp'](a23_0x443196),winston['format'][a23_0xe53300(0x1ec)](a23_0x372af2),winston[a23_0xe53300(0x1fd)][a23_0xe53300(0x1e5)](_0x13880e=>_0x13880e['timestamp']+a23_0xe53300(0x1fc)+_0x13880e['level']+':\x20'+_0x13880e[a23_0xe53300(0x1e6)])),'transports':[new winston[(a23_0xe53300(0x201))][(a23_0xe53300(0x1f0))](a23_0x1514c),new winston['transports'][(a23_0xe53300(0x206))]({'filename':path[a23_0xe53300(0x1e9)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0xe53300(0x201))]['File']({'filename':path[a23_0xe53300(0x1e9)](logDir,a23_0xe53300(0x1e7)),'level':a23_0xe53300(0x1f8)})]};exports[a23_0xe53300(0x1e8)]=new winston[(a23_0xe53300(0x1ff))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x1f0e79=a24_0x252c;(function(_0x1895b3,_0xd133d6){const _0x26ad13=a24_0x252c,_0x1ad7d3=_0x1895b3();while(!![]){try{const _0x452766=parseInt(_0x26ad13(0x1cf))/0x1*(-parseInt(_0x26ad13(0x1cb))/0x2)+-parseInt(_0x26ad13(0x1d7))/0x3+-parseInt(_0x26ad13(0x1d4))/0x4+-parseInt(_0x26ad13(0x1d6))/0x5*(-parseInt(_0x26ad13(0x1d0))/0x6)+parseInt(_0x26ad13(0x1dd))/0x7*(parseInt(_0x26ad13(0x1ce))/0x8)+-parseInt(_0x26ad13(0x1d8))/0x9*(-parseInt(_0x26ad13(0x1d3))/0xa)+parseInt(_0x26ad13(0x1d2))/0xb;if(_0x452766===_0xd133d6)break;else _0x1ad7d3['push'](_0x1ad7d3['shift']());}catch(_0x568338){_0x1ad7d3['push'](_0x1ad7d3['shift']());}}}(a24_0x3c71,0x394a0));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x1f0e79(0x1da));process[a24_0x1f0e79(0x1d9)][a24_0x1f0e79(0x1d1)]=0x1;function run(_0x46cf5a){const _0x5c0e41=a24_0x1f0e79,_0x23c68f={};_0x23c68f[_0x5c0e41(0x1de)]='commands',_0x23c68f[_0x5c0e41(0x1dc)]=_0x5c0e41(0x1db);const _0x4959a2=_0x23c68f;_0x46cf5a[_0x5c0e41(0x1cc)](HELP_HEADER_MESSAGE['root'])[_0x5c0e41(0x1ca)](_0x4959a2[_0x5c0e41(0x1de)])[_0x5c0e41(0x1cd)]()[_0x5c0e41(0x1db)](_0x4959a2[_0x5c0e41(0x1dc)])[_0x5c0e41(0x1d5)](HELP_FOOTER_MESSAGE);}function a24_0x252c(_0x4464cf,_0x3e234a){const _0x3c7120=a24_0x3c71();return a24_0x252c=function(_0x252cc7,_0x3c32c0){_0x252cc7=_0x252cc7-0x1ca;let _0x48268c=_0x3c7120[_0x252cc7];return _0x48268c;},a24_0x252c(_0x4464cf,_0x3e234a);}function a24_0x3c71(){const _0x5343a5=['2986MdKxcs','usage','demandCommand','8uzHIom','83ioydeM','78QpYKge','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','8936884ZVfgBq','1890090yUvqSk','1645220AwJWlf','epilogue','7255DQVuJF','950835BAEjpy','9DIjKyq','env','./config/constants','help','ptlKf','465563TEHEPZ','Zbsel','commandDir'];a24_0x3c71=function(){return _0x5343a5;};return a24_0x3c71();}module['exports']=run;
2
+ 'use strict';const a24_0x4d50c5=a24_0x6f8a;(function(_0x343769,_0x389f44){const _0x1a4e2f=a24_0x6f8a,_0x1316f4=_0x343769();while(!![]){try{const _0x22032a=parseInt(_0x1a4e2f(0xba))/0x1*(parseInt(_0x1a4e2f(0xbf))/0x2)+-parseInt(_0x1a4e2f(0xaf))/0x3*(-parseInt(_0x1a4e2f(0xc2))/0x4)+parseInt(_0x1a4e2f(0xb5))/0x5*(parseInt(_0x1a4e2f(0xb2))/0x6)+-parseInt(_0x1a4e2f(0xad))/0x7+-parseInt(_0x1a4e2f(0xb6))/0x8*(parseInt(_0x1a4e2f(0xb0))/0x9)+parseInt(_0x1a4e2f(0xc1))/0xa+-parseInt(_0x1a4e2f(0xbe))/0xb;if(_0x22032a===_0x389f44)break;else _0x1316f4['push'](_0x1316f4['shift']());}catch(_0x4f5136){_0x1316f4['push'](_0x1316f4['shift']());}}}(a24_0x5870,0xca352));function a24_0x6f8a(_0x336003,_0x4cc69a){const _0x5870e9=a24_0x5870();return a24_0x6f8a=function(_0x6f8a43,_0x3be41b){_0x6f8a43=_0x6f8a43-0xac;let _0x10144f=_0x5870e9[_0x6f8a43];return _0x10144f;},a24_0x6f8a(_0x336003,_0x4cc69a);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x4d50c5(0xc3));function a24_0x5870(){const _0x4051ad=['2CJCSxR','root','exports','PEAtx','20880717ulcNic','679512RywVNo','help','16486450GYxnHy','4ZdEyQX','./config/constants','commands','1738051EcVUaZ','commandDir','914865TMqSKx','854703IiLDBD','epilogue','3759426UzCpLD','env','fhxtZ','5QHrIGu','24WgngUv','usage','demandCommand','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE'];a24_0x5870=function(){return _0x4051ad;};return a24_0x5870();}process[a24_0x4d50c5(0xb3)][a24_0x4d50c5(0xb9)]=0x1;function run(_0x11852d){const _0x11f379=a24_0x4d50c5,_0x2ecae7={};_0x2ecae7['PEAtx']=_0x11f379(0xac),_0x2ecae7[_0x11f379(0xb4)]=_0x11f379(0xc0);const _0x55f432=_0x2ecae7;_0x11852d[_0x11f379(0xb7)](HELP_HEADER_MESSAGE[_0x11f379(0xbb)])[_0x11f379(0xae)](_0x55f432[_0x11f379(0xbd)])[_0x11f379(0xb8)]()[_0x11f379(0xc0)](_0x55f432[_0x11f379(0xb4)])[_0x11f379(0xb1)](HELP_FOOTER_MESSAGE);}module[a24_0x4d50c5(0xbc)]=run;