browserstack-node-sdk 1.50.4 → 1.50.6

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 (186) 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 +2 -2
  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/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x16de10=a15_0x745e;function a15_0x2cce(){const _0x5350bb=['clusterName','queued','argv','grid','wwCZS','/packages/cli/get-all-grids','wsBGH','INFO','XmFKH','4205005TWuQDo','mVhrd','grids','help','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','XkZRH','gcSBR','vgCCb','WADDH','allGrids','2424mrtSHI','tOdpA','nXcHk','DDZSx','33318aZLTVF','bstackUsername','HDWXh','bstackAccesskey','\x0aFound\x20the\x20following\x20grids:\x0a','options','parse','REdVD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','usage','push','1686190eMWtCW','UjmwI','zsZLj','Failed\x20to\x20list\x20resources!\x20Error:\x20','699846OGmChz','body','JJJqe','running','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','/packages/cli/get-grids','log','epilogue','password','wRfWC','name','init-not-called','table','description','type','forEach','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','xfMia','statusCode','status','ERROR','../../config/constants','kwaNS','username','Browserstack','got','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','1458VVZBYD','2830984TJpazg','xUwst','stack','../../utils/instrumentationUtils','RYpzb','list-grids-called','ReSHP','../../utils/utilityMethods','server-error','GET','exit','error','2661352PqFybO','handler','list','HmUMZ','grid-id','all-grids','https://'];a15_0x2cce=function(){return _0x5350bb;};return a15_0x2cce();}(function(_0x3fd26e,_0x30179a){const _0x39d146=a15_0x745e,_0x8d3b89=_0x3fd26e();while(!![]){try{const _0x538497=-parseInt(_0x39d146(0x1bb))/0x1+-parseInt(_0x39d146(0x1a8))/0x2*(-parseInt(_0x39d146(0x181))/0x3)+-parseInt(_0x39d146(0x182))/0x4+parseInt(_0x39d146(0x1b7))/0x5+-parseInt(_0x39d146(0x1ac))/0x6+parseInt(_0x39d146(0x19e))/0x7+parseInt(_0x39d146(0x18e))/0x8;if(_0x538497===_0x30179a)break;else _0x8d3b89['push'](_0x8d3b89['shift']());}catch(_0x466946){_0x8d3b89['push'](_0x8d3b89['shift']());}}}(a15_0x2cce,0x6d02d));function a15_0x745e(_0x3645e4,_0x4e26a3){const _0x2ccef6=a15_0x2cce();return a15_0x745e=function(_0x745e81,_0x3d776d){_0x745e81=_0x745e81-0x170;let _0x3ec6f6=_0x2ccef6[_0x745e81];return _0x3ec6f6;},a15_0x745e(_0x3645e4,_0x4e26a3);}const fs=require('fs'),got=require(a15_0x16de10(0x17f)),{table}=require(a15_0x16de10(0x171)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x16de10(0x17b)),{getCredentialsPath,getAuthHeader}=require(a15_0x16de10(0x189)),{sendInstrumentationEvent}=require(a15_0x16de10(0x185));exports['command']=a15_0x16de10(0x1a0),exports['desc']=a15_0x16de10(0x1a2),exports['builder']=function(_0x19d60a){const _0x3998c2=a15_0x16de10,_0x16268b={};_0x16268b['REdVD']=_0x3998c2(0x180),_0x16268b[_0x3998c2(0x19f)]='boolean',_0x16268b[_0x3998c2(0x1b9)]=_0x3998c2(0x1a1);const _0x3c7589=_0x16268b,_0x21d0e2={};_0x21d0e2[_0x3998c2(0x172)]=_0x3c7589[_0x3998c2(0x1b3)],_0x21d0e2[_0x3998c2(0x173)]=_0x3c7589['mVhrd'];const _0x58068c={};return _0x58068c[_0x3998c2(0x193)]=_0x21d0e2,_0x19d60a[_0x3998c2(0x1b5)](HELP_HEADER_MESSAGE[_0x3998c2(0x190)][_0x3998c2(0x198)])[_0x3998c2(0x1c3)](HELP_FOOTER_MESSAGE)[_0x3998c2(0x1b1)](_0x58068c)['help'](_0x3c7589['zsZLj'])[_0x3998c2(0x197)];},exports[a15_0x16de10(0x18f)]=async function(_0x458533){const _0x583cc8=a15_0x16de10,_0x150081={'nXcHk':function(_0x56f58e){return _0x56f58e();},'vgCCb':function(_0x57de24){return _0x57de24();},'WADDH':_0x583cc8(0x1b4),'HDWXh':function(_0x550550,_0x3fa796,_0x4c687a,_0x197223,_0x2e336a,_0x32a46a,_0x36021a){return _0x550550(_0x3fa796,_0x4c687a,_0x197223,_0x2e336a,_0x32a46a,_0x36021a);},'wRfWC':_0x583cc8(0x187),'tOdpA':_0x583cc8(0x170),'kwaNS':function(_0x31ff2c){return _0x31ff2c();},'qUgHf':_0x583cc8(0x18b),'RYpzb':function(_0x1de45b,_0x201c42,_0x5c8806){return _0x1de45b(_0x201c42,_0x5c8806);},'UuEZC':function(_0x1b7cbd,_0x4a360b){return _0x1b7cbd!==_0x4a360b;},'gcSBR':function(_0x10c576,_0x5ad85a){return _0x10c576===_0x5ad85a;},'XmFKH':_0x583cc8(0x1b0),'JJJqe':_0x583cc8(0x192),'nHzDm':'grid-name','UjmwI':_0x583cc8(0x179),'DDZSx':_0x583cc8(0x1be),'ReSHP':_0x583cc8(0x196),'PciGg':'cluster-name','wsBGH':function(_0x176c7b,_0x56d52b){return _0x176c7b(_0x56d52b);},'XkZRH':_0x583cc8(0x1bf),'xUwst':'unauthorised','xfMia':function(_0x11fb39,_0x2544b7,_0xf3f75d,_0x113ed7,_0x17acef,_0x5c841d,_0x3877f4){return _0x11fb39(_0x2544b7,_0xf3f75d,_0x113ed7,_0x17acef,_0x5c841d,_0x3877f4);},'HmUMZ':_0x583cc8(0x18a),'wwCZS':'unknown-error'};try{global_registry['requestId']=_0x150081[_0x583cc8(0x1aa)](uuidv4);!fs[_0x583cc8(0x176)](_0x150081[_0x583cc8(0x1a5)](getCredentialsPath))&&(console[_0x583cc8(0x18d)](_0x150081[_0x583cc8(0x1a6)]),await _0x150081['HDWXh'](sendInstrumentationEvent,_0x458533,_0x150081['wRfWC'],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x1a9)],null,_0x458533),process['exit'](0x1));const _0x1dd750=JSON[_0x583cc8(0x1b2)](fs['readFileSync'](_0x150081[_0x583cc8(0x17c)](getCredentialsPath)));let _0x23c071=_0x583cc8(0x194)+AG_API_URL+_0x583cc8(0x1c1);_0x458533[_0x583cc8(0x1a7)]&&(_0x23c071=_0x583cc8(0x194)+AG_API_URL+_0x583cc8(0x19a));const _0x4ded9b={'method':_0x150081['qUgHf'],'headers':_0x150081[_0x583cc8(0x186)](getAuthHeader,_0x1dd750[_0x583cc8(0x17e)][_0x583cc8(0x17d)],_0x1dd750[_0x583cc8(0x17e)][_0x583cc8(0x1c4)]),'throwHttpErrors':![]};global_registry[_0x583cc8(0x1ad)]=_0x1dd750['Browserstack'][_0x583cc8(0x17d)],global_registry[_0x583cc8(0x1af)]=_0x1dd750['Browserstack']['password'],_0x150081[_0x583cc8(0x1ae)](sendInstrumentationEvent,_0x458533,_0x150081['wRfWC'],messageTypes[_0x583cc8(0x19c)],null,null,_0x458533);const _0x35c686=await _0x150081[_0x583cc8(0x186)](got,_0x23c071,_0x4ded9b);if(_0x150081['UuEZC'](_0x35c686,null)&&_0x150081['UuEZC'](_0x35c686,undefined)&&_0x150081[_0x583cc8(0x1a4)](_0x35c686[_0x583cc8(0x178)],0xc8)){const _0xed2632=JSON[_0x583cc8(0x1b2)](_0x35c686[_0x583cc8(0x1bc)]);console['log'](_0x150081[_0x583cc8(0x19d)]);const _0x535f7d=[];_0x535f7d[_0x583cc8(0x1b6)]([_0x150081[_0x583cc8(0x1bd)],_0x150081['nHzDm'],_0x150081[_0x583cc8(0x1b8)],_0x150081[_0x583cc8(0x1ab)],_0x150081[_0x583cc8(0x188)],_0x150081['PciGg']]),_0xed2632[_0x583cc8(0x174)](_0x565e12=>{const _0xce31fa=_0x583cc8;_0x535f7d['push']([_0x565e12['id'],_0x565e12[_0xce31fa(0x1c6)],_0x565e12[_0xce31fa(0x179)],_0x565e12['running'],_0x565e12['queued'],_0x565e12[_0xce31fa(0x195)]]);}),console[_0x583cc8(0x1c2)](_0x150081[_0x583cc8(0x19b)](table,_0x535f7d)),process[_0x583cc8(0x18c)](0x0);}_0x150081['gcSBR'](_0x35c686[_0x583cc8(0x178)],0x191)&&(console['error'](_0x150081[_0x583cc8(0x1a3)]),await _0x150081[_0x583cc8(0x1ae)](sendInstrumentationEvent,_0x458533,_0x150081[_0x583cc8(0x1c5)],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x183)],null,_0x458533),process[_0x583cc8(0x18c)](0x1)),console['error'](_0x583cc8(0x175)+JSON[_0x583cc8(0x1c0)](_0x35c686)),await _0x150081[_0x583cc8(0x177)](sendInstrumentationEvent,_0x458533,_0x150081[_0x583cc8(0x1c5)],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x191)],_0x35c686,_0x458533),process['exit'](0x1);}catch(_0x5a3b20){console[_0x583cc8(0x18d)](_0x583cc8(0x1ba)+_0x5a3b20[_0x583cc8(0x184)]),await _0x150081[_0x583cc8(0x177)](sendInstrumentationEvent,_0x458533,_0x150081[_0x583cc8(0x1c5)],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x199)],_0x5a3b20,_0x458533),process[_0x583cc8(0x18c)](0x1);}};
