browserstack-node-sdk 1.57.0 → 1.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0x3ac312=a15_0x3c7e;function a15_0x59dc(){const _0x3447c4=['7364bGEcGC','GET','7153956YGYkQw','ybnGD','319LReugx','1722852aeJqnT','grid','description','password','VMCaH','command','builder','running','brCIi','push','aOtSW','got','672FCfyST','log','INFO','../../utils/utilityMethods','JvHPC','1445BPDfRN','99jysYDN','epilogue','ITsYp','zQhOA','all-grids','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','unauthorised','kzyRf','2683190UeMOUA','cluster-name','existsSync','statusCode','bstackAccesskey','forEach','parse','XczRn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-grids','init-not-called','dvyWF','6217880UUrdVI','clusterName','\x0aFound\x20the\x20following\x20grids:\x0a','handler','table','allGrids','bstackUsername','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','boolean','yFOTZ','../../config/constants','error','xdxIW','../../utils/instrumentationUtils','type','https://','help','ERROR','grids','server-error','queued','Zmzrd','exit','sJAmg','stack','username','hFADu','BeGIW','adGbE','4536GnIOTY','DGOxH','desc','lYLsJ','readFileSync','status','Browserstack','VdCWj','qeYOb','3254enOHbW','grid-name','yZREg','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','tGfor'];a15_0x59dc=function(){return _0x3447c4;};return a15_0x59dc();}(function(_0x9099e9,_0x8de72d){const _0x33951d=a15_0x3c7e,_0x5bb36f=_0x9099e9();while(!![]){try{const _0xfc95f2=parseInt(_0x33951d(0x17d))/0x1*(-parseInt(_0x33951d(0x174))/0x2)+parseInt(_0x33951d(0x17e))/0x3+parseInt(_0x33951d(0x179))/0x4*(-parseInt(_0x33951d(0x18f))/0x5)+parseInt(_0x33951d(0x18a))/0x6*(parseInt(_0x33951d(0x1c1))/0x7)+-parseInt(_0x33951d(0x1a4))/0x8+-parseInt(_0x33951d(0x17b))/0x9+parseInt(_0x33951d(0x198))/0xa*(parseInt(_0x33951d(0x190))/0xb);if(_0xfc95f2===_0x8de72d)break;else _0x5bb36f['push'](_0x5bb36f['shift']());}catch(_0x34638e){_0x5bb36f['push'](_0x5bb36f['shift']());}}}(a15_0x59dc,0x6b116));const fs=require('fs'),got=require(a15_0x3ac312(0x189)),{table}=require(a15_0x3ac312(0x1a8)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3ac312(0x1ae)),{getCredentialsPath,getAuthHeader}=require(a15_0x3ac312(0x18d)),{sendInstrumentationEvent}=require(a15_0x3ac312(0x1b1));function a15_0x3c7e(_0x2426e2,_0x5168b9){const _0x59dcb2=a15_0x59dc();return a15_0x3c7e=function(_0x3c7e72,_0xcb4fca){_0x3c7e72=_0x3c7e72-0x16f;let _0x37a7dc=_0x59dcb2[_0x3c7e72];return _0x37a7dc;},a15_0x3c7e(_0x2426e2,_0x5168b9);}exports[a15_0x3ac312(0x183)]=a15_0x3ac312(0x1b6),exports[a15_0x3ac312(0x1c3)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x3ac312(0x184)]=function(_0x46f14a){const _0xba30b5=a15_0x3ac312,_0x38a95b={};_0x38a95b['CfMaW']=_0xba30b5(0x1ab),_0x38a95b[_0xba30b5(0x1be)]=_0xba30b5(0x1ac),_0x38a95b[_0xba30b5(0x1bb)]='help';const _0x192025=_0x38a95b,_0x2b1867={};_0x2b1867[_0xba30b5(0x180)]=_0x192025['CfMaW'],_0x2b1867[_0xba30b5(0x1b2)]=_0x192025[_0xba30b5(0x1be)];const _0x318776={};return _0x318776[_0xba30b5(0x194)]=_0x2b1867,_0x46f14a['usage'](HELP_HEADER_MESSAGE['list'][_0xba30b5(0x17f)])[_0xba30b5(0x191)](HELP_FOOTER_MESSAGE)['options'](_0x318776)[_0xba30b5(0x1b4)](_0x192025['sJAmg'])['argv'];},exports[a15_0x3ac312(0x1a7)]=async function(_0x353928){const _0x103cb3=a15_0x3ac312,_0x1adc07={'qeYOb':function(_0x1f48c2){return _0x1f48c2();},'brCIi':function(_0x1c3733){return _0x1c3733();},'TgxnM':_0x103cb3(0x195),'VMCaH':function(_0x52e18e,_0xdbcf5c,_0x3c07d5,_0x12a0aa,_0x1bad77,_0x6762e6,_0x507c71){return _0x52e18e(_0xdbcf5c,_0x3c07d5,_0x12a0aa,_0x1bad77,_0x6762e6,_0x507c71);},'xdxIW':'list-grids-called','DGOxH':_0x103cb3(0x1a2),'lYLsJ':_0x103cb3(0x17a),'metJC':function(_0x1da200,_0x558036,_0x2d7de4){return _0x1da200(_0x558036,_0x2d7de4);},'yZREg':function(_0x16f161,_0x5bfe10,_0x54cc51){return _0x16f161(_0x5bfe10,_0x54cc51);},'akobv':function(_0x271117,_0x4f9623){return _0x271117!==_0x4f9623;},'dvyWF':function(_0x5258be,_0x5b9c9c){return _0x5258be!==_0x5b9c9c;},'BeGIW':function(_0x12cbfa,_0x59e0cb){return _0x12cbfa===_0x59e0cb;},'CrIzd':_0x103cb3(0x1a6),'aOtSW':'grid-id','zQhOA':_0x103cb3(0x175),'ytTvO':_0x103cb3(0x170),'ITsYp':'running','VdCWj':_0x103cb3(0x1b8),'tGfor':_0x103cb3(0x199),'JvHPC':function(_0xebe2ba,_0x95d72b){return _0xebe2ba(_0x95d72b);},'Zmzrd':function(_0x1291d8,_0x2d607c){return _0x1291d8===_0x2d607c;},'yFOTZ':_0x103cb3(0x1a0),'XczRn':_0x103cb3(0x196),'ldeMa':function(_0x149609,_0xb3486b,_0x47b1fd,_0x224f60,_0x36ee3b,_0x57e997,_0x2f4ce5){return _0x149609(_0xb3486b,_0x47b1fd,_0x224f60,_0x36ee3b,_0x57e997,_0x2f4ce5);},'ybnGD':_0x103cb3(0x1b7),'adGbE':function(_0x2cc916,_0x4fa33c,_0x425eb3,_0x2ea93e,_0x1a6efe,_0x1fa173,_0x409d0b){return _0x2cc916(_0x4fa33c,_0x425eb3,_0x2ea93e,_0x1a6efe,_0x1fa173,_0x409d0b);},'kzyRf':'unknown-error'};try{global_registry['requestId']=_0x1adc07[_0x103cb3(0x173)](uuidv4);!fs[_0x103cb3(0x19a)](_0x1adc07[_0x103cb3(0x186)](getCredentialsPath))&&(console[_0x103cb3(0x1af)](_0x1adc07['TgxnM']),await _0x1adc07[_0x103cb3(0x182)](sendInstrumentationEvent,_0x353928,_0x1adc07['xdxIW'],messageTypes[_0x103cb3(0x1b5)],_0x1adc07[_0x103cb3(0x1c2)],null,_0x353928),process[_0x103cb3(0x1ba)](0x1));const _0x58162e=JSON['parse'](fs[_0x103cb3(0x16f)](_0x1adc07[_0x103cb3(0x186)](getCredentialsPath)));let _0x33b2be=_0x103cb3(0x1b3)+AG_API_URL+_0x103cb3(0x1a1);_0x353928[_0x103cb3(0x1a9)]&&(_0x33b2be=_0x103cb3(0x1b3)+AG_API_URL+'/packages/cli/get-all-grids');const _0x4a2ab1={'method':_0x1adc07[_0x103cb3(0x1c4)],'headers':_0x1adc07['metJC'](getAuthHeader,_0x58162e[_0x103cb3(0x171)][_0x103cb3(0x1bd)],_0x58162e[_0x103cb3(0x171)][_0x103cb3(0x181)]),'throwHttpErrors':![]};global_registry[_0x103cb3(0x1aa)]=_0x58162e['Browserstack']['username'],global_registry[_0x103cb3(0x19c)]=_0x58162e[_0x103cb3(0x171)][_0x103cb3(0x181)],_0x1adc07['VMCaH'](sendInstrumentationEvent,_0x353928,_0x1adc07['xdxIW'],messageTypes[_0x103cb3(0x18c)],null,null,_0x353928);const _0x1f1b2e=await _0x1adc07[_0x103cb3(0x176)](got,_0x33b2be,_0x4a2ab1);if(_0x1adc07['akobv'](_0x1f1b2e,null)&&_0x1adc07[_0x103cb3(0x1a3)](_0x1f1b2e,undefined)&&_0x1adc07[_0x103cb3(0x1bf)](_0x1f1b2e[_0x103cb3(0x19b)],0xc8)){const _0x106cb1=JSON[_0x103cb3(0x19e)](_0x1f1b2e['body']);console[_0x103cb3(0x18b)](_0x1adc07['CrIzd']);const _0x2d98ad=[];_0x2d98ad[_0x103cb3(0x187)]([_0x1adc07[_0x103cb3(0x188)],_0x1adc07[_0x103cb3(0x193)],_0x1adc07['ytTvO'],_0x1adc07[_0x103cb3(0x192)],_0x1adc07[_0x103cb3(0x172)],_0x1adc07[_0x103cb3(0x178)]]),_0x106cb1[_0x103cb3(0x19d)](_0x38e2fa=>{const _0x21a751=_0x103cb3;_0x2d98ad[_0x21a751(0x187)]([_0x38e2fa['id'],_0x38e2fa['name'],_0x38e2fa[_0x21a751(0x170)],_0x38e2fa[_0x21a751(0x185)],_0x38e2fa[_0x21a751(0x1b8)],_0x38e2fa[_0x21a751(0x1a5)]]);}),console['log'](_0x1adc07[_0x103cb3(0x18e)](table,_0x2d98ad)),process[_0x103cb3(0x1ba)](0x0);}_0x1adc07[_0x103cb3(0x1b9)](_0x1f1b2e[_0x103cb3(0x19b)],0x191)&&(console[_0x103cb3(0x1af)](_0x1adc07[_0x103cb3(0x1ad)]),await _0x1adc07[_0x103cb3(0x182)](sendInstrumentationEvent,_0x353928,_0x1adc07[_0x103cb3(0x1b0)],messageTypes['ERROR'],_0x1adc07[_0x103cb3(0x19f)],null,_0x353928),process[_0x103cb3(0x1ba)](0x1)),console[_0x103cb3(0x1af)](_0x103cb3(0x177)+JSON['stringify'](_0x1f1b2e)),await _0x1adc07['ldeMa'](sendInstrumentationEvent,_0x353928,_0x1adc07['xdxIW'],messageTypes['ERROR'],_0x1adc07[_0x103cb3(0x17c)],_0x1f1b2e,_0x353928),process['exit'](0x1);}catch(_0x55076e){console[_0x103cb3(0x1af)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x55076e[_0x103cb3(0x1bc)]),await _0x1adc07[_0x103cb3(0x1c0)](sendInstrumentationEvent,_0x353928,_0x1adc07['xdxIW'],messageTypes[_0x103cb3(0x1b5)],_0x1adc07[_0x103cb3(0x197)],_0x55076e,_0x353928),process[_0x103cb3(0x1ba)](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
+ function a16_0x2ff7(_0x5da9cd,_0x43e535){const _0x43ecd4=a16_0x43ec();return a16_0x2ff7=function(_0x2ff73d,_0x1c0a02){_0x2ff73d=_0x2ff73d-0xda;let _0x37466a=_0x43ecd4[_0x2ff73d];return _0x37466a;},a16_0x2ff7(_0x5da9cd,_0x43e535);}const a16_0x501cb1=a16_0x2ff7;(function(_0x1a8574,_0xe0cf58){const _0x44b423=a16_0x2ff7,_0x1e75be=_0x1a8574();while(!![]){try{const _0x2e3709=-parseInt(_0x44b423(0xe3))/0x1*(parseInt(_0x44b423(0xe0))/0x2)+parseInt(_0x44b423(0xde))/0x3+-parseInt(_0x44b423(0xdc))/0x4+-parseInt(_0x44b423(0xea))/0x5*(-parseInt(_0x44b423(0xe7))/0x6)+parseInt(_0x44b423(0xeb))/0x7+parseInt(_0x44b423(0xef))/0x8+-parseInt(_0x44b423(0xe5))/0x9*(-parseInt(_0x44b423(0xf3))/0xa);if(_0x2e3709===_0xe0cf58)break;else _0x1e75be['push'](_0x1e75be['shift']());}catch(_0x1ad163){_0x1e75be['push'](_0x1e75be['shift']());}}}(a16_0x43ec,0xa2471));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x43ec(){const _0x2392e8=['5958088WhqylC','DQLBG','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','desc','558880FiFjCm','builder','cJWeE','5090728FkQFsp','commandDir','2950905NzUJYH','help','2gvRcpf','command','handler','1110635bFujpj','strict','18hLYcbB','epilogue','6VycdZZ','precheck_commands','usage','1391075ijzVOR','6507333JqReTg','pre_check','demandCommand','pre-check'];a16_0x43ec=function(){return _0x2392e8;};return a16_0x43ec();}exports[a16_0x501cb1(0xe1)]=a16_0x501cb1(0xee),exports[a16_0x501cb1(0xf2)]=a16_0x501cb1(0xf1),exports[a16_0x501cb1(0xda)]=function(_0x2af29e){const _0x2993b7=a16_0x501cb1,_0x5b3992={};_0x5b3992[_0x2993b7(0xdb)]=_0x2993b7(0xe8),_0x5b3992[_0x2993b7(0xf0)]=_0x2993b7(0xdf);const _0x5cfd72=_0x5b3992;return _0x2af29e[_0x2993b7(0xe9)](HELP_HEADER_MESSAGE[_0x2993b7(0xec)])[_0x2993b7(0xe6)](HELP_FOOTER_MESSAGE)[_0x2993b7(0xdd)](_0x5cfd72['cJWeE'])[_0x2993b7(0xed)]()['recommendCommands']()[_0x2993b7(0xe4)]()[_0x2993b7(0xdf)](_0x5cfd72[_0x2993b7(0xf0)]);},exports[a16_0x501cb1(0xe2)]=function(_0x405358){};
@@ -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
+ const a17_0x42d2c7=a17_0x1afc;function a17_0x1afc(_0x3358d4,_0x193d54){const _0x42ab64=a17_0x42ab();return a17_0x1afc=function(_0x1afc3d,_0xa96d5b){_0x1afc3d=_0x1afc3d-0x1c1;let _0x9b6fb4=_0x42ab64[_0x1afc3d];return _0x9b6fb4;},a17_0x1afc(_0x3358d4,_0x193d54);}(function(_0x54933e,_0x5eefe4){const _0x34984d=a17_0x1afc,_0x54453b=_0x54933e();while(!![]){try{const _0x1a9be1=-parseInt(_0x34984d(0x1ed))/0x1*(-parseInt(_0x34984d(0x1c9))/0x2)+-parseInt(_0x34984d(0x1f4))/0x3*(-parseInt(_0x34984d(0x247))/0x4)+parseInt(_0x34984d(0x21c))/0x5*(-parseInt(_0x34984d(0x1d5))/0x6)+-parseInt(_0x34984d(0x28f))/0x7+parseInt(_0x34984d(0x228))/0x8+parseInt(_0x34984d(0x203))/0x9+-parseInt(_0x34984d(0x23b))/0xa*(parseInt(_0x34984d(0x1e3))/0xb);if(_0x1a9be1===_0x5eefe4)break;else _0x54453b['push'](_0x54453b['shift']());}catch(_0x1e9006){_0x54453b['push'](_0x54453b['shift']());}}}(a17_0x42ab,0xe6a50));function a17_0x42ab(){const _0x1c5771=['pKptB','nWCmF','getUTCHours','body','HxnZb','checkAccess','cloud-provider','kzdtT','init','isClusterPresent','cluster-check-failed-','name','isTrialGridAccessible','got','throwHttpErrors','gvkFg','tNhmi','pre-check-grid-called','\x20\x20Message:\x20','bstackUsername','bLJeH','options','NozUS','2076285tjGaMc','FdxSC','length','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','tJyIu','dummy-grid','wtTax','epilogue','pspei','GHyiY','sFeYR','code','3648576ICnQvY','mYbrT','find','OdkRe','rfaik','parse','NiQQa','../../cloudproviders/utils','Report\x20saved\x20in\x20','replace','tbZmo','akOQa','GkNoc','EAfxg','zStSL','rONBR','ZDqYX','kUpGW','AkUXD','19675870DBWZPV',']\x20status\x20:\x20','tjubb','type','LpQDQ','Whitelisted\x20browserstack','WebSocket','handler','fhCKm','VGSQT','UHcrL','\x20\x20Code:\x20','148iNYCbh','SSL\x20Configured','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','IuYaH','kWBVH','uAUZA','gridProfile','DLZpE','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fKpPo','stringify','is\x20already\x20present','lgIJa','Browserstack','INFO','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Setting\x20cloud\x20provider\x20as\x20','EbyEU','../../config/constants','getUTCDate','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','bCjDg','qDOHo','\x20\x20Stack:\x20','\x20===\x0a\x0a','message','nLqWd','VZhmr','debug','region','pOTss','ScInn','rsvtN','atBHI','uDvoh','exit','Tcnot','ChugP','gtpzg','YzxxR','CLOUD_PROVIDER','rRgJW','CNNPn','cluster-name','ntobl','connectionTimeout','usage','bstackAccesskey','User\x20Access','Cluster\x20`','ePvmc','JTANS','WsbyA','kZelX','qJWCV','dzOTq','stack','description','DPqGz','credential-not-found','authHeader','`\x20,error\x20:\x20','clusterName','password','ybhCf','OYEFv','Error\x20Details:\x0a','push','TLSv1_2_client_method','Failed\x20in\x20pre-check!\x20Error:\x20','YbycL','getUTCMinutes','4752349SihCHA','header','Qqsjb','dzbrs','Invalid\x20input.\x20grid\x20profiles:\x20','SKFse','JOfWE','eecGC','sAqrn','will\x20be\x20created','isTls1_2_SUPPORTED','oInpV','sendEventToBackend','EgKmK','Grid\x20profile\x20fetched\x20for\x20pre-check','kVZXP','N/A','stack\x20trace\x20','argv','error','Cluster\x20','tWHxz','FsfmI','4|0|2|3|1','AlfeX','isCliToolInstalled','ieyoI','response','.\x20Please\x20provide\x20all\x20required\x20arguments.','.txt','nWmAS','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','pre_check','YJBQv','cloud-provider-not-supported','`\x20is\x20present\x20in\x20region\x20`','builder','help','<UsernamePlaceholder>','XScKb','grid','string','AgQFj','CHfOl','aCvqn','pre-check','\x20region\x20-\x20','CcDCR','TJfdi','Cluster\x20details\x0a-----------------------\x0a','IrlFP','accessResp','CEYCZ','info','AoHiC','eTqGf','QCLIb','error\x20stack\x20:\x20','1740846EkHaGj','`\x20already\x20exists','PHuhd','weKSX','Bxisi','rvDEt','FYMuH','status','aCjef','/packages/cli/get-all-grid-profiles','USkBB','username','6WMhsYG','llTku','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','nfziB','FzggX','readFileSync','grid-profile','GJHMC','fpqPF','cNGfR','dQbvA','fcKRZ','nOBuv','sfIFe','11PjWtRY','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','mNQoc','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','KwiOH','LOG','cloudProvider','Missing\x20required\x20arguments:\x20','../../utils/utilityMethods','https://','2hejDNR','ERROR','clusterRegion','wUWAU','tMVvc','WinqZ','IMyPR','119055EutULQ','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','oGCsw','data','delay','iIcvq','includes','split','<PasswordPlaceholder>','Pre-check\x20running\x20for\x20Cloud\x20-\x20','VmDnc','WBbKa','GET','method','Success','3070872nlEpoP','hphba'];a17_0x42ab=function(){return _0x1c5771;};return a17_0x42ab();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x42d2c7(0x212)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x42d2c7(0x1eb)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x42d2c7(0x259)),{getCloudProviderObjectWithOutInit}=require(a17_0x42d2c7(0x22f)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a17_0x42d2c7(0x2b7),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x42d2c7(0x2b3)]=function(_0x22edbb){const _0x3bf1e7=a17_0x42d2c7,_0x4e3a24={};_0x4e3a24[_0x3bf1e7(0x1c1)]=_0x3bf1e7(0x249),_0x4e3a24[_0x3bf1e7(0x224)]=_0x3bf1e7(0x2b8),_0x4e3a24[_0x3bf1e7(0x288)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4e3a24['zStSL']=_0x3bf1e7(0x2ae),_0x4e3a24[_0x3bf1e7(0x1d1)]=_0x3bf1e7(0x1e6),_0x4e3a24[_0x3bf1e7(0x295)]=_0x3bf1e7(0x2b4);const _0x18b085=_0x4e3a24,_0x3310cc={};_0x3310cc[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x1c1)],_0x3310cc[_0x3bf1e7(0x23e)]=_0x18b085['pspei'];const _0x5e8475={};_0x5e8475[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x288)],_0x5e8475['type']=_0x18b085[_0x3bf1e7(0x224)];const _0x4f3e67={};_0x4f3e67[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x236)],_0x4f3e67['type']=_0x18b085['pspei'];const _0x4c94b1={};_0x4c94b1[_0x3bf1e7(0x280)]=_0x18b085[_0x3bf1e7(0x1d1)],_0x4c94b1['type']=_0x18b085[_0x3bf1e7(0x224)];const _0x4a638b={};return _0x4a638b[_0x3bf1e7(0x272)]=_0x3310cc,_0x4a638b[_0x3bf1e7(0x20b)]=_0x5e8475,_0x4a638b[_0x3bf1e7(0x264)]=_0x4f3e67,_0x4a638b['grid-profile']=_0x4c94b1,_0x22edbb[_0x3bf1e7(0x275)](HELP_HEADER_MESSAGE[_0x3bf1e7(0x2af)])[_0x3bf1e7(0x223)](HELP_FOOTER_MESSAGE)['options'](_0x4a638b)[_0x3bf1e7(0x2b4)](_0x18b085[_0x3bf1e7(0x295)])[_0x3bf1e7(0x2a1)];};async function inputValidation(_0x5de54f,_0x12f527){const _0xe003ac=a17_0x42d2c7,_0x513fd2={'WinqZ':_0xe003ac(0x1e4),'ChugP':'Error\x20Details:\x0a','kWBVH':_0xe003ac(0x29f),'tbZmo':_0xe003ac(0x249),'dzOTq':_0xe003ac(0x2b8),'kUpGW':_0xe003ac(0x256),'tWHxz':_0xe003ac(0x2ae),'UBrsb':_0xe003ac(0x1e6),'AoHiC':_0xe003ac(0x2b4),'pKptB':_0xe003ac(0x2a2),'JwIDV':'is\x20already\x20present','rfaik':'will\x20be\x20created','QTlZn':'cluster-name','sAqrn':_0xe003ac(0x20b),'fhCKm':_0xe003ac(0x264),'ntobl':function(_0x222c94,_0x404bdd){return _0x222c94===_0x404bdd;},'WBbKa':_0xe003ac(0x294),'nWmAS':_0xe003ac(0x27d),'DLZpE':function(_0x2a9c25,_0x30189d){return _0x2a9c25===_0x30189d;},'weKSX':_0xe003ac(0x268),'FYMuH':function(_0x2426b5,_0x4652a2){return _0x2426b5!==_0x4652a2;},'wUWAU':_0xe003ac(0x1e0),'CHfOl':'fpMCt','eTqGf':'MhZyT','YzxxR':_0xe003ac(0x235),'wnVKD':function(_0x1367cc,_0x36360c){return _0x1367cc!==_0x36360c;},'tjubb':'IcAqX','GJHMC':function(_0x1c2836,_0x1b5ea6){return _0x1c2836>_0x1b5ea6;},'EAddH':'XtxbR','fpqPF':function(_0x1d14ee,_0x13424a,_0x53a35d,_0x1eac54,_0x2e7fcd,_0x54a968,_0x17b2ba,_0x5ec657){return _0x1d14ee(_0x13424a,_0x53a35d,_0x1eac54,_0x2e7fcd,_0x54a968,_0x17b2ba,_0x5ec657);},'dzbrs':_0xe003ac(0x216),'Tcnot':'pre-check-cluster-args-not-passed','VGSQT':function(_0x860792,_0x1c9c08){return _0x860792!==_0x1c9c08;},'kzdtT':_0xe003ac(0x1f3),'UHcrL':_0xe003ac(0x1d7),'gvkFg':function(_0x1a0895,_0x37b9a4,_0x4fc66e,_0x88d062,_0x57fff7,_0x180f81,_0x162162,_0x469cde){return _0x1a0895(_0x37b9a4,_0x4fc66e,_0x88d062,_0x57fff7,_0x180f81,_0x162162,_0x469cde);},'TJfdi':_0xe003ac(0x2b1),'roasB':_0xe003ac(0x29c),'FzggX':'oJQWt','mNQoc':_0xe003ac(0x200),'bCjDg':function(_0x32fcd5,_0x46a4cb,_0x5524c8){return _0x32fcd5(_0x46a4cb,_0x5524c8);},'ZZExH':function(_0x32f021,_0x302eb3,_0x37972f,_0xaac5d5,_0x13a422,_0x56bf01){return _0x32f021(_0x302eb3,_0x37972f,_0xaac5d5,_0x13a422,_0x56bf01);},'sDjMP':_0xe003ac(0x2bc),'mYbrT':_0xe003ac(0x1db),'bLJeH':function(_0x1fde67,_0x1b05a2){return _0x1fde67===_0x1b05a2;},'eecGC':_0xe003ac(0x271),'uDvoh':_0xe003ac(0x1f9),'FsfmI':function(_0x971abc,_0x56089){return _0x971abc(_0x56089);},'oInpV':function(_0x549c91,_0x1ba4f9){return _0x549c91!==_0x1ba4f9;},'dtKox':'KteWy','PpZNS':'KKyAo','rvDEt':'pre-check-grid-profile-empty','WsbyA':function(_0x765b5,_0x5d1130){return _0x765b5!==_0x5d1130;},'CEYCZ':_0xe003ac(0x1cd),'sXhiW':function(_0xa9f12d,_0x39a251){return _0xa9f12d!==_0x39a251;},'GHyiY':_0xe003ac(0x250),'HxnZb':'IjkHm','EbyEU':_0xe003ac(0x29d),'rRgJW':function(_0x319f4c,_0x1bc8e7){return _0x319f4c===_0x1bc8e7;},'cNGfR':_0xe003ac(0x265),'LpQDQ':_0xe003ac(0x21b),'rONBR':_0xe003ac(0x1e1),'XScKb':_0xe003ac(0x281),'AgQFj':function(_0x4134ff,_0x186e1e,_0xa2dfe5,_0x18ddd9,_0x58e401,_0xe49ef,_0x42b0a1,_0x3e8469){return _0x4134ff(_0x186e1e,_0xa2dfe5,_0x18ddd9,_0x58e401,_0xe49ef,_0x42b0a1,_0x3e8469);}};let _0x45a96a;try{if(_0x513fd2[_0xe003ac(0x273)](_0x513fd2[_0xe003ac(0x1ff)],_0x513fd2[_0xe003ac(0x2ad)]))_0x3df9fc['exit'](0x1);else{if(_0x5de54f[_0xe003ac(0x285)]||_0x5de54f['cloudProvider']||_0x5de54f['region']){if(_0x513fd2[_0xe003ac(0x24e)](_0x513fd2[_0xe003ac(0x1cc)],_0x513fd2['weKSX'])){const _0x3d3a80=[];!_0x5de54f[_0xe003ac(0x285)]&&(_0x513fd2[_0xe003ac(0x1cf)](_0x513fd2[_0xe003ac(0x1f0)],_0x513fd2[_0xe003ac(0x2ba)])?_0x3d3a80['push'](_0x513fd2['QTlZn']):(_0x4e31c8[_0xe003ac(0x2a2)](_0x513fd2[_0xe003ac(0x1f2)]),_0x1f7ebc[_0xe003ac(0x26a)](0x1)));;!_0x5de54f[_0xe003ac(0x1e9)]&&(_0x513fd2[_0xe003ac(0x1cf)](_0x513fd2[_0xe003ac(0x1c6)],_0x513fd2[_0xe003ac(0x26e)])?_0x3d3a80[_0xe003ac(0x28a)](_0x513fd2[_0xe003ac(0x297)]):(_0x1872e9+=_0x513fd2[_0xe003ac(0x26c)],_0x555b6c+=_0xe003ac(0x217)+(_0x3e9e55[_0xe003ac(0x260)]||_0x513fd2[_0xe003ac(0x24b)])+'\x0a',_0xff899d+='\x20\x20Code:\x20'+(_0x59d456[_0xe003ac(0x227)]||_0x513fd2[_0xe003ac(0x24b)])+'\x0a',_0x5e0058+='\x20\x20Stack:\x20'+(_0x273d3c[_0xe003ac(0x27f)]||_0x513fd2[_0xe003ac(0x24b)])+'\x0a'));;if(!_0x5de54f[_0xe003ac(0x264)]){if(_0x513fd2['wnVKD'](_0x513fd2[_0xe003ac(0x23d)],_0x513fd2[_0xe003ac(0x23d)])){const _0x1d8c84={};_0x1d8c84[_0xe003ac(0x280)]=_0x513fd2[_0xe003ac(0x232)],_0x1d8c84['type']=_0x513fd2['dzOTq'];const _0x49d77e={};_0x49d77e[_0xe003ac(0x280)]=_0x513fd2[_0xe003ac(0x239)],_0x49d77e[_0xe003ac(0x23e)]=_0x513fd2[_0xe003ac(0x27e)];const _0x4b8b23={};_0x4b8b23[_0xe003ac(0x280)]=_0x513fd2[_0xe003ac(0x2a4)],_0x4b8b23[_0xe003ac(0x23e)]=_0x513fd2[_0xe003ac(0x27e)];const _0x3eb780={};_0x3eb780[_0xe003ac(0x280)]=_0x513fd2['UBrsb'],_0x3eb780[_0xe003ac(0x23e)]=_0x513fd2[_0xe003ac(0x27e)];const _0x100a6b={};return _0x100a6b[_0xe003ac(0x272)]=_0x1d8c84,_0x100a6b[_0xe003ac(0x20b)]=_0x49d77e,_0x100a6b[_0xe003ac(0x264)]=_0x4b8b23,_0x100a6b['grid-profile']=_0x3eb780,_0x20376c[_0xe003ac(0x275)](_0xfe673a[_0xe003ac(0x2af)])['epilogue'](_0x22c6f9)[_0xe003ac(0x21a)](_0x100a6b)[_0xe003ac(0x2b4)](_0x513fd2[_0xe003ac(0x1c5)])['argv'];}else _0x3d3a80[_0xe003ac(0x28a)](_0x513fd2['fhCKm']);};_0x513fd2[_0xe003ac(0x1dc)](_0x3d3a80[_0xe003ac(0x21e)],0x0)&&(_0x513fd2['ntobl'](_0x513fd2['EAddH'],_0x513fd2['EAddH'])?(_0x45a96a=_0xe003ac(0x1ea)+_0x3d3a80['join'](',\x20')+_0xe003ac(0x2ab),await _0x513fd2[_0xe003ac(0x1dd)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes[_0xe003ac(0x1ee)],_0x513fd2['dzbrs'],_0x513fd2[_0xe003ac(0x26b)],_0x513fd2['pKptB']),logger[_0xe003ac(0x2a2)](_0x45a96a),process[_0xe003ac(0x26a)](0x1)):_0x24a809[_0xe003ac(0x2a2)](_0xe003ac(0x1c8)+_0xbae772['error'][_0xe003ac(0x27f)]));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xe003ac(0x1fa)](_0x5de54f[_0xe003ac(0x1e9)]['toLowerCase']())){if(_0x513fd2[_0xe003ac(0x244)](_0x513fd2[_0xe003ac(0x20c)],_0x513fd2[_0xe003ac(0x20c)])){const _0x5a5d81={};_0x5a5d81[_0xe003ac(0x23e)]=_0x42614e[_0xe003ac(0x1e8)],_0x5a5d81[_0xe003ac(0x260)]=_0xc1d3d7,_0x15716f['sendEventToBackend'](_0x8fca64,_0x5a5d81,_0x513fd2['pKptB'],!![]);}else _0x45a96a=_0x513fd2[_0xe003ac(0x245)],await _0x513fd2[_0xe003ac(0x214)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes[_0xe003ac(0x1ee)],_0x513fd2[_0xe003ac(0x292)],_0x513fd2[_0xe003ac(0x2bf)],_0x513fd2['pKptB']),logger['error'](_0x45a96a),!_0x5de54f[_0xe003ac(0x1e9)]&&(_0x513fd2[_0xe003ac(0x244)](_0x513fd2['roasB'],_0x513fd2['roasB'])?_0x1e9882['info'](_0xe003ac(0x278)+_0xdddcae['clusterName']+_0xe003ac(0x1ca)):(logger[_0xe003ac(0x1c4)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0xe003ac(0x26f)]+'\x20'),_0x5de54f['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry[_0xe003ac(0x285)]=_0x5de54f[_0xe003ac(0x285)],global_registry['cloudProvider']=_0x5de54f[_0xe003ac(0x1e9)],global_registry[_0xe003ac(0x1ef)]=_0x5de54f[_0xe003ac(0x264)];}else _0x1b06b9+=_0xe003ac(0x2a3)+_0x270194[_0xe003ac(0x285)]+_0xe003ac(0x25b);}else{if(_0x5de54f[_0xe003ac(0x24d)]){if(_0x513fd2[_0xe003ac(0x24e)](_0x513fd2[_0xe003ac(0x1d9)],_0x513fd2[_0xe003ac(0x1d9)])){global_registry[_0xe003ac(0x24d)]=_0x5de54f[_0xe003ac(0x24d)],logger['debug']('grid\x20profile\x20flow\x20'+_0x5de54f[_0xe003ac(0x24d)]);const _0x295cc2=_0xe003ac(0x1ec)+AG_API_URL+_0xe003ac(0x1d2),_0x4eb342={};_0x4eb342[_0xe003ac(0x201)]=_0x513fd2[_0xe003ac(0x1e5)],_0x4eb342['headers']=global_registry[_0xe003ac(0x283)],_0x4eb342[_0xe003ac(0x213)]=![];const _0x43932e=_0x4eb342,_0x314885=await _0x513fd2[_0xe003ac(0x25c)](got,_0x295cc2,_0x43932e),_0x39a85c=await _0x513fd2['ZZExH'](responseValidation,_0x314885,_0x513fd2['sDjMP'],_0x513fd2[_0xe003ac(0x229)],_0x5de54f,_0x12f527);let _0x280c5a={};if(_0x513fd2[_0xe003ac(0x219)](_0x39a85c,0xc8)){if(_0x513fd2[_0xe003ac(0x24e)](_0x513fd2[_0xe003ac(0x296)],_0x513fd2[_0xe003ac(0x269)]))_0x11c9e1[_0xe003ac(0x1c4)]('['+_0x379758+_0xe003ac(0x23c)+_0xc13819[_0xe003ac(0x1d0)]+'\x20data\x20:\x20'+_0x4e7ae8[_0xe003ac(0x1f7)]+'\x20error\x20:\x20'+_0x585b43[_0xe003ac(0x2a2)]),_0x4ed28b[_0xe003ac(0x2a2)]&&_0x939328[_0xe003ac(0x2a2)](_0xe003ac(0x1c8)+_0x49e400[_0xe003ac(0x2a2)][_0xe003ac(0x27f)]);else{const _0x4cf13e=JSON[_0xe003ac(0x22d)](_0x314885[_0xe003ac(0x208)]),_0x10c083=_0x4cf13e[_0xe003ac(0x22a)](_0x17e86b=>_0x17e86b[_0xe003ac(0x210)]===_0x5de54f[_0xe003ac(0x24d)])||null;_0x513fd2[_0xe003ac(0x2a5)](isUndefined,_0x10c083)?_0x513fd2[_0xe003ac(0x29a)](_0x513fd2['dtKox'],_0x513fd2['PpZNS'])?(_0x45a96a=_0xe003ac(0x293)+_0x5de54f[_0xe003ac(0x24d)]+_0xe003ac(0x1f5),await _0x513fd2[_0xe003ac(0x214)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes[_0xe003ac(0x1ee)],_0x513fd2[_0xe003ac(0x292)],_0x513fd2[_0xe003ac(0x1ce)],_0x513fd2[_0xe003ac(0x205)]),logger['error'](_0x45a96a),process['exit'](0x1)):_0x1eea13+='Cluster\x20'+_0x24d81a[_0xe003ac(0x285)]+'\x20'+(_0x2c98c1?_0x513fd2['JwIDV']:_0x513fd2[_0xe003ac(0x22c)])+'\x0a\x0a':_0x513fd2[_0xe003ac(0x27b)](_0x513fd2[_0xe003ac(0x1c3)],_0x513fd2[_0xe003ac(0x1c3)])?_0x12ee22['push'](_0x513fd2['QTlZn']):_0x280c5a=_0x10c083;}}else _0x513fd2['sXhiW'](_0x513fd2[_0xe003ac(0x225)],_0x513fd2[_0xe003ac(0x209)])?process['exit'](0x1):_0x2d9c7b[_0xe003ac(0x28a)](_0x513fd2[_0xe003ac(0x297)]);const _0x33b146={};_0x33b146[_0xe003ac(0x23e)]=WS_EVENTS[_0xe003ac(0x1e8)],_0x33b146[_0xe003ac(0x260)]=_0x513fd2[_0xe003ac(0x258)],webSocketUtils['sendEventToBackend'](_0x12f527,_0x33b146),global_registry['cloudProvider']=_0x280c5a[_0xe003ac(0x1e9)],global_registry[_0xe003ac(0x1ef)]=_0x280c5a[_0xe003ac(0x264)],global_registry['clusterName']=_0x280c5a[_0xe003ac(0x285)];}else _0x26617b['info'](_0xe003ac(0x257)+_0x129b77['CLOUD_PROVIDER']+'\x20'),_0x5c0179[_0xe003ac(0x1e9)]=_0x2264b4[_0xe003ac(0x26f)];}else _0x513fd2[_0xe003ac(0x270)](_0x513fd2[_0xe003ac(0x1de)],_0x513fd2[_0xe003ac(0x23f)])?_0x45833b=_0x3438dd:(logger[_0xe003ac(0x2a2)](_0x513fd2[_0xe003ac(0x1f2)]),process[_0xe003ac(0x26a)](0x1));}}}catch(_0x83eb2c){_0x513fd2[_0xe003ac(0x27b)](_0x513fd2[_0xe003ac(0x237)],_0x513fd2[_0xe003ac(0x2b6)])?(_0x45a96a=_0xe003ac(0x21f)+_0x83eb2c+':\x20'+_0x83eb2c[_0xe003ac(0x27f)],logger[_0xe003ac(0x2a2)](_0x45a96a),await _0x513fd2[_0xe003ac(0x2b9)](reportToGalactusAndSendToEDS,_0x5de54f,_0x12f527,_0x45a96a,messageTypes['ERROR'],_0x513fd2[_0xe003ac(0x292)],_0x513fd2[_0xe003ac(0x2bf)],_0x513fd2[_0xe003ac(0x205)]),process[_0xe003ac(0x26a)](0x1)):_0x11a7e6[_0xe003ac(0x28a)](_0x513fd2[_0xe003ac(0x243)]);}}function printResponse(_0x2c80f5,_0x1c3044){const _0x50d73d=a17_0x42d2c7,_0xd16389={};_0xd16389[_0x50d73d(0x24a)]=function(_0x9fff75,_0x429567){return _0x9fff75+_0x429567;},_0xd16389[_0x50d73d(0x1e2)]=_0x50d73d(0x202),_0xd16389[_0x50d73d(0x1d3)]='Failure',_0xd16389['yYPRB']=function(_0x54d9e6,_0x21531b){return _0x54d9e6||_0x21531b;},_0xd16389[_0x50d73d(0x1d6)]=_0x50d73d(0x29f),_0xd16389[_0x50d73d(0x25d)]='Error\x20Details:\x0a',_0xd16389[_0x50d73d(0x287)]=function(_0x496b39,_0x49207d){return _0x496b39!==_0x49207d;},_0xd16389[_0x50d73d(0x279)]=_0x50d73d(0x267),_0xd16389['uAUZA']=_0x50d73d(0x1e7);const _0x5ddd07=_0xd16389;logger[_0x50d73d(0x1c4)]('['+_0x2c80f5+_0x50d73d(0x23c)+_0x1c3044[_0x50d73d(0x1d0)]+'\x20data\x20:\x20'+_0x1c3044[_0x50d73d(0x1f7)]+'\x20error\x20:\x20'+_0x1c3044['error']);if(_0x1c3044[_0x50d73d(0x2a2)]){if(_0x5ddd07[_0x50d73d(0x287)](_0x5ddd07[_0x50d73d(0x279)],_0x5ddd07[_0x50d73d(0x24c)]))logger[_0x50d73d(0x2a2)](_0x50d73d(0x1c8)+_0x1c3044[_0x50d73d(0x2a2)][_0x50d73d(0x27f)]);else{const {header:_0x76832e,response:_0x17db09}=_0x464090,{status:_0x3f297f,data:_0x936b34,error:_0x194d90}=_0x17db09;_0x26376d+=_0x76832e+'\x20#'+_0x5ddd07[_0x50d73d(0x24a)](_0x954bbd,0x1)+'\x0a',_0x11837b+='Status:\x20'+(_0x3f297f?_0x5ddd07['sfIFe']:_0x5ddd07['USkBB'])+'\x0a',_0x54a377+='Message:\x20'+_0x5ddd07['yYPRB'](_0x936b34,_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a',_0x194d90&&(_0x336d4e+=_0x5ddd07[_0x50d73d(0x25d)],_0x3a3c98+=_0x50d73d(0x217)+(_0x194d90[_0x50d73d(0x260)]||_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a',_0xd58889+=_0x50d73d(0x246)+(_0x194d90['code']||_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a',_0x3010c5+=_0x50d73d(0x25e)+(_0x194d90[_0x50d73d(0x27f)]||_0x5ddd07[_0x50d73d(0x1d6)])+'\x0a'),_0x4cdfb0+='\x0a\x0a';}}}async function generateReport(_0x4cad5a,_0x3229c7){const _0x21d738=a17_0x42d2c7,_0x4df4fd={'JTANS':function(_0x4e7855,_0x48326d){return _0x4e7855+_0x48326d;},'tMVvc':'Success','YJBQv':'Failure','beVzq':function(_0x3b7ff4,_0x16ed1a){return _0x3b7ff4||_0x16ed1a;},'NiQQa':'N/A','tJyIu':_0x21d738(0x289),'ieyoI':_0x21d738(0x2c0),'GkQFE':function(_0x43c1f2,_0x50d609){return _0x43c1f2!=_0x50d609;},'kVZXP':_0x21d738(0x252),'elSln':_0x21d738(0x298),'tfgvl':function(_0x327c49){return _0x327c49();}};let _0x11e7fd='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x21d738(0x1e9)]+_0x21d738(0x25f);return _0x4cad5a['forEach']((_0x2a7d97,_0x111345)=>{const _0x407b42=_0x21d738,{header:_0x178318,response:_0x40ce33}=_0x2a7d97,{status:_0x7ef4ee,data:_0xdf954e,error:_0x6630bc}=_0x40ce33;_0x11e7fd+=_0x178318+'\x20#'+_0x4df4fd[_0x407b42(0x27a)](_0x111345,0x1)+'\x0a',_0x11e7fd+='Status:\x20'+(_0x7ef4ee?_0x4df4fd[_0x407b42(0x1f1)]:_0x4df4fd[_0x407b42(0x2b0)])+'\x0a',_0x11e7fd+='Message:\x20'+_0x4df4fd['beVzq'](_0xdf954e,_0x4df4fd[_0x407b42(0x22e)])+'\x0a',_0x6630bc&&(_0x11e7fd+=_0x4df4fd[_0x407b42(0x220)],_0x11e7fd+=_0x407b42(0x217)+(_0x6630bc[_0x407b42(0x260)]||_0x4df4fd[_0x407b42(0x22e)])+'\x0a',_0x11e7fd+=_0x407b42(0x246)+(_0x6630bc[_0x407b42(0x227)]||_0x4df4fd[_0x407b42(0x22e)])+'\x0a',_0x11e7fd+=_0x407b42(0x25e)+(_0x6630bc[_0x407b42(0x27f)]||_0x4df4fd[_0x407b42(0x22e)])+'\x0a'),_0x11e7fd+='\x0a\x0a';}),_0x11e7fd+=_0x4df4fd[_0x21d738(0x2a9)],_0x4df4fd['GkQFE'](_0x3229c7,null)?_0x11e7fd+=_0x21d738(0x2a3)+global_registry['clusterName']+'\x20'+(_0x3229c7?_0x4df4fd[_0x21d738(0x29e)]:_0x4df4fd['elSln'])+'\x0a\x0a':_0x11e7fd+='Cluster\x20'+global_registry[_0x21d738(0x285)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x11e7fd+=_0x4df4fd['tfgvl'](getSystemMetaData),_0x11e7fd;};exports[a17_0x42d2c7(0x242)]=async function(_0x46be0f){const _0x37e4f2=a17_0x42d2c7,_0x572f07={'GkNoc':function(_0xf71033){return _0xf71033();},'EfMqO':_0x37e4f2(0x24f),'YbycL':function(_0x2b4bd1,_0x3c2ca8,_0x3dec73,_0x20b239,_0x2237cf,_0x4464ea,_0x2857a0,_0x5579c6){return _0x2b4bd1(_0x3c2ca8,_0x3dec73,_0x20b239,_0x2237cf,_0x4464ea,_0x2857a0,_0x5579c6);},'Qqsjb':_0x37e4f2(0x216),'qFHyF':_0x37e4f2(0x282),'oGCsw':_0x37e4f2(0x2a2),'dQbvA':function(_0x35e084,_0xdc18a1,_0x3c801d,_0x1cf6c2,_0x3a7d3b,_0xbbeb9,_0x36cd15){return _0x35e084(_0xdc18a1,_0x3c801d,_0x1cf6c2,_0x3a7d3b,_0xbbeb9,_0x36cd15);},'kZelX':function(_0x278f78){return _0x278f78();},'VmDnc':_0x37e4f2(0x2b5),'VZhmr':_0x37e4f2(0x1fc),'nWCmF':function(_0x3708fa,_0x10ca6c,_0x5309ec){return _0x3708fa(_0x10ca6c,_0x5309ec);},'nLqWd':function(_0x5eefea,_0x519f21,_0xf710b5){return _0x5eefea(_0x519f21,_0xf710b5);},'CcDCR':_0x37e4f2(0x221),'tNhmi':'toolInstalledResp','QCLIb':_0x37e4f2(0x2a6),'aCvqn':function(_0x2590b8,_0x39071e,_0x21838e){return _0x2590b8(_0x39071e,_0x21838e);},'JOXBr':_0x37e4f2(0x1c2),'AlfeX':function(_0x1d2961){return _0x1d2961();},'ScInn':function(_0x27a50c,_0x582fc1,_0x31afaf){return _0x27a50c(_0x582fc1,_0x31afaf);},'hphba':_0x37e4f2(0x211),'ZDqYX':function(_0x24775a,_0x42957e){return _0x24775a(_0x42957e);},'wtTax':_0x37e4f2(0x28b),'FdxSC':function(_0x594f03,_0xf8cacc,_0x32eb81){return _0x594f03(_0xf8cacc,_0x32eb81);},'sFeYR':_0x37e4f2(0x299),'tbIpd':'Tool\x20Installed','gtpzg':_0x37e4f2(0x277),'nfziB':_0x37e4f2(0x240),'OdkRe':_0x37e4f2(0x248),'lgIJa':function(_0x36eeae,_0x451caf){return _0x36eeae+_0x451caf;},'PHuhd':'utf-8','akOQa':function(_0x4f772c,_0x2a55a5,_0x595b6e,_0xd9c3a0,_0x3d8834,_0x522841,_0x26cae6){return _0x4f772c(_0x2a55a5,_0x595b6e,_0xd9c3a0,_0x3d8834,_0x522841,_0x26cae6);},'AkUXD':'pre-check-failed'};let _0x5ede1a,_0x583fc0;try{global_registry['requestId']=_0x572f07[_0x37e4f2(0x234)](uuidv4);!fs['existsSync'](_0x572f07[_0x37e4f2(0x234)](getCredentialsPath))&&(_0x583fc0=_0x572f07['EfMqO'],logger['error'](_0x583fc0),await _0x572f07[_0x37e4f2(0x28d)](reportToGalactusAndSendToEDS,_0x46be0f,_0x5ede1a,_0x583fc0,messageTypes['ERROR'],_0x572f07[_0x37e4f2(0x291)],_0x572f07['qFHyF'],_0x572f07[_0x37e4f2(0x1f6)]),process[_0x37e4f2(0x26a)](0x1));_0x572f07[_0x37e4f2(0x1df)](sendInstrumentationEvent,_0x46be0f,_0x572f07[_0x37e4f2(0x291)],messageTypes[_0x37e4f2(0x255)],null,null,_0x46be0f);const _0x2c6487=JSON['parse'](fs[_0x37e4f2(0x1da)](_0x572f07[_0x37e4f2(0x27c)](getCredentialsPath)));global_registry[_0x37e4f2(0x218)]=_0x2c6487['Browserstack'][_0x37e4f2(0x1d4)],global_registry[_0x37e4f2(0x276)]=_0x2c6487[_0x37e4f2(0x254)][_0x37e4f2(0x286)];const _0x3bc99b=WS_ENDPOINT[_0x37e4f2(0x231)](_0x572f07[_0x37e4f2(0x1fe)],_0x2c6487['Browserstack'][_0x37e4f2(0x1d4)])[_0x37e4f2(0x231)](_0x572f07[_0x37e4f2(0x262)],_0x2c6487['Browserstack'][_0x37e4f2(0x286)]),_0x37b586={};_0x37b586[_0x37e4f2(0x241)]=ws,_0x37b586[_0x37e4f2(0x274)]=0x36ee80,_0x5ede1a=new ReconnectingWebSocket(_0x3bc99b,[],_0x37b586),global_registry[_0x37e4f2(0x283)]=_0x572f07[_0x37e4f2(0x206)](getAuthHeader,global_registry[_0x37e4f2(0x218)],global_registry['bstackAccesskey']),await _0x572f07[_0x37e4f2(0x261)](inputValidation,_0x46be0f,_0x5ede1a),logger[_0x37e4f2(0x1c4)](_0x37e4f2(0x1fd)+global_registry[_0x37e4f2(0x1e9)]+_0x37e4f2(0x2bd)+global_registry[_0x37e4f2(0x1ef)]);let _0x402cf4=await _0x572f07[_0x37e4f2(0x1df)](getCloudProviderObjectWithOutInit,global_registry[_0x37e4f2(0x1e9)],global_registry[_0x37e4f2(0x285)],_0x572f07[_0x37e4f2(0x2be)],_0x5ede1a,webSocketUtils,_0x46be0f);const _0x2f62fe=await _0x402cf4[_0x37e4f2(0x2a8)]();_0x572f07[_0x37e4f2(0x206)](printResponse,_0x572f07[_0x37e4f2(0x215)],_0x2f62fe),_0x402cf4=await _0x402cf4[_0x37e4f2(0x20d)]();let _0x249da4=![];try{_0x249da4=await _0x402cf4[_0x37e4f2(0x20e)]();}catch(_0x530ca0){const _0x5b8322=_0x572f07[_0x37e4f2(0x1c7)][_0x37e4f2(0x1fb)]('|');let _0xf48a26=0x0;while(!![]){switch(_0x5b8322[_0xf48a26++]){case'0':_0x249da4=null;continue;case'1':await _0x572f07[_0x37e4f2(0x28d)](reportToGalactusAndSendToEDS,_0x46be0f,_0x5ede1a,_0x583fc0,messageTypes[_0x37e4f2(0x1ee)],_0x572f07['Qqsjb'],_0x37e4f2(0x20f)+global_registry['cloudProvider'],_0x572f07[_0x37e4f2(0x1f6)]);continue;case'2':logger[_0x37e4f2(0x2a2)](_0x583fc0);continue;case'3':_0x583fc0+='\x0a'+JSON[_0x37e4f2(0x251)](_0x530ca0[_0x37e4f2(0x27f)]);continue;case'4':_0x583fc0='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x37e4f2(0x285)]+_0x37e4f2(0x2b2)+global_registry['clusterRegion']+_0x37e4f2(0x284)+_0x530ca0;continue;}break;}}_0x249da4&&logger[_0x37e4f2(0x1c4)](_0x37e4f2(0x278)+global_registry[_0x37e4f2(0x285)]+_0x37e4f2(0x1ca));const _0x25d8df=await _0x402cf4[_0x37e4f2(0x20a)]();_0x572f07[_0x37e4f2(0x2bb)](printResponse,_0x572f07['JOXBr'],_0x25d8df);const _0x2869c3=await _0x572f07[_0x37e4f2(0x2a7)](curlRequest);_0x572f07[_0x37e4f2(0x266)](printResponse,_0x572f07[_0x37e4f2(0x204)],_0x2869c3);const _0x456cab=await _0x572f07[_0x37e4f2(0x238)](isTlsSupported,_0x572f07[_0x37e4f2(0x222)]);_0x572f07[_0x37e4f2(0x21d)](printResponse,_0x572f07[_0x37e4f2(0x226)],_0x456cab);const _0x323bbb={};_0x323bbb['header']=_0x572f07['tbIpd'],_0x323bbb['response']=_0x2f62fe;const _0x29a2b0={};_0x29a2b0[_0x37e4f2(0x290)]=_0x572f07[_0x37e4f2(0x26d)],_0x29a2b0[_0x37e4f2(0x2aa)]=_0x25d8df;const _0x957c41={};_0x957c41[_0x37e4f2(0x290)]=_0x572f07[_0x37e4f2(0x1d8)],_0x957c41[_0x37e4f2(0x2aa)]=_0x2869c3;const _0x57f1d3={};_0x57f1d3[_0x37e4f2(0x290)]=_0x572f07[_0x37e4f2(0x22b)],_0x57f1d3['response']=_0x456cab;const _0xb3c938=[_0x323bbb,_0x29a2b0,_0x957c41,_0x57f1d3],_0x59be2b=await _0x572f07[_0x37e4f2(0x261)](generateReport,_0xb3c938,_0x249da4),_0x5e0f0b=new Date(),_0x498755=_0x5e0f0b['getUTCFullYear']()+'_'+_0x572f07[_0x37e4f2(0x253)](_0x5e0f0b['getUTCMonth'](),0x1)+'_'+_0x5e0f0b[_0x37e4f2(0x25a)]()+'_'+_0x5e0f0b[_0x37e4f2(0x207)]()+'_'+_0x5e0f0b[_0x37e4f2(0x28e)](),_0x159882='log/report_'+_0x498755+_0x37e4f2(0x2ac);fs['writeFileSync'](_0x159882,_0x59be2b,_0x572f07[_0x37e4f2(0x1cb)]),logger[_0x37e4f2(0x1c4)](_0x37e4f2(0x230)+_0x159882),process[_0x37e4f2(0x26a)](0x0);}catch(_0x3bd4c5){let _0x500cc6=_0x37e4f2(0x28c)+_0x3bd4c5+'\x20';logger['error'](_0x500cc6),_0x500cc6+='\x0a'+JSON[_0x37e4f2(0x251)](_0x3bd4c5[_0x37e4f2(0x27f)]),logger[_0x37e4f2(0x263)](_0x37e4f2(0x2a0)+_0x3bd4c5[_0x37e4f2(0x27f)]);if(_0x5ede1a){const _0x450bb4={};_0x450bb4['type']=WS_EVENTS[_0x37e4f2(0x1e8)],_0x450bb4['message']=_0x500cc6,webSocketUtils[_0x37e4f2(0x29b)](_0x5ede1a,_0x450bb4,_0x572f07['oGCsw'],!![]);}await webSocketUtils[_0x37e4f2(0x1f8)](0x7d0);const _0x30c30f={};_0x30c30f[_0x37e4f2(0x2a2)]=_0x500cc6,await _0x572f07[_0x37e4f2(0x233)](sendInstrumentationEvent,_0x46be0f,_0x572f07[_0x37e4f2(0x291)],messageTypes[_0x37e4f2(0x1ee)],_0x572f07[_0x37e4f2(0x23a)],_0x30c30f,_0x46be0f),process['exit'](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
+ function a18_0x8d09(_0x4ea1ef,_0x25a317){const _0x20eb12=a18_0x20eb();return a18_0x8d09=function(_0x8d09fd,_0x368442){_0x8d09fd=_0x8d09fd-0x137;let _0xa3446e=_0x20eb12[_0x8d09fd];return _0xa3446e;},a18_0x8d09(_0x4ea1ef,_0x25a317);}const a18_0x2855ab=a18_0x8d09;(function(_0x487ab5,_0x2ed708){const _0x417d08=a18_0x8d09,_0x12a96b=_0x487ab5();while(!![]){try{const _0x2fb43d=parseInt(_0x417d08(0x14e))/0x1*(parseInt(_0x417d08(0x143))/0x2)+-parseInt(_0x417d08(0x139))/0x3*(-parseInt(_0x417d08(0x13b))/0x4)+-parseInt(_0x417d08(0x13c))/0x5+parseInt(_0x417d08(0x146))/0x6+-parseInt(_0x417d08(0x149))/0x7+-parseInt(_0x417d08(0x140))/0x8+parseInt(_0x417d08(0x14c))/0x9;if(_0x2fb43d===_0x2ed708)break;else _0x12a96b['push'](_0x12a96b['shift']());}catch(_0x180def){_0x12a96b['push'](_0x12a96b['shift']());}}}(a18_0x20eb,0x373dc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2855ab(0x13e));function a18_0x20eb(){const _0x19ca9d=['start','2550408koPEPC','Start\x20an\x20existing\x20Automation\x20grid.','handler','1496UmsBiN','demandCommand','usage','2234232MkSOjD','command','builder','1737981SiVSSe','sephW','help','5509998QXYcSQ','epilogue','137KKcrpb','strict','start_commands','commandDir','156eQWHxC','recommendCommands','9256kLDCiA','2070230xngsCX','CiIPL','../config/constants'];a18_0x20eb=function(){return _0x19ca9d;};return a18_0x20eb();}exports[a18_0x2855ab(0x147)]=a18_0x2855ab(0x13f),exports['desc']=a18_0x2855ab(0x141),exports[a18_0x2855ab(0x148)]=function(_0x1567a8){const _0x5a48a8=a18_0x2855ab,_0x382a01={};_0x382a01[_0x5a48a8(0x13d)]=_0x5a48a8(0x137),_0x382a01[_0x5a48a8(0x14a)]=_0x5a48a8(0x14b);const _0x5e7ba0=_0x382a01;return _0x1567a8[_0x5a48a8(0x145)](HELP_HEADER_MESSAGE[_0x5a48a8(0x13f)])[_0x5a48a8(0x14d)](HELP_FOOTER_MESSAGE)[_0x5a48a8(0x138)](_0x5e7ba0[_0x5a48a8(0x13d)])[_0x5a48a8(0x144)]()[_0x5a48a8(0x13a)]()[_0x5a48a8(0x14f)]()['help'](_0x5e7ba0['sephW']);},exports[a18_0x2855ab(0x142)]=function(_0x203c4a){};
@@ -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
+ function a19_0x29f7(){const _0x125eee=['133QxFTyk','region','SPPLd','info','ERROR','addListeners','347994OAHdIx','40SVRowt','77152YvJwfk','tNLzI','skip-tls-cert-verify','server-error','NkkKC','pQgNV','cVFms','HfHwK','../../config/constants','../../utils/webSocketUtils','nTniS','<UsernamePlaceholder>','grid','../../utils/gridComponents','AVnJh','<PasswordPlaceholder>','../../utils/createk8sClient','name','WMLyw','WjuJQ','reconnecting-websocket','stringify','skipTlsCertVerify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','readFileSync','gridId','vqrVu','user','description','clusterRegion','Start\x20an\x20existing\x20Automation\x20grid.','help','Browserstack','64315qrHDHN','63576wosMsH','BaeHm','../../utils/instrumentationUtils','llnWq','handler','replace','bstackAccesskey','error','epilogue','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Grid\x20started','../../config/logger','691911BMyIby','debug','NczcP','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','yDgxS','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','40vuGxAQ','init-not-called','password','bstackUsername','Starting\x20grid\x20','65980nCVGqd','../../cloudproviders/utils','type','tGcBD','default','clusterName','body','INFO','message','IcOIL','../../utils/utilityMethods','string','166590mApYVS','495pRkhIy','username','WebSocket','EfdUJ','command','boolean','statusCode','tQuhj','Skip\x20insecure\x20cert\x20verification.','CVUQr','start','desc','exit','oTSee','cloudProvider','usage','parse','grid-id','argv'];a19_0x29f7=function(){return _0x125eee;};return a19_0x29f7();}function a19_0x40e3(_0x30c4eb,_0x47c471){const _0x29f790=a19_0x29f7();return a19_0x40e3=function(_0x40e3eb,_0x4a4330){_0x40e3eb=_0x40e3eb-0x1f2;let _0x3a04da=_0x29f790[_0x40e3eb];return _0x3a04da;},a19_0x40e3(_0x30c4eb,_0x47c471);}const a19_0x2c5853=a19_0x40e3;(function(_0xfb7631,_0x48426e){const _0x44d56b=a19_0x40e3,_0x3756f9=_0xfb7631();while(!![]){try{const _0x3b8139=parseInt(_0x44d56b(0x222))/0x1+parseInt(_0x44d56b(0x220))/0x2+-parseInt(_0x44d56b(0x251))/0x3+-parseInt(_0x44d56b(0x221))/0x4*(-parseInt(_0x44d56b(0x243))/0x5)+-parseInt(_0x44d56b(0x244))/0x6*(-parseInt(_0x44d56b(0x21a))/0x7)+parseInt(_0x44d56b(0x1f5))/0x8*(parseInt(_0x44d56b(0x206))/0x9)+-parseInt(_0x44d56b(0x1fa))/0xa*(parseInt(_0x44d56b(0x207))/0xb);if(_0x3b8139===_0x48426e)break;else _0x3756f9['push'](_0x3756f9['shift']());}catch(_0x1dd1a9){_0x3756f9['push'](_0x3756f9['shift']());}}}(a19_0x29f7,0x23aba));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2c5853(0x236)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2c5853(0x22a)),{logger}=require(a19_0x2c5853(0x250)),{getCredentialsPath,getGridDetails}=require(a19_0x2c5853(0x204)),{scaleUpHubDeployment}=require(a19_0x2c5853(0x22f)),{sendInstrumentationEvent}=require(a19_0x2c5853(0x246)),webSocketUtils=require(a19_0x2c5853(0x22b)),{createK8sClient}=require(a19_0x2c5853(0x232)),{getCloudProviderObject}=require(a19_0x2c5853(0x1fb));exports[a19_0x2c5853(0x20b)]=a19_0x2c5853(0x22e),exports[a19_0x2c5853(0x212)]=a19_0x2c5853(0x240),exports['builder']=function(_0x4043c2){const _0x3573be=a19_0x2c5853,_0x26cc31={};_0x26cc31['qlhqr']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x26cc31[_0x3573be(0x247)]=_0x3573be(0x205),_0x26cc31[_0x3573be(0x226)]=_0x3573be(0x20f),_0x26cc31[_0x3573be(0x1f3)]=_0x3573be(0x20c),_0x26cc31[_0x3573be(0x245)]='help';const _0x1f0b43=_0x26cc31,_0x2dadf2={};_0x2dadf2[_0x3573be(0x23e)]=_0x1f0b43['qlhqr'],_0x2dadf2[_0x3573be(0x1fc)]=_0x1f0b43[_0x3573be(0x247)];const _0x4629f3={};_0x4629f3[_0x3573be(0x23e)]=_0x1f0b43[_0x3573be(0x226)],_0x4629f3[_0x3573be(0x1fc)]=_0x1f0b43[_0x3573be(0x1f3)],_0x4629f3[_0x3573be(0x1fe)]=![];const _0xbc0daa={};return _0xbc0daa[_0x3573be(0x218)]=_0x2dadf2,_0xbc0daa[_0x3573be(0x224)]=_0x4629f3,_0x4043c2[_0x3573be(0x216)](HELP_HEADER_MESSAGE[_0x3573be(0x211)])[_0x3573be(0x24c)](HELP_FOOTER_MESSAGE)['options'](_0xbc0daa)[_0x3573be(0x241)](_0x1f0b43[_0x3573be(0x245)])[_0x3573be(0x219)];},exports[a19_0x2c5853(0x248)]=async function(_0x26ed3b){const _0x3ce66f=a19_0x2c5853,_0x2a273c={'NWqVw':_0x3ce66f(0x1f4),'xKxbt':function(_0xe24d23){return _0xe24d23();},'AVnJh':_0x3ce66f(0x239),'HfHwK':function(_0x48415f,_0x2a7c38,_0x13dbf7,_0x1faa3b,_0x3c8f1e,_0x97d61b,_0xb40c44){return _0x48415f(_0x2a7c38,_0x13dbf7,_0x1faa3b,_0x3c8f1e,_0x97d61b,_0xb40c44);},'NczcP':'start-grid-called','EfdUJ':_0x3ce66f(0x1f6),'SPPLd':function(_0x39fbbd,_0x5e0800,_0x183fdf,_0x5207c6,_0x345bc1,_0xed9a45,_0x285cbc){return _0x39fbbd(_0x5e0800,_0x183fdf,_0x5207c6,_0x345bc1,_0xed9a45,_0x285cbc);},'DBzbo':function(_0x30c4a4){return _0x30c4a4();},'pQgNV':_0x3ce66f(0x22d),'tGcBD':_0x3ce66f(0x231),'nTniS':'Adding\x20Websocket\x20listeners','oTSee':function(_0x14d38a,_0x9d582a,_0x51d734,_0x36770f){return _0x14d38a(_0x9d582a,_0x51d734,_0x36770f);},'WOuIx':function(_0x1f6119,_0x24dc32,_0x1846c4,_0x4cd04b,_0x3109ff,_0x41bcc6,_0x58a383){return _0x1f6119(_0x24dc32,_0x1846c4,_0x4cd04b,_0x3109ff,_0x41bcc6,_0x58a383);},'IcOIL':function(_0x153bcc,_0x278c5c,_0x23c0e4){return _0x153bcc(_0x278c5c,_0x23c0e4);},'kyCIF':_0x3ce66f(0x24f),'tQuhj':function(_0x4fccfa,_0xf55a2f){return _0x4fccfa===_0xf55a2f;},'tNLzI':_0x3ce66f(0x24e),'WjuJQ':function(_0x3a0de4,_0x20bcc3,_0x2b6d68,_0x4f2583,_0x41809c,_0xfdc485,_0x4c9ceb){return _0x3a0de4(_0x20bcc3,_0x2b6d68,_0x4f2583,_0x41809c,_0xfdc485,_0x4c9ceb);},'vqrVu':'unauthorised','CVUQr':function(_0x1dc509,_0x16120d,_0x38b3c2,_0x102b83,_0x17f8aa,_0x16d3be,_0x344ee5){return _0x1dc509(_0x16120d,_0x38b3c2,_0x102b83,_0x17f8aa,_0x16d3be,_0x344ee5);},'cVFms':'invalid-grid-id','WMLyw':function(_0x5043d2,_0x3ca9fc,_0x5807aa,_0x184c47,_0x2185e1,_0x4ccaa4,_0x2d3817){return _0x5043d2(_0x3ca9fc,_0x5807aa,_0x184c47,_0x2185e1,_0x4ccaa4,_0x2d3817);},'ARHBQ':_0x3ce66f(0x225)};let _0x370a44;try{!_0x26ed3b[_0x3ce66f(0x23b)]&&(logger[_0x3ce66f(0x24b)](_0x2a273c['NWqVw']),process[_0x3ce66f(0x213)](0x1));!fs['existsSync'](_0x2a273c['xKxbt'](getCredentialsPath))&&(logger[_0x3ce66f(0x24b)](_0x2a273c[_0x3ce66f(0x230)]),await _0x2a273c[_0x3ce66f(0x229)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c['NczcP'],messageTypes['ERROR'],_0x2a273c[_0x3ce66f(0x20a)],null,_0x26ed3b),process[_0x3ce66f(0x213)](0x1));logger[_0x3ce66f(0x21d)](_0x3ce66f(0x1f9)+_0x26ed3b['gridId']),await _0x2a273c[_0x3ce66f(0x21c)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c[_0x3ce66f(0x253)],messageTypes[_0x3ce66f(0x201)],null,null,_0x26ed3b);const _0x4fac52=JSON[_0x3ce66f(0x217)](fs[_0x3ce66f(0x23a)](_0x2a273c['DBzbo'](getCredentialsPath)));global_registry[_0x3ce66f(0x1f8)]=_0x4fac52['Browserstack'][_0x3ce66f(0x208)],global_registry[_0x3ce66f(0x24a)]=_0x4fac52[_0x3ce66f(0x242)][_0x3ce66f(0x1f7)];const _0x6051c7=WS_ENDPOINT[_0x3ce66f(0x249)](_0x2a273c[_0x3ce66f(0x227)],_0x4fac52[_0x3ce66f(0x242)]['username'])[_0x3ce66f(0x249)](_0x2a273c[_0x3ce66f(0x1fd)],_0x4fac52[_0x3ce66f(0x242)][_0x3ce66f(0x1f7)]),_0x3249b9={};_0x3249b9[_0x3ce66f(0x209)]=ws,_0x3249b9['connectionTimeout']=0x36ee80,_0x370a44=new ReconnectingWebSocket(_0x6051c7,[],_0x3249b9),logger[_0x3ce66f(0x252)](_0x2a273c[_0x3ce66f(0x22c)]),webSocketUtils[_0x3ce66f(0x21f)](_0x370a44,_0x26ed3b[_0x3ce66f(0x23d)],_0x26ed3b['password']);const [_0x29c082,_0x3ffa1a]=await _0x2a273c[_0x3ce66f(0x214)](getGridDetails,_0x4fac52[_0x3ce66f(0x242)][_0x3ce66f(0x208)],_0x4fac52[_0x3ce66f(0x242)][_0x3ce66f(0x1f7)],_0x26ed3b[_0x3ce66f(0x23b)]);if(_0x3ffa1a){const _0x3ecf2f=_0x3ffa1a[_0x3ce66f(0x21d)];global_registry[_0x3ce66f(0x215)]=_0x3ecf2f[_0x3ce66f(0x215)],global_registry[_0x3ce66f(0x23f)]=_0x3ecf2f[_0x3ce66f(0x21b)],global_registry[_0x3ce66f(0x1ff)]=_0x3ecf2f[_0x3ce66f(0x1ff)];const _0x5b6c76=await _0x2a273c['WOuIx'](getCloudProviderObject,_0x3ecf2f[_0x3ce66f(0x215)],_0x3ecf2f[_0x3ce66f(0x1ff)],_0x3ecf2f[_0x3ce66f(0x233)],_0x370a44,webSocketUtils,_0x26ed3b),[_0xfb8480,_0x22a5fe,_0x3d9cab,_0x935723,_0x44b798,_0x3f4c81]=await _0x2a273c[_0x3ce66f(0x203)](createK8sClient,_0x5b6c76,_0x26ed3b[_0x3ce66f(0x238)]);await _0x2a273c[_0x3ce66f(0x203)](scaleUpHubDeployment,_0x22a5fe,_0x3ecf2f[_0x3ce66f(0x233)]),logger[_0x3ce66f(0x21d)](_0x2a273c['kyCIF']),process['exit'](0x0);}_0x2a273c['tQuhj'](_0x29c082[_0x3ce66f(0x20d)],0x191)&&(logger[_0x3ce66f(0x24b)](_0x2a273c[_0x3ce66f(0x223)]),await _0x2a273c[_0x3ce66f(0x235)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c['NczcP'],messageTypes[_0x3ce66f(0x21e)],_0x2a273c[_0x3ce66f(0x23c)],null,_0x26ed3b),process[_0x3ce66f(0x213)](0x1)),_0x2a273c[_0x3ce66f(0x20e)](_0x29c082[_0x3ce66f(0x20d)],0x190)&&(logger[_0x3ce66f(0x24b)](JSON[_0x3ce66f(0x217)](_0x29c082[_0x3ce66f(0x200)])[_0x3ce66f(0x202)]),await _0x2a273c[_0x3ce66f(0x210)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c[_0x3ce66f(0x253)],messageTypes[_0x3ce66f(0x21e)],_0x2a273c[_0x3ce66f(0x228)],null,_0x26ed3b),process[_0x3ce66f(0x213)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3ce66f(0x237)](_0x29c082)),await _0x2a273c[_0x3ce66f(0x234)](sendInstrumentationEvent,_0x26ed3b,_0x2a273c[_0x3ce66f(0x253)],messageTypes['ERROR'],_0x2a273c['ARHBQ'],_0x29c082,_0x26ed3b),process[_0x3ce66f(0x213)](0x1);}catch(_0x4a501d){const _0x48e25b=_0x3ce66f(0x1f2)+_0x4a501d+'\x20\x0a'+JSON[_0x3ce66f(0x237)](_0x4a501d[_0x3ce66f(0x24d)])+'\x20';logger[_0x3ce66f(0x24b)](_0x48e25b),process[_0x3ce66f(0x213)](0x1);}};
@@ -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_0x58eba8=a20_0x4083;(function(_0x4a7870,_0x5ab7b0){const _0x2886b3=a20_0x4083,_0x23ea86=_0x4a7870();while(!![]){try{const _0x595707=-parseInt(_0x2886b3(0x88))/0x1+parseInt(_0x2886b3(0x83))/0x2+-parseInt(_0x2886b3(0x76))/0x3+-parseInt(_0x2886b3(0x81))/0x4+parseInt(_0x2886b3(0x86))/0x5*(parseInt(_0x2886b3(0x75))/0x6)+-parseInt(_0x2886b3(0x7d))/0x7+-parseInt(_0x2886b3(0x84))/0x8*(-parseInt(_0x2886b3(0x73))/0x9);if(_0x595707===_0x5ab7b0)break;else _0x23ea86['push'](_0x23ea86['shift']());}catch(_0x45e8af){_0x23ea86['push'](_0x23ea86['shift']());}}}(a20_0x1ae7,0xe5f37));function a20_0x4083(_0x2797dd,_0x53c49b){const _0x1ae7c0=a20_0x1ae7();return a20_0x4083=function(_0x408364,_0xf823a5){_0x408364=_0x408364-0x73;let _0x2109d9=_0x1ae7c0[_0x408364];return _0x2109d9;},a20_0x4083(_0x2797dd,_0x53c49b);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x58eba8(0x78));exports[a20_0x58eba8(0x7e)]=a20_0x58eba8(0x7a),exports[a20_0x58eba8(0x85)]=a20_0x58eba8(0x7f),exports[a20_0x58eba8(0x89)]=function(_0x3cea9f){const _0x498de0=a20_0x58eba8,_0x1b95bd={};_0x1b95bd[_0x498de0(0x79)]=_0x498de0(0x80),_0x1b95bd[_0x498de0(0x7c)]=_0x498de0(0x82);const _0x3e2401=_0x1b95bd;return _0x3cea9f[_0x498de0(0x77)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x498de0(0x7b)](_0x3e2401[_0x498de0(0x79)])[_0x498de0(0x8b)]()[_0x498de0(0x87)]()[_0x498de0(0x8a)]()[_0x498de0(0x82)](_0x3e2401[_0x498de0(0x7c)]);},exports[a20_0x58eba8(0x74)]=function(_0xa9e9ee){};function a20_0x1ae7(){const _0x5c13e5=['command','Stop\x20a\x20running\x20Automation\x20grid.','stop_commands','1759164buxwzB','help','666080oKJcte','243968DmOHms','desc','15HPTvuU','recommendCommands','1063868sIHagw','builder','strict','demandCommand','1179UmleQs','handler','442776YrRbiP','3259269dBYhoS','usage','../config/constants','XONKa','stop','commandDir','ycUwS','7122101lUMtoh'];a20_0x1ae7=function(){return _0x5c13e5;};return a20_0x1ae7();}
@@ -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_0x3a6df5=a21_0x73f3;(function(_0x4332cd,_0x176f5b){const _0x3419e1=a21_0x73f3,_0x45afc3=_0x4332cd();while(!![]){try{const _0xdae635=parseInt(_0x3419e1(0x18e))/0x1*(-parseInt(_0x3419e1(0x1d5))/0x2)+-parseInt(_0x3419e1(0x1c3))/0x3*(-parseInt(_0x3419e1(0x185))/0x4)+-parseInt(_0x3419e1(0x19f))/0x5*(-parseInt(_0x3419e1(0x187))/0x6)+-parseInt(_0x3419e1(0x193))/0x7*(parseInt(_0x3419e1(0x1d2))/0x8)+parseInt(_0x3419e1(0x1ac))/0x9*(-parseInt(_0x3419e1(0x195))/0xa)+parseInt(_0x3419e1(0x1cf))/0xb+parseInt(_0x3419e1(0x1c8))/0xc;if(_0xdae635===_0x176f5b)break;else _0x45afc3['push'](_0x45afc3['shift']());}catch(_0x1a1fd7){_0x45afc3['push'](_0x45afc3['shift']());}}}(a21_0x1fa1,0xbcf93));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3a6df5(0x19d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3a6df5(0x1ba)),{logger}=require(a21_0x3a6df5(0x188)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x3a6df5(0x1b0)),webSocketUtils=require(a21_0x3a6df5(0x19a)),{createK8sClient}=require(a21_0x3a6df5(0x180)),{getCloudProviderObject}=require(a21_0x3a6df5(0x1a7));function a21_0x73f3(_0x23da9d,_0x5db444){const _0x1fa1fb=a21_0x1fa1();return a21_0x73f3=function(_0x73f3b5,_0x23a82c){_0x73f3b5=_0x73f3b5-0x177;let _0xa67b31=_0x1fa1fb[_0x73f3b5];return _0xa67b31;},a21_0x73f3(_0x23da9d,_0x5db444);}function a21_0x1fa1(){const _0x3a02b3=['debug','../../utils/instrumentationUtils','grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Browserstack','usage','stop-grid-called','help','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','password','gridId','../../config/constants','Stop\x20a\x20running\x20Automation\x20grid.','TdHGZ','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','WebSocket','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','skipTlsCertVerify','igEJK','3Khimsb','command','xqSxa','Stopping\x20grid\x20','unauthorised','7047684naAasJ','cloudProvider','xUqYE','grid','info','exit','handler','4448081BohdPL','OysMN','default','8DvgMXG','AoQSN','xWeVK','298jhiaAH','mgOlc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','KHyNU','<UsernamePlaceholder>','init-not-called','name','invalid-grid-id','desc','kSbPL','builder','AUilB','stack','XWZqX','../../utils/createk8sClient','statusCode','voKDX','stringify','boolean','3699416ugsHlA','region','2579046mNvESP','../../config/logger','description','ERROR','username','message','Adding\x20Websocket\x20listeners','7951LKiHKw','XiBWS','replace','<PasswordPlaceholder>','options','280294ZBhUzR','stop','3887190ZTutxd','server-error','Kclid','clusterRegion','clusterName','../../utils/webSocketUtils','xNlSq','argv','reconnecting-websocket','cCELN','10NyLXuP','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','epilogue','lnvGX','error','readFileSync','skip-tls-cert-verify','../../cloudproviders/utils','MnikC','VHgeK','existsSync','Skip\x20insecure\x20cert\x20verification.','18jOzTwS','iOnWl','type'];a21_0x1fa1=function(){return _0x3a02b3;};return a21_0x1fa1();}exports[a21_0x3a6df5(0x1c4)]=a21_0x3a6df5(0x1cb),exports[a21_0x3a6df5(0x17a)]=a21_0x3a6df5(0x1bb),exports[a21_0x3a6df5(0x17c)]=function(_0x4b1699){const _0x40495d=a21_0x3a6df5,_0x5be221={};_0x5be221[_0x40495d(0x1a3)]=_0x40495d(0x1c0),_0x5be221[_0x40495d(0x1d3)]='string',_0x5be221[_0x40495d(0x1a9)]=_0x40495d(0x1ab),_0x5be221[_0x40495d(0x19b)]=_0x40495d(0x184),_0x5be221[_0x40495d(0x17b)]=_0x40495d(0x1b6);const _0x3a2291=_0x5be221,_0xe1b754={};_0xe1b754[_0x40495d(0x189)]=_0x3a2291['lnvGX'],_0xe1b754[_0x40495d(0x1ae)]=_0x3a2291['AoQSN'];const _0x22d124={};_0x22d124['description']=_0x3a2291[_0x40495d(0x1a9)],_0x22d124[_0x40495d(0x1ae)]=_0x3a2291[_0x40495d(0x19b)],_0x22d124[_0x40495d(0x1d1)]=![];const _0x269a3e={};return _0x269a3e[_0x40495d(0x1b1)]=_0xe1b754,_0x269a3e[_0x40495d(0x1a6)]=_0x22d124,_0x4b1699[_0x40495d(0x1b4)](HELP_HEADER_MESSAGE[_0x40495d(0x194)])[_0x40495d(0x1a2)](HELP_FOOTER_MESSAGE)[_0x40495d(0x192)](_0x269a3e)[_0x40495d(0x1b6)](_0x3a2291[_0x40495d(0x17b)])[_0x40495d(0x19c)];},exports[a21_0x3a6df5(0x1ce)]=async function(_0x30cd66){const _0x47a407=a21_0x3a6df5,_0x4eff6f={'HiDry':_0x47a407(0x1be),'cCELN':function(_0x25fcb6){return _0x25fcb6();},'xqSxa':_0x47a407(0x1b2),'OysMN':function(_0x395bbd,_0x482fce,_0x4e4aeb,_0x187c37,_0x2fa913,_0x14165e,_0x114d24){return _0x395bbd(_0x482fce,_0x4e4aeb,_0x187c37,_0x2fa913,_0x14165e,_0x114d24);},'voKDX':_0x47a407(0x1b5),'iOnWl':_0x47a407(0x177),'adePw':function(_0x487299,_0x5932ce,_0x5b4e4b,_0x508508,_0x53c5d4,_0x5133de,_0x3c51e6){return _0x487299(_0x5932ce,_0x5b4e4b,_0x508508,_0x53c5d4,_0x5133de,_0x3c51e6);},'jfBWv':function(_0x289c61){return _0x289c61();},'igEJK':_0x47a407(0x1d9),'MnikC':_0x47a407(0x191),'XWZqX':_0x47a407(0x18d),'TdHGZ':function(_0x502d31,_0x460431,_0x5cc550,_0x3a8e5c){return _0x502d31(_0x460431,_0x5cc550,_0x3a8e5c);},'XiBWS':function(_0x5329a5,_0x628081,_0x26a463,_0x19b893,_0xc280b,_0x29c0c7,_0x1eba87){return _0x5329a5(_0x628081,_0x26a463,_0x19b893,_0xc280b,_0x29c0c7,_0x1eba87);},'KHyNU':function(_0x2302f4,_0x3a70e0,_0x293b21){return _0x2302f4(_0x3a70e0,_0x293b21);},'AUilB':'Grid\x20stoppped.','Kclid':function(_0x22f0df,_0x24c22f){return _0x22f0df===_0x24c22f;},'ZPgMY':_0x47a407(0x1a1),'xUqYE':_0x47a407(0x1c7),'mgOlc':_0x47a407(0x179),'xWeVK':_0x47a407(0x196)};let _0x3e3c26;try{!_0x30cd66['gridId']&&(logger['error'](_0x4eff6f['HiDry']),process[_0x47a407(0x1cd)](0x1));!fs[_0x47a407(0x1aa)](_0x4eff6f[_0x47a407(0x19e)](getCredentialsPath))&&(logger[_0x47a407(0x1a4)](_0x4eff6f[_0x47a407(0x1c5)]),await _0x4eff6f[_0x47a407(0x1d0)](sendInstrumentationEvent,_0x30cd66,_0x4eff6f['voKDX'],messageTypes[_0x47a407(0x18a)],_0x4eff6f[_0x47a407(0x1ad)],null,_0x30cd66),process[_0x47a407(0x1cd)](0x1));logger['info'](_0x47a407(0x1c6)+_0x30cd66[_0x47a407(0x1b9)]),await _0x4eff6f['adePw'](sendInstrumentationEvent,_0x30cd66,_0x4eff6f[_0x47a407(0x182)],messageTypes['INFO'],null,null,_0x30cd66);const _0x44819d=JSON['parse'](fs[_0x47a407(0x1a5)](_0x4eff6f['jfBWv'](getCredentialsPath)));global_registry['bstackUsername']=_0x44819d[_0x47a407(0x1b3)]['username'],global_registry['bstackAccesskey']=_0x44819d[_0x47a407(0x1b3)][_0x47a407(0x1b8)];const _0x34baf0=WS_ENDPOINT[_0x47a407(0x190)](_0x4eff6f[_0x47a407(0x1c2)],_0x44819d['Browserstack'][_0x47a407(0x18b)])[_0x47a407(0x190)](_0x4eff6f[_0x47a407(0x1a8)],_0x44819d[_0x47a407(0x1b3)][_0x47a407(0x1b8)]),_0x288fa6={};_0x288fa6[_0x47a407(0x1bf)]=ws,_0x288fa6[_0x47a407(0x1bd)]=0x36ee80,_0x3e3c26=new ReconnectingWebSocket(_0x34baf0,[],_0x288fa6),logger[_0x47a407(0x1af)](_0x4eff6f[_0x47a407(0x17f)]),webSocketUtils['addListeners'](_0x3e3c26,_0x30cd66['user'],_0x30cd66[_0x47a407(0x1b8)]);const [_0x11b925,_0x580b90]=await _0x4eff6f[_0x47a407(0x1bc)](getGridDetails,_0x44819d[_0x47a407(0x1b3)][_0x47a407(0x18b)],_0x44819d[_0x47a407(0x1b3)]['password'],_0x30cd66['gridId']);if(_0x580b90){const _0x3a16a1=_0x580b90[_0x47a407(0x1cc)];global_registry[_0x47a407(0x1c9)]=_0x3a16a1[_0x47a407(0x1c9)],global_registry[_0x47a407(0x198)]=_0x3a16a1[_0x47a407(0x186)],global_registry[_0x47a407(0x199)]=_0x3a16a1[_0x47a407(0x199)];const _0x32d142=await _0x4eff6f[_0x47a407(0x18f)](getCloudProviderObject,_0x3a16a1[_0x47a407(0x1c9)],_0x3a16a1[_0x47a407(0x199)],_0x3a16a1[_0x47a407(0x178)],_0x3e3c26,webSocketUtils,_0x30cd66),[_0x3ab4bb,_0x51898a,_0x122191,_0x35cee1,_0x51686b,_0x124cbf]=await _0x4eff6f['KHyNU'](createK8sClient,_0x32d142,_0x30cd66[_0x47a407(0x1c1)]);await _0x4eff6f[_0x47a407(0x1d8)](scaleDownHubDeployment,_0x51898a,_0x3a16a1[_0x47a407(0x178)]),logger[_0x47a407(0x1cc)](_0x4eff6f[_0x47a407(0x17d)]),process['exit'](0x0);}_0x4eff6f[_0x47a407(0x197)](_0x11b925[_0x47a407(0x181)],0x191)&&(logger['error'](_0x4eff6f['ZPgMY']),await _0x4eff6f['XiBWS'](sendInstrumentationEvent,_0x30cd66,_0x4eff6f['voKDX'],messageTypes[_0x47a407(0x18a)],_0x4eff6f[_0x47a407(0x1ca)],null,_0x30cd66),process[_0x47a407(0x1cd)](0x1)),_0x4eff6f[_0x47a407(0x197)](_0x11b925[_0x47a407(0x181)],0x190)&&(logger[_0x47a407(0x1a4)](JSON[_0x47a407(0x1a0)](_0x11b925['body'])[_0x47a407(0x18c)]),await _0x4eff6f['adePw'](sendInstrumentationEvent,_0x30cd66,_0x4eff6f[_0x47a407(0x182)],messageTypes[_0x47a407(0x18a)],_0x4eff6f[_0x47a407(0x1d6)],null,_0x30cd66),process['exit'](0x1)),logger['error'](_0x47a407(0x1d7)+JSON[_0x47a407(0x183)](_0x11b925)),await _0x4eff6f['adePw'](sendInstrumentationEvent,_0x30cd66,_0x4eff6f['voKDX'],messageTypes[_0x47a407(0x18a)],_0x4eff6f[_0x47a407(0x1d4)],_0x11b925,_0x30cd66),process[_0x47a407(0x1cd)](0x1);}catch(_0x145a9e){const _0x18fef9=_0x47a407(0x1b7)+_0x145a9e+'\x20\x0a'+JSON[_0x47a407(0x183)](_0x145a9e[_0x47a407(0x17e)])+'\x20';logger['error'](_0x18fef9),process[_0x47a407(0x1cd)](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_0x2a33cd=a22_0x3e38;(function(_0x1e8e87,_0x2c34e1){const _0x1a8777=a22_0x3e38,_0x53493b=_0x1e8e87();while(!![]){try{const _0x155ff0=parseInt(_0x1a8777(0x12e))/0x1*(parseInt(_0x1a8777(0x13a))/0x2)+parseInt(_0x1a8777(0x11b))/0x3+-parseInt(_0x1a8777(0xff))/0x4+parseInt(_0x1a8777(0x104))/0x5*(-parseInt(_0x1a8777(0x11e))/0x6)+-parseInt(_0x1a8777(0x126))/0x7+parseInt(_0x1a8777(0xfd))/0x8+parseInt(_0x1a8777(0x142))/0x9;if(_0x155ff0===_0x2c34e1)break;else _0x53493b['push'](_0x53493b['shift']());}catch(_0x859be6){_0x53493b['push'](_0x53493b['shift']());}}}(a22_0x41ed,0xf2961),require(a22_0x2a33cd(0xfa))['config']());let gridURL='grid.browserstack.com',bsApiUrl=a22_0x2a33cd(0x14c),agApiUrl=a22_0x2a33cd(0x138);const _env=(process[a22_0x2a33cd(0x13d)][a22_0x2a33cd(0x107)]||'prod')[a22_0x2a33cd(0x14e)]();if(_env===a22_0x2a33cd(0xe8)||_env===a22_0x2a33cd(0x109))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x2a33cd(0xfe),agApiUrl=a22_0x2a33cd(0x117);else(_env===a22_0x2a33cd(0x135)||_env==='pre-prod')&&(gridURL=a22_0x2a33cd(0x11d),bsApiUrl=a22_0x2a33cd(0x114),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x2a33cd(0x108)]=process[a22_0x2a33cd(0x13d)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x2a33cd(0xf2)]=process[a22_0x2a33cd(0x13d)][a22_0x2a33cd(0xf2)]||bsApiUrl,exports[a22_0x2a33cd(0xf5)]=process[a22_0x2a33cd(0x13d)][a22_0x2a33cd(0xf5)]||agApiUrl,exports[a22_0x2a33cd(0xed)]=a22_0x2a33cd(0x14a)+this[a22_0x2a33cd(0xf5)]+a22_0x2a33cd(0x112),exports[a22_0x2a33cd(0x111)]=a22_0x2a33cd(0x129),exports[a22_0x2a33cd(0x121)]=a22_0x2a33cd(0x13e),exports['DEFAULT_GRID_NAME']=a22_0x2a33cd(0x105),exports[a22_0x2a33cd(0x140)]=a22_0x2a33cd(0x125),exports[a22_0x2a33cd(0xfc)]=a22_0x2a33cd(0x14d),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x2a33cd(0x11c),exports[a22_0x2a33cd(0xe5)]=a22_0x2a33cd(0x102),exports[a22_0x2a33cd(0xe3)]=a22_0x2a33cd(0xee),exports[a22_0x2a33cd(0xec)]=a22_0x2a33cd(0x133),exports[a22_0x2a33cd(0xfb)]=a22_0x2a33cd(0x10f),exports[a22_0x2a33cd(0x12a)]=[this[a22_0x2a33cd(0x140)],this[a22_0x2a33cd(0xec)],this[a22_0x2a33cd(0xfb)]];const a22_0xb124c8={};a22_0xb124c8[a22_0x2a33cd(0x144)]=a22_0x2a33cd(0xf7),a22_0xb124c8['Value']=a22_0x2a33cd(0x149);const a22_0x2d2355={};a22_0x2d2355[a22_0x2a33cd(0x144)]=a22_0x2a33cd(0xe7),a22_0x2d2355[a22_0x2a33cd(0x137)]=a22_0x2a33cd(0x115);const common_hst_tags_list=[a22_0xb124c8,a22_0x2d2355];if(process['env'][a22_0x2a33cd(0x127)]){const parsedTags=process[a22_0x2a33cd(0x13d)][a22_0x2a33cd(0x127)][a22_0x2a33cd(0x12f)](',');parsedTags[a22_0x2a33cd(0x146)](_0x5abc3f=>{const _0x1811f7=a22_0x2a33cd,_0x3c3bce=_0x5abc3f['split'](':'),_0x16120b={};_0x16120b[_0x1811f7(0x144)]=_0x3c3bce[0x0],_0x16120b['Value']=_0x3c3bce[0x1],common_hst_tags_list[_0x1811f7(0x10a)](_0x16120b);});}exports[a22_0x2a33cd(0xf9)]=common_hst_tags_list;const a22_0x37a0cf={};a22_0x37a0cf[a22_0x2a33cd(0xf7)]=a22_0x2a33cd(0x149),a22_0x37a0cf[a22_0x2a33cd(0xe7)]='BrowserStack-Automate-TurboScale',exports[a22_0x2a33cd(0x12c)]=a22_0x37a0cf,exports[a22_0x2a33cd(0x11f)]=[this[a22_0x2a33cd(0x140)]];const a22_0x125ca9={};a22_0x125ca9[a22_0x2a33cd(0x103)]=a22_0x2a33cd(0xe4),a22_0x125ca9[a22_0x2a33cd(0x148)]=a22_0x2a33cd(0x141),a22_0x125ca9['GRID_URL']='gridUrl',a22_0x125ca9['CLI_RUN_STARTED']='cliRunStarted',a22_0x125ca9['CLI_RUN_FINISHED']=a22_0x2a33cd(0x136),exports[a22_0x2a33cd(0xea)]=a22_0x125ca9,exports[a22_0x2a33cd(0x123)]={},exports[a22_0x2a33cd(0x143)]=a22_0x2a33cd(0x14b);const a22_0x1c86c7={};a22_0x1c86c7[a22_0x2a33cd(0xf8)]=a22_0x2a33cd(0x124)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7['init']=a22_0x2a33cd(0x101)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf6)]=a22_0x2a33cd(0x130)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0x12b)]=a22_0x2a33cd(0x106)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf4)]={},a22_0x1c86c7[a22_0x2a33cd(0xeb)]=a22_0x2a33cd(0x11a)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0x122)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a22_0x1c86c7[a22_0x2a33cd(0x139)]=a22_0x2a33cd(0x145)+this['LINK_MESSAGE'],a22_0x1c86c7[a22_0x2a33cd(0xf0)]=a22_0x2a33cd(0x118)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0x10d)]=a22_0x2a33cd(0x12d)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf4)][a22_0x2a33cd(0xf8)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf4)]['grid']=a22_0x2a33cd(0x134)+this[a22_0x2a33cd(0x143)],a22_0x1c86c7[a22_0x2a33cd(0xf4)][a22_0x2a33cd(0x131)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x2a33cd(0x143)],exports['HELP_HEADER_MESSAGE']=a22_0x1c86c7,exports[a22_0x2a33cd(0xef)]=a22_0x2a33cd(0xe9);const a22_0x22d69b={};function a22_0x3e38(_0x21832e,_0x316444){const _0x41ed63=a22_0x41ed();return a22_0x3e38=function(_0x3e38a8,_0x577033){_0x3e38a8=_0x3e38a8-0xe2;let _0x114f54=_0x41ed63[_0x3e38a8];return _0x114f54;},a22_0x3e38(_0x21832e,_0x316444);}a22_0x22d69b[a22_0x2a33cd(0xe2)]='success',a22_0x22d69b[a22_0x2a33cd(0x116)]=a22_0x2a33cd(0x100),a22_0x22d69b['INFO']='info',a22_0x22d69b[a22_0x2a33cd(0x13b)]=a22_0x2a33cd(0x13f),a22_0x22d69b[a22_0x2a33cd(0x147)]=a22_0x2a33cd(0x10c),a22_0x22d69b['NULL']=null,exports['messageTypes']=a22_0x22d69b,exports[a22_0x2a33cd(0xe6)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2a33cd(0x10b)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2a33cd(0x10e)]=a22_0x2a33cd(0xf1);const a22_0x514f3b={};function a22_0x41ed(){const _0x35ff1c=['IAM_USER_NAME','connect','global_registry','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','aws','13200404MDLkqC','TURBOSCALE_CUSTOM_TAGS','pre-check','credentials','ALL_SUPPORTED_CLOUD_PROVIDERS','create','HST_CLUSTER_TAGS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','99kIjYIP','split','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gridProfile','CLOUD_PROVIDER','azure','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','preprod','cliRunFinished','Value','grid-api.browserstack.com','start','7786efXjcG','WARNING','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','env','BrowserStackIAMUser','warning','AWS','resourceInfo','9358677LuHija','LINK_MESSAGE','Key','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','forEach','UNKNOWN','RESOURCES','BrowserStack','wss://','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','api.browserstack.com','BSTACK-ATS-CLUSTER','toLowerCase','SUCCESS','TURBOSCALE_DEPLOYMENT','log','CLUSTER_HUB_HA_STACK_NAME','CLI_ARGS_REGEX','browserstack:service','staging','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','WS_EVENTS','delete','AZURE','WS_ENDPOINT','browserstack-turboscale-grid','HELP_FOOTER_MESSAGE','stop','[REDACTED]','BS_API_URL','DEFAULT_CLUSTER_DETAILS','list','AG_API_URL','configure','browserstack:managedBy','root','COMMON_HST_TAGS','dotenv','GCP','CLUSTER_DEP_STACK_NAME','10747592SpJVxO','api-devhst.bsstag.com','726188wJYCye','error','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER-HUB-HA','LOG','7376755HBgkJs','high-scale-grid','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BROWSERSTACK_ENV','DASHBOARD_ENDPOINT','stag','push','RAW_ARGS_REGEX','unknown','pre_check','REDACTED','gcp','TRIAL_GRID_URL','CP_CONFIG_FILE','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','CLUSTER','api-preprod.bsstag.com','BrowserStack-Automate-TurboScale','ERROR','grid-api-devhst.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','MessageDescription','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','5302782aoRueQ','BSTACK-ATS-CLUSTER-AUTOSCALER','grid-preprod.bsstag.com','6UiPJOL','SUPPORTED_CLOUD_PROVIDERS','https://nroujxly-hub.browserstack-ats.com/wd/hub/status'];a22_0x41ed=function(){return _0x35ff1c;};return a22_0x41ed();}a22_0x514f3b['grid-profile']=a22_0x2a33cd(0x13c);const a22_0x5860cd={};a22_0x5860cd[a22_0x2a33cd(0x128)]=a22_0x514f3b,exports[a22_0x2a33cd(0x119)]=a22_0x5860cd,exports[a22_0x2a33cd(0x110)]=a22_0x2a33cd(0x120);const a22_0x464a17={};a22_0x464a17[a22_0x2a33cd(0x113)]='high-scale-grid-cluster',a22_0x464a17[a22_0x2a33cd(0x132)]=a22_0x2a33cd(0x125),a22_0x464a17['REGION']='us-east-1',exports[a22_0x2a33cd(0xf3)]=a22_0x464a17;
@@ -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_0x534a07=a23_0x3ffa;(function(_0x3d6d0a,_0x2de31d){const _0x491d7c=a23_0x3ffa,_0x60fa14=_0x3d6d0a();while(!![]){try{const _0x2f8371=parseInt(_0x491d7c(0xec))/0x1+-parseInt(_0x491d7c(0xde))/0x2*(parseInt(_0x491d7c(0xe8))/0x3)+-parseInt(_0x491d7c(0xd5))/0x4*(-parseInt(_0x491d7c(0xd4))/0x5)+parseInt(_0x491d7c(0xe2))/0x6*(parseInt(_0x491d7c(0xe9))/0x7)+parseInt(_0x491d7c(0xe0))/0x8+-parseInt(_0x491d7c(0xe1))/0x9+-parseInt(_0x491d7c(0xeb))/0xa*(parseInt(_0x491d7c(0xf1))/0xb);if(_0x2f8371===_0x2de31d)break;else _0x60fa14['push'](_0x60fa14['shift']());}catch(_0xb4bcfd){_0x60fa14['push'](_0x60fa14['shift']());}}}(a23_0x1dc1,0x1f764));const winston=require(a23_0x534a07(0xdf)),fs=require('fs'),path=require('path'),logDir=a23_0x534a07(0xdd);!fs[a23_0x534a07(0xed)](logDir)&&fs[a23_0x534a07(0xe6)](logDir);const a23_0x1a5449={};a23_0x1a5449[a23_0x534a07(0xe4)]=a23_0x534a07(0xe3);const a23_0x45d36e={};a23_0x45d36e[a23_0x534a07(0xda)]=!![];const a23_0x290fda={};function a23_0x3ffa(_0x2e93d6,_0x430c2b){const _0x1dc124=a23_0x1dc1();return a23_0x3ffa=function(_0x3ffa92,_0xb18679){_0x3ffa92=_0x3ffa92-0xd4;let _0x44aecc=_0x1dc124[_0x3ffa92];return _0x44aecc;},a23_0x3ffa(_0x2e93d6,_0x430c2b);}function a23_0x1dc1(){const _0xaeac06=['format','combine','mkdirSync','join','7143tGjBbk','537418IaazKQ','logger','30XFvBiV','199329ElhFoL','existsSync','colorize','message','console.info','289861UlNLbx','debug','Console','printf','101655EDByPA','4xSjjjH','timestamp','File','fileLogger','transports','level','name','events.log','log','130aKaOKc','winston','1295352TYCzAp','861003jVJARK','6CUmyKt','YYYY-MM-DD\x20HH:mm:ss'];a23_0x1dc1=function(){return _0xaeac06;};return a23_0x1dc1();}a23_0x290fda[a23_0x534a07(0xdb)]=a23_0x534a07(0xf0),exports[a23_0x534a07(0xea)]=new winston['createLogger']({'format':winston[a23_0x534a07(0xe4)][a23_0x534a07(0xe5)](winston[a23_0x534a07(0xe4)][a23_0x534a07(0xd6)](a23_0x1a5449),winston[a23_0x534a07(0xe4)][a23_0x534a07(0xee)](a23_0x45d36e),winston[a23_0x534a07(0xe4)][a23_0x534a07(0xf4)](_0x1a67e9=>_0x1a67e9[a23_0x534a07(0xd6)]+'\x20-\x20'+_0x1a67e9[a23_0x534a07(0xda)]+':\x20'+_0x1a67e9[a23_0x534a07(0xef)])),'transports':[new winston[(a23_0x534a07(0xd9))][(a23_0x534a07(0xf3))](a23_0x290fda),new winston[(a23_0x534a07(0xd9))]['File']({'filename':path[a23_0x534a07(0xe7)](logDir,a23_0x534a07(0xdc)),'level':a23_0x534a07(0xf2)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x534a07(0xd9))][(a23_0x534a07(0xd7))]({'filename':path[a23_0x534a07(0xe7)](logDir,'usage.log'),'level':a23_0x534a07(0xf2)})]};exports[a23_0x534a07(0xd8)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_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_0x4e523a=a24_0x382a;function a24_0x382a(_0x186f19,_0x56c0a6){const _0x23142f=a24_0x2314();return a24_0x382a=function(_0x382a41,_0x33e830){_0x382a41=_0x382a41-0xc8;let _0x1ea9d0=_0x23142f[_0x382a41];return _0x1ea9d0;},a24_0x382a(_0x186f19,_0x56c0a6);}(function(_0x534758,_0x5f2895){const _0xdb374=a24_0x382a,_0x3745c8=_0x534758();while(!![]){try{const _0x17164e=parseInt(_0xdb374(0xd6))/0x1*(parseInt(_0xdb374(0xcd))/0x2)+parseInt(_0xdb374(0xd1))/0x3*(-parseInt(_0xdb374(0xcc))/0x4)+parseInt(_0xdb374(0xcf))/0x5*(-parseInt(_0xdb374(0xda))/0x6)+parseInt(_0xdb374(0xde))/0x7*(-parseInt(_0xdb374(0xce))/0x8)+parseInt(_0xdb374(0xca))/0x9+-parseInt(_0xdb374(0xd9))/0xa+parseInt(_0xdb374(0xd5))/0xb*(parseInt(_0xdb374(0xc9))/0xc);if(_0x17164e===_0x5f2895)break;else _0x3745c8['push'](_0x3745c8['shift']());}catch(_0x312f47){_0x3745c8['push'](_0x3745c8['shift']());}}}(a24_0x2314,0x87516));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x4e523a(0xcb)][a24_0x4e523a(0xd4)]=0x1;function run(_0x5065c7){const _0x37ef01=a24_0x4e523a,_0x18a42b={};_0x18a42b[_0x37ef01(0xd0)]=_0x37ef01(0xd7),_0x18a42b[_0x37ef01(0xdd)]=_0x37ef01(0xdb);const _0x86714c=_0x18a42b;_0x5065c7[_0x37ef01(0xd2)](HELP_HEADER_MESSAGE[_0x37ef01(0xd8)])[_0x37ef01(0xdc)](_0x86714c[_0x37ef01(0xd0)])[_0x37ef01(0xc8)]()['help'](_0x86714c[_0x37ef01(0xdd)])[_0x37ef01(0xd3)](HELP_FOOTER_MESSAGE);}function a24_0x2314(){const _0x40d3a7=['12jKXCml','7018785fPNAtO','env','44JUTPny','9574tTVgRb','8468664aIEzpd','637835ZNeLOQ','FVdMv','61989hrjXHH','usage','epilogue','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','21263506SFhrtT','214vDpLvP','commands','root','8766550qenrse','48ttPJZr','help','commandDir','CuXnL','7IRZdmn','demandCommand'];a24_0x2314=function(){return _0x40d3a7;};return a24_0x2314();}module['exports']=run;