browserstack-node-sdk 1.55.7 → 1.56.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 (204) 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/generated/sdk-messages_pb.d.ts +64 -0
  41. package/generated/sdk-messages_pb.js +512 -0
  42. package/generated/sdk_grpc_pb.d.ts +5 -0
  43. package/generated/sdk_grpc_pb.js +33 -0
  44. package/package.json +2 -1
  45. package/src/ai-sdk-node/bundle.js +1 -1
  46. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  47. package/src/bin/codeceptjs/command.js +1 -1
  48. package/src/bin/codeceptjs/helper.js +1 -1
  49. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  50. package/src/bin/cucumber-js/command.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  52. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  53. package/src/bin/cucumber-js/test-observability.js +1 -1
  54. package/src/bin/cucumber-js/test.setup.js +1 -1
  55. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  56. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  57. package/src/bin/integrations/command.js +1 -1
  58. package/src/bin/integrations/constants.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  79. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  80. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  81. package/src/bin/mocha/test.setup.js +1 -1
  82. package/src/bin/newman/command.js +1 -1
  83. package/src/bin/newman/helper.js +1 -1
  84. package/src/bin/newman/reporter/index.js +1 -1
  85. package/src/bin/newman/scriptRunner.js +1 -1
  86. package/src/bin/nightwatch/command.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/sessionDetails.js +1 -1
  97. package/src/bin/puppeteer/patches.js +1 -1
  98. package/src/bin/puppeteer/sessionDetails.js +1 -1
  99. package/src/bin/puppeteer/test.setup.js +1 -1
  100. package/src/bin/runner.js +1 -1
  101. package/src/bin/setup.js +1 -1
  102. package/src/bin/test-runner/index.js +1 -1
  103. package/src/bin/test-runner/runTest.js +1 -1
  104. package/src/bin/test-runner/testWorker.js +1 -1
  105. package/src/bin/utils/apiUtilityMethods.js +1 -1
  106. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  107. package/src/bin/utils/constants.js +1 -1
  108. package/src/bin/utils/log4jsAppender.js +1 -1
  109. package/src/bin/utils/logPatcher.js +1 -1
  110. package/src/bin/utils/logReportingAPI.js +1 -1
  111. package/src/bin/utils/playwright-patcher.js +1 -1
  112. package/src/bin/utils/puppeteer-patcher.js +1 -1
  113. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  114. package/src/bin/utils/sharedUtils.js +1 -1
  115. package/src/bin/v2/TestInfo.js +1 -1
  116. package/src/bin/v2/browserstackCLI.js +1 -1
  117. package/src/bin/v2/cliUtils.js +1 -1
  118. package/src/bin/v2/customTagManager.js +1 -1
  119. package/src/bin/v2/eventDispatcher.js +1 -1
  120. package/src/bin/v2/framework/automationFramework.js +1 -1
  121. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  122. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  123. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  124. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  125. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  126. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  127. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  128. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  129. package/src/bin/v2/framework/testFramework.js +1 -1
  130. package/src/bin/v2/grpcClient.js +1 -1
  131. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  132. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  133. package/src/bin/v2/instances/trackedContext.js +1 -1
  134. package/src/bin/v2/instances/trackedInstance.js +1 -1
  135. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  136. package/src/bin/v2/modules/baseModule.js +1 -1
  137. package/src/bin/v2/modules/loadTestModule.js +1 -1
  138. package/src/bin/v2/modules/observabilityModule.js +1 -1
  139. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  140. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  141. package/src/bin/v2/modules/testhubModule.js +1 -1
  142. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  143. package/src/bin/v2/state/hookState.js +1 -1
  144. package/src/bin/v2/state/testFrameworkState.js +1 -1
  145. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  146. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  147. package/src/bin/v2/utils/jest-utils.js +1 -1
  148. package/src/bin/vanilla-js/command.js +1 -1
  149. package/src/browserStackSdk.js +1 -1
  150. package/src/helpers/BrowserStackSetup.js +1 -1
  151. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  152. package/src/helpers/accessibility-automation/constants.js +1 -1
  153. package/src/helpers/accessibility-automation/helper.js +1 -1
  154. package/src/helpers/accessibility-automation/scripts.js +1 -1
  155. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  156. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  157. package/src/helpers/ats/constants.js +1 -1
  158. package/src/helpers/ats/helper.js +1 -1
  159. package/src/helpers/caCertHelper.js +1 -1
  160. package/src/helpers/capsMapping.js +1 -1
  161. package/src/helpers/central-scanner/constants.js +1 -1
  162. package/src/helpers/central-scanner/helpers.js +1 -1
  163. package/src/helpers/classLogger.js +1 -1
  164. package/src/helpers/globals.js +1 -1
  165. package/src/helpers/helper.js +1 -1
  166. package/src/helpers/logger.js +1 -1
  167. package/src/helpers/metadata.js +1 -1
  168. package/src/helpers/patchHelper.js +1 -1
  169. package/src/helpers/patchHelpers.js +1 -1
  170. package/src/helpers/percy/Percy.js +1 -1
  171. package/src/helpers/percy/PercyBinary.js +1 -1
  172. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  173. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  174. package/src/helpers/percy/PercySDK.js +1 -1
  175. package/src/helpers/percy/index.js +1 -1
  176. package/src/helpers/percy/utils.js +1 -1
  177. package/src/helpers/performance/constants.js +1 -1
  178. package/src/helpers/performance/performance-tester.js +1 -1
  179. package/src/helpers/playwright-helper.js +1 -1
  180. package/src/helpers/processHelper.js +1 -1
  181. package/src/helpers/puppeteer-helper.js +1 -1
  182. package/src/helpers/request-spy.js +1 -1
  183. package/src/helpers/setKeepAlive.js +1 -1
  184. package/src/helpers/stackFrameUtils.js +1 -1
  185. package/src/helpers/test-observability/constants.js +1 -1
  186. package/src/helpers/test-observability/error-handler.js +1 -1
  187. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  188. package/src/helpers/test-observability/sessionHandler.js +1 -1
  189. package/src/helpers/test-observability/utils.js +1 -1
  190. package/src/helpers/test-orchestration/constants.js +1 -1
  191. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  192. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  193. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  194. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  195. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  196. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  197. package/src/helpers/testhub/constants.js +1 -1
  198. package/src/helpers/testhub/testhubHandler.js +1 -1
  199. package/src/helpers/testhub/utils.js +1 -1
  200. package/src/helpers/timeoutPromise.js +1 -1
  201. package/src/helpers/utilities.js +1 -1
  202. package/src/helpers/w3cMapping.js +1 -1
  203. package/src/hubAllocationMethods.js +1 -1
  204. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x30c4(_0x23cced,_0x5a3bf3){const _0x5a4ed7=a15_0x5a4e();return a15_0x30c4=function(_0x30c4e8,_0x52e5ea){_0x30c4e8=_0x30c4e8-0x101;let _0x4a9fd6=_0x5a4ed7[_0x30c4e8];return _0x4a9fd6;},a15_0x30c4(_0x23cced,_0x5a3bf3);}const a15_0x1014f0=a15_0x30c4;(function(_0x1cda71,_0x2864cd){const _0x162f76=a15_0x30c4,_0x2c0e80=_0x1cda71();while(!![]){try{const _0x1d91fc=parseInt(_0x162f76(0x123))/0x1+-parseInt(_0x162f76(0x13e))/0x2*(-parseInt(_0x162f76(0x137))/0x3)+-parseInt(_0x162f76(0x151))/0x4+-parseInt(_0x162f76(0x142))/0x5+-parseInt(_0x162f76(0x10e))/0x6*(-parseInt(_0x162f76(0x134))/0x7)+parseInt(_0x162f76(0x124))/0x8*(parseInt(_0x162f76(0x117))/0x9)+-parseInt(_0x162f76(0x145))/0xa;if(_0x1d91fc===_0x2864cd)break;else _0x2c0e80['push'](_0x2c0e80['shift']());}catch(_0x84c5a5){_0x2c0e80['push'](_0x2c0e80['shift']());}}}(a15_0x5a4e,0xdfe8b));const fs=require('fs'),got=require(a15_0x1014f0(0x12f)),{table}=require(a15_0x1014f0(0x130)),{v4:uuidv4}=require(a15_0x1014f0(0x138)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1014f0(0x10c)),{getCredentialsPath,getAuthHeader}=require(a15_0x1014f0(0x148)),{sendInstrumentationEvent}=require(a15_0x1014f0(0x139));function a15_0x5a4e(){const _0xc90a5a=['vaULw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','status','1331402ZSGrqT','GET','requestId','bstackAccesskey','2840685QLWyBt','WjNqe','stringify','16234880lqixDV','cluster-name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','oAoHn','grids','zQufy','forEach','options','type','bahDb','FFJzD','2097572hfYzdE','EfuKQ','parse','eLSyh','desc','password','MXQuP','XxWut','unauthorised','jSRZs','SjwXM','TaFwq','readFileSync','stack','list','handler','nKqIT','builder','ERROR','../../config/constants','running','6SNUwyR','DUMYb','grid-name','push','oPXbC','boolean','XDfcZ','Failed\x20to\x20list\x20resources!\x20Error:\x20','EokTl','22167KAbbDl','username','exit','epilogue','lAaJK','name','Browserstack','nRLUC','JrLge','help','Lcgpw','log','794903wWMPyx','5352ypIAPs','rfUcp','FvStj','bstackUsername','server-error','queued','error','https://','statusCode','VTnUl','INFO','got','table','list-grids-called','init-not-called','argv','3673586PjWCAd','grid-id','FrKTi','3AtJBjo','uuid','../../utils/instrumentationUtils'];a15_0x5a4e=function(){return _0xc90a5a;};return a15_0x5a4e();}exports['command']=a15_0x1014f0(0x14a),exports[a15_0x1014f0(0x155)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x1014f0(0x10a)]=function(_0x21c06b){const _0x3f0c10=a15_0x1014f0,_0x52df89={};_0x52df89['DUMYb']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x52df89[_0x3f0c10(0x103)]=_0x3f0c10(0x113),_0x52df89[_0x3f0c10(0x125)]=_0x3f0c10(0x120);const _0x253471=_0x52df89,_0x4ac934={};_0x4ac934['description']=_0x253471[_0x3f0c10(0x10f)],_0x4ac934[_0x3f0c10(0x14e)]=_0x253471[_0x3f0c10(0x103)];const _0x402564={};return _0x402564['all-grids']=_0x4ac934,_0x21c06b['usage'](HELP_HEADER_MESSAGE[_0x3f0c10(0x107)]['grid'])[_0x3f0c10(0x11a)](HELP_FOOTER_MESSAGE)[_0x3f0c10(0x14d)](_0x402564)[_0x3f0c10(0x120)](_0x253471[_0x3f0c10(0x125)])[_0x3f0c10(0x133)];},exports[a15_0x1014f0(0x108)]=async function(_0x3c1967){const _0x4aa044=a15_0x1014f0,_0x672037={'XxWut':function(_0x2d1e3f){return _0x2d1e3f();},'QxTRT':_0x4aa044(0x147),'FFJzD':function(_0x599950,_0x5479f6,_0x300665,_0x45e266,_0x268dac,_0x118995,_0x3cbed5){return _0x599950(_0x5479f6,_0x300665,_0x45e266,_0x268dac,_0x118995,_0x3cbed5);},'VTnUl':_0x4aa044(0x131),'nKqIT':_0x4aa044(0x132),'vaULw':_0x4aa044(0x13f),'bahDb':function(_0x5ef141,_0x3ce4a1,_0xf56461){return _0x5ef141(_0x3ce4a1,_0xf56461);},'oPXbC':function(_0x5d2c8d,_0x55a577,_0x3dd058,_0x469d38,_0x1357fb,_0x2a4999,_0x3a6f7c){return _0x5d2c8d(_0x55a577,_0x3dd058,_0x469d38,_0x1357fb,_0x2a4999,_0x3a6f7c);},'nRLUC':function(_0x49e3ea,_0x1fded4,_0x28151b){return _0x49e3ea(_0x1fded4,_0x28151b);},'JrLge':function(_0xe8c2b4,_0x1cf65d){return _0xe8c2b4!==_0x1cf65d;},'WjNqe':function(_0x4042e1,_0x382a16){return _0x4042e1===_0x382a16;},'XDfcZ':'\x0aFound\x20the\x20following\x20grids:\x0a','MXQuP':_0x4aa044(0x135),'TaFwq':_0x4aa044(0x110),'Lcgpw':'status','EfuKQ':_0x4aa044(0x10d),'FrKTi':_0x4aa044(0x129),'eLSyh':_0x4aa044(0x146),'FvStj':function(_0x4bc0aa,_0x1f1883){return _0x4bc0aa(_0x1f1883);},'EokTl':function(_0x50d67d,_0xec5c70){return _0x50d67d===_0xec5c70;},'lAaJK':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','zQufy':_0x4aa044(0x101),'jSRZs':_0x4aa044(0x128),'oAoHn':function(_0x556d5c,_0x4777ec,_0x5c24f2,_0x281483,_0x2a1a5b,_0x5972a3,_0x37be47){return _0x556d5c(_0x4777ec,_0x5c24f2,_0x281483,_0x2a1a5b,_0x5972a3,_0x37be47);},'EWldX':'unknown-error'};try{global_registry[_0x4aa044(0x140)]=_0x672037[_0x4aa044(0x158)](uuidv4);!fs[_0x4aa044(0x13c)](_0x672037[_0x4aa044(0x158)](getCredentialsPath))&&(console['error'](_0x672037['QxTRT']),await _0x672037[_0x4aa044(0x150)](sendInstrumentationEvent,_0x3c1967,_0x672037[_0x4aa044(0x12d)],messageTypes[_0x4aa044(0x10b)],_0x672037[_0x4aa044(0x109)],null,_0x3c1967),process[_0x4aa044(0x119)](0x1));const _0x50bf79=JSON[_0x4aa044(0x153)](fs[_0x4aa044(0x105)](_0x672037[_0x4aa044(0x158)](getCredentialsPath)));let _0x533471='https://'+AG_API_URL+'/packages/cli/get-grids';_0x3c1967['allGrids']&&(_0x533471=_0x4aa044(0x12b)+AG_API_URL+'/packages/cli/get-all-grids');const _0x5d0990={'method':_0x672037[_0x4aa044(0x13a)],'headers':_0x672037[_0x4aa044(0x14f)](getAuthHeader,_0x50bf79[_0x4aa044(0x11d)]['username'],_0x50bf79['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x4aa044(0x127)]=_0x50bf79[_0x4aa044(0x11d)][_0x4aa044(0x118)],global_registry[_0x4aa044(0x141)]=_0x50bf79[_0x4aa044(0x11d)][_0x4aa044(0x156)],_0x672037[_0x4aa044(0x112)](sendInstrumentationEvent,_0x3c1967,_0x672037[_0x4aa044(0x12d)],messageTypes[_0x4aa044(0x12e)],null,null,_0x3c1967);const _0x5342ad=await _0x672037[_0x4aa044(0x11e)](got,_0x533471,_0x5d0990);if(_0x672037[_0x4aa044(0x11f)](_0x5342ad,null)&&_0x672037['JrLge'](_0x5342ad,undefined)&&_0x672037[_0x4aa044(0x143)](_0x5342ad[_0x4aa044(0x12c)],0xc8)){const _0x54981e=JSON[_0x4aa044(0x153)](_0x5342ad['body']);console[_0x4aa044(0x122)](_0x672037[_0x4aa044(0x114)]);const _0x497646=[];_0x497646[_0x4aa044(0x111)]([_0x672037[_0x4aa044(0x157)],_0x672037[_0x4aa044(0x104)],_0x672037[_0x4aa044(0x121)],_0x672037[_0x4aa044(0x152)],_0x672037[_0x4aa044(0x136)],_0x672037[_0x4aa044(0x154)]]),_0x54981e[_0x4aa044(0x14c)](_0x4d9182=>{const _0x16b637=_0x4aa044;_0x497646[_0x16b637(0x111)]([_0x4d9182['id'],_0x4d9182[_0x16b637(0x11c)],_0x4d9182[_0x16b637(0x13d)],_0x4d9182[_0x16b637(0x10d)],_0x4d9182[_0x16b637(0x129)],_0x4d9182['clusterName']]);}),console[_0x4aa044(0x122)](_0x672037[_0x4aa044(0x126)](table,_0x497646)),process[_0x4aa044(0x119)](0x0);}_0x672037[_0x4aa044(0x116)](_0x5342ad[_0x4aa044(0x12c)],0x191)&&(console['error'](_0x672037[_0x4aa044(0x11b)]),await _0x672037[_0x4aa044(0x150)](sendInstrumentationEvent,_0x3c1967,_0x672037[_0x4aa044(0x12d)],messageTypes[_0x4aa044(0x10b)],_0x672037[_0x4aa044(0x14b)],null,_0x3c1967),process[_0x4aa044(0x119)](0x1)),console[_0x4aa044(0x12a)](_0x4aa044(0x13b)+JSON[_0x4aa044(0x144)](_0x5342ad)),await _0x672037[_0x4aa044(0x150)](sendInstrumentationEvent,_0x3c1967,_0x672037[_0x4aa044(0x12d)],messageTypes[_0x4aa044(0x10b)],_0x672037[_0x4aa044(0x102)],_0x5342ad,_0x3c1967),process[_0x4aa044(0x119)](0x1);}catch(_0x3bb598){console[_0x4aa044(0x12a)](_0x4aa044(0x115)+_0x3bb598[_0x4aa044(0x106)]),await _0x672037[_0x4aa044(0x149)](sendInstrumentationEvent,_0x3c1967,_0x672037['VTnUl'],messageTypes[_0x4aa044(0x10b)],_0x672037['EWldX'],_0x3bb598,_0x3c1967),process['exit'](0x1);}};
1
+ const a15_0x113f82=a15_0x4298;function a15_0xad25(){const _0x1be407=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','running','got','kcjwf','body','list-grids-called','options','exit','126471lSiUDq','ciRBO','Failed\x20to\x20list\x20resources!\x20Error:\x20','push','queued','ERROR','statusCode','mmAHH','grid','EsqdT','grids','error','log','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','ONAew','djYYO','yWmFV','all-grids','forEach','type','grid-id','/packages/cli/get-grids','10225260NhjTmm','list','help','126eSfzmg','jDjBA','INFO','GET','password','description','bstackAccesskey','desc','tHSrJ','usage','unauthorised','ixVsa','../../utils/instrumentationUtils','bstackUsername','grid-name','dSNyG','\x0aFound\x20the\x20following\x20grids:\x0a','Lxmwb','handler','yVdxs','/packages/cli/get-all-grids','654955YnaySR','54136082nvWJzr','rBQEN','command','username','mVtuC','POlHe','server-error','fGkxn','xDMZJ','clusterName','4296175CxfUue','8RUBIqc','../../config/constants','44BGZJoA','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','JMQjM','allGrids','274718IJxCRz','4MZaYQb','name','vwpHV','iVGvU','readFileSync','tObjf','init-not-called','yGrIv','existsSync','ZMgaK','https://','17827497TsgpBw','table','cluster-name','Browserstack','yZKcr','status','stack','JEpRV'];a15_0xad25=function(){return _0x1be407;};return a15_0xad25();}(function(_0x3ad548,_0x40c7e5){const _0x42027b=a15_0x4298,_0x505cbf=_0x3ad548();while(!![]){try{const _0x4bda18=-parseInt(_0x42027b(0x1ac))/0x1*(-parseInt(_0x42027b(0x1ab))/0x2)+parseInt(_0x42027b(0x1c7))/0x3*(-parseInt(_0x42027b(0x1a6))/0x4)+parseInt(_0x42027b(0x1a3))/0x5+parseInt(_0x42027b(0x1e0))/0x6*(parseInt(_0x42027b(0x198))/0x7)+-parseInt(_0x42027b(0x1a4))/0x8*(-parseInt(_0x42027b(0x1b7))/0x9)+parseInt(_0x42027b(0x1dd))/0xa+-parseInt(_0x42027b(0x199))/0xb;if(_0x4bda18===_0x40c7e5)break;else _0x505cbf['push'](_0x505cbf['shift']());}catch(_0x348bdb){_0x505cbf['push'](_0x505cbf['shift']());}}}(a15_0xad25,0xf21da));const fs=require('fs'),got=require(a15_0x113f82(0x1c1)),{table}=require(a15_0x113f82(0x1b8)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x113f82(0x1a5)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x113f82(0x1ec));function a15_0x4298(_0x4cada7,_0x17a305){const _0xad2503=a15_0xad25();return a15_0x4298=function(_0x429807,_0xa549ed){_0x429807=_0x429807-0x191;let _0x15c30b=_0xad2503[_0x429807];return _0x15c30b;},a15_0x4298(_0x4cada7,_0x17a305);}exports[a15_0x113f82(0x19b)]=a15_0x113f82(0x1d1),exports[a15_0x113f82(0x1e7)]=a15_0x113f82(0x1d4),exports['builder']=function(_0x2a4dbb){const _0x4446e3=a15_0x113f82,_0x21b1a9={};_0x21b1a9['jDjBA']=_0x4446e3(0x1a7),_0x21b1a9[_0x4446e3(0x1d0)]='boolean',_0x21b1a9[_0x4446e3(0x19d)]=_0x4446e3(0x1df);const _0x5e51db=_0x21b1a9,_0x3c8800={};_0x3c8800[_0x4446e3(0x1e5)]=_0x5e51db[_0x4446e3(0x1e1)],_0x3c8800[_0x4446e3(0x1da)]=_0x5e51db[_0x4446e3(0x1d0)];const _0x11a881={};return _0x11a881[_0x4446e3(0x1d8)]=_0x3c8800,_0x2a4dbb[_0x4446e3(0x1e9)](HELP_HEADER_MESSAGE[_0x4446e3(0x1de)][_0x4446e3(0x1cf)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4446e3(0x1c5)](_0x11a881)[_0x4446e3(0x1df)](_0x5e51db['mVtuC'])['argv'];},exports[a15_0x113f82(0x195)]=async function(_0x12da72){const _0x6776ff=a15_0x113f82,_0xf2a2d5={'yGrIv':function(_0x20209e){return _0x20209e();},'dSNyG':function(_0x53adc4){return _0x53adc4();},'kcjwf':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rBQEN':function(_0x3eb382,_0x571b54,_0xd2e41d,_0x382d66,_0x125f8e,_0x68b849,_0x1b9cbb){return _0x3eb382(_0x571b54,_0xd2e41d,_0x382d66,_0x125f8e,_0x68b849,_0x1b9cbb);},'xDMZJ':_0x6776ff(0x1c4),'MTbCB':_0x6776ff(0x1b2),'ixVsa':function(_0x458429){return _0x458429();},'JMQjM':_0x6776ff(0x1e3),'yZKcr':function(_0x49f7e4,_0xc2d151,_0x2e8480){return _0x49f7e4(_0xc2d151,_0x2e8480);},'ZMgaK':function(_0x78aaa5,_0x1b9198,_0x58ab49){return _0x78aaa5(_0x1b9198,_0x58ab49);},'yWmFV':function(_0x4ad12f,_0x423d48){return _0x4ad12f!==_0x423d48;},'iTeiW':function(_0x5c2af5,_0x34d7c5){return _0x5c2af5!==_0x34d7c5;},'iVGvU':function(_0x22cdbb,_0x5d3f55){return _0x22cdbb===_0x5d3f55;},'mmAHH':_0x6776ff(0x193),'ONAew':_0x6776ff(0x1db),'CjvLH':_0x6776ff(0x191),'tObjf':'status','ciRBO':_0x6776ff(0x1c0),'POlHe':_0x6776ff(0x1cb),'tHSrJ':_0x6776ff(0x1b9),'fGkxn':function(_0x2bf6d2,_0x2a7f2d){return _0x2bf6d2(_0x2a7f2d);},'djYYO':_0x6776ff(0x1bf),'yVdxs':function(_0x726504,_0x1f1025,_0x103010,_0xc4faa1,_0x3b6de3,_0x3f35ab,_0x5ebcc8){return _0x726504(_0x1f1025,_0x103010,_0xc4faa1,_0x3b6de3,_0x3f35ab,_0x5ebcc8);},'hUkbw':_0x6776ff(0x1ea),'vwpHV':function(_0x2e54b8,_0x239e30,_0x27e94e,_0x555eed,_0xd69650,_0x11cd1e,_0x5667e4){return _0x2e54b8(_0x239e30,_0x27e94e,_0x555eed,_0xd69650,_0x11cd1e,_0x5667e4);},'JEpRV':_0x6776ff(0x19f),'Lxmwb':'unknown-error'};try{global_registry['requestId']=_0xf2a2d5[_0x6776ff(0x1b3)](uuidv4);!fs[_0x6776ff(0x1b4)](_0xf2a2d5[_0x6776ff(0x192)](getCredentialsPath))&&(console[_0x6776ff(0x1d2)](_0xf2a2d5[_0x6776ff(0x1c2)]),await _0xf2a2d5['rBQEN'](sendInstrumentationEvent,_0x12da72,_0xf2a2d5[_0x6776ff(0x1a1)],messageTypes[_0x6776ff(0x1cc)],_0xf2a2d5['MTbCB'],null,_0x12da72),process['exit'](0x1));const _0xe16c22=JSON['parse'](fs[_0x6776ff(0x1b0)](_0xf2a2d5[_0x6776ff(0x1eb)](getCredentialsPath)));let _0x19bd55='https://'+AG_API_URL+_0x6776ff(0x1dc);_0x12da72[_0x6776ff(0x1aa)]&&(_0x19bd55=_0x6776ff(0x1b6)+AG_API_URL+_0x6776ff(0x197));const _0x3a0996={'method':_0xf2a2d5[_0x6776ff(0x1a9)],'headers':_0xf2a2d5[_0x6776ff(0x1bb)](getAuthHeader,_0xe16c22[_0x6776ff(0x1ba)][_0x6776ff(0x19c)],_0xe16c22[_0x6776ff(0x1ba)][_0x6776ff(0x1e4)]),'throwHttpErrors':![]};global_registry[_0x6776ff(0x1ed)]=_0xe16c22[_0x6776ff(0x1ba)][_0x6776ff(0x19c)],global_registry[_0x6776ff(0x1e6)]=_0xe16c22['Browserstack'][_0x6776ff(0x1e4)],_0xf2a2d5['rBQEN'](sendInstrumentationEvent,_0x12da72,_0xf2a2d5[_0x6776ff(0x1a1)],messageTypes[_0x6776ff(0x1e2)],null,null,_0x12da72);const _0x35dc6d=await _0xf2a2d5[_0x6776ff(0x1b5)](got,_0x19bd55,_0x3a0996);if(_0xf2a2d5[_0x6776ff(0x1d7)](_0x35dc6d,null)&&_0xf2a2d5['iTeiW'](_0x35dc6d,undefined)&&_0xf2a2d5['iVGvU'](_0x35dc6d[_0x6776ff(0x1cd)],0xc8)){const _0x2edb7b=JSON['parse'](_0x35dc6d[_0x6776ff(0x1c3)]);console[_0x6776ff(0x1d3)](_0xf2a2d5[_0x6776ff(0x1ce)]);const _0x5020cc=[];_0x5020cc[_0x6776ff(0x1ca)]([_0xf2a2d5[_0x6776ff(0x1d5)],_0xf2a2d5['CjvLH'],_0xf2a2d5[_0x6776ff(0x1b1)],_0xf2a2d5[_0x6776ff(0x1c8)],_0xf2a2d5[_0x6776ff(0x19e)],_0xf2a2d5[_0x6776ff(0x1e8)]]),_0x2edb7b[_0x6776ff(0x1d9)](_0x49dce4=>{const _0x53f9bb=_0x6776ff;_0x5020cc[_0x53f9bb(0x1ca)]([_0x49dce4['id'],_0x49dce4[_0x53f9bb(0x1ad)],_0x49dce4[_0x53f9bb(0x1bc)],_0x49dce4['running'],_0x49dce4[_0x53f9bb(0x1cb)],_0x49dce4[_0x53f9bb(0x1a2)]]);}),console[_0x6776ff(0x1d3)](_0xf2a2d5[_0x6776ff(0x1a0)](table,_0x5020cc)),process[_0x6776ff(0x1c6)](0x0);}_0xf2a2d5[_0x6776ff(0x1af)](_0x35dc6d[_0x6776ff(0x1cd)],0x191)&&(console[_0x6776ff(0x1d2)](_0xf2a2d5[_0x6776ff(0x1d6)]),await _0xf2a2d5[_0x6776ff(0x196)](sendInstrumentationEvent,_0x12da72,_0xf2a2d5['xDMZJ'],messageTypes['ERROR'],_0xf2a2d5['hUkbw'],null,_0x12da72),process['exit'](0x1)),console[_0x6776ff(0x1d2)](_0x6776ff(0x1a8)+JSON['stringify'](_0x35dc6d)),await _0xf2a2d5[_0x6776ff(0x1ae)](sendInstrumentationEvent,_0x12da72,_0xf2a2d5['xDMZJ'],messageTypes[_0x6776ff(0x1cc)],_0xf2a2d5[_0x6776ff(0x1be)],_0x35dc6d,_0x12da72),process[_0x6776ff(0x1c6)](0x1);}catch(_0x4184f0){console[_0x6776ff(0x1d2)](_0x6776ff(0x1c9)+_0x4184f0[_0x6776ff(0x1bd)]),await _0xf2a2d5[_0x6776ff(0x19a)](sendInstrumentationEvent,_0x12da72,_0xf2a2d5[_0x6776ff(0x1a1)],messageTypes['ERROR'],_0xf2a2d5[_0x6776ff(0x194)],_0x4184f0,_0x12da72),process[_0x6776ff(0x1c6)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x496332=a16_0x2b3d;(function(_0x1a460c,_0x53c1a1){const _0x2e4e81=a16_0x2b3d,_0x42027e=_0x1a460c();while(!![]){try{const _0x208c08=parseInt(_0x2e4e81(0x1b0))/0x1+-parseInt(_0x2e4e81(0x1aa))/0x2*(parseInt(_0x2e4e81(0x1b6))/0x3)+parseInt(_0x2e4e81(0x1bb))/0x4*(parseInt(_0x2e4e81(0x1b9))/0x5)+parseInt(_0x2e4e81(0x1bd))/0x6*(-parseInt(_0x2e4e81(0x1b8))/0x7)+-parseInt(_0x2e4e81(0x1b7))/0x8+parseInt(_0x2e4e81(0x1ba))/0x9*(-parseInt(_0x2e4e81(0x1bf))/0xa)+parseInt(_0x2e4e81(0x1bc))/0xb;if(_0x208c08===_0x53c1a1)break;else _0x42027e['push'](_0x42027e['shift']());}catch(_0x4be18a){_0x42027e['push'](_0x42027e['shift']());}}}(a16_0x28b2,0x66205));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x28b2(){const _0x8a502e=['CZCRc','620192aFNGSi','demandCommand','builder','command','handler','help','9gvDjAY','6119448YROCdF','56YvJFPB','1455tgepuQ','54AFhUHa','3420WDSwEi','19557846WRlTKQ','275304gWWtbC','pre_check','818460XfjiQJ','strict','usage','recommendCommands','desc','403730xglviX','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','pre-check','epilogue','SfIUO'];a16_0x28b2=function(){return _0x8a502e;};return a16_0x28b2();}function a16_0x2b3d(_0x5c5666,_0x148a73){const _0x28b286=a16_0x28b2();return a16_0x2b3d=function(_0x2b3d77,_0xbc0cde){_0x2b3d77=_0x2b3d77-0x1a6;let _0x191940=_0x28b286[_0x2b3d77];return _0x191940;},a16_0x2b3d(_0x5c5666,_0x148a73);}exports[a16_0x496332(0x1b3)]=a16_0x496332(0x1ac),exports[a16_0x496332(0x1a9)]=a16_0x496332(0x1ab),exports[a16_0x496332(0x1b2)]=function(_0x51a21f){const _0x3a3bb5=a16_0x496332,_0x1472e7={};_0x1472e7['CZCRc']='precheck_commands',_0x1472e7[_0x3a3bb5(0x1ae)]=_0x3a3bb5(0x1b5);const _0x49c8a4=_0x1472e7;return _0x51a21f[_0x3a3bb5(0x1a7)](HELP_HEADER_MESSAGE[_0x3a3bb5(0x1be)])[_0x3a3bb5(0x1ad)](HELP_FOOTER_MESSAGE)['commandDir'](_0x49c8a4[_0x3a3bb5(0x1af)])[_0x3a3bb5(0x1b1)]()[_0x3a3bb5(0x1a8)]()[_0x3a3bb5(0x1a6)]()[_0x3a3bb5(0x1b5)](_0x49c8a4[_0x3a3bb5(0x1ae)]);},exports[a16_0x496332(0x1b4)]=function(_0x4d6ca1){};
1
+ const a16_0x444634=a16_0x3241;function a16_0x3241(_0x64f15b,_0x25fb0a){const _0x51201c=a16_0x5120();return a16_0x3241=function(_0x3241dd,_0x14f0ed){_0x3241dd=_0x3241dd-0x99;let _0x4650be=_0x51201c[_0x3241dd];return _0x4650be;},a16_0x3241(_0x64f15b,_0x25fb0a);}(function(_0x1b4cfe,_0x13cbec){const _0xcaa9c4=a16_0x3241,_0x4bc312=_0x1b4cfe();while(!![]){try{const _0x6090a8=-parseInt(_0xcaa9c4(0x9b))/0x1*(parseInt(_0xcaa9c4(0xa0))/0x2)+-parseInt(_0xcaa9c4(0x9a))/0x3+-parseInt(_0xcaa9c4(0xaf))/0x4*(parseInt(_0xcaa9c4(0x99))/0x5)+parseInt(_0xcaa9c4(0x9c))/0x6*(-parseInt(_0xcaa9c4(0xb3))/0x7)+-parseInt(_0xcaa9c4(0xa8))/0x8*(parseInt(_0xcaa9c4(0x9d))/0x9)+-parseInt(_0xcaa9c4(0xa1))/0xa*(parseInt(_0xcaa9c4(0xac))/0xb)+parseInt(_0xcaa9c4(0x9f))/0xc;if(_0x6090a8===_0x13cbec)break;else _0x4bc312['push'](_0x4bc312['shift']());}catch(_0x2d55d9){_0x4bc312['push'](_0x4bc312['shift']());}}}(a16_0x5120,0x6a557));function a16_0x5120(){const _0xe488d9=['30217056SbyIvc','26VeOBHO','50tipzKv','command','commandDir','epilogue','melqX','pre_check','VCDjp','48HzeHWt','builder','demandCommand','pre-check','908545HjhjTf','strict','desc','297908ThjcSs','recommendCommands','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1131389hvvERz','55adOxkN','747006uDxqkN','18861kptFVj','12ntJfin','49311QzfIFd','handler'];a16_0x5120=function(){return _0xe488d9;};return a16_0x5120();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x444634(0xa2)]=a16_0x444634(0xab),exports[a16_0x444634(0xae)]=a16_0x444634(0xb2),exports[a16_0x444634(0xa9)]=function(_0x96ffda){const _0x1e4f6f=a16_0x444634,_0x2e6ea0={};_0x2e6ea0[_0x1e4f6f(0xa5)]='precheck_commands',_0x2e6ea0[_0x1e4f6f(0xa7)]='help';const _0x1caa99=_0x2e6ea0;return _0x96ffda[_0x1e4f6f(0xb1)](HELP_HEADER_MESSAGE[_0x1e4f6f(0xa6)])[_0x1e4f6f(0xa4)](HELP_FOOTER_MESSAGE)[_0x1e4f6f(0xa3)](_0x1caa99['melqX'])[_0x1e4f6f(0xaa)]()[_0x1e4f6f(0xb0)]()[_0x1e4f6f(0xad)]()['help'](_0x1caa99[_0x1e4f6f(0xa7)]);},exports[a16_0x444634(0x9e)]=function(_0x3d17f4){};
@@ -1 +1 @@
1
- const a17_0x1e0cf5=a17_0x1e96;(function(_0x2f796c,_0x5d34ac){const _0x145223=a17_0x1e96,_0x3ec915=_0x2f796c();while(!![]){try{const _0x24ae1f=-parseInt(_0x145223(0x208))/0x1+parseInt(_0x145223(0x215))/0x2*(parseInt(_0x145223(0x19b))/0x3)+parseInt(_0x145223(0x12d))/0x4+parseInt(_0x145223(0x124))/0x5*(parseInt(_0x145223(0x1e2))/0x6)+-parseInt(_0x145223(0x1d8))/0x7+parseInt(_0x145223(0x17c))/0x8*(parseInt(_0x145223(0x1ec))/0x9)+parseInt(_0x145223(0x13e))/0xa*(-parseInt(_0x145223(0x180))/0xb);if(_0x24ae1f===_0x5d34ac)break;else _0x3ec915['push'](_0x3ec915['shift']());}catch(_0x826d1d){_0x3ec915['push'](_0x3ec915['shift']());}}}(a17_0x3608,0x34345));const fs=require('fs'),ws=require('ws'),got=require(a17_0x1e0cf5(0x15f)),{v4:uuidv4}=require(a17_0x1e0cf5(0x1d4)),ReconnectingWebSocket=require(a17_0x1e0cf5(0x203)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1e0cf5(0x15e)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x1e0cf5(0x1b6)),{getCloudProviderObjectWithOutInit}=require(a17_0x1e0cf5(0x1d2)),webSocketUtils=require(a17_0x1e0cf5(0x161)),{sendInstrumentationEvent}=require(a17_0x1e0cf5(0x14d));exports['command']=a17_0x1e0cf5(0x1e0),exports[a17_0x1e0cf5(0x20e)]=a17_0x1e0cf5(0x1cd),exports[a17_0x1e0cf5(0x147)]=function(_0x2117c6){const _0x153631=a17_0x1e0cf5,_0x314f97={};_0x314f97[_0x153631(0x16b)]=_0x153631(0x11b),_0x314f97[_0x153631(0x14f)]=_0x153631(0x1be),_0x314f97[_0x153631(0x210)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x314f97['OAhKm']=_0x153631(0x20d),_0x314f97[_0x153631(0x131)]=_0x153631(0x126),_0x314f97[_0x153631(0x20f)]=_0x153631(0x143);const _0xb74f4d=_0x314f97,_0x50e2d5={};_0x50e2d5[_0x153631(0x1f1)]=_0xb74f4d['DOtZZ'],_0x50e2d5['type']=_0xb74f4d[_0x153631(0x14f)];const _0x13a30d={};_0x13a30d[_0x153631(0x1f1)]=_0xb74f4d[_0x153631(0x210)],_0x13a30d[_0x153631(0x21d)]=_0xb74f4d[_0x153631(0x14f)];const _0x496ba7={};_0x496ba7[_0x153631(0x1f1)]=_0xb74f4d['OAhKm'],_0x496ba7[_0x153631(0x21d)]=_0xb74f4d[_0x153631(0x14f)];const _0xc88795={};_0xc88795['description']=_0xb74f4d[_0x153631(0x131)],_0xc88795['type']=_0xb74f4d[_0x153631(0x14f)];const _0x2e0afc={};return _0x2e0afc[_0x153631(0x1c7)]=_0x50e2d5,_0x2e0afc[_0x153631(0x13b)]=_0x13a30d,_0x2e0afc['region']=_0x496ba7,_0x2e0afc[_0x153631(0x1f9)]=_0xc88795,_0x2117c6[_0x153631(0x14e)](HELP_HEADER_MESSAGE[_0x153631(0x1c2)])[_0x153631(0x1e3)](HELP_FOOTER_MESSAGE)[_0x153631(0x146)](_0x2e0afc)[_0x153631(0x143)](_0xb74f4d[_0x153631(0x20f)])[_0x153631(0x16d)];};async function inputValidation(_0xf2b664,_0x22c03e){const _0x54c0e6=a17_0x1e0cf5,_0x2d05b9={'FqrRW':'cloud-provider','qNGFT':_0x54c0e6(0x1c4),'QzDqO':_0x54c0e6(0x11b),'YgNsE':'string','KgXFg':_0x54c0e6(0x1f2),'HpYvI':_0x54c0e6(0x20d),'MjdJE':_0x54c0e6(0x126),'qNsEd':_0x54c0e6(0x143),'hnzFL':'region','PypYc':_0x54c0e6(0x1e6),'sfnNc':_0x54c0e6(0x192),'xwpTm':_0x54c0e6(0x19d),'RjRNs':function(_0x1e2ce8,_0x47b693){return _0x1e2ce8+_0x47b693;},'TgRmD':_0x54c0e6(0x174),'VqklK':_0x54c0e6(0x1ca),'RfGnQ':function(_0x4a5ce4,_0x1df345){return _0x4a5ce4||_0x1df345;},'ibdXq':_0x54c0e6(0x1c7),'TTUCk':_0x54c0e6(0x123),'lrecg':'will\x20be\x20created','emIci':function(_0x59a8c5,_0x24ce4f){return _0x59a8c5!==_0x24ce4f;},'XJOOU':'EmTEK','NTSex':function(_0xe939bd,_0x39c244){return _0xe939bd!==_0x39c244;},'KFDTJ':_0x54c0e6(0x1af),'tLfob':function(_0x2611be,_0x18d3f7){return _0x2611be===_0x18d3f7;},'uxzMp':_0x54c0e6(0x1db),'TXigO':_0x54c0e6(0x1bc),'tXsdF':'uXmsn','kHaeH':_0x54c0e6(0x177),'lAuOK':function(_0x9d040b,_0x130150){return _0x9d040b===_0x130150;},'tLbLN':'OavZH','WeKxg':_0x54c0e6(0x135),'DXIIq':function(_0x1a02fa,_0x4e786f){return _0x1a02fa>_0x4e786f;},'XDWmA':_0x54c0e6(0x1ea),'mxhrJ':function(_0x2e5cff,_0x346296,_0x3d5d78,_0x1cdfe7,_0x11230f,_0x1d6f32,_0x39a813,_0x1697d8){return _0x2e5cff(_0x346296,_0x3d5d78,_0x1cdfe7,_0x11230f,_0x1d6f32,_0x39a813,_0x1697d8);},'NxTxF':_0x54c0e6(0x120),'TOxCP':_0x54c0e6(0x1a4),'LJLML':_0x54c0e6(0x1c5),'sTAst':_0x54c0e6(0x16c),'qkwAK':function(_0x2b4832,_0x206e8f,_0x37f5a3,_0x5efae8,_0x1a7e5e,_0x389236,_0x351aab,_0x5ea371){return _0x2b4832(_0x206e8f,_0x37f5a3,_0x5efae8,_0x1a7e5e,_0x389236,_0x351aab,_0x5ea371);},'tKjhA':_0x54c0e6(0x136),'EeCER':function(_0x47a493,_0x5cd333){return _0x47a493===_0x5cd333;},'Mupzp':_0x54c0e6(0x1eb),'uredf':_0x54c0e6(0x1d1),'NbkbF':_0x54c0e6(0x20b),'hcGWg':_0x54c0e6(0x17a),'HlBLh':_0x54c0e6(0x19f),'NkLjG':function(_0x591e97,_0x27afea,_0x514015){return _0x591e97(_0x27afea,_0x514015);},'vxmiJ':function(_0x57547d,_0x396957,_0x29a315,_0x4e7b94,_0x1dc449,_0x1adc9c){return _0x57547d(_0x396957,_0x29a315,_0x4e7b94,_0x1dc449,_0x1adc9c);},'IKIHc':_0x54c0e6(0x1b2),'sfdHJ':_0x54c0e6(0x1f9),'ArsUP':'rZXyk','DrCCw':function(_0x38930a,_0x1fc894){return _0x38930a(_0x1fc894);},'pDUfk':function(_0x39e4c3,_0x44e777){return _0x39e4c3===_0x44e777;},'qkqan':_0x54c0e6(0x193),'StLnQ':'MZOcY','NiFod':_0x54c0e6(0x209),'qJXUj':function(_0x1a8322,_0x402651){return _0x1a8322!==_0x402651;},'iIRal':_0x54c0e6(0x1f3),'afVzf':function(_0x3ec623,_0x1b9b93){return _0x3ec623===_0x1b9b93;},'ThmhO':'cqQtI','gbpTL':'MHwPd','RdGxI':'Grid\x20profile\x20fetched\x20for\x20pre-check','joKaR':_0x54c0e6(0x11e),'jpZsg':function(_0x31ed70,_0x6523e6){return _0x31ed70!==_0x6523e6;},'uMqsD':_0x54c0e6(0x1fd),'Niiur':_0x54c0e6(0x213)};let _0x478d2e;try{if(_0x2d05b9[_0x54c0e6(0x128)](_0x2d05b9['XJOOU'],_0x2d05b9[_0x54c0e6(0x171)]))_0x1d226c[_0x54c0e6(0x1b4)](0x1);else{if(_0xf2b664[_0x54c0e6(0x1fe)]||_0xf2b664[_0x54c0e6(0x1ac)]||_0xf2b664[_0x54c0e6(0x1ae)]){if(_0x2d05b9[_0x54c0e6(0x18c)](_0x2d05b9[_0x54c0e6(0x178)],_0x2d05b9[_0x54c0e6(0x178)]))_0x5d1b54[_0x54c0e6(0x12b)](_0x2d05b9[_0x54c0e6(0x165)]);else{const _0xe48094=[];!_0xf2b664['clusterName']&&(_0x2d05b9[_0x54c0e6(0x1d6)](_0x2d05b9[_0x54c0e6(0x13a)],_0x2d05b9[_0x54c0e6(0x134)])?(_0xdb8a7f[_0x54c0e6(0x19d)](_0x2d05b9[_0x54c0e6(0x14c)]),_0x2a73f8[_0x54c0e6(0x1b4)](0x1)):_0xe48094[_0x54c0e6(0x12b)](_0x2d05b9[_0x54c0e6(0x20c)]));;if(!_0xf2b664[_0x54c0e6(0x1ac)]){if(_0x2d05b9[_0x54c0e6(0x18c)](_0x2d05b9[_0x54c0e6(0x1ba)],_0x2d05b9[_0x54c0e6(0x158)]))_0xe48094[_0x54c0e6(0x12b)](_0x2d05b9['FqrRW']);else{const _0x460293={};_0x460293[_0x54c0e6(0x1f1)]=_0x2d05b9['QzDqO'],_0x460293[_0x54c0e6(0x21d)]=_0x2d05b9[_0x54c0e6(0x137)];const _0x4919d2={};_0x4919d2[_0x54c0e6(0x1f1)]=_0x2d05b9[_0x54c0e6(0x139)],_0x4919d2[_0x54c0e6(0x21d)]=_0x2d05b9[_0x54c0e6(0x137)];const _0x3990ad={};_0x3990ad['description']=_0x2d05b9[_0x54c0e6(0x182)],_0x3990ad[_0x54c0e6(0x21d)]=_0x2d05b9['YgNsE'];const _0xe63432={};_0xe63432[_0x54c0e6(0x1f1)]=_0x2d05b9[_0x54c0e6(0x169)],_0xe63432[_0x54c0e6(0x21d)]=_0x2d05b9['YgNsE'];const _0x4ca7fd={};return _0x4ca7fd[_0x54c0e6(0x1c7)]=_0x460293,_0x4ca7fd[_0x54c0e6(0x13b)]=_0x4919d2,_0x4ca7fd[_0x54c0e6(0x1ae)]=_0x3990ad,_0x4ca7fd[_0x54c0e6(0x1f9)]=_0xe63432,_0x3805c8['usage'](_0x32133a['pre_check'])[_0x54c0e6(0x1e3)](_0x2ddc7a)[_0x54c0e6(0x146)](_0x4ca7fd)[_0x54c0e6(0x143)](_0x2d05b9['qNsEd'])[_0x54c0e6(0x16d)];}};!_0xf2b664[_0x54c0e6(0x1ae)]&&(_0x2d05b9[_0x54c0e6(0x18d)](_0x2d05b9[_0x54c0e6(0x121)],_0x2d05b9['WeKxg'])?_0x98052d[_0x54c0e6(0x12b)](_0x2d05b9[_0x54c0e6(0x151)]):_0xe48094[_0x54c0e6(0x12b)](_0x2d05b9[_0x54c0e6(0x151)]));;_0x2d05b9[_0x54c0e6(0x200)](_0xe48094[_0x54c0e6(0x1cf)],0x0)&&(_0x2d05b9[_0x54c0e6(0x18d)](_0x2d05b9[_0x54c0e6(0x21a)],_0x2d05b9[_0x54c0e6(0x21a)])?(_0x478d2e='Missing\x20required\x20arguments:\x20'+_0xe48094[_0x54c0e6(0x186)](',\x20')+_0x54c0e6(0x15a),await _0x2d05b9['mxhrJ'](reportToGalactusAndSendToEDS,_0xf2b664,_0x22c03e,_0x478d2e,messageTypes['ERROR'],_0x2d05b9['NxTxF'],_0x2d05b9[_0x54c0e6(0x1e8)],_0x2d05b9['xwpTm']),logger[_0x54c0e6(0x19d)](_0x478d2e),process['exit'](0x1)):(_0x4b8f86[_0x54c0e6(0x167)]('['+_0x13ccdc+']\x20status\x20:\x20'+_0x1c2f38[_0x54c0e6(0x1d9)]+_0x54c0e6(0x175)+_0xb543ba['data']+'\x20error\x20:\x20'+_0x38ca45[_0x54c0e6(0x19d)]),_0xf9bfa1[_0x54c0e6(0x19d)]&&_0x2ca52a[_0x54c0e6(0x19d)](_0x54c0e6(0x153)+_0x3ea564[_0x54c0e6(0x19d)]['stack']))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x54c0e6(0x13f)](_0xf2b664['cloudProvider'][_0x54c0e6(0x16a)]())&&(_0x2d05b9[_0x54c0e6(0x1d6)](_0x2d05b9['LJLML'],_0x2d05b9[_0x54c0e6(0x202)])?(_0x478d2e=_0x2d05b9[_0x54c0e6(0x20a)],await _0x2d05b9['qkwAK'](reportToGalactusAndSendToEDS,_0xf2b664,_0x22c03e,_0x478d2e,messageTypes[_0x54c0e6(0x170)],_0x2d05b9[_0x54c0e6(0x14a)],_0x2d05b9[_0x54c0e6(0x17b)],_0x2d05b9['xwpTm']),logger[_0x54c0e6(0x19d)](_0x478d2e),!_0xf2b664['cloudProvider']&&(_0x2d05b9['EeCER'](_0x2d05b9[_0x54c0e6(0x1aa)],_0x2d05b9[_0x54c0e6(0x1f5)])?_0x33a144+=_0x54c0e6(0x17d)+_0x288249['clusterName']+_0x54c0e6(0x17f):(logger[_0x54c0e6(0x167)](_0x54c0e6(0x159)+DEFAULT_CLUSTER_DETAILS[_0x54c0e6(0x1a9)]+'\x20'),_0xf2b664[_0x54c0e6(0x1ac)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x4864b9+=_0x2d05b9[_0x54c0e6(0x1e4)],_0x35aa7a+='\x20\x20Message:\x20'+(_0x998db9[_0x54c0e6(0x163)]||_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a',_0x2d0ca9+='\x20\x20Code:\x20'+(_0x27cfad[_0x54c0e6(0x1a2)]||_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a',_0x5e2ab3+=_0x54c0e6(0x176)+(_0x18678f[_0x54c0e6(0x144)]||_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a')),global_registry[_0x54c0e6(0x1fe)]=_0xf2b664[_0x54c0e6(0x1fe)],global_registry['cloudProvider']=_0xf2b664[_0x54c0e6(0x1ac)],global_registry[_0x54c0e6(0x1fc)]=_0xf2b664['region'];}}else{if(_0xf2b664[_0x54c0e6(0x1f6)]){if(_0x2d05b9[_0x54c0e6(0x1bf)](_0x2d05b9[_0x54c0e6(0x207)],_0x2d05b9[_0x54c0e6(0x127)]))_0x8c72fd[_0x54c0e6(0x167)](_0x54c0e6(0x159)+_0x232649[_0x54c0e6(0x1a9)]+'\x20'),_0x1ee5ee[_0x54c0e6(0x1ac)]=_0x406fd0['CLOUD_PROVIDER'];else{global_registry[_0x54c0e6(0x1f6)]=_0xf2b664['gridProfile'],logger['debug']('grid\x20profile\x20flow\x20'+_0xf2b664[_0x54c0e6(0x1f6)]);const _0x3e89e6=_0x54c0e6(0x156)+AG_API_URL+_0x54c0e6(0x160),_0x455bfd={};_0x455bfd[_0x54c0e6(0x141)]=_0x2d05b9[_0x54c0e6(0x13c)],_0x455bfd['headers']=global_registry[_0x54c0e6(0x199)],_0x455bfd[_0x54c0e6(0x211)]=![];const _0x36b6e4=_0x455bfd,_0x36613d=await _0x2d05b9[_0x54c0e6(0x1cc)](got,_0x3e89e6,_0x36b6e4),_0x444e4d=await _0x2d05b9['vxmiJ'](responseValidation,_0x36613d,_0x2d05b9[_0x54c0e6(0x1ff)],_0x2d05b9[_0x54c0e6(0x1a6)],_0xf2b664,_0x22c03e);let _0x2f24e0={};if(_0x2d05b9[_0x54c0e6(0x18d)](_0x444e4d,0xc8)){if(_0x2d05b9[_0x54c0e6(0x1d6)](_0x2d05b9[_0x54c0e6(0x1ce)],_0x2d05b9[_0x54c0e6(0x1ce)])){const _0x528267=JSON['parse'](_0x36613d[_0x54c0e6(0x12a)]),_0x45c80e=_0x528267[_0x54c0e6(0x15c)](_0x13f57c=>_0x13f57c[_0x54c0e6(0x1a5)]===_0xf2b664['gridProfile'])||null;if(_0x2d05b9[_0x54c0e6(0x194)](isUndefined,_0x45c80e)){if(_0x2d05b9[_0x54c0e6(0x17e)](_0x2d05b9[_0x54c0e6(0x1de)],_0x2d05b9['StLnQ'])){const _0x140993={};_0x140993['type']=_0x1d01b9['LOG'],_0x140993[_0x54c0e6(0x163)]=_0x144a9f,_0x1d67fe[_0x54c0e6(0x152)](_0x3fd510,_0x140993,_0x2d05b9['xwpTm'],!![]);}else _0x478d2e='Invalid\x20input.\x20grid\x20profiles:\x20'+_0xf2b664[_0x54c0e6(0x1f6)]+_0x54c0e6(0x1f8),await _0x2d05b9[_0x54c0e6(0x1b3)](reportToGalactusAndSendToEDS,_0xf2b664,_0x22c03e,_0x478d2e,messageTypes[_0x54c0e6(0x170)],_0x2d05b9[_0x54c0e6(0x14a)],_0x2d05b9['NiFod'],_0x2d05b9[_0x54c0e6(0x216)]),logger[_0x54c0e6(0x19d)](_0x478d2e),process[_0x54c0e6(0x1b4)](0x1);}else{if(_0x2d05b9['qJXUj'](_0x2d05b9['iIRal'],_0x2d05b9[_0x54c0e6(0x21c)])){const {header:_0x2afd30,response:_0x412bc4}=_0x5b8b54,{status:_0x4e4fa6,data:_0x553646,error:_0x9877c1}=_0x412bc4;_0x2f6707+=_0x2afd30+'\x20#'+_0x2d05b9[_0x54c0e6(0x1c3)](_0xed6b53,0x1)+'\x0a',_0x55ac1a+=_0x54c0e6(0x217)+(_0x4e4fa6?_0x2d05b9['TgRmD']:_0x2d05b9['VqklK'])+'\x0a',_0x3db9cc+=_0x54c0e6(0x191)+_0x2d05b9[_0x54c0e6(0x196)](_0x553646,_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a',_0x9877c1&&(_0x436344+=_0x2d05b9[_0x54c0e6(0x1e4)],_0x2f0e0e+=_0x54c0e6(0x197)+(_0x9877c1[_0x54c0e6(0x163)]||_0x2d05b9['sfnNc'])+'\x0a',_0x35f396+=_0x54c0e6(0x195)+(_0x9877c1['code']||_0x2d05b9[_0x54c0e6(0x15d)])+'\x0a',_0x3630a5+=_0x54c0e6(0x176)+(_0x9877c1[_0x54c0e6(0x144)]||_0x2d05b9['sfnNc'])+'\x0a'),_0x5cc617+='\x0a\x0a';}else _0x2f24e0=_0x45c80e;}}else _0xc416c0['push'](_0x2d05b9[_0x54c0e6(0x20c)]);}else _0x2d05b9[_0x54c0e6(0x1ad)](_0x2d05b9['ThmhO'],_0x2d05b9[_0x54c0e6(0x1d3)])?_0x2131b9=_0x1b809a:process[_0x54c0e6(0x1b4)](0x1);const _0x33cfe5={};_0x33cfe5[_0x54c0e6(0x21d)]=WS_EVENTS[_0x54c0e6(0x218)],_0x33cfe5['message']=_0x2d05b9[_0x54c0e6(0x15b)],webSocketUtils[_0x54c0e6(0x152)](_0x22c03e,_0x33cfe5),global_registry[_0x54c0e6(0x1ac)]=_0x2f24e0[_0x54c0e6(0x1ac)],global_registry[_0x54c0e6(0x1fc)]=_0x2f24e0[_0x54c0e6(0x1ae)],global_registry[_0x54c0e6(0x1fe)]=_0x2f24e0[_0x54c0e6(0x1fe)];}}else _0x2d05b9[_0x54c0e6(0x19e)](_0x2d05b9[_0x54c0e6(0x1a0)],_0x2d05b9[_0x54c0e6(0x1a0)])?_0x5570a6+=_0x54c0e6(0x17d)+_0x54241c[_0x54c0e6(0x1fe)]+'\x20'+(_0x389982?_0x2d05b9[_0x54c0e6(0x168)]:_0x2d05b9['lrecg'])+'\x0a\x0a':(logger[_0x54c0e6(0x19d)](_0x2d05b9[_0x54c0e6(0x14c)]),process[_0x54c0e6(0x1b4)](0x1));}}}catch(_0x4282a2){_0x2d05b9[_0x54c0e6(0x1d0)](_0x2d05b9[_0x54c0e6(0x198)],_0x2d05b9[_0x54c0e6(0x201)])?(_0x478d2e=_0x54c0e6(0x204)+_0x4282a2+':\x20'+_0x4282a2[_0x54c0e6(0x144)],logger[_0x54c0e6(0x19d)](_0x478d2e),await _0x2d05b9[_0x54c0e6(0x1b8)](reportToGalactusAndSendToEDS,_0xf2b664,_0x22c03e,_0x478d2e,messageTypes[_0x54c0e6(0x170)],_0x2d05b9[_0x54c0e6(0x14a)],_0x2d05b9[_0x54c0e6(0x17b)],_0x2d05b9['xwpTm']),process['exit'](0x1)):_0x4617ff[_0x54c0e6(0x167)]('Cluster\x20`'+_0x42cde5[_0x54c0e6(0x1fe)]+_0x54c0e6(0x157));}}function a17_0x3608(){const _0x340a2e=['name','sfdHJ','SbFoi','data','CLOUD_PROVIDER','Mupzp','\x20region\x20-\x20','cloudProvider','afVzf','region','KHIhT','INFO','Browserstack','pre-check','qkwAK','exit','rUEkT','../../config/constants','delay','mxhrJ','Cluster\x20`','tXsdF','QHtVT','uKOth','stack\x20trace\x20','string','EeCER','===\x20Precheck\x20Report\x20-\x20','debug','pre_check','RjRNs','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','yXTsg','veGbF','cluster-name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eUAcx','Failure','unable\x20to\x20verify\x20if\x20cluster\x20`','NkLjG','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','ArsUP','length','jpZsg','GQcTg','../../cloudproviders/utils','gbpTL','uuid','ezaZb','tLfob','response','988316kCJQdZ','status','dZkCt','VLAqY','getUTCDate','yINee','qkqan','pre-check-failed','grid','writeFileSync','2128482Fshzbk','epilogue','PypYc','toolInstalledResp','Error\x20Details:\x0a','OImpL','TOxCP','`\x20,error\x20:\x20','geYJY','QBVdR','132903kxdCUu','Updeg','Failed\x20in\x20pre-check!\x20Error:\x20','credential-not-found','checkAccess','description','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ubGCw','getUTCMonth','uredf','gridProfile','User\x20Access','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','grid-profile','JreAv','WebSocket','clusterRegion','Tqnhm','clusterName','IKIHc','DXIIq','Niiur','LJLML','reconnecting-websocket','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','YgASz','GMWuL','NbkbF','270723qzVaeN','pre-check-grid-profile-empty','sTAst','INgIA','ibdXq','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','desc','BUqOi','uJBtf','throwHttpErrors','ixEOU','UNpph','vCjIm','466UKhOkv','xwpTm','Status:\x20','LOG','pjpWz','XDWmA','BdTdg','iIRal','type','requestId','<PasswordPlaceholder>','DYmcN','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','vTMZe','username','ggPrP','QkgWV','pre-check-grid-called','tLbLN','\x20===\x0a\x0a','is\x20already\x20present','5BjHQQw','isTrialGridAccessible','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hcGWg','emIci','cluster-check-failed-','body','push','Tool\x20Installed','1049872vNXbpB','handler','stringify','parse','mhahM','sLeLj','bstackAccesskey','TXigO','mJVxZ','cloud-provider-not-supported','YgNsE','nQjur','KgXFg','uxzMp','cloud-provider','HlBLh','forEach','14990upNluG','includes','replace','method','isCliToolInstalled','help','stack','isTls1_2_SUPPORTED','options','builder','mUNKz','readFileSync','NxTxF','TLSv1_2_client_method','qNGFT','../../utils/instrumentationUtils','usage','sdAuG','<UsernamePlaceholder>','hnzFL','sendEventToBackend','error\x20stack\x20:\x20','\x20error\x20:\x20','password','https://','`\x20already\x20exists','kHaeH','Setting\x20cloud\x20provider\x20as\x20','.\x20Please\x20provide\x20all\x20required\x20arguments.','RdGxI','find','sfnNc','../../utils/utilityMethods','got','/packages/cli/get-all-grid-profiles','../../utils/webSocketUtils','getUTCHours','message','kqGWP','FqrRW','Atjgg','info','TTUCk','MjdJE','toLowerCase','DOtZZ','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','argv','UImFU','split','ERROR','XJOOU','`\x20is\x20present\x20in\x20region\x20`','cAuqd','Success','\x20data\x20:\x20','\x20\x20Stack:\x20','emKFX','KFDTJ','mTLeE','JbkWi','tKjhA','216rsNNlh','Cluster\x20','pDUfk','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','3289DKMwjy','rNKaE','HpYvI','uuJUM','Report\x20saved\x20in\x20','FMSLM','join','log/report_','uFXXV','3|1|2|4|0','dZALz','will\x20be\x20created','NTSex','lAuOK','utf-8','sHRrt','Cluster\x20details\x0a-----------------------\x0a','Message:\x20','N/A','xmiqC','DrCCw','\x20\x20Code:\x20','RfGnQ','\x20\x20Message:\x20','uMqsD','authHeader','bstackUsername','747JuoLZE','HFQIb','error','qJXUj','GET','joKaR','header','code','dummy-grid','pre-check-cluster-args-not-passed'];a17_0x3608=function(){return _0x340a2e;};return a17_0x3608();}function a17_0x1e96(_0x31c394,_0x7cf106){const _0x360890=a17_0x3608();return a17_0x1e96=function(_0x1e9635,_0x2c98f7){_0x1e9635=_0x1e9635-0x11b;let _0x185ece=_0x360890[_0x1e9635];return _0x185ece;},a17_0x1e96(_0x31c394,_0x7cf106);}function printResponse(_0x49ace7,_0x2dc103){const _0x138348=a17_0x1e0cf5,_0x2777c4={};_0x2777c4[_0x138348(0x185)]=function(_0x22c21c,_0x267ad0){return _0x22c21c!==_0x267ad0;},_0x2777c4['uuJUM']='pOtvb',_0x2777c4[_0x138348(0x1a7)]=_0x138348(0x1c9);const _0x3e355c=_0x2777c4;logger[_0x138348(0x167)]('['+_0x49ace7+']\x20status\x20:\x20'+_0x2dc103[_0x138348(0x1d9)]+'\x20data\x20:\x20'+_0x2dc103[_0x138348(0x1a8)]+_0x138348(0x154)+_0x2dc103[_0x138348(0x19d)]),_0x2dc103[_0x138348(0x19d)]&&(_0x3e355c[_0x138348(0x185)](_0x3e355c[_0x138348(0x183)],_0x3e355c[_0x138348(0x1a7)])?logger[_0x138348(0x19d)](_0x138348(0x153)+_0x2dc103['error'][_0x138348(0x144)]):_0x2b1ad6[_0x138348(0x19d)](_0x138348(0x153)+_0x8c7e94[_0x138348(0x19d)][_0x138348(0x144)]));}async function generateReport(_0x29bf0b,_0x533b8d){const _0x360968=a17_0x1e0cf5,_0x366205={'JFzmT':function(_0x517dd5,_0x53eeb3){return _0x517dd5+_0x53eeb3;},'rUEkT':_0x360968(0x174),'uFXXV':'Failure','XMktT':function(_0x49a3e8,_0x1de641){return _0x49a3e8||_0x1de641;},'QkgWV':_0x360968(0x192),'HFQIb':_0x360968(0x1e6),'ezaZb':_0x360968(0x190),'PUvFZ':function(_0x12e9dd,_0x283c6a){return _0x12e9dd!=_0x283c6a;},'mTLeE':_0x360968(0x123),'nQjur':_0x360968(0x18b),'BdTdg':function(_0x1b3c0f){return _0x1b3c0f();}};let _0x395bcf=_0x360968(0x1c0)+global_registry[_0x360968(0x1ac)]+_0x360968(0x122);return _0x29bf0b[_0x360968(0x13d)]((_0x4d011b,_0x382ddf)=>{const _0x5a6740=_0x360968,{header:_0x7cc27c,response:_0x1c5c15}=_0x4d011b,{status:_0x553065,data:_0x17fd89,error:_0x3a8cae}=_0x1c5c15;_0x395bcf+=_0x7cc27c+'\x20#'+_0x366205['JFzmT'](_0x382ddf,0x1)+'\x0a',_0x395bcf+=_0x5a6740(0x217)+(_0x553065?_0x366205[_0x5a6740(0x1b5)]:_0x366205[_0x5a6740(0x188)])+'\x0a',_0x395bcf+=_0x5a6740(0x191)+_0x366205['XMktT'](_0x17fd89,_0x366205[_0x5a6740(0x11f)])+'\x0a',_0x3a8cae&&(_0x395bcf+=_0x366205[_0x5a6740(0x19c)],_0x395bcf+=_0x5a6740(0x197)+(_0x3a8cae[_0x5a6740(0x163)]||_0x366205[_0x5a6740(0x11f)])+'\x0a',_0x395bcf+=_0x5a6740(0x195)+(_0x3a8cae[_0x5a6740(0x1a2)]||_0x366205[_0x5a6740(0x11f)])+'\x0a',_0x395bcf+=_0x5a6740(0x176)+(_0x3a8cae[_0x5a6740(0x144)]||_0x366205[_0x5a6740(0x11f)])+'\x0a'),_0x395bcf+='\x0a\x0a';}),_0x395bcf+=_0x366205[_0x360968(0x1d5)],_0x366205['PUvFZ'](_0x533b8d,null)?_0x395bcf+=_0x360968(0x17d)+global_registry[_0x360968(0x1fe)]+'\x20'+(_0x533b8d?_0x366205[_0x360968(0x179)]:_0x366205[_0x360968(0x138)])+'\x0a\x0a':_0x395bcf+=_0x360968(0x17d)+global_registry[_0x360968(0x1fe)]+_0x360968(0x17f),_0x395bcf+=_0x366205[_0x360968(0x21b)](getSystemMetaData),_0x395bcf;};exports[a17_0x1e0cf5(0x12e)]=async function(_0x475ed3){const _0x338a0d=a17_0x1e0cf5,_0x3d7709={'dZkCt':function(_0x4bb1e0){return _0x4bb1e0();},'mUNKz':_0x338a0d(0x1c8),'kqGWP':function(_0x1e2fb9,_0x8cc3fa,_0x5afe49,_0x2e4998,_0x2df534,_0x529c76,_0xbc871a,_0xef30d0){return _0x1e2fb9(_0x8cc3fa,_0x5afe49,_0x2e4998,_0x2df534,_0x529c76,_0xbc871a,_0xef30d0);},'GMWuL':'pre-check-grid-called','rbOpr':_0x338a0d(0x1ef),'OImpL':_0x338a0d(0x19d),'yINee':function(_0x1e4100,_0x16d083,_0x5ab1db,_0x3b301f,_0x26f504,_0x47a118,_0x62ec79){return _0x1e4100(_0x16d083,_0x5ab1db,_0x3b301f,_0x26f504,_0x47a118,_0x62ec79);},'ynxOv':_0x338a0d(0x150),'dZALz':_0x338a0d(0x21f),'sHRrt':function(_0x4083a3,_0x30a8ce,_0x5ae4f7){return _0x4083a3(_0x30a8ce,_0x5ae4f7);},'QHtVT':_0x338a0d(0x1a3),'YgASz':_0x338a0d(0x1e5),'veGbF':_0x338a0d(0x189),'ixEOU':function(_0x21d6cb,_0x139f33,_0x4704c0,_0x5ebb2a,_0x962ffb,_0x5a24aa,_0x5e4842,_0x33528c){return _0x21d6cb(_0x139f33,_0x4704c0,_0x5ebb2a,_0x962ffb,_0x5a24aa,_0x5e4842,_0x33528c);},'rNKaE':function(_0x4270e4,_0x5f30a7,_0x5e250c){return _0x4270e4(_0x5f30a7,_0x5e250c);},'cAuqd':'accessResp','vCjIm':_0x338a0d(0x125),'ZnQbd':function(_0x4d8de,_0x2708ef){return _0x4d8de(_0x2708ef);},'sLeLj':_0x338a0d(0x14b),'vTMZe':_0x338a0d(0x145),'ZfOjn':_0x338a0d(0x12c),'DYmcN':_0x338a0d(0x1f7),'DdvjF':'Whitelisted\x20browserstack','Atjgg':'SSL\x20Configured','UImFU':function(_0x1ad588,_0x320cce,_0x5c86b0){return _0x1ad588(_0x320cce,_0x5c86b0);},'Updeg':function(_0x57c5bc,_0x4f787e){return _0x57c5bc+_0x4f787e;},'pjpWz':_0x338a0d(0x18e),'JreAv':_0x338a0d(0x1df)};let _0xfefeac,_0x5aa0fc;try{global_registry[_0x338a0d(0x21e)]=_0x3d7709[_0x338a0d(0x1da)](uuidv4);!fs['existsSync'](_0x3d7709[_0x338a0d(0x1da)](getCredentialsPath))&&(_0x5aa0fc=_0x3d7709[_0x338a0d(0x148)],logger['error'](_0x5aa0fc),await _0x3d7709[_0x338a0d(0x164)](reportToGalactusAndSendToEDS,_0x475ed3,_0xfefeac,_0x5aa0fc,messageTypes[_0x338a0d(0x170)],_0x3d7709[_0x338a0d(0x206)],_0x3d7709['rbOpr'],_0x3d7709[_0x338a0d(0x1e7)]),process[_0x338a0d(0x1b4)](0x1));_0x3d7709[_0x338a0d(0x1dd)](sendInstrumentationEvent,_0x475ed3,_0x3d7709[_0x338a0d(0x206)],messageTypes[_0x338a0d(0x1b0)],null,null,_0x475ed3);const _0x504977=JSON[_0x338a0d(0x130)](fs[_0x338a0d(0x149)](_0x3d7709['dZkCt'](getCredentialsPath)));global_registry[_0x338a0d(0x19a)]=_0x504977[_0x338a0d(0x1b1)][_0x338a0d(0x11d)],global_registry[_0x338a0d(0x133)]=_0x504977['Browserstack'][_0x338a0d(0x155)];const _0x4b4620=WS_ENDPOINT[_0x338a0d(0x140)](_0x3d7709['ynxOv'],_0x504977[_0x338a0d(0x1b1)][_0x338a0d(0x11d)])[_0x338a0d(0x140)](_0x3d7709[_0x338a0d(0x18a)],_0x504977[_0x338a0d(0x1b1)]['password']),_0x460ea8={};_0x460ea8[_0x338a0d(0x1fb)]=ws,_0x460ea8['connectionTimeout']=0x36ee80,_0xfefeac=new ReconnectingWebSocket(_0x4b4620,[],_0x460ea8),global_registry[_0x338a0d(0x199)]=_0x3d7709[_0x338a0d(0x18f)](getAuthHeader,global_registry[_0x338a0d(0x19a)],global_registry[_0x338a0d(0x133)]),await _0x3d7709['sHRrt'](inputValidation,_0x475ed3,_0xfefeac),logger[_0x338a0d(0x167)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+_0x338a0d(0x1ab)+global_registry[_0x338a0d(0x1fc)]);let _0x52d446=await _0x3d7709[_0x338a0d(0x1dd)](getCloudProviderObjectWithOutInit,global_registry[_0x338a0d(0x1ac)],global_registry[_0x338a0d(0x1fe)],_0x3d7709[_0x338a0d(0x1bb)],_0xfefeac,webSocketUtils,_0x475ed3);const _0x5e7ed5=await _0x52d446[_0x338a0d(0x142)]();_0x3d7709['sHRrt'](printResponse,_0x3d7709[_0x338a0d(0x205)],_0x5e7ed5),_0x52d446=await _0x52d446['init']();let _0x508151=![];try{_0x508151=await _0x52d446['isClusterPresent']();}catch(_0x4098d0){const _0x37a160=_0x3d7709[_0x338a0d(0x1c6)][_0x338a0d(0x16f)]('|');let _0x57dcd0=0x0;while(!![]){switch(_0x37a160[_0x57dcd0++]){case'0':await _0x3d7709[_0x338a0d(0x212)](reportToGalactusAndSendToEDS,_0x475ed3,_0xfefeac,_0x5aa0fc,messageTypes[_0x338a0d(0x170)],_0x3d7709[_0x338a0d(0x206)],_0x338a0d(0x129)+global_registry[_0x338a0d(0x1ac)],_0x3d7709[_0x338a0d(0x1e7)]);continue;case'1':_0x508151=null;continue;case'2':logger[_0x338a0d(0x19d)](_0x5aa0fc);continue;case'3':_0x5aa0fc=_0x338a0d(0x1cb)+global_registry[_0x338a0d(0x1fe)]+_0x338a0d(0x172)+global_registry['clusterRegion']+_0x338a0d(0x1e9)+_0x4098d0;continue;case'4':_0x5aa0fc+='\x0a'+JSON[_0x338a0d(0x12f)](_0x4098d0[_0x338a0d(0x144)]);continue;}break;}}_0x508151&&logger[_0x338a0d(0x167)](_0x338a0d(0x1b9)+global_registry['clusterName']+'`\x20already\x20exists');const _0xd23cd4=await _0x52d446[_0x338a0d(0x1f0)]();_0x3d7709[_0x338a0d(0x181)](printResponse,_0x3d7709[_0x338a0d(0x173)],_0xd23cd4);const _0x436cf4=await _0x3d7709['dZkCt'](curlRequest);_0x3d7709[_0x338a0d(0x18f)](printResponse,_0x3d7709[_0x338a0d(0x214)],_0x436cf4);const _0x4a9123=await _0x3d7709['ZnQbd'](isTlsSupported,_0x3d7709[_0x338a0d(0x132)]);_0x3d7709[_0x338a0d(0x181)](printResponse,_0x3d7709[_0x338a0d(0x11c)],_0x4a9123);const _0x39d8cb={};_0x39d8cb[_0x338a0d(0x1a1)]=_0x3d7709['ZfOjn'],_0x39d8cb[_0x338a0d(0x1d7)]=_0x5e7ed5;const _0x36f158={};_0x36f158[_0x338a0d(0x1a1)]=_0x3d7709[_0x338a0d(0x220)],_0x36f158[_0x338a0d(0x1d7)]=_0xd23cd4;const _0x40321b={};_0x40321b[_0x338a0d(0x1a1)]=_0x3d7709['DdvjF'],_0x40321b[_0x338a0d(0x1d7)]=_0x436cf4;const _0x186821={};_0x186821[_0x338a0d(0x1a1)]=_0x3d7709[_0x338a0d(0x166)],_0x186821[_0x338a0d(0x1d7)]=_0x4a9123;const _0x557764=[_0x39d8cb,_0x36f158,_0x40321b,_0x186821],_0x2ad0e4=await _0x3d7709[_0x338a0d(0x16e)](generateReport,_0x557764,_0x508151),_0x360eda=new Date(),_0x318f9e=_0x360eda['getUTCFullYear']()+'_'+_0x3d7709[_0x338a0d(0x1ed)](_0x360eda[_0x338a0d(0x1f4)](),0x1)+'_'+_0x360eda[_0x338a0d(0x1dc)]()+'_'+_0x360eda[_0x338a0d(0x162)]()+'_'+_0x360eda['getUTCMinutes'](),_0x29b511=_0x338a0d(0x187)+_0x318f9e+'.txt';fs[_0x338a0d(0x1e1)](_0x29b511,_0x2ad0e4,_0x3d7709[_0x338a0d(0x219)]),logger[_0x338a0d(0x167)](_0x338a0d(0x184)+_0x29b511),process[_0x338a0d(0x1b4)](0x0);}catch(_0x24b4e8){let _0x1c40af=_0x338a0d(0x1ee)+_0x24b4e8+'\x20';logger[_0x338a0d(0x19d)](_0x1c40af),_0x1c40af+='\x0a'+JSON[_0x338a0d(0x12f)](_0x24b4e8[_0x338a0d(0x144)]),logger[_0x338a0d(0x1c1)](_0x338a0d(0x1bd)+_0x24b4e8['stack']);if(_0xfefeac){const _0x549f16={};_0x549f16['type']=WS_EVENTS[_0x338a0d(0x218)],_0x549f16[_0x338a0d(0x163)]=_0x1c40af,webSocketUtils[_0x338a0d(0x152)](_0xfefeac,_0x549f16,_0x3d7709[_0x338a0d(0x1e7)],!![]);}await webSocketUtils[_0x338a0d(0x1b7)](0x7d0);const _0x536820={};_0x536820['error']=_0x1c40af,await _0x3d7709[_0x338a0d(0x1dd)](sendInstrumentationEvent,_0x475ed3,_0x3d7709[_0x338a0d(0x206)],messageTypes['ERROR'],_0x3d7709[_0x338a0d(0x1fa)],_0x536820,_0x475ed3),process['exit'](0x1);}};
1
+ const a17_0x21bd3f=a17_0x8715;(function(_0x1268cf,_0x5870c6){const _0xe63b2c=a17_0x8715,_0x34d4ef=_0x1268cf();while(!![]){try{const _0x3a48af=parseInt(_0xe63b2c(0x1a1))/0x1*(-parseInt(_0xe63b2c(0x209))/0x2)+-parseInt(_0xe63b2c(0x130))/0x3+-parseInt(_0xe63b2c(0x161))/0x4*(parseInt(_0xe63b2c(0x140))/0x5)+-parseInt(_0xe63b2c(0x139))/0x6+parseInt(_0xe63b2c(0x150))/0x7+-parseInt(_0xe63b2c(0x1b8))/0x8*(parseInt(_0xe63b2c(0x1e4))/0x9)+-parseInt(_0xe63b2c(0x174))/0xa*(-parseInt(_0xe63b2c(0x1ef))/0xb);if(_0x3a48af===_0x5870c6)break;else _0x34d4ef['push'](_0x34d4ef['shift']());}catch(_0x471c80){_0x34d4ef['push'](_0x34d4ef['shift']());}}}(a17_0x4c9e,0x3f3ee));function a17_0x4c9e(){const _0xea5980=['OtKQU','sWgrk','ETOjE','VNbAE','pFAeA','../../utils/instrumentationUtils','headers','sendEventToBackend','argv','\x20\x20Code:\x20','Grid\x20profile\x20fetched\x20for\x20pre-check','cloud-provider','toolInstalledResp','VAVYY','QSyKe','wjnpm','error','792804ThpftN','got','readFileSync','ZHcjx','grid-profile','message','isTrialGridAccessible','vhGAt','OSsCM','1580268SUAtLL','yuqYQ','qoGOp','connectionTimeout','UECnr','jYIpv','QuuSe','35YTvPwo','header','Browserstack','gVGTT','unable\x20to\x20verify\x20if\x20cluster\x20`','mdbal','ilBFH','jpuAU','fWtYF','Qltxj','stack\x20trace\x20','grid\x20profile\x20flow\x20','reconnecting-websocket','CLOUD_PROVIDER','NidhC','eIoNe','139699oRYOLx','WCslE','pre-check-grid-called','egPeJ','CIiOE','getUTCHours','isCliToolInstalled','bstackUsername','dkNMb','Tool\x20Installed','Cluster\x20','Status:\x20','tOfbO','clusterName','requestId','LbaRe','getUTCMonth','172948evsutS','oPzyQ','mAGtX','QNWYM','===\x20Precheck\x20Report\x20-\x20','\x20data\x20:\x20','aMQSV','rZmgh','JVEXy','description','pre_check','type','<UsernamePlaceholder>','response','xVFKh','Report\x20saved\x20in\x20','yXMEn','ERROR','\x20error\x20:\x20','134850HPTiWa','existsSync','stringify','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','BzeQf','dAWUJ','command','VOLXA','Message:\x20','cMvnR','Hzscw','RlYJt','wRiTl','debug','getUTCDate','push','password','\x20\x20Message:\x20','BziGU','jwZjV','/packages/cli/get-all-grid-profiles','phYKT','0|4|3|1|2','PNiCP','IQoFF','log/report_','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','jWmIb','tRRZH','hSDdD','RWmUz','data','eOjhM','EIPqV','Invalid\x20input.\x20grid\x20profiles:\x20','method','../../cloudproviders/utils','qBWIy','sNXYY','toLowerCase','error\x20stack\x20:\x20','LOG','PcQyH','iijmD','13rkINUI','nrHUu','NXwYT','../../config/constants','N/A','`\x20already\x20exists','Whitelisted\x20browserstack','\x20\x20Stack:\x20','is\x20already\x20present','will\x20be\x20created','`\x20is\x20present\x20in\x20region\x20`','includes','Eoijx','lSBzm','\x20===\x0a\x0a','\x20region\x20-\x20','ArhZQ','mslcm','clusterRegion','pRhvu','HVzSK','../../config/logger','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','52680eqzQzF','ZXyiz','yWjvR','zmcHZ','length','uuid','`\x20,error\x20:\x20','username','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','WZfDH','grid','delay','getUTCMinutes','<PasswordPlaceholder>','zzHLw','WebSocket','../../utils/utilityMethods','kbyGo','join','cluster-name','pre-check-failed','Failure','code','NQHJh','SSL\x20Configured','Failed\x20in\x20pre-check!\x20Error:\x20','yuKiH','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','TZeTs','options','NpAxd','vMiys','bstackAccesskey','qOZaz','eycqw','Success','epilogue','credential-not-found','pwUik','lMmvC','veZun','GrVRQ','ZCuLa','pre-check-grid-profile-empty','153PBGWMJ','gridProfile','stack','ewFEU','VJiRm','Cluster\x20details\x0a-----------------------\x0a','jlLNX','region','Error\x20Details:\x0a','exit','usage','1210Uyikef','TLSv1_2_client_method','help','cloud-provider-not-supported','pre-check','.txt','EAWEW','forEach','writeFileSync','rxPpz','info',']\x20status\x20:\x20','QlHwL','https://','authHeader','LHGIo','Cluster\x20`','parse','rvuUl','.\x20Please\x20provide\x20all\x20required\x20arguments.','PDecc','yedky','jmkjv','MQyxL','Mubgv','cloudProvider','46462ZoSzFF','fIUDm','cVaNK','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FPlCT','replace','getUTCFullYear','status','jgqUi','Setting\x20cloud\x20provider\x20as\x20','sqLgN','kzpSW','iBvLl','throwHttpErrors','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.'];a17_0x4c9e=function(){return _0xea5980;};return a17_0x4c9e();}function a17_0x8715(_0x20fa7c,_0x3346a7){const _0x4c9e67=a17_0x4c9e();return a17_0x8715=function(_0x871538,_0x350d72){_0x871538=_0x871538-0x11e;let _0x6e363b=_0x4c9e67[_0x871538];return _0x6e363b;},a17_0x8715(_0x20fa7c,_0x3346a7);}const fs=require('fs'),ws=require('ws'),got=require(a17_0x21bd3f(0x131)),{v4:uuidv4}=require(a17_0x21bd3f(0x1bd)),ReconnectingWebSocket=require(a17_0x21bd3f(0x14c)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x21bd3f(0x1c8)),{logger}=require(a17_0x21bd3f(0x1b6)),{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_0x21bd3f(0x1a4)),{getCloudProviderObjectWithOutInit}=require(a17_0x21bd3f(0x199)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x21bd3f(0x124));exports[a17_0x21bd3f(0x17b)]=a17_0x21bd3f(0x1c2),exports['desc']=a17_0x21bd3f(0x1c0),exports['builder']=function(_0x3636a8){const _0x593f00=a17_0x21bd3f,_0x390b99={};_0x390b99[_0x593f00(0x1f5)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x390b99['dkNMb']='string',_0x390b99['pRhvu']=_0x593f00(0x11e),_0x390b99[_0x593f00(0x1d4)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x390b99[_0x593f00(0x147)]=_0x593f00(0x1d3),_0x390b99[_0x593f00(0x167)]='help';const _0x2a4341=_0x390b99,_0x4daa30={};_0x4daa30[_0x593f00(0x16a)]=_0x2a4341[_0x593f00(0x1f5)],_0x4daa30[_0x593f00(0x16c)]=_0x2a4341[_0x593f00(0x158)];const _0x112587={};_0x112587[_0x593f00(0x16a)]=_0x2a4341[_0x593f00(0x1b4)],_0x112587['type']=_0x2a4341[_0x593f00(0x158)];const _0x2a3878={};_0x2a3878['description']=_0x2a4341[_0x593f00(0x1d4)],_0x2a3878[_0x593f00(0x16c)]=_0x2a4341[_0x593f00(0x158)];const _0x3b15a1={};_0x3b15a1[_0x593f00(0x16a)]=_0x2a4341['jpuAU'],_0x3b15a1['type']=_0x2a4341[_0x593f00(0x158)];const _0x1eb79d={};return _0x1eb79d['cluster-name']=_0x4daa30,_0x1eb79d['cloud-provider']=_0x112587,_0x1eb79d[_0x593f00(0x1eb)]=_0x2a3878,_0x1eb79d[_0x593f00(0x134)]=_0x3b15a1,_0x3636a8[_0x593f00(0x1ee)](HELP_HEADER_MESSAGE[_0x593f00(0x16b)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x1eb79d)[_0x593f00(0x1f1)](_0x2a4341['aMQSV'])[_0x593f00(0x127)];};async function inputValidation(_0x4dfa5c,_0x3fae13){const _0x4ad2fa=a17_0x21bd3f,_0x568550={'fWtYF':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','WZfDH':function(_0x3b76f7,_0x4fe784){return _0x3b76f7+_0x4fe784;},'kbyGo':_0x4ad2fa(0x1db),'qoGOp':_0x4ad2fa(0x1cd),'NpAxd':function(_0x263db4,_0x52a4eb){return _0x263db4||_0x52a4eb;},'wRiTl':_0x4ad2fa(0x1a5),'LbaRe':_0x4ad2fa(0x1ec),'qBWIy':_0x4ad2fa(0x1a9),'veZun':_0x4ad2fa(0x1aa),'mAGtX':_0x4ad2fa(0x12a),'tRRZH':'cluster-name','jgqUi':_0x4ad2fa(0x12f),'yXMEn':_0x4ad2fa(0x18f),'MQyxL':'string','ewFEU':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','rdvfP':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','eNuGJ':_0x4ad2fa(0x1d3),'jlLNX':_0x4ad2fa(0x1f1),'phYKT':'region','iijmD':function(_0x10639d,_0x294464){return _0x10639d===_0x294464;},'qjmkT':'qBjlj','huKBo':'BWBRm','BzeQf':function(_0x3ca5cf,_0x2d26f1){return _0x3ca5cf===_0x2d26f1;},'OtKQU':_0x4ad2fa(0x1f8),'yedky':function(_0x3e83ec,_0x1e4075){return _0x3e83ec===_0x1e4075;},'egPeJ':_0x4ad2fa(0x192),'yWjvR':_0x4ad2fa(0x1fb),'CIiOE':_0x4ad2fa(0x180),'zzHLw':function(_0x558b4a,_0x35529f){return _0x558b4a!==_0x35529f;},'ZCuLa':'Colbk','cMvnR':function(_0x91df1,_0x3cb8b2){return _0x91df1>_0x3cb8b2;},'vMiys':_0x4ad2fa(0x1a2),'kzpSW':'joFhL','Mubgv':function(_0x1eca0a,_0x5be045,_0x28df83,_0x2eb57b,_0x5c9707,_0xfe4d02,_0x2612d9,_0x410089){return _0x1eca0a(_0x5be045,_0x28df83,_0x2eb57b,_0x5c9707,_0xfe4d02,_0x2612d9,_0x410089);},'QuuSe':_0x4ad2fa(0x152),'LOTyR':'pre-check-cluster-args-not-passed','jmkjv':'ZYLGW','NidhC':_0x4ad2fa(0x20c),'jWmIb':_0x4ad2fa(0x1f2),'UECnr':_0x4ad2fa(0x16f),'MfTYn':'onDdj','xEHQi':function(_0x591531,_0x51bf96){return _0x591531===_0x51bf96;},'Swche':_0x4ad2fa(0x17a),'NQHJh':'RRhMS','Eoijx':'GET','dWgtz':function(_0x1d21e5,_0x5c91eb,_0x47c0d6){return _0x1d21e5(_0x5c91eb,_0x47c0d6);},'pwUik':function(_0x4a2dd1,_0x273829,_0x430c23,_0x7c89c8,_0x537e80,_0x432ef6){return _0x4a2dd1(_0x273829,_0x430c23,_0x7c89c8,_0x537e80,_0x432ef6);},'wjnpm':_0x4ad2fa(0x1f3),'vhGAt':_0x4ad2fa(0x134),'ETOjE':_0x4ad2fa(0x14f),'cVaNK':function(_0x23f1b3,_0x4f8f3c){return _0x23f1b3(_0x4f8f3c);},'VOLXA':_0x4ad2fa(0x1d2),'yuqYQ':_0x4ad2fa(0x1b5),'IQoFF':function(_0x652396,_0x19e1d2,_0x5d664a,_0x1a92eb,_0x439fb5,_0x194b72,_0x44f4c8,_0x2f8212){return _0x652396(_0x19e1d2,_0x5d664a,_0x1a92eb,_0x439fb5,_0x194b72,_0x44f4c8,_0x2f8212);},'NXwYT':_0x4ad2fa(0x1e3),'Qltxj':_0x4ad2fa(0x195),'Hzscw':_0x4ad2fa(0x196),'lSBzm':_0x4ad2fa(0x129),'JVEXy':function(_0x59120c,_0x133b22){return _0x59120c!==_0x133b22;},'LHGIo':'mRUyF','VNbAE':_0x4ad2fa(0x18c)};let _0x4b70fd;try{if(_0x568550[_0x4ad2fa(0x1a0)](_0x568550['qjmkT'],_0x568550['huKBo']))_0x1a4d5e[_0x4ad2fa(0x12f)](_0x568550[_0x4ad2fa(0x148)]),_0x24b35d['exit'](0x1);else{if(_0x4dfa5c[_0x4ad2fa(0x15d)]||_0x4dfa5c[_0x4ad2fa(0x208)]||_0x4dfa5c[_0x4ad2fa(0x1eb)]){if(_0x568550[_0x4ad2fa(0x179)](_0x568550[_0x4ad2fa(0x11f)],_0x568550['OtKQU'])){const _0x2505dc=[];!_0x4dfa5c['clusterName']&&(_0x568550[_0x4ad2fa(0x204)](_0x568550[_0x4ad2fa(0x153)],_0x568550[_0x4ad2fa(0x1ba)])?(_0x4f01ae[_0x4ad2fa(0x1f9)]('['+_0x9156de+_0x4ad2fa(0x1fa)+_0x4e0ba9[_0x4ad2fa(0x210)]+_0x4ad2fa(0x166)+_0x134ef5[_0x4ad2fa(0x194)]+'\x20error\x20:\x20'+_0x508566[_0x4ad2fa(0x12f)]),_0x16df2f[_0x4ad2fa(0x12f)]&&_0x41c033[_0x4ad2fa(0x12f)](_0x4ad2fa(0x19d)+_0x21d986['error'][_0x4ad2fa(0x1e6)])):_0x2505dc[_0x4ad2fa(0x184)](_0x568550[_0x4ad2fa(0x191)]));;!_0x4dfa5c[_0x4ad2fa(0x208)]&&(_0x568550['BzeQf'](_0x568550[_0x4ad2fa(0x154)],_0x568550[_0x4ad2fa(0x154)])?_0x2505dc[_0x4ad2fa(0x184)](_0x568550['mAGtX']):_0x4b96a4[_0x4ad2fa(0x1f9)](_0x4ad2fa(0x1ff)+_0x252106[_0x4ad2fa(0x15d)]+_0x4ad2fa(0x1a6)));;if(!_0x4dfa5c[_0x4ad2fa(0x1eb)]){if(_0x568550[_0x4ad2fa(0x1c6)](_0x568550[_0x4ad2fa(0x1e2)],_0x568550[_0x4ad2fa(0x1e2)])){const {header:_0x4836b3,response:_0x4e75e8}=_0x42cb52,{status:_0x908853,data:_0x3c8a03,error:_0x5da93d}=_0x4e75e8;_0x4e8d63+=_0x4836b3+'\x20#'+_0x568550[_0x4ad2fa(0x1c1)](_0x1b67aa,0x1)+'\x0a',_0x5409bb+=_0x4ad2fa(0x15b)+(_0x908853?_0x568550[_0x4ad2fa(0x1c9)]:_0x568550[_0x4ad2fa(0x13b)])+'\x0a',_0x316bf4+='Message:\x20'+_0x568550[_0x4ad2fa(0x1d6)](_0x3c8a03,_0x568550[_0x4ad2fa(0x181)])+'\x0a',_0x5da93d&&(_0x2e40f3+=_0x568550[_0x4ad2fa(0x15f)],_0x5b10db+=_0x4ad2fa(0x186)+(_0x5da93d['message']||_0x568550[_0x4ad2fa(0x181)])+'\x0a',_0x271da2+=_0x4ad2fa(0x128)+(_0x5da93d[_0x4ad2fa(0x1ce)]||_0x568550[_0x4ad2fa(0x181)])+'\x0a',_0x2f9fcd+=_0x4ad2fa(0x1a8)+(_0x5da93d[_0x4ad2fa(0x1e6)]||_0x568550[_0x4ad2fa(0x181)])+'\x0a'),_0x4c789e+='\x0a\x0a';}else _0x2505dc[_0x4ad2fa(0x184)](_0x568550['phYKT']);};_0x568550[_0x4ad2fa(0x17e)](_0x2505dc[_0x4ad2fa(0x1bc)],0x0)&&(_0x568550[_0x4ad2fa(0x204)](_0x568550[_0x4ad2fa(0x1d7)],_0x568550[_0x4ad2fa(0x214)])?_0x51fcaa+=_0x4ad2fa(0x15a)+_0x29ce72['clusterName']+'\x20'+(_0x1b934b?_0x568550[_0x4ad2fa(0x19a)]:_0x568550[_0x4ad2fa(0x1e0)])+'\x0a\x0a':(_0x4b70fd='Missing\x20required\x20arguments:\x20'+_0x2505dc[_0x4ad2fa(0x1ca)](',\x20')+_0x4ad2fa(0x202),await _0x568550[_0x4ad2fa(0x207)](reportToGalactusAndSendToEDS,_0x4dfa5c,_0x3fae13,_0x4b70fd,messageTypes[_0x4ad2fa(0x172)],_0x568550[_0x4ad2fa(0x13f)],_0x568550['LOTyR'],_0x568550[_0x4ad2fa(0x211)]),logger[_0x4ad2fa(0x12f)](_0x4b70fd),process[_0x4ad2fa(0x1ed)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x4ad2fa(0x1ac)](_0x4dfa5c['cloudProvider'][_0x4ad2fa(0x19c)]())&&(_0x568550['zzHLw'](_0x568550[_0x4ad2fa(0x205)],_0x568550[_0x4ad2fa(0x205)])?_0x142f15=_0x4c7404:(_0x4b70fd=_0x568550[_0x4ad2fa(0x14e)],await _0x568550[_0x4ad2fa(0x207)](reportToGalactusAndSendToEDS,_0x4dfa5c,_0x3fae13,_0x4b70fd,messageTypes[_0x4ad2fa(0x172)],_0x568550[_0x4ad2fa(0x13f)],_0x568550[_0x4ad2fa(0x190)],_0x568550[_0x4ad2fa(0x211)]),logger[_0x4ad2fa(0x12f)](_0x4b70fd),!_0x4dfa5c['cloudProvider']&&(_0x568550['iijmD'](_0x568550[_0x4ad2fa(0x13d)],_0x568550['MfTYn'])?(_0x47438b[_0x4ad2fa(0x1f9)](_0x4ad2fa(0x212)+_0xd719b5['CLOUD_PROVIDER']+'\x20'),_0x34099a[_0x4ad2fa(0x208)]=_0x2d73f3[_0x4ad2fa(0x14d)]):(logger[_0x4ad2fa(0x1f9)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x4dfa5c['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x4ad2fa(0x15d)]=_0x4dfa5c['clusterName'],global_registry[_0x4ad2fa(0x208)]=_0x4dfa5c[_0x4ad2fa(0x208)],global_registry[_0x4ad2fa(0x1b3)]=_0x4dfa5c[_0x4ad2fa(0x1eb)];}else _0x5ba064[_0x4ad2fa(0x12f)]('error\x20stack\x20:\x20'+_0x3be7dd[_0x4ad2fa(0x12f)][_0x4ad2fa(0x1e6)]);}else{if(_0x4dfa5c[_0x4ad2fa(0x1e5)]){if(_0x568550['xEHQi'](_0x568550['Swche'],_0x568550[_0x4ad2fa(0x1cf)]))_0x287a8a['push'](_0x568550[_0x4ad2fa(0x163)]);else{global_registry[_0x4ad2fa(0x1e5)]=_0x4dfa5c['gridProfile'],logger['debug'](_0x4ad2fa(0x14b)+_0x4dfa5c[_0x4ad2fa(0x1e5)]);const _0x327851=_0x4ad2fa(0x1fc)+AG_API_URL+_0x4ad2fa(0x189),_0x1b9995={};_0x1b9995[_0x4ad2fa(0x198)]=_0x568550[_0x4ad2fa(0x1ad)],_0x1b9995[_0x4ad2fa(0x125)]=global_registry[_0x4ad2fa(0x1fd)],_0x1b9995[_0x4ad2fa(0x216)]=![];const _0x145275=_0x1b9995,_0x4eaaf8=await _0x568550['dWgtz'](got,_0x327851,_0x145275),_0x33c614=await _0x568550[_0x4ad2fa(0x1de)](responseValidation,_0x4eaaf8,_0x568550[_0x4ad2fa(0x12e)],_0x568550[_0x4ad2fa(0x137)],_0x4dfa5c,_0x3fae13);let _0x1c8525={};if(_0x568550['BzeQf'](_0x33c614,0xc8)){if(_0x568550[_0x4ad2fa(0x1c6)](_0x568550[_0x4ad2fa(0x121)],_0x568550['ETOjE']))_0x2a343e[_0x4ad2fa(0x184)](_0x568550[_0x4ad2fa(0x191)]);else{const _0x807fe4=JSON['parse'](_0x4eaaf8['body']),_0x18fcd6=_0x807fe4['find'](_0x91d019=>_0x91d019['name']===_0x4dfa5c[_0x4ad2fa(0x1e5)])||null;if(_0x568550[_0x4ad2fa(0x20b)](isUndefined,_0x18fcd6)){if(_0x568550[_0x4ad2fa(0x1c6)](_0x568550[_0x4ad2fa(0x17c)],_0x568550[_0x4ad2fa(0x13a)]))_0x4b70fd=_0x4ad2fa(0x197)+_0x4dfa5c['gridProfile']+_0x4ad2fa(0x1b7),await _0x568550[_0x4ad2fa(0x18d)](reportToGalactusAndSendToEDS,_0x4dfa5c,_0x3fae13,_0x4b70fd,messageTypes[_0x4ad2fa(0x172)],_0x568550[_0x4ad2fa(0x13f)],_0x568550[_0x4ad2fa(0x1a3)],_0x568550[_0x4ad2fa(0x211)]),logger[_0x4ad2fa(0x12f)](_0x4b70fd),process[_0x4ad2fa(0x1ed)](0x1);else{const _0x46550e={};_0x46550e['type']=_0x5021b0['LOG'],_0x46550e[_0x4ad2fa(0x135)]=_0xec227a,_0x28dcdc[_0x4ad2fa(0x126)](_0x5c714c,_0x46550e,_0x568550[_0x4ad2fa(0x211)],!![]);}}else{if(_0x568550[_0x4ad2fa(0x1c6)](_0x568550['Qltxj'],_0x568550[_0x4ad2fa(0x149)])){const _0x49e57a={};_0x49e57a[_0x4ad2fa(0x16a)]=_0x568550[_0x4ad2fa(0x171)],_0x49e57a['type']=_0x568550[_0x4ad2fa(0x206)];const _0x338ed0={};_0x338ed0[_0x4ad2fa(0x16a)]=_0x568550[_0x4ad2fa(0x1e7)],_0x338ed0[_0x4ad2fa(0x16c)]=_0x568550[_0x4ad2fa(0x206)];const _0x30ae82={};_0x30ae82[_0x4ad2fa(0x16a)]=_0x568550['rdvfP'],_0x30ae82['type']=_0x568550[_0x4ad2fa(0x206)];const _0x450c48={};_0x450c48[_0x4ad2fa(0x16a)]=_0x568550['eNuGJ'],_0x450c48[_0x4ad2fa(0x16c)]=_0x568550[_0x4ad2fa(0x206)];const _0x14b1a0={};return _0x14b1a0[_0x4ad2fa(0x1cb)]=_0x49e57a,_0x14b1a0[_0x4ad2fa(0x12a)]=_0x338ed0,_0x14b1a0[_0x4ad2fa(0x1eb)]=_0x30ae82,_0x14b1a0[_0x4ad2fa(0x134)]=_0x450c48,_0x479577[_0x4ad2fa(0x1ee)](_0x4ca04c[_0x4ad2fa(0x16b)])[_0x4ad2fa(0x1dc)](_0x3f1b1c)[_0x4ad2fa(0x1d5)](_0x14b1a0)[_0x4ad2fa(0x1f1)](_0x568550[_0x4ad2fa(0x1ea)])[_0x4ad2fa(0x127)];}else _0x1c8525=_0x18fcd6;}}}else _0x568550[_0x4ad2fa(0x1c6)](_0x568550['Hzscw'],_0x568550[_0x4ad2fa(0x17f)])?(_0x4ff921+=_0x568550[_0x4ad2fa(0x15f)],_0xa437cc+='\x20\x20Message:\x20'+(_0x574e99[_0x4ad2fa(0x135)]||_0x568550[_0x4ad2fa(0x181)])+'\x0a',_0x48c17f+='\x20\x20Code:\x20'+(_0x5489a5[_0x4ad2fa(0x1ce)]||_0x568550[_0x4ad2fa(0x181)])+'\x0a',_0x3fed90+='\x20\x20Stack:\x20'+(_0x1142a6[_0x4ad2fa(0x1e6)]||_0x568550['wRiTl'])+'\x0a'):process[_0x4ad2fa(0x1ed)](0x1);const _0x53127e={};_0x53127e[_0x4ad2fa(0x16c)]=WS_EVENTS['LOG'],_0x53127e[_0x4ad2fa(0x135)]=_0x568550[_0x4ad2fa(0x1ae)],webSocketUtils[_0x4ad2fa(0x126)](_0x3fae13,_0x53127e),global_registry['cloudProvider']=_0x1c8525['cloudProvider'],global_registry[_0x4ad2fa(0x1b3)]=_0x1c8525[_0x4ad2fa(0x1eb)],global_registry['clusterName']=_0x1c8525[_0x4ad2fa(0x15d)];}}else _0x568550[_0x4ad2fa(0x169)](_0x568550[_0x4ad2fa(0x1fe)],_0x568550[_0x4ad2fa(0x1fe)])?_0x142031[_0x4ad2fa(0x184)](_0x568550[_0x4ad2fa(0x18a)]):(logger[_0x4ad2fa(0x12f)](_0x568550[_0x4ad2fa(0x148)]),process[_0x4ad2fa(0x1ed)](0x1));}}}catch(_0x3c41d4){_0x568550[_0x4ad2fa(0x1c6)](_0x568550[_0x4ad2fa(0x122)],_0x568550[_0x4ad2fa(0x122)])?_0x423604+='Cluster\x20'+_0x2d9e35[_0x4ad2fa(0x15d)]+_0x4ad2fa(0x178):(_0x4b70fd=_0x4ad2fa(0x177)+_0x3c41d4+':\x20'+_0x3c41d4[_0x4ad2fa(0x1e6)],logger[_0x4ad2fa(0x12f)](_0x4b70fd),await _0x568550[_0x4ad2fa(0x207)](reportToGalactusAndSendToEDS,_0x4dfa5c,_0x3fae13,_0x4b70fd,messageTypes[_0x4ad2fa(0x172)],_0x568550[_0x4ad2fa(0x13f)],_0x568550[_0x4ad2fa(0x190)],_0x568550[_0x4ad2fa(0x211)]),process[_0x4ad2fa(0x1ed)](0x1));}}function printResponse(_0x245a73,_0x534d45){const _0x3f5baa=a17_0x21bd3f,_0x3957a1={};_0x3957a1[_0x3f5baa(0x215)]=function(_0xec7cdc,_0x3915b9){return _0xec7cdc!==_0x3915b9;},_0x3957a1[_0x3f5baa(0x1b9)]=_0x3f5baa(0x164),_0x3957a1[_0x3f5baa(0x143)]=_0x3f5baa(0x203);const _0x1cf991=_0x3957a1;logger[_0x3f5baa(0x1f9)]('['+_0x245a73+_0x3f5baa(0x1fa)+_0x534d45[_0x3f5baa(0x210)]+_0x3f5baa(0x166)+_0x534d45[_0x3f5baa(0x194)]+_0x3f5baa(0x173)+_0x534d45['error']),_0x534d45[_0x3f5baa(0x12f)]&&(_0x1cf991[_0x3f5baa(0x215)](_0x1cf991[_0x3f5baa(0x1b9)],_0x1cf991['gVGTT'])?logger[_0x3f5baa(0x12f)](_0x3f5baa(0x19d)+_0x534d45['error'][_0x3f5baa(0x1e6)]):_0x55cf8a['exit'](0x1));}async function generateReport(_0xd2af4f,_0x47b4b3){const _0x5b9697=a17_0x21bd3f,_0xb4319={'sWgrk':function(_0x13243f,_0x116cb2){return _0x13243f+_0x116cb2;},'ilBFH':_0x5b9697(0x1db),'zmcHZ':_0x5b9697(0x1cd),'SCEVN':function(_0x1719f7,_0xc7d6cf){return _0x1719f7||_0xc7d6cf;},'RWmUz':'N/A','jYIpv':_0x5b9697(0x1ec),'eycqw':_0x5b9697(0x1e9),'ArhZQ':function(_0x3d07ac,_0x1a12d4){return _0x3d07ac!=_0x1a12d4;},'rZmgh':_0x5b9697(0x1a9),'iXAnR':_0x5b9697(0x1aa),'VJiRm':function(_0x3848f2){return _0x3848f2();}};let _0xd35e0c=_0x5b9697(0x165)+global_registry[_0x5b9697(0x208)]+_0x5b9697(0x1af);return _0xd2af4f[_0x5b9697(0x1f6)]((_0x3df224,_0x5ec6aa)=>{const _0x3ffb16=_0x5b9697,{header:_0x294ca0,response:_0xdf85ff}=_0x3df224,{status:_0x58f7b7,data:_0x4dc7f0,error:_0xabad6c}=_0xdf85ff;_0xd35e0c+=_0x294ca0+'\x20#'+_0xb4319[_0x3ffb16(0x120)](_0x5ec6aa,0x1)+'\x0a',_0xd35e0c+='Status:\x20'+(_0x58f7b7?_0xb4319[_0x3ffb16(0x146)]:_0xb4319[_0x3ffb16(0x1bb)])+'\x0a',_0xd35e0c+=_0x3ffb16(0x17d)+_0xb4319['SCEVN'](_0x4dc7f0,_0xb4319[_0x3ffb16(0x193)])+'\x0a',_0xabad6c&&(_0xd35e0c+=_0xb4319[_0x3ffb16(0x13e)],_0xd35e0c+=_0x3ffb16(0x186)+(_0xabad6c['message']||_0xb4319['RWmUz'])+'\x0a',_0xd35e0c+=_0x3ffb16(0x128)+(_0xabad6c[_0x3ffb16(0x1ce)]||_0xb4319['RWmUz'])+'\x0a',_0xd35e0c+='\x20\x20Stack:\x20'+(_0xabad6c['stack']||_0xb4319[_0x3ffb16(0x193)])+'\x0a'),_0xd35e0c+='\x0a\x0a';}),_0xd35e0c+=_0xb4319[_0x5b9697(0x1da)],_0xb4319[_0x5b9697(0x1b1)](_0x47b4b3,null)?_0xd35e0c+=_0x5b9697(0x15a)+global_registry[_0x5b9697(0x15d)]+'\x20'+(_0x47b4b3?_0xb4319[_0x5b9697(0x168)]:_0xb4319['iXAnR'])+'\x0a\x0a':_0xd35e0c+=_0x5b9697(0x15a)+global_registry[_0x5b9697(0x15d)]+_0x5b9697(0x178),_0xd35e0c+=_0xb4319[_0x5b9697(0x1e8)](getSystemMetaData),_0xd35e0c;};exports['handler']=async function(_0x36c374){const _0x3c99c7=a17_0x21bd3f,_0x2aeff4={'tOfbO':function(_0x98e191){return _0x98e191();},'qOZaz':function(_0x2910dc){return _0x2910dc();},'vjIwE':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ogFOU':function(_0x4f87b3,_0x3de3db,_0x189263,_0x336267,_0x79a002,_0x44d581,_0x261df4,_0x2b2e26){return _0x4f87b3(_0x3de3db,_0x189263,_0x336267,_0x79a002,_0x44d581,_0x261df4,_0x2b2e26);},'WCslE':_0x3c99c7(0x152),'scCpm':_0x3c99c7(0x1dd),'FPlCT':_0x3c99c7(0x12f),'lMmvC':function(_0x59ccb3,_0x4ba888,_0x41f745,_0x15fc13,_0xcf5506,_0x305469,_0x240e98){return _0x59ccb3(_0x4ba888,_0x41f745,_0x15fc13,_0xcf5506,_0x305469,_0x240e98);},'pBvHy':_0x3c99c7(0x16d),'PcQyH':_0x3c99c7(0x1c5),'sqLgN':function(_0x2c671c,_0x25fe07,_0x17de24){return _0x2c671c(_0x25fe07,_0x17de24);},'kkvVV':'dummy-grid','sNXYY':function(_0x2ddf83,_0x51cfd3,_0x5dbca3){return _0x2ddf83(_0x51cfd3,_0x5dbca3);},'VAVYY':_0x3c99c7(0x12b),'oPzyQ':_0x3c99c7(0x18b),'jwZjV':function(_0x2b1971,_0x4fcda4,_0x4412b1,_0x4fa11a,_0x17b0c6,_0x2632fe,_0x2ca1aa,_0x53f90c){return _0x2b1971(_0x4fcda4,_0x4412b1,_0x4fa11a,_0x17b0c6,_0x2632fe,_0x2ca1aa,_0x53f90c);},'qEmLT':'accessResp','OSsCM':function(_0x564a00){return _0x564a00();},'QSyKe':_0x3c99c7(0x136),'mdbal':function(_0x52385f,_0xb5a8ee){return _0x52385f(_0xb5a8ee);},'fIUDm':_0x3c99c7(0x1f0),'BziGU':function(_0x452c69,_0x191365,_0x2bd25f){return _0x452c69(_0x191365,_0x2bd25f);},'rvuUl':'isTls1_2_SUPPORTED','ZHcjx':_0x3c99c7(0x159),'lITef':'User\x20Access','pFAeA':_0x3c99c7(0x1a7),'mslcm':_0x3c99c7(0x1d0),'GrVRQ':function(_0x597402,_0x1d677a){return _0x597402+_0x1d677a;},'sbkip':'utf-8','fbYjt':_0x3c99c7(0x1cc)};let _0x2fdf43,_0x1d7874;try{global_registry[_0x3c99c7(0x15e)]=_0x2aeff4[_0x3c99c7(0x15c)](uuidv4);!fs[_0x3c99c7(0x175)](_0x2aeff4[_0x3c99c7(0x1d9)](getCredentialsPath))&&(_0x1d7874=_0x2aeff4['vjIwE'],logger[_0x3c99c7(0x12f)](_0x1d7874),await _0x2aeff4['ogFOU'](reportToGalactusAndSendToEDS,_0x36c374,_0x2fdf43,_0x1d7874,messageTypes['ERROR'],_0x2aeff4[_0x3c99c7(0x151)],_0x2aeff4['scCpm'],_0x2aeff4[_0x3c99c7(0x20d)]),process[_0x3c99c7(0x1ed)](0x1));_0x2aeff4[_0x3c99c7(0x1df)](sendInstrumentationEvent,_0x36c374,_0x2aeff4[_0x3c99c7(0x151)],messageTypes['INFO'],null,null,_0x36c374);const _0x297bb4=JSON[_0x3c99c7(0x200)](fs[_0x3c99c7(0x132)](_0x2aeff4[_0x3c99c7(0x15c)](getCredentialsPath)));global_registry['bstackUsername']=_0x297bb4[_0x3c99c7(0x142)][_0x3c99c7(0x1bf)],global_registry[_0x3c99c7(0x1d8)]=_0x297bb4['Browserstack']['password'];const _0x47b86c=WS_ENDPOINT[_0x3c99c7(0x20e)](_0x2aeff4['pBvHy'],_0x297bb4[_0x3c99c7(0x142)]['username'])[_0x3c99c7(0x20e)](_0x2aeff4[_0x3c99c7(0x19f)],_0x297bb4['Browserstack'][_0x3c99c7(0x185)]),_0x23e09c={};_0x23e09c[_0x3c99c7(0x1c7)]=ws,_0x23e09c[_0x3c99c7(0x13c)]=0x36ee80,_0x2fdf43=new ReconnectingWebSocket(_0x47b86c,[],_0x23e09c),global_registry['authHeader']=_0x2aeff4[_0x3c99c7(0x213)](getAuthHeader,global_registry[_0x3c99c7(0x157)],global_registry[_0x3c99c7(0x1d8)]),await _0x2aeff4[_0x3c99c7(0x213)](inputValidation,_0x36c374,_0x2fdf43),logger[_0x3c99c7(0x1f9)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x3c99c7(0x208)]+_0x3c99c7(0x1b0)+global_registry['clusterRegion']);let _0x5a03d7=await _0x2aeff4[_0x3c99c7(0x1df)](getCloudProviderObjectWithOutInit,global_registry[_0x3c99c7(0x208)],global_registry[_0x3c99c7(0x15d)],_0x2aeff4['kkvVV'],_0x2fdf43,webSocketUtils,_0x36c374);const _0x37c264=await _0x5a03d7[_0x3c99c7(0x156)]();_0x2aeff4['sNXYY'](printResponse,_0x2aeff4[_0x3c99c7(0x12c)],_0x37c264),_0x5a03d7=await _0x5a03d7['init']();let _0x5ef178=![];try{_0x5ef178=await _0x5a03d7['isClusterPresent']();}catch(_0x550b9f){const _0x3ab71f=_0x2aeff4[_0x3c99c7(0x162)]['split']('|');let _0x8a3c1d=0x0;while(!![]){switch(_0x3ab71f[_0x8a3c1d++]){case'0':_0x1d7874=_0x3c99c7(0x144)+global_registry[_0x3c99c7(0x15d)]+_0x3c99c7(0x1ab)+global_registry['clusterRegion']+_0x3c99c7(0x1be)+_0x550b9f;continue;case'1':_0x1d7874+='\x0a'+JSON[_0x3c99c7(0x176)](_0x550b9f[_0x3c99c7(0x1e6)]);continue;case'2':await _0x2aeff4[_0x3c99c7(0x188)](reportToGalactusAndSendToEDS,_0x36c374,_0x2fdf43,_0x1d7874,messageTypes[_0x3c99c7(0x172)],_0x2aeff4['WCslE'],'cluster-check-failed-'+global_registry[_0x3c99c7(0x208)],_0x2aeff4[_0x3c99c7(0x20d)]);continue;case'3':logger[_0x3c99c7(0x12f)](_0x1d7874);continue;case'4':_0x5ef178=null;continue;}break;}}_0x5ef178&&logger[_0x3c99c7(0x1f9)](_0x3c99c7(0x1ff)+global_registry[_0x3c99c7(0x15d)]+_0x3c99c7(0x1a6));const _0x25fc29=await _0x5a03d7['checkAccess']();_0x2aeff4[_0x3c99c7(0x19b)](printResponse,_0x2aeff4['qEmLT'],_0x25fc29);const _0x149404=await _0x2aeff4[_0x3c99c7(0x138)](curlRequest);_0x2aeff4[_0x3c99c7(0x213)](printResponse,_0x2aeff4[_0x3c99c7(0x12d)],_0x149404);const _0x4bf2f1=await _0x2aeff4[_0x3c99c7(0x145)](isTlsSupported,_0x2aeff4[_0x3c99c7(0x20a)]);_0x2aeff4[_0x3c99c7(0x187)](printResponse,_0x2aeff4[_0x3c99c7(0x201)],_0x4bf2f1);const _0x4f6be7={};_0x4f6be7[_0x3c99c7(0x141)]=_0x2aeff4[_0x3c99c7(0x133)],_0x4f6be7[_0x3c99c7(0x16e)]=_0x37c264;const _0x4de62c={};_0x4de62c['header']=_0x2aeff4['lITef'],_0x4de62c[_0x3c99c7(0x16e)]=_0x25fc29;const _0x3c949a={};_0x3c949a[_0x3c99c7(0x141)]=_0x2aeff4[_0x3c99c7(0x123)],_0x3c949a['response']=_0x149404;const _0x222ec3={};_0x222ec3[_0x3c99c7(0x141)]=_0x2aeff4[_0x3c99c7(0x1b2)],_0x222ec3[_0x3c99c7(0x16e)]=_0x4bf2f1;const _0x3831ef=[_0x4f6be7,_0x4de62c,_0x3c949a,_0x222ec3],_0x5a0d95=await _0x2aeff4[_0x3c99c7(0x213)](generateReport,_0x3831ef,_0x5ef178),_0x319990=new Date(),_0x27fd4f=_0x319990[_0x3c99c7(0x20f)]()+'_'+_0x2aeff4[_0x3c99c7(0x1e1)](_0x319990[_0x3c99c7(0x160)](),0x1)+'_'+_0x319990[_0x3c99c7(0x183)]()+'_'+_0x319990[_0x3c99c7(0x155)]()+'_'+_0x319990[_0x3c99c7(0x1c4)](),_0x44a3f3=_0x3c99c7(0x18e)+_0x27fd4f+_0x3c99c7(0x1f4);fs[_0x3c99c7(0x1f7)](_0x44a3f3,_0x5a0d95,_0x2aeff4['sbkip']),logger['info'](_0x3c99c7(0x170)+_0x44a3f3),process[_0x3c99c7(0x1ed)](0x0);}catch(_0x4033e8){let _0x4823ff=_0x3c99c7(0x1d1)+_0x4033e8+'\x20';logger[_0x3c99c7(0x12f)](_0x4823ff),_0x4823ff+='\x0a'+JSON['stringify'](_0x4033e8[_0x3c99c7(0x1e6)]),logger[_0x3c99c7(0x182)](_0x3c99c7(0x14a)+_0x4033e8['stack']);if(_0x2fdf43){const _0x51c7a5={};_0x51c7a5[_0x3c99c7(0x16c)]=WS_EVENTS[_0x3c99c7(0x19e)],_0x51c7a5[_0x3c99c7(0x135)]=_0x4823ff,webSocketUtils[_0x3c99c7(0x126)](_0x2fdf43,_0x51c7a5,_0x2aeff4[_0x3c99c7(0x20d)],!![]);}await webSocketUtils[_0x3c99c7(0x1c3)](0x7d0);const _0x231865={};_0x231865[_0x3c99c7(0x12f)]=_0x4823ff,await _0x2aeff4['lMmvC'](sendInstrumentationEvent,_0x36c374,_0x2aeff4[_0x3c99c7(0x151)],messageTypes[_0x3c99c7(0x172)],_0x2aeff4['fbYjt'],_0x231865,_0x36c374),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a18_0x5caa84=a18_0x1b6f;(function(_0x5348f7,_0x298135){const _0x4abed4=a18_0x1b6f,_0x2de287=_0x5348f7();while(!![]){try{const _0x388e9f=-parseInt(_0x4abed4(0x1f1))/0x1*(-parseInt(_0x4abed4(0x1e7))/0x2)+-parseInt(_0x4abed4(0x1e5))/0x3+-parseInt(_0x4abed4(0x1e2))/0x4*(-parseInt(_0x4abed4(0x1f4))/0x5)+-parseInt(_0x4abed4(0x1e8))/0x6+parseInt(_0x4abed4(0x1f0))/0x7+-parseInt(_0x4abed4(0x1ed))/0x8*(parseInt(_0x4abed4(0x1ef))/0x9)+parseInt(_0x4abed4(0x1e6))/0xa;if(_0x388e9f===_0x298135)break;else _0x2de287['push'](_0x2de287['shift']());}catch(_0x593d2f){_0x2de287['push'](_0x2de287['shift']());}}}(a18_0x5c96,0xee804));function a18_0x1b6f(_0x3d3204,_0x2d6c20){const _0x5c969d=a18_0x5c96();return a18_0x1b6f=function(_0x1b6f3e,_0x980dad){_0x1b6f3e=_0x1b6f3e-0x1e0;let _0x1e460c=_0x5c969d[_0x1b6f3e];return _0x1e460c;},a18_0x1b6f(_0x3d3204,_0x2d6c20);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x5caa84(0x1f2));function a18_0x5c96(){const _0x3e81ab=['start','1466715aBtoVI','12317520mqvEVW','394ZJlSGj','5381496TRpbKG','commandDir','nkCLg','Start\x20an\x20existing\x20Automation\x20grid.','recommendCommands','5144SPzKNB','usage','477mUZjMG','1941282WFlKiF','2194hyXOcW','../config/constants','epilogue','140eshdUR','pYmKe','help','65072RsyDYZ','start_commands'];a18_0x5c96=function(){return _0x3e81ab;};return a18_0x5c96();}exports['command']='start',exports['desc']=a18_0x5caa84(0x1eb),exports['builder']=function(_0x38ee61){const _0xc3238c=a18_0x5caa84,_0x379a6b={};_0x379a6b[_0xc3238c(0x1ea)]=_0xc3238c(0x1e3),_0x379a6b[_0xc3238c(0x1e0)]=_0xc3238c(0x1e1);const _0x54aa68=_0x379a6b;return _0x38ee61[_0xc3238c(0x1ee)](HELP_HEADER_MESSAGE[_0xc3238c(0x1e4)])[_0xc3238c(0x1f3)](HELP_FOOTER_MESSAGE)[_0xc3238c(0x1e9)](_0x54aa68[_0xc3238c(0x1ea)])['demandCommand']()[_0xc3238c(0x1ec)]()['strict']()[_0xc3238c(0x1e1)](_0x54aa68['pYmKe']);},exports['handler']=function(_0xf3fec1){};
1
+ function a18_0x35e2(_0x7a9ac6,_0x5841db){const _0x55d30e=a18_0x55d3();return a18_0x35e2=function(_0x35e270,_0x177fb9){_0x35e270=_0x35e270-0x82;let _0x37d225=_0x55d30e[_0x35e270];return _0x37d225;},a18_0x35e2(_0x7a9ac6,_0x5841db);}const a18_0x292340=a18_0x35e2;(function(_0x3ceb00,_0x257395){const _0x11c880=a18_0x35e2,_0x2ecf09=_0x3ceb00();while(!![]){try{const _0x390e40=parseInt(_0x11c880(0x91))/0x1+parseInt(_0x11c880(0x8c))/0x2+parseInt(_0x11c880(0x8f))/0x3*(-parseInt(_0x11c880(0x95))/0x4)+parseInt(_0x11c880(0x99))/0x5*(parseInt(_0x11c880(0x90))/0x6)+parseInt(_0x11c880(0x9a))/0x7*(-parseInt(_0x11c880(0x86))/0x8)+-parseInt(_0x11c880(0x92))/0x9*(-parseInt(_0x11c880(0x98))/0xa)+-parseInt(_0x11c880(0x8e))/0xb*(parseInt(_0x11c880(0x88))/0xc);if(_0x390e40===_0x257395)break;else _0x2ecf09['push'](_0x2ecf09['shift']());}catch(_0x247689){_0x2ecf09['push'](_0x2ecf09['shift']());}}}(a18_0x55d3,0x7ba47));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x292340(0x83));exports[a18_0x292340(0x94)]='start',exports[a18_0x292340(0x8a)]=a18_0x292340(0x8d),exports['builder']=function(_0x1d9239){const _0x1ec521=a18_0x292340,_0x1d26ba={};_0x1d26ba[_0x1ec521(0x87)]=_0x1ec521(0x82),_0x1d26ba[_0x1ec521(0x93)]='help';const _0x2d43fe=_0x1d26ba;return _0x1d9239[_0x1ec521(0x96)](HELP_HEADER_MESSAGE[_0x1ec521(0x84)])[_0x1ec521(0x8b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2d43fe[_0x1ec521(0x87)])['demandCommand']()[_0x1ec521(0x97)]()[_0x1ec521(0x89)]()['help'](_0x2d43fe[_0x1ec521(0x93)]);},exports[a18_0x292340(0x85)]=function(_0x498993){};function a18_0x55d3(){const _0x2562a3=['command','36hDKeBh','usage','recommendCommands','12030WdCten','3639770hMXiHh','5211549qJIYnR','start_commands','../config/constants','start','handler','8cuYaep','gkliF','648UHcVrV','strict','desc','epilogue','706948InrYWe','Start\x20an\x20existing\x20Automation\x20grid.','261811MxGFbB','33171eKvQNN','6GrAGBF','597900JngLiB','7155zGxZXU','SHGBP'];a18_0x55d3=function(){return _0x2562a3;};return a18_0x55d3();}
@@ -1 +1 @@
1
- function a19_0x4f37(_0x1c8f0d,_0x390666){const _0x5c6dec=a19_0x5c6d();return a19_0x4f37=function(_0x4f3752,_0x50f2de){_0x4f3752=_0x4f3752-0x19f;let _0x4128f7=_0x5c6dec[_0x4f3752];return _0x4128f7;},a19_0x4f37(_0x1c8f0d,_0x390666);}const a19_0x1a1a06=a19_0x4f37;(function(_0x2b9a2b,_0x58eea7){const _0x2a1aaf=a19_0x4f37,_0x3bfddd=_0x2b9a2b();while(!![]){try{const _0x360f1d=parseInt(_0x2a1aaf(0x1ee))/0x1+parseInt(_0x2a1aaf(0x1f6))/0x2+-parseInt(_0x2a1aaf(0x1be))/0x3*(parseInt(_0x2a1aaf(0x1e6))/0x4)+parseInt(_0x2a1aaf(0x1fc))/0x5*(parseInt(_0x2a1aaf(0x1bc))/0x6)+parseInt(_0x2a1aaf(0x1bf))/0x7+parseInt(_0x2a1aaf(0x1a3))/0x8+-parseInt(_0x2a1aaf(0x19f))/0x9;if(_0x360f1d===_0x58eea7)break;else _0x3bfddd['push'](_0x3bfddd['shift']());}catch(_0x663e48){_0x3bfddd['push'](_0x3bfddd['shift']());}}}(a19_0x5c6d,0x6d025));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1a1a06(0x1de)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1a1a06(0x1d4)),{logger}=require(a19_0x1a1a06(0x1f8)),{getCredentialsPath,getGridDetails}=require(a19_0x1a1a06(0x1f1)),{scaleUpHubDeployment}=require(a19_0x1a1a06(0x1c0)),{sendInstrumentationEvent}=require(a19_0x1a1a06(0x1e4)),webSocketUtils=require(a19_0x1a1a06(0x1d6)),{createK8sClient}=require(a19_0x1a1a06(0x1d8)),{getCloudProviderObject}=require(a19_0x1a1a06(0x1dd));function a19_0x5c6d(){const _0x511166=['body','379086xQQKWg','deeod','565755RNRSuf','5112457sfjSun','../../utils/gridComponents','erokd','boolean','cloudProvider','EKwrj','invalid-grid-id','pjgyN','server-error','user','clusterName','start','clusterRegion','stringify','password','GFqoq','connectionTimeout','stack','skip-tls-cert-verify','XbzBg','parse','../../config/constants','error','../../utils/webSocketUtils','usage','../../utils/createk8sClient','skipTlsCertVerify','ROiZL','RrbTi','MwQcJ','../../cloudproviders/utils','reconnecting-websocket','meoTE','region','handler','INFO','VqyvD','../../utils/instrumentationUtils','message','8JhaFIi','username','bstackAccesskey','OniWR','replace','help','mJJcp','jYRrZ','22590bOpllI','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','desc','../../utils/utilityMethods','BUiIk','default','init-not-called','argv','1777458rfQNQs','<UsernamePlaceholder>','../../config/logger','description','info','Eucpl','15zKizjC','10267911vNDZmz','Mhoxl','OxhDz','options','1066696KLquRN','Skip\x20insecure\x20cert\x20verification.','Adding\x20Websocket\x20listeners','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','existsSync','bstackUsername','exit','type','grid-id','name','PDAJI','BuCbO','Grid\x20started','unauthorised','readFileSync','QfCnc','statusCode','cgVsq','ERROR','ZphuE','gridId','Browserstack','debug','<PasswordPlaceholder>'];a19_0x5c6d=function(){return _0x511166;};return a19_0x5c6d();}exports['command']='grid',exports[a19_0x1a1a06(0x1f0)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x4292d5){const _0x3f143e=a19_0x1a1a06,_0x496444={};_0x496444[_0x3f143e(0x1ae)]=_0x3f143e(0x1ef),_0x496444['OniWR']='string',_0x496444[_0x3f143e(0x1da)]=_0x3f143e(0x1a4),_0x496444[_0x3f143e(0x1b6)]=_0x3f143e(0x1c2),_0x496444[_0x3f143e(0x1db)]=_0x3f143e(0x1eb);const _0x135cb5=_0x496444,_0x371fde={};_0x371fde['description']=_0x135cb5[_0x3f143e(0x1ae)],_0x371fde[_0x3f143e(0x1aa)]=_0x135cb5[_0x3f143e(0x1e9)];const _0x40645c={};_0x40645c[_0x3f143e(0x1f9)]=_0x135cb5['ROiZL'],_0x40645c[_0x3f143e(0x1aa)]=_0x135cb5['ZphuE'],_0x40645c[_0x3f143e(0x1f3)]=![];const _0x56614e={};return _0x56614e[_0x3f143e(0x1ab)]=_0x371fde,_0x56614e[_0x3f143e(0x1d1)]=_0x40645c,_0x4292d5[_0x3f143e(0x1d7)](HELP_HEADER_MESSAGE[_0x3f143e(0x1ca)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3f143e(0x1a2)](_0x56614e)['help'](_0x135cb5[_0x3f143e(0x1db)])[_0x3f143e(0x1f5)];},exports[a19_0x1a1a06(0x1e1)]=async function(_0x32af7c){const _0x24989f=a19_0x1a1a06,_0xd209b2={'PDAJI':_0x24989f(0x1a6),'Eucpl':function(_0x8aea57){return _0x8aea57();},'Nwchy':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pjgyN':function(_0x308244,_0x5c8c3d,_0x5c4f0c,_0x2a41e4,_0x53ac57,_0x4ac9dc,_0x44143f){return _0x308244(_0x5c8c3d,_0x5c4f0c,_0x2a41e4,_0x53ac57,_0x4ac9dc,_0x44143f);},'meoTE':'start-grid-called','Mhoxl':_0x24989f(0x1f4),'GkwMY':function(_0x3bc7d1,_0x1ad6b9,_0x4b622d,_0x1a722d,_0x582a49,_0x54af78,_0x1ab379){return _0x3bc7d1(_0x1ad6b9,_0x4b622d,_0x1a722d,_0x582a49,_0x54af78,_0x1ab379);},'XbzBg':_0x24989f(0x1f7),'EKwrj':_0x24989f(0x1ba),'mJJcp':_0x24989f(0x1a5),'MwQcJ':function(_0x411270,_0x5a6ce3,_0x2c2dc1,_0x59c845){return _0x411270(_0x5a6ce3,_0x2c2dc1,_0x59c845);},'BUiIk':function(_0x1ff6a5,_0x343c6d,_0x19e2e8){return _0x1ff6a5(_0x343c6d,_0x19e2e8);},'erokd':function(_0x4e04db,_0xc22e8c,_0x4762e7){return _0x4e04db(_0xc22e8c,_0x4762e7);},'GFqoq':_0x24989f(0x1af),'deeod':function(_0x2b49b6,_0x4b97a7){return _0x2b49b6===_0x4b97a7;},'sZhnC':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','QfCnc':_0x24989f(0x1b0),'xmeqb':function(_0x50e1e5,_0x489781){return _0x50e1e5===_0x489781;},'VqyvD':function(_0x3d30fe,_0x5280eb,_0x3f844d,_0x55a85d,_0x15baa6,_0x2dd2a5,_0x1834a0){return _0x3d30fe(_0x5280eb,_0x3f844d,_0x55a85d,_0x15baa6,_0x2dd2a5,_0x1834a0);},'cgVsq':_0x24989f(0x1c5),'jYRrZ':function(_0x3df5c6,_0x11a37d,_0x50b0c8,_0x554064,_0x16b13f,_0x1dfd50,_0x2586e2){return _0x3df5c6(_0x11a37d,_0x50b0c8,_0x554064,_0x16b13f,_0x1dfd50,_0x2586e2);},'OxhDz':_0x24989f(0x1c7)};let _0x16b980;try{!_0x32af7c[_0x24989f(0x1b7)]&&(logger[_0x24989f(0x1d5)](_0xd209b2[_0x24989f(0x1ad)]),process[_0x24989f(0x1a9)](0x1));!fs[_0x24989f(0x1a7)](_0xd209b2[_0x24989f(0x1fb)](getCredentialsPath))&&(logger[_0x24989f(0x1d5)](_0xd209b2['Nwchy']),await _0xd209b2[_0x24989f(0x1c6)](sendInstrumentationEvent,_0x32af7c,_0xd209b2[_0x24989f(0x1df)],messageTypes[_0x24989f(0x1b5)],_0xd209b2[_0x24989f(0x1a0)],null,_0x32af7c),process['exit'](0x1));logger['info']('Starting\x20grid\x20'+_0x32af7c['gridId']),await _0xd209b2['GkwMY'](sendInstrumentationEvent,_0x32af7c,_0xd209b2[_0x24989f(0x1df)],messageTypes[_0x24989f(0x1e2)],null,null,_0x32af7c);const _0xe537f1=JSON[_0x24989f(0x1d3)](fs[_0x24989f(0x1b1)](_0xd209b2[_0x24989f(0x1fb)](getCredentialsPath)));global_registry[_0x24989f(0x1a8)]=_0xe537f1[_0x24989f(0x1b8)][_0x24989f(0x1e7)],global_registry[_0x24989f(0x1e8)]=_0xe537f1[_0x24989f(0x1b8)][_0x24989f(0x1cd)];const _0x330ff9=WS_ENDPOINT[_0x24989f(0x1ea)](_0xd209b2[_0x24989f(0x1d2)],_0xe537f1[_0x24989f(0x1b8)][_0x24989f(0x1e7)])[_0x24989f(0x1ea)](_0xd209b2[_0x24989f(0x1c4)],_0xe537f1[_0x24989f(0x1b8)][_0x24989f(0x1cd)]),_0x252c3a={};_0x252c3a['WebSocket']=ws,_0x252c3a[_0x24989f(0x1cf)]=0x36ee80,_0x16b980=new ReconnectingWebSocket(_0x330ff9,[],_0x252c3a),logger[_0x24989f(0x1b9)](_0xd209b2[_0x24989f(0x1ec)]),webSocketUtils['addListeners'](_0x16b980,_0x32af7c[_0x24989f(0x1c8)],_0x32af7c[_0x24989f(0x1cd)]);const [_0x524145,_0x13815a]=await _0xd209b2[_0x24989f(0x1dc)](getGridDetails,_0xe537f1[_0x24989f(0x1b8)]['username'],_0xe537f1[_0x24989f(0x1b8)]['password'],_0x32af7c[_0x24989f(0x1b7)]);if(_0x13815a){const _0x42d267=_0x13815a[_0x24989f(0x1fa)];global_registry[_0x24989f(0x1c3)]=_0x42d267['cloudProvider'],global_registry[_0x24989f(0x1cb)]=_0x42d267[_0x24989f(0x1e0)],global_registry[_0x24989f(0x1c9)]=_0x42d267['clusterName'];const _0x16a04f=await _0xd209b2[_0x24989f(0x1c6)](getCloudProviderObject,_0x42d267[_0x24989f(0x1c3)],_0x42d267[_0x24989f(0x1c9)],_0x42d267[_0x24989f(0x1ac)],_0x16b980,webSocketUtils,_0x32af7c),[_0x1e45dd,_0x8ceccf,_0x4a354b,_0x8d0ba5,_0x90c78a,_0x47b11a]=await _0xd209b2[_0x24989f(0x1f2)](createK8sClient,_0x16a04f,_0x32af7c[_0x24989f(0x1d9)]);await _0xd209b2[_0x24989f(0x1c1)](scaleUpHubDeployment,_0x8ceccf,_0x42d267['name']),logger[_0x24989f(0x1fa)](_0xd209b2[_0x24989f(0x1ce)]),process[_0x24989f(0x1a9)](0x0);}_0xd209b2[_0x24989f(0x1bd)](_0x524145[_0x24989f(0x1b3)],0x191)&&(logger[_0x24989f(0x1d5)](_0xd209b2['sZhnC']),await _0xd209b2[_0x24989f(0x1c6)](sendInstrumentationEvent,_0x32af7c,_0xd209b2['meoTE'],messageTypes[_0x24989f(0x1b5)],_0xd209b2[_0x24989f(0x1b2)],null,_0x32af7c),process[_0x24989f(0x1a9)](0x1)),_0xd209b2['xmeqb'](_0x524145[_0x24989f(0x1b3)],0x190)&&(logger[_0x24989f(0x1d5)](JSON[_0x24989f(0x1d3)](_0x524145[_0x24989f(0x1bb)])[_0x24989f(0x1e5)]),await _0xd209b2[_0x24989f(0x1e3)](sendInstrumentationEvent,_0x32af7c,_0xd209b2[_0x24989f(0x1df)],messageTypes[_0x24989f(0x1b5)],_0xd209b2[_0x24989f(0x1b4)],null,_0x32af7c),process[_0x24989f(0x1a9)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x24989f(0x1cc)](_0x524145)),await _0xd209b2[_0x24989f(0x1ed)](sendInstrumentationEvent,_0x32af7c,_0xd209b2['meoTE'],messageTypes[_0x24989f(0x1b5)],_0xd209b2[_0x24989f(0x1a1)],_0x524145,_0x32af7c),process[_0x24989f(0x1a9)](0x1);}catch(_0x26204f){const _0x640e3b='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x26204f+'\x20\x0a'+JSON[_0x24989f(0x1cc)](_0x26204f[_0x24989f(0x1d0)])+'\x20';logger[_0x24989f(0x1d5)](_0x640e3b),process[_0x24989f(0x1a9)](0x1);}};
1
+ function a19_0x159d(){const _0x1cf557=['KRPIS','TWCPW','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Browserstack','bstackAccesskey','start','frBlW','../../utils/webSocketUtils','203aomdxs','../../config/logger','../../utils/utilityMethods','boolean','../../utils/gridComponents','WebSocket','Bjjdg','debug','DgctI','100264EqftsM','init-not-called','reconnecting-websocket','MImbc','parse','type','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','TMDFC','vqtll','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','replace','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/instrumentationUtils','DzHnj','error','607872WdivvL','907890JwLoMo','message','bstackUsername','ERROR','1314936uEZanj','319591XcxUlD','clusterRegion','Fxtpy','Starting\x20grid\x20','clusterName','cloudProvider','Skip\x20insecure\x20cert\x20verification.','FvVgI','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','<PasswordPlaceholder>','epilogue','connectionTimeout','string','statusCode','stringify','ORjCH','wJKGN','handler','Adding\x20Websocket\x20listeners','unauthorised','BnTPb','gridId','INFO','zUZyu','skipTlsCertVerify','../../utils/createk8sClient','options','user','../../config/constants','../../cloudproviders/utils','65XRUJDo','fTSsP','MUast','username','exit','info','region','password','server-error','TGdxk','71436DCpDsd','347160JTzYni','HmwAk','<UsernamePlaceholder>','help','grid-id','CnhRa','skip-tls-cert-verify','start-grid-called','desc','name','stack'];a19_0x159d=function(){return _0x1cf557;};return a19_0x159d();}const a19_0x2d98d5=a19_0x4162;(function(_0x5598b7,_0x5f5c3f){const _0x3d16ae=a19_0x4162,_0xd33111=_0x5598b7();while(!![]){try{const _0x2ac900=parseInt(_0x3d16ae(0x15b))/0x1+parseInt(_0x3d16ae(0x155))/0x2+-parseInt(_0x3d16ae(0x156))/0x3+parseInt(_0x3d16ae(0x146))/0x4*(-parseInt(_0x3d16ae(0x11e))/0x5)+parseInt(_0x3d16ae(0x128))/0x6*(parseInt(_0x3d16ae(0x13d))/0x7)+parseInt(_0x3d16ae(0x129))/0x8+-parseInt(_0x3d16ae(0x15a))/0x9;if(_0x2ac900===_0x5f5c3f)break;else _0xd33111['push'](_0xd33111['shift']());}catch(_0x2e903f){_0xd33111['push'](_0xd33111['shift']());}}}(a19_0x159d,0x3a024));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2d98d5(0x148)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2d98d5(0x11c)),{logger}=require(a19_0x2d98d5(0x13e)),{getCredentialsPath,getGridDetails}=require(a19_0x2d98d5(0x13f)),{scaleUpHubDeployment}=require(a19_0x2d98d5(0x141)),{sendInstrumentationEvent}=require(a19_0x2d98d5(0x152)),webSocketUtils=require(a19_0x2d98d5(0x13c)),{createK8sClient}=require(a19_0x2d98d5(0x119)),{getCloudProviderObject}=require(a19_0x2d98d5(0x11d));function a19_0x4162(_0x553c68,_0x1b6d47){const _0x159d4e=a19_0x159d();return a19_0x4162=function(_0x41628b,_0x1d17e2){_0x41628b=_0x41628b-0x117;let _0x133626=_0x159d4e[_0x41628b];return _0x133626;},a19_0x4162(_0x553c68,_0x1b6d47);}exports['command']='grid',exports[a19_0x2d98d5(0x131)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x144435){const _0x3f7748=a19_0x2d98d5,_0x237dba={};_0x237dba[_0x3f7748(0x16a)]=_0x3f7748(0x14f),_0x237dba[_0x3f7748(0x127)]=_0x3f7748(0x167),_0x237dba[_0x3f7748(0x12e)]=_0x3f7748(0x161),_0x237dba['frBlW']=_0x3f7748(0x140),_0x237dba[_0x3f7748(0x149)]='help';const _0x13376c=_0x237dba,_0x37585b={};_0x37585b[_0x3f7748(0x136)]=_0x13376c['ORjCH'],_0x37585b[_0x3f7748(0x14b)]=_0x13376c[_0x3f7748(0x127)];const _0x267df7={};_0x267df7[_0x3f7748(0x136)]=_0x13376c[_0x3f7748(0x12e)],_0x267df7[_0x3f7748(0x14b)]=_0x13376c[_0x3f7748(0x13b)],_0x267df7['default']=![];const _0x4e935a={};return _0x4e935a[_0x3f7748(0x12d)]=_0x37585b,_0x4e935a[_0x3f7748(0x12f)]=_0x267df7,_0x144435['usage'](HELP_HEADER_MESSAGE[_0x3f7748(0x13a)])[_0x3f7748(0x165)](HELP_FOOTER_MESSAGE)[_0x3f7748(0x11a)](_0x4e935a)[_0x3f7748(0x12c)](_0x13376c[_0x3f7748(0x149)])['argv'];},exports[a19_0x2d98d5(0x16c)]=async function(_0x4271cd){const _0x98cf7a=a19_0x2d98d5,_0x44c76d={'TMDFC':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Bjjdg':function(_0xbd9ed6){return _0xbd9ed6();},'zUZyu':_0x98cf7a(0x163),'KRPIS':function(_0x2ffd05,_0x48b540,_0x160854,_0xf8033a,_0x34ab03,_0x106725,_0x4a5592){return _0x2ffd05(_0x48b540,_0x160854,_0xf8033a,_0x34ab03,_0x106725,_0x4a5592);},'BnTPb':_0x98cf7a(0x130),'MUast':_0x98cf7a(0x147),'wJKGN':function(_0x333fe2,_0x1d00ef,_0x311d39,_0x5e82ab,_0x5c06ad,_0xd27ae3,_0x4526cf){return _0x333fe2(_0x1d00ef,_0x311d39,_0x5e82ab,_0x5c06ad,_0xd27ae3,_0x4526cf);},'DgctI':_0x98cf7a(0x12b),'SXglz':_0x98cf7a(0x164),'TWCPW':_0x98cf7a(0x16d),'HmwAk':function(_0x4d3970,_0x593d5c,_0x4d06c8,_0x5320e0){return _0x4d3970(_0x593d5c,_0x4d06c8,_0x5320e0);},'Fxtpy':function(_0x352bc2,_0x48a03c,_0x284326){return _0x352bc2(_0x48a03c,_0x284326);},'FvVgI':'Grid\x20started','DzHnj':function(_0x46e243,_0x175a73){return _0x46e243===_0x175a73;},'WxvNg':_0x98cf7a(0x151),'eSfcg':_0x98cf7a(0x16e),'fTSsP':'invalid-grid-id','vqtll':function(_0x3c1f08,_0x17224d,_0x5737e9,_0x5bab65,_0x36fd8e,_0x2a5d7b,_0x20823d){return _0x3c1f08(_0x17224d,_0x5737e9,_0x5bab65,_0x36fd8e,_0x2a5d7b,_0x20823d);},'ZBMTk':_0x98cf7a(0x126)};let _0x2cb544;try{!_0x4271cd['gridId']&&(logger[_0x98cf7a(0x154)](_0x44c76d[_0x98cf7a(0x14d)]),process[_0x98cf7a(0x122)](0x1));!fs['existsSync'](_0x44c76d[_0x98cf7a(0x143)](getCredentialsPath))&&(logger[_0x98cf7a(0x154)](_0x44c76d[_0x98cf7a(0x117)]),await _0x44c76d[_0x98cf7a(0x134)](sendInstrumentationEvent,_0x4271cd,_0x44c76d[_0x98cf7a(0x16f)],messageTypes[_0x98cf7a(0x159)],_0x44c76d[_0x98cf7a(0x120)],null,_0x4271cd),process[_0x98cf7a(0x122)](0x1));logger[_0x98cf7a(0x123)](_0x98cf7a(0x15e)+_0x4271cd[_0x98cf7a(0x170)]),await _0x44c76d[_0x98cf7a(0x16b)](sendInstrumentationEvent,_0x4271cd,_0x44c76d[_0x98cf7a(0x16f)],messageTypes[_0x98cf7a(0x171)],null,null,_0x4271cd);const _0x14c989=JSON['parse'](fs['readFileSync'](_0x44c76d[_0x98cf7a(0x143)](getCredentialsPath)));global_registry[_0x98cf7a(0x158)]=_0x14c989[_0x98cf7a(0x138)][_0x98cf7a(0x121)],global_registry[_0x98cf7a(0x139)]=_0x14c989[_0x98cf7a(0x138)]['password'];const _0x252788=WS_ENDPOINT[_0x98cf7a(0x150)](_0x44c76d[_0x98cf7a(0x145)],_0x14c989[_0x98cf7a(0x138)][_0x98cf7a(0x121)])[_0x98cf7a(0x150)](_0x44c76d['SXglz'],_0x14c989[_0x98cf7a(0x138)][_0x98cf7a(0x125)]),_0x347339={};_0x347339[_0x98cf7a(0x142)]=ws,_0x347339[_0x98cf7a(0x166)]=0x36ee80,_0x2cb544=new ReconnectingWebSocket(_0x252788,[],_0x347339),logger[_0x98cf7a(0x144)](_0x44c76d[_0x98cf7a(0x135)]),webSocketUtils['addListeners'](_0x2cb544,_0x4271cd[_0x98cf7a(0x11b)],_0x4271cd[_0x98cf7a(0x125)]);const [_0x1b2019,_0x646a7]=await _0x44c76d[_0x98cf7a(0x12a)](getGridDetails,_0x14c989[_0x98cf7a(0x138)][_0x98cf7a(0x121)],_0x14c989[_0x98cf7a(0x138)]['password'],_0x4271cd[_0x98cf7a(0x170)]);if(_0x646a7){const _0x1b56f8=_0x646a7['info'];global_registry[_0x98cf7a(0x160)]=_0x1b56f8[_0x98cf7a(0x160)],global_registry[_0x98cf7a(0x15c)]=_0x1b56f8[_0x98cf7a(0x124)],global_registry['clusterName']=_0x1b56f8[_0x98cf7a(0x15f)];const _0xd27d49=await _0x44c76d[_0x98cf7a(0x16b)](getCloudProviderObject,_0x1b56f8['cloudProvider'],_0x1b56f8[_0x98cf7a(0x15f)],_0x1b56f8[_0x98cf7a(0x132)],_0x2cb544,webSocketUtils,_0x4271cd),[_0x3c7a3f,_0x3a7e56,_0x417737,_0x531418,_0x4bdf8e,_0x33c4ee]=await _0x44c76d[_0x98cf7a(0x15d)](createK8sClient,_0xd27d49,_0x4271cd[_0x98cf7a(0x118)]);await _0x44c76d[_0x98cf7a(0x15d)](scaleUpHubDeployment,_0x3a7e56,_0x1b56f8[_0x98cf7a(0x132)]),logger[_0x98cf7a(0x123)](_0x44c76d[_0x98cf7a(0x162)]),process[_0x98cf7a(0x122)](0x0);}_0x44c76d[_0x98cf7a(0x153)](_0x1b2019['statusCode'],0x191)&&(logger[_0x98cf7a(0x154)](_0x44c76d['WxvNg']),await _0x44c76d[_0x98cf7a(0x134)](sendInstrumentationEvent,_0x4271cd,_0x44c76d[_0x98cf7a(0x16f)],messageTypes[_0x98cf7a(0x159)],_0x44c76d['eSfcg'],null,_0x4271cd),process[_0x98cf7a(0x122)](0x1)),_0x44c76d['DzHnj'](_0x1b2019[_0x98cf7a(0x168)],0x190)&&(logger[_0x98cf7a(0x154)](JSON[_0x98cf7a(0x14a)](_0x1b2019['body'])[_0x98cf7a(0x157)]),await _0x44c76d[_0x98cf7a(0x134)](sendInstrumentationEvent,_0x4271cd,_0x44c76d[_0x98cf7a(0x16f)],messageTypes['ERROR'],_0x44c76d[_0x98cf7a(0x11f)],null,_0x4271cd),process[_0x98cf7a(0x122)](0x1)),logger[_0x98cf7a(0x154)](_0x98cf7a(0x137)+JSON[_0x98cf7a(0x169)](_0x1b2019)),await _0x44c76d[_0x98cf7a(0x14e)](sendInstrumentationEvent,_0x4271cd,_0x44c76d['BnTPb'],messageTypes[_0x98cf7a(0x159)],_0x44c76d['ZBMTk'],_0x1b2019,_0x4271cd),process[_0x98cf7a(0x122)](0x1);}catch(_0x4c0514){const _0x2eaedf=_0x98cf7a(0x14c)+_0x4c0514+'\x20\x0a'+JSON[_0x98cf7a(0x169)](_0x4c0514[_0x98cf7a(0x133)])+'\x20';logger[_0x98cf7a(0x154)](_0x2eaedf),process[_0x98cf7a(0x122)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x1eb7(_0x45f1f0,_0x23bde0){const _0x35f7ff=a20_0x35f7();return a20_0x1eb7=function(_0x1eb752,_0x2b6943){_0x1eb752=_0x1eb752-0x8d;let _0x3239af=_0x35f7ff[_0x1eb752];return _0x3239af;},a20_0x1eb7(_0x45f1f0,_0x23bde0);}const a20_0x5bd7e4=a20_0x1eb7;(function(_0x2e00a4,_0x304e6a){const _0x450803=a20_0x1eb7,_0x379a90=_0x2e00a4();while(!![]){try{const _0x312f11=parseInt(_0x450803(0x96))/0x1*(-parseInt(_0x450803(0xa4))/0x2)+parseInt(_0x450803(0x92))/0x3+-parseInt(_0x450803(0x9c))/0x4*(-parseInt(_0x450803(0x99))/0x5)+parseInt(_0x450803(0x90))/0x6*(parseInt(_0x450803(0x98))/0x7)+-parseInt(_0x450803(0x9f))/0x8+parseInt(_0x450803(0xa2))/0x9*(-parseInt(_0x450803(0xa6))/0xa)+-parseInt(_0x450803(0x9b))/0xb*(-parseInt(_0x450803(0x91))/0xc);if(_0x312f11===_0x304e6a)break;else _0x379a90['push'](_0x379a90['shift']());}catch(_0x3bf01f){_0x379a90['push'](_0x379a90['shift']());}}}(a20_0x35f7,0x475e5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5bd7e4(0xa0));function a20_0x35f7(){const _0xd6ee50=['11bXgXHQ','4QoJyuN','builder','demandCommand','360736XUvuZX','../config/constants','command','116379HxQMci','desc','578216AaXCOD','usage','350sNovSD','stop','recommendCommands','jCDSp','commandDir','6mIpsDn','6231252VgEppS','384615JoKirp','Stop\x20a\x20running\x20Automation\x20grid.','strict','handler','2AQThKg','ZhfUl','2647211sZIZVC','1712845zOllPw','help'];a20_0x35f7=function(){return _0xd6ee50;};return a20_0x35f7();}exports[a20_0x5bd7e4(0xa1)]=a20_0x5bd7e4(0xa7),exports[a20_0x5bd7e4(0xa3)]=a20_0x5bd7e4(0x93),exports[a20_0x5bd7e4(0x9d)]=function(_0x14368e){const _0x58191c=a20_0x5bd7e4,_0x570c02={};_0x570c02['ZhfUl']='stop_commands',_0x570c02['jCDSp']=_0x58191c(0x9a);const _0x263381=_0x570c02;return _0x14368e[_0x58191c(0xa5)](HELP_HEADER_MESSAGE[_0x58191c(0xa7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x58191c(0x8f)](_0x263381[_0x58191c(0x97)])[_0x58191c(0x9e)]()[_0x58191c(0x8d)]()[_0x58191c(0x94)]()[_0x58191c(0x9a)](_0x263381[_0x58191c(0x8e)]);},exports[a20_0x5bd7e4(0x95)]=function(_0x50ef9a){};
1
+ function a20_0x21d4(_0x539399,_0x5ee360){const _0x30c329=a20_0x30c3();return a20_0x21d4=function(_0x21d48e,_0x212c96){_0x21d48e=_0x21d48e-0x1ab;let _0xf5cda0=_0x30c329[_0x21d48e];return _0xf5cda0;},a20_0x21d4(_0x539399,_0x5ee360);}const a20_0x2c5c6f=a20_0x21d4;(function(_0x373d85,_0x2eac35){const _0x3a55d4=a20_0x21d4,_0x516858=_0x373d85();while(!![]){try{const _0x4d7656=-parseInt(_0x3a55d4(0x1b8))/0x1+parseInt(_0x3a55d4(0x1b9))/0x2+-parseInt(_0x3a55d4(0x1b7))/0x3*(parseInt(_0x3a55d4(0x1b6))/0x4)+-parseInt(_0x3a55d4(0x1c1))/0x5*(parseInt(_0x3a55d4(0x1c2))/0x6)+parseInt(_0x3a55d4(0x1ba))/0x7*(parseInt(_0x3a55d4(0x1b5))/0x8)+-parseInt(_0x3a55d4(0x1b2))/0x9*(parseInt(_0x3a55d4(0x1af))/0xa)+parseInt(_0x3a55d4(0x1bc))/0xb;if(_0x4d7656===_0x2eac35)break;else _0x516858['push'](_0x516858['shift']());}catch(_0x13f354){_0x516858['push'](_0x516858['shift']());}}}(a20_0x30c3,0xe3162));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x2c5c6f(0x1b3));function a20_0x30c3(){const _0x29beb1=['GfLZW','commandDir','jEKLD','stop_commands','10xtUrNa','builder','help','7647228xVULDS','../config/constants','stop','16VYbght','3090392QbhPEy','3SGjkTT','1203161qldKax','155882ebgZax','429121UJrXEZ','desc','48258848AzHOVn','usage','Stop\x20a\x20running\x20Automation\x20grid.','strict','command','70cEoFRv','356622unumzg'];a20_0x30c3=function(){return _0x29beb1;};return a20_0x30c3();}exports[a20_0x2c5c6f(0x1c0)]=a20_0x2c5c6f(0x1b4),exports[a20_0x2c5c6f(0x1bb)]=a20_0x2c5c6f(0x1be),exports[a20_0x2c5c6f(0x1b0)]=function(_0x16bc9c){const _0x4714d1=a20_0x2c5c6f,_0x4e8b11={};_0x4e8b11[_0x4714d1(0x1ab)]=_0x4714d1(0x1ae),_0x4e8b11[_0x4714d1(0x1ad)]=_0x4714d1(0x1b1);const _0x501760=_0x4e8b11;return _0x16bc9c[_0x4714d1(0x1bd)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4714d1(0x1ac)](_0x501760[_0x4714d1(0x1ab)])['demandCommand']()['recommendCommands']()[_0x4714d1(0x1bf)]()[_0x4714d1(0x1b1)](_0x501760[_0x4714d1(0x1ad)]);},exports['handler']=function(_0x4f7786){};
@@ -1 +1 @@
1
- const a21_0x483cd0=a21_0x272e;(function(_0x27f4d7,_0x32b6fd){const _0x2e436d=a21_0x272e,_0x4a880c=_0x27f4d7();while(!![]){try{const _0x535dcf=-parseInt(_0x2e436d(0xd3))/0x1+parseInt(_0x2e436d(0xc5))/0x2+-parseInt(_0x2e436d(0xc1))/0x3*(parseInt(_0x2e436d(0xb5))/0x4)+-parseInt(_0x2e436d(0xab))/0x5*(-parseInt(_0x2e436d(0xce))/0x6)+parseInt(_0x2e436d(0xa4))/0x7+-parseInt(_0x2e436d(0xaa))/0x8*(-parseInt(_0x2e436d(0xd4))/0x9)+-parseInt(_0x2e436d(0xb9))/0xa*(parseInt(_0x2e436d(0xc6))/0xb);if(_0x535dcf===_0x32b6fd)break;else _0x4a880c['push'](_0x4a880c['shift']());}catch(_0x4d4fd9){_0x4a880c['push'](_0x4a880c['shift']());}}}(a21_0x5c19,0x70ec8));function a21_0x272e(_0x4db862,_0x213267){const _0x5c19ca=a21_0x5c19();return a21_0x272e=function(_0x272e67,_0x307ed9){_0x272e67=_0x272e67-0x96;let _0x50a077=_0x5c19ca[_0x272e67];return _0x50a077;},a21_0x272e(_0x4db862,_0x213267);}function a21_0x5c19(){const _0x3cb67a=['143LRCXHA','KTRRm','error','grid-id','../../utils/utilityMethods','password','addListeners','YhOnX','78lXVUqG','../../utils/instrumentationUtils','description','OgZZY','ERROR','581548FwdVJX','1602OeHhdp','boolean','clusterRegion','Browserstack','MEune','exit','body','clusterName','handler','stringify','Oqpbu','../../config/logger','usage','invalid-grid-id','stack','Stop\x20a\x20running\x20Automation\x20grid.','options','unauthorised','pnZoA','UfQnF','Skip\x20insecure\x20cert\x20verification.','reconnecting-websocket','lnAgP','desc','connectionTimeout','qnvth','<PasswordPlaceholder>','cloudProvider','grid','OiLiw','INFO','DQbeU','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','rHgTb','default','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','gridId','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','existsSync','builder','Stopping\x20grid\x20','stop-grid-called','statusCode','TvXIQ','<UsernamePlaceholder>','5330465VAtQWU','stop','parse','CEYIw','../../config/constants','region','20712WhrCUL','169055KmgEyT','mbqZc','../../utils/gridComponents','replace','epilogue','type','../../utils/createk8sClient','Cwavc','help','bstackAccesskey','2743844YwzozI','skip-tls-cert-verify','debug','username','448660AxoSdc','server-error','command','UEkmC','XpHTQ','info','lzAVx','string','3xsIlCV','name','sHiOv','OYWQn','1302846nWCkse'];a21_0x5c19=function(){return _0x3cb67a;};return a21_0x5c19();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x483cd0(0xe9)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x483cd0(0xa8)),{logger}=require(a21_0x483cd0(0xdf)),{getCredentialsPath,getGridDetails}=require(a21_0x483cd0(0xca)),{scaleDownHubDeployment}=require(a21_0x483cd0(0xad)),{sendInstrumentationEvent}=require(a21_0x483cd0(0xcf)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x483cd0(0xb1)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x483cd0(0xbb)]=a21_0x483cd0(0xf0),exports[a21_0x483cd0(0xeb)]=a21_0x483cd0(0xe3),exports[a21_0x483cd0(0x9e)]=function(_0x8ef71d){const _0xfb464d=a21_0x483cd0,_0xae74c4={};_0xae74c4[_0xfb464d(0xbd)]=_0xfb464d(0x9c),_0xae74c4[_0xfb464d(0xac)]=_0xfb464d(0xc0),_0xae74c4[_0xfb464d(0xa7)]=_0xfb464d(0xe8),_0xae74c4[_0xfb464d(0xd1)]=_0xfb464d(0xd5),_0xae74c4['OYWQn']=_0xfb464d(0xb3);const _0x1770c4=_0xae74c4,_0x16508c={};_0x16508c[_0xfb464d(0xd0)]=_0x1770c4[_0xfb464d(0xbd)],_0x16508c[_0xfb464d(0xb0)]=_0x1770c4[_0xfb464d(0xac)];const _0x25341c={};_0x25341c[_0xfb464d(0xd0)]=_0x1770c4[_0xfb464d(0xa7)],_0x25341c['type']=_0x1770c4[_0xfb464d(0xd1)],_0x25341c[_0xfb464d(0x99)]=![];const _0x23d8b8={};return _0x23d8b8[_0xfb464d(0xc9)]=_0x16508c,_0x23d8b8[_0xfb464d(0xb6)]=_0x25341c,_0x8ef71d[_0xfb464d(0xe0)](HELP_HEADER_MESSAGE[_0xfb464d(0xa5)])[_0xfb464d(0xaf)](HELP_FOOTER_MESSAGE)[_0xfb464d(0xe4)](_0x23d8b8)[_0xfb464d(0xb3)](_0x1770c4[_0xfb464d(0xc4)])['argv'];},exports[a21_0x483cd0(0xdc)]=async function(_0x40b1f5){const _0x2dc44f=a21_0x483cd0,_0x57aa72={'UEkmC':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','GDBEc':function(_0x31409a){return _0x31409a();},'qnvth':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sHiOv':function(_0x55f8b3,_0x5c1335,_0x357c22,_0x1cdd21,_0x4b1728,_0x2cf708,_0x13a336){return _0x55f8b3(_0x5c1335,_0x357c22,_0x1cdd21,_0x4b1728,_0x2cf708,_0x13a336);},'Oqpbu':_0x2dc44f(0xa0),'lqscX':'init-not-called','rHgTb':function(_0x422361,_0x44c641,_0x5e123c,_0x1d7e70,_0x3a5e8c,_0x179899,_0xd24925){return _0x422361(_0x44c641,_0x5e123c,_0x1d7e70,_0x3a5e8c,_0x179899,_0xd24925);},'lzAVx':function(_0x373496){return _0x373496();},'MEune':_0x2dc44f(0xa3),'KTRRm':_0x2dc44f(0xee),'Cwavc':'Adding\x20Websocket\x20listeners','pnZoA':function(_0xfca78c,_0x2752f1,_0x33aa4a,_0xdd1c00){return _0xfca78c(_0x2752f1,_0x33aa4a,_0xdd1c00);},'UXZzg':function(_0x4657a2,_0x2fbbb2,_0x223688,_0xfea773,_0x49702d,_0x47522c,_0x56fa6a){return _0x4657a2(_0x2fbbb2,_0x223688,_0xfea773,_0x49702d,_0x47522c,_0x56fa6a);},'YhOnX':function(_0x2b5285,_0x17ee93,_0x24d664){return _0x2b5285(_0x17ee93,_0x24d664);},'UfQnF':function(_0x59e569,_0x11b47c,_0x379fe5){return _0x59e569(_0x11b47c,_0x379fe5);},'TvXIQ':'Grid\x20stoppped.','fCGZo':function(_0xf354cb,_0x2abaf9){return _0xf354cb===_0x2abaf9;},'DQbeU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','GsOKc':function(_0x54a730,_0x33183c,_0x2095d4,_0x318031,_0x5718ec,_0x252d36,_0x5709b5){return _0x54a730(_0x33183c,_0x2095d4,_0x318031,_0x5718ec,_0x252d36,_0x5709b5);},'qWeGX':_0x2dc44f(0xe5),'eEEEk':function(_0x352153,_0x53473a){return _0x352153===_0x53473a;},'lnAgP':function(_0x2e90b4,_0x3215ee,_0x152e01,_0x246055,_0x18ea3a,_0x484da4,_0x75473f){return _0x2e90b4(_0x3215ee,_0x152e01,_0x246055,_0x18ea3a,_0x484da4,_0x75473f);},'eTkJl':_0x2dc44f(0xe1),'xNQQf':function(_0x1d58f3,_0x577d12,_0x473418,_0x4ad932,_0x3e7e74,_0xc828d4,_0x22eabc){return _0x1d58f3(_0x577d12,_0x473418,_0x4ad932,_0x3e7e74,_0xc828d4,_0x22eabc);},'OiLiw':_0x2dc44f(0xba)};let _0x28e4fd;try{!_0x40b1f5['gridId']&&(logger[_0x2dc44f(0xc8)](_0x57aa72[_0x2dc44f(0xbc)]),process['exit'](0x1));!fs[_0x2dc44f(0x9d)](_0x57aa72['GDBEc'](getCredentialsPath))&&(logger[_0x2dc44f(0xc8)](_0x57aa72[_0x2dc44f(0xed)]),await _0x57aa72[_0x2dc44f(0xc3)](sendInstrumentationEvent,_0x40b1f5,_0x57aa72[_0x2dc44f(0xde)],messageTypes[_0x2dc44f(0xd2)],_0x57aa72['lqscX'],null,_0x40b1f5),process[_0x2dc44f(0xd9)](0x1));logger[_0x2dc44f(0xbe)](_0x2dc44f(0x9f)+_0x40b1f5[_0x2dc44f(0x9b)]),await _0x57aa72[_0x2dc44f(0x98)](sendInstrumentationEvent,_0x40b1f5,_0x57aa72['Oqpbu'],messageTypes[_0x2dc44f(0xf2)],null,null,_0x40b1f5);const _0x2be128=JSON[_0x2dc44f(0xa6)](fs['readFileSync'](_0x57aa72[_0x2dc44f(0xbf)](getCredentialsPath)));global_registry['bstackUsername']=_0x2be128[_0x2dc44f(0xd7)][_0x2dc44f(0xb8)],global_registry[_0x2dc44f(0xb4)]=_0x2be128[_0x2dc44f(0xd7)][_0x2dc44f(0xcb)];const _0x4ef2ef=WS_ENDPOINT[_0x2dc44f(0xae)](_0x57aa72[_0x2dc44f(0xd8)],_0x2be128['Browserstack'][_0x2dc44f(0xb8)])[_0x2dc44f(0xae)](_0x57aa72[_0x2dc44f(0xc7)],_0x2be128[_0x2dc44f(0xd7)]['password']),_0x54eb9e={};_0x54eb9e['WebSocket']=ws,_0x54eb9e[_0x2dc44f(0xec)]=0x36ee80,_0x28e4fd=new ReconnectingWebSocket(_0x4ef2ef,[],_0x54eb9e),logger[_0x2dc44f(0xb7)](_0x57aa72[_0x2dc44f(0xb2)]),webSocketUtils[_0x2dc44f(0xcc)](_0x28e4fd,_0x40b1f5['user'],_0x40b1f5['password']);const [_0x14a211,_0x400bda]=await _0x57aa72[_0x2dc44f(0xe6)](getGridDetails,_0x2be128[_0x2dc44f(0xd7)][_0x2dc44f(0xb8)],_0x2be128['Browserstack']['password'],_0x40b1f5[_0x2dc44f(0x9b)]);if(_0x400bda){const _0x7537db=_0x400bda['info'];global_registry[_0x2dc44f(0xef)]=_0x7537db[_0x2dc44f(0xef)],global_registry[_0x2dc44f(0xd6)]=_0x7537db[_0x2dc44f(0xa9)],global_registry[_0x2dc44f(0xdb)]=_0x7537db[_0x2dc44f(0xdb)];const _0x14ec7d=await _0x57aa72['UXZzg'](getCloudProviderObject,_0x7537db[_0x2dc44f(0xef)],_0x7537db[_0x2dc44f(0xdb)],_0x7537db[_0x2dc44f(0xc2)],_0x28e4fd,webSocketUtils,_0x40b1f5),[_0x55bb7b,_0x2f6a80,_0x1bb0ce,_0x2a1e6c,_0x573544,_0x149b98]=await _0x57aa72[_0x2dc44f(0xcd)](createK8sClient,_0x14ec7d,_0x40b1f5['skipTlsCertVerify']);await _0x57aa72[_0x2dc44f(0xe7)](scaleDownHubDeployment,_0x2f6a80,_0x7537db['name']),logger[_0x2dc44f(0xbe)](_0x57aa72[_0x2dc44f(0xa2)]),process[_0x2dc44f(0xd9)](0x0);}_0x57aa72['fCGZo'](_0x14a211['statusCode'],0x191)&&(logger['error'](_0x57aa72[_0x2dc44f(0x96)]),await _0x57aa72['GsOKc'](sendInstrumentationEvent,_0x40b1f5,_0x57aa72[_0x2dc44f(0xde)],messageTypes[_0x2dc44f(0xd2)],_0x57aa72['qWeGX'],null,_0x40b1f5),process[_0x2dc44f(0xd9)](0x1)),_0x57aa72['eEEEk'](_0x14a211[_0x2dc44f(0xa1)],0x190)&&(logger['error'](JSON[_0x2dc44f(0xa6)](_0x14a211[_0x2dc44f(0xda)])['message']),await _0x57aa72[_0x2dc44f(0xea)](sendInstrumentationEvent,_0x40b1f5,_0x57aa72[_0x2dc44f(0xde)],messageTypes['ERROR'],_0x57aa72['eTkJl'],null,_0x40b1f5),process[_0x2dc44f(0xd9)](0x1)),logger['error'](_0x2dc44f(0x97)+JSON[_0x2dc44f(0xdd)](_0x14a211)),await _0x57aa72['xNQQf'](sendInstrumentationEvent,_0x40b1f5,_0x57aa72[_0x2dc44f(0xde)],messageTypes[_0x2dc44f(0xd2)],_0x57aa72[_0x2dc44f(0xf1)],_0x14a211,_0x40b1f5),process[_0x2dc44f(0xd9)](0x1);}catch(_0x576fea){const _0x2c3279=_0x2dc44f(0x9a)+_0x576fea+'\x20\x0a'+JSON[_0x2dc44f(0xdd)](_0x576fea[_0x2dc44f(0xe2)])+'\x20';logger[_0x2dc44f(0xc8)](_0x2c3279),process['exit'](0x1);}};
1
+ function a21_0x46e3(){const _0x39c3c2=['../../cloudproviders/utils','YyFvJ','kHPrS','7528FvrMBY','3091950TNpcvt','error','Adding\x20Websocket\x20listeners','hCghU','boolean','skipTlsCertVerify','22nHTPdb','uLmVb','desc','qbgoF','afZOh','stringify','WNsjw','readFileSync','stop-grid-called','clusterName','fZKvi','gridId','stop','debug','IOclv','FoqoS','Stop\x20a\x20running\x20Automation\x20grid.','addListeners','../../utils/instrumentationUtils','ERROR','TWpck','kcMia','info','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','cloudProvider','usage','Browserstack','2768493FLquUo','LiasR','server-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','8BPxdIF','connectionTimeout','aneXq','region','Grid\x20stoppped.','../../utils/gridComponents','NeMNP','replace','grid','RkZEc','stack','username','IgyUA','1289710gYplEI','DDJbj','Skip\x20insecure\x20cert\x20verification.','builder','skip-tls-cert-verify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','default','bstackAccesskey','oAMkA','init-not-called','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','565BUJGwi','../../config/logger','978APbVsj','name','WHkIc','NYZlO','reconnecting-websocket','285KToOhM','OUJNb','options','parse','statusCode','description','<PasswordPlaceholder>','557292DEzPEf','password','241097IMqgDu','invalid-grid-id','unauthorised','body','WebSocket','handler','clusterRegion','../../utils/createk8sClient','type','string','../../config/constants','command','exit','DpzMF','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a21_0x46e3=function(){return _0x39c3c2;};return a21_0x46e3();}const a21_0x1a8923=a21_0x338f;function a21_0x338f(_0x2b7641,_0x52a934){const _0x46e33c=a21_0x46e3();return a21_0x338f=function(_0x338f46,_0x3da4d3){_0x338f46=_0x338f46-0x74;let _0x128f59=_0x46e33c[_0x338f46];return _0x128f59;},a21_0x338f(_0x2b7641,_0x52a934);}(function(_0x4356cc,_0x3b877a){const _0x2daba1=a21_0x338f,_0x41ff79=_0x4356cc();while(!![]){try{const _0x3790c6=-parseInt(_0x2daba1(0x7a))/0x1+parseInt(_0x2daba1(0xcc))/0x2*(parseInt(_0x2daba1(0xd1))/0x3)+-parseInt(_0x2daba1(0x8c))/0x4*(-parseInt(_0x2daba1(0xca))/0x5)+parseInt(_0x2daba1(0x78))/0x6+parseInt(_0x2daba1(0xae))/0x7*(-parseInt(_0x2daba1(0xb2))/0x8)+parseInt(_0x2daba1(0x8d))/0x9+parseInt(_0x2daba1(0xbf))/0xa*(parseInt(_0x2daba1(0x93))/0xb);if(_0x3790c6===_0x3b877a)break;else _0x41ff79['push'](_0x41ff79['shift']());}catch(_0x184945){_0x41ff79['push'](_0x41ff79['shift']());}}}(a21_0x46e3,0x4d5e3));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x1a8923(0xd0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1a8923(0x84)),{logger}=require(a21_0x1a8923(0xcb)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x1a8923(0xb7)),{sendInstrumentationEvent}=require(a21_0x1a8923(0xa5)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x1a8923(0x81)),{getCloudProviderObject}=require(a21_0x1a8923(0x89));exports[a21_0x1a8923(0x85)]=a21_0x1a8923(0xba),exports[a21_0x1a8923(0x95)]=a21_0x1a8923(0xa3),exports[a21_0x1a8923(0xc2)]=function(_0xa2ace4){const _0xe77196=a21_0x1a8923,_0x33d384={};_0x33d384[_0xe77196(0xbe)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x33d384[_0xe77196(0xa7)]=_0xe77196(0x83),_0x33d384['oAMkA']=_0xe77196(0xc1),_0x33d384[_0xe77196(0xb4)]=_0xe77196(0x91),_0x33d384['fZKvi']='help';const _0x3046da=_0x33d384,_0x48d91d={};_0x48d91d['description']=_0x3046da['IgyUA'],_0x48d91d[_0xe77196(0x82)]=_0x3046da[_0xe77196(0xa7)];const _0x2ef671={};_0x2ef671[_0xe77196(0x76)]=_0x3046da[_0xe77196(0xc7)],_0x2ef671[_0xe77196(0x82)]=_0x3046da[_0xe77196(0xb4)],_0x2ef671[_0xe77196(0xc5)]=![];const _0x24346f={};return _0x24346f['grid-id']=_0x48d91d,_0x24346f[_0xe77196(0xc3)]=_0x2ef671,_0xa2ace4[_0xe77196(0xac)](HELP_HEADER_MESSAGE[_0xe77196(0x9f)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xe77196(0xd3)](_0x24346f)['help'](_0x3046da[_0xe77196(0x9d)])['argv'];},exports[a21_0x1a8923(0x7f)]=async function(_0x39c76a){const _0x2594ef=a21_0x1a8923,_0x551c11={'WHkIc':_0x2594ef(0xaa),'afZOh':function(_0x38d9ec){return _0x38d9ec();},'OUJNb':_0x2594ef(0xc4),'NeMNP':function(_0x26bbc5,_0x17057b,_0x1793b4,_0x4a1020,_0x5a980d,_0x136b4d,_0x310989){return _0x26bbc5(_0x17057b,_0x1793b4,_0x4a1020,_0x5a980d,_0x136b4d,_0x310989);},'DpzMF':_0x2594ef(0x9b),'hCghU':_0x2594ef(0xc8),'qbgoF':'<UsernamePlaceholder>','IOclv':_0x2594ef(0x77),'DDJbj':_0x2594ef(0x8f),'kHPrS':function(_0x5996dd,_0xa73e2e,_0x37f1c2,_0x472ec1){return _0x5996dd(_0xa73e2e,_0x37f1c2,_0x472ec1);},'WNsjw':function(_0x483cda,_0x21d074,_0x9a2c1d){return _0x483cda(_0x21d074,_0x9a2c1d);},'NYZlO':_0x2594ef(0xb6),'LiasR':function(_0x109573,_0x597e9a){return _0x109573===_0x597e9a;},'uLmVb':_0x2594ef(0xb1),'ENbiM':function(_0x5e636b,_0x54027c,_0x15c1c9,_0x3142a7,_0x5e5ff3,_0x48f688,_0x848318){return _0x5e636b(_0x54027c,_0x15c1c9,_0x3142a7,_0x5e5ff3,_0x48f688,_0x848318);},'TOBJi':_0x2594ef(0x7c),'YyFvJ':function(_0x67c5ea,_0x23cb75){return _0x67c5ea===_0x23cb75;},'FoqoS':function(_0x44fcc5,_0x387a21,_0xa5137a,_0x203603,_0x1c3d72,_0x125c03,_0x52dfbe){return _0x44fcc5(_0x387a21,_0xa5137a,_0x203603,_0x1c3d72,_0x125c03,_0x52dfbe);},'RkZEc':_0x2594ef(0x7b),'OGSFN':function(_0x48da4a,_0x34c40d,_0x121f69,_0x4f9e36,_0x3327e3,_0x53cbd4,_0x27b64a){return _0x48da4a(_0x34c40d,_0x121f69,_0x4f9e36,_0x3327e3,_0x53cbd4,_0x27b64a);},'kcMia':_0x2594ef(0xb0)};let _0x3216a3;try{!_0x39c76a[_0x2594ef(0x9e)]&&(logger['error'](_0x551c11[_0x2594ef(0xce)]),process[_0x2594ef(0x86)](0x1));!fs['existsSync'](_0x551c11[_0x2594ef(0x97)](getCredentialsPath))&&(logger[_0x2594ef(0x8e)](_0x551c11[_0x2594ef(0xd2)]),await _0x551c11[_0x2594ef(0xb8)](sendInstrumentationEvent,_0x39c76a,_0x551c11[_0x2594ef(0x87)],messageTypes[_0x2594ef(0xa6)],_0x551c11[_0x2594ef(0x90)],null,_0x39c76a),process[_0x2594ef(0x86)](0x1));logger[_0x2594ef(0xa9)]('Stopping\x20grid\x20'+_0x39c76a[_0x2594ef(0x9e)]),await _0x551c11[_0x2594ef(0xb8)](sendInstrumentationEvent,_0x39c76a,_0x551c11[_0x2594ef(0x87)],messageTypes['INFO'],null,null,_0x39c76a);const _0x219651=JSON[_0x2594ef(0x74)](fs[_0x2594ef(0x9a)](_0x551c11[_0x2594ef(0x97)](getCredentialsPath)));global_registry['bstackUsername']=_0x219651[_0x2594ef(0xad)][_0x2594ef(0xbd)],global_registry[_0x2594ef(0xc6)]=_0x219651['Browserstack'][_0x2594ef(0x79)];const _0x5e1c0b=WS_ENDPOINT[_0x2594ef(0xb9)](_0x551c11[_0x2594ef(0x96)],_0x219651[_0x2594ef(0xad)][_0x2594ef(0xbd)])[_0x2594ef(0xb9)](_0x551c11[_0x2594ef(0xa1)],_0x219651[_0x2594ef(0xad)][_0x2594ef(0x79)]),_0x44a6f3={};_0x44a6f3[_0x2594ef(0x7e)]=ws,_0x44a6f3[_0x2594ef(0xb3)]=0x36ee80,_0x3216a3=new ReconnectingWebSocket(_0x5e1c0b,[],_0x44a6f3),logger[_0x2594ef(0xa0)](_0x551c11[_0x2594ef(0xc0)]),webSocketUtils[_0x2594ef(0xa4)](_0x3216a3,_0x39c76a['user'],_0x39c76a['password']);const [_0x2646d5,_0x4d2551]=await _0x551c11[_0x2594ef(0x8b)](getGridDetails,_0x219651[_0x2594ef(0xad)][_0x2594ef(0xbd)],_0x219651[_0x2594ef(0xad)][_0x2594ef(0x79)],_0x39c76a[_0x2594ef(0x9e)]);if(_0x4d2551){const _0x5b6572=_0x4d2551['info'];global_registry[_0x2594ef(0xab)]=_0x5b6572['cloudProvider'],global_registry[_0x2594ef(0x80)]=_0x5b6572[_0x2594ef(0xb5)],global_registry[_0x2594ef(0x9c)]=_0x5b6572[_0x2594ef(0x9c)];const _0xb6f276=await _0x551c11['NeMNP'](getCloudProviderObject,_0x5b6572['cloudProvider'],_0x5b6572[_0x2594ef(0x9c)],_0x5b6572['name'],_0x3216a3,webSocketUtils,_0x39c76a),[_0x99ad55,_0x5223d5,_0x4867ad,_0x431f21,_0x287b80,_0x324769]=await _0x551c11[_0x2594ef(0x99)](createK8sClient,_0xb6f276,_0x39c76a[_0x2594ef(0x92)]);await _0x551c11[_0x2594ef(0x99)](scaleDownHubDeployment,_0x5223d5,_0x5b6572[_0x2594ef(0xcd)]),logger[_0x2594ef(0xa9)](_0x551c11[_0x2594ef(0xcf)]),process['exit'](0x0);}_0x551c11[_0x2594ef(0xaf)](_0x2646d5[_0x2594ef(0x75)],0x191)&&(logger['error'](_0x551c11[_0x2594ef(0x94)]),await _0x551c11['ENbiM'](sendInstrumentationEvent,_0x39c76a,_0x551c11[_0x2594ef(0x87)],messageTypes[_0x2594ef(0xa6)],_0x551c11['TOBJi'],null,_0x39c76a),process[_0x2594ef(0x86)](0x1)),_0x551c11[_0x2594ef(0x8a)](_0x2646d5[_0x2594ef(0x75)],0x190)&&(logger[_0x2594ef(0x8e)](JSON[_0x2594ef(0x74)](_0x2646d5[_0x2594ef(0x7d)])['message']),await _0x551c11[_0x2594ef(0xa2)](sendInstrumentationEvent,_0x39c76a,_0x551c11[_0x2594ef(0x87)],messageTypes['ERROR'],_0x551c11[_0x2594ef(0xbb)],null,_0x39c76a),process[_0x2594ef(0x86)](0x1)),logger[_0x2594ef(0x8e)](_0x2594ef(0x88)+JSON[_0x2594ef(0x98)](_0x2646d5)),await _0x551c11['OGSFN'](sendInstrumentationEvent,_0x39c76a,_0x551c11[_0x2594ef(0x87)],messageTypes[_0x2594ef(0xa6)],_0x551c11[_0x2594ef(0xa8)],_0x2646d5,_0x39c76a),process['exit'](0x1);}catch(_0x28ed16){const _0x2da389=_0x2594ef(0xc9)+_0x28ed16+'\x20\x0a'+JSON[_0x2594ef(0x98)](_0x28ed16[_0x2594ef(0xbc)])+'\x20';logger['error'](_0x2da389),process[_0x2594ef(0x86)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x12e7bc=a22_0x18b6;(function(_0x52d275,_0x2ae382){const _0x571888=a22_0x18b6,_0x65d4d3=_0x52d275();while(!![]){try{const _0x1fd2e3=parseInt(_0x571888(0x12f))/0x1+parseInt(_0x571888(0x138))/0x2+parseInt(_0x571888(0xe8))/0x3+-parseInt(_0x571888(0xff))/0x4*(-parseInt(_0x571888(0x123))/0x5)+parseInt(_0x571888(0x106))/0x6+parseInt(_0x571888(0xde))/0x7+-parseInt(_0x571888(0xe6))/0x8*(parseInt(_0x571888(0xf1))/0x9);if(_0x1fd2e3===_0x2ae382)break;else _0x65d4d3['push'](_0x65d4d3['shift']());}catch(_0x5bc905){_0x65d4d3['push'](_0x65d4d3['shift']());}}}(a22_0x32b9,0x402c9),require(a22_0x12e7bc(0xe2))['config']());let gridURL=a22_0x12e7bc(0x12c),bsApiUrl=a22_0x12e7bc(0xed),agApiUrl=a22_0x12e7bc(0x137);const _env=(process[a22_0x12e7bc(0x133)][a22_0x12e7bc(0x107)]||a22_0x12e7bc(0xf9))[a22_0x12e7bc(0x127)]();if(_env===a22_0x12e7bc(0xf5)||_env===a22_0x12e7bc(0x13e))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x12e7bc(0xd2),agApiUrl=a22_0x12e7bc(0x12d);else(_env===a22_0x12e7bc(0x105)||_env==='pre-prod')&&(gridURL=a22_0x12e7bc(0xdc),bsApiUrl='api-preprod.bsstag.com',agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x12e7bc(0x129)]=process[a22_0x12e7bc(0x133)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x12e7bc(0xd8)]=process[a22_0x12e7bc(0x133)]['BS_API_URL']||bsApiUrl,exports[a22_0x12e7bc(0xf4)]=process['env'][a22_0x12e7bc(0xf4)]||agApiUrl,exports[a22_0x12e7bc(0x108)]=a22_0x12e7bc(0x109)+this['AG_API_URL']+a22_0x12e7bc(0xe9),exports[a22_0x12e7bc(0xe5)]=a22_0x12e7bc(0x100),exports['IAM_USER_NAME']=a22_0x12e7bc(0x12b),exports[a22_0x12e7bc(0x135)]=a22_0x12e7bc(0x112),exports['AWS']='aws',exports[a22_0x12e7bc(0xfc)]=a22_0x12e7bc(0xef),exports[a22_0x12e7bc(0x11c)]=a22_0x12e7bc(0x11f),exports[a22_0x12e7bc(0x121)]=a22_0x12e7bc(0xfa),exports['TURBOSCALE_DEPLOYMENT']=a22_0x12e7bc(0x13b),exports[a22_0x12e7bc(0x124)]='azure',exports[a22_0x12e7bc(0xd7)]=a22_0x12e7bc(0x13c),exports[a22_0x12e7bc(0xf3)]=[this[a22_0x12e7bc(0xd4)],this['AZURE'],this[a22_0x12e7bc(0xd7)]];const a22_0x35681b={};a22_0x35681b[a22_0x12e7bc(0xf0)]='browserstack:managedBy',a22_0x35681b[a22_0x12e7bc(0xdb)]=a22_0x12e7bc(0x114);const a22_0x3addb={};a22_0x3addb['Key']=a22_0x12e7bc(0xd3),a22_0x3addb['Value']=a22_0x12e7bc(0x10f);const common_hst_tags_list=[a22_0x35681b,a22_0x3addb];if(process[a22_0x12e7bc(0x133)][a22_0x12e7bc(0x119)]){const parsedTags=process['env'][a22_0x12e7bc(0x119)][a22_0x12e7bc(0x12a)](',');parsedTags[a22_0x12e7bc(0x111)](_0x579a9f=>{const _0x47b8e7=a22_0x12e7bc,_0x15e117=_0x579a9f[_0x47b8e7(0x12a)](':'),_0x569d8b={};_0x569d8b[_0x47b8e7(0xf0)]=_0x15e117[0x0],_0x569d8b[_0x47b8e7(0xdb)]=_0x15e117[0x1],common_hst_tags_list[_0x47b8e7(0xec)](_0x569d8b);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x389cd2={};function a22_0x18b6(_0x503bce,_0x3854e6){const _0x32b998=a22_0x32b9();return a22_0x18b6=function(_0x18b699,_0xabec6f){_0x18b699=_0x18b699-0xd0;let _0x534a8e=_0x32b998[_0x18b699];return _0x534a8e;},a22_0x18b6(_0x503bce,_0x3854e6);}a22_0x389cd2['browserstack:managedBy']='BrowserStack',a22_0x389cd2[a22_0x12e7bc(0xd3)]=a22_0x12e7bc(0x10f),exports[a22_0x12e7bc(0x118)]=a22_0x389cd2,exports[a22_0x12e7bc(0x12e)]=[this[a22_0x12e7bc(0xd4)]];const a22_0x37a8a8={};a22_0x37a8a8[a22_0x12e7bc(0x139)]=a22_0x12e7bc(0x126),a22_0x37a8a8[a22_0x12e7bc(0xe1)]=a22_0x12e7bc(0xf8),a22_0x37a8a8[a22_0x12e7bc(0xfe)]=a22_0x12e7bc(0x102),a22_0x37a8a8[a22_0x12e7bc(0x130)]=a22_0x12e7bc(0x10c),a22_0x37a8a8['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x12e7bc(0xea)]=a22_0x37a8a8,exports[a22_0x12e7bc(0x122)]={},exports[a22_0x12e7bc(0x101)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';function a22_0x32b9(){const _0x52e2c1=['996384JczZSD','LOG','grid-profile','browserstack-turboscale-grid','gcp','CLUSTER','stag','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','api-devhst.bsstag.com','browserstack:service','AWS','list','messageTypes','GCP','BS_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','pre_check','Value','grid-preprod.bsstag.com','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','1427629jFYcyK','info','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','RESOURCES','dotenv','create','HELP_FOOTER_MESSAGE','CP_CONFIG_FILE','15952072MBhpeb','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','1339434GwCPkj','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','WS_EVENTS','init','push','api.browserstack.com','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BSTACK-ATS-CLUSTER','Key','9eIVADs','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','ALL_SUPPORTED_CLOUD_PROVIDERS','AG_API_URL','staging','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','resourceInfo','prod','BSTACK-ATS-CLUSTER-HUB-HA','ERROR','CLUSTER_DEP_STACK_NAME','CLOUD_PROVIDER','GRID_URL','72ecVBQc','credentials','LINK_MESSAGE','gridUrl','WARNING','aws','preprod','952494uuoBGJ','BROWSERSTACK_ENV','WS_ENDPOINT','wss://','success','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','cliRunStarted','TRIAL_GRID_URL','delete','BrowserStack-Automate-TurboScale','pre-check','forEach','high-scale-grid','root','BrowserStack','DEFAULT_CLUSTER_DETAILS','us-east-1','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','HST_CLUSTER_TAGS','TURBOSCALE_CUSTOM_TAGS','MessageDescription','SUCCESS','CLUSTER_AUTOSCALER_STACK_NAME','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','BSTACK-ATS-CLUSTER-AUTOSCALER','stop','CLUSTER_HUB_HA_STACK_NAME','global_registry','137155jGVZfl','AZURE','unknown','log','toLowerCase','REGION','DASHBOARD_ENDPOINT','split','BrowserStackIAMUser','grid.browserstack.com','grid-api-devhst.bsstag.com','SUPPORTED_CLOUD_PROVIDERS','455742fdGDOs','CLI_RUN_STARTED','high-scale-grid-cluster','start','env','CLI_ARGS_REGEX','DEFAULT_GRID_NAME','NULL','grid-api.browserstack.com'];a22_0x32b9=function(){return _0x52e2c1;};return a22_0x32b9();}const a22_0x5daaaa={};a22_0x5daaaa['root']=a22_0x12e7bc(0x10b)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xeb)]=a22_0x12e7bc(0xf7)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa['configure']=a22_0x12e7bc(0x117)+this['LINK_MESSAGE'],a22_0x5daaaa[a22_0x12e7bc(0xe3)]=a22_0x12e7bc(0xdd)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xd5)]={},a22_0x5daaaa[a22_0x12e7bc(0x10e)]=a22_0x12e7bc(0xee)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa['connect']=a22_0x12e7bc(0xd0)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0x132)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0x120)]=a22_0x12e7bc(0xe7)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xda)]=a22_0x12e7bc(0xf6)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xd5)][a22_0x12e7bc(0x113)]=a22_0x12e7bc(0xe0)+this[a22_0x12e7bc(0x101)],a22_0x5daaaa[a22_0x12e7bc(0xd5)]['grid']=a22_0x12e7bc(0x11e)+this['LINK_MESSAGE'],a22_0x5daaaa[a22_0x12e7bc(0xd5)]['gridProfile']=a22_0x12e7bc(0xd9)+this[a22_0x12e7bc(0x101)],exports['HELP_HEADER_MESSAGE']=a22_0x5daaaa,exports[a22_0x12e7bc(0xe4)]=a22_0x12e7bc(0xd1);const a22_0x34eff3={};a22_0x34eff3[a22_0x12e7bc(0x11b)]=a22_0x12e7bc(0x10a),a22_0x34eff3[a22_0x12e7bc(0xfb)]='error',a22_0x34eff3['INFO']=a22_0x12e7bc(0xdf),a22_0x34eff3[a22_0x12e7bc(0x103)]='warning',a22_0x34eff3['UNKNOWN']=a22_0x12e7bc(0x125),a22_0x34eff3[a22_0x12e7bc(0x136)]=null,exports[a22_0x12e7bc(0xd6)]=a22_0x34eff3,exports[a22_0x12e7bc(0x134)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0xa2589f={};a22_0xa2589f[a22_0x12e7bc(0x13a)]=a22_0x12e7bc(0xf2);const a22_0x527278={};a22_0x527278[a22_0x12e7bc(0x110)]=a22_0xa2589f,exports[a22_0x12e7bc(0x11a)]=a22_0x527278,exports[a22_0x12e7bc(0x10d)]=a22_0x12e7bc(0x11d);const a22_0x40def5={};a22_0x40def5[a22_0x12e7bc(0x13d)]=a22_0x12e7bc(0x131),a22_0x40def5[a22_0x12e7bc(0xfd)]=a22_0x12e7bc(0x104),a22_0x40def5[a22_0x12e7bc(0x128)]=a22_0x12e7bc(0x116),exports[a22_0x12e7bc(0x115)]=a22_0x40def5;
1
+ const a22_0x15ecde=a22_0x4269;(function(_0x4c83cf,_0x5d7e1b){const _0x26ed47=a22_0x4269,_0x280a2d=_0x4c83cf();while(!![]){try{const _0x37e8ab=parseInt(_0x26ed47(0x105))/0x1+-parseInt(_0x26ed47(0xe4))/0x2+-parseInt(_0x26ed47(0xbe))/0x3*(-parseInt(_0x26ed47(0x113))/0x4)+-parseInt(_0x26ed47(0x10c))/0x5+-parseInt(_0x26ed47(0xb9))/0x6*(parseInt(_0x26ed47(0x115))/0x7)+parseInt(_0x26ed47(0x116))/0x8*(parseInt(_0x26ed47(0xdc))/0x9)+parseInt(_0x26ed47(0xe8))/0xa;if(_0x37e8ab===_0x5d7e1b)break;else _0x280a2d['push'](_0x280a2d['shift']());}catch(_0xecb980){_0x280a2d['push'](_0x280a2d['shift']());}}}(a22_0x1712,0x3264e),require(a22_0x15ecde(0xc5))['config']());function a22_0x4269(_0x175031,_0x1caf4f){const _0x171232=a22_0x1712();return a22_0x4269=function(_0x4269a1,_0x38eca1){_0x4269a1=_0x4269a1-0xb7;let _0x1166a4=_0x171232[_0x4269a1];return _0x1166a4;},a22_0x4269(_0x175031,_0x1caf4f);}let gridURL=a22_0x15ecde(0x10e),bsApiUrl=a22_0x15ecde(0x112),agApiUrl=a22_0x15ecde(0x104);const _env=(process[a22_0x15ecde(0xc8)]['BROWSERSTACK_ENV']||a22_0x15ecde(0xf3))['toLowerCase']();if(_env===a22_0x15ecde(0xbb)||_env===a22_0x15ecde(0xc0))gridURL=a22_0x15ecde(0xd8),bsApiUrl=a22_0x15ecde(0xf1),agApiUrl=a22_0x15ecde(0x10d);else(_env===a22_0x15ecde(0xe3)||_env==='pre-prod')&&(gridURL=a22_0x15ecde(0xc7),bsApiUrl=a22_0x15ecde(0xe1),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process['env'][a22_0x15ecde(0xba)]||gridURL,exports[a22_0x15ecde(0x103)]=process[a22_0x15ecde(0xc8)][a22_0x15ecde(0x103)]||bsApiUrl,exports[a22_0x15ecde(0xc4)]=process[a22_0x15ecde(0xc8)][a22_0x15ecde(0xc4)]||agApiUrl,exports[a22_0x15ecde(0x11c)]=a22_0x15ecde(0xd3)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports['CP_CONFIG_FILE']=a22_0x15ecde(0x110),exports['IAM_USER_NAME']=a22_0x15ecde(0xfa),exports[a22_0x15ecde(0xd9)]=a22_0x15ecde(0xf5),exports[a22_0x15ecde(0xe7)]=a22_0x15ecde(0x11b),exports[a22_0x15ecde(0xda)]='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x15ecde(0xca),exports[a22_0x15ecde(0xf6)]=a22_0x15ecde(0xea),exports[a22_0x15ecde(0x109)]='browserstack-turboscale-grid',exports['AZURE']=a22_0x15ecde(0xec),exports['GCP']=a22_0x15ecde(0xef),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x15ecde(0x100)],this['GCP']];const a22_0x5af7a5={};a22_0x5af7a5[a22_0x15ecde(0xf4)]=a22_0x15ecde(0xfe),a22_0x5af7a5[a22_0x15ecde(0xee)]=a22_0x15ecde(0xeb);const a22_0x541777={};a22_0x541777[a22_0x15ecde(0xf4)]=a22_0x15ecde(0xcd),a22_0x541777[a22_0x15ecde(0xee)]=a22_0x15ecde(0xb7);const common_hst_tags_list=[a22_0x5af7a5,a22_0x541777];if(process['env'][a22_0x15ecde(0xcb)]){const parsedTags=process[a22_0x15ecde(0xc8)][a22_0x15ecde(0xcb)][a22_0x15ecde(0xc9)](',');parsedTags[a22_0x15ecde(0xcf)](_0x3bb7f0=>{const _0x1f2b68=a22_0x15ecde,_0x540451=_0x3bb7f0[_0x1f2b68(0xc9)](':'),_0x2c986d={};_0x2c986d[_0x1f2b68(0xf4)]=_0x540451[0x0],_0x2c986d['Value']=_0x540451[0x1],common_hst_tags_list['push'](_0x2c986d);});}exports[a22_0x15ecde(0xdf)]=common_hst_tags_list;const a22_0x145e26={};a22_0x145e26[a22_0x15ecde(0xfe)]='BrowserStack',a22_0x145e26[a22_0x15ecde(0xcd)]=a22_0x15ecde(0xb7),exports[a22_0x15ecde(0x117)]=a22_0x145e26,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x15ecde(0xe7)]];const a22_0x35cd99={};a22_0x35cd99[a22_0x15ecde(0xcc)]=a22_0x15ecde(0xe0),a22_0x35cd99[a22_0x15ecde(0xd0)]=a22_0x15ecde(0xf9),a22_0x35cd99[a22_0x15ecde(0xc6)]='gridUrl',a22_0x35cd99['CLI_RUN_STARTED']=a22_0x15ecde(0xce),a22_0x35cd99[a22_0x15ecde(0x119)]=a22_0x15ecde(0xdd),exports[a22_0x15ecde(0xed)]=a22_0x35cd99,exports[a22_0x15ecde(0xb8)]={},exports[a22_0x15ecde(0x10a)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x28ab22={};a22_0x28ab22[a22_0x15ecde(0x10b)]=a22_0x15ecde(0x101)+this[a22_0x15ecde(0x10a)],a22_0x28ab22[a22_0x15ecde(0xde)]=a22_0x15ecde(0xd6)+this['LINK_MESSAGE'],a22_0x28ab22[a22_0x15ecde(0xdb)]=a22_0x15ecde(0x11e)+this['LINK_MESSAGE'],a22_0x28ab22['create']=a22_0x15ecde(0x114)+this[a22_0x15ecde(0x10a)],a22_0x28ab22[a22_0x15ecde(0xe9)]={},a22_0x28ab22['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x15ecde(0x10a)],a22_0x28ab22['connect']=a22_0x15ecde(0x11a)+this[a22_0x15ecde(0x10a)],a22_0x28ab22[a22_0x15ecde(0x11d)]=a22_0x15ecde(0xbd)+this[a22_0x15ecde(0x10a)],a22_0x28ab22[a22_0x15ecde(0xbf)]=a22_0x15ecde(0xe2)+this[a22_0x15ecde(0x10a)],a22_0x28ab22[a22_0x15ecde(0x108)]=a22_0x15ecde(0xc3)+this[a22_0x15ecde(0x10a)],a22_0x28ab22[a22_0x15ecde(0xe9)]['root']=a22_0x15ecde(0xfd)+this[a22_0x15ecde(0x10a)],a22_0x28ab22[a22_0x15ecde(0xe9)]['grid']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x15ecde(0x10a)],a22_0x28ab22[a22_0x15ecde(0xe9)]['gridProfile']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x15ecde(0x10a)],exports['HELP_HEADER_MESSAGE']=a22_0x28ab22,exports[a22_0x15ecde(0xfc)]=a22_0x15ecde(0x10f);const a22_0x5b10c8={};function a22_0x1712(){const _0x2f90d2=['azure','WS_EVENTS','Value','gcp','info','api-devhst.bsstag.com','high-scale-grid-cluster','prod','Key','high-scale-grid','CLUSTER_HUB_HA_STACK_NAME','pre-check','us-east-1','resourceInfo','BrowserStackIAMUser','UNKNOWN','HELP_FOOTER_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','browserstack:managedBy','ERROR','AZURE','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','CLOUD_PROVIDER','BS_API_URL','grid-api.browserstack.com','250332gxvnBr','[REDACTED]','messageTypes','pre_check','TURBOSCALE_DEPLOYMENT','LINK_MESSAGE','root','326055rUtntv','grid-api-devhst.bsstag.com','grid.browserstack.com','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','credentials','CLUSTER','api.browserstack.com','5788ZXLoWe','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','7UZeXeo','77304kIAeQr','HST_CLUSTER_TAGS','unknown','CLI_RUN_FINISHED','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','aws','WS_ENDPOINT','start','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BrowserStack-Automate-TurboScale','global_registry','1050816XMDixc','DASHBOARD_ENDPOINT','staging','DEFAULT_CLUSTER_DETAILS','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','258ZrXWNy','stop','stag','warning','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','AG_API_URL','dotenv','GRID_URL','grid-preprod.bsstag.com','env','split','BSTACK-ATS-CLUSTER-AUTOSCALER','TURBOSCALE_CUSTOM_TAGS','LOG','browserstack:service','cliRunStarted','forEach','RESOURCES','REGION','error','wss://','INFO','WARNING','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','success','grid-devhst.bsstag.com','DEFAULT_GRID_NAME','CLUSTER_DEP_STACK_NAME','configure','333NFWtGI','cliRunFinished','init','COMMON_HST_TAGS','log','api-preprod.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','preprod','668534CAcBoZ','grid-profile','CLI_ARGS_REGEX','AWS','487230jNQcnp','list','BSTACK-ATS-CLUSTER-HUB-HA','BrowserStack'];a22_0x1712=function(){return _0x2f90d2;};return a22_0x1712();}a22_0x5b10c8['SUCCESS']=a22_0x15ecde(0xd7),a22_0x5b10c8[a22_0x15ecde(0xff)]=a22_0x15ecde(0xd2),a22_0x5b10c8[a22_0x15ecde(0xd4)]=a22_0x15ecde(0xf0),a22_0x5b10c8[a22_0x15ecde(0xd5)]=a22_0x15ecde(0xc1),a22_0x5b10c8[a22_0x15ecde(0xfb)]=a22_0x15ecde(0x118),a22_0x5b10c8['NULL']=null,exports[a22_0x15ecde(0x107)]=a22_0x5b10c8,exports[a22_0x15ecde(0xe6)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x15ecde(0x106);const a22_0x1cb9db={};a22_0x1cb9db[a22_0x15ecde(0xe5)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x1d3c77={};a22_0x1d3c77[a22_0x15ecde(0xf7)]=a22_0x1cb9db,exports['MessageDescription']=a22_0x1d3c77,exports['TRIAL_GRID_URL']=a22_0x15ecde(0xc2);const a22_0x22e503={};a22_0x22e503[a22_0x15ecde(0x111)]=a22_0x15ecde(0xf2),a22_0x22e503[a22_0x15ecde(0x102)]=a22_0x15ecde(0x11b),a22_0x22e503[a22_0x15ecde(0xd1)]=a22_0x15ecde(0xf8),exports[a22_0x15ecde(0xbc)]=a22_0x22e503;
@@ -1 +1 @@
1
- const a23_0xf69b32=a23_0x28cf;function a23_0x4203(){const _0x543a2b=['colorize','548331RAcxnf','File','printf','existsSync','log','timestamp','console.info','combine','61658MaWEJx','logger','5605984oqhPDm','mkdirSync','315lMSIHb','transports','path','join','winston','Console','format','YYYY-MM-DD\x20HH:mm:ss','debug','name','18366cBDsEj','\x20-\x20','level','message','5516161tImqcA','fileLogger','usage.log','50780csEGLu','63thcELM','createLogger','2259pGFvNo','726224uTZmFu'];a23_0x4203=function(){return _0x543a2b;};return a23_0x4203();}(function(_0x1d6a98,_0xddd97b){const _0x5d2d35=a23_0x28cf,_0x41b3db=_0x1d6a98();while(!![]){try{const _0x4b8e34=parseInt(_0x5d2d35(0x1f1))/0x1+-parseInt(_0x5d2d35(0x1f9))/0x2*(parseInt(_0x5d2d35(0x1ec))/0x3)+parseInt(_0x5d2d35(0x1ef))/0x4+parseInt(_0x5d2d35(0x1fd))/0x5*(parseInt(_0x5d2d35(0x207))/0x6)+parseInt(_0x5d2d35(0x1e8))/0x7+parseInt(_0x5d2d35(0x1fb))/0x8+-parseInt(_0x5d2d35(0x1ee))/0x9*(parseInt(_0x5d2d35(0x1eb))/0xa);if(_0x4b8e34===_0xddd97b)break;else _0x41b3db['push'](_0x41b3db['shift']());}catch(_0x713f75){_0x41b3db['push'](_0x41b3db['shift']());}}}(a23_0x4203,0x7782a));const winston=require(a23_0xf69b32(0x201)),fs=require('fs'),path=require(a23_0xf69b32(0x1ff)),logDir=a23_0xf69b32(0x1f5);function a23_0x28cf(_0x2e6c6d,_0x15ff23){const _0x420347=a23_0x4203();return a23_0x28cf=function(_0x28cfd6,_0x4f9d53){_0x28cfd6=_0x28cfd6-0x1e5;let _0x9a0986=_0x420347[_0x28cfd6];return _0x9a0986;},a23_0x28cf(_0x2e6c6d,_0x15ff23);}!fs[a23_0xf69b32(0x1f4)](logDir)&&fs[a23_0xf69b32(0x1fc)](logDir);const a23_0x1d33bf={};a23_0x1d33bf[a23_0xf69b32(0x203)]=a23_0xf69b32(0x204);const a23_0x3ac95f={};a23_0x3ac95f[a23_0xf69b32(0x1e6)]=!![];const a23_0x20485a={};a23_0x20485a[a23_0xf69b32(0x206)]=a23_0xf69b32(0x1f7),exports[a23_0xf69b32(0x1fa)]=new winston[(a23_0xf69b32(0x1ed))]({'format':winston['format'][a23_0xf69b32(0x1f8)](winston['format']['timestamp'](a23_0x1d33bf),winston[a23_0xf69b32(0x203)][a23_0xf69b32(0x1f0)](a23_0x3ac95f),winston[a23_0xf69b32(0x203)][a23_0xf69b32(0x1f3)](_0x3a4fa0=>_0x3a4fa0[a23_0xf69b32(0x1f6)]+a23_0xf69b32(0x1e5)+_0x3a4fa0[a23_0xf69b32(0x1e6)]+':\x20'+_0x3a4fa0[a23_0xf69b32(0x1e7)])),'transports':[new winston['transports'][(a23_0xf69b32(0x202))](a23_0x20485a),new winston[(a23_0xf69b32(0x1fe))]['File']({'filename':path['join'](logDir,'events.log'),'level':a23_0xf69b32(0x205)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0xf69b32(0x1f2))]({'filename':path[a23_0xf69b32(0x200)](logDir,a23_0xf69b32(0x1ea)),'level':'debug'})]};exports[a23_0xf69b32(0x1e9)]=new winston[(a23_0xf69b32(0x1ed))](winstonFileLoggerParams);
1
+ const a23_0x1d0b96=a23_0x1444;function a23_0x31a6(){const _0x38bab9=['path','10164dMuFJa','level','log','1600456rrGfiQ','9717072fPiAmV','Console','combine','events.log','YYYY-MM-DD\x20HH:mm:ss','createLogger','debug','14UJseGO','format','usage.log','join','colorize','File','transports','101640MGSQYz','message','printf','winston','name','18CPwEsP','1775ukbkPU','timestamp','42754943YmMnvA','mkdirSync','70995ELmAWu','console.info','existsSync','132lzvhqe','1687044MhjZmc'];a23_0x31a6=function(){return _0x38bab9;};return a23_0x31a6();}(function(_0x41479c,_0x23df87){const _0x3d7bfe=a23_0x1444,_0x29ca53=_0x41479c();while(!![]){try{const _0x3b56b6=-parseInt(_0x3d7bfe(0x123))/0x1+-parseInt(_0x3d7bfe(0x122))/0x2*(-parseInt(_0x3d7bfe(0x11f))/0x3)+-parseInt(_0x3d7bfe(0x125))/0x4*(parseInt(_0x3d7bfe(0x11b))/0x5)+-parseInt(_0x3d7bfe(0x129))/0x6+parseInt(_0x3d7bfe(0x130))/0x7*(-parseInt(_0x3d7bfe(0x128))/0x8)+parseInt(_0x3d7bfe(0x11a))/0x9*(parseInt(_0x3d7bfe(0x115))/0xa)+parseInt(_0x3d7bfe(0x11d))/0xb;if(_0x3b56b6===_0x23df87)break;else _0x29ca53['push'](_0x29ca53['shift']());}catch(_0x2aa040){_0x29ca53['push'](_0x29ca53['shift']());}}}(a23_0x31a6,0xd2092));const winston=require(a23_0x1d0b96(0x118)),fs=require('fs'),path=require(a23_0x1d0b96(0x124)),logDir=a23_0x1d0b96(0x127);!fs[a23_0x1d0b96(0x121)](logDir)&&fs[a23_0x1d0b96(0x11e)](logDir);const a23_0x4eff33={};a23_0x4eff33[a23_0x1d0b96(0x131)]=a23_0x1d0b96(0x12d);const a23_0x599f95={};a23_0x599f95['level']=!![];const a23_0x5bdb84={};a23_0x5bdb84[a23_0x1d0b96(0x119)]=a23_0x1d0b96(0x120),exports['logger']=new winston[(a23_0x1d0b96(0x12e))]({'format':winston[a23_0x1d0b96(0x131)][a23_0x1d0b96(0x12b)](winston[a23_0x1d0b96(0x131)][a23_0x1d0b96(0x11c)](a23_0x4eff33),winston[a23_0x1d0b96(0x131)][a23_0x1d0b96(0x112)](a23_0x599f95),winston['format'][a23_0x1d0b96(0x117)](_0x1c2000=>_0x1c2000[a23_0x1d0b96(0x11c)]+'\x20-\x20'+_0x1c2000[a23_0x1d0b96(0x126)]+':\x20'+_0x1c2000[a23_0x1d0b96(0x116)])),'transports':[new winston[(a23_0x1d0b96(0x114))][(a23_0x1d0b96(0x12a))](a23_0x5bdb84),new winston['transports']['File']({'filename':path[a23_0x1d0b96(0x111)](logDir,a23_0x1d0b96(0x12c)),'level':a23_0x1d0b96(0x12f)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x1d0b96(0x114))][(a23_0x1d0b96(0x113))]({'filename':path[a23_0x1d0b96(0x111)](logDir,a23_0x1d0b96(0x132)),'level':a23_0x1d0b96(0x12f)})]};function a23_0x1444(_0x18c76c,_0x1ba03d){const _0x31a6b6=a23_0x31a6();return a23_0x1444=function(_0x14449d,_0x134b90){_0x14449d=_0x14449d-0x111;let _0x1412fb=_0x31a6b6[_0x14449d];return _0x1412fb;},a23_0x1444(_0x18c76c,_0x1ba03d);}exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x485305=a24_0x2458;(function(_0x3df851,_0x290ab4){const _0x1b553d=a24_0x2458,_0x3322e3=_0x3df851();while(!![]){try{const _0x228e11=-parseInt(_0x1b553d(0x178))/0x1+-parseInt(_0x1b553d(0x17f))/0x2*(parseInt(_0x1b553d(0x189))/0x3)+parseInt(_0x1b553d(0x175))/0x4*(parseInt(_0x1b553d(0x17b))/0x5)+-parseInt(_0x1b553d(0x180))/0x6+parseInt(_0x1b553d(0x186))/0x7+parseInt(_0x1b553d(0x179))/0x8*(parseInt(_0x1b553d(0x187))/0x9)+-parseInt(_0x1b553d(0x17d))/0xa;if(_0x228e11===_0x290ab4)break;else _0x3322e3['push'](_0x3322e3['shift']());}catch(_0xdd58ad){_0x3322e3['push'](_0x3322e3['shift']());}}}(a24_0x5ed6,0x28348));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x485305(0x18a)][a24_0x485305(0x17a)]=0x1;function a24_0x2458(_0x21d4e9,_0x57e2ac){const _0x5ed6b7=a24_0x5ed6();return a24_0x2458=function(_0x245812,_0x1b179a){_0x245812=_0x245812-0x175;let _0x1898ed=_0x5ed6b7[_0x245812];return _0x1898ed;},a24_0x2458(_0x21d4e9,_0x57e2ac);}function run(_0x2f8b38){const _0x167472=a24_0x485305,_0x541581={};_0x541581[_0x167472(0x176)]=_0x167472(0x177),_0x541581[_0x167472(0x184)]='help';const _0x3bdce4=_0x541581;_0x2f8b38[_0x167472(0x17c)](HELP_HEADER_MESSAGE[_0x167472(0x183)])[_0x167472(0x185)](_0x3bdce4[_0x167472(0x176)])[_0x167472(0x17e)]()[_0x167472(0x182)](_0x3bdce4['kYcPv'])[_0x167472(0x181)](HELP_FOOTER_MESSAGE);}function a24_0x5ed6(){const _0xe805ac=['zcCvV','commands','22544rzqwmE','1792888HNYdqO','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','535420BmbmPd','usage','622870rFliKB','demandCommand','14TYHKlv','616188MsGSmv','epilogue','help','root','kYcPv','commandDir','991417OrWycP','9boVJZP','exports','51693KSCkAO','env','4RQkpLr'];a24_0x5ed6=function(){return _0xe805ac;};return a24_0x5ed6();}module[a24_0x485305(0x188)]=run;
2
+ 'use strict';function a24_0x5c47(){const _0x3b30ce=['78DOMpFM','1245544uifVKs','810pUUrAk','usage','ffrWo','8dZAbob','commands','10908070BBxLYU','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','879876RNOizM','lOStS','267085lAyEtQ','487323yGXtnb','env','63Tvloiv','root','9628lvtJMj','34110901IvYLup','epilogue','commandDir','exports'];a24_0x5c47=function(){return _0x3b30ce;};return a24_0x5c47();}const a24_0x47f390=a24_0x4dcf;function a24_0x4dcf(_0x3cd317,_0x8cb730){const _0x5c4782=a24_0x5c47();return a24_0x4dcf=function(_0x4dcfd5,_0x2a624b){_0x4dcfd5=_0x4dcfd5-0x167;let _0x496944=_0x5c4782[_0x4dcfd5];return _0x496944;},a24_0x4dcf(_0x3cd317,_0x8cb730);}(function(_0x455587,_0x13aa7b){const _0x5297d5=a24_0x4dcf,_0x40d606=_0x455587();while(!![]){try{const _0x47270e=-parseInt(_0x5297d5(0x178))/0x1+parseInt(_0x5297d5(0x174))/0x2*(parseInt(_0x5297d5(0x17b))/0x3)+parseInt(_0x5297d5(0x16a))/0x4*(-parseInt(_0x5297d5(0x171))/0x5)+parseInt(_0x5297d5(0x16f))/0x6*(parseInt(_0x5297d5(0x17a))/0x7)+parseInt(_0x5297d5(0x170))/0x8*(-parseInt(_0x5297d5(0x168))/0x9)+-parseInt(_0x5297d5(0x176))/0xa+parseInt(_0x5297d5(0x16b))/0xb;if(_0x47270e===_0x13aa7b)break;else _0x40d606['push'](_0x40d606['shift']());}catch(_0x1fcf2e){_0x40d606['push'](_0x40d606['shift']());}}}(a24_0x5c47,0xc268e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x47f390(0x167)][a24_0x47f390(0x177)]=0x1;function run(_0x3e16bd){const _0x185a6b=a24_0x47f390,_0x54eb93={};_0x54eb93[_0x185a6b(0x173)]=_0x185a6b(0x175),_0x54eb93[_0x185a6b(0x179)]='help';const _0x17146f=_0x54eb93;_0x3e16bd[_0x185a6b(0x172)](HELP_HEADER_MESSAGE[_0x185a6b(0x169)])[_0x185a6b(0x16d)](_0x17146f[_0x185a6b(0x173)])['demandCommand']()['help'](_0x17146f[_0x185a6b(0x179)])[_0x185a6b(0x16c)](HELP_FOOTER_MESSAGE);}module[a24_0x47f390(0x16e)]=run;