browserstack-node-sdk 1.54.2 → 1.55.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 (198) 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 +3 -3
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/newman/command.js +2 -0
  79. package/src/bin/newman/helper.js +1 -0
  80. package/src/bin/newman/reporter/index.js +1 -0
  81. package/src/bin/newman/scriptRunner.js +2 -0
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -0
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/capsMapping.js +1 -1
  156. package/src/helpers/central-scanner/constants.js +1 -1
  157. package/src/helpers/central-scanner/helpers.js +1 -1
  158. package/src/helpers/classLogger.js +1 -1
  159. package/src/helpers/globals.js +1 -1
  160. package/src/helpers/helper.js +1 -1
  161. package/src/helpers/logger.js +1 -1
  162. package/src/helpers/metadata.js +1 -1
  163. package/src/helpers/patchHelper.js +1 -1
  164. package/src/helpers/patchHelpers.js +1 -1
  165. package/src/helpers/percy/Percy.js +1 -1
  166. package/src/helpers/percy/PercyBinary.js +1 -1
  167. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  168. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  169. package/src/helpers/percy/PercySDK.js +1 -1
  170. package/src/helpers/percy/index.js +1 -1
  171. package/src/helpers/percy/utils.js +1 -1
  172. package/src/helpers/performance/constants.js +1 -1
  173. package/src/helpers/performance/performance-tester.js +1 -1
  174. package/src/helpers/playwright-helper.js +1 -1
  175. package/src/helpers/processHelper.js +1 -1
  176. package/src/helpers/puppeteer-helper.js +1 -1
  177. package/src/helpers/request-spy.js +1 -1
  178. package/src/helpers/setKeepAlive.js +1 -1
  179. package/src/helpers/test-observability/constants.js +1 -1
  180. package/src/helpers/test-observability/error-handler.js +1 -1
  181. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  182. package/src/helpers/test-observability/sessionHandler.js +1 -1
  183. package/src/helpers/test-observability/utils.js +1 -1
  184. package/src/helpers/test-orchestration/constants.js +1 -1
  185. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  186. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  187. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  188. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  189. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  190. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  191. package/src/helpers/testhub/constants.js +1 -1
  192. package/src/helpers/testhub/testhubHandler.js +1 -1
  193. package/src/helpers/testhub/utils.js +1 -1
  194. package/src/helpers/timeoutPromise.js +1 -1
  195. package/src/helpers/utilities.js +1 -1
  196. package/src/helpers/w3cMapping.js +1 -1
  197. package/src/hubAllocationMethods.js +1 -1
  198. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x30b91e=a15_0x414c;function a15_0x414c(_0x500a3c,_0x27c776){const _0x1db56f=a15_0x1db5();return a15_0x414c=function(_0x414cfc,_0x59443a){_0x414cfc=_0x414cfc-0xf6;let _0x4650ea=_0x1db56f[_0x414cfc];return _0x4650ea;},a15_0x414c(_0x500a3c,_0x27c776);}(function(_0x1a7d59,_0x4194a9){const _0x1d7aed=a15_0x414c,_0x549a41=_0x1a7d59();while(!![]){try{const _0xfe459e=-parseInt(_0x1d7aed(0x10b))/0x1*(-parseInt(_0x1d7aed(0x114))/0x2)+parseInt(_0x1d7aed(0x14a))/0x3+-parseInt(_0x1d7aed(0x144))/0x4*(-parseInt(_0x1d7aed(0xf6))/0x5)+-parseInt(_0x1d7aed(0xff))/0x6+parseInt(_0x1d7aed(0x125))/0x7*(parseInt(_0x1d7aed(0xf7))/0x8)+parseInt(_0x1d7aed(0x13c))/0x9*(parseInt(_0x1d7aed(0x119))/0xa)+-parseInt(_0x1d7aed(0x112))/0xb;if(_0xfe459e===_0x4194a9)break;else _0x549a41['push'](_0x549a41['shift']());}catch(_0x3b025c){_0x549a41['push'](_0x549a41['shift']());}}}(a15_0x1db5,0x6b8b9));function a15_0x1db5(){const _0x3f7882=['WFyDQ','984812rjNbYo','argv','server-error','XQIfQ','KkIqZ','bXnxp','1805277FeZWKc','grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','Gfqqx','existsSync','type','readFileSync','5ACKvBS','862128pWIMuJ','INFO','name','Browserstack','parse','bstackUsername','bgJXT','FgrSX','4718430VPeBEK','iYFLc','IVmwx','EJsWq','../../utils/instrumentationUtils','statusCode','OPuZF','bstackAccesskey','dgTJJ','allGrids','vtnsv','desc','2057BYKWWl','stringify','grid-name','../../config/constants','https://','usage','status','13978536roPxWW','epilogue','836GnQsZx','iIbVO','grid-id','forEach','CkQIs','110IsamMR','handler','stack','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','unknown-error','queued','LxOel','CIkPB','got','HJpvr','/packages/cli/get-grids','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','7vKPPSe','bXoqD','password','uuid','unauthorised','help','list','zBgtu','Failed\x20to\x20list\x20resources!\x20Error:\x20','grid','running','exit','log','FqgaB','cCwUT','swEoo','ERROR','table','lzyQv','PNjKn','body','cluster-name','/packages/cli/get-all-grids','558108oZgpcw','\x0aFound\x20the\x20following\x20grids:\x0a','command','boolean','push','requestId','WqDPa'];a15_0x1db5=function(){return _0x3f7882;};return a15_0x1db5();}const fs=require('fs'),got=require(a15_0x30b91e(0x121)),{table}=require(a15_0x30b91e(0x136)),{v4:uuidv4}=require(a15_0x30b91e(0x128)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x30b91e(0x10e)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x30b91e(0x103));exports[a15_0x30b91e(0x13e)]=a15_0x30b91e(0x14b),exports[a15_0x30b91e(0x10a)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x3c2712){const _0x1f00a4=a15_0x30b91e,_0x202ffb={};_0x202ffb['CIkPB']=_0x1f00a4(0x11c),_0x202ffb[_0x1f00a4(0x147)]=_0x1f00a4(0x13f),_0x202ffb[_0x1f00a4(0x12c)]=_0x1f00a4(0x12a);const _0x1d7c63=_0x202ffb,_0x1c9483={};_0x1c9483['description']=_0x1d7c63[_0x1f00a4(0x120)],_0x1c9483[_0x1f00a4(0x152)]=_0x1d7c63[_0x1f00a4(0x147)];const _0x2728a6={};return _0x2728a6['all-grids']=_0x1c9483,_0x3c2712[_0x1f00a4(0x110)](HELP_HEADER_MESSAGE[_0x1f00a4(0x12b)][_0x1f00a4(0x12e)])[_0x1f00a4(0x113)](HELP_FOOTER_MESSAGE)[_0x1f00a4(0x14d)](_0x2728a6)['help'](_0x1d7c63[_0x1f00a4(0x12c)])[_0x1f00a4(0x145)];},exports[a15_0x30b91e(0x11a)]=async function(_0x104b7b){const _0x102614=a15_0x30b91e,_0x12220a={'PNjKn':function(_0x5afba7){return _0x5afba7();},'jabpp':function(_0x4b2125){return _0x4b2125();},'WFyDQ':_0x102614(0x124),'LxOel':function(_0x113d49,_0x52c552,_0x330111,_0x19f34f,_0x1bd3f0,_0x4f69be,_0x968d89){return _0x113d49(_0x52c552,_0x330111,_0x19f34f,_0x1bd3f0,_0x4f69be,_0x968d89);},'lzyQv':'list-grids-called','Gfqqx':'init-not-called','HJpvr':function(_0x4a63ca){return _0x4a63ca();},'WOGqE':'GET','KkIqZ':function(_0x1839e3,_0x25c169,_0x13415e){return _0x1839e3(_0x25c169,_0x13415e);},'bgJXT':function(_0x364b0f,_0x46cf42,_0x4fa781){return _0x364b0f(_0x46cf42,_0x4fa781);},'FgrSX':function(_0x17407b,_0x378bbb){return _0x17407b!==_0x378bbb;},'iIbVO':function(_0x14ea8e,_0x401bc1){return _0x14ea8e!==_0x401bc1;},'bXnxp':function(_0x28ac2e,_0x1170e8){return _0x28ac2e===_0x1170e8;},'vLePe':_0x102614(0x13d),'FqgaB':_0x102614(0x116),'tHQoQ':_0x102614(0x10d),'WqDPa':_0x102614(0x111),'iYFLc':_0x102614(0x12f),'dgTJJ':'queued','swEoo':_0x102614(0x13a),'SPCBT':function(_0x45f92a,_0x2340ee){return _0x45f92a(_0x2340ee);},'cCwUT':function(_0xdae8cf,_0x9140cd){return _0xdae8cf===_0x9140cd;},'vtnsv':_0x102614(0x14c),'tTEcH':function(_0x3cab5d,_0x136524,_0x5bb87b,_0x259274,_0x23c51a,_0x29e458,_0x45fea7){return _0x3cab5d(_0x136524,_0x5bb87b,_0x259274,_0x23c51a,_0x29e458,_0x45fea7);},'EJsWq':_0x102614(0x129),'bXoqD':function(_0x24f010,_0x20c204,_0x2c78f6,_0x1e90b4,_0x24c4a1,_0x13e5ce,_0x2a515b){return _0x24f010(_0x20c204,_0x2c78f6,_0x1e90b4,_0x24c4a1,_0x13e5ce,_0x2a515b);},'IVmwx':_0x102614(0x146),'CkQIs':function(_0x4b62c2,_0x5f5247,_0x5d6e2d,_0x5340d1,_0x50430c,_0x135bde,_0x635826){return _0x4b62c2(_0x5f5247,_0x5d6e2d,_0x5340d1,_0x50430c,_0x135bde,_0x635826);},'OPuZF':_0x102614(0x11d)};try{global_registry[_0x102614(0x141)]=_0x12220a[_0x102614(0x138)](uuidv4);!fs[_0x102614(0x151)](_0x12220a['jabpp'](getCredentialsPath))&&(console[_0x102614(0x14f)](_0x12220a[_0x102614(0x143)]),await _0x12220a[_0x102614(0x11f)](sendInstrumentationEvent,_0x104b7b,_0x12220a['lzyQv'],messageTypes[_0x102614(0x135)],_0x12220a[_0x102614(0x150)],null,_0x104b7b),process['exit'](0x1));const _0x169ce4=JSON[_0x102614(0xfb)](fs[_0x102614(0x153)](_0x12220a[_0x102614(0x122)](getCredentialsPath)));let _0x535aaf=_0x102614(0x10f)+AG_API_URL+_0x102614(0x123);_0x104b7b[_0x102614(0x108)]&&(_0x535aaf=_0x102614(0x10f)+AG_API_URL+_0x102614(0x13b));const _0x546712={'method':_0x12220a['WOGqE'],'headers':_0x12220a[_0x102614(0x148)](getAuthHeader,_0x169ce4[_0x102614(0xfa)]['username'],_0x169ce4['Browserstack'][_0x102614(0x127)]),'throwHttpErrors':![]};global_registry[_0x102614(0xfc)]=_0x169ce4[_0x102614(0xfa)]['username'],global_registry[_0x102614(0x106)]=_0x169ce4[_0x102614(0xfa)][_0x102614(0x127)],_0x12220a[_0x102614(0x11f)](sendInstrumentationEvent,_0x104b7b,_0x12220a['lzyQv'],messageTypes[_0x102614(0xf8)],null,null,_0x104b7b);const _0x20854c=await _0x12220a[_0x102614(0xfd)](got,_0x535aaf,_0x546712);if(_0x12220a[_0x102614(0xfe)](_0x20854c,null)&&_0x12220a[_0x102614(0x115)](_0x20854c,undefined)&&_0x12220a[_0x102614(0x149)](_0x20854c[_0x102614(0x104)],0xc8)){const _0x20bfa7=JSON[_0x102614(0xfb)](_0x20854c[_0x102614(0x139)]);console[_0x102614(0x131)](_0x12220a['vLePe']);const _0x55113b=[];_0x55113b[_0x102614(0x140)]([_0x12220a[_0x102614(0x132)],_0x12220a['tHQoQ'],_0x12220a[_0x102614(0x142)],_0x12220a[_0x102614(0x100)],_0x12220a[_0x102614(0x107)],_0x12220a[_0x102614(0x134)]]),_0x20bfa7[_0x102614(0x117)](_0x38c3a1=>{const _0x58e414=_0x102614;_0x55113b[_0x58e414(0x140)]([_0x38c3a1['id'],_0x38c3a1[_0x58e414(0xf9)],_0x38c3a1[_0x58e414(0x111)],_0x38c3a1[_0x58e414(0x12f)],_0x38c3a1[_0x58e414(0x11e)],_0x38c3a1['clusterName']]);}),console[_0x102614(0x131)](_0x12220a['SPCBT'](table,_0x55113b)),process[_0x102614(0x130)](0x0);}_0x12220a[_0x102614(0x133)](_0x20854c[_0x102614(0x104)],0x191)&&(console['error'](_0x12220a[_0x102614(0x109)]),await _0x12220a['tTEcH'](sendInstrumentationEvent,_0x104b7b,_0x12220a['lzyQv'],messageTypes[_0x102614(0x135)],_0x12220a[_0x102614(0x102)],null,_0x104b7b),process['exit'](0x1)),console['error'](_0x102614(0x14e)+JSON[_0x102614(0x10c)](_0x20854c)),await _0x12220a[_0x102614(0x126)](sendInstrumentationEvent,_0x104b7b,_0x12220a[_0x102614(0x137)],messageTypes[_0x102614(0x135)],_0x12220a[_0x102614(0x101)],_0x20854c,_0x104b7b),process['exit'](0x1);}catch(_0xbffc69){console[_0x102614(0x14f)](_0x102614(0x12d)+_0xbffc69[_0x102614(0x11b)]),await _0x12220a[_0x102614(0x118)](sendInstrumentationEvent,_0x104b7b,_0x12220a[_0x102614(0x137)],messageTypes[_0x102614(0x135)],_0x12220a[_0x102614(0x105)],_0xbffc69,_0x104b7b),process[_0x102614(0x130)](0x1);}};
