browserstack-node-sdk 1.46.5 → 1.46.6

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 (183) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/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/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  114. package/src/bin/v2/framework/testFramework.js +1 -1
  115. package/src/bin/v2/grpcClient.js +1 -1
  116. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  117. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/trackedContext.js +1 -1
  119. package/src/bin/v2/instances/trackedInstance.js +1 -1
  120. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  121. package/src/bin/v2/modules/baseModule.js +1 -1
  122. package/src/bin/v2/modules/observabilityModule.js +1 -1
  123. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  124. package/src/bin/v2/modules/testhubModule.js +1 -1
  125. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  126. package/src/bin/v2/state/hookState.js +1 -1
  127. package/src/bin/v2/state/testFrameworkState.js +1 -1
  128. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  129. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  130. package/src/bin/vanilla-js/command.js +1 -1
  131. package/src/browserStackSdk.js +1 -1
  132. package/src/helpers/BrowserStackSetup.js +1 -1
  133. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  134. package/src/helpers/accessibility-automation/constants.js +1 -1
  135. package/src/helpers/accessibility-automation/helper.js +1 -1
  136. package/src/helpers/accessibility-automation/scripts.js +1 -1
  137. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  138. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  139. package/src/helpers/ats/constants.js +1 -1
  140. package/src/helpers/ats/helper.js +1 -1
  141. package/src/helpers/capsMapping.js +1 -1
  142. package/src/helpers/central-scanner/constants.js +1 -1
  143. package/src/helpers/central-scanner/helpers.js +1 -1
  144. package/src/helpers/classLogger.js +1 -1
  145. package/src/helpers/globals.js +1 -1
  146. package/src/helpers/helper.js +1 -1
  147. package/src/helpers/logger.js +1 -1
  148. package/src/helpers/metadata.js +1 -1
  149. package/src/helpers/patchHelper.js +1 -1
  150. package/src/helpers/patchHelpers.js +1 -1
  151. package/src/helpers/percy/Percy.js +1 -1
  152. package/src/helpers/percy/PercyBinary.js +1 -1
  153. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  154. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  155. package/src/helpers/percy/PercySDK.js +1 -1
  156. package/src/helpers/percy/index.js +1 -1
  157. package/src/helpers/percy/utils.js +1 -1
  158. package/src/helpers/performance/constants.js +1 -1
  159. package/src/helpers/performance/performance-tester.js +1 -1
  160. package/src/helpers/playwright-helper.js +1 -1
  161. package/src/helpers/processHelper.js +1 -1
  162. package/src/helpers/request-spy.js +1 -1
  163. package/src/helpers/setKeepAlive.js +1 -1
  164. package/src/helpers/test-observability/constants.js +1 -1
  165. package/src/helpers/test-observability/error-handler.js +1 -1
  166. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  167. package/src/helpers/test-observability/sessionHandler.js +1 -1
  168. package/src/helpers/test-observability/utils.js +1 -1
  169. package/src/helpers/test-orchestration/constants.js +1 -1
  170. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  171. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  172. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  173. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  174. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  175. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  176. package/src/helpers/testhub/constants.js +1 -1
  177. package/src/helpers/testhub/testhubHandler.js +1 -1
  178. package/src/helpers/testhub/utils.js +1 -1
  179. package/src/helpers/timeoutPromise.js +1 -1
  180. package/src/helpers/utilities.js +1 -1
  181. package/src/helpers/w3cMapping.js +1 -1
  182. package/src/hubAllocationMethods.js +1 -1
  183. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x5bfe(_0x257f2a,_0x594bc1){const _0x185d4a=a15_0x185d();return a15_0x5bfe=function(_0x5bfe7c,_0x250a5f){_0x5bfe7c=_0x5bfe7c-0xb4;let _0x1877f9=_0x185d4a[_0x5bfe7c];return _0x1877f9;},a15_0x5bfe(_0x257f2a,_0x594bc1);}const a15_0xb03ac0=a15_0x5bfe;(function(_0x359cf7,_0x1e0f8f){const _0x33c0c6=a15_0x5bfe,_0x47d7ec=_0x359cf7();while(!![]){try{const _0x1c3a8b=parseInt(_0x33c0c6(0xc0))/0x1*(parseInt(_0x33c0c6(0xe3))/0x2)+-parseInt(_0x33c0c6(0x109))/0x3+-parseInt(_0x33c0c6(0x10d))/0x4+parseInt(_0x33c0c6(0xf7))/0x5*(parseInt(_0x33c0c6(0xf5))/0x6)+-parseInt(_0x33c0c6(0xdd))/0x7*(parseInt(_0x33c0c6(0xe0))/0x8)+parseInt(_0x33c0c6(0xd0))/0x9+parseInt(_0x33c0c6(0xf1))/0xa;if(_0x1c3a8b===_0x1e0f8f)break;else _0x47d7ec['push'](_0x47d7ec['shift']());}catch(_0xc4e013){_0x47d7ec['push'](_0x47d7ec['shift']());}}}(a15_0x185d,0x651fb));const fs=require('fs'),got=require(a15_0xb03ac0(0xdc)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0xb03ac0(0xfe)),{getCredentialsPath,getAuthHeader}=require(a15_0xb03ac0(0xb5)),{sendInstrumentationEvent}=require(a15_0xb03ac0(0xbb));exports[a15_0xb03ac0(0x10f)]=a15_0xb03ac0(0xf3),exports[a15_0xb03ac0(0xde)]=a15_0xb03ac0(0xe2),exports['builder']=function(_0x170f47){const _0x319c18=a15_0xb03ac0,_0xed515e={};_0xed515e[_0x319c18(0xe6)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0xed515e[_0x319c18(0xe1)]=_0x319c18(0xd7),_0xed515e[_0x319c18(0x106)]=_0x319c18(0xee);const _0x314e2f=_0xed515e,_0x4e4d2f={};_0x4e4d2f[_0x319c18(0xe8)]=_0x314e2f[_0x319c18(0xe6)],_0x4e4d2f[_0x319c18(0x10b)]=_0x314e2f[_0x319c18(0xe1)];const _0xc8593f={};return _0xc8593f[_0x319c18(0xd8)]=_0x4e4d2f,_0x170f47[_0x319c18(0x102)](HELP_HEADER_MESSAGE[_0x319c18(0x10a)][_0x319c18(0xb8)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x319c18(0xea)](_0xc8593f)['help'](_0x314e2f[_0x319c18(0x106)])[_0x319c18(0xc5)];},exports['handler']=async function(_0x1d69ff){const _0x133349=a15_0xb03ac0,_0x30a728={'ExvMY':function(_0x26909e){return _0x26909e();},'IlGcU':_0x133349(0xef),'WaQYt':function(_0x5caf8,_0x3a596e,_0x44a170,_0x41a5da,_0x21b5e7,_0x435c8e,_0x47a3d8){return _0x5caf8(_0x3a596e,_0x44a170,_0x41a5da,_0x21b5e7,_0x435c8e,_0x47a3d8);},'jMcBc':'list-grids-called','fHGBe':_0x133349(0xd6),'dccqx':function(_0x5717dc){return _0x5717dc();},'hWOdO':_0x133349(0xda),'GXKKa':function(_0x412c64,_0x3d93a4,_0x3a2fb4){return _0x412c64(_0x3d93a4,_0x3a2fb4);},'fnNgx':function(_0x1ffac3,_0x58ecfe,_0x42f74e,_0x187fa3,_0xec6b16,_0x511464,_0x3c010e){return _0x1ffac3(_0x58ecfe,_0x42f74e,_0x187fa3,_0xec6b16,_0x511464,_0x3c010e);},'GtUDB':function(_0x169e04,_0x59851d){return _0x169e04!==_0x59851d;},'FPqTq':function(_0x218224,_0x1745d4){return _0x218224===_0x1745d4;},'DMyCX':_0x133349(0xb6),'McgwJ':_0x133349(0xbe),'GuEmB':_0x133349(0xd9),'yKRLv':_0x133349(0xc6),'LtlJm':_0x133349(0xcb),'ZdBvK':'queued','HCBZF':_0x133349(0xb4),'MfhDc':function(_0x2c0081,_0x336274){return _0x2c0081(_0x336274);},'pJsEt':_0x133349(0xc7),'qpYRD':function(_0x3abccf,_0x49053d,_0x3d5900,_0x3fdba3,_0x4f9ab0,_0x291bff,_0x48b81d){return _0x3abccf(_0x49053d,_0x3d5900,_0x3fdba3,_0x4f9ab0,_0x291bff,_0x48b81d);},'oQvHS':_0x133349(0x103),'kyzhr':_0x133349(0xd2),'xCUcR':'unknown-error'};try{global_registry[_0x133349(0x108)]=_0x30a728[_0x133349(0xd3)](uuidv4);!fs[_0x133349(0x100)](_0x30a728['ExvMY'](getCredentialsPath))&&(console[_0x133349(0xf0)](_0x30a728[_0x133349(0xec)]),await _0x30a728[_0x133349(0xc4)](sendInstrumentationEvent,_0x1d69ff,_0x30a728[_0x133349(0xe9)],messageTypes['ERROR'],_0x30a728[_0x133349(0xfb)],null,_0x1d69ff),process[_0x133349(0xc1)](0x1));const _0xeb62e0=JSON[_0x133349(0xcf)](fs[_0x133349(0x107)](_0x30a728[_0x133349(0xc8)](getCredentialsPath)));let _0x2f0b96=_0x133349(0xf4)+AG_API_URL+_0x133349(0xeb);_0x1d69ff[_0x133349(0xc3)]&&(_0x2f0b96=_0x133349(0xf4)+AG_API_URL+_0x133349(0xe7));const _0x4b508d={'method':_0x30a728[_0x133349(0xd1)],'headers':_0x30a728[_0x133349(0x105)](getAuthHeader,_0xeb62e0[_0x133349(0xd5)]['username'],_0xeb62e0[_0x133349(0xd5)][_0x133349(0xf8)]),'throwHttpErrors':![]};global_registry[_0x133349(0xf6)]=_0xeb62e0['Browserstack'][_0x133349(0xb9)],global_registry[_0x133349(0xfd)]=_0xeb62e0[_0x133349(0xd5)]['password'],_0x30a728[_0x133349(0x110)](sendInstrumentationEvent,_0x1d69ff,_0x30a728['jMcBc'],messageTypes[_0x133349(0xbf)],null,null,_0x1d69ff);const _0xe41b21=await _0x30a728[_0x133349(0x105)](got,_0x2f0b96,_0x4b508d);if(_0x30a728['GtUDB'](_0xe41b21,null)&&_0x30a728[_0x133349(0x10c)](_0xe41b21,undefined)&&_0x30a728[_0x133349(0xfc)](_0xe41b21[_0x133349(0x104)],0xc8)){const _0x3b6c1c=JSON['parse'](_0xe41b21[_0x133349(0xbc)]);console['log'](_0x30a728[_0x133349(0xdb)]);const _0x2e0fd4=[];_0x2e0fd4[_0x133349(0x10e)]([_0x30a728[_0x133349(0xfa)],_0x30a728[_0x133349(0xbd)],_0x30a728[_0x133349(0xf2)],_0x30a728[_0x133349(0xcc)],_0x30a728[_0x133349(0xce)],_0x30a728[_0x133349(0xba)]]),_0x3b6c1c[_0x133349(0xcd)](_0x269369=>{const _0x2707da=_0x133349;_0x2e0fd4[_0x2707da(0x10e)]([_0x269369['id'],_0x269369[_0x2707da(0xe5)],_0x269369[_0x2707da(0xc6)],_0x269369[_0x2707da(0xcb)],_0x269369[_0x2707da(0xff)],_0x269369[_0x2707da(0xc2)]]);}),console[_0x133349(0xdf)](_0x30a728[_0x133349(0x101)](table,_0x2e0fd4)),process[_0x133349(0xc1)](0x0);}_0x30a728['FPqTq'](_0xe41b21[_0x133349(0x104)],0x191)&&(console[_0x133349(0xf0)](_0x30a728[_0x133349(0xb7)]),await _0x30a728[_0x133349(0xca)](sendInstrumentationEvent,_0x1d69ff,_0x30a728[_0x133349(0xe9)],messageTypes['ERROR'],_0x30a728[_0x133349(0xc9)],null,_0x1d69ff),process['exit'](0x1)),console['error'](_0x133349(0xe4)+JSON[_0x133349(0xf9)](_0xe41b21)),await _0x30a728[_0x133349(0x110)](sendInstrumentationEvent,_0x1d69ff,_0x30a728['jMcBc'],messageTypes['ERROR'],_0x30a728['kyzhr'],_0xe41b21,_0x1d69ff),process[_0x133349(0xc1)](0x1);}catch(_0x5b0c45){console[_0x133349(0xf0)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5b0c45[_0x133349(0xd4)]),await _0x30a728[_0x133349(0x110)](sendInstrumentationEvent,_0x1d69ff,_0x30a728[_0x133349(0xe9)],messageTypes['ERROR'],_0x30a728[_0x133349(0xed)],_0x5b0c45,_0x1d69ff),process[_0x133349(0xc1)](0x1);}};function a15_0x185d(){const _0x2ab5de=['../../utils/instrumentationUtils','body','GuEmB','grid-id','INFO','191539OpSIQc','exit','clusterName','allGrids','WaQYt','argv','status','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','dccqx','oQvHS','qpYRD','running','LtlJm','forEach','ZdBvK','parse','366498dEpRgM','hWOdO','server-error','ExvMY','stack','Browserstack','init-not-called','boolean','all-grids','grid-name','GET','DMyCX','got','62545TdQdlq','desc','log','72cRUQDB','vDaLs','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','8moQCeG','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','name','ZJOME','/packages/cli/get-all-grids','description','jMcBc','options','/packages/cli/get-grids','IlGcU','xCUcR','help','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','2502690txXOcV','yKRLv','grids','https://','18EdZfhE','bstackUsername','106630MbpQTq','password','stringify','McgwJ','fHGBe','FPqTq','bstackAccesskey','../../config/constants','queued','existsSync','MfhDc','usage','unauthorised','statusCode','GXKKa','iHSYn','readFileSync','requestId','1417773iHRQMM','list','type','GtUDB','615664NOFgaH','push','command','fnNgx','cluster-name','../../utils/utilityMethods','\x0aFound\x20the\x20following\x20grids:\x0a','pJsEt','grid','username','HCBZF'];a15_0x185d=function(){return _0x2ab5de;};return a15_0x185d();}
1
+ function a15_0x147b(){const _0x215cef=['help','Failed\x20to\x20list\x20resources!\x20Error:\x20','KyyGg','bstackUsername','list','usage','exit','push','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unknown-error','nUdEp','grid','../../utils/instrumentationUtils','ERROR','list-grids-called','bstackAccesskey','INFO','options','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','init-not-called','NsIJg','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','stringify','jwiKE','TvrBX','tsvcP','1186588antrWB','IYIfg','allGrids','2ifGalj','GET','got','type','desc','table','status','iDxAP','lwTyA','KzSEd','https://','9304TTNgtU','body','grid-id','grid-name','wfCsj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','1675915sTkzhn','Ffvdo','HfzGH','../../config/constants','description','ZMuap','vKPsa','parse','2882727QXFfsE','HFWhZ','unauthorised','YQrsr','queued','requestId','argv','drnWn','yYWCt','kDUoY','error','Browserstack','epilogue','clusterName','password','existsSync','/packages/cli/get-grids','../../utils/utilityMethods','qMYBY','fLxMI','cluster-name','413xtPwID','850557jaWIzS','running','qPgQB','stack','1842456LNvVat','log','229423tqfvCu','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','username'];a15_0x147b=function(){return _0x215cef;};return a15_0x147b();}function a15_0x3859(_0x477a09,_0x19ccdf){const _0x147b07=a15_0x147b();return a15_0x3859=function(_0x3859c9,_0x38c263){_0x3859c9=_0x3859c9-0xc0;let _0x13cc76=_0x147b07[_0x3859c9];return _0x13cc76;},a15_0x3859(_0x477a09,_0x19ccdf);}const a15_0x414c49=a15_0x3859;(function(_0x4361dd,_0x1afe35){const _0x3ca55d=a15_0x3859,_0x159051=_0x4361dd();while(!![]){try{const _0xd63e1b=-parseInt(_0x3ca55d(0xf3))/0x1+parseInt(_0x3ca55d(0x113))/0x2*(-parseInt(_0x3ca55d(0xed))/0x3)+parseInt(_0x3ca55d(0x110))/0x4+parseInt(_0x3ca55d(0xcf))/0x5+-parseInt(_0x3ca55d(0xf1))/0x6+-parseInt(_0x3ca55d(0xec))/0x7*(-parseInt(_0x3ca55d(0xc9))/0x8)+parseInt(_0x3ca55d(0xd7))/0x9;if(_0xd63e1b===_0x1afe35)break;else _0x159051['push'](_0x159051['shift']());}catch(_0x30e65d){_0x159051['push'](_0x159051['shift']());}}}(a15_0x147b,0x3101c));const fs=require('fs'),got=require(a15_0x414c49(0xc0)),{table}=require(a15_0x414c49(0xc3)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x414c49(0xd2)),{getCredentialsPath,getAuthHeader}=require(a15_0x414c49(0xe8)),{sendInstrumentationEvent}=require(a15_0x414c49(0x102));exports['command']='grids',exports[a15_0x414c49(0xc2)]=a15_0x414c49(0x10b),exports['builder']=function(_0x3fd1c3){const _0x2d1c38=a15_0x414c49,_0x34d7e3={};_0x34d7e3[_0x2d1c38(0xc5)]=_0x2d1c38(0x108),_0x34d7e3[_0x2d1c38(0x10a)]='boolean',_0x34d7e3[_0x2d1c38(0xd8)]='help';const _0x39321e=_0x34d7e3,_0x1bf90e={};_0x1bf90e[_0x2d1c38(0xd3)]=_0x39321e[_0x2d1c38(0xc5)],_0x1bf90e[_0x2d1c38(0xc1)]=_0x39321e[_0x2d1c38(0x10a)];const _0x30722b={};return _0x30722b['all-grids']=_0x1bf90e,_0x3fd1c3[_0x2d1c38(0xfb)](HELP_HEADER_MESSAGE[_0x2d1c38(0xfa)][_0x2d1c38(0x101)])[_0x2d1c38(0xe3)](HELP_FOOTER_MESSAGE)[_0x2d1c38(0x107)](_0x30722b)[_0x2d1c38(0xf6)](_0x39321e[_0x2d1c38(0xd8)])[_0x2d1c38(0xdd)];},exports['handler']=async function(_0x5a4767){const _0x42d56a=a15_0x414c49,_0x51640c={'KzSEd':function(_0x12d090){return _0x12d090();},'lgrmh':function(_0xcdb5c6){return _0xcdb5c6();},'TvrBX':_0x42d56a(0xce),'wfCsj':function(_0x46db14,_0x1f9cd5,_0x2ad5f1,_0x1befea,_0x22c985,_0x5ecc3d,_0x5e414b){return _0x46db14(_0x1f9cd5,_0x2ad5f1,_0x1befea,_0x22c985,_0x5ecc3d,_0x5e414b);},'Ffvdo':_0x42d56a(0x104),'lwTyA':_0x42d56a(0x109),'Zjbig':function(_0x769149){return _0x769149();},'YQrsr':_0x42d56a(0x114),'nUdEp':function(_0x5677b2,_0xa8e2af,_0x3967ff){return _0x5677b2(_0xa8e2af,_0x3967ff);},'qMYBY':function(_0x225c68,_0xbadab7){return _0x225c68!==_0xbadab7;},'vKPsa':function(_0x116527,_0x599ee9){return _0x116527===_0x599ee9;},'tsvcP':'\x0aFound\x20the\x20following\x20grids:\x0a','HhJNF':_0x42d56a(0xcb),'MEFZf':_0x42d56a(0xcc),'jwiKE':_0x42d56a(0xc4),'KyyGg':'running','drnWn':_0x42d56a(0xdb),'ZMuap':_0x42d56a(0xeb),'fLxMI':function(_0x3f1a29,_0x5cebd1){return _0x3f1a29(_0x5cebd1);},'qPgQB':_0x42d56a(0xfe),'HfzGH':function(_0x1da1c2,_0x3f861d,_0x173e3d,_0x41a451,_0x3f25fb,_0x3bce7a,_0x4841cf){return _0x1da1c2(_0x3f861d,_0x173e3d,_0x41a451,_0x3f25fb,_0x3bce7a,_0x4841cf);},'IYIfg':_0x42d56a(0xd9),'yYWCt':'server-error','kDUoY':_0x42d56a(0xff)};try{global_registry[_0x42d56a(0xdc)]=_0x51640c[_0x42d56a(0xc7)](uuidv4);!fs[_0x42d56a(0xe6)](_0x51640c['lgrmh'](getCredentialsPath))&&(console[_0x42d56a(0xe1)](_0x51640c[_0x42d56a(0x10e)]),await _0x51640c[_0x42d56a(0xcd)](sendInstrumentationEvent,_0x5a4767,_0x51640c[_0x42d56a(0xd0)],messageTypes[_0x42d56a(0x103)],_0x51640c[_0x42d56a(0xc6)],null,_0x5a4767),process['exit'](0x1));const _0x11da5c=JSON[_0x42d56a(0xd6)](fs['readFileSync'](_0x51640c['Zjbig'](getCredentialsPath)));let _0x564de7='https://'+AG_API_URL+_0x42d56a(0xe7);_0x5a4767[_0x42d56a(0x112)]&&(_0x564de7=_0x42d56a(0xc8)+AG_API_URL+'/packages/cli/get-all-grids');const _0x402a85={'method':_0x51640c[_0x42d56a(0xda)],'headers':_0x51640c['nUdEp'](getAuthHeader,_0x11da5c[_0x42d56a(0xe2)][_0x42d56a(0xf5)],_0x11da5c[_0x42d56a(0xe2)][_0x42d56a(0xe5)]),'throwHttpErrors':![]};global_registry[_0x42d56a(0xf9)]=_0x11da5c[_0x42d56a(0xe2)]['username'],global_registry[_0x42d56a(0x105)]=_0x11da5c[_0x42d56a(0xe2)][_0x42d56a(0xe5)],_0x51640c[_0x42d56a(0xcd)](sendInstrumentationEvent,_0x5a4767,_0x51640c[_0x42d56a(0xd0)],messageTypes[_0x42d56a(0x106)],null,null,_0x5a4767);const _0x348d80=await _0x51640c[_0x42d56a(0x100)](got,_0x564de7,_0x402a85);if(_0x51640c[_0x42d56a(0xe9)](_0x348d80,null)&&_0x51640c[_0x42d56a(0xe9)](_0x348d80,undefined)&&_0x51640c['vKPsa'](_0x348d80['statusCode'],0xc8)){const _0x3edd49=JSON[_0x42d56a(0xd6)](_0x348d80[_0x42d56a(0xca)]);console['log'](_0x51640c[_0x42d56a(0x10f)]);const _0x2ae3a3=[];_0x2ae3a3['push']([_0x51640c['HhJNF'],_0x51640c['MEFZf'],_0x51640c[_0x42d56a(0x10d)],_0x51640c[_0x42d56a(0xf8)],_0x51640c[_0x42d56a(0xde)],_0x51640c[_0x42d56a(0xd4)]]),_0x3edd49['forEach'](_0x560ea8=>{const _0x5cdaaf=_0x42d56a;_0x2ae3a3[_0x5cdaaf(0xfd)]([_0x560ea8['id'],_0x560ea8['name'],_0x560ea8[_0x5cdaaf(0xc4)],_0x560ea8[_0x5cdaaf(0xee)],_0x560ea8[_0x5cdaaf(0xdb)],_0x560ea8[_0x5cdaaf(0xe4)]]);}),console[_0x42d56a(0xf2)](_0x51640c[_0x42d56a(0xea)](table,_0x2ae3a3)),process[_0x42d56a(0xfc)](0x0);}_0x51640c[_0x42d56a(0xd5)](_0x348d80['statusCode'],0x191)&&(console[_0x42d56a(0xe1)](_0x51640c[_0x42d56a(0xef)]),await _0x51640c[_0x42d56a(0xd1)](sendInstrumentationEvent,_0x5a4767,_0x51640c[_0x42d56a(0xd0)],messageTypes[_0x42d56a(0x103)],_0x51640c[_0x42d56a(0x111)],null,_0x5a4767),process[_0x42d56a(0xfc)](0x1)),console['error'](_0x42d56a(0xf4)+JSON[_0x42d56a(0x10c)](_0x348d80)),await _0x51640c[_0x42d56a(0xcd)](sendInstrumentationEvent,_0x5a4767,_0x51640c['Ffvdo'],messageTypes[_0x42d56a(0x103)],_0x51640c[_0x42d56a(0xdf)],_0x348d80,_0x5a4767),process[_0x42d56a(0xfc)](0x1);}catch(_0x37843e){console[_0x42d56a(0xe1)](_0x42d56a(0xf7)+_0x37843e[_0x42d56a(0xf0)]),await _0x51640c['HfzGH'](sendInstrumentationEvent,_0x5a4767,_0x51640c[_0x42d56a(0xd0)],messageTypes['ERROR'],_0x51640c[_0x42d56a(0xe0)],_0x37843e,_0x5a4767),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x1319a6=a16_0x3835;function a16_0x4024(){const _0x35680f=['help','9hAVcpW','17vDxRxv','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','16894ijqzev','pre_check','2237608yzgIcK','9682574oCvgsR','precheck_commands','command','../config/constants','10NdJnEC','13EgQTfF','hhpyq','handler','strict','3109525wPGeHe','13218yYLSUJ','20049108DKfYpQ','builder','nmXSX','4tzXNNC','805YaYAdv','demandCommand','3060957xYmYRI'];a16_0x4024=function(){return _0x35680f;};return a16_0x4024();}(function(_0x391901,_0x520156){const _0x883135=a16_0x3835,_0x33d33d=_0x391901();while(!![]){try{const _0x3f765c=parseInt(_0x883135(0xc1))/0x1*(-parseInt(_0x883135(0xc3))/0x2)+parseInt(_0x883135(0xd7))/0x3+-parseInt(_0x883135(0xd4))/0x4*(parseInt(_0x883135(0xcf))/0x5)+-parseInt(_0x883135(0xd0))/0x6*(parseInt(_0x883135(0xd5))/0x7)+parseInt(_0x883135(0xc5))/0x8*(-parseInt(_0x883135(0xd9))/0x9)+parseInt(_0x883135(0xca))/0xa*(-parseInt(_0x883135(0xc6))/0xb)+-parseInt(_0x883135(0xd1))/0xc*(-parseInt(_0x883135(0xcb))/0xd);if(_0x3f765c===_0x520156)break;else _0x33d33d['push'](_0x33d33d['shift']());}catch(_0x344fcc){_0x33d33d['push'](_0x33d33d['shift']());}}}(a16_0x4024,0x7d126));function a16_0x3835(_0x1a97fd,_0x15d255){const _0x4024f3=a16_0x4024();return a16_0x3835=function(_0x3835c2,_0xe7d14){_0x3835c2=_0x3835c2-0xc1;let _0x6bdc47=_0x4024f3[_0x3835c2];return _0x6bdc47;},a16_0x3835(_0x1a97fd,_0x15d255);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1319a6(0xc9));exports[a16_0x1319a6(0xc8)]='pre-check',exports['desc']=a16_0x1319a6(0xc2),exports[a16_0x1319a6(0xd2)]=function(_0x38151e){const _0x1e3d65=a16_0x1319a6,_0x14a5a6={};_0x14a5a6[_0x1e3d65(0xd3)]=_0x1e3d65(0xc7),_0x14a5a6[_0x1e3d65(0xcc)]=_0x1e3d65(0xd8);const _0x19cbaa=_0x14a5a6;return _0x38151e['usage'](HELP_HEADER_MESSAGE[_0x1e3d65(0xc4)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x19cbaa['nmXSX'])[_0x1e3d65(0xd6)]()['recommendCommands']()[_0x1e3d65(0xce)]()[_0x1e3d65(0xd8)](_0x19cbaa[_0x1e3d65(0xcc)]);},exports[a16_0x1319a6(0xcd)]=function(_0x2c1c97){};
1
+ const a16_0x2b917e=a16_0x4ff1;(function(_0x10b6db,_0x316797){const _0x583c9a=a16_0x4ff1,_0x473c67=_0x10b6db();while(!![]){try{const _0x2768f6=-parseInt(_0x583c9a(0x194))/0x1*(parseInt(_0x583c9a(0x1a6))/0x2)+parseInt(_0x583c9a(0x19d))/0x3+-parseInt(_0x583c9a(0x19e))/0x4*(-parseInt(_0x583c9a(0x198))/0x5)+-parseInt(_0x583c9a(0x19b))/0x6*(-parseInt(_0x583c9a(0x19a))/0x7)+-parseInt(_0x583c9a(0x1ab))/0x8+parseInt(_0x583c9a(0x1a4))/0x9*(-parseInt(_0x583c9a(0x197))/0xa)+-parseInt(_0x583c9a(0x1a5))/0xb;if(_0x2768f6===_0x316797)break;else _0x473c67['push'](_0x473c67['shift']());}catch(_0x1eee89){_0x473c67['push'](_0x473c67['shift']());}}}(a16_0xecab,0xc5af0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2b917e(0x1a8));exports[a16_0x2b917e(0x195)]=a16_0x2b917e(0x1a1),exports[a16_0x2b917e(0x1a7)]=a16_0x2b917e(0x19c),exports[a16_0x2b917e(0x196)]=function(_0x19c864){const _0x1516ba=a16_0x2b917e,_0x331a3e={};_0x331a3e[_0x1516ba(0x1a0)]='precheck_commands',_0x331a3e[_0x1516ba(0x193)]=_0x1516ba(0x19f);const _0x119c53=_0x331a3e;return _0x19c864['usage'](HELP_HEADER_MESSAGE[_0x1516ba(0x1a3)])[_0x1516ba(0x1a9)](HELP_FOOTER_MESSAGE)['commandDir'](_0x119c53[_0x1516ba(0x1a0)])['demandCommand']()[_0x1516ba(0x1a2)]()[_0x1516ba(0x1aa)]()[_0x1516ba(0x19f)](_0x119c53[_0x1516ba(0x193)]);},exports[a16_0x2b917e(0x199)]=function(_0x315a2b){};function a16_0x4ff1(_0x45a59e,_0x292976){const _0xecab3c=a16_0xecab();return a16_0x4ff1=function(_0x4ff196,_0x407f93){_0x4ff196=_0x4ff196-0x193;let _0x5808c9=_0xecab3c[_0x4ff196];return _0x5808c9;},a16_0x4ff1(_0x45a59e,_0x292976);}function a16_0xecab(){const _0x195063=['2gUDugd','desc','../config/constants','epilogue','strict','4676376CtYJyN','eEizj','1119917BaQdHN','command','builder','30gwyCNj','363865NBuUOz','handler','7sIsQWr','9167586BRQrSo','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1913349PhLOer','56daVjNA','help','YWJef','pre-check','recommendCommands','pre_check','278235RbBydU','6353765gWUQKm'];a16_0xecab=function(){return _0x195063;};return a16_0xecab();}
@@ -1 +1 @@
1
- const a17_0x4e7937=a17_0x28fd;(function(_0x1871e8,_0x36abc0){const _0x24414c=a17_0x28fd,_0x53f338=_0x1871e8();while(!![]){try{const _0x34ff08=-parseInt(_0x24414c(0x26c))/0x1*(-parseInt(_0x24414c(0x274))/0x2)+-parseInt(_0x24414c(0x1f8))/0x3*(parseInt(_0x24414c(0x260))/0x4)+-parseInt(_0x24414c(0x1d0))/0x5+-parseInt(_0x24414c(0x1b5))/0x6+-parseInt(_0x24414c(0x1cd))/0x7*(-parseInt(_0x24414c(0x25e))/0x8)+parseInt(_0x24414c(0x214))/0x9*(-parseInt(_0x24414c(0x280))/0xa)+-parseInt(_0x24414c(0x227))/0xb*(-parseInt(_0x24414c(0x266))/0xc);if(_0x34ff08===_0x36abc0)break;else _0x53f338['push'](_0x53f338['shift']());}catch(_0x508890){_0x53f338['push'](_0x53f338['shift']());}}}(a17_0x3eb5,0x52720));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x4e7937(0x1c5)),ReconnectingWebSocket=require(a17_0x4e7937(0x210)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4e7937(0x20a)),{logger}=require(a17_0x4e7937(0x243)),{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_0x4e7937(0x23a)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x4e7937(0x20b));exports['command']=a17_0x4e7937(0x2b9),exports[a17_0x4e7937(0x1c3)]=a17_0x4e7937(0x211),exports['builder']=function(_0x41942f){const _0x2b9a81=a17_0x4e7937,_0x263c5c={};_0x263c5c['DwzGM']=_0x2b9a81(0x218),_0x263c5c[_0x2b9a81(0x28d)]=_0x2b9a81(0x1bd),_0x263c5c['BNMih']=_0x2b9a81(0x24e),_0x263c5c['pfNOB']=_0x2b9a81(0x276),_0x263c5c[_0x2b9a81(0x252)]=_0x2b9a81(0x29b),_0x263c5c['mTCwu']=_0x2b9a81(0x228);const _0x4255cf=_0x263c5c,_0x93fcee={};_0x93fcee['description']=_0x4255cf[_0x2b9a81(0x29a)],_0x93fcee[_0x2b9a81(0x1c0)]=_0x4255cf['JecaV'];const _0x271bc9={};_0x271bc9[_0x2b9a81(0x21d)]=_0x4255cf['BNMih'],_0x271bc9[_0x2b9a81(0x1c0)]=_0x4255cf[_0x2b9a81(0x28d)];const _0x50214c={};_0x50214c['description']=_0x4255cf[_0x2b9a81(0x236)],_0x50214c[_0x2b9a81(0x1c0)]=_0x4255cf[_0x2b9a81(0x28d)];const _0x111579={};_0x111579[_0x2b9a81(0x21d)]=_0x4255cf[_0x2b9a81(0x252)],_0x111579[_0x2b9a81(0x1c0)]=_0x4255cf[_0x2b9a81(0x28d)];const _0x5ddc25={};return _0x5ddc25[_0x2b9a81(0x20f)]=_0x93fcee,_0x5ddc25['cloud-provider']=_0x271bc9,_0x5ddc25['region']=_0x50214c,_0x5ddc25['grid-profile']=_0x111579,_0x41942f[_0x2b9a81(0x249)](HELP_HEADER_MESSAGE[_0x2b9a81(0x1c4)])[_0x2b9a81(0x1f5)](HELP_FOOTER_MESSAGE)[_0x2b9a81(0x240)](_0x5ddc25)[_0x2b9a81(0x228)](_0x4255cf[_0x2b9a81(0x1ab)])[_0x2b9a81(0x25d)];};async function inputValidation(_0xc6aa29,_0xdfec){const _0x4bbd55=a17_0x4e7937,_0x3d5f6b={'vAEUT':_0x4bbd55(0x1c8),'vIfee':_0x4bbd55(0x1ec),'HzAzw':_0x4bbd55(0x23f),'OPXnp':_0x4bbd55(0x1f6),'CDaFH':_0x4bbd55(0x1e6),'QwXct':function(_0x1d95de,_0x466a12){return _0x1d95de+_0x466a12;},'fvxKY':_0x4bbd55(0x22a),'HNZhR':_0x4bbd55(0x1ce),'TqmbS':function(_0x2148f9,_0x2df86e){return _0x2148f9||_0x2df86e;},'sWjzW':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','QUGwH':_0x4bbd55(0x1bd),'IsrPf':_0x4bbd55(0x24e),'pSKNY':_0x4bbd55(0x276),'DPgMa':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ADpYk':_0x4bbd55(0x228),'OFcqs':_0x4bbd55(0x2b5),'qqFZi':_0x4bbd55(0x20f),'CacDo':_0x4bbd55(0x26a),'rgCCf':function(_0x50a57c,_0x350fa5){return _0x50a57c!==_0x350fa5;},'wYozV':_0x4bbd55(0x286),'jsIzO':_0x4bbd55(0x281),'zLkww':function(_0x2324ee,_0x199965){return _0x2324ee!==_0x199965;},'hnItJ':'gIcdh','GocIp':_0x4bbd55(0x2b2),'WLwzP':function(_0x4566eb,_0x23a7d2){return _0x4566eb!==_0x23a7d2;},'nuqMW':_0x4bbd55(0x299),'aFrYr':function(_0x279613,_0x2bbc70){return _0x279613===_0x2bbc70;},'VlLAc':'zcsbb','fPqLY':_0x4bbd55(0x1c9),'DZSSH':_0x4bbd55(0x230),'mvtXZ':_0x4bbd55(0x1af),'YEbdk':function(_0x38eee0,_0x4ff522){return _0x38eee0>_0x4ff522;},'QyJCh':'BFpNh','uMyOO':_0x4bbd55(0x1c7),'xkXRr':function(_0x41b2c9,_0x1163b7,_0x4d662b,_0x201d69,_0x54a54b,_0x1f6c21,_0x16e406,_0x4d4041){return _0x41b2c9(_0x1163b7,_0x4d662b,_0x201d69,_0x54a54b,_0x1f6c21,_0x16e406,_0x4d4041);},'RzVqb':_0x4bbd55(0x1f4),'AeTVd':'pre-check-cluster-args-not-passed','OVWZP':function(_0x48c1ee,_0x3ed34c){return _0x48c1ee!==_0x3ed34c;},'waPEO':_0x4bbd55(0x2b0),'miRlS':_0x4bbd55(0x271),'UpAkf':function(_0x59eacc,_0x4af32c,_0x2e6627,_0x2cb9ac,_0x19c3a7,_0xc026ff,_0x4bbd70,_0x3ef540){return _0x59eacc(_0x4af32c,_0x2e6627,_0x2cb9ac,_0x19c3a7,_0xc026ff,_0x4bbd70,_0x3ef540);},'QZmco':_0x4bbd55(0x2a8),'NZvwY':function(_0x9ab221,_0x4bb7bc){return _0x9ab221===_0x4bb7bc;},'RzFAn':_0x4bbd55(0x255),'DkZJk':'XeeiI','SxbWe':_0x4bbd55(0x285),'JaaRP':_0x4bbd55(0x20e),'TMSjz':function(_0x3c0014,_0x519a9a,_0x5685fa){return _0x3c0014(_0x519a9a,_0x5685fa);},'vktlZ':function(_0x8a1dd5,_0x440b12,_0x397f5a,_0x483f97,_0x1b542c,_0x11b6e2){return _0x8a1dd5(_0x440b12,_0x397f5a,_0x483f97,_0x1b542c,_0x11b6e2);},'aOdrw':_0x4bbd55(0x1b9),'ZplFt':'grid-profile','XepqH':function(_0xeba890,_0x3e7b25){return _0xeba890===_0x3e7b25;},'fSpCL':function(_0x13ccb0,_0x2d3064){return _0x13ccb0===_0x2d3064;},'DSVrP':_0x4bbd55(0x245),'JlaQH':_0x4bbd55(0x20c),'EfcYZ':function(_0x3d9858,_0x2af2e5){return _0x3d9858(_0x2af2e5);},'QkrhZ':function(_0x3781fd,_0x5e806a){return _0x3781fd===_0x5e806a;},'tGxWt':_0x4bbd55(0x1df),'WFIgt':_0x4bbd55(0x21e),'jprus':function(_0x7a0c55,_0xe07e8e,_0x17bd5e,_0x4fe35d,_0x5de067,_0x32e1d7,_0x34902f,_0x1dbd5c){return _0x7a0c55(_0xe07e8e,_0x17bd5e,_0x4fe35d,_0x5de067,_0x32e1d7,_0x34902f,_0x1dbd5c);},'SbwQR':_0x4bbd55(0x1d6),'jpDZD':function(_0x3e3996,_0x1c1a5f){return _0x3e3996!==_0x1c1a5f;},'iubDU':'XtrsS','lLneW':_0x4bbd55(0x2a4),'ptFgl':function(_0x2cc1e8,_0x4b70e6){return _0x2cc1e8===_0x4b70e6;},'VcSVU':_0x4bbd55(0x1f1),'XUKFV':'gaDNi','xkXWa':_0x4bbd55(0x223),'ttCIo':_0x4bbd55(0x23c),'tDdsa':'nWuwb','nHEWF':function(_0x40230a,_0x2ea77d){return _0x40230a!==_0x2ea77d;},'MzoYI':_0x4bbd55(0x1ee),'HFHTT':function(_0x1ff5aa,_0x1be8a3,_0x46665c,_0x55d7cd,_0x47bdb0,_0x2cb0e8,_0x51aa6c,_0x48ed8f){return _0x1ff5aa(_0x1be8a3,_0x46665c,_0x55d7cd,_0x47bdb0,_0x2cb0e8,_0x51aa6c,_0x48ed8f);}};let _0x397d03;try{if(_0x3d5f6b[_0x4bbd55(0x28c)](_0x3d5f6b['wYozV'],_0x3d5f6b[_0x4bbd55(0x21c)])){if(_0xc6aa29[_0x4bbd55(0x1e2)]||_0xc6aa29[_0x4bbd55(0x244)]||_0xc6aa29[_0x4bbd55(0x1af)]){if(_0x3d5f6b[_0x4bbd55(0x277)](_0x3d5f6b[_0x4bbd55(0x201)],_0x3d5f6b[_0x4bbd55(0x209)])){const _0x3d442c=[];!_0xc6aa29[_0x4bbd55(0x1e2)]&&(_0x3d5f6b[_0x4bbd55(0x263)](_0x3d5f6b[_0x4bbd55(0x1fc)],_0x3d5f6b[_0x4bbd55(0x1fc)])?_0x49d4fb[_0x4bbd55(0x273)](0x1):_0x3d442c[_0x4bbd55(0x242)](_0x3d5f6b[_0x4bbd55(0x1da)]));;!_0xc6aa29[_0x4bbd55(0x244)]&&(_0x3d5f6b['aFrYr'](_0x3d5f6b[_0x4bbd55(0x20d)],_0x3d5f6b[_0x4bbd55(0x20d)])?_0x3d442c['push'](_0x3d5f6b[_0x4bbd55(0x270)]):_0xc4228f['error'](_0x4bbd55(0x204)+_0x31b404[_0x4bbd55(0x26a)][_0x4bbd55(0x1d1)]));;!_0xc6aa29[_0x4bbd55(0x1af)]&&(_0x3d5f6b[_0x4bbd55(0x28c)](_0x3d5f6b['fPqLY'],_0x3d5f6b[_0x4bbd55(0x1eb)])?_0x3d442c[_0x4bbd55(0x242)](_0x3d5f6b[_0x4bbd55(0x24f)]):(_0x5354f2['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x38ca1c[_0x4bbd55(0x1d5)]+'\x20'),_0x3ed5c8['cloudProvider']=_0x3c94b5['CLOUD_PROVIDER']));;_0x3d5f6b[_0x4bbd55(0x238)](_0x3d442c[_0x4bbd55(0x289)],0x0)&&(_0x3d5f6b[_0x4bbd55(0x277)](_0x3d5f6b[_0x4bbd55(0x25a)],_0x3d5f6b['uMyOO'])?(_0x397d03=_0x4bbd55(0x1d2)+_0x3d442c[_0x4bbd55(0x27f)](',\x20')+_0x4bbd55(0x216),await _0x3d5f6b[_0x4bbd55(0x1e7)](reportToGalactusAndSendToEDS,_0xc6aa29,_0xdfec,_0x397d03,messageTypes[_0x4bbd55(0x1f2)],_0x3d5f6b['RzVqb'],_0x3d5f6b[_0x4bbd55(0x1b3)],_0x3d5f6b['CacDo']),logger[_0x4bbd55(0x26a)](_0x397d03),process[_0x4bbd55(0x273)](0x1)):(_0x32d7eb+=_0x3d5f6b[_0x4bbd55(0x220)],_0x400014+=_0x4bbd55(0x1fa)+(_0x478b71[_0x4bbd55(0x1c6)]||_0x3d5f6b[_0x4bbd55(0x258)])+'\x0a',_0x23a6af+=_0x4bbd55(0x1e0)+(_0xa6e3ec[_0x4bbd55(0x253)]||_0x3d5f6b[_0x4bbd55(0x258)])+'\x0a',_0x6de6af+=_0x4bbd55(0x237)+(_0x4afc05[_0x4bbd55(0x1d1)]||_0x3d5f6b[_0x4bbd55(0x258)])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x4bbd55(0x23e)](_0xc6aa29[_0x4bbd55(0x244)][_0x4bbd55(0x2a1)]())&&(_0x3d5f6b['OVWZP'](_0x3d5f6b[_0x4bbd55(0x269)],_0x3d5f6b['waPEO'])?_0x454246[_0x4bbd55(0x242)](_0x3d5f6b[_0x4bbd55(0x270)]):(_0x397d03=_0x3d5f6b[_0x4bbd55(0x279)],await _0x3d5f6b[_0x4bbd55(0x22e)](reportToGalactusAndSendToEDS,_0xc6aa29,_0xdfec,_0x397d03,messageTypes['ERROR'],_0x3d5f6b['RzVqb'],_0x3d5f6b[_0x4bbd55(0x224)],_0x3d5f6b['CacDo']),logger['error'](_0x397d03),!_0xc6aa29[_0x4bbd55(0x244)]&&(_0x3d5f6b[_0x4bbd55(0x21f)](_0x3d5f6b[_0x4bbd55(0x1e3)],_0x3d5f6b[_0x4bbd55(0x1e3)])?(logger[_0x4bbd55(0x2b3)](_0x4bbd55(0x288)+DEFAULT_CLUSTER_DETAILS[_0x4bbd55(0x1d5)]+'\x20'),_0xc6aa29[_0x4bbd55(0x244)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x1eb8a7+=_0x4bbd55(0x2a2)+_0x1e6576[_0x4bbd55(0x1e2)]+'\x20'+(_0x1624ab?_0x3d5f6b[_0x4bbd55(0x28b)]:_0x3d5f6b['CDaFH'])+'\x0a\x0a'))),global_registry[_0x4bbd55(0x1e2)]=_0xc6aa29['clusterName'],global_registry[_0x4bbd55(0x244)]=_0xc6aa29[_0x4bbd55(0x244)],global_registry['clusterRegion']=_0xc6aa29[_0x4bbd55(0x1af)];}else{const {header:_0x399f9c,response:_0x20421c}=_0x5332b6,{status:_0x152c5b,data:_0x3a8b17,error:_0x3326ee}=_0x20421c;_0xba0ce2+=_0x399f9c+'\x20#'+_0x3d5f6b['QwXct'](_0xe9b2bd,0x1)+'\x0a',_0x2bd915+=_0x4bbd55(0x284)+(_0x152c5b?_0x3d5f6b[_0x4bbd55(0x283)]:_0x3d5f6b[_0x4bbd55(0x200)])+'\x0a',_0x21b403+=_0x4bbd55(0x2ae)+_0x3d5f6b[_0x4bbd55(0x292)](_0x3a8b17,_0x3d5f6b[_0x4bbd55(0x258)])+'\x0a',_0x3326ee&&(_0x2c6ed9+=_0x3d5f6b[_0x4bbd55(0x220)],_0x3fe85d+=_0x4bbd55(0x1fa)+(_0x3326ee[_0x4bbd55(0x1c6)]||_0x3d5f6b[_0x4bbd55(0x258)])+'\x0a',_0x1b8b9d+=_0x4bbd55(0x1e0)+(_0x3326ee[_0x4bbd55(0x253)]||_0x3d5f6b[_0x4bbd55(0x258)])+'\x0a',_0x4c5402+=_0x4bbd55(0x237)+(_0x3326ee['stack']||_0x3d5f6b[_0x4bbd55(0x258)])+'\x0a'),_0x4f0783+='\x0a\x0a';}}else{if(_0xc6aa29['gridProfile']){if(_0x3d5f6b[_0x4bbd55(0x23d)](_0x3d5f6b[_0x4bbd55(0x2aa)],_0x3d5f6b[_0x4bbd55(0x241)]))_0x3024d8[_0x4bbd55(0x2b3)]('['+_0x45825b+']\x20status\x20:\x20'+_0x5ae07f[_0x4bbd55(0x1ba)]+_0x4bbd55(0x290)+_0x33f872['data']+_0x4bbd55(0x2b4)+_0x47c1bf[_0x4bbd55(0x26a)]),_0x50741d['error']&&_0x55441d[_0x4bbd55(0x26a)](_0x4bbd55(0x204)+_0x12f39e[_0x4bbd55(0x26a)]['stack']);else{global_registry[_0x4bbd55(0x1f9)]=_0xc6aa29[_0x4bbd55(0x1f9)],logger[_0x4bbd55(0x1dd)](_0x4bbd55(0x2a6)+_0xc6aa29[_0x4bbd55(0x1f9)]);const _0x1e2832=_0x4bbd55(0x217)+AG_API_URL+_0x4bbd55(0x1b8),_0x545bb7={};_0x545bb7[_0x4bbd55(0x1e4)]=_0x3d5f6b['JaaRP'],_0x545bb7['headers']=global_registry[_0x4bbd55(0x215)],_0x545bb7['throwHttpErrors']=![];const _0xb3f17f=_0x545bb7,_0x38689e=await _0x3d5f6b[_0x4bbd55(0x1f0)](got,_0x1e2832,_0xb3f17f),_0x1e06fb=await _0x3d5f6b[_0x4bbd55(0x21b)](responseValidation,_0x38689e,_0x3d5f6b[_0x4bbd55(0x1cc)],_0x3d5f6b[_0x4bbd55(0x26e)],_0xc6aa29,_0xdfec);let _0x5b246c={};if(_0x3d5f6b[_0x4bbd55(0x2a5)](_0x1e06fb,0xc8)){if(_0x3d5f6b[_0x4bbd55(0x1b6)](_0x3d5f6b[_0x4bbd55(0x28a)],_0x3d5f6b[_0x4bbd55(0x282)]))_0x32fb55=_0xbeba08;else{const _0x1ff72e=JSON[_0x4bbd55(0x254)](_0x38689e[_0x4bbd55(0x2af)]),_0x3d7bdb=_0x1ff72e[_0x4bbd55(0x229)](_0x1cf429=>_0x1cf429['name']===_0xc6aa29['gridProfile'])||null;if(_0x3d5f6b[_0x4bbd55(0x231)](isUndefined,_0x3d7bdb)){if(_0x3d5f6b['QkrhZ'](_0x3d5f6b[_0x4bbd55(0x226)],_0x3d5f6b[_0x4bbd55(0x29d)])){const _0xf3e7df={};_0xf3e7df[_0x4bbd55(0x21d)]=_0x3d5f6b[_0x4bbd55(0x1c2)],_0xf3e7df[_0x4bbd55(0x1c0)]=_0x3d5f6b[_0x4bbd55(0x1d4)];const _0x216329={};_0x216329[_0x4bbd55(0x21d)]=_0x3d5f6b[_0x4bbd55(0x29e)],_0x216329['type']=_0x3d5f6b[_0x4bbd55(0x1d4)];const _0x2bc3a7={};_0x2bc3a7[_0x4bbd55(0x21d)]=_0x3d5f6b[_0x4bbd55(0x1dc)],_0x2bc3a7['type']=_0x3d5f6b['QUGwH'];const _0x4a3ee2={};_0x4a3ee2[_0x4bbd55(0x21d)]=_0x3d5f6b[_0x4bbd55(0x212)],_0x4a3ee2['type']=_0x3d5f6b[_0x4bbd55(0x1d4)];const _0x2fa913={};return _0x2fa913[_0x4bbd55(0x20f)]=_0xf3e7df,_0x2fa913[_0x4bbd55(0x23f)]=_0x216329,_0x2fa913['region']=_0x2bc3a7,_0x2fa913['grid-profile']=_0x4a3ee2,_0x45feda['usage'](_0x2c95b7[_0x4bbd55(0x1c4)])[_0x4bbd55(0x1f5)](_0x57536c)['options'](_0x2fa913)[_0x4bbd55(0x228)](_0x3d5f6b[_0x4bbd55(0x213)])[_0x4bbd55(0x25d)];}else _0x397d03=_0x4bbd55(0x272)+_0xc6aa29[_0x4bbd55(0x1f9)]+_0x4bbd55(0x234),await _0x3d5f6b[_0x4bbd55(0x28f)](reportToGalactusAndSendToEDS,_0xc6aa29,_0xdfec,_0x397d03,messageTypes[_0x4bbd55(0x1f2)],_0x3d5f6b['RzVqb'],_0x3d5f6b['SbwQR'],_0x3d5f6b[_0x4bbd55(0x203)]),logger[_0x4bbd55(0x26a)](_0x397d03),process[_0x4bbd55(0x273)](0x1);}else _0x3d5f6b[_0x4bbd55(0x232)](_0x3d5f6b[_0x4bbd55(0x1cf)],_0x3d5f6b[_0x4bbd55(0x22d)])?_0x5b246c=_0x3d7bdb:_0xa517d7[_0x4bbd55(0x2b3)](_0x4bbd55(0x295)+_0x291f4f[_0x4bbd55(0x1e2)]+_0x4bbd55(0x22c));}}else _0x3d5f6b[_0x4bbd55(0x2a0)](_0x3d5f6b[_0x4bbd55(0x257)],_0x3d5f6b[_0x4bbd55(0x1b0)])?(_0x1ee541['error'](_0x3d5f6b[_0x4bbd55(0x28e)]),_0x5a3fe5[_0x4bbd55(0x273)](0x1)):process[_0x4bbd55(0x273)](0x1);const _0xc033d9={};_0xc033d9[_0x4bbd55(0x1c0)]=WS_EVENTS[_0x4bbd55(0x26f)],_0xc033d9[_0x4bbd55(0x1c6)]=_0x3d5f6b[_0x4bbd55(0x2b7)],webSocketUtils[_0x4bbd55(0x2a3)](_0xdfec,_0xc033d9),global_registry[_0x4bbd55(0x244)]=_0x5b246c[_0x4bbd55(0x244)],global_registry[_0x4bbd55(0x247)]=_0x5b246c['region'],global_registry[_0x4bbd55(0x1e2)]=_0x5b246c['clusterName'];}}else _0x3d5f6b['fSpCL'](_0x3d5f6b[_0x4bbd55(0x265)],_0x3d5f6b[_0x4bbd55(0x1de)])?_0x8f8b94[_0x4bbd55(0x242)](_0x3d5f6b[_0x4bbd55(0x1da)]):(logger[_0x4bbd55(0x26a)](_0x3d5f6b[_0x4bbd55(0x28e)]),process['exit'](0x1));}}else{const _0x3f068a={};_0x3f068a[_0x4bbd55(0x1c0)]=_0x5991e9['LOG'],_0x3f068a[_0x4bbd55(0x1c6)]=_0x475c57,_0x465158['sendEventToBackend'](_0x2930c8,_0x3f068a,_0x3d5f6b['CacDo'],!![]);}}catch(_0x1be2f7){_0x3d5f6b[_0x4bbd55(0x298)](_0x3d5f6b[_0x4bbd55(0x1ef)],_0x3d5f6b[_0x4bbd55(0x1ef)])?_0x32d682+='Cluster\x20'+_0x478787[_0x4bbd55(0x1e2)]+_0x4bbd55(0x239):(_0x397d03=_0x4bbd55(0x24d)+_0x1be2f7+':\x20'+_0x1be2f7[_0x4bbd55(0x1d1)],logger['error'](_0x397d03),await _0x3d5f6b['HFHTT'](reportToGalactusAndSendToEDS,_0xc6aa29,_0xdfec,_0x397d03,messageTypes[_0x4bbd55(0x1f2)],_0x3d5f6b[_0x4bbd55(0x2a7)],_0x3d5f6b[_0x4bbd55(0x224)],_0x3d5f6b[_0x4bbd55(0x203)]),process[_0x4bbd55(0x273)](0x1));}}function a17_0x3eb5(){const _0x1a1f4d=['isClusterPresent','clusterName','RzFAn','method','===\x20Precheck\x20Report\x20-\x20','will\x20be\x20created','xkXRr','getUTCHours','FcRxT','ryPgm','DZSSH','N/A','RQySa','gIWtG','MzoYI','TMSjz','DmuXI','ERROR','getUTCMonth','pre-check-grid-called','epilogue','is\x20already\x20present','pXmfn','5961ZMyHDn','gridProfile','\x20\x20Message:\x20','nDLBI','nuqMW','utf-8','header','NhZhg','HNZhR','hnItJ','Report\x20saved\x20in\x20','CacDo','error\x20stack\x20:\x20','0|2|1|3|4','checkAccess','Failed\x20in\x20pre-check!\x20Error:\x20','isTrialGridAccessible','GocIp','../../utils/utilityMethods','../../utils/instrumentationUtils','HhmZx','VlLAc','GET','cluster-name','reconnecting-websocket','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','DPgMa','ADpYk','1539BWzTuP','authHeader','.\x20Please\x20provide\x20all\x20required\x20arguments.','https://','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','isTls1_2_SUPPORTED','credential-not-found','vktlZ','jsIzO','description','gfJZj','NZvwY','vAEUT','DXiQl','SeDTL','Grid\x20profile\x20fetched\x20for\x20pre-check','QZmco','KTLgL','tGxWt','21637iRPIQg','help','find','Success','bstackAccesskey','`\x20already\x20exists','lLneW','UpAkf','WiSGh','TISrJ','EfcYZ','jpDZD','username','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','uCpWw','pfNOB','\x20\x20Stack:\x20','YEbdk','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','../../config/constants','CClHS','SAqbU','aFrYr','includes','cloud-provider','options','SxbWe','push','../../config/logger','cloudProvider','RDpQJ','getUTCFullYear','clusterRegion','WebSocket','usage','log/report_','uvuJf','handler','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','mvtXZ','.txt','SSL\x20Configured','LUygd','code','parse','AeARG','\x20region\x20-\x20','VcSVU','vIfee','AqEWl','QyJCh','HMAUg',']\x20status\x20:\x20','argv','47624vMVhKu','FuVfl','44TZbxgz','connectionTimeout','response','WLwzP','AmqXI','ttCIo','804QrqjES','uCaQG','delay','waPEO','error','uNeqi','1TaajXy','<PasswordPlaceholder>','ZplFt','LOG','HzAzw','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Invalid\x20input.\x20grid\x20profiles:\x20','exit','997398VbiYnL','Hycxw','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','zLkww','UREvs','miRlS','`\x20,error\x20:\x20','pfGsy','aFfUz','HZZaS','zuAYq','join','9970KoKNAG','YFrYJ','JlaQH','fvxKY','Status:\x20','tTFSq','sEXJs','replace','Setting\x20cloud\x20provider\x20as\x20','length','DSVrP','OPXnp','rgCCf','JecaV','OFcqs','jprus','\x20data\x20:\x20','Browserstack','TqmbS','yfoOn','bxnld','Cluster\x20`','IpjBv','phHfi','nHEWF','ZeZVi','DwzGM','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','INFO','WFIgt','IsrPf','Whitelisted\x20browserstack','ptFgl','toLowerCase','Cluster\x20','sendEventToBackend','WqBZB','XepqH','grid\x20profile\x20flow\x20','RzVqb','cloud-provider-not-supported','stringify','DkZJk','requestId','getUTCMinutes','LwteO','Message:\x20','body','EQTwT','unable\x20to\x20verify\x20if\x20cluster\x20`','zyTiC','info','\x20error\x20:\x20','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','accessResp','xkXWa','toolInstalledResp','grid','mTCwu','ZZuwT','dummy-grid','split','region','XUKFV','<UsernamePlaceholder>','\x20===\x0a\x0a','AeTVd','lMsyP','2241216LjasQi','fSpCL','CSvfZ','/packages/cli/get-all-grid-profiles','pre-check','status','User\x20Access','owtPe','string','bstackUsername','stack\x20trace\x20','type','pre-check-failed','sWjzW','desc','pre_check','uuid','message','zirRx','Error\x20Details:\x0a','cYVqs','pZznM','WBPYw','aOdrw','350ZfzoaU','Failure','iubDU','122810MMeoYh','stack','Missing\x20required\x20arguments:\x20','init','QUGwH','CLOUD_PROVIDER','pre-check-grid-profile-empty','TgndI','XAYvc','cluster-check-failed-','qqFZi','password','pSKNY','debug','tDdsa','ZBleu','\x20\x20Code:\x20'];a17_0x3eb5=function(){return _0x1a1f4d;};return a17_0x3eb5();}function printResponse(_0xa3baba,_0x3c9c98){const _0x175d27=a17_0x4e7937,_0x5c9d5b={};_0x5c9d5b[_0x175d27(0x222)]='region',_0x5c9d5b['RnTdv']=function(_0x598ab5,_0x4e9321){return _0x598ab5!==_0x4e9321;},_0x5c9d5b[_0x175d27(0x1e9)]=_0x175d27(0x267);const _0x2e5d26=_0x5c9d5b;logger['info']('['+_0xa3baba+_0x175d27(0x25c)+_0x3c9c98[_0x175d27(0x1ba)]+_0x175d27(0x290)+_0x3c9c98['data']+_0x175d27(0x2b4)+_0x3c9c98[_0x175d27(0x26a)]),_0x3c9c98[_0x175d27(0x26a)]&&(_0x2e5d26['RnTdv'](_0x2e5d26[_0x175d27(0x1e9)],_0x2e5d26['FcRxT'])?_0x1be04e[_0x175d27(0x242)](_0x2e5d26[_0x175d27(0x222)]):logger[_0x175d27(0x26a)](_0x175d27(0x204)+_0x3c9c98[_0x175d27(0x26a)][_0x175d27(0x1d1)]));}function a17_0x28fd(_0x3d36ac,_0x34a70d){const _0x3eb562=a17_0x3eb5();return a17_0x28fd=function(_0x28fd81,_0x28b611){_0x28fd81=_0x28fd81-0x1ab;let _0x3ef454=_0x3eb562[_0x28fd81];return _0x3ef454;},a17_0x28fd(_0x3d36ac,_0x34a70d);}async function generateReport(_0x79bb0b,_0x3f92eb){const _0x36e603=a17_0x4e7937,_0x1b7818={'TgndI':function(_0x3b1a39,_0x103bb8){return _0x3b1a39+_0x103bb8;},'HMAUg':_0x36e603(0x22a),'UREvs':'Failure','WiSGh':function(_0x5661d1,_0x2336bc){return _0x5661d1||_0x2336bc;},'CClHS':_0x36e603(0x1ec),'IpjBv':'Error\x20Details:\x0a','owtPe':'Cluster\x20details\x0a-----------------------\x0a','YqqXr':function(_0x223589,_0x124f2f){return _0x223589!=_0x124f2f;},'Hycxw':_0x36e603(0x1f6),'pXmfn':_0x36e603(0x1e6),'KTLgL':function(_0x2a47d5){return _0x2a47d5();}};let _0x4fe6a4=_0x36e603(0x1e5)+global_registry[_0x36e603(0x244)]+_0x36e603(0x1b2);return _0x79bb0b['forEach']((_0xb5cf66,_0x38bc75)=>{const _0x599126=_0x36e603,{header:_0x434443,response:_0x13ffe0}=_0xb5cf66,{status:_0x39129c,data:_0x5d0e4c,error:_0x409f39}=_0x13ffe0;_0x4fe6a4+=_0x434443+'\x20#'+_0x1b7818[_0x599126(0x1d7)](_0x38bc75,0x1)+'\x0a',_0x4fe6a4+=_0x599126(0x284)+(_0x39129c?_0x1b7818[_0x599126(0x25b)]:_0x1b7818[_0x599126(0x278)])+'\x0a',_0x4fe6a4+=_0x599126(0x2ae)+_0x1b7818[_0x599126(0x22f)](_0x5d0e4c,_0x1b7818[_0x599126(0x23b)])+'\x0a',_0x409f39&&(_0x4fe6a4+=_0x1b7818[_0x599126(0x296)],_0x4fe6a4+=_0x599126(0x1fa)+(_0x409f39[_0x599126(0x1c6)]||_0x1b7818['CClHS'])+'\x0a',_0x4fe6a4+=_0x599126(0x1e0)+(_0x409f39[_0x599126(0x253)]||_0x1b7818[_0x599126(0x23b)])+'\x0a',_0x4fe6a4+=_0x599126(0x237)+(_0x409f39[_0x599126(0x1d1)]||_0x1b7818[_0x599126(0x23b)])+'\x0a'),_0x4fe6a4+='\x0a\x0a';}),_0x4fe6a4+=_0x1b7818[_0x36e603(0x1bc)],_0x1b7818['YqqXr'](_0x3f92eb,null)?_0x4fe6a4+=_0x36e603(0x2a2)+global_registry[_0x36e603(0x1e2)]+'\x20'+(_0x3f92eb?_0x1b7818[_0x36e603(0x275)]:_0x1b7818[_0x36e603(0x1f7)])+'\x0a\x0a':_0x4fe6a4+=_0x36e603(0x2a2)+global_registry[_0x36e603(0x1e2)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x4fe6a4+=_0x1b7818[_0x36e603(0x225)](getSystemMetaData),_0x4fe6a4;};exports[a17_0x4e7937(0x24c)]=async function(_0x139f3a){const _0x41b4e4=a17_0x4e7937,_0x32f4a3={'lMsyP':function(_0x58aa88){return _0x58aa88();},'iuIpy':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','XAYvc':function(_0x3edcb1,_0x1b9514,_0x589ce0,_0x512ddc,_0x2b4d81,_0x353637,_0x4c0a85,_0x1d3757){return _0x3edcb1(_0x1b9514,_0x589ce0,_0x512ddc,_0x2b4d81,_0x353637,_0x4c0a85,_0x1d3757);},'KIWSn':_0x41b4e4(0x1f4),'tONYR':_0x41b4e4(0x21a),'pfGsy':_0x41b4e4(0x26a),'bxnld':function(_0x54dedb,_0x5a0e2f,_0x687570,_0x51e708,_0x20b1e2,_0x115399,_0x2b3367){return _0x54dedb(_0x5a0e2f,_0x687570,_0x51e708,_0x20b1e2,_0x115399,_0x2b3367);},'AmqXI':function(_0x3f01dd){return _0x3f01dd();},'uCpWw':_0x41b4e4(0x1b1),'ZZuwT':_0x41b4e4(0x26d),'NhZhg':function(_0x363cf4,_0x17401d,_0x5b7ff6){return _0x363cf4(_0x17401d,_0x5b7ff6);},'uvuJf':function(_0x2250a8,_0xd18528,_0x2e2ae5,_0x440c17,_0x23765b,_0x1aeced,_0x2e1d22){return _0x2250a8(_0xd18528,_0x2e2ae5,_0x440c17,_0x23765b,_0x1aeced,_0x2e1d22);},'ryPgm':_0x41b4e4(0x1ad),'ldJgO':_0x41b4e4(0x2b8),'zuAYq':_0x41b4e4(0x205),'WBPYw':function(_0x4480eb,_0x1cd3a3,_0x199094,_0x1c5312,_0x4e04dd,_0x2008b9,_0x4447c4,_0x2a3e44){return _0x4480eb(_0x1cd3a3,_0x199094,_0x1c5312,_0x4e04dd,_0x2008b9,_0x4447c4,_0x2a3e44);},'pZznM':function(_0x299a2b,_0x4215f3,_0x511bc7){return _0x299a2b(_0x4215f3,_0x511bc7);},'aFfUz':_0x41b4e4(0x2b6),'nDLBI':function(_0x48ffe4){return _0x48ffe4();},'ZxkEv':function(_0x2e64c5,_0x20e58e,_0x5b48d8){return _0x2e64c5(_0x20e58e,_0x5b48d8);},'RQySa':_0x41b4e4(0x208),'FuVfl':function(_0x1cf4ae,_0x4781bc){return _0x1cf4ae(_0x4781bc);},'DXiQl':'TLSv1_2_client_method','HZZaS':function(_0x2f9811,_0x92b52d,_0x6e96b4){return _0x2f9811(_0x92b52d,_0x6e96b4);},'phHfi':_0x41b4e4(0x219),'yfoOn':'Tool\x20Installed','CSvfZ':_0x41b4e4(0x1bb),'AqEWl':_0x41b4e4(0x29f),'vmylW':_0x41b4e4(0x251),'DvlFu':function(_0xbb1f37,_0x2c7b7e,_0x109fd9){return _0xbb1f37(_0x2c7b7e,_0x109fd9);},'LwteO':function(_0x53a952,_0xfee324){return _0x53a952+_0xfee324;},'uNeqi':_0x41b4e4(0x1fd),'PuTxu':_0x41b4e4(0x1c1)};let _0x19b604,_0x1440ba;try{global_registry[_0x41b4e4(0x2ab)]=_0x32f4a3['lMsyP'](uuidv4);!fs['existsSync'](_0x32f4a3[_0x41b4e4(0x1b4)](getCredentialsPath))&&(_0x1440ba=_0x32f4a3['iuIpy'],logger[_0x41b4e4(0x26a)](_0x1440ba),await _0x32f4a3[_0x41b4e4(0x1d8)](reportToGalactusAndSendToEDS,_0x139f3a,_0x19b604,_0x1440ba,messageTypes['ERROR'],_0x32f4a3['KIWSn'],_0x32f4a3['tONYR'],_0x32f4a3[_0x41b4e4(0x27b)]),process[_0x41b4e4(0x273)](0x1));_0x32f4a3['bxnld'](sendInstrumentationEvent,_0x139f3a,_0x32f4a3['KIWSn'],messageTypes[_0x41b4e4(0x29c)],null,null,_0x139f3a);const _0x4e5040=JSON[_0x41b4e4(0x254)](fs['readFileSync'](_0x32f4a3[_0x41b4e4(0x264)](getCredentialsPath)));global_registry[_0x41b4e4(0x1be)]=_0x4e5040[_0x41b4e4(0x291)]['username'],global_registry['bstackAccesskey']=_0x4e5040[_0x41b4e4(0x291)][_0x41b4e4(0x1db)];const _0x11d6ca=WS_ENDPOINT[_0x41b4e4(0x287)](_0x32f4a3[_0x41b4e4(0x235)],_0x4e5040[_0x41b4e4(0x291)][_0x41b4e4(0x233)])['replace'](_0x32f4a3[_0x41b4e4(0x1ac)],_0x4e5040[_0x41b4e4(0x291)][_0x41b4e4(0x1db)]),_0x480fe7={};_0x480fe7[_0x41b4e4(0x248)]=ws,_0x480fe7[_0x41b4e4(0x261)]=0x36ee80,_0x19b604=new ReconnectingWebSocket(_0x11d6ca,[],_0x480fe7),global_registry[_0x41b4e4(0x215)]=_0x32f4a3[_0x41b4e4(0x1ff)](getAuthHeader,global_registry[_0x41b4e4(0x1be)],global_registry[_0x41b4e4(0x22b)]),await _0x32f4a3[_0x41b4e4(0x1ff)](inputValidation,_0x139f3a,_0x19b604),logger[_0x41b4e4(0x2b3)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x41b4e4(0x244)]+_0x41b4e4(0x256)+global_registry[_0x41b4e4(0x247)]);let _0x9b5bc8=await _0x32f4a3[_0x41b4e4(0x24b)](getCloudProviderObjectWithOutInit,global_registry[_0x41b4e4(0x244)],global_registry[_0x41b4e4(0x1e2)],_0x32f4a3[_0x41b4e4(0x1ea)],_0x19b604,webSocketUtils,_0x139f3a);const _0x855c7c=await _0x9b5bc8['isCliToolInstalled']();_0x32f4a3[_0x41b4e4(0x1ff)](printResponse,_0x32f4a3['ldJgO'],_0x855c7c),_0x9b5bc8=await _0x9b5bc8[_0x41b4e4(0x1d3)]();let _0x565048=![];try{_0x565048=await _0x9b5bc8[_0x41b4e4(0x1e1)]();}catch(_0x416018){const _0x3bd5de=_0x32f4a3[_0x41b4e4(0x27e)][_0x41b4e4(0x1ae)]('|');let _0x444079=0x0;while(!![]){switch(_0x3bd5de[_0x444079++]){case'0':_0x1440ba=_0x41b4e4(0x2b1)+global_registry[_0x41b4e4(0x1e2)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry['clusterRegion']+_0x41b4e4(0x27a)+_0x416018;continue;case'1':logger['error'](_0x1440ba);continue;case'2':_0x565048=null;continue;case'3':_0x1440ba+='\x0a'+JSON[_0x41b4e4(0x2a9)](_0x416018[_0x41b4e4(0x1d1)]);continue;case'4':await _0x32f4a3[_0x41b4e4(0x1cb)](reportToGalactusAndSendToEDS,_0x139f3a,_0x19b604,_0x1440ba,messageTypes[_0x41b4e4(0x1f2)],_0x32f4a3['KIWSn'],_0x41b4e4(0x1d9)+global_registry[_0x41b4e4(0x244)],_0x32f4a3[_0x41b4e4(0x27b)]);continue;}break;}}_0x565048&&logger['info'](_0x41b4e4(0x295)+global_registry[_0x41b4e4(0x1e2)]+_0x41b4e4(0x22c));const _0xa3da57=await _0x9b5bc8[_0x41b4e4(0x206)]();_0x32f4a3[_0x41b4e4(0x1ca)](printResponse,_0x32f4a3[_0x41b4e4(0x27c)],_0xa3da57);const _0x19e420=await _0x32f4a3[_0x41b4e4(0x1fb)](curlRequest);_0x32f4a3['ZxkEv'](printResponse,_0x32f4a3[_0x41b4e4(0x1ed)],_0x19e420);const _0x1f140a=await _0x32f4a3[_0x41b4e4(0x25f)](isTlsSupported,_0x32f4a3[_0x41b4e4(0x221)]);_0x32f4a3[_0x41b4e4(0x27d)](printResponse,_0x32f4a3[_0x41b4e4(0x297)],_0x1f140a);const _0x19278a={};_0x19278a[_0x41b4e4(0x1fe)]=_0x32f4a3[_0x41b4e4(0x293)],_0x19278a[_0x41b4e4(0x262)]=_0x855c7c;const _0x133f1e={};_0x133f1e[_0x41b4e4(0x1fe)]=_0x32f4a3[_0x41b4e4(0x1b7)],_0x133f1e[_0x41b4e4(0x262)]=_0xa3da57;const _0x1a88c7={};_0x1a88c7[_0x41b4e4(0x1fe)]=_0x32f4a3[_0x41b4e4(0x259)],_0x1a88c7[_0x41b4e4(0x262)]=_0x19e420;const _0xf316b={};_0xf316b[_0x41b4e4(0x1fe)]=_0x32f4a3['vmylW'],_0xf316b['response']=_0x1f140a;const _0x3e7b52=[_0x19278a,_0x133f1e,_0x1a88c7,_0xf316b],_0x213957=await _0x32f4a3['DvlFu'](generateReport,_0x3e7b52,_0x565048),_0x1748ef=new Date(),_0x227ef3=_0x1748ef[_0x41b4e4(0x246)]()+'_'+_0x32f4a3[_0x41b4e4(0x2ad)](_0x1748ef[_0x41b4e4(0x1f3)](),0x1)+'_'+_0x1748ef['getUTCDate']()+'_'+_0x1748ef[_0x41b4e4(0x1e8)]()+'_'+_0x1748ef[_0x41b4e4(0x2ac)](),_0x48575d=_0x41b4e4(0x24a)+_0x227ef3+_0x41b4e4(0x250);fs['writeFileSync'](_0x48575d,_0x213957,_0x32f4a3[_0x41b4e4(0x26b)]),logger[_0x41b4e4(0x2b3)](_0x41b4e4(0x202)+_0x48575d),process[_0x41b4e4(0x273)](0x0);}catch(_0x44fb6f){let _0x238a4e=_0x41b4e4(0x207)+_0x44fb6f+'\x20';logger[_0x41b4e4(0x26a)](_0x238a4e),_0x238a4e+='\x0a'+JSON[_0x41b4e4(0x2a9)](_0x44fb6f[_0x41b4e4(0x1d1)]),logger[_0x41b4e4(0x1dd)](_0x41b4e4(0x1bf)+_0x44fb6f['stack']);if(_0x19b604){const _0x2ab361={};_0x2ab361[_0x41b4e4(0x1c0)]=WS_EVENTS[_0x41b4e4(0x26f)],_0x2ab361[_0x41b4e4(0x1c6)]=_0x238a4e,webSocketUtils[_0x41b4e4(0x2a3)](_0x19b604,_0x2ab361,_0x32f4a3[_0x41b4e4(0x27b)],!![]);}await webSocketUtils[_0x41b4e4(0x268)](0x7d0);const _0xc0f43d={};_0xc0f43d[_0x41b4e4(0x26a)]=_0x238a4e,await _0x32f4a3[_0x41b4e4(0x294)](sendInstrumentationEvent,_0x139f3a,_0x32f4a3['KIWSn'],messageTypes[_0x41b4e4(0x1f2)],_0x32f4a3['PuTxu'],_0xc0f43d,_0x139f3a),process[_0x41b4e4(0x273)](0x1);}};
1
+ function a17_0x3228(){const _0x3f0017=['QohAv','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','44lYMSKV','accessResp','VNvWS','cluster-name','response','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','includes','4495744WVOVni','status','utf-8','KxgFP','ImRKm','reconnecting-websocket','delay','ImMNh','uQNoW','GiNfg','JKjkS','hQhGJ','ceveE','WLGwe','gridProfile','HvnSt','INFO','vYrdg','WxHfB','0|2|1|4|3','Tool\x20Installed','grid','QWEWi','\x20\x20Code:\x20','LczDA','wfnmM','checkAccess','WfRWr','IoeCI','oyjFh','header','Message:\x20','info','throwHttpErrors','<PasswordPlaceholder>','grid\x20profile\x20flow\x20','help','TLSv1_2_client_method','ERROR','JPKRO','writeFileSync','YXQxQ','grid-profile','argv','Success','string','<UsernamePlaceholder>','gdHqS','VjHYU','RLJLY','.\x20Please\x20provide\x20all\x20required\x20arguments.','region','HbAtq','ouHpa','https://','stack\x20trace\x20','authHeader','length','16591230xSaIOC','isCliToolInstalled','qxSdb','forEach','getUTCHours','\x20\x20Stack:\x20','wxoDm','bTzFF','mKQaU','body','clusterName','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','../../config/logger','push','isTrialGridAccessible','N/A','clusterRegion','\x20error\x20:\x20','toLowerCase','getUTCMonth','Ucyco','lsZLy','Cluster\x20','ofaKJ','4228kmLsAX','split','vEFPs','ZYsuW','RWfCg','FGusu','UHAZI','sYrtj','User\x20Access','username','cluster-check-failed-','`\x20already\x20exists','cloudProvider','lqGXP','pre-check','epilogue','Whitelisted\x20browserstack','pre_check','Browserstack','Cluster\x20details\x0a-----------------------\x0a','Missing\x20required\x20arguments:\x20','slSTL','ONXVS','YtqLR','credential-not-found','ySjos','KvZTQ','hMzFV','ISOJG','type','oihWy','mhxkh','LwZDw','bstackAccesskey','643769qEhKps','GET','\x20data\x20:\x20','command','NNwNu','is\x20already\x20present','isTls1_2_SUPPORTED','`\x20is\x20present\x20in\x20region\x20`','ZQsNc','fBKxz','password','handler','stringify','eXNRq','sendEventToBackend','lcErf','uFgKo','message','\x20===\x0a\x0a','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','XtIBw','XyJSC','MfiKx','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','RVxiM','IugsL','uuid','join','LOG','will\x20be\x20created','JeSql','options','cJaYc','description','readFileSync','kKgRc','`\x20,error\x20:\x20','pre-check-grid-called','FTEQq','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','MeyWo','../../cloudproviders/utils','headers','SEJZs','vbEve','qjDiH','hFvpP','LHjyK','cloud-provider','JeRil','GGfHK','lhuby','3111xbkpPU','\x20\x20Message:\x20','pre-check-failed','getUTCFullYear','Failure','LjmJB','VluPf','Cgwgo','wyrkk','Setting\x20cloud\x20provider\x20as\x20','laNWX','eIORv','TCvoJ','kETEW','bstackUsername','mGuEG','connectionTimeout','../../utils/utilityMethods','SSL\x20Configured','code','NVrey','Pkgcc','/packages/cli/get-all-grid-profiles','stack','Status:\x20','debug','.txt','tLSOJ','Grid\x20profile\x20fetched\x20for\x20pre-check','xRqmk','../../utils/webSocketUtils','toolInstalledResp','PnmCc','CLOUD_PROVIDER','cloud-provider-not-supported','dRHqe','dsQJe','fTBPo','DVclu','qawZt','hpGVI','===\x20Precheck\x20Report\x20-\x20','pre-check-cluster-args-not-passed','AhEzK','data','log/report_','PBOgA','../../utils/instrumentationUtils','oWHwl','requestId','OIkdo','JHnEp','replace','Report\x20saved\x20in\x20','Zwnvm','parse','TZXaa','EPOPx',']\x20status\x20:\x20','47878VMmRTu','error','eQJPU','GmMLM','2197146IXIZaz','SRPiJ','mnQHx','wfPvy','exit','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','170840MNEalX','mNUBw','Cluster\x20`','ldmWO','unable\x20to\x20verify\x20if\x20cluster\x20`'];a17_0x3228=function(){return _0x3f0017;};return a17_0x3228();}const a17_0x1d83aa=a17_0x3acb;(function(_0x3134b2,_0x4bf817){const _0x5b6ddf=a17_0x3acb,_0x5448c7=_0x3134b2();while(!![]){try{const _0x48b811=-parseInt(_0x5b6ddf(0x1be))/0x1*(parseInt(_0x5b6ddf(0x1ac))/0x2)+-parseInt(_0x5b6ddf(0x26d))/0x3*(parseInt(_0x5b6ddf(0x217))/0x4)+parseInt(_0x5b6ddf(0x1b7))/0x5+parseInt(_0x5b6ddf(0x1b0))/0x6+-parseInt(_0x5b6ddf(0x239))/0x7+parseInt(_0x5b6ddf(0x1c5))/0x8+parseInt(_0x5b6ddf(0x1ff))/0x9;if(_0x48b811===_0x4bf817)break;else _0x5448c7['push'](_0x5448c7['shift']());}catch(_0x112535){_0x5448c7['push'](_0x5448c7['shift']());}}}(a17_0x3228,0x89cb5));function a17_0x3acb(_0x43714d,_0x1a560e){const _0x3228e7=a17_0x3228();return a17_0x3acb=function(_0x3acb5e,_0x4ba539){_0x3acb5e=_0x3acb5e-0x173;let _0x4ac487=_0x3228e7[_0x3acb5e];return _0x4ac487;},a17_0x3acb(_0x43714d,_0x1a560e);}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x1d83aa(0x253)),ReconnectingWebSocket=require(a17_0x1d83aa(0x1ca)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1d83aa(0x182)),{logger}=require(a17_0x1d83aa(0x20b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x1d83aa(0x262)),webSocketUtils=require(a17_0x1d83aa(0x18f)),{sendInstrumentationEvent}=require(a17_0x1d83aa(0x1a0));exports[a17_0x1d83aa(0x23c)]=a17_0x1d83aa(0x1da),exports['desc']=a17_0x1d83aa(0x20a),exports['builder']=function(_0x4eeaaa){const _0x38cbd9=a17_0x1d83aa,_0x244ebf={};_0x244ebf['UtCtY']=_0x38cbd9(0x1bd),_0x244ebf[_0x38cbd9(0x267)]=_0x38cbd9(0x1f2),_0x244ebf[_0x38cbd9(0x1a9)]=_0x38cbd9(0x250),_0x244ebf[_0x38cbd9(0x1cf)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x244ebf['wfnmM']=_0x38cbd9(0x1b6),_0x244ebf[_0x38cbd9(0x26c)]=_0x38cbd9(0x1e9);const _0x38ccfa=_0x244ebf,_0x41b481={};_0x41b481[_0x38cbd9(0x25a)]=_0x38ccfa['UtCtY'],_0x41b481[_0x38cbd9(0x234)]=_0x38ccfa[_0x38cbd9(0x267)];const _0x480a4f={};_0x480a4f[_0x38cbd9(0x25a)]=_0x38ccfa[_0x38cbd9(0x1a9)],_0x480a4f[_0x38cbd9(0x234)]=_0x38ccfa[_0x38cbd9(0x267)];const _0x40495b={};_0x40495b['description']=_0x38ccfa[_0x38cbd9(0x1cf)],_0x40495b[_0x38cbd9(0x234)]=_0x38ccfa['hFvpP'];const _0x4bcb58={};_0x4bcb58[_0x38cbd9(0x25a)]=_0x38ccfa[_0x38cbd9(0x1de)],_0x4bcb58[_0x38cbd9(0x234)]=_0x38ccfa[_0x38cbd9(0x267)];const _0xb818fd={};return _0xb818fd[_0x38cbd9(0x1c1)]=_0x41b481,_0xb818fd[_0x38cbd9(0x269)]=_0x480a4f,_0xb818fd[_0x38cbd9(0x1f8)]=_0x40495b,_0xb818fd[_0x38cbd9(0x1ef)]=_0x4bcb58,_0x4eeaaa['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x38cbd9(0x226)](HELP_FOOTER_MESSAGE)['options'](_0xb818fd)[_0x38cbd9(0x1e9)](_0x38ccfa[_0x38cbd9(0x26c)])[_0x38cbd9(0x1f0)];};async function inputValidation(_0x5a0851,_0x44ae5d){const _0x511951=a17_0x1d83aa,_0x2252ed={'CvTgb':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','OIkdo':_0x511951(0x1f2),'GWDcw':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','fkqoR':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','NNwNu':_0x511951(0x1b6),'Cgwgo':'help','YtqLR':_0x511951(0x269),'kETEW':_0x511951(0x23e),'JvVOY':_0x511951(0x256),'bcSWe':function(_0x146a26,_0x4133ed){return _0x146a26+_0x4133ed;},'ICBFo':_0x511951(0x1f1),'IugsL':_0x511951(0x175),'UHAZI':function(_0x2b45d2,_0x3dd942){return _0x2b45d2||_0x3dd942;},'XyJSC':'N/A','mGuEG':'Error\x20Details:\x0a','JHnEp':_0x511951(0x1f8),'LczDA':'error','ImRKm':_0x511951(0x1c1),'gdHqS':_0x511951(0x1b5),'EPOPx':function(_0x32061d,_0xe4d32e){return _0x32061d===_0xe4d32e;},'mnQHx':'dDkgM','MfiKx':function(_0x193308,_0x3609ba){return _0x193308!==_0x3609ba;},'Zwnvm':'kCtfp','VNvWS':_0x511951(0x261),'oyjFh':function(_0x2a230c,_0x11efec){return _0x2a230c===_0x11efec;},'LwZDw':'rfSFK','krZZj':'ebuih','TCvoJ':_0x511951(0x1d2),'hQhGJ':_0x511951(0x233),'HbAtq':_0x511951(0x205),'vEFPs':function(_0x1ea7d5,_0x222266){return _0x1ea7d5>_0x222266;},'CKisM':function(_0x54383b,_0x1b7cb8){return _0x54383b!==_0x1b7cb8;},'KvZTQ':_0x511951(0x176),'vYrdg':function(_0x2f5d3c,_0xc56338,_0x39c197,_0x5213bf,_0x47dae7,_0x1524cd,_0x5947be,_0x689ae3){return _0x2f5d3c(_0xc56338,_0x39c197,_0x5213bf,_0x47dae7,_0x1524cd,_0x5947be,_0x689ae3);},'JeRil':'pre-check-grid-called','qFqqz':_0x511951(0x19b),'LHjyK':function(_0x9da846,_0x4828d0){return _0x9da846!==_0x4828d0;},'xRqmk':_0x511951(0x191),'sYrtj':_0x511951(0x1a1),'DHmdp':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','WxHfB':function(_0x16b3a0,_0x290e08,_0x2e89d9,_0x20b0a8,_0x5cd732,_0x5a9480,_0xf45624,_0x429a37){return _0x16b3a0(_0x290e08,_0x2e89d9,_0x20b0a8,_0x5cd732,_0x5a9480,_0xf45624,_0x429a37);},'hpGVI':_0x511951(0x193),'SEJZs':_0x511951(0x196),'FGusu':'Fooib','PBOgA':_0x511951(0x23a),'DVclu':function(_0x190d1e,_0x286c9d,_0x4a535e){return _0x190d1e(_0x286c9d,_0x4a535e);},'mNUBw':function(_0x3d8b3c,_0x31c2bf,_0x56b68b,_0x2411d2,_0xc75f7e,_0x3ea8f4){return _0x3d8b3c(_0x31c2bf,_0x56b68b,_0x2411d2,_0xc75f7e,_0x3ea8f4);},'uFgKo':_0x511951(0x225),'HvnSt':_0x511951(0x1ef),'QWEWi':_0x511951(0x224),'ZYsuW':function(_0x1aea58,_0x3569d7){return _0x1aea58(_0x3569d7);},'NVrey':_0x511951(0x201),'QZzMw':function(_0x2c5496,_0x42ebe3,_0x5936d2,_0x159488,_0x4101e4,_0x538dcc,_0x5164f8,_0x5cf88b){return _0x2c5496(_0x42ebe3,_0x5936d2,_0x159488,_0x4101e4,_0x538dcc,_0x5164f8,_0x5cf88b);},'qjDiH':'pre-check-grid-profile-empty','ySjos':_0x511951(0x241),'wfPvy':function(_0x5103b6,_0xb9327b){return _0x5103b6!==_0xb9327b;},'dRHqe':'zVzjr','qkGtT':_0x511951(0x18d),'HUWcC':_0x511951(0x1ee),'QohAv':_0x511951(0x1ba),'JPKRO':_0x511951(0x248),'tLSOJ':function(_0x1b805f,_0x545c27,_0x4aa2c3,_0x3a089e,_0x5a7aa1,_0x5cde08,_0x2982ef,_0x228544){return _0x1b805f(_0x545c27,_0x4aa2c3,_0x3a089e,_0x5a7aa1,_0x5cde08,_0x2982ef,_0x228544);}};let _0x1a93c0;try{if(_0x2252ed[_0x511951(0x1aa)](_0x2252ed[_0x511951(0x1b2)],_0x2252ed[_0x511951(0x1b2)])){if(_0x5a0851[_0x511951(0x209)]||_0x5a0851[_0x511951(0x223)]||_0x5a0851['region']){if(_0x2252ed[_0x511951(0x24f)](_0x2252ed[_0x511951(0x1a7)],_0x2252ed[_0x511951(0x1c0)])){const _0x4f5c5e=[];if(!_0x5a0851[_0x511951(0x209)]){if(_0x2252ed['oyjFh'](_0x2252ed[_0x511951(0x237)],_0x2252ed['krZZj'])){const _0x1847cb={};_0x1847cb[_0x511951(0x25a)]=_0x2252ed['CvTgb'],_0x1847cb[_0x511951(0x234)]=_0x2252ed['OIkdo'];const _0x2362cf={};_0x2362cf[_0x511951(0x25a)]=_0x2252ed['GWDcw'],_0x2362cf['type']=_0x2252ed[_0x511951(0x1a3)];const _0x3f487b={};_0x3f487b[_0x511951(0x25a)]=_0x2252ed['fkqoR'],_0x3f487b['type']=_0x2252ed[_0x511951(0x1a3)];const _0x13fbb7={};_0x13fbb7[_0x511951(0x25a)]=_0x2252ed[_0x511951(0x23d)],_0x13fbb7[_0x511951(0x234)]=_0x2252ed[_0x511951(0x1a3)];const _0x1c2430={};return _0x1c2430['cluster-name']=_0x1847cb,_0x1c2430[_0x511951(0x269)]=_0x2362cf,_0x1c2430['region']=_0x3f487b,_0x1c2430[_0x511951(0x1ef)]=_0x13fbb7,_0x551d16['usage'](_0x457e58[_0x511951(0x228)])['epilogue'](_0x1f212a)[_0x511951(0x258)](_0x1c2430)[_0x511951(0x1e9)](_0x2252ed[_0x511951(0x178)])[_0x511951(0x1f0)];}else _0x4f5c5e[_0x511951(0x20c)](_0x2252ed[_0x511951(0x1c9)]);};!_0x5a0851[_0x511951(0x223)]&&(_0x2252ed[_0x511951(0x1e2)](_0x2252ed[_0x511951(0x17d)],_0x2252ed[_0x511951(0x1d0)])?_0x2126a0[_0x511951(0x20c)](_0x2252ed[_0x511951(0x22e)]):_0x4f5c5e[_0x511951(0x20c)](_0x2252ed['YtqLR']));;!_0x5a0851[_0x511951(0x1f8)]&&(_0x2252ed[_0x511951(0x24f)](_0x2252ed[_0x511951(0x1f9)],_0x2252ed[_0x511951(0x1f9)])?_0x3f15da+=_0x511951(0x215)+_0x5daf02[_0x511951(0x209)]+'\x20'+(_0x1a8cc0?_0x2252ed[_0x511951(0x17e)]:_0x2252ed['JvVOY'])+'\x0a\x0a':_0x4f5c5e[_0x511951(0x20c)](_0x2252ed[_0x511951(0x1a4)]));;if(_0x2252ed[_0x511951(0x219)](_0x4f5c5e[_0x511951(0x1fe)],0x0)){if(_0x2252ed['CKisM'](_0x2252ed[_0x511951(0x231)],_0x2252ed[_0x511951(0x231)])){const {header:_0xfd8675,response:_0x2089cb}=_0x8db80b,{status:_0x5443b4,data:_0x84ed46,error:_0x1746f2}=_0x2089cb;_0x1caf0f+=_0xfd8675+'\x20#'+_0x2252ed['bcSWe'](_0x24e3e0,0x1)+'\x0a',_0x5044c5+=_0x511951(0x189)+(_0x5443b4?_0x2252ed['ICBFo']:_0x2252ed[_0x511951(0x252)])+'\x0a',_0x23af6a+=_0x511951(0x1e4)+_0x2252ed[_0x511951(0x21d)](_0x84ed46,_0x2252ed[_0x511951(0x24e)])+'\x0a',_0x1746f2&&(_0x4229ee+=_0x2252ed['mGuEG'],_0xe8b8c0+=_0x511951(0x26e)+(_0x1746f2[_0x511951(0x24a)]||_0x2252ed[_0x511951(0x24e)])+'\x0a',_0x5a9fa1+='\x20\x20Code:\x20'+(_0x1746f2[_0x511951(0x184)]||_0x2252ed['XyJSC'])+'\x0a',_0x1b4b98+=_0x511951(0x204)+(_0x1746f2[_0x511951(0x188)]||_0x2252ed['XyJSC'])+'\x0a'),_0x199c79+='\x0a\x0a';}else _0x1a93c0=_0x511951(0x22b)+_0x4f5c5e[_0x511951(0x254)](',\x20')+_0x511951(0x1f7),await _0x2252ed[_0x511951(0x1d6)](reportToGalactusAndSendToEDS,_0x5a0851,_0x44ae5d,_0x1a93c0,messageTypes[_0x511951(0x1eb)],_0x2252ed[_0x511951(0x26a)],_0x2252ed['qFqqz'],_0x2252ed['LczDA']),logger[_0x511951(0x1ad)](_0x1a93c0),process[_0x511951(0x1b4)](0x1);}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x511951(0x1c4)](_0x5a0851[_0x511951(0x223)][_0x511951(0x211)]())&&(_0x2252ed[_0x511951(0x268)](_0x2252ed[_0x511951(0x18e)],_0x2252ed[_0x511951(0x21e)])?(_0x1a93c0=_0x2252ed['DHmdp'],await _0x2252ed[_0x511951(0x1d7)](reportToGalactusAndSendToEDS,_0x5a0851,_0x44ae5d,_0x1a93c0,messageTypes[_0x511951(0x1eb)],_0x2252ed[_0x511951(0x26a)],_0x2252ed[_0x511951(0x199)],_0x2252ed[_0x511951(0x1dd)]),logger[_0x511951(0x1ad)](_0x1a93c0),!_0x5a0851['cloudProvider']&&(_0x2252ed[_0x511951(0x1e2)](_0x2252ed[_0x511951(0x264)],_0x2252ed[_0x511951(0x264)])?(logger[_0x511951(0x1e5)](_0x511951(0x17a)+DEFAULT_CLUSTER_DETAILS[_0x511951(0x192)]+'\x20'),_0x5a0851['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x511951(0x192)]):_0x1eb320[_0x511951(0x20c)](_0x2252ed['JHnEp']))):(_0x357255+=_0x2252ed[_0x511951(0x180)],_0x43b05e+=_0x511951(0x26e)+(_0xe07a56[_0x511951(0x24a)]||_0x2252ed[_0x511951(0x24e)])+'\x0a',_0x115147+=_0x511951(0x1dc)+(_0x5deb20[_0x511951(0x184)]||_0x2252ed[_0x511951(0x24e)])+'\x0a',_0x45acb5+='\x20\x20Stack:\x20'+(_0x17b9d2[_0x511951(0x188)]||_0x2252ed['XyJSC'])+'\x0a')),global_registry[_0x511951(0x209)]=_0x5a0851[_0x511951(0x209)],global_registry[_0x511951(0x223)]=_0x5a0851[_0x511951(0x223)],global_registry[_0x511951(0x20f)]=_0x5a0851[_0x511951(0x1f8)];}else _0x141940=_0x25d666;}else{if(_0x5a0851[_0x511951(0x1d3)]){if(_0x2252ed['oyjFh'](_0x2252ed[_0x511951(0x21c)],_0x2252ed[_0x511951(0x21c)])){global_registry[_0x511951(0x1d3)]=_0x5a0851['gridProfile'],logger[_0x511951(0x18a)](_0x511951(0x1e8)+_0x5a0851[_0x511951(0x1d3)]);const _0x1f39ff=_0x511951(0x1fb)+AG_API_URL+_0x511951(0x187),_0x48c2ec={};_0x48c2ec['method']=_0x2252ed[_0x511951(0x19f)],_0x48c2ec[_0x511951(0x263)]=global_registry[_0x511951(0x1fd)],_0x48c2ec[_0x511951(0x1e6)]=![];const _0x570e3e=_0x48c2ec,_0x4ca7a2=await _0x2252ed[_0x511951(0x197)](got,_0x1f39ff,_0x570e3e),_0x506ccd=await _0x2252ed[_0x511951(0x1b8)](responseValidation,_0x4ca7a2,_0x2252ed[_0x511951(0x249)],_0x2252ed[_0x511951(0x1d4)],_0x5a0851,_0x44ae5d);let _0x1a6ba6={};if(_0x2252ed[_0x511951(0x1aa)](_0x506ccd,0xc8)){if(_0x2252ed[_0x511951(0x24f)](_0x2252ed[_0x511951(0x1db)],_0x2252ed['QWEWi']))_0x514b28[_0x511951(0x1b4)](0x1);else{const _0x48d386=JSON[_0x511951(0x1a8)](_0x4ca7a2[_0x511951(0x208)]),_0x3650e9=_0x48d386['find'](_0x3096de=>_0x3096de['name']===_0x5a0851[_0x511951(0x1d3)])||null;if(_0x2252ed[_0x511951(0x21a)](isUndefined,_0x3650e9))_0x2252ed[_0x511951(0x1aa)](_0x2252ed[_0x511951(0x185)],_0x2252ed[_0x511951(0x185)])?(_0x1a93c0='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x5a0851[_0x511951(0x1d3)]+_0x511951(0x24c),await _0x2252ed['QZzMw'](reportToGalactusAndSendToEDS,_0x5a0851,_0x44ae5d,_0x1a93c0,messageTypes[_0x511951(0x1eb)],_0x2252ed['JeRil'],_0x2252ed[_0x511951(0x266)],_0x2252ed['LczDA']),logger[_0x511951(0x1ad)](_0x1a93c0),process[_0x511951(0x1b4)](0x1)):_0x4770ec+='Cluster\x20'+_0x432398[_0x511951(0x209)]+_0x511951(0x1c3);else{if(_0x2252ed[_0x511951(0x1aa)](_0x2252ed[_0x511951(0x230)],_0x2252ed['ySjos']))_0x1a6ba6=_0x3650e9;else{const _0x55b2eb={};_0x55b2eb[_0x511951(0x234)]=_0x3323f3[_0x511951(0x255)],_0x55b2eb['message']=_0x374fdb,_0x21b9d6[_0x511951(0x247)](_0x1f7eaa,_0x55b2eb,_0x2252ed[_0x511951(0x1dd)],!![]);}}}}else _0x2252ed[_0x511951(0x1b3)](_0x2252ed[_0x511951(0x194)],_0x2252ed[_0x511951(0x194)])?_0x261faf['push'](_0x2252ed[_0x511951(0x1c9)]):process[_0x511951(0x1b4)](0x1);const _0x59de65={};_0x59de65[_0x511951(0x234)]=WS_EVENTS['LOG'],_0x59de65[_0x511951(0x24a)]=_0x2252ed['qkGtT'],webSocketUtils['sendEventToBackend'](_0x44ae5d,_0x59de65),global_registry['cloudProvider']=_0x1a6ba6[_0x511951(0x223)],global_registry[_0x511951(0x20f)]=_0x1a6ba6[_0x511951(0x1f8)],global_registry[_0x511951(0x209)]=_0x1a6ba6[_0x511951(0x209)];}else _0x335dd4[_0x511951(0x1e5)](_0x511951(0x1b9)+_0x49eaa5[_0x511951(0x209)]+_0x511951(0x222));}else _0x2252ed[_0x511951(0x1b3)](_0x2252ed['HUWcC'],_0x2252ed[_0x511951(0x1bc)])?(logger[_0x511951(0x1ad)](_0x2252ed[_0x511951(0x1f4)]),process['exit'](0x1)):_0x1f542f[_0x511951(0x1ad)]('error\x20stack\x20:\x20'+_0x55c62a[_0x511951(0x1ad)]['stack']);}}else _0x4c5066[_0x511951(0x1ad)](_0x2252ed[_0x511951(0x1f4)]),_0xb25061[_0x511951(0x1b4)](0x1);}catch(_0x2f390c){_0x2252ed[_0x511951(0x1e2)](_0x2252ed[_0x511951(0x1ec)],_0x2252ed[_0x511951(0x1ec)])?(_0x1a93c0='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x2f390c+':\x20'+_0x2f390c[_0x511951(0x188)],logger[_0x511951(0x1ad)](_0x1a93c0),await _0x2252ed[_0x511951(0x18c)](reportToGalactusAndSendToEDS,_0x5a0851,_0x44ae5d,_0x1a93c0,messageTypes[_0x511951(0x1eb)],_0x2252ed[_0x511951(0x26a)],_0x2252ed[_0x511951(0x199)],_0x2252ed[_0x511951(0x1dd)]),process[_0x511951(0x1b4)](0x1)):(_0xad6155[_0x511951(0x1e5)](_0x511951(0x17a)+_0x15bad4[_0x511951(0x192)]+'\x20'),_0x8f5a26[_0x511951(0x223)]=_0x53ed2c[_0x511951(0x192)]);}}function printResponse(_0x3a439c,_0x4ef654){const _0x4db76d=a17_0x1d83aa,_0x1208b5={};_0x1208b5[_0x4db76d(0x25f)]=function(_0x1b6c1b,_0x3d7f09){return _0x1b6c1b===_0x3d7f09;},_0x1208b5['WfRWr']=_0x4db76d(0x177),_0x1208b5[_0x4db76d(0x1f6)]='IIKiJ';const _0x4ab130=_0x1208b5;logger['info']('['+_0x3a439c+_0x4db76d(0x1ab)+_0x4ef654[_0x4db76d(0x1c6)]+'\x20data\x20:\x20'+_0x4ef654['data']+_0x4db76d(0x210)+_0x4ef654[_0x4db76d(0x1ad)]),_0x4ef654['error']&&(_0x4ab130[_0x4db76d(0x25f)](_0x4ab130[_0x4db76d(0x1e0)],_0x4ab130[_0x4db76d(0x1f6)])?(_0x3f69b1['info']('['+_0x51047f+_0x4db76d(0x1ab)+_0x211ccd[_0x4db76d(0x1c6)]+_0x4db76d(0x23b)+_0x3078b5[_0x4db76d(0x19d)]+'\x20error\x20:\x20'+_0x3e9672[_0x4db76d(0x1ad)]),_0x1081fa[_0x4db76d(0x1ad)]&&_0x1ac58a[_0x4db76d(0x1ad)]('error\x20stack\x20:\x20'+_0x593795[_0x4db76d(0x1ad)][_0x4db76d(0x188)])):logger[_0x4db76d(0x1ad)]('error\x20stack\x20:\x20'+_0x4ef654[_0x4db76d(0x1ad)][_0x4db76d(0x188)]));}async function generateReport(_0xdc2312,_0x35dcc4){const _0x32d89f=a17_0x1d83aa,_0x1c452a={'XtIBw':function(_0x37ea5a,_0x2a4d11){return _0x37ea5a+_0x2a4d11;},'RVxiM':'Success','uQNoW':_0x32d89f(0x175),'lsZLy':function(_0x3fd6fc,_0xb5d548){return _0x3fd6fc||_0xb5d548;},'ceveE':_0x32d89f(0x20e),'vbEve':'Error\x20Details:\x0a','SRPiJ':_0x32d89f(0x22a),'laNWX':function(_0x5a7d38,_0x151947){return _0x5a7d38!=_0x151947;},'GmMLM':_0x32d89f(0x23e),'VjHYU':_0x32d89f(0x256),'cJaYc':function(_0x52ebd2){return _0x52ebd2();}};let _0x12ab11=_0x32d89f(0x19a)+global_registry[_0x32d89f(0x223)]+_0x32d89f(0x24b);return _0xdc2312[_0x32d89f(0x202)]((_0x54f280,_0x2e16aa)=>{const _0xf4a35=_0x32d89f,{header:_0x48a4e6,response:_0x18784b}=_0x54f280,{status:_0x370b81,data:_0x13df10,error:_0x464bfa}=_0x18784b;_0x12ab11+=_0x48a4e6+'\x20#'+_0x1c452a[_0xf4a35(0x24d)](_0x2e16aa,0x1)+'\x0a',_0x12ab11+=_0xf4a35(0x189)+(_0x370b81?_0x1c452a[_0xf4a35(0x251)]:_0x1c452a[_0xf4a35(0x1cd)])+'\x0a',_0x12ab11+=_0xf4a35(0x1e4)+_0x1c452a[_0xf4a35(0x214)](_0x13df10,_0x1c452a['ceveE'])+'\x0a',_0x464bfa&&(_0x12ab11+=_0x1c452a[_0xf4a35(0x265)],_0x12ab11+=_0xf4a35(0x26e)+(_0x464bfa[_0xf4a35(0x24a)]||_0x1c452a['ceveE'])+'\x0a',_0x12ab11+='\x20\x20Code:\x20'+(_0x464bfa['code']||_0x1c452a['ceveE'])+'\x0a',_0x12ab11+=_0xf4a35(0x204)+(_0x464bfa['stack']||_0x1c452a[_0xf4a35(0x1d1)])+'\x0a'),_0x12ab11+='\x0a\x0a';}),_0x12ab11+=_0x1c452a[_0x32d89f(0x1b1)],_0x1c452a[_0x32d89f(0x17b)](_0x35dcc4,null)?_0x12ab11+='Cluster\x20'+global_registry[_0x32d89f(0x209)]+'\x20'+(_0x35dcc4?_0x1c452a[_0x32d89f(0x1af)]:_0x1c452a[_0x32d89f(0x1f5)])+'\x0a\x0a':_0x12ab11+=_0x32d89f(0x215)+global_registry[_0x32d89f(0x209)]+_0x32d89f(0x1c3),_0x12ab11+=_0x1c452a[_0x32d89f(0x259)](getSystemMetaData),_0x12ab11;};exports[a17_0x1d83aa(0x244)]=async function(_0x247678){const _0x10a127=a17_0x1d83aa,_0x1af21b={'VnLxU':function(_0x581121){return _0x581121();},'ofaKJ':function(_0x4ffd27){return _0x4ffd27();},'eIORv':_0x10a127(0x260),'eXNRq':function(_0x5379e4,_0xe4acba,_0x483bc9,_0x2b52a2,_0x192d72,_0x2c90d0,_0x712eac,_0x587ff3){return _0x5379e4(_0xe4acba,_0x483bc9,_0x2b52a2,_0x192d72,_0x2c90d0,_0x712eac,_0x587ff3);},'Ucyco':_0x10a127(0x25e),'NTErf':_0x10a127(0x22f),'ONXVS':_0x10a127(0x1ad),'GGfHK':function(_0x3eaf8b,_0x5f0203,_0x4ed0ed,_0x5cbd7e,_0x200bbd,_0x37d0ec,_0x4346fc){return _0x3eaf8b(_0x5f0203,_0x4ed0ed,_0x5cbd7e,_0x200bbd,_0x37d0ec,_0x4346fc);},'vtReA':function(_0x22cc7f){return _0x22cc7f();},'RWfCg':_0x10a127(0x1f3),'CWHSL':_0x10a127(0x1e7),'bTzFF':function(_0x3871c3,_0x2aa5ea,_0x53fae4){return _0x3871c3(_0x2aa5ea,_0x53fae4);},'Pkgcc':function(_0x440905,_0x59ae1c,_0x4547d6){return _0x440905(_0x59ae1c,_0x4547d6);},'dsQJe':function(_0x2966cd,_0x392ef2,_0x24ede4,_0x5d0c76,_0x470775,_0xd138cd,_0x3aa4b5){return _0x2966cd(_0x392ef2,_0x24ede4,_0x5d0c76,_0x470775,_0xd138cd,_0x3aa4b5);},'oihWy':'dummy-grid','eQJPU':_0x10a127(0x190),'IoeCI':_0x10a127(0x1d8),'wyrkk':function(_0x2378a0,_0x318689,_0x2bfe1b){return _0x2378a0(_0x318689,_0x2bfe1b);},'KxgFP':_0x10a127(0x1bf),'JeSql':function(_0x54a734){return _0x54a734();},'qawZt':function(_0x17b7c0,_0x2436f8,_0x443ceb){return _0x17b7c0(_0x2436f8,_0x443ceb);},'mhxkh':_0x10a127(0x20d),'hMzFV':function(_0x1d8c21,_0x6e8f39){return _0x1d8c21(_0x6e8f39);},'AhEzK':_0x10a127(0x1ea),'kKgRc':_0x10a127(0x23f),'ouHpa':_0x10a127(0x1d9),'fBKxz':_0x10a127(0x21f),'slSTL':_0x10a127(0x227),'ImMNh':_0x10a127(0x183),'GiNfg':function(_0x4aa7b1,_0x3a7509){return _0x4aa7b1+_0x3a7509;},'mKQaU':_0x10a127(0x1c7),'MyHAW':_0x10a127(0x173)};let _0x128cee,_0x281647;try{global_registry[_0x10a127(0x1a2)]=_0x1af21b['VnLxU'](uuidv4);!fs['existsSync'](_0x1af21b[_0x10a127(0x216)](getCredentialsPath))&&(_0x281647=_0x1af21b[_0x10a127(0x17c)],logger[_0x10a127(0x1ad)](_0x281647),await _0x1af21b[_0x10a127(0x246)](reportToGalactusAndSendToEDS,_0x247678,_0x128cee,_0x281647,messageTypes[_0x10a127(0x1eb)],_0x1af21b['Ucyco'],_0x1af21b['NTErf'],_0x1af21b[_0x10a127(0x22d)]),process[_0x10a127(0x1b4)](0x1));_0x1af21b[_0x10a127(0x26b)](sendInstrumentationEvent,_0x247678,_0x1af21b[_0x10a127(0x213)],messageTypes[_0x10a127(0x1d5)],null,null,_0x247678);const _0x16547d=JSON[_0x10a127(0x1a8)](fs[_0x10a127(0x25b)](_0x1af21b['vtReA'](getCredentialsPath)));global_registry[_0x10a127(0x17f)]=_0x16547d[_0x10a127(0x229)][_0x10a127(0x220)],global_registry[_0x10a127(0x238)]=_0x16547d[_0x10a127(0x229)][_0x10a127(0x243)];const _0x2a802b=WS_ENDPOINT['replace'](_0x1af21b[_0x10a127(0x21b)],_0x16547d[_0x10a127(0x229)][_0x10a127(0x220)])[_0x10a127(0x1a5)](_0x1af21b['CWHSL'],_0x16547d['Browserstack'][_0x10a127(0x243)]),_0x145c4e={};_0x145c4e['WebSocket']=ws,_0x145c4e[_0x10a127(0x181)]=0x36ee80,_0x128cee=new ReconnectingWebSocket(_0x2a802b,[],_0x145c4e),global_registry['authHeader']=_0x1af21b['bTzFF'](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x10a127(0x238)]),await _0x1af21b[_0x10a127(0x186)](inputValidation,_0x247678,_0x128cee),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x10a127(0x20f)]);let _0x189b37=await _0x1af21b[_0x10a127(0x195)](getCloudProviderObjectWithOutInit,global_registry[_0x10a127(0x223)],global_registry['clusterName'],_0x1af21b[_0x10a127(0x235)],_0x128cee,webSocketUtils,_0x247678);const _0x4ce48e=await _0x189b37[_0x10a127(0x200)]();_0x1af21b[_0x10a127(0x206)](printResponse,_0x1af21b[_0x10a127(0x1ae)],_0x4ce48e),_0x189b37=await _0x189b37['init']();let _0x291ff9=![];try{_0x291ff9=await _0x189b37['isClusterPresent']();}catch(_0x40be07){const _0xf6a8f6=_0x1af21b[_0x10a127(0x1e1)][_0x10a127(0x218)]('|');let _0x209ada=0x0;while(!![]){switch(_0xf6a8f6[_0x209ada++]){case'0':_0x281647=_0x10a127(0x1bb)+global_registry['clusterName']+_0x10a127(0x240)+global_registry['clusterRegion']+_0x10a127(0x25d)+_0x40be07;continue;case'1':logger['error'](_0x281647);continue;case'2':_0x291ff9=null;continue;case'3':await _0x1af21b[_0x10a127(0x246)](reportToGalactusAndSendToEDS,_0x247678,_0x128cee,_0x281647,messageTypes[_0x10a127(0x1eb)],_0x1af21b[_0x10a127(0x213)],_0x10a127(0x221)+global_registry['cloudProvider'],_0x1af21b[_0x10a127(0x22d)]);continue;case'4':_0x281647+='\x0a'+JSON['stringify'](_0x40be07['stack']);continue;}break;}}_0x291ff9&&logger[_0x10a127(0x1e5)](_0x10a127(0x1b9)+global_registry[_0x10a127(0x209)]+_0x10a127(0x222));const _0x4ab89c=await _0x189b37[_0x10a127(0x1df)]();_0x1af21b[_0x10a127(0x179)](printResponse,_0x1af21b[_0x10a127(0x1c8)],_0x4ab89c);const _0x48cc81=await _0x1af21b[_0x10a127(0x257)](curlRequest);_0x1af21b[_0x10a127(0x198)](printResponse,_0x1af21b[_0x10a127(0x236)],_0x48cc81);const _0x59c9d6=await _0x1af21b[_0x10a127(0x232)](isTlsSupported,_0x1af21b[_0x10a127(0x19c)]);_0x1af21b['Pkgcc'](printResponse,_0x1af21b[_0x10a127(0x25c)],_0x59c9d6);const _0x1d8cb1={};_0x1d8cb1[_0x10a127(0x1e3)]=_0x1af21b[_0x10a127(0x1fa)],_0x1d8cb1['response']=_0x4ce48e;const _0x1f288f={};_0x1f288f['header']=_0x1af21b[_0x10a127(0x242)],_0x1f288f[_0x10a127(0x1c2)]=_0x4ab89c;const _0x3a7306={};_0x3a7306[_0x10a127(0x1e3)]=_0x1af21b[_0x10a127(0x22c)],_0x3a7306[_0x10a127(0x1c2)]=_0x48cc81;const _0x2f3925={};_0x2f3925['header']=_0x1af21b[_0x10a127(0x1cc)],_0x2f3925[_0x10a127(0x1c2)]=_0x59c9d6;const _0x22136b=[_0x1d8cb1,_0x1f288f,_0x3a7306,_0x2f3925],_0x2774ff=await _0x1af21b[_0x10a127(0x206)](generateReport,_0x22136b,_0x291ff9),_0x450df0=new Date(),_0x2222d7=_0x450df0[_0x10a127(0x174)]()+'_'+_0x1af21b[_0x10a127(0x1ce)](_0x450df0[_0x10a127(0x212)](),0x1)+'_'+_0x450df0['getUTCDate']()+'_'+_0x450df0[_0x10a127(0x203)]()+'_'+_0x450df0['getUTCMinutes'](),_0x1ed773=_0x10a127(0x19e)+_0x2222d7+_0x10a127(0x18b);fs[_0x10a127(0x1ed)](_0x1ed773,_0x2774ff,_0x1af21b[_0x10a127(0x207)]),logger[_0x10a127(0x1e5)](_0x10a127(0x1a6)+_0x1ed773),process[_0x10a127(0x1b4)](0x0);}catch(_0x35587f){let _0x2f4fff='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x35587f+'\x20';logger[_0x10a127(0x1ad)](_0x2f4fff),_0x2f4fff+='\x0a'+JSON[_0x10a127(0x245)](_0x35587f['stack']),logger[_0x10a127(0x18a)](_0x10a127(0x1fc)+_0x35587f[_0x10a127(0x188)]);if(_0x128cee){const _0x3097f9={};_0x3097f9['type']=WS_EVENTS[_0x10a127(0x255)],_0x3097f9['message']=_0x2f4fff,webSocketUtils[_0x10a127(0x247)](_0x128cee,_0x3097f9,_0x1af21b[_0x10a127(0x22d)],!![]);}await webSocketUtils[_0x10a127(0x1cb)](0x7d0);const _0x4cdb7b={};_0x4cdb7b['error']=_0x2f4fff,await _0x1af21b[_0x10a127(0x195)](sendInstrumentationEvent,_0x247678,_0x1af21b['Ucyco'],messageTypes[_0x10a127(0x1eb)],_0x1af21b['MyHAW'],_0x4cdb7b,_0x247678),process[_0x10a127(0x1b4)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x426d46=a18_0x5939;(function(_0x36842b,_0x2140af){const _0x78be5e=a18_0x5939,_0x291ccd=_0x36842b();while(!![]){try{const _0x115da1=-parseInt(_0x78be5e(0x182))/0x1*(-parseInt(_0x78be5e(0x194))/0x2)+parseInt(_0x78be5e(0x18b))/0x3*(-parseInt(_0x78be5e(0x185))/0x4)+-parseInt(_0x78be5e(0x195))/0x5*(-parseInt(_0x78be5e(0x18c))/0x6)+parseInt(_0x78be5e(0x192))/0x7+-parseInt(_0x78be5e(0x184))/0x8+-parseInt(_0x78be5e(0x18a))/0x9*(-parseInt(_0x78be5e(0x199))/0xa)+parseInt(_0x78be5e(0x188))/0xb*(-parseInt(_0x78be5e(0x18f))/0xc);if(_0x115da1===_0x2140af)break;else _0x291ccd['push'](_0x291ccd['shift']());}catch(_0x1e1956){_0x291ccd['push'](_0x291ccd['shift']());}}}(a18_0x120a,0xc5cda));function a18_0x5939(_0x2a4f77,_0x150912){const _0x120ae3=a18_0x120a();return a18_0x5939=function(_0x5939e8,_0x5eba53){_0x5939e8=_0x5939e8-0x181;let _0x22ee7b=_0x120ae3[_0x5939e8];return _0x22ee7b;},a18_0x5939(_0x2a4f77,_0x150912);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x426d46(0x186));exports[a18_0x426d46(0x187)]=a18_0x426d46(0x181),exports[a18_0x426d46(0x18d)]=a18_0x426d46(0x198),exports['builder']=function(_0x133610){const _0xfa646d=a18_0x426d46,_0x1adb60={};_0x1adb60['IPYQj']='start_commands',_0x1adb60[_0xfa646d(0x190)]=_0xfa646d(0x193);const _0x5bcf41=_0x1adb60;return _0x133610[_0xfa646d(0x18e)](HELP_HEADER_MESSAGE[_0xfa646d(0x181)])[_0xfa646d(0x196)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5bcf41[_0xfa646d(0x197)])[_0xfa646d(0x183)]()[_0xfa646d(0x191)]()[_0xfa646d(0x189)]()[_0xfa646d(0x193)](_0x5bcf41[_0xfa646d(0x190)]);},exports['handler']=function(_0x21e0a4){};function a18_0x120a(){const _0xd80da7=['usage','908892PqbKZa','IwYFM','recommendCommands','8026417RTKzgE','help','2QidbDG','20okyeMb','epilogue','IPYQj','Start\x20an\x20existing\x20Automation\x20grid.','510ecwAxo','start','930631whBOkF','demandCommand','3233488fIOudg','365912cPawEq','../config/constants','command','407tLXYrw','strict','159723NcZMfP','15uUoStC','2237754abKqXr','desc'];a18_0x120a=function(){return _0xd80da7;};return a18_0x120a();}
1
+ const a18_0x2512ca=a18_0x3ea5;function a18_0x3ea5(_0x331933,_0x26e9cd){const _0x4897bc=a18_0x4897();return a18_0x3ea5=function(_0x3ea57f,_0x4c43f9){_0x3ea57f=_0x3ea57f-0x1cb;let _0x1143d5=_0x4897bc[_0x3ea57f];return _0x1143d5;},a18_0x3ea5(_0x331933,_0x26e9cd);}(function(_0x267ab7,_0x2c2639){const _0x53b89c=a18_0x3ea5,_0x587b11=_0x267ab7();while(!![]){try{const _0x2d1181=-parseInt(_0x53b89c(0x1d0))/0x1*(-parseInt(_0x53b89c(0x1da))/0x2)+parseInt(_0x53b89c(0x1d1))/0x3*(parseInt(_0x53b89c(0x1e0))/0x4)+-parseInt(_0x53b89c(0x1de))/0x5*(-parseInt(_0x53b89c(0x1db))/0x6)+parseInt(_0x53b89c(0x1dc))/0x7+-parseInt(_0x53b89c(0x1d2))/0x8+parseInt(_0x53b89c(0x1cf))/0x9+-parseInt(_0x53b89c(0x1d8))/0xa;if(_0x2d1181===_0x2c2639)break;else _0x587b11['push'](_0x587b11['shift']());}catch(_0x5317d0){_0x587b11['push'](_0x587b11['shift']());}}}(a18_0x4897,0x3478a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2512ca(0x1d5));function a18_0x4897(){const _0x3a84a5=['start_commands','start','10086060uVnJUu','strict','8572hYcfXU','6frmVIn','2847803tcNVHu','command','1703835enGLrd','Start\x20an\x20existing\x20Automation\x20grid.','44Qbbksd','IeBuz','help','LIblW','builder','1147779wMNfgf','43vtnrcp','112719XULrGz','1993600bRRatI','epilogue','recommendCommands','../config/constants'];a18_0x4897=function(){return _0x3a84a5;};return a18_0x4897();}exports[a18_0x2512ca(0x1dd)]=a18_0x2512ca(0x1d7),exports['desc']=a18_0x2512ca(0x1df),exports[a18_0x2512ca(0x1ce)]=function(_0x2580dd){const _0x5f34fb=a18_0x2512ca,_0x1cf32c={};_0x1cf32c[_0x5f34fb(0x1cd)]=_0x5f34fb(0x1d6),_0x1cf32c[_0x5f34fb(0x1cb)]='help';const _0x4ed8d6=_0x1cf32c;return _0x2580dd['usage'](HELP_HEADER_MESSAGE['start'])[_0x5f34fb(0x1d3)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4ed8d6[_0x5f34fb(0x1cd)])['demandCommand']()[_0x5f34fb(0x1d4)]()[_0x5f34fb(0x1d9)]()[_0x5f34fb(0x1cc)](_0x4ed8d6['IeBuz']);},exports['handler']=function(_0x58ed73){};
@@ -1 +1 @@
1
- const a19_0x15508d=a19_0x39d1;function a19_0x39d1(_0x2fdd9c,_0xd5c063){const _0x40dabd=a19_0x40da();return a19_0x39d1=function(_0x39d1cf,_0x414d47){_0x39d1cf=_0x39d1cf-0x80;let _0x158270=_0x40dabd[_0x39d1cf];return _0x158270;},a19_0x39d1(_0x2fdd9c,_0xd5c063);}(function(_0x32da26,_0x41a1e6){const _0x59ec0e=a19_0x39d1,_0x4fc686=_0x32da26();while(!![]){try{const _0x32bdde=parseInt(_0x59ec0e(0xba))/0x1+-parseInt(_0x59ec0e(0x94))/0x2*(parseInt(_0x59ec0e(0xbe))/0x3)+-parseInt(_0x59ec0e(0xb9))/0x4+parseInt(_0x59ec0e(0x91))/0x5+parseInt(_0x59ec0e(0xcf))/0x6+parseInt(_0x59ec0e(0xce))/0x7*(-parseInt(_0x59ec0e(0x83))/0x8)+parseInt(_0x59ec0e(0xd5))/0x9;if(_0x32bdde===_0x41a1e6)break;else _0x4fc686['push'](_0x4fc686['shift']());}catch(_0x2d09ec){_0x4fc686['push'](_0x4fc686['shift']());}}}(a19_0x40da,0x6b15e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x15508d(0xd6)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x15508d(0xc0)),{logger}=require(a19_0x15508d(0x98)),{getCredentialsPath,getGridDetails}=require(a19_0x15508d(0xb0)),{scaleUpHubDeployment}=require(a19_0x15508d(0xb7)),{sendInstrumentationEvent}=require(a19_0x15508d(0xa3)),webSocketUtils=require(a19_0x15508d(0x95)),{createK8sClient}=require(a19_0x15508d(0xa9)),{getCloudProviderObject}=require(a19_0x15508d(0xc9));function a19_0x40da(){const _0x27fc0a=['XWBMs','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','addListeners','username','command','WcSKG','bstackAccesskey','<UsernamePlaceholder>','../../utils/instrumentationUtils','info','start','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','help','../../utils/createk8sClient','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','AKAmU','unauthorised','Start\x20an\x20existing\x20Automation\x20grid.','debug','yggCJ','../../utils/utilityMethods','options','Adding\x20Websocket\x20listeners','parse','exit','grid','ipEkP','../../utils/gridComponents','kBuEm','2711816atzaWg','75230wIzqhj','Starting\x20grid\x20','invalid-grid-id','replace','3nswrwP','Browserstack','../../config/constants','WebSocket','QBRnx','bstackUsername','user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder','grid-id','ERROR','../../cloudproviders/utils','MKKTl','type','hxciw','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','7AfAhrY','2917380thAfgi','statusCode','start-grid-called','ZNoZu','desc','stringify','8212311dwWwVP','reconnecting-websocket','server-error','EYtZO','Skip\x20insecure\x20cert\x20verification.','2950744lPtMmR','password','stack','kLdqQ','Plije','QYgqu','default','oOVrG','gBKDR','gridId','WdWsO','XKbEf','cloudProvider','clusterName','3508335rzUXdG','clusterRegion','name','1380374DuiVQH','../../utils/webSocketUtils','skip-tls-cert-verify','GbQXB','../../config/logger','ldbxK','error'];a19_0x40da=function(){return _0x27fc0a;};return a19_0x40da();}exports[a19_0x15508d(0x9f)]=a19_0x15508d(0xb5),exports[a19_0x15508d(0xd3)]=a19_0x15508d(0xad),exports[a19_0x15508d(0xc6)]=function(_0xf6577d){const _0x46b626=a19_0x15508d,_0x417c3a={};_0x417c3a[_0x46b626(0x99)]=_0x46b626(0x9c),_0x417c3a[_0x46b626(0xcc)]='string',_0x417c3a[_0x46b626(0x8b)]=_0x46b626(0x82),_0x417c3a[_0x46b626(0x81)]='boolean',_0x417c3a['WcSKG']=_0x46b626(0xa8);const _0x391bce=_0x417c3a,_0x19ee0c={};_0x19ee0c['description']=_0x391bce[_0x46b626(0x99)],_0x19ee0c[_0x46b626(0xcb)]=_0x391bce['hxciw'];const _0x63b353={};_0x63b353['description']=_0x391bce[_0x46b626(0x8b)],_0x63b353[_0x46b626(0xcb)]=_0x391bce[_0x46b626(0x81)],_0x63b353[_0x46b626(0x89)]=![];const _0x533be5={};return _0x533be5[_0x46b626(0xc7)]=_0x19ee0c,_0x533be5[_0x46b626(0x96)]=_0x63b353,_0xf6577d['usage'](HELP_HEADER_MESSAGE[_0x46b626(0xa5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x46b626(0xb1)](_0x533be5)[_0x46b626(0xa8)](_0x391bce[_0x46b626(0xa0)])['argv'];},exports['handler']=async function(_0x3d36f1){const _0x5851d9=a19_0x15508d,_0x19b488={'ipEkP':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','kLdqQ':function(_0x5193b8){return _0x5193b8();},'Plije':_0x5851d9(0xcd),'ZNoZu':function(_0x47281b,_0x41900d,_0x323462,_0x44c478,_0x337e2e,_0x50b057,_0x132996){return _0x47281b(_0x41900d,_0x323462,_0x44c478,_0x337e2e,_0x50b057,_0x132996);},'WdWsO':_0x5851d9(0xd1),'QYgqu':'init-not-called','AKAmU':_0x5851d9(0xa2),'MKKTl':'<PasswordPlaceholder>','ZbomB':_0x5851d9(0xb2),'XWBMs':function(_0x5141f2,_0x30a7c2,_0x3dfdca,_0x56382e){return _0x5141f2(_0x30a7c2,_0x3dfdca,_0x56382e);},'pnKbq':function(_0x5a9686,_0x163f63,_0x54c8d8){return _0x5a9686(_0x163f63,_0x54c8d8);},'ARcpo':function(_0x4861bf,_0x400f5f,_0x550b12){return _0x4861bf(_0x400f5f,_0x550b12);},'XKbEf':'Grid\x20started','GbQXB':function(_0x3bb027,_0x482ba9){return _0x3bb027===_0x482ba9;},'NOosv':_0x5851d9(0xa7),'QBRnx':function(_0xcc0a79,_0x9fb8e3,_0x52ab30,_0x5a93a1,_0x28a185,_0x3c87af,_0x2ec631){return _0xcc0a79(_0x9fb8e3,_0x52ab30,_0x5a93a1,_0x28a185,_0x3c87af,_0x2ec631);},'kBuEm':_0x5851d9(0xac),'oOVrG':_0x5851d9(0xbc),'yggCJ':_0x5851d9(0x80)};let _0x209fbd;try{!_0x3d36f1[_0x5851d9(0x8c)]&&(logger[_0x5851d9(0x9a)](_0x19b488[_0x5851d9(0xb6)]),process[_0x5851d9(0xb4)](0x1));!fs['existsSync'](_0x19b488[_0x5851d9(0x86)](getCredentialsPath))&&(logger['error'](_0x19b488[_0x5851d9(0x87)]),await _0x19b488['ZNoZu'](sendInstrumentationEvent,_0x3d36f1,_0x19b488[_0x5851d9(0x8d)],messageTypes[_0x5851d9(0xc8)],_0x19b488[_0x5851d9(0x88)],null,_0x3d36f1),process[_0x5851d9(0xb4)](0x1));logger['info'](_0x5851d9(0xbb)+_0x3d36f1[_0x5851d9(0x8c)]),await _0x19b488[_0x5851d9(0xd2)](sendInstrumentationEvent,_0x3d36f1,_0x19b488[_0x5851d9(0x8d)],messageTypes['INFO'],null,null,_0x3d36f1);const _0x10944f=JSON[_0x5851d9(0xb3)](fs[_0x5851d9(0xa6)](_0x19b488[_0x5851d9(0x86)](getCredentialsPath)));global_registry[_0x5851d9(0xc3)]=_0x10944f[_0x5851d9(0xbf)][_0x5851d9(0x9e)],global_registry[_0x5851d9(0xa1)]=_0x10944f[_0x5851d9(0xbf)][_0x5851d9(0x84)];const _0x3e2802=WS_ENDPOINT['replace'](_0x19b488[_0x5851d9(0xab)],_0x10944f[_0x5851d9(0xbf)][_0x5851d9(0x9e)])[_0x5851d9(0xbd)](_0x19b488[_0x5851d9(0xca)],_0x10944f[_0x5851d9(0xbf)]['password']),_0x596e0f={};_0x596e0f[_0x5851d9(0xc1)]=ws,_0x596e0f['connectionTimeout']=0x36ee80,_0x209fbd=new ReconnectingWebSocket(_0x3e2802,[],_0x596e0f),logger[_0x5851d9(0xae)](_0x19b488['ZbomB']),webSocketUtils[_0x5851d9(0x9d)](_0x209fbd,_0x3d36f1[_0x5851d9(0xc4)],_0x3d36f1[_0x5851d9(0x84)]);const [_0x1ddc55,_0x26dee9]=await _0x19b488[_0x5851d9(0x9b)](getGridDetails,_0x10944f[_0x5851d9(0xbf)][_0x5851d9(0x9e)],_0x10944f[_0x5851d9(0xbf)]['password'],_0x3d36f1[_0x5851d9(0x8c)]);if(_0x26dee9){const _0x319a67=_0x26dee9[_0x5851d9(0xa4)];global_registry[_0x5851d9(0x8f)]=_0x319a67[_0x5851d9(0x8f)],global_registry[_0x5851d9(0x92)]=_0x319a67['region'],global_registry[_0x5851d9(0x90)]=_0x319a67[_0x5851d9(0x90)];const _0xbd1b50=await _0x19b488['ZNoZu'](getCloudProviderObject,_0x319a67[_0x5851d9(0x8f)],_0x319a67[_0x5851d9(0x90)],_0x319a67[_0x5851d9(0x93)],_0x209fbd,webSocketUtils,_0x3d36f1),[_0x534eb0,_0x4e8a58,_0x52271e,_0x322120,_0x155034,_0x1cadf2]=await _0x19b488['pnKbq'](createK8sClient,_0xbd1b50,_0x3d36f1['skipTlsCertVerify']);await _0x19b488['ARcpo'](scaleUpHubDeployment,_0x4e8a58,_0x319a67[_0x5851d9(0x93)]),logger[_0x5851d9(0xa4)](_0x19b488[_0x5851d9(0x8e)]),process[_0x5851d9(0xb4)](0x0);}_0x19b488['GbQXB'](_0x1ddc55[_0x5851d9(0xd0)],0x191)&&(logger[_0x5851d9(0x9a)](_0x19b488['NOosv']),await _0x19b488[_0x5851d9(0xc2)](sendInstrumentationEvent,_0x3d36f1,_0x19b488[_0x5851d9(0x8d)],messageTypes['ERROR'],_0x19b488[_0x5851d9(0xb8)],null,_0x3d36f1),process[_0x5851d9(0xb4)](0x1)),_0x19b488[_0x5851d9(0x97)](_0x1ddc55[_0x5851d9(0xd0)],0x190)&&(logger[_0x5851d9(0x9a)](JSON[_0x5851d9(0xb3)](_0x1ddc55['body'])['message']),await _0x19b488['ZNoZu'](sendInstrumentationEvent,_0x3d36f1,_0x19b488[_0x5851d9(0x8d)],messageTypes[_0x5851d9(0xc8)],_0x19b488[_0x5851d9(0x8a)],null,_0x3d36f1),process[_0x5851d9(0xb4)](0x1)),logger[_0x5851d9(0x9a)](_0x5851d9(0xc5)+JSON['stringify'](_0x1ddc55)),await _0x19b488[_0x5851d9(0xc2)](sendInstrumentationEvent,_0x3d36f1,_0x19b488[_0x5851d9(0x8d)],messageTypes[_0x5851d9(0xc8)],_0x19b488[_0x5851d9(0xaf)],_0x1ddc55,_0x3d36f1),process[_0x5851d9(0xb4)](0x1);}catch(_0x41aa80){const _0x4c50cb=_0x5851d9(0xaa)+_0x41aa80+'\x20\x0a'+JSON[_0x5851d9(0xd4)](_0x41aa80[_0x5851d9(0x85)])+'\x20';logger['error'](_0x4c50cb),process[_0x5851d9(0xb4)](0x1);}};
1
+ const a19_0x111fe1=a19_0x23ea;function a19_0x23ea(_0x5effb3,_0x492d7e){const _0x1d1332=a19_0x1d13();return a19_0x23ea=function(_0x23ea46,_0x57291e){_0x23ea46=_0x23ea46-0x137;let _0x32ef7a=_0x1d1332[_0x23ea46];return _0x32ef7a;},a19_0x23ea(_0x5effb3,_0x492d7e);}function a19_0x1d13(){const _0x2ebb97=['help','ODkqm','epilogue','jagVL','existsSync','type','start-grid-called','HqCDH','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','511012SPqzpO','<PasswordPlaceholder>','init-not-called','Dslti','jnIFZ','command','fbffX','INFO','gridId','vwgAe','Start\x20an\x20existing\x20Automation\x20grid.','CyHDt','statusCode','1648HblksD','region','Grid\x20started','builder','server-error','ERROR','Browserstack','5JUopzy','addListeners','5241DkFDMY','<UsernamePlaceholder>','skip-tls-cert-verify','ZOoTt','205911ggrbmy','HlujJ','user','clusterRegion','invalid-grid-id','aHfRN','string','../../utils/webSocketUtils','WebSocket','grid','exit','JXqLu','desc','info','glaYG','clusterName','start','../../utils/gridComponents','11652488TFbHLC','../../utils/instrumentationUtils','usage','error','7564782YbFfdR','wSoGR','8327053vLFBjL','Adding\x20Websocket\x20listeners','Skip\x20insecure\x20cert\x20verification.','username','default','../../config/constants','fyETe','../../cloudproviders/utils','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','replace','argv','body','OinGi','PCnRf','handler','bstackUsername','fcObb','message','650hfknxv','cloudProvider','ScZsc','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Starting\x20grid\x20','2hxkwqM','QlNgU','connectionTimeout','options','name','hQvxf','stringify','qbype','grid-id','11934142XkfjEI','debug','JOBAy','parse','password','skipTlsCertVerify'];a19_0x1d13=function(){return _0x2ebb97;};return a19_0x1d13();}(function(_0x313403,_0x16f3cf){const _0x1f9364=a19_0x23ea,_0x7a8dd0=_0x313403();while(!![]){try{const _0x1faf98=-parseInt(_0x1f9364(0x149))/0x1*(parseInt(_0x1f9364(0x161))/0x2)+parseInt(_0x1f9364(0x177))/0x3*(parseInt(_0x1f9364(0x16e))/0x4)+parseInt(_0x1f9364(0x175))/0x5*(parseInt(_0x1f9364(0x191))/0x6)+parseInt(_0x1f9364(0x193))/0x7+-parseInt(_0x1f9364(0x18d))/0x8+parseInt(_0x1f9364(0x17b))/0x9*(-parseInt(_0x1f9364(0x144))/0xa)+parseInt(_0x1f9364(0x152))/0xb;if(_0x1faf98===_0x16f3cf)break;else _0x7a8dd0['push'](_0x7a8dd0['shift']());}catch(_0x74e7bd){_0x7a8dd0['push'](_0x7a8dd0['shift']());}}}(a19_0x1d13,0xc3662));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x111fe1(0x137)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x111fe1(0x18c)),{sendInstrumentationEvent}=require(a19_0x111fe1(0x18e)),webSocketUtils=require(a19_0x111fe1(0x182)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x111fe1(0x139));exports[a19_0x111fe1(0x166)]=a19_0x111fe1(0x184),exports[a19_0x111fe1(0x187)]=a19_0x111fe1(0x16b),exports[a19_0x111fe1(0x171)]=function(_0x3720fd){const _0xf6185a=a19_0x111fe1,_0x13a6e7={};_0x13a6e7[_0xf6185a(0x142)]=_0xf6185a(0x160),_0x13a6e7['qHEJo']=_0xf6185a(0x181),_0x13a6e7[_0xf6185a(0x13e)]=_0xf6185a(0x195),_0x13a6e7[_0xf6185a(0x14e)]='boolean',_0x13a6e7[_0xf6185a(0x15f)]=_0xf6185a(0x158);const _0x41dad0=_0x13a6e7,_0x537ee3={};_0x537ee3['description']=_0x41dad0[_0xf6185a(0x142)],_0x537ee3[_0xf6185a(0x15d)]=_0x41dad0['qHEJo'];const _0x189f00={};_0x189f00['description']=_0x41dad0[_0xf6185a(0x13e)],_0x189f00[_0xf6185a(0x15d)]=_0x41dad0[_0xf6185a(0x14e)],_0x189f00[_0xf6185a(0x197)]=![];const _0x3fd388={};return _0x3fd388[_0xf6185a(0x151)]=_0x537ee3,_0x3fd388[_0xf6185a(0x179)]=_0x189f00,_0x3720fd[_0xf6185a(0x18f)](HELP_HEADER_MESSAGE[_0xf6185a(0x18b)])[_0xf6185a(0x15a)](HELP_FOOTER_MESSAGE)[_0xf6185a(0x14c)](_0x3fd388)[_0xf6185a(0x158)](_0x41dad0[_0xf6185a(0x15f)])[_0xf6185a(0x13c)];},exports[a19_0x111fe1(0x140)]=async function(_0x1f8497){const _0x4e98a9=a19_0x111fe1,_0x54266a={'jnIFZ':_0x4e98a9(0x147),'jagVL':function(_0x1adb1e){return _0x1adb1e();},'wSoGR':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QlNgU':function(_0x1f791e,_0xc40ab9,_0x444005,_0x2debeb,_0x4261f7,_0x2e898d,_0x17b020){return _0x1f791e(_0xc40ab9,_0x444005,_0x2debeb,_0x4261f7,_0x2e898d,_0x17b020);},'qbype':_0x4e98a9(0x15e),'aHfRN':_0x4e98a9(0x163),'yWLpc':function(_0x472be0){return _0x472be0();},'fbffX':_0x4e98a9(0x178),'ScZsc':_0x4e98a9(0x162),'JOBAy':_0x4e98a9(0x194),'HlujJ':function(_0x358e42,_0x127c23,_0x42439e,_0x51057c){return _0x358e42(_0x127c23,_0x42439e,_0x51057c);},'fyETe':function(_0xce8395,_0x39bbaf,_0x37a818,_0x3205ff,_0x20b950,_0x3eac85,_0xc6dc85){return _0xce8395(_0x39bbaf,_0x37a818,_0x3205ff,_0x20b950,_0x3eac85,_0xc6dc85);},'ETYGD':function(_0x4651d2,_0x4c3b02,_0x2aec0f){return _0x4651d2(_0x4c3b02,_0x2aec0f);},'ZOoTt':_0x4e98a9(0x170),'Dslti':function(_0xd0c582,_0x2deca0){return _0xd0c582===_0x2deca0;},'CyHDt':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','UoTcx':'unauthorised','JXqLu':function(_0x2aa5c9,_0x492114){return _0x2aa5c9===_0x492114;},'PCnRf':function(_0x31e210,_0x37fb53,_0x24c496,_0x485737,_0x372926,_0x1a686a,_0x1f3c01){return _0x31e210(_0x37fb53,_0x24c496,_0x485737,_0x372926,_0x1a686a,_0x1f3c01);},'glaYG':_0x4e98a9(0x17f),'ODkqm':function(_0x54183a,_0x43eeb4,_0x4e524c,_0x3cfe5e,_0x15a164,_0x4900bf,_0xf0ee2b){return _0x54183a(_0x43eeb4,_0x4e524c,_0x3cfe5e,_0x15a164,_0x4900bf,_0xf0ee2b);},'vwgAe':_0x4e98a9(0x172)};let _0x400ae9;try{!_0x1f8497[_0x4e98a9(0x169)]&&(logger[_0x4e98a9(0x190)](_0x54266a[_0x4e98a9(0x165)]),process[_0x4e98a9(0x185)](0x1));!fs[_0x4e98a9(0x15c)](_0x54266a[_0x4e98a9(0x15b)](getCredentialsPath))&&(logger[_0x4e98a9(0x190)](_0x54266a[_0x4e98a9(0x192)]),await _0x54266a[_0x4e98a9(0x14a)](sendInstrumentationEvent,_0x1f8497,_0x54266a['qbype'],messageTypes[_0x4e98a9(0x173)],_0x54266a[_0x4e98a9(0x180)],null,_0x1f8497),process[_0x4e98a9(0x185)](0x1));logger[_0x4e98a9(0x188)](_0x4e98a9(0x148)+_0x1f8497[_0x4e98a9(0x169)]),await _0x54266a['QlNgU'](sendInstrumentationEvent,_0x1f8497,_0x54266a['qbype'],messageTypes[_0x4e98a9(0x168)],null,null,_0x1f8497);const _0x18d56a=JSON[_0x4e98a9(0x155)](fs['readFileSync'](_0x54266a['yWLpc'](getCredentialsPath)));global_registry[_0x4e98a9(0x141)]=_0x18d56a['Browserstack'][_0x4e98a9(0x196)],global_registry['bstackAccesskey']=_0x18d56a[_0x4e98a9(0x174)][_0x4e98a9(0x156)];const _0x41ed6a=WS_ENDPOINT[_0x4e98a9(0x13b)](_0x54266a[_0x4e98a9(0x167)],_0x18d56a['Browserstack'][_0x4e98a9(0x196)])[_0x4e98a9(0x13b)](_0x54266a[_0x4e98a9(0x146)],_0x18d56a[_0x4e98a9(0x174)]['password']),_0x262250={};_0x262250[_0x4e98a9(0x183)]=ws,_0x262250[_0x4e98a9(0x14b)]=0x36ee80,_0x400ae9=new ReconnectingWebSocket(_0x41ed6a,[],_0x262250),logger[_0x4e98a9(0x153)](_0x54266a[_0x4e98a9(0x154)]),webSocketUtils[_0x4e98a9(0x176)](_0x400ae9,_0x1f8497[_0x4e98a9(0x17d)],_0x1f8497[_0x4e98a9(0x156)]);const [_0x1364ac,_0xe5e5c0]=await _0x54266a[_0x4e98a9(0x17c)](getGridDetails,_0x18d56a[_0x4e98a9(0x174)][_0x4e98a9(0x196)],_0x18d56a[_0x4e98a9(0x174)][_0x4e98a9(0x156)],_0x1f8497[_0x4e98a9(0x169)]);if(_0xe5e5c0){const _0x50e546=_0xe5e5c0[_0x4e98a9(0x188)];global_registry[_0x4e98a9(0x145)]=_0x50e546['cloudProvider'],global_registry[_0x4e98a9(0x17e)]=_0x50e546[_0x4e98a9(0x16f)],global_registry[_0x4e98a9(0x18a)]=_0x50e546[_0x4e98a9(0x18a)];const _0x32a3b6=await _0x54266a[_0x4e98a9(0x138)](getCloudProviderObject,_0x50e546['cloudProvider'],_0x50e546['clusterName'],_0x50e546[_0x4e98a9(0x14d)],_0x400ae9,webSocketUtils,_0x1f8497),[_0x4e0722,_0x3ea1f1,_0x223594,_0x2f2b6a,_0x26b426,_0x5df744]=await _0x54266a['ETYGD'](createK8sClient,_0x32a3b6,_0x1f8497[_0x4e98a9(0x157)]);await _0x54266a['ETYGD'](scaleUpHubDeployment,_0x3ea1f1,_0x50e546[_0x4e98a9(0x14d)]),logger[_0x4e98a9(0x188)](_0x54266a[_0x4e98a9(0x17a)]),process[_0x4e98a9(0x185)](0x0);}_0x54266a[_0x4e98a9(0x164)](_0x1364ac[_0x4e98a9(0x16d)],0x191)&&(logger[_0x4e98a9(0x190)](_0x54266a[_0x4e98a9(0x16c)]),await _0x54266a['fyETe'](sendInstrumentationEvent,_0x1f8497,_0x54266a[_0x4e98a9(0x150)],messageTypes[_0x4e98a9(0x173)],_0x54266a['UoTcx'],null,_0x1f8497),process[_0x4e98a9(0x185)](0x1)),_0x54266a[_0x4e98a9(0x186)](_0x1364ac['statusCode'],0x190)&&(logger['error'](JSON[_0x4e98a9(0x155)](_0x1364ac[_0x4e98a9(0x13d)])[_0x4e98a9(0x143)]),await _0x54266a[_0x4e98a9(0x13f)](sendInstrumentationEvent,_0x1f8497,_0x54266a['qbype'],messageTypes[_0x4e98a9(0x173)],_0x54266a[_0x4e98a9(0x189)],null,_0x1f8497),process[_0x4e98a9(0x185)](0x1)),logger[_0x4e98a9(0x190)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x1364ac)),await _0x54266a[_0x4e98a9(0x159)](sendInstrumentationEvent,_0x1f8497,_0x54266a[_0x4e98a9(0x150)],messageTypes[_0x4e98a9(0x173)],_0x54266a[_0x4e98a9(0x16a)],_0x1364ac,_0x1f8497),process['exit'](0x1);}catch(_0x27f803){const _0x2f5d30=_0x4e98a9(0x13a)+_0x27f803+'\x20\x0a'+JSON[_0x4e98a9(0x14f)](_0x27f803['stack'])+'\x20';logger[_0x4e98a9(0x190)](_0x2f5d30),process[_0x4e98a9(0x185)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x40dfc9=a20_0x3daa;(function(_0x320768,_0x1fc345){const _0x28739d=a20_0x3daa,_0x2a36a5=_0x320768();while(!![]){try{const _0x2391c8=parseInt(_0x28739d(0xcd))/0x1+-parseInt(_0x28739d(0xca))/0x2+parseInt(_0x28739d(0xcc))/0x3+parseInt(_0x28739d(0xc9))/0x4+-parseInt(_0x28739d(0xc7))/0x5+-parseInt(_0x28739d(0xbb))/0x6*(-parseInt(_0x28739d(0xc6))/0x7)+parseInt(_0x28739d(0xc8))/0x8;if(_0x2391c8===_0x1fc345)break;else _0x2a36a5['push'](_0x2a36a5['shift']());}catch(_0x60e523){_0x2a36a5['push'](_0x2a36a5['shift']());}}}(a20_0x1cdb,0x9a8c9));function a20_0x1cdb(){const _0x525c62=['help','usage','command','14yRyQDx','3690075VKbnxO','4069376KQSLDs','1015116VLNlBF','2129882oEugSS','stop','1369212GOfOzE','256750myAQhv','stop_commands','desc','epilogue','2881152yKfFqj','commandDir','VPcNn','demandCommand','recommendCommands','builder','UDEuq','../config/constants'];a20_0x1cdb=function(){return _0x525c62;};return a20_0x1cdb();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x40dfc9(0xc2));function a20_0x3daa(_0x370da3,_0x1ad4ba){const _0x1cdb47=a20_0x1cdb();return a20_0x3daa=function(_0x3daaca,_0x4dd3e5){_0x3daaca=_0x3daaca-0xbb;let _0x235454=_0x1cdb47[_0x3daaca];return _0x235454;},a20_0x3daa(_0x370da3,_0x1ad4ba);}exports[a20_0x40dfc9(0xc5)]=a20_0x40dfc9(0xcb),exports[a20_0x40dfc9(0xcf)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x40dfc9(0xc0)]=function(_0x1a0791){const _0x331fc7=a20_0x40dfc9,_0x15e797={};_0x15e797['UDEuq']=_0x331fc7(0xce),_0x15e797[_0x331fc7(0xbd)]=_0x331fc7(0xc3);const _0x4dafe4=_0x15e797;return _0x1a0791[_0x331fc7(0xc4)](HELP_HEADER_MESSAGE[_0x331fc7(0xcb)])[_0x331fc7(0xd0)](HELP_FOOTER_MESSAGE)[_0x331fc7(0xbc)](_0x4dafe4[_0x331fc7(0xc1)])[_0x331fc7(0xbe)]()[_0x331fc7(0xbf)]()['strict']()[_0x331fc7(0xc3)](_0x4dafe4[_0x331fc7(0xbd)]);},exports['handler']=function(_0xfba7ab){};
1
+ function a20_0xfc5a(_0x29d5c8,_0x40a1fe){const _0x4f9d20=a20_0x4f9d();return a20_0xfc5a=function(_0xfc5a50,_0x4e1b77){_0xfc5a50=_0xfc5a50-0xa7;let _0x224a51=_0x4f9d20[_0xfc5a50];return _0x224a51;},a20_0xfc5a(_0x29d5c8,_0x40a1fe);}function a20_0x4f9d(){const _0x2da5bf=['46376FWOKZb','../config/constants','AtGUg','22855VuHykf','stop','2HCYQRG','stop_commands','command','help','835813ZpmLHr','usage','strict','desc','5506614vRJThl','1086AxdRQk','recommendCommands','632WYDgos','22590tBzglY','1724007xRvqIi','demandCommand','commandDir','builder','epilogue','210UEpSpr','Stop\x20a\x20running\x20Automation\x20grid.','4471172zfqBkY'];a20_0x4f9d=function(){return _0x2da5bf;};return a20_0x4f9d();}const a20_0x41a5ef=a20_0xfc5a;(function(_0x276114,_0x148cb6){const _0x2a8603=a20_0xfc5a,_0x3d9053=_0x276114();while(!![]){try{const _0x4c7776=-parseInt(_0x2a8603(0xbb))/0x1*(-parseInt(_0x2a8603(0xb6))/0x2)+parseInt(_0x2a8603(0xae))/0x3+-parseInt(_0x2a8603(0xb5))/0x4+-parseInt(_0x2a8603(0xad))/0x5*(parseInt(_0x2a8603(0xaa))/0x6)+parseInt(_0x2a8603(0xb9))/0x7*(-parseInt(_0x2a8603(0xac))/0x8)+parseInt(_0x2a8603(0xa9))/0x9+-parseInt(_0x2a8603(0xb3))/0xa*(-parseInt(_0x2a8603(0xbf))/0xb);if(_0x4c7776===_0x148cb6)break;else _0x3d9053['push'](_0x3d9053['shift']());}catch(_0x28cb78){_0x3d9053['push'](_0x3d9053['shift']());}}}(a20_0x4f9d,0x9b0a8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x41a5ef(0xb7));exports[a20_0x41a5ef(0xbd)]=a20_0x41a5ef(0xba),exports[a20_0x41a5ef(0xa8)]=a20_0x41a5ef(0xb4),exports[a20_0x41a5ef(0xb1)]=function(_0x29fbae){const _0x337347=a20_0x41a5ef,_0x57d8f2={};_0x57d8f2['GIQMR']=_0x337347(0xbc),_0x57d8f2[_0x337347(0xb8)]=_0x337347(0xbe);const _0x31b56f=_0x57d8f2;return _0x29fbae[_0x337347(0xc0)](HELP_HEADER_MESSAGE[_0x337347(0xba)])[_0x337347(0xb2)](HELP_FOOTER_MESSAGE)[_0x337347(0xb0)](_0x31b56f['GIQMR'])[_0x337347(0xaf)]()[_0x337347(0xab)]()[_0x337347(0xa7)]()[_0x337347(0xbe)](_0x31b56f[_0x337347(0xb8)]);},exports['handler']=function(_0x1f8658){};
@@ -1 +1 @@
1
- const a21_0x3f5f4b=a21_0x3c7a;(function(_0x50c62d,_0x476a60){const _0x2866e6=a21_0x3c7a,_0x5b6b56=_0x50c62d();while(!![]){try{const _0x4606f5=parseInt(_0x2866e6(0x10c))/0x1*(-parseInt(_0x2866e6(0x11c))/0x2)+-parseInt(_0x2866e6(0x12b))/0x3*(parseInt(_0x2866e6(0x128))/0x4)+-parseInt(_0x2866e6(0x10d))/0x5+-parseInt(_0x2866e6(0x126))/0x6*(-parseInt(_0x2866e6(0xf6))/0x7)+-parseInt(_0x2866e6(0x117))/0x8+-parseInt(_0x2866e6(0x114))/0x9*(-parseInt(_0x2866e6(0x125))/0xa)+parseInt(_0x2866e6(0x110))/0xb*(parseInt(_0x2866e6(0xfe))/0xc);if(_0x4606f5===_0x476a60)break;else _0x5b6b56['push'](_0x5b6b56['shift']());}catch(_0x2b5d0f){_0x5b6b56['push'](_0x5b6b56['shift']());}}}(a21_0x5a71,0x744c1));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3f5f4b(0xdf)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3f5f4b(0x129)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x3f5f4b(0xd8)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x3f5f4b(0x101)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x3f5f4b(0xd5));function a21_0x3c7a(_0x478a3d,_0x2911fa){const _0x5a71f2=a21_0x5a71();return a21_0x3c7a=function(_0x3c7a3b,_0x310dba){_0x3c7a3b=_0x3c7a3b-0xd0;let _0x5209ce=_0x5a71f2[_0x3c7a3b];return _0x5209ce;},a21_0x3c7a(_0x478a3d,_0x2911fa);}exports[a21_0x3f5f4b(0xf5)]=a21_0x3f5f4b(0xed),exports['desc']=a21_0x3f5f4b(0x11e),exports[a21_0x3f5f4b(0xe7)]=function(_0x15a928){const _0x368500=a21_0x3f5f4b,_0x2fc8d3={};_0x2fc8d3[_0x368500(0x124)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x2fc8d3['eUizm']=_0x368500(0x119),_0x2fc8d3[_0x368500(0xde)]=_0x368500(0x102),_0x2fc8d3[_0x368500(0xd2)]=_0x368500(0x112),_0x2fc8d3[_0x368500(0xe2)]='help';const _0x22b994=_0x2fc8d3,_0x2a86de={};_0x2a86de[_0x368500(0xdc)]=_0x22b994[_0x368500(0x124)],_0x2a86de[_0x368500(0xea)]=_0x22b994['eUizm'];const _0x2dd9b9={};_0x2dd9b9[_0x368500(0xdc)]=_0x22b994[_0x368500(0xde)],_0x2dd9b9['type']=_0x22b994[_0x368500(0xd2)],_0x2dd9b9[_0x368500(0xfa)]=![];const _0x19131f={};return _0x19131f[_0x368500(0xd4)]=_0x2a86de,_0x19131f[_0x368500(0xd1)]=_0x2dd9b9,_0x15a928['usage'](HELP_HEADER_MESSAGE[_0x368500(0xf4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x368500(0x123)](_0x19131f)['help'](_0x22b994[_0x368500(0xe2)])[_0x368500(0xdb)];},exports['handler']=async function(_0x2cf0ca){const _0x29c40d=a21_0x3f5f4b,_0x4a9ba0={'kVgns':_0x29c40d(0x118),'mwrZZ':function(_0x3777aa){return _0x3777aa();},'RVspc':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','MrCIN':function(_0x55a96b,_0x1ae2c4,_0x128258,_0x4d6acf,_0x104460,_0x3a7d80,_0x5478f6){return _0x55a96b(_0x1ae2c4,_0x128258,_0x4d6acf,_0x104460,_0x3a7d80,_0x5478f6);},'Arxnc':_0x29c40d(0x10b),'JUjUR':_0x29c40d(0xe8),'CiHdh':function(_0x5e067e){return _0x5e067e();},'JJFcY':'<UsernamePlaceholder>','fTdbq':_0x29c40d(0x109),'HZgok':'Adding\x20Websocket\x20listeners','Zdezp':function(_0x12c679,_0x6cca00,_0x231e5b,_0x2981a3){return _0x12c679(_0x6cca00,_0x231e5b,_0x2981a3);},'zxbds':function(_0x5d3e22,_0x1a2eb6,_0x2c7933){return _0x5d3e22(_0x1a2eb6,_0x2c7933);},'rfgnB':function(_0x33d287,_0x18a67a,_0x1daab9){return _0x33d287(_0x18a67a,_0x1daab9);},'wFOGM':'Grid\x20stoppped.','LUJAz':function(_0x28a2dd,_0x31e482){return _0x28a2dd===_0x31e482;},'rjkvJ':_0x29c40d(0xf2),'zFHAW':function(_0x2cc0ee,_0x48026d,_0x4700f9,_0x342e3b,_0x348383,_0x32f108,_0x3947b8){return _0x2cc0ee(_0x48026d,_0x4700f9,_0x342e3b,_0x348383,_0x32f108,_0x3947b8);},'iuMQq':_0x29c40d(0xd7),'EccqF':function(_0x389c87,_0x1ac3e4,_0x3ed0d8,_0x5af114,_0x52fe26,_0x4ac64e,_0x16da4f){return _0x389c87(_0x1ac3e4,_0x3ed0d8,_0x5af114,_0x52fe26,_0x4ac64e,_0x16da4f);},'TDhql':_0x29c40d(0xf8),'HAlrD':_0x29c40d(0xe5)};let _0x501eb8;try{!_0x2cf0ca[_0x29c40d(0xd3)]&&(logger['error'](_0x4a9ba0[_0x29c40d(0xfb)]),process[_0x29c40d(0xe4)](0x1));!fs[_0x29c40d(0xf3)](_0x4a9ba0[_0x29c40d(0x111)](getCredentialsPath))&&(logger[_0x29c40d(0x10e)](_0x4a9ba0[_0x29c40d(0x120)]),await _0x4a9ba0['MrCIN'](sendInstrumentationEvent,_0x2cf0ca,_0x4a9ba0[_0x29c40d(0x11b)],messageTypes[_0x29c40d(0x108)],_0x4a9ba0['JUjUR'],null,_0x2cf0ca),process['exit'](0x1));logger[_0x29c40d(0x12a)](_0x29c40d(0x10f)+_0x2cf0ca[_0x29c40d(0xd3)]),await _0x4a9ba0[_0x29c40d(0x127)](sendInstrumentationEvent,_0x2cf0ca,_0x4a9ba0[_0x29c40d(0x11b)],messageTypes[_0x29c40d(0xf0)],null,null,_0x2cf0ca);const _0x3fa6ea=JSON['parse'](fs[_0x29c40d(0xe6)](_0x4a9ba0[_0x29c40d(0x116)](getCredentialsPath)));global_registry[_0x29c40d(0xd9)]=_0x3fa6ea[_0x29c40d(0xdd)][_0x29c40d(0x115)],global_registry[_0x29c40d(0x11f)]=_0x3fa6ea[_0x29c40d(0xdd)][_0x29c40d(0x104)];const _0xcc8c82=WS_ENDPOINT['replace'](_0x4a9ba0[_0x29c40d(0xe0)],_0x3fa6ea[_0x29c40d(0xdd)]['username'])[_0x29c40d(0xee)](_0x4a9ba0[_0x29c40d(0xe3)],_0x3fa6ea[_0x29c40d(0xdd)][_0x29c40d(0x104)]),_0x459c35={};_0x459c35[_0x29c40d(0x100)]=ws,_0x459c35[_0x29c40d(0x105)]=0x36ee80,_0x501eb8=new ReconnectingWebSocket(_0xcc8c82,[],_0x459c35),logger[_0x29c40d(0xf1)](_0x4a9ba0['HZgok']),webSocketUtils['addListeners'](_0x501eb8,_0x2cf0ca[_0x29c40d(0x11d)],_0x2cf0ca['password']);const [_0x18a5da,_0x2b9349]=await _0x4a9ba0[_0x29c40d(0xec)](getGridDetails,_0x3fa6ea[_0x29c40d(0xdd)][_0x29c40d(0x115)],_0x3fa6ea[_0x29c40d(0xdd)][_0x29c40d(0x104)],_0x2cf0ca[_0x29c40d(0xd3)]);if(_0x2b9349){const _0x209d9a=_0x2b9349['info'];global_registry[_0x29c40d(0x121)]=_0x209d9a[_0x29c40d(0x121)],global_registry[_0x29c40d(0xf7)]=_0x209d9a[_0x29c40d(0x10a)],global_registry[_0x29c40d(0xe1)]=_0x209d9a[_0x29c40d(0xe1)];const _0x15278a=await _0x4a9ba0[_0x29c40d(0x127)](getCloudProviderObject,_0x209d9a[_0x29c40d(0x121)],_0x209d9a[_0x29c40d(0xe1)],_0x209d9a[_0x29c40d(0xef)],_0x501eb8,webSocketUtils,_0x2cf0ca),[_0x100e34,_0x517df9,_0x5d3559,_0x268435,_0x21f1af,_0x33e071]=await _0x4a9ba0[_0x29c40d(0xfc)](createK8sClient,_0x15278a,_0x2cf0ca[_0x29c40d(0xe9)]);await _0x4a9ba0[_0x29c40d(0x12c)](scaleDownHubDeployment,_0x517df9,_0x209d9a[_0x29c40d(0xef)]),logger[_0x29c40d(0x12a)](_0x4a9ba0[_0x29c40d(0xfd)]),process[_0x29c40d(0xe4)](0x0);}_0x4a9ba0[_0x29c40d(0x107)](_0x18a5da[_0x29c40d(0x103)],0x191)&&(logger['error'](_0x4a9ba0[_0x29c40d(0xf9)]),await _0x4a9ba0['zFHAW'](sendInstrumentationEvent,_0x2cf0ca,_0x4a9ba0[_0x29c40d(0x11b)],messageTypes[_0x29c40d(0x108)],_0x4a9ba0[_0x29c40d(0xd0)],null,_0x2cf0ca),process[_0x29c40d(0xe4)](0x1)),_0x4a9ba0[_0x29c40d(0x107)](_0x18a5da[_0x29c40d(0x103)],0x190)&&(logger[_0x29c40d(0x10e)](JSON[_0x29c40d(0x106)](_0x18a5da[_0x29c40d(0x11a)])[_0x29c40d(0xd6)]),await _0x4a9ba0[_0x29c40d(0xff)](sendInstrumentationEvent,_0x2cf0ca,_0x4a9ba0[_0x29c40d(0x11b)],messageTypes[_0x29c40d(0x108)],_0x4a9ba0[_0x29c40d(0x113)],null,_0x2cf0ca),process[_0x29c40d(0xe4)](0x1)),logger[_0x29c40d(0x10e)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x18a5da)),await _0x4a9ba0[_0x29c40d(0x127)](sendInstrumentationEvent,_0x2cf0ca,_0x4a9ba0[_0x29c40d(0x11b)],messageTypes['ERROR'],_0x4a9ba0[_0x29c40d(0x122)],_0x18a5da,_0x2cf0ca),process[_0x29c40d(0xe4)](0x1);}catch(_0x1a0df2){const _0x9b6d23='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x1a0df2+'\x20\x0a'+JSON[_0x29c40d(0xda)](_0x1a0df2[_0x29c40d(0xeb)])+'\x20';logger['error'](_0x9b6d23),process[_0x29c40d(0xe4)](0x1);}};function a21_0x5a71(){const _0x31473c=['command','1407PPlecg','clusterRegion','invalid-grid-id','rjkvJ','default','kVgns','zxbds','wFOGM','111660euinLQ','EccqF','WebSocket','../../utils/instrumentationUtils','Skip\x20insecure\x20cert\x20verification.','statusCode','password','connectionTimeout','parse','LUJAz','ERROR','<PasswordPlaceholder>','region','stop-grid-called','11UVgEMD','2915370eWemmc','error','Stopping\x20grid\x20','1166RogJiQ','mwrZZ','boolean','TDhql','8475723SqqbrX','username','CiHdh','3033688PcawAK','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','string','body','Arxnc','128236nESsvB','user','Stop\x20a\x20running\x20Automation\x20grid.','bstackAccesskey','RVspc','cloudProvider','HAlrD','options','coZzg','10HqTNqX','9924aiAZcY','MrCIN','36TyBTlS','../../config/constants','info','38865pQsYsf','rfgnB','iuMQq','skip-tls-cert-verify','zmBcW','gridId','grid-id','../../cloudproviders/utils','message','unauthorised','../../utils/utilityMethods','bstackUsername','stringify','argv','description','Browserstack','TixiU','reconnecting-websocket','JJFcY','clusterName','icMSH','fTdbq','exit','server-error','readFileSync','builder','init-not-called','skipTlsCertVerify','type','stack','Zdezp','grid','replace','name','INFO','debug','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','existsSync','stop'];a21_0x5a71=function(){return _0x31473c;};return a21_0x5a71();}
1
+ const a21_0x19568c=a21_0x1d14;(function(_0x3c4d9e,_0x33ad12){const _0x1cb60a=a21_0x1d14,_0x5fe235=_0x3c4d9e();while(!![]){try{const _0x3ea5bc=parseInt(_0x1cb60a(0x124))/0x1+parseInt(_0x1cb60a(0x162))/0x2*(parseInt(_0x1cb60a(0x14f))/0x3)+-parseInt(_0x1cb60a(0x10c))/0x4*(-parseInt(_0x1cb60a(0x10a))/0x5)+-parseInt(_0x1cb60a(0x120))/0x6+parseInt(_0x1cb60a(0x134))/0x7*(parseInt(_0x1cb60a(0x133))/0x8)+-parseInt(_0x1cb60a(0x12c))/0x9*(parseInt(_0x1cb60a(0x131))/0xa)+parseInt(_0x1cb60a(0x13f))/0xb*(-parseInt(_0x1cb60a(0x158))/0xc);if(_0x3ea5bc===_0x33ad12)break;else _0x5fe235['push'](_0x5fe235['shift']());}catch(_0x79f233){_0x5fe235['push'](_0x5fe235['shift']());}}}(a21_0x6ccc,0x54d04));function a21_0x1d14(_0x1b6eff,_0x327bec){const _0x6cccca=a21_0x6ccc();return a21_0x1d14=function(_0x1d148f,_0x4e3c55){_0x1d148f=_0x1d148f-0x107;let _0x18c899=_0x6cccca[_0x1d148f];return _0x18c899;},a21_0x1d14(_0x1b6eff,_0x327bec);}function a21_0x6ccc(){const _0xa833da=['desc','exit','3111Udvcum','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','connectionTimeout','HjrEK','skip-tls-cert-verify','wzPmj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Grid\x20stoppped.','grid-id','36umQjYx','../../cloudproviders/utils','Stop\x20a\x20running\x20Automation\x20grid.','inxvO','reconnecting-websocket','omRuz','argv','existsSync','../../utils/createk8sClient','MhHzR','16EsesyH','clusterRegion','info','PDOUq','string','10ixPkDu','handler','1371452ZOacuM','iXTYd','message','statusCode','readFileSync','JovpA','password','default','Adding\x20Websocket\x20listeners','epilogue','usage','clusterName','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','PLgNL','stringify','xdqGR','name','server-error','ElZsF','3552732mWTIQL','WebSocket','debug','gridId','225463SEVduU','<PasswordPlaceholder>','username','ZymgK','OLmri','command','syejG','bUBum','12123dnGSPQ','invalid-grid-id','CqVHJ','stop','help','30rMQdth','UPbnn','2840YtrqPZ','9863HjcHII','gJynX','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Browserstack','skipTlsCertVerify','body','xYZFM','grid','GmTXk','onBLY','../../config/constants','1745777lBRzFE','parse','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','xKaXC','../../utils/webSocketUtils','cloudProvider','../../config/logger','type','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','stop-grid-called','bstackAccesskey','error'];a21_0x6ccc=function(){return _0xa833da;};return a21_0x6ccc();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x19568c(0x15c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x19568c(0x13e)),{logger}=require(a21_0x19568c(0x146)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x19568c(0x148)),webSocketUtils=require(a21_0x19568c(0x144)),{createK8sClient}=require(a21_0x19568c(0x160)),{getCloudProviderObject}=require(a21_0x19568c(0x159));exports[a21_0x19568c(0x129)]=a21_0x19568c(0x13b),exports[a21_0x19568c(0x14d)]=a21_0x19568c(0x15a),exports['builder']=function(_0x1ae21b){const _0xc60cfa=a21_0x19568c,_0x307eb2={};_0x307eb2[_0xc60cfa(0x108)]=_0xc60cfa(0x149),_0x307eb2[_0xc60cfa(0x13c)]=_0xc60cfa(0x109),_0x307eb2[_0xc60cfa(0x132)]='Skip\x20insecure\x20cert\x20verification.',_0x307eb2[_0xc60cfa(0x13a)]='boolean',_0x307eb2['PLgNL']='help';const _0xbf952e=_0x307eb2,_0x1233b0={};_0x1233b0['description']=_0xbf952e[_0xc60cfa(0x108)],_0x1233b0[_0xc60cfa(0x147)]=_0xbf952e[_0xc60cfa(0x13c)];const _0x60ae4d={};_0x60ae4d['description']=_0xbf952e[_0xc60cfa(0x132)],_0x60ae4d[_0xc60cfa(0x147)]=_0xbf952e['xYZFM'],_0x60ae4d[_0xc60cfa(0x113)]=![];const _0x3afa03={};return _0x3afa03[_0xc60cfa(0x157)]=_0x1233b0,_0x3afa03[_0xc60cfa(0x153)]=_0x60ae4d,_0x1ae21b[_0xc60cfa(0x116)](HELP_HEADER_MESSAGE[_0xc60cfa(0x12f)])[_0xc60cfa(0x115)](HELP_FOOTER_MESSAGE)['options'](_0x3afa03)[_0xc60cfa(0x130)](_0xbf952e[_0xc60cfa(0x11a)])[_0xc60cfa(0x15e)];},exports[a21_0x19568c(0x10b)]=async function(_0x2fc416){const _0x261830=a21_0x19568c,_0x5b7b8c={'EIfEJ':_0x261830(0x136),'BBAty':function(_0x22c25b){return _0x22c25b();},'onBLY':_0x261830(0x119),'ZymgK':function(_0x4d0b08,_0x4858ef,_0x45e332,_0x5bdb05,_0x59354c,_0x282519,_0x183b1b){return _0x4d0b08(_0x4858ef,_0x45e332,_0x5bdb05,_0x59354c,_0x282519,_0x183b1b);},'ElZsF':_0x261830(0x14a),'JovpA':'init-not-called','xdqGR':function(_0x11444d){return _0x11444d();},'VWSHv':'<UsernamePlaceholder>','DddbT':_0x261830(0x125),'HjrEK':_0x261830(0x114),'MhHzR':function(_0xd7d32a,_0x21ca30,_0x107871,_0x4bf3ac){return _0xd7d32a(_0x21ca30,_0x107871,_0x4bf3ac);},'xKaXC':function(_0x598548,_0x3f3b2c,_0x3960c8){return _0x598548(_0x3f3b2c,_0x3960c8);},'omRuz':function(_0x3016cb,_0x358600,_0x37f56c){return _0x3016cb(_0x358600,_0x37f56c);},'iXTYd':_0x261830(0x156),'gJynX':function(_0x30f275,_0x2f33d2){return _0x30f275===_0x2f33d2;},'OLmri':_0x261830(0x155),'wzPmj':function(_0x5ebfad,_0x339ccb,_0x431d28,_0x3996a9,_0x4d259c,_0x3e2bd4,_0x498321){return _0x5ebfad(_0x339ccb,_0x431d28,_0x3996a9,_0x4d259c,_0x3e2bd4,_0x498321);},'bUBum':'unauthorised','inxvO':function(_0x59b89e,_0x106a96,_0x1f005c,_0x43d356,_0x1a35d5,_0x43821b,_0x46370e){return _0x59b89e(_0x106a96,_0x1f005c,_0x43d356,_0x1a35d5,_0x43821b,_0x46370e);},'syejG':_0x261830(0x12d),'CqVHJ':_0x261830(0x11e)};let _0x3b3967;try{!_0x2fc416['gridId']&&(logger[_0x261830(0x14c)](_0x5b7b8c['EIfEJ']),process[_0x261830(0x14e)](0x1));!fs[_0x261830(0x15f)](_0x5b7b8c['BBAty'](getCredentialsPath))&&(logger[_0x261830(0x14c)](_0x5b7b8c[_0x261830(0x13d)]),await _0x5b7b8c[_0x261830(0x127)](sendInstrumentationEvent,_0x2fc416,_0x5b7b8c[_0x261830(0x11f)],messageTypes['ERROR'],_0x5b7b8c[_0x261830(0x111)],null,_0x2fc416),process[_0x261830(0x14e)](0x1));logger['info']('Stopping\x20grid\x20'+_0x2fc416[_0x261830(0x123)]),await _0x5b7b8c[_0x261830(0x127)](sendInstrumentationEvent,_0x2fc416,_0x5b7b8c[_0x261830(0x11f)],messageTypes[_0x261830(0x118)],null,null,_0x2fc416);const _0x3b8808=JSON[_0x261830(0x140)](fs[_0x261830(0x110)](_0x5b7b8c[_0x261830(0x11c)](getCredentialsPath)));global_registry['bstackUsername']=_0x3b8808[_0x261830(0x137)][_0x261830(0x126)],global_registry[_0x261830(0x14b)]=_0x3b8808['Browserstack']['password'];const _0x1f07e1=WS_ENDPOINT['replace'](_0x5b7b8c['VWSHv'],_0x3b8808[_0x261830(0x137)][_0x261830(0x126)])['replace'](_0x5b7b8c['DddbT'],_0x3b8808['Browserstack']['password']),_0x22fe92={};_0x22fe92[_0x261830(0x121)]=ws,_0x22fe92[_0x261830(0x151)]=0x36ee80,_0x3b3967=new ReconnectingWebSocket(_0x1f07e1,[],_0x22fe92),logger[_0x261830(0x122)](_0x5b7b8c[_0x261830(0x152)]),webSocketUtils['addListeners'](_0x3b3967,_0x2fc416['user'],_0x2fc416[_0x261830(0x112)]);const [_0x15d2b0,_0x1437e2]=await _0x5b7b8c[_0x261830(0x161)](getGridDetails,_0x3b8808[_0x261830(0x137)][_0x261830(0x126)],_0x3b8808[_0x261830(0x137)][_0x261830(0x112)],_0x2fc416[_0x261830(0x123)]);if(_0x1437e2){const _0x3b2c54=_0x1437e2['info'];global_registry[_0x261830(0x145)]=_0x3b2c54[_0x261830(0x145)],global_registry[_0x261830(0x163)]=_0x3b2c54['region'],global_registry[_0x261830(0x117)]=_0x3b2c54[_0x261830(0x117)];const _0x3fca82=await _0x5b7b8c['ZymgK'](getCloudProviderObject,_0x3b2c54[_0x261830(0x145)],_0x3b2c54[_0x261830(0x117)],_0x3b2c54[_0x261830(0x11d)],_0x3b3967,webSocketUtils,_0x2fc416),[_0x1d4332,_0x8efffd,_0x3dbab1,_0x5699c0,_0x4f4c9c,_0x40fa13]=await _0x5b7b8c[_0x261830(0x143)](createK8sClient,_0x3fca82,_0x2fc416[_0x261830(0x138)]);await _0x5b7b8c[_0x261830(0x15d)](scaleDownHubDeployment,_0x8efffd,_0x3b2c54[_0x261830(0x11d)]),logger[_0x261830(0x107)](_0x5b7b8c[_0x261830(0x10d)]),process[_0x261830(0x14e)](0x0);}_0x5b7b8c[_0x261830(0x135)](_0x15d2b0[_0x261830(0x10f)],0x191)&&(logger[_0x261830(0x14c)](_0x5b7b8c[_0x261830(0x128)]),await _0x5b7b8c['wzPmj'](sendInstrumentationEvent,_0x2fc416,_0x5b7b8c[_0x261830(0x11f)],messageTypes[_0x261830(0x141)],_0x5b7b8c[_0x261830(0x12b)],null,_0x2fc416),process[_0x261830(0x14e)](0x1)),_0x5b7b8c['gJynX'](_0x15d2b0['statusCode'],0x190)&&(logger[_0x261830(0x14c)](JSON[_0x261830(0x140)](_0x15d2b0[_0x261830(0x139)])[_0x261830(0x10e)]),await _0x5b7b8c[_0x261830(0x15b)](sendInstrumentationEvent,_0x2fc416,_0x5b7b8c[_0x261830(0x11f)],messageTypes['ERROR'],_0x5b7b8c[_0x261830(0x12a)],null,_0x2fc416),process[_0x261830(0x14e)](0x1)),logger[_0x261830(0x14c)](_0x261830(0x142)+JSON['stringify'](_0x15d2b0)),await _0x5b7b8c[_0x261830(0x154)](sendInstrumentationEvent,_0x2fc416,_0x5b7b8c[_0x261830(0x11f)],messageTypes[_0x261830(0x141)],_0x5b7b8c[_0x261830(0x12e)],_0x15d2b0,_0x2fc416),process[_0x261830(0x14e)](0x1);}catch(_0x4175cc){const _0x36b832=_0x261830(0x150)+_0x4175cc+'\x20\x0a'+JSON[_0x261830(0x11b)](_0x4175cc['stack'])+'\x20';logger[_0x261830(0x14c)](_0x36b832),process[_0x261830(0x14e)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x4e37b7=a22_0x3def;(function(_0x21dd45,_0x160d4a){const _0x37c7a8=a22_0x3def,_0x15f47e=_0x21dd45();while(!![]){try{const _0x24abbc=-parseInt(_0x37c7a8(0x70))/0x1+-parseInt(_0x37c7a8(0x71))/0x2+parseInt(_0x37c7a8(0xc5))/0x3+parseInt(_0x37c7a8(0xac))/0x4*(parseInt(_0x37c7a8(0xae))/0x5)+parseInt(_0x37c7a8(0x8e))/0x6*(parseInt(_0x37c7a8(0xa3))/0x7)+parseInt(_0x37c7a8(0xc3))/0x8*(-parseInt(_0x37c7a8(0xc8))/0x9)+-parseInt(_0x37c7a8(0x7b))/0xa*(-parseInt(_0x37c7a8(0xa8))/0xb);if(_0x24abbc===_0x160d4a)break;else _0x15f47e['push'](_0x15f47e['shift']());}catch(_0x10e296){_0x15f47e['push'](_0x15f47e['shift']());}}}(a22_0x524e,0x4caf2),require(a22_0x4e37b7(0x76))[a22_0x4e37b7(0xb2)]());function a22_0x524e(){const _0x5de02a=['CLI_RUN_FINISHED','staging','HST_CLUSTER_TAGS','DEFAULT_GRID_NAME','GRID_URL','stop','MessageDescription','env','preprod','grid-profile','azure','aws','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','success','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','17008ombZKG','BSTACK-ATS-CLUSTER-AUTOSCALER','19380iRxQkY','create','SUPPORTED_CLOUD_PROVIDERS','585eNnlrO','CLUSTER_AUTOSCALER_STACK_NAME','grid-api-preprod.bsstag.com','browserstack:service','start','api.browserstack.com','ERROR','TRIAL_GRID_URL','stag','IAM_USER_NAME','BSTACK-ATS-CLUSTER-HUB-HA','grid','cliRunStarted','credentials','api-devhst.bsstag.com','split','high-scale-grid','570468PyeZdG','1189284DYZogp','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','grid-api.browserstack.com','Value','dotenv','AG_API_URL','BrowserStack-Automate-TurboScale','wss://','resourceInfo','10BTrrLV','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','gridProfile','pre_check','pre-check','pre-prod','CP_CONFIG_FILE','messageTypes','list','DEFAULT_CLUSTER_DETAILS','gridUrl','browserstack:managedBy','error','warning','CLOUD_PROVIDER','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','root','HELP_FOOTER_MESSAGE','INFO','588906mkrLVs','BrowserStack','LINK_MESSAGE','RAW_ARGS_REGEX','grid-api-devhst.bsstag.com','api-preprod.bsstag.com','forEach','init','GCP','BS_API_URL','ALL_SUPPORTED_CLOUD_PROVIDERS','LOG','grid-devhst.bsstag.com','push','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','TURBOSCALE_CUSTOM_TAGS','Key','CLUSTER_HUB_HA_STACK_NAME','TURBOSCALE_DEPLOYMENT','info','REGION','21PjABcP','CLI_ARGS_REGEX','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','cliRunFinished','UNKNOWN','13815879WkDQWe','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','WS_ENDPOINT','delete','16fXnBgg','RESOURCES','75620zGNNHV','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','WARNING','AWS','config','HELP_HEADER_MESSAGE'];a22_0x524e=function(){return _0x5de02a;};return a22_0x524e();}let gridURL='grid.browserstack.com',bsApiUrl=a22_0x4e37b7(0xcd),agApiUrl=a22_0x4e37b7(0x74);const _env=(process[a22_0x4e37b7(0xbb)]['BROWSERSTACK_ENV']||'prod')['toLowerCase']();if(_env===a22_0x4e37b7(0xb5)||_env===a22_0x4e37b7(0xd0))gridURL=a22_0x4e37b7(0x9a),bsApiUrl=a22_0x4e37b7(0x6d),agApiUrl=a22_0x4e37b7(0x92);else(_env===a22_0x4e37b7(0xbc)||_env===a22_0x4e37b7(0x80))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x4e37b7(0x93),agApiUrl=a22_0x4e37b7(0xca));exports['DASHBOARD_ENDPOINT']=process[a22_0x4e37b7(0xbb)]['DASHBOARD_ENDPOINT']||gridURL,exports['BS_API_URL']=process[a22_0x4e37b7(0xbb)][a22_0x4e37b7(0x97)]||bsApiUrl,exports[a22_0x4e37b7(0x77)]=process[a22_0x4e37b7(0xbb)][a22_0x4e37b7(0x77)]||agApiUrl,exports[a22_0x4e37b7(0xaa)]=a22_0x4e37b7(0x79)+this[a22_0x4e37b7(0x77)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x4e37b7(0x81)]=a22_0x4e37b7(0x6c),exports[a22_0x4e37b7(0xd1)]='BrowserStackIAMUser',exports[a22_0x4e37b7(0xb7)]=a22_0x4e37b7(0x6f),exports[a22_0x4e37b7(0xb1)]=a22_0x4e37b7(0xbf),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x4e37b7(0xc9)]=a22_0x4e37b7(0xc4),exports[a22_0x4e37b7(0x9f)]=a22_0x4e37b7(0xd2),exports[a22_0x4e37b7(0xa0)]='browserstack-turboscale-grid',exports['AZURE']=a22_0x4e37b7(0xbe),exports[a22_0x4e37b7(0x96)]='gcp',exports[a22_0x4e37b7(0x98)]=[this['AWS'],this['AZURE'],this[a22_0x4e37b7(0x96)]];const a22_0x1230d0={};a22_0x1230d0[a22_0x4e37b7(0x9e)]=a22_0x4e37b7(0x86),a22_0x1230d0[a22_0x4e37b7(0x75)]=a22_0x4e37b7(0x8f);const a22_0x507358={};function a22_0x3def(_0x7d4c5f,_0x58e0e3){const _0x524e63=a22_0x524e();return a22_0x3def=function(_0x3def55,_0x30f3f6){_0x3def55=_0x3def55-0x6b;let _0x4717c2=_0x524e63[_0x3def55];return _0x4717c2;},a22_0x3def(_0x7d4c5f,_0x58e0e3);}a22_0x507358['Key']=a22_0x4e37b7(0xcb),a22_0x507358[a22_0x4e37b7(0x75)]=a22_0x4e37b7(0x78);const common_hst_tags_list=[a22_0x1230d0,a22_0x507358];if(process[a22_0x4e37b7(0xbb)][a22_0x4e37b7(0x9d)]){const parsedTags=process[a22_0x4e37b7(0xbb)][a22_0x4e37b7(0x9d)][a22_0x4e37b7(0x6e)](',');parsedTags[a22_0x4e37b7(0x94)](_0x29df58=>{const _0x2c94a3=a22_0x4e37b7,_0x5cfb8a=_0x29df58[_0x2c94a3(0x6e)](':'),_0x3651aa={};_0x3651aa[_0x2c94a3(0x9e)]=_0x5cfb8a[0x0],_0x3651aa[_0x2c94a3(0x75)]=_0x5cfb8a[0x1],common_hst_tags_list[_0x2c94a3(0x9b)](_0x3651aa);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x4c2b1b={};a22_0x4c2b1b[a22_0x4e37b7(0x86)]=a22_0x4e37b7(0x8f),a22_0x4c2b1b[a22_0x4e37b7(0xcb)]=a22_0x4e37b7(0x78),exports[a22_0x4e37b7(0xb6)]=a22_0x4c2b1b,exports[a22_0x4e37b7(0xc7)]=[this[a22_0x4e37b7(0xb1)]];const a22_0x220069={};a22_0x220069[a22_0x4e37b7(0x99)]='log',a22_0x220069[a22_0x4e37b7(0xad)]=a22_0x4e37b7(0x7a),a22_0x220069[a22_0x4e37b7(0xb8)]=a22_0x4e37b7(0x85),a22_0x220069['CLI_RUN_STARTED']=a22_0x4e37b7(0x6b),a22_0x220069[a22_0x4e37b7(0xb4)]=a22_0x4e37b7(0xa6),exports['WS_EVENTS']=a22_0x220069,exports['global_registry']={},exports[a22_0x4e37b7(0x90)]=a22_0x4e37b7(0x8a);const a22_0x4c05af={};a22_0x4c05af[a22_0x4e37b7(0x8b)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x4e37b7(0x90)],a22_0x4c05af[a22_0x4e37b7(0x95)]=a22_0x4e37b7(0xc0)+this['LINK_MESSAGE'],a22_0x4c05af['configure']=a22_0x4e37b7(0x72)+this[a22_0x4e37b7(0x90)],a22_0x4c05af[a22_0x4e37b7(0xc6)]=a22_0x4e37b7(0x9c)+this['LINK_MESSAGE'],a22_0x4c05af[a22_0x4e37b7(0x83)]={},a22_0x4c05af[a22_0x4e37b7(0xab)]=a22_0x4e37b7(0xa9)+this[a22_0x4e37b7(0x90)],a22_0x4c05af['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x4e37b7(0x90)],a22_0x4c05af[a22_0x4e37b7(0xcc)]=a22_0x4e37b7(0xc2)+this[a22_0x4e37b7(0x90)],a22_0x4c05af[a22_0x4e37b7(0xb9)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x4e37b7(0x90)],a22_0x4c05af[a22_0x4e37b7(0x7e)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x4e37b7(0x90)],a22_0x4c05af[a22_0x4e37b7(0x83)][a22_0x4e37b7(0x8b)]=a22_0x4e37b7(0xa5)+this[a22_0x4e37b7(0x90)],a22_0x4c05af[a22_0x4e37b7(0x83)][a22_0x4e37b7(0xd3)]=a22_0x4e37b7(0xaf)+this['LINK_MESSAGE'],a22_0x4c05af[a22_0x4e37b7(0x83)][a22_0x4e37b7(0x7d)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x4e37b7(0x90)],exports[a22_0x4e37b7(0xb3)]=a22_0x4c05af,exports[a22_0x4e37b7(0x8c)]=a22_0x4e37b7(0x7c);const a22_0x579746={};a22_0x579746['SUCCESS']=a22_0x4e37b7(0xc1),a22_0x579746[a22_0x4e37b7(0xce)]=a22_0x4e37b7(0x87),a22_0x579746[a22_0x4e37b7(0x8d)]=a22_0x4e37b7(0xa1),a22_0x579746[a22_0x4e37b7(0xb0)]=a22_0x4e37b7(0x88),a22_0x579746[a22_0x4e37b7(0xa7)]='unknown',a22_0x579746['NULL']=null,exports[a22_0x4e37b7(0x82)]=a22_0x579746,exports[a22_0x4e37b7(0xa4)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x4e37b7(0x91)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0x1f9a33={};a22_0x1f9a33[a22_0x4e37b7(0xbd)]=a22_0x4e37b7(0x73);const a22_0x1ad7d0={};a22_0x1ad7d0[a22_0x4e37b7(0x7f)]=a22_0x1f9a33,exports[a22_0x4e37b7(0xba)]=a22_0x1ad7d0,exports[a22_0x4e37b7(0xcf)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x384cae={};a22_0x384cae['CLUSTER']='high-scale-grid-cluster',a22_0x384cae[a22_0x4e37b7(0x89)]=a22_0x4e37b7(0xbf),a22_0x384cae[a22_0x4e37b7(0xa2)]='us-east-1',exports[a22_0x4e37b7(0x84)]=a22_0x384cae;
1
+ const a22_0x54db37=a22_0x2e94;(function(_0x35e94f,_0x5dea6b){const _0x45848a=a22_0x2e94,_0x3e6195=_0x35e94f();while(!![]){try{const _0x11687c=-parseInt(_0x45848a(0x201))/0x1*(-parseInt(_0x45848a(0x1c6))/0x2)+-parseInt(_0x45848a(0x1c0))/0x3+parseInt(_0x45848a(0x1c4))/0x4+parseInt(_0x45848a(0x220))/0x5+-parseInt(_0x45848a(0x1d5))/0x6+parseInt(_0x45848a(0x203))/0x7+parseInt(_0x45848a(0x1c3))/0x8*(-parseInt(_0x45848a(0x1f0))/0x9);if(_0x11687c===_0x5dea6b)break;else _0x3e6195['push'](_0x3e6195['shift']());}catch(_0x1fe2cc){_0x3e6195['push'](_0x3e6195['shift']());}}}(a22_0x4832,0x60f54),require(a22_0x54db37(0x20d))[a22_0x54db37(0x1f9)]());let gridURL=a22_0x54db37(0x224),bsApiUrl=a22_0x54db37(0x213),agApiUrl=a22_0x54db37(0x1cf);const _env=(process[a22_0x54db37(0x1ed)][a22_0x54db37(0x1f5)]||a22_0x54db37(0x21a))[a22_0x54db37(0x1e3)]();if(_env===a22_0x54db37(0x1e2)||_env==='stag')gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x54db37(0x217);else(_env==='preprod'||_env==='pre-prod')&&(gridURL=a22_0x54db37(0x1e9),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x54db37(0x204));function a22_0x2e94(_0x40b83b,_0x544ae8){const _0x4832cb=a22_0x4832();return a22_0x2e94=function(_0x2e94ff,_0x55056f){_0x2e94ff=_0x2e94ff-0x1ba;let _0x5e903f=_0x4832cb[_0x2e94ff];return _0x5e903f;},a22_0x2e94(_0x40b83b,_0x544ae8);}exports[a22_0x54db37(0x1be)]=process[a22_0x54db37(0x1ed)][a22_0x54db37(0x1be)]||gridURL,exports['BS_API_URL']=process[a22_0x54db37(0x1ed)][a22_0x54db37(0x1d8)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x54db37(0x1ed)][a22_0x54db37(0x1ec)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x54db37(0x1ee)+this['AG_API_URL']+a22_0x54db37(0x1f6),exports['CP_CONFIG_FILE']=a22_0x54db37(0x20e),exports[a22_0x54db37(0x1d7)]='BrowserStackIAMUser',exports[a22_0x54db37(0x1fd)]=a22_0x54db37(0x207),exports['AWS']=a22_0x54db37(0x1db),exports[a22_0x54db37(0x1ea)]=a22_0x54db37(0x1e0),exports[a22_0x54db37(0x202)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x54db37(0x1fe)]=a22_0x54db37(0x1cd),exports[a22_0x54db37(0x218)]=a22_0x54db37(0x1d6),exports[a22_0x54db37(0x20f)]=a22_0x54db37(0x1ca),exports[a22_0x54db37(0x221)]=a22_0x54db37(0x1dc),exports[a22_0x54db37(0x20c)]=[this[a22_0x54db37(0x1ef)],this[a22_0x54db37(0x20f)],this[a22_0x54db37(0x221)]];const a22_0x14fc78={};a22_0x14fc78[a22_0x54db37(0x1f8)]=a22_0x54db37(0x1f2),a22_0x14fc78['Value']='BrowserStack';const a22_0x4f8fb7={};function a22_0x4832(){const _0x2e0e1c=['BrowserStack-Automate-TurboScale','api.browserstack.com','INFO','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-api-devhst.bsstag.com','TURBOSCALE_DEPLOYMENT','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','prod','success','MessageDescription','TRIAL_GRID_URL','GRID_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','1550065ykAVRp','GCP','HST_CLUSTER_TAGS','list','grid.browserstack.com','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','unknown','cliRunStarted','push','RAW_ARGS_REGEX','DASHBOARD_ENDPOINT','warning','552165zVaYxn','gridProfile','gridUrl','6392ybPWqY','2587376SlRGAE','resourceInfo','6276WNnpuK','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','LOG','create','azure','Value','error','BSTACK-ATS-CLUSTER-HUB-HA','info','grid-api.browserstack.com','LINK_MESSAGE','BrowserStack','high-scale-grid-cluster','forEach','root','27192jvKSyk','browserstack-turboscale-grid','IAM_USER_NAME','BS_API_URL','TURBOSCALE_CUSTOM_TAGS','SUCCESS','aws','gcp','delete','REDACTED','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','BSTACK-ATS-CLUSTER','browserstack:service','staging','toLowerCase','messageTypes','pre_check','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','cliRunFinished','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','grid-preprod.bsstag.com','CLUSTER_DEP_STACK_NAME','connect','AG_API_URL','env','wss://','AWS','19638KqqqiZ','CLI_RUN_STARTED','browserstack:managedBy','HELP_FOOTER_MESSAGE','DEFAULT_CLUSTER_DETAILS','BROWSERSTACK_ENV','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','ERROR','Key','config','CLI_RUN_FINISHED','pre-check','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','DEFAULT_GRID_NAME','CLUSTER_HUB_HA_STACK_NAME','WARNING','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','251llcKJm','CLUSTER_AUTOSCALER_STACK_NAME','4092550bhkaDx','grid-api-preprod.bsstag.com','global_registry','configure','high-scale-grid','grid-profile','stop','CLOUD_PROVIDER','NULL','ALL_SUPPORTED_CLOUD_PROVIDERS','dotenv','credentials','AZURE','RESOURCES','init'];a22_0x4832=function(){return _0x2e0e1c;};return a22_0x4832();}a22_0x4f8fb7[a22_0x54db37(0x1f8)]=a22_0x54db37(0x1e1),a22_0x4f8fb7['Value']=a22_0x54db37(0x212);const common_hst_tags_list=[a22_0x14fc78,a22_0x4f8fb7];if(process[a22_0x54db37(0x1ed)][a22_0x54db37(0x1d9)]){const parsedTags=process[a22_0x54db37(0x1ed)][a22_0x54db37(0x1d9)]['split'](',');parsedTags[a22_0x54db37(0x1d3)](_0x175073=>{const _0x42d4d0=a22_0x54db37,_0x56b67c=_0x175073['split'](':'),_0x2d0d48={};_0x2d0d48[_0x42d4d0(0x1f8)]=_0x56b67c[0x0],_0x2d0d48[_0x42d4d0(0x1cb)]=_0x56b67c[0x1],common_hst_tags_list[_0x42d4d0(0x1bc)](_0x2d0d48);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x305c71={};a22_0x305c71[a22_0x54db37(0x1f2)]=a22_0x54db37(0x1d1),a22_0x305c71[a22_0x54db37(0x1e1)]=a22_0x54db37(0x212),exports[a22_0x54db37(0x222)]=a22_0x305c71,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x54db37(0x1ef)]];const a22_0x2e40e1={};a22_0x2e40e1[a22_0x54db37(0x1c8)]='log',a22_0x2e40e1[a22_0x54db37(0x210)]=a22_0x54db37(0x1c5),a22_0x2e40e1[a22_0x54db37(0x21e)]=a22_0x54db37(0x1c2),a22_0x2e40e1[a22_0x54db37(0x1f1)]=a22_0x54db37(0x1bb),a22_0x2e40e1[a22_0x54db37(0x1fa)]=a22_0x54db37(0x1e7),exports['WS_EVENTS']=a22_0x2e40e1,exports[a22_0x54db37(0x205)]={},exports[a22_0x54db37(0x1d0)]=a22_0x54db37(0x1e6);const a22_0x50e323={};a22_0x50e323[a22_0x54db37(0x1d4)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x211)]=a22_0x54db37(0x216)+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x206)]=a22_0x54db37(0x200)+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x1c9)]=a22_0x54db37(0x1c7)+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x223)]={},a22_0x50e323[a22_0x54db37(0x1dd)]=a22_0x54db37(0x215)+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x1eb)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x54db37(0x1d0)],a22_0x50e323['start']=a22_0x54db37(0x225)+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x209)]=a22_0x54db37(0x1df)+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x1e5)]=a22_0x54db37(0x1e8)+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x223)][a22_0x54db37(0x1d4)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x223)]['grid']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x54db37(0x1d0)],a22_0x50e323[a22_0x54db37(0x223)][a22_0x54db37(0x1c1)]=a22_0x54db37(0x21f)+this[a22_0x54db37(0x1d0)],exports['HELP_HEADER_MESSAGE']=a22_0x50e323,exports[a22_0x54db37(0x1f3)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x41e3b0={};a22_0x41e3b0[a22_0x54db37(0x1da)]=a22_0x54db37(0x21b),a22_0x41e3b0[a22_0x54db37(0x1f7)]=a22_0x54db37(0x1cc),a22_0x41e3b0[a22_0x54db37(0x214)]=a22_0x54db37(0x1ce),a22_0x41e3b0[a22_0x54db37(0x1ff)]=a22_0x54db37(0x1bf),a22_0x41e3b0['UNKNOWN']=a22_0x54db37(0x1ba),a22_0x41e3b0[a22_0x54db37(0x20b)]=null,exports[a22_0x54db37(0x1e4)]=a22_0x41e3b0,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x54db37(0x1bd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x54db37(0x1de)]='[REDACTED]';const a22_0x57f9f0={};a22_0x57f9f0[a22_0x54db37(0x208)]=a22_0x54db37(0x1fc);const a22_0x4d3106={};a22_0x4d3106[a22_0x54db37(0x1fb)]=a22_0x57f9f0,exports[a22_0x54db37(0x21c)]=a22_0x4d3106,exports[a22_0x54db37(0x21d)]=a22_0x54db37(0x219);const a22_0x31c9f8={};a22_0x31c9f8['CLUSTER']=a22_0x54db37(0x1d2),a22_0x31c9f8[a22_0x54db37(0x20a)]=a22_0x54db37(0x1db),a22_0x31c9f8['REGION']='us-east-1',exports[a22_0x54db37(0x1f4)]=a22_0x31c9f8;
@@ -1 +1 @@
1
- const a23_0x15ade5=a23_0x1733;function a23_0x1733(_0x2d8cd2,_0x1792eb){const _0x395058=a23_0x3950();return a23_0x1733=function(_0x173375,_0x1c948d){_0x173375=_0x173375-0xd5;let _0x48afc5=_0x395058[_0x173375];return _0x48afc5;},a23_0x1733(_0x2d8cd2,_0x1792eb);}(function(_0x2153ae,_0x46580f){const _0x241142=a23_0x1733,_0x1d43a6=_0x2153ae();while(!![]){try{const _0x1d0075=-parseInt(_0x241142(0xe2))/0x1+parseInt(_0x241142(0xe4))/0x2*(-parseInt(_0x241142(0xde))/0x3)+parseInt(_0x241142(0xf3))/0x4+parseInt(_0x241142(0xf0))/0x5*(-parseInt(_0x241142(0xf7))/0x6)+parseInt(_0x241142(0xdd))/0x7*(parseInt(_0x241142(0xda))/0x8)+-parseInt(_0x241142(0xef))/0x9*(parseInt(_0x241142(0xe8))/0xa)+parseInt(_0x241142(0xdc))/0xb;if(_0x1d0075===_0x46580f)break;else _0x1d43a6['push'](_0x1d43a6['shift']());}catch(_0x597460){_0x1d43a6['push'](_0x1d43a6['shift']());}}}(a23_0x3950,0x246ef));const winston=require(a23_0x15ade5(0xf4)),fs=require('fs'),path=require('path'),logDir='log';function a23_0x3950(){const _0x4e388e=['usage.log','transports','File','YYYY-MM-DD\x20HH:mm:ss','225936drgBuy','365BQTGnF','Console','debug','1004860xaOQCp','winston','colorize','join','456lBoUqz','\x20-\x20','existsSync','message','printf','mkdirSync','27960QhrBvs','fileLogger','3473899ZRFhvH','420dvWvpP','851781TkzZkd','console.info','level','name','61874joIQbi','format','2ovJKfP','createLogger','logger','timestamp','110PAszfl','combine','events.log'];a23_0x3950=function(){return _0x4e388e;};return a23_0x3950();}!fs[a23_0x15ade5(0xd6)](logDir)&&fs[a23_0x15ade5(0xd9)](logDir);const a23_0x3b0c1d={};a23_0x3b0c1d[a23_0x15ade5(0xe3)]=a23_0x15ade5(0xee);const a23_0x389b8d={};a23_0x389b8d['level']=!![];const a23_0x4a2867={};a23_0x4a2867[a23_0x15ade5(0xe1)]=a23_0x15ade5(0xdf),exports[a23_0x15ade5(0xe6)]=new winston[(a23_0x15ade5(0xe5))]({'format':winston['format'][a23_0x15ade5(0xe9)](winston[a23_0x15ade5(0xe3)]['timestamp'](a23_0x3b0c1d),winston[a23_0x15ade5(0xe3)][a23_0x15ade5(0xf5)](a23_0x389b8d),winston['format'][a23_0x15ade5(0xd8)](_0x2e5c1e=>_0x2e5c1e[a23_0x15ade5(0xe7)]+a23_0x15ade5(0xd5)+_0x2e5c1e[a23_0x15ade5(0xe0)]+':\x20'+_0x2e5c1e[a23_0x15ade5(0xd7)])),'transports':[new winston[(a23_0x15ade5(0xec))][(a23_0x15ade5(0xf1))](a23_0x4a2867),new winston[(a23_0x15ade5(0xec))][(a23_0x15ade5(0xed))]({'filename':path[a23_0x15ade5(0xf6)](logDir,a23_0x15ade5(0xea)),'level':a23_0x15ade5(0xf2)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x15ade5(0xec))]['File']({'filename':path['join'](logDir,a23_0x15ade5(0xeb)),'level':a23_0x15ade5(0xf2)})]};exports[a23_0x15ade5(0xdb)]=new winston[(a23_0x15ade5(0xe5))](winstonFileLoggerParams);
1
+ function a23_0x4d60(_0x5c2743,_0xb28805){const _0x4b55d5=a23_0x4b55();return a23_0x4d60=function(_0x4d6094,_0x231552){_0x4d6094=_0x4d6094-0x1d3;let _0x104cb2=_0x4b55d5[_0x4d6094];return _0x104cb2;},a23_0x4d60(_0x5c2743,_0xb28805);}const a23_0x134d3a=a23_0x4d60;(function(_0x400104,_0x365596){const _0x2c7f78=a23_0x4d60,_0x3ef6fe=_0x400104();while(!![]){try{const _0x491c94=parseInt(_0x2c7f78(0x1f3))/0x1*(-parseInt(_0x2c7f78(0x1d6))/0x2)+-parseInt(_0x2c7f78(0x1e7))/0x3*(-parseInt(_0x2c7f78(0x1e9))/0x4)+-parseInt(_0x2c7f78(0x1f7))/0x5*(parseInt(_0x2c7f78(0x1e8))/0x6)+parseInt(_0x2c7f78(0x1ec))/0x7*(parseInt(_0x2c7f78(0x1f0))/0x8)+parseInt(_0x2c7f78(0x1ee))/0x9+-parseInt(_0x2c7f78(0x1e1))/0xa*(parseInt(_0x2c7f78(0x1da))/0xb)+-parseInt(_0x2c7f78(0x1f4))/0xc*(-parseInt(_0x2c7f78(0x1e5))/0xd);if(_0x491c94===_0x365596)break;else _0x3ef6fe['push'](_0x3ef6fe['shift']());}catch(_0x5c53fe){_0x3ef6fe['push'](_0x3ef6fe['shift']());}}}(a23_0x4b55,0xaf88b));const winston=require('winston'),fs=require('fs'),path=require(a23_0x134d3a(0x1db)),logDir=a23_0x134d3a(0x1ed);!fs[a23_0x134d3a(0x1f2)](logDir)&&fs[a23_0x134d3a(0x1d7)](logDir);const a23_0x3503af={};a23_0x3503af[a23_0x134d3a(0x1dc)]=a23_0x134d3a(0x1e4);const a23_0x414b51={};a23_0x414b51[a23_0x134d3a(0x1f6)]=!![];const a23_0x6341af={};a23_0x6341af[a23_0x134d3a(0x1ea)]=a23_0x134d3a(0x1d9),exports['logger']=new winston[(a23_0x134d3a(0x1e0))]({'format':winston['format'][a23_0x134d3a(0x1dd)](winston['format'][a23_0x134d3a(0x1de)](a23_0x3503af),winston['format'][a23_0x134d3a(0x1e6)](a23_0x414b51),winston['format'][a23_0x134d3a(0x1d8)](_0x58a81e=>_0x58a81e[a23_0x134d3a(0x1de)]+a23_0x134d3a(0x1e3)+_0x58a81e['level']+':\x20'+_0x58a81e[a23_0x134d3a(0x1df)])),'transports':[new winston['transports'][(a23_0x134d3a(0x1d5))](a23_0x6341af),new winston['transports']['File']({'filename':path[a23_0x134d3a(0x1eb)](logDir,a23_0x134d3a(0x1d4)),'level':a23_0x134d3a(0x1e2)})]});function a23_0x4b55(){const _0x1e91dd=['existsSync','2oasfiZ','12kqXBrl','File','level','50xKOYmm','fileLogger','events.log','Console','1334804AuJVpe','mkdirSync','printf','console.info','24541XOCmgI','path','format','combine','timestamp','message','createLogger','3130YxkGnG','debug','\x20-\x20','YYYY-MM-DD\x20HH:mm:ss','31071729kRnAxe','colorize','966qtgRkZ','606150GkAVDM','5624FfUUzM','name','join','14flzNag','log','5712507SIgozL','usage.log','1139024vFQhSZ','transports'];a23_0x4b55=function(){return _0x1e91dd;};return a23_0x4b55();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x134d3a(0x1f1))][(a23_0x134d3a(0x1f5))]({'filename':path['join'](logDir,a23_0x134d3a(0x1ef)),'level':a23_0x134d3a(0x1e2)})]};exports[a23_0x134d3a(0x1d3)]=new winston[(a23_0x134d3a(0x1e0))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x4503(_0xfddf22,_0x3e62d5){const _0x75cdc4=a24_0x75cd();return a24_0x4503=function(_0x450395,_0x403840){_0x450395=_0x450395-0x77;let _0x1c8608=_0x75cdc4[_0x450395];return _0x1c8608;},a24_0x4503(_0xfddf22,_0x3e62d5);}const a24_0x171ed6=a24_0x4503;(function(_0x5c78f6,_0x47310d){const _0x3ed8e0=a24_0x4503,_0x43e3e2=_0x5c78f6();while(!![]){try{const _0x5cc49d=parseInt(_0x3ed8e0(0x78))/0x1*(parseInt(_0x3ed8e0(0x79))/0x2)+-parseInt(_0x3ed8e0(0x7c))/0x3*(parseInt(_0x3ed8e0(0x83))/0x4)+parseInt(_0x3ed8e0(0x7a))/0x5+parseInt(_0x3ed8e0(0x88))/0x6+parseInt(_0x3ed8e0(0x89))/0x7*(-parseInt(_0x3ed8e0(0x84))/0x8)+parseInt(_0x3ed8e0(0x80))/0x9+-parseInt(_0x3ed8e0(0x7f))/0xa*(parseInt(_0x3ed8e0(0x86))/0xb);if(_0x5cc49d===_0x47310d)break;else _0x43e3e2['push'](_0x43e3e2['shift']());}catch(_0x3693ad){_0x43e3e2['push'](_0x43e3e2['shift']());}}}(a24_0x75cd,0x5489f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x171ed6(0x77));process[a24_0x171ed6(0x81)][a24_0x171ed6(0x87)]=0x1;function run(_0x593418){const _0x22cc81=a24_0x171ed6,_0x2122fb={};_0x2122fb[_0x22cc81(0x7e)]='commands',_0x2122fb['fjISF']=_0x22cc81(0x7d);const _0x58119f=_0x2122fb;_0x593418[_0x22cc81(0x7b)](HELP_HEADER_MESSAGE[_0x22cc81(0x82)])['commandDir'](_0x58119f[_0x22cc81(0x7e)])['demandCommand']()[_0x22cc81(0x7d)](_0x58119f['fjISF'])[_0x22cc81(0x85)](HELP_FOOTER_MESSAGE);}module['exports']=run;function a24_0x75cd(){const _0x93c78a=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1663818UHoYMD','1484007OYseAf','./config/constants','430548pxZuJC','2YONczT','3204115HmPcOc','usage','15BUOqbp','help','OIFeo','260UAJvae','1346022xNrIKY','env','root','43088Yjhnbj','24XAIwlK','epilogue','195503UYlUAO'];a24_0x75cd=function(){return _0x93c78a;};return a24_0x75cd();}
2
+ 'use strict';const a24_0x1765cc=a24_0x6c0f;(function(_0x3ad643,_0x5953de){const _0x36927f=a24_0x6c0f,_0x161061=_0x3ad643();while(!![]){try{const _0x5e775a=-parseInt(_0x36927f(0x1c3))/0x1*(-parseInt(_0x36927f(0x1bd))/0x2)+parseInt(_0x36927f(0x1be))/0x3+-parseInt(_0x36927f(0x1c5))/0x4+parseInt(_0x36927f(0x1b9))/0x5+parseInt(_0x36927f(0x1c8))/0x6+-parseInt(_0x36927f(0x1b8))/0x7+-parseInt(_0x36927f(0x1ba))/0x8;if(_0x5e775a===_0x5953de)break;else _0x161061['push'](_0x161061['shift']());}catch(_0x403294){_0x161061['push'](_0x161061['shift']());}}}(a24_0x22d1,0xd6a92));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x6c0f(_0x5dd588,_0x513caf){const _0x22d1a0=a24_0x22d1();return a24_0x6c0f=function(_0x6c0f9d,_0xb7f51c){_0x6c0f9d=_0x6c0f9d-0x1b7;let _0x1a02f4=_0x22d1a0[_0x6c0f9d];return _0x1a02f4;},a24_0x6c0f(_0x5dd588,_0x513caf);}function a24_0x22d1(){const _0x47114e=['WrFMW','epilogue','6811452GGrwki','demandCommand','4492607naJomm','8476280DfRFpR','9884864dwBBwL','env','cjvao','162HkpIRp','225354TvWoIv','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','help','usage','commands','267OcRdOp','root','682336fQCpzG'];a24_0x22d1=function(){return _0x47114e;};return a24_0x22d1();}process[a24_0x1765cc(0x1bb)][a24_0x1765cc(0x1bf)]=0x1;function run(_0x50cd13){const _0x47cc8b=a24_0x1765cc,_0x1388ed={};_0x1388ed[_0x47cc8b(0x1c6)]=_0x47cc8b(0x1c2),_0x1388ed[_0x47cc8b(0x1bc)]=_0x47cc8b(0x1c0);const _0x5c8b10=_0x1388ed;_0x50cd13[_0x47cc8b(0x1c1)](HELP_HEADER_MESSAGE[_0x47cc8b(0x1c4)])['commandDir'](_0x5c8b10[_0x47cc8b(0x1c6)])[_0x47cc8b(0x1b7)]()[_0x47cc8b(0x1c0)](_0x5c8b10[_0x47cc8b(0x1bc)])[_0x47cc8b(0x1c7)](HELP_FOOTER_MESSAGE);}module['exports']=run;