browserstack-node-sdk 1.54.2 → 1.55.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
+ const a15_0x2e257e=a15_0x31e1;(function(_0x274a06,_0x2c955f){const _0x548427=a15_0x31e1,_0x4eb570=_0x274a06();while(!![]){try{const _0x1aad2d=parseInt(_0x548427(0x149))/0x1+-parseInt(_0x548427(0x17d))/0x2*(parseInt(_0x548427(0x176))/0x3)+parseInt(_0x548427(0x186))/0x4*(-parseInt(_0x548427(0x18f))/0x5)+parseInt(_0x548427(0x199))/0x6*(parseInt(_0x548427(0x196))/0x7)+-parseInt(_0x548427(0x171))/0x8+parseInt(_0x548427(0x168))/0x9*(-parseInt(_0x548427(0x190))/0xa)+-parseInt(_0x548427(0x154))/0xb*(-parseInt(_0x548427(0x169))/0xc);if(_0x1aad2d===_0x2c955f)break;else _0x4eb570['push'](_0x4eb570['shift']());}catch(_0x1b4617){_0x4eb570['push'](_0x4eb570['shift']());}}}(a15_0x4815,0x4ad0f));function a15_0x4815(){const _0x2c61fe=['statusCode','queued','Failed\x20to\x20list\x20resources!\x20Error:\x20','178676idZxQP','XcBWM','clusterName','list','unauthorised','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/instrumentationUtils','IsAYi','epilogue','20vogipw','230DlfbEG','init-not-called','OyDPE','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','argv','7zxqofb','vswXT','bstackAccesskey','1774662FoSJAd','allGrids','BbRFq','boolean','error','description','exit','ZAcpo','549995QyDZTd','VSwPU','username','wOwLx','../../utils/utilityMethods','KBWpM','DytJm','running','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','ERROR','list-grids-called','5659093HAXaMY','name','got','existsSync','grid-name','UopGv','options','password','WSRXe','GET','all-grids','builder','command','/packages/cli/get-all-grids','XyyBn','grid','dSQyO','parse','status','UcYdX','120033YScxbR','12AVDwei','stack','\x0aFound\x20the\x20following\x20grids:\x0a','log','Browserstack','/packages/cli/get-grids','bstackUsername','desc','1760112RaZaxb','https://','INFO','table','cluster-name','1045041nIDzHs','govYy','yXter','MYhAy','dqlWk','XPQQp','CjFnA','2yiFTZr','grid-id','FMwiq','push','server-error','usage'];a15_0x4815=function(){return _0x2c61fe;};return a15_0x4815();}function a15_0x31e1(_0x7e0d14,_0x39154c){const _0x48153a=a15_0x4815();return a15_0x31e1=function(_0x31e1a3,_0x40795a){_0x31e1a3=_0x31e1a3-0x149;let _0x3a11a8=_0x48153a[_0x31e1a3];return _0x3a11a8;},a15_0x31e1(_0x7e0d14,_0x39154c);}const fs=require('fs'),got=require(a15_0x2e257e(0x156)),{table}=require(a15_0x2e257e(0x174)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x2e257e(0x14d)),{sendInstrumentationEvent}=require(a15_0x2e257e(0x18c));exports[a15_0x2e257e(0x160)]='grids',exports[a15_0x2e257e(0x170)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x2e257e(0x15f)]=function(_0x13a190){const _0x37b908=a15_0x2e257e,_0x36362c={};_0x36362c[_0x37b908(0x1a0)]=_0x37b908(0x151),_0x36362c['Ksclk']=_0x37b908(0x19c),_0x36362c[_0x37b908(0x15c)]='help';const _0x16f772=_0x36362c,_0x480f8f={};_0x480f8f[_0x37b908(0x19e)]=_0x16f772[_0x37b908(0x1a0)],_0x480f8f['type']=_0x16f772['Ksclk'];const _0x16696e={};return _0x16696e[_0x37b908(0x15e)]=_0x480f8f,_0x13a190[_0x37b908(0x182)](HELP_HEADER_MESSAGE[_0x37b908(0x189)][_0x37b908(0x163)])[_0x37b908(0x18e)](HELP_FOOTER_MESSAGE)[_0x37b908(0x15a)](_0x16696e)['help'](_0x16f772[_0x37b908(0x15c)])[_0x37b908(0x195)];},exports['handler']=async function(_0xa6cdeb){const _0x383fab=a15_0x2e257e,_0x3e923a={'UopGv':function(_0x5eed83){return _0x5eed83();},'gyGVs':function(_0x219261){return _0x219261();},'govYy':_0x383fab(0x18b),'dqlWk':function(_0x383772,_0x41bca3,_0xd4036c,_0xe5d127,_0x43d5a1,_0x15e3f3,_0x2aa922){return _0x383772(_0x41bca3,_0xd4036c,_0xe5d127,_0x43d5a1,_0x15e3f3,_0x2aa922);},'vswXT':_0x383fab(0x153),'hkdRR':_0x383fab(0x191),'dSQyO':function(_0x1b2431){return _0x1b2431();},'VSwPU':_0x383fab(0x15d),'XcBWM':function(_0x49ceb5,_0x2afe91,_0x23a0fb){return _0x49ceb5(_0x2afe91,_0x23a0fb);},'KBWpM':function(_0xe3b1e4,_0x1626aa,_0x38b3d2){return _0xe3b1e4(_0x1626aa,_0x38b3d2);},'IsAYi':function(_0x386dfb,_0x2a045d){return _0x386dfb!==_0x2a045d;},'sudcI':function(_0xfdb318,_0x9b1c2a){return _0xfdb318===_0x9b1c2a;},'UcYdX':_0x383fab(0x16b),'XwslM':_0x383fab(0x17e),'QMDuj':_0x383fab(0x158),'XyyBn':_0x383fab(0x166),'FMwiq':_0x383fab(0x150),'kNsrw':_0x383fab(0x184),'OyDPE':_0x383fab(0x175),'DytJm':function(_0x657e6,_0x56b277){return _0x657e6(_0x56b277);},'BbRFq':function(_0x4797e7,_0x364f28){return _0x4797e7===_0x364f28;},'MYhAy':_0x383fab(0x194),'wOwLx':function(_0x3d439e,_0x50b8c0,_0xf5ea4b,_0x21c63c,_0x233a17,_0x112012,_0x1fbf2d){return _0x3d439e(_0x50b8c0,_0xf5ea4b,_0x21c63c,_0x233a17,_0x112012,_0x1fbf2d);},'sQkyG':_0x383fab(0x18a),'XPQQp':function(_0xaaf433,_0x46bf19,_0x110390,_0x25e1c0,_0x10c148,_0x3c125c,_0x167a72){return _0xaaf433(_0x46bf19,_0x110390,_0x25e1c0,_0x10c148,_0x3c125c,_0x167a72);},'yXter':_0x383fab(0x181),'CjFnA':'unknown-error'};try{global_registry['requestId']=_0x3e923a[_0x383fab(0x159)](uuidv4);!fs[_0x383fab(0x157)](_0x3e923a['gyGVs'](getCredentialsPath))&&(console[_0x383fab(0x19d)](_0x3e923a[_0x383fab(0x177)]),await _0x3e923a[_0x383fab(0x17a)](sendInstrumentationEvent,_0xa6cdeb,_0x3e923a[_0x383fab(0x197)],messageTypes['ERROR'],_0x3e923a['hkdRR'],null,_0xa6cdeb),process['exit'](0x1));const _0x5670c2=JSON[_0x383fab(0x165)](fs[_0x383fab(0x193)](_0x3e923a[_0x383fab(0x164)](getCredentialsPath)));let _0x64fc52=_0x383fab(0x172)+AG_API_URL+_0x383fab(0x16e);_0xa6cdeb[_0x383fab(0x19a)]&&(_0x64fc52=_0x383fab(0x172)+AG_API_URL+_0x383fab(0x161));const _0x27f40e={'method':_0x3e923a[_0x383fab(0x14a)],'headers':_0x3e923a[_0x383fab(0x187)](getAuthHeader,_0x5670c2[_0x383fab(0x16d)][_0x383fab(0x14b)],_0x5670c2[_0x383fab(0x16d)]['password']),'throwHttpErrors':![]};global_registry[_0x383fab(0x16f)]=_0x5670c2[_0x383fab(0x16d)][_0x383fab(0x14b)],global_registry[_0x383fab(0x198)]=_0x5670c2[_0x383fab(0x16d)][_0x383fab(0x15b)],_0x3e923a[_0x383fab(0x17a)](sendInstrumentationEvent,_0xa6cdeb,_0x3e923a[_0x383fab(0x197)],messageTypes[_0x383fab(0x173)],null,null,_0xa6cdeb);const _0x8ec42d=await _0x3e923a[_0x383fab(0x14e)](got,_0x64fc52,_0x27f40e);if(_0x3e923a[_0x383fab(0x18d)](_0x8ec42d,null)&&_0x3e923a[_0x383fab(0x18d)](_0x8ec42d,undefined)&&_0x3e923a['sudcI'](_0x8ec42d[_0x383fab(0x183)],0xc8)){const _0xeadc75=JSON[_0x383fab(0x165)](_0x8ec42d['body']);console[_0x383fab(0x16c)](_0x3e923a[_0x383fab(0x167)]);const _0x149f90=[];_0x149f90['push']([_0x3e923a['XwslM'],_0x3e923a['QMDuj'],_0x3e923a[_0x383fab(0x162)],_0x3e923a[_0x383fab(0x17f)],_0x3e923a['kNsrw'],_0x3e923a[_0x383fab(0x192)]]),_0xeadc75['forEach'](_0x217db2=>{const _0x528e03=_0x383fab;_0x149f90[_0x528e03(0x180)]([_0x217db2['id'],_0x217db2[_0x528e03(0x155)],_0x217db2[_0x528e03(0x166)],_0x217db2[_0x528e03(0x150)],_0x217db2[_0x528e03(0x184)],_0x217db2[_0x528e03(0x188)]]);}),console[_0x383fab(0x16c)](_0x3e923a[_0x383fab(0x14f)](table,_0x149f90)),process[_0x383fab(0x19f)](0x0);}_0x3e923a[_0x383fab(0x19b)](_0x8ec42d['statusCode'],0x191)&&(console[_0x383fab(0x19d)](_0x3e923a[_0x383fab(0x179)]),await _0x3e923a[_0x383fab(0x14c)](sendInstrumentationEvent,_0xa6cdeb,_0x3e923a['vswXT'],messageTypes[_0x383fab(0x152)],_0x3e923a['sQkyG'],null,_0xa6cdeb),process[_0x383fab(0x19f)](0x1)),console[_0x383fab(0x19d)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x8ec42d)),await _0x3e923a[_0x383fab(0x17b)](sendInstrumentationEvent,_0xa6cdeb,_0x3e923a[_0x383fab(0x197)],messageTypes[_0x383fab(0x152)],_0x3e923a[_0x383fab(0x178)],_0x8ec42d,_0xa6cdeb),process[_0x383fab(0x19f)](0x1);}catch(_0x2784c9){console['error'](_0x383fab(0x185)+_0x2784c9[_0x383fab(0x16a)]),await _0x3e923a['wOwLx'](sendInstrumentationEvent,_0xa6cdeb,_0x3e923a[_0x383fab(0x197)],messageTypes[_0x383fab(0x152)],_0x3e923a[_0x383fab(0x17c)],_0x2784c9,_0xa6cdeb),process[_0x383fab(0x19f)](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
+ function a16_0x1ce0(){const _0x46ec31=['4JCPPnW','desc','1088352YjWybD','958rkrTPs','357fCFVsd','643075OANGhh','39333txcSHd','demandCommand','recommendCommands','30kwnkTc','../config/constants','command','664EUoILI','1605543ohZcAH','usage','6435110oRIAaX','19127251Xoalpb','pre_check','help','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','ehkOn','CBbNE','precheck_commands','epilogue'];a16_0x1ce0=function(){return _0x46ec31;};return a16_0x1ce0();}function a16_0x49a6(_0x1b4278,_0xab047f){const _0x1ce09b=a16_0x1ce0();return a16_0x49a6=function(_0x49a673,_0x13d9f5){_0x49a673=_0x49a673-0x184;let _0x4c95d1=_0x1ce09b[_0x49a673];return _0x4c95d1;},a16_0x49a6(_0x1b4278,_0xab047f);}const a16_0x364aa4=a16_0x49a6;(function(_0x3fb2c0,_0x2e1eb6){const _0x1ab1c8=a16_0x49a6,_0x1eab7f=_0x3fb2c0();while(!![]){try{const _0x42452e=parseInt(_0x1ab1c8(0x18d))/0x1*(-parseInt(_0x1ab1c8(0x18c))/0x2)+parseInt(_0x1ab1c8(0x196))/0x3*(-parseInt(_0x1ab1c8(0x189))/0x4)+-parseInt(_0x1ab1c8(0x18e))/0x5*(parseInt(_0x1ab1c8(0x192))/0x6)+-parseInt(_0x1ab1c8(0x18f))/0x7*(-parseInt(_0x1ab1c8(0x195))/0x8)+parseInt(_0x1ab1c8(0x18b))/0x9+-parseInt(_0x1ab1c8(0x198))/0xa+parseInt(_0x1ab1c8(0x199))/0xb;if(_0x42452e===_0x2e1eb6)break;else _0x1eab7f['push'](_0x1eab7f['shift']());}catch(_0x575e7e){_0x1eab7f['push'](_0x1eab7f['shift']());}}}(a16_0x1ce0,0x51640));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x364aa4(0x193));exports[a16_0x364aa4(0x194)]='pre-check',exports[a16_0x364aa4(0x18a)]=a16_0x364aa4(0x184),exports['builder']=function(_0x3ef625){const _0x2800a5=a16_0x364aa4,_0x31f2ed={};_0x31f2ed[_0x2800a5(0x186)]=_0x2800a5(0x187),_0x31f2ed['ehkOn']=_0x2800a5(0x19b);const _0x162f7f=_0x31f2ed;return _0x3ef625[_0x2800a5(0x197)](HELP_HEADER_MESSAGE[_0x2800a5(0x19a)])[_0x2800a5(0x188)](HELP_FOOTER_MESSAGE)['commandDir'](_0x162f7f['CBbNE'])[_0x2800a5(0x190)]()[_0x2800a5(0x191)]()['strict']()[_0x2800a5(0x19b)](_0x162f7f[_0x2800a5(0x185)]);},exports['handler']=function(_0x281aef){};
@@ -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_0x2df846=a17_0x400a;function a17_0x400a(_0x3513f4,_0x56e74f){const _0x2fa54a=a17_0x2fa5();return a17_0x400a=function(_0x400aa7,_0x3c4670){_0x400aa7=_0x400aa7-0x1a2;let _0x2f949a=_0x2fa54a[_0x400aa7];return _0x2f949a;},a17_0x400a(_0x3513f4,_0x56e74f);}(function(_0x4705a3,_0x4bca29){const _0x3744f6=a17_0x400a,_0x3c9aee=_0x4705a3();while(!![]){try{const _0x9938e8=parseInt(_0x3744f6(0x299))/0x1+-parseInt(_0x3744f6(0x208))/0x2*(parseInt(_0x3744f6(0x1db))/0x3)+parseInt(_0x3744f6(0x1c5))/0x4*(-parseInt(_0x3744f6(0x1a8))/0x5)+-parseInt(_0x3744f6(0x1c3))/0x6*(parseInt(_0x3744f6(0x258))/0x7)+parseInt(_0x3744f6(0x235))/0x8*(parseInt(_0x3744f6(0x25f))/0x9)+-parseInt(_0x3744f6(0x26a))/0xa*(-parseInt(_0x3744f6(0x221))/0xb)+parseInt(_0x3744f6(0x247))/0xc;if(_0x9938e8===_0x4bca29)break;else _0x3c9aee['push'](_0x3c9aee['shift']());}catch(_0x332b12){_0x3c9aee['push'](_0x3c9aee['shift']());}}}(a17_0x2fa5,0x5f8f1));const fs=require('fs'),ws=require('ws'),got=require(a17_0x2df846(0x27d)),{v4:uuidv4}=require(a17_0x2df846(0x24d)),ReconnectingWebSocket=require(a17_0x2df846(0x1aa)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x2df846(0x1cb)),{logger}=require(a17_0x2df846(0x270)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x2df846(0x233)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x2df846(0x249));exports[a17_0x2df846(0x1c1)]=a17_0x2df846(0x219),exports[a17_0x2df846(0x284)]=a17_0x2df846(0x1da),exports[a17_0x2df846(0x22d)]=function(_0xce9415){const _0x148cb8=a17_0x2df846,_0x2c0972={};_0x2c0972['JiGeg']=_0x148cb8(0x1c9),_0x2c0972[_0x148cb8(0x291)]=_0x148cb8(0x28c),_0x2c0972[_0x148cb8(0x29b)]=_0x148cb8(0x252),_0x2c0972['RekFH']=_0x148cb8(0x1b9),_0x2c0972[_0x148cb8(0x1ae)]=_0x148cb8(0x200),_0x2c0972[_0x148cb8(0x240)]=_0x148cb8(0x29f);const _0xeff68e=_0x2c0972,_0x10611d={};_0x10611d[_0x148cb8(0x248)]=_0xeff68e[_0x148cb8(0x27c)],_0x10611d['type']=_0xeff68e['MhreR'];const _0x2fe3cc={};_0x2fe3cc['description']=_0xeff68e[_0x148cb8(0x29b)],_0x2fe3cc['type']=_0xeff68e[_0x148cb8(0x291)];const _0x577753={};_0x577753['description']=_0xeff68e['RekFH'],_0x577753[_0x148cb8(0x1d8)]=_0xeff68e[_0x148cb8(0x291)];const _0x3e7714={};_0x3e7714[_0x148cb8(0x248)]=_0xeff68e[_0x148cb8(0x1ae)],_0x3e7714['type']=_0xeff68e[_0x148cb8(0x291)];const _0x1c7e5d={};return _0x1c7e5d['cluster-name']=_0x10611d,_0x1c7e5d[_0x148cb8(0x2aa)]=_0x2fe3cc,_0x1c7e5d[_0x148cb8(0x2a4)]=_0x577753,_0x1c7e5d[_0x148cb8(0x1b7)]=_0x3e7714,_0xce9415[_0x148cb8(0x1ba)](HELP_HEADER_MESSAGE['pre_check'])[_0x148cb8(0x286)](HELP_FOOTER_MESSAGE)['options'](_0x1c7e5d)[_0x148cb8(0x29f)](_0xeff68e['xnGAe'])['argv'];};async function inputValidation(_0x1a598d,_0x3dff9d){const _0x17bebc=a17_0x2df846,_0x53b63b={'SoZPY':_0x17bebc(0x205),'Cptnz':_0x17bebc(0x2aa),'VWjNS':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','EVvoj':_0x17bebc(0x28c),'ULeTt':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','usUDL':_0x17bebc(0x1b9),'CprXF':_0x17bebc(0x200),'OJbbr':_0x17bebc(0x29f),'xrqox':_0x17bebc(0x277),'fmcmd':'will\x20be\x20created','WzwRx':_0x17bebc(0x202),'VEiht':'Error\x20Details:\x0a','poaLZ':'N/A','yWjtK':_0x17bebc(0x259),'CykGj':function(_0x8778e0,_0x676311){return _0x8778e0+_0x676311;},'DRdmq':_0x17bebc(0x21c),'fwDUc':_0x17bebc(0x2a5),'aoWtE':function(_0x2bec06,_0x21f490){return _0x2bec06||_0x21f490;},'erPlT':function(_0x53859f,_0x241712){return _0x53859f!==_0x241712;},'DWbiu':_0x17bebc(0x295),'dKMdg':function(_0x34bbcf,_0x187ac3){return _0x34bbcf===_0x187ac3;},'fiSBl':_0x17bebc(0x1ad),'PCUtj':function(_0x1743ae,_0xa389ee){return _0x1743ae===_0xa389ee;},'cAxrr':_0x17bebc(0x217),'xylOd':_0x17bebc(0x1d1),'Hejdg':_0x17bebc(0x20c),'Hmieg':_0x17bebc(0x260),'ffKeA':function(_0x39bef0,_0x35755e){return _0x39bef0===_0x35755e;},'GpDrS':'MwtRY','XLrjA':_0x17bebc(0x1c4),'qJqKW':_0x17bebc(0x2a4),'GtCZd':function(_0x2ac356,_0x598d97){return _0x2ac356>_0x598d97;},'KnIUv':'adqqf','rMFse':function(_0x4bef2e,_0xd865fe,_0x458b88,_0x4e5bed,_0x48acd5,_0x5d548d,_0x1492cf,_0x51ba21){return _0x4bef2e(_0xd865fe,_0x458b88,_0x4e5bed,_0x48acd5,_0x5d548d,_0x1492cf,_0x51ba21);},'avGuQ':_0x17bebc(0x289),'OJcGJ':_0x17bebc(0x218),'Isryd':function(_0xf9a60a,_0x1dcaf3){return _0xf9a60a===_0x1dcaf3;},'pSMjr':'ehDAR','zDFml':_0x17bebc(0x256),'jcgSH':_0x17bebc(0x223),'hLXzZ':function(_0xb36ef1,_0xf5ad8e,_0x187f09,_0x2cf078,_0x217517,_0x3a5c8d,_0x34fb9e,_0xf13452){return _0xb36ef1(_0xf5ad8e,_0x187f09,_0x2cf078,_0x217517,_0x3a5c8d,_0x34fb9e,_0xf13452);},'YTwRj':_0x17bebc(0x1e3),'PnetP':function(_0x13ddfe,_0x1e7dde){return _0x13ddfe===_0x1e7dde;},'qXKfb':_0x17bebc(0x22e),'RMFEE':_0x17bebc(0x1bf),'hvkBu':_0x17bebc(0x1f2),'TGJju':_0x17bebc(0x1d2),'JLHyj':_0x17bebc(0x22a),'AhTtG':function(_0x4a037a,_0x372792,_0x408935){return _0x4a037a(_0x372792,_0x408935);},'OMbUF':function(_0x2061d2,_0x54469a,_0x38e840,_0x5a77c1,_0x2d9f90,_0x1d410a){return _0x2061d2(_0x54469a,_0x38e840,_0x5a77c1,_0x2d9f90,_0x1d410a);},'heIzs':'pre-check','bwJcD':'grid-profile','DdePv':function(_0x4271cc,_0xff78b9){return _0x4271cc===_0xff78b9;},'gmDEn':_0x17bebc(0x1fd),'tFNZc':function(_0xfb30ff,_0x4b734b){return _0xfb30ff(_0x4b734b);},'QzHhY':_0x17bebc(0x1f9),'zNlHF':'EmcKO','YNUbc':_0x17bebc(0x1d9),'pEjwD':function(_0x4ce282,_0x522ca9){return _0x4ce282===_0x522ca9;},'OAVkh':_0x17bebc(0x212),'hOALx':_0x17bebc(0x1fa),'NFiIl':'jXVEb','xXvlw':_0x17bebc(0x25a),'jvAcC':function(_0x8b5e91,_0x2dff11){return _0x8b5e91===_0x2dff11;},'wKHNq':_0x17bebc(0x1a4),'vKmOt':_0x17bebc(0x206),'fjxMC':_0x17bebc(0x1f4),'ejwYu':_0x17bebc(0x269),'Rexqm':function(_0x4a2243,_0x54d74a,_0x44fb62,_0x181120,_0x32dc01,_0x10253f,_0x197b7c,_0x45ad43){return _0x4a2243(_0x54d74a,_0x44fb62,_0x181120,_0x32dc01,_0x10253f,_0x197b7c,_0x45ad43);}};let _0x3e2436;try{if(_0x53b63b['erPlT'](_0x53b63b[_0x17bebc(0x226)],_0x53b63b[_0x17bebc(0x226)]))_0x4a42c7[_0x17bebc(0x29c)]('Cluster\x20`'+_0xfabf37[_0x17bebc(0x262)]+'`\x20already\x20exists');else{if(_0x1a598d[_0x17bebc(0x262)]||_0x1a598d['cloudProvider']||_0x1a598d[_0x17bebc(0x2a4)]){if(_0x53b63b['dKMdg'](_0x53b63b[_0x17bebc(0x21b)],_0x53b63b[_0x17bebc(0x21b)])){const _0x3d1e39=[];!_0x1a598d[_0x17bebc(0x262)]&&(_0x53b63b[_0x17bebc(0x254)](_0x53b63b[_0x17bebc(0x29d)],_0x53b63b[_0x17bebc(0x1d3)])?_0x35d73d[_0x17bebc(0x268)](0x1):_0x3d1e39['push'](_0x53b63b['yWjtK']));;if(!_0x1a598d['cloudProvider']){if(_0x53b63b[_0x17bebc(0x25d)](_0x53b63b[_0x17bebc(0x285)],_0x53b63b[_0x17bebc(0x1ef)]))_0x3d1e39[_0x17bebc(0x23f)](_0x53b63b[_0x17bebc(0x1a3)]);else{const _0x58ae76={};_0x58ae76[_0x17bebc(0x1d8)]=_0x67d652[_0x17bebc(0x264)],_0x58ae76['message']=_0x4c0ca6,_0x1a95b2['sendEventToBackend'](_0x5b357d,_0x58ae76,_0x53b63b[_0x17bebc(0x238)],!![]);}};!_0x1a598d[_0x17bebc(0x2a4)]&&(_0x53b63b[_0x17bebc(0x21f)](_0x53b63b['GpDrS'],_0x53b63b[_0x17bebc(0x2a7)])?_0x320548[_0x17bebc(0x23f)](_0x53b63b['Cptnz']):_0x3d1e39['push'](_0x53b63b[_0x17bebc(0x1f3)]));;if(_0x53b63b[_0x17bebc(0x25c)](_0x3d1e39[_0x17bebc(0x227)],0x0)){if(_0x53b63b['dKMdg'](_0x53b63b[_0x17bebc(0x1bb)],_0x53b63b[_0x17bebc(0x1bb)]))_0x3e2436=_0x17bebc(0x1ac)+_0x3d1e39['join'](',\x20')+_0x17bebc(0x20f),await _0x53b63b[_0x17bebc(0x1d0)](reportToGalactusAndSendToEDS,_0x1a598d,_0x3dff9d,_0x3e2436,messageTypes['ERROR'],_0x53b63b[_0x17bebc(0x288)],_0x53b63b[_0x17bebc(0x20a)],_0x53b63b[_0x17bebc(0x238)]),logger[_0x17bebc(0x205)](_0x3e2436),process[_0x17bebc(0x268)](0x1);else{const _0x56ba32={};_0x56ba32[_0x17bebc(0x248)]=_0x53b63b[_0x17bebc(0x1e6)],_0x56ba32[_0x17bebc(0x1d8)]=_0x53b63b[_0x17bebc(0x242)];const _0x2ba114={};_0x2ba114['description']=_0x53b63b['ULeTt'],_0x2ba114[_0x17bebc(0x1d8)]=_0x53b63b[_0x17bebc(0x242)];const _0x1bc728={};_0x1bc728[_0x17bebc(0x248)]=_0x53b63b['usUDL'],_0x1bc728['type']=_0x53b63b[_0x17bebc(0x242)];const _0x21194f={};_0x21194f[_0x17bebc(0x248)]=_0x53b63b[_0x17bebc(0x1b4)],_0x21194f[_0x17bebc(0x1d8)]=_0x53b63b['EVvoj'];const _0x3a7416={};return _0x3a7416['cluster-name']=_0x56ba32,_0x3a7416[_0x17bebc(0x2aa)]=_0x2ba114,_0x3a7416[_0x17bebc(0x2a4)]=_0x1bc728,_0x3a7416[_0x17bebc(0x1b7)]=_0x21194f,_0x71cdce[_0x17bebc(0x1ba)](_0x5b3068[_0x17bebc(0x232)])[_0x17bebc(0x286)](_0x58cbc3)[_0x17bebc(0x257)](_0x3a7416)[_0x17bebc(0x29f)](_0x53b63b[_0x17bebc(0x2ab)])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x17bebc(0x20e)](_0x1a598d['cloudProvider'][_0x17bebc(0x215)]())&&(_0x53b63b[_0x17bebc(0x1d4)](_0x53b63b[_0x17bebc(0x1f1)],_0x53b63b['zDFml'])?_0x19a6e7=_0x204025:(_0x3e2436=_0x53b63b[_0x17bebc(0x255)],await _0x53b63b['hLXzZ'](reportToGalactusAndSendToEDS,_0x1a598d,_0x3dff9d,_0x3e2436,messageTypes[_0x17bebc(0x287)],_0x53b63b[_0x17bebc(0x288)],_0x53b63b['YTwRj'],_0x53b63b['SoZPY']),logger['error'](_0x3e2436),!_0x1a598d[_0x17bebc(0x1ee)]&&(_0x53b63b[_0x17bebc(0x2a1)](_0x53b63b[_0x17bebc(0x26e)],_0x53b63b['RMFEE'])?_0x24cc42[_0x17bebc(0x205)](_0x17bebc(0x1cc)+_0x5746a9[_0x17bebc(0x205)][_0x17bebc(0x1e1)]):(logger[_0x17bebc(0x29c)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x17bebc(0x225)]+'\x20'),_0x1a598d[_0x17bebc(0x1ee)]=DEFAULT_CLUSTER_DETAILS[_0x17bebc(0x225)])))),global_registry[_0x17bebc(0x262)]=_0x1a598d['clusterName'],global_registry[_0x17bebc(0x1ee)]=_0x1a598d[_0x17bebc(0x1ee)],global_registry['clusterRegion']=_0x1a598d[_0x17bebc(0x2a4)];}else _0x43272c+=_0x17bebc(0x274)+_0x438d04[_0x17bebc(0x262)]+'\x20'+(_0x5b3cba?_0x53b63b[_0x17bebc(0x28b)]:_0x53b63b[_0x17bebc(0x1b8)])+'\x0a\x0a';}else{if(_0x1a598d['gridProfile']){if(_0x53b63b[_0x17bebc(0x25d)](_0x53b63b['hvkBu'],_0x53b63b[_0x17bebc(0x1fb)])){global_registry['gridProfile']=_0x1a598d['gridProfile'],logger['debug'](_0x17bebc(0x1b2)+_0x1a598d[_0x17bebc(0x1e2)]);const _0x5226f5=_0x17bebc(0x22b)+AG_API_URL+_0x17bebc(0x241),_0x2cf97a={};_0x2cf97a[_0x17bebc(0x2a2)]=_0x53b63b[_0x17bebc(0x1a6)],_0x2cf97a['headers']=global_registry[_0x17bebc(0x224)],_0x2cf97a[_0x17bebc(0x229)]=![];const _0x4ccd09=_0x2cf97a,_0x54027c=await _0x53b63b[_0x17bebc(0x1e8)](got,_0x5226f5,_0x4ccd09),_0x27a8bb=await _0x53b63b[_0x17bebc(0x1ec)](responseValidation,_0x54027c,_0x53b63b['heIzs'],_0x53b63b['bwJcD'],_0x1a598d,_0x3dff9d);let _0x51c627={};if(_0x53b63b[_0x17bebc(0x214)](_0x27a8bb,0xc8)){if(_0x53b63b[_0x17bebc(0x25d)](_0x53b63b['gmDEn'],_0x53b63b[_0x17bebc(0x245)]))_0x4cab03[_0x17bebc(0x29c)]('['+_0x470248+']\x20status\x20:\x20'+_0x127b68['status']+_0x17bebc(0x1d5)+_0x345ac8[_0x17bebc(0x1f7)]+_0x17bebc(0x279)+_0x577451[_0x17bebc(0x205)]),_0x584dd3[_0x17bebc(0x205)]&&_0x5dd7cd[_0x17bebc(0x205)](_0x17bebc(0x1cc)+_0x462e32[_0x17bebc(0x205)]['stack']);else{const _0x1589c2=JSON[_0x17bebc(0x1a2)](_0x54027c['body']),_0x5af1fb=_0x1589c2['find'](_0x1a5bca=>_0x1a5bca[_0x17bebc(0x2a9)]===_0x1a598d[_0x17bebc(0x1e2)])||null;_0x53b63b[_0x17bebc(0x1b3)](isUndefined,_0x5af1fb)?_0x53b63b['dKMdg'](_0x53b63b[_0x17bebc(0x25e)],_0x53b63b[_0x17bebc(0x261)])?(_0x5ec449['error'](_0x53b63b['WzwRx']),_0x3cf360['exit'](0x1)):(_0x3e2436='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x1a598d[_0x17bebc(0x1e2)]+_0x17bebc(0x26c),await _0x53b63b[_0x17bebc(0x1d0)](reportToGalactusAndSendToEDS,_0x1a598d,_0x3dff9d,_0x3e2436,messageTypes[_0x17bebc(0x287)],_0x53b63b[_0x17bebc(0x288)],_0x53b63b[_0x17bebc(0x296)],_0x53b63b[_0x17bebc(0x238)]),logger[_0x17bebc(0x205)](_0x3e2436),process['exit'](0x1)):_0x53b63b[_0x17bebc(0x1ff)](_0x53b63b['OAVkh'],_0x53b63b[_0x17bebc(0x1e9)])?(_0x100f09+=_0x53b63b[_0x17bebc(0x273)],_0x4e4e73+=_0x17bebc(0x1ea)+(_0x3990ac[_0x17bebc(0x1af)]||_0x53b63b[_0x17bebc(0x210)])+'\x0a',_0xf8b24a+=_0x17bebc(0x201)+(_0x42cc8f[_0x17bebc(0x207)]||_0x53b63b[_0x17bebc(0x210)])+'\x0a',_0xb22146+=_0x17bebc(0x211)+(_0x501537[_0x17bebc(0x1e1)]||_0x53b63b['poaLZ'])+'\x0a'):_0x51c627=_0x5af1fb;}}else _0x53b63b['Isryd'](_0x53b63b[_0x17bebc(0x2a6)],_0x53b63b[_0x17bebc(0x2a6)])?process[_0x17bebc(0x268)](0x1):_0x1cbbd3[_0x17bebc(0x23f)](_0x53b63b['yWjtK']);const _0xe432f5={};_0xe432f5['type']=WS_EVENTS[_0x17bebc(0x264)],_0xe432f5['message']=_0x53b63b['xXvlw'],webSocketUtils[_0x17bebc(0x1e7)](_0x3dff9d,_0xe432f5),global_registry[_0x17bebc(0x1ee)]=_0x51c627[_0x17bebc(0x1ee)],global_registry[_0x17bebc(0x290)]=_0x51c627[_0x17bebc(0x2a4)],global_registry[_0x17bebc(0x262)]=_0x51c627[_0x17bebc(0x262)];}else{const {header:_0x5f3df9,response:_0x5e1b93}=_0x489547,{status:_0x45b2e6,data:_0x153ba3,error:_0x31adc4}=_0x5e1b93;_0x1df55c+=_0x5f3df9+'\x20#'+_0x53b63b[_0x17bebc(0x24f)](_0x17ab0c,0x1)+'\x0a',_0x2d0bc2+=_0x17bebc(0x24c)+(_0x45b2e6?_0x53b63b['DRdmq']:_0x53b63b[_0x17bebc(0x1dc)])+'\x0a',_0x4b8d8b+=_0x17bebc(0x20d)+_0x53b63b[_0x17bebc(0x276)](_0x153ba3,_0x53b63b[_0x17bebc(0x210)])+'\x0a',_0x31adc4&&(_0x2594f5+=_0x53b63b[_0x17bebc(0x273)],_0x1cae56+=_0x17bebc(0x1ea)+(_0x31adc4['message']||_0x53b63b[_0x17bebc(0x210)])+'\x0a',_0x4488a5+=_0x17bebc(0x201)+(_0x31adc4[_0x17bebc(0x207)]||_0x53b63b['poaLZ'])+'\x0a',_0x14a2f8+=_0x17bebc(0x211)+(_0x31adc4[_0x17bebc(0x1e1)]||_0x53b63b[_0x17bebc(0x210)])+'\x0a'),_0x873a9f+='\x0a\x0a';}}else _0x53b63b[_0x17bebc(0x27f)](_0x53b63b[_0x17bebc(0x1d7)],_0x53b63b[_0x17bebc(0x203)])?_0x37730a+='Cluster\x20'+_0x3ee56f[_0x17bebc(0x262)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(logger[_0x17bebc(0x205)](_0x53b63b[_0x17bebc(0x265)]),process[_0x17bebc(0x268)](0x1));}}}catch(_0x2d7122){_0x53b63b['erPlT'](_0x53b63b[_0x17bebc(0x1c8)],_0x53b63b[_0x17bebc(0x23a)])?(_0x3e2436=_0x17bebc(0x1ca)+_0x2d7122+':\x20'+_0x2d7122[_0x17bebc(0x1e1)],logger[_0x17bebc(0x205)](_0x3e2436),await _0x53b63b[_0x17bebc(0x1bd)](reportToGalactusAndSendToEDS,_0x1a598d,_0x3dff9d,_0x3e2436,messageTypes['ERROR'],_0x53b63b[_0x17bebc(0x288)],_0x53b63b[_0x17bebc(0x1be)],_0x53b63b[_0x17bebc(0x238)]),process[_0x17bebc(0x268)](0x1)):(_0x2ade50[_0x17bebc(0x29c)](_0x17bebc(0x26b)+_0x365ac6['CLOUD_PROVIDER']+'\x20'),_0x1f56fb[_0x17bebc(0x1ee)]=_0x11304c[_0x17bebc(0x225)]);}}function printResponse(_0x1d72fa,_0x78bd6c){const _0x5e0cef=a17_0x2df846,_0x331af4={};_0x331af4[_0x5e0cef(0x2a3)]=_0x5e0cef(0x2a4),_0x331af4[_0x5e0cef(0x29e)]=function(_0x581259,_0x52cdec){return _0x581259!==_0x52cdec;},_0x331af4[_0x5e0cef(0x216)]=_0x5e0cef(0x281);const _0x1ae18c=_0x331af4;logger[_0x5e0cef(0x29c)]('['+_0x1d72fa+_0x5e0cef(0x25b)+_0x78bd6c[_0x5e0cef(0x282)]+_0x5e0cef(0x1d5)+_0x78bd6c[_0x5e0cef(0x1f7)]+_0x5e0cef(0x279)+_0x78bd6c[_0x5e0cef(0x205)]),_0x78bd6c[_0x5e0cef(0x205)]&&(_0x1ae18c[_0x5e0cef(0x29e)](_0x1ae18c['CCcLw'],_0x1ae18c[_0x5e0cef(0x216)])?_0x7fe69b[_0x5e0cef(0x23f)](_0x1ae18c['BnzLX']):logger['error'](_0x5e0cef(0x1cc)+_0x78bd6c[_0x5e0cef(0x205)]['stack']));}function a17_0x2fa5(){const _0x2f35dd=['toolInstalledResp','vGmFz','delay','rMFse','aFMUS','vPaWS','xylOd','Isryd','\x20data\x20:\x20','NgcDs','wKHNq','type','pre-check-grid-profile-empty','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','6ejkXop','fwDUc','IFakQ','split','Pre-check\x20running\x20for\x20Cloud\x20-\x20','isCliToolInstalled','stack','gridProfile','cloud-provider-not-supported','debug','TLSv1_2_client_method','VWjNS','sendEventToBackend','AhTtG','hOALx','\x20\x20Message:\x20','Cluster\x20details\x0a-----------------------\x0a','OMbUF','SSL\x20Configured','cloudProvider','Hmieg','existsSync','pSMjr','DRHAg','qJqKW','QqzaA','<UsernamePlaceholder>','Cluster\x20`','data','`\x20is\x20present\x20in\x20region\x20`','TLqZD','DjTwo','TGJju','YfSuj','AuFvF','Error\x20Details:\x0a','pEjwD','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','\x20\x20Code:\x20','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','vKmOt','pre-check-failed','error','cXlEM','code','643382IaAghu','PxNpM','OJcGJ','readFileSync','rOwvL','Message:\x20','includes','.\x20Please\x20provide\x20all\x20required\x20arguments.','poaLZ','\x20\x20Stack:\x20','FYceC','Browserstack','DdePv','toLowerCase','CCcLw','ewUVB','pre-check-cluster-args-not-passed','grid','paPkW','fiSBl','Success','dummy-grid','will\x20be\x20created','ffKeA','csRyb','22fQMXMM','LESaC','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','authHeader','CLOUD_PROVIDER','DWbiu','length','`\x20,error\x20:\x20','throwHttpErrors','GET','https://','checkAccess','builder','ZkVem','IOyQY','getUTCFullYear','writeFileSync','pre_check','../../cloudproviders/utils','CTCMw','26920DCrPRk','qjgKC','credential-not-found','SoZPY','requestId','ejwYu','TtwXj','username','bstackUsername','egULA','push','xnGAe','/packages/cli/get-all-grid-profiles','EVvoj','\x20===\x0a\x0a','isClusterPresent','gmDEn','SemNl','3813312tEJHQW','description','../../utils/instrumentationUtils','JejCT','\x20region\x20-\x20','Status:\x20','uuid','DagRZ','CykGj','qAjhX','HMVZS','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','stringify','PCUtj','jcgSH','nWGLj','options','7oXSJgk','cluster-name','Grid\x20profile\x20fetched\x20for\x20pre-check',']\x20status\x20:\x20','GtCZd','erPlT','QzHhY','2007tdASDU','AKDdF','zNlHF','clusterName','response','LOG','WzwRx','knLGz','stack\x20trace\x20','exit','qEMcZ','1865260RgJZcQ','Setting\x20cloud\x20provider\x20as\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','WebSocket','qXKfb','replace','../../config/logger','isTrialGridAccessible','EcsZj','VEiht','Cluster\x20','INFO','aoWtE','is\x20already\x20present','Whitelisted\x20browserstack','\x20error\x20:\x20','SPDDN','User\x20Access','JiGeg','got','hMFOM','jvAcC','init','WnebQ','status','yHvFu','desc','Hejdg','epilogue','ERROR','avGuQ','pre-check-grid-called','<PasswordPlaceholder>','xrqox','string','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qXNsJ','bstackAccesskey','clusterRegion','MhreR','utf-8','password','RPFPy','fRxTj','YNUbc','log/report_','cluster-check-failed-','29669yarCZm','`\x20already\x20exists','AheBJ','info','cAxrr','WMuMv','help','Tool\x20Installed','PnetP','method','BnzLX','region','Failure','NFiIl','XLrjA','ccnSd','name','cloud-provider','OJbbr','parse','Cptnz','QnlJC','Failed\x20in\x20pre-check!\x20Error:\x20','JLHyj','UwixK','361435JqzvDd','.txt','reconnecting-websocket','isTls1_2_SUPPORTED','Missing\x20required\x20arguments:\x20','stHAN','qRUzP','message','cwfWZ','connectionTimeout','grid\x20profile\x20flow\x20','tFNZc','CprXF','header','MOzPK','grid-profile','fmcmd','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','usage','KnIUv','hfgFA','Rexqm','YTwRj','uwktO','uZggf','command','JdzgW','881718XBSgFV','ZgGsD','16lVDjDb','RMwBJ','sLnOg','fjxMC','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','../../utils/utilityMethods','error\x20stack\x20:\x20'];a17_0x2fa5=function(){return _0x2f35dd;};return a17_0x2fa5();}async function generateReport(_0x3999ec,_0x3f6040){const _0x49d230=a17_0x2df846,_0x214449={'EcsZj':function(_0x93c4c7,_0x4a7ca2){return _0x93c4c7+_0x4a7ca2;},'HMVZS':'Success','cwfWZ':'Failure','uZggf':function(_0x41b09c,_0x3ad4ab){return _0x41b09c||_0x3ad4ab;},'hMFOM':'N/A','qXNsJ':_0x49d230(0x1fe),'JejCT':_0x49d230(0x1eb),'DagRZ':function(_0x130078,_0x3e668a){return _0x130078!=_0x3e668a;},'zjjkD':_0x49d230(0x277),'qAjhX':_0x49d230(0x21e),'RMwBJ':function(_0x5dad11){return _0x5dad11();}};let _0x2a825b='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x49d230(0x1ee)]+_0x49d230(0x243);return _0x3999ec['forEach']((_0x38ac66,_0x500ade)=>{const _0x474fb5=_0x49d230,{header:_0x4a8906,response:_0x2adffc}=_0x38ac66,{status:_0x35bf4e,data:_0x4fecff,error:_0x4abf1c}=_0x2adffc;_0x2a825b+=_0x4a8906+'\x20#'+_0x214449[_0x474fb5(0x272)](_0x500ade,0x1)+'\x0a',_0x2a825b+=_0x474fb5(0x24c)+(_0x35bf4e?_0x214449[_0x474fb5(0x251)]:_0x214449[_0x474fb5(0x1b0)])+'\x0a',_0x2a825b+='Message:\x20'+_0x214449[_0x474fb5(0x1c0)](_0x4fecff,_0x214449[_0x474fb5(0x27e)])+'\x0a',_0x4abf1c&&(_0x2a825b+=_0x214449[_0x474fb5(0x28e)],_0x2a825b+=_0x474fb5(0x1ea)+(_0x4abf1c[_0x474fb5(0x1af)]||_0x214449[_0x474fb5(0x27e)])+'\x0a',_0x2a825b+=_0x474fb5(0x201)+(_0x4abf1c[_0x474fb5(0x207)]||_0x214449[_0x474fb5(0x27e)])+'\x0a',_0x2a825b+=_0x474fb5(0x211)+(_0x4abf1c[_0x474fb5(0x1e1)]||_0x214449[_0x474fb5(0x27e)])+'\x0a'),_0x2a825b+='\x0a\x0a';}),_0x2a825b+=_0x214449[_0x49d230(0x24a)],_0x214449[_0x49d230(0x24e)](_0x3f6040,null)?_0x2a825b+=_0x49d230(0x274)+global_registry[_0x49d230(0x262)]+'\x20'+(_0x3f6040?_0x214449['zjjkD']:_0x214449[_0x49d230(0x250)])+'\x0a\x0a':_0x2a825b+='Cluster\x20'+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x2a825b+=_0x214449[_0x49d230(0x1c6)](getSystemMetaData),_0x2a825b;};exports['handler']=async function(_0x12baab){const _0x3366fc=a17_0x2df846,_0x15a46b={'IFakQ':function(_0x879d3){return _0x879d3();},'TtwXj':function(_0x39d1be){return _0x39d1be();},'RedfD':_0x3366fc(0x28d),'NgcDs':function(_0xe3f927,_0x354bc7,_0x2f31e5,_0x2eb7b4,_0x2951cf,_0x26f398,_0x48725c,_0x1216e5){return _0xe3f927(_0x354bc7,_0x2f31e5,_0x2eb7b4,_0x2951cf,_0x26f398,_0x48725c,_0x1216e5);},'SPDDN':'pre-check-grid-called','csRyb':_0x3366fc(0x237),'knLGz':_0x3366fc(0x205),'YfSuj':function(_0x45fda1,_0x45305a,_0x4ba47d,_0x3f4c9f,_0x63550e,_0x6ce281,_0x470a60){return _0x45fda1(_0x45305a,_0x4ba47d,_0x3f4c9f,_0x63550e,_0x6ce281,_0x470a60);},'JdzgW':_0x3366fc(0x1f5),'WoooM':_0x3366fc(0x28a),'egULA':function(_0x3f5507,_0x3f7688,_0x8b5497){return _0x3f5507(_0x3f7688,_0x8b5497);},'hfgFA':function(_0x1a7d94,_0xf483ce,_0x1d8bc9,_0x2c2ae7,_0x4f1d6e,_0x2ac451,_0x18aac4){return _0x1a7d94(_0xf483ce,_0x1d8bc9,_0x2c2ae7,_0x4f1d6e,_0x2ac451,_0x18aac4);},'vGmFz':_0x3366fc(0x21d),'CTCMw':function(_0x426204,_0x25224f,_0x513541){return _0x426204(_0x25224f,_0x513541);},'fYBXP':_0x3366fc(0x1cd),'RZffL':'1|4|3|0|2','PxNpM':'accessResp','yHvFu':function(_0x30ae1e){return _0x30ae1e();},'OehTW':_0x3366fc(0x271),'RPFPy':function(_0x155fa0,_0x5cdcf9){return _0x155fa0(_0x5cdcf9);},'JxYEY':_0x3366fc(0x1e5),'SemNl':function(_0x5ad193,_0x2aae27,_0x272247){return _0x5ad193(_0x2aae27,_0x272247);},'sLnOg':_0x3366fc(0x1ab),'paPkW':_0x3366fc(0x2a0),'ccnSd':_0x3366fc(0x27b),'IOyQY':_0x3366fc(0x278),'MOzPK':_0x3366fc(0x1ed),'LESaC':function(_0x24efec,_0x15ba04,_0x4f1054){return _0x24efec(_0x15ba04,_0x4f1054);},'sflPU':function(_0x5057b2,_0x21475e){return _0x5057b2+_0x21475e;},'bKzjV':_0x3366fc(0x292),'qjgKC':function(_0x38cd1b,_0x2b20da,_0x559dff,_0x63919f,_0x5a79b9,_0x152d74,_0x1610c6){return _0x38cd1b(_0x2b20da,_0x559dff,_0x63919f,_0x5a79b9,_0x152d74,_0x1610c6);},'UwixK':_0x3366fc(0x204)};let _0x414c14,_0x196d61;try{global_registry[_0x3366fc(0x239)]=_0x15a46b[_0x3366fc(0x1dd)](uuidv4);!fs[_0x3366fc(0x1f0)](_0x15a46b['TtwXj'](getCredentialsPath))&&(_0x196d61=_0x15a46b['RedfD'],logger[_0x3366fc(0x205)](_0x196d61),await _0x15a46b[_0x3366fc(0x1d6)](reportToGalactusAndSendToEDS,_0x12baab,_0x414c14,_0x196d61,messageTypes[_0x3366fc(0x287)],_0x15a46b[_0x3366fc(0x27a)],_0x15a46b[_0x3366fc(0x220)],_0x15a46b[_0x3366fc(0x266)]),process['exit'](0x1));_0x15a46b[_0x3366fc(0x1fc)](sendInstrumentationEvent,_0x12baab,_0x15a46b[_0x3366fc(0x27a)],messageTypes[_0x3366fc(0x275)],null,null,_0x12baab);const _0x432663=JSON[_0x3366fc(0x1a2)](fs[_0x3366fc(0x20b)](_0x15a46b[_0x3366fc(0x23b)](getCredentialsPath)));global_registry[_0x3366fc(0x23d)]=_0x432663['Browserstack']['username'],global_registry[_0x3366fc(0x28f)]=_0x432663[_0x3366fc(0x213)][_0x3366fc(0x293)];const _0x32a636=WS_ENDPOINT[_0x3366fc(0x26f)](_0x15a46b[_0x3366fc(0x1c2)],_0x432663['Browserstack'][_0x3366fc(0x23c)])[_0x3366fc(0x26f)](_0x15a46b['WoooM'],_0x432663[_0x3366fc(0x213)][_0x3366fc(0x293)]),_0x45d8b5={};_0x45d8b5[_0x3366fc(0x26d)]=ws,_0x45d8b5[_0x3366fc(0x1b1)]=0x36ee80,_0x414c14=new ReconnectingWebSocket(_0x32a636,[],_0x45d8b5),global_registry['authHeader']=_0x15a46b[_0x3366fc(0x23e)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x3366fc(0x28f)]),await _0x15a46b[_0x3366fc(0x23e)](inputValidation,_0x12baab,_0x414c14),logger[_0x3366fc(0x29c)](_0x3366fc(0x1df)+global_registry[_0x3366fc(0x1ee)]+_0x3366fc(0x24b)+global_registry[_0x3366fc(0x290)]);let _0x3601b2=await _0x15a46b[_0x3366fc(0x1bc)](getCloudProviderObjectWithOutInit,global_registry[_0x3366fc(0x1ee)],global_registry[_0x3366fc(0x262)],_0x15a46b[_0x3366fc(0x1ce)],_0x414c14,webSocketUtils,_0x12baab);const _0x34a706=await _0x3601b2[_0x3366fc(0x1e0)]();_0x15a46b[_0x3366fc(0x234)](printResponse,_0x15a46b['fYBXP'],_0x34a706),_0x3601b2=await _0x3601b2[_0x3366fc(0x280)]();let _0x58d196=![];try{_0x58d196=await _0x3601b2[_0x3366fc(0x244)]();}catch(_0x11cd58){const _0x43c564=_0x15a46b['RZffL'][_0x3366fc(0x1de)]('|');let _0x1ecb25=0x0;while(!![]){switch(_0x43c564[_0x1ecb25++]){case'0':_0x196d61+='\x0a'+JSON[_0x3366fc(0x253)](_0x11cd58[_0x3366fc(0x1e1)]);continue;case'1':_0x196d61='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x3366fc(0x262)]+_0x3366fc(0x1f8)+global_registry[_0x3366fc(0x290)]+_0x3366fc(0x228)+_0x11cd58;continue;case'2':await _0x15a46b[_0x3366fc(0x1d6)](reportToGalactusAndSendToEDS,_0x12baab,_0x414c14,_0x196d61,messageTypes[_0x3366fc(0x287)],_0x15a46b[_0x3366fc(0x27a)],_0x3366fc(0x298)+global_registry[_0x3366fc(0x1ee)],_0x15a46b[_0x3366fc(0x266)]);continue;case'3':logger[_0x3366fc(0x205)](_0x196d61);continue;case'4':_0x58d196=null;continue;}break;}}_0x58d196&&logger[_0x3366fc(0x29c)](_0x3366fc(0x1f6)+global_registry[_0x3366fc(0x262)]+_0x3366fc(0x29a));const _0x5dfc14=await _0x3601b2[_0x3366fc(0x22c)]();_0x15a46b[_0x3366fc(0x23e)](printResponse,_0x15a46b[_0x3366fc(0x209)],_0x5dfc14);const _0x11a32d=await _0x15a46b[_0x3366fc(0x283)](curlRequest);_0x15a46b[_0x3366fc(0x23e)](printResponse,_0x15a46b['OehTW'],_0x11a32d);const _0x40ea0b=await _0x15a46b[_0x3366fc(0x294)](isTlsSupported,_0x15a46b['JxYEY']);_0x15a46b[_0x3366fc(0x246)](printResponse,_0x15a46b[_0x3366fc(0x1c7)],_0x40ea0b);const _0x360b3d={};_0x360b3d['header']=_0x15a46b[_0x3366fc(0x21a)],_0x360b3d[_0x3366fc(0x263)]=_0x34a706;const _0x1f14f5={};_0x1f14f5[_0x3366fc(0x1b5)]=_0x15a46b[_0x3366fc(0x2a8)],_0x1f14f5[_0x3366fc(0x263)]=_0x5dfc14;const _0x5a6bc8={};_0x5a6bc8[_0x3366fc(0x1b5)]=_0x15a46b[_0x3366fc(0x22f)],_0x5a6bc8[_0x3366fc(0x263)]=_0x11a32d;const _0xdeab50={};_0xdeab50[_0x3366fc(0x1b5)]=_0x15a46b[_0x3366fc(0x1b6)],_0xdeab50[_0x3366fc(0x263)]=_0x40ea0b;const _0x116f8b=[_0x360b3d,_0x1f14f5,_0x5a6bc8,_0xdeab50],_0x5645a7=await _0x15a46b[_0x3366fc(0x222)](generateReport,_0x116f8b,_0x58d196),_0x15ceea=new Date(),_0x48a1f3=_0x15ceea[_0x3366fc(0x230)]()+'_'+_0x15a46b['sflPU'](_0x15ceea['getUTCMonth'](),0x1)+'_'+_0x15ceea['getUTCDate']()+'_'+_0x15ceea['getUTCHours']()+'_'+_0x15ceea['getUTCMinutes'](),_0x2dc170=_0x3366fc(0x297)+_0x48a1f3+_0x3366fc(0x1a9);fs[_0x3366fc(0x231)](_0x2dc170,_0x5645a7,_0x15a46b['bKzjV']),logger[_0x3366fc(0x29c)]('Report\x20saved\x20in\x20'+_0x2dc170),process[_0x3366fc(0x268)](0x0);}catch(_0x20795d){let _0x15a36d=_0x3366fc(0x1a5)+_0x20795d+'\x20';logger[_0x3366fc(0x205)](_0x15a36d),_0x15a36d+='\x0a'+JSON[_0x3366fc(0x253)](_0x20795d[_0x3366fc(0x1e1)]),logger[_0x3366fc(0x1e4)](_0x3366fc(0x267)+_0x20795d['stack']);if(_0x414c14){const _0x1c03db={};_0x1c03db['type']=WS_EVENTS[_0x3366fc(0x264)],_0x1c03db['message']=_0x15a36d,webSocketUtils[_0x3366fc(0x1e7)](_0x414c14,_0x1c03db,_0x15a46b['knLGz'],!![]);}await webSocketUtils[_0x3366fc(0x1cf)](0x7d0);const _0x3aac91={};_0x3aac91[_0x3366fc(0x205)]=_0x15a36d,await _0x15a46b[_0x3366fc(0x236)](sendInstrumentationEvent,_0x12baab,_0x15a46b[_0x3366fc(0x27a)],messageTypes[_0x3366fc(0x287)],_0x15a46b[_0x3366fc(0x1a7)],_0x3aac91,_0x12baab),process[_0x3366fc(0x268)](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
+ function a18_0x2324(_0x584fce,_0xf45cae){const _0x5715ca=a18_0x5715();return a18_0x2324=function(_0x2324e0,_0x3af9e0){_0x2324e0=_0x2324e0-0x10c;let _0x754bbd=_0x5715ca[_0x2324e0];return _0x754bbd;},a18_0x2324(_0x584fce,_0xf45cae);}function a18_0x5715(){const _0x426486=['handler','610996tpMIKs','637368wgfLkm','desc','2772287dEScNy','14609078pXfwJb','Start\x20an\x20existing\x20Automation\x20grid.','help','QILXq','recommendCommands','3287196tHfBym','start','command','usage','start_commands','15uXUCqZ','213021SDYpOG','1593ZWjEqD','8DawUTt','demandCommand','4860MIRpmi','ssluI','18ZkBGNg'];a18_0x5715=function(){return _0x426486;};return a18_0x5715();}const a18_0x40e2a2=a18_0x2324;(function(_0x7bd625,_0xb31ed4){const _0x273338=a18_0x2324,_0x95da7c=_0x7bd625();while(!![]){try{const _0x20020f=parseInt(_0x273338(0x11b))/0x1+-parseInt(_0x273338(0x118))/0x2*(-parseInt(_0x273338(0x112))/0x3)+parseInt(_0x273338(0x11a))/0x4*(-parseInt(_0x273338(0x111))/0x5)+parseInt(_0x273338(0x10c))/0x6+parseInt(_0x273338(0x11d))/0x7*(parseInt(_0x273338(0x114))/0x8)+parseInt(_0x273338(0x113))/0x9*(-parseInt(_0x273338(0x116))/0xa)+-parseInt(_0x273338(0x11e))/0xb;if(_0x20020f===_0xb31ed4)break;else _0x95da7c['push'](_0x95da7c['shift']());}catch(_0x5443b4){_0x95da7c['push'](_0x95da7c['shift']());}}}(a18_0x5715,0x54f43));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x40e2a2(0x10e)]=a18_0x40e2a2(0x10d),exports[a18_0x40e2a2(0x11c)]=a18_0x40e2a2(0x11f),exports['builder']=function(_0x5cd620){const _0x3e8a94=a18_0x40e2a2,_0xcf19c9={};_0xcf19c9[_0x3e8a94(0x121)]=_0x3e8a94(0x110),_0xcf19c9[_0x3e8a94(0x117)]=_0x3e8a94(0x120);const _0x4f570f=_0xcf19c9;return _0x5cd620[_0x3e8a94(0x10f)](HELP_HEADER_MESSAGE[_0x3e8a94(0x10d)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x4f570f[_0x3e8a94(0x121)])[_0x3e8a94(0x115)]()[_0x3e8a94(0x122)]()['strict']()[_0x3e8a94(0x120)](_0x4f570f[_0x3e8a94(0x117)]);},exports[a18_0x40e2a2(0x119)]=function(_0x480930){};
@@ -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
+ function a19_0x3f3f(_0x2ea211,_0x27508c){const _0x453314=a19_0x4533();return a19_0x3f3f=function(_0x3f3fe1,_0xf79790){_0x3f3fe1=_0x3f3fe1-0xf6;let _0x406ca7=_0x453314[_0x3f3fe1];return _0x406ca7;},a19_0x3f3f(_0x2ea211,_0x27508c);}function a19_0x4533(){const _0x53b6be=['default','init-not-called','1361719VSyiLY','OsIZk','replace','dJfOP','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','<UsernamePlaceholder>','region','1403862lQvvpv','start-grid-called','146440WNADZC','connectionTimeout','epilogue','vgrSD','skip-tls-cert-verify','error','iYWBi','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','KFKej','Zzzki','6299874xLmHlz','password','nAjKb','Jqcbe','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ERROR','cloudProvider','type','invalid-grid-id','clusterRegion','25513528HbHkYd','Browserstack','description','user','builder','command','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','mNCdr','525340adWAtF','oqbxZ','Grid\x20started','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','../../config/logger','existsSync','RMRaq','grid-id','../../utils/utilityMethods','GfXQz','statusCode','readFileSync','usage','message','IVxii','uUVzw','unauthorised','INFO','username','string','body','3578409OdfVic','info','bstackUsername','<PasswordPlaceholder>','nCHYd','bstackAccesskey','name','qVmSL','../../utils/webSocketUtils','Skip\x20insecure\x20cert\x20verification.','WebSocket','gridId','Adding\x20Websocket\x20listeners','9LWsyNu','10XBWJpQ','stringify','skipTlsCertVerify','help','sVROQ','NEjFW','parse','server-error','start','clusterName','voRxR','exit','KcxZk'];a19_0x4533=function(){return _0x53b6be;};return a19_0x4533();}const a19_0x468478=a19_0x3f3f;(function(_0xbb68fc,_0xccaf5){const _0x2c9b16=a19_0x3f3f,_0x3dfd80=_0xbb68fc();while(!![]){try{const _0x4daa0a=-parseInt(_0x2c9b16(0x147))/0x1+-parseInt(_0x2c9b16(0xf7))/0x2+-parseInt(_0x2c9b16(0x12a))/0x3+parseInt(_0x2c9b16(0x115))/0x4*(-parseInt(_0x2c9b16(0x138))/0x5)+parseInt(_0x2c9b16(0x103))/0x6+parseInt(_0x2c9b16(0xf9))/0x7+parseInt(_0x2c9b16(0x10d))/0x8*(parseInt(_0x2c9b16(0x137))/0x9);if(_0x4daa0a===_0xccaf5)break;else _0x3dfd80['push'](_0x3dfd80['shift']());}catch(_0x71108){_0x3dfd80['push'](_0x3dfd80['shift']());}}}(a19_0x4533,0xb4e67));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x468478(0x119)),{getCredentialsPath,getGridDetails}=require(a19_0x468478(0x11d)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x468478(0x132)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x468478(0x112)]='grid',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x468478(0x111)]=function(_0x524447){const _0x39f7a9=a19_0x468478,_0x4f9a24={};_0x4f9a24['DXpoJ']=_0x39f7a9(0x113),_0x4f9a24[_0x39f7a9(0x144)]=_0x39f7a9(0x128),_0x4f9a24[_0x39f7a9(0x142)]=_0x39f7a9(0x133),_0x4f9a24[_0x39f7a9(0x124)]='boolean',_0x4f9a24['ZKJge']='help';const _0x102181=_0x4f9a24,_0x373b30={};_0x373b30[_0x39f7a9(0x10f)]=_0x102181['DXpoJ'],_0x373b30[_0x39f7a9(0x10a)]=_0x102181[_0x39f7a9(0x144)];const _0x3cf225={};_0x3cf225[_0x39f7a9(0x10f)]=_0x102181['voRxR'],_0x3cf225['type']=_0x102181[_0x39f7a9(0x124)],_0x3cf225[_0x39f7a9(0x145)]=![];const _0x45c57c={};return _0x45c57c[_0x39f7a9(0x11c)]=_0x373b30,_0x45c57c[_0x39f7a9(0xfd)]=_0x3cf225,_0x524447[_0x39f7a9(0x121)](HELP_HEADER_MESSAGE[_0x39f7a9(0x140)])[_0x39f7a9(0xfb)](HELP_FOOTER_MESSAGE)['options'](_0x45c57c)[_0x39f7a9(0x13b)](_0x102181['ZKJge'])['argv'];},exports['handler']=async function(_0x41b98b){const _0x2232d1=a19_0x468478,_0x3d4ae6={'ZBrBi':_0x2232d1(0x118),'Jqcbe':function(_0x4ce8b5){return _0x4ce8b5();},'vgrSD':_0x2232d1(0x14b),'OsIZk':function(_0xeb2805,_0xd70b6,_0x20bfd9,_0x184f6e,_0x165183,_0x3b2d89,_0x2e5c60){return _0xeb2805(_0xd70b6,_0x20bfd9,_0x184f6e,_0x165183,_0x3b2d89,_0x2e5c60);},'mNCdr':_0x2232d1(0xf8),'GfXQz':_0x2232d1(0x146),'nAjKb':function(_0x515e2b){return _0x515e2b();},'qVmSL':_0x2232d1(0x14c),'KFKej':_0x2232d1(0x12d),'JqTJs':_0x2232d1(0x136),'sVROQ':function(_0x43da92,_0x487344,_0x32396f,_0x1a8d9){return _0x43da92(_0x487344,_0x32396f,_0x1a8d9);},'oqbxZ':function(_0x4b355b,_0x2a8cc7,_0x11298b,_0x3b9b9b,_0x25cb24,_0xed0dd8,_0x2966d4){return _0x4b355b(_0x2a8cc7,_0x11298b,_0x3b9b9b,_0x25cb24,_0xed0dd8,_0x2966d4);},'cQksn':function(_0x2d71cc,_0x12ccaf,_0x3e8fcc){return _0x2d71cc(_0x12ccaf,_0x3e8fcc);},'nCHYd':_0x2232d1(0x117),'Zzzki':function(_0x150265,_0x1a1784){return _0x150265===_0x1a1784;},'iYWBi':_0x2232d1(0x107),'NEjFW':function(_0x3a7eee,_0x5479f0,_0x2286df,_0x1cdff8,_0x32a363,_0xe931c1,_0x16293c){return _0x3a7eee(_0x5479f0,_0x2286df,_0x1cdff8,_0x32a363,_0xe931c1,_0x16293c);},'RMRaq':_0x2232d1(0x125),'miiSR':function(_0x147163,_0x24b013,_0x2a65ac,_0x494399,_0x40d075,_0x5d4b7d,_0x5ad21c){return _0x147163(_0x24b013,_0x2a65ac,_0x494399,_0x40d075,_0x5d4b7d,_0x5ad21c);},'dJfOP':_0x2232d1(0x10b),'IVxii':_0x2232d1(0x13f)};let _0x5d81d5;try{!_0x41b98b[_0x2232d1(0x135)]&&(logger['error'](_0x3d4ae6['ZBrBi']),process[_0x2232d1(0x143)](0x1));!fs[_0x2232d1(0x11a)](_0x3d4ae6[_0x2232d1(0x106)](getCredentialsPath))&&(logger[_0x2232d1(0xfe)](_0x3d4ae6[_0x2232d1(0xfc)]),await _0x3d4ae6[_0x2232d1(0x148)](sendInstrumentationEvent,_0x41b98b,_0x3d4ae6['mNCdr'],messageTypes[_0x2232d1(0x108)],_0x3d4ae6[_0x2232d1(0x11e)],null,_0x41b98b),process[_0x2232d1(0x143)](0x1));logger[_0x2232d1(0x12b)]('Starting\x20grid\x20'+_0x41b98b[_0x2232d1(0x135)]),await _0x3d4ae6[_0x2232d1(0x148)](sendInstrumentationEvent,_0x41b98b,_0x3d4ae6[_0x2232d1(0x114)],messageTypes[_0x2232d1(0x126)],null,null,_0x41b98b);const _0x3d2205=JSON[_0x2232d1(0x13e)](fs[_0x2232d1(0x120)](_0x3d4ae6[_0x2232d1(0x105)](getCredentialsPath)));global_registry[_0x2232d1(0x12c)]=_0x3d2205['Browserstack'][_0x2232d1(0x127)],global_registry[_0x2232d1(0x12f)]=_0x3d2205[_0x2232d1(0x10e)][_0x2232d1(0x104)];const _0x5ad472=WS_ENDPOINT[_0x2232d1(0x149)](_0x3d4ae6[_0x2232d1(0x131)],_0x3d2205['Browserstack']['username'])[_0x2232d1(0x149)](_0x3d4ae6[_0x2232d1(0x101)],_0x3d2205[_0x2232d1(0x10e)][_0x2232d1(0x104)]),_0x1720ce={};_0x1720ce[_0x2232d1(0x134)]=ws,_0x1720ce[_0x2232d1(0xfa)]=0x36ee80,_0x5d81d5=new ReconnectingWebSocket(_0x5ad472,[],_0x1720ce),logger['debug'](_0x3d4ae6['JqTJs']),webSocketUtils['addListeners'](_0x5d81d5,_0x41b98b[_0x2232d1(0x110)],_0x41b98b['password']);const [_0x31f673,_0x2d117f]=await _0x3d4ae6[_0x2232d1(0x13c)](getGridDetails,_0x3d2205[_0x2232d1(0x10e)][_0x2232d1(0x127)],_0x3d2205[_0x2232d1(0x10e)][_0x2232d1(0x104)],_0x41b98b[_0x2232d1(0x135)]);if(_0x2d117f){const _0x3a94ce=_0x2d117f[_0x2232d1(0x12b)];global_registry[_0x2232d1(0x109)]=_0x3a94ce[_0x2232d1(0x109)],global_registry[_0x2232d1(0x10c)]=_0x3a94ce[_0x2232d1(0xf6)],global_registry[_0x2232d1(0x141)]=_0x3a94ce[_0x2232d1(0x141)];const _0x457ee2=await _0x3d4ae6[_0x2232d1(0x116)](getCloudProviderObject,_0x3a94ce[_0x2232d1(0x109)],_0x3a94ce['clusterName'],_0x3a94ce[_0x2232d1(0x130)],_0x5d81d5,webSocketUtils,_0x41b98b),[_0x143ec1,_0x38eee2,_0x2ae674,_0x596da3,_0x2f3685,_0x1e7225]=await _0x3d4ae6['cQksn'](createK8sClient,_0x457ee2,_0x41b98b[_0x2232d1(0x13a)]);await _0x3d4ae6['cQksn'](scaleUpHubDeployment,_0x38eee2,_0x3a94ce['name']),logger['info'](_0x3d4ae6[_0x2232d1(0x12e)]),process[_0x2232d1(0x143)](0x0);}_0x3d4ae6[_0x2232d1(0x102)](_0x31f673['statusCode'],0x191)&&(logger[_0x2232d1(0xfe)](_0x3d4ae6[_0x2232d1(0xff)]),await _0x3d4ae6[_0x2232d1(0x13d)](sendInstrumentationEvent,_0x41b98b,_0x3d4ae6['mNCdr'],messageTypes[_0x2232d1(0x108)],_0x3d4ae6[_0x2232d1(0x11b)],null,_0x41b98b),process['exit'](0x1)),_0x3d4ae6[_0x2232d1(0x102)](_0x31f673[_0x2232d1(0x11f)],0x190)&&(logger[_0x2232d1(0xfe)](JSON[_0x2232d1(0x13e)](_0x31f673[_0x2232d1(0x129)])[_0x2232d1(0x122)]),await _0x3d4ae6['miiSR'](sendInstrumentationEvent,_0x41b98b,_0x3d4ae6['mNCdr'],messageTypes['ERROR'],_0x3d4ae6[_0x2232d1(0x14a)],null,_0x41b98b),process[_0x2232d1(0x143)](0x1)),logger['error'](_0x2232d1(0x100)+JSON[_0x2232d1(0x139)](_0x31f673)),await _0x3d4ae6[_0x2232d1(0x13d)](sendInstrumentationEvent,_0x41b98b,_0x3d4ae6['mNCdr'],messageTypes[_0x2232d1(0x108)],_0x3d4ae6[_0x2232d1(0x123)],_0x31f673,_0x41b98b),process[_0x2232d1(0x143)](0x1);}catch(_0x360abc){const _0x569832='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x360abc+'\x20\x0a'+JSON[_0x2232d1(0x139)](_0x360abc['stack'])+'\x20';logger[_0x2232d1(0xfe)](_0x569832),process[_0x2232d1(0x143)](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_0x5d49db=a20_0x99ca;(function(_0x1b405a,_0x61857c){const _0x5cb462=a20_0x99ca,_0x42a635=_0x1b405a();while(!![]){try{const _0x2ad284=parseInt(_0x5cb462(0x8d))/0x1+-parseInt(_0x5cb462(0x9e))/0x2*(parseInt(_0x5cb462(0x8e))/0x3)+parseInt(_0x5cb462(0x9b))/0x4*(parseInt(_0x5cb462(0x8c))/0x5)+-parseInt(_0x5cb462(0x94))/0x6+-parseInt(_0x5cb462(0x93))/0x7*(-parseInt(_0x5cb462(0x96))/0x8)+-parseInt(_0x5cb462(0x9c))/0x9+-parseInt(_0x5cb462(0x98))/0xa*(-parseInt(_0x5cb462(0xa0))/0xb);if(_0x2ad284===_0x61857c)break;else _0x42a635['push'](_0x42a635['shift']());}catch(_0x381b47){_0x42a635['push'](_0x42a635['shift']());}}}(a20_0x2974,0x5d67d));function a20_0x99ca(_0x3fdef6,_0x56c96f){const _0x297474=a20_0x2974();return a20_0x99ca=function(_0x99ca9,_0x6da05){_0x99ca9=_0x99ca9-0x8c;let _0x5512a9=_0x297474[_0x99ca9];return _0x5512a9;},a20_0x99ca(_0x3fdef6,_0x56c96f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5d49db(0x9a));function a20_0x2974(){const _0x510547=['epilogue','1808EVADlH','help','16140TEmMeY','Stop\x20a\x20running\x20Automation\x20grid.','../config/constants','11668FrTswc','4373271kLSCOp','strict','902SAYNeX','commandDir','2926CGrTkJ','CkpgA','desc','655DmnelZ','504532iUGAVf','3117kqWgyN','demandCommand','stop','builder','yDvIy','2681ltvehq','392664aDNxdb'];a20_0x2974=function(){return _0x510547;};return a20_0x2974();}exports['command']='stop',exports[a20_0x5d49db(0xa2)]=a20_0x5d49db(0x99),exports[a20_0x5d49db(0x91)]=function(_0x3e0f71){const _0xb5ffe0=a20_0x5d49db,_0x248e8e={};_0x248e8e[_0xb5ffe0(0xa1)]='stop_commands',_0x248e8e[_0xb5ffe0(0x92)]=_0xb5ffe0(0x97);const _0x1a2c3a=_0x248e8e;return _0x3e0f71['usage'](HELP_HEADER_MESSAGE[_0xb5ffe0(0x90)])[_0xb5ffe0(0x95)](HELP_FOOTER_MESSAGE)[_0xb5ffe0(0x9f)](_0x1a2c3a['CkpgA'])[_0xb5ffe0(0x8f)]()['recommendCommands']()[_0xb5ffe0(0x9d)]()['help'](_0x1a2c3a[_0xb5ffe0(0x92)]);},exports['handler']=function(_0x2a8e6d){};
@@ -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_0x2ff3(){const _0x402281=['tJzvG','default','SEhaO','clusterName','RstsO','grid-id','skip-tls-cert-verify','region','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','WebSocket','30rMHQLg','info','2692bdpmbx','addListeners','message','body','username','bstackUsername','argv','builder','stringify','15242755FZiQnH','WWVGl','help','statusCode','1081895mPHHeh','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','ERROR','boolean','reconnecting-websocket','Stopping\x20grid\x20','exit','Browserstack','boVsk','fLPof','init-not-called','user','../../cloudproviders/utils','GmrrT','connectionTimeout','<PasswordPlaceholder>','65576dLTEtF','Hcbna','parse','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','epilogue','mFzXA','yUjuN','stop','password','MyRSN','existsSync','Skip\x20insecure\x20cert\x20verification.','ydzNr','Adding\x20Websocket\x20listeners','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','140UywLTY','description','invalid-grid-id','oyVsw','8754480dqAZoG','aCexT','debug','xVuMp','error','skipTlsCertVerify','131946IrVhso','EzXbi','../../utils/webSocketUtils','type','903FPEFRI','replace','../../config/constants','unauthorised','JoiDW','command','QIvlq','name','Vxvwc','nHdIB','PJCyT','uUJNS','gridId','cloudProvider','string','XVKsc','824KYeQtf','5603170xMHMiN','LJqjz','../../utils/createk8sClient','usage','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','handler','stop-grid-called','readFileSync','bstackAccesskey'];a21_0x2ff3=function(){return _0x402281;};return a21_0x2ff3();}function a21_0x5f3c(_0x3f765b,_0x2f1c33){const _0x2ff361=a21_0x2ff3();return a21_0x5f3c=function(_0x5f3ce4,_0x477582){_0x5f3ce4=_0x5f3ce4-0x79;let _0x4ff552=_0x2ff361[_0x5f3ce4];return _0x4ff552;},a21_0x5f3c(_0x3f765b,_0x2f1c33);}const a21_0x1b7320=a21_0x5f3c;(function(_0x174010,_0x2c0f6f){const _0x14be34=a21_0x5f3c,_0x37365a=_0x174010();while(!![]){try{const _0x424cee=-parseInt(_0x14be34(0xb0))/0x1*(-parseInt(_0x14be34(0xd6))/0x2)+-parseInt(_0x14be34(0xac))/0x3*(-parseInt(_0x14be34(0xa2))/0x4)+-parseInt(_0x14be34(0x82))/0x5*(parseInt(_0x14be34(0xd4))/0x6)+parseInt(_0x14be34(0x92))/0x7*(-parseInt(_0x14be34(0xc0))/0x8)+parseInt(_0x14be34(0xa6))/0x9+parseInt(_0x14be34(0xc1))/0xa+-parseInt(_0x14be34(0x7e))/0xb;if(_0x424cee===_0x2c0f6f)break;else _0x37365a['push'](_0x37365a['shift']());}catch(_0x4af440){_0x37365a['push'](_0x37365a['shift']());}}}(a21_0x2ff3,0xd0d2d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x1b7320(0x86)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1b7320(0xb2)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x1b7320(0xae)),{createK8sClient}=require(a21_0x1b7320(0xc3)),{getCloudProviderObject}=require(a21_0x1b7320(0x8e));exports[a21_0x1b7320(0xb5)]='grid',exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x1b7320(0x7c)]=function(_0x5c8bb5){const _0x56a97e=a21_0x1b7320,_0x518685={};_0x518685[_0x56a97e(0xbf)]=_0x56a97e(0xa1),_0x518685['SajLC']=_0x56a97e(0xbe),_0x518685['zsuDw']=_0x56a97e(0x9e),_0x518685['Vxvwc']=_0x56a97e(0x85),_0x518685[_0x56a97e(0x9c)]=_0x56a97e(0x80);const _0x14022d=_0x518685,_0x2abcc8={};_0x2abcc8[_0x56a97e(0xa3)]=_0x14022d['XVKsc'],_0x2abcc8[_0x56a97e(0xaf)]=_0x14022d['SajLC'];const _0x2187c6={};_0x2187c6[_0x56a97e(0xa3)]=_0x14022d['zsuDw'],_0x2187c6[_0x56a97e(0xaf)]=_0x14022d[_0x56a97e(0xb8)],_0x2187c6[_0x56a97e(0xcb)]=![];const _0x2a290f={};return _0x2a290f[_0x56a97e(0xcf)]=_0x2abcc8,_0x2a290f[_0x56a97e(0xd0)]=_0x2187c6,_0x5c8bb5[_0x56a97e(0xc4)](HELP_HEADER_MESSAGE[_0x56a97e(0x9a)])[_0x56a97e(0x97)](HELP_FOOTER_MESSAGE)['options'](_0x2a290f)[_0x56a97e(0x80)](_0x14022d[_0x56a97e(0x9c)])[_0x56a97e(0x7b)];},exports[a21_0x1b7320(0xc6)]=async function(_0x30d058){const _0x5890ab=a21_0x1b7320,_0x1fb28b={'JoiDW':_0x5890ab(0xc5),'mFzXA':function(_0x4bac52){return _0x4bac52();},'xVuMp':_0x5890ab(0x96),'ydzNr':function(_0x21034f,_0x3c94bb,_0x472174,_0x42a6be,_0x5b9f9e,_0x309138,_0x2b0da9){return _0x21034f(_0x3c94bb,_0x472174,_0x42a6be,_0x5b9f9e,_0x309138,_0x2b0da9);},'boVsk':_0x5890ab(0xc7),'nHdIB':_0x5890ab(0x8c),'JrpcF':function(_0x11defd){return _0x11defd();},'tJzvG':'<UsernamePlaceholder>','PJCyT':_0x5890ab(0x91),'RstsO':_0x5890ab(0xa0),'yUjuN':function(_0x230de9,_0x3732f7,_0x1d6325,_0x5373e5){return _0x230de9(_0x3732f7,_0x1d6325,_0x5373e5);},'aCexT':function(_0x3b4d1f,_0x1b0ac1,_0x424649,_0x16c696,_0x435383,_0x37b650,_0x346477){return _0x3b4d1f(_0x1b0ac1,_0x424649,_0x16c696,_0x435383,_0x37b650,_0x346477);},'Hcbna':function(_0x26527d,_0x472133,_0x4dee14){return _0x26527d(_0x472133,_0x4dee14);},'oyVsw':'Grid\x20stoppped.','uUJNS':function(_0x902d6a,_0x2187ea){return _0x902d6a===_0x2187ea;},'LJqjz':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','EzXbi':function(_0x484593,_0x10c707,_0xeb55ad,_0x26fb9e,_0x56a603,_0x4838c0,_0x2a5b9f){return _0x484593(_0x10c707,_0xeb55ad,_0x26fb9e,_0x56a603,_0x4838c0,_0x2a5b9f);},'QIvlq':_0x5890ab(0xb3),'GmrrT':function(_0x324ccc,_0x200ea2){return _0x324ccc===_0x200ea2;},'fLPof':function(_0x4d6f60,_0x3c8788,_0x598715,_0x5620a2,_0x7005e6,_0x1cc652,_0x5c3036){return _0x4d6f60(_0x3c8788,_0x598715,_0x5620a2,_0x7005e6,_0x1cc652,_0x5c3036);},'SEhaO':_0x5890ab(0xa4),'WWVGl':'server-error'};let _0x2e929e;try{!_0x30d058['gridId']&&(logger[_0x5890ab(0xaa)](_0x1fb28b[_0x5890ab(0xb4)]),process[_0x5890ab(0x88)](0x1));!fs[_0x5890ab(0x9d)](_0x1fb28b[_0x5890ab(0x98)](getCredentialsPath))&&(logger[_0x5890ab(0xaa)](_0x1fb28b[_0x5890ab(0xa9)]),await _0x1fb28b[_0x5890ab(0x9f)](sendInstrumentationEvent,_0x30d058,_0x1fb28b[_0x5890ab(0x8a)],messageTypes['ERROR'],_0x1fb28b[_0x5890ab(0xb9)],null,_0x30d058),process['exit'](0x1));logger['info'](_0x5890ab(0x87)+_0x30d058[_0x5890ab(0xbc)]),await _0x1fb28b[_0x5890ab(0x9f)](sendInstrumentationEvent,_0x30d058,_0x1fb28b[_0x5890ab(0x8a)],messageTypes[_0x5890ab(0x95)],null,null,_0x30d058);const _0x54f054=JSON[_0x5890ab(0x94)](fs[_0x5890ab(0xc8)](_0x1fb28b['JrpcF'](getCredentialsPath)));global_registry[_0x5890ab(0x7a)]=_0x54f054[_0x5890ab(0x89)][_0x5890ab(0x79)],global_registry[_0x5890ab(0xc9)]=_0x54f054['Browserstack'][_0x5890ab(0x9b)];const _0x302192=WS_ENDPOINT[_0x5890ab(0xb1)](_0x1fb28b[_0x5890ab(0xca)],_0x54f054[_0x5890ab(0x89)][_0x5890ab(0x79)])[_0x5890ab(0xb1)](_0x1fb28b[_0x5890ab(0xba)],_0x54f054[_0x5890ab(0x89)][_0x5890ab(0x9b)]),_0x22cc15={};_0x22cc15[_0x5890ab(0xd3)]=ws,_0x22cc15[_0x5890ab(0x90)]=0x36ee80,_0x2e929e=new ReconnectingWebSocket(_0x302192,[],_0x22cc15),logger[_0x5890ab(0xa8)](_0x1fb28b[_0x5890ab(0xce)]),webSocketUtils[_0x5890ab(0xd7)](_0x2e929e,_0x30d058[_0x5890ab(0x8d)],_0x30d058[_0x5890ab(0x9b)]);const [_0x21ed6d,_0x570257]=await _0x1fb28b[_0x5890ab(0x99)](getGridDetails,_0x54f054[_0x5890ab(0x89)][_0x5890ab(0x79)],_0x54f054[_0x5890ab(0x89)][_0x5890ab(0x9b)],_0x30d058[_0x5890ab(0xbc)]);if(_0x570257){const _0x1f00d8=_0x570257[_0x5890ab(0xd5)];global_registry['cloudProvider']=_0x1f00d8[_0x5890ab(0xbd)],global_registry['clusterRegion']=_0x1f00d8[_0x5890ab(0xd1)],global_registry[_0x5890ab(0xcd)]=_0x1f00d8[_0x5890ab(0xcd)];const _0x59da13=await _0x1fb28b[_0x5890ab(0xa7)](getCloudProviderObject,_0x1f00d8[_0x5890ab(0xbd)],_0x1f00d8[_0x5890ab(0xcd)],_0x1f00d8[_0x5890ab(0xb7)],_0x2e929e,webSocketUtils,_0x30d058),[_0x327845,_0x1386cd,_0x2c1465,_0x381dbd,_0x21ca04,_0xee58c]=await _0x1fb28b[_0x5890ab(0x93)](createK8sClient,_0x59da13,_0x30d058[_0x5890ab(0xab)]);await _0x1fb28b['Hcbna'](scaleDownHubDeployment,_0x1386cd,_0x1f00d8[_0x5890ab(0xb7)]),logger[_0x5890ab(0xd5)](_0x1fb28b[_0x5890ab(0xa5)]),process[_0x5890ab(0x88)](0x0);}_0x1fb28b[_0x5890ab(0xbb)](_0x21ed6d[_0x5890ab(0x81)],0x191)&&(logger[_0x5890ab(0xaa)](_0x1fb28b[_0x5890ab(0xc2)]),await _0x1fb28b['EzXbi'](sendInstrumentationEvent,_0x30d058,_0x1fb28b['boVsk'],messageTypes['ERROR'],_0x1fb28b[_0x5890ab(0xb6)],null,_0x30d058),process['exit'](0x1)),_0x1fb28b[_0x5890ab(0x8f)](_0x21ed6d['statusCode'],0x190)&&(logger[_0x5890ab(0xaa)](JSON[_0x5890ab(0x94)](_0x21ed6d[_0x5890ab(0xd9)])[_0x5890ab(0xd8)]),await _0x1fb28b[_0x5890ab(0x8b)](sendInstrumentationEvent,_0x30d058,_0x1fb28b[_0x5890ab(0x8a)],messageTypes[_0x5890ab(0x84)],_0x1fb28b[_0x5890ab(0xcc)],null,_0x30d058),process[_0x5890ab(0x88)](0x1)),logger[_0x5890ab(0xaa)](_0x5890ab(0xd2)+JSON[_0x5890ab(0x7d)](_0x21ed6d)),await _0x1fb28b[_0x5890ab(0xad)](sendInstrumentationEvent,_0x30d058,_0x1fb28b[_0x5890ab(0x8a)],messageTypes[_0x5890ab(0x84)],_0x1fb28b[_0x5890ab(0x7f)],_0x21ed6d,_0x30d058),process[_0x5890ab(0x88)](0x1);}catch(_0x407cdf){const _0x24515c=_0x5890ab(0x83)+_0x407cdf+'\x20\x0a'+JSON[_0x5890ab(0x7d)](_0x407cdf['stack'])+'\x20';logger[_0x5890ab(0xaa)](_0x24515c),process['exit'](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_0x389a71=a22_0x36b4;(function(_0xe7686,_0x55f1b8){const _0x2df58b=a22_0x36b4,_0xf97363=_0xe7686();while(!![]){try{const _0x3a4a3f=parseInt(_0x2df58b(0x12c))/0x1*(parseInt(_0x2df58b(0x110))/0x2)+-parseInt(_0x2df58b(0xf2))/0x3+parseInt(_0x2df58b(0x10a))/0x4+parseInt(_0x2df58b(0xeb))/0x5+parseInt(_0x2df58b(0x12d))/0x6+parseInt(_0x2df58b(0xc6))/0x7*(parseInt(_0x2df58b(0xd8))/0x8)+-parseInt(_0x2df58b(0xd5))/0x9;if(_0x3a4a3f===_0x55f1b8)break;else _0xf97363['push'](_0xf97363['shift']());}catch(_0x2af80e){_0xf97363['push'](_0xf97363['shift']());}}}(a22_0x1695,0x1e7d4),require('dotenv')[a22_0x389a71(0xef)]());function a22_0x1695(){const _0x39ff0d=['LINK_MESSAGE','unknown','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack-Automate-TurboScale','log','Value','warning','env','delete','BROWSERSTACK_ENV','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','IAM_USER_NAME','601068ZXWpYO','gridProfile','start','error','global_registry','HST_CLUSTER_TAGS','447798QhNzzG','pre-prod','credentials','grid-api.browserstack.com','grid.browserstack.com','preprod','TURBOSCALE_CUSTOM_TAGS','grid-api-preprod.bsstag.com','browserstack:managedBy','high-scale-grid','stop','pre_check','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','api.browserstack.com','INFO','[REDACTED]','stag','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLI_RUN_STARTED','wss://','CP_CONFIG_FILE','BrowserStack','CLOUD_PROVIDER','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','HELP_FOOTER_MESSAGE','browserstack-turboscale-grid','TRIAL_GRID_URL','REGION','1oRGmoy','194934apARqA','us-east-1','Key','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','success','MessageDescription','BrowserStackIAMUser','14QXdMNb','connect','LOG','split','DEFAULT_GRID_NAME','azure','BSTACK-ATS-CLUSTER-AUTOSCALER','WS_ENDPOINT','staging','grid','aws','api-preprod.bsstag.com','GCP','REDACTED','cliRunFinished','934317gCkIrw','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','AZURE','125744ZWdvsz','push','root','prod','AG_API_URL','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','resourceInfo','CLI_RUN_FINISHED','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid-api-devhst.bsstag.com','WARNING','forEach','info','browserstack:service','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','messageTypes','CLUSTER_DEP_STACK_NAME','pre-check','180095MgOycj','SUCCESS','AWS','NULL','config','TURBOSCALE_DEPLOYMENT','DEFAULT_CLUSTER_DETAILS','736239dQNUEx','high-scale-grid-cluster','init','configure','toLowerCase','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','grid-devhst.bsstag.com','list','CLUSTER_HUB_HA_STACK_NAME','BS_API_URL','BSTACK-ATS-CLUSTER-HUB-HA','WS_EVENTS'];a22_0x1695=function(){return _0x39ff0d;};return a22_0x1695();}let gridURL=a22_0x389a71(0x114),bsApiUrl=a22_0x389a71(0x11d),agApiUrl=a22_0x389a71(0x113);const _env=(process[a22_0x389a71(0x105)][a22_0x389a71(0x107)]||a22_0x389a71(0xdb))[a22_0x389a71(0xf6)]();if(_env===a22_0x389a71(0xce)||_env===a22_0x389a71(0x120))gridURL=a22_0x389a71(0xf8),bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x389a71(0xe1);else(_env===a22_0x389a71(0x115)||_env===a22_0x389a71(0x111))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x389a71(0xd1),agApiUrl=a22_0x389a71(0x117));exports['DASHBOARD_ENDPOINT']=process[a22_0x389a71(0x105)]['DASHBOARD_ENDPOINT']||gridURL,exports['BS_API_URL']=process['env'][a22_0x389a71(0xfb)]||bsApiUrl,exports[a22_0x389a71(0xdc)]=process[a22_0x389a71(0x105)][a22_0x389a71(0xdc)]||agApiUrl,exports[a22_0x389a71(0xcd)]=a22_0x389a71(0x123)+this[a22_0x389a71(0xdc)]+a22_0x389a71(0xd6),exports[a22_0x389a71(0x124)]=a22_0x389a71(0x112),exports[a22_0x389a71(0x109)]=a22_0x389a71(0xc5),exports[a22_0x389a71(0xca)]=a22_0x389a71(0x119),exports[a22_0x389a71(0xed)]=a22_0x389a71(0xd0),exports[a22_0x389a71(0xe9)]='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x389a71(0xcc),exports[a22_0x389a71(0xfa)]=a22_0x389a71(0xfc),exports[a22_0x389a71(0xf0)]=a22_0x389a71(0x129),exports[a22_0x389a71(0xd7)]=a22_0x389a71(0xcb),exports['GCP']='gcp',exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x389a71(0xed)],this[a22_0x389a71(0xd7)],this[a22_0x389a71(0xd2)]];const a22_0x9fc614={};a22_0x9fc614[a22_0x389a71(0x12f)]=a22_0x389a71(0x118),a22_0x9fc614[a22_0x389a71(0x103)]=a22_0x389a71(0x125);const a22_0x5a1c3c={};a22_0x5a1c3c[a22_0x389a71(0x12f)]='browserstack:service',a22_0x5a1c3c[a22_0x389a71(0x103)]=a22_0x389a71(0x101);const common_hst_tags_list=[a22_0x9fc614,a22_0x5a1c3c];if(process['env'][a22_0x389a71(0x116)]){const parsedTags=process[a22_0x389a71(0x105)][a22_0x389a71(0x116)][a22_0x389a71(0xc9)](',');parsedTags[a22_0x389a71(0xe3)](_0x1a1508=>{const _0x3008df=a22_0x389a71,_0x56881d=_0x1a1508[_0x3008df(0xc9)](':'),_0x59b06c={};_0x59b06c[_0x3008df(0x12f)]=_0x56881d[0x0],_0x59b06c[_0x3008df(0x103)]=_0x56881d[0x1],common_hst_tags_list[_0x3008df(0xd9)](_0x59b06c);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x43da56={};a22_0x43da56['browserstack:managedBy']=a22_0x389a71(0x125),a22_0x43da56[a22_0x389a71(0xe5)]=a22_0x389a71(0x101),exports[a22_0x389a71(0x10f)]=a22_0x43da56,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x389a71(0xed)]];const a22_0x540c0d={};a22_0x540c0d[a22_0x389a71(0xc8)]=a22_0x389a71(0x102),a22_0x540c0d['RESOURCES']=a22_0x389a71(0xde),a22_0x540c0d['GRID_URL']='gridUrl',a22_0x540c0d[a22_0x389a71(0x122)]='cliRunStarted',a22_0x540c0d[a22_0x389a71(0xdf)]=a22_0x389a71(0xd4),exports[a22_0x389a71(0xfd)]=a22_0x540c0d,exports[a22_0x389a71(0x10e)]={},exports[a22_0x389a71(0xfe)]=a22_0x389a71(0x11c);const a22_0x594b28={};a22_0x594b28[a22_0x389a71(0xda)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0xf4)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0xf5)]=a22_0x389a71(0xe7)+this[a22_0x389a71(0xfe)],a22_0x594b28['create']=a22_0x389a71(0xdd)+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0xf9)]={},a22_0x594b28[a22_0x389a71(0x106)]=a22_0x389a71(0x130)+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0xc7)]=a22_0x389a71(0x100)+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0x10c)]=a22_0x389a71(0xe0)+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0x11a)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0x11b)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0xf9)][a22_0x389a71(0xda)]=a22_0x389a71(0x108)+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0xf9)][a22_0x389a71(0xcf)]=a22_0x389a71(0xf7)+this[a22_0x389a71(0xfe)],a22_0x594b28[a22_0x389a71(0xf9)][a22_0x389a71(0x10b)]=a22_0x389a71(0xe6)+this[a22_0x389a71(0xfe)],exports['HELP_HEADER_MESSAGE']=a22_0x594b28,exports[a22_0x389a71(0x128)]=a22_0x389a71(0x127);const a22_0x50bb64={};a22_0x50bb64[a22_0x389a71(0xec)]=a22_0x389a71(0x131),a22_0x50bb64['ERROR']=a22_0x389a71(0x10d),a22_0x50bb64[a22_0x389a71(0x11e)]=a22_0x389a71(0xe4),a22_0x50bb64[a22_0x389a71(0xe2)]=a22_0x389a71(0x104),a22_0x50bb64['UNKNOWN']=a22_0x389a71(0xff),a22_0x50bb64[a22_0x389a71(0xee)]=null,exports[a22_0x389a71(0xe8)]=a22_0x50bb64,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x389a71(0xd3)]=a22_0x389a71(0x11f);const a22_0x542f43={};a22_0x542f43['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';function a22_0x36b4(_0x456be4,_0x30e552){const _0x169591=a22_0x1695();return a22_0x36b4=function(_0x36b445,_0x1509b3){_0x36b445=_0x36b445-0xc4;let _0x5860e9=_0x169591[_0x36b445];return _0x5860e9;},a22_0x36b4(_0x456be4,_0x30e552);}const a22_0x385fd6={};a22_0x385fd6[a22_0x389a71(0xea)]=a22_0x542f43,exports[a22_0x389a71(0xc4)]=a22_0x385fd6,exports[a22_0x389a71(0x12a)]=a22_0x389a71(0x121);const a22_0x40cf1b={};a22_0x40cf1b['CLUSTER']=a22_0x389a71(0xf3),a22_0x40cf1b[a22_0x389a71(0x126)]='aws',a22_0x40cf1b[a22_0x389a71(0x12b)]=a22_0x389a71(0x12e),exports[a22_0x389a71(0xf1)]=a22_0x40cf1b;
@@ -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_0x4ab7c2=a23_0x4ec0;function a23_0x2953(){const _0x328a07=['combine','name','\x20-\x20','format','logger','604602fkyFUu','usage.log','log','debug','Console','transports','level','11505072FJDrZh','colorize','console.info','timestamp','winston','join','3810654qKiXQi','existsSync','path','9624349HlSawD','70KFLWvU','383928ypVOTL','fileLogger','2092652pVGnSA','File','events.log','createLogger','message','236647mYMjag'];a23_0x2953=function(){return _0x328a07;};return a23_0x2953();}(function(_0x3a70f5,_0xb85388){const _0x5f225a=a23_0x4ec0,_0xe93930=_0x3a70f5();while(!![]){try{const _0x117ffe=-parseInt(_0x5f225a(0x1ce))/0x1+parseInt(_0x5f225a(0x1c9))/0x2+-parseInt(_0x5f225a(0x1c2))/0x3+-parseInt(_0x5f225a(0x1c7))/0x4+parseInt(_0x5f225a(0x1c6))/0x5*(parseInt(_0x5f225a(0x1b5))/0x6)+parseInt(_0x5f225a(0x1c5))/0x7+-parseInt(_0x5f225a(0x1bc))/0x8;if(_0x117ffe===_0xb85388)break;else _0xe93930['push'](_0xe93930['shift']());}catch(_0xa7f882){_0xe93930['push'](_0xe93930['shift']());}}}(a23_0x2953,0xc11ce));const winston=require(a23_0x4ab7c2(0x1c0)),fs=require('fs'),path=require(a23_0x4ab7c2(0x1c4)),logDir=a23_0x4ab7c2(0x1b7);!fs[a23_0x4ab7c2(0x1c3)](logDir)&&fs['mkdirSync'](logDir);const a23_0x241424={};a23_0x241424[a23_0x4ab7c2(0x1b3)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x31b15f={};a23_0x31b15f[a23_0x4ab7c2(0x1bb)]=!![];function a23_0x4ec0(_0x1a9759,_0x2deac4){const _0x2953be=a23_0x2953();return a23_0x4ec0=function(_0x4ec0e2,_0x5e160f){_0x4ec0e2=_0x4ec0e2-0x1b0;let _0x2c35f4=_0x2953be[_0x4ec0e2];return _0x2c35f4;},a23_0x4ec0(_0x1a9759,_0x2deac4);}const a23_0x159bc7={};a23_0x159bc7[a23_0x4ab7c2(0x1b1)]=a23_0x4ab7c2(0x1be),exports[a23_0x4ab7c2(0x1b4)]=new winston[(a23_0x4ab7c2(0x1cc))]({'format':winston['format'][a23_0x4ab7c2(0x1b0)](winston[a23_0x4ab7c2(0x1b3)][a23_0x4ab7c2(0x1bf)](a23_0x241424),winston[a23_0x4ab7c2(0x1b3)][a23_0x4ab7c2(0x1bd)](a23_0x31b15f),winston[a23_0x4ab7c2(0x1b3)]['printf'](_0x8d2a01=>_0x8d2a01[a23_0x4ab7c2(0x1bf)]+a23_0x4ab7c2(0x1b2)+_0x8d2a01[a23_0x4ab7c2(0x1bb)]+':\x20'+_0x8d2a01[a23_0x4ab7c2(0x1cd)])),'transports':[new winston[(a23_0x4ab7c2(0x1ba))][(a23_0x4ab7c2(0x1b9))](a23_0x159bc7),new winston['transports'][(a23_0x4ab7c2(0x1ca))]({'filename':path[a23_0x4ab7c2(0x1c1)](logDir,a23_0x4ab7c2(0x1cb)),'level':a23_0x4ab7c2(0x1b8)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x4ab7c2(0x1ba))]['File']({'filename':path[a23_0x4ab7c2(0x1c1)](logDir,a23_0x4ab7c2(0x1b6)),'level':'debug'})]};exports[a23_0x4ab7c2(0x1c8)]=new winston[(a23_0x4ab7c2(0x1cc))](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_0x1e851a=a24_0x2b4c;function a24_0x59cf(){const _0x33fe6c=['3794348ibVtCP','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','14NbAmNR','epilogue','help','2478CulIvi','Ydwrk','7515ZlouRn','29181uNoyPJ','./config/constants','26817380kACTWe','demandCommand','252702HhCYHn','env','140875pkEkCr','11PDpItv','commandDir','328TBgwRq','894777ulqKYc','MoMWp'];a24_0x59cf=function(){return _0x33fe6c;};return a24_0x59cf();}(function(_0x2b1386,_0x1270e8){const _0x35bb83=a24_0x2b4c,_0x522f1e=_0x2b1386();while(!![]){try{const _0x4b2c9e=parseInt(_0x35bb83(0x1f8))/0x1+parseInt(_0x35bb83(0x1fc))/0x2*(-parseInt(_0x35bb83(0x202))/0x3)+-parseInt(_0x35bb83(0x1fa))/0x4+parseInt(_0x35bb83(0x201))/0x5*(-parseInt(_0x35bb83(0x1ff))/0x6)+-parseInt(_0x35bb83(0x1f4))/0x7+-parseInt(_0x35bb83(0x1f7))/0x8*(parseInt(_0x35bb83(0x1f2))/0x9)+-parseInt(_0x35bb83(0x204))/0xa*(-parseInt(_0x35bb83(0x1f5))/0xb);if(_0x4b2c9e===_0x1270e8)break;else _0x522f1e['push'](_0x522f1e['shift']());}catch(_0x5b8fe9){_0x522f1e['push'](_0x522f1e['shift']());}}}(a24_0x59cf,0xbb721));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x1e851a(0x203));process[a24_0x1e851a(0x1f3)][a24_0x1e851a(0x1fb)]=0x1;function run(_0x2a9016){const _0x4122b7=a24_0x1e851a,_0x52b30c={};_0x52b30c[_0x4122b7(0x1f9)]='commands',_0x52b30c['Ydwrk']=_0x4122b7(0x1fe);const _0x56fe19=_0x52b30c;_0x2a9016['usage'](HELP_HEADER_MESSAGE['root'])[_0x4122b7(0x1f6)](_0x56fe19[_0x4122b7(0x1f9)])[_0x4122b7(0x205)]()[_0x4122b7(0x1fe)](_0x56fe19[_0x4122b7(0x200)])[_0x4122b7(0x1fd)](HELP_FOOTER_MESSAGE);}function a24_0x2b4c(_0x3eef4e,_0x4aa5f0){const _0x59cf2e=a24_0x59cf();return a24_0x2b4c=function(_0x2b4c28,_0x115abc){_0x2b4c28=_0x2b4c28-0x1f2;let _0x562e21=_0x59cf2e[_0x2b4c28];return _0x562e21;},a24_0x2b4c(_0x3eef4e,_0x4aa5f0);}module['exports']=run;