1
+ function a15_0xd13d(_0x125f52,_0x53b58b){const _0x25d03=a15_0x25d0();return a15_0xd13d=function(_0xd13dae,_0x1a1d1d){_0xd13dae=_0xd13dae-0x8d;let _0x292919=_0x25d03[_0xd13dae];return _0x292919;},a15_0xd13d(_0x125f52,_0x53b58b);}const a15_0x539ced=a15_0xd13d;(function(_0x3fd972,_0x3c9eae){const _0x5a0358=a15_0xd13d,_0x4c7e4b=_0x3fd972();while(!![]){try{const _0x178346=-parseInt(_0x5a0358(0xd1))/0x1*(parseInt(_0x5a0358(0xac))/0x2)+parseInt(_0x5a0358(0xdd))/0x3+-parseInt(_0x5a0358(0xae))/0x4+parseInt(_0x5a0358(0xdc))/0x5+parseInt(_0x5a0358(0x8e))/0x6+-parseInt(_0x5a0358(0x8d))/0x7+-parseInt(_0x5a0358(0xc7))/0x8*(parseInt(_0x5a0358(0xa6))/0x9);if(_0x178346===_0x3c9eae)break;else _0x4c7e4b['push'](_0x4c7e4b['shift']());}catch(_0x557000){_0x4c7e4b['push'](_0x4c7e4b['shift']());}}}(a15_0x25d0,0x70ae8));const fs=require('fs'),got=require(a15_0x539ced(0xba)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x539ced(0x9e)),{getCredentialsPath,getAuthHeader}=require(a15_0x539ced(0x9d)),{sendInstrumentationEvent}=require(a15_0x539ced(0xd2));function a15_0x25d0(){const _0x45a13c=['name','parse','handler','dITqU','unknown-error','password','forEach','8CmWGDE','all-grids','\x0aFound\x20the\x20following\x20grids:\x0a','SoSJS','oGSVf','nfngh','init-not-called','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','IZSAn','statusCode','59toSQZu','../../utils/instrumentationUtils','log','rHquw','ERROR','UMCkO','rfpDv','cluster-name','https://','GET','ohStp','852545iocCcA','2612802qNPCQa','list-grids-called','3398871ukNxVw','5052648MpVVPV','grid-name','Failed\x20to\x20list\x20resources!\x20Error:\x20','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','wzGJu','grids','RSmRG','cpifs','JhCJk','bstackAccesskey','argv','zSYtW','grid','error','boolean','../../utils/utilityMethods','../../config/constants','list','WtFlY','body','nvxdQ','WmpuM','builder','push','6099057XfrAHi','epilogue','readFileSync','allGrids','requestId','Browserstack','8288PFkOXW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','57140ZIEtUe','queued','username','grid-id','status','stringify','command','zvJXH','/packages/cli/get-all-grids','pqQOT','NpaaW','PTiBt','got','running','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bstackUsername','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'];a15_0x25d0=function(){return _0x45a13c;};return a15_0x25d0();}exports[a15_0x539ced(0xb4)]=a15_0x539ced(0x93),exports['desc']=a15_0x539ced(0x91),exports[a15_0x539ced(0xa4)]=function(_0x550429){const _0x1f9940=a15_0x539ced,_0x1da1d0={};_0x1da1d0[_0x1f9940(0xcb)]=_0x1f9940(0xce),_0x1da1d0[_0x1f9940(0xd4)]=_0x1f9940(0x9c),_0x1da1d0['nvxdQ']='help';const _0x140a2e=_0x1da1d0,_0x4e797e={};_0x4e797e['description']=_0x140a2e[_0x1f9940(0xcb)],_0x4e797e['type']=_0x140a2e[_0x1f9940(0xd4)];const _0x2643ed={};return _0x2643ed[_0x1f9940(0xc8)]=_0x4e797e,_0x550429['usage'](HELP_HEADER_MESSAGE[_0x1f9940(0x9f)][_0x1f9940(0x9a)])[_0x1f9940(0xa7)](HELP_FOOTER_MESSAGE)['options'](_0x2643ed)['help'](_0x140a2e[_0x1f9940(0xa2)])[_0x1f9940(0x98)];},exports[a15_0x539ced(0xc2)]=async function(_0x12fcc0){const _0x10ab3f=a15_0x539ced,_0x475fb5={'FDCHT':function(_0x5485a8){return _0x5485a8();},'JhCJk':function(_0x41b444){return _0x41b444();},'RSmRG':_0x10ab3f(0xbc),'WmpuM':function(_0x20c9dc,_0x50fdb8,_0x3f6937,_0x46f7c8,_0xa08cc0,_0x55faae,_0x424274){return _0x20c9dc(_0x50fdb8,_0x3f6937,_0x46f7c8,_0xa08cc0,_0x55faae,_0x424274);},'zSYtW':_0x10ab3f(0xde),'IZSAn':_0x10ab3f(0xcd),'oPobp':_0x10ab3f(0xda),'WtFlY':function(_0x4b326a,_0x2fd4b7,_0x4a29f0){return _0x4b326a(_0x2fd4b7,_0x4a29f0);},'wzGJu':function(_0x2fee44,_0x2d8bef,_0x356d29,_0x34c56a,_0x6d3338,_0x132be8,_0x3ebf20){return _0x2fee44(_0x2d8bef,_0x356d29,_0x34c56a,_0x6d3338,_0x132be8,_0x3ebf20);},'UMCkO':function(_0x393918,_0xbab1c2){return _0x393918!==_0xbab1c2;},'rfpDv':function(_0x4d81d7,_0xbb5d57){return _0x4d81d7===_0xbb5d57;},'SoSJS':_0x10ab3f(0xc9),'quSnI':_0x10ab3f(0xb1),'dITqU':_0x10ab3f(0x8f),'NlbES':_0x10ab3f(0xb2),'Qzfyv':_0x10ab3f(0xbb),'Ccged':'queued','nfngh':_0x10ab3f(0xd8),'PTiBt':function(_0x32629a,_0x4c04d9){return _0x32629a(_0x4c04d9);},'cpifs':function(_0x5e950a,_0x2557be){return _0x5e950a===_0x2557be;},'zvJXH':_0x10ab3f(0xbf),'ohStp':'unauthorised','NpaaW':'server-error','pqQOT':_0x10ab3f(0xc4)};try{global_registry[_0x10ab3f(0xaa)]=_0x475fb5['FDCHT'](uuidv4);!fs['existsSync'](_0x475fb5[_0x10ab3f(0x96)](getCredentialsPath))&&(console[_0x10ab3f(0x9b)](_0x475fb5[_0x10ab3f(0x94)]),await _0x475fb5[_0x10ab3f(0xa3)](sendInstrumentationEvent,_0x12fcc0,_0x475fb5[_0x10ab3f(0x99)],messageTypes[_0x10ab3f(0xd5)],_0x475fb5[_0x10ab3f(0xcf)],null,_0x12fcc0),process[_0x10ab3f(0xbe)](0x1));const _0x219b11=JSON['parse'](fs[_0x10ab3f(0xa8)](_0x475fb5[_0x10ab3f(0x96)](getCredentialsPath)));let _0x18dc3f=_0x10ab3f(0xd9)+AG_API_URL+'/packages/cli/get-grids';_0x12fcc0[_0x10ab3f(0xa9)]&&(_0x18dc3f='https://'+AG_API_URL+_0x10ab3f(0xb6));const _0x80bd3d={'method':_0x475fb5['oPobp'],'headers':_0x475fb5[_0x10ab3f(0xa0)](getAuthHeader,_0x219b11['Browserstack'][_0x10ab3f(0xb0)],_0x219b11['Browserstack'][_0x10ab3f(0xc5)]),'throwHttpErrors':![]};global_registry[_0x10ab3f(0xbd)]=_0x219b11['Browserstack'][_0x10ab3f(0xb0)],global_registry[_0x10ab3f(0x97)]=_0x219b11[_0x10ab3f(0xab)][_0x10ab3f(0xc5)],_0x475fb5['wzGJu'](sendInstrumentationEvent,_0x12fcc0,_0x475fb5[_0x10ab3f(0x99)],messageTypes['INFO'],null,null,_0x12fcc0);const _0x599a0c=await _0x475fb5[_0x10ab3f(0xa0)](got,_0x18dc3f,_0x80bd3d);if(_0x475fb5[_0x10ab3f(0xd6)](_0x599a0c,null)&&_0x475fb5[_0x10ab3f(0xd6)](_0x599a0c,undefined)&&_0x475fb5[_0x10ab3f(0xd7)](_0x599a0c[_0x10ab3f(0xd0)],0xc8)){const _0x5a257d=JSON[_0x10ab3f(0xc1)](_0x599a0c[_0x10ab3f(0xa1)]);console[_0x10ab3f(0xd3)](_0x475fb5[_0x10ab3f(0xca)]);const _0xd191ed=[];_0xd191ed[_0x10ab3f(0xa5)]([_0x475fb5['quSnI'],_0x475fb5[_0x10ab3f(0xc3)],_0x475fb5['NlbES'],_0x475fb5['Qzfyv'],_0x475fb5['Ccged'],_0x475fb5[_0x10ab3f(0xcc)]]),_0x5a257d[_0x10ab3f(0xc6)](_0xf68da3=>{const _0x3eab25=_0x10ab3f;_0xd191ed[_0x3eab25(0xa5)]([_0xf68da3['id'],_0xf68da3[_0x3eab25(0xc0)],_0xf68da3[_0x3eab25(0xb2)],_0xf68da3[_0x3eab25(0xbb)],_0xf68da3[_0x3eab25(0xaf)],_0xf68da3['clusterName']]);}),console[_0x10ab3f(0xd3)](_0x475fb5[_0x10ab3f(0xb9)](table,_0xd191ed)),process[_0x10ab3f(0xbe)](0x0);}_0x475fb5[_0x10ab3f(0x95)](_0x599a0c[_0x10ab3f(0xd0)],0x191)&&(console[_0x10ab3f(0x9b)](_0x475fb5[_0x10ab3f(0xb5)]),await _0x475fb5[_0x10ab3f(0xa3)](sendInstrumentationEvent,_0x12fcc0,_0x475fb5[_0x10ab3f(0x99)],messageTypes[_0x10ab3f(0xd5)],_0x475fb5[_0x10ab3f(0xdb)],null,_0x12fcc0),process['exit'](0x1)),console[_0x10ab3f(0x9b)](_0x10ab3f(0xad)+JSON[_0x10ab3f(0xb3)](_0x599a0c)),await _0x475fb5['wzGJu'](sendInstrumentationEvent,_0x12fcc0,_0x475fb5[_0x10ab3f(0x99)],messageTypes[_0x10ab3f(0xd5)],_0x475fb5[_0x10ab3f(0xb8)],_0x599a0c,_0x12fcc0),process[_0x10ab3f(0xbe)](0x1);}catch(_0x35cb91){console['error'](_0x10ab3f(0x90)+_0x35cb91['stack']),await _0x475fb5[_0x10ab3f(0x92)](sendInstrumentationEvent,_0x12fcc0,_0x475fb5[_0x10ab3f(0x99)],messageTypes[_0x10ab3f(0xd5)],_0x475fb5[_0x10ab3f(0xb7)],_0x35cb91,_0x12fcc0),process[_0x10ab3f(0xbe)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x5730(){const _0x5b3d10=['help','recommendCommands','usage','960ZKUfOt','24mdJeUm','58214dSTVSZ','7YmVqff','1860726pPVrWA','epilogue','desc','4qGczmb','pre-check','6129384xOXAMi','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','15695647LzQsDp','strict','8841627PKhFet','19134ciBYuK','32hszIMJ','pre_check','handler','4250650ZDJnEl','itzMg','precheck_commands','../config/constants','commandDir'];a16_0x5730=function(){return _0x5b3d10;};return a16_0x5730();}function a16_0x245f(_0x3220be,_0x338c46){const _0x5730ac=a16_0x5730();return a16_0x245f=function(_0x245fb4,_0x14d7b1){_0x245fb4=_0x245fb4-0x186;let _0x2fcbc8=_0x5730ac[_0x245fb4];return _0x2fcbc8;},a16_0x245f(_0x3220be,_0x338c46);}const a16_0x3c4df2=a16_0x245f;(function(_0x3b27e8,_0x29bcdd){const _0x24ff2a=a16_0x245f,_0x304bec=_0x3b27e8();while(!![]){try{const _0x1ea960=parseInt(_0x24ff2a(0x192))/0x1*(parseInt(_0x24ff2a(0x19f))/0x2)+parseInt(_0x24ff2a(0x187))/0x3*(parseInt(_0x24ff2a(0x18a))/0x4)+parseInt(_0x24ff2a(0x19d))/0x5*(parseInt(_0x24ff2a(0x191))/0x6)+-parseInt(_0x24ff2a(0x186))/0x7*(-parseInt(_0x24ff2a(0x18c))/0x8)+parseInt(_0x24ff2a(0x190))/0x9+-parseInt(_0x24ff2a(0x195))/0xa+-parseInt(_0x24ff2a(0x18e))/0xb*(parseInt(_0x24ff2a(0x19e))/0xc);if(_0x1ea960===_0x29bcdd)break;else _0x304bec['push'](_0x304bec['shift']());}catch(_0x3df965){_0x304bec['push'](_0x304bec['shift']());}}}(a16_0x5730,0x9ab6f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x3c4df2(0x198));exports['command']=a16_0x3c4df2(0x18b),exports[a16_0x3c4df2(0x189)]=a16_0x3c4df2(0x18d),exports['builder']=function(_0x2bb9a9){const _0x3314c4=a16_0x3c4df2,_0x3da1ab={};_0x3da1ab['UiZyH']=_0x3314c4(0x197),_0x3da1ab[_0x3314c4(0x196)]=_0x3314c4(0x19a);const _0x2e44d5=_0x3da1ab;return _0x2bb9a9[_0x3314c4(0x19c)](HELP_HEADER_MESSAGE[_0x3314c4(0x193)])[_0x3314c4(0x188)](HELP_FOOTER_MESSAGE)[_0x3314c4(0x199)](_0x2e44d5['UiZyH'])['demandCommand']()[_0x3314c4(0x19b)]()[_0x3314c4(0x18f)]()[_0x3314c4(0x19a)](_0x2e44d5[_0x3314c4(0x196)]);},exports[a16_0x3c4df2(0x194)]=function(_0x216456){};
1
+ const a16_0x4a116a=a16_0x142e;(function(_0x52e656,_0x3764b2){const _0x4e62f7=a16_0x142e,_0x25cf8b=_0x52e656();while(!![]){try{const _0x22912e=parseInt(_0x4e62f7(0x139))/0x1+-parseInt(_0x4e62f7(0x13b))/0x2*(parseInt(_0x4e62f7(0x134))/0x3)+parseInt(_0x4e62f7(0x137))/0x4*(parseInt(_0x4e62f7(0x12f))/0x5)+parseInt(_0x4e62f7(0x12b))/0x6+-parseInt(_0x4e62f7(0x132))/0x7+-parseInt(_0x4e62f7(0x130))/0x8+parseInt(_0x4e62f7(0x133))/0x9;if(_0x22912e===_0x3764b2)break;else _0x25cf8b['push'](_0x25cf8b['shift']());}catch(_0x220473){_0x25cf8b['push'](_0x25cf8b['shift']());}}}(a16_0x2673,0x87f0f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4a116a(0x13d));exports['command']=a16_0x4a116a(0x131),exports[a16_0x4a116a(0x129)]=a16_0x4a116a(0x124),exports[a16_0x4a116a(0x136)]=function(_0x4c2ec6){const _0x2f7004=a16_0x4a116a,_0x19e44e={};_0x19e44e[_0x2f7004(0x126)]=_0x2f7004(0x13a),_0x19e44e[_0x2f7004(0x12a)]='help';const _0x33f6b7=_0x19e44e;return _0x4c2ec6[_0x2f7004(0x135)](HELP_HEADER_MESSAGE[_0x2f7004(0x12c)])[_0x2f7004(0x127)](HELP_FOOTER_MESSAGE)[_0x2f7004(0x12e)](_0x33f6b7[_0x2f7004(0x126)])[_0x2f7004(0x13c)]()[_0x2f7004(0x125)]()[_0x2f7004(0x138)]()[_0x2f7004(0x12d)](_0x33f6b7[_0x2f7004(0x12a)]);},exports[a16_0x4a116a(0x128)]=function(_0x23a0f2){};function a16_0x142e(_0x1c88aa,_0x491714){const _0x267341=a16_0x2673();return a16_0x142e=function(_0x142e79,_0x405212){_0x142e79=_0x142e79-0x124;let _0x3c4012=_0x267341[_0x142e79];return _0x3c4012;},a16_0x142e(_0x1c88aa,_0x491714);}function a16_0x2673(){const _0x12df22=['desc','XEknH','3760512ZGdjgX','pre_check','help','commandDir','105815zpjrxQ','4807232HMgqJD','pre-check','3652187MnmSYg','4326273nQVEDA','3pAmRsX','usage','builder','152LBgidb','strict','256310dmLSCO','precheck_commands','976986ShfVef','demandCommand','../config/constants','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','recommendCommands','anqLZ','epilogue','handler'];a16_0x2673=function(){return _0x12df22;};return a16_0x2673();}
@@ -1 +1 @@
1
- const a17_0x30922c=a17_0x29c9;function a17_0x233b(){const _0x23f074=[']\x20status\x20:\x20','throwHttpErrors','WyIqn','yojsy','fuMhf','dummy-grid','INFO','../../config/constants','rlrWw','\x20\x20Code:\x20','===\x20Precheck\x20Report\x20-\x20','VHSSg','WebSocket','CvKvR','562347KciLrI','string','pre-check','\x20data\x20:\x20','wnYgC','GtoQD','NgMGe','\x20\x20Message:\x20','requestId','3122415ltceeJ','iTeEY','1446403ZBPTBb','Cluster\x20','Setting\x20cloud\x20provider\x20as\x20','stringify','syZoC','getUTCMonth','includes','Whitelisted\x20browserstack','password','clusterName','uBRms','iLtIa','JSqXM','EfhTH','DWcuZ','vShyE','znXIu','command','getUTCDate','header','response','is\x20already\x20present','unable\x20to\x20verify\x20if\x20cluster\x20`','lfRrV','2678934jIWUZa','NzyZk','rFREn','data','cloud-provider-not-supported','rABuV','rNxeO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','narqp','4BSilRn','length','HtbRw','cloudProvider','bstackAccesskey','ZzYHR','delay','wTOIt','https://','noebJ','iJKJb','SCcXV','pre_check','LOG','nIaYq','JFWPc','IFhrs','authHeader','username','forEach','readFileSync','reconnecting-websocket','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','grid-profile','UwAmu','MhmzK','397115PLqMWX','name','existsSync','YrRnK','info','vbMpE','ERROR','DvDHO','JiDZQ','sendEventToBackend','usage','argv','ZhvuD','Browserstack','Failed\x20in\x20pre-check!\x20Error:\x20','Cluster\x20details\x0a-----------------------\x0a','type','CHzpt','jmlgA','\x20\x20Stack:\x20','178390lpWPxM','handler','Hzynd','Tadbq','clusterRegion','options','.\x20Please\x20provide\x20all\x20required\x20arguments.','bvKrP','DlswN','Status:\x20','ohtvR','caVBQ','Message:\x20','accessResp','uSmJO','mAtHg','VdjCs','status','KoNNL','message','Hhwbr','vyrTa','checkAccess','error','TxslI','oeVOa','vmhSQ','stack\x20trace\x20','find','../../utils/utilityMethods','hIYZE','Pre-check\x20running\x20for\x20Cloud\x20-\x20','cluster-name','hAMvK','replace','N/A','debug','tKpGz','getUTCHours','bqeJC','TLSv1_2_client_method','jIuVj','ZnVPH','KXTyc','qnzQv','error\x20stack\x20:\x20','MBPUh','YTKrk','OmVfA','User\x20Access','pre-check-failed','Report\x20saved\x20in\x20','connectionTimeout','TRUwW','uufsX','MyUPF','push','help','builder','pre-check-grid-profile-empty','CIxjR','stack','Cluster\x20`','WVEgq','worgO','CLOUD_PROVIDER','IliSI','GukZl','RxQuD','nuFza','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','init','writeFileSync','parse','<PasswordPlaceholder>','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','`\x20already\x20exists','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','body','VPGvF','epilogue','desc','srrdC','`\x20is\x20present\x20in\x20region\x20`','uXgUr','getUTCFullYear','will\x20be\x20created','ZwQSD','../../utils/instrumentationUtils','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Error\x20Details:\x0a','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','zLHbO','eLfzb','EDiFu','uuid','rgYAY','isClusterPresent','VXvrv','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','join','cloud-provider','fXPuv','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','description','credential-not-found','code','EhEjZ','SSL\x20Configured','kdTpK','headers','gridProfile','pZEuJ','lSHpC','jRnTD','11247111neuMuP','bstackUsername','vGKzz','HEwWf','`\x20,error\x20:\x20','getUTCMinutes','kmvpf','Success','cnWse','method','\x20error\x20:\x20','vGyit','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','qpwuq','Failure','FEGml','0|2|3|4|1','region','AORAQ','pre-check-grid-called','XikDk','Vvcwq','GET','<UsernamePlaceholder>','8HkKrcc'];a17_0x233b=function(){return _0x23f074;};return a17_0x233b();}function a17_0x29c9(_0x4f1025,_0x872666){const _0x233b29=a17_0x233b();return a17_0x29c9=function(_0x29c98e,_0x6cb2f5){_0x29c98e=_0x29c98e-0xa6;let _0x57467e=_0x233b29[_0x29c98e];return _0x57467e;},a17_0x29c9(_0x4f1025,_0x872666);}(function(_0x21968f,_0x15c712){const _0x3af771=a17_0x29c9,_0x57228c=_0x21968f();while(!![]){try{const _0x46bb82=parseInt(_0x3af771(0x16c))/0x1+-parseInt(_0x3af771(0xd2))/0x2+parseInt(_0x3af771(0x175))/0x3+parseInt(_0x3af771(0x199))/0x4*(parseInt(_0x3af771(0xbe))/0x5)+parseInt(_0x3af771(0x18f))/0x6+parseInt(_0x3af771(0x177))/0x7*(-parseInt(_0x3af771(0x15d))/0x8)+-parseInt(_0x3af771(0x145))/0x9;if(_0x46bb82===_0x15c712)break;else _0x57228c['push'](_0x57228c['shift']());}catch(_0x10e6db){_0x57228c['push'](_0x57228c['shift']());}}}(a17_0x233b,0x8e789));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x30922c(0x131)),ReconnectingWebSocket=require(a17_0x30922c(0xb9)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x30922c(0xef)),{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_0x30922c(0x165)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x30922c(0x12a));exports[a17_0x30922c(0x188)]='grid',exports[a17_0x30922c(0x123)]=a17_0x30922c(0x135),exports[a17_0x30922c(0x10c)]=function(_0xc68587){const _0x2a6835=a17_0x30922c,_0x43aa3b={};_0x43aa3b['zLHbO']=_0x2a6835(0x118),_0x43aa3b['nIaYq']='string',_0x43aa3b[_0x2a6835(0x18e)]=_0x2a6835(0x12b),_0x43aa3b[_0x2a6835(0xd4)]=_0x2a6835(0x11f),_0x43aa3b[_0x2a6835(0x161)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x43aa3b[_0x2a6835(0x150)]='help';const _0x3f2810=_0x43aa3b,_0x4e19f0={};_0x4e19f0[_0x2a6835(0x13a)]=_0x3f2810[_0x2a6835(0x12e)],_0x4e19f0['type']=_0x3f2810[_0x2a6835(0xb2)];const _0x3cbe4f={};_0x3cbe4f[_0x2a6835(0x13a)]=_0x3f2810[_0x2a6835(0x18e)],_0x3cbe4f[_0x2a6835(0xce)]=_0x3f2810[_0x2a6835(0xb2)];const _0x3de6e6={};_0x3de6e6['description']=_0x3f2810[_0x2a6835(0xd4)],_0x3de6e6[_0x2a6835(0xce)]=_0x3f2810['nIaYq'];const _0xe8133f={};_0xe8133f[_0x2a6835(0x13a)]=_0x3f2810[_0x2a6835(0x161)],_0xe8133f[_0x2a6835(0xce)]=_0x3f2810[_0x2a6835(0xb2)];const _0x3cf135={};return _0x3cf135[_0x2a6835(0xf2)]=_0x4e19f0,_0x3cf135['cloud-provider']=_0x3cbe4f,_0x3cf135[_0x2a6835(0x156)]=_0x3de6e6,_0x3cf135[_0x2a6835(0xbb)]=_0xe8133f,_0xc68587[_0x2a6835(0xc8)](HELP_HEADER_MESSAGE[_0x2a6835(0xb0)])[_0x2a6835(0x122)](HELP_FOOTER_MESSAGE)[_0x2a6835(0xd7)](_0x3cf135)['help'](_0x3f2810[_0x2a6835(0x150)])[_0x2a6835(0xc9)];};async function inputValidation(_0x1b9ef6,_0x2176d4){const _0x5cbc79=a17_0x30922c,_0x1e5513={'wnYgC':function(_0x43898f,_0xefa335){return _0x43898f+_0xefa335;},'JiDZQ':_0x5cbc79(0x14c),'wTOIt':'Failure','CvKvR':function(_0x3a50e1,_0x439213){return _0x3a50e1||_0x439213;},'RxQuD':_0x5cbc79(0xf5),'nuFza':_0x5cbc79(0x12c),'iXMNr':_0x5cbc79(0x139),'Vvcwq':_0x5cbc79(0x118),'KXTyc':_0x5cbc79(0x16d),'noebJ':_0x5cbc79(0x12b),'ThcOH':_0x5cbc79(0x11f),'lyYBX':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','AORAQ':_0x5cbc79(0x10b),'Hhwbr':_0x5cbc79(0x156),'WyIqn':_0x5cbc79(0x18c),'cnWse':_0x5cbc79(0x128),'worgO':'cluster-name','bqeJC':_0x5cbc79(0xe9),'rFREn':function(_0x3e4889,_0x44dcec){return _0x3e4889===_0x44dcec;},'vNbkg':_0x5cbc79(0xfb),'ZhvuD':_0x5cbc79(0x14b),'iJKJb':_0x5cbc79(0x147),'XMgOl':_0x5cbc79(0xb3),'ZwQSD':_0x5cbc79(0x194),'hAMvK':'WjjZp','IliSI':'cloud-provider','jRnTD':function(_0x5073a8,_0x35b357){return _0x5073a8!==_0x35b357;},'HtbRw':_0x5cbc79(0x148),'zsYqR':function(_0x53bbd1,_0x4c368f){return _0x53bbd1>_0x4c368f;},'UwAmu':function(_0x4f87db,_0x595334){return _0x4f87db!==_0x595334;},'CAEfK':_0x5cbc79(0x183),'EhEjZ':'VfGoN','lSHpC':function(_0x161c80,_0x4ac527,_0xcc9c52,_0x2633f1,_0x204ea6,_0x5eb6e4,_0x30f932,_0x876c16){return _0x161c80(_0x4ac527,_0xcc9c52,_0x2633f1,_0x204ea6,_0x5eb6e4,_0x30f932,_0x876c16);},'uSmJO':_0x5cbc79(0x158),'vyrTa':'pre-check-cluster-args-not-passed','Wqfbt':function(_0xc97938,_0x288c5e){return _0xc97938!==_0x288c5e;},'SCcXV':_0x5cbc79(0xd5),'jmlgA':_0x5cbc79(0x11d),'dwNNk':function(_0x562f0b,_0xb0e46e,_0x30afbb,_0x2fd131,_0x2cdd61,_0x1f4ea7,_0x1a9d83,_0x197755){return _0x562f0b(_0xb0e46e,_0x30afbb,_0x2fd131,_0x2cdd61,_0x1f4ea7,_0x1a9d83,_0x197755);},'vShyE':_0x5cbc79(0x193),'GtoQD':function(_0xa44c1,_0x596cf5){return _0xa44c1===_0x596cf5;},'ohtvR':'iiBkZ','VLtpP':'oslhf','NgMGe':_0x5cbc79(0x154),'bvKrP':_0x5cbc79(0x15b),'kBqns':function(_0x144f22,_0x55d81b,_0x29cb75){return _0x144f22(_0x55d81b,_0x29cb75);},'caVBQ':function(_0x6a31fa,_0x5f5d69,_0x2e58c2,_0x3a03ad,_0x5a207a,_0x1fd837){return _0x6a31fa(_0x5f5d69,_0x2e58c2,_0x3a03ad,_0x5a207a,_0x1fd837);},'WVEgq':_0x5cbc79(0x16e),'Sihlp':_0x5cbc79(0xbb),'DWcuZ':function(_0x3a0ed2,_0x30a5ee){return _0x3a0ed2===_0x30a5ee;},'YrRnK':'Xroqk','DvDHO':_0x5cbc79(0xa9),'mAtHg':function(_0x3083b9,_0xc384d9){return _0x3083b9(_0xc384d9);},'CIxjR':function(_0x43ae9e,_0x135478){return _0x43ae9e===_0x135478;},'CHzpt':_0x5cbc79(0xf0),'EJkyz':'HXCgd','fXPuv':_0x5cbc79(0x10d),'kdTpK':_0x5cbc79(0x162),'syZoC':'XaSZM','NzyZk':'Grid\x20profile\x20fetched\x20for\x20pre-check','IFhrs':function(_0x316b5d,_0x11d154){return _0x316b5d!==_0x11d154;},'srrdC':'mZZVO','YTKrk':_0x5cbc79(0x132),'oeVOa':_0x5cbc79(0xea),'VdjCs':function(_0x5457ba,_0x11c19b,_0x3da98d,_0x444f0c,_0x5bac97,_0x16b894,_0x2f86a8,_0x4e222c){return _0x5457ba(_0x11c19b,_0x3da98d,_0x444f0c,_0x5bac97,_0x16b894,_0x2f86a8,_0x4e222c);}};let _0x429c12;try{if(_0x1e5513[_0x5cbc79(0x191)](_0x1e5513['vNbkg'],_0x1e5513['vNbkg'])){if(_0x1b9ef6[_0x5cbc79(0x180)]||_0x1b9ef6[_0x5cbc79(0xa7)]||_0x1b9ef6[_0x5cbc79(0x156)]){if(_0x1e5513['rFREn'](_0x1e5513[_0x5cbc79(0xca)],_0x1e5513[_0x5cbc79(0xae)]))_0x203597['error'](_0x5cbc79(0xff)+_0xc26924[_0x5cbc79(0xe9)]['stack']);else{const _0x2123fa=[];if(!_0x1b9ef6['clusterName']){if(_0x1e5513['rFREn'](_0x1e5513['XMgOl'],_0x1e5513[_0x5cbc79(0x129)])){const {header:_0x488b8f,response:_0x49da7a}=_0x341fad,{status:_0x343a1b,data:_0x11e58d,error:_0x45337b}=_0x49da7a;_0x2fb0b7+=_0x488b8f+'\x20#'+_0x1e5513[_0x5cbc79(0x170)](_0x2366a4,0x1)+'\x0a',_0x4daf2e+=_0x5cbc79(0xdb)+(_0x343a1b?_0x1e5513[_0x5cbc79(0xc6)]:_0x1e5513[_0x5cbc79(0xab)])+'\x0a',_0x49216d+=_0x5cbc79(0xde)+_0x1e5513[_0x5cbc79(0x16b)](_0x11e58d,_0x1e5513['RxQuD'])+'\x0a',_0x45337b&&(_0x136619+=_0x1e5513[_0x5cbc79(0x117)],_0xf813df+=_0x5cbc79(0x173)+(_0x45337b[_0x5cbc79(0xe5)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a',_0x51eff5+='\x20\x20Code:\x20'+(_0x45337b[_0x5cbc79(0x13c)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a',_0x24dcb1+=_0x5cbc79(0xd1)+(_0x45337b[_0x5cbc79(0x10f)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a'),_0x4d0caa+='\x0a\x0a';}else _0x2123fa[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0x112)]);};!_0x1b9ef6[_0x5cbc79(0xa7)]&&(_0x1e5513[_0x5cbc79(0x191)](_0x1e5513[_0x5cbc79(0xf3)],_0x1e5513[_0x5cbc79(0xf3)])?_0x2123fa[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0x114)]):(_0x2c0061['info'](_0x5cbc79(0x179)+_0x5876cb['CLOUD_PROVIDER']+'\x20'),_0x2c3c03[_0x5cbc79(0xa7)]=_0x306d94[_0x5cbc79(0x113)]));;!_0x1b9ef6[_0x5cbc79(0x156)]&&(_0x1e5513[_0x5cbc79(0x144)](_0x1e5513['HtbRw'],_0x1e5513[_0x5cbc79(0xa6)])?(_0x541d79[_0x5cbc79(0xc2)]('['+_0xa51a50+_0x5cbc79(0x15e)+_0x133bac[_0x5cbc79(0xe3)]+_0x5cbc79(0x16f)+_0x5934b0[_0x5cbc79(0x192)]+_0x5cbc79(0x14f)+_0x32a91c['error']),_0x46542d[_0x5cbc79(0xe9)]&&_0x1bdbd2[_0x5cbc79(0xe9)](_0x5cbc79(0xff)+_0x2f9669['error']['stack'])):_0x2123fa[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0xe6)]));;_0x1e5513['zsYqR'](_0x2123fa[_0x5cbc79(0x19a)],0x0)&&(_0x1e5513[_0x5cbc79(0xbc)](_0x1e5513['CAEfK'],_0x1e5513[_0x5cbc79(0x13d)])?(_0x429c12='Missing\x20required\x20arguments:\x20'+_0x2123fa[_0x5cbc79(0x136)](',\x20')+_0x5cbc79(0xd8),await _0x1e5513[_0x5cbc79(0x143)](reportToGalactusAndSendToEDS,_0x1b9ef6,_0x2176d4,_0x429c12,messageTypes[_0x5cbc79(0xc4)],_0x1e5513[_0x5cbc79(0xe0)],_0x1e5513[_0x5cbc79(0xe7)],_0x1e5513[_0x5cbc79(0xf9)]),logger[_0x5cbc79(0xe9)](_0x429c12),process[_0x5cbc79(0x197)](0x1)):(_0x2c96a8[_0x5cbc79(0xe9)](_0x1e5513['iXMNr']),_0x4e6601[_0x5cbc79(0x197)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x5cbc79(0x17d)](_0x1b9ef6[_0x5cbc79(0xa7)]['toLowerCase']())){if(_0x1e5513['Wqfbt'](_0x1e5513[_0x5cbc79(0xaf)],_0x1e5513[_0x5cbc79(0xaf)]))_0x1fec94=_0x227cfa;else{_0x429c12=_0x1e5513[_0x5cbc79(0xd0)],await _0x1e5513['dwNNk'](reportToGalactusAndSendToEDS,_0x1b9ef6,_0x2176d4,_0x429c12,messageTypes['ERROR'],_0x1e5513[_0x5cbc79(0xe0)],_0x1e5513[_0x5cbc79(0x186)],_0x1e5513[_0x5cbc79(0xf9)]),logger[_0x5cbc79(0xe9)](_0x429c12);if(!_0x1b9ef6[_0x5cbc79(0xa7)]){if(_0x1e5513[_0x5cbc79(0x171)](_0x1e5513[_0x5cbc79(0xdc)],_0x1e5513['VLtpP'])){const _0x194175={};_0x194175[_0x5cbc79(0x13a)]=_0x1e5513[_0x5cbc79(0x15a)],_0x194175[_0x5cbc79(0xce)]=_0x1e5513[_0x5cbc79(0xfd)];const _0x24b509={};_0x24b509[_0x5cbc79(0x13a)]=_0x1e5513[_0x5cbc79(0xad)],_0x24b509[_0x5cbc79(0xce)]=_0x1e5513[_0x5cbc79(0xfd)];const _0x3ee27e={};_0x3ee27e[_0x5cbc79(0x13a)]=_0x1e5513['ThcOH'],_0x3ee27e['type']=_0x1e5513[_0x5cbc79(0xfd)];const _0x178c9f={};_0x178c9f['description']=_0x1e5513['lyYBX'],_0x178c9f[_0x5cbc79(0xce)]=_0x1e5513[_0x5cbc79(0xfd)];const _0x307d8a={};return _0x307d8a[_0x5cbc79(0xf2)]=_0x194175,_0x307d8a['cloud-provider']=_0x24b509,_0x307d8a[_0x5cbc79(0x156)]=_0x3ee27e,_0x307d8a['grid-profile']=_0x178c9f,_0x1bbe63[_0x5cbc79(0xc8)](_0x5cf7eb[_0x5cbc79(0xb0)])[_0x5cbc79(0x122)](_0x15665b)[_0x5cbc79(0xd7)](_0x307d8a)[_0x5cbc79(0x10b)](_0x1e5513[_0x5cbc79(0x157)])[_0x5cbc79(0xc9)];}else logger[_0x5cbc79(0xc2)](_0x5cbc79(0x179)+DEFAULT_CLUSTER_DETAILS[_0x5cbc79(0x113)]+'\x20'),_0x1b9ef6['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'];}}}global_registry[_0x5cbc79(0x180)]=_0x1b9ef6[_0x5cbc79(0x180)],global_registry[_0x5cbc79(0xa7)]=_0x1b9ef6['cloudProvider'],global_registry[_0x5cbc79(0xd6)]=_0x1b9ef6[_0x5cbc79(0x156)];}}else{if(_0x1b9ef6[_0x5cbc79(0x141)]){if(_0x1e5513[_0x5cbc79(0xbc)](_0x1e5513[_0x5cbc79(0x172)],_0x1e5513[_0x5cbc79(0x172)]))_0x2afb1d[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0xe6)]);else{global_registry['gridProfile']=_0x1b9ef6[_0x5cbc79(0x141)],logger[_0x5cbc79(0xf6)]('grid\x20profile\x20flow\x20'+_0x1b9ef6['gridProfile']);const _0xac8099=_0x5cbc79(0xac)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x5972ee={};_0x5972ee[_0x5cbc79(0x14e)]=_0x1e5513[_0x5cbc79(0xd9)],_0x5972ee[_0x5cbc79(0x140)]=global_registry['authHeader'],_0x5972ee[_0x5cbc79(0x15f)]=![];const _0x49b378=_0x5972ee,_0x4cf2cf=await _0x1e5513['kBqns'](got,_0xac8099,_0x49b378),_0x5459ff=await _0x1e5513[_0x5cbc79(0xdd)](responseValidation,_0x4cf2cf,_0x1e5513[_0x5cbc79(0x111)],_0x1e5513['Sihlp'],_0x1b9ef6,_0x2176d4);let _0xffee66={};if(_0x1e5513[_0x5cbc79(0x185)](_0x5459ff,0xc8)){if(_0x1e5513['DWcuZ'](_0x1e5513[_0x5cbc79(0xc1)],_0x1e5513[_0x5cbc79(0xc5)]))_0x40afe4[_0x5cbc79(0xc2)](_0x5cbc79(0x110)+_0x479714[_0x5cbc79(0x180)]+'`\x20already\x20exists');else{const _0x50f555=JSON[_0x5cbc79(0x11b)](_0x4cf2cf[_0x5cbc79(0x120)]),_0x23c9c9=_0x50f555[_0x5cbc79(0xee)](_0x44a9d7=>_0x44a9d7[_0x5cbc79(0xbf)]===_0x1b9ef6[_0x5cbc79(0x141)])||null;_0x1e5513[_0x5cbc79(0xe1)](isUndefined,_0x23c9c9)?_0x1e5513[_0x5cbc79(0x10e)](_0x1e5513[_0x5cbc79(0xcf)],_0x1e5513['EJkyz'])?_0x5d35fb+=_0x5cbc79(0x178)+_0x50d175[_0x5cbc79(0x180)]+_0x5cbc79(0xba):(_0x429c12='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x1b9ef6[_0x5cbc79(0x141)]+_0x5cbc79(0x12d),await _0x1e5513[_0x5cbc79(0x143)](reportToGalactusAndSendToEDS,_0x1b9ef6,_0x2176d4,_0x429c12,messageTypes[_0x5cbc79(0xc4)],_0x1e5513['uSmJO'],_0x1e5513[_0x5cbc79(0x138)],_0x1e5513['bqeJC']),logger[_0x5cbc79(0xe9)](_0x429c12),process[_0x5cbc79(0x197)](0x1)):_0x1e5513['CIxjR'](_0x1e5513[_0x5cbc79(0x13f)],_0x1e5513['kdTpK'])?_0xffee66=_0x23c9c9:_0x53e4a8+=_0x5cbc79(0x178)+_0x4e6ed2[_0x5cbc79(0x180)]+'\x20'+(_0x31ff2f?_0x1e5513[_0x5cbc79(0x160)]:_0x1e5513[_0x5cbc79(0x14d)])+'\x0a\x0a';}}else _0x1e5513[_0x5cbc79(0xbc)](_0x1e5513[_0x5cbc79(0x17b)],_0x1e5513['syZoC'])?(_0xf4fea6+=_0x1e5513[_0x5cbc79(0x117)],_0x17986e+='\x20\x20Message:\x20'+(_0x4fb975[_0x5cbc79(0xe5)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a',_0x36b55a+='\x20\x20Code:\x20'+(_0x562fe4[_0x5cbc79(0x13c)]||_0x1e5513['RxQuD'])+'\x0a',_0x8bf662+=_0x5cbc79(0xd1)+(_0x42da95[_0x5cbc79(0x10f)]||_0x1e5513[_0x5cbc79(0x116)])+'\x0a'):process['exit'](0x1);const _0x3b3c88={};_0x3b3c88[_0x5cbc79(0xce)]=WS_EVENTS[_0x5cbc79(0xb1)],_0x3b3c88[_0x5cbc79(0xe5)]=_0x1e5513[_0x5cbc79(0x190)],webSocketUtils[_0x5cbc79(0xc7)](_0x2176d4,_0x3b3c88),global_registry[_0x5cbc79(0xa7)]=_0xffee66['cloudProvider'],global_registry[_0x5cbc79(0xd6)]=_0xffee66[_0x5cbc79(0x156)],global_registry[_0x5cbc79(0x180)]=_0xffee66[_0x5cbc79(0x180)];}}else _0x1e5513[_0x5cbc79(0xb4)](_0x1e5513[_0x5cbc79(0x124)],_0x1e5513[_0x5cbc79(0x124)])?_0x4d4087[_0x5cbc79(0x10a)](_0x1e5513[_0x5cbc79(0x112)]):(logger['error'](_0x1e5513['iXMNr']),process[_0x5cbc79(0x197)](0x1));}}else{const _0x3e256={};_0x3e256['type']=_0x3aa9f5[_0x5cbc79(0xb1)],_0x3e256[_0x5cbc79(0xe5)]=_0x2c8287,_0x4f61e1[_0x5cbc79(0xc7)](_0x5ac1b6,_0x3e256,_0x1e5513[_0x5cbc79(0xf9)],!![]);}}catch(_0x4d77c2){_0x1e5513[_0x5cbc79(0x171)](_0x1e5513[_0x5cbc79(0x101)],_0x1e5513[_0x5cbc79(0xeb)])?_0xd10946['exit'](0x1):(_0x429c12=_0x5cbc79(0x151)+_0x4d77c2+':\x20'+_0x4d77c2[_0x5cbc79(0x10f)],logger['error'](_0x429c12),await _0x1e5513[_0x5cbc79(0xe2)](reportToGalactusAndSendToEDS,_0x1b9ef6,_0x2176d4,_0x429c12,messageTypes[_0x5cbc79(0xc4)],_0x1e5513[_0x5cbc79(0xe0)],_0x1e5513[_0x5cbc79(0x186)],_0x1e5513[_0x5cbc79(0xf9)]),process[_0x5cbc79(0x197)](0x1));}}function printResponse(_0x13ff48,_0x15e494){const _0x1c9a17=a17_0x30922c,_0x541e19={};_0x541e19['lZkHO']=_0x1c9a17(0x137),_0x541e19['Txizk']=function(_0x47785b,_0x4ef501){return _0x47785b!==_0x4ef501;},_0x541e19[_0x1c9a17(0xbd)]='FUNOl';const _0x1c43a1=_0x541e19;logger[_0x1c9a17(0xc2)]('['+_0x13ff48+_0x1c9a17(0x15e)+_0x15e494[_0x1c9a17(0xe3)]+_0x1c9a17(0x16f)+_0x15e494['data']+_0x1c9a17(0x14f)+_0x15e494['error']),_0x15e494['error']&&(_0x1c43a1['Txizk'](_0x1c43a1['MhmzK'],_0x1c43a1['MhmzK'])?_0x1c4e35[_0x1c9a17(0x10a)](_0x1c43a1['lZkHO']):logger['error'](_0x1c9a17(0xff)+_0x15e494['error']['stack']));}async function generateReport(_0x4870d6,_0x4a5058){const _0x3a4b47=a17_0x30922c,_0x2a1ac3={'pZEuJ':function(_0x3fed73,_0x17fb42){return _0x3fed73+_0x17fb42;},'Hujja':'Success','LmByE':_0x3a4b47(0x153),'CLohd':function(_0x41effd,_0x210649){return _0x41effd||_0x210649;},'rNxeO':_0x3a4b47(0xf5),'gTwQn':_0x3a4b47(0x12c),'ZnVPH':_0x3a4b47(0xcd),'znXIu':function(_0x4c993a,_0x1bafe8){return _0x4c993a!=_0x1bafe8;},'KoNNL':_0x3a4b47(0x18c),'rlrWw':_0x3a4b47(0x128),'GukZl':function(_0x5e0cad){return _0x5e0cad();}};let _0x54683a=_0x3a4b47(0x168)+global_registry[_0x3a4b47(0xa7)]+'\x20===\x0a\x0a';return _0x4870d6[_0x3a4b47(0xb7)]((_0x2a744e,_0x5753ea)=>{const _0x49d0a4=_0x3a4b47,{header:_0xf53084,response:_0x2c8ac3}=_0x2a744e,{status:_0x4b3949,data:_0x56f40b,error:_0x274184}=_0x2c8ac3;_0x54683a+=_0xf53084+'\x20#'+_0x2a1ac3[_0x49d0a4(0x142)](_0x5753ea,0x1)+'\x0a',_0x54683a+=_0x49d0a4(0xdb)+(_0x4b3949?_0x2a1ac3['Hujja']:_0x2a1ac3['LmByE'])+'\x0a',_0x54683a+=_0x49d0a4(0xde)+_0x2a1ac3['CLohd'](_0x56f40b,_0x2a1ac3[_0x49d0a4(0x195)])+'\x0a',_0x274184&&(_0x54683a+=_0x2a1ac3['gTwQn'],_0x54683a+=_0x49d0a4(0x173)+(_0x274184[_0x49d0a4(0xe5)]||_0x2a1ac3[_0x49d0a4(0x195)])+'\x0a',_0x54683a+=_0x49d0a4(0x167)+(_0x274184[_0x49d0a4(0x13c)]||_0x2a1ac3[_0x49d0a4(0x195)])+'\x0a',_0x54683a+=_0x49d0a4(0xd1)+(_0x274184[_0x49d0a4(0x10f)]||_0x2a1ac3[_0x49d0a4(0x195)])+'\x0a'),_0x54683a+='\x0a\x0a';}),_0x54683a+=_0x2a1ac3[_0x3a4b47(0xfc)],_0x2a1ac3[_0x3a4b47(0x187)](_0x4a5058,null)?_0x54683a+='Cluster\x20'+global_registry[_0x3a4b47(0x180)]+'\x20'+(_0x4a5058?_0x2a1ac3[_0x3a4b47(0xe4)]:_0x2a1ac3[_0x3a4b47(0x166)])+'\x0a\x0a':_0x54683a+=_0x3a4b47(0x178)+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x54683a+=_0x2a1ac3[_0x3a4b47(0x115)](getSystemMetaData),_0x54683a;};exports[a17_0x30922c(0xd3)]=async function(_0x42e09e){const _0x4e2dde=a17_0x30922c,_0x5b00bd={'VXvrv':function(_0x54fa78){return _0x54fa78();},'DlswN':_0x4e2dde(0x196),'tKpGz':function(_0x213ccd,_0x26016f,_0x4e8752,_0x35c8d1,_0x297360,_0x4b6e9b,_0x52bc4d,_0x11edcf){return _0x213ccd(_0x26016f,_0x4e8752,_0x35c8d1,_0x297360,_0x4b6e9b,_0x52bc4d,_0x11edcf);},'narqp':_0x4e2dde(0x158),'aooft':_0x4e2dde(0x13b),'EDiFu':'error','vmhSQ':function(_0xea91af,_0x1b7279,_0x583377,_0x35f303,_0x3b80f6,_0x483247,_0x553e7d){return _0xea91af(_0x1b7279,_0x583377,_0x35f303,_0x3b80f6,_0x483247,_0x553e7d);},'OmVfA':_0x4e2dde(0x15c),'IHYVW':_0x4e2dde(0x11c),'VPGvF':function(_0x5e7d12,_0x547373,_0x5f014d){return _0x5e7d12(_0x547373,_0x5f014d);},'iLtIa':_0x4e2dde(0x163),'XikDk':'toolInstalledResp','MyUPF':_0x4e2dde(0x155),'uBRms':function(_0x3a61e7,_0x31aee8,_0x1cf8e3){return _0x3a61e7(_0x31aee8,_0x1cf8e3);},'uufsX':_0x4e2dde(0xdf),'EfhTH':function(_0x40faa4,_0x4a9d91,_0x5b1165){return _0x40faa4(_0x4a9d91,_0x5b1165);},'HmbUg':'isTrialGridAccessible','vbMpE':function(_0x1103c6,_0x4f8f16){return _0x1103c6(_0x4f8f16);},'qpwuq':_0x4e2dde(0xfa),'qnzQv':'isTls1_2_SUPPORTED','VHSSg':'Tool\x20Installed','HFIpp':_0x4e2dde(0x103),'jZChN':_0x4e2dde(0x17e),'uXgUr':_0x4e2dde(0x13e),'eLfzb':function(_0x153bbe,_0x5eb1f5,_0x2afbba){return _0x153bbe(_0x5eb1f5,_0x2afbba);},'MBPUh':function(_0x30ccbe,_0x19f556){return _0x30ccbe+_0x19f556;},'TRUwW':'utf-8','iTeEY':_0x4e2dde(0x104)};let _0x46a13b,_0x3383dd;try{global_registry[_0x4e2dde(0x174)]=_0x5b00bd[_0x4e2dde(0x134)](uuidv4);!fs[_0x4e2dde(0xc0)](_0x5b00bd[_0x4e2dde(0x134)](getCredentialsPath))&&(_0x3383dd=_0x5b00bd[_0x4e2dde(0xda)],logger['error'](_0x3383dd),await _0x5b00bd[_0x4e2dde(0xf7)](reportToGalactusAndSendToEDS,_0x42e09e,_0x46a13b,_0x3383dd,messageTypes[_0x4e2dde(0xc4)],_0x5b00bd[_0x4e2dde(0x198)],_0x5b00bd['aooft'],_0x5b00bd['EDiFu']),process[_0x4e2dde(0x197)](0x1));_0x5b00bd[_0x4e2dde(0xec)](sendInstrumentationEvent,_0x42e09e,_0x5b00bd['narqp'],messageTypes[_0x4e2dde(0x164)],null,null,_0x42e09e);const _0x4b9a26=JSON[_0x4e2dde(0x11b)](fs[_0x4e2dde(0xb8)](_0x5b00bd['VXvrv'](getCredentialsPath)));global_registry[_0x4e2dde(0x146)]=_0x4b9a26['Browserstack']['username'],global_registry[_0x4e2dde(0xa8)]=_0x4b9a26[_0x4e2dde(0xcb)][_0x4e2dde(0x17f)];const _0x261506=WS_ENDPOINT[_0x4e2dde(0xf4)](_0x5b00bd[_0x4e2dde(0x102)],_0x4b9a26[_0x4e2dde(0xcb)][_0x4e2dde(0xb6)])[_0x4e2dde(0xf4)](_0x5b00bd['IHYVW'],_0x4b9a26[_0x4e2dde(0xcb)]['password']),_0x3658f0={};_0x3658f0[_0x4e2dde(0x16a)]=ws,_0x3658f0[_0x4e2dde(0x106)]=0x36ee80,_0x46a13b=new ReconnectingWebSocket(_0x261506,[],_0x3658f0),global_registry[_0x4e2dde(0xb5)]=_0x5b00bd['VPGvF'](getAuthHeader,global_registry[_0x4e2dde(0x146)],global_registry[_0x4e2dde(0xa8)]),await _0x5b00bd[_0x4e2dde(0x121)](inputValidation,_0x42e09e,_0x46a13b),logger[_0x4e2dde(0xc2)](_0x4e2dde(0xf1)+global_registry[_0x4e2dde(0xa7)]+'\x20region\x20-\x20'+global_registry[_0x4e2dde(0xd6)]);let _0x445de0=await _0x5b00bd[_0x4e2dde(0xec)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x4e2dde(0x180)],_0x5b00bd[_0x4e2dde(0x182)],_0x46a13b,webSocketUtils,_0x42e09e);const _0xad2a47=await _0x445de0['isCliToolInstalled']();_0x5b00bd[_0x4e2dde(0x121)](printResponse,_0x5b00bd[_0x4e2dde(0x159)],_0xad2a47),_0x445de0=await _0x445de0[_0x4e2dde(0x119)]();let _0x126a2c=![];try{_0x126a2c=await _0x445de0[_0x4e2dde(0x133)]();}catch(_0x7a6d0e){const _0xaa7171=_0x5b00bd[_0x4e2dde(0x109)]['split']('|');let _0x5a54ef=0x0;while(!![]){switch(_0xaa7171[_0x5a54ef++]){case'0':_0x3383dd=_0x4e2dde(0x18d)+global_registry[_0x4e2dde(0x180)]+_0x4e2dde(0x125)+global_registry['clusterRegion']+_0x4e2dde(0x149)+_0x7a6d0e;continue;case'1':await _0x5b00bd[_0x4e2dde(0xf7)](reportToGalactusAndSendToEDS,_0x42e09e,_0x46a13b,_0x3383dd,messageTypes['ERROR'],_0x5b00bd['narqp'],'cluster-check-failed-'+global_registry[_0x4e2dde(0xa7)],_0x5b00bd[_0x4e2dde(0x130)]);continue;case'2':_0x126a2c=null;continue;case'3':logger[_0x4e2dde(0xe9)](_0x3383dd);continue;case'4':_0x3383dd+='\x0a'+JSON[_0x4e2dde(0x17a)](_0x7a6d0e[_0x4e2dde(0x10f)]);continue;}break;}}_0x126a2c&&logger['info']('Cluster\x20`'+global_registry['clusterName']+_0x4e2dde(0x11e));const _0x2e73f0=await _0x445de0[_0x4e2dde(0xe8)]();_0x5b00bd[_0x4e2dde(0x181)](printResponse,_0x5b00bd[_0x4e2dde(0x108)],_0x2e73f0);const _0x2b8e65=await _0x5b00bd['VXvrv'](curlRequest);_0x5b00bd[_0x4e2dde(0x184)](printResponse,_0x5b00bd['HmbUg'],_0x2b8e65);const _0x1bd71e=await _0x5b00bd[_0x4e2dde(0xc3)](isTlsSupported,_0x5b00bd[_0x4e2dde(0x152)]);_0x5b00bd['EfhTH'](printResponse,_0x5b00bd[_0x4e2dde(0xfe)],_0x1bd71e);const _0x1ba73c={};_0x1ba73c['header']=_0x5b00bd[_0x4e2dde(0x169)],_0x1ba73c[_0x4e2dde(0x18b)]=_0xad2a47;const _0x5e7189={};_0x5e7189[_0x4e2dde(0x18a)]=_0x5b00bd['HFIpp'],_0x5e7189[_0x4e2dde(0x18b)]=_0x2e73f0;const _0x5ae199={};_0x5ae199['header']=_0x5b00bd['jZChN'],_0x5ae199[_0x4e2dde(0x18b)]=_0x2b8e65;const _0x3dd01d={};_0x3dd01d['header']=_0x5b00bd[_0x4e2dde(0x126)],_0x3dd01d['response']=_0x1bd71e;const _0x57ad02=[_0x1ba73c,_0x5e7189,_0x5ae199,_0x3dd01d],_0x509635=await _0x5b00bd[_0x4e2dde(0x12f)](generateReport,_0x57ad02,_0x126a2c),_0x1ac978=new Date(),_0xc392c4=_0x1ac978[_0x4e2dde(0x127)]()+'_'+_0x5b00bd[_0x4e2dde(0x100)](_0x1ac978[_0x4e2dde(0x17c)](),0x1)+'_'+_0x1ac978[_0x4e2dde(0x189)]()+'_'+_0x1ac978[_0x4e2dde(0xf8)]()+'_'+_0x1ac978[_0x4e2dde(0x14a)](),_0x534321='log/report_'+_0xc392c4+'.txt';fs[_0x4e2dde(0x11a)](_0x534321,_0x509635,_0x5b00bd[_0x4e2dde(0x107)]),logger[_0x4e2dde(0xc2)](_0x4e2dde(0x105)+_0x534321),process[_0x4e2dde(0x197)](0x0);}catch(_0x3e4627){let _0x575af0=_0x4e2dde(0xcc)+_0x3e4627+'\x20';logger[_0x4e2dde(0xe9)](_0x575af0),_0x575af0+='\x0a'+JSON[_0x4e2dde(0x17a)](_0x3e4627[_0x4e2dde(0x10f)]),logger[_0x4e2dde(0xf6)](_0x4e2dde(0xed)+_0x3e4627[_0x4e2dde(0x10f)]);if(_0x46a13b){const _0x546f66={};_0x546f66[_0x4e2dde(0xce)]=WS_EVENTS['LOG'],_0x546f66['message']=_0x575af0,webSocketUtils[_0x4e2dde(0xc7)](_0x46a13b,_0x546f66,_0x5b00bd[_0x4e2dde(0x130)],!![]);}await webSocketUtils[_0x4e2dde(0xaa)](0x7d0);const _0x34df26={};_0x34df26[_0x4e2dde(0xe9)]=_0x575af0,await _0x5b00bd[_0x4e2dde(0xec)](sendInstrumentationEvent,_0x42e09e,_0x5b00bd[_0x4e2dde(0x198)],messageTypes[_0x4e2dde(0xc4)],_0x5b00bd[_0x4e2dde(0x176)],_0x34df26,_0x42e09e),process[_0x4e2dde(0x197)](0x1);}};
1
+ const a17_0x21be49=a17_0x51c0;function a17_0x261b(){const _0x2b3595=['ZPgsP','xDwWw','bBRji','FKrhc','string','eDUPh','forEach','DPyFa','info','bbdBF','bRrgM','\x20data\x20:\x20','\x20region\x20-\x20','cluster-name','length','ezNoo','isTrialGridAccessible','nHwnS','jLgah','.\x20Please\x20provide\x20all\x20required\x20arguments.','SSL\x20Configured','6320FlaKIL','eopjy','RQcTS','push','ilVxv','isCliToolInstalled','EgVms','gpdSc','usage','stack\x20trace\x20','join','dummy-grid','.txt','WebSocket','DlTZc','TcKui','\x20\x20Stack:\x20','1|2|3|4|0','<UsernamePlaceholder>','LZOPq','readFileSync','MouGG','will\x20be\x20created','\x20\x20Message:\x20','IdJRc','pre_check','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','connectionTimeout','fkNVa','TiVME','104FdJBtp','Xlvon','gfwUA','IwBEn','Failed\x20in\x20pre-check!\x20Error:\x20','uBwlW','HLxEt','message','authHeader','grid','PSsEe','Success','2012cQfiHS','nhWSf','existsSync','QIKHw','getUTCDate','description','ERROR','error\x20stack\x20:\x20','VexpQ','eycbM','mkCpa','lJYeA','getUTCHours','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','../../config/constants','HNGSY','cloud-provider','Invalid\x20input.\x20grid\x20profiles:\x20','QYCqo','Cluster\x20','EnOTI','FqsVZ','data','getUTCFullYear','GET','NNMdS','JtZui','User\x20Access','nuBlT','Tool\x20Installed','<PasswordPlaceholder>','credential-not-found','response','LByNV','exit','split','code','parse','sendEventToBackend','`\x20is\x20present\x20in\x20region\x20`','vzoLt','LOG','4224660rZUmdA','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','status','Error\x20Details:\x0a','INFO','OXFSM','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','cEThb','https://','mqgOI','LnyZS','headers','stack','AEdNF','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','jOjCg','username','xelMx','hPWDQ','Missing\x20required\x20arguments:\x20','zlwoW','find','zOLcw','OUyuH','Status:\x20','utf-8','lsrQv','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','wrJcD','HLupT','init','debug',']\x20status\x20:\x20','toLowerCase','Cluster\x20details\x0a-----------------------\x0a','xMpWw','clusterRegion','rcmMP','Ciyyy','lrVNl','revvT','MrxHq','bstackUsername','tNSqj','GOeEi','gridProfile','header','WYcdA','pre-check-cluster-args-not-passed','bstackAccesskey','PrnKf','fldRt','EkHCq','argv','XSrqH','/packages/cli/get-all-grid-profiles','706870WGVnii','getUTCMonth','LiAcD','vCQwX','\x20error\x20:\x20','zvuFb','eFWYF','PqHCO','replace','`\x20already\x20exists','cmaCO','PLRyY','throwHttpErrors','reconnecting-websocket','pre-check','N/A','hHwFG','includes','EpEWm','uuid','cloud-provider-not-supported','XtnSH','1093204dbOqjl','kUtVh','error','1770381FOBfnt','jyQnX','1672380WYPFvj','kEkph','cloudProvider','isClusterPresent','kbblp','hMRYY','kCRdz','../../utils/utilityMethods','grid\x20profile\x20flow\x20','CLOUD_PROVIDER','../../utils/instrumentationUtils','getUTCMinutes','mGxeE','270950vStFpt','grid-profile','HbpQh','Failure','OvCaY','stringify','bWXnB','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','mxitW','Setting\x20cloud\x20provider\x20as\x20','Cluster\x20`','DISKp','isTls1_2_SUPPORTED','SueTu','AzRob','YhylM','pre-check-failed','Dqbia','method','handler','../../utils/webSocketUtils','region','aIGNu','Rbyvn','QyVpE','pre-check-grid-profile-empty','Whitelisted\x20browserstack','mckZP','type','NJxsx','desc','`\x20,error\x20:\x20','is\x20already\x20present','Browserstack','haAKx','name','unable\x20to\x20verify\x20if\x20cluster\x20`','Message:\x20','KpJjE','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','../../cloudproviders/utils','wqfTe','uAZmB','Ijhfx','TLSv1_2_client_method','pre-check-grid-called','tElJr','help','TGjDN','XHsrU','PBwPm','clusterName','epilogue','qZSWS','CoUcl','ezuMB','wZTIL'];a17_0x261b=function(){return _0x2b3595;};return a17_0x261b();}(function(_0x42ce83,_0x13fd3c){const _0x13e37f=a17_0x51c0,_0x4afdf0=_0x42ce83();while(!![]){try{const _0x22f01a=parseInt(_0x13e37f(0x1ab))/0x1+-parseInt(_0x13e37f(0x183))/0x2+-parseInt(_0x13e37f(0x19e))/0x3+parseInt(_0x13e37f(0x120))/0x4*(-parseInt(_0x13e37f(0x1fa))/0x5)+-parseInt(_0x13e37f(0x14b))/0x6+-parseInt(_0x13e37f(0x199))/0x7+parseInt(_0x13e37f(0x114))/0x8*(parseInt(_0x13e37f(0x19c))/0x9);if(_0x22f01a===_0x13fd3c)break;else _0x4afdf0['push'](_0x4afdf0['shift']());}catch(_0x240902){_0x4afdf0['push'](_0x4afdf0['shift']());}}}(a17_0x261b,0x66d4e));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x21be49(0x196)),ReconnectingWebSocket=require(a17_0x21be49(0x190)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x21be49(0x1a5)),{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_0x21be49(0x12f)),{getCloudProviderObjectWithOutInit}=require(a17_0x21be49(0x1d4)),webSocketUtils=require(a17_0x21be49(0x1c0)),{sendInstrumentationEvent}=require(a17_0x21be49(0x1a8));exports['command']=a17_0x21be49(0x11d),exports[a17_0x21be49(0x1ca)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x4da7c0){const _0xbb859=a17_0x21be49,_0xcb199c={};_0xcb199c['PSsEe']=_0xbb859(0x151),_0xcb199c['revvT']='string',_0xcb199c[_0xbb859(0x13d)]=_0xbb859(0x12d),_0xcb199c['ezNoo']=_0xbb859(0x1b3),_0xcb199c[_0xbb859(0x201)]=_0xbb859(0x12e),_0xcb199c[_0xbb859(0x1e8)]=_0xbb859(0x1db);const _0x4018bd=_0xcb199c,_0x57748d={};_0x57748d['description']=_0x4018bd[_0xbb859(0x11e)],_0x57748d['type']=_0x4018bd[_0xbb859(0x173)];const _0x36baf2={};_0x36baf2[_0xbb859(0x125)]=_0x4018bd[_0xbb859(0x13d)],_0x36baf2[_0xbb859(0x1c8)]=_0x4018bd[_0xbb859(0x173)];const _0x32d1e6={};_0x32d1e6[_0xbb859(0x125)]=_0x4018bd[_0xbb859(0x1f4)],_0x32d1e6['type']=_0x4018bd['revvT'];const _0x30cafd={};_0x30cafd[_0xbb859(0x125)]=_0x4018bd[_0xbb859(0x201)],_0x30cafd['type']=_0x4018bd['revvT'];const _0x11488b={};return _0x11488b[_0xbb859(0x1f2)]=_0x57748d,_0x11488b[_0xbb859(0x131)]=_0x36baf2,_0x11488b[_0xbb859(0x1c1)]=_0x32d1e6,_0x11488b[_0xbb859(0x1ac)]=_0x30cafd,_0x4da7c0[_0xbb859(0x202)](HELP_HEADER_MESSAGE[_0xbb859(0x10f)])[_0xbb859(0x1e0)](HELP_FOOTER_MESSAGE)['options'](_0x11488b)[_0xbb859(0x1db)](_0x4018bd[_0xbb859(0x1e8)])[_0xbb859(0x180)];};async function inputValidation(_0x524c79,_0x11f2b6){const _0x14790d=a17_0x21be49,_0x2ccf47={'VHJxv':function(_0x40ceba,_0x366379){return _0x40ceba+_0x366379;},'NyKzG':_0x14790d(0x11f),'QYCqo':_0x14790d(0x1ae),'MouGG':function(_0x172808,_0x4aa32c){return _0x172808||_0x4aa32c;},'mxitW':'N/A','PLRyY':_0x14790d(0x14e),'hMRYY':_0x14790d(0x1cc),'lrVNl':'will\x20be\x20created','EkHCq':_0x14790d(0x1f2),'kCRdz':_0x14790d(0x131),'zvuFb':'region','HLxEt':_0x14790d(0x166),'eopjy':_0x14790d(0x19b),'hHwFG':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','OXFSM':_0x14790d(0x1e9),'HNGSY':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','QCAwA':_0x14790d(0x1b3),'Ijhfx':_0x14790d(0x12e),'EnOTI':_0x14790d(0x1db),'haAKx':function(_0x191d80,_0xd35c5f){return _0x191d80===_0xd35c5f;},'GOeEi':'VBpnv','eFWYF':_0x14790d(0x113),'kEkph':'cEfuE','DPyFa':function(_0x19c349,_0x487399){return _0x19c349!==_0x487399;},'mckZP':_0x14790d(0x185),'Rbyvn':_0x14790d(0x198),'MrxHq':function(_0x3ce94c,_0x3ebda5){return _0x3ce94c===_0x3ebda5;},'uBwlW':'QVZhz','wrJcD':_0x14790d(0x12a),'AEdNF':function(_0xefc08a,_0x3a48b6){return _0xefc08a===_0x3a48b6;},'LByNV':'LggBK','TcKui':_0x14790d(0x17e),'rfMmP':function(_0x3eccd6,_0x202f24){return _0x3eccd6>_0x202f24;},'HbpQh':_0x14790d(0x1e2),'svpHC':_0x14790d(0x1bb),'PrnKf':function(_0x5a3b91,_0x15bcf6,_0x152ac0,_0x406cfb,_0x266b8c,_0x3b223d,_0x511e01,_0x4e646c){return _0x5a3b91(_0x15bcf6,_0x152ac0,_0x406cfb,_0x266b8c,_0x3b223d,_0x511e01,_0x4e646c);},'Xlvon':_0x14790d(0x1d9),'kAWjE':_0x14790d(0x17b),'Ciyyy':function(_0xeeee2,_0x2c4ab2){return _0xeeee2!==_0x2c4ab2;},'XHsrU':_0x14790d(0x1c9),'ezuMB':_0x14790d(0x1d3),'rcmMP':_0x14790d(0x197),'aIGNu':'XHRKj','PfZgI':function(_0x4233fd,_0x3d389a){return _0x4233fd!==_0x3d389a;},'XpMcF':_0x14790d(0x1ea),'HMBTg':_0x14790d(0x195),'qZSWS':_0x14790d(0x139),'cmaCO':function(_0xb41f8f,_0x397162,_0x304864){return _0xb41f8f(_0x397162,_0x304864);},'IdJRc':function(_0x384cf3,_0x4f524e,_0x4541f4,_0x5585b9,_0x4ebc52,_0x33b306){return _0x384cf3(_0x4f524e,_0x4541f4,_0x5585b9,_0x4ebc52,_0x33b306);},'QyVpE':_0x14790d(0x191),'cSGtD':'grid-profile','oHDGg':function(_0x2cf83b,_0x18bfad){return _0x2cf83b===_0x18bfad;},'zOLcw':function(_0x1bdd0c,_0x1495f2){return _0x1bdd0c!==_0x1495f2;},'PqHCO':_0x14790d(0x200),'OvCaY':function(_0x5a1773,_0xa4e906){return _0x5a1773(_0xa4e906);},'vzoLt':'lZvbF','ywvcx':_0x14790d(0x176),'DlTZc':_0x14790d(0x1c5),'cEThb':function(_0x4b8549,_0x7f7b80){return _0x4b8549!==_0x7f7b80;},'uAZmB':_0x14790d(0x181),'gwBdT':_0x14790d(0x154),'ZImjE':function(_0x47781c,_0x53399d){return _0x47781c!==_0x53399d;},'NNMdS':_0x14790d(0x12b),'eycbM':'Grid\x20profile\x20fetched\x20for\x20pre-check','PBwPm':function(_0x42c4d4,_0x141b14){return _0x42c4d4===_0x141b14;},'zlwoW':'gInLC','bWXnB':function(_0x131a0f,_0x20411e){return _0x131a0f===_0x20411e;},'lsrQv':_0x14790d(0x128)};let _0x4fa26b;try{if(_0x2ccf47[_0x14790d(0x1ce)](_0x2ccf47[_0x14790d(0x177)],_0x2ccf47[_0x14790d(0x177)])){if(_0x524c79[_0x14790d(0x1df)]||_0x524c79[_0x14790d(0x1a0)]||_0x524c79[_0x14790d(0x1c1)]){if(_0x2ccf47[_0x14790d(0x1ce)](_0x2ccf47[_0x14790d(0x189)],_0x2ccf47[_0x14790d(0x19f)])){const {header:_0x230213,response:_0x54a9a}=_0x458a08,{status:_0x4644f6,data:_0xbc87e0,error:_0x277e29}=_0x54a9a;_0x28fd8f+=_0x230213+'\x20#'+_0x2ccf47['VHJxv'](_0x220793,0x1)+'\x0a',_0x5993dc+=_0x14790d(0x163)+(_0x4644f6?_0x2ccf47['NyKzG']:_0x2ccf47[_0x14790d(0x133)])+'\x0a',_0x33b977+='Message:\x20'+_0x2ccf47[_0x14790d(0x10b)](_0xbc87e0,_0x2ccf47['mxitW'])+'\x0a',_0x277e29&&(_0x1d51e5+=_0x2ccf47['PLRyY'],_0x460a93+=_0x14790d(0x10d)+(_0x277e29[_0x14790d(0x11b)]||_0x2ccf47[_0x14790d(0x1b4)])+'\x0a',_0x20c9b6+='\x20\x20Code:\x20'+(_0x277e29[_0x14790d(0x145)]||_0x2ccf47[_0x14790d(0x1b4)])+'\x0a',_0x105fd9+=_0x14790d(0x106)+(_0x277e29[_0x14790d(0x157)]||_0x2ccf47['mxitW'])+'\x0a'),_0x4edc1f+='\x0a\x0a';}else{const _0x40fd9d=[];!_0x524c79[_0x14790d(0x1df)]&&(_0x2ccf47[_0x14790d(0x1ec)](_0x2ccf47[_0x14790d(0x1c7)],_0x2ccf47[_0x14790d(0x1c3)])?_0x40fd9d[_0x14790d(0x1fd)](_0x2ccf47[_0x14790d(0x17f)]):_0xae474c+=_0x14790d(0x134)+_0x348827['clusterName']+'\x20'+(_0x2e5111?_0x2ccf47[_0x14790d(0x1a3)]:_0x2ccf47[_0x14790d(0x172)])+'\x0a\x0a');;!_0x524c79[_0x14790d(0x1a0)]&&(_0x2ccf47[_0x14790d(0x174)](_0x2ccf47[_0x14790d(0x119)],_0x2ccf47[_0x14790d(0x167)])?_0x4d7233[_0x14790d(0x1ed)](_0x14790d(0x1b6)+_0x52d3c6[_0x14790d(0x1df)]+_0x14790d(0x18c)):_0x40fd9d[_0x14790d(0x1fd)](_0x2ccf47[_0x14790d(0x1a4)]));;!_0x524c79['region']&&(_0x2ccf47[_0x14790d(0x158)](_0x2ccf47[_0x14790d(0x142)],_0x2ccf47[_0x14790d(0x105)])?_0x30d2c4[_0x14790d(0x19b)](_0x14790d(0x127)+_0x1a9263[_0x14790d(0x19b)][_0x14790d(0x157)]):_0x40fd9d[_0x14790d(0x1fd)](_0x2ccf47[_0x14790d(0x188)]));;_0x2ccf47['rfMmP'](_0x40fd9d[_0x14790d(0x1f3)],0x0)&&(_0x2ccf47['DPyFa'](_0x2ccf47[_0x14790d(0x1ad)],_0x2ccf47['svpHC'])?(_0x4fa26b=_0x14790d(0x15e)+_0x40fd9d[_0x14790d(0x100)](',\x20')+_0x14790d(0x1f8),await _0x2ccf47[_0x14790d(0x17d)](reportToGalactusAndSendToEDS,_0x524c79,_0x11f2b6,_0x4fa26b,messageTypes[_0x14790d(0x126)],_0x2ccf47['Xlvon'],_0x2ccf47['kAWjE'],_0x2ccf47['eopjy']),logger[_0x14790d(0x19b)](_0x4fa26b),process[_0x14790d(0x143)](0x1)):_0x4806f6['push'](_0x2ccf47[_0x14790d(0x17f)])),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x14790d(0x194)](_0x524c79['cloudProvider'][_0x14790d(0x16c)]())&&(_0x2ccf47[_0x14790d(0x171)](_0x2ccf47[_0x14790d(0x1dd)],_0x2ccf47[_0x14790d(0x1dd)])?_0x51424d[_0x14790d(0x1fd)](_0x2ccf47[_0x14790d(0x1a4)]):(_0x4fa26b=_0x2ccf47[_0x14790d(0x1e3)],await _0x2ccf47[_0x14790d(0x17d)](reportToGalactusAndSendToEDS,_0x524c79,_0x11f2b6,_0x4fa26b,messageTypes[_0x14790d(0x126)],_0x2ccf47[_0x14790d(0x115)],_0x2ccf47[_0x14790d(0x170)],_0x2ccf47[_0x14790d(0x1fb)]),logger['error'](_0x4fa26b),!_0x524c79[_0x14790d(0x1a0)]&&(_0x2ccf47[_0x14790d(0x174)](_0x2ccf47[_0x14790d(0x1c2)],_0x2ccf47[_0x14790d(0x1c2)])?(logger[_0x14790d(0x1ed)](_0x14790d(0x1b5)+DEFAULT_CLUSTER_DETAILS[_0x14790d(0x1a7)]+'\x20'),_0x524c79[_0x14790d(0x1a0)]=DEFAULT_CLUSTER_DETAILS[_0x14790d(0x1a7)]):_0x444083[_0x14790d(0x1fd)](_0x2ccf47['zvuFb'])))),global_registry[_0x14790d(0x1df)]=_0x524c79[_0x14790d(0x1df)],global_registry[_0x14790d(0x1a0)]=_0x524c79['cloudProvider'],global_registry['clusterRegion']=_0x524c79[_0x14790d(0x1c1)];}}else{if(_0x524c79[_0x14790d(0x178)]){if(_0x2ccf47['PfZgI'](_0x2ccf47['XpMcF'],_0x2ccf47['HMBTg'])){global_registry[_0x14790d(0x178)]=_0x524c79['gridProfile'],logger[_0x14790d(0x16a)](_0x14790d(0x1a6)+_0x524c79[_0x14790d(0x178)]);const _0x6dcc3b=_0x14790d(0x153)+AG_API_URL+_0x14790d(0x182),_0x5407be={};_0x5407be[_0x14790d(0x1be)]=_0x2ccf47[_0x14790d(0x1e1)],_0x5407be[_0x14790d(0x156)]=global_registry['authHeader'],_0x5407be[_0x14790d(0x18f)]=![];const _0x506871=_0x5407be,_0x5f0e51=await _0x2ccf47[_0x14790d(0x18d)](got,_0x6dcc3b,_0x506871),_0x4fe166=await _0x2ccf47[_0x14790d(0x10e)](responseValidation,_0x5f0e51,_0x2ccf47[_0x14790d(0x1c4)],_0x2ccf47['cSGtD'],_0x524c79,_0x11f2b6);let _0x12224a={};if(_0x2ccf47['oHDGg'](_0x4fe166,0xc8)){if(_0x2ccf47[_0x14790d(0x161)](_0x2ccf47[_0x14790d(0x18a)],_0x2ccf47[_0x14790d(0x18a)]))_0x1e5e2e=_0x55e3c9;else{const _0x2bebc7=JSON[_0x14790d(0x146)](_0x5f0e51['body']),_0x1c4618=_0x2bebc7[_0x14790d(0x160)](_0x3e0092=>_0x3e0092[_0x14790d(0x1cf)]===_0x524c79['gridProfile'])||null;_0x2ccf47[_0x14790d(0x1af)](isUndefined,_0x1c4618)?_0x2ccf47[_0x14790d(0x161)](_0x2ccf47[_0x14790d(0x149)],_0x2ccf47['ywvcx'])?(_0x4fa26b=_0x14790d(0x132)+_0x524c79[_0x14790d(0x178)]+_0x14790d(0x159),await _0x2ccf47['PrnKf'](reportToGalactusAndSendToEDS,_0x524c79,_0x11f2b6,_0x4fa26b,messageTypes[_0x14790d(0x126)],_0x2ccf47['Xlvon'],_0x2ccf47[_0x14790d(0x104)],_0x2ccf47[_0x14790d(0x1fb)]),logger[_0x14790d(0x19b)](_0x4fa26b),process['exit'](0x1)):(_0x1254b7[_0x14790d(0x19b)](_0x2ccf47[_0x14790d(0x11a)]),_0x21c293[_0x14790d(0x143)](0x1)):_0x2ccf47[_0x14790d(0x152)](_0x2ccf47[_0x14790d(0x1d6)],_0x2ccf47['gwBdT'])?_0x12224a=_0x1c4618:_0x2174af+='Cluster\x20'+_0x1f0a54[_0x14790d(0x1df)]+_0x14790d(0x14c);}}else{if(_0x2ccf47['ZImjE'](_0x2ccf47['NNMdS'],_0x2ccf47[_0x14790d(0x13a)])){const _0x2b7e9a={};_0x2b7e9a[_0x14790d(0x1c8)]=_0x1e1578[_0x14790d(0x14a)],_0x2b7e9a[_0x14790d(0x11b)]=_0x1488b1,_0x530af2['sendEventToBackend'](_0x3df0d4,_0x2b7e9a,_0x2ccf47[_0x14790d(0x1fb)],!![]);}else process['exit'](0x1);}const _0x3c684b={};_0x3c684b[_0x14790d(0x1c8)]=WS_EVENTS[_0x14790d(0x14a)],_0x3c684b['message']=_0x2ccf47[_0x14790d(0x129)],webSocketUtils[_0x14790d(0x147)](_0x11f2b6,_0x3c684b),global_registry[_0x14790d(0x1a0)]=_0x12224a[_0x14790d(0x1a0)],global_registry['clusterRegion']=_0x12224a['region'],global_registry[_0x14790d(0x1df)]=_0x12224a[_0x14790d(0x1df)];}else{const _0x144641={};_0x144641[_0x14790d(0x125)]=_0x2ccf47[_0x14790d(0x193)],_0x144641['type']=_0x2ccf47[_0x14790d(0x150)];const _0xe2edc8={};_0xe2edc8['description']=_0x2ccf47[_0x14790d(0x130)],_0xe2edc8[_0x14790d(0x1c8)]=_0x2ccf47[_0x14790d(0x150)];const _0x474c22={};_0x474c22['description']=_0x2ccf47['QCAwA'],_0x474c22[_0x14790d(0x1c8)]=_0x2ccf47[_0x14790d(0x150)];const _0x190159={};_0x190159['description']=_0x2ccf47[_0x14790d(0x1d7)],_0x190159['type']=_0x2ccf47[_0x14790d(0x150)];const _0x5e89e1={};return _0x5e89e1['cluster-name']=_0x144641,_0x5e89e1[_0x14790d(0x131)]=_0xe2edc8,_0x5e89e1['region']=_0x474c22,_0x5e89e1['grid-profile']=_0x190159,_0x32b2cb[_0x14790d(0x202)](_0xf09423[_0x14790d(0x10f)])[_0x14790d(0x1e0)](_0x4df2e4)['options'](_0x5e89e1)['help'](_0x2ccf47[_0x14790d(0x135)])[_0x14790d(0x180)];}}else _0x2ccf47[_0x14790d(0x1de)](_0x2ccf47[_0x14790d(0x15f)],_0x2ccf47['zlwoW'])?(logger[_0x14790d(0x19b)](_0x2ccf47[_0x14790d(0x11a)]),process[_0x14790d(0x143)](0x1)):(_0x4d1e17+=_0x2ccf47[_0x14790d(0x18e)],_0x189811+=_0x14790d(0x10d)+(_0x532b3c[_0x14790d(0x11b)]||_0x2ccf47['mxitW'])+'\x0a',_0x5953a5+='\x20\x20Code:\x20'+(_0x3bb903['code']||_0x2ccf47[_0x14790d(0x1b4)])+'\x0a',_0x5f5983+='\x20\x20Stack:\x20'+(_0x43c78f['stack']||_0x2ccf47[_0x14790d(0x1b4)])+'\x0a');}}else _0x308c3c[_0x14790d(0x1ed)](_0x14790d(0x1b5)+_0x16e3db[_0x14790d(0x1a7)]+'\x20'),_0x4a8358[_0x14790d(0x1a0)]=_0x3fd6d7['CLOUD_PROVIDER'];}catch(_0x4cfe60){_0x2ccf47[_0x14790d(0x1b1)](_0x2ccf47[_0x14790d(0x165)],_0x2ccf47[_0x14790d(0x165)])?(_0x4fa26b='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x4cfe60+':\x20'+_0x4cfe60[_0x14790d(0x157)],logger[_0x14790d(0x19b)](_0x4fa26b),await _0x2ccf47[_0x14790d(0x17d)](reportToGalactusAndSendToEDS,_0x524c79,_0x11f2b6,_0x4fa26b,messageTypes[_0x14790d(0x126)],_0x2ccf47['Xlvon'],_0x2ccf47[_0x14790d(0x170)],_0x2ccf47[_0x14790d(0x1fb)]),process[_0x14790d(0x143)](0x1)):(_0x1d4496[_0x14790d(0x1ed)]('['+_0x513243+_0x14790d(0x16b)+_0x153fa4['status']+_0x14790d(0x1f0)+_0x56452d[_0x14790d(0x137)]+_0x14790d(0x187)+_0x29b1e6[_0x14790d(0x19b)]),_0x74d352[_0x14790d(0x19b)]&&_0x5426ec[_0x14790d(0x19b)](_0x14790d(0x127)+_0x401624[_0x14790d(0x19b)][_0x14790d(0x157)]));}}function printResponse(_0x913139,_0x45169c){const _0x481c7c=a17_0x21be49,_0x1ca4cd={};_0x1ca4cd['ilVxv']=function(_0x5be2f5,_0x1b4296){return _0x5be2f5===_0x1b4296;},_0x1ca4cd[_0x481c7c(0x117)]=_0x481c7c(0x109);const _0x127d44=_0x1ca4cd;logger['info']('['+_0x913139+_0x481c7c(0x16b)+_0x45169c[_0x481c7c(0x14d)]+'\x20data\x20:\x20'+_0x45169c[_0x481c7c(0x137)]+'\x20error\x20:\x20'+_0x45169c[_0x481c7c(0x19b)]),_0x45169c[_0x481c7c(0x19b)]&&(_0x127d44[_0x481c7c(0x1fe)](_0x127d44[_0x481c7c(0x117)],_0x127d44['IwBEn'])?logger[_0x481c7c(0x19b)](_0x481c7c(0x127)+_0x45169c[_0x481c7c(0x19b)][_0x481c7c(0x157)]):_0x18856b[_0x481c7c(0x143)](0x1));}async function generateReport(_0x2c514f,_0xac9d63){const _0x2c95a1=a17_0x21be49,_0x151c28={'QIKHw':function(_0x3b2c07,_0x4be7ef){return _0x3b2c07+_0x4be7ef;},'JtZui':_0x2c95a1(0x11f),'LnyZS':_0x2c95a1(0x1ae),'WYcdA':function(_0x3f28e0,_0x42ba8d){return _0x3f28e0||_0x42ba8d;},'jyQnX':_0x2c95a1(0x192),'IeBMY':_0x2c95a1(0x14e),'xelMx':_0x2c95a1(0x16d),'cJyUJ':function(_0xb7d128,_0x424844){return _0xb7d128!=_0x424844;},'xMpWw':_0x2c95a1(0x1cc),'TxUZc':_0x2c95a1(0x10c),'mGxeE':function(_0x12c32c){return _0x12c32c();}};let _0x2fb26b='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x2c95a1(0x1a0)]+'\x20===\x0a\x0a';return _0x2c514f[_0x2c95a1(0x1eb)]((_0x11cf7f,_0xe3ce34)=>{const _0x35611c=_0x2c95a1,{header:_0x59ad7d,response:_0x5f1dee}=_0x11cf7f,{status:_0xbad845,data:_0x35aa2b,error:_0x369714}=_0x5f1dee;_0x2fb26b+=_0x59ad7d+'\x20#'+_0x151c28[_0x35611c(0x123)](_0xe3ce34,0x1)+'\x0a',_0x2fb26b+='Status:\x20'+(_0xbad845?_0x151c28[_0x35611c(0x13b)]:_0x151c28[_0x35611c(0x155)])+'\x0a',_0x2fb26b+=_0x35611c(0x1d1)+_0x151c28[_0x35611c(0x17a)](_0x35aa2b,_0x151c28['jyQnX'])+'\x0a',_0x369714&&(_0x2fb26b+=_0x151c28['IeBMY'],_0x2fb26b+=_0x35611c(0x10d)+(_0x369714['message']||_0x151c28[_0x35611c(0x19d)])+'\x0a',_0x2fb26b+='\x20\x20Code:\x20'+(_0x369714[_0x35611c(0x145)]||_0x151c28[_0x35611c(0x19d)])+'\x0a',_0x2fb26b+=_0x35611c(0x106)+(_0x369714[_0x35611c(0x157)]||_0x151c28[_0x35611c(0x19d)])+'\x0a'),_0x2fb26b+='\x0a\x0a';}),_0x2fb26b+=_0x151c28[_0x2c95a1(0x15c)],_0x151c28['cJyUJ'](_0xac9d63,null)?_0x2fb26b+=_0x2c95a1(0x134)+global_registry[_0x2c95a1(0x1df)]+'\x20'+(_0xac9d63?_0x151c28[_0x2c95a1(0x16e)]:_0x151c28['TxUZc'])+'\x0a\x0a':_0x2fb26b+=_0x2c95a1(0x134)+global_registry[_0x2c95a1(0x1df)]+_0x2c95a1(0x14c),_0x2fb26b+=_0x151c28[_0x2c95a1(0x1aa)](getSystemMetaData),_0x2fb26b;};function a17_0x51c0(_0xd04282,_0x38b872){const _0x261bda=a17_0x261b();return a17_0x51c0=function(_0x51c041,_0x1e65d0){_0x51c041=_0x51c041-0x100;let _0xce06ce=_0x261bda[_0x51c041];return _0xce06ce;},a17_0x51c0(_0xd04282,_0x38b872);}exports[a17_0x21be49(0x1bf)]=async function(_0x56ef32){const _0x3d68e7=a17_0x21be49,_0x4bfbbf={'wZTIL':function(_0x2c57d5){return _0x2c57d5();},'TGjDN':function(_0x4749bf){return _0x4749bf();},'tElJr':_0x3d68e7(0x110),'Dqbia':function(_0x1d9e3e,_0x27f1a8,_0x4e1b54,_0x5c7798,_0x92294b,_0x1f1cb0,_0x2d54f1,_0x50d088){return _0x1d9e3e(_0x27f1a8,_0x4e1b54,_0x5c7798,_0x92294b,_0x1f1cb0,_0x2d54f1,_0x50d088);},'FqsVZ':'pre-check-grid-called','FGGVC':_0x3d68e7(0x140),'DISKp':_0x3d68e7(0x19b),'OUyuH':function(_0x56da80,_0x19ee15,_0x4dcdc1,_0x5b9e1e,_0x371668,_0x44864d,_0x1d7460){return _0x56da80(_0x19ee15,_0x4dcdc1,_0x5b9e1e,_0x371668,_0x44864d,_0x1d7460);},'AzRob':function(_0x5da704){return _0x5da704();},'wqfTe':_0x3d68e7(0x108),'RQcTS':_0x3d68e7(0x13f),'gfwUA':function(_0x212f19,_0x14c869,_0x198fe4){return _0x212f19(_0x14c869,_0x198fe4);},'oOzcm':_0x3d68e7(0x101),'AfgYd':function(_0x17b243,_0x567d72,_0x5c99dc){return _0x17b243(_0x567d72,_0x5c99dc);},'KpJjE':'toolInstalledResp','HLupT':_0x3d68e7(0x107),'bbdBF':'accessResp','fkNVa':function(_0x3831f1,_0x4030f5,_0x330e0c){return _0x3831f1(_0x4030f5,_0x330e0c);},'yKriK':_0x3d68e7(0x1f5),'SueTu':function(_0x50b8fb,_0x439a2e){return _0x50b8fb(_0x439a2e);},'nHwnS':_0x3d68e7(0x1d8),'jOjCg':function(_0x371c5d,_0x38eee2,_0x342b8a){return _0x371c5d(_0x38eee2,_0x342b8a);},'vCQwX':_0x3d68e7(0x1b8),'bRrgM':_0x3d68e7(0x13e),'kbblp':_0x3d68e7(0x13c),'xDwWw':_0x3d68e7(0x1c6),'kUtVh':_0x3d68e7(0x1f9),'jLgah':function(_0x1858bb,_0x27581c,_0x415ede){return _0x1858bb(_0x27581c,_0x415ede);},'bBRji':function(_0x373fe0,_0x36f727){return _0x373fe0+_0x36f727;},'hPWDQ':_0x3d68e7(0x164),'nhWSf':function(_0x40e881,_0x522c06,_0x36f34e,_0x2b600b,_0x543546,_0x4c0575,_0x3c9f0b){return _0x40e881(_0x522c06,_0x36f34e,_0x2b600b,_0x543546,_0x4c0575,_0x3c9f0b);},'ZPgsP':_0x3d68e7(0x1bc)};let _0x34c8e6,_0x31b74d;try{global_registry['requestId']=_0x4bfbbf[_0x3d68e7(0x1e4)](uuidv4);!fs[_0x3d68e7(0x122)](_0x4bfbbf[_0x3d68e7(0x1dc)](getCredentialsPath))&&(_0x31b74d=_0x4bfbbf[_0x3d68e7(0x1da)],logger['error'](_0x31b74d),await _0x4bfbbf[_0x3d68e7(0x1bd)](reportToGalactusAndSendToEDS,_0x56ef32,_0x34c8e6,_0x31b74d,messageTypes[_0x3d68e7(0x126)],_0x4bfbbf[_0x3d68e7(0x136)],_0x4bfbbf['FGGVC'],_0x4bfbbf[_0x3d68e7(0x1b7)]),process[_0x3d68e7(0x143)](0x1));_0x4bfbbf[_0x3d68e7(0x162)](sendInstrumentationEvent,_0x56ef32,_0x4bfbbf[_0x3d68e7(0x136)],messageTypes[_0x3d68e7(0x14f)],null,null,_0x56ef32);const _0x20da42=JSON[_0x3d68e7(0x146)](fs[_0x3d68e7(0x10a)](_0x4bfbbf[_0x3d68e7(0x1ba)](getCredentialsPath)));global_registry[_0x3d68e7(0x175)]=_0x20da42[_0x3d68e7(0x1cd)][_0x3d68e7(0x15b)],global_registry[_0x3d68e7(0x17c)]=_0x20da42[_0x3d68e7(0x1cd)]['password'];const _0x5f17ec=WS_ENDPOINT[_0x3d68e7(0x18b)](_0x4bfbbf[_0x3d68e7(0x1d5)],_0x20da42[_0x3d68e7(0x1cd)]['username'])[_0x3d68e7(0x18b)](_0x4bfbbf[_0x3d68e7(0x1fc)],_0x20da42[_0x3d68e7(0x1cd)]['password']),_0xa30449={};_0xa30449[_0x3d68e7(0x103)]=ws,_0xa30449[_0x3d68e7(0x111)]=0x36ee80,_0x34c8e6=new ReconnectingWebSocket(_0x5f17ec,[],_0xa30449),global_registry[_0x3d68e7(0x11c)]=_0x4bfbbf[_0x3d68e7(0x116)](getAuthHeader,global_registry[_0x3d68e7(0x175)],global_registry[_0x3d68e7(0x17c)]),await _0x4bfbbf['gfwUA'](inputValidation,_0x56ef32,_0x34c8e6),logger[_0x3d68e7(0x1ed)](_0x3d68e7(0x1b2)+global_registry['cloudProvider']+_0x3d68e7(0x1f1)+global_registry[_0x3d68e7(0x16f)]);let _0x3bfc41=await _0x4bfbbf['OUyuH'](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x4bfbbf['oOzcm'],_0x34c8e6,webSocketUtils,_0x56ef32);const _0x415ad9=await _0x3bfc41[_0x3d68e7(0x1ff)]();_0x4bfbbf['AfgYd'](printResponse,_0x4bfbbf[_0x3d68e7(0x1d2)],_0x415ad9),_0x3bfc41=await _0x3bfc41[_0x3d68e7(0x169)]();let _0x3b553a=![];try{_0x3b553a=await _0x3bfc41[_0x3d68e7(0x1a1)]();}catch(_0x246251){const _0x3070ba=_0x4bfbbf[_0x3d68e7(0x168)][_0x3d68e7(0x144)]('|');let _0x45138f=0x0;while(!![]){switch(_0x3070ba[_0x45138f++]){case'0':await _0x4bfbbf[_0x3d68e7(0x1bd)](reportToGalactusAndSendToEDS,_0x56ef32,_0x34c8e6,_0x31b74d,messageTypes[_0x3d68e7(0x126)],_0x4bfbbf[_0x3d68e7(0x136)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x4bfbbf[_0x3d68e7(0x1b7)]);continue;case'1':_0x31b74d=_0x3d68e7(0x1d0)+global_registry[_0x3d68e7(0x1df)]+_0x3d68e7(0x148)+global_registry[_0x3d68e7(0x16f)]+_0x3d68e7(0x1cb)+_0x246251;continue;case'2':_0x3b553a=null;continue;case'3':logger['error'](_0x31b74d);continue;case'4':_0x31b74d+='\x0a'+JSON[_0x3d68e7(0x1b0)](_0x246251[_0x3d68e7(0x157)]);continue;}break;}}_0x3b553a&&logger[_0x3d68e7(0x1ed)](_0x3d68e7(0x1b6)+global_registry[_0x3d68e7(0x1df)]+_0x3d68e7(0x18c));const _0x1158fa=await _0x3bfc41['checkAccess']();_0x4bfbbf['AfgYd'](printResponse,_0x4bfbbf[_0x3d68e7(0x1ee)],_0x1158fa);const _0x326971=await _0x4bfbbf[_0x3d68e7(0x1e4)](curlRequest);_0x4bfbbf[_0x3d68e7(0x112)](printResponse,_0x4bfbbf['yKriK'],_0x326971);const _0x379e76=await _0x4bfbbf[_0x3d68e7(0x1b9)](isTlsSupported,_0x4bfbbf[_0x3d68e7(0x1f6)]);_0x4bfbbf[_0x3d68e7(0x15a)](printResponse,_0x4bfbbf[_0x3d68e7(0x186)],_0x379e76);const _0x18473a={};_0x18473a[_0x3d68e7(0x179)]=_0x4bfbbf[_0x3d68e7(0x1ef)],_0x18473a[_0x3d68e7(0x141)]=_0x415ad9;const _0x48c5e6={};_0x48c5e6[_0x3d68e7(0x179)]=_0x4bfbbf[_0x3d68e7(0x1a2)],_0x48c5e6[_0x3d68e7(0x141)]=_0x1158fa;const _0x3a67f7={};_0x3a67f7['header']=_0x4bfbbf[_0x3d68e7(0x1e6)],_0x3a67f7[_0x3d68e7(0x141)]=_0x326971;const _0x2037ea={};_0x2037ea[_0x3d68e7(0x179)]=_0x4bfbbf[_0x3d68e7(0x19a)],_0x2037ea[_0x3d68e7(0x141)]=_0x379e76;const _0x2046e7=[_0x18473a,_0x48c5e6,_0x3a67f7,_0x2037ea],_0x16707a=await _0x4bfbbf[_0x3d68e7(0x1f7)](generateReport,_0x2046e7,_0x3b553a),_0x23894f=new Date(),_0x3f9fef=_0x23894f[_0x3d68e7(0x138)]()+'_'+_0x4bfbbf[_0x3d68e7(0x1e7)](_0x23894f[_0x3d68e7(0x184)](),0x1)+'_'+_0x23894f[_0x3d68e7(0x124)]()+'_'+_0x23894f[_0x3d68e7(0x12c)]()+'_'+_0x23894f[_0x3d68e7(0x1a9)](),_0x2cd79d='log/report_'+_0x3f9fef+_0x3d68e7(0x102);fs['writeFileSync'](_0x2cd79d,_0x16707a,_0x4bfbbf[_0x3d68e7(0x15d)]),logger[_0x3d68e7(0x1ed)]('Report\x20saved\x20in\x20'+_0x2cd79d),process[_0x3d68e7(0x143)](0x0);}catch(_0x22b7de){let _0x4fa457=_0x3d68e7(0x118)+_0x22b7de+'\x20';logger[_0x3d68e7(0x19b)](_0x4fa457),_0x4fa457+='\x0a'+JSON['stringify'](_0x22b7de[_0x3d68e7(0x157)]),logger['debug'](_0x3d68e7(0x203)+_0x22b7de[_0x3d68e7(0x157)]);if(_0x34c8e6){const _0x567b1c={};_0x567b1c[_0x3d68e7(0x1c8)]=WS_EVENTS[_0x3d68e7(0x14a)],_0x567b1c[_0x3d68e7(0x11b)]=_0x4fa457,webSocketUtils[_0x3d68e7(0x147)](_0x34c8e6,_0x567b1c,_0x4bfbbf[_0x3d68e7(0x1b7)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x402bab={};_0x402bab[_0x3d68e7(0x19b)]=_0x4fa457,await _0x4bfbbf[_0x3d68e7(0x121)](sendInstrumentationEvent,_0x56ef32,_0x4bfbbf[_0x3d68e7(0x136)],messageTypes[_0x3d68e7(0x126)],_0x4bfbbf[_0x3d68e7(0x1e5)],_0x402bab,_0x56ef32),process[_0x3d68e7(0x143)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x840248=a18_0x58e7;(function(_0x5979a1,_0x4a29de){const _0x1ad0fd=a18_0x58e7,_0x1fed07=_0x5979a1();while(!![]){try{const _0x1dab0d=-parseInt(_0x1ad0fd(0x1b5))/0x1*(-parseInt(_0x1ad0fd(0x1c8))/0x2)+parseInt(_0x1ad0fd(0x1c0))/0x3*(parseInt(_0x1ad0fd(0x1b0))/0x4)+parseInt(_0x1ad0fd(0x1b1))/0x5+parseInt(_0x1ad0fd(0x1b9))/0x6*(parseInt(_0x1ad0fd(0x1c5))/0x7)+-parseInt(_0x1ad0fd(0x1bb))/0x8*(parseInt(_0x1ad0fd(0x1bf))/0x9)+-parseInt(_0x1ad0fd(0x1c4))/0xa*(parseInt(_0x1ad0fd(0x1c1))/0xb)+parseInt(_0x1ad0fd(0x1b3))/0xc*(-parseInt(_0x1ad0fd(0x1c6))/0xd);if(_0x1dab0d===_0x4a29de)break;else _0x1fed07['push'](_0x1fed07['shift']());}catch(_0x41b358){_0x1fed07['push'](_0x1fed07['shift']());}}}(a18_0xbc9e,0x74580));function a18_0x58e7(_0x380115,_0x2128f2){const _0xbc9ea2=a18_0xbc9e();return a18_0x58e7=function(_0x58e712,_0x3512c4){_0x58e712=_0x58e712-0x1b0;let _0x1b5828=_0xbc9ea2[_0x58e712];return _0x1b5828;},a18_0x58e7(_0x380115,_0x2128f2);}function a18_0xbc9e(){const _0x53f5f6=['handler','216TVFtgf','start_commands','449258agYUTU','start','command','fDIMz','6JHVCTp','Start\x20an\x20existing\x20Automation\x20grid.','270856Vkjwym','help','builder','strict','9ADgXFc','1448715eBrLIB','128194LcjZWQ','demandCommand','usage','380uGWAfM','60228sIqoqH','483925PynrDO','QTUif','2vBbRAc','4KsjBhQ','3412680MAwDTj'];a18_0xbc9e=function(){return _0x53f5f6;};return a18_0xbc9e();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x840248(0x1b7)]=a18_0x840248(0x1b6),exports['desc']=a18_0x840248(0x1ba),exports[a18_0x840248(0x1bd)]=function(_0x4ba206){const _0x6d3fff=a18_0x840248,_0x438f1f={};_0x438f1f[_0x6d3fff(0x1c7)]=_0x6d3fff(0x1b4),_0x438f1f['fDIMz']=_0x6d3fff(0x1bc);const _0x30153d=_0x438f1f;return _0x4ba206[_0x6d3fff(0x1c3)](HELP_HEADER_MESSAGE[_0x6d3fff(0x1b6)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x30153d[_0x6d3fff(0x1c7)])[_0x6d3fff(0x1c2)]()['recommendCommands']()[_0x6d3fff(0x1be)]()[_0x6d3fff(0x1bc)](_0x30153d[_0x6d3fff(0x1b8)]);},exports[a18_0x840248(0x1b2)]=function(_0x595266){};
1
+ const a18_0x114993=a18_0x535a;(function(_0x1df6cd,_0x373313){const _0x2dfafc=a18_0x535a,_0x45cc14=_0x1df6cd();while(!![]){try{const _0x45aa66=-parseInt(_0x2dfafc(0x119))/0x1+-parseInt(_0x2dfafc(0x114))/0x2*(-parseInt(_0x2dfafc(0x118))/0x3)+parseInt(_0x2dfafc(0x110))/0x4+parseInt(_0x2dfafc(0x125))/0x5+-parseInt(_0x2dfafc(0x127))/0x6*(parseInt(_0x2dfafc(0x117))/0x7)+parseInt(_0x2dfafc(0x11e))/0x8*(parseInt(_0x2dfafc(0x122))/0x9)+-parseInt(_0x2dfafc(0x10f))/0xa;if(_0x45aa66===_0x373313)break;else _0x45cc14['push'](_0x45cc14['shift']());}catch(_0x12133c){_0x45cc14['push'](_0x45cc14['shift']());}}}(a18_0x5d67,0x9c74f));function a18_0x5d67(){const _0x4217eb=['recommendCommands','13464eLswXk','usage','demandCommand','../config/constants','5625BHvITR','start_commands','Start\x20an\x20existing\x20Automation\x20grid.','720415FARkQa','builder','2334GxwtZL','20323910MUrxeo','5011816HKNGpj','handler','command','gDPnp','2mxpgGK','help','commandDir','14665QuYBny','3429831BOwarB','103996aYZvlV','start','strict','epilogue'];a18_0x5d67=function(){return _0x4217eb;};return a18_0x5d67();}function a18_0x535a(_0x5796c7,_0x264fdb){const _0x5d6792=a18_0x5d67();return a18_0x535a=function(_0x535a99,_0xebdb0a){_0x535a99=_0x535a99-0x10f;let _0x15b9e7=_0x5d6792[_0x535a99];return _0x15b9e7;},a18_0x535a(_0x5796c7,_0x264fdb);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x114993(0x121));exports[a18_0x114993(0x112)]=a18_0x114993(0x11a),exports['desc']=a18_0x114993(0x124),exports[a18_0x114993(0x126)]=function(_0x4d8b82){const _0x506bd1=a18_0x114993,_0x35c144={};_0x35c144['obiuA']=_0x506bd1(0x123),_0x35c144[_0x506bd1(0x113)]=_0x506bd1(0x115);const _0xc1ca92=_0x35c144;return _0x4d8b82[_0x506bd1(0x11f)](HELP_HEADER_MESSAGE[_0x506bd1(0x11a)])[_0x506bd1(0x11c)](HELP_FOOTER_MESSAGE)[_0x506bd1(0x116)](_0xc1ca92['obiuA'])[_0x506bd1(0x120)]()[_0x506bd1(0x11d)]()[_0x506bd1(0x11b)]()[_0x506bd1(0x115)](_0xc1ca92[_0x506bd1(0x113)]);},exports[a18_0x114993(0x111)]=function(_0x1e4ff1){};
@@ -1 +1 @@
1
- const a19_0x447423=a19_0x13ff;function a19_0x13ff(_0x4ca682,_0xcafea6){const _0x343228=a19_0x3432();return a19_0x13ff=function(_0x13ffe1,_0x14583f){_0x13ffe1=_0x13ffe1-0x142;let _0x50ac71=_0x343228[_0x13ffe1];return _0x50ac71;},a19_0x13ff(_0x4ca682,_0xcafea6);}(function(_0x3422f8,_0x53773d){const _0x1c369d=a19_0x13ff,_0xa576b1=_0x3422f8();while(!![]){try{const _0x4fd99d=parseInt(_0x1c369d(0x18c))/0x1*(parseInt(_0x1c369d(0x148))/0x2)+parseInt(_0x1c369d(0x14d))/0x3*(-parseInt(_0x1c369d(0x150))/0x4)+-parseInt(_0x1c369d(0x170))/0x5*(-parseInt(_0x1c369d(0x14a))/0x6)+parseInt(_0x1c369d(0x173))/0x7+parseInt(_0x1c369d(0x17e))/0x8*(parseInt(_0x1c369d(0x158))/0x9)+parseInt(_0x1c369d(0x172))/0xa+parseInt(_0x1c369d(0x18b))/0xb*(-parseInt(_0x1c369d(0x15d))/0xc);if(_0x4fd99d===_0x53773d)break;else _0xa576b1['push'](_0xa576b1['shift']());}catch(_0x26a02f){_0xa576b1['push'](_0xa576b1['shift']());}}}(a19_0x3432,0x7538b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x447423(0x149)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x447423(0x184)),{scaleUpHubDeployment}=require(a19_0x447423(0x179)),{sendInstrumentationEvent}=require(a19_0x447423(0x187)),webSocketUtils=require(a19_0x447423(0x1a0)),{createK8sClient}=require(a19_0x447423(0x18e)),{getCloudProviderObject}=require(a19_0x447423(0x180));exports[a19_0x447423(0x163)]=a19_0x447423(0x171),exports['desc']=a19_0x447423(0x192),exports[a19_0x447423(0x147)]=function(_0x956437){const _0x40429c=a19_0x447423,_0xc0a248={};_0xc0a248[_0x40429c(0x154)]=_0x40429c(0x174),_0xc0a248[_0x40429c(0x165)]=_0x40429c(0x182),_0xc0a248[_0x40429c(0x19d)]='Skip\x20insecure\x20cert\x20verification.',_0xc0a248[_0x40429c(0x168)]='boolean',_0xc0a248[_0x40429c(0x188)]=_0x40429c(0x14e);const _0x4f2e3a=_0xc0a248,_0x1e82cf={};_0x1e82cf[_0x40429c(0x159)]=_0x4f2e3a['NeuOd'],_0x1e82cf[_0x40429c(0x15c)]=_0x4f2e3a[_0x40429c(0x165)];const _0x907cc7={};_0x907cc7[_0x40429c(0x159)]=_0x4f2e3a[_0x40429c(0x19d)],_0x907cc7[_0x40429c(0x15c)]=_0x4f2e3a[_0x40429c(0x168)],_0x907cc7[_0x40429c(0x167)]=![];const _0x3b68c6={};return _0x3b68c6[_0x40429c(0x15b)]=_0x1e82cf,_0x3b68c6[_0x40429c(0x164)]=_0x907cc7,_0x956437['usage'](HELP_HEADER_MESSAGE[_0x40429c(0x153)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x40429c(0x191)](_0x3b68c6)[_0x40429c(0x14e)](_0x4f2e3a[_0x40429c(0x188)])['argv'];},exports[a19_0x447423(0x15f)]=async function(_0x237eb2){const _0x1ce349=a19_0x447423,_0x340c85={'zFMkP':_0x1ce349(0x145),'FIEyQ':function(_0x186626){return _0x186626();},'GnfhQ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hvGvf':function(_0x3caa5c,_0x548728,_0x3e47b1,_0x488a27,_0x28c80f,_0x1e1929,_0x14388b){return _0x3caa5c(_0x548728,_0x3e47b1,_0x488a27,_0x28c80f,_0x1e1929,_0x14388b);},'AKQDS':_0x1ce349(0x19f),'muMjq':'init-not-called','qilfn':function(_0xe16e1f,_0x27f6bb,_0x2f27dc,_0x4988a6,_0xffacdd,_0x86b12f,_0x1f7e55){return _0xe16e1f(_0x27f6bb,_0x2f27dc,_0x4988a6,_0xffacdd,_0x86b12f,_0x1f7e55);},'BJsEO':function(_0x1e7395){return _0x1e7395();},'qdaHd':_0x1ce349(0x144),'SkfJF':_0x1ce349(0x186),'GTgwr':_0x1ce349(0x19a),'aLLSX':function(_0x565c59,_0x3b0c42,_0xea4e37,_0x398991){return _0x565c59(_0x3b0c42,_0xea4e37,_0x398991);},'shgIW':function(_0x1460e0,_0xa4200d,_0x4fc52d,_0x2f0347,_0xa460df,_0xedf333,_0x305a08){return _0x1460e0(_0xa4200d,_0x4fc52d,_0x2f0347,_0xa460df,_0xedf333,_0x305a08);},'pwsTw':function(_0x2b3240,_0x88c56c,_0x29be09){return _0x2b3240(_0x88c56c,_0x29be09);},'YvsWY':_0x1ce349(0x17c),'FSrZw':function(_0x51fcb7,_0x241c2f){return _0x51fcb7===_0x241c2f;},'aVbEc':_0x1ce349(0x18d),'Slqmz':function(_0xfdd03a,_0x5bb7ee,_0x1dd3bd,_0x1cdbbd,_0x493b38,_0x31be83,_0x19ab8c){return _0xfdd03a(_0x5bb7ee,_0x1dd3bd,_0x1cdbbd,_0x493b38,_0x31be83,_0x19ab8c);},'MADoL':_0x1ce349(0x195),'aRsjt':function(_0x361b9e,_0x4b0d6b,_0x545135,_0x53b644,_0x3941f9,_0x73de2b,_0x512fc6){return _0x361b9e(_0x4b0d6b,_0x545135,_0x53b644,_0x3941f9,_0x73de2b,_0x512fc6);},'SXypU':_0x1ce349(0x190),'BQRPT':function(_0x2fe315,_0x382ece,_0x47f1f4,_0x2bf3e1,_0x24edda,_0x7d3de1,_0x1ac58){return _0x2fe315(_0x382ece,_0x47f1f4,_0x2bf3e1,_0x24edda,_0x7d3de1,_0x1ac58);},'fJzIt':_0x1ce349(0x161)};let _0x43aeee;try{!_0x237eb2[_0x1ce349(0x19b)]&&(logger[_0x1ce349(0x152)](_0x340c85[_0x1ce349(0x162)]),process[_0x1ce349(0x169)](0x1));!fs['existsSync'](_0x340c85[_0x1ce349(0x17b)](getCredentialsPath))&&(logger[_0x1ce349(0x152)](_0x340c85[_0x1ce349(0x17f)]),await _0x340c85['hvGvf'](sendInstrumentationEvent,_0x237eb2,_0x340c85[_0x1ce349(0x15e)],messageTypes[_0x1ce349(0x17a)],_0x340c85[_0x1ce349(0x196)],null,_0x237eb2),process[_0x1ce349(0x169)](0x1));logger['info']('Starting\x20grid\x20'+_0x237eb2['gridId']),await _0x340c85[_0x1ce349(0x19c)](sendInstrumentationEvent,_0x237eb2,_0x340c85[_0x1ce349(0x15e)],messageTypes[_0x1ce349(0x15a)],null,null,_0x237eb2);const _0x123c4e=JSON[_0x1ce349(0x16d)](fs['readFileSync'](_0x340c85[_0x1ce349(0x14f)](getCredentialsPath)));global_registry['bstackUsername']=_0x123c4e[_0x1ce349(0x175)][_0x1ce349(0x198)],global_registry[_0x1ce349(0x151)]=_0x123c4e[_0x1ce349(0x175)][_0x1ce349(0x160)];const _0x4d185e=WS_ENDPOINT[_0x1ce349(0x194)](_0x340c85[_0x1ce349(0x16a)],_0x123c4e[_0x1ce349(0x175)][_0x1ce349(0x198)])[_0x1ce349(0x194)](_0x340c85[_0x1ce349(0x166)],_0x123c4e['Browserstack'][_0x1ce349(0x160)]),_0x180ed2={};_0x180ed2[_0x1ce349(0x189)]=ws,_0x180ed2[_0x1ce349(0x146)]=0x36ee80,_0x43aeee=new ReconnectingWebSocket(_0x4d185e,[],_0x180ed2),logger[_0x1ce349(0x142)](_0x340c85['GTgwr']),webSocketUtils[_0x1ce349(0x143)](_0x43aeee,_0x237eb2[_0x1ce349(0x157)],_0x237eb2[_0x1ce349(0x160)]);const [_0x505b29,_0x5e85d0]=await _0x340c85[_0x1ce349(0x18f)](getGridDetails,_0x123c4e[_0x1ce349(0x175)]['username'],_0x123c4e['Browserstack'][_0x1ce349(0x160)],_0x237eb2[_0x1ce349(0x19b)]);if(_0x5e85d0){const _0x44d590=_0x5e85d0[_0x1ce349(0x19e)];global_registry[_0x1ce349(0x16c)]=_0x44d590['cloudProvider'],global_registry[_0x1ce349(0x14c)]=_0x44d590['region'],global_registry[_0x1ce349(0x177)]=_0x44d590[_0x1ce349(0x177)];const _0x968dcd=await _0x340c85[_0x1ce349(0x18a)](getCloudProviderObject,_0x44d590[_0x1ce349(0x16c)],_0x44d590[_0x1ce349(0x177)],_0x44d590['name'],_0x43aeee,webSocketUtils,_0x237eb2),[_0x3afc44,_0x51fb8a,_0x19e043,_0x1c6337,_0x44a596,_0x2c8beb]=await _0x340c85['pwsTw'](createK8sClient,_0x968dcd,_0x237eb2[_0x1ce349(0x183)]);await _0x340c85[_0x1ce349(0x193)](scaleUpHubDeployment,_0x51fb8a,_0x44d590[_0x1ce349(0x14b)]),logger['info'](_0x340c85[_0x1ce349(0x16e)]),process[_0x1ce349(0x169)](0x0);}_0x340c85[_0x1ce349(0x17d)](_0x505b29[_0x1ce349(0x16f)],0x191)&&(logger[_0x1ce349(0x152)](_0x340c85[_0x1ce349(0x176)]),await _0x340c85[_0x1ce349(0x197)](sendInstrumentationEvent,_0x237eb2,_0x340c85['AKQDS'],messageTypes[_0x1ce349(0x17a)],_0x340c85['MADoL'],null,_0x237eb2),process[_0x1ce349(0x169)](0x1)),_0x340c85[_0x1ce349(0x17d)](_0x505b29[_0x1ce349(0x16f)],0x190)&&(logger[_0x1ce349(0x152)](JSON['parse'](_0x505b29['body'])[_0x1ce349(0x185)]),await _0x340c85['aRsjt'](sendInstrumentationEvent,_0x237eb2,_0x340c85[_0x1ce349(0x15e)],messageTypes[_0x1ce349(0x17a)],_0x340c85[_0x1ce349(0x178)],null,_0x237eb2),process[_0x1ce349(0x169)](0x1)),logger[_0x1ce349(0x152)](_0x1ce349(0x16b)+JSON['stringify'](_0x505b29)),await _0x340c85['BQRPT'](sendInstrumentationEvent,_0x237eb2,_0x340c85[_0x1ce349(0x15e)],messageTypes[_0x1ce349(0x17a)],_0x340c85[_0x1ce349(0x199)],_0x505b29,_0x237eb2),process[_0x1ce349(0x169)](0x1);}catch(_0x16069d){const _0xccac8a=_0x1ce349(0x155)+_0x16069d+'\x20\x0a'+JSON[_0x1ce349(0x181)](_0x16069d[_0x1ce349(0x156)])+'\x20';logger[_0x1ce349(0x152)](_0xccac8a),process[_0x1ce349(0x169)](0x1);}};function a19_0x3432(){const _0x297930=['error','start','NeuOd','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','stack','user','1287099ThHoxm','description','INFO','grid-id','type','42564pKDybB','AKQDS','handler','password','server-error','zFMkP','command','skip-tls-cert-verify','rQJFJ','SkfJF','default','bMdXY','exit','qdaHd','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','cloudProvider','parse','YvsWY','statusCode','2261890ueEoHV','grid','2726590xWVODt','3625622qjWubg','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Browserstack','aVbEc','clusterName','SXypU','../../utils/gridComponents','ERROR','FIEyQ','Grid\x20started','FSrZw','8JjfAwu','GnfhQ','../../cloudproviders/utils','stringify','string','skipTlsCertVerify','../../utils/utilityMethods','message','<PasswordPlaceholder>','../../utils/instrumentationUtils','QsFXs','WebSocket','shgIW','7150eRJYBK','955711fLPDAs','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/createk8sClient','aLLSX','invalid-grid-id','options','Start\x20an\x20existing\x20Automation\x20grid.','pwsTw','replace','unauthorised','muMjq','Slqmz','username','fJzIt','Adding\x20Websocket\x20listeners','gridId','qilfn','PmbAW','info','start-grid-called','../../utils/webSocketUtils','debug','addListeners','<UsernamePlaceholder>','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','connectionTimeout','builder','2YNiUcZ','reconnecting-websocket','12EfousS','name','clusterRegion','25182zXYwwa','help','BJsEO','4lWWYKI','bstackAccesskey'];a19_0x3432=function(){return _0x297930;};return a19_0x3432();}
1
+ const a19_0x30fc15=a19_0x1e10;function a19_0x4823(){const _0x480502=['help','../../utils/instrumentationUtils','string','dVXuI','abcPY','FSHbH','name','../../utils/webSocketUtils','username','connectionTimeout','parse','epilogue','../../config/logger','Browserstack','MDFiK','16tcZuSQ','Grid\x20started','Adding\x20Websocket\x20listeners','lJsWg','Starting\x20grid\x20','1202478DDKGfE','3707096AfbGIK','description','KNXdp','../../utils/createk8sClient','wijyY','exit','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/gridComponents','error','dCkLL','unauthorised','<UsernamePlaceholder>','start','../../config/constants','handler','argv','cloudProvider','usage','1308126qavlom','hnCID','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','statusCode','MqEqH','qqFTW','info','desc','vRpin','xoHIO','existsSync','ERROR','bstackUsername','2570655YHVYdT','command','addListeners','<PasswordPlaceholder>','replace','clusterName','WebSocket','reconnecting-websocket','options','../../utils/utilityMethods','password','type','vKzvD','bTkLM','../../cloudproviders/utils','grid','1028552njmPUV','stringify','3219234nkDrzg','BSDzw','MJjsi','default','grid-id','body','skip-tls-cert-verify','user','start-grid-called','message','YbMXm','iGhJS','9980592LEgQrG','INFO','Start\x20an\x20existing\x20Automation\x20grid.','cUrFg','region','init-not-called','sSuOw','Skip\x20insecure\x20cert\x20verification.'];a19_0x4823=function(){return _0x480502;};return a19_0x4823();}(function(_0x4971ce,_0x1d89fb){const _0x3771a6=a19_0x1e10,_0xe27acc=_0x4971ce();while(!![]){try{const _0x645fe1=parseInt(_0x3771a6(0x208))/0x1+parseInt(_0x3771a6(0x227))/0x2+-parseInt(_0x3771a6(0x1f4))/0x3+parseInt(_0x3771a6(0x1f5))/0x4+-parseInt(_0x3771a6(0x215))/0x5+-parseInt(_0x3771a6(0x1d8))/0x6+parseInt(_0x3771a6(0x225))/0x7*(-parseInt(_0x3771a6(0x1ef))/0x8);if(_0x645fe1===_0x1d89fb)break;else _0xe27acc['push'](_0xe27acc['shift']());}catch(_0x310100){_0xe27acc['push'](_0xe27acc['shift']());}}}(a19_0x4823,0xed5e0));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x30fc15(0x21c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x30fc15(0x203)),{logger}=require(a19_0x30fc15(0x1ec)),{getCredentialsPath,getGridDetails}=require(a19_0x30fc15(0x21e)),{scaleUpHubDeployment}=require(a19_0x30fc15(0x1fd)),{sendInstrumentationEvent}=require(a19_0x30fc15(0x1e1)),webSocketUtils=require(a19_0x30fc15(0x1e7)),{createK8sClient}=require(a19_0x30fc15(0x1f8)),{getCloudProviderObject}=require(a19_0x30fc15(0x223));function a19_0x1e10(_0x3da061,_0x3d2e47){const _0x4823d6=a19_0x4823();return a19_0x1e10=function(_0x1e10a2,_0x386e97){_0x1e10a2=_0x1e10a2-0x1cd;let _0x3f972f=_0x4823d6[_0x1e10a2];return _0x3f972f;},a19_0x1e10(_0x3da061,_0x3d2e47);}exports[a19_0x30fc15(0x216)]=a19_0x30fc15(0x224),exports[a19_0x30fc15(0x20f)]=a19_0x30fc15(0x1da),exports['builder']=function(_0x5151b4){const _0x47ad2e=a19_0x30fc15,_0x4c6a9d={};_0x4c6a9d[_0x47ad2e(0x221)]=_0x47ad2e(0x20a),_0x4c6a9d[_0x47ad2e(0x209)]=_0x47ad2e(0x1e2),_0x4c6a9d[_0x47ad2e(0x1e5)]=_0x47ad2e(0x1df),_0x4c6a9d['xoHIO']='boolean',_0x4c6a9d[_0x47ad2e(0x20c)]=_0x47ad2e(0x1e0);const _0x489e5a=_0x4c6a9d,_0x23a979={};_0x23a979[_0x47ad2e(0x1f6)]=_0x489e5a[_0x47ad2e(0x221)],_0x23a979[_0x47ad2e(0x220)]=_0x489e5a[_0x47ad2e(0x209)];const _0x143366={};_0x143366[_0x47ad2e(0x1f6)]=_0x489e5a[_0x47ad2e(0x1e5)],_0x143366[_0x47ad2e(0x220)]=_0x489e5a[_0x47ad2e(0x211)],_0x143366[_0x47ad2e(0x1cf)]=![];const _0x7a9afd={};return _0x7a9afd[_0x47ad2e(0x1d0)]=_0x23a979,_0x7a9afd[_0x47ad2e(0x1d2)]=_0x143366,_0x5151b4[_0x47ad2e(0x207)](HELP_HEADER_MESSAGE[_0x47ad2e(0x202)])[_0x47ad2e(0x1eb)](HELP_FOOTER_MESSAGE)[_0x47ad2e(0x21d)](_0x7a9afd)['help'](_0x489e5a['MqEqH'])[_0x47ad2e(0x205)];},exports[a19_0x30fc15(0x204)]=async function(_0x371f49){const _0x2d0bb2=a19_0x30fc15,_0x4e9366={'wijyY':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','dCkLL':function(_0x8c6b85){return _0x8c6b85();},'bTkLM':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YbMXm':function(_0x4074ed,_0x31e449,_0x1a1af5,_0x1a3f40,_0x4c324c,_0x368b85,_0x4fcd14){return _0x4074ed(_0x31e449,_0x1a1af5,_0x1a3f40,_0x4c324c,_0x368b85,_0x4fcd14);},'MDFiK':_0x2d0bb2(0x1d4),'GlzUa':_0x2d0bb2(0x1dd),'abcPY':function(_0x4d2e94){return _0x4d2e94();},'lJsWg':_0x2d0bb2(0x201),'BSDzw':_0x2d0bb2(0x218),'qqFTW':_0x2d0bb2(0x1f1),'iGhJS':function(_0x4b8e42,_0x359082,_0x36b613,_0x50cb7d){return _0x4b8e42(_0x359082,_0x36b613,_0x50cb7d);},'dVXuI':function(_0x6d0386,_0x33d538,_0x385c19,_0x33d5c4,_0x6e55fa,_0x408e26,_0x3b5ab8){return _0x6d0386(_0x33d538,_0x385c19,_0x33d5c4,_0x6e55fa,_0x408e26,_0x3b5ab8);},'MJjsi':function(_0x2df326,_0x31f2a3,_0x535046){return _0x2df326(_0x31f2a3,_0x535046);},'vRpin':_0x2d0bb2(0x1f0),'iOSqT':function(_0x24b401,_0xa2c305){return _0x24b401===_0xa2c305;},'sSuOw':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','LYycR':_0x2d0bb2(0x200),'vcQOB':function(_0x17bd4e,_0x4fb9b8){return _0x17bd4e===_0x4fb9b8;},'KNXdp':'invalid-grid-id','cUrFg':function(_0x4ab9d2,_0x238e1d,_0x586cab,_0x55578b,_0x264e60,_0x290611,_0x354ad8){return _0x4ab9d2(_0x238e1d,_0x586cab,_0x55578b,_0x264e60,_0x290611,_0x354ad8);},'GUWZW':'server-error'};let _0x2378aa;try{!_0x371f49['gridId']&&(logger[_0x2d0bb2(0x1fe)](_0x4e9366[_0x2d0bb2(0x1f9)]),process['exit'](0x1));!fs[_0x2d0bb2(0x212)](_0x4e9366[_0x2d0bb2(0x1ff)](getCredentialsPath))&&(logger[_0x2d0bb2(0x1fe)](_0x4e9366[_0x2d0bb2(0x222)]),await _0x4e9366[_0x2d0bb2(0x1d6)](sendInstrumentationEvent,_0x371f49,_0x4e9366['MDFiK'],messageTypes['ERROR'],_0x4e9366['GlzUa'],null,_0x371f49),process[_0x2d0bb2(0x1fa)](0x1));logger[_0x2d0bb2(0x20e)](_0x2d0bb2(0x1f3)+_0x371f49['gridId']),await _0x4e9366[_0x2d0bb2(0x1d6)](sendInstrumentationEvent,_0x371f49,_0x4e9366[_0x2d0bb2(0x1ee)],messageTypes[_0x2d0bb2(0x1d9)],null,null,_0x371f49);const _0x4593b1=JSON[_0x2d0bb2(0x1ea)](fs['readFileSync'](_0x4e9366[_0x2d0bb2(0x1e4)](getCredentialsPath)));global_registry[_0x2d0bb2(0x214)]=_0x4593b1[_0x2d0bb2(0x1ed)][_0x2d0bb2(0x1e8)],global_registry['bstackAccesskey']=_0x4593b1[_0x2d0bb2(0x1ed)][_0x2d0bb2(0x21f)];const _0x17a9d1=WS_ENDPOINT[_0x2d0bb2(0x219)](_0x4e9366[_0x2d0bb2(0x1f2)],_0x4593b1[_0x2d0bb2(0x1ed)][_0x2d0bb2(0x1e8)])[_0x2d0bb2(0x219)](_0x4e9366[_0x2d0bb2(0x1cd)],_0x4593b1[_0x2d0bb2(0x1ed)][_0x2d0bb2(0x21f)]),_0x5c29f0={};_0x5c29f0[_0x2d0bb2(0x21b)]=ws,_0x5c29f0[_0x2d0bb2(0x1e9)]=0x36ee80,_0x2378aa=new ReconnectingWebSocket(_0x17a9d1,[],_0x5c29f0),logger['debug'](_0x4e9366[_0x2d0bb2(0x20d)]),webSocketUtils[_0x2d0bb2(0x217)](_0x2378aa,_0x371f49[_0x2d0bb2(0x1d3)],_0x371f49[_0x2d0bb2(0x21f)]);const [_0x2a8521,_0x51d44f]=await _0x4e9366[_0x2d0bb2(0x1d7)](getGridDetails,_0x4593b1['Browserstack'][_0x2d0bb2(0x1e8)],_0x4593b1[_0x2d0bb2(0x1ed)][_0x2d0bb2(0x21f)],_0x371f49['gridId']);if(_0x51d44f){const _0x51a853=_0x51d44f[_0x2d0bb2(0x20e)];global_registry[_0x2d0bb2(0x206)]=_0x51a853['cloudProvider'],global_registry['clusterRegion']=_0x51a853[_0x2d0bb2(0x1dc)],global_registry[_0x2d0bb2(0x21a)]=_0x51a853[_0x2d0bb2(0x21a)];const _0x21beae=await _0x4e9366['dVXuI'](getCloudProviderObject,_0x51a853['cloudProvider'],_0x51a853['clusterName'],_0x51a853[_0x2d0bb2(0x1e6)],_0x2378aa,webSocketUtils,_0x371f49),[_0x373b1e,_0x1c9ada,_0x2711ae,_0x503754,_0x47aad4,_0x2157d5]=await _0x4e9366['MJjsi'](createK8sClient,_0x21beae,_0x371f49['skipTlsCertVerify']);await _0x4e9366[_0x2d0bb2(0x1ce)](scaleUpHubDeployment,_0x1c9ada,_0x51a853[_0x2d0bb2(0x1e6)]),logger['info'](_0x4e9366[_0x2d0bb2(0x210)]),process['exit'](0x0);}_0x4e9366['iOSqT'](_0x2a8521[_0x2d0bb2(0x20b)],0x191)&&(logger[_0x2d0bb2(0x1fe)](_0x4e9366[_0x2d0bb2(0x1de)]),await _0x4e9366['dVXuI'](sendInstrumentationEvent,_0x371f49,_0x4e9366[_0x2d0bb2(0x1ee)],messageTypes['ERROR'],_0x4e9366['LYycR'],null,_0x371f49),process[_0x2d0bb2(0x1fa)](0x1)),_0x4e9366['vcQOB'](_0x2a8521[_0x2d0bb2(0x20b)],0x190)&&(logger['error'](JSON['parse'](_0x2a8521[_0x2d0bb2(0x1d1)])[_0x2d0bb2(0x1d5)]),await _0x4e9366[_0x2d0bb2(0x1e3)](sendInstrumentationEvent,_0x371f49,_0x4e9366[_0x2d0bb2(0x1ee)],messageTypes[_0x2d0bb2(0x213)],_0x4e9366[_0x2d0bb2(0x1f7)],null,_0x371f49),process[_0x2d0bb2(0x1fa)](0x1)),logger[_0x2d0bb2(0x1fe)](_0x2d0bb2(0x1fc)+JSON[_0x2d0bb2(0x226)](_0x2a8521)),await _0x4e9366[_0x2d0bb2(0x1db)](sendInstrumentationEvent,_0x371f49,_0x4e9366['MDFiK'],messageTypes['ERROR'],_0x4e9366['GUWZW'],_0x2a8521,_0x371f49),process['exit'](0x1);}catch(_0x33129f){const _0xaa01fd=_0x2d0bb2(0x1fb)+_0x33129f+'\x20\x0a'+JSON[_0x2d0bb2(0x226)](_0x33129f['stack'])+'\x20';logger[_0x2d0bb2(0x1fe)](_0xaa01fd),process[_0x2d0bb2(0x1fa)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x14c44f=a20_0x5614;(function(_0xbae306,_0x2c18bc){const _0x40456c=a20_0x5614,_0x5b895e=_0xbae306();while(!![]){try{const _0x1dea0f=parseInt(_0x40456c(0x1b6))/0x1+parseInt(_0x40456c(0x1b1))/0x2*(-parseInt(_0x40456c(0x1b3))/0x3)+parseInt(_0x40456c(0x1aa))/0x4+parseInt(_0x40456c(0x1ac))/0x5*(-parseInt(_0x40456c(0x1a6))/0x6)+parseInt(_0x40456c(0x1af))/0x7+-parseInt(_0x40456c(0x1ae))/0x8+parseInt(_0x40456c(0x1b0))/0x9;if(_0x1dea0f===_0x2c18bc)break;else _0x5b895e['push'](_0x5b895e['shift']());}catch(_0x2bc3a0){_0x5b895e['push'](_0x5b895e['shift']());}}}(a20_0x4f70,0x8a6f8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x14c44f(0x1ab));function a20_0x4f70(){const _0x278708=['47870bLeOEp','usage','111GHzxpb','demandCommand','stop','371790TCkSoa','handler','epilogue','gdlnL','6341574KCtggR','desc','XgNLS','builder','2510916VMkHUX','../config/constants','5ylXDBj','help','5133072puOTPd','4837665ERCVPK','13145184vTuUbL'];a20_0x4f70=function(){return _0x278708;};return a20_0x4f70();}function a20_0x5614(_0x5d24c5,_0x2cf0d4){const _0x4f707e=a20_0x4f70();return a20_0x5614=function(_0x5614f0,_0x1b523a){_0x5614f0=_0x5614f0-0x1a4;let _0x57fb37=_0x4f707e[_0x5614f0];return _0x57fb37;},a20_0x5614(_0x5d24c5,_0x2cf0d4);}exports['command']=a20_0x14c44f(0x1b5),exports[a20_0x14c44f(0x1a7)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x14c44f(0x1a9)]=function(_0x12fa6b){const _0x16e680=a20_0x14c44f,_0x1c1dea={};_0x1c1dea[_0x16e680(0x1a8)]='stop_commands',_0x1c1dea['gdlnL']=_0x16e680(0x1ad);const _0x2af48a=_0x1c1dea;return _0x12fa6b[_0x16e680(0x1b2)](HELP_HEADER_MESSAGE[_0x16e680(0x1b5)])[_0x16e680(0x1a4)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2af48a[_0x16e680(0x1a8)])[_0x16e680(0x1b4)]()['recommendCommands']()['strict']()[_0x16e680(0x1ad)](_0x2af48a[_0x16e680(0x1a5)]);},exports[a20_0x14c44f(0x1b7)]=function(_0x40ef38){};
1
+ const a20_0x3f5245=a20_0x5aa4;function a20_0x4272(){const _0x475bfc=['handler','Stop\x20a\x20running\x20Automation\x20grid.','1366472mERDgb','371413yQTXUT','7FUqFWR','commandDir','../config/constants','help','1314kQNWgs','recommendCommands','7190FZvTRB','ndLgA','9IFOHFR','strict','stop','builder','410120roGQTp','1216897OHTNNt','stop_commands','633SqjSvn','2298410guSeNl','desc','ygcyD','8156CdLsTz'];a20_0x4272=function(){return _0x475bfc;};return a20_0x4272();}function a20_0x5aa4(_0x3cfa17,_0x34444b){const _0x427229=a20_0x4272();return a20_0x5aa4=function(_0x5aa49e,_0x521978){_0x5aa49e=_0x5aa49e-0x18b;let _0x4720e0=_0x427229[_0x5aa49e];return _0x4720e0;},a20_0x5aa4(_0x3cfa17,_0x34444b);}(function(_0x3c3379,_0xaaabe9){const _0x3db1ff=a20_0x5aa4,_0x2f6939=_0x3c3379();while(!![]){try{const _0x25517b=parseInt(_0x3db1ff(0x19a))/0x1+-parseInt(_0x3db1ff(0x18f))/0x2+-parseInt(_0x3db1ff(0x192))/0x3*(parseInt(_0x3db1ff(0x196))/0x4)+parseInt(_0x3db1ff(0x1a1))/0x5*(parseInt(_0x3db1ff(0x19f))/0x6)+parseInt(_0x3db1ff(0x19b))/0x7*(-parseInt(_0x3db1ff(0x199))/0x8)+-parseInt(_0x3db1ff(0x18b))/0x9*(-parseInt(_0x3db1ff(0x193))/0xa)+parseInt(_0x3db1ff(0x190))/0xb;if(_0x25517b===_0xaaabe9)break;else _0x2f6939['push'](_0x2f6939['shift']());}catch(_0xc8cef7){_0x2f6939['push'](_0x2f6939['shift']());}}}(a20_0x4272,0x35e21));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x3f5245(0x19d));exports['command']=a20_0x3f5245(0x18d),exports[a20_0x3f5245(0x194)]=a20_0x3f5245(0x198),exports[a20_0x3f5245(0x18e)]=function(_0x5e8346){const _0x11f839=a20_0x3f5245,_0x5495a9={};_0x5495a9[_0x11f839(0x195)]=_0x11f839(0x191),_0x5495a9[_0x11f839(0x1a2)]='help';const _0x2014b2=_0x5495a9;return _0x5e8346['usage'](HELP_HEADER_MESSAGE[_0x11f839(0x18d)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x11f839(0x19c)](_0x2014b2[_0x11f839(0x195)])['demandCommand']()[_0x11f839(0x1a0)]()[_0x11f839(0x18c)]()[_0x11f839(0x19e)](_0x2014b2[_0x11f839(0x1a2)]);},exports[a20_0x3f5245(0x197)]=function(_0x45ce36){};
@@ -1 +1 @@
1
- const a21_0x41bab7=a21_0x11bf;(function(_0x65d533,_0x83d8e1){const _0x4aa81d=a21_0x11bf,_0x3e0bb4=_0x65d533();while(!![]){try{const _0x338b1a=-parseInt(_0x4aa81d(0x1c5))/0x1*(parseInt(_0x4aa81d(0x1bb))/0x2)+parseInt(_0x4aa81d(0x1bd))/0x3+-parseInt(_0x4aa81d(0x1d4))/0x4+-parseInt(_0x4aa81d(0x1a8))/0x5+-parseInt(_0x4aa81d(0x194))/0x6+parseInt(_0x4aa81d(0x1a6))/0x7+-parseInt(_0x4aa81d(0x1e2))/0x8*(-parseInt(_0x4aa81d(0x1be))/0x9);if(_0x338b1a===_0x83d8e1)break;else _0x3e0bb4['push'](_0x3e0bb4['shift']());}catch(_0x356853){_0x3e0bb4['push'](_0x3e0bb4['shift']());}}}(a21_0x1bab,0x701c6));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x41bab7(0x1d3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x41bab7(0x198)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x41bab7(0x1aa)),webSocketUtils=require(a21_0x41bab7(0x1c9)),{createK8sClient}=require(a21_0x41bab7(0x1b0)),{getCloudProviderObject}=require(a21_0x41bab7(0x18f));function a21_0x11bf(_0x3d97fb,_0x5e16e8){const _0x1babe3=a21_0x1bab();return a21_0x11bf=function(_0x11bffd,_0x1d6712){_0x11bffd=_0x11bffd-0x18e;let _0x492b55=_0x1babe3[_0x11bffd];return _0x492b55;},a21_0x11bf(_0x3d97fb,_0x5e16e8);}exports[a21_0x41bab7(0x1b2)]=a21_0x41bab7(0x1b4),exports[a21_0x41bab7(0x1da)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x41bab7(0x1cb)]=function(_0x479f3a){const _0xfee708=a21_0x41bab7,_0x178895={};_0x178895[_0xfee708(0x1d2)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x178895[_0xfee708(0x195)]=_0xfee708(0x1a2),_0x178895[_0xfee708(0x1d6)]=_0xfee708(0x1ad),_0x178895['ctWfe']=_0xfee708(0x1d5),_0x178895[_0xfee708(0x1ab)]=_0xfee708(0x1a1);const _0x2a3450=_0x178895,_0x29dff7={};_0x29dff7['description']=_0x2a3450['UoOvE'],_0x29dff7[_0xfee708(0x1e3)]=_0x2a3450[_0xfee708(0x195)];const _0x48d577={};_0x48d577['description']=_0x2a3450[_0xfee708(0x1d6)],_0x48d577[_0xfee708(0x1e3)]=_0x2a3450[_0xfee708(0x1c2)],_0x48d577[_0xfee708(0x1bc)]=![];const _0xb3bafb={};return _0xb3bafb['grid-id']=_0x29dff7,_0xb3bafb[_0xfee708(0x19c)]=_0x48d577,_0x479f3a[_0xfee708(0x1a5)](HELP_HEADER_MESSAGE[_0xfee708(0x1a3)])[_0xfee708(0x1ba)](HELP_FOOTER_MESSAGE)[_0xfee708(0x1cc)](_0xb3bafb)[_0xfee708(0x1a1)](_0x2a3450[_0xfee708(0x1ab)])[_0xfee708(0x193)];},exports[a21_0x41bab7(0x18e)]=async function(_0x29e189){const _0x430873=a21_0x41bab7,_0x40d23={'QHoOR':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','UHdaI':function(_0x58baf4){return _0x58baf4();},'felEo':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ltLjx':function(_0x471f62,_0x1f9333,_0x1da38b,_0x1341de,_0x3e5284,_0x354e3a,_0x21f5b0){return _0x471f62(_0x1f9333,_0x1da38b,_0x1341de,_0x3e5284,_0x354e3a,_0x21f5b0);},'yjrna':_0x430873(0x1b6),'gXDyS':_0x430873(0x1b5),'OaSYE':_0x430873(0x1c7),'JeQsz':'<PasswordPlaceholder>','Pxsbu':'Adding\x20Websocket\x20listeners','Mzipi':function(_0x435c02,_0x1c97cd,_0x25751e,_0x428c39){return _0x435c02(_0x1c97cd,_0x25751e,_0x428c39);},'ETZzK':function(_0x3972d1,_0x4408a9,_0x1776f4,_0x293570,_0x24e16b,_0x504bc1,_0x1470d5){return _0x3972d1(_0x4408a9,_0x1776f4,_0x293570,_0x24e16b,_0x504bc1,_0x1470d5);},'XHeYI':function(_0x291a7a,_0x24d5eb,_0x333e51){return _0x291a7a(_0x24d5eb,_0x333e51);},'sGycM':function(_0x1e5676,_0x139954,_0x51b27b){return _0x1e5676(_0x139954,_0x51b27b);},'ZcMcX':'Grid\x20stoppped.','xVtcn':function(_0x279e2b,_0x179676){return _0x279e2b===_0x179676;},'xJhHg':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','vguHX':_0x430873(0x1d0),'OkRZh':function(_0x4ac684,_0x480f8c){return _0x4ac684===_0x480f8c;},'OuPrp':function(_0x3830f6,_0x54434c,_0x96dbb5,_0x7d071c,_0x3cf29d,_0xe44c4f,_0x5a1b2a){return _0x3830f6(_0x54434c,_0x96dbb5,_0x7d071c,_0x3cf29d,_0xe44c4f,_0x5a1b2a);},'PWSPT':_0x430873(0x1df),'FBFCW':function(_0x32ad7e,_0x550e36,_0xdc62fb,_0x920c15,_0x2efbb1,_0x36558b,_0x2937c9){return _0x32ad7e(_0x550e36,_0xdc62fb,_0x920c15,_0x2efbb1,_0x36558b,_0x2937c9);},'NkVEF':'server-error'};let _0x1c7707;try{!_0x29e189[_0x430873(0x1c6)]&&(logger['error'](_0x40d23[_0x430873(0x1c8)]),process[_0x430873(0x1db)](0x1));!fs['existsSync'](_0x40d23[_0x430873(0x1a0)](getCredentialsPath))&&(logger['error'](_0x40d23[_0x430873(0x19b)]),await _0x40d23[_0x430873(0x191)](sendInstrumentationEvent,_0x29e189,_0x40d23['yjrna'],messageTypes[_0x430873(0x1c4)],_0x40d23[_0x430873(0x1d8)],null,_0x29e189),process['exit'](0x1));logger[_0x430873(0x1ac)]('Stopping\x20grid\x20'+_0x29e189[_0x430873(0x1c6)]),await _0x40d23[_0x430873(0x191)](sendInstrumentationEvent,_0x29e189,_0x40d23[_0x430873(0x197)],messageTypes[_0x430873(0x19f)],null,null,_0x29e189);const _0x3f8cdb=JSON[_0x430873(0x1e4)](fs['readFileSync'](_0x40d23[_0x430873(0x1a0)](getCredentialsPath)));global_registry['bstackUsername']=_0x3f8cdb[_0x430873(0x19d)][_0x430873(0x1dd)],global_registry[_0x430873(0x19a)]=_0x3f8cdb[_0x430873(0x19d)][_0x430873(0x1b1)];const _0x10173a=WS_ENDPOINT[_0x430873(0x1de)](_0x40d23[_0x430873(0x1d7)],_0x3f8cdb['Browserstack']['username'])[_0x430873(0x1de)](_0x40d23[_0x430873(0x1c0)],_0x3f8cdb['Browserstack'][_0x430873(0x1b1)]),_0x49910a={};_0x49910a[_0x430873(0x190)]=ws,_0x49910a[_0x430873(0x1a4)]=0x36ee80,_0x1c7707=new ReconnectingWebSocket(_0x10173a,[],_0x49910a),logger[_0x430873(0x1b8)](_0x40d23[_0x430873(0x1d1)]),webSocketUtils[_0x430873(0x1ca)](_0x1c7707,_0x29e189[_0x430873(0x1a9)],_0x29e189[_0x430873(0x1b1)]);const [_0x5a0f4d,_0x1ce350]=await _0x40d23['Mzipi'](getGridDetails,_0x3f8cdb[_0x430873(0x19d)]['username'],_0x3f8cdb['Browserstack'][_0x430873(0x1b1)],_0x29e189['gridId']);if(_0x1ce350){const _0x2ceed3=_0x1ce350[_0x430873(0x1ac)];global_registry['cloudProvider']=_0x2ceed3['cloudProvider'],global_registry[_0x430873(0x1b9)]=_0x2ceed3['region'],global_registry[_0x430873(0x199)]=_0x2ceed3[_0x430873(0x199)];const _0x141407=await _0x40d23[_0x430873(0x1c3)](getCloudProviderObject,_0x2ceed3[_0x430873(0x1cd)],_0x2ceed3[_0x430873(0x199)],_0x2ceed3[_0x430873(0x1a7)],_0x1c7707,webSocketUtils,_0x29e189),[_0x1c6a30,_0x5c597e,_0x268f71,_0x2bef42,_0x388b29,_0x5d68ab]=await _0x40d23[_0x430873(0x1dc)](createK8sClient,_0x141407,_0x29e189['skipTlsCertVerify']);await _0x40d23['sGycM'](scaleDownHubDeployment,_0x5c597e,_0x2ceed3['name']),logger[_0x430873(0x1ac)](_0x40d23[_0x430873(0x1af)]),process[_0x430873(0x1db)](0x0);}_0x40d23[_0x430873(0x196)](_0x5a0f4d['statusCode'],0x191)&&(logger[_0x430873(0x1b3)](_0x40d23[_0x430873(0x1e1)]),await _0x40d23[_0x430873(0x191)](sendInstrumentationEvent,_0x29e189,_0x40d23[_0x430873(0x197)],messageTypes[_0x430873(0x1c4)],_0x40d23[_0x430873(0x1c1)],null,_0x29e189),process[_0x430873(0x1db)](0x1)),_0x40d23['OkRZh'](_0x5a0f4d[_0x430873(0x1e0)],0x190)&&(logger[_0x430873(0x1b3)](JSON[_0x430873(0x1e4)](_0x5a0f4d['body'])[_0x430873(0x1d9)]),await _0x40d23[_0x430873(0x1cf)](sendInstrumentationEvent,_0x29e189,_0x40d23[_0x430873(0x197)],messageTypes[_0x430873(0x1c4)],_0x40d23[_0x430873(0x19e)],null,_0x29e189),process['exit'](0x1)),logger['error'](_0x430873(0x1ce)+JSON[_0x430873(0x192)](_0x5a0f4d)),await _0x40d23[_0x430873(0x1ae)](sendInstrumentationEvent,_0x29e189,_0x40d23[_0x430873(0x197)],messageTypes['ERROR'],_0x40d23[_0x430873(0x1b7)],_0x5a0f4d,_0x29e189),process['exit'](0x1);}catch(_0x392273){const _0x30b915=_0x430873(0x1bf)+_0x392273+'\x20\x0a'+JSON[_0x430873(0x192)](_0x392273['stack'])+'\x20';logger[_0x430873(0x1b3)](_0x30b915),process['exit'](0x1);}};function a21_0x1bab(){const _0x99f47=['connectionTimeout','usage','3131492BKHbnn','name','3566750IzoXkP','user','../../utils/instrumentationUtils','sWKYP','info','Skip\x20insecure\x20cert\x20verification.','FBFCW','ZcMcX','../../utils/createk8sClient','password','command','error','grid','init-not-called','stop-grid-called','NkVEF','debug','clusterRegion','epilogue','6776mKCmZu','default','2623317ZFlvUs','12325518bSXWiQ','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','JeQsz','vguHX','ctWfe','ETZzK','ERROR','199EUGTBY','gridId','<UsernamePlaceholder>','QHoOR','../../utils/webSocketUtils','addListeners','builder','options','cloudProvider','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','OuPrp','unauthorised','Pxsbu','UoOvE','reconnecting-websocket','1650432KsjbeQ','boolean','CuzFM','OaSYE','gXDyS','message','desc','exit','XHeYI','username','replace','invalid-grid-id','statusCode','xJhHg','8QAkkHd','type','parse','handler','../../cloudproviders/utils','WebSocket','ltLjx','stringify','argv','2591526rrdgci','Gwchb','xVtcn','yjrna','../../utils/utilityMethods','clusterName','bstackAccesskey','felEo','skip-tls-cert-verify','Browserstack','PWSPT','INFO','UHdaI','help','string','stop'];a21_0x1bab=function(){return _0x99f47;};return a21_0x1bab();}
1
+ function a21_0xd8c1(_0x5d9834,_0x37f342){const _0x587d91=a21_0x587d();return a21_0xd8c1=function(_0xd8c12,_0x8137de){_0xd8c12=_0xd8c12-0x19f;let _0x11c31e=_0x587d91[_0xd8c12];return _0x11c31e;},a21_0xd8c1(_0x5d9834,_0x37f342);}const a21_0x385bb2=a21_0xd8c1;function a21_0x587d(){const _0x1fd76e=['stop-grid-called','replace','exit','bstackUsername','boolean','cAFTw','8440370rkUYck','cloudProvider','<UsernamePlaceholder>','command','Browserstack','tcyoj','WebSocket','nouUc','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','IHeDH','usage','password','GMAye','name','grid','region','debug','2386616omHLMw','description','wNlzi','username','skip-tls-cert-verify','stringify','jJnfH','lIvkl','../../utils/createk8sClient','WLZig','connectionTimeout','../../cloudproviders/utils','bstackAccesskey','server-error','existsSync','clusterRegion','info','stop','uaOvW','Stopping\x20grid\x20','parse','reconnecting-websocket','body','44704owhOHo','ACQLN','type','gridId','SqzDD','help','JSHuO','XxmIC','mhXoU','rrQDJ','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/utilityMethods','skipTlsCertVerify','luzjD','DWjIH','clusterName','3663336MYDnIw','NTYps','yTmXK','../../config/constants','98ecjbQZ','init-not-called','bpnzs','user','addListeners','Stop\x20a\x20running\x20Automation\x20grid.','options','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','4491402GwKVsA','builder','Adding\x20Websocket\x20listeners','ERROR','Gkdjd','grid-id','argv','statusCode','../../utils/gridComponents','paDhq','1610166RjhOOk','2101572HifMBb','INFO','stack','Grid\x20stoppped.','string','error','../../utils/instrumentationUtils'];a21_0x587d=function(){return _0x1fd76e;};return a21_0x587d();}(function(_0x1e794c,_0x51f0a3){const _0x32c951=a21_0xd8c1,_0x430bfd=_0x1e794c();while(!![]){try{const _0xdbd7c1=-parseInt(_0x32c951(0x1c9))/0x1+parseInt(_0x32c951(0x1a2))/0x2+parseInt(_0x32c951(0x1b3))/0x3+-parseInt(_0x32c951(0x1ca))/0x4+-parseInt(_0x32c951(0x1d7))/0x5+-parseInt(_0x32c951(0x1bf))/0x6+-parseInt(_0x32c951(0x1b7))/0x7*(-parseInt(_0x32c951(0x1e8))/0x8);if(_0xdbd7c1===_0x51f0a3)break;else _0x430bfd['push'](_0x430bfd['shift']());}catch(_0x48ad12){_0x430bfd['push'](_0x430bfd['shift']());}}}(a21_0x587d,0xcefe2));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x385bb2(0x1a0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x385bb2(0x1b6)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x385bb2(0x1ae)),{scaleDownHubDeployment}=require(a21_0x385bb2(0x1c7)),{sendInstrumentationEvent}=require(a21_0x385bb2(0x1d0)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x385bb2(0x1f0)),{getCloudProviderObject}=require(a21_0x385bb2(0x1f3));exports[a21_0x385bb2(0x1da)]=a21_0x385bb2(0x1e5),exports[a21_0x385bb2(0x1ac)]=a21_0x385bb2(0x1bc),exports[a21_0x385bb2(0x1c0)]=function(_0x423737){const _0x4a26e4=a21_0x385bb2,_0x3d439c={};_0x3d439c['YOCwg']=_0x4a26e4(0x1be),_0x3d439c[_0x4a26e4(0x1ea)]=_0x4a26e4(0x1ce),_0x3d439c[_0x4a26e4(0x1ef)]='Skip\x20insecure\x20cert\x20verification.',_0x3d439c[_0x4a26e4(0x1dc)]=_0x4a26e4(0x1d5),_0x3d439c['VXhGH']=_0x4a26e4(0x1a7);const _0x1f5606=_0x3d439c,_0x4b0fab={};_0x4b0fab[_0x4a26e4(0x1e9)]=_0x1f5606['YOCwg'],_0x4b0fab[_0x4a26e4(0x1a4)]=_0x1f5606[_0x4a26e4(0x1ea)];const _0x10b2c5={};_0x10b2c5[_0x4a26e4(0x1e9)]=_0x1f5606['lIvkl'],_0x10b2c5[_0x4a26e4(0x1a4)]=_0x1f5606['tcyoj'],_0x10b2c5['default']=![];const _0x451a50={};return _0x451a50[_0x4a26e4(0x1c4)]=_0x4b0fab,_0x451a50[_0x4a26e4(0x1ec)]=_0x10b2c5,_0x423737[_0x4a26e4(0x1e1)](HELP_HEADER_MESSAGE[_0x4a26e4(0x1f9)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4a26e4(0x1bd)](_0x451a50)[_0x4a26e4(0x1a7)](_0x1f5606['VXhGH'])[_0x4a26e4(0x1c5)];},exports['handler']=async function(_0x23e8d9){const _0x4591cd=a21_0x385bb2,_0x36af18={'ACQLN':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','luzjD':function(_0x1cd07e){return _0x1cd07e();},'Gkdjd':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rrQDJ':function(_0x3db76b,_0x484d16,_0x3812bf,_0x35f615,_0x149f8a,_0x2e3599,_0x5054b5){return _0x3db76b(_0x484d16,_0x3812bf,_0x35f615,_0x149f8a,_0x2e3599,_0x5054b5);},'nouUc':_0x4591cd(0x1d1),'mhXoU':_0x4591cd(0x1b8),'GMAye':function(_0xefab9c,_0x1aeb65,_0x565c07,_0x2acb2f,_0x5ba61d,_0x2f864c,_0x52b4a0){return _0xefab9c(_0x1aeb65,_0x565c07,_0x2acb2f,_0x5ba61d,_0x2f864c,_0x52b4a0);},'NTYps':_0x4591cd(0x1d9),'IHeDH':'<PasswordPlaceholder>','WLZig':_0x4591cd(0x1c1),'XxmIC':function(_0x110166,_0x503c7d,_0x5db8d2,_0x2bde1e){return _0x110166(_0x503c7d,_0x5db8d2,_0x2bde1e);},'bpnzs':function(_0x2c8226,_0x4f2101,_0x4eca06,_0x3b959e,_0x27d1de,_0x45860b,_0x2ad874){return _0x2c8226(_0x4f2101,_0x4eca06,_0x3b959e,_0x27d1de,_0x45860b,_0x2ad874);},'NGqDq':function(_0x5bbc3d,_0x200d56,_0xe9ae6c){return _0x5bbc3d(_0x200d56,_0xe9ae6c);},'YsntJ':_0x4591cd(0x1cd),'cAFTw':function(_0x5a661e,_0x46d240){return _0x5a661e===_0x46d240;},'paDhq':_0x4591cd(0x1ad),'uaOvW':'unauthorised','jJnfH':function(_0x5c9d83,_0x14cc16){return _0x5c9d83===_0x14cc16;},'SqzDD':function(_0x156d8d,_0x402d84,_0xe6b3c8,_0x5f20d6,_0x18a932,_0x21e483,_0x155235){return _0x156d8d(_0x402d84,_0xe6b3c8,_0x5f20d6,_0x18a932,_0x21e483,_0x155235);},'yTmXK':'invalid-grid-id','JSHuO':function(_0x3483cc,_0x545aec,_0x4aece2,_0x3a43c5,_0x3f49e1,_0x33c32f,_0x10ba8c){return _0x3483cc(_0x545aec,_0x4aece2,_0x3a43c5,_0x3f49e1,_0x33c32f,_0x10ba8c);},'DWjIH':_0x4591cd(0x1f5)};let _0x22b1fe;try{!_0x23e8d9[_0x4591cd(0x1a5)]&&(logger[_0x4591cd(0x1cf)](_0x36af18[_0x4591cd(0x1a3)]),process[_0x4591cd(0x1d3)](0x1));!fs[_0x4591cd(0x1f6)](_0x36af18[_0x4591cd(0x1b0)](getCredentialsPath))&&(logger['error'](_0x36af18[_0x4591cd(0x1c3)]),await _0x36af18[_0x4591cd(0x1ab)](sendInstrumentationEvent,_0x23e8d9,_0x36af18['nouUc'],messageTypes[_0x4591cd(0x1c2)],_0x36af18[_0x4591cd(0x1aa)],null,_0x23e8d9),process[_0x4591cd(0x1d3)](0x1));logger['info'](_0x4591cd(0x1fb)+_0x23e8d9[_0x4591cd(0x1a5)]),await _0x36af18[_0x4591cd(0x1e3)](sendInstrumentationEvent,_0x23e8d9,_0x36af18[_0x4591cd(0x1de)],messageTypes[_0x4591cd(0x1cb)],null,null,_0x23e8d9);const _0x5d4ca2=JSON[_0x4591cd(0x19f)](fs['readFileSync'](_0x36af18[_0x4591cd(0x1b0)](getCredentialsPath)));global_registry[_0x4591cd(0x1d4)]=_0x5d4ca2[_0x4591cd(0x1db)]['username'],global_registry[_0x4591cd(0x1f4)]=_0x5d4ca2['Browserstack']['password'];const _0x90b1b=WS_ENDPOINT[_0x4591cd(0x1d2)](_0x36af18[_0x4591cd(0x1b4)],_0x5d4ca2[_0x4591cd(0x1db)]['username'])[_0x4591cd(0x1d2)](_0x36af18[_0x4591cd(0x1e0)],_0x5d4ca2[_0x4591cd(0x1db)][_0x4591cd(0x1e2)]),_0x4a0180={};_0x4a0180[_0x4591cd(0x1dd)]=ws,_0x4a0180[_0x4591cd(0x1f2)]=0x36ee80,_0x22b1fe=new ReconnectingWebSocket(_0x90b1b,[],_0x4a0180),logger[_0x4591cd(0x1e7)](_0x36af18[_0x4591cd(0x1f1)]),webSocketUtils[_0x4591cd(0x1bb)](_0x22b1fe,_0x23e8d9[_0x4591cd(0x1ba)],_0x23e8d9[_0x4591cd(0x1e2)]);const [_0xa91bc7,_0x2c9e0b]=await _0x36af18[_0x4591cd(0x1a9)](getGridDetails,_0x5d4ca2[_0x4591cd(0x1db)][_0x4591cd(0x1eb)],_0x5d4ca2['Browserstack']['password'],_0x23e8d9['gridId']);if(_0x2c9e0b){const _0x25ad08=_0x2c9e0b['info'];global_registry[_0x4591cd(0x1d8)]=_0x25ad08[_0x4591cd(0x1d8)],global_registry[_0x4591cd(0x1f7)]=_0x25ad08[_0x4591cd(0x1e6)],global_registry[_0x4591cd(0x1b2)]=_0x25ad08['clusterName'];const _0x1839ba=await _0x36af18[_0x4591cd(0x1b9)](getCloudProviderObject,_0x25ad08[_0x4591cd(0x1d8)],_0x25ad08[_0x4591cd(0x1b2)],_0x25ad08[_0x4591cd(0x1e4)],_0x22b1fe,webSocketUtils,_0x23e8d9),[_0x3f26dc,_0x73d579,_0x14bbcb,_0x11adb5,_0x2799a4,_0x459025]=await _0x36af18['NGqDq'](createK8sClient,_0x1839ba,_0x23e8d9[_0x4591cd(0x1af)]);await _0x36af18['NGqDq'](scaleDownHubDeployment,_0x73d579,_0x25ad08['name']),logger[_0x4591cd(0x1f8)](_0x36af18['YsntJ']),process[_0x4591cd(0x1d3)](0x0);}_0x36af18[_0x4591cd(0x1d6)](_0xa91bc7[_0x4591cd(0x1c6)],0x191)&&(logger[_0x4591cd(0x1cf)](_0x36af18[_0x4591cd(0x1c8)]),await _0x36af18['rrQDJ'](sendInstrumentationEvent,_0x23e8d9,_0x36af18[_0x4591cd(0x1de)],messageTypes[_0x4591cd(0x1c2)],_0x36af18[_0x4591cd(0x1fa)],null,_0x23e8d9),process[_0x4591cd(0x1d3)](0x1)),_0x36af18[_0x4591cd(0x1ee)](_0xa91bc7[_0x4591cd(0x1c6)],0x190)&&(logger['error'](JSON[_0x4591cd(0x19f)](_0xa91bc7[_0x4591cd(0x1a1)])['message']),await _0x36af18[_0x4591cd(0x1a6)](sendInstrumentationEvent,_0x23e8d9,_0x36af18[_0x4591cd(0x1de)],messageTypes['ERROR'],_0x36af18[_0x4591cd(0x1b5)],null,_0x23e8d9),process[_0x4591cd(0x1d3)](0x1)),logger[_0x4591cd(0x1cf)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4591cd(0x1ed)](_0xa91bc7)),await _0x36af18[_0x4591cd(0x1a8)](sendInstrumentationEvent,_0x23e8d9,_0x36af18[_0x4591cd(0x1de)],messageTypes['ERROR'],_0x36af18[_0x4591cd(0x1b1)],_0xa91bc7,_0x23e8d9),process['exit'](0x1);}catch(_0x2ac51b){const _0x23d835=_0x4591cd(0x1df)+_0x2ac51b+'\x20\x0a'+JSON[_0x4591cd(0x1ed)](_0x2ac51b[_0x4591cd(0x1cc)])+'\x20';logger[_0x4591cd(0x1cf)](_0x23d835),process[_0x4591cd(0x1d3)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x2fcaee=a22_0x1d63;(function(_0x3cca32,_0x348568){const _0x110219=a22_0x1d63,_0x5b4a8a=_0x3cca32();while(!![]){try{const _0x8b25f=-parseInt(_0x110219(0x148))/0x1*(parseInt(_0x110219(0x132))/0x2)+parseInt(_0x110219(0x15d))/0x3+-parseInt(_0x110219(0xfd))/0x4+-parseInt(_0x110219(0x135))/0x5+-parseInt(_0x110219(0x163))/0x6*(parseInt(_0x110219(0x141))/0x7)+-parseInt(_0x110219(0x151))/0x8*(parseInt(_0x110219(0x107))/0x9)+parseInt(_0x110219(0x115))/0xa;if(_0x8b25f===_0x348568)break;else _0x5b4a8a['push'](_0x5b4a8a['shift']());}catch(_0x395898){_0x5b4a8a['push'](_0x5b4a8a['shift']());}}}(a22_0x370e,0x7f2f2),require(a22_0x2fcaee(0x10e))['config']());let gridURL=a22_0x2fcaee(0xff),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x2fcaee(0x12d);const _env=(process[a22_0x2fcaee(0x122)]['BROWSERSTACK_ENV']||a22_0x2fcaee(0x146))[a22_0x2fcaee(0x117)]();if(_env===a22_0x2fcaee(0x145)||_env===a22_0x2fcaee(0x106))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x2fcaee(0x103);else(_env===a22_0x2fcaee(0x130)||_env===a22_0x2fcaee(0xfb))&&(gridURL=a22_0x2fcaee(0x15a),bsApiUrl=a22_0x2fcaee(0x156),agApiUrl=a22_0x2fcaee(0x140));exports[a22_0x2fcaee(0x108)]=process[a22_0x2fcaee(0x122)][a22_0x2fcaee(0x108)]||gridURL,exports[a22_0x2fcaee(0x127)]=process[a22_0x2fcaee(0x122)][a22_0x2fcaee(0x127)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x2fcaee(0x122)][a22_0x2fcaee(0x150)]||agApiUrl,exports[a22_0x2fcaee(0x10f)]=a22_0x2fcaee(0x123)+this[a22_0x2fcaee(0x150)]+a22_0x2fcaee(0x13b),exports['CP_CONFIG_FILE']='credentials',exports[a22_0x2fcaee(0x11b)]=a22_0x2fcaee(0x14d),exports[a22_0x2fcaee(0x10d)]=a22_0x2fcaee(0x125),exports[a22_0x2fcaee(0x114)]=a22_0x2fcaee(0x102),exports[a22_0x2fcaee(0xfc)]=a22_0x2fcaee(0x121),exports[a22_0x2fcaee(0x133)]=a22_0x2fcaee(0x128),exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']=a22_0x2fcaee(0x15b),exports['AZURE']='azure',exports[a22_0x2fcaee(0x142)]=a22_0x2fcaee(0x112),exports[a22_0x2fcaee(0x11c)]=[this[a22_0x2fcaee(0x114)],this[a22_0x2fcaee(0x15e)],this['GCP']];const a22_0xcafef8={};a22_0xcafef8[a22_0x2fcaee(0x116)]=a22_0x2fcaee(0x155),a22_0xcafef8[a22_0x2fcaee(0x157)]=a22_0x2fcaee(0x152);const a22_0x1e7233={};a22_0x1e7233[a22_0x2fcaee(0x116)]='browserstack:service',a22_0x1e7233[a22_0x2fcaee(0x157)]='BrowserStack-Automate-TurboScale';function a22_0x1d63(_0x3ccd75,_0xa8262b){const _0x370eb4=a22_0x370e();return a22_0x1d63=function(_0x1d6385,_0x1f6a98){_0x1d6385=_0x1d6385-0xfa;let _0x12a47c=_0x370eb4[_0x1d6385];return _0x12a47c;},a22_0x1d63(_0x3ccd75,_0xa8262b);}const common_hst_tags_list=[a22_0xcafef8,a22_0x1e7233];if(process[a22_0x2fcaee(0x122)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x2fcaee(0x122)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x2fcaee(0x153)](',');parsedTags['forEach'](_0x404f1f=>{const _0x8c6609=a22_0x2fcaee,_0x42265a=_0x404f1f[_0x8c6609(0x153)](':'),_0x324fe3={};_0x324fe3[_0x8c6609(0x116)]=_0x42265a[0x0],_0x324fe3['Value']=_0x42265a[0x1],common_hst_tags_list[_0x8c6609(0x14a)](_0x324fe3);});}function a22_0x370e(){const _0x12b657=['BSTACK-ATS-CLUSTER-AUTOSCALER','global_registry','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','LINK_MESSAGE','grid-api.browserstack.com','LOG','CLI_RUN_FINISHED','preprod','delete','70978lahUDV','CLUSTER_AUTOSCALER_STACK_NAME','REDACTED','2042460SlGxyS','connect','UNKNOWN','root','grid-profile','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','SUPPORTED_CLOUD_PROVIDERS','warning','GRID_URL','CLI_ARGS_REGEX','grid-api-preprod.bsstag.com','7266847RsNmLm','GCP','unknown','CLI_RUN_STARTED','staging','prod','WARNING','23kWbfwU','error','push','BrowserStack-Automate-TurboScale','pre_check','BrowserStackIAMUser','TRIAL_GRID_URL','CLUSTER','AG_API_URL','88GxsPck','BrowserStack','split','cliRunStarted','browserstack:managedBy','api-preprod.bsstag.com','Value','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','log','grid-preprod.bsstag.com','browserstack-turboscale-grid','SUCCESS','2972625NHJaBf','AZURE','CLOUD_PROVIDER','[REDACTED]','list','gridUrl','6FwMDjI','success','HST_CLUSTER_TAGS','DEFAULT_CLUSTER_DETAILS','pre-prod','CLUSTER_DEP_STACK_NAME','447052imhNsH','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid.browserstack.com','messageTypes','HELP_FOOTER_MESSAGE','aws','grid-api-devhst.bsstag.com','WS_EVENTS','browserstack:service','stag','608112FpbMTn','DASHBOARD_ENDPOINT','init','REGION','HELP_HEADER_MESSAGE','grid','DEFAULT_GRID_NAME','dotenv','WS_ENDPOINT','start','stop','gcp','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','AWS','26479420IElNdw','Key','toLowerCase','gridProfile','RAW_ARGS_REGEX','us-east-1','IAM_USER_NAME','ALL_SUPPORTED_CLOUD_PROVIDERS','ERROR','high-scale-grid-cluster','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','BSTACK-ATS-CLUSTER','env','wss://','RESOURCES','high-scale-grid','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','BS_API_URL'];a22_0x370e=function(){return _0x12b657;};return a22_0x370e();}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x522ff9={};a22_0x522ff9[a22_0x2fcaee(0x155)]='BrowserStack',a22_0x522ff9[a22_0x2fcaee(0x105)]=a22_0x2fcaee(0x14b),exports[a22_0x2fcaee(0x165)]=a22_0x522ff9,exports[a22_0x2fcaee(0x13c)]=[this[a22_0x2fcaee(0x114)]];const a22_0x2f5714={};a22_0x2f5714[a22_0x2fcaee(0x12e)]=a22_0x2fcaee(0x159),a22_0x2f5714[a22_0x2fcaee(0x124)]='resourceInfo',a22_0x2f5714[a22_0x2fcaee(0x13e)]=a22_0x2fcaee(0x162),a22_0x2f5714[a22_0x2fcaee(0x144)]=a22_0x2fcaee(0x154),a22_0x2f5714[a22_0x2fcaee(0x12f)]='cliRunFinished',exports[a22_0x2fcaee(0x104)]=a22_0x2f5714,exports[a22_0x2fcaee(0x129)]={},exports[a22_0x2fcaee(0x12c)]=a22_0x2fcaee(0x126);const a22_0x4feed3={};a22_0x4feed3[a22_0x2fcaee(0x138)]=a22_0x2fcaee(0x12a)+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x109)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x2fcaee(0x12c)],a22_0x4feed3['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x4feed3['create']='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x161)]={},a22_0x4feed3[a22_0x2fcaee(0x131)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4feed3[a22_0x2fcaee(0x136)]=a22_0x2fcaee(0x11f)+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x110)]=a22_0x2fcaee(0xfe)+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x111)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x14c)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4feed3[a22_0x2fcaee(0x161)][a22_0x2fcaee(0x138)]=a22_0x2fcaee(0x120)+this['LINK_MESSAGE'],a22_0x4feed3[a22_0x2fcaee(0x161)][a22_0x2fcaee(0x10c)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x2fcaee(0x12c)],a22_0x4feed3[a22_0x2fcaee(0x161)][a22_0x2fcaee(0x118)]=a22_0x2fcaee(0x158)+this['LINK_MESSAGE'],exports[a22_0x2fcaee(0x10b)]=a22_0x4feed3,exports[a22_0x2fcaee(0x101)]=a22_0x2fcaee(0x12b);const a22_0x5e9ed8={};a22_0x5e9ed8[a22_0x2fcaee(0x15c)]=a22_0x2fcaee(0x164),a22_0x5e9ed8[a22_0x2fcaee(0x11d)]=a22_0x2fcaee(0x149),a22_0x5e9ed8['INFO']='info',a22_0x5e9ed8[a22_0x2fcaee(0x147)]=a22_0x2fcaee(0x13d),a22_0x5e9ed8[a22_0x2fcaee(0x137)]=a22_0x2fcaee(0x143),a22_0x5e9ed8['NULL']=null,exports[a22_0x2fcaee(0x100)]=a22_0x5e9ed8,exports[a22_0x2fcaee(0x13f)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2fcaee(0x119)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2fcaee(0x134)]=a22_0x2fcaee(0x160);const a22_0x20ebce={};a22_0x20ebce[a22_0x2fcaee(0x139)]=a22_0x2fcaee(0x13a);const a22_0x3f0fa9={};a22_0x3f0fa9['pre-check']=a22_0x20ebce,exports['MessageDescription']=a22_0x3f0fa9,exports[a22_0x2fcaee(0x14e)]=a22_0x2fcaee(0x113);const a22_0x13f510={};a22_0x13f510[a22_0x2fcaee(0x14f)]=a22_0x2fcaee(0x11e),a22_0x13f510[a22_0x2fcaee(0x15f)]=a22_0x2fcaee(0x102),a22_0x13f510[a22_0x2fcaee(0x10a)]=a22_0x2fcaee(0x11a),exports[a22_0x2fcaee(0xfa)]=a22_0x13f510;
1
+ const a22_0x1baa2c=a22_0x12af;(function(_0x12481e,_0x1bf70c){const _0x45ec5b=a22_0x12af,_0x15f727=_0x12481e();while(!![]){try{const _0x2714b6=-parseInt(_0x45ec5b(0x158))/0x1+-parseInt(_0x45ec5b(0x16b))/0x2+parseInt(_0x45ec5b(0x13f))/0x3+-parseInt(_0x45ec5b(0x17e))/0x4*(parseInt(_0x45ec5b(0x156))/0x5)+-parseInt(_0x45ec5b(0x185))/0x6*(parseInt(_0x45ec5b(0x168))/0x7)+parseInt(_0x45ec5b(0x194))/0x8*(-parseInt(_0x45ec5b(0x183))/0x9)+-parseInt(_0x45ec5b(0x17b))/0xa*(-parseInt(_0x45ec5b(0x17a))/0xb);if(_0x2714b6===_0x1bf70c)break;else _0x15f727['push'](_0x15f727['shift']());}catch(_0x531c24){_0x15f727['push'](_0x15f727['shift']());}}}(a22_0x3aec,0x5d60a),require(a22_0x1baa2c(0x19a))[a22_0x1baa2c(0x1ab)]());let gridURL=a22_0x1baa2c(0x154),bsApiUrl=a22_0x1baa2c(0x155),agApiUrl='grid-api.browserstack.com';const _env=(process['env'][a22_0x1baa2c(0x1a5)]||a22_0x1baa2c(0x192))[a22_0x1baa2c(0x18c)]();if(_env===a22_0x1baa2c(0x179)||_env===a22_0x1baa2c(0x145))gridURL=a22_0x1baa2c(0x172),bsApiUrl=a22_0x1baa2c(0x150),agApiUrl=a22_0x1baa2c(0x16d);else(_env===a22_0x1baa2c(0x14f)||_env===a22_0x1baa2c(0x151))&&(gridURL=a22_0x1baa2c(0x149),bsApiUrl=a22_0x1baa2c(0x159),agApiUrl=a22_0x1baa2c(0x161));exports[a22_0x1baa2c(0x188)]=process[a22_0x1baa2c(0x182)][a22_0x1baa2c(0x188)]||gridURL,exports[a22_0x1baa2c(0x144)]=process[a22_0x1baa2c(0x182)][a22_0x1baa2c(0x144)]||bsApiUrl,exports[a22_0x1baa2c(0x13b)]=process[a22_0x1baa2c(0x182)][a22_0x1baa2c(0x13b)]||agApiUrl,exports[a22_0x1baa2c(0x1a8)]=a22_0x1baa2c(0x196)+this[a22_0x1baa2c(0x13b)]+a22_0x1baa2c(0x152),exports['CP_CONFIG_FILE']=a22_0x1baa2c(0x174),exports[a22_0x1baa2c(0x16f)]=a22_0x1baa2c(0x14c),exports[a22_0x1baa2c(0x15f)]=a22_0x1baa2c(0x153),exports[a22_0x1baa2c(0x146)]='aws',exports[a22_0x1baa2c(0x187)]=a22_0x1baa2c(0x184),exports[a22_0x1baa2c(0x17d)]=a22_0x1baa2c(0x142),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x1baa2c(0x193),exports[a22_0x1baa2c(0x166)]='browserstack-turboscale-grid',exports[a22_0x1baa2c(0x17f)]=a22_0x1baa2c(0x140),exports['GCP']=a22_0x1baa2c(0x18b),exports[a22_0x1baa2c(0x147)]=[this[a22_0x1baa2c(0x146)],this[a22_0x1baa2c(0x17f)],this[a22_0x1baa2c(0x170)]];const a22_0x150aec={};a22_0x150aec[a22_0x1baa2c(0x19d)]=a22_0x1baa2c(0x163),a22_0x150aec[a22_0x1baa2c(0x14e)]=a22_0x1baa2c(0x14b);const a22_0x2edb42={};function a22_0x3aec(){const _0x219a74=['grid.browserstack.com','api.browserstack.com','2248515KLPgTQ','REGION','205612IFKJtQ','api-preprod.bsstag.com','LOG','DEFAULT_CLUSTER_DETAILS','gridUrl','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','UNKNOWN','DEFAULT_GRID_NAME','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','grid-api-preprod.bsstag.com','list','browserstack:managedBy','log','CLI_RUN_FINISHED','TURBOSCALE_DEPLOYMENT','messageTypes','8911CJedwG','INFO','ERROR','1016370kwIZnQ','pre-check','grid-api-devhst.bsstag.com','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','IAM_USER_NAME','GCP','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid-devhst.bsstag.com','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','credentials','HELP_FOOTER_MESSAGE','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','CLOUD_PROVIDER','staging','22AIRuVN','11203420kvedVt','root','CLUSTER_AUTOSCALER_STACK_NAME','4Qluvae','AZURE','gridProfile','BrowserStack-Automate-TurboScale','env','3841857DoGtKn','BSTACK-ATS-CLUSTER','3174QCYKlV','REDACTED','CLUSTER_DEP_STACK_NAME','DASHBOARD_ENDPOINT','SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','gcp','toLowerCase','LINK_MESSAGE','COMMON_HST_TAGS','split','WARNING','configure','prod','BSTACK-ATS-CLUSTER-HUB-HA','8gKJkHj','grid-profile','wss://','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','pre_check','forEach','dotenv','cliRunStarted','info','Key','WS_EVENTS','cliRunFinished','create','success','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','browserstack:service','connect','BROWSERSTACK_ENV','CLUSTER','RESOURCES','WS_ENDPOINT','[REDACTED]','GRID_URL','config','AG_API_URL','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','warning','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','1216740adZqrA','azure','error','BSTACK-ATS-CLUSTER-AUTOSCALER','TRIAL_GRID_URL','BS_API_URL','stag','AWS','ALL_SUPPORTED_CLOUD_PROVIDERS','HELP_HEADER_MESSAGE','grid-preprod.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','BrowserStack','BrowserStackIAMUser','high-scale-grid-cluster','Value','preprod','api-devhst.bsstag.com','pre-prod','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','high-scale-grid'];a22_0x3aec=function(){return _0x219a74;};return a22_0x3aec();}a22_0x2edb42[a22_0x1baa2c(0x19d)]=a22_0x1baa2c(0x1a3),a22_0x2edb42['Value']=a22_0x1baa2c(0x181);const common_hst_tags_list=[a22_0x150aec,a22_0x2edb42];if(process['env'][a22_0x1baa2c(0x176)]){const parsedTags=process[a22_0x1baa2c(0x182)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x1baa2c(0x18f)](',');parsedTags[a22_0x1baa2c(0x199)](_0x23291a=>{const _0x2e1132=a22_0x1baa2c,_0x58af72=_0x23291a[_0x2e1132(0x18f)](':'),_0x21ba3b={};_0x21ba3b[_0x2e1132(0x19d)]=_0x58af72[0x0],_0x21ba3b[_0x2e1132(0x14e)]=_0x58af72[0x1],common_hst_tags_list['push'](_0x21ba3b);});}exports[a22_0x1baa2c(0x18e)]=common_hst_tags_list;const a22_0x21c048={};a22_0x21c048['browserstack:managedBy']=a22_0x1baa2c(0x14b),a22_0x21c048[a22_0x1baa2c(0x1a3)]=a22_0x1baa2c(0x181),exports['HST_CLUSTER_TAGS']=a22_0x21c048,exports[a22_0x1baa2c(0x189)]=[this[a22_0x1baa2c(0x146)]];const a22_0x55c5cf={};function a22_0x12af(_0x46f124,_0x13fb49){const _0x3aec9d=a22_0x3aec();return a22_0x12af=function(_0x12af92,_0x293d1b){_0x12af92=_0x12af92-0x13b;let _0x3799c7=_0x3aec9d[_0x12af92];return _0x3799c7;},a22_0x12af(_0x46f124,_0x13fb49);}a22_0x55c5cf[a22_0x1baa2c(0x15a)]=a22_0x1baa2c(0x164),a22_0x55c5cf[a22_0x1baa2c(0x1a7)]='resourceInfo',a22_0x55c5cf[a22_0x1baa2c(0x1aa)]=a22_0x1baa2c(0x15c),a22_0x55c5cf['CLI_RUN_STARTED']=a22_0x1baa2c(0x19b),a22_0x55c5cf[a22_0x1baa2c(0x165)]=a22_0x1baa2c(0x19f),exports[a22_0x1baa2c(0x19e)]=a22_0x55c5cf,exports['global_registry']={},exports[a22_0x1baa2c(0x18d)]=a22_0x1baa2c(0x1a2);const a22_0x13327e={};a22_0x13327e[a22_0x1baa2c(0x17c)]=a22_0x1baa2c(0x173)+this['LINK_MESSAGE'],a22_0x13327e['init']=a22_0x1baa2c(0x197)+this[a22_0x1baa2c(0x18d)],a22_0x13327e[a22_0x1baa2c(0x191)]=a22_0x1baa2c(0x13e)+this['LINK_MESSAGE'],a22_0x13327e[a22_0x1baa2c(0x1a0)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x1baa2c(0x18d)],a22_0x13327e[a22_0x1baa2c(0x162)]={},a22_0x13327e['delete']=a22_0x1baa2c(0x18a)+this[a22_0x1baa2c(0x18d)],a22_0x13327e[a22_0x1baa2c(0x1a4)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x1baa2c(0x18d)],a22_0x13327e['start']=a22_0x1baa2c(0x13c)+this[a22_0x1baa2c(0x18d)],a22_0x13327e['stop']=a22_0x1baa2c(0x160)+this[a22_0x1baa2c(0x18d)],a22_0x13327e[a22_0x1baa2c(0x198)]=a22_0x1baa2c(0x15d)+this[a22_0x1baa2c(0x18d)],a22_0x13327e[a22_0x1baa2c(0x162)][a22_0x1baa2c(0x17c)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x1baa2c(0x18d)],a22_0x13327e[a22_0x1baa2c(0x162)]['grid']=a22_0x1baa2c(0x14a)+this[a22_0x1baa2c(0x18d)],a22_0x13327e[a22_0x1baa2c(0x162)][a22_0x1baa2c(0x180)]=a22_0x1baa2c(0x177)+this[a22_0x1baa2c(0x18d)],exports[a22_0x1baa2c(0x148)]=a22_0x13327e,exports[a22_0x1baa2c(0x175)]=a22_0x1baa2c(0x171);const a22_0x11d401={};a22_0x11d401['SUCCESS']=a22_0x1baa2c(0x1a1),a22_0x11d401[a22_0x1baa2c(0x16a)]=a22_0x1baa2c(0x141),a22_0x11d401[a22_0x1baa2c(0x169)]=a22_0x1baa2c(0x19c),a22_0x11d401[a22_0x1baa2c(0x190)]=a22_0x1baa2c(0x13d),a22_0x11d401[a22_0x1baa2c(0x15e)]='unknown',a22_0x11d401['NULL']=null,exports[a22_0x1baa2c(0x167)]=a22_0x11d401,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1baa2c(0x186)]=a22_0x1baa2c(0x1a9);const a22_0x2a8a43={};a22_0x2a8a43[a22_0x1baa2c(0x195)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x18bb0a={};a22_0x18bb0a[a22_0x1baa2c(0x16c)]=a22_0x2a8a43,exports['MessageDescription']=a22_0x18bb0a,exports[a22_0x1baa2c(0x143)]=a22_0x1baa2c(0x16e);const a22_0x369cfe={};a22_0x369cfe[a22_0x1baa2c(0x1a6)]=a22_0x1baa2c(0x14d),a22_0x369cfe[a22_0x1baa2c(0x178)]='aws',a22_0x369cfe[a22_0x1baa2c(0x157)]='us-east-1',exports[a22_0x1baa2c(0x15b)]=a22_0x369cfe;
@@ -1 +1 @@
1
- const a23_0x2bd3ba=a23_0x52cc;function a23_0x52cc(_0xf68e00,_0x2a2bdf){const _0x8d4dee=a23_0x8d4d();return a23_0x52cc=function(_0x52cc94,_0x96a84e){_0x52cc94=_0x52cc94-0x115;let _0x19e8d4=_0x8d4dee[_0x52cc94];return _0x19e8d4;},a23_0x52cc(_0xf68e00,_0x2a2bdf);}(function(_0x55010a,_0x5b40b3){const _0x94d412=a23_0x52cc,_0x2b2570=_0x55010a();while(!![]){try{const _0x1df366=parseInt(_0x94d412(0x128))/0x1*(-parseInt(_0x94d412(0x137))/0x2)+-parseInt(_0x94d412(0x115))/0x3*(-parseInt(_0x94d412(0x122))/0x4)+parseInt(_0x94d412(0x12a))/0x5*(-parseInt(_0x94d412(0x129))/0x6)+parseInt(_0x94d412(0x131))/0x7*(parseInt(_0x94d412(0x11e))/0x8)+-parseInt(_0x94d412(0x117))/0x9+-parseInt(_0x94d412(0x124))/0xa+parseInt(_0x94d412(0x126))/0xb*(parseInt(_0x94d412(0x135))/0xc);if(_0x1df366===_0x5b40b3)break;else _0x2b2570['push'](_0x2b2570['shift']());}catch(_0x3c2a6e){_0x2b2570['push'](_0x2b2570['shift']());}}}(a23_0x8d4d,0x3bc7e));const winston=require('winston'),fs=require('fs'),path=require(a23_0x2bd3ba(0x11f)),logDir=a23_0x2bd3ba(0x12d);!fs[a23_0x2bd3ba(0x118)](logDir)&&fs[a23_0x2bd3ba(0x11c)](logDir);const a23_0x2862d0={};function a23_0x8d4d(){const _0x56cf0d=['mkdirSync','Console','376FjyDcr','path','console.info','usage.log','76eNHeXg','File','3089050rurxAh','timestamp','11KMQKzu','level','151LezqvC','2749902gNwwCC','5SvaXoS','combine','format','log','transports','events.log','colorize','10507iDFxtA','fileLogger','join','message','10631388vuGEnI','createLogger','864XaCqkA','33687yHPmnK','logger','832779IVcSjc','existsSync','printf','\x20-\x20','debug'];a23_0x8d4d=function(){return _0x56cf0d;};return a23_0x8d4d();}a23_0x2862d0[a23_0x2bd3ba(0x12c)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x219d1a={};a23_0x219d1a[a23_0x2bd3ba(0x127)]=!![];const a23_0x4b9ec6={};a23_0x4b9ec6['name']=a23_0x2bd3ba(0x120),exports[a23_0x2bd3ba(0x116)]=new winston[(a23_0x2bd3ba(0x136))]({'format':winston[a23_0x2bd3ba(0x12c)][a23_0x2bd3ba(0x12b)](winston[a23_0x2bd3ba(0x12c)][a23_0x2bd3ba(0x125)](a23_0x2862d0),winston['format'][a23_0x2bd3ba(0x130)](a23_0x219d1a),winston[a23_0x2bd3ba(0x12c)][a23_0x2bd3ba(0x119)](_0x5d64d2=>_0x5d64d2[a23_0x2bd3ba(0x125)]+a23_0x2bd3ba(0x11a)+_0x5d64d2[a23_0x2bd3ba(0x127)]+':\x20'+_0x5d64d2[a23_0x2bd3ba(0x134)])),'transports':[new winston[(a23_0x2bd3ba(0x12e))][(a23_0x2bd3ba(0x11d))](a23_0x4b9ec6),new winston[(a23_0x2bd3ba(0x12e))][(a23_0x2bd3ba(0x123))]({'filename':path[a23_0x2bd3ba(0x133)](logDir,a23_0x2bd3ba(0x12f)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x2bd3ba(0x123))]({'filename':path['join'](logDir,a23_0x2bd3ba(0x121)),'level':a23_0x2bd3ba(0x11b)})]};exports[a23_0x2bd3ba(0x132)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x5dd2e0=a23_0x215f;(function(_0x4f98b1,_0x525b90){const _0x21c8b8=a23_0x215f,_0x29e1ad=_0x4f98b1();while(!![]){try{const _0x21557d=-parseInt(_0x21c8b8(0x1f4))/0x1*(-parseInt(_0x21c8b8(0x1fa))/0x2)+-parseInt(_0x21c8b8(0x1e4))/0x3+parseInt(_0x21c8b8(0x1fb))/0x4+-parseInt(_0x21c8b8(0x1f5))/0x5*(-parseInt(_0x21c8b8(0x1e8))/0x6)+-parseInt(_0x21c8b8(0x1ed))/0x7*(-parseInt(_0x21c8b8(0x201))/0x8)+parseInt(_0x21c8b8(0x1ec))/0x9*(-parseInt(_0x21c8b8(0x1f2))/0xa)+parseInt(_0x21c8b8(0x200))/0xb*(parseInt(_0x21c8b8(0x1ff))/0xc);if(_0x21557d===_0x525b90)break;else _0x29e1ad['push'](_0x29e1ad['shift']());}catch(_0x50cd15){_0x29e1ad['push'](_0x29e1ad['shift']());}}}(a23_0x55c3,0x26567));function a23_0x215f(_0x5b8128,_0x2ab3da){const _0x55c380=a23_0x55c3();return a23_0x215f=function(_0x215f91,_0x226930){_0x215f91=_0x215f91-0x1e3;let _0x47e9f5=_0x55c380[_0x215f91];return _0x47e9f5;},a23_0x215f(_0x5b8128,_0x2ab3da);}const winston=require('winston'),fs=require('fs'),path=require(a23_0x5dd2e0(0x1f9)),logDir=a23_0x5dd2e0(0x1f8);!fs[a23_0x5dd2e0(0x1e7)](logDir)&&fs[a23_0x5dd2e0(0x1ea)](logDir);const a23_0x18cbfa={};a23_0x18cbfa[a23_0x5dd2e0(0x1f3)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x25c7a6={};a23_0x25c7a6[a23_0x5dd2e0(0x1f7)]=!![];const a23_0x550d69={};a23_0x550d69['name']='console.info',exports['logger']=new winston[(a23_0x5dd2e0(0x1e5))]({'format':winston[a23_0x5dd2e0(0x1f3)]['combine'](winston['format'][a23_0x5dd2e0(0x1fc)](a23_0x18cbfa),winston[a23_0x5dd2e0(0x1f3)][a23_0x5dd2e0(0x1ef)](a23_0x25c7a6),winston['format'][a23_0x5dd2e0(0x1f1)](_0x249066=>_0x249066['timestamp']+'\x20-\x20'+_0x249066[a23_0x5dd2e0(0x1f7)]+':\x20'+_0x249066[a23_0x5dd2e0(0x1f0)])),'transports':[new winston[(a23_0x5dd2e0(0x1e3))][(a23_0x5dd2e0(0x1eb))](a23_0x550d69),new winston['transports'][(a23_0x5dd2e0(0x1e6))]({'filename':path[a23_0x5dd2e0(0x1fd)](logDir,a23_0x5dd2e0(0x1e9)),'level':a23_0x5dd2e0(0x1fe)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x5dd2e0(0x1e3))][(a23_0x5dd2e0(0x1e6))]({'filename':path[a23_0x5dd2e0(0x1fd)](logDir,a23_0x5dd2e0(0x1f6)),'level':a23_0x5dd2e0(0x1fe)})]};function a23_0x55c3(){const _0x580162=['transports','769962GSdivY','createLogger','File','existsSync','942996NazOMK','events.log','mkdirSync','Console','2065770GszFIo','7jowTxs','fileLogger','colorize','message','printf','10wdrDYf','format','94015xAvOPt','5Hxhhhl','usage.log','level','log','path','2KKcTRv','595952MQYLAm','timestamp','join','debug','2100YiczHd','4059lCOtQN','1427768GvOfGE'];a23_0x55c3=function(){return _0x580162;};return a23_0x55c3();}exports[a23_0x5dd2e0(0x1ee)]=new winston[(a23_0x5dd2e0(0x1e5))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x512bec=a24_0x1bbc;function a24_0x3c73(){const _0x533e47=['epilogue','957780IFidqM','1375437ThHVzu','16ighrhh','fvnBT','349914zUOPtj','demandCommand','168766VWikvd','1173966pYrrBA','exports','994265MdpmHd','env','ofwcp','usage','1112064HmTVud','help','root'];a24_0x3c73=function(){return _0x533e47;};return a24_0x3c73();}(function(_0xb60c13,_0x33dbcf){const _0x306626=a24_0x1bbc,_0x46e845=_0xb60c13();while(!![]){try{const _0x2beac5=parseInt(_0x306626(0xb5))/0x1+-parseInt(_0x306626(0xb3))/0x2+-parseInt(_0x306626(0xbc))/0x3+parseInt(_0x306626(0xaf))/0x4+parseInt(_0x306626(0xb8))/0x5+-parseInt(_0x306626(0xb6))/0x6+parseInt(_0x306626(0xb0))/0x7*(parseInt(_0x306626(0xb1))/0x8);if(_0x2beac5===_0x33dbcf)break;else _0x46e845['push'](_0x46e845['shift']());}catch(_0x4323af){_0x46e845['push'](_0x46e845['shift']());}}}(a24_0x3c73,0x3f2b4));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x512bec(0xb9)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function a24_0x1bbc(_0x217127,_0x410d48){const _0x3c73f6=a24_0x3c73();return a24_0x1bbc=function(_0x1bbc41,_0x3fdb82){_0x1bbc41=_0x1bbc41-0xaf;let _0x39294f=_0x3c73f6[_0x1bbc41];return _0x39294f;},a24_0x1bbc(_0x217127,_0x410d48);}function run(_0x3dd3ae){const _0x2f6ca9=a24_0x512bec,_0x5e3764={};_0x5e3764[_0x2f6ca9(0xba)]='commands',_0x5e3764[_0x2f6ca9(0xb2)]=_0x2f6ca9(0xbd);const _0x359aa1=_0x5e3764;_0x3dd3ae[_0x2f6ca9(0xbb)](HELP_HEADER_MESSAGE[_0x2f6ca9(0xbe)])['commandDir'](_0x359aa1[_0x2f6ca9(0xba)])[_0x2f6ca9(0xb4)]()[_0x2f6ca9(0xbd)](_0x359aa1[_0x2f6ca9(0xb2)])[_0x2f6ca9(0xbf)](HELP_FOOTER_MESSAGE);}module[a24_0x512bec(0xb7)]=run;
2
+ 'use strict';const a24_0x57334d=a24_0xc57a;(function(_0x547aa1,_0x2ee841){const _0x4c838e=a24_0xc57a,_0x2e05f6=_0x547aa1();while(!![]){try{const _0x50b762=-parseInt(_0x4c838e(0x1af))/0x1+-parseInt(_0x4c838e(0x1b5))/0x2*(-parseInt(_0x4c838e(0x1ac))/0x3)+-parseInt(_0x4c838e(0x1b4))/0x4+-parseInt(_0x4c838e(0x1a8))/0x5*(parseInt(_0x4c838e(0x1a9))/0x6)+parseInt(_0x4c838e(0x1ae))/0x7+-parseInt(_0x4c838e(0x1b3))/0x8*(-parseInt(_0x4c838e(0x1b6))/0x9)+parseInt(_0x4c838e(0x1b2))/0xa;if(_0x50b762===_0x2ee841)break;else _0x2e05f6['push'](_0x2e05f6['shift']());}catch(_0x518723){_0x2e05f6['push'](_0x2e05f6['shift']());}}}(a24_0x544e,0x6cd88));function a24_0xc57a(_0x784e3e,_0x298b02){const _0x544ed7=a24_0x544e();return a24_0xc57a=function(_0xc57a23,_0x31e634){_0xc57a23=_0xc57a23-0x1a8;let _0x40b5d5=_0x544ed7[_0xc57a23];return _0x40b5d5;},a24_0xc57a(_0x784e3e,_0x298b02);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process['env'][a24_0x57334d(0x1aa)]=0x1;function a24_0x544e(){const _0x3355a2=['3FOpPIy','root','1952090YQXVlW','601592ZGlHWe','demandCommand','WIyrE','20067990pBsqYO','8JlIROV','3116936uzWRkr','378024QvqmQt','951147atwEVi','aovTM','commandDir','help','5CvIwWa','4522236AVvaLq','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports'];a24_0x544e=function(){return _0x3355a2;};return a24_0x544e();}function run(_0x3b82ac){const _0x3124da=a24_0x57334d,_0x407df6={};_0x407df6[_0x3124da(0x1b1)]='commands',_0x407df6['aovTM']=_0x3124da(0x1b9);const _0x43d5d5=_0x407df6;_0x3b82ac['usage'](HELP_HEADER_MESSAGE[_0x3124da(0x1ad)])[_0x3124da(0x1b8)](_0x43d5d5['WIyrE'])[_0x3124da(0x1b0)]()[_0x3124da(0x1b9)](_0x43d5d5[_0x3124da(0x1b7)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x57334d(0x1ab)]=run;