browserstack-node-sdk 1.36.6 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -66
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -0
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  69. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  70. package/src/bin/mocha/command.js +1 -1
  71. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  72. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  73. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  74. package/src/bin/mocha/test.setup.js +1 -1
  75. package/src/bin/nightwatch/command.js +1 -1
  76. package/src/bin/playwright/accessibility-helper.js +1 -1
  77. package/src/bin/playwright/command.js +1 -1
  78. package/src/bin/playwright/globalSetup.js +1 -1
  79. package/src/bin/playwright/mock-process.js +1 -1
  80. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  81. package/src/bin/playwright/patches.js +1 -1
  82. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  83. package/src/bin/playwright/reporter/reporter.js +1 -1
  84. package/src/bin/playwright/reporter/test-details.js +1 -1
  85. package/src/bin/playwright/sessionDetails.js +1 -1
  86. package/src/bin/runner.js +1 -1
  87. package/src/bin/setup.js +1 -1
  88. package/src/bin/test-runner/index.js +1 -1
  89. package/src/bin/test-runner/runTest.js +1 -1
  90. package/src/bin/test-runner/testWorker.js +1 -1
  91. package/src/bin/utils/constants.js +1 -1
  92. package/src/bin/utils/log4jsAppender.js +1 -1
  93. package/src/bin/utils/logPatcher.js +1 -1
  94. package/src/bin/utils/logReportingAPI.js +1 -1
  95. package/src/bin/v2/TestInfo.js +1 -1
  96. package/src/bin/v2/browserstackCLI.js +1 -1
  97. package/src/bin/v2/cliUtils.js +1 -1
  98. package/src/bin/v2/customTagManager.js +1 -1
  99. package/src/bin/v2/eventDispatcher.js +1 -1
  100. package/src/bin/v2/framework/automationFramework.js +1 -1
  101. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  102. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  103. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  104. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  105. package/src/bin/v2/framework/testFramework.js +1 -1
  106. package/src/bin/v2/grpcClient.js +1 -1
  107. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  108. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  109. package/src/bin/v2/instances/trackedContext.js +1 -1
  110. package/src/bin/v2/instances/trackedInstance.js +1 -1
  111. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  112. package/src/bin/v2/modules/baseModule.js +1 -1
  113. package/src/bin/v2/modules/observabilityModule.js +1 -1
  114. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  115. package/src/bin/v2/modules/testhubModule.js +1 -1
  116. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  117. package/src/bin/v2/state/hookState.js +1 -1
  118. package/src/bin/v2/state/testFrameworkState.js +1 -1
  119. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  120. package/src/bin/vanilla-js/command.js +1 -1
  121. package/src/browserStackSdk.js +1 -1
  122. package/src/helpers/BrowserStackSetup.js +1 -1
  123. package/src/helpers/accessibility-automation/constants.js +1 -1
  124. package/src/helpers/accessibility-automation/helper.js +1 -1
  125. package/src/helpers/accessibility-automation/scripts.js +1 -1
  126. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  127. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  128. package/src/helpers/ats/constants.js +1 -1
  129. package/src/helpers/ats/helper.js +1 -1
  130. package/src/helpers/capsMapping.js +1 -1
  131. package/src/helpers/central-scanner/constants.js +1 -1
  132. package/src/helpers/central-scanner/helpers.js +1 -1
  133. package/src/helpers/classLogger.js +1 -1
  134. package/src/helpers/globals.js +1 -1
  135. package/src/helpers/helper.js +1 -1
  136. package/src/helpers/logger.js +1 -1
  137. package/src/helpers/metadata.js +1 -1
  138. package/src/helpers/patchHelper.js +1 -1
  139. package/src/helpers/patchHelpers.js +1 -1
  140. package/src/helpers/percy/Percy.js +1 -1
  141. package/src/helpers/percy/PercyBinary.js +1 -1
  142. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  143. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  144. package/src/helpers/percy/PercySDK.js +1 -1
  145. package/src/helpers/percy/index.js +1 -1
  146. package/src/helpers/percy/utils.js +1 -1
  147. package/src/helpers/performance/constants.js +1 -1
  148. package/src/helpers/performance/performance-tester.js +1 -1
  149. package/src/helpers/processHelper.js +1 -1
  150. package/src/helpers/request-spy.js +1 -1
  151. package/src/helpers/setKeepAlive.js +1 -1
  152. package/src/helpers/test-observability/constants.js +1 -1
  153. package/src/helpers/test-observability/error-handler.js +1 -1
  154. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  155. package/src/helpers/test-observability/sessionHandler.js +1 -1
  156. package/src/helpers/test-observability/utils.js +1 -1
  157. package/src/helpers/test-orchestration/constants.js +1 -0
  158. package/src/helpers/test-orchestration/failfastManager.js +1 -0
  159. package/src/helpers/test-orchestration/fileHelper.js +1 -0
  160. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -0
  161. package/src/helpers/test-orchestration/requestUtils.js +1 -0
  162. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -0
  163. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -0
  164. package/src/helpers/testhub/constants.js +1 -1
  165. package/src/helpers/testhub/testhubHandler.js +1 -1
  166. package/src/helpers/testhub/utils.js +1 -1
  167. package/src/helpers/timeoutPromise.js +1 -1
  168. package/src/helpers/utilities.js +1 -1
  169. package/src/helpers/w3cMapping.js +1 -1
  170. package/src/hubAllocationMethods.js +1 -1
  171. package/src/index.js +1 -1
  172. package/src/helpers/test-orchestration/fail-fast/fileHelper.js +0 -1
  173. package/src/helpers/test-orchestration/fail-fast/jest.js +0 -1
  174. package/src/helpers/test-orchestration/fail-fast/requestUtils.js +0 -1
