browserstack-node-sdk 1.60.1 → 1.62.0

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/browserstack.pw.yml.sample +10 -0
  41. package/browserstack.yml.sample +10 -0
  42. package/package.json +1 -1
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  58. package/src/bin/jasmine/command.js +1 -1
  59. package/src/bin/jasmine/test.setup.js +1 -1
  60. package/src/bin/jasmine/testRunMap.js +1 -1
  61. package/src/bin/jest/command.js +1 -1
  62. package/src/bin/jest/customImplements/customCircus.js +1 -1
  63. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  64. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  65. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  66. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  67. package/src/bin/jest/jest.setup.js +1 -1
  68. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  69. package/src/bin/jest/test-observability/helper.js +1 -1
  70. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  71. package/src/bin/jest/test-observability/test-details.js +1 -1
  72. package/src/bin/jest/test.setup.js +1 -1
  73. package/src/bin/jest/test_before.setup.js +1 -1
  74. package/src/bin/launcher/launcher.js +1 -1
  75. package/src/bin/load/index.js +1 -1
  76. package/src/bin/load/loadUtils.js +1 -1
  77. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  78. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  79. package/src/bin/mocha/command.js +1 -1
  80. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  81. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  82. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  83. package/src/bin/mocha/test.setup.js +1 -1
  84. package/src/bin/newman/command.js +1 -1
  85. package/src/bin/newman/helper.js +1 -1
  86. package/src/bin/newman/reporter/index.js +1 -1
  87. package/src/bin/newman/scriptRunner.js +1 -1
  88. package/src/bin/nightwatch/command.js +1 -1
  89. package/src/bin/playwright/accessibility-helper.js +1 -1
  90. package/src/bin/playwright/command.js +1 -1
  91. package/src/bin/playwright/globalSetup.js +1 -1
  92. package/src/bin/playwright/mock-process.js +1 -1
  93. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  94. package/src/bin/playwright/patches.js +1 -1
  95. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  96. package/src/bin/playwright/reporter/reporter.js +1 -1
  97. package/src/bin/playwright/reporter/test-details.js +1 -1
  98. package/src/bin/playwright/sessionDetails.js +1 -1
  99. package/src/bin/puppeteer/patches.js +1 -1
  100. package/src/bin/puppeteer/sessionDetails.js +1 -1
  101. package/src/bin/puppeteer/test.setup.js +1 -1
  102. package/src/bin/runner.js +1 -1
  103. package/src/bin/setup.js +1 -1
  104. package/src/bin/test-runner/index.js +1 -1
  105. package/src/bin/test-runner/runTest.js +1 -1
  106. package/src/bin/test-runner/testWorker.js +1 -1
  107. package/src/bin/testcafe/a11y-runner.js +1 -1
  108. package/src/bin/testcafe/command.js +1 -1
  109. package/src/bin/testcafe/reporter/index.js +1 -1
  110. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  111. package/src/bin/testcafe/session-registry.js +1 -1
  112. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  113. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  114. package/src/bin/testcafe/w3c-driver.js +1 -1
  115. package/src/bin/utils/apiUtilityMethods.js +1 -1
  116. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  117. package/src/bin/utils/constants.js +1 -1
  118. package/src/bin/utils/log4jsAppender.js +1 -1
  119. package/src/bin/utils/logPatcher.js +1 -1
  120. package/src/bin/utils/logReportingAPI.js +1 -1
  121. package/src/bin/utils/playwright-patcher.js +1 -1
  122. package/src/bin/utils/puppeteer-patcher.js +1 -1
  123. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  124. package/src/bin/utils/sharedUtils.js +1 -1
  125. package/src/bin/v2/TestInfo.js +1 -1
  126. package/src/bin/v2/browserstackCLI.js +1 -1
  127. package/src/bin/v2/cliUtils.js +1 -1
  128. package/src/bin/v2/customTagManager.js +1 -1
  129. package/src/bin/v2/eventDispatcher.js +1 -1
  130. package/src/bin/v2/framework/automationFramework.js +1 -1
  131. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  133. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  134. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  135. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  138. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  142. package/src/bin/v2/grpcClient.js +1 -1
  143. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/trackedContext.js +1 -1
  146. package/src/bin/v2/instances/trackedInstance.js +1 -1
  147. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  148. package/src/bin/v2/modules/baseModule.js +1 -1
  149. package/src/bin/v2/modules/loadTestModule.js +1 -1
  150. package/src/bin/v2/modules/observabilityModule.js +1 -1
  151. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  152. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testhubModule.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_0x3cdb7c=a15_0x132f;(function(_0x2abdca,_0x188674){const _0x4dd639=a15_0x132f,_0x5e8c66=_0x2abdca();while(!![]){try{const _0x12aa0c=parseInt(_0x4dd639(0x11c))/0x1+-parseInt(_0x4dd639(0xeb))/0x2*(parseInt(_0x4dd639(0xf1))/0x3)+parseInt(_0x4dd639(0xd2))/0x4*(parseInt(_0x4dd639(0xe1))/0x5)+parseInt(_0x4dd639(0x108))/0x6*(-parseInt(_0x4dd639(0x11d))/0x7)+-parseInt(_0x4dd639(0xd0))/0x8*(-parseInt(_0x4dd639(0xdb))/0x9)+parseInt(_0x4dd639(0xe3))/0xa*(-parseInt(_0x4dd639(0xfe))/0xb)+parseInt(_0x4dd639(0x11a))/0xc;if(_0x12aa0c===_0x188674)break;else _0x5e8c66['push'](_0x5e8c66['shift']());}catch(_0x2c8619){_0x5e8c66['push'](_0x5e8c66['shift']());}}}(a15_0x522e,0x73d46));function a15_0x132f(_0x5f850c,_0x4f8460){const _0x522ed5=a15_0x522e();return a15_0x132f=function(_0x132fee,_0xf7d048){_0x132fee=_0x132fee-0xcd;let _0x1d0978=_0x522ed5[_0x132fee];return _0x1d0978;},a15_0x132f(_0x5f850c,_0x4f8460);}const fs=require('fs'),got=require(a15_0x3cdb7c(0xff)),{table}=require(a15_0x3cdb7c(0xee)),{v4:uuidv4}=require(a15_0x3cdb7c(0x121)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3cdb7c(0xfa)),{getCredentialsPath,getAuthHeader}=require(a15_0x3cdb7c(0x128)),{sendInstrumentationEvent}=require(a15_0x3cdb7c(0x116));function a15_0x522e(){const _0x1f0b52=['unauthorised','5471688gdwtoJ','ERROR','398421KkFqtZ','7JimoRS','UaHWl','SCMWe','uFLNW','uuid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','readFileSync','error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','KOzfL','bihTq','../../utils/utilityMethods','grid-id','parse','log','24Hzhpsj','GET','188GqiwBP','status','options','dHOjJ','https://','boolean','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','help','1853433qficgy','bstackAccesskey','exit','usage','bstackUsername','queued','1240FEeLJg','requestId','36370MCNVsV','stack','beTpe','description','QrBgx','desc','stringify','wFuzB','19762onPjAY','INFO','\x0aFound\x20the\x20following\x20grids:\x0a','table','lgVqR','all-grids','21mwWxfA','ShFsk','Qqvlq','existsSync','cluster-name','Browserstack','name','xiBEq','handler','../../config/constants','username','list-grids-called','epilogue','374WKvniE','got','command','running','icTdq','Failed\x20to\x20list\x20resources!\x20Error:\x20','password','statusCode','list','grids','4899594mtHJHM','sCDWL','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','push','JzfJH','zdafv','clusterName','unknown-error','grid','CXFNu','body','/packages/cli/get-grids','forEach','zYXcc','../../utils/instrumentationUtils','DlqlG','type'];a15_0x522e=function(){return _0x1f0b52;};return a15_0x522e();}exports[a15_0x3cdb7c(0x100)]=a15_0x3cdb7c(0x107),exports[a15_0x3cdb7c(0xe8)]=a15_0x3cdb7c(0xd9),exports['builder']=function(_0x4f54d1){const _0x338c6e=a15_0x3cdb7c,_0x45d620={};_0x45d620[_0x338c6e(0x120)]=_0x338c6e(0x125),_0x45d620['SCMWe']=_0x338c6e(0xd7),_0x45d620[_0x338c6e(0x111)]=_0x338c6e(0xda);const _0x58f107=_0x45d620,_0x1c056e={};_0x1c056e[_0x338c6e(0xe6)]=_0x58f107[_0x338c6e(0x120)],_0x1c056e[_0x338c6e(0x118)]=_0x58f107[_0x338c6e(0x11f)];const _0x42feb9={};return _0x42feb9[_0x338c6e(0xf0)]=_0x1c056e,_0x4f54d1[_0x338c6e(0xde)](HELP_HEADER_MESSAGE[_0x338c6e(0x106)][_0x338c6e(0x110)])[_0x338c6e(0xfd)](HELP_FOOTER_MESSAGE)[_0x338c6e(0xd4)](_0x42feb9)[_0x338c6e(0xda)](_0x58f107['CXFNu'])['argv'];},exports[a15_0x3cdb7c(0xf9)]=async function(_0xf7b002){const _0x163fdd=a15_0x3cdb7c,_0x5790cb={'icTdq':function(_0x2a0b85){return _0x2a0b85();},'DlqlG':_0x163fdd(0x10a),'Qqvlq':function(_0x5ea0ec,_0x3fc0dd,_0x116967,_0x23181f,_0x5e1ff0,_0x1bf2e6,_0x47ece7){return _0x5ea0ec(_0x3fc0dd,_0x116967,_0x23181f,_0x5e1ff0,_0x1bf2e6,_0x47ece7);},'UaHWl':_0x163fdd(0xfc),'boGiu':_0x163fdd(0xd8),'KOzfL':_0x163fdd(0xd1),'VgTwt':function(_0x100258,_0x4cb312,_0x490177){return _0x100258(_0x4cb312,_0x490177);},'ZMRxv':function(_0x2a2ef,_0x2c368a,_0x449eed){return _0x2a2ef(_0x2c368a,_0x449eed);},'JzfJH':function(_0x5e6556,_0x53254a){return _0x5e6556!==_0x53254a;},'sCDWL':function(_0x2bbd58,_0x5da917){return _0x2bbd58===_0x5da917;},'uTkUV':_0x163fdd(0xed),'dHOjJ':_0x163fdd(0xcd),'NnoMu':'grid-name','zdafv':_0x163fdd(0xd3),'beTpe':_0x163fdd(0x101),'QDMyD':_0x163fdd(0xe0),'wFuzB':_0x163fdd(0xf5),'ShFsk':function(_0x36cc5d,_0x444dff){return _0x36cc5d(_0x444dff);},'lgVqR':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xiBEq':_0x163fdd(0x119),'CgmSm':function(_0x4ed495,_0x29639e,_0x4a5208,_0x39ff94,_0x5d756d,_0x59a8be,_0x21514c){return _0x4ed495(_0x29639e,_0x4a5208,_0x39ff94,_0x5d756d,_0x59a8be,_0x21514c);},'QrBgx':'server-error','zYXcc':function(_0x1aa876,_0x501834,_0x3557e1,_0xed8517,_0x3b02a0,_0x4de65c,_0x331b1c){return _0x1aa876(_0x501834,_0x3557e1,_0xed8517,_0x3b02a0,_0x4de65c,_0x331b1c);},'bihTq':_0x163fdd(0x10f)};try{global_registry[_0x163fdd(0xe2)]=_0x5790cb[_0x163fdd(0x102)](uuidv4);!fs[_0x163fdd(0xf4)](_0x5790cb[_0x163fdd(0x102)](getCredentialsPath))&&(console[_0x163fdd(0x124)](_0x5790cb[_0x163fdd(0x117)]),await _0x5790cb[_0x163fdd(0xf3)](sendInstrumentationEvent,_0xf7b002,_0x5790cb[_0x163fdd(0x11e)],messageTypes['ERROR'],_0x5790cb['boGiu'],null,_0xf7b002),process['exit'](0x1));const _0x164301=JSON['parse'](fs[_0x163fdd(0x123)](_0x5790cb[_0x163fdd(0x102)](getCredentialsPath)));let _0x361d99=_0x163fdd(0xd6)+AG_API_URL+_0x163fdd(0x113);_0xf7b002['allGrids']&&(_0x361d99=_0x163fdd(0xd6)+AG_API_URL+'/packages/cli/get-all-grids');const _0x3cf2e9={'method':_0x5790cb[_0x163fdd(0x126)],'headers':_0x5790cb['VgTwt'](getAuthHeader,_0x164301[_0x163fdd(0xf6)]['username'],_0x164301[_0x163fdd(0xf6)]['password']),'throwHttpErrors':![]};global_registry[_0x163fdd(0xdf)]=_0x164301['Browserstack'][_0x163fdd(0xfb)],global_registry[_0x163fdd(0xdc)]=_0x164301[_0x163fdd(0xf6)][_0x163fdd(0x104)],_0x5790cb[_0x163fdd(0xf3)](sendInstrumentationEvent,_0xf7b002,_0x5790cb[_0x163fdd(0x11e)],messageTypes[_0x163fdd(0xec)],null,null,_0xf7b002);const _0xd330f9=await _0x5790cb['ZMRxv'](got,_0x361d99,_0x3cf2e9);if(_0x5790cb[_0x163fdd(0x10c)](_0xd330f9,null)&&_0x5790cb[_0x163fdd(0x10c)](_0xd330f9,undefined)&&_0x5790cb[_0x163fdd(0x109)](_0xd330f9[_0x163fdd(0x105)],0xc8)){const _0xb29bc6=JSON[_0x163fdd(0xce)](_0xd330f9[_0x163fdd(0x112)]);console[_0x163fdd(0xcf)](_0x5790cb['uTkUV']);const _0x1b52b1=[];_0x1b52b1[_0x163fdd(0x10b)]([_0x5790cb[_0x163fdd(0xd5)],_0x5790cb['NnoMu'],_0x5790cb[_0x163fdd(0x10d)],_0x5790cb[_0x163fdd(0xe5)],_0x5790cb['QDMyD'],_0x5790cb[_0x163fdd(0xea)]]),_0xb29bc6[_0x163fdd(0x114)](_0x45b33d=>{const _0x4c08fe=_0x163fdd;_0x1b52b1['push']([_0x45b33d['id'],_0x45b33d[_0x4c08fe(0xf7)],_0x45b33d['status'],_0x45b33d['running'],_0x45b33d[_0x4c08fe(0xe0)],_0x45b33d[_0x4c08fe(0x10e)]]);}),console['log'](_0x5790cb[_0x163fdd(0xf2)](table,_0x1b52b1)),process[_0x163fdd(0xdd)](0x0);}_0x5790cb[_0x163fdd(0x109)](_0xd330f9[_0x163fdd(0x105)],0x191)&&(console[_0x163fdd(0x124)](_0x5790cb[_0x163fdd(0xef)]),await _0x5790cb['Qqvlq'](sendInstrumentationEvent,_0xf7b002,_0x5790cb['UaHWl'],messageTypes[_0x163fdd(0x11b)],_0x5790cb[_0x163fdd(0xf8)],null,_0xf7b002),process[_0x163fdd(0xdd)](0x1)),console[_0x163fdd(0x124)](_0x163fdd(0x122)+JSON[_0x163fdd(0xe9)](_0xd330f9)),await _0x5790cb['CgmSm'](sendInstrumentationEvent,_0xf7b002,_0x5790cb[_0x163fdd(0x11e)],messageTypes['ERROR'],_0x5790cb[_0x163fdd(0xe7)],_0xd330f9,_0xf7b002),process[_0x163fdd(0xdd)](0x1);}catch(_0xe09e8d){console[_0x163fdd(0x124)](_0x163fdd(0x103)+_0xe09e8d[_0x163fdd(0xe4)]),await _0x5790cb[_0x163fdd(0x115)](sendInstrumentationEvent,_0xf7b002,_0x5790cb[_0x163fdd(0x11e)],messageTypes['ERROR'],_0x5790cb[_0x163fdd(0x127)],_0xe09e8d,_0xf7b002),process['exit'](0x1);}};
1
+ const a15_0x5e0851=a15_0x5641;(function(_0x378ddc,_0x3a936a){const _0x343e9f=a15_0x5641,_0x3aebfc=_0x378ddc();while(!![]){try{const _0x1ee5b8=parseInt(_0x343e9f(0x11f))/0x1+parseInt(_0x343e9f(0x10d))/0x2+-parseInt(_0x343e9f(0x15a))/0x3*(-parseInt(_0x343e9f(0x13f))/0x4)+parseInt(_0x343e9f(0x134))/0x5+-parseInt(_0x343e9f(0x157))/0x6*(parseInt(_0x343e9f(0x13d))/0x7)+-parseInt(_0x343e9f(0x12c))/0x8+-parseInt(_0x343e9f(0x150))/0x9;if(_0x1ee5b8===_0x3a936a)break;else _0x3aebfc['push'](_0x3aebfc['shift']());}catch(_0x164984){_0x3aebfc['push'](_0x3aebfc['shift']());}}}(a15_0x49c7,0xd86c2));function a15_0x5641(_0x3e4385,_0x4f34e6){const _0x49c75c=a15_0x49c7();return a15_0x5641=function(_0x5641c9,_0x3c4ad7){_0x5641c9=_0x5641c9-0x100;let _0x2d0c78=_0x49c75c[_0x5641c9];return _0x2d0c78;},a15_0x5641(_0x3e4385,_0x4f34e6);}function a15_0x49c7(){const _0x43293c=['allGrids','clusterName','argv','table','gtlMe','918306zFTvky','yWBmN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','3997263dTyRDt','INFO','ERROR','bstackAccesskey','Failed\x20to\x20list\x20resources!\x20Error:\x20','status','existsSync','push','gSidF','forEach','GET','usage','exit','username','1994776ybKFXo','tSdtX','grids','EGdce','rKrMU','init-not-called','password','djjJB','running','OEeqN','name','command','\x0aFound\x20the\x20following\x20grids:\x0a','https://','../../utils/instrumentationUtils','boolean','LjRul','RqIaj','548430pCHJDR','../../config/constants','options','stringify','PRKnJ','ArNMv','Browserstack','parse','stack','list-grids-called','builder','all-grids','iKDhR','10860024PEbobz','/packages/cli/get-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-all-grids','server-error','cluster-name','../../utils/utilityMethods','type','8153495xJDsLf','help','ErCDP','Bdimg','nZPzX','UFNgI','grid-id','desc','grid-name','7Gioovd','log','4FKoPBz','got','isbpQ','GJLdv','queued','uuid','statusCode','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','body','bstackUsername','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid','readFileSync','requestId','hOlEw','error','Vojqx','19007262cqfDGm','DXsEA'];a15_0x49c7=function(){return _0x43293c;};return a15_0x49c7();}const fs=require('fs'),got=require(a15_0x5e0851(0x140)),{table}=require(a15_0x5e0851(0x155)),{v4:uuidv4}=require(a15_0x5e0851(0x144)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5e0851(0x120)),{getCredentialsPath,getAuthHeader}=require(a15_0x5e0851(0x132)),{sendInstrumentationEvent}=require(a15_0x5e0851(0x11b));exports[a15_0x5e0851(0x118)]=a15_0x5e0851(0x10f),exports[a15_0x5e0851(0x13b)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x5e0851(0x129)]=function(_0x33c852){const _0x351895=a15_0x5e0851,_0x3111ea={};_0x3111ea['GJLdv']=_0x351895(0x146),_0x3111ea[_0x351895(0x10e)]=_0x351895(0x11c),_0x3111ea[_0x351895(0x158)]=_0x351895(0x135);const _0x5afde1=_0x3111ea,_0x39ae90={};_0x39ae90['description']=_0x5afde1[_0x351895(0x142)],_0x39ae90[_0x351895(0x133)]=_0x5afde1[_0x351895(0x10e)];const _0x1048f2={};return _0x1048f2[_0x351895(0x12a)]=_0x39ae90,_0x33c852[_0x351895(0x10a)](HELP_HEADER_MESSAGE['list'][_0x351895(0x14a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x351895(0x121)](_0x1048f2)[_0x351895(0x135)](_0x5afde1[_0x351895(0x158)])[_0x351895(0x154)];},exports['handler']=async function(_0x33fb17){const _0x1224e0=a15_0x5e0851,_0x1df652={'nZPzX':function(_0x115168){return _0x115168();},'hOlEw':function(_0x224d0e){return _0x224d0e();},'DXsEA':_0x1224e0(0x159),'gSidF':function(_0x5c0415,_0x4cb952,_0x3e4098,_0x2739db,_0x20c038,_0x4dfd99,_0x50dacb){return _0x5c0415(_0x4cb952,_0x3e4098,_0x2739db,_0x20c038,_0x4dfd99,_0x50dacb);},'isbpQ':_0x1224e0(0x128),'OEeqN':_0x1224e0(0x112),'ArNMv':function(_0x559303){return _0x559303();},'UFNgI':_0x1224e0(0x109),'ErCDP':function(_0x2d81ab,_0x23cf1e,_0x93c5b5){return _0x2d81ab(_0x23cf1e,_0x93c5b5);},'gtlMe':function(_0x5653d1,_0x4c107e){return _0x5653d1!==_0x4c107e;},'exFKm':function(_0x896d24,_0x47d731){return _0x896d24===_0x47d731;},'RqIaj':_0x1224e0(0x119),'rKrMU':_0x1224e0(0x13a),'LjRul':_0x1224e0(0x13c),'kzSkE':_0x1224e0(0x104),'djjJB':_0x1224e0(0x115),'iKDhR':_0x1224e0(0x143),'ezQme':_0x1224e0(0x131),'EGdce':function(_0x422b5e,_0x2f9234){return _0x422b5e(_0x2f9234);},'sxjGk':_0x1224e0(0x12e),'Vojqx':'unauthorised','PRKnJ':_0x1224e0(0x130),'Bdimg':function(_0x3e5d86,_0x230163,_0x5de803,_0x777af3,_0x1e9d8f,_0x27d00a,_0x319dd7){return _0x3e5d86(_0x230163,_0x5de803,_0x777af3,_0x1e9d8f,_0x27d00a,_0x319dd7);},'EiRxP':'unknown-error'};try{global_registry[_0x1224e0(0x14c)]=_0x1df652[_0x1224e0(0x138)](uuidv4);!fs[_0x1224e0(0x105)](_0x1df652[_0x1224e0(0x14d)](getCredentialsPath))&&(console[_0x1224e0(0x14e)](_0x1df652[_0x1224e0(0x151)]),await _0x1df652['gSidF'](sendInstrumentationEvent,_0x33fb17,_0x1df652[_0x1224e0(0x141)],messageTypes[_0x1224e0(0x101)],_0x1df652[_0x1224e0(0x116)],null,_0x33fb17),process[_0x1224e0(0x10b)](0x1));const _0x3ea6e6=JSON[_0x1224e0(0x126)](fs[_0x1224e0(0x14b)](_0x1df652[_0x1224e0(0x124)](getCredentialsPath)));let _0x55439d=_0x1224e0(0x11a)+AG_API_URL+_0x1224e0(0x12d);_0x33fb17[_0x1224e0(0x152)]&&(_0x55439d='https://'+AG_API_URL+_0x1224e0(0x12f));const _0x153e1b={'method':_0x1df652[_0x1224e0(0x139)],'headers':_0x1df652[_0x1224e0(0x136)](getAuthHeader,_0x3ea6e6[_0x1224e0(0x125)][_0x1224e0(0x10c)],_0x3ea6e6['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x1224e0(0x148)]=_0x3ea6e6[_0x1224e0(0x125)][_0x1224e0(0x10c)],global_registry[_0x1224e0(0x102)]=_0x3ea6e6[_0x1224e0(0x125)][_0x1224e0(0x113)],_0x1df652[_0x1224e0(0x107)](sendInstrumentationEvent,_0x33fb17,_0x1df652[_0x1224e0(0x141)],messageTypes[_0x1224e0(0x100)],null,null,_0x33fb17);const _0x521801=await _0x1df652[_0x1224e0(0x136)](got,_0x55439d,_0x153e1b);if(_0x1df652[_0x1224e0(0x156)](_0x521801,null)&&_0x1df652[_0x1224e0(0x156)](_0x521801,undefined)&&_0x1df652['exFKm'](_0x521801[_0x1224e0(0x145)],0xc8)){const _0x4bdc57=JSON['parse'](_0x521801[_0x1224e0(0x147)]);console[_0x1224e0(0x13e)](_0x1df652[_0x1224e0(0x11e)]);const _0x1429aa=[];_0x1429aa[_0x1224e0(0x106)]([_0x1df652[_0x1224e0(0x111)],_0x1df652[_0x1224e0(0x11d)],_0x1df652['kzSkE'],_0x1df652[_0x1224e0(0x114)],_0x1df652[_0x1224e0(0x12b)],_0x1df652['ezQme']]),_0x4bdc57[_0x1224e0(0x108)](_0x454b7b=>{const _0x30d29f=_0x1224e0;_0x1429aa[_0x30d29f(0x106)]([_0x454b7b['id'],_0x454b7b[_0x30d29f(0x117)],_0x454b7b['status'],_0x454b7b[_0x30d29f(0x115)],_0x454b7b[_0x30d29f(0x143)],_0x454b7b[_0x30d29f(0x153)]]);}),console[_0x1224e0(0x13e)](_0x1df652[_0x1224e0(0x110)](table,_0x1429aa)),process[_0x1224e0(0x10b)](0x0);}_0x1df652['exFKm'](_0x521801['statusCode'],0x191)&&(console['error'](_0x1df652['sxjGk']),await _0x1df652[_0x1224e0(0x107)](sendInstrumentationEvent,_0x33fb17,_0x1df652['isbpQ'],messageTypes[_0x1224e0(0x101)],_0x1df652[_0x1224e0(0x14f)],null,_0x33fb17),process['exit'](0x1)),console[_0x1224e0(0x14e)](_0x1224e0(0x149)+JSON[_0x1224e0(0x122)](_0x521801)),await _0x1df652[_0x1224e0(0x107)](sendInstrumentationEvent,_0x33fb17,_0x1df652[_0x1224e0(0x141)],messageTypes[_0x1224e0(0x101)],_0x1df652[_0x1224e0(0x123)],_0x521801,_0x33fb17),process['exit'](0x1);}catch(_0x455708){console[_0x1224e0(0x14e)](_0x1224e0(0x103)+_0x455708[_0x1224e0(0x127)]),await _0x1df652[_0x1224e0(0x137)](sendInstrumentationEvent,_0x33fb17,_0x1df652[_0x1224e0(0x141)],messageTypes[_0x1224e0(0x101)],_0x1df652['EiRxP'],_0x455708,_0x33fb17),process[_0x1224e0(0x10b)](0x1);}};
@@ -1 +1 @@
1
- function a16_0xf66e(){const _0x57079e=['strict','pre_check','qMYvQ','pre-check','2DiZDyk','epilogue','773458omLKJk','usage','help','5609030TBSNEq','recommendCommands','pUoMg','../config/constants','demandCommand','496XHWuvG','handler','builder','desc','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','command','718803thwqTq','4884396NdQsdC','2900016LfyCfE','6933790eLdwKT','1360638aMjAcA'];a16_0xf66e=function(){return _0x57079e;};return a16_0xf66e();}const a16_0x26a359=a16_0x628b;(function(_0x1e6b28,_0x1132b9){const _0x1fa8ba=a16_0x628b,_0x59f4c0=_0x1e6b28();while(!![]){try{const _0x2ca924=-parseInt(_0x1fa8ba(0x92))/0x1*(parseInt(_0x1fa8ba(0x90))/0x2)+parseInt(_0x1fa8ba(0x8b))/0x3+-parseInt(_0x1fa8ba(0x88))/0x4+-parseInt(_0x1fa8ba(0x8a))/0x5+-parseInt(_0x1fa8ba(0x89))/0x6+-parseInt(_0x1fa8ba(0x95))/0x7+parseInt(_0x1fa8ba(0x81))/0x8*(parseInt(_0x1fa8ba(0x87))/0x9);if(_0x2ca924===_0x1132b9)break;else _0x59f4c0['push'](_0x59f4c0['shift']());}catch(_0x6bd2cd){_0x59f4c0['push'](_0x59f4c0['shift']());}}}(a16_0xf66e,0xb481f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x26a359(0x7f));function a16_0x628b(_0xe18541,_0x43457f){const _0xf66ee7=a16_0xf66e();return a16_0x628b=function(_0x628b5b,_0x3d00df){_0x628b5b=_0x628b5b-0x7f;let _0x11eb2c=_0xf66ee7[_0x628b5b];return _0x11eb2c;},a16_0x628b(_0xe18541,_0x43457f);}exports[a16_0x26a359(0x86)]=a16_0x26a359(0x8f),exports[a16_0x26a359(0x84)]=a16_0x26a359(0x85),exports[a16_0x26a359(0x83)]=function(_0x246957){const _0x24eee6=a16_0x26a359,_0x1dc899={};_0x1dc899['pUoMg']='precheck_commands',_0x1dc899[_0x24eee6(0x8e)]=_0x24eee6(0x94);const _0x274111=_0x1dc899;return _0x246957[_0x24eee6(0x93)](HELP_HEADER_MESSAGE[_0x24eee6(0x8d)])[_0x24eee6(0x91)](HELP_FOOTER_MESSAGE)['commandDir'](_0x274111[_0x24eee6(0x97)])[_0x24eee6(0x80)]()[_0x24eee6(0x96)]()[_0x24eee6(0x8c)]()[_0x24eee6(0x94)](_0x274111[_0x24eee6(0x8e)]);},exports[a16_0x26a359(0x82)]=function(_0x41f0dc){};
1
+ const a16_0xa6bea=a16_0x19ce;function a16_0x19ce(_0x52a0ac,_0x305198){const _0x14db00=a16_0x14db();return a16_0x19ce=function(_0x19ce2a,_0x464715){_0x19ce2a=_0x19ce2a-0x9c;let _0x3e2998=_0x14db00[_0x19ce2a];return _0x3e2998;},a16_0x19ce(_0x52a0ac,_0x305198);}function a16_0x14db(){const _0x251564=['15656245HpefjF','pre-check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','13914297inXeAj','5lyXwvs','482gBStpd','1791079mhZSwR','strict','../config/constants','smRsx','XpMaf','recommendCommands','help','pre_check','2096FBvfKe','commandDir','1608524MjAtoV','16188iIwCeJ','4674792TUTUtU','demandCommand','10dyMTCY','precheck_commands','usage','epilogue','handler','32151IQaJvb'];a16_0x14db=function(){return _0x251564;};return a16_0x14db();}(function(_0x206455,_0x160884){const _0x5afbf5=a16_0x19ce,_0x449a66=_0x206455();while(!![]){try{const _0x46f8fc=-parseInt(_0x5afbf5(0x9f))/0x1+-parseInt(_0x5afbf5(0x9e))/0x2*(-parseInt(_0x5afbf5(0xaa))/0x3)+-parseInt(_0x5afbf5(0xa9))/0x4*(parseInt(_0x5afbf5(0x9d))/0x5)+parseInt(_0x5afbf5(0xab))/0x6+parseInt(_0x5afbf5(0xb2))/0x7*(parseInt(_0x5afbf5(0xa7))/0x8)+-parseInt(_0x5afbf5(0x9c))/0x9*(parseInt(_0x5afbf5(0xad))/0xa)+parseInt(_0x5afbf5(0xb3))/0xb;if(_0x46f8fc===_0x160884)break;else _0x449a66['push'](_0x449a66['shift']());}catch(_0xdf7e16){_0x449a66['push'](_0x449a66['shift']());}}}(a16_0x14db,0xec14a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xa6bea(0xa1));exports['command']=a16_0xa6bea(0xb4),exports['desc']=a16_0xa6bea(0xb5),exports['builder']=function(_0x146ca1){const _0x224d24=a16_0xa6bea,_0x2c897c={};_0x2c897c[_0x224d24(0xa2)]=_0x224d24(0xae),_0x2c897c[_0x224d24(0xa3)]=_0x224d24(0xa5);const _0x30c760=_0x2c897c;return _0x146ca1[_0x224d24(0xaf)](HELP_HEADER_MESSAGE[_0x224d24(0xa6)])[_0x224d24(0xb0)](HELP_FOOTER_MESSAGE)[_0x224d24(0xa8)](_0x30c760[_0x224d24(0xa2)])[_0x224d24(0xac)]()[_0x224d24(0xa4)]()[_0x224d24(0xa0)]()[_0x224d24(0xa5)](_0x30c760[_0x224d24(0xa3)]);},exports[a16_0xa6bea(0xb1)]=function(_0x5b6ae6){};
@@ -1 +1 @@
1
- const a17_0x3900fd=a17_0x46ef;(function(_0x40207c,_0x334a66){const _0x2d702d=a17_0x46ef,_0x4a8e27=_0x40207c();while(!![]){try{const _0x326bef=-parseInt(_0x2d702d(0x1d9))/0x1+-parseInt(_0x2d702d(0x22a))/0x2*(parseInt(_0x2d702d(0x1a5))/0x3)+parseInt(_0x2d702d(0x23f))/0x4*(-parseInt(_0x2d702d(0x1d4))/0x5)+-parseInt(_0x2d702d(0x216))/0x6+parseInt(_0x2d702d(0x24d))/0x7*(parseInt(_0x2d702d(0x247))/0x8)+parseInt(_0x2d702d(0x1e5))/0x9*(-parseInt(_0x2d702d(0x1e6))/0xa)+parseInt(_0x2d702d(0x204))/0xb;if(_0x326bef===_0x334a66)break;else _0x4a8e27['push'](_0x4a8e27['shift']());}catch(_0x59c157){_0x4a8e27['push'](_0x4a8e27['shift']());}}}(a17_0x471a,0x438e2));function a17_0x471a(){const _0x23000b=['GrlLr','gridProfile','xAgtQ','KyXaW','requestId','cloud-provider-not-supported','EzQyi','grid-profile','Setting\x20cloud\x20provider\x20as\x20','JOLsw','faEbS','tfTWB','SSL\x20Configured','cpCZN','Status:\x20','../../utils/utilityMethods','will\x20be\x20created','iVeYh','OIXaL','LEvXM','bdGhf','cloudProvider','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','status','IcbwB','region','Cluster\x20details\x0a-----------------------\x0a','ELfun','kyRAC','command','info','exit','MpjxB','Browserstack','header','xGzMJ','erUGR','stringify','ppBYC','isClusterPresent','hHxgt','2529rConHt','GEnnv','tNuCG','SQXFo','checkAccess','YBjsr','cluster-name','../../cloudproviders/utils','forEach','lwwxu','`\x20already\x20exists','writeFileSync','gJjhv','cvBRm','error\x20stack\x20:\x20','Tseih','sacfA','cqwJr','fSCaY','/packages/cli/get-all-grid-profiles','rnyLw','UPFMP','ymoix','BPtTk','vwHiX','Error\x20Details:\x0a','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WqcfA','FpgFQ','CHMBW','rNduO','ERROR','NQLuP','message','YBWui','length','ytTXh','snAjN','epilogue','AdWyB','fQUBH','push','fASNP','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','string','jsVKk','readFileSync','365qyPbwN','usage','../../config/logger','Missing\x20required\x20arguments:\x20','../../config/constants','214376CedCaa','`\x20is\x20present\x20in\x20region\x20`','hxakP','.\x20Please\x20provide\x20all\x20required\x20arguments.','fXLnQ','Whitelisted\x20browserstack','argv','HPQxV','log/report_','PMyyX','type','hymce','21933MGJzLO','1660TwYZSJ','join','\x20\x20Code:\x20','iLubE','CAzDV','BQHPi','getUTCMinutes','YSENC','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','connectionTimeout','iijVQ','cloud-provider','AnrBb','find','description','Mzacc','EaoLG','dJGHV','eBsIF','gBsnv','init','cluster-check-failed-','clusterName','grid\x20profile\x20flow\x20','clusterRegion','grid','\x20data\x20:\x20','handler','xucVU','OyVns','18689770XHPKSg','TXEeX','\x20===\x0a\x0a','username','wqbYI','<UsernamePlaceholder>','YasEm','\x20\x20Message:\x20','HcdBE','builder','jcTcz','getUTCHours','options','Failure','wYFRW','sendEventToBackend','authHeader','../../utils/instrumentationUtils','2739114RcbUOK','help','bstackAccesskey','is\x20already\x20present','cycYg','code','pre-check-grid-called','Sdrsw',']\x20status\x20:\x20','.txt','error','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Message:\x20','lKoqm','CLOUD_PROVIDER','Success','eYSKA','bstackUsername','getUTCMonth','uhStC','860rRRsRc','gOysT','dummy-grid','TLSv1_2_client_method','KPMmh','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','`\x20,error\x20:\x20','usCpu','https://','\x20\x20Stack:\x20','CKMAa','toLowerCase','Yqvsr','uuid','VFlvw','CzJAl','PWCWF','N/A','data','eTqIC','pre_check','24060yxCnwJ','TyZrp','isTrialGridAccessible','pre-check','getUTCDate','QkSpl','umuyY','debug','12944JprUxc','replace','XuLxn','existsSync','Failed\x20in\x20pre-check!\x20Error:\x20','\x20error\x20:\x20','1967jHacBG','body','Thbgm','cNAcK','bOXik','RJOuG','stack','URCfc','<PasswordPlaceholder>','dlhmW','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Report\x20saved\x20in\x20','Cluster\x20','IwHzF','mHFHI','\x20region\x20-\x20','desc','Vdnqr','gOeAt','sYfhk','LOG','delay','User\x20Access','jFPUQ','Grid\x20profile\x20fetched\x20for\x20pre-check','AsXQU','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','JJyTt','IjNVg','unable\x20to\x20verify\x20if\x20cluster\x20`','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','parse','isCliToolInstalled','uKHTr','LePyg','reconnecting-websocket','Invalid\x20input.\x20grid\x20profiles:\x20','iZuXy','accessResp','iSMYf','response','pre-check-grid-profile-empty','Cluster\x20`','UcpUb','anMwt','method','isTls1_2_SUPPORTED','yjSLD','xbHVk'];a17_0x471a=function(){return _0x23000b;};return a17_0x471a();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x3900fd(0x237)),ReconnectingWebSocket=require(a17_0x3900fd(0x16e)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3900fd(0x18b)),{logger}=require(a17_0x3900fd(0x1d6)),{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_0x3900fd(0x1d8)),{getCloudProviderObjectWithOutInit}=require(a17_0x3900fd(0x1ac)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x3900fd(0x215));exports[a17_0x3900fd(0x199)]=a17_0x3900fd(0x1ff),exports[a17_0x3900fd(0x15b)]=a17_0x3900fd(0x169),exports[a17_0x3900fd(0x20d)]=function(_0xc25fb0){const _0x554330=a17_0x3900fd,_0x3b8254={};_0x3b8254['cNAcK']=_0x554330(0x1ee),_0x3b8254[_0x554330(0x1bd)]=_0x554330(0x1d1),_0x3b8254[_0x554330(0x187)]=_0x554330(0x221),_0x3b8254[_0x554330(0x22e)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3b8254[_0x554330(0x1ea)]=_0x554330(0x1bf),_0x3b8254['ELfun']=_0x554330(0x217);const _0x4b24e1=_0x3b8254,_0x17863d={};_0x17863d[_0x554330(0x1f4)]=_0x4b24e1[_0x554330(0x250)],_0x17863d[_0x554330(0x1e3)]=_0x4b24e1['vwHiX'];const _0x29f89a={};_0x29f89a[_0x554330(0x1f4)]=_0x4b24e1['tfTWB'],_0x29f89a[_0x554330(0x1e3)]=_0x4b24e1[_0x554330(0x1bd)];const _0x1efa98={};_0x1efa98[_0x554330(0x1f4)]=_0x4b24e1[_0x554330(0x22e)],_0x1efa98[_0x554330(0x1e3)]=_0x4b24e1['vwHiX'];const _0x54aa86={};_0x54aa86['description']=_0x4b24e1[_0x554330(0x1ea)],_0x54aa86[_0x554330(0x1e3)]=_0x4b24e1['vwHiX'];const _0x5c2afe={};return _0x5c2afe[_0x554330(0x1ab)]=_0x17863d,_0x5c2afe[_0x554330(0x1f1)]=_0x29f89a,_0x5c2afe[_0x554330(0x195)]=_0x1efa98,_0x5c2afe[_0x554330(0x183)]=_0x54aa86,_0xc25fb0[_0x554330(0x1d5)](HELP_HEADER_MESSAGE[_0x554330(0x23e)])[_0x554330(0x1cb)](HELP_FOOTER_MESSAGE)[_0x554330(0x210)](_0x5c2afe)['help'](_0x4b24e1[_0x554330(0x197)])[_0x554330(0x1df)];};async function inputValidation(_0x3a8b7f,_0x41d080){const _0x434ff5=a17_0x3900fd,_0x25e8ce={'rNduO':_0x434ff5(0x1f1),'dlhmW':_0x434ff5(0x220),'wqbYI':_0x434ff5(0x1be),'GEnnv':_0x434ff5(0x23b),'URCfc':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','PMyyX':'string','Tseih':_0x434ff5(0x221),'gJTVR':_0x434ff5(0x192),'FpgFQ':_0x434ff5(0x1bf),'ppBYC':_0x434ff5(0x217),'lKoqm':_0x434ff5(0x1d0),'sYfhk':function(_0x3c327b,_0xd243eb){return _0x3c327b+_0xd243eb;},'NQLuP':_0x434ff5(0x225),'BPtTk':_0x434ff5(0x211),'JOLsw':function(_0x473e57,_0x5b69e3){return _0x473e57||_0x5b69e3;},'gJjhv':_0x434ff5(0x195),'OIXaL':_0x434ff5(0x1ab),'hxakP':function(_0xea5e4e,_0x230f36){return _0xea5e4e===_0x230f36;},'BQHPi':_0x434ff5(0x1c2),'rnyLw':function(_0x9e4f02,_0x464cc7){return _0x9e4f02!==_0x464cc7;},'gaQZh':_0x434ff5(0x17b),'OXHtP':'uWVrM','WqcfA':function(_0x52c083,_0x111119){return _0x52c083!==_0x111119;},'Mzacc':_0x434ff5(0x205),'jFPUQ':_0x434ff5(0x17a),'CKMAa':_0x434ff5(0x1a7),'jcTcz':_0x434ff5(0x1bb),'ytTXh':_0x434ff5(0x1f2),'QHahb':function(_0x43d866,_0x4495a3){return _0x43d866>_0x4495a3;},'KmfzT':'ruYdN','xGzMJ':'BePRC','wYFRW':function(_0x5710bb,_0x39911e,_0x40f322,_0x475778,_0x3a0ca2,_0x27e3d2,_0x5c1ff9,_0x114e8f){return _0x5710bb(_0x39911e,_0x40f322,_0x475778,_0x3a0ca2,_0x27e3d2,_0x5c1ff9,_0x114e8f);},'kyRAC':_0x434ff5(0x21c),'eYSKA':'pre-check-cluster-args-not-passed','zQSbS':function(_0x4848be,_0x28dc3b){return _0x4848be!==_0x28dc3b;},'Vdnqr':_0x434ff5(0x16d),'IwHzF':_0x434ff5(0x257),'LEvXM':function(_0x50ab73,_0x175f5c,_0x1ca877,_0x4e504a,_0x19f5c4,_0x382235,_0x2799cb,_0x41681b){return _0x50ab73(_0x175f5c,_0x1ca877,_0x4e504a,_0x19f5c4,_0x382235,_0x2799cb,_0x41681b);},'iZuXy':_0x434ff5(0x181),'fSCaY':_0x434ff5(0x1e0),'YBWui':_0x434ff5(0x17e),'AsXQU':'THKAA','dsBWp':_0x434ff5(0x1cc),'VFlvw':'GET','POgEk':function(_0x4882f8,_0x7d24d2,_0x27e11c){return _0x4882f8(_0x7d24d2,_0x27e11c);},'faEbS':function(_0x54b1fe,_0x40d6a2,_0xbf5841,_0x3f6515,_0x5b9052,_0x284ded){return _0x54b1fe(_0x40d6a2,_0xbf5841,_0x3f6515,_0x5b9052,_0x284ded);},'DGBLy':_0x434ff5(0x242),'cvBRm':_0x434ff5(0x183),'JJyTt':function(_0x44ad65,_0x598d41){return _0x44ad65===_0x598d41;},'aamgI':function(_0x116859,_0x5ac008){return _0x116859!==_0x5ac008;},'cqwJr':_0x434ff5(0x190),'byTUj':function(_0x1b046a,_0x453177){return _0x1b046a(_0x453177);},'GfWkr':function(_0x3a1311,_0x5b6b76){return _0x3a1311===_0x5b6b76;},'lwwxu':_0x434ff5(0x1cf),'cycYg':'fXduK','IjNVg':function(_0x491868,_0x34ccc2,_0x5f2acd,_0x5febb8,_0x18fc51,_0x5be720,_0x4f7206,_0x536700){return _0x491868(_0x34ccc2,_0x5f2acd,_0x5febb8,_0x18fc51,_0x5be720,_0x4f7206,_0x536700);},'Yqvsr':_0x434ff5(0x174),'umuyY':_0x434ff5(0x1a0),'XuLxn':'kBfrq','KyXaW':_0x434ff5(0x20a),'Sdrsw':_0x434ff5(0x163),'eBsIF':_0x434ff5(0x23a),'MpjxB':function(_0x154847,_0x349464){return _0x154847!==_0x349464;},'snAjN':_0x434ff5(0x194),'gOeAt':function(_0x3f0845,_0x5c2abc,_0x410d90,_0x15adfb,_0x4d86c1,_0x28f291,_0x3d3432,_0x12aef6){return _0x3f0845(_0x5c2abc,_0x410d90,_0x15adfb,_0x4d86c1,_0x28f291,_0x3d3432,_0x12aef6);}};let _0x117c70;try{if(_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce[_0x434ff5(0x1eb)],_0x25e8ce['BQHPi'])){if(_0x3a8b7f[_0x434ff5(0x1fc)]||_0x3a8b7f[_0x434ff5(0x191)]||_0x3a8b7f[_0x434ff5(0x195)]){if(_0x25e8ce[_0x434ff5(0x1b9)](_0x25e8ce['gaQZh'],_0x25e8ce['OXHtP'])){const _0x265b14=[];!_0x3a8b7f[_0x434ff5(0x1fc)]&&(_0x25e8ce[_0x434ff5(0x1c0)](_0x25e8ce[_0x434ff5(0x1f5)],_0x25e8ce[_0x434ff5(0x1f5)])?_0x4a32e1[_0x434ff5(0x1ce)](_0x25e8ce[_0x434ff5(0x1c3)]):_0x265b14['push'](_0x25e8ce[_0x434ff5(0x18e)]));;if(!_0x3a8b7f[_0x434ff5(0x191)]){if(_0x25e8ce['hxakP'](_0x25e8ce[_0x434ff5(0x162)],_0x25e8ce[_0x434ff5(0x234)])){const _0x2d9114={};_0x2d9114[_0x434ff5(0x1e3)]=_0x173d33['LOG'],_0x2d9114[_0x434ff5(0x1c6)]=_0x3d08e2,_0x432c10[_0x434ff5(0x213)](_0x1b5828,_0x2d9114,_0x25e8ce[_0x434ff5(0x256)],!![]);}else _0x265b14['push'](_0x25e8ce[_0x434ff5(0x1c3)]);};!_0x3a8b7f[_0x434ff5(0x195)]&&(_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce[_0x434ff5(0x20e)],_0x25e8ce[_0x434ff5(0x1c9)])?_0x282e16['exit'](0x1):_0x265b14[_0x434ff5(0x1ce)](_0x25e8ce[_0x434ff5(0x1b1)]));;_0x25e8ce['QHahb'](_0x265b14[_0x434ff5(0x1c8)],0x0)&&(_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce['KmfzT'],_0x25e8ce[_0x434ff5(0x19f)])?(_0xdd5cec+=_0x25e8ce[_0x434ff5(0x208)],_0x31a0a8+='\x20\x20Message:\x20'+(_0x2c583a[_0x434ff5(0x1c6)]||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a',_0xde6f82+='\x20\x20Code:\x20'+(_0x3a45fe[_0x434ff5(0x21b)]||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a',_0x3c3666+=_0x434ff5(0x233)+(_0x55b174[_0x434ff5(0x253)]||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a'):(_0x117c70=_0x434ff5(0x1d7)+_0x265b14[_0x434ff5(0x1e7)](',\x20')+_0x434ff5(0x1dc),await _0x25e8ce[_0x434ff5(0x212)](reportToGalactusAndSendToEDS,_0x3a8b7f,_0x41d080,_0x117c70,messageTypes[_0x434ff5(0x1c4)],_0x25e8ce[_0x434ff5(0x198)],_0x25e8ce[_0x434ff5(0x226)],_0x25e8ce['dlhmW']),logger[_0x434ff5(0x220)](_0x117c70),process[_0x434ff5(0x19b)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x3a8b7f['cloudProvider'][_0x434ff5(0x235)]())&&(_0x25e8ce['zQSbS'](_0x25e8ce[_0x434ff5(0x15c)],_0x25e8ce[_0x434ff5(0x15c)])?_0xf16eb7['error'](_0x434ff5(0x1b3)+_0x110ede['error']['stack']):(_0x117c70=_0x25e8ce[_0x434ff5(0x25a)],await _0x25e8ce[_0x434ff5(0x18f)](reportToGalactusAndSendToEDS,_0x3a8b7f,_0x41d080,_0x117c70,messageTypes[_0x434ff5(0x1c4)],_0x25e8ce[_0x434ff5(0x198)],_0x25e8ce[_0x434ff5(0x170)],_0x25e8ce['dlhmW']),logger[_0x434ff5(0x220)](_0x117c70),!_0x3a8b7f['cloudProvider']&&(_0x25e8ce['hxakP'](_0x25e8ce[_0x434ff5(0x1b7)],_0x25e8ce[_0x434ff5(0x1c7)])?_0x1614f9=_0x5ad958:(logger[_0x434ff5(0x19a)](_0x434ff5(0x184)+DEFAULT_CLUSTER_DETAILS[_0x434ff5(0x224)]+'\x20'),_0x3a8b7f[_0x434ff5(0x191)]=DEFAULT_CLUSTER_DETAILS[_0x434ff5(0x224)])))),global_registry['clusterName']=_0x3a8b7f['clusterName'],global_registry[_0x434ff5(0x191)]=_0x3a8b7f['cloudProvider'],global_registry['clusterRegion']=_0x3a8b7f[_0x434ff5(0x195)];}else{const _0x2da30b={};_0x2da30b[_0x434ff5(0x1f4)]=_0x25e8ce[_0x434ff5(0x254)],_0x2da30b['type']=_0x25e8ce['PMyyX'];const _0x3b48b7={};_0x3b48b7[_0x434ff5(0x1f4)]=_0x25e8ce[_0x434ff5(0x1b4)],_0x3b48b7[_0x434ff5(0x1e3)]=_0x25e8ce[_0x434ff5(0x1e2)];const _0x27aca7={};_0x27aca7[_0x434ff5(0x1f4)]=_0x25e8ce['gJTVR'],_0x27aca7['type']=_0x25e8ce[_0x434ff5(0x1e2)];const _0x2625e1={};_0x2625e1[_0x434ff5(0x1f4)]=_0x25e8ce[_0x434ff5(0x1c1)],_0x2625e1[_0x434ff5(0x1e3)]=_0x25e8ce[_0x434ff5(0x1e2)];const _0x1bc578={};return _0x1bc578[_0x434ff5(0x1ab)]=_0x2da30b,_0x1bc578[_0x434ff5(0x1f1)]=_0x3b48b7,_0x1bc578[_0x434ff5(0x195)]=_0x27aca7,_0x1bc578['grid-profile']=_0x2625e1,_0x1d9327['usage'](_0xbcef5b[_0x434ff5(0x23e)])[_0x434ff5(0x1cb)](_0x29f404)[_0x434ff5(0x210)](_0x1bc578)[_0x434ff5(0x217)](_0x25e8ce[_0x434ff5(0x1a2)])['argv'];}}else{if(_0x3a8b7f[_0x434ff5(0x17d)]){if(_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce[_0x434ff5(0x164)],_0x25e8ce['dsBWp']))_0x263076['error'](_0x25e8ce['lKoqm']),_0x3aa0b9[_0x434ff5(0x19b)](0x1);else{global_registry[_0x434ff5(0x17d)]=_0x3a8b7f[_0x434ff5(0x17d)],logger[_0x434ff5(0x246)](_0x434ff5(0x1fd)+_0x3a8b7f[_0x434ff5(0x17d)]);const _0x4edd8b=_0x434ff5(0x232)+AG_API_URL+_0x434ff5(0x1b8),_0x442a73={};_0x442a73[_0x434ff5(0x178)]=_0x25e8ce[_0x434ff5(0x238)],_0x442a73['headers']=global_registry['authHeader'],_0x442a73['throwHttpErrors']=![];const _0x5b788e=_0x442a73,_0x208205=await _0x25e8ce['POgEk'](got,_0x4edd8b,_0x5b788e),_0xf46173=await _0x25e8ce[_0x434ff5(0x186)](responseValidation,_0x208205,_0x25e8ce['DGBLy'],_0x25e8ce[_0x434ff5(0x1b2)],_0x3a8b7f,_0x41d080);let _0x260caf={};if(_0x25e8ce[_0x434ff5(0x166)](_0xf46173,0xc8)){if(_0x25e8ce['aamgI'](_0x25e8ce['cqwJr'],_0x25e8ce[_0x434ff5(0x1b6)])){const {header:_0x1c6348,response:_0x708849}=_0x36e9da,{status:_0x569d50,data:_0x4af6f7,error:_0x4388d5}=_0x708849;_0x24df86+=_0x1c6348+'\x20#'+_0x25e8ce[_0x434ff5(0x15e)](_0x20b96a,0x1)+'\x0a',_0x2aedc5+=_0x434ff5(0x18a)+(_0x569d50?_0x25e8ce[_0x434ff5(0x1c5)]:_0x25e8ce[_0x434ff5(0x1bc)])+'\x0a',_0x50d288+=_0x434ff5(0x222)+_0x25e8ce[_0x434ff5(0x185)](_0x4af6f7,_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a',_0x4388d5&&(_0x6123c+=_0x25e8ce[_0x434ff5(0x208)],_0x26e57a+=_0x434ff5(0x20b)+(_0x4388d5['message']||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a',_0x44beeb+='\x20\x20Code:\x20'+(_0x4388d5['code']||_0x25e8ce['GEnnv'])+'\x0a',_0x9b12a3+=_0x434ff5(0x233)+(_0x4388d5[_0x434ff5(0x253)]||_0x25e8ce[_0x434ff5(0x1a6)])+'\x0a'),_0x487bf8+='\x0a\x0a';}else{const _0x78bf20=JSON[_0x434ff5(0x16a)](_0x208205[_0x434ff5(0x24e)]),_0x25b6ac=_0x78bf20[_0x434ff5(0x1f3)](_0x5c4b78=>_0x5c4b78['name']===_0x3a8b7f[_0x434ff5(0x17d)])||null;_0x25e8ce['byTUj'](isUndefined,_0x25b6ac)?_0x25e8ce['GfWkr'](_0x25e8ce[_0x434ff5(0x1ae)],_0x25e8ce[_0x434ff5(0x21a)])?(_0x4b7f9d[_0x434ff5(0x19a)]('['+_0x2c2b4a+_0x434ff5(0x21e)+_0x44b80e[_0x434ff5(0x193)]+_0x434ff5(0x200)+_0x13c044[_0x434ff5(0x23c)]+_0x434ff5(0x24c)+_0x5d4c1c[_0x434ff5(0x220)]),_0x43d751['error']&&_0x91d05d[_0x434ff5(0x220)](_0x434ff5(0x1b3)+_0xeacf09[_0x434ff5(0x220)][_0x434ff5(0x253)])):(_0x117c70=_0x434ff5(0x16f)+_0x3a8b7f[_0x434ff5(0x17d)]+_0x434ff5(0x165),await _0x25e8ce[_0x434ff5(0x167)](reportToGalactusAndSendToEDS,_0x3a8b7f,_0x41d080,_0x117c70,messageTypes[_0x434ff5(0x1c4)],_0x25e8ce[_0x434ff5(0x198)],_0x25e8ce[_0x434ff5(0x236)],_0x25e8ce['dlhmW']),logger[_0x434ff5(0x220)](_0x117c70),process['exit'](0x1)):_0x25e8ce[_0x434ff5(0x1db)](_0x25e8ce[_0x434ff5(0x245)],_0x25e8ce[_0x434ff5(0x249)])?(_0x58eb5a['info'](_0x434ff5(0x184)+_0xcc144e[_0x434ff5(0x224)]+'\x20'),_0x5e5f2d[_0x434ff5(0x191)]=_0x3d64bc[_0x434ff5(0x224)]):_0x260caf=_0x25b6ac;}}else _0x25e8ce['GfWkr'](_0x25e8ce[_0x434ff5(0x17f)],_0x25e8ce[_0x434ff5(0x17f)])?process['exit'](0x1):_0x59ea30[_0x434ff5(0x1ce)](_0x25e8ce[_0x434ff5(0x1b1)]);const _0x51c869={};_0x51c869[_0x434ff5(0x1e3)]=WS_EVENTS['LOG'],_0x51c869['message']=_0x25e8ce[_0x434ff5(0x21d)],webSocketUtils[_0x434ff5(0x213)](_0x41d080,_0x51c869),global_registry[_0x434ff5(0x191)]=_0x260caf[_0x434ff5(0x191)],global_registry['clusterRegion']=_0x260caf[_0x434ff5(0x195)],global_registry[_0x434ff5(0x1fc)]=_0x260caf[_0x434ff5(0x1fc)];}}else _0x25e8ce[_0x434ff5(0x1c0)](_0x25e8ce[_0x434ff5(0x1f8)],_0x25e8ce['eBsIF'])?_0x5ef7bd['push'](_0x25e8ce[_0x434ff5(0x18e)]):(logger['error'](_0x25e8ce[_0x434ff5(0x223)]),process[_0x434ff5(0x19b)](0x1));}}else _0x1f50f7[_0x434ff5(0x19a)]('Cluster\x20`'+_0x14a929[_0x434ff5(0x1fc)]+_0x434ff5(0x1af));}catch(_0x3557ad){_0x25e8ce[_0x434ff5(0x19c)](_0x25e8ce[_0x434ff5(0x1ca)],_0x25e8ce[_0x434ff5(0x1ca)])?_0x5360d9+=_0x434ff5(0x259)+_0x2d9e71[_0x434ff5(0x1fc)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x117c70='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x3557ad+':\x20'+_0x3557ad['stack'],logger[_0x434ff5(0x220)](_0x117c70),await _0x25e8ce[_0x434ff5(0x15d)](reportToGalactusAndSendToEDS,_0x3a8b7f,_0x41d080,_0x117c70,messageTypes[_0x434ff5(0x1c4)],_0x25e8ce[_0x434ff5(0x198)],_0x25e8ce['iZuXy'],_0x25e8ce[_0x434ff5(0x256)]),process[_0x434ff5(0x19b)](0x1));}}function printResponse(_0x205223,_0x37f833){const _0x76c279=a17_0x3900fd,_0x23ba3d={};_0x23ba3d[_0x76c279(0x1b5)]='is\x20already\x20present',_0x23ba3d[_0x76c279(0x240)]=_0x76c279(0x18c),_0x23ba3d[_0x76c279(0x24f)]=function(_0xc898bf,_0x4e87aa){return _0xc898bf!==_0x4e87aa;},_0x23ba3d[_0x76c279(0x18d)]=_0x76c279(0x159),_0x23ba3d[_0x76c279(0x1ed)]=_0x76c279(0x1a4);const _0x4df1cf=_0x23ba3d;logger[_0x76c279(0x19a)]('['+_0x205223+_0x76c279(0x21e)+_0x37f833['status']+'\x20data\x20:\x20'+_0x37f833[_0x76c279(0x23c)]+'\x20error\x20:\x20'+_0x37f833[_0x76c279(0x220)]),_0x37f833[_0x76c279(0x220)]&&(_0x4df1cf['Thbgm'](_0x4df1cf['iVeYh'],_0x4df1cf[_0x76c279(0x1ed)])?logger[_0x76c279(0x220)](_0x76c279(0x1b3)+_0x37f833[_0x76c279(0x220)][_0x76c279(0x253)]):_0x4116ff+='Cluster\x20'+_0x1dae43[_0x76c279(0x1fc)]+'\x20'+(_0x4f1b65?_0x4df1cf[_0x76c279(0x1b5)]:_0x4df1cf['TyZrp'])+'\x0a\x0a');}async function generateReport(_0x39814f,_0x21ae7e){const _0x928f89=a17_0x3900fd,_0x374c93={'uhStC':function(_0xeb2e68,_0x323f0f){return _0xeb2e68+_0x323f0f;},'RJOuG':'Success','gOysT':'Failure','OyVns':function(_0x2aadd1,_0x2d614b){return _0x2aadd1||_0x2d614b;},'iLubE':_0x928f89(0x23b),'wUloO':_0x928f89(0x1be),'aWiCr':_0x928f89(0x196),'xnTda':function(_0xa9993b,_0xfc7e8c){return _0xa9993b!=_0xfc7e8c;},'gBsnv':_0x928f89(0x219),'KXwcS':_0x928f89(0x18c),'SyQmJ':function(_0x2ce89b){return _0x2ce89b();}};let _0x211b3a='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x928f89(0x191)]+_0x928f89(0x206);return _0x39814f[_0x928f89(0x1ad)]((_0x1f9e2d,_0x34010d)=>{const _0x4370fa=_0x928f89,{header:_0x1b906a,response:_0x380a20}=_0x1f9e2d,{status:_0x2f42d2,data:_0x4acbe9,error:_0x255571}=_0x380a20;_0x211b3a+=_0x1b906a+'\x20#'+_0x374c93[_0x4370fa(0x229)](_0x34010d,0x1)+'\x0a',_0x211b3a+=_0x4370fa(0x18a)+(_0x2f42d2?_0x374c93[_0x4370fa(0x252)]:_0x374c93[_0x4370fa(0x22b)])+'\x0a',_0x211b3a+=_0x4370fa(0x222)+_0x374c93[_0x4370fa(0x203)](_0x4acbe9,_0x374c93[_0x4370fa(0x1e9)])+'\x0a',_0x255571&&(_0x211b3a+=_0x374c93['wUloO'],_0x211b3a+='\x20\x20Message:\x20'+(_0x255571[_0x4370fa(0x1c6)]||_0x374c93[_0x4370fa(0x1e9)])+'\x0a',_0x211b3a+=_0x4370fa(0x1e8)+(_0x255571['code']||_0x374c93[_0x4370fa(0x1e9)])+'\x0a',_0x211b3a+=_0x4370fa(0x233)+(_0x255571[_0x4370fa(0x253)]||_0x374c93[_0x4370fa(0x1e9)])+'\x0a'),_0x211b3a+='\x0a\x0a';}),_0x211b3a+=_0x374c93['aWiCr'],_0x374c93['xnTda'](_0x21ae7e,null)?_0x211b3a+=_0x928f89(0x259)+global_registry[_0x928f89(0x1fc)]+'\x20'+(_0x21ae7e?_0x374c93[_0x928f89(0x1f9)]:_0x374c93['KXwcS'])+'\x0a\x0a':_0x211b3a+=_0x928f89(0x259)+global_registry[_0x928f89(0x1fc)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x211b3a+=_0x374c93['SyQmJ'](getSystemMetaData),_0x211b3a;};function a17_0x46ef(_0x5626aa,_0x1041a8){const _0x471a06=a17_0x471a();return a17_0x46ef=function(_0x46efee,_0x4b3526){_0x46efee=_0x46efee-0x159;let _0x504516=_0x471a06[_0x46efee];return _0x504516;},a17_0x46ef(_0x5626aa,_0x1041a8);}exports[a17_0x3900fd(0x201)]=async function(_0x388ace){const _0x5380f1=a17_0x3900fd,_0x331fdb={'YBjsr':function(_0x476fc0){return _0x476fc0();},'ndecR':_0x5380f1(0x22f),'CzJAl':function(_0x34fa9d,_0x5b39e1,_0x42e76e,_0x4c5907,_0x27f791,_0x5e792f,_0x1d4e13,_0x559e17){return _0x34fa9d(_0x5b39e1,_0x42e76e,_0x4c5907,_0x27f791,_0x5e792f,_0x1d4e13,_0x559e17);},'fQUBH':'pre-check-grid-called','SQXFo':'credential-not-found','eTqIC':'error','uKHTr':function(_0x4fd63e,_0x36f0b5,_0xfefefd,_0x3af2f6,_0x2eb081,_0x4ccf7a,_0x48cfdd){return _0x4fd63e(_0x36f0b5,_0xfefefd,_0x3af2f6,_0x2eb081,_0x4ccf7a,_0x48cfdd);},'dJGHV':function(_0x379f1d){return _0x379f1d();},'HcdBE':_0x5380f1(0x209),'hymce':_0x5380f1(0x255),'fXLnQ':function(_0x4ccc53,_0x2c56ca,_0x135126){return _0x4ccc53(_0x2c56ca,_0x135126);},'UPFMP':function(_0x38b1f1,_0x990d81,_0x2991c8){return _0x38b1f1(_0x990d81,_0x2991c8);},'jsVKk':_0x5380f1(0x22c),'RZjxE':'toolInstalledResp','anMwt':'2|3|1|0|4','iijVQ':_0x5380f1(0x171),'EzQyi':_0x5380f1(0x241),'UcpUb':function(_0x111c41,_0x59a340){return _0x111c41(_0x59a340);},'gqLKc':_0x5380f1(0x22d),'xucVU':function(_0x31be38,_0x53b40a,_0x23cedb){return _0x31be38(_0x53b40a,_0x23cedb);},'bOXik':_0x5380f1(0x179),'ybUkA':'Tool\x20Installed','EaoLG':_0x5380f1(0x161),'iSMYf':_0x5380f1(0x1de),'qFAqA':_0x5380f1(0x188),'GrlLr':function(_0x5dc8d2,_0x2865c2,_0x56b094){return _0x5dc8d2(_0x2865c2,_0x56b094);},'usCpu':function(_0x1d4522,_0x55a820){return _0x1d4522+_0x55a820;},'YhDTi':'utf-8','cpCZN':function(_0x4aeddc,_0x3a9dfe,_0xad1867,_0x1fe932,_0xb63175,_0x5c48e8,_0x19b545){return _0x4aeddc(_0x3a9dfe,_0xad1867,_0x1fe932,_0xb63175,_0x5c48e8,_0x19b545);},'QkSpl':'pre-check-failed'};let _0x3c22ba,_0x351675;try{global_registry[_0x5380f1(0x180)]=_0x331fdb['YBjsr'](uuidv4);!fs[_0x5380f1(0x24a)](_0x331fdb[_0x5380f1(0x1aa)](getCredentialsPath))&&(_0x351675=_0x331fdb['ndecR'],logger[_0x5380f1(0x220)](_0x351675),await _0x331fdb[_0x5380f1(0x239)](reportToGalactusAndSendToEDS,_0x388ace,_0x3c22ba,_0x351675,messageTypes['ERROR'],_0x331fdb['fQUBH'],_0x331fdb[_0x5380f1(0x1a8)],_0x331fdb[_0x5380f1(0x23d)]),process[_0x5380f1(0x19b)](0x1));_0x331fdb[_0x5380f1(0x16c)](sendInstrumentationEvent,_0x388ace,_0x331fdb[_0x5380f1(0x1cd)],messageTypes['INFO'],null,null,_0x388ace);const _0x4dca17=JSON[_0x5380f1(0x16a)](fs[_0x5380f1(0x1d3)](_0x331fdb[_0x5380f1(0x1f7)](getCredentialsPath)));global_registry[_0x5380f1(0x227)]=_0x4dca17[_0x5380f1(0x19d)][_0x5380f1(0x207)],global_registry[_0x5380f1(0x218)]=_0x4dca17[_0x5380f1(0x19d)]['password'];const _0x5e00ba=WS_ENDPOINT[_0x5380f1(0x248)](_0x331fdb[_0x5380f1(0x20c)],_0x4dca17[_0x5380f1(0x19d)][_0x5380f1(0x207)])[_0x5380f1(0x248)](_0x331fdb[_0x5380f1(0x1e4)],_0x4dca17[_0x5380f1(0x19d)]['password']),_0x2312b9={};_0x2312b9['WebSocket']=ws,_0x2312b9[_0x5380f1(0x1ef)]=0x36ee80,_0x3c22ba=new ReconnectingWebSocket(_0x5e00ba,[],_0x2312b9),global_registry[_0x5380f1(0x214)]=_0x331fdb[_0x5380f1(0x1dd)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x5380f1(0x218)]),await _0x331fdb[_0x5380f1(0x1ba)](inputValidation,_0x388ace,_0x3c22ba),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x5380f1(0x191)]+_0x5380f1(0x15a)+global_registry['clusterRegion']);let _0x1761e1=await _0x331fdb[_0x5380f1(0x16c)](getCloudProviderObjectWithOutInit,global_registry[_0x5380f1(0x191)],global_registry['clusterName'],_0x331fdb[_0x5380f1(0x1d2)],_0x3c22ba,webSocketUtils,_0x388ace);const _0x398053=await _0x1761e1[_0x5380f1(0x16b)]();_0x331fdb[_0x5380f1(0x1dd)](printResponse,_0x331fdb['RZjxE'],_0x398053),_0x1761e1=await _0x1761e1[_0x5380f1(0x1fa)]();let _0x4ecedf=![];try{_0x4ecedf=await _0x1761e1[_0x5380f1(0x1a3)]();}catch(_0x45534d){const _0x3be4e2=_0x331fdb[_0x5380f1(0x177)]['split']('|');let _0x8008cd=0x0;while(!![]){switch(_0x3be4e2[_0x8008cd++]){case'0':_0x351675+='\x0a'+JSON[_0x5380f1(0x1a1)](_0x45534d['stack']);continue;case'1':logger[_0x5380f1(0x220)](_0x351675);continue;case'2':_0x351675=_0x5380f1(0x168)+global_registry[_0x5380f1(0x1fc)]+_0x5380f1(0x1da)+global_registry[_0x5380f1(0x1fe)]+_0x5380f1(0x230)+_0x45534d;continue;case'3':_0x4ecedf=null;continue;case'4':await _0x331fdb['CzJAl'](reportToGalactusAndSendToEDS,_0x388ace,_0x3c22ba,_0x351675,messageTypes[_0x5380f1(0x1c4)],_0x331fdb[_0x5380f1(0x1cd)],_0x5380f1(0x1fb)+global_registry[_0x5380f1(0x191)],_0x331fdb[_0x5380f1(0x23d)]);continue;}break;}}_0x4ecedf&&logger[_0x5380f1(0x19a)](_0x5380f1(0x175)+global_registry[_0x5380f1(0x1fc)]+'`\x20already\x20exists');const _0x2b1eec=await _0x1761e1[_0x5380f1(0x1a9)]();_0x331fdb[_0x5380f1(0x1dd)](printResponse,_0x331fdb[_0x5380f1(0x1f0)],_0x2b1eec);const _0x41c4fb=await _0x331fdb['YBjsr'](curlRequest);_0x331fdb['UPFMP'](printResponse,_0x331fdb[_0x5380f1(0x182)],_0x41c4fb);const _0x1b8f39=await _0x331fdb[_0x5380f1(0x176)](isTlsSupported,_0x331fdb['gqLKc']);_0x331fdb[_0x5380f1(0x202)](printResponse,_0x331fdb[_0x5380f1(0x251)],_0x1b8f39);const _0x4f9eb8={};_0x4f9eb8[_0x5380f1(0x19e)]=_0x331fdb['ybUkA'],_0x4f9eb8[_0x5380f1(0x173)]=_0x398053;const _0x4a9ccb={};_0x4a9ccb[_0x5380f1(0x19e)]=_0x331fdb[_0x5380f1(0x1f6)],_0x4a9ccb[_0x5380f1(0x173)]=_0x2b1eec;const _0xa0aa9a={};_0xa0aa9a[_0x5380f1(0x19e)]=_0x331fdb[_0x5380f1(0x172)],_0xa0aa9a[_0x5380f1(0x173)]=_0x41c4fb;const _0x1f6417={};_0x1f6417[_0x5380f1(0x19e)]=_0x331fdb['qFAqA'],_0x1f6417[_0x5380f1(0x173)]=_0x1b8f39;const _0x39c227=[_0x4f9eb8,_0x4a9ccb,_0xa0aa9a,_0x1f6417],_0x286784=await _0x331fdb[_0x5380f1(0x17c)](generateReport,_0x39c227,_0x4ecedf),_0xf5ccbf=new Date(),_0x85ec5b=_0xf5ccbf['getUTCFullYear']()+'_'+_0x331fdb[_0x5380f1(0x231)](_0xf5ccbf[_0x5380f1(0x228)](),0x1)+'_'+_0xf5ccbf[_0x5380f1(0x243)]()+'_'+_0xf5ccbf[_0x5380f1(0x20f)]()+'_'+_0xf5ccbf[_0x5380f1(0x1ec)](),_0x1af27a=_0x5380f1(0x1e1)+_0x85ec5b+_0x5380f1(0x21f);fs[_0x5380f1(0x1b0)](_0x1af27a,_0x286784,_0x331fdb['YhDTi']),logger[_0x5380f1(0x19a)](_0x5380f1(0x258)+_0x1af27a),process[_0x5380f1(0x19b)](0x0);}catch(_0x12687c){let _0x1f870a=_0x5380f1(0x24b)+_0x12687c+'\x20';logger[_0x5380f1(0x220)](_0x1f870a),_0x1f870a+='\x0a'+JSON[_0x5380f1(0x1a1)](_0x12687c['stack']),logger[_0x5380f1(0x246)]('stack\x20trace\x20'+_0x12687c[_0x5380f1(0x253)]);if(_0x3c22ba){const _0x8572cd={};_0x8572cd['type']=WS_EVENTS[_0x5380f1(0x15f)],_0x8572cd[_0x5380f1(0x1c6)]=_0x1f870a,webSocketUtils['sendEventToBackend'](_0x3c22ba,_0x8572cd,_0x331fdb[_0x5380f1(0x23d)],!![]);}await webSocketUtils[_0x5380f1(0x160)](0x7d0);const _0x17bb47={};_0x17bb47[_0x5380f1(0x220)]=_0x1f870a,await _0x331fdb[_0x5380f1(0x189)](sendInstrumentationEvent,_0x388ace,_0x331fdb[_0x5380f1(0x1cd)],messageTypes[_0x5380f1(0x1c4)],_0x331fdb[_0x5380f1(0x244)],_0x17bb47,_0x388ace),process[_0x5380f1(0x19b)](0x1);}};
1
+ const a17_0x37b7b2=a17_0x4218;(function(_0x6c62a8,_0x9ee1da){const _0x45efbb=a17_0x4218,_0x25fed1=_0x6c62a8();while(!![]){try{const _0xeb13f9=-parseInt(_0x45efbb(0x1ea))/0x1+parseInt(_0x45efbb(0x2ba))/0x2*(parseInt(_0x45efbb(0x2c3))/0x3)+-parseInt(_0x45efbb(0x210))/0x4*(parseInt(_0x45efbb(0x290))/0x5)+-parseInt(_0x45efbb(0x212))/0x6+parseInt(_0x45efbb(0x298))/0x7+-parseInt(_0x45efbb(0x1e4))/0x8*(-parseInt(_0x45efbb(0x26b))/0x9)+parseInt(_0x45efbb(0x1f7))/0xa*(-parseInt(_0x45efbb(0x22b))/0xb);if(_0xeb13f9===_0x9ee1da)break;else _0x25fed1['push'](_0x25fed1['shift']());}catch(_0x36798e){_0x25fed1['push'](_0x25fed1['shift']());}}}(a17_0x41f1,0xdce1b));const fs=require('fs'),ws=require('ws'),got=require(a17_0x37b7b2(0x218)),{v4:uuidv4}=require(a17_0x37b7b2(0x1e3)),ReconnectingWebSocket=require(a17_0x37b7b2(0x229)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x37b7b2(0x1ed)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x37b7b2(0x256)),{getCloudProviderObjectWithOutInit}=require(a17_0x37b7b2(0x2c4)),webSocketUtils=require(a17_0x37b7b2(0x29d)),{sendInstrumentationEvent}=require(a17_0x37b7b2(0x274));exports['command']='grid',exports['desc']=a17_0x37b7b2(0x293),exports[a17_0x37b7b2(0x203)]=function(_0x2333ce){const _0x709de6=a17_0x37b7b2,_0x42da92={};_0x42da92[_0x709de6(0x270)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x42da92[_0x709de6(0x226)]=_0x709de6(0x247),_0x42da92[_0x709de6(0x24a)]=_0x709de6(0x2d7),_0x42da92[_0x709de6(0x2a0)]=_0x709de6(0x2b7),_0x42da92[_0x709de6(0x271)]=_0x709de6(0x254),_0x42da92[_0x709de6(0x1fc)]=_0x709de6(0x223);const _0x1034cc=_0x42da92,_0x4ca511={};_0x4ca511[_0x709de6(0x26d)]=_0x1034cc['xOfGs'],_0x4ca511[_0x709de6(0x2d2)]=_0x1034cc[_0x709de6(0x226)];const _0x44f7ab={};_0x44f7ab[_0x709de6(0x26d)]=_0x1034cc[_0x709de6(0x24a)],_0x44f7ab[_0x709de6(0x2d2)]=_0x1034cc['WgVVR'];const _0x4b1991={};_0x4b1991[_0x709de6(0x26d)]=_0x1034cc[_0x709de6(0x2a0)],_0x4b1991[_0x709de6(0x2d2)]=_0x1034cc[_0x709de6(0x226)];const _0x1bfed2={};_0x1bfed2[_0x709de6(0x26d)]=_0x1034cc['zGRdT'],_0x1bfed2[_0x709de6(0x2d2)]=_0x1034cc[_0x709de6(0x226)];const _0x1e7b63={};return _0x1e7b63[_0x709de6(0x2b0)]=_0x4ca511,_0x1e7b63[_0x709de6(0x25a)]=_0x44f7ab,_0x1e7b63['region']=_0x4b1991,_0x1e7b63[_0x709de6(0x260)]=_0x1bfed2,_0x2333ce[_0x709de6(0x252)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x709de6(0x28e)](_0x1e7b63)[_0x709de6(0x223)](_0x1034cc['yQjBA'])[_0x709de6(0x24b)];};async function inputValidation(_0x14eb54,_0x4d98a7){const _0x34af35=a17_0x37b7b2,_0x5d01b9={'dYUOP':_0x34af35(0x2ae),'iLtPH':_0x34af35(0x25a),'pMqKO':_0x34af35(0x2a2),'krCUx':_0x34af35(0x213),'MMTCW':_0x34af35(0x2d6),'UEuhm':_0x34af35(0x247),'NFXxV':_0x34af35(0x2d7),'WJKnw':_0x34af35(0x2b7),'oRcdL':_0x34af35(0x254),'RPlTi':'help','CFHhg':'is\x20already\x20present','axduH':'will\x20be\x20created','chzll':function(_0x59a985,_0x1734e5){return _0x59a985+_0x1734e5;},'jpxot':'Success','zQNuY':_0x34af35(0x2ca),'vAOyv':function(_0x2e73a1,_0x150786){return _0x2e73a1||_0x150786;},'ZbRtQ':_0x34af35(0x2b0),'PrKsF':_0x34af35(0x26c),'DsIgv':_0x34af35(0x277),'oNXDI':function(_0x27f946,_0x3355b4){return _0x27f946!==_0x3355b4;},'vmCre':_0x34af35(0x288),'MlMUj':_0x34af35(0x261),'Lcydb':function(_0x580ad1,_0x5671c0){return _0x580ad1===_0x5671c0;},'LqMkK':'xGOCb','EGafg':function(_0x546fa6,_0x2697c9){return _0x546fa6===_0x2697c9;},'qIhuh':_0x34af35(0x291),'yYPNA':function(_0x43aefd,_0x521e53){return _0x43aefd===_0x521e53;},'NGRDq':_0x34af35(0x200),'wmgbZ':function(_0x401ef3,_0x2e156c){return _0x401ef3===_0x2e156c;},'KSlQP':'EuNie','wmwtC':function(_0xd40238,_0xf7507f){return _0xd40238>_0xf7507f;},'hXHwo':_0x34af35(0x1eb),'OEHdr':function(_0x947188,_0x443f50,_0x19d493,_0x522aa2,_0x139b3a,_0x1c3cbb,_0x24a585,_0x434060){return _0x947188(_0x443f50,_0x19d493,_0x522aa2,_0x139b3a,_0x1c3cbb,_0x24a585,_0x434060);},'AFWeo':_0x34af35(0x248),'fjNkN':_0x34af35(0x292),'gKksn':function(_0x1bad57,_0x57b50f){return _0x1bad57===_0x57b50f;},'ysbTB':_0x34af35(0x26a),'smMvj':_0x34af35(0x21f),'QkhrN':function(_0x10ba92,_0x4455b5,_0x1c9a6d,_0x3a00c7,_0x74960d,_0x2981f6,_0xfe3af0,_0x186361){return _0x10ba92(_0x4455b5,_0x1c9a6d,_0x3a00c7,_0x74960d,_0x2981f6,_0xfe3af0,_0x186361);},'XhDbI':_0x34af35(0x22a),'VnIZj':_0x34af35(0x27b),'sladi':_0x34af35(0x2ad),'EGalG':_0x34af35(0x2c6),'njrMg':function(_0x574f5b,_0x2cc3d3,_0x2f918f){return _0x574f5b(_0x2cc3d3,_0x2f918f);},'rzuFd':function(_0x2eb2a6,_0x29149d,_0x1d616b,_0x1f445a,_0x2231bc,_0x21485c){return _0x2eb2a6(_0x29149d,_0x1d616b,_0x1f445a,_0x2231bc,_0x21485c);},'ROJhH':_0x34af35(0x245),'HtsjF':_0x34af35(0x260),'fThEP':function(_0x2dfb3a,_0xab5468){return _0x2dfb3a===_0xab5468;},'NZdJm':'ElRoX','LPqVk':function(_0x459869,_0x17a350){return _0x459869(_0x17a350);},'tAmcs':_0x34af35(0x278),'ZuctQ':_0x34af35(0x231),'VOxJy':_0x34af35(0x23b),'TxNYn':function(_0x369be3,_0x238537){return _0x369be3===_0x238537;},'qEOJa':'SPLfI','yrzDf':_0x34af35(0x281),'ChRuk':_0x34af35(0x233),'tHCLD':function(_0x45d1cd,_0x5dc226){return _0x45d1cd!==_0x5dc226;},'CrXaN':_0x34af35(0x258),'mnTFv':_0x34af35(0x29a),'xCiUv':_0x34af35(0x224),'SWzYf':_0x34af35(0x20e),'pBnfJ':function(_0x2b2607,_0x555cd1,_0x4fad87,_0x41cb51,_0x53768a,_0x1ba345,_0x5cf28d,_0x5d5ad9){return _0x2b2607(_0x555cd1,_0x4fad87,_0x41cb51,_0x53768a,_0x1ba345,_0x5cf28d,_0x5d5ad9);}};let _0x3447a6;try{if(_0x5d01b9[_0x34af35(0x1fb)](_0x5d01b9[_0x34af35(0x2c2)],_0x5d01b9[_0x34af35(0x20b)])){if(_0x14eb54[_0x34af35(0x282)]||_0x14eb54[_0x34af35(0x240)]||_0x14eb54['region']){if(_0x5d01b9['Lcydb'](_0x5d01b9[_0x34af35(0x2a1)],_0x5d01b9[_0x34af35(0x2a1)])){const _0xa6c201=[];!_0x14eb54[_0x34af35(0x282)]&&(_0x5d01b9['EGafg'](_0x5d01b9[_0x34af35(0x25d)],_0x5d01b9[_0x34af35(0x25d)])?_0xa6c201[_0x34af35(0x238)](_0x5d01b9[_0x34af35(0x1f8)]):(_0x214376[_0x34af35(0x26c)](_0x5d01b9[_0x34af35(0x251)]),_0x4aa902[_0x34af35(0x21e)](0x1)));;!_0x14eb54[_0x34af35(0x240)]&&(_0x5d01b9[_0x34af35(0x1ef)](_0x5d01b9[_0x34af35(0x1e5)],_0x5d01b9[_0x34af35(0x1e5)])?_0xa6c201['push'](_0x5d01b9[_0x34af35(0x275)]):_0x386649[_0x34af35(0x238)](_0x5d01b9[_0x34af35(0x275)]));;!_0x14eb54[_0x34af35(0x277)]&&(_0x5d01b9[_0x34af35(0x20c)](_0x5d01b9['KSlQP'],_0x5d01b9[_0x34af35(0x1ff)])?_0xa6c201[_0x34af35(0x238)](_0x5d01b9[_0x34af35(0x2dc)]):_0x4c39e7['error'](_0x34af35(0x2b3)+_0x18ec51['error'][_0x34af35(0x269)]));;_0x5d01b9[_0x34af35(0x286)](_0xa6c201[_0x34af35(0x208)],0x0)&&(_0x5d01b9[_0x34af35(0x20c)](_0x5d01b9[_0x34af35(0x2d9)],_0x5d01b9['hXHwo'])?(_0x3447a6=_0x34af35(0x27d)+_0xa6c201[_0x34af35(0x28d)](',\x20')+_0x34af35(0x21c),await _0x5d01b9[_0x34af35(0x23c)](reportToGalactusAndSendToEDS,_0x14eb54,_0x4d98a7,_0x3447a6,messageTypes[_0x34af35(0x2b4)],_0x5d01b9[_0x34af35(0x2d1)],_0x5d01b9['fjNkN'],_0x5d01b9[_0x34af35(0x221)]),logger[_0x34af35(0x26c)](_0x3447a6),process['exit'](0x1)):_0x2cc241=_0x262ca5);if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x34af35(0x1ec)](_0x14eb54[_0x34af35(0x240)]['toLowerCase']())){if(_0x5d01b9[_0x34af35(0x284)](_0x5d01b9[_0x34af35(0x2c5)],_0x5d01b9[_0x34af35(0x2c5)]))_0x3447a6=_0x5d01b9[_0x34af35(0x25b)],await _0x5d01b9[_0x34af35(0x25e)](reportToGalactusAndSendToEDS,_0x14eb54,_0x4d98a7,_0x3447a6,messageTypes[_0x34af35(0x2b4)],_0x5d01b9['AFWeo'],_0x5d01b9['XhDbI'],_0x5d01b9['PrKsF']),logger[_0x34af35(0x26c)](_0x3447a6),!_0x14eb54[_0x34af35(0x240)]&&(_0x5d01b9[_0x34af35(0x20c)](_0x5d01b9[_0x34af35(0x26e)],_0x5d01b9[_0x34af35(0x26e)])?(logger[_0x34af35(0x28b)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x34af35(0x2be)]+'\x20'),_0x14eb54[_0x34af35(0x240)]=DEFAULT_CLUSTER_DETAILS[_0x34af35(0x2be)]):(_0x5a9834+=_0x5d01b9['pMqKO'],_0x33691d+=_0x34af35(0x215)+(_0x42666f[_0x34af35(0x25c)]||_0x5d01b9[_0x34af35(0x219)])+'\x0a',_0x3bfece+=_0x34af35(0x29c)+(_0x150f7f[_0x34af35(0x1f4)]||_0x5d01b9[_0x34af35(0x219)])+'\x0a',_0x14b712+='\x20\x20Stack:\x20'+(_0x50e966[_0x34af35(0x269)]||_0x5d01b9[_0x34af35(0x219)])+'\x0a'));else{const _0x99f491={};_0x99f491['description']=_0x5d01b9['MMTCW'],_0x99f491['type']=_0x5d01b9[_0x34af35(0x20f)];const _0x2910ec={};_0x2910ec[_0x34af35(0x26d)]=_0x5d01b9[_0x34af35(0x232)],_0x2910ec[_0x34af35(0x2d2)]=_0x5d01b9[_0x34af35(0x20f)];const _0x5bcc46={};_0x5bcc46[_0x34af35(0x26d)]=_0x5d01b9[_0x34af35(0x2ab)],_0x5bcc46['type']=_0x5d01b9[_0x34af35(0x20f)];const _0x6c5492={};_0x6c5492[_0x34af35(0x26d)]=_0x5d01b9[_0x34af35(0x28a)],_0x6c5492[_0x34af35(0x2d2)]=_0x5d01b9['UEuhm'];const _0x260028={};return _0x260028[_0x34af35(0x2b0)]=_0x99f491,_0x260028[_0x34af35(0x25a)]=_0x2910ec,_0x260028[_0x34af35(0x277)]=_0x5bcc46,_0x260028[_0x34af35(0x260)]=_0x6c5492,_0x475483['usage'](_0x1d4324[_0x34af35(0x2cd)])['epilogue'](_0x48cb06)[_0x34af35(0x28e)](_0x260028)['help'](_0x5d01b9[_0x34af35(0x2c1)])[_0x34af35(0x24b)];}}global_registry['clusterName']=_0x14eb54[_0x34af35(0x282)],global_registry[_0x34af35(0x240)]=_0x14eb54[_0x34af35(0x240)],global_registry[_0x34af35(0x2d8)]=_0x14eb54[_0x34af35(0x277)];}else _0x4c270c+=_0x34af35(0x280)+_0x2032d4[_0x34af35(0x282)]+'\x20'+(_0x398950?_0x5d01b9[_0x34af35(0x2bb)]:_0x5d01b9['axduH'])+'\x0a\x0a';}else{if(_0x14eb54[_0x34af35(0x2c8)]){if(_0x5d01b9[_0x34af35(0x1fb)](_0x5d01b9['sladi'],_0x5d01b9['sladi'])){const {header:_0x2a42dd,response:_0x3d19cc}=_0x3b586f,{status:_0x22e5b5,data:_0x5d5316,error:_0x4914da}=_0x3d19cc;_0x380a3c+=_0x2a42dd+'\x20#'+_0x5d01b9[_0x34af35(0x263)](_0xa43992,0x1)+'\x0a',_0x1f00be+=_0x34af35(0x21a)+(_0x22e5b5?_0x5d01b9['jpxot']:_0x5d01b9[_0x34af35(0x297)])+'\x0a',_0x1fd71e+=_0x34af35(0x287)+_0x5d01b9[_0x34af35(0x24d)](_0x5d5316,_0x5d01b9[_0x34af35(0x219)])+'\x0a',_0x4914da&&(_0x236098+=_0x5d01b9[_0x34af35(0x1fe)],_0x70fc1d+='\x20\x20Message:\x20'+(_0x4914da[_0x34af35(0x25c)]||_0x5d01b9['krCUx'])+'\x0a',_0x479390+=_0x34af35(0x29c)+(_0x4914da[_0x34af35(0x1f4)]||_0x5d01b9['krCUx'])+'\x0a',_0x478202+=_0x34af35(0x2a9)+(_0x4914da[_0x34af35(0x269)]||_0x5d01b9[_0x34af35(0x219)])+'\x0a'),_0x40a309+='\x0a\x0a';}else{global_registry[_0x34af35(0x2c8)]=_0x14eb54['gridProfile'],logger[_0x34af35(0x241)](_0x34af35(0x2aa)+_0x14eb54['gridProfile']);const _0x533f75=_0x34af35(0x21d)+AG_API_URL+_0x34af35(0x225),_0x5e66b6={};_0x5e66b6[_0x34af35(0x27e)]=_0x5d01b9[_0x34af35(0x211)],_0x5e66b6[_0x34af35(0x20a)]=global_registry[_0x34af35(0x230)],_0x5e66b6[_0x34af35(0x2a4)]=![];const _0x506e78=_0x5e66b6,_0x3aa046=await _0x5d01b9[_0x34af35(0x216)](got,_0x533f75,_0x506e78),_0x338cff=await _0x5d01b9[_0x34af35(0x262)](responseValidation,_0x3aa046,_0x5d01b9[_0x34af35(0x2da)],_0x5d01b9['HtsjF'],_0x14eb54,_0x4d98a7);let _0x1b5824={};if(_0x5d01b9[_0x34af35(0x296)](_0x338cff,0xc8)){if(_0x5d01b9['EGafg'](_0x5d01b9[_0x34af35(0x273)],_0x5d01b9[_0x34af35(0x273)])){const _0x54617e=JSON['parse'](_0x3aa046['body']),_0x1f33d4=_0x54617e[_0x34af35(0x23d)](_0x444ee1=>_0x444ee1[_0x34af35(0x28f)]===_0x14eb54[_0x34af35(0x2c8)])||null;_0x5d01b9[_0x34af35(0x2c0)](isUndefined,_0x1f33d4)?_0x5d01b9['Lcydb'](_0x5d01b9[_0x34af35(0x1f3)],_0x5d01b9[_0x34af35(0x1f3)])?(_0x3447a6=_0x34af35(0x1f0)+_0x14eb54[_0x34af35(0x2c8)]+_0x34af35(0x295),await _0x5d01b9['QkhrN'](reportToGalactusAndSendToEDS,_0x14eb54,_0x4d98a7,_0x3447a6,messageTypes[_0x34af35(0x2b4)],_0x5d01b9['AFWeo'],_0x5d01b9[_0x34af35(0x2db)],_0x5d01b9[_0x34af35(0x221)]),logger[_0x34af35(0x26c)](_0x3447a6),process[_0x34af35(0x21e)](0x1)):_0x731a3f+='Cluster\x20'+_0x2c437f['clusterName']+_0x34af35(0x2cf):_0x5d01b9[_0x34af35(0x1fb)](_0x5d01b9[_0x34af35(0x265)],_0x5d01b9[_0x34af35(0x265)])?_0x398615[_0x34af35(0x21e)](0x1):_0x1b5824=_0x1f33d4;}else _0x41f043[_0x34af35(0x238)](_0x5d01b9[_0x34af35(0x1f8)]);}else{if(_0x5d01b9['TxNYn'](_0x5d01b9[_0x34af35(0x209)],_0x5d01b9[_0x34af35(0x242)])){const _0x3b62eb={};_0x3b62eb[_0x34af35(0x2d2)]=_0x4f8b10['LOG'],_0x3b62eb['message']=_0x441533,_0x2cad3a[_0x34af35(0x1fd)](_0x5e5f05,_0x3b62eb,_0x5d01b9['PrKsF'],!![]);}else process[_0x34af35(0x21e)](0x1);}const _0x6e3bc3={};_0x6e3bc3[_0x34af35(0x2d2)]=WS_EVENTS[_0x34af35(0x2b2)],_0x6e3bc3[_0x34af35(0x25c)]=_0x5d01b9['ChRuk'],webSocketUtils['sendEventToBackend'](_0x4d98a7,_0x6e3bc3),global_registry['cloudProvider']=_0x1b5824[_0x34af35(0x240)],global_registry['clusterRegion']=_0x1b5824[_0x34af35(0x277)],global_registry[_0x34af35(0x282)]=_0x1b5824[_0x34af35(0x282)];}}else _0x5d01b9[_0x34af35(0x2a7)](_0x5d01b9[_0x34af35(0x28c)],_0x5d01b9[_0x34af35(0x259)])?(logger[_0x34af35(0x26c)](_0x5d01b9[_0x34af35(0x251)]),process[_0x34af35(0x21e)](0x1)):(_0x2b298b['info']('['+_0x395de0+_0x34af35(0x220)+_0x43783c[_0x34af35(0x27f)]+_0x34af35(0x285)+_0x33d7a4['data']+'\x20error\x20:\x20'+_0x5dc7b5[_0x34af35(0x26c)]),_0x321ca5[_0x34af35(0x26c)]&&_0x14878d['error']('error\x20stack\x20:\x20'+_0x27a1e1['error'][_0x34af35(0x269)]));}}else _0x17e8bd['push'](_0x5d01b9[_0x34af35(0x2dc)]);}catch(_0x1f0d97){_0x5d01b9['tHCLD'](_0x5d01b9[_0x34af35(0x279)],_0x5d01b9[_0x34af35(0x268)])?(_0x3447a6=_0x34af35(0x1e9)+_0x1f0d97+':\x20'+_0x1f0d97[_0x34af35(0x269)],logger[_0x34af35(0x26c)](_0x3447a6),await _0x5d01b9[_0x34af35(0x2bc)](reportToGalactusAndSendToEDS,_0x14eb54,_0x4d98a7,_0x3447a6,messageTypes[_0x34af35(0x2b4)],_0x5d01b9['AFWeo'],_0x5d01b9[_0x34af35(0x22c)],_0x5d01b9['PrKsF']),process['exit'](0x1)):(_0x34437['info'](_0x34af35(0x206)+_0x4019ce[_0x34af35(0x2be)]+'\x20'),_0x2a0fff['cloudProvider']=_0x51c2db[_0x34af35(0x2be)]);}}function printResponse(_0x9d707b,_0x37581f){const _0xb61ab9=a17_0x37b7b2,_0x2eace7={};_0x2eace7['iqMeH']=function(_0x2c5745,_0x441623){return _0x2c5745===_0x441623;},_0x2eace7[_0xb61ab9(0x239)]='uTGWB';const _0x409b63=_0x2eace7;logger['info']('['+_0x9d707b+_0xb61ab9(0x220)+_0x37581f[_0xb61ab9(0x27f)]+_0xb61ab9(0x285)+_0x37581f[_0xb61ab9(0x228)]+_0xb61ab9(0x27c)+_0x37581f[_0xb61ab9(0x26c)]),_0x37581f[_0xb61ab9(0x26c)]&&(_0x409b63['iqMeH'](_0x409b63[_0xb61ab9(0x239)],_0x409b63['ZCFpZ'])?logger['error'](_0xb61ab9(0x2b3)+_0x37581f[_0xb61ab9(0x26c)][_0xb61ab9(0x269)]):_0x14f5c5[_0xb61ab9(0x28b)](_0xb61ab9(0x2a3)+_0x15cd17[_0xb61ab9(0x282)]+_0xb61ab9(0x257)));}async function generateReport(_0x48ccf0,_0x5bd313){const _0xdb4721=a17_0x37b7b2,_0x265d7b={'qNtCE':function(_0x269650,_0x4e4e2c){return _0x269650+_0x4e4e2c;},'VBqMM':_0xdb4721(0x29e),'MSlpX':_0xdb4721(0x2ca),'OUHYv':function(_0x100051,_0x561d3b){return _0x100051||_0x561d3b;},'hCVCn':_0xdb4721(0x213),'PPdNK':_0xdb4721(0x2a2),'BjqJR':_0xdb4721(0x207),'GwqQs':function(_0x556339,_0x1f9409){return _0x556339!=_0x1f9409;},'HgDkK':_0xdb4721(0x2b1),'FZaxR':_0xdb4721(0x2d4),'bQFAD':function(_0x2d6ece){return _0x2d6ece();}};let _0x152672=_0xdb4721(0x1e6)+global_registry[_0xdb4721(0x240)]+'\x20===\x0a\x0a';return _0x48ccf0[_0xdb4721(0x294)]((_0x274ec5,_0x3391fb)=>{const _0xd880cd=_0xdb4721,{header:_0x218f9e,response:_0x6a1116}=_0x274ec5,{status:_0x175ef9,data:_0x4a3aee,error:_0x26ef89}=_0x6a1116;_0x152672+=_0x218f9e+'\x20#'+_0x265d7b[_0xd880cd(0x227)](_0x3391fb,0x1)+'\x0a',_0x152672+=_0xd880cd(0x21a)+(_0x175ef9?_0x265d7b['VBqMM']:_0x265d7b[_0xd880cd(0x202)])+'\x0a',_0x152672+=_0xd880cd(0x287)+_0x265d7b['OUHYv'](_0x4a3aee,_0x265d7b[_0xd880cd(0x272)])+'\x0a',_0x26ef89&&(_0x152672+=_0x265d7b[_0xd880cd(0x29f)],_0x152672+=_0xd880cd(0x215)+(_0x26ef89[_0xd880cd(0x25c)]||_0x265d7b[_0xd880cd(0x272)])+'\x0a',_0x152672+=_0xd880cd(0x29c)+(_0x26ef89['code']||_0x265d7b[_0xd880cd(0x272)])+'\x0a',_0x152672+=_0xd880cd(0x2a9)+(_0x26ef89['stack']||_0x265d7b[_0xd880cd(0x272)])+'\x0a'),_0x152672+='\x0a\x0a';}),_0x152672+=_0x265d7b[_0xdb4721(0x299)],_0x265d7b['GwqQs'](_0x5bd313,null)?_0x152672+=_0xdb4721(0x280)+global_registry[_0xdb4721(0x282)]+'\x20'+(_0x5bd313?_0x265d7b[_0xdb4721(0x201)]:_0x265d7b['FZaxR'])+'\x0a\x0a':_0x152672+='Cluster\x20'+global_registry[_0xdb4721(0x282)]+_0xdb4721(0x2cf),_0x152672+=_0x265d7b['bQFAD'](getSystemMetaData),_0x152672;}function a17_0x4218(_0x191212,_0x4990dd){const _0x41f105=a17_0x41f1();return a17_0x4218=function(_0x421847,_0x1e67fd){_0x421847=_0x421847-0x1e3;let _0x3c3a10=_0x41f105[_0x421847];return _0x3c3a10;},a17_0x4218(_0x191212,_0x4990dd);};exports[a17_0x37b7b2(0x249)]=async function(_0x2e0e54){const _0x39cd90=a17_0x37b7b2,_0x5bc161={'JYHzw':function(_0xd7e5c4){return _0xd7e5c4();},'HBLyD':function(_0x3f8e5c){return _0x3f8e5c();},'hNfPS':_0x39cd90(0x2d5),'SuTxe':function(_0x33997d,_0x52d420,_0x549eec,_0x53a56d,_0x3dafe5,_0x332596,_0x2f5589,_0x11e7da){return _0x33997d(_0x52d420,_0x549eec,_0x53a56d,_0x3dafe5,_0x332596,_0x2f5589,_0x11e7da);},'SmHqI':'pre-check-grid-called','vLHKy':'credential-not-found','TbvHI':_0x39cd90(0x26c),'ZJZGx':function(_0x4a4ac3,_0x32f15e,_0x2a08af,_0x4b4898,_0x56b3ca,_0x51040c,_0x2747e3){return _0x4a4ac3(_0x32f15e,_0x2a08af,_0x4b4898,_0x56b3ca,_0x51040c,_0x2747e3);},'KMdMU':_0x39cd90(0x1ee),'qvWyH':_0x39cd90(0x2b9),'pBTuA':function(_0x57ce37,_0x31cc98,_0x591974){return _0x57ce37(_0x31cc98,_0x591974);},'AArjA':_0x39cd90(0x2ac),'sAepd':function(_0x2edb8f,_0x279bfb,_0x161234){return _0x2edb8f(_0x279bfb,_0x161234);},'zJSYh':_0x39cd90(0x2cb),'CSZYU':'1|0|4|2|3','kMKCN':'accessResp','mIghs':function(_0x5005ed){return _0x5005ed();},'hdqcM':_0x39cd90(0x24c),'fhBoK':function(_0xc158ec,_0x5cee41){return _0xc158ec(_0x5cee41);},'bSkiM':_0x39cd90(0x2a6),'dlneJ':_0x39cd90(0x2a8),'NpcXF':_0x39cd90(0x1f6),'TzXex':_0x39cd90(0x2af),'xgaMj':_0x39cd90(0x2ce),'FEUzz':'SSL\x20Configured','HdzKL':function(_0x1d7951,_0x2f6474){return _0x1d7951+_0x2f6474;},'FJgGZ':_0x39cd90(0x22d),'jwALu':_0x39cd90(0x250)};let _0x5095f4,_0x30a6ab;try{global_registry[_0x39cd90(0x1fa)]=_0x5bc161[_0x39cd90(0x264)](uuidv4);!fs[_0x39cd90(0x1f1)](_0x5bc161[_0x39cd90(0x23e)](getCredentialsPath))&&(_0x30a6ab=_0x5bc161[_0x39cd90(0x2de)],logger[_0x39cd90(0x26c)](_0x30a6ab),await _0x5bc161[_0x39cd90(0x1f5)](reportToGalactusAndSendToEDS,_0x2e0e54,_0x5095f4,_0x30a6ab,messageTypes[_0x39cd90(0x2b4)],_0x5bc161[_0x39cd90(0x283)],_0x5bc161['vLHKy'],_0x5bc161[_0x39cd90(0x276)]),process[_0x39cd90(0x21e)](0x1));_0x5bc161[_0x39cd90(0x22f)](sendInstrumentationEvent,_0x2e0e54,_0x5bc161[_0x39cd90(0x283)],messageTypes[_0x39cd90(0x2b5)],null,null,_0x2e0e54);const _0x2bbb6c=JSON['parse'](fs[_0x39cd90(0x205)](_0x5bc161['JYHzw'](getCredentialsPath)));global_registry[_0x39cd90(0x289)]=_0x2bbb6c[_0x39cd90(0x2df)][_0x39cd90(0x26f)],global_registry[_0x39cd90(0x2dd)]=_0x2bbb6c[_0x39cd90(0x2df)]['password'];const _0x3e49da=WS_ENDPOINT[_0x39cd90(0x1f9)](_0x5bc161['KMdMU'],_0x2bbb6c[_0x39cd90(0x2df)][_0x39cd90(0x26f)])['replace'](_0x5bc161[_0x39cd90(0x2cc)],_0x2bbb6c['Browserstack'][_0x39cd90(0x244)]),_0x382429={};_0x382429[_0x39cd90(0x236)]=ws,_0x382429[_0x39cd90(0x243)]=0x36ee80,_0x5095f4=new ReconnectingWebSocket(_0x3e49da,[],_0x382429),global_registry[_0x39cd90(0x230)]=_0x5bc161[_0x39cd90(0x2a5)](getAuthHeader,global_registry[_0x39cd90(0x289)],global_registry[_0x39cd90(0x2dd)]),await _0x5bc161[_0x39cd90(0x2a5)](inputValidation,_0x2e0e54,_0x5095f4),logger['info'](_0x39cd90(0x1e7)+global_registry['cloudProvider']+_0x39cd90(0x253)+global_registry[_0x39cd90(0x2d8)]);let _0x108e13=await _0x5bc161[_0x39cd90(0x22f)](getCloudProviderObjectWithOutInit,global_registry[_0x39cd90(0x240)],global_registry['clusterName'],_0x5bc161[_0x39cd90(0x25f)],_0x5095f4,webSocketUtils,_0x2e0e54);const _0x2e6335=await _0x108e13['isCliToolInstalled']();_0x5bc161[_0x39cd90(0x2c9)](printResponse,_0x5bc161[_0x39cd90(0x255)],_0x2e6335),_0x108e13=await _0x108e13[_0x39cd90(0x237)]();let _0x41e8e5=![];try{_0x41e8e5=await _0x108e13[_0x39cd90(0x2c7)]();}catch(_0x1a7358){const _0x210b04=_0x5bc161[_0x39cd90(0x2bf)][_0x39cd90(0x27a)]('|');let _0x4d6e34=0x0;while(!![]){switch(_0x210b04[_0x4d6e34++]){case'0':_0x41e8e5=null;continue;case'1':_0x30a6ab='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x39cd90(0x282)]+_0x39cd90(0x234)+global_registry[_0x39cd90(0x2d8)]+_0x39cd90(0x2d0)+_0x1a7358;continue;case'2':_0x30a6ab+='\x0a'+JSON[_0x39cd90(0x24e)](_0x1a7358['stack']);continue;case'3':await _0x5bc161[_0x39cd90(0x1f5)](reportToGalactusAndSendToEDS,_0x2e0e54,_0x5095f4,_0x30a6ab,messageTypes[_0x39cd90(0x2b4)],_0x5bc161['SmHqI'],_0x39cd90(0x2b6)+global_registry['cloudProvider'],_0x5bc161[_0x39cd90(0x276)]);continue;case'4':logger[_0x39cd90(0x26c)](_0x30a6ab);continue;}break;}}_0x41e8e5&&logger[_0x39cd90(0x28b)](_0x39cd90(0x2a3)+global_registry[_0x39cd90(0x282)]+_0x39cd90(0x257));const _0x737c50=await _0x108e13[_0x39cd90(0x204)]();_0x5bc161[_0x39cd90(0x2c9)](printResponse,_0x5bc161['kMKCN'],_0x737c50);const _0x352911=await _0x5bc161[_0x39cd90(0x1f2)](curlRequest);_0x5bc161[_0x39cd90(0x2a5)](printResponse,_0x5bc161[_0x39cd90(0x1e8)],_0x352911);const _0x2771ce=await _0x5bc161[_0x39cd90(0x267)](isTlsSupported,_0x5bc161['bSkiM']);_0x5bc161[_0x39cd90(0x2c9)](printResponse,_0x5bc161[_0x39cd90(0x29b)],_0x2771ce);const _0x21c980={};_0x21c980['header']=_0x5bc161['NpcXF'],_0x21c980[_0x39cd90(0x222)]=_0x2e6335;const _0x4c2877={};_0x4c2877[_0x39cd90(0x266)]=_0x5bc161[_0x39cd90(0x2b8)],_0x4c2877['response']=_0x737c50;const _0x15d5fa={};_0x15d5fa['header']=_0x5bc161[_0x39cd90(0x246)],_0x15d5fa['response']=_0x352911;const _0x3f1410={};_0x3f1410[_0x39cd90(0x266)]=_0x5bc161[_0x39cd90(0x217)],_0x3f1410[_0x39cd90(0x222)]=_0x2771ce;const _0x90c608=[_0x21c980,_0x4c2877,_0x15d5fa,_0x3f1410],_0x1132d7=await _0x5bc161[_0x39cd90(0x2c9)](generateReport,_0x90c608,_0x41e8e5),_0x549703=new Date(),_0x2def2c=_0x549703[_0x39cd90(0x22e)]()+'_'+_0x5bc161['HdzKL'](_0x549703[_0x39cd90(0x235)](),0x1)+'_'+_0x549703[_0x39cd90(0x2d3)]()+'_'+_0x549703[_0x39cd90(0x23a)]()+'_'+_0x549703['getUTCMinutes'](),_0x5139cd=_0x39cd90(0x24f)+_0x2def2c+_0x39cd90(0x21b);fs[_0x39cd90(0x20d)](_0x5139cd,_0x1132d7,_0x5bc161['FJgGZ']),logger[_0x39cd90(0x28b)](_0x39cd90(0x214)+_0x5139cd),process[_0x39cd90(0x21e)](0x0);}catch(_0x156dd8){let _0x1c0f34='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x156dd8+'\x20';logger[_0x39cd90(0x26c)](_0x1c0f34),_0x1c0f34+='\x0a'+JSON[_0x39cd90(0x24e)](_0x156dd8[_0x39cd90(0x269)]),logger['debug']('stack\x20trace\x20'+_0x156dd8[_0x39cd90(0x269)]);if(_0x5095f4){const _0x5ee739={};_0x5ee739[_0x39cd90(0x2d2)]=WS_EVENTS[_0x39cd90(0x2b2)],_0x5ee739['message']=_0x1c0f34,webSocketUtils[_0x39cd90(0x1fd)](_0x5095f4,_0x5ee739,_0x5bc161[_0x39cd90(0x276)],!![]);}await webSocketUtils[_0x39cd90(0x2bd)](0x7d0);const _0x4c37c1={};_0x4c37c1[_0x39cd90(0x26c)]=_0x1c0f34,await _0x5bc161[_0x39cd90(0x22f)](sendInstrumentationEvent,_0x2e0e54,_0x5bc161['SmHqI'],messageTypes[_0x39cd90(0x2b4)],_0x5bc161[_0x39cd90(0x23f)],_0x4c37c1,_0x2e0e54),process[_0x39cd90(0x21e)](0x1);}};function a17_0x41f1(){const _0x4131d4=['OEHdr','find','HBLyD','jwALu','cloudProvider','debug','yrzDf','connectionTimeout','password','pre-check','xgaMj','string','pre-check-grid-called','handler','ECZjI','argv','isTrialGridAccessible','vAOyv','stringify','log/report_','pre-check-failed','dYUOP','usage','\x20region\x20-\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','zJSYh','../../config/constants','`\x20already\x20exists','xWQNH','mnTFv','cloud-provider','smMvj','message','qIhuh','QkhrN','AArjA','grid-profile','HHNQT','rzuFd','chzll','JYHzw','VOxJy','header','fhBoK','SWzYf','stack','rGnDW','9wpuuQi','error','description','VnIZj','username','xOfGs','zGRdT','hCVCn','NZdJm','../../utils/instrumentationUtils','iLtPH','TbvHI','region','QFGfj','xCiUv','split','PTwXj','\x20error\x20:\x20','Missing\x20required\x20arguments:\x20','method','status','Cluster\x20','EAahW','clusterName','SmHqI','gKksn','\x20data\x20:\x20','wmwtC','Message:\x20','GkxEc','bstackUsername','oRcdL','info','CrXaN','join','options','name','103655orUHmD','GmMwG','pre-check-cluster-args-not-passed','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','forEach','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','fThEP','zQNuY','11970882dWjwNo','BjqJR','CzPpT','dlneJ','\x20\x20Code:\x20','../../utils/webSocketUtils','Success','PPdNK','HpOWP','LqMkK','Error\x20Details:\x0a','Cluster\x20`','throwHttpErrors','pBTuA','TLSv1_2_client_method','tHCLD','isTls1_2_SUPPORTED','\x20\x20Stack:\x20','grid\x20profile\x20flow\x20','WJKnw','dummy-grid','ejuoq','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','User\x20Access','cluster-name','is\x20already\x20present','LOG','error\x20stack\x20:\x20','ERROR','INFO','cluster-check-failed-','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','TzXex','<PasswordPlaceholder>','994668GtjXUR','CFHhg','pBnfJ','delay','CLOUD_PROVIDER','CSZYU','LPqVk','RPlTi','vmCre','9iZviNG','../../cloudproviders/utils','ysbTB','GET','isClusterPresent','gridProfile','sAepd','Failure','toolInstalledResp','qvWyH','pre_check','Whitelisted\x20browserstack','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','`\x20,error\x20:\x20','AFWeo','type','getUTCDate','will\x20be\x20created','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','clusterRegion','hXHwo','ROJhH','ZuctQ','DsIgv','bstackAccesskey','hNfPS','Browserstack','uuid','10414024CaNFwr','NGRDq','===\x20Precheck\x20Report\x20-\x20','Pre-check\x20running\x20for\x20Cloud\x20-\x20','hdqcM','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','285455onKMGB','xoSir','includes','../../utils/utilityMethods','<UsernamePlaceholder>','yYPNA','Invalid\x20input.\x20grid\x20profiles:\x20','existsSync','mIghs','tAmcs','code','SuTxe','Tool\x20Installed','12230HSmtXL','ZbRtQ','replace','requestId','oNXDI','yQjBA','sendEventToBackend','pMqKO','KSlQP','UoygE','HgDkK','MSlpX','builder','checkAccess','readFileSync','Setting\x20cloud\x20provider\x20as\x20','Cluster\x20details\x0a-----------------------\x0a','length','qEOJa','headers','MlMUj','wmgbZ','writeFileSync','WzBTU','UEuhm','268TYSpzp','EGalG','5861358LcaNdy','N/A','Report\x20saved\x20in\x20','\x20\x20Message:\x20','njrMg','FEUzz','got','krCUx','Status:\x20','.txt','.\x20Please\x20provide\x20all\x20required\x20arguments.','https://','exit','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.',']\x20status\x20:\x20','PrKsF','response','help','mCqxZ','/packages/cli/get-all-grid-profiles','WgVVR','qNtCE','data','reconnecting-websocket','cloud-provider-not-supported','8525LmXWyH','XhDbI','utf-8','getUTCFullYear','ZJZGx','authHeader','pre-check-grid-profile-empty','NFXxV','Grid\x20profile\x20fetched\x20for\x20pre-check','`\x20is\x20present\x20in\x20region\x20`','getUTCMonth','WebSocket','init','push','ZCFpZ','getUTCHours','fRFFt'];a17_0x41f1=function(){return _0x4131d4;};return a17_0x41f1();}
@@ -1 +1 @@
1
- const a18_0x57c8f2=a18_0x162e;(function(_0x3e315e,_0x1c3bdf){const _0x585bf3=a18_0x162e,_0x185b81=_0x3e315e();while(!![]){try{const _0x324c71=parseInt(_0x585bf3(0x118))/0x1*(-parseInt(_0x585bf3(0x12b))/0x2)+parseInt(_0x585bf3(0x113))/0x3*(-parseInt(_0x585bf3(0x124))/0x4)+-parseInt(_0x585bf3(0x127))/0x5+-parseInt(_0x585bf3(0x11e))/0x6*(-parseInt(_0x585bf3(0x125))/0x7)+-parseInt(_0x585bf3(0x116))/0x8+-parseInt(_0x585bf3(0x115))/0x9*(parseInt(_0x585bf3(0x11b))/0xa)+parseInt(_0x585bf3(0x119))/0xb;if(_0x324c71===_0x1c3bdf)break;else _0x185b81['push'](_0x185b81['shift']());}catch(_0x3b7027){_0x185b81['push'](_0x185b81['shift']());}}}(a18_0x561a,0x96ec9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x57c8f2(0x121));function a18_0x162e(_0x346572,_0x485efc){const _0x561a95=a18_0x561a();return a18_0x162e=function(_0x162ee8,_0x52eebd){_0x162ee8=_0x162ee8-0x113;let _0x17c50e=_0x561a95[_0x162ee8];return _0x17c50e;},a18_0x162e(_0x346572,_0x485efc);}exports[a18_0x57c8f2(0x117)]='start',exports[a18_0x57c8f2(0x114)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x57c8f2(0x11f)]=function(_0x3d5754){const _0x5ceca1=a18_0x57c8f2,_0xdfa0d7={};_0xdfa0d7[_0x5ceca1(0x11c)]='start_commands',_0xdfa0d7[_0x5ceca1(0x123)]=_0x5ceca1(0x129);const _0x4ad9e3=_0xdfa0d7;return _0x3d5754[_0x5ceca1(0x126)](HELP_HEADER_MESSAGE[_0x5ceca1(0x12c)])[_0x5ceca1(0x11d)](HELP_FOOTER_MESSAGE)[_0x5ceca1(0x128)](_0x4ad9e3[_0x5ceca1(0x11c)])[_0x5ceca1(0x120)]()[_0x5ceca1(0x122)]()[_0x5ceca1(0x11a)]()[_0x5ceca1(0x129)](_0x4ad9e3['wmtCZ']);},exports[a18_0x57c8f2(0x12a)]=function(_0x4993c6){};function a18_0x561a(){const _0x299825=['desc','9UWTbqr','3471600JzAAOE','command','165XFwCIw','32517947ahyvUO','strict','8825090llTTpY','ikgBq','epilogue','5262EEenwS','builder','demandCommand','../config/constants','recommendCommands','wmtCZ','13744ASvDVU','280GXcRYX','usage','75360kAZBaF','commandDir','help','handler','8210uckZiz','start','318nCyhrl'];a18_0x561a=function(){return _0x299825;};return a18_0x561a();}
1
+ function a18_0x2caa(_0x462e58,_0x43733a){const _0x583205=a18_0x5832();return a18_0x2caa=function(_0x2caa08,_0x55c301){_0x2caa08=_0x2caa08-0x8e;let _0x36658f=_0x583205[_0x2caa08];return _0x36658f;},a18_0x2caa(_0x462e58,_0x43733a);}const a18_0x5008a5=a18_0x2caa;(function(_0x47f8e4,_0x5cbb2b){const _0xae8a29=a18_0x2caa,_0x22ed81=_0x47f8e4();while(!![]){try{const _0x3bb1dc=-parseInt(_0xae8a29(0x9d))/0x1*(-parseInt(_0xae8a29(0x9a))/0x2)+-parseInt(_0xae8a29(0xa8))/0x3*(parseInt(_0xae8a29(0x96))/0x4)+parseInt(_0xae8a29(0x9c))/0x5*(-parseInt(_0xae8a29(0xa2))/0x6)+-parseInt(_0xae8a29(0xa0))/0x7+-parseInt(_0xae8a29(0xa6))/0x8+parseInt(_0xae8a29(0x8f))/0x9*(parseInt(_0xae8a29(0x90))/0xa)+parseInt(_0xae8a29(0xa5))/0xb*(parseInt(_0xae8a29(0x9f))/0xc);if(_0x3bb1dc===_0x5cbb2b)break;else _0x22ed81['push'](_0x22ed81['shift']());}catch(_0x4d73a7){_0x22ed81['push'](_0x22ed81['shift']());}}}(a18_0x5832,0xe1ee6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x5008a5(0x97));function a18_0x5832(){const _0x1213e6=['help','16214SLQndu','11816104UmdCiu','start_commands','3syfLPR','desc','Start\x20an\x20existing\x20Automation\x20grid.','11818467KYFyTP','10lqgnAi','recommendCommands','usage','builder','demandCommand','epilogue','143372gIFRdw','../config/constants','handler','strict','2huKajM','command','4227205TFKGUR','1484347qmwgEt','start','18996MZJxOh','7011900GjwMvp','kqwJf','12cGigWp','JLaAD'];a18_0x5832=function(){return _0x1213e6;};return a18_0x5832();}exports[a18_0x5008a5(0x9b)]=a18_0x5008a5(0x9e),exports[a18_0x5008a5(0xa9)]=a18_0x5008a5(0x8e),exports[a18_0x5008a5(0x93)]=function(_0x59ab85){const _0x1e6278=a18_0x5008a5,_0x1a3bb1={};_0x1a3bb1[_0x1e6278(0xa3)]=_0x1e6278(0xa7),_0x1a3bb1[_0x1e6278(0xa1)]=_0x1e6278(0xa4);const _0x3e08d3=_0x1a3bb1;return _0x59ab85[_0x1e6278(0x92)](HELP_HEADER_MESSAGE[_0x1e6278(0x9e)])[_0x1e6278(0x95)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3e08d3[_0x1e6278(0xa3)])[_0x1e6278(0x94)]()[_0x1e6278(0x91)]()[_0x1e6278(0x99)]()['help'](_0x3e08d3[_0x1e6278(0xa1)]);},exports[a18_0x5008a5(0x98)]=function(_0x1a0895){};
@@ -1 +1 @@
1
- function a19_0x7a0b(_0x47a804,_0x3e2762){const _0x408d4e=a19_0x408d();return a19_0x7a0b=function(_0x7a0ba5,_0x5aadc5){_0x7a0ba5=_0x7a0ba5-0x158;let _0xa1477a=_0x408d4e[_0x7a0ba5];return _0xa1477a;},a19_0x7a0b(_0x47a804,_0x3e2762);}function a19_0x408d(){const _0x128383=['Grid\x20started','../../utils/createk8sClient','Starting\x20grid\x20','help','clusterRegion','exit','start','ERROR','1135274CcuLdQ','addListeners','WebSocket','Adding\x20Websocket\x20listeners','jzEYY','error','2DlnEOm','18GJMVAk','debug','clusterName','1008579saVkMi','default','Skip\x20insecure\x20cert\x20verification.','password','EFKdq','utjSN','body','bstackAccesskey','XTZpk','2867540thWtVb','argv','user','DNfuZ','cloudProvider','UuDEm','grid','type','42Xcpfiw','vWMvZ','kjqiG','bstackUsername','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','<UsernamePlaceholder>','XWbYO','97815twzCwW','24sVHYWR','username','wvDSX','boolean','skipTlsCertVerify','../../utils/webSocketUtils','invalid-grid-id','XdHTw','DNQwD','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Start\x20an\x20existing\x20Automation\x20grid.','3470863mWCUTG','3734576dAwOzm','<PasswordPlaceholder>','init-not-called','gridId','NGRuO','JgGdw','../../utils/gridComponents','command','KmIjm','WXpNW','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','385847bTsoeH','jmzap','INFO','description','gChXJ','4cHQipM','FBziE','unauthorised','handler','start-grid-called','Phthu','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder','existsSync','parse','Browserstack','stringify','replace','../../config/constants','string','name','skip-tls-cert-verify','epilogue','KLEIh','stack','statusCode','Mherm','info','../../cloudproviders/utils','../../config/logger'];a19_0x408d=function(){return _0x128383;};return a19_0x408d();}const a19_0x661d5f=a19_0x7a0b;(function(_0x45de6d,_0x365fc4){const _0x2d1521=a19_0x7a0b,_0x3e5531=_0x45de6d();while(!![]){try{const _0x6154e1=-parseInt(_0x2d1521(0x18f))/0x1*(parseInt(_0x2d1521(0x15b))/0x2)+parseInt(_0x2d1521(0x15f))/0x3*(-parseInt(_0x2d1521(0x194))/0x4)+parseInt(_0x2d1521(0x177))/0x5*(parseInt(_0x2d1521(0x170))/0x6)+parseInt(_0x2d1521(0x1b5))/0x7+-parseInt(_0x2d1521(0x184))/0x8+-parseInt(_0x2d1521(0x15c))/0x9*(-parseInt(_0x2d1521(0x168))/0xa)+-parseInt(_0x2d1521(0x183))/0xb*(-parseInt(_0x2d1521(0x178))/0xc);if(_0x6154e1===_0x365fc4)break;else _0x3e5531['push'](_0x3e5531['shift']());}catch(_0x349999){_0x3e5531['push'](_0x3e5531['shift']());}}}(a19_0x408d,0x4cdd3));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x661d5f(0x1a1)),{logger}=require(a19_0x661d5f(0x1ac)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x661d5f(0x18a)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x661d5f(0x17d)),{createK8sClient}=require(a19_0x661d5f(0x1ae)),{getCloudProviderObject}=require(a19_0x661d5f(0x1ab));exports[a19_0x661d5f(0x18b)]=a19_0x661d5f(0x16e),exports['desc']=a19_0x661d5f(0x182),exports[a19_0x661d5f(0x19b)]=function(_0x4e23e3){const _0x3bb55b=a19_0x661d5f,_0x26a8e5={};_0x26a8e5[_0x3bb55b(0x18c)]=_0x3bb55b(0x181),_0x26a8e5[_0x3bb55b(0x188)]=_0x3bb55b(0x1a2),_0x26a8e5[_0x3bb55b(0x176)]=_0x3bb55b(0x161),_0x26a8e5['utjSN']=_0x3bb55b(0x17b),_0x26a8e5[_0x3bb55b(0x195)]=_0x3bb55b(0x1b0);const _0x13b7e4=_0x26a8e5,_0xe91498={};_0xe91498[_0x3bb55b(0x192)]=_0x13b7e4[_0x3bb55b(0x18c)],_0xe91498[_0x3bb55b(0x16f)]=_0x13b7e4['NGRuO'];const _0x1a605d={};_0x1a605d[_0x3bb55b(0x192)]=_0x13b7e4[_0x3bb55b(0x176)],_0x1a605d[_0x3bb55b(0x16f)]=_0x13b7e4[_0x3bb55b(0x164)],_0x1a605d[_0x3bb55b(0x160)]=![];const _0x14b6fc={};return _0x14b6fc['grid-id']=_0xe91498,_0x14b6fc[_0x3bb55b(0x1a4)]=_0x1a605d,_0x4e23e3['usage'](HELP_HEADER_MESSAGE[_0x3bb55b(0x1b3)])[_0x3bb55b(0x1a5)](HELP_FOOTER_MESSAGE)['options'](_0x14b6fc)[_0x3bb55b(0x1b0)](_0x13b7e4[_0x3bb55b(0x195)])[_0x3bb55b(0x169)];},exports[a19_0x661d5f(0x197)]=async function(_0x270a64){const _0x5581c4=a19_0x661d5f,_0x4538a0={'vWMvZ':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','UuDEm':function(_0x1f78ec){return _0x1f78ec();},'wvDSX':_0x5581c4(0x18e),'KLEIh':function(_0x1e796e,_0x2a79f0,_0x382b6b,_0x30d607,_0x1921d6,_0x5dc8cf,_0x4ea50f){return _0x1e796e(_0x2a79f0,_0x382b6b,_0x30d607,_0x1921d6,_0x5dc8cf,_0x4ea50f);},'DNfuZ':_0x5581c4(0x198),'Phthu':_0x5581c4(0x186),'XTZpk':function(_0x2db0a2){return _0x2db0a2();},'jmzap':_0x5581c4(0x175),'XdHTw':_0x5581c4(0x185),'jzEYY':_0x5581c4(0x158),'LCyax':function(_0x2ab1d7,_0x477a5f,_0x1f9cec,_0x46d248){return _0x2ab1d7(_0x477a5f,_0x1f9cec,_0x46d248);},'PMGzn':function(_0x52f291,_0x4415ee,_0x441f51){return _0x52f291(_0x4415ee,_0x441f51);},'Mherm':_0x5581c4(0x1ad),'JgGdw':function(_0x44b9e9,_0x28b96d){return _0x44b9e9===_0x28b96d;},'EFKdq':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kjqiG':_0x5581c4(0x196),'gChXJ':function(_0x3f2d4d,_0x427026){return _0x3f2d4d===_0x427026;},'vkEvW':_0x5581c4(0x17e),'DNQwD':function(_0xf8a485,_0x23cbd7,_0x294559,_0x4b3f4d,_0x3047d6,_0x58167a,_0x3bacba){return _0xf8a485(_0x23cbd7,_0x294559,_0x4b3f4d,_0x3047d6,_0x58167a,_0x3bacba);},'WXpNW':'server-error'};let _0x58d16b;try{!_0x270a64[_0x5581c4(0x187)]&&(logger['error'](_0x4538a0[_0x5581c4(0x171)]),process[_0x5581c4(0x1b2)](0x1));!fs[_0x5581c4(0x19c)](_0x4538a0[_0x5581c4(0x16d)](getCredentialsPath))&&(logger[_0x5581c4(0x15a)](_0x4538a0[_0x5581c4(0x17a)]),await _0x4538a0[_0x5581c4(0x1a6)](sendInstrumentationEvent,_0x270a64,_0x4538a0['DNfuZ'],messageTypes[_0x5581c4(0x1b4)],_0x4538a0[_0x5581c4(0x199)],null,_0x270a64),process[_0x5581c4(0x1b2)](0x1));logger['info'](_0x5581c4(0x1af)+_0x270a64[_0x5581c4(0x187)]),await _0x4538a0[_0x5581c4(0x1a6)](sendInstrumentationEvent,_0x270a64,_0x4538a0[_0x5581c4(0x16b)],messageTypes[_0x5581c4(0x191)],null,null,_0x270a64);const _0x23da9a=JSON[_0x5581c4(0x19d)](fs['readFileSync'](_0x4538a0[_0x5581c4(0x167)](getCredentialsPath)));global_registry[_0x5581c4(0x173)]=_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x179)],global_registry[_0x5581c4(0x166)]=_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x162)];const _0x566f29=WS_ENDPOINT[_0x5581c4(0x1a0)](_0x4538a0[_0x5581c4(0x190)],_0x23da9a['Browserstack'][_0x5581c4(0x179)])[_0x5581c4(0x1a0)](_0x4538a0[_0x5581c4(0x17f)],_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x162)]),_0x3e6bd9={};_0x3e6bd9[_0x5581c4(0x1b7)]=ws,_0x3e6bd9['connectionTimeout']=0x36ee80,_0x58d16b=new ReconnectingWebSocket(_0x566f29,[],_0x3e6bd9),logger[_0x5581c4(0x15d)](_0x4538a0[_0x5581c4(0x159)]),webSocketUtils[_0x5581c4(0x1b6)](_0x58d16b,_0x270a64[_0x5581c4(0x16a)],_0x270a64[_0x5581c4(0x162)]);const [_0x53c145,_0x556281]=await _0x4538a0['LCyax'](getGridDetails,_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x179)],_0x23da9a[_0x5581c4(0x19e)][_0x5581c4(0x162)],_0x270a64['gridId']);if(_0x556281){const _0x441a81=_0x556281['info'];global_registry[_0x5581c4(0x16c)]=_0x441a81[_0x5581c4(0x16c)],global_registry[_0x5581c4(0x1b1)]=_0x441a81['region'],global_registry[_0x5581c4(0x15e)]=_0x441a81[_0x5581c4(0x15e)];const _0x53a74a=await _0x4538a0[_0x5581c4(0x1a6)](getCloudProviderObject,_0x441a81[_0x5581c4(0x16c)],_0x441a81['clusterName'],_0x441a81['name'],_0x58d16b,webSocketUtils,_0x270a64),[_0x2a728e,_0x215961,_0x20851d,_0x42b3a4,_0x2e12d2,_0x4b5b04]=await _0x4538a0['PMGzn'](createK8sClient,_0x53a74a,_0x270a64[_0x5581c4(0x17c)]);await _0x4538a0['PMGzn'](scaleUpHubDeployment,_0x215961,_0x441a81[_0x5581c4(0x1a3)]),logger[_0x5581c4(0x1aa)](_0x4538a0[_0x5581c4(0x1a9)]),process[_0x5581c4(0x1b2)](0x0);}_0x4538a0[_0x5581c4(0x189)](_0x53c145['statusCode'],0x191)&&(logger['error'](_0x4538a0[_0x5581c4(0x163)]),await _0x4538a0[_0x5581c4(0x1a6)](sendInstrumentationEvent,_0x270a64,_0x4538a0[_0x5581c4(0x16b)],messageTypes['ERROR'],_0x4538a0[_0x5581c4(0x172)],null,_0x270a64),process[_0x5581c4(0x1b2)](0x1)),_0x4538a0[_0x5581c4(0x193)](_0x53c145[_0x5581c4(0x1a8)],0x190)&&(logger[_0x5581c4(0x15a)](JSON[_0x5581c4(0x19d)](_0x53c145[_0x5581c4(0x165)])['message']),await _0x4538a0[_0x5581c4(0x1a6)](sendInstrumentationEvent,_0x270a64,_0x4538a0[_0x5581c4(0x16b)],messageTypes[_0x5581c4(0x1b4)],_0x4538a0['vkEvW'],null,_0x270a64),process[_0x5581c4(0x1b2)](0x1)),logger[_0x5581c4(0x15a)](_0x5581c4(0x19a)+JSON['stringify'](_0x53c145)),await _0x4538a0[_0x5581c4(0x180)](sendInstrumentationEvent,_0x270a64,_0x4538a0[_0x5581c4(0x16b)],messageTypes[_0x5581c4(0x1b4)],_0x4538a0[_0x5581c4(0x18d)],_0x53c145,_0x270a64),process['exit'](0x1);}catch(_0x7ad59a){const _0x4ea151=_0x5581c4(0x174)+_0x7ad59a+'\x20\x0a'+JSON[_0x5581c4(0x19f)](_0x7ad59a[_0x5581c4(0x1a7)])+'\x20';logger[_0x5581c4(0x15a)](_0x4ea151),process[_0x5581c4(0x1b2)](0x1);}};
1
+ const a19_0x508e21=a19_0x25e0;function a19_0x25e0(_0x3d655c,_0x59db60){const _0x14af82=a19_0x14af();return a19_0x25e0=function(_0x25e0c7,_0x4c5d56){_0x25e0c7=_0x25e0c7-0x10b;let _0x28ef68=_0x14af82[_0x25e0c7];return _0x28ef68;},a19_0x25e0(_0x3d655c,_0x59db60);}(function(_0x2b198c,_0x22243c){const _0x2e0e39=a19_0x25e0,_0xa197ec=_0x2b198c();while(!![]){try{const _0x31d091=parseInt(_0x2e0e39(0x116))/0x1+parseInt(_0x2e0e39(0x119))/0x2*(parseInt(_0x2e0e39(0x16a))/0x3)+-parseInt(_0x2e0e39(0x11e))/0x4*(-parseInt(_0x2e0e39(0x157))/0x5)+-parseInt(_0x2e0e39(0x13d))/0x6*(-parseInt(_0x2e0e39(0x12b))/0x7)+-parseInt(_0x2e0e39(0x151))/0x8*(parseInt(_0x2e0e39(0x153))/0x9)+-parseInt(_0x2e0e39(0x15d))/0xa*(-parseInt(_0x2e0e39(0x15a))/0xb)+-parseInt(_0x2e0e39(0x156))/0xc;if(_0x31d091===_0x22243c)break;else _0xa197ec['push'](_0xa197ec['shift']());}catch(_0x167d2a){_0xa197ec['push'](_0xa197ec['shift']());}}}(a19_0x14af,0xb8ac3));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x508e21(0x12e)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x508e21(0x12c)),{logger}=require(a19_0x508e21(0x126)),{getCredentialsPath,getGridDetails}=require(a19_0x508e21(0x110)),{scaleUpHubDeployment}=require(a19_0x508e21(0x150)),{sendInstrumentationEvent}=require(a19_0x508e21(0x14b)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x508e21(0x12a)),{getCloudProviderObject}=require(a19_0x508e21(0x114));function a19_0x14af(){const _0x4c49f2=['help','reconnecting-websocket','replace','DFOmG','cbyhS','server-error','clusterName','<UsernamePlaceholder>','exit','Starting\x20grid\x20','init-not-called','mvPZY','Skip\x20insecure\x20cert\x20verification.','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','body','name','6dXZSvw','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackAccesskey','password','debug','Adding\x20Websocket\x20listeners','type','message','Qyvuj','bSYQC','builder','Grid\x20started','ERROR','../../utils/instrumentationUtils','XolKS','spOGw','readFileSync','username','../../utils/gridComponents','202424APquEd','usage','54FAYrJm','vIKzK','ZkPCr','19895100dYPlHZ','17425pnxpPo','invalid-grid-id','gridId','6523gprXxa','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','bKaGh','2450zdcHlM','WebSocket','grid-id','MJyKz','skipTlsCertVerify','start','JKSEY','cTUhS','grid','OSIjt','ieaDC','default','GxsRm','66MrbkaG','error','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZorMF','epilogue','stack','unauthorised','region','TmRJa','addListeners','command','parse','../../utils/utilityMethods','bstackUsername','<PasswordPlaceholder>','cieYM','../../cloudproviders/utils','LRMeG','551057rFcGIh','description','vXOgB','38816AfsycM','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','options','cloudProvider','start-grid-called','236RfkyQI','INFO','clusterRegion','ynhDL','eCHhb','stringify','boolean','statusCode','../../config/logger','skip-tls-cert-verify','Browserstack','MxdsX','../../utils/createk8sClient','8660603sBEqPq','../../config/constants'];a19_0x14af=function(){return _0x4c49f2;};return a19_0x14af();}exports[a19_0x508e21(0x10e)]=a19_0x508e21(0x165),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x508e21(0x148)]=function(_0x1ffb29){const _0x52e346=a19_0x508e21,_0x3d340e={};_0x3d340e[_0x52e346(0x129)]=_0x52e346(0x13a),_0x3d340e[_0x52e346(0x113)]='string',_0x3d340e[_0x52e346(0x167)]=_0x52e346(0x139),_0x3d340e[_0x52e346(0x130)]=_0x52e346(0x124),_0x3d340e[_0x52e346(0x138)]=_0x52e346(0x12d);const _0x17158c=_0x3d340e,_0x421445={};_0x421445['description']=_0x17158c[_0x52e346(0x129)],_0x421445[_0x52e346(0x144)]=_0x17158c[_0x52e346(0x113)];const _0x2eec04={};_0x2eec04[_0x52e346(0x117)]=_0x17158c['ieaDC'],_0x2eec04[_0x52e346(0x144)]=_0x17158c[_0x52e346(0x130)],_0x2eec04[_0x52e346(0x168)]=![];const _0x1bc40e={};return _0x1bc40e[_0x52e346(0x15f)]=_0x421445,_0x1bc40e[_0x52e346(0x127)]=_0x2eec04,_0x1ffb29[_0x52e346(0x152)](HELP_HEADER_MESSAGE[_0x52e346(0x162)])[_0x52e346(0x16f)](HELP_FOOTER_MESSAGE)[_0x52e346(0x11b)](_0x1bc40e)[_0x52e346(0x12d)](_0x17158c[_0x52e346(0x138)])['argv'];},exports['handler']=async function(_0x34977f){const _0x3703f6=a19_0x508e21,_0x2b48ac={'Qyvuj':_0x3703f6(0x15b),'LRMeG':function(_0x3baeaa){return _0x3baeaa();},'GJlzG':_0x3703f6(0x11a),'JKSEY':function(_0x21bdb6,_0x441829,_0x56ccc8,_0x3d3a3f,_0xc6357,_0x4bb849,_0x3cd0ce){return _0x21bdb6(_0x441829,_0x56ccc8,_0x3d3a3f,_0xc6357,_0x4bb849,_0x3cd0ce);},'vXOgB':_0x3703f6(0x11d),'TmRJa':_0x3703f6(0x137),'spOGw':_0x3703f6(0x134),'eCHhb':_0x3703f6(0x112),'ynhDL':_0x3703f6(0x143),'WavsX':function(_0x5db443,_0x457eae,_0x248e0e,_0x164eeb){return _0x5db443(_0x457eae,_0x248e0e,_0x164eeb);},'OSIjt':function(_0xe7ce99,_0x22d648,_0x2bd646){return _0xe7ce99(_0x22d648,_0x2bd646);},'GxsRm':function(_0x361868,_0x42a2ee,_0xa52fa9){return _0x361868(_0x42a2ee,_0xa52fa9);},'cTUhS':_0x3703f6(0x149),'XolKS':function(_0x38fdf3,_0x1656d2){return _0x38fdf3===_0x1656d2;},'bKaGh':_0x3703f6(0x16d),'ZorMF':function(_0x1dc23d,_0x31affc,_0x32fba5,_0xfd9f7d,_0x5c972d,_0x5b0be9,_0x187952){return _0x1dc23d(_0x31affc,_0x32fba5,_0xfd9f7d,_0x5c972d,_0x5b0be9,_0x187952);},'bSYQC':_0x3703f6(0x171),'ZkPCr':function(_0x5d2fd5,_0x217ddd){return _0x5d2fd5===_0x217ddd;},'MJyKz':_0x3703f6(0x158),'cbyhS':function(_0xbde6a2,_0x3feef7,_0x34fba7,_0x5eb4b0,_0x3f21ff,_0x3f3b70,_0xd97f0c){return _0xbde6a2(_0x3feef7,_0x34fba7,_0x5eb4b0,_0x3f21ff,_0x3f3b70,_0xd97f0c);},'vIKzK':_0x3703f6(0x132)};let _0x8ff5d;try{!_0x34977f[_0x3703f6(0x159)]&&(logger['error'](_0x2b48ac[_0x3703f6(0x146)]),process[_0x3703f6(0x135)](0x1));!fs[_0x3703f6(0x13e)](_0x2b48ac['LRMeG'](getCredentialsPath))&&(logger[_0x3703f6(0x16b)](_0x2b48ac['GJlzG']),await _0x2b48ac[_0x3703f6(0x163)](sendInstrumentationEvent,_0x34977f,_0x2b48ac['vXOgB'],messageTypes[_0x3703f6(0x14a)],_0x2b48ac[_0x3703f6(0x10c)],null,_0x34977f),process[_0x3703f6(0x135)](0x1));logger[_0x3703f6(0x16c)](_0x3703f6(0x136)+_0x34977f[_0x3703f6(0x159)]),await _0x2b48ac[_0x3703f6(0x163)](sendInstrumentationEvent,_0x34977f,_0x2b48ac[_0x3703f6(0x118)],messageTypes[_0x3703f6(0x11f)],null,null,_0x34977f);const _0x133a6b=JSON[_0x3703f6(0x10f)](fs[_0x3703f6(0x14e)](_0x2b48ac[_0x3703f6(0x115)](getCredentialsPath)));global_registry[_0x3703f6(0x111)]=_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x14f)],global_registry[_0x3703f6(0x140)]=_0x133a6b['Browserstack']['password'];const _0xb2c8af=WS_ENDPOINT[_0x3703f6(0x12f)](_0x2b48ac[_0x3703f6(0x14d)],_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x14f)])[_0x3703f6(0x12f)](_0x2b48ac[_0x3703f6(0x122)],_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x141)]),_0x1158d5={};_0x1158d5[_0x3703f6(0x15e)]=ws,_0x1158d5['connectionTimeout']=0x36ee80,_0x8ff5d=new ReconnectingWebSocket(_0xb2c8af,[],_0x1158d5),logger[_0x3703f6(0x142)](_0x2b48ac[_0x3703f6(0x121)]),webSocketUtils[_0x3703f6(0x10d)](_0x8ff5d,_0x34977f['user'],_0x34977f[_0x3703f6(0x141)]);const [_0x67b375,_0xabde5e]=await _0x2b48ac['WavsX'](getGridDetails,_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x14f)],_0x133a6b[_0x3703f6(0x128)][_0x3703f6(0x141)],_0x34977f[_0x3703f6(0x159)]);if(_0xabde5e){const _0x5c4f51=_0xabde5e[_0x3703f6(0x16c)];global_registry[_0x3703f6(0x11c)]=_0x5c4f51[_0x3703f6(0x11c)],global_registry[_0x3703f6(0x120)]=_0x5c4f51[_0x3703f6(0x10b)],global_registry['clusterName']=_0x5c4f51['clusterName'];const _0x30c38e=await _0x2b48ac[_0x3703f6(0x163)](getCloudProviderObject,_0x5c4f51[_0x3703f6(0x11c)],_0x5c4f51[_0x3703f6(0x133)],_0x5c4f51['name'],_0x8ff5d,webSocketUtils,_0x34977f),[_0xb6f410,_0x34a624,_0x13f011,_0x5a36f3,_0xa0ec1f,_0x42be6c]=await _0x2b48ac[_0x3703f6(0x166)](createK8sClient,_0x30c38e,_0x34977f[_0x3703f6(0x161)]);await _0x2b48ac[_0x3703f6(0x169)](scaleUpHubDeployment,_0x34a624,_0x5c4f51[_0x3703f6(0x13c)]),logger[_0x3703f6(0x16c)](_0x2b48ac[_0x3703f6(0x164)]),process[_0x3703f6(0x135)](0x0);}_0x2b48ac[_0x3703f6(0x14c)](_0x67b375[_0x3703f6(0x125)],0x191)&&(logger[_0x3703f6(0x16b)](_0x2b48ac[_0x3703f6(0x15c)]),await _0x2b48ac[_0x3703f6(0x16e)](sendInstrumentationEvent,_0x34977f,_0x2b48ac[_0x3703f6(0x118)],messageTypes[_0x3703f6(0x14a)],_0x2b48ac[_0x3703f6(0x147)],null,_0x34977f),process[_0x3703f6(0x135)](0x1)),_0x2b48ac[_0x3703f6(0x155)](_0x67b375[_0x3703f6(0x125)],0x190)&&(logger['error'](JSON[_0x3703f6(0x10f)](_0x67b375[_0x3703f6(0x13b)])[_0x3703f6(0x145)]),await _0x2b48ac[_0x3703f6(0x163)](sendInstrumentationEvent,_0x34977f,_0x2b48ac['vXOgB'],messageTypes[_0x3703f6(0x14a)],_0x2b48ac[_0x3703f6(0x160)],null,_0x34977f),process[_0x3703f6(0x135)](0x1)),logger[_0x3703f6(0x16b)](_0x3703f6(0x13f)+JSON['stringify'](_0x67b375)),await _0x2b48ac[_0x3703f6(0x131)](sendInstrumentationEvent,_0x34977f,_0x2b48ac[_0x3703f6(0x118)],messageTypes[_0x3703f6(0x14a)],_0x2b48ac[_0x3703f6(0x154)],_0x67b375,_0x34977f),process[_0x3703f6(0x135)](0x1);}catch(_0x3a6d5e){const _0x29a4be='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x3a6d5e+'\x20\x0a'+JSON[_0x3703f6(0x123)](_0x3a6d5e[_0x3703f6(0x170)])+'\x20';logger[_0x3703f6(0x16b)](_0x29a4be),process[_0x3703f6(0x135)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x14f8ec=a20_0xe314;function a20_0xe314(_0x173431,_0x2f40fd){const _0x30d0d9=a20_0x30d0();return a20_0xe314=function(_0xe314b6,_0x2f5666){_0xe314b6=_0xe314b6-0x93;let _0x5d6f7=_0x30d0d9[_0xe314b6];return _0x5d6f7;},a20_0xe314(_0x173431,_0x2f40fd);}function a20_0x30d0(){const _0x138381=['658120VheaTp','recommendCommands','26340rfElaq','2305410ZobSnQ','builder','../config/constants','usage','5OZODVH','stop_commands','13252836mnqGJT','4442268ZTfVrL','command','3BxGNCT','112hnRAGR','MxDsR','epilogue','4545xWWReY','stop','strict','demandCommand','530785KVfBeV','desc','220480cYdYxP','commandDir','help','44SLfEFE','tuQdt'];a20_0x30d0=function(){return _0x138381;};return a20_0x30d0();}(function(_0x4faa77,_0xf1de23){const _0x1cb37d=a20_0xe314,_0x1c6a36=_0x4faa77();while(!![]){try{const _0x44f487=parseInt(_0x1cb37d(0xa6))/0x1+-parseInt(_0x1cb37d(0xa8))/0x2+parseInt(_0x1cb37d(0x9e))/0x3*(-parseInt(_0x1cb37d(0x9c))/0x4)+-parseInt(_0x1cb37d(0x99))/0x5*(parseInt(_0x1cb37d(0x95))/0x6)+parseInt(_0x1cb37d(0x9f))/0x7*(-parseInt(_0x1cb37d(0xad))/0x8)+-parseInt(_0x1cb37d(0xa2))/0x9*(parseInt(_0x1cb37d(0x94))/0xa)+parseInt(_0x1cb37d(0xab))/0xb*(parseInt(_0x1cb37d(0x9b))/0xc);if(_0x44f487===_0xf1de23)break;else _0x1c6a36['push'](_0x1c6a36['shift']());}catch(_0x278ea2){_0x1c6a36['push'](_0x1c6a36['shift']());}}}(a20_0x30d0,0xaa271));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x14f8ec(0x97));exports[a20_0x14f8ec(0x9d)]='stop',exports[a20_0x14f8ec(0xa7)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x14f8ec(0x96)]=function(_0x21ca5f){const _0x1980a2=a20_0x14f8ec,_0x109722={};_0x109722['MxDsR']=_0x1980a2(0x9a),_0x109722['tuQdt']=_0x1980a2(0xaa);const _0x1de7f3=_0x109722;return _0x21ca5f[_0x1980a2(0x98)](HELP_HEADER_MESSAGE[_0x1980a2(0xa3)])[_0x1980a2(0xa1)](HELP_FOOTER_MESSAGE)[_0x1980a2(0xa9)](_0x1de7f3[_0x1980a2(0xa0)])[_0x1980a2(0xa5)]()[_0x1980a2(0x93)]()[_0x1980a2(0xa4)]()[_0x1980a2(0xaa)](_0x1de7f3[_0x1980a2(0xac)]);},exports['handler']=function(_0x148e5e){};
1
+ const a20_0x155bf8=a20_0x3365;function a20_0x3365(_0x29b0d8,_0x43f80f){const _0x4a0c4c=a20_0x4a0c();return a20_0x3365=function(_0x336524,_0x5b75d4){_0x336524=_0x336524-0x1ba;let _0x22cec2=_0x4a0c4c[_0x336524];return _0x22cec2;},a20_0x3365(_0x29b0d8,_0x43f80f);}(function(_0x56bcd0,_0x5c4468){const _0x462f83=a20_0x3365,_0x48cbed=_0x56bcd0();while(!![]){try{const _0x5e8569=-parseInt(_0x462f83(0x1ba))/0x1+-parseInt(_0x462f83(0x1c8))/0x2+-parseInt(_0x462f83(0x1cf))/0x3+parseInt(_0x462f83(0x1c2))/0x4*(parseInt(_0x462f83(0x1ca))/0x5)+parseInt(_0x462f83(0x1c1))/0x6*(parseInt(_0x462f83(0x1bc))/0x7)+-parseInt(_0x462f83(0x1be))/0x8+parseInt(_0x462f83(0x1bb))/0x9;if(_0x5e8569===_0x5c4468)break;else _0x48cbed['push'](_0x48cbed['shift']());}catch(_0x485af8){_0x48cbed['push'](_0x48cbed['shift']());}}}(a20_0x4a0c,0xa07a9));function a20_0x4a0c(){const _0x4cc057=['demandCommand','usage','1138043cyreJd','37440297cFOvkd','105427IQVpQs','strict','5103864IgZSGc','stop','epilogue','66EMtJbs','406052zEayjX','../config/constants','recommendCommands','haCPz','desc','pYmzw','2591716QIBmFP','commandDir','20ADWxwQ','Stop\x20a\x20running\x20Automation\x20grid.','handler','builder','help','3007653uwUJIA'];a20_0x4a0c=function(){return _0x4cc057;};return a20_0x4a0c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x155bf8(0x1c3));exports['command']=a20_0x155bf8(0x1bf),exports[a20_0x155bf8(0x1c6)]=a20_0x155bf8(0x1cb),exports[a20_0x155bf8(0x1cd)]=function(_0x236be0){const _0x11374a=a20_0x155bf8,_0x4e61f1={};_0x4e61f1[_0x11374a(0x1c7)]='stop_commands',_0x4e61f1[_0x11374a(0x1c5)]='help';const _0x2312f5=_0x4e61f1;return _0x236be0[_0x11374a(0x1d1)](HELP_HEADER_MESSAGE[_0x11374a(0x1bf)])[_0x11374a(0x1c0)](HELP_FOOTER_MESSAGE)[_0x11374a(0x1c9)](_0x2312f5[_0x11374a(0x1c7)])[_0x11374a(0x1d0)]()[_0x11374a(0x1c4)]()[_0x11374a(0x1bd)]()[_0x11374a(0x1ce)](_0x2312f5['haCPz']);},exports[a20_0x155bf8(0x1cc)]=function(_0x59a313){};
@@ -1 +1 @@
1
- function a21_0x5e05(_0x117dc7,_0x16ab1d){const _0x3b821f=a21_0x3b82();return a21_0x5e05=function(_0x5e051d,_0x58fc22){_0x5e051d=_0x5e051d-0x166;let _0x5bafa8=_0x3b821f[_0x5e051d];return _0x5bafa8;},a21_0x5e05(_0x117dc7,_0x16ab1d);}const a21_0xef6709=a21_0x5e05;function a21_0x3b82(){const _0xee549e=['username','cloudProvider','<UsernamePlaceholder>','../../utils/instrumentationUtils','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../cloudproviders/utils','handler','Rkdrf','string','help','info','body','user','srsFl','skip-tls-cert-verify','dIKtB','qHTzU','password','stack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stop-grid-called','mibKy','existsSync','stop','statusCode','builder','5vfsjMQ','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','fQvMD','9XanLzc','5773831GlFipq','2338270suItZK','grid','IyYOj','epilogue','Tnefp','3758360HGnbEI','gkmSw','addListeners','ERROR','debug','error','type','9QMWLaJ','1064552YOPgzL','replace','INFO','connectionTimeout','KshHT','clusterName','../../utils/utilityMethods','exit','Stopping\x20grid\x20','NExEU','argv','usage','description','../../config/constants','KDmNB','pLMvj','1610052iJKzww','lbRFF','Stop\x20a\x20running\x20Automation\x20grid.','ZMWaL','../../utils/createk8sClient','../../utils/webSocketUtils','EvKWX','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','PNGIl','177827BKpUqx','grid-id','iYXJD','server-error','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','reconnecting-websocket','RTNtn','../../utils/gridComponents','BxgJg','PLCLk','kHeAd','desc','gridId','clusterRegion','Grid\x20stoppped.','message','372834ErzJmo','<PasswordPlaceholder>','parse','Browserstack','readFileSync','init-not-called'];a21_0x3b82=function(){return _0xee549e;};return a21_0x3b82();}(function(_0x48560a,_0x4e7a90){const _0xbc3dae=a21_0x5e05,_0xb9a834=_0x48560a();while(!![]){try{const _0x156986=parseInt(_0xbc3dae(0x194))/0x1+parseInt(_0xbc3dae(0x1a4))/0x2+parseInt(_0xbc3dae(0x17a))/0x3*(-parseInt(_0xbc3dae(0x17b))/0x4)+-parseInt(_0xbc3dae(0x169))/0x5*(-parseInt(_0xbc3dae(0x18b))/0x6)+parseInt(_0xbc3dae(0x16d))/0x7+-parseInt(_0xbc3dae(0x173))/0x8+parseInt(_0xbc3dae(0x16c))/0x9*(parseInt(_0xbc3dae(0x16e))/0xa);if(_0x156986===_0x4e7a90)break;else _0xb9a834['push'](_0xb9a834['shift']());}catch(_0x10a03c){_0xb9a834['push'](_0xb9a834['shift']());}}}(a21_0x3b82,0x6747d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0xef6709(0x199)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0xef6709(0x188)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0xef6709(0x181)),{scaleDownHubDeployment}=require(a21_0xef6709(0x19b)),{sendInstrumentationEvent}=require(a21_0xef6709(0x1ad)),webSocketUtils=require(a21_0xef6709(0x190)),{createK8sClient}=require(a21_0xef6709(0x18f)),{getCloudProviderObject}=require(a21_0xef6709(0x1af));exports['command']=a21_0xef6709(0x16f),exports[a21_0xef6709(0x19f)]=a21_0xef6709(0x18d),exports[a21_0xef6709(0x168)]=function(_0x38690a){const _0x5556ea=a21_0xef6709,_0x514b4d={};_0x514b4d['kHeAd']=_0x5556ea(0x16a),_0x514b4d[_0x5556ea(0x170)]=_0x5556ea(0x1b2),_0x514b4d['qHTzU']='Skip\x20insecure\x20cert\x20verification.',_0x514b4d['EvKWX']='boolean',_0x514b4d[_0x5556ea(0x189)]=_0x5556ea(0x1b3);const _0x44bbda=_0x514b4d,_0x252abd={};_0x252abd[_0x5556ea(0x187)]=_0x44bbda[_0x5556ea(0x19e)],_0x252abd[_0x5556ea(0x179)]=_0x44bbda[_0x5556ea(0x170)];const _0x562a58={};_0x562a58[_0x5556ea(0x187)]=_0x44bbda[_0x5556ea(0x1ba)],_0x562a58[_0x5556ea(0x179)]=_0x44bbda[_0x5556ea(0x191)],_0x562a58['default']=![];const _0x15ea4b={};return _0x15ea4b[_0x5556ea(0x195)]=_0x252abd,_0x15ea4b[_0x5556ea(0x1b8)]=_0x562a58,_0x38690a[_0x5556ea(0x186)](HELP_HEADER_MESSAGE[_0x5556ea(0x166)])[_0x5556ea(0x171)](HELP_FOOTER_MESSAGE)['options'](_0x15ea4b)['help'](_0x44bbda['KDmNB'])[_0x5556ea(0x185)];},exports[a21_0xef6709(0x1b0)]=async function(_0x3b345f){const _0xd0896f=a21_0xef6709,_0x100638={'gkmSw':_0xd0896f(0x198),'pLMvj':function(_0x3ad28f){return _0x3ad28f();},'mibKy':_0xd0896f(0x1bd),'ZMWaL':function(_0x47d501,_0x2624f8,_0x1b1e5b,_0x1a1a94,_0x514193,_0x22e36a,_0x192c4f){return _0x47d501(_0x2624f8,_0x1b1e5b,_0x1a1a94,_0x514193,_0x22e36a,_0x192c4f);},'KshHT':_0xd0896f(0x1be),'PNGIl':_0xd0896f(0x1a9),'RTNtn':function(_0x1c4e3b,_0x49c9c3,_0xf15746,_0x2ea0d7,_0x54cb91,_0x19e929,_0x2ff9d2){return _0x1c4e3b(_0x49c9c3,_0xf15746,_0x2ea0d7,_0x54cb91,_0x19e929,_0x2ff9d2);},'fQvMD':function(_0xa6447){return _0xa6447();},'tlLmI':_0xd0896f(0x1ac),'Tnefp':_0xd0896f(0x1a5),'dIKtB':'Adding\x20Websocket\x20listeners','srsFl':function(_0x2c4d5c,_0x1ed799,_0x126405,_0x5adff9){return _0x2c4d5c(_0x1ed799,_0x126405,_0x5adff9);},'BefMD':function(_0x15d0a0,_0xe48a1,_0x118c07,_0x1a4f2c,_0xc41982,_0x310cad,_0x16f6e0){return _0x15d0a0(_0xe48a1,_0x118c07,_0x1a4f2c,_0xc41982,_0x310cad,_0x16f6e0);},'lbRFF':function(_0x390ee8,_0x129dfe,_0x4c5217){return _0x390ee8(_0x129dfe,_0x4c5217);},'XygQN':_0xd0896f(0x1a2),'BxgJg':function(_0x2e97b5,_0x45e666){return _0x2e97b5===_0x45e666;},'NExEU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','PLCLk':'unauthorised','EfBan':'invalid-grid-id','iYXJD':function(_0x7182ca,_0x2a0fc6,_0x4dc003,_0x3052f9,_0x5cca47,_0x10c061,_0x1092d9){return _0x7182ca(_0x2a0fc6,_0x4dc003,_0x3052f9,_0x5cca47,_0x10c061,_0x1092d9);},'Rkdrf':_0xd0896f(0x197)};let _0x1db529;try{!_0x3b345f[_0xd0896f(0x1a0)]&&(logger[_0xd0896f(0x178)](_0x100638[_0xd0896f(0x174)]),process['exit'](0x1));!fs[_0xd0896f(0x1c0)](_0x100638[_0xd0896f(0x18a)](getCredentialsPath))&&(logger['error'](_0x100638[_0xd0896f(0x1bf)]),await _0x100638[_0xd0896f(0x18e)](sendInstrumentationEvent,_0x3b345f,_0x100638['KshHT'],messageTypes['ERROR'],_0x100638[_0xd0896f(0x193)],null,_0x3b345f),process[_0xd0896f(0x182)](0x1));logger['info'](_0xd0896f(0x183)+_0x3b345f['gridId']),await _0x100638[_0xd0896f(0x19a)](sendInstrumentationEvent,_0x3b345f,_0x100638[_0xd0896f(0x17f)],messageTypes[_0xd0896f(0x17d)],null,null,_0x3b345f);const _0x422129=JSON[_0xd0896f(0x1a6)](fs[_0xd0896f(0x1a8)](_0x100638[_0xd0896f(0x16b)](getCredentialsPath)));global_registry['bstackUsername']=_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1aa)],global_registry['bstackAccesskey']=_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1bb)];const _0x4bd9b0=WS_ENDPOINT[_0xd0896f(0x17c)](_0x100638['tlLmI'],_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1aa)])['replace'](_0x100638[_0xd0896f(0x172)],_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1bb)]),_0x93a0ba={};_0x93a0ba['WebSocket']=ws,_0x93a0ba[_0xd0896f(0x17e)]=0x36ee80,_0x1db529=new ReconnectingWebSocket(_0x4bd9b0,[],_0x93a0ba),logger[_0xd0896f(0x177)](_0x100638[_0xd0896f(0x1b9)]),webSocketUtils[_0xd0896f(0x175)](_0x1db529,_0x3b345f[_0xd0896f(0x1b6)],_0x3b345f[_0xd0896f(0x1bb)]);const [_0x114fb5,_0x22b04e]=await _0x100638[_0xd0896f(0x1b7)](getGridDetails,_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1aa)],_0x422129[_0xd0896f(0x1a7)][_0xd0896f(0x1bb)],_0x3b345f[_0xd0896f(0x1a0)]);if(_0x22b04e){const _0x3e6de7=_0x22b04e[_0xd0896f(0x1b4)];global_registry[_0xd0896f(0x1ab)]=_0x3e6de7[_0xd0896f(0x1ab)],global_registry[_0xd0896f(0x1a1)]=_0x3e6de7['region'],global_registry['clusterName']=_0x3e6de7['clusterName'];const _0x7a7f56=await _0x100638['BefMD'](getCloudProviderObject,_0x3e6de7[_0xd0896f(0x1ab)],_0x3e6de7[_0xd0896f(0x180)],_0x3e6de7['name'],_0x1db529,webSocketUtils,_0x3b345f),[_0xae321b,_0x1b3339,_0x3ce0c6,_0x2c1a98,_0x3dab6b,_0x310905]=await _0x100638[_0xd0896f(0x18c)](createK8sClient,_0x7a7f56,_0x3b345f['skipTlsCertVerify']);await _0x100638[_0xd0896f(0x18c)](scaleDownHubDeployment,_0x1b3339,_0x3e6de7['name']),logger[_0xd0896f(0x1b4)](_0x100638['XygQN']),process[_0xd0896f(0x182)](0x0);}_0x100638[_0xd0896f(0x19c)](_0x114fb5[_0xd0896f(0x167)],0x191)&&(logger[_0xd0896f(0x178)](_0x100638[_0xd0896f(0x184)]),await _0x100638[_0xd0896f(0x19a)](sendInstrumentationEvent,_0x3b345f,_0x100638[_0xd0896f(0x17f)],messageTypes['ERROR'],_0x100638[_0xd0896f(0x19d)],null,_0x3b345f),process[_0xd0896f(0x182)](0x1)),_0x100638['BxgJg'](_0x114fb5['statusCode'],0x190)&&(logger[_0xd0896f(0x178)](JSON[_0xd0896f(0x1a6)](_0x114fb5[_0xd0896f(0x1b5)])[_0xd0896f(0x1a3)]),await _0x100638[_0xd0896f(0x19a)](sendInstrumentationEvent,_0x3b345f,_0x100638[_0xd0896f(0x17f)],messageTypes[_0xd0896f(0x176)],_0x100638['EfBan'],null,_0x3b345f),process[_0xd0896f(0x182)](0x1)),logger[_0xd0896f(0x178)](_0xd0896f(0x192)+JSON['stringify'](_0x114fb5)),await _0x100638[_0xd0896f(0x196)](sendInstrumentationEvent,_0x3b345f,_0x100638[_0xd0896f(0x17f)],messageTypes['ERROR'],_0x100638[_0xd0896f(0x1b1)],_0x114fb5,_0x3b345f),process[_0xd0896f(0x182)](0x1);}catch(_0x2968e0){const _0x22480c=_0xd0896f(0x1ae)+_0x2968e0+'\x20\x0a'+JSON['stringify'](_0x2968e0[_0xd0896f(0x1bc)])+'\x20';logger['error'](_0x22480c),process[_0xd0896f(0x182)](0x1);}};
1
+ function a21_0x5132(){const _0x80a678=['867402tUUAit','help','grid-id','type','2JOsdEj','IKmKZ','stop-grid-called','existsSync','dZFUt','IPRoL','5135aHIJWY','command','CvnLs','server-error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','5513530bVBeXi','WebSocket','default','builder','zwfvJ','password','1378290NPrhzw','zZkkP','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','YXQdF','EOdts','YdpEQ','boolean','18810uOIFYm','clusterName','Stop\x20a\x20running\x20Automation\x20grid.','init-not-called','16599bFimMq','Browserstack','skip-tls-cert-verify','9708qhuPPC','argv','stack','mrBOb','grid','../../utils/utilityMethods','../../config/logger','description','<UsernamePlaceholder>','debug','unauthorised','clusterRegion','desc','24UJyRTf','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Stopping\x20grid\x20','yKbut','../../utils/gridComponents','replace','username','invalid-grid-id','statusCode','BVsTT','<PasswordPlaceholder>','user','nnNpY','BfRuj','../../config/constants','DjiRv','QdoeS','376fpuxlY','region','exit','skipTlsCertVerify','options','2869202muCYRJ','gridId','bstackUsername','BAZaw','2025BvWjfB','../../utils/instrumentationUtils','isNEj','usage','cloudProvider','wesoc','parse','ERROR','bstackAccesskey','geIlx','error','stringify','Grid\x20stoppped.','uwtHa','info','message','DtCjk','string','name','pzYfI','body','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','10yWtRyg','SHxJa'];a21_0x5132=function(){return _0x80a678;};return a21_0x5132();}function a21_0x13f7(_0x441c92,_0x4c645c){const _0x5132ee=a21_0x5132();return a21_0x13f7=function(_0x13f786,_0x4c5839){_0x13f786=_0x13f786-0x173;let _0x1cc25e=_0x5132ee[_0x13f786];return _0x1cc25e;},a21_0x13f7(_0x441c92,_0x4c645c);}const a21_0x1e02ea=a21_0x13f7;(function(_0x518c67,_0x2d4c61){const _0x173acc=a21_0x13f7,_0x3b04c2=_0x518c67();while(!![]){try{const _0x294a51=-parseInt(_0x173acc(0x1c5))/0x1*(-parseInt(_0x173acc(0x1b4))/0x2)+parseInt(_0x173acc(0x1d0))/0x3*(parseInt(_0x173acc(0x18f))/0x4)+-parseInt(_0x173acc(0x198))/0x5*(parseInt(_0x173acc(0x1cc))/0x6)+-parseInt(_0x173acc(0x194))/0x7+-parseInt(_0x173acc(0x17e))/0x8*(-parseInt(_0x173acc(0x1b0))/0x9)+-parseInt(_0x173acc(0x1ae))/0xa*(-parseInt(_0x173acc(0x1bf))/0xb)+parseInt(_0x173acc(0x1d3))/0xc*(-parseInt(_0x173acc(0x1ba))/0xd);if(_0x294a51===_0x2d4c61)break;else _0x3b04c2['push'](_0x3b04c2['shift']());}catch(_0x22fc51){_0x3b04c2['push'](_0x3b04c2['shift']());}}}(a21_0x5132,0xa85e8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1e02ea(0x18c)),{logger}=require(a21_0x1e02ea(0x177)),{getCredentialsPath,getGridDetails}=require(a21_0x1e02ea(0x176)),{scaleDownHubDeployment}=require(a21_0x1e02ea(0x182)),{sendInstrumentationEvent}=require(a21_0x1e02ea(0x199)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x1e02ea(0x1bb)]=a21_0x1e02ea(0x175),exports[a21_0x1e02ea(0x17d)]=a21_0x1e02ea(0x1ce),exports[a21_0x1e02ea(0x1c2)]=function(_0x3e7393){const _0x86833a=a21_0x1e02ea,_0x20a74d={};_0x20a74d[_0x86833a(0x18e)]=_0x86833a(0x1c7),_0x20a74d[_0x86833a(0x1a8)]=_0x86833a(0x1a9),_0x20a74d[_0x86833a(0x1b9)]='Skip\x20insecure\x20cert\x20verification.',_0x20a74d[_0x86833a(0x19a)]=_0x86833a(0x1cb),_0x20a74d[_0x86833a(0x1c8)]=_0x86833a(0x1b1);const _0x4d51f3=_0x20a74d,_0x194ce0={};_0x194ce0['description']=_0x4d51f3[_0x86833a(0x18e)],_0x194ce0[_0x86833a(0x1b3)]=_0x4d51f3[_0x86833a(0x1a8)];const _0x8314d2={};_0x8314d2[_0x86833a(0x178)]=_0x4d51f3[_0x86833a(0x1b9)],_0x8314d2[_0x86833a(0x1b3)]=_0x4d51f3[_0x86833a(0x19a)],_0x8314d2[_0x86833a(0x1c1)]=![];const _0x3922a1={};return _0x3922a1[_0x86833a(0x1b2)]=_0x194ce0,_0x3922a1[_0x86833a(0x1d2)]=_0x8314d2,_0x3e7393[_0x86833a(0x19b)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x86833a(0x193)](_0x3922a1)['help'](_0x4d51f3[_0x86833a(0x1c8)])[_0x86833a(0x1d4)];},exports['handler']=async function(_0x198623){const _0x51069b=a21_0x1e02ea,_0x414429={'geIlx':_0x51069b(0x1ad),'nnNpY':function(_0x3d7284){return _0x3d7284();},'DjiRv':_0x51069b(0x1be),'uwtHa':function(_0x44b381,_0x48de9f,_0x30787c,_0x31062a,_0x557083,_0x386e9e,_0x2da7fe){return _0x44b381(_0x48de9f,_0x30787c,_0x31062a,_0x557083,_0x386e9e,_0x2da7fe);},'mrBOb':_0x51069b(0x1b6),'wesoc':_0x51069b(0x1cf),'VnsHo':_0x51069b(0x179),'dhcFD':_0x51069b(0x188),'SHxJa':'Adding\x20Websocket\x20listeners','IKmKZ':function(_0xed3880,_0x4c0908,_0x1ea028,_0xcbd6a6){return _0xed3880(_0x4c0908,_0x1ea028,_0xcbd6a6);},'BVsTT':function(_0x578fd2,_0x1de254,_0x2c64ab){return _0x578fd2(_0x1de254,_0x2c64ab);},'zZkkP':function(_0x5040dc,_0x3e4159,_0x276dd3){return _0x5040dc(_0x3e4159,_0x276dd3);},'zwfvJ':_0x51069b(0x1a4),'BAZaw':function(_0x2bf563,_0x196b48){return _0x2bf563===_0x196b48;},'CvnLs':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','yKbut':function(_0x38168e,_0x421750,_0x5ebc5e,_0x110a52,_0x6b6c75,_0x5d0154,_0x375903){return _0x38168e(_0x421750,_0x5ebc5e,_0x110a52,_0x6b6c75,_0x5d0154,_0x375903);},'pzYfI':_0x51069b(0x17b),'BfRuj':function(_0x22bb9f,_0x39c3bf){return _0x22bb9f===_0x39c3bf;},'dZFUt':function(_0x295b4f,_0x4af5be,_0x481a43,_0x15364f,_0x5e02bc,_0x1ae273,_0x1220c5){return _0x295b4f(_0x4af5be,_0x481a43,_0x15364f,_0x5e02bc,_0x1ae273,_0x1220c5);},'YdpEQ':_0x51069b(0x185),'EOdts':_0x51069b(0x1bd)};let _0x8f7fdc;try{!_0x198623[_0x51069b(0x195)]&&(logger[_0x51069b(0x1a2)](_0x414429[_0x51069b(0x1a1)]),process['exit'](0x1));!fs[_0x51069b(0x1b7)](_0x414429[_0x51069b(0x18a)](getCredentialsPath))&&(logger['error'](_0x414429[_0x51069b(0x18d)]),await _0x414429['uwtHa'](sendInstrumentationEvent,_0x198623,_0x414429['mrBOb'],messageTypes['ERROR'],_0x414429[_0x51069b(0x19d)],null,_0x198623),process[_0x51069b(0x191)](0x1));logger[_0x51069b(0x1a6)](_0x51069b(0x180)+_0x198623[_0x51069b(0x195)]),await _0x414429[_0x51069b(0x1a5)](sendInstrumentationEvent,_0x198623,_0x414429['mrBOb'],messageTypes['INFO'],null,null,_0x198623);const _0x17572c=JSON[_0x51069b(0x19e)](fs['readFileSync'](_0x414429[_0x51069b(0x18a)](getCredentialsPath)));global_registry[_0x51069b(0x196)]=_0x17572c[_0x51069b(0x1d1)][_0x51069b(0x184)],global_registry[_0x51069b(0x1a0)]=_0x17572c['Browserstack'][_0x51069b(0x1c4)];const _0x48d068=WS_ENDPOINT[_0x51069b(0x183)](_0x414429['VnsHo'],_0x17572c['Browserstack']['username'])[_0x51069b(0x183)](_0x414429['dhcFD'],_0x17572c['Browserstack']['password']),_0x161d71={};_0x161d71[_0x51069b(0x1c0)]=ws,_0x161d71['connectionTimeout']=0x36ee80,_0x8f7fdc=new ReconnectingWebSocket(_0x48d068,[],_0x161d71),logger[_0x51069b(0x17a)](_0x414429[_0x51069b(0x1af)]),webSocketUtils['addListeners'](_0x8f7fdc,_0x198623[_0x51069b(0x189)],_0x198623[_0x51069b(0x1c4)]);const [_0x45bb9d,_0x9c265f]=await _0x414429[_0x51069b(0x1b5)](getGridDetails,_0x17572c[_0x51069b(0x1d1)][_0x51069b(0x184)],_0x17572c[_0x51069b(0x1d1)][_0x51069b(0x1c4)],_0x198623['gridId']);if(_0x9c265f){const _0x5d9f78=_0x9c265f[_0x51069b(0x1a6)];global_registry[_0x51069b(0x19c)]=_0x5d9f78[_0x51069b(0x19c)],global_registry[_0x51069b(0x17c)]=_0x5d9f78[_0x51069b(0x190)],global_registry['clusterName']=_0x5d9f78[_0x51069b(0x1cd)];const _0x3a4c2d=await _0x414429['uwtHa'](getCloudProviderObject,_0x5d9f78[_0x51069b(0x19c)],_0x5d9f78[_0x51069b(0x1cd)],_0x5d9f78[_0x51069b(0x1aa)],_0x8f7fdc,webSocketUtils,_0x198623),[_0x4d01a0,_0x31bcef,_0x1950fa,_0x1096e9,_0x5104db,_0x25f68f]=await _0x414429[_0x51069b(0x187)](createK8sClient,_0x3a4c2d,_0x198623[_0x51069b(0x192)]);await _0x414429[_0x51069b(0x1c6)](scaleDownHubDeployment,_0x31bcef,_0x5d9f78[_0x51069b(0x1aa)]),logger[_0x51069b(0x1a6)](_0x414429[_0x51069b(0x1c3)]),process[_0x51069b(0x191)](0x0);}_0x414429[_0x51069b(0x197)](_0x45bb9d[_0x51069b(0x186)],0x191)&&(logger[_0x51069b(0x1a2)](_0x414429[_0x51069b(0x1bc)]),await _0x414429[_0x51069b(0x181)](sendInstrumentationEvent,_0x198623,_0x414429[_0x51069b(0x174)],messageTypes[_0x51069b(0x19f)],_0x414429[_0x51069b(0x1ab)],null,_0x198623),process[_0x51069b(0x191)](0x1)),_0x414429[_0x51069b(0x18b)](_0x45bb9d[_0x51069b(0x186)],0x190)&&(logger[_0x51069b(0x1a2)](JSON[_0x51069b(0x19e)](_0x45bb9d[_0x51069b(0x1ac)])[_0x51069b(0x1a7)]),await _0x414429[_0x51069b(0x1b8)](sendInstrumentationEvent,_0x198623,_0x414429['mrBOb'],messageTypes['ERROR'],_0x414429[_0x51069b(0x1ca)],null,_0x198623),process[_0x51069b(0x191)](0x1)),logger[_0x51069b(0x1a2)](_0x51069b(0x17f)+JSON[_0x51069b(0x1a3)](_0x45bb9d)),await _0x414429[_0x51069b(0x181)](sendInstrumentationEvent,_0x198623,_0x414429['mrBOb'],messageTypes[_0x51069b(0x19f)],_0x414429[_0x51069b(0x1c9)],_0x45bb9d,_0x198623),process[_0x51069b(0x191)](0x1);}catch(_0xa0a1e8){const _0x17e79f='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0xa0a1e8+'\x20\x0a'+JSON[_0x51069b(0x1a3)](_0xa0a1e8[_0x51069b(0x173)])+'\x20';logger[_0x51069b(0x1a2)](_0x17e79f),process[_0x51069b(0x191)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x8acea6=a22_0x28fd;(function(_0x5ca40b,_0x28a37e){const _0x5b7182=a22_0x28fd,_0x544cf6=_0x5ca40b();while(!![]){try{const _0x3ba663=parseInt(_0x5b7182(0x1a7))/0x1+-parseInt(_0x5b7182(0x1bb))/0x2+parseInt(_0x5b7182(0x1e6))/0x3+-parseInt(_0x5b7182(0x1ef))/0x4*(parseInt(_0x5b7182(0x1de))/0x5)+parseInt(_0x5b7182(0x1e5))/0x6+-parseInt(_0x5b7182(0x1e0))/0x7+parseInt(_0x5b7182(0x1d6))/0x8;if(_0x3ba663===_0x28a37e)break;else _0x544cf6['push'](_0x544cf6['shift']());}catch(_0x47c6e4){_0x544cf6['push'](_0x544cf6['shift']());}}}(a22_0x57e5,0xadef7),require('dotenv')[a22_0x8acea6(0x1c0)]());let gridURL=a22_0x8acea6(0x1bc),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x8acea6(0x1b0);const _env=(process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1f0)]||'prod')[a22_0x8acea6(0x197)]();if(_env===a22_0x8acea6(0x1b4)||_env===a22_0x8acea6(0x1b6))gridURL=a22_0x8acea6(0x1bd),bsApiUrl=a22_0x8acea6(0x1ce),agApiUrl=a22_0x8acea6(0x1e3);else(_env===a22_0x8acea6(0x1ad)||_env==='pre-prod')&&(gridURL=a22_0x8acea6(0x1cc),bsApiUrl=a22_0x8acea6(0x1c1),agApiUrl=a22_0x8acea6(0x1c4));exports[a22_0x8acea6(0x1cf)]=process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1cf)]||gridURL,exports['BS_API_URL']=process[a22_0x8acea6(0x1a2)]['BS_API_URL']||bsApiUrl,exports[a22_0x8acea6(0x1d8)]=process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1d8)]||agApiUrl,exports[a22_0x8acea6(0x1af)]='wss://'+this[a22_0x8acea6(0x1d8)]+a22_0x8acea6(0x1d7),exports[a22_0x8acea6(0x19d)]=a22_0x8acea6(0x1a3),exports[a22_0x8acea6(0x1eb)]=a22_0x8acea6(0x1f5),exports[a22_0x8acea6(0x1d5)]='high-scale-grid',exports[a22_0x8acea6(0x1d4)]=a22_0x8acea6(0x1b2),exports[a22_0x8acea6(0x1ec)]=a22_0x8acea6(0x1a4),exports[a22_0x8acea6(0x1a6)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x8acea6(0x198)]=a22_0x8acea6(0x1ae),exports[a22_0x8acea6(0x19f)]=a22_0x8acea6(0x1bf),exports[a22_0x8acea6(0x1b9)]=a22_0x8acea6(0x1b3),exports[a22_0x8acea6(0x1f7)]=a22_0x8acea6(0x1c8),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x8acea6(0x1b9)],this[a22_0x8acea6(0x1f7)]];const a22_0x3cea38={};a22_0x3cea38[a22_0x8acea6(0x192)]=a22_0x8acea6(0x18c),a22_0x3cea38[a22_0x8acea6(0x1f6)]=a22_0x8acea6(0x18a);const a22_0x212df7={};a22_0x212df7[a22_0x8acea6(0x192)]=a22_0x8acea6(0x1e2),a22_0x212df7[a22_0x8acea6(0x1f6)]=a22_0x8acea6(0x19e);const common_hst_tags_list=[a22_0x3cea38,a22_0x212df7];if(process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1f1)]){const parsedTags=process[a22_0x8acea6(0x1a2)][a22_0x8acea6(0x1f1)][a22_0x8acea6(0x1f2)](',');parsedTags[a22_0x8acea6(0x1d2)](_0x3cc261=>{const _0x49456d=a22_0x8acea6,_0x23fbe8=_0x3cc261[_0x49456d(0x1f2)](':'),_0x437d5d={};_0x437d5d['Key']=_0x23fbe8[0x0],_0x437d5d[_0x49456d(0x1f6)]=_0x23fbe8[0x1],common_hst_tags_list[_0x49456d(0x1a0)](_0x437d5d);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x4eabc5={};a22_0x4eabc5[a22_0x8acea6(0x18c)]=a22_0x8acea6(0x18a),a22_0x4eabc5[a22_0x8acea6(0x1e2)]='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0x4eabc5,exports[a22_0x8acea6(0x1c9)]=[this[a22_0x8acea6(0x1d4)]];const a22_0x1d141f={};a22_0x1d141f[a22_0x8acea6(0x18f)]=a22_0x8acea6(0x196),a22_0x1d141f[a22_0x8acea6(0x1db)]='resourceInfo',a22_0x1d141f[a22_0x8acea6(0x1b8)]='gridUrl',a22_0x1d141f['CLI_RUN_STARTED']=a22_0x8acea6(0x1dd),a22_0x1d141f[a22_0x8acea6(0x1d3)]=a22_0x8acea6(0x190),exports[a22_0x8acea6(0x1ac)]=a22_0x1d141f,exports[a22_0x8acea6(0x1a5)]={},exports['LINK_MESSAGE']=a22_0x8acea6(0x1c5);function a22_0x28fd(_0x4a298b,_0x13f236){const _0x57e53a=a22_0x57e5();return a22_0x28fd=function(_0x28fdcb,_0x44d129){_0x28fdcb=_0x28fdcb-0x18a;let _0x62b585=_0x57e53a[_0x28fdcb];return _0x62b585;},a22_0x28fd(_0x4a298b,_0x13f236);}const a22_0x24a526={};a22_0x24a526[a22_0x8acea6(0x19a)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x1d9)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x8acea6(0x1b7)],a22_0x24a526['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x24a526[a22_0x8acea6(0x18b)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x24a526[a22_0x8acea6(0x19c)]={},a22_0x24a526[a22_0x8acea6(0x1e7)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x1ca)]=a22_0x8acea6(0x1c6)+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x1df)]=a22_0x8acea6(0x1b5)+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x1f4)]=a22_0x8acea6(0x1a1)+this['LINK_MESSAGE'],a22_0x24a526[a22_0x8acea6(0x1aa)]=a22_0x8acea6(0x1ba)+this['LINK_MESSAGE'],a22_0x24a526[a22_0x8acea6(0x19c)][a22_0x8acea6(0x19a)]=a22_0x8acea6(0x1b1)+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x19c)][a22_0x8acea6(0x1e9)]=a22_0x8acea6(0x1cb)+this[a22_0x8acea6(0x1b7)],a22_0x24a526[a22_0x8acea6(0x19c)][a22_0x8acea6(0x1c7)]=a22_0x8acea6(0x195)+this[a22_0x8acea6(0x1b7)],exports[a22_0x8acea6(0x199)]=a22_0x24a526,exports['HELP_FOOTER_MESSAGE']=a22_0x8acea6(0x1e1);const a22_0x4c76a5={};a22_0x4c76a5[a22_0x8acea6(0x18d)]=a22_0x8acea6(0x1c2),a22_0x4c76a5[a22_0x8acea6(0x193)]=a22_0x8acea6(0x1e4),a22_0x4c76a5['INFO']=a22_0x8acea6(0x194),a22_0x4c76a5[a22_0x8acea6(0x1dc)]=a22_0x8acea6(0x1d1),a22_0x4c76a5[a22_0x8acea6(0x1a9)]=a22_0x8acea6(0x18e),a22_0x4c76a5['NULL']=null,exports[a22_0x8acea6(0x1ee)]=a22_0x4c76a5,exports[a22_0x8acea6(0x1ab)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x8acea6(0x1cd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x8acea6(0x1ed)]='[REDACTED]';const a22_0x128623={};function a22_0x57e5(){const _0xd56f2f=['api-devhst.bsstag.com','DASHBOARD_ENDPOINT','REGION','warning','forEach','CLI_RUN_FINISHED','AWS','DEFAULT_GRID_NAME','10915776BdRNDB','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','AG_API_URL','init','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','RESOURCES','WARNING','cliRunStarted','5VSttga','start','9860879BWfhLV','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','browserstack:service','grid-api-devhst.bsstag.com','error','184140RrVGDW','3130053npYwUP','delete','CLUSTER','grid','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','IAM_USER_NAME','CLUSTER_DEP_STACK_NAME','REDACTED','messageTypes','1523468BJGucp','BROWSERSTACK_ENV','TURBOSCALE_CUSTOM_TAGS','split','CLOUD_PROVIDER','stop','BrowserStackIAMUser','Value','GCP','BrowserStack','create','browserstack:managedBy','SUCCESS','unknown','LOG','cliRunFinished','high-scale-grid-cluster','Key','ERROR','info','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','log','toLowerCase','CLUSTER_HUB_HA_STACK_NAME','HELP_HEADER_MESSAGE','root','MessageDescription','list','CP_CONFIG_FILE','BrowserStack-Automate-TurboScale','TURBOSCALE_DEPLOYMENT','push','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','env','credentials','BSTACK-ATS-CLUSTER','global_registry','CLUSTER_AUTOSCALER_STACK_NAME','1011150NSEXMu','grid-profile','UNKNOWN','pre_check','CLI_ARGS_REGEX','WS_EVENTS','preprod','BSTACK-ATS-CLUSTER-HUB-HA','WS_ENDPOINT','grid-api.browserstack.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','aws','azure','staging','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','stag','LINK_MESSAGE','GRID_URL','AZURE','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','1895320ykcILv','grid.browserstack.com','grid-devhst.bsstag.com','TRIAL_GRID_URL','browserstack-turboscale-grid','config','api-preprod.bsstag.com','success','pre-check','grid-api-preprod.bsstag.com','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','gridProfile','gcp','SUPPORTED_CLOUD_PROVIDERS','connect','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','grid-preprod.bsstag.com','RAW_ARGS_REGEX'];a22_0x57e5=function(){return _0xd56f2f;};return a22_0x57e5();}a22_0x128623[a22_0x8acea6(0x1a8)]=a22_0x8acea6(0x1da);const a22_0x5276ee={};a22_0x5276ee[a22_0x8acea6(0x1c3)]=a22_0x128623,exports[a22_0x8acea6(0x19b)]=a22_0x5276ee,exports[a22_0x8acea6(0x1be)]=a22_0x8acea6(0x1ea);const a22_0x14ca6b={};a22_0x14ca6b[a22_0x8acea6(0x1e8)]=a22_0x8acea6(0x191),a22_0x14ca6b[a22_0x8acea6(0x1f3)]=a22_0x8acea6(0x1b2),a22_0x14ca6b[a22_0x8acea6(0x1d0)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x14ca6b;
1
+ const a22_0x2e5f3e=a22_0x1394;(function(_0x518696,_0x31a334){const _0x3ecac6=a22_0x1394,_0x3a270c=_0x518696();while(!![]){try{const _0x42251d=-parseInt(_0x3ecac6(0x1ca))/0x1+-parseInt(_0x3ecac6(0x22b))/0x2*(-parseInt(_0x3ecac6(0x1cf))/0x3)+parseInt(_0x3ecac6(0x227))/0x4+parseInt(_0x3ecac6(0x1de))/0x5*(parseInt(_0x3ecac6(0x231))/0x6)+-parseInt(_0x3ecac6(0x22a))/0x7*(parseInt(_0x3ecac6(0x211))/0x8)+-parseInt(_0x3ecac6(0x22f))/0x9+parseInt(_0x3ecac6(0x214))/0xa;if(_0x42251d===_0x31a334)break;else _0x3a270c['push'](_0x3a270c['shift']());}catch(_0x5d1e40){_0x3a270c['push'](_0x3a270c['shift']());}}}(a22_0x5f56,0xc301a),require(a22_0x2e5f3e(0x1ec))[a22_0x2e5f3e(0x230)]());let gridURL=a22_0x2e5f3e(0x228),bsApiUrl=a22_0x2e5f3e(0x205),agApiUrl=a22_0x2e5f3e(0x1f9);const _env=(process['env'][a22_0x2e5f3e(0x1d0)]||a22_0x2e5f3e(0x202))[a22_0x2e5f3e(0x1ce)]();if(_env===a22_0x2e5f3e(0x1c8)||_env==='stag')gridURL=a22_0x2e5f3e(0x21b),bsApiUrl=a22_0x2e5f3e(0x206),agApiUrl=a22_0x2e5f3e(0x1e7);else(_env===a22_0x2e5f3e(0x1d4)||_env==='pre-prod')&&(gridURL=a22_0x2e5f3e(0x1f7),bsApiUrl=a22_0x2e5f3e(0x1c3),agApiUrl=a22_0x2e5f3e(0x1c9));exports[a22_0x2e5f3e(0x215)]=process[a22_0x2e5f3e(0x1e0)][a22_0x2e5f3e(0x215)]||gridURL,exports[a22_0x2e5f3e(0x226)]=process[a22_0x2e5f3e(0x1e0)][a22_0x2e5f3e(0x226)]||bsApiUrl,exports[a22_0x2e5f3e(0x1e9)]=process[a22_0x2e5f3e(0x1e0)][a22_0x2e5f3e(0x1e9)]||agApiUrl,exports['WS_ENDPOINT']='wss://'+this['AG_API_URL']+a22_0x2e5f3e(0x210),exports[a22_0x2e5f3e(0x219)]=a22_0x2e5f3e(0x1c2),exports[a22_0x2e5f3e(0x209)]=a22_0x2e5f3e(0x1d8),exports[a22_0x2e5f3e(0x21d)]='high-scale-grid',exports[a22_0x2e5f3e(0x224)]=a22_0x2e5f3e(0x222),exports['CLUSTER_DEP_STACK_NAME']=a22_0x2e5f3e(0x21c),exports[a22_0x2e5f3e(0x216)]=a22_0x2e5f3e(0x21f),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x2e5f3e(0x1d6),exports[a22_0x2e5f3e(0x1fb)]=a22_0x2e5f3e(0x1f6),exports[a22_0x2e5f3e(0x21e)]=a22_0x2e5f3e(0x1e5),exports[a22_0x2e5f3e(0x203)]=a22_0x2e5f3e(0x212),exports[a22_0x2e5f3e(0x1e8)]=[this[a22_0x2e5f3e(0x224)],this['AZURE'],this[a22_0x2e5f3e(0x203)]];const a22_0x164fbf={};a22_0x164fbf[a22_0x2e5f3e(0x1fd)]=a22_0x2e5f3e(0x1da),a22_0x164fbf['Value']=a22_0x2e5f3e(0x1df);const a22_0x131c5b={};a22_0x131c5b[a22_0x2e5f3e(0x1fd)]=a22_0x2e5f3e(0x1ea),a22_0x131c5b['Value']=a22_0x2e5f3e(0x229);const common_hst_tags_list=[a22_0x164fbf,a22_0x131c5b];if(process[a22_0x2e5f3e(0x1e0)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x2e5f3e(0x1e0)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x2e5f3e(0x1d3)](',');parsedTags[a22_0x2e5f3e(0x225)](_0xd0d102=>{const _0x273f92=a22_0x2e5f3e,_0x497136=_0xd0d102['split'](':'),_0x346521={};_0x346521[_0x273f92(0x1fd)]=_0x497136[0x0],_0x346521[_0x273f92(0x20d)]=_0x497136[0x1],common_hst_tags_list[_0x273f92(0x1cb)](_0x346521);});}exports[a22_0x2e5f3e(0x1eb)]=common_hst_tags_list;const a22_0x10aa2b={};function a22_0x5f56(){const _0x58dd2c=['toLowerCase','72FvFmgA','BROWSERSTACK_ENV','configure','WARNING','split','preprod','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BSTACK-ATS-CLUSTER-HUB-HA','HELP_HEADER_MESSAGE','BrowserStackIAMUser','SUCCESS','browserstack:managedBy','WS_EVENTS','create','CLI_RUN_STARTED','2865710RgKBud','BrowserStack','env','error','info','init','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','azure','cliRunFinished','grid-api-devhst.bsstag.com','ALL_SUPPORTED_CLOUD_PROVIDERS','AG_API_URL','browserstack:service','COMMON_HST_TAGS','dotenv','SUPPORTED_CLOUD_PROVIDERS','log','REDACTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gridProfile','ERROR','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','high-scale-grid-cluster','INFO','browserstack-turboscale-grid','grid-preprod.bsstag.com','pre-check','grid-api.browserstack.com','GRID_URL','TURBOSCALE_DEPLOYMENT','list','Key','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','us-east-1','stop','connect','prod','GCP','MessageDescription','api.browserstack.com','api-devhst.bsstag.com','unknown','HELP_FOOTER_MESSAGE','IAM_USER_NAME','CLI_RUN_FINISHED','DEFAULT_CLUSTER_DETAILS','root','Value','LOG','global_registry','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','169496mGPzOs','gcp','grid-profile','24016960VfxVCY','DASHBOARD_ENDPOINT','CLUSTER_AUTOSCALER_STACK_NAME','messageTypes','NULL','CP_CONFIG_FILE','RAW_ARGS_REGEX','grid-devhst.bsstag.com','BSTACK-ATS-CLUSTER','DEFAULT_GRID_NAME','AZURE','BSTACK-ATS-CLUSTER-AUTOSCALER','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','aws','UNKNOWN','AWS','forEach','BS_API_URL','811840qYlLfK','grid.browserstack.com','BrowserStack-Automate-TurboScale','21BjPyDR','7578eYMNtl','CLI_ARGS_REGEX','pre_check','CLUSTER','12838320ppuwDs','config','12bkTZAW','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','TRIAL_GRID_URL','delete','credentials','api-preprod.bsstag.com','grid','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','warning','LINK_MESSAGE','staging','grid-api-preprod.bsstag.com','1553089EDzvHB','push','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'];a22_0x5f56=function(){return _0x58dd2c;};return a22_0x5f56();}a22_0x10aa2b[a22_0x2e5f3e(0x1da)]=a22_0x2e5f3e(0x1df),a22_0x10aa2b[a22_0x2e5f3e(0x1ea)]='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0x10aa2b,exports[a22_0x2e5f3e(0x1ed)]=[this[a22_0x2e5f3e(0x224)]];const a22_0x500c18={};a22_0x500c18[a22_0x2e5f3e(0x20e)]=a22_0x2e5f3e(0x1ee),a22_0x500c18['RESOURCES']='resourceInfo',a22_0x500c18[a22_0x2e5f3e(0x1fa)]='gridUrl',a22_0x500c18[a22_0x2e5f3e(0x1dd)]='cliRunStarted',a22_0x500c18[a22_0x2e5f3e(0x20a)]=a22_0x2e5f3e(0x1e6),exports[a22_0x2e5f3e(0x1db)]=a22_0x500c18,exports[a22_0x2e5f3e(0x20f)]={},exports[a22_0x2e5f3e(0x1c7)]=a22_0x2e5f3e(0x220);const a22_0x4c5c3a={};a22_0x4c5c3a[a22_0x2e5f3e(0x20c)]=a22_0x2e5f3e(0x1e4)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x1e3)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x1d1)]=a22_0x2e5f3e(0x1f0)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x1dc)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x1fc)]={},a22_0x4c5c3a[a22_0x2e5f3e(0x1c1)]=a22_0x2e5f3e(0x1f3)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x201)]=a22_0x2e5f3e(0x1d5)+this['LINK_MESSAGE'],a22_0x4c5c3a['start']=a22_0x2e5f3e(0x1fe)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x200)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x22d)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x1fc)][a22_0x2e5f3e(0x20c)]=a22_0x2e5f3e(0x221)+this[a22_0x2e5f3e(0x1c7)],a22_0x4c5c3a[a22_0x2e5f3e(0x1fc)][a22_0x2e5f3e(0x1c4)]=a22_0x2e5f3e(0x1cd)+this['LINK_MESSAGE'],a22_0x4c5c3a[a22_0x2e5f3e(0x1fc)][a22_0x2e5f3e(0x1f1)]=a22_0x2e5f3e(0x1cc)+this[a22_0x2e5f3e(0x1c7)],exports[a22_0x2e5f3e(0x1d7)]=a22_0x4c5c3a,exports[a22_0x2e5f3e(0x208)]=a22_0x2e5f3e(0x1bf);const a22_0x577155={};function a22_0x1394(_0x235dcb,_0x190010){const _0x5f5670=a22_0x5f56();return a22_0x1394=function(_0x1394a5,_0x3e16c6){_0x1394a5=_0x1394a5-0x1bf;let _0x3e1468=_0x5f5670[_0x1394a5];return _0x3e1468;},a22_0x1394(_0x235dcb,_0x190010);}a22_0x577155[a22_0x2e5f3e(0x1d9)]='success',a22_0x577155[a22_0x2e5f3e(0x1f2)]=a22_0x2e5f3e(0x1e1),a22_0x577155[a22_0x2e5f3e(0x1f5)]=a22_0x2e5f3e(0x1e2),a22_0x577155[a22_0x2e5f3e(0x1d2)]=a22_0x2e5f3e(0x1c6),a22_0x577155[a22_0x2e5f3e(0x223)]=a22_0x2e5f3e(0x207),a22_0x577155[a22_0x2e5f3e(0x218)]=null,exports[a22_0x2e5f3e(0x217)]=a22_0x577155,exports[a22_0x2e5f3e(0x22c)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2e5f3e(0x21a)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2e5f3e(0x1ef)]='[REDACTED]';const a22_0x35eb24={};a22_0x35eb24[a22_0x2e5f3e(0x213)]=a22_0x2e5f3e(0x1c5);const a22_0x43c998={};a22_0x43c998[a22_0x2e5f3e(0x1f8)]=a22_0x35eb24,exports[a22_0x2e5f3e(0x204)]=a22_0x43c998,exports[a22_0x2e5f3e(0x1c0)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x5dffea={};a22_0x5dffea[a22_0x2e5f3e(0x22e)]=a22_0x2e5f3e(0x1f4),a22_0x5dffea['CLOUD_PROVIDER']=a22_0x2e5f3e(0x222),a22_0x5dffea['REGION']=a22_0x2e5f3e(0x1ff),exports[a22_0x2e5f3e(0x20b)]=a22_0x5dffea;
@@ -1 +1 @@
1
- const a23_0x44debb=a23_0x49b8;(function(_0x3e884e,_0x184fc3){const _0x4c1fa9=a23_0x49b8,_0x23211f=_0x3e884e();while(!![]){try{const _0x3cf926=parseInt(_0x4c1fa9(0xe3))/0x1*(-parseInt(_0x4c1fa9(0xd3))/0x2)+parseInt(_0x4c1fa9(0xe6))/0x3*(parseInt(_0x4c1fa9(0xde))/0x4)+-parseInt(_0x4c1fa9(0xcd))/0x5+parseInt(_0x4c1fa9(0xdb))/0x6+parseInt(_0x4c1fa9(0xcf))/0x7*(-parseInt(_0x4c1fa9(0xe5))/0x8)+parseInt(_0x4c1fa9(0xd4))/0x9+-parseInt(_0x4c1fa9(0xd5))/0xa;if(_0x3cf926===_0x184fc3)break;else _0x23211f['push'](_0x23211f['shift']());}catch(_0x2779e3){_0x23211f['push'](_0x23211f['shift']());}}}(a23_0x56d5,0xae5ad));const winston=require('winston'),fs=require('fs'),path=require('path'),logDir=a23_0x44debb(0xe1);function a23_0x56d5(){const _0x1f97d4=['6887583PNFArk','16892690VnvOLj','combine','format','console.info','YYYY-MM-DD\x20HH:mm:ss','Console','7584330kBoQih','logger','message','4812128RKNTSr','timestamp','debug','log','existsSync','493JCjOyF','mkdirSync','8KGFDAU','3PYmrfs','join','createLogger','transports','503240lSIunn','usage.log','1043175JEacRC','printf','level','name','2350LcIxSr'];a23_0x56d5=function(){return _0x1f97d4;};return a23_0x56d5();}!fs[a23_0x44debb(0xe2)](logDir)&&fs[a23_0x44debb(0xe4)](logDir);const a23_0x1fcccd={};a23_0x1fcccd[a23_0x44debb(0xd7)]=a23_0x44debb(0xd9);const a23_0x58517b={};a23_0x58517b[a23_0x44debb(0xd1)]=!![];const a23_0x2a0f85={};a23_0x2a0f85[a23_0x44debb(0xd2)]=a23_0x44debb(0xd8),exports[a23_0x44debb(0xdc)]=new winston[(a23_0x44debb(0xe8))]({'format':winston[a23_0x44debb(0xd7)][a23_0x44debb(0xd6)](winston[a23_0x44debb(0xd7)][a23_0x44debb(0xdf)](a23_0x1fcccd),winston[a23_0x44debb(0xd7)]['colorize'](a23_0x58517b),winston[a23_0x44debb(0xd7)][a23_0x44debb(0xd0)](_0x28e65c=>_0x28e65c['timestamp']+'\x20-\x20'+_0x28e65c[a23_0x44debb(0xd1)]+':\x20'+_0x28e65c[a23_0x44debb(0xdd)])),'transports':[new winston['transports'][(a23_0x44debb(0xda))](a23_0x2a0f85),new winston[(a23_0x44debb(0xe9))]['File']({'filename':path[a23_0x44debb(0xe7)](logDir,'events.log'),'level':a23_0x44debb(0xe0)})]});const winstonFileLoggerParams={'transports':[new winston['transports']['File']({'filename':path[a23_0x44debb(0xe7)](logDir,a23_0x44debb(0xce)),'level':a23_0x44debb(0xe0)})]};function a23_0x49b8(_0x546b97,_0x197959){const _0x56d571=a23_0x56d5();return a23_0x49b8=function(_0x49b826,_0x3aed0c){_0x49b826=_0x49b826-0xcd;let _0x43d1a6=_0x56d571[_0x49b826];return _0x43d1a6;},a23_0x49b8(_0x546b97,_0x197959);}exports['fileLogger']=new winston[(a23_0x44debb(0xe8))](winstonFileLoggerParams);
1
+ function a23_0x58f7(){const _0x586c43=['648huGoJt','YYYY-MM-DD\x20HH:mm:ss','existsSync','7896zsUSEH','debug','mkdirSync','format','printf','230072bywhnj','5271670ndrSDX','events.log','File','colorize','1554252WaFxnb','log','timestamp','createLogger','winston','name','fileLogger','combine','transports','Console','2446462zRgNKY','\x20-\x20','level','81950SJjeJA','message','join','24bHuaSB','4594818abGhzv','1388RefZzP'];a23_0x58f7=function(){return _0x586c43;};return a23_0x58f7();}const a23_0x29d73a=a23_0x4e43;(function(_0x177981,_0x3a5f9a){const _0x562b29=a23_0x4e43,_0xedb5f6=_0x177981();while(!![]){try{const _0x8a619f=parseInt(_0x562b29(0x98))/0x1+-parseInt(_0x562b29(0xa7))/0x2+parseInt(_0x562b29(0xb3))/0x3*(parseInt(_0x562b29(0xaf))/0x4)+-parseInt(_0x562b29(0x99))/0x5+parseInt(_0x562b29(0xae))/0x6+parseInt(_0x562b29(0x9d))/0x7*(parseInt(_0x562b29(0xad))/0x8)+parseInt(_0x562b29(0xb0))/0x9*(parseInt(_0x562b29(0xaa))/0xa);if(_0x8a619f===_0x3a5f9a)break;else _0xedb5f6['push'](_0xedb5f6['shift']());}catch(_0x3d34f4){_0xedb5f6['push'](_0xedb5f6['shift']());}}}(a23_0x58f7,0xd8bd2));const winston=require(a23_0x29d73a(0xa1)),fs=require('fs'),path=require('path'),logDir=a23_0x29d73a(0x9e);function a23_0x4e43(_0x5d1e59,_0x4dc09f){const _0x58f7bb=a23_0x58f7();return a23_0x4e43=function(_0x4e439d,_0x37bc2c){_0x4e439d=_0x4e439d-0x96;let _0x584530=_0x58f7bb[_0x4e439d];return _0x584530;},a23_0x4e43(_0x5d1e59,_0x4dc09f);}!fs[a23_0x29d73a(0xb2)](logDir)&&fs[a23_0x29d73a(0xb5)](logDir);const a23_0x297eb2={};a23_0x297eb2[a23_0x29d73a(0x96)]=a23_0x29d73a(0xb1);const a23_0x1d0c29={};a23_0x1d0c29['level']=!![];const a23_0x4a5a8e={};a23_0x4a5a8e[a23_0x29d73a(0xa2)]='console.info',exports['logger']=new winston[(a23_0x29d73a(0xa0))]({'format':winston[a23_0x29d73a(0x96)][a23_0x29d73a(0xa4)](winston[a23_0x29d73a(0x96)][a23_0x29d73a(0x9f)](a23_0x297eb2),winston['format'][a23_0x29d73a(0x9c)](a23_0x1d0c29),winston[a23_0x29d73a(0x96)][a23_0x29d73a(0x97)](_0x44c08b=>_0x44c08b[a23_0x29d73a(0x9f)]+a23_0x29d73a(0xa8)+_0x44c08b[a23_0x29d73a(0xa9)]+':\x20'+_0x44c08b[a23_0x29d73a(0xab)])),'transports':[new winston[(a23_0x29d73a(0xa5))][(a23_0x29d73a(0xa6))](a23_0x4a5a8e),new winston[(a23_0x29d73a(0xa5))][(a23_0x29d73a(0x9b))]({'filename':path[a23_0x29d73a(0xac)](logDir,a23_0x29d73a(0x9a)),'level':a23_0x29d73a(0xb4)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x29d73a(0x9b))]({'filename':path[a23_0x29d73a(0xac)](logDir,'usage.log'),'level':a23_0x29d73a(0xb4)})]};exports[a23_0x29d73a(0xa3)]=new winston[(a23_0x29d73a(0xa0))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x2d6a60=a24_0x51a1;(function(_0x1a576d,_0x595c92){const _0x525838=a24_0x51a1,_0x2c5944=_0x1a576d();while(!![]){try{const _0x3da58d=-parseInt(_0x525838(0x84))/0x1*(-parseInt(_0x525838(0x7e))/0x2)+parseInt(_0x525838(0x75))/0x3*(-parseInt(_0x525838(0x73))/0x4)+-parseInt(_0x525838(0x83))/0x5*(-parseInt(_0x525838(0x7f))/0x6)+-parseInt(_0x525838(0x79))/0x7+parseInt(_0x525838(0x78))/0x8+parseInt(_0x525838(0x72))/0x9+-parseInt(_0x525838(0x77))/0xa*(parseInt(_0x525838(0x82))/0xb);if(_0x3da58d===_0x595c92)break;else _0x2c5944['push'](_0x2c5944['shift']());}catch(_0x40166d){_0x2c5944['push'](_0x2c5944['shift']());}}}(a24_0x53d7,0x70598));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2d6a60(0x7d));function a24_0x51a1(_0x3516cd,_0x158014){const _0x53d756=a24_0x53d7();return a24_0x51a1=function(_0x51a16b,_0x8de8ae){_0x51a16b=_0x51a16b-0x72;let _0x1ebacf=_0x53d756[_0x51a16b];return _0x1ebacf;},a24_0x51a1(_0x3516cd,_0x158014);}process[a24_0x2d6a60(0x85)][a24_0x2d6a60(0x74)]=0x1;function a24_0x53d7(){const _0x5b9216=['1vanVcH','env','demandCommand','8010459trvcJd','4jZmRqU','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','459201kJuFlK','XsbFV','20741390fnmmFT','4910528DaShjk','2711688CLvNSf','commandDir','help','root','./config/constants','1344566fBPxcu','141888DkcxxA','usage','exports','11xqTHuw','190pKPwGD'];a24_0x53d7=function(){return _0x5b9216;};return a24_0x53d7();}function run(_0x230de3){const _0x4aeb56=a24_0x2d6a60,_0x532c5d={};_0x532c5d['XsbFV']='commands',_0x532c5d['KsTyC']=_0x4aeb56(0x7b);const _0x15b1e5=_0x532c5d;_0x230de3[_0x4aeb56(0x80)](HELP_HEADER_MESSAGE[_0x4aeb56(0x7c)])[_0x4aeb56(0x7a)](_0x15b1e5[_0x4aeb56(0x76)])[_0x4aeb56(0x86)]()[_0x4aeb56(0x7b)](_0x15b1e5['KsTyC'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x2d6a60(0x81)]=run;
2
+ 'use strict';const a24_0x3a2182=a24_0x2eaf;(function(_0x3c57b6,_0x33b627){const _0x1dee85=a24_0x2eaf,_0x34a822=_0x3c57b6();while(!![]){try{const _0x243a17=parseInt(_0x1dee85(0xc9))/0x1+-parseInt(_0x1dee85(0xc5))/0x2*(parseInt(_0x1dee85(0xd4))/0x3)+-parseInt(_0x1dee85(0xc8))/0x4*(-parseInt(_0x1dee85(0xc7))/0x5)+-parseInt(_0x1dee85(0xd5))/0x6*(parseInt(_0x1dee85(0xcd))/0x7)+parseInt(_0x1dee85(0xd8))/0x8*(-parseInt(_0x1dee85(0xd1))/0x9)+parseInt(_0x1dee85(0xce))/0xa+-parseInt(_0x1dee85(0xc6))/0xb*(parseInt(_0x1dee85(0xc4))/0xc);if(_0x243a17===_0x33b627)break;else _0x34a822['push'](_0x34a822['shift']());}catch(_0x580932){_0x34a822['push'](_0x34a822['shift']());}}}(a24_0x2f72,0x6ee16));function a24_0x2f72(){const _0x1d9ae8=['./config/constants','177002jLoHan','6290360hyQYzO','root','wOTRs','28233dPdqSa','exports','commands','37551MDNcfw','186qcidwM','env','epilogue','168eihOKE','commandDir','8426940KGcHxQ','2cPxHUq','11vRZUoD','2903990LkhPOS','4VEkyHL','808837tyKgfV','OWKju','usage'];a24_0x2f72=function(){return _0x1d9ae8;};return a24_0x2f72();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3a2182(0xcc));function a24_0x2eaf(_0x17a347,_0xa6083d){const _0x2f72ce=a24_0x2f72();return a24_0x2eaf=function(_0x2eaf39,_0x219a62){_0x2eaf39=_0x2eaf39-0xc4;let _0x32494d=_0x2f72ce[_0x2eaf39];return _0x32494d;},a24_0x2eaf(_0x17a347,_0xa6083d);}process[a24_0x3a2182(0xd6)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x5e60e3){const _0x4914e5=a24_0x3a2182,_0x54b6cd={};_0x54b6cd[_0x4914e5(0xca)]=_0x4914e5(0xd3),_0x54b6cd[_0x4914e5(0xd0)]='help';const _0x597ef=_0x54b6cd;_0x5e60e3[_0x4914e5(0xcb)](HELP_HEADER_MESSAGE[_0x4914e5(0xcf)])[_0x4914e5(0xd9)](_0x597ef['OWKju'])['demandCommand']()['help'](_0x597ef[_0x4914e5(0xd0)])[_0x4914e5(0xd7)](HELP_FOOTER_MESSAGE);}module[a24_0x3a2182(0xd2)]=run;