browserstack-node-sdk 1.57.0 → 1.57.2

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 (201) 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 +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  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 -1
  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/caCertHelper.js +1 -1
  156. package/src/helpers/capsMapping.js +1 -1
  157. package/src/helpers/central-scanner/constants.js +1 -1
  158. package/src/helpers/central-scanner/helpers.js +1 -1
  159. package/src/helpers/classLogger.js +1 -1
  160. package/src/helpers/driverInitErrorReporter.js +1 -1
  161. package/src/helpers/globals.js +1 -1
  162. package/src/helpers/helper.js +1 -1
  163. package/src/helpers/logger.js +1 -1
  164. package/src/helpers/metadata.js +1 -1
  165. package/src/helpers/patchHelper.js +1 -1
  166. package/src/helpers/patchHelpers.js +1 -1
  167. package/src/helpers/percy/Percy.js +1 -1
  168. package/src/helpers/percy/PercyBinary.js +1 -1
  169. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  170. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  171. package/src/helpers/percy/PercySDK.js +1 -1
  172. package/src/helpers/percy/index.js +1 -1
  173. package/src/helpers/percy/utils.js +1 -1
  174. package/src/helpers/performance/constants.js +1 -1
  175. package/src/helpers/performance/performance-tester.js +1 -1
  176. package/src/helpers/playwright-helper.js +1 -1
  177. package/src/helpers/processHelper.js +1 -1
  178. package/src/helpers/puppeteer-helper.js +1 -1
  179. package/src/helpers/request-spy.js +1 -1
  180. package/src/helpers/setKeepAlive.js +1 -1
  181. package/src/helpers/stackFrameUtils.js +1 -1
  182. package/src/helpers/test-observability/constants.js +1 -1
  183. package/src/helpers/test-observability/error-handler.js +1 -1
  184. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  185. package/src/helpers/test-observability/sessionHandler.js +1 -1
  186. package/src/helpers/test-observability/utils.js +1 -1
  187. package/src/helpers/test-orchestration/constants.js +1 -1
  188. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  189. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  190. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  191. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  192. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  193. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  194. package/src/helpers/testhub/constants.js +1 -1
  195. package/src/helpers/testhub/testhubHandler.js +1 -1
  196. package/src/helpers/testhub/utils.js +1 -1
  197. package/src/helpers/timeoutPromise.js +1 -1
  198. package/src/helpers/utilities.js +1 -1
  199. package/src/helpers/w3cMapping.js +1 -1
  200. package/src/hubAllocationMethods.js +1 -1
  201. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x5037(_0xc7eacc,_0x35adc0){const _0x39b153=a15_0x39b1();return a15_0x5037=function(_0x5037b3,_0x3befe5){_0x5037b3=_0x5037b3-0xf0;let _0x59de93=_0x39b153[_0x5037b3];return _0x59de93;},a15_0x5037(_0xc7eacc,_0x35adc0);}const a15_0x4b9fed=a15_0x5037;(function(_0x4feed6,_0x135e8c){const _0x3ac835=a15_0x5037,_0x1551ce=_0x4feed6();while(!![]){try{const _0x2a5e60=parseInt(_0x3ac835(0xf1))/0x1+parseInt(_0x3ac835(0x12a))/0x2+parseInt(_0x3ac835(0x124))/0x3*(parseInt(_0x3ac835(0x11d))/0x4)+-parseInt(_0x3ac835(0x11f))/0x5*(-parseInt(_0x3ac835(0x13d))/0x6)+-parseInt(_0x3ac835(0x12f))/0x7+parseInt(_0x3ac835(0x11e))/0x8*(parseInt(_0x3ac835(0x11b))/0x9)+-parseInt(_0x3ac835(0x103))/0xa*(parseInt(_0x3ac835(0x142))/0xb);if(_0x2a5e60===_0x135e8c)break;else _0x1551ce['push'](_0x1551ce['shift']());}catch(_0x2f883d){_0x1551ce['push'](_0x1551ce['shift']());}}}(a15_0x39b1,0x50890));function a15_0x39b1(){const _0x490f68=['2293648gSlPSB','error','/packages/cli/get-grids','TgIag','help','epilogue','clusterName','sbfbX','pSRCz','usage','options','readFileSync','\x0aFound\x20the\x20following\x20grids:\x0a','votIv','520692nKlxej','WBELi','stringify','/packages/cli/get-all-grids','KoaiK','176zcNuKV','allGrids','hrptt','queued','grids','AabWu','JmRcX','14168PNYcIF','grid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','running','GET','TeWXp','unauthorised','command','stack','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','body','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','https://','server-error','argv','CHVKE','bstackAccesskey','106360KhkpED','all-grids','bOINm','YGxdK','builder','name','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','../../config/constants','description','grid-id','exit','../../utils/utilityMethods','dEWDA','kYILd','bstackUsername','zYlDf','NOcQR','cluster-name','push','unknown-error','Browserstack','9RZiYPC','got','4IdxGte','701304YYgHiI','20AQokfP','requestId','list-grids-called','kGjQJ','../../utils/instrumentationUtils','478437KAwAOU','gMHUs','ERROR','Failed\x20to\x20list\x20resources!\x20Error:\x20','log','parse','438548PxQGId','ACZbB','forEach','ajXbn','uuid'];a15_0x39b1=function(){return _0x490f68;};return a15_0x39b1();}const fs=require('fs'),got=require(a15_0x4b9fed(0x11c)),{table}=require('table'),{v4:uuidv4}=require(a15_0x4b9fed(0x12e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4b9fed(0x10d)),{getCredentialsPath,getAuthHeader}=require(a15_0x4b9fed(0x111)),{sendInstrumentationEvent}=require(a15_0x4b9fed(0x123));exports[a15_0x4b9fed(0xf8)]=a15_0x4b9fed(0x146),exports['desc']=a15_0x4b9fed(0xfb),exports[a15_0x4b9fed(0x107)]=function(_0x1d1dc0){const _0x155f6c=a15_0x4b9fed,_0x81cb80={};_0x81cb80[_0x155f6c(0x136)]=_0x155f6c(0x10c),_0x81cb80[_0x155f6c(0x112)]='boolean',_0x81cb80[_0x155f6c(0x105)]=_0x155f6c(0x133);const _0x419c1e=_0x81cb80,_0x12fd17={};_0x12fd17[_0x155f6c(0x10e)]=_0x419c1e['sbfbX'],_0x12fd17[_0x155f6c(0x109)]=_0x419c1e['dEWDA'];const _0x3fa8c5={};return _0x3fa8c5[_0x155f6c(0x104)]=_0x12fd17,_0x1d1dc0[_0x155f6c(0x138)](HELP_HEADER_MESSAGE['list'][_0x155f6c(0xf2)])[_0x155f6c(0x134)](HELP_FOOTER_MESSAGE)[_0x155f6c(0x139)](_0x3fa8c5)[_0x155f6c(0x133)](_0x419c1e['bOINm'])[_0x155f6c(0x100)];},exports['handler']=async function(_0x309b80){const _0x1a7829=a15_0x4b9fed,_0x49e2c8={'WBELi':function(_0xd21299){return _0xd21299();},'gMHUs':function(_0x67b059){return _0x67b059();},'asilI':_0x1a7829(0xf3),'kGjQJ':function(_0x5d8b1a,_0x373b5b,_0x1a28cc,_0x1c3705,_0x4de2b4,_0x5c2c50,_0x4f65cb){return _0x5d8b1a(_0x373b5b,_0x1a28cc,_0x1c3705,_0x4de2b4,_0x5c2c50,_0x4f65cb);},'CHVKE':_0x1a7829(0x121),'pSRCz':_0x1a7829(0xfa),'zYlDf':_0x1a7829(0xf5),'kYILd':function(_0xfb3c85,_0x26990b,_0x591ae7){return _0xfb3c85(_0x26990b,_0x591ae7);},'TgIag':function(_0x51aceb,_0xfd737e,_0x36d282){return _0x51aceb(_0xfd737e,_0x36d282);},'TeWXp':function(_0x424698,_0x419507){return _0x424698!==_0x419507;},'sXVhK':function(_0x468c0b,_0x3f7d70){return _0x468c0b===_0x3f7d70;},'ACZbB':_0x1a7829(0x13b),'piUGq':_0x1a7829(0x10f),'JmRcX':'grid-name','ajXbn':'status','AmiWf':_0x1a7829(0xf4),'votIv':'queued','WDpyQ':_0x1a7829(0x117),'KoaiK':function(_0x7e06e0,_0x3adeaa){return _0x7e06e0(_0x3adeaa);},'AabWu':function(_0xff5844,_0x1bd388){return _0xff5844===_0x1bd388;},'hrptt':_0x1a7829(0xfd),'EVATk':_0x1a7829(0xf7),'YGxdK':_0x1a7829(0xff),'NOcQR':_0x1a7829(0x119)};try{global_registry[_0x1a7829(0x120)]=_0x49e2c8[_0x1a7829(0x13e)](uuidv4);!fs['existsSync'](_0x49e2c8[_0x1a7829(0x125)](getCredentialsPath))&&(console[_0x1a7829(0x130)](_0x49e2c8['asilI']),await _0x49e2c8[_0x1a7829(0x122)](sendInstrumentationEvent,_0x309b80,_0x49e2c8[_0x1a7829(0x101)],messageTypes['ERROR'],_0x49e2c8[_0x1a7829(0x137)],null,_0x309b80),process[_0x1a7829(0x110)](0x1));const _0x3242da=JSON[_0x1a7829(0x129)](fs[_0x1a7829(0x13a)](_0x49e2c8[_0x1a7829(0x125)](getCredentialsPath)));let _0x11cb04='https://'+AG_API_URL+_0x1a7829(0x131);_0x309b80[_0x1a7829(0x143)]&&(_0x11cb04=_0x1a7829(0xfe)+AG_API_URL+_0x1a7829(0x140));const _0x47e337={'method':_0x49e2c8[_0x1a7829(0x115)],'headers':_0x49e2c8[_0x1a7829(0x113)](getAuthHeader,_0x3242da['Browserstack']['username'],_0x3242da['Browserstack'][_0x1a7829(0x10b)]),'throwHttpErrors':![]};global_registry[_0x1a7829(0x114)]=_0x3242da[_0x1a7829(0x11a)]['username'],global_registry[_0x1a7829(0x102)]=_0x3242da[_0x1a7829(0x11a)]['password'],_0x49e2c8[_0x1a7829(0x122)](sendInstrumentationEvent,_0x309b80,_0x49e2c8['CHVKE'],messageTypes['INFO'],null,null,_0x309b80);const _0x356f77=await _0x49e2c8[_0x1a7829(0x132)](got,_0x11cb04,_0x47e337);if(_0x49e2c8[_0x1a7829(0xf6)](_0x356f77,null)&&_0x49e2c8[_0x1a7829(0xf6)](_0x356f77,undefined)&&_0x49e2c8['sXVhK'](_0x356f77['statusCode'],0xc8)){const _0x177c62=JSON[_0x1a7829(0x129)](_0x356f77[_0x1a7829(0xfc)]);console['log'](_0x49e2c8[_0x1a7829(0x12b)]);const _0x404f6f=[];_0x404f6f[_0x1a7829(0x118)]([_0x49e2c8['piUGq'],_0x49e2c8[_0x1a7829(0xf0)],_0x49e2c8[_0x1a7829(0x12d)],_0x49e2c8['AmiWf'],_0x49e2c8[_0x1a7829(0x13c)],_0x49e2c8['WDpyQ']]),_0x177c62[_0x1a7829(0x12c)](_0x239200=>{const _0x5c977d=_0x1a7829;_0x404f6f[_0x5c977d(0x118)]([_0x239200['id'],_0x239200[_0x5c977d(0x108)],_0x239200['status'],_0x239200[_0x5c977d(0xf4)],_0x239200[_0x5c977d(0x145)],_0x239200[_0x5c977d(0x135)]]);}),console[_0x1a7829(0x128)](_0x49e2c8[_0x1a7829(0x141)](table,_0x404f6f)),process[_0x1a7829(0x110)](0x0);}_0x49e2c8[_0x1a7829(0x147)](_0x356f77['statusCode'],0x191)&&(console['error'](_0x49e2c8[_0x1a7829(0x144)]),await _0x49e2c8[_0x1a7829(0x122)](sendInstrumentationEvent,_0x309b80,_0x49e2c8[_0x1a7829(0x101)],messageTypes[_0x1a7829(0x126)],_0x49e2c8['EVATk'],null,_0x309b80),process['exit'](0x1)),console[_0x1a7829(0x130)](_0x1a7829(0x10a)+JSON[_0x1a7829(0x13f)](_0x356f77)),await _0x49e2c8['kGjQJ'](sendInstrumentationEvent,_0x309b80,_0x49e2c8[_0x1a7829(0x101)],messageTypes[_0x1a7829(0x126)],_0x49e2c8[_0x1a7829(0x106)],_0x356f77,_0x309b80),process['exit'](0x1);}catch(_0x5731d7){console['error'](_0x1a7829(0x127)+_0x5731d7[_0x1a7829(0xf9)]),await _0x49e2c8[_0x1a7829(0x122)](sendInstrumentationEvent,_0x309b80,_0x49e2c8[_0x1a7829(0x101)],messageTypes[_0x1a7829(0x126)],_0x49e2c8[_0x1a7829(0x116)],_0x5731d7,_0x309b80),process[_0x1a7829(0x110)](0x1);}};
1
+ const a15_0x183c0f=a15_0x2ffc;function a15_0x2ffc(_0x3d12fe,_0x2e05a3){const _0x17a899=a15_0x17a8();return a15_0x2ffc=function(_0x2ffc70,_0x10790c){_0x2ffc70=_0x2ffc70-0x155;let _0x464062=_0x17a899[_0x2ffc70];return _0x464062;},a15_0x2ffc(_0x3d12fe,_0x2e05a3);}(function(_0x2c92da,_0x34e634){const _0x5cba68=a15_0x2ffc,_0x4de9ee=_0x2c92da();while(!![]){try{const _0xd2798b=parseInt(_0x5cba68(0x177))/0x1+parseInt(_0x5cba68(0x1ab))/0x2*(parseInt(_0x5cba68(0x19f))/0x3)+parseInt(_0x5cba68(0x171))/0x4+-parseInt(_0x5cba68(0x19a))/0x5*(-parseInt(_0x5cba68(0x170))/0x6)+-parseInt(_0x5cba68(0x16b))/0x7*(parseInt(_0x5cba68(0x15f))/0x8)+parseInt(_0x5cba68(0x193))/0x9*(parseInt(_0x5cba68(0x15d))/0xa)+-parseInt(_0x5cba68(0x199))/0xb*(parseInt(_0x5cba68(0x195))/0xc);if(_0xd2798b===_0x34e634)break;else _0x4de9ee['push'](_0x4de9ee['shift']());}catch(_0x2d9843){_0x4de9ee['push'](_0x4de9ee['shift']());}}}(a15_0x17a8,0x36104));const fs=require('fs'),got=require(a15_0x183c0f(0x1ac)),{table}=require(a15_0x183c0f(0x1a0)),{v4:uuidv4}=require(a15_0x183c0f(0x16a)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x183c0f(0x182)),{getCredentialsPath,getAuthHeader}=require(a15_0x183c0f(0x178)),{sendInstrumentationEvent}=require(a15_0x183c0f(0x17e));function a15_0x17a8(){const _0x197fd2=['password','\x0aFound\x20the\x20following\x20grids:\x0a','desc','argv','81xyyQiq','bstackAccesskey','36LBARjN','parse','readFileSync','INFO','919853gQwLmi','457845vlnMZx','lHiVu','vGwDy','clusterName','iTlwI','3HcAkUI','table','HozVU','command','EQeVw','stringify','mOASr','eZUSQ','all-grids','grid','list','exit','217382aYYORV','got','allGrids','statusCode','oWzJj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','rClhl','grids','epilogue','help','WcUUc','jMecG','server-error','208790ZjynKF','Browserstack','160OBIFMr','https://','jGpZi','list-grids-called','fHKxC','Khgkm','usage','/packages/cli/get-all-grids','queued','grid-name','dgrwh','uuid','152264pZsFrV','gZXnu','EGfuU','jDtBE','eqeks','6adxDGF','1673212ijvUEa','OwhnO','REZZm','UEryT','GET','AgTXK','100879mzlILM','../../utils/utilityMethods','handler','push','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','nBjEw','ERROR','../../utils/instrumentationUtils','name','options','Lyufg','../../config/constants','unknown-error','running','username','CMKoN','error','status','forEach','requestId','log','FcWlS','/packages/cli/get-grids','existsSync'];a15_0x17a8=function(){return _0x197fd2;};return a15_0x17a8();}exports[a15_0x183c0f(0x1a2)]=a15_0x183c0f(0x157),exports[a15_0x183c0f(0x191)]=a15_0x183c0f(0x17b),exports['builder']=function(_0x57352f){const _0x496a4c=a15_0x183c0f,_0x58c816={};_0x58c816[_0x496a4c(0x176)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x58c816[_0x496a4c(0x1af)]='boolean',_0x58c816['REZZm']=_0x496a4c(0x159);const _0x403bcc=_0x58c816,_0x6a672e={};_0x6a672e['description']=_0x403bcc[_0x496a4c(0x176)],_0x6a672e['type']=_0x403bcc[_0x496a4c(0x1af)];const _0x34c4b5={};return _0x34c4b5[_0x496a4c(0x1a7)]=_0x6a672e,_0x57352f[_0x496a4c(0x165)](HELP_HEADER_MESSAGE[_0x496a4c(0x1a9)][_0x496a4c(0x1a8)])[_0x496a4c(0x158)](HELP_FOOTER_MESSAGE)[_0x496a4c(0x180)](_0x34c4b5)['help'](_0x403bcc[_0x496a4c(0x173)])[_0x496a4c(0x192)];},exports[a15_0x183c0f(0x179)]=async function(_0x423f78){const _0x48014c=a15_0x183c0f,_0xeac5bf={'jMecG':function(_0x80a278){return _0x80a278();},'CMKoN':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fHKxC':function(_0x5ab617,_0x13aaa4,_0xbd036a,_0x2ba39c,_0x5bcc06,_0x1a9b41,_0x1652e4){return _0x5ab617(_0x13aaa4,_0xbd036a,_0x2ba39c,_0x5bcc06,_0x1a9b41,_0x1652e4);},'rClhl':_0x48014c(0x162),'nBjEw':'init-not-called','OwhnO':function(_0xe111d){return _0xe111d();},'Khgkm':_0x48014c(0x175),'Lyufg':function(_0x1fbd10,_0x2f9455,_0x2f52d9){return _0x1fbd10(_0x2f9455,_0x2f52d9);},'eqeks':function(_0x339082,_0x4261fa,_0x717cbb){return _0x339082(_0x4261fa,_0x717cbb);},'iTlwI':function(_0x36252b,_0x555730){return _0x36252b!==_0x555730;},'FcWlS':function(_0x577ed0,_0x46df67){return _0x577ed0!==_0x46df67;},'eZUSQ':function(_0x1bf8e8,_0x3ee903){return _0x1bf8e8===_0x3ee903;},'UEryT':_0x48014c(0x190),'EQeVw':'grid-id','WcUUc':_0x48014c(0x168),'dgrwh':'status','jGpZi':_0x48014c(0x184),'HozVU':_0x48014c(0x167),'EGfuU':'cluster-name','gZXnu':function(_0x3df200,_0x439fee){return _0x3df200(_0x439fee);},'vGwDy':_0x48014c(0x155),'jDtBE':'unauthorised','mOASr':_0x48014c(0x15c),'tXnXG':function(_0x452787,_0x504d4c,_0x5a6d74,_0x341d4a,_0x574b9e,_0x57e4aa,_0x54c0ee){return _0x452787(_0x504d4c,_0x5a6d74,_0x341d4a,_0x574b9e,_0x57e4aa,_0x54c0ee);},'lHiVu':_0x48014c(0x183)};try{global_registry[_0x48014c(0x18a)]=_0xeac5bf[_0x48014c(0x15b)](uuidv4);!fs[_0x48014c(0x18e)](_0xeac5bf['jMecG'](getCredentialsPath))&&(console[_0x48014c(0x187)](_0xeac5bf[_0x48014c(0x186)]),await _0xeac5bf[_0x48014c(0x163)](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes[_0x48014c(0x17d)],_0xeac5bf[_0x48014c(0x17c)],null,_0x423f78),process['exit'](0x1));const _0x37b4e9=JSON['parse'](fs[_0x48014c(0x197)](_0xeac5bf[_0x48014c(0x172)](getCredentialsPath)));let _0x565bb6='https://'+AG_API_URL+_0x48014c(0x18d);_0x423f78[_0x48014c(0x1ad)]&&(_0x565bb6=_0x48014c(0x160)+AG_API_URL+_0x48014c(0x166));const _0x40a8d9={'method':_0xeac5bf[_0x48014c(0x164)],'headers':_0xeac5bf[_0x48014c(0x181)](getAuthHeader,_0x37b4e9[_0x48014c(0x15e)]['username'],_0x37b4e9[_0x48014c(0x15e)][_0x48014c(0x18f)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x37b4e9[_0x48014c(0x15e)][_0x48014c(0x185)],global_registry[_0x48014c(0x194)]=_0x37b4e9['Browserstack'][_0x48014c(0x18f)],_0xeac5bf[_0x48014c(0x163)](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes[_0x48014c(0x198)],null,null,_0x423f78);const _0x2890a2=await _0xeac5bf[_0x48014c(0x16f)](got,_0x565bb6,_0x40a8d9);if(_0xeac5bf[_0x48014c(0x19e)](_0x2890a2,null)&&_0xeac5bf[_0x48014c(0x18c)](_0x2890a2,undefined)&&_0xeac5bf[_0x48014c(0x1a6)](_0x2890a2[_0x48014c(0x1ae)],0xc8)){const _0x1fc60b=JSON[_0x48014c(0x196)](_0x2890a2['body']);console[_0x48014c(0x18b)](_0xeac5bf[_0x48014c(0x174)]);const _0x3438bf=[];_0x3438bf['push']([_0xeac5bf[_0x48014c(0x1a3)],_0xeac5bf[_0x48014c(0x15a)],_0xeac5bf[_0x48014c(0x169)],_0xeac5bf[_0x48014c(0x161)],_0xeac5bf[_0x48014c(0x1a1)],_0xeac5bf[_0x48014c(0x16d)]]),_0x1fc60b[_0x48014c(0x189)](_0x117028=>{const _0x527711=_0x48014c;_0x3438bf[_0x527711(0x17a)]([_0x117028['id'],_0x117028[_0x527711(0x17f)],_0x117028[_0x527711(0x188)],_0x117028[_0x527711(0x184)],_0x117028[_0x527711(0x167)],_0x117028[_0x527711(0x19d)]]);}),console[_0x48014c(0x18b)](_0xeac5bf[_0x48014c(0x16c)](table,_0x3438bf)),process[_0x48014c(0x1aa)](0x0);}_0xeac5bf[_0x48014c(0x1a6)](_0x2890a2[_0x48014c(0x1ae)],0x191)&&(console[_0x48014c(0x187)](_0xeac5bf[_0x48014c(0x19c)]),await _0xeac5bf['fHKxC'](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes['ERROR'],_0xeac5bf[_0x48014c(0x16e)],null,_0x423f78),process['exit'](0x1)),console[_0x48014c(0x187)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x48014c(0x1a4)](_0x2890a2)),await _0xeac5bf[_0x48014c(0x163)](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes[_0x48014c(0x17d)],_0xeac5bf[_0x48014c(0x1a5)],_0x2890a2,_0x423f78),process[_0x48014c(0x1aa)](0x1);}catch(_0x5d9f2e){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5d9f2e['stack']),await _0xeac5bf['tXnXG'](sendInstrumentationEvent,_0x423f78,_0xeac5bf[_0x48014c(0x156)],messageTypes[_0x48014c(0x17d)],_0xeac5bf[_0x48014c(0x19b)],_0x5d9f2e,_0x423f78),process[_0x48014c(0x1aa)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x43bde3=a16_0x33e8;function a16_0x530b(){const _0x3a7d4c=['imdML','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','3335470SyZRFd','recommendCommands','14ZokRKe','56jcTkNk','43312mirDXn','1084057yPhsIP','usage','1008849nsmImL','epilogue','96djobJT','precheck_commands','../config/constants','266406qQDAJN','handler','pre-check','1422675SOTkPS','4xMKBPY','OqLBo','6wgdgHg','desc','2189792AkHjJk','demandCommand','9PMszMf','builder'];a16_0x530b=function(){return _0x3a7d4c;};return a16_0x530b();}(function(_0x218f9d,_0x255db7){const _0x24118f=a16_0x33e8,_0x303c3e=_0x218f9d();while(!![]){try{const _0x56ec67=parseInt(_0x24118f(0x10b))/0x1*(-parseInt(_0x24118f(0x10d))/0x2)+parseInt(_0x24118f(0x110))/0x3*(parseInt(_0x24118f(0x119))/0x4)+-parseInt(_0x24118f(0x118))/0x5*(-parseInt(_0x24118f(0x11b))/0x6)+parseInt(_0x24118f(0x115))/0x7*(-parseInt(_0x24118f(0x10c))/0x8)+parseInt(_0x24118f(0x105))/0x9*(-parseInt(_0x24118f(0x109))/0xa)+-parseInt(_0x24118f(0x11d))/0xb+-parseInt(_0x24118f(0x112))/0xc*(-parseInt(_0x24118f(0x10e))/0xd);if(_0x56ec67===_0x255db7)break;else _0x303c3e['push'](_0x303c3e['shift']());}catch(_0x32e5ae){_0x303c3e['push'](_0x303c3e['shift']());}}}(a16_0x530b,0x2d579));function a16_0x33e8(_0x2098bb,_0xce4e53){const _0x530bad=a16_0x530b();return a16_0x33e8=function(_0x33e83b,_0x3d654e){_0x33e83b=_0x33e83b-0x105;let _0x4f0402=_0x530bad[_0x33e83b];return _0x4f0402;},a16_0x33e8(_0x2098bb,_0xce4e53);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x43bde3(0x114));exports['command']=a16_0x43bde3(0x117),exports[a16_0x43bde3(0x11c)]=a16_0x43bde3(0x108),exports[a16_0x43bde3(0x106)]=function(_0x17a177){const _0x17b8c2=a16_0x43bde3,_0x1a3dd6={};_0x1a3dd6[_0x17b8c2(0x11a)]=_0x17b8c2(0x113),_0x1a3dd6[_0x17b8c2(0x107)]='help';const _0x45c98a=_0x1a3dd6;return _0x17a177[_0x17b8c2(0x10f)](HELP_HEADER_MESSAGE['pre_check'])[_0x17b8c2(0x111)](HELP_FOOTER_MESSAGE)['commandDir'](_0x45c98a[_0x17b8c2(0x11a)])[_0x17b8c2(0x11e)]()[_0x17b8c2(0x10a)]()['strict']()['help'](_0x45c98a['imdML']);},exports[a16_0x43bde3(0x116)]=function(_0x19dddd){};
1
+ const a16_0x2b9105=a16_0x54e5;function a16_0x54e5(_0x1e2f0f,_0x3ab2a8){const _0x36a6f2=a16_0x36a6();return a16_0x54e5=function(_0x54e5a0,_0x27da51){_0x54e5a0=_0x54e5a0-0x113;let _0x24c9b9=_0x36a6f2[_0x54e5a0];return _0x24c9b9;},a16_0x54e5(_0x1e2f0f,_0x3ab2a8);}(function(_0x5cf725,_0x3221d5){const _0x70fea3=a16_0x54e5,_0x50b2fb=_0x5cf725();while(!![]){try{const _0x11d6e3=-parseInt(_0x70fea3(0x121))/0x1*(-parseInt(_0x70fea3(0x115))/0x2)+-parseInt(_0x70fea3(0x11e))/0x3*(parseInt(_0x70fea3(0x122))/0x4)+parseInt(_0x70fea3(0x12e))/0x5+-parseInt(_0x70fea3(0x120))/0x6*(-parseInt(_0x70fea3(0x11b))/0x7)+-parseInt(_0x70fea3(0x114))/0x8*(parseInt(_0x70fea3(0x125))/0x9)+-parseInt(_0x70fea3(0x127))/0xa*(parseInt(_0x70fea3(0x113))/0xb)+parseInt(_0x70fea3(0x12a))/0xc*(parseInt(_0x70fea3(0x11c))/0xd);if(_0x11d6e3===_0x3221d5)break;else _0x50b2fb['push'](_0x50b2fb['shift']());}catch(_0x4f4a09){_0x50b2fb['push'](_0x50b2fb['shift']());}}}(a16_0x36a6,0xcd979));function a16_0x36a6(){const _0x20f130=['commandDir','strict','3240710WbnHnX','194139awwfpZ','35536tTLaiK','12526AQlJGO','pre_check','desc','epilogue','demandCommand','precheck_commands','7zoJDjO','1601938FIZhJg','pre-check','1874829rtBgWL','EkNMh','9494922isCvzh','45xRaDGi','4pEamli','recommendCommands','builder','1152ozMBzW','../config/constants','340rGmgMZ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','oUPOM','12DbmPBC','command'];a16_0x36a6=function(){return _0x20f130;};return a16_0x36a6();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2b9105(0x126));exports[a16_0x2b9105(0x12b)]=a16_0x2b9105(0x11d),exports[a16_0x2b9105(0x117)]=a16_0x2b9105(0x128),exports[a16_0x2b9105(0x124)]=function(_0x38da6f){const _0x430247=a16_0x2b9105,_0xcf000e={};_0xcf000e['oUPOM']=_0x430247(0x11a),_0xcf000e[_0x430247(0x11f)]='help';const _0x4f409a=_0xcf000e;return _0x38da6f['usage'](HELP_HEADER_MESSAGE[_0x430247(0x116)])[_0x430247(0x118)](HELP_FOOTER_MESSAGE)[_0x430247(0x12c)](_0x4f409a[_0x430247(0x129)])[_0x430247(0x119)]()[_0x430247(0x123)]()[_0x430247(0x12d)]()['help'](_0x4f409a[_0x430247(0x11f)]);},exports['handler']=function(_0x560b08){};
@@ -1 +1 @@
1
- function a17_0x593d(){const _0x5ecf70=['Cluster\x20','kfcto','jANDo','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','grid','isTrialGridAccessible','HGZwd','readFileSync','FNMNX','WMNYk','Setting\x20cloud\x20provider\x20as\x20','pre-check-grid-called',']\x20status\x20:\x20','KMQjE','wLiAU','replace','isClusterPresent','25985YKrmqd','wwepr','description','MBieR','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','response','handler','cluster-name','rkmkB','fcHwv','../../cloudproviders/utils','11TvlRHn','TICHz','aCHrl','forEach','isTls1_2_SUPPORTED','\x20data\x20:\x20','144264WNVvHW','utbhQ','EKWkD','Failure','`\x20already\x20exists','cJdEU','argv','bRqEm','DmdaE','<UsernamePlaceholder>','yuNFK','JwWpK','existsSync','../../utils/instrumentationUtils','bWLrD','join','yJfwh','method','credential-not-found','sXrgY','ZcMDY','cIOZo','pre-check','AuQIy','SXHYK','code','Error\x20Details:\x0a','ZjRjb','find','Cluster\x20details\x0a-----------------------\x0a','split','vgjtH','delay','<PasswordPlaceholder>','debug','Status:\x20','EqYha','Whitelisted\x20browserstack','status','cloud-provider','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','XtIXT','cluster-check-failed-','jUnRX','stack\x20trace\x20','PMcFU','tlDVx','string','desc','32424MYMlrP','zVvLv','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','will\x20be\x20created','AYpXw','BDCOB','AlcsH','CLOUD_PROVIDER','xOjRB','\x20===\x0a\x0a','IAKXs','fnmpA','info','getUTCMinutes','kRtea','push','data','auNpF','kDytp','AfhSf','MTuEg','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','password','Obnss','Rrmpq','qvDgl','BrZTV','../../utils/webSocketUtils','name','JWZkT','1896830luZiDP','YhGTT','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','dummy-grid','aRqZK','accessResp','SVROQ','PivKY','cloudProvider','BpwWP','grid-profile','stringify','jAvRV','3778344lXrKFk','toolInstalledResp','grid\x20profile\x20flow\x20','../../utils/utilityMethods','qKxCt','bstackAccesskey','JnTsO','SSL\x20Configured','1035rehzAP','altJJ','.txt','KveDh','\x20\x20Message:\x20','header','command','stack','bstackUsername','help','region','clusterRegion','LTJSP','/packages/cli/get-all-grid-profiles','authHeader','got','LOG','sCkwL','pre-check-cluster-args-not-passed','`\x20,error\x20:\x20','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','GlDxc','znbxe','TjXfz','../../config/constants','getUTCMonth','VVFkS','usage','osdKX','hqeau','26cAaPBC','gridProfile','\x20\x20Stack:\x20','uuid','jTWKm','CARCE','getUTCHours','Pre-check\x20running\x20for\x20Cloud\x20-\x20','IjaxH','\x20error\x20:\x20','nnVMz','error\x20stack\x20:\x20','CtyAe','rfgzr','log/report_','GWvaJ','type','Invalid\x20input.\x20grid\x20profiles:\x20','HPyLj','nSFeC','Success','username','exit','ERROR','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Grid\x20profile\x20fetched\x20for\x20pre-check','headers','BYIOZ','body','xzDIZ','EREWB','includes','requestId','rmDQy','qJmzZ','HwExf','Tool\x20Installed','duYyE','../../config/logger','ckpwH','INFO','GeTKF','pre_check','pre-check-failed','error','oSVGr','182rDeaOM','pfhef','\x20\x20Code:\x20','mnqZC','\x20region\x20-\x20','parse','wWIRa','UYOVA','Message:\x20','clusterName','reconnecting-websocket','message','is\x20already\x20present','AOkFQ','jqvbF','N/A','hiYpw','`\x20is\x20present\x20in\x20region\x20`','mNxJP','unable\x20to\x20verify\x20if\x20cluster\x20`','eYfnn','Browserstack','mNHrM','isCliToolInstalled','User\x20Access','UZgjg','9189CJlDvh','628DEemFG','CRFiI','TLSv1_2_client_method','LKlck','connectionTimeout','toLowerCase','UsEeI','lkNzj','eSMil','XWxea','===\x20Precheck\x20Report\x20-\x20','JzYfA','length','qWMhW','282001PEwcce','Cluster\x20`','HIlLk','GZKPx','kovQz','lFRKP'];a17_0x593d=function(){return _0x5ecf70;};return a17_0x593d();}const a17_0x269809=a17_0x253f;(function(_0x101c02,_0x40eccd){const _0x1a494d=a17_0x253f,_0x3ad270=_0x101c02();while(!![]){try{const _0x202f81=-parseInt(_0x1a494d(0x21f))/0x1+-parseInt(_0x1a494d(0x1c8))/0x2*(parseInt(_0x1a494d(0x210))/0x3)+-parseInt(_0x1a494d(0x211))/0x4*(parseInt(_0x1a494d(0x236))/0x5)+-parseInt(_0x1a494d(0x247))/0x6*(-parseInt(_0x1a494d(0x1f6))/0x7)+-parseInt(_0x1a494d(0x177))/0x8*(-parseInt(_0x1a494d(0x1aa))/0x9)+-parseInt(_0x1a494d(0x195))/0xa*(-parseInt(_0x1a494d(0x241))/0xb)+parseInt(_0x1a494d(0x1a2))/0xc;if(_0x202f81===_0x40eccd)break;else _0x3ad270['push'](_0x3ad270['shift']());}catch(_0x261baa){_0x3ad270['push'](_0x3ad270['shift']());}}}(a17_0x593d,0x6fd33));const fs=require('fs'),ws=require('ws'),got=require(a17_0x269809(0x1b9)),{v4:uuidv4}=require(a17_0x269809(0x1cb)),ReconnectingWebSocket=require(a17_0x269809(0x200)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x269809(0x1a5)),{logger}=require(a17_0x269809(0x1ee)),{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_0x269809(0x1c2)),{getCloudProviderObjectWithOutInit}=require(a17_0x269809(0x240)),webSocketUtils=require(a17_0x269809(0x192)),{sendInstrumentationEvent}=require(a17_0x269809(0x254));function a17_0x253f(_0x38918b,_0x2cc759){const _0x593d24=a17_0x593d();return a17_0x253f=function(_0x253fa8,_0x5b22c2){_0x253fa8=_0x253fa8-0x155;let _0x300d06=_0x593d24[_0x253fa8];return _0x300d06;},a17_0x253f(_0x38918b,_0x2cc759);}exports[a17_0x269809(0x1b0)]=a17_0x269809(0x229),exports[a17_0x269809(0x176)]=a17_0x269809(0x18c),exports['builder']=function(_0x1073c0){const _0x3a4593=a17_0x269809,_0x35b58f={};_0x35b58f['BpwWP']=_0x3a4593(0x197),_0x35b58f['fcHwv']=_0x3a4593(0x175),_0x35b58f[_0x3a4593(0x1d2)]=_0x3a4593(0x1e0),_0x35b58f[_0x3a4593(0x20a)]=_0x3a4593(0x228),_0x35b58f[_0x3a4593(0x227)]=_0x3a4593(0x16e),_0x35b58f['aCHrl']='help';const _0x5d6161=_0x35b58f,_0x1ec0f7={};_0x1ec0f7['description']=_0x5d6161[_0x3a4593(0x19e)],_0x1ec0f7[_0x3a4593(0x1d8)]=_0x5d6161[_0x3a4593(0x23f)];const _0x11e9c5={};_0x11e9c5[_0x3a4593(0x238)]=_0x5d6161[_0x3a4593(0x1d2)],_0x11e9c5['type']=_0x5d6161['fcHwv'];const _0xde60a0={};_0xde60a0[_0x3a4593(0x238)]=_0x5d6161[_0x3a4593(0x20a)],_0xde60a0[_0x3a4593(0x1d8)]=_0x5d6161['fcHwv'];const _0x1b1475={};_0x1b1475[_0x3a4593(0x238)]=_0x5d6161[_0x3a4593(0x227)],_0x1b1475['type']=_0x5d6161[_0x3a4593(0x23f)];const _0x3cfcea={};return _0x3cfcea['cluster-name']=_0x1ec0f7,_0x3cfcea[_0x3a4593(0x16d)]=_0x11e9c5,_0x3cfcea[_0x3a4593(0x1b4)]=_0xde60a0,_0x3cfcea[_0x3a4593(0x19f)]=_0x1b1475,_0x1073c0[_0x3a4593(0x1c5)](HELP_HEADER_MESSAGE[_0x3a4593(0x1f2)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x3cfcea)[_0x3a4593(0x1b3)](_0x5d6161[_0x3a4593(0x243)])[_0x3a4593(0x24d)];};async function inputValidation(_0x2dd370,_0x31a62e){const _0x5cd3ce=a17_0x269809,_0x314600={'cIOZo':_0x5cd3ce(0x197),'wLiAU':_0x5cd3ce(0x175),'tlDVx':_0x5cd3ce(0x1e0),'TYDqJ':_0x5cd3ce(0x228),'UsEeI':_0x5cd3ce(0x16e),'DmdaE':'help','sCkwL':'region','lkNzj':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','CbjcK':_0x5cd3ce(0x160),'znbxe':'N/A','duYyE':_0x5cd3ce(0x16d),'CARCE':_0x5cd3ce(0x23d),'HfbPp':_0x5cd3ce(0x202),'IAKXs':_0x5cd3ce(0x17a),'yuNFK':_0x5cd3ce(0x1f4),'VVFkS':function(_0x57beab,_0x4f30b0){return _0x57beab!==_0x4f30b0;},'bWLrD':_0x5cd3ce(0x15e),'WMNYk':function(_0xc9a246,_0x747c3){return _0xc9a246===_0x747c3;},'PMcFU':_0x5cd3ce(0x239),'OsIhk':_0x5cd3ce(0x1ea),'GlDxc':'YLPfW','EREWB':_0x5cd3ce(0x204),'HPyLj':_0x5cd3ce(0x203),'aRqZK':_0x5cd3ce(0x1f1),'cdatD':function(_0x5535e0,_0x57ac83){return _0x5535e0===_0x57ac83;},'UYOVA':'RvVJs','qvDgl':function(_0x2e0bfe,_0x56ec40){return _0x2e0bfe>_0x56ec40;},'wWIRa':_0x5cd3ce(0x16a),'pfhef':_0x5cd3ce(0x1c1),'eSMil':function(_0x3073fd,_0x1088f4,_0x3ee22a,_0x5303d1,_0x43138b,_0x4e3f26,_0x1162e2,_0x3cad9f){return _0x3073fd(_0x1088f4,_0x3ee22a,_0x5303d1,_0x43138b,_0x4e3f26,_0x1162e2,_0x3cad9f);},'wwepr':_0x5cd3ce(0x230),'uxzRf':_0x5cd3ce(0x1bc),'FNMNX':function(_0x12813f,_0x38f1e5){return _0x12813f===_0x38f1e5;},'KveDh':_0x5cd3ce(0x18e),'BrZTV':_0x5cd3ce(0x18a),'BYIOZ':_0x5cd3ce(0x1be),'EvGEh':'cloud-provider-not-supported','CRFiI':function(_0x688547,_0x477128){return _0x688547===_0x477128;},'VHedk':_0x5cd3ce(0x1cc),'GWvaJ':'RGWNY','xOjRB':function(_0x21a3de,_0x1663d0){return _0x21a3de!==_0x1663d0;},'JWZkT':'omLdW','eSIvw':'GET','kRtea':function(_0x268ae8,_0x54d1f9,_0x4b4978){return _0x268ae8(_0x54d1f9,_0x4b4978);},'IjaxH':function(_0x23c623,_0xcecc36,_0x5cc555,_0x32cce0,_0x2134d1,_0x299ce9){return _0x23c623(_0xcecc36,_0x5cc555,_0x32cce0,_0x2134d1,_0x299ce9);},'EKWkD':_0x5cd3ce(0x15c),'LTJSP':'grid-profile','RHUVU':function(_0x2eb800,_0x22d907){return _0x2eb800===_0x22d907;},'bOnCj':function(_0x533683,_0xcf18cd){return _0x533683!==_0xcf18cd;},'GZKPx':_0x5cd3ce(0x23e),'kfcto':_0x5cd3ce(0x189),'hiYpw':function(_0x2d9362,_0x5972f6){return _0x2d9362(_0x5972f6);},'dFbBb':function(_0x4ab7eb,_0x5b36db){return _0x4ab7eb!==_0x5b36db;},'erYwn':_0x5cd3ce(0x156),'oSVGr':'pjaxw','NpiFu':'pre-check-grid-profile-empty','mNHrM':_0x5cd3ce(0x1eb),'XtIXT':'VWxjp','utbhQ':'cUNMC','AlcsH':'lweAL','AYpXw':_0x5cd3ce(0x1e1),'YhGTT':function(_0x5532ad,_0x181da1){return _0x5532ad!==_0x181da1;},'kovQz':_0x5cd3ce(0x208),'fnmpA':_0x5cd3ce(0x21a),'rmDQy':'CMXZx'};let _0x47f094;try{if(_0x314600[_0x5cd3ce(0x1c4)](_0x314600[_0x5cd3ce(0x255)],_0x314600['bWLrD'])){const _0x794ee={};_0x794ee[_0x5cd3ce(0x238)]=_0x314600[_0x5cd3ce(0x15b)],_0x794ee['type']=_0x314600[_0x5cd3ce(0x233)];const _0x37df9d={};_0x37df9d[_0x5cd3ce(0x238)]=_0x314600[_0x5cd3ce(0x174)],_0x37df9d[_0x5cd3ce(0x1d8)]=_0x314600[_0x5cd3ce(0x233)];const _0x158a32={};_0x158a32[_0x5cd3ce(0x238)]=_0x314600['TYDqJ'],_0x158a32['type']=_0x314600[_0x5cd3ce(0x233)];const _0x36d5be={};_0x36d5be['description']=_0x314600[_0x5cd3ce(0x217)],_0x36d5be[_0x5cd3ce(0x1d8)]=_0x314600['wLiAU'];const _0x326aa9={};return _0x326aa9[_0x5cd3ce(0x23d)]=_0x794ee,_0x326aa9[_0x5cd3ce(0x16d)]=_0x37df9d,_0x326aa9[_0x5cd3ce(0x1b4)]=_0x158a32,_0x326aa9[_0x5cd3ce(0x19f)]=_0x36d5be,_0x4d1622[_0x5cd3ce(0x1c5)](_0x3645af['pre_check'])['epilogue'](_0x1e05d3)['options'](_0x326aa9)[_0x5cd3ce(0x1b3)](_0x314600[_0x5cd3ce(0x24f)])[_0x5cd3ce(0x24d)];}else{if(_0x2dd370[_0x5cd3ce(0x1ff)]||_0x2dd370[_0x5cd3ce(0x19d)]||_0x2dd370[_0x5cd3ce(0x1b4)]){if(_0x314600[_0x5cd3ce(0x22e)](_0x314600[_0x5cd3ce(0x173)],_0x314600['OsIhk']))_0x55b6f0[_0x5cd3ce(0x186)](_0x314600['sCkwL']);else{const _0x1a13bf=[];!_0x2dd370[_0x5cd3ce(0x1ff)]&&(_0x314600[_0x5cd3ce(0x22e)](_0x314600[_0x5cd3ce(0x1bf)],_0x314600[_0x5cd3ce(0x1e6)])?(_0x3b8a9e[_0x5cd3ce(0x1f4)](_0x314600[_0x5cd3ce(0x218)]),_0x190727[_0x5cd3ce(0x1de)](0x1)):_0x1a13bf[_0x5cd3ce(0x186)](_0x314600[_0x5cd3ce(0x1cd)]));;!_0x2dd370['cloudProvider']&&(_0x314600[_0x5cd3ce(0x1c4)](_0x314600[_0x5cd3ce(0x1da)],_0x314600[_0x5cd3ce(0x199)])?_0x1a13bf[_0x5cd3ce(0x186)](_0x314600[_0x5cd3ce(0x1ed)]):(_0x4dba88+=_0x314600['CbjcK'],_0x33c4fd+='\x20\x20Message:\x20'+(_0x337192[_0x5cd3ce(0x201)]||_0x314600[_0x5cd3ce(0x1c0)])+'\x0a',_0xcf22bd+='\x20\x20Code:\x20'+(_0x246b6a[_0x5cd3ce(0x15f)]||_0x314600['znbxe'])+'\x0a',_0x5dbaa4+=_0x5cd3ce(0x1ca)+(_0x54bc04[_0x5cd3ce(0x1b1)]||_0x314600[_0x5cd3ce(0x1c0)])+'\x0a'));;!_0x2dd370[_0x5cd3ce(0x1b4)]&&(_0x314600['cdatD'](_0x314600[_0x5cd3ce(0x1fd)],_0x314600[_0x5cd3ce(0x1fd)])?_0x1a13bf[_0x5cd3ce(0x186)](_0x314600[_0x5cd3ce(0x1bb)]):_0x5d6f08[_0x5cd3ce(0x186)](_0x314600['duYyE']));;_0x314600[_0x5cd3ce(0x190)](_0x1a13bf[_0x5cd3ce(0x21d)],0x0)&&(_0x314600['cdatD'](_0x314600[_0x5cd3ce(0x1fc)],_0x314600[_0x5cd3ce(0x1f7)])?_0x541817[_0x5cd3ce(0x183)](_0x5cd3ce(0x220)+_0x6b717e[_0x5cd3ce(0x1ff)]+_0x5cd3ce(0x24b)):(_0x47f094='Missing\x20required\x20arguments:\x20'+_0x1a13bf[_0x5cd3ce(0x155)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x314600[_0x5cd3ce(0x219)](reportToGalactusAndSendToEDS,_0x2dd370,_0x31a62e,_0x47f094,messageTypes['ERROR'],_0x314600[_0x5cd3ce(0x237)],_0x314600['uxzRf'],_0x314600[_0x5cd3ce(0x251)]),logger['error'](_0x47f094),process[_0x5cd3ce(0x1de)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x5cd3ce(0x1e7)](_0x2dd370[_0x5cd3ce(0x19d)][_0x5cd3ce(0x216)]())&&(_0x314600[_0x5cd3ce(0x22d)](_0x314600[_0x5cd3ce(0x1ad)],_0x314600[_0x5cd3ce(0x191)])?_0xc7e482[_0x5cd3ce(0x1de)](0x1):(_0x47f094=_0x314600[_0x5cd3ce(0x1e3)],await _0x314600[_0x5cd3ce(0x219)](reportToGalactusAndSendToEDS,_0x2dd370,_0x31a62e,_0x47f094,messageTypes[_0x5cd3ce(0x1df)],_0x314600[_0x5cd3ce(0x237)],_0x314600['EvGEh'],_0x314600[_0x5cd3ce(0x251)]),logger[_0x5cd3ce(0x1f4)](_0x47f094),!_0x2dd370[_0x5cd3ce(0x19d)]&&(_0x314600[_0x5cd3ce(0x212)](_0x314600['VHedk'],_0x314600[_0x5cd3ce(0x1d7)])?(_0x592a07[_0x5cd3ce(0x183)]('['+_0x2b08b5+_0x5cd3ce(0x231)+_0x83a004[_0x5cd3ce(0x16c)]+_0x5cd3ce(0x246)+_0x5598b3[_0x5cd3ce(0x187)]+'\x20error\x20:\x20'+_0x281bfe[_0x5cd3ce(0x1f4)]),_0x16eb82['error']&&_0x37fd8e['error']('error\x20stack\x20:\x20'+_0x1fe597[_0x5cd3ce(0x1f4)][_0x5cd3ce(0x1b1)])):(logger['info'](_0x5cd3ce(0x22f)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x2dd370[_0x5cd3ce(0x19d)]=DEFAULT_CLUSTER_DETAILS[_0x5cd3ce(0x17e)])))),global_registry['clusterName']=_0x2dd370[_0x5cd3ce(0x1ff)],global_registry[_0x5cd3ce(0x19d)]=_0x2dd370[_0x5cd3ce(0x19d)],global_registry[_0x5cd3ce(0x1b5)]=_0x2dd370['region'];}}else{if(_0x2dd370[_0x5cd3ce(0x1c9)]){if(_0x314600[_0x5cd3ce(0x17f)](_0x314600['JWZkT'],_0x314600[_0x5cd3ce(0x194)]))_0x466b14[_0x5cd3ce(0x186)](_0x314600['CARCE']);else{global_registry[_0x5cd3ce(0x1c9)]=_0x2dd370[_0x5cd3ce(0x1c9)],logger['debug'](_0x5cd3ce(0x1a4)+_0x2dd370['gridProfile']);const _0x5c44ff='https://'+AG_API_URL+_0x5cd3ce(0x1b7),_0x2285c8={};_0x2285c8[_0x5cd3ce(0x157)]=_0x314600['eSIvw'],_0x2285c8[_0x5cd3ce(0x1e2)]=global_registry['authHeader'],_0x2285c8['throwHttpErrors']=![];const _0x1a9382=_0x2285c8,_0xaa80b7=await _0x314600[_0x5cd3ce(0x185)](got,_0x5c44ff,_0x1a9382),_0x35f119=await _0x314600[_0x5cd3ce(0x1d0)](responseValidation,_0xaa80b7,_0x314600[_0x5cd3ce(0x249)],_0x314600[_0x5cd3ce(0x1b6)],_0x2dd370,_0x31a62e);let _0x463fd4={};if(_0x314600['RHUVU'](_0x35f119,0xc8)){if(_0x314600['bOnCj'](_0x314600[_0x5cd3ce(0x222)],_0x314600[_0x5cd3ce(0x226)])){const _0x1e15c9=JSON['parse'](_0xaa80b7[_0x5cd3ce(0x1e4)]),_0x39904a=_0x1e15c9[_0x5cd3ce(0x162)](_0x26af96=>_0x26af96[_0x5cd3ce(0x193)]===_0x2dd370[_0x5cd3ce(0x1c9)])||null;_0x314600[_0x5cd3ce(0x206)](isUndefined,_0x39904a)?_0x314600['dFbBb'](_0x314600['erYwn'],_0x314600[_0x5cd3ce(0x1f5)])?(_0x47f094=_0x5cd3ce(0x1d9)+_0x2dd370[_0x5cd3ce(0x1c9)]+_0x5cd3ce(0x23a),await _0x314600[_0x5cd3ce(0x219)](reportToGalactusAndSendToEDS,_0x2dd370,_0x31a62e,_0x47f094,messageTypes[_0x5cd3ce(0x1df)],_0x314600[_0x5cd3ce(0x237)],_0x314600['NpiFu'],_0x314600[_0x5cd3ce(0x251)]),logger['error'](_0x47f094),process['exit'](0x1)):(_0x1e93ab[_0x5cd3ce(0x183)](_0x5cd3ce(0x22f)+_0x12b03b['CLOUD_PROVIDER']+'\x20'),_0x49d2e0[_0x5cd3ce(0x19d)]=_0x18fb21[_0x5cd3ce(0x17e)]):_0x314600['cdatD'](_0x314600[_0x5cd3ce(0x20c)],_0x314600[_0x5cd3ce(0x16f)])?_0xc9f66b['error'](_0x5cd3ce(0x1d3)+_0xe72361['error'][_0x5cd3ce(0x1b1)]):_0x463fd4=_0x39904a;}else _0x5877d6+='Cluster\x20'+_0x76445d[_0x5cd3ce(0x1ff)]+'\x20'+(_0x2923d6?_0x314600['HfbPp']:_0x314600[_0x5cd3ce(0x181)])+'\x0a\x0a';}else _0x314600[_0x5cd3ce(0x17f)](_0x314600[_0x5cd3ce(0x248)],_0x314600[_0x5cd3ce(0x17d)])?process[_0x5cd3ce(0x1de)](0x1):_0xdb61e9=_0x292715;const _0x3ee05e={};_0x3ee05e[_0x5cd3ce(0x1d8)]=WS_EVENTS['LOG'],_0x3ee05e['message']=_0x314600[_0x5cd3ce(0x17b)],webSocketUtils['sendEventToBackend'](_0x31a62e,_0x3ee05e),global_registry['cloudProvider']=_0x463fd4[_0x5cd3ce(0x19d)],global_registry[_0x5cd3ce(0x1b5)]=_0x463fd4['region'],global_registry[_0x5cd3ce(0x1ff)]=_0x463fd4[_0x5cd3ce(0x1ff)];}}else _0x314600[_0x5cd3ce(0x196)](_0x314600[_0x5cd3ce(0x223)],_0x314600[_0x5cd3ce(0x182)])?(logger[_0x5cd3ce(0x1f4)](_0x314600[_0x5cd3ce(0x218)]),process[_0x5cd3ce(0x1de)](0x1)):_0x1edea6+=_0x5cd3ce(0x225)+_0x2ec875[_0x5cd3ce(0x1ff)]+_0x5cd3ce(0x179);}}}catch(_0x6eef0f){if(_0x314600['FNMNX'](_0x314600[_0x5cd3ce(0x1e9)],_0x314600['rmDQy']))_0x47f094='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x6eef0f+':\x20'+_0x6eef0f['stack'],logger[_0x5cd3ce(0x1f4)](_0x47f094),await _0x314600[_0x5cd3ce(0x219)](reportToGalactusAndSendToEDS,_0x2dd370,_0x31a62e,_0x47f094,messageTypes['ERROR'],_0x314600[_0x5cd3ce(0x237)],_0x314600['EvGEh'],_0x314600[_0x5cd3ce(0x251)]),process['exit'](0x1);else{const _0x578223={};_0x578223[_0x5cd3ce(0x1d8)]=_0x29375d[_0x5cd3ce(0x1ba)],_0x578223['message']=_0x1a97cd,_0x6e7b42['sendEventToBackend'](_0x577b9f,_0x578223,_0x314600[_0x5cd3ce(0x251)],!![]);}}}function printResponse(_0x5a590b,_0x9fd727){const _0x37d885=a17_0x269809,_0x32491b={};_0x32491b[_0x37d885(0x159)]=function(_0xfbfcb2,_0x17d252){return _0xfbfcb2+_0x17d252;},_0x32491b[_0x37d885(0x252)]=_0x37d885(0x1dc),_0x32491b[_0x37d885(0x221)]='Failure',_0x32491b['mnqZC']=function(_0x455cb8,_0x15d167){return _0x455cb8||_0x15d167;},_0x32491b[_0x37d885(0x232)]='N/A',_0x32491b[_0x37d885(0x21e)]=_0x37d885(0x160),_0x32491b[_0x37d885(0x20f)]=function(_0xcee832,_0x406195){return _0xcee832!==_0x406195;},_0x32491b[_0x37d885(0x18b)]='LoATi';const _0x5b7f5f=_0x32491b;logger[_0x37d885(0x183)]('['+_0x5a590b+_0x37d885(0x231)+_0x9fd727[_0x37d885(0x16c)]+_0x37d885(0x246)+_0x9fd727[_0x37d885(0x187)]+_0x37d885(0x1d1)+_0x9fd727[_0x37d885(0x1f4)]);if(_0x9fd727[_0x37d885(0x1f4)]){if(_0x5b7f5f['UZgjg'](_0x5b7f5f[_0x37d885(0x18b)],_0x5b7f5f['MTuEg'])){const {header:_0x87ddcc,response:_0x1549e5}=_0x44e06c,{status:_0x3a2a9e,data:_0x759141,error:_0x115f75}=_0x1549e5;_0x3f951a+=_0x87ddcc+'\x20#'+_0x5b7f5f[_0x37d885(0x159)](_0x3dd330,0x1)+'\x0a',_0xda1d3f+=_0x37d885(0x169)+(_0x3a2a9e?_0x5b7f5f[_0x37d885(0x252)]:_0x5b7f5f[_0x37d885(0x221)])+'\x0a',_0x1128d5+=_0x37d885(0x1fe)+_0x5b7f5f[_0x37d885(0x1f9)](_0x759141,_0x5b7f5f['KMQjE'])+'\x0a',_0x115f75&&(_0x5c88cc+=_0x5b7f5f[_0x37d885(0x21e)],_0x10ddd4+=_0x37d885(0x1ae)+(_0x115f75[_0x37d885(0x201)]||_0x5b7f5f[_0x37d885(0x232)])+'\x0a',_0x544cc9+=_0x37d885(0x1f8)+(_0x115f75[_0x37d885(0x15f)]||_0x5b7f5f['KMQjE'])+'\x0a',_0x36930d+=_0x37d885(0x1ca)+(_0x115f75[_0x37d885(0x1b1)]||_0x5b7f5f[_0x37d885(0x232)])+'\x0a'),_0x413de5+='\x0a\x0a';}else logger['error'](_0x37d885(0x1d3)+_0x9fd727['error'][_0x37d885(0x1b1)]);}}async function generateReport(_0x2aa719,_0x500987){const _0xbb63eb=a17_0x269809,_0x3219c3={'JnTsO':function(_0x5e4c81,_0x523043){return _0x5e4c81+_0x523043;},'jUnRX':_0xbb63eb(0x1dc),'osdKX':_0xbb63eb(0x24a),'meCPz':function(_0x3acba6,_0x2d5545){return _0x3acba6||_0x2d5545;},'ckpwH':_0xbb63eb(0x205),'TICHz':_0xbb63eb(0x160),'eXQxO':_0xbb63eb(0x163),'AkQpQ':function(_0x42d525,_0x4d1c04){return _0x42d525!=_0x4d1c04;},'BDCOB':_0xbb63eb(0x202),'oDxRZ':_0xbb63eb(0x17a),'CtyAe':function(_0xb58ef){return _0xb58ef();}};let _0x216467=_0xbb63eb(0x21b)+global_registry[_0xbb63eb(0x19d)]+_0xbb63eb(0x180);return _0x2aa719[_0xbb63eb(0x244)]((_0x9399f9,_0xbba98e)=>{const _0x3791e3=_0xbb63eb,{header:_0x9cffbf,response:_0x404ea8}=_0x9399f9,{status:_0x430d32,data:_0x59d89f,error:_0x74b7fa}=_0x404ea8;_0x216467+=_0x9cffbf+'\x20#'+_0x3219c3[_0x3791e3(0x1a8)](_0xbba98e,0x1)+'\x0a',_0x216467+='Status:\x20'+(_0x430d32?_0x3219c3[_0x3791e3(0x171)]:_0x3219c3[_0x3791e3(0x1c6)])+'\x0a',_0x216467+=_0x3791e3(0x1fe)+_0x3219c3['meCPz'](_0x59d89f,_0x3219c3[_0x3791e3(0x1ef)])+'\x0a',_0x74b7fa&&(_0x216467+=_0x3219c3[_0x3791e3(0x242)],_0x216467+=_0x3791e3(0x1ae)+(_0x74b7fa[_0x3791e3(0x201)]||_0x3219c3[_0x3791e3(0x1ef)])+'\x0a',_0x216467+='\x20\x20Code:\x20'+(_0x74b7fa[_0x3791e3(0x15f)]||_0x3219c3[_0x3791e3(0x1ef)])+'\x0a',_0x216467+=_0x3791e3(0x1ca)+(_0x74b7fa['stack']||_0x3219c3[_0x3791e3(0x1ef)])+'\x0a'),_0x216467+='\x0a\x0a';}),_0x216467+=_0x3219c3['eXQxO'],_0x3219c3['AkQpQ'](_0x500987,null)?_0x216467+='Cluster\x20'+global_registry[_0xbb63eb(0x1ff)]+'\x20'+(_0x500987?_0x3219c3[_0xbb63eb(0x17c)]:_0x3219c3['oDxRZ'])+'\x0a\x0a':_0x216467+=_0xbb63eb(0x225)+global_registry[_0xbb63eb(0x1ff)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x216467+=_0x3219c3[_0xbb63eb(0x1d4)](getSystemMetaData),_0x216467;};exports[a17_0x269809(0x23c)]=async function(_0x3b38e5){const _0x431cc7=a17_0x269809,_0x20bd28={'Rrmpq':function(_0x55b2ce){return _0x55b2ce();},'JzYfA':function(_0x4a1ffb){return _0x4a1ffb();},'cDVLz':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HGZwd':function(_0x2b9466,_0x5dcb21,_0x1a1f97,_0x79dc6,_0x1102dc,_0x1a4d79,_0x3a1939,_0x25cad4){return _0x2b9466(_0x5dcb21,_0x1a1f97,_0x79dc6,_0x1102dc,_0x1a4d79,_0x3a1939,_0x25cad4);},'xzDIZ':_0x431cc7(0x230),'altJJ':_0x431cc7(0x158),'ZjRjb':_0x431cc7(0x1f4),'zVvLv':function(_0x24ec86,_0x2f4e36,_0xc7626f,_0x2e8084,_0x273d17,_0x42fe8d,_0x1f88cb){return _0x24ec86(_0x2f4e36,_0xc7626f,_0x2e8084,_0x273d17,_0x42fe8d,_0x1f88cb);},'EGzbu':function(_0x58306e){return _0x58306e();},'PivKY':_0x431cc7(0x250),'tGwTU':_0x431cc7(0x167),'auNpF':function(_0x599980,_0x20407d,_0x284125){return _0x599980(_0x20407d,_0x284125);},'LKlck':function(_0xdc32db,_0x41607e,_0x50292b,_0x2c071a,_0xe18f7,_0x161456,_0x26b699){return _0xdc32db(_0x41607e,_0x50292b,_0x2c071a,_0xe18f7,_0x161456,_0x26b699);},'fOmMK':_0x431cc7(0x198),'lFRKP':function(_0x1f8fc7,_0x590130,_0x772c1e){return _0x1f8fc7(_0x590130,_0x772c1e);},'SVROQ':_0x431cc7(0x1a3),'hqeau':'1|3|0|2|4','ITvwn':function(_0x19417c,_0x273157,_0x1c6fcc){return _0x19417c(_0x273157,_0x1c6fcc);},'jAvRV':_0x431cc7(0x19a),'bRqEm':_0x431cc7(0x22a),'AqECg':function(_0x34faca,_0x4de572){return _0x34faca(_0x4de572);},'Cdojl':_0x431cc7(0x213),'ZcMDY':function(_0x257eae,_0x4746c9,_0x4bf0ce){return _0x257eae(_0x4746c9,_0x4bf0ce);},'nSFeC':_0x431cc7(0x245),'WrBsN':_0x431cc7(0x1ec),'cJdEU':_0x431cc7(0x20e),'qKxCt':_0x431cc7(0x16b),'AuQIy':_0x431cc7(0x1a9),'DNABV':function(_0x47e5a1,_0x13dcb5){return _0x47e5a1+_0x13dcb5;},'vgjtH':'utf-8','rfgzr':_0x431cc7(0x1f3)};let _0x3ba377,_0x162bfe;try{global_registry[_0x431cc7(0x1e8)]=_0x20bd28[_0x431cc7(0x18f)](uuidv4);!fs[_0x431cc7(0x253)](_0x20bd28[_0x431cc7(0x21c)](getCredentialsPath))&&(_0x162bfe=_0x20bd28['cDVLz'],logger[_0x431cc7(0x1f4)](_0x162bfe),await _0x20bd28[_0x431cc7(0x22b)](reportToGalactusAndSendToEDS,_0x3b38e5,_0x3ba377,_0x162bfe,messageTypes[_0x431cc7(0x1df)],_0x20bd28['xzDIZ'],_0x20bd28[_0x431cc7(0x1ab)],_0x20bd28[_0x431cc7(0x161)]),process[_0x431cc7(0x1de)](0x1));_0x20bd28['zVvLv'](sendInstrumentationEvent,_0x3b38e5,_0x20bd28['xzDIZ'],messageTypes[_0x431cc7(0x1f0)],null,null,_0x3b38e5);const _0x3f1a34=JSON[_0x431cc7(0x1fb)](fs[_0x431cc7(0x22c)](_0x20bd28['EGzbu'](getCredentialsPath)));global_registry[_0x431cc7(0x1b2)]=_0x3f1a34[_0x431cc7(0x20b)][_0x431cc7(0x1dd)],global_registry[_0x431cc7(0x1a7)]=_0x3f1a34[_0x431cc7(0x20b)][_0x431cc7(0x18d)];const _0x21cb07=WS_ENDPOINT[_0x431cc7(0x234)](_0x20bd28[_0x431cc7(0x19c)],_0x3f1a34[_0x431cc7(0x20b)]['username'])[_0x431cc7(0x234)](_0x20bd28['tGwTU'],_0x3f1a34['Browserstack'][_0x431cc7(0x18d)]),_0x1023cc={};_0x1023cc['WebSocket']=ws,_0x1023cc[_0x431cc7(0x215)]=0x36ee80,_0x3ba377=new ReconnectingWebSocket(_0x21cb07,[],_0x1023cc),global_registry[_0x431cc7(0x1b8)]=_0x20bd28[_0x431cc7(0x188)](getAuthHeader,global_registry[_0x431cc7(0x1b2)],global_registry['bstackAccesskey']),await _0x20bd28[_0x431cc7(0x188)](inputValidation,_0x3b38e5,_0x3ba377),logger[_0x431cc7(0x183)](_0x431cc7(0x1cf)+global_registry[_0x431cc7(0x19d)]+_0x431cc7(0x1fa)+global_registry['clusterRegion']);let _0x426f7c=await _0x20bd28[_0x431cc7(0x214)](getCloudProviderObjectWithOutInit,global_registry[_0x431cc7(0x19d)],global_registry['clusterName'],_0x20bd28['fOmMK'],_0x3ba377,webSocketUtils,_0x3b38e5);const _0x29d332=await _0x426f7c[_0x431cc7(0x20d)]();_0x20bd28[_0x431cc7(0x224)](printResponse,_0x20bd28[_0x431cc7(0x19b)],_0x29d332),_0x426f7c=await _0x426f7c['init']();let _0x100d94=![];try{_0x100d94=await _0x426f7c[_0x431cc7(0x235)]();}catch(_0x22edbe){const _0x5b2269=_0x20bd28[_0x431cc7(0x1c7)][_0x431cc7(0x164)]('|');let _0x1f728a=0x0;while(!![]){switch(_0x5b2269[_0x1f728a++]){case'0':logger[_0x431cc7(0x1f4)](_0x162bfe);continue;case'1':_0x162bfe=_0x431cc7(0x209)+global_registry[_0x431cc7(0x1ff)]+_0x431cc7(0x207)+global_registry[_0x431cc7(0x1b5)]+_0x431cc7(0x1bd)+_0x22edbe;continue;case'2':_0x162bfe+='\x0a'+JSON['stringify'](_0x22edbe['stack']);continue;case'3':_0x100d94=null;continue;case'4':await _0x20bd28[_0x431cc7(0x22b)](reportToGalactusAndSendToEDS,_0x3b38e5,_0x3ba377,_0x162bfe,messageTypes[_0x431cc7(0x1df)],_0x20bd28['xzDIZ'],_0x431cc7(0x170)+global_registry[_0x431cc7(0x19d)],_0x20bd28['ZjRjb']);continue;}break;}}_0x100d94&&logger[_0x431cc7(0x183)](_0x431cc7(0x220)+global_registry[_0x431cc7(0x1ff)]+_0x431cc7(0x24b));const _0x122734=await _0x426f7c['checkAccess']();_0x20bd28['ITvwn'](printResponse,_0x20bd28[_0x431cc7(0x1a1)],_0x122734);const _0x1a02ce=await _0x20bd28['EGzbu'](curlRequest);_0x20bd28[_0x431cc7(0x188)](printResponse,_0x20bd28[_0x431cc7(0x24e)],_0x1a02ce);const _0x85915f=await _0x20bd28['AqECg'](isTlsSupported,_0x20bd28['Cdojl']);_0x20bd28[_0x431cc7(0x15a)](printResponse,_0x20bd28[_0x431cc7(0x1db)],_0x85915f);const _0x3f97f3={};_0x3f97f3[_0x431cc7(0x1af)]=_0x20bd28['WrBsN'],_0x3f97f3['response']=_0x29d332;const _0x45da2a={};_0x45da2a['header']=_0x20bd28[_0x431cc7(0x24c)],_0x45da2a[_0x431cc7(0x23b)]=_0x122734;const _0x3c4488={};_0x3c4488[_0x431cc7(0x1af)]=_0x20bd28[_0x431cc7(0x1a6)],_0x3c4488['response']=_0x1a02ce;const _0x15c0fd={};_0x15c0fd['header']=_0x20bd28[_0x431cc7(0x15d)],_0x15c0fd[_0x431cc7(0x23b)]=_0x85915f;const _0x56a945=[_0x3f97f3,_0x45da2a,_0x3c4488,_0x15c0fd],_0x1920aa=await _0x20bd28[_0x431cc7(0x224)](generateReport,_0x56a945,_0x100d94),_0x239f63=new Date(),_0x4ec009=_0x239f63['getUTCFullYear']()+'_'+_0x20bd28['DNABV'](_0x239f63[_0x431cc7(0x1c3)](),0x1)+'_'+_0x239f63['getUTCDate']()+'_'+_0x239f63[_0x431cc7(0x1ce)]()+'_'+_0x239f63[_0x431cc7(0x184)](),_0x4fad0a=_0x431cc7(0x1d6)+_0x4ec009+_0x431cc7(0x1ac);fs['writeFileSync'](_0x4fad0a,_0x1920aa,_0x20bd28[_0x431cc7(0x165)]),logger[_0x431cc7(0x183)]('Report\x20saved\x20in\x20'+_0x4fad0a),process[_0x431cc7(0x1de)](0x0);}catch(_0x25e4c5){let _0x583863='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x25e4c5+'\x20';logger[_0x431cc7(0x1f4)](_0x583863),_0x583863+='\x0a'+JSON[_0x431cc7(0x1a0)](_0x25e4c5[_0x431cc7(0x1b1)]),logger[_0x431cc7(0x168)](_0x431cc7(0x172)+_0x25e4c5[_0x431cc7(0x1b1)]);if(_0x3ba377){const _0x5f17e1={};_0x5f17e1[_0x431cc7(0x1d8)]=WS_EVENTS['LOG'],_0x5f17e1[_0x431cc7(0x201)]=_0x583863,webSocketUtils['sendEventToBackend'](_0x3ba377,_0x5f17e1,_0x20bd28[_0x431cc7(0x161)],!![]);}await webSocketUtils[_0x431cc7(0x166)](0x7d0);const _0x3145b5={};_0x3145b5[_0x431cc7(0x1f4)]=_0x583863,await _0x20bd28[_0x431cc7(0x178)](sendInstrumentationEvent,_0x3b38e5,_0x20bd28[_0x431cc7(0x1e5)],messageTypes[_0x431cc7(0x1df)],_0x20bd28[_0x431cc7(0x1d5)],_0x3145b5,_0x3b38e5),process[_0x431cc7(0x1de)](0x1);}};
1
+ function a17_0x447b(){const _0x481767=['HlYJp','GduCd','vzPoW','existsSync','length','PtBzZ','yLSKn','2NcryFi','toLowerCase','User\x20Access','isClusterPresent','type','ncFLQ','Cluster\x20`','Whitelisted\x20browserstack','builder','ehqrS','cRlsN','/packages/cli/get-all-grid-profiles','cNzxU','description','BKyYV','usage','vWWog','header','Grid\x20profile\x20fetched\x20for\x20pre-check','SXYrw','HQvzj','NhbIh','Success','FcwtC','message','haGKy','cluster-check-failed-','SIlYu','.\x20Please\x20provide\x20all\x20required\x20arguments.','authHeader','IJmui','RaNBj','yBUXC','grid\x20profile\x20flow\x20','2227218bAqTlH','utf-8','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','NkfQa','Cluster\x20','writeFileSync','accessResp','tEHNl','xUtHN','epilogue','pre_check','../../config/logger','TLzZP','getUTCMinutes','throwHttpErrors','LMjyR','INFO','../../config/constants','\x20region\x20-\x20','KwOAH','PCIHo','Invalid\x20input.\x20grid\x20profiles:\x20','isTrialGridAccessible','argv','dCQBl','\x20\x20Stack:\x20','rbwky','goGGV','KNIwz','cloudProvider','credential-not-found','nDMxx','uKWbG','string','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','toQjR','ssVaP','\x20===\x0a\x0a','password','1068284FWkLrI','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','xUiae','Setting\x20cloud\x20provider\x20as\x20','Browserstack','vsYNl','JxYLq','handler','getUTCFullYear','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','xCaLu','EHLkQ','VCZyx','data','Failed\x20in\x20pre-check!\x20Error:\x20','response','gridProfile','\x20\x20Code:\x20','Failure','FmciR','debug','stack','error\x20stack\x20:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cloud-provider-not-supported','ygqGO','uuid','sgYmq','bJQnY','xJEJj','suyvI','ERROR','hdFJc','bACYU','help','STTpT','Error\x20Details:\x0a','replace','stringify','grid-profile','NLnpl','asJzB','init','KMJrY','NMYmU','exit','uSJKR','delay','.txt','tKGNJ','YMuhF','code','78765AnJxfa','105234PVmOTG','LrnXp','N/A','pre-check-grid-called','YnVcE','cXhzA','bstackUsername','username','unable\x20to\x20verify\x20if\x20cluster\x20`','NYoIT','jOeQS','UMDpg','1141953MqGckt','JOvDX','grid','SVXYZ','176WyOdrb','\x20\x20Message:\x20','isCliToolInstalled','https://','join','gLdhB','LOG','WebSocket','TsvzS','bstackAccesskey','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','MTbWo','Pre-check\x20running\x20for\x20Cloud\x20-\x20','getUTCMonth','zopTW','woYJm','sqyxp','`\x20,error\x20:\x20','KsJmg','3|4|2|1|0','`\x20already\x20exists','icNHX','is\x20already\x20present','chvQC','pKfJY','Tool\x20Installed','FvAbD','czyuT','GQFXi','info','JIMyW','GET','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ufXqU','42203jjTaVC','method','error','push','pre-check','options','BwMyB','gGwoh','iDSKO','yVGqj','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','2505830RxHmRf','rCTXB','uEmAg','eACFj','9TAQBDN','Vjube','cloud-provider','command','nrOxq','readFileSync','dAHgr','ZoBpQ',']\x20status\x20:\x20','cluster-name','ATNTD','forEach','Status:\x20','\x20data\x20:\x20','log/report_','reconnecting-websocket','headers','../../cloudproviders/utils','EDEnT','qgotk','rdSHD','sendEventToBackend','CLOUD_PROVIDER','xwRny','yTiaL','`\x20is\x20present\x20in\x20region\x20`','parse','../../utils/webSocketUtils','body','EHSWc','Message:\x20','nvFbU','pre-check-grid-profile-empty','gecCm','clusterRegion','region','JoBZf','requestId','zubqZ','vRsSi','clusterName','SqTPt','\x20error\x20:\x20'];a17_0x447b=function(){return _0x481767;};return a17_0x447b();}const a17_0x1f31eb=a17_0x4cbd;(function(_0x28be25,_0x2f493f){const _0x5576d8=a17_0x4cbd,_0x5cd346=_0x28be25();while(!![]){try{const _0x4731fc=parseInt(_0x5576d8(0x102))/0x1+parseInt(_0x5576d8(0x175))/0x2*(-parseInt(_0x5576d8(0x10e))/0x3)+parseInt(_0x5576d8(0x1be))/0x4+parseInt(_0x5576d8(0x101))/0x5+parseInt(_0x5576d8(0x197))/0x6+parseInt(_0x5576d8(0x134))/0x7*(parseInt(_0x5576d8(0x112))/0x8)+-parseInt(_0x5576d8(0x143))/0x9*(parseInt(_0x5576d8(0x13f))/0xa);if(_0x4731fc===_0x2f493f)break;else _0x5cd346['push'](_0x5cd346['shift']());}catch(_0x443f68){_0x5cd346['push'](_0x5cd346['shift']());}}}(a17_0x447b,0x3fa39));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x1f31eb(0x1d8)),ReconnectingWebSocket=require(a17_0x1f31eb(0x152)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x1f31eb(0x1a2)),{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_0x1f31eb(0x1a8)),{getCloudProviderObjectWithOutInit}=require(a17_0x1f31eb(0x154)),webSocketUtils=require(a17_0x1f31eb(0x15e)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x1f31eb(0x146)]=a17_0x1f31eb(0x110),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x1f31eb(0x17d)]=function(_0x5425f1){const _0x28a58d=a17_0x1f31eb,_0x466dc0={};_0x466dc0[_0x28a58d(0x174)]=_0x28a58d(0x13e),_0x466dc0[_0x28a58d(0x16a)]=_0x28a58d(0x1b8),_0x466dc0[_0x28a58d(0x173)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x466dc0[_0x28a58d(0x170)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x466dc0[_0x28a58d(0x11a)]=_0x28a58d(0x11c),_0x466dc0[_0x28a58d(0x14d)]=_0x28a58d(0x1e0);const _0x359316=_0x466dc0,_0x211261={};_0x211261[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x174)],_0x211261['type']=_0x359316[_0x28a58d(0x16a)];const _0x1e939c={};_0x1e939c['description']=_0x359316[_0x28a58d(0x173)],_0x1e939c[_0x28a58d(0x179)]=_0x359316['vRsSi'];const _0x3008d1={};_0x3008d1[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x170)],_0x3008d1[_0x28a58d(0x179)]=_0x359316[_0x28a58d(0x16a)];const _0x224d84={};_0x224d84[_0x28a58d(0x182)]=_0x359316[_0x28a58d(0x11a)],_0x224d84[_0x28a58d(0x179)]=_0x359316[_0x28a58d(0x16a)];const _0xadf253={};return _0xadf253['cluster-name']=_0x211261,_0xadf253[_0x28a58d(0x145)]=_0x1e939c,_0xadf253[_0x28a58d(0x166)]=_0x3008d1,_0xadf253[_0x28a58d(0x1e5)]=_0x224d84,_0x5425f1[_0x28a58d(0x184)](HELP_HEADER_MESSAGE[_0x28a58d(0x1a1)])[_0x28a58d(0x1a0)](HELP_FOOTER_MESSAGE)[_0x28a58d(0x139)](_0xadf253)[_0x28a58d(0x1e0)](_0x359316[_0x28a58d(0x14d)])[_0x28a58d(0x1ae)];};async function inputValidation(_0xb082e0,_0x17ec4b){const _0x1fc6eb=a17_0x1f31eb,_0x65933f={'MTbWo':function(_0x350c13,_0x51f3e4){return _0x350c13+_0x51f3e4;},'enKlw':_0x1fc6eb(0x18b),'ehqrS':_0x1fc6eb(0x1d0),'bJQnY':function(_0x1fcb20,_0x5114ab){return _0x1fcb20||_0x5114ab;},'ZoBpQ':'N/A','sqyxp':_0x1fc6eb(0x1e2),'ssVaP':_0x1fc6eb(0x145),'PCIHo':_0x1fc6eb(0x128),'oazRm':'will\x20be\x20created','gLdhB':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hdFJc':_0x1fc6eb(0x1b8),'rbwky':_0x1fc6eb(0x1d5),'cvneS':_0x1fc6eb(0x1b9),'yjTfi':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','xJEJj':_0x1fc6eb(0x1e0),'uKWbG':_0x1fc6eb(0x1bf),'JxYLq':_0x1fc6eb(0x166),'GQFXi':'cluster-name','gGwoh':_0x1fc6eb(0x136),'NYoIT':function(_0x44dcb9,_0x4c5660){return _0x44dcb9!==_0x4c5660;},'vWWog':_0x1fc6eb(0xff),'BfVkr':function(_0x22f4d7,_0x585855){return _0x22f4d7===_0x585855;},'suyvI':_0x1fc6eb(0x1e6),'dCQBl':'OOVfc','JoBZf':_0x1fc6eb(0x189),'qgotk':function(_0x446eee,_0x2568df){return _0x446eee===_0x2568df;},'Vjube':'YdUfx','cNzxU':function(_0x532cd6,_0x20c15c){return _0x532cd6!==_0x20c15c;},'HnsEO':'ZOPgC','MfwYV':function(_0x299d8a,_0x457ab0){return _0x299d8a>_0x457ab0;},'agZeQ':_0x1fc6eb(0x147),'BwMyB':'WlGsB','SXYrw':function(_0x1f97a0,_0x3cdee0,_0x490a3c,_0x28f026,_0x3884ce,_0x1da967,_0x52b34a,_0x4b7fd9){return _0x1f97a0(_0x3cdee0,_0x490a3c,_0x28f026,_0x3884ce,_0x1da967,_0x52b34a,_0x4b7fd9);},'zubqZ':_0x1fc6eb(0x105),'VUfrK':'pre-check-cluster-args-not-passed','NhbIh':function(_0x327a66,_0xb5f226){return _0x327a66===_0xb5f226;},'vsYNl':_0x1fc6eb(0x1a3),'EHSWc':'NpNln','jOeQS':_0x1fc6eb(0x199),'UjXXn':function(_0x12af1c,_0x32dfc7,_0x3b7f15,_0x2f673a,_0x2dd5a3,_0x10e81a,_0xf7786b,_0x38bb24){return _0x12af1c(_0x32dfc7,_0x3b7f15,_0x2f673a,_0x2dd5a3,_0x10e81a,_0xf7786b,_0x38bb24);},'yVGqj':_0x1fc6eb(0x1d6),'sgYmq':function(_0x3ebfc0,_0x17056d){return _0x3ebfc0===_0x17056d;},'LSbhJ':_0x1fc6eb(0x111),'goGGV':_0x1fc6eb(0x194),'STTpT':_0x1fc6eb(0x19e),'eACFj':_0x1fc6eb(0x131),'FmIEb':function(_0xf519cd,_0x59f11a,_0x3a6619){return _0xf519cd(_0x59f11a,_0x3a6619);},'xwRny':function(_0x4b0b66,_0x192de2,_0x4db3c3,_0x47cda3,_0x1c9f5e,_0x52495e){return _0x4b0b66(_0x192de2,_0x4db3c3,_0x47cda3,_0x1c9f5e,_0x52495e);},'xCaLu':_0x1fc6eb(0x138),'iDSKO':_0x1fc6eb(0x1e5),'qWBwj':function(_0x53a28f,_0x56b391){return _0x53a28f!==_0x56b391;},'BKyYV':'KrNDc','nvFbU':function(_0x4c4056,_0x506a7e){return _0x4c4056(_0x506a7e);},'xUtHN':_0x1fc6eb(0x16c),'gecCm':_0x1fc6eb(0x1df),'yBUXC':function(_0xe2a34a,_0x597816,_0x48e2bb,_0x1b230b,_0x3e9a7c,_0x5aeabf,_0x5c8e42,_0x5d8cb1){return _0xe2a34a(_0x597816,_0x48e2bb,_0x1b230b,_0x3e9a7c,_0x5aeabf,_0x5c8e42,_0x5d8cb1);},'wCoge':_0x1fc6eb(0x163),'ygqGO':_0x1fc6eb(0x106),'KOAYv':function(_0x1c1025,_0x2be040){return _0x1c1025===_0x2be040;},'JOvDX':_0x1fc6eb(0x1ba),'uSJKR':_0x1fc6eb(0x187),'HlYJp':function(_0x5b6a8b,_0x524c48){return _0x5b6a8b===_0x524c48;},'woYJm':'dHOTo','rCTXB':_0x1fc6eb(0x1aa),'KgoYW':'IfExV','FvAbD':function(_0x475023,_0x25c38e,_0x27eeb8,_0x385522,_0x237300,_0x442437,_0x59c85e,_0x2de9a9){return _0x475023(_0x25c38e,_0x27eeb8,_0x385522,_0x237300,_0x442437,_0x59c85e,_0x2de9a9);}};let _0x2ff52d;try{if(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f[_0x1fc6eb(0x185)],_0x65933f['vWWog'])){const {header:_0x516940,response:_0x4fe615}=_0xa4f6ba,{status:_0x1fe5f9,data:_0x419f34,error:_0x5aa926}=_0x4fe615;_0x4eb0dd+=_0x516940+'\x20#'+_0x65933f[_0x1fc6eb(0x11d)](_0x27f254,0x1)+'\x0a',_0x28a0e4+=_0x1fc6eb(0x14f)+(_0x1fe5f9?_0x65933f['enKlw']:_0x65933f[_0x1fc6eb(0x17e)])+'\x0a',_0x3b04fa+=_0x1fc6eb(0x161)+_0x65933f[_0x1fc6eb(0x1da)](_0x419f34,_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x5aa926&&(_0x9ae2e2+=_0x65933f[_0x1fc6eb(0x122)],_0x1223c4+=_0x1fc6eb(0x113)+(_0x5aa926[_0x1fc6eb(0x18d)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x5cf8d6+=_0x1fc6eb(0x1cf)+(_0x5aa926[_0x1fc6eb(0x100)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x2bc273+=_0x1fc6eb(0x1b0)+(_0x5aa926[_0x1fc6eb(0x1d3)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a'),_0x5bde62+='\x0a\x0a';}else{if(_0xb082e0[_0x1fc6eb(0x16b)]||_0xb082e0[_0x1fc6eb(0x1b4)]||_0xb082e0['region']){if(_0x65933f['BfVkr'](_0x65933f[_0x1fc6eb(0x1dc)],_0x65933f['suyvI'])){const _0x120525=[];!_0xb082e0[_0x1fc6eb(0x16b)]&&(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f[_0x1fc6eb(0x1af)],_0x65933f[_0x1fc6eb(0x167)])?_0x120525[_0x1fc6eb(0x137)](_0x65933f['GQFXi']):_0xdf3e9c[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1bb)]));;!_0xb082e0[_0x1fc6eb(0x1b4)]&&(_0x65933f[_0x1fc6eb(0x156)](_0x65933f[_0x1fc6eb(0x144)],_0x65933f[_0x1fc6eb(0x144)])?_0x120525[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1bb)]):_0x1499a1[_0x1fc6eb(0x1eb)](0x1));;!_0xb082e0[_0x1fc6eb(0x166)]&&(_0x65933f[_0x1fc6eb(0x181)](_0x65933f['HnsEO'],_0x65933f['HnsEO'])?_0x389212+=_0x1fc6eb(0x19b)+_0x48a9cd[_0x1fc6eb(0x16b)]+'\x20'+(_0x5580b8?_0x65933f[_0x1fc6eb(0x1ab)]:_0x65933f['oazRm'])+'\x0a\x0a':_0x120525[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1c4)]));;if(_0x65933f['MfwYV'](_0x120525[_0x1fc6eb(0x172)],0x0)){if(_0x65933f[_0x1fc6eb(0x10b)](_0x65933f['agZeQ'],_0x65933f[_0x1fc6eb(0x13a)]))_0x2ff52d='Missing\x20required\x20arguments:\x20'+_0x120525[_0x1fc6eb(0x116)](',\x20')+_0x1fc6eb(0x191),await _0x65933f[_0x1fc6eb(0x188)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f['VUfrK'],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),process[_0x1fc6eb(0x1eb)](0x1);else{const _0x3fcc06={};_0x3fcc06[_0x1fc6eb(0x182)]=_0x65933f[_0x1fc6eb(0x117)],_0x3fcc06[_0x1fc6eb(0x179)]=_0x65933f[_0x1fc6eb(0x1de)];const _0xdf9e39={};_0xdf9e39['description']=_0x65933f[_0x1fc6eb(0x1b1)],_0xdf9e39[_0x1fc6eb(0x179)]=_0x65933f['hdFJc'];const _0x313778={};_0x313778[_0x1fc6eb(0x182)]=_0x65933f['cvneS'],_0x313778['type']=_0x65933f['hdFJc'];const _0x52432c={};_0x52432c[_0x1fc6eb(0x182)]=_0x65933f['yjTfi'],_0x52432c[_0x1fc6eb(0x179)]=_0x65933f[_0x1fc6eb(0x1de)];const _0x14b4b1={};return _0x14b4b1[_0x1fc6eb(0x14c)]=_0x3fcc06,_0x14b4b1['cloud-provider']=_0xdf9e39,_0x14b4b1[_0x1fc6eb(0x166)]=_0x313778,_0x14b4b1[_0x1fc6eb(0x1e5)]=_0x52432c,_0x4f2222['usage'](_0x283829['pre_check'])[_0x1fc6eb(0x1a0)](_0x22fe80)[_0x1fc6eb(0x139)](_0x14b4b1)[_0x1fc6eb(0x1e0)](_0x65933f[_0x1fc6eb(0x1db)])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xb082e0[_0x1fc6eb(0x1b4)][_0x1fc6eb(0x176)]())&&(_0x65933f[_0x1fc6eb(0x18a)](_0x65933f[_0x1fc6eb(0x1c3)],_0x65933f[_0x1fc6eb(0x160)])?(_0x5daf6f[_0x1fc6eb(0x12f)]('['+_0x2b5723+_0x1fc6eb(0x14b)+_0x5f1bcf['status']+_0x1fc6eb(0x150)+_0x2f0b38[_0x1fc6eb(0x1cb)]+_0x1fc6eb(0x16d)+_0x224d37[_0x1fc6eb(0x136)]),_0x341bdf[_0x1fc6eb(0x136)]&&_0xb97977['error']('error\x20stack\x20:\x20'+_0x1589f0[_0x1fc6eb(0x136)]['stack'])):(_0x2ff52d=_0x65933f[_0x1fc6eb(0x10c)],await _0x65933f['UjXXn'](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f[_0x1fc6eb(0x13d)],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),!_0xb082e0[_0x1fc6eb(0x1b4)]&&(_0x65933f[_0x1fc6eb(0x1d9)](_0x65933f['LSbhJ'],_0x65933f[_0x1fc6eb(0x1b2)])?(_0x8193b2[_0x1fc6eb(0x136)](_0x65933f[_0x1fc6eb(0x1b7)]),_0x52f886[_0x1fc6eb(0x1eb)](0x1)):(logger[_0x1fc6eb(0x12f)](_0x1fc6eb(0x1c1)+DEFAULT_CLUSTER_DETAILS[_0x1fc6eb(0x159)]+'\x20'),_0xb082e0[_0x1fc6eb(0x1b4)]=DEFAULT_CLUSTER_DETAILS[_0x1fc6eb(0x159)])))),global_registry[_0x1fc6eb(0x16b)]=_0xb082e0[_0x1fc6eb(0x16b)],global_registry[_0x1fc6eb(0x1b4)]=_0xb082e0['cloudProvider'],global_registry['clusterRegion']=_0xb082e0['region'];}else _0x60c0dc['info'](_0x1fc6eb(0x17b)+_0x5a88c1[_0x1fc6eb(0x16b)]+_0x1fc6eb(0x126));}else{if(_0xb082e0[_0x1fc6eb(0x1ce)]){if(_0x65933f[_0x1fc6eb(0x156)](_0x65933f['STTpT'],_0x65933f[_0x1fc6eb(0x1e1)])){global_registry['gridProfile']=_0xb082e0['gridProfile'],logger[_0x1fc6eb(0x1d2)](_0x1fc6eb(0x196)+_0xb082e0['gridProfile']);const _0x4dd40d=_0x1fc6eb(0x115)+AG_API_URL+_0x1fc6eb(0x180),_0x4c7f6b={};_0x4c7f6b[_0x1fc6eb(0x135)]=_0x65933f[_0x1fc6eb(0x142)],_0x4c7f6b[_0x1fc6eb(0x153)]=global_registry[_0x1fc6eb(0x192)],_0x4c7f6b[_0x1fc6eb(0x1a5)]=![];const _0x2696af=_0x4c7f6b,_0x35bc56=await _0x65933f['FmIEb'](got,_0x4dd40d,_0x2696af),_0x2c1b12=await _0x65933f[_0x1fc6eb(0x15a)](responseValidation,_0x35bc56,_0x65933f[_0x1fc6eb(0x1c8)],_0x65933f[_0x1fc6eb(0x13c)],_0xb082e0,_0x17ec4b);let _0x20217a={};if(_0x65933f[_0x1fc6eb(0x18a)](_0x2c1b12,0xc8)){if(_0x65933f['qWBwj'](_0x65933f[_0x1fc6eb(0x183)],_0x65933f[_0x1fc6eb(0x183)]))_0x3ecd56[_0x1fc6eb(0x137)](_0x65933f[_0x1fc6eb(0x1c4)]);else{const _0x27b39d=JSON['parse'](_0x35bc56[_0x1fc6eb(0x15f)]),_0xa94e2a=_0x27b39d['find'](_0x333b5f=>_0x333b5f['name']===_0xb082e0[_0x1fc6eb(0x1ce)])||null;_0x65933f[_0x1fc6eb(0x162)](isUndefined,_0xa94e2a)?_0x65933f['NhbIh'](_0x65933f[_0x1fc6eb(0x19f)],_0x65933f[_0x1fc6eb(0x164)])?_0x1b9566+=_0x1fc6eb(0x19b)+_0x1499bd['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x2ff52d=_0x1fc6eb(0x1ac)+_0xb082e0[_0x1fc6eb(0x1ce)]+_0x1fc6eb(0x1c7),await _0x65933f[_0x1fc6eb(0x195)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes['ERROR'],_0x65933f['zubqZ'],_0x65933f['wCoge'],_0x65933f[_0x1fc6eb(0x13b)]),logger[_0x1fc6eb(0x136)](_0x2ff52d),process['exit'](0x1)):_0x65933f[_0x1fc6eb(0x156)](_0x65933f['ygqGO'],_0x65933f[_0x1fc6eb(0x1d7)])?_0x20217a=_0xa94e2a:_0x241e5e['push'](_0x65933f[_0x1fc6eb(0x12e)]);}}else _0x65933f['KOAYv'](_0x65933f[_0x1fc6eb(0x10f)],_0x65933f[_0x1fc6eb(0x10f)])?process['exit'](0x1):_0x2dbcf4=_0x1dc288;const _0xac5b3a={};_0xac5b3a[_0x1fc6eb(0x179)]=WS_EVENTS[_0x1fc6eb(0x118)],_0xac5b3a[_0x1fc6eb(0x18d)]=_0x65933f[_0x1fc6eb(0xfb)],webSocketUtils[_0x1fc6eb(0x158)](_0x17ec4b,_0xac5b3a),global_registry[_0x1fc6eb(0x1b4)]=_0x20217a[_0x1fc6eb(0x1b4)],global_registry[_0x1fc6eb(0x165)]=_0x20217a[_0x1fc6eb(0x166)],global_registry['clusterName']=_0x20217a[_0x1fc6eb(0x16b)];}else{const _0x1b5234={};_0x1b5234['type']=_0x136013[_0x1fc6eb(0x118)],_0x1b5234['message']=_0x2d5c70,_0x539df8['sendEventToBackend'](_0x5359dc,_0x1b5234,_0x65933f[_0x1fc6eb(0x13b)],!![]);}}else _0x65933f[_0x1fc6eb(0x16e)](_0x65933f[_0x1fc6eb(0x121)],_0x65933f[_0x1fc6eb(0x140)])?_0x2bb915[_0x1fc6eb(0x136)](_0x1fc6eb(0x1d4)+_0x200230[_0x1fc6eb(0x136)][_0x1fc6eb(0x1d3)]):(logger[_0x1fc6eb(0x136)](_0x65933f[_0x1fc6eb(0x1b7)]),process['exit'](0x1));}}}catch(_0x1c159c){_0x65933f[_0x1fc6eb(0x10b)](_0x65933f['KgoYW'],_0x65933f['KgoYW'])?(_0x5e4d4d+=_0x65933f['sqyxp'],_0x26ee9b+=_0x1fc6eb(0x113)+(_0x3b22f9[_0x1fc6eb(0x18d)]||_0x65933f['ZoBpQ'])+'\x0a',_0x49576c+=_0x1fc6eb(0x1cf)+(_0x2c5783[_0x1fc6eb(0x100)]||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a',_0x412df8+=_0x1fc6eb(0x1b0)+(_0x709c1['stack']||_0x65933f[_0x1fc6eb(0x14a)])+'\x0a'):(_0x2ff52d='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x1c159c+':\x20'+_0x1c159c[_0x1fc6eb(0x1d3)],logger[_0x1fc6eb(0x136)](_0x2ff52d),await _0x65933f[_0x1fc6eb(0x12c)](reportToGalactusAndSendToEDS,_0xb082e0,_0x17ec4b,_0x2ff52d,messageTypes[_0x1fc6eb(0x1dd)],_0x65933f[_0x1fc6eb(0x169)],_0x65933f[_0x1fc6eb(0x13d)],_0x65933f[_0x1fc6eb(0x13b)]),process['exit'](0x1));}}function a17_0x4cbd(_0x116304,_0x37d02e){const _0x447b03=a17_0x447b();return a17_0x4cbd=function(_0x4cbd90,_0x247225){_0x4cbd90=_0x4cbd90-0xfb;let _0x58f608=_0x447b03[_0x4cbd90];return _0x58f608;},a17_0x4cbd(_0x116304,_0x37d02e);}function printResponse(_0x447516,_0x36c9e1){const _0x324972=a17_0x1f31eb,_0xd5e780={};_0xd5e780[_0x324972(0x1ca)]=function(_0x5963de,_0x714662){return _0x5963de!==_0x714662;},_0xd5e780[_0x324972(0x155)]=_0x324972(0x1c9);const _0x4dd0b8=_0xd5e780;logger[_0x324972(0x12f)]('['+_0x447516+_0x324972(0x14b)+_0x36c9e1['status']+'\x20data\x20:\x20'+_0x36c9e1['data']+_0x324972(0x16d)+_0x36c9e1['error']),_0x36c9e1[_0x324972(0x136)]&&(_0x4dd0b8[_0x324972(0x1ca)](_0x4dd0b8[_0x324972(0x155)],_0x4dd0b8[_0x324972(0x155)])?(_0x5c30cb[_0x324972(0x12f)](_0x324972(0x1c1)+_0x20af2f[_0x324972(0x159)]+'\x20'),_0x584bf7['cloudProvider']=_0x495dd1[_0x324972(0x159)]):logger['error'](_0x324972(0x1d4)+_0x36c9e1[_0x324972(0x136)][_0x324972(0x1d3)]));}async function generateReport(_0x4a60d0,_0x1d9606){const _0x2a6d68=a17_0x1f31eb,_0x55215b={'KNIwz':function(_0x507483,_0x362863){return _0x507483+_0x362863;},'FmciR':_0x2a6d68(0x18b),'JIMyW':_0x2a6d68(0x1d0),'dAHgr':function(_0x186cf9,_0x561f5e){return _0x186cf9||_0x561f5e;},'GduCd':_0x2a6d68(0x104),'IJmui':_0x2a6d68(0x1e2),'PVrPV':'Cluster\x20details\x0a-----------------------\x0a','yTiaL':function(_0x32bae0,_0x3174d6){return _0x32bae0!=_0x3174d6;},'rVMQU':_0x2a6d68(0x128),'cXhzA':'will\x20be\x20created','KsbvT':function(_0x4e3ad8){return _0x4e3ad8();}};let _0x10aa6e='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x2a6d68(0x1bc);return _0x4a60d0[_0x2a6d68(0x14e)]((_0x185990,_0x2353be)=>{const _0xb6b436=_0x2a6d68,{header:_0xa23f9b,response:_0x23678b}=_0x185990,{status:_0x384ac6,data:_0x78fa60,error:_0x391cc1}=_0x23678b;_0x10aa6e+=_0xa23f9b+'\x20#'+_0x55215b[_0xb6b436(0x1b3)](_0x2353be,0x1)+'\x0a',_0x10aa6e+='Status:\x20'+(_0x384ac6?_0x55215b[_0xb6b436(0x1d1)]:_0x55215b[_0xb6b436(0x130)])+'\x0a',_0x10aa6e+=_0xb6b436(0x161)+_0x55215b[_0xb6b436(0x149)](_0x78fa60,_0x55215b[_0xb6b436(0x16f)])+'\x0a',_0x391cc1&&(_0x10aa6e+=_0x55215b[_0xb6b436(0x193)],_0x10aa6e+=_0xb6b436(0x113)+(_0x391cc1[_0xb6b436(0x18d)]||_0x55215b['GduCd'])+'\x0a',_0x10aa6e+='\x20\x20Code:\x20'+(_0x391cc1[_0xb6b436(0x100)]||_0x55215b['GduCd'])+'\x0a',_0x10aa6e+='\x20\x20Stack:\x20'+(_0x391cc1[_0xb6b436(0x1d3)]||_0x55215b[_0xb6b436(0x16f)])+'\x0a'),_0x10aa6e+='\x0a\x0a';}),_0x10aa6e+=_0x55215b['PVrPV'],_0x55215b[_0x2a6d68(0x15b)](_0x1d9606,null)?_0x10aa6e+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x1d9606?_0x55215b['rVMQU']:_0x55215b[_0x2a6d68(0x107)])+'\x0a\x0a':_0x10aa6e+=_0x2a6d68(0x19b)+global_registry[_0x2a6d68(0x16b)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x10aa6e+=_0x55215b['KsbvT'](getSystemMetaData),_0x10aa6e;};exports[a17_0x1f31eb(0x1c5)]=async function(_0x19a1ae){const _0x22ac6e=a17_0x1f31eb,_0x468668={'chvQC':function(_0x2d322d){return _0x2d322d();},'xUiae':function(_0x42f4d9){return _0x42f4d9();},'EbFPM':_0x22ac6e(0x132),'asJzB':function(_0x3085e0,_0x2f267c,_0x2126b6,_0x134e80,_0x2d1152,_0x3f2018,_0x243767,_0x496833){return _0x3085e0(_0x2f267c,_0x2126b6,_0x134e80,_0x2d1152,_0x3f2018,_0x243767,_0x496833);},'UMDpg':_0x22ac6e(0x105),'ncFLQ':_0x22ac6e(0x1b5),'icNHX':_0x22ac6e(0x136),'LMjyR':function(_0x36b61b,_0x8cd13f,_0xd4a0f2,_0x5a5c9b,_0x4b12bc,_0x55fd79,_0xc992c0){return _0x36b61b(_0x8cd13f,_0xd4a0f2,_0x5a5c9b,_0x4b12bc,_0x55fd79,_0xc992c0);},'FDmji':function(_0x30e0dd){return _0x30e0dd();},'zopTW':'<UsernamePlaceholder>','cRlsN':'<PasswordPlaceholder>','KMJrY':function(_0x16e2c9,_0x523a05,_0x3f06e1){return _0x16e2c9(_0x523a05,_0x3f06e1);},'nDMxx':function(_0x35b80c,_0x3e2188,_0x4f3038){return _0x35b80c(_0x3e2188,_0x4f3038);},'czyuT':'dummy-grid','rdSHD':function(_0xbdb175,_0x4a4dbb,_0x48ae69){return _0xbdb175(_0x4a4dbb,_0x48ae69);},'haGKy':'toolInstalledResp','Xgjyb':_0x22ac6e(0x125),'KsJmg':function(_0x204d3e,_0x468788,_0x2d8500){return _0x204d3e(_0x468788,_0x2d8500);},'ufXqU':_0x22ac6e(0x19d),'FcwtC':function(_0x23d892){return _0x23d892();},'LrnXp':_0x22ac6e(0x1ad),'pKfJY':function(_0x169928,_0x4fef1c){return _0x169928(_0x4fef1c);},'NMYmU':'TLSv1_2_client_method','nHpza':function(_0x2a880f,_0x59d6af,_0x255bd6){return _0x2a880f(_0x59d6af,_0x255bd6);},'YKmrZ':'isTls1_2_SUPPORTED','ZJLOO':_0x22ac6e(0x12b),'pegEW':_0x22ac6e(0x177),'LGfyi':_0x22ac6e(0x17c),'rTmEm':'SSL\x20Configured','NkfQa':function(_0x21dd12,_0x6ac6a8){return _0x21dd12+_0x6ac6a8;},'tKGNJ':_0x22ac6e(0x198),'uEmAg':function(_0x47246f,_0xc97b73,_0x170c0f,_0x5874f3,_0xaafc89,_0x453393,_0x1ae978){return _0x47246f(_0xc97b73,_0x170c0f,_0x5874f3,_0xaafc89,_0x453393,_0x1ae978);},'SIlYu':'pre-check-failed'};let _0x1a2cc5,_0x2c4176;try{global_registry[_0x22ac6e(0x168)]=_0x468668[_0x22ac6e(0x129)](uuidv4);!fs[_0x22ac6e(0x171)](_0x468668[_0x22ac6e(0x1c0)](getCredentialsPath))&&(_0x2c4176=_0x468668['EbFPM'],logger[_0x22ac6e(0x136)](_0x2c4176),await _0x468668['asJzB'](reportToGalactusAndSendToEDS,_0x19a1ae,_0x1a2cc5,_0x2c4176,messageTypes['ERROR'],_0x468668['UMDpg'],_0x468668[_0x22ac6e(0x17a)],_0x468668[_0x22ac6e(0x127)]),process['exit'](0x1));_0x468668[_0x22ac6e(0x1a6)](sendInstrumentationEvent,_0x19a1ae,_0x468668[_0x22ac6e(0x10d)],messageTypes[_0x22ac6e(0x1a7)],null,null,_0x19a1ae);const _0x2233e0=JSON[_0x22ac6e(0x15d)](fs[_0x22ac6e(0x148)](_0x468668['FDmji'](getCredentialsPath)));global_registry[_0x22ac6e(0x108)]=_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x109)],global_registry[_0x22ac6e(0x11b)]=_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x1bd)];const _0x4d6399=WS_ENDPOINT[_0x22ac6e(0x1e3)](_0x468668[_0x22ac6e(0x120)],_0x2233e0['Browserstack'][_0x22ac6e(0x109)])[_0x22ac6e(0x1e3)](_0x468668[_0x22ac6e(0x17f)],_0x2233e0[_0x22ac6e(0x1c2)][_0x22ac6e(0x1bd)]),_0x25531f={};_0x25531f[_0x22ac6e(0x119)]=ws,_0x25531f['connectionTimeout']=0x36ee80,_0x1a2cc5=new ReconnectingWebSocket(_0x4d6399,[],_0x25531f),global_registry['authHeader']=_0x468668[_0x22ac6e(0x1e9)](getAuthHeader,global_registry[_0x22ac6e(0x108)],global_registry[_0x22ac6e(0x11b)]),await _0x468668[_0x22ac6e(0x1b6)](inputValidation,_0x19a1ae,_0x1a2cc5),logger[_0x22ac6e(0x12f)](_0x22ac6e(0x11e)+global_registry[_0x22ac6e(0x1b4)]+_0x22ac6e(0x1a9)+global_registry['clusterRegion']);let _0x65ea91=await _0x468668['LMjyR'](getCloudProviderObjectWithOutInit,global_registry[_0x22ac6e(0x1b4)],global_registry[_0x22ac6e(0x16b)],_0x468668[_0x22ac6e(0x12d)],_0x1a2cc5,webSocketUtils,_0x19a1ae);const _0x394500=await _0x65ea91[_0x22ac6e(0x114)]();_0x468668[_0x22ac6e(0x157)](printResponse,_0x468668[_0x22ac6e(0x18e)],_0x394500),_0x65ea91=await _0x65ea91[_0x22ac6e(0x1e8)]();let _0x5ca17b=![];try{_0x5ca17b=await _0x65ea91[_0x22ac6e(0x178)]();}catch(_0xaf480a){const _0x571c15=_0x468668['Xgjyb']['split']('|');let _0x404238=0x0;while(!![]){switch(_0x571c15[_0x404238++]){case'0':await _0x468668[_0x22ac6e(0x1e7)](reportToGalactusAndSendToEDS,_0x19a1ae,_0x1a2cc5,_0x2c4176,messageTypes[_0x22ac6e(0x1dd)],_0x468668[_0x22ac6e(0x10d)],_0x22ac6e(0x18f)+global_registry[_0x22ac6e(0x1b4)],_0x468668[_0x22ac6e(0x127)]);continue;case'1':_0x2c4176+='\x0a'+JSON[_0x22ac6e(0x1e4)](_0xaf480a[_0x22ac6e(0x1d3)]);continue;case'2':logger['error'](_0x2c4176);continue;case'3':_0x2c4176=_0x22ac6e(0x10a)+global_registry[_0x22ac6e(0x16b)]+_0x22ac6e(0x15c)+global_registry[_0x22ac6e(0x165)]+_0x22ac6e(0x123)+_0xaf480a;continue;case'4':_0x5ca17b=null;continue;}break;}}_0x5ca17b&&logger['info'](_0x22ac6e(0x17b)+global_registry['clusterName']+_0x22ac6e(0x126));const _0xf9ebbf=await _0x65ea91['checkAccess']();_0x468668[_0x22ac6e(0x124)](printResponse,_0x468668[_0x22ac6e(0x133)],_0xf9ebbf);const _0x303ba4=await _0x468668[_0x22ac6e(0x18c)](curlRequest);_0x468668[_0x22ac6e(0x1e9)](printResponse,_0x468668[_0x22ac6e(0x103)],_0x303ba4);const _0x5e0fed=await _0x468668[_0x22ac6e(0x12a)](isTlsSupported,_0x468668[_0x22ac6e(0x1ea)]);_0x468668['nHpza'](printResponse,_0x468668['YKmrZ'],_0x5e0fed);const _0x3bc5e8={};_0x3bc5e8['header']=_0x468668['ZJLOO'],_0x3bc5e8[_0x22ac6e(0x1cd)]=_0x394500;const _0x115941={};_0x115941[_0x22ac6e(0x186)]=_0x468668['pegEW'],_0x115941[_0x22ac6e(0x1cd)]=_0xf9ebbf;const _0x52304f={};_0x52304f[_0x22ac6e(0x186)]=_0x468668['LGfyi'],_0x52304f[_0x22ac6e(0x1cd)]=_0x303ba4;const _0x17378e={};_0x17378e[_0x22ac6e(0x186)]=_0x468668['rTmEm'],_0x17378e[_0x22ac6e(0x1cd)]=_0x5e0fed;const _0x5be6d6=[_0x3bc5e8,_0x115941,_0x52304f,_0x17378e],_0x177de7=await _0x468668[_0x22ac6e(0x124)](generateReport,_0x5be6d6,_0x5ca17b),_0x410492=new Date(),_0x384550=_0x410492[_0x22ac6e(0x1c6)]()+'_'+_0x468668[_0x22ac6e(0x19a)](_0x410492[_0x22ac6e(0x11f)](),0x1)+'_'+_0x410492['getUTCDate']()+'_'+_0x410492['getUTCHours']()+'_'+_0x410492[_0x22ac6e(0x1a4)](),_0x767f41=_0x22ac6e(0x151)+_0x384550+_0x22ac6e(0xfd);fs[_0x22ac6e(0x19c)](_0x767f41,_0x177de7,_0x468668[_0x22ac6e(0xfe)]),logger[_0x22ac6e(0x12f)]('Report\x20saved\x20in\x20'+_0x767f41),process[_0x22ac6e(0x1eb)](0x0);}catch(_0x1cc4d7){let _0x52dba1=_0x22ac6e(0x1cc)+_0x1cc4d7+'\x20';logger['error'](_0x52dba1),_0x52dba1+='\x0a'+JSON['stringify'](_0x1cc4d7['stack']),logger[_0x22ac6e(0x1d2)]('stack\x20trace\x20'+_0x1cc4d7[_0x22ac6e(0x1d3)]);if(_0x1a2cc5){const _0xae3219={};_0xae3219[_0x22ac6e(0x179)]=WS_EVENTS['LOG'],_0xae3219['message']=_0x52dba1,webSocketUtils[_0x22ac6e(0x158)](_0x1a2cc5,_0xae3219,_0x468668[_0x22ac6e(0x127)],!![]);}await webSocketUtils[_0x22ac6e(0xfc)](0x7d0);const _0x33af1a={};_0x33af1a['error']=_0x52dba1,await _0x468668[_0x22ac6e(0x141)](sendInstrumentationEvent,_0x19a1ae,_0x468668[_0x22ac6e(0x10d)],messageTypes['ERROR'],_0x468668[_0x22ac6e(0x190)],_0x33af1a,_0x19a1ae),process[_0x22ac6e(0x1eb)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x465010=a18_0x1da2;function a18_0x1da2(_0x2fd206,_0x36dc2f){const _0x2ee3b8=a18_0x2ee3();return a18_0x1da2=function(_0x1da264,_0x3dbb42){_0x1da264=_0x1da264-0x1d8;let _0x548f81=_0x2ee3b8[_0x1da264];return _0x548f81;},a18_0x1da2(_0x2fd206,_0x36dc2f);}function a18_0x2ee3(){const _0x5df4ac=['21409938pykEqw','1644927tcimXW','commandDir','builder','4881315NIvueI','demandCommand','1743DktxQd','usage','558732smZUqV','desc','../config/constants','DXPbJ','recommendCommands','command','XZkde','handler','2zTKyEt','3390132zxfiuH','help','start','319695CKuLIo','31064GhPuRB','start_commands','strict'];a18_0x2ee3=function(){return _0x5df4ac;};return a18_0x2ee3();}(function(_0x342149,_0x35f1a4){const _0x5a6e60=a18_0x1da2,_0x13cefc=_0x342149();while(!![]){try{const _0x1406a4=-parseInt(_0x5a6e60(0x1da))/0x1+parseInt(_0x5a6e60(0x1ee))/0x2*(parseInt(_0x5a6e60(0x1df))/0x3)+parseInt(_0x5a6e60(0x1e6))/0x4+parseInt(_0x5a6e60(0x1e2))/0x5+parseInt(_0x5a6e60(0x1ef))/0x6+-parseInt(_0x5a6e60(0x1e4))/0x7*(-parseInt(_0x5a6e60(0x1db))/0x8)+-parseInt(_0x5a6e60(0x1de))/0x9;if(_0x1406a4===_0x35f1a4)break;else _0x13cefc['push'](_0x13cefc['shift']());}catch(_0x258097){_0x13cefc['push'](_0x13cefc['shift']());}}}(a18_0x2ee3,0x7979f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x465010(0x1e8));exports[a18_0x465010(0x1eb)]=a18_0x465010(0x1d9),exports[a18_0x465010(0x1e7)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x465010(0x1e1)]=function(_0x1f9fa9){const _0x24a983=a18_0x465010,_0x7523f0={};_0x7523f0[_0x24a983(0x1ec)]=_0x24a983(0x1dc),_0x7523f0['DXPbJ']=_0x24a983(0x1d8);const _0x54e545=_0x7523f0;return _0x1f9fa9[_0x24a983(0x1e5)](HELP_HEADER_MESSAGE[_0x24a983(0x1d9)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x24a983(0x1e0)](_0x54e545[_0x24a983(0x1ec)])[_0x24a983(0x1e3)]()[_0x24a983(0x1ea)]()[_0x24a983(0x1dd)]()[_0x24a983(0x1d8)](_0x54e545[_0x24a983(0x1e9)]);},exports[a18_0x465010(0x1ed)]=function(_0x5c88d0){};
1
+ const a18_0x4ff322=a18_0x1583;function a18_0x1583(_0x465bb2,_0x27bc2b){const _0x5d0017=a18_0x5d00();return a18_0x1583=function(_0x158342,_0xf8eb13){_0x158342=_0x158342-0x1d8;let _0x5b5375=_0x5d0017[_0x158342];return _0x5b5375;},a18_0x1583(_0x465bb2,_0x27bc2b);}(function(_0x5c48af,_0x59ebe8){const _0x24b35f=a18_0x1583,_0x503081=_0x5c48af();while(!![]){try{const _0x53a119=parseInt(_0x24b35f(0x1e0))/0x1*(parseInt(_0x24b35f(0x1ec))/0x2)+parseInt(_0x24b35f(0x1eb))/0x3+parseInt(_0x24b35f(0x1db))/0x4*(-parseInt(_0x24b35f(0x1e7))/0x5)+-parseInt(_0x24b35f(0x1da))/0x6*(parseInt(_0x24b35f(0x1e6))/0x7)+parseInt(_0x24b35f(0x1e2))/0x8*(parseInt(_0x24b35f(0x1e4))/0x9)+-parseInt(_0x24b35f(0x1dc))/0xa+parseInt(_0x24b35f(0x1e3))/0xb*(parseInt(_0x24b35f(0x1e8))/0xc);if(_0x53a119===_0x59ebe8)break;else _0x503081['push'](_0x503081['shift']());}catch(_0x3929d5){_0x503081['push'](_0x503081['shift']());}}}(a18_0x5d00,0x3a349));function a18_0x5d00(){const _0xab4700=['14fYzgNH','70005lPzSxd','430356RekLsk','help','epilogue','661167EoLnLv','16598fjaWwY','desc','strict','start','handler','888606lXkhPQ','84pvnCjD','1995010SexXrJ','commandDir','builder','bBotX','1KAvaMe','start_commands','496blwzIF','209BRFnkO','17136KelAsx','recommendCommands'];a18_0x5d00=function(){return _0xab4700;};return a18_0x5d00();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x4ff322(0x1d8),exports[a18_0x4ff322(0x1ed)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x4ff322(0x1de)]=function(_0x4fdc1d){const _0x39a68e=a18_0x4ff322,_0x5cb22c={};_0x5cb22c[_0x39a68e(0x1df)]=_0x39a68e(0x1e1),_0x5cb22c['kZnZk']=_0x39a68e(0x1e9);const _0x3b23e4=_0x5cb22c;return _0x4fdc1d['usage'](HELP_HEADER_MESSAGE[_0x39a68e(0x1d8)])[_0x39a68e(0x1ea)](HELP_FOOTER_MESSAGE)[_0x39a68e(0x1dd)](_0x3b23e4[_0x39a68e(0x1df)])['demandCommand']()[_0x39a68e(0x1e5)]()[_0x39a68e(0x1ee)]()[_0x39a68e(0x1e9)](_0x3b23e4['kZnZk']);},exports[a18_0x4ff322(0x1d9)]=function(_0x2f7c00){};
@@ -1 +1 @@
1
- const a19_0x220075=a19_0x2c9d;function a19_0x3593(){const _0x3f99b1=['4pXYzfM','handler','default','<UsernamePlaceholder>','PAcXO','517011rZVEYZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','connectionTimeout','../../utils/createk8sClient','366339SYVuzL','Grid\x20started','787352TIVwmC','parse','500EIkxMG','builder','options','string','desc','WnWPX','debug','error','LEEhG','5kyFZqj','start','JSlSS','../../config/logger','password','stringify','Adding\x20Websocket\x20listeners','90gzMbnW','ERROR','reconnecting-websocket','info','Starting\x20grid\x20','skip-tls-cert-verify','description','3375450BKdBrL','../../utils/gridComponents','message','boolean','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','command','help','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','mWTbA','epilogue','apOeG','WYkEq','cPFok','../../config/constants','jyCpB','Browserstack','gridId','WebSocket','wtGte','user','grid','usage','bstackUsername','server-error','clusterRegion','JkeUZ','TPPuy','oUyEi','XKECe','unauthorised','clusterName','17FmRUaY','stack','statusCode','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','body','xqSaa','name','816774EdyFTr','xlSDm','username','cloudProvider','../../cloudproviders/utils','802938fivCqq','nMRqG','skipTlsCertVerify','VIQmz','replace','fkInA','bstackAccesskey','INFO','existsSync','region'];a19_0x3593=function(){return _0x3f99b1;};return a19_0x3593();}function a19_0x2c9d(_0x2fde8d,_0x37801c){const _0x35931f=a19_0x3593();return a19_0x2c9d=function(_0x2c9df1,_0x8d2cb6){_0x2c9df1=_0x2c9df1-0x111;let _0xf64ec6=_0x35931f[_0x2c9df1];return _0xf64ec6;},a19_0x2c9d(_0x2fde8d,_0x37801c);}(function(_0x121c9a,_0x4c1b49){const _0x4c8054=a19_0x2c9d,_0x134472=_0x121c9a();while(!![]){try{const _0x5e1578=parseInt(_0x4c8054(0x13c))/0x1*(parseInt(_0x4c8054(0x160))/0x2)+-parseInt(_0x4c8054(0x15c))/0x3*(-parseInt(_0x4c8054(0x152))/0x4)+parseInt(_0x4c8054(0x169))/0x5*(parseInt(_0x4c8054(0x148))/0x6)+parseInt(_0x4c8054(0x143))/0x7+-parseInt(_0x4c8054(0x15e))/0x8+parseInt(_0x4c8054(0x11c))/0x9+-parseInt(_0x4c8054(0x115))/0xa*(parseInt(_0x4c8054(0x157))/0xb);if(_0x5e1578===_0x4c1b49)break;else _0x134472['push'](_0x134472['shift']());}catch(_0x495e76){_0x134472['push'](_0x134472['shift']());}}}(a19_0x3593,0x3845a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x220075(0x117)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x220075(0x12a)),{logger}=require(a19_0x220075(0x111)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x220075(0x11d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x220075(0x15b)),{getCloudProviderObject}=require(a19_0x220075(0x147));exports[a19_0x220075(0x121)]=a19_0x220075(0x131),exports[a19_0x220075(0x164)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x220075(0x161)]=function(_0x31316e){const _0xf52175=a19_0x220075,_0x268bb7={};_0x268bb7['LPNHa']=_0xf52175(0x120),_0x268bb7[_0xf52175(0x127)]=_0xf52175(0x163),_0x268bb7[_0xf52175(0x139)]='Skip\x20insecure\x20cert\x20verification.',_0x268bb7[_0xf52175(0x128)]=_0xf52175(0x11f),_0x268bb7[_0xf52175(0x136)]=_0xf52175(0x122);const _0x350a6e=_0x268bb7,_0x5d6120={};_0x5d6120[_0xf52175(0x11b)]=_0x350a6e['LPNHa'],_0x5d6120['type']=_0x350a6e['apOeG'];const _0x473098={};_0x473098['description']=_0x350a6e[_0xf52175(0x139)],_0x473098['type']=_0x350a6e['WYkEq'],_0x473098[_0xf52175(0x154)]=![];const _0x29c630={};return _0x29c630['grid-id']=_0x5d6120,_0x29c630[_0xf52175(0x11a)]=_0x473098,_0x31316e[_0xf52175(0x132)](HELP_HEADER_MESSAGE[_0xf52175(0x16a)])[_0xf52175(0x126)](HELP_FOOTER_MESSAGE)[_0xf52175(0x162)](_0x29c630)[_0xf52175(0x122)](_0x350a6e[_0xf52175(0x136)])[_0xf52175(0x123)];},exports[a19_0x220075(0x153)]=async function(_0x218c72){const _0x2db6f6=a19_0x220075,_0x257a47={'VIQmz':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','PAcXO':function(_0x19049b){return _0x19049b();},'xlSDm':_0x2db6f6(0x158),'LEEhG':function(_0x46a82c,_0x3f1c0a,_0x1281e7,_0x22aefc,_0x5438f3,_0x18fc75,_0x5c581b){return _0x46a82c(_0x3f1c0a,_0x1281e7,_0x22aefc,_0x5438f3,_0x18fc75,_0x5c581b);},'cPFok':'start-grid-called','wtGte':'init-not-called','SvQyq':function(_0x3f4371){return _0x3f4371();},'oUyEi':_0x2db6f6(0x155),'TPPuy':'<PasswordPlaceholder>','jyCpB':_0x2db6f6(0x114),'PBxmR':function(_0x514c7a,_0x4868bd,_0xa9b9f2,_0x3f9cc7){return _0x514c7a(_0x4868bd,_0xa9b9f2,_0x3f9cc7);},'mWTbA':function(_0x433bab,_0x227749,_0x65ac88){return _0x433bab(_0x227749,_0x65ac88);},'TRZrA':_0x2db6f6(0x15d),'fkInA':function(_0x6618c0,_0x243b8c){return _0x6618c0===_0x243b8c;},'WnWPX':_0x2db6f6(0x124),'nMRqG':function(_0x589794,_0x2498d1,_0x11ec64,_0x31ee4a,_0x378562,_0x394d4e,_0x3c0835){return _0x589794(_0x2498d1,_0x11ec64,_0x31ee4a,_0x378562,_0x394d4e,_0x3c0835);},'xqSaa':_0x2db6f6(0x13a),'epMmx':function(_0x309d09,_0x1785d9,_0x1f11dc,_0x2b6bfd,_0x4b3d4b,_0xa41678,_0x4f47e9){return _0x309d09(_0x1785d9,_0x1f11dc,_0x2b6bfd,_0x4b3d4b,_0xa41678,_0x4f47e9);},'JSlSS':'invalid-grid-id','GeCeQ':_0x2db6f6(0x134)};let _0x55d6c7;try{!_0x218c72[_0x2db6f6(0x12d)]&&(logger['error'](_0x257a47[_0x2db6f6(0x14b)]),process[_0x2db6f6(0x159)](0x1));!fs[_0x2db6f6(0x150)](_0x257a47[_0x2db6f6(0x156)](getCredentialsPath))&&(logger[_0x2db6f6(0x167)](_0x257a47[_0x2db6f6(0x144)]),await _0x257a47['LEEhG'](sendInstrumentationEvent,_0x218c72,_0x257a47[_0x2db6f6(0x129)],messageTypes[_0x2db6f6(0x116)],_0x257a47[_0x2db6f6(0x12f)],null,_0x218c72),process[_0x2db6f6(0x159)](0x1));logger[_0x2db6f6(0x118)](_0x2db6f6(0x119)+_0x218c72[_0x2db6f6(0x12d)]),await _0x257a47[_0x2db6f6(0x168)](sendInstrumentationEvent,_0x218c72,_0x257a47[_0x2db6f6(0x129)],messageTypes[_0x2db6f6(0x14f)],null,null,_0x218c72);const _0x2d78ba=JSON[_0x2db6f6(0x15f)](fs['readFileSync'](_0x257a47['SvQyq'](getCredentialsPath)));global_registry[_0x2db6f6(0x133)]=_0x2d78ba[_0x2db6f6(0x12c)][_0x2db6f6(0x145)],global_registry[_0x2db6f6(0x14e)]=_0x2d78ba['Browserstack']['password'];const _0x493371=WS_ENDPOINT['replace'](_0x257a47[_0x2db6f6(0x138)],_0x2d78ba[_0x2db6f6(0x12c)]['username'])[_0x2db6f6(0x14c)](_0x257a47[_0x2db6f6(0x137)],_0x2d78ba['Browserstack'][_0x2db6f6(0x112)]),_0x1926d9={};_0x1926d9[_0x2db6f6(0x12e)]=ws,_0x1926d9[_0x2db6f6(0x15a)]=0x36ee80,_0x55d6c7=new ReconnectingWebSocket(_0x493371,[],_0x1926d9),logger[_0x2db6f6(0x166)](_0x257a47[_0x2db6f6(0x12b)]),webSocketUtils['addListeners'](_0x55d6c7,_0x218c72[_0x2db6f6(0x130)],_0x218c72[_0x2db6f6(0x112)]);const [_0x32664d,_0x3ee396]=await _0x257a47['PBxmR'](getGridDetails,_0x2d78ba[_0x2db6f6(0x12c)][_0x2db6f6(0x145)],_0x2d78ba['Browserstack'][_0x2db6f6(0x112)],_0x218c72[_0x2db6f6(0x12d)]);if(_0x3ee396){const _0x30c527=_0x3ee396['info'];global_registry[_0x2db6f6(0x146)]=_0x30c527[_0x2db6f6(0x146)],global_registry[_0x2db6f6(0x135)]=_0x30c527[_0x2db6f6(0x151)],global_registry[_0x2db6f6(0x13b)]=_0x30c527[_0x2db6f6(0x13b)];const _0x1fca86=await _0x257a47['LEEhG'](getCloudProviderObject,_0x30c527[_0x2db6f6(0x146)],_0x30c527[_0x2db6f6(0x13b)],_0x30c527[_0x2db6f6(0x142)],_0x55d6c7,webSocketUtils,_0x218c72),[_0x25d6ec,_0x4f6eb2,_0x2c0a40,_0x123d6a,_0x171111,_0x260cd2]=await _0x257a47[_0x2db6f6(0x125)](createK8sClient,_0x1fca86,_0x218c72[_0x2db6f6(0x14a)]);await _0x257a47[_0x2db6f6(0x125)](scaleUpHubDeployment,_0x4f6eb2,_0x30c527[_0x2db6f6(0x142)]),logger[_0x2db6f6(0x118)](_0x257a47['TRZrA']),process['exit'](0x0);}_0x257a47[_0x2db6f6(0x14d)](_0x32664d[_0x2db6f6(0x13e)],0x191)&&(logger[_0x2db6f6(0x167)](_0x257a47[_0x2db6f6(0x165)]),await _0x257a47[_0x2db6f6(0x149)](sendInstrumentationEvent,_0x218c72,_0x257a47['cPFok'],messageTypes['ERROR'],_0x257a47[_0x2db6f6(0x141)],null,_0x218c72),process[_0x2db6f6(0x159)](0x1)),_0x257a47[_0x2db6f6(0x14d)](_0x32664d[_0x2db6f6(0x13e)],0x190)&&(logger[_0x2db6f6(0x167)](JSON[_0x2db6f6(0x15f)](_0x32664d[_0x2db6f6(0x140)])[_0x2db6f6(0x11e)]),await _0x257a47['epMmx'](sendInstrumentationEvent,_0x218c72,_0x257a47[_0x2db6f6(0x129)],messageTypes[_0x2db6f6(0x116)],_0x257a47[_0x2db6f6(0x16b)],null,_0x218c72),process['exit'](0x1)),logger[_0x2db6f6(0x167)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x32664d)),await _0x257a47[_0x2db6f6(0x149)](sendInstrumentationEvent,_0x218c72,_0x257a47[_0x2db6f6(0x129)],messageTypes[_0x2db6f6(0x116)],_0x257a47['GeCeQ'],_0x32664d,_0x218c72),process[_0x2db6f6(0x159)](0x1);}catch(_0x16b70f){const _0x581efa=_0x2db6f6(0x13f)+_0x16b70f+'\x20\x0a'+JSON[_0x2db6f6(0x113)](_0x16b70f[_0x2db6f6(0x13d)])+'\x20';logger[_0x2db6f6(0x167)](_0x581efa),process[_0x2db6f6(0x159)](0x1);}};
1
+ const a19_0x594ddc=a19_0x1d14;function a19_0x1d14(_0x4d66ad,_0x5e6275){const _0xa9a569=a19_0xa9a5();return a19_0x1d14=function(_0x1d14b5,_0x53ab6b){_0x1d14b5=_0x1d14b5-0x14a;let _0x16ed64=_0xa9a569[_0x1d14b5];return _0x16ed64;},a19_0x1d14(_0x4d66ad,_0x5e6275);}(function(_0xdb953f,_0x382aa2){const _0x2dcdb3=a19_0x1d14,_0x32ec25=_0xdb953f();while(!![]){try{const _0x50e91c=parseInt(_0x2dcdb3(0x176))/0x1+-parseInt(_0x2dcdb3(0x168))/0x2*(-parseInt(_0x2dcdb3(0x151))/0x3)+parseInt(_0x2dcdb3(0x16f))/0x4+-parseInt(_0x2dcdb3(0x167))/0x5*(parseInt(_0x2dcdb3(0x175))/0x6)+-parseInt(_0x2dcdb3(0x15c))/0x7*(parseInt(_0x2dcdb3(0x14c))/0x8)+parseInt(_0x2dcdb3(0x150))/0x9+parseInt(_0x2dcdb3(0x14d))/0xa*(-parseInt(_0x2dcdb3(0x19c))/0xb);if(_0x50e91c===_0x382aa2)break;else _0x32ec25['push'](_0x32ec25['shift']());}catch(_0x1c707f){_0x32ec25['push'](_0x32ec25['shift']());}}}(a19_0xa9a5,0x78ab9));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x594ddc(0x179)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x594ddc(0x18b)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x594ddc(0x178)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x594ddc(0x17d)),{getCloudProviderObject}=require(a19_0x594ddc(0x165));exports[a19_0x594ddc(0x194)]=a19_0x594ddc(0x152),exports[a19_0x594ddc(0x164)]=a19_0x594ddc(0x163),exports[a19_0x594ddc(0x15a)]=function(_0x3a84a6){const _0x6b0c4c=a19_0x594ddc,_0x582505={};_0x582505[_0x6b0c4c(0x156)]=_0x6b0c4c(0x1a2),_0x582505[_0x6b0c4c(0x157)]='string',_0x582505[_0x6b0c4c(0x184)]='Skip\x20insecure\x20cert\x20verification.',_0x582505['WvLqI']=_0x6b0c4c(0x14e),_0x582505[_0x6b0c4c(0x166)]=_0x6b0c4c(0x19f);const _0x37c4e1=_0x582505,_0x497b00={};_0x497b00[_0x6b0c4c(0x17b)]=_0x37c4e1[_0x6b0c4c(0x156)],_0x497b00['type']=_0x37c4e1[_0x6b0c4c(0x157)];const _0xfc9c7e={};_0xfc9c7e[_0x6b0c4c(0x17b)]=_0x37c4e1[_0x6b0c4c(0x184)],_0xfc9c7e['type']=_0x37c4e1[_0x6b0c4c(0x158)],_0xfc9c7e[_0x6b0c4c(0x173)]=![];const _0x262388={};return _0x262388[_0x6b0c4c(0x191)]=_0x497b00,_0x262388[_0x6b0c4c(0x15e)]=_0xfc9c7e,_0x3a84a6['usage'](HELP_HEADER_MESSAGE[_0x6b0c4c(0x14b)])[_0x6b0c4c(0x15b)](HELP_FOOTER_MESSAGE)[_0x6b0c4c(0x18a)](_0x262388)[_0x6b0c4c(0x19f)](_0x37c4e1[_0x6b0c4c(0x166)])[_0x6b0c4c(0x192)];},exports['handler']=async function(_0x2c2e4c){const _0x450bf2=a19_0x594ddc,_0x3fd6c5={'LikpF':_0x450bf2(0x198),'Xitle':function(_0x57d157){return _0x57d157();},'EEejW':_0x450bf2(0x1a4),'XVZbW':function(_0x481951,_0x11267f,_0x52c246,_0x40bf5e,_0x15ae5a,_0x5b6a2a,_0x26ecd2){return _0x481951(_0x11267f,_0x52c246,_0x40bf5e,_0x15ae5a,_0x5b6a2a,_0x26ecd2);},'WyJiD':_0x450bf2(0x19a),'UcXbZ':_0x450bf2(0x17a),'hvOcS':function(_0x58b088,_0x313995,_0x5c0f03,_0x11629f,_0x36e390,_0x1c4eee,_0x1c6d18){return _0x58b088(_0x313995,_0x5c0f03,_0x11629f,_0x36e390,_0x1c4eee,_0x1c6d18);},'tCbRi':function(_0x491a9b){return _0x491a9b();},'gJmXU':'<UsernamePlaceholder>','znMmh':'<PasswordPlaceholder>','FhpiR':_0x450bf2(0x172),'ihsue':function(_0x23880f,_0x15c136,_0x2bcba2,_0x3b273a){return _0x23880f(_0x15c136,_0x2bcba2,_0x3b273a);},'kJMRj':function(_0x9db178,_0x3b51a3,_0x2568ef,_0x450f22,_0x57e5b8,_0x3ad1f4,_0x12f09c){return _0x9db178(_0x3b51a3,_0x2568ef,_0x450f22,_0x57e5b8,_0x3ad1f4,_0x12f09c);},'IVxhc':function(_0x492b97,_0x5a43cf,_0x457044){return _0x492b97(_0x5a43cf,_0x457044);},'HullO':function(_0xfbe4a,_0x1cd17f,_0x15bb60){return _0xfbe4a(_0x1cd17f,_0x15bb60);},'wbgUi':_0x450bf2(0x18d),'qcHSy':function(_0x10f821,_0x3ceaba){return _0x10f821===_0x3ceaba;},'alzZY':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','laeNN':function(_0x3430c3,_0x364e02,_0x28a8de,_0x4d5669,_0x8edda0,_0x2d341f,_0x70d4fe){return _0x3430c3(_0x364e02,_0x28a8de,_0x4d5669,_0x8edda0,_0x2d341f,_0x70d4fe);},'HKqCJ':'unauthorised','XupSE':function(_0x221b72,_0x1a150f,_0x1d3f93,_0x568199,_0x9416cd,_0x5ddf6f,_0x3eca69){return _0x221b72(_0x1a150f,_0x1d3f93,_0x568199,_0x9416cd,_0x5ddf6f,_0x3eca69);},'amswu':'invalid-grid-id','XuExF':function(_0x2ae62e,_0x153aca,_0x368da8,_0x4754d6,_0x871409,_0x334777,_0x3a974d){return _0x2ae62e(_0x153aca,_0x368da8,_0x4754d6,_0x871409,_0x334777,_0x3a974d);},'WyWCq':_0x450bf2(0x183)};let _0x3df44f;try{!_0x2c2e4c[_0x450bf2(0x159)]&&(logger['error'](_0x3fd6c5[_0x450bf2(0x162)]),process[_0x450bf2(0x14f)](0x1));!fs[_0x450bf2(0x19d)](_0x3fd6c5['Xitle'](getCredentialsPath))&&(logger[_0x450bf2(0x189)](_0x3fd6c5[_0x450bf2(0x17e)]),await _0x3fd6c5[_0x450bf2(0x18f)](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5[_0x450bf2(0x1a0)],messageTypes['ERROR'],_0x3fd6c5[_0x450bf2(0x177)],null,_0x2c2e4c),process[_0x450bf2(0x14f)](0x1));logger[_0x450bf2(0x16c)](_0x450bf2(0x161)+_0x2c2e4c[_0x450bf2(0x159)]),await _0x3fd6c5['hvOcS'](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5['WyJiD'],messageTypes[_0x450bf2(0x18e)],null,null,_0x2c2e4c);const _0x5b8cb5=JSON[_0x450bf2(0x1a1)](fs['readFileSync'](_0x3fd6c5['tCbRi'](getCredentialsPath)));global_registry[_0x450bf2(0x19e)]=_0x5b8cb5['Browserstack'][_0x450bf2(0x14a)],global_registry['bstackAccesskey']=_0x5b8cb5['Browserstack'][_0x450bf2(0x197)];const _0x17d368=WS_ENDPOINT[_0x450bf2(0x182)](_0x3fd6c5['gJmXU'],_0x5b8cb5['Browserstack'][_0x450bf2(0x14a)])[_0x450bf2(0x182)](_0x3fd6c5[_0x450bf2(0x193)],_0x5b8cb5['Browserstack'][_0x450bf2(0x197)]),_0x179a81={};_0x179a81[_0x450bf2(0x155)]=ws,_0x179a81[_0x450bf2(0x16e)]=0x36ee80,_0x3df44f=new ReconnectingWebSocket(_0x17d368,[],_0x179a81),logger['debug'](_0x3fd6c5[_0x450bf2(0x181)]),webSocketUtils['addListeners'](_0x3df44f,_0x2c2e4c[_0x450bf2(0x17c)],_0x2c2e4c[_0x450bf2(0x197)]);const [_0x52341c,_0x57d6fa]=await _0x3fd6c5[_0x450bf2(0x16d)](getGridDetails,_0x5b8cb5['Browserstack'][_0x450bf2(0x14a)],_0x5b8cb5[_0x450bf2(0x190)][_0x450bf2(0x197)],_0x2c2e4c[_0x450bf2(0x159)]);if(_0x57d6fa){const _0x4385f3=_0x57d6fa[_0x450bf2(0x16c)];global_registry[_0x450bf2(0x188)]=_0x4385f3[_0x450bf2(0x188)],global_registry[_0x450bf2(0x16a)]=_0x4385f3[_0x450bf2(0x199)],global_registry[_0x450bf2(0x1a3)]=_0x4385f3[_0x450bf2(0x1a3)];const _0x553876=await _0x3fd6c5[_0x450bf2(0x153)](getCloudProviderObject,_0x4385f3['cloudProvider'],_0x4385f3['clusterName'],_0x4385f3[_0x450bf2(0x169)],_0x3df44f,webSocketUtils,_0x2c2e4c),[_0x3c596b,_0x2c3d02,_0x45f2ed,_0x188282,_0x46fbb3,_0x5330b9]=await _0x3fd6c5[_0x450bf2(0x174)](createK8sClient,_0x553876,_0x2c2e4c[_0x450bf2(0x15f)]);await _0x3fd6c5[_0x450bf2(0x170)](scaleUpHubDeployment,_0x2c3d02,_0x4385f3[_0x450bf2(0x169)]),logger[_0x450bf2(0x16c)](_0x3fd6c5[_0x450bf2(0x16b)]),process[_0x450bf2(0x14f)](0x0);}_0x3fd6c5[_0x450bf2(0x15d)](_0x52341c[_0x450bf2(0x186)],0x191)&&(logger[_0x450bf2(0x189)](_0x3fd6c5[_0x450bf2(0x1a5)]),await _0x3fd6c5[_0x450bf2(0x195)](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5['WyJiD'],messageTypes['ERROR'],_0x3fd6c5['HKqCJ'],null,_0x2c2e4c),process[_0x450bf2(0x14f)](0x1)),_0x3fd6c5['qcHSy'](_0x52341c['statusCode'],0x190)&&(logger['error'](JSON[_0x450bf2(0x1a1)](_0x52341c[_0x450bf2(0x187)])['message']),await _0x3fd6c5[_0x450bf2(0x196)](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5['WyJiD'],messageTypes[_0x450bf2(0x160)],_0x3fd6c5[_0x450bf2(0x17f)],null,_0x2c2e4c),process['exit'](0x1)),logger[_0x450bf2(0x189)](_0x450bf2(0x180)+JSON[_0x450bf2(0x18c)](_0x52341c)),await _0x3fd6c5[_0x450bf2(0x154)](sendInstrumentationEvent,_0x2c2e4c,_0x3fd6c5[_0x450bf2(0x1a0)],messageTypes['ERROR'],_0x3fd6c5[_0x450bf2(0x19b)],_0x52341c,_0x2c2e4c),process['exit'](0x1);}catch(_0x57b5c4){const _0x1cf1ca=_0x450bf2(0x185)+_0x57b5c4+'\x20\x0a'+JSON[_0x450bf2(0x18c)](_0x57b5c4[_0x450bf2(0x171)])+'\x20';logger[_0x450bf2(0x189)](_0x1cf1ca),process['exit'](0x1);}};function a19_0xa9a5(){const _0x2a5f3b=['builder','epilogue','7HklmPg','qcHSy','skip-tls-cert-verify','skipTlsCertVerify','ERROR','Starting\x20grid\x20','LikpF','Start\x20an\x20existing\x20Automation\x20grid.','desc','../../cloudproviders/utils','MDzKa','245tVORWE','218gMOetX','name','clusterRegion','wbgUi','info','ihsue','connectionTimeout','1738140WvYBhx','HullO','stack','Adding\x20Websocket\x20listeners','default','IVxhc','89934EdSjTx','685394ihFebH','UcXbZ','../../utils/utilityMethods','reconnecting-websocket','init-not-called','description','user','../../utils/createk8sClient','EEejW','amswu','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','FhpiR','replace','server-error','QJNlO','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','statusCode','body','cloudProvider','error','options','../../config/constants','stringify','Grid\x20started','INFO','XVZbW','Browserstack','grid-id','argv','znMmh','command','laeNN','XupSE','password','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','region','start-grid-called','WyWCq','55737BPxwGn','existsSync','bstackUsername','help','WyJiD','parse','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','clusterName','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','alzZY','username','start','3337160SdyjDr','2310yZYtJa','boolean','exit','6773292cWtUUs','25977CABkFQ','grid','kJMRj','XuExF','WebSocket','wVxfv','PHymZ','WvLqI','gridId'];a19_0xa9a5=function(){return _0x2a5f3b;};return a19_0xa9a5();}
@@ -1 +1 @@
1
- function a20_0x4b52(){const _0x2c15a3=['help','291240lbqeXW','fsMVZ','stop','recommendCommands','stop_commands','DDJFr','../config/constants','1081920zJpkvP','demandCommand','1445085ttNMLA','7798497VgJdVK','271840Dexuns','desc','usage','epilogue','613220KlHDAU','3524580OnHLoP','strict'];a20_0x4b52=function(){return _0x2c15a3;};return a20_0x4b52();}const a20_0x368cc9=a20_0x588b;function a20_0x588b(_0x2548f3,_0x5bf0bf){const _0x4b5210=a20_0x4b52();return a20_0x588b=function(_0x588bf1,_0x46535c){_0x588bf1=_0x588bf1-0x87;let _0x594ed0=_0x4b5210[_0x588bf1];return _0x594ed0;},a20_0x588b(_0x2548f3,_0x5bf0bf);}(function(_0x389741,_0xcd5e19){const _0x10cc51=a20_0x588b,_0x15dfd4=_0x389741();while(!![]){try{const _0x3f585a=parseInt(_0x10cc51(0x8f))/0x1+-parseInt(_0x10cc51(0x93))/0x2+-parseInt(_0x10cc51(0x97))/0x3+-parseInt(_0x10cc51(0x8b))/0x4+parseInt(_0x10cc51(0x8d))/0x5+-parseInt(_0x10cc51(0x94))/0x6+parseInt(_0x10cc51(0x8e))/0x7;if(_0x3f585a===_0xcd5e19)break;else _0x15dfd4['push'](_0x15dfd4['shift']());}catch(_0x46661e){_0x15dfd4['push'](_0x15dfd4['shift']());}}}(a20_0x4b52,0x64e90));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x368cc9(0x8a));exports['command']=a20_0x368cc9(0x99),exports[a20_0x368cc9(0x90)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x4603b5){const _0x3a982b=a20_0x368cc9,_0x4a0aba={};_0x4a0aba[_0x3a982b(0x89)]=_0x3a982b(0x88),_0x4a0aba[_0x3a982b(0x98)]='help';const _0x3644dc=_0x4a0aba;return _0x4603b5[_0x3a982b(0x91)](HELP_HEADER_MESSAGE[_0x3a982b(0x99)])[_0x3a982b(0x92)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3644dc[_0x3a982b(0x89)])[_0x3a982b(0x8c)]()[_0x3a982b(0x87)]()[_0x3a982b(0x95)]()[_0x3a982b(0x96)](_0x3644dc[_0x3a982b(0x98)]);},exports['handler']=function(_0x1012b1){};
1
+ const a20_0x47b230=a20_0x1b1d;function a20_0x1b1d(_0x58bc09,_0x3207fb){const _0x2fc66c=a20_0x2fc6();return a20_0x1b1d=function(_0x1b1d6d,_0x92fb64){_0x1b1d6d=_0x1b1d6d-0xd2;let _0x3dbf45=_0x2fc66c[_0x1b1d6d];return _0x3dbf45;},a20_0x1b1d(_0x58bc09,_0x3207fb);}(function(_0x569ec0,_0x3eb3fd){const _0xefa729=a20_0x1b1d,_0x5b5479=_0x569ec0();while(!![]){try{const _0x5efd79=-parseInt(_0xefa729(0xe2))/0x1+parseInt(_0xefa729(0xe5))/0x2*(-parseInt(_0xefa729(0xd5))/0x3)+-parseInt(_0xefa729(0xde))/0x4+parseInt(_0xefa729(0xd8))/0x5+-parseInt(_0xefa729(0xd4))/0x6*(parseInt(_0xefa729(0xd7))/0x7)+-parseInt(_0xefa729(0xd2))/0x8+parseInt(_0xefa729(0xda))/0x9;if(_0x5efd79===_0x3eb3fd)break;else _0x5b5479['push'](_0x5b5479['shift']());}catch(_0xf80f8e){_0x5b5479['push'](_0x5b5479['shift']());}}}(a20_0x2fc6,0x27943));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x47b230(0xe0));exports['command']=a20_0x47b230(0xdc),exports[a20_0x47b230(0xe4)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x25fbd0){const _0x448e0d=a20_0x47b230,_0xb21214={};_0xb21214[_0x448e0d(0xe6)]=_0x448e0d(0xe1),_0xb21214[_0x448e0d(0xdb)]='help';const _0x40065e=_0xb21214;return _0x25fbd0[_0x448e0d(0xdd)](HELP_HEADER_MESSAGE['stop'])[_0x448e0d(0xd6)](HELP_FOOTER_MESSAGE)[_0x448e0d(0xe7)](_0x40065e[_0x448e0d(0xe6)])[_0x448e0d(0xd3)]()[_0x448e0d(0xe3)]()[_0x448e0d(0xd9)]()['help'](_0x40065e[_0x448e0d(0xdb)]);},exports[a20_0x47b230(0xdf)]=function(_0x4fe269){};function a20_0x2fc6(){const _0x2003e8=['6mhCHvs','321updFzA','epilogue','2141405vIvFGi','662740OwQRdo','strict','9811080auhFeK','utDqa','stop','usage','461284MPgLJA','handler','../config/constants','stop_commands','204729tplyHD','recommendCommands','desc','5266ohkeqt','CncwL','commandDir','1222856KjaiWN','demandCommand'];a20_0x2fc6=function(){return _0x2003e8;};return a20_0x2fc6();}
@@ -1 +1 @@
1
- const a21_0x57e4f5=a21_0x11e5;(function(_0x1e4052,_0x2bb7){const _0x3f3a65=a21_0x11e5,_0x267db4=_0x1e4052();while(!![]){try{const _0x1db138=-parseInt(_0x3f3a65(0x14b))/0x1*(-parseInt(_0x3f3a65(0x158))/0x2)+-parseInt(_0x3f3a65(0x15e))/0x3+parseInt(_0x3f3a65(0x146))/0x4+-parseInt(_0x3f3a65(0x11d))/0x5+-parseInt(_0x3f3a65(0x117))/0x6*(parseInt(_0x3f3a65(0x153))/0x7)+-parseInt(_0x3f3a65(0x14c))/0x8+-parseInt(_0x3f3a65(0x12a))/0x9*(-parseInt(_0x3f3a65(0x127))/0xa);if(_0x1db138===_0x2bb7)break;else _0x267db4['push'](_0x267db4['shift']());}catch(_0x4c2b86){_0x267db4['push'](_0x267db4['shift']());}}}(a21_0x2c62,0x8819b));function a21_0x2c62(){const _0x91dc10=['cloudProvider','ulPqW','region','username','password','Browserstack','Stop\x20a\x20running\x20Automation\x20grid.','biZVq','QhxHE','15716fxeRiS','OcBBS','../../utils/webSocketUtils','boolean','gridId','227853mHbbah','6212808gTpAoJ','Adding\x20Websocket\x20listeners','server-error','grid-id','ERROR','init-not-called','WebSocket','147qLwlHA','builder','stop-grid-called','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','6qEGWcc','GWAVr','error','hapIU','smycZ','help','140055CWpDzo','exit','<UsernamePlaceholder>','usage','Skip\x20insecure\x20cert\x20verification.','desc','reconnecting-websocket','type','bstackUsername','OzDoB','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','readFileSync','iDGGb','argv','handler','user','TwOMs','description','invalid-grid-id','../../config/constants','VJIRR','159366wTkrUR','name','../../cloudproviders/utils','unauthorised','replace','default','3480980qzmZPK','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TEuJy','../../utils/createk8sClient','LOkLH','KlyMg','connectionTimeout','../../utils/gridComponents','existsSync','10lSbGJz','vBvIx','qfaki','17525178bBkUsZ','statusCode','fuVvO','Smcrf','../../utils/utilityMethods','VEwdc','stringify','addListeners','Grid\x20stoppped.','vwaKb','FWyCo','clusterRegion','debug','info','clusterName','Stopping\x20grid\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','command'];a21_0x2c62=function(){return _0x91dc10;};return a21_0x2c62();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x57e4f5(0x164)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x57e4f5(0x115)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x57e4f5(0x12e)),{scaleDownHubDeployment}=require(a21_0x57e4f5(0x125)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x57e4f5(0x148)),{createK8sClient}=require(a21_0x57e4f5(0x121)),{getCloudProviderObject}=require(a21_0x57e4f5(0x119));function a21_0x11e5(_0x4af6d2,_0x3081a5){const _0x2c625e=a21_0x2c62();return a21_0x11e5=function(_0x11e57f,_0x9e4a9c){_0x11e57f=_0x11e57f-0x10b;let _0x71367c=_0x2c625e[_0x11e57f];return _0x71367c;},a21_0x11e5(_0x4af6d2,_0x3081a5);}exports[a21_0x57e4f5(0x13c)]='grid',exports[a21_0x57e4f5(0x163)]=a21_0x57e4f5(0x143),exports[a21_0x57e4f5(0x154)]=function(_0x1ce6f4){const _0x36781a=a21_0x57e4f5,_0x4d9194={};_0x4d9194['smycZ']=_0x36781a(0x156),_0x4d9194[_0x36781a(0x10b)]='string',_0x4d9194['iDGGb']=_0x36781a(0x162),_0x4d9194[_0x36781a(0x147)]=_0x36781a(0x149),_0x4d9194[_0x36781a(0x134)]=_0x36781a(0x15d);const _0x2ef3c4=_0x4d9194,_0x3d2d2f={};_0x3d2d2f[_0x36781a(0x113)]=_0x2ef3c4[_0x36781a(0x15c)],_0x3d2d2f[_0x36781a(0x165)]=_0x2ef3c4[_0x36781a(0x10b)];const _0x1c6050={};_0x1c6050[_0x36781a(0x113)]=_0x2ef3c4[_0x36781a(0x10e)],_0x1c6050['type']=_0x2ef3c4[_0x36781a(0x147)],_0x1c6050[_0x36781a(0x11c)]=![];const _0x788926={};return _0x788926[_0x36781a(0x14f)]=_0x3d2d2f,_0x788926['skip-tls-cert-verify']=_0x1c6050,_0x1ce6f4[_0x36781a(0x161)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x788926)[_0x36781a(0x15d)](_0x2ef3c4[_0x36781a(0x134)])[_0x36781a(0x10f)];},exports[a21_0x57e4f5(0x110)]=async function(_0x4c45c6){const _0x392251=a21_0x57e4f5,_0x1985f7={'vwaKb':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','TEuJy':function(_0x414a3c){return _0x414a3c();},'LOkLH':_0x392251(0x13a),'vBvIx':function(_0x123bba,_0x1d9ffd,_0x16338f,_0x5f4558,_0x393bcc,_0x31648f,_0x625365){return _0x123bba(_0x1d9ffd,_0x16338f,_0x5f4558,_0x393bcc,_0x31648f,_0x625365);},'QhxHE':_0x392251(0x155),'hapIU':_0x392251(0x151),'Smcrf':_0x392251(0x160),'VEwdc':'<PasswordPlaceholder>','ulPqW':_0x392251(0x14d),'VJIRR':function(_0x3e6d16,_0x2c277d,_0x3a92aa,_0x9f4759){return _0x3e6d16(_0x2c277d,_0x3a92aa,_0x9f4759);},'biZVq':function(_0x584c5f,_0x1dbf4e,_0x1ff125){return _0x584c5f(_0x1dbf4e,_0x1ff125);},'qfaki':function(_0x19e949,_0x455ad8,_0x1fcf35){return _0x19e949(_0x455ad8,_0x1fcf35);},'EyAwE':_0x392251(0x132),'GWAVr':function(_0x4f4793,_0x189697){return _0x4f4793===_0x189697;},'TwOMs':_0x392251(0x11f),'dScLF':_0x392251(0x11a),'KlyMg':_0x392251(0x114),'fuVvO':_0x392251(0x14e)};let _0x3e7783;try{!_0x4c45c6[_0x392251(0x14a)]&&(logger[_0x392251(0x15a)](_0x1985f7[_0x392251(0x133)]),process[_0x392251(0x15f)](0x1));!fs[_0x392251(0x126)](_0x1985f7[_0x392251(0x120)](getCredentialsPath))&&(logger[_0x392251(0x15a)](_0x1985f7[_0x392251(0x122)]),await _0x1985f7['vBvIx'](sendInstrumentationEvent,_0x4c45c6,_0x1985f7[_0x392251(0x145)],messageTypes[_0x392251(0x150)],_0x1985f7[_0x392251(0x15b)],null,_0x4c45c6),process['exit'](0x1));logger['info'](_0x392251(0x139)+_0x4c45c6[_0x392251(0x14a)]),await _0x1985f7[_0x392251(0x128)](sendInstrumentationEvent,_0x4c45c6,_0x1985f7[_0x392251(0x145)],messageTypes['INFO'],null,null,_0x4c45c6);const _0x2386a3=JSON[_0x392251(0x11e)](fs[_0x392251(0x10d)](_0x1985f7[_0x392251(0x120)](getCredentialsPath)));global_registry[_0x392251(0x166)]=_0x2386a3['Browserstack'][_0x392251(0x140)],global_registry['bstackAccesskey']=_0x2386a3[_0x392251(0x142)]['password'];const _0x247490=WS_ENDPOINT[_0x392251(0x11b)](_0x1985f7[_0x392251(0x12d)],_0x2386a3['Browserstack']['username'])[_0x392251(0x11b)](_0x1985f7[_0x392251(0x12f)],_0x2386a3[_0x392251(0x142)][_0x392251(0x141)]),_0xda4545={};_0xda4545[_0x392251(0x152)]=ws,_0xda4545[_0x392251(0x124)]=0x36ee80,_0x3e7783=new ReconnectingWebSocket(_0x247490,[],_0xda4545),logger[_0x392251(0x136)](_0x1985f7[_0x392251(0x13e)]),webSocketUtils[_0x392251(0x131)](_0x3e7783,_0x4c45c6[_0x392251(0x111)],_0x4c45c6[_0x392251(0x141)]);const [_0x89f513,_0x539d3d]=await _0x1985f7[_0x392251(0x116)](getGridDetails,_0x2386a3['Browserstack'][_0x392251(0x140)],_0x2386a3['Browserstack'][_0x392251(0x141)],_0x4c45c6[_0x392251(0x14a)]);if(_0x539d3d){const _0x1a59e6=_0x539d3d[_0x392251(0x137)];global_registry[_0x392251(0x13d)]=_0x1a59e6[_0x392251(0x13d)],global_registry[_0x392251(0x135)]=_0x1a59e6[_0x392251(0x13f)],global_registry[_0x392251(0x138)]=_0x1a59e6[_0x392251(0x138)];const _0x12126b=await _0x1985f7['vBvIx'](getCloudProviderObject,_0x1a59e6[_0x392251(0x13d)],_0x1a59e6['clusterName'],_0x1a59e6['name'],_0x3e7783,webSocketUtils,_0x4c45c6),[_0x510fc7,_0x402299,_0x2ceeab,_0x5ea568,_0x34991e,_0x25112d]=await _0x1985f7[_0x392251(0x144)](createK8sClient,_0x12126b,_0x4c45c6['skipTlsCertVerify']);await _0x1985f7[_0x392251(0x129)](scaleDownHubDeployment,_0x402299,_0x1a59e6[_0x392251(0x118)]),logger[_0x392251(0x137)](_0x1985f7['EyAwE']),process[_0x392251(0x15f)](0x0);}_0x1985f7[_0x392251(0x159)](_0x89f513[_0x392251(0x12b)],0x191)&&(logger[_0x392251(0x15a)](_0x1985f7[_0x392251(0x112)]),await _0x1985f7[_0x392251(0x128)](sendInstrumentationEvent,_0x4c45c6,_0x1985f7[_0x392251(0x145)],messageTypes[_0x392251(0x150)],_0x1985f7['dScLF'],null,_0x4c45c6),process[_0x392251(0x15f)](0x1)),_0x1985f7['GWAVr'](_0x89f513[_0x392251(0x12b)],0x190)&&(logger['error'](JSON[_0x392251(0x11e)](_0x89f513[_0x392251(0x13b)])['message']),await _0x1985f7[_0x392251(0x128)](sendInstrumentationEvent,_0x4c45c6,_0x1985f7['QhxHE'],messageTypes[_0x392251(0x150)],_0x1985f7[_0x392251(0x123)],null,_0x4c45c6),process[_0x392251(0x15f)](0x1)),logger['error'](_0x392251(0x157)+JSON['stringify'](_0x89f513)),await _0x1985f7[_0x392251(0x128)](sendInstrumentationEvent,_0x4c45c6,_0x1985f7['QhxHE'],messageTypes[_0x392251(0x150)],_0x1985f7[_0x392251(0x12c)],_0x89f513,_0x4c45c6),process['exit'](0x1);}catch(_0x2aa9cb){const _0x425130=_0x392251(0x10c)+_0x2aa9cb+'\x20\x0a'+JSON[_0x392251(0x130)](_0x2aa9cb['stack'])+'\x20';logger[_0x392251(0x15a)](_0x425130),process['exit'](0x1);}};
1
+ const a21_0x4e86b7=a21_0x5893;(function(_0x13d61f,_0x51e83e){const _0x1e18da=a21_0x5893,_0x305b74=_0x13d61f();while(!![]){try{const _0x205ee8=parseInt(_0x1e18da(0x122))/0x1*(parseInt(_0x1e18da(0xdb))/0x2)+parseInt(_0x1e18da(0x106))/0x3*(-parseInt(_0x1e18da(0x115))/0x4)+-parseInt(_0x1e18da(0x11e))/0x5*(parseInt(_0x1e18da(0xe5))/0x6)+-parseInt(_0x1e18da(0xf5))/0x7+parseInt(_0x1e18da(0xca))/0x8*(-parseInt(_0x1e18da(0x102))/0x9)+-parseInt(_0x1e18da(0xea))/0xa+parseInt(_0x1e18da(0x111))/0xb*(parseInt(_0x1e18da(0xdc))/0xc);if(_0x205ee8===_0x51e83e)break;else _0x305b74['push'](_0x305b74['shift']());}catch(_0x464b4d){_0x305b74['push'](_0x305b74['shift']());}}}(a21_0x2c33,0xe7d95));function a21_0x2c33(){const _0x36e1c9=['type','server-error','user','reconnecting-websocket','Adding\x20Websocket\x20listeners','password','85wcrebG','error','rkdId','../../utils/createk8sClient','9ZxqSPU','WgcYW','evHKn','iQWiG','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','8McpMfV','argv','PFERN','../../utils/utilityMethods','cORfD','lXMDi','../../utils/instrumentationUtils','emkDk','connectionTimeout','init-not-called','NMxKI','WebSocket','UsXuL','../../utils/gridComponents','name','help','debug','237842AoFguQ','59360244eGjtIp','parse','stop-grid-called','BXKzc','cloudProvider','desc','<UsernamePlaceholder>','JYuff','clusterName','558708njYQCQ','grid','Grid\x20stoppped.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AZqLk','1410440xqpXiv','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','string','hXVFf','../../utils/webSocketUtils','yQJyl','Browserstack','epilogue','cqDOA','bstackUsername','10357165HBQQDw','username','../../cloudproviders/utils','bstackAccesskey','skip-tls-cert-verify','statusCode','stop','grid-id','usage','region','Svgdf','lEXWm','hEYEs','16456923WdVURG','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Stop\x20a\x20running\x20Automation\x20grid.','129vxPkrM','iOcVd','exit','<PasswordPlaceholder>','replace','FgcCi','Stopping\x20grid\x20','handler','gHfpH','message','skipTlsCertVerify','11tfMOEk','stringify','command','gridId','3268RwvVwo','default','description'];a21_0x2c33=function(){return _0x36e1c9;};return a21_0x2c33();}function a21_0x5893(_0x187dfe,_0x4ff48f){const _0x2c3351=a21_0x2c33();return a21_0x5893=function(_0x5893f1,_0x874dee){_0x5893f1=_0x5893f1-0xc7;let _0x47f4a8=_0x2c3351[_0x5893f1];return _0x47f4a8;},a21_0x5893(_0x187dfe,_0x4ff48f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4e86b7(0x11b)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x4e86b7(0xcd)),{scaleDownHubDeployment}=require(a21_0x4e86b7(0xd7)),{sendInstrumentationEvent}=require(a21_0x4e86b7(0xd0)),webSocketUtils=require(a21_0x4e86b7(0xef)),{createK8sClient}=require(a21_0x4e86b7(0x121)),{getCloudProviderObject}=require(a21_0x4e86b7(0xf7));exports[a21_0x4e86b7(0x113)]=a21_0x4e86b7(0xe6),exports[a21_0x4e86b7(0xe1)]=a21_0x4e86b7(0x105),exports['builder']=function(_0x4cf401){const _0x1cd5c9=a21_0x4e86b7,_0x46cc59={};_0x46cc59[_0x1cd5c9(0xff)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x46cc59[_0x1cd5c9(0xce)]=_0x1cd5c9(0xed),_0x46cc59['BXKzc']='Skip\x20insecure\x20cert\x20verification.',_0x46cc59[_0x1cd5c9(0x10b)]='boolean',_0x46cc59[_0x1cd5c9(0xf3)]=_0x1cd5c9(0xd9);const _0x1623ef=_0x46cc59,_0xa0d3dc={};_0xa0d3dc[_0x1cd5c9(0x117)]=_0x1623ef[_0x1cd5c9(0xff)],_0xa0d3dc[_0x1cd5c9(0x118)]=_0x1623ef[_0x1cd5c9(0xce)];const _0x358aaf={};_0x358aaf[_0x1cd5c9(0x117)]=_0x1623ef[_0x1cd5c9(0xdf)],_0x358aaf[_0x1cd5c9(0x118)]=_0x1623ef[_0x1cd5c9(0x10b)],_0x358aaf[_0x1cd5c9(0x116)]=![];const _0x9505e7={};return _0x9505e7[_0x1cd5c9(0xfc)]=_0xa0d3dc,_0x9505e7[_0x1cd5c9(0xf9)]=_0x358aaf,_0x4cf401[_0x1cd5c9(0xfd)](HELP_HEADER_MESSAGE[_0x1cd5c9(0xfb)])[_0x1cd5c9(0xf2)](HELP_FOOTER_MESSAGE)['options'](_0x9505e7)[_0x1cd5c9(0xd9)](_0x1623ef['cqDOA'])[_0x1cd5c9(0xcb)];},exports[a21_0x4e86b7(0x10d)]=async function(_0xb702d7){const _0xbce8fc=a21_0x4e86b7,_0x499803={'AZqLk':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','WgcYW':function(_0x591a81){return _0x591a81();},'UsXuL':_0xbce8fc(0xe8),'hXVFf':function(_0x5ed580,_0x1adf94,_0x5cf6ab,_0x35b293,_0x481197,_0x25ec2a,_0x4bba95){return _0x5ed580(_0x1adf94,_0x5cf6ab,_0x35b293,_0x481197,_0x25ec2a,_0x4bba95);},'hEYEs':_0xbce8fc(0xde),'evHKn':_0xbce8fc(0xd3),'yQJyl':function(_0x5d0e45,_0x4a8a68,_0x1c8074,_0x23d685,_0x73667c,_0xb67e6f,_0x529cdd){return _0x5d0e45(_0x4a8a68,_0x1c8074,_0x23d685,_0x73667c,_0xb67e6f,_0x529cdd);},'lXMDi':_0xbce8fc(0xe2),'emkDk':_0xbce8fc(0x109),'NMxKI':_0xbce8fc(0x11c),'gHfpH':function(_0x3eb664,_0x3e8c0a,_0x2e0887,_0x3343b7){return _0x3eb664(_0x3e8c0a,_0x2e0887,_0x3343b7);},'JYuff':function(_0x531000,_0x3240e0,_0x448ec8,_0x4870b7,_0x4acf5d,_0x4a0bfe,_0x5753e1){return _0x531000(_0x3240e0,_0x448ec8,_0x4870b7,_0x4acf5d,_0x4a0bfe,_0x5753e1);},'PFERN':function(_0x2f2f24,_0x52ee6d,_0x189e75){return _0x2f2f24(_0x52ee6d,_0x189e75);},'auGnD':function(_0x1e7bea,_0x41ba71,_0x2a3be4){return _0x1e7bea(_0x41ba71,_0x2a3be4);},'iOcVd':_0xbce8fc(0xe7),'iQWiG':function(_0x5e3040,_0xc38a14){return _0x5e3040===_0xc38a14;},'YyakH':_0xbce8fc(0x104),'DprMz':function(_0x5ecb40,_0x56f6cb,_0x3b3cc6,_0x1ede3b,_0x24d880,_0x24be7a,_0x329d7c){return _0x5ecb40(_0x56f6cb,_0x3b3cc6,_0x1ede3b,_0x24d880,_0x24be7a,_0x329d7c);},'bjSpT':'unauthorised','lEXWm':function(_0x378183,_0x55a253){return _0x378183===_0x55a253;},'TbjiO':'invalid-grid-id','rkdId':_0xbce8fc(0x119)};let _0x4aa7ef;try{!_0xb702d7[_0xbce8fc(0x114)]&&(logger[_0xbce8fc(0x11f)](_0x499803[_0xbce8fc(0xe9)]),process['exit'](0x1));!fs['existsSync'](_0x499803['WgcYW'](getCredentialsPath))&&(logger[_0xbce8fc(0x11f)](_0x499803[_0xbce8fc(0xd6)]),await _0x499803[_0xbce8fc(0xee)](sendInstrumentationEvent,_0xb702d7,_0x499803[_0xbce8fc(0x101)],messageTypes[_0xbce8fc(0x103)],_0x499803[_0xbce8fc(0xc7)],null,_0xb702d7),process[_0xbce8fc(0x108)](0x1));logger[_0xbce8fc(0xeb)](_0xbce8fc(0x10c)+_0xb702d7[_0xbce8fc(0x114)]),await _0x499803[_0xbce8fc(0xf0)](sendInstrumentationEvent,_0xb702d7,_0x499803[_0xbce8fc(0x101)],messageTypes['INFO'],null,null,_0xb702d7);const _0x3f8961=JSON[_0xbce8fc(0xdd)](fs['readFileSync'](_0x499803[_0xbce8fc(0x123)](getCredentialsPath)));global_registry[_0xbce8fc(0xf4)]=_0x3f8961[_0xbce8fc(0xf1)][_0xbce8fc(0xf6)],global_registry[_0xbce8fc(0xf8)]=_0x3f8961[_0xbce8fc(0xf1)]['password'];const _0x59e179=WS_ENDPOINT['replace'](_0x499803[_0xbce8fc(0xcf)],_0x3f8961[_0xbce8fc(0xf1)][_0xbce8fc(0xf6)])[_0xbce8fc(0x10a)](_0x499803[_0xbce8fc(0xd1)],_0x3f8961[_0xbce8fc(0xf1)][_0xbce8fc(0x11d)]),_0x344727={};_0x344727[_0xbce8fc(0xd5)]=ws,_0x344727[_0xbce8fc(0xd2)]=0x36ee80,_0x4aa7ef=new ReconnectingWebSocket(_0x59e179,[],_0x344727),logger[_0xbce8fc(0xda)](_0x499803[_0xbce8fc(0xd4)]),webSocketUtils['addListeners'](_0x4aa7ef,_0xb702d7[_0xbce8fc(0x11a)],_0xb702d7['password']);const [_0x2ebfe6,_0x15516b]=await _0x499803[_0xbce8fc(0x10e)](getGridDetails,_0x3f8961['Browserstack'][_0xbce8fc(0xf6)],_0x3f8961[_0xbce8fc(0xf1)]['password'],_0xb702d7[_0xbce8fc(0x114)]);if(_0x15516b){const _0x3435f9=_0x15516b[_0xbce8fc(0xeb)];global_registry['cloudProvider']=_0x3435f9[_0xbce8fc(0xe0)],global_registry['clusterRegion']=_0x3435f9[_0xbce8fc(0xfe)],global_registry[_0xbce8fc(0xe4)]=_0x3435f9[_0xbce8fc(0xe4)];const _0x556d1b=await _0x499803[_0xbce8fc(0xe3)](getCloudProviderObject,_0x3435f9[_0xbce8fc(0xe0)],_0x3435f9['clusterName'],_0x3435f9[_0xbce8fc(0xd8)],_0x4aa7ef,webSocketUtils,_0xb702d7),[_0x4af92f,_0x231367,_0x3610eb,_0x1f3048,_0x48c258,_0x4a236d]=await _0x499803[_0xbce8fc(0xcc)](createK8sClient,_0x556d1b,_0xb702d7[_0xbce8fc(0x110)]);await _0x499803['auGnD'](scaleDownHubDeployment,_0x231367,_0x3435f9['name']),logger['info'](_0x499803[_0xbce8fc(0x107)]),process['exit'](0x0);}_0x499803[_0xbce8fc(0xc8)](_0x2ebfe6['statusCode'],0x191)&&(logger[_0xbce8fc(0x11f)](_0x499803['YyakH']),await _0x499803['DprMz'](sendInstrumentationEvent,_0xb702d7,_0x499803[_0xbce8fc(0x101)],messageTypes[_0xbce8fc(0x103)],_0x499803['bjSpT'],null,_0xb702d7),process[_0xbce8fc(0x108)](0x1)),_0x499803[_0xbce8fc(0x100)](_0x2ebfe6[_0xbce8fc(0xfa)],0x190)&&(logger['error'](JSON[_0xbce8fc(0xdd)](_0x2ebfe6['body'])[_0xbce8fc(0x10f)]),await _0x499803[_0xbce8fc(0xe3)](sendInstrumentationEvent,_0xb702d7,_0x499803['hEYEs'],messageTypes[_0xbce8fc(0x103)],_0x499803['TbjiO'],null,_0xb702d7),process[_0xbce8fc(0x108)](0x1)),logger[_0xbce8fc(0x11f)](_0xbce8fc(0xec)+JSON[_0xbce8fc(0x112)](_0x2ebfe6)),await _0x499803[_0xbce8fc(0xf0)](sendInstrumentationEvent,_0xb702d7,_0x499803[_0xbce8fc(0x101)],messageTypes[_0xbce8fc(0x103)],_0x499803[_0xbce8fc(0x120)],_0x2ebfe6,_0xb702d7),process['exit'](0x1);}catch(_0x2ed967){const _0x2166b8=_0xbce8fc(0xc9)+_0x2ed967+'\x20\x0a'+JSON[_0xbce8fc(0x112)](_0x2ed967['stack'])+'\x20';logger[_0xbce8fc(0x11f)](_0x2166b8),process[_0xbce8fc(0x108)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x137681=a22_0x2465;(function(_0x42b8e1,_0x2b98e6){const _0x24cfb5=a22_0x2465,_0x38a6a4=_0x42b8e1();while(!![]){try{const _0x11b068=-parseInt(_0x24cfb5(0x1a6))/0x1*(-parseInt(_0x24cfb5(0x1a3))/0x2)+-parseInt(_0x24cfb5(0x1a5))/0x3*(parseInt(_0x24cfb5(0x16d))/0x4)+-parseInt(_0x24cfb5(0x169))/0x5+parseInt(_0x24cfb5(0x192))/0x6*(-parseInt(_0x24cfb5(0x185))/0x7)+-parseInt(_0x24cfb5(0x1a9))/0x8*(parseInt(_0x24cfb5(0x16c))/0x9)+-parseInt(_0x24cfb5(0x195))/0xa+-parseInt(_0x24cfb5(0x168))/0xb*(-parseInt(_0x24cfb5(0x186))/0xc);if(_0x11b068===_0x2b98e6)break;else _0x38a6a4['push'](_0x38a6a4['shift']());}catch(_0x1f8b07){_0x38a6a4['push'](_0x38a6a4['shift']());}}}(a22_0x229b,0xececd),require(a22_0x137681(0x1cb))[a22_0x137681(0x1cc)]());let gridURL=a22_0x137681(0x1a8),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x137681(0x187);const _env=(process[a22_0x137681(0x172)]['BROWSERSTACK_ENV']||a22_0x137681(0x199))[a22_0x137681(0x16e)]();if(_env===a22_0x137681(0x19e)||_env===a22_0x137681(0x17b))gridURL=a22_0x137681(0x17d),bsApiUrl=a22_0x137681(0x180),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x137681(0x190))&&(gridURL=a22_0x137681(0x1c4),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x137681(0x1c2));exports[a22_0x137681(0x1ca)]=process[a22_0x137681(0x172)][a22_0x137681(0x1ca)]||gridURL,exports[a22_0x137681(0x19d)]=process[a22_0x137681(0x172)][a22_0x137681(0x19d)]||bsApiUrl,exports[a22_0x137681(0x188)]=process[a22_0x137681(0x172)]['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x137681(0x1b4)+this[a22_0x137681(0x188)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x137681(0x16a)]=a22_0x137681(0x1ab),exports[a22_0x137681(0x1b7)]='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']=a22_0x137681(0x170),exports[a22_0x137681(0x196)]='aws',exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x137681(0x1c9),exports[a22_0x137681(0x1ae)]=a22_0x137681(0x19b),exports['TURBOSCALE_DEPLOYMENT']=a22_0x137681(0x1c8),exports[a22_0x137681(0x1af)]=a22_0x137681(0x1b8),exports['GCP']=a22_0x137681(0x1c5),exports[a22_0x137681(0x19a)]=[this[a22_0x137681(0x196)],this[a22_0x137681(0x1af)],this[a22_0x137681(0x1c3)]];const a22_0x1f984f={};a22_0x1f984f[a22_0x137681(0x1aa)]=a22_0x137681(0x1b1),a22_0x1f984f['Value']=a22_0x137681(0x182);const a22_0x2efc53={};a22_0x2efc53['Key']=a22_0x137681(0x1a7),a22_0x2efc53[a22_0x137681(0x1b0)]=a22_0x137681(0x183);const common_hst_tags_list=[a22_0x1f984f,a22_0x2efc53];function a22_0x229b(){const _0x4a616c=['[REDACTED]','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','success','GRID_URL','high-scale-grid-cluster','configure','MessageDescription','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','TURBOSCALE_CUSTOM_TAGS','grid-api-preprod.bsstag.com','GCP','grid-preprod.bsstag.com','gcp','SUPPORTED_CLOUD_PROVIDERS','CLI_RUN_FINISHED','browserstack-turboscale-grid','BSTACK-ATS-CLUSTER-AUTOSCALER','DASHBOARD_ENDPOINT','dotenv','config','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','unknown','root','3705163mKaYoZ','6317060rFBBmA','CP_CONFIG_FILE','REGION','1971iJIamb','5835628vjLOOR','toLowerCase','split','high-scale-grid','gridUrl','env','HST_CLUSTER_TAGS','list','aws','COMMON_HST_TAGS','WS_EVENTS','info','messageTypes','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','stag','RESOURCES','grid-devhst.bsstag.com','pre_check','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','api-devhst.bsstag.com','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','BrowserStack','BrowserStack-Automate-TurboScale','cliRunFinished','3353oARVuJ','204ZcyphM','grid-api.browserstack.com','AG_API_URL','stop','LOG','DEFAULT_CLUSTER_DETAILS','NULL','create','UNKNOWN','CLOUD_PROVIDER','pre-prod','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','4362xttBEj','grid','RAW_ARGS_REGEX','17714320HsNmri','AWS','push','cliRunStarted','prod','ALL_SUPPORTED_CLOUD_PROVIDERS','BSTACK-ATS-CLUSTER-HUB-HA','error','BS_API_URL','staging','HELP_FOOTER_MESSAGE','LINK_MESSAGE','WARNING','resourceInfo','17190nfashE','INFO','3lVOeIh','97EwqiHZ','browserstack:service','grid.browserstack.com','27304LMHvzi','Key','credentials','CLI_RUN_STARTED','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLUSTER_HUB_HA_STACK_NAME','AZURE','Value','browserstack:managedBy','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','connect','wss://','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','IAM_USER_NAME','azure'];a22_0x229b=function(){return _0x4a616c;};return a22_0x229b();}if(process['env'][a22_0x137681(0x1c1)]){const parsedTags=process['env'][a22_0x137681(0x1c1)][a22_0x137681(0x16f)](',');parsedTags['forEach'](_0x2b1343=>{const _0x2bc387=a22_0x137681,_0x4a9485=_0x2b1343[_0x2bc387(0x16f)](':'),_0xd6cc94={};_0xd6cc94[_0x2bc387(0x1aa)]=_0x4a9485[0x0],_0xd6cc94[_0x2bc387(0x1b0)]=_0x4a9485[0x1],common_hst_tags_list[_0x2bc387(0x197)](_0xd6cc94);});}exports[a22_0x137681(0x176)]=common_hst_tags_list;const a22_0x2d33ad={};a22_0x2d33ad[a22_0x137681(0x1b1)]='BrowserStack',a22_0x2d33ad['browserstack:service']=a22_0x137681(0x183),exports[a22_0x137681(0x173)]=a22_0x2d33ad,exports[a22_0x137681(0x1c6)]=[this[a22_0x137681(0x196)]];const a22_0x1d887e={};a22_0x1d887e[a22_0x137681(0x18a)]='log',a22_0x1d887e[a22_0x137681(0x17c)]=a22_0x137681(0x1a2),a22_0x1d887e[a22_0x137681(0x1bc)]=a22_0x137681(0x171),a22_0x1d887e[a22_0x137681(0x1ac)]=a22_0x137681(0x198),a22_0x1d887e[a22_0x137681(0x1c7)]=a22_0x137681(0x184),exports[a22_0x137681(0x177)]=a22_0x1d887e,exports['global_registry']={},exports['LINK_MESSAGE']=a22_0x137681(0x181);const a22_0x21634c={};a22_0x21634c[a22_0x137681(0x167)]=a22_0x137681(0x1b5)+this[a22_0x137681(0x1a0)],a22_0x21634c['init']=a22_0x137681(0x1b6)+this[a22_0x137681(0x1a0)],a22_0x21634c[a22_0x137681(0x1be)]=a22_0x137681(0x1ce)+this[a22_0x137681(0x1a0)],a22_0x21634c[a22_0x137681(0x18d)]=a22_0x137681(0x1c0)+this[a22_0x137681(0x1a0)],a22_0x21634c[a22_0x137681(0x174)]={},a22_0x21634c['delete']=a22_0x137681(0x17a)+this[a22_0x137681(0x1a0)],a22_0x21634c[a22_0x137681(0x1b3)]=a22_0x137681(0x191)+this['LINK_MESSAGE'],a22_0x21634c['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x21634c[a22_0x137681(0x189)]=a22_0x137681(0x1b2)+this['LINK_MESSAGE'],a22_0x21634c[a22_0x137681(0x17e)]=a22_0x137681(0x17f)+this[a22_0x137681(0x1a0)],a22_0x21634c[a22_0x137681(0x174)]['root']=a22_0x137681(0x1ba)+this[a22_0x137681(0x1a0)],a22_0x21634c[a22_0x137681(0x174)][a22_0x137681(0x193)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x137681(0x1a0)],a22_0x21634c[a22_0x137681(0x174)]['gridProfile']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x137681(0x1a0)],exports['HELP_HEADER_MESSAGE']=a22_0x21634c,exports[a22_0x137681(0x19f)]=a22_0x137681(0x1cd);const a22_0x1fa354={};a22_0x1fa354['SUCCESS']=a22_0x137681(0x1bb),a22_0x1fa354['ERROR']=a22_0x137681(0x19c),a22_0x1fa354[a22_0x137681(0x1a4)]=a22_0x137681(0x178),a22_0x1fa354[a22_0x137681(0x1a1)]='warning',a22_0x1fa354[a22_0x137681(0x18e)]=a22_0x137681(0x166),a22_0x1fa354[a22_0x137681(0x18c)]=null,exports[a22_0x137681(0x179)]=a22_0x1fa354,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x137681(0x194)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x137681(0x1b9);const a22_0x2330b9={};a22_0x2330b9['grid-profile']=a22_0x137681(0x165);const a22_0x96d99d={};a22_0x96d99d['pre-check']=a22_0x2330b9,exports[a22_0x137681(0x1bf)]=a22_0x96d99d,exports['TRIAL_GRID_URL']=a22_0x137681(0x1ad);function a22_0x2465(_0x58e8ba,_0x32de02){const _0x229b06=a22_0x229b();return a22_0x2465=function(_0x246558,_0x43f7e6){_0x246558=_0x246558-0x165;let _0x48028e=_0x229b06[_0x246558];return _0x48028e;},a22_0x2465(_0x58e8ba,_0x32de02);}const a22_0x5e08f5={};a22_0x5e08f5['CLUSTER']=a22_0x137681(0x1bd),a22_0x5e08f5[a22_0x137681(0x18f)]=a22_0x137681(0x175),a22_0x5e08f5[a22_0x137681(0x16b)]='us-east-1',exports[a22_0x137681(0x18b)]=a22_0x5e08f5;
1
+ const a22_0x467ea8=a22_0x521e;(function(_0x2b115a,_0x40986a){const _0x237705=a22_0x521e,_0x4b676c=_0x2b115a();while(!![]){try{const _0x5c15b2=-parseInt(_0x237705(0x16d))/0x1*(-parseInt(_0x237705(0x15f))/0x2)+parseInt(_0x237705(0x1a4))/0x3+parseInt(_0x237705(0x15a))/0x4+-parseInt(_0x237705(0x169))/0x5+-parseInt(_0x237705(0x164))/0x6*(parseInt(_0x237705(0x162))/0x7)+parseInt(_0x237705(0x1b9))/0x8+-parseInt(_0x237705(0x177))/0x9;if(_0x5c15b2===_0x40986a)break;else _0x4b676c['push'](_0x4b676c['shift']());}catch(_0x3eba1a){_0x4b676c['push'](_0x4b676c['shift']());}}}(a22_0x3a6e,0x3d69f),require('dotenv')[a22_0x467ea8(0x1bf)]());let gridURL=a22_0x467ea8(0x183),bsApiUrl=a22_0x467ea8(0x167),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x467ea8(0x18a)][a22_0x467ea8(0x182)]||a22_0x467ea8(0x184))['toLowerCase']();if(_env===a22_0x467ea8(0x198)||_env===a22_0x467ea8(0x199))gridURL=a22_0x467ea8(0x1a5),bsApiUrl=a22_0x467ea8(0x175),agApiUrl=a22_0x467ea8(0x1a6);else(_env==='preprod'||_env===a22_0x467ea8(0x174))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x467ea8(0x18d),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process[a22_0x467ea8(0x18a)][a22_0x467ea8(0x1c0)]||gridURL,exports['BS_API_URL']=process['env'][a22_0x467ea8(0x17f)]||bsApiUrl,exports[a22_0x467ea8(0x178)]=process['env'][a22_0x467ea8(0x178)]||agApiUrl,exports[a22_0x467ea8(0x1b2)]=a22_0x467ea8(0x171)+this[a22_0x467ea8(0x178)]+a22_0x467ea8(0x17b),exports[a22_0x467ea8(0x1b1)]=a22_0x467ea8(0x19e),exports[a22_0x467ea8(0x158)]=a22_0x467ea8(0x168),exports[a22_0x467ea8(0x157)]=a22_0x467ea8(0x197),exports[a22_0x467ea8(0x1be)]=a22_0x467ea8(0x156),exports[a22_0x467ea8(0x193)]=a22_0x467ea8(0x1a8),exports[a22_0x467ea8(0x1a2)]=a22_0x467ea8(0x1ae),exports[a22_0x467ea8(0x191)]=a22_0x467ea8(0x159),exports['TURBOSCALE_DEPLOYMENT']=a22_0x467ea8(0x1a7),exports[a22_0x467ea8(0x1c2)]=a22_0x467ea8(0x15d),exports[a22_0x467ea8(0x170)]=a22_0x467ea8(0x166),exports[a22_0x467ea8(0x176)]=[this[a22_0x467ea8(0x1be)],this[a22_0x467ea8(0x1c2)],this['GCP']];const a22_0x5e2195={};a22_0x5e2195[a22_0x467ea8(0x1aa)]=a22_0x467ea8(0x172),a22_0x5e2195['Value']='BrowserStack';const a22_0x3e2674={};a22_0x3e2674[a22_0x467ea8(0x1aa)]='browserstack:service',a22_0x3e2674['Value']=a22_0x467ea8(0x186);const common_hst_tags_list=[a22_0x5e2195,a22_0x3e2674];if(process[a22_0x467ea8(0x18a)][a22_0x467ea8(0x19d)]){const parsedTags=process['env'][a22_0x467ea8(0x19d)][a22_0x467ea8(0x16e)](',');parsedTags[a22_0x467ea8(0x15b)](_0x3dd4e7=>{const _0x308594=a22_0x467ea8,_0x49b0e1=_0x3dd4e7[_0x308594(0x16e)](':'),_0xb15876={};_0xb15876['Key']=_0x49b0e1[0x0],_0xb15876[_0x308594(0x190)]=_0x49b0e1[0x1],common_hst_tags_list[_0x308594(0x1b3)](_0xb15876);});}exports[a22_0x467ea8(0x17a)]=common_hst_tags_list;const a22_0x923c5c={};a22_0x923c5c[a22_0x467ea8(0x172)]='BrowserStack',a22_0x923c5c[a22_0x467ea8(0x19c)]=a22_0x467ea8(0x186),exports['HST_CLUSTER_TAGS']=a22_0x923c5c,exports[a22_0x467ea8(0x1ab)]=[this['AWS']];function a22_0x521e(_0x1a4f13,_0x5c662e){const _0x3a6ee0=a22_0x3a6e();return a22_0x521e=function(_0x521eda,_0x1daa7f){_0x521eda=_0x521eda-0x155;let _0x289208=_0x3a6ee0[_0x521eda];return _0x289208;},a22_0x521e(_0x1a4f13,_0x5c662e);}const a22_0x3f950a={};a22_0x3f950a['LOG']=a22_0x467ea8(0x1af),a22_0x3f950a[a22_0x467ea8(0x1ad)]=a22_0x467ea8(0x16b),a22_0x3f950a[a22_0x467ea8(0x18b)]='gridUrl',a22_0x3f950a[a22_0x467ea8(0x1a3)]=a22_0x467ea8(0x15c),a22_0x3f950a['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x467ea8(0x19f)]=a22_0x3f950a,exports[a22_0x467ea8(0x19a)]={},exports[a22_0x467ea8(0x173)]=a22_0x467ea8(0x19b);const a22_0x5d8628={};a22_0x5d8628[a22_0x467ea8(0x17d)]=a22_0x467ea8(0x16a)+this[a22_0x467ea8(0x173)],a22_0x5d8628['init']=a22_0x467ea8(0x195)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x18e)]=a22_0x467ea8(0x17e)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1a0)]=a22_0x467ea8(0x188)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1b8)]={},a22_0x5d8628[a22_0x467ea8(0x16c)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x467ea8(0x173)],a22_0x5d8628['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1a9)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x161)]=a22_0x467ea8(0x1bd)+this[a22_0x467ea8(0x173)],a22_0x5d8628['pre_check']=a22_0x467ea8(0x185)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1b8)]['root']=a22_0x467ea8(0x1b0)+this['LINK_MESSAGE'],a22_0x5d8628[a22_0x467ea8(0x1b8)][a22_0x467ea8(0x1bb)]=a22_0x467ea8(0x160)+this[a22_0x467ea8(0x173)],a22_0x5d8628[a22_0x467ea8(0x1b8)][a22_0x467ea8(0x181)]=a22_0x467ea8(0x187)+this[a22_0x467ea8(0x173)],exports[a22_0x467ea8(0x15e)]=a22_0x5d8628,exports[a22_0x467ea8(0x1b5)]=a22_0x467ea8(0x163);const a22_0x3d39a4={};a22_0x3d39a4[a22_0x467ea8(0x1c1)]=a22_0x467ea8(0x1b7),a22_0x3d39a4['ERROR']=a22_0x467ea8(0x155),a22_0x3d39a4[a22_0x467ea8(0x194)]=a22_0x467ea8(0x17c),a22_0x3d39a4[a22_0x467ea8(0x16f)]=a22_0x467ea8(0x1b6),a22_0x3d39a4[a22_0x467ea8(0x179)]=a22_0x467ea8(0x1ac),a22_0x3d39a4['NULL']=null,exports[a22_0x467ea8(0x192)]=a22_0x3d39a4,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x467ea8(0x180)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x467ea8(0x189)]='[REDACTED]';const a22_0x2cfba7={};a22_0x2cfba7[a22_0x467ea8(0x18c)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x3f4a9e={};a22_0x3f4a9e[a22_0x467ea8(0x1a1)]=a22_0x2cfba7,exports[a22_0x467ea8(0x196)]=a22_0x3f4a9e,exports[a22_0x467ea8(0x1b4)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x4cbeb6={};a22_0x4cbeb6[a22_0x467ea8(0x165)]=a22_0x467ea8(0x1ba),a22_0x4cbeb6[a22_0x467ea8(0x1bc)]=a22_0x467ea8(0x156),a22_0x4cbeb6[a22_0x467ea8(0x18f)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x4cbeb6;function a22_0x3a6e(){const _0x4fa960=['info','root','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BS_API_URL','RAW_ARGS_REGEX','gridProfile','BROWSERSTACK_ENV','grid.browserstack.com','prod','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','BrowserStack-Automate-TurboScale','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','REDACTED','env','GRID_URL','grid-profile','api-preprod.bsstag.com','configure','REGION','Value','CLUSTER_HUB_HA_STACK_NAME','messageTypes','CLUSTER_DEP_STACK_NAME','INFO','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','MessageDescription','high-scale-grid','staging','stag','global_registry','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','browserstack:service','TURBOSCALE_CUSTOM_TAGS','credentials','WS_EVENTS','create','pre-check','CLUSTER_AUTOSCALER_STACK_NAME','CLI_RUN_STARTED','858987vZvtSO','grid-devhst.bsstag.com','grid-api-devhst.bsstag.com','browserstack-turboscale-grid','BSTACK-ATS-CLUSTER','start','Key','SUPPORTED_CLOUD_PROVIDERS','unknown','RESOURCES','BSTACK-ATS-CLUSTER-AUTOSCALER','log','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','CP_CONFIG_FILE','WS_ENDPOINT','push','TRIAL_GRID_URL','HELP_FOOTER_MESSAGE','warning','success','list','1741848XxDrjt','high-scale-grid-cluster','grid','CLOUD_PROVIDER','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','AWS','config','DASHBOARD_ENDPOINT','SUCCESS','AZURE','error','aws','DEFAULT_GRID_NAME','IAM_USER_NAME','BSTACK-ATS-CLUSTER-HUB-HA','743900PYggRD','forEach','cliRunStarted','azure','HELP_HEADER_MESSAGE','12NBQtAA','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','stop','2261441wEQzvF','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','6ENYlPQ','CLUSTER','gcp','api.browserstack.com','BrowserStackIAMUser','868845QXPhyJ','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','resourceInfo','delete','26423zVOZyK','split','WARNING','GCP','wss://','browserstack:managedBy','LINK_MESSAGE','pre-prod','api-devhst.bsstag.com','ALL_SUPPORTED_CLOUD_PROVIDERS','901710tWkfSS','AG_API_URL','UNKNOWN','COMMON_HST_TAGS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>'];a22_0x3a6e=function(){return _0x4fa960;};return a22_0x3a6e();}
@@ -1 +1 @@
1
- const a23_0x164739=a23_0x5bc1;(function(_0x488b77,_0x1badd3){const _0x443398=a23_0x5bc1,_0x40602f=_0x488b77();while(!![]){try{const _0x2584a8=-parseInt(_0x443398(0x13c))/0x1+parseInt(_0x443398(0x13f))/0x2+parseInt(_0x443398(0x13d))/0x3*(-parseInt(_0x443398(0x153))/0x4)+parseInt(_0x443398(0x13a))/0x5+parseInt(_0x443398(0x14f))/0x6+-parseInt(_0x443398(0x139))/0x7+parseInt(_0x443398(0x150))/0x8;if(_0x2584a8===_0x1badd3)break;else _0x40602f['push'](_0x40602f['shift']());}catch(_0x4a5f2a){_0x40602f['push'](_0x40602f['shift']());}}}(a23_0x3076,0x9db60));const winston=require(a23_0x164739(0x146)),fs=require('fs'),path=require('path'),logDir=a23_0x164739(0x13e);!fs[a23_0x164739(0x155)](logDir)&&fs['mkdirSync'](logDir);const a23_0x1201ee={};a23_0x1201ee[a23_0x164739(0x14d)]=a23_0x164739(0x14a);const a23_0x160afb={};function a23_0x3076(){const _0x4e4498=['events.log','timestamp','YYYY-MM-DD\x20HH:mm:ss','transports','fileLogger','format','debug','6915366lsudkX','7864720CfKdNV','printf','File','112652uSmtsV','colorize','existsSync','usage.log','7448028KyeVsD','312680ROaJux','createLogger','1235914tnwxoM','57aDskLi','log','2565624GYezvT','message','level','\x20-\x20','join','Console','name','winston','logger'];a23_0x3076=function(){return _0x4e4498;};return a23_0x3076();}a23_0x160afb[a23_0x164739(0x141)]=!![];function a23_0x5bc1(_0x15db59,_0x1d0942){const _0x3076c3=a23_0x3076();return a23_0x5bc1=function(_0x5bc17c,_0x5a5bc9){_0x5bc17c=_0x5bc17c-0x138;let _0x14a569=_0x3076c3[_0x5bc17c];return _0x14a569;},a23_0x5bc1(_0x15db59,_0x1d0942);}const a23_0x3a8701={};a23_0x3a8701[a23_0x164739(0x145)]='console.info',exports[a23_0x164739(0x147)]=new winston[(a23_0x164739(0x13b))]({'format':winston[a23_0x164739(0x14d)]['combine'](winston[a23_0x164739(0x14d)][a23_0x164739(0x149)](a23_0x1201ee),winston['format'][a23_0x164739(0x154)](a23_0x160afb),winston['format'][a23_0x164739(0x151)](_0x46b329=>_0x46b329['timestamp']+a23_0x164739(0x142)+_0x46b329['level']+':\x20'+_0x46b329[a23_0x164739(0x140)])),'transports':[new winston[(a23_0x164739(0x14b))][(a23_0x164739(0x144))](a23_0x3a8701),new winston[(a23_0x164739(0x14b))][(a23_0x164739(0x152))]({'filename':path[a23_0x164739(0x143)](logDir,a23_0x164739(0x148)),'level':a23_0x164739(0x14e)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x164739(0x152))]({'filename':path['join'](logDir,a23_0x164739(0x138)),'level':a23_0x164739(0x14e)})]};exports[a23_0x164739(0x14c)]=new winston[(a23_0x164739(0x13b))](winstonFileLoggerParams);
1
+ const a23_0x1551c0=a23_0x22aa;(function(_0x3a1dae,_0x9b75f1){const _0x35d140=a23_0x22aa,_0x1f2f7e=_0x3a1dae();while(!![]){try{const _0x470bf5=parseInt(_0x35d140(0x10a))/0x1*(parseInt(_0x35d140(0x104))/0x2)+-parseInt(_0x35d140(0x115))/0x3*(-parseInt(_0x35d140(0x112))/0x4)+-parseInt(_0x35d140(0x121))/0x5+-parseInt(_0x35d140(0x10d))/0x6*(parseInt(_0x35d140(0x11b))/0x7)+-parseInt(_0x35d140(0x114))/0x8+parseInt(_0x35d140(0x116))/0x9+parseInt(_0x35d140(0x10f))/0xa*(-parseInt(_0x35d140(0x102))/0xb);if(_0x470bf5===_0x9b75f1)break;else _0x1f2f7e['push'](_0x1f2f7e['shift']());}catch(_0x56fbb7){_0x1f2f7e['push'](_0x1f2f7e['shift']());}}}(a23_0xedbb,0xbfa8b));const winston=require(a23_0x1551c0(0x11d)),fs=require('fs'),path=require('path'),logDir=a23_0x1551c0(0x109);!fs[a23_0x1551c0(0x103)](logDir)&&fs['mkdirSync'](logDir);function a23_0x22aa(_0x9ad223,_0x150752){const _0xedbb16=a23_0xedbb();return a23_0x22aa=function(_0x22aab7,_0xd966c7){_0x22aab7=_0x22aab7-0x102;let _0x4542a6=_0xedbb16[_0x22aab7];return _0x4542a6;},a23_0x22aa(_0x9ad223,_0x150752);}const a23_0x17c4f6={};a23_0x17c4f6[a23_0x1551c0(0x11e)]=a23_0x1551c0(0x107);function a23_0xedbb(){const _0x45d587=['37898wydQsY','createLogger','winston','format','debug','logger','7472740bkMKsU','11NStPEZ','existsSync','10170bnimek','name','printf','YYYY-MM-DD\x20HH:mm:ss','Console','log','178lClxNV','File','fileLogger','480bfPlxi','join','5784880YYQbNP','usage.log','timestamp','1640pdDdMJ','level','3304088qBttrz','10209IqTeYK','12634578nTDrzG','colorize','\x20-\x20','events.log','transports'];a23_0xedbb=function(){return _0x45d587;};return a23_0xedbb();}const a23_0x243b91={};a23_0x243b91[a23_0x1551c0(0x113)]=!![];const a23_0x7a4d81={};a23_0x7a4d81[a23_0x1551c0(0x105)]='console.info',exports[a23_0x1551c0(0x120)]=new winston[(a23_0x1551c0(0x11c))]({'format':winston[a23_0x1551c0(0x11e)]['combine'](winston[a23_0x1551c0(0x11e)][a23_0x1551c0(0x111)](a23_0x17c4f6),winston['format'][a23_0x1551c0(0x117)](a23_0x243b91),winston['format'][a23_0x1551c0(0x106)](_0x2a64b1=>_0x2a64b1[a23_0x1551c0(0x111)]+a23_0x1551c0(0x118)+_0x2a64b1[a23_0x1551c0(0x113)]+':\x20'+_0x2a64b1['message'])),'transports':[new winston[(a23_0x1551c0(0x11a))][(a23_0x1551c0(0x108))](a23_0x7a4d81),new winston[(a23_0x1551c0(0x11a))][(a23_0x1551c0(0x10b))]({'filename':path[a23_0x1551c0(0x10e)](logDir,a23_0x1551c0(0x119)),'level':a23_0x1551c0(0x11f)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x1551c0(0x11a))][(a23_0x1551c0(0x10b))]({'filename':path[a23_0x1551c0(0x10e)](logDir,a23_0x1551c0(0x110)),'level':a23_0x1551c0(0x11f)})]};exports[a23_0x1551c0(0x10c)]=new winston[(a23_0x1551c0(0x11c))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x2b540e=a24_0x1a3f;function a24_0x1a3f(_0x35d0a7,_0x301972){const _0x98388c=a24_0x9838();return a24_0x1a3f=function(_0x1a3f20,_0x4e1b85){_0x1a3f20=_0x1a3f20-0x11c;let _0x637ba7=_0x98388c[_0x1a3f20];return _0x637ba7;},a24_0x1a3f(_0x35d0a7,_0x301972);}(function(_0x4ca382,_0x44206a){const _0x1a8a18=a24_0x1a3f,_0xb9b553=_0x4ca382();while(!![]){try{const _0x26d723=-parseInt(_0x1a8a18(0x11d))/0x1+-parseInt(_0x1a8a18(0x123))/0x2*(-parseInt(_0x1a8a18(0x124))/0x3)+parseInt(_0x1a8a18(0x128))/0x4+parseInt(_0x1a8a18(0x11e))/0x5+-parseInt(_0x1a8a18(0x11c))/0x6+parseInt(_0x1a8a18(0x122))/0x7+-parseInt(_0x1a8a18(0x127))/0x8;if(_0x26d723===_0x44206a)break;else _0xb9b553['push'](_0xb9b553['shift']());}catch(_0xf9d9ac){_0xb9b553['push'](_0xb9b553['shift']());}}}(a24_0x9838,0x94552));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x9838(){const _0x2d1fd8=['1887684VhaYcx','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','help','4157940PVIjdN','431077xctqyv','92430JSGcTm','commands','jdqjr','root','2332750WuKoLI','114VliapQ','59910zLlUBZ','demandCommand','commandDir','1842480JzoTWz'];a24_0x9838=function(){return _0x2d1fd8;};return a24_0x9838();}process['env'][a24_0x2b540e(0x129)]=0x1;function run(_0x16a010){const _0x555ac3=a24_0x2b540e,_0x3065ea={};_0x3065ea[_0x555ac3(0x120)]=_0x555ac3(0x11f),_0x3065ea['JYcSY']=_0x555ac3(0x12a);const _0x5106e1=_0x3065ea;_0x16a010['usage'](HELP_HEADER_MESSAGE[_0x555ac3(0x121)])[_0x555ac3(0x126)](_0x5106e1[_0x555ac3(0x120)])[_0x555ac3(0x125)]()[_0x555ac3(0x12a)](_0x5106e1['JYcSY'])['epilogue'](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a24_0xdf55cd=a24_0x357b;function a24_0x357b(_0x5e2652,_0x5c17c8){const _0x41ebc0=a24_0x41eb();return a24_0x357b=function(_0x357be7,_0x598e69){_0x357be7=_0x357be7-0x14d;let _0x28f204=_0x41ebc0[_0x357be7];return _0x28f204;},a24_0x357b(_0x5e2652,_0x5c17c8);}(function(_0x70793a,_0x25ef85){const _0x52a514=a24_0x357b,_0x2fdc35=_0x70793a();while(!![]){try{const _0x243c31=parseInt(_0x52a514(0x15b))/0x1+parseInt(_0x52a514(0x15c))/0x2*(-parseInt(_0x52a514(0x152))/0x3)+-parseInt(_0x52a514(0x159))/0x4+parseInt(_0x52a514(0x15a))/0x5+parseInt(_0x52a514(0x155))/0x6+-parseInt(_0x52a514(0x151))/0x7*(-parseInt(_0x52a514(0x157))/0x8)+parseInt(_0x52a514(0x15f))/0x9;if(_0x243c31===_0x25ef85)break;else _0x2fdc35['push'](_0x2fdc35['shift']());}catch(_0x59a608){_0x2fdc35['push'](_0x2fdc35['shift']());}}}(a24_0x41eb,0xf2391));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0xdf55cd(0x14e));process[a24_0xdf55cd(0x15d)][a24_0xdf55cd(0x156)]=0x1;function a24_0x41eb(){const _0x1bae2f=['epilogue','5731620eRvWwo','3437960bGKJJe','744360QICBny','2338TLJXnM','env','help','893700RHtsDs','commandDir','./config/constants','vAnAS','root','7DvqVUs','474INQZzL','uMwDA','demandCommand','4065774RolDiU','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','3206968PbZziM'];a24_0x41eb=function(){return _0x1bae2f;};return a24_0x41eb();}function run(_0x1cd999){const _0x4d296f=a24_0xdf55cd,_0x3b0b71={};_0x3b0b71['vAnAS']='commands',_0x3b0b71[_0x4d296f(0x153)]=_0x4d296f(0x15e);const _0x9d636e=_0x3b0b71;_0x1cd999['usage'](HELP_HEADER_MESSAGE[_0x4d296f(0x150)])[_0x4d296f(0x14d)](_0x9d636e[_0x4d296f(0x14f)])[_0x4d296f(0x154)]()['help'](_0x9d636e['uMwDA'])[_0x4d296f(0x158)](HELP_FOOTER_MESSAGE);}module['exports']=run;