browserstack-node-sdk 1.62.0 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/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/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/load/index.js +193 -12
  75. package/src/bin/load/load/loadErrors.js +248 -0
  76. package/src/bin/load/loadErrors.js +1 -0
  77. package/src/bin/load/loadUtils.js +1 -1
  78. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  79. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  80. package/src/bin/mocha/command.js +1 -1
  81. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/playwright/accessibility-helper.js +1 -1
  91. package/src/bin/playwright/command.js +1 -1
  92. package/src/bin/playwright/globalSetup.js +1 -1
  93. package/src/bin/playwright/mock-process.js +1 -1
  94. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  95. package/src/bin/playwright/patches.js +1 -1
  96. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  97. package/src/bin/playwright/reporter/reporter.js +1 -1
  98. package/src/bin/playwright/reporter/test-details.js +1 -1
  99. package/src/bin/playwright/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/patches.js +1 -1
  101. package/src/bin/puppeteer/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/test.setup.js +1 -1
  103. package/src/bin/runner.js +1 -1
  104. package/src/bin/setup.js +1 -1
  105. package/src/bin/test-runner/index.js +1 -1
  106. package/src/bin/test-runner/runTest.js +1 -1
  107. package/src/bin/test-runner/testWorker.js +1 -1
  108. package/src/bin/testcafe/a11y-runner.js +1 -1
  109. package/src/bin/testcafe/command.js +1 -1
  110. package/src/bin/testcafe/reporter/index.js +1 -1
  111. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  112. package/src/bin/testcafe/session-registry.js +1 -1
  113. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  114. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  115. package/src/bin/testcafe/w3c-driver.js +1 -1
  116. package/src/bin/utils/apiUtilityMethods.js +1 -1
  117. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  118. package/src/bin/utils/constants.js +1 -1
  119. package/src/bin/utils/log4jsAppender.js +1 -1
  120. package/src/bin/utils/logPatcher.js +1 -1
  121. package/src/bin/utils/logReportingAPI.js +1 -1
  122. package/src/bin/utils/playwright-patcher.js +1 -1
  123. package/src/bin/utils/puppeteer-patcher.js +1 -1
  124. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  125. package/src/bin/utils/sharedUtils.js +1 -1
  126. package/src/bin/v2/TestInfo.js +1 -1
  127. package/src/bin/v2/browserstackCLI.js +1 -1
  128. package/src/bin/v2/cliUtils.js +1 -1
  129. package/src/bin/v2/customTagManager.js +1 -1
  130. package/src/bin/v2/eventDispatcher.js +1 -1
  131. package/src/bin/v2/framework/automationFramework.js +1 -1
  132. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  133. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  134. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  135. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  136. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  139. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  143. package/src/bin/v2/grpcClient.js +1 -1
  144. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  146. package/src/bin/v2/instances/trackedContext.js +1 -1
  147. package/src/bin/v2/instances/trackedInstance.js +1 -1
  148. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  149. package/src/bin/v2/modules/baseModule.js +1 -1
  150. package/src/bin/v2/modules/loadTestModule.js +1 -1
  151. package/src/bin/v2/modules/observabilityModule.js +1 -1
  152. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  153. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  155. package/src/bin/v2/modules/testhubModule.js +1 -1
  156. package/src/bin/v2/sdkErrorHandler.js +1 -0
  157. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  158. package/src/bin/v2/state/hookState.js +1 -1
  159. package/src/bin/v2/state/testFrameworkState.js +1 -1
  160. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  161. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  162. package/src/bin/v2/utils/jest-utils.js +1 -1
  163. package/src/bin/vanilla-js/command.js +1 -1
  164. package/src/browserStackSdk.js +1 -1
  165. package/src/helpers/BrowserStackSetup.js +1 -1
  166. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  167. package/src/helpers/accessibility-automation/constants.js +1 -1
  168. package/src/helpers/accessibility-automation/helper.js +1 -1
  169. package/src/helpers/accessibility-automation/scripts.js +1 -1
  170. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  171. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  172. package/src/helpers/ats/constants.js +1 -1
  173. package/src/helpers/ats/helper.js +1 -1
  174. package/src/helpers/caCertHelper.js +1 -1
  175. package/src/helpers/capsMapping.js +1 -1
  176. package/src/helpers/central-scanner/constants.js +1 -1
  177. package/src/helpers/central-scanner/helpers.js +1 -1
  178. package/src/helpers/classLogger.js +1 -1
  179. package/src/helpers/driverInitErrorReporter.js +1 -1
  180. package/src/helpers/globals.js +1 -1
  181. package/src/helpers/helper.js +1 -1
  182. package/src/helpers/logger.js +1 -1
  183. package/src/helpers/metadata.js +1 -1
  184. package/src/helpers/patchHelper.js +1 -1
  185. package/src/helpers/patchHelpers.js +1 -1
  186. package/src/helpers/percy/Percy.js +1 -1
  187. package/src/helpers/percy/PercyBinary.js +1 -1
  188. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  189. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  190. package/src/helpers/percy/PercySDK.js +1 -1
  191. package/src/helpers/percy/index.js +1 -1
  192. package/src/helpers/percy/utils.js +1 -1
  193. package/src/helpers/performance/constants.js +1 -1
  194. package/src/helpers/performance/performance-tester.js +1 -1
  195. package/src/helpers/playwright-helper.js +1 -1
  196. package/src/helpers/processHelper.js +1 -1
  197. package/src/helpers/puppeteer-helper.js +1 -1
  198. package/src/helpers/request-spy.js +1 -1
  199. package/src/helpers/setKeepAlive.js +1 -1
  200. package/src/helpers/stackFrameUtils.js +1 -1
  201. package/src/helpers/test-observability/constants.js +1 -1
  202. package/src/helpers/test-observability/error-handler.js +1 -1
  203. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  204. package/src/helpers/test-observability/sessionHandler.js +1 -1
  205. package/src/helpers/test-observability/utils.js +1 -1
  206. package/src/helpers/test-orchestration/constants.js +1 -1
  207. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  208. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  209. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  210. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  211. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  212. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  213. package/src/helpers/testhub/constants.js +1 -1
  214. package/src/helpers/testhub/testhubHandler.js +1 -1
  215. package/src/helpers/testhub/utils.js +1 -1
  216. package/src/helpers/timeoutPromise.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x5e0851=a15_0x5641;(function(_0x378ddc,_0x3a936a){const _0x343e9f=a15_0x5641,_0x3aebfc=_0x378ddc();while(!![]){try{const _0x1ee5b8=parseInt(_0x343e9f(0x11f))/0x1+parseInt(_0x343e9f(0x10d))/0x2+-parseInt(_0x343e9f(0x15a))/0x3*(-parseInt(_0x343e9f(0x13f))/0x4)+parseInt(_0x343e9f(0x134))/0x5+-parseInt(_0x343e9f(0x157))/0x6*(parseInt(_0x343e9f(0x13d))/0x7)+-parseInt(_0x343e9f(0x12c))/0x8+-parseInt(_0x343e9f(0x150))/0x9;if(_0x1ee5b8===_0x3a936a)break;else _0x3aebfc['push'](_0x3aebfc['shift']());}catch(_0x164984){_0x3aebfc['push'](_0x3aebfc['shift']());}}}(a15_0x49c7,0xd86c2));function a15_0x5641(_0x3e4385,_0x4f34e6){const _0x49c75c=a15_0x49c7();return a15_0x5641=function(_0x5641c9,_0x3c4ad7){_0x5641c9=_0x5641c9-0x100;let _0x2d0c78=_0x49c75c[_0x5641c9];return _0x2d0c78;},a15_0x5641(_0x3e4385,_0x4f34e6);}function a15_0x49c7(){const _0x43293c=['allGrids','clusterName','argv','table','gtlMe','918306zFTvky','yWBmN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','3997263dTyRDt','INFO','ERROR','bstackAccesskey','Failed\x20to\x20list\x20resources!\x20Error:\x20','status','existsSync','push','gSidF','forEach','GET','usage','exit','username','1994776ybKFXo','tSdtX','grids','EGdce','rKrMU','init-not-called','password','djjJB','running','OEeqN','name','command','\x0aFound\x20the\x20following\x20grids:\x0a','https://','../../utils/instrumentationUtils','boolean','LjRul','RqIaj','548430pCHJDR','../../config/constants','options','stringify','PRKnJ','ArNMv','Browserstack','parse','stack','list-grids-called','builder','all-grids','iKDhR','10860024PEbobz','/packages/cli/get-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-all-grids','server-error','cluster-name','../../utils/utilityMethods','type','8153495xJDsLf','help','ErCDP','Bdimg','nZPzX','UFNgI','grid-id','desc','grid-name','7Gioovd','log','4FKoPBz','got','isbpQ','GJLdv','queued','uuid','statusCode','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','body','bstackUsername','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid','readFileSync','requestId','hOlEw','error','Vojqx','19007262cqfDGm','DXsEA'];a15_0x49c7=function(){return _0x43293c;};return a15_0x49c7();}const fs=require('fs'),got=require(a15_0x5e0851(0x140)),{table}=require(a15_0x5e0851(0x155)),{v4:uuidv4}=require(a15_0x5e0851(0x144)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5e0851(0x120)),{getCredentialsPath,getAuthHeader}=require(a15_0x5e0851(0x132)),{sendInstrumentationEvent}=require(a15_0x5e0851(0x11b));exports[a15_0x5e0851(0x118)]=a15_0x5e0851(0x10f),exports[a15_0x5e0851(0x13b)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x5e0851(0x129)]=function(_0x33c852){const _0x351895=a15_0x5e0851,_0x3111ea={};_0x3111ea['GJLdv']=_0x351895(0x146),_0x3111ea[_0x351895(0x10e)]=_0x351895(0x11c),_0x3111ea[_0x351895(0x158)]=_0x351895(0x135);const _0x5afde1=_0x3111ea,_0x39ae90={};_0x39ae90['description']=_0x5afde1[_0x351895(0x142)],_0x39ae90[_0x351895(0x133)]=_0x5afde1[_0x351895(0x10e)];const _0x1048f2={};return _0x1048f2[_0x351895(0x12a)]=_0x39ae90,_0x33c852[_0x351895(0x10a)](HELP_HEADER_MESSAGE['list'][_0x351895(0x14a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x351895(0x121)](_0x1048f2)[_0x351895(0x135)](_0x5afde1[_0x351895(0x158)])[_0x351895(0x154)];},exports['handler']=async function(_0x33fb17){const _0x1224e0=a15_0x5e0851,_0x1df652={'nZPzX':function(_0x115168){return _0x115168();},'hOlEw':function(_0x224d0e){return _0x224d0e();},'DXsEA':_0x1224e0(0x159),'gSidF':function(_0x5c0415,_0x4cb952,_0x3e4098,_0x2739db,_0x20c038,_0x4dfd99,_0x50dacb){return _0x5c0415(_0x4cb952,_0x3e4098,_0x2739db,_0x20c038,_0x4dfd99,_0x50dacb);},'isbpQ':_0x1224e0(0x128),'OEeqN':_0x1224e0(0x112),'ArNMv':function(_0x559303){return _0x559303();},'UFNgI':_0x1224e0(0x109),'ErCDP':function(_0x2d81ab,_0x23cf1e,_0x93c5b5){return _0x2d81ab(_0x23cf1e,_0x93c5b5);},'gtlMe':function(_0x5653d1,_0x4c107e){return _0x5653d1!==_0x4c107e;},'exFKm':function(_0x896d24,_0x47d731){return _0x896d24===_0x47d731;},'RqIaj':_0x1224e0(0x119),'rKrMU':_0x1224e0(0x13a),'LjRul':_0x1224e0(0x13c),'kzSkE':_0x1224e0(0x104),'djjJB':_0x1224e0(0x115),'iKDhR':_0x1224e0(0x143),'ezQme':_0x1224e0(0x131),'EGdce':function(_0x422b5e,_0x2f9234){return _0x422b5e(_0x2f9234);},'sxjGk':_0x1224e0(0x12e),'Vojqx':'unauthorised','PRKnJ':_0x1224e0(0x130),'Bdimg':function(_0x3e5d86,_0x230163,_0x5de803,_0x777af3,_0x1e9d8f,_0x27d00a,_0x319dd7){return _0x3e5d86(_0x230163,_0x5de803,_0x777af3,_0x1e9d8f,_0x27d00a,_0x319dd7);},'EiRxP':'unknown-error'};try{global_registry[_0x1224e0(0x14c)]=_0x1df652[_0x1224e0(0x138)](uuidv4);!fs[_0x1224e0(0x105)](_0x1df652[_0x1224e0(0x14d)](getCredentialsPath))&&(console[_0x1224e0(0x14e)](_0x1df652[_0x1224e0(0x151)]),await _0x1df652['gSidF'](sendInstrumentationEvent,_0x33fb17,_0x1df652[_0x1224e0(0x141)],messageTypes[_0x1224e0(0x101)],_0x1df652[_0x1224e0(0x116)],null,_0x33fb17),process[_0x1224e0(0x10b)](0x1));const _0x3ea6e6=JSON[_0x1224e0(0x126)](fs[_0x1224e0(0x14b)](_0x1df652[_0x1224e0(0x124)](getCredentialsPath)));let _0x55439d=_0x1224e0(0x11a)+AG_API_URL+_0x1224e0(0x12d);_0x33fb17[_0x1224e0(0x152)]&&(_0x55439d='https://'+AG_API_URL+_0x1224e0(0x12f));const _0x153e1b={'method':_0x1df652[_0x1224e0(0x139)],'headers':_0x1df652[_0x1224e0(0x136)](getAuthHeader,_0x3ea6e6[_0x1224e0(0x125)][_0x1224e0(0x10c)],_0x3ea6e6['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x1224e0(0x148)]=_0x3ea6e6[_0x1224e0(0x125)][_0x1224e0(0x10c)],global_registry[_0x1224e0(0x102)]=_0x3ea6e6[_0x1224e0(0x125)][_0x1224e0(0x113)],_0x1df652[_0x1224e0(0x107)](sendInstrumentationEvent,_0x33fb17,_0x1df652[_0x1224e0(0x141)],messageTypes[_0x1224e0(0x100)],null,null,_0x33fb17);const _0x521801=await _0x1df652[_0x1224e0(0x136)](got,_0x55439d,_0x153e1b);if(_0x1df652[_0x1224e0(0x156)](_0x521801,null)&&_0x1df652[_0x1224e0(0x156)](_0x521801,undefined)&&_0x1df652['exFKm'](_0x521801[_0x1224e0(0x145)],0xc8)){const _0x4bdc57=JSON['parse'](_0x521801[_0x1224e0(0x147)]);console[_0x1224e0(0x13e)](_0x1df652[_0x1224e0(0x11e)]);const _0x1429aa=[];_0x1429aa[_0x1224e0(0x106)]([_0x1df652[_0x1224e0(0x111)],_0x1df652[_0x1224e0(0x11d)],_0x1df652['kzSkE'],_0x1df652[_0x1224e0(0x114)],_0x1df652[_0x1224e0(0x12b)],_0x1df652['ezQme']]),_0x4bdc57[_0x1224e0(0x108)](_0x454b7b=>{const _0x30d29f=_0x1224e0;_0x1429aa[_0x30d29f(0x106)]([_0x454b7b['id'],_0x454b7b[_0x30d29f(0x117)],_0x454b7b['status'],_0x454b7b[_0x30d29f(0x115)],_0x454b7b[_0x30d29f(0x143)],_0x454b7b[_0x30d29f(0x153)]]);}),console[_0x1224e0(0x13e)](_0x1df652[_0x1224e0(0x110)](table,_0x1429aa)),process[_0x1224e0(0x10b)](0x0);}_0x1df652['exFKm'](_0x521801['statusCode'],0x191)&&(console['error'](_0x1df652['sxjGk']),await _0x1df652[_0x1224e0(0x107)](sendInstrumentationEvent,_0x33fb17,_0x1df652['isbpQ'],messageTypes[_0x1224e0(0x101)],_0x1df652[_0x1224e0(0x14f)],null,_0x33fb17),process['exit'](0x1)),console[_0x1224e0(0x14e)](_0x1224e0(0x149)+JSON[_0x1224e0(0x122)](_0x521801)),await _0x1df652[_0x1224e0(0x107)](sendInstrumentationEvent,_0x33fb17,_0x1df652[_0x1224e0(0x141)],messageTypes[_0x1224e0(0x101)],_0x1df652[_0x1224e0(0x123)],_0x521801,_0x33fb17),process['exit'](0x1);}catch(_0x455708){console[_0x1224e0(0x14e)](_0x1224e0(0x103)+_0x455708[_0x1224e0(0x127)]),await _0x1df652[_0x1224e0(0x137)](sendInstrumentationEvent,_0x33fb17,_0x1df652[_0x1224e0(0x141)],messageTypes[_0x1224e0(0x101)],_0x1df652['EiRxP'],_0x455708,_0x33fb17),process[_0x1224e0(0x10b)](0x1);}};
1
+ const a15_0x1bc779=a15_0x45fe;function a15_0x45fe(_0x2b5c31,_0x14856e){const _0x13fb67=a15_0x13fb();return a15_0x45fe=function(_0x45fe47,_0x2f91b7){_0x45fe47=_0x45fe47-0x102;let _0x40c2d6=_0x13fb67[_0x45fe47];return _0x40c2d6;},a15_0x45fe(_0x2b5c31,_0x14856e);}(function(_0x54c782,_0x50987f){const _0x4d6b62=a15_0x45fe,_0x3dd8ec=_0x54c782();while(!![]){try{const _0x4b8d10=-parseInt(_0x4d6b62(0x14f))/0x1*(parseInt(_0x4d6b62(0x150))/0x2)+parseInt(_0x4d6b62(0x13e))/0x3+-parseInt(_0x4d6b62(0x154))/0x4+parseInt(_0x4d6b62(0x106))/0x5*(-parseInt(_0x4d6b62(0x14c))/0x6)+-parseInt(_0x4d6b62(0x127))/0x7+parseInt(_0x4d6b62(0x12c))/0x8+parseInt(_0x4d6b62(0x13a))/0x9;if(_0x4b8d10===_0x50987f)break;else _0x3dd8ec['push'](_0x3dd8ec['shift']());}catch(_0x58ae8f){_0x3dd8ec['push'](_0x3dd8ec['shift']());}}}(a15_0x13fb,0x66bad));const fs=require('fs'),got=require('got'),{table}=require(a15_0x1bc779(0x123)),{v4:uuidv4}=require(a15_0x1bc779(0x138)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1bc779(0x112)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x1bc779(0x102));function a15_0x13fb(){const _0x254568=['grid-id','log','table','Browserstack','ZWlnQ','wbrVk','5649938DnWyLx','command','OrpFd','boolean','NQPKJ','5190400cOggLf','iYcaC','parse','exit','XRODh','cluster-name','list-grids-called','init-not-called','username','server-error','ZLzce','queued','uuid','requestId','15567336CKvrfV','LCfnp','INTAL','description','598818bJytmP','FUslz','https://','help','body','password','push','list','epilogue','grids','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','TSJse','oDylf','argv','36tRIGMh','all-grids','existsSync','1150UEtTgD','622AiUUhx','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','grid-name','ERROR','1348852gCSFpM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/instrumentationUtils','running','error','INFO','546110muzdSD','DviGL','unknown-error','vvlOe','status','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','/packages/cli/get-grids','HymPA','bstackUsername','gEmnK','builder','unauthorised','../../config/constants','EKtOA','WbUqV','allGrids','stringify','options','/packages/cli/get-all-grids','OAmjL','stack','QrItY','AxfMx','bstackAccesskey','statusCode','rcOhP','HTUzy'];a15_0x13fb=function(){return _0x254568;};return a15_0x13fb();}exports[a15_0x1bc779(0x128)]=a15_0x1bc779(0x147),exports['desc']=a15_0x1bc779(0x151),exports[a15_0x1bc779(0x110)]=function(_0x3bbb68){const _0x4c50c4=a15_0x1bc779,_0x1594ca={};_0x1594ca[_0x4c50c4(0x12d)]=_0x4c50c4(0x10b),_0x1594ca[_0x4c50c4(0x11b)]=_0x4c50c4(0x12a),_0x1594ca[_0x4c50c4(0x13b)]=_0x4c50c4(0x141);const _0x253124=_0x1594ca,_0x534c1b={};_0x534c1b[_0x4c50c4(0x13d)]=_0x253124['iYcaC'],_0x534c1b['type']=_0x253124[_0x4c50c4(0x11b)];const _0x3685e4={};return _0x3685e4[_0x4c50c4(0x14d)]=_0x534c1b,_0x3bbb68['usage'](HELP_HEADER_MESSAGE[_0x4c50c4(0x145)]['grid'])[_0x4c50c4(0x146)](HELP_FOOTER_MESSAGE)[_0x4c50c4(0x117)](_0x3685e4)[_0x4c50c4(0x141)](_0x253124[_0x4c50c4(0x13b)])[_0x4c50c4(0x14b)];},exports['handler']=async function(_0x551007){const _0x33d0c1=a15_0x1bc779,_0x38344b={'wbrVk':function(_0x4f4a5e){return _0x4f4a5e();},'zuTmb':function(_0x18c260){return _0x18c260();},'ZLzce':_0x33d0c1(0x148),'TSJse':function(_0x1b5a05,_0x1ecd29,_0x3e4a24,_0x4c8d74,_0x50877c,_0x3c87c7,_0x2be09f){return _0x1b5a05(_0x1ecd29,_0x3e4a24,_0x4c8d74,_0x50877c,_0x3c87c7,_0x2be09f);},'EKtOA':_0x33d0c1(0x132),'PDtoT':_0x33d0c1(0x133),'bYRsi':'GET','AxfMx':function(_0x4bd027,_0x586e78,_0x52406e){return _0x4bd027(_0x586e78,_0x52406e);},'gEmnK':function(_0x80f0e2,_0x75b987,_0x4e46f3,_0x3e06d7,_0x28c1f1,_0x1798e3,_0x5361fd){return _0x80f0e2(_0x75b987,_0x4e46f3,_0x3e06d7,_0x28c1f1,_0x1798e3,_0x5361fd);},'ZWlnQ':function(_0x5ac49a,_0x319ca8,_0x566c1c){return _0x5ac49a(_0x319ca8,_0x566c1c);},'QEZZi':function(_0x12d2ab,_0x375d51){return _0x12d2ab!==_0x375d51;},'oDylf':function(_0x353c40,_0x3f1d30){return _0x353c40!==_0x3f1d30;},'NQPKJ':function(_0x20a1bf,_0x6f84fa){return _0x20a1bf===_0x6f84fa;},'OAmjL':'\x0aFound\x20the\x20following\x20grids:\x0a','XRODh':_0x33d0c1(0x121),'HymPA':_0x33d0c1(0x152),'WbUqV':_0x33d0c1(0x10a),'HTUzy':_0x33d0c1(0x103),'rcOhP':_0x33d0c1(0x137),'OrpFd':_0x33d0c1(0x131),'INTAL':function(_0x252a62,_0x1b7088){return _0x252a62(_0x1b7088);},'vvlOe':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FUslz':_0x33d0c1(0x111),'ekkLu':_0x33d0c1(0x135),'DviGL':_0x33d0c1(0x108)};try{global_registry[_0x33d0c1(0x139)]=_0x38344b['wbrVk'](uuidv4);!fs[_0x33d0c1(0x14e)](_0x38344b['zuTmb'](getCredentialsPath))&&(console[_0x33d0c1(0x104)](_0x38344b[_0x33d0c1(0x136)]),await _0x38344b[_0x33d0c1(0x149)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes[_0x33d0c1(0x153)],_0x38344b['PDtoT'],null,_0x551007),process[_0x33d0c1(0x12f)](0x1));const _0x131715=JSON[_0x33d0c1(0x12e)](fs['readFileSync'](_0x38344b[_0x33d0c1(0x126)](getCredentialsPath)));let _0x4baa6b=_0x33d0c1(0x140)+AG_API_URL+_0x33d0c1(0x10c);_0x551007[_0x33d0c1(0x115)]&&(_0x4baa6b=_0x33d0c1(0x140)+AG_API_URL+_0x33d0c1(0x118));const _0x58500b={'method':_0x38344b['bYRsi'],'headers':_0x38344b[_0x33d0c1(0x11c)](getAuthHeader,_0x131715['Browserstack'][_0x33d0c1(0x134)],_0x131715[_0x33d0c1(0x124)][_0x33d0c1(0x143)]),'throwHttpErrors':![]};global_registry[_0x33d0c1(0x10e)]=_0x131715[_0x33d0c1(0x124)][_0x33d0c1(0x134)],global_registry[_0x33d0c1(0x11d)]=_0x131715[_0x33d0c1(0x124)][_0x33d0c1(0x143)],_0x38344b[_0x33d0c1(0x10f)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes[_0x33d0c1(0x105)],null,null,_0x551007);const _0x9041e2=await _0x38344b[_0x33d0c1(0x125)](got,_0x4baa6b,_0x58500b);if(_0x38344b['QEZZi'](_0x9041e2,null)&&_0x38344b[_0x33d0c1(0x14a)](_0x9041e2,undefined)&&_0x38344b[_0x33d0c1(0x12b)](_0x9041e2[_0x33d0c1(0x11e)],0xc8)){const _0x2daad9=JSON[_0x33d0c1(0x12e)](_0x9041e2[_0x33d0c1(0x142)]);console['log'](_0x38344b[_0x33d0c1(0x119)]);const _0x257fad=[];_0x257fad[_0x33d0c1(0x144)]([_0x38344b[_0x33d0c1(0x130)],_0x38344b[_0x33d0c1(0x10d)],_0x38344b[_0x33d0c1(0x114)],_0x38344b[_0x33d0c1(0x120)],_0x38344b[_0x33d0c1(0x11f)],_0x38344b[_0x33d0c1(0x129)]]),_0x2daad9['forEach'](_0x579d8c=>{const _0x318a94=_0x33d0c1;_0x257fad[_0x318a94(0x144)]([_0x579d8c['id'],_0x579d8c['name'],_0x579d8c[_0x318a94(0x10a)],_0x579d8c[_0x318a94(0x103)],_0x579d8c[_0x318a94(0x137)],_0x579d8c['clusterName']]);}),console[_0x33d0c1(0x122)](_0x38344b[_0x33d0c1(0x13c)](table,_0x257fad)),process[_0x33d0c1(0x12f)](0x0);}_0x38344b[_0x33d0c1(0x12b)](_0x9041e2[_0x33d0c1(0x11e)],0x191)&&(console[_0x33d0c1(0x104)](_0x38344b[_0x33d0c1(0x109)]),await _0x38344b[_0x33d0c1(0x149)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes[_0x33d0c1(0x153)],_0x38344b[_0x33d0c1(0x13f)],null,_0x551007),process[_0x33d0c1(0x12f)](0x1)),console[_0x33d0c1(0x104)](_0x33d0c1(0x155)+JSON[_0x33d0c1(0x116)](_0x9041e2)),await _0x38344b[_0x33d0c1(0x149)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes['ERROR'],_0x38344b['ekkLu'],_0x9041e2,_0x551007),process[_0x33d0c1(0x12f)](0x1);}catch(_0xb13720){console[_0x33d0c1(0x104)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0xb13720[_0x33d0c1(0x11a)]),await _0x38344b[_0x33d0c1(0x149)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes[_0x33d0c1(0x153)],_0x38344b[_0x33d0c1(0x107)],_0xb13720,_0x551007),process[_0x33d0c1(0x12f)](0x1);}};
@@ -1 +1 @@
1
- const a16_0xa6bea=a16_0x19ce;function a16_0x19ce(_0x52a0ac,_0x305198){const _0x14db00=a16_0x14db();return a16_0x19ce=function(_0x19ce2a,_0x464715){_0x19ce2a=_0x19ce2a-0x9c;let _0x3e2998=_0x14db00[_0x19ce2a];return _0x3e2998;},a16_0x19ce(_0x52a0ac,_0x305198);}function a16_0x14db(){const _0x251564=['15656245HpefjF','pre-check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','13914297inXeAj','5lyXwvs','482gBStpd','1791079mhZSwR','strict','../config/constants','smRsx','XpMaf','recommendCommands','help','pre_check','2096FBvfKe','commandDir','1608524MjAtoV','16188iIwCeJ','4674792TUTUtU','demandCommand','10dyMTCY','precheck_commands','usage','epilogue','handler','32151IQaJvb'];a16_0x14db=function(){return _0x251564;};return a16_0x14db();}(function(_0x206455,_0x160884){const _0x5afbf5=a16_0x19ce,_0x449a66=_0x206455();while(!![]){try{const _0x46f8fc=-parseInt(_0x5afbf5(0x9f))/0x1+-parseInt(_0x5afbf5(0x9e))/0x2*(-parseInt(_0x5afbf5(0xaa))/0x3)+-parseInt(_0x5afbf5(0xa9))/0x4*(parseInt(_0x5afbf5(0x9d))/0x5)+parseInt(_0x5afbf5(0xab))/0x6+parseInt(_0x5afbf5(0xb2))/0x7*(parseInt(_0x5afbf5(0xa7))/0x8)+-parseInt(_0x5afbf5(0x9c))/0x9*(parseInt(_0x5afbf5(0xad))/0xa)+parseInt(_0x5afbf5(0xb3))/0xb;if(_0x46f8fc===_0x160884)break;else _0x449a66['push'](_0x449a66['shift']());}catch(_0xdf7e16){_0x449a66['push'](_0x449a66['shift']());}}}(a16_0x14db,0xec14a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xa6bea(0xa1));exports['command']=a16_0xa6bea(0xb4),exports['desc']=a16_0xa6bea(0xb5),exports['builder']=function(_0x146ca1){const _0x224d24=a16_0xa6bea,_0x2c897c={};_0x2c897c[_0x224d24(0xa2)]=_0x224d24(0xae),_0x2c897c[_0x224d24(0xa3)]=_0x224d24(0xa5);const _0x30c760=_0x2c897c;return _0x146ca1[_0x224d24(0xaf)](HELP_HEADER_MESSAGE[_0x224d24(0xa6)])[_0x224d24(0xb0)](HELP_FOOTER_MESSAGE)[_0x224d24(0xa8)](_0x30c760[_0x224d24(0xa2)])[_0x224d24(0xac)]()[_0x224d24(0xa4)]()[_0x224d24(0xa0)]()[_0x224d24(0xa5)](_0x30c760[_0x224d24(0xa3)]);},exports[a16_0xa6bea(0xb1)]=function(_0x5b6ae6){};
1
+ const a16_0x26348e=a16_0x5895;function a16_0x2459(){const _0x30ed82=['precheck_commands','1846712ppLILq','handler','748419plwvrj','strict','1798794TMacFh','vCCYg','epilogue','command','pre-check','recommendCommands','dxTgt','11160280msClgy','3662400VMgHwV','383089JituHG','56YPucXS','3scpeKx','1185278AjNebF','builder','help','9ZdzAth','commandDir','pre_check'];a16_0x2459=function(){return _0x30ed82;};return a16_0x2459();}(function(_0x396585,_0x5b3bac){const _0x51ddfc=a16_0x5895,_0x364d3d=_0x396585();while(!![]){try{const _0x3b125c=-parseInt(_0x51ddfc(0x104))/0x1+-parseInt(_0x51ddfc(0xfb))/0x2*(-parseInt(_0x51ddfc(0xfa))/0x3)+parseInt(_0x51ddfc(0x102))/0x4+-parseInt(_0x51ddfc(0xf7))/0x5+-parseInt(_0x51ddfc(0x106))/0x6+-parseInt(_0x51ddfc(0xf8))/0x7*(-parseInt(_0x51ddfc(0xf9))/0x8)+parseInt(_0x51ddfc(0xfe))/0x9*(parseInt(_0x51ddfc(0xf6))/0xa);if(_0x3b125c===_0x5b3bac)break;else _0x364d3d['push'](_0x364d3d['shift']());}catch(_0x3757d9){_0x364d3d['push'](_0x364d3d['shift']());}}}(a16_0x2459,0xbca80));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x5895(_0xaf1ecf,_0xb09d56){const _0x245925=a16_0x2459();return a16_0x5895=function(_0x589571,_0x37698c){_0x589571=_0x589571-0xf3;let _0x519578=_0x245925[_0x589571];return _0x519578;},a16_0x5895(_0xaf1ecf,_0xb09d56);}exports[a16_0x26348e(0x109)]=a16_0x26348e(0xf3),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x26348e(0xfc)]=function(_0x1f7d7c){const _0x4c5df5=a16_0x26348e,_0x334ed5={};_0x334ed5[_0x4c5df5(0xf5)]=_0x4c5df5(0x101),_0x334ed5[_0x4c5df5(0x107)]=_0x4c5df5(0xfd);const _0x2e684d=_0x334ed5;return _0x1f7d7c['usage'](HELP_HEADER_MESSAGE[_0x4c5df5(0x100)])[_0x4c5df5(0x108)](HELP_FOOTER_MESSAGE)[_0x4c5df5(0xff)](_0x2e684d[_0x4c5df5(0xf5)])['demandCommand']()[_0x4c5df5(0xf4)]()[_0x4c5df5(0x105)]()[_0x4c5df5(0xfd)](_0x2e684d[_0x4c5df5(0x107)]);},exports[a16_0x26348e(0x103)]=function(_0x1ebf83){};
@@ -1 +1 @@
1
- const a17_0x37b7b2=a17_0x4218;(function(_0x6c62a8,_0x9ee1da){const _0x45efbb=a17_0x4218,_0x25fed1=_0x6c62a8();while(!![]){try{const _0xeb13f9=-parseInt(_0x45efbb(0x1ea))/0x1+parseInt(_0x45efbb(0x2ba))/0x2*(parseInt(_0x45efbb(0x2c3))/0x3)+-parseInt(_0x45efbb(0x210))/0x4*(parseInt(_0x45efbb(0x290))/0x5)+-parseInt(_0x45efbb(0x212))/0x6+parseInt(_0x45efbb(0x298))/0x7+-parseInt(_0x45efbb(0x1e4))/0x8*(-parseInt(_0x45efbb(0x26b))/0x9)+parseInt(_0x45efbb(0x1f7))/0xa*(-parseInt(_0x45efbb(0x22b))/0xb);if(_0xeb13f9===_0x9ee1da)break;else _0x25fed1['push'](_0x25fed1['shift']());}catch(_0x36798e){_0x25fed1['push'](_0x25fed1['shift']());}}}(a17_0x41f1,0xdce1b));const fs=require('fs'),ws=require('ws'),got=require(a17_0x37b7b2(0x218)),{v4:uuidv4}=require(a17_0x37b7b2(0x1e3)),ReconnectingWebSocket=require(a17_0x37b7b2(0x229)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x37b7b2(0x1ed)),{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_0x37b7b2(0x256)),{getCloudProviderObjectWithOutInit}=require(a17_0x37b7b2(0x2c4)),webSocketUtils=require(a17_0x37b7b2(0x29d)),{sendInstrumentationEvent}=require(a17_0x37b7b2(0x274));exports['command']='grid',exports['desc']=a17_0x37b7b2(0x293),exports[a17_0x37b7b2(0x203)]=function(_0x2333ce){const _0x709de6=a17_0x37b7b2,_0x42da92={};_0x42da92[_0x709de6(0x270)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x42da92[_0x709de6(0x226)]=_0x709de6(0x247),_0x42da92[_0x709de6(0x24a)]=_0x709de6(0x2d7),_0x42da92[_0x709de6(0x2a0)]=_0x709de6(0x2b7),_0x42da92[_0x709de6(0x271)]=_0x709de6(0x254),_0x42da92[_0x709de6(0x1fc)]=_0x709de6(0x223);const _0x1034cc=_0x42da92,_0x4ca511={};_0x4ca511[_0x709de6(0x26d)]=_0x1034cc['xOfGs'],_0x4ca511[_0x709de6(0x2d2)]=_0x1034cc[_0x709de6(0x226)];const _0x44f7ab={};_0x44f7ab[_0x709de6(0x26d)]=_0x1034cc[_0x709de6(0x24a)],_0x44f7ab[_0x709de6(0x2d2)]=_0x1034cc['WgVVR'];const _0x4b1991={};_0x4b1991[_0x709de6(0x26d)]=_0x1034cc[_0x709de6(0x2a0)],_0x4b1991[_0x709de6(0x2d2)]=_0x1034cc[_0x709de6(0x226)];const _0x1bfed2={};_0x1bfed2[_0x709de6(0x26d)]=_0x1034cc['zGRdT'],_0x1bfed2[_0x709de6(0x2d2)]=_0x1034cc[_0x709de6(0x226)];const _0x1e7b63={};return _0x1e7b63[_0x709de6(0x2b0)]=_0x4ca511,_0x1e7b63[_0x709de6(0x25a)]=_0x44f7ab,_0x1e7b63['region']=_0x4b1991,_0x1e7b63[_0x709de6(0x260)]=_0x1bfed2,_0x2333ce[_0x709de6(0x252)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x709de6(0x28e)](_0x1e7b63)[_0x709de6(0x223)](_0x1034cc['yQjBA'])[_0x709de6(0x24b)];};async function inputValidation(_0x14eb54,_0x4d98a7){const _0x34af35=a17_0x37b7b2,_0x5d01b9={'dYUOP':_0x34af35(0x2ae),'iLtPH':_0x34af35(0x25a),'pMqKO':_0x34af35(0x2a2),'krCUx':_0x34af35(0x213),'MMTCW':_0x34af35(0x2d6),'UEuhm':_0x34af35(0x247),'NFXxV':_0x34af35(0x2d7),'WJKnw':_0x34af35(0x2b7),'oRcdL':_0x34af35(0x254),'RPlTi':'help','CFHhg':'is\x20already\x20present','axduH':'will\x20be\x20created','chzll':function(_0x59a985,_0x1734e5){return _0x59a985+_0x1734e5;},'jpxot':'Success','zQNuY':_0x34af35(0x2ca),'vAOyv':function(_0x2e73a1,_0x150786){return _0x2e73a1||_0x150786;},'ZbRtQ':_0x34af35(0x2b0),'PrKsF':_0x34af35(0x26c),'DsIgv':_0x34af35(0x277),'oNXDI':function(_0x27f946,_0x3355b4){return _0x27f946!==_0x3355b4;},'vmCre':_0x34af35(0x288),'MlMUj':_0x34af35(0x261),'Lcydb':function(_0x580ad1,_0x5671c0){return _0x580ad1===_0x5671c0;},'LqMkK':'xGOCb','EGafg':function(_0x546fa6,_0x2697c9){return _0x546fa6===_0x2697c9;},'qIhuh':_0x34af35(0x291),'yYPNA':function(_0x43aefd,_0x521e53){return _0x43aefd===_0x521e53;},'NGRDq':_0x34af35(0x200),'wmgbZ':function(_0x401ef3,_0x2e156c){return _0x401ef3===_0x2e156c;},'KSlQP':'EuNie','wmwtC':function(_0xd40238,_0xf7507f){return _0xd40238>_0xf7507f;},'hXHwo':_0x34af35(0x1eb),'OEHdr':function(_0x947188,_0x443f50,_0x19d493,_0x522aa2,_0x139b3a,_0x1c3cbb,_0x24a585,_0x434060){return _0x947188(_0x443f50,_0x19d493,_0x522aa2,_0x139b3a,_0x1c3cbb,_0x24a585,_0x434060);},'AFWeo':_0x34af35(0x248),'fjNkN':_0x34af35(0x292),'gKksn':function(_0x1bad57,_0x57b50f){return _0x1bad57===_0x57b50f;},'ysbTB':_0x34af35(0x26a),'smMvj':_0x34af35(0x21f),'QkhrN':function(_0x10ba92,_0x4455b5,_0x1c9a6d,_0x3a00c7,_0x74960d,_0x2981f6,_0xfe3af0,_0x186361){return _0x10ba92(_0x4455b5,_0x1c9a6d,_0x3a00c7,_0x74960d,_0x2981f6,_0xfe3af0,_0x186361);},'XhDbI':_0x34af35(0x22a),'VnIZj':_0x34af35(0x27b),'sladi':_0x34af35(0x2ad),'EGalG':_0x34af35(0x2c6),'njrMg':function(_0x574f5b,_0x2cc3d3,_0x2f918f){return _0x574f5b(_0x2cc3d3,_0x2f918f);},'rzuFd':function(_0x2eb2a6,_0x29149d,_0x1d616b,_0x1f445a,_0x2231bc,_0x21485c){return _0x2eb2a6(_0x29149d,_0x1d616b,_0x1f445a,_0x2231bc,_0x21485c);},'ROJhH':_0x34af35(0x245),'HtsjF':_0x34af35(0x260),'fThEP':function(_0x2dfb3a,_0xab5468){return _0x2dfb3a===_0xab5468;},'NZdJm':'ElRoX','LPqVk':function(_0x459869,_0x17a350){return _0x459869(_0x17a350);},'tAmcs':_0x34af35(0x278),'ZuctQ':_0x34af35(0x231),'VOxJy':_0x34af35(0x23b),'TxNYn':function(_0x369be3,_0x238537){return _0x369be3===_0x238537;},'qEOJa':'SPLfI','yrzDf':_0x34af35(0x281),'ChRuk':_0x34af35(0x233),'tHCLD':function(_0x45d1cd,_0x5dc226){return _0x45d1cd!==_0x5dc226;},'CrXaN':_0x34af35(0x258),'mnTFv':_0x34af35(0x29a),'xCiUv':_0x34af35(0x224),'SWzYf':_0x34af35(0x20e),'pBnfJ':function(_0x2b2607,_0x555cd1,_0x4fad87,_0x41cb51,_0x53768a,_0x1ba345,_0x5cf28d,_0x5d5ad9){return _0x2b2607(_0x555cd1,_0x4fad87,_0x41cb51,_0x53768a,_0x1ba345,_0x5cf28d,_0x5d5ad9);}};let _0x3447a6;try{if(_0x5d01b9[_0x34af35(0x1fb)](_0x5d01b9[_0x34af35(0x2c2)],_0x5d01b9[_0x34af35(0x20b)])){if(_0x14eb54[_0x34af35(0x282)]||_0x14eb54[_0x34af35(0x240)]||_0x14eb54['region']){if(_0x5d01b9['Lcydb'](_0x5d01b9[_0x34af35(0x2a1)],_0x5d01b9[_0x34af35(0x2a1)])){const _0xa6c201=[];!_0x14eb54[_0x34af35(0x282)]&&(_0x5d01b9['EGafg'](_0x5d01b9[_0x34af35(0x25d)],_0x5d01b9[_0x34af35(0x25d)])?_0xa6c201[_0x34af35(0x238)](_0x5d01b9[_0x34af35(0x1f8)]):(_0x214376[_0x34af35(0x26c)](_0x5d01b9[_0x34af35(0x251)]),_0x4aa902[_0x34af35(0x21e)](0x1)));;!_0x14eb54[_0x34af35(0x240)]&&(_0x5d01b9[_0x34af35(0x1ef)](_0x5d01b9[_0x34af35(0x1e5)],_0x5d01b9[_0x34af35(0x1e5)])?_0xa6c201['push'](_0x5d01b9[_0x34af35(0x275)]):_0x386649[_0x34af35(0x238)](_0x5d01b9[_0x34af35(0x275)]));;!_0x14eb54[_0x34af35(0x277)]&&(_0x5d01b9[_0x34af35(0x20c)](_0x5d01b9['KSlQP'],_0x5d01b9[_0x34af35(0x1ff)])?_0xa6c201[_0x34af35(0x238)](_0x5d01b9[_0x34af35(0x2dc)]):_0x4c39e7['error'](_0x34af35(0x2b3)+_0x18ec51['error'][_0x34af35(0x269)]));;_0x5d01b9[_0x34af35(0x286)](_0xa6c201[_0x34af35(0x208)],0x0)&&(_0x5d01b9[_0x34af35(0x20c)](_0x5d01b9[_0x34af35(0x2d9)],_0x5d01b9['hXHwo'])?(_0x3447a6=_0x34af35(0x27d)+_0xa6c201[_0x34af35(0x28d)](',\x20')+_0x34af35(0x21c),await _0x5d01b9[_0x34af35(0x23c)](reportToGalactusAndSendToEDS,_0x14eb54,_0x4d98a7,_0x3447a6,messageTypes[_0x34af35(0x2b4)],_0x5d01b9[_0x34af35(0x2d1)],_0x5d01b9['fjNkN'],_0x5d01b9[_0x34af35(0x221)]),logger[_0x34af35(0x26c)](_0x3447a6),process['exit'](0x1)):_0x2cc241=_0x262ca5);if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x34af35(0x1ec)](_0x14eb54[_0x34af35(0x240)]['toLowerCase']())){if(_0x5d01b9[_0x34af35(0x284)](_0x5d01b9[_0x34af35(0x2c5)],_0x5d01b9[_0x34af35(0x2c5)]))_0x3447a6=_0x5d01b9[_0x34af35(0x25b)],await _0x5d01b9[_0x34af35(0x25e)](reportToGalactusAndSendToEDS,_0x14eb54,_0x4d98a7,_0x3447a6,messageTypes[_0x34af35(0x2b4)],_0x5d01b9['AFWeo'],_0x5d01b9['XhDbI'],_0x5d01b9['PrKsF']),logger[_0x34af35(0x26c)](_0x3447a6),!_0x14eb54[_0x34af35(0x240)]&&(_0x5d01b9[_0x34af35(0x20c)](_0x5d01b9[_0x34af35(0x26e)],_0x5d01b9[_0x34af35(0x26e)])?(logger[_0x34af35(0x28b)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x34af35(0x2be)]+'\x20'),_0x14eb54[_0x34af35(0x240)]=DEFAULT_CLUSTER_DETAILS[_0x34af35(0x2be)]):(_0x5a9834+=_0x5d01b9['pMqKO'],_0x33691d+=_0x34af35(0x215)+(_0x42666f[_0x34af35(0x25c)]||_0x5d01b9[_0x34af35(0x219)])+'\x0a',_0x3bfece+=_0x34af35(0x29c)+(_0x150f7f[_0x34af35(0x1f4)]||_0x5d01b9[_0x34af35(0x219)])+'\x0a',_0x14b712+='\x20\x20Stack:\x20'+(_0x50e966[_0x34af35(0x269)]||_0x5d01b9[_0x34af35(0x219)])+'\x0a'));else{const _0x99f491={};_0x99f491['description']=_0x5d01b9['MMTCW'],_0x99f491['type']=_0x5d01b9[_0x34af35(0x20f)];const _0x2910ec={};_0x2910ec[_0x34af35(0x26d)]=_0x5d01b9[_0x34af35(0x232)],_0x2910ec[_0x34af35(0x2d2)]=_0x5d01b9[_0x34af35(0x20f)];const _0x5bcc46={};_0x5bcc46[_0x34af35(0x26d)]=_0x5d01b9[_0x34af35(0x2ab)],_0x5bcc46['type']=_0x5d01b9[_0x34af35(0x20f)];const _0x6c5492={};_0x6c5492[_0x34af35(0x26d)]=_0x5d01b9[_0x34af35(0x28a)],_0x6c5492[_0x34af35(0x2d2)]=_0x5d01b9['UEuhm'];const _0x260028={};return _0x260028[_0x34af35(0x2b0)]=_0x99f491,_0x260028[_0x34af35(0x25a)]=_0x2910ec,_0x260028[_0x34af35(0x277)]=_0x5bcc46,_0x260028[_0x34af35(0x260)]=_0x6c5492,_0x475483['usage'](_0x1d4324[_0x34af35(0x2cd)])['epilogue'](_0x48cb06)[_0x34af35(0x28e)](_0x260028)['help'](_0x5d01b9[_0x34af35(0x2c1)])[_0x34af35(0x24b)];}}global_registry['clusterName']=_0x14eb54[_0x34af35(0x282)],global_registry[_0x34af35(0x240)]=_0x14eb54[_0x34af35(0x240)],global_registry[_0x34af35(0x2d8)]=_0x14eb54[_0x34af35(0x277)];}else _0x4c270c+=_0x34af35(0x280)+_0x2032d4[_0x34af35(0x282)]+'\x20'+(_0x398950?_0x5d01b9[_0x34af35(0x2bb)]:_0x5d01b9['axduH'])+'\x0a\x0a';}else{if(_0x14eb54[_0x34af35(0x2c8)]){if(_0x5d01b9[_0x34af35(0x1fb)](_0x5d01b9['sladi'],_0x5d01b9['sladi'])){const {header:_0x2a42dd,response:_0x3d19cc}=_0x3b586f,{status:_0x22e5b5,data:_0x5d5316,error:_0x4914da}=_0x3d19cc;_0x380a3c+=_0x2a42dd+'\x20#'+_0x5d01b9[_0x34af35(0x263)](_0xa43992,0x1)+'\x0a',_0x1f00be+=_0x34af35(0x21a)+(_0x22e5b5?_0x5d01b9['jpxot']:_0x5d01b9[_0x34af35(0x297)])+'\x0a',_0x1fd71e+=_0x34af35(0x287)+_0x5d01b9[_0x34af35(0x24d)](_0x5d5316,_0x5d01b9[_0x34af35(0x219)])+'\x0a',_0x4914da&&(_0x236098+=_0x5d01b9[_0x34af35(0x1fe)],_0x70fc1d+='\x20\x20Message:\x20'+(_0x4914da[_0x34af35(0x25c)]||_0x5d01b9['krCUx'])+'\x0a',_0x479390+=_0x34af35(0x29c)+(_0x4914da[_0x34af35(0x1f4)]||_0x5d01b9['krCUx'])+'\x0a',_0x478202+=_0x34af35(0x2a9)+(_0x4914da[_0x34af35(0x269)]||_0x5d01b9[_0x34af35(0x219)])+'\x0a'),_0x40a309+='\x0a\x0a';}else{global_registry[_0x34af35(0x2c8)]=_0x14eb54['gridProfile'],logger[_0x34af35(0x241)](_0x34af35(0x2aa)+_0x14eb54['gridProfile']);const _0x533f75=_0x34af35(0x21d)+AG_API_URL+_0x34af35(0x225),_0x5e66b6={};_0x5e66b6[_0x34af35(0x27e)]=_0x5d01b9[_0x34af35(0x211)],_0x5e66b6[_0x34af35(0x20a)]=global_registry[_0x34af35(0x230)],_0x5e66b6[_0x34af35(0x2a4)]=![];const _0x506e78=_0x5e66b6,_0x3aa046=await _0x5d01b9[_0x34af35(0x216)](got,_0x533f75,_0x506e78),_0x338cff=await _0x5d01b9[_0x34af35(0x262)](responseValidation,_0x3aa046,_0x5d01b9[_0x34af35(0x2da)],_0x5d01b9['HtsjF'],_0x14eb54,_0x4d98a7);let _0x1b5824={};if(_0x5d01b9[_0x34af35(0x296)](_0x338cff,0xc8)){if(_0x5d01b9['EGafg'](_0x5d01b9[_0x34af35(0x273)],_0x5d01b9[_0x34af35(0x273)])){const _0x54617e=JSON['parse'](_0x3aa046['body']),_0x1f33d4=_0x54617e[_0x34af35(0x23d)](_0x444ee1=>_0x444ee1[_0x34af35(0x28f)]===_0x14eb54[_0x34af35(0x2c8)])||null;_0x5d01b9[_0x34af35(0x2c0)](isUndefined,_0x1f33d4)?_0x5d01b9['Lcydb'](_0x5d01b9[_0x34af35(0x1f3)],_0x5d01b9[_0x34af35(0x1f3)])?(_0x3447a6=_0x34af35(0x1f0)+_0x14eb54[_0x34af35(0x2c8)]+_0x34af35(0x295),await _0x5d01b9['QkhrN'](reportToGalactusAndSendToEDS,_0x14eb54,_0x4d98a7,_0x3447a6,messageTypes[_0x34af35(0x2b4)],_0x5d01b9['AFWeo'],_0x5d01b9[_0x34af35(0x2db)],_0x5d01b9[_0x34af35(0x221)]),logger[_0x34af35(0x26c)](_0x3447a6),process[_0x34af35(0x21e)](0x1)):_0x731a3f+='Cluster\x20'+_0x2c437f['clusterName']+_0x34af35(0x2cf):_0x5d01b9[_0x34af35(0x1fb)](_0x5d01b9[_0x34af35(0x265)],_0x5d01b9[_0x34af35(0x265)])?_0x398615[_0x34af35(0x21e)](0x1):_0x1b5824=_0x1f33d4;}else _0x41f043[_0x34af35(0x238)](_0x5d01b9[_0x34af35(0x1f8)]);}else{if(_0x5d01b9['TxNYn'](_0x5d01b9[_0x34af35(0x209)],_0x5d01b9[_0x34af35(0x242)])){const _0x3b62eb={};_0x3b62eb[_0x34af35(0x2d2)]=_0x4f8b10['LOG'],_0x3b62eb['message']=_0x441533,_0x2cad3a[_0x34af35(0x1fd)](_0x5e5f05,_0x3b62eb,_0x5d01b9['PrKsF'],!![]);}else process[_0x34af35(0x21e)](0x1);}const _0x6e3bc3={};_0x6e3bc3[_0x34af35(0x2d2)]=WS_EVENTS[_0x34af35(0x2b2)],_0x6e3bc3[_0x34af35(0x25c)]=_0x5d01b9['ChRuk'],webSocketUtils['sendEventToBackend'](_0x4d98a7,_0x6e3bc3),global_registry['cloudProvider']=_0x1b5824[_0x34af35(0x240)],global_registry['clusterRegion']=_0x1b5824[_0x34af35(0x277)],global_registry[_0x34af35(0x282)]=_0x1b5824[_0x34af35(0x282)];}}else _0x5d01b9[_0x34af35(0x2a7)](_0x5d01b9[_0x34af35(0x28c)],_0x5d01b9[_0x34af35(0x259)])?(logger[_0x34af35(0x26c)](_0x5d01b9[_0x34af35(0x251)]),process[_0x34af35(0x21e)](0x1)):(_0x2b298b['info']('['+_0x395de0+_0x34af35(0x220)+_0x43783c[_0x34af35(0x27f)]+_0x34af35(0x285)+_0x33d7a4['data']+'\x20error\x20:\x20'+_0x5dc7b5[_0x34af35(0x26c)]),_0x321ca5[_0x34af35(0x26c)]&&_0x14878d['error']('error\x20stack\x20:\x20'+_0x27a1e1['error'][_0x34af35(0x269)]));}}else _0x17e8bd['push'](_0x5d01b9[_0x34af35(0x2dc)]);}catch(_0x1f0d97){_0x5d01b9['tHCLD'](_0x5d01b9[_0x34af35(0x279)],_0x5d01b9[_0x34af35(0x268)])?(_0x3447a6=_0x34af35(0x1e9)+_0x1f0d97+':\x20'+_0x1f0d97[_0x34af35(0x269)],logger[_0x34af35(0x26c)](_0x3447a6),await _0x5d01b9[_0x34af35(0x2bc)](reportToGalactusAndSendToEDS,_0x14eb54,_0x4d98a7,_0x3447a6,messageTypes[_0x34af35(0x2b4)],_0x5d01b9['AFWeo'],_0x5d01b9[_0x34af35(0x22c)],_0x5d01b9['PrKsF']),process['exit'](0x1)):(_0x34437['info'](_0x34af35(0x206)+_0x4019ce[_0x34af35(0x2be)]+'\x20'),_0x2a0fff['cloudProvider']=_0x51c2db[_0x34af35(0x2be)]);}}function printResponse(_0x9d707b,_0x37581f){const _0xb61ab9=a17_0x37b7b2,_0x2eace7={};_0x2eace7['iqMeH']=function(_0x2c5745,_0x441623){return _0x2c5745===_0x441623;},_0x2eace7[_0xb61ab9(0x239)]='uTGWB';const _0x409b63=_0x2eace7;logger['info']('['+_0x9d707b+_0xb61ab9(0x220)+_0x37581f[_0xb61ab9(0x27f)]+_0xb61ab9(0x285)+_0x37581f[_0xb61ab9(0x228)]+_0xb61ab9(0x27c)+_0x37581f[_0xb61ab9(0x26c)]),_0x37581f[_0xb61ab9(0x26c)]&&(_0x409b63['iqMeH'](_0x409b63[_0xb61ab9(0x239)],_0x409b63['ZCFpZ'])?logger['error'](_0xb61ab9(0x2b3)+_0x37581f[_0xb61ab9(0x26c)][_0xb61ab9(0x269)]):_0x14f5c5[_0xb61ab9(0x28b)](_0xb61ab9(0x2a3)+_0x15cd17[_0xb61ab9(0x282)]+_0xb61ab9(0x257)));}async function generateReport(_0x48ccf0,_0x5bd313){const _0xdb4721=a17_0x37b7b2,_0x265d7b={'qNtCE':function(_0x269650,_0x4e4e2c){return _0x269650+_0x4e4e2c;},'VBqMM':_0xdb4721(0x29e),'MSlpX':_0xdb4721(0x2ca),'OUHYv':function(_0x100051,_0x561d3b){return _0x100051||_0x561d3b;},'hCVCn':_0xdb4721(0x213),'PPdNK':_0xdb4721(0x2a2),'BjqJR':_0xdb4721(0x207),'GwqQs':function(_0x556339,_0x1f9409){return _0x556339!=_0x1f9409;},'HgDkK':_0xdb4721(0x2b1),'FZaxR':_0xdb4721(0x2d4),'bQFAD':function(_0x2d6ece){return _0x2d6ece();}};let _0x152672=_0xdb4721(0x1e6)+global_registry[_0xdb4721(0x240)]+'\x20===\x0a\x0a';return _0x48ccf0[_0xdb4721(0x294)]((_0x274ec5,_0x3391fb)=>{const _0xd880cd=_0xdb4721,{header:_0x218f9e,response:_0x6a1116}=_0x274ec5,{status:_0x175ef9,data:_0x4a3aee,error:_0x26ef89}=_0x6a1116;_0x152672+=_0x218f9e+'\x20#'+_0x265d7b[_0xd880cd(0x227)](_0x3391fb,0x1)+'\x0a',_0x152672+=_0xd880cd(0x21a)+(_0x175ef9?_0x265d7b['VBqMM']:_0x265d7b[_0xd880cd(0x202)])+'\x0a',_0x152672+=_0xd880cd(0x287)+_0x265d7b['OUHYv'](_0x4a3aee,_0x265d7b[_0xd880cd(0x272)])+'\x0a',_0x26ef89&&(_0x152672+=_0x265d7b[_0xd880cd(0x29f)],_0x152672+=_0xd880cd(0x215)+(_0x26ef89[_0xd880cd(0x25c)]||_0x265d7b[_0xd880cd(0x272)])+'\x0a',_0x152672+=_0xd880cd(0x29c)+(_0x26ef89['code']||_0x265d7b[_0xd880cd(0x272)])+'\x0a',_0x152672+=_0xd880cd(0x2a9)+(_0x26ef89['stack']||_0x265d7b[_0xd880cd(0x272)])+'\x0a'),_0x152672+='\x0a\x0a';}),_0x152672+=_0x265d7b[_0xdb4721(0x299)],_0x265d7b['GwqQs'](_0x5bd313,null)?_0x152672+=_0xdb4721(0x280)+global_registry[_0xdb4721(0x282)]+'\x20'+(_0x5bd313?_0x265d7b[_0xdb4721(0x201)]:_0x265d7b['FZaxR'])+'\x0a\x0a':_0x152672+='Cluster\x20'+global_registry[_0xdb4721(0x282)]+_0xdb4721(0x2cf),_0x152672+=_0x265d7b['bQFAD'](getSystemMetaData),_0x152672;}function a17_0x4218(_0x191212,_0x4990dd){const _0x41f105=a17_0x41f1();return a17_0x4218=function(_0x421847,_0x1e67fd){_0x421847=_0x421847-0x1e3;let _0x3c3a10=_0x41f105[_0x421847];return _0x3c3a10;},a17_0x4218(_0x191212,_0x4990dd);};exports[a17_0x37b7b2(0x249)]=async function(_0x2e0e54){const _0x39cd90=a17_0x37b7b2,_0x5bc161={'JYHzw':function(_0xd7e5c4){return _0xd7e5c4();},'HBLyD':function(_0x3f8e5c){return _0x3f8e5c();},'hNfPS':_0x39cd90(0x2d5),'SuTxe':function(_0x33997d,_0x52d420,_0x549eec,_0x53a56d,_0x3dafe5,_0x332596,_0x2f5589,_0x11e7da){return _0x33997d(_0x52d420,_0x549eec,_0x53a56d,_0x3dafe5,_0x332596,_0x2f5589,_0x11e7da);},'SmHqI':'pre-check-grid-called','vLHKy':'credential-not-found','TbvHI':_0x39cd90(0x26c),'ZJZGx':function(_0x4a4ac3,_0x32f15e,_0x2a08af,_0x4b4898,_0x56b3ca,_0x51040c,_0x2747e3){return _0x4a4ac3(_0x32f15e,_0x2a08af,_0x4b4898,_0x56b3ca,_0x51040c,_0x2747e3);},'KMdMU':_0x39cd90(0x1ee),'qvWyH':_0x39cd90(0x2b9),'pBTuA':function(_0x57ce37,_0x31cc98,_0x591974){return _0x57ce37(_0x31cc98,_0x591974);},'AArjA':_0x39cd90(0x2ac),'sAepd':function(_0x2edb8f,_0x279bfb,_0x161234){return _0x2edb8f(_0x279bfb,_0x161234);},'zJSYh':_0x39cd90(0x2cb),'CSZYU':'1|0|4|2|3','kMKCN':'accessResp','mIghs':function(_0x5005ed){return _0x5005ed();},'hdqcM':_0x39cd90(0x24c),'fhBoK':function(_0xc158ec,_0x5cee41){return _0xc158ec(_0x5cee41);},'bSkiM':_0x39cd90(0x2a6),'dlneJ':_0x39cd90(0x2a8),'NpcXF':_0x39cd90(0x1f6),'TzXex':_0x39cd90(0x2af),'xgaMj':_0x39cd90(0x2ce),'FEUzz':'SSL\x20Configured','HdzKL':function(_0x1d7951,_0x2f6474){return _0x1d7951+_0x2f6474;},'FJgGZ':_0x39cd90(0x22d),'jwALu':_0x39cd90(0x250)};let _0x5095f4,_0x30a6ab;try{global_registry[_0x39cd90(0x1fa)]=_0x5bc161[_0x39cd90(0x264)](uuidv4);!fs[_0x39cd90(0x1f1)](_0x5bc161[_0x39cd90(0x23e)](getCredentialsPath))&&(_0x30a6ab=_0x5bc161[_0x39cd90(0x2de)],logger[_0x39cd90(0x26c)](_0x30a6ab),await _0x5bc161[_0x39cd90(0x1f5)](reportToGalactusAndSendToEDS,_0x2e0e54,_0x5095f4,_0x30a6ab,messageTypes[_0x39cd90(0x2b4)],_0x5bc161[_0x39cd90(0x283)],_0x5bc161['vLHKy'],_0x5bc161[_0x39cd90(0x276)]),process[_0x39cd90(0x21e)](0x1));_0x5bc161[_0x39cd90(0x22f)](sendInstrumentationEvent,_0x2e0e54,_0x5bc161[_0x39cd90(0x283)],messageTypes[_0x39cd90(0x2b5)],null,null,_0x2e0e54);const _0x2bbb6c=JSON['parse'](fs[_0x39cd90(0x205)](_0x5bc161['JYHzw'](getCredentialsPath)));global_registry[_0x39cd90(0x289)]=_0x2bbb6c[_0x39cd90(0x2df)][_0x39cd90(0x26f)],global_registry[_0x39cd90(0x2dd)]=_0x2bbb6c[_0x39cd90(0x2df)]['password'];const _0x3e49da=WS_ENDPOINT[_0x39cd90(0x1f9)](_0x5bc161['KMdMU'],_0x2bbb6c[_0x39cd90(0x2df)][_0x39cd90(0x26f)])['replace'](_0x5bc161[_0x39cd90(0x2cc)],_0x2bbb6c['Browserstack'][_0x39cd90(0x244)]),_0x382429={};_0x382429[_0x39cd90(0x236)]=ws,_0x382429[_0x39cd90(0x243)]=0x36ee80,_0x5095f4=new ReconnectingWebSocket(_0x3e49da,[],_0x382429),global_registry[_0x39cd90(0x230)]=_0x5bc161[_0x39cd90(0x2a5)](getAuthHeader,global_registry[_0x39cd90(0x289)],global_registry[_0x39cd90(0x2dd)]),await _0x5bc161[_0x39cd90(0x2a5)](inputValidation,_0x2e0e54,_0x5095f4),logger['info'](_0x39cd90(0x1e7)+global_registry['cloudProvider']+_0x39cd90(0x253)+global_registry[_0x39cd90(0x2d8)]);let _0x108e13=await _0x5bc161[_0x39cd90(0x22f)](getCloudProviderObjectWithOutInit,global_registry[_0x39cd90(0x240)],global_registry['clusterName'],_0x5bc161[_0x39cd90(0x25f)],_0x5095f4,webSocketUtils,_0x2e0e54);const _0x2e6335=await _0x108e13['isCliToolInstalled']();_0x5bc161[_0x39cd90(0x2c9)](printResponse,_0x5bc161[_0x39cd90(0x255)],_0x2e6335),_0x108e13=await _0x108e13[_0x39cd90(0x237)]();let _0x41e8e5=![];try{_0x41e8e5=await _0x108e13[_0x39cd90(0x2c7)]();}catch(_0x1a7358){const _0x210b04=_0x5bc161[_0x39cd90(0x2bf)][_0x39cd90(0x27a)]('|');let _0x4d6e34=0x0;while(!![]){switch(_0x210b04[_0x4d6e34++]){case'0':_0x41e8e5=null;continue;case'1':_0x30a6ab='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x39cd90(0x282)]+_0x39cd90(0x234)+global_registry[_0x39cd90(0x2d8)]+_0x39cd90(0x2d0)+_0x1a7358;continue;case'2':_0x30a6ab+='\x0a'+JSON[_0x39cd90(0x24e)](_0x1a7358['stack']);continue;case'3':await _0x5bc161[_0x39cd90(0x1f5)](reportToGalactusAndSendToEDS,_0x2e0e54,_0x5095f4,_0x30a6ab,messageTypes[_0x39cd90(0x2b4)],_0x5bc161['SmHqI'],_0x39cd90(0x2b6)+global_registry['cloudProvider'],_0x5bc161[_0x39cd90(0x276)]);continue;case'4':logger[_0x39cd90(0x26c)](_0x30a6ab);continue;}break;}}_0x41e8e5&&logger[_0x39cd90(0x28b)](_0x39cd90(0x2a3)+global_registry[_0x39cd90(0x282)]+_0x39cd90(0x257));const _0x737c50=await _0x108e13[_0x39cd90(0x204)]();_0x5bc161[_0x39cd90(0x2c9)](printResponse,_0x5bc161['kMKCN'],_0x737c50);const _0x352911=await _0x5bc161[_0x39cd90(0x1f2)](curlRequest);_0x5bc161[_0x39cd90(0x2a5)](printResponse,_0x5bc161[_0x39cd90(0x1e8)],_0x352911);const _0x2771ce=await _0x5bc161[_0x39cd90(0x267)](isTlsSupported,_0x5bc161['bSkiM']);_0x5bc161[_0x39cd90(0x2c9)](printResponse,_0x5bc161[_0x39cd90(0x29b)],_0x2771ce);const _0x21c980={};_0x21c980['header']=_0x5bc161['NpcXF'],_0x21c980[_0x39cd90(0x222)]=_0x2e6335;const _0x4c2877={};_0x4c2877[_0x39cd90(0x266)]=_0x5bc161[_0x39cd90(0x2b8)],_0x4c2877['response']=_0x737c50;const _0x15d5fa={};_0x15d5fa['header']=_0x5bc161[_0x39cd90(0x246)],_0x15d5fa['response']=_0x352911;const _0x3f1410={};_0x3f1410[_0x39cd90(0x266)]=_0x5bc161[_0x39cd90(0x217)],_0x3f1410[_0x39cd90(0x222)]=_0x2771ce;const _0x90c608=[_0x21c980,_0x4c2877,_0x15d5fa,_0x3f1410],_0x1132d7=await _0x5bc161[_0x39cd90(0x2c9)](generateReport,_0x90c608,_0x41e8e5),_0x549703=new Date(),_0x2def2c=_0x549703[_0x39cd90(0x22e)]()+'_'+_0x5bc161['HdzKL'](_0x549703[_0x39cd90(0x235)](),0x1)+'_'+_0x549703[_0x39cd90(0x2d3)]()+'_'+_0x549703[_0x39cd90(0x23a)]()+'_'+_0x549703['getUTCMinutes'](),_0x5139cd=_0x39cd90(0x24f)+_0x2def2c+_0x39cd90(0x21b);fs[_0x39cd90(0x20d)](_0x5139cd,_0x1132d7,_0x5bc161['FJgGZ']),logger[_0x39cd90(0x28b)](_0x39cd90(0x214)+_0x5139cd),process[_0x39cd90(0x21e)](0x0);}catch(_0x156dd8){let _0x1c0f34='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x156dd8+'\x20';logger[_0x39cd90(0x26c)](_0x1c0f34),_0x1c0f34+='\x0a'+JSON[_0x39cd90(0x24e)](_0x156dd8[_0x39cd90(0x269)]),logger['debug']('stack\x20trace\x20'+_0x156dd8[_0x39cd90(0x269)]);if(_0x5095f4){const _0x5ee739={};_0x5ee739[_0x39cd90(0x2d2)]=WS_EVENTS[_0x39cd90(0x2b2)],_0x5ee739['message']=_0x1c0f34,webSocketUtils[_0x39cd90(0x1fd)](_0x5095f4,_0x5ee739,_0x5bc161[_0x39cd90(0x276)],!![]);}await webSocketUtils[_0x39cd90(0x2bd)](0x7d0);const _0x4c37c1={};_0x4c37c1[_0x39cd90(0x26c)]=_0x1c0f34,await _0x5bc161[_0x39cd90(0x22f)](sendInstrumentationEvent,_0x2e0e54,_0x5bc161['SmHqI'],messageTypes[_0x39cd90(0x2b4)],_0x5bc161[_0x39cd90(0x23f)],_0x4c37c1,_0x2e0e54),process[_0x39cd90(0x21e)](0x1);}};function a17_0x41f1(){const _0x4131d4=['OEHdr','find','HBLyD','jwALu','cloudProvider','debug','yrzDf','connectionTimeout','password','pre-check','xgaMj','string','pre-check-grid-called','handler','ECZjI','argv','isTrialGridAccessible','vAOyv','stringify','log/report_','pre-check-failed','dYUOP','usage','\x20region\x20-\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','zJSYh','../../config/constants','`\x20already\x20exists','xWQNH','mnTFv','cloud-provider','smMvj','message','qIhuh','QkhrN','AArjA','grid-profile','HHNQT','rzuFd','chzll','JYHzw','VOxJy','header','fhBoK','SWzYf','stack','rGnDW','9wpuuQi','error','description','VnIZj','username','xOfGs','zGRdT','hCVCn','NZdJm','../../utils/instrumentationUtils','iLtPH','TbvHI','region','QFGfj','xCiUv','split','PTwXj','\x20error\x20:\x20','Missing\x20required\x20arguments:\x20','method','status','Cluster\x20','EAahW','clusterName','SmHqI','gKksn','\x20data\x20:\x20','wmwtC','Message:\x20','GkxEc','bstackUsername','oRcdL','info','CrXaN','join','options','name','103655orUHmD','GmMwG','pre-check-cluster-args-not-passed','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','forEach','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','fThEP','zQNuY','11970882dWjwNo','BjqJR','CzPpT','dlneJ','\x20\x20Code:\x20','../../utils/webSocketUtils','Success','PPdNK','HpOWP','LqMkK','Error\x20Details:\x0a','Cluster\x20`','throwHttpErrors','pBTuA','TLSv1_2_client_method','tHCLD','isTls1_2_SUPPORTED','\x20\x20Stack:\x20','grid\x20profile\x20flow\x20','WJKnw','dummy-grid','ejuoq','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','User\x20Access','cluster-name','is\x20already\x20present','LOG','error\x20stack\x20:\x20','ERROR','INFO','cluster-check-failed-','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','TzXex','<PasswordPlaceholder>','994668GtjXUR','CFHhg','pBnfJ','delay','CLOUD_PROVIDER','CSZYU','LPqVk','RPlTi','vmCre','9iZviNG','../../cloudproviders/utils','ysbTB','GET','isClusterPresent','gridProfile','sAepd','Failure','toolInstalledResp','qvWyH','pre_check','Whitelisted\x20browserstack','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','`\x20,error\x20:\x20','AFWeo','type','getUTCDate','will\x20be\x20created','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','clusterRegion','hXHwo','ROJhH','ZuctQ','DsIgv','bstackAccesskey','hNfPS','Browserstack','uuid','10414024CaNFwr','NGRDq','===\x20Precheck\x20Report\x20-\x20','Pre-check\x20running\x20for\x20Cloud\x20-\x20','hdqcM','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','285455onKMGB','xoSir','includes','../../utils/utilityMethods','<UsernamePlaceholder>','yYPNA','Invalid\x20input.\x20grid\x20profiles:\x20','existsSync','mIghs','tAmcs','code','SuTxe','Tool\x20Installed','12230HSmtXL','ZbRtQ','replace','requestId','oNXDI','yQjBA','sendEventToBackend','pMqKO','KSlQP','UoygE','HgDkK','MSlpX','builder','checkAccess','readFileSync','Setting\x20cloud\x20provider\x20as\x20','Cluster\x20details\x0a-----------------------\x0a','length','qEOJa','headers','MlMUj','wmgbZ','writeFileSync','WzBTU','UEuhm','268TYSpzp','EGalG','5861358LcaNdy','N/A','Report\x20saved\x20in\x20','\x20\x20Message:\x20','njrMg','FEUzz','got','krCUx','Status:\x20','.txt','.\x20Please\x20provide\x20all\x20required\x20arguments.','https://','exit','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.',']\x20status\x20:\x20','PrKsF','response','help','mCqxZ','/packages/cli/get-all-grid-profiles','WgVVR','qNtCE','data','reconnecting-websocket','cloud-provider-not-supported','8525LmXWyH','XhDbI','utf-8','getUTCFullYear','ZJZGx','authHeader','pre-check-grid-profile-empty','NFXxV','Grid\x20profile\x20fetched\x20for\x20pre-check','`\x20is\x20present\x20in\x20region\x20`','getUTCMonth','WebSocket','init','push','ZCFpZ','getUTCHours','fRFFt'];a17_0x41f1=function(){return _0x4131d4;};return a17_0x41f1();}
1
+ const a17_0x8d2f87=a17_0x1c71;(function(_0x3e2b90,_0x3e4595){const _0x206135=a17_0x1c71,_0x486345=_0x3e2b90();while(!![]){try{const _0x1a8e75=parseInt(_0x206135(0x289))/0x1+parseInt(_0x206135(0x276))/0x2+parseInt(_0x206135(0x255))/0x3+-parseInt(_0x206135(0x1df))/0x4*(parseInt(_0x206135(0x243))/0x5)+-parseInt(_0x206135(0x21d))/0x6*(parseInt(_0x206135(0x19a))/0x7)+parseInt(_0x206135(0x1c4))/0x8*(parseInt(_0x206135(0x25e))/0x9)+parseInt(_0x206135(0x277))/0xa*(-parseInt(_0x206135(0x1e8))/0xb);if(_0x1a8e75===_0x3e4595)break;else _0x486345['push'](_0x486345['shift']());}catch(_0x214138){_0x486345['push'](_0x486345['shift']());}}}(a17_0x4c85,0x5919d));const fs=require('fs'),ws=require('ws'),got=require(a17_0x8d2f87(0x1c1)),{v4:uuidv4}=require(a17_0x8d2f87(0x23d)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x8d2f87(0x245)),{logger}=require(a17_0x8d2f87(0x214)),{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_0x8d2f87(0x217)),{getCloudProviderObjectWithOutInit}=require(a17_0x8d2f87(0x1ba)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x8d2f87(0x1c7));exports['command']='grid',exports[a17_0x8d2f87(0x226)]=a17_0x8d2f87(0x220),exports['builder']=function(_0x25c1da){const _0x36f824=a17_0x8d2f87,_0x2c6d53={};_0x2c6d53[_0x36f824(0x26e)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2c6d53[_0x36f824(0x1bf)]=_0x36f824(0x225),_0x2c6d53[_0x36f824(0x246)]=_0x36f824(0x26f),_0x2c6d53['qAjJn']=_0x36f824(0x234),_0x2c6d53[_0x36f824(0x204)]=_0x36f824(0x24d),_0x2c6d53[_0x36f824(0x231)]=_0x36f824(0x19b);const _0x1a8404=_0x2c6d53,_0x33243d={};_0x33243d[_0x36f824(0x1b8)]=_0x1a8404[_0x36f824(0x26e)],_0x33243d['type']=_0x1a8404['GzDHI'];const _0x5e03cd={};_0x5e03cd[_0x36f824(0x1b8)]=_0x1a8404[_0x36f824(0x246)],_0x5e03cd[_0x36f824(0x20a)]=_0x1a8404[_0x36f824(0x1bf)];const _0x5c01f7={};_0x5c01f7[_0x36f824(0x1b8)]=_0x1a8404['qAjJn'],_0x5c01f7['type']=_0x1a8404['GzDHI'];const _0x5b26fe={};_0x5b26fe[_0x36f824(0x1b8)]=_0x1a8404[_0x36f824(0x204)],_0x5b26fe[_0x36f824(0x20a)]=_0x1a8404[_0x36f824(0x1bf)];const _0x3d82da={};return _0x3d82da['cluster-name']=_0x33243d,_0x3d82da[_0x36f824(0x1aa)]=_0x5e03cd,_0x3d82da[_0x36f824(0x287)]=_0x5c01f7,_0x3d82da[_0x36f824(0x240)]=_0x5b26fe,_0x25c1da['usage'](HELP_HEADER_MESSAGE[_0x36f824(0x1b0)])[_0x36f824(0x1f5)](HELP_FOOTER_MESSAGE)[_0x36f824(0x1a2)](_0x3d82da)['help'](_0x1a8404['UEGsH'])['argv'];};async function inputValidation(_0x20bf1f,_0x104fca){const _0x339d94=a17_0x8d2f87,_0x59d969={'RnXgW':_0x339d94(0x247),'sUMIX':_0x339d94(0x1d1),'NnAZV':_0x339d94(0x279),'ktYjV':_0x339d94(0x225),'BGHTI':_0x339d94(0x26f),'gifLS':_0x339d94(0x234),'ztUkG':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','OSrAA':'help','mbpLF':function(_0xdf5fb1,_0x121063){return _0xdf5fb1+_0x121063;},'LCWBE':_0x339d94(0x288),'ogpXr':_0x339d94(0x274),'nUOGR':function(_0x18ae8a,_0x3b2250){return _0x18ae8a||_0x3b2250;},'ytUda':_0x339d94(0x1aa),'oWhfk':_0x339d94(0x1e6),'lLynY':_0x339d94(0x287),'tHSvU':_0x339d94(0x205),'LdTUa':_0x339d94(0x1b7),'Ulkhb':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','hlTeN':function(_0x2d64d2,_0x2c05e9){return _0x2d64d2===_0x2c05e9;},'ObvST':'IDFqg','tRuqL':function(_0x220bbe,_0x3d678d){return _0x220bbe!==_0x3d678d;},'TWhYb':'LWtwe','Pcyua':function(_0x52ae80,_0x44727c){return _0x52ae80===_0x44727c;},'iLNon':_0x339d94(0x1f8),'pPGJg':'cluster-name','gnJZw':function(_0x40809f,_0x593b30){return _0x40809f!==_0x593b30;},'ppOMB':_0x339d94(0x24f),'mdXsT':_0x339d94(0x1d2),'xPCeN':function(_0x34d281,_0x2cadd3){return _0x34d281!==_0x2cadd3;},'zDuNM':_0x339d94(0x1f6),'ZfIrc':_0x339d94(0x1de),'TUKEG':function(_0x499010,_0x507d70){return _0x499010>_0x507d70;},'NbOPi':_0x339d94(0x27c),'toCfi':_0x339d94(0x21a),'MrgaQ':function(_0x53a8c6,_0x4e2268,_0x1c7c5c,_0x4ae274,_0x5d9037,_0x17268b,_0x3eea15,_0x21ea84){return _0x53a8c6(_0x4e2268,_0x1c7c5c,_0x4ae274,_0x5d9037,_0x17268b,_0x3eea15,_0x21ea84);},'NBHaM':_0x339d94(0x19e),'AhqwZ':_0x339d94(0x222),'NhdZo':function(_0x14bf50,_0x5dd198){return _0x14bf50!==_0x5dd198;},'FiYnw':_0x339d94(0x1b2),'MXpoy':_0x339d94(0x271),'CwTuU':function(_0x39035e,_0x3ef89b,_0x350208,_0x410d2b,_0x4f48f3,_0x42b5bc,_0x5f4801,_0x5cc970){return _0x39035e(_0x3ef89b,_0x350208,_0x410d2b,_0x4f48f3,_0x42b5bc,_0x5f4801,_0x5cc970);},'HuiZz':_0x339d94(0x1d4),'vtexd':_0x339d94(0x1eb),'owixe':function(_0x589b07,_0x183677){return _0x589b07===_0x183677;},'EwVho':_0x339d94(0x242),'xAiOg':_0x339d94(0x1ee),'SAgiS':_0x339d94(0x264),'Bvxxe':function(_0x1efb8e,_0x53f688,_0x4dd3f4){return _0x1efb8e(_0x53f688,_0x4dd3f4);},'EVHsm':function(_0x51795e,_0x36e905,_0x3ead60,_0x29915d,_0x45422c,_0x49e511){return _0x51795e(_0x36e905,_0x3ead60,_0x29915d,_0x45422c,_0x49e511);},'PYqCJ':'pre-check','toewE':_0x339d94(0x240),'FNsFb':function(_0x53f658,_0x3ba814){return _0x53f658!==_0x3ba814;},'lbPZl':_0x339d94(0x1d9),'QWHRe':_0x339d94(0x215),'ZXrYq':function(_0x491ce6,_0x3e1047){return _0x491ce6(_0x3e1047);},'BcBNH':function(_0x4d891e,_0x5853e2){return _0x4d891e===_0x5853e2;},'KfolJ':_0x339d94(0x1ca),'EVcdr':_0x339d94(0x24c),'vDZdR':_0x339d94(0x228),'Nxfeg':_0x339d94(0x202),'LBOnl':function(_0x301434,_0x759621){return _0x301434===_0x759621;},'QmLpy':'aBaKt','seveJ':_0x339d94(0x1c5),'vlxAQ':_0x339d94(0x1ec),'adygp':'lwAKi','Tdcch':function(_0x29a3a7,_0x56afb9){return _0x29a3a7===_0x56afb9;},'LJobZ':_0x339d94(0x221),'IrJjq':_0x339d94(0x261),'jUCxw':function(_0x265162,_0x487dbd,_0x1f1291,_0x498f7f,_0x26e07b,_0x24bd4b,_0x27f3ce,_0x14ba6c){return _0x265162(_0x487dbd,_0x1f1291,_0x498f7f,_0x26e07b,_0x24bd4b,_0x27f3ce,_0x14ba6c);}};let _0x156653;try{if(_0x59d969[_0x339d94(0x23f)](_0x59d969[_0x339d94(0x22e)],_0x59d969[_0x339d94(0x22e)])){if(_0x20bf1f[_0x339d94(0x1f0)]||_0x20bf1f[_0x339d94(0x1f9)]||_0x20bf1f[_0x339d94(0x287)]){if(_0x59d969['tRuqL'](_0x59d969[_0x339d94(0x254)],_0x59d969[_0x339d94(0x254)]))_0x176ba5[_0x339d94(0x275)]('Setting\x20cloud\x20provider\x20as\x20'+_0x5d95b5[_0x339d94(0x1a4)]+'\x20'),_0x36c643['cloudProvider']=_0xda1a75[_0x339d94(0x1a4)];else{const _0x23a348=[];!_0x20bf1f[_0x339d94(0x1f0)]&&(_0x59d969['Pcyua'](_0x59d969[_0x339d94(0x1ac)],_0x59d969[_0x339d94(0x1ac)])?_0x23a348['push'](_0x59d969[_0x339d94(0x1e1)]):(_0x4165c5+=_0x59d969[_0x339d94(0x23c)],_0x1510d2+=_0x339d94(0x25b)+(_0x3c1ef9[_0x339d94(0x244)]||_0x59d969['sUMIX'])+'\x0a',_0x4c61c7+='\x20\x20Code:\x20'+(_0x10b789[_0x339d94(0x249)]||_0x59d969[_0x339d94(0x230)])+'\x0a',_0x5f44c0+=_0x339d94(0x21b)+(_0x3755da[_0x339d94(0x1a6)]||_0x59d969[_0x339d94(0x230)])+'\x0a'));;if(!_0x20bf1f[_0x339d94(0x1f9)]){if(_0x59d969[_0x339d94(0x251)](_0x59d969[_0x339d94(0x256)],_0x59d969[_0x339d94(0x21e)]))_0x23a348[_0x339d94(0x1ff)](_0x59d969['ytUda']);else{const _0x4f0ee7={};_0x4f0ee7[_0x339d94(0x1b8)]=_0x59d969[_0x339d94(0x281)],_0x4f0ee7[_0x339d94(0x20a)]=_0x59d969[_0x339d94(0x1b6)];const _0x32fbd8={};_0x32fbd8[_0x339d94(0x1b8)]=_0x59d969['BGHTI'],_0x32fbd8['type']=_0x59d969[_0x339d94(0x1b6)];const _0x389e75={};_0x389e75[_0x339d94(0x1b8)]=_0x59d969[_0x339d94(0x27d)],_0x389e75[_0x339d94(0x20a)]=_0x59d969[_0x339d94(0x1b6)];const _0x148efb={};_0x148efb[_0x339d94(0x1b8)]=_0x59d969['ztUkG'],_0x148efb[_0x339d94(0x20a)]=_0x59d969['ktYjV'];const _0x4355fc={};return _0x4355fc[_0x339d94(0x1fa)]=_0x4f0ee7,_0x4355fc[_0x339d94(0x1aa)]=_0x32fbd8,_0x4355fc[_0x339d94(0x287)]=_0x389e75,_0x4355fc[_0x339d94(0x240)]=_0x148efb,_0xbca3e8['usage'](_0x4e3bce['pre_check'])[_0x339d94(0x1f5)](_0x2cfaf2)[_0x339d94(0x1a2)](_0x4355fc)[_0x339d94(0x19b)](_0x59d969['OSrAA'])['argv'];}};!_0x20bf1f[_0x339d94(0x287)]&&(_0x59d969[_0x339d94(0x1f2)](_0x59d969[_0x339d94(0x203)],_0x59d969[_0x339d94(0x28c)])?_0x23a348[_0x339d94(0x1ff)](_0x59d969[_0x339d94(0x1e4)]):(_0x5d8cfb[_0x339d94(0x275)]('['+_0x8dc2a4+_0x339d94(0x1a7)+_0x20203a[_0x339d94(0x25d)]+_0x339d94(0x1b3)+_0x1f8b95[_0x339d94(0x1fb)]+'\x20error\x20:\x20'+_0x3cb999[_0x339d94(0x1e6)]),_0x5fa898[_0x339d94(0x1e6)]&&_0x4e92db[_0x339d94(0x1e6)](_0x339d94(0x28b)+_0x17c33['error']['stack'])));;_0x59d969['TUKEG'](_0x23a348['length'],0x0)&&(_0x59d969[_0x339d94(0x251)](_0x59d969['NbOPi'],_0x59d969[_0x339d94(0x237)])?(_0x156653=_0x339d94(0x1a3)+_0x23a348['join'](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x59d969[_0x339d94(0x1bc)](reportToGalactusAndSendToEDS,_0x20bf1f,_0x104fca,_0x156653,messageTypes[_0x339d94(0x1b9)],_0x59d969['NBHaM'],_0x59d969[_0x339d94(0x224)],_0x59d969[_0x339d94(0x24e)]),logger[_0x339d94(0x1e6)](_0x156653),process['exit'](0x1)):_0x2ee718[_0x339d94(0x21c)](0x1));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x339d94(0x1f4)](_0x20bf1f['cloudProvider'][_0x339d94(0x208)]())){if(_0x59d969['NhdZo'](_0x59d969['FiYnw'],_0x59d969['FiYnw']))_0x4e937d[_0x339d94(0x1e6)](_0x339d94(0x28b)+_0x317dcd[_0x339d94(0x1e6)][_0x339d94(0x1a6)]);else{_0x156653=_0x59d969['MXpoy'],await _0x59d969[_0x339d94(0x201)](reportToGalactusAndSendToEDS,_0x20bf1f,_0x104fca,_0x156653,messageTypes[_0x339d94(0x1b9)],_0x59d969[_0x339d94(0x1ab)],_0x59d969[_0x339d94(0x28a)],_0x59d969[_0x339d94(0x24e)]),logger[_0x339d94(0x1e6)](_0x156653);if(!_0x20bf1f[_0x339d94(0x1f9)]){if(_0x59d969[_0x339d94(0x283)](_0x59d969[_0x339d94(0x22a)],_0x59d969[_0x339d94(0x22a)]))logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x20bf1f[_0x339d94(0x1f9)]=DEFAULT_CLUSTER_DETAILS[_0x339d94(0x1a4)];else{const {header:_0x3cd315,response:_0x58e456}=_0x4eacf9,{status:_0x5e4a9a,data:_0x464e45,error:_0x1c5db2}=_0x58e456;_0x2df30+=_0x3cd315+'\x20#'+_0x59d969[_0x339d94(0x1e9)](_0x20df32,0x1)+'\x0a',_0x2d9888+=_0x339d94(0x20f)+(_0x5e4a9a?_0x59d969['LCWBE']:_0x59d969[_0x339d94(0x25f)])+'\x0a',_0x19c4bb+=_0x339d94(0x258)+_0x59d969[_0x339d94(0x290)](_0x464e45,_0x59d969['sUMIX'])+'\x0a',_0x1c5db2&&(_0x490b17+=_0x59d969[_0x339d94(0x23c)],_0x441e8a+='\x20\x20Message:\x20'+(_0x1c5db2['message']||_0x59d969[_0x339d94(0x230)])+'\x0a',_0x39dff6+=_0x339d94(0x1ad)+(_0x1c5db2['code']||_0x59d969[_0x339d94(0x230)])+'\x0a',_0xb2eaaf+=_0x339d94(0x21b)+(_0x1c5db2[_0x339d94(0x1a6)]||_0x59d969['sUMIX'])+'\x0a'),_0x4aec07+='\x0a\x0a';}}}}global_registry[_0x339d94(0x1f0)]=_0x20bf1f[_0x339d94(0x1f0)],global_registry[_0x339d94(0x1f9)]=_0x20bf1f['cloudProvider'],global_registry[_0x339d94(0x232)]=_0x20bf1f[_0x339d94(0x287)];}}else{if(_0x20bf1f['gridProfile']){if(_0x59d969[_0x339d94(0x27f)](_0x59d969[_0x339d94(0x1d7)],_0x59d969[_0x339d94(0x28d)]))_0x5a103c[_0x339d94(0x1ff)](_0x59d969[_0x339d94(0x280)]);else{global_registry['gridProfile']=_0x20bf1f['gridProfile'],logger[_0x339d94(0x266)](_0x339d94(0x1da)+_0x20bf1f[_0x339d94(0x1cd)]);const _0x5d9a0c=_0x339d94(0x238)+AG_API_URL+_0x339d94(0x19c),_0x54217c={};_0x54217c[_0x339d94(0x1ed)]=_0x59d969[_0x339d94(0x260)],_0x54217c['headers']=global_registry[_0x339d94(0x20e)],_0x54217c[_0x339d94(0x1ce)]=![];const _0x4767e5=_0x54217c,_0x47eda2=await _0x59d969['Bvxxe'](got,_0x5d9a0c,_0x4767e5),_0x348ad0=await _0x59d969[_0x339d94(0x1bb)](responseValidation,_0x47eda2,_0x59d969[_0x339d94(0x1c2)],_0x59d969[_0x339d94(0x1d3)],_0x20bf1f,_0x104fca);let _0x3bd0a2={};if(_0x59d969[_0x339d94(0x23f)](_0x348ad0,0xc8)){if(_0x59d969[_0x339d94(0x28f)](_0x59d969[_0x339d94(0x26a)],_0x59d969[_0x339d94(0x1fd)])){const _0x2453ec=JSON[_0x339d94(0x270)](_0x47eda2[_0x339d94(0x213)]),_0x265414=_0x2453ec[_0x339d94(0x1a9)](_0x41bba7=>_0x41bba7[_0x339d94(0x198)]===_0x20bf1f[_0x339d94(0x1cd)])||null;if(_0x59d969[_0x339d94(0x1e5)](isUndefined,_0x265414)){if(_0x59d969['BcBNH'](_0x59d969['KfolJ'],_0x59d969[_0x339d94(0x1cc)])){const _0x3b40e6={};_0x3b40e6[_0x339d94(0x20a)]=_0x376739[_0x339d94(0x1be)],_0x3b40e6[_0x339d94(0x244)]=_0x2d2c2a,_0x528477[_0x339d94(0x1b5)](_0x4a73de,_0x3b40e6,_0x59d969[_0x339d94(0x24e)],!![]);}else _0x156653='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x20bf1f[_0x339d94(0x1cd)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x59d969[_0x339d94(0x201)](reportToGalactusAndSendToEDS,_0x20bf1f,_0x104fca,_0x156653,messageTypes[_0x339d94(0x1b9)],_0x59d969[_0x339d94(0x1ab)],_0x59d969[_0x339d94(0x285)],_0x59d969[_0x339d94(0x24e)]),logger[_0x339d94(0x1e6)](_0x156653),process[_0x339d94(0x21c)](0x1);}else _0x59d969[_0x339d94(0x24b)](_0x59d969['Nxfeg'],_0x59d969[_0x339d94(0x23e)])?_0x4863ec[_0x339d94(0x1ff)](_0x59d969[_0x339d94(0x1e4)]):_0x3bd0a2=_0x265414;}else _0x18b270+=_0x339d94(0x197)+_0x491120[_0x339d94(0x1f0)]+'\x20'+(_0x39db75?_0x59d969[_0x339d94(0x1b1)]:_0x59d969['LdTUa'])+'\x0a\x0a';}else _0x59d969[_0x339d94(0x1a0)](_0x59d969['QmLpy'],_0x59d969[_0x339d94(0x1e0)])?process[_0x339d94(0x21c)](0x1):(_0x2f3e8c[_0x339d94(0x1e6)](_0x59d969[_0x339d94(0x241)]),_0xb48389[_0x339d94(0x21c)](0x1));const _0x414f5c={};_0x414f5c[_0x339d94(0x20a)]=WS_EVENTS[_0x339d94(0x1be)],_0x414f5c[_0x339d94(0x244)]=_0x59d969[_0x339d94(0x1fc)],webSocketUtils[_0x339d94(0x1b5)](_0x104fca,_0x414f5c),global_registry[_0x339d94(0x1f9)]=_0x3bd0a2[_0x339d94(0x1f9)],global_registry['clusterRegion']=_0x3bd0a2['region'],global_registry[_0x339d94(0x1f0)]=_0x3bd0a2['clusterName'];}}else _0x59d969[_0x339d94(0x219)](_0x59d969[_0x339d94(0x211)],_0x59d969[_0x339d94(0x27b)])?(logger[_0x339d94(0x1e6)](_0x59d969[_0x339d94(0x241)]),process['exit'](0x1)):_0x2e6025[_0x339d94(0x275)](_0x339d94(0x284)+_0x2fd037[_0x339d94(0x1f0)]+_0x339d94(0x229));}}else _0x48b9a6=_0x44a722;}catch(_0x35e988){_0x59d969[_0x339d94(0x200)](_0x59d969['LJobZ'],_0x59d969[_0x339d94(0x233)])?_0x1c0695+=_0x339d94(0x197)+_0x4c5463[_0x339d94(0x1f0)]+_0x339d94(0x199):(_0x156653=_0x339d94(0x1cf)+_0x35e988+':\x20'+_0x35e988[_0x339d94(0x1a6)],logger['error'](_0x156653),await _0x59d969['jUCxw'](reportToGalactusAndSendToEDS,_0x20bf1f,_0x104fca,_0x156653,messageTypes['ERROR'],_0x59d969[_0x339d94(0x1ab)],_0x59d969[_0x339d94(0x28a)],_0x59d969[_0x339d94(0x24e)]),process['exit'](0x1));}}function a17_0x1c71(_0x36de3d,_0x3e7e91){const _0x4c859b=a17_0x4c85();return a17_0x1c71=function(_0x1c71cd,_0x130e1b){_0x1c71cd=_0x1c71cd-0x196;let _0xf67ccc=_0x4c859b[_0x1c71cd];return _0xf67ccc;},a17_0x1c71(_0x36de3d,_0x3e7e91);}function printResponse(_0x3ce9a9,_0x248db1){const _0x2202ef=a17_0x8d2f87,_0x1b3d09={};_0x1b3d09[_0x2202ef(0x286)]=_0x2202ef(0x1fa),_0x1b3d09[_0x2202ef(0x1f3)]=function(_0x11162e,_0x1d58b2){return _0x11162e!==_0x1d58b2;},_0x1b3d09[_0x2202ef(0x28e)]=_0x2202ef(0x19f),_0x1b3d09[_0x2202ef(0x1c3)]=_0x2202ef(0x24a);const _0x4b50ef=_0x1b3d09;logger[_0x2202ef(0x275)]('['+_0x3ce9a9+_0x2202ef(0x1a7)+_0x248db1['status']+'\x20data\x20:\x20'+_0x248db1[_0x2202ef(0x1fb)]+_0x2202ef(0x1f7)+_0x248db1['error']),_0x248db1[_0x2202ef(0x1e6)]&&(_0x4b50ef[_0x2202ef(0x1f3)](_0x4b50ef[_0x2202ef(0x28e)],_0x4b50ef[_0x2202ef(0x1c3)])?logger[_0x2202ef(0x1e6)](_0x2202ef(0x28b)+_0x248db1[_0x2202ef(0x1e6)][_0x2202ef(0x1a6)]):_0x15cda8['push'](_0x4b50ef[_0x2202ef(0x286)]));}function a17_0x4c85(){const _0x33222a=['gifLS','bwyIS','owixe','ytUda','NnAZV','connectionTimeout','Pcyua','Cluster\x20`','vDZdR','KuVkp','region','Success','260458FXLDxE','HuiZz','error\x20stack\x20:\x20','ZfIrc','xAiOg','pcnhR','FNsFb','nUOGR','header','Cluster\x20','name','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','7KtEpAp','help','/packages/cli/get-all-grid-profiles','utf-8','pre-check-grid-called','WRVRf','LBOnl','toolInstalledResp','options','Missing\x20required\x20arguments:\x20','CLOUD_PROVIDER','readFileSync','stack',']\x20status\x20:\x20','CuBst','find','cloud-provider','NBHaM','iLNon','\x20\x20Code:\x20','existsSync','response','pre_check','tHSvU','WxYGs','\x20data\x20:\x20','getUTCHours','sendEventToBackend','ktYjV','will\x20be\x20created','description','ERROR','../../cloudproviders/utils','EVHsm','MrgaQ','getUTCDate','LOG','GzDHI','Pre-check\x20running\x20for\x20Cloud\x20-\x20','got','PYqCJ','IPFWy','112LSxFQx','Grid\x20profile\x20fetched\x20for\x20pre-check','getUTCMinutes','../../utils/instrumentationUtils','<PasswordPlaceholder>','APXcm','yxFMR','KSfGD','EVcdr','gridProfile','throwHttpErrors','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Tool\x20Installed','N/A','tytFZ','toewE','cloud-provider-not-supported','SqMms','log/report_','EwVho','stringify','CjYeT','grid\x20profile\x20flow\x20','accessResp','isClusterPresent','XRZTq','fXFsy','744316beUapE','QmLpy','pPGJg','WebSocket','dummy-grid','lLynY','ZXrYq','error','XpKzc','46849pEWCyo','mbpLF','AqTEC','AhOSs','wwGqU','method','cIPBO','bstackUsername','clusterName','NolrC','xPCeN','FPOdS','includes','epilogue','oGFPd','\x20error\x20:\x20','UAtXB','cloudProvider','cluster-name','data','seveJ','QWHRe','credential-not-found','push','Tdcch','CwTuU','LlWym','zDuNM','CFtLP','is\x20already\x20present','PoBIM','IPAGx','toLowerCase','0|4|2|1|3','type','LnCql','ELQDe','sequE','authHeader','Status:\x20','\x20region\x20-\x20','vlxAQ','jPujw','body','../../config/logger','bjJJA','username','../../config/constants','TeGti','tRuqL','vCTFa','\x20\x20Stack:\x20','exit','3033114hvvCno','mdXsT','ndlZK','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','nzHll','pre-check-cluster-args-not-passed','Report\x20saved\x20in\x20','AhqwZ','string','desc','usAli','pre-check-grid-profile-empty','`\x20already\x20exists','vtexd','Ynfys','ZBKMZ','`\x20,error\x20:\x20','ObvST','Cluster\x20details\x0a-----------------------\x0a','sUMIX','UEGsH','clusterRegion','IrJjq','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','XAZBV','OOTeY','toCfi','https://','isTls1_2_SUPPORTED','TLSv1_2_client_method','User\x20Access','RnXgW','uuid','Nxfeg','hlTeN','grid-profile','Ulkhb','lDjyn','5hZUAIm','message','../../utils/utilityMethods','DBYIl','Error\x20Details:\x0a','getUTCFullYear','code','GvzRj','NhdZo','wdYYJ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','oWhfk','LfIjD','Browserstack','gnJZw','password','writeFileSync','TWhYb','539652iJMTjg','ppOMB','.txt','Message:\x20','<UsernamePlaceholder>','ZfQgU','\x20\x20Message:\x20','gwBoF','status','448641RTwMhc','ogpXr','SAgiS','bshuk','unable\x20to\x20verify\x20if\x20cluster\x20`','vaYax','GET','INFO','debug','bstackAccesskey','isCliToolInstalled','handler','lbPZl','Qwaef','SCyTR','mcIAQ','nsLnk','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','parse','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','forEach','replace','Failure','info','58122dSvQYL','260FotJeY','NjZpG','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','YKnNH','adygp','udmFm'];a17_0x4c85=function(){return _0x33222a;};return a17_0x4c85();}async function generateReport(_0x2adeda,_0x1171ee){const _0xbd65e7=a17_0x8d2f87,_0x17f20b={'SCyTR':function(_0x3b09f2,_0x36a337){return _0x3b09f2+_0x36a337;},'CuBst':_0xbd65e7(0x288),'PoBIM':'Failure','TeGti':function(_0x375d04,_0x261ade){return _0x375d04||_0x261ade;},'gwBoF':_0xbd65e7(0x1d1),'OOTeY':_0xbd65e7(0x247),'cbaMb':_0xbd65e7(0x22f),'ZfQgU':function(_0x2976d3,_0x38f479){return _0x2976d3!=_0x38f479;},'XRZTq':_0xbd65e7(0x205),'Qwaef':_0xbd65e7(0x1b7),'vaYax':function(_0x271cc8){return _0x271cc8();}};let _0x370a25='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0xbd65e7(0x1f9)]+'\x20===\x0a\x0a';return _0x2adeda[_0xbd65e7(0x272)]((_0x29f4a4,_0xbe94f5)=>{const _0x59ebe9=_0xbd65e7,{header:_0x14126f,response:_0x35e9d7}=_0x29f4a4,{status:_0x5dab3a,data:_0x26b981,error:_0x16b333}=_0x35e9d7;_0x370a25+=_0x14126f+'\x20#'+_0x17f20b[_0x59ebe9(0x26c)](_0xbe94f5,0x1)+'\x0a',_0x370a25+=_0x59ebe9(0x20f)+(_0x5dab3a?_0x17f20b[_0x59ebe9(0x1a8)]:_0x17f20b[_0x59ebe9(0x206)])+'\x0a',_0x370a25+='Message:\x20'+_0x17f20b[_0x59ebe9(0x218)](_0x26b981,_0x17f20b['gwBoF'])+'\x0a',_0x16b333&&(_0x370a25+=_0x17f20b[_0x59ebe9(0x236)],_0x370a25+=_0x59ebe9(0x25b)+(_0x16b333['message']||_0x17f20b[_0x59ebe9(0x25c)])+'\x0a',_0x370a25+=_0x59ebe9(0x1ad)+(_0x16b333['code']||_0x17f20b[_0x59ebe9(0x25c)])+'\x0a',_0x370a25+=_0x59ebe9(0x21b)+(_0x16b333[_0x59ebe9(0x1a6)]||_0x17f20b['gwBoF'])+'\x0a'),_0x370a25+='\x0a\x0a';}),_0x370a25+=_0x17f20b['cbaMb'],_0x17f20b[_0xbd65e7(0x25a)](_0x1171ee,null)?_0x370a25+=_0xbd65e7(0x197)+global_registry[_0xbd65e7(0x1f0)]+'\x20'+(_0x1171ee?_0x17f20b[_0xbd65e7(0x1dd)]:_0x17f20b[_0xbd65e7(0x26b)])+'\x0a\x0a':_0x370a25+=_0xbd65e7(0x197)+global_registry[_0xbd65e7(0x1f0)]+_0xbd65e7(0x199),_0x370a25+=_0x17f20b[_0xbd65e7(0x263)](getSystemMetaData),_0x370a25;};exports[a17_0x8d2f87(0x269)]=async function(_0x5ca47c){const _0xf6f77c=a17_0x8d2f87,_0x29b369={'SqMms':function(_0x2c912a){return _0x2c912a();},'bwyIS':function(_0x4350a0){return _0x4350a0();},'WXHCQ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jPujw':function(_0x5cc6f4,_0x202df6,_0x491c3c,_0x45df53,_0x63d2fe,_0x23ee2c,_0x361a80,_0x4c9714){return _0x5cc6f4(_0x202df6,_0x491c3c,_0x45df53,_0x63d2fe,_0x23ee2c,_0x361a80,_0x4c9714);},'usAli':_0xf6f77c(0x19e),'ndlZK':_0xf6f77c(0x1fe),'APXcm':'error','NolrC':function(_0x15d23b,_0x304a5f,_0xad2b89,_0x3cf875,_0x5775a0,_0x2c445f,_0x186576){return _0x15d23b(_0x304a5f,_0xad2b89,_0x3cf875,_0x5775a0,_0x2c445f,_0x186576);},'OUBjQ':function(_0x3133e5){return _0x3133e5();},'XAZBV':_0xf6f77c(0x259),'YKnNH':_0xf6f77c(0x1c8),'ELQDe':function(_0xa7dcba,_0x1dc0f0,_0x533162){return _0xa7dcba(_0x1dc0f0,_0x533162);},'ZBKMZ':function(_0x5508c2,_0x17924f,_0xba2d7e){return _0x5508c2(_0x17924f,_0xba2d7e);},'KSfGD':function(_0x1c94d6,_0x41a236,_0x5f4842,_0x18934b,_0x59be77,_0x4c823c,_0x539a85){return _0x1c94d6(_0x41a236,_0x5f4842,_0x18934b,_0x59be77,_0x4c823c,_0x539a85);},'RGCcp':_0xf6f77c(0x1e3),'AqTEC':function(_0x23a1a6,_0x3657f6,_0xc043cc){return _0x23a1a6(_0x3657f6,_0xc043cc);},'BczDn':_0xf6f77c(0x1a1),'Degdh':_0xf6f77c(0x209),'Ynfys':function(_0x15bd90,_0x5bc020,_0x38d8c3){return _0x15bd90(_0x5bc020,_0x38d8c3);},'hAoHR':_0xf6f77c(0x1db),'NjZpG':function(_0x400fc9,_0x5e5009,_0x3cc17f){return _0x400fc9(_0x5e5009,_0x3cc17f);},'mcIAQ':'isTrialGridAccessible','FGkUq':function(_0x331862,_0x1323c5){return _0x331862(_0x1323c5);},'UZUZF':_0xf6f77c(0x23a),'bURbX':_0xf6f77c(0x239),'AFbaw':_0xf6f77c(0x1d0),'AfuqL':_0xf6f77c(0x23b),'UmvEi':'Whitelisted\x20browserstack','XpKzc':'SSL\x20Configured','LnCql':function(_0x10e019,_0x1f95c9){return _0x10e019+_0x1f95c9;},'sequE':_0xf6f77c(0x19d),'IPAGx':'pre-check-failed'};let _0x246baf,_0x302d43;try{global_registry['requestId']=_0x29b369[_0xf6f77c(0x1d5)](uuidv4);!fs[_0xf6f77c(0x1ae)](_0x29b369['bwyIS'](getCredentialsPath))&&(_0x302d43=_0x29b369['WXHCQ'],logger[_0xf6f77c(0x1e6)](_0x302d43),await _0x29b369[_0xf6f77c(0x212)](reportToGalactusAndSendToEDS,_0x5ca47c,_0x246baf,_0x302d43,messageTypes[_0xf6f77c(0x1b9)],_0x29b369[_0xf6f77c(0x227)],_0x29b369[_0xf6f77c(0x21f)],_0x29b369[_0xf6f77c(0x1c9)]),process[_0xf6f77c(0x21c)](0x1));_0x29b369[_0xf6f77c(0x1f1)](sendInstrumentationEvent,_0x5ca47c,_0x29b369[_0xf6f77c(0x227)],messageTypes[_0xf6f77c(0x265)],null,null,_0x5ca47c);const _0x5a319c=JSON[_0xf6f77c(0x270)](fs[_0xf6f77c(0x1a5)](_0x29b369['OUBjQ'](getCredentialsPath)));global_registry[_0xf6f77c(0x1ef)]=_0x5a319c[_0xf6f77c(0x250)][_0xf6f77c(0x216)],global_registry[_0xf6f77c(0x267)]=_0x5a319c[_0xf6f77c(0x250)][_0xf6f77c(0x252)];const _0x597a20=WS_ENDPOINT[_0xf6f77c(0x273)](_0x29b369[_0xf6f77c(0x235)],_0x5a319c['Browserstack']['username'])[_0xf6f77c(0x273)](_0x29b369[_0xf6f77c(0x27a)],_0x5a319c[_0xf6f77c(0x250)][_0xf6f77c(0x252)]),_0x22e4a5={};_0x22e4a5[_0xf6f77c(0x1e2)]=ws,_0x22e4a5[_0xf6f77c(0x282)]=0x36ee80,_0x246baf=new ReconnectingWebSocket(_0x597a20,[],_0x22e4a5),global_registry[_0xf6f77c(0x20e)]=_0x29b369[_0xf6f77c(0x20c)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0xf6f77c(0x267)]),await _0x29b369[_0xf6f77c(0x22c)](inputValidation,_0x5ca47c,_0x246baf),logger['info'](_0xf6f77c(0x1c0)+global_registry['cloudProvider']+_0xf6f77c(0x210)+global_registry[_0xf6f77c(0x232)]);let _0x491809=await _0x29b369[_0xf6f77c(0x1cb)](getCloudProviderObjectWithOutInit,global_registry[_0xf6f77c(0x1f9)],global_registry[_0xf6f77c(0x1f0)],_0x29b369['RGCcp'],_0x246baf,webSocketUtils,_0x5ca47c);const _0x3ff42a=await _0x491809[_0xf6f77c(0x268)]();_0x29b369[_0xf6f77c(0x1ea)](printResponse,_0x29b369['BczDn'],_0x3ff42a),_0x491809=await _0x491809['init']();let _0x44e70d=![];try{_0x44e70d=await _0x491809[_0xf6f77c(0x1dc)]();}catch(_0x1eafac){const _0x2bcbc0=_0x29b369['Degdh']['split']('|');let _0x29db8f=0x0;while(!![]){switch(_0x2bcbc0[_0x29db8f++]){case'0':_0x302d43=_0xf6f77c(0x262)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0xf6f77c(0x232)]+_0xf6f77c(0x22d)+_0x1eafac;continue;case'1':_0x302d43+='\x0a'+JSON['stringify'](_0x1eafac[_0xf6f77c(0x1a6)]);continue;case'2':logger[_0xf6f77c(0x1e6)](_0x302d43);continue;case'3':await _0x29b369['jPujw'](reportToGalactusAndSendToEDS,_0x5ca47c,_0x246baf,_0x302d43,messageTypes['ERROR'],_0x29b369[_0xf6f77c(0x227)],'cluster-check-failed-'+global_registry[_0xf6f77c(0x1f9)],_0x29b369[_0xf6f77c(0x1c9)]);continue;case'4':_0x44e70d=null;continue;}break;}}_0x44e70d&&logger[_0xf6f77c(0x275)]('Cluster\x20`'+global_registry[_0xf6f77c(0x1f0)]+_0xf6f77c(0x229));const _0x161b9c=await _0x491809['checkAccess']();_0x29b369[_0xf6f77c(0x22b)](printResponse,_0x29b369['hAoHR'],_0x161b9c);const _0x276a93=await _0x29b369[_0xf6f77c(0x27e)](curlRequest);_0x29b369[_0xf6f77c(0x278)](printResponse,_0x29b369[_0xf6f77c(0x26d)],_0x276a93);const _0x54c1df=await _0x29b369['FGkUq'](isTlsSupported,_0x29b369['UZUZF']);_0x29b369['ZBKMZ'](printResponse,_0x29b369['bURbX'],_0x54c1df);const _0x55d0a1={};_0x55d0a1[_0xf6f77c(0x196)]=_0x29b369['AFbaw'],_0x55d0a1[_0xf6f77c(0x1af)]=_0x3ff42a;const _0x1e72d8={};_0x1e72d8['header']=_0x29b369['AfuqL'],_0x1e72d8[_0xf6f77c(0x1af)]=_0x161b9c;const _0x2f209b={};_0x2f209b['header']=_0x29b369['UmvEi'],_0x2f209b[_0xf6f77c(0x1af)]=_0x276a93;const _0x303725={};_0x303725[_0xf6f77c(0x196)]=_0x29b369[_0xf6f77c(0x1e7)],_0x303725[_0xf6f77c(0x1af)]=_0x54c1df;const _0x1eab63=[_0x55d0a1,_0x1e72d8,_0x2f209b,_0x303725],_0x29f2d1=await _0x29b369[_0xf6f77c(0x1ea)](generateReport,_0x1eab63,_0x44e70d),_0x4e910e=new Date(),_0x325af7=_0x4e910e[_0xf6f77c(0x248)]()+'_'+_0x29b369[_0xf6f77c(0x20b)](_0x4e910e['getUTCMonth'](),0x1)+'_'+_0x4e910e[_0xf6f77c(0x1bd)]()+'_'+_0x4e910e[_0xf6f77c(0x1b4)]()+'_'+_0x4e910e[_0xf6f77c(0x1c6)](),_0x5bca3b=_0xf6f77c(0x1d6)+_0x325af7+_0xf6f77c(0x257);fs[_0xf6f77c(0x253)](_0x5bca3b,_0x29f2d1,_0x29b369[_0xf6f77c(0x20d)]),logger[_0xf6f77c(0x275)](_0xf6f77c(0x223)+_0x5bca3b),process[_0xf6f77c(0x21c)](0x0);}catch(_0x48d4d6){let _0x262218='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x48d4d6+'\x20';logger[_0xf6f77c(0x1e6)](_0x262218),_0x262218+='\x0a'+JSON[_0xf6f77c(0x1d8)](_0x48d4d6['stack']),logger[_0xf6f77c(0x266)]('stack\x20trace\x20'+_0x48d4d6[_0xf6f77c(0x1a6)]);if(_0x246baf){const _0x2dfecc={};_0x2dfecc['type']=WS_EVENTS[_0xf6f77c(0x1be)],_0x2dfecc[_0xf6f77c(0x244)]=_0x262218,webSocketUtils[_0xf6f77c(0x1b5)](_0x246baf,_0x2dfecc,_0x29b369[_0xf6f77c(0x1c9)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x151f65={};_0x151f65['error']=_0x262218,await _0x29b369[_0xf6f77c(0x1f1)](sendInstrumentationEvent,_0x5ca47c,_0x29b369[_0xf6f77c(0x227)],messageTypes['ERROR'],_0x29b369[_0xf6f77c(0x207)],_0x151f65,_0x5ca47c),process[_0xf6f77c(0x21c)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x2caa(_0x462e58,_0x43733a){const _0x583205=a18_0x5832();return a18_0x2caa=function(_0x2caa08,_0x55c301){_0x2caa08=_0x2caa08-0x8e;let _0x36658f=_0x583205[_0x2caa08];return _0x36658f;},a18_0x2caa(_0x462e58,_0x43733a);}const a18_0x5008a5=a18_0x2caa;(function(_0x47f8e4,_0x5cbb2b){const _0xae8a29=a18_0x2caa,_0x22ed81=_0x47f8e4();while(!![]){try{const _0x3bb1dc=-parseInt(_0xae8a29(0x9d))/0x1*(-parseInt(_0xae8a29(0x9a))/0x2)+-parseInt(_0xae8a29(0xa8))/0x3*(parseInt(_0xae8a29(0x96))/0x4)+parseInt(_0xae8a29(0x9c))/0x5*(-parseInt(_0xae8a29(0xa2))/0x6)+-parseInt(_0xae8a29(0xa0))/0x7+-parseInt(_0xae8a29(0xa6))/0x8+parseInt(_0xae8a29(0x8f))/0x9*(parseInt(_0xae8a29(0x90))/0xa)+parseInt(_0xae8a29(0xa5))/0xb*(parseInt(_0xae8a29(0x9f))/0xc);if(_0x3bb1dc===_0x5cbb2b)break;else _0x22ed81['push'](_0x22ed81['shift']());}catch(_0x4d73a7){_0x22ed81['push'](_0x22ed81['shift']());}}}(a18_0x5832,0xe1ee6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x5008a5(0x97));function a18_0x5832(){const _0x1213e6=['help','16214SLQndu','11816104UmdCiu','start_commands','3syfLPR','desc','Start\x20an\x20existing\x20Automation\x20grid.','11818467KYFyTP','10lqgnAi','recommendCommands','usage','builder','demandCommand','epilogue','143372gIFRdw','../config/constants','handler','strict','2huKajM','command','4227205TFKGUR','1484347qmwgEt','start','18996MZJxOh','7011900GjwMvp','kqwJf','12cGigWp','JLaAD'];a18_0x5832=function(){return _0x1213e6;};return a18_0x5832();}exports[a18_0x5008a5(0x9b)]=a18_0x5008a5(0x9e),exports[a18_0x5008a5(0xa9)]=a18_0x5008a5(0x8e),exports[a18_0x5008a5(0x93)]=function(_0x59ab85){const _0x1e6278=a18_0x5008a5,_0x1a3bb1={};_0x1a3bb1[_0x1e6278(0xa3)]=_0x1e6278(0xa7),_0x1a3bb1[_0x1e6278(0xa1)]=_0x1e6278(0xa4);const _0x3e08d3=_0x1a3bb1;return _0x59ab85[_0x1e6278(0x92)](HELP_HEADER_MESSAGE[_0x1e6278(0x9e)])[_0x1e6278(0x95)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3e08d3[_0x1e6278(0xa3)])[_0x1e6278(0x94)]()[_0x1e6278(0x91)]()[_0x1e6278(0x99)]()['help'](_0x3e08d3[_0x1e6278(0xa1)]);},exports[a18_0x5008a5(0x98)]=function(_0x1a0895){};
1
+ const a18_0x1a68f0=a18_0x4e4d;(function(_0x6b2fa2,_0x2d3da9){const _0x16f0fb=a18_0x4e4d,_0x24ab65=_0x6b2fa2();while(!![]){try{const _0x4e0478=-parseInt(_0x16f0fb(0x1fe))/0x1+-parseInt(_0x16f0fb(0x1f1))/0x2+parseInt(_0x16f0fb(0x1f7))/0x3*(-parseInt(_0x16f0fb(0x1f5))/0x4)+-parseInt(_0x16f0fb(0x1f6))/0x5*(parseInt(_0x16f0fb(0x1fc))/0x6)+parseInt(_0x16f0fb(0x1f9))/0x7+parseInt(_0x16f0fb(0x201))/0x8*(parseInt(_0x16f0fb(0x1f3))/0x9)+parseInt(_0x16f0fb(0x1ee))/0xa*(parseInt(_0x16f0fb(0x1ff))/0xb);if(_0x4e0478===_0x2d3da9)break;else _0x24ab65['push'](_0x24ab65['shift']());}catch(_0x5751e6){_0x24ab65['push'](_0x24ab65['shift']());}}}(a18_0x2dff,0xad5b0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1a68f0(0x203));function a18_0x4e4d(_0x6686d8,_0x1c53e0){const _0x2dff2d=a18_0x2dff();return a18_0x4e4d=function(_0x4e4d2a,_0x3e80e6){_0x4e4d2a=_0x4e4d2a-0x1ea;let _0x5cb1c1=_0x2dff2d[_0x4e4d2a];return _0x5cb1c1;},a18_0x4e4d(_0x6686d8,_0x1c53e0);}exports[a18_0x1a68f0(0x1eb)]='start',exports[a18_0x1a68f0(0x1ec)]=a18_0x1a68f0(0x1fd),exports[a18_0x1a68f0(0x1f8)]=function(_0x2c3d18){const _0x4f3659=a18_0x1a68f0,_0x3ada0d={};_0x3ada0d['azMBW']=_0x4f3659(0x1ef),_0x3ada0d[_0x4f3659(0x1f0)]=_0x4f3659(0x1f2);const _0x240f8c=_0x3ada0d;return _0x2c3d18['usage'](HELP_HEADER_MESSAGE[_0x4f3659(0x1fb)])[_0x4f3659(0x200)](HELP_FOOTER_MESSAGE)[_0x4f3659(0x1ea)](_0x240f8c[_0x4f3659(0x202)])[_0x4f3659(0x204)]()[_0x4f3659(0x1f4)]()[_0x4f3659(0x1fa)]()['help'](_0x240f8c[_0x4f3659(0x1f0)]);},exports[a18_0x1a68f0(0x1ed)]=function(_0x22ef57){};function a18_0x2dff(){const _0x345e87=['618xOhRuT','Start\x20an\x20existing\x20Automation\x20grid.','531140sMRkJo','11ZtsjdX','epilogue','480fuKTxg','azMBW','../config/constants','demandCommand','commandDir','command','desc','handler','33597790AmlPkr','start_commands','QmSCb','2296574uOqVuV','help','17721bJersl','recommendCommands','804052eQfiSf','26375NDVVwC','9EjVwhd','builder','405552tqLzZo','strict','start'];a18_0x2dff=function(){return _0x345e87;};return a18_0x2dff();}
@@ -1 +1 @@
1
- const a19_0x508e21=a19_0x25e0;function a19_0x25e0(_0x3d655c,_0x59db60){const _0x14af82=a19_0x14af();return a19_0x25e0=function(_0x25e0c7,_0x4c5d56){_0x25e0c7=_0x25e0c7-0x10b;let _0x28ef68=_0x14af82[_0x25e0c7];return _0x28ef68;},a19_0x25e0(_0x3d655c,_0x59db60);}(function(_0x2b198c,_0x22243c){const _0x2e0e39=a19_0x25e0,_0xa197ec=_0x2b198c();while(!![]){try{const _0x31d091=parseInt(_0x2e0e39(0x116))/0x1+parseInt(_0x2e0e39(0x119))/0x2*(parseInt(_0x2e0e39(0x16a))/0x3)+-parseInt(_0x2e0e39(0x11e))/0x4*(-parseInt(_0x2e0e39(0x157))/0x5)+-parseInt(_0x2e0e39(0x13d))/0x6*(-parseInt(_0x2e0e39(0x12b))/0x7)+-parseInt(_0x2e0e39(0x151))/0x8*(parseInt(_0x2e0e39(0x153))/0x9)+-parseInt(_0x2e0e39(0x15d))/0xa*(-parseInt(_0x2e0e39(0x15a))/0xb)+-parseInt(_0x2e0e39(0x156))/0xc;if(_0x31d091===_0x22243c)break;else _0xa197ec['push'](_0xa197ec['shift']());}catch(_0x167d2a){_0xa197ec['push'](_0xa197ec['shift']());}}}(a19_0x14af,0xb8ac3));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x508e21(0x12e)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x508e21(0x12c)),{logger}=require(a19_0x508e21(0x126)),{getCredentialsPath,getGridDetails}=require(a19_0x508e21(0x110)),{scaleUpHubDeployment}=require(a19_0x508e21(0x150)),{sendInstrumentationEvent}=require(a19_0x508e21(0x14b)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x508e21(0x12a)),{getCloudProviderObject}=require(a19_0x508e21(0x114));function a19_0x14af(){const _0x4c49f2=['help','reconnecting-websocket','replace','DFOmG','cbyhS','server-error','clusterName','<UsernamePlaceholder>','exit','Starting\x20grid\x20','init-not-called','mvPZY','Skip\x20insecure\x20cert\x20verification.','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','body','name','6dXZSvw','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackAccesskey','password','debug','Adding\x20Websocket\x20listeners','type','message','Qyvuj','bSYQC','builder','Grid\x20started','ERROR','../../utils/instrumentationUtils','XolKS','spOGw','readFileSync','username','../../utils/gridComponents','202424APquEd','usage','54FAYrJm','vIKzK','ZkPCr','19895100dYPlHZ','17425pnxpPo','invalid-grid-id','gridId','6523gprXxa','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','bKaGh','2450zdcHlM','WebSocket','grid-id','MJyKz','skipTlsCertVerify','start','JKSEY','cTUhS','grid','OSIjt','ieaDC','default','GxsRm','66MrbkaG','error','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZorMF','epilogue','stack','unauthorised','region','TmRJa','addListeners','command','parse','../../utils/utilityMethods','bstackUsername','<PasswordPlaceholder>','cieYM','../../cloudproviders/utils','LRMeG','551057rFcGIh','description','vXOgB','38816AfsycM','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','options','cloudProvider','start-grid-called','236RfkyQI','INFO','clusterRegion','ynhDL','eCHhb','stringify','boolean','statusCode','../../config/logger','skip-tls-cert-verify','Browserstack','MxdsX','../../utils/createk8sClient','8660603sBEqPq','../../config/constants'];a19_0x14af=function(){return _0x4c49f2;};return a19_0x14af();}exports[a19_0x508e21(0x10e)]=a19_0x508e21(0x165),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x508e21(0x148)]=function(_0x1ffb29){const _0x52e346=a19_0x508e21,_0x3d340e={};_0x3d340e[_0x52e346(0x129)]=_0x52e346(0x13a),_0x3d340e[_0x52e346(0x113)]='string',_0x3d340e[_0x52e346(0x167)]=_0x52e346(0x139),_0x3d340e[_0x52e346(0x130)]=_0x52e346(0x124),_0x3d340e[_0x52e346(0x138)]=_0x52e346(0x12d);const _0x17158c=_0x3d340e,_0x421445={};_0x421445['description']=_0x17158c[_0x52e346(0x129)],_0x421445[_0x52e346(0x144)]=_0x17158c[_0x52e346(0x113)];const _0x2eec04={};_0x2eec04[_0x52e346(0x117)]=_0x17158c['ieaDC'],_0x2eec04[_0x52e346(0x144)]=_0x17158c[_0x52e346(0x130)],_0x2eec04[_0x52e346(0x168)]=![];const _0x1bc40e={};return _0x1bc40e[_0x52e346(0x15f)]=_0x421445,_0x1bc40e[_0x52e346(0x127)]=_0x2eec04,_0x1ffb29[_0x52e346(0x152)](HELP_HEADER_MESSAGE[_0x52e346(0x162)])[_0x52e346(0x16f)](HELP_FOOTER_MESSAGE)[_0x52e346(0x11b)](_0x1bc40e)[_0x52e346(0x12d)](_0x17158c[_0x52e346(0x138)])['argv'];},exports['handler']=async function(_0x34977f){const _0x3703f6=a19_0x508e21,_0x2b48ac={'Qyvuj':_0x3703f6(0x15b),'LRMeG':function(_0x3baeaa){return _0x3baeaa();},'GJlzG':_0x3703f6(0x11a),'JKSEY':function(_0x21bdb6,_0x441829,_0x56ccc8,_0x3d3a3f,_0xc6357,_0x4bb849,_0x3cd0ce){return _0x21bdb6(_0x441829,_0x56ccc8,_0x3d3a3f,_0xc6357,_0x4bb849,_0x3cd0ce);},'vXOgB':_0x3703f6(0x11d),'TmRJa':_0x3703f6(0x137),'spOGw':_0x3703f6(0x134),'eCHhb':_0x3703f6(0x112),'ynhDL':_0x3703f6(0x143),'WavsX':function(_0x5db443,_0x457eae,_0x248e0e,_0x164eeb){return _0x5db443(_0x457eae,_0x248e0e,_0x164eeb);},'OSIjt':function(_0xe7ce99,_0x22d648,_0x2bd646){return _0xe7ce99(_0x22d648,_0x2bd646);},'GxsRm':function(_0x361868,_0x42a2ee,_0xa52fa9){return _0x361868(_0x42a2ee,_0xa52fa9);},'cTUhS':_0x3703f6(0x149),'XolKS':function(_0x38fdf3,_0x1656d2){return _0x38fdf3===_0x1656d2;},'bKaGh':_0x3703f6(0x16d),'ZorMF':function(_0x1dc23d,_0x31affc,_0x32fba5,_0xfd9f7d,_0x5c972d,_0x5b0be9,_0x187952){return _0x1dc23d(_0x31affc,_0x32fba5,_0xfd9f7d,_0x5c972d,_0x5b0be9,_0x187952);},'bSYQC':_0x3703f6(0x171),'ZkPCr':function(_0x5d2fd5,_0x217ddd){return _0x5d2fd5===_0x217ddd;},'MJyKz':_0x3703f6(0x158),'cbyhS':function(_0xbde6a2,_0x3feef7,_0x34fba7,_0x5eb4b0,_0x3f21ff,_0x3f3b70,_0xd97f0c){return _0xbde6a2(_0x3feef7,_0x34fba7,_0x5eb4b0,_0x3f21ff,_0x3f3b70,_0xd97f0c);},'vIKzK':_0x3703f6(0x132)};let _0x8ff5d;try{!_0x34977f[_0x3703f6(0x159)]&&(logger['error'](_0x2b48ac[_0x3703f6(0x146)]),process[_0x3703f6(0x135)](0x1));!fs[_0x3703f6(0x13e)](_0x2b48ac['LRMeG'](getCredentialsPath))&&(logger[_0x3703f6(0x16b)](_0x2b48ac['GJlzG']),await _0x2b48ac[_0x3703f6(0x163)](sendInstrumentationEvent,_0x34977f,_0x2b48ac['vXOgB'],messageTypes[_0x3703f6(0x14a)],_0x2b48ac[_0x3703f6(0x10c)],null,_0x34977f),process[_0x3703f6(0x135)](0x1));logger[_0x3703f6(0x16c)](_0x3703f6(0x136)+_0x34977f[_0x3703f6(0x159)]),await _0x2b48ac[_0x3703f6(0x163)](sendInstrumentationEvent,_0x34977f,_0x2b48ac[_0x3703f6(0x118)],messageTypes[_0x3703f6(0x11f)],null,null,_0x34977f);const _0x133a6b=JSON[_0x3703f6(0x10f)](fs[_0x3703f6(0x14e)](_0x2b48ac[_0x3703f6(0x115)](getCredentialsPath)));global_registry[_0x3703f6(0x111)]=_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x14f)],global_registry[_0x3703f6(0x140)]=_0x133a6b['Browserstack']['password'];const _0xb2c8af=WS_ENDPOINT[_0x3703f6(0x12f)](_0x2b48ac[_0x3703f6(0x14d)],_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x14f)])[_0x3703f6(0x12f)](_0x2b48ac[_0x3703f6(0x122)],_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x141)]),_0x1158d5={};_0x1158d5[_0x3703f6(0x15e)]=ws,_0x1158d5['connectionTimeout']=0x36ee80,_0x8ff5d=new ReconnectingWebSocket(_0xb2c8af,[],_0x1158d5),logger[_0x3703f6(0x142)](_0x2b48ac[_0x3703f6(0x121)]),webSocketUtils[_0x3703f6(0x10d)](_0x8ff5d,_0x34977f['user'],_0x34977f[_0x3703f6(0x141)]);const [_0x67b375,_0xabde5e]=await _0x2b48ac['WavsX'](getGridDetails,_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x14f)],_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x141)],_0x34977f[_0x3703f6(0x159)]);if(_0xabde5e){const _0x5c4f51=_0xabde5e[_0x3703f6(0x16c)];global_registry[_0x3703f6(0x11c)]=_0x5c4f51[_0x3703f6(0x11c)],global_registry[_0x3703f6(0x120)]=_0x5c4f51[_0x3703f6(0x10b)],global_registry['clusterName']=_0x5c4f51['clusterName'];const _0x30c38e=await _0x2b48ac[_0x3703f6(0x163)](getCloudProviderObject,_0x5c4f51[_0x3703f6(0x11c)],_0x5c4f51[_0x3703f6(0x133)],_0x5c4f51['name'],_0x8ff5d,webSocketUtils,_0x34977f),[_0xb6f410,_0x34a624,_0x13f011,_0x5a36f3,_0xa0ec1f,_0x42be6c]=await _0x2b48ac[_0x3703f6(0x166)](createK8sClient,_0x30c38e,_0x34977f[_0x3703f6(0x161)]);await _0x2b48ac[_0x3703f6(0x169)](scaleUpHubDeployment,_0x34a624,_0x5c4f51[_0x3703f6(0x13c)]),logger[_0x3703f6(0x16c)](_0x2b48ac[_0x3703f6(0x164)]),process[_0x3703f6(0x135)](0x0);}_0x2b48ac[_0x3703f6(0x14c)](_0x67b375[_0x3703f6(0x125)],0x191)&&(logger[_0x3703f6(0x16b)](_0x2b48ac[_0x3703f6(0x15c)]),await _0x2b48ac[_0x3703f6(0x16e)](sendInstrumentationEvent,_0x34977f,_0x2b48ac[_0x3703f6(0x118)],messageTypes[_0x3703f6(0x14a)],_0x2b48ac[_0x3703f6(0x147)],null,_0x34977f),process[_0x3703f6(0x135)](0x1)),_0x2b48ac[_0x3703f6(0x155)](_0x67b375[_0x3703f6(0x125)],0x190)&&(logger['error'](JSON[_0x3703f6(0x10f)](_0x67b375[_0x3703f6(0x13b)])[_0x3703f6(0x145)]),await _0x2b48ac[_0x3703f6(0x163)](sendInstrumentationEvent,_0x34977f,_0x2b48ac['vXOgB'],messageTypes[_0x3703f6(0x14a)],_0x2b48ac[_0x3703f6(0x160)],null,_0x34977f),process[_0x3703f6(0x135)](0x1)),logger[_0x3703f6(0x16b)](_0x3703f6(0x13f)+JSON['stringify'](_0x67b375)),await _0x2b48ac[_0x3703f6(0x131)](sendInstrumentationEvent,_0x34977f,_0x2b48ac[_0x3703f6(0x118)],messageTypes[_0x3703f6(0x14a)],_0x2b48ac[_0x3703f6(0x154)],_0x67b375,_0x34977f),process[_0x3703f6(0x135)](0x1);}catch(_0x3a6d5e){const _0x29a4be='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x3a6d5e+'\x20\x0a'+JSON[_0x3703f6(0x123)](_0x3a6d5e[_0x3703f6(0x170)])+'\x20';logger[_0x3703f6(0x16b)](_0x29a4be),process[_0x3703f6(0x135)](0x1);}};
1
+ const a19_0x5ea4ac=a19_0x1bf6;(function(_0x1dad68,_0x526c60){const _0x149cdf=a19_0x1bf6,_0x1fdd40=_0x1dad68();while(!![]){try{const _0x11e412=-parseInt(_0x149cdf(0x10c))/0x1*(parseInt(_0x149cdf(0x148))/0x2)+-parseInt(_0x149cdf(0x11a))/0x3+-parseInt(_0x149cdf(0x13d))/0x4+parseInt(_0x149cdf(0x10b))/0x5+parseInt(_0x149cdf(0x14d))/0x6+-parseInt(_0x149cdf(0x14a))/0x7+parseInt(_0x149cdf(0x14e))/0x8;if(_0x11e412===_0x526c60)break;else _0x1fdd40['push'](_0x1fdd40['shift']());}catch(_0x4780f8){_0x1fdd40['push'](_0x1fdd40['shift']());}}}(a19_0x1eb7,0x1d5b2));function a19_0x1bf6(_0x51a707,_0x4a775a){const _0x1eb749=a19_0x1eb7();return a19_0x1bf6=function(_0x1bf61e,_0x1c16eb){_0x1bf61e=_0x1bf61e-0xff;let _0x3335dc=_0x1eb749[_0x1bf61e];return _0x3335dc;},a19_0x1bf6(_0x51a707,_0x4a775a);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5ea4ac(0x103)),{logger}=require(a19_0x5ea4ac(0x115)),{getCredentialsPath,getGridDetails}=require(a19_0x5ea4ac(0x10f)),{scaleUpHubDeployment}=require(a19_0x5ea4ac(0x104)),{sendInstrumentationEvent}=require(a19_0x5ea4ac(0x139)),webSocketUtils=require(a19_0x5ea4ac(0x155)),{createK8sClient}=require(a19_0x5ea4ac(0x15a)),{getCloudProviderObject}=require(a19_0x5ea4ac(0x153));exports[a19_0x5ea4ac(0x109)]=a19_0x5ea4ac(0x113),exports[a19_0x5ea4ac(0x107)]=a19_0x5ea4ac(0x131),exports[a19_0x5ea4ac(0x126)]=function(_0x80c3fc){const _0x3bb2a3=a19_0x5ea4ac,_0x4ccb33={};_0x4ccb33['zVMEU']=_0x3bb2a3(0x157),_0x4ccb33[_0x3bb2a3(0x13f)]=_0x3bb2a3(0x10a),_0x4ccb33['WTuvW']=_0x3bb2a3(0x143),_0x4ccb33['gGTZk']=_0x3bb2a3(0x117),_0x4ccb33['eWqfa']=_0x3bb2a3(0x121);const _0x2bf499=_0x4ccb33,_0x56a39e={};_0x56a39e[_0x3bb2a3(0x14f)]=_0x2bf499[_0x3bb2a3(0x12a)],_0x56a39e['type']=_0x2bf499[_0x3bb2a3(0x13f)];const _0x4080ea={};_0x4080ea['description']=_0x2bf499[_0x3bb2a3(0x12b)],_0x4080ea['type']=_0x2bf499[_0x3bb2a3(0x125)],_0x4080ea[_0x3bb2a3(0x15b)]=![];const _0xc950fb={};return _0xc950fb[_0x3bb2a3(0x108)]=_0x56a39e,_0xc950fb[_0x3bb2a3(0x10d)]=_0x4080ea,_0x80c3fc[_0x3bb2a3(0x138)](HELP_HEADER_MESSAGE[_0x3bb2a3(0x122)])[_0x3bb2a3(0x142)](HELP_FOOTER_MESSAGE)[_0x3bb2a3(0x156)](_0xc950fb)[_0x3bb2a3(0x121)](_0x2bf499[_0x3bb2a3(0x13e)])[_0x3bb2a3(0x13a)];},exports[a19_0x5ea4ac(0x147)]=async function(_0x54541a){const _0x55f1cb=a19_0x5ea4ac,_0x3c08c4={'AOOHv':_0x55f1cb(0x11f),'rZORU':function(_0x5856c5){return _0x5856c5();},'ynUiq':_0x55f1cb(0x145),'jlfpu':function(_0x3ad3e0,_0x2bb69d,_0x4bff41,_0x142d66,_0x47fcf4,_0x58f338,_0x21d3cd){return _0x3ad3e0(_0x2bb69d,_0x4bff41,_0x142d66,_0x47fcf4,_0x58f338,_0x21d3cd);},'fzNfx':_0x55f1cb(0x101),'qckzm':_0x55f1cb(0x14b),'ofzEj':_0x55f1cb(0x11d),'IZHCN':_0x55f1cb(0x136),'JqcKK':_0x55f1cb(0x120),'bGLbU':function(_0x346fbb,_0x157e25,_0x1b9eec,_0x26638d){return _0x346fbb(_0x157e25,_0x1b9eec,_0x26638d);},'jUInA':function(_0x32b58f,_0x5e0f8c,_0x450e68){return _0x32b58f(_0x5e0f8c,_0x450e68);},'TjeTg':function(_0x2f5543,_0x16c1d6,_0x214125){return _0x2f5543(_0x16c1d6,_0x214125);},'OynaR':'Grid\x20started','DGVvt':function(_0x5188fb,_0x4ef2ab){return _0x5188fb===_0x4ef2ab;},'iUjPC':_0x55f1cb(0x11c),'mrjGP':_0x55f1cb(0x159),'kEvEs':'invalid-grid-id','ymDzl':_0x55f1cb(0x14c)};let _0x141f0f;try{!_0x54541a[_0x55f1cb(0x154)]&&(logger[_0x55f1cb(0x140)](_0x3c08c4[_0x55f1cb(0x150)]),process[_0x55f1cb(0x105)](0x1));!fs['existsSync'](_0x3c08c4[_0x55f1cb(0x123)](getCredentialsPath))&&(logger[_0x55f1cb(0x140)](_0x3c08c4[_0x55f1cb(0x158)]),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4['fzNfx'],messageTypes[_0x55f1cb(0x132)],_0x3c08c4[_0x55f1cb(0x11b)],null,_0x54541a),process[_0x55f1cb(0x105)](0x1));logger[_0x55f1cb(0x128)]('Starting\x20grid\x20'+_0x54541a['gridId']),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4[_0x55f1cb(0x13c)],messageTypes[_0x55f1cb(0x100)],null,null,_0x54541a);const _0x1b1cf3=JSON[_0x55f1cb(0x12f)](fs['readFileSync'](_0x3c08c4[_0x55f1cb(0x123)](getCredentialsPath)));global_registry['bstackUsername']=_0x1b1cf3['Browserstack'][_0x55f1cb(0x137)],global_registry['bstackAccesskey']=_0x1b1cf3[_0x55f1cb(0x129)]['password'];const _0x4e4f88=WS_ENDPOINT[_0x55f1cb(0x149)](_0x3c08c4[_0x55f1cb(0x119)],_0x1b1cf3['Browserstack']['username'])[_0x55f1cb(0x149)](_0x3c08c4[_0x55f1cb(0x134)],_0x1b1cf3[_0x55f1cb(0x129)][_0x55f1cb(0x118)]),_0x1b5175={};_0x1b5175[_0x55f1cb(0x133)]=ws,_0x1b5175[_0x55f1cb(0x11e)]=0x36ee80,_0x141f0f=new ReconnectingWebSocket(_0x4e4f88,[],_0x1b5175),logger[_0x55f1cb(0x106)](_0x3c08c4[_0x55f1cb(0x146)]),webSocketUtils[_0x55f1cb(0x12d)](_0x141f0f,_0x54541a[_0x55f1cb(0x135)],_0x54541a[_0x55f1cb(0x118)]);const [_0x596cea,_0xeebe5b]=await _0x3c08c4[_0x55f1cb(0x10e)](getGridDetails,_0x1b1cf3[_0x55f1cb(0x129)][_0x55f1cb(0x137)],_0x1b1cf3[_0x55f1cb(0x129)][_0x55f1cb(0x118)],_0x54541a[_0x55f1cb(0x154)]);if(_0xeebe5b){const _0x31cca3=_0xeebe5b[_0x55f1cb(0x128)];global_registry[_0x55f1cb(0x12c)]=_0x31cca3[_0x55f1cb(0x12c)],global_registry[_0x55f1cb(0x114)]=_0x31cca3['region'],global_registry[_0x55f1cb(0x124)]=_0x31cca3[_0x55f1cb(0x124)];const _0x43859d=await _0x3c08c4['jlfpu'](getCloudProviderObject,_0x31cca3['cloudProvider'],_0x31cca3[_0x55f1cb(0x124)],_0x31cca3[_0x55f1cb(0x144)],_0x141f0f,webSocketUtils,_0x54541a),[_0x5d43d0,_0x576bc8,_0xa11bc6,_0x2f3bb4,_0x583e4a,_0x530ecf]=await _0x3c08c4[_0x55f1cb(0x127)](createK8sClient,_0x43859d,_0x54541a[_0x55f1cb(0x152)]);await _0x3c08c4['TjeTg'](scaleUpHubDeployment,_0x576bc8,_0x31cca3[_0x55f1cb(0x144)]),logger[_0x55f1cb(0x128)](_0x3c08c4['OynaR']),process[_0x55f1cb(0x105)](0x0);}_0x3c08c4[_0x55f1cb(0x141)](_0x596cea['statusCode'],0x191)&&(logger[_0x55f1cb(0x140)](_0x3c08c4[_0x55f1cb(0x13b)]),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4[_0x55f1cb(0x13c)],messageTypes[_0x55f1cb(0x132)],_0x3c08c4['mrjGP'],null,_0x54541a),process[_0x55f1cb(0x105)](0x1)),_0x3c08c4[_0x55f1cb(0x141)](_0x596cea[_0x55f1cb(0x111)],0x190)&&(logger[_0x55f1cb(0x140)](JSON[_0x55f1cb(0x12f)](_0x596cea[_0x55f1cb(0x12e)])[_0x55f1cb(0x112)]),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4['fzNfx'],messageTypes[_0x55f1cb(0x132)],_0x3c08c4[_0x55f1cb(0x102)],null,_0x54541a),process[_0x55f1cb(0x105)](0x1)),logger[_0x55f1cb(0x140)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x55f1cb(0x151)](_0x596cea)),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4[_0x55f1cb(0x13c)],messageTypes[_0x55f1cb(0x132)],_0x3c08c4[_0x55f1cb(0x130)],_0x596cea,_0x54541a),process[_0x55f1cb(0x105)](0x1);}catch(_0x4b2cf6){const _0x36a5c4=_0x55f1cb(0x116)+_0x4b2cf6+'\x20\x0a'+JSON[_0x55f1cb(0x151)](_0x4b2cf6[_0x55f1cb(0x110)])+'\x20';logger[_0x55f1cb(0x140)](_0x36a5c4),process['exit'](0x1);}};function a19_0x1eb7(){const _0x4bca66=['Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ynUiq','unauthorised','../../utils/createk8sClient','default','jlfpu','INFO','start-grid-called','kEvEs','../../config/constants','../../utils/gridComponents','exit','debug','desc','grid-id','command','string','791805ILGdWD','1vYdhbl','skip-tls-cert-verify','bGLbU','../../utils/utilityMethods','stack','statusCode','message','grid','clusterRegion','../../config/logger','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','boolean','password','ofzEj','211107tESVSD','qckzm','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','<UsernamePlaceholder>','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Adding\x20Websocket\x20listeners','help','start','rZORU','clusterName','gGTZk','builder','jUInA','info','Browserstack','zVMEU','WTuvW','cloudProvider','addListeners','body','parse','ymDzl','Start\x20an\x20existing\x20Automation\x20grid.','ERROR','WebSocket','IZHCN','user','<PasswordPlaceholder>','username','usage','../../utils/instrumentationUtils','argv','iUjPC','fzNfx','33856ecIwxl','eWqfa','yOdRz','error','DGVvt','epilogue','Skip\x20insecure\x20cert\x20verification.','name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JqcKK','handler','477744MRWagW','replace','448343JnOeRD','init-not-called','server-error','186954xbsUAx','2499808tyKuXW','description','AOOHv','stringify','skipTlsCertVerify','../../cloudproviders/utils','gridId','../../utils/webSocketUtils','options'];a19_0x1eb7=function(){return _0x4bca66;};return a19_0x1eb7();}
@@ -1 +1 @@
1
- const a20_0x155bf8=a20_0x3365;function a20_0x3365(_0x29b0d8,_0x43f80f){const _0x4a0c4c=a20_0x4a0c();return a20_0x3365=function(_0x336524,_0x5b75d4){_0x336524=_0x336524-0x1ba;let _0x22cec2=_0x4a0c4c[_0x336524];return _0x22cec2;},a20_0x3365(_0x29b0d8,_0x43f80f);}(function(_0x56bcd0,_0x5c4468){const _0x462f83=a20_0x3365,_0x48cbed=_0x56bcd0();while(!![]){try{const _0x5e8569=-parseInt(_0x462f83(0x1ba))/0x1+-parseInt(_0x462f83(0x1c8))/0x2+-parseInt(_0x462f83(0x1cf))/0x3+parseInt(_0x462f83(0x1c2))/0x4*(parseInt(_0x462f83(0x1ca))/0x5)+parseInt(_0x462f83(0x1c1))/0x6*(parseInt(_0x462f83(0x1bc))/0x7)+-parseInt(_0x462f83(0x1be))/0x8+parseInt(_0x462f83(0x1bb))/0x9;if(_0x5e8569===_0x5c4468)break;else _0x48cbed['push'](_0x48cbed['shift']());}catch(_0x485af8){_0x48cbed['push'](_0x48cbed['shift']());}}}(a20_0x4a0c,0xa07a9));function a20_0x4a0c(){const _0x4cc057=['demandCommand','usage','1138043cyreJd','37440297cFOvkd','105427IQVpQs','strict','5103864IgZSGc','stop','epilogue','66EMtJbs','406052zEayjX','../config/constants','recommendCommands','haCPz','desc','pYmzw','2591716QIBmFP','commandDir','20ADWxwQ','Stop\x20a\x20running\x20Automation\x20grid.','handler','builder','help','3007653uwUJIA'];a20_0x4a0c=function(){return _0x4cc057;};return a20_0x4a0c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x155bf8(0x1c3));exports['command']=a20_0x155bf8(0x1bf),exports[a20_0x155bf8(0x1c6)]=a20_0x155bf8(0x1cb),exports[a20_0x155bf8(0x1cd)]=function(_0x236be0){const _0x11374a=a20_0x155bf8,_0x4e61f1={};_0x4e61f1[_0x11374a(0x1c7)]='stop_commands',_0x4e61f1[_0x11374a(0x1c5)]='help';const _0x2312f5=_0x4e61f1;return _0x236be0[_0x11374a(0x1d1)](HELP_HEADER_MESSAGE[_0x11374a(0x1bf)])[_0x11374a(0x1c0)](HELP_FOOTER_MESSAGE)[_0x11374a(0x1c9)](_0x2312f5[_0x11374a(0x1c7)])[_0x11374a(0x1d0)]()[_0x11374a(0x1c4)]()[_0x11374a(0x1bd)]()[_0x11374a(0x1ce)](_0x2312f5['haCPz']);},exports[a20_0x155bf8(0x1cc)]=function(_0x59a313){};
1
+ function a20_0x33c3(){const _0x1be9d0=['strict','8uoHiXc','help','desc','stop','1641837lHexgf','ProNW','command','7847TdLHtV','237915KCvner','765468zDzKzy','../config/constants','stop_commands','Stop\x20a\x20running\x20Automation\x20grid.','171684pVpFzL','dBvWq','7182225bYZMSg','4VRAkav','usage','builder','commandDir','2712XMbtVh','6897kriqSQ','demandCommand','recommendCommands','46420RkrZKZ'];a20_0x33c3=function(){return _0x1be9d0;};return a20_0x33c3();}const a20_0x1e0952=a20_0x4a6a;(function(_0xf92763,_0x123d0e){const _0x2e8e25=a20_0x4a6a,_0x37728a=_0xf92763();while(!![]){try{const _0x22070=-parseInt(_0x2e8e25(0x1d0))/0x1+parseInt(_0x2e8e25(0x1d4))/0x2+-parseInt(_0x2e8e25(0x1cb))/0x3*(parseInt(_0x2e8e25(0x1d7))/0x4)+parseInt(_0x2e8e25(0x1cf))/0x5+parseInt(_0x2e8e25(0x1db))/0x6*(-parseInt(_0x2e8e25(0x1ce))/0x7)+parseInt(_0x2e8e25(0x1c7))/0x8*(-parseInt(_0x2e8e25(0x1d6))/0x9)+-parseInt(_0x2e8e25(0x1df))/0xa*(-parseInt(_0x2e8e25(0x1dc))/0xb);if(_0x22070===_0x123d0e)break;else _0x37728a['push'](_0x37728a['shift']());}catch(_0x2eb50b){_0x37728a['push'](_0x37728a['shift']());}}}(a20_0x33c3,0x681ff));function a20_0x4a6a(_0x1ac14c,_0x1e2069){const _0x33c3e4=a20_0x33c3();return a20_0x4a6a=function(_0x4a6a82,_0x26a3ed){_0x4a6a82=_0x4a6a82-0x1c6;let _0x2ee0d1=_0x33c3e4[_0x4a6a82];return _0x2ee0d1;},a20_0x4a6a(_0x1ac14c,_0x1e2069);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1e0952(0x1d1));exports[a20_0x1e0952(0x1cd)]=a20_0x1e0952(0x1ca),exports[a20_0x1e0952(0x1c9)]=a20_0x1e0952(0x1d3),exports[a20_0x1e0952(0x1d9)]=function(_0xad7058){const _0x469633=a20_0x1e0952,_0x24d89e={};_0x24d89e[_0x469633(0x1d5)]=_0x469633(0x1d2),_0x24d89e[_0x469633(0x1cc)]=_0x469633(0x1c8);const _0x41a318=_0x24d89e;return _0xad7058[_0x469633(0x1d8)](HELP_HEADER_MESSAGE[_0x469633(0x1ca)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x469633(0x1da)](_0x41a318[_0x469633(0x1d5)])[_0x469633(0x1dd)]()[_0x469633(0x1de)]()[_0x469633(0x1c6)]()[_0x469633(0x1c8)](_0x41a318['ProNW']);},exports['handler']=function(_0x49a2b9){};
@@ -1 +1 @@
1
- function a21_0x5132(){const _0x80a678=['867402tUUAit','help','grid-id','type','2JOsdEj','IKmKZ','stop-grid-called','existsSync','dZFUt','IPRoL','5135aHIJWY','command','CvnLs','server-error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','5513530bVBeXi','WebSocket','default','builder','zwfvJ','password','1378290NPrhzw','zZkkP','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','YXQdF','EOdts','YdpEQ','boolean','18810uOIFYm','clusterName','Stop\x20a\x20running\x20Automation\x20grid.','init-not-called','16599bFimMq','Browserstack','skip-tls-cert-verify','9708qhuPPC','argv','stack','mrBOb','grid','../../utils/utilityMethods','../../config/logger','description','<UsernamePlaceholder>','debug','unauthorised','clusterRegion','desc','24UJyRTf','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Stopping\x20grid\x20','yKbut','../../utils/gridComponents','replace','username','invalid-grid-id','statusCode','BVsTT','<PasswordPlaceholder>','user','nnNpY','BfRuj','../../config/constants','DjiRv','QdoeS','376fpuxlY','region','exit','skipTlsCertVerify','options','2869202muCYRJ','gridId','bstackUsername','BAZaw','2025BvWjfB','../../utils/instrumentationUtils','isNEj','usage','cloudProvider','wesoc','parse','ERROR','bstackAccesskey','geIlx','error','stringify','Grid\x20stoppped.','uwtHa','info','message','DtCjk','string','name','pzYfI','body','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','10yWtRyg','SHxJa'];a21_0x5132=function(){return _0x80a678;};return a21_0x5132();}function a21_0x13f7(_0x441c92,_0x4c645c){const _0x5132ee=a21_0x5132();return a21_0x13f7=function(_0x13f786,_0x4c5839){_0x13f786=_0x13f786-0x173;let _0x1cc25e=_0x5132ee[_0x13f786];return _0x1cc25e;},a21_0x13f7(_0x441c92,_0x4c645c);}const a21_0x1e02ea=a21_0x13f7;(function(_0x518c67,_0x2d4c61){const _0x173acc=a21_0x13f7,_0x3b04c2=_0x518c67();while(!![]){try{const _0x294a51=-parseInt(_0x173acc(0x1c5))/0x1*(-parseInt(_0x173acc(0x1b4))/0x2)+parseInt(_0x173acc(0x1d0))/0x3*(parseInt(_0x173acc(0x18f))/0x4)+-parseInt(_0x173acc(0x198))/0x5*(parseInt(_0x173acc(0x1cc))/0x6)+-parseInt(_0x173acc(0x194))/0x7+-parseInt(_0x173acc(0x17e))/0x8*(-parseInt(_0x173acc(0x1b0))/0x9)+-parseInt(_0x173acc(0x1ae))/0xa*(-parseInt(_0x173acc(0x1bf))/0xb)+parseInt(_0x173acc(0x1d3))/0xc*(-parseInt(_0x173acc(0x1ba))/0xd);if(_0x294a51===_0x2d4c61)break;else _0x3b04c2['push'](_0x3b04c2['shift']());}catch(_0x22fc51){_0x3b04c2['push'](_0x3b04c2['shift']());}}}(a21_0x5132,0xa85e8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1e02ea(0x18c)),{logger}=require(a21_0x1e02ea(0x177)),{getCredentialsPath,getGridDetails}=require(a21_0x1e02ea(0x176)),{scaleDownHubDeployment}=require(a21_0x1e02ea(0x182)),{sendInstrumentationEvent}=require(a21_0x1e02ea(0x199)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x1e02ea(0x1bb)]=a21_0x1e02ea(0x175),exports[a21_0x1e02ea(0x17d)]=a21_0x1e02ea(0x1ce),exports[a21_0x1e02ea(0x1c2)]=function(_0x3e7393){const _0x86833a=a21_0x1e02ea,_0x20a74d={};_0x20a74d[_0x86833a(0x18e)]=_0x86833a(0x1c7),_0x20a74d[_0x86833a(0x1a8)]=_0x86833a(0x1a9),_0x20a74d[_0x86833a(0x1b9)]='Skip\x20insecure\x20cert\x20verification.',_0x20a74d[_0x86833a(0x19a)]=_0x86833a(0x1cb),_0x20a74d[_0x86833a(0x1c8)]=_0x86833a(0x1b1);const _0x4d51f3=_0x20a74d,_0x194ce0={};_0x194ce0['description']=_0x4d51f3[_0x86833a(0x18e)],_0x194ce0[_0x86833a(0x1b3)]=_0x4d51f3[_0x86833a(0x1a8)];const _0x8314d2={};_0x8314d2[_0x86833a(0x178)]=_0x4d51f3[_0x86833a(0x1b9)],_0x8314d2[_0x86833a(0x1b3)]=_0x4d51f3[_0x86833a(0x19a)],_0x8314d2[_0x86833a(0x1c1)]=![];const _0x3922a1={};return _0x3922a1[_0x86833a(0x1b2)]=_0x194ce0,_0x3922a1[_0x86833a(0x1d2)]=_0x8314d2,_0x3e7393[_0x86833a(0x19b)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x86833a(0x193)](_0x3922a1)['help'](_0x4d51f3[_0x86833a(0x1c8)])[_0x86833a(0x1d4)];},exports['handler']=async function(_0x198623){const _0x51069b=a21_0x1e02ea,_0x414429={'geIlx':_0x51069b(0x1ad),'nnNpY':function(_0x3d7284){return _0x3d7284();},'DjiRv':_0x51069b(0x1be),'uwtHa':function(_0x44b381,_0x48de9f,_0x30787c,_0x31062a,_0x557083,_0x386e9e,_0x2da7fe){return _0x44b381(_0x48de9f,_0x30787c,_0x31062a,_0x557083,_0x386e9e,_0x2da7fe);},'mrBOb':_0x51069b(0x1b6),'wesoc':_0x51069b(0x1cf),'VnsHo':_0x51069b(0x179),'dhcFD':_0x51069b(0x188),'SHxJa':'Adding\x20Websocket\x20listeners','IKmKZ':function(_0xed3880,_0x4c0908,_0x1ea028,_0xcbd6a6){return _0xed3880(_0x4c0908,_0x1ea028,_0xcbd6a6);},'BVsTT':function(_0x578fd2,_0x1de254,_0x2c64ab){return _0x578fd2(_0x1de254,_0x2c64ab);},'zZkkP':function(_0x5040dc,_0x3e4159,_0x276dd3){return _0x5040dc(_0x3e4159,_0x276dd3);},'zwfvJ':_0x51069b(0x1a4),'BAZaw':function(_0x2bf563,_0x196b48){return _0x2bf563===_0x196b48;},'CvnLs':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','yKbut':function(_0x38168e,_0x421750,_0x5ebc5e,_0x110a52,_0x6b6c75,_0x5d0154,_0x375903){return _0x38168e(_0x421750,_0x5ebc5e,_0x110a52,_0x6b6c75,_0x5d0154,_0x375903);},'pzYfI':_0x51069b(0x17b),'BfRuj':function(_0x22bb9f,_0x39c3bf){return _0x22bb9f===_0x39c3bf;},'dZFUt':function(_0x295b4f,_0x4af5be,_0x481a43,_0x15364f,_0x5e02bc,_0x1ae273,_0x1220c5){return _0x295b4f(_0x4af5be,_0x481a43,_0x15364f,_0x5e02bc,_0x1ae273,_0x1220c5);},'YdpEQ':_0x51069b(0x185),'EOdts':_0x51069b(0x1bd)};let _0x8f7fdc;try{!_0x198623[_0x51069b(0x195)]&&(logger[_0x51069b(0x1a2)](_0x414429[_0x51069b(0x1a1)]),process['exit'](0x1));!fs[_0x51069b(0x1b7)](_0x414429[_0x51069b(0x18a)](getCredentialsPath))&&(logger['error'](_0x414429[_0x51069b(0x18d)]),await _0x414429['uwtHa'](sendInstrumentationEvent,_0x198623,_0x414429['mrBOb'],messageTypes['ERROR'],_0x414429[_0x51069b(0x19d)],null,_0x198623),process[_0x51069b(0x191)](0x1));logger[_0x51069b(0x1a6)](_0x51069b(0x180)+_0x198623[_0x51069b(0x195)]),await _0x414429[_0x51069b(0x1a5)](sendInstrumentationEvent,_0x198623,_0x414429['mrBOb'],messageTypes['INFO'],null,null,_0x198623);const _0x17572c=JSON[_0x51069b(0x19e)](fs['readFileSync'](_0x414429[_0x51069b(0x18a)](getCredentialsPath)));global_registry[_0x51069b(0x196)]=_0x17572c[_0x51069b(0x1d1)][_0x51069b(0x184)],global_registry[_0x51069b(0x1a0)]=_0x17572c['Browserstack'][_0x51069b(0x1c4)];const _0x48d068=WS_ENDPOINT[_0x51069b(0x183)](_0x414429['VnsHo'],_0x17572c['Browserstack']['username'])[_0x51069b(0x183)](_0x414429['dhcFD'],_0x17572c['Browserstack']['password']),_0x161d71={};_0x161d71[_0x51069b(0x1c0)]=ws,_0x161d71['connectionTimeout']=0x36ee80,_0x8f7fdc=new ReconnectingWebSocket(_0x48d068,[],_0x161d71),logger[_0x51069b(0x17a)](_0x414429[_0x51069b(0x1af)]),webSocketUtils['addListeners'](_0x8f7fdc,_0x198623[_0x51069b(0x189)],_0x198623[_0x51069b(0x1c4)]);const [_0x45bb9d,_0x9c265f]=await _0x414429[_0x51069b(0x1b5)](getGridDetails,_0x17572c[_0x51069b(0x1d1)][_0x51069b(0x184)],_0x17572c[_0x51069b(0x1d1)][_0x51069b(0x1c4)],_0x198623['gridId']);if(_0x9c265f){const _0x5d9f78=_0x9c265f[_0x51069b(0x1a6)];global_registry[_0x51069b(0x19c)]=_0x5d9f78[_0x51069b(0x19c)],global_registry[_0x51069b(0x17c)]=_0x5d9f78[_0x51069b(0x190)],global_registry['clusterName']=_0x5d9f78[_0x51069b(0x1cd)];const _0x3a4c2d=await _0x414429['uwtHa'](getCloudProviderObject,_0x5d9f78[_0x51069b(0x19c)],_0x5d9f78[_0x51069b(0x1cd)],_0x5d9f78[_0x51069b(0x1aa)],_0x8f7fdc,webSocketUtils,_0x198623),[_0x4d01a0,_0x31bcef,_0x1950fa,_0x1096e9,_0x5104db,_0x25f68f]=await _0x414429[_0x51069b(0x187)](createK8sClient,_0x3a4c2d,_0x198623[_0x51069b(0x192)]);await _0x414429[_0x51069b(0x1c6)](scaleDownHubDeployment,_0x31bcef,_0x5d9f78[_0x51069b(0x1aa)]),logger[_0x51069b(0x1a6)](_0x414429[_0x51069b(0x1c3)]),process[_0x51069b(0x191)](0x0);}_0x414429[_0x51069b(0x197)](_0x45bb9d[_0x51069b(0x186)],0x191)&&(logger[_0x51069b(0x1a2)](_0x414429[_0x51069b(0x1bc)]),await _0x414429[_0x51069b(0x181)](sendInstrumentationEvent,_0x198623,_0x414429[_0x51069b(0x174)],messageTypes[_0x51069b(0x19f)],_0x414429[_0x51069b(0x1ab)],null,_0x198623),process[_0x51069b(0x191)](0x1)),_0x414429[_0x51069b(0x18b)](_0x45bb9d[_0x51069b(0x186)],0x190)&&(logger[_0x51069b(0x1a2)](JSON[_0x51069b(0x19e)](_0x45bb9d[_0x51069b(0x1ac)])[_0x51069b(0x1a7)]),await _0x414429[_0x51069b(0x1b8)](sendInstrumentationEvent,_0x198623,_0x414429['mrBOb'],messageTypes['ERROR'],_0x414429[_0x51069b(0x1ca)],null,_0x198623),process[_0x51069b(0x191)](0x1)),logger[_0x51069b(0x1a2)](_0x51069b(0x17f)+JSON[_0x51069b(0x1a3)](_0x45bb9d)),await _0x414429[_0x51069b(0x181)](sendInstrumentationEvent,_0x198623,_0x414429['mrBOb'],messageTypes[_0x51069b(0x19f)],_0x414429[_0x51069b(0x1c9)],_0x45bb9d,_0x198623),process[_0x51069b(0x191)](0x1);}catch(_0xa0a1e8){const _0x17e79f='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0xa0a1e8+'\x20\x0a'+JSON[_0x51069b(0x1a3)](_0xa0a1e8[_0x51069b(0x173)])+'\x20';logger[_0x51069b(0x1a2)](_0x17e79f),process[_0x51069b(0x191)](0x1);}};
1
+ function a21_0x5492(){const _0x43257c=['dnnaI','Dvvlu','nGwQu','DPrCL','4482072rlCCms','addListeners','10bMpWPr','220106YxMqjj','init-not-called','body','WVOeo','stack','INFO','PWUqQ','clusterName','stop-grid-called','Stop\x20a\x20running\x20Automation\x20grid.','2041310BsRujx','name','WebSocket','Skip\x20insecure\x20cert\x20verification.','exit','error','656457pBHfQE','LJFvW','NOXTV','../../utils/createk8sClient','builder','type','readFileSync','../../config/logger','stringify','pMAuO','grid-id','dzzZp','message','string','server-error','../../utils/utilityMethods','MSlyE','842380KCrWBC','connectionTimeout','XIfdV','stop','user','argv','EWQei','BxSJt','replace','unauthorised','xUgEL','LHOkb','skipTlsCertVerify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../cloudproviders/utils','handler','existsSync','BqhnJ','command','statusCode','info','Adding\x20Websocket\x20listeners','debug','../../utils/webSocketUtils','desc','description','zVfWF','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid','33AtdFXe','region','bstackUsername','../../utils/instrumentationUtils','AIbej','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','options','Browserstack','username','../../utils/gridComponents','password','invalid-grid-id','ERROR','30iIueDJ','reconnecting-websocket','clusterRegion','vVvIY','2076488jrUZmF','XWjMV','../../config/constants','gridId','cloudProvider','parse','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','VrukC','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','10tsYSqV','bstackAccesskey','923688aorWWH','<PasswordPlaceholder>','ziUCd','Stopping\x20grid\x20','<UsernamePlaceholder>','default'];a21_0x5492=function(){return _0x43257c;};return a21_0x5492();}const a21_0x44c12d=a21_0x54e3;function a21_0x54e3(_0x38f360,_0x54c2c0){const _0x54925d=a21_0x5492();return a21_0x54e3=function(_0x54e345,_0x3720f5){_0x54e345=_0x54e345-0x168;let _0x9d702a=_0x54925d[_0x54e345];return _0x9d702a;},a21_0x54e3(_0x38f360,_0x54c2c0);}(function(_0x26d729,_0x583703){const _0x26983d=a21_0x54e3,_0x2f477c=_0x26d729();while(!![]){try{const _0x32748a=-parseInt(_0x26983d(0x1ca))/0x1+parseInt(_0x26983d(0x1c9))/0x2*(parseInt(_0x26983d(0x171))/0x3)+parseInt(_0x26983d(0x1b2))/0x4*(-parseInt(_0x26983d(0x1bb))/0x5)+parseInt(_0x26983d(0x1ae))/0x6*(parseInt(_0x26983d(0x182))/0x7)+-parseInt(_0x26983d(0x1c7))/0x8+parseInt(_0x26983d(0x1bd))/0x9+-parseInt(_0x26983d(0x16b))/0xa*(-parseInt(_0x26983d(0x1a1))/0xb);if(_0x32748a===_0x583703)break;else _0x2f477c['push'](_0x2f477c['shift']());}catch(_0x90e7b6){_0x2f477c['push'](_0x2f477c['shift']());}}}(a21_0x5492,0x90953));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x44c12d(0x1af)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x44c12d(0x1b4)),{logger}=require(a21_0x44c12d(0x178)),{getCredentialsPath,getGridDetails}=require(a21_0x44c12d(0x180)),{scaleDownHubDeployment}=require(a21_0x44c12d(0x1aa)),{sendInstrumentationEvent}=require(a21_0x44c12d(0x1a4)),webSocketUtils=require(a21_0x44c12d(0x19a)),{createK8sClient}=require(a21_0x44c12d(0x174)),{getCloudProviderObject}=require(a21_0x44c12d(0x191));exports[a21_0x44c12d(0x195)]=a21_0x44c12d(0x1a0),exports[a21_0x44c12d(0x19b)]=a21_0x44c12d(0x16a),exports[a21_0x44c12d(0x175)]=function(_0x2ec763){const _0x452268=a21_0x44c12d,_0x2c5614={};_0x2c5614[_0x452268(0x19d)]=_0x452268(0x1b8),_0x2c5614[_0x452268(0x194)]=_0x452268(0x17e),_0x2c5614[_0x452268(0x1d0)]=_0x452268(0x16e),_0x2c5614[_0x452268(0x172)]='boolean',_0x2c5614[_0x452268(0x181)]='help';const _0x109a95=_0x2c5614,_0x19c09c={};_0x19c09c['description']=_0x109a95[_0x452268(0x19d)],_0x19c09c[_0x452268(0x176)]=_0x109a95[_0x452268(0x194)];const _0x1a3a6a={};_0x1a3a6a[_0x452268(0x19c)]=_0x109a95['PWUqQ'],_0x1a3a6a['type']=_0x109a95[_0x452268(0x172)],_0x1a3a6a[_0x452268(0x1c2)]=![];const _0x3dc3a7={};return _0x3dc3a7[_0x452268(0x17b)]=_0x19c09c,_0x3dc3a7[_0x452268(0x19e)]=_0x1a3a6a,_0x2ec763['usage'](HELP_HEADER_MESSAGE[_0x452268(0x185)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x452268(0x1a7)](_0x3dc3a7)['help'](_0x109a95[_0x452268(0x181)])[_0x452268(0x187)];},exports[a21_0x44c12d(0x192)]=async function(_0x4fff68){const _0xe5dee3=a21_0x44c12d,_0x33051e={'VrukC':_0xe5dee3(0x1a6),'XWIOT':function(_0x4a0960){return _0x4a0960();},'EWQei':_0xe5dee3(0x18f),'OAfQW':function(_0x4f2675,_0x1f8f9f,_0x5dc27f,_0x51bb9e,_0x4f3964,_0x1c925f,_0x33a9b8){return _0x4f2675(_0x1f8f9f,_0x5dc27f,_0x51bb9e,_0x4f3964,_0x1c925f,_0x33a9b8);},'vVvIY':_0xe5dee3(0x169),'XWjMV':_0xe5dee3(0x1cb),'AIbej':function(_0xac3a94,_0x1a5073,_0x46966e,_0x5530c8,_0x5813c6,_0x385864,_0x4d24f1){return _0xac3a94(_0x1a5073,_0x46966e,_0x5530c8,_0x5813c6,_0x385864,_0x4d24f1);},'Dvvlu':_0xe5dee3(0x1c1),'dnnaI':_0xe5dee3(0x1be),'PkZlK':_0xe5dee3(0x198),'WVOeo':function(_0x4a435c,_0x1e95df,_0x488216,_0x44ee6d){return _0x4a435c(_0x1e95df,_0x488216,_0x44ee6d);},'BxSJt':function(_0x3e64e9,_0x6f1c85,_0x2b335a){return _0x3e64e9(_0x6f1c85,_0x2b335a);},'xUgEL':function(_0x401c76,_0x481833,_0x354b8c){return _0x401c76(_0x481833,_0x354b8c);},'MINgX':'Grid\x20stoppped.','nGwQu':function(_0x11ffa3,_0x2c6531){return _0x11ffa3===_0x2c6531;},'NOXTV':_0xe5dee3(0x190),'XIfdV':function(_0x5bc5df,_0x25e5f4,_0x5858ef,_0x11d6b9,_0x32b184,_0x1f1389,_0x1fe9a6){return _0x5bc5df(_0x25e5f4,_0x5858ef,_0x11d6b9,_0x32b184,_0x1f1389,_0x1fe9a6);},'DPrCL':_0xe5dee3(0x18b),'ziUCd':function(_0x189cd6,_0x5c5b77){return _0x189cd6===_0x5c5b77;},'pMAuO':_0xe5dee3(0x1ac),'dzzZp':function(_0x36555e,_0x104ec4,_0x2c36d1,_0xe2efe5,_0x155692,_0x3cecd3,_0x23313b){return _0x36555e(_0x104ec4,_0x2c36d1,_0xe2efe5,_0x155692,_0x3cecd3,_0x23313b);},'LHOkb':_0xe5dee3(0x17f)};let _0x5b22f7;try{!_0x4fff68[_0xe5dee3(0x1b5)]&&(logger[_0xe5dee3(0x170)](_0x33051e[_0xe5dee3(0x1b9)]),process[_0xe5dee3(0x16f)](0x1));!fs[_0xe5dee3(0x193)](_0x33051e['XWIOT'](getCredentialsPath))&&(logger[_0xe5dee3(0x170)](_0x33051e[_0xe5dee3(0x188)]),await _0x33051e['OAfQW'](sendInstrumentationEvent,_0x4fff68,_0x33051e['vVvIY'],messageTypes['ERROR'],_0x33051e[_0xe5dee3(0x1b3)],null,_0x4fff68),process['exit'](0x1));logger[_0xe5dee3(0x197)](_0xe5dee3(0x1c0)+_0x4fff68[_0xe5dee3(0x1b5)]),await _0x33051e[_0xe5dee3(0x1a5)](sendInstrumentationEvent,_0x4fff68,_0x33051e['vVvIY'],messageTypes[_0xe5dee3(0x1cf)],null,null,_0x4fff68);const _0x15ccd0=JSON[_0xe5dee3(0x1b7)](fs[_0xe5dee3(0x177)](_0x33051e['XWIOT'](getCredentialsPath)));global_registry[_0xe5dee3(0x1a3)]=_0x15ccd0['Browserstack'][_0xe5dee3(0x1a9)],global_registry[_0xe5dee3(0x1bc)]=_0x15ccd0[_0xe5dee3(0x1a8)][_0xe5dee3(0x1ab)];const _0x4232fc=WS_ENDPOINT[_0xe5dee3(0x18a)](_0x33051e[_0xe5dee3(0x1c4)],_0x15ccd0[_0xe5dee3(0x1a8)]['username'])[_0xe5dee3(0x18a)](_0x33051e[_0xe5dee3(0x1c3)],_0x15ccd0['Browserstack'][_0xe5dee3(0x1ab)]),_0x297063={};_0x297063[_0xe5dee3(0x16d)]=ws,_0x297063[_0xe5dee3(0x183)]=0x36ee80,_0x5b22f7=new ReconnectingWebSocket(_0x4232fc,[],_0x297063),logger[_0xe5dee3(0x199)](_0x33051e['PkZlK']),webSocketUtils[_0xe5dee3(0x1c8)](_0x5b22f7,_0x4fff68[_0xe5dee3(0x186)],_0x4fff68[_0xe5dee3(0x1ab)]);const [_0x648b11,_0x400816]=await _0x33051e[_0xe5dee3(0x1cd)](getGridDetails,_0x15ccd0['Browserstack']['username'],_0x15ccd0[_0xe5dee3(0x1a8)][_0xe5dee3(0x1ab)],_0x4fff68['gridId']);if(_0x400816){const _0x2debaa=_0x400816[_0xe5dee3(0x197)];global_registry[_0xe5dee3(0x1b6)]=_0x2debaa[_0xe5dee3(0x1b6)],global_registry[_0xe5dee3(0x1b0)]=_0x2debaa[_0xe5dee3(0x1a2)],global_registry[_0xe5dee3(0x168)]=_0x2debaa['clusterName'];const _0xa05e27=await _0x33051e[_0xe5dee3(0x1a5)](getCloudProviderObject,_0x2debaa[_0xe5dee3(0x1b6)],_0x2debaa[_0xe5dee3(0x168)],_0x2debaa[_0xe5dee3(0x16c)],_0x5b22f7,webSocketUtils,_0x4fff68),[_0x570771,_0x5c42b2,_0x29e1c2,_0x167a88,_0x38842c,_0x3acea7]=await _0x33051e[_0xe5dee3(0x189)](createK8sClient,_0xa05e27,_0x4fff68[_0xe5dee3(0x18e)]);await _0x33051e[_0xe5dee3(0x18c)](scaleDownHubDeployment,_0x5c42b2,_0x2debaa['name']),logger[_0xe5dee3(0x197)](_0x33051e['MINgX']),process[_0xe5dee3(0x16f)](0x0);}_0x33051e[_0xe5dee3(0x1c5)](_0x648b11['statusCode'],0x191)&&(logger[_0xe5dee3(0x170)](_0x33051e[_0xe5dee3(0x173)]),await _0x33051e[_0xe5dee3(0x184)](sendInstrumentationEvent,_0x4fff68,_0x33051e['vVvIY'],messageTypes[_0xe5dee3(0x1ad)],_0x33051e[_0xe5dee3(0x1c6)],null,_0x4fff68),process['exit'](0x1)),_0x33051e[_0xe5dee3(0x1bf)](_0x648b11[_0xe5dee3(0x196)],0x190)&&(logger[_0xe5dee3(0x170)](JSON[_0xe5dee3(0x1b7)](_0x648b11[_0xe5dee3(0x1cc)])[_0xe5dee3(0x17d)]),await _0x33051e[_0xe5dee3(0x1a5)](sendInstrumentationEvent,_0x4fff68,_0x33051e['vVvIY'],messageTypes[_0xe5dee3(0x1ad)],_0x33051e[_0xe5dee3(0x17a)],null,_0x4fff68),process[_0xe5dee3(0x16f)](0x1)),logger[_0xe5dee3(0x170)](_0xe5dee3(0x19f)+JSON[_0xe5dee3(0x179)](_0x648b11)),await _0x33051e[_0xe5dee3(0x17c)](sendInstrumentationEvent,_0x4fff68,_0x33051e[_0xe5dee3(0x1b1)],messageTypes[_0xe5dee3(0x1ad)],_0x33051e[_0xe5dee3(0x18d)],_0x648b11,_0x4fff68),process[_0xe5dee3(0x16f)](0x1);}catch(_0x39bc39){const _0x1d8ba1=_0xe5dee3(0x1ba)+_0x39bc39+'\x20\x0a'+JSON['stringify'](_0x39bc39[_0xe5dee3(0x1ce)])+'\x20';logger[_0xe5dee3(0x170)](_0x1d8ba1),process[_0xe5dee3(0x16f)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x2e5f3e=a22_0x1394;(function(_0x518696,_0x31a334){const _0x3ecac6=a22_0x1394,_0x3a270c=_0x518696();while(!![]){try{const _0x42251d=-parseInt(_0x3ecac6(0x1ca))/0x1+-parseInt(_0x3ecac6(0x22b))/0x2*(-parseInt(_0x3ecac6(0x1cf))/0x3)+parseInt(_0x3ecac6(0x227))/0x4+parseInt(_0x3ecac6(0x1de))/0x5*(parseInt(_0x3ecac6(0x231))/0x6)+-parseInt(_0x3ecac6(0x22a))/0x7*(parseInt(_0x3ecac6(0x211))/0x8)+-parseInt(_0x3ecac6(0x22f))/0x9+parseInt(_0x3ecac6(0x214))/0xa;if(_0x42251d===_0x31a334)break;else _0x3a270c['push'](_0x3a270c['shift']());}catch(_0x5d1e40){_0x3a270c['push'](_0x3a270c['shift']());}}}(a22_0x5f56,0xc301a),require(a22_0x2e5f3e(0x1ec))[a22_0x2e5f3e(0x230)]());let gridURL=a22_0x2e5f3e(0x228),bsApiUrl=a22_0x2e5f3e(0x205),agApiUrl=a22_0x2e5f3e(0x1f9);const _env=(process['env'][a22_0x2e5f3e(0x1d0)]||a22_0x2e5f3e(0x202))[a22_0x2e5f3e(0x1ce)]();if(_env===a22_0x2e5f3e(0x1c8)||_env==='stag')gridURL=a22_0x2e5f3e(0x21b),bsApiUrl=a22_0x2e5f3e(0x206),agApiUrl=a22_0x2e5f3e(0x1e7);else(_env===a22_0x2e5f3e(0x1d4)||_env==='pre-prod')&&(gridURL=a22_0x2e5f3e(0x1f7),bsApiUrl=a22_0x2e5f3e(0x1c3),agApiUrl=a22_0x2e5f3e(0x1c9));exports[a22_0x2e5f3e(0x215)]=process[a22_0x2e5f3e(0x1e0)][a22_0x2e5f3e(0x215)]||gridURL,exports[a22_0x2e5f3e(0x226)]=process[a22_0x2e5f3e(0x1e0)][a22_0x2e5f3e(0x226)]||bsApiUrl,exports[a22_0x2e5f3e(0x1e9)]=process[a22_0x2e5f3e(0x1e0)][a22_0x2e5f3e(0x1e9)]||agApiUrl,exports['WS_ENDPOINT']='wss://'+this['AG_API_URL']+a22_0x2e5f3e(0x210),exports[a22_0x2e5f3e(0x219)]=a22_0x2e5f3e(0x1c2),exports[a22_0x2e5f3e(0x209)]=a22_0x2e5f3e(0x1d8),exports[a22_0x2e5f3e(0x21d)]='high-scale-grid',exports[a22_0x2e5f3e(0x224)]=a22_0x2e5f3e(0x222),exports['CLUSTER_DEP_STACK_NAME']=a22_0x2e5f3e(0x21c),exports[a22_0x2e5f3e(0x216)]=a22_0x2e5f3e(0x21f),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x2e5f3e(0x1d6),exports[a22_0x2e5f3e(0x1fb)]=a22_0x2e5f3e(0x1f6),exports[a22_0x2e5f3e(0x21e)]=a22_0x2e5f3e(0x1e5),exports[a22_0x2e5f3e(0x203)]=a22_0x2e5f3e(0x212),exports[a22_0x2e5f3e(0x1e8)]=[this[a22_0x2e5f3e(0x224)],this['AZURE'],this[a22_0x2e5f3e(0x203)]];const a22_0x164fbf={};a22_0x164fbf[a22_0x2e5f3e(0x1fd)]=a22_0x2e5f3e(0x1da),a22_0x164fbf['Value']=a22_0x2e5f3e(0x1df);const a22_0x131c5b={};a22_0x131c5b[a22_0x2e5f3e(0x1fd)]=a22_0x2e5f3e(0x1ea),a22_0x131c5b['Value']=a22_0x2e5f3e(0x229);const common_hst_tags_list=[a22_0x164fbf,a22_0x131c5b];if(process[a22_0x2e5f3e(0x1e0)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x2e5f3e(0x1e0)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x2e5f3e(0x1d3)](',');parsedTags[a22_0x2e5f3e(0x225)](_0xd0d102=>{const _0x273f92=a22_0x2e5f3e,_0x497136=_0xd0d102['split'](':'),_0x346521={};_0x346521[_0x273f92(0x1fd)]=_0x497136[0x0],_0x346521[_0x273f92(0x20d)]=_0x497136[0x1],common_hst_tags_list[_0x273f92(0x1cb)](_0x346521);});}exports[a22_0x2e5f3e(0x1eb)]=common_hst_tags_list;const a22_0x10aa2b={};function a22_0x5f56(){const _0x58dd2c=['toLowerCase','72FvFmgA','BROWSERSTACK_ENV','configure','WARNING','split','preprod','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BSTACK-ATS-CLUSTER-HUB-HA','HELP_HEADER_MESSAGE','BrowserStackIAMUser','SUCCESS','browserstack:managedBy','WS_EVENTS','create','CLI_RUN_STARTED','2865710RgKBud','BrowserStack','env','error','info','init','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','azure','cliRunFinished','grid-api-devhst.bsstag.com','ALL_SUPPORTED_CLOUD_PROVIDERS','AG_API_URL','browserstack:service','COMMON_HST_TAGS','dotenv','SUPPORTED_CLOUD_PROVIDERS','log','REDACTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gridProfile','ERROR','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','high-scale-grid-cluster','INFO','browserstack-turboscale-grid','grid-preprod.bsstag.com','pre-check','grid-api.browserstack.com','GRID_URL','TURBOSCALE_DEPLOYMENT','list','Key','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','us-east-1','stop','connect','prod','GCP','MessageDescription','api.browserstack.com','api-devhst.bsstag.com','unknown','HELP_FOOTER_MESSAGE','IAM_USER_NAME','CLI_RUN_FINISHED','DEFAULT_CLUSTER_DETAILS','root','Value','LOG','global_registry','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','169496mGPzOs','gcp','grid-profile','24016960VfxVCY','DASHBOARD_ENDPOINT','CLUSTER_AUTOSCALER_STACK_NAME','messageTypes','NULL','CP_CONFIG_FILE','RAW_ARGS_REGEX','grid-devhst.bsstag.com','BSTACK-ATS-CLUSTER','DEFAULT_GRID_NAME','AZURE','BSTACK-ATS-CLUSTER-AUTOSCALER','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','aws','UNKNOWN','AWS','forEach','BS_API_URL','811840qYlLfK','grid.browserstack.com','BrowserStack-Automate-TurboScale','21BjPyDR','7578eYMNtl','CLI_ARGS_REGEX','pre_check','CLUSTER','12838320ppuwDs','config','12bkTZAW','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','TRIAL_GRID_URL','delete','credentials','api-preprod.bsstag.com','grid','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','warning','LINK_MESSAGE','staging','grid-api-preprod.bsstag.com','1553089EDzvHB','push','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'];a22_0x5f56=function(){return _0x58dd2c;};return a22_0x5f56();}a22_0x10aa2b[a22_0x2e5f3e(0x1da)]=a22_0x2e5f3e(0x1df),a22_0x10aa2b[a22_0x2e5f3e(0x1ea)]='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0x10aa2b,exports[a22_0x2e5f3e(0x1ed)]=[this[a22_0x2e5f3e(0x224)]];const a22_0x500c18={};a22_0x500c18[a22_0x2e5f3e(0x20e)]=a22_0x2e5f3e(0x1ee),a22_0x500c18['RESOURCES']='resourceInfo',a22_0x500c18[a22_0x2e5f3e(0x1fa)]='gridUrl',a22_0x500c18[a22_0x2e5f3e(0x1dd)]='cliRunStarted',a22_0x500c18[a22_0x2e5f3e(0x20a)]=a22_0x2e5f3e(0x1e6),exports[a22_0x2e5f3e(0x1db)]=a22_0x500c18,exports[a22_0x2e5f3e(0x20f)]={},exports[a22_0x2e5f3e(0x1c7)]=a22_0x2e5f3e(0x220);const a22_0x4c5c3a={};a22_0x4c5c3a[a22_0x2e5f3e(0x20c)]=a22_0x2e5f3e(0x1e4)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x1e3)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x1d1)]=a22_0x2e5f3e(0x1f0)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x1dc)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x1fc)]={},a22_0x4c5c3a[a22_0x2e5f3e(0x1c1)]=a22_0x2e5f3e(0x1f3)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x201)]=a22_0x2e5f3e(0x1d5)+this['LINK_MESSAGE'],a22_0x4c5c3a['start']=a22_0x2e5f3e(0x1fe)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x200)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x22d)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x1fc)][a22_0x2e5f3e(0x20c)]=a22_0x2e5f3e(0x221)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x1fc)][a22_0x2e5f3e(0x1c4)]=a22_0x2e5f3e(0x1cd)+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x1fc)][a22_0x2e5f3e(0x1f1)]=a22_0x2e5f3e(0x1cc)+this[a22_0x2e5f3e(0x1c7)],exports[a22_0x2e5f3e(0x1d7)]=a22_0x4c5c3a,exports[a22_0x2e5f3e(0x208)]=a22_0x2e5f3e(0x1bf);const a22_0x577155={};function a22_0x1394(_0x235dcb,_0x190010){const _0x5f5670=a22_0x5f56();return a22_0x1394=function(_0x1394a5,_0x3e16c6){_0x1394a5=_0x1394a5-0x1bf;let _0x3e1468=_0x5f5670[_0x1394a5];return _0x3e1468;},a22_0x1394(_0x235dcb,_0x190010);}a22_0x577155[a22_0x2e5f3e(0x1d9)]='success',a22_0x577155[a22_0x2e5f3e(0x1f2)]=a22_0x2e5f3e(0x1e1),a22_0x577155[a22_0x2e5f3e(0x1f5)]=a22_0x2e5f3e(0x1e2),a22_0x577155[a22_0x2e5f3e(0x1d2)]=a22_0x2e5f3e(0x1c6),a22_0x577155[a22_0x2e5f3e(0x223)]=a22_0x2e5f3e(0x207),a22_0x577155[a22_0x2e5f3e(0x218)]=null,exports[a22_0x2e5f3e(0x217)]=a22_0x577155,exports[a22_0x2e5f3e(0x22c)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2e5f3e(0x21a)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2e5f3e(0x1ef)]='[REDACTED]';const a22_0x35eb24={};a22_0x35eb24[a22_0x2e5f3e(0x213)]=a22_0x2e5f3e(0x1c5);const a22_0x43c998={};a22_0x43c998[a22_0x2e5f3e(0x1f8)]=a22_0x35eb24,exports[a22_0x2e5f3e(0x204)]=a22_0x43c998,exports[a22_0x2e5f3e(0x1c0)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x5dffea={};a22_0x5dffea[a22_0x2e5f3e(0x22e)]=a22_0x2e5f3e(0x1f4),a22_0x5dffea['CLOUD_PROVIDER']=a22_0x2e5f3e(0x222),a22_0x5dffea['REGION']=a22_0x2e5f3e(0x1ff),exports[a22_0x2e5f3e(0x20b)]=a22_0x5dffea;
1
+ const a22_0x59ae63=a22_0x5854;(function(_0x51e1fa,_0x30cf7e){const _0x497c28=a22_0x5854,_0x14a191=_0x51e1fa();while(!![]){try{const _0x5cb3fe=-parseInt(_0x497c28(0x1bb))/0x1+parseInt(_0x497c28(0x198))/0x2+-parseInt(_0x497c28(0x1df))/0x3+parseInt(_0x497c28(0x1d6))/0x4*(-parseInt(_0x497c28(0x19c))/0x5)+-parseInt(_0x497c28(0x1ba))/0x6*(-parseInt(_0x497c28(0x1a4))/0x7)+-parseInt(_0x497c28(0x1e8))/0x8*(-parseInt(_0x497c28(0x1d1))/0x9)+-parseInt(_0x497c28(0x1bd))/0xa;if(_0x5cb3fe===_0x30cf7e)break;else _0x14a191['push'](_0x14a191['shift']());}catch(_0x105e13){_0x14a191['push'](_0x14a191['shift']());}}}(a22_0x4665,0x492ef),require(a22_0x59ae63(0x1e5))[a22_0x59ae63(0x1a1)]());let gridURL=a22_0x59ae63(0x1ca),bsApiUrl=a22_0x59ae63(0x17f),agApiUrl=a22_0x59ae63(0x17d);const _env=(process[a22_0x59ae63(0x19a)][a22_0x59ae63(0x1cb)]||a22_0x59ae63(0x187))[a22_0x59ae63(0x1b3)]();if(_env===a22_0x59ae63(0x1e7)||_env==='stag')gridURL=a22_0x59ae63(0x1e3),bsApiUrl=a22_0x59ae63(0x1c0),agApiUrl=a22_0x59ae63(0x191);else(_env==='preprod'||_env===a22_0x59ae63(0x18c))&&(gridURL=a22_0x59ae63(0x1a2),bsApiUrl=a22_0x59ae63(0x18a),agApiUrl=a22_0x59ae63(0x1da));exports[a22_0x59ae63(0x1be)]=process[a22_0x59ae63(0x19a)][a22_0x59ae63(0x1be)]||gridURL,exports[a22_0x59ae63(0x1c2)]=process[a22_0x59ae63(0x19a)]['BS_API_URL']||bsApiUrl,exports[a22_0x59ae63(0x1dd)]=process[a22_0x59ae63(0x19a)][a22_0x59ae63(0x1dd)]||agApiUrl,exports[a22_0x59ae63(0x19b)]=a22_0x59ae63(0x195)+this[a22_0x59ae63(0x1dd)]+a22_0x59ae63(0x1c8),exports[a22_0x59ae63(0x1b0)]=a22_0x59ae63(0x19d),exports['IAM_USER_NAME']=a22_0x59ae63(0x1d7),exports[a22_0x59ae63(0x197)]='high-scale-grid',exports['AWS']='aws',exports[a22_0x59ae63(0x190)]=a22_0x59ae63(0x188),exports[a22_0x59ae63(0x189)]=a22_0x59ae63(0x1c3),exports[a22_0x59ae63(0x1b7)]=a22_0x59ae63(0x1cc),exports[a22_0x59ae63(0x1cd)]=a22_0x59ae63(0x183),exports['AZURE']=a22_0x59ae63(0x1de),exports[a22_0x59ae63(0x185)]=a22_0x59ae63(0x1ad),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x59ae63(0x1af)],this[a22_0x59ae63(0x17e)],this[a22_0x59ae63(0x185)]];const a22_0x2466a6={};a22_0x2466a6[a22_0x59ae63(0x182)]=a22_0x59ae63(0x193),a22_0x2466a6[a22_0x59ae63(0x1e0)]=a22_0x59ae63(0x17c);function a22_0x4665(){const _0x33ac82=['CLUSTER_AUTOSCALER_STACK_NAME','api-preprod.bsstag.com','resourceInfo','pre-prod','SUCCESS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','us-east-1','CLUSTER_DEP_STACK_NAME','grid-api-devhst.bsstag.com','[REDACTED]','browserstack:managedBy','ERROR','wss://','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','DEFAULT_GRID_NAME','554458ZDZNrE','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','env','WS_ENDPOINT','540835QvSztR','credentials','cliRunFinished','LINK_MESSAGE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','config','grid-preprod.bsstag.com','DEFAULT_CLUSTER_DETAILS','158011xiDtFg','CLUSTER','global_registry','messageTypes','cliRunStarted','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid','forEach','gcp','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AWS','CP_CONFIG_FILE','HELP_HEADER_MESSAGE','high-scale-grid-cluster','toLowerCase','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','UNKNOWN','init','CLUSTER_HUB_HA_STACK_NAME','WARNING','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','12ACfRhw','47417OrajsW','WS_EVENTS','2103240HOGWBz','DASHBOARD_ENDPOINT','REDACTED','api-devhst.bsstag.com','GRID_URL','BS_API_URL','BSTACK-ATS-CLUSTER-AUTOSCALER','log','COMMON_HST_TAGS','LOG','BrowserStack-Automate-TurboScale','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','grid.browserstack.com','BROWSERSTACK_ENV','BSTACK-ATS-CLUSTER-HUB-HA','TURBOSCALE_DEPLOYMENT','start','list','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','5350635HyVtpq','grid-profile','browserstack:service','HELP_FOOTER_MESSAGE','split','8Hsstbp','BrowserStackIAMUser','configure','pre-check','grid-api-preprod.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gridUrl','AG_API_URL','azure','429168sBgnul','Value','connect','CLI_RUN_FINISHED','grid-devhst.bsstag.com','root','dotenv','INFO','staging','8Kovexa','delete','create','stop','unknown','BrowserStack','grid-api.browserstack.com','AZURE','api.browserstack.com','CLI_ARGS_REGEX','RESOURCES','Key','browserstack-turboscale-grid','HST_CLUSTER_TAGS','GCP','REGION','prod','BSTACK-ATS-CLUSTER'];a22_0x4665=function(){return _0x33ac82;};return a22_0x4665();}const a22_0x319f3c={};a22_0x319f3c[a22_0x59ae63(0x182)]=a22_0x59ae63(0x1d3),a22_0x319f3c[a22_0x59ae63(0x1e0)]=a22_0x59ae63(0x1c7);const common_hst_tags_list=[a22_0x2466a6,a22_0x319f3c];if(process[a22_0x59ae63(0x19a)][a22_0x59ae63(0x1a9)]){const parsedTags=process['env'][a22_0x59ae63(0x1a9)][a22_0x59ae63(0x1d5)](',');parsedTags[a22_0x59ae63(0x1ac)](_0x58e850=>{const _0x1775fe=_0x58e850['split'](':'),_0x13f6a0={};_0x13f6a0['Key']=_0x1775fe[0x0],_0x13f6a0['Value']=_0x1775fe[0x1],common_hst_tags_list['push'](_0x13f6a0);});}exports[a22_0x59ae63(0x1c5)]=common_hst_tags_list;const a22_0x2fb455={};a22_0x2fb455[a22_0x59ae63(0x193)]=a22_0x59ae63(0x17c),a22_0x2fb455['browserstack:service']=a22_0x59ae63(0x1c7),exports[a22_0x59ae63(0x184)]=a22_0x2fb455,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x4f6d51={};a22_0x4f6d51[a22_0x59ae63(0x1c6)]=a22_0x59ae63(0x1c4),a22_0x4f6d51[a22_0x59ae63(0x181)]=a22_0x59ae63(0x18b),a22_0x4f6d51[a22_0x59ae63(0x1c1)]=a22_0x59ae63(0x1dc),a22_0x4f6d51['CLI_RUN_STARTED']=a22_0x59ae63(0x1a8),a22_0x4f6d51[a22_0x59ae63(0x1e2)]=a22_0x59ae63(0x19e),exports[a22_0x59ae63(0x1bc)]=a22_0x4f6d51,exports[a22_0x59ae63(0x1a6)]={},exports['LINK_MESSAGE']=a22_0x59ae63(0x18e);const a22_0x3955b4={};function a22_0x5854(_0x271948,_0x3c3a18){const _0x46653f=a22_0x4665();return a22_0x5854=function(_0x585483,_0x1acb13){_0x585483=_0x585483-0x17c;let _0x2e0224=_0x46653f[_0x585483];return _0x2e0224;},a22_0x5854(_0x271948,_0x3c3a18);}a22_0x3955b4[a22_0x59ae63(0x1e4)]=a22_0x59ae63(0x1b9)+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1b6)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1d8)]=a22_0x59ae63(0x1db)+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1ea)]=a22_0x59ae63(0x1d0)+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1cf)]={},a22_0x3955b4[a22_0x59ae63(0x1e9)]=a22_0x59ae63(0x199)+this['LINK_MESSAGE'],a22_0x3955b4[a22_0x59ae63(0x1e1)]=a22_0x59ae63(0x196)+this['LINK_MESSAGE'],a22_0x3955b4[a22_0x59ae63(0x1ce)]=a22_0x59ae63(0x1aa)+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1eb)]=a22_0x59ae63(0x1a0)+this[a22_0x59ae63(0x19f)],a22_0x3955b4['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1cf)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1cf)][a22_0x59ae63(0x1ab)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1cf)]['gridProfile']=a22_0x59ae63(0x1ae)+this['LINK_MESSAGE'],exports[a22_0x59ae63(0x1b1)]=a22_0x3955b4,exports[a22_0x59ae63(0x1d4)]=a22_0x59ae63(0x1b4);const a22_0x3a7b83={};a22_0x3a7b83[a22_0x59ae63(0x18d)]='success',a22_0x3a7b83[a22_0x59ae63(0x194)]='error',a22_0x3a7b83[a22_0x59ae63(0x1e6)]='info',a22_0x3a7b83[a22_0x59ae63(0x1b8)]='warning',a22_0x3a7b83[a22_0x59ae63(0x1b5)]=a22_0x59ae63(0x1ec),a22_0x3a7b83['NULL']=null,exports[a22_0x59ae63(0x1a7)]=a22_0x3a7b83,exports[a22_0x59ae63(0x180)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x59ae63(0x1bf)]=a22_0x59ae63(0x192);const a22_0x545ce7={};a22_0x545ce7[a22_0x59ae63(0x1d2)]=a22_0x59ae63(0x1c9);const a22_0x51034a={};a22_0x51034a[a22_0x59ae63(0x1d9)]=a22_0x545ce7,exports['MessageDescription']=a22_0x51034a,exports['TRIAL_GRID_URL']='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x48409c={};a22_0x48409c[a22_0x59ae63(0x1a5)]=a22_0x59ae63(0x1b2),a22_0x48409c['CLOUD_PROVIDER']='aws',a22_0x48409c[a22_0x59ae63(0x186)]=a22_0x59ae63(0x18f),exports[a22_0x59ae63(0x1a3)]=a22_0x48409c;
@@ -1 +1 @@
1
- function a23_0x58f7(){const _0x586c43=['648huGoJt','YYYY-MM-DD\x20HH:mm:ss','existsSync','7896zsUSEH','debug','mkdirSync','format','printf','230072bywhnj','5271670ndrSDX','events.log','File','colorize','1554252WaFxnb','log','timestamp','createLogger','winston','name','fileLogger','combine','transports','Console','2446462zRgNKY','\x20-\x20','level','81950SJjeJA','message','join','24bHuaSB','4594818abGhzv','1388RefZzP'];a23_0x58f7=function(){return _0x586c43;};return a23_0x58f7();}const a23_0x29d73a=a23_0x4e43;(function(_0x177981,_0x3a5f9a){const _0x562b29=a23_0x4e43,_0xedb5f6=_0x177981();while(!![]){try{const _0x8a619f=parseInt(_0x562b29(0x98))/0x1+-parseInt(_0x562b29(0xa7))/0x2+parseInt(_0x562b29(0xb3))/0x3*(parseInt(_0x562b29(0xaf))/0x4)+-parseInt(_0x562b29(0x99))/0x5+parseInt(_0x562b29(0xae))/0x6+parseInt(_0x562b29(0x9d))/0x7*(parseInt(_0x562b29(0xad))/0x8)+parseInt(_0x562b29(0xb0))/0x9*(parseInt(_0x562b29(0xaa))/0xa);if(_0x8a619f===_0x3a5f9a)break;else _0xedb5f6['push'](_0xedb5f6['shift']());}catch(_0x3d34f4){_0xedb5f6['push'](_0xedb5f6['shift']());}}}(a23_0x58f7,0xd8bd2));const winston=require(a23_0x29d73a(0xa1)),fs=require('fs'),path=require('path'),logDir=a23_0x29d73a(0x9e);function a23_0x4e43(_0x5d1e59,_0x4dc09f){const _0x58f7bb=a23_0x58f7();return a23_0x4e43=function(_0x4e439d,_0x37bc2c){_0x4e439d=_0x4e439d-0x96;let _0x584530=_0x58f7bb[_0x4e439d];return _0x584530;},a23_0x4e43(_0x5d1e59,_0x4dc09f);}!fs[a23_0x29d73a(0xb2)](logDir)&&fs[a23_0x29d73a(0xb5)](logDir);const a23_0x297eb2={};a23_0x297eb2[a23_0x29d73a(0x96)]=a23_0x29d73a(0xb1);const a23_0x1d0c29={};a23_0x1d0c29['level']=!![];const a23_0x4a5a8e={};a23_0x4a5a8e[a23_0x29d73a(0xa2)]='console.info',exports['logger']=new winston[(a23_0x29d73a(0xa0))]({'format':winston[a23_0x29d73a(0x96)][a23_0x29d73a(0xa4)](winston[a23_0x29d73a(0x96)][a23_0x29d73a(0x9f)](a23_0x297eb2),winston['format'][a23_0x29d73a(0x9c)](a23_0x1d0c29),winston[a23_0x29d73a(0x96)][a23_0x29d73a(0x97)](_0x44c08b=>_0x44c08b[a23_0x29d73a(0x9f)]+a23_0x29d73a(0xa8)+_0x44c08b[a23_0x29d73a(0xa9)]+':\x20'+_0x44c08b[a23_0x29d73a(0xab)])),'transports':[new winston[(a23_0x29d73a(0xa5))][(a23_0x29d73a(0xa6))](a23_0x4a5a8e),new winston[(a23_0x29d73a(0xa5))][(a23_0x29d73a(0x9b))]({'filename':path[a23_0x29d73a(0xac)](logDir,a23_0x29d73a(0x9a)),'level':a23_0x29d73a(0xb4)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x29d73a(0x9b))]({'filename':path[a23_0x29d73a(0xac)](logDir,'usage.log'),'level':a23_0x29d73a(0xb4)})]};exports[a23_0x29d73a(0xa3)]=new winston[(a23_0x29d73a(0xa0))](winstonFileLoggerParams);
1
+ function a23_0x575e(_0x4c4bef,_0x5673f7){const _0xc475bd=a23_0xc475();return a23_0x575e=function(_0x575ed6,_0x2e41fe){_0x575ed6=_0x575ed6-0x17d;let _0x2060ef=_0xc475bd[_0x575ed6];return _0x2060ef;},a23_0x575e(_0x4c4bef,_0x5673f7);}const a23_0x93812=a23_0x575e;(function(_0x4c5828,_0x337a27){const _0x549802=a23_0x575e,_0x52c5c5=_0x4c5828();while(!![]){try{const _0x49232a=parseInt(_0x549802(0x188))/0x1+parseInt(_0x549802(0x184))/0x2*(parseInt(_0x549802(0x193))/0x3)+parseInt(_0x549802(0x17f))/0x4+parseInt(_0x549802(0x18d))/0x5+parseInt(_0x549802(0x18e))/0x6*(-parseInt(_0x549802(0x186))/0x7)+-parseInt(_0x549802(0x18c))/0x8+-parseInt(_0x549802(0x180))/0x9;if(_0x49232a===_0x337a27)break;else _0x52c5c5['push'](_0x52c5c5['shift']());}catch(_0x56dc57){_0x52c5c5['push'](_0x52c5c5['shift']());}}}(a23_0xc475,0xa92ac));const winston=require('winston'),fs=require('fs'),path=require(a23_0x93812(0x19c)),logDir=a23_0x93812(0x17e);!fs[a23_0x93812(0x19d)](logDir)&&fs[a23_0x93812(0x183)](logDir);const a23_0x3ce6fc={};a23_0x3ce6fc['format']=a23_0x93812(0x19b);function a23_0xc475(){const _0x481642=['2254922luNnyl','createLogger','147fgtlkT','debug','866563xYVgjW','name','logger','\x20-\x20','4525696lYvvrT','538690ylNhpf','259338xmpWdK','transports','join','combine','colorize','3xnQCqE','fileLogger','message','level','Console','usage.log','console.info','File','YYYY-MM-DD\x20HH:mm:ss','path','existsSync','events.log','format','log','2849516OoXpGw','5830542KGyXSR','printf','timestamp','mkdirSync'];a23_0xc475=function(){return _0x481642;};return a23_0xc475();}const a23_0x585003={};a23_0x585003['level']=!![];const a23_0x10424c={};a23_0x10424c[a23_0x93812(0x189)]=a23_0x93812(0x199),exports[a23_0x93812(0x18a)]=new winston[(a23_0x93812(0x185))]({'format':winston[a23_0x93812(0x17d)][a23_0x93812(0x191)](winston[a23_0x93812(0x17d)]['timestamp'](a23_0x3ce6fc),winston[a23_0x93812(0x17d)][a23_0x93812(0x192)](a23_0x585003),winston[a23_0x93812(0x17d)][a23_0x93812(0x181)](_0x3f3b18=>_0x3f3b18[a23_0x93812(0x182)]+a23_0x93812(0x18b)+_0x3f3b18[a23_0x93812(0x196)]+':\x20'+_0x3f3b18[a23_0x93812(0x195)])),'transports':[new winston[(a23_0x93812(0x18f))][(a23_0x93812(0x197))](a23_0x10424c),new winston[(a23_0x93812(0x18f))][(a23_0x93812(0x19a))]({'filename':path[a23_0x93812(0x190)](logDir,a23_0x93812(0x19e)),'level':a23_0x93812(0x187)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x93812(0x18f))][(a23_0x93812(0x19a))]({'filename':path['join'](logDir,a23_0x93812(0x198)),'level':'debug'})]};exports[a23_0x93812(0x194)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x3a2182=a24_0x2eaf;(function(_0x3c57b6,_0x33b627){const _0x1dee85=a24_0x2eaf,_0x34a822=_0x3c57b6();while(!![]){try{const _0x243a17=parseInt(_0x1dee85(0xc9))/0x1+-parseInt(_0x1dee85(0xc5))/0x2*(parseInt(_0x1dee85(0xd4))/0x3)+-parseInt(_0x1dee85(0xc8))/0x4*(-parseInt(_0x1dee85(0xc7))/0x5)+-parseInt(_0x1dee85(0xd5))/0x6*(parseInt(_0x1dee85(0xcd))/0x7)+parseInt(_0x1dee85(0xd8))/0x8*(-parseInt(_0x1dee85(0xd1))/0x9)+parseInt(_0x1dee85(0xce))/0xa+-parseInt(_0x1dee85(0xc6))/0xb*(parseInt(_0x1dee85(0xc4))/0xc);if(_0x243a17===_0x33b627)break;else _0x34a822['push'](_0x34a822['shift']());}catch(_0x580932){_0x34a822['push'](_0x34a822['shift']());}}}(a24_0x2f72,0x6ee16));function a24_0x2f72(){const _0x1d9ae8=['./config/constants','177002jLoHan','6290360hyQYzO','root','wOTRs','28233dPdqSa','exports','commands','37551MDNcfw','186qcidwM','env','epilogue','168eihOKE','commandDir','8426940KGcHxQ','2cPxHUq','11vRZUoD','2903990LkhPOS','4VEkyHL','808837tyKgfV','OWKju','usage'];a24_0x2f72=function(){return _0x1d9ae8;};return a24_0x2f72();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3a2182(0xcc));function a24_0x2eaf(_0x17a347,_0xa6083d){const _0x2f72ce=a24_0x2f72();return a24_0x2eaf=function(_0x2eaf39,_0x219a62){_0x2eaf39=_0x2eaf39-0xc4;let _0x32494d=_0x2f72ce[_0x2eaf39];return _0x32494d;},a24_0x2eaf(_0x17a347,_0xa6083d);}process[a24_0x3a2182(0xd6)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x5e60e3){const _0x4914e5=a24_0x3a2182,_0x54b6cd={};_0x54b6cd[_0x4914e5(0xca)]=_0x4914e5(0xd3),_0x54b6cd[_0x4914e5(0xd0)]='help';const _0x597ef=_0x54b6cd;_0x5e60e3[_0x4914e5(0xcb)](HELP_HEADER_MESSAGE[_0x4914e5(0xcf)])[_0x4914e5(0xd9)](_0x597ef['OWKju'])['demandCommand']()['help'](_0x597ef[_0x4914e5(0xd0)])[_0x4914e5(0xd7)](HELP_FOOTER_MESSAGE);}module[a24_0x3a2182(0xd2)]=run;
2
+ 'use strict';const a24_0x35ac46=a24_0x24bc;(function(_0x1e1c8d,_0x294e98){const _0xc7db37=a24_0x24bc,_0x5b59de=_0x1e1c8d();while(!![]){try{const _0x146f1c=parseInt(_0xc7db37(0x12e))/0x1+parseInt(_0xc7db37(0x12c))/0x2*(-parseInt(_0xc7db37(0x136))/0x3)+parseInt(_0xc7db37(0x139))/0x4*(parseInt(_0xc7db37(0x131))/0x5)+parseInt(_0xc7db37(0x13d))/0x6+-parseInt(_0xc7db37(0x12b))/0x7*(-parseInt(_0xc7db37(0x138))/0x8)+parseInt(_0xc7db37(0x12f))/0x9*(-parseInt(_0xc7db37(0x130))/0xa)+-parseInt(_0xc7db37(0x135))/0xb*(parseInt(_0xc7db37(0x13b))/0xc);if(_0x146f1c===_0x294e98)break;else _0x5b59de['push'](_0x5b59de['shift']());}catch(_0x4a1554){_0x5b59de['push'](_0x5b59de['shift']());}}}(a24_0x32ea,0x26333));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x35ac46(0x133));process[a24_0x35ac46(0x13c)][a24_0x35ac46(0x132)]=0x1;function a24_0x32ea(){const _0x1305a6=['wWYPy','ifAEH','1188439fmPITn','103594tsAOCo','help','218216lFJBgo','9uDIBUo','499390PUmCKU','1985tinRVs','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','./config/constants','demandCommand','2365coQtRm','3OKagnJ','usage','8NyUfUE','580tgddFA','epilogue','24996JKWLqd','env','1562940ZQUSEA'];a24_0x32ea=function(){return _0x1305a6;};return a24_0x32ea();}function a24_0x24bc(_0x46f4b1,_0x136a7c){const _0x32ea04=a24_0x32ea();return a24_0x24bc=function(_0x24bc20,_0x17a371){_0x24bc20=_0x24bc20-0x129;let _0x1049f0=_0x32ea04[_0x24bc20];return _0x1049f0;},a24_0x24bc(_0x46f4b1,_0x136a7c);}function run(_0x202124){const _0x312621=a24_0x35ac46,_0x17a360={};_0x17a360['wWYPy']='commands',_0x17a360[_0x312621(0x12a)]='help';const _0x1147d3=_0x17a360;_0x202124[_0x312621(0x137)](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x1147d3[_0x312621(0x129)])[_0x312621(0x134)]()[_0x312621(0x12d)](_0x1147d3[_0x312621(0x12a)])[_0x312621(0x13a)](HELP_FOOTER_MESSAGE);}module['exports']=run;