browserstack-node-sdk 1.53.1 → 1.53.3

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 (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +6 -4
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x254550=a15_0x5552;(function(_0x5e4303,_0x5b2162){const _0x53c3fa=a15_0x5552,_0x371bd8=_0x5e4303();while(!![]){try{const _0x15ea3e=parseInt(_0x53c3fa(0xb4))/0x1+-parseInt(_0x53c3fa(0x84))/0x2+parseInt(_0x53c3fa(0xba))/0x3*(parseInt(_0x53c3fa(0x6d))/0x4)+-parseInt(_0x53c3fa(0x97))/0x5*(-parseInt(_0x53c3fa(0x71))/0x6)+parseInt(_0x53c3fa(0x9b))/0x7*(-parseInt(_0x53c3fa(0xbc))/0x8)+-parseInt(_0x53c3fa(0x90))/0x9*(-parseInt(_0x53c3fa(0xa6))/0xa)+parseInt(_0x53c3fa(0x75))/0xb*(-parseInt(_0x53c3fa(0x92))/0xc);if(_0x15ea3e===_0x5b2162)break;else _0x371bd8['push'](_0x371bd8['shift']());}catch(_0x388112){_0x371bd8['push'](_0x371bd8['shift']());}}}(a15_0xe80f,0x69b27));const fs=require('fs'),got=require(a15_0x254550(0xa2)),{table}=require(a15_0x254550(0x9a)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x254550(0x96)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x254550(0xb9));exports[a15_0x254550(0x76)]=a15_0x254550(0x8e),exports[a15_0x254550(0x95)]=a15_0x254550(0x9d),exports['builder']=function(_0x5c8a83){const _0x234365=a15_0x254550,_0x1dbccb={};_0x1dbccb['jGseJ']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x1dbccb[_0x234365(0x73)]=_0x234365(0x8c),_0x1dbccb[_0x234365(0xb5)]='help';const _0x5df997=_0x1dbccb,_0x34d400={};_0x34d400[_0x234365(0x9f)]=_0x5df997[_0x234365(0x79)],_0x34d400[_0x234365(0x78)]=_0x5df997[_0x234365(0x73)];const _0x1dbcae={};return _0x1dbcae[_0x234365(0x99)]=_0x34d400,_0x5c8a83['usage'](HELP_HEADER_MESSAGE[_0x234365(0x93)][_0x234365(0x80)])[_0x234365(0x8d)](HELP_FOOTER_MESSAGE)[_0x234365(0xae)](_0x1dbcae)[_0x234365(0xbf)](_0x5df997[_0x234365(0xb5)])[_0x234365(0x9c)];},exports[a15_0x254550(0xb8)]=async function(_0x1684c1){const _0x2e8cab=a15_0x254550,_0x100f33={'yGuYv':function(_0x1b5cdb){return _0x1b5cdb();},'qdmXI':function(_0x32aa37){return _0x32aa37();},'eCcQv':_0x2e8cab(0x6f),'koBEi':function(_0x503cf0,_0x5b3264,_0x500a30,_0x277652,_0x30ce47,_0x55f8fc,_0x316ea5){return _0x503cf0(_0x5b3264,_0x500a30,_0x277652,_0x30ce47,_0x55f8fc,_0x316ea5);},'XkwWW':_0x2e8cab(0x7f),'RXHjc':_0x2e8cab(0x89),'QrMnT':function(_0x5eed3a){return _0x5eed3a();},'aqZtz':_0x2e8cab(0xa3),'feetH':function(_0x13053d,_0x256d55,_0x49251e){return _0x13053d(_0x256d55,_0x49251e);},'LaFUQ':function(_0x5dd0fb,_0x1d53fa,_0x53c413){return _0x5dd0fb(_0x1d53fa,_0x53c413);},'lmAkV':function(_0x492438,_0x3e8395){return _0x492438!==_0x3e8395;},'SYpLs':function(_0xb736de,_0x5df5c2){return _0xb736de===_0x5df5c2;},'aSLxr':_0x2e8cab(0x98),'SYJsA':'grid-id','htOYx':_0x2e8cab(0xbd),'hcWMy':'status','gYODv':_0x2e8cab(0xb3),'JXQYH':_0x2e8cab(0x88),'ZeHqh':_0x2e8cab(0xa7),'cEVgz':function(_0x303004,_0x5936a1){return _0x303004(_0x5936a1);},'YNLiO':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TURcx':_0x2e8cab(0x91),'mgQcA':_0x2e8cab(0x83),'WyvqS':'unknown-error'};try{global_registry['requestId']=_0x100f33[_0x2e8cab(0xad)](uuidv4);!fs[_0x2e8cab(0xa0)](_0x100f33[_0x2e8cab(0x7d)](getCredentialsPath))&&(console[_0x2e8cab(0xab)](_0x100f33['eCcQv']),await _0x100f33[_0x2e8cab(0xa5)](sendInstrumentationEvent,_0x1684c1,_0x100f33[_0x2e8cab(0xb1)],messageTypes[_0x2e8cab(0x9e)],_0x100f33[_0x2e8cab(0x70)],null,_0x1684c1),process['exit'](0x1));const _0x4a74ff=JSON['parse'](fs[_0x2e8cab(0x87)](_0x100f33[_0x2e8cab(0xaf)](getCredentialsPath)));let _0x161da5='https://'+AG_API_URL+_0x2e8cab(0x7b);_0x1684c1['allGrids']&&(_0x161da5='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x4e2cca={'method':_0x100f33[_0x2e8cab(0xaa)],'headers':_0x100f33[_0x2e8cab(0x7e)](getAuthHeader,_0x4a74ff[_0x2e8cab(0xbe)][_0x2e8cab(0xa9)],_0x4a74ff['Browserstack'][_0x2e8cab(0xc0)]),'throwHttpErrors':![]};global_registry[_0x2e8cab(0xa4)]=_0x4a74ff['Browserstack']['username'],global_registry['bstackAccesskey']=_0x4a74ff['Browserstack'][_0x2e8cab(0xc0)],_0x100f33[_0x2e8cab(0xa5)](sendInstrumentationEvent,_0x1684c1,_0x100f33[_0x2e8cab(0xb1)],messageTypes[_0x2e8cab(0x8b)],null,null,_0x1684c1);const _0x227c1c=await _0x100f33[_0x2e8cab(0xa1)](got,_0x161da5,_0x4e2cca);if(_0x100f33[_0x2e8cab(0x8a)](_0x227c1c,null)&&_0x100f33[_0x2e8cab(0x8a)](_0x227c1c,undefined)&&_0x100f33['SYpLs'](_0x227c1c[_0x2e8cab(0x81)],0xc8)){const _0x3e42cd=JSON['parse'](_0x227c1c['body']);console[_0x2e8cab(0x72)](_0x100f33[_0x2e8cab(0xb7)]);const _0x52106b=[];_0x52106b[_0x2e8cab(0xb0)]([_0x100f33[_0x2e8cab(0x7c)],_0x100f33[_0x2e8cab(0xac)],_0x100f33[_0x2e8cab(0x85)],_0x100f33[_0x2e8cab(0x94)],_0x100f33[_0x2e8cab(0xb2)],_0x100f33['ZeHqh']]),_0x3e42cd[_0x2e8cab(0xbb)](_0xe32865=>{const _0x260a98=_0x2e8cab;_0x52106b[_0x260a98(0xb0)]([_0xe32865['id'],_0xe32865['name'],_0xe32865['status'],_0xe32865[_0x260a98(0xb3)],_0xe32865[_0x260a98(0x88)],_0xe32865[_0x260a98(0x86)]]);}),console['log'](_0x100f33['cEVgz'](table,_0x52106b)),process['exit'](0x0);}_0x100f33[_0x2e8cab(0x77)](_0x227c1c[_0x2e8cab(0x81)],0x191)&&(console[_0x2e8cab(0xab)](_0x100f33['YNLiO']),await _0x100f33[_0x2e8cab(0xa5)](sendInstrumentationEvent,_0x1684c1,_0x100f33[_0x2e8cab(0xb1)],messageTypes['ERROR'],_0x100f33[_0x2e8cab(0x82)],null,_0x1684c1),process[_0x2e8cab(0xb6)](0x1)),console[_0x2e8cab(0xab)](_0x2e8cab(0x8f)+JSON[_0x2e8cab(0x7a)](_0x227c1c)),await _0x100f33[_0x2e8cab(0xa5)](sendInstrumentationEvent,_0x1684c1,_0x100f33[_0x2e8cab(0xb1)],messageTypes[_0x2e8cab(0x9e)],_0x100f33['mgQcA'],_0x227c1c,_0x1684c1),process['exit'](0x1);}catch(_0x36d738){console['error'](_0x2e8cab(0x74)+_0x36d738[_0x2e8cab(0x6e)]),await _0x100f33[_0x2e8cab(0xa5)](sendInstrumentationEvent,_0x1684c1,_0x100f33[_0x2e8cab(0xb1)],messageTypes[_0x2e8cab(0x9e)],_0x100f33[_0x2e8cab(0xa8)],_0x36d738,_0x1684c1),process[_0x2e8cab(0xb6)](0x1);}};function a15_0x5552(_0x5d9c01,_0x172cd9){const _0xe80fe4=a15_0xe80f();return a15_0x5552=function(_0x5552d6,_0x4614b2){_0x5552d6=_0x5552d6-0x6d;let _0x261b97=_0xe80fe4[_0x5552d6];return _0x261b97;},a15_0x5552(_0x5d9c01,_0x172cd9);}function a15_0xe80f(){const _0x10f512=['stringify','/packages/cli/get-grids','SYJsA','qdmXI','feetH','list-grids-called','grid','statusCode','TURcx','server-error','1373532ipMYBj','hcWMy','clusterName','readFileSync','queued','init-not-called','lmAkV','INFO','boolean','epilogue','grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','4534263PhFqgB','unauthorised','3916824HHhlQe','list','gYODv','desc','../../config/constants','3743455WpsMlA','\x0aFound\x20the\x20following\x20grids:\x0a','all-grids','table','16030xDlLQw','argv','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','ERROR','description','existsSync','LaFUQ','got','GET','bstackUsername','koBEi','10cRutqk','cluster-name','WyvqS','username','aqZtz','error','htOYx','yGuYv','options','QrMnT','push','XkwWW','JXQYH','running','714966ARTwod','eOHJL','exit','aSLxr','handler','../../utils/instrumentationUtils','387ydHDfr','forEach','1288kXFSNQ','grid-name','Browserstack','help','password','15508jwOunu','stack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','RXHjc','6IoteDg','log','gOGHO','Failed\x20to\x20list\x20resources!\x20Error:\x20','33BWhBDw','command','SYpLs','type','jGseJ'];a15_0xe80f=function(){return _0x10f512;};return a15_0xe80f();}
1
+ const a15_0x1ec292=a15_0x20aa;function a15_0x2e3d(){const _0x37901d=['ecQDZ','ekxGQ','KfEot','existsSync','BQWQn','grid-id','rcnBp','got','usage','name','uuid','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','cluster-name','push','password','help','grid','/packages/cli/get-all-grids','readFileSync','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','clusterName','fNunH','lJdJG','tWhtR','queued','4501KWziPj','XFHzs','type','/packages/cli/get-grids','93339AXdXFq','status','options','bstackAccesskey','11vgMNKR','BVIIW','Failed\x20to\x20list\x20resources!\x20Error:\x20','\x0aFound\x20the\x20following\x20grids:\x0a','list','6765100jJFjyE','wxsvI','1397705dSwofM','running','xXanq','list-grids-called','https://','unauthorised','stack','cIsIw','../../utils/instrumentationUtils','statusCode','init-not-called','log','RgLUo','parse','yFulm','TDzFG','all-grids','fIEyZ','488ZCaWFv','OpiqT','ulxvx','LZBzK','ERROR','2909535KbfTgy','tPOfq','exit','error','requestId','handler','Nkfby','413jbYyXW','1307761ARhXNX','73758XjmRwD','desc','wCaRz','12VqcswO','username','INFO','../../utils/utilityMethods','grids','GzFsA','bTHjQ','body','grid-name','boolean','Browserstack','104jDWXcv','GET','table','description','WCLVV','48QZvQXg','GshMT','epilogue'];a15_0x2e3d=function(){return _0x37901d;};return a15_0x2e3d();}(function(_0x269452,_0x26155e){const _0x5be53f=a15_0x20aa,_0x5425f2=_0x269452();while(!![]){try{const _0x1dbec8=parseInt(_0x5be53f(0x251))/0x1*(-parseInt(_0x5be53f(0x230))/0x2)+-parseInt(_0x5be53f(0x219))/0x3+-parseInt(_0x5be53f(0x225))/0x4*(-parseInt(_0x5be53f(0x202))/0x5)+-parseInt(_0x5be53f(0x222))/0x6*(parseInt(_0x5be53f(0x220))/0x7)+parseInt(_0x5be53f(0x214))/0x8*(parseInt(_0x5be53f(0x1f7))/0x9)+parseInt(_0x5be53f(0x200))/0xa*(parseInt(_0x5be53f(0x1fb))/0xb)+-parseInt(_0x5be53f(0x235))/0xc*(-parseInt(_0x5be53f(0x221))/0xd);if(_0x1dbec8===_0x26155e)break;else _0x5425f2['push'](_0x5425f2['shift']());}catch(_0x4aa5ba){_0x5425f2['push'](_0x5425f2['shift']());}}}(a15_0x2e3d,0x979a8));const fs=require('fs'),got=require(a15_0x1ec292(0x23f)),{table}=require(a15_0x1ec292(0x232)),{v4:uuidv4}=require(a15_0x1ec292(0x242)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x1ec292(0x228)),{sendInstrumentationEvent}=require(a15_0x1ec292(0x20a));function a15_0x20aa(_0x25348d,_0x2c0741){const _0x2e3d0f=a15_0x2e3d();return a15_0x20aa=function(_0x20aa14,_0xb74c67){_0x20aa14=_0x20aa14-0x1f4;let _0x10fd2c=_0x2e3d0f[_0x20aa14];return _0x10fd2c;},a15_0x20aa(_0x25348d,_0x2c0741);}exports['command']=a15_0x1ec292(0x229),exports[a15_0x1ec292(0x223)]=a15_0x1ec292(0x243),exports['builder']=function(_0x2aa3bc){const _0x18dc05=a15_0x1ec292,_0x31338d={};_0x31338d[_0x18dc05(0x1fc)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x31338d[_0x18dc05(0x239)]=_0x18dc05(0x22e),_0x31338d[_0x18dc05(0x23a)]='help';const _0x2fb188=_0x31338d,_0x4d779b={};_0x4d779b[_0x18dc05(0x233)]=_0x2fb188['BVIIW'],_0x4d779b[_0x18dc05(0x1f5)]=_0x2fb188[_0x18dc05(0x239)];const _0xba84af={};return _0xba84af[_0x18dc05(0x212)]=_0x4d779b,_0x2aa3bc[_0x18dc05(0x240)](HELP_HEADER_MESSAGE[_0x18dc05(0x1ff)][_0x18dc05(0x248)])[_0x18dc05(0x237)](HELP_FOOTER_MESSAGE)[_0x18dc05(0x1f9)](_0xba84af)[_0x18dc05(0x247)](_0x2fb188['KfEot'])['argv'];},exports[a15_0x1ec292(0x21e)]=async function(_0x432452){const _0x24bc4e=a15_0x1ec292,_0x41806d={'XFHzs':function(_0x43bb53){return _0x43bb53();},'Nkfby':function(_0x47347a){return _0x47347a();},'vuEpq':_0x24bc4e(0x24b),'fIEyZ':function(_0x133ea9,_0xbca028,_0x2050e1,_0x3894be,_0x603923,_0x51866a,_0x3450d0){return _0x133ea9(_0xbca028,_0x2050e1,_0x3894be,_0x603923,_0x51866a,_0x3450d0);},'wxsvI':_0x24bc4e(0x205),'ecQDZ':_0x24bc4e(0x20c),'RgLUo':function(_0x4f8eb9){return _0x4f8eb9();},'ulxvx':_0x24bc4e(0x231),'yFulm':function(_0x528712,_0x3a316e,_0x31b1b9){return _0x528712(_0x3a316e,_0x31b1b9);},'tWhtR':function(_0xd2a4c6,_0x2b1bbb,_0x25b7fc,_0x44b1e6,_0x36a8d7,_0x265011,_0x20f7df){return _0xd2a4c6(_0x2b1bbb,_0x25b7fc,_0x44b1e6,_0x36a8d7,_0x265011,_0x20f7df);},'GzFsA':function(_0x3dcf57,_0x1a9468){return _0x3dcf57!==_0x1a9468;},'zwfgj':function(_0x4c3291,_0x5d6dc5){return _0x4c3291!==_0x5d6dc5;},'BQWQn':function(_0x57bf69,_0x1e32ab){return _0x57bf69===_0x1e32ab;},'GshMT':_0x24bc4e(0x1fe),'wCaRz':_0x24bc4e(0x23d),'bTHjQ':_0x24bc4e(0x22d),'TDzFG':_0x24bc4e(0x1f8),'WCLVV':_0x24bc4e(0x203),'fNunH':'queued','OpiqT':_0x24bc4e(0x244),'tPOfq':function(_0x557cb0,_0x5ef564){return _0x557cb0(_0x5ef564);},'lJdJG':function(_0x5c5ec3,_0x1f332e){return _0x5c5ec3===_0x1f332e;},'LZBzK':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xXanq':_0x24bc4e(0x207),'dmJea':function(_0x164b81,_0x37b428,_0xac18e4,_0x55b355,_0x1770ff,_0x13318c,_0x401700){return _0x164b81(_0x37b428,_0xac18e4,_0x55b355,_0x1770ff,_0x13318c,_0x401700);},'rcnBp':'server-error','cIsIw':function(_0x4364ff,_0x333f1b,_0x51a18d,_0x50199d,_0x384ddc,_0x4069ad,_0x64531e){return _0x4364ff(_0x333f1b,_0x51a18d,_0x50199d,_0x384ddc,_0x4069ad,_0x64531e);},'lQBhZ':'unknown-error'};try{global_registry[_0x24bc4e(0x21d)]=_0x41806d[_0x24bc4e(0x1f4)](uuidv4);!fs[_0x24bc4e(0x23b)](_0x41806d[_0x24bc4e(0x21f)](getCredentialsPath))&&(console[_0x24bc4e(0x21c)](_0x41806d['vuEpq']),await _0x41806d[_0x24bc4e(0x213)](sendInstrumentationEvent,_0x432452,_0x41806d[_0x24bc4e(0x201)],messageTypes[_0x24bc4e(0x218)],_0x41806d[_0x24bc4e(0x238)],null,_0x432452),process[_0x24bc4e(0x21b)](0x1));const _0x35547b=JSON[_0x24bc4e(0x20f)](fs[_0x24bc4e(0x24a)](_0x41806d[_0x24bc4e(0x20e)](getCredentialsPath)));let _0xc78980=_0x24bc4e(0x206)+AG_API_URL+_0x24bc4e(0x1f6);_0x432452['allGrids']&&(_0xc78980=_0x24bc4e(0x206)+AG_API_URL+_0x24bc4e(0x249));const _0x42379a={'method':_0x41806d[_0x24bc4e(0x216)],'headers':_0x41806d['yFulm'](getAuthHeader,_0x35547b[_0x24bc4e(0x22f)][_0x24bc4e(0x226)],_0x35547b['Browserstack'][_0x24bc4e(0x246)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x35547b[_0x24bc4e(0x22f)][_0x24bc4e(0x226)],global_registry[_0x24bc4e(0x1fa)]=_0x35547b[_0x24bc4e(0x22f)][_0x24bc4e(0x246)],_0x41806d[_0x24bc4e(0x24f)](sendInstrumentationEvent,_0x432452,_0x41806d[_0x24bc4e(0x201)],messageTypes[_0x24bc4e(0x227)],null,null,_0x432452);const _0x24ec69=await _0x41806d[_0x24bc4e(0x210)](got,_0xc78980,_0x42379a);if(_0x41806d[_0x24bc4e(0x22a)](_0x24ec69,null)&&_0x41806d['zwfgj'](_0x24ec69,undefined)&&_0x41806d[_0x24bc4e(0x23c)](_0x24ec69[_0x24bc4e(0x20b)],0xc8)){const _0x5b4be7=JSON['parse'](_0x24ec69[_0x24bc4e(0x22c)]);console[_0x24bc4e(0x20d)](_0x41806d[_0x24bc4e(0x236)]);const _0x1fe30a=[];_0x1fe30a[_0x24bc4e(0x245)]([_0x41806d[_0x24bc4e(0x224)],_0x41806d[_0x24bc4e(0x22b)],_0x41806d[_0x24bc4e(0x211)],_0x41806d[_0x24bc4e(0x234)],_0x41806d[_0x24bc4e(0x24d)],_0x41806d[_0x24bc4e(0x215)]]),_0x5b4be7['forEach'](_0x384375=>{const _0x3c1a8c=_0x24bc4e;_0x1fe30a['push']([_0x384375['id'],_0x384375[_0x3c1a8c(0x241)],_0x384375[_0x3c1a8c(0x1f8)],_0x384375['running'],_0x384375[_0x3c1a8c(0x250)],_0x384375[_0x3c1a8c(0x24c)]]);}),console['log'](_0x41806d[_0x24bc4e(0x21a)](table,_0x1fe30a)),process['exit'](0x0);}_0x41806d[_0x24bc4e(0x24e)](_0x24ec69[_0x24bc4e(0x20b)],0x191)&&(console[_0x24bc4e(0x21c)](_0x41806d[_0x24bc4e(0x217)]),await _0x41806d[_0x24bc4e(0x213)](sendInstrumentationEvent,_0x432452,_0x41806d[_0x24bc4e(0x201)],messageTypes[_0x24bc4e(0x218)],_0x41806d[_0x24bc4e(0x204)],null,_0x432452),process[_0x24bc4e(0x21b)](0x1)),console[_0x24bc4e(0x21c)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x24ec69)),await _0x41806d['dmJea'](sendInstrumentationEvent,_0x432452,_0x41806d[_0x24bc4e(0x201)],messageTypes['ERROR'],_0x41806d[_0x24bc4e(0x23e)],_0x24ec69,_0x432452),process[_0x24bc4e(0x21b)](0x1);}catch(_0x3a2f18){console[_0x24bc4e(0x21c)](_0x24bc4e(0x1fd)+_0x3a2f18[_0x24bc4e(0x208)]),await _0x41806d[_0x24bc4e(0x209)](sendInstrumentationEvent,_0x432452,_0x41806d[_0x24bc4e(0x201)],messageTypes[_0x24bc4e(0x218)],_0x41806d['lQBhZ'],_0x3a2f18,_0x432452),process[_0x24bc4e(0x21b)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x231d79=a16_0x121a;function a16_0x121a(_0x274769,_0x46eba7){const _0x2b9d2d=a16_0x2b9d();return a16_0x121a=function(_0x121a97,_0x37c4c0){_0x121a97=_0x121a97-0x161;let _0x58c9e2=_0x2b9d2d[_0x121a97];return _0x58c9e2;},a16_0x121a(_0x274769,_0x46eba7);}(function(_0x5704be,_0x2526fe){const _0x343411=a16_0x121a,_0x44e812=_0x5704be();while(!![]){try{const _0x3a4636=parseInt(_0x343411(0x173))/0x1*(-parseInt(_0x343411(0x166))/0x2)+-parseInt(_0x343411(0x16e))/0x3*(parseInt(_0x343411(0x16f))/0x4)+-parseInt(_0x343411(0x16c))/0x5+parseInt(_0x343411(0x179))/0x6*(parseInt(_0x343411(0x171))/0x7)+parseInt(_0x343411(0x177))/0x8+parseInt(_0x343411(0x16d))/0x9*(parseInt(_0x343411(0x168))/0xa)+parseInt(_0x343411(0x175))/0xb;if(_0x3a4636===_0x2526fe)break;else _0x44e812['push'](_0x44e812['shift']());}catch(_0x1c69e2){_0x44e812['push'](_0x44e812['shift']());}}}(a16_0x2b9d,0x1e3e5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x231d79(0x17a));exports[a16_0x231d79(0x172)]=a16_0x231d79(0x169),exports[a16_0x231d79(0x161)]=a16_0x231d79(0x170),exports[a16_0x231d79(0x174)]=function(_0x38d418){const _0x19df1d=a16_0x231d79,_0x31b8de={};_0x31b8de[_0x19df1d(0x16a)]=_0x19df1d(0x165),_0x31b8de['yQADO']='help';const _0x560e54=_0x31b8de;return _0x38d418['usage'](HELP_HEADER_MESSAGE[_0x19df1d(0x178)])[_0x19df1d(0x167)](HELP_FOOTER_MESSAGE)[_0x19df1d(0x164)](_0x560e54[_0x19df1d(0x16a)])[_0x19df1d(0x162)]()[_0x19df1d(0x163)]()[_0x19df1d(0x16b)]()[_0x19df1d(0x176)](_0x560e54['yQADO']);},exports['handler']=function(_0x2647d5){};function a16_0x2b9d(){const _0xee6711=['precheck_commands','34414DPvvPm','epilogue','34990xpIehm','pre-check','INvDy','strict','848515aqiuTU','126Lwotih','270030XidTAA','4QNhBON','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','5425pqTXyl','command','9OYlXOU','builder','2610322OfotLr','help','1006720szMeMn','pre_check','978xjKtcn','../config/constants','desc','demandCommand','recommendCommands','commandDir'];a16_0x2b9d=function(){return _0xee6711;};return a16_0x2b9d();}
1
+ const a16_0x47b774=a16_0x5c29;(function(_0x10d62c,_0x34c5e0){const _0x39c116=a16_0x5c29,_0x44aaf3=_0x10d62c();while(!![]){try{const _0x10d647=-parseInt(_0x39c116(0x191))/0x1*(parseInt(_0x39c116(0x1a1))/0x2)+-parseInt(_0x39c116(0x1a6))/0x3+parseInt(_0x39c116(0x199))/0x4+parseInt(_0x39c116(0x19d))/0x5*(-parseInt(_0x39c116(0x1a7))/0x6)+parseInt(_0x39c116(0x1a5))/0x7*(-parseInt(_0x39c116(0x1a3))/0x8)+parseInt(_0x39c116(0x1a4))/0x9*(-parseInt(_0x39c116(0x18f))/0xa)+parseInt(_0x39c116(0x196))/0xb*(parseInt(_0x39c116(0x192))/0xc);if(_0x10d647===_0x34c5e0)break;else _0x44aaf3['push'](_0x44aaf3['shift']());}catch(_0x226bb3){_0x44aaf3['push'](_0x44aaf3['shift']());}}}(a16_0x5c0b,0xbab78));function a16_0x5c0b(){const _0x4712e3=['help','44JhaIqj','epilogue','sQlqD','1905008pjYIla','demandCommand','pre-check','desc','18710JmhjUE','usage','handler','precheck_commands','2BOjiXR','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','88384sUlnoJ','2817333mESOdm','413GsQdFH','1509780mFrxtt','270NQkoad','../config/constants','10XohQGA','strict','958309WbwcBh','8650104npBdYj','command','XOCli'];a16_0x5c0b=function(){return _0x4712e3;};return a16_0x5c0b();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x47b774(0x1a8));function a16_0x5c29(_0x4653f5,_0x4da8e2){const _0x5c0b75=a16_0x5c0b();return a16_0x5c29=function(_0x5c291d,_0x2cb767){_0x5c291d=_0x5c291d-0x18f;let _0x50f30e=_0x5c0b75[_0x5c291d];return _0x50f30e;},a16_0x5c29(_0x4653f5,_0x4da8e2);}exports[a16_0x47b774(0x193)]=a16_0x47b774(0x19b),exports[a16_0x47b774(0x19c)]=a16_0x47b774(0x1a2),exports['builder']=function(_0x29e18f){const _0x36a2d4=a16_0x47b774,_0x2c58e3={};_0x2c58e3[_0x36a2d4(0x194)]=_0x36a2d4(0x1a0),_0x2c58e3[_0x36a2d4(0x198)]=_0x36a2d4(0x195);const _0x524121=_0x2c58e3;return _0x29e18f[_0x36a2d4(0x19e)](HELP_HEADER_MESSAGE['pre_check'])[_0x36a2d4(0x197)](HELP_FOOTER_MESSAGE)['commandDir'](_0x524121[_0x36a2d4(0x194)])[_0x36a2d4(0x19a)]()['recommendCommands']()[_0x36a2d4(0x190)]()[_0x36a2d4(0x195)](_0x524121[_0x36a2d4(0x198)]);},exports[a16_0x47b774(0x19f)]=function(_0x4a1230){};
@@ -1 +1 @@
1
- const a17_0x63d676=a17_0x2442;function a17_0x7814(){const _0x3e0a6c=['info','nMnAD','98109RfaFOU','\x20\x20Stack:\x20','4fQPhgB','zJlfc','1400065mjhCif','TKuDY','desc',']\x20status\x20:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','yfdaO','aKcJU','NjVzf','../../utils/instrumentationUtils','password','ATLIC','builder','Setting\x20cloud\x20provider\x20as\x20','RkZKp','7190412BppktA','===\x20Precheck\x20Report\x20-\x20','NUuhh','bQEAK','dummy-grid','SZxuu','reconnecting-websocket','cloudProvider','YImKw','authHeader','Status:\x20','WCzek','pQApA','<PasswordPlaceholder>','getUTCMonth','../../cloudproviders/utils','zWeIy','RxBhC','`\x20,error\x20:\x20','Message:\x20','getUTCMinutes','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','LyOUC','replace','OXMzR','HjLmA','Cluster\x20`','parse','isClusterPresent','aItFS','pre-check-grid-called','ZYlvB','string','hACrN','code','stack','join','push','getUTCHours','forEach','JjQJk','../../utils/utilityMethods','debug','SKyqZ','INFO','otHPy','lxFOy','name','jUQlM','OVhFq','ewZBc','find','DFgJu','getUTCDate','stack\x20trace\x20','FIkcZ','XThAf','clusterName','TspNu','HyoQr','\x20===\x0a\x0a','GfyGt','KuWqJ','gznLZ','FaifI','header','log/report_','pre-check-failed','kWSpO','EbOTe','LOG','help','KcJtF','exit','rsXMh','error\x20stack\x20:\x20','username','\x20\x20Code:\x20','2|0|4|1|3','command','Grid\x20profile\x20fetched\x20for\x20pre-check','hBqYl','cluster-check-failed-','kReRj','ZDgYz','Missing\x20required\x20arguments:\x20','MpEAO','JrUSM','pfmMv','SSL\x20Configured','uYGwV','region','XonFA','NXYNh','KwEtI','toolInstalledResp','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','status','will\x20be\x20created','message','N/A','mflwO','toLowerCase','MNDmA','PilSJ','uhcLA','description','qkEvJ','unable\x20to\x20verify\x20if\x20cluster\x20`','https://','bstackAccesskey','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Failure','lCLfh','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','pre-check','1800344VzccDA','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','wrIeU','dGbpz','stringify','length','got','throwHttpErrors','WebSocket','GduHU','LwLtV','JeKhA','cloud-provider','utf-8','MYZBz','GDbKo','isTls1_2_SUPPORTED','oMwcm','data','type','fypdM','iCHka','sendEventToBackend','MQytt','\x20error\x20:\x20','ucIyj','zxpqY','lBWhl','/packages/cli/get-all-grid-profiles','Timrh','response','KkaVb','ERROR','12CGctSM','mPkUu','Failed\x20in\x20pre-check!\x20Error:\x20','delay','GcVLc','iNMUB','CLOUD_PROVIDER','qNhbI','Cluster\x20','grid','pre_check','clusterRegion','`\x20already\x20exists','\x20\x20Message:\x20','pre-check-grid-profile-empty','requestId','body','KaDHx','WXAWQ','split','awvJf','BSIpk','bQeAk','slYJj','bstackUsername','OkppT','PYTwt','NmAoe','YwjVC','Browserstack','ZIeSW','PCLsp','bJvXX','BGQcA','isCliToolInstalled','2550KyMsUy','../../config/logger','argv','`\x20is\x20present\x20in\x20region\x20`','QcNEF','readFileSync','error','dqsiY','options','epilogue','.\x20Please\x20provide\x20all\x20required\x20arguments.','WYIkV','HsndW','2372240xSbusG','IhWCA','kbYJg','BSnlq','nVrNJ','../../config/constants','ZGMGx','PrbRE','grid\x20profile\x20flow\x20','grid-profile','Tool\x20Installed','Cluster\x20details\x0a-----------------------\x0a','cluster-name','cIdDQ','CDGeQ','accessResp','tiObX','qCXYL','handler','JIJZd','lxsUQ','tvWGR','Success','408825eVzkkR','gridProfile','FJpPQ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','eAgPX','746916DjjBqy','getUTCFullYear','GET','wEIXN','method','IfaNw','wkMRe','ZANqb','Invalid\x20input.\x20grid\x20profiles:\x20','vdXNt','HbfJk','LNWsV','MGOhS','Ucwqo','SsLjq','FiCzq','Report\x20saved\x20in\x20','wBaIR'];a17_0x7814=function(){return _0x3e0a6c;};return a17_0x7814();}(function(_0x10a5ec,_0x45e58d){const _0x26690f=a17_0x2442,_0xf58764=_0x10a5ec();while(!![]){try{const _0x62fee1=parseInt(_0x26690f(0x16e))/0x1*(parseInt(_0x26690f(0x158))/0x2)+-parseInt(_0x26690f(0x153))/0x3+parseInt(_0x26690f(0x17e))/0x4+-parseInt(_0x26690f(0x170))/0x5+-parseInt(_0x26690f(0x213))/0x6*(-parseInt(_0x26690f(0x1f2))/0x7)+parseInt(_0x26690f(0x243))/0x8+-parseInt(_0x26690f(0x16c))/0x9*(parseInt(_0x26690f(0x236))/0xa);if(_0x62fee1===_0x45e58d)break;else _0xf58764['push'](_0xf58764['shift']());}catch(_0x3d8156){_0xf58764['push'](_0xf58764['shift']());}}}(a17_0x7814,0xdd442));const fs=require('fs'),ws=require('ws'),got=require(a17_0x63d676(0x1f8)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x63d676(0x184)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x63d676(0x1a7)),{logger}=require(a17_0x63d676(0x237)),{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_0x63d676(0x248)),{getCloudProviderObjectWithOutInit}=require(a17_0x63d676(0x18d)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x63d676(0x178));function a17_0x2442(_0x58121c,_0x5c7a0f){const _0x7814a1=a17_0x7814();return a17_0x2442=function(_0x2442ae,_0xa7739b){_0x2442ae=_0x2442ae-0x14b;let _0x1f71bd=_0x7814a1[_0x2442ae];return _0x1f71bd;},a17_0x2442(_0x58121c,_0x5c7a0f);}exports[a17_0x63d676(0x1cd)]=a17_0x63d676(0x21c),exports[a17_0x63d676(0x172)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x63d676(0x17b)]=function(_0x4bc34a){const _0x3661ed=a17_0x63d676,_0x670edf={};_0x670edf[_0x3661ed(0x206)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x670edf[_0x3661ed(0x1cf)]=_0x3661ed(0x19e),_0x670edf[_0x3661ed(0x20f)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x670edf[_0x3661ed(0x247)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x670edf['wEIXN']=_0x3661ed(0x174),_0x670edf[_0x3661ed(0x22e)]=_0x3661ed(0x1c5);const _0x3773d9=_0x670edf,_0x1b70f9={};_0x1b70f9[_0x3661ed(0x1e8)]=_0x3773d9[_0x3661ed(0x206)],_0x1b70f9[_0x3661ed(0x205)]=_0x3773d9[_0x3661ed(0x1cf)];const _0x2a13ae={};_0x2a13ae[_0x3661ed(0x1e8)]=_0x3773d9[_0x3661ed(0x20f)],_0x2a13ae['type']=_0x3773d9[_0x3661ed(0x1cf)];const _0x292ddf={};_0x292ddf['description']=_0x3773d9[_0x3661ed(0x247)],_0x292ddf['type']=_0x3773d9[_0x3661ed(0x1cf)];const _0x2e2635={};_0x2e2635[_0x3661ed(0x1e8)]=_0x3773d9[_0x3661ed(0x15b)],_0x2e2635[_0x3661ed(0x205)]=_0x3773d9[_0x3661ed(0x1cf)];const _0x108b8b={};return _0x108b8b[_0x3661ed(0x24f)]=_0x1b70f9,_0x108b8b[_0x3661ed(0x1fe)]=_0x2a13ae,_0x108b8b[_0x3661ed(0x1d9)]=_0x292ddf,_0x108b8b[_0x3661ed(0x24c)]=_0x2e2635,_0x4bc34a['usage'](HELP_HEADER_MESSAGE[_0x3661ed(0x21d)])[_0x3661ed(0x23f)](HELP_FOOTER_MESSAGE)[_0x3661ed(0x23e)](_0x108b8b)['help'](_0x3773d9[_0x3661ed(0x22e)])[_0x3661ed(0x238)];};async function inputValidation(_0xaf8159,_0x46b161){const _0x2a2624=a17_0x63d676,_0xa40300={'SKyqZ':function(_0x523f94,_0x5e5067){return _0x523f94+_0x5e5067;},'NjVzf':_0x2a2624(0x152),'lCLfh':_0x2a2624(0x1ee),'wkMRe':function(_0x2c623d,_0x479f38){return _0x2c623d||_0x479f38;},'PCLsp':'N/A','bQEAK':'Error\x20Details:\x0a','KcJtF':_0x2a2624(0x193),'iCHka':_0x2a2624(0x19e),'vufOR':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SsLjq':_0x2a2624(0x1f3),'JeKhA':_0x2a2624(0x174),'XonFA':_0x2a2624(0x1c5),'MGOhS':_0x2a2624(0x1fe),'TspNu':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Ppnof':'is\x20already\x20present','bJvXX':_0x2a2624(0x1e0),'ZGMGx':_0x2a2624(0x23c),'cIdDQ':_0x2a2624(0x1d9),'wrIeU':'cluster-name','RxBhC':function(_0x5330be,_0x1dc575){return _0x5330be!==_0x1dc575;},'NFCzB':_0x2a2624(0x1d5),'EbOTe':_0x2a2624(0x209),'zWeIy':function(_0xf23390,_0x5d4ead){return _0xf23390!==_0x5d4ead;},'ucIyj':_0x2a2624(0x180),'slYJj':_0x2a2624(0x1fc),'pfmMv':function(_0x2d0a03,_0x29df46){return _0x2d0a03===_0x29df46;},'gznLZ':_0x2a2624(0x14c),'DTJbk':_0x2a2624(0x203),'RkZKp':function(_0x45cf22,_0x56ca44){return _0x45cf22===_0x56ca44;},'eAgPX':_0x2a2624(0x227),'BSnlq':'tHFGj','LyOUC':function(_0x1ff0e7,_0x4accad){return _0x1ff0e7>_0x4accad;},'GDbKo':function(_0x3713bc,_0x294cee){return _0x3713bc===_0x294cee;},'PrbRE':_0x2a2624(0x23d),'rsXMh':_0x2a2624(0x1fb),'GcVLc':function(_0x2d69a3,_0x4dbefb,_0x585d69,_0x304da2,_0x41a847,_0x5635ec,_0x34603c,_0x266012){return _0x2d69a3(_0x4dbefb,_0x585d69,_0x304da2,_0x41a847,_0x5635ec,_0x34603c,_0x266012);},'qCXYL':_0x2a2624(0x19c),'yDCSN':'pre-check-cluster-args-not-passed','otMbS':function(_0x4dbe33,_0x54b85e){return _0x4dbe33===_0x54b85e;},'TKuDY':'PgCDI','JIJZd':_0x2a2624(0x1d4),'HsndW':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ZIeSW':'cloud-provider-not-supported','azAPy':_0x2a2624(0x1e3),'pVQUY':_0x2a2624(0x22f),'qNhbI':'IYgtP','WCzek':_0x2a2624(0x20c),'zJlfc':_0x2a2624(0x15a),'otHPy':function(_0x3fb86e,_0x27e751,_0x59cdd5){return _0x3fb86e(_0x27e751,_0x59cdd5);},'qYJiG':function(_0x58c5da,_0x13d21f,_0x24e863,_0x202690,_0x1d78f3,_0x4132aa){return _0x58c5da(_0x13d21f,_0x24e863,_0x202690,_0x1d78f3,_0x4132aa);},'ZDgYz':_0x2a2624(0x1f1),'ZANqb':'grid-profile','ATLIC':'UKlbo','uDhcX':_0x2a2624(0x20d),'MYZBz':function(_0x48d193,_0xd5a1b){return _0x48d193(_0xd5a1b);},'HyoQr':function(_0x3e1bdc,_0x5cfbdb){return _0x3e1bdc===_0x5cfbdb;},'BSIpk':'NXbpJ','aKcJU':'haVsH','qkEvJ':function(_0x4f5c27,_0x73b16c,_0x3f8f85,_0x46afb9,_0x4e4b96,_0x4fae36,_0x53cbfc,_0x176f4a){return _0x4f5c27(_0x73b16c,_0x3f8f85,_0x46afb9,_0x4e4b96,_0x4fae36,_0x53cbfc,_0x176f4a);},'MPLxG':_0x2a2624(0x221),'pQApA':function(_0x1f5b0e,_0x4c4991){return _0x1f5b0e===_0x4c4991;},'KuWqJ':_0x2a2624(0x1b0),'HZNCW':_0x2a2624(0x1ae),'PVCBx':_0x2a2624(0x234),'kbYJg':_0x2a2624(0x16b),'OXMzR':_0x2a2624(0x1ce),'FKOyb':function(_0x243259,_0x2384af){return _0x243259!==_0x2384af;},'KwEtI':_0x2a2624(0x23a),'GfyGt':function(_0x5bcb6a,_0x5c616f){return _0x5bcb6a!==_0x5c616f;},'OkppT':'GisjH','bQeAk':'IbWjd'};let _0x49d412;try{if(_0xa40300['RxBhC'](_0xa40300['NFCzB'],_0xa40300[_0x2a2624(0x1c3)])){if(_0xaf8159[_0x2a2624(0x1b7)]||_0xaf8159['cloudProvider']||_0xaf8159[_0x2a2624(0x1d9)]){if(_0xa40300[_0x2a2624(0x18e)](_0xa40300[_0x2a2624(0x20b)],_0xa40300[_0x2a2624(0x22a)])){const _0x3861ca=[];!_0xaf8159[_0x2a2624(0x1b7)]&&(_0xa40300[_0x2a2624(0x1d6)](_0xa40300[_0x2a2624(0x1bd)],_0xa40300['DTJbk'])?_0x40f59a=_0x3c8ca6:_0x3861ca[_0x2a2624(0x1a3)](_0xa40300[_0x2a2624(0x1f4)]));;!_0xaf8159[_0x2a2624(0x185)]&&(_0xa40300['RkZKp'](_0xa40300[_0x2a2624(0x157)],_0xa40300[_0x2a2624(0x157)])?_0x3861ca[_0x2a2624(0x1a3)](_0xa40300[_0x2a2624(0x164)]):_0x15ef60+=_0x2a2624(0x21b)+_0x561bc2['clusterName']+_0x2a2624(0x1f0));;if(!_0xaf8159[_0x2a2624(0x1d9)]){if(_0xa40300['zWeIy'](_0xa40300['BSnlq'],_0xa40300[_0x2a2624(0x246)])){const {header:_0x11d28a,response:_0x442163}=_0x3eb478,{status:_0x16ecd8,data:_0xae51d1,error:_0x1fb75c}=_0x442163;_0x225d3e+=_0x11d28a+'\x20#'+_0xa40300[_0x2a2624(0x1a9)](_0x5b924c,0x1)+'\x0a',_0x5d6c76+=_0x2a2624(0x188)+(_0x16ecd8?_0xa40300[_0x2a2624(0x177)]:_0xa40300[_0x2a2624(0x1ef)])+'\x0a',_0x4c2d74+=_0x2a2624(0x191)+_0xa40300[_0x2a2624(0x15e)](_0xae51d1,_0xa40300[_0x2a2624(0x232)])+'\x0a',_0x1fb75c&&(_0x33d720+=_0xa40300[_0x2a2624(0x181)],_0x59e6e8+='\x20\x20Message:\x20'+(_0x1fb75c[_0x2a2624(0x1e1)]||_0xa40300[_0x2a2624(0x232)])+'\x0a',_0x1d5734+=_0x2a2624(0x1cb)+(_0x1fb75c[_0x2a2624(0x1a0)]||_0xa40300[_0x2a2624(0x232)])+'\x0a',_0xdc72b9+=_0x2a2624(0x16d)+(_0x1fb75c[_0x2a2624(0x1a1)]||_0xa40300[_0x2a2624(0x232)])+'\x0a'),_0x380b4f+='\x0a\x0a';}else _0x3861ca[_0x2a2624(0x1a3)](_0xa40300['cIdDQ']);};if(_0xa40300[_0x2a2624(0x194)](_0x3861ca[_0x2a2624(0x1f7)],0x0)){if(_0xa40300[_0x2a2624(0x201)](_0xa40300[_0x2a2624(0x24a)],_0xa40300[_0x2a2624(0x1c8)])){const _0x56f22e={};_0x56f22e[_0x2a2624(0x1e8)]=_0xa40300[_0x2a2624(0x1c6)],_0x56f22e[_0x2a2624(0x205)]=_0xa40300['iCHka'];const _0x33d25a={};_0x33d25a[_0x2a2624(0x1e8)]=_0xa40300['vufOR'],_0x33d25a['type']=_0xa40300['iCHka'];const _0x1b4cdf={};_0x1b4cdf[_0x2a2624(0x1e8)]=_0xa40300[_0x2a2624(0x166)],_0x1b4cdf['type']=_0xa40300[_0x2a2624(0x207)];const _0x2ecf8e={};_0x2ecf8e['description']=_0xa40300[_0x2a2624(0x1fd)],_0x2ecf8e[_0x2a2624(0x205)]=_0xa40300[_0x2a2624(0x207)];const _0x475ba8={};return _0x475ba8[_0x2a2624(0x24f)]=_0x56f22e,_0x475ba8[_0x2a2624(0x1fe)]=_0x33d25a,_0x475ba8['region']=_0x1b4cdf,_0x475ba8[_0x2a2624(0x24c)]=_0x2ecf8e,_0x191ced['usage'](_0xc84230['pre_check'])['epilogue'](_0xd6bf81)[_0x2a2624(0x23e)](_0x475ba8)[_0x2a2624(0x1c5)](_0xa40300[_0x2a2624(0x1da)])['argv'];}else _0x49d412=_0x2a2624(0x1d3)+_0x3861ca[_0x2a2624(0x1a2)](',\x20')+_0x2a2624(0x240),await _0xa40300[_0x2a2624(0x217)](reportToGalactusAndSendToEDS,_0xaf8159,_0x46b161,_0x49d412,messageTypes[_0x2a2624(0x212)],_0xa40300[_0x2a2624(0x14d)],_0xa40300['yDCSN'],_0xa40300[_0x2a2624(0x249)]),logger['error'](_0x49d412),process[_0x2a2624(0x1c7)](0x1);}!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0xaf8159[_0x2a2624(0x185)][_0x2a2624(0x1e4)]())&&(_0xa40300['otMbS'](_0xa40300[_0x2a2624(0x171)],_0xa40300[_0x2a2624(0x14f)])?_0x5bcbef['exit'](0x1):(_0x49d412=_0xa40300[_0x2a2624(0x242)],await _0xa40300[_0x2a2624(0x217)](reportToGalactusAndSendToEDS,_0xaf8159,_0x46b161,_0x49d412,messageTypes[_0x2a2624(0x212)],_0xa40300['qCXYL'],_0xa40300[_0x2a2624(0x231)],_0xa40300[_0x2a2624(0x249)]),logger[_0x2a2624(0x23c)](_0x49d412),!_0xaf8159[_0x2a2624(0x185)]&&(_0xa40300[_0x2a2624(0x17d)](_0xa40300['azAPy'],_0xa40300['pVQUY'])?_0x168827[_0x2a2624(0x1a3)](_0xa40300[_0x2a2624(0x164)]):(logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0xaf8159[_0x2a2624(0x185)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x2a2624(0x1b7)]=_0xaf8159['clusterName'],global_registry['cloudProvider']=_0xaf8159['cloudProvider'],global_registry['clusterRegion']=_0xaf8159[_0x2a2624(0x1d9)];}else _0x5649c9['error'](_0xa40300[_0x2a2624(0x1b8)]),_0x3d5ae6[_0x2a2624(0x1c7)](0x1);}else{if(_0xaf8159[_0x2a2624(0x154)]){if(_0xa40300[_0x2a2624(0x18f)](_0xa40300[_0x2a2624(0x21a)],_0xa40300[_0x2a2624(0x189)])){global_registry[_0x2a2624(0x154)]=_0xaf8159[_0x2a2624(0x154)],logger[_0x2a2624(0x1a8)](_0x2a2624(0x24b)+_0xaf8159[_0x2a2624(0x154)]);const _0x42fb93=_0x2a2624(0x1eb)+AG_API_URL+_0x2a2624(0x20e),_0x1798d7={};_0x1798d7[_0x2a2624(0x15c)]=_0xa40300[_0x2a2624(0x16f)],_0x1798d7['headers']=global_registry['authHeader'],_0x1798d7[_0x2a2624(0x1f9)]=![];const _0x4416ae=_0x1798d7,_0x482c56=await _0xa40300[_0x2a2624(0x1ab)](got,_0x42fb93,_0x4416ae),_0x1350ac=await _0xa40300['qYJiG'](responseValidation,_0x482c56,_0xa40300[_0x2a2624(0x1d2)],_0xa40300[_0x2a2624(0x15f)],_0xaf8159,_0x46b161);let _0x50f26a={};if(_0xa40300['RkZKp'](_0x1350ac,0xc8)){if(_0xa40300[_0x2a2624(0x18e)](_0xa40300[_0x2a2624(0x17a)],_0xa40300['uDhcX'])){const _0x337623=JSON[_0x2a2624(0x199)](_0x482c56[_0x2a2624(0x223)]),_0x27fa36=_0x337623[_0x2a2624(0x1b1)](_0x6a6e12=>_0x6a6e12[_0x2a2624(0x1ad)]===_0xaf8159['gridProfile'])||null;_0xa40300[_0x2a2624(0x200)](isUndefined,_0x27fa36)?_0xa40300[_0x2a2624(0x1b9)](_0xa40300[_0x2a2624(0x228)],_0xa40300[_0x2a2624(0x176)])?_0x4df951[_0x2a2624(0x16a)](_0x2a2624(0x198)+_0x242ecf[_0x2a2624(0x1b7)]+'`\x20already\x20exists'):(_0x49d412=_0x2a2624(0x160)+_0xaf8159[_0x2a2624(0x154)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0xa40300[_0x2a2624(0x1e9)](reportToGalactusAndSendToEDS,_0xaf8159,_0x46b161,_0x49d412,messageTypes['ERROR'],_0xa40300[_0x2a2624(0x14d)],_0xa40300['MPLxG'],_0xa40300[_0x2a2624(0x249)]),logger[_0x2a2624(0x23c)](_0x49d412),process['exit'](0x1)):_0xa40300[_0x2a2624(0x18a)](_0xa40300[_0x2a2624(0x1bc)],_0xa40300['HZNCW'])?(_0x374f38+=_0xa40300['bQEAK'],_0x577f4c+=_0x2a2624(0x220)+(_0x221358['message']||_0xa40300[_0x2a2624(0x232)])+'\x0a',_0x46974b+='\x20\x20Code:\x20'+(_0x5403d9[_0x2a2624(0x1a0)]||_0xa40300[_0x2a2624(0x232)])+'\x0a',_0x26de27+=_0x2a2624(0x16d)+(_0x54c44e[_0x2a2624(0x1a1)]||_0xa40300[_0x2a2624(0x232)])+'\x0a'):_0x50f26a=_0x27fa36;}else _0x1f909f[_0x2a2624(0x16a)]('['+_0x29c101+_0x2a2624(0x173)+_0x56f051[_0x2a2624(0x1df)]+'\x20data\x20:\x20'+_0x432444['data']+_0x2a2624(0x20a)+_0x42d014[_0x2a2624(0x23c)]),_0x416c12[_0x2a2624(0x23c)]&&_0x311492['error'](_0x2a2624(0x1c9)+_0x19bc7e[_0x2a2624(0x23c)][_0x2a2624(0x1a1)]);}else _0xa40300[_0x2a2624(0x18e)](_0xa40300['PVCBx'],_0xa40300[_0x2a2624(0x245)])?process[_0x2a2624(0x1c7)](0x1):_0x5d4c3a[_0x2a2624(0x23c)](_0x2a2624(0x1c9)+_0x150c83[_0x2a2624(0x23c)][_0x2a2624(0x1a1)]);const _0x51c5ad={};_0x51c5ad[_0x2a2624(0x205)]=WS_EVENTS[_0x2a2624(0x1c4)],_0x51c5ad[_0x2a2624(0x1e1)]=_0xa40300[_0x2a2624(0x196)],webSocketUtils[_0x2a2624(0x208)](_0x46b161,_0x51c5ad),global_registry[_0x2a2624(0x185)]=_0x50f26a[_0x2a2624(0x185)],global_registry[_0x2a2624(0x21e)]=_0x50f26a[_0x2a2624(0x1d9)],global_registry[_0x2a2624(0x1b7)]=_0x50f26a[_0x2a2624(0x1b7)];}else _0x3153cc+='Cluster\x20'+_0x5460e2[_0x2a2624(0x1b7)]+'\x20'+(_0x366143?_0xa40300['Ppnof']:_0xa40300[_0x2a2624(0x233)])+'\x0a\x0a';}else{if(_0xa40300['FKOyb'](_0xa40300[_0x2a2624(0x1dc)],_0xa40300[_0x2a2624(0x1dc)])){const _0x2ea2cb={};_0x2ea2cb[_0x2a2624(0x205)]=_0x12016d[_0x2a2624(0x1c4)],_0x2ea2cb['message']=_0x32f8d0,_0x1c277a[_0x2a2624(0x208)](_0x3dc051,_0x2ea2cb,_0xa40300[_0x2a2624(0x249)],!![]);}else logger[_0x2a2624(0x23c)](_0xa40300['TspNu']),process[_0x2a2624(0x1c7)](0x1);}}}else _0x11fa3d[_0x2a2624(0x1a3)](_0xa40300[_0x2a2624(0x250)]);}catch(_0x308cbf){_0xa40300[_0x2a2624(0x1bb)](_0xa40300[_0x2a2624(0x22c)],_0xa40300[_0x2a2624(0x229)])?(_0x49d412=_0x2a2624(0x1ed)+_0x308cbf+':\x20'+_0x308cbf[_0x2a2624(0x1a1)],logger[_0x2a2624(0x23c)](_0x49d412),await _0xa40300[_0x2a2624(0x1e9)](reportToGalactusAndSendToEDS,_0xaf8159,_0x46b161,_0x49d412,messageTypes[_0x2a2624(0x212)],_0xa40300['qCXYL'],_0xa40300[_0x2a2624(0x231)],_0xa40300['ZGMGx']),process[_0x2a2624(0x1c7)](0x1)):_0x5bcd21['push'](_0xa40300[_0x2a2624(0x1f4)]);}}function printResponse(_0x3d0d89,_0x2722c5){const _0x1a9ca2=a17_0x63d676,_0x1301dc={};_0x1301dc[_0x1a9ca2(0x218)]=function(_0x35e336,_0x51bb9d){return _0x35e336!==_0x51bb9d;},_0x1301dc[_0x1a9ca2(0x175)]='cCkTz',_0x1301dc[_0x1a9ca2(0x1f5)]='BSzXD';const _0x447d77=_0x1301dc;logger[_0x1a9ca2(0x16a)]('['+_0x3d0d89+_0x1a9ca2(0x173)+_0x2722c5[_0x1a9ca2(0x1df)]+'\x20data\x20:\x20'+_0x2722c5[_0x1a9ca2(0x204)]+_0x1a9ca2(0x20a)+_0x2722c5[_0x1a9ca2(0x23c)]),_0x2722c5[_0x1a9ca2(0x23c)]&&(_0x447d77[_0x1a9ca2(0x218)](_0x447d77[_0x1a9ca2(0x175)],_0x447d77[_0x1a9ca2(0x1f5)])?logger[_0x1a9ca2(0x23c)]('error\x20stack\x20:\x20'+_0x2722c5[_0x1a9ca2(0x23c)]['stack']):(_0x4f1972[_0x1a9ca2(0x16a)](_0x1a9ca2(0x17c)+_0x57cc1f[_0x1a9ca2(0x219)]+'\x20'),_0x1327a9[_0x1a9ca2(0x185)]=_0x5b23c6[_0x1a9ca2(0x219)]));}async function generateReport(_0x1b7fd8,_0x4284b8){const _0x54cc0f=a17_0x63d676,_0x1936f0={'qflTq':function(_0x129c42,_0x5a27b4){return _0x129c42+_0x5a27b4;},'NXYNh':_0x54cc0f(0x152),'hACrN':_0x54cc0f(0x1ee),'YImKw':function(_0x30776e,_0x439222){return _0x30776e||_0x439222;},'MNDmA':_0x54cc0f(0x1e2),'FaifI':'Error\x20Details:\x0a','SZxuu':_0x54cc0f(0x24e),'aItFS':function(_0x820064,_0x341fe0){return _0x820064!=_0x341fe0;},'ZYlvB':'is\x20already\x20present','uYGwV':_0x54cc0f(0x1e0),'LNWsV':function(_0x5749bf){return _0x5749bf();}};let _0xb053c0=_0x54cc0f(0x17f)+global_registry['cloudProvider']+_0x54cc0f(0x1ba);return _0x1b7fd8[_0x54cc0f(0x1a5)]((_0x26a3d2,_0x10e70d)=>{const _0x2919dc=_0x54cc0f,{header:_0x595c6e,response:_0x118c9e}=_0x26a3d2,{status:_0x3b7ee1,data:_0x353203,error:_0x3b7bcf}=_0x118c9e;_0xb053c0+=_0x595c6e+'\x20#'+_0x1936f0['qflTq'](_0x10e70d,0x1)+'\x0a',_0xb053c0+='Status:\x20'+(_0x3b7ee1?_0x1936f0[_0x2919dc(0x1db)]:_0x1936f0[_0x2919dc(0x19f)])+'\x0a',_0xb053c0+=_0x2919dc(0x191)+_0x1936f0[_0x2919dc(0x186)](_0x353203,_0x1936f0['MNDmA'])+'\x0a',_0x3b7bcf&&(_0xb053c0+=_0x1936f0[_0x2919dc(0x1be)],_0xb053c0+=_0x2919dc(0x220)+(_0x3b7bcf[_0x2919dc(0x1e1)]||_0x1936f0[_0x2919dc(0x1e5)])+'\x0a',_0xb053c0+='\x20\x20Code:\x20'+(_0x3b7bcf[_0x2919dc(0x1a0)]||_0x1936f0[_0x2919dc(0x1e5)])+'\x0a',_0xb053c0+=_0x2919dc(0x16d)+(_0x3b7bcf['stack']||_0x1936f0[_0x2919dc(0x1e5)])+'\x0a'),_0xb053c0+='\x0a\x0a';}),_0xb053c0+=_0x1936f0[_0x54cc0f(0x183)],_0x1936f0[_0x54cc0f(0x19b)](_0x4284b8,null)?_0xb053c0+=_0x54cc0f(0x21b)+global_registry[_0x54cc0f(0x1b7)]+'\x20'+(_0x4284b8?_0x1936f0[_0x54cc0f(0x19d)]:_0x1936f0[_0x54cc0f(0x1d8)])+'\x0a\x0a':_0xb053c0+=_0x54cc0f(0x21b)+global_registry[_0x54cc0f(0x1b7)]+_0x54cc0f(0x1f0),_0xb053c0+=_0x1936f0[_0x54cc0f(0x163)](getSystemMetaData),_0xb053c0;};exports[a17_0x63d676(0x14e)]=async function(_0xc05efd){const _0xf1a5b7=a17_0x63d676,_0x5ca4ac={'Ucwqo':function(_0x468ca5){return _0x468ca5();},'HjLmA':_0xf1a5b7(0x1de),'JjQJk':function(_0x209ca1,_0x2fb2cd,_0x33c436,_0x50d094,_0x55c3b2,_0x4aef32,_0x264530,_0x37a767){return _0x209ca1(_0x2fb2cd,_0x33c436,_0x50d094,_0x55c3b2,_0x4aef32,_0x264530,_0x37a767);},'HbfJk':_0xf1a5b7(0x19c),'CFagC':'credential-not-found','KkaVb':'error','mEoYn':function(_0x5a094a,_0x413eba,_0x3dfdbe,_0x120bdf,_0x4a246d,_0x45341b,_0x52fd38){return _0x5a094a(_0x413eba,_0x3dfdbe,_0x120bdf,_0x4a246d,_0x45341b,_0x52fd38);},'PYTwt':function(_0x3b93da){return _0x3b93da();},'IhWCA':'<UsernamePlaceholder>','SXiCG':_0xf1a5b7(0x18b),'FiCzq':function(_0x2d8c86,_0x321888,_0x4f0b4c){return _0x2d8c86(_0x321888,_0x4f0b4c);},'lxsUQ':function(_0x9ceaea,_0x4d3a13,_0xaa9db1){return _0x9ceaea(_0x4d3a13,_0xaa9db1);},'OVhFq':function(_0x51bd8b,_0x1e79d8,_0x48e894,_0x453d34,_0x32fc95,_0xd626a3,_0x4c128b){return _0x51bd8b(_0x1e79d8,_0x48e894,_0x453d34,_0x32fc95,_0xd626a3,_0x4c128b);},'FJpPQ':_0xf1a5b7(0x182),'WYIkV':_0xf1a5b7(0x1dd),'DFgJu':_0xf1a5b7(0x1cc),'DPlqv':function(_0x14a7ac,_0x420602,_0x3c7523,_0x26ce96,_0x582792,_0x2c4a73,_0x1079a7,_0x498d7a){return _0x14a7ac(_0x420602,_0x3c7523,_0x26ce96,_0x582792,_0x2c4a73,_0x1079a7,_0x498d7a);},'wBaIR':function(_0x84aac6,_0x326056,_0x19ac97){return _0x84aac6(_0x326056,_0x19ac97);},'uhcLA':_0xf1a5b7(0x14b),'vdXNt':function(_0x4b58d6){return _0x4b58d6();},'kReRj':'isTrialGridAccessible','KaDHx':function(_0x53de54,_0x2685ec){return _0x53de54(_0x2685ec);},'mPkUu':'TLSv1_2_client_method','PilSJ':function(_0x4ed61f,_0x4b0574,_0x3ca116){return _0x4ed61f(_0x4b0574,_0x3ca116);},'IfaNw':_0xf1a5b7(0x202),'XThAf':_0xf1a5b7(0x24d),'lxFOy':'User\x20Access','WXAWQ':'Whitelisted\x20browserstack','FIkcZ':_0xf1a5b7(0x1d7),'hjLPO':function(_0x7ef79e,_0x4f6473,_0xce2e1c){return _0x7ef79e(_0x4f6473,_0xce2e1c);},'CDGeQ':function(_0xaba3d4,_0x305d75){return _0xaba3d4+_0x305d75;},'OWkqh':_0xf1a5b7(0x1ff),'kWSpO':function(_0x89c1c4,_0xd7972a,_0x3298ca,_0x455bb4,_0x155f3f,_0x5f5ace,_0x14e2f0){return _0x89c1c4(_0xd7972a,_0x3298ca,_0x455bb4,_0x155f3f,_0x5f5ace,_0x14e2f0);},'tvWGR':_0xf1a5b7(0x1c1)};let _0x38f1bb,_0x18f312;try{global_registry[_0xf1a5b7(0x222)]=_0x5ca4ac[_0xf1a5b7(0x165)](uuidv4);!fs['existsSync'](_0x5ca4ac[_0xf1a5b7(0x165)](getCredentialsPath))&&(_0x18f312=_0x5ca4ac[_0xf1a5b7(0x197)],logger[_0xf1a5b7(0x23c)](_0x18f312),await _0x5ca4ac[_0xf1a5b7(0x1a6)](reportToGalactusAndSendToEDS,_0xc05efd,_0x38f1bb,_0x18f312,messageTypes[_0xf1a5b7(0x212)],_0x5ca4ac[_0xf1a5b7(0x162)],_0x5ca4ac['CFagC'],_0x5ca4ac['KkaVb']),process[_0xf1a5b7(0x1c7)](0x1));_0x5ca4ac['mEoYn'](sendInstrumentationEvent,_0xc05efd,_0x5ca4ac[_0xf1a5b7(0x162)],messageTypes[_0xf1a5b7(0x1aa)],null,null,_0xc05efd);const _0x1cd39f=JSON[_0xf1a5b7(0x199)](fs[_0xf1a5b7(0x23b)](_0x5ca4ac[_0xf1a5b7(0x22d)](getCredentialsPath)));global_registry[_0xf1a5b7(0x22b)]=_0x1cd39f[_0xf1a5b7(0x230)][_0xf1a5b7(0x1ca)],global_registry[_0xf1a5b7(0x1ec)]=_0x1cd39f['Browserstack'][_0xf1a5b7(0x179)];const _0x2992cd=WS_ENDPOINT['replace'](_0x5ca4ac[_0xf1a5b7(0x244)],_0x1cd39f['Browserstack']['username'])[_0xf1a5b7(0x195)](_0x5ca4ac['SXiCG'],_0x1cd39f['Browserstack']['password']),_0x2f402d={};_0x2f402d[_0xf1a5b7(0x1fa)]=ws,_0x2f402d['connectionTimeout']=0x36ee80,_0x38f1bb=new ReconnectingWebSocket(_0x2992cd,[],_0x2f402d),global_registry[_0xf1a5b7(0x187)]=_0x5ca4ac[_0xf1a5b7(0x167)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x5ca4ac['lxsUQ'](inputValidation,_0xc05efd,_0x38f1bb),logger[_0xf1a5b7(0x16a)](_0xf1a5b7(0x156)+global_registry[_0xf1a5b7(0x185)]+'\x20region\x20-\x20'+global_registry[_0xf1a5b7(0x21e)]);let _0x20a732=await _0x5ca4ac[_0xf1a5b7(0x1af)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0xf1a5b7(0x1b7)],_0x5ca4ac[_0xf1a5b7(0x155)],_0x38f1bb,webSocketUtils,_0xc05efd);const _0x242f51=await _0x20a732[_0xf1a5b7(0x235)]();_0x5ca4ac[_0xf1a5b7(0x150)](printResponse,_0x5ca4ac[_0xf1a5b7(0x241)],_0x242f51),_0x20a732=await _0x20a732['init']();let _0x15e615=![];try{_0x15e615=await _0x20a732[_0xf1a5b7(0x19a)]();}catch(_0x36c7ed){const _0xfb4b6e=_0x5ca4ac[_0xf1a5b7(0x1b2)][_0xf1a5b7(0x226)]('|');let _0x43117d=0x0;while(!![]){switch(_0xfb4b6e[_0x43117d++]){case'0':_0x15e615=null;continue;case'1':_0x18f312+='\x0a'+JSON['stringify'](_0x36c7ed[_0xf1a5b7(0x1a1)]);continue;case'2':_0x18f312=_0xf1a5b7(0x1ea)+global_registry['clusterName']+_0xf1a5b7(0x239)+global_registry[_0xf1a5b7(0x21e)]+_0xf1a5b7(0x190)+_0x36c7ed;continue;case'3':await _0x5ca4ac['DPlqv'](reportToGalactusAndSendToEDS,_0xc05efd,_0x38f1bb,_0x18f312,messageTypes[_0xf1a5b7(0x212)],_0x5ca4ac[_0xf1a5b7(0x162)],_0xf1a5b7(0x1d0)+global_registry[_0xf1a5b7(0x185)],_0x5ca4ac[_0xf1a5b7(0x211)]);continue;case'4':logger['error'](_0x18f312);continue;}break;}}_0x15e615&&logger['info'](_0xf1a5b7(0x198)+global_registry[_0xf1a5b7(0x1b7)]+_0xf1a5b7(0x21f));const _0x177877=await _0x20a732['checkAccess']();_0x5ca4ac[_0xf1a5b7(0x169)](printResponse,_0x5ca4ac[_0xf1a5b7(0x1e7)],_0x177877);const _0x75b02=await _0x5ca4ac[_0xf1a5b7(0x161)](curlRequest);_0x5ca4ac['wBaIR'](printResponse,_0x5ca4ac[_0xf1a5b7(0x1d1)],_0x75b02);const _0x3407c4=await _0x5ca4ac[_0xf1a5b7(0x224)](isTlsSupported,_0x5ca4ac[_0xf1a5b7(0x214)]);_0x5ca4ac[_0xf1a5b7(0x1e6)](printResponse,_0x5ca4ac[_0xf1a5b7(0x15d)],_0x3407c4);const _0x2f0d54={};_0x2f0d54[_0xf1a5b7(0x1bf)]=_0x5ca4ac[_0xf1a5b7(0x1b6)],_0x2f0d54[_0xf1a5b7(0x210)]=_0x242f51;const _0x43d679={};_0x43d679[_0xf1a5b7(0x1bf)]=_0x5ca4ac[_0xf1a5b7(0x1ac)],_0x43d679['response']=_0x177877;const _0x82e8ff={};_0x82e8ff[_0xf1a5b7(0x1bf)]=_0x5ca4ac[_0xf1a5b7(0x225)],_0x82e8ff[_0xf1a5b7(0x210)]=_0x75b02;const _0x509ca9={};_0x509ca9[_0xf1a5b7(0x1bf)]=_0x5ca4ac[_0xf1a5b7(0x1b5)],_0x509ca9[_0xf1a5b7(0x210)]=_0x3407c4;const _0xe622fd=[_0x2f0d54,_0x43d679,_0x82e8ff,_0x509ca9],_0x4d02d4=await _0x5ca4ac['hjLPO'](generateReport,_0xe622fd,_0x15e615),_0x587c93=new Date(),_0x10e3a6=_0x587c93[_0xf1a5b7(0x159)]()+'_'+_0x5ca4ac[_0xf1a5b7(0x251)](_0x587c93[_0xf1a5b7(0x18c)](),0x1)+'_'+_0x587c93[_0xf1a5b7(0x1b3)]()+'_'+_0x587c93[_0xf1a5b7(0x1a4)]()+'_'+_0x587c93[_0xf1a5b7(0x192)](),_0x127b67=_0xf1a5b7(0x1c0)+_0x10e3a6+'.txt';fs['writeFileSync'](_0x127b67,_0x4d02d4,_0x5ca4ac['OWkqh']),logger[_0xf1a5b7(0x16a)](_0xf1a5b7(0x168)+_0x127b67),process['exit'](0x0);}catch(_0xcf0361){let _0x3ff0b7=_0xf1a5b7(0x215)+_0xcf0361+'\x20';logger['error'](_0x3ff0b7),_0x3ff0b7+='\x0a'+JSON[_0xf1a5b7(0x1f6)](_0xcf0361[_0xf1a5b7(0x1a1)]),logger[_0xf1a5b7(0x1a8)](_0xf1a5b7(0x1b4)+_0xcf0361[_0xf1a5b7(0x1a1)]);if(_0x38f1bb){const _0x113dbd={};_0x113dbd[_0xf1a5b7(0x205)]=WS_EVENTS[_0xf1a5b7(0x1c4)],_0x113dbd[_0xf1a5b7(0x1e1)]=_0x3ff0b7,webSocketUtils[_0xf1a5b7(0x208)](_0x38f1bb,_0x113dbd,_0x5ca4ac[_0xf1a5b7(0x211)],!![]);}await webSocketUtils[_0xf1a5b7(0x216)](0x7d0);const _0x4387e8={};_0x4387e8['error']=_0x3ff0b7,await _0x5ca4ac[_0xf1a5b7(0x1c2)](sendInstrumentationEvent,_0xc05efd,_0x5ca4ac['HbfJk'],messageTypes[_0xf1a5b7(0x212)],_0x5ca4ac[_0xf1a5b7(0x151)],_0x4387e8,_0xc05efd),process[_0xf1a5b7(0x1c7)](0x1);}};
1
+ const a17_0x1eab5f=a17_0x17cf;function a17_0x17cf(_0x5a3c70,_0x494753){const _0x2e748a=a17_0x2e74();return a17_0x17cf=function(_0x17cfbc,_0x495368){_0x17cfbc=_0x17cfbc-0xac;let _0xae6a40=_0x2e748a[_0x17cfbc];return _0xae6a40;},a17_0x17cf(_0x5a3c70,_0x494753);}(function(_0x54a2e5,_0x4f7ff){const _0x1ec883=a17_0x17cf,_0x3f85a2=_0x54a2e5();while(!![]){try{const _0x2697b7=-parseInt(_0x1ec883(0x166))/0x1+-parseInt(_0x1ec883(0x114))/0x2+-parseInt(_0x1ec883(0xfc))/0x3+-parseInt(_0x1ec883(0x175))/0x4*(-parseInt(_0x1ec883(0x11e))/0x5)+parseInt(_0x1ec883(0x199))/0x6+parseInt(_0x1ec883(0xc4))/0x7*(-parseInt(_0x1ec883(0x1a9))/0x8)+parseInt(_0x1ec883(0xec))/0x9;if(_0x2697b7===_0x4f7ff)break;else _0x3f85a2['push'](_0x3f85a2['shift']());}catch(_0x4f024e){_0x3f85a2['push'](_0x3f85a2['shift']());}}}(a17_0x2e74,0xedf03));const fs=require('fs'),ws=require('ws'),got=require(a17_0x1eab5f(0x12d)),{v4:uuidv4}=require(a17_0x1eab5f(0x15b)),ReconnectingWebSocket=require(a17_0x1eab5f(0x151)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1eab5f(0x190)),{logger}=require(a17_0x1eab5f(0x11b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x1eab5f(0x18c)),{sendInstrumentationEvent}=require(a17_0x1eab5f(0xd5));exports[a17_0x1eab5f(0x135)]=a17_0x1eab5f(0x11f),exports[a17_0x1eab5f(0xdd)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x1eab5f(0x148)]=function(_0x41ae81){const _0x2b5463=a17_0x1eab5f,_0x5b199f={};_0x5b199f[_0x2b5463(0xda)]=_0x2b5463(0x134),_0x5b199f['Mcxfr']=_0x2b5463(0xf0),_0x5b199f[_0x2b5463(0x156)]=_0x2b5463(0x13c),_0x5b199f['oPBgp']=_0x2b5463(0x1ac),_0x5b199f[_0x2b5463(0xf8)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5b199f[_0x2b5463(0xdb)]=_0x2b5463(0x185);const _0x6e96c4=_0x5b199f,_0x4a3d96={};_0x4a3d96['description']=_0x6e96c4[_0x2b5463(0xda)],_0x4a3d96[_0x2b5463(0xbb)]=_0x6e96c4[_0x2b5463(0xff)];const _0x58875c={};_0x58875c['description']=_0x6e96c4[_0x2b5463(0x156)],_0x58875c[_0x2b5463(0xbb)]=_0x6e96c4[_0x2b5463(0xff)];const _0x422c17={};_0x422c17[_0x2b5463(0x161)]=_0x6e96c4[_0x2b5463(0x194)],_0x422c17[_0x2b5463(0xbb)]=_0x6e96c4[_0x2b5463(0xff)];const _0x2ea5c4={};_0x2ea5c4[_0x2b5463(0x161)]=_0x6e96c4[_0x2b5463(0xf8)],_0x2ea5c4[_0x2b5463(0xbb)]=_0x6e96c4[_0x2b5463(0xff)];const _0x121b80={};return _0x121b80['cluster-name']=_0x4a3d96,_0x121b80[_0x2b5463(0x144)]=_0x58875c,_0x121b80['region']=_0x422c17,_0x121b80['grid-profile']=_0x2ea5c4,_0x41ae81[_0x2b5463(0x17d)](HELP_HEADER_MESSAGE[_0x2b5463(0x159)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2b5463(0x158)](_0x121b80)[_0x2b5463(0x185)](_0x6e96c4[_0x2b5463(0xdb)])['argv'];};async function inputValidation(_0x380d15,_0x1f6f3a){const _0x2060f0=a17_0x1eab5f,_0x433bd0={'pBVZU':function(_0x3c4ae6,_0xdcadf3){return _0x3c4ae6+_0xdcadf3;},'clKql':_0x2060f0(0x196),'elxqM':'Failure','kaYRm':function(_0x1943e,_0x3d602a){return _0x1943e||_0x3d602a;},'iycNt':_0x2060f0(0x124),'HVLfc':_0x2060f0(0x187),'IduhU':_0x2060f0(0x119),'eMxDb':'region','sSJlt':'error','YsuPC':_0x2060f0(0x134),'eMgJl':_0x2060f0(0xf0),'TPHMp':_0x2060f0(0x13c),'ThjeO':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','kNumW':_0x2060f0(0x193),'SiUZD':_0x2060f0(0x185),'VFevw':_0x2060f0(0x144),'vnoVh':_0x2060f0(0x13b),'KQTZh':_0x2060f0(0xc7),'ICqpv':function(_0x4796c1,_0x4881ef){return _0x4796c1===_0x4881ef;},'Jzooy':'ztGlq','yqVmu':function(_0x5b0857,_0x289f08){return _0x5b0857===_0x289f08;},'zqypi':'KGbQR','pVuNo':'EwNii','dZvpM':function(_0x5e4571,_0x549496){return _0x5e4571===_0x549496;},'LBVZC':_0x2060f0(0x19d),'BQTeI':_0x2060f0(0x101),'UuufX':function(_0x18bb2b,_0x1b44fd){return _0x18bb2b!==_0x1b44fd;},'mVwZn':'jGTBc','qwGUV':_0x2060f0(0x184),'ABUlC':function(_0x100ae2,_0x1a6716){return _0x100ae2===_0x1a6716;},'VVYOI':'ZkLma','wZzIc':function(_0x4f41a8,_0x4fa0f0){return _0x4f41a8>_0x4fa0f0;},'LHeEl':function(_0x1ff6b3,_0x2402a0){return _0x1ff6b3===_0x2402a0;},'qpUmH':'WKzMR','hYJNd':function(_0x320f87,_0x1c2138,_0x4ac9fc,_0x153ff2,_0x159f64,_0x4b2fba,_0x1b35dc,_0x4f6adc){return _0x320f87(_0x1c2138,_0x4ac9fc,_0x153ff2,_0x159f64,_0x4b2fba,_0x1b35dc,_0x4f6adc);},'bSTrM':_0x2060f0(0x16d),'nGhZZ':_0x2060f0(0x1a0),'HbRQj':_0x2060f0(0x141),'mLTpi':_0x2060f0(0xf4),'ikhWS':_0x2060f0(0x14a),'Stjzw':function(_0x48757c,_0x398762,_0x40856f,_0x28c5ca,_0x38bdf9,_0x1e745d,_0x4e8024,_0xe64a7d){return _0x48757c(_0x398762,_0x40856f,_0x28c5ca,_0x38bdf9,_0x1e745d,_0x4e8024,_0xe64a7d);},'SKNWY':_0x2060f0(0x1a2),'wHBZl':_0x2060f0(0xba),'YPWIR':_0x2060f0(0xf2),'pFkQZ':function(_0x38444c,_0x2a18dc){return _0x38444c!==_0x2a18dc;},'rQthh':_0x2060f0(0xb0),'fcWLr':_0x2060f0(0x122),'JyWhs':_0x2060f0(0x13e),'BRpXJ':function(_0x41593b,_0x455d8d,_0x5c843c){return _0x41593b(_0x455d8d,_0x5c843c);},'BAJYT':function(_0x101695,_0x31aef5,_0x476c6a,_0x100f99,_0x633c54,_0x9d7854){return _0x101695(_0x31aef5,_0x476c6a,_0x100f99,_0x633c54,_0x9d7854);},'jFOni':'pre-check','eugbv':'grid-profile','LbHYT':'iqBVy','xdNxW':_0x2060f0(0x180),'HyQdL':function(_0x37aa5c,_0x4d9bd9){return _0x37aa5c(_0x4d9bd9);},'FPYRK':function(_0x4a36de,_0x200c0c){return _0x4a36de!==_0x200c0c;},'qZDCi':_0x2060f0(0x19b),'NiFfi':function(_0x2777d4,_0x945576,_0x4ba5f5,_0x3fc556,_0x4d1d6f,_0x3668bf,_0x2d2a1f,_0x74e0cf){return _0x2777d4(_0x945576,_0x4ba5f5,_0x3fc556,_0x4d1d6f,_0x3668bf,_0x2d2a1f,_0x74e0cf);},'ULUwY':_0x2060f0(0x177),'zJchm':_0x2060f0(0xcd),'CgmeT':_0x2060f0(0x1a6),'TDTgE':_0x2060f0(0x168),'qAJjq':'VNVwY','YJdTF':'Grid\x20profile\x20fetched\x20for\x20pre-check','tUFah':function(_0x386188,_0x555466){return _0x386188===_0x555466;},'wqosm':_0x2060f0(0xbe),'PlDiu':_0x2060f0(0x17e),'KnALZ':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','ScOGZ':'XJHtf'};let _0x29f0fa;try{if(_0x433bd0['ICqpv'](_0x433bd0[_0x2060f0(0xee)],_0x433bd0[_0x2060f0(0xee)])){if(_0x380d15['clusterName']||_0x380d15[_0x2060f0(0x19f)]||_0x380d15[_0x2060f0(0x130)]){if(_0x433bd0[_0x2060f0(0x10b)](_0x433bd0['zqypi'],_0x433bd0[_0x2060f0(0x1a7)]))_0xba0372['exit'](0x1);else{const _0x589c87=[];if(!_0x380d15[_0x2060f0(0x1ae)]){if(_0x433bd0[_0x2060f0(0x19e)](_0x433bd0[_0x2060f0(0x1a5)],_0x433bd0['BQTeI'])){const {header:_0xd21d0a,response:_0x61a814}=_0x5a6abc,{status:_0x48e954,data:_0x155424,error:_0x519098}=_0x61a814;_0x52540d+=_0xd21d0a+'\x20#'+_0x433bd0[_0x2060f0(0xc5)](_0x53673a,0x1)+'\x0a',_0x94b910+=_0x2060f0(0x116)+(_0x48e954?_0x433bd0[_0x2060f0(0xad)]:_0x433bd0['elxqM'])+'\x0a',_0x54883f+='Message:\x20'+_0x433bd0[_0x2060f0(0xd7)](_0x155424,_0x433bd0[_0x2060f0(0x123)])+'\x0a',_0x519098&&(_0x1c351b+=_0x433bd0[_0x2060f0(0x18f)],_0x4b60c9+=_0x2060f0(0x163)+(_0x519098[_0x2060f0(0x13f)]||_0x433bd0[_0x2060f0(0x123)])+'\x0a',_0x171c68+=_0x2060f0(0x145)+(_0x519098[_0x2060f0(0x12b)]||_0x433bd0[_0x2060f0(0x123)])+'\x0a',_0xee441d+=_0x2060f0(0x131)+(_0x519098[_0x2060f0(0x195)]||_0x433bd0[_0x2060f0(0x123)])+'\x0a'),_0x57c2f7+='\x0a\x0a';}else _0x589c87['push'](_0x433bd0[_0x2060f0(0x171)]);};!_0x380d15[_0x2060f0(0x19f)]&&(_0x433bd0['UuufX'](_0x433bd0[_0x2060f0(0x15d)],_0x433bd0[_0x2060f0(0xd9)])?_0x589c87[_0x2060f0(0xc1)](_0x433bd0[_0x2060f0(0x136)]):_0x532749[_0x2060f0(0x1a3)]('Cluster\x20`'+_0x4a8bc3[_0x2060f0(0x1ae)]+_0x2060f0(0x17c)));;!_0x380d15[_0x2060f0(0x130)]&&(_0x433bd0['ABUlC'](_0x433bd0[_0x2060f0(0xe8)],_0x433bd0['VVYOI'])?_0x589c87[_0x2060f0(0xc1)](_0x433bd0['eMxDb']):_0x5ea108[_0x2060f0(0xc1)](_0x433bd0[_0x2060f0(0x171)]));;_0x433bd0['wZzIc'](_0x589c87['length'],0x0)&&(_0x433bd0['LHeEl'](_0x433bd0[_0x2060f0(0x1a4)],_0x433bd0[_0x2060f0(0x1a4)])?(_0x29f0fa=_0x2060f0(0xd0)+_0x589c87[_0x2060f0(0x153)](',\x20')+_0x2060f0(0x12c),await _0x433bd0['hYJNd'](reportToGalactusAndSendToEDS,_0x380d15,_0x1f6f3a,_0x29f0fa,messageTypes[_0x2060f0(0x106)],_0x433bd0[_0x2060f0(0xb1)],_0x433bd0[_0x2060f0(0x133)],_0x433bd0['sSJlt']),logger[_0x2060f0(0x105)](_0x29f0fa),process[_0x2060f0(0x10c)](0x1)):_0x296a78=_0x212180),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2060f0(0x15f)](_0x380d15['cloudProvider'][_0x2060f0(0x1aa)]())&&(_0x433bd0['ABUlC'](_0x433bd0[_0x2060f0(0x146)],_0x433bd0[_0x2060f0(0x16c)])?_0xf9052[_0x2060f0(0xc1)](_0x433bd0[_0x2060f0(0x169)]):(_0x29f0fa=_0x433bd0[_0x2060f0(0xe1)],await _0x433bd0[_0x2060f0(0x14f)](reportToGalactusAndSendToEDS,_0x380d15,_0x1f6f3a,_0x29f0fa,messageTypes[_0x2060f0(0x106)],_0x433bd0['bSTrM'],_0x433bd0[_0x2060f0(0xcf)],_0x433bd0[_0x2060f0(0xac)]),logger[_0x2060f0(0x105)](_0x29f0fa),!_0x380d15[_0x2060f0(0x19f)]&&(_0x433bd0[_0x2060f0(0x19e)](_0x433bd0[_0x2060f0(0x197)],_0x433bd0[_0x2060f0(0x179)])?(_0x1573c4['info'](_0x2060f0(0x1a8)+_0x523fd2[_0x2060f0(0x18a)]+'\x20'),_0xbded9[_0x2060f0(0x19f)]=_0x820a76[_0x2060f0(0x18a)]):(logger[_0x2060f0(0x1a3)](_0x2060f0(0x1a8)+DEFAULT_CLUSTER_DETAILS[_0x2060f0(0x18a)]+'\x20'),_0x380d15['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x2060f0(0x1ae)]=_0x380d15[_0x2060f0(0x1ae)],global_registry[_0x2060f0(0x19f)]=_0x380d15[_0x2060f0(0x19f)],global_registry[_0x2060f0(0xf9)]=_0x380d15[_0x2060f0(0x130)];}}else{if(_0x380d15[_0x2060f0(0x140)]){if(_0x433bd0['pFkQZ'](_0x433bd0[_0x2060f0(0x12a)],_0x433bd0['fcWLr'])){global_registry[_0x2060f0(0x140)]=_0x380d15[_0x2060f0(0x140)],logger[_0x2060f0(0x19a)](_0x2060f0(0x14d)+_0x380d15[_0x2060f0(0x140)]);const _0x3f043f='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x28ab57={};_0x28ab57[_0x2060f0(0x186)]=_0x433bd0[_0x2060f0(0xd8)],_0x28ab57['headers']=global_registry[_0x2060f0(0xb4)],_0x28ab57[_0x2060f0(0xf7)]=![];const _0xc0b6af=_0x28ab57,_0x4268ff=await _0x433bd0[_0x2060f0(0x100)](got,_0x3f043f,_0xc0b6af),_0x5bb892=await _0x433bd0['BAJYT'](responseValidation,_0x4268ff,_0x433bd0[_0x2060f0(0xb3)],_0x433bd0[_0x2060f0(0x112)],_0x380d15,_0x1f6f3a);let _0x590550={};if(_0x433bd0[_0x2060f0(0xc9)](_0x5bb892,0xc8)){if(_0x433bd0[_0x2060f0(0xe9)](_0x433bd0[_0x2060f0(0x103)],_0x433bd0[_0x2060f0(0xcc)])){const _0xca0949=JSON[_0x2060f0(0x19c)](_0x4268ff[_0x2060f0(0x167)]),_0x331b60=_0xca0949[_0x2060f0(0xb9)](_0x254362=>_0x254362[_0x2060f0(0x17b)]===_0x380d15['gridProfile'])||null;if(_0x433bd0[_0x2060f0(0x160)](isUndefined,_0x331b60)){if(_0x433bd0[_0x2060f0(0x17f)](_0x433bd0[_0x2060f0(0x113)],_0x433bd0[_0x2060f0(0x113)])){const _0x4d1c3d={};_0x4d1c3d['type']=_0x4758df[_0x2060f0(0xc2)],_0x4d1c3d['message']=_0x163acf,_0x46d6b0['sendEventToBackend'](_0x82866e,_0x4d1c3d,_0x433bd0[_0x2060f0(0xac)],!![]);}else _0x29f0fa='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x380d15['gridProfile']+_0x2060f0(0x198),await _0x433bd0[_0x2060f0(0x10e)](reportToGalactusAndSendToEDS,_0x380d15,_0x1f6f3a,_0x29f0fa,messageTypes['ERROR'],_0x433bd0['bSTrM'],_0x433bd0[_0x2060f0(0xaf)],_0x433bd0[_0x2060f0(0xac)]),logger[_0x2060f0(0x105)](_0x29f0fa),process[_0x2060f0(0x10c)](0x1);}else _0x433bd0[_0x2060f0(0x10b)](_0x433bd0[_0x2060f0(0x12f)],_0x433bd0[_0x2060f0(0x115)])?(_0x4970f1[_0x2060f0(0x1a3)]('['+_0xc45054+_0x2060f0(0x147)+_0x3d9ff8[_0x2060f0(0xfd)]+_0x2060f0(0x18e)+_0x4a52c6[_0x2060f0(0xe5)]+_0x2060f0(0x176)+_0x424cb6[_0x2060f0(0x105)]),_0x972eb7['error']&&_0x31999f[_0x2060f0(0x105)]('error\x20stack\x20:\x20'+_0x176768['error']['stack'])):_0x590550=_0x331b60;}else _0xd8582a['error'](_0x2060f0(0x188)+_0x3d4613[_0x2060f0(0x105)]['stack']);}else{if(_0x433bd0[_0x2060f0(0xe3)](_0x433bd0[_0x2060f0(0xce)],_0x433bd0[_0x2060f0(0xbf)]))process[_0x2060f0(0x10c)](0x1);else{const _0x48eead={};_0x48eead[_0x2060f0(0x161)]=_0x433bd0['YsuPC'],_0x48eead[_0x2060f0(0xbb)]=_0x433bd0[_0x2060f0(0x149)];const _0x1d6ec9={};_0x1d6ec9[_0x2060f0(0x161)]=_0x433bd0[_0x2060f0(0x154)],_0x1d6ec9['type']=_0x433bd0[_0x2060f0(0x149)];const _0x355f9b={};_0x355f9b[_0x2060f0(0x161)]=_0x433bd0[_0x2060f0(0xfb)],_0x355f9b[_0x2060f0(0xbb)]=_0x433bd0[_0x2060f0(0x149)];const _0x4df6cf={};_0x4df6cf[_0x2060f0(0x161)]=_0x433bd0[_0x2060f0(0xb5)],_0x4df6cf['type']=_0x433bd0['eMgJl'];const _0x2d2e4b={};return _0x2d2e4b[_0x2060f0(0x119)]=_0x48eead,_0x2d2e4b['cloud-provider']=_0x1d6ec9,_0x2d2e4b[_0x2060f0(0x130)]=_0x355f9b,_0x2d2e4b[_0x2060f0(0x192)]=_0x4df6cf,_0x18836f[_0x2060f0(0x17d)](_0x58ad5a[_0x2060f0(0x159)])[_0x2060f0(0x173)](_0x1f0464)[_0x2060f0(0x158)](_0x2d2e4b)[_0x2060f0(0x185)](_0x433bd0['SiUZD'])[_0x2060f0(0x127)];}}const _0x49fe70={};_0x49fe70[_0x2060f0(0xbb)]=WS_EVENTS[_0x2060f0(0xc2)],_0x49fe70[_0x2060f0(0x13f)]=_0x433bd0[_0x2060f0(0x18b)],webSocketUtils['sendEventToBackend'](_0x1f6f3a,_0x49fe70),global_registry[_0x2060f0(0x19f)]=_0x590550[_0x2060f0(0x19f)],global_registry[_0x2060f0(0xf9)]=_0x590550[_0x2060f0(0x130)],global_registry['clusterName']=_0x590550['clusterName'];}else _0x44d52a+=_0x433bd0['HVLfc'],_0x161395+=_0x2060f0(0x163)+(_0x438ee3[_0x2060f0(0x13f)]||_0x433bd0[_0x2060f0(0x123)])+'\x0a',_0x2932e4+=_0x2060f0(0x145)+(_0x135f86[_0x2060f0(0x12b)]||_0x433bd0[_0x2060f0(0x123)])+'\x0a',_0x5d2ef7+=_0x2060f0(0x131)+(_0x3dc990['stack']||_0x433bd0[_0x2060f0(0x123)])+'\x0a';}else _0x433bd0[_0x2060f0(0x1af)](_0x433bd0[_0x2060f0(0x164)],_0x433bd0[_0x2060f0(0x181)])?_0xc3a04a+='Cluster\x20'+_0x2b3a2a[_0x2060f0(0x1ae)]+_0x2060f0(0xc0):(logger[_0x2060f0(0x105)](_0x433bd0[_0x2060f0(0x120)]),process[_0x2060f0(0x10c)](0x1));}}else _0x4a05eb[_0x2060f0(0xc1)](_0x433bd0[_0x2060f0(0x136)]);}catch(_0xebfa52){_0x433bd0[_0x2060f0(0x19e)](_0x433bd0[_0x2060f0(0xea)],_0x433bd0[_0x2060f0(0xea)])?(_0x29f0fa='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0xebfa52+':\x20'+_0xebfa52[_0x2060f0(0x195)],logger[_0x2060f0(0x105)](_0x29f0fa),await _0x433bd0['NiFfi'](reportToGalactusAndSendToEDS,_0x380d15,_0x1f6f3a,_0x29f0fa,messageTypes[_0x2060f0(0x106)],_0x433bd0[_0x2060f0(0xb1)],_0x433bd0['SKNWY'],_0x433bd0['sSJlt']),process['exit'](0x1)):_0xf0be5e+=_0x2060f0(0xd2)+_0x4b2183[_0x2060f0(0x1ae)]+'\x20'+(_0x2dbd6b?_0x433bd0['vnoVh']:_0x433bd0[_0x2060f0(0xca)])+'\x0a\x0a';}}function printResponse(_0x5eb610,_0x56877d){const _0x381893=a17_0x1eab5f,_0x545aaf={};_0x545aaf[_0x381893(0xc3)]=_0x381893(0xbd),_0x545aaf[_0x381893(0x152)]=function(_0x3d9cfe,_0x839ebb){return _0x3d9cfe===_0x839ebb;},_0x545aaf[_0x381893(0x132)]=_0x381893(0x15a),_0x545aaf[_0x381893(0x13a)]='SYyDF';const _0x344050=_0x545aaf;logger['info']('['+_0x5eb610+_0x381893(0x147)+_0x56877d[_0x381893(0xfd)]+_0x381893(0x18e)+_0x56877d[_0x381893(0xe5)]+_0x381893(0x176)+_0x56877d['error']),_0x56877d['error']&&(_0x344050[_0x381893(0x152)](_0x344050[_0x381893(0x132)],_0x344050[_0x381893(0x13a)])?(_0x2fb59c[_0x381893(0x105)](_0x344050['ppamF']),_0x18e554['exit'](0x1)):logger[_0x381893(0x105)](_0x381893(0x188)+_0x56877d[_0x381893(0x105)][_0x381893(0x195)]));}async function generateReport(_0x1f9ebb,_0x3e5be0){const _0x1e1fb6=a17_0x1eab5f,_0x5ec109={'Sfywf':function(_0x178bae,_0x3e8f93){return _0x178bae+_0x3e8f93;},'nAARi':_0x1e1fb6(0x196),'rKfCp':_0x1e1fb6(0x10d),'dizMr':function(_0x39c9a2,_0x5e0630){return _0x39c9a2||_0x5e0630;},'QxExP':'N/A','ymXax':_0x1e1fb6(0x187),'BqxIN':_0x1e1fb6(0x142),'lYBHn':function(_0x3cb3ec,_0x520fdb){return _0x3cb3ec!=_0x520fdb;},'pmjQc':_0x1e1fb6(0x13b),'uUEfX':_0x1e1fb6(0xc7),'YyQDw':function(_0xde32c3){return _0xde32c3();}};let _0x356e78='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x1e1fb6(0x11d);return _0x1f9ebb['forEach']((_0x1efc35,_0x56ded5)=>{const _0x5a4245=_0x1e1fb6,{header:_0x4b9946,response:_0x392478}=_0x1efc35,{status:_0x50fad8,data:_0x536d29,error:_0x57b760}=_0x392478;_0x356e78+=_0x4b9946+'\x20#'+_0x5ec109[_0x5a4245(0x15e)](_0x56ded5,0x1)+'\x0a',_0x356e78+=_0x5a4245(0x116)+(_0x50fad8?_0x5ec109[_0x5a4245(0x170)]:_0x5ec109[_0x5a4245(0x143)])+'\x0a',_0x356e78+='Message:\x20'+_0x5ec109[_0x5a4245(0x1ad)](_0x536d29,_0x5ec109[_0x5a4245(0x129)])+'\x0a',_0x57b760&&(_0x356e78+=_0x5ec109[_0x5a4245(0x102)],_0x356e78+=_0x5a4245(0x163)+(_0x57b760[_0x5a4245(0x13f)]||_0x5ec109[_0x5a4245(0x129)])+'\x0a',_0x356e78+=_0x5a4245(0x145)+(_0x57b760[_0x5a4245(0x12b)]||_0x5ec109[_0x5a4245(0x129)])+'\x0a',_0x356e78+=_0x5a4245(0x131)+(_0x57b760['stack']||_0x5ec109[_0x5a4245(0x129)])+'\x0a'),_0x356e78+='\x0a\x0a';}),_0x356e78+=_0x5ec109[_0x1e1fb6(0x11c)],_0x5ec109['lYBHn'](_0x3e5be0,null)?_0x356e78+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x3e5be0?_0x5ec109['pmjQc']:_0x5ec109[_0x1e1fb6(0x12e)])+'\x0a\x0a':_0x356e78+='Cluster\x20'+global_registry[_0x1e1fb6(0x1ae)]+_0x1e1fb6(0xc0),_0x356e78+=_0x5ec109['YyQDw'](getSystemMetaData),_0x356e78;}function a17_0x2e74(){const _0xe8eb32=['debug','idwOX','parse','KTvUN','dZvpM','cloudProvider','pre-check-cluster-args-not-passed','YKbOg','cloud-provider-not-supported','info','qpUmH','LBVZC','PxENF','pVuNo','Setting\x20cloud\x20provider\x20as\x20','24568FxbYuR','toLowerCase','\x20region\x20-\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','dizMr','clusterName','tUFah','sSJlt','clKql','nmwXa','ULUwY','JHHet','bSTrM','pvuGj','jFOni','authHeader','kNumW','response','stack\x20trace\x20','dnVpP','find','NbzpG','type','connectionTimeout','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','JKbMn','qAJjq','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','push','LOG','ppamF','2534YWelec','pBVZU','WebSocket','will\x20be\x20created','AFfrx','LHeEl','KQTZh','.txt','xdNxW','hsjKx','TDTgE','SKNWY','Missing\x20required\x20arguments:\x20','cluster-check-failed-','Cluster\x20','1|0|4|3|2','toolInstalledResp','../../utils/instrumentationUtils','JwKaK','kaYRm','JyWhs','qwGUV','PoUUV','PrlpY','Pre-check\x20running\x20for\x20Cloud\x20-\x20','desc','dummy-grid','Tool\x20Installed','getUTCMinutes','ikhWS','bstackUsername','pFkQZ','TLSv1_2_client_method','data','password','DKVNc','VVYOI','UuufX','ScOGZ','MDcvQ','31540554xtXWXH','User\x20Access','Jzooy','yQrTU','string','Whitelisted\x20browserstack','qPrbO','utf-8','krLrY','isTrialGridAccessible','existsSync','throwHttpErrors','KplMW','clusterRegion','UfbVi','ThjeO','5831703gJmQLv','status','taEeN','Mcxfr','BRpXJ','fxfkh','ymXax','LbHYT','isCliToolInstalled','error','ERROR','init','split','pre-check-failed','writeFileSync','yqVmu','exit','Failure','NiFfi','unable\x20to\x20verify\x20if\x20cluster\x20`','readFileSync','bFNnE','eugbv','qZDCi','2827372cJwCrC','CgmeT','Status:\x20','Cluster\x20`','getUTCFullYear','cluster-name','getUTCDate','../../config/logger','BqxIN','\x20===\x0a\x0a','430645PFTDRy','grid','KnALZ','Ghjqv','eKUPI','iycNt','N/A','IxELb','Browserstack','argv','Report\x20saved\x20in\x20','QxExP','rQthh','code','.\x20Please\x20provide\x20all\x20required\x20arguments.','got','uUEfX','zJchm','region','\x20\x20Stack:\x20','BjqOI','nGhZZ','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','command','VFevw','htpLI','oJAWG','username','gsCXi','is\x20already\x20present','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','header','GET','message','gridProfile','BgoaF','Cluster\x20details\x0a-----------------------\x0a','rKfCp','cloud-provider','\x20\x20Code:\x20','HbRQj',']\x20status\x20:\x20','builder','eMgJl','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','NFVWq','tUDGi','grid\x20profile\x20flow\x20','<UsernamePlaceholder>','Stjzw','handler','reconnecting-websocket','ZeMsd','join','TPHMp','SSL\x20Configured','nzSYJ','delay','options','pre_check','egfKu','uuid','YUMyl','mVwZn','Sfywf','includes','HyQdL','description','RZGgi','\x20\x20Message:\x20','wqosm','JdOUG','1155424NpyVBX','body','zITAk','eMxDb','JkBuk','credential-not-found','mLTpi','pre-check-grid-called','lzcJE','sendEventToBackend','nAARi','IduhU','dIpOI','epilogue','TaATL','64EzHddP','\x20error\x20:\x20','pre-check-grid-profile-empty','accessResp','YPWIR','sTqlD','name','`\x20already\x20exists','usage','xkkUZ','FPYRK','lIGWI','PlDiu','stringify','`\x20,error\x20:\x20','SMKAp','help','method','Error\x20Details:\x0a','error\x20stack\x20:\x20','qLOSF','CLOUD_PROVIDER','YJdTF','../../utils/webSocketUtils','RGEUK','\x20data\x20:\x20','HVLfc','../../utils/utilityMethods','<PasswordPlaceholder>','grid-profile','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','oPBgp','stack','Success','wHBZl','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','10300428FZmmQs'];a17_0x2e74=function(){return _0xe8eb32;};return a17_0x2e74();};exports[a17_0x1eab5f(0x150)]=async function(_0x3ce2e1){const _0x358d38=a17_0x1eab5f,_0x49f408={'YKbOg':function(_0x366ec8){return _0x366ec8();},'JkBuk':function(_0x5a688e){return _0x5a688e();},'nmwXa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','htpLI':function(_0x3618bd,_0x1a7083,_0x2db1b2,_0x612fc7,_0x36a638,_0x202341,_0x10aa9a,_0x3225ed){return _0x3618bd(_0x1a7083,_0x2db1b2,_0x612fc7,_0x36a638,_0x202341,_0x10aa9a,_0x3225ed);},'RGEUK':_0x358d38(0x16d),'JwKaK':_0x358d38(0x16b),'tUDGi':_0x358d38(0x105),'pvuGj':function(_0x385a34,_0x9f55c9,_0x478023,_0x56bcaf,_0x92d3d1,_0x2e61bf,_0x5207f2){return _0x385a34(_0x9f55c9,_0x478023,_0x56bcaf,_0x92d3d1,_0x2e61bf,_0x5207f2);},'JVZFz':function(_0x108720){return _0x108720();},'sTqlD':_0x358d38(0x14e),'NFVWq':_0x358d38(0x191),'qLOSF':function(_0x502601,_0xada2c0,_0x8f6e62){return _0x502601(_0xada2c0,_0x8f6e62);},'BQPlK':function(_0x15c81c,_0x49783d,_0x31111c,_0x3d5545,_0x12f155,_0x8477cb,_0x3fb608){return _0x15c81c(_0x49783d,_0x31111c,_0x3d5545,_0x12f155,_0x8477cb,_0x3fb608);},'bFNnE':_0x358d38(0xde),'bgtaP':_0x358d38(0xd4),'oJAWG':_0x358d38(0xd3),'AFfrx':function(_0x3fd57f,_0x345e2f,_0x5e44c2,_0x56d287,_0x5f3f1a,_0x3c358d,_0xe60ba3,_0x978096){return _0x3fd57f(_0x345e2f,_0x5e44c2,_0x56d287,_0x5f3f1a,_0x3c358d,_0xe60ba3,_0x978096);},'dIpOI':function(_0x2ac45c,_0xb123b0,_0x4e3649){return _0x2ac45c(_0xb123b0,_0x4e3649);},'RZGgi':_0x358d38(0x178),'JdOUG':function(_0x2bf73e){return _0x2bf73e();},'TaATL':function(_0x31f532,_0x4e4095,_0x4378a3){return _0x31f532(_0x4e4095,_0x4378a3);},'MDcvQ':_0x358d38(0xf5),'UfbVi':function(_0x169026,_0x39d4dc){return _0x169026(_0x39d4dc);},'DKVNc':_0x358d38(0xe4),'ogbJA':'isTls1_2_SUPPORTED','taEeN':_0x358d38(0xdf),'vMeFM':_0x358d38(0xed),'lzcJE':_0x358d38(0xf1),'YUMyl':_0x358d38(0x155),'yQrTU':function(_0x5a3890,_0x1e25ec,_0x118139){return _0x5a3890(_0x1e25ec,_0x118139);},'Xifxx':function(_0x2110be,_0x1d8a68){return _0x2110be+_0x1d8a68;},'IxELb':_0x358d38(0xf3),'Ghjqv':function(_0x117c90,_0x23aaa2,_0x202eca,_0x188523,_0x5ec2a7,_0x32a3c2,_0x29c0f2){return _0x117c90(_0x23aaa2,_0x202eca,_0x188523,_0x5ec2a7,_0x32a3c2,_0x29c0f2);},'dnVpP':_0x358d38(0x109)};let _0x1b9590,_0x19a66f;try{global_registry['requestId']=_0x49f408[_0x358d38(0x1a1)](uuidv4);!fs[_0x358d38(0xf6)](_0x49f408[_0x358d38(0x16a)](getCredentialsPath))&&(_0x19a66f=_0x49f408[_0x358d38(0xae)],logger[_0x358d38(0x105)](_0x19a66f),await _0x49f408[_0x358d38(0x137)](reportToGalactusAndSendToEDS,_0x3ce2e1,_0x1b9590,_0x19a66f,messageTypes[_0x358d38(0x106)],_0x49f408[_0x358d38(0x18d)],_0x49f408[_0x358d38(0xd6)],_0x49f408[_0x358d38(0x14c)]),process[_0x358d38(0x10c)](0x1));_0x49f408[_0x358d38(0xb2)](sendInstrumentationEvent,_0x3ce2e1,_0x49f408[_0x358d38(0x18d)],messageTypes['INFO'],null,null,_0x3ce2e1);const _0x2a2b88=JSON[_0x358d38(0x19c)](fs[_0x358d38(0x110)](_0x49f408['JVZFz'](getCredentialsPath)));global_registry['bstackUsername']=_0x2a2b88['Browserstack'][_0x358d38(0x139)],global_registry['bstackAccesskey']=_0x2a2b88[_0x358d38(0x126)][_0x358d38(0xe6)];const _0x11c662=WS_ENDPOINT['replace'](_0x49f408[_0x358d38(0x17a)],_0x2a2b88[_0x358d38(0x126)]['username'])['replace'](_0x49f408[_0x358d38(0x14b)],_0x2a2b88[_0x358d38(0x126)]['password']),_0x11d704={};_0x11d704[_0x358d38(0xc6)]=ws,_0x11d704[_0x358d38(0xbc)]=0x36ee80,_0x1b9590=new ReconnectingWebSocket(_0x11c662,[],_0x11d704),global_registry[_0x358d38(0xb4)]=_0x49f408[_0x358d38(0x189)](getAuthHeader,global_registry[_0x358d38(0xe2)],global_registry['bstackAccesskey']),await _0x49f408[_0x358d38(0x189)](inputValidation,_0x3ce2e1,_0x1b9590),logger[_0x358d38(0x1a3)](_0x358d38(0xdc)+global_registry['cloudProvider']+_0x358d38(0x1ab)+global_registry[_0x358d38(0xf9)]);let _0x3ae88f=await _0x49f408['BQPlK'](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x49f408[_0x358d38(0x111)],_0x1b9590,webSocketUtils,_0x3ce2e1);const _0x3341d2=await _0x3ae88f[_0x358d38(0x104)]();_0x49f408['qLOSF'](printResponse,_0x49f408['bgtaP'],_0x3341d2),_0x3ae88f=await _0x3ae88f[_0x358d38(0x107)]();let _0x46f6e2=![];try{_0x46f6e2=await _0x3ae88f['isClusterPresent']();}catch(_0x12f579){const _0x40b26b=_0x49f408[_0x358d38(0x138)][_0x358d38(0x108)]('|');let _0x1bb463=0x0;while(!![]){switch(_0x40b26b[_0x1bb463++]){case'0':_0x46f6e2=null;continue;case'1':_0x19a66f=_0x358d38(0x10f)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x358d38(0xf9)]+_0x358d38(0x183)+_0x12f579;continue;case'2':await _0x49f408[_0x358d38(0xc8)](reportToGalactusAndSendToEDS,_0x3ce2e1,_0x1b9590,_0x19a66f,messageTypes[_0x358d38(0x106)],_0x49f408[_0x358d38(0x18d)],_0x358d38(0xd1)+global_registry[_0x358d38(0x19f)],_0x49f408[_0x358d38(0x14c)]);continue;case'3':_0x19a66f+='\x0a'+JSON[_0x358d38(0x182)](_0x12f579[_0x358d38(0x195)]);continue;case'4':logger['error'](_0x19a66f);continue;}break;}}_0x46f6e2&&logger[_0x358d38(0x1a3)](_0x358d38(0x117)+global_registry['clusterName']+_0x358d38(0x17c));const _0xa5d1f8=await _0x3ae88f['checkAccess']();_0x49f408[_0x358d38(0x172)](printResponse,_0x49f408[_0x358d38(0x162)],_0xa5d1f8);const _0x39ef1e=await _0x49f408[_0x358d38(0x165)](curlRequest);_0x49f408[_0x358d38(0x174)](printResponse,_0x49f408[_0x358d38(0xeb)],_0x39ef1e);const _0x74a3ed=await _0x49f408[_0x358d38(0xfa)](isTlsSupported,_0x49f408[_0x358d38(0xe7)]);_0x49f408['dIpOI'](printResponse,_0x49f408['ogbJA'],_0x74a3ed);const _0x430c50={};_0x430c50[_0x358d38(0x13d)]=_0x49f408[_0x358d38(0xfe)],_0x430c50[_0x358d38(0xb6)]=_0x3341d2;const _0x62dafd={};_0x62dafd[_0x358d38(0x13d)]=_0x49f408['vMeFM'],_0x62dafd[_0x358d38(0xb6)]=_0xa5d1f8;const _0x4fb235={};_0x4fb235[_0x358d38(0x13d)]=_0x49f408[_0x358d38(0x16e)],_0x4fb235[_0x358d38(0xb6)]=_0x39ef1e;const _0x132a4e={};_0x132a4e['header']=_0x49f408[_0x358d38(0x15c)],_0x132a4e[_0x358d38(0xb6)]=_0x74a3ed;const _0xff7dae=[_0x430c50,_0x62dafd,_0x4fb235,_0x132a4e],_0x379402=await _0x49f408[_0x358d38(0xef)](generateReport,_0xff7dae,_0x46f6e2),_0x3801c1=new Date(),_0x1ba0b0=_0x3801c1[_0x358d38(0x118)]()+'_'+_0x49f408['Xifxx'](_0x3801c1['getUTCMonth'](),0x1)+'_'+_0x3801c1[_0x358d38(0x11a)]()+'_'+_0x3801c1['getUTCHours']()+'_'+_0x3801c1[_0x358d38(0xe0)](),_0x5af872='log/report_'+_0x1ba0b0+_0x358d38(0xcb);fs[_0x358d38(0x10a)](_0x5af872,_0x379402,_0x49f408[_0x358d38(0x125)]),logger[_0x358d38(0x1a3)](_0x358d38(0x128)+_0x5af872),process['exit'](0x0);}catch(_0x27a9c4){let _0x4679dc='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x27a9c4+'\x20';logger['error'](_0x4679dc),_0x4679dc+='\x0a'+JSON[_0x358d38(0x182)](_0x27a9c4[_0x358d38(0x195)]),logger[_0x358d38(0x19a)](_0x358d38(0xb7)+_0x27a9c4['stack']);if(_0x1b9590){const _0x4c1a7a={};_0x4c1a7a['type']=WS_EVENTS[_0x358d38(0xc2)],_0x4c1a7a[_0x358d38(0x13f)]=_0x4679dc,webSocketUtils[_0x358d38(0x16f)](_0x1b9590,_0x4c1a7a,_0x49f408['tUDGi'],!![]);}await webSocketUtils[_0x358d38(0x157)](0x7d0);const _0x3f80a6={};_0x3f80a6[_0x358d38(0x105)]=_0x4679dc,await _0x49f408[_0x358d38(0x121)](sendInstrumentationEvent,_0x3ce2e1,_0x49f408[_0x358d38(0x18d)],messageTypes[_0x358d38(0x106)],_0x49f408[_0x358d38(0xb8)],_0x3f80a6,_0x3ce2e1),process[_0x358d38(0x10c)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x33b0(_0x1066d3,_0x40de4c){const _0x4c97a2=a18_0x4c97();return a18_0x33b0=function(_0x33b0d9,_0x72af7d){_0x33b0d9=_0x33b0d9-0x7b;let _0x4f5518=_0x4c97a2[_0x33b0d9];return _0x4f5518;},a18_0x33b0(_0x1066d3,_0x40de4c);}const a18_0xc808d0=a18_0x33b0;(function(_0x59aebe,_0x283bb4){const _0x494c8b=a18_0x33b0,_0x120d80=_0x59aebe();while(!![]){try{const _0x35bf82=-parseInt(_0x494c8b(0x7d))/0x1*(parseInt(_0x494c8b(0x8b))/0x2)+-parseInt(_0x494c8b(0x87))/0x3+parseInt(_0x494c8b(0x7e))/0x4+parseInt(_0x494c8b(0x89))/0x5+-parseInt(_0x494c8b(0x80))/0x6+parseInt(_0x494c8b(0x8d))/0x7+parseInt(_0x494c8b(0x8c))/0x8;if(_0x35bf82===_0x283bb4)break;else _0x120d80['push'](_0x120d80['shift']());}catch(_0x407866){_0x120d80['push'](_0x120d80['shift']());}}}(a18_0x4c97,0xc11d1));function a18_0x4c97(){const _0x4d747d=['handler','start_commands','69822esPcyU','6152996jqacuU','commandDir','4834014gJGDVc','demandCommand','rlVng','start','usage','recommendCommands','command','3783996jULxss','strict','5658605LElJZg','../config/constants','30xYUZcK','8524296kXLBQj','1188719CeaMtn','OvbhK','help'];a18_0x4c97=function(){return _0x4d747d;};return a18_0x4c97();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0xc808d0(0x8a));exports[a18_0xc808d0(0x86)]=a18_0xc808d0(0x83),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x1fc06f){const _0x526e03=a18_0xc808d0,_0x5b1cb7={};_0x5b1cb7[_0x526e03(0x8e)]=_0x526e03(0x7c),_0x5b1cb7[_0x526e03(0x82)]='help';const _0x240f55=_0x5b1cb7;return _0x1fc06f[_0x526e03(0x84)](HELP_HEADER_MESSAGE[_0x526e03(0x83)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x526e03(0x7f)](_0x240f55[_0x526e03(0x8e)])[_0x526e03(0x81)]()[_0x526e03(0x85)]()[_0x526e03(0x88)]()[_0x526e03(0x8f)](_0x240f55[_0x526e03(0x82)]);},exports[a18_0xc808d0(0x7b)]=function(_0x4a8f4f){};
1
+ const a18_0x2e43e9=a18_0x2d95;(function(_0xed131c,_0x3f868d){const _0x4da287=a18_0x2d95,_0xd8abb=_0xed131c();while(!![]){try{const _0x57a4a1=parseInt(_0x4da287(0x1bf))/0x1+parseInt(_0x4da287(0x1d1))/0x2*(parseInt(_0x4da287(0x1c0))/0x3)+parseInt(_0x4da287(0x1cc))/0x4+parseInt(_0x4da287(0x1cd))/0x5*(parseInt(_0x4da287(0x1c1))/0x6)+-parseInt(_0x4da287(0x1c5))/0x7*(parseInt(_0x4da287(0x1d0))/0x8)+-parseInt(_0x4da287(0x1cf))/0x9*(parseInt(_0x4da287(0x1cb))/0xa)+-parseInt(_0x4da287(0x1d6))/0xb;if(_0x57a4a1===_0x3f868d)break;else _0xd8abb['push'](_0xd8abb['shift']());}catch(_0x338242){_0xd8abb['push'](_0xd8abb['shift']());}}}(a18_0x4e26,0xe455a));function a18_0x2d95(_0x1062a2,_0x234734){const _0x4e26c5=a18_0x4e26();return a18_0x2d95=function(_0x2d9508,_0x5dbc68){_0x2d9508=_0x2d9508-0x1bc;let _0x5daee9=_0x4e26c5[_0x2d9508];return _0x5daee9;},a18_0x2d95(_0x1062a2,_0x234734);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2e43e9(0x1d2));exports[a18_0x2e43e9(0x1c9)]=a18_0x2e43e9(0x1d4),exports[a18_0x2e43e9(0x1c8)]=a18_0x2e43e9(0x1bc),exports[a18_0x2e43e9(0x1c3)]=function(_0x2687b3){const _0x7d7e9a=a18_0x2e43e9,_0x6783ea={};_0x6783ea[_0x7d7e9a(0x1c4)]='start_commands',_0x6783ea[_0x7d7e9a(0x1c7)]='help';const _0x46fbad=_0x6783ea;return _0x2687b3[_0x7d7e9a(0x1ca)](HELP_HEADER_MESSAGE[_0x7d7e9a(0x1d4)])[_0x7d7e9a(0x1be)](HELP_FOOTER_MESSAGE)[_0x7d7e9a(0x1d3)](_0x46fbad[_0x7d7e9a(0x1c4)])[_0x7d7e9a(0x1c2)]()[_0x7d7e9a(0x1ce)]()[_0x7d7e9a(0x1bd)]()[_0x7d7e9a(0x1c6)](_0x46fbad[_0x7d7e9a(0x1c7)]);},exports[a18_0x2e43e9(0x1d5)]=function(_0x128f1c){};function a18_0x4e26(){const _0x4491eb=['TqsFA','7vFvVfc','help','zGLQE','desc','command','usage','202170LQPlod','3898888rLKTVR','432720qmtrPA','recommendCommands','297yFPYNn','587992eWgCTM','245266TvtWGY','../config/constants','commandDir','start','handler','22989054nIRMcN','Start\x20an\x20existing\x20Automation\x20grid.','strict','epilogue','129621FDjfXv','27hUBOUl','108SrREFD','demandCommand','builder'];a18_0x4e26=function(){return _0x4491eb;};return a18_0x4e26();}
@@ -1 +1 @@
1
- const a19_0x3e0af0=a19_0x3ae9;function a19_0x3ae9(_0x16b88c,_0x27502f){const _0x5935ca=a19_0x5935();return a19_0x3ae9=function(_0x3ae92c,_0x14e585){_0x3ae92c=_0x3ae92c-0x87;let _0x2f8c1c=_0x5935ca[_0x3ae92c];return _0x2f8c1c;},a19_0x3ae9(_0x16b88c,_0x27502f);}(function(_0x5bd2d8,_0x4168f5){const _0x183ffe=a19_0x3ae9,_0x41b213=_0x5bd2d8();while(!![]){try{const _0x1fddfe=-parseInt(_0x183ffe(0xb4))/0x1+-parseInt(_0x183ffe(0xc5))/0x2+parseInt(_0x183ffe(0xce))/0x3*(parseInt(_0x183ffe(0xd9))/0x4)+-parseInt(_0x183ffe(0xd4))/0x5*(parseInt(_0x183ffe(0x8b))/0x6)+-parseInt(_0x183ffe(0xc0))/0x7+parseInt(_0x183ffe(0x94))/0x8+parseInt(_0x183ffe(0xb6))/0x9;if(_0x1fddfe===_0x4168f5)break;else _0x41b213['push'](_0x41b213['shift']());}catch(_0x1ffc3f){_0x41b213['push'](_0x41b213['shift']());}}}(a19_0x5935,0xe68aa));function a19_0x5935(){const _0x260f7d=['Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','body','NLfEd','2514FetDNy','gGtlB','command','cloudProvider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','argv','options','EggmL','FCtcF','12881952sYAZox','info','INFO','../../utils/createk8sClient','tHghu','handler','Skip\x20insecure\x20cert\x20verification.','type','invalid-grid-id','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','DOdzZ','gridId','debug','reconnecting-websocket','stack','lAQYU','kgvvC','replace','help','epilogue','description','kankO','default','fWpQb','exit','bstackUsername','user','ERROR','existsSync','<UsernamePlaceholder>','message','clusterRegion','747979cBCJid','stringify','26095941BMorDU','parse','OdYZm','connectionTimeout','<PasswordPlaceholder>','Adding\x20Websocket\x20listeners','nZVwT','desc','server-error','password','5404924zGlwtO','kNqvd','start','../../utils/webSocketUtils','IpKdS','1776390WVjgQM','clusterName','Browserstack','init-not-called','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','builder','mVLhZ','usage','lWQXR','7494mEwzrs','Start\x20an\x20existing\x20Automation\x20grid.','MThcR','fDrZe','ZDDNf','../../cloudproviders/utils','15985icWiCW','grid','skipTlsCertVerify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','name','292ecsSBf','grid-id','../../utils/instrumentationUtils','username','error','../../utils/utilityMethods','VDNbT','../../config/constants','vKfgl','bstackAccesskey'];a19_0x5935=function(){return _0x260f7d;};return a19_0x5935();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3e0af0(0xa1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3e0af0(0xe0)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x3e0af0(0xde)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x3e0af0(0xdb)),webSocketUtils=require(a19_0x3e0af0(0xc3)),{createK8sClient}=require(a19_0x3e0af0(0x97)),{getCloudProviderObject}=require(a19_0x3e0af0(0xd3));exports[a19_0x3e0af0(0x8d)]=a19_0x3e0af0(0xd5),exports[a19_0x3e0af0(0xbd)]=a19_0x3e0af0(0xcf),exports[a19_0x3e0af0(0xca)]=function(_0x4524e2){const _0x507ad1=a19_0x3e0af0,_0x2c6438={};_0x2c6438[_0x507ad1(0xab)]=_0x507ad1(0xc9),_0x2c6438[_0x507ad1(0xc4)]='string',_0x2c6438[_0x507ad1(0xa3)]=_0x507ad1(0x9a),_0x2c6438['nZVwT']='boolean',_0x2c6438['kankO']=_0x507ad1(0xa6);const _0x2ed813=_0x2c6438,_0x4fd566={};_0x4fd566[_0x507ad1(0xa8)]=_0x2ed813['fWpQb'],_0x4fd566['type']=_0x2ed813['IpKdS'];const _0x463089={};_0x463089['description']=_0x2ed813[_0x507ad1(0xa3)],_0x463089[_0x507ad1(0x9b)]=_0x2ed813[_0x507ad1(0xbc)],_0x463089[_0x507ad1(0xaa)]=![];const _0x44913d={};return _0x44913d[_0x507ad1(0xda)]=_0x4fd566,_0x44913d['skip-tls-cert-verify']=_0x463089,_0x4524e2[_0x507ad1(0xcc)](HELP_HEADER_MESSAGE[_0x507ad1(0xc2)])[_0x507ad1(0xa7)](HELP_FOOTER_MESSAGE)[_0x507ad1(0x91)](_0x44913d)[_0x507ad1(0xa6)](_0x2ed813[_0x507ad1(0xa9)])[_0x507ad1(0x90)];},exports[a19_0x3e0af0(0x99)]=async function(_0x5184c7){const _0xcf404c=a19_0x3e0af0,_0x1f0c62={'vKfgl':_0xcf404c(0x88),'EggmL':function(_0x540923){return _0x540923();},'vWyso':_0xcf404c(0x8f),'fDrZe':function(_0x53f529,_0x45d14a,_0x1ac73f,_0x38034a,_0x1f8c1c,_0x1e2857,_0x36d972){return _0x53f529(_0x45d14a,_0x1ac73f,_0x38034a,_0x1f8c1c,_0x1e2857,_0x36d972);},'OdYZm':'start-grid-called','pPjPc':_0xcf404c(0xc8),'lWQXR':_0xcf404c(0xb1),'MThcR':_0xcf404c(0xba),'tHghu':_0xcf404c(0xbb),'CbftY':function(_0x456284,_0x2afe33,_0x3a6a28,_0x4abd33){return _0x456284(_0x2afe33,_0x3a6a28,_0x4abd33);},'VDNbT':function(_0x4549d3,_0x510e77,_0x39f052,_0x5c4aca,_0x45ca99,_0x599d8c,_0x433410){return _0x4549d3(_0x510e77,_0x39f052,_0x5c4aca,_0x45ca99,_0x599d8c,_0x433410);},'kNqvd':function(_0x5e312e,_0x49a695,_0x247ed3){return _0x5e312e(_0x49a695,_0x247ed3);},'FCtcF':'Grid\x20started','kgvvC':function(_0x282a1a,_0xb95dcb){return _0x282a1a===_0xb95dcb;},'mVLhZ':_0xcf404c(0xd7),'DOdzZ':'unauthorised','NLfEd':function(_0x24e243,_0x4ada3d,_0x462e96,_0x53a8fa,_0x51ac16,_0x3be2c1,_0x13da83){return _0x24e243(_0x4ada3d,_0x462e96,_0x53a8fa,_0x51ac16,_0x3be2c1,_0x13da83);},'gGtlB':_0xcf404c(0x9c),'ZDDNf':_0xcf404c(0xbe)};let _0x5ba888;try{!_0x5184c7['gridId']&&(logger[_0xcf404c(0xdd)](_0x1f0c62[_0xcf404c(0xe1)]),process[_0xcf404c(0xac)](0x1));!fs[_0xcf404c(0xb0)](_0x1f0c62[_0xcf404c(0x92)](getCredentialsPath))&&(logger[_0xcf404c(0xdd)](_0x1f0c62['vWyso']),await _0x1f0c62[_0xcf404c(0xd1)](sendInstrumentationEvent,_0x5184c7,_0x1f0c62['OdYZm'],messageTypes[_0xcf404c(0xaf)],_0x1f0c62['pPjPc'],null,_0x5184c7),process[_0xcf404c(0xac)](0x1));logger[_0xcf404c(0x95)]('Starting\x20grid\x20'+_0x5184c7['gridId']),await _0x1f0c62[_0xcf404c(0xd1)](sendInstrumentationEvent,_0x5184c7,_0x1f0c62[_0xcf404c(0xb8)],messageTypes[_0xcf404c(0x96)],null,null,_0x5184c7);const _0x733e93=JSON['parse'](fs['readFileSync'](_0x1f0c62['EggmL'](getCredentialsPath)));global_registry[_0xcf404c(0xad)]=_0x733e93['Browserstack'][_0xcf404c(0xdc)],global_registry[_0xcf404c(0x87)]=_0x733e93[_0xcf404c(0xc7)][_0xcf404c(0xbf)];const _0x48ab60=WS_ENDPOINT[_0xcf404c(0xa5)](_0x1f0c62[_0xcf404c(0xcd)],_0x733e93['Browserstack'][_0xcf404c(0xdc)])['replace'](_0x1f0c62[_0xcf404c(0xd0)],_0x733e93['Browserstack'][_0xcf404c(0xbf)]),_0x1261da={};_0x1261da['WebSocket']=ws,_0x1261da[_0xcf404c(0xb9)]=0x36ee80,_0x5ba888=new ReconnectingWebSocket(_0x48ab60,[],_0x1261da),logger[_0xcf404c(0xa0)](_0x1f0c62[_0xcf404c(0x98)]),webSocketUtils['addListeners'](_0x5ba888,_0x5184c7[_0xcf404c(0xae)],_0x5184c7[_0xcf404c(0xbf)]);const [_0x2c848e,_0x49eaf3]=await _0x1f0c62['CbftY'](getGridDetails,_0x733e93[_0xcf404c(0xc7)]['username'],_0x733e93['Browserstack']['password'],_0x5184c7[_0xcf404c(0x9f)]);if(_0x49eaf3){const _0x251dd7=_0x49eaf3['info'];global_registry[_0xcf404c(0x8e)]=_0x251dd7[_0xcf404c(0x8e)],global_registry[_0xcf404c(0xb3)]=_0x251dd7['region'],global_registry[_0xcf404c(0xc6)]=_0x251dd7[_0xcf404c(0xc6)];const _0x51c3df=await _0x1f0c62[_0xcf404c(0xdf)](getCloudProviderObject,_0x251dd7['cloudProvider'],_0x251dd7[_0xcf404c(0xc6)],_0x251dd7[_0xcf404c(0xd8)],_0x5ba888,webSocketUtils,_0x5184c7),[_0x51921f,_0x3a3185,_0x30f7c0,_0x514639,_0x4b09fd,_0x228a22]=await _0x1f0c62[_0xcf404c(0xc1)](createK8sClient,_0x51c3df,_0x5184c7[_0xcf404c(0xd6)]);await _0x1f0c62[_0xcf404c(0xc1)](scaleUpHubDeployment,_0x3a3185,_0x251dd7[_0xcf404c(0xd8)]),logger[_0xcf404c(0x95)](_0x1f0c62[_0xcf404c(0x93)]),process[_0xcf404c(0xac)](0x0);}_0x1f0c62[_0xcf404c(0xa4)](_0x2c848e['statusCode'],0x191)&&(logger[_0xcf404c(0xdd)](_0x1f0c62[_0xcf404c(0xcb)]),await _0x1f0c62[_0xcf404c(0xd1)](sendInstrumentationEvent,_0x5184c7,_0x1f0c62[_0xcf404c(0xb8)],messageTypes[_0xcf404c(0xaf)],_0x1f0c62[_0xcf404c(0x9e)],null,_0x5184c7),process[_0xcf404c(0xac)](0x1)),_0x1f0c62[_0xcf404c(0xa4)](_0x2c848e['statusCode'],0x190)&&(logger[_0xcf404c(0xdd)](JSON[_0xcf404c(0xb7)](_0x2c848e[_0xcf404c(0x89)])[_0xcf404c(0xb2)]),await _0x1f0c62[_0xcf404c(0x8a)](sendInstrumentationEvent,_0x5184c7,_0x1f0c62[_0xcf404c(0xb8)],messageTypes[_0xcf404c(0xaf)],_0x1f0c62[_0xcf404c(0x8c)],null,_0x5184c7),process[_0xcf404c(0xac)](0x1)),logger[_0xcf404c(0xdd)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2c848e)),await _0x1f0c62[_0xcf404c(0xdf)](sendInstrumentationEvent,_0x5184c7,_0x1f0c62[_0xcf404c(0xb8)],messageTypes[_0xcf404c(0xaf)],_0x1f0c62[_0xcf404c(0xd2)],_0x2c848e,_0x5184c7),process[_0xcf404c(0xac)](0x1);}catch(_0x150c85){const _0x50ed2e=_0xcf404c(0x9d)+_0x150c85+'\x20\x0a'+JSON[_0xcf404c(0xb5)](_0x150c85[_0xcf404c(0xa2)])+'\x20';logger[_0xcf404c(0xdd)](_0x50ed2e),process[_0xcf404c(0xac)](0x1);}};
1
+ const a19_0x3763b0=a19_0x3205;(function(_0x23f122,_0x3be824){const _0x144b24=a19_0x3205,_0x2fd7a8=_0x23f122();while(!![]){try{const _0x5bd5b0=parseInt(_0x144b24(0x10c))/0x1+-parseInt(_0x144b24(0x152))/0x2*(-parseInt(_0x144b24(0x119))/0x3)+parseInt(_0x144b24(0x12c))/0x4*(-parseInt(_0x144b24(0x132))/0x5)+-parseInt(_0x144b24(0x15f))/0x6*(-parseInt(_0x144b24(0x11a))/0x7)+-parseInt(_0x144b24(0x141))/0x8+-parseInt(_0x144b24(0x12a))/0x9+parseInt(_0x144b24(0x11c))/0xa*(parseInt(_0x144b24(0x12b))/0xb);if(_0x5bd5b0===_0x3be824)break;else _0x2fd7a8['push'](_0x2fd7a8['shift']());}catch(_0x28fdc3){_0x2fd7a8['push'](_0x2fd7a8['shift']());}}}(a19_0x27dc,0x36a2d));function a19_0x3205(_0x2e90d9,_0x522b60){const _0x27dc8e=a19_0x27dc();return a19_0x3205=function(_0x320532,_0x4da5be){_0x320532=_0x320532-0x10c;let _0x53e360=_0x27dc8e[_0x320532];return _0x53e360;},a19_0x3205(_0x2e90d9,_0x522b60);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3763b0(0x11f)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3763b0(0x10e)),{logger}=require(a19_0x3763b0(0x12d)),{getCredentialsPath,getGridDetails}=require(a19_0x3763b0(0x129)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x3763b0(0x14f)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x3763b0(0x112)),{getCloudProviderObject}=require(a19_0x3763b0(0x114));function a19_0x27dc(){const _0x24f0f0=['cloudProvider','../../config/constants','region','argv','info','../../utils/createk8sClient','invalid-grid-id','../../cloudproviders/utils','exit','handler','vnuwf','eZqNA','2790UduXfv','63VWcaCm','description','21680PXWiHM','clusterRegion','replace','reconnecting-websocket','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','connectionTimeout','Raqom','mUGaR','unauthorised','thOoI','string','readFileSync','RjDcr','../../utils/utilityMethods','2116620YNpcfm','3333iNPlOp','4axOCYy','../../config/logger','name','init-not-called','Browserstack','statusCode','1065195jQKVyn','desc','asHkD','KwkhO','bstackAccesskey','sRLRa','WRGoq','stringify','fiVmf','boolean','help','command','BZdho','Starting\x20grid\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','3299368XrpYbh','QOymx','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','username','QvYzr','usage','JNZZa','parse','type','existsSync','password','Ffscc','../../utils/instrumentationUtils','MRJoI','ERROR','108JoRXMt','start','INFO','Start\x20an\x20existing\x20Automation\x20grid.','Tbfex','debug','QXZkC','skip-tls-cert-verify','default','grid','clusterName','server-error','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','10158uJxHIC','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','gridId','message','skipTlsCertVerify','Grid\x20started','362068NxFjhY'];a19_0x27dc=function(){return _0x24f0f0;};return a19_0x27dc();}exports[a19_0x3763b0(0x13d)]=a19_0x3763b0(0x15b),exports[a19_0x3763b0(0x133)]=a19_0x3763b0(0x155),exports['builder']=function(_0x5cf732){const _0x1544c1=a19_0x3763b0,_0x575de7={};_0x575de7['LjRsa']=_0x1544c1(0x145),_0x575de7[_0x1544c1(0x118)]=_0x1544c1(0x126),_0x575de7[_0x1544c1(0x135)]='Skip\x20insecure\x20cert\x20verification.',_0x575de7[_0x1544c1(0x125)]=_0x1544c1(0x13b),_0x575de7['johHf']=_0x1544c1(0x13c);const _0x26874c=_0x575de7,_0x13a628={};_0x13a628[_0x1544c1(0x11b)]=_0x26874c['LjRsa'],_0x13a628[_0x1544c1(0x14b)]=_0x26874c[_0x1544c1(0x118)];const _0x90a581={};_0x90a581[_0x1544c1(0x11b)]=_0x26874c[_0x1544c1(0x135)],_0x90a581[_0x1544c1(0x14b)]=_0x26874c[_0x1544c1(0x125)],_0x90a581[_0x1544c1(0x15a)]=![];const _0x4abf4b={};return _0x4abf4b['grid-id']=_0x13a628,_0x4abf4b[_0x1544c1(0x159)]=_0x90a581,_0x5cf732[_0x1544c1(0x148)](HELP_HEADER_MESSAGE[_0x1544c1(0x153)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4abf4b)[_0x1544c1(0x13c)](_0x26874c['johHf'])[_0x1544c1(0x110)];},exports[a19_0x3763b0(0x116)]=async function(_0x2f62f1){const _0x2d2b49=a19_0x3763b0,_0xad9d46={'JuPXU':_0x2d2b49(0x160),'QXZkC':function(_0x5915f3){return _0x5915f3();},'MRJoI':_0x2d2b49(0x120),'fiVmf':function(_0x39933c,_0x235902,_0x562cb2,_0x2bd000,_0x39b301,_0x34cbf5,_0x553144){return _0x39933c(_0x235902,_0x562cb2,_0x2bd000,_0x39b301,_0x34cbf5,_0x553144);},'vnuwf':'start-grid-called','BZdho':_0x2d2b49(0x12f),'QvYzr':function(_0x13514a,_0x579ae1,_0x1c233d,_0x5048ca,_0x1f3214,_0x1f7ff9,_0xb76199){return _0x13514a(_0x579ae1,_0x1c233d,_0x5048ca,_0x1f3214,_0x1f7ff9,_0xb76199);},'RxJVn':'<UsernamePlaceholder>','RjDcr':'<PasswordPlaceholder>','mUGaR':'Adding\x20Websocket\x20listeners','asHkD':function(_0x403f47,_0x1f058f,_0x1e8144,_0x46d21e){return _0x403f47(_0x1f058f,_0x1e8144,_0x46d21e);},'QOymx':function(_0x3c5175,_0x4d41ea,_0x59ec05){return _0x3c5175(_0x4d41ea,_0x59ec05);},'Ffscc':_0x2d2b49(0x164),'FHnWX':function(_0x1faff9,_0x421b08){return _0x1faff9===_0x421b08;},'sRLRa':_0x2d2b49(0x144),'WRGoq':function(_0x33c8c5,_0x3ab94c,_0x52390f,_0x5f48c4,_0x215764,_0x178210,_0x309508){return _0x33c8c5(_0x3ab94c,_0x52390f,_0x5f48c4,_0x215764,_0x178210,_0x309508);},'rgZGm':_0x2d2b49(0x124),'Raqom':function(_0x19bf8a,_0x181a56){return _0x19bf8a===_0x181a56;},'Tbfex':_0x2d2b49(0x113),'JNZZa':_0x2d2b49(0x15d)};let _0x20da17;try{!_0x2f62f1[_0x2d2b49(0x161)]&&(logger[_0x2d2b49(0x143)](_0xad9d46['JuPXU']),process[_0x2d2b49(0x115)](0x1));!fs[_0x2d2b49(0x14c)](_0xad9d46[_0x2d2b49(0x158)](getCredentialsPath))&&(logger[_0x2d2b49(0x143)](_0xad9d46[_0x2d2b49(0x150)]),await _0xad9d46[_0x2d2b49(0x13a)](sendInstrumentationEvent,_0x2f62f1,_0xad9d46['vnuwf'],messageTypes[_0x2d2b49(0x151)],_0xad9d46[_0x2d2b49(0x13e)],null,_0x2f62f1),process[_0x2d2b49(0x115)](0x1));logger['info'](_0x2d2b49(0x13f)+_0x2f62f1['gridId']),await _0xad9d46['QvYzr'](sendInstrumentationEvent,_0x2f62f1,_0xad9d46['vnuwf'],messageTypes[_0x2d2b49(0x154)],null,null,_0x2f62f1);const _0x5bd511=JSON[_0x2d2b49(0x14a)](fs[_0x2d2b49(0x127)](_0xad9d46['QXZkC'](getCredentialsPath)));global_registry['bstackUsername']=_0x5bd511[_0x2d2b49(0x130)][_0x2d2b49(0x146)],global_registry[_0x2d2b49(0x136)]=_0x5bd511['Browserstack'][_0x2d2b49(0x14d)];const _0x4d22e8=WS_ENDPOINT[_0x2d2b49(0x11e)](_0xad9d46['RxJVn'],_0x5bd511['Browserstack'][_0x2d2b49(0x146)])[_0x2d2b49(0x11e)](_0xad9d46[_0x2d2b49(0x128)],_0x5bd511['Browserstack'][_0x2d2b49(0x14d)]),_0xcfb330={};_0xcfb330['WebSocket']=ws,_0xcfb330[_0x2d2b49(0x121)]=0x36ee80,_0x20da17=new ReconnectingWebSocket(_0x4d22e8,[],_0xcfb330),logger[_0x2d2b49(0x157)](_0xad9d46[_0x2d2b49(0x123)]),webSocketUtils['addListeners'](_0x20da17,_0x2f62f1['user'],_0x2f62f1[_0x2d2b49(0x14d)]);const [_0x1a34f2,_0x18112c]=await _0xad9d46[_0x2d2b49(0x134)](getGridDetails,_0x5bd511[_0x2d2b49(0x130)]['username'],_0x5bd511['Browserstack'][_0x2d2b49(0x14d)],_0x2f62f1[_0x2d2b49(0x161)]);if(_0x18112c){const _0x1d76c4=_0x18112c['info'];global_registry[_0x2d2b49(0x10d)]=_0x1d76c4[_0x2d2b49(0x10d)],global_registry[_0x2d2b49(0x11d)]=_0x1d76c4[_0x2d2b49(0x10f)],global_registry[_0x2d2b49(0x15c)]=_0x1d76c4[_0x2d2b49(0x15c)];const _0x5e76aa=await _0xad9d46[_0x2d2b49(0x147)](getCloudProviderObject,_0x1d76c4[_0x2d2b49(0x10d)],_0x1d76c4[_0x2d2b49(0x15c)],_0x1d76c4[_0x2d2b49(0x12e)],_0x20da17,webSocketUtils,_0x2f62f1),[_0x48ca2e,_0x146315,_0x543e25,_0x4ff1d0,_0x1767d6,_0x5bd684]=await _0xad9d46['QOymx'](createK8sClient,_0x5e76aa,_0x2f62f1[_0x2d2b49(0x163)]);await _0xad9d46[_0x2d2b49(0x142)](scaleUpHubDeployment,_0x146315,_0x1d76c4[_0x2d2b49(0x12e)]),logger[_0x2d2b49(0x111)](_0xad9d46[_0x2d2b49(0x14e)]),process['exit'](0x0);}_0xad9d46['FHnWX'](_0x1a34f2[_0x2d2b49(0x131)],0x191)&&(logger[_0x2d2b49(0x143)](_0xad9d46[_0x2d2b49(0x137)]),await _0xad9d46[_0x2d2b49(0x138)](sendInstrumentationEvent,_0x2f62f1,_0xad9d46[_0x2d2b49(0x117)],messageTypes[_0x2d2b49(0x151)],_0xad9d46['rgZGm'],null,_0x2f62f1),process[_0x2d2b49(0x115)](0x1)),_0xad9d46[_0x2d2b49(0x122)](_0x1a34f2[_0x2d2b49(0x131)],0x190)&&(logger[_0x2d2b49(0x143)](JSON[_0x2d2b49(0x14a)](_0x1a34f2['body'])[_0x2d2b49(0x162)]),await _0xad9d46['QvYzr'](sendInstrumentationEvent,_0x2f62f1,_0xad9d46['vnuwf'],messageTypes['ERROR'],_0xad9d46[_0x2d2b49(0x156)],null,_0x2f62f1),process[_0x2d2b49(0x115)](0x1)),logger[_0x2d2b49(0x143)](_0x2d2b49(0x140)+JSON[_0x2d2b49(0x139)](_0x1a34f2)),await _0xad9d46[_0x2d2b49(0x13a)](sendInstrumentationEvent,_0x2f62f1,_0xad9d46['vnuwf'],messageTypes[_0x2d2b49(0x151)],_0xad9d46[_0x2d2b49(0x149)],_0x1a34f2,_0x2f62f1),process[_0x2d2b49(0x115)](0x1);}catch(_0x52837d){const _0x161152=_0x2d2b49(0x15e)+_0x52837d+'\x20\x0a'+JSON[_0x2d2b49(0x139)](_0x52837d['stack'])+'\x20';logger[_0x2d2b49(0x143)](_0x161152),process[_0x2d2b49(0x115)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x3403(){const _0x27b13e=['3369390lhZUyl','uyiVN','3612wVCOjk','../config/constants','usage','help','handler','demandCommand','409405eROHCK','stop_commands','5976Vocgjc','1122EeHJHs','strict','builder','drAvw','desc','11rtRDOA','Stop\x20a\x20running\x20Automation\x20grid.','8MeoEAZ','56106weSGjH','stop','864042WpXvuY','1680885JtxNKF','1906fZUhgs'];a20_0x3403=function(){return _0x27b13e;};return a20_0x3403();}function a20_0x56f0(_0xa967a2,_0x3a49ea){const _0x340326=a20_0x3403();return a20_0x56f0=function(_0x56f08c,_0xf78cea){_0x56f08c=_0x56f08c-0x93;let _0x57d0c9=_0x340326[_0x56f08c];return _0x57d0c9;},a20_0x56f0(_0xa967a2,_0x3a49ea);}const a20_0x3b24e2=a20_0x56f0;(function(_0x47f4aa,_0x171869){const _0x29df62=a20_0x56f0,_0x2696f1=_0x47f4aa();while(!![]){try{const _0x3922a1=parseInt(_0x29df62(0x9d))/0x1+parseInt(_0x29df62(0xa1))/0x2*(parseInt(_0x29df62(0x95))/0x3)+-parseInt(_0x29df62(0x9c))/0x4*(-parseInt(_0x29df62(0xaa))/0x5)+-parseInt(_0x29df62(0x9f))/0x6+parseInt(_0x29df62(0xa4))/0x7*(-parseInt(_0x29df62(0x94))/0x8)+-parseInt(_0x29df62(0xa0))/0x9+-parseInt(_0x29df62(0xa2))/0xa*(-parseInt(_0x29df62(0x9a))/0xb);if(_0x3922a1===_0x171869)break;else _0x2696f1['push'](_0x2696f1['shift']());}catch(_0x2839d8){_0x2696f1['push'](_0x2696f1['shift']());}}}(a20_0x3403,0x3018d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x3b24e2(0xa5));exports['command']=a20_0x3b24e2(0x9e),exports[a20_0x3b24e2(0x99)]=a20_0x3b24e2(0x9b),exports[a20_0x3b24e2(0x97)]=function(_0x2e2357){const _0x5e9c5e=a20_0x3b24e2,_0x169dbf={};_0x169dbf[_0x5e9c5e(0xa3)]=_0x5e9c5e(0x93),_0x169dbf[_0x5e9c5e(0x98)]=_0x5e9c5e(0xa7);const _0x162631=_0x169dbf;return _0x2e2357[_0x5e9c5e(0xa6)](HELP_HEADER_MESSAGE[_0x5e9c5e(0x9e)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x162631['uyiVN'])[_0x5e9c5e(0xa9)]()['recommendCommands']()[_0x5e9c5e(0x96)]()['help'](_0x162631[_0x5e9c5e(0x98)]);},exports[a20_0x3b24e2(0xa8)]=function(_0x5d9dd1){};
1
+ const a20_0x553ff8=a20_0x25a6;function a20_0x25a6(_0x414f8c,_0x4984ee){const _0x47e3dc=a20_0x47e3();return a20_0x25a6=function(_0x25a673,_0x58c4f7){_0x25a673=_0x25a673-0x12d;let _0x5e4074=_0x47e3dc[_0x25a673];return _0x5e4074;},a20_0x25a6(_0x414f8c,_0x4984ee);}function a20_0x47e3(){const _0x1166b1=['builder','demandCommand','commandDir','6uoDJbb','740641ZihqLN','recommendCommands','4IsRWAn','2246652SbnWon','gNwoY','326410JtREgs','2564380ucSTto','Stop\x20a\x20running\x20Automation\x20grid.','handler','strict','command','stop_commands','desc','stop','112KifWUo','21985970PQgJhI','usage','epilogue','11DGpUEm','TYHom','598655ETjJqx','943236yieITP','../config/constants','help'];a20_0x47e3=function(){return _0x1166b1;};return a20_0x47e3();}(function(_0x17624d,_0x3a3a11){const _0x64d883=a20_0x25a6,_0xe111cb=_0x17624d();while(!![]){try{const _0x1b9cd4=parseInt(_0x64d883(0x13c))/0x1*(-parseInt(_0x64d883(0x13e))/0x2)+parseInt(_0x64d883(0x13f))/0x3+parseInt(_0x64d883(0x142))/0x4+parseInt(_0x64d883(0x134))/0x5+parseInt(_0x64d883(0x13b))/0x6*(parseInt(_0x64d883(0x141))/0x7)+parseInt(_0x64d883(0x12e))/0x8*(-parseInt(_0x64d883(0x135))/0x9)+parseInt(_0x64d883(0x12f))/0xa*(parseInt(_0x64d883(0x132))/0xb);if(_0x1b9cd4===_0x3a3a11)break;else _0xe111cb['push'](_0xe111cb['shift']());}catch(_0x24951d){_0xe111cb['push'](_0xe111cb['shift']());}}}(a20_0x47e3,0xc4dff));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x553ff8(0x136));exports[a20_0x553ff8(0x146)]=a20_0x553ff8(0x12d),exports[a20_0x553ff8(0x148)]=a20_0x553ff8(0x143),exports[a20_0x553ff8(0x138)]=function(_0x40c6ed){const _0x5b1bcc=a20_0x553ff8,_0x289754={};_0x289754[_0x5b1bcc(0x140)]=_0x5b1bcc(0x147),_0x289754[_0x5b1bcc(0x133)]=_0x5b1bcc(0x137);const _0x4ea647=_0x289754;return _0x40c6ed[_0x5b1bcc(0x130)](HELP_HEADER_MESSAGE['stop'])[_0x5b1bcc(0x131)](HELP_FOOTER_MESSAGE)[_0x5b1bcc(0x13a)](_0x4ea647[_0x5b1bcc(0x140)])[_0x5b1bcc(0x139)]()[_0x5b1bcc(0x13d)]()[_0x5b1bcc(0x145)]()[_0x5b1bcc(0x137)](_0x4ea647[_0x5b1bcc(0x133)]);},exports[a20_0x553ff8(0x144)]=function(_0x1e9442){};
@@ -1 +1 @@
1
- const a21_0x295e99=a21_0x342d;function a21_0x2202(){const _0x47d3e4=['qvCLt','argv','<PasswordPlaceholder>','server-error','../../utils/utilityMethods','6fnYGFT','info','wAliq','default','clusterName','unauthorised','replace','grid','../../utils/createk8sClient','init-not-called','cloudProvider','../../cloudproviders/utils','qMBih','ERROR','AyXXG','Stop\x20a\x20running\x20Automation\x20grid.','2767315LnFSKr','110QSJmta','stack','command','description','JBQLC','cAeZp','fyybO','gridId','../../utils/gridComponents','user','ecHWK','region','usage','stringify','9GbwQJs','wTWam','boolean','7317426hBiIQl','2197400XtMJpF','epilogue','Stopping\x20grid\x20','WebSocket','password','handler','debug','125329HTRiDM','<UsernamePlaceholder>','error','PXiGf','grid-id','reconnecting-websocket','WLtKW','iYbCH','jkRSn','bstackAccesskey','desc','bstackUsername','4XOjMFW','vQtrT','readFileSync','body','Skip\x20insecure\x20cert\x20verification.','Grid\x20stoppped.','type','username','existsSync','7614648QWHGod','1948125fCaRiW','../../utils/instrumentationUtils','exit','skip-tls-cert-verify','grZSR','builder','invalid-grid-id','../../config/logger','1832866YZKqYy','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','aDRwf','Browserstack','hmIfJ','addListeners','name','CRCvI','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','statusCode','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','lNHNR','FPhmS','help'];a21_0x2202=function(){return _0x47d3e4;};return a21_0x2202();}(function(_0x3a1765,_0x4b70fe){const _0xc9e78d=a21_0x342d,_0x529a2b=_0x3a1765();while(!![]){try{const _0x37f3de=parseInt(_0xc9e78d(0x125))/0x1*(-parseInt(_0xc9e78d(0xfb))/0x2)+-parseInt(_0xc9e78d(0x13b))/0x3+parseInt(_0xc9e78d(0x131))/0x4*(-parseInt(_0xc9e78d(0x10b))/0x5)+-parseInt(_0xc9e78d(0x11d))/0x6+parseInt(_0xc9e78d(0x143))/0x7+-parseInt(_0xc9e78d(0x13a))/0x8*(-parseInt(_0xc9e78d(0x11a))/0x9)+parseInt(_0xc9e78d(0x11e))/0xa*(parseInt(_0xc9e78d(0x10c))/0xb);if(_0x37f3de===_0x4b70fe)break;else _0x529a2b['push'](_0x529a2b['shift']());}catch(_0x41ec15){_0x529a2b['push'](_0x529a2b['shift']());}}}(a21_0x2202,0x95941));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x295e99(0x12a)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x295e99(0x142)),{getCredentialsPath,getGridDetails}=require(a21_0x295e99(0xfa)),{scaleDownHubDeployment}=require(a21_0x295e99(0x114)),{sendInstrumentationEvent}=require(a21_0x295e99(0x13c)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x295e99(0x103)),{getCloudProviderObject}=require(a21_0x295e99(0x106));function a21_0x342d(_0x62924b,_0x224a1e){const _0x2202da=a21_0x2202();return a21_0x342d=function(_0x342df2,_0x448d04){_0x342df2=_0x342df2-0xec;let _0x1b0bc7=_0x2202da[_0x342df2];return _0x1b0bc7;},a21_0x342d(_0x62924b,_0x224a1e);}exports[a21_0x295e99(0x10e)]=a21_0x295e99(0x102),exports[a21_0x295e99(0x12f)]=a21_0x295e99(0x10a),exports[a21_0x295e99(0x140)]=function(_0x497c88){const _0x21c3cf=a21_0x295e99,_0x2f0757={};_0x2f0757[_0x21c3cf(0x13f)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x2f0757[_0x21c3cf(0x112)]='string',_0x2f0757[_0x21c3cf(0x128)]=_0x21c3cf(0x135),_0x2f0757[_0x21c3cf(0x111)]=_0x21c3cf(0x11c),_0x2f0757[_0x21c3cf(0xec)]=_0x21c3cf(0xf5);const _0x19f55e=_0x2f0757,_0x47e6af={};_0x47e6af[_0x21c3cf(0x10f)]=_0x19f55e[_0x21c3cf(0x13f)],_0x47e6af['type']=_0x19f55e['fyybO'];const _0x2118dd={};_0x2118dd[_0x21c3cf(0x10f)]=_0x19f55e[_0x21c3cf(0x128)],_0x2118dd[_0x21c3cf(0x137)]=_0x19f55e[_0x21c3cf(0x111)],_0x2118dd[_0x21c3cf(0xfe)]=![];const _0x3b7b10={};return _0x3b7b10[_0x21c3cf(0x129)]=_0x47e6af,_0x3b7b10[_0x21c3cf(0x13e)]=_0x2118dd,_0x497c88[_0x21c3cf(0x118)](HELP_HEADER_MESSAGE['stop'])[_0x21c3cf(0x11f)](HELP_FOOTER_MESSAGE)['options'](_0x3b7b10)[_0x21c3cf(0xf5)](_0x19f55e['hmIfJ'])[_0x21c3cf(0xf7)];},exports[a21_0x295e99(0x123)]=async function(_0x2c8d15){const _0x2a2628=a21_0x295e99,_0x1dd4aa={'CHeIb':_0x2a2628(0x144),'wAliq':function(_0x1f3af4){return _0x1f3af4();},'logFJ':_0x2a2628(0xf0),'lNHNR':function(_0x2f43fa,_0x125734,_0x124b7b,_0x41cd26,_0x15b432,_0x1b9ebc,_0x252abc){return _0x2f43fa(_0x125734,_0x124b7b,_0x41cd26,_0x15b432,_0x1b9ebc,_0x252abc);},'JBQLC':'stop-grid-called','AyXXG':_0x2a2628(0x104),'ecHWK':function(_0x3377e1,_0x2081a2,_0xb472ff,_0x1e914f,_0x1650be,_0x53979f,_0x35dcd0){return _0x3377e1(_0x2081a2,_0xb472ff,_0x1e914f,_0x1650be,_0x53979f,_0x35dcd0);},'CRCvI':function(_0x21f854){return _0x21f854();},'qMBih':_0x2a2628(0x126),'mtfhm':_0x2a2628(0xf8),'jkRSn':'Adding\x20Websocket\x20listeners','iYbCH':function(_0x20b3f4,_0x2af717,_0x272798,_0x4b75c0){return _0x20b3f4(_0x2af717,_0x272798,_0x4b75c0);},'WLtKW':function(_0x17bbb4,_0xab3a23,_0x1a6ab0){return _0x17bbb4(_0xab3a23,_0x1a6ab0);},'vQtrT':function(_0x388359,_0x22a360,_0x5805db){return _0x388359(_0x22a360,_0x5805db);},'EupVJ':_0x2a2628(0x136),'wTWam':function(_0x297bc8,_0x291da3){return _0x297bc8===_0x291da3;},'aDRwf':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FPhmS':_0x2a2628(0x100),'kdKEp':_0x2a2628(0x141),'qvCLt':_0x2a2628(0xf9)};let _0x5f27b3;try{!_0x2c8d15[_0x2a2628(0x113)]&&(logger[_0x2a2628(0x127)](_0x1dd4aa['CHeIb']),process['exit'](0x1));!fs[_0x2a2628(0x139)](_0x1dd4aa[_0x2a2628(0xfd)](getCredentialsPath))&&(logger[_0x2a2628(0x127)](_0x1dd4aa['logFJ']),await _0x1dd4aa[_0x2a2628(0xf3)](sendInstrumentationEvent,_0x2c8d15,_0x1dd4aa[_0x2a2628(0x110)],messageTypes['ERROR'],_0x1dd4aa[_0x2a2628(0x109)],null,_0x2c8d15),process[_0x2a2628(0x13d)](0x1));logger[_0x2a2628(0xfc)](_0x2a2628(0x120)+_0x2c8d15['gridId']),await _0x1dd4aa[_0x2a2628(0x116)](sendInstrumentationEvent,_0x2c8d15,_0x1dd4aa['JBQLC'],messageTypes['INFO'],null,null,_0x2c8d15);const _0x271bbf=JSON['parse'](fs[_0x2a2628(0x133)](_0x1dd4aa[_0x2a2628(0xef)](getCredentialsPath)));global_registry[_0x2a2628(0x130)]=_0x271bbf[_0x2a2628(0x146)]['username'],global_registry[_0x2a2628(0x12e)]=_0x271bbf[_0x2a2628(0x146)][_0x2a2628(0x122)];const _0x3facca=WS_ENDPOINT[_0x2a2628(0x101)](_0x1dd4aa[_0x2a2628(0x107)],_0x271bbf[_0x2a2628(0x146)][_0x2a2628(0x138)])['replace'](_0x1dd4aa['mtfhm'],_0x271bbf['Browserstack'][_0x2a2628(0x122)]),_0x5eb947={};_0x5eb947[_0x2a2628(0x121)]=ws,_0x5eb947['connectionTimeout']=0x36ee80,_0x5f27b3=new ReconnectingWebSocket(_0x3facca,[],_0x5eb947),logger[_0x2a2628(0x124)](_0x1dd4aa[_0x2a2628(0x12d)]),webSocketUtils[_0x2a2628(0xed)](_0x5f27b3,_0x2c8d15[_0x2a2628(0x115)],_0x2c8d15[_0x2a2628(0x122)]);const [_0x3605a7,_0x52cda4]=await _0x1dd4aa[_0x2a2628(0x12c)](getGridDetails,_0x271bbf['Browserstack'][_0x2a2628(0x138)],_0x271bbf['Browserstack']['password'],_0x2c8d15['gridId']);if(_0x52cda4){const _0x162e16=_0x52cda4['info'];global_registry[_0x2a2628(0x105)]=_0x162e16[_0x2a2628(0x105)],global_registry['clusterRegion']=_0x162e16[_0x2a2628(0x117)],global_registry[_0x2a2628(0xff)]=_0x162e16[_0x2a2628(0xff)];const _0x93cff3=await _0x1dd4aa[_0x2a2628(0xf3)](getCloudProviderObject,_0x162e16[_0x2a2628(0x105)],_0x162e16[_0x2a2628(0xff)],_0x162e16[_0x2a2628(0xee)],_0x5f27b3,webSocketUtils,_0x2c8d15),[_0x3dce10,_0x34c8a8,_0x2f3f9c,_0x2f1a9b,_0x36a832,_0x35ea73]=await _0x1dd4aa[_0x2a2628(0x12b)](createK8sClient,_0x93cff3,_0x2c8d15['skipTlsCertVerify']);await _0x1dd4aa[_0x2a2628(0x132)](scaleDownHubDeployment,_0x34c8a8,_0x162e16[_0x2a2628(0xee)]),logger[_0x2a2628(0xfc)](_0x1dd4aa['EupVJ']),process[_0x2a2628(0x13d)](0x0);}_0x1dd4aa[_0x2a2628(0x11b)](_0x3605a7[_0x2a2628(0xf1)],0x191)&&(logger[_0x2a2628(0x127)](_0x1dd4aa[_0x2a2628(0x145)]),await _0x1dd4aa[_0x2a2628(0x116)](sendInstrumentationEvent,_0x2c8d15,_0x1dd4aa[_0x2a2628(0x110)],messageTypes[_0x2a2628(0x108)],_0x1dd4aa[_0x2a2628(0xf4)],null,_0x2c8d15),process[_0x2a2628(0x13d)](0x1)),_0x1dd4aa[_0x2a2628(0x11b)](_0x3605a7[_0x2a2628(0xf1)],0x190)&&(logger[_0x2a2628(0x127)](JSON['parse'](_0x3605a7[_0x2a2628(0x134)])['message']),await _0x1dd4aa['lNHNR'](sendInstrumentationEvent,_0x2c8d15,_0x1dd4aa[_0x2a2628(0x110)],messageTypes[_0x2a2628(0x108)],_0x1dd4aa['kdKEp'],null,_0x2c8d15),process[_0x2a2628(0x13d)](0x1)),logger[_0x2a2628(0x127)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2a2628(0x119)](_0x3605a7)),await _0x1dd4aa[_0x2a2628(0x116)](sendInstrumentationEvent,_0x2c8d15,_0x1dd4aa[_0x2a2628(0x110)],messageTypes[_0x2a2628(0x108)],_0x1dd4aa[_0x2a2628(0xf6)],_0x3605a7,_0x2c8d15),process['exit'](0x1);}catch(_0x3ac104){const _0x4f1eda=_0x2a2628(0xf2)+_0x3ac104+'\x20\x0a'+JSON[_0x2a2628(0x119)](_0x3ac104[_0x2a2628(0x10d)])+'\x20';logger[_0x2a2628(0x127)](_0x4f1eda),process[_0x2a2628(0x13d)](0x1);}};
1
+ function a21_0x4f4f(_0x18d78b,_0x4b1ec0){const _0x3e632c=a21_0x3e63();return a21_0x4f4f=function(_0x4f4fd6,_0x3d002d){_0x4f4fd6=_0x4f4fd6-0x1e2;let _0x5c164a=_0x3e632c[_0x4f4fd6];return _0x5c164a;},a21_0x4f4f(_0x18d78b,_0x4b1ec0);}const a21_0x2e104b=a21_0x4f4f;(function(_0x2929dd,_0x455eb4){const _0x281e55=a21_0x4f4f,_0x67d18d=_0x2929dd();while(!![]){try{const _0x3e1cb0=-parseInt(_0x281e55(0x22f))/0x1*(parseInt(_0x281e55(0x216))/0x2)+-parseInt(_0x281e55(0x21e))/0x3*(-parseInt(_0x281e55(0x205))/0x4)+-parseInt(_0x281e55(0x220))/0x5*(parseInt(_0x281e55(0x1e8))/0x6)+parseInt(_0x281e55(0x215))/0x7+-parseInt(_0x281e55(0x22b))/0x8+-parseInt(_0x281e55(0x1ee))/0x9+parseInt(_0x281e55(0x1e7))/0xa;if(_0x3e1cb0===_0x455eb4)break;else _0x67d18d['push'](_0x67d18d['shift']());}catch(_0x424b87){_0x67d18d['push'](_0x67d18d['shift']());}}}(a21_0x3e63,0xa47c4));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2e104b(0x231)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x2e104b(0x1fc)),{getCredentialsPath,getGridDetails}=require(a21_0x2e104b(0x1fd)),{scaleDownHubDeployment}=require(a21_0x2e104b(0x201)),{sendInstrumentationEvent}=require(a21_0x2e104b(0x23a)),webSocketUtils=require(a21_0x2e104b(0x241)),{createK8sClient}=require(a21_0x2e104b(0x202)),{getCloudProviderObject}=require(a21_0x2e104b(0x209));function a21_0x3e63(){const _0x368bc3=['handler','../../utils/instrumentationUtils','region','oNENs','wLZFV','epilogue','<PasswordPlaceholder>','xNjRy','../../utils/webSocketUtils','<UsernamePlaceholder>','usage','CWstT','name','phWha','server-error','28476000axtiYq','6sAgeSF','description','FCMYH','Stopping\x20grid\x20','info','existsSync','4224699HGLOZV','eGAhv','ZWAzk','command','kVHYL','ERROR','cloudProvider','skipTlsCertVerify','BPFEW','stringify','boolean','OKXRp','ZaBKp','lcTvE','../../config/logger','../../utils/utilityMethods','body','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/gridComponents','../../utils/createk8sClient','readFileSync','exit','148924rjRIoH','addListeners','options','grid-id','../../cloudproviders/utils','connectionTimeout','Browserstack','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','ysJpW','XFonn','help','bViHQ','INFO','gridId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','desc','2153004VwawyO','1032124NBewdI','invalid-grid-id','Grid\x20stoppped.','username','clusterRegion','ROioq','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','lqukh','15AriaCg','clusterName','4173770DwCgVH','default','builder','Stop\x20a\x20running\x20Automation\x20grid.','debug','message','statusCode','Skip\x20insecure\x20cert\x20verification.','WebSocket','pCFEf','yHwnl','2650448wvxxac','skip-tls-cert-verify','vucgo','parse','2WSuTyu','OwCtA','reconnecting-websocket','password','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','type','kUSfi','user','replace','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a21_0x3e63=function(){return _0x368bc3;};return a21_0x3e63();}exports[a21_0x2e104b(0x1f1)]='grid',exports[a21_0x2e104b(0x214)]=a21_0x2e104b(0x223),exports[a21_0x2e104b(0x222)]=function(_0x135524){const _0x411e43=a21_0x2e104b,_0x3b5c39={};_0x3b5c39['SnuXu']=_0x411e43(0x20c),_0x3b5c39[_0x411e43(0x23c)]='string',_0x3b5c39[_0x411e43(0x1ef)]=_0x411e43(0x227),_0x3b5c39['BPFEW']=_0x411e43(0x1f8),_0x3b5c39[_0x411e43(0x1e3)]=_0x411e43(0x20f);const _0x273505=_0x3b5c39,_0x20a739={};_0x20a739[_0x411e43(0x1e9)]=_0x273505['SnuXu'],_0x20a739[_0x411e43(0x234)]=_0x273505[_0x411e43(0x23c)];const _0x5dc0b8={};_0x5dc0b8[_0x411e43(0x1e9)]=_0x273505[_0x411e43(0x1ef)],_0x5dc0b8[_0x411e43(0x234)]=_0x273505[_0x411e43(0x1f6)],_0x5dc0b8[_0x411e43(0x221)]=![];const _0x1a9105={};return _0x1a9105[_0x411e43(0x208)]=_0x20a739,_0x1a9105[_0x411e43(0x22c)]=_0x5dc0b8,_0x135524[_0x411e43(0x1e2)](HELP_HEADER_MESSAGE['stop'])[_0x411e43(0x23e)](HELP_FOOTER_MESSAGE)[_0x411e43(0x207)](_0x1a9105)[_0x411e43(0x20f)](_0x273505[_0x411e43(0x1e3)])['argv'];},exports[a21_0x2e104b(0x239)]=async function(_0x2ff55e){const _0x2fce7a=a21_0x2e104b,_0xba4ced={'rToBF':_0x2fce7a(0x233),'ZaBKp':function(_0x1c3043){return _0x1c3043();},'wzqMO':_0x2fce7a(0x238),'kUSfi':function(_0x3e3de0,_0x3b1bde,_0x43f235,_0x1b6480,_0x38c6b2,_0x58d834,_0x2e8a8b){return _0x3e3de0(_0x3b1bde,_0x43f235,_0x1b6480,_0x38c6b2,_0x58d834,_0x2e8a8b);},'OKXRp':'stop-grid-called','ROioq':'init-not-called','ysJpW':function(_0x4ddd44,_0x137176,_0x1dee67,_0x1f41b2,_0x5bcb87,_0x3f68de,_0x457980){return _0x4ddd44(_0x137176,_0x1dee67,_0x1f41b2,_0x5bcb87,_0x3f68de,_0x457980);},'bViHQ':_0x2fce7a(0x242),'yHwnl':_0x2fce7a(0x23f),'ZWAzk':'Adding\x20Websocket\x20listeners','OwCtA':function(_0x386991,_0x4482fb,_0x465724,_0x500ef5){return _0x386991(_0x4482fb,_0x465724,_0x500ef5);},'phWha':function(_0x1069a7,_0xbc5454,_0x38b5de){return _0x1069a7(_0xbc5454,_0x38b5de);},'wLZFV':_0x2fce7a(0x218),'pCFEf':function(_0x251938,_0x36db80){return _0x251938===_0x36db80;},'vucgo':_0x2fce7a(0x200),'XFonn':'unauthorised','lqukh':function(_0x451a2c,_0x45ddad){return _0x451a2c===_0x45ddad;},'FCMYH':function(_0x275df3,_0x4ec935,_0x2a0c52,_0x4f40b5,_0x55235c,_0x3c7370,_0x4667ca){return _0x275df3(_0x4ec935,_0x2a0c52,_0x4f40b5,_0x55235c,_0x3c7370,_0x4667ca);},'xNjRy':_0x2fce7a(0x217),'lcTvE':function(_0x13df9c,_0x2e7f07,_0x2ebd28,_0xce5ff0,_0x4f0e41,_0x544638,_0x173a3f){return _0x13df9c(_0x2e7f07,_0x2ebd28,_0xce5ff0,_0x4f0e41,_0x544638,_0x173a3f);},'kVHYL':_0x2fce7a(0x1e6)};let _0x1b8019;try{!_0x2ff55e[_0x2fce7a(0x212)]&&(logger['error'](_0xba4ced['rToBF']),process[_0x2fce7a(0x204)](0x1));!fs[_0x2fce7a(0x1ed)](_0xba4ced[_0x2fce7a(0x1fa)](getCredentialsPath))&&(logger[_0x2fce7a(0x1ff)](_0xba4ced['wzqMO']),await _0xba4ced[_0x2fce7a(0x235)](sendInstrumentationEvent,_0x2ff55e,_0xba4ced[_0x2fce7a(0x1f9)],messageTypes[_0x2fce7a(0x1f3)],_0xba4ced[_0x2fce7a(0x21b)],null,_0x2ff55e),process['exit'](0x1));logger[_0x2fce7a(0x1ec)](_0x2fce7a(0x1eb)+_0x2ff55e[_0x2fce7a(0x212)]),await _0xba4ced[_0x2fce7a(0x20d)](sendInstrumentationEvent,_0x2ff55e,_0xba4ced['OKXRp'],messageTypes[_0x2fce7a(0x211)],null,null,_0x2ff55e);const _0x10ca6e=JSON[_0x2fce7a(0x22e)](fs[_0x2fce7a(0x203)](_0xba4ced[_0x2fce7a(0x1fa)](getCredentialsPath)));global_registry['bstackUsername']=_0x10ca6e['Browserstack']['username'],global_registry['bstackAccesskey']=_0x10ca6e['Browserstack'][_0x2fce7a(0x232)];const _0x2828cf=WS_ENDPOINT['replace'](_0xba4ced[_0x2fce7a(0x210)],_0x10ca6e[_0x2fce7a(0x20b)][_0x2fce7a(0x219)])[_0x2fce7a(0x237)](_0xba4ced[_0x2fce7a(0x22a)],_0x10ca6e[_0x2fce7a(0x20b)][_0x2fce7a(0x232)]),_0x29d5f0={};_0x29d5f0[_0x2fce7a(0x228)]=ws,_0x29d5f0[_0x2fce7a(0x20a)]=0x36ee80,_0x1b8019=new ReconnectingWebSocket(_0x2828cf,[],_0x29d5f0),logger[_0x2fce7a(0x224)](_0xba4ced[_0x2fce7a(0x1f0)]),webSocketUtils[_0x2fce7a(0x206)](_0x1b8019,_0x2ff55e[_0x2fce7a(0x236)],_0x2ff55e[_0x2fce7a(0x232)]);const [_0x2b618a,_0x235b99]=await _0xba4ced[_0x2fce7a(0x230)](getGridDetails,_0x10ca6e[_0x2fce7a(0x20b)]['username'],_0x10ca6e[_0x2fce7a(0x20b)][_0x2fce7a(0x232)],_0x2ff55e['gridId']);if(_0x235b99){const _0x1a2092=_0x235b99[_0x2fce7a(0x1ec)];global_registry['cloudProvider']=_0x1a2092[_0x2fce7a(0x1f4)],global_registry[_0x2fce7a(0x21a)]=_0x1a2092[_0x2fce7a(0x23b)],global_registry[_0x2fce7a(0x21f)]=_0x1a2092[_0x2fce7a(0x21f)];const _0xb8181d=await _0xba4ced[_0x2fce7a(0x235)](getCloudProviderObject,_0x1a2092['cloudProvider'],_0x1a2092[_0x2fce7a(0x21f)],_0x1a2092['name'],_0x1b8019,webSocketUtils,_0x2ff55e),[_0x587920,_0x320ed6,_0x18daec,_0x32a727,_0x25b2e3,_0x53c36a]=await _0xba4ced[_0x2fce7a(0x1e5)](createK8sClient,_0xb8181d,_0x2ff55e[_0x2fce7a(0x1f5)]);await _0xba4ced[_0x2fce7a(0x1e5)](scaleDownHubDeployment,_0x320ed6,_0x1a2092[_0x2fce7a(0x1e4)]),logger[_0x2fce7a(0x1ec)](_0xba4ced[_0x2fce7a(0x23d)]),process[_0x2fce7a(0x204)](0x0);}_0xba4ced[_0x2fce7a(0x229)](_0x2b618a['statusCode'],0x191)&&(logger[_0x2fce7a(0x1ff)](_0xba4ced[_0x2fce7a(0x22d)]),await _0xba4ced['kUSfi'](sendInstrumentationEvent,_0x2ff55e,_0xba4ced[_0x2fce7a(0x1f9)],messageTypes['ERROR'],_0xba4ced[_0x2fce7a(0x20e)],null,_0x2ff55e),process[_0x2fce7a(0x204)](0x1)),_0xba4ced[_0x2fce7a(0x21d)](_0x2b618a[_0x2fce7a(0x226)],0x190)&&(logger['error'](JSON[_0x2fce7a(0x22e)](_0x2b618a[_0x2fce7a(0x1fe)])[_0x2fce7a(0x225)]),await _0xba4ced[_0x2fce7a(0x1ea)](sendInstrumentationEvent,_0x2ff55e,_0xba4ced[_0x2fce7a(0x1f9)],messageTypes[_0x2fce7a(0x1f3)],_0xba4ced[_0x2fce7a(0x240)],null,_0x2ff55e),process['exit'](0x1)),logger['error'](_0x2fce7a(0x213)+JSON['stringify'](_0x2b618a)),await _0xba4ced[_0x2fce7a(0x1fb)](sendInstrumentationEvent,_0x2ff55e,_0xba4ced[_0x2fce7a(0x1f9)],messageTypes[_0x2fce7a(0x1f3)],_0xba4ced[_0x2fce7a(0x1f2)],_0x2b618a,_0x2ff55e),process[_0x2fce7a(0x204)](0x1);}catch(_0x4ec5cb){const _0x4f099e=_0x2fce7a(0x21c)+_0x4ec5cb+'\x20\x0a'+JSON[_0x2fce7a(0x1f7)](_0x4ec5cb['stack'])+'\x20';logger[_0x2fce7a(0x1ff)](_0x4f099e),process[_0x2fce7a(0x204)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x257f1a=a22_0x1ce9;(function(_0x16e4aa,_0x671e8f){const _0x3efe97=a22_0x1ce9,_0x29a03e=_0x16e4aa();while(!![]){try{const _0x2a8902=parseInt(_0x3efe97(0x117))/0x1*(parseInt(_0x3efe97(0x146))/0x2)+parseInt(_0x3efe97(0x104))/0x3+parseInt(_0x3efe97(0x11e))/0x4+parseInt(_0x3efe97(0x14a))/0x5+parseInt(_0x3efe97(0x12a))/0x6+-parseInt(_0x3efe97(0x13d))/0x7+-parseInt(_0x3efe97(0x141))/0x8*(parseInt(_0x3efe97(0x15d))/0x9);if(_0x2a8902===_0x671e8f)break;else _0x29a03e['push'](_0x29a03e['shift']());}catch(_0x25be03){_0x29a03e['push'](_0x29a03e['shift']());}}}(a22_0x3e71,0x2bbb2),require(a22_0x257f1a(0x101))[a22_0x257f1a(0x14e)]());let gridURL=a22_0x257f1a(0x12e),bsApiUrl=a22_0x257f1a(0x16b),agApiUrl=a22_0x257f1a(0x123);const _env=(process[a22_0x257f1a(0x161)]['BROWSERSTACK_ENV']||'prod')[a22_0x257f1a(0x107)]();if(_env==='staging'||_env===a22_0x257f1a(0x152))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x257f1a(0x16d),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x257f1a(0x11f)||_env===a22_0x257f1a(0x147))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x257f1a(0x15b),agApiUrl=a22_0x257f1a(0x137));exports['DASHBOARD_ENDPOINT']=process[a22_0x257f1a(0x161)][a22_0x257f1a(0x118)]||gridURL,exports[a22_0x257f1a(0x125)]=process[a22_0x257f1a(0x161)][a22_0x257f1a(0x125)]||bsApiUrl,exports[a22_0x257f1a(0x10b)]=process[a22_0x257f1a(0x161)][a22_0x257f1a(0x10b)]||agApiUrl,exports[a22_0x257f1a(0x129)]=a22_0x257f1a(0x14b)+this[a22_0x257f1a(0x10b)]+a22_0x257f1a(0x13a),exports[a22_0x257f1a(0x127)]='credentials',exports[a22_0x257f1a(0x108)]=a22_0x257f1a(0x132),exports[a22_0x257f1a(0x16c)]=a22_0x257f1a(0x153),exports[a22_0x257f1a(0x11d)]=a22_0x257f1a(0x12c),exports[a22_0x257f1a(0x164)]=a22_0x257f1a(0x11c),exports[a22_0x257f1a(0x160)]=a22_0x257f1a(0x140),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x257f1a(0x100),exports[a22_0x257f1a(0x133)]=a22_0x257f1a(0x111),exports[a22_0x257f1a(0x12b)]=a22_0x257f1a(0x126),exports['GCP']='gcp',exports[a22_0x257f1a(0x165)]=[this[a22_0x257f1a(0x11d)],this[a22_0x257f1a(0x12b)],this[a22_0x257f1a(0x134)]];const a22_0x2400dc={};a22_0x2400dc['Key']=a22_0x257f1a(0x13c),a22_0x2400dc[a22_0x257f1a(0x119)]=a22_0x257f1a(0x120);const a22_0x36fe62={};a22_0x36fe62[a22_0x257f1a(0x114)]=a22_0x257f1a(0xfe),a22_0x36fe62[a22_0x257f1a(0x119)]=a22_0x257f1a(0x135);const common_hst_tags_list=[a22_0x2400dc,a22_0x36fe62];if(process[a22_0x257f1a(0x161)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x257f1a(0x161)][a22_0x257f1a(0x139)][a22_0x257f1a(0x121)](',');parsedTags[a22_0x257f1a(0x130)](_0x30598e=>{const _0x1ad7e4=a22_0x257f1a,_0xa59860=_0x30598e[_0x1ad7e4(0x121)](':'),_0x2830a1={};_0x2830a1[_0x1ad7e4(0x114)]=_0xa59860[0x0],_0x2830a1[_0x1ad7e4(0x119)]=_0xa59860[0x1],common_hst_tags_list[_0x1ad7e4(0x150)](_0x2830a1);});}exports[a22_0x257f1a(0x158)]=common_hst_tags_list;function a22_0x3e71(){const _0x794740=['AWS','251360LxIliX','preprod','BrowserStack','split','list','grid-api.browserstack.com','resourceInfo','BS_API_URL','azure','CP_CONFIG_FILE','TRIAL_GRID_URL','WS_ENDPOINT','1688712asifLJ','AZURE','aws','REGION','grid.browserstack.com','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','forEach','gridUrl','BrowserStackIAMUser','TURBOSCALE_DEPLOYMENT','GCP','BrowserStack-Automate-TurboScale','CLI_RUN_STARTED','grid-api-preprod.bsstag.com','[REDACTED]','TURBOSCALE_CUSTOM_TAGS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','ERROR','browserstack:managedBy','1000657DGrcOM','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','pre_check','BSTACK-ATS-CLUSTER-AUTOSCALER','513224CZbNTf','info','init','connect','GRID_URL','138226AkaLxq','pre-prod','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','352640wKvXqg','wss://','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','config','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','push','us-east-1','stag','high-scale-grid','cliRunStarted','SUPPORTED_CLOUD_PROVIDERS','start','cliRunFinished','COMMON_HST_TAGS','LINK_MESSAGE','INFO','api-preprod.bsstag.com','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','36nhCrXj','configure','LOG','CLUSTER_AUTOSCALER_STACK_NAME','env','high-scale-grid-cluster','WARNING','CLUSTER_DEP_STACK_NAME','ALL_SUPPORTED_CLOUD_PROVIDERS','UNKNOWN','pre-check','messageTypes','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','api.browserstack.com','DEFAULT_GRID_NAME','api-devhst.bsstag.com','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','browserstack:service','HST_CLUSTER_TAGS','BSTACK-ATS-CLUSTER-HUB-HA','dotenv','grid','warning','76917ReHwIG','root','CLOUD_PROVIDER','toLowerCase','IAM_USER_NAME','HELP_FOOTER_MESSAGE','SUCCESS','AG_API_URL','WS_EVENTS','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','DEFAULT_CLUSTER_DETAILS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','CLUSTER','browserstack-turboscale-grid','log','success','Key','MessageDescription','gridProfile','2uslfla','DASHBOARD_ENDPOINT','Value','create','error','BSTACK-ATS-CLUSTER'];a22_0x3e71=function(){return _0x794740;};return a22_0x3e71();}const a22_0x4a3512={};a22_0x4a3512['browserstack:managedBy']=a22_0x257f1a(0x120),a22_0x4a3512['browserstack:service']=a22_0x257f1a(0x135),exports[a22_0x257f1a(0xff)]=a22_0x4a3512,exports[a22_0x257f1a(0x155)]=[this['AWS']];const a22_0x5c15d1={};a22_0x5c15d1[a22_0x257f1a(0x15f)]=a22_0x257f1a(0x112),a22_0x5c15d1['RESOURCES']=a22_0x257f1a(0x124),a22_0x5c15d1[a22_0x257f1a(0x145)]=a22_0x257f1a(0x131),a22_0x5c15d1[a22_0x257f1a(0x136)]=a22_0x257f1a(0x154),a22_0x5c15d1['CLI_RUN_FINISHED']=a22_0x257f1a(0x157),exports[a22_0x257f1a(0x10c)]=a22_0x5c15d1,exports['global_registry']={},exports['LINK_MESSAGE']=a22_0x257f1a(0x15c);const a22_0x2cccf3={};a22_0x2cccf3['root']=a22_0x257f1a(0x14c)+this['LINK_MESSAGE'],a22_0x2cccf3[a22_0x257f1a(0x143)]=a22_0x257f1a(0x14d)+this[a22_0x257f1a(0x159)],a22_0x2cccf3[a22_0x257f1a(0x15e)]=a22_0x257f1a(0x14f)+this['LINK_MESSAGE'],a22_0x2cccf3[a22_0x257f1a(0x11a)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x257f1a(0x159)],a22_0x2cccf3[a22_0x257f1a(0x122)]={},a22_0x2cccf3[a22_0x257f1a(0x169)]=a22_0x257f1a(0x16e)+this['LINK_MESSAGE'],a22_0x2cccf3[a22_0x257f1a(0x144)]=a22_0x257f1a(0x13e)+this[a22_0x257f1a(0x159)],a22_0x2cccf3[a22_0x257f1a(0x156)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x257f1a(0x159)],a22_0x2cccf3['stop']=a22_0x257f1a(0x10d)+this[a22_0x257f1a(0x159)],a22_0x2cccf3[a22_0x257f1a(0x13f)]=a22_0x257f1a(0x12f)+this['LINK_MESSAGE'],a22_0x2cccf3[a22_0x257f1a(0x122)][a22_0x257f1a(0x105)]=a22_0x257f1a(0x148)+this[a22_0x257f1a(0x159)],a22_0x2cccf3[a22_0x257f1a(0x122)][a22_0x257f1a(0x102)]=a22_0x257f1a(0x16a)+this[a22_0x257f1a(0x159)],a22_0x2cccf3[a22_0x257f1a(0x122)][a22_0x257f1a(0x116)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x257f1a(0x159)],exports['HELP_HEADER_MESSAGE']=a22_0x2cccf3,exports[a22_0x257f1a(0x109)]=a22_0x257f1a(0x10f);const a22_0x40490c={};a22_0x40490c[a22_0x257f1a(0x10a)]=a22_0x257f1a(0x113),a22_0x40490c[a22_0x257f1a(0x13b)]=a22_0x257f1a(0x11b),a22_0x40490c[a22_0x257f1a(0x15a)]=a22_0x257f1a(0x142),a22_0x40490c[a22_0x257f1a(0x163)]=a22_0x257f1a(0x103),a22_0x40490c[a22_0x257f1a(0x166)]='unknown',a22_0x40490c['NULL']=null,exports[a22_0x257f1a(0x168)]=a22_0x40490c,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x257f1a(0x138);const a22_0x2773e5={};function a22_0x1ce9(_0x2d38c2,_0x578e61){const _0x3e71ff=a22_0x3e71();return a22_0x1ce9=function(_0x1ce95d,_0x239fac){_0x1ce95d=_0x1ce95d-0xfe;let _0x3227d4=_0x3e71ff[_0x1ce95d];return _0x3227d4;},a22_0x1ce9(_0x2d38c2,_0x578e61);}a22_0x2773e5['grid-profile']=a22_0x257f1a(0x149);const a22_0x377056={};a22_0x377056[a22_0x257f1a(0x167)]=a22_0x2773e5,exports[a22_0x257f1a(0x115)]=a22_0x377056,exports[a22_0x257f1a(0x128)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x1601d5={};a22_0x1601d5[a22_0x257f1a(0x110)]=a22_0x257f1a(0x162),a22_0x1601d5[a22_0x257f1a(0x106)]=a22_0x257f1a(0x12c),a22_0x1601d5[a22_0x257f1a(0x12d)]=a22_0x257f1a(0x151),exports[a22_0x257f1a(0x10e)]=a22_0x1601d5;
1
+ const a22_0x16779a=a22_0x5405;function a22_0x5816(){const _0x1ec6ed=['1810iEeDfi','Value','pre_check','TURBOSCALE_DEPLOYMENT','WS_ENDPOINT','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','HST_CLUSTER_TAGS','1174254Dteyqk','split','332622vvATYg','BrowserStack','aws','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','CLUSTER_HUB_HA_STACK_NAME','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','RAW_ARGS_REGEX','stop','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','configure','AG_API_URL','MessageDescription','azure','5HAEIXa','BROWSERSTACK_ENV','pre-prod','forEach','grid','grid-preprod.bsstag.com','high-scale-grid-cluster','grid-profile','CLUSTER_DEP_STACK_NAME','gcp','LOG','start','HELP_HEADER_MESSAGE','TRIAL_GRID_URL','REGION','908830keOxQW','WARNING','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','warning','BSTACK-ATS-CLUSTER-AUTOSCALER','NULL','43549ANCWrO','1149aBDCsF','staging','grid-api.browserstack.com','connect','env','credentials','grid-api-preprod.bsstag.com','TURBOSCALE_CUSTOM_TAGS','220fYlych','success','LINK_MESSAGE','AWS','DASHBOARD_ENDPOINT','DEFAULT_CLUSTER_DETAILS','CLUSTER_AUTOSCALER_STACK_NAME','create','COMMON_HST_TAGS','info','log','api-devhst.bsstag.com','us-east-1','messageTypes','unknown','REDACTED','config','BS_API_URL','delete','UNKNOWN','RESOURCES','gridProfile','AZURE','CLI_RUN_FINISHED','browserstack:service','[REDACTED]','BSTACK-ATS-CLUSTER','SUPPORTED_CLOUD_PROVIDERS','cliRunFinished','prod','grid.browserstack.com','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','cliRunStarted','BSTACK-ATS-CLUSTER-HUB-HA','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','error','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','BrowserStack-Automate-TurboScale','IAM_USER_NAME','dotenv','100570XcwSGQ','browserstack:managedBy','list','CLI_RUN_STARTED','wss://','ERROR','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','global_registry','api.browserstack.com','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','GCP','88xVcqLh','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','2691220ydnmMP','Key','resourceInfo'];a22_0x5816=function(){return _0x1ec6ed;};return a22_0x5816();}(function(_0x4bfbd1,_0x47731b){const _0x2b1d8a=a22_0x5405,_0x486de9=_0x4bfbd1();while(!![]){try{const _0x36445b=-parseInt(_0x2b1d8a(0x1a0))/0x1*(-parseInt(_0x2b1d8a(0x17a))/0x2)+parseInt(_0x2b1d8a(0x1b6))/0x3*(-parseInt(_0x2b1d8a(0x1be))/0x4)+parseInt(_0x2b1d8a(0x1af))/0x5+-parseInt(_0x2b1d8a(0x191))/0x6+parseInt(_0x2b1d8a(0x187))/0x7+parseInt(_0x2b1d8a(0x185))/0x8*(parseInt(_0x2b1d8a(0x193))/0x9)+-parseInt(_0x2b1d8a(0x18a))/0xa*(parseInt(_0x2b1d8a(0x1b5))/0xb);if(_0x36445b===_0x47731b)break;else _0x486de9['push'](_0x486de9['shift']());}catch(_0x392434){_0x486de9['push'](_0x486de9['shift']());}}}(a22_0x5816,0x47014),require(a22_0x16779a(0x179))[a22_0x16779a(0x1ce)]());let gridURL=a22_0x16779a(0x170),bsApiUrl=a22_0x16779a(0x182),agApiUrl=a22_0x16779a(0x1b8);const _env=(process[a22_0x16779a(0x1ba)][a22_0x16779a(0x1a1)]||a22_0x16779a(0x16f))['toLowerCase']();if(_env===a22_0x16779a(0x1b7)||_env==='stag')gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x16779a(0x1c9),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x16779a(0x1a2))&&(gridURL=a22_0x16779a(0x1a5),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x16779a(0x1bc));exports[a22_0x16779a(0x1c2)]=process[a22_0x16779a(0x1ba)]['DASHBOARD_ENDPOINT']||gridURL,exports['BS_API_URL']=process[a22_0x16779a(0x1ba)][a22_0x16779a(0x1cf)]||bsApiUrl,exports[a22_0x16779a(0x19d)]=process[a22_0x16779a(0x1ba)][a22_0x16779a(0x19d)]||agApiUrl,exports[a22_0x16779a(0x18e)]=a22_0x16779a(0x17e)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports['CP_CONFIG_FILE']=a22_0x16779a(0x1bb),exports[a22_0x16779a(0x178)]='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a22_0x16779a(0x1c1)]=a22_0x16779a(0x195),exports[a22_0x16779a(0x1a8)]=a22_0x16779a(0x16c),exports[a22_0x16779a(0x1c4)]=a22_0x16779a(0x1b3),exports[a22_0x16779a(0x197)]=a22_0x16779a(0x173),exports[a22_0x16779a(0x18d)]='browserstack-turboscale-grid',exports[a22_0x16779a(0x168)]=a22_0x16779a(0x19f),exports[a22_0x16779a(0x184)]=a22_0x16779a(0x1a9),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x16779a(0x1c1)],this[a22_0x16779a(0x168)],this['GCP']];const a22_0x14c40c={};a22_0x14c40c[a22_0x16779a(0x188)]=a22_0x16779a(0x17b),a22_0x14c40c[a22_0x16779a(0x18b)]=a22_0x16779a(0x194);const a22_0x51f67f={};a22_0x51f67f[a22_0x16779a(0x188)]=a22_0x16779a(0x16a),a22_0x51f67f['Value']=a22_0x16779a(0x177);const common_hst_tags_list=[a22_0x14c40c,a22_0x51f67f];if(process[a22_0x16779a(0x1ba)][a22_0x16779a(0x1bd)]){const parsedTags=process[a22_0x16779a(0x1ba)][a22_0x16779a(0x1bd)][a22_0x16779a(0x192)](',');parsedTags[a22_0x16779a(0x1a3)](_0x5693ab=>{const _0x3a8b9b=a22_0x16779a,_0x486431=_0x5693ab[_0x3a8b9b(0x192)](':'),_0x452013={};_0x452013[_0x3a8b9b(0x188)]=_0x486431[0x0],_0x452013[_0x3a8b9b(0x18b)]=_0x486431[0x1],common_hst_tags_list['push'](_0x452013);});}exports[a22_0x16779a(0x1c6)]=common_hst_tags_list;const a22_0x4ffa99={};a22_0x4ffa99['browserstack:managedBy']=a22_0x16779a(0x194),a22_0x4ffa99['browserstack:service']=a22_0x16779a(0x177),exports[a22_0x16779a(0x190)]=a22_0x4ffa99,exports[a22_0x16779a(0x16d)]=[this[a22_0x16779a(0x1c1)]];const a22_0xda171c={};a22_0xda171c[a22_0x16779a(0x1aa)]=a22_0x16779a(0x1c8),a22_0xda171c[a22_0x16779a(0x166)]=a22_0x16779a(0x189),a22_0xda171c['GRID_URL']='gridUrl',a22_0xda171c[a22_0x16779a(0x17d)]=a22_0x16779a(0x172),a22_0xda171c[a22_0x16779a(0x169)]=a22_0x16779a(0x16e),exports['WS_EVENTS']=a22_0xda171c,exports[a22_0x16779a(0x181)]={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x317a59={};function a22_0x5405(_0x9016fc,_0x45d29c){const _0x5816fa=a22_0x5816();return a22_0x5405=function(_0x5405ce,_0x26db2e){_0x5405ce=_0x5405ce-0x166;let _0x126d32=_0x5816fa[_0x5405ce];return _0x126d32;},a22_0x5405(_0x9016fc,_0x45d29c);}a22_0x317a59['root']=a22_0x16779a(0x196)+this[a22_0x16779a(0x1c0)],a22_0x317a59['init']=a22_0x16779a(0x18f)+this[a22_0x16779a(0x1c0)],a22_0x317a59[a22_0x16779a(0x19c)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x16779a(0x1c0)],a22_0x317a59[a22_0x16779a(0x1c5)]=a22_0x16779a(0x171)+this['LINK_MESSAGE'],a22_0x317a59[a22_0x16779a(0x17c)]={},a22_0x317a59[a22_0x16779a(0x1d0)]=a22_0x16779a(0x19b)+this[a22_0x16779a(0x1c0)],a22_0x317a59[a22_0x16779a(0x1b9)]=a22_0x16779a(0x198)+this[a22_0x16779a(0x1c0)],a22_0x317a59[a22_0x16779a(0x1ab)]=a22_0x16779a(0x1b1)+this[a22_0x16779a(0x1c0)],a22_0x317a59[a22_0x16779a(0x19a)]=a22_0x16779a(0x186)+this[a22_0x16779a(0x1c0)],a22_0x317a59[a22_0x16779a(0x18c)]=a22_0x16779a(0x183)+this[a22_0x16779a(0x1c0)],a22_0x317a59[a22_0x16779a(0x17c)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x317a59[a22_0x16779a(0x17c)][a22_0x16779a(0x1a4)]=a22_0x16779a(0x180)+this[a22_0x16779a(0x1c0)],a22_0x317a59[a22_0x16779a(0x17c)][a22_0x16779a(0x167)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x16779a(0x1c0)],exports[a22_0x16779a(0x1ac)]=a22_0x317a59,exports['HELP_FOOTER_MESSAGE']=a22_0x16779a(0x176);const a22_0x368fd4={};a22_0x368fd4['SUCCESS']=a22_0x16779a(0x1bf),a22_0x368fd4[a22_0x16779a(0x17f)]=a22_0x16779a(0x175),a22_0x368fd4['INFO']=a22_0x16779a(0x1c7),a22_0x368fd4[a22_0x16779a(0x1b0)]=a22_0x16779a(0x1b2),a22_0x368fd4[a22_0x16779a(0x1d1)]=a22_0x16779a(0x1cc),a22_0x368fd4[a22_0x16779a(0x1b4)]=null,exports[a22_0x16779a(0x1cb)]=a22_0x368fd4,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x16779a(0x199)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x16779a(0x1cd)]=a22_0x16779a(0x16b);const a22_0x50a35f={};a22_0x50a35f[a22_0x16779a(0x1a7)]=a22_0x16779a(0x174);const a22_0x14ae77={};a22_0x14ae77['pre-check']=a22_0x50a35f,exports[a22_0x16779a(0x19e)]=a22_0x14ae77,exports[a22_0x16779a(0x1ad)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x3cb1cf={};a22_0x3cb1cf['CLUSTER']=a22_0x16779a(0x1a6),a22_0x3cb1cf['CLOUD_PROVIDER']=a22_0x16779a(0x195),a22_0x3cb1cf[a22_0x16779a(0x1ae)]=a22_0x16779a(0x1ca),exports[a22_0x16779a(0x1c3)]=a22_0x3cb1cf;
@@ -1 +1 @@
1
- const a23_0x858b5d=a23_0x399c;(function(_0x16d7ec,_0x23529e){const _0x36914f=a23_0x399c,_0xf0886=_0x16d7ec();while(!![]){try{const _0x441bdf=parseInt(_0x36914f(0x175))/0x1+-parseInt(_0x36914f(0x16f))/0x2*(-parseInt(_0x36914f(0x17f))/0x3)+parseInt(_0x36914f(0x17d))/0x4*(-parseInt(_0x36914f(0x185))/0x5)+parseInt(_0x36914f(0x17e))/0x6+parseInt(_0x36914f(0x174))/0x7+parseInt(_0x36914f(0x176))/0x8+parseInt(_0x36914f(0x178))/0x9*(-parseInt(_0x36914f(0x18a))/0xa);if(_0x441bdf===_0x23529e)break;else _0xf0886['push'](_0xf0886['shift']());}catch(_0x36de79){_0xf0886['push'](_0xf0886['shift']());}}}(a23_0x1cac,0x9af4f));function a23_0x399c(_0x3b4086,_0xe5393f){const _0x1caca4=a23_0x1cac();return a23_0x399c=function(_0x399cb4,_0x293e6a){_0x399cb4=_0x399cb4-0x16c;let _0x1bb3f4=_0x1caca4[_0x399cb4];return _0x1bb3f4;},a23_0x399c(_0x3b4086,_0xe5393f);}const winston=require(a23_0x858b5d(0x188)),fs=require('fs'),path=require(a23_0x858b5d(0x173)),logDir=a23_0x858b5d(0x183);!fs[a23_0x858b5d(0x186)](logDir)&&fs[a23_0x858b5d(0x189)](logDir);const a23_0x569597={};a23_0x569597[a23_0x858b5d(0x16c)]=a23_0x858b5d(0x172);const a23_0x1426c6={};a23_0x1426c6[a23_0x858b5d(0x181)]=!![];const a23_0x502e99={};a23_0x502e99[a23_0x858b5d(0x16e)]=a23_0x858b5d(0x16d),exports[a23_0x858b5d(0x180)]=new winston[(a23_0x858b5d(0x187))]({'format':winston[a23_0x858b5d(0x16c)][a23_0x858b5d(0x18d)](winston[a23_0x858b5d(0x16c)][a23_0x858b5d(0x170)](a23_0x569597),winston['format'][a23_0x858b5d(0x177)](a23_0x1426c6),winston[a23_0x858b5d(0x16c)][a23_0x858b5d(0x182)](_0x1dfa2a=>_0x1dfa2a['timestamp']+a23_0x858b5d(0x17c)+_0x1dfa2a[a23_0x858b5d(0x181)]+':\x20'+_0x1dfa2a['message'])),'transports':[new winston[(a23_0x858b5d(0x171))][(a23_0x858b5d(0x17a))](a23_0x502e99),new winston[(a23_0x858b5d(0x171))][(a23_0x858b5d(0x18b))]({'filename':path[a23_0x858b5d(0x184)](logDir,'events.log'),'level':a23_0x858b5d(0x179)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x858b5d(0x171))][(a23_0x858b5d(0x18b))]({'filename':path[a23_0x858b5d(0x184)](logDir,a23_0x858b5d(0x17b)),'level':'debug'})]};function a23_0x1cac(){const _0x697c69=['colorize','48528SYPwNL','debug','Console','usage.log','\x20-\x20','340cRaTPP','5784006EIIZRH','1713FAGRst','logger','level','printf','log','join','2455gfNeni','existsSync','createLogger','winston','mkdirSync','7390tGCkLl','File','fileLogger','combine','format','console.info','name','3646DXrgWQ','timestamp','transports','YYYY-MM-DD\x20HH:mm:ss','path','7806561adSIVD','475654ELbHAG','8522520oNWaLa'];a23_0x1cac=function(){return _0x697c69;};return a23_0x1cac();}exports[a23_0x858b5d(0x18c)]=new winston[(a23_0x858b5d(0x187))](winstonFileLoggerParams);
1
+ const a23_0x583131=a23_0x3f6c;(function(_0x142c5b,_0x28a392){const _0x1ac718=a23_0x3f6c,_0x3966af=_0x142c5b();while(!![]){try{const _0x2480e6=-parseInt(_0x1ac718(0x1a4))/0x1*(parseInt(_0x1ac718(0x1ac))/0x2)+-parseInt(_0x1ac718(0x19b))/0x3+parseInt(_0x1ac718(0x1b3))/0x4+parseInt(_0x1ac718(0x1b4))/0x5+parseInt(_0x1ac718(0x1aa))/0x6+parseInt(_0x1ac718(0x195))/0x7+-parseInt(_0x1ac718(0x1b0))/0x8;if(_0x2480e6===_0x28a392)break;else _0x3966af['push'](_0x3966af['shift']());}catch(_0x12f915){_0x3966af['push'](_0x3966af['shift']());}}}(a23_0x1f25,0xdfc78));function a23_0x3f6c(_0x378e9c,_0x5cddf5){const _0x1f25a6=a23_0x1f25();return a23_0x3f6c=function(_0x3f6c74,_0x17b60d){_0x3f6c74=_0x3f6c74-0x194;let _0x353e66=_0x1f25a6[_0x3f6c74];return _0x353e66;},a23_0x3f6c(_0x378e9c,_0x5cddf5);}const winston=require('winston'),fs=require('fs'),path=require(a23_0x583131(0x1a5)),logDir=a23_0x583131(0x1a9);!fs[a23_0x583131(0x19d)](logDir)&&fs[a23_0x583131(0x1b2)](logDir);const a23_0x2d8e56={};a23_0x2d8e56[a23_0x583131(0x19f)]=a23_0x583131(0x196);const a23_0x52227f={};a23_0x52227f[a23_0x583131(0x199)]=!![];const a23_0x379b79={};a23_0x379b79[a23_0x583131(0x1a7)]=a23_0x583131(0x1a6),exports[a23_0x583131(0x1a1)]=new winston[(a23_0x583131(0x1b1))]({'format':winston[a23_0x583131(0x19f)][a23_0x583131(0x1ae)](winston[a23_0x583131(0x19f)][a23_0x583131(0x19c)](a23_0x2d8e56),winston[a23_0x583131(0x19f)][a23_0x583131(0x1ad)](a23_0x52227f),winston[a23_0x583131(0x19f)][a23_0x583131(0x1a2)](_0x22e0f7=>_0x22e0f7[a23_0x583131(0x19c)]+a23_0x583131(0x1a3)+_0x22e0f7['level']+':\x20'+_0x22e0f7[a23_0x583131(0x1a0)])),'transports':[new winston[(a23_0x583131(0x198))][(a23_0x583131(0x197))](a23_0x379b79),new winston[(a23_0x583131(0x198))][(a23_0x583131(0x1a8))]({'filename':path[a23_0x583131(0x194)](logDir,a23_0x583131(0x19e)),'level':a23_0x583131(0x1af)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x583131(0x198))][(a23_0x583131(0x1a8))]({'filename':path[a23_0x583131(0x194)](logDir,a23_0x583131(0x1ab)),'level':a23_0x583131(0x1af)})]};exports[a23_0x583131(0x19a)]=new winston[(a23_0x583131(0x1b1))](winstonFileLoggerParams);function a23_0x1f25(){const _0x294c81=['\x20-\x20','582793ORioLe','path','console.info','name','File','log','7426872BIatpG','usage.log','2baZjZG','colorize','combine','debug','4664648BCyxrF','createLogger','mkdirSync','1167376CEJvIR','5267230iGDHYm','join','54705TePKjD','YYYY-MM-DD\x20HH:mm:ss','Console','transports','level','fileLogger','1525329LLGaue','timestamp','existsSync','events.log','format','message','logger','printf'];a23_0x1f25=function(){return _0x294c81;};return a23_0x1f25();}
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x3e2a11=a24_0x4c7b;(function(_0x5b85c7,_0xa9b650){const _0x4f4233=a24_0x4c7b,_0x131ed6=_0x5b85c7();while(!![]){try{const _0x377f10=parseInt(_0x4f4233(0x104))/0x1+parseInt(_0x4f4233(0x102))/0x2+parseInt(_0x4f4233(0x10d))/0x3+-parseInt(_0x4f4233(0x107))/0x4*(parseInt(_0x4f4233(0x108))/0x5)+parseInt(_0x4f4233(0x103))/0x6*(parseInt(_0x4f4233(0x10f))/0x7)+-parseInt(_0x4f4233(0x10a))/0x8*(parseInt(_0x4f4233(0x10e))/0x9)+parseInt(_0x4f4233(0x105))/0xa;if(_0x377f10===_0xa9b650)break;else _0x131ed6['push'](_0x131ed6['shift']());}catch(_0x2c35e7){_0x131ed6['push'](_0x131ed6['shift']());}}}(a24_0xfefb,0xbd712));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3e2a11(0x100));function a24_0x4c7b(_0x5e5d38,_0x2ab56e){const _0xfefb79=a24_0xfefb();return a24_0x4c7b=function(_0x4c7b33,_0x5740f0){_0x4c7b33=_0x4c7b33-0x100;let _0x50377b=_0xfefb79[_0x4c7b33];return _0x50377b;},a24_0x4c7b(_0x5e5d38,_0x2ab56e);}process[a24_0x3e2a11(0x106)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x38259c){const _0x163c10=a24_0x3e2a11,_0x56b093={};_0x56b093[_0x163c10(0x10b)]=_0x163c10(0x110),_0x56b093['VjutO']='help';const _0x59ac59=_0x56b093;_0x38259c[_0x163c10(0x109)](HELP_HEADER_MESSAGE[_0x163c10(0x10c)])[_0x163c10(0x113)](_0x59ac59[_0x163c10(0x10b)])[_0x163c10(0x112)]()[_0x163c10(0x111)](_0x59ac59['VjutO'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x3e2a11(0x101)]=run;function a24_0xfefb(){const _0x1dc1e5=['help','demandCommand','commandDir','./config/constants','exports','2256718FayJAt','78TKrUlH','525752lDVKuC','2352710zpIeYQ','env','148AYVhlN','188915HQcbwN','usage','104KPxROr','IUwmf','root','1229277EPMHvq','733113hnvoch','502775frvoBe','commands'];a24_0xfefb=function(){return _0x1dc1e5;};return a24_0xfefb();}
2
+ 'use strict';function a24_0x4938(_0x572bce,_0x21b5c4){const _0x4b3bde=a24_0x4b3b();return a24_0x4938=function(_0x4938b2,_0x1e35a3){_0x4938b2=_0x4938b2-0x162;let _0x4a21d7=_0x4b3bde[_0x4938b2];return _0x4a21d7;},a24_0x4938(_0x572bce,_0x21b5c4);}const a24_0x22a56a=a24_0x4938;(function(_0x13f6d4,_0x48f3a7){const _0x4ab7b2=a24_0x4938,_0xe6157c=_0x13f6d4();while(!![]){try{const _0x59bb1e=-parseInt(_0x4ab7b2(0x171))/0x1*(-parseInt(_0x4ab7b2(0x170))/0x2)+parseInt(_0x4ab7b2(0x167))/0x3*(-parseInt(_0x4ab7b2(0x16a))/0x4)+-parseInt(_0x4ab7b2(0x163))/0x5+parseInt(_0x4ab7b2(0x16c))/0x6*(parseInt(_0x4ab7b2(0x16e))/0x7)+-parseInt(_0x4ab7b2(0x166))/0x8*(parseInt(_0x4ab7b2(0x16d))/0x9)+parseInt(_0x4ab7b2(0x16f))/0xa+-parseInt(_0x4ab7b2(0x179))/0xb*(parseInt(_0x4ab7b2(0x172))/0xc);if(_0x59bb1e===_0x48f3a7)break;else _0xe6157c['push'](_0xe6157c['shift']());}catch(_0x150820){_0xe6157c['push'](_0xe6157c['shift']());}}}(a24_0x4b3b,0x4eb7f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x22a56a(0x162));function a24_0x4b3b(){const _0x4b1353=['commandDir','root','demandCommand','49071YiYcYr','./config/constants','1005105OGwmfB','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports','16ROhCQa','12PDtOAa','help','iaypg','282964znmwzF','env','228YMjots','1507833eakLCK','101619eeuEWz','2023930zoFQai','53450WGqnQa','16uSCNBj','108FTRBoB','usage','ruQhe','commands'];a24_0x4b3b=function(){return _0x4b1353;};return a24_0x4b3b();}process[a24_0x22a56a(0x16b)][a24_0x22a56a(0x164)]=0x1;function run(_0x4a18cc){const _0x2a0f0d=a24_0x22a56a,_0x4e9f29={};_0x4e9f29[_0x2a0f0d(0x174)]=_0x2a0f0d(0x175),_0x4e9f29[_0x2a0f0d(0x169)]='help';const _0x3e42b9=_0x4e9f29;_0x4a18cc[_0x2a0f0d(0x173)](HELP_HEADER_MESSAGE[_0x2a0f0d(0x177)])[_0x2a0f0d(0x176)](_0x3e42b9[_0x2a0f0d(0x174)])[_0x2a0f0d(0x178)]()[_0x2a0f0d(0x168)](_0x3e42b9[_0x2a0f0d(0x169)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x22a56a(0x165)]=run;