1
+ function a15_0xec8c(){const _0x3c5622=['PMdXJ','readFileSync','grid-id','parse','3067860uZRecb','running','OJFuk','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','log','/packages/cli/get-grids','ArAeu','xGYPO','ikdmX','FQqDg','RortH','options','ERROR','type','clusterName','unauthorised','epilogue','list-grids-called','stringify','zkBPy','../../config/constants','108171MUkVLK','grid','stack','status','5315814PMSHzA','username','requestId','2893664xMPRSg','pmkYN','handler','BZYBn','push','nRGmB','2302584tAXpJu','https://','INFO','all-grids','pvfYI','JROSv','password','exit','tgcny','Browserstack','usage','zqQwL','RBfKN','zdVzt','kewyw','description','error','server-error','3938210LQwgcG','ibrSk','fgqIb','EpjPn','cluster-name','builder','name','desc','zZCNI','table','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','uuid','36ngfaGJ','body','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','2DansRI','ZSVYf','statusCode','allGrids','grid-name','gjsEb','2191800mvtQwX','ZTgOo','help','../../utils/utilityMethods','boolean','JzmXU','qSGHu','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-all-grids','argv','GET','5ImbmPw','existsSync','grids','TxRMD'];a15_0xec8c=function(){return _0x3c5622;};return a15_0xec8c();}const a15_0x550679=a15_0x4d6d;(function(_0x46a5c6,_0x280101){const _0x2d8f7d=a15_0x4d6d,_0x507ce6=_0x46a5c6();while(!![]){try{const _0x51e0cd=-parseInt(_0x2d8f7d(0x1fe))/0x1*(-parseInt(_0x2d8f7d(0x22d))/0x2)+-parseInt(_0x2d8f7d(0x246))/0x3+parseInt(_0x2d8f7d(0x205))/0x4*(parseInt(_0x2d8f7d(0x23e))/0x5)+-parseInt(_0x2d8f7d(0x233))/0x6+-parseInt(_0x2d8f7d(0x202))/0x7+parseInt(_0x2d8f7d(0x20b))/0x8+-parseInt(_0x2d8f7d(0x22a))/0x9*(-parseInt(_0x2d8f7d(0x21d))/0xa);if(_0x51e0cd===_0x280101)break;else _0x507ce6['push'](_0x507ce6['shift']());}catch(_0x1b5d33){_0x507ce6['push'](_0x507ce6['shift']());}}}(a15_0xec8c,0x85a2c));function a15_0x4d6d(_0x499fed,_0x571de4){const _0xec8cb8=a15_0xec8c();return a15_0x4d6d=function(_0x4d6db0,_0x39e0f3){_0x4d6db0=_0x4d6db0-0x1ee;let _0x5b18dd=_0xec8cb8[_0x4d6db0];return _0x5b18dd;},a15_0x4d6d(_0x499fed,_0x571de4);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x550679(0x226)),{v4:uuidv4}=require(a15_0x550679(0x229)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x550679(0x1fd)),{getCredentialsPath,getAuthHeader}=require(a15_0x550679(0x236)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a15_0x550679(0x240),exports[a15_0x550679(0x224)]=a15_0x550679(0x228),exports[a15_0x550679(0x222)]=function(_0x21ff5d){const _0x38e8ca=a15_0x550679,_0x4399e1={};_0x4399e1[_0x38e8ca(0x225)]=_0x38e8ca(0x249),_0x4399e1[_0x38e8ca(0x248)]=_0x38e8ca(0x237),_0x4399e1[_0x38e8ca(0x242)]=_0x38e8ca(0x235);const _0x5b2600=_0x4399e1,_0x20b1ff={};_0x20b1ff[_0x38e8ca(0x21a)]=_0x5b2600[_0x38e8ca(0x225)],_0x20b1ff[_0x38e8ca(0x1f6)]=_0x5b2600[_0x38e8ca(0x248)];const _0x11045d={};return _0x11045d[_0x38e8ca(0x20e)]=_0x20b1ff,_0x21ff5d[_0x38e8ca(0x215)](HELP_HEADER_MESSAGE['list'][_0x38e8ca(0x1ff)])[_0x38e8ca(0x1f9)](HELP_FOOTER_MESSAGE)[_0x38e8ca(0x1f4)](_0x11045d)[_0x38e8ca(0x235)](_0x5b2600['PMdXJ'])[_0x38e8ca(0x23c)];},exports[a15_0x550679(0x207)]=async function(_0x2afe1e){const _0x2d2b9d=a15_0x550679,_0x3d5906={'ZTgOo':function(_0x57ac60){return _0x57ac60();},'ikdmX':function(_0x11a4d0){return _0x11a4d0();},'zkBPy':_0x2d2b9d(0x23a),'JROSv':function(_0x126b1a,_0x2a1850,_0x55dd0f,_0x188c9a,_0x3c5c74,_0x5da63e,_0x5791c1){return _0x126b1a(_0x2a1850,_0x55dd0f,_0x188c9a,_0x3c5c74,_0x5da63e,_0x5791c1);},'ibrSk':_0x2d2b9d(0x1fa),'ZHLPv':_0x2d2b9d(0x227),'kewyw':function(_0x5cf604){return _0x5cf604();},'zdVzt':_0x2d2b9d(0x23d),'JzmXU':function(_0x2c5bec,_0x4ead71,_0x37ba23){return _0x2c5bec(_0x4ead71,_0x37ba23);},'hEtlk':function(_0x5a45c4,_0x1d1756,_0x6c01af){return _0x5a45c4(_0x1d1756,_0x6c01af);},'zqQwL':function(_0x500015,_0x63df62){return _0x500015!==_0x63df62;},'gjsEb':function(_0x2e5210,_0x5d1bd1){return _0x2e5210!==_0x5d1bd1;},'RBfKN':function(_0x35db83,_0x58eee0){return _0x35db83===_0x58eee0;},'xGYPO':'\x0aFound\x20the\x20following\x20grids:\x0a','TxRMD':_0x2d2b9d(0x244),'BZYBn':_0x2d2b9d(0x231),'nRGmB':'status','EpjPn':_0x2d2b9d(0x247),'pmkYN':'queued','vhiIx':_0x2d2b9d(0x221),'tgcny':function(_0x5759e8,_0x590bf9){return _0x5759e8(_0x590bf9);},'qSGHu':function(_0x29835c,_0x18246d){return _0x29835c===_0x18246d;},'pvfYI':_0x2d2b9d(0x22c),'FQqDg':function(_0x57eeeb,_0x10af60,_0x1fe57e,_0x29ba7c,_0xb35dee,_0x59dfc6,_0x2c5b55){return _0x57eeeb(_0x10af60,_0x1fe57e,_0x29ba7c,_0xb35dee,_0x59dfc6,_0x2c5b55);},'RortH':_0x2d2b9d(0x1f8),'ArAeu':function(_0x5696db,_0x297d5f,_0x5a09ec,_0x3040d8,_0x31adac,_0x436f21,_0x1452ed){return _0x5696db(_0x297d5f,_0x5a09ec,_0x3040d8,_0x31adac,_0x436f21,_0x1452ed);},'ZSVYf':_0x2d2b9d(0x21c),'fgqIb':'unknown-error'};try{global_registry[_0x2d2b9d(0x204)]=_0x3d5906[_0x2d2b9d(0x234)](uuidv4);!fs[_0x2d2b9d(0x23f)](_0x3d5906[_0x2d2b9d(0x1f1)](getCredentialsPath))&&(console[_0x2d2b9d(0x21b)](_0x3d5906[_0x2d2b9d(0x1fc)]),await _0x3d5906[_0x2d2b9d(0x210)](sendInstrumentationEvent,_0x2afe1e,_0x3d5906['ibrSk'],messageTypes[_0x2d2b9d(0x1f5)],_0x3d5906['ZHLPv'],null,_0x2afe1e),process[_0x2d2b9d(0x212)](0x1));const _0x37cd09=JSON['parse'](fs[_0x2d2b9d(0x243)](_0x3d5906[_0x2d2b9d(0x219)](getCredentialsPath)));let _0x3f6b07=_0x2d2b9d(0x20c)+AG_API_URL+_0x2d2b9d(0x1ee);_0x2afe1e[_0x2d2b9d(0x230)]&&(_0x3f6b07=_0x2d2b9d(0x20c)+AG_API_URL+_0x2d2b9d(0x23b));const _0x28c50c={'method':_0x3d5906[_0x2d2b9d(0x218)],'headers':_0x3d5906[_0x2d2b9d(0x238)](getAuthHeader,_0x37cd09[_0x2d2b9d(0x214)][_0x2d2b9d(0x203)],_0x37cd09['Browserstack'][_0x2d2b9d(0x211)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x37cd09[_0x2d2b9d(0x214)][_0x2d2b9d(0x203)],global_registry['bstackAccesskey']=_0x37cd09[_0x2d2b9d(0x214)]['password'],_0x3d5906['JROSv'](sendInstrumentationEvent,_0x2afe1e,_0x3d5906['ibrSk'],messageTypes[_0x2d2b9d(0x20d)],null,null,_0x2afe1e);const _0x4f6114=await _0x3d5906['hEtlk'](got,_0x3f6b07,_0x28c50c);if(_0x3d5906[_0x2d2b9d(0x216)](_0x4f6114,null)&&_0x3d5906[_0x2d2b9d(0x232)](_0x4f6114,undefined)&&_0x3d5906[_0x2d2b9d(0x217)](_0x4f6114['statusCode'],0xc8)){const _0x328a29=JSON[_0x2d2b9d(0x245)](_0x4f6114[_0x2d2b9d(0x22b)]);console[_0x2d2b9d(0x24a)](_0x3d5906[_0x2d2b9d(0x1f0)]);const _0x3fefed=[];_0x3fefed[_0x2d2b9d(0x209)]([_0x3d5906[_0x2d2b9d(0x241)],_0x3d5906[_0x2d2b9d(0x208)],_0x3d5906[_0x2d2b9d(0x20a)],_0x3d5906[_0x2d2b9d(0x220)],_0x3d5906[_0x2d2b9d(0x206)],_0x3d5906['vhiIx']]),_0x328a29['forEach'](_0x311c29=>{const _0x2b2770=_0x2d2b9d;_0x3fefed[_0x2b2770(0x209)]([_0x311c29['id'],_0x311c29[_0x2b2770(0x223)],_0x311c29[_0x2b2770(0x201)],_0x311c29[_0x2b2770(0x247)],_0x311c29['queued'],_0x311c29[_0x2b2770(0x1f7)]]);}),console['log'](_0x3d5906[_0x2d2b9d(0x213)](table,_0x3fefed)),process['exit'](0x0);}_0x3d5906[_0x2d2b9d(0x239)](_0x4f6114[_0x2d2b9d(0x22f)],0x191)&&(console[_0x2d2b9d(0x21b)](_0x3d5906[_0x2d2b9d(0x20f)]),await _0x3d5906[_0x2d2b9d(0x1f2)](sendInstrumentationEvent,_0x2afe1e,_0x3d5906[_0x2d2b9d(0x21e)],messageTypes['ERROR'],_0x3d5906[_0x2d2b9d(0x1f3)],null,_0x2afe1e),process[_0x2d2b9d(0x212)](0x1)),console[_0x2d2b9d(0x21b)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2d2b9d(0x1fb)](_0x4f6114)),await _0x3d5906[_0x2d2b9d(0x1ef)](sendInstrumentationEvent,_0x2afe1e,_0x3d5906[_0x2d2b9d(0x21e)],messageTypes[_0x2d2b9d(0x1f5)],_0x3d5906[_0x2d2b9d(0x22e)],_0x4f6114,_0x2afe1e),process[_0x2d2b9d(0x212)](0x1);}catch(_0x36e44d){console[_0x2d2b9d(0x21b)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x36e44d[_0x2d2b9d(0x200)]),await _0x3d5906[_0x2d2b9d(0x1f2)](sendInstrumentationEvent,_0x2afe1e,_0x3d5906[_0x2d2b9d(0x21e)],messageTypes[_0x2d2b9d(0x1f5)],_0x3d5906[_0x2d2b9d(0x21f)],_0x36e44d,_0x2afe1e),process[_0x2d2b9d(0x212)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x220e(){const _0xb9ae2c=['2547809PTXzqD','recommendCommands','precheck_commands','builder','epilogue','44NjsSTi','demandCommand','usage','fLIds','639696ULEauE','65288MgkeGZ','../config/constants','7MyQwaj','2922LWEuaR','pre_check','handler','234zSDguy','3743870FQTCpB','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','desc','command','15pOOWIn','166224TNbKLK','52496UwYGtY','dEuxR'];a16_0x220e=function(){return _0xb9ae2c;};return a16_0x220e();}const a16_0x229cda=a16_0x4146;(function(_0x610cc,_0x24b0eb){const _0x466bd0=a16_0x4146,_0x504277=_0x610cc();while(!![]){try{const _0xd7f653=-parseInt(_0x466bd0(0x19c))/0x1*(parseInt(_0x466bd0(0x1a4))/0x2)+parseInt(_0x466bd0(0x1a0))/0x3+-parseInt(_0x466bd0(0x1a1))/0x4*(-parseInt(_0x466bd0(0x1ad))/0x5)+parseInt(_0x466bd0(0x1ae))/0x6*(-parseInt(_0x466bd0(0x1a3))/0x7)+parseInt(_0x466bd0(0x1af))/0x8*(parseInt(_0x466bd0(0x1a7))/0x9)+-parseInt(_0x466bd0(0x1a8))/0xa+parseInt(_0x466bd0(0x197))/0xb;if(_0xd7f653===_0x24b0eb)break;else _0x504277['push'](_0x504277['shift']());}catch(_0x41c97f){_0x504277['push'](_0x504277['shift']());}}}(a16_0x220e,0x305a6));function a16_0x4146(_0x32cf6f,_0x298995){const _0x220e44=a16_0x220e();return a16_0x4146=function(_0x41462e,_0x58c063){_0x41462e=_0x41462e-0x197;let _0x2405f6=_0x220e44[_0x41462e];return _0x2405f6;},a16_0x4146(_0x32cf6f,_0x298995);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x229cda(0x1a2));exports[a16_0x229cda(0x1ac)]='pre-check',exports[a16_0x229cda(0x1ab)]=a16_0x229cda(0x1a9),exports[a16_0x229cda(0x19a)]=function(_0xebcf6e){const _0x4c01f2=a16_0x229cda,_0x5508dd={};_0x5508dd['fLIds']=_0x4c01f2(0x199),_0x5508dd['dEuxR']=_0x4c01f2(0x1aa);const _0x5e14f7=_0x5508dd;return _0xebcf6e[_0x4c01f2(0x19e)](HELP_HEADER_MESSAGE[_0x4c01f2(0x1a5)])[_0x4c01f2(0x19b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5e14f7[_0x4c01f2(0x19f)])[_0x4c01f2(0x19d)]()[_0x4c01f2(0x198)]()['strict']()['help'](_0x5e14f7[_0x4c01f2(0x1b0)]);},exports[a16_0x229cda(0x1a6)]=function(_0x212f0d){};
1
+ function a16_0x235b(){const _0x9804d7=['UwMvt','strict','21642800AtaiLa','4uHWgTJ','233493jwDjTX','demandCommand','epilogue','builder','971965aLCtCg','pre_check','usage','commandDir','desc','5104288aqAdox','precheck_commands','DkFSd','5186664TpRejM','pre-check','851118rlBZcx','2490635LMVGzn','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup'];a16_0x235b=function(){return _0x9804d7;};return a16_0x235b();}const a16_0x514041=a16_0x3669;function a16_0x3669(_0x3d79f7,_0x157d40){const _0x235bde=a16_0x235b();return a16_0x3669=function(_0x36698b,_0x2a516b){_0x36698b=_0x36698b-0x131;let _0xbb991a=_0x235bde[_0x36698b];return _0xbb991a;},a16_0x3669(_0x3d79f7,_0x157d40);}(function(_0xa0bee2,_0x4bb6ee){const _0x395def=a16_0x3669,_0x33f790=_0xa0bee2();while(!![]){try{const _0x27fc34=parseInt(_0x395def(0x13c))/0x1+-parseInt(_0x395def(0x142))/0x2*(parseInt(_0x395def(0x143))/0x3)+parseInt(_0x395def(0x137))/0x4+parseInt(_0x395def(0x132))/0x5+parseInt(_0x395def(0x13a))/0x6+parseInt(_0x395def(0x13d))/0x7+-parseInt(_0x395def(0x141))/0x8;if(_0x27fc34===_0x4bb6ee)break;else _0x33f790['push'](_0x33f790['shift']());}catch(_0x47f5e9){_0x33f790['push'](_0x33f790['shift']());}}}(a16_0x235b,0xa6374));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a16_0x514041(0x13b),exports[a16_0x514041(0x136)]=a16_0x514041(0x13e),exports[a16_0x514041(0x131)]=function(_0x1f8938){const _0x434e02=a16_0x514041,_0x41741c={};_0x41741c[_0x434e02(0x13f)]=_0x434e02(0x138),_0x41741c['DkFSd']='help';const _0x83723f=_0x41741c;return _0x1f8938[_0x434e02(0x134)](HELP_HEADER_MESSAGE[_0x434e02(0x133)])[_0x434e02(0x145)](HELP_FOOTER_MESSAGE)[_0x434e02(0x135)](_0x83723f[_0x434e02(0x13f)])[_0x434e02(0x144)]()['recommendCommands']()[_0x434e02(0x140)]()['help'](_0x83723f[_0x434e02(0x139)]);},exports['handler']=function(_0x4f3766){};
@@ -1 +1 @@
1
- const a17_0x16b4ca=a17_0x209a;(function(_0x2bacc5,_0x562da0){const _0x3dcf70=a17_0x209a,_0x5ab279=_0x2bacc5();while(!![]){try{const _0x42c148=parseInt(_0x3dcf70(0x1b1))/0x1*(parseInt(_0x3dcf70(0x136))/0x2)+-parseInt(_0x3dcf70(0x1c8))/0x3+-parseInt(_0x3dcf70(0x230))/0x4*(parseInt(_0x3dcf70(0x17c))/0x5)+-parseInt(_0x3dcf70(0x1a9))/0x6*(parseInt(_0x3dcf70(0x176))/0x7)+-parseInt(_0x3dcf70(0x228))/0x8*(parseInt(_0x3dcf70(0x205))/0x9)+-parseInt(_0x3dcf70(0x150))/0xa*(parseInt(_0x3dcf70(0x153))/0xb)+parseInt(_0x3dcf70(0x186))/0xc*(parseInt(_0x3dcf70(0x17b))/0xd);if(_0x42c148===_0x562da0)break;else _0x5ab279['push'](_0x5ab279['shift']());}catch(_0x258582){_0x5ab279['push'](_0x5ab279['shift']());}}}(a17_0x4dfc,0x1b7fc));const fs=require('fs'),ws=require('ws'),got=require(a17_0x16b4ca(0x225)),{v4:uuidv4}=require(a17_0x16b4ca(0x236)),ReconnectingWebSocket=require(a17_0x16b4ca(0x148)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x16b4ca(0x231)),{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_0x16b4ca(0x211)),{getCloudProviderObjectWithOutInit}=require(a17_0x16b4ca(0x1c6)),webSocketUtils=require(a17_0x16b4ca(0x170)),{sendInstrumentationEvent}=require(a17_0x16b4ca(0x21c));exports[a17_0x16b4ca(0x202)]='grid',exports['desc']=a17_0x16b4ca(0x175),exports[a17_0x16b4ca(0x21b)]=function(_0x2b7ac4){const _0x3214ad=a17_0x16b4ca,_0x3c0ca1={};_0x3c0ca1['LFKca']=_0x3214ad(0x1bd),_0x3c0ca1[_0x3214ad(0x1f1)]=_0x3214ad(0x135),_0x3c0ca1['bZYup']=_0x3214ad(0x187),_0x3c0ca1['dgEwi']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3c0ca1['gblNT']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x3c0ca1[_0x3214ad(0x1df)]=_0x3214ad(0x13d);const _0x484adf=_0x3c0ca1,_0x1be455={};_0x1be455[_0x3214ad(0x1e6)]=_0x484adf[_0x3214ad(0x1f8)],_0x1be455[_0x3214ad(0x1d3)]=_0x484adf['iyBpP'];const _0x10c872={};_0x10c872[_0x3214ad(0x1e6)]=_0x484adf[_0x3214ad(0x16b)],_0x10c872[_0x3214ad(0x1d3)]=_0x484adf[_0x3214ad(0x1f1)];const _0xa85af8={};_0xa85af8[_0x3214ad(0x1e6)]=_0x484adf[_0x3214ad(0x160)],_0xa85af8[_0x3214ad(0x1d3)]=_0x484adf['iyBpP'];const _0x3ed338={};_0x3ed338[_0x3214ad(0x1e6)]=_0x484adf['gblNT'],_0x3ed338[_0x3214ad(0x1d3)]=_0x484adf[_0x3214ad(0x1f1)];const _0x5debe6={};return _0x5debe6[_0x3214ad(0x221)]=_0x1be455,_0x5debe6[_0x3214ad(0x1ae)]=_0x10c872,_0x5debe6['region']=_0xa85af8,_0x5debe6[_0x3214ad(0x1b8)]=_0x3ed338,_0x2b7ac4[_0x3214ad(0x22e)](HELP_HEADER_MESSAGE[_0x3214ad(0x1ff)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5debe6)['help'](_0x484adf['ZAeem'])[_0x3214ad(0x1e5)];};async function inputValidation(_0x36c17d,_0x19f6b7){const _0x3b5e3d=a17_0x16b4ca,_0x200a8a={'SHgpD':'is\x20already\x20present','ntICf':_0x3b5e3d(0x174),'jJetH':'Error\x20Details:\x0a','wnqdf':_0x3b5e3d(0x1f2),'XCmnt':_0x3b5e3d(0x221),'yDvxN':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','QErHc':_0x3b5e3d(0x20a),'AECUj':'region','WlWna':_0x3b5e3d(0x1ae),'JgJsO':function(_0x42be1b,_0x157939){return _0x42be1b+_0x157939;},'bViBg':_0x3b5e3d(0x19b),'naoZu':_0x3b5e3d(0x238),'cVteS':function(_0x27327f,_0x292f7c){return _0x27327f||_0x292f7c;},'sjLGe':function(_0x5d7e84,_0x1fe5bd){return _0x5d7e84===_0x1fe5bd;},'IvoWi':_0x3b5e3d(0x235),'wLnCK':_0x3b5e3d(0x21a),'VGWuT':function(_0x5c51b8,_0xd2624f){return _0x5c51b8!==_0xd2624f;},'mcNXL':'ITcsn','mWpSN':_0x3b5e3d(0x242),'IuQFN':function(_0x436d7d,_0x46b00b){return _0x436d7d!==_0x46b00b;},'jOGTu':_0x3b5e3d(0x15d),'iLAJq':_0x3b5e3d(0x1c0),'EmZiy':function(_0x1ad58f,_0x5346fb){return _0x1ad58f===_0x5346fb;},'sGiUM':_0x3b5e3d(0x1eb),'FxVLi':function(_0xa6cee5,_0x755dc1){return _0xa6cee5>_0x755dc1;},'TjZls':'qMMCV','dlrde':'ZKGOA','ktDcl':function(_0xf8ba61,_0x372f53,_0x4aac6f,_0x1b12a7,_0xbc8b31,_0xa38cab,_0x29aed6,_0x22b991){return _0xf8ba61(_0x372f53,_0x4aac6f,_0x1b12a7,_0xbc8b31,_0xa38cab,_0x29aed6,_0x22b991);},'ewWkz':_0x3b5e3d(0x13c),'Twrfq':'pre-check-cluster-args-not-passed','dInZC':_0x3b5e3d(0x1f0),'iTzMg':'fYJEZ','bPVVr':_0x3b5e3d(0x241),'AitkJ':_0x3b5e3d(0x20c),'Smxxp':function(_0x45f2c9,_0x3c87d8){return _0x45f2c9===_0x3c87d8;},'RqJdr':_0x3b5e3d(0x191),'FFmoA':'wjxMk','QQqfA':_0x3b5e3d(0x1af),'baKXi':_0x3b5e3d(0x1dd),'KhGrx':_0x3b5e3d(0x1a4),'eCMjo':function(_0x48ae27,_0x479cac,_0x3de73e){return _0x48ae27(_0x479cac,_0x3de73e);},'XyPqo':function(_0x5e6966,_0x5aa26f,_0xd71f0a,_0x50b2e3,_0x2db646,_0x5488b6){return _0x5e6966(_0x5aa26f,_0xd71f0a,_0x50b2e3,_0x2db646,_0x5488b6);},'xoOnx':_0x3b5e3d(0x240),'NRwRG':_0x3b5e3d(0x1b8),'XxvLx':function(_0x503c28,_0x4ed278){return _0x503c28===_0x4ed278;},'fWOkX':function(_0x5d06a8,_0x26d583){return _0x5d06a8!==_0x26d583;},'KuhfE':_0x3b5e3d(0x1e8),'pEcan':_0x3b5e3d(0x159),'ffGVq':function(_0x5084fe,_0x4fe097){return _0x5084fe(_0x4fe097);},'qcSTu':function(_0x3b70ff,_0x474054){return _0x3b70ff!==_0x474054;},'ObXjo':_0x3b5e3d(0x19f),'gSPGm':function(_0x7ef811,_0x5c41f1,_0x412835,_0x3f709d,_0x30a77b,_0x576799,_0x582bd0,_0x582705){return _0x7ef811(_0x5c41f1,_0x412835,_0x3f709d,_0x30a77b,_0x576799,_0x582bd0,_0x582705);},'uHhsm':_0x3b5e3d(0x1f5),'YzHYr':_0x3b5e3d(0x13b),'SqRHR':_0x3b5e3d(0x1be),'fxWaP':_0x3b5e3d(0x20f),'qQmRo':function(_0x120afe,_0x40b40e){return _0x120afe===_0x40b40e;},'ToEZn':_0x3b5e3d(0x1d1),'JUEQv':_0x3b5e3d(0x156),'pkLXw':function(_0x435f39,_0x19e072){return _0x435f39===_0x19e072;},'mZeZF':_0x3b5e3d(0x13f),'Tdseu':_0x3b5e3d(0x184)};let _0x1bbf53;try{if(_0x200a8a[_0x3b5e3d(0x219)](_0x200a8a[_0x3b5e3d(0x20e)],_0x200a8a[_0x3b5e3d(0x18b)]))_0x4eea34[_0x3b5e3d(0x232)]('['+_0x3b045f+_0x3b5e3d(0x245)+_0x224d08['status']+_0x3b5e3d(0x1ec)+_0x1db024[_0x3b5e3d(0x18d)]+_0x3b5e3d(0x146)+_0x47ea08[_0x3b5e3d(0x20a)]),_0x4636c4['error']&&_0x2e5775[_0x3b5e3d(0x20a)](_0x3b5e3d(0x237)+_0x4fc0de[_0x3b5e3d(0x20a)]['stack']);else{if(_0x36c17d[_0x3b5e3d(0x165)]||_0x36c17d[_0x3b5e3d(0x15c)]||_0x36c17d['region']){if(_0x200a8a['VGWuT'](_0x200a8a[_0x3b5e3d(0x197)],_0x200a8a[_0x3b5e3d(0x229)])){const _0x368840=[];!_0x36c17d[_0x3b5e3d(0x165)]&&(_0x200a8a[_0x3b5e3d(0x1e2)](_0x200a8a[_0x3b5e3d(0x154)],_0x200a8a[_0x3b5e3d(0x154)])?_0x51610c[_0x3b5e3d(0x1ca)](0x1):_0x368840['push'](_0x200a8a[_0x3b5e3d(0x178)]));;!_0x36c17d[_0x3b5e3d(0x15c)]&&(_0x200a8a['VGWuT'](_0x200a8a[_0x3b5e3d(0x16a)],_0x200a8a[_0x3b5e3d(0x16a)])?_0x572399[_0x3b5e3d(0x20a)](_0x3b5e3d(0x237)+_0x4fe4c9['error'][_0x3b5e3d(0x23d)]):_0x368840['push'](_0x200a8a[_0x3b5e3d(0x16f)]));;!_0x36c17d[_0x3b5e3d(0x1de)]&&(_0x200a8a[_0x3b5e3d(0x1db)](_0x200a8a['sGiUM'],_0x200a8a[_0x3b5e3d(0x1da)])?_0x368840[_0x3b5e3d(0x1ab)](_0x200a8a[_0x3b5e3d(0x182)]):_0x2c5ee6+=_0x3b5e3d(0x1a6)+_0x52b717['clusterName']+'\x20'+(_0x318802?_0x200a8a[_0x3b5e3d(0x1c1)]:_0x200a8a[_0x3b5e3d(0x17f)])+'\x0a\x0a');;_0x200a8a[_0x3b5e3d(0x1b4)](_0x368840[_0x3b5e3d(0x1fa)],0x0)&&(_0x200a8a[_0x3b5e3d(0x219)](_0x200a8a[_0x3b5e3d(0x142)],_0x200a8a[_0x3b5e3d(0x209)])?(_0x2ae189+=_0x200a8a[_0x3b5e3d(0x1d2)],_0x1f188e+=_0x3b5e3d(0x199)+(_0x493a41[_0x3b5e3d(0x1ce)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x34f6c1+='\x20\x20Code:\x20'+(_0x13651f['code']||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x2efd11+='\x20\x20Stack:\x20'+(_0x1fb6fb[_0x3b5e3d(0x23d)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a'):(_0x1bbf53='Missing\x20required\x20arguments:\x20'+_0x368840[_0x3b5e3d(0x1bf)](',\x20')+_0x3b5e3d(0x196),await _0x200a8a[_0x3b5e3d(0x155)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes[_0x3b5e3d(0x1c2)],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a[_0x3b5e3d(0x16e)],_0x200a8a['QErHc']),logger[_0x3b5e3d(0x20a)](_0x1bbf53),process[_0x3b5e3d(0x1ca)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3b5e3d(0x22d)](_0x36c17d[_0x3b5e3d(0x15c)][_0x3b5e3d(0x139)]())&&(_0x200a8a[_0x3b5e3d(0x1e4)](_0x200a8a['dInZC'],_0x200a8a[_0x3b5e3d(0x1c7)])?(_0x1bbf53=_0x200a8a[_0x3b5e3d(0x22b)],await _0x200a8a[_0x3b5e3d(0x155)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes[_0x3b5e3d(0x1c2)],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a[_0x3b5e3d(0x1d4)],_0x200a8a[_0x3b5e3d(0x1d0)]),logger[_0x3b5e3d(0x20a)](_0x1bbf53),!_0x36c17d[_0x3b5e3d(0x15c)]&&(_0x200a8a['Smxxp'](_0x200a8a[_0x3b5e3d(0x1b0)],_0x200a8a[_0x3b5e3d(0x1ad)])?_0x190eef['info'](_0x3b5e3d(0x212)+_0x109e86[_0x3b5e3d(0x165)]+_0x3b5e3d(0x1ed)):(logger['info'](_0x3b5e3d(0x140)+DEFAULT_CLUSTER_DETAILS[_0x3b5e3d(0x23b)]+'\x20'),_0x36c17d[_0x3b5e3d(0x15c)]=DEFAULT_CLUSTER_DETAILS[_0x3b5e3d(0x23b)]))):_0x96c7b1[_0x3b5e3d(0x1ab)](_0x200a8a[_0x3b5e3d(0x178)])),global_registry[_0x3b5e3d(0x165)]=_0x36c17d['clusterName'],global_registry['cloudProvider']=_0x36c17d[_0x3b5e3d(0x15c)],global_registry[_0x3b5e3d(0x18e)]=_0x36c17d[_0x3b5e3d(0x1de)];}else _0x589c16[_0x3b5e3d(0x20a)](_0x200a8a[_0x3b5e3d(0x1a1)]),_0x12942f[_0x3b5e3d(0x1ca)](0x1);}else{if(_0x36c17d[_0x3b5e3d(0x1f7)]){if(_0x200a8a[_0x3b5e3d(0x1db)](_0x200a8a['QQqfA'],_0x200a8a[_0x3b5e3d(0x151)])){const _0xcb3308={};_0xcb3308[_0x3b5e3d(0x1d3)]=_0x2e4ca4[_0x3b5e3d(0x1e9)],_0xcb3308[_0x3b5e3d(0x1ce)]=_0x36a259,_0xf140ed[_0x3b5e3d(0x16c)](_0x14abdc,_0xcb3308,_0x200a8a[_0x3b5e3d(0x1d0)],!![]);}else{global_registry[_0x3b5e3d(0x1f7)]=_0x36c17d[_0x3b5e3d(0x1f7)],logger[_0x3b5e3d(0x201)](_0x3b5e3d(0x157)+_0x36c17d[_0x3b5e3d(0x1f7)]);const _0x5c28c4=_0x3b5e3d(0x16d)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0xcc8da9={};_0xcc8da9[_0x3b5e3d(0x1ba)]=_0x200a8a[_0x3b5e3d(0x1a2)],_0xcc8da9[_0x3b5e3d(0x23c)]=global_registry[_0x3b5e3d(0x22c)],_0xcc8da9[_0x3b5e3d(0x19d)]=![];const _0x2a5184=_0xcc8da9,_0x3ad447=await _0x200a8a['eCMjo'](got,_0x5c28c4,_0x2a5184),_0x585939=await _0x200a8a[_0x3b5e3d(0x246)](responseValidation,_0x3ad447,_0x200a8a[_0x3b5e3d(0x1a7)],_0x200a8a[_0x3b5e3d(0x1fe)],_0x36c17d,_0x19f6b7);let _0x3b9273={};if(_0x200a8a[_0x3b5e3d(0x1c9)](_0x585939,0xc8)){if(_0x200a8a[_0x3b5e3d(0x1b7)](_0x200a8a['KuhfE'],_0x200a8a['pEcan'])){const _0x38fc8e=JSON[_0x3b5e3d(0x190)](_0x3ad447[_0x3b5e3d(0x216)]),_0x54c3f5=_0x38fc8e[_0x3b5e3d(0x188)](_0x527968=>_0x527968[_0x3b5e3d(0x1a5)]===_0x36c17d['gridProfile'])||null;_0x200a8a[_0x3b5e3d(0x185)](isUndefined,_0x54c3f5)?_0x200a8a[_0x3b5e3d(0x203)](_0x200a8a[_0x3b5e3d(0x172)],_0x200a8a[_0x3b5e3d(0x172)])?_0x36eeba[_0x3b5e3d(0x1ab)](_0x200a8a['AECUj']):(_0x1bbf53=_0x3b5e3d(0x210)+_0x36c17d[_0x3b5e3d(0x1f7)]+_0x3b5e3d(0x164),await _0x200a8a[_0x3b5e3d(0x166)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes[_0x3b5e3d(0x1c2)],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a[_0x3b5e3d(0x1d6)],_0x200a8a[_0x3b5e3d(0x1d0)]),logger['error'](_0x1bbf53),process[_0x3b5e3d(0x1ca)](0x1)):_0x200a8a[_0x3b5e3d(0x163)](_0x200a8a['YzHYr'],_0x200a8a[_0x3b5e3d(0x144)])?_0x3b9273=_0x54c3f5:_0x996dbe+=_0x3b5e3d(0x1a6)+_0x2b4fd7[_0x3b5e3d(0x165)]+_0x3b5e3d(0x244);}else _0x32ef10[_0x3b5e3d(0x1ab)](_0x200a8a[_0x3b5e3d(0x16f)]);}else{if(_0x200a8a[_0x3b5e3d(0x1c9)](_0x200a8a[_0x3b5e3d(0x21f)],_0x200a8a['SqRHR']))process[_0x3b5e3d(0x1ca)](0x1);else{const {header:_0x5077d1,response:_0x534653}=_0x24cb46,{status:_0x403c2a,data:_0x100616,error:_0x2aa451}=_0x534653;_0x4e2f2b+=_0x5077d1+'\x20#'+_0x200a8a[_0x3b5e3d(0x204)](_0x6215fe,0x1)+'\x0a',_0x27233c+=_0x3b5e3d(0x218)+(_0x403c2a?_0x200a8a[_0x3b5e3d(0x171)]:_0x200a8a[_0x3b5e3d(0x243)])+'\x0a',_0x312fa1+=_0x3b5e3d(0x177)+_0x200a8a[_0x3b5e3d(0x1f3)](_0x100616,_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x2aa451&&(_0x2d6f65+=_0x200a8a[_0x3b5e3d(0x1d2)],_0x26500b+=_0x3b5e3d(0x199)+(_0x2aa451[_0x3b5e3d(0x1ce)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x2b829d+='\x20\x20Code:\x20'+(_0x2aa451['code']||_0x200a8a['wnqdf'])+'\x0a',_0x496620+='\x20\x20Stack:\x20'+(_0x2aa451[_0x3b5e3d(0x23d)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a'),_0x7540d9+='\x0a\x0a';}}const _0x518c09={};_0x518c09[_0x3b5e3d(0x1d3)]=WS_EVENTS[_0x3b5e3d(0x1e9)],_0x518c09[_0x3b5e3d(0x1ce)]=_0x200a8a['fxWaP'],webSocketUtils['sendEventToBackend'](_0x19f6b7,_0x518c09),global_registry[_0x3b5e3d(0x15c)]=_0x3b9273[_0x3b5e3d(0x15c)],global_registry[_0x3b5e3d(0x18e)]=_0x3b9273[_0x3b5e3d(0x1de)],global_registry[_0x3b5e3d(0x165)]=_0x3b9273[_0x3b5e3d(0x165)];}}else _0x200a8a[_0x3b5e3d(0x13e)](_0x200a8a[_0x3b5e3d(0x17e)],_0x200a8a['JUEQv'])?(_0x4f1dc1['info'](_0x3b5e3d(0x140)+_0x4c5919[_0x3b5e3d(0x23b)]+'\x20'),_0x1d53d9[_0x3b5e3d(0x15c)]=_0x11af10['CLOUD_PROVIDER']):(logger['error'](_0x200a8a[_0x3b5e3d(0x1a1)]),process['exit'](0x1));}}}catch(_0xdb3de2){_0x200a8a[_0x3b5e3d(0x15b)](_0x200a8a[_0x3b5e3d(0x1b5)],_0x200a8a['Tdseu'])?_0x391123=_0x184c77:(_0x1bbf53='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0xdb3de2+':\x20'+_0xdb3de2[_0x3b5e3d(0x23d)],logger[_0x3b5e3d(0x20a)](_0x1bbf53),await _0x200a8a[_0x3b5e3d(0x155)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes['ERROR'],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a['AitkJ'],_0x200a8a['QErHc']),process['exit'](0x1));}}function a17_0x4dfc(){const _0x302a44=['dlrde','error','SSL\x20Configured','cloud-provider-not-supported','RRkZI','IvoWi','Grid\x20profile\x20fetched\x20for\x20pre-check','Invalid\x20input.\x20grid\x20profiles:\x20','../../config/constants','Cluster\x20`','accessResp','gIBWf','isTls1_2_SUPPORTED','body','ddvkc','Status:\x20','sjLGe','uXWWB','builder','../../utils/instrumentationUtils','TLSv1_2_client_method','KrQZY','SqRHR','getUTCDate','cluster-name','readFileSync','yYBaI','vuham','got','INFO','IuEpG','16iOANYV','mWpSN','Cluster\x20details\x0a-----------------------\x0a','bPVVr','authHeader','includes','usage','getUTCMonth','524YyAoop','../../config/logger','info','lEZhs','===\x20Precheck\x20Report\x20-\x20','aBAPy','uuid','error\x20stack\x20:\x20','Failure','delay','Error\x20Details:\x0a','CLOUD_PROVIDER','headers','stack','stbgg','`\x20is\x20present\x20in\x20region\x20`','pre-check','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','BtbvX','naoZu','\x20details\x20cannot\x20be\x20fetched\x0a\x0a',']\x20status\x20:\x20','XyPqo','log/report_','unable\x20to\x20verify\x20if\x20cluster\x20`','string','35306mlsRTu','response','WJNNB','toLowerCase','ewWkz','vLdvN','pre-check-grid-called','help','qQmRo','MpmYw','Setting\x20cloud\x20provider\x20as\x20','HKNgj','TjZls','replace','YzHYr','writeFileSync','\x20error\x20:\x20','gNAgf','reconnecting-websocket','User\x20Access','IxaWi','EVfuo','sQRaM','\x20region\x20-\x20','fNqke','PyICi','219780UUzuQb','baKXi','.txt','110QmjONd','jOGTu','ktDcl','QUtZW','grid\x20profile\x20flow\x20','ofZSl','FVQVV','2|3|1|0|4','pkLXw','cloudProvider','Cnhwf','bstackUsername','iQaFe','dgEwi','<PasswordPlaceholder>','stringify','Smxxp','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','clusterName','gSPGm','connectionTimeout','init','Browserstack','iLAJq','bZYup','sendEventToBackend','https://','Twrfq','WlWna','../../utils/webSocketUtils','bViBg','ObXjo','status','will\x20be\x20created','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','915033TmYcbO','Message:\x20','XCmnt','EBfUk','Whitelisted\x20browserstack','15509BuksKn','655pqmFTh','OhmIX','ToEZn','ntICf','isTrialGridAccessible','ckqgy','AECUj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cSIzb','ffGVq','5604EvHuiE','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','find','FZfIN','getUTCMinutes','wLnCK','FoHZN','data','clusterRegion','sIPdb','parse','sMuxq','cJDgS','VRuwY','kvAng','password','.\x20Please\x20provide\x20all\x20required\x20arguments.','mcNXL','UkbRD','\x20\x20Message:\x20','DndDf','Success','split','throwHttpErrors','epilogue','XeHPC','nKhBb','yDvxN','KhGrx','toolInstalledResp','GET','name','Cluster\x20','xoOnx','getUTCHours','6pDAUQa','jDCtr','push','azOSU','FFmoA','cloud-provider','cOfDi','RqJdr','11SvNxVp','EtnlU','`\x20,error\x20:\x20','FxVLi','mZeZF','header','fWOkX','grid-profile','dummy-grid','method','code','FrNHK','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rAaTq','join','tofyY','SHgpD','ERROR','forEach','username','stack\x20trace\x20','../../cloudproviders/utils','iTzMg','533976fAchtc','XxvLx','exit','\x20===\x0a\x0a','utf-8','pre-check-failed','message','<UsernamePlaceholder>','QErHc','fLPvE','jJetH','type','AitkJ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','uHhsm','PfnwZ','isCliToolInstalled','Report\x20saved\x20in\x20','sGiUM','EmZiy','wnqdf','GqlwG','region','ZAeem','is\x20already\x20present','\x20\x20Code:\x20','IuQFN','handler','VGWuT','argv','description','options','DLadf','LOG','eyacW','CddBR','\x20data\x20:\x20','`\x20already\x20exists','gcibH','lSjLD','JDWmY','iyBpP','N/A','cVteS','vIzgW','pre-check-grid-profile-empty','\x20\x20Stack:\x20','gridProfile','LFKca','Vvrre','length','bstackAccesskey','requestId','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','NRwRG','pre_check','qNmCT','debug','command','qcSTu','JgJsO','418617qsevzW','Tool\x20Installed','FLMbi','EMRcH'];a17_0x4dfc=function(){return _0x302a44;};return a17_0x4dfc();}function printResponse(_0x40dbe8,_0x137c7c){const _0xc0a5d5=a17_0x16b4ca,_0x241469={};_0x241469['ofZSl']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x241469[_0xc0a5d5(0x194)]=_0xc0a5d5(0x135),_0x241469[_0xc0a5d5(0x224)]=_0xc0a5d5(0x187),_0x241469[_0xc0a5d5(0x1ac)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x241469[_0xc0a5d5(0x19a)]=_0xc0a5d5(0x1fd),_0x241469['lEZhs']=_0xc0a5d5(0x13d),_0x241469[_0xc0a5d5(0x1f4)]=function(_0x2b528a,_0x28c3b7){return _0x2b528a===_0x28c3b7;},_0x241469[_0xc0a5d5(0x138)]=_0xc0a5d5(0x147),_0x241469['gIBWf']=_0xc0a5d5(0x207);const _0x5d0635=_0x241469;logger[_0xc0a5d5(0x232)]('['+_0x40dbe8+_0xc0a5d5(0x245)+_0x137c7c[_0xc0a5d5(0x173)]+_0xc0a5d5(0x1ec)+_0x137c7c[_0xc0a5d5(0x18d)]+_0xc0a5d5(0x146)+_0x137c7c[_0xc0a5d5(0x20a)]);if(_0x137c7c[_0xc0a5d5(0x20a)]){if(_0x5d0635[_0xc0a5d5(0x1f4)](_0x5d0635[_0xc0a5d5(0x138)],_0x5d0635[_0xc0a5d5(0x214)])){const _0x1a44cc={};_0x1a44cc[_0xc0a5d5(0x1e6)]=_0x5d0635[_0xc0a5d5(0x158)],_0x1a44cc['type']=_0x5d0635[_0xc0a5d5(0x194)];const _0x4dad35={};_0x4dad35[_0xc0a5d5(0x1e6)]=_0x5d0635[_0xc0a5d5(0x224)],_0x4dad35[_0xc0a5d5(0x1d3)]=_0x5d0635[_0xc0a5d5(0x194)];const _0x4c55ab={};_0x4c55ab[_0xc0a5d5(0x1e6)]=_0x5d0635['azOSU'],_0x4c55ab['type']=_0x5d0635[_0xc0a5d5(0x194)];const _0xf062a4={};_0xf062a4[_0xc0a5d5(0x1e6)]=_0x5d0635['DndDf'],_0xf062a4['type']=_0x5d0635[_0xc0a5d5(0x194)];const _0x2c6eb9={};return _0x2c6eb9[_0xc0a5d5(0x221)]=_0x1a44cc,_0x2c6eb9[_0xc0a5d5(0x1ae)]=_0x4dad35,_0x2c6eb9['region']=_0x4c55ab,_0x2c6eb9[_0xc0a5d5(0x1b8)]=_0xf062a4,_0x132c3f[_0xc0a5d5(0x22e)](_0x99e899[_0xc0a5d5(0x1ff)])[_0xc0a5d5(0x19e)](_0x188b6f)[_0xc0a5d5(0x1e7)](_0x2c6eb9)[_0xc0a5d5(0x13d)](_0x5d0635[_0xc0a5d5(0x233)])[_0xc0a5d5(0x1e5)];}else logger['error']('error\x20stack\x20:\x20'+_0x137c7c[_0xc0a5d5(0x20a)]['stack']);}}async function generateReport(_0x2affb3,_0x4b1072){const _0x5da325=a17_0x16b4ca,_0x1ebdc1={'iQaFe':function(_0x1e8e7c,_0x8bf801){return _0x1e8e7c+_0x8bf801;},'EtnlU':_0x5da325(0x19b),'nKhBb':_0x5da325(0x238),'EMRcH':function(_0x200f92,_0x5a38d2){return _0x200f92||_0x5a38d2;},'jDCtr':_0x5da325(0x1f2),'lSjLD':_0x5da325(0x23a),'JMBAg':_0x5da325(0x22a),'sQRaM':function(_0x1ea863,_0x85d183){return _0x1ea863!=_0x85d183;},'EVfuo':_0x5da325(0x1e0),'PfnwZ':_0x5da325(0x174),'UkbRD':function(_0x29d1a2){return _0x29d1a2();}};let _0x549808=_0x5da325(0x234)+global_registry[_0x5da325(0x15c)]+_0x5da325(0x1cb);return _0x2affb3[_0x5da325(0x1c3)]((_0x2cb685,_0x1e7c69)=>{const _0x307a11=_0x5da325,{header:_0x3ef90d,response:_0x1cb38d}=_0x2cb685,{status:_0x2e67fa,data:_0x35c01e,error:_0xc36b31}=_0x1cb38d;_0x549808+=_0x3ef90d+'\x20#'+_0x1ebdc1[_0x307a11(0x15f)](_0x1e7c69,0x1)+'\x0a',_0x549808+=_0x307a11(0x218)+(_0x2e67fa?_0x1ebdc1[_0x307a11(0x1b2)]:_0x1ebdc1[_0x307a11(0x1a0)])+'\x0a',_0x549808+=_0x307a11(0x177)+_0x1ebdc1[_0x307a11(0x208)](_0x35c01e,_0x1ebdc1[_0x307a11(0x1aa)])+'\x0a',_0xc36b31&&(_0x549808+=_0x1ebdc1[_0x307a11(0x1ef)],_0x549808+=_0x307a11(0x199)+(_0xc36b31[_0x307a11(0x1ce)]||_0x1ebdc1[_0x307a11(0x1aa)])+'\x0a',_0x549808+=_0x307a11(0x1e1)+(_0xc36b31[_0x307a11(0x1bb)]||_0x1ebdc1['jDCtr'])+'\x0a',_0x549808+=_0x307a11(0x1f6)+(_0xc36b31[_0x307a11(0x23d)]||_0x1ebdc1[_0x307a11(0x1aa)])+'\x0a'),_0x549808+='\x0a\x0a';}),_0x549808+=_0x1ebdc1['JMBAg'],_0x1ebdc1[_0x5da325(0x14c)](_0x4b1072,null)?_0x549808+=_0x5da325(0x1a6)+global_registry[_0x5da325(0x165)]+'\x20'+(_0x4b1072?_0x1ebdc1[_0x5da325(0x14b)]:_0x1ebdc1[_0x5da325(0x1d7)])+'\x0a\x0a':_0x549808+=_0x5da325(0x1a6)+global_registry[_0x5da325(0x165)]+_0x5da325(0x244),_0x549808+=_0x1ebdc1[_0x5da325(0x198)](getSystemMetaData),_0x549808;};function a17_0x209a(_0x35d338,_0x2f1ace){const _0x4dfc79=a17_0x4dfc();return a17_0x209a=function(_0x209aee,_0x2c6073){_0x209aee=_0x209aee-0x134;let _0x2ab8de=_0x4dfc79[_0x209aee];return _0x2ab8de;},a17_0x209a(_0x35d338,_0x2f1ace);}exports[a17_0x16b4ca(0x1e3)]=async function(_0x1761a5){const _0x1c6aa2=a17_0x16b4ca,_0x51b9f8={'KrQZY':function(_0x469d5b){return _0x469d5b();},'ckqgy':function(_0x569566){return _0x569566();},'stbgg':_0x1c6aa2(0x183),'IuEpG':function(_0x4ddfc3,_0x4a68a6,_0x5a13a8,_0x10d81c,_0x3b728f,_0x4ab8bd,_0x4dcf44,_0xca8fbc){return _0x4ddfc3(_0x4a68a6,_0x5a13a8,_0x10d81c,_0x3b728f,_0x4ab8bd,_0x4dcf44,_0xca8fbc);},'FZfIN':_0x1c6aa2(0x13c),'EBfUk':'credential-not-found','Vvrre':_0x1c6aa2(0x20a),'fNqke':function(_0x444d05,_0x408400,_0x138cb1,_0x395faf,_0x4c1cd4,_0x4a3849,_0x10bce3){return _0x444d05(_0x408400,_0x138cb1,_0x395faf,_0x4c1cd4,_0x4a3849,_0x10bce3);},'IxaWi':_0x1c6aa2(0x1cf),'RRkZI':_0x1c6aa2(0x161),'cJDgS':function(_0x1e96c3,_0x24a500,_0x2f49e8){return _0x1e96c3(_0x24a500,_0x2f49e8);},'qNmCT':function(_0x23cc5d,_0x6de770,_0xff844d){return _0x23cc5d(_0x6de770,_0xff844d);},'sIPdb':_0x1c6aa2(0x1b9),'bymGw':function(_0x6a8ba2,_0x5ef6f1,_0xdf277c){return _0x6a8ba2(_0x5ef6f1,_0xdf277c);},'HKNgj':_0x1c6aa2(0x1a3),'OhmIX':_0x1c6aa2(0x15a),'xaAhP':_0x1c6aa2(0x213),'ddvkc':function(_0x4f1f66,_0x176a02,_0x5dd783){return _0x4f1f66(_0x176a02,_0x5dd783);},'PyICi':_0x1c6aa2(0x180),'yYBaI':function(_0x4317f1,_0x39f6f2){return _0x4317f1(_0x39f6f2);},'tzBxz':_0x1c6aa2(0x21d),'VRuwY':_0x1c6aa2(0x215),'FrNHK':_0x1c6aa2(0x206),'FoHZN':_0x1c6aa2(0x149),'OvoSf':_0x1c6aa2(0x17a),'EEtgz':_0x1c6aa2(0x20b),'gcibH':function(_0x5bab5d,_0x24ba2f){return _0x5bab5d+_0x24ba2f;},'eyacW':_0x1c6aa2(0x1cc),'bBmCz':function(_0x3f3d1b,_0x5a74ff,_0x3aa7b1,_0x1690da,_0x1631fb,_0x3db380,_0xcc6bfc){return _0x3f3d1b(_0x5a74ff,_0x3aa7b1,_0x1690da,_0x1631fb,_0x3db380,_0xcc6bfc);},'byaQj':_0x1c6aa2(0x1cd)};let _0x49d331,_0x7b35a5;try{global_registry[_0x1c6aa2(0x1fc)]=_0x51b9f8[_0x1c6aa2(0x21e)](uuidv4);!fs['existsSync'](_0x51b9f8[_0x1c6aa2(0x181)](getCredentialsPath))&&(_0x7b35a5=_0x51b9f8[_0x1c6aa2(0x23e)],logger[_0x1c6aa2(0x20a)](_0x7b35a5),await _0x51b9f8[_0x1c6aa2(0x227)](reportToGalactusAndSendToEDS,_0x1761a5,_0x49d331,_0x7b35a5,messageTypes['ERROR'],_0x51b9f8[_0x1c6aa2(0x189)],_0x51b9f8[_0x1c6aa2(0x179)],_0x51b9f8[_0x1c6aa2(0x1f9)]),process[_0x1c6aa2(0x1ca)](0x1));_0x51b9f8[_0x1c6aa2(0x14e)](sendInstrumentationEvent,_0x1761a5,_0x51b9f8[_0x1c6aa2(0x189)],messageTypes[_0x1c6aa2(0x226)],null,null,_0x1761a5);const _0x84b3e3=JSON[_0x1c6aa2(0x190)](fs[_0x1c6aa2(0x222)](_0x51b9f8['ckqgy'](getCredentialsPath)));global_registry[_0x1c6aa2(0x15e)]=_0x84b3e3[_0x1c6aa2(0x169)]['username'],global_registry[_0x1c6aa2(0x1fb)]=_0x84b3e3['Browserstack'][_0x1c6aa2(0x195)];const _0x3abe23=WS_ENDPOINT[_0x1c6aa2(0x143)](_0x51b9f8[_0x1c6aa2(0x14a)],_0x84b3e3[_0x1c6aa2(0x169)][_0x1c6aa2(0x1c4)])[_0x1c6aa2(0x143)](_0x51b9f8[_0x1c6aa2(0x20d)],_0x84b3e3['Browserstack'][_0x1c6aa2(0x195)]),_0x19f121={};_0x19f121['WebSocket']=ws,_0x19f121[_0x1c6aa2(0x167)]=0x36ee80,_0x49d331=new ReconnectingWebSocket(_0x3abe23,[],_0x19f121),global_registry[_0x1c6aa2(0x22c)]=_0x51b9f8[_0x1c6aa2(0x192)](getAuthHeader,global_registry[_0x1c6aa2(0x15e)],global_registry['bstackAccesskey']),await _0x51b9f8[_0x1c6aa2(0x200)](inputValidation,_0x1761a5,_0x49d331),logger[_0x1c6aa2(0x232)](_0x1c6aa2(0x1d5)+global_registry[_0x1c6aa2(0x15c)]+_0x1c6aa2(0x14d)+global_registry['clusterRegion']);let _0x89943b=await _0x51b9f8[_0x1c6aa2(0x14e)](getCloudProviderObjectWithOutInit,global_registry[_0x1c6aa2(0x15c)],global_registry[_0x1c6aa2(0x165)],_0x51b9f8[_0x1c6aa2(0x18f)],_0x49d331,webSocketUtils,_0x1761a5);const _0x5157d5=await _0x89943b[_0x1c6aa2(0x1d8)]();_0x51b9f8['bymGw'](printResponse,_0x51b9f8[_0x1c6aa2(0x141)],_0x5157d5),_0x89943b=await _0x89943b[_0x1c6aa2(0x168)]();let _0x593db8=![];try{_0x593db8=await _0x89943b['isClusterPresent']();}catch(_0x5c994c){const _0xd8f703=_0x51b9f8[_0x1c6aa2(0x17d)][_0x1c6aa2(0x19c)]('|');let _0x16211e=0x0;while(!![]){switch(_0xd8f703[_0x16211e++]){case'0':_0x7b35a5+='\x0a'+JSON[_0x1c6aa2(0x162)](_0x5c994c[_0x1c6aa2(0x23d)]);continue;case'1':logger['error'](_0x7b35a5);continue;case'2':_0x7b35a5=_0x1c6aa2(0x134)+global_registry[_0x1c6aa2(0x165)]+_0x1c6aa2(0x23f)+global_registry[_0x1c6aa2(0x18e)]+_0x1c6aa2(0x1b3)+_0x5c994c;continue;case'3':_0x593db8=null;continue;case'4':await _0x51b9f8['IuEpG'](reportToGalactusAndSendToEDS,_0x1761a5,_0x49d331,_0x7b35a5,messageTypes[_0x1c6aa2(0x1c2)],_0x51b9f8[_0x1c6aa2(0x189)],'cluster-check-failed-'+global_registry[_0x1c6aa2(0x15c)],_0x51b9f8[_0x1c6aa2(0x1f9)]);continue;}break;}}_0x593db8&&logger[_0x1c6aa2(0x232)](_0x1c6aa2(0x212)+global_registry[_0x1c6aa2(0x165)]+_0x1c6aa2(0x1ed));const _0x4e0065=await _0x89943b['checkAccess']();_0x51b9f8[_0x1c6aa2(0x192)](printResponse,_0x51b9f8['xaAhP'],_0x4e0065);const _0x4578ec=await _0x51b9f8['ckqgy'](curlRequest);_0x51b9f8[_0x1c6aa2(0x217)](printResponse,_0x51b9f8[_0x1c6aa2(0x14f)],_0x4578ec);const _0x8c8d5c=await _0x51b9f8[_0x1c6aa2(0x223)](isTlsSupported,_0x51b9f8['tzBxz']);_0x51b9f8[_0x1c6aa2(0x200)](printResponse,_0x51b9f8[_0x1c6aa2(0x193)],_0x8c8d5c);const _0x293aac={};_0x293aac[_0x1c6aa2(0x1b6)]=_0x51b9f8[_0x1c6aa2(0x1bc)],_0x293aac[_0x1c6aa2(0x137)]=_0x5157d5;const _0xb7a8b2={};_0xb7a8b2[_0x1c6aa2(0x1b6)]=_0x51b9f8[_0x1c6aa2(0x18c)],_0xb7a8b2[_0x1c6aa2(0x137)]=_0x4e0065;const _0x961a07={};_0x961a07[_0x1c6aa2(0x1b6)]=_0x51b9f8['OvoSf'],_0x961a07[_0x1c6aa2(0x137)]=_0x4578ec;const _0x20a986={};_0x20a986[_0x1c6aa2(0x1b6)]=_0x51b9f8['EEtgz'],_0x20a986['response']=_0x8c8d5c;const _0x1f8510=[_0x293aac,_0xb7a8b2,_0x961a07,_0x20a986],_0x41b7bc=await _0x51b9f8['qNmCT'](generateReport,_0x1f8510,_0x593db8),_0x5d3f7e=new Date(),_0x39441b=_0x5d3f7e['getUTCFullYear']()+'_'+_0x51b9f8[_0x1c6aa2(0x1ee)](_0x5d3f7e[_0x1c6aa2(0x22f)](),0x1)+'_'+_0x5d3f7e[_0x1c6aa2(0x220)]()+'_'+_0x5d3f7e[_0x1c6aa2(0x1a8)]()+'_'+_0x5d3f7e[_0x1c6aa2(0x18a)](),_0x4cb94e=_0x1c6aa2(0x247)+_0x39441b+_0x1c6aa2(0x152);fs[_0x1c6aa2(0x145)](_0x4cb94e,_0x41b7bc,_0x51b9f8[_0x1c6aa2(0x1ea)]),logger[_0x1c6aa2(0x232)](_0x1c6aa2(0x1d9)+_0x4cb94e),process[_0x1c6aa2(0x1ca)](0x0);}catch(_0x19b1d6){let _0x1b6f6a='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x19b1d6+'\x20';logger['error'](_0x1b6f6a),_0x1b6f6a+='\x0a'+JSON[_0x1c6aa2(0x162)](_0x19b1d6[_0x1c6aa2(0x23d)]),logger[_0x1c6aa2(0x201)](_0x1c6aa2(0x1c5)+_0x19b1d6['stack']);if(_0x49d331){const _0x3360f8={};_0x3360f8[_0x1c6aa2(0x1d3)]=WS_EVENTS[_0x1c6aa2(0x1e9)],_0x3360f8['message']=_0x1b6f6a,webSocketUtils['sendEventToBackend'](_0x49d331,_0x3360f8,_0x51b9f8['Vvrre'],!![]);}await webSocketUtils[_0x1c6aa2(0x239)](0x7d0);const _0x2cf342={};_0x2cf342[_0x1c6aa2(0x20a)]=_0x1b6f6a,await _0x51b9f8['bBmCz'](sendInstrumentationEvent,_0x1761a5,_0x51b9f8[_0x1c6aa2(0x189)],messageTypes[_0x1c6aa2(0x1c2)],_0x51b9f8['byaQj'],_0x2cf342,_0x1761a5),process[_0x1c6aa2(0x1ca)](0x1);}};
1
+ const a17_0xd84848=a17_0x16f3;(function(_0x5a561f,_0x53092f){const _0x405b9f=a17_0x16f3,_0x44c9eb=_0x5a561f();while(!![]){try{const _0x2be294=parseInt(_0x405b9f(0x1d5))/0x1*(parseInt(_0x405b9f(0x113))/0x2)+-parseInt(_0x405b9f(0x168))/0x3+parseInt(_0x405b9f(0xf1))/0x4+-parseInt(_0x405b9f(0x1bb))/0x5*(parseInt(_0x405b9f(0x180))/0x6)+parseInt(_0x405b9f(0x16a))/0x7+-parseInt(_0x405b9f(0x1dc))/0x8+parseInt(_0x405b9f(0x1d8))/0x9*(parseInt(_0x405b9f(0x10e))/0xa);if(_0x2be294===_0x53092f)break;else _0x44c9eb['push'](_0x44c9eb['shift']());}catch(_0x5f5175){_0x44c9eb['push'](_0x44c9eb['shift']());}}}(a17_0x3140,0x4592c));const fs=require('fs'),ws=require('ws'),got=require(a17_0xd84848(0x1a0)),{v4:uuidv4}=require(a17_0xd84848(0x1ac)),ReconnectingWebSocket=require(a17_0xd84848(0x175)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0xd84848(0x1ca)),{logger}=require(a17_0xd84848(0x1cc)),{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_0xd84848(0x1b7)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0xd84848(0x105)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0xd84848(0x127)]=a17_0xd84848(0x132),exports[a17_0xd84848(0x18f)]=a17_0xd84848(0x1c5),exports[a17_0xd84848(0x133)]=function(_0x59d1ca){const _0x2ffcbc=a17_0xd84848,_0x174d64={};_0x174d64[_0x2ffcbc(0x15b)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x174d64[_0x2ffcbc(0x166)]=_0x2ffcbc(0x115),_0x174d64[_0x2ffcbc(0x10d)]=_0x2ffcbc(0x1d0),_0x174d64['LBHxh']=_0x2ffcbc(0x1a8),_0x174d64['ifOTN']=_0x2ffcbc(0x169),_0x174d64[_0x2ffcbc(0x179)]=_0x2ffcbc(0x11a);const _0x19eaac=_0x174d64,_0x7f5ccf={};_0x7f5ccf[_0x2ffcbc(0xf4)]=_0x19eaac[_0x2ffcbc(0x15b)],_0x7f5ccf[_0x2ffcbc(0x158)]=_0x19eaac['pjDro'];const _0x450150={};_0x450150[_0x2ffcbc(0xf4)]=_0x19eaac[_0x2ffcbc(0x10d)],_0x450150[_0x2ffcbc(0x158)]=_0x19eaac[_0x2ffcbc(0x166)];const _0xa7d1b7={};_0xa7d1b7[_0x2ffcbc(0xf4)]=_0x19eaac['LBHxh'],_0xa7d1b7['type']=_0x19eaac['pjDro'];const _0x67eccf={};_0x67eccf[_0x2ffcbc(0xf4)]=_0x19eaac[_0x2ffcbc(0x1b8)],_0x67eccf[_0x2ffcbc(0x158)]=_0x19eaac['pjDro'];const _0x1dbef8={};return _0x1dbef8['cluster-name']=_0x7f5ccf,_0x1dbef8[_0x2ffcbc(0x1c1)]=_0x450150,_0x1dbef8[_0x2ffcbc(0x125)]=_0xa7d1b7,_0x1dbef8[_0x2ffcbc(0x1c9)]=_0x67eccf,_0x59d1ca[_0x2ffcbc(0x14c)](HELP_HEADER_MESSAGE[_0x2ffcbc(0x163)])[_0x2ffcbc(0x1a6)](HELP_FOOTER_MESSAGE)['options'](_0x1dbef8)[_0x2ffcbc(0x11a)](_0x19eaac['QoJPF'])[_0x2ffcbc(0x16b)];};function a17_0x16f3(_0x31545f,_0x4b49cc){const _0x3140c3=a17_0x3140();return a17_0x16f3=function(_0x16f341,_0x3a00ff){_0x16f341=_0x16f341-0xe8;let _0x53e276=_0x3140c3[_0x16f341];return _0x53e276;},a17_0x16f3(_0x31545f,_0x4b49cc);}async function inputValidation(_0xdf6575,_0x28328e){const _0x114e0b=a17_0xd84848,_0x5a6e66={'cjDTu':_0x114e0b(0x140),'oWqom':_0x114e0b(0x156),'ROkQK':_0x114e0b(0x125),'GChOU':_0x114e0b(0x1bc),'uJbUc':_0x114e0b(0x1cf),'nHgDW':_0x114e0b(0x1ae),'pUZuo':function(_0x53e9f4,_0x147b73){return _0x53e9f4+_0x147b73;},'zUBOz':'Success','dQnzI':_0x114e0b(0x1b4),'XiDpv':function(_0x3728d6,_0x216d7b){return _0x3728d6||_0x216d7b;},'LZtuG':_0x114e0b(0x16c),'UGLnv':_0x114e0b(0x1c1),'zUdRn':_0x114e0b(0x121),'rMnAS':function(_0x2e6982,_0x5bdf67){return _0x2e6982===_0x5bdf67;},'jDsve':_0x114e0b(0x1af),'jIfVm':function(_0x2ee4b4,_0x17361c){return _0x2ee4b4!==_0x17361c;},'feadL':_0x114e0b(0x192),'YYOVQ':_0x114e0b(0x19f),'jmsBt':_0x114e0b(0xfd),'NMAYE':_0x114e0b(0x1d6),'GczZL':_0x114e0b(0x1b1),'vOBUa':function(_0x43ad7a,_0x1dee70){return _0x43ad7a===_0x1dee70;},'sWyQM':_0x114e0b(0x1a1),'PXJAz':function(_0x47cabf,_0x37ecfa){return _0x47cabf>_0x37ecfa;},'MSINM':_0x114e0b(0x162),'OfCcK':function(_0x2b6f47,_0x5669d9,_0x10f5e8,_0x830be3,_0x50a98c,_0x314eb2,_0x323a15,_0x8cfc35){return _0x2b6f47(_0x5669d9,_0x10f5e8,_0x830be3,_0x50a98c,_0x314eb2,_0x323a15,_0x8cfc35);},'eqcQE':_0x114e0b(0x106),'aycew':_0x114e0b(0x12f),'IyqCy':function(_0x5efbe7,_0x294753){return _0x5efbe7!==_0x294753;},'ucXBB':'VmGGd','pxpdT':_0x114e0b(0x17f),'vWITC':_0x114e0b(0x11d),'yXQeI':_0x114e0b(0x14b),'SwgUC':_0x114e0b(0x1c7),'IDfDH':_0x114e0b(0x1bd),'rTKfK':_0x114e0b(0x1df),'RGSTD':function(_0xa2c999,_0x52429f,_0x1d3fe1){return _0xa2c999(_0x52429f,_0x1d3fe1);},'XhoDO':function(_0x3a8522,_0x4c7406,_0x36eacc,_0xd6dd48,_0xc34e09,_0x10d459){return _0x3a8522(_0x4c7406,_0x36eacc,_0xd6dd48,_0xc34e09,_0x10d459);},'hwGfT':_0x114e0b(0x118),'OBgzk':_0x114e0b(0x1c9),'JweEZ':function(_0x5be078,_0x3e653a){return _0x5be078!==_0x3e653a;},'ALVzy':'xCFmt','QeRXB':function(_0x261be7,_0x1c0ff9){return _0x261be7(_0x1c0ff9);},'rEDQB':function(_0xf4fa9,_0x1eff99){return _0xf4fa9!==_0x1eff99;},'ZfRCG':_0x114e0b(0x176),'fDuBD':function(_0x482a74,_0x24f01a,_0x1ec4bb,_0x85a7c6,_0x249618,_0x12259d,_0x53b19e,_0x3621d9){return _0x482a74(_0x24f01a,_0x1ec4bb,_0x85a7c6,_0x249618,_0x12259d,_0x53b19e,_0x3621d9);},'yBnjq':_0x114e0b(0xef),'eroVS':_0x114e0b(0x149),'mbcqy':_0x114e0b(0xf5),'aJHvg':_0x114e0b(0x1c8),'JOMgY':_0x114e0b(0x1a4),'PHgIc':function(_0x4e2ca2,_0x10063a){return _0x4e2ca2!==_0x10063a;},'jGpPe':_0x114e0b(0x1dd),'DVnXX':function(_0x40851a,_0x116e5d){return _0x40851a===_0x116e5d;},'KHndw':'CvYRd','WzqtH':_0x114e0b(0x1be),'aZxqF':function(_0x4e2de3,_0x39474f,_0x4fa2f4,_0x13b259,_0x57572b,_0x5a85bc,_0x1919ed,_0x22b5f7){return _0x4e2de3(_0x39474f,_0x4fa2f4,_0x13b259,_0x57572b,_0x5a85bc,_0x1919ed,_0x22b5f7);}};let _0x5c5c8a;try{if(_0x5a6e66['rMnAS'](_0x5a6e66[_0x114e0b(0x143)],_0x5a6e66[_0x114e0b(0x143)])){if(_0xdf6575[_0x114e0b(0x12b)]||_0xdf6575['cloudProvider']||_0xdf6575[_0x114e0b(0x125)]){if(_0x5a6e66[_0x114e0b(0x1a3)](_0x5a6e66['feadL'],_0x5a6e66[_0x114e0b(0x1da)])){const _0xf3d018=[];!_0xdf6575[_0x114e0b(0x12b)]&&(_0x5a6e66[_0x114e0b(0x1e1)](_0x5a6e66[_0x114e0b(0x1d3)],_0x5a6e66[_0x114e0b(0x1d3)])?_0xf3d018[_0x114e0b(0x13c)](_0x5a6e66[_0x114e0b(0x151)]):(_0x207144+=_0x5a6e66[_0x114e0b(0x11f)],_0x5a98bc+='\x20\x20Message:\x20'+(_0x51d793[_0x114e0b(0x1c3)]||_0x5a6e66[_0x114e0b(0x109)])+'\x0a',_0x3f601c+='\x20\x20Code:\x20'+(_0x1879e3[_0x114e0b(0x1cd)]||_0x5a6e66[_0x114e0b(0x109)])+'\x0a',_0x37b644+=_0x114e0b(0x194)+(_0x24c60e['stack']||_0x5a6e66['oWqom'])+'\x0a'));;!_0xdf6575[_0x114e0b(0x12a)]&&(_0x5a6e66[_0x114e0b(0x1a3)](_0x5a6e66[_0x114e0b(0x16d)],_0x5a6e66['GczZL'])?_0xf3d018[_0x114e0b(0x13c)](_0x5a6e66[_0x114e0b(0x12d)]):_0xb83bf1[_0x114e0b(0x1b9)](0x1));;!_0xdf6575[_0x114e0b(0x125)]&&(_0x5a6e66['vOBUa'](_0x5a6e66[_0x114e0b(0x18c)],_0x5a6e66[_0x114e0b(0x18c)])?_0xf3d018[_0x114e0b(0x13c)](_0x5a6e66[_0x114e0b(0xee)]):(_0xb45880[_0x114e0b(0x1d1)](_0x114e0b(0x1a7)+_0x425ed8[_0x114e0b(0x138)]+'\x20'),_0xa5afb8[_0x114e0b(0x12a)]=_0x16b303['CLOUD_PROVIDER']));;_0x5a6e66[_0x114e0b(0x13f)](_0xf3d018[_0x114e0b(0x17b)],0x0)&&(_0x5a6e66[_0x114e0b(0x1c0)](_0x5a6e66[_0x114e0b(0x173)],_0x5a6e66[_0x114e0b(0x173)])?(_0x5c5c8a=_0x114e0b(0x18b)+_0xf3d018['join'](',\x20')+_0x114e0b(0x119),await _0x5a6e66['OfCcK'](reportToGalactusAndSendToEDS,_0xdf6575,_0x28328e,_0x5c5c8a,messageTypes['ERROR'],_0x5a6e66[_0x114e0b(0x171)],_0x5a6e66[_0x114e0b(0x164)],_0x5a6e66[_0x114e0b(0x139)]),logger[_0x114e0b(0x16c)](_0x5c5c8a),process[_0x114e0b(0x1b9)](0x1)):_0x5d66c6[_0x114e0b(0x13c)](_0x5a6e66[_0x114e0b(0xee)])),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xdf6575[_0x114e0b(0x12a)][_0x114e0b(0x17e)]())&&(_0x5a6e66[_0x114e0b(0x16e)](_0x5a6e66[_0x114e0b(0x19c)],_0x5a6e66['pxpdT'])?(_0x5c5c8a=_0x5a6e66[_0x114e0b(0x17a)],await _0x5a6e66[_0x114e0b(0x1e4)](reportToGalactusAndSendToEDS,_0xdf6575,_0x28328e,_0x5c5c8a,messageTypes[_0x114e0b(0x1db)],_0x5a6e66[_0x114e0b(0x171)],_0x5a6e66['yXQeI'],_0x5a6e66[_0x114e0b(0x139)]),logger[_0x114e0b(0x16c)](_0x5c5c8a),!_0xdf6575['cloudProvider']&&(_0x5a6e66['IyqCy'](_0x5a6e66[_0x114e0b(0x157)],_0x5a6e66['SwgUC'])?_0x11dc63+=_0x114e0b(0x153)+_0x6ff86b['clusterName']+'\x20'+(_0x44008b?_0x5a6e66['GChOU']:_0x5a6e66['uJbUc'])+'\x0a\x0a':(logger[_0x114e0b(0x1d1)](_0x114e0b(0x1a7)+DEFAULT_CLUSTER_DETAILS[_0x114e0b(0x138)]+'\x20'),_0xdf6575[_0x114e0b(0x12a)]=DEFAULT_CLUSTER_DETAILS[_0x114e0b(0x138)]))):_0xc30c31['push'](_0x5a6e66[_0x114e0b(0x151)])),global_registry[_0x114e0b(0x12b)]=_0xdf6575[_0x114e0b(0x12b)],global_registry[_0x114e0b(0x12a)]=_0xdf6575['cloudProvider'],global_registry['clusterRegion']=_0xdf6575['region'];}else _0x416106+=_0x114e0b(0x153)+_0x4b67a8[_0x114e0b(0x12b)]+_0x114e0b(0xfe);}else{if(_0xdf6575['gridProfile']){if(_0x5a6e66[_0x114e0b(0x1e1)](_0x5a6e66[_0x114e0b(0x11e)],_0x5a6e66['IDfDH'])){global_registry[_0x114e0b(0x172)]=_0xdf6575[_0x114e0b(0x172)],logger[_0x114e0b(0x110)]('grid\x20profile\x20flow\x20'+_0xdf6575[_0x114e0b(0x172)]);const _0x1eb6ab=_0x114e0b(0x129)+AG_API_URL+_0x114e0b(0x1ba),_0x2aae6e={};_0x2aae6e['method']=_0x5a6e66[_0x114e0b(0x196)],_0x2aae6e['headers']=global_registry[_0x114e0b(0x12c)],_0x2aae6e[_0x114e0b(0x1a2)]=![];const _0x1ae3b8=_0x2aae6e,_0x52a161=await _0x5a6e66[_0x114e0b(0xfb)](got,_0x1eb6ab,_0x1ae3b8),_0x21479c=await _0x5a6e66['XhoDO'](responseValidation,_0x52a161,_0x5a6e66[_0x114e0b(0xff)],_0x5a6e66[_0x114e0b(0x1d7)],_0xdf6575,_0x28328e);let _0x23cee5={};if(_0x5a6e66['vOBUa'](_0x21479c,0xc8)){if(_0x5a6e66['JweEZ'](_0x5a6e66[_0x114e0b(0x10a)],_0x5a6e66[_0x114e0b(0x10a)])){const {header:_0x2b44e9,response:_0x3c9985}=_0x2b0ac9,{status:_0x5713d6,data:_0x25bad6,error:_0x5726c1}=_0x3c9985;_0x546dad+=_0x2b44e9+'\x20#'+_0x5a6e66[_0x114e0b(0xed)](_0x20027e,0x1)+'\x0a',_0x390f2c+=_0x114e0b(0x167)+(_0x5713d6?_0x5a6e66[_0x114e0b(0x12e)]:_0x5a6e66[_0x114e0b(0x199)])+'\x0a',_0x3a76a0+=_0x114e0b(0x19d)+_0x5a6e66[_0x114e0b(0x1e3)](_0x25bad6,_0x5a6e66[_0x114e0b(0x109)])+'\x0a',_0x5726c1&&(_0x32257a+=_0x5a6e66[_0x114e0b(0x11f)],_0x56817b+='\x20\x20Message:\x20'+(_0x5726c1[_0x114e0b(0x1c3)]||_0x5a6e66[_0x114e0b(0x109)])+'\x0a',_0x1f9f15+=_0x114e0b(0x107)+(_0x5726c1[_0x114e0b(0x1cd)]||_0x5a6e66['oWqom'])+'\x0a',_0x199c8d+=_0x114e0b(0x194)+(_0x5726c1['stack']||_0x5a6e66['oWqom'])+'\x0a'),_0x554b26+='\x0a\x0a';}else{const _0xc546ea=JSON[_0x114e0b(0x1a5)](_0x52a161['body']),_0x25e66f=_0xc546ea['find'](_0x1e5843=>_0x1e5843['name']===_0xdf6575[_0x114e0b(0x172)])||null;if(_0x5a6e66[_0x114e0b(0x1d4)](isUndefined,_0x25e66f))_0x5a6e66['rEDQB'](_0x5a6e66['ZfRCG'],_0x5a6e66[_0x114e0b(0x161)])?_0x5e14f2[_0x114e0b(0x16c)](_0x114e0b(0x186)+_0x30f8f7[_0x114e0b(0x16c)][_0x114e0b(0xfc)]):(_0x5c5c8a=_0x114e0b(0x136)+_0xdf6575['gridProfile']+_0x114e0b(0x10b),await _0x5a6e66[_0x114e0b(0x10c)](reportToGalactusAndSendToEDS,_0xdf6575,_0x28328e,_0x5c5c8a,messageTypes[_0x114e0b(0x1db)],_0x5a6e66[_0x114e0b(0x171)],_0x5a6e66[_0x114e0b(0x170)],_0x5a6e66[_0x114e0b(0x139)]),logger[_0x114e0b(0x16c)](_0x5c5c8a),process[_0x114e0b(0x1b9)](0x1));else{if(_0x5a6e66[_0x114e0b(0x1c0)](_0x5a6e66['eroVS'],_0x5a6e66[_0x114e0b(0x134)])){const _0x4a6b3e={};_0x4a6b3e[_0x114e0b(0x158)]=_0x2ab11c['LOG'],_0x4a6b3e[_0x114e0b(0x1c3)]=_0x1729a9,_0x4021a2['sendEventToBackend'](_0x323233,_0x4a6b3e,_0x5a6e66['LZtuG'],!![]);}else _0x23cee5=_0x25e66f;}}}else _0x5a6e66['rMnAS'](_0x5a6e66['aJHvg'],_0x5a6e66['aJHvg'])?process[_0x114e0b(0x1b9)](0x1):(_0x36b043[_0x114e0b(0x1d1)]('['+_0x15a4fd+']\x20status\x20:\x20'+_0x2121e3[_0x114e0b(0x130)]+'\x20data\x20:\x20'+_0x527452['data']+_0x114e0b(0x155)+_0x4dbe4e[_0x114e0b(0x16c)]),_0x1a3cad[_0x114e0b(0x16c)]&&_0x31e9cb['error'](_0x114e0b(0x186)+_0x4f8409[_0x114e0b(0x16c)]['stack']));const _0x4f400e={};_0x4f400e[_0x114e0b(0x158)]=WS_EVENTS[_0x114e0b(0x183)],_0x4f400e['message']=_0x5a6e66[_0x114e0b(0x126)],webSocketUtils[_0x114e0b(0x15e)](_0x28328e,_0x4f400e),global_registry[_0x114e0b(0x12a)]=_0x23cee5[_0x114e0b(0x12a)],global_registry[_0x114e0b(0x101)]=_0x23cee5['region'],global_registry['clusterName']=_0x23cee5[_0x114e0b(0x12b)];}else _0x572e89[_0x114e0b(0x1d1)]('Cluster\x20`'+_0x17c4bf[_0x114e0b(0x12b)]+_0x114e0b(0x182));}else _0x5a6e66['PHgIc'](_0x5a6e66[_0x114e0b(0xe8)],_0x5a6e66[_0x114e0b(0xe8)])?_0x54d278=_0x2ccaad:(logger['error'](_0x5a6e66[_0x114e0b(0x142)]),process[_0x114e0b(0x1b9)](0x1));}}else _0x44e03f[_0x114e0b(0x13c)](_0x5a6e66['UGLnv']);}catch(_0x325569){_0x5a6e66[_0x114e0b(0x184)](_0x5a6e66[_0x114e0b(0x14e)],_0x5a6e66[_0x114e0b(0x1c6)])?(_0x29f7c7[_0x114e0b(0x16c)](_0x5a6e66[_0x114e0b(0x142)]),_0x30cfa2[_0x114e0b(0x1b9)](0x1)):(_0x5c5c8a=_0x114e0b(0x15f)+_0x325569+':\x20'+_0x325569[_0x114e0b(0xfc)],logger[_0x114e0b(0x16c)](_0x5c5c8a),await _0x5a6e66[_0x114e0b(0x1b5)](reportToGalactusAndSendToEDS,_0xdf6575,_0x28328e,_0x5c5c8a,messageTypes['ERROR'],_0x5a6e66[_0x114e0b(0x171)],_0x5a6e66[_0x114e0b(0x14d)],_0x5a6e66[_0x114e0b(0x139)]),process['exit'](0x1));}}function a17_0x3140(){const _0x4ffaef=['Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','getUTCMinutes','<UsernamePlaceholder>','gJjwM','region','JOMgY','command','writeFileSync','https://','cloudProvider','clusterName','authHeader','UGLnv','zUBOz','pre-check-cluster-args-not-passed','status','UZdTd','grid','builder','mbcqy','roviK','Invalid\x20input.\x20grid\x20profiles:\x20','rtXEm','CLOUD_PROVIDER','LZtuG','init','pre-check-failed','push','===\x20Precheck\x20Report\x20-\x20','bMyTQ','PXJAz','Error\x20Details:\x0a','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zUdRn','jDsve','sPJbZ','stringify','HzWWC','NsAUN','Prjvv','RaKzt','kPQVz','cloud-provider-not-supported','usage','yXQeI','KHndw','getUTCDate','existsSync','nHgDW','oNbBB','Cluster\x20','Browserstack','\x20error\x20:\x20','N/A','SwgUC','type','cluster-check-failed-','<PasswordPlaceholder>','rOhLB','BMtjz','OOnGo','sendEventToBackend','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Success','ZfRCG','szDsJ','pre_check','aycew','\x20data\x20:\x20','pjDro','Status:\x20','653451kHcCVW','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','1037211XFOkLb','argv','error','NMAYE','IyqCy','fEETw','yBnjq','eqcQE','gridProfile','MSINM','fJBUN','reconnecting-websocket','PgHcs','stack\x20trace\x20','Whitelisted\x20browserstack','QoJPF','vWITC','length','response',']\x20status\x20:\x20','toLowerCase','pzsNN','1626beRbUn','ORiSa','`\x20already\x20exists','LOG','DVnXX','OJSlZ','error\x20stack\x20:\x20','.txt','yhmLm','log/report_','forEach','Missing\x20required\x20arguments:\x20','sWyQM','iphil','Failed\x20in\x20pre-check!\x20Error:\x20','desc','iAfOw','TLSv1_2_client_method','WJVbA','nnzyl','\x20\x20Stack:\x20','Cluster\x20details\x0a-----------------------\x0a','rTKfK','fEDMV','tVPjj','dQnzI','SSL\x20Configured','Tool\x20Installed','ucXBB','Message:\x20','bxGWY','CvKzX','got','SILez','throwHttpErrors','jIfVm','Grid\x20profile\x20fetched\x20for\x20pre-check','parse','epilogue','Setting\x20cloud\x20provider\x20as\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','HpgWq','bstackAccesskey','dummy-grid','uuid','HCDbK','cluster-name','LgdLc','jGuuS','qLUQk','isTrialGridAccessible','MrCly','Failure','aZxqF','ZvGIV','../../config/constants','ifOTN','exit','/packages/cli/get-all-grid-profiles','4795umnsMT','is\x20already\x20present','amruF','jpBgV','requestId','vOBUa','cloud-provider','`\x20is\x20present\x20in\x20region\x20`','message','isTls1_2_SUPPORTED','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','WzqtH','VmwPG','nFkok','grid-profile','../../utils/utilityMethods','utf-8','../../config/logger','code','handler','will\x20be\x20created','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','info','getUTCMonth','jmsBt','QeRXB','7NEAnbV','ZxASH','OBgzk','2305683EjHmll','AYcOD','YYOVQ','ERROR','1800032PXiBxn','dPjnY','password','GET','SYgWS','rMnAS','\x20region\x20-\x20','XiDpv','OfCcK','kGQap','jGpPe','zzJOa','mECur','NqKRW','Cluster\x20`','pUZuo','ROkQK','pre-check-grid-profile-empty','accessResp','1394476RARoNT','qjaAN','header','description','hzLcG','sHPiz','delay','username','cgNKl','3|2|4|1|0','RGSTD','stack','cbnWf','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','hwGfT','Ixeiv','clusterRegion','bstackUsername','bsMna','INFO','../../utils/webSocketUtils','pre-check-grid-called','\x20\x20Code:\x20','toolInstalledResp','oWqom','ALVzy','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','fDuBD','EULjg','10pRkeuL','vWmii','debug','ibGxK','ihItP','67058iJDbYJ','\x20\x20Message:\x20','string','options','connectionTimeout','pre-check','.\x20Please\x20provide\x20all\x20required\x20arguments.','help','tneTI','unable\x20to\x20verify\x20if\x20cluster\x20`','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','IDfDH','cjDTu','replace'];a17_0x3140=function(){return _0x4ffaef;};return a17_0x3140();}function printResponse(_0x5baf05,_0x1a64dc){const _0x5da15e=a17_0xd84848,_0x491c7c={};_0x491c7c[_0x5da15e(0x19e)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x491c7c[_0x5da15e(0x13e)]=_0x5da15e(0x115),_0x491c7c[_0x5da15e(0x15c)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x491c7c[_0x5da15e(0x14a)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x491c7c[_0x5da15e(0x18d)]=_0x5da15e(0x169),_0x491c7c['zzJOa']='help',_0x491c7c[_0x5da15e(0x198)]=function(_0x5e3b32,_0x4ec043){return _0x5e3b32!==_0x4ec043;},_0x491c7c[_0x5da15e(0x1b6)]=_0x5da15e(0x1ad),_0x491c7c[_0x5da15e(0x148)]='qINSe';const _0x806f6e=_0x491c7c;logger[_0x5da15e(0x1d1)]('['+_0x5baf05+_0x5da15e(0x17d)+_0x1a64dc[_0x5da15e(0x130)]+_0x5da15e(0x165)+_0x1a64dc['data']+_0x5da15e(0x155)+_0x1a64dc[_0x5da15e(0x16c)]);if(_0x1a64dc[_0x5da15e(0x16c)]){if(_0x806f6e[_0x5da15e(0x198)](_0x806f6e[_0x5da15e(0x1b6)],_0x806f6e['Prjvv']))logger['error'](_0x5da15e(0x186)+_0x1a64dc['error']['stack']);else{const _0x159b2d={};_0x159b2d[_0x5da15e(0xf4)]=_0x806f6e[_0x5da15e(0x19e)],_0x159b2d[_0x5da15e(0x158)]=_0x806f6e[_0x5da15e(0x13e)];const _0x58da65={};_0x58da65['description']=_0x806f6e['BMtjz'],_0x58da65[_0x5da15e(0x158)]=_0x806f6e[_0x5da15e(0x13e)];const _0x528e6a={};_0x528e6a[_0x5da15e(0xf4)]=_0x806f6e[_0x5da15e(0x14a)],_0x528e6a[_0x5da15e(0x158)]=_0x806f6e['bMyTQ'];const _0x26eb19={};_0x26eb19[_0x5da15e(0xf4)]=_0x806f6e[_0x5da15e(0x18d)],_0x26eb19[_0x5da15e(0x158)]=_0x806f6e[_0x5da15e(0x13e)];const _0x1c2482={};return _0x1c2482[_0x5da15e(0x1ae)]=_0x159b2d,_0x1c2482[_0x5da15e(0x1c1)]=_0x58da65,_0x1c2482['region']=_0x528e6a,_0x1c2482[_0x5da15e(0x1c9)]=_0x26eb19,_0x26e9b5[_0x5da15e(0x14c)](_0x404320[_0x5da15e(0x163)])[_0x5da15e(0x1a6)](_0x68e78c)[_0x5da15e(0x116)](_0x1c2482)[_0x5da15e(0x11a)](_0x806f6e[_0x5da15e(0xe9)])[_0x5da15e(0x16b)];}}}async function generateReport(_0x412113,_0x3e13ae){const _0x485bb8=a17_0xd84848,_0x5b004b={'DgKkE':function(_0x35001d,_0xd816cc){return _0x35001d+_0xd816cc;},'iiOik':_0x485bb8(0x160),'iAfOw':_0x485bb8(0x1b4),'yNsUV':function(_0x2c1b77,_0x326d81){return _0x2c1b77||_0x326d81;},'jGuuS':_0x485bb8(0x156),'nDFBu':'Error\x20Details:\x0a','Ixeiv':_0x485bb8(0x195),'mECur':function(_0x2b871c,_0x10ae07){return _0x2b871c!=_0x10ae07;},'sPJbZ':_0x485bb8(0x1bc),'NsAUN':_0x485bb8(0x1cf),'fJBUN':function(_0x270040){return _0x270040();}};let _0x78da6e=_0x485bb8(0x13d)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x412113[_0x485bb8(0x18a)]((_0x348b93,_0x57b483)=>{const _0x2e0e3f=_0x485bb8,{header:_0x10664e,response:_0x2a666b}=_0x348b93,{status:_0x40874e,data:_0x39d499,error:_0x48b3b8}=_0x2a666b;_0x78da6e+=_0x10664e+'\x20#'+_0x5b004b['DgKkE'](_0x57b483,0x1)+'\x0a',_0x78da6e+=_0x2e0e3f(0x167)+(_0x40874e?_0x5b004b['iiOik']:_0x5b004b[_0x2e0e3f(0x190)])+'\x0a',_0x78da6e+=_0x2e0e3f(0x19d)+_0x5b004b['yNsUV'](_0x39d499,_0x5b004b[_0x2e0e3f(0x1b0)])+'\x0a',_0x48b3b8&&(_0x78da6e+=_0x5b004b['nDFBu'],_0x78da6e+=_0x2e0e3f(0x114)+(_0x48b3b8[_0x2e0e3f(0x1c3)]||_0x5b004b['jGuuS'])+'\x0a',_0x78da6e+='\x20\x20Code:\x20'+(_0x48b3b8[_0x2e0e3f(0x1cd)]||_0x5b004b['jGuuS'])+'\x0a',_0x78da6e+=_0x2e0e3f(0x194)+(_0x48b3b8[_0x2e0e3f(0xfc)]||_0x5b004b[_0x2e0e3f(0x1b0)])+'\x0a'),_0x78da6e+='\x0a\x0a';}),_0x78da6e+=_0x5b004b[_0x485bb8(0x100)],_0x5b004b[_0x485bb8(0xea)](_0x3e13ae,null)?_0x78da6e+='Cluster\x20'+global_registry[_0x485bb8(0x12b)]+'\x20'+(_0x3e13ae?_0x5b004b[_0x485bb8(0x144)]:_0x5b004b[_0x485bb8(0x147)])+'\x0a\x0a':_0x78da6e+=_0x485bb8(0x153)+global_registry[_0x485bb8(0x12b)]+_0x485bb8(0xfe),_0x78da6e+=_0x5b004b[_0x485bb8(0x174)](getSystemMetaData),_0x78da6e;};exports[a17_0xd84848(0x1ce)]=async function(_0x2bf9ad){const _0xfd88a3=a17_0xd84848,_0x3c7a95={'UZdTd':function(_0x1f3ecf){return _0x1f3ecf();},'vWmii':_0xfd88a3(0x141),'roviK':function(_0xbcdefe,_0x252aa2,_0x9a16c6,_0x109c21,_0x1cffcb,_0x8533df,_0x43a984,_0x4a434c){return _0xbcdefe(_0x252aa2,_0x9a16c6,_0x109c21,_0x1cffcb,_0x8533df,_0x43a984,_0x4a434c);},'nnzyl':_0xfd88a3(0x106),'NqKRW':'credential-not-found','HpgWq':'error','DPBYe':function(_0x2fcf25,_0x2ad967,_0x50bd61,_0x2dc20a,_0x568cd4,_0xf880c1,_0x3547b0){return _0x2fcf25(_0x2ad967,_0x50bd61,_0x2dc20a,_0x568cd4,_0xf880c1,_0x3547b0);},'fEETw':function(_0x1e78e7){return _0x1e78e7();},'tneTI':_0xfd88a3(0x123),'sHPiz':_0xfd88a3(0x15a),'gJjwM':function(_0x574aae,_0x229390,_0x129e1c){return _0x574aae(_0x229390,_0x129e1c);},'OOnGo':function(_0x1b1b50,_0xd9d27e,_0xeef341){return _0x1b1b50(_0xd9d27e,_0xeef341);},'rtXEm':function(_0x10ef7,_0x19d50f,_0x163a49,_0x492b8d,_0x278cbf,_0x44ab3c,_0x1fde08){return _0x10ef7(_0x19d50f,_0x163a49,_0x492b8d,_0x278cbf,_0x44ab3c,_0x1fde08);},'cgNKl':_0xfd88a3(0x1ab),'oDTzN':function(_0x4dcef1,_0x20ddac,_0x37942d){return _0x4dcef1(_0x20ddac,_0x37942d);},'nrsHF':_0xfd88a3(0x108),'MrCly':_0xfd88a3(0xfa),'oNbBB':function(_0x11db3f,_0x88cd23,_0x5a6e55){return _0x11db3f(_0x88cd23,_0x5a6e55);},'kGQap':_0xfd88a3(0xf0),'POEWV':function(_0x1c6371){return _0x1c6371();},'IBGUj':function(_0x4a986f,_0x4ce494,_0x4e30eb){return _0x4a986f(_0x4ce494,_0x4e30eb);},'HzWWC':_0xfd88a3(0x1b2),'fEDMV':function(_0x137bc0,_0x393e60){return _0x137bc0(_0x393e60);},'ihItP':_0xfd88a3(0x191),'lqNbT':function(_0x43ee8b,_0x6d81dc,_0x461cca){return _0x43ee8b(_0x6d81dc,_0x461cca);},'ibGxK':_0xfd88a3(0x1c4),'ORiSa':_0xfd88a3(0x19b),'ZiZXr':'User\x20Access','bsMna':_0xfd88a3(0x178),'SYgWS':_0xfd88a3(0x19a),'qjaAN':function(_0x2e5f01,_0x2fe6fc){return _0x2e5f01+_0x2fe6fc;},'AYcOD':_0xfd88a3(0x1cb),'OJSlZ':function(_0x5726a9,_0xf0ca08,_0xf1dfe4,_0x553a79,_0x51d1a9,_0x35c51a,_0x24679a){return _0x5726a9(_0xf0ca08,_0xf1dfe4,_0x553a79,_0x51d1a9,_0x35c51a,_0x24679a);},'yhmLm':_0xfd88a3(0x13b)};let _0x50447c,_0x2680e4;try{global_registry[_0xfd88a3(0x1bf)]=_0x3c7a95[_0xfd88a3(0x131)](uuidv4);!fs[_0xfd88a3(0x150)](_0x3c7a95[_0xfd88a3(0x131)](getCredentialsPath))&&(_0x2680e4=_0x3c7a95[_0xfd88a3(0x10f)],logger[_0xfd88a3(0x16c)](_0x2680e4),await _0x3c7a95[_0xfd88a3(0x135)](reportToGalactusAndSendToEDS,_0x2bf9ad,_0x50447c,_0x2680e4,messageTypes[_0xfd88a3(0x1db)],_0x3c7a95[_0xfd88a3(0x193)],_0x3c7a95[_0xfd88a3(0xeb)],_0x3c7a95[_0xfd88a3(0x1a9)]),process[_0xfd88a3(0x1b9)](0x1));_0x3c7a95['DPBYe'](sendInstrumentationEvent,_0x2bf9ad,_0x3c7a95[_0xfd88a3(0x193)],messageTypes[_0xfd88a3(0x104)],null,null,_0x2bf9ad);const _0x2e9aae=JSON[_0xfd88a3(0x1a5)](fs['readFileSync'](_0x3c7a95[_0xfd88a3(0x16f)](getCredentialsPath)));global_registry[_0xfd88a3(0x102)]=_0x2e9aae[_0xfd88a3(0x154)][_0xfd88a3(0xf8)],global_registry[_0xfd88a3(0x1aa)]=_0x2e9aae[_0xfd88a3(0x154)][_0xfd88a3(0x1de)];const _0x131c21=WS_ENDPOINT[_0xfd88a3(0x120)](_0x3c7a95[_0xfd88a3(0x11b)],_0x2e9aae[_0xfd88a3(0x154)][_0xfd88a3(0xf8)])[_0xfd88a3(0x120)](_0x3c7a95[_0xfd88a3(0xf6)],_0x2e9aae[_0xfd88a3(0x154)][_0xfd88a3(0x1de)]),_0x5c5911={};_0x5c5911['WebSocket']=ws,_0x5c5911[_0xfd88a3(0x117)]=0x36ee80,_0x50447c=new ReconnectingWebSocket(_0x131c21,[],_0x5c5911),global_registry[_0xfd88a3(0x12c)]=_0x3c7a95[_0xfd88a3(0x124)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0xfd88a3(0x1aa)]),await _0x3c7a95[_0xfd88a3(0x15d)](inputValidation,_0x2bf9ad,_0x50447c),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0xfd88a3(0x12a)]+_0xfd88a3(0x1e2)+global_registry[_0xfd88a3(0x101)]);let _0x4dd43f=await _0x3c7a95[_0xfd88a3(0x137)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x3c7a95[_0xfd88a3(0xf9)],_0x50447c,webSocketUtils,_0x2bf9ad);const _0x113929=await _0x4dd43f['isCliToolInstalled']();_0x3c7a95['oDTzN'](printResponse,_0x3c7a95['nrsHF'],_0x113929),_0x4dd43f=await _0x4dd43f[_0xfd88a3(0x13a)]();let _0x27e6e1=![];try{_0x27e6e1=await _0x4dd43f['isClusterPresent']();}catch(_0x2ae6e2){const _0xe5f77f=_0x3c7a95[_0xfd88a3(0x1b3)]['split']('|');let _0x9b8a24=0x0;while(!![]){switch(_0xe5f77f[_0x9b8a24++]){case'0':await _0x3c7a95['roviK'](reportToGalactusAndSendToEDS,_0x2bf9ad,_0x50447c,_0x2680e4,messageTypes['ERROR'],_0x3c7a95[_0xfd88a3(0x193)],_0xfd88a3(0x159)+global_registry['cloudProvider'],_0x3c7a95['HpgWq']);continue;case'1':_0x2680e4+='\x0a'+JSON[_0xfd88a3(0x145)](_0x2ae6e2[_0xfd88a3(0xfc)]);continue;case'2':_0x27e6e1=null;continue;case'3':_0x2680e4=_0xfd88a3(0x11c)+global_registry['clusterName']+_0xfd88a3(0x1c2)+global_registry[_0xfd88a3(0x101)]+'`\x20,error\x20:\x20'+_0x2ae6e2;continue;case'4':logger[_0xfd88a3(0x16c)](_0x2680e4);continue;}break;}}_0x27e6e1&&logger[_0xfd88a3(0x1d1)](_0xfd88a3(0xec)+global_registry[_0xfd88a3(0x12b)]+_0xfd88a3(0x182));const _0x593316=await _0x4dd43f['checkAccess']();_0x3c7a95[_0xfd88a3(0x152)](printResponse,_0x3c7a95[_0xfd88a3(0x1e5)],_0x593316);const _0x4a22e6=await _0x3c7a95['POEWV'](curlRequest);_0x3c7a95['IBGUj'](printResponse,_0x3c7a95[_0xfd88a3(0x146)],_0x4a22e6);const _0x509cb1=await _0x3c7a95[_0xfd88a3(0x197)](isTlsSupported,_0x3c7a95[_0xfd88a3(0x112)]);_0x3c7a95['lqNbT'](printResponse,_0x3c7a95[_0xfd88a3(0x111)],_0x509cb1);const _0x152fed={};_0x152fed[_0xfd88a3(0xf3)]=_0x3c7a95[_0xfd88a3(0x181)],_0x152fed['response']=_0x113929;const _0x5d8210={};_0x5d8210[_0xfd88a3(0xf3)]=_0x3c7a95['ZiZXr'],_0x5d8210[_0xfd88a3(0x17c)]=_0x593316;const _0x4df512={};_0x4df512[_0xfd88a3(0xf3)]=_0x3c7a95[_0xfd88a3(0x103)],_0x4df512[_0xfd88a3(0x17c)]=_0x4a22e6;const _0x534d32={};_0x534d32[_0xfd88a3(0xf3)]=_0x3c7a95[_0xfd88a3(0x1e0)],_0x534d32['response']=_0x509cb1;const _0x131cc9=[_0x152fed,_0x5d8210,_0x4df512,_0x534d32],_0x5e23eb=await _0x3c7a95[_0xfd88a3(0x15d)](generateReport,_0x131cc9,_0x27e6e1),_0x6ded40=new Date(),_0x1e255d=_0x6ded40['getUTCFullYear']()+'_'+_0x3c7a95[_0xfd88a3(0xf2)](_0x6ded40[_0xfd88a3(0x1d2)](),0x1)+'_'+_0x6ded40[_0xfd88a3(0x14f)]()+'_'+_0x6ded40['getUTCHours']()+'_'+_0x6ded40[_0xfd88a3(0x122)](),_0x23e7b7=_0xfd88a3(0x189)+_0x1e255d+_0xfd88a3(0x187);fs[_0xfd88a3(0x128)](_0x23e7b7,_0x5e23eb,_0x3c7a95[_0xfd88a3(0x1d9)]),logger[_0xfd88a3(0x1d1)]('Report\x20saved\x20in\x20'+_0x23e7b7),process[_0xfd88a3(0x1b9)](0x0);}catch(_0x44f7c5){let _0x345027=_0xfd88a3(0x18e)+_0x44f7c5+'\x20';logger['error'](_0x345027),_0x345027+='\x0a'+JSON[_0xfd88a3(0x145)](_0x44f7c5[_0xfd88a3(0xfc)]),logger[_0xfd88a3(0x110)](_0xfd88a3(0x177)+_0x44f7c5['stack']);if(_0x50447c){const _0x6638ee={};_0x6638ee[_0xfd88a3(0x158)]=WS_EVENTS[_0xfd88a3(0x183)],_0x6638ee[_0xfd88a3(0x1c3)]=_0x345027,webSocketUtils['sendEventToBackend'](_0x50447c,_0x6638ee,_0x3c7a95[_0xfd88a3(0x1a9)],!![]);}await webSocketUtils[_0xfd88a3(0xf7)](0x7d0);const _0x466b39={};_0x466b39[_0xfd88a3(0x16c)]=_0x345027,await _0x3c7a95[_0xfd88a3(0x185)](sendInstrumentationEvent,_0x2bf9ad,_0x3c7a95[_0xfd88a3(0x193)],messageTypes['ERROR'],_0x3c7a95[_0xfd88a3(0x188)],_0x466b39,_0x2bf9ad),process[_0xfd88a3(0x1b9)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x1bd4(){const _0x87dcbd=['120582vRcorT','start_commands','82926LTOdKb','1486785EeyHiv','demandCommand','start','578448ZfsEjN','handler','4QVJEHx','commandDir','builder','recommendCommands','84eFMpAU','help','203007fhlTrG','command','usage','KyfNW','sWRUb','epilogue','Start\x20an\x20existing\x20Automation\x20grid.','191345AcKgNE','816608quZpAV'];a18_0x1bd4=function(){return _0x87dcbd;};return a18_0x1bd4();}const a18_0x5a899a=a18_0x1224;(function(_0x37c9ae,_0x563651){const _0x177ff2=a18_0x1224,_0x263b81=_0x37c9ae();while(!![]){try{const _0x108089=parseInt(_0x177ff2(0x1b3))/0x1+parseInt(_0x177ff2(0x1b5))/0x2+-parseInt(_0x177ff2(0x1c3))/0x3+-parseInt(_0x177ff2(0x1bd))/0x4*(parseInt(_0x177ff2(0x1b8))/0x5)+-parseInt(_0x177ff2(0x1b7))/0x6*(-parseInt(_0x177ff2(0x1c1))/0x7)+parseInt(_0x177ff2(0x1b4))/0x8+parseInt(_0x177ff2(0x1bb))/0x9;if(_0x108089===_0x563651)break;else _0x263b81['push'](_0x263b81['shift']());}catch(_0x269235){_0x263b81['push'](_0x263b81['shift']());}}}(a18_0x1bd4,0x356ba));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x1224(_0x31d5c3,_0x1a96f2){const _0x1bd4a2=a18_0x1bd4();return a18_0x1224=function(_0x12242e,_0xaa9dd3){_0x12242e=_0x12242e-0x1af;let _0x30ef51=_0x1bd4a2[_0x12242e];return _0x30ef51;},a18_0x1224(_0x31d5c3,_0x1a96f2);}exports[a18_0x5a899a(0x1c4)]='start',exports['desc']=a18_0x5a899a(0x1b2),exports[a18_0x5a899a(0x1bf)]=function(_0x3150ff){const _0x2fa3cd=a18_0x5a899a,_0x4b1943={};_0x4b1943['sWRUb']=_0x2fa3cd(0x1b6),_0x4b1943[_0x2fa3cd(0x1af)]=_0x2fa3cd(0x1c2);const _0x4565a5=_0x4b1943;return _0x3150ff[_0x2fa3cd(0x1c5)](HELP_HEADER_MESSAGE[_0x2fa3cd(0x1ba)])[_0x2fa3cd(0x1b1)](HELP_FOOTER_MESSAGE)[_0x2fa3cd(0x1be)](_0x4565a5[_0x2fa3cd(0x1b0)])[_0x2fa3cd(0x1b9)]()[_0x2fa3cd(0x1c0)]()['strict']()[_0x2fa3cd(0x1c2)](_0x4565a5['KyfNW']);},exports[a18_0x5a899a(0x1bc)]=function(_0x6f61d4){};
1
+ const a18_0x3d41fe=a18_0x3acb;(function(_0x19fa0a,_0x5dac9d){const _0x2b33c4=a18_0x3acb,_0x4d3a20=_0x19fa0a();while(!![]){try{const _0x169540=parseInt(_0x2b33c4(0xd6))/0x1*(-parseInt(_0x2b33c4(0xd1))/0x2)+parseInt(_0x2b33c4(0xcd))/0x3*(parseInt(_0x2b33c4(0xd7))/0x4)+-parseInt(_0x2b33c4(0xd4))/0x5+-parseInt(_0x2b33c4(0xcc))/0x6*(parseInt(_0x2b33c4(0xcf))/0x7)+-parseInt(_0x2b33c4(0xdb))/0x8*(-parseInt(_0x2b33c4(0xce))/0x9)+parseInt(_0x2b33c4(0xcb))/0xa+parseInt(_0x2b33c4(0xde))/0xb;if(_0x169540===_0x5dac9d)break;else _0x4d3a20['push'](_0x4d3a20['shift']());}catch(_0x47d116){_0x4d3a20['push'](_0x4d3a20['shift']());}}}(a18_0x7d38,0x9c05e));function a18_0x3acb(_0x1bdd98,_0x56d627){const _0x7d380c=a18_0x7d38();return a18_0x3acb=function(_0x3acbb2,_0x683ecf){_0x3acbb2=_0x3acbb2-0xc8;let _0x550a93=_0x7d380c[_0x3acbb2];return _0x550a93;},a18_0x3acb(_0x1bdd98,_0x56d627);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3d41fe(0xdd));exports['command']=a18_0x3d41fe(0xd0),exports[a18_0x3d41fe(0xda)]=a18_0x3d41fe(0xd5),exports[a18_0x3d41fe(0xd3)]=function(_0x32cb6c){const _0x5ec4d8=a18_0x3d41fe,_0x318698={};_0x318698[_0x5ec4d8(0xd2)]=_0x5ec4d8(0xc9),_0x318698[_0x5ec4d8(0xc8)]=_0x5ec4d8(0xca);const _0x317163=_0x318698;return _0x32cb6c[_0x5ec4d8(0xd9)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5ec4d8(0xdc)](_0x317163[_0x5ec4d8(0xd2)])['demandCommand']()['recommendCommands']()[_0x5ec4d8(0xd8)]()[_0x5ec4d8(0xca)](_0x317163['jkdZQ']);},exports['handler']=function(_0x3c2e0b){};function a18_0x7d38(){const _0x3368e1=['1170npWEgH','787353mZrhcK','start','12OLOQmU','QEhnX','builder','3236280TCLRNj','Start\x20an\x20existing\x20Automation\x20grid.','198698qssXjH','4FVtYcd','strict','usage','desc','61552Pnrqet','commandDir','../config/constants','2873178cpVBuG','jkdZQ','start_commands','help','7952230kdsNhw','24XXwxGf','2615367WDquDl'];a18_0x7d38=function(){return _0x3368e1;};return a18_0x7d38();}
@@ -1 +1 @@
1
- function a19_0x5407(){const _0x47da78=['flVtJ','<PasswordPlaceholder>','kDQYc','WRDio','string','message','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','VpAWU','4676864tkvUmr','INFO','parse','63CYZkbh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','TDEKx','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YSAQr','iOeuf','grid','type','skip-tls-cert-verify','sJjEg','grid-id','exit','gIcRh','cloudProvider','3300885HRwokr','Acqzl','description','EKBVN','OBBaV','connectionTimeout','stack','ERROR','../../utils/utilityMethods','2402028WXeYOd','../../utils/createk8sClient','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','<UsernamePlaceholder>','vZkXk','server-error','bDSaA','bstackAccesskey','Skip\x20insecure\x20cert\x20verification.','SbnrW','559720wbapwo','command','options','../../cloudproviders/utils','usage','start','1744833fsmYuZ','handler','Browserstack','epilogue','414zmBFXc','password','name','oOcIY','addListeners','619588JHoABk','Grid\x20started','Starting\x20grid\x20','stringify','boolean','user','error','QlzzK','YkQIx','MNucX','help','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gridId','Luqjt','RcMZL','start-grid-called','username','xLhfL','builder','clusterName','body','bstackUsername','existsSync','WebSocket','info','statusCode','replace'];a19_0x5407=function(){return _0x47da78;};return a19_0x5407();}const a19_0x5037bb=a19_0x473c;(function(_0x25146c,_0x55580c){const _0x400fd0=a19_0x473c,_0x4195fa=_0x25146c();while(!![]){try{const _0x2c83b8=-parseInt(_0x400fd0(0x13f))/0x1*(-parseInt(_0x400fd0(0x16a))/0x2)+parseInt(_0x400fd0(0x166))/0x3+parseInt(_0x400fd0(0x16f))/0x4+parseInt(_0x400fd0(0x160))/0x5+-parseInt(_0x400fd0(0x156))/0x6+-parseInt(_0x400fd0(0x14d))/0x7+parseInt(_0x400fd0(0x13c))/0x8;if(_0x2c83b8===_0x55580c)break;else _0x4195fa['push'](_0x4195fa['shift']());}catch(_0xb1c4bc){_0x4195fa['push'](_0x4195fa['shift']());}}}(a19_0x5407,0x8c300));function a19_0x473c(_0x2c2596,_0x582df4){const _0x540721=a19_0x5407();return a19_0x473c=function(_0x473c89,_0x534e3f){_0x473c89=_0x473c89-0x128;let _0x4e71a3=_0x540721[_0x473c89];return _0x4e71a3;},a19_0x473c(_0x2c2596,_0x582df4);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x5037bb(0x155)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x5037bb(0x157)),{getCloudProviderObject}=require(a19_0x5037bb(0x163));exports[a19_0x5037bb(0x161)]=a19_0x5037bb(0x145),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x5037bb(0x12b)]=function(_0x417859){const _0x5666b7=a19_0x5037bb,_0x57b239={};_0x57b239['cpqvq']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x57b239[_0x5666b7(0x12a)]=_0x5666b7(0x138),_0x57b239['RcMZL']=_0x5666b7(0x15e),_0x57b239['YSAQr']=_0x5666b7(0x173),_0x57b239[_0x5666b7(0x16d)]=_0x5666b7(0x179);const _0xefbe56=_0x57b239,_0x3d8f09={};_0x3d8f09[_0x5666b7(0x14f)]=_0xefbe56['cpqvq'],_0x3d8f09['type']=_0xefbe56[_0x5666b7(0x12a)];const _0x13c2a9={};_0x13c2a9[_0x5666b7(0x14f)]=_0xefbe56[_0x5666b7(0x17d)],_0x13c2a9[_0x5666b7(0x146)]=_0xefbe56[_0x5666b7(0x143)],_0x13c2a9['default']=![];const _0xe75ae={};return _0xe75ae[_0x5666b7(0x149)]=_0x3d8f09,_0xe75ae[_0x5666b7(0x147)]=_0x13c2a9,_0x417859[_0x5666b7(0x164)](HELP_HEADER_MESSAGE[_0x5666b7(0x165)])[_0x5666b7(0x169)](HELP_FOOTER_MESSAGE)[_0x5666b7(0x162)](_0xe75ae)[_0x5666b7(0x179)](_0xefbe56[_0x5666b7(0x16d)])['argv'];},exports[a19_0x5037bb(0x167)]=async function(_0x7edd21){const _0x168ce7=a19_0x5037bb,_0x206f5a={'vZkXk':_0x168ce7(0x13a),'VpAWU':function(_0x248aa3){return _0x248aa3();},'SbnrW':_0x168ce7(0x17a),'EKBVN':function(_0xe2b91f,_0x5aeb7d,_0x32da49,_0x501091,_0x3ed777,_0xa6eeac,_0x56d90a){return _0xe2b91f(_0x5aeb7d,_0x32da49,_0x501091,_0x3ed777,_0xa6eeac,_0x56d90a);},'QlzzK':_0x168ce7(0x128),'YkQIx':'init-not-called','Luqjt':function(_0x3663fa,_0x546634,_0x93941e,_0xfcbfeb,_0x13eaa0,_0x5d9552,_0x4bb0bc){return _0x3663fa(_0x546634,_0x93941e,_0xfcbfeb,_0x13eaa0,_0x5d9552,_0x4bb0bc);},'OBBaV':function(_0x6f37be){return _0x6f37be();},'iijoe':_0x168ce7(0x159),'kDQYc':_0x168ce7(0x135),'MNucX':'Adding\x20Websocket\x20listeners','WRDio':function(_0x2ca6b8,_0x166ad5,_0x1764a5,_0x1b3dac){return _0x2ca6b8(_0x166ad5,_0x1764a5,_0x1b3dac);},'pwqWz':function(_0x1e1ec2,_0x4de697,_0x224901,_0x30e30c,_0xd96ef4,_0x2dcfa3,_0x247b53){return _0x1e1ec2(_0x4de697,_0x224901,_0x30e30c,_0xd96ef4,_0x2dcfa3,_0x247b53);},'flVtJ':function(_0x28021f,_0x21ba71,_0x48c24e){return _0x28021f(_0x21ba71,_0x48c24e);},'TDEKx':_0x168ce7(0x170),'TRsLD':function(_0x3fc069,_0x42b3d4){return _0x3fc069===_0x42b3d4;},'bDSaA':_0x168ce7(0x142),'sJjEg':function(_0x4e7e1a,_0x5f4140,_0x57be39,_0x48e888,_0x2ca0c3,_0x5858ae,_0x36e259){return _0x4e7e1a(_0x5f4140,_0x57be39,_0x48e888,_0x2ca0c3,_0x5858ae,_0x36e259);},'Rnjso':'unauthorised','gIcRh':function(_0x4a8160,_0x141f78){return _0x4a8160===_0x141f78;},'iOeuf':'invalid-grid-id','Acqzl':_0x168ce7(0x15b)};let _0xe1c036;try{!_0x7edd21[_0x168ce7(0x17b)]&&(logger[_0x168ce7(0x175)](_0x206f5a[_0x168ce7(0x15a)]),process[_0x168ce7(0x14a)](0x1));!fs[_0x168ce7(0x12f)](_0x206f5a[_0x168ce7(0x13b)](getCredentialsPath))&&(logger[_0x168ce7(0x175)](_0x206f5a[_0x168ce7(0x15f)]),await _0x206f5a[_0x168ce7(0x150)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes['ERROR'],_0x206f5a[_0x168ce7(0x177)],null,_0x7edd21),process[_0x168ce7(0x14a)](0x1));logger[_0x168ce7(0x131)](_0x168ce7(0x171)+_0x7edd21[_0x168ce7(0x17b)]),await _0x206f5a[_0x168ce7(0x17c)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes[_0x168ce7(0x13d)],null,null,_0x7edd21);const _0x7e6326=JSON[_0x168ce7(0x13e)](fs['readFileSync'](_0x206f5a[_0x168ce7(0x151)](getCredentialsPath)));global_registry[_0x168ce7(0x12e)]=_0x7e6326[_0x168ce7(0x168)]['username'],global_registry[_0x168ce7(0x15d)]=_0x7e6326['Browserstack']['password'];const _0x2b3e25=WS_ENDPOINT[_0x168ce7(0x133)](_0x206f5a['iijoe'],_0x7e6326[_0x168ce7(0x168)][_0x168ce7(0x129)])[_0x168ce7(0x133)](_0x206f5a[_0x168ce7(0x136)],_0x7e6326[_0x168ce7(0x168)]['password']),_0x15dbc7={};_0x15dbc7[_0x168ce7(0x130)]=ws,_0x15dbc7[_0x168ce7(0x152)]=0x36ee80,_0xe1c036=new ReconnectingWebSocket(_0x2b3e25,[],_0x15dbc7),logger['debug'](_0x206f5a[_0x168ce7(0x178)]),webSocketUtils[_0x168ce7(0x16e)](_0xe1c036,_0x7edd21[_0x168ce7(0x174)],_0x7edd21[_0x168ce7(0x16b)]);const [_0x1b4979,_0x1c1a90]=await _0x206f5a[_0x168ce7(0x137)](getGridDetails,_0x7e6326[_0x168ce7(0x168)]['username'],_0x7e6326['Browserstack']['password'],_0x7edd21[_0x168ce7(0x17b)]);if(_0x1c1a90){const _0x398844=_0x1c1a90[_0x168ce7(0x131)];global_registry[_0x168ce7(0x14c)]=_0x398844[_0x168ce7(0x14c)],global_registry['clusterRegion']=_0x398844['region'],global_registry['clusterName']=_0x398844[_0x168ce7(0x12c)];const _0x324225=await _0x206f5a['pwqWz'](getCloudProviderObject,_0x398844[_0x168ce7(0x14c)],_0x398844[_0x168ce7(0x12c)],_0x398844[_0x168ce7(0x16c)],_0xe1c036,webSocketUtils,_0x7edd21),[_0x2b9960,_0x23d35c,_0x1e69e1,_0x154925,_0x5e8500,_0x50eb7f]=await _0x206f5a[_0x168ce7(0x134)](createK8sClient,_0x324225,_0x7edd21['skipTlsCertVerify']);await _0x206f5a[_0x168ce7(0x134)](scaleUpHubDeployment,_0x23d35c,_0x398844[_0x168ce7(0x16c)]),logger[_0x168ce7(0x131)](_0x206f5a[_0x168ce7(0x141)]),process[_0x168ce7(0x14a)](0x0);}_0x206f5a['TRsLD'](_0x1b4979[_0x168ce7(0x132)],0x191)&&(logger['error'](_0x206f5a[_0x168ce7(0x15c)]),await _0x206f5a[_0x168ce7(0x148)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes[_0x168ce7(0x154)],_0x206f5a['Rnjso'],null,_0x7edd21),process[_0x168ce7(0x14a)](0x1)),_0x206f5a[_0x168ce7(0x14b)](_0x1b4979[_0x168ce7(0x132)],0x190)&&(logger[_0x168ce7(0x175)](JSON[_0x168ce7(0x13e)](_0x1b4979[_0x168ce7(0x12d)])[_0x168ce7(0x139)]),await _0x206f5a[_0x168ce7(0x148)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes[_0x168ce7(0x154)],_0x206f5a[_0x168ce7(0x144)],null,_0x7edd21),process[_0x168ce7(0x14a)](0x1)),logger['error'](_0x168ce7(0x140)+JSON[_0x168ce7(0x172)](_0x1b4979)),await _0x206f5a[_0x168ce7(0x148)](sendInstrumentationEvent,_0x7edd21,_0x206f5a['QlzzK'],messageTypes[_0x168ce7(0x154)],_0x206f5a[_0x168ce7(0x14e)],_0x1b4979,_0x7edd21),process[_0x168ce7(0x14a)](0x1);}catch(_0x5393f5){const _0x40e003=_0x168ce7(0x158)+_0x5393f5+'\x20\x0a'+JSON['stringify'](_0x5393f5[_0x168ce7(0x153)])+'\x20';logger[_0x168ce7(0x175)](_0x40e003),process[_0x168ce7(0x14a)](0x1);}};
1
+ const a19_0x4f0b22=a19_0x3f5a;(function(_0x208b45,_0x94f5bc){const _0x26fcf6=a19_0x3f5a,_0x3079db=_0x208b45();while(!![]){try{const _0x1bd66c=parseInt(_0x26fcf6(0x1bd))/0x1+-parseInt(_0x26fcf6(0x1f6))/0x2+-parseInt(_0x26fcf6(0x202))/0x3+-parseInt(_0x26fcf6(0x1ef))/0x4*(-parseInt(_0x26fcf6(0x1b5))/0x5)+-parseInt(_0x26fcf6(0x1c0))/0x6*(-parseInt(_0x26fcf6(0x1d2))/0x7)+-parseInt(_0x26fcf6(0x1e5))/0x8*(-parseInt(_0x26fcf6(0x1ad))/0x9)+-parseInt(_0x26fcf6(0x1ed))/0xa*(parseInt(_0x26fcf6(0x1c8))/0xb);if(_0x1bd66c===_0x94f5bc)break;else _0x3079db['push'](_0x3079db['shift']());}catch(_0x570b5c){_0x3079db['push'](_0x3079db['shift']());}}}(a19_0x593a,0x561d9));function a19_0x3f5a(_0x5fcaad,_0x5f3b4f){const _0x593a3c=a19_0x593a();return a19_0x3f5a=function(_0x3f5a87,_0x4575fa){_0x3f5a87=_0x3f5a87-0x1a5;let _0x3587b8=_0x593a3c[_0x3f5a87];return _0x3587b8;},a19_0x3f5a(_0x5fcaad,_0x5f3b4f);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x4f0b22(0x1a9)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x4f0b22(0x1db)),webSocketUtils=require(a19_0x4f0b22(0x1f5)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x4f0b22(0x1b0));function a19_0x593a(){const _0x4d4cce=['Starting\x20grid\x20','invalid-grid-id','Start\x20an\x20existing\x20Automation\x20grid.','usage','qOJns','../../utils/webSocketUtils','27750XzlDst','vbzDX','start','<PasswordPlaceholder>','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','cloudProvider','bstackUsername','username','PuAqx','WebSocket','start-grid-called','EZFlr','952404KdcVLD','Grid\x20started','exit','parse','default','../../config/logger','handler','user','ERROR','9HDagvC','type','yJGeJ','../../cloudproviders/utils','OFfMJ','statusCode','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','message','727205lSbQgR','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','password','rrwSU','DeeSJ','replace','Adding\x20Websocket\x20listeners','string','675108AdEImM','existsSync','skipTlsCertVerify','378942ecoFKO','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','region','stringify','addListeners','Browserstack','66wRAepR','RGXlo','zWRCB','epilogue','AqSQO','connectionTimeout','PcgWO','help','Skip\x20insecure\x20cert\x20verification.','gridId','63HTvRHl','body','init-not-called','description','zuqbu','clusterRegion','skip-tls-cert-verify','xXBby','PrICR','../../utils/instrumentationUtils','clusterName','quGNv','boolean','lasUg','NNCiw','error','UIBKe','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','desc','539776PFhFWu','unuum','ZwSmE','info','name','stack','argv','options','1287270yUHjHl','<UsernamePlaceholder>','4MYeEpy'];a19_0x593a=function(){return _0x4d4cce;};return a19_0x593a();}exports['command']=a19_0x4f0b22(0x1c1),exports[a19_0x4f0b22(0x1e4)]=a19_0x4f0b22(0x1f2),exports['builder']=function(_0x79a99b){const _0x29cad9=a19_0x4f0b22,_0x5a2491={};_0x5a2491[_0x29cad9(0x201)]=_0x29cad9(0x1b3),_0x5a2491[_0x29cad9(0x1da)]=_0x29cad9(0x1bc),_0x5a2491['nSagc']=_0x29cad9(0x1d0),_0x5a2491[_0x29cad9(0x1c9)]=_0x29cad9(0x1de),_0x5a2491[_0x29cad9(0x1b1)]='help';const _0x41c0f4=_0x5a2491,_0x2aa5dc={};_0x2aa5dc['description']=_0x41c0f4[_0x29cad9(0x201)],_0x2aa5dc[_0x29cad9(0x1ae)]=_0x41c0f4[_0x29cad9(0x1da)];const _0x5cfcdb={};_0x5cfcdb[_0x29cad9(0x1d5)]=_0x41c0f4['nSagc'],_0x5cfcdb[_0x29cad9(0x1ae)]=_0x41c0f4[_0x29cad9(0x1c9)],_0x5cfcdb[_0x29cad9(0x1a8)]=![];const _0x21b8ff={};return _0x21b8ff['grid-id']=_0x2aa5dc,_0x21b8ff[_0x29cad9(0x1d8)]=_0x5cfcdb,_0x79a99b[_0x29cad9(0x1f3)](HELP_HEADER_MESSAGE[_0x29cad9(0x1f8)])[_0x29cad9(0x1cb)](HELP_FOOTER_MESSAGE)[_0x29cad9(0x1ec)](_0x21b8ff)[_0x29cad9(0x1cf)](_0x41c0f4['OFfMJ'])[_0x29cad9(0x1eb)];},exports[a19_0x4f0b22(0x1aa)]=async function(_0x117a23){const _0x3eb5df=a19_0x4f0b22,_0x57f8f2={'qOJns':_0x3eb5df(0x1fa),'xXBby':function(_0xe898cd){return _0xe898cd();},'ZwSmE':_0x3eb5df(0x1c3),'vbzDX':function(_0x2e2c6e,_0x42fe10,_0x2fa968,_0x13068b,_0x690b34,_0xa4a2c6,_0xcbe76b){return _0x2e2c6e(_0x42fe10,_0x2fa968,_0x13068b,_0x690b34,_0xa4a2c6,_0xcbe76b);},'unuum':_0x3eb5df(0x200),'yJGeJ':_0x3eb5df(0x1d4),'quGNv':function(_0x113f51,_0x58e25a,_0x3f9387,_0x59955f,_0x2a894e,_0x859db7,_0x339934){return _0x113f51(_0x58e25a,_0x3f9387,_0x59955f,_0x2a894e,_0x859db7,_0x339934);},'VczFO':function(_0x2cd46a){return _0x2cd46a();},'zWRCB':_0x3eb5df(0x1ee),'zuqbu':_0x3eb5df(0x1f9),'PcgWO':_0x3eb5df(0x1bb),'rrwSU':function(_0x47d596,_0x2d2fd8,_0x1b212c,_0x543c15){return _0x47d596(_0x2d2fd8,_0x1b212c,_0x543c15);},'UJHov':function(_0x13db84,_0x561a58,_0x20037e,_0x4dbc9c,_0x37f578,_0x2270d0,_0x952d0f){return _0x13db84(_0x561a58,_0x20037e,_0x4dbc9c,_0x37f578,_0x2270d0,_0x952d0f);},'PuAqx':function(_0x4d1d69,_0x267ccf,_0x528861){return _0x4d1d69(_0x267ccf,_0x528861);},'trhqg':_0x3eb5df(0x1a5),'UIBKe':function(_0x189ec7,_0x3369ab){return _0x189ec7===_0x3369ab;},'AqSQO':_0x3eb5df(0x1c2),'DeeSJ':'unauthorised','NNCiw':_0x3eb5df(0x1f1),'lasUg':'server-error'};let _0x2eaa1f;try{!_0x117a23[_0x3eb5df(0x1d1)]&&(logger[_0x3eb5df(0x1e1)](_0x57f8f2[_0x3eb5df(0x1f4)]),process[_0x3eb5df(0x1a6)](0x1));!fs[_0x3eb5df(0x1be)](_0x57f8f2[_0x3eb5df(0x1d9)](getCredentialsPath))&&(logger['error'](_0x57f8f2[_0x3eb5df(0x1e7)]),await _0x57f8f2[_0x3eb5df(0x1f7)](sendInstrumentationEvent,_0x117a23,_0x57f8f2[_0x3eb5df(0x1e6)],messageTypes[_0x3eb5df(0x1ac)],_0x57f8f2[_0x3eb5df(0x1af)],null,_0x117a23),process['exit'](0x1));logger[_0x3eb5df(0x1e8)](_0x3eb5df(0x1f0)+_0x117a23[_0x3eb5df(0x1d1)]),await _0x57f8f2[_0x3eb5df(0x1dd)](sendInstrumentationEvent,_0x117a23,_0x57f8f2[_0x3eb5df(0x1e6)],messageTypes['INFO'],null,null,_0x117a23);const _0x35d0c1=JSON['parse'](fs['readFileSync'](_0x57f8f2['VczFO'](getCredentialsPath)));global_registry[_0x3eb5df(0x1fc)]=_0x35d0c1[_0x3eb5df(0x1c7)][_0x3eb5df(0x1fd)],global_registry['bstackAccesskey']=_0x35d0c1[_0x3eb5df(0x1c7)][_0x3eb5df(0x1b7)];const _0x31ad5e=WS_ENDPOINT[_0x3eb5df(0x1ba)](_0x57f8f2[_0x3eb5df(0x1ca)],_0x35d0c1['Browserstack'][_0x3eb5df(0x1fd)])['replace'](_0x57f8f2[_0x3eb5df(0x1d6)],_0x35d0c1[_0x3eb5df(0x1c7)][_0x3eb5df(0x1b7)]),_0x3c5d4d={};_0x3c5d4d[_0x3eb5df(0x1ff)]=ws,_0x3c5d4d[_0x3eb5df(0x1cd)]=0x36ee80,_0x2eaa1f=new ReconnectingWebSocket(_0x31ad5e,[],_0x3c5d4d),logger['debug'](_0x57f8f2[_0x3eb5df(0x1ce)]),webSocketUtils[_0x3eb5df(0x1c6)](_0x2eaa1f,_0x117a23[_0x3eb5df(0x1ab)],_0x117a23['password']);const [_0x5e11d3,_0x3c842f]=await _0x57f8f2[_0x3eb5df(0x1b8)](getGridDetails,_0x35d0c1[_0x3eb5df(0x1c7)][_0x3eb5df(0x1fd)],_0x35d0c1[_0x3eb5df(0x1c7)][_0x3eb5df(0x1b7)],_0x117a23[_0x3eb5df(0x1d1)]);if(_0x3c842f){const _0x176d02=_0x3c842f['info'];global_registry['cloudProvider']=_0x176d02[_0x3eb5df(0x1fb)],global_registry[_0x3eb5df(0x1d7)]=_0x176d02[_0x3eb5df(0x1c4)],global_registry[_0x3eb5df(0x1dc)]=_0x176d02[_0x3eb5df(0x1dc)];const _0x3f15c8=await _0x57f8f2['UJHov'](getCloudProviderObject,_0x176d02[_0x3eb5df(0x1fb)],_0x176d02[_0x3eb5df(0x1dc)],_0x176d02[_0x3eb5df(0x1e9)],_0x2eaa1f,webSocketUtils,_0x117a23),[_0x39ff2e,_0x117001,_0x16b356,_0x1afbef,_0x1807e3,_0x470363]=await _0x57f8f2[_0x3eb5df(0x1fe)](createK8sClient,_0x3f15c8,_0x117a23[_0x3eb5df(0x1bf)]);await _0x57f8f2[_0x3eb5df(0x1fe)](scaleUpHubDeployment,_0x117001,_0x176d02[_0x3eb5df(0x1e9)]),logger[_0x3eb5df(0x1e8)](_0x57f8f2['trhqg']),process['exit'](0x0);}_0x57f8f2[_0x3eb5df(0x1e2)](_0x5e11d3[_0x3eb5df(0x1b2)],0x191)&&(logger[_0x3eb5df(0x1e1)](_0x57f8f2[_0x3eb5df(0x1cc)]),await _0x57f8f2[_0x3eb5df(0x1dd)](sendInstrumentationEvent,_0x117a23,_0x57f8f2[_0x3eb5df(0x1e6)],messageTypes[_0x3eb5df(0x1ac)],_0x57f8f2[_0x3eb5df(0x1b9)],null,_0x117a23),process[_0x3eb5df(0x1a6)](0x1)),_0x57f8f2['UIBKe'](_0x5e11d3[_0x3eb5df(0x1b2)],0x190)&&(logger[_0x3eb5df(0x1e1)](JSON[_0x3eb5df(0x1a7)](_0x5e11d3[_0x3eb5df(0x1d3)])[_0x3eb5df(0x1b4)]),await _0x57f8f2[_0x3eb5df(0x1dd)](sendInstrumentationEvent,_0x117a23,_0x57f8f2['unuum'],messageTypes[_0x3eb5df(0x1ac)],_0x57f8f2[_0x3eb5df(0x1e0)],null,_0x117a23),process[_0x3eb5df(0x1a6)](0x1)),logger[_0x3eb5df(0x1e1)](_0x3eb5df(0x1e3)+JSON['stringify'](_0x5e11d3)),await _0x57f8f2['UJHov'](sendInstrumentationEvent,_0x117a23,_0x57f8f2[_0x3eb5df(0x1e6)],messageTypes[_0x3eb5df(0x1ac)],_0x57f8f2[_0x3eb5df(0x1df)],_0x5e11d3,_0x117a23),process['exit'](0x1);}catch(_0x233393){const _0xdaa152=_0x3eb5df(0x1b6)+_0x233393+'\x20\x0a'+JSON[_0x3eb5df(0x1c5)](_0x233393[_0x3eb5df(0x1ea)])+'\x20';logger[_0x3eb5df(0x1e1)](_0xdaa152),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0x217af2=a20_0x30e6;function a20_0x30e6(_0x3a5adc,_0x379610){const _0x3aab8e=a20_0x3aab();return a20_0x30e6=function(_0x30e674,_0x51b39b){_0x30e674=_0x30e674-0xf1;let _0x9bbde0=_0x3aab8e[_0x30e674];return _0x9bbde0;},a20_0x30e6(_0x3a5adc,_0x379610);}(function(_0x310429,_0x270c23){const _0x2da035=a20_0x30e6,_0x5548f3=_0x310429();while(!![]){try{const _0x44c242=-parseInt(_0x2da035(0x101))/0x1+parseInt(_0x2da035(0xfe))/0x2*(-parseInt(_0x2da035(0xf1))/0x3)+-parseInt(_0x2da035(0xff))/0x4+-parseInt(_0x2da035(0x109))/0x5+-parseInt(_0x2da035(0xf3))/0x6+parseInt(_0x2da035(0x105))/0x7*(parseInt(_0x2da035(0xf5))/0x8)+parseInt(_0x2da035(0xfc))/0x9*(parseInt(_0x2da035(0x104))/0xa);if(_0x44c242===_0x270c23)break;else _0x5548f3['push'](_0x5548f3['shift']());}catch(_0x58eb77){_0x5548f3['push'](_0x5548f3['shift']());}}}(a20_0x3aab,0xe33d1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x3aab(){const _0x3e61d7=['stop','handler','help','kxPIG','216Kyyknj','desc','1817016lgwHZR','4537888VEGYzl','commandDir','786989VjiKhD','stop_commands','GdTAT','2389430dvxNpw','30289uQKoGS','builder','epilogue','strict','7954690QIALqT','6VeUFnB','command','3882390hZgvJO','usage','2168aTnSVl','demandCommand','recommendCommands'];a20_0x3aab=function(){return _0x3e61d7;};return a20_0x3aab();}exports[a20_0x217af2(0xf2)]=a20_0x217af2(0xf8),exports[a20_0x217af2(0xfd)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x217af2(0x106)]=function(_0x53bc79){const _0x56ff8c=a20_0x217af2,_0x45f9dd={};_0x45f9dd[_0x56ff8c(0x103)]=_0x56ff8c(0x102),_0x45f9dd[_0x56ff8c(0xfb)]='help';const _0x2b5298=_0x45f9dd;return _0x53bc79[_0x56ff8c(0xf4)](HELP_HEADER_MESSAGE['stop'])[_0x56ff8c(0x107)](HELP_FOOTER_MESSAGE)[_0x56ff8c(0x100)](_0x2b5298[_0x56ff8c(0x103)])[_0x56ff8c(0xf6)]()[_0x56ff8c(0xf7)]()[_0x56ff8c(0x108)]()[_0x56ff8c(0xfa)](_0x2b5298[_0x56ff8c(0xfb)]);},exports[a20_0x217af2(0xf9)]=function(_0x19f144){};
1
+ function a20_0x57a0(){const _0x46ff48=['3csgLBK','5XNOuiL','12hYWUcp','epilogue','stop_commands','720286nfTfSx','4405836uGXiag','8lXFZpm','recommendCommands','../config/constants','handler','commandDir','command','5058193oqBTUt','710RjxLbz','8eqtnOm','7202708BwBTIN','builder','13035363zIyZWS','832HNGAJZ','usage','desc','192627mikVNy','BbwDP','help','stop','Epshk','373hnUuLU'];a20_0x57a0=function(){return _0x46ff48;};return a20_0x57a0();}function a20_0x416d(_0xccff08,_0x5a54af){const _0x57a0e1=a20_0x57a0();return a20_0x416d=function(_0x416d18,_0x488b40){_0x416d18=_0x416d18-0x80;let _0x2b5946=_0x57a0e1[_0x416d18];return _0x2b5946;},a20_0x416d(_0xccff08,_0x5a54af);}const a20_0xb8ee09=a20_0x416d;(function(_0x4a5c4c,_0x5afa22){const _0x38d10c=a20_0x416d,_0x167346=_0x4a5c4c();while(!![]){try{const _0x2bdb2d=parseInt(_0x38d10c(0x92))/0x1*(-parseInt(_0x38d10c(0x9a))/0x2)+parseInt(_0x38d10c(0x93))/0x3*(parseInt(_0x38d10c(0x87))/0x4)+parseInt(_0x38d10c(0x94))/0x5*(-parseInt(_0x38d10c(0x99))/0x6)+parseInt(_0x38d10c(0x84))/0x7*(-parseInt(_0x38d10c(0x86))/0x8)+-parseInt(_0x38d10c(0x8d))/0x9*(parseInt(_0x38d10c(0x85))/0xa)+-parseInt(_0x38d10c(0x89))/0xb*(parseInt(_0x38d10c(0x95))/0xc)+parseInt(_0x38d10c(0x8a))/0xd*(parseInt(_0x38d10c(0x98))/0xe);if(_0x2bdb2d===_0x5afa22)break;else _0x167346['push'](_0x167346['shift']());}catch(_0x43109c){_0x167346['push'](_0x167346['shift']());}}}(a20_0x57a0,0xe3242));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xb8ee09(0x80));exports[a20_0xb8ee09(0x83)]=a20_0xb8ee09(0x90),exports[a20_0xb8ee09(0x8c)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0xb8ee09(0x88)]=function(_0x551aee){const _0xf3abc6=a20_0xb8ee09,_0x5ed4f3={};_0x5ed4f3[_0xf3abc6(0x8e)]=_0xf3abc6(0x97),_0x5ed4f3['Epshk']=_0xf3abc6(0x8f);const _0x29cc17=_0x5ed4f3;return _0x551aee[_0xf3abc6(0x8b)](HELP_HEADER_MESSAGE['stop'])[_0xf3abc6(0x96)](HELP_FOOTER_MESSAGE)[_0xf3abc6(0x82)](_0x29cc17[_0xf3abc6(0x8e)])['demandCommand']()[_0xf3abc6(0x9b)]()['strict']()[_0xf3abc6(0x8f)](_0x29cc17[_0xf3abc6(0x91)]);},exports[a20_0xb8ee09(0x81)]=function(_0x2881e2){};
@@ -1 +1 @@
1
- function a21_0x5064(){const _0x3ae817=['../../config/constants','zPesU','../../utils/createk8sClient','error','username','FUlMO','clusterRegion','DFOmZ','../../utils/webSocketUtils','bAJFN','gridId','jifhh','1359246bjMDNn','type','jWzjI','PvpyN','addListeners','builder','name','Stopping\x20grid\x20','<UsernamePlaceholder>','skipTlsCertVerify','../../utils/gridComponents','string','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','epilogue','connectionTimeout','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1091554cbuxPl','454776njVjJA','lBhFB','lgxrm','rXwql','Browserstack','762XGrwOT','boolean','unauthorised','parse','replace','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','ZAbgI','help','12JmDnbA','stack','Adding\x20Websocket\x20listeners','options','Pnooh','nXQyD','9309771ORgIIo','password','7616104kveGRP','default','RZNIp','init-not-called','desc','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','bstackAccesskey','handler','UxuFk','WoIQZ','region','stop-grid-called','bGZJr','umrfY','cloudProvider','description','Stop\x20a\x20running\x20Automation\x20grid.','Grid\x20stoppped.','command','stop','grid','user','INFO','5780474NvcsCM','debug','body','clusterName','ERROR','statusCode','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','reconnecting-websocket','invalid-grid-id','info','pwaOY','52445mcxDwj','server-error','ypLZi','exit','../../utils/instrumentationUtils','WXlKD','argv','POnnQ','../../cloudproviders/utils','CCWlT','xkIlT'];a21_0x5064=function(){return _0x3ae817;};return a21_0x5064();}const a21_0x23b827=a21_0x589b;(function(_0x4df967,_0x1b9172){const _0x380efd=a21_0x589b,_0x5ccb25=_0x4df967();while(!![]){try{const _0x12336f=parseInt(_0x380efd(0xbc))/0x1+parseInt(_0x380efd(0xac))/0x2+parseInt(_0x380efd(0xcb))/0x3*(parseInt(_0x380efd(0xbd))/0x4)+parseInt(_0x380efd(0x95))/0x5*(parseInt(_0x380efd(0xc2))/0x6)+-parseInt(_0x380efd(0xea))/0x7+-parseInt(_0x380efd(0xd3))/0x8+-parseInt(_0x380efd(0xd1))/0x9;if(_0x12336f===_0x1b9172)break;else _0x5ccb25['push'](_0x5ccb25['shift']());}catch(_0x419f3c){_0x5ccb25['push'](_0x5ccb25['shift']());}}}(a21_0x5064,0xb6172));function a21_0x589b(_0x432850,_0x563df5){const _0x506468=a21_0x5064();return a21_0x589b=function(_0x589b7d,_0x366462){_0x589b7d=_0x589b7d-0x8d;let _0x2ea17e=_0x506468[_0x589b7d];return _0x2ea17e;},a21_0x589b(_0x432850,_0x563df5);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x23b827(0x91)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x23b827(0xa0)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x23b827(0xc8)),{scaleDownHubDeployment}=require(a21_0x23b827(0xb6)),{sendInstrumentationEvent}=require(a21_0x23b827(0x99)),webSocketUtils=require(a21_0x23b827(0xa8)),{createK8sClient}=require(a21_0x23b827(0xa2)),{getCloudProviderObject}=require(a21_0x23b827(0x9d));exports[a21_0x23b827(0xe5)]=a21_0x23b827(0xe7),exports[a21_0x23b827(0xd7)]=a21_0x23b827(0xe3),exports[a21_0x23b827(0xb1)]=function(_0x91b2fe){const _0xd3e440=a21_0x23b827,_0x1c56e5={};_0x1c56e5[_0xd3e440(0xa9)]=_0xd3e440(0xd8),_0x1c56e5[_0xd3e440(0xa1)]=_0xd3e440(0xb7),_0x1c56e5[_0xd3e440(0x9e)]='Skip\x20insecure\x20cert\x20verification.',_0x1c56e5[_0xd3e440(0xc0)]=_0xd3e440(0xc3),_0x1c56e5[_0xd3e440(0xbf)]=_0xd3e440(0xca);const _0x527ca8=_0x1c56e5,_0x7fd1bd={};_0x7fd1bd['description']=_0x527ca8[_0xd3e440(0xa9)],_0x7fd1bd[_0xd3e440(0xad)]=_0x527ca8[_0xd3e440(0xa1)];const _0x15323d={};_0x15323d[_0xd3e440(0xe2)]=_0x527ca8['CCWlT'],_0x15323d[_0xd3e440(0xad)]=_0x527ca8['rXwql'],_0x15323d[_0xd3e440(0xd4)]=![];const _0x34c714={};return _0x34c714['grid-id']=_0x7fd1bd,_0x34c714['skip-tls-cert-verify']=_0x15323d,_0x91b2fe['usage'](HELP_HEADER_MESSAGE[_0xd3e440(0xe6)])[_0xd3e440(0xb9)](HELP_FOOTER_MESSAGE)[_0xd3e440(0xce)](_0x34c714)[_0xd3e440(0xca)](_0x527ca8[_0xd3e440(0xbf)])[_0xd3e440(0x9b)];},exports[a21_0x23b827(0xda)]=async function(_0x4e6630){const _0x506024=a21_0x23b827,_0x17b3f9={'UxuFk':_0x506024(0x90),'wOmuJ':function(_0x430b9a){return _0x430b9a();},'pwaOY':_0x506024(0xc7),'bGZJr':function(_0x12eab9,_0x3d3115,_0x13644a,_0x2f298d,_0x2008ae,_0x2c13cb,_0x546238){return _0x12eab9(_0x3d3115,_0x13644a,_0x2f298d,_0x2008ae,_0x2c13cb,_0x546238);},'ZAbgI':_0x506024(0xde),'jWzjI':_0x506024(0xd6),'ypLZi':function(_0x14e537){return _0x14e537();},'nXQyD':_0x506024(0xb4),'lBhFB':'<PasswordPlaceholder>','fSnOo':_0x506024(0xcd),'PvpyN':function(_0x5de23c,_0xbef858,_0x1ef813,_0x4fcaa2){return _0x5de23c(_0xbef858,_0x1ef813,_0x4fcaa2);},'WXlKD':function(_0x2d9b71,_0x4ec8fa,_0xac84a8){return _0x2d9b71(_0x4ec8fa,_0xac84a8);},'POnnQ':_0x506024(0xe4),'RZNIp':function(_0x51cc51,_0x207108){return _0x51cc51===_0x207108;},'WoIQZ':_0x506024(0xb8),'xkIlT':function(_0x333185,_0xd77754,_0x18035c,_0x1ffd7e,_0x412357,_0x27dfe8,_0x82605f){return _0x333185(_0xd77754,_0x18035c,_0x1ffd7e,_0x412357,_0x27dfe8,_0x82605f);},'umrfY':_0x506024(0xc4),'DFOmZ':function(_0x121cb2,_0x20e300){return _0x121cb2===_0x20e300;},'jifhh':function(_0x23996a,_0x224869,_0x5bf9ca,_0xfda1af,_0x334d96,_0xd71cea,_0x45a4e4){return _0x23996a(_0x224869,_0x5bf9ca,_0xfda1af,_0x334d96,_0xd71cea,_0x45a4e4);},'FUlMO':_0x506024(0x92),'Pnooh':_0x506024(0x96)};let _0x3b196c;try{!_0x4e6630[_0x506024(0xaa)]&&(logger['error'](_0x17b3f9[_0x506024(0xdb)]),process[_0x506024(0x98)](0x1));!fs['existsSync'](_0x17b3f9['wOmuJ'](getCredentialsPath))&&(logger[_0x506024(0xa3)](_0x17b3f9[_0x506024(0x94)]),await _0x17b3f9[_0x506024(0xdf)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9[_0x506024(0xc9)],messageTypes['ERROR'],_0x17b3f9[_0x506024(0xae)],null,_0x4e6630),process['exit'](0x1));logger['info'](_0x506024(0xb3)+_0x4e6630['gridId']),await _0x17b3f9[_0x506024(0xdf)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9['ZAbgI'],messageTypes[_0x506024(0xe9)],null,null,_0x4e6630);const _0x2fe560=JSON[_0x506024(0xc5)](fs['readFileSync'](_0x17b3f9[_0x506024(0x97)](getCredentialsPath)));global_registry['bstackUsername']=_0x2fe560[_0x506024(0xc1)][_0x506024(0xa4)],global_registry[_0x506024(0xd9)]=_0x2fe560[_0x506024(0xc1)][_0x506024(0xd2)];const _0x16d86a=WS_ENDPOINT['replace'](_0x17b3f9[_0x506024(0xd0)],_0x2fe560[_0x506024(0xc1)][_0x506024(0xa4)])[_0x506024(0xc6)](_0x17b3f9[_0x506024(0xbe)],_0x2fe560[_0x506024(0xc1)][_0x506024(0xd2)]),_0x39291b={};_0x39291b['WebSocket']=ws,_0x39291b[_0x506024(0xba)]=0x36ee80,_0x3b196c=new ReconnectingWebSocket(_0x16d86a,[],_0x39291b),logger[_0x506024(0xeb)](_0x17b3f9['fSnOo']),webSocketUtils[_0x506024(0xb0)](_0x3b196c,_0x4e6630[_0x506024(0xe8)],_0x4e6630[_0x506024(0xd2)]);const [_0x2ae979,_0x2ace43]=await _0x17b3f9[_0x506024(0xaf)](getGridDetails,_0x2fe560[_0x506024(0xc1)][_0x506024(0xa4)],_0x2fe560[_0x506024(0xc1)][_0x506024(0xd2)],_0x4e6630[_0x506024(0xaa)]);if(_0x2ace43){const _0x23cd5b=_0x2ace43[_0x506024(0x93)];global_registry[_0x506024(0xe1)]=_0x23cd5b[_0x506024(0xe1)],global_registry[_0x506024(0xa6)]=_0x23cd5b[_0x506024(0xdd)],global_registry[_0x506024(0x8d)]=_0x23cd5b['clusterName'];const _0x26b740=await _0x17b3f9['bGZJr'](getCloudProviderObject,_0x23cd5b['cloudProvider'],_0x23cd5b[_0x506024(0x8d)],_0x23cd5b[_0x506024(0xb2)],_0x3b196c,webSocketUtils,_0x4e6630),[_0x129a17,_0x5a7f1b,_0x34a789,_0x2c7b7e,_0xd10264,_0xf5caf5]=await _0x17b3f9[_0x506024(0x9a)](createK8sClient,_0x26b740,_0x4e6630[_0x506024(0xb5)]);await _0x17b3f9[_0x506024(0x9a)](scaleDownHubDeployment,_0x5a7f1b,_0x23cd5b[_0x506024(0xb2)]),logger[_0x506024(0x93)](_0x17b3f9[_0x506024(0x9c)]),process[_0x506024(0x98)](0x0);}_0x17b3f9[_0x506024(0xd5)](_0x2ae979[_0x506024(0x8f)],0x191)&&(logger[_0x506024(0xa3)](_0x17b3f9[_0x506024(0xdc)]),await _0x17b3f9[_0x506024(0x9f)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9[_0x506024(0xc9)],messageTypes[_0x506024(0x8e)],_0x17b3f9[_0x506024(0xe0)],null,_0x4e6630),process[_0x506024(0x98)](0x1)),_0x17b3f9[_0x506024(0xa7)](_0x2ae979[_0x506024(0x8f)],0x190)&&(logger['error'](JSON[_0x506024(0xc5)](_0x2ae979[_0x506024(0xec)])['message']),await _0x17b3f9[_0x506024(0xab)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9[_0x506024(0xc9)],messageTypes[_0x506024(0x8e)],_0x17b3f9[_0x506024(0xa5)],null,_0x4e6630),process['exit'](0x1)),logger[_0x506024(0xa3)](_0x506024(0xbb)+JSON['stringify'](_0x2ae979)),await _0x17b3f9['jifhh'](sendInstrumentationEvent,_0x4e6630,_0x17b3f9['ZAbgI'],messageTypes[_0x506024(0x8e)],_0x17b3f9[_0x506024(0xcf)],_0x2ae979,_0x4e6630),process[_0x506024(0x98)](0x1);}catch(_0x2b7f53){const _0x28c086='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x2b7f53+'\x20\x0a'+JSON['stringify'](_0x2b7f53[_0x506024(0xcc)])+'\x20';logger[_0x506024(0xa3)](_0x28c086),process['exit'](0x1);}};
1
+ const a21_0x44630a=a21_0x5213;function a21_0x4373(){const _0x57f290=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','Browserstack','1596015LgYVQh','Stopping\x20grid\x20','options','region','cVVSA','username','../../cloudproviders/utils','eMjyn','btvaX','12404kOheTs','existsSync','parse','INFO','66880308nXsOFc','../../config/logger','bstackAccesskey','usage','<PasswordPlaceholder>','grid-id','3353072mLeGsJ','LgkVu','bppRG','gWxte','readFileSync','AnQLi','grid','peddU','WebSocket','server-error','message','122wakjni','cstMq','desc','info','unauthorised','gridId','default','connectionTimeout','36vGPIBC','help','yUpUR','../../config/constants','handler','invalid-grid-id','VNVcm','boolean','72YiYdon','SLOFa','595XQpkNg','IUvJP','statusCode','exit','debug','error','XGfaZ','../../utils/createk8sClient','replace','<UsernamePlaceholder>','gdHQv','clusterRegion','../../utils/instrumentationUtils','669907kwxtMK','clusterName','command','wBgwr','Skip\x20insecure\x20cert\x20verification.','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','ycBwp','argv','stop-grid-called','XGFnC','Vknis','eEwuX','90IzqfxW','reconnecting-websocket','user','OTMRd','builder','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','skip-tls-cert-verify','bstackUsername','Adding\x20Websocket\x20listeners','cloudProvider','MGeTO','ERROR','epilogue','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','init-not-called','29595JwzerZ','XhYQN','1528428OwRfzD','type'];a21_0x4373=function(){return _0x57f290;};return a21_0x4373();}function a21_0x5213(_0x6c817a,_0xf9a724){const _0x43735b=a21_0x4373();return a21_0x5213=function(_0x521361,_0x12dafc){_0x521361=_0x521361-0x11b;let _0x5c378d=_0x43735b[_0x521361];return _0x5c378d;},a21_0x5213(_0x6c817a,_0xf9a724);}(function(_0x962e53,_0x532a4c){const _0x52edf7=a21_0x5213,_0x5755f3=_0x962e53();while(!![]){try{const _0x50317e=-parseInt(_0x52edf7(0x175))/0x1+-parseInt(_0x52edf7(0x133))/0x2*(-parseInt(_0x52edf7(0x16e))/0x3)+-parseInt(_0x52edf7(0x11e))/0x4*(-parseInt(_0x52edf7(0x145))/0x5)+parseInt(_0x52edf7(0x143))/0x6*(-parseInt(_0x52edf7(0x152))/0x7)+-parseInt(_0x52edf7(0x128))/0x8*(parseInt(_0x52edf7(0x13b))/0x9)+parseInt(_0x52edf7(0x15e))/0xa*(-parseInt(_0x52edf7(0x170))/0xb)+parseInt(_0x52edf7(0x122))/0xc;if(_0x50317e===_0x532a4c)break;else _0x5755f3['push'](_0x5755f3['shift']());}catch(_0x494ef6){_0x5755f3['push'](_0x5755f3['shift']());}}}(a21_0x4373,0xd50c8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x44630a(0x15f)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x44630a(0x13e)),{logger}=require(a21_0x44630a(0x123)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x44630a(0x151)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x44630a(0x14c)),{getCloudProviderObject}=require(a21_0x44630a(0x11b));exports[a21_0x44630a(0x154)]=a21_0x44630a(0x12e),exports[a21_0x44630a(0x135)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x44630a(0x162)]=function(_0x43d403){const _0x5f1979=a21_0x44630a,_0x1c8d7a={};_0x1c8d7a['XGfaZ']=_0x5f1979(0x157),_0x1c8d7a[_0x5f1979(0x169)]='string',_0x1c8d7a[_0x5f1979(0x12b)]=_0x5f1979(0x156),_0x1c8d7a[_0x5f1979(0x12a)]=_0x5f1979(0x142),_0x1c8d7a[_0x5f1979(0x155)]=_0x5f1979(0x13c);const _0x2b6e28=_0x1c8d7a,_0x2634eb={};_0x2634eb['description']=_0x2b6e28[_0x5f1979(0x14b)],_0x2634eb[_0x5f1979(0x171)]=_0x2b6e28[_0x5f1979(0x169)];const _0x36a319={};_0x36a319['description']=_0x2b6e28[_0x5f1979(0x12b)],_0x36a319[_0x5f1979(0x171)]=_0x2b6e28['bppRG'],_0x36a319[_0x5f1979(0x139)]=![];const _0x489295={};return _0x489295[_0x5f1979(0x127)]=_0x2634eb,_0x489295[_0x5f1979(0x165)]=_0x36a319,_0x43d403[_0x5f1979(0x125)](HELP_HEADER_MESSAGE['stop'])[_0x5f1979(0x16b)](HELP_FOOTER_MESSAGE)[_0x5f1979(0x177)](_0x489295)[_0x5f1979(0x13c)](_0x2b6e28[_0x5f1979(0x155)])[_0x5f1979(0x159)];},exports[a21_0x44630a(0x13f)]=async function(_0x24bcb1){const _0x3297a3=a21_0x44630a,_0xcb12bc={'XhYQN':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','VNVcm':function(_0x298d88){return _0x298d88();},'XzuCv':_0x3297a3(0x16c),'SLOFa':function(_0x1c95d9,_0x4619af,_0x5dbbcc,_0x2532b5,_0x444e3e,_0x4200ed,_0x4d769c){return _0x1c95d9(_0x4619af,_0x5dbbcc,_0x2532b5,_0x444e3e,_0x4200ed,_0x4d769c);},'btvaX':_0x3297a3(0x15a),'OTMRd':_0x3297a3(0x16d),'eEwuX':function(_0x533185){return _0x533185();},'AnQLi':_0x3297a3(0x14e),'ziieu':_0x3297a3(0x126),'Vknis':_0x3297a3(0x167),'eMjyn':function(_0x4f4dc0,_0x419552,_0x7c908c,_0x5440e3){return _0x4f4dc0(_0x419552,_0x7c908c,_0x5440e3);},'IUvJP':function(_0x432dee,_0x4e6ac0,_0x2dc489){return _0x432dee(_0x4e6ac0,_0x2dc489);},'peddU':'Grid\x20stoppped.','cVVSA':function(_0x35ff9f,_0xd5f678){return _0x35ff9f===_0xd5f678;},'cstMq':_0x3297a3(0x172),'gdHQv':function(_0x19e841,_0x4475dd,_0x1cab88,_0x2f8faf,_0x35358c,_0x83d8b2,_0x55d4be){return _0x19e841(_0x4475dd,_0x1cab88,_0x2f8faf,_0x35358c,_0x83d8b2,_0x55d4be);},'ycBwp':_0x3297a3(0x137),'yUpUR':function(_0x32b34a,_0x1414f2,_0x424d08,_0x1c5dbb,_0x3befa5,_0x406997,_0x276082){return _0x32b34a(_0x1414f2,_0x424d08,_0x1c5dbb,_0x3befa5,_0x406997,_0x276082);},'XGFnC':_0x3297a3(0x140),'LgkVu':_0x3297a3(0x131)};let _0x5cd695;try{!_0x24bcb1[_0x3297a3(0x138)]&&(logger[_0x3297a3(0x14a)](_0xcb12bc[_0x3297a3(0x16f)]),process[_0x3297a3(0x148)](0x1));!fs[_0x3297a3(0x11f)](_0xcb12bc[_0x3297a3(0x141)](getCredentialsPath))&&(logger[_0x3297a3(0x14a)](_0xcb12bc['XzuCv']),await _0xcb12bc[_0x3297a3(0x144)](sendInstrumentationEvent,_0x24bcb1,_0xcb12bc['btvaX'],messageTypes[_0x3297a3(0x16a)],_0xcb12bc[_0x3297a3(0x161)],null,_0x24bcb1),process[_0x3297a3(0x148)](0x1));logger[_0x3297a3(0x136)](_0x3297a3(0x176)+_0x24bcb1[_0x3297a3(0x138)]),await _0xcb12bc['SLOFa'](sendInstrumentationEvent,_0x24bcb1,_0xcb12bc[_0x3297a3(0x11d)],messageTypes[_0x3297a3(0x121)],null,null,_0x24bcb1);const _0x10f2f7=JSON[_0x3297a3(0x120)](fs[_0x3297a3(0x12c)](_0xcb12bc[_0x3297a3(0x15d)](getCredentialsPath)));global_registry[_0x3297a3(0x166)]=_0x10f2f7['Browserstack'][_0x3297a3(0x17a)],global_registry[_0x3297a3(0x124)]=_0x10f2f7['Browserstack'][_0x3297a3(0x164)];const _0x7b450d=WS_ENDPOINT[_0x3297a3(0x14d)](_0xcb12bc[_0x3297a3(0x12d)],_0x10f2f7[_0x3297a3(0x174)]['username'])[_0x3297a3(0x14d)](_0xcb12bc['ziieu'],_0x10f2f7['Browserstack']['password']),_0x4e83d9={};_0x4e83d9[_0x3297a3(0x130)]=ws,_0x4e83d9[_0x3297a3(0x13a)]=0x36ee80,_0x5cd695=new ReconnectingWebSocket(_0x7b450d,[],_0x4e83d9),logger[_0x3297a3(0x149)](_0xcb12bc[_0x3297a3(0x15c)]),webSocketUtils['addListeners'](_0x5cd695,_0x24bcb1[_0x3297a3(0x160)],_0x24bcb1[_0x3297a3(0x164)]);const [_0x1fee0c,_0x15776f]=await _0xcb12bc[_0x3297a3(0x11c)](getGridDetails,_0x10f2f7[_0x3297a3(0x174)][_0x3297a3(0x17a)],_0x10f2f7['Browserstack'][_0x3297a3(0x164)],_0x24bcb1[_0x3297a3(0x138)]);if(_0x15776f){const _0x31290a=_0x15776f[_0x3297a3(0x136)];global_registry[_0x3297a3(0x168)]=_0x31290a['cloudProvider'],global_registry[_0x3297a3(0x150)]=_0x31290a[_0x3297a3(0x178)],global_registry[_0x3297a3(0x153)]=_0x31290a[_0x3297a3(0x153)];const _0x113fbd=await _0xcb12bc['SLOFa'](getCloudProviderObject,_0x31290a[_0x3297a3(0x168)],_0x31290a['clusterName'],_0x31290a['name'],_0x5cd695,webSocketUtils,_0x24bcb1),[_0x3d89b7,_0x1e7494,_0x28c41a,_0x5f54dd,_0x3ded92,_0x3e9680]=await _0xcb12bc[_0x3297a3(0x146)](createK8sClient,_0x113fbd,_0x24bcb1['skipTlsCertVerify']);await _0xcb12bc[_0x3297a3(0x146)](scaleDownHubDeployment,_0x1e7494,_0x31290a['name']),logger[_0x3297a3(0x136)](_0xcb12bc[_0x3297a3(0x12f)]),process[_0x3297a3(0x148)](0x0);}_0xcb12bc[_0x3297a3(0x179)](_0x1fee0c[_0x3297a3(0x147)],0x191)&&(logger[_0x3297a3(0x14a)](_0xcb12bc[_0x3297a3(0x134)]),await _0xcb12bc[_0x3297a3(0x14f)](sendInstrumentationEvent,_0x24bcb1,_0xcb12bc[_0x3297a3(0x11d)],messageTypes[_0x3297a3(0x16a)],_0xcb12bc[_0x3297a3(0x158)],null,_0x24bcb1),process[_0x3297a3(0x148)](0x1)),_0xcb12bc[_0x3297a3(0x179)](_0x1fee0c[_0x3297a3(0x147)],0x190)&&(logger[_0x3297a3(0x14a)](JSON[_0x3297a3(0x120)](_0x1fee0c['body'])[_0x3297a3(0x132)]),await _0xcb12bc[_0x3297a3(0x13d)](sendInstrumentationEvent,_0x24bcb1,_0xcb12bc['btvaX'],messageTypes[_0x3297a3(0x16a)],_0xcb12bc[_0x3297a3(0x15b)],null,_0x24bcb1),process['exit'](0x1)),logger[_0x3297a3(0x14a)](_0x3297a3(0x163)+JSON[_0x3297a3(0x173)](_0x1fee0c)),await _0xcb12bc['SLOFa'](sendInstrumentationEvent,_0x24bcb1,_0xcb12bc[_0x3297a3(0x11d)],messageTypes[_0x3297a3(0x16a)],_0xcb12bc[_0x3297a3(0x129)],_0x1fee0c,_0x24bcb1),process[_0x3297a3(0x148)](0x1);}catch(_0x48f819){const _0x3535d1='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x48f819+'\x20\x0a'+JSON[_0x3297a3(0x173)](_0x48f819['stack'])+'\x20';logger[_0x3297a3(0x14a)](_0x3535d1),process[_0x3297a3(0x148)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x43a234=a22_0x3665;(function(_0x4db5ef,_0x1aa370){const _0x2ad58c=a22_0x3665,_0x2f725a=_0x4db5ef();while(!![]){try{const _0x5b8a89=parseInt(_0x2ad58c(0xff))/0x1+parseInt(_0x2ad58c(0x10c))/0x2+parseInt(_0x2ad58c(0x14f))/0x3*(-parseInt(_0x2ad58c(0x118))/0x4)+-parseInt(_0x2ad58c(0x131))/0x5+-parseInt(_0x2ad58c(0x11a))/0x6*(-parseInt(_0x2ad58c(0x15d))/0x7)+parseInt(_0x2ad58c(0x111))/0x8*(-parseInt(_0x2ad58c(0x11d))/0x9)+parseInt(_0x2ad58c(0x100))/0xa;if(_0x5b8a89===_0x1aa370)break;else _0x2f725a['push'](_0x2f725a['shift']());}catch(_0xe33df2){_0x2f725a['push'](_0x2f725a['shift']());}}}(a22_0x97ad,0x56472),require(a22_0x43a234(0x123))[a22_0x43a234(0x10a)]());let gridURL=a22_0x43a234(0x15b),bsApiUrl=a22_0x43a234(0xf8),agApiUrl=a22_0x43a234(0x14d);const _env=(process[a22_0x43a234(0x145)]['BROWSERSTACK_ENV']||a22_0x43a234(0x114))[a22_0x43a234(0x11c)]();if(_env===a22_0x43a234(0x15a)||_env===a22_0x43a234(0x128))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x43a234(0x149);else(_env===a22_0x43a234(0x147)||_env===a22_0x43a234(0x15f))&&(gridURL=a22_0x43a234(0x160),bsApiUrl=a22_0x43a234(0x122),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x43a234(0x117)]=process[a22_0x43a234(0x145)][a22_0x43a234(0x117)]||gridURL,exports[a22_0x43a234(0x153)]=process['env'][a22_0x43a234(0x153)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x43a234(0x145)]['AG_API_URL']||agApiUrl,exports[a22_0x43a234(0x14b)]='wss://'+this['AG_API_URL']+a22_0x43a234(0x11f),exports['CP_CONFIG_FILE']=a22_0x43a234(0x130),exports[a22_0x43a234(0x125)]=a22_0x43a234(0x101),exports[a22_0x43a234(0x119)]='high-scale-grid',exports['AWS']='aws',exports[a22_0x43a234(0x132)]='BSTACK-ATS-CLUSTER',exports[a22_0x43a234(0x152)]=a22_0x43a234(0x13c),exports[a22_0x43a234(0x13e)]=a22_0x43a234(0x13b),exports[a22_0x43a234(0x129)]=a22_0x43a234(0x10e),exports[a22_0x43a234(0x133)]='azure',exports['GCP']=a22_0x43a234(0x154),exports[a22_0x43a234(0x138)]=[this[a22_0x43a234(0x112)],this[a22_0x43a234(0x133)],this[a22_0x43a234(0x15e)]];const a22_0x12b545={};a22_0x12b545[a22_0x43a234(0x148)]='browserstack:managedBy',a22_0x12b545['Value']='BrowserStack';const a22_0x6d525={};a22_0x6d525[a22_0x43a234(0x148)]=a22_0x43a234(0x13a),a22_0x6d525[a22_0x43a234(0x155)]=a22_0x43a234(0x106);const common_hst_tags_list=[a22_0x12b545,a22_0x6d525];if(process[a22_0x43a234(0x145)][a22_0x43a234(0x126)]){const parsedTags=process[a22_0x43a234(0x145)][a22_0x43a234(0x126)][a22_0x43a234(0x10b)](',');parsedTags[a22_0x43a234(0x10f)](_0xef91be=>{const _0x25a514=a22_0x43a234,_0x385f70=_0xef91be[_0x25a514(0x10b)](':'),_0x57f2c7={};_0x57f2c7[_0x25a514(0x148)]=_0x385f70[0x0],_0x57f2c7['Value']=_0x385f70[0x1],common_hst_tags_list['push'](_0x57f2c7);});}exports[a22_0x43a234(0x12f)]=common_hst_tags_list;function a22_0x3665(_0x5b5635,_0x3591c1){const _0x97ad17=a22_0x97ad();return a22_0x3665=function(_0x366596,_0x558e27){_0x366596=_0x366596-0xf6;let _0x895101=_0x97ad17[_0x366596];return _0x895101;},a22_0x3665(_0x5b5635,_0x3591c1);}const a22_0x252fd9={};a22_0x252fd9[a22_0x43a234(0x15c)]=a22_0x43a234(0xfe),a22_0x252fd9[a22_0x43a234(0x13a)]='BrowserStack-Automate-TurboScale',exports[a22_0x43a234(0x11e)]=a22_0x252fd9,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x175844={};a22_0x175844['LOG']=a22_0x43a234(0x143),a22_0x175844[a22_0x43a234(0x137)]=a22_0x43a234(0x115),a22_0x175844[a22_0x43a234(0x12e)]=a22_0x43a234(0x12d),a22_0x175844['CLI_RUN_STARTED']='cliRunStarted',a22_0x175844[a22_0x43a234(0x13d)]='cliRunFinished',exports[a22_0x43a234(0x102)]=a22_0x175844,exports['global_registry']={},exports[a22_0x43a234(0x110)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x7d28fb={};a22_0x7d28fb[a22_0x43a234(0x13f)]=a22_0x43a234(0x144)+this['LINK_MESSAGE'],a22_0x7d28fb[a22_0x43a234(0xfb)]=a22_0x43a234(0xf7)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0x103)]=a22_0x43a234(0x146)+this[a22_0x43a234(0x110)],a22_0x7d28fb['create']=a22_0x43a234(0x136)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xf6)]={},a22_0x7d28fb['delete']=a22_0x43a234(0x113)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xfc)]=a22_0x43a234(0x105)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0x140)]=a22_0x43a234(0x109)+this['LINK_MESSAGE'],a22_0x7d28fb[a22_0x43a234(0x142)]=a22_0x43a234(0x134)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0x14a)]=a22_0x43a234(0x156)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xf6)][a22_0x43a234(0x13f)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x7d28fb[a22_0x43a234(0xf6)][a22_0x43a234(0x108)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xf6)][a22_0x43a234(0xfa)]=a22_0x43a234(0x12a)+this[a22_0x43a234(0x110)],exports['HELP_HEADER_MESSAGE']=a22_0x7d28fb,exports[a22_0x43a234(0x151)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';function a22_0x97ad(){const _0x55c0a9=['1549620GfYylv','BrowserStackIAMUser','WS_EVENTS','configure','TRIAL_GRID_URL','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack-Automate-TurboScale','NULL','grid','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','config','split','1120934Wfhqpt','warning','browserstack-turboscale-grid','forEach','LINK_MESSAGE','830472FebrTn','AWS','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','prod','resourceInfo','REDACTED','DASHBOARD_ENDPOINT','294932JnIPgP','DEFAULT_GRID_NAME','786FTYDNj','[REDACTED]','toLowerCase','9VdCMlw','HST_CLUSTER_TAGS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLUSTER','api-preprod.bsstag.com','dotenv','UNKNOWN','IAM_USER_NAME','TURBOSCALE_CUSTOM_TAGS','info','stag','TURBOSCALE_DEPLOYMENT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','pre-check','high-scale-grid-cluster','gridUrl','GRID_URL','COMMON_HST_TAGS','credentials','1167290yoblEt','CLUSTER_DEP_STACK_NAME','AZURE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CLI_ARGS_REGEX','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','RESOURCES','ALL_SUPPORTED_CLOUD_PROVIDERS','CLOUD_PROVIDER','browserstack:service','BSTACK-ATS-CLUSTER-HUB-HA','BSTACK-ATS-CLUSTER-AUTOSCALER','CLI_RUN_FINISHED','CLUSTER_HUB_HA_STACK_NAME','root','start','success','stop','log','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','env','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','preprod','Key','grid-api-devhst.bsstag.com','pre_check','WS_ENDPOINT','us-east-1','grid-api.browserstack.com','aws','27kQEEpT','grid-profile','HELP_FOOTER_MESSAGE','CLUSTER_AUTOSCALER_STACK_NAME','BS_API_URL','gcp','Value','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','INFO','WARNING','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','staging','grid.browserstack.com','browserstack:managedBy','9737zsOaJh','GCP','pre-prod','grid-preprod.bsstag.com','list','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','api.browserstack.com','MessageDescription','gridProfile','init','connect','ERROR','BrowserStack','456608YVaGEn'];a22_0x97ad=function(){return _0x55c0a9;};return a22_0x97ad();}const a22_0x599739={};a22_0x599739['SUCCESS']=a22_0x43a234(0x141),a22_0x599739[a22_0x43a234(0xfd)]='error',a22_0x599739[a22_0x43a234(0x157)]=a22_0x43a234(0x127),a22_0x599739[a22_0x43a234(0x158)]=a22_0x43a234(0x10d),a22_0x599739[a22_0x43a234(0x124)]='unknown',a22_0x599739[a22_0x43a234(0x107)]=null,exports['messageTypes']=a22_0x599739,exports[a22_0x43a234(0x135)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x43a234(0x116)]=a22_0x43a234(0x11b);const a22_0x3c4b23={};a22_0x3c4b23[a22_0x43a234(0x150)]=a22_0x43a234(0x159);const a22_0x195ab0={};a22_0x195ab0[a22_0x43a234(0x12b)]=a22_0x3c4b23,exports[a22_0x43a234(0xf9)]=a22_0x195ab0,exports[a22_0x43a234(0x104)]=a22_0x43a234(0x120);const a22_0x2caa37={};a22_0x2caa37[a22_0x43a234(0x121)]=a22_0x43a234(0x12c),a22_0x2caa37[a22_0x43a234(0x139)]=a22_0x43a234(0x14e),a22_0x2caa37['REGION']=a22_0x43a234(0x14c),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x2caa37;
1
+ function a22_0x30a0(_0x3a2a32,_0x4ec2f3){const _0x57ef07=a22_0x57ef();return a22_0x30a0=function(_0x30a06d,_0x4afd02){_0x30a06d=_0x30a06d-0xe9;let _0x6252e9=_0x57ef07[_0x30a06d];return _0x6252e9;},a22_0x30a0(_0x3a2a32,_0x4ec2f3);}const a22_0x1d60f8=a22_0x30a0;(function(_0x2a2bd4,_0x4c58cb){const _0xd5649a=a22_0x30a0,_0x4f0900=_0x2a2bd4();while(!![]){try{const _0x4d138f=parseInt(_0xd5649a(0x106))/0x1+-parseInt(_0xd5649a(0x133))/0x2*(parseInt(_0xd5649a(0xf5))/0x3)+-parseInt(_0xd5649a(0x12d))/0x4*(-parseInt(_0xd5649a(0x122))/0x5)+-parseInt(_0xd5649a(0xf6))/0x6+-parseInt(_0xd5649a(0x11e))/0x7+parseInt(_0xd5649a(0x13a))/0x8+parseInt(_0xd5649a(0x156))/0x9;if(_0x4d138f===_0x4c58cb)break;else _0x4f0900['push'](_0x4f0900['shift']());}catch(_0x2228bd){_0x4f0900['push'](_0x4f0900['shift']());}}}(a22_0x57ef,0x4a7f0),require(a22_0x1d60f8(0x147))[a22_0x1d60f8(0xea)]());let gridURL=a22_0x1d60f8(0x135),bsApiUrl=a22_0x1d60f8(0x118),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x1d60f8(0x153)][a22_0x1d60f8(0x101)]||a22_0x1d60f8(0x13b))['toLowerCase']();if(_env===a22_0x1d60f8(0x155)||_env==='stag')gridURL=a22_0x1d60f8(0x110),bsApiUrl=a22_0x1d60f8(0x137),agApiUrl=a22_0x1d60f8(0x104);else(_env===a22_0x1d60f8(0xf4)||_env===a22_0x1d60f8(0xf0))&&(gridURL=a22_0x1d60f8(0xeb),bsApiUrl=a22_0x1d60f8(0x125),agApiUrl=a22_0x1d60f8(0x112));exports[a22_0x1d60f8(0x10c)]=process[a22_0x1d60f8(0x153)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x1d60f8(0x11a)]=process[a22_0x1d60f8(0x153)][a22_0x1d60f8(0x11a)]||bsApiUrl,exports[a22_0x1d60f8(0x11b)]=process[a22_0x1d60f8(0x153)][a22_0x1d60f8(0x11b)]||agApiUrl,exports[a22_0x1d60f8(0x119)]='wss://'+this[a22_0x1d60f8(0x11b)]+a22_0x1d60f8(0x130),exports['CP_CONFIG_FILE']=a22_0x1d60f8(0x13d),exports[a22_0x1d60f8(0xf2)]='BrowserStackIAMUser',exports[a22_0x1d60f8(0xf3)]=a22_0x1d60f8(0x13f),exports[a22_0x1d60f8(0x117)]=a22_0x1d60f8(0x138),exports['CLUSTER_DEP_STACK_NAME']=a22_0x1d60f8(0x140),exports[a22_0x1d60f8(0x144)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x1d60f8(0x143)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x1d60f8(0x158)]=a22_0x1d60f8(0x120),exports[a22_0x1d60f8(0x10a)]=a22_0x1d60f8(0x12f),exports['GCP']=a22_0x1d60f8(0x10f),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x1d60f8(0x10a)],this[a22_0x1d60f8(0x114)]];const a22_0x5e6aa3={};a22_0x5e6aa3['Key']='browserstack:managedBy',a22_0x5e6aa3[a22_0x1d60f8(0x10b)]=a22_0x1d60f8(0xe9);const a22_0x3ec5c2={};a22_0x3ec5c2['Key']=a22_0x1d60f8(0xf1),a22_0x3ec5c2[a22_0x1d60f8(0x10b)]=a22_0x1d60f8(0x152);const common_hst_tags_list=[a22_0x5e6aa3,a22_0x3ec5c2];if(process[a22_0x1d60f8(0x153)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x1d60f8(0x153)][a22_0x1d60f8(0x132)][a22_0x1d60f8(0x126)](',');parsedTags['forEach'](_0x14127b=>{const _0x29222c=a22_0x1d60f8,_0x53d29c=_0x14127b['split'](':'),_0x4c182b={};_0x4c182b[_0x29222c(0x151)]=_0x53d29c[0x0],_0x4c182b['Value']=_0x53d29c[0x1],common_hst_tags_list['push'](_0x4c182b);});}exports[a22_0x1d60f8(0x113)]=common_hst_tags_list;const a22_0x1cabd0={};a22_0x1cabd0[a22_0x1d60f8(0x129)]=a22_0x1d60f8(0xe9),a22_0x1cabd0[a22_0x1d60f8(0xf1)]=a22_0x1d60f8(0x152),exports[a22_0x1d60f8(0x12e)]=a22_0x1cabd0,exports[a22_0x1d60f8(0x14b)]=[this[a22_0x1d60f8(0x117)]];function a22_0x57ef(){const _0x29a83a=['IAM_USER_NAME','DEFAULT_GRID_NAME','preprod','21zYVTAq','2526570Akesju','MessageDescription','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','ERROR','TRIAL_GRID_URL','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','resourceInfo','error','grid','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','CLUSTER','BROWSERSTACK_ENV','configure','success','grid-api-devhst.bsstag.com','delete','95463ijIDqP','RAW_ARGS_REGEX','CLOUD_PROVIDER','CLI_ARGS_REGEX','AZURE','Value','DASHBOARD_ENDPOINT','INFO','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','gcp','grid-devhst.bsstag.com','[REDACTED]','grid-api-preprod.bsstag.com','COMMON_HST_TAGS','GCP','unknown','SUCCESS','AWS','api.browserstack.com','WS_ENDPOINT','BS_API_URL','AG_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','root','1634444KQjsUw','global_registry','browserstack-turboscale-grid','warning','375710ZiRXck','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','cliRunFinished','api-preprod.bsstag.com','split','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','DEFAULT_CLUSTER_DETAILS','browserstack:managedBy','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','grid-profile','16sZNJNN','HST_CLUSTER_TAGS','azure','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','TURBOSCALE_CUSTOM_TAGS','2564nuGGdJ','GRID_URL','grid.browserstack.com','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','api-devhst.bsstag.com','aws','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','1935224tVsjLY','prod','LINK_MESSAGE','credentials','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','high-scale-grid','BSTACK-ATS-CLUSTER','start','pre_check','CLUSTER_HUB_HA_STACK_NAME','CLUSTER_AUTOSCALER_STACK_NAME','list','init','dotenv','gridUrl','info','CLI_RUN_FINISHED','SUPPORTED_CLOUD_PROVIDERS','HELP_FOOTER_MESSAGE','messageTypes','WS_EVENTS','LOG','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','Key','BrowserStack-Automate-TurboScale','env','gridProfile','staging','2976867gdNiEI','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','TURBOSCALE_DEPLOYMENT','us-east-1','BrowserStack','config','grid-preprod.bsstag.com','REGION','log','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','WARNING','pre-prod','browserstack:service'];a22_0x57ef=function(){return _0x29a83a;};return a22_0x57ef();}const a22_0x13d1d9={};a22_0x13d1d9[a22_0x1d60f8(0x14f)]=a22_0x1d60f8(0xed),a22_0x13d1d9['RESOURCES']=a22_0x1d60f8(0xfc),a22_0x13d1d9[a22_0x1d60f8(0x134)]=a22_0x1d60f8(0x148),a22_0x13d1d9['CLI_RUN_STARTED']='cliRunStarted',a22_0x13d1d9[a22_0x1d60f8(0x14a)]=a22_0x1d60f8(0x124),exports[a22_0x1d60f8(0x14e)]=a22_0x13d1d9,exports[a22_0x1d60f8(0x11f)]={},exports[a22_0x1d60f8(0x13c)]=a22_0x1d60f8(0x10e);const a22_0x4e88f4={};a22_0x4e88f4[a22_0x1d60f8(0x11d)]=a22_0x1d60f8(0x139)+this['LINK_MESSAGE'],a22_0x4e88f4[a22_0x1d60f8(0x146)]=a22_0x1d60f8(0x157)+this['LINK_MESSAGE'],a22_0x4e88f4[a22_0x1d60f8(0x102)]=a22_0x1d60f8(0x11c)+this[a22_0x1d60f8(0x13c)],a22_0x4e88f4['create']=a22_0x1d60f8(0x150)+this[a22_0x1d60f8(0x13c)],a22_0x4e88f4[a22_0x1d60f8(0x145)]={},a22_0x4e88f4[a22_0x1d60f8(0x105)]=a22_0x1d60f8(0xfb)+this[a22_0x1d60f8(0x13c)],a22_0x4e88f4['connect']=a22_0x1d60f8(0x13e)+this[a22_0x1d60f8(0x13c)],a22_0x4e88f4[a22_0x1d60f8(0x141)]=a22_0x1d60f8(0xff)+this[a22_0x1d60f8(0x13c)],a22_0x4e88f4['stop']=a22_0x1d60f8(0x12b)+this[a22_0x1d60f8(0x13c)],a22_0x4e88f4[a22_0x1d60f8(0x142)]=a22_0x1d60f8(0xf8)+this['LINK_MESSAGE'],a22_0x4e88f4[a22_0x1d60f8(0x145)]['root']=a22_0x1d60f8(0xee)+this[a22_0x1d60f8(0x13c)],a22_0x4e88f4[a22_0x1d60f8(0x145)][a22_0x1d60f8(0xfe)]=a22_0x1d60f8(0x131)+this[a22_0x1d60f8(0x13c)],a22_0x4e88f4[a22_0x1d60f8(0x145)][a22_0x1d60f8(0x154)]=a22_0x1d60f8(0x123)+this[a22_0x1d60f8(0x13c)],exports['HELP_HEADER_MESSAGE']=a22_0x4e88f4,exports[a22_0x1d60f8(0x14c)]=a22_0x1d60f8(0x136);const a22_0x5cd583={};a22_0x5cd583[a22_0x1d60f8(0x116)]=a22_0x1d60f8(0x103),a22_0x5cd583[a22_0x1d60f8(0xf9)]=a22_0x1d60f8(0xfd),a22_0x5cd583[a22_0x1d60f8(0x10d)]=a22_0x1d60f8(0x149),a22_0x5cd583[a22_0x1d60f8(0xef)]=a22_0x1d60f8(0x121),a22_0x5cd583['UNKNOWN']=a22_0x1d60f8(0x115),a22_0x5cd583['NULL']=null,exports[a22_0x1d60f8(0x14d)]=a22_0x5cd583,exports[a22_0x1d60f8(0x109)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1d60f8(0x107)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x1d60f8(0x111);const a22_0x1b2fd9={};a22_0x1b2fd9[a22_0x1d60f8(0x12c)]=a22_0x1d60f8(0x127);const a22_0xc79c00={};a22_0xc79c00['pre-check']=a22_0x1b2fd9,exports[a22_0x1d60f8(0xf7)]=a22_0xc79c00,exports[a22_0x1d60f8(0xfa)]=a22_0x1d60f8(0x12a);const a22_0x23df38={};a22_0x23df38[a22_0x1d60f8(0x100)]='high-scale-grid-cluster',a22_0x23df38[a22_0x1d60f8(0x108)]='aws',a22_0x23df38[a22_0x1d60f8(0xec)]=a22_0x1d60f8(0x159),exports[a22_0x1d60f8(0x128)]=a22_0x23df38;
@@ -1 +1 @@
1
- const a23_0x34bcbd=a23_0x2706;(function(_0x382f5a,_0x388afc){const _0x38c684=a23_0x2706,_0x7ce34c=_0x382f5a();while(!![]){try{const _0x1bfd5b=parseInt(_0x38c684(0x11a))/0x1+-parseInt(_0x38c684(0x116))/0x2*(-parseInt(_0x38c684(0x10f))/0x3)+parseInt(_0x38c684(0x112))/0x4*(-parseInt(_0x38c684(0x103))/0x5)+parseInt(_0x38c684(0x118))/0x6*(parseInt(_0x38c684(0x117))/0x7)+-parseInt(_0x38c684(0x108))/0x8+parseInt(_0x38c684(0x107))/0x9*(-parseInt(_0x38c684(0x104))/0xa)+parseInt(_0x38c684(0x113))/0xb;if(_0x1bfd5b===_0x388afc)break;else _0x7ce34c['push'](_0x7ce34c['shift']());}catch(_0x369b96){_0x7ce34c['push'](_0x7ce34c['shift']());}}}(a23_0x3515,0xe85f3));const winston=require(a23_0x34bcbd(0x114)),fs=require('fs'),path=require('path'),logDir=a23_0x34bcbd(0x10c);!fs[a23_0x34bcbd(0xff)](logDir)&&fs['mkdirSync'](logDir);function a23_0x2706(_0xb9c01c,_0x55baa6){const _0x351516=a23_0x3515();return a23_0x2706=function(_0x2706cf,_0x1430ea){_0x2706cf=_0x2706cf-0xfd;let _0xcae0f3=_0x351516[_0x2706cf];return _0xcae0f3;},a23_0x2706(_0xb9c01c,_0x55baa6);}const a23_0x81f76c={};a23_0x81f76c['format']=a23_0x34bcbd(0x110);function a23_0x3515(){const _0x4491d7=['debug','existsSync','Console','message','level','65wnbVLM','670270peVpma','join','printf','153KkCHmz','8171176KUbVlK','createLogger','usage.log','format','log','combine','File','126933TdbHOp','YYYY-MM-DD\x20HH:mm:ss','timestamp','550572wwLYHj','43934957dswPvF','winston','\x20-\x20','6YzpTLX','14omNRIq','1007892IFaagw','console.info','445026WNyOTd','transports','colorize','events.log'];a23_0x3515=function(){return _0x4491d7;};return a23_0x3515();}const a23_0x45e540={};a23_0x45e540[a23_0x34bcbd(0x102)]=!![];const a23_0x4be6c9={};a23_0x4be6c9['name']=a23_0x34bcbd(0x119),exports['logger']=new winston[(a23_0x34bcbd(0x109))]({'format':winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x10d)](winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x111)](a23_0x81f76c),winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x11c)](a23_0x45e540),winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x106)](_0x5f4870=>_0x5f4870[a23_0x34bcbd(0x111)]+a23_0x34bcbd(0x115)+_0x5f4870['level']+':\x20'+_0x5f4870[a23_0x34bcbd(0x101)])),'transports':[new winston[(a23_0x34bcbd(0x11b))][(a23_0x34bcbd(0x100))](a23_0x4be6c9),new winston[(a23_0x34bcbd(0x11b))][(a23_0x34bcbd(0x10e))]({'filename':path[a23_0x34bcbd(0x105)](logDir,a23_0x34bcbd(0xfd)),'level':a23_0x34bcbd(0xfe)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x34bcbd(0x11b))][(a23_0x34bcbd(0x10e))]({'filename':path[a23_0x34bcbd(0x105)](logDir,a23_0x34bcbd(0x10a)),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x34bcbd(0x109))](winstonFileLoggerParams);
1
+ const a23_0xfadc7d=a23_0xdca4;(function(_0x5d04ec,_0x20cb63){const _0x31cbf6=a23_0xdca4,_0x1ce733=_0x5d04ec();while(!![]){try{const _0x2f490f=-parseInt(_0x31cbf6(0xf6))/0x1*(-parseInt(_0x31cbf6(0xf4))/0x2)+-parseInt(_0x31cbf6(0xe1))/0x3*(-parseInt(_0x31cbf6(0xe9))/0x4)+-parseInt(_0x31cbf6(0xf2))/0x5+parseInt(_0x31cbf6(0xe0))/0x6+-parseInt(_0x31cbf6(0xe8))/0x7+parseInt(_0x31cbf6(0xf8))/0x8*(parseInt(_0x31cbf6(0xe6))/0x9)+-parseInt(_0x31cbf6(0xdf))/0xa;if(_0x2f490f===_0x20cb63)break;else _0x1ce733['push'](_0x1ce733['shift']());}catch(_0x276248){_0x1ce733['push'](_0x1ce733['shift']());}}}(a23_0x18e8,0x66a31));const winston=require(a23_0xfadc7d(0xf1)),fs=require('fs'),path=require('path'),logDir='log';!fs['existsSync'](logDir)&&fs[a23_0xfadc7d(0xf3)](logDir);function a23_0x18e8(){const _0xd7ad0b=['21WATaIu','level','format','Console','join','23787ioXTzS','createLogger','3231732MKmlIa','453292jwMAQO','usage.log','YYYY-MM-DD\x20HH:mm:ss','File','logger','events.log','name','transports','winston','3719695cvgCwA','mkdirSync','6FCiJoo','debug','99971uDpjjP','\x20-\x20','1832qrHBvx','fileLogger','message','7699470yTufDa','4185252xiTGjM'];a23_0x18e8=function(){return _0xd7ad0b;};return a23_0x18e8();}const a23_0x5f3f5d={};a23_0x5f3f5d[a23_0xfadc7d(0xe3)]=a23_0xfadc7d(0xeb);const a23_0xeab9de={};a23_0xeab9de[a23_0xfadc7d(0xe2)]=!![];const a23_0x39ee18={};a23_0x39ee18[a23_0xfadc7d(0xef)]='console.info',exports[a23_0xfadc7d(0xed)]=new winston[(a23_0xfadc7d(0xe7))]({'format':winston['format']['combine'](winston[a23_0xfadc7d(0xe3)]['timestamp'](a23_0x5f3f5d),winston[a23_0xfadc7d(0xe3)]['colorize'](a23_0xeab9de),winston[a23_0xfadc7d(0xe3)]['printf'](_0x11972f=>_0x11972f['timestamp']+a23_0xfadc7d(0xf7)+_0x11972f[a23_0xfadc7d(0xe2)]+':\x20'+_0x11972f[a23_0xfadc7d(0xde)])),'transports':[new winston[(a23_0xfadc7d(0xf0))][(a23_0xfadc7d(0xe4))](a23_0x39ee18),new winston[(a23_0xfadc7d(0xf0))][(a23_0xfadc7d(0xec))]({'filename':path[a23_0xfadc7d(0xe5)](logDir,a23_0xfadc7d(0xee)),'level':a23_0xfadc7d(0xf5)})]});function a23_0xdca4(_0x4d5293,_0x4b0dbd){const _0x18e8ea=a23_0x18e8();return a23_0xdca4=function(_0xdca421,_0x438717){_0xdca421=_0xdca421-0xdd;let _0x234652=_0x18e8ea[_0xdca421];return _0x234652;},a23_0xdca4(_0x4d5293,_0x4b0dbd);}const winstonFileLoggerParams={'transports':[new winston[(a23_0xfadc7d(0xf0))][(a23_0xfadc7d(0xec))]({'filename':path[a23_0xfadc7d(0xe5)](logDir,a23_0xfadc7d(0xea)),'level':a23_0xfadc7d(0xf5)})]};exports[a23_0xfadc7d(0xdd)]=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_0x18cfb7=a24_0x455b;(function(_0x466f81,_0x6f7815){const _0x138e9d=a24_0x455b,_0x5eb49c=_0x466f81();while(!![]){try{const _0x27d62d=parseInt(_0x138e9d(0xda))/0x1+parseInt(_0x138e9d(0xd9))/0x2+parseInt(_0x138e9d(0xe1))/0x3+parseInt(_0x138e9d(0xd0))/0x4*(-parseInt(_0x138e9d(0xd6))/0x5)+-parseInt(_0x138e9d(0xdd))/0x6*(parseInt(_0x138e9d(0xdb))/0x7)+-parseInt(_0x138e9d(0xd5))/0x8*(-parseInt(_0x138e9d(0xd4))/0x9)+-parseInt(_0x138e9d(0xe2))/0xa;if(_0x27d62d===_0x6f7815)break;else _0x5eb49c['push'](_0x5eb49c['shift']());}catch(_0x9252bc){_0x5eb49c['push'](_0x5eb49c['shift']());}}}(a24_0x2489,0xec63e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x18cfb7(0xd8));process[a24_0x18cfb7(0xd2)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x3713c1){const _0x45c988=a24_0x18cfb7,_0x213274={};_0x213274[_0x45c988(0xd3)]=_0x45c988(0xcf),_0x213274[_0x45c988(0xde)]='help';const _0x41fd15=_0x213274;_0x3713c1[_0x45c988(0xdc)](HELP_HEADER_MESSAGE[_0x45c988(0xd7)])[_0x45c988(0xdf)](_0x41fd15[_0x45c988(0xd3)])[_0x45c988(0xe0)]()['help'](_0x41fd15[_0x45c988(0xde)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x18cfb7(0xd1)]=run;function a24_0x455b(_0x237284,_0x35a365){const _0x2489f9=a24_0x2489();return a24_0x455b=function(_0x455baf,_0x22e5da){_0x455baf=_0x455baf-0xcf;let _0x24e7e8=_0x2489f9[_0x455baf];return _0x24e7e8;},a24_0x455b(_0x237284,_0x35a365);}function a24_0x2489(){const _0x306abe=['usage','37314MUxAFx','blLaL','commandDir','demandCommand','5096229mJCIry','9296360EYTihD','commands','20NvIelY','exports','env','hkCGc','54063zRYWlB','136yDhwAm','142465amHMaZ','root','./config/constants','1913602viiPuA','22753wwNvVy','833bBqKYh'];a24_0x2489=function(){return _0x306abe;};return a24_0x2489();}
2
+ 'use strict';const a24_0x5dda34=a24_0x659e;function a24_0x659e(_0x349cd3,_0x508d3b){const _0x3d88de=a24_0x3d88();return a24_0x659e=function(_0x659edc,_0x45282d){_0x659edc=_0x659edc-0xf6;let _0x39fc8f=_0x3d88de[_0x659edc];return _0x39fc8f;},a24_0x659e(_0x349cd3,_0x508d3b);}(function(_0xf52454,_0x5a03ac){const _0x29e95d=a24_0x659e,_0xc270e=_0xf52454();while(!![]){try{const _0x175ea8=parseInt(_0x29e95d(0xff))/0x1+-parseInt(_0x29e95d(0x101))/0x2*(parseInt(_0x29e95d(0xfc))/0x3)+parseInt(_0x29e95d(0x104))/0x4*(-parseInt(_0x29e95d(0xf6))/0x5)+-parseInt(_0x29e95d(0xfe))/0x6+parseInt(_0x29e95d(0xfb))/0x7+-parseInt(_0x29e95d(0x100))/0x8+parseInt(_0x29e95d(0x106))/0x9;if(_0x175ea8===_0x5a03ac)break;else _0xc270e['push'](_0xc270e['shift']());}catch(_0x57e3ca){_0xc270e['push'](_0xc270e['shift']());}}}(a24_0x3d88,0x641e4));function a24_0x3d88(){const _0x10b324=['3768408LGapbk','565364XlqTKd','2402208GUHPnw','470086WGvRsm','env','commandDir','64eKFPDI','jBljm','4351491zpVbmZ','help','79845LHPAJr','./config/constants','commands','KVERD','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','5460784zIyERu','3UMiauc','exports'];a24_0x3d88=function(){return _0x10b324;};return a24_0x3d88();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x5dda34(0xf7));process[a24_0x5dda34(0x102)][a24_0x5dda34(0xfa)]=0x1;function run(_0x49fd0c){const _0x5e009b=a24_0x5dda34,_0x13f6c6={};_0x13f6c6['jBljm']=_0x5e009b(0xf8),_0x13f6c6[_0x5e009b(0xf9)]=_0x5e009b(0x107);const _0x38e25d=_0x13f6c6;_0x49fd0c['usage'](HELP_HEADER_MESSAGE['root'])[_0x5e009b(0x103)](_0x38e25d[_0x5e009b(0x105)])['demandCommand']()[_0x5e009b(0x107)](_0x38e25d[_0x5e009b(0xf9)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x5dda34(0xfd)]=run;