@@ -1 +1 @@
1
- const a15_0x595255=a15_0x1f7f;(function(_0x55db12,_0x3c6975){const _0x46bd70=a15_0x1f7f,_0x4e14fd=_0x55db12();while(!![]){try{const _0x2fbdae=parseInt(_0x46bd70(0x173))/0x1*(parseInt(_0x46bd70(0x162))/0x2)+parseInt(_0x46bd70(0x164))/0x3*(parseInt(_0x46bd70(0x176))/0x4)+parseInt(_0x46bd70(0x124))/0x5*(parseInt(_0x46bd70(0x140))/0x6)+parseInt(_0x46bd70(0x139))/0x7*(parseInt(_0x46bd70(0x12c))/0x8)+-parseInt(_0x46bd70(0x156))/0x9*(-parseInt(_0x46bd70(0x161))/0xa)+-parseInt(_0x46bd70(0x147))/0xb*(-parseInt(_0x46bd70(0x14a))/0xc)+-parseInt(_0x46bd70(0x169))/0xd*(parseInt(_0x46bd70(0x16d))/0xe);if(_0x2fbdae===_0x3c6975)break;else _0x4e14fd['push'](_0x4e14fd['shift']());}catch(_0x16f20e){_0x4e14fd['push'](_0x4e14fd['shift']());}}}(a15_0x2e63,0x44233));const fs=require('fs'),got=require(a15_0x595255(0x15d)),{table}=require(a15_0x595255(0x148)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x595255(0x137)),{getCredentialsPath,getAuthHeader}=require(a15_0x595255(0x138)),{sendInstrumentationEvent}=require(a15_0x595255(0x11f));function a15_0x1f7f(_0x45a525,_0x5a0fa1){const _0x2e636b=a15_0x2e63();return a15_0x1f7f=function(_0x1f7f40,_0x18753a){_0x1f7f40=_0x1f7f40-0x11e;let _0x546a1e=_0x2e636b[_0x1f7f40];return _0x546a1e;},a15_0x1f7f(_0x45a525,_0x5a0fa1);}exports[a15_0x595255(0x122)]=a15_0x595255(0x15f),exports[a15_0x595255(0x14f)]=a15_0x595255(0x159),exports['builder']=function(_0x265131){const _0x47cb83=a15_0x595255,_0x4d8ba9={};_0x4d8ba9[_0x47cb83(0x160)]=_0x47cb83(0x123),_0x4d8ba9[_0x47cb83(0x13c)]=_0x47cb83(0x175),_0x4d8ba9[_0x47cb83(0x179)]='help';const _0x2d5d75=_0x4d8ba9,_0x263a93={};_0x263a93['description']=_0x2d5d75[_0x47cb83(0x160)],_0x263a93[_0x47cb83(0x11e)]=_0x2d5d75[_0x47cb83(0x13c)];const _0x412961={};return _0x412961[_0x47cb83(0x130)]=_0x263a93,_0x265131[_0x47cb83(0x135)](HELP_HEADER_MESSAGE[_0x47cb83(0x177)][_0x47cb83(0x12a)])[_0x47cb83(0x166)](HELP_FOOTER_MESSAGE)[_0x47cb83(0x16a)](_0x412961)['help'](_0x2d5d75[_0x47cb83(0x179)])[_0x47cb83(0x16f)];},exports[a15_0x595255(0x16b)]=async function(_0x28f302){const _0x4c9c50=a15_0x595255,_0x1f3954={'Syeqk':function(_0x414dbf){return _0x414dbf();},'gZUKW':function(_0x241c8f){return _0x241c8f();},'kpSqD':_0x4c9c50(0x13d),'wakIn':function(_0x5aecf8,_0x321056,_0x48cc09,_0x51dac3,_0x306ef5,_0x5cd028,_0x1d2292){return _0x5aecf8(_0x321056,_0x48cc09,_0x51dac3,_0x306ef5,_0x5cd028,_0x1d2292);},'IMrJK':'list-grids-called','RVpiJ':_0x4c9c50(0x150),'IoYwy':function(_0x40f4fc){return _0x40f4fc();},'seClg':_0x4c9c50(0x16e),'LmmNT':function(_0x43e2a1,_0x37bd12,_0x5b9ac7){return _0x43e2a1(_0x37bd12,_0x5b9ac7);},'PzTeH':function(_0x20b88e,_0x3d9d39,_0x2c6210,_0x58196f,_0x4b3517,_0x4c3a7c,_0x3e5d4a){return _0x20b88e(_0x3d9d39,_0x2c6210,_0x58196f,_0x4b3517,_0x4c3a7c,_0x3e5d4a);},'CozBZ':function(_0xf2e53f,_0x47b947){return _0xf2e53f!==_0x47b947;},'LykZO':function(_0x2da3b3,_0xef15e5){return _0x2da3b3===_0xef15e5;},'tXMCu':_0x4c9c50(0x15a),'wXErv':_0x4c9c50(0x136),'PGnnC':_0x4c9c50(0x125),'JIwKT':_0x4c9c50(0x14c),'TfJVU':_0x4c9c50(0x157),'PUviW':'queued','dSinX':'cluster-name','vtDsZ':function(_0xa1fdb1,_0x31d729){return _0xa1fdb1(_0x31d729);},'hlcfe':function(_0x2d8c6b,_0x2ad10e){return _0x2d8c6b===_0x2ad10e;},'uWZgq':_0x4c9c50(0x13f),'khwLP':'unauthorised','xMYqH':_0x4c9c50(0x158),'cTWoa':function(_0x3cf7f2,_0x586607,_0x3eb067,_0x57fea7,_0x1dfe92,_0x1ee597,_0x483368){return _0x3cf7f2(_0x586607,_0x3eb067,_0x57fea7,_0x1dfe92,_0x1ee597,_0x483368);},'oCRWx':_0x4c9c50(0x121)};try{global_registry[_0x4c9c50(0x15e)]=_0x1f3954[_0x4c9c50(0x168)](uuidv4);!fs['existsSync'](_0x1f3954[_0x4c9c50(0x142)](getCredentialsPath))&&(console['error'](_0x1f3954[_0x4c9c50(0x155)]),await _0x1f3954['wakIn'](sendInstrumentationEvent,_0x28f302,_0x1f3954[_0x4c9c50(0x14d)],messageTypes[_0x4c9c50(0x165)],_0x1f3954[_0x4c9c50(0x141)],null,_0x28f302),process[_0x4c9c50(0x174)](0x1));const _0x52b5d4=JSON[_0x4c9c50(0x170)](fs['readFileSync'](_0x1f3954['IoYwy'](getCredentialsPath)));let _0xfcd6b1='https://'+AG_API_URL+_0x4c9c50(0x178);_0x28f302[_0x4c9c50(0x13e)]&&(_0xfcd6b1=_0x4c9c50(0x12f)+AG_API_URL+_0x4c9c50(0x14e));const _0x1cf77c={'method':_0x1f3954[_0x4c9c50(0x132)],'headers':_0x1f3954[_0x4c9c50(0x167)](getAuthHeader,_0x52b5d4[_0x4c9c50(0x154)][_0x4c9c50(0x16c)],_0x52b5d4[_0x4c9c50(0x154)][_0x4c9c50(0x145)]),'throwHttpErrors':![]};global_registry[_0x4c9c50(0x151)]=_0x52b5d4['Browserstack'][_0x4c9c50(0x16c)],global_registry[_0x4c9c50(0x128)]=_0x52b5d4[_0x4c9c50(0x154)][_0x4c9c50(0x145)],_0x1f3954['PzTeH'](sendInstrumentationEvent,_0x28f302,_0x1f3954[_0x4c9c50(0x14d)],messageTypes[_0x4c9c50(0x153)],null,null,_0x28f302);const _0x33ac94=await _0x1f3954[_0x4c9c50(0x167)](got,_0xfcd6b1,_0x1cf77c);if(_0x1f3954['CozBZ'](_0x33ac94,null)&&_0x1f3954['CozBZ'](_0x33ac94,undefined)&&_0x1f3954[_0x4c9c50(0x12e)](_0x33ac94['statusCode'],0xc8)){const _0x3ffd62=JSON['parse'](_0x33ac94[_0x4c9c50(0x131)]);console[_0x4c9c50(0x127)](_0x1f3954[_0x4c9c50(0x144)]);const _0x3b9b7a=[];_0x3b9b7a[_0x4c9c50(0x14b)]([_0x1f3954['wXErv'],_0x1f3954['PGnnC'],_0x1f3954[_0x4c9c50(0x172)],_0x1f3954[_0x4c9c50(0x17a)],_0x1f3954[_0x4c9c50(0x133)],_0x1f3954[_0x4c9c50(0x129)]]),_0x3ffd62[_0x4c9c50(0x15c)](_0x5a8406=>{const _0xf0299a=_0x4c9c50;_0x3b9b7a[_0xf0299a(0x14b)]([_0x5a8406['id'],_0x5a8406[_0xf0299a(0x13a)],_0x5a8406[_0xf0299a(0x14c)],_0x5a8406[_0xf0299a(0x157)],_0x5a8406['queued'],_0x5a8406[_0xf0299a(0x149)]]);}),console[_0x4c9c50(0x127)](_0x1f3954[_0x4c9c50(0x152)](table,_0x3b9b7a)),process[_0x4c9c50(0x174)](0x0);}_0x1f3954[_0x4c9c50(0x163)](_0x33ac94[_0x4c9c50(0x12d)],0x191)&&(console[_0x4c9c50(0x12b)](_0x1f3954[_0x4c9c50(0x120)]),await _0x1f3954[_0x4c9c50(0x134)](sendInstrumentationEvent,_0x28f302,_0x1f3954[_0x4c9c50(0x14d)],messageTypes[_0x4c9c50(0x165)],_0x1f3954[_0x4c9c50(0x15b)],null,_0x28f302),process[_0x4c9c50(0x174)](0x1)),console[_0x4c9c50(0x12b)](_0x4c9c50(0x126)+JSON['stringify'](_0x33ac94)),await _0x1f3954[_0x4c9c50(0x134)](sendInstrumentationEvent,_0x28f302,_0x1f3954['IMrJK'],messageTypes[_0x4c9c50(0x165)],_0x1f3954[_0x4c9c50(0x146)],_0x33ac94,_0x28f302),process['exit'](0x1);}catch(_0x5f3576){console[_0x4c9c50(0x12b)](_0x4c9c50(0x143)+_0x5f3576[_0x4c9c50(0x171)]),await _0x1f3954['cTWoa'](sendInstrumentationEvent,_0x28f302,_0x1f3954['IMrJK'],messageTypes['ERROR'],_0x1f3954[_0x4c9c50(0x13b)],_0x5f3576,_0x28f302),process['exit'](0x1);}};function a15_0x2e63(){const _0xf6dd59=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','log','bstackAccesskey','dSinX','grid','error','3390096oSDVeZ','statusCode','LykZO','https://','all-grids','body','seClg','PUviW','wakIn','usage','grid-id','../../config/constants','../../utils/utilityMethods','7HiUBEv','name','oCRWx','CvtXT','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','allGrids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','96cjgbMx','RVpiJ','gZUKW','Failed\x20to\x20list\x20resources!\x20Error:\x20','tXMCu','password','xMYqH','1221mFGDvD','table','clusterName','48864AVigWt','push','status','IMrJK','/packages/cli/get-all-grids','desc','init-not-called','bstackUsername','vtDsZ','INFO','Browserstack','kpSqD','9XtVENS','running','server-error','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','\x0aFound\x20the\x20following\x20grids:\x0a','khwLP','forEach','got','requestId','grids','kjYID','1324910TEBeRl','74ZRpqYW','hlcfe','3asdtFY','ERROR','epilogue','LmmNT','Syeqk','74516Qgeaej','options','handler','username','4382ddPolw','GET','argv','parse','stack','JIwKT','11581aKYyJU','exit','boolean','855172zFTTjg','list','/packages/cli/get-grids','Xsehq','TfJVU','type','../../utils/instrumentationUtils','uWZgq','unknown-error','command','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','132085jbDWWM','grid-name'];a15_0x2e63=function(){return _0xf6dd59;};return a15_0x2e63();}
1
+ const a15_0x403b23=a15_0x34a0;function a15_0x34a0(_0x5592ac,_0x7b5d30){const _0xab622b=a15_0xab62();return a15_0x34a0=function(_0x34a0ff,_0x341663){_0x34a0ff=_0x34a0ff-0xa1;let _0x4a2bd3=_0xab622b[_0x34a0ff];return _0x4a2bd3;},a15_0x34a0(_0x5592ac,_0x7b5d30);}(function(_0x4839d3,_0x698695){const _0x34abcc=a15_0x34a0,_0x56237c=_0x4839d3();while(!![]){try{const _0x195a35=parseInt(_0x34abcc(0xd2))/0x1+-parseInt(_0x34abcc(0xb7))/0x2*(parseInt(_0x34abcc(0xb6))/0x3)+-parseInt(_0x34abcc(0xe3))/0x4*(parseInt(_0x34abcc(0xc2))/0x5)+-parseInt(_0x34abcc(0xe4))/0x6*(-parseInt(_0x34abcc(0xca))/0x7)+-parseInt(_0x34abcc(0xa3))/0x8*(-parseInt(_0x34abcc(0xf2))/0x9)+-parseInt(_0x34abcc(0xde))/0xa+-parseInt(_0x34abcc(0xec))/0xb*(-parseInt(_0x34abcc(0xb9))/0xc);if(_0x195a35===_0x698695)break;else _0x56237c['push'](_0x56237c['shift']());}catch(_0x5a0214){_0x56237c['push'](_0x56237c['shift']());}}}(a15_0xab62,0x56f80));const fs=require('fs'),got=require('got'),{table}=require(a15_0x403b23(0xcc)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x403b23(0xf1)),{getCredentialsPath,getAuthHeader}=require(a15_0x403b23(0xd4)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x403b23(0xe9)]=a15_0x403b23(0xaa),exports[a15_0x403b23(0xef)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x1a0df1){const _0x324f19=a15_0x403b23,_0x25bef7={};_0x25bef7['LYeEm']=_0x324f19(0xc1),_0x25bef7['dOPSz']=_0x324f19(0xe5),_0x25bef7[_0x324f19(0xcd)]=_0x324f19(0xc5);const _0x49cf8d=_0x25bef7,_0x230fb1={};_0x230fb1[_0x324f19(0xdf)]=_0x49cf8d[_0x324f19(0xd8)],_0x230fb1['type']=_0x49cf8d['dOPSz'];const _0x4af3e4={};return _0x4af3e4[_0x324f19(0xea)]=_0x230fb1,_0x1a0df1[_0x324f19(0xd7)](HELP_HEADER_MESSAGE['list'][_0x324f19(0xc3)])[_0x324f19(0xdb)](HELP_FOOTER_MESSAGE)[_0x324f19(0xdd)](_0x4af3e4)[_0x324f19(0xc5)](_0x49cf8d['tBhbE'])[_0x324f19(0xe6)];},exports[a15_0x403b23(0xa1)]=async function(_0x38e183){const _0x20fd18=a15_0x403b23,_0x4b6d50={'Etmta':function(_0x1a5bda){return _0x1a5bda();},'wLbrE':function(_0x53861d){return _0x53861d();},'bXpXy':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bGLXI':function(_0x402f03,_0x5c4e10,_0x175940,_0x2737b3,_0x5f04b9,_0x46f191,_0x2e98b1){return _0x402f03(_0x5c4e10,_0x175940,_0x2737b3,_0x5f04b9,_0x46f191,_0x2e98b1);},'CLBum':_0x20fd18(0xb1),'Quqxh':_0x20fd18(0xaf),'IpZzd':_0x20fd18(0xd1),'FAmvF':function(_0x47e49e,_0x747e04,_0x24fdc4){return _0x47e49e(_0x747e04,_0x24fdc4);},'GcfjF':function(_0x17c15a,_0x317fd8,_0x54d7ad,_0xd4cd45,_0x23dfa1,_0x581eca,_0x1e1897){return _0x17c15a(_0x317fd8,_0x54d7ad,_0xd4cd45,_0x23dfa1,_0x581eca,_0x1e1897);},'IsVPD':function(_0x2fa06f,_0x340b96,_0x10ab6f){return _0x2fa06f(_0x340b96,_0x10ab6f);},'MPQDB':function(_0x74aab,_0x596f46){return _0x74aab!==_0x596f46;},'XlPDg':function(_0x31866,_0x1e29a8){return _0x31866===_0x1e29a8;},'pqeiM':_0x20fd18(0xc8),'TahLt':_0x20fd18(0xd5),'VtAsz':_0x20fd18(0xa9),'wWEnL':_0x20fd18(0xf3),'YHICH':_0x20fd18(0xba),'mezmu':'queued','PymUA':_0x20fd18(0xda),'JAmVj':function(_0x24db4c,_0x22549e){return _0x24db4c(_0x22549e);},'aTyYd':function(_0x53910c,_0x454ec6){return _0x53910c===_0x454ec6;},'fahli':_0x20fd18(0xa2),'mkurE':function(_0x281977,_0x4e3aa2,_0x662534,_0x43390c,_0x5bb963,_0x316fde,_0x5a33ac){return _0x281977(_0x4e3aa2,_0x662534,_0x43390c,_0x5bb963,_0x316fde,_0x5a33ac);},'mWMpc':'unauthorised','Kflag':_0x20fd18(0xdc),'OhQYO':_0x20fd18(0xd9)};try{global_registry[_0x20fd18(0xb0)]=_0x4b6d50['Etmta'](uuidv4);!fs[_0x20fd18(0xae)](_0x4b6d50[_0x20fd18(0xc6)](getCredentialsPath))&&(console['error'](_0x4b6d50['bXpXy']),await _0x4b6d50['bGLXI'](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes['ERROR'],_0x4b6d50[_0x20fd18(0xd6)],null,_0x38e183),process[_0x20fd18(0xed)](0x1));const _0x3a6f7f=JSON[_0x20fd18(0xb5)](fs['readFileSync'](_0x4b6d50[_0x20fd18(0xbb)](getCredentialsPath)));let _0x5e0d52=_0x20fd18(0xf0)+AG_API_URL+_0x20fd18(0xa7);_0x38e183[_0x20fd18(0xb4)]&&(_0x5e0d52=_0x20fd18(0xf0)+AG_API_URL+'/packages/cli/get-all-grids');const _0x30e095={'method':_0x4b6d50[_0x20fd18(0xd0)],'headers':_0x4b6d50['FAmvF'](getAuthHeader,_0x3a6f7f[_0x20fd18(0xa4)]['username'],_0x3a6f7f[_0x20fd18(0xa4)][_0x20fd18(0xa6)]),'throwHttpErrors':![]};global_registry[_0x20fd18(0xce)]=_0x3a6f7f['Browserstack'][_0x20fd18(0xeb)],global_registry[_0x20fd18(0xc4)]=_0x3a6f7f['Browserstack'][_0x20fd18(0xa6)],_0x4b6d50[_0x20fd18(0xbe)](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes[_0x20fd18(0xe1)],null,null,_0x38e183);const _0x5a3479=await _0x4b6d50[_0x20fd18(0xac)](got,_0x5e0d52,_0x30e095);if(_0x4b6d50['MPQDB'](_0x5a3479,null)&&_0x4b6d50[_0x20fd18(0xb3)](_0x5a3479,undefined)&&_0x4b6d50[_0x20fd18(0xf6)](_0x5a3479[_0x20fd18(0xe2)],0xc8)){const _0x190ca4=JSON['parse'](_0x5a3479['body']);console['log'](_0x4b6d50[_0x20fd18(0xbf)]);const _0x377589=[];_0x377589['push']([_0x4b6d50[_0x20fd18(0xc9)],_0x4b6d50[_0x20fd18(0xab)],_0x4b6d50['wWEnL'],_0x4b6d50[_0x20fd18(0xb2)],_0x4b6d50[_0x20fd18(0xa8)],_0x4b6d50['PymUA']]),_0x190ca4[_0x20fd18(0xad)](_0x31136f=>{const _0x395fa8=_0x20fd18;_0x377589[_0x395fa8(0xe0)]([_0x31136f['id'],_0x31136f[_0x395fa8(0xa5)],_0x31136f[_0x395fa8(0xf3)],_0x31136f[_0x395fa8(0xba)],_0x31136f[_0x395fa8(0xe8)],_0x31136f[_0x395fa8(0xb8)]]);}),console['log'](_0x4b6d50['JAmVj'](table,_0x377589)),process['exit'](0x0);}_0x4b6d50[_0x20fd18(0xe7)](_0x5a3479[_0x20fd18(0xe2)],0x191)&&(console['error'](_0x4b6d50['fahli']),await _0x4b6d50[_0x20fd18(0xcb)](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes[_0x20fd18(0xc7)],_0x4b6d50[_0x20fd18(0xee)],null,_0x38e183),process['exit'](0x1)),console[_0x20fd18(0xc0)](_0x20fd18(0xbd)+JSON[_0x20fd18(0xbc)](_0x5a3479)),await _0x4b6d50['GcfjF'](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes['ERROR'],_0x4b6d50['Kflag'],_0x5a3479,_0x38e183),process[_0x20fd18(0xed)](0x1);}catch(_0x3e35bb){console[_0x20fd18(0xc0)](_0x20fd18(0xd3)+_0x3e35bb[_0x20fd18(0xf4)]),await _0x4b6d50[_0x20fd18(0xbe)](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes[_0x20fd18(0xc7)],_0x4b6d50[_0x20fd18(0xcf)],_0x3e35bb,_0x38e183),process[_0x20fd18(0xed)](0x1);}};function a15_0xab62(){const _0x8db912=['grid','bstackAccesskey','help','wLbrE','ERROR','\x0aFound\x20the\x20following\x20grids:\x0a','TahLt','483PYyGxL','mkurE','table','tBhbE','bstackUsername','OhQYO','IpZzd','GET','133300wglQHj','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../utils/utilityMethods','grid-id','Quqxh','usage','LYeEm','unknown-error','cluster-name','epilogue','server-error','options','1543970UYjeaD','description','push','INFO','statusCode','28KAxvIt','50982nQlqCl','boolean','argv','aTyYd','queued','command','all-grids','username','186483VifOQY','exit','mWMpc','desc','https://','../../config/constants','9HqsJAF','status','stack','CLBum','XlPDg','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1754120uPVaDK','Browserstack','name','password','/packages/cli/get-grids','mezmu','grid-name','grids','VtAsz','IsVPD','forEach','existsSync','init-not-called','requestId','list-grids-called','YHICH','MPQDB','allGrids','parse','3147YdVcMF','1226quuXDQ','clusterName','444GHwuRO','running','Etmta','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GcfjF','pqeiM','error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','294615DOXvWB'];a15_0xab62=function(){return _0x8db912;};return a15_0xab62();}
@@ -1 +1 @@
1
- const a16_0x23d47a=a16_0x55fa;(function(_0x4ae4fb,_0x5d350d){const _0x28759f=a16_0x55fa,_0x3c66e5=_0x4ae4fb();while(!![]){try{const _0x2bc0e0=-parseInt(_0x28759f(0x17d))/0x1*(-parseInt(_0x28759f(0x174))/0x2)+-parseInt(_0x28759f(0x181))/0x3*(parseInt(_0x28759f(0x17c))/0x4)+-parseInt(_0x28759f(0x17a))/0x5+parseInt(_0x28759f(0x184))/0x6+parseInt(_0x28759f(0x182))/0x7*(parseInt(_0x28759f(0x178))/0x8)+-parseInt(_0x28759f(0x175))/0x9+parseInt(_0x28759f(0x17f))/0xa;if(_0x2bc0e0===_0x5d350d)break;else _0x3c66e5['push'](_0x3c66e5['shift']());}catch(_0x5ebab0){_0x3c66e5['push'](_0x3c66e5['shift']());}}}(a16_0x23cb,0xc9ac4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x23d47a(0x17e));function a16_0x55fa(_0x249c99,_0x240906){const _0x23cbf0=a16_0x23cb();return a16_0x55fa=function(_0x55fa26,_0x345315){_0x55fa26=_0x55fa26-0x16d;let _0x187511=_0x23cbf0[_0x55fa26];return _0x187511;},a16_0x55fa(_0x249c99,_0x240906);}function a16_0x23cb(){const _0x4d8e0e=['recommendCommands','commandDir','help','86QqcXbq','3676401TbePYS','pre-check','epilogue','2502744EPHwpu','TLVFP','45010AxZoLH','pre_check','36noPUZX','18136GzcWKI','../config/constants','11592360hhMgVd','desc','483846CObFwS','7BCsjvU','strict','2658924RamZHY','demandCommand','builder','kwZuc','precheck_commands','command'];a16_0x23cb=function(){return _0x4d8e0e;};return a16_0x23cb();}exports[a16_0x23d47a(0x170)]=a16_0x23d47a(0x176),exports[a16_0x23d47a(0x180)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x23d47a(0x16d)]=function(_0x33ce8a){const _0x412394=a16_0x23d47a,_0x49ab19={};_0x49ab19['TLVFP']=_0x412394(0x16f),_0x49ab19[_0x412394(0x16e)]=_0x412394(0x173);const _0x335925=_0x49ab19;return _0x33ce8a['usage'](HELP_HEADER_MESSAGE[_0x412394(0x17b)])[_0x412394(0x177)](HELP_FOOTER_MESSAGE)[_0x412394(0x172)](_0x335925[_0x412394(0x179)])[_0x412394(0x185)]()[_0x412394(0x171)]()[_0x412394(0x183)]()['help'](_0x335925[_0x412394(0x16e)]);},exports['handler']=function(_0x313ca2){};
1
+ const a16_0x56dc99=a16_0x5c81;(function(_0x24a696,_0x58ecde){const _0x1e67e2=a16_0x5c81,_0x4c5e8e=_0x24a696();while(!![]){try{const _0x32be54=parseInt(_0x1e67e2(0x6c))/0x1*(parseInt(_0x1e67e2(0x70))/0x2)+parseInt(_0x1e67e2(0x7e))/0x3+parseInt(_0x1e67e2(0x77))/0x4+-parseInt(_0x1e67e2(0x81))/0x5+-parseInt(_0x1e67e2(0x6f))/0x6*(parseInt(_0x1e67e2(0x74))/0x7)+-parseInt(_0x1e67e2(0x7f))/0x8*(parseInt(_0x1e67e2(0x6b))/0x9)+parseInt(_0x1e67e2(0x69))/0xa*(parseInt(_0x1e67e2(0x82))/0xb);if(_0x32be54===_0x58ecde)break;else _0x4c5e8e['push'](_0x4c5e8e['shift']());}catch(_0x20f9c9){_0x4c5e8e['push'](_0x4c5e8e['shift']());}}}(a16_0x44dc,0xc9562));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x56dc99(0x80));function a16_0x5c81(_0x53b0dc,_0x34f7ac){const _0x44dc8c=a16_0x44dc();return a16_0x5c81=function(_0x5c812f,_0x250330){_0x5c812f=_0x5c812f-0x69;let _0x1a3d29=_0x44dc8c[_0x5c812f];return _0x1a3d29;},a16_0x5c81(_0x53b0dc,_0x34f7ac);}function a16_0x44dc(){const _0x378396=['4650260vlkYop','1045264kEZtJP','440IUbndb','pre_check','95301oCqWAl','311551HKxHGo','precheck_commands','epilogue','6aKxJrz','2yFLegV','strict','demandCommand','recommendCommands','9745771OTPwAh','help','handler','197520CkCkVJ','desc','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','EdGbg','usage','builder','JPtGx','738861BioYEf','1240VbJGmV','../config/constants'];a16_0x44dc=function(){return _0x378396;};return a16_0x44dc();}exports['command']='pre-check',exports[a16_0x56dc99(0x78)]=a16_0x56dc99(0x79),exports[a16_0x56dc99(0x7c)]=function(_0x182991){const _0x3ebd9e=a16_0x56dc99,_0x21423a={};_0x21423a[_0x3ebd9e(0x7a)]=_0x3ebd9e(0x6d),_0x21423a[_0x3ebd9e(0x7d)]=_0x3ebd9e(0x75);const _0x1836f2=_0x21423a;return _0x182991[_0x3ebd9e(0x7b)](HELP_HEADER_MESSAGE[_0x3ebd9e(0x6a)])[_0x3ebd9e(0x6e)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1836f2[_0x3ebd9e(0x7a)])[_0x3ebd9e(0x72)]()[_0x3ebd9e(0x73)]()[_0x3ebd9e(0x71)]()[_0x3ebd9e(0x75)](_0x1836f2['JPtGx']);},exports[a16_0x56dc99(0x76)]=function(_0x11b947){};
@@ -1 +1 @@
1
- const a17_0x1c79a2=a17_0x4c9c;(function(_0x17ffdd,_0x4db6f8){const _0x3d5364=a17_0x4c9c,_0x224d73=_0x17ffdd();while(!![]){try{const _0x5c468b=parseInt(_0x3d5364(0x1d1))/0x1*(parseInt(_0x3d5364(0x1c4))/0x2)+-parseInt(_0x3d5364(0x1dc))/0x3*(parseInt(_0x3d5364(0x12d))/0x4)+parseInt(_0x3d5364(0xf0))/0x5+-parseInt(_0x3d5364(0x139))/0x6+-parseInt(_0x3d5364(0x1a9))/0x7+parseInt(_0x3d5364(0x154))/0x8+-parseInt(_0x3d5364(0x1b9))/0x9;if(_0x5c468b===_0x4db6f8)break;else _0x224d73['push'](_0x224d73['shift']());}catch(_0x3798c2){_0x224d73['push'](_0x224d73['shift']());}}}(a17_0x59d1,0x5c0d7));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x1c79a2(0x121)),ReconnectingWebSocket=require(a17_0x1c79a2(0x1ae)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1c79a2(0x171)),{logger}=require(a17_0x1c79a2(0x157)),{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(a17_0x1c79a2(0xfd)),webSocketUtils=require(a17_0x1c79a2(0x10e)),{sendInstrumentationEvent}=require(a17_0x1c79a2(0xf6));exports['command']=a17_0x1c79a2(0x1ca),exports[a17_0x1c79a2(0x168)]=a17_0x1c79a2(0x145),exports[a17_0x1c79a2(0x188)]=function(_0x1874c9){const _0x23f490=a17_0x1c79a2,_0x2372bb={};_0x2372bb[_0x23f490(0x113)]=_0x23f490(0x186),_0x2372bb[_0x23f490(0x131)]='string',_0x2372bb[_0x23f490(0x155)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2372bb[_0x23f490(0x1d8)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2372bb[_0x23f490(0x10f)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2372bb[_0x23f490(0x1d6)]=_0x23f490(0x153);const _0x328c22=_0x2372bb,_0x106cce={};_0x106cce[_0x23f490(0x1be)]=_0x328c22[_0x23f490(0x113)],_0x106cce[_0x23f490(0x1df)]=_0x328c22[_0x23f490(0x131)];const _0x125caf={};_0x125caf[_0x23f490(0x1be)]=_0x328c22[_0x23f490(0x155)],_0x125caf[_0x23f490(0x1df)]=_0x328c22[_0x23f490(0x131)];const _0x5e6400={};_0x5e6400[_0x23f490(0x1be)]=_0x328c22['BEVeK'],_0x5e6400[_0x23f490(0x1df)]=_0x328c22[_0x23f490(0x131)];const _0x2d8593={};_0x2d8593[_0x23f490(0x1be)]=_0x328c22[_0x23f490(0x10f)],_0x2d8593['type']=_0x328c22[_0x23f490(0x131)];const _0x315f6c={};return _0x315f6c['cluster-name']=_0x106cce,_0x315f6c[_0x23f490(0x110)]=_0x125caf,_0x315f6c['region']=_0x5e6400,_0x315f6c[_0x23f490(0xea)]=_0x2d8593,_0x1874c9[_0x23f490(0x195)](HELP_HEADER_MESSAGE[_0x23f490(0x117)])[_0x23f490(0x14f)](HELP_FOOTER_MESSAGE)[_0x23f490(0x1b2)](_0x315f6c)['help'](_0x328c22[_0x23f490(0x1d6)])[_0x23f490(0x18c)];};async function inputValidation(_0x278d59,_0x37667f){const _0x2b2829=a17_0x1c79a2,_0x4d9490={'xOAvd':'cloud-provider','TUpbG':'Error\x20Details:\x0a','rwkJH':_0x2b2829(0x1a4),'RMXdR':_0x2b2829(0x186),'sVXYz':'string','Onsbg':_0x2b2829(0x150),'VrcMU':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','gyAbS':_0x2b2829(0x184),'YxlIC':_0x2b2829(0x153),'TEQNS':_0x2b2829(0xe7),'kqaoa':_0x2b2829(0x109),'kwEqD':_0x2b2829(0x123),'qzyGn':'cluster-name','LOIuH':function(_0x3ff3a6,_0x5f2084){return _0x3ff3a6+_0x5f2084;},'QzrGd':'Success','kJhVF':'Failure','RqaqW':function(_0x2ce0fb,_0x3a8bb2){return _0x2ce0fb||_0x3a8bb2;},'KYtII':function(_0x3bb2ee,_0x4e967e){return _0x3bb2ee!==_0x4e967e;},'nhdyy':_0x2b2829(0x13b),'WlsEu':_0x2b2829(0x158),'ZnWZR':function(_0x4b3d06,_0xf86af2){return _0x4b3d06===_0xf86af2;},'EthSX':'cXHSk','UUZNa':_0x2b2829(0x10a),'eFrMv':_0x2b2829(0x192),'AkgiQ':function(_0x569510,_0x589dc5){return _0x569510===_0x589dc5;},'phAlA':'vfLEb','NJGlG':'WyzHP','ImNbT':function(_0x34e497,_0x3022e6){return _0x34e497>_0x3022e6;},'Urlmf':'rzpiT','wrhor':function(_0x546882,_0x25271d,_0x1c819e,_0x5f341b,_0x27de36,_0x2e46d9,_0x2b287f,_0x18cc1c){return _0x546882(_0x25271d,_0x1c819e,_0x5f341b,_0x27de36,_0x2e46d9,_0x2b287f,_0x18cc1c);},'nRUov':_0x2b2829(0x179),'DWFdf':'pre-check-cluster-args-not-passed','kdSTg':function(_0x2e8924,_0x21505f){return _0x2e8924===_0x21505f;},'vjxRc':_0x2b2829(0x183),'exjal':_0x2b2829(0x1ba),'RwMzv':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','YcYii':function(_0x2d302b,_0x3de97a,_0x1144af,_0xd1ae45,_0xb93908,_0x49429a,_0x5797f5,_0x908a9b){return _0x2d302b(_0x3de97a,_0x1144af,_0xd1ae45,_0xb93908,_0x49429a,_0x5797f5,_0x908a9b);},'sTOHd':_0x2b2829(0x13f),'hWEqZ':_0x2b2829(0x156),'Xubjw':_0x2b2829(0x136),'OrpnG':_0x2b2829(0x1de),'McPDP':_0x2b2829(0xeb),'ozWyZ':function(_0x46c4dc,_0x2f5aff,_0x212304){return _0x46c4dc(_0x2f5aff,_0x212304);},'rjChy':function(_0x2ff25c,_0x1fd6ee,_0x514740,_0x24cbc8,_0x40f413,_0x48e810){return _0x2ff25c(_0x1fd6ee,_0x514740,_0x24cbc8,_0x40f413,_0x48e810);},'tpmML':_0x2b2829(0x193),'RdIxB':_0x2b2829(0xea),'oGmem':function(_0xf50a88,_0x281d27){return _0xf50a88===_0x281d27;},'HawJO':'UdKhd','tNXRT':_0x2b2829(0x140),'IHMCf':function(_0x252b4d,_0x2c64b8){return _0x252b4d(_0x2c64b8);},'TsKWj':'LHdot','ucAgy':_0x2b2829(0x177),'mQiAl':function(_0x13f26f,_0x10f5df){return _0x13f26f!==_0x10f5df;},'KzAFR':_0x2b2829(0x133),'rhXHT':_0x2b2829(0x1a5),'ZGRKG':'Grid\x20profile\x20fetched\x20for\x20pre-check','MUhsl':function(_0x46dff2,_0x5d7dcc){return _0x46dff2===_0x5d7dcc;},'ZAIgR':_0x2b2829(0x1c6),'OsofT':_0x2b2829(0x1c5),'cdJoK':'EvTwr','iaiOm':function(_0x48f2b2,_0x2d6915,_0x2772fe,_0x2e5ecd,_0x589cca,_0x57498d,_0x43efa2,_0x3ab6c0){return _0x48f2b2(_0x2d6915,_0x2772fe,_0x2e5ecd,_0x589cca,_0x57498d,_0x43efa2,_0x3ab6c0);}};let _0x1489e9;try{if(_0x4d9490[_0x2b2829(0x12c)](_0x4d9490['nhdyy'],_0x4d9490['nhdyy']))_0x395cff['push'](_0x4d9490[_0x2b2829(0x1b5)]);else{if(_0x278d59[_0x2b2829(0x198)]||_0x278d59['cloudProvider']||_0x278d59[_0x2b2829(0xe7)]){if(_0x4d9490[_0x2b2829(0x12c)](_0x4d9490[_0x2b2829(0x1a3)],_0x4d9490[_0x2b2829(0x1a3)]))_0x2d95aa['info']('Cluster\x20`'+_0x1a1dba[_0x2b2829(0x198)]+'`\x20already\x20exists');else{const _0x463972=[];!_0x278d59[_0x2b2829(0x198)]&&(_0x4d9490[_0x2b2829(0x1ac)](_0x4d9490[_0x2b2829(0x143)],_0x4d9490[_0x2b2829(0x143)])?_0x463972[_0x2b2829(0x1d7)](_0x4d9490[_0x2b2829(0x144)]):(_0x1634cb+=_0x4d9490['TUpbG'],_0x59697e+=_0x2b2829(0x15d)+(_0xf2c3c7[_0x2b2829(0x173)]||_0x4d9490[_0x2b2829(0x122)])+'\x0a',_0x1937ea+='\x20\x20Code:\x20'+(_0x45bd23[_0x2b2829(0x161)]||_0x4d9490['rwkJH'])+'\x0a',_0x3ccb7b+='\x20\x20Stack:\x20'+(_0x566966['stack']||_0x4d9490[_0x2b2829(0x122)])+'\x0a'));;if(!_0x278d59['cloudProvider']){if(_0x4d9490[_0x2b2829(0x1ac)](_0x4d9490[_0x2b2829(0x182)],_0x4d9490[_0x2b2829(0x14b)])){const _0x318b85={};_0x318b85[_0x2b2829(0x1be)]=_0x4d9490[_0x2b2829(0x17e)],_0x318b85[_0x2b2829(0x1df)]=_0x4d9490[_0x2b2829(0x17d)];const _0x47f911={};_0x47f911[_0x2b2829(0x1be)]=_0x4d9490[_0x2b2829(0x17c)],_0x47f911[_0x2b2829(0x1df)]=_0x4d9490[_0x2b2829(0x17d)];const _0x26a1b4={};_0x26a1b4['description']=_0x4d9490[_0x2b2829(0x13a)],_0x26a1b4[_0x2b2829(0x1df)]=_0x4d9490[_0x2b2829(0x17d)];const _0xdf6e70={};_0xdf6e70[_0x2b2829(0x1be)]=_0x4d9490['gyAbS'],_0xdf6e70['type']=_0x4d9490[_0x2b2829(0x17d)];const _0x3978ab={};return _0x3978ab['cluster-name']=_0x318b85,_0x3978ab['cloud-provider']=_0x47f911,_0x3978ab['region']=_0x26a1b4,_0x3978ab[_0x2b2829(0xea)]=_0xdf6e70,_0x311883['usage'](_0x1eb5ed['pre_check'])[_0x2b2829(0x14f)](_0xc21d96)[_0x2b2829(0x1b2)](_0x3978ab)[_0x2b2829(0x153)](_0x4d9490[_0x2b2829(0x112)])[_0x2b2829(0x18c)];}else _0x463972[_0x2b2829(0x1d7)](_0x4d9490[_0x2b2829(0x1b5)]);};!_0x278d59[_0x2b2829(0xe7)]&&(_0x4d9490[_0x2b2829(0x169)](_0x4d9490[_0x2b2829(0x19a)],_0x4d9490[_0x2b2829(0x176)])?_0x3d509b['push'](_0x4d9490['TEQNS']):_0x463972[_0x2b2829(0x1d7)](_0x4d9490[_0x2b2829(0xe8)]));;_0x4d9490[_0x2b2829(0x1b0)](_0x463972[_0x2b2829(0x147)],0x0)&&(_0x4d9490['AkgiQ'](_0x4d9490[_0x2b2829(0x134)],_0x4d9490[_0x2b2829(0x134)])?(_0x1489e9=_0x2b2829(0x1c8)+_0x463972['join'](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x4d9490[_0x2b2829(0xf2)](reportToGalactusAndSendToEDS,_0x278d59,_0x37667f,_0x1489e9,messageTypes['ERROR'],_0x4d9490[_0x2b2829(0x175)],_0x4d9490['DWFdf'],_0x4d9490[_0x2b2829(0x107)]),logger[_0x2b2829(0x123)](_0x1489e9),process[_0x2b2829(0x15c)](0x1)):_0x5bbc2a+='Cluster\x20'+_0x2ff9ec[_0x2b2829(0x198)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a'),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2b2829(0x14c)](_0x278d59['cloudProvider'][_0x2b2829(0x178)]())&&(_0x4d9490[_0x2b2829(0x191)](_0x4d9490[_0x2b2829(0x152)],_0x4d9490[_0x2b2829(0x13c)])?(_0x1f3577[_0x2b2829(0x123)](_0x4d9490[_0x2b2829(0x1b3)]),_0x271446['exit'](0x1)):(_0x1489e9=_0x4d9490[_0x2b2829(0x1ad)],await _0x4d9490[_0x2b2829(0x199)](reportToGalactusAndSendToEDS,_0x278d59,_0x37667f,_0x1489e9,messageTypes['ERROR'],_0x4d9490[_0x2b2829(0x175)],_0x4d9490[_0x2b2829(0x11c)],_0x4d9490['kwEqD']),logger[_0x2b2829(0x123)](_0x1489e9),!_0x278d59[_0x2b2829(0x167)]&&(_0x4d9490[_0x2b2829(0x12c)](_0x4d9490[_0x2b2829(0xfc)],_0x4d9490[_0x2b2829(0xfc)])?(_0x26063c['info']('['+_0x10a236+_0x2b2829(0xe5)+_0x39a2d7[_0x2b2829(0x137)]+_0x2b2829(0x189)+_0x31e974[_0x2b2829(0x16e)]+'\x20error\x20:\x20'+_0x11b7ad[_0x2b2829(0x123)]),_0x26f03a[_0x2b2829(0x123)]&&_0x5b2184['error'](_0x2b2829(0x149)+_0x456582[_0x2b2829(0x123)][_0x2b2829(0x1b4)])):(logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x278d59[_0x2b2829(0x167)]=DEFAULT_CLUSTER_DETAILS[_0x2b2829(0x160)])))),global_registry['clusterName']=_0x278d59['clusterName'],global_registry[_0x2b2829(0x167)]=_0x278d59[_0x2b2829(0x167)],global_registry[_0x2b2829(0x19f)]=_0x278d59[_0x2b2829(0xe7)];}}else{if(_0x278d59[_0x2b2829(0x14d)]){if(_0x4d9490[_0x2b2829(0x12c)](_0x4d9490[_0x2b2829(0x18a)],_0x4d9490[_0x2b2829(0xec)])){global_registry[_0x2b2829(0x14d)]=_0x278d59['gridProfile'],logger['debug']('grid\x20profile\x20flow\x20'+_0x278d59[_0x2b2829(0x14d)]);const _0x1298f5=_0x2b2829(0x104)+AG_API_URL+_0x2b2829(0x146),_0x2b989e={};_0x2b989e[_0x2b2829(0x1d2)]=_0x4d9490['McPDP'],_0x2b989e[_0x2b2829(0x1b8)]=global_registry[_0x2b2829(0xf1)],_0x2b989e[_0x2b2829(0x11e)]=![];const _0xc5077c=_0x2b989e,_0x409c35=await _0x4d9490[_0x2b2829(0xef)](got,_0x1298f5,_0xc5077c),_0x1ce64a=await _0x4d9490[_0x2b2829(0x125)](responseValidation,_0x409c35,_0x4d9490[_0x2b2829(0x196)],_0x4d9490[_0x2b2829(0x17f)],_0x278d59,_0x37667f);let _0x43c868={};if(_0x4d9490[_0x2b2829(0x1ac)](_0x1ce64a,0xc8)){if(_0x4d9490[_0x2b2829(0x16a)](_0x4d9490[_0x2b2829(0xe6)],_0x4d9490[_0x2b2829(0x19c)])){const _0xa82b02={};_0xa82b02[_0x2b2829(0x1df)]=_0xaeb36a['LOG'],_0xa82b02[_0x2b2829(0x173)]=_0x257aa3,_0x465b37[_0x2b2829(0xf7)](_0x3f69d3,_0xa82b02,_0x4d9490[_0x2b2829(0x107)],!![]);}else{const _0x1a2621=JSON[_0x2b2829(0x1cd)](_0x409c35[_0x2b2829(0x115)]),_0x4b3e3a=_0x1a2621[_0x2b2829(0x17b)](_0x2b7133=>_0x2b7133['name']===_0x278d59['gridProfile'])||null;_0x4d9490[_0x2b2829(0x18e)](isUndefined,_0x4b3e3a)?_0x4d9490['ZnWZR'](_0x4d9490[_0x2b2829(0x128)],_0x4d9490[_0x2b2829(0x128)])?(_0x1489e9=_0x2b2829(0x1c0)+_0x278d59[_0x2b2829(0x14d)]+_0x2b2829(0xed),await _0x4d9490['wrhor'](reportToGalactusAndSendToEDS,_0x278d59,_0x37667f,_0x1489e9,messageTypes[_0x2b2829(0x1dd)],_0x4d9490[_0x2b2829(0x175)],_0x4d9490[_0x2b2829(0x18d)],_0x4d9490[_0x2b2829(0x107)]),logger[_0x2b2829(0x123)](_0x1489e9),process[_0x2b2829(0x15c)](0x1)):_0xe5c165[_0x2b2829(0x15c)](0x1):_0x4d9490[_0x2b2829(0x132)](_0x4d9490['KzAFR'],_0x4d9490[_0x2b2829(0x181)])?(_0x8815be[_0x2b2829(0x105)](_0x2b2829(0x1ab)+_0x4eb80c[_0x2b2829(0x160)]+'\x20'),_0x302eae[_0x2b2829(0x167)]=_0x2f15ed['CLOUD_PROVIDER']):_0x43c868=_0x4b3e3a;}}else _0x4d9490[_0x2b2829(0x169)](_0x4d9490[_0x2b2829(0x10d)],_0x4d9490[_0x2b2829(0x10d)])?process[_0x2b2829(0x15c)](0x1):_0x5cc470[_0x2b2829(0x123)]('error\x20stack\x20:\x20'+_0x568abe['error'][_0x2b2829(0x1b4)]);const _0x1d470c={};_0x1d470c[_0x2b2829(0x1df)]=WS_EVENTS[_0x2b2829(0x103)],_0x1d470c[_0x2b2829(0x173)]=_0x4d9490[_0x2b2829(0x1bc)],webSocketUtils[_0x2b2829(0xf7)](_0x37667f,_0x1d470c),global_registry[_0x2b2829(0x167)]=_0x43c868[_0x2b2829(0x167)],global_registry[_0x2b2829(0x19f)]=_0x43c868[_0x2b2829(0xe7)],global_registry[_0x2b2829(0x198)]=_0x43c868[_0x2b2829(0x198)];}else _0x10287f[_0x2b2829(0x1d7)](_0x4d9490['qzyGn']);}else{if(_0x4d9490[_0x2b2829(0x101)](_0x4d9490[_0x2b2829(0x148)],_0x4d9490[_0x2b2829(0x148)]))logger[_0x2b2829(0x123)](_0x4d9490[_0x2b2829(0x1b3)]),process[_0x2b2829(0x15c)](0x1);else{const {header:_0xe54955,response:_0x2b9a10}=_0x4a4302,{status:_0x2be518,data:_0x2a2824,error:_0x2d5f8a}=_0x2b9a10;_0x163d51+=_0xe54955+'\x20#'+_0x4d9490[_0x2b2829(0x111)](_0x2aa579,0x1)+'\x0a',_0x46fd04+=_0x2b2829(0x1b6)+(_0x2be518?_0x4d9490[_0x2b2829(0x13d)]:_0x4d9490['kJhVF'])+'\x0a',_0x428117+=_0x2b2829(0x1db)+_0x4d9490[_0x2b2829(0x1c9)](_0x2a2824,_0x4d9490[_0x2b2829(0x122)])+'\x0a',_0x2d5f8a&&(_0x34b4af+=_0x4d9490['TUpbG'],_0x3032a3+=_0x2b2829(0x15d)+(_0x2d5f8a['message']||_0x4d9490[_0x2b2829(0x122)])+'\x0a',_0xe649e1+=_0x2b2829(0x164)+(_0x2d5f8a[_0x2b2829(0x161)]||_0x4d9490[_0x2b2829(0x122)])+'\x0a',_0x4620c5+='\x20\x20Stack:\x20'+(_0x2d5f8a['stack']||_0x4d9490[_0x2b2829(0x122)])+'\x0a'),_0x1671d7+='\x0a\x0a';}}}}}catch(_0x621f51){_0x4d9490[_0x2b2829(0x12c)](_0x4d9490[_0x2b2829(0x116)],_0x4d9490['cdJoK'])?(_0x1489e9=_0x2b2829(0xff)+_0x621f51+':\x20'+_0x621f51[_0x2b2829(0x1b4)],logger[_0x2b2829(0x123)](_0x1489e9),await _0x4d9490[_0x2b2829(0x1a6)](reportToGalactusAndSendToEDS,_0x278d59,_0x37667f,_0x1489e9,messageTypes[_0x2b2829(0x1dd)],_0x4d9490[_0x2b2829(0x175)],_0x4d9490[_0x2b2829(0x11c)],_0x4d9490['kwEqD']),process[_0x2b2829(0x15c)](0x1)):_0x477ee6=_0x2e43af;}}function printResponse(_0x21e43e,_0x434dc4){const _0x48b596=a17_0x1c79a2,_0x5c34c8={};_0x5c34c8['BnlXe']=_0x48b596(0xe9),_0x5c34c8['BtDqt']='will\x20be\x20created',_0x5c34c8[_0x48b596(0x130)]=function(_0x7f566f,_0x1aa0d1){return _0x7f566f!==_0x1aa0d1;},_0x5c34c8[_0x48b596(0x170)]='maRiw',_0x5c34c8[_0x48b596(0x12f)]=_0x48b596(0x108);const _0x38cbd0=_0x5c34c8;logger[_0x48b596(0x105)]('['+_0x21e43e+_0x48b596(0xe5)+_0x434dc4[_0x48b596(0x137)]+_0x48b596(0x189)+_0x434dc4['data']+_0x48b596(0x126)+_0x434dc4[_0x48b596(0x123)]),_0x434dc4['error']&&(_0x38cbd0[_0x48b596(0x130)](_0x38cbd0['iQSZv'],_0x38cbd0['twtAN'])?logger[_0x48b596(0x123)](_0x48b596(0x149)+_0x434dc4[_0x48b596(0x123)][_0x48b596(0x1b4)]):_0x38575d+=_0x48b596(0x14e)+_0x5ad013['clusterName']+'\x20'+(_0x4f26c0?_0x38cbd0[_0x48b596(0x1b1)]:_0x38cbd0[_0x48b596(0xe4)])+'\x0a\x0a');}async function generateReport(_0xd5962f,_0x241e2c){const _0xe1ffcb=a17_0x1c79a2,_0x5479da={'hthpJ':function(_0x827241,_0x3f11e1){return _0x827241+_0x3f11e1;},'RMfYg':'Success','QwIwC':_0xe1ffcb(0x185),'aoFqI':function(_0x9a1137,_0x58611f){return _0x9a1137||_0x58611f;},'EMVhJ':_0xe1ffcb(0x1a4),'ZAaiZ':_0xe1ffcb(0x1c7),'QAgHV':'Cluster\x20details\x0a-----------------------\x0a','gbcxu':function(_0x313177,_0x1dd5e1){return _0x313177!=_0x1dd5e1;},'pKXXw':_0xe1ffcb(0xe9),'yCWlk':'will\x20be\x20created','EIBXj':function(_0x45f40d){return _0x45f40d();}};let _0x2fc199=_0xe1ffcb(0x1a1)+global_registry[_0xe1ffcb(0x167)]+'\x20===\x0a\x0a';return _0xd5962f[_0xe1ffcb(0x19b)]((_0x3b48e5,_0x2a2165)=>{const _0x4f5944=_0xe1ffcb,{header:_0xa1b5cc,response:_0x2570c4}=_0x3b48e5,{status:_0x18c016,data:_0x57ae5f,error:_0x3b1d8a}=_0x2570c4;_0x2fc199+=_0xa1b5cc+'\x20#'+_0x5479da['hthpJ'](_0x2a2165,0x1)+'\x0a',_0x2fc199+='Status:\x20'+(_0x18c016?_0x5479da[_0x4f5944(0x19d)]:_0x5479da[_0x4f5944(0x10b)])+'\x0a',_0x2fc199+=_0x4f5944(0x1db)+_0x5479da[_0x4f5944(0x18b)](_0x57ae5f,_0x5479da['EMVhJ'])+'\x0a',_0x3b1d8a&&(_0x2fc199+=_0x5479da[_0x4f5944(0x100)],_0x2fc199+=_0x4f5944(0x15d)+(_0x3b1d8a[_0x4f5944(0x173)]||_0x5479da[_0x4f5944(0xf9)])+'\x0a',_0x2fc199+=_0x4f5944(0x164)+(_0x3b1d8a[_0x4f5944(0x161)]||_0x5479da['EMVhJ'])+'\x0a',_0x2fc199+='\x20\x20Stack:\x20'+(_0x3b1d8a[_0x4f5944(0x1b4)]||_0x5479da[_0x4f5944(0xf9)])+'\x0a'),_0x2fc199+='\x0a\x0a';}),_0x2fc199+=_0x5479da[_0xe1ffcb(0x1d3)],_0x5479da[_0xe1ffcb(0x1a2)](_0x241e2c,null)?_0x2fc199+=_0xe1ffcb(0x14e)+global_registry[_0xe1ffcb(0x198)]+'\x20'+(_0x241e2c?_0x5479da[_0xe1ffcb(0xe3)]:_0x5479da[_0xe1ffcb(0x1cc)])+'\x0a\x0a':_0x2fc199+=_0xe1ffcb(0x14e)+global_registry[_0xe1ffcb(0x198)]+_0xe1ffcb(0x129),_0x2fc199+=_0x5479da[_0xe1ffcb(0x16c)](getSystemMetaData),_0x2fc199;}function a17_0x4c9c(_0x324441,_0x2f6b7c){const _0x59d140=a17_0x59d1();return a17_0x4c9c=function(_0x4c9c6f,_0x1fc4e2){_0x4c9c6f=_0x4c9c6f-0xe3;let _0x420d0b=_0x59d140[_0x4c9c6f];return _0x420d0b;},a17_0x4c9c(_0x324441,_0x2f6b7c);};function a17_0x59d1(){const _0xe6ddb5=['QwIwC','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rhXHT','../../utils/webSocketUtils','xwHMf','cloud-provider','LOIuH','YxlIC','jppHA','SSL\x20Configured','body','OsofT','pre_check','woHmp','toolInstalledResp','bXcFb','header','sTOHd','bJIRL','throwHttpErrors','FCvLY','Whitelisted\x20browserstack','uuid','rwkJH','error','stringify','rjChy','\x20error\x20:\x20','log/report_','TsKWj','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','INFO','GRdAQ','KYtII','76QVShIS','init','twtAN','PDDYc','hzENY','mQiAl','zOyfp','Urlmf','BlRMT','wGvGv','status','Failed\x20in\x20pre-check!\x20Error:\x20','968226GwoDRm','VrcMU','ERLtA','exjal','QzrGd','WebSocket','cloud-provider-not-supported','MIiYd','connectionTimeout','zDkEx','EthSX','qzyGn','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','/packages/cli/get-all-grid-profiles','length','ZAIgR','error\x20stack\x20:\x20','xoHve','eFrMv','includes','gridProfile','Cluster\x20','epilogue','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','getUTCFullYear','vjxRc','help','3164192AhArnR','IHnzd','rGwhD','../../config/logger','QJEAA','pre-check-failed','yeAbx','\x20region\x20-\x20','exit','\x20\x20Message:\x20','xfxcQ','bstackAccesskey','CLOUD_PROVIDER','code','debug','isCliToolInstalled','\x20\x20Code:\x20','0|3|2|1|4','cluster-check-failed-','cloudProvider','desc','AkgiQ','oGmem','BUOMw','EIBXj','delay','data','bstackUsername','iQSZv','../../utils/utilityMethods','response','message','isTls1_2_SUPPORTED','nRUov','NJGlG','pre-check-grid-profile-empty','toLowerCase','pre-check-grid-called','replace','find','Onsbg','sVXYz','RMXdR','RdIxB','unable\x20to\x20verify\x20if\x20cluster\x20`','KzAFR','UUZNa','WKGUX','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Failure','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','NDukm','builder','\x20data\x20:\x20','Xubjw','aoFqI','argv','ucAgy','IHMCf','readFileSync','isTrialGridAccessible','kdSTg','aNVkg','pre-check','existsSync','usage','tpmML','password','clusterName','YcYii','phAlA','forEach','tNXRT','RMfYg','dummy-grid','clusterRegion','getUTCMonth','===\x20Precheck\x20Report\x20-\x20','gbcxu','WlsEu','N/A','nHEPU','iaiOm','.txt','YIUKr','2144793BzCYxr','`\x20is\x20present\x20in\x20region\x20`','Setting\x20cloud\x20provider\x20as\x20','ZnWZR','RwMzv','reconnecting-websocket','`\x20already\x20exists','ImNbT','BnlXe','options','kqaoa','stack','xOAvd','Status:\x20','nTEOS','headers','90252ONmwqT','vzHwA','username','ZGRKG','dsAvd','description','split','Invalid\x20input.\x20grid\x20profiles:\x20','credential-not-found','Tool\x20Installed','utf-8','6xVPgaO','ARUgG','MBCNo','Error\x20Details:\x0a','Missing\x20required\x20arguments:\x20','RqaqW','grid','requestId','yCWlk','parse','Browserstack','VVIwq','writeFileSync','85005FrbaAq','method','QAgHV','accessResp','TLSv1_2_client_method','apwox','push','BEVeK','isClusterPresent','stack\x20trace\x20','Message:\x20','27651wvswZg','ERROR','ELXRd','type','pKXXw','BtDqt',']\x20status\x20:\x20','HawJO','region','TEQNS','is\x20already\x20present','grid-profile','GET','OrpnG','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','RvlnQ','ozWyZ','1897145SWIdLQ','authHeader','wrhor','MTDqG','EcLWN','YwXjS','../../utils/instrumentationUtils','sendEventToBackend','LsmyP','EMVhJ','Hswyn','handler','hWEqZ','../../cloudproviders/utils','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','ZAaiZ','MUhsl','cCdqP','LOG','https://','info','Cluster\x20`','kwEqD','DPodn','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','hcFid'];a17_0x59d1=function(){return _0xe6ddb5;};return a17_0x59d1();}exports[a17_0x1c79a2(0xfb)]=async function(_0x55a9a8){const _0x50a043=a17_0x1c79a2,_0x4f8435={'nTEOS':function(_0x4bc10e){return _0x4bc10e();},'bXcFb':function(_0x187b9c){return _0x187b9c();},'uVITc':_0x50a043(0x10c),'EcLWN':function(_0x184962,_0x595ae7,_0x4979b4,_0x567cd9,_0x59607e,_0x184a46,_0x4c4a93,_0x1cdd48){return _0x184962(_0x595ae7,_0x4979b4,_0x567cd9,_0x59607e,_0x184a46,_0x4c4a93,_0x1cdd48);},'xfxcQ':_0x50a043(0x179),'MTDqG':_0x50a043(0x1c1),'dsAvd':_0x50a043(0x123),'Hswyn':function(_0x2420bd,_0x3e82f0,_0x47452d,_0x153968,_0x5ecb41,_0x3062d5,_0x28a1f6){return _0x2420bd(_0x3e82f0,_0x47452d,_0x153968,_0x5ecb41,_0x3062d5,_0x28a1f6);},'waWxP':function(_0xbb3d2f){return _0xbb3d2f();},'Vgoet':'<UsernamePlaceholder>','LsmyP':'<PasswordPlaceholder>','bJIRL':function(_0x860261,_0xa2d30b,_0x13289c){return _0x860261(_0xa2d30b,_0x13289c);},'YIUKr':function(_0x34ab1a,_0x15b237,_0x2b5c2e){return _0x34ab1a(_0x15b237,_0x2b5c2e);},'yeAbx':_0x50a043(0x19e),'YwXjS':_0x50a043(0x119),'HiWEA':_0x50a043(0x165),'RvlnQ':function(_0x4e41ef,_0x14f4b5,_0x4d2f5d){return _0x4e41ef(_0x14f4b5,_0x4d2f5d);},'FCvLY':_0x50a043(0x1d4),'NDukm':_0x50a043(0x190),'OSZKs':function(_0x10f54d,_0x20844e){return _0x10f54d(_0x20844e);},'xoHve':_0x50a043(0x1d5),'VVIwq':function(_0x1249e7,_0x3d439e,_0x2f59d){return _0x1249e7(_0x3d439e,_0x2f59d);},'zDkEx':_0x50a043(0x174),'BlRMT':_0x50a043(0x1c2),'GRdAQ':'User\x20Access','EOSVX':_0x50a043(0x120),'cCdqP':_0x50a043(0x114),'woHmp':function(_0x34c0cc,_0x4ab1bd){return _0x34c0cc+_0x4ab1bd;},'BUOMw':_0x50a043(0x1c3),'hEsAq':_0x50a043(0x159)};let _0x408c6b,_0x133635;try{global_registry[_0x50a043(0x1cb)]=_0x4f8435[_0x50a043(0x1b7)](uuidv4);!fs[_0x50a043(0x194)](_0x4f8435[_0x50a043(0x11a)](getCredentialsPath))&&(_0x133635=_0x4f8435['uVITc'],logger[_0x50a043(0x123)](_0x133635),await _0x4f8435[_0x50a043(0xf4)](reportToGalactusAndSendToEDS,_0x55a9a8,_0x408c6b,_0x133635,messageTypes[_0x50a043(0x1dd)],_0x4f8435[_0x50a043(0x15e)],_0x4f8435[_0x50a043(0xf3)],_0x4f8435[_0x50a043(0x1bd)]),process[_0x50a043(0x15c)](0x1));_0x4f8435[_0x50a043(0xfa)](sendInstrumentationEvent,_0x55a9a8,_0x4f8435[_0x50a043(0x15e)],messageTypes[_0x50a043(0x12a)],null,null,_0x55a9a8);const _0x4393be=JSON['parse'](fs[_0x50a043(0x18f)](_0x4f8435['waWxP'](getCredentialsPath)));global_registry[_0x50a043(0x16f)]=_0x4393be['Browserstack'][_0x50a043(0x1bb)],global_registry[_0x50a043(0x15f)]=_0x4393be[_0x50a043(0x1ce)][_0x50a043(0x197)];const _0x50381b=WS_ENDPOINT[_0x50a043(0x17a)](_0x4f8435['Vgoet'],_0x4393be['Browserstack']['username'])['replace'](_0x4f8435[_0x50a043(0xf8)],_0x4393be[_0x50a043(0x1ce)][_0x50a043(0x197)]),_0x209178={};_0x209178[_0x50a043(0x13e)]=ws,_0x209178[_0x50a043(0x141)]=0x36ee80,_0x408c6b=new ReconnectingWebSocket(_0x50381b,[],_0x209178),global_registry[_0x50a043(0xf1)]=_0x4f8435[_0x50a043(0x11d)](getAuthHeader,global_registry[_0x50a043(0x16f)],global_registry[_0x50a043(0x15f)]),await _0x4f8435[_0x50a043(0x1a8)](inputValidation,_0x55a9a8,_0x408c6b),logger['info'](_0x50a043(0xfe)+global_registry[_0x50a043(0x167)]+_0x50a043(0x15b)+global_registry[_0x50a043(0x19f)]);let _0x25d66e=await _0x4f8435['Hswyn'](getCloudProviderObjectWithOutInit,global_registry[_0x50a043(0x167)],global_registry[_0x50a043(0x198)],_0x4f8435[_0x50a043(0x15a)],_0x408c6b,webSocketUtils,_0x55a9a8);const _0x4fdf91=await _0x25d66e[_0x50a043(0x163)]();_0x4f8435['bJIRL'](printResponse,_0x4f8435[_0x50a043(0xf5)],_0x4fdf91),_0x25d66e=await _0x25d66e[_0x50a043(0x12e)]();let _0x58a3ae=![];try{_0x58a3ae=await _0x25d66e[_0x50a043(0x1d9)]();}catch(_0x5c0151){const _0x212714=_0x4f8435['HiWEA'][_0x50a043(0x1bf)]('|');let _0x9057a7=0x0;while(!![]){switch(_0x212714[_0x9057a7++]){case'0':_0x133635=_0x50a043(0x180)+global_registry[_0x50a043(0x198)]+_0x50a043(0x1aa)+global_registry[_0x50a043(0x19f)]+'`\x20,error\x20:\x20'+_0x5c0151;continue;case'1':_0x133635+='\x0a'+JSON['stringify'](_0x5c0151[_0x50a043(0x1b4)]);continue;case'2':logger[_0x50a043(0x123)](_0x133635);continue;case'3':_0x58a3ae=null;continue;case'4':await _0x4f8435['EcLWN'](reportToGalactusAndSendToEDS,_0x55a9a8,_0x408c6b,_0x133635,messageTypes[_0x50a043(0x1dd)],_0x4f8435[_0x50a043(0x15e)],_0x50a043(0x166)+global_registry['cloudProvider'],_0x4f8435[_0x50a043(0x1bd)]);continue;}break;}}_0x58a3ae&&logger[_0x50a043(0x105)](_0x50a043(0x106)+global_registry[_0x50a043(0x198)]+_0x50a043(0x1af));const _0xbff7d8=await _0x25d66e['checkAccess']();_0x4f8435[_0x50a043(0xee)](printResponse,_0x4f8435[_0x50a043(0x11f)],_0xbff7d8);const _0x5da4cd=await _0x4f8435['bXcFb'](curlRequest);_0x4f8435[_0x50a043(0xee)](printResponse,_0x4f8435[_0x50a043(0x187)],_0x5da4cd);const _0x224be5=await _0x4f8435['OSZKs'](isTlsSupported,_0x4f8435[_0x50a043(0x14a)]);_0x4f8435[_0x50a043(0x1cf)](printResponse,_0x4f8435[_0x50a043(0x142)],_0x224be5);const _0x5ad1ce={};_0x5ad1ce[_0x50a043(0x11b)]=_0x4f8435[_0x50a043(0x135)],_0x5ad1ce[_0x50a043(0x172)]=_0x4fdf91;const _0x20e329={};_0x20e329[_0x50a043(0x11b)]=_0x4f8435[_0x50a043(0x12b)],_0x20e329['response']=_0xbff7d8;const _0x32898a={};_0x32898a[_0x50a043(0x11b)]=_0x4f8435['EOSVX'],_0x32898a[_0x50a043(0x172)]=_0x5da4cd;const _0x80ff23={};_0x80ff23['header']=_0x4f8435[_0x50a043(0x102)],_0x80ff23[_0x50a043(0x172)]=_0x224be5;const _0xeaf503=[_0x5ad1ce,_0x20e329,_0x32898a,_0x80ff23],_0x2464a4=await _0x4f8435[_0x50a043(0x11d)](generateReport,_0xeaf503,_0x58a3ae),_0x312c20=new Date(),_0x4b7be8=_0x312c20[_0x50a043(0x151)]()+'_'+_0x4f8435[_0x50a043(0x118)](_0x312c20[_0x50a043(0x1a0)](),0x1)+'_'+_0x312c20['getUTCDate']()+'_'+_0x312c20['getUTCHours']()+'_'+_0x312c20['getUTCMinutes'](),_0x2e8c56=_0x50a043(0x127)+_0x4b7be8+_0x50a043(0x1a7);fs[_0x50a043(0x1d0)](_0x2e8c56,_0x2464a4,_0x4f8435[_0x50a043(0x16b)]),logger[_0x50a043(0x105)]('Report\x20saved\x20in\x20'+_0x2e8c56),process[_0x50a043(0x15c)](0x0);}catch(_0x7bde0d){let _0x5d0acb=_0x50a043(0x138)+_0x7bde0d+'\x20';logger['error'](_0x5d0acb),_0x5d0acb+='\x0a'+JSON[_0x50a043(0x124)](_0x7bde0d[_0x50a043(0x1b4)]),logger[_0x50a043(0x162)](_0x50a043(0x1da)+_0x7bde0d[_0x50a043(0x1b4)]);if(_0x408c6b){const _0x12835c={};_0x12835c[_0x50a043(0x1df)]=WS_EVENTS[_0x50a043(0x103)],_0x12835c[_0x50a043(0x173)]=_0x5d0acb,webSocketUtils[_0x50a043(0xf7)](_0x408c6b,_0x12835c,_0x4f8435[_0x50a043(0x1bd)],!![]);}await webSocketUtils[_0x50a043(0x16d)](0x7d0);const _0x48d931={};_0x48d931[_0x50a043(0x123)]=_0x5d0acb,await _0x4f8435[_0x50a043(0xfa)](sendInstrumentationEvent,_0x55a9a8,_0x4f8435[_0x50a043(0x15e)],messageTypes[_0x50a043(0x1dd)],_0x4f8435['hEsAq'],_0x48d931,_0x55a9a8),process['exit'](0x1);}};
1
+ const a17_0x21cb24=a17_0x2c0a;(function(_0x475d15,_0x297d64){const _0x5e0f93=a17_0x2c0a,_0x4164ff=_0x475d15();while(!![]){try{const _0x52c6e0=parseInt(_0x5e0f93(0x189))/0x1+-parseInt(_0x5e0f93(0x19b))/0x2+parseInt(_0x5e0f93(0x123))/0x3+parseInt(_0x5e0f93(0x1c9))/0x4*(-parseInt(_0x5e0f93(0x13d))/0x5)+parseInt(_0x5e0f93(0x1e4))/0x6+parseInt(_0x5e0f93(0x148))/0x7+-parseInt(_0x5e0f93(0x1d8))/0x8;if(_0x52c6e0===_0x297d64)break;else _0x4164ff['push'](_0x4164ff['shift']());}catch(_0x41693c){_0x4164ff['push'](_0x4164ff['shift']());}}}(a17_0x231c,0x2fdf0));const fs=require('fs'),ws=require('ws'),got=require(a17_0x21cb24(0x203)),{v4:uuidv4}=require(a17_0x21cb24(0x1c3)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x21cb24(0x1b9)),{getCloudProviderObjectWithOutInit}=require(a17_0x21cb24(0x132)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x21cb24(0x108)]=a17_0x21cb24(0x14a),exports['desc']=a17_0x21cb24(0x147),exports[a17_0x21cb24(0x12d)]=function(_0x488722){const _0x130171=a17_0x21cb24,_0x2ac674={};_0x2ac674['OMDhS']=_0x130171(0x106),_0x2ac674['BpBqd']='string',_0x2ac674['RRJeE']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2ac674[_0x130171(0x1c2)]=_0x130171(0x139),_0x2ac674[_0x130171(0x201)]=_0x130171(0x1bc),_0x2ac674[_0x130171(0x112)]=_0x130171(0x1da);const _0x1b033d=_0x2ac674,_0x333433={};_0x333433['description']=_0x1b033d['OMDhS'],_0x333433[_0x130171(0x170)]=_0x1b033d[_0x130171(0x152)];const _0x203cca={};_0x203cca[_0x130171(0x1c4)]=_0x1b033d[_0x130171(0x166)],_0x203cca[_0x130171(0x170)]=_0x1b033d['BpBqd'];const _0x2e573e={};_0x2e573e[_0x130171(0x1c4)]=_0x1b033d[_0x130171(0x1c2)],_0x2e573e['type']=_0x1b033d[_0x130171(0x152)];const _0xc10a21={};_0xc10a21[_0x130171(0x1c4)]=_0x1b033d['htyQp'],_0xc10a21['type']=_0x1b033d['BpBqd'];const _0x379039={};return _0x379039[_0x130171(0x167)]=_0x333433,_0x379039[_0x130171(0x184)]=_0x203cca,_0x379039['region']=_0x2e573e,_0x379039[_0x130171(0x1af)]=_0xc10a21,_0x488722['usage'](HELP_HEADER_MESSAGE[_0x130171(0x143)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x130171(0x168)](_0x379039)[_0x130171(0x1da)](_0x1b033d['FXBvs'])['argv'];};async function inputValidation(_0x44b505,_0x2fa191){const _0x3c8a5e=a17_0x21cb24,_0x27142b={'PDtax':_0x3c8a5e(0x167),'sCkeL':_0x3c8a5e(0x106),'iXzHq':_0x3c8a5e(0x1f6),'oPTAS':_0x3c8a5e(0x1c0),'ihiPs':_0x3c8a5e(0x139),'yCXSh':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','JnOhe':'help','ORgsF':'error','YgPqD':_0x3c8a5e(0x171),'RUOZP':_0x3c8a5e(0x184),'bNHSI':'is\x20already\x20present','OHSlD':'will\x20be\x20created','vkLiy':_0x3c8a5e(0x121),'cGbkT':_0x3c8a5e(0x158),'tsckX':_0x3c8a5e(0x15d),'MsYMP':function(_0x3aec17,_0x3d7f04){return _0x3aec17+_0x3d7f04;},'fPWwU':_0x3c8a5e(0x205),'ToFPo':_0x3c8a5e(0x1f1),'zebEH':function(_0x27c190,_0x266609){return _0x27c190||_0x266609;},'ZHlNf':function(_0xe10f62,_0x50a778){return _0xe10f62===_0x50a778;},'UupRK':_0x3c8a5e(0x122),'tFgBN':_0x3c8a5e(0x105),'wYsEB':function(_0x344685,_0x39bbe7){return _0x344685!==_0x39bbe7;},'JIQHv':'ijuxH','jhctB':function(_0x2b90c7,_0x5ead75){return _0x2b90c7===_0x5ead75;},'pnfAG':_0x3c8a5e(0x1f2),'BzPXt':_0x3c8a5e(0x179),'BvpcE':_0x3c8a5e(0x1b2),'LZPGi':function(_0x45813c,_0x334912){return _0x45813c!==_0x334912;},'qTUJu':_0x3c8a5e(0x18b),'sOZuJ':_0x3c8a5e(0x19e),'KmapL':function(_0x46dff7,_0x178df7){return _0x46dff7>_0x178df7;},'vWBAK':_0x3c8a5e(0x1a3),'SYVYS':_0x3c8a5e(0x15a),'KDWcq':function(_0x522142,_0x1e7e71,_0x374a39,_0x227a66,_0x4f6d59,_0x4df007,_0x157964,_0xc232c3){return _0x522142(_0x1e7e71,_0x374a39,_0x227a66,_0x4f6d59,_0x4df007,_0x157964,_0xc232c3);},'UjTHO':'pre-check-grid-called','slOYS':_0x3c8a5e(0x204),'QOMrx':function(_0x561502,_0x13964e){return _0x561502!==_0x13964e;},'sIVin':_0x3c8a5e(0x186),'RZRfK':_0x3c8a5e(0x13e),'WrKYt':function(_0x192628,_0x306bc8,_0x47a804,_0x22617a,_0x28c01d,_0x412e4e,_0x81497b,_0x25e65c){return _0x192628(_0x306bc8,_0x47a804,_0x22617a,_0x28c01d,_0x412e4e,_0x81497b,_0x25e65c);},'DVEsC':_0x3c8a5e(0x1f8),'lAwFD':function(_0x1a823f,_0x39c688){return _0x1a823f===_0x39c688;},'npWmn':_0x3c8a5e(0x137),'NjlZD':_0x3c8a5e(0x195),'vYycc':function(_0x41a0e5,_0x4c787d){return _0x41a0e5===_0x4c787d;},'pIXgW':_0x3c8a5e(0x120),'UqRFZ':_0x3c8a5e(0x1cd),'UMvTR':function(_0x55a9d9,_0x2348c0,_0x230869){return _0x55a9d9(_0x2348c0,_0x230869);},'SuDiG':function(_0x1cf28c,_0x1481e2,_0x24bbe0,_0x43583c,_0x1bba61,_0x4cf6e7){return _0x1cf28c(_0x1481e2,_0x24bbe0,_0x43583c,_0x1bba61,_0x4cf6e7);},'zYALl':'pre-check','NRZwJ':_0x3c8a5e(0x1af),'lYnfe':function(_0xcd730b,_0x4f18a3){return _0xcd730b!==_0x4f18a3;},'NPrSv':'tdgxM','KiRwR':function(_0x2085dc,_0x10a5e5){return _0x2085dc(_0x10a5e5);},'Rcbpc':function(_0x4b21be,_0x1be5af){return _0x4b21be===_0x1be5af;},'ZTrvU':'TPLkM','ZtQqy':_0x3c8a5e(0x1e3),'lbHHm':function(_0x183390,_0x2f6aac){return _0x183390===_0x2f6aac;},'PKaEZ':_0x3c8a5e(0x176),'EvMPj':'TWssr','QoxPo':_0x3c8a5e(0x14d),'IyCgZ':_0x3c8a5e(0x174),'AJprn':_0x3c8a5e(0xff),'BIPqK':'YzXZy','DNasr':function(_0x3f059f,_0x405ae9){return _0x3f059f===_0x405ae9;},'zQinc':_0x3c8a5e(0x1a2),'BwfgK':_0x3c8a5e(0x116),'bJDwT':function(_0xbd4067,_0x38341f,_0x481abf,_0x63495,_0x25b62a,_0x1714aa,_0x1f55e8,_0x1e7652){return _0xbd4067(_0x38341f,_0x481abf,_0x63495,_0x25b62a,_0x1714aa,_0x1f55e8,_0x1e7652);}};let _0x1e9a8a;try{if(_0x27142b[_0x3c8a5e(0x12c)](_0x27142b[_0x3c8a5e(0x1f5)],_0x27142b[_0x3c8a5e(0x1a1)]))_0x366839[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0xfc)]);else{if(_0x44b505[_0x3c8a5e(0x1e7)]||_0x44b505['cloudProvider']||_0x44b505[_0x3c8a5e(0x171)]){if(_0x27142b['wYsEB'](_0x27142b[_0x3c8a5e(0x1e2)],_0x27142b['JIQHv'])){const _0x58890e={};_0x58890e[_0x3c8a5e(0x1c4)]=_0x27142b[_0x3c8a5e(0x1b4)],_0x58890e[_0x3c8a5e(0x170)]=_0x27142b[_0x3c8a5e(0x1c6)];const _0x43918e={};_0x43918e['description']=_0x27142b[_0x3c8a5e(0x1c8)],_0x43918e[_0x3c8a5e(0x170)]=_0x27142b[_0x3c8a5e(0x1c6)];const _0x923d19={};_0x923d19[_0x3c8a5e(0x1c4)]=_0x27142b[_0x3c8a5e(0x1ad)],_0x923d19['type']=_0x27142b[_0x3c8a5e(0x1c6)];const _0x404a91={};_0x404a91[_0x3c8a5e(0x1c4)]=_0x27142b['yCXSh'],_0x404a91[_0x3c8a5e(0x170)]=_0x27142b['iXzHq'];const _0x5533bc={};return _0x5533bc['cluster-name']=_0x58890e,_0x5533bc[_0x3c8a5e(0x184)]=_0x43918e,_0x5533bc[_0x3c8a5e(0x171)]=_0x923d19,_0x5533bc[_0x3c8a5e(0x1af)]=_0x404a91,_0x2c8e91['usage'](_0xf2e350[_0x3c8a5e(0x143)])[_0x3c8a5e(0x135)](_0x4b62d2)['options'](_0x5533bc)[_0x3c8a5e(0x1da)](_0x27142b['JnOhe'])[_0x3c8a5e(0x16a)];}else{const _0x4a941c=[];if(!_0x44b505[_0x3c8a5e(0x1e7)]){if(_0x27142b[_0x3c8a5e(0x103)](_0x27142b['pnfAG'],_0x27142b[_0x3c8a5e(0x1fe)]))_0x4a941c[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0xfc)]);else{const _0x38fb14={};_0x38fb14[_0x3c8a5e(0x170)]=_0x414cfd[_0x3c8a5e(0x111)],_0x38fb14['message']=_0x248690,_0x4ea18a['sendEventToBackend'](_0x5ba51a,_0x38fb14,_0x27142b[_0x3c8a5e(0x1b7)],!![]);}};!_0x44b505[_0x3c8a5e(0x18a)]&&(_0x27142b[_0x3c8a5e(0x126)](_0x27142b[_0x3c8a5e(0x131)],_0x27142b[_0x3c8a5e(0x10c)])?_0x4a941c[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0x15c)]):_0x3f2fe3['push'](_0x27142b[_0x3c8a5e(0x17d)]));;!_0x44b505[_0x3c8a5e(0x171)]&&(_0x27142b['LZPGi'](_0x27142b[_0x3c8a5e(0x196)],_0x27142b[_0x3c8a5e(0x1a9)])?_0x4a941c['push'](_0x27142b[_0x3c8a5e(0x17d)]):_0x1de742[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0x15c)]));;_0x27142b['KmapL'](_0x4a941c['length'],0x0)&&(_0x27142b[_0x3c8a5e(0x12c)](_0x27142b[_0x3c8a5e(0x188)],_0x27142b[_0x3c8a5e(0x13b)])?_0x4df143+=_0x3c8a5e(0x16e)+_0x42b92c[_0x3c8a5e(0x1e7)]+'\x20'+(_0x32e8f5?_0x27142b[_0x3c8a5e(0x1ba)]:_0x27142b[_0x3c8a5e(0x1ca)])+'\x0a\x0a':(_0x1e9a8a=_0x3c8a5e(0x150)+_0x4a941c[_0x3c8a5e(0x1a8)](',\x20')+_0x3c8a5e(0x13a),await _0x27142b[_0x3c8a5e(0x156)](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b[_0x3c8a5e(0x17c)],_0x27142b[_0x3c8a5e(0x1b7)]),logger['error'](_0x1e9a8a),process[_0x3c8a5e(0x163)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3c8a5e(0x18c)](_0x44b505['cloudProvider'][_0x3c8a5e(0x1ee)]())&&(_0x27142b[_0x3c8a5e(0x1bd)](_0x27142b[_0x3c8a5e(0x12a)],_0x27142b[_0x3c8a5e(0x12a)])?(_0x37d572+=_0x27142b[_0x3c8a5e(0x18d)],_0x535d5b+=_0x3c8a5e(0x1e8)+(_0x5c6a25[_0x3c8a5e(0x165)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a',_0x981f6f+='\x20\x20Code:\x20'+(_0x4d5112[_0x3c8a5e(0xfd)]||_0x27142b['cGbkT'])+'\x0a',_0x4bf6dc+=_0x3c8a5e(0x153)+(_0x1534d6[_0x3c8a5e(0x1ab)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a'):(_0x1e9a8a=_0x27142b[_0x3c8a5e(0x1fb)],await _0x27142b[_0x3c8a5e(0x1be)](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b[_0x3c8a5e(0x12f)],_0x27142b[_0x3c8a5e(0x1b7)]),logger[_0x3c8a5e(0x104)](_0x1e9a8a),!_0x44b505[_0x3c8a5e(0x18a)]&&(_0x27142b[_0x3c8a5e(0x142)](_0x27142b['npWmn'],_0x27142b[_0x3c8a5e(0x127)])?_0x504f83[_0x3c8a5e(0x141)](_0x3c8a5e(0x15e)+_0x3035c6[_0x3c8a5e(0x1e7)]+_0x3c8a5e(0x180)):(logger['info'](_0x3c8a5e(0x130)+DEFAULT_CLUSTER_DETAILS[_0x3c8a5e(0x1db)]+'\x20'),_0x44b505['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x3c8a5e(0x1e7)]=_0x44b505[_0x3c8a5e(0x1e7)],global_registry[_0x3c8a5e(0x18a)]=_0x44b505[_0x3c8a5e(0x18a)],global_registry[_0x3c8a5e(0x1cc)]=_0x44b505['region'];}}else{if(_0x44b505[_0x3c8a5e(0x164)]){if(_0x27142b['vYycc'](_0x27142b[_0x3c8a5e(0x15b)],_0x27142b[_0x3c8a5e(0x15b)])){global_registry[_0x3c8a5e(0x164)]=_0x44b505['gridProfile'],logger[_0x3c8a5e(0x1a7)](_0x3c8a5e(0x15f)+_0x44b505[_0x3c8a5e(0x164)]);const _0x5ca9c9='https://'+AG_API_URL+_0x3c8a5e(0x1a5),_0x3bf1a6={};_0x3bf1a6[_0x3c8a5e(0x10f)]=_0x27142b['UqRFZ'],_0x3bf1a6[_0x3c8a5e(0x109)]=global_registry[_0x3c8a5e(0x1b0)],_0x3bf1a6[_0x3c8a5e(0x155)]=![];const _0x2a7286=_0x3bf1a6,_0x26ac5d=await _0x27142b[_0x3c8a5e(0x1f9)](got,_0x5ca9c9,_0x2a7286),_0x42b5a8=await _0x27142b['SuDiG'](responseValidation,_0x26ac5d,_0x27142b[_0x3c8a5e(0x1c7)],_0x27142b[_0x3c8a5e(0x1ef)],_0x44b505,_0x2fa191);let _0x7341a7={};if(_0x27142b[_0x3c8a5e(0x103)](_0x42b5a8,0xc8)){if(_0x27142b[_0x3c8a5e(0x1f0)](_0x27142b[_0x3c8a5e(0x1ae)],_0x27142b[_0x3c8a5e(0x1ae)]))_0x25261d['error'](_0x27142b['tsckX']),_0x2ddfcb[_0x3c8a5e(0x163)](0x1);else{const _0x527780=JSON[_0x3c8a5e(0x1fa)](_0x26ac5d[_0x3c8a5e(0x1de)]),_0x3a53e8=_0x527780['find'](_0x4d0239=>_0x4d0239[_0x3c8a5e(0x11a)]===_0x44b505[_0x3c8a5e(0x164)])||null;_0x27142b[_0x3c8a5e(0x1b6)](isUndefined,_0x3a53e8)?_0x27142b[_0x3c8a5e(0x1fd)](_0x27142b[_0x3c8a5e(0x177)],_0x27142b[_0x3c8a5e(0x177)])?(_0x1e9a8a='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x44b505['gridProfile']+_0x3c8a5e(0x1e9),await _0x27142b['KDWcq'](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b[_0x3c8a5e(0x13f)],_0x27142b[_0x3c8a5e(0x1b7)]),logger[_0x3c8a5e(0x104)](_0x1e9a8a),process[_0x3c8a5e(0x163)](0x1)):_0x3e1319[_0x3c8a5e(0x104)]('error\x20stack\x20:\x20'+_0x57395a[_0x3c8a5e(0x104)][_0x3c8a5e(0x1ab)]):_0x27142b[_0x3c8a5e(0x17b)](_0x27142b[_0x3c8a5e(0x173)],_0x27142b[_0x3c8a5e(0x173)])?_0x7341a7=_0x3a53e8:_0x50e420[_0x3c8a5e(0x163)](0x1);}}else _0x27142b[_0x3c8a5e(0x1f0)](_0x27142b[_0x3c8a5e(0x1ff)],_0x27142b[_0x3c8a5e(0x107)])?process[_0x3c8a5e(0x163)](0x1):_0x1a39cc=_0x5540bd;const _0x443da6={};_0x443da6['type']=WS_EVENTS[_0x3c8a5e(0x111)],_0x443da6[_0x3c8a5e(0x165)]=_0x27142b[_0x3c8a5e(0x1df)],webSocketUtils[_0x3c8a5e(0x124)](_0x2fa191,_0x443da6),global_registry[_0x3c8a5e(0x18a)]=_0x7341a7[_0x3c8a5e(0x18a)],global_registry[_0x3c8a5e(0x1cc)]=_0x7341a7[_0x3c8a5e(0x171)],global_registry['clusterName']=_0x7341a7[_0x3c8a5e(0x1e7)];}else _0xe9518c['info']('['+_0x388298+_0x3c8a5e(0x16b)+_0x39c79d[_0x3c8a5e(0x17e)]+'\x20data\x20:\x20'+_0x41b5c7[_0x3c8a5e(0x1ec)]+'\x20error\x20:\x20'+_0x4f052d[_0x3c8a5e(0x104)]),_0x291bbf['error']&&_0x341789[_0x3c8a5e(0x104)](_0x3c8a5e(0x162)+_0x5d3e6a['error']['stack']);}else{if(_0x27142b[_0x3c8a5e(0x1f0)](_0x27142b['AJprn'],_0x27142b[_0x3c8a5e(0x119)]))logger['error'](_0x27142b['tsckX']),process[_0x3c8a5e(0x163)](0x1);else{const {header:_0x33969e,response:_0x2adadf}=_0x2f93fc,{status:_0xf0b35b,data:_0x5ecdf2,error:_0x141128}=_0x2adadf;_0x878ba1+=_0x33969e+'\x20#'+_0x27142b[_0x3c8a5e(0x14b)](_0x411f18,0x1)+'\x0a',_0x4b7c51+=_0x3c8a5e(0x1a6)+(_0xf0b35b?_0x27142b[_0x3c8a5e(0x13c)]:_0x27142b[_0x3c8a5e(0x160)])+'\x0a',_0x5393ce+=_0x3c8a5e(0x1fc)+_0x27142b[_0x3c8a5e(0x1f7)](_0x5ecdf2,_0x27142b['cGbkT'])+'\x0a',_0x141128&&(_0x3b3e0e+=_0x27142b[_0x3c8a5e(0x18d)],_0x19ae8c+=_0x3c8a5e(0x1e8)+(_0x141128['message']||_0x27142b['cGbkT'])+'\x0a',_0x1bad25+='\x20\x20Code:\x20'+(_0x141128[_0x3c8a5e(0xfd)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a',_0x44e07f+=_0x3c8a5e(0x153)+(_0x141128[_0x3c8a5e(0x1ab)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a'),_0x2a90e7+='\x0a\x0a';}}}}}catch(_0x1da53b){_0x27142b[_0x3c8a5e(0x183)](_0x27142b['zQinc'],_0x27142b[_0x3c8a5e(0x11e)])?(_0x30c115[_0x3c8a5e(0x141)](_0x3c8a5e(0x130)+_0x4dcd45[_0x3c8a5e(0x1db)]+'\x20'),_0x28805c['cloudProvider']=_0x514609[_0x3c8a5e(0x1db)]):(_0x1e9a8a=_0x3c8a5e(0x1c5)+_0x1da53b+':\x20'+_0x1da53b[_0x3c8a5e(0x1ab)],logger[_0x3c8a5e(0x104)](_0x1e9a8a),await _0x27142b[_0x3c8a5e(0x1e5)](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b['DVEsC'],_0x27142b[_0x3c8a5e(0x1b7)]),process[_0x3c8a5e(0x163)](0x1));}}function printResponse(_0x5818e7,_0x3eaaca){const _0x3776d3=a17_0x21cb24,_0x177f11={};_0x177f11['reHql']=function(_0x4a339c,_0x555eef){return _0x4a339c!==_0x555eef;},_0x177f11[_0x3776d3(0x1b3)]=_0x3776d3(0x1b5),_0x177f11[_0x3776d3(0x12e)]=_0x3776d3(0x157);const _0x30bcde=_0x177f11;logger['info']('['+_0x5818e7+']\x20status\x20:\x20'+_0x3eaaca[_0x3776d3(0x17e)]+_0x3776d3(0x1b1)+_0x3eaaca[_0x3776d3(0x1ec)]+'\x20error\x20:\x20'+_0x3eaaca['error']),_0x3eaaca[_0x3776d3(0x104)]&&(_0x30bcde[_0x3776d3(0x1ac)](_0x30bcde['ufDxj'],_0x30bcde[_0x3776d3(0x12e)])?logger[_0x3776d3(0x104)](_0x3776d3(0x162)+_0x3eaaca['error']['stack']):_0x1094e3+='Cluster\x20'+_0x402161[_0x3776d3(0x1e7)]+_0x3776d3(0x1eb));}function a17_0x231c(){const _0x1b586a=['SRuCE','username','password','wenyx','pre-check-grid-called','existsSync','heIPI','qTUJu','XPczr','HLshN','\x20===\x0a\x0a','getUTCDate','380814wwQKoc','init','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EyVMV','forEach','xIFJG','tFgBN','CHnEi','pYOnx','<UsernamePlaceholder>','/packages/cli/get-all-grid-profiles','Status:\x20','debug','join','sOZuJ','isTls1_2_SUPPORTED','stack','reHql','ihiPs','NPrSv','grid-profile','authHeader','\x20data\x20:\x20','UykAY','ufDxj','sCkeL','wQWYO','KiRwR','ORgsF','ZTPvt','../../config/constants','bNHSI','hdcaq','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','QOMrx','WrKYt','mxRhm','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','log/report_','kzSIY','uuid','description','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','iXzHq','zYALl','oPTAS','20caZvNb','OHSlD','requestId','clusterRegion','GET','2|3|1|0|4','dummy-grid','ZoFRV','\x20\x20Code:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','checkAccess','<PasswordPlaceholder>','hKndY','FLVUC','VvNga','7705440rjeABo','FrTzC','help','CLOUD_PROVIDER','will\x20be\x20created','OUZmX','body','IyCgZ','SSL\x20Configured','\x20region\x20-\x20','JIQHv','pre-check-grid-profile-empty','2195742YDHpqq','bJDwT','QMjtf','clusterName','\x20\x20Message:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','delay','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','data','header','toLowerCase','NRZwJ','lYnfe','Failure','zoyFa','swafr','sUvtC','UupRK','string','zebEH','cloud-provider-not-supported','UMvTR','parse','RZRfK','Message:\x20','Rcbpc','pnfAG','EvMPj','bstackAccesskey','htyQp','cGbkT','got','pre-check-cluster-args-not-passed','Success','PDtax','code','AKIsL','TPjUH','credential-not-found','UjTHO','KBzfU','jhctB','error','wMsOV','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','QoxPo','command','headers','Pre-check\x20running\x20for\x20Cloud\x20-\x20','sCcOE','BvpcE','stringify','stack\x20trace\x20','method','IsRPt','LOG','FXBvs','`\x20,error\x20:\x20','utf-8','yuLtL','vHoNR','isTrialGridAccessible','MBdOP','BIPqK','name','cluster-check-failed-','handler','bstackUsername','BwfgK','getUTCHours','FtCQa','Error\x20Details:\x0a','KfjFp','1149579nLcKXM','sendEventToBackend','myQfn','wYsEB','NjlZD','fdGkh','INFO','sIVin','is\x20already\x20present','ZHlNf','builder','WUfrE','DVEsC','Setting\x20cloud\x20provider\x20as\x20','BzPXt','../../cloudproviders/utils','RBdQF','Cluster\x20details\x0a-----------------------\x0a','epilogue','FkBAS','XjVpx','Browserstack','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','.\x20Please\x20provide\x20all\x20required\x20arguments.','SYVYS','fPWwU','97315pXkttc','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ZtQqy','accessResp','info','lAwFD','pre_check','push','JuNnc','getUTCMonth','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','2671816yGCCzW','writeFileSync','grid','MsYMP','rhefO','LPGda','mnjBT','LAfpj','Missing\x20required\x20arguments:\x20','response','BpBqd','\x20\x20Stack:\x20','toolInstalledResp','throwHttpErrors','KDWcq','mesGX','N/A','ERROR','MOMeG','pIXgW','RUOZP','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Cluster\x20`','grid\x20profile\x20flow\x20','ToFPo','hiyFU','error\x20stack\x20:\x20','exit','gridProfile','message','RRJeE','cluster-name','options','replace','argv',']\x20status\x20:\x20','getUTCFullYear','bbxYn','Cluster\x20','Report\x20saved\x20in\x20','type','region','WebSocket','PKaEZ','Grid\x20profile\x20fetched\x20for\x20pre-check','mvIuz','miEcl','ZTrvU','connectionTimeout','shAuj','xjGaa','lbHHm','slOYS','YgPqD','status','pre-check-failed','`\x20already\x20exists','oVxLD','isClusterPresent','DNasr','cloud-provider','PWGYV','IKqeC','POzxO','vWBAK','316144DyzvkB','cloudProvider','DKYoD','includes','vkLiy','Failed\x20in\x20pre-check!\x20Error:\x20'];a17_0x231c=function(){return _0x1b586a;};return a17_0x231c();}async function generateReport(_0x80e4c2,_0x47e4b0){const _0x46fee2=a17_0x21cb24,_0x2dde1d={'xjGaa':function(_0x2c439e,_0x2a78b8){return _0x2c439e+_0x2a78b8;},'sCcOE':_0x46fee2(0x205),'fLDqe':_0x46fee2(0x1f1),'QMjtf':function(_0x46d18d,_0x5ab1c3){return _0x46d18d||_0x5ab1c3;},'fdGkh':_0x46fee2(0x158),'hdcaq':_0x46fee2(0x121),'oVxLD':_0x46fee2(0x134),'myQfn':function(_0x178a90,_0x3bfde2){return _0x178a90!=_0x3bfde2;},'OUZmX':_0x46fee2(0x12b),'SRuCE':_0x46fee2(0x1dc),'JuNnc':function(_0x12acbd){return _0x12acbd();}};let _0x35ae89='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x46fee2(0x18a)]+_0x46fee2(0x199);return _0x80e4c2[_0x46fee2(0x19f)]((_0x43116d,_0x1ddd0f)=>{const _0x268797=_0x46fee2,{header:_0x5a2dad,response:_0x253d7d}=_0x43116d,{status:_0x1d7456,data:_0x1297f5,error:_0x426c89}=_0x253d7d;_0x35ae89+=_0x5a2dad+'\x20#'+_0x2dde1d[_0x268797(0x17a)](_0x1ddd0f,0x1)+'\x0a',_0x35ae89+='Status:\x20'+(_0x1d7456?_0x2dde1d[_0x268797(0x10b)]:_0x2dde1d['fLDqe'])+'\x0a',_0x35ae89+=_0x268797(0x1fc)+_0x2dde1d[_0x268797(0x1e6)](_0x1297f5,_0x2dde1d['fdGkh'])+'\x0a',_0x426c89&&(_0x35ae89+=_0x2dde1d[_0x268797(0x1bb)],_0x35ae89+=_0x268797(0x1e8)+(_0x426c89[_0x268797(0x165)]||_0x2dde1d[_0x268797(0x128)])+'\x0a',_0x35ae89+=_0x268797(0x1d1)+(_0x426c89['code']||_0x2dde1d['fdGkh'])+'\x0a',_0x35ae89+='\x20\x20Stack:\x20'+(_0x426c89[_0x268797(0x1ab)]||_0x2dde1d[_0x268797(0x128)])+'\x0a'),_0x35ae89+='\x0a\x0a';}),_0x35ae89+=_0x2dde1d[_0x46fee2(0x181)],_0x2dde1d[_0x46fee2(0x125)](_0x47e4b0,null)?_0x35ae89+=_0x46fee2(0x16e)+global_registry[_0x46fee2(0x1e7)]+'\x20'+(_0x47e4b0?_0x2dde1d[_0x46fee2(0x1dd)]:_0x2dde1d[_0x46fee2(0x18f)])+'\x0a\x0a':_0x35ae89+=_0x46fee2(0x16e)+global_registry['clusterName']+_0x46fee2(0x1eb),_0x35ae89+=_0x2dde1d[_0x46fee2(0x145)](getSystemMetaData),_0x35ae89;}function a17_0x2c0a(_0x544b39,_0x338c1c){const _0x231c73=a17_0x231c();return a17_0x2c0a=function(_0x2c0a50,_0x474688){_0x2c0a50=_0x2c0a50-0xfc;let _0x45424e=_0x231c73[_0x2c0a50];return _0x45424e;},a17_0x2c0a(_0x544b39,_0x338c1c);};exports[a17_0x21cb24(0x11c)]=async function(_0x1493d6){const _0x4f7620=a17_0x21cb24,_0x164d2b={'FLVUC':function(_0x32616c){return _0x32616c();},'FrTzC':function(_0xba974a){return _0xba974a();},'HLshN':_0x4f7620(0x19d),'hiyFU':function(_0x118fa7,_0x4a37ea,_0x12804d,_0x4d0ed1,_0x5ef7cc,_0x2f8440,_0x2505ad,_0x2c6429){return _0x118fa7(_0x4a37ea,_0x12804d,_0x4d0ed1,_0x5ef7cc,_0x2f8440,_0x2505ad,_0x2c6429);},'VvNga':_0x4f7620(0x193),'mxRhm':_0x4f7620(0x100),'mvIuz':_0x4f7620(0x104),'mnjBT':function(_0x3a0415,_0x1dcafc,_0x4dffe2,_0x37c018,_0x247a92,_0x879c8a,_0xb6c406){return _0x3a0415(_0x1dcafc,_0x4dffe2,_0x37c018,_0x247a92,_0x879c8a,_0xb6c406);},'xIFJG':function(_0x3f82d8){return _0x3f82d8();},'wenyx':_0x4f7620(0x1a4),'POzxO':_0x4f7620(0x1d4),'FkBAS':function(_0x2c4685,_0x27a471,_0x3376ce){return _0x2c4685(_0x27a471,_0x3376ce);},'rhefO':function(_0x3dc21e,_0xc70d5d,_0x41c13c){return _0x3dc21e(_0xc70d5d,_0x41c13c);},'RBdQF':_0x4f7620(0x1cf),'yuLtL':_0x4f7620(0x154),'sUvtC':_0x4f7620(0x1ce),'XPczr':function(_0x2286a2,_0x143350,_0x48e9e1,_0x7942e1,_0x2f4ed6,_0x385897,_0x7c2804,_0x301d54){return _0x2286a2(_0x143350,_0x48e9e1,_0x7942e1,_0x2f4ed6,_0x385897,_0x7c2804,_0x301d54);},'bbxYn':function(_0x430a35,_0x40df72,_0x556356){return _0x430a35(_0x40df72,_0x556356);},'UteIi':_0x4f7620(0x140),'ZTPvt':function(_0x4b851f,_0x3af877,_0xde50fd){return _0x4b851f(_0x3af877,_0xde50fd);},'IsRPt':_0x4f7620(0x117),'hKndY':function(_0x2a8796,_0xc0af65){return _0x2a8796(_0xc0af65);},'UZdHx':'TLSv1_2_client_method','AKIsL':function(_0x2698e9,_0x659909,_0x13ab92){return _0x2698e9(_0x659909,_0x13ab92);},'ACIux':_0x4f7620(0x1aa),'MBdOP':'Tool\x20Installed','PWGYV':'User\x20Access','EgRNR':'Whitelisted\x20browserstack','swafr':_0x4f7620(0x1e0),'ZoFRV':function(_0x358290,_0x29bf2c){return _0x358290+_0x29bf2c;},'LAfpj':_0x4f7620(0x114),'KBzfU':function(_0x5f5201,_0x3ff62c,_0x2a9a4b,_0x262cfa,_0x3324df,_0x36c7fb,_0x12bfa9){return _0x5f5201(_0x3ff62c,_0x2a9a4b,_0x262cfa,_0x3324df,_0x36c7fb,_0x12bfa9);},'UKjMw':_0x4f7620(0x17f)};let _0x57890f,_0x186526;try{global_registry[_0x4f7620(0x1cb)]=_0x164d2b[_0x4f7620(0x1d6)](uuidv4);!fs[_0x4f7620(0x194)](_0x164d2b[_0x4f7620(0x1d9)](getCredentialsPath))&&(_0x186526=_0x164d2b[_0x4f7620(0x198)],logger[_0x4f7620(0x104)](_0x186526),await _0x164d2b[_0x4f7620(0x161)](reportToGalactusAndSendToEDS,_0x1493d6,_0x57890f,_0x186526,messageTypes[_0x4f7620(0x159)],_0x164d2b[_0x4f7620(0x1d7)],_0x164d2b[_0x4f7620(0x1bf)],_0x164d2b['mvIuz']),process[_0x4f7620(0x163)](0x1));_0x164d2b[_0x4f7620(0x14e)](sendInstrumentationEvent,_0x1493d6,_0x164d2b[_0x4f7620(0x1d7)],messageTypes[_0x4f7620(0x129)],null,null,_0x1493d6);const _0x3a50b0=JSON[_0x4f7620(0x1fa)](fs['readFileSync'](_0x164d2b[_0x4f7620(0x1a0)](getCredentialsPath)));global_registry[_0x4f7620(0x11d)]=_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x190)],global_registry[_0x4f7620(0x200)]=_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x191)];const _0xc22c1f=WS_ENDPOINT[_0x4f7620(0x169)](_0x164d2b[_0x4f7620(0x192)],_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x190)])[_0x4f7620(0x169)](_0x164d2b[_0x4f7620(0x187)],_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x191)]),_0x1708da={};_0x1708da[_0x4f7620(0x172)]=ws,_0x1708da[_0x4f7620(0x178)]=0x36ee80,_0x57890f=new ReconnectingWebSocket(_0xc22c1f,[],_0x1708da),global_registry['authHeader']=_0x164d2b['FkBAS'](getAuthHeader,global_registry[_0x4f7620(0x11d)],global_registry['bstackAccesskey']),await _0x164d2b[_0x4f7620(0x14c)](inputValidation,_0x1493d6,_0x57890f),logger[_0x4f7620(0x141)](_0x4f7620(0x10a)+global_registry[_0x4f7620(0x18a)]+_0x4f7620(0x1e1)+global_registry[_0x4f7620(0x1cc)]);let _0x1e2d29=await _0x164d2b[_0x4f7620(0x14e)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x4f7620(0x1e7)],_0x164d2b[_0x4f7620(0x133)],_0x57890f,webSocketUtils,_0x1493d6);const _0xe6bfed=await _0x1e2d29['isCliToolInstalled']();_0x164d2b[_0x4f7620(0x136)](printResponse,_0x164d2b[_0x4f7620(0x115)],_0xe6bfed),_0x1e2d29=await _0x1e2d29[_0x4f7620(0x19c)]();let _0x2b508c=![];try{_0x2b508c=await _0x1e2d29[_0x4f7620(0x182)]();}catch(_0x45b568){const _0x2d8c22=_0x164d2b[_0x4f7620(0x1f4)]['split']('|');let _0x278e13=0x0;while(!![]){switch(_0x2d8c22[_0x278e13++]){case'0':_0x186526+='\x0a'+JSON[_0x4f7620(0x10d)](_0x45b568[_0x4f7620(0x1ab)]);continue;case'1':logger['error'](_0x186526);continue;case'2':_0x186526=_0x4f7620(0x1d2)+global_registry[_0x4f7620(0x1e7)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry['clusterRegion']+_0x4f7620(0x113)+_0x45b568;continue;case'3':_0x2b508c=null;continue;case'4':await _0x164d2b[_0x4f7620(0x197)](reportToGalactusAndSendToEDS,_0x1493d6,_0x57890f,_0x186526,messageTypes['ERROR'],_0x164d2b['VvNga'],_0x4f7620(0x11b)+global_registry[_0x4f7620(0x18a)],_0x164d2b['mvIuz']);continue;}break;}}_0x2b508c&&logger[_0x4f7620(0x141)](_0x4f7620(0x15e)+global_registry['clusterName']+'`\x20already\x20exists');const _0x122b6b=await _0x1e2d29[_0x4f7620(0x1d3)]();_0x164d2b[_0x4f7620(0x16d)](printResponse,_0x164d2b['UteIi'],_0x122b6b);const _0x2bf59d=await _0x164d2b[_0x4f7620(0x1a0)](curlRequest);_0x164d2b[_0x4f7620(0x1b8)](printResponse,_0x164d2b[_0x4f7620(0x110)],_0x2bf59d);const _0x3610d2=await _0x164d2b[_0x4f7620(0x1d5)](isTlsSupported,_0x164d2b['UZdHx']);_0x164d2b[_0x4f7620(0xfe)](printResponse,_0x164d2b['ACIux'],_0x3610d2);const _0xb9835={};_0xb9835[_0x4f7620(0x1ed)]=_0x164d2b[_0x4f7620(0x118)],_0xb9835[_0x4f7620(0x151)]=_0xe6bfed;const _0x54b60d={};_0x54b60d[_0x4f7620(0x1ed)]=_0x164d2b[_0x4f7620(0x185)],_0x54b60d[_0x4f7620(0x151)]=_0x122b6b;const _0x13e3ff={};_0x13e3ff['header']=_0x164d2b['EgRNR'],_0x13e3ff['response']=_0x2bf59d;const _0x14621f={};_0x14621f['header']=_0x164d2b[_0x4f7620(0x1f3)],_0x14621f[_0x4f7620(0x151)]=_0x3610d2;const _0x101a0e=[_0xb9835,_0x54b60d,_0x13e3ff,_0x14621f],_0x11b1a5=await _0x164d2b[_0x4f7620(0x1b8)](generateReport,_0x101a0e,_0x2b508c),_0x574e7e=new Date(),_0x2e3146=_0x574e7e[_0x4f7620(0x16c)]()+'_'+_0x164d2b[_0x4f7620(0x1d0)](_0x574e7e[_0x4f7620(0x146)](),0x1)+'_'+_0x574e7e[_0x4f7620(0x19a)]()+'_'+_0x574e7e[_0x4f7620(0x11f)]()+'_'+_0x574e7e['getUTCMinutes'](),_0x44d423=_0x4f7620(0x1c1)+_0x2e3146+'.txt';fs[_0x4f7620(0x149)](_0x44d423,_0x11b1a5,_0x164d2b[_0x4f7620(0x14f)]),logger[_0x4f7620(0x141)](_0x4f7620(0x16f)+_0x44d423),process[_0x4f7620(0x163)](0x0);}catch(_0x5379d3){let _0x4927fd=_0x4f7620(0x18e)+_0x5379d3+'\x20';logger['error'](_0x4927fd),_0x4927fd+='\x0a'+JSON[_0x4f7620(0x10d)](_0x5379d3[_0x4f7620(0x1ab)]),logger[_0x4f7620(0x1a7)](_0x4f7620(0x10e)+_0x5379d3[_0x4f7620(0x1ab)]);if(_0x57890f){const _0x4cbf6d={};_0x4cbf6d[_0x4f7620(0x170)]=WS_EVENTS[_0x4f7620(0x111)],_0x4cbf6d[_0x4f7620(0x165)]=_0x4927fd,webSocketUtils['sendEventToBackend'](_0x57890f,_0x4cbf6d,_0x164d2b[_0x4f7620(0x175)],!![]);}await webSocketUtils[_0x4f7620(0x1ea)](0x7d0);const _0x47d74b={};_0x47d74b['error']=_0x4927fd,await _0x164d2b[_0x4f7620(0x102)](sendInstrumentationEvent,_0x1493d6,_0x164d2b['VvNga'],messageTypes[_0x4f7620(0x159)],_0x164d2b['UKjMw'],_0x47d74b,_0x1493d6),process[_0x4f7620(0x163)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x2602(){const _0x392223=['60IUWlxV','8438LByWAk','start','demandCommand','epilogue','../config/constants','11RVNToF','help','JXyEf','start_commands','65dFeRUw','183tipAoy','handler','251862jIDPfS','5943357Tykuej','2450744jzaZzi','19866228PBCZOX','command','commandDir','recommendCommands','352968vTCCLJ','usage','Start\x20an\x20existing\x20Automation\x20grid.','10oKGfVb','strict','34280MPxGjm','QEBQh'];a18_0x2602=function(){return _0x392223;};return a18_0x2602();}const a18_0x33aaa4=a18_0x4272;(function(_0x5a2d23,_0x4fa7a3){const _0x400d1f=a18_0x4272,_0x4777be=_0x5a2d23();while(!![]){try{const _0x5b36d6=parseInt(_0x400d1f(0x14e))/0x1*(parseInt(_0x400d1f(0x15f))/0x2)+-parseInt(_0x400d1f(0x15e))/0x3*(parseInt(_0x400d1f(0x15c))/0x4)+parseInt(_0x400d1f(0x14d))/0x5*(parseInt(_0x400d1f(0x150))/0x6)+-parseInt(_0x400d1f(0x157))/0x7+parseInt(_0x400d1f(0x152))/0x8+parseInt(_0x400d1f(0x151))/0x9*(parseInt(_0x400d1f(0x15a))/0xa)+-parseInt(_0x400d1f(0x164))/0xb*(parseInt(_0x400d1f(0x153))/0xc);if(_0x5b36d6===_0x4fa7a3)break;else _0x4777be['push'](_0x4777be['shift']());}catch(_0x27b0a9){_0x4777be['push'](_0x4777be['shift']());}}}(a18_0x2602,0x6366f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x33aaa4(0x163));function a18_0x4272(_0x51c33f,_0x505a49){const _0x260282=a18_0x2602();return a18_0x4272=function(_0x4272bd,_0x3e2ef6){_0x4272bd=_0x4272bd-0x14d;let _0x239450=_0x260282[_0x4272bd];return _0x239450;},a18_0x4272(_0x51c33f,_0x505a49);}exports[a18_0x33aaa4(0x154)]=a18_0x33aaa4(0x160),exports['desc']=a18_0x33aaa4(0x159),exports['builder']=function(_0x4e64fd){const _0x114ad7=a18_0x33aaa4,_0x7e35d1={};_0x7e35d1[_0x114ad7(0x15d)]=_0x114ad7(0x167),_0x7e35d1[_0x114ad7(0x166)]=_0x114ad7(0x165);const _0x4bf1d1=_0x7e35d1;return _0x4e64fd[_0x114ad7(0x158)](HELP_HEADER_MESSAGE[_0x114ad7(0x160)])[_0x114ad7(0x162)](HELP_FOOTER_MESSAGE)[_0x114ad7(0x155)](_0x4bf1d1[_0x114ad7(0x15d)])[_0x114ad7(0x161)]()[_0x114ad7(0x156)]()[_0x114ad7(0x15b)]()[_0x114ad7(0x165)](_0x4bf1d1[_0x114ad7(0x166)]);},exports[a18_0x33aaa4(0x14f)]=function(_0x48309e){};
1
+ const a18_0x2eeebf=a18_0x4bac;(function(_0x5b036f,_0x4cafbe){const _0x27f3c6=a18_0x4bac,_0x196c68=_0x5b036f();while(!![]){try{const _0x5dbcc8=-parseInt(_0x27f3c6(0x1bb))/0x1+parseInt(_0x27f3c6(0x1b2))/0x2*(parseInt(_0x27f3c6(0x1a7))/0x3)+-parseInt(_0x27f3c6(0x1b1))/0x4+parseInt(_0x27f3c6(0x1b8))/0x5+-parseInt(_0x27f3c6(0x1ac))/0x6+parseInt(_0x27f3c6(0x1b5))/0x7*(-parseInt(_0x27f3c6(0x1b3))/0x8)+parseInt(_0x27f3c6(0x1b0))/0x9*(parseInt(_0x27f3c6(0x1b7))/0xa);if(_0x5dbcc8===_0x4cafbe)break;else _0x196c68['push'](_0x196c68['shift']());}catch(_0x12fd8f){_0x196c68['push'](_0x196c68['shift']());}}}(a18_0xb623,0x1e43f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2eeebf(0x1ba));exports[a18_0x2eeebf(0x1ae)]=a18_0x2eeebf(0x1aa),exports[a18_0x2eeebf(0x1bc)]=a18_0x2eeebf(0x1a8),exports[a18_0x2eeebf(0x1b9)]=function(_0xea95f){const _0x28b8b6=a18_0x2eeebf,_0x370413={};_0x370413[_0x28b8b6(0x1b4)]=_0x28b8b6(0x1bf),_0x370413['yKfyE']='help';const _0x42a5c1=_0x370413;return _0xea95f[_0x28b8b6(0x1b6)](HELP_HEADER_MESSAGE[_0x28b8b6(0x1aa)])[_0x28b8b6(0x1ad)](HELP_FOOTER_MESSAGE)[_0x28b8b6(0x1bd)](_0x42a5c1['sZuaF'])['demandCommand']()[_0x28b8b6(0x1ab)]()[_0x28b8b6(0x1a9)]()['help'](_0x42a5c1[_0x28b8b6(0x1be)]);},exports[a18_0x2eeebf(0x1af)]=function(_0x4835a4){};function a18_0x4bac(_0x422c83,_0x5780bb){const _0xb623b1=a18_0xb623();return a18_0x4bac=function(_0x4bac8e,_0x5d6004){_0x4bac8e=_0x4bac8e-0x1a7;let _0x1b0415=_0xb623b1[_0x4bac8e];return _0x1b0415;},a18_0x4bac(_0x422c83,_0x5780bb);}function a18_0xb623(){const _0x36eaa3=['strict','start','recommendCommands','1247442FMLwjS','epilogue','command','handler','279KPelAq','144248dqdIlO','66964NWtFzt','32BvmgGG','sZuaF','156737rHxuzj','usage','97310amxPui','529635HJfQZb','builder','../config/constants','184462JVZIGe','desc','commandDir','yKfyE','start_commands','21ndGWQd','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0xb623=function(){return _0x36eaa3;};return a18_0xb623();}
@@ -1 +1 @@
1
- function a19_0x5b16(_0x4cd26d,_0x1a3566){const _0x317adc=a19_0x317a();return a19_0x5b16=function(_0x5b1605,_0x1c6ac1){_0x5b1605=_0x5b1605-0xfb;let _0x4f6d8f=_0x317adc[_0x5b1605];return _0x4f6d8f;},a19_0x5b16(_0x4cd26d,_0x1a3566);}const a19_0x4761d4=a19_0x5b16;(function(_0x30e797,_0x1be59d){const _0x349716=a19_0x5b16,_0x32838d=_0x30e797();while(!![]){try{const _0x34da4d=-parseInt(_0x349716(0x150))/0x1*(parseInt(_0x349716(0x138))/0x2)+parseInt(_0x349716(0x140))/0x3+-parseInt(_0x349716(0x10e))/0x4+parseInt(_0x349716(0x122))/0x5+parseInt(_0x349716(0x154))/0x6*(parseInt(_0x349716(0x110))/0x7)+parseInt(_0x349716(0x102))/0x8*(parseInt(_0x349716(0x100))/0x9)+-parseInt(_0x349716(0x12c))/0xa*(parseInt(_0x349716(0x141))/0xb);if(_0x34da4d===_0x1be59d)break;else _0x32838d['push'](_0x32838d['shift']());}catch(_0x102ccd){_0x32838d['push'](_0x32838d['shift']());}}}(a19_0x317a,0x8515f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x4761d4(0x119)),{logger}=require(a19_0x4761d4(0x13e)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x4761d4(0x10c)),{sendInstrumentationEvent}=require(a19_0x4761d4(0x103)),webSocketUtils=require(a19_0x4761d4(0x11d)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x4761d4(0x115));exports[a19_0x4761d4(0x11e)]=a19_0x4761d4(0xfc),exports[a19_0x4761d4(0x124)]=a19_0x4761d4(0x12a),exports[a19_0x4761d4(0x118)]=function(_0x4e2eef){const _0x514ade=a19_0x4761d4,_0xcbf0de={};_0xcbf0de['ADHZr']=_0x514ade(0x151),_0xcbf0de[_0x514ade(0x116)]=_0x514ade(0x134),_0xcbf0de['oJPeP']='Skip\x20insecure\x20cert\x20verification.',_0xcbf0de['kUXcq']='boolean',_0xcbf0de[_0x514ade(0x120)]=_0x514ade(0x10b);const _0x5f5487=_0xcbf0de,_0x344f08={};_0x344f08[_0x514ade(0x111)]=_0x5f5487['ADHZr'],_0x344f08[_0x514ade(0x113)]=_0x5f5487[_0x514ade(0x116)];const _0x3bbb16={};_0x3bbb16['description']=_0x5f5487[_0x514ade(0x12b)],_0x3bbb16[_0x514ade(0x113)]=_0x5f5487[_0x514ade(0x10d)],_0x3bbb16[_0x514ade(0xff)]=![];const _0x1a84d4={};return _0x1a84d4['grid-id']=_0x344f08,_0x1a84d4[_0x514ade(0x13b)]=_0x3bbb16,_0x4e2eef[_0x514ade(0x148)](HELP_HEADER_MESSAGE['start'])[_0x514ade(0x137)](HELP_FOOTER_MESSAGE)[_0x514ade(0x128)](_0x1a84d4)['help'](_0x5f5487[_0x514ade(0x120)])[_0x514ade(0x13d)];},exports[a19_0x4761d4(0x130)]=async function(_0x1f7114){const _0xe26611=a19_0x4761d4,_0x3c3d80={'qomPO':_0xe26611(0x112),'dkAGB':function(_0x15749a){return _0x15749a();},'LLRzn':_0xe26611(0x11a),'kannj':function(_0x1937d1,_0x591bc5,_0x1c8168,_0x22a68e,_0x5002e5,_0x45f58f,_0x5e678b){return _0x1937d1(_0x591bc5,_0x1c8168,_0x22a68e,_0x5002e5,_0x45f58f,_0x5e678b);},'djXkk':_0xe26611(0x105),'nXYha':_0xe26611(0x114),'cRLUW':function(_0x3a5802,_0x450897,_0x514c49,_0x16e2e1,_0x33d773,_0x1f7aa0,_0x13f747){return _0x3a5802(_0x450897,_0x514c49,_0x16e2e1,_0x33d773,_0x1f7aa0,_0x13f747);},'sKPLx':function(_0x41f025){return _0x41f025();},'qEnTY':'<UsernamePlaceholder>','YiHrZ':_0xe26611(0x139),'ViGPx':_0xe26611(0x136),'QltLI':function(_0x1d7833,_0x23c6f9,_0x560d49,_0x220379){return _0x1d7833(_0x23c6f9,_0x560d49,_0x220379);},'BKWuk':function(_0x144985,_0xb3f9a7,_0x4e07ef,_0x4d4c15,_0x34f34a,_0x4064b2,_0x1af4bc){return _0x144985(_0xb3f9a7,_0x4e07ef,_0x4d4c15,_0x34f34a,_0x4064b2,_0x1af4bc);},'gZOWo':function(_0x56b4aa,_0x1ca58a,_0xdd62f6){return _0x56b4aa(_0x1ca58a,_0xdd62f6);},'cVGyx':function(_0x850868,_0x2e2fd8,_0x4438d3){return _0x850868(_0x2e2fd8,_0x4438d3);},'Wipbd':'Grid\x20started','qYPif':function(_0x22c1dc,_0x2fe332){return _0x22c1dc===_0x2fe332;},'IUSsy':_0xe26611(0x104),'KMTDt':function(_0x4d049c,_0x38b960,_0x476e45,_0x3d9b66,_0x1bb329,_0x10e5d1,_0x1974a7){return _0x4d049c(_0x38b960,_0x476e45,_0x3d9b66,_0x1bb329,_0x10e5d1,_0x1974a7);},'ZUdeA':'unauthorised','RviLa':function(_0x43d4d3,_0x2802a9){return _0x43d4d3===_0x2802a9;},'YmlEu':function(_0x3d46cb,_0x2f3ace,_0x4e0676,_0x10ac2c,_0x3ff783,_0x1426cf,_0x4d57d3){return _0x3d46cb(_0x2f3ace,_0x4e0676,_0x10ac2c,_0x3ff783,_0x1426cf,_0x4d57d3);},'sXrEP':_0xe26611(0x125),'FjPwr':function(_0x19a58c,_0x296b15,_0x4dcce,_0x5191ca,_0x210d28,_0xd751a8,_0x4fea0f){return _0x19a58c(_0x296b15,_0x4dcce,_0x5191ca,_0x210d28,_0xd751a8,_0x4fea0f);},'EUzIM':_0xe26611(0x10f)};let _0x4e9b10;try{!_0x1f7114[_0xe26611(0x143)]&&(logger[_0xe26611(0x12e)](_0x3c3d80[_0xe26611(0x131)]),process[_0xe26611(0x13f)](0x1));!fs['existsSync'](_0x3c3d80[_0xe26611(0xfb)](getCredentialsPath))&&(logger['error'](_0x3c3d80[_0xe26611(0x101)]),await _0x3c3d80['kannj'](sendInstrumentationEvent,_0x1f7114,_0x3c3d80[_0xe26611(0x14c)],messageTypes['ERROR'],_0x3c3d80[_0xe26611(0x12d)],null,_0x1f7114),process[_0xe26611(0x13f)](0x1));logger[_0xe26611(0x109)](_0xe26611(0x153)+_0x1f7114[_0xe26611(0x143)]),await _0x3c3d80[_0xe26611(0xfe)](sendInstrumentationEvent,_0x1f7114,_0x3c3d80[_0xe26611(0x14c)],messageTypes[_0xe26611(0x127)],null,null,_0x1f7114);const _0x36623b=JSON[_0xe26611(0x14e)](fs[_0xe26611(0x14d)](_0x3c3d80[_0xe26611(0x129)](getCredentialsPath)));global_registry['bstackUsername']=_0x36623b[_0xe26611(0x149)][_0xe26611(0x14b)],global_registry[_0xe26611(0x12f)]=_0x36623b[_0xe26611(0x149)]['password'];const _0xd12be9=WS_ENDPOINT['replace'](_0x3c3d80[_0xe26611(0x144)],_0x36623b[_0xe26611(0x149)][_0xe26611(0x14b)])[_0xe26611(0x121)](_0x3c3d80[_0xe26611(0x11b)],_0x36623b[_0xe26611(0x149)][_0xe26611(0x135)]),_0x5d1ddf={};_0x5d1ddf[_0xe26611(0x133)]=ws,_0x5d1ddf['connectionTimeout']=0x36ee80,_0x4e9b10=new ReconnectingWebSocket(_0xd12be9,[],_0x5d1ddf),logger[_0xe26611(0x146)](_0x3c3d80['ViGPx']),webSocketUtils['addListeners'](_0x4e9b10,_0x1f7114[_0xe26611(0x126)],_0x1f7114[_0xe26611(0x135)]);const [_0x24480a,_0x450b1c]=await _0x3c3d80['QltLI'](getGridDetails,_0x36623b['Browserstack'][_0xe26611(0x14b)],_0x36623b[_0xe26611(0x149)][_0xe26611(0x135)],_0x1f7114['gridId']);if(_0x450b1c){const _0xafb41b=_0x450b1c[_0xe26611(0x109)];global_registry['cloudProvider']=_0xafb41b[_0xe26611(0x108)],global_registry[_0xe26611(0xfd)]=_0xafb41b[_0xe26611(0x142)],global_registry['clusterName']=_0xafb41b['clusterName'];const _0x2791f8=await _0x3c3d80['BKWuk'](getCloudProviderObject,_0xafb41b[_0xe26611(0x108)],_0xafb41b[_0xe26611(0x117)],_0xafb41b[_0xe26611(0x11f)],_0x4e9b10,webSocketUtils,_0x1f7114),[_0x2d3279,_0x21a38e,_0x4bd4ec,_0x4eb79f,_0x134099,_0x336902]=await _0x3c3d80['gZOWo'](createK8sClient,_0x2791f8,_0x1f7114['skipTlsCertVerify']);await _0x3c3d80['cVGyx'](scaleUpHubDeployment,_0x21a38e,_0xafb41b[_0xe26611(0x11f)]),logger[_0xe26611(0x109)](_0x3c3d80[_0xe26611(0x13c)]),process[_0xe26611(0x13f)](0x0);}_0x3c3d80[_0xe26611(0x145)](_0x24480a['statusCode'],0x191)&&(logger[_0xe26611(0x12e)](_0x3c3d80[_0xe26611(0x14a)]),await _0x3c3d80[_0xe26611(0x14f)](sendInstrumentationEvent,_0x1f7114,_0x3c3d80[_0xe26611(0x14c)],messageTypes[_0xe26611(0x132)],_0x3c3d80[_0xe26611(0x10a)],null,_0x1f7114),process[_0xe26611(0x13f)](0x1)),_0x3c3d80[_0xe26611(0x107)](_0x24480a['statusCode'],0x190)&&(logger['error'](JSON[_0xe26611(0x14e)](_0x24480a['body'])[_0xe26611(0x11c)]),await _0x3c3d80['YmlEu'](sendInstrumentationEvent,_0x1f7114,_0x3c3d80[_0xe26611(0x14c)],messageTypes[_0xe26611(0x132)],_0x3c3d80[_0xe26611(0x152)],null,_0x1f7114),process[_0xe26611(0x13f)](0x1)),logger[_0xe26611(0x12e)](_0xe26611(0x13a)+JSON[_0xe26611(0x123)](_0x24480a)),await _0x3c3d80['FjPwr'](sendInstrumentationEvent,_0x1f7114,_0x3c3d80[_0xe26611(0x14c)],messageTypes[_0xe26611(0x132)],_0x3c3d80[_0xe26611(0x106)],_0x24480a,_0x1f7114),process[_0xe26611(0x13f)](0x1);}catch(_0x53c983){const _0x50b078='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x53c983+'\x20\x0a'+JSON[_0xe26611(0x123)](_0x53c983[_0xe26611(0x147)])+'\x20';logger[_0xe26611(0x12e)](_0x50b078),process[_0xe26611(0x13f)](0x1);}};function a19_0x317a(){const _0x4dd353=['skip-tls-cert-verify','Wipbd','argv','../../config/logger','exit','1118823chIbEz','9735KGzBnZ','region','gridId','qEnTY','qYPif','debug','stack','usage','Browserstack','IUSsy','username','djXkk','readFileSync','parse','KMTDt','488629MLwlgN','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','sXrEP','Starting\x20grid\x20','2044782BhyMIe','dkAGB','grid','clusterRegion','cRLUW','default','536967GCqMnG','LLRzn','24MGVNBH','../../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','start-grid-called','EUzIM','RviLa','cloudProvider','info','ZUdeA','help','../../utils/gridComponents','kUXcq','3295140ygxkMS','server-error','21goCXwq','description','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','type','init-not-called','../../cloudproviders/utils','VfIZi','clusterName','builder','../../config/constants','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YiHrZ','message','../../utils/webSocketUtils','command','name','aORbE','replace','4248060TONfhx','stringify','desc','invalid-grid-id','user','INFO','options','sKPLx','Start\x20an\x20existing\x20Automation\x20grid.','oJPeP','6400AIstte','nXYha','error','bstackAccesskey','handler','qomPO','ERROR','WebSocket','string','password','Adding\x20Websocket\x20listeners','epilogue','2blABxv','<PasswordPlaceholder>','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a19_0x317a=function(){return _0x4dd353;};return a19_0x317a();}
1
+ function a19_0x20b5(){const _0x21191c=['PvGtN','hTone','bstackAccesskey','clusterName','BfaZG','info','qNdEr','139839LLtjCw','gahhJ','Adding\x20Websocket\x20listeners','invalid-grid-id','builder','../../utils/utilityMethods','2192212QGxFCX','grid-id','7774929atiEyp','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','sYvvC','type','handler','SUFlm','default','usage','../../utils/webSocketUtils','Skip\x20insecure\x20cert\x20verification.','string','init-not-called','Ehtnl','epilogue','3OpMoYj','wbXtD','stringify','354wHsCfj','region','server-error','stack','../../cloudproviders/utils','../../utils/gridComponents','Start\x20an\x20existing\x20Automation\x20grid.','8MiuNyc','exit','error','jMHpY','uUnIX','skipTlsCertVerify','parse','eNHEd','bstackUsername','help','4578150iizYfb','rLdRY','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','addListeners','message','tODGG','name','tTVoY','start','../../utils/createk8sClient','FixHJ','ERROR','gridId','username','argv','user','<UsernamePlaceholder>','6142790pxpEGo','body','<PasswordPlaceholder>','password','969252GOTAKo','YSFGv','readFileSync','Iozcp','AclvL','statusCode','JIMeg','QJYzn','XaIpq','../../utils/instrumentationUtils','description','connectionTimeout','ytDLy','ClLXY','grid','unauthorised','WhUBG','replace','KkNdV','4256592ShQMrx','cloudProvider','desc','FkQwM'];a19_0x20b5=function(){return _0x21191c;};return a19_0x20b5();}const a19_0xe21a2c=a19_0x21f2;(function(_0x956f33,_0x28572f){const _0x44b23f=a19_0x21f2,_0x1af73e=_0x956f33();while(!![]){try{const _0x39b0f5=parseInt(_0x44b23f(0x10a))/0x1+-parseInt(_0x44b23f(0x12e))/0x2*(-parseInt(_0x44b23f(0x13f))/0x3)+-parseInt(_0x44b23f(0x11d))/0x4+parseInt(_0x44b23f(0x106))/0x5+-parseInt(_0x44b23f(0x142))/0x6*(parseInt(_0x44b23f(0x128))/0x7)+parseInt(_0x44b23f(0x149))/0x8*(-parseInt(_0x44b23f(0x130))/0x9)+parseInt(_0x44b23f(0xf4))/0xa;if(_0x39b0f5===_0x28572f)break;else _0x1af73e['push'](_0x1af73e['shift']());}catch(_0x4bf8af){_0x1af73e['push'](_0x1af73e['shift']());}}}(a19_0x20b5,0x9d7c3));function a19_0x21f2(_0x54517d,_0x2d7a8e){const _0x20b5e1=a19_0x20b5();return a19_0x21f2=function(_0x21f21a,_0xb0a7dc){_0x21f21a=_0x21f21a-0xf0;let _0x38b18c=_0x20b5e1[_0x21f21a];return _0x38b18c;},a19_0x21f2(_0x54517d,_0x2d7a8e);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0xe21a2c(0x12d)),{scaleUpHubDeployment}=require(a19_0xe21a2c(0x147)),{sendInstrumentationEvent}=require(a19_0xe21a2c(0x113)),webSocketUtils=require(a19_0xe21a2c(0x139)),{createK8sClient}=require(a19_0xe21a2c(0xfe)),{getCloudProviderObject}=require(a19_0xe21a2c(0x146));exports['command']=a19_0xe21a2c(0x118),exports[a19_0xe21a2c(0x11f)]=a19_0xe21a2c(0x148),exports[a19_0xe21a2c(0x12c)]=function(_0xb5cae2){const _0x1faf66=a19_0xe21a2c,_0x984896={};_0x984896[_0x1faf66(0xfa)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x984896['BfaZG']=_0x1faf66(0x13b),_0x984896[_0x1faf66(0x111)]=_0x1faf66(0x13a),_0x984896[_0x1faf66(0x121)]='boolean',_0x984896[_0x1faf66(0x127)]=_0x1faf66(0xf3);const _0x479164=_0x984896,_0x239a8a={};_0x239a8a[_0x1faf66(0x114)]=_0x479164['tODGG'],_0x239a8a[_0x1faf66(0x134)]=_0x479164[_0x1faf66(0x125)];const _0x4aaa9a={};_0x4aaa9a['description']=_0x479164[_0x1faf66(0x111)],_0x4aaa9a['type']=_0x479164['PvGtN'],_0x4aaa9a[_0x1faf66(0x137)]=![];const _0x4f18a1={};return _0x4f18a1[_0x1faf66(0x12f)]=_0x239a8a,_0x4f18a1['skip-tls-cert-verify']=_0x4aaa9a,_0xb5cae2[_0x1faf66(0x138)](HELP_HEADER_MESSAGE[_0x1faf66(0xfd)])[_0x1faf66(0x13e)](HELP_FOOTER_MESSAGE)['options'](_0x4f18a1)[_0x1faf66(0xf3)](_0x479164[_0x1faf66(0x127)])[_0x1faf66(0x103)];},exports[a19_0xe21a2c(0x135)]=async function(_0x4ac496){const _0x41fce0=a19_0xe21a2c,_0x14461d={'jMHpY':_0x41fce0(0x132),'rLdRY':function(_0x506644){return _0x506644();},'KkNdV':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ClLXY':function(_0x24062c,_0x69c139,_0xcdde60,_0xde64a6,_0x10ec7e,_0x80b217,_0x3f151a){return _0x24062c(_0x69c139,_0xcdde60,_0xde64a6,_0x10ec7e,_0x80b217,_0x3f151a);},'gahhJ':'start-grid-called','tTVoY':_0x41fce0(0x13c),'hTone':function(_0x13aaba,_0x76192e,_0x5b8352,_0x5b08c6,_0x4e0143,_0x588a7a,_0x463b1d){return _0x13aaba(_0x76192e,_0x5b8352,_0x5b08c6,_0x4e0143,_0x588a7a,_0x463b1d);},'eNHEd':function(_0xaeab22){return _0xaeab22();},'WhUBG':_0x41fce0(0x105),'YSFGv':_0x41fce0(0x108),'sYvvC':_0x41fce0(0x12a),'uUnIX':function(_0x102407,_0x3fb49d,_0x1f21a6,_0x2686b6){return _0x102407(_0x3fb49d,_0x1f21a6,_0x2686b6);},'Ehtnl':function(_0x148f29,_0x3cdf62,_0x5394ff,_0xc00e3e,_0x1512e5,_0x4d7d3f,_0x3edd24){return _0x148f29(_0x3cdf62,_0x5394ff,_0xc00e3e,_0x1512e5,_0x4d7d3f,_0x3edd24);},'XaIpq':function(_0x1c23b1,_0x1a77f0,_0x4e741c){return _0x1c23b1(_0x1a77f0,_0x4e741c);},'AclvL':function(_0x555e2b,_0x49080e,_0x8fd6a2){return _0x555e2b(_0x49080e,_0x8fd6a2);},'SUFlm':'Grid\x20started','cNGzc':function(_0x2f6552,_0xbad343){return _0x2f6552===_0xbad343;},'wbXtD':_0x41fce0(0xf6),'ytDLy':function(_0x10c260,_0x15bcff,_0x440bad,_0x50acea,_0x2dc6bd,_0x534013,_0x17fe0f){return _0x10c260(_0x15bcff,_0x440bad,_0x50acea,_0x2dc6bd,_0x534013,_0x17fe0f);},'Iozcp':_0x41fce0(0x119),'FkQwM':function(_0x15b4dd,_0x315e6c){return _0x15b4dd===_0x315e6c;},'JIMeg':_0x41fce0(0x12b),'FixHJ':function(_0x21e363,_0x1324cf,_0x31a4c5,_0x110df5,_0x3b7a8e,_0x3e5d89,_0x185369){return _0x21e363(_0x1324cf,_0x31a4c5,_0x110df5,_0x3b7a8e,_0x3e5d89,_0x185369);},'xTzNA':_0x41fce0(0x144)};let _0x423850;try{!_0x4ac496['gridId']&&(logger[_0x41fce0(0x14b)](_0x14461d[_0x41fce0(0x14c)]),process[_0x41fce0(0x14a)](0x1));!fs['existsSync'](_0x14461d[_0x41fce0(0xf5)](getCredentialsPath))&&(logger[_0x41fce0(0x14b)](_0x14461d[_0x41fce0(0x11c)]),await _0x14461d[_0x41fce0(0x117)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes[_0x41fce0(0x100)],_0x14461d[_0x41fce0(0xfc)],null,_0x4ac496),process[_0x41fce0(0x14a)](0x1));logger[_0x41fce0(0x126)]('Starting\x20grid\x20'+_0x4ac496[_0x41fce0(0x101)]),await _0x14461d[_0x41fce0(0x122)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes['INFO'],null,null,_0x4ac496);const _0x50ff8f=JSON[_0x41fce0(0xf0)](fs[_0x41fce0(0x10c)](_0x14461d[_0x41fce0(0xf1)](getCredentialsPath)));global_registry[_0x41fce0(0xf2)]=_0x50ff8f['Browserstack'][_0x41fce0(0x102)],global_registry[_0x41fce0(0x123)]=_0x50ff8f[_0x41fce0(0xf7)]['password'];const _0x9b2b29=WS_ENDPOINT[_0x41fce0(0x11b)](_0x14461d[_0x41fce0(0x11a)],_0x50ff8f['Browserstack'][_0x41fce0(0x102)])[_0x41fce0(0x11b)](_0x14461d[_0x41fce0(0x10b)],_0x50ff8f[_0x41fce0(0xf7)][_0x41fce0(0x109)]),_0x2195f5={};_0x2195f5['WebSocket']=ws,_0x2195f5[_0x41fce0(0x115)]=0x36ee80,_0x423850=new ReconnectingWebSocket(_0x9b2b29,[],_0x2195f5),logger['debug'](_0x14461d[_0x41fce0(0x133)]),webSocketUtils[_0x41fce0(0xf8)](_0x423850,_0x4ac496[_0x41fce0(0x104)],_0x4ac496['password']);const [_0x4295a9,_0x3befd9]=await _0x14461d[_0x41fce0(0x14d)](getGridDetails,_0x50ff8f['Browserstack'][_0x41fce0(0x102)],_0x50ff8f[_0x41fce0(0xf7)][_0x41fce0(0x109)],_0x4ac496[_0x41fce0(0x101)]);if(_0x3befd9){const _0x48e6b1=_0x3befd9['info'];global_registry[_0x41fce0(0x11e)]=_0x48e6b1[_0x41fce0(0x11e)],global_registry['clusterRegion']=_0x48e6b1[_0x41fce0(0x143)],global_registry[_0x41fce0(0x124)]=_0x48e6b1[_0x41fce0(0x124)];const _0x31f2f0=await _0x14461d[_0x41fce0(0x13d)](getCloudProviderObject,_0x48e6b1[_0x41fce0(0x11e)],_0x48e6b1[_0x41fce0(0x124)],_0x48e6b1[_0x41fce0(0xfb)],_0x423850,webSocketUtils,_0x4ac496),[_0x53f313,_0x1245d5,_0x4b0dd4,_0x1e3517,_0x1dc0e3,_0x4d5af3]=await _0x14461d[_0x41fce0(0x112)](createK8sClient,_0x31f2f0,_0x4ac496[_0x41fce0(0x14e)]);await _0x14461d[_0x41fce0(0x10e)](scaleUpHubDeployment,_0x1245d5,_0x48e6b1[_0x41fce0(0xfb)]),logger['info'](_0x14461d[_0x41fce0(0x136)]),process[_0x41fce0(0x14a)](0x0);}_0x14461d['cNGzc'](_0x4295a9[_0x41fce0(0x10f)],0x191)&&(logger['error'](_0x14461d[_0x41fce0(0x140)]),await _0x14461d[_0x41fce0(0x116)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes[_0x41fce0(0x100)],_0x14461d[_0x41fce0(0x10d)],null,_0x4ac496),process[_0x41fce0(0x14a)](0x1)),_0x14461d[_0x41fce0(0x120)](_0x4295a9[_0x41fce0(0x10f)],0x190)&&(logger[_0x41fce0(0x14b)](JSON[_0x41fce0(0xf0)](_0x4295a9[_0x41fce0(0x107)])[_0x41fce0(0xf9)]),await _0x14461d[_0x41fce0(0x116)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes['ERROR'],_0x14461d[_0x41fce0(0x110)],null,_0x4ac496),process['exit'](0x1)),logger[_0x41fce0(0x14b)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x41fce0(0x141)](_0x4295a9)),await _0x14461d[_0x41fce0(0xff)](sendInstrumentationEvent,_0x4ac496,_0x14461d['gahhJ'],messageTypes['ERROR'],_0x14461d['xTzNA'],_0x4295a9,_0x4ac496),process[_0x41fce0(0x14a)](0x1);}catch(_0x11e063){const _0x5e27a9=_0x41fce0(0x131)+_0x11e063+'\x20\x0a'+JSON['stringify'](_0x11e063[_0x41fce0(0x145)])+'\x20';logger[_0x41fce0(0x14b)](_0x5e27a9),process[_0x41fce0(0x14a)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x46d832=a20_0x1794;function a20_0x1794(_0x4927af,_0xe3ba22){const _0x197fc9=a20_0x197f();return a20_0x1794=function(_0x17941d,_0x221fd5){_0x17941d=_0x17941d-0x156;let _0xd9973a=_0x197fc9[_0x17941d];return _0xd9973a;},a20_0x1794(_0x4927af,_0xe3ba22);}(function(_0x6ea418,_0x4b8d0b){const _0x4a1f55=a20_0x1794,_0x350dba=_0x6ea418();while(!![]){try{const _0x17a30f=-parseInt(_0x4a1f55(0x166))/0x1+-parseInt(_0x4a1f55(0x15a))/0x2+parseInt(_0x4a1f55(0x15b))/0x3+parseInt(_0x4a1f55(0x159))/0x4*(parseInt(_0x4a1f55(0x15e))/0x5)+-parseInt(_0x4a1f55(0x162))/0x6*(parseInt(_0x4a1f55(0x15c))/0x7)+parseInt(_0x4a1f55(0x16d))/0x8+parseInt(_0x4a1f55(0x157))/0x9*(parseInt(_0x4a1f55(0x169))/0xa);if(_0x17a30f===_0x4b8d0b)break;else _0x350dba['push'](_0x350dba['shift']());}catch(_0x5436bd){_0x350dba['push'](_0x350dba['shift']());}}}(a20_0x197f,0x7f12b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x46d832(0x16c));exports['command']='stop',exports['desc']=a20_0x46d832(0x15f),exports[a20_0x46d832(0x167)]=function(_0x4df5e8){const _0x46aa3c=a20_0x46d832,_0x195d38={};_0x195d38[_0x46aa3c(0x16b)]=_0x46aa3c(0x16a),_0x195d38[_0x46aa3c(0x158)]='help';const _0x182a0d=_0x195d38;return _0x4df5e8[_0x46aa3c(0x15d)](HELP_HEADER_MESSAGE[_0x46aa3c(0x164)])[_0x46aa3c(0x163)](HELP_FOOTER_MESSAGE)[_0x46aa3c(0x168)](_0x182a0d[_0x46aa3c(0x16b)])[_0x46aa3c(0x161)]()[_0x46aa3c(0x160)]()[_0x46aa3c(0x156)]()[_0x46aa3c(0x165)](_0x182a0d[_0x46aa3c(0x158)]);},exports['handler']=function(_0x173c6d){};function a20_0x197f(){const _0xcf0bd1=['../config/constants','7342760imzNzp','strict','45eWGQsV','vemLp','1847092ibaWlC','875440cJRCwV','528609QTGgRR','7BzIeLO','usage','5nAkVns','Stop\x20a\x20running\x20Automation\x20grid.','recommendCommands','demandCommand','4974378nocSjD','epilogue','stop','help','442237LVYekD','builder','commandDir','1347380obOVVE','stop_commands','iRsRn'];a20_0x197f=function(){return _0xcf0bd1;};return a20_0x197f();}
1
+ const a20_0x4998bf=a20_0x12a0;(function(_0x4a50ed,_0x1d38d5){const _0x33b35f=a20_0x12a0,_0x33b94b=_0x4a50ed();while(!![]){try{const _0x12c24f=-parseInt(_0x33b35f(0x1d7))/0x1+-parseInt(_0x33b35f(0x1d4))/0x2+-parseInt(_0x33b35f(0x1ca))/0x3+parseInt(_0x33b35f(0x1c9))/0x4*(parseInt(_0x33b35f(0x1bf))/0x5)+-parseInt(_0x33b35f(0x1bd))/0x6*(-parseInt(_0x33b35f(0x1cb))/0x7)+-parseInt(_0x33b35f(0x1c2))/0x8*(-parseInt(_0x33b35f(0x1c4))/0x9)+-parseInt(_0x33b35f(0x1bc))/0xa*(-parseInt(_0x33b35f(0x1ce))/0xb);if(_0x12c24f===_0x1d38d5)break;else _0x33b94b['push'](_0x33b94b['shift']());}catch(_0x5ab901){_0x33b94b['push'](_0x33b94b['shift']());}}}(a20_0x2bd0,0xcfcbd));function a20_0x2bd0(){const _0x84b925=['stop_commands','handler','8gHRNHK','820662qPmknW','11244821VdSXVz','../config/constants','demandCommand','4684944qHMdct','epilogue','commandDir','help','recommendCommands','desc','2690036TzrTos','strict','stop','1681751tCJzAS','10AaSfoo','6toSDkr','Stop\x20a\x20running\x20Automation\x20grid.','1237975WHxxAB','RNXlf','zRjDN','8lGsWsZ','command','14615631PrIddY','usage','builder'];a20_0x2bd0=function(){return _0x84b925;};return a20_0x2bd0();}function a20_0x12a0(_0x1586e6,_0x14cb29){const _0x2bd071=a20_0x2bd0();return a20_0x12a0=function(_0x12a0cc,_0x5af283){_0x12a0cc=_0x12a0cc-0x1bc;let _0x175886=_0x2bd071[_0x12a0cc];return _0x175886;},a20_0x12a0(_0x1586e6,_0x14cb29);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x4998bf(0x1cc));exports[a20_0x4998bf(0x1c3)]=a20_0x4998bf(0x1d6),exports[a20_0x4998bf(0x1d3)]=a20_0x4998bf(0x1be),exports[a20_0x4998bf(0x1c6)]=function(_0x3f24a9){const _0x52966b=a20_0x4998bf,_0x94f87={};_0x94f87[_0x52966b(0x1c1)]=_0x52966b(0x1c7),_0x94f87[_0x52966b(0x1c0)]=_0x52966b(0x1d1);const _0x3f33e5=_0x94f87;return _0x3f24a9[_0x52966b(0x1c5)](HELP_HEADER_MESSAGE[_0x52966b(0x1d6)])[_0x52966b(0x1cf)](HELP_FOOTER_MESSAGE)[_0x52966b(0x1d0)](_0x3f33e5['zRjDN'])[_0x52966b(0x1cd)]()[_0x52966b(0x1d2)]()[_0x52966b(0x1d5)]()[_0x52966b(0x1d1)](_0x3f33e5[_0x52966b(0x1c0)]);},exports[a20_0x4998bf(0x1c8)]=function(_0x3c6f7f){};
@@ -1 +1 @@
1
- function a21_0x3ad5(){const _0x600d61=['WebSocket','help','afALp','hjZnn','Stop\x20a\x20running\x20Automation\x20grid.','type','command','clusterRegion','user','ERROR','iLgby','8421470HGLeWN','grid-id','wTuOL','string','argv','bMtLU','replace','<PasswordPlaceholder>','4652GROkpm','invalid-grid-id','iFIqJ','connectionTimeout','server-error','debug','clusterName','stop','9YuSYpX','addListeners','stop-grid-called','Grid\x20stoppped.','iswPs','boolean','desc','131190QkKMqO','username','bcHHn','info','cloudProvider','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Stopping\x20grid\x20','Browserstack','RlgzM','UpSwb','../../config/logger','../../utils/createk8sClient','error','1629UvtXCf','body','skipTlsCertVerify','password','bstackAccesskey','exit','parse','stringify','15EOOBDM','../../cloudproviders/utils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','Cdmiq','default','QghkQ','lcJxM','../../utils/instrumentationUtils','skip-tls-cert-verify','Skip\x20insecure\x20cert\x20verification.','GXTPA','NYeAe','EXmpU','statusCode','nsSgz','BGwgo','unauthorised','651556UNtopB','epilogue','42FYcSZB','reconnecting-websocket','bstackUsername','INFO','hcwmX','933040oqgEUS','14557153Mmqmem','options','init-not-called','12ezeDpa','message','HmLqB','builder','description','2iqDwND','9993753zlgrXs','IVVnI','usage','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','gridId'];a21_0x3ad5=function(){return _0x600d61;};return a21_0x3ad5();}function a21_0x138c(_0x2c763f,_0x2251d5){const _0x3ad541=a21_0x3ad5();return a21_0x138c=function(_0x138c11,_0x4ce5a4){_0x138c11=_0x138c11-0x1e4;let _0x826a20=_0x3ad541[_0x138c11];return _0x826a20;},a21_0x138c(_0x2c763f,_0x2251d5);}const a21_0x552ce9=a21_0x138c;(function(_0x3dc9ce,_0x410e03){const _0x1fc91f=a21_0x138c,_0x16f2d0=_0x3dc9ce();while(!![]){try{const _0x4d94cc=parseInt(_0x1fc91f(0x20f))/0x1*(parseInt(_0x1fc91f(0x1ff))/0x2)+parseInt(_0x1fc91f(0x1e5))/0x3*(-parseInt(_0x1fc91f(0x228))/0x4)+-parseInt(_0x1fc91f(0x1ed))/0x5*(-parseInt(_0x1fc91f(0x237))/0x6)+parseInt(_0x1fc91f(0x201))/0x7*(-parseInt(_0x1fc91f(0x206))/0x8)+-parseInt(_0x1fc91f(0x230))/0x9*(parseInt(_0x1fc91f(0x220))/0xa)+parseInt(_0x1fc91f(0x210))/0xb+parseInt(_0x1fc91f(0x20a))/0xc*(parseInt(_0x1fc91f(0x207))/0xd);if(_0x4d94cc===_0x410e03)break;else _0x16f2d0['push'](_0x16f2d0['shift']());}catch(_0x5e3e02){_0x16f2d0['push'](_0x16f2d0['shift']());}}}(a21_0x3ad5,0x8ba73));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x552ce9(0x202)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x552ce9(0x1f0)),{logger}=require(a21_0x552ce9(0x241)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x552ce9(0x1f5)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x552ce9(0x242)),{getCloudProviderObject}=require(a21_0x552ce9(0x1ee));exports[a21_0x552ce9(0x21b)]='grid',exports[a21_0x552ce9(0x236)]=a21_0x552ce9(0x219),exports[a21_0x552ce9(0x20d)]=function(_0x21c5a5){const _0x1f3c0f=a21_0x552ce9,_0x2d3d03={};_0x2d3d03[_0x1f3c0f(0x240)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x2d3d03['hjZnn']=_0x1f3c0f(0x223),_0x2d3d03[_0x1f3c0f(0x1f3)]=_0x1f3c0f(0x1f7),_0x2d3d03[_0x1f3c0f(0x1f1)]=_0x1f3c0f(0x235),_0x2d3d03[_0x1f3c0f(0x1f4)]=_0x1f3c0f(0x216);const _0x5289c1=_0x2d3d03,_0x182a6d={};_0x182a6d['description']=_0x5289c1[_0x1f3c0f(0x240)],_0x182a6d[_0x1f3c0f(0x21a)]=_0x5289c1[_0x1f3c0f(0x218)];const _0x5cda6b={};_0x5cda6b[_0x1f3c0f(0x20e)]=_0x5289c1[_0x1f3c0f(0x1f3)],_0x5cda6b[_0x1f3c0f(0x21a)]=_0x5289c1[_0x1f3c0f(0x1f1)],_0x5cda6b[_0x1f3c0f(0x1f2)]=![];const _0x426ace={};return _0x426ace[_0x1f3c0f(0x221)]=_0x182a6d,_0x426ace[_0x1f3c0f(0x1f6)]=_0x5cda6b,_0x21c5a5[_0x1f3c0f(0x212)](HELP_HEADER_MESSAGE[_0x1f3c0f(0x22f)])[_0x1f3c0f(0x200)](HELP_FOOTER_MESSAGE)[_0x1f3c0f(0x208)](_0x426ace)[_0x1f3c0f(0x216)](_0x5289c1[_0x1f3c0f(0x1f4)])[_0x1f3c0f(0x224)];},exports['handler']=async function(_0x1527c8){const _0x591acf=a21_0x552ce9,_0x4a7565={'hcwmX':_0x591acf(0x213),'iLgby':function(_0x18a1f3){return _0x18a1f3();},'NYeAe':_0x591acf(0x1ef),'bcHHn':function(_0x57cc79,_0x3f1d62,_0xbcebfe,_0xad7a49,_0x1ebbe7,_0x2682f5,_0x1a58bd){return _0x57cc79(_0x3f1d62,_0xbcebfe,_0xad7a49,_0x1ebbe7,_0x2682f5,_0x1a58bd);},'nsSgz':_0x591acf(0x232),'XsKXQ':_0x591acf(0x209),'iswPs':function(_0x52a8aa,_0x322618,_0x3c7626,_0x33bb6e,_0x530a26,_0x1b2f78,_0x5c6079){return _0x52a8aa(_0x322618,_0x3c7626,_0x33bb6e,_0x530a26,_0x1b2f78,_0x5c6079);},'aZVQL':'<UsernamePlaceholder>','BGwgo':_0x591acf(0x227),'uhirN':'Adding\x20Websocket\x20listeners','iFIqJ':function(_0x3ba47f,_0x26d032,_0x34b77d,_0x4caca0){return _0x3ba47f(_0x26d032,_0x34b77d,_0x4caca0);},'bMtLU':function(_0x970aaa,_0x16ebde,_0x3b0593){return _0x970aaa(_0x16ebde,_0x3b0593);},'afALp':function(_0x57aaa9,_0xdb0d6e,_0x1a550e){return _0x57aaa9(_0xdb0d6e,_0x1a550e);},'EXmpU':_0x591acf(0x233),'xpxlM':function(_0x53e763,_0x287156){return _0x53e763===_0x287156;},'IVVnI':_0x591acf(0x23c),'RlgzM':_0x591acf(0x1fe),'HmLqB':function(_0x79774e,_0x51dc54){return _0x79774e===_0x51dc54;},'wTuOL':_0x591acf(0x229),'GXTPA':_0x591acf(0x22c)};let _0x3d49cb;try{!_0x1527c8[_0x591acf(0x214)]&&(logger['error'](_0x4a7565[_0x591acf(0x205)]),process[_0x591acf(0x1ea)](0x1));!fs['existsSync'](_0x4a7565[_0x591acf(0x21f)](getCredentialsPath))&&(logger[_0x591acf(0x1e4)](_0x4a7565[_0x591acf(0x1f9)]),await _0x4a7565['bcHHn'](sendInstrumentationEvent,_0x1527c8,_0x4a7565[_0x591acf(0x1fc)],messageTypes['ERROR'],_0x4a7565['XsKXQ'],null,_0x1527c8),process[_0x591acf(0x1ea)](0x1));logger[_0x591acf(0x23a)](_0x591acf(0x23d)+_0x1527c8[_0x591acf(0x214)]),await _0x4a7565[_0x591acf(0x234)](sendInstrumentationEvent,_0x1527c8,_0x4a7565['nsSgz'],messageTypes[_0x591acf(0x204)],null,null,_0x1527c8);const _0x3a20f8=JSON[_0x591acf(0x1eb)](fs['readFileSync'](_0x4a7565['iLgby'](getCredentialsPath)));global_registry[_0x591acf(0x203)]=_0x3a20f8[_0x591acf(0x23e)]['username'],global_registry[_0x591acf(0x1e9)]=_0x3a20f8[_0x591acf(0x23e)]['password'];const _0x2a4196=WS_ENDPOINT['replace'](_0x4a7565['aZVQL'],_0x3a20f8[_0x591acf(0x23e)]['username'])[_0x591acf(0x226)](_0x4a7565[_0x591acf(0x1fd)],_0x3a20f8[_0x591acf(0x23e)][_0x591acf(0x1e8)]),_0x5d2477={};_0x5d2477[_0x591acf(0x215)]=ws,_0x5d2477[_0x591acf(0x22b)]=0x36ee80,_0x3d49cb=new ReconnectingWebSocket(_0x2a4196,[],_0x5d2477),logger[_0x591acf(0x22d)](_0x4a7565['uhirN']),webSocketUtils[_0x591acf(0x231)](_0x3d49cb,_0x1527c8[_0x591acf(0x21d)],_0x1527c8[_0x591acf(0x1e8)]);const [_0x379499,_0x3f832f]=await _0x4a7565[_0x591acf(0x22a)](getGridDetails,_0x3a20f8[_0x591acf(0x23e)][_0x591acf(0x238)],_0x3a20f8[_0x591acf(0x23e)][_0x591acf(0x1e8)],_0x1527c8['gridId']);if(_0x3f832f){const _0x4845cf=_0x3f832f['info'];global_registry[_0x591acf(0x23b)]=_0x4845cf[_0x591acf(0x23b)],global_registry[_0x591acf(0x21c)]=_0x4845cf['region'],global_registry[_0x591acf(0x22e)]=_0x4845cf['clusterName'];const _0x3b1b36=await _0x4a7565[_0x591acf(0x234)](getCloudProviderObject,_0x4845cf[_0x591acf(0x23b)],_0x4845cf['clusterName'],_0x4845cf['name'],_0x3d49cb,webSocketUtils,_0x1527c8),[_0x360aff,_0x4b34fe,_0x1f083e,_0x64367,_0x585a6e,_0x4f2195]=await _0x4a7565[_0x591acf(0x225)](createK8sClient,_0x3b1b36,_0x1527c8[_0x591acf(0x1e7)]);await _0x4a7565[_0x591acf(0x217)](scaleDownHubDeployment,_0x4b34fe,_0x4845cf['name']),logger[_0x591acf(0x23a)](_0x4a7565[_0x591acf(0x1fa)]),process[_0x591acf(0x1ea)](0x0);}_0x4a7565['xpxlM'](_0x379499[_0x591acf(0x1fb)],0x191)&&(logger['error'](_0x4a7565[_0x591acf(0x211)]),await _0x4a7565[_0x591acf(0x234)](sendInstrumentationEvent,_0x1527c8,_0x4a7565['nsSgz'],messageTypes['ERROR'],_0x4a7565[_0x591acf(0x23f)],null,_0x1527c8),process['exit'](0x1)),_0x4a7565[_0x591acf(0x20c)](_0x379499[_0x591acf(0x1fb)],0x190)&&(logger[_0x591acf(0x1e4)](JSON[_0x591acf(0x1eb)](_0x379499[_0x591acf(0x1e6)])[_0x591acf(0x20b)]),await _0x4a7565[_0x591acf(0x239)](sendInstrumentationEvent,_0x1527c8,_0x4a7565[_0x591acf(0x1fc)],messageTypes[_0x591acf(0x21e)],_0x4a7565[_0x591acf(0x222)],null,_0x1527c8),process[_0x591acf(0x1ea)](0x1)),logger[_0x591acf(0x1e4)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x591acf(0x1ec)](_0x379499)),await _0x4a7565[_0x591acf(0x234)](sendInstrumentationEvent,_0x1527c8,_0x4a7565[_0x591acf(0x1fc)],messageTypes[_0x591acf(0x21e)],_0x4a7565[_0x591acf(0x1f8)],_0x379499,_0x1527c8),process[_0x591acf(0x1ea)](0x1);}catch(_0x289bdc){const _0x1d187b='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x289bdc+'\x20\x0a'+JSON[_0x591acf(0x1ec)](_0x289bdc['stack'])+'\x20';logger[_0x591acf(0x1e4)](_0x1d187b),process['exit'](0x1);}};
1
+ const a21_0x531523=a21_0x14ce;function a21_0x1e7d(){const _0x36f133=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','epilogue','Stop\x20a\x20running\x20Automation\x20grid.','phhlm','command','stringify','stack','default','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hkumy','statusCode','message','Skip\x20insecure\x20cert\x20verification.','options','readFileSync','connectionTimeout','qGccg','Adding\x20Websocket\x20listeners','gridId','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','cloudProvider','Okjne','parse','help','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','135INoJHX','../../config/logger','name','grid-id','exit','grid','tnGmC','2FxaHRl','replace','lzjIx','eEfUR','ERROR','stop','username','../../cloudproviders/utils','../../utils/webSocketUtils','zpSNc','2062370KmzgCQ','builder','error','BynlA','9099220ZeUBPn','NLizh','1321563iURdFw','9206834eJqyog','<UsernamePlaceholder>','nWxot','MzjDh','password','PyKma','kILuv','mukOn','zYOVq','<PasswordPlaceholder>','type','cMTCl','../../utils/createk8sClient','NgEGu','rUjKA','invalid-grid-id','7070304joXNai','skip-tls-cert-verify','description','reconnecting-websocket','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','clusterName','WWBPm','desc','1096426RvkNgb','init-not-called','Grid\x20stoppped.','Idydl','server-error','vFBzD','bstackUsername','argv','body','INFO','403976MHLgvO','Browserstack','info','6PwFrpt','../../utils/utilityMethods','clusterRegion','usage','Xsgee','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'];a21_0x1e7d=function(){return _0x36f133;};return a21_0x1e7d();}(function(_0x260a7d,_0x2bb3cb){const _0x54a860=a21_0x14ce,_0x1b22f9=_0x260a7d();while(!![]){try{const _0x73c2cc=-parseInt(_0x54a860(0x1f9))/0x1*(parseInt(_0x54a860(0x22d))/0x2)+-parseInt(_0x54a860(0x1df))/0x3+parseInt(_0x54a860(0x1f0))/0x4+parseInt(_0x54a860(0x1d9))/0x5+-parseInt(_0x54a860(0x206))/0x6*(parseInt(_0x54a860(0x1e0))/0x7)+-parseInt(_0x54a860(0x203))/0x8*(-parseInt(_0x54a860(0x226))/0x9)+parseInt(_0x54a860(0x1dd))/0xa;if(_0x73c2cc===_0x2bb3cb)break;else _0x1b22f9['push'](_0x1b22f9['shift']());}catch(_0x2e3b10){_0x1b22f9['push'](_0x1b22f9['shift']());}}}(a21_0x1e7d,0xf2f92));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x531523(0x1f3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x531523(0x227)),{getCredentialsPath,getGridDetails}=require(a21_0x531523(0x207)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x531523(0x1d7)),{createK8sClient}=require(a21_0x531523(0x1ec)),{getCloudProviderObject}=require(a21_0x531523(0x1d6));function a21_0x14ce(_0xb5e8f5,_0x3aa09b){const _0x1e7dc3=a21_0x1e7d();return a21_0x14ce=function(_0x14cee7,_0x5971d0){_0x14cee7=_0x14cee7-0x1d5;let _0x44a17f=_0x1e7dc3[_0x14cee7];return _0x44a17f;},a21_0x14ce(_0xb5e8f5,_0x3aa09b);}exports[a21_0x531523(0x210)]=a21_0x531523(0x22b),exports[a21_0x531523(0x1f8)]=a21_0x531523(0x20e),exports[a21_0x531523(0x1da)]=function(_0x204f0b){const _0x4abad6=a21_0x531523,_0x226029={};_0x226029['lzjIx']=_0x4abad6(0x220),_0x226029[_0x4abad6(0x1e3)]='string',_0x226029['mukOn']=_0x4abad6(0x219),_0x226029[_0x4abad6(0x230)]='boolean',_0x226029[_0x4abad6(0x1de)]=_0x4abad6(0x224);const _0x555d3d=_0x226029,_0x5f3fe3={};_0x5f3fe3['description']=_0x555d3d[_0x4abad6(0x22f)],_0x5f3fe3['type']=_0x555d3d['MzjDh'];const _0x4eef40={};_0x4eef40[_0x4abad6(0x1f2)]=_0x555d3d[_0x4abad6(0x1e7)],_0x4eef40[_0x4abad6(0x1ea)]=_0x555d3d['eEfUR'],_0x4eef40[_0x4abad6(0x213)]=![];const _0x387236={};return _0x387236[_0x4abad6(0x229)]=_0x5f3fe3,_0x387236[_0x4abad6(0x1f1)]=_0x4eef40,_0x204f0b[_0x4abad6(0x209)](HELP_HEADER_MESSAGE[_0x4abad6(0x232)])[_0x4abad6(0x20d)](HELP_FOOTER_MESSAGE)[_0x4abad6(0x21a)](_0x387236)[_0x4abad6(0x224)](_0x555d3d[_0x4abad6(0x1de)])[_0x4abad6(0x200)];},exports[a21_0x531523(0x214)]=async function(_0xd30302){const _0x1cb2fc=a21_0x531523,_0x21ad44={'zpSNc':_0x1cb2fc(0x225),'phhlm':function(_0x4f5f50){return _0x4f5f50();},'rUjKA':_0x1cb2fc(0x20c),'qGccg':function(_0x5c9d5d,_0x25b2ae,_0x41552b,_0x22ccf1,_0x3f9ed0,_0x291b70,_0x22dfdd){return _0x5c9d5d(_0x25b2ae,_0x41552b,_0x22ccf1,_0x3f9ed0,_0x291b70,_0x22dfdd);},'vFBzD':'stop-grid-called','BynlA':_0x1cb2fc(0x1fa),'DZowA':function(_0x196175,_0x1875de,_0x33f2a5,_0x5c23c9,_0x2bce96,_0x42bc5b,_0x33dccb){return _0x196175(_0x1875de,_0x33f2a5,_0x5c23c9,_0x2bce96,_0x42bc5b,_0x33dccb);},'nWxot':function(_0x34a509){return _0x34a509();},'wYaQT':_0x1cb2fc(0x1e1),'dzReD':_0x1cb2fc(0x1e9),'NgEGu':_0x1cb2fc(0x21e),'PyKma':function(_0x7fad8d,_0x4b8db5,_0x1a0b87,_0x350382){return _0x7fad8d(_0x4b8db5,_0x1a0b87,_0x350382);},'Xsgee':function(_0x11e4a2,_0x2f9b77,_0x39033c,_0x35cc41,_0x540d0e,_0x1ff91c,_0x43208e){return _0x11e4a2(_0x2f9b77,_0x39033c,_0x35cc41,_0x540d0e,_0x1ff91c,_0x43208e);},'WWBPm':function(_0x109e51,_0x113de7,_0x4985c3){return _0x109e51(_0x113de7,_0x4985c3);},'zYOVq':function(_0x229fd1,_0x29d041,_0x2e4e3d){return _0x229fd1(_0x29d041,_0x2e4e3d);},'dYDaD':_0x1cb2fc(0x1fb),'kILuv':function(_0xbf406f,_0x32d740){return _0xbf406f===_0x32d740;},'AnZVf':_0x1cb2fc(0x215),'hkumy':function(_0x533d85,_0x16edb1,_0x5a4bce,_0x197f81,_0x4a1b97,_0x24bca1,_0x45d3ea){return _0x533d85(_0x16edb1,_0x5a4bce,_0x197f81,_0x4a1b97,_0x24bca1,_0x45d3ea);},'cMTCl':'unauthorised','Idydl':function(_0x81582d,_0x38a571){return _0x81582d===_0x38a571;},'tnGmC':function(_0x30d9a0,_0x36c747,_0x1ddb25,_0x189c2e,_0x203670,_0x585035,_0x649180){return _0x30d9a0(_0x36c747,_0x1ddb25,_0x189c2e,_0x203670,_0x585035,_0x649180);},'nQRkD':_0x1cb2fc(0x1ef),'Okjne':_0x1cb2fc(0x1fd)};let _0x2bcadb;try{!_0xd30302[_0x1cb2fc(0x21f)]&&(logger['error'](_0x21ad44[_0x1cb2fc(0x1d8)]),process['exit'](0x1));!fs[_0x1cb2fc(0x1f4)](_0x21ad44[_0x1cb2fc(0x20f)](getCredentialsPath))&&(logger[_0x1cb2fc(0x1db)](_0x21ad44[_0x1cb2fc(0x1ee)]),await _0x21ad44[_0x1cb2fc(0x21d)](sendInstrumentationEvent,_0xd30302,_0x21ad44['vFBzD'],messageTypes[_0x1cb2fc(0x231)],_0x21ad44[_0x1cb2fc(0x1dc)],null,_0xd30302),process[_0x1cb2fc(0x22a)](0x1));logger['info']('Stopping\x20grid\x20'+_0xd30302['gridId']),await _0x21ad44['DZowA'](sendInstrumentationEvent,_0xd30302,_0x21ad44[_0x1cb2fc(0x1fe)],messageTypes[_0x1cb2fc(0x202)],null,null,_0xd30302);const _0x3ead4c=JSON[_0x1cb2fc(0x223)](fs[_0x1cb2fc(0x21b)](_0x21ad44[_0x1cb2fc(0x1e2)](getCredentialsPath)));global_registry[_0x1cb2fc(0x1ff)]=_0x3ead4c[_0x1cb2fc(0x204)][_0x1cb2fc(0x1d5)],global_registry['bstackAccesskey']=_0x3ead4c[_0x1cb2fc(0x204)]['password'];const _0x59d084=WS_ENDPOINT[_0x1cb2fc(0x22e)](_0x21ad44['wYaQT'],_0x3ead4c['Browserstack'][_0x1cb2fc(0x1d5)])[_0x1cb2fc(0x22e)](_0x21ad44['dzReD'],_0x3ead4c[_0x1cb2fc(0x204)]['password']),_0x503fea={};_0x503fea['WebSocket']=ws,_0x503fea[_0x1cb2fc(0x21c)]=0x36ee80,_0x2bcadb=new ReconnectingWebSocket(_0x59d084,[],_0x503fea),logger['debug'](_0x21ad44[_0x1cb2fc(0x1ed)]),webSocketUtils['addListeners'](_0x2bcadb,_0xd30302['user'],_0xd30302[_0x1cb2fc(0x1e4)]);const [_0x4db74d,_0x4d76e8]=await _0x21ad44[_0x1cb2fc(0x1e5)](getGridDetails,_0x3ead4c['Browserstack'][_0x1cb2fc(0x1d5)],_0x3ead4c['Browserstack'][_0x1cb2fc(0x1e4)],_0xd30302[_0x1cb2fc(0x21f)]);if(_0x4d76e8){const _0x286303=_0x4d76e8[_0x1cb2fc(0x205)];global_registry[_0x1cb2fc(0x221)]=_0x286303[_0x1cb2fc(0x221)],global_registry[_0x1cb2fc(0x208)]=_0x286303['region'],global_registry[_0x1cb2fc(0x1f6)]=_0x286303[_0x1cb2fc(0x1f6)];const _0x516460=await _0x21ad44[_0x1cb2fc(0x20a)](getCloudProviderObject,_0x286303[_0x1cb2fc(0x221)],_0x286303['clusterName'],_0x286303[_0x1cb2fc(0x228)],_0x2bcadb,webSocketUtils,_0xd30302),[_0x276a41,_0x4fea74,_0x57dd18,_0x471915,_0x169a8c,_0x236672]=await _0x21ad44[_0x1cb2fc(0x1f7)](createK8sClient,_0x516460,_0xd30302['skipTlsCertVerify']);await _0x21ad44[_0x1cb2fc(0x1e8)](scaleDownHubDeployment,_0x4fea74,_0x286303[_0x1cb2fc(0x228)]),logger[_0x1cb2fc(0x205)](_0x21ad44['dYDaD']),process[_0x1cb2fc(0x22a)](0x0);}_0x21ad44[_0x1cb2fc(0x1e6)](_0x4db74d[_0x1cb2fc(0x217)],0x191)&&(logger['error'](_0x21ad44['AnZVf']),await _0x21ad44[_0x1cb2fc(0x216)](sendInstrumentationEvent,_0xd30302,_0x21ad44['vFBzD'],messageTypes['ERROR'],_0x21ad44[_0x1cb2fc(0x1eb)],null,_0xd30302),process[_0x1cb2fc(0x22a)](0x1)),_0x21ad44[_0x1cb2fc(0x1fc)](_0x4db74d[_0x1cb2fc(0x217)],0x190)&&(logger['error'](JSON[_0x1cb2fc(0x223)](_0x4db74d[_0x1cb2fc(0x201)])[_0x1cb2fc(0x218)]),await _0x21ad44[_0x1cb2fc(0x22c)](sendInstrumentationEvent,_0xd30302,_0x21ad44[_0x1cb2fc(0x1fe)],messageTypes['ERROR'],_0x21ad44['nQRkD'],null,_0xd30302),process[_0x1cb2fc(0x22a)](0x1)),logger[_0x1cb2fc(0x1db)](_0x1cb2fc(0x1f5)+JSON[_0x1cb2fc(0x211)](_0x4db74d)),await _0x21ad44[_0x1cb2fc(0x21d)](sendInstrumentationEvent,_0xd30302,_0x21ad44[_0x1cb2fc(0x1fe)],messageTypes['ERROR'],_0x21ad44[_0x1cb2fc(0x222)],_0x4db74d,_0xd30302),process['exit'](0x1);}catch(_0x5ea6d0){const _0x5b6061=_0x1cb2fc(0x20b)+_0x5ea6d0+'\x20\x0a'+JSON[_0x1cb2fc(0x211)](_0x5ea6d0[_0x1cb2fc(0x212)])+'\x20';logger[_0x1cb2fc(0x1db)](_0x5b6061),process[_0x1cb2fc(0x22a)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x9f12d6=a22_0x171d;(function(_0x41c3f7,_0x2a1ce8){const _0xf5178a=a22_0x171d,_0x5656c5=_0x41c3f7();while(!![]){try{const _0x128cc6=-parseInt(_0xf5178a(0x8a))/0x1*(parseInt(_0xf5178a(0xa5))/0x2)+parseInt(_0xf5178a(0x7c))/0x3*(parseInt(_0xf5178a(0xc8))/0x4)+parseInt(_0xf5178a(0xca))/0x5*(parseInt(_0xf5178a(0xb0))/0x6)+-parseInt(_0xf5178a(0x89))/0x7*(parseInt(_0xf5178a(0xcd))/0x8)+parseInt(_0xf5178a(0x92))/0x9*(-parseInt(_0xf5178a(0x75))/0xa)+-parseInt(_0xf5178a(0x6e))/0xb*(parseInt(_0xf5178a(0xa1))/0xc)+parseInt(_0xf5178a(0x99))/0xd;if(_0x128cc6===_0x2a1ce8)break;else _0x5656c5['push'](_0x5656c5['shift']());}catch(_0x2c305a){_0x5656c5['push'](_0x5656c5['shift']());}}}(a22_0x140e,0xa7808),require(a22_0x9f12d6(0xae))[a22_0x9f12d6(0x81)](),exports[a22_0x9f12d6(0x96)]=process[a22_0x9f12d6(0x9c)][a22_0x9f12d6(0x96)]||a22_0x9f12d6(0xaa),exports[a22_0x9f12d6(0x90)]=process[a22_0x9f12d6(0x9c)][a22_0x9f12d6(0x90)]||a22_0x9f12d6(0x88),exports[a22_0x9f12d6(0xcc)]=process[a22_0x9f12d6(0x9c)]['AG_API_URL']||'grid-api.browserstack.com',exports[a22_0x9f12d6(0xb2)]=a22_0x9f12d6(0xb5)+this[a22_0x9f12d6(0xcc)]+a22_0x9f12d6(0x6b),exports[a22_0x9f12d6(0xd0)]=a22_0x9f12d6(0xce),exports[a22_0x9f12d6(0x8b)]=a22_0x9f12d6(0x71),exports[a22_0x9f12d6(0xa8)]=a22_0x9f12d6(0xc6),exports[a22_0x9f12d6(0x86)]=a22_0x9f12d6(0xbd),exports[a22_0x9f12d6(0xa0)]='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x9f12d6(0xba)]=a22_0x9f12d6(0x72),exports['TURBOSCALE_DEPLOYMENT']=a22_0x9f12d6(0x6f),exports[a22_0x9f12d6(0xb8)]=a22_0x9f12d6(0xa4),exports[a22_0x9f12d6(0x78)]=a22_0x9f12d6(0xa9),exports[a22_0x9f12d6(0xc2)]=[this['AWS'],this[a22_0x9f12d6(0xb8)],this[a22_0x9f12d6(0x78)]]);const a22_0x2d8c96={};a22_0x2d8c96[a22_0x9f12d6(0xb3)]=a22_0x9f12d6(0x94),a22_0x2d8c96[a22_0x9f12d6(0xad)]=a22_0x9f12d6(0xb6);function a22_0x171d(_0x595746,_0x5ef3bc){const _0x140e20=a22_0x140e();return a22_0x171d=function(_0x171d31,_0x50baac){_0x171d31=_0x171d31-0x6b;let _0x116187=_0x140e20[_0x171d31];return _0x116187;},a22_0x171d(_0x595746,_0x5ef3bc);}const a22_0xa5684c={};a22_0xa5684c[a22_0x9f12d6(0xb3)]=a22_0x9f12d6(0x7b),a22_0xa5684c[a22_0x9f12d6(0xad)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x2d8c96,a22_0xa5684c];if(process[a22_0x9f12d6(0x9c)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x9f12d6(0x9c)][a22_0x9f12d6(0xa2)][a22_0x9f12d6(0x8c)](',');parsedTags['forEach'](_0x2e3a78=>{const _0x19c439=a22_0x9f12d6,_0x6d0135=_0x2e3a78['split'](':'),_0x1960c8={};_0x1960c8[_0x19c439(0xb3)]=_0x6d0135[0x0],_0x1960c8[_0x19c439(0xad)]=_0x6d0135[0x1],common_hst_tags_list[_0x19c439(0xc5)](_0x1960c8);});}exports[a22_0x9f12d6(0x76)]=common_hst_tags_list;const a22_0x3d6eaf={};function a22_0x140e(){const _0x59791c=['CLUSTER_HUB_HA_STACK_NAME','CLI_RUN_STARTED','global_registry','aws','HELP_FOOTER_MESSAGE','CLI_ARGS_REGEX','CLI_RUN_FINISHED','create','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','DEFAULT_CLUSTER_DETAILS','push','high-scale-grid','grid-profile','1156wvBgMb','MessageDescription','615VweQeJ','messageTypes','AG_API_URL','22760cnQsRS','credentials','INFO','CP_CONFIG_FILE','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','SUCCESS','11zJPVjV','browserstack-turboscale-grid','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','BrowserStackIAMUser','BSTACK-ATS-CLUSTER-HUB-HA','REDACTED','GRID_URL','40DfSRsA','COMMON_HST_TAGS','root','GCP','LINK_MESSAGE','LOG','browserstack:service','4311MQulYL','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BrowserStack-Automate-TurboScale','SUPPORTED_CLOUD_PROVIDERS','[REDACTED]','config','delete','REGION','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','HELP_HEADER_MESSAGE','AWS','unknown','api.browserstack.com','2765jOsMos','3323SwQTEy','IAM_USER_NAME','split','stop','init','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','BS_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','1570977OfDsVU','list','browserstack:managedBy','CLUSTER','DASHBOARD_ENDPOINT','us-east-1','WS_EVENTS','33470177hhPMhe','high-scale-grid-cluster','RAW_ARGS_REGEX','env','resourceInfo','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','CLOUD_PROVIDER','CLUSTER_DEP_STACK_NAME','9356772YyykvA','TURBOSCALE_CUSTOM_TAGS','error','azure','514XOVbPm','TRIAL_GRID_URL','warning','DEFAULT_GRID_NAME','gcp','grid.browserstack.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','log','Value','dotenv','UNKNOWN','56190ichsZn','connect','WS_ENDPOINT','Key','HST_CLUSTER_TAGS','wss://','BrowserStack','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','AZURE','configure'];a22_0x140e=function(){return _0x59791c;};return a22_0x140e();}a22_0x3d6eaf[a22_0x9f12d6(0x94)]=a22_0x9f12d6(0xb6),a22_0x3d6eaf[a22_0x9f12d6(0x7b)]=a22_0x9f12d6(0x7e),exports[a22_0x9f12d6(0xb4)]=a22_0x3d6eaf,exports[a22_0x9f12d6(0x7f)]=[this[a22_0x9f12d6(0x86)]];const a22_0x1cb027={};a22_0x1cb027[a22_0x9f12d6(0x7a)]=a22_0x9f12d6(0xac),a22_0x1cb027['RESOURCES']=a22_0x9f12d6(0x9d),a22_0x1cb027[a22_0x9f12d6(0x74)]='gridUrl',a22_0x1cb027[a22_0x9f12d6(0xbb)]='cliRunStarted',a22_0x1cb027[a22_0x9f12d6(0xc0)]='cliRunFinished',exports[a22_0x9f12d6(0x98)]=a22_0x1cb027,exports[a22_0x9f12d6(0xbc)]={},exports[a22_0x9f12d6(0x79)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x473717={};a22_0x473717[a22_0x9f12d6(0x77)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this['LINK_MESSAGE'],a22_0x473717[a22_0x9f12d6(0x8e)]=a22_0x9f12d6(0xab)+this['LINK_MESSAGE'],a22_0x473717[a22_0x9f12d6(0xb9)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x9f12d6(0x79)],a22_0x473717[a22_0x9f12d6(0xc1)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x9f12d6(0x79)],a22_0x473717[a22_0x9f12d6(0x93)]={},a22_0x473717[a22_0x9f12d6(0x82)]=a22_0x9f12d6(0xc3)+this['LINK_MESSAGE'],a22_0x473717[a22_0x9f12d6(0xb1)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x9f12d6(0x79)],a22_0x473717['start']=a22_0x9f12d6(0x70)+this[a22_0x9f12d6(0x79)],a22_0x473717[a22_0x9f12d6(0x8d)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x473717['pre_check']=a22_0x9f12d6(0x9e)+this[a22_0x9f12d6(0x79)],a22_0x473717[a22_0x9f12d6(0x93)][a22_0x9f12d6(0x77)]=a22_0x9f12d6(0xb7)+this[a22_0x9f12d6(0x79)],a22_0x473717[a22_0x9f12d6(0x93)]['grid']=a22_0x9f12d6(0x8f)+this['LINK_MESSAGE'],a22_0x473717[a22_0x9f12d6(0x93)]['gridProfile']=a22_0x9f12d6(0x91)+this[a22_0x9f12d6(0x79)],exports[a22_0x9f12d6(0x85)]=a22_0x473717,exports[a22_0x9f12d6(0xbe)]=a22_0x9f12d6(0x6c);const a22_0x39d572={};a22_0x39d572[a22_0x9f12d6(0x6d)]='success',a22_0x39d572['ERROR']=a22_0x9f12d6(0xa3),a22_0x39d572[a22_0x9f12d6(0xcf)]='info',a22_0x39d572['WARNING']=a22_0x9f12d6(0xa7),a22_0x39d572[a22_0x9f12d6(0xaf)]=a22_0x9f12d6(0x87),a22_0x39d572['NULL']=null,exports[a22_0x9f12d6(0xcb)]=a22_0x39d572,exports[a22_0x9f12d6(0xbf)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x9f12d6(0x9b)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x9f12d6(0x73)]=a22_0x9f12d6(0x80);const a22_0x3169b3={};a22_0x3169b3[a22_0x9f12d6(0xc7)]=a22_0x9f12d6(0x84);const a22_0x3426ca={};a22_0x3426ca['pre-check']=a22_0x3169b3,exports[a22_0x9f12d6(0xc9)]=a22_0x3426ca,exports[a22_0x9f12d6(0xa6)]=a22_0x9f12d6(0x7d);const a22_0x239eab={};a22_0x239eab[a22_0x9f12d6(0x95)]=a22_0x9f12d6(0x9a),a22_0x239eab[a22_0x9f12d6(0x9f)]=a22_0x9f12d6(0xbd),a22_0x239eab[a22_0x9f12d6(0x83)]=a22_0x9f12d6(0x97),exports[a22_0x9f12d6(0xc4)]=a22_0x239eab;
1
+ const a22_0x25972c=a22_0x2bd8;(function(_0x135b66,_0x801a46){const _0x2cfd6d=a22_0x2bd8,_0x1289d3=_0x135b66();while(!![]){try{const _0x17cc06=-parseInt(_0x2cfd6d(0x1c9))/0x1*(-parseInt(_0x2cfd6d(0x1e8))/0x2)+-parseInt(_0x2cfd6d(0x1c0))/0x3+-parseInt(_0x2cfd6d(0x1a7))/0x4*(parseInt(_0x2cfd6d(0x1cd))/0x5)+-parseInt(_0x2cfd6d(0x1c2))/0x6*(-parseInt(_0x2cfd6d(0x1a8))/0x7)+-parseInt(_0x2cfd6d(0x20b))/0x8*(parseInt(_0x2cfd6d(0x1e5))/0x9)+-parseInt(_0x2cfd6d(0x1b3))/0xa+parseInt(_0x2cfd6d(0x1c5))/0xb;if(_0x17cc06===_0x801a46)break;else _0x1289d3['push'](_0x1289d3['shift']());}catch(_0x5ad352){_0x1289d3['push'](_0x1289d3['shift']());}}}(a22_0x5406,0xd14e1),require(a22_0x25972c(0x1fa))[a22_0x25972c(0x1bd)]());let gridURL=a22_0x25972c(0x1d9),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x25972c(0x1fb);const _env=(process['env'][a22_0x25972c(0x20a)]||'prod')[a22_0x25972c(0x1ac)]();if(_env===a22_0x25972c(0x1b4)||_env===a22_0x25972c(0x1f9))gridURL=a22_0x25972c(0x1e2),bsApiUrl=a22_0x25972c(0x1de),agApiUrl=a22_0x25972c(0x1f3);else(_env===a22_0x25972c(0x20d)||_env===a22_0x25972c(0x1ec))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x25972c(0x1b2),agApiUrl=a22_0x25972c(0x1ee));exports[a22_0x25972c(0x1e3)]=process['env'][a22_0x25972c(0x1e3)]||gridURL,exports[a22_0x25972c(0x1c3)]=process[a22_0x25972c(0x1c1)][a22_0x25972c(0x1c3)]||bsApiUrl,exports[a22_0x25972c(0x1ed)]=process['env']['AG_API_URL']||agApiUrl,exports[a22_0x25972c(0x1bc)]=a22_0x25972c(0x207)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x25972c(0x201)]=a22_0x25972c(0x1aa),exports[a22_0x25972c(0x1d7)]='BrowserStackIAMUser',exports[a22_0x25972c(0x1b6)]='high-scale-grid',exports[a22_0x25972c(0x1e7)]=a22_0x25972c(0x1d3),exports['CLUSTER_DEP_STACK_NAME']=a22_0x25972c(0x1ce),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x25972c(0x1b8)]=a22_0x25972c(0x1cf),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x25972c(0x1a9)]=a22_0x25972c(0x1ea),exports['GCP']=a22_0x25972c(0x1ba),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x25972c(0x1e7)],this[a22_0x25972c(0x1a9)],this[a22_0x25972c(0x1fd)]];const a22_0x1721d8={};a22_0x1721d8['Key']=a22_0x25972c(0x1e4),a22_0x1721d8[a22_0x25972c(0x1e9)]='BrowserStack';const a22_0x2689bb={};a22_0x2689bb[a22_0x25972c(0x1d5)]=a22_0x25972c(0x209),a22_0x2689bb[a22_0x25972c(0x1e9)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x1721d8,a22_0x2689bb];function a22_0x5406(){const _0x5e9279=['warning','29UNInMB','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','INFO','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','3187955iSVQvV','BSTACK-ATS-CLUSTER','BSTACK-ATS-CLUSTER-HUB-HA','HELP_FOOTER_MESSAGE','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','CLUSTER','aws','SUCCESS','Key','ERROR','IAM_USER_NAME','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid.browserstack.com','TRIAL_GRID_URL','init','REDACTED','us-east-1','api-devhst.bsstag.com','cliRunStarted','WS_EVENTS','CLI_ARGS_REGEX','grid-devhst.bsstag.com','DASHBOARD_ENDPOINT','browserstack:managedBy','731529uGmZzs','root','AWS','284FyADNL','Value','azure','gridUrl','pre-prod','AG_API_URL','grid-api-preprod.bsstag.com','WARNING','forEach','resourceInfo','global_registry','grid-api-devhst.bsstag.com','grid','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','info','HST_CLUSTER_TAGS','stag','dotenv','grid-api.browserstack.com','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','GCP','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','create','messageTypes','CP_CONFIG_FILE','CLOUD_PROVIDER','list','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','RESOURCES','SUPPORTED_CLOUD_PROVIDERS','wss://','BrowserStack','browserstack:service','BROWSERSTACK_ENV','16RPoIDJ','stop','preprod','COMMON_HST_TAGS','pre-check','4RlpfUD','1307929Fvkwzi','AZURE','credentials','connect','toLowerCase','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','LINK_MESSAGE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','api-preprod.bsstag.com','14961000iRyFzG','staging','split','DEFAULT_GRID_NAME','start','CLUSTER_HUB_HA_STACK_NAME','MessageDescription','gcp','delete','WS_ENDPOINT','config','push','pre_check','4752114scXmPY','env','12Aeftew','BS_API_URL','GRID_URL','47957712SQMCpe','RAW_ARGS_REGEX','LOG'];a22_0x5406=function(){return _0x5e9279;};return a22_0x5406();}if(process[a22_0x25972c(0x1c1)][a22_0x25972c(0x1ae)]){const parsedTags=process[a22_0x25972c(0x1c1)][a22_0x25972c(0x1ae)]['split'](',');parsedTags[a22_0x25972c(0x1f0)](_0x2067be=>{const _0x111f5c=a22_0x25972c,_0x32273c=_0x2067be[_0x111f5c(0x1b5)](':'),_0x3014d7={};_0x3014d7[_0x111f5c(0x1d5)]=_0x32273c[0x0],_0x3014d7[_0x111f5c(0x1e9)]=_0x32273c[0x1],common_hst_tags_list[_0x111f5c(0x1be)](_0x3014d7);});}exports[a22_0x25972c(0x20e)]=common_hst_tags_list;function a22_0x2bd8(_0x4ff6d8,_0x16187d){const _0x540615=a22_0x5406();return a22_0x2bd8=function(_0x2bd807,_0x3887d6){_0x2bd807=_0x2bd807-0x1a6;let _0x1f73f9=_0x540615[_0x2bd807];return _0x1f73f9;},a22_0x2bd8(_0x4ff6d8,_0x16187d);}const a22_0x17eb9a={};a22_0x17eb9a[a22_0x25972c(0x1e4)]=a22_0x25972c(0x208),a22_0x17eb9a[a22_0x25972c(0x209)]='BrowserStack-Automate-TurboScale',exports[a22_0x25972c(0x1f8)]=a22_0x17eb9a,exports[a22_0x25972c(0x206)]=[this[a22_0x25972c(0x1e7)]];const a22_0x2c511b={};a22_0x2c511b[a22_0x25972c(0x1c7)]='log',a22_0x2c511b[a22_0x25972c(0x205)]=a22_0x25972c(0x1f1),a22_0x2c511b[a22_0x25972c(0x1c4)]=a22_0x25972c(0x1eb),a22_0x2c511b['CLI_RUN_STARTED']=a22_0x25972c(0x1df),a22_0x2c511b['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x25972c(0x1e0)]=a22_0x2c511b,exports[a22_0x25972c(0x1f2)]={},exports[a22_0x25972c(0x1b0)]=a22_0x25972c(0x1ca);const a22_0x388a82={};a22_0x388a82['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1db)]=a22_0x25972c(0x1d8)+this[a22_0x25972c(0x1b0)],a22_0x388a82['configure']=a22_0x25972c(0x1fe)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1ff)]=a22_0x25972c(0x1b1)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)]={},a22_0x388a82[a22_0x25972c(0x1bb)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1ab)]=a22_0x25972c(0x1af)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1b7)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x20c)]=a22_0x25972c(0x1cc)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1bf)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)][a22_0x25972c(0x1e6)]=a22_0x25972c(0x1f5)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)][a22_0x25972c(0x1f4)]=a22_0x25972c(0x1f6)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)]['gridProfile']=a22_0x25972c(0x204)+this[a22_0x25972c(0x1b0)],exports['HELP_HEADER_MESSAGE']=a22_0x388a82,exports[a22_0x25972c(0x1d0)]=a22_0x25972c(0x1ad);const a22_0x403a58={};a22_0x403a58[a22_0x25972c(0x1d4)]='success',a22_0x403a58[a22_0x25972c(0x1d6)]='error',a22_0x403a58[a22_0x25972c(0x1cb)]=a22_0x25972c(0x1f7),a22_0x403a58[a22_0x25972c(0x1ef)]=a22_0x25972c(0x1c8),a22_0x403a58['UNKNOWN']='unknown',a22_0x403a58['NULL']=null,exports[a22_0x25972c(0x200)]=a22_0x403a58,exports[a22_0x25972c(0x1e1)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x25972c(0x1c6)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x25972c(0x1dc)]='[REDACTED]';const a22_0x110c5d={};a22_0x110c5d['grid-profile']=a22_0x25972c(0x1d1);const a22_0x54c30d={};a22_0x54c30d[a22_0x25972c(0x1a6)]=a22_0x110c5d,exports[a22_0x25972c(0x1b9)]=a22_0x54c30d,exports[a22_0x25972c(0x1da)]=a22_0x25972c(0x1fc);const a22_0x307531={};a22_0x307531[a22_0x25972c(0x1d2)]='high-scale-grid-cluster',a22_0x307531[a22_0x25972c(0x202)]=a22_0x25972c(0x1d3),a22_0x307531['REGION']=a22_0x25972c(0x1dd),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x307531;
@@ -1 +1 @@
1
- const a23_0xc4e741=a23_0x987a;(function(_0x324738,_0x4dc777){const _0x1338f1=a23_0x987a,_0x57ccf1=_0x324738();while(!![]){try{const _0x176b0b=parseInt(_0x1338f1(0x1e3))/0x1+-parseInt(_0x1338f1(0x1f6))/0x2*(-parseInt(_0x1338f1(0x1f5))/0x3)+-parseInt(_0x1338f1(0x1db))/0x4*(parseInt(_0x1338f1(0x1da))/0x5)+-parseInt(_0x1338f1(0x1e4))/0x6*(parseInt(_0x1338f1(0x1ef))/0x7)+-parseInt(_0x1338f1(0x1ed))/0x8*(-parseInt(_0x1338f1(0x1dc))/0x9)+parseInt(_0x1338f1(0x1f0))/0xa*(-parseInt(_0x1338f1(0x1e9))/0xb)+-parseInt(_0x1338f1(0x1ea))/0xc*(parseInt(_0x1338f1(0x1e7))/0xd);if(_0x176b0b===_0x4dc777)break;else _0x57ccf1['push'](_0x57ccf1['shift']());}catch(_0x2229a7){_0x57ccf1['push'](_0x57ccf1['shift']());}}}(a23_0x9711,0xe8f19));const winston=require(a23_0xc4e741(0x1f8)),fs=require('fs'),path=require('path'),logDir=a23_0xc4e741(0x1dd);!fs['existsSync'](logDir)&&fs[a23_0xc4e741(0x1ee)](logDir);const a23_0x4c181d={};function a23_0x9711(){const _0x123ead=['mkdirSync','22071AUVyzw','490OLucuR','transports','events.log','format','join','313209uCZuYc','14NsqEvl','debug','winston','usage.log','colorize','Console','35uNvTYW','35404fZgYkc','4691214uuXJfd','log','message','level','timestamp','logger','createLogger','918083mPNzUQ','78cXRWjk','console.info','File','820378qfVzua','printf','94039TAUbPj','132LWEOVE','combine','YYYY-MM-DD\x20HH:mm:ss','8FcUBpy'];a23_0x9711=function(){return _0x123ead;};return a23_0x9711();}a23_0x4c181d[a23_0xc4e741(0x1f3)]=a23_0xc4e741(0x1ec);const a23_0x2356ca={};a23_0x2356ca['level']=!![];const a23_0x211cbb={};a23_0x211cbb['name']=a23_0xc4e741(0x1e5),exports[a23_0xc4e741(0x1e1)]=new winston[(a23_0xc4e741(0x1e2))]({'format':winston[a23_0xc4e741(0x1f3)][a23_0xc4e741(0x1eb)](winston[a23_0xc4e741(0x1f3)]['timestamp'](a23_0x4c181d),winston[a23_0xc4e741(0x1f3)][a23_0xc4e741(0x1fa)](a23_0x2356ca),winston[a23_0xc4e741(0x1f3)][a23_0xc4e741(0x1e8)](_0x1a32c4=>_0x1a32c4[a23_0xc4e741(0x1e0)]+'\x20-\x20'+_0x1a32c4[a23_0xc4e741(0x1df)]+':\x20'+_0x1a32c4[a23_0xc4e741(0x1de)])),'transports':[new winston[(a23_0xc4e741(0x1f1))][(a23_0xc4e741(0x1fb))](a23_0x211cbb),new winston[(a23_0xc4e741(0x1f1))][(a23_0xc4e741(0x1e6))]({'filename':path['join'](logDir,a23_0xc4e741(0x1f2)),'level':a23_0xc4e741(0x1f7)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0xc4e741(0x1f1))][(a23_0xc4e741(0x1e6))]({'filename':path[a23_0xc4e741(0x1f4)](logDir,a23_0xc4e741(0x1f9)),'level':'debug'})]};function a23_0x987a(_0x1e2c72,_0x1ee663){const _0x9711ee=a23_0x9711();return a23_0x987a=function(_0x987a9c,_0x27568c){_0x987a9c=_0x987a9c-0x1da;let _0x51ee9e=_0x9711ee[_0x987a9c];return _0x51ee9e;},a23_0x987a(_0x1e2c72,_0x1ee663);}exports['fileLogger']=new winston[(a23_0xc4e741(0x1e2))](winstonFileLoggerParams);
1
+ const a23_0x50a082=a23_0x1cfe;(function(_0x36cf67,_0x556334){const _0x421a4a=a23_0x1cfe,_0x3abf98=_0x36cf67();while(!![]){try{const _0x4fa30a=parseInt(_0x421a4a(0x17a))/0x1+parseInt(_0x421a4a(0x17b))/0x2+-parseInt(_0x421a4a(0x187))/0x3*(-parseInt(_0x421a4a(0x175))/0x4)+parseInt(_0x421a4a(0x18b))/0x5+parseInt(_0x421a4a(0x17f))/0x6+parseInt(_0x421a4a(0x184))/0x7+-parseInt(_0x421a4a(0x177))/0x8;if(_0x4fa30a===_0x556334)break;else _0x3abf98['push'](_0x3abf98['shift']());}catch(_0x135826){_0x3abf98['push'](_0x3abf98['shift']());}}}(a23_0x40e4,0xd7fcb));const winston=require(a23_0x50a082(0x190)),fs=require('fs'),path=require(a23_0x50a082(0x176)),logDir=a23_0x50a082(0x178);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x845e22={};function a23_0x1cfe(_0xb4f4ea,_0x389e6e){const _0x40e4e4=a23_0x40e4();return a23_0x1cfe=function(_0x1cfe9b,_0x1f3be9){_0x1cfe9b=_0x1cfe9b-0x172;let _0x6a63b6=_0x40e4e4[_0x1cfe9b];return _0x6a63b6;},a23_0x1cfe(_0xb4f4ea,_0x389e6e);}a23_0x845e22['format']=a23_0x50a082(0x18a);const a23_0xf9d88e={};a23_0xf9d88e['level']=!![];const a23_0x317361={};a23_0x317361[a23_0x50a082(0x179)]=a23_0x50a082(0x18d),exports[a23_0x50a082(0x186)]=new winston[(a23_0x50a082(0x185))]({'format':winston[a23_0x50a082(0x17c)][a23_0x50a082(0x182)](winston[a23_0x50a082(0x17c)][a23_0x50a082(0x17e)](a23_0x845e22),winston['format'][a23_0x50a082(0x174)](a23_0xf9d88e),winston[a23_0x50a082(0x17c)][a23_0x50a082(0x181)](_0x59e223=>_0x59e223[a23_0x50a082(0x17e)]+a23_0x50a082(0x183)+_0x59e223[a23_0x50a082(0x180)]+':\x20'+_0x59e223[a23_0x50a082(0x189)])),'transports':[new winston[(a23_0x50a082(0x18c))][(a23_0x50a082(0x188))](a23_0x317361),new winston[(a23_0x50a082(0x18c))][(a23_0x50a082(0x173))]({'filename':path[a23_0x50a082(0x172)](logDir,a23_0x50a082(0x18e)),'level':a23_0x50a082(0x18f)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x50a082(0x18c))]['File']({'filename':path[a23_0x50a082(0x172)](logDir,a23_0x50a082(0x191)),'level':a23_0x50a082(0x18f)})]};function a23_0x40e4(){const _0xabbb38=['\x20-\x20','4363373eEySOv','createLogger','logger','3105807bEmgVG','Console','message','YYYY-MM-DD\x20HH:mm:ss','3216555khGFCr','transports','console.info','events.log','debug','winston','usage.log','join','File','colorize','4kCvpQl','path','34757656bfKgew','log','name','1438109ftTYNd','2940530tyWyyG','format','fileLogger','timestamp','114582LmYVbm','level','printf','combine'];a23_0x40e4=function(){return _0xabbb38;};return a23_0x40e4();}exports[a23_0x50a082(0x17d)]=new winston[(a23_0x50a082(0x185))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x2c30d9=a24_0x22cb;(function(_0x5260f2,_0x58b366){const _0x3258b0=a24_0x22cb,_0x514e04=_0x5260f2();while(!![]){try{const _0x59625c=parseInt(_0x3258b0(0x13b))/0x1+-parseInt(_0x3258b0(0x142))/0x2*(-parseInt(_0x3258b0(0x13a))/0x3)+parseInt(_0x3258b0(0x131))/0x4+parseInt(_0x3258b0(0x138))/0x5+parseInt(_0x3258b0(0x135))/0x6+parseInt(_0x3258b0(0x134))/0x7+-parseInt(_0x3258b0(0x133))/0x8;if(_0x59625c===_0x58b366)break;else _0x514e04['push'](_0x514e04['shift']());}catch(_0x38fa48){_0x514e04['push'](_0x514e04['shift']());}}}(a24_0x328c,0x57795));function a24_0x22cb(_0x366260,_0x332399){const _0x328c0=a24_0x328c();return a24_0x22cb=function(_0x22cbfa,_0x1752c5){_0x22cbfa=_0x22cbfa-0x130;let _0x1f3132=_0x328c0[_0x22cbfa];return _0x1f3132;},a24_0x22cb(_0x366260,_0x332399);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2c30d9(0x13e));process['env'][a24_0x2c30d9(0x137)]=0x1;function run(_0xf8781e){const _0x4a61c9=a24_0x2c30d9,_0x4e5c10={};_0x4e5c10[_0x4a61c9(0x13d)]=_0x4a61c9(0x139),_0x4e5c10[_0x4a61c9(0x141)]='help';const _0x10528e=_0x4e5c10;_0xf8781e[_0x4a61c9(0x132)](HELP_HEADER_MESSAGE[_0x4a61c9(0x13c)])[_0x4a61c9(0x136)](_0x10528e['ghWaY'])[_0x4a61c9(0x130)]()['help'](_0x10528e[_0x4a61c9(0x141)])[_0x4a61c9(0x13f)](HELP_FOOTER_MESSAGE);}function a24_0x328c(){const _0x2b800a=['epilogue','exports','eSYun','4YWocwD','demandCommand','1385976KVMDFO','usage','20795048DejYnc','4737075TvPdUG','3260880GtiJIq','commandDir','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','3058065NqvHXR','commands','1041744FtdVUt','84866CJzmyk','root','ghWaY','./config/constants'];a24_0x328c=function(){return _0x2b800a;};return a24_0x328c();}module[a24_0x2c30d9(0x140)]=run;
2
+ 'use strict';const a24_0x205bae=a24_0x1a1d;(function(_0x20d1e1,_0x348d42){const _0x343a80=a24_0x1a1d,_0x24aa4a=_0x20d1e1();while(!![]){try{const _0x1f5ea2=parseInt(_0x343a80(0x69))/0x1+parseInt(_0x343a80(0x7b))/0x2*(parseInt(_0x343a80(0x70))/0x3)+-parseInt(_0x343a80(0x77))/0x4*(parseInt(_0x343a80(0x7a))/0x5)+parseInt(_0x343a80(0x68))/0x6*(parseInt(_0x343a80(0x74))/0x7)+parseInt(_0x343a80(0x6e))/0x8+parseInt(_0x343a80(0x79))/0x9*(-parseInt(_0x343a80(0x73))/0xa)+-parseInt(_0x343a80(0x75))/0xb*(parseInt(_0x343a80(0x6b))/0xc);if(_0x1f5ea2===_0x348d42)break;else _0x24aa4a['push'](_0x24aa4a['shift']());}catch(_0x500089){_0x24aa4a['push'](_0x24aa4a['shift']());}}}(a24_0x2a8d,0x50672));function a24_0x2a8d(){const _0x36a37d=['xNJhI','help','36170hYerBs','278089PErFFa','22zxYeAW','YYLjV','4372fuqvOv','root','1413LwXoYH','35JBrDTI','121886ZxclPj','24YWlYof','119353NwJneK','usage','696972RhINLf','demandCommand','exports','2041656jsYcDN','commandDir','24QfWfEW'];a24_0x2a8d=function(){return _0x36a37d;};return a24_0x2a8d();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x1a1d(_0x481047,_0x2e441a){const _0x2a8d2b=a24_0x2a8d();return a24_0x1a1d=function(_0x1a1d30,_0x46de9a){_0x1a1d30=_0x1a1d30-0x68;let _0x327317=_0x2a8d2b[_0x1a1d30];return _0x327317;},a24_0x1a1d(_0x481047,_0x2e441a);}process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0xb4f94c){const _0x199c90=a24_0x1a1d,_0x56945d={};_0x56945d[_0x199c90(0x76)]='commands',_0x56945d[_0x199c90(0x71)]=_0x199c90(0x72);const _0xb1d94a=_0x56945d;_0xb4f94c[_0x199c90(0x6a)](HELP_HEADER_MESSAGE[_0x199c90(0x78)])[_0x199c90(0x6f)](_0xb1d94a['YYLjV'])[_0x199c90(0x6c)]()[_0x199c90(0x72)](_0xb1d94a[_0x199c90(0x71)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x205bae(0x6d)]=run;