browserstack-node-sdk 1.46.5 → 1.46.7

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
+ const a15_0x44a20c=a15_0x2316;(function(_0x4daab5,_0x41b43c){const _0x201ed8=a15_0x2316,_0x3bf1b3=_0x4daab5();while(!![]){try{const _0x46d188=-parseInt(_0x201ed8(0xe6))/0x1+parseInt(_0x201ed8(0xc5))/0x2+-parseInt(_0x201ed8(0xb9))/0x3*(-parseInt(_0x201ed8(0xf3))/0x4)+-parseInt(_0x201ed8(0xfc))/0x5*(parseInt(_0x201ed8(0xea))/0x6)+parseInt(_0x201ed8(0xcd))/0x7*(parseInt(_0x201ed8(0xbf))/0x8)+parseInt(_0x201ed8(0xbe))/0x9+-parseInt(_0x201ed8(0xcc))/0xa;if(_0x46d188===_0x41b43c)break;else _0x3bf1b3['push'](_0x3bf1b3['shift']());}catch(_0x44984b){_0x3bf1b3['push'](_0x3bf1b3['shift']());}}}(a15_0x487c,0x2aea2));function a15_0x2316(_0x1da38a,_0x2a44de){const _0x487c8e=a15_0x487c();return a15_0x2316=function(_0x23164e,_0x1a38ec){_0x23164e=_0x23164e-0xb2;let _0x6c0930=_0x487c8e[_0x23164e];return _0x6c0930;},a15_0x2316(_0x1da38a,_0x2a44de);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x44a20c(0xee)),{v4:uuidv4}=require(a15_0x44a20c(0xd2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x44a20c(0xe8)),{getCredentialsPath,getAuthHeader}=require(a15_0x44a20c(0xcb)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x487c(){const _0x480003=['356214VfInsJ','queued','bstackAccesskey','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','table','vMcEc','oUwmo','grids','https://','44ANvxkj','log','grid-name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','clusterName','LMTun','parse','5YwGcbg','tOdeS','ERROR','command','name','stack','\x0aFound\x20the\x20following\x20grids:\x0a','usage','uhGYU','/packages/cli/get-grids','options','exit','pAFoN','unauthorised','push','LisIU','DDesA','trZHS','81261WuiOEY','bstackUsername','yClDQ','boolean','rMEgx','2486358XhxwZS','32lgyMBq','help','nnyun','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','jXFeA','133124CfXlhB','running','username','forEach','epilogue','grid','../../utils/utilityMethods','2627460kXXIwj','353402hZNMsv','VRfVM','readFileSync','INFO','server-error','uuid','list','VkGfo','allGrids','Browserstack','status','iINYM','desc','description','ATGNr','body','GSIhO','statusCode','jRhOg','password','KjLpt','cluster-name','list-grids-called','stringify','SoXyf','344832OowkAK','TlBeE','../../config/constants','unknown-error'];a15_0x487c=function(){return _0x480003;};return a15_0x487c();}exports[a15_0x44a20c(0xff)]=a15_0x44a20c(0xf1),exports[a15_0x44a20c(0xd9)]=a15_0x44a20c(0xc3),exports['builder']=function(_0x415a11){const _0x563e10=a15_0x44a20c,_0x505314={};_0x505314[_0x563e10(0xb3)]=_0x563e10(0xed),_0x505314[_0x563e10(0xd4)]=_0x563e10(0xbc),_0x505314['oUwmo']=_0x563e10(0xc0);const _0x46b089=_0x505314,_0x367460={};_0x367460[_0x563e10(0xda)]=_0x46b089[_0x563e10(0xb3)],_0x367460['type']=_0x46b089[_0x563e10(0xd4)];const _0x456f16={};return _0x456f16['all-grids']=_0x367460,_0x415a11[_0x563e10(0x103)](HELP_HEADER_MESSAGE[_0x563e10(0xd3)][_0x563e10(0xca)])[_0x563e10(0xc9)](HELP_FOOTER_MESSAGE)[_0x563e10(0x106)](_0x456f16)[_0x563e10(0xc0)](_0x46b089[_0x563e10(0xf0)])['argv'];},exports['handler']=async function(_0x1fe5d9){const _0x41afdc=a15_0x44a20c,_0x544640={'tOdeS':function(_0x51229f){return _0x51229f();},'KjLpt':_0x41afdc(0xf7),'trZHS':function(_0x544cb6,_0x2262ec,_0x179cbd,_0x4851c5,_0x53aade,_0xe79894,_0x638fee){return _0x544cb6(_0x2262ec,_0x179cbd,_0x4851c5,_0x53aade,_0xe79894,_0x638fee);},'iINYM':_0x41afdc(0xe3),'uhGYU':_0x41afdc(0xc2),'cjKpI':'GET','nnyun':function(_0x3da4c7,_0x185186,_0xdfe11e){return _0x3da4c7(_0x185186,_0xdfe11e);},'TlBeE':function(_0x50cbba,_0x44181d){return _0x50cbba!==_0x44181d;},'ALbUF':function(_0x55f88d,_0x164144){return _0x55f88d===_0x164144;},'Tdqtl':_0x41afdc(0x102),'DDesA':'grid-id','EvmuI':_0x41afdc(0xf5),'rMEgx':_0x41afdc(0xd7),'jRhOg':_0x41afdc(0xc6),'SoXyf':'queued','vMcEc':_0x41afdc(0xe2),'ATGNr':function(_0x2a779c,_0x2e65f6){return _0x2a779c(_0x2e65f6);},'CqrAY':function(_0x2d6aab,_0x368105){return _0x2d6aab===_0x368105;},'jXFeA':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','LMTun':function(_0x4cb290,_0x3e5f07,_0x11dbb8,_0x2fdfd8,_0x54a5a1,_0x49b07e,_0x4cde89){return _0x4cb290(_0x3e5f07,_0x11dbb8,_0x2fdfd8,_0x54a5a1,_0x49b07e,_0x4cde89);},'yClDQ':_0x41afdc(0xb4),'IZdlH':function(_0x6f5dba,_0x5e8771,_0x37fa55,_0x794ec5,_0x5e3f67,_0x5de28f,_0x2a4aa1){return _0x6f5dba(_0x5e8771,_0x37fa55,_0x794ec5,_0x5e3f67,_0x5de28f,_0x2a4aa1);},'LisIU':_0x41afdc(0xd1),'GSIhO':function(_0x4b83ac,_0x12f8a6,_0x3dd56f,_0x12ff54,_0x393b9b,_0x47b025,_0x470494){return _0x4b83ac(_0x12f8a6,_0x3dd56f,_0x12ff54,_0x393b9b,_0x47b025,_0x470494);},'VRfVM':_0x41afdc(0xe9)};try{global_registry['requestId']=_0x544640['tOdeS'](uuidv4);!fs['existsSync'](_0x544640['tOdeS'](getCredentialsPath))&&(console[_0x41afdc(0xf8)](_0x544640[_0x41afdc(0xe1)]),await _0x544640['trZHS'](sendInstrumentationEvent,_0x1fe5d9,_0x544640[_0x41afdc(0xd8)],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0x104)],null,_0x1fe5d9),process[_0x41afdc(0xb2)](0x1));const _0x3855e7=JSON['parse'](fs[_0x41afdc(0xcf)](_0x544640[_0x41afdc(0xfd)](getCredentialsPath)));let _0x362516='https://'+AG_API_URL+_0x41afdc(0x105);_0x1fe5d9[_0x41afdc(0xd5)]&&(_0x362516=_0x41afdc(0xf2)+AG_API_URL+'/packages/cli/get-all-grids');const _0x405be5={'method':_0x544640['cjKpI'],'headers':_0x544640[_0x41afdc(0xc1)](getAuthHeader,_0x3855e7['Browserstack'][_0x41afdc(0xc7)],_0x3855e7['Browserstack'][_0x41afdc(0xe0)]),'throwHttpErrors':![]};global_registry[_0x41afdc(0xba)]=_0x3855e7[_0x41afdc(0xd6)][_0x41afdc(0xc7)],global_registry[_0x41afdc(0xec)]=_0x3855e7['Browserstack'][_0x41afdc(0xe0)],_0x544640[_0x41afdc(0xb8)](sendInstrumentationEvent,_0x1fe5d9,_0x544640['iINYM'],messageTypes[_0x41afdc(0xd0)],null,null,_0x1fe5d9);const _0x19af61=await _0x544640[_0x41afdc(0xc1)](got,_0x362516,_0x405be5);if(_0x544640[_0x41afdc(0xe7)](_0x19af61,null)&&_0x544640[_0x41afdc(0xe7)](_0x19af61,undefined)&&_0x544640['ALbUF'](_0x19af61[_0x41afdc(0xde)],0xc8)){const _0x3ae8c3=JSON[_0x41afdc(0xfb)](_0x19af61[_0x41afdc(0xdc)]);console[_0x41afdc(0xf4)](_0x544640['Tdqtl']);const _0x39c7d8=[];_0x39c7d8[_0x41afdc(0xb5)]([_0x544640[_0x41afdc(0xb7)],_0x544640['EvmuI'],_0x544640[_0x41afdc(0xbd)],_0x544640[_0x41afdc(0xdf)],_0x544640[_0x41afdc(0xe5)],_0x544640[_0x41afdc(0xef)]]),_0x3ae8c3[_0x41afdc(0xc8)](_0x24dc79=>{const _0x5bdf05=_0x41afdc;_0x39c7d8[_0x5bdf05(0xb5)]([_0x24dc79['id'],_0x24dc79[_0x5bdf05(0x100)],_0x24dc79[_0x5bdf05(0xd7)],_0x24dc79[_0x5bdf05(0xc6)],_0x24dc79[_0x5bdf05(0xeb)],_0x24dc79[_0x5bdf05(0xf9)]]);}),console['log'](_0x544640[_0x41afdc(0xdb)](table,_0x39c7d8)),process[_0x41afdc(0xb2)](0x0);}_0x544640['CqrAY'](_0x19af61['statusCode'],0x191)&&(console[_0x41afdc(0xf8)](_0x544640[_0x41afdc(0xc4)]),await _0x544640[_0x41afdc(0xfa)](sendInstrumentationEvent,_0x1fe5d9,_0x544640[_0x41afdc(0xd8)],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0xbb)],null,_0x1fe5d9),process['exit'](0x1)),console[_0x41afdc(0xf8)](_0x41afdc(0xf6)+JSON[_0x41afdc(0xe4)](_0x19af61)),await _0x544640['IZdlH'](sendInstrumentationEvent,_0x1fe5d9,_0x544640[_0x41afdc(0xd8)],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0xb6)],_0x19af61,_0x1fe5d9),process[_0x41afdc(0xb2)](0x1);}catch(_0x32be2e){console[_0x41afdc(0xf8)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x32be2e[_0x41afdc(0x101)]),await _0x544640[_0x41afdc(0xdd)](sendInstrumentationEvent,_0x1fe5d9,_0x544640['iINYM'],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0xce)],_0x32be2e,_0x1fe5d9),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_0x5ea5e8=a16_0x4317;function a16_0x26d2(){const _0x311cad=['DRSgu','builder','help','187032gHkhPL','desc','pre_check','9GBnAjQ','655431pOQmuU','demandCommand','44092xRQYYx','bBOAR','157963auJzMX','292RedTAB','35NyzmSK','16225BjvEqb','3153640lrZVyU','strict','1302952oScxxy','usage','pre-check','commandDir','handler','command','precheck_commands','recommendCommands','../config/constants'];a16_0x26d2=function(){return _0x311cad;};return a16_0x26d2();}(function(_0x384551,_0x2de060){const _0x3e7131=a16_0x4317,_0x24792b=_0x384551();while(!![]){try{const _0x269323=-parseInt(_0x3e7131(0x92))/0x1+parseInt(_0x3e7131(0x90))/0x2+parseInt(_0x3e7131(0x8e))/0x3+-parseInt(_0x3e7131(0x93))/0x4*(parseInt(_0x3e7131(0x95))/0x5)+parseInt(_0x3e7131(0xa4))/0x6*(parseInt(_0x3e7131(0x94))/0x7)+parseInt(_0x3e7131(0x98))/0x8*(-parseInt(_0x3e7131(0x8d))/0x9)+parseInt(_0x3e7131(0x96))/0xa;if(_0x269323===_0x2de060)break;else _0x24792b['push'](_0x24792b['shift']());}catch(_0x4bfa4b){_0x24792b['push'](_0x24792b['shift']());}}}(a16_0x26d2,0x259ae));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5ea5e8(0xa0));function a16_0x4317(_0x577825,_0x5c974b){const _0x26d290=a16_0x26d2();return a16_0x4317=function(_0x431712,_0x3e2f8c){_0x431712=_0x431712-0x8d;let _0x497e73=_0x26d290[_0x431712];return _0x497e73;},a16_0x4317(_0x577825,_0x5c974b);}exports[a16_0x5ea5e8(0x9d)]=a16_0x5ea5e8(0x9a),exports[a16_0x5ea5e8(0xa5)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x5ea5e8(0xa2)]=function(_0x3f84f3){const _0x2f5124=a16_0x5ea5e8,_0x4e4287={};_0x4e4287[_0x2f5124(0xa1)]=_0x2f5124(0x9e),_0x4e4287[_0x2f5124(0x91)]=_0x2f5124(0xa3);const _0xb7cdc1=_0x4e4287;return _0x3f84f3[_0x2f5124(0x99)](HELP_HEADER_MESSAGE[_0x2f5124(0xa6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2f5124(0x9b)](_0xb7cdc1[_0x2f5124(0xa1)])[_0x2f5124(0x8f)]()[_0x2f5124(0x9f)]()[_0x2f5124(0x97)]()['help'](_0xb7cdc1[_0x2f5124(0x91)]);},exports[a16_0x5ea5e8(0x9c)]=function(_0x51e089){};
@@ -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
+ const a17_0x3e02de=a17_0x2381;function a17_0x2381(_0x4d56af,_0xfa3ec3){const _0x338ef2=a17_0x338e();return a17_0x2381=function(_0x23813e,_0xf8af56){_0x23813e=_0x23813e-0x167;let _0x36bb29=_0x338ef2[_0x23813e];return _0x36bb29;},a17_0x2381(_0x4d56af,_0xfa3ec3);}(function(_0x2b68df,_0x151197){const _0x25761a=a17_0x2381,_0x2e60b0=_0x2b68df();while(!![]){try{const _0x3578a5=-parseInt(_0x25761a(0x21f))/0x1*(-parseInt(_0x25761a(0x21d))/0x2)+parseInt(_0x25761a(0x23a))/0x3*(parseInt(_0x25761a(0x228))/0x4)+parseInt(_0x25761a(0x177))/0x5*(parseInt(_0x25761a(0x1c5))/0x6)+parseInt(_0x25761a(0x21a))/0x7*(parseInt(_0x25761a(0x24a))/0x8)+parseInt(_0x25761a(0x1de))/0x9+-parseInt(_0x25761a(0x1dd))/0xa+-parseInt(_0x25761a(0x190))/0xb;if(_0x3578a5===_0x151197)break;else _0x2e60b0['push'](_0x2e60b0['shift']());}catch(_0x4f9e77){_0x2e60b0['push'](_0x2e60b0['shift']());}}}(a17_0x338e,0x22aaa));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3e02de(0x218)),{v4:uuidv4}=require(a17_0x3e02de(0x19a)),ReconnectingWebSocket=require(a17_0x3e02de(0x1f1)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x3e02de(0x1d3)),{getCloudProviderObjectWithOutInit}=require(a17_0x3e02de(0x1b4)),webSocketUtils=require(a17_0x3e02de(0x254)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x3e02de(0x25e)]=a17_0x3e02de(0x229),exports[a17_0x3e02de(0x18b)]=a17_0x3e02de(0x1ec),exports[a17_0x3e02de(0x20c)]=function(_0x271be6){const _0x287a05=a17_0x3e02de,_0x5c5616={};_0x5c5616[_0x287a05(0x1db)]=_0x287a05(0x21e),_0x5c5616[_0x287a05(0x1cc)]=_0x287a05(0x1ce),_0x5c5616[_0x287a05(0x1c3)]=_0x287a05(0x192),_0x5c5616[_0x287a05(0x1a9)]=_0x287a05(0x18a),_0x5c5616[_0x287a05(0x18c)]=_0x287a05(0x23e),_0x5c5616[_0x287a05(0x207)]=_0x287a05(0x1bc);const _0x158a60=_0x5c5616,_0x55342b={};_0x55342b[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x1db)],_0x55342b[_0x287a05(0x184)]=_0x158a60['eusPr'];const _0x3c71c8={};_0x3c71c8[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x1c3)],_0x3c71c8[_0x287a05(0x184)]=_0x158a60[_0x287a05(0x1cc)];const _0x33c807={};_0x33c807[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x1a9)],_0x33c807[_0x287a05(0x184)]=_0x158a60[_0x287a05(0x1cc)];const _0x41e46b={};_0x41e46b[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x18c)],_0x41e46b['type']=_0x158a60[_0x287a05(0x1cc)];const _0xc42868={};return _0xc42868['cluster-name']=_0x55342b,_0xc42868[_0x287a05(0x1f3)]=_0x3c71c8,_0xc42868[_0x287a05(0x1eb)]=_0x33c807,_0xc42868[_0x287a05(0x19f)]=_0x41e46b,_0x271be6[_0x287a05(0x1ff)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x287a05(0x1b0)](_0xc42868)[_0x287a05(0x1bc)](_0x158a60[_0x287a05(0x207)])[_0x287a05(0x25a)];};async function inputValidation(_0x552483,_0x2ec854){const _0x484fa4=a17_0x3e02de,_0xbd3c1={'OLvhJ':function(_0x412217,_0xb8d2a){return _0x412217+_0xb8d2a;},'ebVmK':_0x484fa4(0x239),'iNySX':_0x484fa4(0x22d),'yyUbs':function(_0xb5e552,_0x2c72c9){return _0xb5e552||_0x2c72c9;},'RmKIL':_0x484fa4(0x25d),'XZwhk':_0x484fa4(0x215),'GLShy':_0x484fa4(0x269),'XqSCQ':_0x484fa4(0x1e6),'qKUVg':_0x484fa4(0x20a),'xGshs':'cloud-provider','RIJfY':_0x484fa4(0x1eb),'HNeIS':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','TibXJ':_0x484fa4(0x1ce),'nmchv':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','QTOwe':_0x484fa4(0x18a),'GYZjB':_0x484fa4(0x23e),'tLCUc':_0x484fa4(0x1bc),'ggkzA':function(_0x404866,_0x5f5cda){return _0x404866===_0x5f5cda;},'cakMm':_0x484fa4(0x261),'BEYiY':_0x484fa4(0x1a7),'jcwPU':function(_0x18cc10,_0x39b9dd){return _0x18cc10!==_0x39b9dd;},'bbglh':_0x484fa4(0x1e0),'YpCoZ':function(_0x41a5a7,_0x1ab781){return _0x41a5a7===_0x1ab781;},'neogl':_0x484fa4(0x1af),'aJeIQ':_0x484fa4(0x1ea),'OZEBH':_0x484fa4(0x22a),'TkZIx':'PEwkl','BCcpH':function(_0x83d4d1,_0x1df3f3){return _0x83d4d1>_0x1df3f3;},'LrpRY':function(_0x18ba04,_0x2df2ba){return _0x18ba04!==_0x2df2ba;},'vGtrq':_0x484fa4(0x238),'ucmGg':function(_0x484d49,_0x36688a,_0x3dcd1c,_0x5f352c,_0x247883,_0x39ca7c,_0x568d05,_0x147797){return _0x484d49(_0x36688a,_0x3dcd1c,_0x5f352c,_0x247883,_0x39ca7c,_0x568d05,_0x147797);},'UOlie':_0x484fa4(0x213),'rIzqP':_0x484fa4(0x256),'osyIz':_0x484fa4(0x1c9),'ybjLm':_0x484fa4(0x202),'TyWzo':'cloud-provider-not-supported','WCaTT':function(_0x4f0646,_0x55b0b6){return _0x4f0646===_0x55b0b6;},'gRPYS':_0x484fa4(0x16c),'gCgzv':'YeBwj','gauTj':_0x484fa4(0x1be),'hXgfx':'GET','TTqAs':function(_0x4a3bb6,_0x524899,_0x65bb0e){return _0x4a3bb6(_0x524899,_0x65bb0e);},'HYcbG':function(_0x2850cb,_0xe2307a,_0x219adf,_0x238df9,_0x2e8098,_0x3a195a){return _0x2850cb(_0xe2307a,_0x219adf,_0x238df9,_0x2e8098,_0x3a195a);},'nUJpU':_0x484fa4(0x167),'HMNlS':_0x484fa4(0x19f),'ZmzqY':function(_0x377f45,_0x587b51){return _0x377f45!==_0x587b51;},'EdryL':_0x484fa4(0x210),'ZTkJs':'DekJs','grUhR':function(_0x19654b,_0x51e819){return _0x19654b(_0x51e819);},'NSIfJ':_0x484fa4(0x250),'EzsQB':_0x484fa4(0x1b5),'IsIpn':function(_0x35ae3e,_0x241c33,_0x163fed,_0x175052,_0x30e804,_0xb305b3,_0x24c04d,_0x3d8f3b){return _0x35ae3e(_0x241c33,_0x163fed,_0x175052,_0x30e804,_0xb305b3,_0x24c04d,_0x3d8f3b);},'fIPPL':_0x484fa4(0x231),'SdLxX':function(_0x44f6d4,_0x2f141f){return _0x44f6d4!==_0x2f141f;},'WFWuQ':_0x484fa4(0x247),'sZVSv':'nqCEg','MzMIx':_0x484fa4(0x1a2),'wibTH':'DzDPU','FObic':_0x484fa4(0x236),'frGVi':function(_0x15af6d,_0x41748e){return _0x15af6d===_0x41748e;},'pkmkw':'Xrjwi','sAzmG':_0x484fa4(0x199),'vHhsc':function(_0x4703e1,_0x41d7c9){return _0x4703e1===_0x41d7c9;},'VwvzY':_0x484fa4(0x19e),'rXqjP':_0x484fa4(0x24e),'dzLDD':function(_0x1bd356,_0x16dfbc,_0x217f9c,_0x31de68,_0x3fc715,_0x43b427,_0x157435,_0x5f4d87){return _0x1bd356(_0x16dfbc,_0x217f9c,_0x31de68,_0x3fc715,_0x43b427,_0x157435,_0x5f4d87);}};let _0x2aa9fb;try{if(_0xbd3c1[_0x484fa4(0x1f6)](_0xbd3c1[_0x484fa4(0x223)],_0xbd3c1[_0x484fa4(0x1a1)])){const {header:_0x3bd19e,response:_0x25fd48}=_0x5c1fbb,{status:_0x1c40df,data:_0x282b4c,error:_0x1df45a}=_0x25fd48;_0x29f2d6+=_0x3bd19e+'\x20#'+_0xbd3c1[_0x484fa4(0x17c)](_0x25b6d1,0x1)+'\x0a',_0x1bc785+=_0x484fa4(0x265)+(_0x1c40df?_0xbd3c1[_0x484fa4(0x240)]:_0xbd3c1[_0x484fa4(0x237)])+'\x0a',_0x13da9b+=_0x484fa4(0x1d5)+_0xbd3c1[_0x484fa4(0x266)](_0x282b4c,_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x1df45a&&(_0x3ed9df+=_0xbd3c1[_0x484fa4(0x168)],_0x94beb7+=_0x484fa4(0x1c7)+(_0x1df45a[_0x484fa4(0x21c)]||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x26d242+=_0x484fa4(0x1f2)+(_0x1df45a['code']||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x2765bf+=_0x484fa4(0x249)+(_0x1df45a['stack']||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a'),_0xdc27ce+='\x0a\x0a';}else{if(_0x552483[_0x484fa4(0x214)]||_0x552483[_0x484fa4(0x189)]||_0x552483[_0x484fa4(0x1eb)]){if(_0xbd3c1[_0x484fa4(0x1ae)](_0xbd3c1[_0x484fa4(0x217)],_0xbd3c1['bbglh']))_0x1e955c[_0x484fa4(0x197)]('['+_0x51347e+_0x484fa4(0x172)+_0x59d903[_0x484fa4(0x253)]+_0x484fa4(0x183)+_0x488ac6[_0x484fa4(0x198)]+'\x20error\x20:\x20'+_0x54a69b['error']),_0x15d5b2[_0x484fa4(0x20a)]&&_0x56863['error'](_0x484fa4(0x208)+_0x359885['error'][_0x484fa4(0x186)]);else{const _0xf28f9c=[];!_0x552483['clusterName']&&(_0xbd3c1[_0x484fa4(0x246)](_0xbd3c1[_0x484fa4(0x1e9)],_0xbd3c1[_0x484fa4(0x1dc)])?_0x212436+=_0x484fa4(0x1e1)+_0x55db09[_0x484fa4(0x214)]+_0x484fa4(0x23b):_0xf28f9c[_0x484fa4(0x262)](_0xbd3c1[_0x484fa4(0x1b6)]));;!_0x552483[_0x484fa4(0x189)]&&(_0xbd3c1[_0x484fa4(0x246)](_0xbd3c1[_0x484fa4(0x196)],_0xbd3c1[_0x484fa4(0x196)])?_0xf28f9c[_0x484fa4(0x262)](_0xbd3c1['xGshs']):_0x4e0477[_0x484fa4(0x262)](_0xbd3c1['GLShy']));;!_0x552483[_0x484fa4(0x1eb)]&&(_0xbd3c1['jcwPU'](_0xbd3c1[_0x484fa4(0x187)],_0xbd3c1[_0x484fa4(0x187)])?(_0x1d2859['error'](_0xbd3c1[_0x484fa4(0x1e8)]),_0x108ae2[_0x484fa4(0x201)](0x1)):_0xf28f9c[_0x484fa4(0x262)](_0xbd3c1[_0x484fa4(0x220)]));;_0xbd3c1[_0x484fa4(0x185)](_0xf28f9c[_0x484fa4(0x25b)],0x0)&&(_0xbd3c1[_0x484fa4(0x18f)](_0xbd3c1[_0x484fa4(0x1b9)],_0xbd3c1[_0x484fa4(0x1b9)])?_0x357fc6[_0x484fa4(0x201)](0x1):(_0x2aa9fb='Missing\x20required\x20arguments:\x20'+_0xf28f9c[_0x484fa4(0x1f8)](',\x20')+_0x484fa4(0x23d),await _0xbd3c1[_0x484fa4(0x19b)](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes[_0x484fa4(0x23c)],_0xbd3c1[_0x484fa4(0x241)],_0xbd3c1[_0x484fa4(0x1c8)],_0xbd3c1['qKUVg']),logger['error'](_0x2aa9fb),process['exit'](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x484fa4(0x25c)](_0x552483['cloudProvider'][_0x484fa4(0x1f5)]())){if(_0xbd3c1[_0x484fa4(0x18f)](_0xbd3c1[_0x484fa4(0x1b3)],_0xbd3c1[_0x484fa4(0x1b3)])){const _0xb875b4={};_0xb875b4[_0x484fa4(0x184)]=_0x34ba9b['LOG'],_0xb875b4[_0x484fa4(0x21c)]=_0x265b64,_0x4c76c2[_0x484fa4(0x17d)](_0x2f110b,_0xb875b4,_0xbd3c1['qKUVg'],!![]);}else _0x2aa9fb=_0xbd3c1[_0x484fa4(0x1d8)],await _0xbd3c1[_0x484fa4(0x19b)](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes['ERROR'],_0xbd3c1['UOlie'],_0xbd3c1['TyWzo'],_0xbd3c1[_0x484fa4(0x1f0)]),logger[_0x484fa4(0x20a)](_0x2aa9fb),!_0x552483[_0x484fa4(0x189)]&&(_0xbd3c1[_0x484fa4(0x252)](_0xbd3c1[_0x484fa4(0x17e)],_0xbd3c1[_0x484fa4(0x235)])?(_0x567686+=_0xbd3c1[_0x484fa4(0x168)],_0x2f5bd0+=_0x484fa4(0x1c7)+(_0x534079['message']||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x593bf3+=_0x484fa4(0x1f2)+(_0x9ac67c[_0x484fa4(0x188)]||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x333627+=_0x484fa4(0x249)+(_0x2e9cf2[_0x484fa4(0x186)]||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a'):(logger[_0x484fa4(0x197)](_0x484fa4(0x1f4)+DEFAULT_CLUSTER_DETAILS[_0x484fa4(0x1b8)]+'\x20'),_0x552483['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry['clusterName']=_0x552483[_0x484fa4(0x214)],global_registry[_0x484fa4(0x189)]=_0x552483['cloudProvider'],global_registry[_0x484fa4(0x1aa)]=_0x552483[_0x484fa4(0x1eb)];}}else{if(_0x552483['gridProfile']){if(_0xbd3c1['jcwPU'](_0xbd3c1['gauTj'],_0xbd3c1['gauTj']))_0x444508['push'](_0xbd3c1['xGshs']);else{global_registry[_0x484fa4(0x193)]=_0x552483[_0x484fa4(0x193)],logger['debug']('grid\x20profile\x20flow\x20'+_0x552483[_0x484fa4(0x193)]);const _0x3a3226=_0x484fa4(0x180)+AG_API_URL+_0x484fa4(0x1ef),_0x591bab={};_0x591bab['method']=_0xbd3c1['hXgfx'],_0x591bab[_0x484fa4(0x170)]=global_registry[_0x484fa4(0x200)],_0x591bab[_0x484fa4(0x24b)]=![];const _0x5eafa8=_0x591bab,_0x312394=await _0xbd3c1['TTqAs'](got,_0x3a3226,_0x5eafa8),_0xaad640=await _0xbd3c1[_0x484fa4(0x20b)](responseValidation,_0x312394,_0xbd3c1[_0x484fa4(0x260)],_0xbd3c1[_0x484fa4(0x23f)],_0x552483,_0x2ec854);let _0x1bb07e={};if(_0xbd3c1[_0x484fa4(0x252)](_0xaad640,0xc8)){if(_0xbd3c1[_0x484fa4(0x1b2)](_0xbd3c1['EdryL'],_0xbd3c1['ZTkJs'])){const _0x5de70b=JSON[_0x484fa4(0x1d6)](_0x312394[_0x484fa4(0x16f)]),_0x48e489=_0x5de70b[_0x484fa4(0x1cd)](_0x34dc1a=>_0x34dc1a[_0x484fa4(0x1bb)]===_0x552483[_0x484fa4(0x193)])||null;if(_0xbd3c1[_0x484fa4(0x1fc)](isUndefined,_0x48e489))_0xbd3c1[_0x484fa4(0x246)](_0xbd3c1['NSIfJ'],_0xbd3c1[_0x484fa4(0x243)])?_0x1007cc['push'](_0xbd3c1[_0x484fa4(0x220)]):(_0x2aa9fb=_0x484fa4(0x232)+_0x552483['gridProfile']+_0x484fa4(0x257),await _0xbd3c1[_0x484fa4(0x26a)](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes['ERROR'],_0xbd3c1[_0x484fa4(0x241)],_0xbd3c1['fIPPL'],_0xbd3c1[_0x484fa4(0x1f0)]),logger['error'](_0x2aa9fb),process[_0x484fa4(0x201)](0x1));else{if(_0xbd3c1['SdLxX'](_0xbd3c1[_0x484fa4(0x21b)],_0xbd3c1['sZVSv']))_0x1bb07e=_0x48e489;else{const _0x43cb49={};_0x43cb49['description']=_0xbd3c1['HNeIS'],_0x43cb49[_0x484fa4(0x184)]=_0xbd3c1['TibXJ'];const _0x33ca13={};_0x33ca13['description']=_0xbd3c1['nmchv'],_0x33ca13[_0x484fa4(0x184)]=_0xbd3c1[_0x484fa4(0x1d9)];const _0x311a72={};_0x311a72['description']=_0xbd3c1[_0x484fa4(0x206)],_0x311a72[_0x484fa4(0x184)]=_0xbd3c1[_0x484fa4(0x1d9)];const _0x86f485={};_0x86f485[_0x484fa4(0x191)]=_0xbd3c1[_0x484fa4(0x216)],_0x86f485[_0x484fa4(0x184)]=_0xbd3c1[_0x484fa4(0x1d9)];const _0x81fcf0={};return _0x81fcf0['cluster-name']=_0x43cb49,_0x81fcf0[_0x484fa4(0x1f3)]=_0x33ca13,_0x81fcf0[_0x484fa4(0x1eb)]=_0x311a72,_0x81fcf0[_0x484fa4(0x19f)]=_0x86f485,_0x452b5a[_0x484fa4(0x1ff)](_0xd9c437[_0x484fa4(0x1a0)])[_0x484fa4(0x1c1)](_0x43a96b)[_0x484fa4(0x1b0)](_0x81fcf0)[_0x484fa4(0x1bc)](_0xbd3c1[_0x484fa4(0x221)])[_0x484fa4(0x25a)];}}}else _0x5cb0cb[_0x484fa4(0x197)]('Cluster\x20`'+_0x4e314e[_0x484fa4(0x214)]+_0x484fa4(0x1a4));}else _0xbd3c1[_0x484fa4(0x1d1)](_0xbd3c1[_0x484fa4(0x169)],_0xbd3c1[_0x484fa4(0x1ac)])?process[_0x484fa4(0x201)](0x1):(_0x53bc53[_0x484fa4(0x197)](_0x484fa4(0x1f4)+_0x21a661[_0x484fa4(0x1b8)]+'\x20'),_0x4f66f2[_0x484fa4(0x189)]=_0x31739e[_0x484fa4(0x1b8)]);const _0x2a2c07={};_0x2a2c07['type']=WS_EVENTS[_0x484fa4(0x264)],_0x2a2c07[_0x484fa4(0x21c)]=_0xbd3c1[_0x484fa4(0x174)],webSocketUtils[_0x484fa4(0x17d)](_0x2ec854,_0x2a2c07),global_registry[_0x484fa4(0x189)]=_0x1bb07e['cloudProvider'],global_registry[_0x484fa4(0x1aa)]=_0x1bb07e[_0x484fa4(0x1eb)],global_registry[_0x484fa4(0x214)]=_0x1bb07e[_0x484fa4(0x214)];}}else _0xbd3c1[_0x484fa4(0x227)](_0xbd3c1[_0x484fa4(0x24d)],_0xbd3c1['sAzmG'])?_0x381287['error'](_0x484fa4(0x208)+_0x35b448[_0x484fa4(0x20a)]['stack']):(logger['error'](_0xbd3c1[_0x484fa4(0x1e8)]),process['exit'](0x1));}}}catch(_0x486d81){_0xbd3c1['vHhsc'](_0xbd3c1[_0x484fa4(0x267)],_0xbd3c1['rXqjP'])?_0x5804bb=_0x4cfee3:(_0x2aa9fb=_0x484fa4(0x224)+_0x486d81+':\x20'+_0x486d81[_0x484fa4(0x186)],logger['error'](_0x2aa9fb),await _0xbd3c1['dzLDD'](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes['ERROR'],_0xbd3c1[_0x484fa4(0x241)],_0xbd3c1[_0x484fa4(0x24c)],_0xbd3c1[_0x484fa4(0x1f0)]),process[_0x484fa4(0x201)](0x1));}}function printResponse(_0x34d5a8,_0xc34124){const _0x466a5c=a17_0x3e02de,_0x1193f9={};_0x1193f9[_0x466a5c(0x176)]='is\x20already\x20present',_0x1193f9[_0x466a5c(0x1c6)]=_0x466a5c(0x1b1),_0x1193f9[_0x466a5c(0x1bf)]=function(_0x545a74,_0x4d88ae){return _0x545a74!==_0x4d88ae;},_0x1193f9[_0x466a5c(0x1e4)]=_0x466a5c(0x226);const _0x33975b=_0x1193f9;logger[_0x466a5c(0x197)]('['+_0x34d5a8+']\x20status\x20:\x20'+_0xc34124[_0x466a5c(0x253)]+_0x466a5c(0x183)+_0xc34124[_0x466a5c(0x198)]+_0x466a5c(0x233)+_0xc34124[_0x466a5c(0x20a)]),_0xc34124[_0x466a5c(0x20a)]&&(_0x33975b[_0x466a5c(0x1bf)](_0x33975b[_0x466a5c(0x1e4)],_0x33975b['nwPuQ'])?_0x1de563+=_0x466a5c(0x1e1)+_0x5a9e1d[_0x466a5c(0x214)]+'\x20'+(_0xa5931?_0x33975b[_0x466a5c(0x176)]:_0x33975b[_0x466a5c(0x1c6)])+'\x0a\x0a':logger[_0x466a5c(0x20a)](_0x466a5c(0x208)+_0xc34124['error'][_0x466a5c(0x186)]));}async function generateReport(_0x3ae5fd,_0x4f8cf3){const _0x449404=a17_0x3e02de,_0x3e55b7={'qmpdv':function(_0x1a2428,_0x470290){return _0x1a2428+_0x470290;},'FLiBM':_0x449404(0x239),'lIkFk':'Failure','vVexC':function(_0x3de529,_0x2b702a){return _0x3de529||_0x2b702a;},'slPMu':_0x449404(0x25d),'SYNcP':_0x449404(0x215),'pZMac':_0x449404(0x1c4),'XuPUX':function(_0x259000,_0x3f7818){return _0x259000!=_0x3f7818;},'viJxK':'is\x20already\x20present','ZKkje':'will\x20be\x20created','MsCFN':function(_0x127f23){return _0x127f23();}};let _0x4907a6=_0x449404(0x1ab)+global_registry['cloudProvider']+_0x449404(0x230);return _0x3ae5fd[_0x449404(0x1f7)]((_0x48d307,_0x51e141)=>{const _0x13debc=_0x449404,{header:_0x228fc3,response:_0x50e561}=_0x48d307,{status:_0x2f429d,data:_0x316266,error:_0x554608}=_0x50e561;_0x4907a6+=_0x228fc3+'\x20#'+_0x3e55b7[_0x13debc(0x1fa)](_0x51e141,0x1)+'\x0a',_0x4907a6+=_0x13debc(0x265)+(_0x2f429d?_0x3e55b7[_0x13debc(0x1c0)]:_0x3e55b7[_0x13debc(0x22b)])+'\x0a',_0x4907a6+=_0x13debc(0x1d5)+_0x3e55b7[_0x13debc(0x203)](_0x316266,_0x3e55b7['slPMu'])+'\x0a',_0x554608&&(_0x4907a6+=_0x3e55b7[_0x13debc(0x20d)],_0x4907a6+=_0x13debc(0x1c7)+(_0x554608[_0x13debc(0x21c)]||_0x3e55b7[_0x13debc(0x1cb)])+'\x0a',_0x4907a6+=_0x13debc(0x1f2)+(_0x554608[_0x13debc(0x188)]||_0x3e55b7['slPMu'])+'\x0a',_0x4907a6+=_0x13debc(0x249)+(_0x554608[_0x13debc(0x186)]||_0x3e55b7[_0x13debc(0x1cb)])+'\x0a'),_0x4907a6+='\x0a\x0a';}),_0x4907a6+=_0x3e55b7['pZMac'],_0x3e55b7[_0x449404(0x1f9)](_0x4f8cf3,null)?_0x4907a6+='Cluster\x20'+global_registry[_0x449404(0x214)]+'\x20'+(_0x4f8cf3?_0x3e55b7[_0x449404(0x1a5)]:_0x3e55b7[_0x449404(0x22c)])+'\x0a\x0a':_0x4907a6+=_0x449404(0x1e1)+global_registry[_0x449404(0x214)]+_0x449404(0x23b),_0x4907a6+=_0x3e55b7['MsCFN'](getSystemMetaData),_0x4907a6;};exports['handler']=async function(_0x3d6d28){const _0x1a2d1f=a17_0x3e02de,_0x263b3f={'Jeduw':function(_0x5e0b3b){return _0x5e0b3b();},'vLgKM':function(_0xd4014b){return _0xd4014b();},'ILFID':_0x1a2d1f(0x1a6),'sySWw':function(_0x2591e5,_0x4377ff,_0x38cf8b,_0x83998c,_0x1a7aa0,_0x2938f1,_0x32d84b,_0x2e55dc){return _0x2591e5(_0x4377ff,_0x38cf8b,_0x83998c,_0x1a7aa0,_0x2938f1,_0x32d84b,_0x2e55dc);},'nsblp':_0x1a2d1f(0x213),'baclH':_0x1a2d1f(0x268),'XFEDr':_0x1a2d1f(0x20a),'FNTUH':function(_0x1414fe,_0x866e55,_0x1283ad,_0x58dcb0,_0x361ff5,_0x1fc7aa,_0x49e62e){return _0x1414fe(_0x866e55,_0x1283ad,_0x58dcb0,_0x361ff5,_0x1fc7aa,_0x49e62e);},'zIcwE':function(_0x392412){return _0x392412();},'dwhjF':'<UsernamePlaceholder>','aSWlf':_0x1a2d1f(0x181),'wdLPU':function(_0x50b511,_0x54a5c7,_0x3a3c4f){return _0x50b511(_0x54a5c7,_0x3a3c4f);},'BdYuY':function(_0x244604,_0xe9a945,_0x410091){return _0x244604(_0xe9a945,_0x410091);},'aDtJT':function(_0x6b5d1c,_0x1676e5,_0x41f2a1,_0x2fb5f2,_0x382279,_0x5c0b1e,_0x4515e7){return _0x6b5d1c(_0x1676e5,_0x41f2a1,_0x2fb5f2,_0x382279,_0x5c0b1e,_0x4515e7);},'ntXxv':'dummy-grid','axBkK':'toolInstalledResp','IQIAO':_0x1a2d1f(0x19d),'gjJuA':function(_0x2ae546,_0x282756,_0x55859d){return _0x2ae546(_0x282756,_0x55859d);},'UMlmV':_0x1a2d1f(0x222),'xjDAQ':function(_0x1f7d76,_0x22fca4,_0x579bb9){return _0x1f7d76(_0x22fca4,_0x579bb9);},'CJULG':'isTrialGridAccessible','sGSQQ':function(_0x8eee7d,_0xdbdec6){return _0x8eee7d(_0xdbdec6);},'csdFK':_0x1a2d1f(0x1d0),'svpQR':_0x1a2d1f(0x1ee),'kQmqs':_0x1a2d1f(0x1d4),'IjmuW':_0x1a2d1f(0x22f),'ZtyeM':_0x1a2d1f(0x18e),'zMRZW':_0x1a2d1f(0x212),'mWasZ':function(_0x2a721a,_0x45715c){return _0x2a721a+_0x45715c;},'IasWl':_0x1a2d1f(0x1c2),'EmoXR':function(_0x363c71,_0x12b4d1,_0x4c33c3,_0x5eeda5,_0xcfdd14,_0x420837,_0x3f386f){return _0x363c71(_0x12b4d1,_0x4c33c3,_0x5eeda5,_0xcfdd14,_0x420837,_0x3f386f);},'AUZBr':_0x1a2d1f(0x1e2)};let _0x69cf25,_0x5ac80d;try{global_registry[_0x1a2d1f(0x173)]=_0x263b3f[_0x1a2d1f(0x178)](uuidv4);!fs[_0x1a2d1f(0x18d)](_0x263b3f[_0x1a2d1f(0x17f)](getCredentialsPath))&&(_0x5ac80d=_0x263b3f['ILFID'],logger[_0x1a2d1f(0x20a)](_0x5ac80d),await _0x263b3f[_0x1a2d1f(0x1cf)](reportToGalactusAndSendToEDS,_0x3d6d28,_0x69cf25,_0x5ac80d,messageTypes[_0x1a2d1f(0x23c)],_0x263b3f['nsblp'],_0x263b3f['baclH'],_0x263b3f['XFEDr']),process['exit'](0x1));_0x263b3f[_0x1a2d1f(0x209)](sendInstrumentationEvent,_0x3d6d28,_0x263b3f[_0x1a2d1f(0x1e3)],messageTypes[_0x1a2d1f(0x22e)],null,null,_0x3d6d28);const _0x4b3733=JSON['parse'](fs['readFileSync'](_0x263b3f['zIcwE'](getCredentialsPath)));global_registry[_0x1a2d1f(0x16b)]=_0x4b3733[_0x1a2d1f(0x248)][_0x1a2d1f(0x195)],global_registry['bstackAccesskey']=_0x4b3733[_0x1a2d1f(0x248)][_0x1a2d1f(0x179)];const _0x434427=WS_ENDPOINT[_0x1a2d1f(0x1a8)](_0x263b3f[_0x1a2d1f(0x17a)],_0x4b3733[_0x1a2d1f(0x248)][_0x1a2d1f(0x195)])[_0x1a2d1f(0x1a8)](_0x263b3f[_0x1a2d1f(0x1fe)],_0x4b3733['Browserstack']['password']),_0x356104={};_0x356104[_0x1a2d1f(0x245)]=ws,_0x356104[_0x1a2d1f(0x16e)]=0x36ee80,_0x69cf25=new ReconnectingWebSocket(_0x434427,[],_0x356104),global_registry[_0x1a2d1f(0x200)]=_0x263b3f[_0x1a2d1f(0x1ca)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x263b3f['BdYuY'](inputValidation,_0x3d6d28,_0x69cf25),logger['info'](_0x1a2d1f(0x1e5)+global_registry['cloudProvider']+_0x1a2d1f(0x1df)+global_registry[_0x1a2d1f(0x1aa)]);let _0x53de70=await _0x263b3f['aDtJT'](getCloudProviderObjectWithOutInit,global_registry[_0x1a2d1f(0x189)],global_registry[_0x1a2d1f(0x214)],_0x263b3f[_0x1a2d1f(0x263)],_0x69cf25,webSocketUtils,_0x3d6d28);const _0x5e03e4=await _0x53de70[_0x1a2d1f(0x258)]();_0x263b3f[_0x1a2d1f(0x1ca)](printResponse,_0x263b3f[_0x1a2d1f(0x242)],_0x5e03e4),_0x53de70=await _0x53de70['init']();let _0x11e368=![];try{_0x11e368=await _0x53de70[_0x1a2d1f(0x1bd)]();}catch(_0x23d0d0){const _0x450fd7=_0x263b3f['IQIAO']['split']('|');let _0xca2d0b=0x0;while(!![]){switch(_0x450fd7[_0xca2d0b++]){case'0':logger['error'](_0x5ac80d);continue;case'1':_0x5ac80d=_0x1a2d1f(0x1fb)+global_registry[_0x1a2d1f(0x214)]+_0x1a2d1f(0x25f)+global_registry[_0x1a2d1f(0x1aa)]+_0x1a2d1f(0x24f)+_0x23d0d0;continue;case'2':_0x5ac80d+='\x0a'+JSON[_0x1a2d1f(0x234)](_0x23d0d0['stack']);continue;case'3':await _0x263b3f['sySWw'](reportToGalactusAndSendToEDS,_0x3d6d28,_0x69cf25,_0x5ac80d,messageTypes[_0x1a2d1f(0x23c)],_0x263b3f[_0x1a2d1f(0x1e3)],_0x1a2d1f(0x244)+global_registry['cloudProvider'],_0x263b3f[_0x1a2d1f(0x1d2)]);continue;case'4':_0x11e368=null;continue;}break;}}_0x11e368&&logger[_0x1a2d1f(0x197)](_0x1a2d1f(0x16d)+global_registry[_0x1a2d1f(0x214)]+_0x1a2d1f(0x1a4));const _0x48c7ca=await _0x53de70[_0x1a2d1f(0x259)]();_0x263b3f[_0x1a2d1f(0x205)](printResponse,_0x263b3f[_0x1a2d1f(0x16a)],_0x48c7ca);const _0x4b5f3f=await _0x263b3f['zIcwE'](curlRequest);_0x263b3f[_0x1a2d1f(0x1e7)](printResponse,_0x263b3f['CJULG'],_0x4b5f3f);const _0x1f7b9c=await _0x263b3f[_0x1a2d1f(0x1fd)](isTlsSupported,_0x263b3f[_0x1a2d1f(0x1b7)]);_0x263b3f[_0x1a2d1f(0x1ca)](printResponse,_0x263b3f[_0x1a2d1f(0x1d7)],_0x1f7b9c);const _0x3b9655={};_0x3b9655['header']=_0x263b3f[_0x1a2d1f(0x20e)],_0x3b9655[_0x1a2d1f(0x204)]=_0x5e03e4;const _0x57570b={};_0x57570b[_0x1a2d1f(0x19c)]=_0x263b3f['IjmuW'],_0x57570b[_0x1a2d1f(0x204)]=_0x48c7ca;const _0x2478e8={};_0x2478e8[_0x1a2d1f(0x19c)]=_0x263b3f[_0x1a2d1f(0x182)],_0x2478e8[_0x1a2d1f(0x204)]=_0x4b5f3f;const _0x4ab0c5={};_0x4ab0c5['header']=_0x263b3f[_0x1a2d1f(0x211)],_0x4ab0c5[_0x1a2d1f(0x204)]=_0x1f7b9c;const _0x8f5b90=[_0x3b9655,_0x57570b,_0x2478e8,_0x4ab0c5],_0x3c99c6=await _0x263b3f[_0x1a2d1f(0x1a3)](generateReport,_0x8f5b90,_0x11e368),_0x2d4ca3=new Date(),_0x265f18=_0x2d4ca3[_0x1a2d1f(0x175)]()+'_'+_0x263b3f['mWasZ'](_0x2d4ca3[_0x1a2d1f(0x171)](),0x1)+'_'+_0x2d4ca3[_0x1a2d1f(0x219)]()+'_'+_0x2d4ca3['getUTCHours']()+'_'+_0x2d4ca3[_0x1a2d1f(0x1da)](),_0xb2c401=_0x1a2d1f(0x194)+_0x265f18+_0x1a2d1f(0x255);fs['writeFileSync'](_0xb2c401,_0x3c99c6,_0x263b3f['IasWl']),logger[_0x1a2d1f(0x197)](_0x1a2d1f(0x17b)+_0xb2c401),process['exit'](0x0);}catch(_0xf31e34){let _0x413ae=_0x1a2d1f(0x1ad)+_0xf31e34+'\x20';logger[_0x1a2d1f(0x20a)](_0x413ae),_0x413ae+='\x0a'+JSON[_0x1a2d1f(0x234)](_0xf31e34['stack']),logger[_0x1a2d1f(0x20f)](_0x1a2d1f(0x251)+_0xf31e34[_0x1a2d1f(0x186)]);if(_0x69cf25){const _0x128612={};_0x128612[_0x1a2d1f(0x184)]=WS_EVENTS[_0x1a2d1f(0x264)],_0x128612['message']=_0x413ae,webSocketUtils[_0x1a2d1f(0x17d)](_0x69cf25,_0x128612,_0x263b3f[_0x1a2d1f(0x1d2)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x5e27fb={};_0x5e27fb[_0x1a2d1f(0x20a)]=_0x413ae,await _0x263b3f[_0x1a2d1f(0x1ed)](sendInstrumentationEvent,_0x3d6d28,_0x263b3f[_0x1a2d1f(0x1e3)],messageTypes[_0x1a2d1f(0x23c)],_0x263b3f[_0x1a2d1f(0x225)],_0x5e27fb,_0x3d6d28),process[_0x1a2d1f(0x201)](0x1);}};function a17_0x338e(){const _0x3aa0f5=['BdYuY','`\x20already\x20exists','viJxK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','MikuR','replace','bdhUz','clusterRegion','===\x20Precheck\x20Report\x20-\x20','wibTH','Failed\x20in\x20pre-check!\x20Error:\x20','jcwPU','AFMLU','options','will\x20be\x20created','ZmzqY','osyIz','../../cloudproviders/utils','supAD','GLShy','csdFK','CLOUD_PROVIDER','vGtrq','RmKIL','name','help','isClusterPresent','hmKzH','UfjEU','FLiBM','epilogue','utf-8','Ozrbs','Cluster\x20details\x0a-----------------------\x0a','1321746BmHgXM','URFph','\x20\x20Message:\x20','rIzqP','MDGnL','wdLPU','slPMu','eusPr','find','string','sySWw','TLSv1_2_client_method','SdLxX','XFEDr','../../config/constants','Tool\x20Installed','Message:\x20','parse','svpQR','ybjLm','TibXJ','getUTCMinutes','hrKen','aJeIQ','2399540zZAJIo','1057968SJCvzL','\x20region\x20-\x20','ITNCw','Cluster\x20','pre-check-failed','nsblp','nwPuQ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','xjDAQ','XqSCQ','neogl','BJsHV','region','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','EmoXR','isTls1_2_SUPPORTED','/packages/cli/get-all-grid-profiles','qKUVg','reconnecting-websocket','\x20\x20Code:\x20','cloud-provider','Setting\x20cloud\x20provider\x20as\x20','toLowerCase','ggkzA','forEach','join','XuPUX','qmpdv','unable\x20to\x20verify\x20if\x20cluster\x20`','grUhR','sGSQQ','aSWlf','usage','authHeader','exit','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','vVexC','response','gjJuA','QTOwe','iZTGA','error\x20stack\x20:\x20','FNTUH','error','HYcbG','builder','SYNcP','kQmqs','debug','BXnKF','zMRZW','SSL\x20Configured','pre-check-grid-called','clusterName','Error\x20Details:\x0a','GYZjB','bbglh','got','getUTCDate','7QZejsv','WFWuQ','message','2FMTEZJ','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','165101njhlmd','RIJfY','tLCUc','accessResp','cakMm','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','AUZBr','bZUaD','frGVi','228PbZkVb','grid','qGDeq','lIkFk','ZKkje','Failure','INFO','User\x20Access','\x20===\x0a\x0a','pre-check-grid-profile-empty','Invalid\x20input.\x20grid\x20profiles:\x20','\x20error\x20:\x20','stringify','gCgzv','Grid\x20profile\x20fetched\x20for\x20pre-check','iNySX','OHdkS','Success','9003DcAzsA','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','ERROR','.\x20Please\x20provide\x20all\x20required\x20arguments.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','HMNlS','ebVmK','UOlie','axBkK','EzsQB','cluster-check-failed-','WebSocket','YpCoZ','kVArf','Browserstack','\x20\x20Stack:\x20','40448FgLwDq','throwHttpErrors','TyWzo','pkmkw','JEOcP','`\x20,error\x20:\x20','SYBkx','stack\x20trace\x20','WCaTT','status','../../utils/webSocketUtils','.txt','pre-check-cluster-args-not-passed','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','isCliToolInstalled','checkAccess','argv','length','includes','N/A','command','`\x20is\x20present\x20in\x20region\x20`','nUJpU','vnMMf','push','ntXxv','LOG','Status:\x20','yyUbs','VwvzY','credential-not-found','cluster-name','IsIpn','pre-check','XZwhk','MzMIx','UMlmV','bstackUsername','akWum','Cluster\x20`','connectionTimeout','body','headers','getUTCMonth',']\x20status\x20:\x20','requestId','FObic','getUTCFullYear','uBMBy','5gfQSXm','Jeduw','password','dwhjF','Report\x20saved\x20in\x20','OLvhJ','sendEventToBackend','gRPYS','vLgKM','https://','<PasswordPlaceholder>','ZtyeM','\x20data\x20:\x20','type','BCcpH','stack','TkZIx','code','cloudProvider','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','desc','Rjttc','existsSync','Whitelisted\x20browserstack','LrpRY','3268199ixFsXj','description','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','gridProfile','log/report_','username','OZEBH','info','data','pIdVp','uuid','ucmGg','header','1|4|0|2|3','kxPLB','grid-profile','pre_check','BEYiY','atZBN'];a17_0x338e=function(){return _0x3aa0f5;};return a17_0x338e();}
@@ -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_0x49cdf8=a18_0x4034;function a18_0x3779(){const _0x1eef66=['recommendCommands','553692EMJwsj','handler','builder','start_commands','27ndMNeK','635668RcOBmr','epilogue','help','start','98965jMnGxA','strict','commandDir','315iWgqZA','command','usage','607864qxsmRk','18nnqhEW','1068HmFrWT','104062qMxtQW','cgDoY','10956RPjyFq','2AvhYjr','20IrlYZZ','demandCommand','chyce'];a18_0x3779=function(){return _0x1eef66;};return a18_0x3779();}(function(_0x258fec,_0x431451){const _0x528f5a=a18_0x4034,_0x3c0399=_0x258fec();while(!![]){try{const _0x1008b1=parseInt(_0x528f5a(0xd0))/0x1*(parseInt(_0x528f5a(0xdc))/0x2)+parseInt(_0x528f5a(0xe5))/0x3*(-parseInt(_0x528f5a(0xdb))/0x4)+-parseInt(_0x528f5a(0xd3))/0x5*(parseInt(_0x528f5a(0xd8))/0x6)+-parseInt(_0x528f5a(0xd9))/0x7+-parseInt(_0x528f5a(0xd6))/0x8*(-parseInt(_0x528f5a(0xd7))/0x9)+-parseInt(_0x528f5a(0xdd))/0xa*(parseInt(_0x528f5a(0xe6))/0xb)+parseInt(_0x528f5a(0xe1))/0xc;if(_0x1008b1===_0x431451)break;else _0x3c0399['push'](_0x3c0399['shift']());}catch(_0x5e1fbb){_0x3c0399['push'](_0x3c0399['shift']());}}}(a18_0x3779,0x1fecd));function a18_0x4034(_0x5f075e,_0x5ea556){const _0x377943=a18_0x3779();return a18_0x4034=function(_0x403421,_0x452fe8){_0x403421=_0x403421-0xcf;let _0x305f19=_0x377943[_0x403421];return _0x305f19;},a18_0x4034(_0x5f075e,_0x5ea556);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x49cdf8(0xd4)]='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x49cdf8(0xe3)]=function(_0x1ee20a){const _0x573928=a18_0x49cdf8,_0x2a5885={};_0x2a5885[_0x573928(0xdf)]=_0x573928(0xe4),_0x2a5885[_0x573928(0xda)]=_0x573928(0xe8);const _0x121e9c=_0x2a5885;return _0x1ee20a[_0x573928(0xd5)](HELP_HEADER_MESSAGE[_0x573928(0xcf)])[_0x573928(0xe7)](HELP_FOOTER_MESSAGE)[_0x573928(0xd2)](_0x121e9c[_0x573928(0xdf)])[_0x573928(0xde)]()[_0x573928(0xe0)]()[_0x573928(0xd1)]()[_0x573928(0xe8)](_0x121e9c[_0x573928(0xda)]);},exports[a18_0x49cdf8(0xe2)]=function(_0x335ca0){};
@@ -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_0x91acf=a19_0x2d16;function a19_0x2d16(_0x2fa702,_0x22e247){const _0x14a95f=a19_0x14a9();return a19_0x2d16=function(_0x2d1666,_0x501840){_0x2d1666=_0x2d1666-0x6b;let _0x568e04=_0x14a95f[_0x2d1666];return _0x568e04;},a19_0x2d16(_0x2fa702,_0x22e247);}(function(_0x50d78e,_0x217f87){const _0x3968df=a19_0x2d16,_0x5c9ba3=_0x50d78e();while(!![]){try{const _0x512e68=-parseInt(_0x3968df(0xa5))/0x1+parseInt(_0x3968df(0x7f))/0x2*(-parseInt(_0x3968df(0xa4))/0x3)+parseInt(_0x3968df(0x6b))/0x4*(-parseInt(_0x3968df(0x7a))/0x5)+parseInt(_0x3968df(0x7e))/0x6*(-parseInt(_0x3968df(0xa9))/0x7)+parseInt(_0x3968df(0xb5))/0x8+parseInt(_0x3968df(0x76))/0x9+parseInt(_0x3968df(0xa8))/0xa;if(_0x512e68===_0x217f87)break;else _0x5c9ba3['push'](_0x5c9ba3['shift']());}catch(_0xed45dc){_0x5c9ba3['push'](_0x5c9ba3['shift']());}}}(a19_0x14a9,0x76843));function a19_0x14a9(){const _0x4aba35=['Grid\x20started','kXgjX','cloudProvider','ZhBon','start','eXbYB','command','bstackAccesskey','error','../../config/logger','Browserstack','connectionTimeout','enNOV','<UsernamePlaceholder>','ZBDmb','stringify','parse','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','info','reconnecting-websocket','nPriO','epilogue','3OMJcIK','489103ucegeh','body','clusterName','9826840HWlaqA','946743dEgCCH','desc','options','default','../../cloudproviders/utils','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid-id','readFileSync','XPzbR','unauthorised','bstackUsername','5990824SXoKfR','../../utils/createk8sClient','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','fKqfL','ERROR','gridId','wQomh','skip-tls-cert-verify','string','password','addListeners','WebSocket','20pKMmAw','type','NaMdS','description','exit','hxzKp','server-error','INFO','init-not-called','existsSync','PCCJq','3155355ujjcIj','RwalV','NuhKz','grid','277715KgAeRT','clusterRegion','replace','PHALY','12UJVWCb','1118746eAuLuF','argv','username','kNTfA','sRlHn','nTYRt','name','help','debug','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','uTyXy','usage','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','KonyZ','builder'];a19_0x14a9=function(){return _0x4aba35;};return a19_0x14a9();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x91acf(0xa1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x91acf(0x97)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x91acf(0xb6)),{getCloudProviderObject}=require(a19_0x91acf(0xad));exports[a19_0x91acf(0x94)]=a19_0x91acf(0x79),exports[a19_0x91acf(0xaa)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x91acf(0x8d)]=function(_0x178998){const _0x35076d=a19_0x91acf,_0x409260={};_0x409260['FBCQJ']=_0x35076d(0x9f),_0x409260['NuhKz']=_0x35076d(0xbd),_0x409260['kwrBk']='Skip\x20insecure\x20cert\x20verification.',_0x409260[_0x35076d(0x82)]='boolean',_0x409260[_0x35076d(0x7d)]=_0x35076d(0x86);const _0x40ca1d=_0x409260,_0x3ba793={};_0x3ba793['description']=_0x40ca1d['FBCQJ'],_0x3ba793[_0x35076d(0x6c)]=_0x40ca1d[_0x35076d(0x78)];const _0x539c63={};_0x539c63[_0x35076d(0x6e)]=_0x40ca1d['kwrBk'],_0x539c63[_0x35076d(0x6c)]=_0x40ca1d[_0x35076d(0x82)],_0x539c63[_0x35076d(0xac)]=![];const _0x244de3={};return _0x244de3[_0x35076d(0xb0)]=_0x3ba793,_0x244de3[_0x35076d(0xbc)]=_0x539c63,_0x178998[_0x35076d(0x8a)](HELP_HEADER_MESSAGE[_0x35076d(0x92)])[_0x35076d(0xa3)](HELP_FOOTER_MESSAGE)[_0x35076d(0xab)](_0x244de3)['help'](_0x40ca1d['PHALY'])[_0x35076d(0x80)];},exports['handler']=async function(_0x20dd66){const _0x3513bf=a19_0x91acf,_0x3077a9={'NaMdS':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','nTYRt':function(_0x35b720){return _0x35b720();},'dOYNs':_0x3513bf(0x8b),'fKqfL':function(_0x4bca46,_0x425f5a,_0x191a4a,_0x370b9e,_0x5280d2,_0x5ebaff,_0xa23d65){return _0x4bca46(_0x425f5a,_0x191a4a,_0x370b9e,_0x5280d2,_0x5ebaff,_0xa23d65);},'wQomh':'start-grid-called','ZBDmb':_0x3513bf(0x73),'PCCJq':function(_0x5d1ed2){return _0x5d1ed2();},'fJuGR':_0x3513bf(0x9b),'sRlHn':'<PasswordPlaceholder>','kXgjX':'Adding\x20Websocket\x20listeners','nPriO':function(_0x501eb3,_0x228e69,_0x471ec9,_0x6bc61c){return _0x501eb3(_0x228e69,_0x471ec9,_0x6bc61c);},'uTyXy':function(_0x4a5d77,_0x43a410,_0x4fa5e3,_0x46f648,_0x55b06f,_0x297cae,_0x65a7f){return _0x4a5d77(_0x43a410,_0x4fa5e3,_0x46f648,_0x55b06f,_0x297cae,_0x65a7f);},'ZhBon':function(_0x39032b,_0x44a59e,_0x54e750){return _0x39032b(_0x44a59e,_0x54e750);},'RwalV':function(_0x241a1c,_0x25c859,_0xa43691){return _0x241a1c(_0x25c859,_0xa43691);},'enNOV':_0x3513bf(0x8e),'KonyZ':function(_0x17dd3f,_0x30a03d){return _0x17dd3f===_0x30a03d;},'GmhtR':_0x3513bf(0xb7),'eXbYB':_0x3513bf(0xb3),'hxzKp':'invalid-grid-id','rLUmr':function(_0x27b5f1,_0x1c901e,_0x55b11d,_0x4dc9ad,_0x495f7d,_0x207e94,_0x357f88){return _0x27b5f1(_0x1c901e,_0x55b11d,_0x4dc9ad,_0x495f7d,_0x207e94,_0x357f88);},'XPzbR':_0x3513bf(0x71)};let _0x109d70;try{!_0x20dd66[_0x3513bf(0xba)]&&(logger[_0x3513bf(0x96)](_0x3077a9[_0x3513bf(0x6d)]),process[_0x3513bf(0x6f)](0x1));!fs[_0x3513bf(0x74)](_0x3077a9[_0x3513bf(0x84)](getCredentialsPath))&&(logger[_0x3513bf(0x96)](_0x3077a9['dOYNs']),await _0x3077a9[_0x3513bf(0xb8)](sendInstrumentationEvent,_0x20dd66,_0x3077a9[_0x3513bf(0xbb)],messageTypes['ERROR'],_0x3077a9[_0x3513bf(0x9c)],null,_0x20dd66),process[_0x3513bf(0x6f)](0x1));logger[_0x3513bf(0xa0)]('Starting\x20grid\x20'+_0x20dd66[_0x3513bf(0xba)]),await _0x3077a9['fKqfL'](sendInstrumentationEvent,_0x20dd66,_0x3077a9[_0x3513bf(0xbb)],messageTypes[_0x3513bf(0x72)],null,null,_0x20dd66);const _0x5de2f9=JSON[_0x3513bf(0x9e)](fs[_0x3513bf(0xb1)](_0x3077a9[_0x3513bf(0x75)](getCredentialsPath)));global_registry[_0x3513bf(0xb4)]=_0x5de2f9['Browserstack']['username'],global_registry[_0x3513bf(0x95)]=_0x5de2f9[_0x3513bf(0x98)][_0x3513bf(0xbe)];const _0x311249=WS_ENDPOINT[_0x3513bf(0x7c)](_0x3077a9['fJuGR'],_0x5de2f9[_0x3513bf(0x98)][_0x3513bf(0x81)])[_0x3513bf(0x7c)](_0x3077a9[_0x3513bf(0x83)],_0x5de2f9[_0x3513bf(0x98)]['password']),_0x48ad8d={};_0x48ad8d[_0x3513bf(0xc0)]=ws,_0x48ad8d[_0x3513bf(0x99)]=0x36ee80,_0x109d70=new ReconnectingWebSocket(_0x311249,[],_0x48ad8d),logger[_0x3513bf(0x87)](_0x3077a9[_0x3513bf(0x8f)]),webSocketUtils[_0x3513bf(0xbf)](_0x109d70,_0x20dd66['user'],_0x20dd66[_0x3513bf(0xbe)]);const [_0x65bef8,_0x28edf8]=await _0x3077a9[_0x3513bf(0xa2)](getGridDetails,_0x5de2f9[_0x3513bf(0x98)]['username'],_0x5de2f9[_0x3513bf(0x98)][_0x3513bf(0xbe)],_0x20dd66[_0x3513bf(0xba)]);if(_0x28edf8){const _0x315ef9=_0x28edf8[_0x3513bf(0xa0)];global_registry[_0x3513bf(0x90)]=_0x315ef9[_0x3513bf(0x90)],global_registry[_0x3513bf(0x7b)]=_0x315ef9['region'],global_registry[_0x3513bf(0xa7)]=_0x315ef9['clusterName'];const _0x1e3f80=await _0x3077a9[_0x3513bf(0x89)](getCloudProviderObject,_0x315ef9[_0x3513bf(0x90)],_0x315ef9[_0x3513bf(0xa7)],_0x315ef9[_0x3513bf(0x85)],_0x109d70,webSocketUtils,_0x20dd66),[_0x87110e,_0x1f8310,_0x235edf,_0x4e03d0,_0x117baa,_0x175bf4]=await _0x3077a9[_0x3513bf(0x91)](createK8sClient,_0x1e3f80,_0x20dd66['skipTlsCertVerify']);await _0x3077a9[_0x3513bf(0x77)](scaleUpHubDeployment,_0x1f8310,_0x315ef9[_0x3513bf(0x85)]),logger[_0x3513bf(0xa0)](_0x3077a9[_0x3513bf(0x9a)]),process[_0x3513bf(0x6f)](0x0);}_0x3077a9['KonyZ'](_0x65bef8['statusCode'],0x191)&&(logger[_0x3513bf(0x96)](_0x3077a9['GmhtR']),await _0x3077a9[_0x3513bf(0xb8)](sendInstrumentationEvent,_0x20dd66,_0x3077a9['wQomh'],messageTypes[_0x3513bf(0xb9)],_0x3077a9[_0x3513bf(0x93)],null,_0x20dd66),process[_0x3513bf(0x6f)](0x1)),_0x3077a9[_0x3513bf(0x8c)](_0x65bef8['statusCode'],0x190)&&(logger[_0x3513bf(0x96)](JSON[_0x3513bf(0x9e)](_0x65bef8[_0x3513bf(0xa6)])['message']),await _0x3077a9[_0x3513bf(0x89)](sendInstrumentationEvent,_0x20dd66,_0x3077a9[_0x3513bf(0xbb)],messageTypes[_0x3513bf(0xb9)],_0x3077a9[_0x3513bf(0x70)],null,_0x20dd66),process[_0x3513bf(0x6f)](0x1)),logger[_0x3513bf(0x96)](_0x3513bf(0xaf)+JSON[_0x3513bf(0x9d)](_0x65bef8)),await _0x3077a9['rLUmr'](sendInstrumentationEvent,_0x20dd66,_0x3077a9['wQomh'],messageTypes[_0x3513bf(0xb9)],_0x3077a9[_0x3513bf(0xb2)],_0x65bef8,_0x20dd66),process[_0x3513bf(0x6f)](0x1);}catch(_0x1eee52){const _0x1f7d84=_0x3513bf(0x88)+_0x1eee52+'\x20\x0a'+JSON[_0x3513bf(0x9d)](_0x1eee52[_0x3513bf(0xae)])+'\x20';logger[_0x3513bf(0x96)](_0x1f7d84),process[_0x3513bf(0x6f)](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
+ const a20_0x259d9a=a20_0x14bb;(function(_0x1d1ac2,_0x1ed53f){const _0x77b98f=a20_0x14bb,_0x517127=_0x1d1ac2();while(!![]){try{const _0x5de83c=-parseInt(_0x77b98f(0x1a9))/0x1+parseInt(_0x77b98f(0x1b0))/0x2+-parseInt(_0x77b98f(0x1a6))/0x3*(parseInt(_0x77b98f(0x1b1))/0x4)+-parseInt(_0x77b98f(0x1ac))/0x5*(parseInt(_0x77b98f(0x1a1))/0x6)+parseInt(_0x77b98f(0x1a5))/0x7+-parseInt(_0x77b98f(0x1ab))/0x8*(parseInt(_0x77b98f(0x1ad))/0x9)+parseInt(_0x77b98f(0x1a3))/0xa;if(_0x5de83c===_0x1ed53f)break;else _0x517127['push'](_0x517127['shift']());}catch(_0x18a584){_0x517127['push'](_0x517127['shift']());}}}(a20_0x4679,0xa7f48));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x259d9a(0x1b6));function a20_0x14bb(_0x3bcef1,_0x34840f){const _0x467900=a20_0x4679();return a20_0x14bb=function(_0x14bb3d,_0xa122d2){_0x14bb3d=_0x14bb3d-0x1a1;let _0x379953=_0x467900[_0x14bb3d];return _0x379953;},a20_0x14bb(_0x3bcef1,_0x34840f);}exports[a20_0x259d9a(0x1a2)]=a20_0x259d9a(0x1b3),exports[a20_0x259d9a(0x1ae)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x259d9a(0x1a8)]=function(_0x43b586){const _0x4dc064=a20_0x259d9a,_0x3c4345={};_0x3c4345[_0x4dc064(0x1a7)]=_0x4dc064(0x1af),_0x3c4345['QCHVj']='help';const _0x56ec37=_0x3c4345;return _0x43b586[_0x4dc064(0x1b5)](HELP_HEADER_MESSAGE[_0x4dc064(0x1b3)])[_0x4dc064(0x1b8)](HELP_FOOTER_MESSAGE)[_0x4dc064(0x1a4)](_0x56ec37[_0x4dc064(0x1a7)])[_0x4dc064(0x1b2)]()[_0x4dc064(0x1b7)]()[_0x4dc064(0x1b4)]()[_0x4dc064(0x1aa)](_0x56ec37['QCHVj']);},exports['handler']=function(_0x11e42d){};function a20_0x4679(){const _0x3ca210=['demandCommand','stop','strict','usage','../config/constants','recommendCommands','epilogue','871356YYClia','command','19987790UqRUlL','commandDir','6821353BHIMZj','14109BcnSFD','rXxyG','builder','897032GthZpn','help','32nFRxdO','5GcSERC','2526030Ufrzmo','desc','stop_commands','2496394rROBxN','1164ZzDziP'];a20_0x4679=function(){return _0x3ca210;};return a20_0x4679();}
@@ -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_0x5d30d2=a21_0x48dc;function a21_0x2949(){const _0x258a30=['stack','zwMMO','name','UnMFa','../../utils/webSocketUtils','goZCe','exit','6959228rjsNds','epilogue','PvIvr','gbbSX','bstackAccesskey','XKttA','default','87560hKaeLY','../../utils/instrumentationUtils','LqTgu','CtbOq','nyrAk','../../cloudproviders/utils','8yiOmpX','options','../../utils/createk8sClient','help','reconnecting-websocket','parse','ERROR','1200fLTzFH','crWWe','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','info','debug','Stop\x20a\x20running\x20Automation\x20grid.','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','15558ELkWMl','type','45528cMUHYa','password','Skip\x20insecure\x20cert\x20verification.','MFwXc','gridId','139NRYePQ','replace','gajGR','grid-id','INFO','body','3806SbBXTv','invalid-grid-id','region','7083387xQptIP','Browserstack','2819058SHfJcu','IsKTx','connectionTimeout','statusCode','../../utils/utilityMethods','kYEQf','clusterRegion','GiUkH','eDmNd','existsSync','skipTlsCertVerify','stop','8275730SCOsKJ','bstackUsername','MayQh','KWkvo','../../config/logger','<UsernamePlaceholder>','username','clusterName','usage','<PasswordPlaceholder>','WbRFh','stringify','unauthorised','RluQV','cloudProvider','JCSIZ','stop-grid-called','description','argv','MkDvx','grid','lSQrx','error','handler'];a21_0x2949=function(){return _0x258a30;};return a21_0x2949();}(function(_0x1c7620,_0x3b5d6d){const _0x346c22=a21_0x48dc,_0x420ac4=_0x1c7620();while(!![]){try{const _0x1be921=parseInt(_0x346c22(0x198))/0x1*(parseInt(_0x346c22(0x191))/0x2)+parseInt(_0x346c22(0x1a3))/0x3+-parseInt(_0x346c22(0x176))/0x4+parseInt(_0x346c22(0x1af))/0x5+parseInt(_0x346c22(0x18a))/0x6*(parseInt(_0x346c22(0x193))/0x7)+-parseInt(_0x346c22(0x183))/0x8*(-parseInt(_0x346c22(0x1a1))/0x9)+-parseInt(_0x346c22(0x17d))/0xa*(parseInt(_0x346c22(0x19e))/0xb);if(_0x1be921===_0x3b5d6d)break;else _0x420ac4['push'](_0x420ac4['shift']());}catch(_0x260fea){_0x420ac4['push'](_0x420ac4['shift']());}}}(a21_0x2949,0xf2d0d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5d30d2(0x187)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x5d30d2(0x1b3)),{getCredentialsPath,getGridDetails}=require(a21_0x5d30d2(0x1a7)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x5d30d2(0x17e)),webSocketUtils=require(a21_0x5d30d2(0x173)),{createK8sClient}=require(a21_0x5d30d2(0x185)),{getCloudProviderObject}=require(a21_0x5d30d2(0x182));function a21_0x48dc(_0x5eb7d5,_0x42b787){const _0x2949c5=a21_0x2949();return a21_0x48dc=function(_0x48dcf5,_0x2cfd86){_0x48dcf5=_0x48dcf5-0x160;let _0x53f0be=_0x2949c5[_0x48dcf5];return _0x53f0be;},a21_0x48dc(_0x5eb7d5,_0x42b787);}exports['command']=a21_0x5d30d2(0x16b),exports['desc']=a21_0x5d30d2(0x18f),exports['builder']=function(_0x29f332){const _0x2f94e2=a21_0x5d30d2,_0x1f41f9={};_0x1f41f9['kYEQf']=_0x2f94e2(0x190),_0x1f41f9[_0x2f94e2(0x181)]='string',_0x1f41f9[_0x2f94e2(0x16c)]=_0x2f94e2(0x195),_0x1f41f9[_0x2f94e2(0x16a)]='boolean',_0x1f41f9['dBGZl']=_0x2f94e2(0x186);const _0x8fae79=_0x1f41f9,_0x1748d5={};_0x1748d5[_0x2f94e2(0x168)]=_0x8fae79[_0x2f94e2(0x1a8)],_0x1748d5['type']=_0x8fae79['nyrAk'];const _0x1bea75={};_0x1bea75[_0x2f94e2(0x168)]=_0x8fae79['lSQrx'],_0x1bea75[_0x2f94e2(0x192)]=_0x8fae79[_0x2f94e2(0x16a)],_0x1bea75[_0x2f94e2(0x17c)]=![];const _0x29af2a={};return _0x29af2a[_0x2f94e2(0x19b)]=_0x1748d5,_0x29af2a['skip-tls-cert-verify']=_0x1bea75,_0x29f332[_0x2f94e2(0x1b7)](HELP_HEADER_MESSAGE[_0x2f94e2(0x1ae)])[_0x2f94e2(0x177)](HELP_FOOTER_MESSAGE)[_0x2f94e2(0x184)](_0x29af2a)[_0x2f94e2(0x186)](_0x8fae79['dBGZl'])[_0x2f94e2(0x169)];},exports[a21_0x5d30d2(0x16e)]=async function(_0x2aaf59){const _0x511517=a21_0x5d30d2,_0x34e23e={'goZCe':_0x511517(0x18c),'KWkvo':function(_0x941f6d){return _0x941f6d();},'UnMFa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','CtbOq':function(_0x1d0da3,_0x4fd11b,_0xf31d70,_0x4b1415,_0x274041,_0x5acc5a,_0x38bb26){return _0x1d0da3(_0x4fd11b,_0xf31d70,_0x4b1415,_0x274041,_0x5acc5a,_0x38bb26);},'JCSIZ':_0x511517(0x167),'gajGR':'init-not-called','zwMMO':_0x511517(0x1b4),'crWWe':_0x511517(0x160),'RluQV':'Adding\x20Websocket\x20listeners','MFwXc':function(_0xb7788b,_0x3854f2,_0x15e9db,_0x5a33f8){return _0xb7788b(_0x3854f2,_0x15e9db,_0x5a33f8);},'LqTgu':function(_0x4cbeee,_0x25e4d3,_0x2884b6,_0x253a40,_0xd71e87,_0x4d09d7,_0x145b68){return _0x4cbeee(_0x25e4d3,_0x2884b6,_0x253a40,_0xd71e87,_0x4d09d7,_0x145b68);},'PvIvr':function(_0x30b2ed,_0x2ce927,_0x26c283){return _0x30b2ed(_0x2ce927,_0x26c283);},'IsKTx':function(_0x54872f,_0x4778f4,_0x241ea4){return _0x54872f(_0x4778f4,_0x241ea4);},'gbbSX':'Grid\x20stoppped.','mndmI':function(_0x2ac890,_0x478642){return _0x2ac890===_0x478642;},'XKttA':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WbRFh':function(_0x4290bf,_0x1e7793,_0x18efe2,_0x11b77e,_0x16366f,_0x40ccc1,_0x21d716){return _0x4290bf(_0x1e7793,_0x18efe2,_0x11b77e,_0x16366f,_0x40ccc1,_0x21d716);},'GiUkH':_0x511517(0x163),'eDmNd':function(_0x36db52,_0x1d7f20,_0x38e7a1,_0x23b4a6,_0x291c7e,_0x527706,_0xa3607a){return _0x36db52(_0x1d7f20,_0x38e7a1,_0x23b4a6,_0x291c7e,_0x527706,_0xa3607a);},'unzsK':_0x511517(0x19f),'MayQh':'server-error'};let _0x8ab08c;try{!_0x2aaf59[_0x511517(0x197)]&&(logger[_0x511517(0x16d)](_0x34e23e[_0x511517(0x174)]),process[_0x511517(0x175)](0x1));!fs[_0x511517(0x1ac)](_0x34e23e[_0x511517(0x1b2)](getCredentialsPath))&&(logger[_0x511517(0x16d)](_0x34e23e[_0x511517(0x172)]),await _0x34e23e['CtbOq'](sendInstrumentationEvent,_0x2aaf59,_0x34e23e['JCSIZ'],messageTypes['ERROR'],_0x34e23e[_0x511517(0x19a)],null,_0x2aaf59),process[_0x511517(0x175)](0x1));logger[_0x511517(0x18d)]('Stopping\x20grid\x20'+_0x2aaf59[_0x511517(0x197)]),await _0x34e23e[_0x511517(0x180)](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes[_0x511517(0x19c)],null,null,_0x2aaf59);const _0x245552=JSON[_0x511517(0x188)](fs['readFileSync'](_0x34e23e['KWkvo'](getCredentialsPath)));global_registry[_0x511517(0x1b0)]=_0x245552[_0x511517(0x1a2)][_0x511517(0x1b5)],global_registry[_0x511517(0x17a)]=_0x245552[_0x511517(0x1a2)]['password'];const _0x3aba5b=WS_ENDPOINT[_0x511517(0x199)](_0x34e23e[_0x511517(0x170)],_0x245552['Browserstack']['username'])[_0x511517(0x199)](_0x34e23e[_0x511517(0x18b)],_0x245552[_0x511517(0x1a2)]['password']),_0x522817={};_0x522817['WebSocket']=ws,_0x522817[_0x511517(0x1a5)]=0x36ee80,_0x8ab08c=new ReconnectingWebSocket(_0x3aba5b,[],_0x522817),logger[_0x511517(0x18e)](_0x34e23e[_0x511517(0x164)]),webSocketUtils['addListeners'](_0x8ab08c,_0x2aaf59['user'],_0x2aaf59[_0x511517(0x194)]);const [_0x4d7f12,_0x24b615]=await _0x34e23e[_0x511517(0x196)](getGridDetails,_0x245552[_0x511517(0x1a2)][_0x511517(0x1b5)],_0x245552[_0x511517(0x1a2)][_0x511517(0x194)],_0x2aaf59[_0x511517(0x197)]);if(_0x24b615){const _0x56beec=_0x24b615[_0x511517(0x18d)];global_registry[_0x511517(0x165)]=_0x56beec[_0x511517(0x165)],global_registry[_0x511517(0x1a9)]=_0x56beec[_0x511517(0x1a0)],global_registry[_0x511517(0x1b6)]=_0x56beec[_0x511517(0x1b6)];const _0x25b972=await _0x34e23e[_0x511517(0x17f)](getCloudProviderObject,_0x56beec[_0x511517(0x165)],_0x56beec[_0x511517(0x1b6)],_0x56beec[_0x511517(0x171)],_0x8ab08c,webSocketUtils,_0x2aaf59),[_0x4fc06a,_0x1bb96e,_0x355741,_0x16614b,_0x21e2c3,_0x5239b4]=await _0x34e23e[_0x511517(0x178)](createK8sClient,_0x25b972,_0x2aaf59[_0x511517(0x1ad)]);await _0x34e23e[_0x511517(0x1a4)](scaleDownHubDeployment,_0x1bb96e,_0x56beec[_0x511517(0x171)]),logger['info'](_0x34e23e[_0x511517(0x179)]),process[_0x511517(0x175)](0x0);}_0x34e23e['mndmI'](_0x4d7f12[_0x511517(0x1a6)],0x191)&&(logger[_0x511517(0x16d)](_0x34e23e[_0x511517(0x17b)]),await _0x34e23e[_0x511517(0x161)](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes[_0x511517(0x189)],_0x34e23e[_0x511517(0x1aa)],null,_0x2aaf59),process[_0x511517(0x175)](0x1)),_0x34e23e['mndmI'](_0x4d7f12['statusCode'],0x190)&&(logger[_0x511517(0x16d)](JSON[_0x511517(0x188)](_0x4d7f12[_0x511517(0x19d)])['message']),await _0x34e23e[_0x511517(0x1ab)](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes['ERROR'],_0x34e23e['unzsK'],null,_0x2aaf59),process[_0x511517(0x175)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x511517(0x162)](_0x4d7f12)),await _0x34e23e['eDmNd'](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes[_0x511517(0x189)],_0x34e23e[_0x511517(0x1b1)],_0x4d7f12,_0x2aaf59),process['exit'](0x1);}catch(_0x72abf3){const _0x485474='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x72abf3+'\x20\x0a'+JSON[_0x511517(0x162)](_0x72abf3[_0x511517(0x16f)])+'\x20';logger['error'](_0x485474),process[_0x511517(0x175)](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_0x3e7c9a=a22_0x5577;(function(_0x2cbb81,_0x4454c7){const _0x100305=a22_0x5577,_0x31544b=_0x2cbb81();while(!![]){try{const _0x19b27d=-parseInt(_0x100305(0xb9))/0x1+parseInt(_0x100305(0xda))/0x2*(-parseInt(_0x100305(0xb5))/0x3)+-parseInt(_0x100305(0xe9))/0x4+parseInt(_0x100305(0x9e))/0x5*(parseInt(_0x100305(0xbe))/0x6)+parseInt(_0x100305(0x8a))/0x7*(parseInt(_0x100305(0x9d))/0x8)+parseInt(_0x100305(0x86))/0x9*(-parseInt(_0x100305(0xe2))/0xa)+parseInt(_0x100305(0x83))/0xb*(-parseInt(_0x100305(0xd2))/0xc);if(_0x19b27d===_0x4454c7)break;else _0x31544b['push'](_0x31544b['shift']());}catch(_0x201294){_0x31544b['push'](_0x31544b['shift']());}}}(a22_0x1469,0x58a5a),require(a22_0x3e7c9a(0x99))[a22_0x3e7c9a(0x90)]());let gridURL=a22_0x3e7c9a(0xc9),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x3e7c9a(0xa6);const _env=(process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0x85)]||a22_0x3e7c9a(0xec))['toLowerCase']();if(_env===a22_0x3e7c9a(0xb6)||_env===a22_0x3e7c9a(0xc7))gridURL=a22_0x3e7c9a(0xdc),bsApiUrl=a22_0x3e7c9a(0xb3),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x3e7c9a(0x81))&&(gridURL=a22_0x3e7c9a(0xed),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x3e7c9a(0x82));exports[a22_0x3e7c9a(0xa7)]=process['env'][a22_0x3e7c9a(0xa7)]||gridURL,exports[a22_0x3e7c9a(0xc3)]=process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0xc3)]||bsApiUrl,exports[a22_0x3e7c9a(0x88)]=process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0x88)]||agApiUrl,exports[a22_0x3e7c9a(0xc2)]=a22_0x3e7c9a(0xaf)+this[a22_0x3e7c9a(0x88)]+a22_0x3e7c9a(0x98),exports['CP_CONFIG_FILE']=a22_0x3e7c9a(0x91),exports[a22_0x3e7c9a(0xdb)]=a22_0x3e7c9a(0xb0),exports[a22_0x3e7c9a(0xab)]=a22_0x3e7c9a(0xe0),exports[a22_0x3e7c9a(0xce)]=a22_0x3e7c9a(0x7d),exports[a22_0x3e7c9a(0x8d)]='BSTACK-ATS-CLUSTER',exports[a22_0x3e7c9a(0xc6)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x3e7c9a(0xbd)]=a22_0x3e7c9a(0x9a),exports[a22_0x3e7c9a(0x8e)]=a22_0x3e7c9a(0xa1),exports['AZURE']=a22_0x3e7c9a(0xd8),exports['GCP']=a22_0x3e7c9a(0xdd),exports[a22_0x3e7c9a(0xe5)]=[this[a22_0x3e7c9a(0xce)],this[a22_0x3e7c9a(0xd9)],this[a22_0x3e7c9a(0xa0)]];const a22_0x1f4f40={};function a22_0x5577(_0x197973,_0x25f6eb){const _0x146901=a22_0x1469();return a22_0x5577=function(_0x5577e2,_0x5f0642){_0x5577e2=_0x5577e2-0x7c;let _0x3f9224=_0x146901[_0x5577e2];return _0x3f9224;},a22_0x5577(_0x197973,_0x25f6eb);}a22_0x1f4f40[a22_0x3e7c9a(0xaa)]=a22_0x3e7c9a(0xac),a22_0x1f4f40[a22_0x3e7c9a(0xe6)]=a22_0x3e7c9a(0xa4);const a22_0x398340={};a22_0x398340[a22_0x3e7c9a(0xaa)]=a22_0x3e7c9a(0x89),a22_0x398340[a22_0x3e7c9a(0xe6)]=a22_0x3e7c9a(0xeb);function a22_0x1469(){const _0x435088=['CLUSTER_AUTOSCALER_STACK_NAME','stag','GRID_URL','grid.browserstack.com','NULL','ERROR','REDACTED','error','AWS','env','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','HELP_HEADER_MESSAGE','246624ixcinG','configure','resourceInfo','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','HELP_FOOTER_MESSAGE','messageTypes','azure','AZURE','54558SOQHZQ','IAM_USER_NAME','grid-devhst.bsstag.com','gcp','COMMON_HST_TAGS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','high-scale-grid','WS_EVENTS','189560UFCbLo','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','DEFAULT_CLUSTER_DETAILS','ALL_SUPPORTED_CLOUD_PROVIDERS','Value','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','TURBOSCALE_CUSTOM_TAGS','881520XlQdvk','SUPPORTED_CLOUD_PROVIDERS','BrowserStack-Automate-TurboScale','prod','grid-preprod.bsstag.com','split','stop','aws','us-east-1','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','start','pre-prod','grid-api-preprod.bsstag.com','187isVFCC','CLI_RUN_STARTED','BROWSERSTACK_ENV','9umEMYZ','root','AG_API_URL','browserstack:service','7ISNTql','gridProfile','push','CLUSTER_DEP_STACK_NAME','TURBOSCALE_DEPLOYMENT','RESOURCES','config','credentials','gridUrl','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','create','log','LOG','CLUSTER','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','dotenv','BSTACK-ATS-CLUSTER-HUB-HA','cliRunStarted','CLI_RUN_FINISHED','2447840cLUxua','20135dlUlii','TRIAL_GRID_URL','GCP','browserstack-turboscale-grid','success','pre-check','BrowserStack','LINK_MESSAGE','grid-api.browserstack.com','DASHBOARD_ENDPOINT','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Key','DEFAULT_GRID_NAME','browserstack:managedBy','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','grid-profile','wss://','BrowserStackIAMUser','CLI_ARGS_REGEX','forEach','api-devhst.bsstag.com','INFO','6civACi','staging','init','delete','8356ictTEg','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','list','UNKNOWN','CLUSTER_HUB_HA_STACK_NAME','1056hapLOh','warning','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','WS_ENDPOINT','BS_API_URL','[REDACTED]','REGION'];a22_0x1469=function(){return _0x435088;};return a22_0x1469();}const common_hst_tags_list=[a22_0x1f4f40,a22_0x398340];if(process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0xe8)]){const parsedTags=process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0xe8)][a22_0x3e7c9a(0xee)](',');parsedTags[a22_0x3e7c9a(0xb2)](_0x101032=>{const _0x7a8648=a22_0x3e7c9a,_0x3fcd66=_0x101032['split'](':'),_0x331513={};_0x331513[_0x7a8648(0xaa)]=_0x3fcd66[0x0],_0x331513[_0x7a8648(0xe6)]=_0x3fcd66[0x1],common_hst_tags_list[_0x7a8648(0x8c)](_0x331513);});}exports[a22_0x3e7c9a(0xde)]=common_hst_tags_list;const a22_0x2ce470={};a22_0x2ce470[a22_0x3e7c9a(0xac)]=a22_0x3e7c9a(0xa4),a22_0x2ce470[a22_0x3e7c9a(0x89)]=a22_0x3e7c9a(0xeb),exports['HST_CLUSTER_TAGS']=a22_0x2ce470,exports[a22_0x3e7c9a(0xea)]=[this[a22_0x3e7c9a(0xce)]];const a22_0x439b7f={};a22_0x439b7f[a22_0x3e7c9a(0x96)]=a22_0x3e7c9a(0x95),a22_0x439b7f[a22_0x3e7c9a(0x8f)]=a22_0x3e7c9a(0xd4),a22_0x439b7f[a22_0x3e7c9a(0xc8)]=a22_0x3e7c9a(0x92),a22_0x439b7f[a22_0x3e7c9a(0x84)]=a22_0x3e7c9a(0x9b),a22_0x439b7f[a22_0x3e7c9a(0x9c)]='cliRunFinished',exports[a22_0x3e7c9a(0xe1)]=a22_0x439b7f,exports['global_registry']={},exports[a22_0x3e7c9a(0xa5)]=a22_0x3e7c9a(0x7f);const a22_0x520b85={};a22_0x520b85['root']=a22_0x3e7c9a(0xa8)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xb7)]=a22_0x3e7c9a(0xd0)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xd3)]=a22_0x3e7c9a(0xc0)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0x94)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xbb)]={},a22_0x520b85[a22_0x3e7c9a(0xb8)]=a22_0x3e7c9a(0xc1)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85['connect']=a22_0x3e7c9a(0xba)+this['LINK_MESSAGE'],a22_0x520b85[a22_0x3e7c9a(0x80)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0x7c)]=a22_0x3e7c9a(0xe7)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xbb)][a22_0x3e7c9a(0x87)]=a22_0x3e7c9a(0xa9)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xbb)]['grid']=a22_0x3e7c9a(0x93)+this['LINK_MESSAGE'],a22_0x520b85[a22_0x3e7c9a(0xbb)][a22_0x3e7c9a(0x8b)]=a22_0x3e7c9a(0xad)+this[a22_0x3e7c9a(0xa5)],exports[a22_0x3e7c9a(0xd1)]=a22_0x520b85,exports[a22_0x3e7c9a(0xd6)]=a22_0x3e7c9a(0xdf);const a22_0xdfd70e={};a22_0xdfd70e['SUCCESS']=a22_0x3e7c9a(0xa2),a22_0xdfd70e[a22_0x3e7c9a(0xcb)]=a22_0x3e7c9a(0xcd),a22_0xdfd70e[a22_0x3e7c9a(0xb4)]='info',a22_0xdfd70e['WARNING']=a22_0x3e7c9a(0xbf),a22_0xdfd70e[a22_0x3e7c9a(0xbc)]='unknown',a22_0xdfd70e[a22_0x3e7c9a(0xca)]=null,exports[a22_0x3e7c9a(0xd7)]=a22_0xdfd70e,exports[a22_0x3e7c9a(0xb1)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x3e7c9a(0xcc)]=a22_0x3e7c9a(0xc4);const a22_0x47a381={};a22_0x47a381[a22_0x3e7c9a(0xae)]=a22_0x3e7c9a(0xd5);const a22_0x853314={};a22_0x853314[a22_0x3e7c9a(0xa3)]=a22_0x47a381,exports['MessageDescription']=a22_0x853314,exports[a22_0x3e7c9a(0x9f)]=a22_0x3e7c9a(0xe3);const a22_0xfdac6b={};a22_0xfdac6b[a22_0x3e7c9a(0x97)]='high-scale-grid-cluster',a22_0xfdac6b['CLOUD_PROVIDER']=a22_0x3e7c9a(0x7d),a22_0xfdac6b[a22_0x3e7c9a(0xc5)]=a22_0x3e7c9a(0x7e),exports[a22_0x3e7c9a(0xe4)]=a22_0xfdac6b;
@@ -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
+ const a23_0x208a42=a23_0x56a3;(function(_0x3e9ea3,_0x2f12e1){const _0x1d3c8d=a23_0x56a3,_0x4b025c=_0x3e9ea3();while(!![]){try{const _0x252920=-parseInt(_0x1d3c8d(0x8d))/0x1+-parseInt(_0x1d3c8d(0x88))/0x2+-parseInt(_0x1d3c8d(0x95))/0x3+parseInt(_0x1d3c8d(0x83))/0x4+parseInt(_0x1d3c8d(0x9b))/0x5+parseInt(_0x1d3c8d(0x90))/0x6+-parseInt(_0x1d3c8d(0x9a))/0x7*(-parseInt(_0x1d3c8d(0x8c))/0x8);if(_0x252920===_0x2f12e1)break;else _0x4b025c['push'](_0x4b025c['shift']());}catch(_0x4258b3){_0x4b025c['push'](_0x4b025c['shift']());}}}(a23_0x24f3,0x48767));const winston=require(a23_0x208a42(0x9c)),fs=require('fs'),path=require(a23_0x208a42(0xa0)),logDir='log';function a23_0x24f3(){const _0x31116d=['join','combine','level','444689VMubwY','1125215rhDaYO','winston','createLogger','mkdirSync','name','path','existsSync','365612XDQQiZ','File','colorize','console.info','YYYY-MM-DD\x20HH:mm:ss','816608IHgIWW','events.log','Console','format','64FhkFbR','56911kQuyap','\x20-\x20','transports','3113550CxdKQb','message','usage.log','printf','logger','1744695bJIOSW','timestamp'];a23_0x24f3=function(){return _0x31116d;};return a23_0x24f3();}!fs[a23_0x208a42(0xa1)](logDir)&&fs[a23_0x208a42(0x9e)](logDir);const a23_0x1003fb={};a23_0x1003fb[a23_0x208a42(0x8b)]=a23_0x208a42(0x87);const a23_0x56f0a7={};a23_0x56f0a7[a23_0x208a42(0x99)]=!![];function a23_0x56a3(_0x1499d1,_0x20ff21){const _0x24f386=a23_0x24f3();return a23_0x56a3=function(_0x56a300,_0x565006){_0x56a300=_0x56a300-0x83;let _0x560789=_0x24f386[_0x56a300];return _0x560789;},a23_0x56a3(_0x1499d1,_0x20ff21);}const a23_0x2c7224={};a23_0x2c7224[a23_0x208a42(0x9f)]=a23_0x208a42(0x86),exports[a23_0x208a42(0x94)]=new winston[(a23_0x208a42(0x9d))]({'format':winston[a23_0x208a42(0x8b)][a23_0x208a42(0x98)](winston[a23_0x208a42(0x8b)][a23_0x208a42(0x96)](a23_0x1003fb),winston[a23_0x208a42(0x8b)][a23_0x208a42(0x85)](a23_0x56f0a7),winston[a23_0x208a42(0x8b)][a23_0x208a42(0x93)](_0x33e703=>_0x33e703[a23_0x208a42(0x96)]+a23_0x208a42(0x8e)+_0x33e703[a23_0x208a42(0x99)]+':\x20'+_0x33e703[a23_0x208a42(0x91)])),'transports':[new winston['transports'][(a23_0x208a42(0x8a))](a23_0x2c7224),new winston[(a23_0x208a42(0x8f))][(a23_0x208a42(0x84))]({'filename':path[a23_0x208a42(0x97)](logDir,a23_0x208a42(0x89)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x208a42(0x8f))]['File']({'filename':path[a23_0x208a42(0x97)](logDir,a23_0x208a42(0x92)),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x208a42(0x9d))](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';function a24_0x3594(){const _0x524131=['10888seuoTi','5660930kSONWQ','usage','env','1350TisiIl','epilogue','./config/constants','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','commands','2114NjaGSD','5660GAwUim','1695365GYmYel','help','3nfZRss','TdeZQ','554721IKZucE','2FFiQEI','oGVyO','26ThJjLK','demandCommand','13794276IPdcLr','6jcJODr','2966252cSojrw'];a24_0x3594=function(){return _0x524131;};return a24_0x3594();}function a24_0x2fec(_0x196cf7,_0x1897ec){const _0x359422=a24_0x3594();return a24_0x2fec=function(_0x2fec66,_0x1861f8){_0x2fec66=_0x2fec66-0x95;let _0x50cc32=_0x359422[_0x2fec66];return _0x50cc32;},a24_0x2fec(_0x196cf7,_0x1897ec);}const a24_0x20277e=a24_0x2fec;(function(_0x1f419e,_0x1f63a5){const _0xd7567f=a24_0x2fec,_0x4f30b4=_0x1f419e();while(!![]){try{const _0x6312fe=parseInt(_0xd7567f(0x98))/0x1*(-parseInt(_0xd7567f(0x99))/0x2)+-parseInt(_0xd7567f(0x96))/0x3*(parseInt(_0xd7567f(0x9f))/0x4)+-parseInt(_0xd7567f(0xab))/0x5*(parseInt(_0xd7567f(0x9e))/0x6)+-parseInt(_0xd7567f(0xa9))/0x7*(-parseInt(_0xd7567f(0xa0))/0x8)+-parseInt(_0xd7567f(0xa4))/0x9*(parseInt(_0xd7567f(0xaa))/0xa)+-parseInt(_0xd7567f(0xa1))/0xb+-parseInt(_0xd7567f(0x9d))/0xc*(-parseInt(_0xd7567f(0x9b))/0xd);if(_0x6312fe===_0x1f63a5)break;else _0x4f30b4['push'](_0x4f30b4['shift']());}catch(_0x347666){_0x4f30b4['push'](_0x4f30b4['shift']());}}}(a24_0x3594,0x7402d));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x20277e(0xa6));process[a24_0x20277e(0xa3)][a24_0x20277e(0xa7)]=0x1;function run(_0x496b00){const _0x3214c9=a24_0x20277e,_0x16f403={};_0x16f403[_0x3214c9(0x97)]=_0x3214c9(0xa8),_0x16f403[_0x3214c9(0x9a)]='help';const _0x263135=_0x16f403;_0x496b00[_0x3214c9(0xa2)](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x263135[_0x3214c9(0x97)])[_0x3214c9(0x9c)]()[_0x3214c9(0x95)](_0x263135[_0x3214c9(0x9a)])[_0x3214c9(0xa5)](HELP_FOOTER_MESSAGE);}module['exports']=run;