browserstack-node-sdk 1.56.3 → 1.57.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 (201) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +5 -4
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/caCertHelper.js +1 -1
  156. package/src/helpers/capsMapping.js +1 -1
  157. package/src/helpers/central-scanner/constants.js +1 -1
  158. package/src/helpers/central-scanner/helpers.js +1 -1
  159. package/src/helpers/classLogger.js +1 -1
  160. package/src/helpers/driverInitErrorReporter.js +1 -1
  161. package/src/helpers/globals.js +1 -1
  162. package/src/helpers/helper.js +1 -1
  163. package/src/helpers/logger.js +1 -1
  164. package/src/helpers/metadata.js +1 -1
  165. package/src/helpers/patchHelper.js +1 -1
  166. package/src/helpers/patchHelpers.js +1 -1
  167. package/src/helpers/percy/Percy.js +1 -1
  168. package/src/helpers/percy/PercyBinary.js +1 -1
  169. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  170. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  171. package/src/helpers/percy/PercySDK.js +1 -1
  172. package/src/helpers/percy/index.js +1 -1
  173. package/src/helpers/percy/utils.js +1 -1
  174. package/src/helpers/performance/constants.js +1 -1
  175. package/src/helpers/performance/performance-tester.js +1 -1
  176. package/src/helpers/playwright-helper.js +1 -1
  177. package/src/helpers/processHelper.js +1 -1
  178. package/src/helpers/puppeteer-helper.js +1 -1
  179. package/src/helpers/request-spy.js +1 -1
  180. package/src/helpers/setKeepAlive.js +1 -1
  181. package/src/helpers/stackFrameUtils.js +1 -1
  182. package/src/helpers/test-observability/constants.js +1 -1
  183. package/src/helpers/test-observability/error-handler.js +1 -1
  184. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  185. package/src/helpers/test-observability/sessionHandler.js +1 -1
  186. package/src/helpers/test-observability/utils.js +1 -1
  187. package/src/helpers/test-orchestration/constants.js +1 -1
  188. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  189. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  190. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  191. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  192. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  193. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  194. package/src/helpers/testhub/constants.js +1 -1
  195. package/src/helpers/testhub/testhubHandler.js +1 -1
  196. package/src/helpers/testhub/utils.js +1 -1
  197. package/src/helpers/timeoutPromise.js +1 -1
  198. package/src/helpers/utilities.js +1 -1
  199. package/src/helpers/w3cMapping.js +1 -1
  200. package/src/hubAllocationMethods.js +1 -1
  201. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x428957=a15_0x38a9;(function(_0x2d8e36,_0x5059bb){const _0x28f20d=a15_0x38a9,_0x40d0b6=_0x2d8e36();while(!![]){try{const _0x3bfa6e=-parseInt(_0x28f20d(0xe9))/0x1+parseInt(_0x28f20d(0x100))/0x2+-parseInt(_0x28f20d(0x127))/0x3*(parseInt(_0x28f20d(0x11c))/0x4)+parseInt(_0x28f20d(0x114))/0x5*(-parseInt(_0x28f20d(0xf6))/0x6)+parseInt(_0x28f20d(0xe3))/0x7*(-parseInt(_0x28f20d(0xf3))/0x8)+-parseInt(_0x28f20d(0x124))/0x9+-parseInt(_0x28f20d(0x111))/0xa*(-parseInt(_0x28f20d(0xe6))/0xb);if(_0x3bfa6e===_0x5059bb)break;else _0x40d0b6['push'](_0x40d0b6['shift']());}catch(_0x48c016){_0x40d0b6['push'](_0x40d0b6['shift']());}}}(a15_0x5c4b,0xcf9ea));function a15_0x5c4b(){const _0x1222f4=['\x0aFound\x20the\x20following\x20grids:\x0a','cluster-name','stack','faBJK','bstackUsername','eurJH','DQgoI','help','Failed\x20to\x20list\x20resources!\x20Error:\x20','Browserstack','gVbMQ','190HHYnEk','VBZbs','clusterName','5931350XDltbW','INFO','unauthorised','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','joSZj','list-grids-called','boolean','../../utils/instrumentationUtils','59024hdvjPX','description','status','NUklL','error','Amqje','grid','../../config/constants','12683916ZRhfeC','password','uuid','192lfyNQZ','list','options','forEach','name','gNCYc','got','wgUPb','argv','bstackAccesskey','PEkyI','builder','ERROR','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','init-not-called','8084839tjEghw','GET','AXHwi','3651043kxbupv','log','queued','1134380gPntnI','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','table','/packages/cli/get-all-grids','zpjRw','parse','feEfh','server-error','username','all-grids','8Jajycj','ZPJml','ePhkd','6ecHXdT','exit','rFvxA','running','push','statusCode','epilogue','../../utils/utilityMethods','grid-id','fqLOC','746796GLVsxb','readFileSync','qXXWI','YRjRJ','stringify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a15_0x5c4b=function(){return _0x1222f4;};return a15_0x5c4b();}function a15_0x38a9(_0x20672b,_0x132749){const _0x5c4bec=a15_0x5c4b();return a15_0x38a9=function(_0x38a9d9,_0x105512){_0x38a9d9=_0x38a9d9-0xdd;let _0xc86290=_0x5c4bec[_0x38a9d9];return _0xc86290;},a15_0x38a9(_0x20672b,_0x132749);}const fs=require('fs'),got=require(a15_0x428957(0x12d)),{table}=require(a15_0x428957(0xeb)),{v4:uuidv4}=require(a15_0x428957(0x126)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x428957(0x123)),{getCredentialsPath,getAuthHeader}=require(a15_0x428957(0xfd)),{sendInstrumentationEvent}=require(a15_0x428957(0x11b));exports['command']='grids',exports['desc']=a15_0x428957(0x117),exports[a15_0x428957(0xdf)]=function(_0x34ef27){const _0x258826=a15_0x428957,_0x3f513f={};_0x3f513f[_0x258826(0x112)]=_0x258826(0xe1),_0x3f513f['DQgoI']=_0x258826(0x11a),_0x3f513f[_0x258826(0xff)]='help';const _0x3d11db=_0x3f513f,_0x35b1d6={};_0x35b1d6[_0x258826(0x11d)]=_0x3d11db[_0x258826(0x112)],_0x35b1d6['type']=_0x3d11db[_0x258826(0x10c)];const _0x1c98f4={};return _0x1c98f4[_0x258826(0xf2)]=_0x35b1d6,_0x34ef27['usage'](HELP_HEADER_MESSAGE[_0x258826(0x128)][_0x258826(0x122)])[_0x258826(0xfc)](HELP_FOOTER_MESSAGE)[_0x258826(0x129)](_0x1c98f4)[_0x258826(0x10d)](_0x3d11db['fqLOC'])[_0x258826(0x12f)];},exports['handler']=async function(_0x540cfc){const _0x52dd5c=a15_0x428957,_0xec26c4={'VKNLW':function(_0x34696a){return _0x34696a();},'Amqje':_0x52dd5c(0x105),'NUklL':function(_0x4f8172,_0x464e81,_0x2dfb85,_0x32b066,_0x5a33e7,_0x496492,_0x1970c7){return _0x4f8172(_0x464e81,_0x2dfb85,_0x32b066,_0x5a33e7,_0x496492,_0x1970c7);},'qXXWI':_0x52dd5c(0x119),'YRjRJ':_0x52dd5c(0xe2),'zpjRw':function(_0x5d3136){return _0x5d3136();},'PEkyI':_0x52dd5c(0xe4),'faBJK':function(_0x303a05,_0x50acde,_0x4342b7){return _0x303a05(_0x50acde,_0x4342b7);},'UrHmC':function(_0xa30a0b,_0x22a030){return _0xa30a0b!==_0x22a030;},'eurJH':function(_0x2124d2,_0x146007){return _0x2124d2!==_0x146007;},'joSZj':function(_0x2b1856,_0x4f556a){return _0x2b1856===_0x4f556a;},'DzkcH':_0x52dd5c(0x106),'grGjF':_0x52dd5c(0xfe),'ePhkd':'grid-name','AXHwi':_0x52dd5c(0x11e),'HRmJk':_0x52dd5c(0xf9),'ZPJml':_0x52dd5c(0xe8),'gNCYc':_0x52dd5c(0x107),'wgUPb':function(_0x437c97,_0x5dfd40){return _0x437c97(_0x5dfd40);},'rFvxA':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gVbMQ':function(_0x43c831,_0x466bac,_0x135c6e,_0x56d23c,_0x5e07d5,_0x386661,_0x50cb0e){return _0x43c831(_0x466bac,_0x135c6e,_0x56d23c,_0x5e07d5,_0x386661,_0x50cb0e);},'feEfh':_0x52dd5c(0x116),'eRuxj':_0x52dd5c(0xf0),'ldTfM':function(_0x8c19c5,_0x7ea280,_0x1f07a2,_0x349cd7,_0x2b9170,_0x2047d3,_0x157928){return _0x8c19c5(_0x7ea280,_0x1f07a2,_0x349cd7,_0x2b9170,_0x2047d3,_0x157928);},'YfqvJ':'unknown-error'};try{global_registry['requestId']=_0xec26c4['VKNLW'](uuidv4);!fs['existsSync'](_0xec26c4['VKNLW'](getCredentialsPath))&&(console[_0x52dd5c(0x120)](_0xec26c4[_0x52dd5c(0x121)]),await _0xec26c4['NUklL'](sendInstrumentationEvent,_0x540cfc,_0xec26c4[_0x52dd5c(0x102)],messageTypes[_0x52dd5c(0xe0)],_0xec26c4[_0x52dd5c(0x103)],null,_0x540cfc),process[_0x52dd5c(0xf7)](0x1));const _0x50802b=JSON[_0x52dd5c(0xee)](fs[_0x52dd5c(0x101)](_0xec26c4[_0x52dd5c(0xed)](getCredentialsPath)));let _0x5396d5='https://'+AG_API_URL+'/packages/cli/get-grids';_0x540cfc['allGrids']&&(_0x5396d5='https://'+AG_API_URL+_0x52dd5c(0xec));const _0x571485={'method':_0xec26c4[_0x52dd5c(0xde)],'headers':_0xec26c4[_0x52dd5c(0x109)](getAuthHeader,_0x50802b[_0x52dd5c(0x10f)][_0x52dd5c(0xf1)],_0x50802b[_0x52dd5c(0x10f)][_0x52dd5c(0x125)]),'throwHttpErrors':![]};global_registry[_0x52dd5c(0x10a)]=_0x50802b[_0x52dd5c(0x10f)][_0x52dd5c(0xf1)],global_registry[_0x52dd5c(0xdd)]=_0x50802b['Browserstack'][_0x52dd5c(0x125)],_0xec26c4[_0x52dd5c(0x11f)](sendInstrumentationEvent,_0x540cfc,_0xec26c4['qXXWI'],messageTypes[_0x52dd5c(0x115)],null,null,_0x540cfc);const _0x359462=await _0xec26c4['faBJK'](got,_0x5396d5,_0x571485);if(_0xec26c4['UrHmC'](_0x359462,null)&&_0xec26c4[_0x52dd5c(0x10b)](_0x359462,undefined)&&_0xec26c4['joSZj'](_0x359462[_0x52dd5c(0xfb)],0xc8)){const _0x30d657=JSON[_0x52dd5c(0xee)](_0x359462['body']);console[_0x52dd5c(0xe7)](_0xec26c4['DzkcH']);const _0x3292db=[];_0x3292db['push']([_0xec26c4['grGjF'],_0xec26c4[_0x52dd5c(0xf5)],_0xec26c4[_0x52dd5c(0xe5)],_0xec26c4['HRmJk'],_0xec26c4[_0x52dd5c(0xf4)],_0xec26c4[_0x52dd5c(0x12c)]]),_0x30d657[_0x52dd5c(0x12a)](_0x3fa896=>{const _0x39c0d5=_0x52dd5c;_0x3292db[_0x39c0d5(0xfa)]([_0x3fa896['id'],_0x3fa896[_0x39c0d5(0x12b)],_0x3fa896[_0x39c0d5(0x11e)],_0x3fa896[_0x39c0d5(0xf9)],_0x3fa896['queued'],_0x3fa896[_0x39c0d5(0x113)]]);}),console[_0x52dd5c(0xe7)](_0xec26c4[_0x52dd5c(0x12e)](table,_0x3292db)),process[_0x52dd5c(0xf7)](0x0);}_0xec26c4[_0x52dd5c(0x118)](_0x359462['statusCode'],0x191)&&(console[_0x52dd5c(0x120)](_0xec26c4[_0x52dd5c(0xf8)]),await _0xec26c4[_0x52dd5c(0x110)](sendInstrumentationEvent,_0x540cfc,_0xec26c4[_0x52dd5c(0x102)],messageTypes['ERROR'],_0xec26c4[_0x52dd5c(0xef)],null,_0x540cfc),process[_0x52dd5c(0xf7)](0x1)),console['error'](_0x52dd5c(0xea)+JSON[_0x52dd5c(0x104)](_0x359462)),await _0xec26c4[_0x52dd5c(0x11f)](sendInstrumentationEvent,_0x540cfc,_0xec26c4[_0x52dd5c(0x102)],messageTypes[_0x52dd5c(0xe0)],_0xec26c4['eRuxj'],_0x359462,_0x540cfc),process[_0x52dd5c(0xf7)](0x1);}catch(_0x480f4d){console['error'](_0x52dd5c(0x10e)+_0x480f4d[_0x52dd5c(0x108)]),await _0xec26c4['ldTfM'](sendInstrumentationEvent,_0x540cfc,_0xec26c4['qXXWI'],messageTypes[_0x52dd5c(0xe0)],_0xec26c4['YfqvJ'],_0x480f4d,_0x540cfc),process[_0x52dd5c(0xf7)](0x1);}};
