browserstack-node-sdk 1.40.8 → 1.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/browserstack.pw.yml.sample +3 -3
  41. package/browserstack.yml.sample +3 -3
  42. package/package.json +1 -1
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/processHelper.js +1 -1
  154. package/src/helpers/request-spy.js +1 -1
  155. package/src/helpers/setKeepAlive.js +1 -1
  156. package/src/helpers/test-observability/constants.js +1 -1
  157. package/src/helpers/test-observability/error-handler.js +1 -1
  158. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  159. package/src/helpers/test-observability/sessionHandler.js +1 -1
  160. package/src/helpers/test-observability/utils.js +1 -1
  161. package/src/helpers/test-orchestration/constants.js +1 -1
  162. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  163. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  164. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  165. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  166. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  167. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  168. package/src/helpers/testhub/constants.js +1 -1
  169. package/src/helpers/testhub/testhubHandler.js +1 -1
  170. package/src/helpers/testhub/utils.js +1 -1
  171. package/src/helpers/timeoutPromise.js +1 -1
  172. package/src/helpers/utilities.js +1 -1
  173. package/src/helpers/w3cMapping.js +1 -1
  174. package/src/hubAllocationMethods.js +1 -1
  175. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x3a490a=a15_0x29ae;(function(_0x2382d1,_0x33e52f){const _0x5f0093=a15_0x29ae,_0x2bebe8=_0x2382d1();while(!![]){try{const _0xb3bb9f=-parseInt(_0x5f0093(0x158))/0x1+-parseInt(_0x5f0093(0x145))/0x2+parseInt(_0x5f0093(0x16c))/0x3+-parseInt(_0x5f0093(0x193))/0x4+-parseInt(_0x5f0093(0x189))/0x5*(parseInt(_0x5f0093(0x176))/0x6)+parseInt(_0x5f0093(0x195))/0x7*(parseInt(_0x5f0093(0x180))/0x8)+-parseInt(_0x5f0093(0x156))/0x9*(-parseInt(_0x5f0093(0x14c))/0xa);if(_0xb3bb9f===_0x33e52f)break;else _0x2bebe8['push'](_0x2bebe8['shift']());}catch(_0x361b0a){_0x2bebe8['push'](_0x2bebe8['shift']());}}}(a15_0x225f,0x2f907));const fs=require('fs'),got=require(a15_0x3a490a(0x160)),{table}=require(a15_0x3a490a(0x169)),{v4:uuidv4}=require(a15_0x3a490a(0x16e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3a490a(0x179)),{getCredentialsPath,getAuthHeader}=require(a15_0x3a490a(0x148)),{sendInstrumentationEvent}=require(a15_0x3a490a(0x17e));function a15_0x29ae(_0x18d0bc,_0x1f385c){const _0x225fea=a15_0x225f();return a15_0x29ae=function(_0x29ae89,_0x121b1){_0x29ae89=_0x29ae89-0x13c;let _0x5306fe=_0x225fea[_0x29ae89];return _0x5306fe;},a15_0x29ae(_0x18d0bc,_0x1f385c);}exports[a15_0x3a490a(0x18d)]='grids',exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x3a490a(0x164)]=function(_0x4db567){const _0x459749=a15_0x3a490a,_0x4ba77f={};_0x4ba77f[_0x459749(0x18f)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x4ba77f['BoluA']=_0x459749(0x17c),_0x4ba77f[_0x459749(0x174)]=_0x459749(0x15d);const _0x1ad1fa=_0x4ba77f,_0x3560e0={};_0x3560e0['description']=_0x1ad1fa[_0x459749(0x18f)],_0x3560e0[_0x459749(0x157)]=_0x1ad1fa['BoluA'];const _0xdd706c={};return _0xdd706c[_0x459749(0x143)]=_0x3560e0,_0x4db567['usage'](HELP_HEADER_MESSAGE[_0x459749(0x162)][_0x459749(0x13e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x459749(0x17d)](_0xdd706c)[_0x459749(0x15d)](_0x1ad1fa['TyZbF'])[_0x459749(0x15f)];},exports[a15_0x3a490a(0x187)]=async function(_0x3b7319){const _0x4b2cf0=a15_0x3a490a,_0x61f0b4={'vgwOu':function(_0x367ed6){return _0x367ed6();},'vCLkq':function(_0x23b0a5){return _0x23b0a5();},'NnXDi':_0x4b2cf0(0x177),'rRwCE':function(_0x3d3396,_0x5c5a58,_0x53598c,_0x4eccf4,_0x5f20c1,_0x4a8bb0,_0x264243){return _0x3d3396(_0x5c5a58,_0x53598c,_0x4eccf4,_0x5f20c1,_0x4a8bb0,_0x264243);},'AeGRJ':'list-grids-called','txqwv':_0x4b2cf0(0x194),'tbUjv':function(_0x31001d){return _0x31001d();},'cpWrA':_0x4b2cf0(0x13d),'tVRPZ':function(_0x518b78,_0x44051c,_0x40b1b1){return _0x518b78(_0x44051c,_0x40b1b1);},'rzmrx':function(_0xe83f0d,_0xd997de,_0x4cf939,_0x549f96,_0x5d210c,_0x591d6e,_0x11b172){return _0xe83f0d(_0xd997de,_0x4cf939,_0x549f96,_0x5d210c,_0x591d6e,_0x11b172);},'rWUiW':function(_0x31df21,_0x4beb61){return _0x31df21!==_0x4beb61;},'FEdel':function(_0x32d9e6,_0x4c45b0){return _0x32d9e6!==_0x4c45b0;},'eSZhQ':function(_0x399c19,_0x535c3d){return _0x399c19===_0x535c3d;},'ngwkg':'\x0aFound\x20the\x20following\x20grids:\x0a','XndDJ':_0x4b2cf0(0x182),'middA':_0x4b2cf0(0x15e),'nZPxQ':_0x4b2cf0(0x159),'RqzSt':_0x4b2cf0(0x170),'xokzN':'queued','uMuuf':_0x4b2cf0(0x172),'bWtIJ':function(_0x473270,_0x2683ea){return _0x473270(_0x2683ea);},'IvBkv':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FWCNu':_0x4b2cf0(0x15c),'TnEqZ':function(_0x1edcbf,_0xabe6fc,_0x5d2493,_0x27c275,_0xe75b6b,_0x290d73,_0x3d55ce){return _0x1edcbf(_0xabe6fc,_0x5d2493,_0x27c275,_0xe75b6b,_0x290d73,_0x3d55ce);},'mKbsA':_0x4b2cf0(0x142),'xGHqV':function(_0x3edb4f,_0x2a2065,_0x1462fb,_0x29869e,_0x55972b,_0x2a074c,_0x57d899){return _0x3edb4f(_0x2a2065,_0x1462fb,_0x29869e,_0x55972b,_0x2a074c,_0x57d899);},'BdZrX':_0x4b2cf0(0x146)};try{global_registry[_0x4b2cf0(0x173)]=_0x61f0b4[_0x4b2cf0(0x141)](uuidv4);!fs[_0x4b2cf0(0x192)](_0x61f0b4[_0x4b2cf0(0x15a)](getCredentialsPath))&&(console[_0x4b2cf0(0x18a)](_0x61f0b4[_0x4b2cf0(0x18b)]),await _0x61f0b4[_0x4b2cf0(0x190)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4[_0x4b2cf0(0x152)],messageTypes['ERROR'],_0x61f0b4[_0x4b2cf0(0x150)],null,_0x3b7319),process['exit'](0x1));const _0x3446f8=JSON[_0x4b2cf0(0x165)](fs[_0x4b2cf0(0x154)](_0x61f0b4[_0x4b2cf0(0x153)](getCredentialsPath)));let _0xb4a64c=_0x4b2cf0(0x186)+AG_API_URL+'/packages/cli/get-grids';_0x3b7319['allGrids']&&(_0xb4a64c=_0x4b2cf0(0x186)+AG_API_URL+_0x4b2cf0(0x163));const _0x5d61dd={'method':_0x61f0b4[_0x4b2cf0(0x14d)],'headers':_0x61f0b4[_0x4b2cf0(0x147)](getAuthHeader,_0x3446f8[_0x4b2cf0(0x13f)][_0x4b2cf0(0x17a)],_0x3446f8[_0x4b2cf0(0x13f)]['password']),'throwHttpErrors':![]};global_registry[_0x4b2cf0(0x166)]=_0x3446f8[_0x4b2cf0(0x13f)][_0x4b2cf0(0x17a)],global_registry[_0x4b2cf0(0x149)]=_0x3446f8['Browserstack']['password'],_0x61f0b4[_0x4b2cf0(0x14b)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4[_0x4b2cf0(0x152)],messageTypes[_0x4b2cf0(0x16a)],null,null,_0x3b7319);const _0x582133=await _0x61f0b4[_0x4b2cf0(0x147)](got,_0xb4a64c,_0x5d61dd);if(_0x61f0b4[_0x4b2cf0(0x16f)](_0x582133,null)&&_0x61f0b4['FEdel'](_0x582133,undefined)&&_0x61f0b4[_0x4b2cf0(0x17f)](_0x582133[_0x4b2cf0(0x168)],0xc8)){const _0x3ee0a3=JSON[_0x4b2cf0(0x165)](_0x582133[_0x4b2cf0(0x151)]);console['log'](_0x61f0b4[_0x4b2cf0(0x17b)]);const _0x1f1d3e=[];_0x1f1d3e[_0x4b2cf0(0x161)]([_0x61f0b4[_0x4b2cf0(0x185)],_0x61f0b4[_0x4b2cf0(0x155)],_0x61f0b4[_0x4b2cf0(0x171)],_0x61f0b4[_0x4b2cf0(0x144)],_0x61f0b4[_0x4b2cf0(0x167)],_0x61f0b4[_0x4b2cf0(0x18e)]]),_0x3ee0a3[_0x4b2cf0(0x188)](_0x177bdc=>{const _0x446b6e=_0x4b2cf0;_0x1f1d3e['push']([_0x177bdc['id'],_0x177bdc['name'],_0x177bdc[_0x446b6e(0x159)],_0x177bdc['running'],_0x177bdc[_0x446b6e(0x18c)],_0x177bdc[_0x446b6e(0x178)]]);}),console[_0x4b2cf0(0x140)](_0x61f0b4[_0x4b2cf0(0x181)](table,_0x1f1d3e)),process[_0x4b2cf0(0x175)](0x0);}_0x61f0b4[_0x4b2cf0(0x17f)](_0x582133['statusCode'],0x191)&&(console['error'](_0x61f0b4['IvBkv']),await _0x61f0b4['rzmrx'](sendInstrumentationEvent,_0x3b7319,_0x61f0b4[_0x4b2cf0(0x152)],messageTypes[_0x4b2cf0(0x16d)],_0x61f0b4[_0x4b2cf0(0x14a)],null,_0x3b7319),process['exit'](0x1)),console['error'](_0x4b2cf0(0x184)+JSON[_0x4b2cf0(0x15b)](_0x582133)),await _0x61f0b4[_0x4b2cf0(0x14e)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4['AeGRJ'],messageTypes[_0x4b2cf0(0x16d)],_0x61f0b4[_0x4b2cf0(0x13c)],_0x582133,_0x3b7319),process[_0x4b2cf0(0x175)](0x1);}catch(_0x56ce25){console['error'](_0x4b2cf0(0x16b)+_0x56ce25[_0x4b2cf0(0x183)]),await _0x61f0b4[_0x4b2cf0(0x191)](sendInstrumentationEvent,_0x3b7319,_0x61f0b4['AeGRJ'],messageTypes[_0x4b2cf0(0x16d)],_0x61f0b4[_0x4b2cf0(0x14f)],_0x56ce25,_0x3b7319),process['exit'](0x1);}};function a15_0x225f(){const _0x283d1c=['parse','bstackUsername','xokzN','statusCode','table','INFO','Failed\x20to\x20list\x20resources!\x20Error:\x20','134250iECirX','ERROR','uuid','rWUiW','running','nZPxQ','cluster-name','requestId','TyZbF','exit','48798JHPKYj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','clusterName','../../config/constants','username','ngwkg','boolean','options','../../utils/instrumentationUtils','eSZhQ','391248vQXfJf','bWtIJ','grid-id','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XndDJ','https://','handler','forEach','135CONWkd','error','NnXDi','queued','command','uMuuf','uqEan','rRwCE','xGHqV','existsSync','1553416EaKsKS','init-not-called','35FXceLa','mKbsA','GET','grid','Browserstack','log','vgwOu','server-error','all-grids','RqzSt','233654ofGRqG','unknown-error','tVRPZ','../../utils/utilityMethods','bstackAccesskey','FWCNu','rzmrx','510mEoKDt','cpWrA','TnEqZ','BdZrX','txqwv','body','AeGRJ','tbUjv','readFileSync','middA','161307xaGImA','type','283758SaRbGA','status','vCLkq','stringify','unauthorised','help','grid-name','argv','got','push','list','/packages/cli/get-all-grids','builder'];a15_0x225f=function(){return _0x283d1c;};return a15_0x225f();}
1
+ function a15_0x4fdb(_0xb3aafe,_0x4ab66e){const _0x3363ee=a15_0x3363();return a15_0x4fdb=function(_0x4fdb62,_0x5f3636){_0x4fdb62=_0x4fdb62-0xa0;let _0x116869=_0x3363ee[_0x4fdb62];return _0x116869;},a15_0x4fdb(_0xb3aafe,_0x4ab66e);}const a15_0x5a4508=a15_0x4fdb;(function(_0x429f89,_0x86c479){const _0x33026a=a15_0x4fdb,_0x1135ac=_0x429f89();while(!![]){try{const _0x257f1c=parseInt(_0x33026a(0xf0))/0x1*(-parseInt(_0x33026a(0xb6))/0x2)+parseInt(_0x33026a(0xcb))/0x3*(-parseInt(_0x33026a(0xef))/0x4)+parseInt(_0x33026a(0xd6))/0x5+parseInt(_0x33026a(0xe1))/0x6+-parseInt(_0x33026a(0xfc))/0x7*(-parseInt(_0x33026a(0xb0))/0x8)+-parseInt(_0x33026a(0xc9))/0x9+-parseInt(_0x33026a(0xd2))/0xa*(-parseInt(_0x33026a(0xaf))/0xb);if(_0x257f1c===_0x86c479)break;else _0x1135ac['push'](_0x1135ac['shift']());}catch(_0x549d93){_0x1135ac['push'](_0x1135ac['shift']());}}}(a15_0x3363,0x33d22));const fs=require('fs'),got=require(a15_0x5a4508(0xca)),{table}=require(a15_0x5a4508(0xb9)),{v4:uuidv4}=require(a15_0x5a4508(0xf9)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5a4508(0xa4)),{getCredentialsPath,getAuthHeader}=require(a15_0x5a4508(0xc5)),{sendInstrumentationEvent}=require(a15_0x5a4508(0xdc));exports[a15_0x5a4508(0xa9)]=a15_0x5a4508(0xcd),exports[a15_0x5a4508(0xa6)]=a15_0x5a4508(0xf4),exports[a15_0x5a4508(0xf5)]=function(_0x40ec13){const _0x2a924f=a15_0x5a4508,_0x154c20={};_0x154c20[_0x2a924f(0xb1)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x154c20[_0x2a924f(0xfb)]='boolean',_0x154c20[_0x2a924f(0xbb)]=_0x2a924f(0xd8);const _0x1d3951=_0x154c20,_0x37c7e6={};_0x37c7e6[_0x2a924f(0xf2)]=_0x1d3951[_0x2a924f(0xb1)],_0x37c7e6[_0x2a924f(0xc8)]=_0x1d3951['xLaxE'];const _0x51aba8={};return _0x51aba8[_0x2a924f(0xbd)]=_0x37c7e6,_0x40ec13['usage'](HELP_HEADER_MESSAGE[_0x2a924f(0xec)][_0x2a924f(0xe7)])[_0x2a924f(0xd1)](HELP_FOOTER_MESSAGE)[_0x2a924f(0xa1)](_0x51aba8)['help'](_0x1d3951[_0x2a924f(0xbb)])[_0x2a924f(0xd5)];},exports[a15_0x5a4508(0xcc)]=async function(_0x377556){const _0x598c52=a15_0x5a4508,_0x1e1c10={'eCBsX':function(_0x41a74c){return _0x41a74c();},'FnxIC':function(_0x3bf626){return _0x3bf626();},'dbqGZ':_0x598c52(0xd4),'OcBIW':function(_0x35b126,_0x53aad6,_0x8867b8,_0x55685a,_0x3e3b24,_0x47e426,_0x245810){return _0x35b126(_0x53aad6,_0x8867b8,_0x55685a,_0x3e3b24,_0x47e426,_0x245810);},'EVvUK':_0x598c52(0xea),'CYdrO':_0x598c52(0xfd),'eTnvN':function(_0x312e1e){return _0x312e1e();},'zOSlH':_0x598c52(0xe9),'HLCam':function(_0x1070ff,_0x38452b,_0x31cdf3){return _0x1070ff(_0x38452b,_0x31cdf3);},'WbCAx':function(_0xc8c3cf,_0x142c54,_0xe0d114,_0x45ad0d,_0x5e6373,_0x44fe4b,_0x1f5121){return _0xc8c3cf(_0x142c54,_0xe0d114,_0x45ad0d,_0x5e6373,_0x44fe4b,_0x1f5121);},'jWDVH':function(_0x1783b5,_0x34d0d4){return _0x1783b5!==_0x34d0d4;},'vvwMo':function(_0xe49e6f,_0x5bbdde){return _0xe49e6f===_0x5bbdde;},'PzLUw':_0x598c52(0xb5),'KngaA':'grid-id','kFqFA':_0x598c52(0xc1),'QVZQf':_0x598c52(0xa8),'jZUjC':_0x598c52(0xdd),'aCaAY':'queued','gHxvS':'cluster-name','QmJyb':function(_0x34f4b5,_0x44c131){return _0x34f4b5(_0x44c131);},'pCLeJ':_0x598c52(0xb3),'obpCa':function(_0x493b5b,_0x50a022,_0x1c7230,_0x15a006,_0x2856aa,_0x489db1,_0x1f00dd){return _0x493b5b(_0x50a022,_0x1c7230,_0x15a006,_0x2856aa,_0x489db1,_0x1f00dd);},'lTmoc':'unauthorised','JAaob':function(_0x37cbec,_0x4d56e9,_0x58a42d,_0x29554a,_0x59629e,_0x513258,_0x52ed72){return _0x37cbec(_0x4d56e9,_0x58a42d,_0x29554a,_0x59629e,_0x513258,_0x52ed72);},'SQMsL':_0x598c52(0xf8),'FaZfj':function(_0x54f9a9,_0x3c87c3,_0x14d872,_0x4d68fa,_0x432303,_0x5a5dca,_0x2e8b30){return _0x54f9a9(_0x3c87c3,_0x14d872,_0x4d68fa,_0x432303,_0x5a5dca,_0x2e8b30);},'DGEDE':_0x598c52(0xf6)};try{global_registry['requestId']=_0x1e1c10['eCBsX'](uuidv4);!fs[_0x598c52(0xd9)](_0x1e1c10[_0x598c52(0xe6)](getCredentialsPath))&&(console[_0x598c52(0xcf)](_0x1e1c10[_0x598c52(0xab)]),await _0x1e1c10[_0x598c52(0xe0)](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes['ERROR'],_0x1e1c10[_0x598c52(0xda)],null,_0x377556),process['exit'](0x1));const _0x7e8820=JSON['parse'](fs[_0x598c52(0xaa)](_0x1e1c10[_0x598c52(0xac)](getCredentialsPath)));let _0x359f63=_0x598c52(0xa2)+AG_API_URL+_0x598c52(0xdb);_0x377556['allGrids']&&(_0x359f63=_0x598c52(0xa2)+AG_API_URL+_0x598c52(0xc2));const _0x429989={'method':_0x1e1c10[_0x598c52(0xb7)],'headers':_0x1e1c10['HLCam'](getAuthHeader,_0x7e8820[_0x598c52(0xe4)][_0x598c52(0xed)],_0x7e8820[_0x598c52(0xe4)][_0x598c52(0xa3)]),'throwHttpErrors':![]};global_registry[_0x598c52(0xb8)]=_0x7e8820[_0x598c52(0xe4)][_0x598c52(0xed)],global_registry[_0x598c52(0xbe)]=_0x7e8820[_0x598c52(0xe4)][_0x598c52(0xa3)],_0x1e1c10[_0x598c52(0xe5)](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes[_0x598c52(0xde)],null,null,_0x377556);const _0x1211d6=await _0x1e1c10[_0x598c52(0xf3)](got,_0x359f63,_0x429989);if(_0x1e1c10[_0x598c52(0xee)](_0x1211d6,null)&&_0x1e1c10[_0x598c52(0xee)](_0x1211d6,undefined)&&_0x1e1c10[_0x598c52(0xce)](_0x1211d6[_0x598c52(0xd7)],0xc8)){const _0x63e19e=JSON[_0x598c52(0xfa)](_0x1211d6[_0x598c52(0xe2)]);console['log'](_0x1e1c10[_0x598c52(0xc4)]);const _0x11216e=[];_0x11216e[_0x598c52(0xb4)]([_0x1e1c10[_0x598c52(0xa5)],_0x1e1c10[_0x598c52(0xba)],_0x1e1c10[_0x598c52(0xc3)],_0x1e1c10[_0x598c52(0xa7)],_0x1e1c10['aCaAY'],_0x1e1c10[_0x598c52(0xbf)]]),_0x63e19e[_0x598c52(0xad)](_0x331465=>{const _0x3b751e=_0x598c52;_0x11216e[_0x3b751e(0xb4)]([_0x331465['id'],_0x331465['name'],_0x331465['status'],_0x331465['running'],_0x331465[_0x3b751e(0xae)],_0x331465['clusterName']]);}),console[_0x598c52(0xa0)](_0x1e1c10[_0x598c52(0xb2)](table,_0x11216e)),process['exit'](0x0);}_0x1e1c10['vvwMo'](_0x1211d6[_0x598c52(0xd7)],0x191)&&(console['error'](_0x1e1c10['pCLeJ']),await _0x1e1c10[_0x598c52(0xf7)](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes[_0x598c52(0xe3)],_0x1e1c10[_0x598c52(0xc7)],null,_0x377556),process['exit'](0x1)),console['error'](_0x598c52(0xd0)+JSON[_0x598c52(0xc0)](_0x1211d6)),await _0x1e1c10['JAaob'](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes[_0x598c52(0xe3)],_0x1e1c10[_0x598c52(0xd3)],_0x1211d6,_0x377556),process[_0x598c52(0xf1)](0x1);}catch(_0x4a0e8a){console[_0x598c52(0xcf)](_0x598c52(0xbc)+_0x4a0e8a[_0x598c52(0xe8)]),await _0x1e1c10[_0x598c52(0xc6)](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes['ERROR'],_0x1e1c10[_0x598c52(0xeb)],_0x4a0e8a,_0x377556),process[_0x598c52(0xf1)](0x1);}};function a15_0x3363(){const _0x268f7b=['QmJyb','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','push','\x0aFound\x20the\x20following\x20grids:\x0a','2bbKZAr','zOSlH','bstackUsername','table','kFqFA','Kaxkk','Failed\x20to\x20list\x20resources!\x20Error:\x20','all-grids','bstackAccesskey','gHxvS','stringify','grid-name','/packages/cli/get-all-grids','QVZQf','PzLUw','../../utils/utilityMethods','FaZfj','lTmoc','type','1702305JmRQQG','got','447yiAQvT','handler','grids','vvwMo','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','epilogue','170eEVRKt','SQMsL','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','argv','918415TmNurw','statusCode','help','existsSync','CYdrO','/packages/cli/get-grids','../../utils/instrumentationUtils','running','INFO','EVvUK','OcBIW','853734EeZNoU','body','ERROR','Browserstack','WbCAx','FnxIC','grid','stack','GET','list-grids-called','DGEDE','list','username','jWDVH','3468SXydbk','323719Wccohp','exit','description','HLCam','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','builder','unknown-error','obpCa','server-error','uuid','parse','xLaxE','1047130xjPpvj','init-not-called','log','options','https://','password','../../config/constants','KngaA','desc','jZUjC','status','command','readFileSync','dbqGZ','eTnvN','forEach','queued','245069SPuiSO','8CHufBO','RZQks'];a15_0x3363=function(){return _0x268f7b;};return a15_0x3363();}
@@ -1 +1 @@
1
- const a16_0x34873e=a16_0x5550;(function(_0x429e54,_0x3d5fc6){const _0xad9144=a16_0x5550,_0x22e33f=_0x429e54();while(!![]){try{const _0x43984b=parseInt(_0xad9144(0x1ef))/0x1+-parseInt(_0xad9144(0x1f3))/0x2*(parseInt(_0xad9144(0x1ec))/0x3)+-parseInt(_0xad9144(0x1f1))/0x4*(parseInt(_0xad9144(0x1fd))/0x5)+-parseInt(_0xad9144(0x1ee))/0x6*(parseInt(_0xad9144(0x1f0))/0x7)+parseInt(_0xad9144(0x1ed))/0x8*(parseInt(_0xad9144(0x1f6))/0x9)+parseInt(_0xad9144(0x1fa))/0xa+parseInt(_0xad9144(0x200))/0xb;if(_0x43984b===_0x3d5fc6)break;else _0x22e33f['push'](_0x22e33f['shift']());}catch(_0x44ce14){_0x22e33f['push'](_0x22e33f['shift']());}}}(a16_0x145c,0xd4007));function a16_0x5550(_0x5e80e9,_0x2ec80b){const _0x145ce1=a16_0x145c();return a16_0x5550=function(_0x5550bc,_0x2928c3){_0x5550bc=_0x5550bc-0x1ec;let _0x32f305=_0x145ce1[_0x5550bc];return _0x32f305;},a16_0x5550(_0x5e80e9,_0x2ec80b);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x34873e(0x1f4));function a16_0x145c(){const _0x5dbbfd=['8yDhPjT','198rZBBDD','994233rVEJiC','287077xAJFMm','16UcAffq','mAQhE','778OcIYMP','../config/constants','usage','9264438wCSSZx','pre_check','precheck_commands','command','1652010rNbvhc','yKXPv','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1749875qJazUD','recommendCommands','handler','19239693rmDOAB','2439yuUAjg'];a16_0x145c=function(){return _0x5dbbfd;};return a16_0x145c();}exports[a16_0x34873e(0x1f9)]='pre-check',exports['desc']=a16_0x34873e(0x1fc),exports['builder']=function(_0x58a915){const _0x4e08f9=a16_0x34873e,_0x147f25={};_0x147f25[_0x4e08f9(0x1f2)]=_0x4e08f9(0x1f8),_0x147f25[_0x4e08f9(0x1fb)]='help';const _0x14edeb=_0x147f25;return _0x58a915[_0x4e08f9(0x1f5)](HELP_HEADER_MESSAGE[_0x4e08f9(0x1f7)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x14edeb[_0x4e08f9(0x1f2)])['demandCommand']()[_0x4e08f9(0x1fe)]()['strict']()['help'](_0x14edeb[_0x4e08f9(0x1fb)]);},exports[a16_0x34873e(0x1ff)]=function(_0x42b201){};
1
+ const a16_0x565abb=a16_0x4062;function a16_0x1da3(){const _0x295916=['usage','pre-check','6880ZHBuMU','5833010DZzbTW','39pYqKPy','3844QuvUWQ','epilogue','3321608Vgfbwt','command','14WISJrn','precheck_commands','2590353EREESb','strict','help','builder','61642pbMpxt','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','4439076pHiBmF','tMDiF','recommendCommands','10130970ltKMYC','commandDir','fImnD','desc'];a16_0x1da3=function(){return _0x295916;};return a16_0x1da3();}(function(_0x17929e,_0xa7e799){const _0x58ea8c=a16_0x4062,_0x3de46e=_0x17929e();while(!![]){try{const _0xbe46ad=parseInt(_0x58ea8c(0xdd))/0x1*(-parseInt(_0x58ea8c(0xd0))/0x2)+-parseInt(_0x58ea8c(0xd2))/0x3+parseInt(_0x58ea8c(0xc6))/0x4*(parseInt(_0x58ea8c(0xdb))/0x5)+parseInt(_0x58ea8c(0xd5))/0x6+-parseInt(_0x58ea8c(0xca))/0x7*(-parseInt(_0x58ea8c(0xc8))/0x8)+parseInt(_0x58ea8c(0xcc))/0x9+-parseInt(_0x58ea8c(0xdc))/0xa;if(_0xbe46ad===_0xa7e799)break;else _0x3de46e['push'](_0x3de46e['shift']());}catch(_0x2741d6){_0x3de46e['push'](_0x3de46e['shift']());}}}(a16_0x1da3,0xd2f26));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x4062(_0x17bc88,_0x2354a5){const _0x1da3e9=a16_0x1da3();return a16_0x4062=function(_0x40625e,_0x4df086){_0x40625e=_0x40625e-0xc6;let _0x471fe1=_0x1da3e9[_0x40625e];return _0x471fe1;},a16_0x4062(_0x17bc88,_0x2354a5);}exports[a16_0x565abb(0xc9)]=a16_0x565abb(0xda),exports[a16_0x565abb(0xd8)]=a16_0x565abb(0xd1),exports[a16_0x565abb(0xcf)]=function(_0x34e0da){const _0x1cf5db=a16_0x565abb,_0x2b78c3={};_0x2b78c3[_0x1cf5db(0xd7)]=_0x1cf5db(0xcb),_0x2b78c3[_0x1cf5db(0xd3)]=_0x1cf5db(0xce);const _0x2426a3=_0x2b78c3;return _0x34e0da[_0x1cf5db(0xd9)](HELP_HEADER_MESSAGE['pre_check'])[_0x1cf5db(0xc7)](HELP_FOOTER_MESSAGE)[_0x1cf5db(0xd6)](_0x2426a3[_0x1cf5db(0xd7)])['demandCommand']()[_0x1cf5db(0xd4)]()[_0x1cf5db(0xcd)]()[_0x1cf5db(0xce)](_0x2426a3[_0x1cf5db(0xd3)]);},exports['handler']=function(_0x468e9c){};
@@ -1 +1 @@
1
- function a17_0x3597(_0x5c5b6a,_0x47ae12){const _0x27aac5=a17_0x27aa();return a17_0x3597=function(_0x35970e,_0x55ee7e){_0x35970e=_0x35970e-0x1c9;let _0x396c33=_0x27aac5[_0x35970e];return _0x396c33;},a17_0x3597(_0x5c5b6a,_0x47ae12);}const a17_0x5db0cb=a17_0x3597;(function(_0x42c882,_0x22b29c){const _0x3cf6e7=a17_0x3597,_0x57e4d4=_0x42c882();while(!![]){try{const _0x54e98e=-parseInt(_0x3cf6e7(0x232))/0x1*(-parseInt(_0x3cf6e7(0x271))/0x2)+parseInt(_0x3cf6e7(0x2c2))/0x3*(-parseInt(_0x3cf6e7(0x231))/0x4)+parseInt(_0x3cf6e7(0x23b))/0x5+parseInt(_0x3cf6e7(0x212))/0x6+-parseInt(_0x3cf6e7(0x281))/0x7+-parseInt(_0x3cf6e7(0x27d))/0x8*(parseInt(_0x3cf6e7(0x2a9))/0x9)+parseInt(_0x3cf6e7(0x24b))/0xa;if(_0x54e98e===_0x22b29c)break;else _0x57e4d4['push'](_0x57e4d4['shift']());}catch(_0x19422f){_0x57e4d4['push'](_0x57e4d4['shift']());}}}(a17_0x27aa,0x6d332));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5db0cb(0x1de)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x5db0cb(0x27e)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x5db0cb(0x224)),{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_0x5db0cb(0x25b)),{getCloudProviderObjectWithOutInit}=require(a17_0x5db0cb(0x250)),webSocketUtils=require(a17_0x5db0cb(0x1d3)),{sendInstrumentationEvent}=require(a17_0x5db0cb(0x263));exports[a17_0x5db0cb(0x288)]=a17_0x5db0cb(0x25d),exports[a17_0x5db0cb(0x22a)]=a17_0x5db0cb(0x275),exports[a17_0x5db0cb(0x206)]=function(_0x34997a){const _0x5ec796=a17_0x5db0cb,_0x17e605={};_0x17e605['XRKZx']=_0x5ec796(0x24d),_0x17e605['ulzGs']=_0x5ec796(0x1d7),_0x17e605[_0x5ec796(0x296)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x17e605['FAEMC']=_0x5ec796(0x26f),_0x17e605[_0x5ec796(0x1f9)]=_0x5ec796(0x2a1),_0x17e605[_0x5ec796(0x1cd)]=_0x5ec796(0x256);const _0x1f10c1=_0x17e605,_0x1a4e77={};_0x1a4e77[_0x5ec796(0x2b1)]=_0x1f10c1['XRKZx'],_0x1a4e77[_0x5ec796(0x230)]=_0x1f10c1[_0x5ec796(0x205)];const _0x2924b3={};_0x2924b3[_0x5ec796(0x2b1)]=_0x1f10c1[_0x5ec796(0x296)],_0x2924b3[_0x5ec796(0x230)]=_0x1f10c1[_0x5ec796(0x205)];const _0x24ec72={};_0x24ec72['description']=_0x1f10c1[_0x5ec796(0x216)],_0x24ec72['type']=_0x1f10c1[_0x5ec796(0x205)];const _0x2d8c19={};_0x2d8c19[_0x5ec796(0x2b1)]=_0x1f10c1['crTAU'],_0x2d8c19[_0x5ec796(0x230)]=_0x1f10c1[_0x5ec796(0x205)];const _0x276ec6={};return _0x276ec6[_0x5ec796(0x211)]=_0x1a4e77,_0x276ec6[_0x5ec796(0x262)]=_0x2924b3,_0x276ec6[_0x5ec796(0x1dd)]=_0x24ec72,_0x276ec6['grid-profile']=_0x2d8c19,_0x34997a[_0x5ec796(0x274)](HELP_HEADER_MESSAGE[_0x5ec796(0x1e4)])[_0x5ec796(0x2c1)](HELP_FOOTER_MESSAGE)['options'](_0x276ec6)[_0x5ec796(0x256)](_0x1f10c1[_0x5ec796(0x1cd)])['argv'];};async function inputValidation(_0x1ff63a,_0x1ba643){const _0xbac165=a17_0x5db0cb,_0x193bc9={'oreWg':_0xbac165(0x1dd),'MboWU':function(_0x33663f,_0x5de73e){return _0x33663f+_0x5de73e;},'onDVF':_0xbac165(0x258),'WSHlB':'Failure','IaCtS':function(_0x1a10f2,_0x195c1c){return _0x1a10f2||_0x195c1c;},'qIiKI':_0xbac165(0x1ee),'sqjid':_0xbac165(0x2ae),'YQWGd':_0xbac165(0x236),'SlZMt':_0xbac165(0x286),'mryHG':'cloud-provider','PxBoB':_0xbac165(0x24d),'PrPbK':_0xbac165(0x1d7),'hErAs':_0xbac165(0x22d),'BsAlW':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','tdrug':_0xbac165(0x2a1),'VKHXK':_0xbac165(0x256),'KPMdh':_0xbac165(0x211),'zPVBh':_0xbac165(0x22e),'GJYDA':function(_0x28d8cf,_0x11c2e6){return _0x28d8cf===_0x11c2e6;},'gAYey':_0xbac165(0x251),'btWzO':function(_0x40c70f,_0x447c89){return _0x40c70f!==_0x447c89;},'OuMsD':_0xbac165(0x1e8),'mQJqf':'oxHlp','sBDTo':_0xbac165(0x203),'JRctL':function(_0x34f2a7,_0x512336){return _0x34f2a7!==_0x512336;},'swuit':_0xbac165(0x28a),'hXBel':_0xbac165(0x242),'vTseg':function(_0x281a57,_0x4bd1be){return _0x281a57!==_0x4bd1be;},'bhMJA':_0xbac165(0x299),'yrFRE':'Rouit','rfjhF':function(_0x4f6903,_0x566c8b){return _0x4f6903>_0x566c8b;},'usMnZ':_0xbac165(0x21f),'qTTRf':function(_0x5c2ad7,_0x559149,_0x206c63,_0x499c0b,_0x1a85fc,_0x451163,_0x22e9a6,_0x2973dd){return _0x5c2ad7(_0x559149,_0x206c63,_0x499c0b,_0x1a85fc,_0x451163,_0x22e9a6,_0x2973dd);},'sUQYu':_0xbac165(0x241),'dwmFP':_0xbac165(0x200),'ndTJb':_0xbac165(0x2c0),'dKkrq':_0xbac165(0x26c),'WBPHW':'KSGIe','rQBir':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','vydbH':_0xbac165(0x2c3),'Fdjnf':_0xbac165(0x290),'axEDy':_0xbac165(0x1e6),'Rutdm':function(_0x4d5b0f,_0x2d515b){return _0x4d5b0f!==_0x2d515b;},'EucVt':'KSuUG','tdoUB':_0xbac165(0x2bc),'Nhznx':_0xbac165(0x29d),'DgvNw':function(_0xa2cc7c,_0x4709fc,_0x2cbf07){return _0xa2cc7c(_0x4709fc,_0x2cbf07);},'yyEpt':function(_0x4a3046,_0x127fac,_0x387bbc,_0x30bb25,_0x3aea71,_0x1284af){return _0x4a3046(_0x127fac,_0x387bbc,_0x30bb25,_0x3aea71,_0x1284af);},'wHBpV':_0xbac165(0x26a),'oCeNV':'grid-profile','RocYC':function(_0x4b0a69,_0x3c01a7){return _0x4b0a69!==_0x3c01a7;},'FsMvp':_0xbac165(0x213),'QWKuv':function(_0x2825c4,_0x256945){return _0x2825c4(_0x256945);},'hHNAf':function(_0x335712,_0x466de8){return _0x335712!==_0x466de8;},'UGxjB':_0xbac165(0x2b5),'ZNRaZ':'AyZAo','qjogi':function(_0x1e7871,_0x387f0a,_0x5a79f6,_0x3e8b4c,_0x54c1f5,_0x59a349,_0x528e41,_0x47bfa1){return _0x1e7871(_0x387f0a,_0x5a79f6,_0x3e8b4c,_0x54c1f5,_0x59a349,_0x528e41,_0x47bfa1);},'hUZVm':'pre-check-grid-profile-empty','WYUxn':function(_0x222274,_0xebf448){return _0x222274!==_0xebf448;},'FGEqO':_0xbac165(0x1f1),'UlKsX':_0xbac165(0x201),'ijWaC':_0xbac165(0x1d4),'YylRS':_0xbac165(0x22f),'nDzho':function(_0x4e619d,_0x550ae5){return _0x4e619d===_0x550ae5;},'cSmGp':_0xbac165(0x1ef),'FyjjO':'OVuYn','LRnCr':'yRKCQ','iRRLy':_0xbac165(0x240)};let _0xcbb2fe;try{if(_0x193bc9[_0xbac165(0x24a)](_0x193bc9['gAYey'],_0x193bc9[_0xbac165(0x289)])){if(_0x1ff63a['clusterName']||_0x1ff63a[_0xbac165(0x23a)]||_0x1ff63a[_0xbac165(0x1dd)]){if(_0x193bc9['btWzO'](_0x193bc9[_0xbac165(0x265)],_0x193bc9[_0xbac165(0x265)]))_0x31b694[_0xbac165(0x233)](0x1);else{const _0x2ee1e3=[];!_0x1ff63a[_0xbac165(0x21b)]&&(_0x193bc9['btWzO'](_0x193bc9['mQJqf'],_0x193bc9['sBDTo'])?_0x2ee1e3['push'](_0x193bc9['KPMdh']):_0x239d0b[_0xbac165(0x247)](_0x193bc9[_0xbac165(0x29a)]));;if(!_0x1ff63a['cloudProvider']){if(_0x193bc9[_0xbac165(0x2ba)](_0x193bc9['swuit'],_0x193bc9[_0xbac165(0x21d)]))_0x2ee1e3[_0xbac165(0x247)](_0x193bc9[_0xbac165(0x217)]);else{const {header:_0x4e333e,response:_0x3287b3}=_0x5e93b1,{status:_0x5456e4,data:_0x155466,error:_0x11ae2a}=_0x3287b3;_0x383e48+=_0x4e333e+'\x20#'+_0x193bc9['MboWU'](_0x5dbf66,0x1)+'\x0a',_0x18cf37+='Status:\x20'+(_0x5456e4?_0x193bc9[_0xbac165(0x1f4)]:_0x193bc9[_0xbac165(0x1d2)])+'\x0a',_0x34664a+=_0xbac165(0x202)+_0x193bc9[_0xbac165(0x2b8)](_0x155466,_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x11ae2a&&(_0x541cae+=_0x193bc9[_0xbac165(0x279)],_0x930b5f+=_0xbac165(0x1f5)+(_0x11ae2a[_0xbac165(0x1fd)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x5097e6+=_0xbac165(0x284)+(_0x11ae2a[_0xbac165(0x1db)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x49e2b7+=_0xbac165(0x222)+(_0x11ae2a[_0xbac165(0x20d)]||_0x193bc9[_0xbac165(0x227)])+'\x0a'),_0x3915e4+='\x0a\x0a';}};!_0x1ff63a[_0xbac165(0x1dd)]&&(_0x193bc9[_0xbac165(0x2af)](_0x193bc9['bhMJA'],_0x193bc9[_0xbac165(0x1e5)])?_0x2ee1e3[_0xbac165(0x247)](_0x193bc9[_0xbac165(0x29a)]):(_0x28e677+=_0x193bc9['sqjid'],_0x4c4d2a+=_0xbac165(0x1f5)+(_0x198c9a[_0xbac165(0x1fd)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x56e775+=_0xbac165(0x284)+(_0x3b5ff8[_0xbac165(0x1db)]||_0x193bc9[_0xbac165(0x227)])+'\x0a',_0x1b4109+=_0xbac165(0x222)+(_0x40a2fd[_0xbac165(0x20d)]||_0x193bc9[_0xbac165(0x227)])+'\x0a'));;_0x193bc9[_0xbac165(0x20b)](_0x2ee1e3[_0xbac165(0x20c)],0x0)&&(_0x193bc9[_0xbac165(0x2af)](_0x193bc9[_0xbac165(0x2b7)],_0x193bc9[_0xbac165(0x2b7)])?_0x3d2cad[_0xbac165(0x2c0)]('error\x20stack\x20:\x20'+_0x121881[_0xbac165(0x2c0)][_0xbac165(0x20d)]):(_0xcbb2fe=_0xbac165(0x294)+_0x2ee1e3['join'](',\x20')+_0xbac165(0x1dc),await _0x193bc9[_0xbac165(0x238)](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes[_0xbac165(0x1e2)],_0x193bc9['sUQYu'],_0x193bc9[_0xbac165(0x1f2)],_0x193bc9[_0xbac165(0x207)]),logger[_0xbac165(0x2c0)](_0xcbb2fe),process[_0xbac165(0x233)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0xbac165(0x23d)](_0x1ff63a[_0xbac165(0x23a)]['toLowerCase']())&&(_0x193bc9[_0xbac165(0x2ba)](_0x193bc9[_0xbac165(0x215)],_0x193bc9['WBPHW'])?(_0xcbb2fe=_0x193bc9[_0xbac165(0x22b)],await _0x193bc9['qTTRf'](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes['ERROR'],_0x193bc9['sUQYu'],_0x193bc9['vydbH'],_0x193bc9[_0xbac165(0x207)]),logger['error'](_0xcbb2fe),!_0x1ff63a[_0xbac165(0x23a)]&&(_0x193bc9[_0xbac165(0x24a)](_0x193bc9[_0xbac165(0x1df)],_0x193bc9[_0xbac165(0x20e)])?_0x24091f=_0x13a680:(logger[_0xbac165(0x1fb)](_0xbac165(0x246)+DEFAULT_CLUSTER_DETAILS[_0xbac165(0x1d5)]+'\x20'),_0x1ff63a[_0xbac165(0x23a)]=DEFAULT_CLUSTER_DETAILS[_0xbac165(0x1d5)]))):_0x1646fe+='Cluster\x20'+_0x198e32[_0xbac165(0x21b)]+'\x20'+(_0x53b14e?_0x193bc9[_0xbac165(0x28c)]:_0x193bc9[_0xbac165(0x261)])+'\x0a\x0a'),global_registry[_0xbac165(0x21b)]=_0x1ff63a['clusterName'],global_registry[_0xbac165(0x23a)]=_0x1ff63a[_0xbac165(0x23a)],global_registry[_0xbac165(0x2a0)]=_0x1ff63a[_0xbac165(0x1dd)];}}else{if(_0x1ff63a[_0xbac165(0x280)]){if(_0x193bc9[_0xbac165(0x234)](_0x193bc9[_0xbac165(0x2a2)],_0x193bc9[_0xbac165(0x1d1)])){global_registry[_0xbac165(0x280)]=_0x1ff63a[_0xbac165(0x280)],logger['debug'](_0xbac165(0x272)+_0x1ff63a['gridProfile']);const _0x56f655=_0xbac165(0x2a6)+AG_API_URL+_0xbac165(0x1ec),_0x27dfce={};_0x27dfce[_0xbac165(0x21c)]=_0x193bc9[_0xbac165(0x297)],_0x27dfce[_0xbac165(0x208)]=global_registry[_0xbac165(0x2a5)],_0x27dfce['throwHttpErrors']=![];const _0x584826=_0x27dfce,_0x623483=await _0x193bc9[_0xbac165(0x219)](got,_0x56f655,_0x584826),_0x5d6c42=await _0x193bc9[_0xbac165(0x2ab)](responseValidation,_0x623483,_0x193bc9['wHBpV'],_0x193bc9['oCeNV'],_0x1ff63a,_0x1ba643);let _0x436e94={};if(_0x193bc9['GJYDA'](_0x5d6c42,0xc8)){if(_0x193bc9['RocYC'](_0x193bc9['FsMvp'],_0x193bc9[_0xbac165(0x27b)]))_0x205723['push'](_0x193bc9[_0xbac165(0x217)]);else{const _0x10eb98=JSON[_0xbac165(0x26e)](_0x623483[_0xbac165(0x283)]),_0x4d22e=_0x10eb98[_0xbac165(0x1d8)](_0x2e8d2f=>_0x2e8d2f['name']===_0x1ff63a[_0xbac165(0x280)])||null;if(_0x193bc9[_0xbac165(0x2b2)](isUndefined,_0x4d22e))_0x193bc9['hHNAf'](_0x193bc9[_0xbac165(0x2b9)],_0x193bc9[_0xbac165(0x245)])?(_0xcbb2fe=_0xbac165(0x1e1)+_0x1ff63a[_0xbac165(0x280)]+_0xbac165(0x2bf),await _0x193bc9[_0xbac165(0x1ff)](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes[_0xbac165(0x1e2)],_0x193bc9['sUQYu'],_0x193bc9['hUZVm'],_0x193bc9[_0xbac165(0x207)]),logger[_0xbac165(0x2c0)](_0xcbb2fe),process[_0xbac165(0x233)](0x1)):(_0x4af1d4['info']('['+_0x1df1e2+']\x20status\x20:\x20'+_0x39f054[_0xbac165(0x1ed)]+_0xbac165(0x26b)+_0x29097c[_0xbac165(0x2aa)]+'\x20error\x20:\x20'+_0xbf1463[_0xbac165(0x2c0)]),_0xa66a04['error']&&_0x4ae823[_0xbac165(0x2c0)](_0xbac165(0x293)+_0x33171c['error'][_0xbac165(0x20d)]));else{if(_0x193bc9['WYUxn'](_0x193bc9[_0xbac165(0x22c)],_0x193bc9[_0xbac165(0x228)]))_0x436e94=_0x4d22e;else{const _0x267dce={};_0x267dce[_0xbac165(0x2b1)]=_0x193bc9[_0xbac165(0x25e)],_0x267dce['type']=_0x193bc9[_0xbac165(0x1cb)];const _0x2d4892={};_0x2d4892['description']=_0x193bc9[_0xbac165(0x248)],_0x2d4892['type']=_0x193bc9[_0xbac165(0x1cb)];const _0x552cbc={};_0x552cbc['description']=_0x193bc9['BsAlW'],_0x552cbc[_0xbac165(0x230)]=_0x193bc9[_0xbac165(0x1cb)];const _0x111523={};_0x111523[_0xbac165(0x2b1)]=_0x193bc9[_0xbac165(0x1cc)],_0x111523[_0xbac165(0x230)]=_0x193bc9[_0xbac165(0x1cb)];const _0x203dc3={};return _0x203dc3[_0xbac165(0x211)]=_0x267dce,_0x203dc3[_0xbac165(0x262)]=_0x2d4892,_0x203dc3[_0xbac165(0x1dd)]=_0x552cbc,_0x203dc3[_0xbac165(0x1cf)]=_0x111523,_0x523f6d[_0xbac165(0x274)](_0x29bdd9[_0xbac165(0x1e4)])['epilogue'](_0x216aca)['options'](_0x203dc3)['help'](_0x193bc9[_0xbac165(0x29c)])[_0xbac165(0x28e)];}}}}else _0x193bc9['vTseg'](_0x193bc9[_0xbac165(0x29b)],_0x193bc9[_0xbac165(0x29b)])?_0x3edc4b[_0xbac165(0x1fb)](_0xbac165(0x2bb)+_0x4aa2fd[_0xbac165(0x21b)]+_0xbac165(0x1e9)):process[_0xbac165(0x233)](0x1);const _0x4e3de1={};_0x4e3de1[_0xbac165(0x230)]=WS_EVENTS[_0xbac165(0x1e7)],_0x4e3de1[_0xbac165(0x1fd)]=_0x193bc9[_0xbac165(0x254)],webSocketUtils[_0xbac165(0x278)](_0x1ba643,_0x4e3de1),global_registry[_0xbac165(0x23a)]=_0x436e94[_0xbac165(0x23a)],global_registry[_0xbac165(0x2a0)]=_0x436e94['region'],global_registry['clusterName']=_0x436e94['clusterName'];}else _0x20fe73+=_0xbac165(0x1f8)+_0x300bba[_0xbac165(0x21b)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else _0x193bc9['nDzho'](_0x193bc9[_0xbac165(0x2be)],_0x193bc9[_0xbac165(0x26d)])?_0x20c5b6['push'](_0x193bc9[_0xbac165(0x1d0)]):(logger['error'](_0x193bc9[_0xbac165(0x249)]),process[_0xbac165(0x233)](0x1));}}else _0x1833ea[_0xbac165(0x1fb)](_0xbac165(0x246)+_0x3cf964[_0xbac165(0x1d5)]+'\x20'),_0x350854['cloudProvider']=_0x3b825a[_0xbac165(0x1d5)];}catch(_0x47fb75){_0x193bc9['WYUxn'](_0x193bc9['LRnCr'],_0x193bc9['iRRLy'])?(_0xcbb2fe='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x47fb75+':\x20'+_0x47fb75[_0xbac165(0x20d)],logger[_0xbac165(0x2c0)](_0xcbb2fe),await _0x193bc9[_0xbac165(0x1ff)](reportToGalactusAndSendToEDS,_0x1ff63a,_0x1ba643,_0xcbb2fe,messageTypes[_0xbac165(0x1e2)],_0x193bc9[_0xbac165(0x298)],_0x193bc9[_0xbac165(0x229)],_0x193bc9['ndTJb']),process[_0xbac165(0x233)](0x1)):(_0x15fdfd[_0xbac165(0x2c0)](_0x193bc9['zPVBh']),_0x5c8cd0[_0xbac165(0x233)](0x1));}}function a17_0x27aa(){const _0x25c1c6=['username','xUSDm','SDUmK','pre-check','\x20data\x20:\x20','gGkgH','FyjjO','parse','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','isCliToolInstalled','1236470vBrcxg','grid\x20profile\x20flow\x20','pre-check-failed','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','response','writeFileSync','sendEventToBackend','sqjid','Browserstack','FsMvp','pEhgb','8FiDfHz','reconnecting-websocket','pgueR','gridProfile','5246605SGvKFA','KYKsx','body','\x20\x20Code:\x20','dummy-grid','will\x20be\x20created','init','command','gAYey','oeBtL','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','YQWGd','\x20error\x20:\x20','argv','WebSocket','bjHIg','bmZPR','rBRGq','error\x20stack\x20:\x20','Missing\x20required\x20arguments:\x20','rAtUY','whgpX','Nhznx','sUQYu','tzXMJ','oreWg','ijWaC','VKHXK','GET','connectionTimeout','<UsernamePlaceholder>','clusterRegion','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','EucVt','existsSync','Cluster\x20details\x0a-----------------------\x0a','authHeader','https://','wEkvF','getUTCDate','1386378afGmBd','data','yyEpt','ZRjPT','WJuma','Error\x20Details:\x0a','vTseg','QsaEa','description','QWKuv','TLSv1_2_client_method','PgRXV','fAbuL','urYLp','usMnZ','IaCtS','UGxjB','JRctL','Cluster\x20`','sMouO','VYlKM','cSmGp','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','error','epilogue','3CJxaMm','cloud-provider-not-supported','Failed\x20in\x20pre-check!\x20Error:\x20','SSL\x20Configured','PrPbK','tdrug','wDUJr','FMwns','grid-profile','KPMdh','tdoUB','WSHlB','../../utils/webSocketUtils','TCsMI','CLOUD_PROVIDER','header','string','find','delay','qoFGY','code','.\x20Please\x20provide\x20all\x20required\x20arguments.','region','got','Fdjnf','AbEqp','Invalid\x20input.\x20grid\x20profiles:\x20','ERROR','utf-8','pre_check','yrFRE','wiGFU','LOG','HtnVu','`\x20already\x20exists','INFO','debug','/packages/cli/get-all-grid-profiles','status','N/A','XJgtK','IhBlP','ffYxi','dwmFP','VXNHY','onDVF','\x20\x20Message:\x20','KZVlf','cluster-check-failed-','Cluster\x20','crTAU','ymvwz','info','getUTCMonth','message','Tool\x20Installed','qjogi','pre-check-cluster-args-not-passed','YnBHH','Message:\x20','KDizV','stack\x20trace\x20','ulzGs','builder','ndTJb','headers','bstackAccesskey','\x20===\x0a\x0a','rfjhF','length','stack','axEDy','User\x20Access','split','cluster-name','3343656mmpQyU','gDVAY','lGhxP','dKkrq','FAEMC','mryHG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DgvNw','bElLz','clusterName','method','hXBel','bstackUsername','euoxz','rkNNi','unable\x20to\x20verify\x20if\x20cluster\x20`','\x20\x20Stack:\x20','requestId','../../config/logger','stringify','Report\x20saved\x20in\x20','qIiKI','UlKsX','vydbH','desc','rQBir','FGEqO','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Grid\x20profile\x20fetched\x20for\x20pre-check','type','3520924LlqAOh','1tyBijr','exit','Rutdm','password','is\x20already\x20present','AQgAR','qTTRf','`\x20is\x20present\x20in\x20region\x20`','cloudProvider','2312615dlXTeZ','Whitelisted\x20browserstack','includes','getUTCFullYear','AWeYL','WYMGi','pre-check-grid-called','HkBbh','caoGn','BOfFv','ZNRaZ','Setting\x20cloud\x20provider\x20as\x20','push','hErAs','zPVBh','GJYDA','5930360EUClEV','zbgtu','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','\x20region\x20-\x20','.txt','../../cloudproviders/utils','bkyjM','getUTCMinutes','CHIDR','YylRS','rqlzC','help','mYfVS','Success','<PasswordPlaceholder>','BgjUl','../../config/constants','isClusterPresent','grid','PxBoB','Pre-check\x20running\x20for\x20Cloud\x20-\x20','toolInstalledResp','SlZMt','cloud-provider','../../utils/instrumentationUtils','LPtId','OuMsD','===\x20Precheck\x20Report\x20-\x20'];a17_0x27aa=function(){return _0x25c1c6;};return a17_0x27aa();}function printResponse(_0x33dccb,_0x260bff){const _0x5c7c9e=a17_0x5db0cb,_0xf8ee4d={};_0xf8ee4d['AQgAR']=_0x5c7c9e(0x2c0),_0xf8ee4d[_0x5c7c9e(0x282)]=function(_0x45e045,_0xdbf78d){return _0x45e045===_0xdbf78d;},_0xf8ee4d[_0x5c7c9e(0x27c)]=_0x5c7c9e(0x2ac);const _0x30917b=_0xf8ee4d;logger[_0x5c7c9e(0x1fb)]('['+_0x33dccb+']\x20status\x20:\x20'+_0x260bff['status']+_0x5c7c9e(0x26b)+_0x260bff[_0x5c7c9e(0x2aa)]+_0x5c7c9e(0x28d)+_0x260bff[_0x5c7c9e(0x2c0)]);if(_0x260bff[_0x5c7c9e(0x2c0)]){if(_0x30917b[_0x5c7c9e(0x282)](_0x30917b['pEhgb'],_0x30917b[_0x5c7c9e(0x27c)]))logger[_0x5c7c9e(0x2c0)](_0x5c7c9e(0x293)+_0x260bff['error'][_0x5c7c9e(0x20d)]);else{const _0x58253a={};_0x58253a[_0x5c7c9e(0x230)]=_0x568d9d[_0x5c7c9e(0x1e7)],_0x58253a['message']=_0xdb5070,_0x283177[_0x5c7c9e(0x278)](_0x30e098,_0x58253a,_0x30917b[_0x5c7c9e(0x237)],!![]);}}}async function generateReport(_0x724895,_0x5067ed){const _0x59f13a=a17_0x5db0cb,_0x3c9f0e={'QsaEa':function(_0x4f58a0,_0x37d4a0){return _0x4f58a0+_0x37d4a0;},'RNHmj':_0x59f13a(0x258),'ilgmS':'Failure','wEkvF':function(_0x27869d,_0x51c943){return _0x27869d||_0x51c943;},'KZVlf':_0x59f13a(0x1ee),'CHIDR':_0x59f13a(0x2ae),'WJuma':_0x59f13a(0x2a4),'rkNNi':function(_0x4c8291,_0xbfdbb8){return _0x4c8291!=_0xbfdbb8;},'SDUmK':_0x59f13a(0x236),'caoGn':_0x59f13a(0x286),'rAtUY':function(_0xf65a31){return _0xf65a31();}};let _0x2eaacc=_0x59f13a(0x266)+global_registry[_0x59f13a(0x23a)]+_0x59f13a(0x20a);return _0x724895['forEach']((_0x2cb75e,_0x426d96)=>{const _0x488120=_0x59f13a,{header:_0x52faa1,response:_0x5c360c}=_0x2cb75e,{status:_0x745bda,data:_0x38ae36,error:_0x42ef8d}=_0x5c360c;_0x2eaacc+=_0x52faa1+'\x20#'+_0x3c9f0e[_0x488120(0x2b0)](_0x426d96,0x1)+'\x0a',_0x2eaacc+='Status:\x20'+(_0x745bda?_0x3c9f0e['RNHmj']:_0x3c9f0e['ilgmS'])+'\x0a',_0x2eaacc+=_0x488120(0x202)+_0x3c9f0e[_0x488120(0x2a7)](_0x38ae36,_0x3c9f0e[_0x488120(0x1f6)])+'\x0a',_0x42ef8d&&(_0x2eaacc+=_0x3c9f0e[_0x488120(0x253)],_0x2eaacc+=_0x488120(0x1f5)+(_0x42ef8d[_0x488120(0x1fd)]||_0x3c9f0e[_0x488120(0x1f6)])+'\x0a',_0x2eaacc+=_0x488120(0x284)+(_0x42ef8d[_0x488120(0x1db)]||_0x3c9f0e['KZVlf'])+'\x0a',_0x2eaacc+=_0x488120(0x222)+(_0x42ef8d['stack']||_0x3c9f0e['KZVlf'])+'\x0a'),_0x2eaacc+='\x0a\x0a';}),_0x2eaacc+=_0x3c9f0e[_0x59f13a(0x2ad)],_0x3c9f0e[_0x59f13a(0x220)](_0x5067ed,null)?_0x2eaacc+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0x5067ed?_0x3c9f0e[_0x59f13a(0x269)]:_0x3c9f0e[_0x59f13a(0x243)])+'\x0a\x0a':_0x2eaacc+=_0x59f13a(0x1f8)+global_registry['clusterName']+_0x59f13a(0x28b),_0x2eaacc+=_0x3c9f0e[_0x59f13a(0x295)](getSystemMetaData),_0x2eaacc;};exports['handler']=async function(_0x4629d5){const _0x2e3824=a17_0x5db0cb,_0x48cf7c={'pgueR':function(_0x302001){return _0x302001();},'rqlzC':_0x2e3824(0x218),'BgjUl':function(_0x1ff645,_0x3dce56,_0x4e177a,_0x47cc7a,_0x37ad0b,_0x50e0ea,_0x15ece3,_0x21b67a){return _0x1ff645(_0x3dce56,_0x4e177a,_0x47cc7a,_0x37ad0b,_0x50e0ea,_0x15ece3,_0x21b67a);},'PgRXV':_0x2e3824(0x241),'LPtId':'credential-not-found','AbEqp':_0x2e3824(0x2c0),'hHhkB':function(_0x5a471c,_0x37fbaa,_0x580cf5,_0xdb9f8b,_0x48355b,_0x2ae4d8,_0x1962d2){return _0x5a471c(_0x37fbaa,_0x580cf5,_0xdb9f8b,_0x48355b,_0x2ae4d8,_0x1962d2);},'rBRGq':function(_0xd68014){return _0xd68014();},'Xulje':_0x2e3824(0x29f),'ymvwz':_0x2e3824(0x259),'IAutn':function(_0x355824,_0x14f1f8,_0x4d0072){return _0x355824(_0x14f1f8,_0x4d0072);},'zWpjY':function(_0x288fe0,_0x5dfdd9,_0x4e7eaa){return _0x288fe0(_0x5dfdd9,_0x4e7eaa);},'bmZPR':function(_0x54813c,_0x39c0b6,_0x47f827,_0x2c91c8,_0x10d8d4,_0x2f630d,_0x251f71){return _0x54813c(_0x39c0b6,_0x47f827,_0x2c91c8,_0x10d8d4,_0x2f630d,_0x251f71);},'FMwns':_0x2e3824(0x285),'qoFGY':_0x2e3824(0x260),'IhBlP':'4|2|0|1|3','Wworl':function(_0x2c8938,_0xa9b464,_0x717a14){return _0x2c8938(_0xa9b464,_0x717a14);},'lGhxP':'accessResp','WyfFr':function(_0x93ec72,_0x1af51b,_0x3e8193){return _0x93ec72(_0x1af51b,_0x3e8193);},'urYLp':'isTrialGridAccessible','mYfVS':function(_0x108d5e,_0x413b87){return _0x108d5e(_0x413b87);},'bElLz':_0x2e3824(0x2b3),'BOfFv':function(_0x27d3b0,_0x312bc4,_0x48b878){return _0x27d3b0(_0x312bc4,_0x48b878);},'FtbTE':'isTls1_2_SUPPORTED','laXMn':_0x2e3824(0x1fe),'Synnx':_0x2e3824(0x20f),'xUSDm':_0x2e3824(0x23c),'nsbNC':_0x2e3824(0x1ca),'VXNHY':function(_0x540439,_0x2d1a58,_0xf5a368){return _0x540439(_0x2d1a58,_0xf5a368);},'VYlKM':function(_0x227b10,_0x21b546){return _0x227b10+_0x21b546;},'zbgtu':_0x2e3824(0x1e3),'AWeYL':_0x2e3824(0x273)};let _0x16459d,_0x34b1d2;try{global_registry[_0x2e3824(0x223)]=_0x48cf7c[_0x2e3824(0x27f)](uuidv4);!fs[_0x2e3824(0x2a3)](_0x48cf7c[_0x2e3824(0x27f)](getCredentialsPath))&&(_0x34b1d2=_0x48cf7c[_0x2e3824(0x255)],logger['error'](_0x34b1d2),await _0x48cf7c[_0x2e3824(0x25a)](reportToGalactusAndSendToEDS,_0x4629d5,_0x16459d,_0x34b1d2,messageTypes['ERROR'],_0x48cf7c[_0x2e3824(0x2b4)],_0x48cf7c[_0x2e3824(0x264)],_0x48cf7c[_0x2e3824(0x1e0)]),process[_0x2e3824(0x233)](0x1));_0x48cf7c['hHhkB'](sendInstrumentationEvent,_0x4629d5,_0x48cf7c[_0x2e3824(0x2b4)],messageTypes[_0x2e3824(0x1ea)],null,null,_0x4629d5);const _0x55f34a=JSON[_0x2e3824(0x26e)](fs['readFileSync'](_0x48cf7c[_0x2e3824(0x292)](getCredentialsPath)));global_registry['bstackUsername']=_0x55f34a['Browserstack'][_0x2e3824(0x267)],global_registry[_0x2e3824(0x209)]=_0x55f34a[_0x2e3824(0x27a)]['password'];const _0x2ba977=WS_ENDPOINT['replace'](_0x48cf7c['Xulje'],_0x55f34a[_0x2e3824(0x27a)][_0x2e3824(0x267)])['replace'](_0x48cf7c[_0x2e3824(0x1fa)],_0x55f34a[_0x2e3824(0x27a)][_0x2e3824(0x235)]),_0x496c2b={};_0x496c2b[_0x2e3824(0x28f)]=ws,_0x496c2b[_0x2e3824(0x29e)]=0x36ee80,_0x16459d=new ReconnectingWebSocket(_0x2ba977,[],_0x496c2b),global_registry[_0x2e3824(0x2a5)]=_0x48cf7c['IAutn'](getAuthHeader,global_registry[_0x2e3824(0x21e)],global_registry[_0x2e3824(0x209)]),await _0x48cf7c['zWpjY'](inputValidation,_0x4629d5,_0x16459d),logger[_0x2e3824(0x1fb)](_0x2e3824(0x25f)+global_registry['cloudProvider']+_0x2e3824(0x24e)+global_registry[_0x2e3824(0x2a0)]);let _0x29dcee=await _0x48cf7c[_0x2e3824(0x291)](getCloudProviderObjectWithOutInit,global_registry[_0x2e3824(0x23a)],global_registry[_0x2e3824(0x21b)],_0x48cf7c[_0x2e3824(0x1ce)],_0x16459d,webSocketUtils,_0x4629d5);const _0x21bf69=await _0x29dcee[_0x2e3824(0x270)]();_0x48cf7c['zWpjY'](printResponse,_0x48cf7c[_0x2e3824(0x1da)],_0x21bf69),_0x29dcee=await _0x29dcee[_0x2e3824(0x287)]();let _0x288aaf=![];try{_0x288aaf=await _0x29dcee[_0x2e3824(0x25c)]();}catch(_0x45a530){const _0x1fc4d3=_0x48cf7c[_0x2e3824(0x1f0)][_0x2e3824(0x210)]('|');let _0x75cd4f=0x0;while(!![]){switch(_0x1fc4d3[_0x75cd4f++]){case'0':logger[_0x2e3824(0x2c0)](_0x34b1d2);continue;case'1':_0x34b1d2+='\x0a'+JSON[_0x2e3824(0x225)](_0x45a530['stack']);continue;case'2':_0x288aaf=null;continue;case'3':await _0x48cf7c[_0x2e3824(0x25a)](reportToGalactusAndSendToEDS,_0x4629d5,_0x16459d,_0x34b1d2,messageTypes[_0x2e3824(0x1e2)],_0x48cf7c[_0x2e3824(0x2b4)],_0x2e3824(0x1f7)+global_registry[_0x2e3824(0x23a)],_0x48cf7c[_0x2e3824(0x1e0)]);continue;case'4':_0x34b1d2=_0x2e3824(0x221)+global_registry[_0x2e3824(0x21b)]+_0x2e3824(0x239)+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x45a530;continue;}break;}}_0x288aaf&&logger[_0x2e3824(0x1fb)](_0x2e3824(0x2bb)+global_registry[_0x2e3824(0x21b)]+_0x2e3824(0x1e9));const _0x4d1532=await _0x29dcee['checkAccess']();_0x48cf7c['Wworl'](printResponse,_0x48cf7c[_0x2e3824(0x214)],_0x4d1532);const _0x29c6ea=await _0x48cf7c['pgueR'](curlRequest);_0x48cf7c['WyfFr'](printResponse,_0x48cf7c[_0x2e3824(0x2b6)],_0x29c6ea);const _0x1efdcf=await _0x48cf7c[_0x2e3824(0x257)](isTlsSupported,_0x48cf7c[_0x2e3824(0x21a)]);_0x48cf7c[_0x2e3824(0x244)](printResponse,_0x48cf7c['FtbTE'],_0x1efdcf);const _0x1344ef={};_0x1344ef['header']=_0x48cf7c['laXMn'],_0x1344ef[_0x2e3824(0x276)]=_0x21bf69;const _0x1b49b3={};_0x1b49b3[_0x2e3824(0x1d6)]=_0x48cf7c['Synnx'],_0x1b49b3['response']=_0x4d1532;const _0x152bd7={};_0x152bd7[_0x2e3824(0x1d6)]=_0x48cf7c[_0x2e3824(0x268)],_0x152bd7[_0x2e3824(0x276)]=_0x29c6ea;const _0x58a881={};_0x58a881[_0x2e3824(0x1d6)]=_0x48cf7c['nsbNC'],_0x58a881[_0x2e3824(0x276)]=_0x1efdcf;const _0x3fb653=[_0x1344ef,_0x1b49b3,_0x152bd7,_0x58a881],_0x58ce00=await _0x48cf7c[_0x2e3824(0x1f3)](generateReport,_0x3fb653,_0x288aaf),_0x155967=new Date(),_0x1b7677=_0x155967[_0x2e3824(0x23e)]()+'_'+_0x48cf7c[_0x2e3824(0x2bd)](_0x155967[_0x2e3824(0x1fc)](),0x1)+'_'+_0x155967[_0x2e3824(0x2a8)]()+'_'+_0x155967['getUTCHours']()+'_'+_0x155967[_0x2e3824(0x252)](),_0x4c0bdd='log/report_'+_0x1b7677+_0x2e3824(0x24f);fs[_0x2e3824(0x277)](_0x4c0bdd,_0x58ce00,_0x48cf7c[_0x2e3824(0x24c)]),logger[_0x2e3824(0x1fb)](_0x2e3824(0x226)+_0x4c0bdd),process[_0x2e3824(0x233)](0x0);}catch(_0x48e2b2){let _0x41eec8=_0x2e3824(0x1c9)+_0x48e2b2+'\x20';logger['error'](_0x41eec8),_0x41eec8+='\x0a'+JSON[_0x2e3824(0x225)](_0x48e2b2[_0x2e3824(0x20d)]),logger[_0x2e3824(0x1eb)](_0x2e3824(0x204)+_0x48e2b2[_0x2e3824(0x20d)]);if(_0x16459d){const _0x47ee6e={};_0x47ee6e[_0x2e3824(0x230)]=WS_EVENTS[_0x2e3824(0x1e7)],_0x47ee6e[_0x2e3824(0x1fd)]=_0x41eec8,webSocketUtils[_0x2e3824(0x278)](_0x16459d,_0x47ee6e,_0x48cf7c[_0x2e3824(0x1e0)],!![]);}await webSocketUtils[_0x2e3824(0x1d9)](0x7d0);const _0x2e38b8={};_0x2e38b8[_0x2e3824(0x2c0)]=_0x41eec8,await _0x48cf7c['hHhkB'](sendInstrumentationEvent,_0x4629d5,_0x48cf7c[_0x2e3824(0x2b4)],messageTypes[_0x2e3824(0x1e2)],_0x48cf7c[_0x2e3824(0x23f)],_0x2e38b8,_0x4629d5),process[_0x2e3824(0x233)](0x1);}};
1
+ const a17_0x36bbdc=a17_0x20e0;(function(_0x3c0f7e,_0x202faf){const _0x3d2eae=a17_0x20e0,_0x4260a3=_0x3c0f7e();while(!![]){try{const _0x58105b=parseInt(_0x3d2eae(0x21b))/0x1*(parseInt(_0x3d2eae(0x280))/0x2)+parseInt(_0x3d2eae(0x224))/0x3+parseInt(_0x3d2eae(0x257))/0x4+parseInt(_0x3d2eae(0x2ab))/0x5*(-parseInt(_0x3d2eae(0x2b7))/0x6)+parseInt(_0x3d2eae(0x20e))/0x7*(parseInt(_0x3d2eae(0x216))/0x8)+parseInt(_0x3d2eae(0x271))/0x9*(-parseInt(_0x3d2eae(0x2a5))/0xa)+-parseInt(_0x3d2eae(0x20d))/0xb;if(_0x58105b===_0x202faf)break;else _0x4260a3['push'](_0x4260a3['shift']());}catch(_0x13bcca){_0x4260a3['push'](_0x4260a3['shift']());}}}(a17_0x52e3,0x9f3bc));const fs=require('fs'),ws=require('ws'),got=require(a17_0x36bbdc(0x263)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x36bbdc(0x259)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x36bbdc(0x21d)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x36bbdc(0x1fa)),{sendInstrumentationEvent}=require(a17_0x36bbdc(0x206));exports[a17_0x36bbdc(0x282)]=a17_0x36bbdc(0x2bc),exports[a17_0x36bbdc(0x28a)]=a17_0x36bbdc(0x2ad),exports[a17_0x36bbdc(0x21e)]=function(_0x8eeb80){const _0x40ab44=a17_0x36bbdc,_0x5dc00a={};_0x5dc00a[_0x40ab44(0x211)]=_0x40ab44(0x266),_0x5dc00a['nxhpN']=_0x40ab44(0x2c2),_0x5dc00a['Ixnzi']=_0x40ab44(0x228),_0x5dc00a[_0x40ab44(0x28f)]=_0x40ab44(0x2cd),_0x5dc00a[_0x40ab44(0x290)]=_0x40ab44(0x2a6),_0x5dc00a[_0x40ab44(0x293)]=_0x40ab44(0x1fe);const _0x5b5c99=_0x5dc00a,_0x4072a7={};_0x4072a7[_0x40ab44(0x244)]=_0x5b5c99['ZCMrh'],_0x4072a7[_0x40ab44(0x254)]=_0x5b5c99['nxhpN'];const _0x11a11c={};_0x11a11c[_0x40ab44(0x244)]=_0x5b5c99[_0x40ab44(0x2a9)],_0x11a11c['type']=_0x5b5c99['nxhpN'];const _0x43880a={};_0x43880a['description']=_0x5b5c99[_0x40ab44(0x28f)],_0x43880a[_0x40ab44(0x254)]=_0x5b5c99['nxhpN'];const _0x27e011={};_0x27e011['description']=_0x5b5c99[_0x40ab44(0x290)],_0x27e011[_0x40ab44(0x254)]=_0x5b5c99[_0x40ab44(0x1f6)];const _0x9140f={};return _0x9140f[_0x40ab44(0x274)]=_0x4072a7,_0x9140f[_0x40ab44(0x203)]=_0x11a11c,_0x9140f[_0x40ab44(0x28b)]=_0x43880a,_0x9140f['grid-profile']=_0x27e011,_0x8eeb80['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x40ab44(0x2ea)](HELP_FOOTER_MESSAGE)[_0x40ab44(0x256)](_0x9140f)['help'](_0x5b5c99[_0x40ab44(0x293)])[_0x40ab44(0x2ca)];};async function inputValidation(_0x53f9fb,_0x52bc82){const _0x7a3c85=a17_0x36bbdc,_0x4a8bbe={'piRhc':_0x7a3c85(0x203),'QUOrU':_0x7a3c85(0x208),'pHxLb':_0x7a3c85(0x29c),'YMrgi':_0x7a3c85(0x23b),'TkTCa':_0x7a3c85(0x28b),'RubtZ':_0x7a3c85(0x266),'zcIar':'string','bdEdS':_0x7a3c85(0x228),'CQdFH':_0x7a3c85(0x2cd),'siufb':_0x7a3c85(0x2a6),'IYBnL':'help','KJLgg':function(_0x424b14,_0x41bf48){return _0x424b14+_0x41bf48;},'mobux':'Success','NtuML':'Failure','EmBlf':function(_0x5536f5,_0x23a9f0){return _0x5536f5||_0x23a9f0;},'YahpB':_0x7a3c85(0x23c),'xhUBx':_0x7a3c85(0x274),'RZAWT':function(_0x1b930d,_0x66303d){return _0x1b930d!==_0x66303d;},'WuZDW':'zznHS','izKpY':_0x7a3c85(0x2ba),'LYnzg':function(_0x37de03,_0x2357dc){return _0x37de03===_0x2357dc;},'oKTOn':_0x7a3c85(0x2ef),'tPTqD':_0x7a3c85(0x209),'gmlUw':_0x7a3c85(0x239),'rkBOz':function(_0x4c24a6,_0x56f883){return _0x4c24a6!==_0x56f883;},'gqhdi':_0x7a3c85(0x252),'yDFVc':_0x7a3c85(0x215),'XyNfR':function(_0x354b45,_0x567ff8){return _0x354b45>_0x567ff8;},'tgsDt':_0x7a3c85(0x24c),'FrxMm':function(_0x12b69f,_0x514a6e,_0x4a4fd8,_0x5b5726,_0x442cc5,_0x252bc4,_0x40f346,_0xdda461){return _0x12b69f(_0x514a6e,_0x4a4fd8,_0x5b5726,_0x442cc5,_0x252bc4,_0x40f346,_0xdda461);},'YCEeB':_0x7a3c85(0x234),'LkqtL':_0x7a3c85(0x295),'vVusm':function(_0x1a89c5,_0x382311){return _0x1a89c5!==_0x382311;},'QnngW':_0x7a3c85(0x24b),'CaIBk':_0x7a3c85(0x2dc),'IwzFI':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','UmvIG':_0x7a3c85(0x241),'FXlkx':function(_0x13f614,_0x45eaed){return _0x13f614!==_0x45eaed;},'WwYTW':_0x7a3c85(0x20f),'qZrKT':'Fbeub','OSXhi':_0x7a3c85(0x299),'VaYYW':_0x7a3c85(0x2c4),'EviHS':function(_0x17c86b,_0x2741f2,_0x5c243f){return _0x17c86b(_0x2741f2,_0x5c243f);},'fAoRh':function(_0x285c09,_0x5947f3,_0x1ddd18,_0x46ddbb,_0x3c9938,_0x4202d0){return _0x285c09(_0x5947f3,_0x1ddd18,_0x46ddbb,_0x3c9938,_0x4202d0);},'TEKWK':_0x7a3c85(0x20a),'KStBc':'grid-profile','GPFfZ':function(_0x565a92,_0x4ddfda){return _0x565a92===_0x4ddfda;},'lgMkS':'BrlOQ','ujcxL':function(_0x1403fc,_0x43da9b){return _0x1403fc(_0x43da9b);},'eKpiY':_0x7a3c85(0x2f2),'SoAsA':'HeRyX','ExKFj':function(_0x134323,_0x1564ce,_0x3361a2,_0x4678b3,_0x4cb207,_0x5ad139,_0x3cdd5e,_0x1e7ac5){return _0x134323(_0x1564ce,_0x3361a2,_0x4678b3,_0x4cb207,_0x5ad139,_0x3cdd5e,_0x1e7ac5);},'kyULh':_0x7a3c85(0x25f),'ORRiW':function(_0x1af886,_0x5213a0){return _0x1af886===_0x5213a0;},'SnlpB':'fnRaR','raBaj':_0x7a3c85(0x2b4),'qWvcm':_0x7a3c85(0x26a),'LPgfN':'cqwBz','jRCQM':_0x7a3c85(0x201),'XAiHz':_0x7a3c85(0x25e),'htIuX':_0x7a3c85(0x2e6),'zzqwO':_0x7a3c85(0x238)};let _0x2be6ec;try{if(_0x4a8bbe[_0x7a3c85(0x289)](_0x4a8bbe[_0x7a3c85(0x26c)],_0x4a8bbe[_0x7a3c85(0x25b)])){if(_0x53f9fb[_0x7a3c85(0x2f1)]||_0x53f9fb['cloudProvider']||_0x53f9fb[_0x7a3c85(0x28b)]){if(_0x4a8bbe['LYnzg'](_0x4a8bbe[_0x7a3c85(0x2c9)],_0x4a8bbe['oKTOn'])){const _0x11e794=[];!_0x53f9fb[_0x7a3c85(0x2f1)]&&(_0x4a8bbe[_0x7a3c85(0x289)](_0x4a8bbe['tPTqD'],_0x4a8bbe['gmlUw'])?_0x11e794[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x1f2)]):_0x2e6383[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x281)]));;!_0x53f9fb['cloudProvider']&&(_0x4a8bbe[_0x7a3c85(0x2de)](_0x4a8bbe[_0x7a3c85(0x20c)],_0x4a8bbe[_0x7a3c85(0x20c)])?(_0x1a4f0f[_0x7a3c85(0x214)](_0x7a3c85(0x262)+_0x3f70ab[_0x7a3c85(0x2c3)]+'\x20'),_0x24a550['cloudProvider']=_0x332b3e[_0x7a3c85(0x2c3)]):_0x11e794[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x281)]));;!_0x53f9fb[_0x7a3c85(0x28b)]&&(_0x4a8bbe[_0x7a3c85(0x289)](_0x4a8bbe['yDFVc'],_0x4a8bbe[_0x7a3c85(0x291)])?_0x4edeac['exit'](0x1):_0x11e794[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x284)]));;_0x4a8bbe['XyNfR'](_0x11e794['length'],0x0)&&(_0x4a8bbe['rkBOz'](_0x4a8bbe[_0x7a3c85(0x278)],_0x4a8bbe[_0x7a3c85(0x278)])?_0x4d171f[_0x7a3c85(0x214)](_0x7a3c85(0x2c6)+_0x4cf684[_0x7a3c85(0x2f1)]+'`\x20already\x20exists'):(_0x2be6ec='Missing\x20required\x20arguments:\x20'+_0x11e794[_0x7a3c85(0x2ee)](',\x20')+_0x7a3c85(0x264),await _0x4a8bbe[_0x7a3c85(0x22b)](reportToGalactusAndSendToEDS,_0x53f9fb,_0x52bc82,_0x2be6ec,messageTypes['ERROR'],_0x4a8bbe[_0x7a3c85(0x2cf)],_0x4a8bbe['LkqtL'],_0x4a8bbe[_0x7a3c85(0x2d3)]),logger[_0x7a3c85(0x23c)](_0x2be6ec),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x53f9fb['cloudProvider'][_0x7a3c85(0x2e8)]())&&(_0x4a8bbe['vVusm'](_0x4a8bbe['QnngW'],_0x4a8bbe[_0x7a3c85(0x210)])?(_0x2be6ec=_0x4a8bbe[_0x7a3c85(0x24f)],await _0x4a8bbe[_0x7a3c85(0x22b)](reportToGalactusAndSendToEDS,_0x53f9fb,_0x52bc82,_0x2be6ec,messageTypes[_0x7a3c85(0x2ed)],_0x4a8bbe[_0x7a3c85(0x2cf)],_0x4a8bbe[_0x7a3c85(0x225)],_0x4a8bbe[_0x7a3c85(0x2d3)]),logger[_0x7a3c85(0x23c)](_0x2be6ec),!_0x53f9fb[_0x7a3c85(0x247)]&&(_0x4a8bbe[_0x7a3c85(0x258)](_0x4a8bbe[_0x7a3c85(0x265)],_0x4a8bbe[_0x7a3c85(0x2e5)])?(logger[_0x7a3c85(0x214)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x53f9fb[_0x7a3c85(0x247)]=DEFAULT_CLUSTER_DETAILS[_0x7a3c85(0x2c3)]):_0x194079=_0x4855e5)):(_0x19df3c+=_0x4a8bbe['QUOrU'],_0x5a0d4a+=_0x7a3c85(0x220)+(_0x3c7c25[_0x7a3c85(0x1fc)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x39e89b+=_0x7a3c85(0x273)+(_0x38f2d8[_0x7a3c85(0x246)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x34483b+=_0x7a3c85(0x1fb)+(_0x386709[_0x7a3c85(0x232)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a')),global_registry[_0x7a3c85(0x2f1)]=_0x53f9fb[_0x7a3c85(0x2f1)],global_registry[_0x7a3c85(0x247)]=_0x53f9fb['cloudProvider'],global_registry['clusterRegion']=_0x53f9fb[_0x7a3c85(0x28b)];}else _0x5aa219[_0x7a3c85(0x23c)](_0x4a8bbe['YMrgi']),_0x108530['exit'](0x1);}else{if(_0x53f9fb['gridProfile']){if(_0x4a8bbe[_0x7a3c85(0x283)](_0x4a8bbe[_0x7a3c85(0x2db)],_0x4a8bbe[_0x7a3c85(0x2db)])){global_registry[_0x7a3c85(0x231)]=_0x53f9fb[_0x7a3c85(0x231)],logger[_0x7a3c85(0x25a)](_0x7a3c85(0x2e0)+_0x53f9fb[_0x7a3c85(0x231)]);const _0x4a975d=_0x7a3c85(0x219)+AG_API_URL+_0x7a3c85(0x242),_0x4a2008={};_0x4a2008[_0x7a3c85(0x2c7)]=_0x4a8bbe[_0x7a3c85(0x200)],_0x4a2008['headers']=global_registry['authHeader'],_0x4a2008[_0x7a3c85(0x2d9)]=![];const _0x1634e8=_0x4a2008,_0x5a1894=await _0x4a8bbe['EviHS'](got,_0x4a975d,_0x1634e8),_0x14f02a=await _0x4a8bbe[_0x7a3c85(0x22d)](responseValidation,_0x5a1894,_0x4a8bbe[_0x7a3c85(0x240)],_0x4a8bbe[_0x7a3c85(0x29d)],_0x53f9fb,_0x52bc82);let _0x479369={};if(_0x4a8bbe[_0x7a3c85(0x283)](_0x14f02a,0xc8)){if(_0x4a8bbe[_0x7a3c85(0x1f7)](_0x4a8bbe[_0x7a3c85(0x226)],_0x4a8bbe['lgMkS'])){const _0x4315eb=JSON[_0x7a3c85(0x1ff)](_0x5a1894[_0x7a3c85(0x285)]),_0x23a4e0=_0x4315eb['find'](_0x4a97f5=>_0x4a97f5[_0x7a3c85(0x298)]===_0x53f9fb[_0x7a3c85(0x231)])||null;_0x4a8bbe[_0x7a3c85(0x2d4)](isUndefined,_0x23a4e0)?_0x4a8bbe[_0x7a3c85(0x258)](_0x4a8bbe[_0x7a3c85(0x27f)],_0x4a8bbe['SoAsA'])?(_0x2be6ec=_0x7a3c85(0x292)+_0x53f9fb[_0x7a3c85(0x231)]+_0x7a3c85(0x269),await _0x4a8bbe[_0x7a3c85(0x2d8)](reportToGalactusAndSendToEDS,_0x53f9fb,_0x52bc82,_0x2be6ec,messageTypes[_0x7a3c85(0x2ed)],_0x4a8bbe[_0x7a3c85(0x2cf)],_0x4a8bbe['kyULh'],_0x4a8bbe[_0x7a3c85(0x2d3)]),logger['error'](_0x2be6ec),process['exit'](0x1)):_0x5da739[_0x7a3c85(0x212)](_0x4a8bbe['TkTCa']):_0x4a8bbe[_0x7a3c85(0x26b)](_0x4a8bbe[_0x7a3c85(0x2ec)],_0x4a8bbe[_0x7a3c85(0x2b5)])?_0x366fa0+=_0x7a3c85(0x27a)+_0x51e91b[_0x7a3c85(0x2f1)]+_0x7a3c85(0x286):_0x479369=_0x23a4e0;}else{const _0xfc5da8={};_0xfc5da8['description']=_0x4a8bbe[_0x7a3c85(0x2a8)],_0xfc5da8['type']=_0x4a8bbe['zcIar'];const _0x293ecd={};_0x293ecd[_0x7a3c85(0x244)]=_0x4a8bbe[_0x7a3c85(0x2d5)],_0x293ecd[_0x7a3c85(0x254)]=_0x4a8bbe[_0x7a3c85(0x2c5)];const _0x2dfb13={};_0x2dfb13['description']=_0x4a8bbe[_0x7a3c85(0x2e7)],_0x2dfb13[_0x7a3c85(0x254)]=_0x4a8bbe[_0x7a3c85(0x2c5)];const _0x1dc947={};_0x1dc947['description']=_0x4a8bbe[_0x7a3c85(0x222)],_0x1dc947[_0x7a3c85(0x254)]=_0x4a8bbe['zcIar'];const _0x325939={};return _0x325939[_0x7a3c85(0x274)]=_0xfc5da8,_0x325939[_0x7a3c85(0x203)]=_0x293ecd,_0x325939[_0x7a3c85(0x28b)]=_0x2dfb13,_0x325939[_0x7a3c85(0x288)]=_0x1dc947,_0x292fbd[_0x7a3c85(0x26e)](_0x26d50a[_0x7a3c85(0x267)])[_0x7a3c85(0x2ea)](_0x1de2fc)['options'](_0x325939)[_0x7a3c85(0x1fe)](_0x4a8bbe['IYBnL'])['argv'];}}else{if(_0x4a8bbe[_0x7a3c85(0x283)](_0x4a8bbe['qWvcm'],_0x4a8bbe[_0x7a3c85(0x237)])){const {header:_0x4daa2b,response:_0x34c692}=_0x597c44,{status:_0x47d4d2,data:_0x295be3,error:_0x5b9aa3}=_0x34c692;_0x39495c+=_0x4daa2b+'\x20#'+_0x4a8bbe[_0x7a3c85(0x253)](_0x1cd5f8,0x1)+'\x0a',_0x3ce00b+='Status:\x20'+(_0x47d4d2?_0x4a8bbe[_0x7a3c85(0x268)]:_0x4a8bbe[_0x7a3c85(0x229)])+'\x0a',_0x320158+=_0x7a3c85(0x207)+_0x4a8bbe[_0x7a3c85(0x27e)](_0x295be3,_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x5b9aa3&&(_0x1823e1+=_0x4a8bbe[_0x7a3c85(0x2ce)],_0x1a218b+=_0x7a3c85(0x220)+(_0x5b9aa3[_0x7a3c85(0x1fc)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x4611c7+=_0x7a3c85(0x273)+(_0x5b9aa3[_0x7a3c85(0x246)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x3b92a9+=_0x7a3c85(0x1fb)+(_0x5b9aa3[_0x7a3c85(0x232)]||_0x4a8bbe['pHxLb'])+'\x0a'),_0x1957f7+='\x0a\x0a';}else process[_0x7a3c85(0x29a)](0x1);}const _0x380586={};_0x380586[_0x7a3c85(0x254)]=WS_EVENTS[_0x7a3c85(0x24e)],_0x380586[_0x7a3c85(0x1fc)]=_0x4a8bbe[_0x7a3c85(0x236)],webSocketUtils[_0x7a3c85(0x213)](_0x52bc82,_0x380586),global_registry[_0x7a3c85(0x247)]=_0x479369[_0x7a3c85(0x247)],global_registry[_0x7a3c85(0x277)]=_0x479369['region'],global_registry[_0x7a3c85(0x2f1)]=_0x479369[_0x7a3c85(0x2f1)];}else _0x3536f8[_0x7a3c85(0x214)]('['+_0x331be3+_0x7a3c85(0x22c)+_0x329fa5[_0x7a3c85(0x27b)]+_0x7a3c85(0x218)+_0x57b1fa['data']+_0x7a3c85(0x230)+_0x462d40[_0x7a3c85(0x23c)]),_0x4f33d7[_0x7a3c85(0x23c)]&&_0x5c2ff4[_0x7a3c85(0x23c)](_0x7a3c85(0x221)+_0x4d740e[_0x7a3c85(0x23c)]['stack']);}else _0x4a8bbe[_0x7a3c85(0x258)](_0x4a8bbe['XAiHz'],_0x4a8bbe[_0x7a3c85(0x2df)])?(logger['error'](_0x4a8bbe[_0x7a3c85(0x2b3)]),process['exit'](0x1)):_0x173605[_0x7a3c85(0x23c)]('error\x20stack\x20:\x20'+_0x423888['error']['stack']);}}else{const _0x4bf41f={};_0x4bf41f[_0x7a3c85(0x254)]=_0xbb0fff[_0x7a3c85(0x24e)],_0x4bf41f[_0x7a3c85(0x1fc)]=_0x2bae01,_0x48d64c[_0x7a3c85(0x213)](_0x50f0e6,_0x4bf41f,_0x4a8bbe[_0x7a3c85(0x2d3)],!![]);}}catch(_0x2c1d8d){_0x4a8bbe[_0x7a3c85(0x1f7)](_0x4a8bbe[_0x7a3c85(0x296)],_0x4a8bbe[_0x7a3c85(0x296)])?(_0x2be6ec='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x2c1d8d+':\x20'+_0x2c1d8d[_0x7a3c85(0x232)],logger[_0x7a3c85(0x23c)](_0x2be6ec),await _0x4a8bbe[_0x7a3c85(0x2d8)](reportToGalactusAndSendToEDS,_0x53f9fb,_0x52bc82,_0x2be6ec,messageTypes[_0x7a3c85(0x2ed)],_0x4a8bbe['YCEeB'],_0x4a8bbe[_0x7a3c85(0x225)],_0x4a8bbe[_0x7a3c85(0x2d3)]),process[_0x7a3c85(0x29a)](0x1)):_0x381294[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x1f2)]);}}function a17_0x52e3(){const _0x33af40=['\x20region\x20-\x20','qZrKT','EdEmp','CQdFH','toLowerCase','<UsernamePlaceholder>','epilogue','PBzsE','SnlpB','ERROR','join','SdeIL','cmiRi','clusterName','Humou','xhUBx','TcWih','Success','yiiDh','nxhpN','GPFfZ','`\x20already\x20exists','pHxLb','../../utils/webSocketUtils','\x20\x20Stack:\x20','message','checkAccess','help','parse','VaYYW','Grid\x20profile\x20fetched\x20for\x20pre-check','iXsGS','cloud-provider','Pre-check\x20running\x20for\x20Cloud\x20-\x20','bstackUsername','../../utils/instrumentationUtils','Message:\x20','Error\x20Details:\x0a','BmjfL','pre-check','split','gqhdi','6507963SPWhGI','15617WhQiSe','rqApD','CaIBk','ZCMrh','push','sendEventToBackend','info','HzoUA','296TMVJnJ','nHufX','\x20data\x20:\x20','https://','readFileSync','1pSGMVp','toolInstalledResp','../../utils/utilityMethods','builder','uHXeN','\x20\x20Message:\x20','error\x20stack\x20:\x20','siufb','existsSync','2657745NWhTyb','UmvIG','lgMkS','requestId','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','NtuML','Failure','FrxMm',']\x20status\x20:\x20','fAoRh','INFO','Cluster\x20details\x0a-----------------------\x0a','\x20error\x20:\x20','gridProfile','stack','isTrialGridAccessible','pre-check-grid-called','getUTCHours','jRCQM','LPgfN','lsmxC','jDyRx','delay','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','error','cfuHC','User\x20Access','myJSf','TEKWK','cloud-provider-not-supported','/packages/cli/get-all-grid-profiles','bstackAccesskey','description','response','code','cloudProvider','isClusterPresent','`\x20,error\x20:\x20','echbT','muQqR','UyLnb','handler','LOG','IwzFI','ieacq','QqxRK','eRCWn','KJLgg','type','iRdKy','options','585368OUKrnw','FXlkx','reconnecting-websocket','debug','izKpY','aaHVx','WebSocket','iYAWW','pre-check-grid-profile-empty','getUTCFullYear','getUTCMinutes','Setting\x20cloud\x20provider\x20as\x20','got','.\x20Please\x20provide\x20all\x20required\x20arguments.','WwYTW','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pre_check','mobux','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','QqSym','ORRiW','WuZDW','is\x20already\x20present','usage','TDYlO','KTbkR','47763ksUNyr','password','\x20\x20Code:\x20','cluster-name','stringify','FVFuq','clusterRegion','tgsDt','yNRni','Cluster\x20','status','Browserstack','<PasswordPlaceholder>','EmBlf','eKpiY','1220396yHOsKF','piRhc','command','LYnzg','TkTCa','body','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','NcGqq','grid-profile','RZAWT','desc','region','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HeLFZ','jGxSE','xniyh','EAYiR','yDFVc','Invalid\x20input.\x20grid\x20profiles:\x20','sLnwc','getUTCDate','pre-check-cluster-args-not-passed','zzqwO','authHeader','name','hgmtb','exit','credential-not-found','N/A','KStBc','obmMS','YCCZY','BhbMF','tPXHu','data','Report\x20saved\x20in\x20','nYoEE','270RAdHYc','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','unable\x20to\x20verify\x20if\x20cluster\x20`','RubtZ','Ixnzi','header','300jxfugW','connectionTimeout','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','log/report_','stack\x20trace\x20','replace','phxUJ','SSL\x20Configured','YMrgi','rpZvy','raBaj','ELAzI','33786YGnFiF','oabOc','isTls1_2_SUPPORTED','OCksG','username','grid','\x20===\x0a\x0a','YbTXq','LwZkd','accessResp','zrQoM','string','CLOUD_PROVIDER','GET','zcIar','Cluster\x20`','method','pre-check-failed','oKTOn','argv','Whitelisted\x20browserstack','===\x20Precheck\x20Report\x20-\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','QUOrU','YCEeB','vtAKa','dummy-grid','Status:\x20','YahpB','ujcxL','bdEdS','utf-8','AaPLw','ExKFj','throwHttpErrors','pTguU','OSXhi','yTwUb','Tool\x20Installed','rkBOz','htIuX','grid\x20profile\x20flow\x20','DuhVL','4|0|1|3|2','will\x20be\x20created'];a17_0x52e3=function(){return _0x33af40;};return a17_0x52e3();}function a17_0x20e0(_0x51dfb3,_0x1faed7){const _0x52e340=a17_0x52e3();return a17_0x20e0=function(_0x20e0d0,_0x5e784b){_0x20e0d0=_0x20e0d0-0x1f2;let _0x29e1b3=_0x52e340[_0x20e0d0];return _0x29e1b3;},a17_0x20e0(_0x51dfb3,_0x1faed7);}function printResponse(_0x39fb01,_0x4f5a18){const _0x2a4b1f=a17_0x36bbdc,_0x53323e={};_0x53323e[_0x2a4b1f(0x24a)]='is\x20already\x20present',_0x53323e['ELAzI']=_0x2a4b1f(0x2e3),_0x53323e[_0x2a4b1f(0x2b1)]=function(_0x5dd244,_0x2f280d){return _0x5dd244===_0x2f280d;},_0x53323e[_0x2a4b1f(0x1f3)]=_0x2a4b1f(0x28e),_0x53323e['yiiDh']='VuTwf';const _0x2c7b46=_0x53323e;logger[_0x2a4b1f(0x214)]('['+_0x39fb01+']\x20status\x20:\x20'+_0x4f5a18['status']+_0x2a4b1f(0x218)+_0x4f5a18[_0x2a4b1f(0x2a2)]+_0x2a4b1f(0x230)+_0x4f5a18['error']),_0x4f5a18[_0x2a4b1f(0x23c)]&&(_0x2c7b46[_0x2a4b1f(0x2b1)](_0x2c7b46[_0x2a4b1f(0x1f3)],_0x2c7b46[_0x2a4b1f(0x1f5)])?_0x115bcd+='Cluster\x20'+_0x3bdda8[_0x2a4b1f(0x2f1)]+'\x20'+(_0x3b7566?_0x2c7b46[_0x2a4b1f(0x24a)]:_0x2c7b46[_0x2a4b1f(0x2b6)])+'\x0a\x0a':logger[_0x2a4b1f(0x23c)](_0x2a4b1f(0x221)+_0x4f5a18[_0x2a4b1f(0x23c)][_0x2a4b1f(0x232)]));}async function generateReport(_0x6fb4d7,_0x45795c){const _0x2847af=a17_0x36bbdc,_0x25e281={'LwZkd':function(_0x51d8f5,_0x2b6477){return _0x51d8f5+_0x2b6477;},'BhbMF':_0x2847af(0x1f4),'TVuWz':_0x2847af(0x22a),'KTbkR':function(_0x42f806,_0x4c02e3){return _0x42f806||_0x4c02e3;},'tPXHu':_0x2847af(0x29c),'JKDwl':_0x2847af(0x208),'pTguU':_0x2847af(0x22f),'PKMGY':function(_0x29dc0d,_0x4fa1ae){return _0x29dc0d!=_0x4fa1ae;},'cmiRi':_0x2847af(0x26d),'iXsGS':'will\x20be\x20created','obmMS':function(_0x12acd3){return _0x12acd3();}};let _0x5d6f33=_0x2847af(0x2cc)+global_registry[_0x2847af(0x247)]+_0x2847af(0x2bd);return _0x6fb4d7['forEach']((_0x2e2a79,_0x32f777)=>{const _0x20f7eb=_0x2847af,{header:_0x4afa5f,response:_0x37290b}=_0x2e2a79,{status:_0x4f158e,data:_0x2b3b75,error:_0x4c9173}=_0x37290b;_0x5d6f33+=_0x4afa5f+'\x20#'+_0x25e281[_0x20f7eb(0x2bf)](_0x32f777,0x1)+'\x0a',_0x5d6f33+=_0x20f7eb(0x2d2)+(_0x4f158e?_0x25e281[_0x20f7eb(0x2a0)]:_0x25e281['TVuWz'])+'\x0a',_0x5d6f33+=_0x20f7eb(0x207)+_0x25e281[_0x20f7eb(0x270)](_0x2b3b75,_0x25e281[_0x20f7eb(0x2a1)])+'\x0a',_0x4c9173&&(_0x5d6f33+=_0x25e281['JKDwl'],_0x5d6f33+=_0x20f7eb(0x220)+(_0x4c9173[_0x20f7eb(0x1fc)]||_0x25e281[_0x20f7eb(0x2a1)])+'\x0a',_0x5d6f33+='\x20\x20Code:\x20'+(_0x4c9173[_0x20f7eb(0x246)]||_0x25e281[_0x20f7eb(0x2a1)])+'\x0a',_0x5d6f33+=_0x20f7eb(0x1fb)+(_0x4c9173[_0x20f7eb(0x232)]||_0x25e281[_0x20f7eb(0x2a1)])+'\x0a'),_0x5d6f33+='\x0a\x0a';}),_0x5d6f33+=_0x25e281[_0x2847af(0x2da)],_0x25e281['PKMGY'](_0x45795c,null)?_0x5d6f33+=_0x2847af(0x27a)+global_registry[_0x2847af(0x2f1)]+'\x20'+(_0x45795c?_0x25e281[_0x2847af(0x2f0)]:_0x25e281[_0x2847af(0x202)])+'\x0a\x0a':_0x5d6f33+=_0x2847af(0x27a)+global_registry[_0x2847af(0x2f1)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x5d6f33+=_0x25e281[_0x2847af(0x29e)](getSystemMetaData),_0x5d6f33;};exports[a17_0x36bbdc(0x24d)]=async function(_0x24e6d6){const _0x2d0bd0=a17_0x36bbdc,_0x2c3d21={'TDYlO':function(_0x56b50d){return _0x56b50d();},'AaPLw':_0x2d0bd0(0x28c),'ieacq':function(_0x27a264,_0x1339f4,_0x350f74,_0x424a76,_0x3188b4,_0x2ba34a,_0x21951c,_0x4523b){return _0x27a264(_0x1339f4,_0x350f74,_0x424a76,_0x3188b4,_0x2ba34a,_0x21951c,_0x4523b);},'QqxRK':_0x2d0bd0(0x234),'ErTPV':_0x2d0bd0(0x29b),'nYoEE':_0x2d0bd0(0x23c),'vtAKa':function(_0xfb4e59,_0x36ca74,_0x397d41,_0x557da0,_0xf41ce6,_0x30abc3,_0x105334){return _0xfb4e59(_0x36ca74,_0x397d41,_0x557da0,_0xf41ce6,_0x30abc3,_0x105334);},'yNRni':_0x2d0bd0(0x2e9),'nHufX':_0x2d0bd0(0x27d),'oabOc':function(_0x18690c,_0x2afbca,_0x43e7b0){return _0x18690c(_0x2afbca,_0x43e7b0);},'HeLFZ':_0x2d0bd0(0x2d1),'BUleF':_0x2d0bd0(0x21c),'vSsCM':_0x2d0bd0(0x2e2),'PBzsE':function(_0x5af923,_0x21a132,_0x2d7d29){return _0x5af923(_0x21a132,_0x2d7d29);},'YCCZY':_0x2d0bd0(0x2c0),'DuhVL':function(_0x33e5ed,_0x403763,_0x50a0ab){return _0x33e5ed(_0x403763,_0x50a0ab);},'uHXeN':_0x2d0bd0(0x233),'NcGqq':function(_0x1c5da0,_0x4dacc8){return _0x1c5da0(_0x4dacc8);},'RbJQD':'TLSv1_2_client_method','HnsmR':function(_0x9327de,_0x215824,_0x26fb44){return _0x9327de(_0x215824,_0x26fb44);},'iRdKy':_0x2d0bd0(0x2b9),'FVFuq':_0x2d0bd0(0x2dd),'aaHVx':_0x2d0bd0(0x23e),'kFhTt':_0x2d0bd0(0x2cb),'CLAxW':_0x2d0bd0(0x2b2),'cfuHC':function(_0x5a0110,_0x14dd04,_0x48bbba){return _0x5a0110(_0x14dd04,_0x48bbba);},'zrQoM':function(_0x473cb3,_0xd3fa35){return _0x473cb3+_0xd3fa35;},'YbTXq':_0x2d0bd0(0x2d6),'myJSf':_0x2d0bd0(0x2c8)};let _0x11d8c4,_0x583a1a;try{global_registry[_0x2d0bd0(0x227)]=_0x2c3d21[_0x2d0bd0(0x26f)](uuidv4);!fs[_0x2d0bd0(0x223)](_0x2c3d21[_0x2d0bd0(0x26f)](getCredentialsPath))&&(_0x583a1a=_0x2c3d21[_0x2d0bd0(0x2d7)],logger[_0x2d0bd0(0x23c)](_0x583a1a),await _0x2c3d21[_0x2d0bd0(0x250)](reportToGalactusAndSendToEDS,_0x24e6d6,_0x11d8c4,_0x583a1a,messageTypes[_0x2d0bd0(0x2ed)],_0x2c3d21[_0x2d0bd0(0x251)],_0x2c3d21['ErTPV'],_0x2c3d21['nYoEE']),process[_0x2d0bd0(0x29a)](0x1));_0x2c3d21[_0x2d0bd0(0x2d0)](sendInstrumentationEvent,_0x24e6d6,_0x2c3d21[_0x2d0bd0(0x251)],messageTypes[_0x2d0bd0(0x22e)],null,null,_0x24e6d6);const _0x72da24=JSON[_0x2d0bd0(0x1ff)](fs[_0x2d0bd0(0x21a)](_0x2c3d21[_0x2d0bd0(0x26f)](getCredentialsPath)));global_registry[_0x2d0bd0(0x205)]=_0x72da24[_0x2d0bd0(0x27c)][_0x2d0bd0(0x2bb)],global_registry['bstackAccesskey']=_0x72da24[_0x2d0bd0(0x27c)][_0x2d0bd0(0x272)];const _0x539469=WS_ENDPOINT[_0x2d0bd0(0x2b0)](_0x2c3d21[_0x2d0bd0(0x279)],_0x72da24[_0x2d0bd0(0x27c)]['username'])[_0x2d0bd0(0x2b0)](_0x2c3d21[_0x2d0bd0(0x217)],_0x72da24[_0x2d0bd0(0x27c)][_0x2d0bd0(0x272)]),_0x916398={};_0x916398[_0x2d0bd0(0x25d)]=ws,_0x916398[_0x2d0bd0(0x2ac)]=0x36ee80,_0x11d8c4=new ReconnectingWebSocket(_0x539469,[],_0x916398),global_registry[_0x2d0bd0(0x297)]=_0x2c3d21[_0x2d0bd0(0x2b8)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x2d0bd0(0x243)]),await _0x2c3d21[_0x2d0bd0(0x2b8)](inputValidation,_0x24e6d6,_0x11d8c4),logger[_0x2d0bd0(0x214)](_0x2d0bd0(0x204)+global_registry[_0x2d0bd0(0x247)]+_0x2d0bd0(0x2e4)+global_registry[_0x2d0bd0(0x277)]);let _0x497b94=await _0x2c3d21[_0x2d0bd0(0x2d0)](getCloudProviderObjectWithOutInit,global_registry[_0x2d0bd0(0x247)],global_registry[_0x2d0bd0(0x2f1)],_0x2c3d21[_0x2d0bd0(0x28d)],_0x11d8c4,webSocketUtils,_0x24e6d6);const _0x40818c=await _0x497b94['isCliToolInstalled']();_0x2c3d21[_0x2d0bd0(0x2b8)](printResponse,_0x2c3d21['BUleF'],_0x40818c),_0x497b94=await _0x497b94['init']();let _0xe79dcf=![];try{_0xe79dcf=await _0x497b94[_0x2d0bd0(0x248)]();}catch(_0x1d9c28){const _0x4ce068=_0x2c3d21['vSsCM'][_0x2d0bd0(0x20b)]('|');let _0x5e1d65=0x0;while(!![]){switch(_0x4ce068[_0x5e1d65++]){case'0':_0xe79dcf=null;continue;case'1':logger['error'](_0x583a1a);continue;case'2':await _0x2c3d21[_0x2d0bd0(0x250)](reportToGalactusAndSendToEDS,_0x24e6d6,_0x11d8c4,_0x583a1a,messageTypes[_0x2d0bd0(0x2ed)],_0x2c3d21[_0x2d0bd0(0x251)],'cluster-check-failed-'+global_registry[_0x2d0bd0(0x247)],_0x2c3d21['nYoEE']);continue;case'3':_0x583a1a+='\x0a'+JSON[_0x2d0bd0(0x275)](_0x1d9c28['stack']);continue;case'4':_0x583a1a=_0x2d0bd0(0x2a7)+global_registry[_0x2d0bd0(0x2f1)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x2d0bd0(0x277)]+_0x2d0bd0(0x249)+_0x1d9c28;continue;}break;}}_0xe79dcf&&logger[_0x2d0bd0(0x214)](_0x2d0bd0(0x2c6)+global_registry[_0x2d0bd0(0x2f1)]+_0x2d0bd0(0x1f8));const _0x26ceb0=await _0x497b94[_0x2d0bd0(0x1fd)]();_0x2c3d21[_0x2d0bd0(0x2eb)](printResponse,_0x2c3d21[_0x2d0bd0(0x29f)],_0x26ceb0);const _0x38b4d4=await _0x2c3d21[_0x2d0bd0(0x26f)](curlRequest);_0x2c3d21[_0x2d0bd0(0x2e1)](printResponse,_0x2c3d21[_0x2d0bd0(0x21f)],_0x38b4d4);const _0x16ccf6=await _0x2c3d21[_0x2d0bd0(0x287)](isTlsSupported,_0x2c3d21['RbJQD']);_0x2c3d21['HnsmR'](printResponse,_0x2c3d21[_0x2d0bd0(0x255)],_0x16ccf6);const _0x138061={};_0x138061[_0x2d0bd0(0x2aa)]=_0x2c3d21[_0x2d0bd0(0x276)],_0x138061[_0x2d0bd0(0x245)]=_0x40818c;const _0x395fdf={};_0x395fdf[_0x2d0bd0(0x2aa)]=_0x2c3d21[_0x2d0bd0(0x25c)],_0x395fdf['response']=_0x26ceb0;const _0x290785={};_0x290785[_0x2d0bd0(0x2aa)]=_0x2c3d21['kFhTt'],_0x290785[_0x2d0bd0(0x245)]=_0x38b4d4;const _0x105a57={};_0x105a57['header']=_0x2c3d21['CLAxW'],_0x105a57[_0x2d0bd0(0x245)]=_0x16ccf6;const _0x895b60=[_0x138061,_0x395fdf,_0x290785,_0x105a57],_0x28fe75=await _0x2c3d21[_0x2d0bd0(0x23d)](generateReport,_0x895b60,_0xe79dcf),_0x43acf9=new Date(),_0x2a7111=_0x43acf9[_0x2d0bd0(0x260)]()+'_'+_0x2c3d21[_0x2d0bd0(0x2c1)](_0x43acf9['getUTCMonth'](),0x1)+'_'+_0x43acf9[_0x2d0bd0(0x294)]()+'_'+_0x43acf9[_0x2d0bd0(0x235)]()+'_'+_0x43acf9[_0x2d0bd0(0x261)](),_0x336825=_0x2d0bd0(0x2ae)+_0x2a7111+'.txt';fs['writeFileSync'](_0x336825,_0x28fe75,_0x2c3d21[_0x2d0bd0(0x2be)]),logger[_0x2d0bd0(0x214)](_0x2d0bd0(0x2a3)+_0x336825),process[_0x2d0bd0(0x29a)](0x0);}catch(_0x4405fb){let _0x442ed6='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x4405fb+'\x20';logger[_0x2d0bd0(0x23c)](_0x442ed6),_0x442ed6+='\x0a'+JSON[_0x2d0bd0(0x275)](_0x4405fb[_0x2d0bd0(0x232)]),logger[_0x2d0bd0(0x25a)](_0x2d0bd0(0x2af)+_0x4405fb[_0x2d0bd0(0x232)]);if(_0x11d8c4){const _0x4e0c93={};_0x4e0c93[_0x2d0bd0(0x254)]=WS_EVENTS[_0x2d0bd0(0x24e)],_0x4e0c93[_0x2d0bd0(0x1fc)]=_0x442ed6,webSocketUtils[_0x2d0bd0(0x213)](_0x11d8c4,_0x4e0c93,_0x2c3d21[_0x2d0bd0(0x2a4)],!![]);}await webSocketUtils[_0x2d0bd0(0x23a)](0x7d0);const _0x3fc320={};_0x3fc320[_0x2d0bd0(0x23c)]=_0x442ed6,await _0x2c3d21[_0x2d0bd0(0x2d0)](sendInstrumentationEvent,_0x24e6d6,_0x2c3d21[_0x2d0bd0(0x251)],messageTypes[_0x2d0bd0(0x2ed)],_0x2c3d21[_0x2d0bd0(0x23f)],_0x3fc320,_0x24e6d6),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a18_0x22f2bc=a18_0x2a1a;(function(_0x36e61e,_0x2e6cef){const _0x5f53ee=a18_0x2a1a,_0x1d9e2f=_0x36e61e();while(!![]){try{const _0x3e5df7=parseInt(_0x5f53ee(0x1cb))/0x1*(-parseInt(_0x5f53ee(0x1d1))/0x2)+-parseInt(_0x5f53ee(0x1da))/0x3*(-parseInt(_0x5f53ee(0x1cc))/0x4)+-parseInt(_0x5f53ee(0x1d5))/0x5*(-parseInt(_0x5f53ee(0x1ce))/0x6)+parseInt(_0x5f53ee(0x1d2))/0x7*(parseInt(_0x5f53ee(0x1de))/0x8)+parseInt(_0x5f53ee(0x1cd))/0x9*(parseInt(_0x5f53ee(0x1c7))/0xa)+parseInt(_0x5f53ee(0x1d3))/0xb+-parseInt(_0x5f53ee(0x1d9))/0xc*(parseInt(_0x5f53ee(0x1d4))/0xd);if(_0x3e5df7===_0x2e6cef)break;else _0x1d9e2f['push'](_0x1d9e2f['shift']());}catch(_0xbf2102){_0x1d9e2f['push'](_0x1d9e2f['shift']());}}}(a18_0x3a23,0x35bf2));function a18_0x2a1a(_0x290609,_0x5cbb93){const _0x3a2327=a18_0x3a23();return a18_0x2a1a=function(_0x2a1a6d,_0x5005a3){_0x2a1a6d=_0x2a1a6d-0x1c7;let _0x282743=_0x3a2327[_0x2a1a6d];return _0x282743;},a18_0x2a1a(_0x290609,_0x5cbb93);}function a18_0x3a23(){const _0x4c78b4=['2640IkAOXi','133899vwGrBY','tgjcZ','desc','usage','16xqZEsv','start','10MRtAAq','recommendCommands','start_commands','KXxOr','1wJNAqp','16YmzsFw','937305aMCnyk','99150WtugOm','help','strict','795734vAybhE','328741rvFEwZ','2950860geUhXX','26975OgnNJj','130mFtaon','builder','epilogue','commandDir'];a18_0x3a23=function(){return _0x4c78b4;};return a18_0x3a23();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x22f2bc(0x1df),exports[a18_0x22f2bc(0x1dc)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x22f2bc(0x1d6)]=function(_0x3d7910){const _0x5a629f=a18_0x22f2bc,_0x11dd49={};_0x11dd49[_0x5a629f(0x1db)]=_0x5a629f(0x1c9),_0x11dd49['KXxOr']=_0x5a629f(0x1cf);const _0x531b41=_0x11dd49;return _0x3d7910[_0x5a629f(0x1dd)](HELP_HEADER_MESSAGE[_0x5a629f(0x1df)])[_0x5a629f(0x1d7)](HELP_FOOTER_MESSAGE)[_0x5a629f(0x1d8)](_0x531b41['tgjcZ'])['demandCommand']()[_0x5a629f(0x1c8)]()[_0x5a629f(0x1d0)]()[_0x5a629f(0x1cf)](_0x531b41[_0x5a629f(0x1ca)]);},exports['handler']=function(_0x1cd280){};
1
+ function a18_0x58bd(_0x4b865a,_0x38ad2f){const _0x34e97c=a18_0x34e9();return a18_0x58bd=function(_0x58bd9c,_0x2dd792){_0x58bd9c=_0x58bd9c-0x159;let _0x478b66=_0x34e97c[_0x58bd9c];return _0x478b66;},a18_0x58bd(_0x4b865a,_0x38ad2f);}const a18_0x3cbffa=a18_0x58bd;function a18_0x34e9(){const _0x3df68f=['3480728BHhSOb','798529JfaLbo','command','handler','start','7508420nEXsvt','demandCommand','25925aocaQO','1508622DcIMFh','../config/constants','start_commands','usage','recommendCommands','epilogue','EdqgU','strict','commandDir','lPVeM','1110CmuKsL','help','33452azbLCM','87azmIPa','builder','1062782lhhUjx','Start\x20an\x20existing\x20Automation\x20grid.','18KIavJg'];a18_0x34e9=function(){return _0x3df68f;};return a18_0x34e9();}(function(_0x3fb4b5,_0x249a4a){const _0x36a17b=a18_0x58bd,_0xa711e2=_0x3fb4b5();while(!![]){try{const _0x578146=parseInt(_0x36a17b(0x172))/0x1+parseInt(_0x36a17b(0x15f))/0x2+parseInt(_0x36a17b(0x16c))/0x3*(-parseInt(_0x36a17b(0x16b))/0x4)+-parseInt(_0x36a17b(0x15e))/0x5*(-parseInt(_0x36a17b(0x169))/0x6)+parseInt(_0x36a17b(0x16e))/0x7+-parseInt(_0x36a17b(0x171))/0x8+parseInt(_0x36a17b(0x170))/0x9*(-parseInt(_0x36a17b(0x15c))/0xa);if(_0x578146===_0x249a4a)break;else _0xa711e2['push'](_0xa711e2['shift']());}catch(_0x2f413e){_0xa711e2['push'](_0xa711e2['shift']());}}}(a18_0x34e9,0x764ed));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3cbffa(0x160));exports[a18_0x3cbffa(0x159)]=a18_0x3cbffa(0x15b),exports['desc']=a18_0x3cbffa(0x16f),exports[a18_0x3cbffa(0x16d)]=function(_0x2cca3e){const _0xe7e775=a18_0x3cbffa,_0x4fd9b8={};_0x4fd9b8[_0xe7e775(0x165)]=_0xe7e775(0x161),_0x4fd9b8[_0xe7e775(0x168)]=_0xe7e775(0x16a);const _0x51b027=_0x4fd9b8;return _0x2cca3e[_0xe7e775(0x162)](HELP_HEADER_MESSAGE[_0xe7e775(0x15b)])[_0xe7e775(0x164)](HELP_FOOTER_MESSAGE)[_0xe7e775(0x167)](_0x51b027['EdqgU'])[_0xe7e775(0x15d)]()[_0xe7e775(0x163)]()[_0xe7e775(0x166)]()[_0xe7e775(0x16a)](_0x51b027['lPVeM']);},exports[a18_0x3cbffa(0x15a)]=function(_0xfe3c43){};
@@ -1 +1 @@
1
- const a19_0x53a2ae=a19_0x1bc3;function a19_0x1bc3(_0x9c309a,_0x3ee803){const _0x3f0a6b=a19_0x3f0a();return a19_0x1bc3=function(_0x1bc344,_0x5bb2c7){_0x1bc344=_0x1bc344-0x1ac;let _0x335e5f=_0x3f0a6b[_0x1bc344];return _0x335e5f;},a19_0x1bc3(_0x9c309a,_0x3ee803);}(function(_0x24643c,_0x9d7962){const _0x39de00=a19_0x1bc3,_0x267643=_0x24643c();while(!![]){try{const _0x2e8f84=parseInt(_0x39de00(0x1fd))/0x1+-parseInt(_0x39de00(0x1e1))/0x2+parseInt(_0x39de00(0x1de))/0x3*(-parseInt(_0x39de00(0x1ec))/0x4)+parseInt(_0x39de00(0x201))/0x5*(-parseInt(_0x39de00(0x1ac))/0x6)+-parseInt(_0x39de00(0x1e0))/0x7+-parseInt(_0x39de00(0x1cf))/0x8+parseInt(_0x39de00(0x1e2))/0x9;if(_0x2e8f84===_0x9d7962)break;else _0x267643['push'](_0x267643['shift']());}catch(_0x26ce52){_0x267643['push'](_0x267643['shift']());}}}(a19_0x3f0a,0xe6f77));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x53a2ae(0x1b2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x53a2ae(0x1b4)),{logger}=require(a19_0x53a2ae(0x1b1)),{getCredentialsPath,getGridDetails}=require(a19_0x53a2ae(0x1d0)),{scaleUpHubDeployment}=require(a19_0x53a2ae(0x1fb)),{sendInstrumentationEvent}=require(a19_0x53a2ae(0x1bd)),webSocketUtils=require(a19_0x53a2ae(0x1ea)),{createK8sClient}=require(a19_0x53a2ae(0x1fc)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x3f0a(){const _0x47c2b7=['grid-id','statusCode','ooYpN','Adding\x20Websocket\x20listeners','ERROR','boolean','BHPvn','stringify','whCYF','lyOfR','gridId','14280128TakRWD','../../utils/utilityMethods','server-error','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','skipTlsCertVerify','clusterName','epilogue','username','DQrnd','nuAnQ','existsSync','replace','region','init-not-called','desc','150wHwPQV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','6986231EcXnMx','3366586ptMxFm','56538657cjxRui','lFBGI','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uHyqH','clusterRegion','readFileSync','options','start-grid-called','../../utils/webSocketUtils','stack','60808wlGnAN','WZNsK','WebSocket','qQAbH','INFO','error','Browserstack','cASZW','Start\x20an\x20existing\x20Automation\x20grid.','description','exit','info','connectionTimeout','McfHb','handler','../../utils/gridComponents','../../utils/createk8sClient','1403761YpSJFK','rZlbW','rKDxh','Grid\x20started','2522255RyZFRr','unauthorised','command','message','start','user','JGnhc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','invalid-grid-id','18poVrIi','<PasswordPlaceholder>','parse','vgsLr','default','../../config/logger','reconnecting-websocket','cloudProvider','../../config/constants','ISSoX','debug','bKAop','body','OFGJx','JjTgm','type','skip-tls-cert-verify','../../utils/instrumentationUtils','grid','help','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','password','PGdgl','addListeners'];a19_0x3f0a=function(){return _0x47c2b7;};return a19_0x3f0a();}exports[a19_0x53a2ae(0x203)]=a19_0x53a2ae(0x1be),exports[a19_0x53a2ae(0x1dd)]=a19_0x53a2ae(0x1f4),exports['builder']=function(_0xa8111c){const _0x5a3abf=a19_0x53a2ae,_0x2a66d5={};_0x2a66d5['uHyqH']=_0x5a3abf(0x208),_0x2a66d5['nuAnQ']='string',_0x2a66d5[_0x5a3abf(0x1fe)]='Skip\x20insecure\x20cert\x20verification.',_0x2a66d5['ISSoX']=_0x5a3abf(0x1c9),_0x2a66d5[_0x5a3abf(0x1af)]='help';const _0x2246c0=_0x2a66d5,_0x373fb2={};_0x373fb2[_0x5a3abf(0x1f5)]=_0x2246c0[_0x5a3abf(0x1e5)],_0x373fb2['type']=_0x2246c0[_0x5a3abf(0x1d8)];const _0x402f9e={};_0x402f9e['description']=_0x2246c0['rZlbW'],_0x402f9e[_0x5a3abf(0x1bb)]=_0x2246c0[_0x5a3abf(0x1b5)],_0x402f9e[_0x5a3abf(0x1b0)]=![];const _0x1f25ed={};return _0x1f25ed[_0x5a3abf(0x1c4)]=_0x373fb2,_0x1f25ed[_0x5a3abf(0x1bc)]=_0x402f9e,_0xa8111c['usage'](HELP_HEADER_MESSAGE[_0x5a3abf(0x205)])[_0x5a3abf(0x1d5)](HELP_FOOTER_MESSAGE)[_0x5a3abf(0x1e8)](_0x1f25ed)[_0x5a3abf(0x1bf)](_0x2246c0[_0x5a3abf(0x1af)])['argv'];},exports[a19_0x53a2ae(0x1fa)]=async function(_0x2deb13){const _0x15272b=a19_0x53a2ae,_0x175d11={'WZNsK':_0x15272b(0x1d2),'PGdgl':function(_0x3a3d88){return _0x3a3d88();},'PtPyH':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rKDxh':function(_0x173553,_0x1ae482,_0x2ec9a5,_0x15c62a,_0x3eb2e4,_0x304da7,_0x9a6eb3){return _0x173553(_0x1ae482,_0x2ec9a5,_0x15c62a,_0x3eb2e4,_0x304da7,_0x9a6eb3);},'DQrnd':_0x15272b(0x1e9),'Bmwbr':_0x15272b(0x1dc),'bKAop':'<UsernamePlaceholder>','whCYF':_0x15272b(0x1ad),'QZNUg':_0x15272b(0x1c7),'JGnhc':function(_0x37c0f3,_0x1c4023,_0x42e7df,_0x2416b4){return _0x37c0f3(_0x1c4023,_0x42e7df,_0x2416b4);},'JjTgm':function(_0xa21e4a,_0x14dc4d,_0x2ed8ba,_0x77b771,_0x651717,_0x1f8c80,_0x35fc74){return _0xa21e4a(_0x14dc4d,_0x2ed8ba,_0x77b771,_0x651717,_0x1f8c80,_0x35fc74);},'ooYpN':function(_0x39c490,_0x4c969c,_0x360338){return _0x39c490(_0x4c969c,_0x360338);},'lyOfR':function(_0x266e6e,_0x9f7cd2,_0x378dae){return _0x266e6e(_0x9f7cd2,_0x378dae);},'qQAbH':_0x15272b(0x200),'PVHvH':function(_0x91af1b,_0x383876){return _0x91af1b===_0x383876;},'OFGJx':_0x15272b(0x1e4),'iCrcL':function(_0x58aae0,_0x4c865e,_0x5bc714,_0x1a1064,_0x43aa64,_0x491432,_0x366e84){return _0x58aae0(_0x4c865e,_0x5bc714,_0x1a1064,_0x43aa64,_0x491432,_0x366e84);},'McfHb':_0x15272b(0x202),'YJtEF':function(_0x4e3e63,_0x3a8520){return _0x4e3e63===_0x3a8520;},'cASZW':function(_0x3f4488,_0x83223e,_0x45b572,_0x5d832a,_0x562c3e,_0x4ae76f,_0x4f96f1){return _0x3f4488(_0x83223e,_0x45b572,_0x5d832a,_0x562c3e,_0x4ae76f,_0x4f96f1);},'sUPNa':_0x15272b(0x209),'BHPvn':function(_0x2414f8,_0xbbf06d,_0x855c1a,_0x572e60,_0x5e719b,_0x203594,_0x32e79d){return _0x2414f8(_0xbbf06d,_0x855c1a,_0x572e60,_0x5e719b,_0x203594,_0x32e79d);},'lFBGI':_0x15272b(0x1d1)};let _0x51d64c;try{!_0x2deb13['gridId']&&(logger[_0x15272b(0x1f1)](_0x175d11[_0x15272b(0x1ed)]),process[_0x15272b(0x1f6)](0x1));!fs[_0x15272b(0x1d9)](_0x175d11[_0x15272b(0x1c2)](getCredentialsPath))&&(logger[_0x15272b(0x1f1)](_0x175d11['PtPyH']),await _0x175d11[_0x15272b(0x1ff)](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1c8)],_0x175d11['Bmwbr'],null,_0x2deb13),process[_0x15272b(0x1f6)](0x1));logger['info']('Starting\x20grid\x20'+_0x2deb13['gridId']),await _0x175d11['rKDxh'](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1f0)],null,null,_0x2deb13);const _0x4f91c3=JSON['parse'](fs[_0x15272b(0x1e7)](_0x175d11[_0x15272b(0x1c2)](getCredentialsPath)));global_registry['bstackUsername']=_0x4f91c3[_0x15272b(0x1f2)]['username'],global_registry['bstackAccesskey']=_0x4f91c3[_0x15272b(0x1f2)][_0x15272b(0x1c1)];const _0x264691=WS_ENDPOINT[_0x15272b(0x1da)](_0x175d11[_0x15272b(0x1b7)],_0x4f91c3[_0x15272b(0x1f2)]['username'])[_0x15272b(0x1da)](_0x175d11[_0x15272b(0x1cc)],_0x4f91c3[_0x15272b(0x1f2)]['password']),_0x51efc0={};_0x51efc0[_0x15272b(0x1ee)]=ws,_0x51efc0[_0x15272b(0x1f8)]=0x36ee80,_0x51d64c=new ReconnectingWebSocket(_0x264691,[],_0x51efc0),logger[_0x15272b(0x1b6)](_0x175d11['QZNUg']),webSocketUtils[_0x15272b(0x1c3)](_0x51d64c,_0x2deb13[_0x15272b(0x206)],_0x2deb13[_0x15272b(0x1c1)]);const [_0x3a6a8c,_0x51d40b]=await _0x175d11[_0x15272b(0x207)](getGridDetails,_0x4f91c3['Browserstack'][_0x15272b(0x1d6)],_0x4f91c3[_0x15272b(0x1f2)][_0x15272b(0x1c1)],_0x2deb13[_0x15272b(0x1ce)]);if(_0x51d40b){const _0x25faf8=_0x51d40b[_0x15272b(0x1f7)];global_registry[_0x15272b(0x1b3)]=_0x25faf8[_0x15272b(0x1b3)],global_registry[_0x15272b(0x1e6)]=_0x25faf8[_0x15272b(0x1db)],global_registry[_0x15272b(0x1d4)]=_0x25faf8['clusterName'];const _0x7daee2=await _0x175d11[_0x15272b(0x1ba)](getCloudProviderObject,_0x25faf8[_0x15272b(0x1b3)],_0x25faf8[_0x15272b(0x1d4)],_0x25faf8['name'],_0x51d64c,webSocketUtils,_0x2deb13),[_0x335092,_0x109be6,_0x2ff657,_0x186976,_0x5970fc,_0x32adbd]=await _0x175d11[_0x15272b(0x1c6)](createK8sClient,_0x7daee2,_0x2deb13[_0x15272b(0x1d3)]);await _0x175d11[_0x15272b(0x1cd)](scaleUpHubDeployment,_0x109be6,_0x25faf8['name']),logger[_0x15272b(0x1f7)](_0x175d11[_0x15272b(0x1ef)]),process[_0x15272b(0x1f6)](0x0);}_0x175d11['PVHvH'](_0x3a6a8c[_0x15272b(0x1c5)],0x191)&&(logger[_0x15272b(0x1f1)](_0x175d11[_0x15272b(0x1b9)]),await _0x175d11['iCrcL'](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1c8)],_0x175d11[_0x15272b(0x1f9)],null,_0x2deb13),process[_0x15272b(0x1f6)](0x1)),_0x175d11['YJtEF'](_0x3a6a8c[_0x15272b(0x1c5)],0x190)&&(logger[_0x15272b(0x1f1)](JSON[_0x15272b(0x1ae)](_0x3a6a8c[_0x15272b(0x1b8)])[_0x15272b(0x204)]),await _0x175d11[_0x15272b(0x1f3)](sendInstrumentationEvent,_0x2deb13,_0x175d11['DQrnd'],messageTypes[_0x15272b(0x1c8)],_0x175d11['sUPNa'],null,_0x2deb13),process[_0x15272b(0x1f6)](0x1)),logger[_0x15272b(0x1f1)](_0x15272b(0x1df)+JSON[_0x15272b(0x1cb)](_0x3a6a8c)),await _0x175d11[_0x15272b(0x1ca)](sendInstrumentationEvent,_0x2deb13,_0x175d11[_0x15272b(0x1d7)],messageTypes[_0x15272b(0x1c8)],_0x175d11[_0x15272b(0x1e3)],_0x3a6a8c,_0x2deb13),process['exit'](0x1);}catch(_0x5ea806){const _0x2f3139=_0x15272b(0x1c0)+_0x5ea806+'\x20\x0a'+JSON['stringify'](_0x5ea806[_0x15272b(0x1eb)])+'\x20';logger[_0x15272b(0x1f1)](_0x2f3139),process['exit'](0x1);}};
1
+ function a19_0xdb7c(){const _0x1047f5=['exit','../../utils/utilityMethods','stack','ERROR','info','../../utils/createk8sClient','statusCode','grid-id','4007007lEIBLg','GOgUA','4tDDvEB','2467224UrdsTD','clusterRegion','ZQlJi','29784edJafE','LHLdG','963361hsFJbU','Grid\x20started','addListeners','unauthorised','QdcVC','type','1073405ILmiLK','user','clBxL','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','start','KWjNI','help','boolean','stringify','string','server-error','gridId','../../utils/webSocketUtils','18Krejey','region','error','usage','desc','parse','builder','XHbaf','<PasswordPlaceholder>','handler','name','replace','Start\x20an\x20existing\x20Automation\x20grid.','reconnecting-websocket','Starting\x20grid\x20','../../utils/instrumentationUtils','<UsernamePlaceholder>','ZaCoN','FMmuB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cloudProvider','skipTlsCertVerify','options','XsDUf','ayCHT','username','existsSync','../../config/constants','epilogue','debug','Browserstack','password','402130HJxbUP','readFileSync','1358583VFALCf','44ExKcNo','Skip\x20insecure\x20cert\x20verification.','default','eTAyS','2CdCvGg','sCCWJ','message','lVZAf','clusterName','skip-tls-cert-verify','start-grid-called','grid','bstackAccesskey','TVped','description','sMFia','init-not-called','bstackUsername','../../cloudproviders/utils','gDOHw','WebSocket'];a19_0xdb7c=function(){return _0x1047f5;};return a19_0xdb7c();}const a19_0x4cdfdf=a19_0x2a21;function a19_0x2a21(_0x562598,_0x573f71){const _0xdb7cb6=a19_0xdb7c();return a19_0x2a21=function(_0x2a2123,_0x2ab442){_0x2a2123=_0x2a2123-0xe5;let _0x4ad916=_0xdb7cb6[_0x2a2123];return _0x4ad916;},a19_0x2a21(_0x562598,_0x573f71);}(function(_0x55d471,_0x270505){const _0x70cb5a=a19_0x2a21,_0x5b95d8=_0x55d471();while(!![]){try{const _0x5bb3e9=-parseInt(_0x70cb5a(0x12c))/0x1+parseInt(_0x70cb5a(0x10d))/0x2*(parseInt(_0x70cb5a(0x108))/0x3)+parseInt(_0x70cb5a(0x128))/0x4*(parseInt(_0x70cb5a(0x134))/0x5)+parseInt(_0x70cb5a(0xe6))/0x6*(-parseInt(_0x70cb5a(0x12e))/0x7)+parseInt(_0x70cb5a(0x129))/0x8+-parseInt(_0x70cb5a(0x126))/0x9+-parseInt(_0x70cb5a(0x106))/0xa*(-parseInt(_0x70cb5a(0x109))/0xb);if(_0x5bb3e9===_0x270505)break;else _0x5b95d8['push'](_0x5b95d8['shift']());}catch(_0x4c9950){_0x5b95d8['push'](_0x5b95d8['shift']());}}}(a19_0xdb7c,0x3cc59));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x4cdfdf(0xf3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x4cdfdf(0x101)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x4cdfdf(0x11f)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x4cdfdf(0xf5)),webSocketUtils=require(a19_0x4cdfdf(0xe5)),{createK8sClient}=require(a19_0x4cdfdf(0x123)),{getCloudProviderObject}=require(a19_0x4cdfdf(0x11b));exports['command']=a19_0x4cdfdf(0x114),exports[a19_0x4cdfdf(0xea)]=a19_0x4cdfdf(0xf2),exports[a19_0x4cdfdf(0xec)]=function(_0x1cf70e){const _0x56f099=a19_0x4cdfdf,_0x3b162a={};_0x3b162a[_0x56f099(0x12d)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x3b162a[_0x56f099(0x127)]=_0x56f099(0x13d),_0x3b162a['KWjNI']=_0x56f099(0x10a),_0x3b162a[_0x56f099(0xfe)]=_0x56f099(0x13b),_0x3b162a[_0x56f099(0xed)]=_0x56f099(0x13a);const _0x369c59=_0x3b162a,_0x51e743={};_0x51e743[_0x56f099(0x117)]=_0x369c59[_0x56f099(0x12d)],_0x51e743[_0x56f099(0x133)]=_0x369c59[_0x56f099(0x127)];const _0x38a409={};_0x38a409['description']=_0x369c59[_0x56f099(0x139)],_0x38a409[_0x56f099(0x133)]=_0x369c59[_0x56f099(0xfe)],_0x38a409[_0x56f099(0x10b)]=![];const _0x77a6f0={};return _0x77a6f0[_0x56f099(0x125)]=_0x51e743,_0x77a6f0[_0x56f099(0x112)]=_0x38a409,_0x1cf70e[_0x56f099(0xe9)](HELP_HEADER_MESSAGE[_0x56f099(0x138)])[_0x56f099(0x102)](HELP_FOOTER_MESSAGE)[_0x56f099(0xfc)](_0x77a6f0)['help'](_0x369c59['XHbaf'])['argv'];},exports[a19_0x4cdfdf(0xef)]=async function(_0x49d8b5){const _0x26fef1=a19_0x4cdfdf,_0x321e5a={'XsDUf':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','YKDlO':function(_0x192752){return _0x192752();},'FMmuB':_0x26fef1(0xf9),'eTAyS':function(_0x5ac898,_0x9c91c5,_0x259697,_0x3667af,_0x27ee46,_0xe35448,_0x3e2411){return _0x5ac898(_0x9c91c5,_0x259697,_0x3667af,_0x27ee46,_0xe35448,_0x3e2411);},'clBxL':_0x26fef1(0x113),'ZRvlV':_0x26fef1(0x119),'TVped':_0x26fef1(0xf6),'sMFia':_0x26fef1(0xee),'lVZAf':'Adding\x20Websocket\x20listeners','sCCWJ':function(_0x35eb2e,_0x47a6b3,_0x133736,_0x2fc188){return _0x35eb2e(_0x47a6b3,_0x133736,_0x2fc188);},'ZaCoN':function(_0xa8b975,_0x37d246,_0x2e48de){return _0xa8b975(_0x37d246,_0x2e48de);},'gDOHw':_0x26fef1(0x12f),'CVfJe':function(_0x49750f,_0x444f16){return _0x49750f===_0x444f16;},'QdcVC':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','aExjJ':_0x26fef1(0x131),'ZQlJi':'invalid-grid-id','LqrVM':_0x26fef1(0x13e)};let _0x15d75d;try{!_0x49d8b5[_0x26fef1(0x13f)]&&(logger['error'](_0x321e5a[_0x26fef1(0xfd)]),process[_0x26fef1(0x11e)](0x1));!fs[_0x26fef1(0x100)](_0x321e5a['YKDlO'](getCredentialsPath))&&(logger[_0x26fef1(0xe8)](_0x321e5a[_0x26fef1(0xf8)]),await _0x321e5a[_0x26fef1(0x10c)](sendInstrumentationEvent,_0x49d8b5,_0x321e5a[_0x26fef1(0x136)],messageTypes[_0x26fef1(0x121)],_0x321e5a['ZRvlV'],null,_0x49d8b5),process['exit'](0x1));logger[_0x26fef1(0x122)](_0x26fef1(0xf4)+_0x49d8b5['gridId']),await _0x321e5a['eTAyS'](sendInstrumentationEvent,_0x49d8b5,_0x321e5a['clBxL'],messageTypes['INFO'],null,null,_0x49d8b5);const _0x3a46f1=JSON['parse'](fs[_0x26fef1(0x107)](_0x321e5a['YKDlO'](getCredentialsPath)));global_registry[_0x26fef1(0x11a)]=_0x3a46f1[_0x26fef1(0x104)][_0x26fef1(0xff)],global_registry[_0x26fef1(0x115)]=_0x3a46f1[_0x26fef1(0x104)][_0x26fef1(0x105)];const _0xbdd664=WS_ENDPOINT[_0x26fef1(0xf1)](_0x321e5a[_0x26fef1(0x116)],_0x3a46f1['Browserstack'][_0x26fef1(0xff)])[_0x26fef1(0xf1)](_0x321e5a[_0x26fef1(0x118)],_0x3a46f1[_0x26fef1(0x104)]['password']),_0x11cc85={};_0x11cc85[_0x26fef1(0x11d)]=ws,_0x11cc85['connectionTimeout']=0x36ee80,_0x15d75d=new ReconnectingWebSocket(_0xbdd664,[],_0x11cc85),logger[_0x26fef1(0x103)](_0x321e5a[_0x26fef1(0x110)]),webSocketUtils[_0x26fef1(0x130)](_0x15d75d,_0x49d8b5[_0x26fef1(0x135)],_0x49d8b5['password']);const [_0x4301df,_0x1e70e1]=await _0x321e5a[_0x26fef1(0x10e)](getGridDetails,_0x3a46f1['Browserstack'][_0x26fef1(0xff)],_0x3a46f1['Browserstack'][_0x26fef1(0x105)],_0x49d8b5[_0x26fef1(0x13f)]);if(_0x1e70e1){const _0x341523=_0x1e70e1[_0x26fef1(0x122)];global_registry[_0x26fef1(0xfa)]=_0x341523[_0x26fef1(0xfa)],global_registry[_0x26fef1(0x12a)]=_0x341523[_0x26fef1(0xe7)],global_registry[_0x26fef1(0x111)]=_0x341523[_0x26fef1(0x111)];const _0x20553a=await _0x321e5a[_0x26fef1(0x10c)](getCloudProviderObject,_0x341523['cloudProvider'],_0x341523[_0x26fef1(0x111)],_0x341523[_0x26fef1(0xf0)],_0x15d75d,webSocketUtils,_0x49d8b5),[_0xffd526,_0x314eb7,_0x4b98f2,_0x3369c6,_0x287567,_0x4579a0]=await _0x321e5a[_0x26fef1(0xf7)](createK8sClient,_0x20553a,_0x49d8b5[_0x26fef1(0xfb)]);await _0x321e5a[_0x26fef1(0xf7)](scaleUpHubDeployment,_0x314eb7,_0x341523['name']),logger['info'](_0x321e5a[_0x26fef1(0x11c)]),process[_0x26fef1(0x11e)](0x0);}_0x321e5a['CVfJe'](_0x4301df[_0x26fef1(0x124)],0x191)&&(logger[_0x26fef1(0xe8)](_0x321e5a[_0x26fef1(0x132)]),await _0x321e5a['eTAyS'](sendInstrumentationEvent,_0x49d8b5,_0x321e5a[_0x26fef1(0x136)],messageTypes[_0x26fef1(0x121)],_0x321e5a['aExjJ'],null,_0x49d8b5),process['exit'](0x1)),_0x321e5a['CVfJe'](_0x4301df[_0x26fef1(0x124)],0x190)&&(logger[_0x26fef1(0xe8)](JSON[_0x26fef1(0xeb)](_0x4301df['body'])[_0x26fef1(0x10f)]),await _0x321e5a[_0x26fef1(0x10c)](sendInstrumentationEvent,_0x49d8b5,_0x321e5a[_0x26fef1(0x136)],messageTypes[_0x26fef1(0x121)],_0x321e5a[_0x26fef1(0x12b)],null,_0x49d8b5),process[_0x26fef1(0x11e)](0x1)),logger[_0x26fef1(0xe8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x26fef1(0x13c)](_0x4301df)),await _0x321e5a[_0x26fef1(0x10c)](sendInstrumentationEvent,_0x49d8b5,_0x321e5a[_0x26fef1(0x136)],messageTypes[_0x26fef1(0x121)],_0x321e5a['LqrVM'],_0x4301df,_0x49d8b5),process[_0x26fef1(0x11e)](0x1);}catch(_0xa09baf){const _0x414520=_0x26fef1(0x137)+_0xa09baf+'\x20\x0a'+JSON[_0x26fef1(0x13c)](_0xa09baf[_0x26fef1(0x120)])+'\x20';logger[_0x26fef1(0xe8)](_0x414520),process[_0x26fef1(0x11e)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x4533(_0x3e2d99,_0x54d973){const _0x16ee44=a20_0x16ee();return a20_0x4533=function(_0x45334f,_0xba7571){_0x45334f=_0x45334f-0xc0;let _0x335f32=_0x16ee44[_0x45334f];return _0x335f32;},a20_0x4533(_0x3e2d99,_0x54d973);}function a20_0x16ee(){const _0x23fe04=['1140BcCOwE','11ZbgWrk','usage','1478561ikNZbf','../config/constants','RglMe','recommendCommands','epilogue','3753750pPnRsI','6bErqBI','1447435MzHBuR','1617087txAmLV','demandCommand','help','3955536kXqRhC','106084famqqj','desc','commandDir','strict','BCtsK','stop_commands','39834XSrBAS','Stop\x20a\x20running\x20Automation\x20grid.','4jbJhTi','handler','builder'];a20_0x16ee=function(){return _0x23fe04;};return a20_0x16ee();}const a20_0x17cff2=a20_0x4533;(function(_0x497c5f,_0x5aa94a){const _0x2404b4=a20_0x4533,_0x2033d7=_0x497c5f();while(!![]){try{const _0xe8eaed=parseInt(_0x2404b4(0xc1))/0x1*(-parseInt(_0x2404b4(0xcf))/0x2)+-parseInt(_0x2404b4(0xcb))/0x3*(parseInt(_0x2404b4(0xd7))/0x4)+-parseInt(_0x2404b4(0xca))/0x5*(-parseInt(_0x2404b4(0xc9))/0x6)+-parseInt(_0x2404b4(0xc3))/0x7+parseInt(_0x2404b4(0xce))/0x8+parseInt(_0x2404b4(0xd5))/0x9*(parseInt(_0x2404b4(0xc0))/0xa)+parseInt(_0x2404b4(0xc8))/0xb;if(_0xe8eaed===_0x5aa94a)break;else _0x2033d7['push'](_0x2033d7['shift']());}catch(_0x48c94b){_0x2033d7['push'](_0x2033d7['shift']());}}}(a20_0x16ee,0x4845d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x17cff2(0xc4));exports['command']='stop',exports[a20_0x17cff2(0xd0)]=a20_0x17cff2(0xd6),exports[a20_0x17cff2(0xd9)]=function(_0x48544b){const _0x413862=a20_0x17cff2,_0x31de1f={};_0x31de1f['RglMe']=_0x413862(0xd4),_0x31de1f[_0x413862(0xd3)]=_0x413862(0xcd);const _0x1cd5cc=_0x31de1f;return _0x48544b[_0x413862(0xc2)](HELP_HEADER_MESSAGE['stop'])[_0x413862(0xc7)](HELP_FOOTER_MESSAGE)[_0x413862(0xd1)](_0x1cd5cc[_0x413862(0xc5)])[_0x413862(0xcc)]()[_0x413862(0xc6)]()[_0x413862(0xd2)]()['help'](_0x1cd5cc[_0x413862(0xd3)]);},exports[a20_0x17cff2(0xd8)]=function(_0x1577b8){};
1
+ function a20_0x387c(_0xfd8218,_0xcf6e2f){const _0x21c223=a20_0x21c2();return a20_0x387c=function(_0x387cfb,_0x577aad){_0x387cfb=_0x387cfb-0x156;let _0x42c968=_0x21c223[_0x387cfb];return _0x42c968;},a20_0x387c(_0xfd8218,_0xcf6e2f);}const a20_0xbe2c0c=a20_0x387c;(function(_0x23e87c,_0x5a152b){const _0xaf6fb4=a20_0x387c,_0x57d45e=_0x23e87c();while(!![]){try{const _0x4394c1=parseInt(_0xaf6fb4(0x164))/0x1*(-parseInt(_0xaf6fb4(0x167))/0x2)+parseInt(_0xaf6fb4(0x156))/0x3*(parseInt(_0xaf6fb4(0x15f))/0x4)+-parseInt(_0xaf6fb4(0x166))/0x5*(parseInt(_0xaf6fb4(0x15c))/0x6)+parseInt(_0xaf6fb4(0x165))/0x7+parseInt(_0xaf6fb4(0x168))/0x8+parseInt(_0xaf6fb4(0x160))/0x9+parseInt(_0xaf6fb4(0x161))/0xa;if(_0x4394c1===_0x5a152b)break;else _0x57d45e['push'](_0x57d45e['shift']());}catch(_0x452f92){_0x57d45e['push'](_0x57d45e['shift']());}}}(a20_0x21c2,0x8626b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xbe2c0c(0x162));function a20_0x21c2(){const _0x449b35=['7192512mydIZc','KpHSk','20895fXCKlz','stop','handler','OqpsQ','demandCommand','command','479046cIZJOU','builder','stop_commands','24ZezjCs','3087891EgXXfy','3666320xQcrxZ','../config/constants','epilogue','175469qZJprB','669249qddzXT','20LXbtob','10boLGnZ'];a20_0x21c2=function(){return _0x449b35;};return a20_0x21c2();}exports[a20_0xbe2c0c(0x15b)]=a20_0xbe2c0c(0x157),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0xbe2c0c(0x15d)]=function(_0x37e140){const _0x476414=a20_0xbe2c0c,_0x426a73={};_0x426a73[_0x476414(0x159)]=_0x476414(0x15e),_0x426a73[_0x476414(0x169)]='help';const _0x14f094=_0x426a73;return _0x37e140['usage'](HELP_HEADER_MESSAGE[_0x476414(0x157)])[_0x476414(0x163)](HELP_FOOTER_MESSAGE)['commandDir'](_0x14f094[_0x476414(0x159)])[_0x476414(0x15a)]()['recommendCommands']()['strict']()['help'](_0x14f094['KpHSk']);},exports[a20_0xbe2c0c(0x158)]=function(_0x2b9845){};
@@ -1 +1 @@
1
- const a21_0x44a585=a21_0x361e;(function(_0x2c45e4,_0x2e3160){const _0x2ec0d7=a21_0x361e,_0x42befe=_0x2c45e4();while(!![]){try{const _0x50bad2=-parseInt(_0x2ec0d7(0x199))/0x1*(-parseInt(_0x2ec0d7(0x1b1))/0x2)+-parseInt(_0x2ec0d7(0x194))/0x3*(parseInt(_0x2ec0d7(0x17a))/0x4)+-parseInt(_0x2ec0d7(0x1a8))/0x5*(-parseInt(_0x2ec0d7(0x1bf))/0x6)+parseInt(_0x2ec0d7(0x1c2))/0x7*(-parseInt(_0x2ec0d7(0x1b4))/0x8)+-parseInt(_0x2ec0d7(0x193))/0x9+parseInt(_0x2ec0d7(0x178))/0xa+-parseInt(_0x2ec0d7(0x1b0))/0xb;if(_0x50bad2===_0x2e3160)break;else _0x42befe['push'](_0x42befe['shift']());}catch(_0x4b40be){_0x42befe['push'](_0x42befe['shift']());}}}(a21_0x513f,0x85646));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x44a585(0x176)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x44a585(0x17c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x44a585(0x1b6)),{createK8sClient}=require(a21_0x44a585(0x18a)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x1d7a5d){const _0x2d16b9=a21_0x44a585,_0x7267b0={};_0x7267b0[_0x2d16b9(0x184)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x7267b0['FjraI']=_0x2d16b9(0x1af),_0x7267b0[_0x2d16b9(0x1a6)]='Skip\x20insecure\x20cert\x20verification.',_0x7267b0[_0x2d16b9(0x1c1)]=_0x2d16b9(0x190),_0x7267b0[_0x2d16b9(0x181)]='help';const _0x254092=_0x7267b0,_0x24f33a={};_0x24f33a[_0x2d16b9(0x1c5)]=_0x254092[_0x2d16b9(0x184)],_0x24f33a[_0x2d16b9(0x18c)]=_0x254092['FjraI'];const _0xa3c272={};_0xa3c272['description']=_0x254092[_0x2d16b9(0x1a6)],_0xa3c272[_0x2d16b9(0x18c)]=_0x254092[_0x2d16b9(0x1c1)],_0xa3c272[_0x2d16b9(0x1ad)]=![];const _0x164284={};return _0x164284[_0x2d16b9(0x1c0)]=_0x24f33a,_0x164284['skip-tls-cert-verify']=_0xa3c272,_0x1d7a5d[_0x2d16b9(0x1bd)](HELP_HEADER_MESSAGE[_0x2d16b9(0x1ab)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2d16b9(0x1b5)](_0x164284)[_0x2d16b9(0x171)](_0x254092[_0x2d16b9(0x181)])[_0x2d16b9(0x191)];},exports['handler']=async function(_0x5a805b){const _0x346e96=a21_0x44a585,_0x1aff68={'tJiFs':_0x346e96(0x17e),'FjJQv':function(_0x107e01){return _0x107e01();},'sYjwg':_0x346e96(0x18f),'vQihJ':function(_0x332329,_0x55037d,_0x3ff0d9,_0x8a9263,_0x1b505a,_0x2e41a9,_0x3f4666){return _0x332329(_0x55037d,_0x3ff0d9,_0x8a9263,_0x1b505a,_0x2e41a9,_0x3f4666);},'liEXK':_0x346e96(0x1a5),'XOhDZ':_0x346e96(0x19f),'hExnt':function(_0x1a1641,_0x5a9e42,_0x5688eb,_0x262604,_0x2cd223,_0x22aa42,_0x1cc3d8){return _0x1a1641(_0x5a9e42,_0x5688eb,_0x262604,_0x2cd223,_0x22aa42,_0x1cc3d8);},'oxQPz':function(_0x71ddb0){return _0x71ddb0();},'NQIYV':_0x346e96(0x17b),'PDOlw':_0x346e96(0x177),'dHtsP':'Adding\x20Websocket\x20listeners','vqbHk':function(_0x3936fa,_0x509dba,_0x5ddf3d,_0x42ac54){return _0x3936fa(_0x509dba,_0x5ddf3d,_0x42ac54);},'oXVVA':function(_0x5d03ba,_0x9f5adb,_0x1a7160,_0x595b4f,_0xb0de4f,_0x1a357b,_0x5d6272){return _0x5d03ba(_0x9f5adb,_0x1a7160,_0x595b4f,_0xb0de4f,_0x1a357b,_0x5d6272);},'xDrAb':function(_0x22d1f2,_0xb34291,_0x7cbdf){return _0x22d1f2(_0xb34291,_0x7cbdf);},'jqaCa':_0x346e96(0x175),'xswas':function(_0x5da749,_0x27dd25){return _0x5da749===_0x27dd25;},'jadzS':_0x346e96(0x1b7),'qhMSv':_0x346e96(0x1b9),'rKGDC':function(_0x284a03,_0x598860){return _0x284a03===_0x598860;},'ZkjQj':function(_0x5a7d83,_0x4195b2,_0x2b06a2,_0x2822a5,_0x1443da,_0x2b3add,_0x53fee3){return _0x5a7d83(_0x4195b2,_0x2b06a2,_0x2822a5,_0x1443da,_0x2b3add,_0x53fee3);},'SfGRv':'invalid-grid-id','tYNNJ':function(_0x5395a4,_0x4e2d49,_0x5d9eb9,_0x29777b,_0x1fd8b4,_0x29b0c1,_0x44103e){return _0x5395a4(_0x4e2d49,_0x5d9eb9,_0x29777b,_0x1fd8b4,_0x29b0c1,_0x44103e);},'dpurF':_0x346e96(0x187)};let _0x2e2dfe;try{!_0x5a805b[_0x346e96(0x18b)]&&(logger['error'](_0x1aff68[_0x346e96(0x19d)]),process[_0x346e96(0x1b3)](0x1));!fs[_0x346e96(0x195)](_0x1aff68[_0x346e96(0x180)](getCredentialsPath))&&(logger['error'](_0x1aff68[_0x346e96(0x1c4)]),await _0x1aff68[_0x346e96(0x16f)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68['XOhDZ'],null,_0x5a805b),process[_0x346e96(0x1b3)](0x1));logger['info'](_0x346e96(0x18d)+_0x5a805b['gridId']),await _0x1aff68[_0x346e96(0x183)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x174)],null,null,_0x5a805b);const _0x218307=JSON['parse'](fs['readFileSync'](_0x1aff68[_0x346e96(0x16d)](getCredentialsPath)));global_registry[_0x346e96(0x1bc)]=_0x218307[_0x346e96(0x16b)][_0x346e96(0x170)],global_registry['bstackAccesskey']=_0x218307[_0x346e96(0x16b)][_0x346e96(0x1ac)];const _0x149037=WS_ENDPOINT[_0x346e96(0x192)](_0x1aff68[_0x346e96(0x173)],_0x218307['Browserstack'][_0x346e96(0x170)])['replace'](_0x1aff68[_0x346e96(0x197)],_0x218307['Browserstack']['password']),_0x19c8f0={};_0x19c8f0[_0x346e96(0x17d)]=ws,_0x19c8f0['connectionTimeout']=0x36ee80,_0x2e2dfe=new ReconnectingWebSocket(_0x149037,[],_0x19c8f0),logger[_0x346e96(0x1a4)](_0x1aff68[_0x346e96(0x1a2)]),webSocketUtils[_0x346e96(0x1b2)](_0x2e2dfe,_0x5a805b[_0x346e96(0x18e)],_0x5a805b['password']);const [_0x56dfcc,_0x362b48]=await _0x1aff68[_0x346e96(0x1ba)](getGridDetails,_0x218307['Browserstack']['username'],_0x218307[_0x346e96(0x16b)][_0x346e96(0x1ac)],_0x5a805b[_0x346e96(0x18b)]);if(_0x362b48){const _0xbf7e8e=_0x362b48['info'];global_registry[_0x346e96(0x1a3)]=_0xbf7e8e[_0x346e96(0x1a3)],global_registry[_0x346e96(0x19a)]=_0xbf7e8e[_0x346e96(0x198)],global_registry[_0x346e96(0x179)]=_0xbf7e8e[_0x346e96(0x179)];const _0x13a708=await _0x1aff68['oXVVA'](getCloudProviderObject,_0xbf7e8e['cloudProvider'],_0xbf7e8e[_0x346e96(0x179)],_0xbf7e8e[_0x346e96(0x172)],_0x2e2dfe,webSocketUtils,_0x5a805b),[_0x3c1180,_0x440178,_0xe657f9,_0xe75695,_0x2a07b4,_0x22acc5]=await _0x1aff68[_0x346e96(0x16c)](createK8sClient,_0x13a708,_0x5a805b[_0x346e96(0x1b8)]);await _0x1aff68[_0x346e96(0x16c)](scaleDownHubDeployment,_0x440178,_0xbf7e8e['name']),logger[_0x346e96(0x19c)](_0x1aff68[_0x346e96(0x1a7)]),process['exit'](0x0);}_0x1aff68[_0x346e96(0x186)](_0x56dfcc[_0x346e96(0x1c3)],0x191)&&(logger[_0x346e96(0x1a0)](_0x1aff68[_0x346e96(0x1ae)]),await _0x1aff68[_0x346e96(0x19e)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68[_0x346e96(0x1a1)],null,_0x5a805b),process[_0x346e96(0x1b3)](0x1)),_0x1aff68[_0x346e96(0x16e)](_0x56dfcc[_0x346e96(0x1c3)],0x190)&&(logger[_0x346e96(0x1a0)](JSON[_0x346e96(0x1aa)](_0x56dfcc['body'])[_0x346e96(0x196)]),await _0x1aff68[_0x346e96(0x1bb)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68[_0x346e96(0x1a9)],null,_0x5a805b),process['exit'](0x1)),logger['error'](_0x346e96(0x182)+JSON['stringify'](_0x56dfcc)),await _0x1aff68[_0x346e96(0x17f)](sendInstrumentationEvent,_0x5a805b,_0x1aff68[_0x346e96(0x185)],messageTypes[_0x346e96(0x188)],_0x1aff68[_0x346e96(0x189)],_0x56dfcc,_0x5a805b),process[_0x346e96(0x1b3)](0x1);}catch(_0x8f9ef4){const _0x1792c0=_0x346e96(0x19b)+_0x8f9ef4+'\x20\x0a'+JSON[_0x346e96(0x1be)](_0x8f9ef4['stack'])+'\x20';logger[_0x346e96(0x1a0)](_0x1792c0),process[_0x346e96(0x1b3)](0x1);}};function a21_0x361e(_0x5e70f0,_0x1f20ce){const _0x513f8f=a21_0x513f();return a21_0x361e=function(_0x361ecc,_0x89f578){_0x361ecc=_0x361ecc-0x16b;let _0x116a91=_0x513f8f[_0x361ecc];return _0x116a91;},a21_0x361e(_0x5e70f0,_0x1f20ce);}function a21_0x513f(){const _0x50045a=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','hExnt','zHium','liEXK','xswas','server-error','ERROR','dpurF','../../utils/createk8sClient','gridId','type','Stopping\x20grid\x20','user','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','boolean','argv','replace','2767914UghUHM','27285vZdDVs','existsSync','message','PDOlw','region','232886NuICzD','clusterRegion','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','info','tJiFs','oXVVA','init-not-called','error','qhMSv','dHtsP','cloudProvider','debug','stop-grid-called','jothT','jqaCa','105OdNimY','SfGRv','parse','stop','password','default','jadzS','string','731049kLxtVa','2EZmVfB','addListeners','exit','152Gbdidk','options','../../utils/webSocketUtils','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skipTlsCertVerify','unauthorised','vqbHk','ZkjQj','bstackUsername','usage','stringify','305010uxmphL','grid-id','TisLN','355873OqvSEm','statusCode','sYjwg','description','Browserstack','xDrAb','oxQPz','rKGDC','vQihJ','username','help','name','NQIYV','INFO','Grid\x20stoppped.','../../config/constants','<PasswordPlaceholder>','9224140oygdqO','clusterName','148WDtTdX','<UsernamePlaceholder>','../../utils/gridComponents','WebSocket','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','tYNNJ','FjJQv','WkluH'];a21_0x513f=function(){return _0x50045a;};return a21_0x513f();}
1
+ const a21_0x534e5b=a21_0x7fc9;(function(_0x2f87bd,_0x5e73c0){const _0x452cbf=a21_0x7fc9,_0xdcb391=_0x2f87bd();while(!![]){try{const _0x120112=parseInt(_0x452cbf(0x200))/0x1+-parseInt(_0x452cbf(0x1fe))/0x2*(parseInt(_0x452cbf(0x1f5))/0x3)+-parseInt(_0x452cbf(0x215))/0x4*(-parseInt(_0x452cbf(0x1d0))/0x5)+-parseInt(_0x452cbf(0x1e9))/0x6*(parseInt(_0x452cbf(0x20a))/0x7)+-parseInt(_0x452cbf(0x1f2))/0x8+parseInt(_0x452cbf(0x1ea))/0x9+parseInt(_0x452cbf(0x1f9))/0xa;if(_0x120112===_0x5e73c0)break;else _0xdcb391['push'](_0xdcb391['shift']());}catch(_0x57575d){_0xdcb391['push'](_0xdcb391['shift']());}}}(a21_0x1cab,0x90a30));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x534e5b(0x1cd)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x534e5b(0x1db)),{logger}=require(a21_0x534e5b(0x1d3)),{getCredentialsPath,getGridDetails}=require(a21_0x534e5b(0x1c6)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x534e5b(0x1cb)),webSocketUtils=require(a21_0x534e5b(0x1cc)),{createK8sClient}=require(a21_0x534e5b(0x20e)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x7fc9(_0x60e655,_0x5bdbbb){const _0x1cab67=a21_0x1cab();return a21_0x7fc9=function(_0x7fc90e,_0x2d953d){_0x7fc90e=_0x7fc90e-0x1bb;let _0x5d78db=_0x1cab67[_0x7fc90e];return _0x5d78db;},a21_0x7fc9(_0x60e655,_0x5bdbbb);}exports[a21_0x534e5b(0x212)]=a21_0x534e5b(0x1bf),exports[a21_0x534e5b(0x209)]=a21_0x534e5b(0x1c9),exports[a21_0x534e5b(0x1dd)]=function(_0x4133f9){const _0x1f981f=a21_0x534e5b,_0x141eaa={};_0x141eaa[_0x1f981f(0x1e8)]=_0x1f981f(0x207),_0x141eaa[_0x1f981f(0x1d9)]=_0x1f981f(0x1e3),_0x141eaa[_0x1f981f(0x1d2)]=_0x1f981f(0x1f8),_0x141eaa['YmNoa']=_0x1f981f(0x1fa),_0x141eaa[_0x1f981f(0x1d5)]='help';const _0x4615a8=_0x141eaa,_0x4fd7c0={};_0x4fd7c0[_0x1f981f(0x1c0)]=_0x4615a8[_0x1f981f(0x1e8)],_0x4fd7c0[_0x1f981f(0x1e5)]=_0x4615a8[_0x1f981f(0x1d9)];const _0x2cf62d={};_0x2cf62d[_0x1f981f(0x1c0)]=_0x4615a8[_0x1f981f(0x1d2)],_0x2cf62d[_0x1f981f(0x1e5)]=_0x4615a8[_0x1f981f(0x1d7)],_0x2cf62d[_0x1f981f(0x1c7)]=![];const _0x2df1e4={};return _0x2df1e4[_0x1f981f(0x1e0)]=_0x4fd7c0,_0x2df1e4['skip-tls-cert-verify']=_0x2cf62d,_0x4133f9[_0x1f981f(0x211)](HELP_HEADER_MESSAGE[_0x1f981f(0x214)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x2df1e4)['help'](_0x4615a8[_0x1f981f(0x1d5)])['argv'];},exports[a21_0x534e5b(0x1f4)]=async function(_0x45bee4){const _0x587c7f=a21_0x534e5b,_0x3ae7de={'NVmwY':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','IvCOO':function(_0x1ba1b0){return _0x1ba1b0();},'rmDMu':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cUxzM':function(_0x50a302,_0x96ea44,_0x52bf98,_0x31f9af,_0x1e364e,_0x2e9faa,_0x2a1e29){return _0x50a302(_0x96ea44,_0x52bf98,_0x31f9af,_0x1e364e,_0x2e9faa,_0x2a1e29);},'ZyQra':'stop-grid-called','Yrisg':_0x587c7f(0x1ca),'WuzCQ':_0x587c7f(0x1ee),'zjXxn':_0x587c7f(0x1e2),'HtTMN':_0x587c7f(0x1c5),'MqwOH':function(_0x4661b5,_0x2f4abd,_0x313bd4,_0x83fba){return _0x4661b5(_0x2f4abd,_0x313bd4,_0x83fba);},'jVFtp':function(_0x2720d9,_0x2bc736,_0x285540){return _0x2720d9(_0x2bc736,_0x285540);},'FEnuT':function(_0x304c98,_0x310ccf,_0x487313){return _0x304c98(_0x310ccf,_0x487313);},'sqZcD':_0x587c7f(0x1d1),'eHYGl':function(_0x18de95,_0x7bb9a1){return _0x18de95===_0x7bb9a1;},'VZlOz':_0x587c7f(0x1fc),'EOxuB':_0x587c7f(0x1e4),'qHtIq':function(_0x475bd8,_0x4bd7d1){return _0x475bd8===_0x4bd7d1;},'CTwjJ':_0x587c7f(0x1d8),'QCDlA':function(_0x36a358,_0x4a5e60,_0x551ad8,_0x3ce9b0,_0x15b78d,_0x562b5b,_0x3ef018){return _0x36a358(_0x4a5e60,_0x551ad8,_0x3ce9b0,_0x15b78d,_0x562b5b,_0x3ef018);},'emsKi':_0x587c7f(0x1da)};let _0x1a7767;try{!_0x45bee4[_0x587c7f(0x201)]&&(logger[_0x587c7f(0x205)](_0x3ae7de[_0x587c7f(0x1ef)]),process[_0x587c7f(0x1f1)](0x1));!fs[_0x587c7f(0x1cf)](_0x3ae7de[_0x587c7f(0x1ed)](getCredentialsPath))&&(logger[_0x587c7f(0x205)](_0x3ae7de['rmDMu']),await _0x3ae7de['cUxzM'](sendInstrumentationEvent,_0x45bee4,_0x3ae7de['ZyQra'],messageTypes[_0x587c7f(0x1ce)],_0x3ae7de['Yrisg'],null,_0x45bee4),process[_0x587c7f(0x1f1)](0x1));logger[_0x587c7f(0x203)](_0x587c7f(0x1c3)+_0x45bee4[_0x587c7f(0x201)]),await _0x3ae7de[_0x587c7f(0x1bb)](sendInstrumentationEvent,_0x45bee4,_0x3ae7de[_0x587c7f(0x206)],messageTypes['INFO'],null,null,_0x45bee4);const _0x374bcb=JSON[_0x587c7f(0x1eb)](fs[_0x587c7f(0x1fd)](_0x3ae7de['IvCOO'](getCredentialsPath)));global_registry[_0x587c7f(0x1d6)]=_0x374bcb['Browserstack']['username'],global_registry[_0x587c7f(0x1f7)]=_0x374bcb[_0x587c7f(0x1e7)][_0x587c7f(0x1de)];const _0x27f55d=WS_ENDPOINT[_0x587c7f(0x1ec)](_0x3ae7de[_0x587c7f(0x208)],_0x374bcb[_0x587c7f(0x1e7)][_0x587c7f(0x20b)])['replace'](_0x3ae7de['zjXxn'],_0x374bcb['Browserstack']['password']),_0x3ca56f={};_0x3ca56f[_0x587c7f(0x1c1)]=ws,_0x3ca56f[_0x587c7f(0x204)]=0x36ee80,_0x1a7767=new ReconnectingWebSocket(_0x27f55d,[],_0x3ca56f),logger[_0x587c7f(0x1f3)](_0x3ae7de['HtTMN']),webSocketUtils[_0x587c7f(0x1ff)](_0x1a7767,_0x45bee4[_0x587c7f(0x1f6)],_0x45bee4[_0x587c7f(0x1de)]);const [_0x5b7c16,_0x58ed58]=await _0x3ae7de['MqwOH'](getGridDetails,_0x374bcb[_0x587c7f(0x1e7)][_0x587c7f(0x20b)],_0x374bcb[_0x587c7f(0x1e7)][_0x587c7f(0x1de)],_0x45bee4['gridId']);if(_0x58ed58){const _0x36206e=_0x58ed58['info'];global_registry['cloudProvider']=_0x36206e[_0x587c7f(0x1e1)],global_registry[_0x587c7f(0x1bd)]=_0x36206e[_0x587c7f(0x1fb)],global_registry[_0x587c7f(0x1e6)]=_0x36206e['clusterName'];const _0x48d274=await _0x3ae7de['cUxzM'](getCloudProviderObject,_0x36206e[_0x587c7f(0x1e1)],_0x36206e[_0x587c7f(0x1e6)],_0x36206e[_0x587c7f(0x1dc)],_0x1a7767,webSocketUtils,_0x45bee4),[_0x33b35f,_0x4f8569,_0x2ff996,_0xc9bebe,_0x18d729,_0x3b55f2]=await _0x3ae7de[_0x587c7f(0x1c8)](createK8sClient,_0x48d274,_0x45bee4[_0x587c7f(0x1d4)]);await _0x3ae7de[_0x587c7f(0x20d)](scaleDownHubDeployment,_0x4f8569,_0x36206e[_0x587c7f(0x1dc)]),logger[_0x587c7f(0x203)](_0x3ae7de[_0x587c7f(0x1c2)]),process[_0x587c7f(0x1f1)](0x0);}_0x3ae7de[_0x587c7f(0x1f0)](_0x5b7c16['statusCode'],0x191)&&(logger[_0x587c7f(0x205)](_0x3ae7de['VZlOz']),await _0x3ae7de[_0x587c7f(0x1bb)](sendInstrumentationEvent,_0x45bee4,_0x3ae7de['ZyQra'],messageTypes[_0x587c7f(0x1ce)],_0x3ae7de[_0x587c7f(0x210)],null,_0x45bee4),process[_0x587c7f(0x1f1)](0x1)),_0x3ae7de['qHtIq'](_0x5b7c16[_0x587c7f(0x1be)],0x190)&&(logger['error'](JSON['parse'](_0x5b7c16['body'])[_0x587c7f(0x213)]),await _0x3ae7de['cUxzM'](sendInstrumentationEvent,_0x45bee4,_0x3ae7de['ZyQra'],messageTypes[_0x587c7f(0x1ce)],_0x3ae7de[_0x587c7f(0x20f)],null,_0x45bee4),process[_0x587c7f(0x1f1)](0x1)),logger[_0x587c7f(0x205)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x587c7f(0x1bc)](_0x5b7c16)),await _0x3ae7de[_0x587c7f(0x202)](sendInstrumentationEvent,_0x45bee4,_0x3ae7de[_0x587c7f(0x206)],messageTypes[_0x587c7f(0x1ce)],_0x3ae7de[_0x587c7f(0x20c)],_0x5b7c16,_0x45bee4),process[_0x587c7f(0x1f1)](0x1);}catch(_0x306aed){const _0x23fb2d=_0x587c7f(0x1df)+_0x306aed+'\x20\x0a'+JSON['stringify'](_0x306aed[_0x587c7f(0x1c4)])+'\x20';logger[_0x587c7f(0x205)](_0x23fb2d),process[_0x587c7f(0x1f1)](0x1);}};function a21_0x1cab(){const _0x1635c8=['replace','IvCOO','<UsernamePlaceholder>','NVmwY','eHYGl','exit','4151688yFomLq','debug','handler','3093iNIhQF','user','bstackAccesskey','Skip\x20insecure\x20cert\x20verification.','15940130kDCVDJ','boolean','region','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','readFileSync','1858amjhqq','addListeners','133540yPvJzV','gridId','QCDlA','info','connectionTimeout','error','ZyQra','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','WuzCQ','desc','7421127eDCNmK','username','emsKi','FEnuT','../../utils/createk8sClient','CTwjJ','EOxuB','usage','command','message','stop','4Pkcheh','cUxzM','stringify','clusterRegion','statusCode','grid','description','WebSocket','sqZcD','Stopping\x20grid\x20','stack','Adding\x20Websocket\x20listeners','../../utils/utilityMethods','default','jVFtp','Stop\x20a\x20running\x20Automation\x20grid.','init-not-called','../../utils/instrumentationUtils','../../utils/webSocketUtils','reconnecting-websocket','ERROR','existsSync','4292655NpPvuy','Grid\x20stoppped.','jOqBa','../../config/logger','skipTlsCertVerify','ePBvP','bstackUsername','YmNoa','invalid-grid-id','NqDbP','server-error','../../config/constants','name','builder','password','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','grid-id','cloudProvider','<PasswordPlaceholder>','string','unauthorised','type','clusterName','Browserstack','GysiP','6hLQuqX','4889421heYYWH','parse'];a21_0x1cab=function(){return _0x1635c8;};return a21_0x1cab();}
@@ -1 +1 @@
1
- const a22_0x5b5c7c=a22_0x14d5;(function(_0x46ebdc,_0x5c0f6b){const _0x3e703e=a22_0x14d5,_0x1ef42f=_0x46ebdc();while(!![]){try{const _0x1a80e0=parseInt(_0x3e703e(0x18e))/0x1+-parseInt(_0x3e703e(0x19a))/0x2*(parseInt(_0x3e703e(0x164))/0x3)+parseInt(_0x3e703e(0x189))/0x4+parseInt(_0x3e703e(0x196))/0x5+-parseInt(_0x3e703e(0x160))/0x6*(parseInt(_0x3e703e(0x159))/0x7)+parseInt(_0x3e703e(0x1a6))/0x8+parseInt(_0x3e703e(0x1b4))/0x9*(-parseInt(_0x3e703e(0x181))/0xa);if(_0x1a80e0===_0x5c0f6b)break;else _0x1ef42f['push'](_0x1ef42f['shift']());}catch(_0x27d6c6){_0x1ef42f['push'](_0x1ef42f['shift']());}}}(a22_0x541c,0x43ba8),require(a22_0x5b5c7c(0x178))[a22_0x5b5c7c(0x15a)]());let gridURL=a22_0x5b5c7c(0x167),bsApiUrl=a22_0x5b5c7c(0x19b),agApiUrl=a22_0x5b5c7c(0x18f);const _env=(process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x158)]||a22_0x5b5c7c(0x154))[a22_0x5b5c7c(0x198)]();if(_env==='staging'||_env==='stag')gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x5b5c7c(0x1af);else(_env===a22_0x5b5c7c(0x16a)||_env===a22_0x5b5c7c(0x157))&&(gridURL=a22_0x5b5c7c(0x1a0),bsApiUrl=a22_0x5b5c7c(0x14c),agApiUrl=a22_0x5b5c7c(0x15c));exports[a22_0x5b5c7c(0x179)]=process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x179)]||gridURL,exports[a22_0x5b5c7c(0x194)]=process['env']['BS_API_URL']||bsApiUrl,exports[a22_0x5b5c7c(0x18c)]=process['env'][a22_0x5b5c7c(0x18c)]||agApiUrl,exports['WS_ENDPOINT']='wss://'+this[a22_0x5b5c7c(0x18c)]+a22_0x5b5c7c(0x173),exports['CP_CONFIG_FILE']=a22_0x5b5c7c(0x185),exports[a22_0x5b5c7c(0x1a3)]=a22_0x5b5c7c(0x14f),exports[a22_0x5b5c7c(0x15f)]='high-scale-grid',exports[a22_0x5b5c7c(0x175)]=a22_0x5b5c7c(0x193),exports[a22_0x5b5c7c(0x1a4)]=a22_0x5b5c7c(0x161),exports[a22_0x5b5c7c(0x156)]=a22_0x5b5c7c(0x15b),exports[a22_0x5b5c7c(0x1b2)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x5b5c7c(0x174)]=a22_0x5b5c7c(0x192),exports[a22_0x5b5c7c(0x15d)]=a22_0x5b5c7c(0x1a8),exports[a22_0x5b5c7c(0x17e)]=a22_0x5b5c7c(0x1b5),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x5b5c7c(0x175)],this[a22_0x5b5c7c(0x15d)],this[a22_0x5b5c7c(0x17e)]];const a22_0x45c82b={};a22_0x45c82b[a22_0x5b5c7c(0x19f)]='browserstack:managedBy',a22_0x45c82b[a22_0x5b5c7c(0x172)]=a22_0x5b5c7c(0x171);const a22_0x224281={};a22_0x224281['Key']='browserstack:service',a22_0x224281['Value']=a22_0x5b5c7c(0x1ad);const common_hst_tags_list=[a22_0x45c82b,a22_0x224281];if(process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x184)]){const parsedTags=process[a22_0x5b5c7c(0x1b0)][a22_0x5b5c7c(0x184)][a22_0x5b5c7c(0x16c)](',');parsedTags[a22_0x5b5c7c(0x18b)](_0x589a6f=>{const _0x3bbb5b=a22_0x5b5c7c,_0x136ce5=_0x589a6f[_0x3bbb5b(0x16c)](':'),_0x35380c={};_0x35380c['Key']=_0x136ce5[0x0],_0x35380c[_0x3bbb5b(0x172)]=_0x136ce5[0x1],common_hst_tags_list['push'](_0x35380c);});}exports[a22_0x5b5c7c(0x162)]=common_hst_tags_list;const a22_0x16847d={};a22_0x16847d[a22_0x5b5c7c(0x187)]=a22_0x5b5c7c(0x171),a22_0x16847d[a22_0x5b5c7c(0x165)]=a22_0x5b5c7c(0x1ad),exports[a22_0x5b5c7c(0x16e)]=a22_0x16847d,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x5b5c7c(0x175)]];function a22_0x14d5(_0x306c41,_0x22bf5d){const _0x541c5e=a22_0x541c();return a22_0x14d5=function(_0x14d531,_0x4d0bb6){_0x14d531=_0x14d531-0x14a;let _0x1bfd2f=_0x541c5e[_0x14d531];return _0x1bfd2f;},a22_0x14d5(_0x306c41,_0x22bf5d);}const a22_0x15678f={};a22_0x15678f[a22_0x5b5c7c(0x1ac)]=a22_0x5b5c7c(0x195),a22_0x15678f[a22_0x5b5c7c(0x150)]=a22_0x5b5c7c(0x152),a22_0x15678f[a22_0x5b5c7c(0x163)]='gridUrl',a22_0x15678f[a22_0x5b5c7c(0x14a)]='cliRunStarted',a22_0x15678f['CLI_RUN_FINISHED']=a22_0x5b5c7c(0x1b3),exports['WS_EVENTS']=a22_0x15678f,exports[a22_0x5b5c7c(0x16b)]={},exports['LINK_MESSAGE']=a22_0x5b5c7c(0x1a1);function a22_0x541c(){const _0x590bc6=['200tZxzkj','grid-profile','root','TURBOSCALE_CUSTOM_TAGS','credentials','HELP_HEADER_MESSAGE','browserstack:managedBy','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','1838464KtlYLf','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','forEach','AG_API_URL','warning','447020ZwqdHh','grid-api.browserstack.com','configure','init','browserstack-turboscale-grid','aws','BS_API_URL','log','2437705piwkSj','NULL','toLowerCase','grid','312334oXeySx','api.browserstack.com','DEFAULT_CLUSTER_DETAILS','SUCCESS','LINK_MESSAGE','Key','grid-preprod.bsstag.com','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','error','IAM_USER_NAME','CLUSTER_DEP_STACK_NAME','connect','1041712Tmrjde','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','azure','gridProfile','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','delete','LOG','BrowserStack-Automate-TurboScale','INFO','grid-api-devhst.bsstag.com','env','success','CLUSTER_HUB_HA_STACK_NAME','cliRunFinished','338193mtGGZy','gcp','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','api-preprod.bsstag.com','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','CLI_ARGS_REGEX','BrowserStackIAMUser','RESOURCES','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','resourceInfo','high-scale-grid-cluster','prod','ERROR','CLUSTER_AUTOSCALER_STACK_NAME','pre-prod','BROWSERSTACK_ENV','31423oADHcB','config','BSTACK-ATS-CLUSTER-AUTOSCALER','grid-api-preprod.bsstag.com','AZURE','HELP_FOOTER_MESSAGE','DEFAULT_GRID_NAME','36KUafUw','BSTACK-ATS-CLUSTER','COMMON_HST_TAGS','GRID_URL','9lGWJmx','browserstack:service','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','grid.browserstack.com','CLUSTER','list','preprod','global_registry','split','create','HST_CLUSTER_TAGS','info','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BrowserStack','Value','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','TURBOSCALE_DEPLOYMENT','AWS','unknown','REDACTED','dotenv','DASHBOARD_ENDPOINT','UNKNOWN','WARNING','start','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','GCP','[REDACTED]','pre-check'];a22_0x541c=function(){return _0x590bc6;};return a22_0x541c();}const a22_0x3469a2={};a22_0x3469a2[a22_0x5b5c7c(0x183)]=a22_0x5b5c7c(0x166)+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x191)]=a22_0x5b5c7c(0x14b)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x190)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x16d)]=a22_0x5b5c7c(0x170)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x169)]={},a22_0x3469a2[a22_0x5b5c7c(0x1ab)]=a22_0x5b5c7c(0x18a)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x1a5)]=a22_0x5b5c7c(0x14d)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x17c)]=a22_0x5b5c7c(0x1a7)+this['LINK_MESSAGE'],a22_0x3469a2['stop']=a22_0x5b5c7c(0x151)+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x169)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x3469a2[a22_0x5b5c7c(0x169)][a22_0x5b5c7c(0x199)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x5b5c7c(0x19e)],a22_0x3469a2[a22_0x5b5c7c(0x169)][a22_0x5b5c7c(0x1a9)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports[a22_0x5b5c7c(0x186)]=a22_0x3469a2,exports[a22_0x5b5c7c(0x15e)]=a22_0x5b5c7c(0x188);const a22_0x1826fb={};a22_0x1826fb[a22_0x5b5c7c(0x19d)]=a22_0x5b5c7c(0x1b1),a22_0x1826fb[a22_0x5b5c7c(0x155)]=a22_0x5b5c7c(0x1a2),a22_0x1826fb[a22_0x5b5c7c(0x1ae)]=a22_0x5b5c7c(0x16f),a22_0x1826fb[a22_0x5b5c7c(0x17b)]=a22_0x5b5c7c(0x18d),a22_0x1826fb[a22_0x5b5c7c(0x17a)]=a22_0x5b5c7c(0x176),a22_0x1826fb[a22_0x5b5c7c(0x197)]=null,exports['messageTypes']=a22_0x1826fb,exports[a22_0x5b5c7c(0x14e)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5b5c7c(0x177)]=a22_0x5b5c7c(0x17f);const a22_0x116e95={};a22_0x116e95[a22_0x5b5c7c(0x182)]=a22_0x5b5c7c(0x1aa);const a22_0x9a9861={};a22_0x9a9861[a22_0x5b5c7c(0x180)]=a22_0x116e95,exports['MessageDescription']=a22_0x9a9861,exports['TRIAL_GRID_URL']=a22_0x5b5c7c(0x17d);const a22_0x48428e={};a22_0x48428e[a22_0x5b5c7c(0x168)]=a22_0x5b5c7c(0x153),a22_0x48428e['CLOUD_PROVIDER']=a22_0x5b5c7c(0x193),a22_0x48428e['REGION']='us-east-1',exports[a22_0x5b5c7c(0x19c)]=a22_0x48428e;
1
+ const a22_0x52d76b=a22_0x4ac0;(function(_0x1fd9b7,_0x2e432a){const _0x1f25e7=a22_0x4ac0,_0x5969bb=_0x1fd9b7();while(!![]){try{const _0x207419=parseInt(_0x1f25e7(0x240))/0x1+parseInt(_0x1f25e7(0x244))/0x2+parseInt(_0x1f25e7(0x251))/0x3+-parseInt(_0x1f25e7(0x237))/0x4+-parseInt(_0x1f25e7(0x210))/0x5*(parseInt(_0x1f25e7(0x201))/0x6)+parseInt(_0x1f25e7(0x231))/0x7+parseInt(_0x1f25e7(0x20b))/0x8;if(_0x207419===_0x2e432a)break;else _0x5969bb['push'](_0x5969bb['shift']());}catch(_0x15b44d){_0x5969bb['push'](_0x5969bb['shift']());}}}(a22_0x1b6c,0x71c6c),require('dotenv')['config']());function a22_0x4ac0(_0x5659e5,_0x1c8808){const _0x1b6c1b=a22_0x1b6c();return a22_0x4ac0=function(_0x4ac04c,_0x3e04f1){_0x4ac04c=_0x4ac04c-0x1f0;let _0x69c30c=_0x1b6c1b[_0x4ac04c];return _0x69c30c;},a22_0x4ac0(_0x5659e5,_0x1c8808);}let gridURL=a22_0x52d76b(0x221),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x52d76b(0x205);const _env=(process[a22_0x52d76b(0x247)][a22_0x52d76b(0x1f1)]||'prod')[a22_0x52d76b(0x239)]();if(_env==='staging'||_env==='stag')gridURL=a22_0x52d76b(0x22e),bsApiUrl=a22_0x52d76b(0x229),agApiUrl=a22_0x52d76b(0x211);else(_env===a22_0x52d76b(0x225)||_env===a22_0x52d76b(0x23d))&&(gridURL=a22_0x52d76b(0x250),bsApiUrl=a22_0x52d76b(0x208),agApiUrl=a22_0x52d76b(0x24d));exports[a22_0x52d76b(0x224)]=process[a22_0x52d76b(0x247)][a22_0x52d76b(0x224)]||gridURL,exports[a22_0x52d76b(0x252)]=process[a22_0x52d76b(0x247)]['BS_API_URL']||bsApiUrl,exports[a22_0x52d76b(0x220)]=process[a22_0x52d76b(0x247)][a22_0x52d76b(0x220)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x52d76b(0x24c)+this[a22_0x52d76b(0x220)]+a22_0x52d76b(0x249),exports[a22_0x52d76b(0x234)]='credentials',exports['IAM_USER_NAME']=a22_0x52d76b(0x215),exports['DEFAULT_GRID_NAME']=a22_0x52d76b(0x248),exports['AWS']=a22_0x52d76b(0x1fc),exports[a22_0x52d76b(0x1f8)]=a22_0x52d76b(0x1f4),exports[a22_0x52d76b(0x1ff)]=a22_0x52d76b(0x22b),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x52d76b(0x209),exports['TURBOSCALE_DEPLOYMENT']=a22_0x52d76b(0x236),exports[a22_0x52d76b(0x1fe)]='azure',exports[a22_0x52d76b(0x21b)]=a22_0x52d76b(0x20c),exports[a22_0x52d76b(0x20a)]=[this['AWS'],this[a22_0x52d76b(0x1fe)],this[a22_0x52d76b(0x21b)]];const a22_0x8be2={};a22_0x8be2[a22_0x52d76b(0x232)]='browserstack:managedBy',a22_0x8be2[a22_0x52d76b(0x228)]='BrowserStack';const a22_0x2d4fd4={};a22_0x2d4fd4[a22_0x52d76b(0x232)]=a22_0x52d76b(0x227),a22_0x2d4fd4['Value']=a22_0x52d76b(0x1f3);const common_hst_tags_list=[a22_0x8be2,a22_0x2d4fd4];if(process[a22_0x52d76b(0x247)][a22_0x52d76b(0x21c)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x52d76b(0x226)](',');parsedTags['forEach'](_0x5b19b8=>{const _0x57d6dc=a22_0x52d76b,_0xee7cad=_0x5b19b8[_0x57d6dc(0x226)](':'),_0x43a88d={};_0x43a88d['Key']=_0xee7cad[0x0],_0x43a88d[_0x57d6dc(0x228)]=_0xee7cad[0x1],common_hst_tags_list[_0x57d6dc(0x1f9)](_0x43a88d);});}exports[a22_0x52d76b(0x24a)]=common_hst_tags_list;const a22_0x4b557c={};a22_0x4b557c[a22_0x52d76b(0x1f7)]=a22_0x52d76b(0x20e),a22_0x4b557c[a22_0x52d76b(0x227)]='BrowserStack-Automate-TurboScale',exports[a22_0x52d76b(0x213)]=a22_0x4b557c,exports[a22_0x52d76b(0x238)]=[this['AWS']];const a22_0xe95ce9={};a22_0xe95ce9[a22_0x52d76b(0x1f2)]=a22_0x52d76b(0x24b),a22_0xe95ce9[a22_0x52d76b(0x233)]='resourceInfo',a22_0xe95ce9[a22_0x52d76b(0x1f0)]='gridUrl',a22_0xe95ce9[a22_0x52d76b(0x217)]='cliRunStarted',a22_0xe95ce9[a22_0x52d76b(0x21e)]=a22_0x52d76b(0x223),exports[a22_0x52d76b(0x22c)]=a22_0xe95ce9,exports[a22_0x52d76b(0x24f)]={},exports[a22_0x52d76b(0x22a)]=a22_0x52d76b(0x23b);function a22_0x1b6c(){const _0x34c035=['CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','5346756aXnxhA','NULL','unknown','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-api.browserstack.com','REGION','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','api-preprod.bsstag.com','BSTACK-ATS-CLUSTER-HUB-HA','ALL_SUPPORTED_CLOUD_PROVIDERS','445248fgZpwC','gcp','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BrowserStack','CLI_ARGS_REGEX','5UBotrs','grid-api-devhst.bsstag.com','root','HST_CLUSTER_TAGS','delete','BrowserStackIAMUser','us-east-1','CLI_RUN_STARTED','error','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','GCP','TURBOSCALE_CUSTOM_TAGS','HELP_HEADER_MESSAGE','CLI_RUN_FINISHED','WARNING','AG_API_URL','grid.browserstack.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','cliRunFinished','DASHBOARD_ENDPOINT','preprod','split','browserstack:service','Value','api-devhst.bsstag.com','LINK_MESSAGE','BSTACK-ATS-CLUSTER-AUTOSCALER','WS_EVENTS','gridProfile','grid-devhst.bsstag.com','INFO','HELP_FOOTER_MESSAGE','1075879nhICFm','Key','RESOURCES','CP_CONFIG_FILE','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','browserstack-turboscale-grid','2807396gMiKlZ','SUPPORTED_CLOUD_PROVIDERS','toLowerCase','info','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','warning','pre-prod','list','connect','866774nbINzp','pre-check','pre_check','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','159182EOcMho','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','[REDACTED]','env','high-scale-grid','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','COMMON_HST_TAGS','log','wss://','grid-api-preprod.bsstag.com','CLUSTER','global_registry','grid-preprod.bsstag.com','2709855FvUtCn','BS_API_URL','GRID_URL','BROWSERSTACK_ENV','LOG','BrowserStack-Automate-TurboScale','BSTACK-ATS-CLUSTER','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','UNKNOWN','browserstack:managedBy','CLUSTER_DEP_STACK_NAME','push','TRIAL_GRID_URL','grid','aws','high-scale-grid-cluster','AZURE'];a22_0x1b6c=function(){return _0x34c035;};return a22_0x1b6c();}const a22_0x5707d0={};a22_0x5707d0[a22_0x52d76b(0x212)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x52d76b(0x22a)],a22_0x5707d0['init']=a22_0x52d76b(0x204)+this[a22_0x52d76b(0x22a)],a22_0x5707d0['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x52d76b(0x22a)],a22_0x5707d0['create']=a22_0x52d76b(0x219)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23e)]={},a22_0x5707d0[a22_0x52d76b(0x214)]=a22_0x52d76b(0x20d)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23f)]=a22_0x52d76b(0x21a)+this[a22_0x52d76b(0x22a)],a22_0x5707d0['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x52d76b(0x22a)],a22_0x5707d0['stop']=a22_0x52d76b(0x200)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x242)]=a22_0x52d76b(0x245)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23e)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23e)][a22_0x52d76b(0x1fb)]=a22_0x52d76b(0x207)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23e)][a22_0x52d76b(0x22d)]=a22_0x52d76b(0x243)+this[a22_0x52d76b(0x22a)],exports[a22_0x52d76b(0x21d)]=a22_0x5707d0,exports[a22_0x52d76b(0x230)]=a22_0x52d76b(0x1f5);const a22_0x585492={};a22_0x585492['SUCCESS']='success',a22_0x585492['ERROR']=a22_0x52d76b(0x218),a22_0x585492[a22_0x52d76b(0x22f)]=a22_0x52d76b(0x23a),a22_0x585492[a22_0x52d76b(0x21f)]=a22_0x52d76b(0x23c),a22_0x585492[a22_0x52d76b(0x1f6)]=a22_0x52d76b(0x203),a22_0x585492[a22_0x52d76b(0x202)]=null,exports['messageTypes']=a22_0x585492,exports[a22_0x52d76b(0x20f)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x52d76b(0x246);const a22_0x5b2913={};a22_0x5b2913['grid-profile']=a22_0x52d76b(0x222);const a22_0x45a338={};a22_0x45a338[a22_0x52d76b(0x241)]=a22_0x5b2913,exports['MessageDescription']=a22_0x45a338,exports[a22_0x52d76b(0x1fa)]=a22_0x52d76b(0x235);const a22_0x1cffb8={};a22_0x1cffb8[a22_0x52d76b(0x24e)]=a22_0x52d76b(0x1fd),a22_0x1cffb8['CLOUD_PROVIDER']=a22_0x52d76b(0x1fc),a22_0x1cffb8[a22_0x52d76b(0x206)]=a22_0x52d76b(0x216),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x1cffb8;
@@ -1 +1 @@
1
- function a23_0x26bf(){const _0x47af73=['837912hSmpUg','winston','Console','events.log','File','console.info','level','path','colorize','9KWchhQ','format','createLogger','mkdirSync','debug','12265270cQJGNx','transports','846785JjbiVr','fileLogger','2472918rmknHz','log','combine','message','955813XGBxQZ','66nMJZXP','printf','109749euKiKo','48naZxci','timestamp','1521092BPNtxb','join'];a23_0x26bf=function(){return _0x47af73;};return a23_0x26bf();}const a23_0x188d91=a23_0x4904;(function(_0x1a6fdc,_0x558aac){const _0x1fbe3e=a23_0x4904,_0x34f829=_0x1a6fdc();while(!![]){try{const _0x26c553=-parseInt(_0x1fbe3e(0x14a))/0x1+-parseInt(_0x1fbe3e(0x14b))/0x2*(-parseInt(_0x1fbe3e(0x14d))/0x3)+parseInt(_0x1fbe3e(0x150))/0x4+parseInt(_0x1fbe3e(0x144))/0x5*(-parseInt(_0x1fbe3e(0x14e))/0x6)+parseInt(_0x1fbe3e(0x146))/0x7+-parseInt(_0x1fbe3e(0x152))/0x8*(parseInt(_0x1fbe3e(0x13d))/0x9)+parseInt(_0x1fbe3e(0x142))/0xa;if(_0x26c553===_0x558aac)break;else _0x34f829['push'](_0x34f829['shift']());}catch(_0x4b13cd){_0x34f829['push'](_0x34f829['shift']());}}}(a23_0x26bf,0xb7921));const winston=require(a23_0x188d91(0x153)),fs=require('fs'),path=require(a23_0x188d91(0x159)),logDir=a23_0x188d91(0x147);function a23_0x4904(_0x46b482,_0x9b2f35){const _0x26bf44=a23_0x26bf();return a23_0x4904=function(_0x490450,_0x4efd6a){_0x490450=_0x490450-0x13c;let _0x37564f=_0x26bf44[_0x490450];return _0x37564f;},a23_0x4904(_0x46b482,_0x9b2f35);}!fs['existsSync'](logDir)&&fs[a23_0x188d91(0x140)](logDir);const a23_0x2ad3d8={};a23_0x2ad3d8[a23_0x188d91(0x13e)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x9a2aeb={};a23_0x9a2aeb[a23_0x188d91(0x158)]=!![];const a23_0x297d79={};a23_0x297d79['name']=a23_0x188d91(0x157),exports['logger']=new winston['createLogger']({'format':winston[a23_0x188d91(0x13e)][a23_0x188d91(0x148)](winston[a23_0x188d91(0x13e)][a23_0x188d91(0x14f)](a23_0x2ad3d8),winston['format'][a23_0x188d91(0x13c)](a23_0x9a2aeb),winston[a23_0x188d91(0x13e)][a23_0x188d91(0x14c)](_0x97ad04=>_0x97ad04[a23_0x188d91(0x14f)]+'\x20-\x20'+_0x97ad04['level']+':\x20'+_0x97ad04[a23_0x188d91(0x149)])),'transports':[new winston[(a23_0x188d91(0x143))][(a23_0x188d91(0x154))](a23_0x297d79),new winston[(a23_0x188d91(0x143))][(a23_0x188d91(0x156))]({'filename':path[a23_0x188d91(0x151)](logDir,a23_0x188d91(0x155)),'level':a23_0x188d91(0x141)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x188d91(0x143))][(a23_0x188d91(0x156))]({'filename':path[a23_0x188d91(0x151)](logDir,'usage.log'),'level':a23_0x188d91(0x141)})]};exports[a23_0x188d91(0x145)]=new winston[(a23_0x188d91(0x13f))](winstonFileLoggerParams);
1
+ const a23_0x461281=a23_0x10b8;(function(_0x1dff66,_0x1b8bb2){const _0x4cd2cb=a23_0x10b8,_0x117c26=_0x1dff66();while(!![]){try{const _0x35f93c=parseInt(_0x4cd2cb(0xde))/0x1*(-parseInt(_0x4cd2cb(0xe8))/0x2)+parseInt(_0x4cd2cb(0xd4))/0x3+-parseInt(_0x4cd2cb(0xe0))/0x4*(parseInt(_0x4cd2cb(0xd2))/0x5)+parseInt(_0x4cd2cb(0xcb))/0x6*(parseInt(_0x4cd2cb(0xd3))/0x7)+-parseInt(_0x4cd2cb(0xdd))/0x8+parseInt(_0x4cd2cb(0xe5))/0x9+parseInt(_0x4cd2cb(0xe7))/0xa;if(_0x35f93c===_0x1b8bb2)break;else _0x117c26['push'](_0x117c26['shift']());}catch(_0x275a10){_0x117c26['push'](_0x117c26['shift']());}}}(a23_0x2a2c,0x71d5d));const winston=require(a23_0x461281(0xd8)),fs=require('fs'),path=require(a23_0x461281(0xd6)),logDir='log';!fs[a23_0x461281(0xd0)](logDir)&&fs['mkdirSync'](logDir);function a23_0x10b8(_0x13c37b,_0xcca353){const _0x2a2cc7=a23_0x2a2c();return a23_0x10b8=function(_0x10b86d,_0x1d9f61){_0x10b86d=_0x10b86d-0xca;let _0x26cc2f=_0x2a2cc7[_0x10b86d];return _0x26cc2f;},a23_0x10b8(_0x13c37b,_0xcca353);}const a23_0xf0af71={};a23_0xf0af71['format']='YYYY-MM-DD\x20HH:mm:ss';const a23_0x5926b1={};a23_0x5926b1['level']=!![];const a23_0x8e83f={};a23_0x8e83f[a23_0x461281(0xd5)]=a23_0x461281(0xd7),exports[a23_0x461281(0xcf)]=new winston[(a23_0x461281(0xe3))]({'format':winston[a23_0x461281(0xca)][a23_0x461281(0xe2)](winston[a23_0x461281(0xca)][a23_0x461281(0xdf)](a23_0xf0af71),winston[a23_0x461281(0xca)][a23_0x461281(0xdb)](a23_0x5926b1),winston[a23_0x461281(0xca)][a23_0x461281(0xce)](_0x3fee68=>_0x3fee68[a23_0x461281(0xdf)]+a23_0x461281(0xd9)+_0x3fee68[a23_0x461281(0xd1)]+':\x20'+_0x3fee68['message'])),'transports':[new winston['transports'][(a23_0x461281(0xcc))](a23_0x8e83f),new winston[(a23_0x461281(0xe6))][(a23_0x461281(0xe4))]({'filename':path[a23_0x461281(0xdc)](logDir,a23_0x461281(0xe1)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston['transports']['File']({'filename':path['join'](logDir,a23_0x461281(0xda)),'level':'debug'})]};function a23_0x2a2c(){const _0x2afdc7=['\x20-\x20','usage.log','colorize','join','799208iTKmva','18gHthRi','timestamp','78476NROvsu','events.log','combine','createLogger','File','2890845RfzRhk','transports','1436170xosIpr','57004OUeDbQ','format','72XEgNXL','Console','fileLogger','printf','logger','existsSync','level','165KZORAS','370132TayUAL','1881897nQttcI','name','path','console.info','winston'];a23_0x2a2c=function(){return _0x2afdc7;};return a23_0x2a2c();}exports[a23_0x461281(0xcd)]=new winston[(a23_0x461281(0xe3))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x888c(_0x4022e3,_0x376afe){const _0x1f0565=a24_0x1f05();return a24_0x888c=function(_0x888cac,_0x2e50dd){_0x888cac=_0x888cac-0x186;let _0x4eb5fc=_0x1f0565[_0x888cac];return _0x4eb5fc;},a24_0x888c(_0x4022e3,_0x376afe);}const a24_0x5001f5=a24_0x888c;(function(_0xdcae82,_0x3957e2){const _0x2d76b9=a24_0x888c,_0x550d72=_0xdcae82();while(!![]){try{const _0x545876=-parseInt(_0x2d76b9(0x18b))/0x1+parseInt(_0x2d76b9(0x18c))/0x2*(parseInt(_0x2d76b9(0x188))/0x3)+parseInt(_0x2d76b9(0x19a))/0x4*(parseInt(_0x2d76b9(0x196))/0x5)+parseInt(_0x2d76b9(0x187))/0x6+parseInt(_0x2d76b9(0x18d))/0x7*(-parseInt(_0x2d76b9(0x193))/0x8)+-parseInt(_0x2d76b9(0x197))/0x9*(parseInt(_0x2d76b9(0x18f))/0xa)+parseInt(_0x2d76b9(0x190))/0xb*(parseInt(_0x2d76b9(0x195))/0xc);if(_0x545876===_0x3957e2)break;else _0x550d72['push'](_0x550d72['shift']());}catch(_0x6337b1){_0x550d72['push'](_0x550d72['shift']());}}}(a24_0x1f05,0xe53f4));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x5001f5(0x199));process[a24_0x5001f5(0x18e)][a24_0x5001f5(0x191)]=0x1;function a24_0x1f05(){const _0x4f9870=['6331295dsAaBm','3114TaBmkO','usage','./config/constants','4hYbRKP','EpWwO','679596wASERh','3oyyeAS','commandDir','KTuYV','1415345TKfJXy','245910QsVsdt','3942085YkpDDR','env','45950xaPaie','374sWsIAa','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports','8ISnArS','help','1060548YtrMWx'];a24_0x1f05=function(){return _0x4f9870;};return a24_0x1f05();}function run(_0x5205cf){const _0x16db37=a24_0x5001f5,_0x446744={};_0x446744[_0x16db37(0x18a)]='commands',_0x446744[_0x16db37(0x186)]=_0x16db37(0x194);const _0x5e6777=_0x446744;_0x5205cf[_0x16db37(0x198)](HELP_HEADER_MESSAGE['root'])[_0x16db37(0x189)](_0x5e6777[_0x16db37(0x18a)])['demandCommand']()[_0x16db37(0x194)](_0x5e6777['EpWwO'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x5001f5(0x192)]=run;
2
+ 'use strict';const a24_0x1d1efb=a24_0x4079;(function(_0x499dc4,_0x12fbcf){const _0x4da71d=a24_0x4079,_0x27cd9f=_0x499dc4();while(!![]){try{const _0x476158=-parseInt(_0x4da71d(0xd1))/0x1+parseInt(_0x4da71d(0xce))/0x2+parseInt(_0x4da71d(0xcc))/0x3+parseInt(_0x4da71d(0xd5))/0x4*(-parseInt(_0x4da71d(0xd9))/0x5)+parseInt(_0x4da71d(0xcd))/0x6+-parseInt(_0x4da71d(0xca))/0x7*(parseInt(_0x4da71d(0xc8))/0x8)+parseInt(_0x4da71d(0xd0))/0x9;if(_0x476158===_0x12fbcf)break;else _0x27cd9f['push'](_0x27cd9f['shift']());}catch(_0x1d129a){_0x27cd9f['push'](_0x27cd9f['shift']());}}}(a24_0x14cb,0x1a68c));function a24_0x4079(_0x32c64b,_0x9822c7){const _0x14cb99=a24_0x14cb();return a24_0x4079=function(_0x407921,_0x556a91){_0x407921=_0x407921-0xc8;let _0x5d539f=_0x14cb99[_0x407921];return _0x5d539f;},a24_0x4079(_0x32c64b,_0x9822c7);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x14cb(){const _0x561480=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','52ecKCHP','commands','root','demandCommand','51685xaJElN','1477576BJphkV','exports','7GShGuk','epilogue','146625rPSxWk','115224VjtyxP','408016ecoZLl','yTxsT','2762388cbdsTZ','151769uYmooD','usage','help'];a24_0x14cb=function(){return _0x561480;};return a24_0x14cb();}process['env'][a24_0x1d1efb(0xd4)]=0x1;function run(_0x3865ee){const _0x4d7f2c=a24_0x1d1efb,_0x26e32d={};_0x26e32d[_0x4d7f2c(0xcf)]=_0x4d7f2c(0xd6),_0x26e32d['HVQoW']=_0x4d7f2c(0xd3);const _0x44e92e=_0x26e32d;_0x3865ee[_0x4d7f2c(0xd2)](HELP_HEADER_MESSAGE[_0x4d7f2c(0xd7)])['commandDir'](_0x44e92e[_0x4d7f2c(0xcf)])[_0x4d7f2c(0xd8)]()['help'](_0x44e92e['HVQoW'])[_0x4d7f2c(0xcb)](HELP_FOOTER_MESSAGE);}module[a24_0x1d1efb(0xc9)]=run;