browserstack-node-sdk 1.63.0 → 1.63.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) 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 +1 -1
  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/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x1bc779=a15_0x45fe;function a15_0x45fe(_0x2b5c31,_0x14856e){const _0x13fb67=a15_0x13fb();return a15_0x45fe=function(_0x45fe47,_0x2f91b7){_0x45fe47=_0x45fe47-0x102;let _0x40c2d6=_0x13fb67[_0x45fe47];return _0x40c2d6;},a15_0x45fe(_0x2b5c31,_0x14856e);}(function(_0x54c782,_0x50987f){const _0x4d6b62=a15_0x45fe,_0x3dd8ec=_0x54c782();while(!![]){try{const _0x4b8d10=-parseInt(_0x4d6b62(0x14f))/0x1*(parseInt(_0x4d6b62(0x150))/0x2)+parseInt(_0x4d6b62(0x13e))/0x3+-parseInt(_0x4d6b62(0x154))/0x4+parseInt(_0x4d6b62(0x106))/0x5*(-parseInt(_0x4d6b62(0x14c))/0x6)+-parseInt(_0x4d6b62(0x127))/0x7+parseInt(_0x4d6b62(0x12c))/0x8+parseInt(_0x4d6b62(0x13a))/0x9;if(_0x4b8d10===_0x50987f)break;else _0x3dd8ec['push'](_0x3dd8ec['shift']());}catch(_0x58ae8f){_0x3dd8ec['push'](_0x3dd8ec['shift']());}}}(a15_0x13fb,0x66bad));const fs=require('fs'),got=require('got'),{table}=require(a15_0x1bc779(0x123)),{v4:uuidv4}=require(a15_0x1bc779(0x138)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1bc779(0x112)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x1bc779(0x102));function a15_0x13fb(){const _0x254568=['grid-id','log','table','Browserstack','ZWlnQ','wbrVk','5649938DnWyLx','command','OrpFd','boolean','NQPKJ','5190400cOggLf','iYcaC','parse','exit','XRODh','cluster-name','list-grids-called','init-not-called','username','server-error','ZLzce','queued','uuid','requestId','15567336CKvrfV','LCfnp','INTAL','description','598818bJytmP','FUslz','https://','help','body','password','push','list','epilogue','grids','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','TSJse','oDylf','argv','36tRIGMh','all-grids','existsSync','1150UEtTgD','622AiUUhx','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','grid-name','ERROR','1348852gCSFpM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/instrumentationUtils','running','error','INFO','546110muzdSD','DviGL','unknown-error','vvlOe','status','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','/packages/cli/get-grids','HymPA','bstackUsername','gEmnK','builder','unauthorised','../../config/constants','EKtOA','WbUqV','allGrids','stringify','options','/packages/cli/get-all-grids','OAmjL','stack','QrItY','AxfMx','bstackAccesskey','statusCode','rcOhP','HTUzy'];a15_0x13fb=function(){return _0x254568;};return a15_0x13fb();}exports[a15_0x1bc779(0x128)]=a15_0x1bc779(0x147),exports['desc']=a15_0x1bc779(0x151),exports[a15_0x1bc779(0x110)]=function(_0x3bbb68){const _0x4c50c4=a15_0x1bc779,_0x1594ca={};_0x1594ca[_0x4c50c4(0x12d)]=_0x4c50c4(0x10b),_0x1594ca[_0x4c50c4(0x11b)]=_0x4c50c4(0x12a),_0x1594ca[_0x4c50c4(0x13b)]=_0x4c50c4(0x141);const _0x253124=_0x1594ca,_0x534c1b={};_0x534c1b[_0x4c50c4(0x13d)]=_0x253124['iYcaC'],_0x534c1b['type']=_0x253124[_0x4c50c4(0x11b)];const _0x3685e4={};return _0x3685e4[_0x4c50c4(0x14d)]=_0x534c1b,_0x3bbb68['usage'](HELP_HEADER_MESSAGE[_0x4c50c4(0x145)]['grid'])[_0x4c50c4(0x146)](HELP_FOOTER_MESSAGE)[_0x4c50c4(0x117)](_0x3685e4)[_0x4c50c4(0x141)](_0x253124[_0x4c50c4(0x13b)])[_0x4c50c4(0x14b)];},exports['handler']=async function(_0x551007){const _0x33d0c1=a15_0x1bc779,_0x38344b={'wbrVk':function(_0x4f4a5e){return _0x4f4a5e();},'zuTmb':function(_0x18c260){return _0x18c260();},'ZLzce':_0x33d0c1(0x148),'TSJse':function(_0x1b5a05,_0x1ecd29,_0x3e4a24,_0x4c8d74,_0x50877c,_0x3c87c7,_0x2be09f){return _0x1b5a05(_0x1ecd29,_0x3e4a24,_0x4c8d74,_0x50877c,_0x3c87c7,_0x2be09f);},'EKtOA':_0x33d0c1(0x132),'PDtoT':_0x33d0c1(0x133),'bYRsi':'GET','AxfMx':function(_0x4bd027,_0x586e78,_0x52406e){return _0x4bd027(_0x586e78,_0x52406e);},'gEmnK':function(_0x80f0e2,_0x75b987,_0x4e46f3,_0x3e06d7,_0x28c1f1,_0x1798e3,_0x5361fd){return _0x80f0e2(_0x75b987,_0x4e46f3,_0x3e06d7,_0x28c1f1,_0x1798e3,_0x5361fd);},'ZWlnQ':function(_0x5ac49a,_0x319ca8,_0x566c1c){return _0x5ac49a(_0x319ca8,_0x566c1c);},'QEZZi':function(_0x12d2ab,_0x375d51){return _0x12d2ab!==_0x375d51;},'oDylf':function(_0x353c40,_0x3f1d30){return _0x353c40!==_0x3f1d30;},'NQPKJ':function(_0x20a1bf,_0x6f84fa){return _0x20a1bf===_0x6f84fa;},'OAmjL':'\x0aFound\x20the\x20following\x20grids:\x0a','XRODh':_0x33d0c1(0x121),'HymPA':_0x33d0c1(0x152),'WbUqV':_0x33d0c1(0x10a),'HTUzy':_0x33d0c1(0x103),'rcOhP':_0x33d0c1(0x137),'OrpFd':_0x33d0c1(0x131),'INTAL':function(_0x252a62,_0x1b7088){return _0x252a62(_0x1b7088);},'vvlOe':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FUslz':_0x33d0c1(0x111),'ekkLu':_0x33d0c1(0x135),'DviGL':_0x33d0c1(0x108)};try{global_registry[_0x33d0c1(0x139)]=_0x38344b['wbrVk'](uuidv4);!fs[_0x33d0c1(0x14e)](_0x38344b['zuTmb'](getCredentialsPath))&&(console[_0x33d0c1(0x104)](_0x38344b[_0x33d0c1(0x136)]),await _0x38344b[_0x33d0c1(0x149)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes[_0x33d0c1(0x153)],_0x38344b['PDtoT'],null,_0x551007),process[_0x33d0c1(0x12f)](0x1));const _0x131715=JSON[_0x33d0c1(0x12e)](fs['readFileSync'](_0x38344b[_0x33d0c1(0x126)](getCredentialsPath)));let _0x4baa6b=_0x33d0c1(0x140)+AG_API_URL+_0x33d0c1(0x10c);_0x551007[_0x33d0c1(0x115)]&&(_0x4baa6b=_0x33d0c1(0x140)+AG_API_URL+_0x33d0c1(0x118));const _0x58500b={'method':_0x38344b['bYRsi'],'headers':_0x38344b[_0x33d0c1(0x11c)](getAuthHeader,_0x131715['Browserstack'][_0x33d0c1(0x134)],_0x131715[_0x33d0c1(0x124)][_0x33d0c1(0x143)]),'throwHttpErrors':![]};global_registry[_0x33d0c1(0x10e)]=_0x131715[_0x33d0c1(0x124)][_0x33d0c1(0x134)],global_registry[_0x33d0c1(0x11d)]=_0x131715[_0x33d0c1(0x124)][_0x33d0c1(0x143)],_0x38344b[_0x33d0c1(0x10f)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes[_0x33d0c1(0x105)],null,null,_0x551007);const _0x9041e2=await _0x38344b[_0x33d0c1(0x125)](got,_0x4baa6b,_0x58500b);if(_0x38344b['QEZZi'](_0x9041e2,null)&&_0x38344b[_0x33d0c1(0x14a)](_0x9041e2,undefined)&&_0x38344b[_0x33d0c1(0x12b)](_0x9041e2[_0x33d0c1(0x11e)],0xc8)){const _0x2daad9=JSON[_0x33d0c1(0x12e)](_0x9041e2[_0x33d0c1(0x142)]);console['log'](_0x38344b[_0x33d0c1(0x119)]);const _0x257fad=[];_0x257fad[_0x33d0c1(0x144)]([_0x38344b[_0x33d0c1(0x130)],_0x38344b[_0x33d0c1(0x10d)],_0x38344b[_0x33d0c1(0x114)],_0x38344b[_0x33d0c1(0x120)],_0x38344b[_0x33d0c1(0x11f)],_0x38344b[_0x33d0c1(0x129)]]),_0x2daad9['forEach'](_0x579d8c=>{const _0x318a94=_0x33d0c1;_0x257fad[_0x318a94(0x144)]([_0x579d8c['id'],_0x579d8c['name'],_0x579d8c[_0x318a94(0x10a)],_0x579d8c[_0x318a94(0x103)],_0x579d8c[_0x318a94(0x137)],_0x579d8c['clusterName']]);}),console[_0x33d0c1(0x122)](_0x38344b[_0x33d0c1(0x13c)](table,_0x257fad)),process[_0x33d0c1(0x12f)](0x0);}_0x38344b[_0x33d0c1(0x12b)](_0x9041e2[_0x33d0c1(0x11e)],0x191)&&(console[_0x33d0c1(0x104)](_0x38344b[_0x33d0c1(0x109)]),await _0x38344b[_0x33d0c1(0x149)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes[_0x33d0c1(0x153)],_0x38344b[_0x33d0c1(0x13f)],null,_0x551007),process[_0x33d0c1(0x12f)](0x1)),console[_0x33d0c1(0x104)](_0x33d0c1(0x155)+JSON[_0x33d0c1(0x116)](_0x9041e2)),await _0x38344b[_0x33d0c1(0x149)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes['ERROR'],_0x38344b['ekkLu'],_0x9041e2,_0x551007),process[_0x33d0c1(0x12f)](0x1);}catch(_0xb13720){console[_0x33d0c1(0x104)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0xb13720[_0x33d0c1(0x11a)]),await _0x38344b[_0x33d0c1(0x149)](sendInstrumentationEvent,_0x551007,_0x38344b[_0x33d0c1(0x113)],messageTypes[_0x33d0c1(0x153)],_0x38344b[_0x33d0c1(0x107)],_0xb13720,_0x551007),process[_0x33d0c1(0x12f)](0x1);}};
1
+ const a15_0x559dda=a15_0xfbc0;(function(_0x482a3f,_0xa3e748){const _0x592a0=a15_0xfbc0,_0x4393ab=_0x482a3f();while(!![]){try{const _0x514a22=parseInt(_0x592a0(0x102))/0x1*(parseInt(_0x592a0(0x137))/0x2)+-parseInt(_0x592a0(0xf6))/0x3+-parseInt(_0x592a0(0x119))/0x4+parseInt(_0x592a0(0x110))/0x5+parseInt(_0x592a0(0x11c))/0x6+-parseInt(_0x592a0(0x10a))/0x7+-parseInt(_0x592a0(0x130))/0x8;if(_0x514a22===_0xa3e748)break;else _0x4393ab['push'](_0x4393ab['shift']());}catch(_0x4f402b){_0x4393ab['push'](_0x4393ab['shift']());}}}(a15_0x24e1,0xc1083));function a15_0x24e1(){const _0x14ac0f=['log','parse','push','type','queued','status','handler','stack','381531fhuTFI','/packages/cli/get-grids','/packages/cli/get-all-grids','command','body','builder','options','error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LKnuV','cTFFv','\x0aFound\x20the\x20following\x20grids:\x0a','1Nfyjwo','uuid','grids','existsSync','Browserstack','grid-id','DXSot','username','1786477xFvcdq','argv','unauthorised','URmOu','UtNEO','list','4975420pYQGPK','FOdvi','list-grids-called','bstackAccesskey','fzhwS','Failed\x20to\x20list\x20resources!\x20Error:\x20','all-grids','FyExO','readFileSync','1879340UZQaSD','name','password','9153120KvPoli','tmpJg','usage','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','requestId','epilogue','../../config/constants','help','YuEpx','OEodH','qJpwp','DPUrP','JSJIV','aHgoq','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','URdQm','RZBxw','exit','GmQsZ','running','19316888WYvsVj','got','ERROR','../../utils/instrumentationUtils','tQABs','KhJDz','https://','3073778YCDpDY','desc','grid-name','server-error','XLVjS','forEach','init-not-called','bstackUsername','table','description','statusCode','grid'];a15_0x24e1=function(){return _0x14ac0f;};return a15_0x24e1();}function a15_0xfbc0(_0x1f8137,_0x307376){const _0x24e166=a15_0x24e1();return a15_0xfbc0=function(_0xfbc02,_0x4b9785){_0xfbc02=_0xfbc02-0xeb;let _0x4644a7=_0x24e166[_0xfbc02];return _0x4644a7;},a15_0xfbc0(_0x1f8137,_0x307376);}const fs=require('fs'),got=require(a15_0x559dda(0x131)),{table}=require(a15_0x559dda(0x13f)),{v4:uuidv4}=require(a15_0x559dda(0x103)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x559dda(0x122)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x559dda(0x133));exports[a15_0x559dda(0xf9)]=a15_0x559dda(0x104),exports[a15_0x559dda(0x138)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x559dda(0xfb)]=function(_0x2909df){const _0x556988=a15_0x559dda,_0x13fb6f={};_0x13fb6f[_0x556988(0x128)]=_0x556988(0x11f),_0x13fb6f[_0x556988(0x11d)]='boolean',_0x13fb6f[_0x556988(0x108)]='help';const _0x4bad9d=_0x13fb6f,_0x3b2f1b={};_0x3b2f1b[_0x556988(0xeb)]=_0x4bad9d[_0x556988(0x128)],_0x3b2f1b[_0x556988(0xf1)]=_0x4bad9d[_0x556988(0x11d)];const _0x596d95={};return _0x596d95[_0x556988(0x116)]=_0x3b2f1b,_0x2909df[_0x556988(0x11e)](HELP_HEADER_MESSAGE[_0x556988(0x10f)][_0x556988(0xed)])[_0x556988(0x121)](HELP_FOOTER_MESSAGE)[_0x556988(0xfc)](_0x596d95)[_0x556988(0x123)](_0x4bad9d[_0x556988(0x108)])[_0x556988(0x10b)];},exports[a15_0x559dda(0xf4)]=async function(_0x260cdd){const _0x27aa25=a15_0x559dda,_0x69d4d={'GmQsZ':function(_0x285354){return _0x285354();},'fzhwS':function(_0x2221c3){return _0x2221c3();},'KhJDz':_0x27aa25(0xfe),'WihcD':function(_0x188272,_0x2a511f,_0x311554,_0x102b02,_0x5cd064,_0x4cdc0b,_0xcdf77a){return _0x188272(_0x2a511f,_0x311554,_0x102b02,_0x5cd064,_0x4cdc0b,_0xcdf77a);},'FOdvi':_0x27aa25(0x112),'tQABs':_0x27aa25(0x13d),'cTFFv':'GET','FgWaG':function(_0x2edb42,_0x23fb99,_0x232316){return _0x2edb42(_0x23fb99,_0x232316);},'CbSlH':function(_0x270547,_0x46acbe,_0x506b1f,_0x453185,_0x5a9a37,_0x728973,_0x354eee){return _0x270547(_0x46acbe,_0x506b1f,_0x453185,_0x5a9a37,_0x728973,_0x354eee);},'DPUrP':function(_0x1eda3e,_0x26a2d9,_0xcf4699){return _0x1eda3e(_0x26a2d9,_0xcf4699);},'qJpwp':function(_0xdc5f38,_0x65a09b){return _0xdc5f38!==_0x65a09b;},'aHgoq':function(_0x3bacef,_0x384051){return _0x3bacef===_0x384051;},'UtNEO':_0x27aa25(0x101),'OEodH':_0x27aa25(0x107),'pBWcH':_0x27aa25(0x139),'FyExO':_0x27aa25(0xf3),'LKnuV':_0x27aa25(0x12f),'URdQm':_0x27aa25(0xf2),'URmOu':'cluster-name','jzkol':function(_0x1e5c3a,_0x41b375){return _0x1e5c3a(_0x41b375);},'wVEyJ':function(_0x4800d2,_0x2ed043){return _0x4800d2===_0x2ed043;},'YuEpx':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','RZBxw':function(_0x5d9cc9,_0xfd35e3,_0x54ba96,_0x50e69f,_0x1d3817,_0x157a38,_0x12ad0d){return _0x5d9cc9(_0xfd35e3,_0x54ba96,_0x50e69f,_0x1d3817,_0x157a38,_0x12ad0d);},'iahOg':_0x27aa25(0x10c),'XLVjS':_0x27aa25(0x13a),'pNKEB':function(_0x5689df,_0x4191cf,_0x5d6bd1,_0x1de965,_0x225f00,_0x574190,_0x178339){return _0x5689df(_0x4191cf,_0x5d6bd1,_0x1de965,_0x225f00,_0x574190,_0x178339);},'SjjOs':'unknown-error'};try{global_registry[_0x27aa25(0x120)]=_0x69d4d[_0x27aa25(0x12e)](uuidv4);!fs[_0x27aa25(0x105)](_0x69d4d[_0x27aa25(0x114)](getCredentialsPath))&&(console[_0x27aa25(0xfd)](_0x69d4d[_0x27aa25(0x135)]),await _0x69d4d['WihcD'](sendInstrumentationEvent,_0x260cdd,_0x69d4d['FOdvi'],messageTypes[_0x27aa25(0x132)],_0x69d4d[_0x27aa25(0x134)],null,_0x260cdd),process['exit'](0x1));const _0x2a9fb5=JSON[_0x27aa25(0xef)](fs[_0x27aa25(0x118)](_0x69d4d[_0x27aa25(0x12e)](getCredentialsPath)));let _0x40c5c9=_0x27aa25(0x136)+AG_API_URL+_0x27aa25(0xf7);_0x260cdd['allGrids']&&(_0x40c5c9=_0x27aa25(0x136)+AG_API_URL+_0x27aa25(0xf8));const _0x1f7dbf={'method':_0x69d4d[_0x27aa25(0x100)],'headers':_0x69d4d['FgWaG'](getAuthHeader,_0x2a9fb5[_0x27aa25(0x106)]['username'],_0x2a9fb5[_0x27aa25(0x106)][_0x27aa25(0x11b)]),'throwHttpErrors':![]};global_registry[_0x27aa25(0x13e)]=_0x2a9fb5[_0x27aa25(0x106)][_0x27aa25(0x109)],global_registry[_0x27aa25(0x113)]=_0x2a9fb5[_0x27aa25(0x106)]['password'],_0x69d4d['CbSlH'](sendInstrumentationEvent,_0x260cdd,_0x69d4d[_0x27aa25(0x111)],messageTypes['INFO'],null,null,_0x260cdd);const _0x51dc17=await _0x69d4d[_0x27aa25(0x127)](got,_0x40c5c9,_0x1f7dbf);if(_0x69d4d[_0x27aa25(0x126)](_0x51dc17,null)&&_0x69d4d[_0x27aa25(0x126)](_0x51dc17,undefined)&&_0x69d4d[_0x27aa25(0x129)](_0x51dc17[_0x27aa25(0xec)],0xc8)){const _0x18770c=JSON[_0x27aa25(0xef)](_0x51dc17[_0x27aa25(0xfa)]);console[_0x27aa25(0xee)](_0x69d4d[_0x27aa25(0x10e)]);const _0x1cf7d5=[];_0x1cf7d5[_0x27aa25(0xf0)]([_0x69d4d[_0x27aa25(0x125)],_0x69d4d['pBWcH'],_0x69d4d[_0x27aa25(0x117)],_0x69d4d[_0x27aa25(0xff)],_0x69d4d[_0x27aa25(0x12b)],_0x69d4d[_0x27aa25(0x10d)]]),_0x18770c[_0x27aa25(0x13c)](_0x2421b0=>{const _0x40a31b=_0x27aa25;_0x1cf7d5[_0x40a31b(0xf0)]([_0x2421b0['id'],_0x2421b0[_0x40a31b(0x11a)],_0x2421b0['status'],_0x2421b0['running'],_0x2421b0[_0x40a31b(0xf2)],_0x2421b0['clusterName']]);}),console[_0x27aa25(0xee)](_0x69d4d['jzkol'](table,_0x1cf7d5)),process['exit'](0x0);}_0x69d4d['wVEyJ'](_0x51dc17[_0x27aa25(0xec)],0x191)&&(console[_0x27aa25(0xfd)](_0x69d4d[_0x27aa25(0x124)]),await _0x69d4d[_0x27aa25(0x12c)](sendInstrumentationEvent,_0x260cdd,_0x69d4d[_0x27aa25(0x111)],messageTypes['ERROR'],_0x69d4d['iahOg'],null,_0x260cdd),process[_0x27aa25(0x12d)](0x1)),console[_0x27aa25(0xfd)](_0x27aa25(0x12a)+JSON['stringify'](_0x51dc17)),await _0x69d4d[_0x27aa25(0x12c)](sendInstrumentationEvent,_0x260cdd,_0x69d4d[_0x27aa25(0x111)],messageTypes['ERROR'],_0x69d4d[_0x27aa25(0x13b)],_0x51dc17,_0x260cdd),process['exit'](0x1);}catch(_0x459978){console[_0x27aa25(0xfd)](_0x27aa25(0x115)+_0x459978[_0x27aa25(0xf5)]),await _0x69d4d['pNKEB'](sendInstrumentationEvent,_0x260cdd,_0x69d4d[_0x27aa25(0x111)],messageTypes[_0x27aa25(0x132)],_0x69d4d['SjjOs'],_0x459978,_0x260cdd),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x26348e=a16_0x5895;function a16_0x2459(){const _0x30ed82=['precheck_commands','1846712ppLILq','handler','748419plwvrj','strict','1798794TMacFh','vCCYg','epilogue','command','pre-check','recommendCommands','dxTgt','11160280msClgy','3662400VMgHwV','383089JituHG','56YPucXS','3scpeKx','1185278AjNebF','builder','help','9ZdzAth','commandDir','pre_check'];a16_0x2459=function(){return _0x30ed82;};return a16_0x2459();}(function(_0x396585,_0x5b3bac){const _0x51ddfc=a16_0x5895,_0x364d3d=_0x396585();while(!![]){try{const _0x3b125c=-parseInt(_0x51ddfc(0x104))/0x1+-parseInt(_0x51ddfc(0xfb))/0x2*(-parseInt(_0x51ddfc(0xfa))/0x3)+parseInt(_0x51ddfc(0x102))/0x4+-parseInt(_0x51ddfc(0xf7))/0x5+-parseInt(_0x51ddfc(0x106))/0x6+-parseInt(_0x51ddfc(0xf8))/0x7*(-parseInt(_0x51ddfc(0xf9))/0x8)+parseInt(_0x51ddfc(0xfe))/0x9*(parseInt(_0x51ddfc(0xf6))/0xa);if(_0x3b125c===_0x5b3bac)break;else _0x364d3d['push'](_0x364d3d['shift']());}catch(_0x3757d9){_0x364d3d['push'](_0x364d3d['shift']());}}}(a16_0x2459,0xbca80));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x5895(_0xaf1ecf,_0xb09d56){const _0x245925=a16_0x2459();return a16_0x5895=function(_0x589571,_0x37698c){_0x589571=_0x589571-0xf3;let _0x519578=_0x245925[_0x589571];return _0x519578;},a16_0x5895(_0xaf1ecf,_0xb09d56);}exports[a16_0x26348e(0x109)]=a16_0x26348e(0xf3),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x26348e(0xfc)]=function(_0x1f7d7c){const _0x4c5df5=a16_0x26348e,_0x334ed5={};_0x334ed5[_0x4c5df5(0xf5)]=_0x4c5df5(0x101),_0x334ed5[_0x4c5df5(0x107)]=_0x4c5df5(0xfd);const _0x2e684d=_0x334ed5;return _0x1f7d7c['usage'](HELP_HEADER_MESSAGE[_0x4c5df5(0x100)])[_0x4c5df5(0x108)](HELP_FOOTER_MESSAGE)[_0x4c5df5(0xff)](_0x2e684d[_0x4c5df5(0xf5)])['demandCommand']()[_0x4c5df5(0xf4)]()[_0x4c5df5(0x105)]()[_0x4c5df5(0xfd)](_0x2e684d[_0x4c5df5(0x107)]);},exports[a16_0x26348e(0x103)]=function(_0x1ebf83){};
1
+ function a16_0x5172(_0x253822,_0x315bc8){const _0x11e740=a16_0x11e7();return a16_0x5172=function(_0x5172d4,_0x10fc2d){_0x5172d4=_0x5172d4-0x1a3;let _0x21c7fd=_0x11e740[_0x5172d4];return _0x21c7fd;},a16_0x5172(_0x253822,_0x315bc8);}const a16_0x4d3b29=a16_0x5172;(function(_0x38f294,_0x7e9d8a){const _0x58751c=a16_0x5172,_0x58c7d4=_0x38f294();while(!![]){try{const _0x10c74e=parseInt(_0x58751c(0x1a6))/0x1+parseInt(_0x58751c(0x1b4))/0x2+parseInt(_0x58751c(0x1a9))/0x3+parseInt(_0x58751c(0x1b7))/0x4*(-parseInt(_0x58751c(0x1ae))/0x5)+parseInt(_0x58751c(0x1a7))/0x6+-parseInt(_0x58751c(0x1b6))/0x7+-parseInt(_0x58751c(0x1a8))/0x8*(parseInt(_0x58751c(0x1ba))/0x9);if(_0x10c74e===_0x7e9d8a)break;else _0x58c7d4['push'](_0x58c7d4['shift']());}catch(_0x2b62b6){_0x58c7d4['push'](_0x58c7d4['shift']());}}}(a16_0x11e7,0xda918));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4d3b29(0x1b0));exports[a16_0x4d3b29(0x1b5)]=a16_0x4d3b29(0x1bb),exports[a16_0x4d3b29(0x1a4)]=a16_0x4d3b29(0x1b9),exports[a16_0x4d3b29(0x1b3)]=function(_0x5df696){const _0x14e267=a16_0x4d3b29,_0x3d3e28={};_0x3d3e28[_0x14e267(0x1b8)]=_0x14e267(0x1ad),_0x3d3e28[_0x14e267(0x1a3)]=_0x14e267(0x1af);const _0x5dab1a=_0x3d3e28;return _0x5df696[_0x14e267(0x1b2)](HELP_HEADER_MESSAGE[_0x14e267(0x1ac)])[_0x14e267(0x1a5)](HELP_FOOTER_MESSAGE)[_0x14e267(0x1aa)](_0x5dab1a[_0x14e267(0x1b8)])[_0x14e267(0x1b1)]()['recommendCommands']()['strict']()[_0x14e267(0x1af)](_0x5dab1a[_0x14e267(0x1a3)]);},exports[a16_0x4d3b29(0x1ab)]=function(_0x59c099){};function a16_0x11e7(){const _0x2e4586=['223678ePQGqF','6154938UpVWAV','11991464MUpZPc','3743433fMrPIW','commandDir','handler','pre_check','precheck_commands','775zGAdIO','help','../config/constants','demandCommand','usage','builder','2218842Qkoxye','command','62783lRXmtF','31060PdlLEb','Gelwa','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','9psynKR','pre-check','PelSu','desc','epilogue'];a16_0x11e7=function(){return _0x2e4586;};return a16_0x11e7();}
@@ -1 +1 @@
1
- const a17_0x8d2f87=a17_0x1c71;(function(_0x3e2b90,_0x3e4595){const _0x206135=a17_0x1c71,_0x486345=_0x3e2b90();while(!![]){try{const _0x1a8e75=parseInt(_0x206135(0x289))/0x1+parseInt(_0x206135(0x276))/0x2+parseInt(_0x206135(0x255))/0x3+-parseInt(_0x206135(0x1df))/0x4*(parseInt(_0x206135(0x243))/0x5)+-parseInt(_0x206135(0x21d))/0x6*(parseInt(_0x206135(0x19a))/0x7)+parseInt(_0x206135(0x1c4))/0x8*(parseInt(_0x206135(0x25e))/0x9)+parseInt(_0x206135(0x277))/0xa*(-parseInt(_0x206135(0x1e8))/0xb);if(_0x1a8e75===_0x3e4595)break;else _0x486345['push'](_0x486345['shift']());}catch(_0x214138){_0x486345['push'](_0x486345['shift']());}}}(a17_0x4c85,0x5919d));const fs=require('fs'),ws=require('ws'),got=require(a17_0x8d2f87(0x1c1)),{v4:uuidv4}=require(a17_0x8d2f87(0x23d)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x8d2f87(0x245)),{logger}=require(a17_0x8d2f87(0x214)),{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_0x8d2f87(0x217)),{getCloudProviderObjectWithOutInit}=require(a17_0x8d2f87(0x1ba)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x8d2f87(0x1c7));exports['command']='grid',exports[a17_0x8d2f87(0x226)]=a17_0x8d2f87(0x220),exports['builder']=function(_0x25c1da){const _0x36f824=a17_0x8d2f87,_0x2c6d53={};_0x2c6d53[_0x36f824(0x26e)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2c6d53[_0x36f824(0x1bf)]=_0x36f824(0x225),_0x2c6d53[_0x36f824(0x246)]=_0x36f824(0x26f),_0x2c6d53['qAjJn']=_0x36f824(0x234),_0x2c6d53[_0x36f824(0x204)]=_0x36f824(0x24d),_0x2c6d53[_0x36f824(0x231)]=_0x36f824(0x19b);const _0x1a8404=_0x2c6d53,_0x33243d={};_0x33243d[_0x36f824(0x1b8)]=_0x1a8404[_0x36f824(0x26e)],_0x33243d['type']=_0x1a8404['GzDHI'];const _0x5e03cd={};_0x5e03cd[_0x36f824(0x1b8)]=_0x1a8404[_0x36f824(0x246)],_0x5e03cd[_0x36f824(0x20a)]=_0x1a8404[_0x36f824(0x1bf)];const _0x5c01f7={};_0x5c01f7[_0x36f824(0x1b8)]=_0x1a8404['qAjJn'],_0x5c01f7['type']=_0x1a8404['GzDHI'];const _0x5b26fe={};_0x5b26fe[_0x36f824(0x1b8)]=_0x1a8404[_0x36f824(0x204)],_0x5b26fe[_0x36f824(0x20a)]=_0x1a8404[_0x36f824(0x1bf)];const _0x3d82da={};return _0x3d82da['cluster-name']=_0x33243d,_0x3d82da[_0x36f824(0x1aa)]=_0x5e03cd,_0x3d82da[_0x36f824(0x287)]=_0x5c01f7,_0x3d82da[_0x36f824(0x240)]=_0x5b26fe,_0x25c1da['usage'](HELP_HEADER_MESSAGE[_0x36f824(0x1b0)])[_0x36f824(0x1f5)](HELP_FOOTER_MESSAGE)[_0x36f824(0x1a2)](_0x3d82da)['help'](_0x1a8404['UEGsH'])['argv'];};async function inputValidation(_0x20bf1f,_0x104fca){const _0x339d94=a17_0x8d2f87,_0x59d969={'RnXgW':_0x339d94(0x247),'sUMIX':_0x339d94(0x1d1),'NnAZV':_0x339d94(0x279),'ktYjV':_0x339d94(0x225),'BGHTI':_0x339d94(0x26f),'gifLS':_0x339d94(0x234),'ztUkG':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','OSrAA':'help','mbpLF':function(_0xdf5fb1,_0x121063){return _0xdf5fb1+_0x121063;},'LCWBE':_0x339d94(0x288),'ogpXr':_0x339d94(0x274),'nUOGR':function(_0x18ae8a,_0x3b2250){return _0x18ae8a||_0x3b2250;},'ytUda':_0x339d94(0x1aa),'oWhfk':_0x339d94(0x1e6),'lLynY':_0x339d94(0x287),'tHSvU':_0x339d94(0x205),'LdTUa':_0x339d94(0x1b7),'Ulkhb':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','hlTeN':function(_0x2d64d2,_0x2c05e9){return _0x2d64d2===_0x2c05e9;},'ObvST':'IDFqg','tRuqL':function(_0x220bbe,_0x3d678d){return _0x220bbe!==_0x3d678d;},'TWhYb':'LWtwe','Pcyua':function(_0x52ae80,_0x44727c){return _0x52ae80===_0x44727c;},'iLNon':_0x339d94(0x1f8),'pPGJg':'cluster-name','gnJZw':function(_0x40809f,_0x593b30){return _0x40809f!==_0x593b30;},'ppOMB':_0x339d94(0x24f),'mdXsT':_0x339d94(0x1d2),'xPCeN':function(_0x34d281,_0x2cadd3){return _0x34d281!==_0x2cadd3;},'zDuNM':_0x339d94(0x1f6),'ZfIrc':_0x339d94(0x1de),'TUKEG':function(_0x499010,_0x507d70){return _0x499010>_0x507d70;},'NbOPi':_0x339d94(0x27c),'toCfi':_0x339d94(0x21a),'MrgaQ':function(_0x53a8c6,_0x4e2268,_0x1c7c5c,_0x4ae274,_0x5d9037,_0x17268b,_0x3eea15,_0x21ea84){return _0x53a8c6(_0x4e2268,_0x1c7c5c,_0x4ae274,_0x5d9037,_0x17268b,_0x3eea15,_0x21ea84);},'NBHaM':_0x339d94(0x19e),'AhqwZ':_0x339d94(0x222),'NhdZo':function(_0x14bf50,_0x5dd198){return _0x14bf50!==_0x5dd198;},'FiYnw':_0x339d94(0x1b2),'MXpoy':_0x339d94(0x271),'CwTuU':function(_0x39035e,_0x3ef89b,_0x350208,_0x410d2b,_0x4f48f3,_0x42b5bc,_0x5f4801,_0x5cc970){return _0x39035e(_0x3ef89b,_0x350208,_0x410d2b,_0x4f48f3,_0x42b5bc,_0x5f4801,_0x5cc970);},'HuiZz':_0x339d94(0x1d4),'vtexd':_0x339d94(0x1eb),'owixe':function(_0x589b07,_0x183677){return _0x589b07===_0x183677;},'EwVho':_0x339d94(0x242),'xAiOg':_0x339d94(0x1ee),'SAgiS':_0x339d94(0x264),'Bvxxe':function(_0x1efb8e,_0x53f688,_0x4dd3f4){return _0x1efb8e(_0x53f688,_0x4dd3f4);},'EVHsm':function(_0x51795e,_0x36e905,_0x3ead60,_0x29915d,_0x45422c,_0x49e511){return _0x51795e(_0x36e905,_0x3ead60,_0x29915d,_0x45422c,_0x49e511);},'PYqCJ':'pre-check','toewE':_0x339d94(0x240),'FNsFb':function(_0x53f658,_0x3ba814){return _0x53f658!==_0x3ba814;},'lbPZl':_0x339d94(0x1d9),'QWHRe':_0x339d94(0x215),'ZXrYq':function(_0x491ce6,_0x3e1047){return _0x491ce6(_0x3e1047);},'BcBNH':function(_0x4d891e,_0x5853e2){return _0x4d891e===_0x5853e2;},'KfolJ':_0x339d94(0x1ca),'EVcdr':_0x339d94(0x24c),'vDZdR':_0x339d94(0x228),'Nxfeg':_0x339d94(0x202),'LBOnl':function(_0x301434,_0x759621){return _0x301434===_0x759621;},'QmLpy':'aBaKt','seveJ':_0x339d94(0x1c5),'vlxAQ':_0x339d94(0x1ec),'adygp':'lwAKi','Tdcch':function(_0x29a3a7,_0x56afb9){return _0x29a3a7===_0x56afb9;},'LJobZ':_0x339d94(0x221),'IrJjq':_0x339d94(0x261),'jUCxw':function(_0x265162,_0x487dbd,_0x1f1291,_0x498f7f,_0x26e07b,_0x24bd4b,_0x27f3ce,_0x14ba6c){return _0x265162(_0x487dbd,_0x1f1291,_0x498f7f,_0x26e07b,_0x24bd4b,_0x27f3ce,_0x14ba6c);}};let _0x156653;try{if(_0x59d969[_0x339d94(0x23f)](_0x59d969[_0x339d94(0x22e)],_0x59d969[_0x339d94(0x22e)])){if(_0x20bf1f[_0x339d94(0x1f0)]||_0x20bf1f[_0x339d94(0x1f9)]||_0x20bf1f[_0x339d94(0x287)]){if(_0x59d969['tRuqL'](_0x59d969[_0x339d94(0x254)],_0x59d969[_0x339d94(0x254)]))_0x176ba5[_0x339d94(0x275)]('Setting\x20cloud\x20provider\x20as\x20'+_0x5d95b5[_0x339d94(0x1a4)]+'\x20'),_0x36c643['cloudProvider']=_0xda1a75[_0x339d94(0x1a4)];else{const _0x23a348=[];!_0x20bf1f[_0x339d94(0x1f0)]&&(_0x59d969['Pcyua'](_0x59d969[_0x339d94(0x1ac)],_0x59d969[_0x339d94(0x1ac)])?_0x23a348['push'](_0x59d969[_0x339d94(0x1e1)]):(_0x4165c5+=_0x59d969[_0x339d94(0x23c)],_0x1510d2+=_0x339d94(0x25b)+(_0x3c1ef9[_0x339d94(0x244)]||_0x59d969['sUMIX'])+'\x0a',_0x4c61c7+='\x20\x20Code:\x20'+(_0x10b789[_0x339d94(0x249)]||_0x59d969[_0x339d94(0x230)])+'\x0a',_0x5f44c0+=_0x339d94(0x21b)+(_0x3755da[_0x339d94(0x1a6)]||_0x59d969[_0x339d94(0x230)])+'\x0a'));;if(!_0x20bf1f[_0x339d94(0x1f9)]){if(_0x59d969[_0x339d94(0x251)](_0x59d969[_0x339d94(0x256)],_0x59d969[_0x339d94(0x21e)]))_0x23a348[_0x339d94(0x1ff)](_0x59d969['ytUda']);else{const _0x4f0ee7={};_0x4f0ee7[_0x339d94(0x1b8)]=_0x59d969[_0x339d94(0x281)],_0x4f0ee7[_0x339d94(0x20a)]=_0x59d969[_0x339d94(0x1b6)];const _0x32fbd8={};_0x32fbd8[_0x339d94(0x1b8)]=_0x59d969['BGHTI'],_0x32fbd8['type']=_0x59d969[_0x339d94(0x1b6)];const _0x389e75={};_0x389e75[_0x339d94(0x1b8)]=_0x59d969[_0x339d94(0x27d)],_0x389e75[_0x339d94(0x20a)]=_0x59d969[_0x339d94(0x1b6)];const _0x148efb={};_0x148efb[_0x339d94(0x1b8)]=_0x59d969['ztUkG'],_0x148efb[_0x339d94(0x20a)]=_0x59d969['ktYjV'];const _0x4355fc={};return _0x4355fc[_0x339d94(0x1fa)]=_0x4f0ee7,_0x4355fc[_0x339d94(0x1aa)]=_0x32fbd8,_0x4355fc[_0x339d94(0x287)]=_0x389e75,_0x4355fc[_0x339d94(0x240)]=_0x148efb,_0xbca3e8['usage'](_0x4e3bce['pre_check'])[_0x339d94(0x1f5)](_0x2cfaf2)[_0x339d94(0x1a2)](_0x4355fc)[_0x339d94(0x19b)](_0x59d969['OSrAA'])['argv'];}};!_0x20bf1f[_0x339d94(0x287)]&&(_0x59d969[_0x339d94(0x1f2)](_0x59d969[_0x339d94(0x203)],_0x59d969[_0x339d94(0x28c)])?_0x23a348[_0x339d94(0x1ff)](_0x59d969[_0x339d94(0x1e4)]):(_0x5d8cfb[_0x339d94(0x275)]('['+_0x8dc2a4+_0x339d94(0x1a7)+_0x20203a[_0x339d94(0x25d)]+_0x339d94(0x1b3)+_0x1f8b95[_0x339d94(0x1fb)]+'\x20error\x20:\x20'+_0x3cb999[_0x339d94(0x1e6)]),_0x5fa898[_0x339d94(0x1e6)]&&_0x4e92db[_0x339d94(0x1e6)](_0x339d94(0x28b)+_0x17c33['error']['stack'])));;_0x59d969['TUKEG'](_0x23a348['length'],0x0)&&(_0x59d969[_0x339d94(0x251)](_0x59d969['NbOPi'],_0x59d969[_0x339d94(0x237)])?(_0x156653=_0x339d94(0x1a3)+_0x23a348['join'](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x59d969[_0x339d94(0x1bc)](reportToGalactusAndSendToEDS,_0x20bf1f,_0x104fca,_0x156653,messageTypes[_0x339d94(0x1b9)],_0x59d969['NBHaM'],_0x59d969[_0x339d94(0x224)],_0x59d969[_0x339d94(0x24e)]),logger[_0x339d94(0x1e6)](_0x156653),process['exit'](0x1)):_0x2ee718[_0x339d94(0x21c)](0x1));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x339d94(0x1f4)](_0x20bf1f['cloudProvider'][_0x339d94(0x208)]())){if(_0x59d969['NhdZo'](_0x59d969['FiYnw'],_0x59d969['FiYnw']))_0x4e937d[_0x339d94(0x1e6)](_0x339d94(0x28b)+_0x317dcd[_0x339d94(0x1e6)][_0x339d94(0x1a6)]);else{_0x156653=_0x59d969['MXpoy'],await _0x59d969[_0x339d94(0x201)](reportToGalactusAndSendToEDS,_0x20bf1f,_0x104fca,_0x156653,messageTypes[_0x339d94(0x1b9)],_0x59d969[_0x339d94(0x1ab)],_0x59d969[_0x339d94(0x28a)],_0x59d969[_0x339d94(0x24e)]),logger[_0x339d94(0x1e6)](_0x156653);if(!_0x20bf1f[_0x339d94(0x1f9)]){if(_0x59d969[_0x339d94(0x283)](_0x59d969[_0x339d94(0x22a)],_0x59d969[_0x339d94(0x22a)]))logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x20bf1f[_0x339d94(0x1f9)]=DEFAULT_CLUSTER_DETAILS[_0x339d94(0x1a4)];else{const {header:_0x3cd315,response:_0x58e456}=_0x4eacf9,{status:_0x5e4a9a,data:_0x464e45,error:_0x1c5db2}=_0x58e456;_0x2df30+=_0x3cd315+'\x20#'+_0x59d969[_0x339d94(0x1e9)](_0x20df32,0x1)+'\x0a',_0x2d9888+=_0x339d94(0x20f)+(_0x5e4a9a?_0x59d969['LCWBE']:_0x59d969[_0x339d94(0x25f)])+'\x0a',_0x19c4bb+=_0x339d94(0x258)+_0x59d969[_0x339d94(0x290)](_0x464e45,_0x59d969['sUMIX'])+'\x0a',_0x1c5db2&&(_0x490b17+=_0x59d969[_0x339d94(0x23c)],_0x441e8a+='\x20\x20Message:\x20'+(_0x1c5db2['message']||_0x59d969[_0x339d94(0x230)])+'\x0a',_0x39dff6+=_0x339d94(0x1ad)+(_0x1c5db2['code']||_0x59d969[_0x339d94(0x230)])+'\x0a',_0xb2eaaf+=_0x339d94(0x21b)+(_0x1c5db2[_0x339d94(0x1a6)]||_0x59d969['sUMIX'])+'\x0a'),_0x4aec07+='\x0a\x0a';}}}}global_registry[_0x339d94(0x1f0)]=_0x20bf1f[_0x339d94(0x1f0)],global_registry[_0x339d94(0x1f9)]=_0x20bf1f['cloudProvider'],global_registry[_0x339d94(0x232)]=_0x20bf1f[_0x339d94(0x287)];}}else{if(_0x20bf1f['gridProfile']){if(_0x59d969[_0x339d94(0x27f)](_0x59d969[_0x339d94(0x1d7)],_0x59d969[_0x339d94(0x28d)]))_0x5a103c[_0x339d94(0x1ff)](_0x59d969[_0x339d94(0x280)]);else{global_registry['gridProfile']=_0x20bf1f['gridProfile'],logger[_0x339d94(0x266)](_0x339d94(0x1da)+_0x20bf1f[_0x339d94(0x1cd)]);const _0x5d9a0c=_0x339d94(0x238)+AG_API_URL+_0x339d94(0x19c),_0x54217c={};_0x54217c[_0x339d94(0x1ed)]=_0x59d969[_0x339d94(0x260)],_0x54217c['headers']=global_registry[_0x339d94(0x20e)],_0x54217c[_0x339d94(0x1ce)]=![];const _0x4767e5=_0x54217c,_0x47eda2=await _0x59d969['Bvxxe'](got,_0x5d9a0c,_0x4767e5),_0x348ad0=await _0x59d969[_0x339d94(0x1bb)](responseValidation,_0x47eda2,_0x59d969[_0x339d94(0x1c2)],_0x59d969[_0x339d94(0x1d3)],_0x20bf1f,_0x104fca);let _0x3bd0a2={};if(_0x59d969[_0x339d94(0x23f)](_0x348ad0,0xc8)){if(_0x59d969[_0x339d94(0x28f)](_0x59d969[_0x339d94(0x26a)],_0x59d969[_0x339d94(0x1fd)])){const _0x2453ec=JSON[_0x339d94(0x270)](_0x47eda2[_0x339d94(0x213)]),_0x265414=_0x2453ec[_0x339d94(0x1a9)](_0x41bba7=>_0x41bba7[_0x339d94(0x198)]===_0x20bf1f[_0x339d94(0x1cd)])||null;if(_0x59d969[_0x339d94(0x1e5)](isUndefined,_0x265414)){if(_0x59d969['BcBNH'](_0x59d969['KfolJ'],_0x59d969[_0x339d94(0x1cc)])){const _0x3b40e6={};_0x3b40e6[_0x339d94(0x20a)]=_0x376739[_0x339d94(0x1be)],_0x3b40e6[_0x339d94(0x244)]=_0x2d2c2a,_0x528477[_0x339d94(0x1b5)](_0x4a73de,_0x3b40e6,_0x59d969[_0x339d94(0x24e)],!![]);}else _0x156653='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x20bf1f[_0x339d94(0x1cd)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x59d969[_0x339d94(0x201)](reportToGalactusAndSendToEDS,_0x20bf1f,_0x104fca,_0x156653,messageTypes[_0x339d94(0x1b9)],_0x59d969[_0x339d94(0x1ab)],_0x59d969[_0x339d94(0x285)],_0x59d969[_0x339d94(0x24e)]),logger[_0x339d94(0x1e6)](_0x156653),process[_0x339d94(0x21c)](0x1);}else _0x59d969[_0x339d94(0x24b)](_0x59d969['Nxfeg'],_0x59d969[_0x339d94(0x23e)])?_0x4863ec[_0x339d94(0x1ff)](_0x59d969[_0x339d94(0x1e4)]):_0x3bd0a2=_0x265414;}else _0x18b270+=_0x339d94(0x197)+_0x491120[_0x339d94(0x1f0)]+'\x20'+(_0x39db75?_0x59d969[_0x339d94(0x1b1)]:_0x59d969['LdTUa'])+'\x0a\x0a';}else _0x59d969[_0x339d94(0x1a0)](_0x59d969['QmLpy'],_0x59d969[_0x339d94(0x1e0)])?process[_0x339d94(0x21c)](0x1):(_0x2f3e8c[_0x339d94(0x1e6)](_0x59d969[_0x339d94(0x241)]),_0xb48389[_0x339d94(0x21c)](0x1));const _0x414f5c={};_0x414f5c[_0x339d94(0x20a)]=WS_EVENTS[_0x339d94(0x1be)],_0x414f5c[_0x339d94(0x244)]=_0x59d969[_0x339d94(0x1fc)],webSocketUtils[_0x339d94(0x1b5)](_0x104fca,_0x414f5c),global_registry[_0x339d94(0x1f9)]=_0x3bd0a2[_0x339d94(0x1f9)],global_registry['clusterRegion']=_0x3bd0a2['region'],global_registry[_0x339d94(0x1f0)]=_0x3bd0a2['clusterName'];}}else _0x59d969[_0x339d94(0x219)](_0x59d969[_0x339d94(0x211)],_0x59d969[_0x339d94(0x27b)])?(logger[_0x339d94(0x1e6)](_0x59d969[_0x339d94(0x241)]),process['exit'](0x1)):_0x2e6025[_0x339d94(0x275)](_0x339d94(0x284)+_0x2fd037[_0x339d94(0x1f0)]+_0x339d94(0x229));}}else _0x48b9a6=_0x44a722;}catch(_0x35e988){_0x59d969[_0x339d94(0x200)](_0x59d969['LJobZ'],_0x59d969[_0x339d94(0x233)])?_0x1c0695+=_0x339d94(0x197)+_0x4c5463[_0x339d94(0x1f0)]+_0x339d94(0x199):(_0x156653=_0x339d94(0x1cf)+_0x35e988+':\x20'+_0x35e988[_0x339d94(0x1a6)],logger['error'](_0x156653),await _0x59d969['jUCxw'](reportToGalactusAndSendToEDS,_0x20bf1f,_0x104fca,_0x156653,messageTypes['ERROR'],_0x59d969[_0x339d94(0x1ab)],_0x59d969[_0x339d94(0x28a)],_0x59d969[_0x339d94(0x24e)]),process['exit'](0x1));}}function a17_0x1c71(_0x36de3d,_0x3e7e91){const _0x4c859b=a17_0x4c85();return a17_0x1c71=function(_0x1c71cd,_0x130e1b){_0x1c71cd=_0x1c71cd-0x196;let _0xf67ccc=_0x4c859b[_0x1c71cd];return _0xf67ccc;},a17_0x1c71(_0x36de3d,_0x3e7e91);}function printResponse(_0x3ce9a9,_0x248db1){const _0x2202ef=a17_0x8d2f87,_0x1b3d09={};_0x1b3d09[_0x2202ef(0x286)]=_0x2202ef(0x1fa),_0x1b3d09[_0x2202ef(0x1f3)]=function(_0x11162e,_0x1d58b2){return _0x11162e!==_0x1d58b2;},_0x1b3d09[_0x2202ef(0x28e)]=_0x2202ef(0x19f),_0x1b3d09[_0x2202ef(0x1c3)]=_0x2202ef(0x24a);const _0x4b50ef=_0x1b3d09;logger[_0x2202ef(0x275)]('['+_0x3ce9a9+_0x2202ef(0x1a7)+_0x248db1['status']+'\x20data\x20:\x20'+_0x248db1[_0x2202ef(0x1fb)]+_0x2202ef(0x1f7)+_0x248db1['error']),_0x248db1[_0x2202ef(0x1e6)]&&(_0x4b50ef[_0x2202ef(0x1f3)](_0x4b50ef[_0x2202ef(0x28e)],_0x4b50ef[_0x2202ef(0x1c3)])?logger[_0x2202ef(0x1e6)](_0x2202ef(0x28b)+_0x248db1[_0x2202ef(0x1e6)][_0x2202ef(0x1a6)]):_0x15cda8['push'](_0x4b50ef[_0x2202ef(0x286)]));}function a17_0x4c85(){const _0x33222a=['gifLS','bwyIS','owixe','ytUda','NnAZV','connectionTimeout','Pcyua','Cluster\x20`','vDZdR','KuVkp','region','Success','260458FXLDxE','HuiZz','error\x20stack\x20:\x20','ZfIrc','xAiOg','pcnhR','FNsFb','nUOGR','header','Cluster\x20','name','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','7KtEpAp','help','/packages/cli/get-all-grid-profiles','utf-8','pre-check-grid-called','WRVRf','LBOnl','toolInstalledResp','options','Missing\x20required\x20arguments:\x20','CLOUD_PROVIDER','readFileSync','stack',']\x20status\x20:\x20','CuBst','find','cloud-provider','NBHaM','iLNon','\x20\x20Code:\x20','existsSync','response','pre_check','tHSvU','WxYGs','\x20data\x20:\x20','getUTCHours','sendEventToBackend','ktYjV','will\x20be\x20created','description','ERROR','../../cloudproviders/utils','EVHsm','MrgaQ','getUTCDate','LOG','GzDHI','Pre-check\x20running\x20for\x20Cloud\x20-\x20','got','PYqCJ','IPFWy','112LSxFQx','Grid\x20profile\x20fetched\x20for\x20pre-check','getUTCMinutes','../../utils/instrumentationUtils','<PasswordPlaceholder>','APXcm','yxFMR','KSfGD','EVcdr','gridProfile','throwHttpErrors','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Tool\x20Installed','N/A','tytFZ','toewE','cloud-provider-not-supported','SqMms','log/report_','EwVho','stringify','CjYeT','grid\x20profile\x20flow\x20','accessResp','isClusterPresent','XRZTq','fXFsy','744316beUapE','QmLpy','pPGJg','WebSocket','dummy-grid','lLynY','ZXrYq','error','XpKzc','46849pEWCyo','mbpLF','AqTEC','AhOSs','wwGqU','method','cIPBO','bstackUsername','clusterName','NolrC','xPCeN','FPOdS','includes','epilogue','oGFPd','\x20error\x20:\x20','UAtXB','cloudProvider','cluster-name','data','seveJ','QWHRe','credential-not-found','push','Tdcch','CwTuU','LlWym','zDuNM','CFtLP','is\x20already\x20present','PoBIM','IPAGx','toLowerCase','0|4|2|1|3','type','LnCql','ELQDe','sequE','authHeader','Status:\x20','\x20region\x20-\x20','vlxAQ','jPujw','body','../../config/logger','bjJJA','username','../../config/constants','TeGti','tRuqL','vCTFa','\x20\x20Stack:\x20','exit','3033114hvvCno','mdXsT','ndlZK','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','nzHll','pre-check-cluster-args-not-passed','Report\x20saved\x20in\x20','AhqwZ','string','desc','usAli','pre-check-grid-profile-empty','`\x20already\x20exists','vtexd','Ynfys','ZBKMZ','`\x20,error\x20:\x20','ObvST','Cluster\x20details\x0a-----------------------\x0a','sUMIX','UEGsH','clusterRegion','IrJjq','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','XAZBV','OOTeY','toCfi','https://','isTls1_2_SUPPORTED','TLSv1_2_client_method','User\x20Access','RnXgW','uuid','Nxfeg','hlTeN','grid-profile','Ulkhb','lDjyn','5hZUAIm','message','../../utils/utilityMethods','DBYIl','Error\x20Details:\x0a','getUTCFullYear','code','GvzRj','NhdZo','wdYYJ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','oWhfk','LfIjD','Browserstack','gnJZw','password','writeFileSync','TWhYb','539652iJMTjg','ppOMB','.txt','Message:\x20','<UsernamePlaceholder>','ZfQgU','\x20\x20Message:\x20','gwBoF','status','448641RTwMhc','ogpXr','SAgiS','bshuk','unable\x20to\x20verify\x20if\x20cluster\x20`','vaYax','GET','INFO','debug','bstackAccesskey','isCliToolInstalled','handler','lbPZl','Qwaef','SCyTR','mcIAQ','nsLnk','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','parse','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','forEach','replace','Failure','info','58122dSvQYL','260FotJeY','NjZpG','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','YKnNH','adygp','udmFm'];a17_0x4c85=function(){return _0x33222a;};return a17_0x4c85();}async function generateReport(_0x2adeda,_0x1171ee){const _0xbd65e7=a17_0x8d2f87,_0x17f20b={'SCyTR':function(_0x3b09f2,_0x36a337){return _0x3b09f2+_0x36a337;},'CuBst':_0xbd65e7(0x288),'PoBIM':'Failure','TeGti':function(_0x375d04,_0x261ade){return _0x375d04||_0x261ade;},'gwBoF':_0xbd65e7(0x1d1),'OOTeY':_0xbd65e7(0x247),'cbaMb':_0xbd65e7(0x22f),'ZfQgU':function(_0x2976d3,_0x38f479){return _0x2976d3!=_0x38f479;},'XRZTq':_0xbd65e7(0x205),'Qwaef':_0xbd65e7(0x1b7),'vaYax':function(_0x271cc8){return _0x271cc8();}};let _0x370a25='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0xbd65e7(0x1f9)]+'\x20===\x0a\x0a';return _0x2adeda[_0xbd65e7(0x272)]((_0x29f4a4,_0xbe94f5)=>{const _0x59ebe9=_0xbd65e7,{header:_0x14126f,response:_0x35e9d7}=_0x29f4a4,{status:_0x5dab3a,data:_0x26b981,error:_0x16b333}=_0x35e9d7;_0x370a25+=_0x14126f+'\x20#'+_0x17f20b[_0x59ebe9(0x26c)](_0xbe94f5,0x1)+'\x0a',_0x370a25+=_0x59ebe9(0x20f)+(_0x5dab3a?_0x17f20b[_0x59ebe9(0x1a8)]:_0x17f20b[_0x59ebe9(0x206)])+'\x0a',_0x370a25+='Message:\x20'+_0x17f20b[_0x59ebe9(0x218)](_0x26b981,_0x17f20b['gwBoF'])+'\x0a',_0x16b333&&(_0x370a25+=_0x17f20b[_0x59ebe9(0x236)],_0x370a25+=_0x59ebe9(0x25b)+(_0x16b333['message']||_0x17f20b[_0x59ebe9(0x25c)])+'\x0a',_0x370a25+=_0x59ebe9(0x1ad)+(_0x16b333['code']||_0x17f20b[_0x59ebe9(0x25c)])+'\x0a',_0x370a25+=_0x59ebe9(0x21b)+(_0x16b333[_0x59ebe9(0x1a6)]||_0x17f20b['gwBoF'])+'\x0a'),_0x370a25+='\x0a\x0a';}),_0x370a25+=_0x17f20b['cbaMb'],_0x17f20b[_0xbd65e7(0x25a)](_0x1171ee,null)?_0x370a25+=_0xbd65e7(0x197)+global_registry[_0xbd65e7(0x1f0)]+'\x20'+(_0x1171ee?_0x17f20b[_0xbd65e7(0x1dd)]:_0x17f20b[_0xbd65e7(0x26b)])+'\x0a\x0a':_0x370a25+=_0xbd65e7(0x197)+global_registry[_0xbd65e7(0x1f0)]+_0xbd65e7(0x199),_0x370a25+=_0x17f20b[_0xbd65e7(0x263)](getSystemMetaData),_0x370a25;};exports[a17_0x8d2f87(0x269)]=async function(_0x5ca47c){const _0xf6f77c=a17_0x8d2f87,_0x29b369={'SqMms':function(_0x2c912a){return _0x2c912a();},'bwyIS':function(_0x4350a0){return _0x4350a0();},'WXHCQ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jPujw':function(_0x5cc6f4,_0x202df6,_0x491c3c,_0x45df53,_0x63d2fe,_0x23ee2c,_0x361a80,_0x4c9714){return _0x5cc6f4(_0x202df6,_0x491c3c,_0x45df53,_0x63d2fe,_0x23ee2c,_0x361a80,_0x4c9714);},'usAli':_0xf6f77c(0x19e),'ndlZK':_0xf6f77c(0x1fe),'APXcm':'error','NolrC':function(_0x15d23b,_0x304a5f,_0xad2b89,_0x3cf875,_0x5775a0,_0x2c445f,_0x186576){return _0x15d23b(_0x304a5f,_0xad2b89,_0x3cf875,_0x5775a0,_0x2c445f,_0x186576);},'OUBjQ':function(_0x3133e5){return _0x3133e5();},'XAZBV':_0xf6f77c(0x259),'YKnNH':_0xf6f77c(0x1c8),'ELQDe':function(_0xa7dcba,_0x1dc0f0,_0x533162){return _0xa7dcba(_0x1dc0f0,_0x533162);},'ZBKMZ':function(_0x5508c2,_0x17924f,_0xba2d7e){return _0x5508c2(_0x17924f,_0xba2d7e);},'KSfGD':function(_0x1c94d6,_0x41a236,_0x5f4842,_0x18934b,_0x59be77,_0x4c823c,_0x539a85){return _0x1c94d6(_0x41a236,_0x5f4842,_0x18934b,_0x59be77,_0x4c823c,_0x539a85);},'RGCcp':_0xf6f77c(0x1e3),'AqTEC':function(_0x23a1a6,_0x3657f6,_0xc043cc){return _0x23a1a6(_0x3657f6,_0xc043cc);},'BczDn':_0xf6f77c(0x1a1),'Degdh':_0xf6f77c(0x209),'Ynfys':function(_0x15bd90,_0x5bc020,_0x38d8c3){return _0x15bd90(_0x5bc020,_0x38d8c3);},'hAoHR':_0xf6f77c(0x1db),'NjZpG':function(_0x400fc9,_0x5e5009,_0x3cc17f){return _0x400fc9(_0x5e5009,_0x3cc17f);},'mcIAQ':'isTrialGridAccessible','FGkUq':function(_0x331862,_0x1323c5){return _0x331862(_0x1323c5);},'UZUZF':_0xf6f77c(0x23a),'bURbX':_0xf6f77c(0x239),'AFbaw':_0xf6f77c(0x1d0),'AfuqL':_0xf6f77c(0x23b),'UmvEi':'Whitelisted\x20browserstack','XpKzc':'SSL\x20Configured','LnCql':function(_0x10e019,_0x1f95c9){return _0x10e019+_0x1f95c9;},'sequE':_0xf6f77c(0x19d),'IPAGx':'pre-check-failed'};let _0x246baf,_0x302d43;try{global_registry['requestId']=_0x29b369[_0xf6f77c(0x1d5)](uuidv4);!fs[_0xf6f77c(0x1ae)](_0x29b369['bwyIS'](getCredentialsPath))&&(_0x302d43=_0x29b369['WXHCQ'],logger[_0xf6f77c(0x1e6)](_0x302d43),await _0x29b369[_0xf6f77c(0x212)](reportToGalactusAndSendToEDS,_0x5ca47c,_0x246baf,_0x302d43,messageTypes[_0xf6f77c(0x1b9)],_0x29b369[_0xf6f77c(0x227)],_0x29b369[_0xf6f77c(0x21f)],_0x29b369[_0xf6f77c(0x1c9)]),process[_0xf6f77c(0x21c)](0x1));_0x29b369[_0xf6f77c(0x1f1)](sendInstrumentationEvent,_0x5ca47c,_0x29b369[_0xf6f77c(0x227)],messageTypes[_0xf6f77c(0x265)],null,null,_0x5ca47c);const _0x5a319c=JSON[_0xf6f77c(0x270)](fs[_0xf6f77c(0x1a5)](_0x29b369['OUBjQ'](getCredentialsPath)));global_registry[_0xf6f77c(0x1ef)]=_0x5a319c[_0xf6f77c(0x250)][_0xf6f77c(0x216)],global_registry[_0xf6f77c(0x267)]=_0x5a319c[_0xf6f77c(0x250)][_0xf6f77c(0x252)];const _0x597a20=WS_ENDPOINT[_0xf6f77c(0x273)](_0x29b369[_0xf6f77c(0x235)],_0x5a319c['Browserstack']['username'])[_0xf6f77c(0x273)](_0x29b369[_0xf6f77c(0x27a)],_0x5a319c[_0xf6f77c(0x250)][_0xf6f77c(0x252)]),_0x22e4a5={};_0x22e4a5[_0xf6f77c(0x1e2)]=ws,_0x22e4a5[_0xf6f77c(0x282)]=0x36ee80,_0x246baf=new ReconnectingWebSocket(_0x597a20,[],_0x22e4a5),global_registry[_0xf6f77c(0x20e)]=_0x29b369[_0xf6f77c(0x20c)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0xf6f77c(0x267)]),await _0x29b369[_0xf6f77c(0x22c)](inputValidation,_0x5ca47c,_0x246baf),logger['info'](_0xf6f77c(0x1c0)+global_registry['cloudProvider']+_0xf6f77c(0x210)+global_registry[_0xf6f77c(0x232)]);let _0x491809=await _0x29b369[_0xf6f77c(0x1cb)](getCloudProviderObjectWithOutInit,global_registry[_0xf6f77c(0x1f9)],global_registry[_0xf6f77c(0x1f0)],_0x29b369['RGCcp'],_0x246baf,webSocketUtils,_0x5ca47c);const _0x3ff42a=await _0x491809[_0xf6f77c(0x268)]();_0x29b369[_0xf6f77c(0x1ea)](printResponse,_0x29b369['BczDn'],_0x3ff42a),_0x491809=await _0x491809['init']();let _0x44e70d=![];try{_0x44e70d=await _0x491809[_0xf6f77c(0x1dc)]();}catch(_0x1eafac){const _0x2bcbc0=_0x29b369['Degdh']['split']('|');let _0x29db8f=0x0;while(!![]){switch(_0x2bcbc0[_0x29db8f++]){case'0':_0x302d43=_0xf6f77c(0x262)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0xf6f77c(0x232)]+_0xf6f77c(0x22d)+_0x1eafac;continue;case'1':_0x302d43+='\x0a'+JSON['stringify'](_0x1eafac[_0xf6f77c(0x1a6)]);continue;case'2':logger[_0xf6f77c(0x1e6)](_0x302d43);continue;case'3':await _0x29b369['jPujw'](reportToGalactusAndSendToEDS,_0x5ca47c,_0x246baf,_0x302d43,messageTypes['ERROR'],_0x29b369[_0xf6f77c(0x227)],'cluster-check-failed-'+global_registry[_0xf6f77c(0x1f9)],_0x29b369[_0xf6f77c(0x1c9)]);continue;case'4':_0x44e70d=null;continue;}break;}}_0x44e70d&&logger[_0xf6f77c(0x275)]('Cluster\x20`'+global_registry[_0xf6f77c(0x1f0)]+_0xf6f77c(0x229));const _0x161b9c=await _0x491809['checkAccess']();_0x29b369[_0xf6f77c(0x22b)](printResponse,_0x29b369['hAoHR'],_0x161b9c);const _0x276a93=await _0x29b369[_0xf6f77c(0x27e)](curlRequest);_0x29b369[_0xf6f77c(0x278)](printResponse,_0x29b369[_0xf6f77c(0x26d)],_0x276a93);const _0x54c1df=await _0x29b369['FGkUq'](isTlsSupported,_0x29b369['UZUZF']);_0x29b369['ZBKMZ'](printResponse,_0x29b369['bURbX'],_0x54c1df);const _0x55d0a1={};_0x55d0a1[_0xf6f77c(0x196)]=_0x29b369['AFbaw'],_0x55d0a1[_0xf6f77c(0x1af)]=_0x3ff42a;const _0x1e72d8={};_0x1e72d8['header']=_0x29b369['AfuqL'],_0x1e72d8[_0xf6f77c(0x1af)]=_0x161b9c;const _0x2f209b={};_0x2f209b['header']=_0x29b369['UmvEi'],_0x2f209b[_0xf6f77c(0x1af)]=_0x276a93;const _0x303725={};_0x303725[_0xf6f77c(0x196)]=_0x29b369[_0xf6f77c(0x1e7)],_0x303725[_0xf6f77c(0x1af)]=_0x54c1df;const _0x1eab63=[_0x55d0a1,_0x1e72d8,_0x2f209b,_0x303725],_0x29f2d1=await _0x29b369[_0xf6f77c(0x1ea)](generateReport,_0x1eab63,_0x44e70d),_0x4e910e=new Date(),_0x325af7=_0x4e910e[_0xf6f77c(0x248)]()+'_'+_0x29b369[_0xf6f77c(0x20b)](_0x4e910e['getUTCMonth'](),0x1)+'_'+_0x4e910e[_0xf6f77c(0x1bd)]()+'_'+_0x4e910e[_0xf6f77c(0x1b4)]()+'_'+_0x4e910e[_0xf6f77c(0x1c6)](),_0x5bca3b=_0xf6f77c(0x1d6)+_0x325af7+_0xf6f77c(0x257);fs[_0xf6f77c(0x253)](_0x5bca3b,_0x29f2d1,_0x29b369[_0xf6f77c(0x20d)]),logger[_0xf6f77c(0x275)](_0xf6f77c(0x223)+_0x5bca3b),process[_0xf6f77c(0x21c)](0x0);}catch(_0x48d4d6){let _0x262218='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x48d4d6+'\x20';logger[_0xf6f77c(0x1e6)](_0x262218),_0x262218+='\x0a'+JSON[_0xf6f77c(0x1d8)](_0x48d4d6['stack']),logger[_0xf6f77c(0x266)]('stack\x20trace\x20'+_0x48d4d6[_0xf6f77c(0x1a6)]);if(_0x246baf){const _0x2dfecc={};_0x2dfecc['type']=WS_EVENTS[_0xf6f77c(0x1be)],_0x2dfecc[_0xf6f77c(0x244)]=_0x262218,webSocketUtils[_0xf6f77c(0x1b5)](_0x246baf,_0x2dfecc,_0x29b369[_0xf6f77c(0x1c9)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x151f65={};_0x151f65['error']=_0x262218,await _0x29b369[_0xf6f77c(0x1f1)](sendInstrumentationEvent,_0x5ca47c,_0x29b369[_0xf6f77c(0x227)],messageTypes['ERROR'],_0x29b369[_0xf6f77c(0x207)],_0x151f65,_0x5ca47c),process[_0xf6f77c(0x21c)](0x1);}};
1
+ const a17_0x3bccab=a17_0x520c;(function(_0x5cac83,_0x3c3d92){const _0xd0aefe=a17_0x520c,_0x3b4a1d=_0x5cac83();while(!![]){try{const _0x1627c8=-parseInt(_0xd0aefe(0x1eb))/0x1*(-parseInt(_0xd0aefe(0x177))/0x2)+parseInt(_0xd0aefe(0x247))/0x3*(parseInt(_0xd0aefe(0x1db))/0x4)+-parseInt(_0xd0aefe(0x1a2))/0x5*(-parseInt(_0xd0aefe(0x1a6))/0x6)+-parseInt(_0xd0aefe(0x16a))/0x7*(parseInt(_0xd0aefe(0x24e))/0x8)+-parseInt(_0xd0aefe(0x24f))/0x9+-parseInt(_0xd0aefe(0x227))/0xa+parseInt(_0xd0aefe(0x1ee))/0xb*(parseInt(_0xd0aefe(0x160))/0xc);if(_0x1627c8===_0x3c3d92)break;else _0x3b4a1d['push'](_0x3b4a1d['shift']());}catch(_0x34e5c1){_0x3b4a1d['push'](_0x3b4a1d['shift']());}}}(a17_0x8a03,0xc2795));function a17_0x520c(_0x4f6a0e,_0x4e43e1){const _0x8a0363=a17_0x8a03();return a17_0x520c=function(_0x520cc0,_0xe581fe){_0x520cc0=_0x520cc0-0x160;let _0x351261=_0x8a0363[_0x520cc0];return _0x351261;},a17_0x520c(_0x4f6a0e,_0x4e43e1);}const fs=require('fs'),ws=require('ws'),got=require(a17_0x3bccab(0x180)),{v4:uuidv4}=require(a17_0x3bccab(0x1df)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3bccab(0x1dd)),{logger}=require(a17_0x3bccab(0x1ad)),{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_0x3bccab(0x174)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x3bccab(0x1f0)),{sendInstrumentationEvent}=require(a17_0x3bccab(0x22c));exports[a17_0x3bccab(0x1e7)]=a17_0x3bccab(0x1b9),exports['desc']=a17_0x3bccab(0x20f),exports['builder']=function(_0x565ccb){const _0x11b1a1=a17_0x3bccab,_0x2fcd94={};_0x2fcd94[_0x11b1a1(0x196)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2fcd94['onoMC']=_0x11b1a1(0x1ef),_0x2fcd94[_0x11b1a1(0x1a5)]=_0x11b1a1(0x1a8),_0x2fcd94[_0x11b1a1(0x241)]=_0x11b1a1(0x1ab),_0x2fcd94['AhnTd']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2fcd94[_0x11b1a1(0x16f)]=_0x11b1a1(0x1bf);const _0x43e647=_0x2fcd94,_0x3d09ff={};_0x3d09ff[_0x11b1a1(0x1e5)]=_0x43e647['WukiC'],_0x3d09ff[_0x11b1a1(0x229)]=_0x43e647['onoMC'];const _0x5d30f2={};_0x5d30f2[_0x11b1a1(0x1e5)]=_0x43e647[_0x11b1a1(0x1a5)],_0x5d30f2[_0x11b1a1(0x229)]=_0x43e647[_0x11b1a1(0x161)];const _0x9e6898={};_0x9e6898[_0x11b1a1(0x1e5)]=_0x43e647[_0x11b1a1(0x241)],_0x9e6898[_0x11b1a1(0x229)]=_0x43e647['onoMC'];const _0x14943e={};_0x14943e[_0x11b1a1(0x1e5)]=_0x43e647[_0x11b1a1(0x17e)],_0x14943e['type']=_0x43e647[_0x11b1a1(0x161)];const _0xc336e9={};return _0xc336e9[_0x11b1a1(0x1ae)]=_0x3d09ff,_0xc336e9['cloud-provider']=_0x5d30f2,_0xc336e9[_0x11b1a1(0x22e)]=_0x9e6898,_0xc336e9[_0x11b1a1(0x1d3)]=_0x14943e,_0x565ccb[_0x11b1a1(0x234)](HELP_HEADER_MESSAGE[_0x11b1a1(0x252)])[_0x11b1a1(0x210)](HELP_FOOTER_MESSAGE)[_0x11b1a1(0x164)](_0xc336e9)[_0x11b1a1(0x1bf)](_0x43e647[_0x11b1a1(0x16f)])['argv'];};async function inputValidation(_0xf9ead5,_0x467e11){const _0x3a10ff=a17_0x3bccab,_0x622210={'WRthT':_0x3a10ff(0x21c),'eYHFE':function(_0x376e19,_0x4bedea){return _0x376e19+_0x4bedea;},'KLRbZ':_0x3a10ff(0x20d),'Zluap':_0x3a10ff(0x248),'LwYFp':function(_0x2893f2,_0x42d4ea){return _0x2893f2||_0x42d4ea;},'UPKCM':_0x3a10ff(0x1b5),'wpols':'Error\x20Details:\x0a','vzmvK':'region','SHCPH':_0x3a10ff(0x1ae),'bUUFg':_0x3a10ff(0x1d0),'yZtzd':_0x3a10ff(0x1d9),'RyHhu':'string','XKTfT':_0x3a10ff(0x1a8),'SfeIH':_0x3a10ff(0x1ab),'mJONr':_0x3a10ff(0x251),'PcBZq':_0x3a10ff(0x1bf),'nRxOp':_0x3a10ff(0x19c),'iZPTc':_0x3a10ff(0x1b2),'EqbJz':function(_0x2644ad,_0x53c4d7){return _0x2644ad===_0x53c4d7;},'YwosG':'QpmOz','HiDyu':function(_0x35bbef,_0x506af0){return _0x35bbef!==_0x506af0;},'BoDMd':'pKGOk','bnNFz':_0x3a10ff(0x1aa),'imOYj':function(_0x9f99ea,_0x65cd1d){return _0x9f99ea!==_0x65cd1d;},'iaEFI':_0x3a10ff(0x188),'YxzDm':_0x3a10ff(0x19e),'uaGlT':function(_0xbf0367,_0x244940){return _0xbf0367===_0x244940;},'ROLfK':_0x3a10ff(0x1f3),'UUcVl':'UIyNM','tnUoW':function(_0x369629,_0x492e42){return _0x369629>_0x492e42;},'NorNT':_0x3a10ff(0x1fc),'mOUYJ':function(_0x5d0d58,_0x1bcf23,_0x21d704,_0x39db2f,_0x18df6d,_0x1b4db7,_0x2ec811,_0x26a7d9){return _0x5d0d58(_0x1bcf23,_0x21d704,_0x39db2f,_0x18df6d,_0x1b4db7,_0x2ec811,_0x26a7d9);},'zzCWJ':'pre-check-grid-called','AiEXx':_0x3a10ff(0x1d5),'CEpik':_0x3a10ff(0x1ec),'OeiMG':function(_0x4f7a25,_0x4ff7d2){return _0x4f7a25!==_0x4ff7d2;},'NdszI':'vpmow','ZNDCa':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ZiCGL':'cloud-provider-not-supported','hNGKZ':function(_0x15c022,_0x6dd547){return _0x15c022!==_0x6dd547;},'kptJm':_0x3a10ff(0x1f2),'BIjzB':_0x3a10ff(0x17d),'onCRo':_0x3a10ff(0x175),'lWTBd':_0x3a10ff(0x18e),'eGKxG':function(_0x2fd9e0,_0x14704c,_0xd413ee){return _0x2fd9e0(_0x14704c,_0xd413ee);},'fsjvg':function(_0x4cc7b8,_0x5ccacd,_0x538c1a,_0xba22a9,_0x19a408,_0x43f5ae){return _0x4cc7b8(_0x5ccacd,_0x538c1a,_0xba22a9,_0x19a408,_0x43f5ae);},'ilnlP':_0x3a10ff(0x1fb),'YzcNC':_0x3a10ff(0x1d3),'RZAhP':_0x3a10ff(0x1ce),'hFjJw':_0x3a10ff(0x1f7),'IFGlX':function(_0xe743c2,_0x8574e){return _0xe743c2(_0x8574e);},'YWQZg':_0x3a10ff(0x232),'jitwg':_0x3a10ff(0x16c),'coemV':'pre-check-grid-profile-empty','RPjzT':_0x3a10ff(0x1be),'jTGyU':_0x3a10ff(0x192),'zVIzh':'zgtpQ','pDNJI':_0x3a10ff(0x1c7),'izxOZ':_0x3a10ff(0x17b),'KdmRR':function(_0x3db9aa,_0x4e78b6){return _0x3db9aa===_0x4e78b6;},'SMNof':_0x3a10ff(0x184),'NLlDW':function(_0x1041da,_0x5bbcf9,_0x54a6f0,_0x216499,_0x3f1e2b,_0x10a0c6,_0x17fa7e,_0x322791){return _0x1041da(_0x5bbcf9,_0x54a6f0,_0x216499,_0x3f1e2b,_0x10a0c6,_0x17fa7e,_0x322791);}};let _0x40334b;try{if(_0x622210['EqbJz'](_0x622210[_0x3a10ff(0x236)],_0x622210['YwosG'])){if(_0xf9ead5[_0x3a10ff(0x1b8)]||_0xf9ead5[_0x3a10ff(0x18f)]||_0xf9ead5[_0x3a10ff(0x22e)]){if(_0x622210['HiDyu'](_0x622210[_0x3a10ff(0x1b4)],_0x622210['BoDMd']))_0x39705d[_0x3a10ff(0x1d2)](_0x622210[_0x3a10ff(0x166)]);else{const _0x4bd69f=[];!_0xf9ead5['clusterName']&&(_0x622210[_0x3a10ff(0x1b0)](_0x622210[_0x3a10ff(0x244)],_0x622210[_0x3a10ff(0x244)])?_0x2d1035+='Cluster\x20'+_0x4ec729['clusterName']+_0x3a10ff(0x19a):_0x4bd69f[_0x3a10ff(0x1d2)](_0x622210[_0x3a10ff(0x253)]));;!_0xf9ead5[_0x3a10ff(0x18f)]&&(_0x622210[_0x3a10ff(0x212)](_0x622210['iaEFI'],_0x622210['YxzDm'])?_0x4bd69f[_0x3a10ff(0x1d2)](_0x622210[_0x3a10ff(0x166)]):_0x342576[_0x3a10ff(0x1a0)](0x1));;if(!_0xf9ead5[_0x3a10ff(0x22e)]){if(_0x622210[_0x3a10ff(0x199)](_0x622210[_0x3a10ff(0x24d)],_0x622210[_0x3a10ff(0x172)])){const {header:_0x5028b9,response:_0x298080}=_0x582d4b,{status:_0x47e4cb,data:_0x5c23ab,error:_0x99d46d}=_0x298080;_0x77d345+=_0x5028b9+'\x20#'+_0x622210[_0x3a10ff(0x178)](_0x1161db,0x1)+'\x0a',_0x154b52+='Status:\x20'+(_0x47e4cb?_0x622210[_0x3a10ff(0x201)]:_0x622210[_0x3a10ff(0x198)])+'\x0a',_0x3eca53+=_0x3a10ff(0x1de)+_0x622210['LwYFp'](_0x5c23ab,_0x622210[_0x3a10ff(0x1cd)])+'\x0a',_0x99d46d&&(_0x2dea34+=_0x622210[_0x3a10ff(0x1c2)],_0x114b45+=_0x3a10ff(0x1c3)+(_0x99d46d[_0x3a10ff(0x17f)]||_0x622210[_0x3a10ff(0x1cd)])+'\x0a',_0xf7db76+=_0x3a10ff(0x1e6)+(_0x99d46d[_0x3a10ff(0x1f6)]||_0x622210['UPKCM'])+'\x0a',_0x3111bb+=_0x3a10ff(0x240)+(_0x99d46d['stack']||_0x622210[_0x3a10ff(0x1cd)])+'\x0a'),_0x2f96fa+='\x0a\x0a';}else _0x4bd69f[_0x3a10ff(0x1d2)](_0x622210[_0x3a10ff(0x231)]);};_0x622210[_0x3a10ff(0x249)](_0x4bd69f['length'],0x0)&&(_0x622210[_0x3a10ff(0x212)](_0x622210[_0x3a10ff(0x173)],_0x622210[_0x3a10ff(0x173)])?_0x5b079b[_0x3a10ff(0x1ec)](_0x3a10ff(0x233)+_0xcbda85[_0x3a10ff(0x1ec)][_0x3a10ff(0x20e)]):(_0x40334b='Missing\x20required\x20arguments:\x20'+_0x4bd69f[_0x3a10ff(0x224)](',\x20')+_0x3a10ff(0x21a),await _0x622210['mOUYJ'](reportToGalactusAndSendToEDS,_0xf9ead5,_0x467e11,_0x40334b,messageTypes[_0x3a10ff(0x1b7)],_0x622210[_0x3a10ff(0x1f9)],_0x622210['AiEXx'],_0x622210[_0x3a10ff(0x16e)]),logger[_0x3a10ff(0x1ec)](_0x40334b),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3a10ff(0x1fa)](_0xf9ead5[_0x3a10ff(0x18f)]['toLowerCase']())&&(_0x622210['OeiMG'](_0x622210[_0x3a10ff(0x216)],_0x622210[_0x3a10ff(0x216)])?_0x23673f['push'](_0x622210[_0x3a10ff(0x231)]):(_0x40334b=_0x622210[_0x3a10ff(0x197)],await _0x622210['mOUYJ'](reportToGalactusAndSendToEDS,_0xf9ead5,_0x467e11,_0x40334b,messageTypes[_0x3a10ff(0x1b7)],_0x622210[_0x3a10ff(0x1f9)],_0x622210[_0x3a10ff(0x1c0)],_0x622210[_0x3a10ff(0x16e)]),logger[_0x3a10ff(0x1ec)](_0x40334b),!_0xf9ead5[_0x3a10ff(0x18f)]&&(_0x622210['hNGKZ'](_0x622210[_0x3a10ff(0x200)],_0x622210[_0x3a10ff(0x1f4)])?(logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x3a10ff(0x18a)]+'\x20'),_0xf9ead5['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x3a10ff(0x18a)]):(_0x5a91bb['info'](_0x3a10ff(0x219)+_0xaac661['CLOUD_PROVIDER']+'\x20'),_0x28be33['cloudProvider']=_0x145cdf['CLOUD_PROVIDER'])))),global_registry[_0x3a10ff(0x1b8)]=_0xf9ead5['clusterName'],global_registry[_0x3a10ff(0x18f)]=_0xf9ead5[_0x3a10ff(0x18f)],global_registry['clusterRegion']=_0xf9ead5[_0x3a10ff(0x22e)];}}else{if(_0xf9ead5[_0x3a10ff(0x185)]){if(_0x622210['HiDyu'](_0x622210['onCRo'],_0x622210['onCRo']))_0x32f4d9+=_0x622210[_0x3a10ff(0x1c2)],_0x565cf0+=_0x3a10ff(0x1c3)+(_0x2f2b7f[_0x3a10ff(0x17f)]||_0x622210[_0x3a10ff(0x1cd)])+'\x0a',_0x5933e3+=_0x3a10ff(0x1e6)+(_0x1b5cad['code']||_0x622210[_0x3a10ff(0x1cd)])+'\x0a',_0x3d8897+='\x20\x20Stack:\x20'+(_0x270fc6['stack']||_0x622210[_0x3a10ff(0x1cd)])+'\x0a';else{global_registry['gridProfile']=_0xf9ead5[_0x3a10ff(0x185)],logger[_0x3a10ff(0x237)]('grid\x20profile\x20flow\x20'+_0xf9ead5['gridProfile']);const _0x48b82f=_0x3a10ff(0x181)+AG_API_URL+_0x3a10ff(0x22a),_0x4b43a5={};_0x4b43a5[_0x3a10ff(0x1e3)]=_0x622210[_0x3a10ff(0x194)],_0x4b43a5['headers']=global_registry[_0x3a10ff(0x1e9)],_0x4b43a5[_0x3a10ff(0x1d4)]=![];const _0x490eb0=_0x4b43a5,_0x5a4b31=await _0x622210[_0x3a10ff(0x217)](got,_0x48b82f,_0x490eb0),_0x4910e3=await _0x622210['fsjvg'](responseValidation,_0x5a4b31,_0x622210[_0x3a10ff(0x1e0)],_0x622210[_0x3a10ff(0x17c)],_0xf9ead5,_0x467e11);let _0xe36a78={};if(_0x622210[_0x3a10ff(0x199)](_0x4910e3,0xc8)){if(_0x622210['OeiMG'](_0x622210['RZAhP'],_0x622210[_0x3a10ff(0x22d)])){const _0x3dffe7=JSON[_0x3a10ff(0x21b)](_0x5a4b31[_0x3a10ff(0x1c6)]),_0x52c89f=_0x3dffe7[_0x3a10ff(0x18b)](_0x357fb6=>_0x357fb6[_0x3a10ff(0x19b)]===_0xf9ead5['gridProfile'])||null;_0x622210[_0x3a10ff(0x204)](isUndefined,_0x52c89f)?_0x622210['EqbJz'](_0x622210[_0x3a10ff(0x1e4)],_0x622210['jitwg'])?_0xd4439f[_0x3a10ff(0x1d2)](_0x622210['SHCPH']):(_0x40334b=_0x3a10ff(0x19d)+_0xf9ead5[_0x3a10ff(0x185)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x622210['mOUYJ'](reportToGalactusAndSendToEDS,_0xf9ead5,_0x467e11,_0x40334b,messageTypes[_0x3a10ff(0x1b7)],_0x622210[_0x3a10ff(0x1f9)],_0x622210[_0x3a10ff(0x214)],_0x622210[_0x3a10ff(0x16e)]),logger[_0x3a10ff(0x1ec)](_0x40334b),process[_0x3a10ff(0x1a0)](0x1)):_0x622210['HiDyu'](_0x622210[_0x3a10ff(0x23f)],_0x622210['RPjzT'])?_0x20cb86=_0x13f770:_0xe36a78=_0x52c89f;}else _0x4d1e16[_0x3a10ff(0x1ec)](_0x622210[_0x3a10ff(0x246)]),_0x38a64a[_0x3a10ff(0x1a0)](0x1);}else{if(_0x622210[_0x3a10ff(0x199)](_0x622210[_0x3a10ff(0x1b6)],_0x622210[_0x3a10ff(0x23b)])){const _0x433b0e={};_0x433b0e[_0x3a10ff(0x1e5)]=_0x622210[_0x3a10ff(0x190)],_0x433b0e[_0x3a10ff(0x229)]=_0x622210[_0x3a10ff(0x245)];const _0x3ebfc9={};_0x3ebfc9[_0x3a10ff(0x1e5)]=_0x622210[_0x3a10ff(0x170)],_0x3ebfc9['type']=_0x622210[_0x3a10ff(0x245)];const _0x2d38c0={};_0x2d38c0[_0x3a10ff(0x1e5)]=_0x622210['SfeIH'],_0x2d38c0[_0x3a10ff(0x229)]=_0x622210[_0x3a10ff(0x245)];const _0x391074={};_0x391074[_0x3a10ff(0x1e5)]=_0x622210['mJONr'],_0x391074[_0x3a10ff(0x229)]=_0x622210['RyHhu'];const _0x385788={};return _0x385788['cluster-name']=_0x433b0e,_0x385788[_0x3a10ff(0x21c)]=_0x3ebfc9,_0x385788[_0x3a10ff(0x22e)]=_0x2d38c0,_0x385788['grid-profile']=_0x391074,_0x483c91['usage'](_0x26464f[_0x3a10ff(0x252)])['epilogue'](_0xc34a46)[_0x3a10ff(0x164)](_0x385788)[_0x3a10ff(0x1bf)](_0x622210['PcBZq'])[_0x3a10ff(0x211)];}else process[_0x3a10ff(0x1a0)](0x1);}const _0x1b8d39={};_0x1b8d39[_0x3a10ff(0x229)]=WS_EVENTS[_0x3a10ff(0x23a)],_0x1b8d39[_0x3a10ff(0x17f)]=_0x622210['pDNJI'],webSocketUtils[_0x3a10ff(0x222)](_0x467e11,_0x1b8d39),global_registry['cloudProvider']=_0xe36a78[_0x3a10ff(0x18f)],global_registry['clusterRegion']=_0xe36a78['region'],global_registry[_0x3a10ff(0x1b8)]=_0xe36a78[_0x3a10ff(0x1b8)];}}else _0x622210[_0x3a10ff(0x199)](_0x622210[_0x3a10ff(0x1e8)],_0x622210[_0x3a10ff(0x1e8)])?(logger[_0x3a10ff(0x1ec)](_0x622210[_0x3a10ff(0x246)]),process['exit'](0x1)):(_0x2b0770[_0x3a10ff(0x195)]('['+_0x2c0c43+']\x20status\x20:\x20'+_0xbdf09c['status']+'\x20data\x20:\x20'+_0x24a60f[_0x3a10ff(0x21f)]+_0x3a10ff(0x165)+_0x4466a3[_0x3a10ff(0x1ec)]),_0x1a2a86[_0x3a10ff(0x1ec)]&&_0x12f427[_0x3a10ff(0x1ec)](_0x3a10ff(0x233)+_0xbc37ea[_0x3a10ff(0x1ec)][_0x3a10ff(0x20e)]));}}else _0x582959[_0x3a10ff(0x195)]('Cluster\x20`'+_0xa40474['clusterName']+_0x3a10ff(0x208));}catch(_0x1021be){_0x622210['KdmRR'](_0x622210[_0x3a10ff(0x1c8)],_0x622210['SMNof'])?(_0x40334b=_0x3a10ff(0x24a)+_0x1021be+':\x20'+_0x1021be[_0x3a10ff(0x20e)],logger[_0x3a10ff(0x1ec)](_0x40334b),await _0x622210[_0x3a10ff(0x1bb)](reportToGalactusAndSendToEDS,_0xf9ead5,_0x467e11,_0x40334b,messageTypes[_0x3a10ff(0x1b7)],_0x622210[_0x3a10ff(0x1f9)],_0x622210[_0x3a10ff(0x1c0)],_0x622210[_0x3a10ff(0x16e)]),process[_0x3a10ff(0x1a0)](0x1)):_0x399a49+='Cluster\x20'+_0x1cb77f[_0x3a10ff(0x1b8)]+'\x20'+(_0x3d7358?_0x622210[_0x3a10ff(0x171)]:_0x622210[_0x3a10ff(0x238)])+'\x0a\x0a';}}function printResponse(_0x10850e,_0x27d6ef){const _0x3fde47=a17_0x3bccab,_0x2bfcbf={};_0x2bfcbf['Sdjnh']=_0x3fde47(0x1ec),_0x2bfcbf['KaYDt']=function(_0x3f65d4,_0x5b08f7){return _0x3f65d4!==_0x5b08f7;},_0x2bfcbf[_0x3fde47(0x20b)]=_0x3fde47(0x1bc);const _0x84f3c8=_0x2bfcbf;logger[_0x3fde47(0x195)]('['+_0x10850e+']\x20status\x20:\x20'+_0x27d6ef[_0x3fde47(0x1cf)]+_0x3fde47(0x242)+_0x27d6ef['data']+_0x3fde47(0x165)+_0x27d6ef[_0x3fde47(0x1ec)]);if(_0x27d6ef[_0x3fde47(0x1ec)]){if(_0x84f3c8[_0x3fde47(0x203)](_0x84f3c8[_0x3fde47(0x20b)],_0x84f3c8[_0x3fde47(0x20b)])){const _0x2542ca={};_0x2542ca['type']=_0x5e4fd0[_0x3fde47(0x23a)],_0x2542ca[_0x3fde47(0x17f)]=_0x93b733,_0x4c35cb[_0x3fde47(0x222)](_0x26fcac,_0x2542ca,_0x84f3c8['Sdjnh'],!![]);}else logger[_0x3fde47(0x1ec)](_0x3fde47(0x233)+_0x27d6ef[_0x3fde47(0x1ec)]['stack']);}}async function generateReport(_0x27b88d,_0xa326dd){const _0x4d7ce0=a17_0x3bccab,_0x4fbcf0={'UMWnr':function(_0x5981aa,_0x5a7f1f){return _0x5981aa+_0x5a7f1f;},'RStlJ':'Success','EdTBL':_0x4d7ce0(0x248),'pyQRh':function(_0x52a138,_0x549774){return _0x52a138||_0x549774;},'zhORt':_0x4d7ce0(0x1b5),'LypUM':_0x4d7ce0(0x1d6),'NbYNs':_0x4d7ce0(0x1a4),'HTqGj':function(_0x5f5b70,_0x2f1e48){return _0x5f5b70!=_0x2f1e48;},'nhzkE':_0x4d7ce0(0x19c),'rWPpw':_0x4d7ce0(0x1b2),'DVTOp':function(_0x2a21f4){return _0x2a21f4();}};let _0x566ca0='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x4d7ce0(0x18f)]+_0x4d7ce0(0x189);return _0x27b88d[_0x4d7ce0(0x187)]((_0x273ad5,_0x40f71e)=>{const _0x5bdbe6=_0x4d7ce0,{header:_0x3653d1,response:_0x3e02d5}=_0x273ad5,{status:_0x24c27f,data:_0x56ad1d,error:_0x30a632}=_0x3e02d5;_0x566ca0+=_0x3653d1+'\x20#'+_0x4fbcf0[_0x5bdbe6(0x1c5)](_0x40f71e,0x1)+'\x0a',_0x566ca0+=_0x5bdbe6(0x176)+(_0x24c27f?_0x4fbcf0[_0x5bdbe6(0x24c)]:_0x4fbcf0[_0x5bdbe6(0x16d)])+'\x0a',_0x566ca0+=_0x5bdbe6(0x1de)+_0x4fbcf0[_0x5bdbe6(0x1a1)](_0x56ad1d,_0x4fbcf0[_0x5bdbe6(0x16b)])+'\x0a',_0x30a632&&(_0x566ca0+=_0x4fbcf0[_0x5bdbe6(0x186)],_0x566ca0+=_0x5bdbe6(0x1c3)+(_0x30a632[_0x5bdbe6(0x17f)]||_0x4fbcf0[_0x5bdbe6(0x16b)])+'\x0a',_0x566ca0+=_0x5bdbe6(0x1e6)+(_0x30a632[_0x5bdbe6(0x1f6)]||_0x4fbcf0[_0x5bdbe6(0x16b)])+'\x0a',_0x566ca0+=_0x5bdbe6(0x240)+(_0x30a632[_0x5bdbe6(0x20e)]||_0x4fbcf0['zhORt'])+'\x0a'),_0x566ca0+='\x0a\x0a';}),_0x566ca0+=_0x4fbcf0[_0x4d7ce0(0x1f8)],_0x4fbcf0[_0x4d7ce0(0x24b)](_0xa326dd,null)?_0x566ca0+=_0x4d7ce0(0x169)+global_registry[_0x4d7ce0(0x1b8)]+'\x20'+(_0xa326dd?_0x4fbcf0[_0x4d7ce0(0x1fe)]:_0x4fbcf0[_0x4d7ce0(0x1ca)])+'\x0a\x0a':_0x566ca0+=_0x4d7ce0(0x169)+global_registry['clusterName']+_0x4d7ce0(0x19a),_0x566ca0+=_0x4fbcf0['DVTOp'](getSystemMetaData),_0x566ca0;};exports['handler']=async function(_0x10c4da){const _0x305afe=a17_0x3bccab,_0x5c72d9={'XpfmE':function(_0x3d1543){return _0x3d1543();},'OqUIe':_0x305afe(0x182),'KSVbz':function(_0x1f9aaf,_0x10be99,_0x5298d5,_0x116ae3,_0x43f386,_0x3e5aea,_0x4c905d,_0x47b241){return _0x1f9aaf(_0x10be99,_0x5298d5,_0x116ae3,_0x43f386,_0x3e5aea,_0x4c905d,_0x47b241);},'qWSEi':'pre-check-grid-called','FjRNo':'credential-not-found','iPTgQ':'error','FDwgl':function(_0x20a0a8,_0x1f20dc,_0x3b158e,_0x135b72,_0x49b019,_0x450dc3,_0x51d8e3){return _0x20a0a8(_0x1f20dc,_0x3b158e,_0x135b72,_0x49b019,_0x450dc3,_0x51d8e3);},'gZhRK':function(_0x511da2){return _0x511da2();},'CVYxR':_0x305afe(0x1a3),'vrDMe':_0x305afe(0x226),'BPALU':function(_0x570a5e,_0x45d1db,_0x44f3da){return _0x570a5e(_0x45d1db,_0x44f3da);},'WoElu':function(_0x58edf2,_0x2cf921,_0x247a94){return _0x58edf2(_0x2cf921,_0x247a94);},'JxxDg':'dummy-grid','bCVkj':function(_0x59fed7,_0x23a6d9,_0x25535e){return _0x59fed7(_0x23a6d9,_0x25535e);},'UnqRm':_0x305afe(0x1f5),'jaDEf':_0x305afe(0x18d),'pLzgz':function(_0x43f3bf,_0x1bd3c6,_0x5c4006){return _0x43f3bf(_0x1bd3c6,_0x5c4006);},'sjlrU':_0x305afe(0x1ea),'XpMPv':function(_0x307106){return _0x307106();},'qjxZx':function(_0x561520,_0x4881d5,_0x16a492){return _0x561520(_0x4881d5,_0x16a492);},'wtxtR':_0x305afe(0x215),'YBAIk':function(_0x1dbf3a,_0x1bc9e5){return _0x1dbf3a(_0x1bc9e5);},'yCVva':'TLSv1_2_client_method','NyIlC':function(_0x335f5b,_0x3a1582,_0x3f29bf){return _0x335f5b(_0x3a1582,_0x3f29bf);},'prmqs':'isTls1_2_SUPPORTED','mHBja':_0x305afe(0x23d),'Tbeqh':'User\x20Access','SbgmE':_0x305afe(0x20c),'kziMw':_0x305afe(0x1d1),'CGOyA':function(_0x4559cd,_0x47b3e6){return _0x4559cd+_0x47b3e6;},'iXbNz':_0x305afe(0x1ff),'iNTEx':_0x305afe(0x235)};let _0x3fae00,_0x6b9612;try{global_registry[_0x305afe(0x1f1)]=_0x5c72d9[_0x305afe(0x225)](uuidv4);!fs[_0x305afe(0x209)](_0x5c72d9['XpfmE'](getCredentialsPath))&&(_0x6b9612=_0x5c72d9['OqUIe'],logger[_0x305afe(0x1ec)](_0x6b9612),await _0x5c72d9[_0x305afe(0x1c1)](reportToGalactusAndSendToEDS,_0x10c4da,_0x3fae00,_0x6b9612,messageTypes[_0x305afe(0x1b7)],_0x5c72d9[_0x305afe(0x1b3)],_0x5c72d9['FjRNo'],_0x5c72d9[_0x305afe(0x1da)]),process[_0x305afe(0x1a0)](0x1));_0x5c72d9[_0x305afe(0x1e2)](sendInstrumentationEvent,_0x10c4da,_0x5c72d9[_0x305afe(0x1b3)],messageTypes['INFO'],null,null,_0x10c4da);const _0x5569ce=JSON['parse'](fs[_0x305afe(0x1ba)](_0x5c72d9[_0x305afe(0x1bd)](getCredentialsPath)));global_registry[_0x305afe(0x1dc)]=_0x5569ce[_0x305afe(0x19f)][_0x305afe(0x228)],global_registry['bstackAccesskey']=_0x5569ce[_0x305afe(0x19f)][_0x305afe(0x21d)];const _0x47fe06=WS_ENDPOINT[_0x305afe(0x1ed)](_0x5c72d9['CVYxR'],_0x5569ce[_0x305afe(0x19f)][_0x305afe(0x228)])[_0x305afe(0x1ed)](_0x5c72d9[_0x305afe(0x202)],_0x5569ce[_0x305afe(0x19f)][_0x305afe(0x21d)]),_0x30378d={};_0x30378d[_0x305afe(0x23e)]=ws,_0x30378d[_0x305afe(0x213)]=0x36ee80,_0x3fae00=new ReconnectingWebSocket(_0x47fe06,[],_0x30378d),global_registry['authHeader']=_0x5c72d9[_0x305afe(0x191)](getAuthHeader,global_registry[_0x305afe(0x1dc)],global_registry['bstackAccesskey']),await _0x5c72d9[_0x305afe(0x1d7)](inputValidation,_0x10c4da,_0x3fae00),logger['info'](_0x305afe(0x167)+global_registry['cloudProvider']+_0x305afe(0x21e)+global_registry[_0x305afe(0x168)]);let _0x3600a9=await _0x5c72d9[_0x305afe(0x1e2)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x5c72d9[_0x305afe(0x1e1)],_0x3fae00,webSocketUtils,_0x10c4da);const _0x4eb714=await _0x3600a9[_0x305afe(0x218)]();_0x5c72d9['bCVkj'](printResponse,_0x5c72d9[_0x305afe(0x206)],_0x4eb714),_0x3600a9=await _0x3600a9['init']();let _0x3885da=![];try{_0x3885da=await _0x3600a9[_0x305afe(0x18c)]();}catch(_0x449a23){const _0x2f3679=_0x5c72d9[_0x305afe(0x1c4)][_0x305afe(0x1af)]('|');let _0x557fb7=0x0;while(!![]){switch(_0x2f3679[_0x557fb7++]){case'0':_0x6b9612=_0x305afe(0x230)+global_registry[_0x305afe(0x1b8)]+_0x305afe(0x1b1)+global_registry['clusterRegion']+_0x305afe(0x250)+_0x449a23;continue;case'1':await _0x5c72d9[_0x305afe(0x1c1)](reportToGalactusAndSendToEDS,_0x10c4da,_0x3fae00,_0x6b9612,messageTypes['ERROR'],_0x5c72d9[_0x305afe(0x1b3)],_0x305afe(0x221)+global_registry[_0x305afe(0x18f)],_0x5c72d9['iPTgQ']);continue;case'2':logger['error'](_0x6b9612);continue;case'3':_0x6b9612+='\x0a'+JSON[_0x305afe(0x1ac)](_0x449a23['stack']);continue;case'4':_0x3885da=null;continue;}break;}}_0x3885da&&logger[_0x305afe(0x195)](_0x305afe(0x22b)+global_registry['clusterName']+'`\x20already\x20exists');const _0x3e5d11=await _0x3600a9[_0x305afe(0x23c)]();_0x5c72d9[_0x305afe(0x205)](printResponse,_0x5c72d9[_0x305afe(0x243)],_0x3e5d11);const _0x59cabc=await _0x5c72d9[_0x305afe(0x17a)](curlRequest);_0x5c72d9['qjxZx'](printResponse,_0x5c72d9[_0x305afe(0x193)],_0x59cabc);const _0x1c93f2=await _0x5c72d9['YBAIk'](isTlsSupported,_0x5c72d9['yCVva']);_0x5c72d9[_0x305afe(0x1cb)](printResponse,_0x5c72d9['prmqs'],_0x1c93f2);const _0x2635a7={};_0x2635a7['header']=_0x5c72d9[_0x305afe(0x207)],_0x2635a7[_0x305afe(0x1d8)]=_0x4eb714;const _0x2e229f={};_0x2e229f['header']=_0x5c72d9[_0x305afe(0x1a9)],_0x2e229f[_0x305afe(0x1d8)]=_0x3e5d11;const _0x282925={};_0x282925[_0x305afe(0x1fd)]=_0x5c72d9[_0x305afe(0x183)],_0x282925[_0x305afe(0x1d8)]=_0x59cabc;const _0x2d9c5c={};_0x2d9c5c[_0x305afe(0x1fd)]=_0x5c72d9[_0x305afe(0x1a7)],_0x2d9c5c[_0x305afe(0x1d8)]=_0x1c93f2;const _0x2eb569=[_0x2635a7,_0x2e229f,_0x282925,_0x2d9c5c],_0x3f8439=await _0x5c72d9[_0x305afe(0x239)](generateReport,_0x2eb569,_0x3885da),_0x39c404=new Date(),_0x4f65d7=_0x39c404[_0x305afe(0x1c9)]()+'_'+_0x5c72d9[_0x305afe(0x223)](_0x39c404[_0x305afe(0x1cc)](),0x1)+'_'+_0x39c404['getUTCDate']()+'_'+_0x39c404[_0x305afe(0x163)]()+'_'+_0x39c404[_0x305afe(0x179)](),_0x257241=_0x305afe(0x254)+_0x4f65d7+'.txt';fs['writeFileSync'](_0x257241,_0x3f8439,_0x5c72d9[_0x305afe(0x20a)]),logger[_0x305afe(0x195)]('Report\x20saved\x20in\x20'+_0x257241),process[_0x305afe(0x1a0)](0x0);}catch(_0x23e307){let _0x2b9b91=_0x305afe(0x220)+_0x23e307+'\x20';logger[_0x305afe(0x1ec)](_0x2b9b91),_0x2b9b91+='\x0a'+JSON['stringify'](_0x23e307[_0x305afe(0x20e)]),logger['debug']('stack\x20trace\x20'+_0x23e307[_0x305afe(0x20e)]);if(_0x3fae00){const _0x10e5f2={};_0x10e5f2[_0x305afe(0x229)]=WS_EVENTS['LOG'],_0x10e5f2[_0x305afe(0x17f)]=_0x2b9b91,webSocketUtils[_0x305afe(0x222)](_0x3fae00,_0x10e5f2,_0x5c72d9['iPTgQ'],!![]);}await webSocketUtils[_0x305afe(0x22f)](0x7d0);const _0x57b39b={};_0x57b39b[_0x305afe(0x1ec)]=_0x2b9b91,await _0x5c72d9['FDwgl'](sendInstrumentationEvent,_0x10c4da,_0x5c72d9[_0x305afe(0x1b3)],messageTypes[_0x305afe(0x1b7)],_0x5c72d9[_0x305afe(0x162)],_0x57b39b,_0x10c4da),process['exit'](0x1);}};function a17_0x8a03(){const _0xc828b6=['/packages/cli/get-all-grid-profiles','Cluster\x20`','../../utils/instrumentationUtils','hFjJw','region','delay','unable\x20to\x20verify\x20if\x20cluster\x20`','vzmvK','UesBA','error\x20stack\x20:\x20','usage','pre-check-failed','YwosG','debug','iZPTc','qjxZx','LOG','zVIzh','checkAccess','Tool\x20Installed','WebSocket','RPjzT','\x20\x20Stack:\x20','ICUXj','\x20data\x20:\x20','sjlrU','bnNFz','RyHhu','bUUFg','6DzgMSh','Failure','tnUoW','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','HTqGj','RStlJ','ROLfK','26344SRHrYb','4697100skwDtR','`\x20,error\x20:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pre_check','SHCPH','log/report_','1170264tfREtL','onoMC','iNTEx','getUTCHours','options','\x20error\x20:\x20','WRthT','Pre-check\x20running\x20for\x20Cloud\x20-\x20','clusterRegion','Cluster\x20','2751HnUYxs','zhORt','FTWAT','EdTBL','CEpik','RdtGD','XKTfT','nRxOp','UUcVl','NorNT','../../config/constants','AhYLe','Status:\x20','2972QraRGP','eYHFE','getUTCMinutes','XpMPv','pDKYA','YzcNC','GnlxX','AhnTd','message','got','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','SbgmE','IMzIy','gridProfile','LypUM','forEach','yAsKL','\x20===\x0a\x0a','CLOUD_PROVIDER','find','isClusterPresent','0|4|2|3|1','GET','cloudProvider','yZtzd','BPALU','FneMM','wtxtR','lWTBd','info','WukiC','ZNDCa','Zluap','uaGlT','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','name','is\x20already\x20present','Invalid\x20input.\x20grid\x20profiles:\x20','gqBBo','Browserstack','exit','pyQRh','43045rJmhkR','<UsernamePlaceholder>','Cluster\x20details\x0a-----------------------\x0a','jdPhm','732JTojWk','kziMw','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Tbeqh','THUVH','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','stringify','../../config/logger','cluster-name','split','HiDyu','`\x20is\x20present\x20in\x20region\x20`','will\x20be\x20created','qWSEi','BoDMd','N/A','jTGyU','ERROR','clusterName','grid','readFileSync','NLlDW','pKkDf','gZhRK','yKQqs','help','ZiCGL','KSVbz','wpols','\x20\x20Message:\x20','jaDEf','UMWnr','body','Grid\x20profile\x20fetched\x20for\x20pre-check','SMNof','getUTCFullYear','rWPpw','NyIlC','getUTCMonth','UPKCM','nFvJC','status','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','SSL\x20Configured','push','grid-profile','throwHttpErrors','pre-check-cluster-args-not-passed','Error\x20Details:\x0a','WoElu','response','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','iPTgQ','10288NxPdbe','bstackUsername','../../utils/utilityMethods','Message:\x20','uuid','ilnlP','JxxDg','FDwgl','method','YWQZg','description','\x20\x20Code:\x20','command','izxOZ','authHeader','accessResp','439NDTQEa','error','replace','132iHNwyc','string','../../utils/webSocketUtils','requestId','KIfrn','YJHgO','BIjzB','toolInstalledResp','code','Ieikl','NbYNs','zzCWJ','includes','pre-check','gHOTj','header','nhzkE','utf-8','kptJm','KLRbZ','vrDMe','KaYDt','IFGlX','pLzgz','UnqRm','mHBja','`\x20already\x20exists','existsSync','iXbNz','gloQW','Whitelisted\x20browserstack','Success','stack','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','epilogue','argv','imOYj','connectionTimeout','coemV','isTrialGridAccessible','NdszI','eGKxG','isCliToolInstalled','Setting\x20cloud\x20provider\x20as\x20','.\x20Please\x20provide\x20all\x20required\x20arguments.','parse','cloud-provider','password','\x20region\x20-\x20','data','Failed\x20in\x20pre-check!\x20Error:\x20','cluster-check-failed-','sendEventToBackend','CGOyA','join','XpfmE','<PasswordPlaceholder>','2654460MVWahm','username','type'];a17_0x8a03=function(){return _0xc828b6;};return a17_0x8a03();}
@@ -1 +1 @@
1
- const a18_0x1a68f0=a18_0x4e4d;(function(_0x6b2fa2,_0x2d3da9){const _0x16f0fb=a18_0x4e4d,_0x24ab65=_0x6b2fa2();while(!![]){try{const _0x4e0478=-parseInt(_0x16f0fb(0x1fe))/0x1+-parseInt(_0x16f0fb(0x1f1))/0x2+parseInt(_0x16f0fb(0x1f7))/0x3*(-parseInt(_0x16f0fb(0x1f5))/0x4)+-parseInt(_0x16f0fb(0x1f6))/0x5*(parseInt(_0x16f0fb(0x1fc))/0x6)+parseInt(_0x16f0fb(0x1f9))/0x7+parseInt(_0x16f0fb(0x201))/0x8*(parseInt(_0x16f0fb(0x1f3))/0x9)+parseInt(_0x16f0fb(0x1ee))/0xa*(parseInt(_0x16f0fb(0x1ff))/0xb);if(_0x4e0478===_0x2d3da9)break;else _0x24ab65['push'](_0x24ab65['shift']());}catch(_0x5751e6){_0x24ab65['push'](_0x24ab65['shift']());}}}(a18_0x2dff,0xad5b0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1a68f0(0x203));function a18_0x4e4d(_0x6686d8,_0x1c53e0){const _0x2dff2d=a18_0x2dff();return a18_0x4e4d=function(_0x4e4d2a,_0x3e80e6){_0x4e4d2a=_0x4e4d2a-0x1ea;let _0x5cb1c1=_0x2dff2d[_0x4e4d2a];return _0x5cb1c1;},a18_0x4e4d(_0x6686d8,_0x1c53e0);}exports[a18_0x1a68f0(0x1eb)]='start',exports[a18_0x1a68f0(0x1ec)]=a18_0x1a68f0(0x1fd),exports[a18_0x1a68f0(0x1f8)]=function(_0x2c3d18){const _0x4f3659=a18_0x1a68f0,_0x3ada0d={};_0x3ada0d['azMBW']=_0x4f3659(0x1ef),_0x3ada0d[_0x4f3659(0x1f0)]=_0x4f3659(0x1f2);const _0x240f8c=_0x3ada0d;return _0x2c3d18['usage'](HELP_HEADER_MESSAGE[_0x4f3659(0x1fb)])[_0x4f3659(0x200)](HELP_FOOTER_MESSAGE)[_0x4f3659(0x1ea)](_0x240f8c[_0x4f3659(0x202)])[_0x4f3659(0x204)]()[_0x4f3659(0x1f4)]()[_0x4f3659(0x1fa)]()['help'](_0x240f8c[_0x4f3659(0x1f0)]);},exports[a18_0x1a68f0(0x1ed)]=function(_0x22ef57){};function a18_0x2dff(){const _0x345e87=['618xOhRuT','Start\x20an\x20existing\x20Automation\x20grid.','531140sMRkJo','11ZtsjdX','epilogue','480fuKTxg','azMBW','../config/constants','demandCommand','commandDir','command','desc','handler','33597790AmlPkr','start_commands','QmSCb','2296574uOqVuV','help','17721bJersl','recommendCommands','804052eQfiSf','26375NDVVwC','9EjVwhd','builder','405552tqLzZo','strict','start'];a18_0x2dff=function(){return _0x345e87;};return a18_0x2dff();}
1
+ const a18_0x234af2=a18_0xf0e4;(function(_0x561a27,_0x4dfb8a){const _0x59463b=a18_0xf0e4,_0x567b3c=_0x561a27();while(!![]){try{const _0x45123f=parseInt(_0x59463b(0x10c))/0x1*(-parseInt(_0x59463b(0x104))/0x2)+parseInt(_0x59463b(0x105))/0x3*(-parseInt(_0x59463b(0x103))/0x4)+parseInt(_0x59463b(0x118))/0x5+-parseInt(_0x59463b(0x107))/0x6*(-parseInt(_0x59463b(0x116))/0x7)+-parseInt(_0x59463b(0x113))/0x8*(parseInt(_0x59463b(0x106))/0x9)+parseInt(_0x59463b(0x10a))/0xa*(parseInt(_0x59463b(0x115))/0xb)+-parseInt(_0x59463b(0x114))/0xc*(-parseInt(_0x59463b(0x11a))/0xd);if(_0x45123f===_0x4dfb8a)break;else _0x567b3c['push'](_0x567b3c['shift']());}catch(_0x29f9be){_0x567b3c['push'](_0x567b3c['shift']());}}}(a18_0xa443,0xf2f7b));function a18_0xf0e4(_0xc3a14a,_0xf734d8){const _0xa443d2=a18_0xa443();return a18_0xf0e4=function(_0xf0e43a,_0x2506aa){_0xf0e43a=_0xf0e43a-0x102;let _0x138088=_0xa443d2[_0xf0e43a];return _0x138088;},a18_0xf0e4(_0xc3a14a,_0xf734d8);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x234af2(0x10d));exports[a18_0x234af2(0x11b)]=a18_0x234af2(0x10b),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x234af2(0x109)]=function(_0x3428d5){const _0x5b4c63=a18_0x234af2,_0x701e0e={};_0x701e0e[_0x5b4c63(0x102)]=_0x5b4c63(0x108),_0x701e0e[_0x5b4c63(0x119)]=_0x5b4c63(0x111);const _0x311caa=_0x701e0e;return _0x3428d5[_0x5b4c63(0x117)](HELP_HEADER_MESSAGE[_0x5b4c63(0x10b)])[_0x5b4c63(0x112)](HELP_FOOTER_MESSAGE)[_0x5b4c63(0x110)](_0x311caa[_0x5b4c63(0x102)])['demandCommand']()['recommendCommands']()[_0x5b4c63(0x10f)]()[_0x5b4c63(0x111)](_0x311caa['bOZgn']);},exports[a18_0x234af2(0x10e)]=function(_0x199134){};function a18_0xa443(){const _0x32a103=['usage','2795395ResmQF','bOZgn','15701803rieEMc','command','FpwLb','4bLwkqO','92agBMBm','3801201mRjKHB','9jyaAWN','6tLHMqV','start_commands','builder','29530ysXuXD','start','22271LkIGNc','../config/constants','handler','strict','commandDir','help','epilogue','1366192NQsAZH','24ADIQUD','1661LUNzwJ','258006OvTDqN'];a18_0xa443=function(){return _0x32a103;};return a18_0xa443();}
@@ -1 +1 @@
1
- const a19_0x5ea4ac=a19_0x1bf6;(function(_0x1dad68,_0x526c60){const _0x149cdf=a19_0x1bf6,_0x1fdd40=_0x1dad68();while(!![]){try{const _0x11e412=-parseInt(_0x149cdf(0x10c))/0x1*(parseInt(_0x149cdf(0x148))/0x2)+-parseInt(_0x149cdf(0x11a))/0x3+-parseInt(_0x149cdf(0x13d))/0x4+parseInt(_0x149cdf(0x10b))/0x5+parseInt(_0x149cdf(0x14d))/0x6+-parseInt(_0x149cdf(0x14a))/0x7+parseInt(_0x149cdf(0x14e))/0x8;if(_0x11e412===_0x526c60)break;else _0x1fdd40['push'](_0x1fdd40['shift']());}catch(_0x4780f8){_0x1fdd40['push'](_0x1fdd40['shift']());}}}(a19_0x1eb7,0x1d5b2));function a19_0x1bf6(_0x51a707,_0x4a775a){const _0x1eb749=a19_0x1eb7();return a19_0x1bf6=function(_0x1bf61e,_0x1c16eb){_0x1bf61e=_0x1bf61e-0xff;let _0x3335dc=_0x1eb749[_0x1bf61e];return _0x3335dc;},a19_0x1bf6(_0x51a707,_0x4a775a);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5ea4ac(0x103)),{logger}=require(a19_0x5ea4ac(0x115)),{getCredentialsPath,getGridDetails}=require(a19_0x5ea4ac(0x10f)),{scaleUpHubDeployment}=require(a19_0x5ea4ac(0x104)),{sendInstrumentationEvent}=require(a19_0x5ea4ac(0x139)),webSocketUtils=require(a19_0x5ea4ac(0x155)),{createK8sClient}=require(a19_0x5ea4ac(0x15a)),{getCloudProviderObject}=require(a19_0x5ea4ac(0x153));exports[a19_0x5ea4ac(0x109)]=a19_0x5ea4ac(0x113),exports[a19_0x5ea4ac(0x107)]=a19_0x5ea4ac(0x131),exports[a19_0x5ea4ac(0x126)]=function(_0x80c3fc){const _0x3bb2a3=a19_0x5ea4ac,_0x4ccb33={};_0x4ccb33['zVMEU']=_0x3bb2a3(0x157),_0x4ccb33[_0x3bb2a3(0x13f)]=_0x3bb2a3(0x10a),_0x4ccb33['WTuvW']=_0x3bb2a3(0x143),_0x4ccb33['gGTZk']=_0x3bb2a3(0x117),_0x4ccb33['eWqfa']=_0x3bb2a3(0x121);const _0x2bf499=_0x4ccb33,_0x56a39e={};_0x56a39e[_0x3bb2a3(0x14f)]=_0x2bf499[_0x3bb2a3(0x12a)],_0x56a39e['type']=_0x2bf499[_0x3bb2a3(0x13f)];const _0x4080ea={};_0x4080ea['description']=_0x2bf499[_0x3bb2a3(0x12b)],_0x4080ea['type']=_0x2bf499[_0x3bb2a3(0x125)],_0x4080ea[_0x3bb2a3(0x15b)]=![];const _0xc950fb={};return _0xc950fb[_0x3bb2a3(0x108)]=_0x56a39e,_0xc950fb[_0x3bb2a3(0x10d)]=_0x4080ea,_0x80c3fc[_0x3bb2a3(0x138)](HELP_HEADER_MESSAGE[_0x3bb2a3(0x122)])[_0x3bb2a3(0x142)](HELP_FOOTER_MESSAGE)[_0x3bb2a3(0x156)](_0xc950fb)[_0x3bb2a3(0x121)](_0x2bf499[_0x3bb2a3(0x13e)])[_0x3bb2a3(0x13a)];},exports[a19_0x5ea4ac(0x147)]=async function(_0x54541a){const _0x55f1cb=a19_0x5ea4ac,_0x3c08c4={'AOOHv':_0x55f1cb(0x11f),'rZORU':function(_0x5856c5){return _0x5856c5();},'ynUiq':_0x55f1cb(0x145),'jlfpu':function(_0x3ad3e0,_0x2bb69d,_0x4bff41,_0x142d66,_0x47fcf4,_0x58f338,_0x21d3cd){return _0x3ad3e0(_0x2bb69d,_0x4bff41,_0x142d66,_0x47fcf4,_0x58f338,_0x21d3cd);},'fzNfx':_0x55f1cb(0x101),'qckzm':_0x55f1cb(0x14b),'ofzEj':_0x55f1cb(0x11d),'IZHCN':_0x55f1cb(0x136),'JqcKK':_0x55f1cb(0x120),'bGLbU':function(_0x346fbb,_0x157e25,_0x1b9eec,_0x26638d){return _0x346fbb(_0x157e25,_0x1b9eec,_0x26638d);},'jUInA':function(_0x32b58f,_0x5e0f8c,_0x450e68){return _0x32b58f(_0x5e0f8c,_0x450e68);},'TjeTg':function(_0x2f5543,_0x16c1d6,_0x214125){return _0x2f5543(_0x16c1d6,_0x214125);},'OynaR':'Grid\x20started','DGVvt':function(_0x5188fb,_0x4ef2ab){return _0x5188fb===_0x4ef2ab;},'iUjPC':_0x55f1cb(0x11c),'mrjGP':_0x55f1cb(0x159),'kEvEs':'invalid-grid-id','ymDzl':_0x55f1cb(0x14c)};let _0x141f0f;try{!_0x54541a[_0x55f1cb(0x154)]&&(logger[_0x55f1cb(0x140)](_0x3c08c4[_0x55f1cb(0x150)]),process[_0x55f1cb(0x105)](0x1));!fs['existsSync'](_0x3c08c4[_0x55f1cb(0x123)](getCredentialsPath))&&(logger[_0x55f1cb(0x140)](_0x3c08c4[_0x55f1cb(0x158)]),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4['fzNfx'],messageTypes[_0x55f1cb(0x132)],_0x3c08c4[_0x55f1cb(0x11b)],null,_0x54541a),process[_0x55f1cb(0x105)](0x1));logger[_0x55f1cb(0x128)]('Starting\x20grid\x20'+_0x54541a['gridId']),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4[_0x55f1cb(0x13c)],messageTypes[_0x55f1cb(0x100)],null,null,_0x54541a);const _0x1b1cf3=JSON[_0x55f1cb(0x12f)](fs['readFileSync'](_0x3c08c4[_0x55f1cb(0x123)](getCredentialsPath)));global_registry['bstackUsername']=_0x1b1cf3['Browserstack'][_0x55f1cb(0x137)],global_registry['bstackAccesskey']=_0x1b1cf3[_0x55f1cb(0x129)]['password'];const _0x4e4f88=WS_ENDPOINT[_0x55f1cb(0x149)](_0x3c08c4[_0x55f1cb(0x119)],_0x1b1cf3['Browserstack']['username'])[_0x55f1cb(0x149)](_0x3c08c4[_0x55f1cb(0x134)],_0x1b1cf3[_0x55f1cb(0x129)][_0x55f1cb(0x118)]),_0x1b5175={};_0x1b5175[_0x55f1cb(0x133)]=ws,_0x1b5175[_0x55f1cb(0x11e)]=0x36ee80,_0x141f0f=new ReconnectingWebSocket(_0x4e4f88,[],_0x1b5175),logger[_0x55f1cb(0x106)](_0x3c08c4[_0x55f1cb(0x146)]),webSocketUtils[_0x55f1cb(0x12d)](_0x141f0f,_0x54541a[_0x55f1cb(0x135)],_0x54541a[_0x55f1cb(0x118)]);const [_0x596cea,_0xeebe5b]=await _0x3c08c4[_0x55f1cb(0x10e)](getGridDetails,_0x1b1cf3[_0x55f1cb(0x129)][_0x55f1cb(0x137)],_0x1b1cf3[_0x55f1cb(0x129)][_0x55f1cb(0x118)],_0x54541a[_0x55f1cb(0x154)]);if(_0xeebe5b){const _0x31cca3=_0xeebe5b[_0x55f1cb(0x128)];global_registry[_0x55f1cb(0x12c)]=_0x31cca3[_0x55f1cb(0x12c)],global_registry[_0x55f1cb(0x114)]=_0x31cca3['region'],global_registry[_0x55f1cb(0x124)]=_0x31cca3[_0x55f1cb(0x124)];const _0x43859d=await _0x3c08c4['jlfpu'](getCloudProviderObject,_0x31cca3['cloudProvider'],_0x31cca3[_0x55f1cb(0x124)],_0x31cca3[_0x55f1cb(0x144)],_0x141f0f,webSocketUtils,_0x54541a),[_0x5d43d0,_0x576bc8,_0xa11bc6,_0x2f3bb4,_0x583e4a,_0x530ecf]=await _0x3c08c4[_0x55f1cb(0x127)](createK8sClient,_0x43859d,_0x54541a[_0x55f1cb(0x152)]);await _0x3c08c4['TjeTg'](scaleUpHubDeployment,_0x576bc8,_0x31cca3[_0x55f1cb(0x144)]),logger[_0x55f1cb(0x128)](_0x3c08c4['OynaR']),process[_0x55f1cb(0x105)](0x0);}_0x3c08c4[_0x55f1cb(0x141)](_0x596cea['statusCode'],0x191)&&(logger[_0x55f1cb(0x140)](_0x3c08c4[_0x55f1cb(0x13b)]),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4[_0x55f1cb(0x13c)],messageTypes[_0x55f1cb(0x132)],_0x3c08c4['mrjGP'],null,_0x54541a),process[_0x55f1cb(0x105)](0x1)),_0x3c08c4[_0x55f1cb(0x141)](_0x596cea[_0x55f1cb(0x111)],0x190)&&(logger[_0x55f1cb(0x140)](JSON[_0x55f1cb(0x12f)](_0x596cea[_0x55f1cb(0x12e)])[_0x55f1cb(0x112)]),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4['fzNfx'],messageTypes[_0x55f1cb(0x132)],_0x3c08c4[_0x55f1cb(0x102)],null,_0x54541a),process[_0x55f1cb(0x105)](0x1)),logger[_0x55f1cb(0x140)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x55f1cb(0x151)](_0x596cea)),await _0x3c08c4[_0x55f1cb(0xff)](sendInstrumentationEvent,_0x54541a,_0x3c08c4[_0x55f1cb(0x13c)],messageTypes[_0x55f1cb(0x132)],_0x3c08c4[_0x55f1cb(0x130)],_0x596cea,_0x54541a),process[_0x55f1cb(0x105)](0x1);}catch(_0x4b2cf6){const _0x36a5c4=_0x55f1cb(0x116)+_0x4b2cf6+'\x20\x0a'+JSON[_0x55f1cb(0x151)](_0x4b2cf6[_0x55f1cb(0x110)])+'\x20';logger[_0x55f1cb(0x140)](_0x36a5c4),process['exit'](0x1);}};function a19_0x1eb7(){const _0x4bca66=['Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ynUiq','unauthorised','../../utils/createk8sClient','default','jlfpu','INFO','start-grid-called','kEvEs','../../config/constants','../../utils/gridComponents','exit','debug','desc','grid-id','command','string','791805ILGdWD','1vYdhbl','skip-tls-cert-verify','bGLbU','../../utils/utilityMethods','stack','statusCode','message','grid','clusterRegion','../../config/logger','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','boolean','password','ofzEj','211107tESVSD','qckzm','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','<UsernamePlaceholder>','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Adding\x20Websocket\x20listeners','help','start','rZORU','clusterName','gGTZk','builder','jUInA','info','Browserstack','zVMEU','WTuvW','cloudProvider','addListeners','body','parse','ymDzl','Start\x20an\x20existing\x20Automation\x20grid.','ERROR','WebSocket','IZHCN','user','<PasswordPlaceholder>','username','usage','../../utils/instrumentationUtils','argv','iUjPC','fzNfx','33856ecIwxl','eWqfa','yOdRz','error','DGVvt','epilogue','Skip\x20insecure\x20cert\x20verification.','name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JqcKK','handler','477744MRWagW','replace','448343JnOeRD','init-not-called','server-error','186954xbsUAx','2499808tyKuXW','description','AOOHv','stringify','skipTlsCertVerify','../../cloudproviders/utils','gridId','../../utils/webSocketUtils','options'];a19_0x1eb7=function(){return _0x4bca66;};return a19_0x1eb7();}
1
+ function a19_0x4f7f(_0x533410,_0x169958){const _0x4d0845=a19_0x4d08();return a19_0x4f7f=function(_0x4f7fe5,_0x410dc7){_0x4f7fe5=_0x4f7fe5-0xa5;let _0x4181d5=_0x4d0845[_0x4f7fe5];return _0x4181d5;},a19_0x4f7f(_0x533410,_0x169958);}const a19_0xc75a22=a19_0x4f7f;(function(_0x4b2b95,_0x2a4e1e){const _0x1b20eb=a19_0x4f7f,_0x5be5b5=_0x4b2b95();while(!![]){try{const _0x4ea692=-parseInt(_0x1b20eb(0xee))/0x1*(parseInt(_0x1b20eb(0xe5))/0x2)+parseInt(_0x1b20eb(0xe3))/0x3+-parseInt(_0x1b20eb(0xf1))/0x4+parseInt(_0x1b20eb(0xb7))/0x5*(-parseInt(_0x1b20eb(0xce))/0x6)+parseInt(_0x1b20eb(0xdd))/0x7+-parseInt(_0x1b20eb(0xb3))/0x8+parseInt(_0x1b20eb(0xb9))/0x9*(parseInt(_0x1b20eb(0xd3))/0xa);if(_0x4ea692===_0x2a4e1e)break;else _0x5be5b5['push'](_0x5be5b5['shift']());}catch(_0x3c91ea){_0x5be5b5['push'](_0x5be5b5['shift']());}}}(a19_0x4d08,0xc1d5a));function a19_0x4d08(){const _0xfb65e3=['ERROR','fomXL','<PasswordPlaceholder>','grid-id','3453912bsRYaY','stack','help','zjSrp','1901605WjZDdG','CuEtM','675IRRirn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gKkGB','reconnecting-websocket','CQIWr','Zgjhq','WebSocket','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gtpfF','ZezpN','boolean','username','desc','vEvNO','gridId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','exit','usage','init-not-called','readFileSync','EThIk','12HmFLGG','sSTyq','../../utils/webSocketUtils','dnUFZ','cloudProvider','180370kGTlgL','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','INFO','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','bstackUsername','rxWwi','tLCTR','Browserstack','zDEwH','parse','4167520TzVvrf','replace','statusCode','stringify','DMXUO','string','3210474BncfSF','<UsernamePlaceholder>','1541518yCfXXl','name','description','clusterRegion','Skip\x20insecure\x20cert\x20verification.','unauthorised','command','options','Start\x20an\x20existing\x20Automation\x20grid.','1lDPrZk','grid','bstackAccesskey','1044828jxBYXP','password','debug','message','error','argv','JGnta','skip-tls-cert-verify','server-error','connectionTimeout','Starting\x20grid\x20','start-grid-called','start','../../utils/gridComponents','../../cloudproviders/utils','clusterName','MSYcJ','user','orHqS','info','type','existsSync','huQMP','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','body','eqrTO','epilogue'];a19_0x4d08=function(){return _0xfb65e3;};return a19_0x4d08();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0xc75a22(0xbc)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0xc75a22(0xfe)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0xc75a22(0xd0)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0xc75a22(0xff));exports[a19_0xc75a22(0xeb)]=a19_0xc75a22(0xef),exports[a19_0xc75a22(0xc5)]=a19_0xc75a22(0xed),exports['builder']=function(_0x4fd752){const _0x21a71b=a19_0xc75a22,_0x167677={};_0x167677['CQIWr']=_0x21a71b(0xd4),_0x167677[_0x21a71b(0xb8)]=_0x21a71b(0xe2),_0x167677[_0x21a71b(0xe1)]=_0x21a71b(0xe9),_0x167677['huQMP']=_0x21a71b(0xc3),_0x167677[_0x21a71b(0xb0)]=_0x21a71b(0xb5);const _0x3d239b=_0x167677,_0x1c8a88={};_0x1c8a88[_0x21a71b(0xe7)]=_0x3d239b[_0x21a71b(0xbd)],_0x1c8a88[_0x21a71b(0xa8)]=_0x3d239b['CuEtM'];const _0x4ec0b5={};_0x4ec0b5['description']=_0x3d239b['DMXUO'],_0x4ec0b5['type']=_0x3d239b[_0x21a71b(0xaa)],_0x4ec0b5['default']=![];const _0x2c01d5={};return _0x2c01d5[_0x21a71b(0xb2)]=_0x1c8a88,_0x2c01d5[_0x21a71b(0xf8)]=_0x4ec0b5,_0x4fd752[_0x21a71b(0xca)](HELP_HEADER_MESSAGE[_0x21a71b(0xfd)])[_0x21a71b(0xae)](HELP_FOOTER_MESSAGE)[_0x21a71b(0xec)](_0x2c01d5)[_0x21a71b(0xb5)](_0x3d239b[_0x21a71b(0xb0)])[_0x21a71b(0xf6)];},exports['handler']=async function(_0x8aa6c4){const _0xfcabbf=a19_0xc75a22,_0x447a8a={'zDEwH':_0xfcabbf(0xab),'orHqS':function(_0x3d45f1){return _0x3d45f1();},'ZezpN':_0xfcabbf(0xba),'gtpfF':function(_0x27104e,_0x5ae9a4,_0x49a1e5,_0x2d2117,_0x2ec5c3,_0x1b0187,_0xe505b0){return _0x27104e(_0x5ae9a4,_0x49a1e5,_0x2d2117,_0x2ec5c3,_0x1b0187,_0xe505b0);},'JGnta':_0xfcabbf(0xfc),'dnUFZ':_0xfcabbf(0xcb),'TyyLz':function(_0x57b0ad,_0x3acca8,_0x193590,_0x2a09ea,_0x35b67e,_0x547b55,_0xbe2d0){return _0x57b0ad(_0x3acca8,_0x193590,_0x2a09ea,_0x35b67e,_0x547b55,_0xbe2d0);},'gKkGB':_0xfcabbf(0xe4),'Zgjhq':_0xfcabbf(0xb1),'EThIk':'Adding\x20Websocket\x20listeners','lojDn':function(_0x5d508f,_0x5828d8,_0x2d0ec1,_0x1ae73a){return _0x5d508f(_0x5828d8,_0x2d0ec1,_0x1ae73a);},'vEvNO':function(_0x19089f,_0x61f343,_0x56b1cf){return _0x19089f(_0x61f343,_0x56b1cf);},'pqehL':'Grid\x20started','tLCTR':function(_0x5194eb,_0x5c0b06){return _0x5194eb===_0x5c0b06;},'zjSrp':_0xfcabbf(0xc0),'rxWwi':_0xfcabbf(0xea),'eqrTO':function(_0x3db436,_0x5bc4d6,_0x499eda,_0x324d3b,_0x5cdac6,_0x320aa7,_0x1b09c1){return _0x3db436(_0x5bc4d6,_0x499eda,_0x324d3b,_0x5cdac6,_0x320aa7,_0x1b09c1);},'sSTyq':'invalid-grid-id','jSbxc':function(_0x4fee87,_0x16ddea,_0x572857,_0x29bd8b,_0x48c45a,_0x1db3c5,_0x2e570f){return _0x4fee87(_0x16ddea,_0x572857,_0x29bd8b,_0x48c45a,_0x1db3c5,_0x2e570f);},'MSYcJ':_0xfcabbf(0xf9)};let _0x1a62b1;try{!_0x8aa6c4[_0xfcabbf(0xc7)]&&(logger['error'](_0x447a8a[_0xfcabbf(0xdb)]),process['exit'](0x1));!fs[_0xfcabbf(0xa9)](_0x447a8a[_0xfcabbf(0xa6)](getCredentialsPath))&&(logger[_0xfcabbf(0xf5)](_0x447a8a[_0xfcabbf(0xc2)]),await _0x447a8a[_0xfcabbf(0xc1)](sendInstrumentationEvent,_0x8aa6c4,_0x447a8a['JGnta'],messageTypes[_0xfcabbf(0xaf)],_0x447a8a[_0xfcabbf(0xd1)],null,_0x8aa6c4),process[_0xfcabbf(0xc9)](0x1));logger[_0xfcabbf(0xa7)](_0xfcabbf(0xfb)+_0x8aa6c4['gridId']),await _0x447a8a['TyyLz'](sendInstrumentationEvent,_0x8aa6c4,_0x447a8a[_0xfcabbf(0xf7)],messageTypes[_0xfcabbf(0xd5)],null,null,_0x8aa6c4);const _0x248dd0=JSON['parse'](fs[_0xfcabbf(0xcc)](_0x447a8a[_0xfcabbf(0xa6)](getCredentialsPath)));global_registry[_0xfcabbf(0xd7)]=_0x248dd0[_0xfcabbf(0xda)][_0xfcabbf(0xc4)],global_registry[_0xfcabbf(0xf0)]=_0x248dd0[_0xfcabbf(0xda)][_0xfcabbf(0xf2)];const _0x46f24a=WS_ENDPOINT[_0xfcabbf(0xde)](_0x447a8a[_0xfcabbf(0xbb)],_0x248dd0[_0xfcabbf(0xda)][_0xfcabbf(0xc4)])['replace'](_0x447a8a[_0xfcabbf(0xbe)],_0x248dd0['Browserstack'][_0xfcabbf(0xf2)]),_0x9f4109={};_0x9f4109[_0xfcabbf(0xbf)]=ws,_0x9f4109[_0xfcabbf(0xfa)]=0x36ee80,_0x1a62b1=new ReconnectingWebSocket(_0x46f24a,[],_0x9f4109),logger[_0xfcabbf(0xf3)](_0x447a8a[_0xfcabbf(0xcd)]),webSocketUtils['addListeners'](_0x1a62b1,_0x8aa6c4[_0xfcabbf(0xa5)],_0x8aa6c4[_0xfcabbf(0xf2)]);const [_0x5c2ef4,_0x233ce9]=await _0x447a8a['lojDn'](getGridDetails,_0x248dd0[_0xfcabbf(0xda)]['username'],_0x248dd0[_0xfcabbf(0xda)][_0xfcabbf(0xf2)],_0x8aa6c4[_0xfcabbf(0xc7)]);if(_0x233ce9){const _0x49f700=_0x233ce9[_0xfcabbf(0xa7)];global_registry[_0xfcabbf(0xd2)]=_0x49f700[_0xfcabbf(0xd2)],global_registry[_0xfcabbf(0xe8)]=_0x49f700['region'],global_registry['clusterName']=_0x49f700['clusterName'];const _0x4d853c=await _0x447a8a['TyyLz'](getCloudProviderObject,_0x49f700[_0xfcabbf(0xd2)],_0x49f700[_0xfcabbf(0x100)],_0x49f700['name'],_0x1a62b1,webSocketUtils,_0x8aa6c4),[_0x45344d,_0x1375d4,_0x3781d7,_0x411669,_0xa65f0e,_0x25fad]=await _0x447a8a[_0xfcabbf(0xc6)](createK8sClient,_0x4d853c,_0x8aa6c4['skipTlsCertVerify']);await _0x447a8a[_0xfcabbf(0xc6)](scaleUpHubDeployment,_0x1375d4,_0x49f700[_0xfcabbf(0xe6)]),logger[_0xfcabbf(0xa7)](_0x447a8a['pqehL']),process[_0xfcabbf(0xc9)](0x0);}_0x447a8a[_0xfcabbf(0xd9)](_0x5c2ef4['statusCode'],0x191)&&(logger[_0xfcabbf(0xf5)](_0x447a8a[_0xfcabbf(0xb6)]),await _0x447a8a[_0xfcabbf(0xc1)](sendInstrumentationEvent,_0x8aa6c4,_0x447a8a[_0xfcabbf(0xf7)],messageTypes[_0xfcabbf(0xaf)],_0x447a8a[_0xfcabbf(0xd8)],null,_0x8aa6c4),process[_0xfcabbf(0xc9)](0x1)),_0x447a8a[_0xfcabbf(0xd9)](_0x5c2ef4[_0xfcabbf(0xdf)],0x190)&&(logger[_0xfcabbf(0xf5)](JSON[_0xfcabbf(0xdc)](_0x5c2ef4[_0xfcabbf(0xac)])[_0xfcabbf(0xf4)]),await _0x447a8a[_0xfcabbf(0xad)](sendInstrumentationEvent,_0x8aa6c4,_0x447a8a['JGnta'],messageTypes[_0xfcabbf(0xaf)],_0x447a8a[_0xfcabbf(0xcf)],null,_0x8aa6c4),process[_0xfcabbf(0xc9)](0x1)),logger['error'](_0xfcabbf(0xc8)+JSON[_0xfcabbf(0xe0)](_0x5c2ef4)),await _0x447a8a['jSbxc'](sendInstrumentationEvent,_0x8aa6c4,_0x447a8a[_0xfcabbf(0xf7)],messageTypes['ERROR'],_0x447a8a[_0xfcabbf(0x101)],_0x5c2ef4,_0x8aa6c4),process['exit'](0x1);}catch(_0x4d24e8){const _0x1dc221=_0xfcabbf(0xd6)+_0x4d24e8+'\x20\x0a'+JSON[_0xfcabbf(0xe0)](_0x4d24e8[_0xfcabbf(0xb4)])+'\x20';logger[_0xfcabbf(0xf5)](_0x1dc221),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a20_0x33c3(){const _0x1be9d0=['strict','8uoHiXc','help','desc','stop','1641837lHexgf','ProNW','command','7847TdLHtV','237915KCvner','765468zDzKzy','../config/constants','stop_commands','Stop\x20a\x20running\x20Automation\x20grid.','171684pVpFzL','dBvWq','7182225bYZMSg','4VRAkav','usage','builder','commandDir','2712XMbtVh','6897kriqSQ','demandCommand','recommendCommands','46420RkrZKZ'];a20_0x33c3=function(){return _0x1be9d0;};return a20_0x33c3();}const a20_0x1e0952=a20_0x4a6a;(function(_0xf92763,_0x123d0e){const _0x2e8e25=a20_0x4a6a,_0x37728a=_0xf92763();while(!![]){try{const _0x22070=-parseInt(_0x2e8e25(0x1d0))/0x1+parseInt(_0x2e8e25(0x1d4))/0x2+-parseInt(_0x2e8e25(0x1cb))/0x3*(parseInt(_0x2e8e25(0x1d7))/0x4)+parseInt(_0x2e8e25(0x1cf))/0x5+parseInt(_0x2e8e25(0x1db))/0x6*(-parseInt(_0x2e8e25(0x1ce))/0x7)+parseInt(_0x2e8e25(0x1c7))/0x8*(-parseInt(_0x2e8e25(0x1d6))/0x9)+-parseInt(_0x2e8e25(0x1df))/0xa*(-parseInt(_0x2e8e25(0x1dc))/0xb);if(_0x22070===_0x123d0e)break;else _0x37728a['push'](_0x37728a['shift']());}catch(_0x2eb50b){_0x37728a['push'](_0x37728a['shift']());}}}(a20_0x33c3,0x681ff));function a20_0x4a6a(_0x1ac14c,_0x1e2069){const _0x33c3e4=a20_0x33c3();return a20_0x4a6a=function(_0x4a6a82,_0x26a3ed){_0x4a6a82=_0x4a6a82-0x1c6;let _0x2ee0d1=_0x33c3e4[_0x4a6a82];return _0x2ee0d1;},a20_0x4a6a(_0x1ac14c,_0x1e2069);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1e0952(0x1d1));exports[a20_0x1e0952(0x1cd)]=a20_0x1e0952(0x1ca),exports[a20_0x1e0952(0x1c9)]=a20_0x1e0952(0x1d3),exports[a20_0x1e0952(0x1d9)]=function(_0xad7058){const _0x469633=a20_0x1e0952,_0x24d89e={};_0x24d89e[_0x469633(0x1d5)]=_0x469633(0x1d2),_0x24d89e[_0x469633(0x1cc)]=_0x469633(0x1c8);const _0x41a318=_0x24d89e;return _0xad7058[_0x469633(0x1d8)](HELP_HEADER_MESSAGE[_0x469633(0x1ca)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x469633(0x1da)](_0x41a318[_0x469633(0x1d5)])[_0x469633(0x1dd)]()[_0x469633(0x1de)]()[_0x469633(0x1c6)]()[_0x469633(0x1c8)](_0x41a318['ProNW']);},exports['handler']=function(_0x49a2b9){};
1
+ const a20_0x17c535=a20_0x5a7b;function a20_0x950a(){const _0x4fafff=['handler','usage','1818dnsMNx','461214HhcLPg','1941611Zyftyn','epilogue','commandDir','3385536aZhifC','SVEMi','builder','help','22555EMYEpX','4142877zCMkoX','89688MoLqHl','6WMKxVf','hZhFu','desc','command','138118WXcsdf'];a20_0x950a=function(){return _0x4fafff;};return a20_0x950a();}(function(_0x5451ab,_0x1f3303){const _0x407f59=a20_0x5a7b,_0x5c3478=_0x5451ab();while(!![]){try{const _0x384211=-parseInt(_0x407f59(0x9d))/0x1+-parseInt(_0x407f59(0x99))/0x2+-parseInt(_0x407f59(0x93))/0x3+parseInt(_0x407f59(0xa1))/0x4+-parseInt(_0x407f59(0x92))/0x5+parseInt(_0x407f59(0x95))/0x6*(-parseInt(_0x407f59(0x9e))/0x7)+parseInt(_0x407f59(0x94))/0x8*(parseInt(_0x407f59(0x9c))/0x9);if(_0x384211===_0x1f3303)break;else _0x5c3478['push'](_0x5c3478['shift']());}catch(_0xe56351){_0x5c3478['push'](_0x5c3478['shift']());}}}(a20_0x950a,0xe0182));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x5a7b(_0xc9e187,_0xe0bfd4){const _0x950abf=a20_0x950a();return a20_0x5a7b=function(_0x5a7bb1,_0x561761){_0x5a7bb1=_0x5a7bb1-0x91;let _0x37ce17=_0x950abf[_0x5a7bb1];return _0x37ce17;},a20_0x5a7b(_0xc9e187,_0xe0bfd4);}exports[a20_0x17c535(0x98)]='stop',exports[a20_0x17c535(0x97)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x17c535(0xa3)]=function(_0x3f277a){const _0x2b08ae=a20_0x17c535,_0x3c1b45={};_0x3c1b45[_0x2b08ae(0x96)]='stop_commands',_0x3c1b45[_0x2b08ae(0xa2)]=_0x2b08ae(0x91);const _0x5de907=_0x3c1b45;return _0x3f277a[_0x2b08ae(0x9b)](HELP_HEADER_MESSAGE['stop'])[_0x2b08ae(0x9f)](HELP_FOOTER_MESSAGE)[_0x2b08ae(0xa0)](_0x5de907[_0x2b08ae(0x96)])['demandCommand']()['recommendCommands']()['strict']()[_0x2b08ae(0x91)](_0x5de907[_0x2b08ae(0xa2)]);},exports[a20_0x17c535(0x9a)]=function(_0x1a3fd3){};
@@ -1 +1 @@
1
- function a21_0x5492(){const _0x43257c=['dnnaI','Dvvlu','nGwQu','DPrCL','4482072rlCCms','addListeners','10bMpWPr','220106YxMqjj','init-not-called','body','WVOeo','stack','INFO','PWUqQ','clusterName','stop-grid-called','Stop\x20a\x20running\x20Automation\x20grid.','2041310BsRujx','name','WebSocket','Skip\x20insecure\x20cert\x20verification.','exit','error','656457pBHfQE','LJFvW','NOXTV','../../utils/createk8sClient','builder','type','readFileSync','../../config/logger','stringify','pMAuO','grid-id','dzzZp','message','string','server-error','../../utils/utilityMethods','MSlyE','842380KCrWBC','connectionTimeout','XIfdV','stop','user','argv','EWQei','BxSJt','replace','unauthorised','xUgEL','LHOkb','skipTlsCertVerify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../cloudproviders/utils','handler','existsSync','BqhnJ','command','statusCode','info','Adding\x20Websocket\x20listeners','debug','../../utils/webSocketUtils','desc','description','zVfWF','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid','33AtdFXe','region','bstackUsername','../../utils/instrumentationUtils','AIbej','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','options','Browserstack','username','../../utils/gridComponents','password','invalid-grid-id','ERROR','30iIueDJ','reconnecting-websocket','clusterRegion','vVvIY','2076488jrUZmF','XWjMV','../../config/constants','gridId','cloudProvider','parse','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','VrukC','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','10tsYSqV','bstackAccesskey','923688aorWWH','<PasswordPlaceholder>','ziUCd','Stopping\x20grid\x20','<UsernamePlaceholder>','default'];a21_0x5492=function(){return _0x43257c;};return a21_0x5492();}const a21_0x44c12d=a21_0x54e3;function a21_0x54e3(_0x38f360,_0x54c2c0){const _0x54925d=a21_0x5492();return a21_0x54e3=function(_0x54e345,_0x3720f5){_0x54e345=_0x54e345-0x168;let _0x9d702a=_0x54925d[_0x54e345];return _0x9d702a;},a21_0x54e3(_0x38f360,_0x54c2c0);}(function(_0x26d729,_0x583703){const _0x26983d=a21_0x54e3,_0x2f477c=_0x26d729();while(!![]){try{const _0x32748a=-parseInt(_0x26983d(0x1ca))/0x1+parseInt(_0x26983d(0x1c9))/0x2*(parseInt(_0x26983d(0x171))/0x3)+parseInt(_0x26983d(0x1b2))/0x4*(-parseInt(_0x26983d(0x1bb))/0x5)+parseInt(_0x26983d(0x1ae))/0x6*(parseInt(_0x26983d(0x182))/0x7)+-parseInt(_0x26983d(0x1c7))/0x8+parseInt(_0x26983d(0x1bd))/0x9+-parseInt(_0x26983d(0x16b))/0xa*(-parseInt(_0x26983d(0x1a1))/0xb);if(_0x32748a===_0x583703)break;else _0x2f477c['push'](_0x2f477c['shift']());}catch(_0x90e7b6){_0x2f477c['push'](_0x2f477c['shift']());}}}(a21_0x5492,0x90953));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x44c12d(0x1af)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x44c12d(0x1b4)),{logger}=require(a21_0x44c12d(0x178)),{getCredentialsPath,getGridDetails}=require(a21_0x44c12d(0x180)),{scaleDownHubDeployment}=require(a21_0x44c12d(0x1aa)),{sendInstrumentationEvent}=require(a21_0x44c12d(0x1a4)),webSocketUtils=require(a21_0x44c12d(0x19a)),{createK8sClient}=require(a21_0x44c12d(0x174)),{getCloudProviderObject}=require(a21_0x44c12d(0x191));exports[a21_0x44c12d(0x195)]=a21_0x44c12d(0x1a0),exports[a21_0x44c12d(0x19b)]=a21_0x44c12d(0x16a),exports[a21_0x44c12d(0x175)]=function(_0x2ec763){const _0x452268=a21_0x44c12d,_0x2c5614={};_0x2c5614[_0x452268(0x19d)]=_0x452268(0x1b8),_0x2c5614[_0x452268(0x194)]=_0x452268(0x17e),_0x2c5614[_0x452268(0x1d0)]=_0x452268(0x16e),_0x2c5614[_0x452268(0x172)]='boolean',_0x2c5614[_0x452268(0x181)]='help';const _0x109a95=_0x2c5614,_0x19c09c={};_0x19c09c['description']=_0x109a95[_0x452268(0x19d)],_0x19c09c[_0x452268(0x176)]=_0x109a95[_0x452268(0x194)];const _0x1a3a6a={};_0x1a3a6a[_0x452268(0x19c)]=_0x109a95['PWUqQ'],_0x1a3a6a['type']=_0x109a95[_0x452268(0x172)],_0x1a3a6a[_0x452268(0x1c2)]=![];const _0x3dc3a7={};return _0x3dc3a7[_0x452268(0x17b)]=_0x19c09c,_0x3dc3a7[_0x452268(0x19e)]=_0x1a3a6a,_0x2ec763['usage'](HELP_HEADER_MESSAGE[_0x452268(0x185)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x452268(0x1a7)](_0x3dc3a7)['help'](_0x109a95[_0x452268(0x181)])[_0x452268(0x187)];},exports[a21_0x44c12d(0x192)]=async function(_0x4fff68){const _0xe5dee3=a21_0x44c12d,_0x33051e={'VrukC':_0xe5dee3(0x1a6),'XWIOT':function(_0x4a0960){return _0x4a0960();},'EWQei':_0xe5dee3(0x18f),'OAfQW':function(_0x4f2675,_0x1f8f9f,_0x5dc27f,_0x51bb9e,_0x4f3964,_0x1c925f,_0x33a9b8){return _0x4f2675(_0x1f8f9f,_0x5dc27f,_0x51bb9e,_0x4f3964,_0x1c925f,_0x33a9b8);},'vVvIY':_0xe5dee3(0x169),'XWjMV':_0xe5dee3(0x1cb),'AIbej':function(_0xac3a94,_0x1a5073,_0x46966e,_0x5530c8,_0x5813c6,_0x385864,_0x4d24f1){return _0xac3a94(_0x1a5073,_0x46966e,_0x5530c8,_0x5813c6,_0x385864,_0x4d24f1);},'Dvvlu':_0xe5dee3(0x1c1),'dnnaI':_0xe5dee3(0x1be),'PkZlK':_0xe5dee3(0x198),'WVOeo':function(_0x4a435c,_0x1e95df,_0x488216,_0x44ee6d){return _0x4a435c(_0x1e95df,_0x488216,_0x44ee6d);},'BxSJt':function(_0x3e64e9,_0x6f1c85,_0x2b335a){return _0x3e64e9(_0x6f1c85,_0x2b335a);},'xUgEL':function(_0x401c76,_0x481833,_0x354b8c){return _0x401c76(_0x481833,_0x354b8c);},'MINgX':'Grid\x20stoppped.','nGwQu':function(_0x11ffa3,_0x2c6531){return _0x11ffa3===_0x2c6531;},'NOXTV':_0xe5dee3(0x190),'XIfdV':function(_0x5bc5df,_0x25e5f4,_0x5858ef,_0x11d6b9,_0x32b184,_0x1f1389,_0x1fe9a6){return _0x5bc5df(_0x25e5f4,_0x5858ef,_0x11d6b9,_0x32b184,_0x1f1389,_0x1fe9a6);},'DPrCL':_0xe5dee3(0x18b),'ziUCd':function(_0x189cd6,_0x5c5b77){return _0x189cd6===_0x5c5b77;},'pMAuO':_0xe5dee3(0x1ac),'dzzZp':function(_0x36555e,_0x104ec4,_0x2c36d1,_0xe2efe5,_0x155692,_0x3cecd3,_0x23313b){return _0x36555e(_0x104ec4,_0x2c36d1,_0xe2efe5,_0x155692,_0x3cecd3,_0x23313b);},'LHOkb':_0xe5dee3(0x17f)};let _0x5b22f7;try{!_0x4fff68[_0xe5dee3(0x1b5)]&&(logger[_0xe5dee3(0x170)](_0x33051e[_0xe5dee3(0x1b9)]),process[_0xe5dee3(0x16f)](0x1));!fs[_0xe5dee3(0x193)](_0x33051e['XWIOT'](getCredentialsPath))&&(logger[_0xe5dee3(0x170)](_0x33051e[_0xe5dee3(0x188)]),await _0x33051e['OAfQW'](sendInstrumentationEvent,_0x4fff68,_0x33051e['vVvIY'],messageTypes['ERROR'],_0x33051e[_0xe5dee3(0x1b3)],null,_0x4fff68),process['exit'](0x1));logger[_0xe5dee3(0x197)](_0xe5dee3(0x1c0)+_0x4fff68[_0xe5dee3(0x1b5)]),await _0x33051e[_0xe5dee3(0x1a5)](sendInstrumentationEvent,_0x4fff68,_0x33051e['vVvIY'],messageTypes[_0xe5dee3(0x1cf)],null,null,_0x4fff68);const _0x15ccd0=JSON[_0xe5dee3(0x1b7)](fs[_0xe5dee3(0x177)](_0x33051e['XWIOT'](getCredentialsPath)));global_registry[_0xe5dee3(0x1a3)]=_0x15ccd0['Browserstack'][_0xe5dee3(0x1a9)],global_registry[_0xe5dee3(0x1bc)]=_0x15ccd0[_0xe5dee3(0x1a8)][_0xe5dee3(0x1ab)];const _0x4232fc=WS_ENDPOINT[_0xe5dee3(0x18a)](_0x33051e[_0xe5dee3(0x1c4)],_0x15ccd0[_0xe5dee3(0x1a8)]['username'])[_0xe5dee3(0x18a)](_0x33051e[_0xe5dee3(0x1c3)],_0x15ccd0['Browserstack'][_0xe5dee3(0x1ab)]),_0x297063={};_0x297063[_0xe5dee3(0x16d)]=ws,_0x297063[_0xe5dee3(0x183)]=0x36ee80,_0x5b22f7=new ReconnectingWebSocket(_0x4232fc,[],_0x297063),logger[_0xe5dee3(0x199)](_0x33051e['PkZlK']),webSocketUtils[_0xe5dee3(0x1c8)](_0x5b22f7,_0x4fff68[_0xe5dee3(0x186)],_0x4fff68[_0xe5dee3(0x1ab)]);const [_0x648b11,_0x400816]=await _0x33051e[_0xe5dee3(0x1cd)](getGridDetails,_0x15ccd0['Browserstack']['username'],_0x15ccd0[_0xe5dee3(0x1a8)][_0xe5dee3(0x1ab)],_0x4fff68['gridId']);if(_0x400816){const _0x2debaa=_0x400816[_0xe5dee3(0x197)];global_registry[_0xe5dee3(0x1b6)]=_0x2debaa[_0xe5dee3(0x1b6)],global_registry[_0xe5dee3(0x1b0)]=_0x2debaa[_0xe5dee3(0x1a2)],global_registry[_0xe5dee3(0x168)]=_0x2debaa['clusterName'];const _0xa05e27=await _0x33051e[_0xe5dee3(0x1a5)](getCloudProviderObject,_0x2debaa[_0xe5dee3(0x1b6)],_0x2debaa[_0xe5dee3(0x168)],_0x2debaa[_0xe5dee3(0x16c)],_0x5b22f7,webSocketUtils,_0x4fff68),[_0x570771,_0x5c42b2,_0x29e1c2,_0x167a88,_0x38842c,_0x3acea7]=await _0x33051e[_0xe5dee3(0x189)](createK8sClient,_0xa05e27,_0x4fff68[_0xe5dee3(0x18e)]);await _0x33051e[_0xe5dee3(0x18c)](scaleDownHubDeployment,_0x5c42b2,_0x2debaa['name']),logger[_0xe5dee3(0x197)](_0x33051e['MINgX']),process[_0xe5dee3(0x16f)](0x0);}_0x33051e[_0xe5dee3(0x1c5)](_0x648b11['statusCode'],0x191)&&(logger[_0xe5dee3(0x170)](_0x33051e[_0xe5dee3(0x173)]),await _0x33051e[_0xe5dee3(0x184)](sendInstrumentationEvent,_0x4fff68,_0x33051e['vVvIY'],messageTypes[_0xe5dee3(0x1ad)],_0x33051e[_0xe5dee3(0x1c6)],null,_0x4fff68),process['exit'](0x1)),_0x33051e[_0xe5dee3(0x1bf)](_0x648b11[_0xe5dee3(0x196)],0x190)&&(logger[_0xe5dee3(0x170)](JSON[_0xe5dee3(0x1b7)](_0x648b11[_0xe5dee3(0x1cc)])[_0xe5dee3(0x17d)]),await _0x33051e[_0xe5dee3(0x1a5)](sendInstrumentationEvent,_0x4fff68,_0x33051e['vVvIY'],messageTypes[_0xe5dee3(0x1ad)],_0x33051e[_0xe5dee3(0x17a)],null,_0x4fff68),process[_0xe5dee3(0x16f)](0x1)),logger[_0xe5dee3(0x170)](_0xe5dee3(0x19f)+JSON[_0xe5dee3(0x179)](_0x648b11)),await _0x33051e[_0xe5dee3(0x17c)](sendInstrumentationEvent,_0x4fff68,_0x33051e[_0xe5dee3(0x1b1)],messageTypes[_0xe5dee3(0x1ad)],_0x33051e[_0xe5dee3(0x18d)],_0x648b11,_0x4fff68),process[_0xe5dee3(0x16f)](0x1);}catch(_0x39bc39){const _0x1d8ba1=_0xe5dee3(0x1ba)+_0x39bc39+'\x20\x0a'+JSON['stringify'](_0x39bc39[_0xe5dee3(0x1ce)])+'\x20';logger[_0xe5dee3(0x170)](_0x1d8ba1),process[_0xe5dee3(0x16f)](0x1);}};
1
+ function a21_0x4956(){const _0x442dea=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','handler','bstackAccesskey','name','WebSocket','grid','../../utils/gridComponents','LQIZs','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','JSCJR','Ontya','usage','username','../../cloudproviders/utils','stringify','stop-grid-called','clusterName','unauthorised','type','eTRtX','fWrst','../../utils/instrumentationUtils','42rEdgaj','QHoGh','qnYlA','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','description','desc','nQJzh','hVsXW','server-error','30WNiPqX','epilogue','110092woDgkO','region','password','MzCLt','HGmgJ','connectionTimeout','MpeZg','cdEiH','bCdLv','info','uWkRX','user','addListeners','cloudProvider','builder','skip-tls-cert-verify','../../config/logger','49195wmImrE','<PasswordPlaceholder>','existsSync','IwEbL','statusCode','Browserstack','Grid\x20stoppped.','parse','grid-id','IYUwQ','message','invalid-grid-id','LAQUi','1405425qoEfxh','init-not-called','2154190GgFfqr','ERROR','readFileSync','replace','options','OsByT','error','INFO','SmSxI','5157180jRUYgI','Adding\x20Websocket\x20listeners','3442950gPfxQL','<UsernamePlaceholder>','reconnecting-websocket','gridId','clusterRegion','string','exit','Stopping\x20grid\x20','22bxKZgt','6qssjNn','default','help','bstackUsername','command','3354912gHRVYv','Stop\x20a\x20running\x20Automation\x20grid.','argv','../../utils/utilityMethods'];a21_0x4956=function(){return _0x442dea;};return a21_0x4956();}const a21_0x5829d4=a21_0x1be8;(function(_0x3c242e,_0xb44b19){const _0x38c8a5=a21_0x1be8,_0x23436e=_0x3c242e();while(!![]){try{const _0x1a6d55=parseInt(_0x38c8a5(0x1b6))/0x1*(-parseInt(_0x38c8a5(0x1a3))/0x2)+-parseInt(_0x38c8a5(0x19a))/0x3*(-parseInt(_0x38c8a5(0x1a5))/0x4)+-parseInt(_0x38c8a5(0x165))/0x5+parseInt(_0x38c8a5(0x179))/0x6*(parseInt(_0x38c8a5(0x163))/0x7)+-parseInt(_0x38c8a5(0x17e))/0x8+parseInt(_0x38c8a5(0x170))/0x9+-parseInt(_0x38c8a5(0x16e))/0xa*(-parseInt(_0x38c8a5(0x178))/0xb);if(_0x1a6d55===_0xb44b19)break;else _0x23436e['push'](_0x23436e['shift']());}catch(_0x2c2b06){_0x23436e['push'](_0x23436e['shift']());}}}(a21_0x4956,0x64934));function a21_0x1be8(_0xee5421,_0x59e0fb){const _0x4956c7=a21_0x4956();return a21_0x1be8=function(_0x1be844,_0x355b0a){_0x1be844=_0x1be844-0x158;let _0x56bceb=_0x4956c7[_0x1be844];return _0x56bceb;},a21_0x1be8(_0xee5421,_0x59e0fb);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5829d4(0x172)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x5829d4(0x1b5)),{getCredentialsPath,getGridDetails}=require(a21_0x5829d4(0x181)),{scaleDownHubDeployment}=require(a21_0x5829d4(0x18a)),{sendInstrumentationEvent}=require(a21_0x5829d4(0x199)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x5829d4(0x191));exports[a21_0x5829d4(0x17d)]=a21_0x5829d4(0x189),exports[a21_0x5829d4(0x19f)]=a21_0x5829d4(0x17f),exports[a21_0x5829d4(0x1b3)]=function(_0x2fd064){const _0x241f4a=a21_0x5829d4,_0x4c454d={};_0x4c454d['IYUwQ']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x4c454d[_0x241f4a(0x198)]=_0x241f4a(0x175),_0x4c454d[_0x241f4a(0x1a9)]='Skip\x20insecure\x20cert\x20verification.',_0x4c454d['QHoGh']='boolean',_0x4c454d[_0x241f4a(0x1a1)]='help';const _0x21a652=_0x4c454d,_0x22bb46={};_0x22bb46[_0x241f4a(0x19e)]=_0x21a652[_0x241f4a(0x15f)],_0x22bb46[_0x241f4a(0x196)]=_0x21a652['fWrst'];const _0x209816={};_0x209816[_0x241f4a(0x19e)]=_0x21a652['HGmgJ'],_0x209816['type']=_0x21a652[_0x241f4a(0x19b)],_0x209816[_0x241f4a(0x17a)]=![];const _0x4665ad={};return _0x4665ad[_0x241f4a(0x15e)]=_0x22bb46,_0x4665ad[_0x241f4a(0x1b4)]=_0x209816,_0x2fd064[_0x241f4a(0x18f)](HELP_HEADER_MESSAGE['stop'])[_0x241f4a(0x1a4)](HELP_FOOTER_MESSAGE)[_0x241f4a(0x169)](_0x4665ad)[_0x241f4a(0x17b)](_0x21a652['hVsXW'])[_0x241f4a(0x180)];},exports[a21_0x5829d4(0x185)]=async function(_0x281d69){const _0x36db7a=a21_0x5829d4,_0x1d6bfc={'LAQUi':_0x36db7a(0x184),'IwEbL':function(_0xb7ef92){return _0xb7ef92();},'bCdLv':_0x36db7a(0x183),'JSCJR':function(_0x5ef8c1,_0x358eac,_0x252706,_0x195d9c,_0x2ab683,_0x1d5f4e,_0x5c27d0){return _0x5ef8c1(_0x358eac,_0x252706,_0x195d9c,_0x2ab683,_0x1d5f4e,_0x5c27d0);},'nQJzh':_0x36db7a(0x193),'LQIZs':_0x36db7a(0x164),'wAgrO':_0x36db7a(0x171),'bUAqO':_0x36db7a(0x1b7),'Ontya':_0x36db7a(0x16f),'UkFHb':function(_0xb8d3f7,_0x45c776,_0x5ca676,_0x1d3027){return _0xb8d3f7(_0x45c776,_0x5ca676,_0x1d3027);},'qnYlA':function(_0x23b356,_0x8997a8,_0x2d3bae,_0x1ca8c4,_0x166a9c,_0x41f98c,_0x6547fe){return _0x23b356(_0x8997a8,_0x2d3bae,_0x1ca8c4,_0x166a9c,_0x41f98c,_0x6547fe);},'eTRtX':function(_0x3ae4e0,_0x576b22,_0x4a04c7){return _0x3ae4e0(_0x576b22,_0x4a04c7);},'MzCLt':_0x36db7a(0x15c),'uWkRX':function(_0x3fd400,_0x3e10dc){return _0x3fd400===_0x3e10dc;},'MpeZg':_0x36db7a(0x182),'cdEiH':function(_0x4f60e0,_0xe7d218,_0x5311f6,_0x249837,_0x525eb6,_0x312a74,_0x509737){return _0x4f60e0(_0xe7d218,_0x5311f6,_0x249837,_0x525eb6,_0x312a74,_0x509737);},'gvUbY':_0x36db7a(0x195),'OsByT':function(_0x24d5ad,_0x5ad33b){return _0x24d5ad===_0x5ad33b;},'xzkSH':_0x36db7a(0x161),'SmSxI':_0x36db7a(0x1a2)};let _0x27ba7e;try{!_0x281d69[_0x36db7a(0x173)]&&(logger[_0x36db7a(0x16b)](_0x1d6bfc[_0x36db7a(0x162)]),process[_0x36db7a(0x176)](0x1));!fs[_0x36db7a(0x158)](_0x1d6bfc[_0x36db7a(0x159)](getCredentialsPath))&&(logger['error'](_0x1d6bfc[_0x36db7a(0x1ad)]),await _0x1d6bfc[_0x36db7a(0x18d)](sendInstrumentationEvent,_0x281d69,_0x1d6bfc[_0x36db7a(0x1a0)],messageTypes[_0x36db7a(0x166)],_0x1d6bfc[_0x36db7a(0x18b)],null,_0x281d69),process['exit'](0x1));logger[_0x36db7a(0x1ae)](_0x36db7a(0x177)+_0x281d69[_0x36db7a(0x173)]),await _0x1d6bfc[_0x36db7a(0x18d)](sendInstrumentationEvent,_0x281d69,_0x1d6bfc[_0x36db7a(0x1a0)],messageTypes[_0x36db7a(0x16c)],null,null,_0x281d69);const _0x263311=JSON[_0x36db7a(0x15d)](fs[_0x36db7a(0x167)](_0x1d6bfc['IwEbL'](getCredentialsPath)));global_registry[_0x36db7a(0x17c)]=_0x263311['Browserstack'][_0x36db7a(0x190)],global_registry[_0x36db7a(0x186)]=_0x263311[_0x36db7a(0x15b)]['password'];const _0x412b79=WS_ENDPOINT[_0x36db7a(0x168)](_0x1d6bfc['wAgrO'],_0x263311['Browserstack'][_0x36db7a(0x190)])[_0x36db7a(0x168)](_0x1d6bfc['bUAqO'],_0x263311[_0x36db7a(0x15b)][_0x36db7a(0x1a7)]),_0x4c5948={};_0x4c5948[_0x36db7a(0x188)]=ws,_0x4c5948[_0x36db7a(0x1aa)]=0x36ee80,_0x27ba7e=new ReconnectingWebSocket(_0x412b79,[],_0x4c5948),logger['debug'](_0x1d6bfc[_0x36db7a(0x18e)]),webSocketUtils[_0x36db7a(0x1b1)](_0x27ba7e,_0x281d69[_0x36db7a(0x1b0)],_0x281d69[_0x36db7a(0x1a7)]);const [_0x34e46c,_0x526d4c]=await _0x1d6bfc['UkFHb'](getGridDetails,_0x263311[_0x36db7a(0x15b)][_0x36db7a(0x190)],_0x263311[_0x36db7a(0x15b)]['password'],_0x281d69['gridId']);if(_0x526d4c){const _0x15e8c3=_0x526d4c['info'];global_registry[_0x36db7a(0x1b2)]=_0x15e8c3[_0x36db7a(0x1b2)],global_registry[_0x36db7a(0x174)]=_0x15e8c3[_0x36db7a(0x1a6)],global_registry[_0x36db7a(0x194)]=_0x15e8c3[_0x36db7a(0x194)];const _0x4eacfd=await _0x1d6bfc[_0x36db7a(0x19c)](getCloudProviderObject,_0x15e8c3[_0x36db7a(0x1b2)],_0x15e8c3['clusterName'],_0x15e8c3[_0x36db7a(0x187)],_0x27ba7e,webSocketUtils,_0x281d69),[_0x2b7d19,_0x4a66c0,_0x448dc3,_0x3a616d,_0x444163,_0x34423d]=await _0x1d6bfc[_0x36db7a(0x197)](createK8sClient,_0x4eacfd,_0x281d69['skipTlsCertVerify']);await _0x1d6bfc[_0x36db7a(0x197)](scaleDownHubDeployment,_0x4a66c0,_0x15e8c3[_0x36db7a(0x187)]),logger['info'](_0x1d6bfc[_0x36db7a(0x1a8)]),process[_0x36db7a(0x176)](0x0);}_0x1d6bfc[_0x36db7a(0x1af)](_0x34e46c['statusCode'],0x191)&&(logger[_0x36db7a(0x16b)](_0x1d6bfc[_0x36db7a(0x1ab)]),await _0x1d6bfc[_0x36db7a(0x1ac)](sendInstrumentationEvent,_0x281d69,_0x1d6bfc[_0x36db7a(0x1a0)],messageTypes['ERROR'],_0x1d6bfc['gvUbY'],null,_0x281d69),process[_0x36db7a(0x176)](0x1)),_0x1d6bfc[_0x36db7a(0x16a)](_0x34e46c[_0x36db7a(0x15a)],0x190)&&(logger[_0x36db7a(0x16b)](JSON[_0x36db7a(0x15d)](_0x34e46c['body'])[_0x36db7a(0x160)]),await _0x1d6bfc[_0x36db7a(0x19c)](sendInstrumentationEvent,_0x281d69,_0x1d6bfc[_0x36db7a(0x1a0)],messageTypes['ERROR'],_0x1d6bfc['xzkSH'],null,_0x281d69),process[_0x36db7a(0x176)](0x1)),logger[_0x36db7a(0x16b)](_0x36db7a(0x19d)+JSON[_0x36db7a(0x192)](_0x34e46c)),await _0x1d6bfc[_0x36db7a(0x19c)](sendInstrumentationEvent,_0x281d69,_0x1d6bfc[_0x36db7a(0x1a0)],messageTypes[_0x36db7a(0x166)],_0x1d6bfc[_0x36db7a(0x16d)],_0x34e46c,_0x281d69),process[_0x36db7a(0x176)](0x1);}catch(_0x231273){const _0x23167b=_0x36db7a(0x18c)+_0x231273+'\x20\x0a'+JSON[_0x36db7a(0x192)](_0x231273['stack'])+'\x20';logger[_0x36db7a(0x16b)](_0x23167b),process[_0x36db7a(0x176)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x59ae63=a22_0x5854;(function(_0x51e1fa,_0x30cf7e){const _0x497c28=a22_0x5854,_0x14a191=_0x51e1fa();while(!![]){try{const _0x5cb3fe=-parseInt(_0x497c28(0x1bb))/0x1+parseInt(_0x497c28(0x198))/0x2+-parseInt(_0x497c28(0x1df))/0x3+parseInt(_0x497c28(0x1d6))/0x4*(-parseInt(_0x497c28(0x19c))/0x5)+-parseInt(_0x497c28(0x1ba))/0x6*(-parseInt(_0x497c28(0x1a4))/0x7)+-parseInt(_0x497c28(0x1e8))/0x8*(-parseInt(_0x497c28(0x1d1))/0x9)+-parseInt(_0x497c28(0x1bd))/0xa;if(_0x5cb3fe===_0x30cf7e)break;else _0x14a191['push'](_0x14a191['shift']());}catch(_0x105e13){_0x14a191['push'](_0x14a191['shift']());}}}(a22_0x4665,0x492ef),require(a22_0x59ae63(0x1e5))[a22_0x59ae63(0x1a1)]());let gridURL=a22_0x59ae63(0x1ca),bsApiUrl=a22_0x59ae63(0x17f),agApiUrl=a22_0x59ae63(0x17d);const _env=(process[a22_0x59ae63(0x19a)][a22_0x59ae63(0x1cb)]||a22_0x59ae63(0x187))[a22_0x59ae63(0x1b3)]();if(_env===a22_0x59ae63(0x1e7)||_env==='stag')gridURL=a22_0x59ae63(0x1e3),bsApiUrl=a22_0x59ae63(0x1c0),agApiUrl=a22_0x59ae63(0x191);else(_env==='preprod'||_env===a22_0x59ae63(0x18c))&&(gridURL=a22_0x59ae63(0x1a2),bsApiUrl=a22_0x59ae63(0x18a),agApiUrl=a22_0x59ae63(0x1da));exports[a22_0x59ae63(0x1be)]=process[a22_0x59ae63(0x19a)][a22_0x59ae63(0x1be)]||gridURL,exports[a22_0x59ae63(0x1c2)]=process[a22_0x59ae63(0x19a)]['BS_API_URL']||bsApiUrl,exports[a22_0x59ae63(0x1dd)]=process[a22_0x59ae63(0x19a)][a22_0x59ae63(0x1dd)]||agApiUrl,exports[a22_0x59ae63(0x19b)]=a22_0x59ae63(0x195)+this[a22_0x59ae63(0x1dd)]+a22_0x59ae63(0x1c8),exports[a22_0x59ae63(0x1b0)]=a22_0x59ae63(0x19d),exports['IAM_USER_NAME']=a22_0x59ae63(0x1d7),exports[a22_0x59ae63(0x197)]='high-scale-grid',exports['AWS']='aws',exports[a22_0x59ae63(0x190)]=a22_0x59ae63(0x188),exports[a22_0x59ae63(0x189)]=a22_0x59ae63(0x1c3),exports[a22_0x59ae63(0x1b7)]=a22_0x59ae63(0x1cc),exports[a22_0x59ae63(0x1cd)]=a22_0x59ae63(0x183),exports['AZURE']=a22_0x59ae63(0x1de),exports[a22_0x59ae63(0x185)]=a22_0x59ae63(0x1ad),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x59ae63(0x1af)],this[a22_0x59ae63(0x17e)],this[a22_0x59ae63(0x185)]];const a22_0x2466a6={};a22_0x2466a6[a22_0x59ae63(0x182)]=a22_0x59ae63(0x193),a22_0x2466a6[a22_0x59ae63(0x1e0)]=a22_0x59ae63(0x17c);function a22_0x4665(){const _0x33ac82=['CLUSTER_AUTOSCALER_STACK_NAME','api-preprod.bsstag.com','resourceInfo','pre-prod','SUCCESS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','us-east-1','CLUSTER_DEP_STACK_NAME','grid-api-devhst.bsstag.com','[REDACTED]','browserstack:managedBy','ERROR','wss://','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','DEFAULT_GRID_NAME','554458ZDZNrE','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','env','WS_ENDPOINT','540835QvSztR','credentials','cliRunFinished','LINK_MESSAGE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','config','grid-preprod.bsstag.com','DEFAULT_CLUSTER_DETAILS','158011xiDtFg','CLUSTER','global_registry','messageTypes','cliRunStarted','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid','forEach','gcp','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AWS','CP_CONFIG_FILE','HELP_HEADER_MESSAGE','high-scale-grid-cluster','toLowerCase','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','UNKNOWN','init','CLUSTER_HUB_HA_STACK_NAME','WARNING','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','12ACfRhw','47417OrajsW','WS_EVENTS','2103240HOGWBz','DASHBOARD_ENDPOINT','REDACTED','api-devhst.bsstag.com','GRID_URL','BS_API_URL','BSTACK-ATS-CLUSTER-AUTOSCALER','log','COMMON_HST_TAGS','LOG','BrowserStack-Automate-TurboScale','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','grid.browserstack.com','BROWSERSTACK_ENV','BSTACK-ATS-CLUSTER-HUB-HA','TURBOSCALE_DEPLOYMENT','start','list','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','5350635HyVtpq','grid-profile','browserstack:service','HELP_FOOTER_MESSAGE','split','8Hsstbp','BrowserStackIAMUser','configure','pre-check','grid-api-preprod.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gridUrl','AG_API_URL','azure','429168sBgnul','Value','connect','CLI_RUN_FINISHED','grid-devhst.bsstag.com','root','dotenv','INFO','staging','8Kovexa','delete','create','stop','unknown','BrowserStack','grid-api.browserstack.com','AZURE','api.browserstack.com','CLI_ARGS_REGEX','RESOURCES','Key','browserstack-turboscale-grid','HST_CLUSTER_TAGS','GCP','REGION','prod','BSTACK-ATS-CLUSTER'];a22_0x4665=function(){return _0x33ac82;};return a22_0x4665();}const a22_0x319f3c={};a22_0x319f3c[a22_0x59ae63(0x182)]=a22_0x59ae63(0x1d3),a22_0x319f3c[a22_0x59ae63(0x1e0)]=a22_0x59ae63(0x1c7);const common_hst_tags_list=[a22_0x2466a6,a22_0x319f3c];if(process[a22_0x59ae63(0x19a)][a22_0x59ae63(0x1a9)]){const parsedTags=process['env'][a22_0x59ae63(0x1a9)][a22_0x59ae63(0x1d5)](',');parsedTags[a22_0x59ae63(0x1ac)](_0x58e850=>{const _0x1775fe=_0x58e850['split'](':'),_0x13f6a0={};_0x13f6a0['Key']=_0x1775fe[0x0],_0x13f6a0['Value']=_0x1775fe[0x1],common_hst_tags_list['push'](_0x13f6a0);});}exports[a22_0x59ae63(0x1c5)]=common_hst_tags_list;const a22_0x2fb455={};a22_0x2fb455[a22_0x59ae63(0x193)]=a22_0x59ae63(0x17c),a22_0x2fb455['browserstack:service']=a22_0x59ae63(0x1c7),exports[a22_0x59ae63(0x184)]=a22_0x2fb455,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x4f6d51={};a22_0x4f6d51[a22_0x59ae63(0x1c6)]=a22_0x59ae63(0x1c4),a22_0x4f6d51[a22_0x59ae63(0x181)]=a22_0x59ae63(0x18b),a22_0x4f6d51[a22_0x59ae63(0x1c1)]=a22_0x59ae63(0x1dc),a22_0x4f6d51['CLI_RUN_STARTED']=a22_0x59ae63(0x1a8),a22_0x4f6d51[a22_0x59ae63(0x1e2)]=a22_0x59ae63(0x19e),exports[a22_0x59ae63(0x1bc)]=a22_0x4f6d51,exports[a22_0x59ae63(0x1a6)]={},exports['LINK_MESSAGE']=a22_0x59ae63(0x18e);const a22_0x3955b4={};function a22_0x5854(_0x271948,_0x3c3a18){const _0x46653f=a22_0x4665();return a22_0x5854=function(_0x585483,_0x1acb13){_0x585483=_0x585483-0x17c;let _0x2e0224=_0x46653f[_0x585483];return _0x2e0224;},a22_0x5854(_0x271948,_0x3c3a18);}a22_0x3955b4[a22_0x59ae63(0x1e4)]=a22_0x59ae63(0x1b9)+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1b6)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1d8)]=a22_0x59ae63(0x1db)+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1ea)]=a22_0x59ae63(0x1d0)+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1cf)]={},a22_0x3955b4[a22_0x59ae63(0x1e9)]=a22_0x59ae63(0x199)+this['LINK_MESSAGE'],a22_0x3955b4[a22_0x59ae63(0x1e1)]=a22_0x59ae63(0x196)+this['LINK_MESSAGE'],a22_0x3955b4[a22_0x59ae63(0x1ce)]=a22_0x59ae63(0x1aa)+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1eb)]=a22_0x59ae63(0x1a0)+this[a22_0x59ae63(0x19f)],a22_0x3955b4['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1cf)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1cf)][a22_0x59ae63(0x1ab)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x59ae63(0x19f)],a22_0x3955b4[a22_0x59ae63(0x1cf)]['gridProfile']=a22_0x59ae63(0x1ae)+this['LINK_MESSAGE'],exports[a22_0x59ae63(0x1b1)]=a22_0x3955b4,exports[a22_0x59ae63(0x1d4)]=a22_0x59ae63(0x1b4);const a22_0x3a7b83={};a22_0x3a7b83[a22_0x59ae63(0x18d)]='success',a22_0x3a7b83[a22_0x59ae63(0x194)]='error',a22_0x3a7b83[a22_0x59ae63(0x1e6)]='info',a22_0x3a7b83[a22_0x59ae63(0x1b8)]='warning',a22_0x3a7b83[a22_0x59ae63(0x1b5)]=a22_0x59ae63(0x1ec),a22_0x3a7b83['NULL']=null,exports[a22_0x59ae63(0x1a7)]=a22_0x3a7b83,exports[a22_0x59ae63(0x180)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x59ae63(0x1bf)]=a22_0x59ae63(0x192);const a22_0x545ce7={};a22_0x545ce7[a22_0x59ae63(0x1d2)]=a22_0x59ae63(0x1c9);const a22_0x51034a={};a22_0x51034a[a22_0x59ae63(0x1d9)]=a22_0x545ce7,exports['MessageDescription']=a22_0x51034a,exports['TRIAL_GRID_URL']='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x48409c={};a22_0x48409c[a22_0x59ae63(0x1a5)]=a22_0x59ae63(0x1b2),a22_0x48409c['CLOUD_PROVIDER']='aws',a22_0x48409c[a22_0x59ae63(0x186)]=a22_0x59ae63(0x18f),exports[a22_0x59ae63(0x1a3)]=a22_0x48409c;
1
+ const a22_0x5469e3=a22_0x1579;(function(_0x410184,_0x23001d){const _0xb9c557=a22_0x1579,_0x1f86be=_0x410184();while(!![]){try{const _0x2b4f64=-parseInt(_0xb9c557(0x17f))/0x1*(parseInt(_0xb9c557(0x1af))/0x2)+-parseInt(_0xb9c557(0x19f))/0x3*(-parseInt(_0xb9c557(0x16f))/0x4)+-parseInt(_0xb9c557(0x17c))/0x5+-parseInt(_0xb9c557(0x1b7))/0x6*(parseInt(_0xb9c557(0x1a2))/0x7)+parseInt(_0xb9c557(0x172))/0x8+parseInt(_0xb9c557(0x15b))/0x9*(parseInt(_0xb9c557(0x1a0))/0xa)+parseInt(_0xb9c557(0x168))/0xb;if(_0x2b4f64===_0x23001d)break;else _0x1f86be['push'](_0x1f86be['shift']());}catch(_0x1b2cfa){_0x1f86be['push'](_0x1f86be['shift']());}}}(a22_0x54b7,0x7a3b1),require(a22_0x5469e3(0x179))['config']());let gridURL=a22_0x5469e3(0x189),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x5469e3(0x150);const _env=(process[a22_0x5469e3(0x163)][a22_0x5469e3(0x188)]||a22_0x5469e3(0x167))[a22_0x5469e3(0x152)]();if(_env===a22_0x5469e3(0x19d)||_env===a22_0x5469e3(0x1b9))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x5469e3(0x18c),agApiUrl=a22_0x5469e3(0x15d);else(_env===a22_0x5469e3(0x165)||_env===a22_0x5469e3(0x1ab))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x5469e3(0x161),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process[a22_0x5469e3(0x163)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x5469e3(0x199)]=process[a22_0x5469e3(0x163)][a22_0x5469e3(0x199)]||bsApiUrl,exports[a22_0x5469e3(0x153)]=process['env']['AG_API_URL']||agApiUrl,exports[a22_0x5469e3(0x190)]=a22_0x5469e3(0x159)+this[a22_0x5469e3(0x153)]+a22_0x5469e3(0x166),exports[a22_0x5469e3(0x17d)]=a22_0x5469e3(0x17b),exports[a22_0x5469e3(0x198)]=a22_0x5469e3(0x16a),exports[a22_0x5469e3(0x1b8)]='high-scale-grid',exports[a22_0x5469e3(0x175)]=a22_0x5469e3(0x1a1),exports[a22_0x5469e3(0x18b)]='BSTACK-ATS-CLUSTER',exports[a22_0x5469e3(0x15e)]=a22_0x5469e3(0x192),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x5469e3(0x187),exports[a22_0x5469e3(0x180)]=a22_0x5469e3(0x193),exports[a22_0x5469e3(0x1a4)]=a22_0x5469e3(0x162),exports[a22_0x5469e3(0x18e)]='gcp',exports[a22_0x5469e3(0x170)]=[this[a22_0x5469e3(0x175)],this[a22_0x5469e3(0x1a4)],this[a22_0x5469e3(0x18e)]];const a22_0x13a917={};a22_0x13a917[a22_0x5469e3(0x183)]=a22_0x5469e3(0x19a),a22_0x13a917[a22_0x5469e3(0x151)]=a22_0x5469e3(0x16b);const a22_0x532b31={};a22_0x532b31['Key']=a22_0x5469e3(0x15f),a22_0x532b31['Value']='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x13a917,a22_0x532b31];if(process[a22_0x5469e3(0x163)][a22_0x5469e3(0x18a)]){const parsedTags=process[a22_0x5469e3(0x163)][a22_0x5469e3(0x18a)][a22_0x5469e3(0x1a8)](',');parsedTags['forEach'](_0x28f007=>{const _0x39a49d=a22_0x5469e3,_0xe4eebc=_0x28f007[_0x39a49d(0x1a8)](':'),_0x218ce2={};_0x218ce2[_0x39a49d(0x183)]=_0xe4eebc[0x0],_0x218ce2['Value']=_0xe4eebc[0x1],common_hst_tags_list[_0x39a49d(0x18f)](_0x218ce2);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x47279b={};a22_0x47279b[a22_0x5469e3(0x19a)]=a22_0x5469e3(0x16b),a22_0x47279b[a22_0x5469e3(0x15f)]=a22_0x5469e3(0x186),exports[a22_0x5469e3(0x1bb)]=a22_0x47279b,exports[a22_0x5469e3(0x169)]=[this['AWS']];const a22_0x303206={};function a22_0x1579(_0x102fb7,_0x14c1f5){const _0x54b79f=a22_0x54b7();return a22_0x1579=function(_0x1579fd,_0x340384){_0x1579fd=_0x1579fd-0x150;let _0x157d6d=_0x54b79f[_0x1579fd];return _0x157d6d;},a22_0x1579(_0x102fb7,_0x14c1f5);}a22_0x303206['LOG']=a22_0x5469e3(0x173),a22_0x303206[a22_0x5469e3(0x1a7)]=a22_0x5469e3(0x155),a22_0x303206['GRID_URL']='gridUrl',a22_0x303206['CLI_RUN_STARTED']=a22_0x5469e3(0x195),a22_0x303206['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x5469e3(0x1ac)]=a22_0x303206,exports[a22_0x5469e3(0x156)]={},exports[a22_0x5469e3(0x15c)]=a22_0x5469e3(0x16d);const a22_0x2ec170={};a22_0x2ec170['root']=a22_0x5469e3(0x1b1)+this[a22_0x5469e3(0x15c)],a22_0x2ec170[a22_0x5469e3(0x15a)]=a22_0x5469e3(0x16c)+this[a22_0x5469e3(0x15c)],a22_0x2ec170['configure']=a22_0x5469e3(0x171)+this[a22_0x5469e3(0x15c)],a22_0x2ec170[a22_0x5469e3(0x177)]=a22_0x5469e3(0x1a5)+this['LINK_MESSAGE'],a22_0x2ec170[a22_0x5469e3(0x160)]={},a22_0x2ec170[a22_0x5469e3(0x19c)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x5469e3(0x15c)],a22_0x2ec170[a22_0x5469e3(0x1ad)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a22_0x2ec170[a22_0x5469e3(0x16e)]=a22_0x5469e3(0x182)+this['LINK_MESSAGE'],a22_0x2ec170[a22_0x5469e3(0x18d)]=a22_0x5469e3(0x196)+this[a22_0x5469e3(0x15c)],a22_0x2ec170['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x5469e3(0x15c)],a22_0x2ec170[a22_0x5469e3(0x160)][a22_0x5469e3(0x191)]=a22_0x5469e3(0x174)+this[a22_0x5469e3(0x15c)],a22_0x2ec170[a22_0x5469e3(0x160)][a22_0x5469e3(0x17e)]=a22_0x5469e3(0x184)+this[a22_0x5469e3(0x15c)],a22_0x2ec170[a22_0x5469e3(0x160)][a22_0x5469e3(0x194)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x5469e3(0x15c)],exports['HELP_HEADER_MESSAGE']=a22_0x2ec170,exports[a22_0x5469e3(0x1a3)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x2ab00c={};function a22_0x54b7(){const _0x5c7b0b=['CLOUD_PROVIDER','dotenv','REDACTED','credentials','1105565XQrJvm','CP_CONFIG_FILE','grid','1839fRJiEm','TURBOSCALE_DEPLOYMENT','WARNING','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','Key','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','pre-check','BrowserStack-Automate-TurboScale','BSTACK-ATS-CLUSTER-HUB-HA','BROWSERSTACK_ENV','grid.browserstack.com','TURBOSCALE_CUSTOM_TAGS','CLUSTER_DEP_STACK_NAME','api-devhst.bsstag.com','stop','GCP','push','WS_ENDPOINT','root','BSTACK-ATS-CLUSTER-AUTOSCALER','browserstack-turboscale-grid','gridProfile','cliRunStarted','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','UNKNOWN','IAM_USER_NAME','BS_API_URL','browserstack:managedBy','SUCCESS','delete','staging','warning','2253183zsmXYn','81500cCwTsi','aws','6503cbPGUO','HELP_FOOTER_MESSAGE','AZURE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','ERROR','RESOURCES','split','CLI_ARGS_REGEX','RAW_ARGS_REGEX','pre-prod','WS_EVENTS','connect','REGION','520DofHgA','CLUSTER','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','grid-profile','DEFAULT_CLUSTER_DETAILS','us-east-1','info','TRIAL_GRID_URL','4866mEGcyh','DEFAULT_GRID_NAME','stag','messageTypes','HST_CLUSTER_TAGS','grid-api.browserstack.com','Value','toLowerCase','AG_API_URL','success','resourceInfo','global_registry','error','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','wss://','init','117jmtNZn','LINK_MESSAGE','grid-api-devhst.bsstag.com','CLUSTER_AUTOSCALER_STACK_NAME','browserstack:service','list','api-preprod.bsstag.com','azure','env','high-scale-grid-cluster','preprod','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','prod','1172171JyFPoZ','SUPPORTED_CLOUD_PROVIDERS','BrowserStackIAMUser','BrowserStack','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','start','4tAdDcs','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','7918056lIFoVV','log','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','AWS','MessageDescription','create'];a22_0x54b7=function(){return _0x5c7b0b;};return a22_0x54b7();}a22_0x2ab00c[a22_0x5469e3(0x19b)]=a22_0x5469e3(0x154),a22_0x2ab00c[a22_0x5469e3(0x1a6)]=a22_0x5469e3(0x157),a22_0x2ab00c['INFO']=a22_0x5469e3(0x1b5),a22_0x2ab00c[a22_0x5469e3(0x181)]=a22_0x5469e3(0x19e),a22_0x2ab00c[a22_0x5469e3(0x197)]='unknown',a22_0x2ab00c['NULL']=null,exports[a22_0x5469e3(0x1ba)]=a22_0x2ab00c,exports[a22_0x5469e3(0x1a9)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5469e3(0x1aa)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5469e3(0x17a)]='[REDACTED]';const a22_0x49a54c={};a22_0x49a54c[a22_0x5469e3(0x1b2)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0xf7a2ed={};a22_0xf7a2ed[a22_0x5469e3(0x185)]=a22_0x49a54c,exports[a22_0x5469e3(0x176)]=a22_0xf7a2ed,exports[a22_0x5469e3(0x1b6)]=a22_0x5469e3(0x158);const a22_0xde7e8e={};a22_0xde7e8e[a22_0x5469e3(0x1b0)]=a22_0x5469e3(0x164),a22_0xde7e8e[a22_0x5469e3(0x178)]=a22_0x5469e3(0x1a1),a22_0xde7e8e[a22_0x5469e3(0x1ae)]=a22_0x5469e3(0x1b4),exports[a22_0x5469e3(0x1b3)]=a22_0xde7e8e;
@@ -1 +1 @@
1
- function a23_0x575e(_0x4c4bef,_0x5673f7){const _0xc475bd=a23_0xc475();return a23_0x575e=function(_0x575ed6,_0x2e41fe){_0x575ed6=_0x575ed6-0x17d;let _0x2060ef=_0xc475bd[_0x575ed6];return _0x2060ef;},a23_0x575e(_0x4c4bef,_0x5673f7);}const a23_0x93812=a23_0x575e;(function(_0x4c5828,_0x337a27){const _0x549802=a23_0x575e,_0x52c5c5=_0x4c5828();while(!![]){try{const _0x49232a=parseInt(_0x549802(0x188))/0x1+parseInt(_0x549802(0x184))/0x2*(parseInt(_0x549802(0x193))/0x3)+parseInt(_0x549802(0x17f))/0x4+parseInt(_0x549802(0x18d))/0x5+parseInt(_0x549802(0x18e))/0x6*(-parseInt(_0x549802(0x186))/0x7)+-parseInt(_0x549802(0x18c))/0x8+-parseInt(_0x549802(0x180))/0x9;if(_0x49232a===_0x337a27)break;else _0x52c5c5['push'](_0x52c5c5['shift']());}catch(_0x56dc57){_0x52c5c5['push'](_0x52c5c5['shift']());}}}(a23_0xc475,0xa92ac));const winston=require('winston'),fs=require('fs'),path=require(a23_0x93812(0x19c)),logDir=a23_0x93812(0x17e);!fs[a23_0x93812(0x19d)](logDir)&&fs[a23_0x93812(0x183)](logDir);const a23_0x3ce6fc={};a23_0x3ce6fc['format']=a23_0x93812(0x19b);function a23_0xc475(){const _0x481642=['2254922luNnyl','createLogger','147fgtlkT','debug','866563xYVgjW','name','logger','\x20-\x20','4525696lYvvrT','538690ylNhpf','259338xmpWdK','transports','join','combine','colorize','3xnQCqE','fileLogger','message','level','Console','usage.log','console.info','File','YYYY-MM-DD\x20HH:mm:ss','path','existsSync','events.log','format','log','2849516OoXpGw','5830542KGyXSR','printf','timestamp','mkdirSync'];a23_0xc475=function(){return _0x481642;};return a23_0xc475();}const a23_0x585003={};a23_0x585003['level']=!![];const a23_0x10424c={};a23_0x10424c[a23_0x93812(0x189)]=a23_0x93812(0x199),exports[a23_0x93812(0x18a)]=new winston[(a23_0x93812(0x185))]({'format':winston[a23_0x93812(0x17d)][a23_0x93812(0x191)](winston[a23_0x93812(0x17d)]['timestamp'](a23_0x3ce6fc),winston[a23_0x93812(0x17d)][a23_0x93812(0x192)](a23_0x585003),winston[a23_0x93812(0x17d)][a23_0x93812(0x181)](_0x3f3b18=>_0x3f3b18[a23_0x93812(0x182)]+a23_0x93812(0x18b)+_0x3f3b18[a23_0x93812(0x196)]+':\x20'+_0x3f3b18[a23_0x93812(0x195)])),'transports':[new winston[(a23_0x93812(0x18f))][(a23_0x93812(0x197))](a23_0x10424c),new winston[(a23_0x93812(0x18f))][(a23_0x93812(0x19a))]({'filename':path[a23_0x93812(0x190)](logDir,a23_0x93812(0x19e)),'level':a23_0x93812(0x187)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x93812(0x18f))][(a23_0x93812(0x19a))]({'filename':path['join'](logDir,a23_0x93812(0x198)),'level':'debug'})]};exports[a23_0x93812(0x194)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x3140ae=a23_0x1113;(function(_0x20b63a,_0xa60e7e){const _0x488791=a23_0x1113,_0x26a33f=_0x20b63a();while(!![]){try{const _0x3b4187=-parseInt(_0x488791(0x80))/0x1+-parseInt(_0x488791(0x7d))/0x2+-parseInt(_0x488791(0x74))/0x3+-parseInt(_0x488791(0x75))/0x4*(-parseInt(_0x488791(0x67))/0x5)+parseInt(_0x488791(0x6b))/0x6+-parseInt(_0x488791(0x70))/0x7+-parseInt(_0x488791(0x79))/0x8*(-parseInt(_0x488791(0x6f))/0x9);if(_0x3b4187===_0xa60e7e)break;else _0x26a33f['push'](_0x26a33f['shift']());}catch(_0x140b2c){_0x26a33f['push'](_0x26a33f['shift']());}}}(a23_0x5ba4,0xcd8b3));const winston=require(a23_0x3140ae(0x78)),fs=require('fs'),path=require(a23_0x3140ae(0x77)),logDir=a23_0x3140ae(0x6e);function a23_0x1113(_0x41d3f4,_0x445975){const _0x5ba4f0=a23_0x5ba4();return a23_0x1113=function(_0x111305,_0x27a54a){_0x111305=_0x111305-0x64;let _0x1f0166=_0x5ba4f0[_0x111305];return _0x1f0166;},a23_0x1113(_0x41d3f4,_0x445975);}!fs[a23_0x3140ae(0x81)](logDir)&&fs[a23_0x3140ae(0x7b)](logDir);function a23_0x5ba4(){const _0x2458d2=['level','mkdirSync','colorize','2165542bXPwuS','timestamp','usage.log','152000UINjNw','existsSync','File','printf','transports','237995pOoKmq','combine','fileLogger','Console','13008UXBqbo','\x20-\x20','format','log','1649475dAHnbB','11326084otnhwp','events.log','debug','console.info','925257vdOFqZ','136BzJeUO','message','path','winston','104TPlDJm'];a23_0x5ba4=function(){return _0x2458d2;};return a23_0x5ba4();}const a23_0x127e18={};a23_0x127e18['format']='YYYY-MM-DD\x20HH:mm:ss';const a23_0x40e774={};a23_0x40e774[a23_0x3140ae(0x7a)]=!![];const a23_0x4b3181={};a23_0x4b3181['name']=a23_0x3140ae(0x73),exports['logger']=new winston['createLogger']({'format':winston[a23_0x3140ae(0x6d)][a23_0x3140ae(0x68)](winston['format']['timestamp'](a23_0x127e18),winston['format'][a23_0x3140ae(0x7c)](a23_0x40e774),winston['format'][a23_0x3140ae(0x65)](_0x244c5d=>_0x244c5d[a23_0x3140ae(0x7e)]+a23_0x3140ae(0x6c)+_0x244c5d[a23_0x3140ae(0x7a)]+':\x20'+_0x244c5d[a23_0x3140ae(0x76)])),'transports':[new winston[(a23_0x3140ae(0x66))][(a23_0x3140ae(0x6a))](a23_0x4b3181),new winston[(a23_0x3140ae(0x66))][(a23_0x3140ae(0x64))]({'filename':path['join'](logDir,a23_0x3140ae(0x71)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3140ae(0x66))][(a23_0x3140ae(0x64))]({'filename':path['join'](logDir,a23_0x3140ae(0x7f)),'level':a23_0x3140ae(0x72)})]};exports[a23_0x3140ae(0x69)]=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_0x35ac46=a24_0x24bc;(function(_0x1e1c8d,_0x294e98){const _0xc7db37=a24_0x24bc,_0x5b59de=_0x1e1c8d();while(!![]){try{const _0x146f1c=parseInt(_0xc7db37(0x12e))/0x1+parseInt(_0xc7db37(0x12c))/0x2*(-parseInt(_0xc7db37(0x136))/0x3)+parseInt(_0xc7db37(0x139))/0x4*(parseInt(_0xc7db37(0x131))/0x5)+parseInt(_0xc7db37(0x13d))/0x6+-parseInt(_0xc7db37(0x12b))/0x7*(-parseInt(_0xc7db37(0x138))/0x8)+parseInt(_0xc7db37(0x12f))/0x9*(-parseInt(_0xc7db37(0x130))/0xa)+-parseInt(_0xc7db37(0x135))/0xb*(parseInt(_0xc7db37(0x13b))/0xc);if(_0x146f1c===_0x294e98)break;else _0x5b59de['push'](_0x5b59de['shift']());}catch(_0x4a1554){_0x5b59de['push'](_0x5b59de['shift']());}}}(a24_0x32ea,0x26333));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x35ac46(0x133));process[a24_0x35ac46(0x13c)][a24_0x35ac46(0x132)]=0x1;function a24_0x32ea(){const _0x1305a6=['wWYPy','ifAEH','1188439fmPITn','103594tsAOCo','help','218216lFJBgo','9uDIBUo','499390PUmCKU','1985tinRVs','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','./config/constants','demandCommand','2365coQtRm','3OKagnJ','usage','8NyUfUE','580tgddFA','epilogue','24996JKWLqd','env','1562940ZQUSEA'];a24_0x32ea=function(){return _0x1305a6;};return a24_0x32ea();}function a24_0x24bc(_0x46f4b1,_0x136a7c){const _0x32ea04=a24_0x32ea();return a24_0x24bc=function(_0x24bc20,_0x17a371){_0x24bc20=_0x24bc20-0x129;let _0x1049f0=_0x32ea04[_0x24bc20];return _0x1049f0;},a24_0x24bc(_0x46f4b1,_0x136a7c);}function run(_0x202124){const _0x312621=a24_0x35ac46,_0x17a360={};_0x17a360['wWYPy']='commands',_0x17a360[_0x312621(0x12a)]='help';const _0x1147d3=_0x17a360;_0x202124[_0x312621(0x137)](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x1147d3[_0x312621(0x129)])[_0x312621(0x134)]()[_0x312621(0x12d)](_0x1147d3[_0x312621(0x12a)])[_0x312621(0x13a)](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a24_0x2be15c=a24_0x43a2;function a24_0x43a2(_0x141c0a,_0x7294ad){const _0x5390be=a24_0x5390();return a24_0x43a2=function(_0x43a220,_0x1b0542){_0x43a220=_0x43a220-0x1de;let _0x37bcb4=_0x5390be[_0x43a220];return _0x37bcb4;},a24_0x43a2(_0x141c0a,_0x7294ad);}(function(_0x524327,_0x19d1c0){const _0x4f41a3=a24_0x43a2,_0x19d71f=_0x524327();while(!![]){try{const _0xf8715b=-parseInt(_0x4f41a3(0x1ed))/0x1+-parseInt(_0x4f41a3(0x1e6))/0x2*(-parseInt(_0x4f41a3(0x1ec))/0x3)+-parseInt(_0x4f41a3(0x1de))/0x4*(parseInt(_0x4f41a3(0x1e0))/0x5)+parseInt(_0x4f41a3(0x1ef))/0x6*(-parseInt(_0x4f41a3(0x1e7))/0x7)+-parseInt(_0x4f41a3(0x1ee))/0x8+-parseInt(_0x4f41a3(0x1e4))/0x9+parseInt(_0x4f41a3(0x1f2))/0xa*(parseInt(_0x4f41a3(0x1e3))/0xb);if(_0xf8715b===_0x19d1c0)break;else _0x19d71f['push'](_0x19d71f['shift']());}catch(_0x48a162){_0x19d71f['push'](_0x19d71f['shift']());}}}(a24_0x5390,0x6eebe));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x2be15c(0x1f0)][a24_0x2be15c(0x1df)]=0x1;function run(_0x4b9639){const _0x83544=a24_0x2be15c,_0x14073d={};_0x14073d[_0x83544(0x1ea)]=_0x83544(0x1f1),_0x14073d[_0x83544(0x1e5)]=_0x83544(0x1e8);const _0x246910=_0x14073d;_0x4b9639[_0x83544(0x1e2)](HELP_HEADER_MESSAGE[_0x83544(0x1eb)])[_0x83544(0x1e1)](_0x246910[_0x83544(0x1ea)])[_0x83544(0x1f3)]()[_0x83544(0x1e8)](_0x246910[_0x83544(0x1e5)])[_0x83544(0x1e9)](HELP_FOOTER_MESSAGE);}function a24_0x5390(){const _0x1ba5de=['10SBjOTO','demandCommand','exports','11288pzKxGE','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1345ZDvRmX','commandDir','usage','28475337xZTDee','7096473FfEETq','OzkLw','14oKeoGA','903cdPmvQ','help','epilogue','CyOam','root','133116NdTSNG','108129SRCVFF','1069952cUVyzk','30486qggRVz','env','commands'];a24_0x5390=function(){return _0x1ba5de;};return a24_0x5390();}module[a24_0x2be15c(0x1f4)]=run;