1
+ const a15_0x3ac312=a15_0x3c7e;function a15_0x59dc(){const _0x3447c4=['7364bGEcGC','GET','7153956YGYkQw','ybnGD','319LReugx','1722852aeJqnT','grid','description','password','VMCaH','command','builder','running','brCIi','push','aOtSW','got','672FCfyST','log','INFO','../../utils/utilityMethods','JvHPC','1445BPDfRN','99jysYDN','epilogue','ITsYp','zQhOA','all-grids','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','unauthorised','kzyRf','2683190UeMOUA','cluster-name','existsSync','statusCode','bstackAccesskey','forEach','parse','XczRn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-grids','init-not-called','dvyWF','6217880UUrdVI','clusterName','\x0aFound\x20the\x20following\x20grids:\x0a','handler','table','allGrids','bstackUsername','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','boolean','yFOTZ','../../config/constants','error','xdxIW','../../utils/instrumentationUtils','type','https://','help','ERROR','grids','server-error','queued','Zmzrd','exit','sJAmg','stack','username','hFADu','BeGIW','adGbE','4536GnIOTY','DGOxH','desc','lYLsJ','readFileSync','status','Browserstack','VdCWj','qeYOb','3254enOHbW','grid-name','yZREg','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','tGfor'];a15_0x59dc=function(){return _0x3447c4;};return a15_0x59dc();}(function(_0x9099e9,_0x8de72d){const _0x33951d=a15_0x3c7e,_0x5bb36f=_0x9099e9();while(!![]){try{const _0xfc95f2=parseInt(_0x33951d(0x17d))/0x1*(-parseInt(_0x33951d(0x174))/0x2)+parseInt(_0x33951d(0x17e))/0x3+parseInt(_0x33951d(0x179))/0x4*(-parseInt(_0x33951d(0x18f))/0x5)+parseInt(_0x33951d(0x18a))/0x6*(parseInt(_0x33951d(0x1c1))/0x7)+-parseInt(_0x33951d(0x1a4))/0x8+-parseInt(_0x33951d(0x17b))/0x9+parseInt(_0x33951d(0x198))/0xa*(parseInt(_0x33951d(0x190))/0xb);if(_0xfc95f2===_0x8de72d)break;else _0x5bb36f['push'](_0x5bb36f['shift']());}catch(_0x34638e){_0x5bb36f['push'](_0x5bb36f['shift']());}}}(a15_0x59dc,0x6b116));const fs=require('fs'),got=require(a15_0x3ac312(0x189)),{table}=require(a15_0x3ac312(0x1a8)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3ac312(0x1ae)),{getCredentialsPath,getAuthHeader}=require(a15_0x3ac312(0x18d)),{sendInstrumentationEvent}=require(a15_0x3ac312(0x1b1));function a15_0x3c7e(_0x2426e2,_0x5168b9){const _0x59dcb2=a15_0x59dc();return a15_0x3c7e=function(_0x3c7e72,_0xcb4fca){_0x3c7e72=_0x3c7e72-0x16f;let _0x37a7dc=_0x59dcb2[_0x3c7e72];return _0x37a7dc;},a15_0x3c7e(_0x2426e2,_0x5168b9);}exports[a15_0x3ac312(0x183)]=a15_0x3ac312(0x1b6),exports[a15_0x3ac312(0x1c3)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x3ac312(0x184)]=function(_0x46f14a){const _0xba30b5=a15_0x3ac312,_0x38a95b={};_0x38a95b['CfMaW']=_0xba30b5(0x1ab),_0x38a95b[_0xba30b5(0x1be)]=_0xba30b5(0x1ac),_0x38a95b[_0xba30b5(0x1bb)]='help';const _0x192025=_0x38a95b,_0x2b1867={};_0x2b1867[_0xba30b5(0x180)]=_0x192025['CfMaW'],_0x2b1867[_0xba30b5(0x1b2)]=_0x192025[_0xba30b5(0x1be)];const _0x318776={};return _0x318776[_0xba30b5(0x194)]=_0x2b1867,_0x46f14a['usage'](HELP_HEADER_MESSAGE['list'][_0xba30b5(0x17f)])[_0xba30b5(0x191)](HELP_FOOTER_MESSAGE)['options'](_0x318776)[_0xba30b5(0x1b4)](_0x192025['sJAmg'])['argv'];},exports[a15_0x3ac312(0x1a7)]=async function(_0x353928){const _0x103cb3=a15_0x3ac312,_0x1adc07={'qeYOb':function(_0x1f48c2){return _0x1f48c2();},'brCIi':function(_0x1c3733){return _0x1c3733();},'TgxnM':_0x103cb3(0x195),'VMCaH':function(_0x52e18e,_0xdbcf5c,_0x3c07d5,_0x12a0aa,_0x1bad77,_0x6762e6,_0x507c71){return _0x52e18e(_0xdbcf5c,_0x3c07d5,_0x12a0aa,_0x1bad77,_0x6762e6,_0x507c71);},'xdxIW':'list-grids-called','DGOxH':_0x103cb3(0x1a2),'lYLsJ':_0x103cb3(0x17a),'metJC':function(_0x1da200,_0x558036,_0x2d7de4){return _0x1da200(_0x558036,_0x2d7de4);},'yZREg':function(_0x16f161,_0x5bfe10,_0x54cc51){return _0x16f161(_0x5bfe10,_0x54cc51);},'akobv':function(_0x271117,_0x4f9623){return _0x271117!==_0x4f9623;},'dvyWF':function(_0x5258be,_0x5b9c9c){return _0x5258be!==_0x5b9c9c;},'BeGIW':function(_0x12cbfa,_0x59e0cb){return _0x12cbfa===_0x59e0cb;},'CrIzd':_0x103cb3(0x1a6),'aOtSW':'grid-id','zQhOA':_0x103cb3(0x175),'ytTvO':_0x103cb3(0x170),'ITsYp':'running','VdCWj':_0x103cb3(0x1b8),'tGfor':_0x103cb3(0x199),'JvHPC':function(_0xebe2ba,_0x95d72b){return _0xebe2ba(_0x95d72b);},'Zmzrd':function(_0x1291d8,_0x2d607c){return _0x1291d8===_0x2d607c;},'yFOTZ':_0x103cb3(0x1a0),'XczRn':_0x103cb3(0x196),'ldeMa':function(_0x149609,_0xb3486b,_0x47b1fd,_0x224f60,_0x36ee3b,_0x57e997,_0x2f4ce5){return _0x149609(_0xb3486b,_0x47b1fd,_0x224f60,_0x36ee3b,_0x57e997,_0x2f4ce5);},'ybnGD':_0x103cb3(0x1b7),'adGbE':function(_0x2cc916,_0x4fa33c,_0x425eb3,_0x2ea93e,_0x1a6efe,_0x1fa173,_0x409d0b){return _0x2cc916(_0x4fa33c,_0x425eb3,_0x2ea93e,_0x1a6efe,_0x1fa173,_0x409d0b);},'kzyRf':'unknown-error'};try{global_registry['requestId']=_0x1adc07[_0x103cb3(0x173)](uuidv4);!fs[_0x103cb3(0x19a)](_0x1adc07[_0x103cb3(0x186)](getCredentialsPath))&&(console[_0x103cb3(0x1af)](_0x1adc07['TgxnM']),await _0x1adc07[_0x103cb3(0x182)](sendInstrumentationEvent,_0x353928,_0x1adc07['xdxIW'],messageTypes[_0x103cb3(0x1b5)],_0x1adc07[_0x103cb3(0x1c2)],null,_0x353928),process[_0x103cb3(0x1ba)](0x1));const _0x58162e=JSON['parse'](fs[_0x103cb3(0x16f)](_0x1adc07[_0x103cb3(0x186)](getCredentialsPath)));let _0x33b2be=_0x103cb3(0x1b3)+AG_API_URL+_0x103cb3(0x1a1);_0x353928[_0x103cb3(0x1a9)]&&(_0x33b2be=_0x103cb3(0x1b3)+AG_API_URL+'/packages/cli/get-all-grids');const _0x4a2ab1={'method':_0x1adc07[_0x103cb3(0x1c4)],'headers':_0x1adc07['metJC'](getAuthHeader,_0x58162e[_0x103cb3(0x171)][_0x103cb3(0x1bd)],_0x58162e[_0x103cb3(0x171)][_0x103cb3(0x181)]),'throwHttpErrors':![]};global_registry[_0x103cb3(0x1aa)]=_0x58162e['Browserstack']['username'],global_registry[_0x103cb3(0x19c)]=_0x58162e[_0x103cb3(0x171)][_0x103cb3(0x181)],_0x1adc07['VMCaH'](sendInstrumentationEvent,_0x353928,_0x1adc07['xdxIW'],messageTypes[_0x103cb3(0x18c)],null,null,_0x353928);const _0x1f1b2e=await _0x1adc07[_0x103cb3(0x176)](got,_0x33b2be,_0x4a2ab1);if(_0x1adc07['akobv'](_0x1f1b2e,null)&&_0x1adc07[_0x103cb3(0x1a3)](_0x1f1b2e,undefined)&&_0x1adc07[_0x103cb3(0x1bf)](_0x1f1b2e[_0x103cb3(0x19b)],0xc8)){const _0x106cb1=JSON[_0x103cb3(0x19e)](_0x1f1b2e['body']);console[_0x103cb3(0x18b)](_0x1adc07['CrIzd']);const _0x2d98ad=[];_0x2d98ad[_0x103cb3(0x187)]([_0x1adc07[_0x103cb3(0x188)],_0x1adc07[_0x103cb3(0x193)],_0x1adc07['ytTvO'],_0x1adc07[_0x103cb3(0x192)],_0x1adc07[_0x103cb3(0x172)],_0x1adc07[_0x103cb3(0x178)]]),_0x106cb1[_0x103cb3(0x19d)](_0x38e2fa=>{const _0x21a751=_0x103cb3;_0x2d98ad[_0x21a751(0x187)]([_0x38e2fa['id'],_0x38e2fa['name'],_0x38e2fa[_0x21a751(0x170)],_0x38e2fa[_0x21a751(0x185)],_0x38e2fa[_0x21a751(0x1b8)],_0x38e2fa[_0x21a751(0x1a5)]]);}),console['log'](_0x1adc07[_0x103cb3(0x18e)](table,_0x2d98ad)),process[_0x103cb3(0x1ba)](0x0);}_0x1adc07[_0x103cb3(0x1b9)](_0x1f1b2e[_0x103cb3(0x19b)],0x191)&&(console[_0x103cb3(0x1af)](_0x1adc07[_0x103cb3(0x1ad)]),await _0x1adc07[_0x103cb3(0x182)](sendInstrumentationEvent,_0x353928,_0x1adc07[_0x103cb3(0x1b0)],messageTypes['ERROR'],_0x1adc07[_0x103cb3(0x19f)],null,_0x353928),process[_0x103cb3(0x1ba)](0x1)),console[_0x103cb3(0x1af)](_0x103cb3(0x177)+JSON['stringify'](_0x1f1b2e)),await _0x1adc07['ldeMa'](sendInstrumentationEvent,_0x353928,_0x1adc07['xdxIW'],messageTypes['ERROR'],_0x1adc07[_0x103cb3(0x17c)],_0x1f1b2e,_0x353928),process['exit'](0x1);}catch(_0x55076e){console[_0x103cb3(0x1af)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x55076e[_0x103cb3(0x1bc)]),await _0x1adc07[_0x103cb3(0x1c0)](sendInstrumentationEvent,_0x353928,_0x1adc07['xdxIW'],messageTypes[_0x103cb3(0x1b5)],_0x1adc07[_0x103cb3(0x197)],_0x55076e,_0x353928),process[_0x103cb3(0x1ba)](0x1);}};
@@ -1 +1 @@
1
- const a16_0xfb7a33=a16_0x38ef;(function(_0x3b4cfe,_0x3f7448){const _0x30c76a=a16_0x38ef,_0x355126=_0x3b4cfe();while(!![]){try{const _0x33ada4=parseInt(_0x30c76a(0x109))/0x1*(-parseInt(_0x30c76a(0x101))/0x2)+-parseInt(_0x30c76a(0x100))/0x3+-parseInt(_0x30c76a(0xfb))/0x4*(-parseInt(_0x30c76a(0xfe))/0x5)+parseInt(_0x30c76a(0x106))/0x6+parseInt(_0x30c76a(0x10c))/0x7*(parseInt(_0x30c76a(0x104))/0x8)+-parseInt(_0x30c76a(0x102))/0x9+parseInt(_0x30c76a(0xfd))/0xa;if(_0x33ada4===_0x3f7448)break;else _0x355126['push'](_0x355126['shift']());}catch(_0x491af8){_0x355126['push'](_0x355126['shift']());}}}(a16_0x464b,0x9f6a8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xfb7a33(0xfc));exports[a16_0xfb7a33(0x105)]=a16_0xfb7a33(0xf6),exports['desc']=a16_0xfb7a33(0xf7),exports[a16_0xfb7a33(0x10a)]=function(_0x2268d1){const _0x20f352=a16_0xfb7a33,_0x16522d={};_0x16522d[_0x20f352(0x10b)]=_0x20f352(0x103),_0x16522d[_0x20f352(0x108)]=_0x20f352(0xff);const _0x7f6435=_0x16522d;return _0x2268d1[_0x20f352(0x107)](HELP_HEADER_MESSAGE['pre_check'])[_0x20f352(0xfa)](HELP_FOOTER_MESSAGE)[_0x20f352(0xf8)](_0x7f6435[_0x20f352(0x10b)])['demandCommand']()[_0x20f352(0xf9)]()['strict']()[_0x20f352(0xff)](_0x7f6435['eNWFE']);},exports[a16_0xfb7a33(0xf5)]=function(_0xa9d1c3){};function a16_0x38ef(_0x166214,_0x1b5c12){const _0x464be8=a16_0x464b();return a16_0x38ef=function(_0x38efb8,_0x3a99b0){_0x38efb8=_0x38efb8-0xf5;let _0x2dc3f7=_0x464be8[_0x38efb8];return _0x2dc3f7;},a16_0x38ef(_0x166214,_0x1b5c12);}function a16_0x464b(){const _0xf1bd47=['269350mIuCIF','builder','biMQR','378tioZjJ','handler','pre-check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','commandDir','recommendCommands','epilogue','4oLCDGl','../config/constants','14943340yGSOYq','1274165VjFObo','help','2661924BMuWrO','4egXzZv','9814158yTPhGZ','precheck_commands','104288wulmbn','command','4297962FLJFyu','usage','eNWFE'];a16_0x464b=function(){return _0xf1bd47;};return a16_0x464b();}
1
+ function a16_0x2ff7(_0x5da9cd,_0x43e535){const _0x43ecd4=a16_0x43ec();return a16_0x2ff7=function(_0x2ff73d,_0x1c0a02){_0x2ff73d=_0x2ff73d-0xda;let _0x37466a=_0x43ecd4[_0x2ff73d];return _0x37466a;},a16_0x2ff7(_0x5da9cd,_0x43e535);}const a16_0x501cb1=a16_0x2ff7;(function(_0x1a8574,_0xe0cf58){const _0x44b423=a16_0x2ff7,_0x1e75be=_0x1a8574();while(!![]){try{const _0x2e3709=-parseInt(_0x44b423(0xe3))/0x1*(parseInt(_0x44b423(0xe0))/0x2)+parseInt(_0x44b423(0xde))/0x3+-parseInt(_0x44b423(0xdc))/0x4+-parseInt(_0x44b423(0xea))/0x5*(-parseInt(_0x44b423(0xe7))/0x6)+parseInt(_0x44b423(0xeb))/0x7+parseInt(_0x44b423(0xef))/0x8+-parseInt(_0x44b423(0xe5))/0x9*(-parseInt(_0x44b423(0xf3))/0xa);if(_0x2e3709===_0xe0cf58)break;else _0x1e75be['push'](_0x1e75be['shift']());}catch(_0x1ad163){_0x1e75be['push'](_0x1e75be['shift']());}}}(a16_0x43ec,0xa2471));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x43ec(){const _0x2392e8=['5958088WhqylC','DQLBG','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','desc','558880FiFjCm','builder','cJWeE','5090728FkQFsp','commandDir','2950905NzUJYH','help','2gvRcpf','command','handler','1110635bFujpj','strict','18hLYcbB','epilogue','6VycdZZ','precheck_commands','usage','1391075ijzVOR','6507333JqReTg','pre_check','demandCommand','pre-check'];a16_0x43ec=function(){return _0x2392e8;};return a16_0x43ec();}exports[a16_0x501cb1(0xe1)]=a16_0x501cb1(0xee),exports[a16_0x501cb1(0xf2)]=a16_0x501cb1(0xf1),exports[a16_0x501cb1(0xda)]=function(_0x2af29e){const _0x2993b7=a16_0x501cb1,_0x5b3992={};_0x5b3992[_0x2993b7(0xdb)]=_0x2993b7(0xe8),_0x5b3992[_0x2993b7(0xf0)]=_0x2993b7(0xdf);const _0x5cfd72=_0x5b3992;return _0x2af29e[_0x2993b7(0xe9)](HELP_HEADER_MESSAGE[_0x2993b7(0xec)])[_0x2993b7(0xe6)](HELP_FOOTER_MESSAGE)[_0x2993b7(0xdd)](_0x5cfd72['cJWeE'])[_0x2993b7(0xed)]()['recommendCommands']()[_0x2993b7(0xe4)]()[_0x2993b7(0xdf)](_0x5cfd72[_0x2993b7(0xf0)]);},exports[a16_0x501cb1(0xe2)]=function(_0x405358){};
@@ -1 +1 @@
1
- const a17_0x4150c2=a17_0x2037;(function(_0x3473db,_0x2b43e0){const _0x1de95b=a17_0x2037,_0x3e4bbb=_0x3473db();while(!![]){try{const _0x1c28cb=-parseInt(_0x1de95b(0x178))/0x1+-parseInt(_0x1de95b(0x12a))/0x2*(-parseInt(_0x1de95b(0xf6))/0x3)+-parseInt(_0x1de95b(0x1df))/0x4*(parseInt(_0x1de95b(0x18e))/0x5)+parseInt(_0x1de95b(0x181))/0x6+parseInt(_0x1de95b(0x17f))/0x7+-parseInt(_0x1de95b(0x127))/0x8+parseInt(_0x1de95b(0x141))/0x9*(parseInt(_0x1de95b(0x152))/0xa);if(_0x1c28cb===_0x2b43e0)break;else _0x3e4bbb['push'](_0x3e4bbb['shift']());}catch(_0x47d97a){_0x3e4bbb['push'](_0x3e4bbb['shift']());}}}(a17_0x347a,0xc47bb));function a17_0x347a(){const _0x504ad0=['RogEY','FJEhA','LcYLb','CPCYJ','replace','stack','readFileSync','nGtoh','../../cloudproviders/utils','headers','code','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','yrmqB','PfUdP','TkLjl','Cluster\x20`','QTuau','getUTCDate','omOyM','isTls1_2_SUPPORTED','iXCcx','ZdBbC','dhrOA','push','CkgkG','aVHRa','builder','ikqGk','/packages/cli/get-all-grid-profiles','xULTb','100rdLENt','Bnygm','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VsrXY','vWczB','Grid\x20profile\x20fetched\x20for\x20pre-check','`\x20is\x20present\x20in\x20region\x20`','Missing\x20required\x20arguments:\x20','grid','split','INFO','hzalG','dummy-grid','bstackUsername','SSL\x20Configured','CLOUD_PROVIDER','TWQsi','zGKwO','status','nIUbx','cloud-provider-not-supported','6hkirnO','Wwqsp','requestId','OQrbr','UBCfM','kZIsJ','\x20region\x20-\x20','XHTXO','Failure','RerkD','kBRhM','kCIZJ','RxwHw','LtzEv','epilogue','QXYRA','hzbtb','gtJRy','nZTKm','mdknr','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','nWOvZ','utf-8','is\x20already\x20present','RKnBH','vMiEo','ITMYB','zggar','find','MuRtl','YDFDs','VlEDE','../../utils/utilityMethods','\x20error\x20:\x20','body','ERROR','bcYDt','===\x20Precheck\x20Report\x20-\x20','XDjlF','cloud-provider','\x20\x20Code:\x20','cluster-name','bstackAccesskey','N/A','authHeader','ctXFk','toolInstalledResp','../../config/logger','xJPgO','10225144rpDGla','accessResp','QZYkQ','490502fEKnux','NIgMv','\x20\x20Stack:\x20','`\x20already\x20exists','vNhiJ','dBXND','SKPBW','message','checkAccess','mmUsr','lbrqd','Cluster\x20details\x0a-----------------------\x0a','https://','info','toLowerCase','<UsernamePlaceholder>','../../utils/webSocketUtils','../../utils/instrumentationUtils','usage','gEEZj','LOG','FwSGO','region','18rKaMRd','aczli','uxWkC','cloudProvider','Browserstack','PWdOS','../../config/constants','.\x20Please\x20provide\x20all\x20required\x20arguments.','mtQxe','includes','NfVqT','DIJoP','PFeDQ','parse','cjDRT','Jmqmq','debug','7985170HYqmzs','User\x20Access','aZBkQ','exit','OPdKv','options','gHhiQ','RkFLX','zinLt','getUTCMinutes','pre-check-grid-called','type','Cmjvl','pEmEJ','TEeVL','GVqKs','dZSTf','getUTCFullYear','Ajaqb','YcgVF','OWpal','description','Message:\x20','error\x20stack\x20:\x20','Setting\x20cloud\x20provider\x20as\x20','Tool\x20Installed','`\x20,error\x20:\x20','YACVH','wEsIx','GET','Vepjo','YGkow','isCliToolInstalled','ZEklP','pre_check','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','error','BVHUG','785066kvBgpS','sendEventToBackend','yZjCn','uVAhb','argv','stringify','help','1445241MjBxWh','BsCzh','9174330ZyimyJ','qokJv','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','3|2|0|1|4','tidRq','getUTCMonth','command','Failed\x20in\x20pre-check!\x20Error:\x20','Error\x20Details:\x0a','ehbyJ','Success','WlldT','grid-profile','191010eSiGsj','gridProfile','GBPAJ','sxWtU','writeFileSync','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Jzlpo','reconnecting-websocket','length','yUfiX','string','init','credential-not-found','password','RvWSY','Report\x20saved\x20in\x20','handler','ENSgL','skZVF','pre-check-cluster-args-not-passed','JtgHB','BocrY',']\x20status\x20:\x20','xdmCU','hzdBZ','LhWVN','header','clusterRegion','gomNr','sXBvi','Pre-check\x20running\x20for\x20Cloud\x20-\x20','HcIKP','tIdhL','\x20\x20Message:\x20','yERGm','data','ZpkgZ','UBLkd','will\x20be\x20created','\x20data\x20:\x20','VLKbI','clusterName','NupoI','Cluster\x20','EBaZe','connectionTimeout','jpVdx','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','HWpGX','response','Status:\x20'];a17_0x347a=function(){return _0x504ad0;};return a17_0x347a();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x4150c2(0x195)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4150c2(0x116)),{logger}=require(a17_0x4150c2(0x125)),{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_0x4150c2(0x147)),{getCloudProviderObjectWithOutInit}=require(a17_0x4150c2(0x1c9)),webSocketUtils=require(a17_0x4150c2(0x13a)),{sendInstrumentationEvent}=require(a17_0x4150c2(0x13b));exports[a17_0x4150c2(0x187)]=a17_0x4150c2(0x1e8),exports['desc']=a17_0x4150c2(0x183),exports[a17_0x4150c2(0x1db)]=function(_0x52cce0){const _0x47ccfe=a17_0x4150c2,_0x22ed70={};_0x22ed70[_0x47ccfe(0x106)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x22ed70[_0x47ccfe(0x1a0)]=_0x47ccfe(0x198),_0x22ed70[_0x47ccfe(0x185)]=_0x47ccfe(0x10a),_0x22ed70[_0x47ccfe(0x1d6)]=_0x47ccfe(0x1e1),_0x22ed70[_0x47ccfe(0x13d)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x22ed70[_0x47ccfe(0xff)]=_0x47ccfe(0x17e);const _0x33e120=_0x22ed70,_0x348f21={};_0x348f21['description']=_0x33e120[_0x47ccfe(0x106)],_0x348f21[_0x47ccfe(0x15d)]=_0x33e120[_0x47ccfe(0x1a0)];const _0x2644e1={};_0x2644e1[_0x47ccfe(0x167)]=_0x33e120[_0x47ccfe(0x185)],_0x2644e1[_0x47ccfe(0x15d)]=_0x33e120[_0x47ccfe(0x1a0)];const _0x4f2f0b={};_0x4f2f0b['description']=_0x33e120[_0x47ccfe(0x1d6)],_0x4f2f0b[_0x47ccfe(0x15d)]=_0x33e120[_0x47ccfe(0x1a0)];const _0x31b706={};_0x31b706[_0x47ccfe(0x167)]=_0x33e120[_0x47ccfe(0x13d)],_0x31b706[_0x47ccfe(0x15d)]=_0x33e120[_0x47ccfe(0x1a0)];const _0x4f8aab={};return _0x4f8aab['cluster-name']=_0x348f21,_0x4f8aab[_0x47ccfe(0x11d)]=_0x2644e1,_0x4f8aab[_0x47ccfe(0x140)]=_0x4f2f0b,_0x4f8aab[_0x47ccfe(0x18d)]=_0x31b706,_0x52cce0[_0x47ccfe(0x13c)](HELP_HEADER_MESSAGE['pre_check'])[_0x47ccfe(0x104)](HELP_FOOTER_MESSAGE)[_0x47ccfe(0x157)](_0x4f8aab)['help'](_0x33e120[_0x47ccfe(0xff)])[_0x47ccfe(0x17c)];};async function inputValidation(_0x1190c4,_0x2abf49){const _0x26d36f=a17_0x4150c2,_0x33a677={'CkgkG':_0x26d36f(0x140),'ENSgL':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','VLKbI':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','UBCfM':_0x26d36f(0x198),'Wwqsp':_0x26d36f(0x10a),'vWczB':_0x26d36f(0x1e1),'DIJoP':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hzdBZ':'help','RvWSY':_0x26d36f(0x176),'OQrbr':'Error\x20Details:\x0a','JtgHB':_0x26d36f(0x121),'uxWkC':function(_0x5c795e,_0x2012de){return _0x5c795e+_0x2012de;},'NupoI':_0x26d36f(0x18b),'WlldT':_0x26d36f(0xfe),'XDjlF':function(_0x482219,_0x484226){return _0x482219||_0x484226;},'SKPBW':'is\x20already\x20present','LhWVN':_0x26d36f(0x1b4),'QZYkQ':'cluster-name','bcYDt':function(_0x2a47f6,_0x1feeaa){return _0x2a47f6===_0x1feeaa;},'QXYRA':_0x26d36f(0x16e),'PFeDQ':function(_0x35a3a8,_0x43916e){return _0x35a3a8!==_0x43916e;},'aZBkQ':_0x26d36f(0x156),'nZTKm':_0x26d36f(0x1c4),'RogEY':_0x26d36f(0x1cf),'mmUsr':function(_0x42fa29,_0x4a7c4a){return _0x42fa29!==_0x4a7c4a;},'RKnBH':_0x26d36f(0x158),'lLaxr':_0x26d36f(0x123),'omOyM':'cloud-provider','YcgVF':_0x26d36f(0x1ab),'KDJCr':function(_0x45a658,_0x5774ad){return _0x45a658>_0x5774ad;},'xJPgO':_0x26d36f(0x1aa),'GBPAJ':function(_0x5a36f7,_0x36de58,_0x5ff436,_0x24b85b,_0x72e537,_0x2a662c,_0x11f1e4,_0x14be1a){return _0x5a36f7(_0x36de58,_0x5ff436,_0x24b85b,_0x72e537,_0x2a662c,_0x11f1e4,_0x14be1a);},'XHTXO':_0x26d36f(0x15c),'NGxUa':_0x26d36f(0x1a1),'ZEklP':function(_0x39e33d,_0x75730c){return _0x39e33d!==_0x75730c;},'TWQsi':'Xzvfk','ZTbMY':_0x26d36f(0x175),'PWdOS':_0x26d36f(0xf5),'yrmqB':function(_0x325b9a,_0x4fc543){return _0x325b9a!==_0x4fc543;},'VsrXY':_0x26d36f(0x101),'TlFhN':_0x26d36f(0x1bc),'Jzlpo':function(_0x1922f8,_0xf0bd81){return _0x1922f8!==_0xf0bd81;},'RfxuR':_0x26d36f(0x12e),'hzalG':'izheY','UxYVC':_0x26d36f(0x16f),'HcIKP':function(_0x166acc,_0x25ec2b,_0x5e5a5b){return _0x166acc(_0x25ec2b,_0x5e5a5b);},'yZjCn':function(_0xdfe568,_0x110eed,_0x35144b,_0x4ccfd7,_0x37588b,_0x241dc3){return _0xdfe568(_0x110eed,_0x35144b,_0x4ccfd7,_0x37588b,_0x241dc3);},'Ajaqb':'pre-check','FJEhA':_0x26d36f(0x18d),'kBRhM':function(_0x54a1cf,_0x10842a){return _0x54a1cf===_0x10842a;},'dhrOA':function(_0x14e5a2,_0x978e73){return _0x14e5a2!==_0x978e73;},'VlEDE':'qVPoo','ZpkgZ':'jXpJc','NfVqT':function(_0x5a2fe2,_0x5bdafd){return _0x5a2fe2(_0x5bdafd);},'dZSTf':'WBmGY','nGtoh':'DHVkf','zggar':'pre-check-grid-profile-empty','FwSGO':function(_0x528b59,_0x620b6e){return _0x528b59===_0x620b6e;},'GVqKs':_0x26d36f(0x191),'EBaZe':_0x26d36f(0x134),'EGqiU':_0x26d36f(0x1da),'Ljqyc':'IRTNa','RxwHw':_0x26d36f(0x1e5),'nWOvZ':function(_0x35064d,_0x4e32af){return _0x35064d===_0x4e32af;},'YGkow':_0x26d36f(0x109),'Ybcvz':_0x26d36f(0x177),'TEeVL':_0x26d36f(0x1b0),'YACVH':function(_0x546240,_0x3de798,_0xaddd53,_0x21f8e9,_0x18872d,_0x1f7671,_0x2fd2a9,_0x5b5136){return _0x546240(_0x3de798,_0xaddd53,_0x21f8e9,_0x18872d,_0x1f7671,_0x2fd2a9,_0x5b5136);}};let _0xe31b9e;try{if(_0x33a677[_0x26d36f(0x11a)](_0x33a677[_0x26d36f(0x105)],_0x33a677[_0x26d36f(0x105)])){if(_0x1190c4[_0x26d36f(0x1b7)]||_0x1190c4[_0x26d36f(0x144)]||_0x1190c4[_0x26d36f(0x140)]){if(_0x33a677[_0x26d36f(0x14d)](_0x33a677[_0x26d36f(0x154)],_0x33a677[_0x26d36f(0x108)])){const _0x992a2f=[];!_0x1190c4['clusterName']&&(_0x33a677[_0x26d36f(0x11a)](_0x33a677[_0x26d36f(0x1c1)],_0x33a677[_0x26d36f(0x1c1)])?_0x992a2f['push'](_0x33a677[_0x26d36f(0x129)]):_0x4942de[_0x26d36f(0x1d8)](_0x33a677[_0x26d36f(0x1d9)]));;!_0x1190c4[_0x26d36f(0x144)]&&(_0x33a677[_0x26d36f(0x133)](_0x33a677[_0x26d36f(0x10e)],_0x33a677['lLaxr'])?_0x992a2f[_0x26d36f(0x1d8)](_0x33a677[_0x26d36f(0x1d3)]):(_0x1d9a43[_0x26d36f(0x137)]('['+_0x16612c+']\x20status\x20:\x20'+_0x5df0a3[_0x26d36f(0xf3)]+_0x26d36f(0x1b5)+_0x13e4e6[_0x26d36f(0x1b1)]+_0x26d36f(0x117)+_0x27bbb7['error']),_0x5548f6['error']&&_0x179fc6[_0x26d36f(0x176)](_0x26d36f(0x169)+_0x5a20eb[_0x26d36f(0x176)][_0x26d36f(0x1c6)])));;!_0x1190c4[_0x26d36f(0x140)]&&(_0x33a677[_0x26d36f(0x11a)](_0x33a677['YcgVF'],_0x33a677[_0x26d36f(0x165)])?_0x992a2f[_0x26d36f(0x1d8)](_0x33a677[_0x26d36f(0x1d9)]):(_0x46fc81['error'](_0x33a677[_0x26d36f(0x19f)]),_0x43ad78[_0x26d36f(0x155)](0x1)));;if(_0x33a677['KDJCr'](_0x992a2f[_0x26d36f(0x196)],0x0)){if(_0x33a677['mmUsr'](_0x33a677[_0x26d36f(0x126)],_0x33a677[_0x26d36f(0x126)])){const _0x1e366b={};_0x1e366b[_0x26d36f(0x167)]=_0x33a677[_0x26d36f(0x1b6)],_0x1e366b[_0x26d36f(0x15d)]=_0x33a677[_0x26d36f(0xfa)];const _0x1c71c3={};_0x1c71c3[_0x26d36f(0x167)]=_0x33a677[_0x26d36f(0xf7)],_0x1c71c3['type']=_0x33a677[_0x26d36f(0xfa)];const _0x1fa2c9={};_0x1fa2c9[_0x26d36f(0x167)]=_0x33a677[_0x26d36f(0x1e4)],_0x1fa2c9[_0x26d36f(0x15d)]=_0x33a677[_0x26d36f(0xfa)];const _0x272ecc={};_0x272ecc[_0x26d36f(0x167)]=_0x33a677[_0x26d36f(0x14c)],_0x272ecc[_0x26d36f(0x15d)]=_0x33a677[_0x26d36f(0xfa)];const _0x250cb8={};return _0x250cb8[_0x26d36f(0x11f)]=_0x1e366b,_0x250cb8[_0x26d36f(0x11d)]=_0x1c71c3,_0x250cb8[_0x26d36f(0x140)]=_0x1fa2c9,_0x250cb8[_0x26d36f(0x18d)]=_0x272ecc,_0x5734e9[_0x26d36f(0x13c)](_0x162d5d[_0x26d36f(0x174)])[_0x26d36f(0x104)](_0x573ce0)[_0x26d36f(0x157)](_0x250cb8)[_0x26d36f(0x17e)](_0x33a677[_0x26d36f(0x1a6)])[_0x26d36f(0x17c)];}else _0xe31b9e=_0x26d36f(0x1e7)+_0x992a2f['join'](',\x20')+_0x26d36f(0x148),await _0x33a677['GBPAJ'](reportToGalactusAndSendToEDS,_0x1190c4,_0x2abf49,_0xe31b9e,messageTypes[_0x26d36f(0x119)],_0x33a677[_0x26d36f(0xfd)],_0x33a677['NGxUa'],_0x33a677['RvWSY']),logger[_0x26d36f(0x176)](_0xe31b9e),process[_0x26d36f(0x155)](0x1);}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x26d36f(0x14a)](_0x1190c4[_0x26d36f(0x144)][_0x26d36f(0x138)]())&&(_0x33a677[_0x26d36f(0x173)](_0x33a677[_0x26d36f(0x1f0)],_0x33a677[_0x26d36f(0x1f0)])?_0x5a738f[_0x26d36f(0x137)](_0x26d36f(0x1d0)+_0x45342a[_0x26d36f(0x1b7)]+_0x26d36f(0x12d)):(_0xe31b9e=_0x33a677['ZTbMY'],await _0x33a677['GBPAJ'](reportToGalactusAndSendToEDS,_0x1190c4,_0x2abf49,_0xe31b9e,messageTypes[_0x26d36f(0x119)],_0x33a677[_0x26d36f(0xfd)],_0x33a677['PWdOS'],_0x33a677[_0x26d36f(0x19c)]),logger[_0x26d36f(0x176)](_0xe31b9e),!_0x1190c4[_0x26d36f(0x144)]&&(_0x33a677[_0x26d36f(0x1cd)](_0x33a677[_0x26d36f(0x1e3)],_0x33a677['TlFhN'])?(logger['info'](_0x26d36f(0x16a)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x1190c4[_0x26d36f(0x144)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):(_0x156e5c[_0x26d36f(0x137)](_0x26d36f(0x16a)+_0x5a298f[_0x26d36f(0x1ef)]+'\x20'),_0xd19d4e[_0x26d36f(0x144)]=_0x57d65d[_0x26d36f(0x1ef)])))),global_registry[_0x26d36f(0x1b7)]=_0x1190c4[_0x26d36f(0x1b7)],global_registry[_0x26d36f(0x144)]=_0x1190c4[_0x26d36f(0x144)],global_registry[_0x26d36f(0x1a9)]=_0x1190c4[_0x26d36f(0x140)];}else _0x3ed261+=_0x26d36f(0x1b9)+_0x3f5e00[_0x26d36f(0x1b7)]+_0x26d36f(0x193);}else{if(_0x1190c4[_0x26d36f(0x18f)]){if(_0x33a677[_0x26d36f(0x194)](_0x33a677['RfxuR'],_0x33a677[_0x26d36f(0x1eb)])){global_registry[_0x26d36f(0x18f)]=_0x1190c4['gridProfile'],logger['debug']('grid\x20profile\x20flow\x20'+_0x1190c4['gridProfile']);const _0x46a692=_0x26d36f(0x136)+AG_API_URL+_0x26d36f(0x1dd),_0x5ac4ed={};_0x5ac4ed['method']=_0x33a677['UxYVC'],_0x5ac4ed[_0x26d36f(0x1ca)]=global_registry[_0x26d36f(0x122)],_0x5ac4ed['throwHttpErrors']=![];const _0x5bc3b7=_0x5ac4ed,_0x27d7f4=await _0x33a677[_0x26d36f(0x1ad)](got,_0x46a692,_0x5bc3b7),_0x55916b=await _0x33a677[_0x26d36f(0x17a)](responseValidation,_0x27d7f4,_0x33a677[_0x26d36f(0x164)],_0x33a677[_0x26d36f(0x1c2)],_0x1190c4,_0x2abf49);let _0xe03ce6={};if(_0x33a677[_0x26d36f(0x100)](_0x55916b,0xc8)){if(_0x33a677[_0x26d36f(0x1d7)](_0x33a677[_0x26d36f(0x115)],_0x33a677[_0x26d36f(0x1b2)])){const _0x3a6d12=JSON[_0x26d36f(0x14e)](_0x27d7f4[_0x26d36f(0x118)]),_0x4e5378=_0x3a6d12[_0x26d36f(0x112)](_0x580c7d=>_0x580c7d['name']===_0x1190c4[_0x26d36f(0x18f)])||null;if(_0x33a677[_0x26d36f(0x14b)](isUndefined,_0x4e5378)){if(_0x33a677[_0x26d36f(0x173)](_0x33a677[_0x26d36f(0x162)],_0x33a677[_0x26d36f(0x1c8)]))_0xe31b9e='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x1190c4[_0x26d36f(0x18f)]+_0x26d36f(0x1bd),await _0x33a677[_0x26d36f(0x190)](reportToGalactusAndSendToEDS,_0x1190c4,_0x2abf49,_0xe31b9e,messageTypes[_0x26d36f(0x119)],_0x33a677[_0x26d36f(0xfd)],_0x33a677[_0x26d36f(0x111)],_0x33a677[_0x26d36f(0x19c)]),logger[_0x26d36f(0x176)](_0xe31b9e),process[_0x26d36f(0x155)](0x1);else{const _0x404f3e={};_0x404f3e[_0x26d36f(0x15d)]=_0x1e346f[_0x26d36f(0x13e)],_0x404f3e[_0x26d36f(0x131)]=_0x3f8e2b,_0x570e97['sendEventToBackend'](_0x4592fc,_0x404f3e,_0x33a677[_0x26d36f(0x19c)],!![]);}}else _0x33a677[_0x26d36f(0x13f)](_0x33a677[_0x26d36f(0x161)],_0x33a677[_0x26d36f(0x1ba)])?_0x362eaa[_0x26d36f(0x176)]('error\x20stack\x20:\x20'+_0x1e5c37[_0x26d36f(0x176)][_0x26d36f(0x1c6)]):_0xe03ce6=_0x4e5378;}else _0x2cb770=_0x3e1b67;}else _0x33a677[_0x26d36f(0x100)](_0x33a677['EGqiU'],_0x33a677['Ljqyc'])?(_0x31794f+=_0x33a677[_0x26d36f(0xf9)],_0x480d6d+=_0x26d36f(0x1af)+(_0x289962[_0x26d36f(0x131)]||_0x33a677[_0x26d36f(0x1a2)])+'\x0a',_0x29f76e+='\x20\x20Code:\x20'+(_0x468245[_0x26d36f(0x1cb)]||_0x33a677[_0x26d36f(0x1a2)])+'\x0a',_0x52abc3+='\x20\x20Stack:\x20'+(_0x1a428e[_0x26d36f(0x1c6)]||_0x33a677[_0x26d36f(0x1a2)])+'\x0a'):process['exit'](0x1);const _0xb60af0={};_0xb60af0[_0x26d36f(0x15d)]=WS_EVENTS[_0x26d36f(0x13e)],_0xb60af0[_0x26d36f(0x131)]=_0x33a677[_0x26d36f(0x102)],webSocketUtils['sendEventToBackend'](_0x2abf49,_0xb60af0),global_registry[_0x26d36f(0x144)]=_0xe03ce6[_0x26d36f(0x144)],global_registry[_0x26d36f(0x1a9)]=_0xe03ce6[_0x26d36f(0x140)],global_registry[_0x26d36f(0x1b7)]=_0xe03ce6[_0x26d36f(0x1b7)];}else{const {header:_0x5f13e5,response:_0x3ae5ac}=_0x5517bf,{status:_0x557062,data:_0x1064a6,error:_0x8ca78c}=_0x3ae5ac;_0x3f8896+=_0x5f13e5+'\x20#'+_0x33a677[_0x26d36f(0x143)](_0x367edf,0x1)+'\x0a',_0x123da2+=_0x26d36f(0x1c0)+(_0x557062?_0x33a677[_0x26d36f(0x1b8)]:_0x33a677[_0x26d36f(0x18c)])+'\x0a',_0x35da5a+=_0x26d36f(0x168)+_0x33a677[_0x26d36f(0x11c)](_0x1064a6,_0x33a677[_0x26d36f(0x1a2)])+'\x0a',_0x8ca78c&&(_0x50bb49+=_0x33a677[_0x26d36f(0xf9)],_0x128ef9+=_0x26d36f(0x1af)+(_0x8ca78c['message']||_0x33a677[_0x26d36f(0x1a2)])+'\x0a',_0x303ef3+=_0x26d36f(0x11e)+(_0x8ca78c[_0x26d36f(0x1cb)]||_0x33a677[_0x26d36f(0x1a2)])+'\x0a',_0x4dd7a+=_0x26d36f(0x12c)+(_0x8ca78c[_0x26d36f(0x1c6)]||_0x33a677['JtgHB'])+'\x0a'),_0x10477d+='\x0a\x0a';}}else _0x33a677[_0x26d36f(0x10b)](_0x33a677[_0x26d36f(0x171)],_0x33a677['Ybcvz'])?_0x3a2037['exit'](0x1):(logger[_0x26d36f(0x176)](_0x33a677[_0x26d36f(0x19f)]),process[_0x26d36f(0x155)](0x1));}}else _0x1daa07+=_0x26d36f(0x1b9)+_0x153eee[_0x26d36f(0x1b7)]+'\x20'+(_0x1afef1?_0x33a677[_0x26d36f(0x130)]:_0x33a677[_0x26d36f(0x1a7)])+'\x0a\x0a';}catch(_0x4ae5ad){_0x33a677[_0x26d36f(0x173)](_0x33a677[_0x26d36f(0x160)],_0x33a677[_0x26d36f(0x160)])?_0x1c0ea3[_0x26d36f(0x1d8)](_0x33a677[_0x26d36f(0x129)]):(_0xe31b9e=_0x26d36f(0x1cc)+_0x4ae5ad+':\x20'+_0x4ae5ad['stack'],logger[_0x26d36f(0x176)](_0xe31b9e),await _0x33a677[_0x26d36f(0x16d)](reportToGalactusAndSendToEDS,_0x1190c4,_0x2abf49,_0xe31b9e,messageTypes[_0x26d36f(0x119)],_0x33a677['XHTXO'],_0x33a677[_0x26d36f(0x146)],_0x33a677[_0x26d36f(0x19c)]),process[_0x26d36f(0x155)](0x1));}}function a17_0x2037(_0x1b14f1,_0x3636af){const _0x347a9f=a17_0x347a();return a17_0x2037=function(_0x2037ec,_0x2c1243){_0x2037ec=_0x2037ec-0xf3;let _0x4c8987=_0x347a9f[_0x2037ec];return _0x4c8987;},a17_0x2037(_0x1b14f1,_0x3636af);}function printResponse(_0x1a631,_0x2d804a){const _0x1ae1da=a17_0x4150c2,_0x46ba5e={};_0x46ba5e['vMiEo']=_0x1ae1da(0x11d),_0x46ba5e[_0x1ae1da(0x1c3)]=function(_0xc0f27,_0x4e395d){return _0xc0f27===_0x4e395d;},_0x46ba5e[_0x1ae1da(0x1d5)]=_0x1ae1da(0x1d1);const _0x35dfe5=_0x46ba5e;logger['info']('['+_0x1a631+_0x1ae1da(0x1a4)+_0x2d804a[_0x1ae1da(0xf3)]+_0x1ae1da(0x1b5)+_0x2d804a['data']+_0x1ae1da(0x117)+_0x2d804a[_0x1ae1da(0x176)]),_0x2d804a[_0x1ae1da(0x176)]&&(_0x35dfe5[_0x1ae1da(0x1c3)](_0x35dfe5[_0x1ae1da(0x1d5)],_0x35dfe5['iXCcx'])?logger[_0x1ae1da(0x176)](_0x1ae1da(0x169)+_0x2d804a[_0x1ae1da(0x176)][_0x1ae1da(0x1c6)]):_0x108020[_0x1ae1da(0x1d8)](_0x35dfe5[_0x1ae1da(0x10f)]));}async function generateReport(_0xb70549,_0x3d8463){const _0x2c1220=a17_0x4150c2,_0x1a43e1={'BocrY':function(_0x29c0de,_0x302cd3){return _0x29c0de+_0x302cd3;},'UBLkd':'Success','fQIHN':_0x2c1220(0xfe),'OWpal':function(_0x4bda56,_0x487fc2){return _0x4bda56||_0x487fc2;},'PfUdP':'N/A','ITMYB':_0x2c1220(0x189),'vxegs':_0x2c1220(0x135),'HWpGX':function(_0x285f48,_0xd80eba){return _0x285f48!=_0xd80eba;},'zinLt':_0x2c1220(0x10d),'Upsxx':_0x2c1220(0x1b4),'yUfiX':function(_0x313147){return _0x313147();}};let _0x3705d0=_0x2c1220(0x11b)+global_registry[_0x2c1220(0x144)]+'\x20===\x0a\x0a';return _0xb70549['forEach']((_0xf0c815,_0x55a0f3)=>{const _0x122f36=_0x2c1220,{header:_0x513c18,response:_0x48d6f6}=_0xf0c815,{status:_0xedd088,data:_0x2d4198,error:_0x2d9cf8}=_0x48d6f6;_0x3705d0+=_0x513c18+'\x20#'+_0x1a43e1[_0x122f36(0x1a3)](_0x55a0f3,0x1)+'\x0a',_0x3705d0+=_0x122f36(0x1c0)+(_0xedd088?_0x1a43e1[_0x122f36(0x1b3)]:_0x1a43e1['fQIHN'])+'\x0a',_0x3705d0+=_0x122f36(0x168)+_0x1a43e1[_0x122f36(0x166)](_0x2d4198,_0x1a43e1['PfUdP'])+'\x0a',_0x2d9cf8&&(_0x3705d0+=_0x1a43e1[_0x122f36(0x110)],_0x3705d0+=_0x122f36(0x1af)+(_0x2d9cf8['message']||_0x1a43e1[_0x122f36(0x1ce)])+'\x0a',_0x3705d0+=_0x122f36(0x11e)+(_0x2d9cf8['code']||_0x1a43e1[_0x122f36(0x1ce)])+'\x0a',_0x3705d0+=_0x122f36(0x12c)+(_0x2d9cf8[_0x122f36(0x1c6)]||_0x1a43e1[_0x122f36(0x1ce)])+'\x0a'),_0x3705d0+='\x0a\x0a';}),_0x3705d0+=_0x1a43e1['vxegs'],_0x1a43e1[_0x2c1220(0x1be)](_0x3d8463,null)?_0x3705d0+=_0x2c1220(0x1b9)+global_registry[_0x2c1220(0x1b7)]+'\x20'+(_0x3d8463?_0x1a43e1[_0x2c1220(0x15a)]:_0x1a43e1['Upsxx'])+'\x0a\x0a':_0x3705d0+=_0x2c1220(0x1b9)+global_registry[_0x2c1220(0x1b7)]+_0x2c1220(0x193),_0x3705d0+=_0x1a43e1[_0x2c1220(0x197)](getSystemMetaData),_0x3705d0;};exports[a17_0x4150c2(0x19e)]=async function(_0x29a763){const _0xfac35f=a17_0x4150c2,_0x2239e3={'eSeRN':function(_0x5cf0d9){return _0x5cf0d9();},'HdFwA':function(_0x4cba7c){return _0x4cba7c();},'ikqGk':_0xfac35f(0x1e2),'YDFDs':function(_0x4c2d6d,_0x9b52de,_0x4b3bc8,_0x4cef3e,_0x11cbdb,_0x189fe1,_0x2ee484,_0xedd5ac){return _0x4c2d6d(_0x9b52de,_0x4b3bc8,_0x4cef3e,_0x11cbdb,_0x189fe1,_0x2ee484,_0xedd5ac);},'tIdhL':_0xfac35f(0x15c),'GBgJC':_0xfac35f(0x19a),'ehbyJ':_0xfac35f(0x176),'dBXND':function(_0x2251d8,_0x34b1ad,_0x3ff336,_0xc30804,_0x55609b,_0x34ba2e,_0x55b5b6){return _0x2251d8(_0x34b1ad,_0x3ff336,_0xc30804,_0x55609b,_0x34ba2e,_0x55b5b6);},'Vepjo':function(_0x5b7cf1){return _0x5b7cf1();},'nIUbx':_0xfac35f(0x139),'zGKwO':'<PasswordPlaceholder>','qokJv':function(_0x3ab985,_0x47ebd0,_0x1dfdb3){return _0x3ab985(_0x47ebd0,_0x1dfdb3);},'mtQxe':function(_0x5b69b7,_0x2a251f,_0x3bf546){return _0x5b69b7(_0x2a251f,_0x3bf546);},'Cmjvl':function(_0x32ed40,_0x333c20,_0x2737e2,_0x487ab0,_0x38f569,_0x78d3f6,_0x5d2fd9){return _0x32ed40(_0x333c20,_0x2737e2,_0x487ab0,_0x38f569,_0x78d3f6,_0x5d2fd9);},'NIgMv':_0xfac35f(0x1ec),'aczli':function(_0x174c3b,_0x17bc2c,_0x1cfa4a){return _0x174c3b(_0x17bc2c,_0x1cfa4a);},'Bnygm':_0xfac35f(0x124),'SUwww':_0xfac35f(0x184),'uVAhb':function(_0x2dfd6b,_0xc4f4c1,_0x49c058){return _0x2dfd6b(_0xc4f4c1,_0x49c058);},'LtzEv':_0xfac35f(0x128),'Jmqmq':'isTrialGridAccessible','kZIsJ':function(_0x54fd2c,_0xe8ac83){return _0x54fd2c(_0xe8ac83);},'cjDRT':'TLSv1_2_client_method','rSmgg':function(_0x552cec,_0x4a111c,_0x413a3b){return _0x552cec(_0x4a111c,_0x413a3b);},'BsCzh':_0xfac35f(0x1d4),'xdmCU':_0xfac35f(0x16b),'tKoIn':_0xfac35f(0x153),'RkFLX':'Whitelisted\x20browserstack','xULTb':_0xfac35f(0x1ee),'gtJRy':function(_0x528cec,_0x3af033){return _0x528cec+_0x3af033;},'MuRtl':_0xfac35f(0x10c),'pEmEJ':'pre-check-failed'};let _0x1e6cd4,_0xd4144b;try{global_registry[_0xfac35f(0xf8)]=_0x2239e3['eSeRN'](uuidv4);!fs['existsSync'](_0x2239e3['HdFwA'](getCredentialsPath))&&(_0xd4144b=_0x2239e3[_0xfac35f(0x1dc)],logger[_0xfac35f(0x176)](_0xd4144b),await _0x2239e3[_0xfac35f(0x114)](reportToGalactusAndSendToEDS,_0x29a763,_0x1e6cd4,_0xd4144b,messageTypes['ERROR'],_0x2239e3[_0xfac35f(0x1ae)],_0x2239e3['GBgJC'],_0x2239e3[_0xfac35f(0x18a)]),process[_0xfac35f(0x155)](0x1));_0x2239e3[_0xfac35f(0x12f)](sendInstrumentationEvent,_0x29a763,_0x2239e3[_0xfac35f(0x1ae)],messageTypes[_0xfac35f(0x1ea)],null,null,_0x29a763);const _0x441145=JSON['parse'](fs[_0xfac35f(0x1c7)](_0x2239e3[_0xfac35f(0x170)](getCredentialsPath)));global_registry[_0xfac35f(0x1ed)]=_0x441145['Browserstack']['username'],global_registry[_0xfac35f(0x120)]=_0x441145['Browserstack'][_0xfac35f(0x19b)];const _0x35b569=WS_ENDPOINT['replace'](_0x2239e3[_0xfac35f(0xf4)],_0x441145[_0xfac35f(0x145)]['username'])[_0xfac35f(0x1c5)](_0x2239e3[_0xfac35f(0x1f1)],_0x441145['Browserstack'][_0xfac35f(0x19b)]),_0xaf97c={};_0xaf97c['WebSocket']=ws,_0xaf97c[_0xfac35f(0x1bb)]=0x36ee80,_0x1e6cd4=new ReconnectingWebSocket(_0x35b569,[],_0xaf97c),global_registry['authHeader']=_0x2239e3[_0xfac35f(0x182)](getAuthHeader,global_registry[_0xfac35f(0x1ed)],global_registry[_0xfac35f(0x120)]),await _0x2239e3['mtQxe'](inputValidation,_0x29a763,_0x1e6cd4),logger['info'](_0xfac35f(0x1ac)+global_registry[_0xfac35f(0x144)]+_0xfac35f(0xfc)+global_registry[_0xfac35f(0x1a9)]);let _0x12276d=await _0x2239e3[_0xfac35f(0x15e)](getCloudProviderObjectWithOutInit,global_registry[_0xfac35f(0x144)],global_registry[_0xfac35f(0x1b7)],_0x2239e3[_0xfac35f(0x12b)],_0x1e6cd4,webSocketUtils,_0x29a763);const _0x2cca25=await _0x12276d[_0xfac35f(0x172)]();_0x2239e3[_0xfac35f(0x142)](printResponse,_0x2239e3[_0xfac35f(0x1e0)],_0x2cca25),_0x12276d=await _0x12276d[_0xfac35f(0x199)]();let _0x36711b=![];try{_0x36711b=await _0x12276d['isClusterPresent']();}catch(_0x48349a){const _0x2b4689=_0x2239e3['SUwww'][_0xfac35f(0x1e9)]('|');let _0x58a00b=0x0;while(!![]){switch(_0x2b4689[_0x58a00b++]){case'0':logger[_0xfac35f(0x176)](_0xd4144b);continue;case'1':_0xd4144b+='\x0a'+JSON['stringify'](_0x48349a[_0xfac35f(0x1c6)]);continue;case'2':_0x36711b=null;continue;case'3':_0xd4144b='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0xfac35f(0x1b7)]+_0xfac35f(0x1e6)+global_registry[_0xfac35f(0x1a9)]+_0xfac35f(0x16c)+_0x48349a;continue;case'4':await _0x2239e3[_0xfac35f(0x114)](reportToGalactusAndSendToEDS,_0x29a763,_0x1e6cd4,_0xd4144b,messageTypes[_0xfac35f(0x119)],_0x2239e3['tIdhL'],'cluster-check-failed-'+global_registry[_0xfac35f(0x144)],_0x2239e3[_0xfac35f(0x18a)]);continue;}break;}}_0x36711b&&logger['info']('Cluster\x20`'+global_registry[_0xfac35f(0x1b7)]+_0xfac35f(0x12d));const _0x1a2728=await _0x12276d[_0xfac35f(0x132)]();_0x2239e3[_0xfac35f(0x17b)](printResponse,_0x2239e3[_0xfac35f(0x103)],_0x1a2728);const _0x5d1701=await _0x2239e3['Vepjo'](curlRequest);_0x2239e3['mtQxe'](printResponse,_0x2239e3[_0xfac35f(0x150)],_0x5d1701);const _0x3f9ed8=await _0x2239e3[_0xfac35f(0xfb)](isTlsSupported,_0x2239e3[_0xfac35f(0x14f)]);_0x2239e3['rSmgg'](printResponse,_0x2239e3[_0xfac35f(0x180)],_0x3f9ed8);const _0x44d063={};_0x44d063['header']=_0x2239e3[_0xfac35f(0x1a5)],_0x44d063['response']=_0x2cca25;const _0x3ed6f3={};_0x3ed6f3[_0xfac35f(0x1a8)]=_0x2239e3['tKoIn'],_0x3ed6f3[_0xfac35f(0x1bf)]=_0x1a2728;const _0x29b459={};_0x29b459[_0xfac35f(0x1a8)]=_0x2239e3[_0xfac35f(0x159)],_0x29b459[_0xfac35f(0x1bf)]=_0x5d1701;const _0x23b446={};_0x23b446[_0xfac35f(0x1a8)]=_0x2239e3[_0xfac35f(0x1de)],_0x23b446[_0xfac35f(0x1bf)]=_0x3f9ed8;const _0x14ae00=[_0x44d063,_0x3ed6f3,_0x29b459,_0x23b446],_0x1b40a0=await _0x2239e3[_0xfac35f(0x149)](generateReport,_0x14ae00,_0x36711b),_0x324355=new Date(),_0x448e6a=_0x324355[_0xfac35f(0x163)]()+'_'+_0x2239e3[_0xfac35f(0x107)](_0x324355[_0xfac35f(0x186)](),0x1)+'_'+_0x324355[_0xfac35f(0x1d2)]()+'_'+_0x324355['getUTCHours']()+'_'+_0x324355[_0xfac35f(0x15b)](),_0x336332='log/report_'+_0x448e6a+'.txt';fs[_0xfac35f(0x192)](_0x336332,_0x1b40a0,_0x2239e3[_0xfac35f(0x113)]),logger[_0xfac35f(0x137)](_0xfac35f(0x19d)+_0x336332),process['exit'](0x0);}catch(_0x536b80){let _0x451bb9=_0xfac35f(0x188)+_0x536b80+'\x20';logger[_0xfac35f(0x176)](_0x451bb9),_0x451bb9+='\x0a'+JSON[_0xfac35f(0x17d)](_0x536b80[_0xfac35f(0x1c6)]),logger[_0xfac35f(0x151)]('stack\x20trace\x20'+_0x536b80[_0xfac35f(0x1c6)]);if(_0x1e6cd4){const _0x37ce9f={};_0x37ce9f[_0xfac35f(0x15d)]=WS_EVENTS[_0xfac35f(0x13e)],_0x37ce9f['message']=_0x451bb9,webSocketUtils[_0xfac35f(0x179)](_0x1e6cd4,_0x37ce9f,_0x2239e3[_0xfac35f(0x18a)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x365f4d={};_0x365f4d['error']=_0x451bb9,await _0x2239e3[_0xfac35f(0x15e)](sendInstrumentationEvent,_0x29a763,_0x2239e3[_0xfac35f(0x1ae)],messageTypes[_0xfac35f(0x119)],_0x2239e3[_0xfac35f(0x15f)],_0x365f4d,_0x29a763),process[_0xfac35f(0x155)](0x1);}};
1
+ const a17_0x42d2c7=a17_0x1afc;function a17_0x1afc(_0x3358d4,_0x193d54){const _0x42ab64=a17_0x42ab();return a17_0x1afc=function(_0x1afc3d,_0xa96d5b){_0x1afc3d=_0x1afc3d-0x1c1;let _0x9b6fb4=_0x42ab64[_0x1afc3d];return _0x9b6fb4;},a17_0x1afc(_0x3358d4,_0x193d54);}(function(_0x54933e,_0x5eefe4){const _0x34984d=a17_0x1afc,_0x54453b=_0x54933e();while(!![]){try{const _0x1a9be1=-parseInt(_0x34984d(0x1ed))/0x1*(-parseInt(_0x34984d(0x1c9))/0x2)+-parseInt(_0x34984d(0x1f4))/0x3*(-parseInt(_0x34984d(0x247))/0x4)+parseInt(_0x34984d(0x21c))/0x5*(-parseInt(_0x34984d(0x1d5))/0x6)+-parseInt(_0x34984d(0x28f))/0x7+parseInt(_0x34984d(0x228))/0x8+parseInt(_0x34984d(0x203))/0x9+-parseInt(_0x34984d(0x23b))/0xa*(parseInt(_0x34984d(0x1e3))/0xb);if(_0x1a9be1===_0x5eefe4)break;else _0x54453b['push'](_0x54453b['shift']());}catch(_0x1e9006){_0x54453b['push'](_0x54453b['shift']());}}}(a17_0x42ab,0xe6a50));function a17_0x42ab(){const _0x1c5771=['pKptB','nWCmF','getUTCHours','body','HxnZb','checkAccess','cloud-provider','kzdtT','init','isClusterPresent','cluster-check-failed-','name','isTrialGridAccessible','got','throwHttpErrors','gvkFg','tNhmi','pre-check-grid-called','\x20\x20Message:\x20','bstackUsername','bLJeH','options','NozUS','2076285tjGaMc','FdxSC','length','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','tJyIu','dummy-grid','wtTax','epilogue','pspei','GHyiY','sFeYR','code','3648576ICnQvY','mYbrT','find','OdkRe','rfaik','parse','NiQQa','../../cloudproviders/utils','Report\x20saved\x20in\x20','replace','tbZmo','akOQa','GkNoc','EAfxg','zStSL','rONBR','ZDqYX','kUpGW','AkUXD','19675870DBWZPV',']\x20status\x20:\x20','tjubb','type','LpQDQ','Whitelisted\x20browserstack','WebSocket','handler','fhCKm','VGSQT','UHcrL','\x20\x20Code:\x20','148iNYCbh','SSL\x20Configured','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','IuYaH','kWBVH','uAUZA','gridProfile','DLZpE','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fKpPo','stringify','is\x20already\x20present','lgIJa','Browserstack','INFO','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Setting\x20cloud\x20provider\x20as\x20','EbyEU','../../config/constants','getUTCDate','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','bCjDg','qDOHo','\x20\x20Stack:\x20','\x20===\x0a\x0a','message','nLqWd','VZhmr','debug','region','pOTss','ScInn','rsvtN','atBHI','uDvoh','exit','Tcnot','ChugP','gtpzg','YzxxR','CLOUD_PROVIDER','rRgJW','CNNPn','cluster-name','ntobl','connectionTimeout','usage','bstackAccesskey','User\x20Access','Cluster\x20`','ePvmc','JTANS','WsbyA','kZelX','qJWCV','dzOTq','stack','description','DPqGz','credential-not-found','authHeader','`\x20,error\x20:\x20','clusterName','password','ybhCf','OYEFv','Error\x20Details:\x0a','push','TLSv1_2_client_method','Failed\x20in\x20pre-check!\x20Error:\x20','YbycL','getUTCMinutes','4752349SihCHA','header','Qqsjb','dzbrs','Invalid\x20input.\x20grid\x20profiles:\x20','SKFse','JOfWE','eecGC','sAqrn','will\x20be\x20created','isTls1_2_SUPPORTED','oInpV','sendEventToBackend','EgKmK','Grid\x20profile\x20fetched\x20for\x20pre-check','kVZXP','N/A','stack\x20trace\x20','argv','error','Cluster\x20','tWHxz','FsfmI','4|0|2|3|1','AlfeX','isCliToolInstalled','ieyoI','response','.\x20Please\x20provide\x20all\x20required\x20arguments.','.txt','nWmAS','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','pre_check','YJBQv','cloud-provider-not-supported','`\x20is\x20present\x20in\x20region\x20`','builder','help','<UsernamePlaceholder>','XScKb','grid','string','AgQFj','CHfOl','aCvqn','pre-check','\x20region\x20-\x20','CcDCR','TJfdi','Cluster\x20details\x0a-----------------------\x0a','IrlFP','accessResp','CEYCZ','info','AoHiC','eTqGf','QCLIb','error\x20stack\x20:\x20','1740846EkHaGj','`\x20already\x20exists','PHuhd','weKSX','Bxisi','rvDEt','FYMuH','status','aCjef','/packages/cli/get-all-grid-profiles','USkBB','username','6WMhsYG','llTku','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','nfziB','FzggX','readFileSync','grid-profile','GJHMC','fpqPF','cNGfR','dQbvA','fcKRZ','nOBuv','sfIFe','11PjWtRY','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','mNQoc','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','KwiOH','LOG','cloudProvider','Missing\x20required\x20arguments:\x20','../../utils/utilityMethods','https://','2hejDNR','ERROR','clusterRegion','wUWAU','tMVvc','WinqZ','IMyPR','119055EutULQ','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','oGCsw','data','delay','iIcvq','includes','split','<PasswordPlaceholder>','Pre-check\x20running\x20for\x20Cloud\x20-\x20','VmDnc','WBbKa','GET','method','Success','3070872nlEpoP','hphba'];a17_0x42ab=function(){return _0x1c5771;};return a17_0x42ab();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x42d2c7(0x212)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x42d2c7(0x1eb)),{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_0x42d2c7(0x259)),{getCloudProviderObjectWithOutInit}=require(a17_0x42d2c7(0x22f)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a17_0x42d2c7(0x2b7),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x42d2c7(0x2b3)]=function(_0x22edbb){const _0x3bf1e7=a17_0x42d2c7,_0x4e3a24={};_0x4e3a24[_0x3bf1e7(0x1c1)]=_0x3bf1e7(0x249),_0x4e3a24[_0x3bf1e7(0x224)]=_0x3bf1e7(0x2b8),_0x4e3a24[_0x3bf1e7(0x288)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4e3a24['zStSL']=_0x3bf1e7(0x2ae),_0x4e3a24[_0x3bf1e7(0x1d1)]=_0x3bf1e7(0x1e6),_0x4e3a24[_0x3bf1e7(0x295)]=_0x3bf1e7(0x2b4);const _0x18b085=_0x4e3a24,_0x3310cc={};_0x3310cc[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x1c1)],_0x3310cc[_0x3bf1e7(0x23e)]=_0x18b085['pspei'];const _0x5e8475={};_0x5e8475[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x288)],_0x5e8475['type']=_0x18b085[_0x3bf1e7(0x224)];const _0x4f3e67={};_0x4f3e67[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x236)],_0x4f3e67['type']=_0x18b085['pspei'];const _0x4c94b1={};_0x4c94b1[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x1d1)],_0x4c94b1['type']=_0x18b085[_0x3bf1e7(0x224)];const _0x4a638b={};return _0x4a638b[_0x3bf1e7(0x272)]=_0x3310cc,_0x4a638b[_0x3bf1e7(0x20b)]=_0x5e8475,_0x4a638b[_0x3bf1e7(0x264)]=_0x4f3e67,_0x4a638b['grid-profile']=_0x4c94b1,_0x22edbb[_0x3bf1e7(0x275)](HELP_HEADER_MESSAGE[_0x3bf1e7(0x2af)])[_0x3bf1e7(0x223)](HELP_FOOTER_MESSAGE)['options'](_0x4a638b)[_0x3bf1e7(0x2b4)](_0x18b085[_0x3bf1e7(0x295)])[_0x3bf1e7(0x2a1)];};async function inputValidation(_0x5de54f,_0x12f527){const _0xe003ac=a17_0x42d2c7,_0x513fd2={'WinqZ':_0xe003ac(0x1e4),'ChugP':'Error\x20Details:\x0a','kWBVH':_0xe003ac(0x29f),'tbZmo':_0xe003ac(0x249),'dzOTq':_0xe003ac(0x2b8),'kUpGW':_0xe003ac(0x256),'tWHxz':_0xe003ac(0x2ae),'UBrsb':_0xe003ac(0x1e6),'AoHiC':_0xe003ac(0x2b4),'pKptB':_0xe003ac(0x2a2),'JwIDV':'is\x20already\x20present','rfaik':'will\x20be\x20created','QTlZn':'cluster-name','sAqrn':_0xe003ac(0x20b),'fhCKm':_0xe003ac(0x264),'ntobl':function(_0x222c94,_0x404bdd){return _0x222c94===_0x404bdd;},'WBbKa':_0xe003ac(0x294),'nWmAS':_0xe003ac(0x27d),'DLZpE':function(_0x2a9c25,_0x30189d){return _0x2a9c25===_0x30189d;},'weKSX':_0xe003ac(0x268),'FYMuH':function(_0x2426b5,_0x4652a2){return _0x2426b5!==_0x4652a2;},'wUWAU':_0xe003ac(0x1e0),'CHfOl':'fpMCt','eTqGf':'MhZyT','YzxxR':_0xe003ac(0x235),'wnVKD':function(_0x1367cc,_0x36360c){return _0x1367cc!==_0x36360c;},'tjubb':'IcAqX','GJHMC':function(_0x1c2836,_0x1b5ea6){return _0x1c2836>_0x1b5ea6;},'EAddH':'XtxbR','fpqPF':function(_0x1d14ee,_0x13424a,_0x53a35d,_0x1eac54,_0x2e7fcd,_0x54a968,_0x17b2ba,_0x5ec657){return _0x1d14ee(_0x13424a,_0x53a35d,_0x1eac54,_0x2e7fcd,_0x54a968,_0x17b2ba,_0x5ec657);},'dzbrs':_0xe003ac(0x216),'Tcnot':'pre-check-cluster-args-not-passed','VGSQT':function(_0x860792,_0x1c9c08){return _0x860792!==_0x1c9c08;},'kzdtT':_0xe003ac(0x1f3),'UHcrL':_0xe003ac(0x1d7),'gvkFg':function(_0x1a0895,_0x37b9a4,_0x4fc66e,_0x88d062,_0x57fff7,_0x180f81,_0x162162,_0x469cde){return _0x1a0895(_0x37b9a4,_0x4fc66e,_0x88d062,_0x57fff7,_0x180f81,_0x162162,_0x469cde);},'TJfdi':_0xe003ac(0x2b1),'roasB':_0xe003ac(0x29c),'FzggX':'oJQWt','mNQoc':_0xe003ac(0x200),'bCjDg':function(_0x32fcd5,_0x46a4cb,_0x5524c8){return _0x32fcd5(_0x46a4cb,_0x5524c8);},'ZZExH':function(_0x32f021,_0x302eb3,_0x37972f,_0xaac5d5,_0x13a422,_0x56bf01){return _0x32f021(_0x302eb3,_0x37972f,_0xaac5d5,_0x13a422,_0x56bf01);},'sDjMP':_0xe003ac(0x2bc),'mYbrT':_0xe003ac(0x1db),'bLJeH':function(_0x1fde67,_0x1b05a2){return _0x1fde67===_0x1b05a2;},'eecGC':_0xe003ac(0x271),'uDvoh':_0xe003ac(0x1f9),'FsfmI':function(_0x971abc,_0x56089){return _0x971abc(_0x56089);},'oInpV':function(_0x549c91,_0x1ba4f9){return _0x549c91!==_0x1ba4f9;},'dtKox':'KteWy','PpZNS':'KKyAo','rvDEt':'pre-check-grid-profile-empty','WsbyA':function(_0x765b5,_0x5d1130){return _0x765b5!==_0x5d1130;},'CEYCZ':_0xe003ac(0x1cd),'sXhiW':function(_0xa9f12d,_0x39a251){return _0xa9f12d!==_0x39a251;},'GHyiY':_0xe003ac(0x250),'HxnZb':'IjkHm','EbyEU':_0xe003ac(0x29d),'rRgJW':function(_0x319f4c,_0x1bc8e7){return _0x319f4c===_0x1bc8e7;},'cNGfR':_0xe003ac(0x265),'LpQDQ':_0xe003ac(0x21b),'rONBR':_0xe003ac(0x1e1),'XScKb':_0xe003ac(0x281),'AgQFj':function(_0x4134ff,_0x186e1e,_0xa2dfe5,_0x18ddd9,_0x58e401,_0xe49ef,_0x42b0a1,_0x3e8469){return _0x4134ff(_0x186e1e,_0xa2dfe5,_0x18ddd9,_0x58e401,_0xe49ef,_0x42b0a1,_0x3e8469);}};let _0x45a96a;try{if(_0x513fd2[_0xe003ac(0x273)](_0x513fd2[_0xe003ac(0x1ff)],_0x513fd2[_0xe003ac(0x2ad)]))_0x3df9fc['exit'](0x1);else{if(_0x5de54f[_0xe003ac(0x285)]||_0x5de54f['cloudProvider']||_0x5de54f['region']){if(_0x513fd2[_0xe003ac(0x24e)](_0x513fd2[_0xe003ac(0x1cc)],_0x513fd2['weKSX'])){const _0x3d3a80=[];!_0x5de54f[_0xe003ac(0x285)]&&(_0x513fd2[_0xe003ac(0x1cf)](_0x513fd2[_0xe003ac(0x1f0)],_0x513fd2[_0xe003ac(0x2ba)])?_0x3d3a80['push'](_0x513fd2['QTlZn']):(_0x4e31c8[_0xe003ac(0x2a2)](_0x513fd2[_0xe003ac(0x1f2)]),_0x1f7ebc[_0xe003ac(0x26a)](0x1)));;!_0x5de54f[_0xe003ac(0x1e9)]&&(_0x513fd2[_0xe003ac(0x1cf)](_0x513fd2[_0xe003ac(0x1c6)],_0x513fd2[_0xe003ac(0x26e)])?_0x3d3a80[_0xe003ac(0x28a)](_0x513fd2[_0xe003ac(0x297)]):(_0x1872e9+=_0x513fd2[_0xe003ac(0x26c)],_0x555b6c+=_0xe003ac(0x217)+(_0x3e9e55[_0xe003ac(0x260)]||_0x513fd2[_0xe003ac(0x24b)])+'\x0a',_0xff899d+='\x20\x20Code:\x20'+(_0x59d456[_0xe003ac(0x227)]||_0x513fd2[_0xe003ac(0x24b)])+'\x0a',_0x5e0058+='\x20\x20Stack:\x20'+(_0x273d3c[_0xe003ac(0x27f)]||_0x513fd2[_0xe003ac(0x24b)])+'\x0a'));;if(!_0x5de54f[_0xe003ac(0x264)]){if(_0x513fd2['wnVKD'](_0x513fd2[_0xe003ac(0x23d)],_0x513fd2[_0xe003ac(0x23d)])){const _0x1d8c84={};_0x1d8c84[_0xe003ac(0x280)]=_0x513fd2[_0xe003ac(0x232)],_0x1d8c84['type']=_0x513fd2['dzOTq'];const _0x49d77e={};_0x49d77e[_0xe003ac(0x280)]=_0x513fd2[_0xe003ac(0x239)],_0x49d77e[_0xe003ac(0x23e)]=_0x513fd2[_0xe003ac(0x27e)];const _0x4b8b23={};_0x4b8b23[_0xe003ac(0x280)]=_0x513fd2[_0xe003ac(0x2a4)],_0x4b8b23[_0xe003ac(0x23e)]=_0x513fd2[_0xe003ac(0x27e)];const _0x3eb780={};_0x3eb780[_0xe003ac(0x280)]=_0x513fd2['UBrsb'],_0x3eb780[_0xe003ac(0x23e)]=_0x513fd2[_0xe003ac(0x27e)];const _0x100a6b={};return _0x100a6b[_0xe003ac(0x272)]=_0x1d8c84,_0x100a6b[_0xe003ac(0x20b)]=_0x49d77e,_0x100a6b[_0xe003ac(0x264)]=_0x4b8b23,_0x100a6b['grid-profile']=_0x3eb780,_0x20376c[_0xe003ac(0x275)](_0xfe673a[_0xe003ac(0x2af)])['epilogue'](_0x22c6f9)[_0xe003ac(0x21a)](_0x100a6b)[_0xe003ac(0x2b4)](_0x513fd2[_0xe003ac(0x1c5)])['argv'];}else _0x3d3a80[_0xe003ac(0x28a)](_0x513fd2['fhCKm']);};_0x513fd2[_0xe003ac(0x1dc)](_0x3d3a80[_0xe003ac(0x21e)],0x0)&&(_0x513fd2['ntobl'](_0x513fd2['EAddH'],_0x513fd2['EAddH'])?(_0x45a96a=_0xe003ac(0x1ea)+_0x3d3a80['join'](',\x20')+_0xe003ac(0x2ab),await _0x513fd2[_0xe003ac(0x1dd)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes[_0xe003ac(0x1ee)],_0x513fd2['dzbrs'],_0x513fd2[_0xe003ac(0x26b)],_0x513fd2['pKptB']),logger[_0xe003ac(0x2a2)](_0x45a96a),process[_0xe003ac(0x26a)](0x1)):_0x24a809[_0xe003ac(0x2a2)](_0xe003ac(0x1c8)+_0xbae772['error'][_0xe003ac(0x27f)]));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xe003ac(0x1fa)](_0x5de54f[_0xe003ac(0x1e9)]['toLowerCase']())){if(_0x513fd2[_0xe003ac(0x244)](_0x513fd2[_0xe003ac(0x20c)],_0x513fd2[_0xe003ac(0x20c)])){const _0x5a5d81={};_0x5a5d81[_0xe003ac(0x23e)]=_0x42614e[_0xe003ac(0x1e8)],_0x5a5d81[_0xe003ac(0x260)]=_0xc1d3d7,_0x15716f['sendEventToBackend'](_0x8fca64,_0x5a5d81,_0x513fd2['pKptB'],!![]);}else _0x45a96a=_0x513fd2[_0xe003ac(0x245)],await _0x513fd2[_0xe003ac(0x214)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes[_0xe003ac(0x1ee)],_0x513fd2[_0xe003ac(0x292)],_0x513fd2[_0xe003ac(0x2bf)],_0x513fd2['pKptB']),logger['error'](_0x45a96a),!_0x5de54f[_0xe003ac(0x1e9)]&&(_0x513fd2[_0xe003ac(0x244)](_0x513fd2['roasB'],_0x513fd2['roasB'])?_0x1e9882['info'](_0xe003ac(0x278)+_0xdddcae['clusterName']+_0xe003ac(0x1ca)):(logger[_0xe003ac(0x1c4)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0xe003ac(0x26f)]+'\x20'),_0x5de54f['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry[_0xe003ac(0x285)]=_0x5de54f[_0xe003ac(0x285)],global_registry['cloudProvider']=_0x5de54f[_0xe003ac(0x1e9)],global_registry[_0xe003ac(0x1ef)]=_0x5de54f[_0xe003ac(0x264)];}else _0x1b06b9+=_0xe003ac(0x2a3)+_0x270194[_0xe003ac(0x285)]+_0xe003ac(0x25b);}else{if(_0x5de54f[_0xe003ac(0x24d)]){if(_0x513fd2[_0xe003ac(0x24e)](_0x513fd2[_0xe003ac(0x1d9)],_0x513fd2[_0xe003ac(0x1d9)])){global_registry[_0xe003ac(0x24d)]=_0x5de54f[_0xe003ac(0x24d)],logger['debug']('grid\x20profile\x20flow\x20'+_0x5de54f[_0xe003ac(0x24d)]);const _0x295cc2=_0xe003ac(0x1ec)+AG_API_URL+_0xe003ac(0x1d2),_0x4eb342={};_0x4eb342[_0xe003ac(0x201)]=_0x513fd2[_0xe003ac(0x1e5)],_0x4eb342['headers']=global_registry[_0xe003ac(0x283)],_0x4eb342[_0xe003ac(0x213)]=![];const _0x43932e=_0x4eb342,_0x314885=await _0x513fd2[_0xe003ac(0x25c)](got,_0x295cc2,_0x43932e),_0x39a85c=await _0x513fd2['ZZExH'](responseValidation,_0x314885,_0x513fd2['sDjMP'],_0x513fd2[_0xe003ac(0x229)],_0x5de54f,_0x12f527);let _0x280c5a={};if(_0x513fd2[_0xe003ac(0x219)](_0x39a85c,0xc8)){if(_0x513fd2[_0xe003ac(0x24e)](_0x513fd2[_0xe003ac(0x296)],_0x513fd2[_0xe003ac(0x269)]))_0x11c9e1[_0xe003ac(0x1c4)]('['+_0x379758+_0xe003ac(0x23c)+_0xc13819[_0xe003ac(0x1d0)]+'\x20data\x20:\x20'+_0x4e7ae8[_0xe003ac(0x1f7)]+'\x20error\x20:\x20'+_0x585b43[_0xe003ac(0x2a2)]),_0x4ed28b[_0xe003ac(0x2a2)]&&_0x939328[_0xe003ac(0x2a2)](_0xe003ac(0x1c8)+_0x49e400[_0xe003ac(0x2a2)][_0xe003ac(0x27f)]);else{const _0x4cf13e=JSON[_0xe003ac(0x22d)](_0x314885[_0xe003ac(0x208)]),_0x10c083=_0x4cf13e[_0xe003ac(0x22a)](_0x17e86b=>_0x17e86b[_0xe003ac(0x210)]===_0x5de54f[_0xe003ac(0x24d)])||null;_0x513fd2[_0xe003ac(0x2a5)](isUndefined,_0x10c083)?_0x513fd2[_0xe003ac(0x29a)](_0x513fd2['dtKox'],_0x513fd2['PpZNS'])?(_0x45a96a=_0xe003ac(0x293)+_0x5de54f[_0xe003ac(0x24d)]+_0xe003ac(0x1f5),await _0x513fd2[_0xe003ac(0x214)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes[_0xe003ac(0x1ee)],_0x513fd2[_0xe003ac(0x292)],_0x513fd2[_0xe003ac(0x1ce)],_0x513fd2[_0xe003ac(0x205)]),logger['error'](_0x45a96a),process['exit'](0x1)):_0x1eea13+='Cluster\x20'+_0x24d81a[_0xe003ac(0x285)]+'\x20'+(_0x2c98c1?_0x513fd2['JwIDV']:_0x513fd2[_0xe003ac(0x22c)])+'\x0a\x0a':_0x513fd2[_0xe003ac(0x27b)](_0x513fd2[_0xe003ac(0x1c3)],_0x513fd2[_0xe003ac(0x1c3)])?_0x12ee22['push'](_0x513fd2['QTlZn']):_0x280c5a=_0x10c083;}}else _0x513fd2['sXhiW'](_0x513fd2[_0xe003ac(0x225)],_0x513fd2[_0xe003ac(0x209)])?process['exit'](0x1):_0x2d9c7b[_0xe003ac(0x28a)](_0x513fd2[_0xe003ac(0x297)]);const _0x33b146={};_0x33b146[_0xe003ac(0x23e)]=WS_EVENTS[_0xe003ac(0x1e8)],_0x33b146[_0xe003ac(0x260)]=_0x513fd2[_0xe003ac(0x258)],webSocketUtils['sendEventToBackend'](_0x12f527,_0x33b146),global_registry['cloudProvider']=_0x280c5a[_0xe003ac(0x1e9)],global_registry[_0xe003ac(0x1ef)]=_0x280c5a[_0xe003ac(0x264)],global_registry['clusterName']=_0x280c5a[_0xe003ac(0x285)];}else _0x26617b['info'](_0xe003ac(0x257)+_0x129b77['CLOUD_PROVIDER']+'\x20'),_0x5c0179[_0xe003ac(0x1e9)]=_0x2264b4[_0xe003ac(0x26f)];}else _0x513fd2[_0xe003ac(0x270)](_0x513fd2[_0xe003ac(0x1de)],_0x513fd2[_0xe003ac(0x23f)])?_0x45833b=_0x3438dd:(logger[_0xe003ac(0x2a2)](_0x513fd2[_0xe003ac(0x1f2)]),process[_0xe003ac(0x26a)](0x1));}}}catch(_0x83eb2c){_0x513fd2[_0xe003ac(0x27b)](_0x513fd2[_0xe003ac(0x237)],_0x513fd2[_0xe003ac(0x2b6)])?(_0x45a96a=_0xe003ac(0x21f)+_0x83eb2c+':\x20'+_0x83eb2c[_0xe003ac(0x27f)],logger[_0xe003ac(0x2a2)](_0x45a96a),await _0x513fd2[_0xe003ac(0x2b9)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes['ERROR'],_0x513fd2[_0xe003ac(0x292)],_0x513fd2[_0xe003ac(0x2bf)],_0x513fd2[_0xe003ac(0x205)]),process[_0xe003ac(0x26a)](0x1)):_0x11a7e6[_0xe003ac(0x28a)](_0x513fd2[_0xe003ac(0x243)]);}}function printResponse(_0x2c80f5,_0x1c3044){const _0x50d73d=a17_0x42d2c7,_0xd16389={};_0xd16389[_0x50d73d(0x24a)]=function(_0x9fff75,_0x429567){return _0x9fff75+_0x429567;},_0xd16389[_0x50d73d(0x1e2)]=_0x50d73d(0x202),_0xd16389[_0x50d73d(0x1d3)]='Failure',_0xd16389['yYPRB']=function(_0x54d9e6,_0x21531b){return _0x54d9e6||_0x21531b;},_0xd16389[_0x50d73d(0x1d6)]=_0x50d73d(0x29f),_0xd16389[_0x50d73d(0x25d)]='Error\x20Details:\x0a',_0xd16389[_0x50d73d(0x287)]=function(_0x496b39,_0x49207d){return _0x496b39!==_0x49207d;},_0xd16389[_0x50d73d(0x279)]=_0x50d73d(0x267),_0xd16389['uAUZA']=_0x50d73d(0x1e7);const _0x5ddd07=_0xd16389;logger[_0x50d73d(0x1c4)]('['+_0x2c80f5+_0x50d73d(0x23c)+_0x1c3044[_0x50d73d(0x1d0)]+'\x20data\x20:\x20'+_0x1c3044[_0x50d73d(0x1f7)]+'\x20error\x20:\x20'+_0x1c3044['error']);if(_0x1c3044[_0x50d73d(0x2a2)]){if(_0x5ddd07[_0x50d73d(0x287)](_0x5ddd07[_0x50d73d(0x279)],_0x5ddd07[_0x50d73d(0x24c)]))logger[_0x50d73d(0x2a2)](_0x50d73d(0x1c8)+_0x1c3044[_0x50d73d(0x2a2)][_0x50d73d(0x27f)]);else{const {header:_0x76832e,response:_0x17db09}=_0x464090,{status:_0x3f297f,data:_0x936b34,error:_0x194d90}=_0x17db09;_0x26376d+=_0x76832e+'\x20#'+_0x5ddd07[_0x50d73d(0x24a)](_0x954bbd,0x1)+'\x0a',_0x11837b+='Status:\x20'+(_0x3f297f?_0x5ddd07['sfIFe']:_0x5ddd07['USkBB'])+'\x0a',_0x54a377+='Message:\x20'+_0x5ddd07['yYPRB'](_0x936b34,_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a',_0x194d90&&(_0x336d4e+=_0x5ddd07[_0x50d73d(0x25d)],_0x3a3c98+=_0x50d73d(0x217)+(_0x194d90[_0x50d73d(0x260)]||_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a',_0xd58889+=_0x50d73d(0x246)+(_0x194d90['code']||_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a',_0x3010c5+=_0x50d73d(0x25e)+(_0x194d90[_0x50d73d(0x27f)]||_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a'),_0x4cdfb0+='\x0a\x0a';}}}async function generateReport(_0x4cad5a,_0x3229c7){const _0x21d738=a17_0x42d2c7,_0x4df4fd={'JTANS':function(_0x4e7855,_0x48326d){return _0x4e7855+_0x48326d;},'tMVvc':'Success','YJBQv':'Failure','beVzq':function(_0x3b7ff4,_0x16ed1a){return _0x3b7ff4||_0x16ed1a;},'NiQQa':'N/A','tJyIu':_0x21d738(0x289),'ieyoI':_0x21d738(0x2c0),'GkQFE':function(_0x43c1f2,_0x50d609){return _0x43c1f2!=_0x50d609;},'kVZXP':_0x21d738(0x252),'elSln':_0x21d738(0x298),'tfgvl':function(_0x327c49){return _0x327c49();}};let _0x11e7fd='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x21d738(0x1e9)]+_0x21d738(0x25f);return _0x4cad5a['forEach']((_0x2a7d97,_0x111345)=>{const _0x407b42=_0x21d738,{header:_0x178318,response:_0x40ce33}=_0x2a7d97,{status:_0x7ef4ee,data:_0xdf954e,error:_0x6630bc}=_0x40ce33;_0x11e7fd+=_0x178318+'\x20#'+_0x4df4fd[_0x407b42(0x27a)](_0x111345,0x1)+'\x0a',_0x11e7fd+='Status:\x20'+(_0x7ef4ee?_0x4df4fd[_0x407b42(0x1f1)]:_0x4df4fd[_0x407b42(0x2b0)])+'\x0a',_0x11e7fd+='Message:\x20'+_0x4df4fd['beVzq'](_0xdf954e,_0x4df4fd[_0x407b42(0x22e)])+'\x0a',_0x6630bc&&(_0x11e7fd+=_0x4df4fd[_0x407b42(0x220)],_0x11e7fd+=_0x407b42(0x217)+(_0x6630bc[_0x407b42(0x260)]||_0x4df4fd[_0x407b42(0x22e)])+'\x0a',_0x11e7fd+=_0x407b42(0x246)+(_0x6630bc[_0x407b42(0x227)]||_0x4df4fd[_0x407b42(0x22e)])+'\x0a',_0x11e7fd+=_0x407b42(0x25e)+(_0x6630bc[_0x407b42(0x27f)]||_0x4df4fd[_0x407b42(0x22e)])+'\x0a'),_0x11e7fd+='\x0a\x0a';}),_0x11e7fd+=_0x4df4fd[_0x21d738(0x2a9)],_0x4df4fd['GkQFE'](_0x3229c7,null)?_0x11e7fd+=_0x21d738(0x2a3)+global_registry['clusterName']+'\x20'+(_0x3229c7?_0x4df4fd[_0x21d738(0x29e)]:_0x4df4fd['elSln'])+'\x0a\x0a':_0x11e7fd+='Cluster\x20'+global_registry[_0x21d738(0x285)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x11e7fd+=_0x4df4fd['tfgvl'](getSystemMetaData),_0x11e7fd;};exports[a17_0x42d2c7(0x242)]=async function(_0x46be0f){const _0x37e4f2=a17_0x42d2c7,_0x572f07={'GkNoc':function(_0xf71033){return _0xf71033();},'EfMqO':_0x37e4f2(0x24f),'YbycL':function(_0x2b4bd1,_0x3c2ca8,_0x3dec73,_0x20b239,_0x2237cf,_0x4464ea,_0x2857a0,_0x5579c6){return _0x2b4bd1(_0x3c2ca8,_0x3dec73,_0x20b239,_0x2237cf,_0x4464ea,_0x2857a0,_0x5579c6);},'Qqsjb':_0x37e4f2(0x216),'qFHyF':_0x37e4f2(0x282),'oGCsw':_0x37e4f2(0x2a2),'dQbvA':function(_0x35e084,_0xdc18a1,_0x3c801d,_0x1cf6c2,_0x3a7d3b,_0xbbeb9,_0x36cd15){return _0x35e084(_0xdc18a1,_0x3c801d,_0x1cf6c2,_0x3a7d3b,_0xbbeb9,_0x36cd15);},'kZelX':function(_0x278f78){return _0x278f78();},'VmDnc':_0x37e4f2(0x2b5),'VZhmr':_0x37e4f2(0x1fc),'nWCmF':function(_0x3708fa,_0x10ca6c,_0x5309ec){return _0x3708fa(_0x10ca6c,_0x5309ec);},'nLqWd':function(_0x5eefea,_0x519f21,_0xf710b5){return _0x5eefea(_0x519f21,_0xf710b5);},'CcDCR':_0x37e4f2(0x221),'tNhmi':'toolInstalledResp','QCLIb':_0x37e4f2(0x2a6),'aCvqn':function(_0x2590b8,_0x39071e,_0x21838e){return _0x2590b8(_0x39071e,_0x21838e);},'JOXBr':_0x37e4f2(0x1c2),'AlfeX':function(_0x1d2961){return _0x1d2961();},'ScInn':function(_0x27a50c,_0x582fc1,_0x31afaf){return _0x27a50c(_0x582fc1,_0x31afaf);},'hphba':_0x37e4f2(0x211),'ZDqYX':function(_0x24775a,_0x42957e){return _0x24775a(_0x42957e);},'wtTax':_0x37e4f2(0x28b),'FdxSC':function(_0x594f03,_0xf8cacc,_0x32eb81){return _0x594f03(_0xf8cacc,_0x32eb81);},'sFeYR':_0x37e4f2(0x299),'tbIpd':'Tool\x20Installed','gtpzg':_0x37e4f2(0x277),'nfziB':_0x37e4f2(0x240),'OdkRe':_0x37e4f2(0x248),'lgIJa':function(_0x36eeae,_0x451caf){return _0x36eeae+_0x451caf;},'PHuhd':'utf-8','akOQa':function(_0x4f772c,_0x2a55a5,_0x595b6e,_0xd9c3a0,_0x3d8834,_0x522841,_0x26cae6){return _0x4f772c(_0x2a55a5,_0x595b6e,_0xd9c3a0,_0x3d8834,_0x522841,_0x26cae6);},'AkUXD':'pre-check-failed'};let _0x5ede1a,_0x583fc0;try{global_registry['requestId']=_0x572f07[_0x37e4f2(0x234)](uuidv4);!fs['existsSync'](_0x572f07[_0x37e4f2(0x234)](getCredentialsPath))&&(_0x583fc0=_0x572f07['EfMqO'],logger['error'](_0x583fc0),await _0x572f07[_0x37e4f2(0x28d)](reportToGalactusAndSendToEDS,_0x46be0f,_0x5ede1a,_0x583fc0,messageTypes['ERROR'],_0x572f07[_0x37e4f2(0x291)],_0x572f07['qFHyF'],_0x572f07[_0x37e4f2(0x1f6)]),process[_0x37e4f2(0x26a)](0x1));_0x572f07[_0x37e4f2(0x1df)](sendInstrumentationEvent,_0x46be0f,_0x572f07[_0x37e4f2(0x291)],messageTypes[_0x37e4f2(0x255)],null,null,_0x46be0f);const _0x2c6487=JSON['parse'](fs[_0x37e4f2(0x1da)](_0x572f07[_0x37e4f2(0x27c)](getCredentialsPath)));global_registry[_0x37e4f2(0x218)]=_0x2c6487['Browserstack'][_0x37e4f2(0x1d4)],global_registry[_0x37e4f2(0x276)]=_0x2c6487[_0x37e4f2(0x254)][_0x37e4f2(0x286)];const _0x3bc99b=WS_ENDPOINT[_0x37e4f2(0x231)](_0x572f07[_0x37e4f2(0x1fe)],_0x2c6487['Browserstack'][_0x37e4f2(0x1d4)])[_0x37e4f2(0x231)](_0x572f07[_0x37e4f2(0x262)],_0x2c6487['Browserstack'][_0x37e4f2(0x286)]),_0x37b586={};_0x37b586[_0x37e4f2(0x241)]=ws,_0x37b586[_0x37e4f2(0x274)]=0x36ee80,_0x5ede1a=new ReconnectingWebSocket(_0x3bc99b,[],_0x37b586),global_registry[_0x37e4f2(0x283)]=_0x572f07[_0x37e4f2(0x206)](getAuthHeader,global_registry[_0x37e4f2(0x218)],global_registry['bstackAccesskey']),await _0x572f07[_0x37e4f2(0x261)](inputValidation,_0x46be0f,_0x5ede1a),logger[_0x37e4f2(0x1c4)](_0x37e4f2(0x1fd)+global_registry[_0x37e4f2(0x1e9)]+_0x37e4f2(0x2bd)+global_registry[_0x37e4f2(0x1ef)]);let _0x402cf4=await _0x572f07[_0x37e4f2(0x1df)](getCloudProviderObjectWithOutInit,global_registry[_0x37e4f2(0x1e9)],global_registry[_0x37e4f2(0x285)],_0x572f07[_0x37e4f2(0x2be)],_0x5ede1a,webSocketUtils,_0x46be0f);const _0x2f62fe=await _0x402cf4[_0x37e4f2(0x2a8)]();_0x572f07[_0x37e4f2(0x206)](printResponse,_0x572f07[_0x37e4f2(0x215)],_0x2f62fe),_0x402cf4=await _0x402cf4[_0x37e4f2(0x20d)]();let _0x249da4=![];try{_0x249da4=await _0x402cf4[_0x37e4f2(0x20e)]();}catch(_0x530ca0){const _0x5b8322=_0x572f07[_0x37e4f2(0x1c7)][_0x37e4f2(0x1fb)]('|');let _0xf48a26=0x0;while(!![]){switch(_0x5b8322[_0xf48a26++]){case'0':_0x249da4=null;continue;case'1':await _0x572f07[_0x37e4f2(0x28d)](reportToGalactusAndSendToEDS,_0x46be0f,_0x5ede1a,_0x583fc0,messageTypes[_0x37e4f2(0x1ee)],_0x572f07['Qqsjb'],_0x37e4f2(0x20f)+global_registry['cloudProvider'],_0x572f07[_0x37e4f2(0x1f6)]);continue;case'2':logger[_0x37e4f2(0x2a2)](_0x583fc0);continue;case'3':_0x583fc0+='\x0a'+JSON[_0x37e4f2(0x251)](_0x530ca0[_0x37e4f2(0x27f)]);continue;case'4':_0x583fc0='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x37e4f2(0x285)]+_0x37e4f2(0x2b2)+global_registry['clusterRegion']+_0x37e4f2(0x284)+_0x530ca0;continue;}break;}}_0x249da4&&logger[_0x37e4f2(0x1c4)](_0x37e4f2(0x278)+global_registry[_0x37e4f2(0x285)]+_0x37e4f2(0x1ca));const _0x25d8df=await _0x402cf4[_0x37e4f2(0x20a)]();_0x572f07[_0x37e4f2(0x2bb)](printResponse,_0x572f07['JOXBr'],_0x25d8df);const _0x2869c3=await _0x572f07[_0x37e4f2(0x2a7)](curlRequest);_0x572f07[_0x37e4f2(0x266)](printResponse,_0x572f07[_0x37e4f2(0x204)],_0x2869c3);const _0x456cab=await _0x572f07[_0x37e4f2(0x238)](isTlsSupported,_0x572f07[_0x37e4f2(0x222)]);_0x572f07[_0x37e4f2(0x21d)](printResponse,_0x572f07[_0x37e4f2(0x226)],_0x456cab);const _0x323bbb={};_0x323bbb['header']=_0x572f07['tbIpd'],_0x323bbb['response']=_0x2f62fe;const _0x29a2b0={};_0x29a2b0[_0x37e4f2(0x290)]=_0x572f07[_0x37e4f2(0x26d)],_0x29a2b0[_0x37e4f2(0x2aa)]=_0x25d8df;const _0x957c41={};_0x957c41[_0x37e4f2(0x290)]=_0x572f07[_0x37e4f2(0x1d8)],_0x957c41[_0x37e4f2(0x2aa)]=_0x2869c3;const _0x57f1d3={};_0x57f1d3[_0x37e4f2(0x290)]=_0x572f07[_0x37e4f2(0x22b)],_0x57f1d3['response']=_0x456cab;const _0xb3c938=[_0x323bbb,_0x29a2b0,_0x957c41,_0x57f1d3],_0x59be2b=await _0x572f07[_0x37e4f2(0x261)](generateReport,_0xb3c938,_0x249da4),_0x5e0f0b=new Date(),_0x498755=_0x5e0f0b['getUTCFullYear']()+'_'+_0x572f07[_0x37e4f2(0x253)](_0x5e0f0b['getUTCMonth'](),0x1)+'_'+_0x5e0f0b[_0x37e4f2(0x25a)]()+'_'+_0x5e0f0b[_0x37e4f2(0x207)]()+'_'+_0x5e0f0b[_0x37e4f2(0x28e)](),_0x159882='log/report_'+_0x498755+_0x37e4f2(0x2ac);fs['writeFileSync'](_0x159882,_0x59be2b,_0x572f07[_0x37e4f2(0x1cb)]),logger[_0x37e4f2(0x1c4)](_0x37e4f2(0x230)+_0x159882),process[_0x37e4f2(0x26a)](0x0);}catch(_0x3bd4c5){let _0x500cc6=_0x37e4f2(0x28c)+_0x3bd4c5+'\x20';logger['error'](_0x500cc6),_0x500cc6+='\x0a'+JSON[_0x37e4f2(0x251)](_0x3bd4c5[_0x37e4f2(0x27f)]),logger[_0x37e4f2(0x263)](_0x37e4f2(0x2a0)+_0x3bd4c5[_0x37e4f2(0x27f)]);if(_0x5ede1a){const _0x450bb4={};_0x450bb4['type']=WS_EVENTS[_0x37e4f2(0x1e8)],_0x450bb4['message']=_0x500cc6,webSocketUtils[_0x37e4f2(0x29b)](_0x5ede1a,_0x450bb4,_0x572f07['oGCsw'],!![]);}await webSocketUtils[_0x37e4f2(0x1f8)](0x7d0);const _0x30c30f={};_0x30c30f[_0x37e4f2(0x2a2)]=_0x500cc6,await _0x572f07[_0x37e4f2(0x233)](sendInstrumentationEvent,_0x46be0f,_0x572f07[_0x37e4f2(0x291)],messageTypes[_0x37e4f2(0x1ee)],_0x572f07[_0x37e4f2(0x23a)],_0x30c30f,_0x46be0f),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a18_0x47aa(_0xd4d52e,_0x530aa1){const _0x4e1a56=a18_0x4e1a();return a18_0x47aa=function(_0x47aad4,_0x32f473){_0x47aad4=_0x47aad4-0x123;let _0x3ff393=_0x4e1a56[_0x47aad4];return _0x3ff393;},a18_0x47aa(_0xd4d52e,_0x530aa1);}const a18_0x40cb13=a18_0x47aa;(function(_0x54c912,_0x583ffc){const _0x296566=a18_0x47aa,_0x1bbadc=_0x54c912();while(!![]){try{const _0x1b830f=parseInt(_0x296566(0x134))/0x1*(-parseInt(_0x296566(0x130))/0x2)+parseInt(_0x296566(0x12f))/0x3*(-parseInt(_0x296566(0x13c))/0x4)+parseInt(_0x296566(0x127))/0x5+-parseInt(_0x296566(0x138))/0x6*(-parseInt(_0x296566(0x126))/0x7)+parseInt(_0x296566(0x12c))/0x8*(parseInt(_0x296566(0x129))/0x9)+parseInt(_0x296566(0x131))/0xa*(-parseInt(_0x296566(0x139))/0xb)+parseInt(_0x296566(0x135))/0xc*(parseInt(_0x296566(0x136))/0xd);if(_0x1b830f===_0x583ffc)break;else _0x1bbadc['push'](_0x1bbadc['shift']());}catch(_0x3563b1){_0x1bbadc['push'](_0x1bbadc['shift']());}}}(a18_0x4e1a,0xc82e4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x40cb13(0x123));function a18_0x4e1a(){const _0x3d10ce=['start_commands','45JmVVNo','usage','WxmWY','768536wqMFHp','strict','recommendCommands','519onBAYG','1637070UJqkzB','7194470ASBlzd','ivMcB','help','1yWSmQw','28660548vidWxT','13sVPTUB','epilogue','414438ohgFnj','22sIZQKL','start','demandCommand','1628oceylJ','../config/constants','desc','command','7KUeJNn','1049965iyXDpv'];a18_0x4e1a=function(){return _0x3d10ce;};return a18_0x4e1a();}exports[a18_0x40cb13(0x125)]=a18_0x40cb13(0x13a),exports[a18_0x40cb13(0x124)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x5548a1){const _0x233956=a18_0x40cb13,_0x4c543d={};_0x4c543d['ivMcB']=_0x233956(0x128),_0x4c543d[_0x233956(0x12b)]=_0x233956(0x133);const _0x327215=_0x4c543d;return _0x5548a1[_0x233956(0x12a)](HELP_HEADER_MESSAGE[_0x233956(0x13a)])[_0x233956(0x137)](HELP_FOOTER_MESSAGE)['commandDir'](_0x327215[_0x233956(0x132)])[_0x233956(0x13b)]()[_0x233956(0x12e)]()[_0x233956(0x12d)]()[_0x233956(0x133)](_0x327215[_0x233956(0x12b)]);},exports['handler']=function(_0x5a1793){};
1
+ function a18_0x8d09(_0x4ea1ef,_0x25a317){const _0x20eb12=a18_0x20eb();return a18_0x8d09=function(_0x8d09fd,_0x368442){_0x8d09fd=_0x8d09fd-0x137;let _0xa3446e=_0x20eb12[_0x8d09fd];return _0xa3446e;},a18_0x8d09(_0x4ea1ef,_0x25a317);}const a18_0x2855ab=a18_0x8d09;(function(_0x487ab5,_0x2ed708){const _0x417d08=a18_0x8d09,_0x12a96b=_0x487ab5();while(!![]){try{const _0x2fb43d=parseInt(_0x417d08(0x14e))/0x1*(parseInt(_0x417d08(0x143))/0x2)+-parseInt(_0x417d08(0x139))/0x3*(-parseInt(_0x417d08(0x13b))/0x4)+-parseInt(_0x417d08(0x13c))/0x5+parseInt(_0x417d08(0x146))/0x6+-parseInt(_0x417d08(0x149))/0x7+-parseInt(_0x417d08(0x140))/0x8+parseInt(_0x417d08(0x14c))/0x9;if(_0x2fb43d===_0x2ed708)break;else _0x12a96b['push'](_0x12a96b['shift']());}catch(_0x180def){_0x12a96b['push'](_0x12a96b['shift']());}}}(a18_0x20eb,0x373dc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2855ab(0x13e));function a18_0x20eb(){const _0x19ca9d=['start','2550408koPEPC','Start\x20an\x20existing\x20Automation\x20grid.','handler','1496UmsBiN','demandCommand','usage','2234232MkSOjD','command','builder','1737981SiVSSe','sephW','help','5509998QXYcSQ','epilogue','137KKcrpb','strict','start_commands','commandDir','156eQWHxC','recommendCommands','9256kLDCiA','2070230xngsCX','CiIPL','../config/constants'];a18_0x20eb=function(){return _0x19ca9d;};return a18_0x20eb();}exports[a18_0x2855ab(0x147)]=a18_0x2855ab(0x13f),exports['desc']=a18_0x2855ab(0x141),exports[a18_0x2855ab(0x148)]=function(_0x1567a8){const _0x5a48a8=a18_0x2855ab,_0x382a01={};_0x382a01[_0x5a48a8(0x13d)]=_0x5a48a8(0x137),_0x382a01[_0x5a48a8(0x14a)]=_0x5a48a8(0x14b);const _0x5e7ba0=_0x382a01;return _0x1567a8[_0x5a48a8(0x145)](HELP_HEADER_MESSAGE[_0x5a48a8(0x13f)])[_0x5a48a8(0x14d)](HELP_FOOTER_MESSAGE)[_0x5a48a8(0x138)](_0x5e7ba0[_0x5a48a8(0x13d)])[_0x5a48a8(0x144)]()[_0x5a48a8(0x13a)]()[_0x5a48a8(0x14f)]()['help'](_0x5e7ba0['sephW']);},exports[a18_0x2855ab(0x142)]=function(_0x203c4a){};
@@ -1 +1 @@
1
- const a19_0x5e11cd=a19_0x336d;(function(_0xf0e753,_0x36aa2e){const _0x4bcaac=a19_0x336d,_0x34afcb=_0xf0e753();while(!![]){try{const _0x2817d0=parseInt(_0x4bcaac(0xae))/0x1*(-parseInt(_0x4bcaac(0x9d))/0x2)+-parseInt(_0x4bcaac(0x83))/0x3+-parseInt(_0x4bcaac(0xa5))/0x4+-parseInt(_0x4bcaac(0xc8))/0x5*(parseInt(_0x4bcaac(0x8d))/0x6)+-parseInt(_0x4bcaac(0xbc))/0x7+parseInt(_0x4bcaac(0x80))/0x8+parseInt(_0x4bcaac(0x99))/0x9;if(_0x2817d0===_0x36aa2e)break;else _0x34afcb['push'](_0x34afcb['shift']());}catch(_0x5d9221){_0x34afcb['push'](_0x34afcb['shift']());}}}(a19_0x2663,0x20168));function a19_0x336d(_0x10358e,_0x2f57d0){const _0x266346=a19_0x2663();return a19_0x336d=function(_0x336d37,_0x5e103e){_0x336d37=_0x336d37-0x71;let _0x5882a2=_0x266346[_0x336d37];return _0x5882a2;},a19_0x336d(_0x10358e,_0x2f57d0);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x5e11cd(0xa4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5e11cd(0xa2)),{logger}=require(a19_0x5e11cd(0xb2)),{getCredentialsPath,getGridDetails}=require(a19_0x5e11cd(0x7f)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x5e11cd(0xb1)),{createK8sClient}=require(a19_0x5e11cd(0xbd)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x2663(){const _0x300794=['Browserstack','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','onUEz','stack','Grid\x20started','YHvzN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1023702ZAnRCB','INFO','info','Zgbog','command','body','default','vqKCe','aionG','name','desc','exit','6673563XlxCnu','description','awEDv','stringify','25202tQfZRu','connectionTimeout','replace','statusCode','grid','../../config/constants','clusterName','reconnecting-websocket','209432KfoxiN','ZjnqD','aNZCg','XgaYC','bstackAccesskey','debug','user','usage','Adding\x20Websocket\x20listeners','7TCTWLs','type','HnPVI','../../utils/webSocketUtils','../../config/logger','builder','init-not-called','grid-id','password','error','CqLkR','tgFsL','cloudProvider','Starting\x20grid\x20','962752qoYaCB','../../utils/createk8sClient','<PasswordPlaceholder>','UNOuV','unauthorised','start','gridId','boolean','parse','Start\x20an\x20existing\x20Automation\x20grid.','BKWpf','nvuuo','5sofnWG','start-grid-called','KKNlp','HlLaF','options','ERROR','region','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','gQbHI','argv','clusterRegion','WebSocket','hhEAQ','username','GLsnu','wPksZ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','server-error','../../utils/utilityMethods','795136jJOydi','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','bstackUsername','782247hFgCTk','epilogue','Skip\x20insecure\x20cert\x20verification.'];a19_0x2663=function(){return _0x300794;};return a19_0x2663();}exports[a19_0x5e11cd(0x91)]=a19_0x5e11cd(0xa1),exports[a19_0x5e11cd(0x97)]=a19_0x5e11cd(0xc5),exports[a19_0x5e11cd(0xb3)]=function(_0xeea887){const _0x20c483=a19_0x5e11cd,_0xea5a60={};_0xea5a60[_0x20c483(0x8b)]=_0x20c483(0x74),_0xea5a60[_0x20c483(0xa7)]='string',_0xea5a60[_0x20c483(0xa6)]=_0x20c483(0x85),_0xea5a60['XYtjS']=_0x20c483(0xc3),_0xea5a60[_0x20c483(0xcb)]='help';const _0x38fa0f=_0xea5a60,_0x330bfe={};_0x330bfe[_0x20c483(0x9a)]=_0x38fa0f[_0x20c483(0x8b)],_0x330bfe[_0x20c483(0xaf)]=_0x38fa0f[_0x20c483(0xa7)];const _0x1b60a2={};_0x1b60a2[_0x20c483(0x9a)]=_0x38fa0f[_0x20c483(0xa6)],_0x1b60a2[_0x20c483(0xaf)]=_0x38fa0f['XYtjS'],_0x1b60a2[_0x20c483(0x93)]=![];const _0x33e5f6={};return _0x33e5f6[_0x20c483(0xb5)]=_0x330bfe,_0x33e5f6['skip-tls-cert-verify']=_0x1b60a2,_0xeea887[_0x20c483(0xac)](HELP_HEADER_MESSAGE[_0x20c483(0xc1)])[_0x20c483(0x84)](HELP_FOOTER_MESSAGE)[_0x20c483(0x71)](_0x33e5f6)['help'](_0x38fa0f[_0x20c483(0xcb)])[_0x20c483(0x76)];},exports['handler']=async function(_0x36bd3b){const _0x1ab9a3=a19_0x5e11cd,_0x2ccd6c={'XgaYC':_0x1ab9a3(0x81),'nvuuo':function(_0xb35aac){return _0xb35aac();},'BKWpf':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','aionG':function(_0x26c87f,_0x541ffd,_0x38a6ec,_0x424887,_0x125276,_0x573bd8,_0x1ef6c9){return _0x26c87f(_0x541ffd,_0x38a6ec,_0x424887,_0x125276,_0x573bd8,_0x1ef6c9);},'GLsnu':_0x1ab9a3(0xc9),'UNOuV':_0x1ab9a3(0xb4),'wPksZ':function(_0x456abc,_0x27fdfa,_0x44d458,_0x2d39d1,_0x49c953,_0x1e12fc,_0x3c57f9){return _0x456abc(_0x27fdfa,_0x44d458,_0x2d39d1,_0x49c953,_0x1e12fc,_0x3c57f9);},'OkvqT':function(_0x55d9ad){return _0x55d9ad();},'tgFsL':'<UsernamePlaceholder>','bkaoD':_0x1ab9a3(0xbe),'hhEAQ':_0x1ab9a3(0xad),'onUEz':function(_0x2232ee,_0x5840a8,_0x34220b,_0x1497f4){return _0x2232ee(_0x5840a8,_0x34220b,_0x1497f4);},'HnPVI':function(_0x589262,_0x4aaefa,_0x5c1a49){return _0x589262(_0x4aaefa,_0x5c1a49);},'LXEWK':function(_0x555db9,_0x29a122,_0x2e8647){return _0x555db9(_0x29a122,_0x2e8647);},'SxkVq':_0x1ab9a3(0x8a),'vqKCe':function(_0x1eb989,_0x2f0813){return _0x1eb989===_0x2f0813;},'CqLkR':_0x1ab9a3(0x8c),'gQbHI':function(_0x5caba3,_0x33b9a8,_0x4e0cdc,_0x4dcf17,_0xebeb88,_0x5a7727,_0x5bf703){return _0x5caba3(_0x33b9a8,_0x4e0cdc,_0x4dcf17,_0xebeb88,_0x5a7727,_0x5bf703);},'Zgbog':_0x1ab9a3(0xc0),'awEDv':function(_0x1db813,_0x1f75d0,_0x55a6e6,_0xc2c4fb,_0x5ad49,_0x3b5b81,_0x19b12d){return _0x1db813(_0x1f75d0,_0x55a6e6,_0xc2c4fb,_0x5ad49,_0x3b5b81,_0x19b12d);},'FDQaa':'invalid-grid-id','KKNlp':function(_0x28fa30,_0x327d72,_0x328f0b,_0x563bda,_0x3537f1,_0x2eaf5f,_0x5ca399){return _0x28fa30(_0x327d72,_0x328f0b,_0x563bda,_0x3537f1,_0x2eaf5f,_0x5ca399);},'Uiswh':_0x1ab9a3(0x7e)};let _0x44d5d6;try{!_0x36bd3b[_0x1ab9a3(0xc2)]&&(logger[_0x1ab9a3(0xb7)](_0x2ccd6c[_0x1ab9a3(0xa8)]),process[_0x1ab9a3(0x98)](0x1));!fs['existsSync'](_0x2ccd6c[_0x1ab9a3(0xc7)](getCredentialsPath))&&(logger[_0x1ab9a3(0xb7)](_0x2ccd6c[_0x1ab9a3(0xc6)]),await _0x2ccd6c[_0x1ab9a3(0x95)](sendInstrumentationEvent,_0x36bd3b,_0x2ccd6c[_0x1ab9a3(0x7b)],messageTypes[_0x1ab9a3(0x72)],_0x2ccd6c[_0x1ab9a3(0xbf)],null,_0x36bd3b),process['exit'](0x1));logger[_0x1ab9a3(0x8f)](_0x1ab9a3(0xbb)+_0x36bd3b[_0x1ab9a3(0xc2)]),await _0x2ccd6c[_0x1ab9a3(0x7c)](sendInstrumentationEvent,_0x36bd3b,_0x2ccd6c[_0x1ab9a3(0x7b)],messageTypes[_0x1ab9a3(0x8e)],null,null,_0x36bd3b);const _0x20edcd=JSON[_0x1ab9a3(0xc4)](fs['readFileSync'](_0x2ccd6c['OkvqT'](getCredentialsPath)));global_registry[_0x1ab9a3(0x82)]=_0x20edcd[_0x1ab9a3(0x86)]['username'],global_registry[_0x1ab9a3(0xa9)]=_0x20edcd[_0x1ab9a3(0x86)][_0x1ab9a3(0xb6)];const _0xa551e4=WS_ENDPOINT[_0x1ab9a3(0x9f)](_0x2ccd6c[_0x1ab9a3(0xb9)],_0x20edcd['Browserstack'][_0x1ab9a3(0x7a)])['replace'](_0x2ccd6c['bkaoD'],_0x20edcd[_0x1ab9a3(0x86)][_0x1ab9a3(0xb6)]),_0x56a770={};_0x56a770[_0x1ab9a3(0x78)]=ws,_0x56a770[_0x1ab9a3(0x9e)]=0x36ee80,_0x44d5d6=new ReconnectingWebSocket(_0xa551e4,[],_0x56a770),logger[_0x1ab9a3(0xaa)](_0x2ccd6c[_0x1ab9a3(0x79)]),webSocketUtils['addListeners'](_0x44d5d6,_0x36bd3b[_0x1ab9a3(0xab)],_0x36bd3b[_0x1ab9a3(0xb6)]);const [_0x220a57,_0x5193b1]=await _0x2ccd6c[_0x1ab9a3(0x88)](getGridDetails,_0x20edcd['Browserstack'][_0x1ab9a3(0x7a)],_0x20edcd[_0x1ab9a3(0x86)]['password'],_0x36bd3b[_0x1ab9a3(0xc2)]);if(_0x5193b1){const _0x3a088e=_0x5193b1[_0x1ab9a3(0x8f)];global_registry[_0x1ab9a3(0xba)]=_0x3a088e['cloudProvider'],global_registry[_0x1ab9a3(0x77)]=_0x3a088e[_0x1ab9a3(0x73)],global_registry[_0x1ab9a3(0xa3)]=_0x3a088e[_0x1ab9a3(0xa3)];const _0x260b9e=await _0x2ccd6c['aionG'](getCloudProviderObject,_0x3a088e[_0x1ab9a3(0xba)],_0x3a088e[_0x1ab9a3(0xa3)],_0x3a088e[_0x1ab9a3(0x96)],_0x44d5d6,webSocketUtils,_0x36bd3b),[_0x231bc6,_0x2a26d3,_0x3f5a32,_0x3d093f,_0x3f1a51,_0x5272f2]=await _0x2ccd6c[_0x1ab9a3(0xb0)](createK8sClient,_0x260b9e,_0x36bd3b['skipTlsCertVerify']);await _0x2ccd6c['LXEWK'](scaleUpHubDeployment,_0x2a26d3,_0x3a088e[_0x1ab9a3(0x96)]),logger['info'](_0x2ccd6c['SxkVq']),process[_0x1ab9a3(0x98)](0x0);}_0x2ccd6c[_0x1ab9a3(0x94)](_0x220a57[_0x1ab9a3(0xa0)],0x191)&&(logger[_0x1ab9a3(0xb7)](_0x2ccd6c[_0x1ab9a3(0xb8)]),await _0x2ccd6c[_0x1ab9a3(0x75)](sendInstrumentationEvent,_0x36bd3b,_0x2ccd6c[_0x1ab9a3(0x7b)],messageTypes[_0x1ab9a3(0x72)],_0x2ccd6c[_0x1ab9a3(0x90)],null,_0x36bd3b),process['exit'](0x1)),_0x2ccd6c[_0x1ab9a3(0x94)](_0x220a57[_0x1ab9a3(0xa0)],0x190)&&(logger[_0x1ab9a3(0xb7)](JSON[_0x1ab9a3(0xc4)](_0x220a57[_0x1ab9a3(0x92)])['message']),await _0x2ccd6c[_0x1ab9a3(0x9b)](sendInstrumentationEvent,_0x36bd3b,_0x2ccd6c['GLsnu'],messageTypes[_0x1ab9a3(0x72)],_0x2ccd6c['FDQaa'],null,_0x36bd3b),process['exit'](0x1)),logger[_0x1ab9a3(0xb7)](_0x1ab9a3(0x7d)+JSON[_0x1ab9a3(0x9c)](_0x220a57)),await _0x2ccd6c[_0x1ab9a3(0xca)](sendInstrumentationEvent,_0x36bd3b,_0x2ccd6c[_0x1ab9a3(0x7b)],messageTypes[_0x1ab9a3(0x72)],_0x2ccd6c['Uiswh'],_0x220a57,_0x36bd3b),process[_0x1ab9a3(0x98)](0x1);}catch(_0x38f26f){const _0x148e06=_0x1ab9a3(0x87)+_0x38f26f+'\x20\x0a'+JSON[_0x1ab9a3(0x9c)](_0x38f26f[_0x1ab9a3(0x89)])+'\x20';logger[_0x1ab9a3(0xb7)](_0x148e06),process[_0x1ab9a3(0x98)](0x1);}};
1
+ function a19_0x29f7(){const _0x125eee=['133QxFTyk','region','SPPLd','info','ERROR','addListeners','347994OAHdIx','40SVRowt','77152YvJwfk','tNLzI','skip-tls-cert-verify','server-error','NkkKC','pQgNV','cVFms','HfHwK','../../config/constants','../../utils/webSocketUtils','nTniS','<UsernamePlaceholder>','grid','../../utils/gridComponents','AVnJh','<PasswordPlaceholder>','../../utils/createk8sClient','name','WMLyw','WjuJQ','reconnecting-websocket','stringify','skipTlsCertVerify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','readFileSync','gridId','vqrVu','user','description','clusterRegion','Start\x20an\x20existing\x20Automation\x20grid.','help','Browserstack','64315qrHDHN','63576wosMsH','BaeHm','../../utils/instrumentationUtils','llnWq','handler','replace','bstackAccesskey','error','epilogue','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Grid\x20started','../../config/logger','691911BMyIby','debug','NczcP','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','yDgxS','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','40vuGxAQ','init-not-called','password','bstackUsername','Starting\x20grid\x20','65980nCVGqd','../../cloudproviders/utils','type','tGcBD','default','clusterName','body','INFO','message','IcOIL','../../utils/utilityMethods','string','166590mApYVS','495pRkhIy','username','WebSocket','EfdUJ','command','boolean','statusCode','tQuhj','Skip\x20insecure\x20cert\x20verification.','CVUQr','start','desc','exit','oTSee','cloudProvider','usage','parse','grid-id','argv'];a19_0x29f7=function(){return _0x125eee;};return a19_0x29f7();}function a19_0x40e3(_0x30c4eb,_0x47c471){const _0x29f790=a19_0x29f7();return a19_0x40e3=function(_0x40e3eb,_0x4a4330){_0x40e3eb=_0x40e3eb-0x1f2;let _0x3a04da=_0x29f790[_0x40e3eb];return _0x3a04da;},a19_0x40e3(_0x30c4eb,_0x47c471);}const a19_0x2c5853=a19_0x40e3;(function(_0xfb7631,_0x48426e){const _0x44d56b=a19_0x40e3,_0x3756f9=_0xfb7631();while(!![]){try{const _0x3b8139=parseInt(_0x44d56b(0x222))/0x1+parseInt(_0x44d56b(0x220))/0x2+-parseInt(_0x44d56b(0x251))/0x3+-parseInt(_0x44d56b(0x221))/0x4*(-parseInt(_0x44d56b(0x243))/0x5)+-parseInt(_0x44d56b(0x244))/0x6*(-parseInt(_0x44d56b(0x21a))/0x7)+parseInt(_0x44d56b(0x1f5))/0x8*(parseInt(_0x44d56b(0x206))/0x9)+-parseInt(_0x44d56b(0x1fa))/0xa*(parseInt(_0x44d56b(0x207))/0xb);if(_0x3b8139===_0x48426e)break;else _0x3756f9['push'](_0x3756f9['shift']());}catch(_0x1dd1a9){_0x3756f9['push'](_0x3756f9['shift']());}}}(a19_0x29f7,0x23aba));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2c5853(0x236)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2c5853(0x22a)),{logger}=require(a19_0x2c5853(0x250)),{getCredentialsPath,getGridDetails}=require(a19_0x2c5853(0x204)),{scaleUpHubDeployment}=require(a19_0x2c5853(0x22f)),{sendInstrumentationEvent}=require(a19_0x2c5853(0x246)),webSocketUtils=require(a19_0x2c5853(0x22b)),{createK8sClient}=require(a19_0x2c5853(0x232)),{getCloudProviderObject}=require(a19_0x2c5853(0x1fb));exports[a19_0x2c5853(0x20b)]=a19_0x2c5853(0x22e),exports[a19_0x2c5853(0x212)]=a19_0x2c5853(0x240),exports['builder']=function(_0x4043c2){const _0x3573be=a19_0x2c5853,_0x26cc31={};_0x26cc31['qlhqr']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x26cc31[_0x3573be(0x247)]=_0x3573be(0x205),_0x26cc31[_0x3573be(0x226)]=_0x3573be(0x20f),_0x26cc31[_0x3573be(0x1f3)]=_0x3573be(0x20c),_0x26cc31[_0x3573be(0x245)]='help';const _0x1f0b43=_0x26cc31,_0x2dadf2={};_0x2dadf2[_0x3573be(0x23e)]=_0x1f0b43['qlhqr'],_0x2dadf2[_0x3573be(0x1fc)]=_0x1f0b43[_0x3573be(0x247)];const _0x4629f3={};_0x4629f3[_0x3573be(0x23e)]=_0x1f0b43[_0x3573be(0x226)],_0x4629f3[_0x3573be(0x1fc)]=_0x1f0b43[_0x3573be(0x1f3)],_0x4629f3[_0x3573be(0x1fe)]=![];const _0xbc0daa={};return _0xbc0daa[_0x3573be(0x218)]=_0x2dadf2,_0xbc0daa[_0x3573be(0x224)]=_0x4629f3,_0x4043c2[_0x3573be(0x216)](HELP_HEADER_MESSAGE[_0x3573be(0x211)])[_0x3573be(0x24c)](HELP_FOOTER_MESSAGE)['options'](_0xbc0daa)[_0x3573be(0x241)](_0x1f0b43[_0x3573be(0x245)])[_0x3573be(0x219)];},exports[a19_0x2c5853(0x248)]=async function(_0x26ed3b){const _0x3ce66f=a19_0x2c5853,_0x2a273c={'NWqVw':_0x3ce66f(0x1f4),'xKxbt':function(_0xe24d23){return _0xe24d23();},'AVnJh':_0x3ce66f(0x239),'HfHwK':function(_0x48415f,_0x2a7c38,_0x13dbf7,_0x1faa3b,_0x3c8f1e,_0x97d61b,_0xb40c44){return _0x48415f(_0x2a7c38,_0x13dbf7,_0x1faa3b,_0x3c8f1e,_0x97d61b,_0xb40c44);},'NczcP':'start-grid-called','EfdUJ':_0x3ce66f(0x1f6),'SPPLd':function(_0x39fbbd,_0x5e0800,_0x183fdf,_0x5207c6,_0x345bc1,_0xed9a45,_0x285cbc){return _0x39fbbd(_0x5e0800,_0x183fdf,_0x5207c6,_0x345bc1,_0xed9a45,_0x285cbc);},'DBzbo':function(_0x30c4a4){return _0x30c4a4();},'pQgNV':_0x3ce66f(0x22d),'tGcBD':_0x3ce66f(0x231),'nTniS':'Adding\x20Websocket\x20listeners','oTSee':function(_0x14d38a,_0x9d582a,_0x51d734,_0x36770f){return _0x14d38a(_0x9d582a,_0x51d734,_0x36770f);},'WOuIx':function(_0x1f6119,_0x24dc32,_0x1846c4,_0x4cd04b,_0x3109ff,_0x41bcc6,_0x58a383){return _0x1f6119(_0x24dc32,_0x1846c4,_0x4cd04b,_0x3109ff,_0x41bcc6,_0x58a383);},'IcOIL':function(_0x153bcc,_0x278c5c,_0x23c0e4){return _0x153bcc(_0x278c5c,_0x23c0e4);},'kyCIF':_0x3ce66f(0x24f),'tQuhj':function(_0x4fccfa,_0xf55a2f){return _0x4fccfa===_0xf55a2f;},'tNLzI':_0x3ce66f(0x24e),'WjuJQ':function(_0x3a0de4,_0x20bcc3,_0x2b6d68,_0x4f2583,_0x41809c,_0xfdc485,_0x4c9ceb){return _0x3a0de4(_0x20bcc3,_0x2b6d68,_0x4f2583,_0x41809c,_0xfdc485,_0x4c9ceb);},'vqrVu':'unauthorised','CVUQr':function(_0x1dc509,_0x16120d,_0x38b3c2,_0x102b83,_0x17f8aa,_0x16d3be,_0x344ee5){return _0x1dc509(_0x16120d,_0x38b3c2,_0x102b83,_0x17f8aa,_0x16d3be,_0x344ee5);},'cVFms':'invalid-grid-id','WMLyw':function(_0x5043d2,_0x3ca9fc,_0x5807aa,_0x184c47,_0x2185e1,_0x4ccaa4,_0x2d3817){return _0x5043d2(_0x3ca9fc,_0x5807aa,_0x184c47,_0x2185e1,_0x4ccaa4,_0x2d3817);},'ARHBQ':_0x3ce66f(0x225)};let _0x370a44;try{!_0x26ed3b[_0x3ce66f(0x23b)]&&(logger[_0x3ce66f(0x24b)](_0x2a273c['NWqVw']),process[_0x3ce66f(0x213)](0x1));!fs['existsSync'](_0x2a273c['xKxbt'](getCredentialsPath))&&(logger[_0x3ce66f(0x24b)](_0x2a273c[_0x3ce66f(0x230)]),await _0x2a273c[_0x3ce66f(0x229)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c['NczcP'],messageTypes['ERROR'],_0x2a273c[_0x3ce66f(0x20a)],null,_0x26ed3b),process[_0x3ce66f(0x213)](0x1));logger[_0x3ce66f(0x21d)](_0x3ce66f(0x1f9)+_0x26ed3b['gridId']),await _0x2a273c[_0x3ce66f(0x21c)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c[_0x3ce66f(0x253)],messageTypes[_0x3ce66f(0x201)],null,null,_0x26ed3b);const _0x4fac52=JSON[_0x3ce66f(0x217)](fs[_0x3ce66f(0x23a)](_0x2a273c['DBzbo'](getCredentialsPath)));global_registry[_0x3ce66f(0x1f8)]=_0x4fac52['Browserstack'][_0x3ce66f(0x208)],global_registry[_0x3ce66f(0x24a)]=_0x4fac52[_0x3ce66f(0x242)][_0x3ce66f(0x1f7)];const _0x6051c7=WS_ENDPOINT[_0x3ce66f(0x249)](_0x2a273c[_0x3ce66f(0x227)],_0x4fac52[_0x3ce66f(0x242)]['username'])[_0x3ce66f(0x249)](_0x2a273c[_0x3ce66f(0x1fd)],_0x4fac52[_0x3ce66f(0x242)][_0x3ce66f(0x1f7)]),_0x3249b9={};_0x3249b9[_0x3ce66f(0x209)]=ws,_0x3249b9['connectionTimeout']=0x36ee80,_0x370a44=new ReconnectingWebSocket(_0x6051c7,[],_0x3249b9),logger[_0x3ce66f(0x252)](_0x2a273c[_0x3ce66f(0x22c)]),webSocketUtils[_0x3ce66f(0x21f)](_0x370a44,_0x26ed3b[_0x3ce66f(0x23d)],_0x26ed3b['password']);const [_0x29c082,_0x3ffa1a]=await _0x2a273c[_0x3ce66f(0x214)](getGridDetails,_0x4fac52[_0x3ce66f(0x242)][_0x3ce66f(0x208)],_0x4fac52[_0x3ce66f(0x242)][_0x3ce66f(0x1f7)],_0x26ed3b[_0x3ce66f(0x23b)]);if(_0x3ffa1a){const _0x3ecf2f=_0x3ffa1a[_0x3ce66f(0x21d)];global_registry[_0x3ce66f(0x215)]=_0x3ecf2f[_0x3ce66f(0x215)],global_registry[_0x3ce66f(0x23f)]=_0x3ecf2f[_0x3ce66f(0x21b)],global_registry[_0x3ce66f(0x1ff)]=_0x3ecf2f[_0x3ce66f(0x1ff)];const _0x5b6c76=await _0x2a273c['WOuIx'](getCloudProviderObject,_0x3ecf2f[_0x3ce66f(0x215)],_0x3ecf2f[_0x3ce66f(0x1ff)],_0x3ecf2f[_0x3ce66f(0x233)],_0x370a44,webSocketUtils,_0x26ed3b),[_0xfb8480,_0x22a5fe,_0x3d9cab,_0x935723,_0x44b798,_0x3f4c81]=await _0x2a273c[_0x3ce66f(0x203)](createK8sClient,_0x5b6c76,_0x26ed3b[_0x3ce66f(0x238)]);await _0x2a273c[_0x3ce66f(0x203)](scaleUpHubDeployment,_0x22a5fe,_0x3ecf2f[_0x3ce66f(0x233)]),logger[_0x3ce66f(0x21d)](_0x2a273c['kyCIF']),process['exit'](0x0);}_0x2a273c['tQuhj'](_0x29c082[_0x3ce66f(0x20d)],0x191)&&(logger[_0x3ce66f(0x24b)](_0x2a273c[_0x3ce66f(0x223)]),await _0x2a273c[_0x3ce66f(0x235)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c['NczcP'],messageTypes[_0x3ce66f(0x21e)],_0x2a273c[_0x3ce66f(0x23c)],null,_0x26ed3b),process[_0x3ce66f(0x213)](0x1)),_0x2a273c[_0x3ce66f(0x20e)](_0x29c082[_0x3ce66f(0x20d)],0x190)&&(logger[_0x3ce66f(0x24b)](JSON[_0x3ce66f(0x217)](_0x29c082[_0x3ce66f(0x200)])[_0x3ce66f(0x202)]),await _0x2a273c[_0x3ce66f(0x210)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c[_0x3ce66f(0x253)],messageTypes[_0x3ce66f(0x21e)],_0x2a273c[_0x3ce66f(0x228)],null,_0x26ed3b),process[_0x3ce66f(0x213)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3ce66f(0x237)](_0x29c082)),await _0x2a273c[_0x3ce66f(0x234)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c[_0x3ce66f(0x253)],messageTypes['ERROR'],_0x2a273c['ARHBQ'],_0x29c082,_0x26ed3b),process[_0x3ce66f(0x213)](0x1);}catch(_0x4a501d){const _0x48e25b=_0x3ce66f(0x1f2)+_0x4a501d+'\x20\x0a'+JSON[_0x3ce66f(0x237)](_0x4a501d[_0x3ce66f(0x24d)])+'\x20';logger[_0x3ce66f(0x24b)](_0x48e25b),process[_0x3ce66f(0x213)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x32c692=a20_0x4972;(function(_0x182701,_0x4781dd){const _0x2addfa=a20_0x4972,_0x2d02c3=_0x182701();while(!![]){try{const _0x3b559c=parseInt(_0x2addfa(0x135))/0x1+parseInt(_0x2addfa(0x137))/0x2+parseInt(_0x2addfa(0x12a))/0x3*(parseInt(_0x2addfa(0x138))/0x4)+parseInt(_0x2addfa(0x13b))/0x5*(-parseInt(_0x2addfa(0x141))/0x6)+parseInt(_0x2addfa(0x132))/0x7*(parseInt(_0x2addfa(0x133))/0x8)+parseInt(_0x2addfa(0x13f))/0x9*(parseInt(_0x2addfa(0x13a))/0xa)+-parseInt(_0x2addfa(0x13c))/0xb;if(_0x3b559c===_0x4781dd)break;else _0x2d02c3['push'](_0x2d02c3['shift']());}catch(_0x21c1fe){_0x2d02c3['push'](_0x2d02c3['shift']());}}}(a20_0x52de,0x1f882));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x32c692(0x12b));function a20_0x4972(_0x4a514c,_0xe4175a){const _0x52de1e=a20_0x52de();return a20_0x4972=function(_0x497291,_0x5b5563){_0x497291=_0x497291-0x128;let _0xf93035=_0x52de1e[_0x497291];return _0xf93035;},a20_0x4972(_0x4a514c,_0xe4175a);}exports[a20_0x32c692(0x140)]=a20_0x32c692(0x13e),exports[a20_0x32c692(0x129)]=a20_0x32c692(0x12c),exports[a20_0x32c692(0x13d)]=function(_0x449158){const _0x319f9b=a20_0x32c692,_0x431413={};_0x431413[_0x319f9b(0x131)]=_0x319f9b(0x134),_0x431413[_0x319f9b(0x12e)]=_0x319f9b(0x130);const _0xc67f40=_0x431413;return _0x449158['usage'](HELP_HEADER_MESSAGE[_0x319f9b(0x13e)])[_0x319f9b(0x139)](HELP_FOOTER_MESSAGE)[_0x319f9b(0x12d)](_0xc67f40[_0x319f9b(0x131)])[_0x319f9b(0x12f)]()['recommendCommands']()[_0x319f9b(0x128)]()[_0x319f9b(0x130)](_0xc67f40[_0x319f9b(0x12e)]);},exports[a20_0x32c692(0x136)]=function(_0x6ddf13){};function a20_0x52de(){const _0xa32164=['epilogue','40LhfZDG','25OflitW','5868632AfNDLh','builder','stop','557415QvUcsg','command','301638heVQMN','strict','desc','6IzjbMr','../config/constants','Stop\x20a\x20running\x20Automation\x20grid.','commandDir','sxEDX','demandCommand','help','hfDMZ','1183931ZIhWAN','8IwiRsm','stop_commands','115162QVDEuf','handler','388532FKrBXA','375460gcotpv'];a20_0x52de=function(){return _0xa32164;};return a20_0x52de();}
1
+ const a20_0x58eba8=a20_0x4083;(function(_0x4a7870,_0x5ab7b0){const _0x2886b3=a20_0x4083,_0x23ea86=_0x4a7870();while(!![]){try{const _0x595707=-parseInt(_0x2886b3(0x88))/0x1+parseInt(_0x2886b3(0x83))/0x2+-parseInt(_0x2886b3(0x76))/0x3+-parseInt(_0x2886b3(0x81))/0x4+parseInt(_0x2886b3(0x86))/0x5*(parseInt(_0x2886b3(0x75))/0x6)+-parseInt(_0x2886b3(0x7d))/0x7+-parseInt(_0x2886b3(0x84))/0x8*(-parseInt(_0x2886b3(0x73))/0x9);if(_0x595707===_0x5ab7b0)break;else _0x23ea86['push'](_0x23ea86['shift']());}catch(_0x45e8af){_0x23ea86['push'](_0x23ea86['shift']());}}}(a20_0x1ae7,0xe5f37));function a20_0x4083(_0x2797dd,_0x53c49b){const _0x1ae7c0=a20_0x1ae7();return a20_0x4083=function(_0x408364,_0xf823a5){_0x408364=_0x408364-0x73;let _0x2109d9=_0x1ae7c0[_0x408364];return _0x2109d9;},a20_0x4083(_0x2797dd,_0x53c49b);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x58eba8(0x78));exports[a20_0x58eba8(0x7e)]=a20_0x58eba8(0x7a),exports[a20_0x58eba8(0x85)]=a20_0x58eba8(0x7f),exports[a20_0x58eba8(0x89)]=function(_0x3cea9f){const _0x498de0=a20_0x58eba8,_0x1b95bd={};_0x1b95bd[_0x498de0(0x79)]=_0x498de0(0x80),_0x1b95bd[_0x498de0(0x7c)]=_0x498de0(0x82);const _0x3e2401=_0x1b95bd;return _0x3cea9f[_0x498de0(0x77)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x498de0(0x7b)](_0x3e2401[_0x498de0(0x79)])[_0x498de0(0x8b)]()[_0x498de0(0x87)]()[_0x498de0(0x8a)]()[_0x498de0(0x82)](_0x3e2401[_0x498de0(0x7c)]);},exports[a20_0x58eba8(0x74)]=function(_0xa9e9ee){};function a20_0x1ae7(){const _0x5c13e5=['command','Stop\x20a\x20running\x20Automation\x20grid.','stop_commands','1759164buxwzB','help','666080oKJcte','243968DmOHms','desc','15HPTvuU','recommendCommands','1063868sIHagw','builder','strict','demandCommand','1179UmleQs','handler','442776YrRbiP','3259269dBYhoS','usage','../config/constants','XONKa','stop','commandDir','ycUwS','7122101lUMtoh'];a20_0x1ae7=function(){return _0x5c13e5;};return a20_0x1ae7();}
@@ -1 +1 @@
1
- const a21_0xd9e9fd=a21_0xdc6f;(function(_0x2257df,_0x40ee2e){const _0x596232=a21_0xdc6f,_0x1cdace=_0x2257df();while(!![]){try{const _0x2b109c=parseInt(_0x596232(0x213))/0x1*(-parseInt(_0x596232(0x1d3))/0x2)+-parseInt(_0x596232(0x200))/0x3+parseInt(_0x596232(0x216))/0x4*(-parseInt(_0x596232(0x1c7))/0x5)+parseInt(_0x596232(0x1d4))/0x6*(-parseInt(_0x596232(0x1d9))/0x7)+parseInt(_0x596232(0x1de))/0x8+parseInt(_0x596232(0x1c9))/0x9*(parseInt(_0x596232(0x21d))/0xa)+-parseInt(_0x596232(0x1c0))/0xb*(-parseInt(_0x596232(0x1d0))/0xc);if(_0x2b109c===_0x40ee2e)break;else _0x1cdace['push'](_0x1cdace['shift']());}catch(_0x53719c){_0x1cdace['push'](_0x1cdace['shift']());}}}(a21_0x5d21,0xc0b82));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0xd9e9fd(0x1f4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0xd9e9fd(0x1c6)),{logger}=require(a21_0xd9e9fd(0x1ec)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0xd9e9fd(0x1df)),{sendInstrumentationEvent}=require(a21_0xd9e9fd(0x21e)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0xd9e9fd(0x204)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0xdc6f(_0x555877,_0x1ea8d9){const _0x5d21e2=a21_0x5d21();return a21_0xdc6f=function(_0xdc6f43,_0x2d33b0){_0xdc6f43=_0xdc6f43-0x1be;let _0x4c0d62=_0x5d21e2[_0xdc6f43];return _0x4c0d62;},a21_0xdc6f(_0x555877,_0x1ea8d9);}function a21_0x5d21(){const _0x2c456e=['../../utils/createk8sClient','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','klEcw','builder','PpuhL','qdySq','<PasswordPlaceholder>','type','replace','bstackAccesskey','username','init-not-called','error','LbScR','stack','83eXEQpN','BRTiJ','rBWAz','56580OEZMPy','exit','WebSocket','connectionTimeout','grid','desc','skipTlsCertVerify','30280KDfsUm','../../utils/instrumentationUtils','name','ITeAF','22kLgUpc','epilogue','gridId','QptvD','FaJhz','ERROR','../../config/constants','25cYTrjz','AZFgs','2637QRcqmB','skip-tls-cert-verify','password','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','UJKlF','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','3793548WQZaTj','STGZF','parse','8608yoOuHF','2349606FEPciF','ZkuXM','handler','body','Stop\x20a\x20running\x20Automation\x20grid.','21nvfLjC','DRHUw','string','NuqXt','cloudProvider','8378688ZaJoej','../../utils/gridComponents','stringify','existsSync','user','description','HriBq','region','Adding\x20Websocket\x20listeners','Grid\x20stoppped.','bpaEO','WyLJS','invalid-grid-id','clusterRegion','../../config/logger','<UsernamePlaceholder>','grid-id','INFO','QcFdh','Skip\x20insecure\x20cert\x20verification.','UDjrK','command','reconnecting-websocket','boolean','clusterName','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','message','uYbPs','stop-grid-called','debug','OQkRJ','Browserstack','info','OBdTS','523980cLrJif','bstackUsername','AUSSa','server-error'];a21_0x5d21=function(){return _0x2c456e;};return a21_0x5d21();}exports[a21_0xd9e9fd(0x1f3)]=a21_0xd9e9fd(0x21a),exports[a21_0xd9e9fd(0x21b)]=a21_0xd9e9fd(0x1d8),exports[a21_0xd9e9fd(0x207)]=function(_0x9f5da0){const _0x30ce0=a21_0xd9e9fd,_0x5a1109={};_0x5a1109[_0x30ce0(0x1fc)]=_0x30ce0(0x1f7),_0x5a1109['QptvD']=_0x30ce0(0x1db),_0x5a1109[_0x30ce0(0x208)]=_0x30ce0(0x1f1),_0x5a1109[_0x30ce0(0x215)]=_0x30ce0(0x1f5),_0x5a1109[_0x30ce0(0x214)]='help';const _0x1d624f=_0x5a1109,_0x73fd5a={};_0x73fd5a[_0x30ce0(0x1e3)]=_0x1d624f['OQkRJ'],_0x73fd5a[_0x30ce0(0x20b)]=_0x1d624f[_0x30ce0(0x1c3)];const _0x201299={};_0x201299[_0x30ce0(0x1e3)]=_0x1d624f[_0x30ce0(0x208)],_0x201299[_0x30ce0(0x20b)]=_0x1d624f[_0x30ce0(0x215)],_0x201299['default']=![];const _0x7f30fd={};return _0x7f30fd[_0x30ce0(0x1ee)]=_0x73fd5a,_0x7f30fd[_0x30ce0(0x1ca)]=_0x201299,_0x9f5da0['usage'](HELP_HEADER_MESSAGE['stop'])[_0x30ce0(0x1c1)](HELP_FOOTER_MESSAGE)['options'](_0x7f30fd)['help'](_0x1d624f[_0x30ce0(0x214)])['argv'];},exports[a21_0xd9e9fd(0x1d6)]=async function(_0x54033b){const _0x2d971=a21_0xd9e9fd,_0x44b2b9={'ZkuXM':_0x2d971(0x1cc),'klEcw':function(_0x5bb5c8){return _0x5bb5c8();},'LbScR':_0x2d971(0x1cf),'ITeAF':function(_0x31d569,_0xdec191,_0x41dd9b,_0x3bdef7,_0x327c5d,_0x596785,_0x1c3c28){return _0x31d569(_0xdec191,_0x41dd9b,_0x3bdef7,_0x327c5d,_0x596785,_0x1c3c28);},'FaJhz':_0x2d971(0x1fa),'DRHUw':_0x2d971(0x20f),'AZFgs':function(_0x33d358,_0x271e98,_0xc4536,_0x33bfd4,_0x5884f9,_0x16de25,_0x5ec5b3){return _0x33d358(_0x271e98,_0xc4536,_0x33bfd4,_0x5884f9,_0x16de25,_0x5ec5b3);},'WCRHn':function(_0x312701){return _0x312701();},'UDjrK':_0x2d971(0x1ed),'WyLJS':_0x2d971(0x20a),'NuqXt':_0x2d971(0x1e6),'HriBq':function(_0xd55195,_0x13b448,_0x214bf1,_0x2f5779){return _0xd55195(_0x13b448,_0x214bf1,_0x2f5779);},'QcFdh':function(_0x36f91b,_0x5d8bba,_0x31a44b,_0x3889bf,_0xf94443,_0x455929,_0x18103f){return _0x36f91b(_0x5d8bba,_0x31a44b,_0x3889bf,_0xf94443,_0x455929,_0x18103f);},'UOetj':function(_0x2e9e4f,_0x1c92a5,_0xe03c7f){return _0x2e9e4f(_0x1c92a5,_0xe03c7f);},'bpaEO':function(_0x36a771,_0x3b45da,_0x4112d2){return _0x36a771(_0x3b45da,_0x4112d2);},'OBdTS':_0x2d971(0x1e7),'AUSSa':function(_0x2d3e78,_0x2b8498){return _0x2d3e78===_0x2b8498;},'qdySq':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','STGZF':'unauthorised','VBnqh':_0x2d971(0x1ea),'UJKlF':function(_0xf4ca90,_0x43869e,_0x48937b,_0x45976f,_0x521957,_0x2d1ab8,_0x430718){return _0xf4ca90(_0x43869e,_0x48937b,_0x45976f,_0x521957,_0x2d1ab8,_0x430718);},'uYbPs':_0x2d971(0x203)};let _0x4f5e7e;try{!_0x54033b['gridId']&&(logger[_0x2d971(0x210)](_0x44b2b9[_0x2d971(0x1d5)]),process[_0x2d971(0x217)](0x1));!fs[_0x2d971(0x1e1)](_0x44b2b9[_0x2d971(0x206)](getCredentialsPath))&&(logger[_0x2d971(0x210)](_0x44b2b9[_0x2d971(0x211)]),await _0x44b2b9[_0x2d971(0x1bf)](sendInstrumentationEvent,_0x54033b,_0x44b2b9[_0x2d971(0x1c4)],messageTypes[_0x2d971(0x1c5)],_0x44b2b9[_0x2d971(0x1da)],null,_0x54033b),process[_0x2d971(0x217)](0x1));logger[_0x2d971(0x1fe)]('Stopping\x20grid\x20'+_0x54033b[_0x2d971(0x1c2)]),await _0x44b2b9[_0x2d971(0x1c8)](sendInstrumentationEvent,_0x54033b,_0x44b2b9['FaJhz'],messageTypes[_0x2d971(0x1ef)],null,null,_0x54033b);const _0x3c4470=JSON[_0x2d971(0x1d2)](fs['readFileSync'](_0x44b2b9['WCRHn'](getCredentialsPath)));global_registry[_0x2d971(0x201)]=_0x3c4470[_0x2d971(0x1fd)]['username'],global_registry[_0x2d971(0x20d)]=_0x3c4470[_0x2d971(0x1fd)]['password'];const _0x495076=WS_ENDPOINT[_0x2d971(0x20c)](_0x44b2b9[_0x2d971(0x1f2)],_0x3c4470[_0x2d971(0x1fd)][_0x2d971(0x20e)])[_0x2d971(0x20c)](_0x44b2b9[_0x2d971(0x1e9)],_0x3c4470[_0x2d971(0x1fd)][_0x2d971(0x1cb)]),_0x259d13={};_0x259d13[_0x2d971(0x218)]=ws,_0x259d13[_0x2d971(0x219)]=0x36ee80,_0x4f5e7e=new ReconnectingWebSocket(_0x495076,[],_0x259d13),logger[_0x2d971(0x1fb)](_0x44b2b9[_0x2d971(0x1dc)]),webSocketUtils['addListeners'](_0x4f5e7e,_0x54033b[_0x2d971(0x1e2)],_0x54033b[_0x2d971(0x1cb)]);const [_0x531fe3,_0x5a1834]=await _0x44b2b9[_0x2d971(0x1e4)](getGridDetails,_0x3c4470['Browserstack']['username'],_0x3c4470[_0x2d971(0x1fd)][_0x2d971(0x1cb)],_0x54033b[_0x2d971(0x1c2)]);if(_0x5a1834){const _0x5d8bf1=_0x5a1834[_0x2d971(0x1fe)];global_registry[_0x2d971(0x1dd)]=_0x5d8bf1['cloudProvider'],global_registry[_0x2d971(0x1eb)]=_0x5d8bf1[_0x2d971(0x1e5)],global_registry[_0x2d971(0x1f6)]=_0x5d8bf1['clusterName'];const _0x23d73e=await _0x44b2b9[_0x2d971(0x1f0)](getCloudProviderObject,_0x5d8bf1[_0x2d971(0x1dd)],_0x5d8bf1[_0x2d971(0x1f6)],_0x5d8bf1[_0x2d971(0x1be)],_0x4f5e7e,webSocketUtils,_0x54033b),[_0x20b507,_0x57ff61,_0x299ff7,_0x4f0a59,_0x2b08cd,_0x4157fa]=await _0x44b2b9['UOetj'](createK8sClient,_0x23d73e,_0x54033b[_0x2d971(0x21c)]);await _0x44b2b9[_0x2d971(0x1e8)](scaleDownHubDeployment,_0x57ff61,_0x5d8bf1[_0x2d971(0x1be)]),logger[_0x2d971(0x1fe)](_0x44b2b9[_0x2d971(0x1ff)]),process[_0x2d971(0x217)](0x0);}_0x44b2b9[_0x2d971(0x202)](_0x531fe3['statusCode'],0x191)&&(logger[_0x2d971(0x210)](_0x44b2b9[_0x2d971(0x209)]),await _0x44b2b9[_0x2d971(0x1bf)](sendInstrumentationEvent,_0x54033b,_0x44b2b9[_0x2d971(0x1c4)],messageTypes[_0x2d971(0x1c5)],_0x44b2b9[_0x2d971(0x1d1)],null,_0x54033b),process[_0x2d971(0x217)](0x1)),_0x44b2b9[_0x2d971(0x202)](_0x531fe3['statusCode'],0x190)&&(logger['error'](JSON[_0x2d971(0x1d2)](_0x531fe3[_0x2d971(0x1d7)])[_0x2d971(0x1f8)]),await _0x44b2b9[_0x2d971(0x1c8)](sendInstrumentationEvent,_0x54033b,_0x44b2b9[_0x2d971(0x1c4)],messageTypes[_0x2d971(0x1c5)],_0x44b2b9['VBnqh'],null,_0x54033b),process[_0x2d971(0x217)](0x1)),logger['error'](_0x2d971(0x205)+JSON[_0x2d971(0x1e0)](_0x531fe3)),await _0x44b2b9[_0x2d971(0x1cd)](sendInstrumentationEvent,_0x54033b,_0x44b2b9[_0x2d971(0x1c4)],messageTypes[_0x2d971(0x1c5)],_0x44b2b9[_0x2d971(0x1f9)],_0x531fe3,_0x54033b),process['exit'](0x1);}catch(_0x2ea805){const _0x18e1e7=_0x2d971(0x1ce)+_0x2ea805+'\x20\x0a'+JSON[_0x2d971(0x1e0)](_0x2ea805[_0x2d971(0x212)])+'\x20';logger[_0x2d971(0x210)](_0x18e1e7),process['exit'](0x1);}};
1
+ const a21_0x3a6df5=a21_0x73f3;(function(_0x4332cd,_0x176f5b){const _0x3419e1=a21_0x73f3,_0x45afc3=_0x4332cd();while(!![]){try{const _0xdae635=parseInt(_0x3419e1(0x18e))/0x1*(-parseInt(_0x3419e1(0x1d5))/0x2)+-parseInt(_0x3419e1(0x1c3))/0x3*(-parseInt(_0x3419e1(0x185))/0x4)+-parseInt(_0x3419e1(0x19f))/0x5*(-parseInt(_0x3419e1(0x187))/0x6)+-parseInt(_0x3419e1(0x193))/0x7*(parseInt(_0x3419e1(0x1d2))/0x8)+parseInt(_0x3419e1(0x1ac))/0x9*(-parseInt(_0x3419e1(0x195))/0xa)+parseInt(_0x3419e1(0x1cf))/0xb+parseInt(_0x3419e1(0x1c8))/0xc;if(_0xdae635===_0x176f5b)break;else _0x45afc3['push'](_0x45afc3['shift']());}catch(_0x1a1fd7){_0x45afc3['push'](_0x45afc3['shift']());}}}(a21_0x1fa1,0xbcf93));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3a6df5(0x19d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3a6df5(0x1ba)),{logger}=require(a21_0x3a6df5(0x188)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x3a6df5(0x1b0)),webSocketUtils=require(a21_0x3a6df5(0x19a)),{createK8sClient}=require(a21_0x3a6df5(0x180)),{getCloudProviderObject}=require(a21_0x3a6df5(0x1a7));function a21_0x73f3(_0x23da9d,_0x5db444){const _0x1fa1fb=a21_0x1fa1();return a21_0x73f3=function(_0x73f3b5,_0x23a82c){_0x73f3b5=_0x73f3b5-0x177;let _0xa67b31=_0x1fa1fb[_0x73f3b5];return _0xa67b31;},a21_0x73f3(_0x23da9d,_0x5db444);}function a21_0x1fa1(){const _0x3a02b3=['debug','../../utils/instrumentationUtils','grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Browserstack','usage','stop-grid-called','help','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','password','gridId','../../config/constants','Stop\x20a\x20running\x20Automation\x20grid.','TdHGZ','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','WebSocket','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','skipTlsCertVerify','igEJK','3Khimsb','command','xqSxa','Stopping\x20grid\x20','unauthorised','7047684naAasJ','cloudProvider','xUqYE','grid','info','exit','handler','4448081BohdPL','OysMN','default','8DvgMXG','AoQSN','xWeVK','298jhiaAH','mgOlc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','KHyNU','<UsernamePlaceholder>','init-not-called','name','invalid-grid-id','desc','kSbPL','builder','AUilB','stack','XWZqX','../../utils/createk8sClient','statusCode','voKDX','stringify','boolean','3699416ugsHlA','region','2579046mNvESP','../../config/logger','description','ERROR','username','message','Adding\x20Websocket\x20listeners','7951LKiHKw','XiBWS','replace','<PasswordPlaceholder>','options','280294ZBhUzR','stop','3887190ZTutxd','server-error','Kclid','clusterRegion','clusterName','../../utils/webSocketUtils','xNlSq','argv','reconnecting-websocket','cCELN','10NyLXuP','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','epilogue','lnvGX','error','readFileSync','skip-tls-cert-verify','../../cloudproviders/utils','MnikC','VHgeK','existsSync','Skip\x20insecure\x20cert\x20verification.','18jOzTwS','iOnWl','type'];a21_0x1fa1=function(){return _0x3a02b3;};return a21_0x1fa1();}exports[a21_0x3a6df5(0x1c4)]=a21_0x3a6df5(0x1cb),exports[a21_0x3a6df5(0x17a)]=a21_0x3a6df5(0x1bb),exports[a21_0x3a6df5(0x17c)]=function(_0x4b1699){const _0x40495d=a21_0x3a6df5,_0x5be221={};_0x5be221[_0x40495d(0x1a3)]=_0x40495d(0x1c0),_0x5be221[_0x40495d(0x1d3)]='string',_0x5be221[_0x40495d(0x1a9)]=_0x40495d(0x1ab),_0x5be221[_0x40495d(0x19b)]=_0x40495d(0x184),_0x5be221[_0x40495d(0x17b)]=_0x40495d(0x1b6);const _0x3a2291=_0x5be221,_0xe1b754={};_0xe1b754[_0x40495d(0x189)]=_0x3a2291['lnvGX'],_0xe1b754[_0x40495d(0x1ae)]=_0x3a2291['AoQSN'];const _0x22d124={};_0x22d124['description']=_0x3a2291[_0x40495d(0x1a9)],_0x22d124[_0x40495d(0x1ae)]=_0x3a2291[_0x40495d(0x19b)],_0x22d124[_0x40495d(0x1d1)]=![];const _0x269a3e={};return _0x269a3e[_0x40495d(0x1b1)]=_0xe1b754,_0x269a3e[_0x40495d(0x1a6)]=_0x22d124,_0x4b1699[_0x40495d(0x1b4)](HELP_HEADER_MESSAGE[_0x40495d(0x194)])[_0x40495d(0x1a2)](HELP_FOOTER_MESSAGE)[_0x40495d(0x192)](_0x269a3e)[_0x40495d(0x1b6)](_0x3a2291[_0x40495d(0x17b)])[_0x40495d(0x19c)];},exports[a21_0x3a6df5(0x1ce)]=async function(_0x30cd66){const _0x47a407=a21_0x3a6df5,_0x4eff6f={'HiDry':_0x47a407(0x1be),'cCELN':function(_0x25fcb6){return _0x25fcb6();},'xqSxa':_0x47a407(0x1b2),'OysMN':function(_0x395bbd,_0x482fce,_0x4e4aeb,_0x187c37,_0x2fa913,_0x14165e,_0x114d24){return _0x395bbd(_0x482fce,_0x4e4aeb,_0x187c37,_0x2fa913,_0x14165e,_0x114d24);},'voKDX':_0x47a407(0x1b5),'iOnWl':_0x47a407(0x177),'adePw':function(_0x487299,_0x5932ce,_0x5b4e4b,_0x508508,_0x53c5d4,_0x5133de,_0x3c51e6){return _0x487299(_0x5932ce,_0x5b4e4b,_0x508508,_0x53c5d4,_0x5133de,_0x3c51e6);},'jfBWv':function(_0x289c61){return _0x289c61();},'igEJK':_0x47a407(0x1d9),'MnikC':_0x47a407(0x191),'XWZqX':_0x47a407(0x18d),'TdHGZ':function(_0x502d31,_0x460431,_0x5cc550,_0x3a8e5c){return _0x502d31(_0x460431,_0x5cc550,_0x3a8e5c);},'XiBWS':function(_0x5329a5,_0x628081,_0x26a463,_0x19b893,_0xc280b,_0x29c0c7,_0x1eba87){return _0x5329a5(_0x628081,_0x26a463,_0x19b893,_0xc280b,_0x29c0c7,_0x1eba87);},'KHyNU':function(_0x2302f4,_0x3a70e0,_0x293b21){return _0x2302f4(_0x3a70e0,_0x293b21);},'AUilB':'Grid\x20stoppped.','Kclid':function(_0x22f0df,_0x24c22f){return _0x22f0df===_0x24c22f;},'ZPgMY':_0x47a407(0x1a1),'xUqYE':_0x47a407(0x1c7),'mgOlc':_0x47a407(0x179),'xWeVK':_0x47a407(0x196)};let _0x3e3c26;try{!_0x30cd66['gridId']&&(logger['error'](_0x4eff6f['HiDry']),process[_0x47a407(0x1cd)](0x1));!fs[_0x47a407(0x1aa)](_0x4eff6f[_0x47a407(0x19e)](getCredentialsPath))&&(logger[_0x47a407(0x1a4)](_0x4eff6f[_0x47a407(0x1c5)]),await _0x4eff6f[_0x47a407(0x1d0)](sendInstrumentationEvent,_0x30cd66,_0x4eff6f['voKDX'],messageTypes[_0x47a407(0x18a)],_0x4eff6f[_0x47a407(0x1ad)],null,_0x30cd66),process[_0x47a407(0x1cd)](0x1));logger['info'](_0x47a407(0x1c6)+_0x30cd66[_0x47a407(0x1b9)]),await _0x4eff6f['adePw'](sendInstrumentationEvent,_0x30cd66,_0x4eff6f[_0x47a407(0x182)],messageTypes['INFO'],null,null,_0x30cd66);const _0x44819d=JSON['parse'](fs[_0x47a407(0x1a5)](_0x4eff6f['jfBWv'](getCredentialsPath)));global_registry['bstackUsername']=_0x44819d[_0x47a407(0x1b3)]['username'],global_registry['bstackAccesskey']=_0x44819d[_0x47a407(0x1b3)][_0x47a407(0x1b8)];const _0x34baf0=WS_ENDPOINT[_0x47a407(0x190)](_0x4eff6f[_0x47a407(0x1c2)],_0x44819d['Browserstack'][_0x47a407(0x18b)])[_0x47a407(0x190)](_0x4eff6f[_0x47a407(0x1a8)],_0x44819d[_0x47a407(0x1b3)][_0x47a407(0x1b8)]),_0x288fa6={};_0x288fa6[_0x47a407(0x1bf)]=ws,_0x288fa6[_0x47a407(0x1bd)]=0x36ee80,_0x3e3c26=new ReconnectingWebSocket(_0x34baf0,[],_0x288fa6),logger[_0x47a407(0x1af)](_0x4eff6f[_0x47a407(0x17f)]),webSocketUtils['addListeners'](_0x3e3c26,_0x30cd66['user'],_0x30cd66[_0x47a407(0x1b8)]);const [_0x11b925,_0x580b90]=await _0x4eff6f[_0x47a407(0x1bc)](getGridDetails,_0x44819d[_0x47a407(0x1b3)][_0x47a407(0x18b)],_0x44819d[_0x47a407(0x1b3)]['password'],_0x30cd66['gridId']);if(_0x580b90){const _0x3a16a1=_0x580b90[_0x47a407(0x1cc)];global_registry[_0x47a407(0x1c9)]=_0x3a16a1[_0x47a407(0x1c9)],global_registry[_0x47a407(0x198)]=_0x3a16a1[_0x47a407(0x186)],global_registry[_0x47a407(0x199)]=_0x3a16a1[_0x47a407(0x199)];const _0x32d142=await _0x4eff6f[_0x47a407(0x18f)](getCloudProviderObject,_0x3a16a1[_0x47a407(0x1c9)],_0x3a16a1[_0x47a407(0x199)],_0x3a16a1[_0x47a407(0x178)],_0x3e3c26,webSocketUtils,_0x30cd66),[_0x3ab4bb,_0x51898a,_0x122191,_0x35cee1,_0x51686b,_0x124cbf]=await _0x4eff6f['KHyNU'](createK8sClient,_0x32d142,_0x30cd66[_0x47a407(0x1c1)]);await _0x4eff6f[_0x47a407(0x1d8)](scaleDownHubDeployment,_0x51898a,_0x3a16a1[_0x47a407(0x178)]),logger[_0x47a407(0x1cc)](_0x4eff6f[_0x47a407(0x17d)]),process['exit'](0x0);}_0x4eff6f[_0x47a407(0x197)](_0x11b925[_0x47a407(0x181)],0x191)&&(logger['error'](_0x4eff6f['ZPgMY']),await _0x4eff6f['XiBWS'](sendInstrumentationEvent,_0x30cd66,_0x4eff6f['voKDX'],messageTypes[_0x47a407(0x18a)],_0x4eff6f[_0x47a407(0x1ca)],null,_0x30cd66),process[_0x47a407(0x1cd)](0x1)),_0x4eff6f[_0x47a407(0x197)](_0x11b925[_0x47a407(0x181)],0x190)&&(logger[_0x47a407(0x1a4)](JSON[_0x47a407(0x1a0)](_0x11b925['body'])[_0x47a407(0x18c)]),await _0x4eff6f['adePw'](sendInstrumentationEvent,_0x30cd66,_0x4eff6f[_0x47a407(0x182)],messageTypes[_0x47a407(0x18a)],_0x4eff6f[_0x47a407(0x1d6)],null,_0x30cd66),process['exit'](0x1)),logger['error'](_0x47a407(0x1d7)+JSON[_0x47a407(0x183)](_0x11b925)),await _0x4eff6f['adePw'](sendInstrumentationEvent,_0x30cd66,_0x4eff6f['voKDX'],messageTypes[_0x47a407(0x18a)],_0x4eff6f[_0x47a407(0x1d4)],_0x11b925,_0x30cd66),process[_0x47a407(0x1cd)](0x1);}catch(_0x145a9e){const _0x18fef9=_0x47a407(0x1b7)+_0x145a9e+'\x20\x0a'+JSON[_0x47a407(0x183)](_0x145a9e[_0x47a407(0x17e)])+'\x20';logger['error'](_0x18fef9),process[_0x47a407(0x1cd)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x1812cf=a22_0x40aa;(function(_0xab97c7,_0x3fb0fc){const _0x1266ce=a22_0x40aa,_0x2b3eb0=_0xab97c7();while(!![]){try{const _0x464bb9=-parseInt(_0x1266ce(0x1b4))/0x1*(-parseInt(_0x1266ce(0x15e))/0x2)+parseInt(_0x1266ce(0x1af))/0x3+parseInt(_0x1266ce(0x1ae))/0x4+-parseInt(_0x1266ce(0x170))/0x5+-parseInt(_0x1266ce(0x1a7))/0x6*(parseInt(_0x1266ce(0x1bd))/0x7)+-parseInt(_0x1266ce(0x172))/0x8+parseInt(_0x1266ce(0x1a4))/0x9;if(_0x464bb9===_0x3fb0fc)break;else _0x2b3eb0['push'](_0x2b3eb0['shift']());}catch(_0x43f698){_0x2b3eb0['push'](_0x2b3eb0['shift']());}}}(a22_0x40df,0x7f702),require(a22_0x1812cf(0x194))[a22_0x1812cf(0x18a)]());let gridURL=a22_0x1812cf(0x176),bsApiUrl='api.browserstack.com',agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x1812cf(0x19d)][a22_0x1812cf(0x181)]||'prod')['toLowerCase']();if(_env==='staging'||_env===a22_0x1812cf(0x18d))gridURL=a22_0x1812cf(0x179),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x1812cf(0x17a))&&(gridURL=a22_0x1812cf(0x16d),bsApiUrl=a22_0x1812cf(0x162),agApiUrl=a22_0x1812cf(0x1b5));exports[a22_0x1812cf(0x19e)]=process[a22_0x1812cf(0x19d)][a22_0x1812cf(0x19e)]||gridURL,exports['BS_API_URL']=process['env']['BS_API_URL']||bsApiUrl,exports['AG_API_URL']=process[a22_0x1812cf(0x19d)]['AG_API_URL']||agApiUrl,exports[a22_0x1812cf(0x177)]=a22_0x1812cf(0x18c)+this[a22_0x1812cf(0x1a2)]+a22_0x1812cf(0x19f),exports['CP_CONFIG_FILE']=a22_0x1812cf(0x1b6),exports[a22_0x1812cf(0x17c)]=a22_0x1812cf(0x195),exports[a22_0x1812cf(0x167)]=a22_0x1812cf(0x19a),exports[a22_0x1812cf(0x1a5)]=a22_0x1812cf(0x187),exports['CLUSTER_DEP_STACK_NAME']=a22_0x1812cf(0x185),exports[a22_0x1812cf(0x1a9)]=a22_0x1812cf(0x16b),exports[a22_0x1812cf(0x165)]=a22_0x1812cf(0x186),exports[a22_0x1812cf(0x178)]=a22_0x1812cf(0x180),exports[a22_0x1812cf(0x155)]=a22_0x1812cf(0x1ba),exports[a22_0x1812cf(0x15a)]=a22_0x1812cf(0x16a),exports[a22_0x1812cf(0x183)]=[this[a22_0x1812cf(0x1a5)],this['AZURE'],this[a22_0x1812cf(0x15a)]];function a22_0x40df(){const _0x4c98c0=['6gsKmBB','global_registry','CLUSTER_AUTOSCALER_STACK_NAME','gridUrl','[REDACTED]','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','list','1215456PGiXUS','956451LuyoHA','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','NULL','split','TURBOSCALE_CUSTOM_TAGS','1WmJhCh','grid-api-preprod.bsstag.com','credentials','MessageDescription','create','CLI_RUN_STARTED','azure','ERROR','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','1942801fJhnhE','root','AZURE','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','messageTypes','pre_check','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','GCP','Key','Value','unknown','1448548RbOnzD','success','gridProfile','push','api-preprod.bsstag.com','info','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','CLUSTER_HUB_HA_STACK_NAME','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','DEFAULT_GRID_NAME','forEach','init','gcp','BSTACK-ATS-CLUSTER-AUTOSCALER','BrowserStack','grid-preprod.bsstag.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','us-east-1','567310OvKDxI','CLI_RUN_FINISHED','5507968FQSsWV','SUCCESS','browserstack:managedBy','CLI_ARGS_REGEX','grid.browserstack.com','WS_ENDPOINT','TURBOSCALE_DEPLOYMENT','grid-devhst.bsstag.com','pre-prod','high-scale-grid-cluster','IAM_USER_NAME','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','stop','browserstack:service','browserstack-turboscale-grid','BROWSERSTACK_ENV','HELP_HEADER_MESSAGE','ALL_SUPPORTED_CLOUD_PROVIDERS','REGION','BSTACK-ATS-CLUSTER','BSTACK-ATS-CLUSTER-HUB-HA','aws','log','LOG','config','SUPPORTED_CLOUD_PROVIDERS','wss://','stag','cliRunFinished','COMMON_HST_TAGS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','CLOUD_PROVIDER','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','configure','dotenv','BrowserStackIAMUser','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','start','high-scale-grid','pre-check','delete','env','DASHBOARD_ENDPOINT','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','RESOURCES','error','AG_API_URL','LINK_MESSAGE','2290788ASumOG','AWS','WS_EVENTS'];a22_0x40df=function(){return _0x4c98c0;};return a22_0x40df();}const a22_0x9e4893={};a22_0x9e4893[a22_0x1812cf(0x15b)]=a22_0x1812cf(0x174),a22_0x9e4893[a22_0x1812cf(0x15c)]=a22_0x1812cf(0x16c);const a22_0x5674c3={};a22_0x5674c3['Key']=a22_0x1812cf(0x17f),a22_0x5674c3['Value']=a22_0x1812cf(0x197);const common_hst_tags_list=[a22_0x9e4893,a22_0x5674c3];if(process[a22_0x1812cf(0x19d)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x1812cf(0x19d)][a22_0x1812cf(0x1b3)][a22_0x1812cf(0x1b2)](',');parsedTags[a22_0x1812cf(0x168)](_0xb22374=>{const _0x49557b=a22_0x1812cf,_0x2e570d=_0xb22374[_0x49557b(0x1b2)](':'),_0x22dca3={};_0x22dca3[_0x49557b(0x15b)]=_0x2e570d[0x0],_0x22dca3[_0x49557b(0x15c)]=_0x2e570d[0x1],common_hst_tags_list[_0x49557b(0x161)](_0x22dca3);});}exports[a22_0x1812cf(0x18f)]=common_hst_tags_list;const a22_0xcddbcb={};a22_0xcddbcb['browserstack:managedBy']=a22_0x1812cf(0x16c),a22_0xcddbcb[a22_0x1812cf(0x17f)]='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0xcddbcb,exports[a22_0x1812cf(0x18b)]=[this[a22_0x1812cf(0x1a5)]];const a22_0x282e2b={};a22_0x282e2b[a22_0x1812cf(0x189)]=a22_0x1812cf(0x188),a22_0x282e2b[a22_0x1812cf(0x1a0)]='resourceInfo',a22_0x282e2b['GRID_URL']=a22_0x1812cf(0x1aa),a22_0x282e2b[a22_0x1812cf(0x1b9)]='cliRunStarted',a22_0x282e2b[a22_0x1812cf(0x171)]=a22_0x1812cf(0x18e),exports[a22_0x1812cf(0x1a6)]=a22_0x282e2b,exports[a22_0x1812cf(0x1a8)]={},exports[a22_0x1812cf(0x1a3)]=a22_0x1812cf(0x192);const a22_0x368939={};a22_0x368939[a22_0x1812cf(0x1be)]=a22_0x1812cf(0x164)+this['LINK_MESSAGE'],a22_0x368939[a22_0x1812cf(0x169)]=a22_0x1812cf(0x159)+this[a22_0x1812cf(0x1a3)],a22_0x368939[a22_0x1812cf(0x193)]=a22_0x1812cf(0x156)+this[a22_0x1812cf(0x1a3)],a22_0x368939[a22_0x1812cf(0x1b8)]=a22_0x1812cf(0x166)+this[a22_0x1812cf(0x1a3)],a22_0x368939[a22_0x1812cf(0x1ad)]={},a22_0x368939[a22_0x1812cf(0x19c)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x1812cf(0x1a3)],a22_0x368939['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x1812cf(0x1a3)],a22_0x368939[a22_0x1812cf(0x199)]=a22_0x1812cf(0x17d)+this[a22_0x1812cf(0x1a3)],a22_0x368939[a22_0x1812cf(0x17e)]=a22_0x1812cf(0x198)+this[a22_0x1812cf(0x1a3)],a22_0x368939[a22_0x1812cf(0x158)]=a22_0x1812cf(0x190)+this[a22_0x1812cf(0x1a3)],a22_0x368939[a22_0x1812cf(0x1ad)][a22_0x1812cf(0x1be)]=a22_0x1812cf(0x196)+this[a22_0x1812cf(0x1a3)],a22_0x368939[a22_0x1812cf(0x1ad)]['grid']=a22_0x1812cf(0x1ac)+this[a22_0x1812cf(0x1a3)],a22_0x368939[a22_0x1812cf(0x1ad)][a22_0x1812cf(0x160)]=a22_0x1812cf(0x1b0)+this['LINK_MESSAGE'],exports[a22_0x1812cf(0x182)]=a22_0x368939,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x1fc632={};a22_0x1fc632[a22_0x1812cf(0x173)]=a22_0x1812cf(0x15f),a22_0x1fc632[a22_0x1812cf(0x1bb)]=a22_0x1812cf(0x1a1),a22_0x1fc632['INFO']=a22_0x1812cf(0x163),a22_0x1fc632['WARNING']='warning',a22_0x1fc632['UNKNOWN']=a22_0x1812cf(0x15d),a22_0x1fc632[a22_0x1812cf(0x1b1)]=null,exports[a22_0x1812cf(0x157)]=a22_0x1fc632,exports[a22_0x1812cf(0x175)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x1812cf(0x1ab);const a22_0x1e9b99={};a22_0x1e9b99['grid-profile']=a22_0x1812cf(0x16e);function a22_0x40aa(_0xc6d2fc,_0x138cb9){const _0x40df00=a22_0x40df();return a22_0x40aa=function(_0x40aa99,_0x4123c9){_0x40aa99=_0x40aa99-0x155;let _0x3e2697=_0x40df00[_0x40aa99];return _0x3e2697;},a22_0x40aa(_0xc6d2fc,_0x138cb9);}const a22_0x1f0974={};a22_0x1f0974[a22_0x1812cf(0x19b)]=a22_0x1e9b99,exports[a22_0x1812cf(0x1b7)]=a22_0x1f0974,exports['TRIAL_GRID_URL']=a22_0x1812cf(0x1bc);const a22_0x4d89eb={};a22_0x4d89eb['CLUSTER']=a22_0x1812cf(0x17b),a22_0x4d89eb[a22_0x1812cf(0x191)]='aws',a22_0x4d89eb[a22_0x1812cf(0x184)]=a22_0x1812cf(0x16f),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x4d89eb;
1
+ const a22_0x2a33cd=a22_0x3e38;(function(_0x1e8e87,_0x2c34e1){const _0x1a8777=a22_0x3e38,_0x53493b=_0x1e8e87();while(!![]){try{const _0x155ff0=parseInt(_0x1a8777(0x12e))/0x1*(parseInt(_0x1a8777(0x13a))/0x2)+parseInt(_0x1a8777(0x11b))/0x3+-parseInt(_0x1a8777(0xff))/0x4+parseInt(_0x1a8777(0x104))/0x5*(-parseInt(_0x1a8777(0x11e))/0x6)+-parseInt(_0x1a8777(0x126))/0x7+parseInt(_0x1a8777(0xfd))/0x8+parseInt(_0x1a8777(0x142))/0x9;if(_0x155ff0===_0x2c34e1)break;else _0x53493b['push'](_0x53493b['shift']());}catch(_0x859be6){_0x53493b['push'](_0x53493b['shift']());}}}(a22_0x41ed,0xf2961),require(a22_0x2a33cd(0xfa))['config']());let gridURL='grid.browserstack.com',bsApiUrl=a22_0x2a33cd(0x14c),agApiUrl=a22_0x2a33cd(0x138);const _env=(process[a22_0x2a33cd(0x13d)][a22_0x2a33cd(0x107)]||'prod')[a22_0x2a33cd(0x14e)]();if(_env===a22_0x2a33cd(0xe8)||_env===a22_0x2a33cd(0x109))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x2a33cd(0xfe),agApiUrl=a22_0x2a33cd(0x117);else(_env===a22_0x2a33cd(0x135)||_env==='pre-prod')&&(gridURL=a22_0x2a33cd(0x11d),bsApiUrl=a22_0x2a33cd(0x114),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x2a33cd(0x108)]=process[a22_0x2a33cd(0x13d)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x2a33cd(0xf2)]=process[a22_0x2a33cd(0x13d)][a22_0x2a33cd(0xf2)]||bsApiUrl,exports[a22_0x2a33cd(0xf5)]=process[a22_0x2a33cd(0x13d)][a22_0x2a33cd(0xf5)]||agApiUrl,exports[a22_0x2a33cd(0xed)]=a22_0x2a33cd(0x14a)+this[a22_0x2a33cd(0xf5)]+a22_0x2a33cd(0x112),exports[a22_0x2a33cd(0x111)]=a22_0x2a33cd(0x129),exports[a22_0x2a33cd(0x121)]=a22_0x2a33cd(0x13e),exports['DEFAULT_GRID_NAME']=a22_0x2a33cd(0x105),exports[a22_0x2a33cd(0x140)]=a22_0x2a33cd(0x125),exports[a22_0x2a33cd(0xfc)]=a22_0x2a33cd(0x14d),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x2a33cd(0x11c),exports[a22_0x2a33cd(0xe5)]=a22_0x2a33cd(0x102),exports[a22_0x2a33cd(0xe3)]=a22_0x2a33cd(0xee),exports[a22_0x2a33cd(0xec)]=a22_0x2a33cd(0x133),exports[a22_0x2a33cd(0xfb)]=a22_0x2a33cd(0x10f),exports[a22_0x2a33cd(0x12a)]=[this[a22_0x2a33cd(0x140)],this[a22_0x2a33cd(0xec)],this[a22_0x2a33cd(0xfb)]];const a22_0xb124c8={};a22_0xb124c8[a22_0x2a33cd(0x144)]=a22_0x2a33cd(0xf7),a22_0xb124c8['Value']=a22_0x2a33cd(0x149);const a22_0x2d2355={};a22_0x2d2355[a22_0x2a33cd(0x144)]=a22_0x2a33cd(0xe7),a22_0x2d2355[a22_0x2a33cd(0x137)]=a22_0x2a33cd(0x115);const common_hst_tags_list=[a22_0xb124c8,a22_0x2d2355];if(process['env'][a22_0x2a33cd(0x127)]){const parsedTags=process[a22_0x2a33cd(0x13d)][a22_0x2a33cd(0x127)][a22_0x2a33cd(0x12f)](',');parsedTags[a22_0x2a33cd(0x146)](_0x5abc3f=>{const _0x1811f7=a22_0x2a33cd,_0x3c3bce=_0x5abc3f['split'](':'),_0x16120b={};_0x16120b[_0x1811f7(0x144)]=_0x3c3bce[0x0],_0x16120b['Value']=_0x3c3bce[0x1],common_hst_tags_list[_0x1811f7(0x10a)](_0x16120b);});}exports[a22_0x2a33cd(0xf9)]=common_hst_tags_list;const a22_0x37a0cf={};a22_0x37a0cf[a22_0x2a33cd(0xf7)]=a22_0x2a33cd(0x149),a22_0x37a0cf[a22_0x2a33cd(0xe7)]='BrowserStack-Automate-TurboScale',exports[a22_0x2a33cd(0x12c)]=a22_0x37a0cf,exports[a22_0x2a33cd(0x11f)]=[this[a22_0x2a33cd(0x140)]];const a22_0x125ca9={};a22_0x125ca9[a22_0x2a33cd(0x103)]=a22_0x2a33cd(0xe4),a22_0x125ca9[a22_0x2a33cd(0x148)]=a22_0x2a33cd(0x141),a22_0x125ca9['GRID_URL']='gridUrl',a22_0x125ca9['CLI_RUN_STARTED']='cliRunStarted',a22_0x125ca9['CLI_RUN_FINISHED']=a22_0x2a33cd(0x136),exports[a22_0x2a33cd(0xea)]=a22_0x125ca9,exports[a22_0x2a33cd(0x123)]={},exports[a22_0x2a33cd(0x143)]=a22_0x2a33cd(0x14b);const a22_0x1c86c7={};a22_0x1c86c7[a22_0x2a33cd(0xf8)]=a22_0x2a33cd(0x124)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7['init']=a22_0x2a33cd(0x101)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf6)]=a22_0x2a33cd(0x130)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0x12b)]=a22_0x2a33cd(0x106)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf4)]={},a22_0x1c86c7[a22_0x2a33cd(0xeb)]=a22_0x2a33cd(0x11a)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0x122)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a22_0x1c86c7[a22_0x2a33cd(0x139)]=a22_0x2a33cd(0x145)+this['LINK_MESSAGE'],a22_0x1c86c7[a22_0x2a33cd(0xf0)]=a22_0x2a33cd(0x118)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0x10d)]=a22_0x2a33cd(0x12d)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf4)][a22_0x2a33cd(0xf8)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf4)]['grid']=a22_0x2a33cd(0x134)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf4)][a22_0x2a33cd(0x131)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x2a33cd(0x143)],exports['HELP_HEADER_MESSAGE']=a22_0x1c86c7,exports[a22_0x2a33cd(0xef)]=a22_0x2a33cd(0xe9);const a22_0x22d69b={};function a22_0x3e38(_0x21832e,_0x316444){const _0x41ed63=a22_0x41ed();return a22_0x3e38=function(_0x3e38a8,_0x577033){_0x3e38a8=_0x3e38a8-0xe2;let _0x114f54=_0x41ed63[_0x3e38a8];return _0x114f54;},a22_0x3e38(_0x21832e,_0x316444);}a22_0x22d69b[a22_0x2a33cd(0xe2)]='success',a22_0x22d69b[a22_0x2a33cd(0x116)]=a22_0x2a33cd(0x100),a22_0x22d69b['INFO']='info',a22_0x22d69b[a22_0x2a33cd(0x13b)]=a22_0x2a33cd(0x13f),a22_0x22d69b[a22_0x2a33cd(0x147)]=a22_0x2a33cd(0x10c),a22_0x22d69b['NULL']=null,exports['messageTypes']=a22_0x22d69b,exports[a22_0x2a33cd(0xe6)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2a33cd(0x10b)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2a33cd(0x10e)]=a22_0x2a33cd(0xf1);const a22_0x514f3b={};function a22_0x41ed(){const _0x35ff1c=['IAM_USER_NAME','connect','global_registry','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','aws','13200404MDLkqC','TURBOSCALE_CUSTOM_TAGS','pre-check','credentials','ALL_SUPPORTED_CLOUD_PROVIDERS','create','HST_CLUSTER_TAGS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','99kIjYIP','split','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gridProfile','CLOUD_PROVIDER','azure','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','preprod','cliRunFinished','Value','grid-api.browserstack.com','start','7786efXjcG','WARNING','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','env','BrowserStackIAMUser','warning','AWS','resourceInfo','9358677LuHija','LINK_MESSAGE','Key','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','forEach','UNKNOWN','RESOURCES','BrowserStack','wss://','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','api.browserstack.com','BSTACK-ATS-CLUSTER','toLowerCase','SUCCESS','TURBOSCALE_DEPLOYMENT','log','CLUSTER_HUB_HA_STACK_NAME','CLI_ARGS_REGEX','browserstack:service','staging','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','WS_EVENTS','delete','AZURE','WS_ENDPOINT','browserstack-turboscale-grid','HELP_FOOTER_MESSAGE','stop','[REDACTED]','BS_API_URL','DEFAULT_CLUSTER_DETAILS','list','AG_API_URL','configure','browserstack:managedBy','root','COMMON_HST_TAGS','dotenv','GCP','CLUSTER_DEP_STACK_NAME','10747592SpJVxO','api-devhst.bsstag.com','726188wJYCye','error','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER-HUB-HA','LOG','7376755HBgkJs','high-scale-grid','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BROWSERSTACK_ENV','DASHBOARD_ENDPOINT','stag','push','RAW_ARGS_REGEX','unknown','pre_check','REDACTED','gcp','TRIAL_GRID_URL','CP_CONFIG_FILE','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','CLUSTER','api-preprod.bsstag.com','BrowserStack-Automate-TurboScale','ERROR','grid-api-devhst.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','MessageDescription','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','5302782aoRueQ','BSTACK-ATS-CLUSTER-AUTOSCALER','grid-preprod.bsstag.com','6UiPJOL','SUPPORTED_CLOUD_PROVIDERS','https://nroujxly-hub.browserstack-ats.com/wd/hub/status'];a22_0x41ed=function(){return _0x35ff1c;};return a22_0x41ed();}a22_0x514f3b['grid-profile']=a22_0x2a33cd(0x13c);const a22_0x5860cd={};a22_0x5860cd[a22_0x2a33cd(0x128)]=a22_0x514f3b,exports[a22_0x2a33cd(0x119)]=a22_0x5860cd,exports[a22_0x2a33cd(0x110)]=a22_0x2a33cd(0x120);const a22_0x464a17={};a22_0x464a17[a22_0x2a33cd(0x113)]='high-scale-grid-cluster',a22_0x464a17[a22_0x2a33cd(0x132)]=a22_0x2a33cd(0x125),a22_0x464a17['REGION']='us-east-1',exports[a22_0x2a33cd(0xf3)]=a22_0x464a17;
@@ -1 +1 @@
1
- function a23_0x2e4c(){const _0xc804bb=['timestamp','debug','mkdirSync','305318wwOIqQ','path','message','events.log','37705YjLhPq','log','join','format','714304sYjxSz','console.info','printf','6qNZfci','transports','168MTfGuI','logger','level','File','694491VRIOoe','546084AaxRxd','Console','8321696RxYtMA','2922552HttECQ','winston','name','combine'];a23_0x2e4c=function(){return _0xc804bb;};return a23_0x2e4c();}const a23_0x52139e=a23_0xf8b3;(function(_0x527df2,_0x4645ca){const _0x359d85=a23_0xf8b3,_0x25a591=_0x527df2();while(!![]){try{const _0x367eb6=-parseInt(_0x359d85(0x103))/0x1+parseInt(_0x359d85(0xfb))/0x2+parseInt(_0x359d85(0x10d))/0x3+-parseInt(_0x359d85(0x108))/0x4*(-parseInt(_0x359d85(0xff))/0x5)+parseInt(_0x359d85(0x106))/0x6*(-parseInt(_0x359d85(0x10c))/0x7)+parseInt(_0x359d85(0x10f))/0x8+-parseInt(_0x359d85(0x110))/0x9;if(_0x367eb6===_0x4645ca)break;else _0x25a591['push'](_0x25a591['shift']());}catch(_0x34ccc3){_0x25a591['push'](_0x25a591['shift']());}}}(a23_0x2e4c,0x871a0));const winston=require(a23_0x52139e(0xf5)),fs=require('fs'),path=require(a23_0x52139e(0xfc)),logDir=a23_0x52139e(0x100);!fs['existsSync'](logDir)&&fs[a23_0x52139e(0xfa)](logDir);function a23_0xf8b3(_0x112114,_0x33ba45){const _0x2e4cb4=a23_0x2e4c();return a23_0xf8b3=function(_0xf8b3af,_0x2fb6ab){_0xf8b3af=_0xf8b3af-0xf5;let _0x11cbc9=_0x2e4cb4[_0xf8b3af];return _0x11cbc9;},a23_0xf8b3(_0x112114,_0x33ba45);}const a23_0x14710e={};a23_0x14710e[a23_0x52139e(0x102)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0xc0a0d0={};a23_0xc0a0d0[a23_0x52139e(0x10a)]=!![];const a23_0xd15995={};a23_0xd15995[a23_0x52139e(0xf6)]=a23_0x52139e(0x104),exports[a23_0x52139e(0x109)]=new winston['createLogger']({'format':winston[a23_0x52139e(0x102)][a23_0x52139e(0xf7)](winston[a23_0x52139e(0x102)][a23_0x52139e(0xf8)](a23_0x14710e),winston[a23_0x52139e(0x102)]['colorize'](a23_0xc0a0d0),winston[a23_0x52139e(0x102)][a23_0x52139e(0x105)](_0x360417=>_0x360417['timestamp']+'\x20-\x20'+_0x360417[a23_0x52139e(0x10a)]+':\x20'+_0x360417[a23_0x52139e(0xfd)])),'transports':[new winston['transports'][(a23_0x52139e(0x10e))](a23_0xd15995),new winston[(a23_0x52139e(0x107))]['File']({'filename':path[a23_0x52139e(0x101)](logDir,a23_0x52139e(0xfe)),'level':a23_0x52139e(0xf9)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x52139e(0x107))][(a23_0x52139e(0x10b))]({'filename':path[a23_0x52139e(0x101)](logDir,'usage.log'),'level':'debug'})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x534a07=a23_0x3ffa;(function(_0x3d6d0a,_0x2de31d){const _0x491d7c=a23_0x3ffa,_0x60fa14=_0x3d6d0a();while(!![]){try{const _0x2f8371=parseInt(_0x491d7c(0xec))/0x1+-parseInt(_0x491d7c(0xde))/0x2*(parseInt(_0x491d7c(0xe8))/0x3)+-parseInt(_0x491d7c(0xd5))/0x4*(-parseInt(_0x491d7c(0xd4))/0x5)+parseInt(_0x491d7c(0xe2))/0x6*(parseInt(_0x491d7c(0xe9))/0x7)+parseInt(_0x491d7c(0xe0))/0x8+-parseInt(_0x491d7c(0xe1))/0x9+-parseInt(_0x491d7c(0xeb))/0xa*(parseInt(_0x491d7c(0xf1))/0xb);if(_0x2f8371===_0x2de31d)break;else _0x60fa14['push'](_0x60fa14['shift']());}catch(_0xb4bcfd){_0x60fa14['push'](_0x60fa14['shift']());}}}(a23_0x1dc1,0x1f764));const winston=require(a23_0x534a07(0xdf)),fs=require('fs'),path=require('path'),logDir=a23_0x534a07(0xdd);!fs[a23_0x534a07(0xed)](logDir)&&fs[a23_0x534a07(0xe6)](logDir);const a23_0x1a5449={};a23_0x1a5449[a23_0x534a07(0xe4)]=a23_0x534a07(0xe3);const a23_0x45d36e={};a23_0x45d36e[a23_0x534a07(0xda)]=!![];const a23_0x290fda={};function a23_0x3ffa(_0x2e93d6,_0x430c2b){const _0x1dc124=a23_0x1dc1();return a23_0x3ffa=function(_0x3ffa92,_0xb18679){_0x3ffa92=_0x3ffa92-0xd4;let _0x44aecc=_0x1dc124[_0x3ffa92];return _0x44aecc;},a23_0x3ffa(_0x2e93d6,_0x430c2b);}function a23_0x1dc1(){const _0xaeac06=['format','combine','mkdirSync','join','7143tGjBbk','537418IaazKQ','logger','30XFvBiV','199329ElhFoL','existsSync','colorize','message','console.info','289861UlNLbx','debug','Console','printf','101655EDByPA','4xSjjjH','timestamp','File','fileLogger','transports','level','name','events.log','log','130aKaOKc','winston','1295352TYCzAp','861003jVJARK','6CUmyKt','YYYY-MM-DD\x20HH:mm:ss'];a23_0x1dc1=function(){return _0xaeac06;};return a23_0x1dc1();}a23_0x290fda[a23_0x534a07(0xdb)]=a23_0x534a07(0xf0),exports[a23_0x534a07(0xea)]=new winston['createLogger']({'format':winston[a23_0x534a07(0xe4)][a23_0x534a07(0xe5)](winston[a23_0x534a07(0xe4)][a23_0x534a07(0xd6)](a23_0x1a5449),winston[a23_0x534a07(0xe4)][a23_0x534a07(0xee)](a23_0x45d36e),winston[a23_0x534a07(0xe4)][a23_0x534a07(0xf4)](_0x1a67e9=>_0x1a67e9[a23_0x534a07(0xd6)]+'\x20-\x20'+_0x1a67e9[a23_0x534a07(0xda)]+':\x20'+_0x1a67e9[a23_0x534a07(0xef)])),'transports':[new winston[(a23_0x534a07(0xd9))][(a23_0x534a07(0xf3))](a23_0x290fda),new winston[(a23_0x534a07(0xd9))]['File']({'filename':path[a23_0x534a07(0xe7)](logDir,a23_0x534a07(0xdc)),'level':a23_0x534a07(0xf2)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x534a07(0xd9))][(a23_0x534a07(0xd7))]({'filename':path[a23_0x534a07(0xe7)](logDir,'usage.log'),'level':a23_0x534a07(0xf2)})]};exports[a23_0x534a07(0xd8)]=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_0x411ce1=a24_0x3e7a;(function(_0x15d2f4,_0x2565f2){const _0x9e2ee9=a24_0x3e7a,_0x3fb6b3=_0x15d2f4();while(!![]){try{const _0x46a6f4=parseInt(_0x9e2ee9(0x1c4))/0x1*(-parseInt(_0x9e2ee9(0x1d1))/0x2)+parseInt(_0x9e2ee9(0x1c9))/0x3+-parseInt(_0x9e2ee9(0x1d4))/0x4+-parseInt(_0x9e2ee9(0x1c6))/0x5+-parseInt(_0x9e2ee9(0x1cf))/0x6+-parseInt(_0x9e2ee9(0x1cd))/0x7*(parseInt(_0x9e2ee9(0x1c8))/0x8)+-parseInt(_0x9e2ee9(0x1cb))/0x9*(-parseInt(_0x9e2ee9(0x1d2))/0xa);if(_0x46a6f4===_0x2565f2)break;else _0x3fb6b3['push'](_0x3fb6b3['shift']());}catch(_0x3b34e4){_0x3fb6b3['push'](_0x3fb6b3['shift']());}}}(a24_0xcb79,0xe5576));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0xcb79(){const _0x19a1fc=['exports','7468155bVJBJQ','wARoe','115031hVMgEb','root','1040586vIsUvO','help','28rcDhng','50cJLice','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','7072292LDJATB','commands','epilogue','yJKPV','68261sjoNwG','usage','2674210ZvtuQb','env','40fPXWgE','913716uXQfFS'];a24_0xcb79=function(){return _0x19a1fc;};return a24_0xcb79();}process[a24_0x411ce1(0x1c7)][a24_0x411ce1(0x1d3)]=0x1;function run(_0x711cbb){const _0x505e19=a24_0x411ce1,_0x54f62f={};_0x54f62f[_0x505e19(0x1c3)]=_0x505e19(0x1d5),_0x54f62f[_0x505e19(0x1cc)]=_0x505e19(0x1d0);const _0x4b16b3=_0x54f62f;_0x711cbb[_0x505e19(0x1c5)](HELP_HEADER_MESSAGE[_0x505e19(0x1ce)])['commandDir'](_0x4b16b3[_0x505e19(0x1c3)])['demandCommand']()['help'](_0x4b16b3[_0x505e19(0x1cc)])[_0x505e19(0x1d6)](HELP_FOOTER_MESSAGE);}function a24_0x3e7a(_0x502cae,_0x38bb08){const _0xcb79ef=a24_0xcb79();return a24_0x3e7a=function(_0x3e7ac8,_0x401f85){_0x3e7ac8=_0x3e7ac8-0x1c3;let _0x2e1bea=_0xcb79ef[_0x3e7ac8];return _0x2e1bea;},a24_0x3e7a(_0x502cae,_0x38bb08);}module[a24_0x411ce1(0x1ca)]=run;
2
+ 'use strict';const a24_0x4e523a=a24_0x382a;function a24_0x382a(_0x186f19,_0x56c0a6){const _0x23142f=a24_0x2314();return a24_0x382a=function(_0x382a41,_0x33e830){_0x382a41=_0x382a41-0xc8;let _0x1ea9d0=_0x23142f[_0x382a41];return _0x1ea9d0;},a24_0x382a(_0x186f19,_0x56c0a6);}(function(_0x534758,_0x5f2895){const _0xdb374=a24_0x382a,_0x3745c8=_0x534758();while(!![]){try{const _0x17164e=parseInt(_0xdb374(0xd6))/0x1*(parseInt(_0xdb374(0xcd))/0x2)+parseInt(_0xdb374(0xd1))/0x3*(-parseInt(_0xdb374(0xcc))/0x4)+parseInt(_0xdb374(0xcf))/0x5*(-parseInt(_0xdb374(0xda))/0x6)+parseInt(_0xdb374(0xde))/0x7*(-parseInt(_0xdb374(0xce))/0x8)+parseInt(_0xdb374(0xca))/0x9+-parseInt(_0xdb374(0xd9))/0xa+parseInt(_0xdb374(0xd5))/0xb*(parseInt(_0xdb374(0xc9))/0xc);if(_0x17164e===_0x5f2895)break;else _0x3745c8['push'](_0x3745c8['shift']());}catch(_0x312f47){_0x3745c8['push'](_0x3745c8['shift']());}}}(a24_0x2314,0x87516));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x4e523a(0xcb)][a24_0x4e523a(0xd4)]=0x1;function run(_0x5065c7){const _0x37ef01=a24_0x4e523a,_0x18a42b={};_0x18a42b[_0x37ef01(0xd0)]=_0x37ef01(0xd7),_0x18a42b[_0x37ef01(0xdd)]=_0x37ef01(0xdb);const _0x86714c=_0x18a42b;_0x5065c7[_0x37ef01(0xd2)](HELP_HEADER_MESSAGE[_0x37ef01(0xd8)])[_0x37ef01(0xdc)](_0x86714c[_0x37ef01(0xd0)])[_0x37ef01(0xc8)]()['help'](_0x86714c[_0x37ef01(0xdd)])[_0x37ef01(0xd3)](HELP_FOOTER_MESSAGE);}function a24_0x2314(){const _0x40d3a7=['12jKXCml','7018785fPNAtO','env','44JUTPny','9574tTVgRb','8468664aIEzpd','637835ZNeLOQ','FVdMv','61989hrjXHH','usage','epilogue','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','21263506SFhrtT','214vDpLvP','commands','root','8766550qenrse','48ttPJZr','help','commandDir','CuXnL','7IRZdmn','demandCommand'];a24_0x2314=function(){return _0x40d3a7;};return a24_0x2314();}module['exports']=run;