browserstack-node-sdk 1.41.1 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) 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/cucumber-sessionDetails.js +1 -0
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/playwright-patcher.js +1 -0
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/playwright-helper.js +1 -0
  154. package/src/helpers/processHelper.js +1 -1
  155. package/src/helpers/request-spy.js +1 -1
  156. package/src/helpers/setKeepAlive.js +1 -1
  157. package/src/helpers/test-observability/constants.js +1 -1
  158. package/src/helpers/test-observability/error-handler.js +1 -1
  159. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  160. package/src/helpers/test-observability/sessionHandler.js +1 -1
  161. package/src/helpers/test-observability/utils.js +1 -1
  162. package/src/helpers/test-orchestration/constants.js +1 -1
  163. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  164. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  165. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  166. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  167. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  168. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  169. package/src/helpers/testhub/constants.js +1 -1
  170. package/src/helpers/testhub/testhubHandler.js +1 -1
  171. package/src/helpers/testhub/utils.js +1 -1
  172. package/src/helpers/timeoutPromise.js +1 -1
  173. package/src/helpers/utilities.js +1 -1
  174. package/src/helpers/w3cMapping.js +1 -1
  175. package/src/hubAllocationMethods.js +1 -1
  176. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x4fdb(_0xb3aafe,_0x4ab66e){const _0x3363ee=a15_0x3363();return a15_0x4fdb=function(_0x4fdb62,_0x5f3636){_0x4fdb62=_0x4fdb62-0xa0;let _0x116869=_0x3363ee[_0x4fdb62];return _0x116869;},a15_0x4fdb(_0xb3aafe,_0x4ab66e);}const a15_0x5a4508=a15_0x4fdb;(function(_0x429f89,_0x86c479){const _0x33026a=a15_0x4fdb,_0x1135ac=_0x429f89();while(!![]){try{const _0x257f1c=parseInt(_0x33026a(0xf0))/0x1*(-parseInt(_0x33026a(0xb6))/0x2)+parseInt(_0x33026a(0xcb))/0x3*(-parseInt(_0x33026a(0xef))/0x4)+parseInt(_0x33026a(0xd6))/0x5+parseInt(_0x33026a(0xe1))/0x6+-parseInt(_0x33026a(0xfc))/0x7*(-parseInt(_0x33026a(0xb0))/0x8)+-parseInt(_0x33026a(0xc9))/0x9+-parseInt(_0x33026a(0xd2))/0xa*(-parseInt(_0x33026a(0xaf))/0xb);if(_0x257f1c===_0x86c479)break;else _0x1135ac['push'](_0x1135ac['shift']());}catch(_0x549d93){_0x1135ac['push'](_0x1135ac['shift']());}}}(a15_0x3363,0x33d22));const fs=require('fs'),got=require(a15_0x5a4508(0xca)),{table}=require(a15_0x5a4508(0xb9)),{v4:uuidv4}=require(a15_0x5a4508(0xf9)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5a4508(0xa4)),{getCredentialsPath,getAuthHeader}=require(a15_0x5a4508(0xc5)),{sendInstrumentationEvent}=require(a15_0x5a4508(0xdc));exports[a15_0x5a4508(0xa9)]=a15_0x5a4508(0xcd),exports[a15_0x5a4508(0xa6)]=a15_0x5a4508(0xf4),exports[a15_0x5a4508(0xf5)]=function(_0x40ec13){const _0x2a924f=a15_0x5a4508,_0x154c20={};_0x154c20[_0x2a924f(0xb1)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x154c20[_0x2a924f(0xfb)]='boolean',_0x154c20[_0x2a924f(0xbb)]=_0x2a924f(0xd8);const _0x1d3951=_0x154c20,_0x37c7e6={};_0x37c7e6[_0x2a924f(0xf2)]=_0x1d3951[_0x2a924f(0xb1)],_0x37c7e6[_0x2a924f(0xc8)]=_0x1d3951['xLaxE'];const _0x51aba8={};return _0x51aba8[_0x2a924f(0xbd)]=_0x37c7e6,_0x40ec13['usage'](HELP_HEADER_MESSAGE[_0x2a924f(0xec)][_0x2a924f(0xe7)])[_0x2a924f(0xd1)](HELP_FOOTER_MESSAGE)[_0x2a924f(0xa1)](_0x51aba8)['help'](_0x1d3951[_0x2a924f(0xbb)])[_0x2a924f(0xd5)];},exports[a15_0x5a4508(0xcc)]=async function(_0x377556){const _0x598c52=a15_0x5a4508,_0x1e1c10={'eCBsX':function(_0x41a74c){return _0x41a74c();},'FnxIC':function(_0x3bf626){return _0x3bf626();},'dbqGZ':_0x598c52(0xd4),'OcBIW':function(_0x35b126,_0x53aad6,_0x8867b8,_0x55685a,_0x3e3b24,_0x47e426,_0x245810){return _0x35b126(_0x53aad6,_0x8867b8,_0x55685a,_0x3e3b24,_0x47e426,_0x245810);},'EVvUK':_0x598c52(0xea),'CYdrO':_0x598c52(0xfd),'eTnvN':function(_0x312e1e){return _0x312e1e();},'zOSlH':_0x598c52(0xe9),'HLCam':function(_0x1070ff,_0x38452b,_0x31cdf3){return _0x1070ff(_0x38452b,_0x31cdf3);},'WbCAx':function(_0xc8c3cf,_0x142c54,_0xe0d114,_0x45ad0d,_0x5e6373,_0x44fe4b,_0x1f5121){return _0xc8c3cf(_0x142c54,_0xe0d114,_0x45ad0d,_0x5e6373,_0x44fe4b,_0x1f5121);},'jWDVH':function(_0x1783b5,_0x34d0d4){return _0x1783b5!==_0x34d0d4;},'vvwMo':function(_0xe49e6f,_0x5bbdde){return _0xe49e6f===_0x5bbdde;},'PzLUw':_0x598c52(0xb5),'KngaA':'grid-id','kFqFA':_0x598c52(0xc1),'QVZQf':_0x598c52(0xa8),'jZUjC':_0x598c52(0xdd),'aCaAY':'queued','gHxvS':'cluster-name','QmJyb':function(_0x34f4b5,_0x44c131){return _0x34f4b5(_0x44c131);},'pCLeJ':_0x598c52(0xb3),'obpCa':function(_0x493b5b,_0x50a022,_0x1c7230,_0x15a006,_0x2856aa,_0x489db1,_0x1f00dd){return _0x493b5b(_0x50a022,_0x1c7230,_0x15a006,_0x2856aa,_0x489db1,_0x1f00dd);},'lTmoc':'unauthorised','JAaob':function(_0x37cbec,_0x4d56e9,_0x58a42d,_0x29554a,_0x59629e,_0x513258,_0x52ed72){return _0x37cbec(_0x4d56e9,_0x58a42d,_0x29554a,_0x59629e,_0x513258,_0x52ed72);},'SQMsL':_0x598c52(0xf8),'FaZfj':function(_0x54f9a9,_0x3c87c3,_0x14d872,_0x4d68fa,_0x432303,_0x5a5dca,_0x2e8b30){return _0x54f9a9(_0x3c87c3,_0x14d872,_0x4d68fa,_0x432303,_0x5a5dca,_0x2e8b30);},'DGEDE':_0x598c52(0xf6)};try{global_registry['requestId']=_0x1e1c10['eCBsX'](uuidv4);!fs[_0x598c52(0xd9)](_0x1e1c10[_0x598c52(0xe6)](getCredentialsPath))&&(console[_0x598c52(0xcf)](_0x1e1c10[_0x598c52(0xab)]),await _0x1e1c10[_0x598c52(0xe0)](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes['ERROR'],_0x1e1c10[_0x598c52(0xda)],null,_0x377556),process['exit'](0x1));const _0x7e8820=JSON['parse'](fs[_0x598c52(0xaa)](_0x1e1c10[_0x598c52(0xac)](getCredentialsPath)));let _0x359f63=_0x598c52(0xa2)+AG_API_URL+_0x598c52(0xdb);_0x377556['allGrids']&&(_0x359f63=_0x598c52(0xa2)+AG_API_URL+_0x598c52(0xc2));const _0x429989={'method':_0x1e1c10[_0x598c52(0xb7)],'headers':_0x1e1c10['HLCam'](getAuthHeader,_0x7e8820[_0x598c52(0xe4)][_0x598c52(0xed)],_0x7e8820[_0x598c52(0xe4)][_0x598c52(0xa3)]),'throwHttpErrors':![]};global_registry[_0x598c52(0xb8)]=_0x7e8820[_0x598c52(0xe4)][_0x598c52(0xed)],global_registry[_0x598c52(0xbe)]=_0x7e8820[_0x598c52(0xe4)][_0x598c52(0xa3)],_0x1e1c10[_0x598c52(0xe5)](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes[_0x598c52(0xde)],null,null,_0x377556);const _0x1211d6=await _0x1e1c10[_0x598c52(0xf3)](got,_0x359f63,_0x429989);if(_0x1e1c10[_0x598c52(0xee)](_0x1211d6,null)&&_0x1e1c10[_0x598c52(0xee)](_0x1211d6,undefined)&&_0x1e1c10[_0x598c52(0xce)](_0x1211d6[_0x598c52(0xd7)],0xc8)){const _0x63e19e=JSON[_0x598c52(0xfa)](_0x1211d6[_0x598c52(0xe2)]);console['log'](_0x1e1c10[_0x598c52(0xc4)]);const _0x11216e=[];_0x11216e[_0x598c52(0xb4)]([_0x1e1c10[_0x598c52(0xa5)],_0x1e1c10[_0x598c52(0xba)],_0x1e1c10[_0x598c52(0xc3)],_0x1e1c10[_0x598c52(0xa7)],_0x1e1c10['aCaAY'],_0x1e1c10[_0x598c52(0xbf)]]),_0x63e19e[_0x598c52(0xad)](_0x331465=>{const _0x3b751e=_0x598c52;_0x11216e[_0x3b751e(0xb4)]([_0x331465['id'],_0x331465['name'],_0x331465['status'],_0x331465['running'],_0x331465[_0x3b751e(0xae)],_0x331465['clusterName']]);}),console[_0x598c52(0xa0)](_0x1e1c10[_0x598c52(0xb2)](table,_0x11216e)),process['exit'](0x0);}_0x1e1c10['vvwMo'](_0x1211d6[_0x598c52(0xd7)],0x191)&&(console['error'](_0x1e1c10['pCLeJ']),await _0x1e1c10[_0x598c52(0xf7)](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes[_0x598c52(0xe3)],_0x1e1c10[_0x598c52(0xc7)],null,_0x377556),process['exit'](0x1)),console['error'](_0x598c52(0xd0)+JSON[_0x598c52(0xc0)](_0x1211d6)),await _0x1e1c10['JAaob'](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes[_0x598c52(0xe3)],_0x1e1c10[_0x598c52(0xd3)],_0x1211d6,_0x377556),process[_0x598c52(0xf1)](0x1);}catch(_0x4a0e8a){console[_0x598c52(0xcf)](_0x598c52(0xbc)+_0x4a0e8a[_0x598c52(0xe8)]),await _0x1e1c10[_0x598c52(0xc6)](sendInstrumentationEvent,_0x377556,_0x1e1c10[_0x598c52(0xdf)],messageTypes['ERROR'],_0x1e1c10[_0x598c52(0xeb)],_0x4a0e8a,_0x377556),process[_0x598c52(0xf1)](0x1);}};function a15_0x3363(){const _0x268f7b=['QmJyb','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','push','\x0aFound\x20the\x20following\x20grids:\x0a','2bbKZAr','zOSlH','bstackUsername','table','kFqFA','Kaxkk','Failed\x20to\x20list\x20resources!\x20Error:\x20','all-grids','bstackAccesskey','gHxvS','stringify','grid-name','/packages/cli/get-all-grids','QVZQf','PzLUw','../../utils/utilityMethods','FaZfj','lTmoc','type','1702305JmRQQG','got','447yiAQvT','handler','grids','vvwMo','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','epilogue','170eEVRKt','SQMsL','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','argv','918415TmNurw','statusCode','help','existsSync','CYdrO','/packages/cli/get-grids','../../utils/instrumentationUtils','running','INFO','EVvUK','OcBIW','853734EeZNoU','body','ERROR','Browserstack','WbCAx','FnxIC','grid','stack','GET','list-grids-called','DGEDE','list','username','jWDVH','3468SXydbk','323719Wccohp','exit','description','HLCam','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','builder','unknown-error','obpCa','server-error','uuid','parse','xLaxE','1047130xjPpvj','init-not-called','log','options','https://','password','../../config/constants','KngaA','desc','jZUjC','status','command','readFileSync','dbqGZ','eTnvN','forEach','queued','245069SPuiSO','8CHufBO','RZQks'];a15_0x3363=function(){return _0x268f7b;};return a15_0x3363();}
1
+ function a15_0x3edc(){const _0x4a7631=['5873065NUlZji','4137453TpsJwU','/packages/cli/get-grids','WODFx','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','2671664sRwXnF','bstackAccesskey','allGrids','BLUSl','password','URGga','desc','stack','username','22egYodz','plSKP','YHkhz','options','handler','queued','list','name','status','\x0aFound\x20the\x20following\x20grids:\x0a','dGbXG','2433492CgXSsJ','grid','unknown-error','fqivE','KJoku','parse','readFileSync','../../utils/utilityMethods','INFO','usage','epilogue','statusCode','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JuvOD','ZWyPH','8802CbzJju','requestId','error','/packages/cli/get-all-grids','WuzNS','description','clusterName','Browserstack','forEach','../../utils/instrumentationUtils','boolean','cluster-name','got','FZQhy','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','RFEbn','grid-id','existsSync','push','pNraT','ersOW','2622NYCcNj','20181YVQwtb','log','type','ERROR','grid-name','40IiHeFj','all-grids','203345SzVjqE','Failed\x20to\x20list\x20resources!\x20Error:\x20','116rZlUPh','body','unauthorised','running','builder','VgfwY','VNyXK','help','DcKgV','exit'];a15_0x3edc=function(){return _0x4a7631;};return a15_0x3edc();}function a15_0x1bd6(_0x423800,_0x17c073){const _0x3edc8e=a15_0x3edc();return a15_0x1bd6=function(_0x1bd6bd,_0x5f44a8){_0x1bd6bd=_0x1bd6bd-0xea;let _0x5b6fd7=_0x3edc8e[_0x1bd6bd];return _0x5b6fd7;},a15_0x1bd6(_0x423800,_0x17c073);}const a15_0x27d8ac=a15_0x1bd6;(function(_0x23969a,_0x34bcfd){const _0xf4854=a15_0x1bd6,_0x3276da=_0x23969a();while(!![]){try{const _0x3c3c4b=-parseInt(_0xf4854(0xf2))/0x1*(-parseInt(_0xf4854(0x10d))/0x2)+-parseInt(_0xf4854(0x137))/0x3+-parseInt(_0xf4854(0x12c))/0x4*(-parseInt(_0xf4854(0x12a))/0x5)+parseInt(_0xf4854(0x122))/0x6*(-parseInt(_0xf4854(0x123))/0x7)+-parseInt(_0xf4854(0x13b))/0x8+parseInt(_0xf4854(0xfd))/0x9+-parseInt(_0xf4854(0x128))/0xa*(-parseInt(_0xf4854(0x136))/0xb);if(_0x3c3c4b===_0x34bcfd)break;else _0x3276da['push'](_0x3276da['shift']());}catch(_0x3d1bac){_0x3276da['push'](_0x3276da['shift']());}}}(a15_0x3edc,0xad2ab));const fs=require('fs'),got=require(a15_0x27d8ac(0x119)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x27d8ac(0x104)),{sendInstrumentationEvent}=require(a15_0x27d8ac(0x116));exports['command']='grids',exports[a15_0x27d8ac(0xef)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x27d8ac(0x130)]=function(_0x113261){const _0x1cd75b=a15_0x27d8ac,_0x2b7bdd={};_0x2b7bdd['dGbXG']=_0x1cd75b(0x11b),_0x2b7bdd['pNraT']=_0x1cd75b(0x117),_0x2b7bdd[_0x1cd75b(0xee)]='help';const _0x25d8de=_0x2b7bdd,_0x399d50={};_0x399d50[_0x1cd75b(0x112)]=_0x25d8de[_0x1cd75b(0xfc)],_0x399d50[_0x1cd75b(0x125)]=_0x25d8de[_0x1cd75b(0x120)];const _0x213a1a={};return _0x213a1a[_0x1cd75b(0x129)]=_0x399d50,_0x113261[_0x1cd75b(0x106)](HELP_HEADER_MESSAGE[_0x1cd75b(0xf8)][_0x1cd75b(0xfe)])[_0x1cd75b(0x107)](HELP_FOOTER_MESSAGE)[_0x1cd75b(0xf5)](_0x213a1a)[_0x1cd75b(0x133)](_0x25d8de['URGga'])['argv'];},exports[a15_0x27d8ac(0xf6)]=async function(_0x4a145b){const _0x26d1ed=a15_0x27d8ac,_0x38f194={'VgfwY':function(_0x4f0f71){return _0x4f0f71();},'VNyXK':_0x26d1ed(0x10a),'KJoku':function(_0x56def6,_0xfd5952,_0x5a0a42,_0x367513,_0x4973f0,_0x21a65a,_0xb9920a){return _0x56def6(_0xfd5952,_0x5a0a42,_0x367513,_0x4973f0,_0x21a65a,_0xb9920a);},'WuzNS':'list-grids-called','zPbjK':'init-not-called','BLUSl':'GET','fqivE':function(_0x1f38f0,_0xa63749,_0x481ca0){return _0x1f38f0(_0xa63749,_0x481ca0);},'VGCTp':function(_0x2ac732,_0x25d116){return _0x2ac732!==_0x25d116;},'WODFx':function(_0x157bde,_0x55773){return _0x157bde===_0x55773;},'plSKP':_0x26d1ed(0xfb),'HQDGc':_0x26d1ed(0x11d),'lcNGc':_0x26d1ed(0x127),'RFEbn':'status','FZQhy':_0x26d1ed(0x12f),'JLRDZ':_0x26d1ed(0xf7),'ZWyPH':_0x26d1ed(0x118),'ersOW':function(_0x4110fa,_0x50968d){return _0x4110fa(_0x50968d);},'oureD':_0x26d1ed(0x13a),'DcKgV':_0x26d1ed(0x12e),'JuvOD':'server-error','YHkhz':function(_0xa36b23,_0xa8eb87,_0x268b93,_0x5e52ed,_0x2e2d6e,_0x5c89d7,_0xfa81ea){return _0xa36b23(_0xa8eb87,_0x268b93,_0x5e52ed,_0x2e2d6e,_0x5c89d7,_0xfa81ea);},'AVdYt':_0x26d1ed(0xff)};try{global_registry[_0x26d1ed(0x10e)]=_0x38f194[_0x26d1ed(0x131)](uuidv4);!fs[_0x26d1ed(0x11e)](_0x38f194[_0x26d1ed(0x131)](getCredentialsPath))&&(console[_0x26d1ed(0x10f)](_0x38f194[_0x26d1ed(0x132)]),await _0x38f194[_0x26d1ed(0x101)](sendInstrumentationEvent,_0x4a145b,_0x38f194[_0x26d1ed(0x111)],messageTypes['ERROR'],_0x38f194['zPbjK'],null,_0x4a145b),process[_0x26d1ed(0x135)](0x1));const _0x3fe06b=JSON[_0x26d1ed(0x102)](fs[_0x26d1ed(0x103)](_0x38f194[_0x26d1ed(0x131)](getCredentialsPath)));let _0x2a7182=_0x26d1ed(0x109)+AG_API_URL+_0x26d1ed(0x138);_0x4a145b[_0x26d1ed(0xeb)]&&(_0x2a7182=_0x26d1ed(0x109)+AG_API_URL+_0x26d1ed(0x110));const _0x2cce3d={'method':_0x38f194[_0x26d1ed(0xec)],'headers':_0x38f194[_0x26d1ed(0x100)](getAuthHeader,_0x3fe06b[_0x26d1ed(0x114)][_0x26d1ed(0xf1)],_0x3fe06b[_0x26d1ed(0x114)][_0x26d1ed(0xed)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x3fe06b[_0x26d1ed(0x114)]['username'],global_registry[_0x26d1ed(0xea)]=_0x3fe06b['Browserstack'][_0x26d1ed(0xed)],_0x38f194['KJoku'](sendInstrumentationEvent,_0x4a145b,_0x38f194[_0x26d1ed(0x111)],messageTypes[_0x26d1ed(0x105)],null,null,_0x4a145b);const _0x5246e4=await _0x38f194[_0x26d1ed(0x100)](got,_0x2a7182,_0x2cce3d);if(_0x38f194['VGCTp'](_0x5246e4,null)&&_0x38f194['VGCTp'](_0x5246e4,undefined)&&_0x38f194[_0x26d1ed(0x139)](_0x5246e4[_0x26d1ed(0x108)],0xc8)){const _0x4831a3=JSON[_0x26d1ed(0x102)](_0x5246e4[_0x26d1ed(0x12d)]);console[_0x26d1ed(0x124)](_0x38f194[_0x26d1ed(0xf3)]);const _0x3c5fef=[];_0x3c5fef[_0x26d1ed(0x11f)]([_0x38f194['HQDGc'],_0x38f194['lcNGc'],_0x38f194[_0x26d1ed(0x11c)],_0x38f194[_0x26d1ed(0x11a)],_0x38f194['JLRDZ'],_0x38f194[_0x26d1ed(0x10c)]]),_0x4831a3[_0x26d1ed(0x115)](_0x3dba74=>{const _0x65c497=_0x26d1ed;_0x3c5fef[_0x65c497(0x11f)]([_0x3dba74['id'],_0x3dba74[_0x65c497(0xf9)],_0x3dba74[_0x65c497(0xfa)],_0x3dba74[_0x65c497(0x12f)],_0x3dba74['queued'],_0x3dba74[_0x65c497(0x113)]]);}),console['log'](_0x38f194[_0x26d1ed(0x121)](table,_0x3c5fef)),process[_0x26d1ed(0x135)](0x0);}_0x38f194[_0x26d1ed(0x139)](_0x5246e4[_0x26d1ed(0x108)],0x191)&&(console[_0x26d1ed(0x10f)](_0x38f194['oureD']),await _0x38f194[_0x26d1ed(0x101)](sendInstrumentationEvent,_0x4a145b,_0x38f194['WuzNS'],messageTypes[_0x26d1ed(0x126)],_0x38f194[_0x26d1ed(0x134)],null,_0x4a145b),process[_0x26d1ed(0x135)](0x1)),console[_0x26d1ed(0x10f)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x5246e4)),await _0x38f194[_0x26d1ed(0x101)](sendInstrumentationEvent,_0x4a145b,_0x38f194['WuzNS'],messageTypes['ERROR'],_0x38f194[_0x26d1ed(0x10b)],_0x5246e4,_0x4a145b),process['exit'](0x1);}catch(_0x1bc7ca){console[_0x26d1ed(0x10f)](_0x26d1ed(0x12b)+_0x1bc7ca[_0x26d1ed(0xf0)]),await _0x38f194[_0x26d1ed(0xf4)](sendInstrumentationEvent,_0x4a145b,_0x38f194[_0x26d1ed(0x111)],messageTypes[_0x26d1ed(0x126)],_0x38f194['AVdYt'],_0x1bc7ca,_0x4a145b),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a16_0x565abb=a16_0x4062;function a16_0x1da3(){const _0x295916=['usage','pre-check','6880ZHBuMU','5833010DZzbTW','39pYqKPy','3844QuvUWQ','epilogue','3321608Vgfbwt','command','14WISJrn','precheck_commands','2590353EREESb','strict','help','builder','61642pbMpxt','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','4439076pHiBmF','tMDiF','recommendCommands','10130970ltKMYC','commandDir','fImnD','desc'];a16_0x1da3=function(){return _0x295916;};return a16_0x1da3();}(function(_0x17929e,_0xa7e799){const _0x58ea8c=a16_0x4062,_0x3de46e=_0x17929e();while(!![]){try{const _0xbe46ad=parseInt(_0x58ea8c(0xdd))/0x1*(-parseInt(_0x58ea8c(0xd0))/0x2)+-parseInt(_0x58ea8c(0xd2))/0x3+parseInt(_0x58ea8c(0xc6))/0x4*(parseInt(_0x58ea8c(0xdb))/0x5)+parseInt(_0x58ea8c(0xd5))/0x6+-parseInt(_0x58ea8c(0xca))/0x7*(-parseInt(_0x58ea8c(0xc8))/0x8)+parseInt(_0x58ea8c(0xcc))/0x9+-parseInt(_0x58ea8c(0xdc))/0xa;if(_0xbe46ad===_0xa7e799)break;else _0x3de46e['push'](_0x3de46e['shift']());}catch(_0x2741d6){_0x3de46e['push'](_0x3de46e['shift']());}}}(a16_0x1da3,0xd2f26));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x4062(_0x17bc88,_0x2354a5){const _0x1da3e9=a16_0x1da3();return a16_0x4062=function(_0x40625e,_0x4df086){_0x40625e=_0x40625e-0xc6;let _0x471fe1=_0x1da3e9[_0x40625e];return _0x471fe1;},a16_0x4062(_0x17bc88,_0x2354a5);}exports[a16_0x565abb(0xc9)]=a16_0x565abb(0xda),exports[a16_0x565abb(0xd8)]=a16_0x565abb(0xd1),exports[a16_0x565abb(0xcf)]=function(_0x34e0da){const _0x1cf5db=a16_0x565abb,_0x2b78c3={};_0x2b78c3[_0x1cf5db(0xd7)]=_0x1cf5db(0xcb),_0x2b78c3[_0x1cf5db(0xd3)]=_0x1cf5db(0xce);const _0x2426a3=_0x2b78c3;return _0x34e0da[_0x1cf5db(0xd9)](HELP_HEADER_MESSAGE['pre_check'])[_0x1cf5db(0xc7)](HELP_FOOTER_MESSAGE)[_0x1cf5db(0xd6)](_0x2426a3[_0x1cf5db(0xd7)])['demandCommand']()[_0x1cf5db(0xd4)]()[_0x1cf5db(0xcd)]()[_0x1cf5db(0xce)](_0x2426a3[_0x1cf5db(0xd3)]);},exports['handler']=function(_0x468e9c){};
1
+ function a16_0x1f62(_0x5e2e9b,_0x5ed2be){const _0x53f663=a16_0x53f6();return a16_0x1f62=function(_0x1f6215,_0x268e76){_0x1f6215=_0x1f6215-0x1d6;let _0x427f79=_0x53f663[_0x1f6215];return _0x427f79;},a16_0x1f62(_0x5e2e9b,_0x5ed2be);}const a16_0x1b27fe=a16_0x1f62;(function(_0x532776,_0x1c2b14){const _0x40c214=a16_0x1f62,_0x54fbeb=_0x532776();while(!![]){try{const _0x9423f4=-parseInt(_0x40c214(0x1da))/0x1+-parseInt(_0x40c214(0x1ea))/0x2*(parseInt(_0x40c214(0x1db))/0x3)+-parseInt(_0x40c214(0x1de))/0x4*(-parseInt(_0x40c214(0x1e4))/0x5)+parseInt(_0x40c214(0x1eb))/0x6*(-parseInt(_0x40c214(0x1e9))/0x7)+parseInt(_0x40c214(0x1d6))/0x8+parseInt(_0x40c214(0x1e6))/0x9+parseInt(_0x40c214(0x1d7))/0xa;if(_0x9423f4===_0x1c2b14)break;else _0x54fbeb['push'](_0x54fbeb['shift']());}catch(_0x38e27c){_0x54fbeb['push'](_0x54fbeb['shift']());}}}(a16_0x53f6,0xaee2a));function a16_0x53f6(){const _0x54114d=['4842324eMIoLr','precheck_commands','EUleJ','1211mXRXtN','10ShLNVU','13092dgoxCV','demandCommand','handler','aiznD','4840712TjJitt','10591360PVQhnk','pre-check','commandDir','43534iIUgUO','834135CEwYly','recommendCommands','command','12jhHuZl','strict','epilogue','help','usage','../config/constants','542190MEnqgY','pre_check'];a16_0x53f6=function(){return _0x54114d;};return a16_0x53f6();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1b27fe(0x1e3));exports[a16_0x1b27fe(0x1dd)]=a16_0x1b27fe(0x1d8),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x55116e){const _0x5c7ecf=a16_0x1b27fe,_0x240375={};_0x240375['EUleJ']=_0x5c7ecf(0x1e7),_0x240375['aiznD']='help';const _0x157c82=_0x240375;return _0x55116e[_0x5c7ecf(0x1e2)](HELP_HEADER_MESSAGE[_0x5c7ecf(0x1e5)])[_0x5c7ecf(0x1e0)](HELP_FOOTER_MESSAGE)[_0x5c7ecf(0x1d9)](_0x157c82[_0x5c7ecf(0x1e8)])[_0x5c7ecf(0x1ec)]()[_0x5c7ecf(0x1dc)]()[_0x5c7ecf(0x1df)]()[_0x5c7ecf(0x1e1)](_0x157c82[_0x5c7ecf(0x1ee)]);},exports[a16_0x1b27fe(0x1ed)]=function(_0x5883b3){};
@@ -1 +1 @@
1
- const a17_0x36bbdc=a17_0x20e0;(function(_0x3c0f7e,_0x202faf){const _0x3d2eae=a17_0x20e0,_0x4260a3=_0x3c0f7e();while(!![]){try{const _0x58105b=parseInt(_0x3d2eae(0x21b))/0x1*(parseInt(_0x3d2eae(0x280))/0x2)+parseInt(_0x3d2eae(0x224))/0x3+parseInt(_0x3d2eae(0x257))/0x4+parseInt(_0x3d2eae(0x2ab))/0x5*(-parseInt(_0x3d2eae(0x2b7))/0x6)+parseInt(_0x3d2eae(0x20e))/0x7*(parseInt(_0x3d2eae(0x216))/0x8)+parseInt(_0x3d2eae(0x271))/0x9*(-parseInt(_0x3d2eae(0x2a5))/0xa)+-parseInt(_0x3d2eae(0x20d))/0xb;if(_0x58105b===_0x202faf)break;else _0x4260a3['push'](_0x4260a3['shift']());}catch(_0x13bcca){_0x4260a3['push'](_0x4260a3['shift']());}}}(a17_0x52e3,0x9f3bc));const fs=require('fs'),ws=require('ws'),got=require(a17_0x36bbdc(0x263)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x36bbdc(0x259)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x36bbdc(0x21d)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x36bbdc(0x1fa)),{sendInstrumentationEvent}=require(a17_0x36bbdc(0x206));exports[a17_0x36bbdc(0x282)]=a17_0x36bbdc(0x2bc),exports[a17_0x36bbdc(0x28a)]=a17_0x36bbdc(0x2ad),exports[a17_0x36bbdc(0x21e)]=function(_0x8eeb80){const _0x40ab44=a17_0x36bbdc,_0x5dc00a={};_0x5dc00a[_0x40ab44(0x211)]=_0x40ab44(0x266),_0x5dc00a['nxhpN']=_0x40ab44(0x2c2),_0x5dc00a['Ixnzi']=_0x40ab44(0x228),_0x5dc00a[_0x40ab44(0x28f)]=_0x40ab44(0x2cd),_0x5dc00a[_0x40ab44(0x290)]=_0x40ab44(0x2a6),_0x5dc00a[_0x40ab44(0x293)]=_0x40ab44(0x1fe);const _0x5b5c99=_0x5dc00a,_0x4072a7={};_0x4072a7[_0x40ab44(0x244)]=_0x5b5c99['ZCMrh'],_0x4072a7[_0x40ab44(0x254)]=_0x5b5c99['nxhpN'];const _0x11a11c={};_0x11a11c[_0x40ab44(0x244)]=_0x5b5c99[_0x40ab44(0x2a9)],_0x11a11c['type']=_0x5b5c99['nxhpN'];const _0x43880a={};_0x43880a['description']=_0x5b5c99[_0x40ab44(0x28f)],_0x43880a[_0x40ab44(0x254)]=_0x5b5c99['nxhpN'];const _0x27e011={};_0x27e011['description']=_0x5b5c99[_0x40ab44(0x290)],_0x27e011[_0x40ab44(0x254)]=_0x5b5c99[_0x40ab44(0x1f6)];const _0x9140f={};return _0x9140f[_0x40ab44(0x274)]=_0x4072a7,_0x9140f[_0x40ab44(0x203)]=_0x11a11c,_0x9140f[_0x40ab44(0x28b)]=_0x43880a,_0x9140f['grid-profile']=_0x27e011,_0x8eeb80['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x40ab44(0x2ea)](HELP_FOOTER_MESSAGE)[_0x40ab44(0x256)](_0x9140f)['help'](_0x5b5c99[_0x40ab44(0x293)])[_0x40ab44(0x2ca)];};async function inputValidation(_0x53f9fb,_0x52bc82){const _0x7a3c85=a17_0x36bbdc,_0x4a8bbe={'piRhc':_0x7a3c85(0x203),'QUOrU':_0x7a3c85(0x208),'pHxLb':_0x7a3c85(0x29c),'YMrgi':_0x7a3c85(0x23b),'TkTCa':_0x7a3c85(0x28b),'RubtZ':_0x7a3c85(0x266),'zcIar':'string','bdEdS':_0x7a3c85(0x228),'CQdFH':_0x7a3c85(0x2cd),'siufb':_0x7a3c85(0x2a6),'IYBnL':'help','KJLgg':function(_0x424b14,_0x41bf48){return _0x424b14+_0x41bf48;},'mobux':'Success','NtuML':'Failure','EmBlf':function(_0x5536f5,_0x23a9f0){return _0x5536f5||_0x23a9f0;},'YahpB':_0x7a3c85(0x23c),'xhUBx':_0x7a3c85(0x274),'RZAWT':function(_0x1b930d,_0x66303d){return _0x1b930d!==_0x66303d;},'WuZDW':'zznHS','izKpY':_0x7a3c85(0x2ba),'LYnzg':function(_0x37de03,_0x2357dc){return _0x37de03===_0x2357dc;},'oKTOn':_0x7a3c85(0x2ef),'tPTqD':_0x7a3c85(0x209),'gmlUw':_0x7a3c85(0x239),'rkBOz':function(_0x4c24a6,_0x56f883){return _0x4c24a6!==_0x56f883;},'gqhdi':_0x7a3c85(0x252),'yDFVc':_0x7a3c85(0x215),'XyNfR':function(_0x354b45,_0x567ff8){return _0x354b45>_0x567ff8;},'tgsDt':_0x7a3c85(0x24c),'FrxMm':function(_0x12b69f,_0x514a6e,_0x4a4fd8,_0x5b5726,_0x442cc5,_0x252bc4,_0x40f346,_0xdda461){return _0x12b69f(_0x514a6e,_0x4a4fd8,_0x5b5726,_0x442cc5,_0x252bc4,_0x40f346,_0xdda461);},'YCEeB':_0x7a3c85(0x234),'LkqtL':_0x7a3c85(0x295),'vVusm':function(_0x1a89c5,_0x382311){return _0x1a89c5!==_0x382311;},'QnngW':_0x7a3c85(0x24b),'CaIBk':_0x7a3c85(0x2dc),'IwzFI':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','UmvIG':_0x7a3c85(0x241),'FXlkx':function(_0x13f614,_0x45eaed){return _0x13f614!==_0x45eaed;},'WwYTW':_0x7a3c85(0x20f),'qZrKT':'Fbeub','OSXhi':_0x7a3c85(0x299),'VaYYW':_0x7a3c85(0x2c4),'EviHS':function(_0x17c86b,_0x2741f2,_0x5c243f){return _0x17c86b(_0x2741f2,_0x5c243f);},'fAoRh':function(_0x285c09,_0x5947f3,_0x1ddd18,_0x46ddbb,_0x3c9938,_0x4202d0){return _0x285c09(_0x5947f3,_0x1ddd18,_0x46ddbb,_0x3c9938,_0x4202d0);},'TEKWK':_0x7a3c85(0x20a),'KStBc':'grid-profile','GPFfZ':function(_0x565a92,_0x4ddfda){return _0x565a92===_0x4ddfda;},'lgMkS':'BrlOQ','ujcxL':function(_0x1403fc,_0x43da9b){return _0x1403fc(_0x43da9b);},'eKpiY':_0x7a3c85(0x2f2),'SoAsA':'HeRyX','ExKFj':function(_0x134323,_0x1564ce,_0x3361a2,_0x4678b3,_0x4cb207,_0x5ad139,_0x3cdd5e,_0x1e7ac5){return _0x134323(_0x1564ce,_0x3361a2,_0x4678b3,_0x4cb207,_0x5ad139,_0x3cdd5e,_0x1e7ac5);},'kyULh':_0x7a3c85(0x25f),'ORRiW':function(_0x1af886,_0x5213a0){return _0x1af886===_0x5213a0;},'SnlpB':'fnRaR','raBaj':_0x7a3c85(0x2b4),'qWvcm':_0x7a3c85(0x26a),'LPgfN':'cqwBz','jRCQM':_0x7a3c85(0x201),'XAiHz':_0x7a3c85(0x25e),'htIuX':_0x7a3c85(0x2e6),'zzqwO':_0x7a3c85(0x238)};let _0x2be6ec;try{if(_0x4a8bbe[_0x7a3c85(0x289)](_0x4a8bbe[_0x7a3c85(0x26c)],_0x4a8bbe[_0x7a3c85(0x25b)])){if(_0x53f9fb[_0x7a3c85(0x2f1)]||_0x53f9fb['cloudProvider']||_0x53f9fb[_0x7a3c85(0x28b)]){if(_0x4a8bbe['LYnzg'](_0x4a8bbe[_0x7a3c85(0x2c9)],_0x4a8bbe['oKTOn'])){const _0x11e794=[];!_0x53f9fb[_0x7a3c85(0x2f1)]&&(_0x4a8bbe[_0x7a3c85(0x289)](_0x4a8bbe['tPTqD'],_0x4a8bbe['gmlUw'])?_0x11e794[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x1f2)]):_0x2e6383[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x281)]));;!_0x53f9fb['cloudProvider']&&(_0x4a8bbe[_0x7a3c85(0x2de)](_0x4a8bbe[_0x7a3c85(0x20c)],_0x4a8bbe[_0x7a3c85(0x20c)])?(_0x1a4f0f[_0x7a3c85(0x214)](_0x7a3c85(0x262)+_0x3f70ab[_0x7a3c85(0x2c3)]+'\x20'),_0x24a550['cloudProvider']=_0x332b3e[_0x7a3c85(0x2c3)]):_0x11e794[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x281)]));;!_0x53f9fb[_0x7a3c85(0x28b)]&&(_0x4a8bbe[_0x7a3c85(0x289)](_0x4a8bbe['yDFVc'],_0x4a8bbe[_0x7a3c85(0x291)])?_0x4edeac['exit'](0x1):_0x11e794[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x284)]));;_0x4a8bbe['XyNfR'](_0x11e794['length'],0x0)&&(_0x4a8bbe['rkBOz'](_0x4a8bbe[_0x7a3c85(0x278)],_0x4a8bbe[_0x7a3c85(0x278)])?_0x4d171f[_0x7a3c85(0x214)](_0x7a3c85(0x2c6)+_0x4cf684[_0x7a3c85(0x2f1)]+'`\x20already\x20exists'):(_0x2be6ec='Missing\x20required\x20arguments:\x20'+_0x11e794[_0x7a3c85(0x2ee)](',\x20')+_0x7a3c85(0x264),await _0x4a8bbe[_0x7a3c85(0x22b)](reportToGalactusAndSendToEDS,_0x53f9fb,_0x52bc82,_0x2be6ec,messageTypes['ERROR'],_0x4a8bbe[_0x7a3c85(0x2cf)],_0x4a8bbe['LkqtL'],_0x4a8bbe[_0x7a3c85(0x2d3)]),logger[_0x7a3c85(0x23c)](_0x2be6ec),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x53f9fb['cloudProvider'][_0x7a3c85(0x2e8)]())&&(_0x4a8bbe['vVusm'](_0x4a8bbe['QnngW'],_0x4a8bbe[_0x7a3c85(0x210)])?(_0x2be6ec=_0x4a8bbe[_0x7a3c85(0x24f)],await _0x4a8bbe[_0x7a3c85(0x22b)](reportToGalactusAndSendToEDS,_0x53f9fb,_0x52bc82,_0x2be6ec,messageTypes[_0x7a3c85(0x2ed)],_0x4a8bbe[_0x7a3c85(0x2cf)],_0x4a8bbe[_0x7a3c85(0x225)],_0x4a8bbe[_0x7a3c85(0x2d3)]),logger[_0x7a3c85(0x23c)](_0x2be6ec),!_0x53f9fb[_0x7a3c85(0x247)]&&(_0x4a8bbe[_0x7a3c85(0x258)](_0x4a8bbe[_0x7a3c85(0x265)],_0x4a8bbe[_0x7a3c85(0x2e5)])?(logger[_0x7a3c85(0x214)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x53f9fb[_0x7a3c85(0x247)]=DEFAULT_CLUSTER_DETAILS[_0x7a3c85(0x2c3)]):_0x194079=_0x4855e5)):(_0x19df3c+=_0x4a8bbe['QUOrU'],_0x5a0d4a+=_0x7a3c85(0x220)+(_0x3c7c25[_0x7a3c85(0x1fc)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x39e89b+=_0x7a3c85(0x273)+(_0x38f2d8[_0x7a3c85(0x246)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x34483b+=_0x7a3c85(0x1fb)+(_0x386709[_0x7a3c85(0x232)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a')),global_registry[_0x7a3c85(0x2f1)]=_0x53f9fb[_0x7a3c85(0x2f1)],global_registry[_0x7a3c85(0x247)]=_0x53f9fb['cloudProvider'],global_registry['clusterRegion']=_0x53f9fb[_0x7a3c85(0x28b)];}else _0x5aa219[_0x7a3c85(0x23c)](_0x4a8bbe['YMrgi']),_0x108530['exit'](0x1);}else{if(_0x53f9fb['gridProfile']){if(_0x4a8bbe[_0x7a3c85(0x283)](_0x4a8bbe[_0x7a3c85(0x2db)],_0x4a8bbe[_0x7a3c85(0x2db)])){global_registry[_0x7a3c85(0x231)]=_0x53f9fb[_0x7a3c85(0x231)],logger[_0x7a3c85(0x25a)](_0x7a3c85(0x2e0)+_0x53f9fb[_0x7a3c85(0x231)]);const _0x4a975d=_0x7a3c85(0x219)+AG_API_URL+_0x7a3c85(0x242),_0x4a2008={};_0x4a2008[_0x7a3c85(0x2c7)]=_0x4a8bbe[_0x7a3c85(0x200)],_0x4a2008['headers']=global_registry['authHeader'],_0x4a2008[_0x7a3c85(0x2d9)]=![];const _0x1634e8=_0x4a2008,_0x5a1894=await _0x4a8bbe['EviHS'](got,_0x4a975d,_0x1634e8),_0x14f02a=await _0x4a8bbe[_0x7a3c85(0x22d)](responseValidation,_0x5a1894,_0x4a8bbe[_0x7a3c85(0x240)],_0x4a8bbe[_0x7a3c85(0x29d)],_0x53f9fb,_0x52bc82);let _0x479369={};if(_0x4a8bbe[_0x7a3c85(0x283)](_0x14f02a,0xc8)){if(_0x4a8bbe[_0x7a3c85(0x1f7)](_0x4a8bbe[_0x7a3c85(0x226)],_0x4a8bbe['lgMkS'])){const _0x4315eb=JSON[_0x7a3c85(0x1ff)](_0x5a1894[_0x7a3c85(0x285)]),_0x23a4e0=_0x4315eb['find'](_0x4a97f5=>_0x4a97f5[_0x7a3c85(0x298)]===_0x53f9fb[_0x7a3c85(0x231)])||null;_0x4a8bbe[_0x7a3c85(0x2d4)](isUndefined,_0x23a4e0)?_0x4a8bbe[_0x7a3c85(0x258)](_0x4a8bbe[_0x7a3c85(0x27f)],_0x4a8bbe['SoAsA'])?(_0x2be6ec=_0x7a3c85(0x292)+_0x53f9fb[_0x7a3c85(0x231)]+_0x7a3c85(0x269),await _0x4a8bbe[_0x7a3c85(0x2d8)](reportToGalactusAndSendToEDS,_0x53f9fb,_0x52bc82,_0x2be6ec,messageTypes[_0x7a3c85(0x2ed)],_0x4a8bbe[_0x7a3c85(0x2cf)],_0x4a8bbe['kyULh'],_0x4a8bbe[_0x7a3c85(0x2d3)]),logger['error'](_0x2be6ec),process['exit'](0x1)):_0x5da739[_0x7a3c85(0x212)](_0x4a8bbe['TkTCa']):_0x4a8bbe[_0x7a3c85(0x26b)](_0x4a8bbe[_0x7a3c85(0x2ec)],_0x4a8bbe[_0x7a3c85(0x2b5)])?_0x366fa0+=_0x7a3c85(0x27a)+_0x51e91b[_0x7a3c85(0x2f1)]+_0x7a3c85(0x286):_0x479369=_0x23a4e0;}else{const _0xfc5da8={};_0xfc5da8['description']=_0x4a8bbe[_0x7a3c85(0x2a8)],_0xfc5da8['type']=_0x4a8bbe['zcIar'];const _0x293ecd={};_0x293ecd[_0x7a3c85(0x244)]=_0x4a8bbe[_0x7a3c85(0x2d5)],_0x293ecd[_0x7a3c85(0x254)]=_0x4a8bbe[_0x7a3c85(0x2c5)];const _0x2dfb13={};_0x2dfb13['description']=_0x4a8bbe[_0x7a3c85(0x2e7)],_0x2dfb13[_0x7a3c85(0x254)]=_0x4a8bbe[_0x7a3c85(0x2c5)];const _0x1dc947={};_0x1dc947['description']=_0x4a8bbe[_0x7a3c85(0x222)],_0x1dc947[_0x7a3c85(0x254)]=_0x4a8bbe['zcIar'];const _0x325939={};return _0x325939[_0x7a3c85(0x274)]=_0xfc5da8,_0x325939[_0x7a3c85(0x203)]=_0x293ecd,_0x325939[_0x7a3c85(0x28b)]=_0x2dfb13,_0x325939[_0x7a3c85(0x288)]=_0x1dc947,_0x292fbd[_0x7a3c85(0x26e)](_0x26d50a[_0x7a3c85(0x267)])[_0x7a3c85(0x2ea)](_0x1de2fc)['options'](_0x325939)[_0x7a3c85(0x1fe)](_0x4a8bbe['IYBnL'])['argv'];}}else{if(_0x4a8bbe[_0x7a3c85(0x283)](_0x4a8bbe['qWvcm'],_0x4a8bbe[_0x7a3c85(0x237)])){const {header:_0x4daa2b,response:_0x34c692}=_0x597c44,{status:_0x47d4d2,data:_0x295be3,error:_0x5b9aa3}=_0x34c692;_0x39495c+=_0x4daa2b+'\x20#'+_0x4a8bbe[_0x7a3c85(0x253)](_0x1cd5f8,0x1)+'\x0a',_0x3ce00b+='Status:\x20'+(_0x47d4d2?_0x4a8bbe[_0x7a3c85(0x268)]:_0x4a8bbe[_0x7a3c85(0x229)])+'\x0a',_0x320158+=_0x7a3c85(0x207)+_0x4a8bbe[_0x7a3c85(0x27e)](_0x295be3,_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x5b9aa3&&(_0x1823e1+=_0x4a8bbe[_0x7a3c85(0x2ce)],_0x1a218b+=_0x7a3c85(0x220)+(_0x5b9aa3[_0x7a3c85(0x1fc)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x4611c7+=_0x7a3c85(0x273)+(_0x5b9aa3[_0x7a3c85(0x246)]||_0x4a8bbe[_0x7a3c85(0x1f9)])+'\x0a',_0x3b92a9+=_0x7a3c85(0x1fb)+(_0x5b9aa3[_0x7a3c85(0x232)]||_0x4a8bbe['pHxLb'])+'\x0a'),_0x1957f7+='\x0a\x0a';}else process[_0x7a3c85(0x29a)](0x1);}const _0x380586={};_0x380586[_0x7a3c85(0x254)]=WS_EVENTS[_0x7a3c85(0x24e)],_0x380586[_0x7a3c85(0x1fc)]=_0x4a8bbe[_0x7a3c85(0x236)],webSocketUtils[_0x7a3c85(0x213)](_0x52bc82,_0x380586),global_registry[_0x7a3c85(0x247)]=_0x479369[_0x7a3c85(0x247)],global_registry[_0x7a3c85(0x277)]=_0x479369['region'],global_registry[_0x7a3c85(0x2f1)]=_0x479369[_0x7a3c85(0x2f1)];}else _0x3536f8[_0x7a3c85(0x214)]('['+_0x331be3+_0x7a3c85(0x22c)+_0x329fa5[_0x7a3c85(0x27b)]+_0x7a3c85(0x218)+_0x57b1fa['data']+_0x7a3c85(0x230)+_0x462d40[_0x7a3c85(0x23c)]),_0x4f33d7[_0x7a3c85(0x23c)]&&_0x5c2ff4[_0x7a3c85(0x23c)](_0x7a3c85(0x221)+_0x4d740e[_0x7a3c85(0x23c)]['stack']);}else _0x4a8bbe[_0x7a3c85(0x258)](_0x4a8bbe['XAiHz'],_0x4a8bbe[_0x7a3c85(0x2df)])?(logger['error'](_0x4a8bbe[_0x7a3c85(0x2b3)]),process['exit'](0x1)):_0x173605[_0x7a3c85(0x23c)]('error\x20stack\x20:\x20'+_0x423888['error']['stack']);}}else{const _0x4bf41f={};_0x4bf41f[_0x7a3c85(0x254)]=_0xbb0fff[_0x7a3c85(0x24e)],_0x4bf41f[_0x7a3c85(0x1fc)]=_0x2bae01,_0x48d64c[_0x7a3c85(0x213)](_0x50f0e6,_0x4bf41f,_0x4a8bbe[_0x7a3c85(0x2d3)],!![]);}}catch(_0x2c1d8d){_0x4a8bbe[_0x7a3c85(0x1f7)](_0x4a8bbe[_0x7a3c85(0x296)],_0x4a8bbe[_0x7a3c85(0x296)])?(_0x2be6ec='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x2c1d8d+':\x20'+_0x2c1d8d[_0x7a3c85(0x232)],logger[_0x7a3c85(0x23c)](_0x2be6ec),await _0x4a8bbe[_0x7a3c85(0x2d8)](reportToGalactusAndSendToEDS,_0x53f9fb,_0x52bc82,_0x2be6ec,messageTypes[_0x7a3c85(0x2ed)],_0x4a8bbe['YCEeB'],_0x4a8bbe[_0x7a3c85(0x225)],_0x4a8bbe[_0x7a3c85(0x2d3)]),process[_0x7a3c85(0x29a)](0x1)):_0x381294[_0x7a3c85(0x212)](_0x4a8bbe[_0x7a3c85(0x1f2)]);}}function a17_0x52e3(){const _0x33af40=['\x20region\x20-\x20','qZrKT','EdEmp','CQdFH','toLowerCase','<UsernamePlaceholder>','epilogue','PBzsE','SnlpB','ERROR','join','SdeIL','cmiRi','clusterName','Humou','xhUBx','TcWih','Success','yiiDh','nxhpN','GPFfZ','`\x20already\x20exists','pHxLb','../../utils/webSocketUtils','\x20\x20Stack:\x20','message','checkAccess','help','parse','VaYYW','Grid\x20profile\x20fetched\x20for\x20pre-check','iXsGS','cloud-provider','Pre-check\x20running\x20for\x20Cloud\x20-\x20','bstackUsername','../../utils/instrumentationUtils','Message:\x20','Error\x20Details:\x0a','BmjfL','pre-check','split','gqhdi','6507963SPWhGI','15617WhQiSe','rqApD','CaIBk','ZCMrh','push','sendEventToBackend','info','HzoUA','296TMVJnJ','nHufX','\x20data\x20:\x20','https://','readFileSync','1pSGMVp','toolInstalledResp','../../utils/utilityMethods','builder','uHXeN','\x20\x20Message:\x20','error\x20stack\x20:\x20','siufb','existsSync','2657745NWhTyb','UmvIG','lgMkS','requestId','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','NtuML','Failure','FrxMm',']\x20status\x20:\x20','fAoRh','INFO','Cluster\x20details\x0a-----------------------\x0a','\x20error\x20:\x20','gridProfile','stack','isTrialGridAccessible','pre-check-grid-called','getUTCHours','jRCQM','LPgfN','lsmxC','jDyRx','delay','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','error','cfuHC','User\x20Access','myJSf','TEKWK','cloud-provider-not-supported','/packages/cli/get-all-grid-profiles','bstackAccesskey','description','response','code','cloudProvider','isClusterPresent','`\x20,error\x20:\x20','echbT','muQqR','UyLnb','handler','LOG','IwzFI','ieacq','QqxRK','eRCWn','KJLgg','type','iRdKy','options','585368OUKrnw','FXlkx','reconnecting-websocket','debug','izKpY','aaHVx','WebSocket','iYAWW','pre-check-grid-profile-empty','getUTCFullYear','getUTCMinutes','Setting\x20cloud\x20provider\x20as\x20','got','.\x20Please\x20provide\x20all\x20required\x20arguments.','WwYTW','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pre_check','mobux','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','QqSym','ORRiW','WuZDW','is\x20already\x20present','usage','TDYlO','KTbkR','47763ksUNyr','password','\x20\x20Code:\x20','cluster-name','stringify','FVFuq','clusterRegion','tgsDt','yNRni','Cluster\x20','status','Browserstack','<PasswordPlaceholder>','EmBlf','eKpiY','1220396yHOsKF','piRhc','command','LYnzg','TkTCa','body','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','NcGqq','grid-profile','RZAWT','desc','region','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HeLFZ','jGxSE','xniyh','EAYiR','yDFVc','Invalid\x20input.\x20grid\x20profiles:\x20','sLnwc','getUTCDate','pre-check-cluster-args-not-passed','zzqwO','authHeader','name','hgmtb','exit','credential-not-found','N/A','KStBc','obmMS','YCCZY','BhbMF','tPXHu','data','Report\x20saved\x20in\x20','nYoEE','270RAdHYc','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','unable\x20to\x20verify\x20if\x20cluster\x20`','RubtZ','Ixnzi','header','300jxfugW','connectionTimeout','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','log/report_','stack\x20trace\x20','replace','phxUJ','SSL\x20Configured','YMrgi','rpZvy','raBaj','ELAzI','33786YGnFiF','oabOc','isTls1_2_SUPPORTED','OCksG','username','grid','\x20===\x0a\x0a','YbTXq','LwZkd','accessResp','zrQoM','string','CLOUD_PROVIDER','GET','zcIar','Cluster\x20`','method','pre-check-failed','oKTOn','argv','Whitelisted\x20browserstack','===\x20Precheck\x20Report\x20-\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','QUOrU','YCEeB','vtAKa','dummy-grid','Status:\x20','YahpB','ujcxL','bdEdS','utf-8','AaPLw','ExKFj','throwHttpErrors','pTguU','OSXhi','yTwUb','Tool\x20Installed','rkBOz','htIuX','grid\x20profile\x20flow\x20','DuhVL','4|0|1|3|2','will\x20be\x20created'];a17_0x52e3=function(){return _0x33af40;};return a17_0x52e3();}function a17_0x20e0(_0x51dfb3,_0x1faed7){const _0x52e340=a17_0x52e3();return a17_0x20e0=function(_0x20e0d0,_0x5e784b){_0x20e0d0=_0x20e0d0-0x1f2;let _0x29e1b3=_0x52e340[_0x20e0d0];return _0x29e1b3;},a17_0x20e0(_0x51dfb3,_0x1faed7);}function printResponse(_0x39fb01,_0x4f5a18){const _0x2a4b1f=a17_0x36bbdc,_0x53323e={};_0x53323e[_0x2a4b1f(0x24a)]='is\x20already\x20present',_0x53323e['ELAzI']=_0x2a4b1f(0x2e3),_0x53323e[_0x2a4b1f(0x2b1)]=function(_0x5dd244,_0x2f280d){return _0x5dd244===_0x2f280d;},_0x53323e[_0x2a4b1f(0x1f3)]=_0x2a4b1f(0x28e),_0x53323e['yiiDh']='VuTwf';const _0x2c7b46=_0x53323e;logger[_0x2a4b1f(0x214)]('['+_0x39fb01+']\x20status\x20:\x20'+_0x4f5a18['status']+_0x2a4b1f(0x218)+_0x4f5a18[_0x2a4b1f(0x2a2)]+_0x2a4b1f(0x230)+_0x4f5a18['error']),_0x4f5a18[_0x2a4b1f(0x23c)]&&(_0x2c7b46[_0x2a4b1f(0x2b1)](_0x2c7b46[_0x2a4b1f(0x1f3)],_0x2c7b46[_0x2a4b1f(0x1f5)])?_0x115bcd+='Cluster\x20'+_0x3bdda8[_0x2a4b1f(0x2f1)]+'\x20'+(_0x3b7566?_0x2c7b46[_0x2a4b1f(0x24a)]:_0x2c7b46[_0x2a4b1f(0x2b6)])+'\x0a\x0a':logger[_0x2a4b1f(0x23c)](_0x2a4b1f(0x221)+_0x4f5a18[_0x2a4b1f(0x23c)][_0x2a4b1f(0x232)]));}async function generateReport(_0x6fb4d7,_0x45795c){const _0x2847af=a17_0x36bbdc,_0x25e281={'LwZkd':function(_0x51d8f5,_0x2b6477){return _0x51d8f5+_0x2b6477;},'BhbMF':_0x2847af(0x1f4),'TVuWz':_0x2847af(0x22a),'KTbkR':function(_0x42f806,_0x4c02e3){return _0x42f806||_0x4c02e3;},'tPXHu':_0x2847af(0x29c),'JKDwl':_0x2847af(0x208),'pTguU':_0x2847af(0x22f),'PKMGY':function(_0x29dc0d,_0x4fa1ae){return _0x29dc0d!=_0x4fa1ae;},'cmiRi':_0x2847af(0x26d),'iXsGS':'will\x20be\x20created','obmMS':function(_0x12acd3){return _0x12acd3();}};let _0x5d6f33=_0x2847af(0x2cc)+global_registry[_0x2847af(0x247)]+_0x2847af(0x2bd);return _0x6fb4d7['forEach']((_0x2e2a79,_0x32f777)=>{const _0x20f7eb=_0x2847af,{header:_0x4afa5f,response:_0x37290b}=_0x2e2a79,{status:_0x4f158e,data:_0x2b3b75,error:_0x4c9173}=_0x37290b;_0x5d6f33+=_0x4afa5f+'\x20#'+_0x25e281[_0x20f7eb(0x2bf)](_0x32f777,0x1)+'\x0a',_0x5d6f33+=_0x20f7eb(0x2d2)+(_0x4f158e?_0x25e281[_0x20f7eb(0x2a0)]:_0x25e281['TVuWz'])+'\x0a',_0x5d6f33+=_0x20f7eb(0x207)+_0x25e281[_0x20f7eb(0x270)](_0x2b3b75,_0x25e281[_0x20f7eb(0x2a1)])+'\x0a',_0x4c9173&&(_0x5d6f33+=_0x25e281['JKDwl'],_0x5d6f33+=_0x20f7eb(0x220)+(_0x4c9173[_0x20f7eb(0x1fc)]||_0x25e281[_0x20f7eb(0x2a1)])+'\x0a',_0x5d6f33+='\x20\x20Code:\x20'+(_0x4c9173[_0x20f7eb(0x246)]||_0x25e281[_0x20f7eb(0x2a1)])+'\x0a',_0x5d6f33+=_0x20f7eb(0x1fb)+(_0x4c9173[_0x20f7eb(0x232)]||_0x25e281[_0x20f7eb(0x2a1)])+'\x0a'),_0x5d6f33+='\x0a\x0a';}),_0x5d6f33+=_0x25e281[_0x2847af(0x2da)],_0x25e281['PKMGY'](_0x45795c,null)?_0x5d6f33+=_0x2847af(0x27a)+global_registry[_0x2847af(0x2f1)]+'\x20'+(_0x45795c?_0x25e281[_0x2847af(0x2f0)]:_0x25e281[_0x2847af(0x202)])+'\x0a\x0a':_0x5d6f33+=_0x2847af(0x27a)+global_registry[_0x2847af(0x2f1)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x5d6f33+=_0x25e281[_0x2847af(0x29e)](getSystemMetaData),_0x5d6f33;};exports[a17_0x36bbdc(0x24d)]=async function(_0x24e6d6){const _0x2d0bd0=a17_0x36bbdc,_0x2c3d21={'TDYlO':function(_0x56b50d){return _0x56b50d();},'AaPLw':_0x2d0bd0(0x28c),'ieacq':function(_0x27a264,_0x1339f4,_0x350f74,_0x424a76,_0x3188b4,_0x2ba34a,_0x21951c,_0x4523b){return _0x27a264(_0x1339f4,_0x350f74,_0x424a76,_0x3188b4,_0x2ba34a,_0x21951c,_0x4523b);},'QqxRK':_0x2d0bd0(0x234),'ErTPV':_0x2d0bd0(0x29b),'nYoEE':_0x2d0bd0(0x23c),'vtAKa':function(_0xfb4e59,_0x36ca74,_0x397d41,_0x557da0,_0xf41ce6,_0x30abc3,_0x105334){return _0xfb4e59(_0x36ca74,_0x397d41,_0x557da0,_0xf41ce6,_0x30abc3,_0x105334);},'yNRni':_0x2d0bd0(0x2e9),'nHufX':_0x2d0bd0(0x27d),'oabOc':function(_0x18690c,_0x2afbca,_0x43e7b0){return _0x18690c(_0x2afbca,_0x43e7b0);},'HeLFZ':_0x2d0bd0(0x2d1),'BUleF':_0x2d0bd0(0x21c),'vSsCM':_0x2d0bd0(0x2e2),'PBzsE':function(_0x5af923,_0x21a132,_0x2d7d29){return _0x5af923(_0x21a132,_0x2d7d29);},'YCCZY':_0x2d0bd0(0x2c0),'DuhVL':function(_0x33e5ed,_0x403763,_0x50a0ab){return _0x33e5ed(_0x403763,_0x50a0ab);},'uHXeN':_0x2d0bd0(0x233),'NcGqq':function(_0x1c5da0,_0x4dacc8){return _0x1c5da0(_0x4dacc8);},'RbJQD':'TLSv1_2_client_method','HnsmR':function(_0x9327de,_0x215824,_0x26fb44){return _0x9327de(_0x215824,_0x26fb44);},'iRdKy':_0x2d0bd0(0x2b9),'FVFuq':_0x2d0bd0(0x2dd),'aaHVx':_0x2d0bd0(0x23e),'kFhTt':_0x2d0bd0(0x2cb),'CLAxW':_0x2d0bd0(0x2b2),'cfuHC':function(_0x5a0110,_0x14dd04,_0x48bbba){return _0x5a0110(_0x14dd04,_0x48bbba);},'zrQoM':function(_0x473cb3,_0xd3fa35){return _0x473cb3+_0xd3fa35;},'YbTXq':_0x2d0bd0(0x2d6),'myJSf':_0x2d0bd0(0x2c8)};let _0x11d8c4,_0x583a1a;try{global_registry[_0x2d0bd0(0x227)]=_0x2c3d21[_0x2d0bd0(0x26f)](uuidv4);!fs[_0x2d0bd0(0x223)](_0x2c3d21[_0x2d0bd0(0x26f)](getCredentialsPath))&&(_0x583a1a=_0x2c3d21[_0x2d0bd0(0x2d7)],logger[_0x2d0bd0(0x23c)](_0x583a1a),await _0x2c3d21[_0x2d0bd0(0x250)](reportToGalactusAndSendToEDS,_0x24e6d6,_0x11d8c4,_0x583a1a,messageTypes[_0x2d0bd0(0x2ed)],_0x2c3d21[_0x2d0bd0(0x251)],_0x2c3d21['ErTPV'],_0x2c3d21['nYoEE']),process[_0x2d0bd0(0x29a)](0x1));_0x2c3d21[_0x2d0bd0(0x2d0)](sendInstrumentationEvent,_0x24e6d6,_0x2c3d21[_0x2d0bd0(0x251)],messageTypes[_0x2d0bd0(0x22e)],null,null,_0x24e6d6);const _0x72da24=JSON[_0x2d0bd0(0x1ff)](fs[_0x2d0bd0(0x21a)](_0x2c3d21[_0x2d0bd0(0x26f)](getCredentialsPath)));global_registry[_0x2d0bd0(0x205)]=_0x72da24[_0x2d0bd0(0x27c)][_0x2d0bd0(0x2bb)],global_registry['bstackAccesskey']=_0x72da24[_0x2d0bd0(0x27c)][_0x2d0bd0(0x272)];const _0x539469=WS_ENDPOINT[_0x2d0bd0(0x2b0)](_0x2c3d21[_0x2d0bd0(0x279)],_0x72da24[_0x2d0bd0(0x27c)]['username'])[_0x2d0bd0(0x2b0)](_0x2c3d21[_0x2d0bd0(0x217)],_0x72da24[_0x2d0bd0(0x27c)][_0x2d0bd0(0x272)]),_0x916398={};_0x916398[_0x2d0bd0(0x25d)]=ws,_0x916398[_0x2d0bd0(0x2ac)]=0x36ee80,_0x11d8c4=new ReconnectingWebSocket(_0x539469,[],_0x916398),global_registry[_0x2d0bd0(0x297)]=_0x2c3d21[_0x2d0bd0(0x2b8)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x2d0bd0(0x243)]),await _0x2c3d21[_0x2d0bd0(0x2b8)](inputValidation,_0x24e6d6,_0x11d8c4),logger[_0x2d0bd0(0x214)](_0x2d0bd0(0x204)+global_registry[_0x2d0bd0(0x247)]+_0x2d0bd0(0x2e4)+global_registry[_0x2d0bd0(0x277)]);let _0x497b94=await _0x2c3d21[_0x2d0bd0(0x2d0)](getCloudProviderObjectWithOutInit,global_registry[_0x2d0bd0(0x247)],global_registry[_0x2d0bd0(0x2f1)],_0x2c3d21[_0x2d0bd0(0x28d)],_0x11d8c4,webSocketUtils,_0x24e6d6);const _0x40818c=await _0x497b94['isCliToolInstalled']();_0x2c3d21[_0x2d0bd0(0x2b8)](printResponse,_0x2c3d21['BUleF'],_0x40818c),_0x497b94=await _0x497b94['init']();let _0xe79dcf=![];try{_0xe79dcf=await _0x497b94[_0x2d0bd0(0x248)]();}catch(_0x1d9c28){const _0x4ce068=_0x2c3d21['vSsCM'][_0x2d0bd0(0x20b)]('|');let _0x5e1d65=0x0;while(!![]){switch(_0x4ce068[_0x5e1d65++]){case'0':_0xe79dcf=null;continue;case'1':logger['error'](_0x583a1a);continue;case'2':await _0x2c3d21[_0x2d0bd0(0x250)](reportToGalactusAndSendToEDS,_0x24e6d6,_0x11d8c4,_0x583a1a,messageTypes[_0x2d0bd0(0x2ed)],_0x2c3d21[_0x2d0bd0(0x251)],'cluster-check-failed-'+global_registry[_0x2d0bd0(0x247)],_0x2c3d21['nYoEE']);continue;case'3':_0x583a1a+='\x0a'+JSON[_0x2d0bd0(0x275)](_0x1d9c28['stack']);continue;case'4':_0x583a1a=_0x2d0bd0(0x2a7)+global_registry[_0x2d0bd0(0x2f1)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x2d0bd0(0x277)]+_0x2d0bd0(0x249)+_0x1d9c28;continue;}break;}}_0xe79dcf&&logger[_0x2d0bd0(0x214)](_0x2d0bd0(0x2c6)+global_registry[_0x2d0bd0(0x2f1)]+_0x2d0bd0(0x1f8));const _0x26ceb0=await _0x497b94[_0x2d0bd0(0x1fd)]();_0x2c3d21[_0x2d0bd0(0x2eb)](printResponse,_0x2c3d21[_0x2d0bd0(0x29f)],_0x26ceb0);const _0x38b4d4=await _0x2c3d21[_0x2d0bd0(0x26f)](curlRequest);_0x2c3d21[_0x2d0bd0(0x2e1)](printResponse,_0x2c3d21[_0x2d0bd0(0x21f)],_0x38b4d4);const _0x16ccf6=await _0x2c3d21[_0x2d0bd0(0x287)](isTlsSupported,_0x2c3d21['RbJQD']);_0x2c3d21['HnsmR'](printResponse,_0x2c3d21[_0x2d0bd0(0x255)],_0x16ccf6);const _0x138061={};_0x138061[_0x2d0bd0(0x2aa)]=_0x2c3d21[_0x2d0bd0(0x276)],_0x138061[_0x2d0bd0(0x245)]=_0x40818c;const _0x395fdf={};_0x395fdf[_0x2d0bd0(0x2aa)]=_0x2c3d21[_0x2d0bd0(0x25c)],_0x395fdf['response']=_0x26ceb0;const _0x290785={};_0x290785[_0x2d0bd0(0x2aa)]=_0x2c3d21['kFhTt'],_0x290785[_0x2d0bd0(0x245)]=_0x38b4d4;const _0x105a57={};_0x105a57['header']=_0x2c3d21['CLAxW'],_0x105a57[_0x2d0bd0(0x245)]=_0x16ccf6;const _0x895b60=[_0x138061,_0x395fdf,_0x290785,_0x105a57],_0x28fe75=await _0x2c3d21[_0x2d0bd0(0x23d)](generateReport,_0x895b60,_0xe79dcf),_0x43acf9=new Date(),_0x2a7111=_0x43acf9[_0x2d0bd0(0x260)]()+'_'+_0x2c3d21[_0x2d0bd0(0x2c1)](_0x43acf9['getUTCMonth'](),0x1)+'_'+_0x43acf9[_0x2d0bd0(0x294)]()+'_'+_0x43acf9[_0x2d0bd0(0x235)]()+'_'+_0x43acf9[_0x2d0bd0(0x261)](),_0x336825=_0x2d0bd0(0x2ae)+_0x2a7111+'.txt';fs['writeFileSync'](_0x336825,_0x28fe75,_0x2c3d21[_0x2d0bd0(0x2be)]),logger[_0x2d0bd0(0x214)](_0x2d0bd0(0x2a3)+_0x336825),process[_0x2d0bd0(0x29a)](0x0);}catch(_0x4405fb){let _0x442ed6='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x4405fb+'\x20';logger[_0x2d0bd0(0x23c)](_0x442ed6),_0x442ed6+='\x0a'+JSON[_0x2d0bd0(0x275)](_0x4405fb[_0x2d0bd0(0x232)]),logger[_0x2d0bd0(0x25a)](_0x2d0bd0(0x2af)+_0x4405fb[_0x2d0bd0(0x232)]);if(_0x11d8c4){const _0x4e0c93={};_0x4e0c93[_0x2d0bd0(0x254)]=WS_EVENTS[_0x2d0bd0(0x24e)],_0x4e0c93[_0x2d0bd0(0x1fc)]=_0x442ed6,webSocketUtils[_0x2d0bd0(0x213)](_0x11d8c4,_0x4e0c93,_0x2c3d21[_0x2d0bd0(0x2a4)],!![]);}await webSocketUtils[_0x2d0bd0(0x23a)](0x7d0);const _0x3fc320={};_0x3fc320[_0x2d0bd0(0x23c)]=_0x442ed6,await _0x2c3d21[_0x2d0bd0(0x2d0)](sendInstrumentationEvent,_0x24e6d6,_0x2c3d21[_0x2d0bd0(0x251)],messageTypes[_0x2d0bd0(0x2ed)],_0x2c3d21[_0x2d0bd0(0x23f)],_0x3fc320,_0x24e6d6),process['exit'](0x1);}};
1
+ const a17_0x4aa6f7=a17_0xa5c9;(function(_0x55fa14,_0x220c3e){const _0x30258e=a17_0xa5c9,_0x389def=_0x55fa14();while(!![]){try{const _0xb3372=parseInt(_0x30258e(0x196))/0x1+-parseInt(_0x30258e(0x258))/0x2+parseInt(_0x30258e(0x190))/0x3+-parseInt(_0x30258e(0x200))/0x4*(-parseInt(_0x30258e(0x22d))/0x5)+-parseInt(_0x30258e(0x250))/0x6+parseInt(_0x30258e(0x216))/0x7+parseInt(_0x30258e(0x25e))/0x8;if(_0xb3372===_0x220c3e)break;else _0x389def['push'](_0x389def['shift']());}catch(_0x510a05){_0x389def['push'](_0x389def['shift']());}}}(a17_0x9dd9,0x690ed));function a17_0x9dd9(){const _0x276b04=['authHeader','2|0|3|1|4','Cluster\x20details\x0a-----------------------\x0a','CfHZa','connectionTimeout','jVWKK','dummy-grid','region','`\x20already\x20exists','oPJUf','ZgWOd','data','798602mZxrHw','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','length','uLilb','dGMJW','\x20region\x20-\x20','response','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','tlzCW','\x20===\x0a\x0a','isTls1_2_SUPPORTED','Whenr','Kablg','stringify','rKuoi','vOxDw','GET','IbRqZ','alZbX','message','cloud-provider-not-supported','Pre-check\x20running\x20for\x20Cloud\x20-\x20','yWUql','20AOTfAA','\x20error\x20:\x20','Message:\x20','gridProfile','zJQti','existsSync','\x20\x20Message:\x20','.\x20Please\x20provide\x20all\x20required\x20arguments.','uBGUZ','`\x20is\x20present\x20in\x20region\x20`','jrtVn','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','FaRBt','error\x20stack\x20:\x20','method','LLfQD','ayBBO','cloudProvider','../../utils/webSocketUtils','Ndyfg','RiBBc','laHYZ','type','QtBvo','reconnecting-websocket','cluster-name','fkwWB','kYMUz','CXlIO','BxvGj','INFO','cloud-provider','../../utils/utilityMethods','TLSv1_2_client_method','xBcWu','4939542KjilpH','AZKDk','WuOnc','HJPxk','usage','delay','\x20\x20Stack:\x20','NRuju','1397730OLkAYT','zJEod','uROrb','header','sQdLl','uuid','8031592rvINBV','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','tRrXk','checkAccess','vKHzo','zufEF','hhMui','freOL','epilogue','Grid\x20profile\x20fetched\x20for\x20pre-check','name','<UsernamePlaceholder>','uSUVo','CLOUD_PROVIDER',']\x20status\x20:\x20','description','argv','Status:\x20','clusterRegion','init','XukCo','IxsUD','waMZV','bJSho','find','FBENh','stack','../../utils/instrumentationUtils','QDIdX','stack\x20trace\x20','exit','BHdHS','Invalid\x20input.\x20grid\x20profiles:\x20','getUTCHours','yHptT','pre-check','getUTCMonth','cbWfI','pre-check-grid-called','cjZfo','THaIf','eClPR','TYJzM','cbLbO','Browserstack','toolInstalledResp','pre-check-cluster-args-not-passed','vJPVg','oCzFl','323823jNTSII','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','fIZjQ','dgKrN','xmbZK','530107huxtLu','builder','readFileSync','grid\x20profile\x20flow\x20','Setting\x20cloud\x20provider\x20as\x20','vhwdG','sxHHK','headers','jWAFG','SUGCJ','SSL\x20Configured','pGLYj','sendEventToBackend','debug','grid-profile','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','../../cloudproviders/utils','oOtlK','qcDXU','<PasswordPlaceholder>','desc','YutsL','hkuJn','LVSzF','zWwPR','yGFDS','ojNPP','CgMBx','pQjMF','push','handler','gJscF','info','\x20data\x20:\x20','IzOJf','clusterName','getUTCDate','grid','CCCKt','isTrialGridAccessible','bstackUsername','options','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','tioQX','cluster-check-failed-','skJZT','hPRzG','toLowerCase','JJNux','forEach','nwwvM','bstackAccesskey','Pnfxy','rZpdC','replace','parse','csXGY','dpfVp','code','Error\x20Details:\x0a','NXjax','cqGlG','FfkmV','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','YoIDW','HrgCI','KmMlQ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','OjpjO','vtDFT','status','Cluster\x20','.txt','../../config/constants','utf-8','EXNyo','N/A','unable\x20to\x20verify\x20if\x20cluster\x20`','iVCKo','username','HQvWO','password','===\x20Precheck\x20Report\x20-\x20','Failure','help','GGQdq','requestId','isClusterPresent','includes','Cluster\x20`','ALHhT','throwHttpErrors','gaJLr','cgeHW','WebSocket','wKAUE','aAVZS','JjoXE','vVuOs','rMJkz','join','is\x20already\x20present','owZQb','sbvLL','ERROR','TuVLb','196356PZxKFQ','will\x20be\x20created','nJaix','rROwz','pre_check','pre-check-failed','LrBsI','`\x20,error\x20:\x20','\x20\x20Code:\x20','error'];a17_0x9dd9=function(){return _0x276b04;};return a17_0x9dd9();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x4aa6f7(0x25d)),ReconnectingWebSocket=require(a17_0x4aa6f7(0x245)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4aa6f7(0x24d)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x4aa6f7(0x1df)),{getCloudProviderObjectWithOutInit}=require(a17_0x4aa6f7(0x1a6)),webSocketUtils=require(a17_0x4aa6f7(0x23f)),{sendInstrumentationEvent}=require(a17_0x4aa6f7(0x17a));exports['command']=a17_0x4aa6f7(0x1bb),exports[a17_0x4aa6f7(0x1aa)]=a17_0x4aa6f7(0x1d9),exports[a17_0x4aa6f7(0x197)]=function(_0xdf8bac){const _0x56ca6d=a17_0x4aa6f7,_0x229778={};_0x229778[_0x56ca6d(0x1f9)]=_0x56ca6d(0x191),_0x229778['uSUVo']='string',_0x229778[_0x56ca6d(0x1c3)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x229778['IbRqZ']=_0x56ca6d(0x1a5),_0x229778[_0x56ca6d(0x1d4)]=_0x56ca6d(0x238),_0x229778['pQjMF']=_0x56ca6d(0x1ea);const _0x5a284b=_0x229778,_0x5d57fb={};_0x5d57fb[_0x56ca6d(0x26d)]=_0x5a284b[_0x56ca6d(0x1f9)],_0x5d57fb[_0x56ca6d(0x243)]=_0x5a284b[_0x56ca6d(0x26a)];const _0x5d0a0d={};_0x5d0a0d[_0x56ca6d(0x26d)]=_0x5a284b[_0x56ca6d(0x1c3)],_0x5d0a0d['type']=_0x5a284b[_0x56ca6d(0x26a)];const _0x320f84={};_0x320f84[_0x56ca6d(0x26d)]=_0x5a284b[_0x56ca6d(0x227)],_0x320f84[_0x56ca6d(0x243)]=_0x5a284b['uSUVo'];const _0x298fa5={};_0x298fa5[_0x56ca6d(0x26d)]=_0x5a284b[_0x56ca6d(0x1d4)],_0x298fa5[_0x56ca6d(0x243)]=_0x5a284b[_0x56ca6d(0x26a)];const _0x38f501={};return _0x38f501['cluster-name']=_0x5d57fb,_0x38f501[_0x56ca6d(0x24c)]=_0x5d0a0d,_0x38f501[_0x56ca6d(0x211)]=_0x320f84,_0x38f501[_0x56ca6d(0x1a4)]=_0x298fa5,_0xdf8bac[_0x56ca6d(0x254)](HELP_HEADER_MESSAGE[_0x56ca6d(0x204)])[_0x56ca6d(0x266)](HELP_FOOTER_MESSAGE)[_0x56ca6d(0x1bf)](_0x38f501)['help'](_0x5a284b[_0x56ca6d(0x1b2)])[_0x56ca6d(0x16f)];};async function inputValidation(_0x29fcaa,_0x23681b){const _0x526c67=a17_0x4aa6f7,_0x83b81f={'TuVLb':function(_0x2644ab,_0x235caf){return _0x2644ab+_0x235caf;},'jWAFG':'Success','jVWKK':'Failure','wKAUE':function(_0x117df8,_0x7657f7){return _0x117df8||_0x7657f7;},'RiBBc':_0x526c67(0x1e2),'FBENh':_0x526c67(0x1d1),'csXGY':_0x526c67(0x25f),'nJaix':'error','zufEF':_0x526c67(0x191),'freOL':'string','XukCo':_0x526c67(0x1d5),'rqAeq':_0x526c67(0x1a5),'tlzCW':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','cbLbO':'help','fkwWB':_0x526c67(0x24c),'vKHzo':_0x526c67(0x246),'NRuju':_0x526c67(0x211),'fIZjQ':_0x526c67(0x1fb),'OEDKt':_0x526c67(0x201),'Kablg':function(_0xcc60fa,_0x2c34f5){return _0xcc60fa===_0x2c34f5;},'IzOJf':'CKbZa','rROwz':function(_0x84d582,_0x5efaef){return _0x84d582!==_0x5efaef;},'hkuJn':_0x526c67(0x253),'KmMlQ':'AjlRo','HrgCI':'cqnCg','gaJLr':function(_0xedc723,_0xa3e4cb){return _0xedc723!==_0xa3e4cb;},'laHYZ':_0x526c67(0x228),'yHptT':function(_0x128d9c,_0x5556d7){return _0x128d9c===_0x5556d7;},'Whenr':_0x526c67(0x1ab),'PzMHM':'zPAgp','GGQdq':function(_0x2187c0,_0x48a8c5){return _0x2187c0>_0x48a8c5;},'kYMUz':function(_0x73725a,_0x236651){return _0x73725a===_0x236651;},'zWwPR':_0x526c67(0x1cf),'ayBBO':function(_0x3141ff,_0x27ea86,_0x21b1db,_0xc0af3,_0x27159c,_0x24dfc8,_0xfdbb4d,_0x474130){return _0x3141ff(_0x27ea86,_0x21b1db,_0xc0af3,_0x27159c,_0x24dfc8,_0xfdbb4d,_0x474130);},'uROrb':_0x526c67(0x185),'sbvLL':_0x526c67(0x18d),'dgKrN':function(_0xf85c2a,_0x70cc56){return _0xf85c2a===_0x70cc56;},'NXjax':_0x526c67(0x237),'CCCKt':_0x526c67(0x195),'qcDXU':_0x526c67(0x1c0),'WuOnc':_0x526c67(0x22a),'IxsUD':'nNuQn','oPJUf':function(_0x37494b,_0x1870a3){return _0x37494b!==_0x1870a3;},'vJPVg':_0x526c67(0x259),'HQvWO':_0x526c67(0x184),'waMZV':_0x526c67(0x226),'Ndyfg':function(_0x409e28,_0x493fee,_0x1500ee){return _0x409e28(_0x493fee,_0x1500ee);},'YoIDW':function(_0x352c78,_0x55bb5f,_0x221c79,_0x388c30,_0x11057b,_0x34eac5){return _0x352c78(_0x55bb5f,_0x221c79,_0x388c30,_0x11057b,_0x34eac5);},'EXNyo':_0x526c67(0x182),'pGLYj':'grid-profile','dKLBa':_0x526c67(0x188),'bJSho':_0x526c67(0x231),'xBcWu':function(_0x4c4a9a,_0x2d2838){return _0x4c4a9a(_0x2d2838);},'Pnfxy':_0x526c67(0x1f8),'mQQYq':'pre-check-grid-profile-empty','tRrXk':function(_0x1e38ef,_0x36609f){return _0x1e38ef===_0x36609f;},'EByre':_0x526c67(0x189),'HxjYG':_0x526c67(0x20d),'CgMBx':_0x526c67(0x17e),'grckm':_0x526c67(0x267),'syfQG':function(_0x39c86c,_0x162922){return _0x39c86c!==_0x162922;},'hPRzG':'nmElo','ieyFo':_0x526c67(0x1ad),'KNwSV':function(_0xd109c1,_0x12ad7d){return _0xd109c1===_0x12ad7d;},'nwwvM':_0x526c67(0x1b0),'cqGlG':_0x526c67(0x206),'vOVku':function(_0x43ba2d,_0x385bb4,_0x5f4132,_0x95f1d8,_0x8fd0b7,_0x5a6668,_0x15d7d2,_0xc89ec5){return _0x43ba2d(_0x385bb4,_0x5f4132,_0x95f1d8,_0x8fd0b7,_0x5a6668,_0x15d7d2,_0xc89ec5);}};let _0x18ad0e;try{if(_0x83b81f[_0x526c67(0x222)](_0x83b81f[_0x526c67(0x1b8)],_0x83b81f[_0x526c67(0x1b8)])){if(_0x29fcaa[_0x526c67(0x1b9)]||_0x29fcaa[_0x526c67(0x23e)]||_0x29fcaa[_0x526c67(0x211)]){if(_0x83b81f['rROwz'](_0x83b81f[_0x526c67(0x1ac)],_0x83b81f[_0x526c67(0x1d8)])){const _0x19d1d8=[];if(!_0x29fcaa[_0x526c67(0x1b9)]){if(_0x83b81f[_0x526c67(0x203)](_0x83b81f['HrgCI'],_0x83b81f[_0x526c67(0x1d7)])){const {header:_0x2acb55,response:_0x2dbe9b}=_0x442151,{status:_0x1a5526,data:_0x15ef2f,error:_0x1cfc89}=_0x2dbe9b;_0x1f1a6c+=_0x2acb55+'\x20#'+_0x83b81f[_0x526c67(0x1ff)](_0x2d639f,0x1)+'\x0a',_0x4ac997+=_0x526c67(0x170)+(_0x1a5526?_0x83b81f[_0x526c67(0x19e)]:_0x83b81f[_0x526c67(0x20f)])+'\x0a',_0x4d406a+=_0x526c67(0x22f)+_0x83b81f[_0x526c67(0x1f5)](_0x15ef2f,_0x83b81f[_0x526c67(0x241)])+'\x0a',_0x1cfc89&&(_0x5e2bf9+=_0x83b81f['FBENh'],_0x58de8b+=_0x526c67(0x233)+(_0x1cfc89['message']||_0x83b81f[_0x526c67(0x241)])+'\x0a',_0x19161f+=_0x526c67(0x208)+(_0x1cfc89['code']||_0x83b81f['RiBBc'])+'\x0a',_0x33a00b+=_0x526c67(0x256)+(_0x1cfc89[_0x526c67(0x179)]||_0x83b81f[_0x526c67(0x241)])+'\x0a'),_0x16b213+='\x0a\x0a';}else _0x19d1d8[_0x526c67(0x1b3)](_0x83b81f[_0x526c67(0x262)]);};!_0x29fcaa[_0x526c67(0x23e)]&&(_0x83b81f[_0x526c67(0x1f2)](_0x83b81f[_0x526c67(0x242)],_0x83b81f[_0x526c67(0x242)])?(_0x12c1f6[_0x526c67(0x209)](_0x83b81f[_0x526c67(0x1ce)]),_0x227069[_0x526c67(0x17d)](0x1)):_0x19d1d8['push'](_0x83b81f[_0x526c67(0x247)]));;if(!_0x29fcaa['region']){if(_0x83b81f[_0x526c67(0x181)](_0x83b81f[_0x526c67(0x221)],_0x83b81f['PzMHM'])){const _0x220c56={};_0x220c56['type']=_0x175f67['LOG'],_0x220c56[_0x526c67(0x229)]=_0x111aaa,_0x55a1ab[_0x526c67(0x1a2)](_0x41ae9a,_0x220c56,_0x83b81f[_0x526c67(0x202)],!![]);}else _0x19d1d8[_0x526c67(0x1b3)](_0x83b81f[_0x526c67(0x257)]);};_0x83b81f[_0x526c67(0x1eb)](_0x19d1d8[_0x526c67(0x218)],0x0)&&(_0x83b81f[_0x526c67(0x248)](_0x83b81f[_0x526c67(0x1ae)],_0x83b81f[_0x526c67(0x1ae)])?(_0x18ad0e='Missing\x20required\x20arguments:\x20'+_0x19d1d8[_0x526c67(0x1fa)](',\x20')+_0x526c67(0x234),await _0x83b81f[_0x526c67(0x23d)](reportToGalactusAndSendToEDS,_0x29fcaa,_0x23681b,_0x18ad0e,messageTypes['ERROR'],_0x83b81f[_0x526c67(0x25a)],_0x83b81f[_0x526c67(0x1fd)],_0x83b81f[_0x526c67(0x202)]),logger[_0x526c67(0x209)](_0x18ad0e),process[_0x526c67(0x17d)](0x1)):_0x5f5ac9=_0x3c6fe7),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x526c67(0x1ee)](_0x29fcaa[_0x526c67(0x23e)][_0x526c67(0x1c5)]())&&(_0x83b81f[_0x526c67(0x194)](_0x83b81f[_0x526c67(0x1d2)],_0x83b81f[_0x526c67(0x1bc)])?_0x252ba+='Cluster\x20'+_0x133580['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(_0x18ad0e=_0x83b81f[_0x526c67(0x1a8)],await _0x83b81f['ayBBO'](reportToGalactusAndSendToEDS,_0x29fcaa,_0x23681b,_0x18ad0e,messageTypes['ERROR'],_0x83b81f['uROrb'],_0x83b81f[_0x526c67(0x252)],_0x83b81f[_0x526c67(0x202)]),logger[_0x526c67(0x209)](_0x18ad0e),!_0x29fcaa[_0x526c67(0x23e)]&&(_0x83b81f[_0x526c67(0x1f2)](_0x83b81f['IxsUD'],_0x83b81f[_0x526c67(0x174)])?_0xcab336[_0x526c67(0x17d)](0x1):(logger[_0x526c67(0x1b6)](_0x526c67(0x19a)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x29fcaa['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x526c67(0x26b)])))),global_registry['clusterName']=_0x29fcaa[_0x526c67(0x1b9)],global_registry[_0x526c67(0x23e)]=_0x29fcaa[_0x526c67(0x23e)],global_registry[_0x526c67(0x171)]=_0x29fcaa[_0x526c67(0x211)];}else{const _0x3bbd0e={};_0x3bbd0e[_0x526c67(0x26d)]=_0x83b81f[_0x526c67(0x263)],_0x3bbd0e[_0x526c67(0x243)]=_0x83b81f[_0x526c67(0x265)];const _0x4e96d7={};_0x4e96d7[_0x526c67(0x26d)]=_0x83b81f[_0x526c67(0x173)],_0x4e96d7[_0x526c67(0x243)]=_0x83b81f[_0x526c67(0x265)];const _0x5db7d3={};_0x5db7d3[_0x526c67(0x26d)]=_0x83b81f['rqAeq'],_0x5db7d3[_0x526c67(0x243)]=_0x83b81f[_0x526c67(0x265)];const _0xaf36d1={};_0xaf36d1[_0x526c67(0x26d)]=_0x83b81f[_0x526c67(0x21e)],_0xaf36d1['type']=_0x83b81f[_0x526c67(0x265)];const _0x1980fb={};return _0x1980fb[_0x526c67(0x246)]=_0x3bbd0e,_0x1980fb[_0x526c67(0x24c)]=_0x4e96d7,_0x1980fb[_0x526c67(0x211)]=_0x5db7d3,_0x1980fb[_0x526c67(0x1a4)]=_0xaf36d1,_0x1e31bf['usage'](_0x32d660['pre_check'])[_0x526c67(0x266)](_0x1e965b)[_0x526c67(0x1bf)](_0x1980fb)[_0x526c67(0x1ea)](_0x83b81f[_0x526c67(0x18a)])[_0x526c67(0x16f)];}}else{if(_0x29fcaa['gridProfile']){if(_0x83b81f[_0x526c67(0x213)](_0x83b81f[_0x526c67(0x18e)],_0x83b81f[_0x526c67(0x1e6)])){global_registry['gridProfile']=_0x29fcaa[_0x526c67(0x230)],logger[_0x526c67(0x1a3)](_0x526c67(0x199)+_0x29fcaa[_0x526c67(0x230)]);const _0xa57553='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x2ee8b={};_0x2ee8b[_0x526c67(0x23b)]=_0x83b81f[_0x526c67(0x175)],_0x2ee8b[_0x526c67(0x19d)]=global_registry[_0x526c67(0x20a)],_0x2ee8b[_0x526c67(0x1f1)]=![];const _0x336539=_0x2ee8b,_0x2102c4=await _0x83b81f[_0x526c67(0x240)](got,_0xa57553,_0x336539),_0x408b18=await _0x83b81f[_0x526c67(0x1d6)](responseValidation,_0x2102c4,_0x83b81f[_0x526c67(0x1e1)],_0x83b81f[_0x526c67(0x1a1)],_0x29fcaa,_0x23681b);let _0x475ec1={};if(_0x83b81f[_0x526c67(0x248)](_0x408b18,0xc8)){if(_0x83b81f['oPJUf'](_0x83b81f['dKLBa'],_0x83b81f[_0x526c67(0x176)])){const _0x5c3016=JSON['parse'](_0x2102c4['body']),_0x1d84b8=_0x5c3016[_0x526c67(0x177)](_0x4f1909=>_0x4f1909[_0x526c67(0x268)]===_0x29fcaa['gridProfile'])||null;_0x83b81f[_0x526c67(0x24f)](isUndefined,_0x1d84b8)?_0x83b81f[_0x526c67(0x213)](_0x83b81f[_0x526c67(0x1ca)],_0x83b81f[_0x526c67(0x1ca)])?(_0x1cbad6[_0x526c67(0x1b6)]('['+_0x278cdf+_0x526c67(0x26c)+_0x5889dc['status']+_0x526c67(0x1b7)+_0x1a351e[_0x526c67(0x215)]+_0x526c67(0x22e)+_0x3c1a78[_0x526c67(0x209)]),_0x2cf52b['error']&&_0x342792[_0x526c67(0x209)](_0x526c67(0x23a)+_0xe65456[_0x526c67(0x209)][_0x526c67(0x179)])):(_0x18ad0e=_0x526c67(0x17f)+_0x29fcaa[_0x526c67(0x230)]+_0x526c67(0x192),await _0x83b81f[_0x526c67(0x23d)](reportToGalactusAndSendToEDS,_0x29fcaa,_0x23681b,_0x18ad0e,messageTypes[_0x526c67(0x1fe)],_0x83b81f[_0x526c67(0x25a)],_0x83b81f['mQQYq'],_0x83b81f['nJaix']),logger[_0x526c67(0x209)](_0x18ad0e),process[_0x526c67(0x17d)](0x1)):_0x83b81f[_0x526c67(0x260)](_0x83b81f['EByre'],_0x83b81f['HxjYG'])?_0x51c705[_0x526c67(0x1b3)](_0x83b81f[_0x526c67(0x247)]):_0x475ec1=_0x1d84b8;}else _0x233304+=_0x83b81f[_0x526c67(0x178)],_0x56a455+=_0x526c67(0x233)+(_0x2d07eb[_0x526c67(0x229)]||_0x83b81f[_0x526c67(0x241)])+'\x0a',_0x24da15+=_0x526c67(0x208)+(_0x2576bc[_0x526c67(0x1d0)]||_0x83b81f['RiBBc'])+'\x0a',_0x57faeb+='\x20\x20Stack:\x20'+(_0x4a95c2[_0x526c67(0x179)]||_0x83b81f[_0x526c67(0x241)])+'\x0a';}else _0x83b81f[_0x526c67(0x181)](_0x83b81f[_0x526c67(0x1b1)],_0x83b81f[_0x526c67(0x1b1)])?process['exit'](0x1):_0x5bb65c['push'](_0x83b81f[_0x526c67(0x262)]);const _0x4325e4={};_0x4325e4[_0x526c67(0x243)]=WS_EVENTS['LOG'],_0x4325e4[_0x526c67(0x229)]=_0x83b81f['grckm'],webSocketUtils[_0x526c67(0x1a2)](_0x23681b,_0x4325e4),global_registry[_0x526c67(0x23e)]=_0x475ec1['cloudProvider'],global_registry[_0x526c67(0x171)]=_0x475ec1['region'],global_registry[_0x526c67(0x1b9)]=_0x475ec1[_0x526c67(0x1b9)];}else _0x33b7dc[_0x526c67(0x1b3)](_0x83b81f[_0x526c67(0x257)]);}else _0x83b81f['syfQG'](_0x83b81f[_0x526c67(0x1c4)],_0x83b81f['ieyFo'])?(logger[_0x526c67(0x209)](_0x83b81f[_0x526c67(0x1ce)]),process[_0x526c67(0x17d)](0x1)):_0x3d18a4+=_0x526c67(0x1dd)+_0x41df63[_0x526c67(0x1b9)]+'\x20'+(_0x3a70b6?_0x83b81f[_0x526c67(0x193)]:_0x83b81f['OEDKt'])+'\x0a\x0a';}}else _0xabf986['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x5cafeb[_0x526c67(0x26b)]+'\x20'),_0x4f6e39[_0x526c67(0x23e)]=_0x5dbb98['CLOUD_PROVIDER'];}catch(_0x5b2eab){_0x83b81f['KNwSV'](_0x83b81f[_0x526c67(0x1c8)],_0x83b81f[_0x526c67(0x1d3)])?_0x19ca3f[_0x526c67(0x209)](_0x526c67(0x23a)+_0x5a85b6[_0x526c67(0x209)][_0x526c67(0x179)]):(_0x18ad0e='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x5b2eab+':\x20'+_0x5b2eab[_0x526c67(0x179)],logger[_0x526c67(0x209)](_0x18ad0e),await _0x83b81f['vOVku'](reportToGalactusAndSendToEDS,_0x29fcaa,_0x23681b,_0x18ad0e,messageTypes[_0x526c67(0x1fe)],_0x83b81f[_0x526c67(0x25a)],_0x83b81f[_0x526c67(0x252)],_0x83b81f[_0x526c67(0x202)]),process[_0x526c67(0x17d)](0x1));}}function printResponse(_0x690c1a,_0x3cf67b){const _0x50e990=a17_0x4aa6f7,_0x17daa3={};_0x17daa3[_0x50e990(0x235)]=function(_0xcbeb5,_0x17aa3f){return _0xcbeb5!==_0x17aa3f;},_0x17daa3['sxHHK']=_0x50e990(0x23c),_0x17daa3[_0x50e990(0x18f)]=_0x50e990(0x214);const _0x54588a=_0x17daa3;logger[_0x50e990(0x1b6)]('['+_0x690c1a+']\x20status\x20:\x20'+_0x3cf67b[_0x50e990(0x1dc)]+_0x50e990(0x1b7)+_0x3cf67b[_0x50e990(0x215)]+_0x50e990(0x22e)+_0x3cf67b[_0x50e990(0x209)]),_0x3cf67b['error']&&(_0x54588a[_0x50e990(0x235)](_0x54588a[_0x50e990(0x19c)],_0x54588a[_0x50e990(0x18f)])?logger[_0x50e990(0x209)](_0x50e990(0x23a)+_0x3cf67b[_0x50e990(0x209)][_0x50e990(0x179)]):_0x59b64d['info']('Cluster\x20`'+_0x2b3e13[_0x50e990(0x1b9)]+_0x50e990(0x212)));}async function generateReport(_0x22d44f,_0x5df976){const _0x21c783=a17_0x4aa6f7,_0x1180d7={'vtDFT':function(_0x4bc1b0,_0x4983f3){return _0x4bc1b0+_0x4983f3;},'cgeHW':'Success','pYqCr':_0x21c783(0x1e9),'CXlIO':function(_0x6ce7e2,_0x3521ec){return _0x6ce7e2||_0x3521ec;},'yWUql':_0x21c783(0x1e2),'nRNOH':_0x21c783(0x1d1),'QtBvo':_0x21c783(0x20c),'rfFIQ':function(_0x5a8174,_0x4328a0){return _0x5a8174!=_0x4328a0;},'gJscF':_0x21c783(0x1fb),'BxvGj':'will\x20be\x20created','JjoXE':function(_0x106453){return _0x106453();}};let _0x204686=_0x21c783(0x1e8)+global_registry[_0x21c783(0x23e)]+_0x21c783(0x21f);return _0x22d44f[_0x21c783(0x1c7)]((_0xaa24a6,_0x3161b2)=>{const _0x538c98=_0x21c783,{header:_0x589981,response:_0x3f6ba9}=_0xaa24a6,{status:_0x12cd69,data:_0x679d62,error:_0x3fcf60}=_0x3f6ba9;_0x204686+=_0x589981+'\x20#'+_0x1180d7[_0x538c98(0x1db)](_0x3161b2,0x1)+'\x0a',_0x204686+=_0x538c98(0x170)+(_0x12cd69?_0x1180d7[_0x538c98(0x1f3)]:_0x1180d7['pYqCr'])+'\x0a',_0x204686+=_0x538c98(0x22f)+_0x1180d7[_0x538c98(0x249)](_0x679d62,_0x1180d7[_0x538c98(0x22c)])+'\x0a',_0x3fcf60&&(_0x204686+=_0x1180d7['nRNOH'],_0x204686+='\x20\x20Message:\x20'+(_0x3fcf60[_0x538c98(0x229)]||_0x1180d7['yWUql'])+'\x0a',_0x204686+=_0x538c98(0x208)+(_0x3fcf60['code']||_0x1180d7['yWUql'])+'\x0a',_0x204686+=_0x538c98(0x256)+(_0x3fcf60[_0x538c98(0x179)]||_0x1180d7[_0x538c98(0x22c)])+'\x0a'),_0x204686+='\x0a\x0a';}),_0x204686+=_0x1180d7[_0x21c783(0x244)],_0x1180d7['rfFIQ'](_0x5df976,null)?_0x204686+=_0x21c783(0x1dd)+global_registry[_0x21c783(0x1b9)]+'\x20'+(_0x5df976?_0x1180d7[_0x21c783(0x1b5)]:_0x1180d7[_0x21c783(0x24a)])+'\x0a\x0a':_0x204686+=_0x21c783(0x1dd)+global_registry[_0x21c783(0x1b9)]+_0x21c783(0x21d),_0x204686+=_0x1180d7[_0x21c783(0x1f7)](getSystemMetaData),_0x204686;}function a17_0xa5c9(_0x4fe84f,_0x500a05){const _0x9dd9c3=a17_0x9dd9();return a17_0xa5c9=function(_0xa5c972,_0x4cba56){_0xa5c972=_0xa5c972-0x16f;let _0x8bc239=_0x9dd9c3[_0xa5c972];return _0x8bc239;},a17_0xa5c9(_0x4fe84f,_0x500a05);};exports[a17_0x4aa6f7(0x1b4)]=async function(_0x4dfa80){const _0x2dfc4d=a17_0x4aa6f7,_0x3e6f70={'xdztk':function(_0x173c17){return _0x173c17();},'hlsWH':function(_0x4f3dd8){return _0x4f3dd8();},'bVrOX':_0x2dfc4d(0x217),'yGFDS':function(_0x26d42c,_0x3fb475,_0x523a5b,_0x1831bc,_0x134fc6,_0x560f3e,_0x444589,_0x47ba3f){return _0x26d42c(_0x3fb475,_0x523a5b,_0x1831bc,_0x134fc6,_0x560f3e,_0x444589,_0x47ba3f);},'SUGCJ':_0x2dfc4d(0x185),'ALHhT':'credential-not-found','FaRBt':_0x2dfc4d(0x209),'iVCKo':function(_0x2fd4f9,_0x4eeea2,_0x5245a9,_0x17b099,_0x3aaec8,_0x15c44f,_0x41ce08){return _0x2fd4f9(_0x4eeea2,_0x5245a9,_0x17b099,_0x3aaec8,_0x15c44f,_0x41ce08);},'JJNux':_0x2dfc4d(0x269),'aAVZS':_0x2dfc4d(0x1a9),'qoEzW':function(_0x2bf223,_0x193be9,_0x1fcc1e){return _0x2bf223(_0x193be9,_0x1fcc1e);},'dGMJW':function(_0x182420,_0x59d8a1,_0x38c5c4){return _0x182420(_0x59d8a1,_0x38c5c4);},'CPfug':_0x2dfc4d(0x210),'tioQX':function(_0xfac29,_0x23c6a3,_0x1e58ab){return _0xfac29(_0x23c6a3,_0x1e58ab);},'JEXVJ':_0x2dfc4d(0x18c),'OjpjO':_0x2dfc4d(0x20b),'cjZfo':function(_0x57fd26,_0x52b24a,_0x4cb5b1,_0x264cf8,_0x3fb2d3,_0x2dde46,_0x211bda,_0x35c838){return _0x57fd26(_0x52b24a,_0x4cb5b1,_0x264cf8,_0x3fb2d3,_0x2dde46,_0x211bda,_0x35c838);},'uLilb':'accessResp','oOtlK':function(_0x1002f3){return _0x1002f3();},'hhMui':_0x2dfc4d(0x1bd),'YJSXz':function(_0x57d02e,_0x5b086c){return _0x57d02e(_0x5b086c);},'AZKDk':_0x2dfc4d(0x24e),'THaIf':_0x2dfc4d(0x220),'rZpdC':'Tool\x20Installed','QDIdX':'User\x20Access','vhwdG':'Whitelisted\x20browserstack','owZQb':_0x2dfc4d(0x1a0),'rKuoi':function(_0x3f2926,_0x145e19,_0x8e998c){return _0x3f2926(_0x145e19,_0x8e998c);},'sQdLl':function(_0x138b42,_0x50b2be){return _0x138b42+_0x50b2be;},'BdInl':_0x2dfc4d(0x1e0),'vOxDw':function(_0x277036,_0x214f1d,_0x1c3deb,_0x24daca,_0x3ffb08,_0x271152,_0x4b86b8){return _0x277036(_0x214f1d,_0x1c3deb,_0x24daca,_0x3ffb08,_0x271152,_0x4b86b8);},'umnVk':_0x2dfc4d(0x205)};let _0x40bcad,_0x3424b7;try{global_registry[_0x2dfc4d(0x1ec)]=_0x3e6f70['xdztk'](uuidv4);!fs[_0x2dfc4d(0x232)](_0x3e6f70['hlsWH'](getCredentialsPath))&&(_0x3424b7=_0x3e6f70['bVrOX'],logger[_0x2dfc4d(0x209)](_0x3424b7),await _0x3e6f70[_0x2dfc4d(0x1af)](reportToGalactusAndSendToEDS,_0x4dfa80,_0x40bcad,_0x3424b7,messageTypes[_0x2dfc4d(0x1fe)],_0x3e6f70[_0x2dfc4d(0x19f)],_0x3e6f70[_0x2dfc4d(0x1f0)],_0x3e6f70[_0x2dfc4d(0x239)]),process['exit'](0x1));_0x3e6f70[_0x2dfc4d(0x1e4)](sendInstrumentationEvent,_0x4dfa80,_0x3e6f70['SUGCJ'],messageTypes[_0x2dfc4d(0x24b)],null,null,_0x4dfa80);const _0x178e8f=JSON[_0x2dfc4d(0x1cd)](fs[_0x2dfc4d(0x198)](_0x3e6f70['hlsWH'](getCredentialsPath)));global_registry['bstackUsername']=_0x178e8f[_0x2dfc4d(0x18b)][_0x2dfc4d(0x1e5)],global_registry['bstackAccesskey']=_0x178e8f['Browserstack'][_0x2dfc4d(0x1e7)];const _0x4a2414=WS_ENDPOINT[_0x2dfc4d(0x1cc)](_0x3e6f70[_0x2dfc4d(0x1c6)],_0x178e8f[_0x2dfc4d(0x18b)]['username'])[_0x2dfc4d(0x1cc)](_0x3e6f70[_0x2dfc4d(0x1f6)],_0x178e8f[_0x2dfc4d(0x18b)][_0x2dfc4d(0x1e7)]),_0x1a05b3={};_0x1a05b3[_0x2dfc4d(0x1f4)]=ws,_0x1a05b3[_0x2dfc4d(0x20e)]=0x36ee80,_0x40bcad=new ReconnectingWebSocket(_0x4a2414,[],_0x1a05b3),global_registry[_0x2dfc4d(0x20a)]=_0x3e6f70['qoEzW'](getAuthHeader,global_registry[_0x2dfc4d(0x1be)],global_registry[_0x2dfc4d(0x1c9)]),await _0x3e6f70[_0x2dfc4d(0x21a)](inputValidation,_0x4dfa80,_0x40bcad),logger[_0x2dfc4d(0x1b6)](_0x2dfc4d(0x22b)+global_registry[_0x2dfc4d(0x23e)]+_0x2dfc4d(0x21b)+global_registry[_0x2dfc4d(0x171)]);let _0x4cb9ce=await _0x3e6f70[_0x2dfc4d(0x1e4)](getCloudProviderObjectWithOutInit,global_registry[_0x2dfc4d(0x23e)],global_registry['clusterName'],_0x3e6f70['CPfug'],_0x40bcad,webSocketUtils,_0x4dfa80);const _0x16ae1d=await _0x4cb9ce['isCliToolInstalled']();_0x3e6f70['tioQX'](printResponse,_0x3e6f70['JEXVJ'],_0x16ae1d),_0x4cb9ce=await _0x4cb9ce[_0x2dfc4d(0x172)]();let _0x2eaaa9=![];try{_0x2eaaa9=await _0x4cb9ce[_0x2dfc4d(0x1ed)]();}catch(_0x15d26f){const _0x3c6628=_0x3e6f70[_0x2dfc4d(0x1da)]['split']('|');let _0x24c790=0x0;while(!![]){switch(_0x3c6628[_0x24c790++]){case'0':_0x2eaaa9=null;continue;case'1':_0x3424b7+='\x0a'+JSON[_0x2dfc4d(0x223)](_0x15d26f[_0x2dfc4d(0x179)]);continue;case'2':_0x3424b7=_0x2dfc4d(0x1e3)+global_registry['clusterName']+_0x2dfc4d(0x236)+global_registry[_0x2dfc4d(0x171)]+_0x2dfc4d(0x207)+_0x15d26f;continue;case'3':logger[_0x2dfc4d(0x209)](_0x3424b7);continue;case'4':await _0x3e6f70[_0x2dfc4d(0x186)](reportToGalactusAndSendToEDS,_0x4dfa80,_0x40bcad,_0x3424b7,messageTypes[_0x2dfc4d(0x1fe)],_0x3e6f70[_0x2dfc4d(0x19f)],_0x2dfc4d(0x1c2)+global_registry[_0x2dfc4d(0x23e)],_0x3e6f70[_0x2dfc4d(0x239)]);continue;}break;}}_0x2eaaa9&&logger['info'](_0x2dfc4d(0x1ef)+global_registry[_0x2dfc4d(0x1b9)]+_0x2dfc4d(0x212));const _0x257b18=await _0x4cb9ce[_0x2dfc4d(0x261)]();_0x3e6f70['tioQX'](printResponse,_0x3e6f70[_0x2dfc4d(0x219)],_0x257b18);const _0x19bacd=await _0x3e6f70[_0x2dfc4d(0x1a7)](curlRequest);_0x3e6f70['tioQX'](printResponse,_0x3e6f70[_0x2dfc4d(0x264)],_0x19bacd);const _0x3c1ba4=await _0x3e6f70['YJSXz'](isTlsSupported,_0x3e6f70[_0x2dfc4d(0x251)]);_0x3e6f70[_0x2dfc4d(0x1c1)](printResponse,_0x3e6f70[_0x2dfc4d(0x187)],_0x3c1ba4);const _0x377fb4={};_0x377fb4[_0x2dfc4d(0x25b)]=_0x3e6f70[_0x2dfc4d(0x1cb)],_0x377fb4[_0x2dfc4d(0x21c)]=_0x16ae1d;const _0x4b7a54={};_0x4b7a54['header']=_0x3e6f70[_0x2dfc4d(0x17b)],_0x4b7a54[_0x2dfc4d(0x21c)]=_0x257b18;const _0x1d1097={};_0x1d1097[_0x2dfc4d(0x25b)]=_0x3e6f70[_0x2dfc4d(0x19b)],_0x1d1097[_0x2dfc4d(0x21c)]=_0x19bacd;const _0x37a694={};_0x37a694[_0x2dfc4d(0x25b)]=_0x3e6f70[_0x2dfc4d(0x1fc)],_0x37a694[_0x2dfc4d(0x21c)]=_0x3c1ba4;const _0x1dea49=[_0x377fb4,_0x4b7a54,_0x1d1097,_0x37a694],_0x5a3176=await _0x3e6f70[_0x2dfc4d(0x224)](generateReport,_0x1dea49,_0x2eaaa9),_0x2c9833=new Date(),_0x3afff8=_0x2c9833['getUTCFullYear']()+'_'+_0x3e6f70[_0x2dfc4d(0x25c)](_0x2c9833[_0x2dfc4d(0x183)](),0x1)+'_'+_0x2c9833[_0x2dfc4d(0x1ba)]()+'_'+_0x2c9833[_0x2dfc4d(0x180)]()+'_'+_0x2c9833['getUTCMinutes'](),_0x478386='log/report_'+_0x3afff8+_0x2dfc4d(0x1de);fs['writeFileSync'](_0x478386,_0x5a3176,_0x3e6f70['BdInl']),logger['info']('Report\x20saved\x20in\x20'+_0x478386),process[_0x2dfc4d(0x17d)](0x0);}catch(_0x54beed){let _0x132217='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x54beed+'\x20';logger[_0x2dfc4d(0x209)](_0x132217),_0x132217+='\x0a'+JSON['stringify'](_0x54beed[_0x2dfc4d(0x179)]),logger[_0x2dfc4d(0x1a3)](_0x2dfc4d(0x17c)+_0x54beed[_0x2dfc4d(0x179)]);if(_0x40bcad){const _0x57cb6e={};_0x57cb6e[_0x2dfc4d(0x243)]=WS_EVENTS['LOG'],_0x57cb6e[_0x2dfc4d(0x229)]=_0x132217,webSocketUtils[_0x2dfc4d(0x1a2)](_0x40bcad,_0x57cb6e,_0x3e6f70[_0x2dfc4d(0x239)],!![]);}await webSocketUtils[_0x2dfc4d(0x255)](0x7d0);const _0x10ef40={};_0x10ef40[_0x2dfc4d(0x209)]=_0x132217,await _0x3e6f70[_0x2dfc4d(0x225)](sendInstrumentationEvent,_0x4dfa80,_0x3e6f70['SUGCJ'],messageTypes[_0x2dfc4d(0x1fe)],_0x3e6f70['umnVk'],_0x10ef40,_0x4dfa80),process[_0x2dfc4d(0x17d)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x58bd(_0x4b865a,_0x38ad2f){const _0x34e97c=a18_0x34e9();return a18_0x58bd=function(_0x58bd9c,_0x2dd792){_0x58bd9c=_0x58bd9c-0x159;let _0x478b66=_0x34e97c[_0x58bd9c];return _0x478b66;},a18_0x58bd(_0x4b865a,_0x38ad2f);}const a18_0x3cbffa=a18_0x58bd;function a18_0x34e9(){const _0x3df68f=['3480728BHhSOb','798529JfaLbo','command','handler','start','7508420nEXsvt','demandCommand','25925aocaQO','1508622DcIMFh','../config/constants','start_commands','usage','recommendCommands','epilogue','EdqgU','strict','commandDir','lPVeM','1110CmuKsL','help','33452azbLCM','87azmIPa','builder','1062782lhhUjx','Start\x20an\x20existing\x20Automation\x20grid.','18KIavJg'];a18_0x34e9=function(){return _0x3df68f;};return a18_0x34e9();}(function(_0x3fb4b5,_0x249a4a){const _0x36a17b=a18_0x58bd,_0xa711e2=_0x3fb4b5();while(!![]){try{const _0x578146=parseInt(_0x36a17b(0x172))/0x1+parseInt(_0x36a17b(0x15f))/0x2+parseInt(_0x36a17b(0x16c))/0x3*(-parseInt(_0x36a17b(0x16b))/0x4)+-parseInt(_0x36a17b(0x15e))/0x5*(-parseInt(_0x36a17b(0x169))/0x6)+parseInt(_0x36a17b(0x16e))/0x7+-parseInt(_0x36a17b(0x171))/0x8+parseInt(_0x36a17b(0x170))/0x9*(-parseInt(_0x36a17b(0x15c))/0xa);if(_0x578146===_0x249a4a)break;else _0xa711e2['push'](_0xa711e2['shift']());}catch(_0x2f413e){_0xa711e2['push'](_0xa711e2['shift']());}}}(a18_0x34e9,0x764ed));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3cbffa(0x160));exports[a18_0x3cbffa(0x159)]=a18_0x3cbffa(0x15b),exports['desc']=a18_0x3cbffa(0x16f),exports[a18_0x3cbffa(0x16d)]=function(_0x2cca3e){const _0xe7e775=a18_0x3cbffa,_0x4fd9b8={};_0x4fd9b8[_0xe7e775(0x165)]=_0xe7e775(0x161),_0x4fd9b8[_0xe7e775(0x168)]=_0xe7e775(0x16a);const _0x51b027=_0x4fd9b8;return _0x2cca3e[_0xe7e775(0x162)](HELP_HEADER_MESSAGE[_0xe7e775(0x15b)])[_0xe7e775(0x164)](HELP_FOOTER_MESSAGE)[_0xe7e775(0x167)](_0x51b027['EdqgU'])[_0xe7e775(0x15d)]()[_0xe7e775(0x163)]()[_0xe7e775(0x166)]()[_0xe7e775(0x16a)](_0x51b027['lPVeM']);},exports[a18_0x3cbffa(0x15a)]=function(_0xfe3c43){};
1
+ function a18_0xf3c0(_0x5e2eda,_0x1b106a){const _0x3fca59=a18_0x3fca();return a18_0xf3c0=function(_0xf3c063,_0xf907e9){_0xf3c063=_0xf3c063-0x94;let _0x592ee6=_0x3fca59[_0xf3c063];return _0x592ee6;},a18_0xf3c0(_0x5e2eda,_0x1b106a);}const a18_0x3c5c14=a18_0xf3c0;(function(_0x1d9d9f,_0x1a3f04){const _0x185f73=a18_0xf3c0,_0x1f3f8a=_0x1d9d9f();while(!![]){try{const _0x2608a8=-parseInt(_0x185f73(0x9e))/0x1+parseInt(_0x185f73(0x9a))/0x2*(parseInt(_0x185f73(0xaa))/0x3)+-parseInt(_0x185f73(0xa7))/0x4+-parseInt(_0x185f73(0xa8))/0x5+-parseInt(_0x185f73(0x98))/0x6*(parseInt(_0x185f73(0xa5))/0x7)+parseInt(_0x185f73(0x9b))/0x8+parseInt(_0x185f73(0x95))/0x9;if(_0x2608a8===_0x1a3f04)break;else _0x1f3f8a['push'](_0x1f3f8a['shift']());}catch(_0x204767){_0x1f3f8a['push'](_0x1f3f8a['shift']());}}}(a18_0x3fca,0x4597a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3c5c14(0x9d));exports[a18_0x3c5c14(0x96)]=a18_0x3c5c14(0xa1),exports[a18_0x3c5c14(0x94)]=a18_0x3c5c14(0x99),exports[a18_0x3c5c14(0xa0)]=function(_0x38e0c2){const _0x59ecd9=a18_0x3c5c14,_0x1d64ea={};_0x1d64ea[_0x59ecd9(0xa6)]=_0x59ecd9(0xa2),_0x1d64ea[_0x59ecd9(0xa4)]=_0x59ecd9(0x97);const _0x51e238=_0x1d64ea;return _0x38e0c2[_0x59ecd9(0xa3)](HELP_HEADER_MESSAGE[_0x59ecd9(0xa1)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x51e238['VLwnj'])['demandCommand']()[_0x59ecd9(0x9f)]()[_0x59ecd9(0x9c)]()['help'](_0x51e238[_0x59ecd9(0xa4)]);},exports[a18_0x3c5c14(0xa9)]=function(_0x27b48d){};function a18_0x3fca(){const _0x4a5876=['vkbRH','400379dyqPkf','VLwnj','1053516xvTDRd','1252340dcACFl','handler','42159ZWWlGg','desc','7305273VXZlVx','command','help','6tlhzyR','Start\x20an\x20existing\x20Automation\x20grid.','10tbdMYn','1995232YeJXXh','strict','../config/constants','275272CkpKEN','recommendCommands','builder','start','start_commands','usage'];a18_0x3fca=function(){return _0x4a5876;};return a18_0x3fca();}
@@ -1 +1 @@
1
- function a19_0xdb7c(){const _0x1047f5=['exit','../../utils/utilityMethods','stack','ERROR','info','../../utils/createk8sClient','statusCode','grid-id','4007007lEIBLg','GOgUA','4tDDvEB','2467224UrdsTD','clusterRegion','ZQlJi','29784edJafE','LHLdG','963361hsFJbU','Grid\x20started','addListeners','unauthorised','QdcVC','type','1073405ILmiLK','user','clBxL','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','start','KWjNI','help','boolean','stringify','string','server-error','gridId','../../utils/webSocketUtils','18Krejey','region','error','usage','desc','parse','builder','XHbaf','<PasswordPlaceholder>','handler','name','replace','Start\x20an\x20existing\x20Automation\x20grid.','reconnecting-websocket','Starting\x20grid\x20','../../utils/instrumentationUtils','<UsernamePlaceholder>','ZaCoN','FMmuB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cloudProvider','skipTlsCertVerify','options','XsDUf','ayCHT','username','existsSync','../../config/constants','epilogue','debug','Browserstack','password','402130HJxbUP','readFileSync','1358583VFALCf','44ExKcNo','Skip\x20insecure\x20cert\x20verification.','default','eTAyS','2CdCvGg','sCCWJ','message','lVZAf','clusterName','skip-tls-cert-verify','start-grid-called','grid','bstackAccesskey','TVped','description','sMFia','init-not-called','bstackUsername','../../cloudproviders/utils','gDOHw','WebSocket'];a19_0xdb7c=function(){return _0x1047f5;};return a19_0xdb7c();}const a19_0x4cdfdf=a19_0x2a21;function a19_0x2a21(_0x562598,_0x573f71){const _0xdb7cb6=a19_0xdb7c();return a19_0x2a21=function(_0x2a2123,_0x2ab442){_0x2a2123=_0x2a2123-0xe5;let _0x4ad916=_0xdb7cb6[_0x2a2123];return _0x4ad916;},a19_0x2a21(_0x562598,_0x573f71);}(function(_0x55d471,_0x270505){const _0x70cb5a=a19_0x2a21,_0x5b95d8=_0x55d471();while(!![]){try{const _0x5bb3e9=-parseInt(_0x70cb5a(0x12c))/0x1+parseInt(_0x70cb5a(0x10d))/0x2*(parseInt(_0x70cb5a(0x108))/0x3)+parseInt(_0x70cb5a(0x128))/0x4*(parseInt(_0x70cb5a(0x134))/0x5)+parseInt(_0x70cb5a(0xe6))/0x6*(-parseInt(_0x70cb5a(0x12e))/0x7)+parseInt(_0x70cb5a(0x129))/0x8+-parseInt(_0x70cb5a(0x126))/0x9+-parseInt(_0x70cb5a(0x106))/0xa*(-parseInt(_0x70cb5a(0x109))/0xb);if(_0x5bb3e9===_0x270505)break;else _0x5b95d8['push'](_0x5b95d8['shift']());}catch(_0x4c9950){_0x5b95d8['push'](_0x5b95d8['shift']());}}}(a19_0xdb7c,0x3cc59));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x4cdfdf(0xf3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x4cdfdf(0x101)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x4cdfdf(0x11f)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x4cdfdf(0xf5)),webSocketUtils=require(a19_0x4cdfdf(0xe5)),{createK8sClient}=require(a19_0x4cdfdf(0x123)),{getCloudProviderObject}=require(a19_0x4cdfdf(0x11b));exports['command']=a19_0x4cdfdf(0x114),exports[a19_0x4cdfdf(0xea)]=a19_0x4cdfdf(0xf2),exports[a19_0x4cdfdf(0xec)]=function(_0x1cf70e){const _0x56f099=a19_0x4cdfdf,_0x3b162a={};_0x3b162a[_0x56f099(0x12d)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x3b162a[_0x56f099(0x127)]=_0x56f099(0x13d),_0x3b162a['KWjNI']=_0x56f099(0x10a),_0x3b162a[_0x56f099(0xfe)]=_0x56f099(0x13b),_0x3b162a[_0x56f099(0xed)]=_0x56f099(0x13a);const _0x369c59=_0x3b162a,_0x51e743={};_0x51e743[_0x56f099(0x117)]=_0x369c59[_0x56f099(0x12d)],_0x51e743[_0x56f099(0x133)]=_0x369c59[_0x56f099(0x127)];const _0x38a409={};_0x38a409['description']=_0x369c59[_0x56f099(0x139)],_0x38a409[_0x56f099(0x133)]=_0x369c59[_0x56f099(0xfe)],_0x38a409[_0x56f099(0x10b)]=![];const _0x77a6f0={};return _0x77a6f0[_0x56f099(0x125)]=_0x51e743,_0x77a6f0[_0x56f099(0x112)]=_0x38a409,_0x1cf70e[_0x56f099(0xe9)](HELP_HEADER_MESSAGE[_0x56f099(0x138)])[_0x56f099(0x102)](HELP_FOOTER_MESSAGE)[_0x56f099(0xfc)](_0x77a6f0)['help'](_0x369c59['XHbaf'])['argv'];},exports[a19_0x4cdfdf(0xef)]=async function(_0x49d8b5){const _0x26fef1=a19_0x4cdfdf,_0x321e5a={'XsDUf':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','YKDlO':function(_0x192752){return _0x192752();},'FMmuB':_0x26fef1(0xf9),'eTAyS':function(_0x5ac898,_0x9c91c5,_0x259697,_0x3667af,_0x27ee46,_0xe35448,_0x3e2411){return _0x5ac898(_0x9c91c5,_0x259697,_0x3667af,_0x27ee46,_0xe35448,_0x3e2411);},'clBxL':_0x26fef1(0x113),'ZRvlV':_0x26fef1(0x119),'TVped':_0x26fef1(0xf6),'sMFia':_0x26fef1(0xee),'lVZAf':'Adding\x20Websocket\x20listeners','sCCWJ':function(_0x35eb2e,_0x47a6b3,_0x133736,_0x2fc188){return _0x35eb2e(_0x47a6b3,_0x133736,_0x2fc188);},'ZaCoN':function(_0xa8b975,_0x37d246,_0x2e48de){return _0xa8b975(_0x37d246,_0x2e48de);},'gDOHw':_0x26fef1(0x12f),'CVfJe':function(_0x49750f,_0x444f16){return _0x49750f===_0x444f16;},'QdcVC':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','aExjJ':_0x26fef1(0x131),'ZQlJi':'invalid-grid-id','LqrVM':_0x26fef1(0x13e)};let _0x15d75d;try{!_0x49d8b5[_0x26fef1(0x13f)]&&(logger['error'](_0x321e5a[_0x26fef1(0xfd)]),process[_0x26fef1(0x11e)](0x1));!fs[_0x26fef1(0x100)](_0x321e5a['YKDlO'](getCredentialsPath))&&(logger[_0x26fef1(0xe8)](_0x321e5a[_0x26fef1(0xf8)]),await _0x321e5a[_0x26fef1(0x10c)](sendInstrumentationEvent,_0x49d8b5,_0x321e5a[_0x26fef1(0x136)],messageTypes[_0x26fef1(0x121)],_0x321e5a['ZRvlV'],null,_0x49d8b5),process['exit'](0x1));logger[_0x26fef1(0x122)](_0x26fef1(0xf4)+_0x49d8b5['gridId']),await _0x321e5a['eTAyS'](sendInstrumentationEvent,_0x49d8b5,_0x321e5a['clBxL'],messageTypes['INFO'],null,null,_0x49d8b5);const _0x3a46f1=JSON['parse'](fs[_0x26fef1(0x107)](_0x321e5a['YKDlO'](getCredentialsPath)));global_registry[_0x26fef1(0x11a)]=_0x3a46f1[_0x26fef1(0x104)][_0x26fef1(0xff)],global_registry[_0x26fef1(0x115)]=_0x3a46f1[_0x26fef1(0x104)][_0x26fef1(0x105)];const _0xbdd664=WS_ENDPOINT[_0x26fef1(0xf1)](_0x321e5a[_0x26fef1(0x116)],_0x3a46f1['Browserstack'][_0x26fef1(0xff)])[_0x26fef1(0xf1)](_0x321e5a[_0x26fef1(0x118)],_0x3a46f1[_0x26fef1(0x104)]['password']),_0x11cc85={};_0x11cc85[_0x26fef1(0x11d)]=ws,_0x11cc85['connectionTimeout']=0x36ee80,_0x15d75d=new ReconnectingWebSocket(_0xbdd664,[],_0x11cc85),logger[_0x26fef1(0x103)](_0x321e5a[_0x26fef1(0x110)]),webSocketUtils[_0x26fef1(0x130)](_0x15d75d,_0x49d8b5[_0x26fef1(0x135)],_0x49d8b5['password']);const [_0x4301df,_0x1e70e1]=await _0x321e5a[_0x26fef1(0x10e)](getGridDetails,_0x3a46f1['Browserstack'][_0x26fef1(0xff)],_0x3a46f1['Browserstack'][_0x26fef1(0x105)],_0x49d8b5[_0x26fef1(0x13f)]);if(_0x1e70e1){const _0x341523=_0x1e70e1[_0x26fef1(0x122)];global_registry[_0x26fef1(0xfa)]=_0x341523[_0x26fef1(0xfa)],global_registry[_0x26fef1(0x12a)]=_0x341523[_0x26fef1(0xe7)],global_registry[_0x26fef1(0x111)]=_0x341523[_0x26fef1(0x111)];const _0x20553a=await _0x321e5a[_0x26fef1(0x10c)](getCloudProviderObject,_0x341523['cloudProvider'],_0x341523[_0x26fef1(0x111)],_0x341523[_0x26fef1(0xf0)],_0x15d75d,webSocketUtils,_0x49d8b5),[_0xffd526,_0x314eb7,_0x4b98f2,_0x3369c6,_0x287567,_0x4579a0]=await _0x321e5a[_0x26fef1(0xf7)](createK8sClient,_0x20553a,_0x49d8b5[_0x26fef1(0xfb)]);await _0x321e5a[_0x26fef1(0xf7)](scaleUpHubDeployment,_0x314eb7,_0x341523['name']),logger['info'](_0x321e5a[_0x26fef1(0x11c)]),process[_0x26fef1(0x11e)](0x0);}_0x321e5a['CVfJe'](_0x4301df[_0x26fef1(0x124)],0x191)&&(logger[_0x26fef1(0xe8)](_0x321e5a[_0x26fef1(0x132)]),await _0x321e5a['eTAyS'](sendInstrumentationEvent,_0x49d8b5,_0x321e5a[_0x26fef1(0x136)],messageTypes[_0x26fef1(0x121)],_0x321e5a['aExjJ'],null,_0x49d8b5),process['exit'](0x1)),_0x321e5a['CVfJe'](_0x4301df[_0x26fef1(0x124)],0x190)&&(logger[_0x26fef1(0xe8)](JSON[_0x26fef1(0xeb)](_0x4301df['body'])[_0x26fef1(0x10f)]),await _0x321e5a[_0x26fef1(0x10c)](sendInstrumentationEvent,_0x49d8b5,_0x321e5a[_0x26fef1(0x136)],messageTypes[_0x26fef1(0x121)],_0x321e5a[_0x26fef1(0x12b)],null,_0x49d8b5),process[_0x26fef1(0x11e)](0x1)),logger[_0x26fef1(0xe8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x26fef1(0x13c)](_0x4301df)),await _0x321e5a[_0x26fef1(0x10c)](sendInstrumentationEvent,_0x49d8b5,_0x321e5a[_0x26fef1(0x136)],messageTypes[_0x26fef1(0x121)],_0x321e5a['LqrVM'],_0x4301df,_0x49d8b5),process[_0x26fef1(0x11e)](0x1);}catch(_0xa09baf){const _0x414520=_0x26fef1(0x137)+_0xa09baf+'\x20\x0a'+JSON[_0x26fef1(0x13c)](_0xa09baf[_0x26fef1(0x120)])+'\x20';logger[_0x26fef1(0xe8)](_0x414520),process[_0x26fef1(0x11e)](0x1);}};
1
+ const a19_0x42b2a4=a19_0x1d9d;(function(_0xea4a2c,_0x101ebc){const _0x36fd4e=a19_0x1d9d,_0x381817=_0xea4a2c();while(!![]){try{const _0x1410c9=-parseInt(_0x36fd4e(0xed))/0x1*(-parseInt(_0x36fd4e(0xa7))/0x2)+-parseInt(_0x36fd4e(0xeb))/0x3+parseInt(_0x36fd4e(0xbf))/0x4+parseInt(_0x36fd4e(0xf7))/0x5+parseInt(_0x36fd4e(0xee))/0x6*(-parseInt(_0x36fd4e(0xef))/0x7)+-parseInt(_0x36fd4e(0xc2))/0x8+parseInt(_0x36fd4e(0xd6))/0x9;if(_0x1410c9===_0x101ebc)break;else _0x381817['push'](_0x381817['shift']());}catch(_0x5a0cf6){_0x381817['push'](_0x381817['shift']());}}}(a19_0x479e,0xd0c0a));function a19_0x1d9d(_0x3820cf,_0x18d6f5){const _0x479e98=a19_0x479e();return a19_0x1d9d=function(_0x1d9ddc,_0x18c297){_0x1d9ddc=_0x1d9ddc-0xa0;let _0x454a4a=_0x479e98[_0x1d9ddc];return _0x454a4a;},a19_0x1d9d(_0x3820cf,_0x18d6f5);}function a19_0x479e(){const _0x29bdf5=['11262177zfFtCD','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','debug','<UsernamePlaceholder>','../../config/logger','../../utils/createk8sClient','Adding\x20Websocket\x20listeners','password','INFO','username','vqlPp','error','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','message','../../config/constants','clusterRegion','server-error','dTQww','sRjzW','connectionTimeout','2726508XIkNWW','HzpTp','79458nVdjbw','353382urVmAw','14YAWmlq','bstackUsername','iSaHS','reconnecting-websocket','KfRyI','../../utils/instrumentationUtils','desc','stringify','457025EChIKE','cankS','info','skip-tls-cert-verify','body','SFJXc','unauthorised','WebSocket','26EvSGFh','sUYmP','LzXdB','replace','../../utils/utilityMethods','exit','Browserstack','help','readFileSync','addListeners','cloudProvider','usage','grid','handler','ACKvb','type','LbnyB','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','fAQQd','yADbU','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','statusCode','builder','pMBTJ','1192136crFsZe','IRZxd','init-not-called','6336528ZJylvQ','mLYcn','argv','existsSync','Skip\x20insecure\x20cert\x20verification.','../../utils/webSocketUtils','Start\x20an\x20existing\x20Automation\x20grid.','bstackAccesskey','ERROR','default','clusterName','description','gridId','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','skipTlsCertVerify','Grid\x20started','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','parse','grid-id','../../utils/gridComponents'];a19_0x479e=function(){return _0x29bdf5;};return a19_0x479e();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x42b2a4(0xf2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x42b2a4(0xe5)),{logger}=require(a19_0x42b2a4(0xda)),{getCredentialsPath,getGridDetails}=require(a19_0x42b2a4(0xab)),{scaleUpHubDeployment}=require(a19_0x42b2a4(0xd5)),{sendInstrumentationEvent}=require(a19_0x42b2a4(0xf4)),webSocketUtils=require(a19_0x42b2a4(0xc7)),{createK8sClient}=require(a19_0x42b2a4(0xdb)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']=a19_0x42b2a4(0xb3),exports[a19_0x42b2a4(0xf5)]=a19_0x42b2a4(0xc8),exports[a19_0x42b2a4(0xbd)]=function(_0x17aff7){const _0x6e6dfc=a19_0x42b2a4,_0x2bc4b2={};_0x2bc4b2[_0x6e6dfc(0xa0)]=_0x6e6dfc(0xbb),_0x2bc4b2[_0x6e6dfc(0xbe)]='string',_0x2bc4b2[_0x6e6dfc(0xa4)]=_0x6e6dfc(0xc6),_0x2bc4b2['suKcp']='boolean',_0x2bc4b2['svlOR']='help';const _0x14a418=_0x2bc4b2,_0x1914d7={};_0x1914d7[_0x6e6dfc(0xcd)]=_0x14a418['cankS'],_0x1914d7[_0x6e6dfc(0xb6)]=_0x14a418[_0x6e6dfc(0xbe)];const _0x1c5967={};_0x1c5967['description']=_0x14a418[_0x6e6dfc(0xa4)],_0x1c5967[_0x6e6dfc(0xb6)]=_0x14a418['suKcp'],_0x1c5967[_0x6e6dfc(0xcb)]=![];const _0x5df0e0={};return _0x5df0e0[_0x6e6dfc(0xd4)]=_0x1914d7,_0x5df0e0[_0x6e6dfc(0xa2)]=_0x1c5967,_0x17aff7[_0x6e6dfc(0xb2)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5df0e0)[_0x6e6dfc(0xae)](_0x14a418['svlOR'])[_0x6e6dfc(0xc4)];},exports[a19_0x42b2a4(0xb4)]=async function(_0x532cfe){const _0x15c123=a19_0x42b2a4,_0xe6bf8c={'LbnyB':_0x15c123(0xcf),'jyoev':function(_0x3de43e){return _0x3de43e();},'IEgGn':_0x15c123(0xd2),'HzpTp':function(_0xcd31a9,_0x3bcc53,_0x141881,_0x25b256,_0x4df797,_0x263659,_0x2767bc){return _0xcd31a9(_0x3bcc53,_0x141881,_0x25b256,_0x4df797,_0x263659,_0x2767bc);},'sUYmP':'start-grid-called','lQUhs':_0x15c123(0xc1),'vqlPp':function(_0x9a6129,_0x18c261,_0x24e8c3,_0x4ff77e,_0x12c713,_0x1f325c,_0x566ebb){return _0x9a6129(_0x18c261,_0x24e8c3,_0x4ff77e,_0x12c713,_0x1f325c,_0x566ebb);},'mLYcn':function(_0x438315){return _0x438315();},'caAZI':_0x15c123(0xd9),'IRZxd':'<PasswordPlaceholder>','WKgUJ':_0x15c123(0xdc),'KfRyI':function(_0x4b7b2a,_0x11d3d1,_0x1ae971,_0x452f85){return _0x4b7b2a(_0x11d3d1,_0x1ae971,_0x452f85);},'sRjzW':function(_0xe41fce,_0x3c4d22,_0x911302){return _0xe41fce(_0x3c4d22,_0x911302);},'idOHF':_0x15c123(0xd1),'fAQQd':function(_0x2a2539,_0x5608dd){return _0x2a2539===_0x5608dd;},'ACKvb':_0x15c123(0xe3),'yADbU':_0x15c123(0xa5),'iSaHS':function(_0x26c6f2,_0x2dbd29,_0x594066,_0x5df962,_0x5b0a20,_0x329049,_0x337523){return _0x26c6f2(_0x2dbd29,_0x594066,_0x5df962,_0x5b0a20,_0x329049,_0x337523);},'LzXdB':'invalid-grid-id','dTQww':_0x15c123(0xe7)};let _0x596f9c;try{!_0x532cfe[_0x15c123(0xce)]&&(logger['error'](_0xe6bf8c[_0x15c123(0xb7)]),process['exit'](0x1));!fs[_0x15c123(0xc5)](_0xe6bf8c['jyoev'](getCredentialsPath))&&(logger[_0x15c123(0xe1)](_0xe6bf8c['IEgGn']),await _0xe6bf8c[_0x15c123(0xec)](sendInstrumentationEvent,_0x532cfe,_0xe6bf8c[_0x15c123(0xa8)],messageTypes['ERROR'],_0xe6bf8c['lQUhs'],null,_0x532cfe),process[_0x15c123(0xac)](0x1));logger['info']('Starting\x20grid\x20'+_0x532cfe[_0x15c123(0xce)]),await _0xe6bf8c[_0x15c123(0xe0)](sendInstrumentationEvent,_0x532cfe,_0xe6bf8c[_0x15c123(0xa8)],messageTypes[_0x15c123(0xde)],null,null,_0x532cfe);const _0x122b86=JSON[_0x15c123(0xd3)](fs[_0x15c123(0xaf)](_0xe6bf8c[_0x15c123(0xc3)](getCredentialsPath)));global_registry[_0x15c123(0xf0)]=_0x122b86[_0x15c123(0xad)][_0x15c123(0xdf)],global_registry[_0x15c123(0xc9)]=_0x122b86['Browserstack'][_0x15c123(0xdd)];const _0x537627=WS_ENDPOINT['replace'](_0xe6bf8c['caAZI'],_0x122b86['Browserstack'][_0x15c123(0xdf)])[_0x15c123(0xaa)](_0xe6bf8c[_0x15c123(0xc0)],_0x122b86[_0x15c123(0xad)][_0x15c123(0xdd)]),_0x2ee023={};_0x2ee023[_0x15c123(0xa6)]=ws,_0x2ee023[_0x15c123(0xea)]=0x36ee80,_0x596f9c=new ReconnectingWebSocket(_0x537627,[],_0x2ee023),logger[_0x15c123(0xd8)](_0xe6bf8c['WKgUJ']),webSocketUtils[_0x15c123(0xb0)](_0x596f9c,_0x532cfe['user'],_0x532cfe[_0x15c123(0xdd)]);const [_0x580176,_0x5d490f]=await _0xe6bf8c[_0x15c123(0xf3)](getGridDetails,_0x122b86['Browserstack']['username'],_0x122b86[_0x15c123(0xad)][_0x15c123(0xdd)],_0x532cfe[_0x15c123(0xce)]);if(_0x5d490f){const _0x4f8ddf=_0x5d490f[_0x15c123(0xa1)];global_registry[_0x15c123(0xb1)]=_0x4f8ddf[_0x15c123(0xb1)],global_registry[_0x15c123(0xe6)]=_0x4f8ddf['region'],global_registry[_0x15c123(0xcc)]=_0x4f8ddf[_0x15c123(0xcc)];const _0x14e408=await _0xe6bf8c[_0x15c123(0xe0)](getCloudProviderObject,_0x4f8ddf[_0x15c123(0xb1)],_0x4f8ddf[_0x15c123(0xcc)],_0x4f8ddf[_0x15c123(0xe2)],_0x596f9c,webSocketUtils,_0x532cfe),[_0x380c2a,_0x5739fc,_0x145178,_0x201dfd,_0x235f00,_0x5510cb]=await _0xe6bf8c[_0x15c123(0xe9)](createK8sClient,_0x14e408,_0x532cfe[_0x15c123(0xd0)]);await _0xe6bf8c[_0x15c123(0xe9)](scaleUpHubDeployment,_0x5739fc,_0x4f8ddf[_0x15c123(0xe2)]),logger[_0x15c123(0xa1)](_0xe6bf8c['idOHF']),process[_0x15c123(0xac)](0x0);}_0xe6bf8c[_0x15c123(0xb9)](_0x580176['statusCode'],0x191)&&(logger[_0x15c123(0xe1)](_0xe6bf8c[_0x15c123(0xb5)]),await _0xe6bf8c[_0x15c123(0xe0)](sendInstrumentationEvent,_0x532cfe,_0xe6bf8c[_0x15c123(0xa8)],messageTypes[_0x15c123(0xca)],_0xe6bf8c[_0x15c123(0xba)],null,_0x532cfe),process[_0x15c123(0xac)](0x1)),_0xe6bf8c[_0x15c123(0xb9)](_0x580176[_0x15c123(0xbc)],0x190)&&(logger[_0x15c123(0xe1)](JSON[_0x15c123(0xd3)](_0x580176[_0x15c123(0xa3)])[_0x15c123(0xe4)]),await _0xe6bf8c[_0x15c123(0xf1)](sendInstrumentationEvent,_0x532cfe,_0xe6bf8c['sUYmP'],messageTypes[_0x15c123(0xca)],_0xe6bf8c[_0x15c123(0xa9)],null,_0x532cfe),process['exit'](0x1)),logger[_0x15c123(0xe1)](_0x15c123(0xd7)+JSON[_0x15c123(0xf6)](_0x580176)),await _0xe6bf8c['vqlPp'](sendInstrumentationEvent,_0x532cfe,_0xe6bf8c[_0x15c123(0xa8)],messageTypes[_0x15c123(0xca)],_0xe6bf8c[_0x15c123(0xe8)],_0x580176,_0x532cfe),process['exit'](0x1);}catch(_0x10573c){const _0x255359=_0x15c123(0xb8)+_0x10573c+'\x20\x0a'+JSON[_0x15c123(0xf6)](_0x10573c['stack'])+'\x20';logger['error'](_0x255359),process[_0x15c123(0xac)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x387c(_0xfd8218,_0xcf6e2f){const _0x21c223=a20_0x21c2();return a20_0x387c=function(_0x387cfb,_0x577aad){_0x387cfb=_0x387cfb-0x156;let _0x42c968=_0x21c223[_0x387cfb];return _0x42c968;},a20_0x387c(_0xfd8218,_0xcf6e2f);}const a20_0xbe2c0c=a20_0x387c;(function(_0x23e87c,_0x5a152b){const _0xaf6fb4=a20_0x387c,_0x57d45e=_0x23e87c();while(!![]){try{const _0x4394c1=parseInt(_0xaf6fb4(0x164))/0x1*(-parseInt(_0xaf6fb4(0x167))/0x2)+parseInt(_0xaf6fb4(0x156))/0x3*(parseInt(_0xaf6fb4(0x15f))/0x4)+-parseInt(_0xaf6fb4(0x166))/0x5*(parseInt(_0xaf6fb4(0x15c))/0x6)+parseInt(_0xaf6fb4(0x165))/0x7+parseInt(_0xaf6fb4(0x168))/0x8+parseInt(_0xaf6fb4(0x160))/0x9+parseInt(_0xaf6fb4(0x161))/0xa;if(_0x4394c1===_0x5a152b)break;else _0x57d45e['push'](_0x57d45e['shift']());}catch(_0x452f92){_0x57d45e['push'](_0x57d45e['shift']());}}}(a20_0x21c2,0x8626b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xbe2c0c(0x162));function a20_0x21c2(){const _0x449b35=['7192512mydIZc','KpHSk','20895fXCKlz','stop','handler','OqpsQ','demandCommand','command','479046cIZJOU','builder','stop_commands','24ZezjCs','3087891EgXXfy','3666320xQcrxZ','../config/constants','epilogue','175469qZJprB','669249qddzXT','20LXbtob','10boLGnZ'];a20_0x21c2=function(){return _0x449b35;};return a20_0x21c2();}exports[a20_0xbe2c0c(0x15b)]=a20_0xbe2c0c(0x157),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0xbe2c0c(0x15d)]=function(_0x37e140){const _0x476414=a20_0xbe2c0c,_0x426a73={};_0x426a73[_0x476414(0x159)]=_0x476414(0x15e),_0x426a73[_0x476414(0x169)]='help';const _0x14f094=_0x426a73;return _0x37e140['usage'](HELP_HEADER_MESSAGE[_0x476414(0x157)])[_0x476414(0x163)](HELP_FOOTER_MESSAGE)['commandDir'](_0x14f094[_0x476414(0x159)])[_0x476414(0x15a)]()['recommendCommands']()['strict']()['help'](_0x14f094['KpHSk']);},exports[a20_0xbe2c0c(0x158)]=function(_0x2b9845){};
1
+ const a20_0x28209f=a20_0x1188;function a20_0x4ab6(){const _0x2d6798=['7310omAaBy','3ytrlEw','16176XxdHdR','usage','1359soYLvr','7231vYybUp','command','1512HWdCho','../config/constants','stop_commands','stop','30oCuUXM','Stop\x20a\x20running\x20Automation\x20grid.','desc','demandCommand','160KjMAAO','strict','help','391193fubogH','recommendCommands','832YcCVmP','Zsjhp','6591UgyHdx','builder','kvWHb','27866NLRTmq','138ZldJFB'];a20_0x4ab6=function(){return _0x2d6798;};return a20_0x4ab6();}function a20_0x1188(_0x1b27c6,_0x4f38a5){const _0x4ab674=a20_0x4ab6();return a20_0x1188=function(_0x11886a,_0xfea4f8){_0x11886a=_0x11886a-0x17b;let _0x59a11f=_0x4ab674[_0x11886a];return _0x59a11f;},a20_0x1188(_0x1b27c6,_0x4f38a5);}(function(_0xedcfb6,_0x308850){const _0x5afd6c=a20_0x1188,_0xb38237=_0xedcfb6();while(!![]){try{const _0x11f552=-parseInt(_0x5afd6c(0x18f))/0x1*(-parseInt(_0x5afd6c(0x18c))/0x2)+-parseInt(_0x5afd6c(0x189))/0x3*(parseInt(_0x5afd6c(0x182))/0x4)+parseInt(_0x5afd6c(0x18e))/0x5*(parseInt(_0x5afd6c(0x18d))/0x6)+parseInt(_0x5afd6c(0x193))/0x7+parseInt(_0x5afd6c(0x195))/0x8*(-parseInt(_0x5afd6c(0x192))/0x9)+-parseInt(_0x5afd6c(0x17e))/0xa*(-parseInt(_0x5afd6c(0x185))/0xb)+-parseInt(_0x5afd6c(0x190))/0xc*(-parseInt(_0x5afd6c(0x187))/0xd);if(_0x11f552===_0x308850)break;else _0xb38237['push'](_0xb38237['shift']());}catch(_0x4426bf){_0xb38237['push'](_0xb38237['shift']());}}}(a20_0x4ab6,0x255a8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x28209f(0x17b));exports[a20_0x28209f(0x194)]='stop',exports[a20_0x28209f(0x180)]=a20_0x28209f(0x17f),exports[a20_0x28209f(0x18a)]=function(_0xef680b){const _0x315825=a20_0x28209f,_0x161727={};_0x161727[_0x315825(0x188)]=_0x315825(0x17c),_0x161727[_0x315825(0x18b)]=_0x315825(0x184);const _0x24e8dc=_0x161727;return _0xef680b[_0x315825(0x191)](HELP_HEADER_MESSAGE[_0x315825(0x17d)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x24e8dc[_0x315825(0x188)])[_0x315825(0x181)]()[_0x315825(0x186)]()[_0x315825(0x183)]()[_0x315825(0x184)](_0x24e8dc['kvWHb']);},exports['handler']=function(_0x4019d2){};
@@ -1 +1 @@
1
- const a21_0x534e5b=a21_0x7fc9;(function(_0x2f87bd,_0x5e73c0){const _0x452cbf=a21_0x7fc9,_0xdcb391=_0x2f87bd();while(!![]){try{const _0x120112=parseInt(_0x452cbf(0x200))/0x1+-parseInt(_0x452cbf(0x1fe))/0x2*(parseInt(_0x452cbf(0x1f5))/0x3)+-parseInt(_0x452cbf(0x215))/0x4*(-parseInt(_0x452cbf(0x1d0))/0x5)+-parseInt(_0x452cbf(0x1e9))/0x6*(parseInt(_0x452cbf(0x20a))/0x7)+-parseInt(_0x452cbf(0x1f2))/0x8+parseInt(_0x452cbf(0x1ea))/0x9+parseInt(_0x452cbf(0x1f9))/0xa;if(_0x120112===_0x5e73c0)break;else _0xdcb391['push'](_0xdcb391['shift']());}catch(_0x57575d){_0xdcb391['push'](_0xdcb391['shift']());}}}(a21_0x1cab,0x90a30));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x534e5b(0x1cd)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x534e5b(0x1db)),{logger}=require(a21_0x534e5b(0x1d3)),{getCredentialsPath,getGridDetails}=require(a21_0x534e5b(0x1c6)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x534e5b(0x1cb)),webSocketUtils=require(a21_0x534e5b(0x1cc)),{createK8sClient}=require(a21_0x534e5b(0x20e)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x7fc9(_0x60e655,_0x5bdbbb){const _0x1cab67=a21_0x1cab();return a21_0x7fc9=function(_0x7fc90e,_0x2d953d){_0x7fc90e=_0x7fc90e-0x1bb;let _0x5d78db=_0x1cab67[_0x7fc90e];return _0x5d78db;},a21_0x7fc9(_0x60e655,_0x5bdbbb);}exports[a21_0x534e5b(0x212)]=a21_0x534e5b(0x1bf),exports[a21_0x534e5b(0x209)]=a21_0x534e5b(0x1c9),exports[a21_0x534e5b(0x1dd)]=function(_0x4133f9){const _0x1f981f=a21_0x534e5b,_0x141eaa={};_0x141eaa[_0x1f981f(0x1e8)]=_0x1f981f(0x207),_0x141eaa[_0x1f981f(0x1d9)]=_0x1f981f(0x1e3),_0x141eaa[_0x1f981f(0x1d2)]=_0x1f981f(0x1f8),_0x141eaa['YmNoa']=_0x1f981f(0x1fa),_0x141eaa[_0x1f981f(0x1d5)]='help';const _0x4615a8=_0x141eaa,_0x4fd7c0={};_0x4fd7c0[_0x1f981f(0x1c0)]=_0x4615a8[_0x1f981f(0x1e8)],_0x4fd7c0[_0x1f981f(0x1e5)]=_0x4615a8[_0x1f981f(0x1d9)];const _0x2cf62d={};_0x2cf62d[_0x1f981f(0x1c0)]=_0x4615a8[_0x1f981f(0x1d2)],_0x2cf62d[_0x1f981f(0x1e5)]=_0x4615a8[_0x1f981f(0x1d7)],_0x2cf62d[_0x1f981f(0x1c7)]=![];const _0x2df1e4={};return _0x2df1e4[_0x1f981f(0x1e0)]=_0x4fd7c0,_0x2df1e4['skip-tls-cert-verify']=_0x2cf62d,_0x4133f9[_0x1f981f(0x211)](HELP_HEADER_MESSAGE[_0x1f981f(0x214)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x2df1e4)['help'](_0x4615a8[_0x1f981f(0x1d5)])['argv'];},exports[a21_0x534e5b(0x1f4)]=async function(_0x45bee4){const _0x587c7f=a21_0x534e5b,_0x3ae7de={'NVmwY':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','IvCOO':function(_0x1ba1b0){return _0x1ba1b0();},'rmDMu':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cUxzM':function(_0x50a302,_0x96ea44,_0x52bf98,_0x31f9af,_0x1e364e,_0x2e9faa,_0x2a1e29){return _0x50a302(_0x96ea44,_0x52bf98,_0x31f9af,_0x1e364e,_0x2e9faa,_0x2a1e29);},'ZyQra':'stop-grid-called','Yrisg':_0x587c7f(0x1ca),'WuzCQ':_0x587c7f(0x1ee),'zjXxn':_0x587c7f(0x1e2),'HtTMN':_0x587c7f(0x1c5),'MqwOH':function(_0x4661b5,_0x2f4abd,_0x313bd4,_0x83fba){return _0x4661b5(_0x2f4abd,_0x313bd4,_0x83fba);},'jVFtp':function(_0x2720d9,_0x2bc736,_0x285540){return _0x2720d9(_0x2bc736,_0x285540);},'FEnuT':function(_0x304c98,_0x310ccf,_0x487313){return _0x304c98(_0x310ccf,_0x487313);},'sqZcD':_0x587c7f(0x1d1),'eHYGl':function(_0x18de95,_0x7bb9a1){return _0x18de95===_0x7bb9a1;},'VZlOz':_0x587c7f(0x1fc),'EOxuB':_0x587c7f(0x1e4),'qHtIq':function(_0x475bd8,_0x4bd7d1){return _0x475bd8===_0x4bd7d1;},'CTwjJ':_0x587c7f(0x1d8),'QCDlA':function(_0x36a358,_0x4a5e60,_0x551ad8,_0x3ce9b0,_0x15b78d,_0x562b5b,_0x3ef018){return _0x36a358(_0x4a5e60,_0x551ad8,_0x3ce9b0,_0x15b78d,_0x562b5b,_0x3ef018);},'emsKi':_0x587c7f(0x1da)};let _0x1a7767;try{!_0x45bee4[_0x587c7f(0x201)]&&(logger[_0x587c7f(0x205)](_0x3ae7de[_0x587c7f(0x1ef)]),process[_0x587c7f(0x1f1)](0x1));!fs[_0x587c7f(0x1cf)](_0x3ae7de[_0x587c7f(0x1ed)](getCredentialsPath))&&(logger[_0x587c7f(0x205)](_0x3ae7de['rmDMu']),await _0x3ae7de['cUxzM'](sendInstrumentationEvent,_0x45bee4,_0x3ae7de['ZyQra'],messageTypes[_0x587c7f(0x1ce)],_0x3ae7de['Yrisg'],null,_0x45bee4),process[_0x587c7f(0x1f1)](0x1));logger[_0x587c7f(0x203)](_0x587c7f(0x1c3)+_0x45bee4[_0x587c7f(0x201)]),await _0x3ae7de[_0x587c7f(0x1bb)](sendInstrumentationEvent,_0x45bee4,_0x3ae7de[_0x587c7f(0x206)],messageTypes['INFO'],null,null,_0x45bee4);const _0x374bcb=JSON[_0x587c7f(0x1eb)](fs[_0x587c7f(0x1fd)](_0x3ae7de['IvCOO'](getCredentialsPath)));global_registry[_0x587c7f(0x1d6)]=_0x374bcb['Browserstack']['username'],global_registry[_0x587c7f(0x1f7)]=_0x374bcb[_0x587c7f(0x1e7)][_0x587c7f(0x1de)];const _0x27f55d=WS_ENDPOINT[_0x587c7f(0x1ec)](_0x3ae7de[_0x587c7f(0x208)],_0x374bcb[_0x587c7f(0x1e7)][_0x587c7f(0x20b)])['replace'](_0x3ae7de['zjXxn'],_0x374bcb['Browserstack']['password']),_0x3ca56f={};_0x3ca56f[_0x587c7f(0x1c1)]=ws,_0x3ca56f[_0x587c7f(0x204)]=0x36ee80,_0x1a7767=new ReconnectingWebSocket(_0x27f55d,[],_0x3ca56f),logger[_0x587c7f(0x1f3)](_0x3ae7de['HtTMN']),webSocketUtils[_0x587c7f(0x1ff)](_0x1a7767,_0x45bee4[_0x587c7f(0x1f6)],_0x45bee4[_0x587c7f(0x1de)]);const [_0x5b7c16,_0x58ed58]=await _0x3ae7de['MqwOH'](getGridDetails,_0x374bcb[_0x587c7f(0x1e7)][_0x587c7f(0x20b)],_0x374bcb[_0x587c7f(0x1e7)][_0x587c7f(0x1de)],_0x45bee4['gridId']);if(_0x58ed58){const _0x36206e=_0x58ed58['info'];global_registry['cloudProvider']=_0x36206e[_0x587c7f(0x1e1)],global_registry[_0x587c7f(0x1bd)]=_0x36206e[_0x587c7f(0x1fb)],global_registry[_0x587c7f(0x1e6)]=_0x36206e['clusterName'];const _0x48d274=await _0x3ae7de['cUxzM'](getCloudProviderObject,_0x36206e[_0x587c7f(0x1e1)],_0x36206e[_0x587c7f(0x1e6)],_0x36206e[_0x587c7f(0x1dc)],_0x1a7767,webSocketUtils,_0x45bee4),[_0x33b35f,_0x4f8569,_0x2ff996,_0xc9bebe,_0x18d729,_0x3b55f2]=await _0x3ae7de[_0x587c7f(0x1c8)](createK8sClient,_0x48d274,_0x45bee4[_0x587c7f(0x1d4)]);await _0x3ae7de[_0x587c7f(0x20d)](scaleDownHubDeployment,_0x4f8569,_0x36206e[_0x587c7f(0x1dc)]),logger[_0x587c7f(0x203)](_0x3ae7de[_0x587c7f(0x1c2)]),process[_0x587c7f(0x1f1)](0x0);}_0x3ae7de[_0x587c7f(0x1f0)](_0x5b7c16['statusCode'],0x191)&&(logger[_0x587c7f(0x205)](_0x3ae7de['VZlOz']),await _0x3ae7de[_0x587c7f(0x1bb)](sendInstrumentationEvent,_0x45bee4,_0x3ae7de['ZyQra'],messageTypes[_0x587c7f(0x1ce)],_0x3ae7de[_0x587c7f(0x210)],null,_0x45bee4),process[_0x587c7f(0x1f1)](0x1)),_0x3ae7de['qHtIq'](_0x5b7c16[_0x587c7f(0x1be)],0x190)&&(logger['error'](JSON['parse'](_0x5b7c16['body'])[_0x587c7f(0x213)]),await _0x3ae7de['cUxzM'](sendInstrumentationEvent,_0x45bee4,_0x3ae7de['ZyQra'],messageTypes[_0x587c7f(0x1ce)],_0x3ae7de[_0x587c7f(0x20f)],null,_0x45bee4),process[_0x587c7f(0x1f1)](0x1)),logger[_0x587c7f(0x205)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x587c7f(0x1bc)](_0x5b7c16)),await _0x3ae7de[_0x587c7f(0x202)](sendInstrumentationEvent,_0x45bee4,_0x3ae7de[_0x587c7f(0x206)],messageTypes[_0x587c7f(0x1ce)],_0x3ae7de[_0x587c7f(0x20c)],_0x5b7c16,_0x45bee4),process[_0x587c7f(0x1f1)](0x1);}catch(_0x306aed){const _0x23fb2d=_0x587c7f(0x1df)+_0x306aed+'\x20\x0a'+JSON['stringify'](_0x306aed[_0x587c7f(0x1c4)])+'\x20';logger[_0x587c7f(0x205)](_0x23fb2d),process[_0x587c7f(0x1f1)](0x1);}};function a21_0x1cab(){const _0x1635c8=['replace','IvCOO','<UsernamePlaceholder>','NVmwY','eHYGl','exit','4151688yFomLq','debug','handler','3093iNIhQF','user','bstackAccesskey','Skip\x20insecure\x20cert\x20verification.','15940130kDCVDJ','boolean','region','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','readFileSync','1858amjhqq','addListeners','133540yPvJzV','gridId','QCDlA','info','connectionTimeout','error','ZyQra','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','WuzCQ','desc','7421127eDCNmK','username','emsKi','FEnuT','../../utils/createk8sClient','CTwjJ','EOxuB','usage','command','message','stop','4Pkcheh','cUxzM','stringify','clusterRegion','statusCode','grid','description','WebSocket','sqZcD','Stopping\x20grid\x20','stack','Adding\x20Websocket\x20listeners','../../utils/utilityMethods','default','jVFtp','Stop\x20a\x20running\x20Automation\x20grid.','init-not-called','../../utils/instrumentationUtils','../../utils/webSocketUtils','reconnecting-websocket','ERROR','existsSync','4292655NpPvuy','Grid\x20stoppped.','jOqBa','../../config/logger','skipTlsCertVerify','ePBvP','bstackUsername','YmNoa','invalid-grid-id','NqDbP','server-error','../../config/constants','name','builder','password','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','grid-id','cloudProvider','<PasswordPlaceholder>','string','unauthorised','type','clusterName','Browserstack','GysiP','6hLQuqX','4889421heYYWH','parse'];a21_0x1cab=function(){return _0x1635c8;};return a21_0x1cab();}
1
+ const a21_0x1146ca=a21_0x3b44;(function(_0x534ff6,_0x174666){const _0x3e704a=a21_0x3b44,_0x5917cb=_0x534ff6();while(!![]){try{const _0x1371cd=-parseInt(_0x3e704a(0x19b))/0x1+-parseInt(_0x3e704a(0x1a1))/0x2*(parseInt(_0x3e704a(0x17a))/0x3)+parseInt(_0x3e704a(0x15e))/0x4+-parseInt(_0x3e704a(0x189))/0x5+-parseInt(_0x3e704a(0x17b))/0x6+parseInt(_0x3e704a(0x1a6))/0x7*(parseInt(_0x3e704a(0x19f))/0x8)+-parseInt(_0x3e704a(0x1a4))/0x9*(-parseInt(_0x3e704a(0x193))/0xa);if(_0x1371cd===_0x174666)break;else _0x5917cb['push'](_0x5917cb['shift']());}catch(_0x17c37b){_0x5917cb['push'](_0x5917cb['shift']());}}}(a21_0x5ead,0xb41f1));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x1146ca(0x16d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1146ca(0x16f)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x1146ca(0x16a)),{scaleDownHubDeployment}=require(a21_0x1146ca(0x197)),{sendInstrumentationEvent}=require(a21_0x1146ca(0x1ae)),webSocketUtils=require(a21_0x1146ca(0x17f)),{createK8sClient}=require(a21_0x1146ca(0x1b7)),{getCloudProviderObject}=require(a21_0x1146ca(0x1b1));exports[a21_0x1146ca(0x18f)]=a21_0x1146ca(0x160),exports[a21_0x1146ca(0x1ac)]=a21_0x1146ca(0x1a3),exports[a21_0x1146ca(0x161)]=function(_0x3f26d8){const _0x5cc477=a21_0x1146ca,_0x2b970c={};_0x2b970c[_0x5cc477(0x165)]=_0x5cc477(0x180),_0x2b970c['xgISX']='string',_0x2b970c['OfPxQ']=_0x5cc477(0x198),_0x2b970c[_0x5cc477(0x192)]=_0x5cc477(0x15f),_0x2b970c[_0x5cc477(0x164)]=_0x5cc477(0x19d);const _0x174afd=_0x2b970c,_0x20f0c8={};_0x20f0c8[_0x5cc477(0x187)]=_0x174afd[_0x5cc477(0x165)],_0x20f0c8[_0x5cc477(0x191)]=_0x174afd[_0x5cc477(0x195)];const _0xe59234={};_0xe59234[_0x5cc477(0x187)]=_0x174afd['OfPxQ'],_0xe59234[_0x5cc477(0x191)]=_0x174afd[_0x5cc477(0x192)],_0xe59234[_0x5cc477(0x166)]=![];const _0x17f9b4={};return _0x17f9b4[_0x5cc477(0x18e)]=_0x20f0c8,_0x17f9b4[_0x5cc477(0x171)]=_0xe59234,_0x3f26d8[_0x5cc477(0x199)](HELP_HEADER_MESSAGE[_0x5cc477(0x18b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5cc477(0x1a0)](_0x17f9b4)[_0x5cc477(0x19d)](_0x174afd['wpcqM'])[_0x5cc477(0x1a7)];},exports[a21_0x1146ca(0x18d)]=async function(_0xf5000b){const _0x2caaf9=a21_0x1146ca,_0x2c67f9={'lihsz':_0x2caaf9(0x16e),'xYzfe':function(_0xec171a){return _0xec171a();},'HCyiY':_0x2caaf9(0x17d),'TrbaP':function(_0x2facb9,_0x572128,_0x2f9a77,_0x5add10,_0x4df0fa,_0x3b9a4a,_0x3b966f){return _0x2facb9(_0x572128,_0x2f9a77,_0x5add10,_0x4df0fa,_0x3b9a4a,_0x3b966f);},'Lopov':_0x2caaf9(0x188),'jbmJz':_0x2caaf9(0x1b6),'zUuKB':function(_0x54d965,_0x1821e3,_0x2b6e95,_0x221d8e,_0x1c10b4,_0x1eb3a6,_0x241bc4){return _0x54d965(_0x1821e3,_0x2b6e95,_0x221d8e,_0x1c10b4,_0x1eb3a6,_0x241bc4);},'mItJn':_0x2caaf9(0x17e),'fjkau':_0x2caaf9(0x1b9),'vEyxF':'Adding\x20Websocket\x20listeners','dKNwn':function(_0x41fc98,_0x33baba,_0x20a050,_0x2a4d91){return _0x41fc98(_0x33baba,_0x20a050,_0x2a4d91);},'HAIIU':function(_0x3c8bf6,_0x10e6dc,_0x2457e6,_0x25eeeb,_0x32fe22,_0x51c2a7,_0x54a4a3){return _0x3c8bf6(_0x10e6dc,_0x2457e6,_0x25eeeb,_0x32fe22,_0x51c2a7,_0x54a4a3);},'dNcyh':function(_0x4ad4f6,_0x15adec,_0x105161){return _0x4ad4f6(_0x15adec,_0x105161);},'IMnga':_0x2caaf9(0x16b),'uVDJd':function(_0x3ab640,_0x87a44){return _0x3ab640===_0x87a44;},'UNOMR':_0x2caaf9(0x1b0),'JYmWy':function(_0x4ed06f,_0x5256fd,_0x4cc2e1,_0x26a434,_0x9105d9,_0x48643d,_0x20b723){return _0x4ed06f(_0x5256fd,_0x4cc2e1,_0x26a434,_0x9105d9,_0x48643d,_0x20b723);},'WBNSI':_0x2caaf9(0x168),'kdgzv':'invalid-grid-id','EPjia':function(_0x158eea,_0x110f5f,_0x5e1875,_0x2419b7,_0x3ac901,_0x1d786c,_0x40be9c){return _0x158eea(_0x110f5f,_0x5e1875,_0x2419b7,_0x3ac901,_0x1d786c,_0x40be9c);},'grbpd':_0x2caaf9(0x19c)};let _0x20d103;try{!_0xf5000b[_0x2caaf9(0x1af)]&&(logger['error'](_0x2c67f9[_0x2caaf9(0x19e)]),process[_0x2caaf9(0x190)](0x1));!fs[_0x2caaf9(0x1bb)](_0x2c67f9[_0x2caaf9(0x1a2)](getCredentialsPath))&&(logger[_0x2caaf9(0x1a5)](_0x2c67f9[_0x2caaf9(0x1ad)]),await _0x2c67f9[_0x2caaf9(0x174)](sendInstrumentationEvent,_0xf5000b,_0x2c67f9[_0x2caaf9(0x1b4)],messageTypes['ERROR'],_0x2c67f9[_0x2caaf9(0x169)],null,_0xf5000b),process[_0x2caaf9(0x190)](0x1));logger[_0x2caaf9(0x177)](_0x2caaf9(0x1b2)+_0xf5000b['gridId']),await _0x2c67f9[_0x2caaf9(0x162)](sendInstrumentationEvent,_0xf5000b,_0x2c67f9[_0x2caaf9(0x1b4)],messageTypes[_0x2caaf9(0x183)],null,null,_0xf5000b);const _0x4c28d0=JSON[_0x2caaf9(0x182)](fs[_0x2caaf9(0x181)](_0x2c67f9['xYzfe'](getCredentialsPath)));global_registry['bstackUsername']=_0x4c28d0[_0x2caaf9(0x176)][_0x2caaf9(0x172)],global_registry['bstackAccesskey']=_0x4c28d0['Browserstack'][_0x2caaf9(0x15d)];const _0x106618=WS_ENDPOINT[_0x2caaf9(0x1ba)](_0x2c67f9[_0x2caaf9(0x1b8)],_0x4c28d0[_0x2caaf9(0x176)]['username'])['replace'](_0x2c67f9[_0x2caaf9(0x194)],_0x4c28d0[_0x2caaf9(0x176)][_0x2caaf9(0x15d)]),_0x10f629={};_0x10f629[_0x2caaf9(0x1ab)]=ws,_0x10f629[_0x2caaf9(0x179)]=0x36ee80,_0x20d103=new ReconnectingWebSocket(_0x106618,[],_0x10f629),logger['debug'](_0x2c67f9['vEyxF']),webSocketUtils['addListeners'](_0x20d103,_0xf5000b['user'],_0xf5000b['password']);const [_0x42c15c,_0x4924bc]=await _0x2c67f9['dKNwn'](getGridDetails,_0x4c28d0['Browserstack'][_0x2caaf9(0x172)],_0x4c28d0[_0x2caaf9(0x176)][_0x2caaf9(0x15d)],_0xf5000b['gridId']);if(_0x4924bc){const _0x41926b=_0x4924bc[_0x2caaf9(0x177)];global_registry[_0x2caaf9(0x173)]=_0x41926b[_0x2caaf9(0x173)],global_registry[_0x2caaf9(0x19a)]=_0x41926b['region'],global_registry[_0x2caaf9(0x18a)]=_0x41926b[_0x2caaf9(0x18a)];const _0x1153a3=await _0x2c67f9[_0x2caaf9(0x186)](getCloudProviderObject,_0x41926b[_0x2caaf9(0x173)],_0x41926b[_0x2caaf9(0x18a)],_0x41926b[_0x2caaf9(0x17c)],_0x20d103,webSocketUtils,_0xf5000b),[_0x3d359d,_0x255c4f,_0x42134e,_0x1b048d,_0x52d986,_0x15bfd4]=await _0x2c67f9[_0x2caaf9(0x1b3)](createK8sClient,_0x1153a3,_0xf5000b[_0x2caaf9(0x163)]);await _0x2c67f9[_0x2caaf9(0x1b3)](scaleDownHubDeployment,_0x255c4f,_0x41926b[_0x2caaf9(0x17c)]),logger['info'](_0x2c67f9[_0x2caaf9(0x16c)]),process['exit'](0x0);}_0x2c67f9[_0x2caaf9(0x1a8)](_0x42c15c[_0x2caaf9(0x185)],0x191)&&(logger['error'](_0x2c67f9[_0x2caaf9(0x1a9)]),await _0x2c67f9[_0x2caaf9(0x196)](sendInstrumentationEvent,_0xf5000b,_0x2c67f9[_0x2caaf9(0x1b4)],messageTypes[_0x2caaf9(0x1aa)],_0x2c67f9[_0x2caaf9(0x1b5)],null,_0xf5000b),process['exit'](0x1)),_0x2c67f9['uVDJd'](_0x42c15c[_0x2caaf9(0x185)],0x190)&&(logger[_0x2caaf9(0x1a5)](JSON[_0x2caaf9(0x182)](_0x42c15c[_0x2caaf9(0x170)])[_0x2caaf9(0x18c)]),await _0x2c67f9['HAIIU'](sendInstrumentationEvent,_0xf5000b,_0x2c67f9[_0x2caaf9(0x1b4)],messageTypes[_0x2caaf9(0x1aa)],_0x2c67f9['kdgzv'],null,_0xf5000b),process[_0x2caaf9(0x190)](0x1)),logger['error'](_0x2caaf9(0x167)+JSON[_0x2caaf9(0x175)](_0x42c15c)),await _0x2c67f9[_0x2caaf9(0x178)](sendInstrumentationEvent,_0xf5000b,_0x2c67f9[_0x2caaf9(0x1b4)],messageTypes['ERROR'],_0x2c67f9['grbpd'],_0x42c15c,_0xf5000b),process[_0x2caaf9(0x190)](0x1);}catch(_0x4d6659){const _0x20249a=_0x2caaf9(0x184)+_0x4d6659+'\x20\x0a'+JSON[_0x2caaf9(0x175)](_0x4d6659['stack'])+'\x20';logger['error'](_0x20249a),process[_0x2caaf9(0x190)](0x1);}};function a21_0x3b44(_0x5584b2,_0x553b7b){const _0x5eadf4=a21_0x5ead();return a21_0x3b44=function(_0x3b440b,_0x20a52e){_0x3b440b=_0x3b440b-0x15d;let _0x4cd797=_0x5eadf4[_0x3b440b];return _0x4cd797;},a21_0x3b44(_0x5584b2,_0x553b7b);}function a21_0x5ead(){const _0x262dce=['unauthorised','jbmJz','../../utils/utilityMethods','Grid\x20stoppped.','IMnga','reconnecting-websocket','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','../../config/constants','body','skip-tls-cert-verify','username','cloudProvider','TrbaP','stringify','Browserstack','info','EPjia','connectionTimeout','45hreFrX','5601492kLdynW','name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','<UsernamePlaceholder>','../../utils/webSocketUtils','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','readFileSync','parse','INFO','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','statusCode','HAIIU','description','stop-grid-called','1994440lWXuzm','clusterName','stop','message','handler','grid-id','command','exit','type','OWVhP','155840zTeauR','fjkau','xgISX','JYmWy','../../utils/gridComponents','Skip\x20insecure\x20cert\x20verification.','usage','clusterRegion','424930dTKypH','server-error','help','lihsz','8JbRJTO','options','152858zhfRFh','xYzfe','Stop\x20a\x20running\x20Automation\x20grid.','1791CDZCkv','error','682521HLNYfO','argv','uVDJd','UNOMR','ERROR','WebSocket','desc','HCyiY','../../utils/instrumentationUtils','gridId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../cloudproviders/utils','Stopping\x20grid\x20','dNcyh','Lopov','WBNSI','init-not-called','../../utils/createk8sClient','mItJn','<PasswordPlaceholder>','replace','existsSync','password','1771572HBJVFr','boolean','grid','builder','zUuKB','skipTlsCertVerify','wpcqM','XQXMh','default','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a21_0x5ead=function(){return _0x262dce;};return a21_0x5ead();}
@@ -1 +1 @@
1
- const a22_0x52d76b=a22_0x4ac0;(function(_0x1fd9b7,_0x2e432a){const _0x1f25e7=a22_0x4ac0,_0x5969bb=_0x1fd9b7();while(!![]){try{const _0x207419=parseInt(_0x1f25e7(0x240))/0x1+parseInt(_0x1f25e7(0x244))/0x2+parseInt(_0x1f25e7(0x251))/0x3+-parseInt(_0x1f25e7(0x237))/0x4+-parseInt(_0x1f25e7(0x210))/0x5*(parseInt(_0x1f25e7(0x201))/0x6)+parseInt(_0x1f25e7(0x231))/0x7+parseInt(_0x1f25e7(0x20b))/0x8;if(_0x207419===_0x2e432a)break;else _0x5969bb['push'](_0x5969bb['shift']());}catch(_0x15b44d){_0x5969bb['push'](_0x5969bb['shift']());}}}(a22_0x1b6c,0x71c6c),require('dotenv')['config']());function a22_0x4ac0(_0x5659e5,_0x1c8808){const _0x1b6c1b=a22_0x1b6c();return a22_0x4ac0=function(_0x4ac04c,_0x3e04f1){_0x4ac04c=_0x4ac04c-0x1f0;let _0x69c30c=_0x1b6c1b[_0x4ac04c];return _0x69c30c;},a22_0x4ac0(_0x5659e5,_0x1c8808);}let gridURL=a22_0x52d76b(0x221),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x52d76b(0x205);const _env=(process[a22_0x52d76b(0x247)][a22_0x52d76b(0x1f1)]||'prod')[a22_0x52d76b(0x239)]();if(_env==='staging'||_env==='stag')gridURL=a22_0x52d76b(0x22e),bsApiUrl=a22_0x52d76b(0x229),agApiUrl=a22_0x52d76b(0x211);else(_env===a22_0x52d76b(0x225)||_env===a22_0x52d76b(0x23d))&&(gridURL=a22_0x52d76b(0x250),bsApiUrl=a22_0x52d76b(0x208),agApiUrl=a22_0x52d76b(0x24d));exports[a22_0x52d76b(0x224)]=process[a22_0x52d76b(0x247)][a22_0x52d76b(0x224)]||gridURL,exports[a22_0x52d76b(0x252)]=process[a22_0x52d76b(0x247)]['BS_API_URL']||bsApiUrl,exports[a22_0x52d76b(0x220)]=process[a22_0x52d76b(0x247)][a22_0x52d76b(0x220)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x52d76b(0x24c)+this[a22_0x52d76b(0x220)]+a22_0x52d76b(0x249),exports[a22_0x52d76b(0x234)]='credentials',exports['IAM_USER_NAME']=a22_0x52d76b(0x215),exports['DEFAULT_GRID_NAME']=a22_0x52d76b(0x248),exports['AWS']=a22_0x52d76b(0x1fc),exports[a22_0x52d76b(0x1f8)]=a22_0x52d76b(0x1f4),exports[a22_0x52d76b(0x1ff)]=a22_0x52d76b(0x22b),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x52d76b(0x209),exports['TURBOSCALE_DEPLOYMENT']=a22_0x52d76b(0x236),exports[a22_0x52d76b(0x1fe)]='azure',exports[a22_0x52d76b(0x21b)]=a22_0x52d76b(0x20c),exports[a22_0x52d76b(0x20a)]=[this['AWS'],this[a22_0x52d76b(0x1fe)],this[a22_0x52d76b(0x21b)]];const a22_0x8be2={};a22_0x8be2[a22_0x52d76b(0x232)]='browserstack:managedBy',a22_0x8be2[a22_0x52d76b(0x228)]='BrowserStack';const a22_0x2d4fd4={};a22_0x2d4fd4[a22_0x52d76b(0x232)]=a22_0x52d76b(0x227),a22_0x2d4fd4['Value']=a22_0x52d76b(0x1f3);const common_hst_tags_list=[a22_0x8be2,a22_0x2d4fd4];if(process[a22_0x52d76b(0x247)][a22_0x52d76b(0x21c)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x52d76b(0x226)](',');parsedTags['forEach'](_0x5b19b8=>{const _0x57d6dc=a22_0x52d76b,_0xee7cad=_0x5b19b8[_0x57d6dc(0x226)](':'),_0x43a88d={};_0x43a88d['Key']=_0xee7cad[0x0],_0x43a88d[_0x57d6dc(0x228)]=_0xee7cad[0x1],common_hst_tags_list[_0x57d6dc(0x1f9)](_0x43a88d);});}exports[a22_0x52d76b(0x24a)]=common_hst_tags_list;const a22_0x4b557c={};a22_0x4b557c[a22_0x52d76b(0x1f7)]=a22_0x52d76b(0x20e),a22_0x4b557c[a22_0x52d76b(0x227)]='BrowserStack-Automate-TurboScale',exports[a22_0x52d76b(0x213)]=a22_0x4b557c,exports[a22_0x52d76b(0x238)]=[this['AWS']];const a22_0xe95ce9={};a22_0xe95ce9[a22_0x52d76b(0x1f2)]=a22_0x52d76b(0x24b),a22_0xe95ce9[a22_0x52d76b(0x233)]='resourceInfo',a22_0xe95ce9[a22_0x52d76b(0x1f0)]='gridUrl',a22_0xe95ce9[a22_0x52d76b(0x217)]='cliRunStarted',a22_0xe95ce9[a22_0x52d76b(0x21e)]=a22_0x52d76b(0x223),exports[a22_0x52d76b(0x22c)]=a22_0xe95ce9,exports[a22_0x52d76b(0x24f)]={},exports[a22_0x52d76b(0x22a)]=a22_0x52d76b(0x23b);function a22_0x1b6c(){const _0x34c035=['CLUSTER_AUTOSCALER_STACK_NAME','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','5346756aXnxhA','NULL','unknown','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-api.browserstack.com','REGION','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','api-preprod.bsstag.com','BSTACK-ATS-CLUSTER-HUB-HA','ALL_SUPPORTED_CLOUD_PROVIDERS','445248fgZpwC','gcp','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BrowserStack','CLI_ARGS_REGEX','5UBotrs','grid-api-devhst.bsstag.com','root','HST_CLUSTER_TAGS','delete','BrowserStackIAMUser','us-east-1','CLI_RUN_STARTED','error','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','GCP','TURBOSCALE_CUSTOM_TAGS','HELP_HEADER_MESSAGE','CLI_RUN_FINISHED','WARNING','AG_API_URL','grid.browserstack.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','cliRunFinished','DASHBOARD_ENDPOINT','preprod','split','browserstack:service','Value','api-devhst.bsstag.com','LINK_MESSAGE','BSTACK-ATS-CLUSTER-AUTOSCALER','WS_EVENTS','gridProfile','grid-devhst.bsstag.com','INFO','HELP_FOOTER_MESSAGE','1075879nhICFm','Key','RESOURCES','CP_CONFIG_FILE','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','browserstack-turboscale-grid','2807396gMiKlZ','SUPPORTED_CLOUD_PROVIDERS','toLowerCase','info','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','warning','pre-prod','list','connect','866774nbINzp','pre-check','pre_check','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','159182EOcMho','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','[REDACTED]','env','high-scale-grid','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','COMMON_HST_TAGS','log','wss://','grid-api-preprod.bsstag.com','CLUSTER','global_registry','grid-preprod.bsstag.com','2709855FvUtCn','BS_API_URL','GRID_URL','BROWSERSTACK_ENV','LOG','BrowserStack-Automate-TurboScale','BSTACK-ATS-CLUSTER','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','UNKNOWN','browserstack:managedBy','CLUSTER_DEP_STACK_NAME','push','TRIAL_GRID_URL','grid','aws','high-scale-grid-cluster','AZURE'];a22_0x1b6c=function(){return _0x34c035;};return a22_0x1b6c();}const a22_0x5707d0={};a22_0x5707d0[a22_0x52d76b(0x212)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x52d76b(0x22a)],a22_0x5707d0['init']=a22_0x52d76b(0x204)+this[a22_0x52d76b(0x22a)],a22_0x5707d0['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x52d76b(0x22a)],a22_0x5707d0['create']=a22_0x52d76b(0x219)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23e)]={},a22_0x5707d0[a22_0x52d76b(0x214)]=a22_0x52d76b(0x20d)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23f)]=a22_0x52d76b(0x21a)+this[a22_0x52d76b(0x22a)],a22_0x5707d0['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x52d76b(0x22a)],a22_0x5707d0['stop']=a22_0x52d76b(0x200)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x242)]=a22_0x52d76b(0x245)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23e)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23e)][a22_0x52d76b(0x1fb)]=a22_0x52d76b(0x207)+this[a22_0x52d76b(0x22a)],a22_0x5707d0[a22_0x52d76b(0x23e)][a22_0x52d76b(0x22d)]=a22_0x52d76b(0x243)+this[a22_0x52d76b(0x22a)],exports[a22_0x52d76b(0x21d)]=a22_0x5707d0,exports[a22_0x52d76b(0x230)]=a22_0x52d76b(0x1f5);const a22_0x585492={};a22_0x585492['SUCCESS']='success',a22_0x585492['ERROR']=a22_0x52d76b(0x218),a22_0x585492[a22_0x52d76b(0x22f)]=a22_0x52d76b(0x23a),a22_0x585492[a22_0x52d76b(0x21f)]=a22_0x52d76b(0x23c),a22_0x585492[a22_0x52d76b(0x1f6)]=a22_0x52d76b(0x203),a22_0x585492[a22_0x52d76b(0x202)]=null,exports['messageTypes']=a22_0x585492,exports[a22_0x52d76b(0x20f)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x52d76b(0x246);const a22_0x5b2913={};a22_0x5b2913['grid-profile']=a22_0x52d76b(0x222);const a22_0x45a338={};a22_0x45a338[a22_0x52d76b(0x241)]=a22_0x5b2913,exports['MessageDescription']=a22_0x45a338,exports[a22_0x52d76b(0x1fa)]=a22_0x52d76b(0x235);const a22_0x1cffb8={};a22_0x1cffb8[a22_0x52d76b(0x24e)]=a22_0x52d76b(0x1fd),a22_0x1cffb8['CLOUD_PROVIDER']=a22_0x52d76b(0x1fc),a22_0x1cffb8[a22_0x52d76b(0x206)]=a22_0x52d76b(0x216),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x1cffb8;
1
+ const a22_0x4e28fb=a22_0x1228;(function(_0x5ac2ed,_0x57eda3){const _0x58959f=a22_0x1228,_0x47ce99=_0x5ac2ed();while(!![]){try{const _0x134192=parseInt(_0x58959f(0x233))/0x1*(-parseInt(_0x58959f(0x23d))/0x2)+-parseInt(_0x58959f(0x24a))/0x3+parseInt(_0x58959f(0x22b))/0x4*(parseInt(_0x58959f(0x226))/0x5)+parseInt(_0x58959f(0x238))/0x6*(-parseInt(_0x58959f(0x234))/0x7)+-parseInt(_0x58959f(0x1ed))/0x8*(parseInt(_0x58959f(0x24e))/0x9)+-parseInt(_0x58959f(0x1f9))/0xa+parseInt(_0x58959f(0x220))/0xb;if(_0x134192===_0x57eda3)break;else _0x47ce99['push'](_0x47ce99['shift']());}catch(_0xe765cf){_0x47ce99['push'](_0x47ce99['shift']());}}}(a22_0x38ae,0xb7f3c),require(a22_0x4e28fb(0x1f2))[a22_0x4e28fb(0x20c)]());let gridURL=a22_0x4e28fb(0x243),bsApiUrl=a22_0x4e28fb(0x209),agApiUrl=a22_0x4e28fb(0x22d);const _env=(process['env'][a22_0x4e28fb(0x21f)]||'prod')[a22_0x4e28fb(0x20a)]();if(_env===a22_0x4e28fb(0x22e)||_env==='stag')gridURL=a22_0x4e28fb(0x203),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x4e28fb(0x244))&&(gridURL=a22_0x4e28fb(0x1f5),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x4e28fb(0x221));exports['DASHBOARD_ENDPOINT']=process['env'][a22_0x4e28fb(0x219)]||gridURL,exports['BS_API_URL']=process[a22_0x4e28fb(0x202)][a22_0x4e28fb(0x1fb)]||bsApiUrl,exports[a22_0x4e28fb(0x248)]=process[a22_0x4e28fb(0x202)]['AG_API_URL']||agApiUrl,exports[a22_0x4e28fb(0x222)]='wss://'+this[a22_0x4e28fb(0x248)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x4e28fb(0x212)]=a22_0x4e28fb(0x20b),exports['IAM_USER_NAME']='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']=a22_0x4e28fb(0x1fc),exports[a22_0x4e28fb(0x23f)]=a22_0x4e28fb(0x1f7),exports[a22_0x4e28fb(0x224)]='BSTACK-ATS-CLUSTER',exports[a22_0x4e28fb(0x245)]=a22_0x4e28fb(0x246),exports[a22_0x4e28fb(0x1f0)]=a22_0x4e28fb(0x213),exports['TURBOSCALE_DEPLOYMENT']=a22_0x4e28fb(0x23e),exports[a22_0x4e28fb(0x249)]=a22_0x4e28fb(0x23a),exports[a22_0x4e28fb(0x240)]=a22_0x4e28fb(0x230),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x4e28fb(0x249)],this[a22_0x4e28fb(0x240)]];const a22_0x67fb57={};a22_0x67fb57[a22_0x4e28fb(0x1fd)]=a22_0x4e28fb(0x229),a22_0x67fb57[a22_0x4e28fb(0x22a)]=a22_0x4e28fb(0x217);const a22_0x5813b1={};a22_0x5813b1[a22_0x4e28fb(0x1fd)]=a22_0x4e28fb(0x21c),a22_0x5813b1['Value']='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x67fb57,a22_0x5813b1];if(process[a22_0x4e28fb(0x202)][a22_0x4e28fb(0x1f3)]){const parsedTags=process[a22_0x4e28fb(0x202)][a22_0x4e28fb(0x1f3)][a22_0x4e28fb(0x1f1)](',');parsedTags[a22_0x4e28fb(0x1ec)](_0x45b08b=>{const _0x28b873=a22_0x4e28fb,_0x590c37=_0x45b08b[_0x28b873(0x1f1)](':'),_0x127e82={};_0x127e82[_0x28b873(0x1fd)]=_0x590c37[0x0],_0x127e82['Value']=_0x590c37[0x1],common_hst_tags_list['push'](_0x127e82);});}function a22_0x38ae(){const _0x8aa4a4=['grid-api-preprod.bsstag.com','WS_ENDPOINT','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLUSTER_DEP_STACK_NAME','HELP_FOOTER_MESSAGE','1955vmVezX','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','success','browserstack:managedBy','Value','4064ThCZAU','WS_EVENTS','grid-api.browserstack.com','staging','info','gcp','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','NULL','78dvmdQn','28nmrvlh','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','gridProfile','log','268152wsmbas','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','azure','configure','SUPPORTED_CLOUD_PROVIDERS','12014eRAzuT','browserstack-turboscale-grid','AWS','GCP','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','WARNING','grid.browserstack.com','pre-prod','CLUSTER_AUTOSCALER_STACK_NAME','BSTACK-ATS-CLUSTER-AUTOSCALER','UNKNOWN','AG_API_URL','AZURE','224715IkiBDV','REGION','HST_CLUSTER_TAGS','error','67941UDNVVd','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','MessageDescription','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','HELP_HEADER_MESSAGE','forEach','96kAWxSp','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','REDACTED','CLUSTER_HUB_HA_STACK_NAME','split','dotenv','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','grid-preprod.bsstag.com','CLUSTER','aws','ERROR','10145160LQnIZo','cliRunStarted','BS_API_URL','high-scale-grid','Key','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','LINK_MESSAGE','delete','pre_check','env','grid-devhst.bsstag.com','INFO','init','COMMON_HST_TAGS','grid','start','api.browserstack.com','toLowerCase','credentials','config','root','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','LOG','CLOUD_PROVIDER','list','CP_CONFIG_FILE','BSTACK-ATS-CLUSTER-HUB-HA','CLI_RUN_FINISHED','gridUrl','BrowserStack-Automate-TurboScale','BrowserStack','connect','DASHBOARD_ENDPOINT','create','unknown','browserstack:service','[REDACTED]','grid-profile','BROWSERSTACK_ENV','24018885jdnwDZ'];a22_0x38ae=function(){return _0x8aa4a4;};return a22_0x38ae();}exports[a22_0x4e28fb(0x206)]=common_hst_tags_list;const a22_0x74c4ba={};a22_0x74c4ba[a22_0x4e28fb(0x229)]=a22_0x4e28fb(0x217),a22_0x74c4ba[a22_0x4e28fb(0x21c)]=a22_0x4e28fb(0x216),exports[a22_0x4e28fb(0x24c)]=a22_0x74c4ba,exports[a22_0x4e28fb(0x23c)]=[this[a22_0x4e28fb(0x23f)]];const a22_0xe525c7={};a22_0xe525c7[a22_0x4e28fb(0x20f)]=a22_0x4e28fb(0x237),a22_0xe525c7['RESOURCES']='resourceInfo',a22_0xe525c7['GRID_URL']=a22_0x4e28fb(0x215),a22_0xe525c7['CLI_RUN_STARTED']=a22_0x4e28fb(0x1fa),a22_0xe525c7[a22_0x4e28fb(0x214)]='cliRunFinished',exports[a22_0x4e28fb(0x22c)]=a22_0xe525c7,exports['global_registry']={},exports[a22_0x4e28fb(0x1ff)]=a22_0x4e28fb(0x223);const a22_0x461d47={};a22_0x461d47[a22_0x4e28fb(0x20d)]=a22_0x4e28fb(0x227)+this[a22_0x4e28fb(0x1ff)],a22_0x461d47[a22_0x4e28fb(0x205)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x4e28fb(0x1ff)],a22_0x461d47[a22_0x4e28fb(0x23b)]=a22_0x4e28fb(0x1ee)+this[a22_0x4e28fb(0x1ff)],a22_0x461d47[a22_0x4e28fb(0x21a)]=a22_0x4e28fb(0x239)+this[a22_0x4e28fb(0x1ff)],a22_0x461d47[a22_0x4e28fb(0x211)]={},a22_0x461d47[a22_0x4e28fb(0x200)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x461d47[a22_0x4e28fb(0x218)]=a22_0x4e28fb(0x235)+this[a22_0x4e28fb(0x1ff)],a22_0x461d47[a22_0x4e28fb(0x208)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x461d47['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x4e28fb(0x1ff)],a22_0x461d47[a22_0x4e28fb(0x201)]=a22_0x4e28fb(0x24f)+this[a22_0x4e28fb(0x1ff)],a22_0x461d47[a22_0x4e28fb(0x211)][a22_0x4e28fb(0x20d)]=a22_0x4e28fb(0x231)+this[a22_0x4e28fb(0x1ff)],a22_0x461d47[a22_0x4e28fb(0x211)][a22_0x4e28fb(0x207)]=a22_0x4e28fb(0x1f4)+this[a22_0x4e28fb(0x1ff)],a22_0x461d47[a22_0x4e28fb(0x211)][a22_0x4e28fb(0x236)]=a22_0x4e28fb(0x20e)+this[a22_0x4e28fb(0x1ff)],exports[a22_0x4e28fb(0x1eb)]=a22_0x461d47,exports[a22_0x4e28fb(0x225)]=a22_0x4e28fb(0x1fe);const a22_0x4b55c2={};a22_0x4b55c2['SUCCESS']=a22_0x4e28fb(0x228),a22_0x4b55c2[a22_0x4e28fb(0x1f8)]=a22_0x4e28fb(0x24d),a22_0x4b55c2[a22_0x4e28fb(0x204)]=a22_0x4e28fb(0x22f),a22_0x4b55c2[a22_0x4e28fb(0x242)]='warning',a22_0x4b55c2[a22_0x4e28fb(0x247)]=a22_0x4e28fb(0x21b),a22_0x4b55c2[a22_0x4e28fb(0x232)]=null,exports['messageTypes']=a22_0x4b55c2,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x4e28fb(0x1ef)]=a22_0x4e28fb(0x21d);const a22_0x491682={};a22_0x491682[a22_0x4e28fb(0x21e)]=a22_0x4e28fb(0x241);const a22_0xa2d354={};a22_0xa2d354['pre-check']=a22_0x491682,exports[a22_0x4e28fb(0x250)]=a22_0xa2d354,exports['TRIAL_GRID_URL']=a22_0x4e28fb(0x251);function a22_0x1228(_0x1f5d5f,_0x416c1a){const _0x38ae75=a22_0x38ae();return a22_0x1228=function(_0x122817,_0x20df3f){_0x122817=_0x122817-0x1eb;let _0x28f906=_0x38ae75[_0x122817];return _0x28f906;},a22_0x1228(_0x1f5d5f,_0x416c1a);}const a22_0x1ba6e7={};a22_0x1ba6e7[a22_0x4e28fb(0x1f6)]='high-scale-grid-cluster',a22_0x1ba6e7[a22_0x4e28fb(0x210)]=a22_0x4e28fb(0x1f7),a22_0x1ba6e7[a22_0x4e28fb(0x24b)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x1ba6e7;
@@ -1 +1 @@
1
- const a23_0x461281=a23_0x10b8;(function(_0x1dff66,_0x1b8bb2){const _0x4cd2cb=a23_0x10b8,_0x117c26=_0x1dff66();while(!![]){try{const _0x35f93c=parseInt(_0x4cd2cb(0xde))/0x1*(-parseInt(_0x4cd2cb(0xe8))/0x2)+parseInt(_0x4cd2cb(0xd4))/0x3+-parseInt(_0x4cd2cb(0xe0))/0x4*(parseInt(_0x4cd2cb(0xd2))/0x5)+parseInt(_0x4cd2cb(0xcb))/0x6*(parseInt(_0x4cd2cb(0xd3))/0x7)+-parseInt(_0x4cd2cb(0xdd))/0x8+parseInt(_0x4cd2cb(0xe5))/0x9+parseInt(_0x4cd2cb(0xe7))/0xa;if(_0x35f93c===_0x1b8bb2)break;else _0x117c26['push'](_0x117c26['shift']());}catch(_0x275a10){_0x117c26['push'](_0x117c26['shift']());}}}(a23_0x2a2c,0x71d5d));const winston=require(a23_0x461281(0xd8)),fs=require('fs'),path=require(a23_0x461281(0xd6)),logDir='log';!fs[a23_0x461281(0xd0)](logDir)&&fs['mkdirSync'](logDir);function a23_0x10b8(_0x13c37b,_0xcca353){const _0x2a2cc7=a23_0x2a2c();return a23_0x10b8=function(_0x10b86d,_0x1d9f61){_0x10b86d=_0x10b86d-0xca;let _0x26cc2f=_0x2a2cc7[_0x10b86d];return _0x26cc2f;},a23_0x10b8(_0x13c37b,_0xcca353);}const a23_0xf0af71={};a23_0xf0af71['format']='YYYY-MM-DD\x20HH:mm:ss';const a23_0x5926b1={};a23_0x5926b1['level']=!![];const a23_0x8e83f={};a23_0x8e83f[a23_0x461281(0xd5)]=a23_0x461281(0xd7),exports[a23_0x461281(0xcf)]=new winston[(a23_0x461281(0xe3))]({'format':winston[a23_0x461281(0xca)][a23_0x461281(0xe2)](winston[a23_0x461281(0xca)][a23_0x461281(0xdf)](a23_0xf0af71),winston[a23_0x461281(0xca)][a23_0x461281(0xdb)](a23_0x5926b1),winston[a23_0x461281(0xca)][a23_0x461281(0xce)](_0x3fee68=>_0x3fee68[a23_0x461281(0xdf)]+a23_0x461281(0xd9)+_0x3fee68[a23_0x461281(0xd1)]+':\x20'+_0x3fee68['message'])),'transports':[new winston['transports'][(a23_0x461281(0xcc))](a23_0x8e83f),new winston[(a23_0x461281(0xe6))][(a23_0x461281(0xe4))]({'filename':path[a23_0x461281(0xdc)](logDir,a23_0x461281(0xe1)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston['transports']['File']({'filename':path['join'](logDir,a23_0x461281(0xda)),'level':'debug'})]};function a23_0x2a2c(){const _0x2afdc7=['\x20-\x20','usage.log','colorize','join','799208iTKmva','18gHthRi','timestamp','78476NROvsu','events.log','combine','createLogger','File','2890845RfzRhk','transports','1436170xosIpr','57004OUeDbQ','format','72XEgNXL','Console','fileLogger','printf','logger','existsSync','level','165KZORAS','370132TayUAL','1881897nQttcI','name','path','console.info','winston'];a23_0x2a2c=function(){return _0x2afdc7;};return a23_0x2a2c();}exports[a23_0x461281(0xcd)]=new winston[(a23_0x461281(0xe3))](winstonFileLoggerParams);
1
+ function a23_0x3f60(){const _0x125955=['11740572guQONi','name','YYYY-MM-DD\x20HH:mm:ss','4jzFIwN','7915418oEDQpB','transports','3276830UkOEjp','createLogger','log','console.info','Console','17202vNsMcN','File','mkdirSync','timestamp','1769928ncTVAT','453WyFWrz','colorize','printf','events.log','debug','combine','level','31300MNLiqF','path','existsSync','usage.log','381444uEcvOb','winston','format'];a23_0x3f60=function(){return _0x125955;};return a23_0x3f60();}const a23_0x3f4e37=a23_0x3755;(function(_0x3b6a0a,_0x38e6e9){const _0x465117=a23_0x3755,_0x51467a=_0x3b6a0a();while(!![]){try{const _0x32f430=parseInt(_0x465117(0x1db))/0x1+parseInt(_0x465117(0x1ed))/0x2*(-parseInt(_0x465117(0x1d4))/0x3)+-parseInt(_0x465117(0x1e5))/0x4*(parseInt(_0x465117(0x1e8))/0x5)+parseInt(_0x465117(0x1df))/0x6+parseInt(_0x465117(0x1e6))/0x7+parseInt(_0x465117(0x1d3))/0x8+parseInt(_0x465117(0x1e2))/0x9;if(_0x32f430===_0x38e6e9)break;else _0x51467a['push'](_0x51467a['shift']());}catch(_0x5dc2b8){_0x51467a['push'](_0x51467a['shift']());}}}(a23_0x3f60,0xc2a60));function a23_0x3755(_0x37d87c,_0x346b09){const _0x3f602a=a23_0x3f60();return a23_0x3755=function(_0x375590,_0x5a825e){_0x375590=_0x375590-0x1d0;let _0x446297=_0x3f602a[_0x375590];return _0x446297;},a23_0x3755(_0x37d87c,_0x346b09);}const winston=require(a23_0x3f4e37(0x1e0)),fs=require('fs'),path=require(a23_0x3f4e37(0x1dc)),logDir=a23_0x3f4e37(0x1ea);!fs[a23_0x3f4e37(0x1dd)](logDir)&&fs[a23_0x3f4e37(0x1d1)](logDir);const a23_0x487136={};a23_0x487136[a23_0x3f4e37(0x1e1)]=a23_0x3f4e37(0x1e4);const a23_0x4d3803={};a23_0x4d3803['level']=!![];const a23_0x203df1={};a23_0x203df1[a23_0x3f4e37(0x1e3)]=a23_0x3f4e37(0x1eb),exports['logger']=new winston['createLogger']({'format':winston[a23_0x3f4e37(0x1e1)][a23_0x3f4e37(0x1d9)](winston[a23_0x3f4e37(0x1e1)][a23_0x3f4e37(0x1d2)](a23_0x487136),winston[a23_0x3f4e37(0x1e1)][a23_0x3f4e37(0x1d5)](a23_0x4d3803),winston[a23_0x3f4e37(0x1e1)][a23_0x3f4e37(0x1d6)](_0x158344=>_0x158344[a23_0x3f4e37(0x1d2)]+'\x20-\x20'+_0x158344[a23_0x3f4e37(0x1da)]+':\x20'+_0x158344['message'])),'transports':[new winston['transports'][(a23_0x3f4e37(0x1ec))](a23_0x203df1),new winston['transports'][(a23_0x3f4e37(0x1d0))]({'filename':path['join'](logDir,a23_0x3f4e37(0x1d7)),'level':a23_0x3f4e37(0x1d8)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3f4e37(0x1e7))][(a23_0x3f4e37(0x1d0))]({'filename':path['join'](logDir,a23_0x3f4e37(0x1de)),'level':a23_0x3f4e37(0x1d8)})]};exports['fileLogger']=new winston[(a23_0x3f4e37(0x1e9))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x1d1efb=a24_0x4079;(function(_0x499dc4,_0x12fbcf){const _0x4da71d=a24_0x4079,_0x27cd9f=_0x499dc4();while(!![]){try{const _0x476158=-parseInt(_0x4da71d(0xd1))/0x1+parseInt(_0x4da71d(0xce))/0x2+parseInt(_0x4da71d(0xcc))/0x3+parseInt(_0x4da71d(0xd5))/0x4*(-parseInt(_0x4da71d(0xd9))/0x5)+parseInt(_0x4da71d(0xcd))/0x6+-parseInt(_0x4da71d(0xca))/0x7*(parseInt(_0x4da71d(0xc8))/0x8)+parseInt(_0x4da71d(0xd0))/0x9;if(_0x476158===_0x12fbcf)break;else _0x27cd9f['push'](_0x27cd9f['shift']());}catch(_0x1d129a){_0x27cd9f['push'](_0x27cd9f['shift']());}}}(a24_0x14cb,0x1a68c));function a24_0x4079(_0x32c64b,_0x9822c7){const _0x14cb99=a24_0x14cb();return a24_0x4079=function(_0x407921,_0x556a91){_0x407921=_0x407921-0xc8;let _0x5d539f=_0x14cb99[_0x407921];return _0x5d539f;},a24_0x4079(_0x32c64b,_0x9822c7);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x14cb(){const _0x561480=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','52ecKCHP','commands','root','demandCommand','51685xaJElN','1477576BJphkV','exports','7GShGuk','epilogue','146625rPSxWk','115224VjtyxP','408016ecoZLl','yTxsT','2762388cbdsTZ','151769uYmooD','usage','help'];a24_0x14cb=function(){return _0x561480;};return a24_0x14cb();}process['env'][a24_0x1d1efb(0xd4)]=0x1;function run(_0x3865ee){const _0x4d7f2c=a24_0x1d1efb,_0x26e32d={};_0x26e32d[_0x4d7f2c(0xcf)]=_0x4d7f2c(0xd6),_0x26e32d['HVQoW']=_0x4d7f2c(0xd3);const _0x44e92e=_0x26e32d;_0x3865ee[_0x4d7f2c(0xd2)](HELP_HEADER_MESSAGE[_0x4d7f2c(0xd7)])['commandDir'](_0x44e92e[_0x4d7f2c(0xcf)])[_0x4d7f2c(0xd8)]()['help'](_0x44e92e['HVQoW'])[_0x4d7f2c(0xcb)](HELP_FOOTER_MESSAGE);}module[a24_0x1d1efb(0xc9)]=run;
2
+ 'use strict';const a24_0x4a9e9a=a24_0x22a0;(function(_0x5f538c,_0x3840c9){const _0x541376=a24_0x22a0,_0x48e482=_0x5f538c();while(!![]){try{const _0x162019=parseInt(_0x541376(0x147))/0x1+-parseInt(_0x541376(0x145))/0x2+-parseInt(_0x541376(0x151))/0x3*(-parseInt(_0x541376(0x14a))/0x4)+parseInt(_0x541376(0x144))/0x5*(-parseInt(_0x541376(0x14c))/0x6)+parseInt(_0x541376(0x14e))/0x7*(-parseInt(_0x541376(0x148))/0x8)+-parseInt(_0x541376(0x141))/0x9*(parseInt(_0x541376(0x149))/0xa)+parseInt(_0x541376(0x142))/0xb;if(_0x162019===_0x3840c9)break;else _0x48e482['push'](_0x48e482['shift']());}catch(_0x1b1f73){_0x48e482['push'](_0x48e482['shift']());}}}(a24_0x28d7,0xd43b2));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x4a9e9a(0x14f));process[a24_0x4a9e9a(0x152)][a24_0x4a9e9a(0x150)]=0x1;function run(_0x15f302){const _0x1ced1f=a24_0x4a9e9a,_0x538263={};_0x538263['RCQNm']=_0x1ced1f(0x146),_0x538263[_0x1ced1f(0x140)]='help';const _0x5e28df=_0x538263;_0x15f302[_0x1ced1f(0x143)](HELP_HEADER_MESSAGE[_0x1ced1f(0x153)])['commandDir'](_0x5e28df[_0x1ced1f(0x14b)])['demandCommand']()[_0x1ced1f(0x154)](_0x5e28df[_0x1ced1f(0x140)])[_0x1ced1f(0x14d)](HELP_FOOTER_MESSAGE);}function a24_0x28d7(){const _0x3cd7b1=['RCQNm','6cWLLLL','epilogue','5528999tIqGfr','./config/constants','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1101jvSlYc','env','root','help','asjPT','9efRYgu','16354338xpCNOu','usage','1787855ltJsTR','651390dYCinP','commands','1047041RmebEC','8YKbVKO','17232360sjGNDe','16696ZDZrOm'];a24_0x28d7=function(){return _0x3cd7b1;};return a24_0x28d7();}function a24_0x22a0(_0x2241e0,_0x2dea2b){const _0x28d7cf=a24_0x28d7();return a24_0x22a0=function(_0x22a0dd,_0x4ff8e5){_0x22a0dd=_0x22a0dd-0x140;let _0x73f661=_0x28d7cf[_0x22a0dd];return _0x73f661;},a24_0x22a0(_0x2241e0,_0x2dea2b);}module['exports']=run;