browserstack-node-sdk 1.36.6 → 1.36.7

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 (166) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/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/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/v2/TestInfo.js +1 -1
  95. package/src/bin/v2/browserstackCLI.js +1 -1
  96. package/src/bin/v2/cliUtils.js +1 -1
  97. package/src/bin/v2/customTagManager.js +1 -1
  98. package/src/bin/v2/eventDispatcher.js +1 -1
  99. package/src/bin/v2/framework/automationFramework.js +1 -1
  100. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  101. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  102. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  103. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  104. package/src/bin/v2/framework/testFramework.js +1 -1
  105. package/src/bin/v2/grpcClient.js +1 -1
  106. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  107. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  108. package/src/bin/v2/instances/trackedContext.js +1 -1
  109. package/src/bin/v2/instances/trackedInstance.js +1 -1
  110. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  111. package/src/bin/v2/modules/baseModule.js +1 -1
  112. package/src/bin/v2/modules/observabilityModule.js +1 -1
  113. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  114. package/src/bin/v2/modules/testhubModule.js +1 -1
  115. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  116. package/src/bin/v2/state/hookState.js +1 -1
  117. package/src/bin/v2/state/testFrameworkState.js +1 -1
  118. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  119. package/src/bin/vanilla-js/command.js +1 -1
  120. package/src/browserStackSdk.js +1 -1
  121. package/src/helpers/BrowserStackSetup.js +1 -1
  122. package/src/helpers/accessibility-automation/constants.js +1 -1
  123. package/src/helpers/accessibility-automation/helper.js +1 -1
  124. package/src/helpers/accessibility-automation/scripts.js +1 -1
  125. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  126. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  127. package/src/helpers/ats/constants.js +1 -1
  128. package/src/helpers/ats/helper.js +1 -1
  129. package/src/helpers/capsMapping.js +1 -1
  130. package/src/helpers/central-scanner/constants.js +1 -1
  131. package/src/helpers/central-scanner/helpers.js +1 -1
  132. package/src/helpers/classLogger.js +1 -1
  133. package/src/helpers/globals.js +1 -1
  134. package/src/helpers/helper.js +1 -1
  135. package/src/helpers/logger.js +1 -1
  136. package/src/helpers/metadata.js +1 -1
  137. package/src/helpers/patchHelper.js +1 -1
  138. package/src/helpers/patchHelpers.js +1 -1
  139. package/src/helpers/percy/Percy.js +1 -1
  140. package/src/helpers/percy/PercyBinary.js +1 -1
  141. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  142. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  143. package/src/helpers/percy/PercySDK.js +1 -1
  144. package/src/helpers/percy/index.js +1 -1
  145. package/src/helpers/percy/utils.js +1 -1
  146. package/src/helpers/performance/constants.js +1 -1
  147. package/src/helpers/performance/performance-tester.js +1 -1
  148. package/src/helpers/processHelper.js +1 -1
  149. package/src/helpers/request-spy.js +1 -1
  150. package/src/helpers/setKeepAlive.js +1 -1
  151. package/src/helpers/test-observability/constants.js +1 -1
  152. package/src/helpers/test-observability/error-handler.js +1 -1
  153. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  154. package/src/helpers/test-observability/sessionHandler.js +1 -1
  155. package/src/helpers/test-observability/utils.js +1 -1
  156. package/src/helpers/test-orchestration/fail-fast/fileHelper.js +1 -1
  157. package/src/helpers/test-orchestration/fail-fast/jest.js +1 -1
  158. package/src/helpers/test-orchestration/fail-fast/requestUtils.js +1 -1
  159. package/src/helpers/testhub/constants.js +1 -1
  160. package/src/helpers/testhub/testhubHandler.js +1 -1
  161. package/src/helpers/testhub/utils.js +1 -1
  162. package/src/helpers/timeoutPromise.js +1 -1
  163. package/src/helpers/utilities.js +1 -1
  164. package/src/helpers/w3cMapping.js +1 -1
  165. package/src/hubAllocationMethods.js +1 -1
  166. package/src/index.js +1 -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_0x46c1a1=a15_0x40f1;(function(_0xa5b6fe,_0x2a8d40){const _0xaa1c34=a15_0x40f1,_0x7d6075=_0xa5b6fe();while(!![]){try{const _0x341327=-parseInt(_0xaa1c34(0x16e))/0x1*(parseInt(_0xaa1c34(0x13e))/0x2)+-parseInt(_0xaa1c34(0x12d))/0x3*(parseInt(_0xaa1c34(0x146))/0x4)+-parseInt(_0xaa1c34(0x144))/0x5+parseInt(_0xaa1c34(0x123))/0x6*(-parseInt(_0xaa1c34(0x172))/0x7)+-parseInt(_0xaa1c34(0x125))/0x8*(parseInt(_0xaa1c34(0x179))/0x9)+-parseInt(_0xaa1c34(0x12e))/0xa*(parseInt(_0xaa1c34(0x129))/0xb)+-parseInt(_0xaa1c34(0x151))/0xc*(-parseInt(_0xaa1c34(0x152))/0xd);if(_0x341327===_0x2a8d40)break;else _0x7d6075['push'](_0x7d6075['shift']());}catch(_0xc89dff){_0x7d6075['push'](_0x7d6075['shift']());}}}(a15_0x526f,0xc97a0));const fs=require('fs'),got=require(a15_0x46c1a1(0x178)),{table}=require(a15_0x46c1a1(0x169)),{v4:uuidv4}=require(a15_0x46c1a1(0x159)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x46c1a1(0x16f)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x46c1a1(0x154));function a15_0x526f(){const _0x5c81ab=['body','grids','queued','requestId','bstackAccesskey','rrrzo','error','readFileSync','table','allGrids','INFO','MyMxQ','running','86zBFLth','../../config/constants','unauthorised','LtLEJ','28vHYoZM','password','list-grids-called','pFYiG','boolean','ODPdD','got','126DCmSgO','name','Browserstack','unknown-error','YzSYJ','aBrut','jHXsa','407112dwOWKl','list','636344NzSyVV','YQOUK','HQEFr','grid-name','38951zrarlq','Failed\x20to\x20list\x20resources!\x20Error:\x20','username','handler','23871iwwnDY','3550HUEfbX','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','type','AaOne','GET','YRRKf','options','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xprVI','wUhqp','vdzPN','vLkqm','statusCode','ERROR','description','11108pLNohv','argv','HRXpa','yzFVz','/packages/cli/get-grids','exit','5771785nblPZs','vrthc','568XAZxZZ','https://','cluster-name','push','help','stringify','existsSync','log','command','vMnne','YdMlc','57324mXnGgZ','16952zvqsmn','SsYIs','../../utils/instrumentationUtils','all-grids','status','forEach','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','uuid','vmizP','YIqBu','init-not-called','osIpR','desc','parse','wtDQj'];a15_0x526f=function(){return _0x5c81ab;};return a15_0x526f();}function a15_0x40f1(_0x40f0c0,_0x40e398){const _0x526f95=a15_0x526f();return a15_0x40f1=function(_0x40f1e4,_0x4c722e){_0x40f1e4=_0x40f1e4-0x11d;let _0x25bdd1=_0x526f95[_0x40f1e4];return _0x25bdd1;},a15_0x40f1(_0x40f0c0,_0x40e398);}exports[a15_0x46c1a1(0x14e)]=a15_0x46c1a1(0x162),exports[a15_0x46c1a1(0x15e)]=a15_0x46c1a1(0x158),exports['builder']=function(_0x47cd55){const _0x1221e2=a15_0x46c1a1,_0x50e748={};_0x50e748[_0x1221e2(0x122)]=_0x1221e2(0x135),_0x50e748['AaOne']=_0x1221e2(0x176),_0x50e748['HQEFr']=_0x1221e2(0x14a);const _0x15028f=_0x50e748,_0x5e9fd3={};_0x5e9fd3[_0x1221e2(0x13d)]=_0x15028f['jHXsa'],_0x5e9fd3[_0x1221e2(0x130)]=_0x15028f[_0x1221e2(0x131)];const _0x19f64b={};return _0x19f64b[_0x1221e2(0x155)]=_0x5e9fd3,_0x47cd55['usage'](HELP_HEADER_MESSAGE[_0x1221e2(0x124)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1221e2(0x134)](_0x19f64b)[_0x1221e2(0x14a)](_0x15028f[_0x1221e2(0x127)])[_0x1221e2(0x13f)];},exports[a15_0x46c1a1(0x12c)]=async function(_0x269f78){const _0x59cd72=a15_0x46c1a1,_0x5c0ced={'vmizP':function(_0x4b117b){return _0x4b117b();},'osIpR':function(_0x2818f3){return _0x2818f3();},'YQOUK':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HRXpa':function(_0x4b3a09,_0x3eb146,_0x48cc37,_0x15199f,_0x39a385,_0x3aa2ef,_0x59fe25){return _0x4b3a09(_0x3eb146,_0x48cc37,_0x15199f,_0x39a385,_0x3aa2ef,_0x59fe25);},'LtLEJ':_0x59cd72(0x174),'YIqBu':_0x59cd72(0x15c),'MyMxQ':function(_0x45453d){return _0x45453d();},'YzSYJ':_0x59cd72(0x132),'yzFVz':function(_0x318b39,_0x57548f,_0x1af21e){return _0x318b39(_0x57548f,_0x1af21e);},'LcdFL':function(_0x12e42a,_0x590a63,_0x2f5160,_0x55e39a,_0x5f56b7,_0x17f317,_0x53e3f9){return _0x12e42a(_0x590a63,_0x2f5160,_0x55e39a,_0x5f56b7,_0x17f317,_0x53e3f9);},'pFYiG':function(_0x4fdeef,_0x3f1683,_0x42eee3){return _0x4fdeef(_0x3f1683,_0x42eee3);},'wUhqp':function(_0x31985a,_0x28ee30){return _0x31985a!==_0x28ee30;},'QVDkt':function(_0x14a08e,_0x3fc5c7){return _0x14a08e!==_0x3fc5c7;},'DqcTd':function(_0x4e650a,_0x19316b){return _0x4e650a===_0x19316b;},'YdMlc':'\x0aFound\x20the\x20following\x20grids:\x0a','vMnne':'grid-id','YRRKf':_0x59cd72(0x128),'ODPdD':_0x59cd72(0x156),'wtDQj':_0x59cd72(0x16d),'vdzPN':_0x59cd72(0x163),'aBrut':_0x59cd72(0x148),'rrrzo':function(_0x3ba9b8,_0x19ffb2){return _0x3ba9b8(_0x19ffb2);},'SsYIs':function(_0x16d316,_0xce2616){return _0x16d316===_0xce2616;},'vLkqm':_0x59cd72(0x136),'vrthc':function(_0x251a24,_0x545803,_0x7140f6,_0x1e9bcd,_0x5a51c1,_0x27fc88,_0x8dc49){return _0x251a24(_0x545803,_0x7140f6,_0x1e9bcd,_0x5a51c1,_0x27fc88,_0x8dc49);},'xprVI':_0x59cd72(0x170),'MDHkE':'server-error','yKKWj':_0x59cd72(0x11f)};try{global_registry[_0x59cd72(0x164)]=_0x5c0ced[_0x59cd72(0x15a)](uuidv4);!fs[_0x59cd72(0x14c)](_0x5c0ced[_0x59cd72(0x15d)](getCredentialsPath))&&(console['error'](_0x5c0ced[_0x59cd72(0x126)]),await _0x5c0ced[_0x59cd72(0x140)](sendInstrumentationEvent,_0x269f78,_0x5c0ced[_0x59cd72(0x171)],messageTypes[_0x59cd72(0x13c)],_0x5c0ced[_0x59cd72(0x15b)],null,_0x269f78),process[_0x59cd72(0x143)](0x1));const _0x162c38=JSON['parse'](fs[_0x59cd72(0x168)](_0x5c0ced[_0x59cd72(0x16c)](getCredentialsPath)));let _0x3db88d=_0x59cd72(0x147)+AG_API_URL+_0x59cd72(0x142);_0x269f78[_0x59cd72(0x16a)]&&(_0x3db88d='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x5425cd={'method':_0x5c0ced[_0x59cd72(0x120)],'headers':_0x5c0ced[_0x59cd72(0x141)](getAuthHeader,_0x162c38[_0x59cd72(0x11e)][_0x59cd72(0x12b)],_0x162c38['Browserstack'][_0x59cd72(0x173)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x162c38['Browserstack'][_0x59cd72(0x12b)],global_registry[_0x59cd72(0x165)]=_0x162c38['Browserstack'][_0x59cd72(0x173)],_0x5c0ced['LcdFL'](sendInstrumentationEvent,_0x269f78,_0x5c0ced['LtLEJ'],messageTypes[_0x59cd72(0x16b)],null,null,_0x269f78);const _0x556ba8=await _0x5c0ced[_0x59cd72(0x175)](got,_0x3db88d,_0x5425cd);if(_0x5c0ced[_0x59cd72(0x138)](_0x556ba8,null)&&_0x5c0ced['QVDkt'](_0x556ba8,undefined)&&_0x5c0ced['DqcTd'](_0x556ba8[_0x59cd72(0x13b)],0xc8)){const _0x649da0=JSON[_0x59cd72(0x15f)](_0x556ba8[_0x59cd72(0x161)]);console[_0x59cd72(0x14d)](_0x5c0ced[_0x59cd72(0x150)]);const _0x3a18d1=[];_0x3a18d1[_0x59cd72(0x149)]([_0x5c0ced[_0x59cd72(0x14f)],_0x5c0ced[_0x59cd72(0x133)],_0x5c0ced[_0x59cd72(0x177)],_0x5c0ced[_0x59cd72(0x160)],_0x5c0ced[_0x59cd72(0x139)],_0x5c0ced[_0x59cd72(0x121)]]),_0x649da0[_0x59cd72(0x157)](_0x5800e9=>{const _0x340731=_0x59cd72;_0x3a18d1[_0x340731(0x149)]([_0x5800e9['id'],_0x5800e9[_0x340731(0x11d)],_0x5800e9[_0x340731(0x156)],_0x5800e9[_0x340731(0x16d)],_0x5800e9[_0x340731(0x163)],_0x5800e9['clusterName']]);}),console[_0x59cd72(0x14d)](_0x5c0ced[_0x59cd72(0x166)](table,_0x3a18d1)),process[_0x59cd72(0x143)](0x0);}_0x5c0ced[_0x59cd72(0x153)](_0x556ba8[_0x59cd72(0x13b)],0x191)&&(console[_0x59cd72(0x167)](_0x5c0ced[_0x59cd72(0x13a)]),await _0x5c0ced[_0x59cd72(0x145)](sendInstrumentationEvent,_0x269f78,_0x5c0ced[_0x59cd72(0x171)],messageTypes[_0x59cd72(0x13c)],_0x5c0ced[_0x59cd72(0x137)],null,_0x269f78),process['exit'](0x1)),console['error'](_0x59cd72(0x12f)+JSON[_0x59cd72(0x14b)](_0x556ba8)),await _0x5c0ced['HRXpa'](sendInstrumentationEvent,_0x269f78,_0x5c0ced['LtLEJ'],messageTypes[_0x59cd72(0x13c)],_0x5c0ced['MDHkE'],_0x556ba8,_0x269f78),process[_0x59cd72(0x143)](0x1);}catch(_0x50590c){console[_0x59cd72(0x167)](_0x59cd72(0x12a)+_0x50590c['stack']),await _0x5c0ced[_0x59cd72(0x145)](sendInstrumentationEvent,_0x269f78,_0x5c0ced[_0x59cd72(0x171)],messageTypes[_0x59cd72(0x13c)],_0x5c0ced['yKKWj'],_0x50590c,_0x269f78),process[_0x59cd72(0x143)](0x1);}};
@@ -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_0x53ae97=a16_0x57d8;function a16_0x57d8(_0x1475f0,_0x3aca4d){const _0x1981dc=a16_0x1981();return a16_0x57d8=function(_0x57d8f1,_0x426c8d){_0x57d8f1=_0x57d8f1-0xde;let _0x389d0e=_0x1981dc[_0x57d8f1];return _0x389d0e;},a16_0x57d8(_0x1475f0,_0x3aca4d);}(function(_0x27f081,_0x4abe8a){const _0x49fbb2=a16_0x57d8,_0x54b9f8=_0x27f081();while(!![]){try{const _0x10304a=-parseInt(_0x49fbb2(0xe6))/0x1*(-parseInt(_0x49fbb2(0xf3))/0x2)+-parseInt(_0x49fbb2(0xe2))/0x3+parseInt(_0x49fbb2(0xf5))/0x4+-parseInt(_0x49fbb2(0xe9))/0x5*(parseInt(_0x49fbb2(0xe7))/0x6)+parseInt(_0x49fbb2(0xf0))/0x7*(-parseInt(_0x49fbb2(0xef))/0x8)+parseInt(_0x49fbb2(0xe4))/0x9+-parseInt(_0x49fbb2(0xe1))/0xa;if(_0x10304a===_0x4abe8a)break;else _0x54b9f8['push'](_0x54b9f8['shift']());}catch(_0x1e8e7f){_0x54b9f8['push'](_0x54b9f8['shift']());}}}(a16_0x1981,0x95ce7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a16_0x53ae97(0xeb),exports[a16_0x53ae97(0xde)]=a16_0x53ae97(0xdf),exports[a16_0x53ae97(0xf2)]=function(_0x4e5846){const _0x48033d=a16_0x53ae97,_0x2df1a9={};_0x2df1a9[_0x48033d(0xea)]=_0x48033d(0xee),_0x2df1a9[_0x48033d(0xec)]=_0x48033d(0xe8);const _0x4d20ba=_0x2df1a9;return _0x4e5846['usage'](HELP_HEADER_MESSAGE[_0x48033d(0xe5)])[_0x48033d(0xf4)](HELP_FOOTER_MESSAGE)[_0x48033d(0xf1)](_0x4d20ba[_0x48033d(0xea)])[_0x48033d(0xe3)]()['recommendCommands']()[_0x48033d(0xed)]()[_0x48033d(0xe8)](_0x4d20ba[_0x48033d(0xec)]);},exports[a16_0x53ae97(0xe0)]=function(_0x5d1567){};function a16_0x1981(){const _0x3f2a20=['demandCommand','9763344bXTaze','pre_check','100087alSMgp','12rreFOe','help','431490aGFxRt','JHHLg','pre-check','CovDI','strict','precheck_commands','463416ZUqrsz','28DpJfZz','commandDir','builder','6oAuzGk','epilogue','3539132mLyoDK','desc','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','handler','7435740jGGeIl','1525125WPriKL'];a16_0x1981=function(){return _0x3f2a20;};return a16_0x1981();}
@@ -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_0x49f2ea=a17_0x5483;(function(_0x230235,_0x270c1e){const _0x2aa32a=a17_0x5483,_0x54a403=_0x230235();while(!![]){try{const _0xc76012=-parseInt(_0x2aa32a(0x1fa))/0x1*(parseInt(_0x2aa32a(0x275))/0x2)+parseInt(_0x2aa32a(0x22c))/0x3*(-parseInt(_0x2aa32a(0x2ab))/0x4)+-parseInt(_0x2aa32a(0x26e))/0x5*(-parseInt(_0x2aa32a(0x25d))/0x6)+parseInt(_0x2aa32a(0x1ed))/0x7*(-parseInt(_0x2aa32a(0x22b))/0x8)+parseInt(_0x2aa32a(0x2b9))/0x9*(-parseInt(_0x2aa32a(0x2cb))/0xa)+parseInt(_0x2aa32a(0x1e4))/0xb+parseInt(_0x2aa32a(0x1e0))/0xc;if(_0xc76012===_0x270c1e)break;else _0x54a403['push'](_0x54a403['shift']());}catch(_0x25509e){_0x54a403['push'](_0x54a403['shift']());}}}(a17_0xeb77,0x1a7c9));const fs=require('fs'),ws=require('ws'),got=require(a17_0x49f2ea(0x2c5)),{v4:uuidv4}=require(a17_0x49f2ea(0x271)),ReconnectingWebSocket=require(a17_0x49f2ea(0x2cd)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x49f2ea(0x29c)),{logger}=require(a17_0x49f2ea(0x243)),{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_0x49f2ea(0x21e)),{getCloudProviderObjectWithOutInit}=require(a17_0x49f2ea(0x2c4)),webSocketUtils=require(a17_0x49f2ea(0x25c)),{sendInstrumentationEvent}=require(a17_0x49f2ea(0x2d3));exports[a17_0x49f2ea(0x237)]=a17_0x49f2ea(0x213),exports['desc']=a17_0x49f2ea(0x244),exports[a17_0x49f2ea(0x232)]=function(_0x378695){const _0x57e908=a17_0x49f2ea,_0x116635={};_0x116635[_0x57e908(0x287)]=_0x57e908(0x248),_0x116635[_0x57e908(0x2d1)]='string',_0x116635[_0x57e908(0x22a)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x116635['BDqQC']=_0x57e908(0x253),_0x116635['VbLQq']=_0x57e908(0x1f3),_0x116635[_0x57e908(0x1f9)]=_0x57e908(0x296);const _0x16deca=_0x116635,_0x886235={};_0x886235[_0x57e908(0x29b)]=_0x16deca[_0x57e908(0x287)],_0x886235['type']=_0x16deca[_0x57e908(0x2d1)];const _0x24acec={};_0x24acec[_0x57e908(0x29b)]=_0x16deca[_0x57e908(0x22a)],_0x24acec[_0x57e908(0x1f2)]=_0x16deca[_0x57e908(0x2d1)];const _0x4c3cd1={};_0x4c3cd1[_0x57e908(0x29b)]=_0x16deca[_0x57e908(0x25f)],_0x4c3cd1[_0x57e908(0x1f2)]=_0x16deca['jEBPw'];const _0x477c1c={};_0x477c1c[_0x57e908(0x29b)]=_0x16deca['VbLQq'],_0x477c1c[_0x57e908(0x1f2)]=_0x16deca[_0x57e908(0x2d1)];const _0x3bffc5={};return _0x3bffc5[_0x57e908(0x228)]=_0x886235,_0x3bffc5[_0x57e908(0x1f6)]=_0x24acec,_0x3bffc5[_0x57e908(0x28d)]=_0x4c3cd1,_0x3bffc5[_0x57e908(0x276)]=_0x477c1c,_0x378695[_0x57e908(0x22f)](HELP_HEADER_MESSAGE[_0x57e908(0x1df)])[_0x57e908(0x217)](HELP_FOOTER_MESSAGE)[_0x57e908(0x2b6)](_0x3bffc5)['help'](_0x16deca['oalGX'])[_0x57e908(0x1f0)];};async function inputValidation(_0x1d260b,_0x23d439){const _0x2591b7=a17_0x49f2ea,_0x45fb09={'DOCwQ':_0x2591b7(0x1e2),'Nimpc':_0x2591b7(0x259),'FTgkw':_0x2591b7(0x2a4),'IpfHb':'will\x20be\x20created','LQNwW':_0x2591b7(0x228),'tgqrb':_0x2591b7(0x28d),'EUlWG':'Error\x20Details:\x0a','GuXEu':_0x2591b7(0x200),'cWSzK':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','YHBsp':_0x2591b7(0x229),'cWcHr':_0x2591b7(0x247),'oFRty':_0x2591b7(0x253),'NLUaN':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','gDpkT':_0x2591b7(0x296),'DjJNi':_0x2591b7(0x1f6),'EfhzD':function(_0xc94b6,_0x2649f4){return _0xc94b6+_0x2649f4;},'XKeTo':_0x2591b7(0x28e),'ZYjHb':_0x2591b7(0x25a),'kzwvA':function(_0x4eb643,_0x37e569){return _0x4eb643||_0x37e569;},'MJIWh':function(_0x122027,_0x2f84ab){return _0x122027===_0x2f84ab;},'wEwTD':_0x2591b7(0x260),'tHXEc':'EwWJt','ksDMx':function(_0x3f46ef,_0x7e0b7f){return _0x3f46ef===_0x7e0b7f;},'YFeFK':_0x2591b7(0x1ef),'yfFkI':_0x2591b7(0x295),'eRFdu':'RzkQD','BAMOU':function(_0x59d0a1,_0x12350a){return _0x59d0a1!==_0x12350a;},'gjdSR':_0x2591b7(0x1fe),'CuoXI':function(_0x49d811,_0x4611eb){return _0x49d811===_0x4611eb;},'UGDSh':_0x2591b7(0x273),'VtzAK':function(_0x395d31,_0x584e73){return _0x395d31>_0x584e73;},'idjyd':function(_0x1e5a65,_0x3b3560){return _0x1e5a65!==_0x3b3560;},'rgLHq':_0x2591b7(0x245),'EDPRC':function(_0x1aeb2a,_0x479892,_0xab927d,_0x5d8477,_0x22b583,_0x5b6f7d,_0x3089b5,_0x455fc1){return _0x1aeb2a(_0x479892,_0xab927d,_0x5d8477,_0x22b583,_0x5b6f7d,_0x3089b5,_0x455fc1);},'NTzvk':'pre-check-grid-called','OjiQt':_0x2591b7(0x2c8),'mBIwC':function(_0x32d642,_0x34614f){return _0x32d642===_0x34614f;},'IYjrX':'MtykY','pdZXt':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','MrOta':function(_0x11ec9b,_0x52b18c,_0x2269fd,_0x3720ed,_0x12a6d3,_0x17db43,_0x264520,_0x45f5f8){return _0x11ec9b(_0x52b18c,_0x2269fd,_0x3720ed,_0x12a6d3,_0x17db43,_0x264520,_0x45f5f8);},'fSpxp':_0x2591b7(0x265),'ivpdo':_0x2591b7(0x269),'eqRoU':function(_0x2de8ad,_0x584405){return _0x2de8ad===_0x584405;},'NtHLs':_0x2591b7(0x2d6),'vyTWP':'GET','JGAVz':function(_0x20b0b0,_0x139018,_0x45d14e){return _0x20b0b0(_0x139018,_0x45d14e);},'KPZZx':function(_0x12c904,_0x2d74f9,_0x1b343b,_0x224214,_0x2bfd05,_0x367c4e){return _0x12c904(_0x2d74f9,_0x1b343b,_0x224214,_0x2bfd05,_0x367c4e);},'rXxjd':_0x2591b7(0x21b),'pyTGb':'grid-profile','dewWL':_0x2591b7(0x26a),'dCgmd':_0x2591b7(0x209),'vVilG':function(_0x1b1338,_0x882772){return _0x1b1338(_0x882772);},'UKikU':_0x2591b7(0x29e),'fYBiD':'pre-check-grid-profile-empty','iCqdU':function(_0x5e4770,_0x3c5e25){return _0x5e4770!==_0x3c5e25;},'slTMI':_0x2591b7(0x24f),'behSf':_0x2591b7(0x264),'WWEQy':_0x2591b7(0x290),'yUrdh':_0x2591b7(0x219),'QlbnA':'hitYE','ejNlG':function(_0x5acf1b,_0x4febef){return _0x5acf1b!==_0x4febef;},'ibnMe':'QEWVR','GcKgr':_0x2591b7(0x206)};let _0x7dc24f;try{if(_0x45fb09[_0x2591b7(0x22d)](_0x45fb09['wEwTD'],_0x45fb09[_0x2591b7(0x2ae)])){const _0x2015b3={};_0x2015b3['type']=_0x14ab5d[_0x2591b7(0x26b)],_0x2015b3[_0x2591b7(0x249)]=_0x2af2fd,_0x1fd0ff['sendEventToBackend'](_0x5952fa,_0x2015b3,_0x45fb09[_0x2591b7(0x1f4)],!![]);}else{if(_0x1d260b[_0x2591b7(0x23c)]||_0x1d260b[_0x2591b7(0x2c9)]||_0x1d260b[_0x2591b7(0x28d)]){if(_0x45fb09[_0x2591b7(0x2d8)](_0x45fb09[_0x2591b7(0x24d)],_0x45fb09[_0x2591b7(0x222)]))_0x318c4c[_0x2591b7(0x1e2)](_0x45fb09[_0x2591b7(0x262)]),_0x29dc3d[_0x2591b7(0x224)](0x1);else{const _0x35d54b=[];!_0x1d260b[_0x2591b7(0x23c)]&&(_0x45fb09[_0x2591b7(0x2d8)](_0x45fb09[_0x2591b7(0x205)],_0x45fb09['eRFdu'])?_0x35d54b[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x24c)]):_0x307141+=_0x2591b7(0x246)+_0x42d948[_0x2591b7(0x23c)]+'\x20'+(_0x40fb29?_0x45fb09[_0x2591b7(0x2a3)]:_0x45fb09['IpfHb'])+'\x0a\x0a');;!_0x1d260b[_0x2591b7(0x2c9)]&&(_0x45fb09[_0x2591b7(0x284)](_0x45fb09[_0x2591b7(0x204)],_0x45fb09[_0x2591b7(0x204)])?(_0x18a385[_0x2591b7(0x288)]('['+_0x4c84c2+_0x2591b7(0x2a5)+_0x30fb56[_0x2591b7(0x226)]+_0x2591b7(0x23b)+_0x1ef57c[_0x2591b7(0x24e)]+_0x2591b7(0x239)+_0x43b9ed[_0x2591b7(0x1e2)]),_0x4aba20['error']&&_0x3991dd[_0x2591b7(0x1e2)](_0x2591b7(0x1f7)+_0x54b63b['error'][_0x2591b7(0x241)])):_0x35d54b[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x1de)]));;!_0x1d260b['region']&&(_0x45fb09[_0x2591b7(0x230)](_0x45fb09['UGDSh'],_0x45fb09[_0x2591b7(0x2b8)])?_0x35d54b[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x1eb)]):_0x3a1055[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x24c)]));;_0x45fb09[_0x2591b7(0x2be)](_0x35d54b[_0x2591b7(0x251)],0x0)&&(_0x45fb09[_0x2591b7(0x283)](_0x45fb09[_0x2591b7(0x26d)],_0x45fb09[_0x2591b7(0x26d)])?_0x443a0b[_0x2591b7(0x2ad)](_0x45fb09['tgqrb']):(_0x7dc24f=_0x2591b7(0x281)+_0x35d54b[_0x2591b7(0x203)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x45fb09[_0x2591b7(0x236)](reportToGalactusAndSendToEDS,_0x1d260b,_0x23d439,_0x7dc24f,messageTypes['ERROR'],_0x45fb09[_0x2591b7(0x21d)],_0x45fb09[_0x2591b7(0x23d)],_0x45fb09[_0x2591b7(0x1f4)]),logger[_0x2591b7(0x1e2)](_0x7dc24f),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2591b7(0x285)](_0x1d260b['cloudProvider'][_0x2591b7(0x1f5)]())&&(_0x45fb09[_0x2591b7(0x208)](_0x45fb09['IYjrX'],_0x45fb09['IYjrX'])?(_0x7dc24f=_0x45fb09['pdZXt'],await _0x45fb09[_0x2591b7(0x211)](reportToGalactusAndSendToEDS,_0x1d260b,_0x23d439,_0x7dc24f,messageTypes['ERROR'],_0x45fb09[_0x2591b7(0x21d)],_0x45fb09[_0x2591b7(0x21f)],_0x45fb09[_0x2591b7(0x1f4)]),logger[_0x2591b7(0x1e2)](_0x7dc24f),!_0x1d260b[_0x2591b7(0x2c9)]&&(_0x45fb09[_0x2591b7(0x208)](_0x45fb09[_0x2591b7(0x2bb)],_0x45fb09['ivpdo'])?(logger[_0x2591b7(0x288)](_0x2591b7(0x2d7)+DEFAULT_CLUSTER_DETAILS[_0x2591b7(0x279)]+'\x20'),_0x1d260b[_0x2591b7(0x2c9)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x5cd51f[_0x2591b7(0x1e2)](_0x2591b7(0x1f7)+_0x2ba36f[_0x2591b7(0x1e2)][_0x2591b7(0x241)]))):_0x14ddec['info']('Cluster\x20`'+_0x5cd7cd[_0x2591b7(0x23c)]+_0x2591b7(0x293))),global_registry[_0x2591b7(0x23c)]=_0x1d260b['clusterName'],global_registry[_0x2591b7(0x2c9)]=_0x1d260b[_0x2591b7(0x2c9)],global_registry[_0x2591b7(0x2bc)]=_0x1d260b[_0x2591b7(0x28d)];}}else{if(_0x1d260b[_0x2591b7(0x2b2)]){if(_0x45fb09[_0x2591b7(0x1fd)](_0x45fb09['NtHLs'],_0x45fb09['NtHLs'])){global_registry[_0x2591b7(0x2b2)]=_0x1d260b[_0x2591b7(0x2b2)],logger['debug'](_0x2591b7(0x1e6)+_0x1d260b[_0x2591b7(0x2b2)]);const _0x1da64f=_0x2591b7(0x28c)+AG_API_URL+_0x2591b7(0x29a),_0x4bafa2={};_0x4bafa2[_0x2591b7(0x2a7)]=_0x45fb09[_0x2591b7(0x2d2)],_0x4bafa2[_0x2591b7(0x267)]=global_registry[_0x2591b7(0x250)],_0x4bafa2['throwHttpErrors']=![];const _0x159ddf=_0x4bafa2,_0x211509=await _0x45fb09[_0x2591b7(0x1fc)](got,_0x1da64f,_0x159ddf),_0x43dfd2=await _0x45fb09[_0x2591b7(0x2cc)](responseValidation,_0x211509,_0x45fb09[_0x2591b7(0x22e)],_0x45fb09[_0x2591b7(0x216)],_0x1d260b,_0x23d439);let _0x4c9187={};if(_0x45fb09['CuoXI'](_0x43dfd2,0xc8)){if(_0x45fb09['idjyd'](_0x45fb09[_0x2591b7(0x266)],_0x45fb09['dCgmd'])){const _0x298604=JSON[_0x2591b7(0x1ff)](_0x211509[_0x2591b7(0x2af)]),_0x343599=_0x298604[_0x2591b7(0x242)](_0x558d80=>_0x558d80[_0x2591b7(0x20e)]===_0x1d260b[_0x2591b7(0x2b2)])||null;if(_0x45fb09[_0x2591b7(0x1ee)](isUndefined,_0x343599))_0x45fb09['BAMOU'](_0x45fb09[_0x2591b7(0x26f)],_0x45fb09['UKikU'])?(_0x67cf1f+=_0x45fb09[_0x2591b7(0x23a)],_0x795aa7+=_0x2591b7(0x2b7)+(_0x10e8c9[_0x2591b7(0x249)]||_0x45fb09['GuXEu'])+'\x0a',_0x1102d5+=_0x2591b7(0x270)+(_0x371a77['code']||_0x45fb09[_0x2591b7(0x27a)])+'\x0a',_0x3e7208+=_0x2591b7(0x20c)+(_0x26966b[_0x2591b7(0x241)]||_0x45fb09[_0x2591b7(0x27a)])+'\x0a'):(_0x7dc24f=_0x2591b7(0x21c)+_0x1d260b[_0x2591b7(0x2b2)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x45fb09[_0x2591b7(0x236)](reportToGalactusAndSendToEDS,_0x1d260b,_0x23d439,_0x7dc24f,messageTypes[_0x2591b7(0x2c7)],_0x45fb09[_0x2591b7(0x21d)],_0x45fb09[_0x2591b7(0x28b)],_0x45fb09[_0x2591b7(0x1f4)]),logger['error'](_0x7dc24f),process[_0x2591b7(0x224)](0x1));else{if(_0x45fb09['iCqdU'](_0x45fb09[_0x2591b7(0x258)],_0x45fb09[_0x2591b7(0x258)])){const _0x571b60={};_0x571b60['description']=_0x45fb09['cWSzK'],_0x571b60[_0x2591b7(0x1f2)]=_0x45fb09[_0x2591b7(0x2ba)];const _0xd4bb01={};_0xd4bb01[_0x2591b7(0x29b)]=_0x45fb09[_0x2591b7(0x278)],_0xd4bb01[_0x2591b7(0x1f2)]=_0x45fb09[_0x2591b7(0x2ba)];const _0x4e63b2={};_0x4e63b2[_0x2591b7(0x29b)]=_0x45fb09['oFRty'],_0x4e63b2[_0x2591b7(0x1f2)]=_0x45fb09[_0x2591b7(0x2ba)];const _0x1e0dd3={};_0x1e0dd3['description']=_0x45fb09[_0x2591b7(0x2b3)],_0x1e0dd3[_0x2591b7(0x1f2)]=_0x45fb09[_0x2591b7(0x2ba)];const _0x43a56f={};return _0x43a56f['cluster-name']=_0x571b60,_0x43a56f[_0x2591b7(0x1f6)]=_0xd4bb01,_0x43a56f['region']=_0x4e63b2,_0x43a56f[_0x2591b7(0x276)]=_0x1e0dd3,_0x3b4b7f['usage'](_0x4a714b[_0x2591b7(0x1df)])['epilogue'](_0x211d35)['options'](_0x43a56f)[_0x2591b7(0x296)](_0x45fb09['gDpkT'])[_0x2591b7(0x1f0)];}else _0x4c9187=_0x343599;}}else _0x121fa6[_0x2591b7(0x2ad)](_0x45fb09[_0x2591b7(0x1de)]);}else _0x45fb09[_0x2591b7(0x2a8)](_0x45fb09[_0x2591b7(0x1e3)],_0x45fb09['WWEQy'])?process['exit'](0x1):_0x121799=_0x226fe4;const _0x2ecc32={};_0x2ecc32[_0x2591b7(0x1f2)]=WS_EVENTS[_0x2591b7(0x26b)],_0x2ecc32['message']=_0x45fb09['yUrdh'],webSocketUtils[_0x2591b7(0x240)](_0x23d439,_0x2ecc32),global_registry[_0x2591b7(0x2c9)]=_0x4c9187[_0x2591b7(0x2c9)],global_registry['clusterRegion']=_0x4c9187[_0x2591b7(0x28d)],global_registry[_0x2591b7(0x23c)]=_0x4c9187[_0x2591b7(0x23c)];}else _0x408a6b+='Cluster\x20'+_0x35b382[_0x2591b7(0x23c)]+_0x2591b7(0x202);}else{if(_0x45fb09[_0x2591b7(0x208)](_0x45fb09[_0x2591b7(0x252)],_0x45fb09[_0x2591b7(0x252)]))logger[_0x2591b7(0x1e2)](_0x45fb09[_0x2591b7(0x262)]),process[_0x2591b7(0x224)](0x1);else{const {header:_0x1488ac,response:_0xf082b5}=_0x617884,{status:_0x424028,data:_0xd6b94,error:_0x549fd3}=_0xf082b5;_0x54d6c9+=_0x1488ac+'\x20#'+_0x45fb09[_0x2591b7(0x2a0)](_0x3527d8,0x1)+'\x0a',_0x53fbbe+=_0x2591b7(0x1e1)+(_0x424028?_0x45fb09[_0x2591b7(0x1e7)]:_0x45fb09[_0x2591b7(0x2ce)])+'\x0a',_0x1425a7+=_0x2591b7(0x2a6)+_0x45fb09[_0x2591b7(0x233)](_0xd6b94,_0x45fb09[_0x2591b7(0x27a)])+'\x0a',_0x549fd3&&(_0x397b53+=_0x45fb09[_0x2591b7(0x23a)],_0x1a336e+=_0x2591b7(0x2b7)+(_0x549fd3[_0x2591b7(0x249)]||_0x45fb09[_0x2591b7(0x27a)])+'\x0a',_0x9f3f27+=_0x2591b7(0x270)+(_0x549fd3[_0x2591b7(0x2a9)]||_0x45fb09[_0x2591b7(0x27a)])+'\x0a',_0x2bb9b2+=_0x2591b7(0x20c)+(_0x549fd3[_0x2591b7(0x241)]||_0x45fb09[_0x2591b7(0x27a)])+'\x0a'),_0x306d07+='\x0a\x0a';}}}}}catch(_0xf778dd){_0x45fb09['ejNlG'](_0x45fb09[_0x2591b7(0x20a)],_0x45fb09[_0x2591b7(0x23e)])?(_0x7dc24f=_0x2591b7(0x2da)+_0xf778dd+':\x20'+_0xf778dd['stack'],logger[_0x2591b7(0x1e2)](_0x7dc24f),await _0x45fb09[_0x2591b7(0x211)](reportToGalactusAndSendToEDS,_0x1d260b,_0x23d439,_0x7dc24f,messageTypes[_0x2591b7(0x2c7)],_0x45fb09[_0x2591b7(0x21d)],_0x45fb09['fSpxp'],_0x45fb09[_0x2591b7(0x1f4)]),process[_0x2591b7(0x224)](0x1)):_0x34df3c[_0x2591b7(0x224)](0x1);}}function a17_0x5483(_0x13e3f1,_0x1ac464){const _0xeb77f4=a17_0xeb77();return a17_0x5483=function(_0x54836b,_0xd0b05){_0x54836b=_0x54836b-0x1de;let _0x105eac=_0xeb77f4[_0x54836b];return _0x105eac;},a17_0x5483(_0x13e3f1,_0x1ac464);}function printResponse(_0x409d36,_0x47b9ff){const _0x1026de=a17_0x49f2ea,_0x50e2a4={};_0x50e2a4['yOjcU']=function(_0x5d1f6a,_0x43ffb8){return _0x5d1f6a===_0x43ffb8;},_0x50e2a4[_0x1026de(0x25b)]='bJbjs';const _0x6ad678=_0x50e2a4;logger['info']('['+_0x409d36+_0x1026de(0x2a5)+_0x47b9ff[_0x1026de(0x226)]+'\x20data\x20:\x20'+_0x47b9ff[_0x1026de(0x24e)]+_0x1026de(0x239)+_0x47b9ff[_0x1026de(0x1e2)]),_0x47b9ff[_0x1026de(0x1e2)]&&(_0x6ad678[_0x1026de(0x2b5)](_0x6ad678[_0x1026de(0x25b)],_0x6ad678[_0x1026de(0x25b)])?logger[_0x1026de(0x1e2)]('error\x20stack\x20:\x20'+_0x47b9ff[_0x1026de(0x1e2)][_0x1026de(0x241)]):(_0x80d7ea[_0x1026de(0x288)](_0x1026de(0x2d7)+_0x3ec9ab[_0x1026de(0x279)]+'\x20'),_0x58f6b0['cloudProvider']=_0x3fb7de[_0x1026de(0x279)]));}async function generateReport(_0x2c6af2,_0x16ceff){const _0x5436c1=a17_0x49f2ea,_0x72cc14={'vtSFO':function(_0x2869ba,_0x455a65){return _0x2869ba+_0x455a65;},'UqUSD':_0x5436c1(0x28e),'bVOTP':_0x5436c1(0x25a),'KWOAK':function(_0x2ce9b7,_0x273509){return _0x2ce9b7||_0x273509;},'QNzuk':_0x5436c1(0x200),'sxyLi':_0x5436c1(0x282),'GwXaH':'Cluster\x20details\x0a-----------------------\x0a','UuVIp':function(_0xbe71f3,_0x568ab7){return _0xbe71f3!=_0x568ab7;},'lvccp':'is\x20already\x20present','iQWeO':_0x5436c1(0x272),'saihk':function(_0x56b796){return _0x56b796();}};let _0x357028='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x5436c1(0x2c9)]+_0x5436c1(0x27f);return _0x2c6af2[_0x5436c1(0x2c2)]((_0xdb6c7c,_0x4680e9)=>{const _0x1550cb=_0x5436c1,{header:_0x126550,response:_0x3679f4}=_0xdb6c7c,{status:_0x456634,data:_0x3af873,error:_0x1bde30}=_0x3679f4;_0x357028+=_0x126550+'\x20#'+_0x72cc14[_0x1550cb(0x2ca)](_0x4680e9,0x1)+'\x0a',_0x357028+=_0x1550cb(0x1e1)+(_0x456634?_0x72cc14['UqUSD']:_0x72cc14['bVOTP'])+'\x0a',_0x357028+=_0x1550cb(0x2a6)+_0x72cc14[_0x1550cb(0x2a1)](_0x3af873,_0x72cc14[_0x1550cb(0x1f1)])+'\x0a',_0x1bde30&&(_0x357028+=_0x72cc14[_0x1550cb(0x294)],_0x357028+=_0x1550cb(0x2b7)+(_0x1bde30[_0x1550cb(0x249)]||_0x72cc14['QNzuk'])+'\x0a',_0x357028+=_0x1550cb(0x270)+(_0x1bde30[_0x1550cb(0x2a9)]||_0x72cc14[_0x1550cb(0x1f1)])+'\x0a',_0x357028+=_0x1550cb(0x20c)+(_0x1bde30[_0x1550cb(0x241)]||_0x72cc14[_0x1550cb(0x1f1)])+'\x0a'),_0x357028+='\x0a\x0a';}),_0x357028+=_0x72cc14['GwXaH'],_0x72cc14[_0x5436c1(0x23f)](_0x16ceff,null)?_0x357028+=_0x5436c1(0x246)+global_registry['clusterName']+'\x20'+(_0x16ceff?_0x72cc14['lvccp']:_0x72cc14[_0x5436c1(0x29f)])+'\x0a\x0a':_0x357028+=_0x5436c1(0x246)+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x357028+=_0x72cc14[_0x5436c1(0x280)](getSystemMetaData),_0x357028;};function a17_0xeb77(){const _0x1e3028=['aEbYI','rVlos','2mRRkIG','grid-profile','connectionTimeout','cWcHr','CLOUD_PROVIDER','GuXEu','fPuNg','isTrialGridAccessible','log/report_','JqxMg','\x20===\x0a\x0a','saihk','Missing\x20required\x20arguments:\x20','Error\x20Details:\x0a','idjyd','BAMOU','includes','split','XxJgi','info','Pre-check\x20running\x20for\x20Cloud\x20-\x20','lYeov','fYBiD','https://','region','Success','npsVN','MGNCU','isCliToolInstalled','readFileSync','`\x20already\x20exists','sxyLi','jgMAd','help','DAWPq','sdCgB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/get-all-grid-profiles','description','../../utils/utilityMethods','Report\x20saved\x20in\x20','aoTSZ','iQWeO','EfhzD','KWOAK','oLOjO','FTgkw','is\x20already\x20present',']\x20status\x20:\x20','Message:\x20','method','iCqdU','code','credential-not-found','1272uJoGfi','replace','push','tHXEc','body','pre-check-grid-called','utf-8','gridProfile','NLUaN','fSMHv','yOjcU','options','\x20\x20Message:\x20','UGDSh','1622763RdFUyh','YHBsp','ivpdo','clusterRegion','existsSync','VtzAK','accessResp','LCLAD','skpzu','forEach','getUTCMinutes','../../cloudproviders/utils','got','response','ERROR','pre-check-cluster-args-not-passed','cloudProvider','vtSFO','10eThBgd','KPZZx','reconnecting-websocket','ZYjHb','Browserstack','toolInstalledResp','jEBPw','vyTWP','../../utils/instrumentationUtils','isTls1_2_SUPPORTED','Cluster\x20`','ertpX','Setting\x20cloud\x20provider\x20as\x20','ksDMx','dummy-grid','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','DjJNi','pre_check','7773180AxTGRD','Status:\x20','error','behSf','560802oxHSXF','\x20region\x20-\x20','grid\x20profile\x20flow\x20','XKeTo','exWqb','TLSv1_2_client_method','stack\x20trace\x20','tgqrb','<PasswordPlaceholder>','1347563CyJtrI','vVilG','HVTiQ','argv','QNzuk','type','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','DOCwQ','toLowerCase','cloud-provider','error\x20stack\x20:\x20','username','oalGX','93365eViPLj','Zvdhe','JGAVz','eqRoU','poOdG','parse','N/A','password','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','join','gjdSR','eRFdu','HluWT','wIxlw','mBIwC','IYzrl','ibnMe','vWmQW','\x20\x20Stack:\x20','User\x20Access','name','RhZXa','vzJNl','MrOta','header','grid','SSL\x20Configured','HFTlC','pyTGb','epilogue','bstackUsername','Grid\x20profile\x20fetched\x20for\x20pre-check','getUTCMonth','pre-check','Invalid\x20input.\x20grid\x20profiles:\x20','NTzvk','../../config/constants','fSpxp','isClusterPresent','`\x20,error\x20:\x20','yfFkI','KHgVn','exit','<UsernamePlaceholder>','status','debug','cluster-name','string','GkhjL','8YmAnNG','1287XCPzXD','MJIWh','rXxjd','usage','CuoXI','pre-check-failed','builder','kzwvA','DAxVa','scsSb','EDPRC','command','getUTCDate','\x20error\x20:\x20','EUlWG','\x20data\x20:\x20','clusterName','OjiQt','GcKgr','UuVIp','sendEventToBackend','stack','find','../../config/logger','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','YlOaR','Cluster\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','message','stringify','FErYT','LQNwW','YFeFK','data','aHxgj','authHeader','length','QlbnA','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','4|0|2|1|3','bstackAccesskey','LmtdR','zWSlC','slTMI','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Failure','dLJwq','../../utils/webSocketUtils','6VKIMCG','WebSocket','BDqQC','BUhdC','INFO','Nimpc','VtJEa','Owibm','cloud-provider-not-supported','dewWL','headers','cluster-check-failed-','pgguM','tSSqw','LOG','unable\x20to\x20verify\x20if\x20cluster\x20`','rgLHq','61725EtdrRf','UKikU','\x20\x20Code:\x20','uuid','will\x20be\x20created'];a17_0xeb77=function(){return _0x1e3028;};return a17_0xeb77();}exports['handler']=async function(_0x358cf6){const _0xf93b62=a17_0x49f2ea,_0x352c0c={'VtJEa':function(_0xf85169){return _0xf85169();},'fPuNg':_0xf93b62(0x299),'skpzu':function(_0x20259e,_0x5910b1,_0x4f95ce,_0x4381a0,_0x22ce13,_0x3f241c,_0x36aade,_0x5269d3){return _0x20259e(_0x5910b1,_0x4f95ce,_0x4381a0,_0x22ce13,_0x3f241c,_0x36aade,_0x5269d3);},'Zvdhe':_0xf93b62(0x2b0),'RhZXa':_0xf93b62(0x2aa),'exWqb':'error','lnOsA':function(_0x14ae78,_0x32101c,_0x2edc37,_0x1433db,_0x1d32bd,_0x29ce5f,_0x3b3a1f){return _0x14ae78(_0x32101c,_0x2edc37,_0x1433db,_0x1d32bd,_0x29ce5f,_0x3b3a1f);},'JqxMg':function(_0x4c5a91){return _0x4c5a91();},'aTcyR':_0xf93b62(0x225),'FErYT':_0xf93b62(0x1ec),'rVlos':function(_0x11ff7d,_0xa38f58,_0x10ed53){return _0x11ff7d(_0xa38f58,_0x10ed53);},'KHgVn':function(_0x1b2cab,_0x5d87da,_0xad0d01,_0x2d27ec,_0x209246,_0x35753e,_0x897029){return _0x1b2cab(_0x5d87da,_0xad0d01,_0x2d27ec,_0x209246,_0x35753e,_0x897029);},'HFTlC':_0xf93b62(0x2d9),'DAWPq':function(_0x40cef7,_0x5da921,_0x575c09){return _0x40cef7(_0x5da921,_0x575c09);},'WaZFu':_0xf93b62(0x2d0),'scsSb':_0xf93b62(0x254),'LCLAD':function(_0x4a1794,_0x566aae,_0x5d1f0e){return _0x4a1794(_0x566aae,_0x5d1f0e);},'RRDBW':_0xf93b62(0x2bf),'CNMZl':function(_0x2d9a8c,_0x1dad0b,_0x18a24d){return _0x2d9a8c(_0x1dad0b,_0x18a24d);},'npgBY':_0xf93b62(0x27c),'zWSlC':function(_0x2bc840,_0x5863dc){return _0x2bc840(_0x5863dc);},'oLOjO':_0xf93b62(0x1e9),'DAxVa':_0xf93b62(0x2d4),'fSMHv':'Tool\x20Installed','vWmQW':_0xf93b62(0x20d),'wIxlw':'Whitelisted\x20browserstack','LmtdR':_0xf93b62(0x214),'lYeov':function(_0x372606,_0x3760d2,_0x39db66){return _0x372606(_0x3760d2,_0x39db66);},'npsVN':function(_0x468e85,_0x385ba5){return _0x468e85+_0x385ba5;},'AisZn':_0xf93b62(0x2b1),'vzJNl':function(_0x45e382,_0x2337d3,_0x2fd1e7,_0x151f28,_0x115de4,_0x71351b,_0x39f96d){return _0x45e382(_0x2337d3,_0x2fd1e7,_0x151f28,_0x115de4,_0x71351b,_0x39f96d);},'sdCgB':_0xf93b62(0x231)};let _0xd9f20d,_0x43e498;try{global_registry['requestId']=_0x352c0c[_0xf93b62(0x263)](uuidv4);!fs[_0xf93b62(0x2bd)](_0x352c0c[_0xf93b62(0x263)](getCredentialsPath))&&(_0x43e498=_0x352c0c[_0xf93b62(0x27b)],logger[_0xf93b62(0x1e2)](_0x43e498),await _0x352c0c[_0xf93b62(0x2c1)](reportToGalactusAndSendToEDS,_0x358cf6,_0xd9f20d,_0x43e498,messageTypes['ERROR'],_0x352c0c[_0xf93b62(0x1fb)],_0x352c0c[_0xf93b62(0x20f)],_0x352c0c[_0xf93b62(0x1e8)]),process['exit'](0x1));_0x352c0c['lnOsA'](sendInstrumentationEvent,_0x358cf6,_0x352c0c[_0xf93b62(0x1fb)],messageTypes[_0xf93b62(0x261)],null,null,_0x358cf6);const _0x46bc02=JSON[_0xf93b62(0x1ff)](fs[_0xf93b62(0x292)](_0x352c0c[_0xf93b62(0x27e)](getCredentialsPath)));global_registry[_0xf93b62(0x218)]=_0x46bc02[_0xf93b62(0x2cf)]['username'],global_registry[_0xf93b62(0x255)]=_0x46bc02[_0xf93b62(0x2cf)][_0xf93b62(0x201)];const _0x4c4fb0=WS_ENDPOINT['replace'](_0x352c0c['aTcyR'],_0x46bc02[_0xf93b62(0x2cf)][_0xf93b62(0x1f8)])[_0xf93b62(0x2ac)](_0x352c0c[_0xf93b62(0x24b)],_0x46bc02[_0xf93b62(0x2cf)][_0xf93b62(0x201)]),_0x5df3ad={};_0x5df3ad[_0xf93b62(0x25e)]=ws,_0x5df3ad[_0xf93b62(0x277)]=0x36ee80,_0xd9f20d=new ReconnectingWebSocket(_0x4c4fb0,[],_0x5df3ad),global_registry[_0xf93b62(0x250)]=_0x352c0c[_0xf93b62(0x274)](getAuthHeader,global_registry[_0xf93b62(0x218)],global_registry[_0xf93b62(0x255)]),await _0x352c0c['rVlos'](inputValidation,_0x358cf6,_0xd9f20d),logger[_0xf93b62(0x288)](_0xf93b62(0x289)+global_registry[_0xf93b62(0x2c9)]+_0xf93b62(0x1e5)+global_registry[_0xf93b62(0x2bc)]);let _0x5e3554=await _0x352c0c[_0xf93b62(0x223)](getCloudProviderObjectWithOutInit,global_registry[_0xf93b62(0x2c9)],global_registry['clusterName'],_0x352c0c[_0xf93b62(0x215)],_0xd9f20d,webSocketUtils,_0x358cf6);const _0x3357f7=await _0x5e3554[_0xf93b62(0x291)]();_0x352c0c[_0xf93b62(0x297)](printResponse,_0x352c0c['WaZFu'],_0x3357f7),_0x5e3554=await _0x5e3554['init']();let _0x4a16fb=![];try{_0x4a16fb=await _0x5e3554[_0xf93b62(0x220)]();}catch(_0x176a42){const _0xcf592=_0x352c0c[_0xf93b62(0x235)][_0xf93b62(0x286)]('|');let _0x50acf0=0x0;while(!![]){switch(_0xcf592[_0x50acf0++]){case'0':_0x4a16fb=null;continue;case'1':_0x43e498+='\x0a'+JSON[_0xf93b62(0x24a)](_0x176a42['stack']);continue;case'2':logger[_0xf93b62(0x1e2)](_0x43e498);continue;case'3':await _0x352c0c[_0xf93b62(0x2c1)](reportToGalactusAndSendToEDS,_0x358cf6,_0xd9f20d,_0x43e498,messageTypes[_0xf93b62(0x2c7)],_0x352c0c[_0xf93b62(0x1fb)],_0xf93b62(0x268)+global_registry[_0xf93b62(0x2c9)],_0x352c0c[_0xf93b62(0x1e8)]);continue;case'4':_0x43e498=_0xf93b62(0x26c)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0xf93b62(0x2bc)]+_0xf93b62(0x221)+_0x176a42;continue;}break;}}_0x4a16fb&&logger[_0xf93b62(0x288)](_0xf93b62(0x2d5)+global_registry[_0xf93b62(0x23c)]+_0xf93b62(0x293));const _0x41ff4b=await _0x5e3554['checkAccess']();_0x352c0c[_0xf93b62(0x2c0)](printResponse,_0x352c0c['RRDBW'],_0x41ff4b);const _0x4870de=await _0x352c0c[_0xf93b62(0x27e)](curlRequest);_0x352c0c['CNMZl'](printResponse,_0x352c0c['npgBY'],_0x4870de);const _0x3d1642=await _0x352c0c[_0xf93b62(0x257)](isTlsSupported,_0x352c0c[_0xf93b62(0x2a2)]);_0x352c0c[_0xf93b62(0x297)](printResponse,_0x352c0c[_0xf93b62(0x234)],_0x3d1642);const _0x2b5b57={};_0x2b5b57[_0xf93b62(0x212)]=_0x352c0c[_0xf93b62(0x2b4)],_0x2b5b57[_0xf93b62(0x2c6)]=_0x3357f7;const _0xd1dad6={};_0xd1dad6[_0xf93b62(0x212)]=_0x352c0c[_0xf93b62(0x20b)],_0xd1dad6[_0xf93b62(0x2c6)]=_0x41ff4b;const _0x4b9d5d={};_0x4b9d5d['header']=_0x352c0c[_0xf93b62(0x207)],_0x4b9d5d['response']=_0x4870de;const _0x35897e={};_0x35897e[_0xf93b62(0x212)]=_0x352c0c[_0xf93b62(0x256)],_0x35897e[_0xf93b62(0x2c6)]=_0x3d1642;const _0x3b2995=[_0x2b5b57,_0xd1dad6,_0x4b9d5d,_0x35897e],_0xb8a1bf=await _0x352c0c[_0xf93b62(0x28a)](generateReport,_0x3b2995,_0x4a16fb),_0x383f7a=new Date(),_0x4e6cd4=_0x383f7a['getUTCFullYear']()+'_'+_0x352c0c[_0xf93b62(0x28f)](_0x383f7a[_0xf93b62(0x21a)](),0x1)+'_'+_0x383f7a[_0xf93b62(0x238)]()+'_'+_0x383f7a['getUTCHours']()+'_'+_0x383f7a[_0xf93b62(0x2c3)](),_0x33d1ba=_0xf93b62(0x27d)+_0x4e6cd4+'.txt';fs['writeFileSync'](_0x33d1ba,_0xb8a1bf,_0x352c0c['AisZn']),logger[_0xf93b62(0x288)](_0xf93b62(0x29d)+_0x33d1ba),process[_0xf93b62(0x224)](0x0);}catch(_0x90047a){let _0x3324a5='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x90047a+'\x20';logger['error'](_0x3324a5),_0x3324a5+='\x0a'+JSON['stringify'](_0x90047a[_0xf93b62(0x241)]),logger[_0xf93b62(0x227)](_0xf93b62(0x1ea)+_0x90047a[_0xf93b62(0x241)]);if(_0xd9f20d){const _0x483814={};_0x483814['type']=WS_EVENTS['LOG'],_0x483814['message']=_0x3324a5,webSocketUtils[_0xf93b62(0x240)](_0xd9f20d,_0x483814,_0x352c0c[_0xf93b62(0x1e8)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x394938={};_0x394938[_0xf93b62(0x1e2)]=_0x3324a5,await _0x352c0c[_0xf93b62(0x210)](sendInstrumentationEvent,_0x358cf6,_0x352c0c[_0xf93b62(0x1fb)],messageTypes['ERROR'],_0x352c0c[_0xf93b62(0x298)],_0x394938,_0x358cf6),process[_0xf93b62(0x224)](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
+ function a18_0x3b4e(_0x49570d,_0x41d6e4){const _0x361c12=a18_0x361c();return a18_0x3b4e=function(_0x3b4e17,_0x172e26){_0x3b4e17=_0x3b4e17-0x157;let _0x2a697a=_0x361c12[_0x3b4e17];return _0x2a697a;},a18_0x3b4e(_0x49570d,_0x41d6e4);}const a18_0x59f7bb=a18_0x3b4e;(function(_0x171e9f,_0x1720b5){const _0x3a3c31=a18_0x3b4e,_0x56ee45=_0x171e9f();while(!![]){try{const _0x526d5e=parseInt(_0x3a3c31(0x167))/0x1*(parseInt(_0x3a3c31(0x16d))/0x2)+-parseInt(_0x3a3c31(0x166))/0x3*(-parseInt(_0x3a3c31(0x15a))/0x4)+parseInt(_0x3a3c31(0x163))/0x5+-parseInt(_0x3a3c31(0x158))/0x6+parseInt(_0x3a3c31(0x16b))/0x7*(-parseInt(_0x3a3c31(0x159))/0x8)+parseInt(_0x3a3c31(0x15c))/0x9+-parseInt(_0x3a3c31(0x16c))/0xa;if(_0x526d5e===_0x1720b5)break;else _0x56ee45['push'](_0x56ee45['shift']());}catch(_0x1b9fa6){_0x56ee45['push'](_0x56ee45['shift']());}}}(a18_0x361c,0x359c3));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x59f7bb(0x16e));exports[a18_0x59f7bb(0x164)]=a18_0x59f7bb(0x15b),exports['desc']=a18_0x59f7bb(0x157),exports[a18_0x59f7bb(0x160)]=function(_0x18a683){const _0x477fd3=a18_0x59f7bb,_0x2a6fd2={};_0x2a6fd2[_0x477fd3(0x169)]=_0x477fd3(0x161),_0x2a6fd2[_0x477fd3(0x15d)]=_0x477fd3(0x15e);const _0xf658c2=_0x2a6fd2;return _0x18a683['usage'](HELP_HEADER_MESSAGE[_0x477fd3(0x15b)])[_0x477fd3(0x165)](HELP_FOOTER_MESSAGE)[_0x477fd3(0x162)](_0xf658c2['oAkbW'])['demandCommand']()[_0x477fd3(0x15f)]()[_0x477fd3(0x168)]()[_0x477fd3(0x15e)](_0xf658c2[_0x477fd3(0x15d)]);},exports[a18_0x59f7bb(0x16a)]=function(_0x4e1cb4){};function a18_0x361c(){const _0x5ed5b8=['212gCycjV','start','1337121gDkoqi','DwqYC','help','recommendCommands','builder','start_commands','commandDir','1513620Iqculq','command','epilogue','24519NMkWeZ','90813zuaaeV','strict','oAkbW','handler','3367KAVBDW','7700BbJoTR','2TIbHOy','../config/constants','Start\x20an\x20existing\x20Automation\x20grid.','2341920ZgHRbD','6064fkdClu'];a18_0x361c=function(){return _0x5ed5b8;};return a18_0x361c();}
@@ -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
+ const a19_0x16fa20=a19_0x196f;(function(_0x5b7108,_0x1277e6){const _0x5c197b=a19_0x196f,_0x37e3f0=_0x5b7108();while(!![]){try{const _0x561e29=-parseInt(_0x5c197b(0x1b0))/0x1*(parseInt(_0x5c197b(0x18a))/0x2)+parseInt(_0x5c197b(0x18e))/0x3*(-parseInt(_0x5c197b(0x164))/0x4)+-parseInt(_0x5c197b(0x185))/0x5+-parseInt(_0x5c197b(0x17d))/0x6*(parseInt(_0x5c197b(0x163))/0x7)+parseInt(_0x5c197b(0x187))/0x8+-parseInt(_0x5c197b(0x186))/0x9+parseInt(_0x5c197b(0x197))/0xa;if(_0x561e29===_0x1277e6)break;else _0x37e3f0['push'](_0x37e3f0['shift']());}catch(_0x231682){_0x37e3f0['push'](_0x37e3f0['shift']());}}}(a19_0x2ba9,0x8b02d));function a19_0x196f(_0x18db26,_0x5391f5){const _0x2ba9f9=a19_0x2ba9();return a19_0x196f=function(_0x196f51,_0x4fd032){_0x196f51=_0x196f51-0x160;let _0x23b4d5=_0x2ba9f9[_0x196f51];return _0x23b4d5;},a19_0x196f(_0x18db26,_0x5391f5);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x16fa20(0x17c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x16fa20(0x16b)),{logger}=require(a19_0x16fa20(0x1b1)),{getCredentialsPath,getGridDetails}=require(a19_0x16fa20(0x167)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x16fa20(0x190)),{createK8sClient}=require(a19_0x16fa20(0x169)),{getCloudProviderObject}=require(a19_0x16fa20(0x173));function a19_0x2ba9(){const _0x425dbf=['SEPOw','WhVRL','34625530qPMkAE','sNPVi','desc','Adding\x20Websocket\x20listeners','grid-id','server-error','<PasswordPlaceholder>','rUDSp','exit','info','stack','default','hZBXb','KZJMa','Skip\x20insecure\x20cert\x20verification.','password','ERROR','Start\x20an\x20existing\x20Automation\x20grid.','clusterRegion','existsSync','region','options','uoyEo','epilogue','riEVw','351751cQLCfa','../../config/logger','parse','replace','addListeners','ujNiv','Psgmq','readFileSync','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','name','body','INFO','builder','start-grid-called','3983vSpbMV','18884ZmSAvP','skip-tls-cert-verify','jMMgv','../../utils/utilityMethods','boolean','../../utils/createk8sClient','clusterName','../../config/constants','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','message','usage','WebSocket','type','invalid-grid-id','../../cloudproviders/utils','init-not-called','AvzJs','description','command','erSXm','bFgqS','Starting\x20grid\x20','username','reconnecting-websocket','3414JzfOtQ','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ftGhg','error','xfEOS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid','otFlJ','3386090pGIYYq','8413191XQDicL','3369752GhpczB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cloudProvider','4OebKui','string','statusCode','argv','429IYrXyD','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','../../utils/webSocketUtils','HnpnM','<UsernamePlaceholder>','stringify','help'];a19_0x2ba9=function(){return _0x425dbf;};return a19_0x2ba9();}exports[a19_0x16fa20(0x177)]=a19_0x16fa20(0x183),exports[a19_0x16fa20(0x199)]=a19_0x16fa20(0x1a8),exports[a19_0x16fa20(0x161)]=function(_0x19851a){const _0x578346=a19_0x16fa20,_0x2c53df={};_0x2c53df[_0x578346(0x196)]=_0x578346(0x17e),_0x2c53df['KZJMa']=_0x578346(0x18b),_0x2c53df[_0x578346(0x1b6)]=_0x578346(0x1a5),_0x2c53df['Svmkn']=_0x578346(0x168),_0x2c53df[_0x578346(0x195)]='help';const _0x8c8811=_0x2c53df,_0x9e4fee={};_0x9e4fee[_0x578346(0x176)]=_0x8c8811['WhVRL'],_0x9e4fee[_0x578346(0x171)]=_0x8c8811[_0x578346(0x1a4)];const _0x84ce0e={};_0x84ce0e[_0x578346(0x176)]=_0x8c8811[_0x578346(0x1b6)],_0x84ce0e['type']=_0x8c8811['Svmkn'],_0x84ce0e[_0x578346(0x1a2)]=![];const _0x1dd813={};return _0x1dd813[_0x578346(0x19b)]=_0x9e4fee,_0x1dd813[_0x578346(0x165)]=_0x84ce0e,_0x19851a[_0x578346(0x16f)](HELP_HEADER_MESSAGE['start'])[_0x578346(0x1ae)](HELP_FOOTER_MESSAGE)[_0x578346(0x1ac)](_0x1dd813)[_0x578346(0x194)](_0x8c8811[_0x578346(0x195)])[_0x578346(0x18d)];},exports['handler']=async function(_0x9d394d){const _0xe96d9a=a19_0x16fa20,_0x5de8c8={'hZBXb':_0xe96d9a(0x18f),'ujNiv':function(_0x3bbabb){return _0x3bbabb();},'oZjrR':_0xe96d9a(0x188),'lsXbv':function(_0x40b95d,_0x418d6b,_0x4ae082,_0x539635,_0xeb863b,_0x52098d,_0x4cc18f){return _0x40b95d(_0x418d6b,_0x4ae082,_0x539635,_0xeb863b,_0x52098d,_0x4cc18f);},'sNPVi':_0xe96d9a(0x162),'ftGhg':_0xe96d9a(0x174),'erSXm':function(_0xda54fb,_0x473805,_0x362475,_0x758856,_0x5de8d0,_0x5cbd02,_0x59d5bf){return _0xda54fb(_0x473805,_0x362475,_0x758856,_0x5de8d0,_0x5cbd02,_0x59d5bf);},'bFgqS':function(_0x347319){return _0x347319();},'Jyzvg':_0xe96d9a(0x192),'rUDSp':_0xe96d9a(0x19d),'kMvAr':_0xe96d9a(0x19a),'xfEOS':function(_0x4b2e6e,_0xc730a0,_0x2975b5,_0xe6b0a8){return _0x4b2e6e(_0xc730a0,_0x2975b5,_0xe6b0a8);},'AvzJs':function(_0x5b5495,_0x41f3ce,_0x50c7d3){return _0x5b5495(_0x41f3ce,_0x50c7d3);},'otFlJ':'Grid\x20started','YQsWn':function(_0x5a6343,_0x97faf6){return _0x5a6343===_0x97faf6;},'rZabv':_0xe96d9a(0x182),'OOHfW':function(_0x37a897,_0x101a46,_0x11501b,_0x24813d,_0x643dd0,_0x53dbdd,_0x1d9afe){return _0x37a897(_0x101a46,_0x11501b,_0x24813d,_0x643dd0,_0x53dbdd,_0x1d9afe);},'riEVw':'unauthorised','HnpnM':function(_0x4513d3,_0x3b3a8d){return _0x4513d3===_0x3b3a8d;},'uoyEo':_0xe96d9a(0x172),'jMMgv':function(_0x3ea056,_0x49c773,_0x453709,_0x3eac6d,_0x465594,_0x293b99,_0x403b30){return _0x3ea056(_0x49c773,_0x453709,_0x3eac6d,_0x465594,_0x293b99,_0x403b30);},'wThhl':_0xe96d9a(0x19c)};let _0x62b281;try{!_0x9d394d['gridId']&&(logger[_0xe96d9a(0x180)](_0x5de8c8[_0xe96d9a(0x1a3)]),process[_0xe96d9a(0x19f)](0x1));!fs[_0xe96d9a(0x1aa)](_0x5de8c8[_0xe96d9a(0x1b5)](getCredentialsPath))&&(logger[_0xe96d9a(0x180)](_0x5de8c8['oZjrR']),await _0x5de8c8['lsXbv'](sendInstrumentationEvent,_0x9d394d,_0x5de8c8[_0xe96d9a(0x198)],messageTypes[_0xe96d9a(0x1a7)],_0x5de8c8[_0xe96d9a(0x17f)],null,_0x9d394d),process[_0xe96d9a(0x19f)](0x1));logger[_0xe96d9a(0x1a0)](_0xe96d9a(0x17a)+_0x9d394d['gridId']),await _0x5de8c8[_0xe96d9a(0x178)](sendInstrumentationEvent,_0x9d394d,_0x5de8c8[_0xe96d9a(0x198)],messageTypes[_0xe96d9a(0x160)],null,null,_0x9d394d);const _0x4e67f4=JSON[_0xe96d9a(0x1b2)](fs[_0xe96d9a(0x1b7)](_0x5de8c8[_0xe96d9a(0x179)](getCredentialsPath)));global_registry['bstackUsername']=_0x4e67f4[_0xe96d9a(0x16c)][_0xe96d9a(0x17b)],global_registry['bstackAccesskey']=_0x4e67f4[_0xe96d9a(0x16c)][_0xe96d9a(0x1a6)];const _0x3fb28d=WS_ENDPOINT[_0xe96d9a(0x1b3)](_0x5de8c8['Jyzvg'],_0x4e67f4[_0xe96d9a(0x16c)]['username'])['replace'](_0x5de8c8[_0xe96d9a(0x19e)],_0x4e67f4[_0xe96d9a(0x16c)][_0xe96d9a(0x1a6)]),_0x246ef5={};_0x246ef5[_0xe96d9a(0x170)]=ws,_0x246ef5['connectionTimeout']=0x36ee80,_0x62b281=new ReconnectingWebSocket(_0x3fb28d,[],_0x246ef5),logger['debug'](_0x5de8c8['kMvAr']),webSocketUtils[_0xe96d9a(0x1b4)](_0x62b281,_0x9d394d['user'],_0x9d394d[_0xe96d9a(0x1a6)]);const [_0x1fcaf0,_0x4eb778]=await _0x5de8c8[_0xe96d9a(0x181)](getGridDetails,_0x4e67f4[_0xe96d9a(0x16c)]['username'],_0x4e67f4[_0xe96d9a(0x16c)][_0xe96d9a(0x1a6)],_0x9d394d['gridId']);if(_0x4eb778){const _0x5e4d16=_0x4eb778[_0xe96d9a(0x1a0)];global_registry[_0xe96d9a(0x189)]=_0x5e4d16[_0xe96d9a(0x189)],global_registry[_0xe96d9a(0x1a9)]=_0x5e4d16[_0xe96d9a(0x1ab)],global_registry['clusterName']=_0x5e4d16[_0xe96d9a(0x16a)];const _0x45ade0=await _0x5de8c8[_0xe96d9a(0x178)](getCloudProviderObject,_0x5e4d16[_0xe96d9a(0x189)],_0x5e4d16['clusterName'],_0x5e4d16[_0xe96d9a(0x1b9)],_0x62b281,webSocketUtils,_0x9d394d),[_0x51e6e1,_0x5293e8,_0x259bcb,_0x35f559,_0x32b4ea,_0x336664]=await _0x5de8c8['AvzJs'](createK8sClient,_0x45ade0,_0x9d394d['skipTlsCertVerify']);await _0x5de8c8[_0xe96d9a(0x175)](scaleUpHubDeployment,_0x5293e8,_0x5e4d16[_0xe96d9a(0x1b9)]),logger[_0xe96d9a(0x1a0)](_0x5de8c8[_0xe96d9a(0x184)]),process[_0xe96d9a(0x19f)](0x0);}_0x5de8c8['YQsWn'](_0x1fcaf0[_0xe96d9a(0x18c)],0x191)&&(logger[_0xe96d9a(0x180)](_0x5de8c8['rZabv']),await _0x5de8c8['OOHfW'](sendInstrumentationEvent,_0x9d394d,_0x5de8c8[_0xe96d9a(0x198)],messageTypes[_0xe96d9a(0x1a7)],_0x5de8c8[_0xe96d9a(0x1af)],null,_0x9d394d),process['exit'](0x1)),_0x5de8c8[_0xe96d9a(0x191)](_0x1fcaf0[_0xe96d9a(0x18c)],0x190)&&(logger[_0xe96d9a(0x180)](JSON[_0xe96d9a(0x1b2)](_0x1fcaf0[_0xe96d9a(0x1ba)])[_0xe96d9a(0x16e)]),await _0x5de8c8[_0xe96d9a(0x178)](sendInstrumentationEvent,_0x9d394d,_0x5de8c8['sNPVi'],messageTypes['ERROR'],_0x5de8c8[_0xe96d9a(0x1ad)],null,_0x9d394d),process[_0xe96d9a(0x19f)](0x1)),logger[_0xe96d9a(0x180)](_0xe96d9a(0x16d)+JSON[_0xe96d9a(0x193)](_0x1fcaf0)),await _0x5de8c8[_0xe96d9a(0x166)](sendInstrumentationEvent,_0x9d394d,_0x5de8c8[_0xe96d9a(0x198)],messageTypes['ERROR'],_0x5de8c8['wThhl'],_0x1fcaf0,_0x9d394d),process['exit'](0x1);}catch(_0x12a23c){const _0x7c4fff=_0xe96d9a(0x1b8)+_0x12a23c+'\x20\x0a'+JSON[_0xe96d9a(0x193)](_0x12a23c[_0xe96d9a(0x1a1)])+'\x20';logger[_0xe96d9a(0x180)](_0x7c4fff),process['exit'](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
+ function a20_0x5ac1(){const _0x16016e=['epilogue','34692tLjADF','command','help','195530WTtQBu','2672709bZXycj','demandCommand','Stop\x20a\x20running\x20Automation\x20grid.','12qyfwld','usage','555032imHKTe','9TpvGlM','9EYKGKR','57025DYASbn','1056HYKhAI','stop_commands','96mmCfmX','strict','JowQW','builder','handler','7125110lmjrHG','stop','commandDir','recommendCommands','8JrPfXi','7096873AwireO'];a20_0x5ac1=function(){return _0x16016e;};return a20_0x5ac1();}function a20_0x43e0(_0x63583b,_0x1abfc9){const _0x5ac1f1=a20_0x5ac1();return a20_0x43e0=function(_0x43e033,_0x51bcd4){_0x43e033=_0x43e033-0x1b9;let _0x50ee7c=_0x5ac1f1[_0x43e033];return _0x50ee7c;},a20_0x43e0(_0x63583b,_0x1abfc9);}const a20_0x2822a4=a20_0x43e0;(function(_0x28d285,_0x576ee3){const _0x2bd177=a20_0x43e0,_0x54e79c=_0x28d285();while(!![]){try{const _0x284fbe=-parseInt(_0x2bd177(0x1bd))/0x1*(-parseInt(_0x2bd177(0x1d3))/0x2)+-parseInt(_0x2bd177(0x1bb))/0x3*(-parseInt(_0x2bd177(0x1ba))/0x4)+parseInt(_0x2bd177(0x1cf))/0x5*(parseInt(_0x2bd177(0x1c0))/0x6)+parseInt(_0x2bd177(0x1ca))/0x7*(-parseInt(_0x2bd177(0x1c9))/0x8)+parseInt(_0x2bd177(0x1bc))/0x9*(parseInt(_0x2bd177(0x1c5))/0xa)+parseInt(_0x2bd177(0x1be))/0xb*(-parseInt(_0x2bd177(0x1cc))/0xc)+-parseInt(_0x2bd177(0x1d0))/0xd;if(_0x284fbe===_0x576ee3)break;else _0x54e79c['push'](_0x54e79c['shift']());}catch(_0x222b35){_0x54e79c['push'](_0x54e79c['shift']());}}}(a20_0x5ac1,0x9266f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x2822a4(0x1cd)]=a20_0x2822a4(0x1c6),exports['desc']=a20_0x2822a4(0x1d2),exports[a20_0x2822a4(0x1c3)]=function(_0x388fa6){const _0x89f275=a20_0x2822a4,_0x175191={};_0x175191[_0x89f275(0x1c2)]=_0x89f275(0x1bf),_0x175191['oGPRg']=_0x89f275(0x1ce);const _0x502b38=_0x175191;return _0x388fa6[_0x89f275(0x1b9)](HELP_HEADER_MESSAGE[_0x89f275(0x1c6)])[_0x89f275(0x1cb)](HELP_FOOTER_MESSAGE)[_0x89f275(0x1c7)](_0x502b38[_0x89f275(0x1c2)])[_0x89f275(0x1d1)]()[_0x89f275(0x1c8)]()[_0x89f275(0x1c1)]()[_0x89f275(0x1ce)](_0x502b38['oGPRg']);},exports[a20_0x2822a4(0x1c4)]=function(_0x4af52b){};
@@ -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
+ function a21_0x3ab4(_0x22158a,_0x1c9cbc){const _0x109be8=a21_0x109b();return a21_0x3ab4=function(_0x3ab424,_0x4a73f6){_0x3ab424=_0x3ab424-0x110;let _0x29169b=_0x109be8[_0x3ab424];return _0x29169b;},a21_0x3ab4(_0x22158a,_0x1c9cbc);}const a21_0x22fd2c=a21_0x3ab4;function a21_0x109b(){const _0x5e8c17=['XuHKr','oEOGt','handler','grid','6212028hDLBrO','XIsBl','argv','ZGlia','gridId','iHDAW','Stopping\x20grid\x20','../../utils/createk8sClient','init-not-called','statusCode','OTQuB','dPrVy','CeFIt','skip-tls-cert-verify','stack','HbWZU','clusterRegion','GYbTB','existsSync','Skip\x20insecure\x20cert\x20verification.','../../cloudproviders/utils','body','WiZMD','invalid-grid-id','<PasswordPlaceholder>','message','stringify','stop','replace','mmFST','JpkOn','unauthorised','stop-grid-called','../../utils/gridComponents','2278062nPErCQ','command','EuROc','exit','elGlc','readFileSync','default','parse','grid-id','<UsernamePlaceholder>','string','HMUyq','description','Browserstack','aqLTu','Adding\x20Websocket\x20listeners','username','user','INFO','error','2770977ytYVXT','../../utils/utilityMethods','mmfGm','15482450PVcZfc','cloudProvider','rrrpt','zZJHt','clusterName','debug','epilogue','1KDiaqk','addListeners','../../config/constants','12icTNhS','desc','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','name','options','reconnecting-websocket','2264DtRvoW','skipTlsCertVerify','connectionTimeout','1968775lIYyaX','info','type','8029wLlIVE','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','help','../../config/logger','613602WEzgeR','password'];a21_0x109b=function(){return _0x5e8c17;};return a21_0x109b();}(function(_0x38ef6e,_0x3a1ca4){const _0x1ff9e7=a21_0x3ab4,_0x247ef4=_0x38ef6e();while(!![]){try{const _0x2d25b4=-parseInt(_0x1ff9e7(0x153))/0x1*(-parseInt(_0x1ff9e7(0x135))/0x2)+-parseInt(_0x1ff9e7(0x149))/0x3+parseInt(_0x1ff9e7(0x156))/0x4*(parseInt(_0x1ff9e7(0x160))/0x5)+parseInt(_0x1ff9e7(0x113))/0x6+-parseInt(_0x1ff9e7(0x163))/0x7*(parseInt(_0x1ff9e7(0x15d))/0x8)+parseInt(_0x1ff9e7(0x167))/0x9+-parseInt(_0x1ff9e7(0x14c))/0xa;if(_0x2d25b4===_0x3a1ca4)break;else _0x247ef4['push'](_0x247ef4['shift']());}catch(_0x81f62b){_0x247ef4['push'](_0x247ef4['shift']());}}}(a21_0x109b,0x9926b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x22fd2c(0x15c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x22fd2c(0x155)),{logger}=require(a21_0x22fd2c(0x166)),{getCredentialsPath,getGridDetails}=require(a21_0x22fd2c(0x14a)),{scaleDownHubDeployment}=require(a21_0x22fd2c(0x134)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x22fd2c(0x11a)),{getCloudProviderObject}=require(a21_0x22fd2c(0x127));exports[a21_0x22fd2c(0x136)]=a21_0x22fd2c(0x112),exports[a21_0x22fd2c(0x157)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0xefef94){const _0x253ec6=a21_0x22fd2c,_0x5908a5={};_0x5908a5[_0x253ec6(0x116)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x5908a5[_0x253ec6(0x124)]=_0x253ec6(0x13f),_0x5908a5['iHDAW']=_0x253ec6(0x126),_0x5908a5[_0x253ec6(0x122)]='boolean',_0x5908a5[_0x253ec6(0x11e)]='help';const _0x742037=_0x5908a5,_0x2e9e9f={};_0x2e9e9f['description']=_0x742037[_0x253ec6(0x116)],_0x2e9e9f['type']=_0x742037[_0x253ec6(0x124)];const _0x17b066={};_0x17b066[_0x253ec6(0x141)]=_0x742037[_0x253ec6(0x118)],_0x17b066[_0x253ec6(0x162)]=_0x742037[_0x253ec6(0x122)],_0x17b066[_0x253ec6(0x13b)]=![];const _0x1f631c={};return _0x1f631c[_0x253ec6(0x13d)]=_0x2e9e9f,_0x1f631c[_0x253ec6(0x120)]=_0x17b066,_0xefef94['usage'](HELP_HEADER_MESSAGE[_0x253ec6(0x12e)])[_0x253ec6(0x152)](HELP_FOOTER_MESSAGE)[_0x253ec6(0x15b)](_0x1f631c)[_0x253ec6(0x165)](_0x742037[_0x253ec6(0x11e)])[_0x253ec6(0x115)];},exports[a21_0x22fd2c(0x111)]=async function(_0x5743f6){const _0x5e3c57=a21_0x22fd2c,_0x2316c9={'MxtKQ':_0x5e3c57(0x164),'CeFIt':function(_0x201e9c){return _0x201e9c();},'aqLTu':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','mmFST':function(_0x151d57,_0x473d1f,_0x4008fb,_0x3d3960,_0x355d78,_0x53525b,_0x398776){return _0x151d57(_0x473d1f,_0x4008fb,_0x3d3960,_0x355d78,_0x53525b,_0x398776);},'WiZMD':_0x5e3c57(0x133),'zZJHt':_0x5e3c57(0x11b),'EuROc':function(_0x528e33,_0x31f029,_0x35c093,_0xb8bd1c,_0x508e93,_0x2059aa,_0x236707){return _0x528e33(_0x31f029,_0x35c093,_0xb8bd1c,_0x508e93,_0x2059aa,_0x236707);},'JpkOn':function(_0x6095c1){return _0x6095c1();},'YWSdy':_0x5e3c57(0x13e),'XIsBl':_0x5e3c57(0x12b),'oEOGt':_0x5e3c57(0x144),'rrrpt':function(_0x1a2b89,_0x472d50,_0x153c91,_0x3043dc){return _0x1a2b89(_0x472d50,_0x153c91,_0x3043dc);},'XuHKr':function(_0x3b91b1,_0x34f716,_0x438955){return _0x3b91b1(_0x34f716,_0x438955);},'SGigt':'Grid\x20stoppped.','mmfGm':function(_0x91d948,_0x9dfd72){return _0x91d948===_0x9dfd72;},'elGlc':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','zkDuo':function(_0x233927,_0x143186,_0x2377bf,_0x44e797,_0x431105,_0x18d90b,_0x131672){return _0x233927(_0x143186,_0x2377bf,_0x44e797,_0x431105,_0x18d90b,_0x131672);},'HMUyq':_0x5e3c57(0x132),'tzENC':_0x5e3c57(0x12a),'OTQuB':function(_0x45997c,_0x176810,_0x545a50,_0x48d4b9,_0x260f0c,_0x330f99,_0x1babf9){return _0x45997c(_0x176810,_0x545a50,_0x48d4b9,_0x260f0c,_0x330f99,_0x1babf9);},'JmjbG':'server-error'};let _0x3ff8d0;try{!_0x5743f6[_0x5e3c57(0x117)]&&(logger[_0x5e3c57(0x148)](_0x2316c9['MxtKQ']),process[_0x5e3c57(0x138)](0x1));!fs[_0x5e3c57(0x125)](_0x2316c9[_0x5e3c57(0x11f)](getCredentialsPath))&&(logger[_0x5e3c57(0x148)](_0x2316c9[_0x5e3c57(0x143)]),await _0x2316c9[_0x5e3c57(0x130)](sendInstrumentationEvent,_0x5743f6,_0x2316c9[_0x5e3c57(0x129)],messageTypes['ERROR'],_0x2316c9[_0x5e3c57(0x14f)],null,_0x5743f6),process[_0x5e3c57(0x138)](0x1));logger[_0x5e3c57(0x161)](_0x5e3c57(0x119)+_0x5743f6[_0x5e3c57(0x117)]),await _0x2316c9[_0x5e3c57(0x137)](sendInstrumentationEvent,_0x5743f6,_0x2316c9[_0x5e3c57(0x129)],messageTypes[_0x5e3c57(0x147)],null,null,_0x5743f6);const _0x417dd4=JSON[_0x5e3c57(0x13c)](fs[_0x5e3c57(0x13a)](_0x2316c9[_0x5e3c57(0x131)](getCredentialsPath)));global_registry['bstackUsername']=_0x417dd4[_0x5e3c57(0x142)]['username'],global_registry['bstackAccesskey']=_0x417dd4[_0x5e3c57(0x142)][_0x5e3c57(0x168)];const _0x420cff=WS_ENDPOINT['replace'](_0x2316c9['YWSdy'],_0x417dd4[_0x5e3c57(0x142)][_0x5e3c57(0x145)])[_0x5e3c57(0x12f)](_0x2316c9[_0x5e3c57(0x114)],_0x417dd4[_0x5e3c57(0x142)][_0x5e3c57(0x168)]),_0x514bf2={};_0x514bf2['WebSocket']=ws,_0x514bf2[_0x5e3c57(0x15f)]=0x36ee80,_0x3ff8d0=new ReconnectingWebSocket(_0x420cff,[],_0x514bf2),logger[_0x5e3c57(0x151)](_0x2316c9[_0x5e3c57(0x110)]),webSocketUtils[_0x5e3c57(0x154)](_0x3ff8d0,_0x5743f6[_0x5e3c57(0x146)],_0x5743f6[_0x5e3c57(0x168)]);const [_0x4e1519,_0x501df1]=await _0x2316c9[_0x5e3c57(0x14e)](getGridDetails,_0x417dd4[_0x5e3c57(0x142)]['username'],_0x417dd4['Browserstack']['password'],_0x5743f6[_0x5e3c57(0x117)]);if(_0x501df1){const _0x185955=_0x501df1[_0x5e3c57(0x161)];global_registry[_0x5e3c57(0x14d)]=_0x185955[_0x5e3c57(0x14d)],global_registry[_0x5e3c57(0x123)]=_0x185955['region'],global_registry[_0x5e3c57(0x150)]=_0x185955[_0x5e3c57(0x150)];const _0x3d2dd6=await _0x2316c9['EuROc'](getCloudProviderObject,_0x185955['cloudProvider'],_0x185955['clusterName'],_0x185955[_0x5e3c57(0x15a)],_0x3ff8d0,webSocketUtils,_0x5743f6),[_0x490dd7,_0x2f291c,_0x19d76b,_0x1999c2,_0x5503ce,_0x4e9ab0]=await _0x2316c9[_0x5e3c57(0x169)](createK8sClient,_0x3d2dd6,_0x5743f6[_0x5e3c57(0x15e)]);await _0x2316c9[_0x5e3c57(0x169)](scaleDownHubDeployment,_0x2f291c,_0x185955['name']),logger['info'](_0x2316c9['SGigt']),process['exit'](0x0);}_0x2316c9[_0x5e3c57(0x14b)](_0x4e1519['statusCode'],0x191)&&(logger['error'](_0x2316c9[_0x5e3c57(0x139)]),await _0x2316c9['zkDuo'](sendInstrumentationEvent,_0x5743f6,_0x2316c9['WiZMD'],messageTypes[_0x5e3c57(0x158)],_0x2316c9[_0x5e3c57(0x140)],null,_0x5743f6),process[_0x5e3c57(0x138)](0x1)),_0x2316c9['mmfGm'](_0x4e1519[_0x5e3c57(0x11c)],0x190)&&(logger[_0x5e3c57(0x148)](JSON[_0x5e3c57(0x13c)](_0x4e1519[_0x5e3c57(0x128)])[_0x5e3c57(0x12c)]),await _0x2316c9[_0x5e3c57(0x130)](sendInstrumentationEvent,_0x5743f6,_0x2316c9[_0x5e3c57(0x129)],messageTypes[_0x5e3c57(0x158)],_0x2316c9['tzENC'],null,_0x5743f6),process[_0x5e3c57(0x138)](0x1)),logger[_0x5e3c57(0x148)](_0x5e3c57(0x159)+JSON[_0x5e3c57(0x12d)](_0x4e1519)),await _0x2316c9[_0x5e3c57(0x11d)](sendInstrumentationEvent,_0x5743f6,_0x2316c9[_0x5e3c57(0x129)],messageTypes[_0x5e3c57(0x158)],_0x2316c9['JmjbG'],_0x4e1519,_0x5743f6),process[_0x5e3c57(0x138)](0x1);}catch(_0x591363){const _0x8b141a='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x591363+'\x20\x0a'+JSON[_0x5e3c57(0x12d)](_0x591363[_0x5e3c57(0x121)])+'\x20';logger[_0x5e3c57(0x148)](_0x8b141a),process[_0x5e3c57(0x138)](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_0x5a7754=a22_0x577f;(function(_0x5e058e,_0x1930a8){const _0x2aa85d=a22_0x577f,_0x8490e2=_0x5e058e();while(!![]){try{const _0x185eb1=parseInt(_0x2aa85d(0x1a4))/0x1+parseInt(_0x2aa85d(0x1c3))/0x2+parseInt(_0x2aa85d(0x1d2))/0x3+-parseInt(_0x2aa85d(0x197))/0x4+parseInt(_0x2aa85d(0x1c8))/0x5*(-parseInt(_0x2aa85d(0x18c))/0x6)+parseInt(_0x2aa85d(0x1b7))/0x7+parseInt(_0x2aa85d(0x1ca))/0x8;if(_0x185eb1===_0x1930a8)break;else _0x8490e2['push'](_0x8490e2['shift']());}catch(_0x4c6a81){_0x8490e2['push'](_0x8490e2['shift']());}}}(a22_0x1721,0x27ec2),require(a22_0x5a7754(0x192))[a22_0x5a7754(0x1a6)](),exports[a22_0x5a7754(0x1b3)]=process[a22_0x5a7754(0x18d)]['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports['BS_API_URL']=process[a22_0x5a7754(0x18d)][a22_0x5a7754(0x1b0)]||a22_0x5a7754(0x1b5),exports[a22_0x5a7754(0x184)]=process[a22_0x5a7754(0x18d)][a22_0x5a7754(0x184)]||a22_0x5a7754(0x19a),exports['WS_ENDPOINT']=a22_0x5a7754(0x194)+this[a22_0x5a7754(0x184)]+a22_0x5a7754(0x1bf),exports[a22_0x5a7754(0x1d3)]=a22_0x5a7754(0x1a1),exports[a22_0x5a7754(0x1c7)]=a22_0x5a7754(0x1cc),exports[a22_0x5a7754(0x1be)]=a22_0x5a7754(0x19b),exports[a22_0x5a7754(0x183)]=a22_0x5a7754(0x1cb),exports['CLUSTER_DEP_STACK_NAME']=a22_0x5a7754(0x1bd),exports[a22_0x5a7754(0x18b)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x5a7754(0x19e),exports['TURBOSCALE_DEPLOYMENT']=a22_0x5a7754(0x19d),exports[a22_0x5a7754(0x1b9)]=a22_0x5a7754(0x188),exports[a22_0x5a7754(0x1b8)]=a22_0x5a7754(0x1d5),exports[a22_0x5a7754(0x185)]=[this[a22_0x5a7754(0x183)],this[a22_0x5a7754(0x1b9)],this[a22_0x5a7754(0x1b8)]]);const a22_0x528197={};a22_0x528197['Key']=a22_0x5a7754(0x198),a22_0x528197['Value']=a22_0x5a7754(0x179);const a22_0x2160e4={};a22_0x2160e4['Key']=a22_0x5a7754(0x1d6),a22_0x2160e4[a22_0x5a7754(0x17d)]=a22_0x5a7754(0x181);const common_hst_tags_list=[a22_0x528197,a22_0x2160e4];if(process['env'][a22_0x5a7754(0x1bb)]){const parsedTags=process[a22_0x5a7754(0x18d)]['TURBOSCALE_CUSTOM_TAGS']['split'](',');parsedTags[a22_0x5a7754(0x1a2)](_0x4d203d=>{const _0xac8b96=a22_0x5a7754,_0x30a459=_0x4d203d[_0xac8b96(0x1c1)](':'),_0x25d269={};_0x25d269[_0xac8b96(0x1a3)]=_0x30a459[0x0],_0x25d269['Value']=_0x30a459[0x1],common_hst_tags_list[_0xac8b96(0x17a)](_0x25d269);});}exports[a22_0x5a7754(0x1c9)]=common_hst_tags_list;const a22_0x29748c={};a22_0x29748c[a22_0x5a7754(0x198)]='BrowserStack',a22_0x29748c['browserstack:service']=a22_0x5a7754(0x181),exports['HST_CLUSTER_TAGS']=a22_0x29748c,exports[a22_0x5a7754(0x193)]=[this['AWS']];const a22_0xff9ef2={};a22_0xff9ef2['LOG']=a22_0x5a7754(0x1ba),a22_0xff9ef2['RESOURCES']=a22_0x5a7754(0x1c2),a22_0xff9ef2[a22_0x5a7754(0x18f)]=a22_0x5a7754(0x189),a22_0xff9ef2['CLI_RUN_STARTED']='cliRunStarted',a22_0xff9ef2[a22_0x5a7754(0x17e)]=a22_0x5a7754(0x1ae),exports[a22_0x5a7754(0x1cd)]=a22_0xff9ef2,exports[a22_0x5a7754(0x191)]={},exports[a22_0x5a7754(0x1b2)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x4911b1={};a22_0x4911b1[a22_0x5a7754(0x1a9)]=a22_0x5a7754(0x1ad)+this['LINK_MESSAGE'],a22_0x4911b1['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x5a7754(0x1b2)],a22_0x4911b1[a22_0x5a7754(0x199)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x5a7754(0x1b2)],a22_0x4911b1[a22_0x5a7754(0x1a0)]=a22_0x5a7754(0x1a8)+this[a22_0x5a7754(0x1b2)],a22_0x4911b1[a22_0x5a7754(0x1c5)]={},a22_0x4911b1[a22_0x5a7754(0x1ce)]=a22_0x5a7754(0x190)+this[a22_0x5a7754(0x1b2)],a22_0x4911b1[a22_0x5a7754(0x1c6)]=a22_0x5a7754(0x1d7)+this[a22_0x5a7754(0x1b2)],a22_0x4911b1['start']=a22_0x5a7754(0x1aa)+this[a22_0x5a7754(0x1b2)],a22_0x4911b1[a22_0x5a7754(0x1b1)]=a22_0x5a7754(0x1c4)+this[a22_0x5a7754(0x1b2)],a22_0x4911b1['pre_check']=a22_0x5a7754(0x17f)+this[a22_0x5a7754(0x1b2)],a22_0x4911b1[a22_0x5a7754(0x1c5)][a22_0x5a7754(0x1a9)]=a22_0x5a7754(0x1cf)+this[a22_0x5a7754(0x1b2)],a22_0x4911b1[a22_0x5a7754(0x1c5)][a22_0x5a7754(0x180)]=a22_0x5a7754(0x18e)+this[a22_0x5a7754(0x1b2)],a22_0x4911b1[a22_0x5a7754(0x1c5)]['gridProfile']=a22_0x5a7754(0x1c0)+this[a22_0x5a7754(0x1b2)],exports[a22_0x5a7754(0x182)]=a22_0x4911b1,exports[a22_0x5a7754(0x187)]=a22_0x5a7754(0x1d4);const a22_0x35033c={};a22_0x35033c[a22_0x5a7754(0x1b6)]=a22_0x5a7754(0x195),a22_0x35033c[a22_0x5a7754(0x1b4)]=a22_0x5a7754(0x178),a22_0x35033c['INFO']=a22_0x5a7754(0x1d0),a22_0x35033c[a22_0x5a7754(0x1a5)]=a22_0x5a7754(0x1d1),a22_0x35033c[a22_0x5a7754(0x1ac)]='unknown',a22_0x35033c['NULL']=null,exports[a22_0x5a7754(0x186)]=a22_0x35033c,exports[a22_0x5a7754(0x18a)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5a7754(0x177)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5a7754(0x19f)]=a22_0x5a7754(0x1af);const a22_0x5d26b7={};a22_0x5d26b7[a22_0x5a7754(0x1bc)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x48090b={};function a22_0x1721(){const _0x239e86=['stop','LINK_MESSAGE','DASHBOARD_ENDPOINT','ERROR','api.browserstack.com','SUCCESS','576065zhvTEP','GCP','AZURE','log','TURBOSCALE_CUSTOM_TAGS','grid-profile','BSTACK-ATS-CLUSTER','DEFAULT_GRID_NAME','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','split','resourceInfo','123810JiKXDc','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','list','connect','IAM_USER_NAME','437110MuCyGW','COMMON_HST_TAGS','447928olhsqd','aws','BrowserStackIAMUser','WS_EVENTS','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','info','warning','709212OGBoSi','CP_CONFIG_FILE','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','gcp','browserstack:service','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','REGION','RAW_ARGS_REGEX','error','BrowserStack','push','MessageDescription','CLUSTER','Value','CLI_RUN_FINISHED','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','grid','BrowserStack-Automate-TurboScale','HELP_HEADER_MESSAGE','AWS','AG_API_URL','ALL_SUPPORTED_CLOUD_PROVIDERS','messageTypes','HELP_FOOTER_MESSAGE','azure','gridUrl','CLI_ARGS_REGEX','CLUSTER_AUTOSCALER_STACK_NAME','18CWkduf','env','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','GRID_URL','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','global_registry','dotenv','SUPPORTED_CLOUD_PROVIDERS','wss://','success','TRIAL_GRID_URL','511456Gmkdem','browserstack:managedBy','configure','grid-api.browserstack.com','high-scale-grid','CLOUD_PROVIDER','browserstack-turboscale-grid','BSTACK-ATS-CLUSTER-HUB-HA','REDACTED','create','credentials','forEach','Key','117057CrpWVk','WARNING','config','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','root','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','high-scale-grid-cluster','UNKNOWN','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','cliRunFinished','[REDACTED]','BS_API_URL'];a22_0x1721=function(){return _0x239e86;};return a22_0x1721();}a22_0x48090b['pre-check']=a22_0x5d26b7,exports[a22_0x5a7754(0x17b)]=a22_0x48090b,exports[a22_0x5a7754(0x196)]=a22_0x5a7754(0x1a7);const a22_0x27b77c={};function a22_0x577f(_0x5f4573,_0x1cc30c){const _0x1721ba=a22_0x1721();return a22_0x577f=function(_0x577f6c,_0x4bd206){_0x577f6c=_0x577f6c-0x176;let _0x128734=_0x1721ba[_0x577f6c];return _0x128734;},a22_0x577f(_0x5f4573,_0x1cc30c);}a22_0x27b77c[a22_0x5a7754(0x17c)]=a22_0x5a7754(0x1ab),a22_0x27b77c[a22_0x5a7754(0x19c)]=a22_0x5a7754(0x1cb),a22_0x27b77c[a22_0x5a7754(0x176)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x27b77c;
@@ -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
+ function a23_0x2042(){const _0x3e4b75=['createLogger','8454306tTTOgB','457019KDTKIK','3737330PuZVOR','join','5023422FVvefF','timestamp','log','printf','level','mkdirSync','1156532RdjqKi','transports','usage.log','fileLogger','events.log','format','path','combine','File','Console','1817685MZXqNl','winston','message','logger','344152SBZXPh','console.info','\x20-\x20','debug','colorize','YYYY-MM-DD\x20HH:mm:ss'];a23_0x2042=function(){return _0x3e4b75;};return a23_0x2042();}const a23_0x44f680=a23_0x34bb;function a23_0x34bb(_0x1ef6ca,_0xccde4a){const _0x2042bd=a23_0x2042();return a23_0x34bb=function(_0x34bb74,_0x6df97a){_0x34bb74=_0x34bb74-0x1f2;let _0x290d4e=_0x2042bd[_0x34bb74];return _0x290d4e;},a23_0x34bb(_0x1ef6ca,_0xccde4a);}(function(_0x535975,_0xc41991){const _0x16468e=a23_0x34bb,_0x4e959e=_0x535975();while(!![]){try{const _0x25c34e=-parseInt(_0x16468e(0x201))/0x1+parseInt(_0x16468e(0x20a))/0x2+parseInt(_0x16468e(0x1f5))/0x3+parseInt(_0x16468e(0x1f9))/0x4+-parseInt(_0x16468e(0x202))/0x5+-parseInt(_0x16468e(0x204))/0x6+parseInt(_0x16468e(0x200))/0x7;if(_0x25c34e===_0xc41991)break;else _0x4e959e['push'](_0x4e959e['shift']());}catch(_0x4f4a8e){_0x4e959e['push'](_0x4e959e['shift']());}}}(a23_0x2042,0x6a80b));const winston=require(a23_0x44f680(0x1f6)),fs=require('fs'),path=require(a23_0x44f680(0x210)),logDir=a23_0x44f680(0x206);!fs['existsSync'](logDir)&&fs[a23_0x44f680(0x209)](logDir);const a23_0x2e9c80={};a23_0x2e9c80[a23_0x44f680(0x20f)]=a23_0x44f680(0x1fe);const a23_0x442d33={};a23_0x442d33[a23_0x44f680(0x208)]=!![];const a23_0x2a8f2a={};a23_0x2a8f2a['name']=a23_0x44f680(0x1fa),exports[a23_0x44f680(0x1f8)]=new winston[(a23_0x44f680(0x1ff))]({'format':winston[a23_0x44f680(0x20f)][a23_0x44f680(0x1f2)](winston[a23_0x44f680(0x20f)][a23_0x44f680(0x205)](a23_0x2e9c80),winston[a23_0x44f680(0x20f)][a23_0x44f680(0x1fd)](a23_0x442d33),winston['format'][a23_0x44f680(0x207)](_0x1dd7d6=>_0x1dd7d6[a23_0x44f680(0x205)]+a23_0x44f680(0x1fb)+_0x1dd7d6[a23_0x44f680(0x208)]+':\x20'+_0x1dd7d6[a23_0x44f680(0x1f7)])),'transports':[new winston[(a23_0x44f680(0x20b))][(a23_0x44f680(0x1f4))](a23_0x2a8f2a),new winston[(a23_0x44f680(0x20b))][(a23_0x44f680(0x1f3))]({'filename':path[a23_0x44f680(0x203)](logDir,a23_0x44f680(0x20e)),'level':a23_0x44f680(0x1fc)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x44f680(0x20b))][(a23_0x44f680(0x1f3))]({'filename':path['join'](logDir,a23_0x44f680(0x20c)),'level':a23_0x44f680(0x1fc)})]};exports[a23_0x44f680(0x20d)]=new winston[(a23_0x44f680(0x1ff))](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_0x198e9f=a24_0x3b92;(function(_0x11c96a,_0x557fe5){const _0x1c4322=a24_0x3b92,_0x5e1a34=_0x11c96a();while(!![]){try{const _0x111aa5=-parseInt(_0x1c4322(0x1dc))/0x1+parseInt(_0x1c4322(0x1d8))/0x2*(parseInt(_0x1c4322(0x1df))/0x3)+parseInt(_0x1c4322(0x1e7))/0x4+parseInt(_0x1c4322(0x1e9))/0x5+-parseInt(_0x1c4322(0x1ec))/0x6+parseInt(_0x1c4322(0x1e5))/0x7*(-parseInt(_0x1c4322(0x1da))/0x8)+parseInt(_0x1c4322(0x1e2))/0x9;if(_0x111aa5===_0x557fe5)break;else _0x5e1a34['push'](_0x5e1a34['shift']());}catch(_0x43d40f){_0x5e1a34['push'](_0x5e1a34['shift']());}}}(a24_0xce81,0x4972c));function a24_0x3b92(_0x339b8f,_0xc39153){const _0xce815=a24_0xce81();return a24_0x3b92=function(_0x3b9245,_0x57699e){_0x3b9245=_0x3b9245-0x1d7;let _0x2db362=_0xce815[_0x3b9245];return _0x2db362;},a24_0x3b92(_0x339b8f,_0xc39153);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x198e9f(0x1dd));process[a24_0x198e9f(0x1e1)][a24_0x198e9f(0x1eb)]=0x1;function a24_0xce81(){const _0x40189a=['2963286MwSrzt','exports','demandCommand','609akjefh','epilogue','1696272SXhMAH','usage','2587280Viwwsn','commandDir','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','3315630iqzrqa','root','2WXKEkt','SJdDN','45656MnJsBL','commands','311784nHCNbs','./config/constants','help','1172892npfDad','rkGpm','env'];a24_0xce81=function(){return _0x40189a;};return a24_0xce81();}function run(_0x4543fc){const _0x4ce68e=a24_0x198e9f,_0x26da31={};_0x26da31[_0x4ce68e(0x1d9)]=_0x4ce68e(0x1db),_0x26da31[_0x4ce68e(0x1e0)]=_0x4ce68e(0x1de);const _0x36b3a7=_0x26da31;_0x4543fc[_0x4ce68e(0x1e8)](HELP_HEADER_MESSAGE[_0x4ce68e(0x1d7)])[_0x4ce68e(0x1ea)](_0x36b3a7[_0x4ce68e(0x1d9)])[_0x4ce68e(0x1e4)]()['help'](_0x36b3a7['rkGpm'])[_0x4ce68e(0x1e6)](HELP_FOOTER_MESSAGE);}module[a24_0x198e9f(0x1e3)]=run;