browserstack-node-sdk 1.42.4 → 1.42.6

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 -1
  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 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/playwright-helper.js +1 -1
  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_0x5ce3(_0x33a3d8,_0x3ac229){const _0x2616a3=a15_0x2616();return a15_0x5ce3=function(_0x5ce3d6,_0x3cccce){_0x5ce3d6=_0x5ce3d6-0xcd;let _0x55bfc6=_0x2616a3[_0x5ce3d6];return _0x55bfc6;},a15_0x5ce3(_0x33a3d8,_0x3ac229);}const a15_0x4c3adf=a15_0x5ce3;(function(_0x58f608,_0x42c7df){const _0x287f0f=a15_0x5ce3,_0x38a6f1=_0x58f608();while(!![]){try{const _0x55a1e3=parseInt(_0x287f0f(0x115))/0x1+parseInt(_0x287f0f(0x123))/0x2*(-parseInt(_0x287f0f(0xfe))/0x3)+-parseInt(_0x287f0f(0x11c))/0x4+parseInt(_0x287f0f(0x107))/0x5*(parseInt(_0x287f0f(0x10e))/0x6)+parseInt(_0x287f0f(0xfb))/0x7*(-parseInt(_0x287f0f(0xed))/0x8)+parseInt(_0x287f0f(0xec))/0x9*(parseInt(_0x287f0f(0xeb))/0xa)+parseInt(_0x287f0f(0xcf))/0xb*(parseInt(_0x287f0f(0x10a))/0xc);if(_0x55a1e3===_0x42c7df)break;else _0x38a6f1['push'](_0x38a6f1['shift']());}catch(_0x533bc2){_0x38a6f1['push'](_0x38a6f1['shift']());}}}(a15_0x2616,0xf2555));const fs=require('fs'),got=require(a15_0x4c3adf(0x106)),{table}=require(a15_0x4c3adf(0xce)),{v4:uuidv4}=require(a15_0x4c3adf(0x122)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4c3adf(0xd8)),{getCredentialsPath,getAuthHeader}=require(a15_0x4c3adf(0xf5)),{sendInstrumentationEvent}=require(a15_0x4c3adf(0xdb));exports['command']=a15_0x4c3adf(0xe7),exports[a15_0x4c3adf(0xf9)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x1575d8){const _0x464e38=a15_0x4c3adf,_0x3d97c7={};_0x3d97c7[_0x464e38(0x101)]=_0x464e38(0x10d),_0x3d97c7[_0x464e38(0x114)]=_0x464e38(0x120),_0x3d97c7['vkVNr']='help';const _0x49f2b8=_0x3d97c7,_0x576481={};_0x576481[_0x464e38(0xe3)]=_0x49f2b8[_0x464e38(0x101)],_0x576481[_0x464e38(0x118)]=_0x49f2b8[_0x464e38(0x114)];const _0x4e9b0a={};return _0x4e9b0a['all-grids']=_0x576481,_0x1575d8[_0x464e38(0xd5)](HELP_HEADER_MESSAGE['list']['grid'])[_0x464e38(0x116)](HELP_FOOTER_MESSAGE)[_0x464e38(0xef)](_0x4e9b0a)[_0x464e38(0xe8)](_0x49f2b8[_0x464e38(0x10f)])[_0x464e38(0xd7)];},exports['handler']=async function(_0x45424e){const _0x3a7424=a15_0x4c3adf,_0x28717b={'tyvdM':function(_0x5aad82){return _0x5aad82();},'VDkIu':function(_0x4823fa){return _0x4823fa();},'vUpNH':_0x3a7424(0xe4),'vmHPE':function(_0x1538f4,_0x26f20d,_0x2a4d65,_0x74b1e3,_0x526e4e,_0x13062d,_0x548ffc){return _0x1538f4(_0x26f20d,_0x2a4d65,_0x74b1e3,_0x526e4e,_0x13062d,_0x548ffc);},'TwuZR':_0x3a7424(0xf2),'LyviV':_0x3a7424(0xf7),'bJVSY':_0x3a7424(0xdc),'nbZhU':function(_0x562a9f,_0x14f953,_0x5d584d){return _0x562a9f(_0x14f953,_0x5d584d);},'bnSkJ':function(_0xb6a605,_0x40b91c,_0xc49da9,_0x5c247c,_0x19f636,_0xf93705,_0x48f68e){return _0xb6a605(_0x40b91c,_0xc49da9,_0x5c247c,_0x19f636,_0xf93705,_0x48f68e);},'SxqIS':function(_0x2622d2,_0x407cf8){return _0x2622d2!==_0x407cf8;},'xWogE':function(_0x21a990,_0x5215fc){return _0x21a990===_0x5215fc;},'bTpqW':_0x3a7424(0xfc),'pmPBw':_0x3a7424(0x105),'zaYkV':'grid-name','RQhsW':_0x3a7424(0xd0),'sEOmA':_0x3a7424(0xf4),'XTPXi':_0x3a7424(0x121),'ObZdh':_0x3a7424(0xcd),'rGSmf':function(_0x50dbdc,_0x4b3f3c){return _0x50dbdc(_0x4b3f3c);},'aGgwk':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','jqDjc':function(_0x3fb658,_0x32559e,_0x191062,_0x291507,_0x3b8f04,_0x3a3cd4,_0xcd4ec9){return _0x3fb658(_0x32559e,_0x191062,_0x291507,_0x3b8f04,_0x3a3cd4,_0xcd4ec9);},'tjXLZ':_0x3a7424(0xea),'czdHT':_0x3a7424(0x102),'dvVIB':function(_0x25a2de,_0x4e6e3d,_0x42f1ac,_0x47df0e,_0x288ce0,_0x168530,_0xe63414){return _0x25a2de(_0x4e6e3d,_0x42f1ac,_0x47df0e,_0x288ce0,_0x168530,_0xe63414);},'wldEz':_0x3a7424(0x11e)};try{global_registry[_0x3a7424(0x111)]=_0x28717b[_0x3a7424(0x11a)](uuidv4);!fs[_0x3a7424(0xe9)](_0x28717b[_0x3a7424(0x103)](getCredentialsPath))&&(console[_0x3a7424(0xff)](_0x28717b[_0x3a7424(0x110)]),await _0x28717b['vmHPE'](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes['ERROR'],_0x28717b['LyviV'],null,_0x45424e),process['exit'](0x1));const _0x4d5aea=JSON[_0x3a7424(0xd9)](fs['readFileSync'](_0x28717b[_0x3a7424(0x103)](getCredentialsPath)));let _0xee6888=_0x3a7424(0xe5)+AG_API_URL+_0x3a7424(0xe0);_0x45424e[_0x3a7424(0xfd)]&&(_0xee6888=_0x3a7424(0xe5)+AG_API_URL+_0x3a7424(0x11b));const _0x398574={'method':_0x28717b[_0x3a7424(0xf0)],'headers':_0x28717b[_0x3a7424(0xf1)](getAuthHeader,_0x4d5aea[_0x3a7424(0xf6)][_0x3a7424(0xde)],_0x4d5aea['Browserstack'][_0x3a7424(0xdd)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4d5aea[_0x3a7424(0xf6)][_0x3a7424(0xde)],global_registry['bstackAccesskey']=_0x4d5aea[_0x3a7424(0xf6)]['password'],_0x28717b[_0x3a7424(0xf8)](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes['INFO'],null,null,_0x45424e);const _0x9788bb=await _0x28717b[_0x3a7424(0xf1)](got,_0xee6888,_0x398574);if(_0x28717b[_0x3a7424(0x10b)](_0x9788bb,null)&&_0x28717b['SxqIS'](_0x9788bb,undefined)&&_0x28717b[_0x3a7424(0x108)](_0x9788bb['statusCode'],0xc8)){const _0x58b943=JSON[_0x3a7424(0xd9)](_0x9788bb[_0x3a7424(0xda)]);console[_0x3a7424(0xfa)](_0x28717b['bTpqW']);const _0x533086=[];_0x533086[_0x3a7424(0xd6)]([_0x28717b[_0x3a7424(0xd3)],_0x28717b[_0x3a7424(0x104)],_0x28717b[_0x3a7424(0xe6)],_0x28717b[_0x3a7424(0xdf)],_0x28717b[_0x3a7424(0x100)],_0x28717b[_0x3a7424(0x119)]]),_0x58b943[_0x3a7424(0x10c)](_0x140609=>{const _0xa86ea1=_0x3a7424;_0x533086[_0xa86ea1(0xd6)]([_0x140609['id'],_0x140609['name'],_0x140609['status'],_0x140609[_0xa86ea1(0xf4)],_0x140609[_0xa86ea1(0x121)],_0x140609[_0xa86ea1(0x11f)]]);}),console[_0x3a7424(0xfa)](_0x28717b['rGSmf'](table,_0x533086)),process[_0x3a7424(0xd1)](0x0);}_0x28717b[_0x3a7424(0x108)](_0x9788bb[_0x3a7424(0xee)],0x191)&&(console[_0x3a7424(0xff)](_0x28717b[_0x3a7424(0xe1)]),await _0x28717b['jqDjc'](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes[_0x3a7424(0xd2)],_0x28717b['tjXLZ'],null,_0x45424e),process[_0x3a7424(0xd1)](0x1)),console['error'](_0x3a7424(0x112)+JSON[_0x3a7424(0x11d)](_0x9788bb)),await _0x28717b[_0x3a7424(0xe2)](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes[_0x3a7424(0xd2)],_0x28717b[_0x3a7424(0xf3)],_0x9788bb,_0x45424e),process['exit'](0x1);}catch(_0x4e518c){console['error'](_0x3a7424(0x109)+_0x4e518c[_0x3a7424(0xd4)]),await _0x28717b[_0x3a7424(0x113)](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes[_0x3a7424(0xd2)],_0x28717b['wldEz'],_0x4e518c,_0x45424e),process[_0x3a7424(0xd1)](0x1);}};function a15_0x2616(){const _0x171412=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','https://','RQhsW','grids','help','existsSync','unauthorised','10qVeasv','5129235tqLrQn','5223080BizHwE','statusCode','options','bJVSY','nbZhU','list-grids-called','czdHT','running','../../utils/utilityMethods','Browserstack','init-not-called','bnSkJ','desc','log','7pONBij','\x0aFound\x20the\x20following\x20grids:\x0a','allGrids','145239Robqrq','error','XTPXi','CGbTU','server-error','VDkIu','zaYkV','grid-id','got','230DaxUMK','xWogE','Failed\x20to\x20list\x20resources!\x20Error:\x20','6515676wKVUaL','SxqIS','forEach','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','208158TDoBiJ','vkVNr','vUpNH','requestId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','dvVIB','QuWRs','334154jwzeth','epilogue','TwuZR','type','ObZdh','tyvdM','/packages/cli/get-all-grids','1135756FYshhy','stringify','unknown-error','clusterName','boolean','queued','uuid','46ywVQzS','cluster-name','table','11vyClLt','status','exit','ERROR','pmPBw','stack','usage','push','argv','../../config/constants','parse','body','../../utils/instrumentationUtils','GET','password','username','sEOmA','/packages/cli/get-grids','aGgwk','vmHPE','description'];a15_0x2616=function(){return _0x171412;};return a15_0x2616();}
1
+ function a15_0x294a(){const _0xcc1cab=['../../utils/utilityMethods','error','bstackAccesskey','MWkRs','4781344KfWGbf','boolean','uxkvG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','yhiHl','forEach','readFileSync','lcELE','unknown-error','../../utils/instrumentationUtils','stack','bstackUsername','statusCode','JIetT','server-error','push','running','ERROR','list-grids-called','grid-name','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','CSoRb','queued','help','pKpCl','body','parse','log','grid','69932zLPhXp','options','table','Browserstack','/packages/cli/get-grids','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','../../config/constants','IpkyN','1411270rACwjN','2871470msueCK','command','allGrids','pNLOY','all-grids','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unauthorised','description','jJutx','ULbHw','grids','OnNmw','got','VFDCm','UMgDc','wASZe','handler','4lwCEdr','name','tYzIB','14gAZnZt','epilogue','Failed\x20to\x20list\x20resources!\x20Error:\x20','780438zEjSFV','existsSync','desc','username','1559679UpAqwE','SWkVx','GET','WSmIl','cluster-name','12466485Naacsu','DdSYE','type','QjrxC','usage','exit','argv','status'];a15_0x294a=function(){return _0xcc1cab;};return a15_0x294a();}const a15_0x282610=a15_0x2a65;(function(_0x3e0da6,_0x11d444){const _0x42ae1f=a15_0x2a65,_0x413543=_0x3e0da6();while(!![]){try{const _0x501df5=-parseInt(_0x42ae1f(0xad))/0x1*(parseInt(_0x42ae1f(0xcb))/0x2)+parseInt(_0x42ae1f(0xd2))/0x3*(-parseInt(_0x42ae1f(0xc8))/0x4)+-parseInt(_0x42ae1f(0xb6))/0x5+parseInt(_0x42ae1f(0xce))/0x6+-parseInt(_0x42ae1f(0xb5))/0x7+parseInt(_0x42ae1f(0x8f))/0x8+parseInt(_0x42ae1f(0x83))/0x9;if(_0x501df5===_0x11d444)break;else _0x413543['push'](_0x413543['shift']());}catch(_0x4aaf26){_0x413543['push'](_0x413543['shift']());}}}(a15_0x294a,0x4ffa1));function a15_0x2a65(_0xb3d3dd,_0x2de708){const _0x294a25=a15_0x294a();return a15_0x2a65=function(_0x2a659e,_0x5594d2){_0x2a659e=_0x2a659e-0x82;let _0x2ae16a=_0x294a25[_0x2a659e];return _0x2ae16a;},a15_0x2a65(_0xb3d3dd,_0x2de708);}const fs=require('fs'),got=require(a15_0x282610(0xc3)),{table}=require(a15_0x282610(0xaf)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x282610(0xb3)),{getCredentialsPath,getAuthHeader}=require(a15_0x282610(0x8b)),{sendInstrumentationEvent}=require(a15_0x282610(0x99));exports[a15_0x282610(0xb7)]=a15_0x282610(0xc1),exports[a15_0x282610(0xd0)]=a15_0x282610(0xa4),exports['builder']=function(_0x478b12){const _0x315464=a15_0x282610,_0x440a6e={};_0x440a6e[_0x315464(0xd3)]=_0x315464(0xb2),_0x440a6e[_0x315464(0xd5)]=_0x315464(0x90),_0x440a6e['ePNZz']=_0x315464(0xa7);const _0x23a713=_0x440a6e,_0x2de450={};_0x2de450[_0x315464(0xbe)]=_0x23a713['SWkVx'],_0x2de450[_0x315464(0x85)]=_0x23a713[_0x315464(0xd5)];const _0x10eead={};return _0x10eead[_0x315464(0xba)]=_0x2de450,_0x478b12[_0x315464(0x87)](HELP_HEADER_MESSAGE['list'][_0x315464(0xac)])[_0x315464(0xcc)](HELP_FOOTER_MESSAGE)[_0x315464(0xae)](_0x10eead)[_0x315464(0xa7)](_0x23a713['ePNZz'])[_0x315464(0x89)];},exports[a15_0x282610(0xc7)]=async function(_0x1afb08){const _0x3963fa=a15_0x282610,_0xb7278a={'pNLOY':function(_0x52c12c){return _0x52c12c();},'pKpCl':_0x3963fa(0x92),'wASZe':function(_0x51ade0,_0x2836ff,_0x59bb26,_0x5522cd,_0x2d86e4,_0x31ccf1,_0x4a50e6){return _0x51ade0(_0x2836ff,_0x59bb26,_0x5522cd,_0x2d86e4,_0x31ccf1,_0x4a50e6);},'UMgDc':_0x3963fa(0xa2),'ujmAY':'init-not-called','isIet':function(_0x4de319){return _0x4de319();},'Grpvf':_0x3963fa(0xd4),'IpkyN':function(_0x2781aa,_0x26e1a4,_0x177176){return _0x2781aa(_0x26e1a4,_0x177176);},'QjrxC':function(_0x5550a8,_0x518fef,_0x3f71bc,_0x3eaae9,_0x314939,_0x477806,_0x219dc3){return _0x5550a8(_0x518fef,_0x3f71bc,_0x3eaae9,_0x314939,_0x477806,_0x219dc3);},'TCFvo':function(_0x193feb,_0x42689f){return _0x193feb!==_0x42689f;},'uxkvG':function(_0x42662c,_0x51b813){return _0x42662c!==_0x51b813;},'yhiHl':function(_0x3c9d72,_0x1d8caf){return _0x3c9d72===_0x1d8caf;},'VFDCm':'\x0aFound\x20the\x20following\x20grids:\x0a','GfCLF':_0x3963fa(0x93),'MWkRs':_0x3963fa(0xa3),'tYzIB':_0x3963fa(0x8a),'zCZZP':_0x3963fa(0xa0),'jJutx':_0x3963fa(0xa6),'DdSYE':_0x3963fa(0x82),'qveRN':function(_0x575fde,_0x270485){return _0x575fde(_0x270485);},'ULbHw':_0x3963fa(0xbc),'zesRo':_0x3963fa(0xbd),'OnNmw':function(_0x47ca44,_0x62e66d,_0x1ae32a,_0x51697d,_0x440e06,_0x30d2ce,_0x368302){return _0x47ca44(_0x62e66d,_0x1ae32a,_0x51697d,_0x440e06,_0x30d2ce,_0x368302);},'JIetT':_0x3963fa(0x9e),'lcELE':function(_0x4685e5,_0x36818a,_0x376091,_0x55531d,_0x178862,_0x3ed192,_0x1f0283){return _0x4685e5(_0x36818a,_0x376091,_0x55531d,_0x178862,_0x3ed192,_0x1f0283);},'CSoRb':_0x3963fa(0x98)};try{global_registry['requestId']=_0xb7278a[_0x3963fa(0xb9)](uuidv4);!fs[_0x3963fa(0xcf)](_0xb7278a[_0x3963fa(0xb9)](getCredentialsPath))&&(console[_0x3963fa(0x8c)](_0xb7278a[_0x3963fa(0xa8)]),await _0xb7278a[_0x3963fa(0xc6)](sendInstrumentationEvent,_0x1afb08,_0xb7278a[_0x3963fa(0xc5)],messageTypes[_0x3963fa(0xa1)],_0xb7278a['ujmAY'],null,_0x1afb08),process[_0x3963fa(0x88)](0x1));const _0x51938d=JSON[_0x3963fa(0xaa)](fs[_0x3963fa(0x96)](_0xb7278a['isIet'](getCredentialsPath)));let _0x200f41=_0x3963fa(0xbb)+AG_API_URL+_0x3963fa(0xb1);_0x1afb08[_0x3963fa(0xb8)]&&(_0x200f41='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x594618={'method':_0xb7278a['Grpvf'],'headers':_0xb7278a[_0x3963fa(0xb4)](getAuthHeader,_0x51938d[_0x3963fa(0xb0)][_0x3963fa(0xd1)],_0x51938d['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x3963fa(0x9b)]=_0x51938d[_0x3963fa(0xb0)][_0x3963fa(0xd1)],global_registry[_0x3963fa(0x8d)]=_0x51938d[_0x3963fa(0xb0)]['password'],_0xb7278a[_0x3963fa(0x86)](sendInstrumentationEvent,_0x1afb08,_0xb7278a[_0x3963fa(0xc5)],messageTypes['INFO'],null,null,_0x1afb08);const _0x52924d=await _0xb7278a[_0x3963fa(0xb4)](got,_0x200f41,_0x594618);if(_0xb7278a['TCFvo'](_0x52924d,null)&&_0xb7278a[_0x3963fa(0x91)](_0x52924d,undefined)&&_0xb7278a[_0x3963fa(0x94)](_0x52924d[_0x3963fa(0x9c)],0xc8)){const _0x5a3628=JSON['parse'](_0x52924d[_0x3963fa(0xa9)]);console[_0x3963fa(0xab)](_0xb7278a[_0x3963fa(0xc4)]);const _0x2f8e25=[];_0x2f8e25[_0x3963fa(0x9f)]([_0xb7278a['GfCLF'],_0xb7278a[_0x3963fa(0x8e)],_0xb7278a[_0x3963fa(0xca)],_0xb7278a['zCZZP'],_0xb7278a[_0x3963fa(0xbf)],_0xb7278a[_0x3963fa(0x84)]]),_0x5a3628[_0x3963fa(0x95)](_0x16bacf=>{const _0x2b181f=_0x3963fa;_0x2f8e25['push']([_0x16bacf['id'],_0x16bacf[_0x2b181f(0xc9)],_0x16bacf['status'],_0x16bacf['running'],_0x16bacf['queued'],_0x16bacf['clusterName']]);}),console['log'](_0xb7278a['qveRN'](table,_0x2f8e25)),process[_0x3963fa(0x88)](0x0);}_0xb7278a['yhiHl'](_0x52924d[_0x3963fa(0x9c)],0x191)&&(console[_0x3963fa(0x8c)](_0xb7278a[_0x3963fa(0xc0)]),await _0xb7278a['QjrxC'](sendInstrumentationEvent,_0x1afb08,_0xb7278a[_0x3963fa(0xc5)],messageTypes['ERROR'],_0xb7278a['zesRo'],null,_0x1afb08),process[_0x3963fa(0x88)](0x1)),console[_0x3963fa(0x8c)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x52924d)),await _0xb7278a[_0x3963fa(0xc2)](sendInstrumentationEvent,_0x1afb08,_0xb7278a['UMgDc'],messageTypes[_0x3963fa(0xa1)],_0xb7278a[_0x3963fa(0x9d)],_0x52924d,_0x1afb08),process[_0x3963fa(0x88)](0x1);}catch(_0x17f66b){console[_0x3963fa(0x8c)](_0x3963fa(0xcd)+_0x17f66b[_0x3963fa(0x9a)]),await _0xb7278a[_0x3963fa(0x97)](sendInstrumentationEvent,_0x1afb08,_0xb7278a[_0x3963fa(0xc5)],messageTypes[_0x3963fa(0xa1)],_0xb7278a[_0x3963fa(0xa5)],_0x17f66b,_0x1afb08),process[_0x3963fa(0x88)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x4d20bf=a16_0x52f5;(function(_0x3e491a,_0x2e51c9){const _0x42b124=a16_0x52f5,_0x1c971d=_0x3e491a();while(!![]){try{const _0x1bcfbc=parseInt(_0x42b124(0x76))/0x1*(parseInt(_0x42b124(0x7d))/0x2)+-parseInt(_0x42b124(0x7e))/0x3*(parseInt(_0x42b124(0x7c))/0x4)+-parseInt(_0x42b124(0x88))/0x5+parseInt(_0x42b124(0x75))/0x6+-parseInt(_0x42b124(0x77))/0x7+-parseInt(_0x42b124(0x87))/0x8*(parseInt(_0x42b124(0x74))/0x9)+parseInt(_0x42b124(0x82))/0xa;if(_0x1bcfbc===_0x2e51c9)break;else _0x1c971d['push'](_0x1c971d['shift']());}catch(_0x456626){_0x1c971d['push'](_0x1c971d['shift']());}}}(a16_0x4377,0xeef1f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x4d20bf(0x7b)]='pre-check',exports[a16_0x4d20bf(0x73)]=a16_0x4d20bf(0x86),exports['builder']=function(_0xa82f33){const _0x389913=a16_0x4d20bf,_0x3f7a12={};_0x3f7a12[_0x389913(0x84)]=_0x389913(0x81),_0x3f7a12[_0x389913(0x79)]='help';const _0x588f61=_0x3f7a12;return _0xa82f33[_0x389913(0x7f)](HELP_HEADER_MESSAGE[_0x389913(0x83)])[_0x389913(0x7a)](HELP_FOOTER_MESSAGE)[_0x389913(0x78)](_0x588f61[_0x389913(0x84)])['demandCommand']()[_0x389913(0x72)]()['strict']()[_0x389913(0x85)](_0x588f61[_0x389913(0x79)]);},exports[a16_0x4d20bf(0x80)]=function(_0x56db1a){};function a16_0x52f5(_0x3919bc,_0x158b79){const _0x437794=a16_0x4377();return a16_0x52f5=function(_0x52f52e,_0x31635f){_0x52f52e=_0x52f52e-0x72;let _0x28d66e=_0x437794[_0x52f52e];return _0x28d66e;},a16_0x52f5(_0x3919bc,_0x158b79);}function a16_0x4377(){const _0x5b7dad=['2xJYEFk','9nfPLYi','usage','handler','precheck_commands','42389690WxODjs','pre_check','RnwcA','help','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','6037616uUCvur','8344305oVaDFj','recommendCommands','desc','9FQzzqS','3472200XTZrdf','779683NINxAY','2792328BRPtla','commandDir','xoMyQ','epilogue','command','2394888oeQaUV'];a16_0x4377=function(){return _0x5b7dad;};return a16_0x4377();}
1
+ const a16_0x53a435=a16_0x3d8f;(function(_0x3cd726,_0x166845){const _0x141215=a16_0x3d8f,_0x1f1587=_0x3cd726();while(!![]){try{const _0x4be756=-parseInt(_0x141215(0x19d))/0x1*(-parseInt(_0x141215(0x1b4))/0x2)+parseInt(_0x141215(0x1a2))/0x3+parseInt(_0x141215(0x1a1))/0x4*(-parseInt(_0x141215(0x1a7))/0x5)+-parseInt(_0x141215(0x1b3))/0x6*(-parseInt(_0x141215(0x19e))/0x7)+-parseInt(_0x141215(0x1b1))/0x8*(-parseInt(_0x141215(0x1ae))/0x9)+parseInt(_0x141215(0x1a3))/0xa*(parseInt(_0x141215(0x1a4))/0xb)+parseInt(_0x141215(0x1b6))/0xc*(-parseInt(_0x141215(0x1ad))/0xd);if(_0x4be756===_0x166845)break;else _0x1f1587['push'](_0x1f1587['shift']());}catch(_0x18a1ef){_0x1f1587['push'](_0x1f1587['shift']());}}}(a16_0x4ae7,0x75b92));function a16_0x3d8f(_0x222653,_0x94dff8){const _0x4ae779=a16_0x4ae7();return a16_0x3d8f=function(_0x3d8f77,_0x485307){_0x3d8f77=_0x3d8f77-0x19c;let _0x24cc07=_0x4ae779[_0x3d8f77];return _0x24cc07;},a16_0x3d8f(_0x222653,_0x94dff8);}function a16_0x4ae7(){const _0x5092ce=['command','621390xzXKxJ','626270sKnhoO','usage','12aQhGYv','builder','1gzXYXR','35HvrhHi','help','desc','380892eEiaFv','698295JZAjXp','50mVLyzA','1498519OyAUYs','pre-check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','25QSQKIG','demandCommand','pre_check','handler','ZeUzB','../config/constants','21657181cPEQjz','4392eoSlJY','epilogue','oaMNK','14416EgPmtM'];a16_0x4ae7=function(){return _0x5092ce;};return a16_0x4ae7();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x53a435(0x1ac));exports[a16_0x53a435(0x1b2)]=a16_0x53a435(0x1a5),exports[a16_0x53a435(0x1a0)]=a16_0x53a435(0x1a6),exports[a16_0x53a435(0x19c)]=function(_0x18debe){const _0x48da2e=a16_0x53a435,_0x59a220={};_0x59a220[_0x48da2e(0x1ab)]='precheck_commands',_0x59a220['oaMNK']=_0x48da2e(0x19f);const _0x3328b9=_0x59a220;return _0x18debe[_0x48da2e(0x1b5)](HELP_HEADER_MESSAGE[_0x48da2e(0x1a9)])[_0x48da2e(0x1af)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3328b9[_0x48da2e(0x1ab)])[_0x48da2e(0x1a8)]()['recommendCommands']()['strict']()[_0x48da2e(0x19f)](_0x3328b9[_0x48da2e(0x1b0)]);},exports[a16_0x53a435(0x1aa)]=function(_0x319b54){};
@@ -1 +1 @@
1
- const a17_0x48fb53=a17_0x2fac;(function(_0x1576af,_0x2e86c9){const _0x27c4cb=a17_0x2fac,_0x41bf97=_0x1576af();while(!![]){try{const _0x2ddf9c=-parseInt(_0x27c4cb(0x16f))/0x1*(parseInt(_0x27c4cb(0x174))/0x2)+parseInt(_0x27c4cb(0x1ea))/0x3+parseInt(_0x27c4cb(0x1d7))/0x4*(-parseInt(_0x27c4cb(0x197))/0x5)+-parseInt(_0x27c4cb(0x148))/0x6+parseInt(_0x27c4cb(0x1f6))/0x7*(parseInt(_0x27c4cb(0x1b4))/0x8)+parseInt(_0x27c4cb(0x1ed))/0x9*(parseInt(_0x27c4cb(0x135))/0xa)+-parseInt(_0x27c4cb(0x14c))/0xb*(-parseInt(_0x27c4cb(0x164))/0xc);if(_0x2ddf9c===_0x2e86c9)break;else _0x41bf97['push'](_0x41bf97['shift']());}catch(_0x1f9ed2){_0x41bf97['push'](_0x41bf97['shift']());}}}(a17_0x1743,0xd1d9f));const fs=require('fs'),ws=require('ws'),got=require(a17_0x48fb53(0x11f)),{v4:uuidv4}=require(a17_0x48fb53(0x1ce)),ReconnectingWebSocket=require(a17_0x48fb53(0xfd)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x48fb53(0x13e)),{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_0x48fb53(0x172)),{getCloudProviderObjectWithOutInit}=require(a17_0x48fb53(0x1c6)),webSocketUtils=require(a17_0x48fb53(0x108)),{sendInstrumentationEvent}=require(a17_0x48fb53(0x1d9));exports[a17_0x48fb53(0x16a)]=a17_0x48fb53(0x10c),exports[a17_0x48fb53(0x102)]=a17_0x48fb53(0x1ef),exports[a17_0x48fb53(0x1a4)]=function(_0x5b8a3c){const _0x548857=a17_0x48fb53,_0x536c2f={};_0x536c2f['ywssK']=_0x548857(0x17a),_0x536c2f[_0x548857(0x103)]='string',_0x536c2f[_0x548857(0x167)]=_0x548857(0x1ee),_0x536c2f['LAbGt']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x536c2f[_0x548857(0x100)]=_0x548857(0x111),_0x536c2f[_0x548857(0x130)]=_0x548857(0x1e9);const _0x49ebb4=_0x536c2f,_0xcc5608={};_0xcc5608[_0x548857(0x18c)]=_0x49ebb4[_0x548857(0x18a)],_0xcc5608[_0x548857(0x1e6)]=_0x49ebb4[_0x548857(0x103)];const _0xbdeeb4={};_0xbdeeb4[_0x548857(0x18c)]=_0x49ebb4[_0x548857(0x167)],_0xbdeeb4[_0x548857(0x1e6)]=_0x49ebb4[_0x548857(0x103)];const _0x47e059={};_0x47e059[_0x548857(0x18c)]=_0x49ebb4['LAbGt'],_0x47e059[_0x548857(0x1e6)]=_0x49ebb4[_0x548857(0x103)];const _0x51e155={};_0x51e155[_0x548857(0x18c)]=_0x49ebb4['SBrdR'],_0x51e155[_0x548857(0x1e6)]=_0x49ebb4['JtKKQ'];const _0x2bf44b={};return _0x2bf44b[_0x548857(0x1dd)]=_0xcc5608,_0x2bf44b[_0x548857(0x156)]=_0xbdeeb4,_0x2bf44b[_0x548857(0x161)]=_0x47e059,_0x2bf44b[_0x548857(0x19e)]=_0x51e155,_0x5b8a3c[_0x548857(0x109)](HELP_HEADER_MESSAGE['pre_check'])[_0x548857(0x117)](HELP_FOOTER_MESSAGE)['options'](_0x2bf44b)['help'](_0x49ebb4['jLnxk'])['argv'];};async function inputValidation(_0x16b2fa,_0x387a41){const _0x37ce88=a17_0x48fb53,_0x5d18a2={'OlqzE':_0x37ce88(0xf7),'xlTNt':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','JmKby':_0x37ce88(0x149),'QoZMC':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','dWLdN':_0x37ce88(0x1b1),'jGguX':_0x37ce88(0x111),'ClTqb':_0x37ce88(0x1e9),'LArxc':_0x37ce88(0x161),'yFbhx':_0x37ce88(0x156),'EAkzZ':_0x37ce88(0x129),'vWQvV':_0x37ce88(0x138),'NCeCf':'cluster-name','tMhbn':_0x37ce88(0x1ca),'ClVRH':_0x37ce88(0x15b),'llfLz':_0x37ce88(0x13b),'ViPXU':function(_0x48ea08,_0x16e9e9){return _0x48ea08!==_0x16e9e9;},'VExYs':_0x37ce88(0x1e2),'tJTjk':_0x37ce88(0x1c5),'ilMVi':function(_0x2d0b2c,_0x5065ee){return _0x2d0b2c===_0x5065ee;},'nrsab':_0x37ce88(0x1c9),'mHVDL':'agfbv','SLsrD':function(_0x2cbc37,_0x3152ce){return _0x2cbc37===_0x3152ce;},'WmqOs':_0x37ce88(0x171),'LMuXM':function(_0x56e7ba,_0x5372cf){return _0x56e7ba!==_0x5372cf;},'pErvC':_0x37ce88(0x10d),'PYdBf':'bMkLL','xnQiC':function(_0x22394e,_0x1263aa){return _0x22394e>_0x1263aa;},'rJuvw':_0x37ce88(0x155),'LcXiI':function(_0x2e7be6,_0x164d4c,_0x89395a,_0x2d401d,_0x28a613,_0x52de92,_0x5594e3,_0x36ff00){return _0x2e7be6(_0x164d4c,_0x89395a,_0x2d401d,_0x28a613,_0x52de92,_0x5594e3,_0x36ff00);},'HkVFb':_0x37ce88(0x1d6),'raOrO':'pre-check-cluster-args-not-passed','aBOhc':'xcEre','UTojG':_0x37ce88(0x12a),'nMwHw':_0x37ce88(0x185),'SJHWO':function(_0x83ce36,_0x558ec6){return _0x83ce36!==_0x558ec6;},'axXHg':_0x37ce88(0x1bb),'NMfWd':_0x37ce88(0x1e1),'NIAJi':function(_0x46f282,_0x8d44f4){return _0x46f282!==_0x8d44f4;},'zPXLm':_0x37ce88(0x173),'UxKVY':'GET','dZhjL':function(_0x47487e,_0x1ba2c9,_0x4daa81){return _0x47487e(_0x1ba2c9,_0x4daa81);},'jZEnq':function(_0x47cfb8,_0x5649e8,_0x47d0b2,_0x5b0185,_0x3399a5,_0xe12aed){return _0x47cfb8(_0x5649e8,_0x47d0b2,_0x5b0185,_0x3399a5,_0xe12aed);},'SJAaz':_0x37ce88(0x169),'hkvxQ':_0x37ce88(0x19e),'GAwhb':function(_0x168e3d,_0x55ed8d){return _0x168e3d===_0x55ed8d;},'ARhAD':function(_0x5bd4b7,_0x1d42ad){return _0x5bd4b7!==_0x1d42ad;},'QXoUQ':'syjDM','gyvAv':function(_0x2d2bad,_0x2c57aa){return _0x2d2bad(_0x2c57aa);},'vKVgY':function(_0x2d6d45,_0x155662){return _0x2d6d45===_0x155662;},'MvIsm':_0x37ce88(0x1e5),'eWXQj':_0x37ce88(0x1a1),'inNrk':function(_0xb3ad3c,_0x4bb4f1,_0x403223,_0x5ddf3c,_0xef924e,_0x473b4f,_0x384d26,_0x45696a){return _0xb3ad3c(_0x4bb4f1,_0x403223,_0x5ddf3c,_0xef924e,_0x473b4f,_0x384d26,_0x45696a);},'hBVJw':'pre-check-grid-profile-empty','QYWMX':function(_0x44829e,_0x4a5abc){return _0x44829e!==_0x4a5abc;},'yOicN':'nLroM','HMmGy':_0x37ce88(0x123),'VuJwC':function(_0x56a8ce,_0x4576cc){return _0x56a8ce!==_0x4576cc;},'TPGSL':'oimMk','FVueA':'TcbTU','BxVvI':_0x37ce88(0x170),'aAtNd':'dWNPq','smUNi':_0x37ce88(0x136),'IjhFP':function(_0x3b50a2,_0x43ca4a){return _0x3b50a2!==_0x43ca4a;},'DQNus':_0x37ce88(0x1b5)};let _0x257956;try{if(_0x5d18a2['ViPXU'](_0x5d18a2[_0x37ce88(0x1e8)],_0x5d18a2[_0x37ce88(0x1da)])){if(_0x16b2fa[_0x37ce88(0x1c8)]||_0x16b2fa[_0x37ce88(0x1b2)]||_0x16b2fa[_0x37ce88(0x161)]){if(_0x5d18a2[_0x37ce88(0x14d)](_0x5d18a2['nrsab'],_0x5d18a2[_0x37ce88(0x178)])){const _0x495205=[];if(!_0x16b2fa['clusterName']){if(_0x5d18a2[_0x37ce88(0x14d)](_0x5d18a2[_0x37ce88(0x17c)],_0x5d18a2[_0x37ce88(0x17c)]))_0x495205['push'](_0x5d18a2[_0x37ce88(0x139)]);else{const _0x3ed2fe={};_0x3ed2fe[_0x37ce88(0x1e6)]=_0x17d87f['LOG'],_0x3ed2fe[_0x37ce88(0x1a6)]=_0x25e070,_0x23d05e[_0x37ce88(0x14a)](_0x40746b,_0x3ed2fe,_0x5d18a2[_0x37ce88(0x184)],!![]);}};if(!_0x16b2fa['cloudProvider']){if(_0x5d18a2[_0x37ce88(0x1d0)](_0x5d18a2[_0x37ce88(0x1a9)],_0x5d18a2['WmqOs']))_0x495205[_0x37ce88(0x1d8)](_0x5d18a2['yFbhx']);else{const _0x452d90={};_0x452d90[_0x37ce88(0x18c)]=_0x5d18a2[_0x37ce88(0x10f)],_0x452d90[_0x37ce88(0x1e6)]=_0x5d18a2[_0x37ce88(0x1db)];const _0x52faff={};_0x52faff['description']=_0x5d18a2['QoZMC'],_0x52faff['type']=_0x5d18a2[_0x37ce88(0x1db)];const _0x1223c5={};_0x1223c5[_0x37ce88(0x18c)]=_0x5d18a2['dWLdN'],_0x1223c5['type']=_0x5d18a2[_0x37ce88(0x1db)];const _0x2785bd={};_0x2785bd[_0x37ce88(0x18c)]=_0x5d18a2['jGguX'],_0x2785bd['type']=_0x5d18a2['JmKby'];const _0x5b1fc2={};return _0x5b1fc2['cluster-name']=_0x452d90,_0x5b1fc2[_0x37ce88(0x156)]=_0x52faff,_0x5b1fc2[_0x37ce88(0x161)]=_0x1223c5,_0x5b1fc2[_0x37ce88(0x19e)]=_0x2785bd,_0x1c9d93['usage'](_0x161852[_0x37ce88(0x112)])[_0x37ce88(0x117)](_0x2ac056)[_0x37ce88(0x18e)](_0x5b1fc2)['help'](_0x5d18a2[_0x37ce88(0x124)])['argv'];}};!_0x16b2fa[_0x37ce88(0x161)]&&(_0x5d18a2['LMuXM'](_0x5d18a2[_0x37ce88(0x120)],_0x5d18a2['PYdBf'])?_0x495205[_0x37ce88(0x1d8)](_0x5d18a2[_0x37ce88(0x122)]):(_0x31f96c[_0x37ce88(0x14e)]('Setting\x20cloud\x20provider\x20as\x20'+_0x4973de[_0x37ce88(0x166)]+'\x20'),_0x58cefe[_0x37ce88(0x1b2)]=_0x5eebdb[_0x37ce88(0x166)]));;_0x5d18a2[_0x37ce88(0x142)](_0x495205[_0x37ce88(0x1df)],0x0)&&(_0x5d18a2[_0x37ce88(0x15f)](_0x5d18a2[_0x37ce88(0x1d2)],_0x5d18a2[_0x37ce88(0x1d2)])?_0x3c96e4['info'](_0x37ce88(0x13c)+_0x19973d['clusterName']+_0x37ce88(0x1c7)):(_0x257956=_0x37ce88(0x16c)+_0x495205[_0x37ce88(0x13f)](',\x20')+_0x37ce88(0x11d),await _0x5d18a2[_0x37ce88(0x1c3)](reportToGalactusAndSendToEDS,_0x16b2fa,_0x387a41,_0x257956,messageTypes['ERROR'],_0x5d18a2[_0x37ce88(0xfb)],_0x5d18a2[_0x37ce88(0x1bc)],_0x5d18a2[_0x37ce88(0x184)]),logger[_0x37ce88(0xf7)](_0x257956),process[_0x37ce88(0x177)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x16b2fa['cloudProvider'][_0x37ce88(0x195)]())&&(_0x5d18a2[_0x37ce88(0x14d)](_0x5d18a2[_0x37ce88(0x188)],_0x5d18a2['aBOhc'])?(_0x257956=_0x5d18a2[_0x37ce88(0x16d)],await _0x5d18a2['LcXiI'](reportToGalactusAndSendToEDS,_0x16b2fa,_0x387a41,_0x257956,messageTypes[_0x37ce88(0x153)],_0x5d18a2[_0x37ce88(0xfb)],_0x5d18a2[_0x37ce88(0x143)],_0x5d18a2[_0x37ce88(0x184)]),logger['error'](_0x257956),!_0x16b2fa[_0x37ce88(0x1b2)]&&(_0x5d18a2[_0x37ce88(0x1ad)](_0x5d18a2[_0x37ce88(0x15d)],_0x5d18a2[_0x37ce88(0x133)])?(logger[_0x37ce88(0x14e)](_0x37ce88(0x191)+DEFAULT_CLUSTER_DETAILS[_0x37ce88(0x166)]+'\x20'),_0x16b2fa['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x37ce88(0x166)]):_0x1d3a3e['push'](_0x5d18a2['LArxc']))):_0x2f9d9e[_0x37ce88(0xf7)](_0x37ce88(0x1eb)+_0x426624[_0x37ce88(0xf7)][_0x37ce88(0x137)])),global_registry[_0x37ce88(0x1c8)]=_0x16b2fa[_0x37ce88(0x1c8)],global_registry[_0x37ce88(0x1b2)]=_0x16b2fa[_0x37ce88(0x1b2)],global_registry[_0x37ce88(0x16b)]=_0x16b2fa[_0x37ce88(0x161)];}else _0x23f7e8+=_0x37ce88(0x127)+_0x597744['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else{if(_0x16b2fa[_0x37ce88(0xfc)]){if(_0x5d18a2[_0x37ce88(0x1a0)](_0x5d18a2[_0x37ce88(0x1f0)],_0x5d18a2[_0x37ce88(0x1f0)]))_0x2ceb72=_0x4a18db;else{global_registry[_0x37ce88(0xfc)]=_0x16b2fa[_0x37ce88(0xfc)],logger[_0x37ce88(0x121)](_0x37ce88(0xfe)+_0x16b2fa[_0x37ce88(0xfc)]);const _0x401125='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x439b60={};_0x439b60[_0x37ce88(0x175)]=_0x5d18a2[_0x37ce88(0x1ba)],_0x439b60[_0x37ce88(0x1d3)]=global_registry[_0x37ce88(0x141)],_0x439b60['throwHttpErrors']=![];const _0x36572d=_0x439b60,_0x47324b=await _0x5d18a2[_0x37ce88(0x14b)](got,_0x401125,_0x36572d),_0x7b08f5=await _0x5d18a2[_0x37ce88(0x119)](responseValidation,_0x47324b,_0x5d18a2[_0x37ce88(0x17d)],_0x5d18a2[_0x37ce88(0x131)],_0x16b2fa,_0x387a41);let _0x437203={};if(_0x5d18a2[_0x37ce88(0x18b)](_0x7b08f5,0xc8)){if(_0x5d18a2[_0x37ce88(0x1de)](_0x5d18a2['QXoUQ'],_0x5d18a2['QXoUQ']))_0x4cfb74[_0x37ce88(0x1d8)](_0x5d18a2['yFbhx']);else{const _0x5c49cf=JSON[_0x37ce88(0x198)](_0x47324b[_0x37ce88(0x162)]),_0x485537=_0x5c49cf[_0x37ce88(0x19c)](_0x2f9408=>_0x2f9408[_0x37ce88(0x115)]===_0x16b2fa[_0x37ce88(0xfc)])||null;_0x5d18a2[_0x37ce88(0x1f4)](isUndefined,_0x485537)?_0x5d18a2[_0x37ce88(0x11e)](_0x5d18a2[_0x37ce88(0x183)],_0x5d18a2[_0x37ce88(0x181)])?(_0x2ae668+=_0x5d18a2[_0x37ce88(0x194)],_0xdaee52+=_0x37ce88(0x1e4)+(_0x3b0d37[_0x37ce88(0x1a6)]||_0x5d18a2[_0x37ce88(0x18f)])+'\x0a',_0x107f23+=_0x37ce88(0x12e)+(_0xd76c3[_0x37ce88(0x180)]||_0x5d18a2[_0x37ce88(0x18f)])+'\x0a',_0x2bd504+=_0x37ce88(0x18d)+(_0x3176be[_0x37ce88(0x137)]||_0x5d18a2[_0x37ce88(0x18f)])+'\x0a'):(_0x257956='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x16b2fa[_0x37ce88(0xfc)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x5d18a2[_0x37ce88(0x107)](reportToGalactusAndSendToEDS,_0x16b2fa,_0x387a41,_0x257956,messageTypes[_0x37ce88(0x153)],_0x5d18a2[_0x37ce88(0xfb)],_0x5d18a2['hBVJw'],_0x5d18a2[_0x37ce88(0x184)]),logger[_0x37ce88(0xf7)](_0x257956),process[_0x37ce88(0x177)](0x1)):_0x5d18a2[_0x37ce88(0x13a)](_0x5d18a2['yOicN'],_0x5d18a2[_0x37ce88(0x1c1)])?_0x437203=_0x485537:_0x2c2d11[_0x37ce88(0x177)](0x1);}}else _0x5d18a2[_0x37ce88(0x1b9)](_0x5d18a2[_0x37ce88(0x16e)],_0x5d18a2['FVueA'])?process['exit'](0x1):_0x5391c2[_0x37ce88(0x1d8)](_0x5d18a2[_0x37ce88(0x139)]);const _0x5581f7={};_0x5581f7[_0x37ce88(0x1e6)]=WS_EVENTS[_0x37ce88(0x146)],_0x5581f7[_0x37ce88(0x1a6)]=_0x5d18a2[_0x37ce88(0x1a5)],webSocketUtils[_0x37ce88(0x14a)](_0x387a41,_0x5581f7),global_registry[_0x37ce88(0x1b2)]=_0x437203['cloudProvider'],global_registry[_0x37ce88(0x16b)]=_0x437203[_0x37ce88(0x161)],global_registry[_0x37ce88(0x1c8)]=_0x437203[_0x37ce88(0x1c8)];}}else _0x5d18a2[_0x37ce88(0x1de)](_0x5d18a2[_0x37ce88(0x1af)],_0x5d18a2[_0x37ce88(0x1a2)])?(logger['error'](_0x5d18a2[_0x37ce88(0x151)]),process['exit'](0x1)):(_0x3771f7[_0x37ce88(0x14e)]('['+_0x4d0bb9+_0x37ce88(0x113)+_0x2d3e88[_0x37ce88(0x157)]+'\x20data\x20:\x20'+_0x398940[_0x37ce88(0x165)]+_0x37ce88(0x196)+_0xda86b1['error']),_0x156db8[_0x37ce88(0xf7)]&&_0x4b58a0[_0x37ce88(0xf7)](_0x37ce88(0x1eb)+_0x1ac5f4[_0x37ce88(0xf7)][_0x37ce88(0x137)]));}}else _0x43b84a+=_0x37ce88(0x127)+_0x198d7c[_0x37ce88(0x1c8)]+'\x20'+(_0x54a4d0?_0x5d18a2[_0x37ce88(0x1ae)]:_0x5d18a2['ClVRH'])+'\x0a\x0a';}catch(_0x59787a){_0x5d18a2[_0x37ce88(0x19f)](_0x5d18a2[_0x37ce88(0x1c4)],_0x5d18a2[_0x37ce88(0x1c4)])?(_0x351457['error'](_0x5d18a2[_0x37ce88(0x151)]),_0x77f576[_0x37ce88(0x177)](0x1)):(_0x257956=_0x37ce88(0x114)+_0x59787a+':\x20'+_0x59787a[_0x37ce88(0x137)],logger[_0x37ce88(0xf7)](_0x257956),await _0x5d18a2[_0x37ce88(0x107)](reportToGalactusAndSendToEDS,_0x16b2fa,_0x387a41,_0x257956,messageTypes[_0x37ce88(0x153)],_0x5d18a2['HkVFb'],_0x5d18a2['nMwHw'],_0x5d18a2[_0x37ce88(0x184)]),process['exit'](0x1));}}function printResponse(_0x4f351c,_0x2f2b3c){const _0x224d4d=a17_0x48fb53,_0x26b50c={};_0x26b50c[_0x224d4d(0x19d)]=function(_0x3d980c,_0x4c0cc7){return _0x3d980c+_0x4c0cc7;},_0x26b50c[_0x224d4d(0x1c0)]=_0x224d4d(0xf9),_0x26b50c[_0x224d4d(0x19b)]=_0x224d4d(0x110),_0x26b50c['seQQS']=function(_0x32d651,_0x3a384c){return _0x32d651||_0x3a384c;},_0x26b50c[_0x224d4d(0x1b3)]=_0x224d4d(0x138),_0x26b50c['fNFQX']=_0x224d4d(0x129),_0x26b50c['UcXVj']=function(_0x3cf046,_0x2c5e77){return _0x3cf046!==_0x2c5e77;},_0x26b50c[_0x224d4d(0x1be)]=_0x224d4d(0x12d);const _0xe16817=_0x26b50c;logger[_0x224d4d(0x14e)]('['+_0x4f351c+_0x224d4d(0x113)+_0x2f2b3c[_0x224d4d(0x157)]+_0x224d4d(0x144)+_0x2f2b3c[_0x224d4d(0x165)]+_0x224d4d(0x196)+_0x2f2b3c[_0x224d4d(0xf7)]);if(_0x2f2b3c['error']){if(_0xe16817['UcXVj'](_0xe16817['kRGbc'],_0xe16817[_0x224d4d(0x1be)])){const {header:_0x38c804,response:_0x2241b5}=_0x59cbad,{status:_0x105158,data:_0x1c971e,error:_0x2b2041}=_0x2241b5;_0x91fcec+=_0x38c804+'\x20#'+_0xe16817['MylTL'](_0x17edf8,0x1)+'\x0a',_0x3db71c+=_0x224d4d(0x179)+(_0x105158?_0xe16817[_0x224d4d(0x1c0)]:_0xe16817[_0x224d4d(0x19b)])+'\x0a',_0x9a2bac+=_0x224d4d(0x1b7)+_0xe16817['seQQS'](_0x1c971e,_0xe16817['JAXiD'])+'\x0a',_0x2b2041&&(_0x32c585+=_0xe16817[_0x224d4d(0x118)],_0x36f2ba+=_0x224d4d(0x1e4)+(_0x2b2041['message']||_0xe16817['JAXiD'])+'\x0a',_0x36c2fc+=_0x224d4d(0x12e)+(_0x2b2041['code']||_0xe16817[_0x224d4d(0x1b3)])+'\x0a',_0x58f1de+=_0x224d4d(0x18d)+(_0x2b2041[_0x224d4d(0x137)]||_0xe16817[_0x224d4d(0x1b3)])+'\x0a'),_0x3e8b6b+='\x0a\x0a';}else logger['error'](_0x224d4d(0x1eb)+_0x2f2b3c[_0x224d4d(0xf7)][_0x224d4d(0x137)]);}}async function generateReport(_0x230874,_0x1c2c7a){const _0x58791a=a17_0x48fb53,_0x4ab100={'fLOUa':function(_0x5009c7,_0x29d24e){return _0x5009c7+_0x29d24e;},'plgSC':'Success','JsBbS':_0x58791a(0x110),'ZmfGg':function(_0x97a47d,_0x1b423b){return _0x97a47d||_0x1b423b;},'PdEoX':'N/A','FWEKg':_0x58791a(0x129),'ZYNuP':'Cluster\x20details\x0a-----------------------\x0a','hHimb':function(_0x479c34,_0x683400){return _0x479c34!=_0x683400;},'qhHGH':'is\x20already\x20present','viVgT':_0x58791a(0x15b),'iylDE':function(_0x148289){return _0x148289();}};let _0x3be1ee='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x58791a(0x1e7);return _0x230874[_0x58791a(0x105)]((_0x4b7ff5,_0x416386)=>{const _0x157a71=_0x58791a,{header:_0x19e7d4,response:_0x200a18}=_0x4b7ff5,{status:_0x203aac,data:_0x322f4e,error:_0x5bfbb4}=_0x200a18;_0x3be1ee+=_0x19e7d4+'\x20#'+_0x4ab100[_0x157a71(0x134)](_0x416386,0x1)+'\x0a',_0x3be1ee+=_0x157a71(0x179)+(_0x203aac?_0x4ab100['plgSC']:_0x4ab100[_0x157a71(0x152)])+'\x0a',_0x3be1ee+=_0x157a71(0x1b7)+_0x4ab100[_0x157a71(0x1aa)](_0x322f4e,_0x4ab100[_0x157a71(0x17f)])+'\x0a',_0x5bfbb4&&(_0x3be1ee+=_0x4ab100[_0x157a71(0x1bf)],_0x3be1ee+=_0x157a71(0x1e4)+(_0x5bfbb4[_0x157a71(0x1a6)]||_0x4ab100[_0x157a71(0x17f)])+'\x0a',_0x3be1ee+='\x20\x20Code:\x20'+(_0x5bfbb4[_0x157a71(0x180)]||_0x4ab100[_0x157a71(0x17f)])+'\x0a',_0x3be1ee+='\x20\x20Stack:\x20'+(_0x5bfbb4[_0x157a71(0x137)]||_0x4ab100[_0x157a71(0x17f)])+'\x0a'),_0x3be1ee+='\x0a\x0a';}),_0x3be1ee+=_0x4ab100[_0x58791a(0x14f)],_0x4ab100[_0x58791a(0x1f1)](_0x1c2c7a,null)?_0x3be1ee+=_0x58791a(0x127)+global_registry[_0x58791a(0x1c8)]+'\x20'+(_0x1c2c7a?_0x4ab100[_0x58791a(0x15c)]:_0x4ab100[_0x58791a(0x11b)])+'\x0a\x0a':_0x3be1ee+=_0x58791a(0x127)+global_registry[_0x58791a(0x1c8)]+_0x58791a(0x186),_0x3be1ee+=_0x4ab100[_0x58791a(0x1cd)](getSystemMetaData),_0x3be1ee;};exports['handler']=async function(_0x58539d){const _0x27c845=a17_0x48fb53,_0x2264a2={'OhGSW':function(_0x14097e){return _0x14097e();},'NKDCs':function(_0x1a9e62){return _0x1a9e62();},'vSGNT':_0x27c845(0x1a7),'Kyckb':function(_0x30d428,_0x1bba7f,_0x114b1c,_0x18489f,_0xf6d275,_0x3949dd,_0x3f6ea8,_0x451f96){return _0x30d428(_0x1bba7f,_0x114b1c,_0x18489f,_0xf6d275,_0x3949dd,_0x3f6ea8,_0x451f96);},'oSzlp':'pre-check-grid-called','GMban':'credential-not-found','xlHEE':_0x27c845(0xf7),'PdDjG':function(_0x1703de,_0x5e18d7,_0x220169,_0x49c011,_0x1c2bc3,_0x1645da,_0x855d73){return _0x1703de(_0x5e18d7,_0x220169,_0x49c011,_0x1c2bc3,_0x1645da,_0x855d73);},'aSlhR':_0x27c845(0xfa),'hbWfT':_0x27c845(0x147),'IvUIZ':function(_0x30aa0f,_0x4412db,_0x4931e7){return _0x30aa0f(_0x4412db,_0x4931e7);},'dLApt':_0x27c845(0x1c2),'PRfGn':function(_0x41c0d4,_0x1e1d4d,_0x99b2f4){return _0x41c0d4(_0x1e1d4d,_0x99b2f4);},'ryRfw':'toolInstalledResp','WLuDw':_0x27c845(0x187),'baNlo':function(_0xc49658,_0x53fa7b,_0x12b1fb,_0xe8281f,_0x2ec473,_0x32fba8,_0x9dff98,_0x4fbd9e){return _0xc49658(_0x53fa7b,_0x12b1fb,_0xe8281f,_0x2ec473,_0x32fba8,_0x9dff98,_0x4fbd9e);},'cVkEa':function(_0x47dec3,_0x5994d8,_0x52a68a){return _0x47dec3(_0x5994d8,_0x52a68a);},'UMauC':_0x27c845(0x13d),'FXJKo':function(_0x11660c){return _0x11660c();},'xgrOw':_0x27c845(0x1b8),'ykqOq':function(_0x420706,_0x1a9b8b){return _0x420706(_0x1a9b8b);},'TzClk':'TLSv1_2_client_method','xnZny':'isTls1_2_SUPPORTED','IoEBx':_0x27c845(0x176),'cIvCh':_0x27c845(0x1bd),'Lexpy':_0x27c845(0x101),'JqGms':_0x27c845(0x199),'zdGMQ':function(_0x398ba9,_0x264253){return _0x398ba9+_0x264253;},'TSYCV':_0x27c845(0x1b6),'upoHo':_0x27c845(0x10e)};let _0x1fb5b7,_0x368fc8;try{global_registry[_0x27c845(0x125)]=_0x2264a2[_0x27c845(0x12b)](uuidv4);!fs['existsSync'](_0x2264a2['NKDCs'](getCredentialsPath))&&(_0x368fc8=_0x2264a2['vSGNT'],logger[_0x27c845(0xf7)](_0x368fc8),await _0x2264a2['Kyckb'](reportToGalactusAndSendToEDS,_0x58539d,_0x1fb5b7,_0x368fc8,messageTypes[_0x27c845(0x153)],_0x2264a2[_0x27c845(0xff)],_0x2264a2['GMban'],_0x2264a2['xlHEE']),process[_0x27c845(0x177)](0x1));_0x2264a2[_0x27c845(0x1d1)](sendInstrumentationEvent,_0x58539d,_0x2264a2[_0x27c845(0xff)],messageTypes[_0x27c845(0x106)],null,null,_0x58539d);const _0x5b7329=JSON[_0x27c845(0x198)](fs[_0x27c845(0x1dc)](_0x2264a2[_0x27c845(0x12b)](getCredentialsPath)));global_registry[_0x27c845(0x168)]=_0x5b7329[_0x27c845(0x1d5)][_0x27c845(0x116)],global_registry[_0x27c845(0x192)]=_0x5b7329[_0x27c845(0x1d5)][_0x27c845(0x1ab)];const _0x95eaf7=WS_ENDPOINT[_0x27c845(0x160)](_0x2264a2[_0x27c845(0x11a)],_0x5b7329[_0x27c845(0x1d5)]['username'])['replace'](_0x2264a2[_0x27c845(0x158)],_0x5b7329[_0x27c845(0x1d5)][_0x27c845(0x1ab)]),_0x2f7aeb={};_0x2f7aeb['WebSocket']=ws,_0x2f7aeb[_0x27c845(0x10a)]=0x36ee80,_0x1fb5b7=new ReconnectingWebSocket(_0x95eaf7,[],_0x2f7aeb),global_registry['authHeader']=_0x2264a2[_0x27c845(0x126)](getAuthHeader,global_registry[_0x27c845(0x168)],global_registry[_0x27c845(0x192)]),await _0x2264a2['IvUIZ'](inputValidation,_0x58539d,_0x1fb5b7),logger[_0x27c845(0x14e)](_0x27c845(0x1ec)+global_registry[_0x27c845(0x1b2)]+_0x27c845(0x1b0)+global_registry[_0x27c845(0x16b)]);let _0x4c0fbb=await _0x2264a2[_0x27c845(0x1d1)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x27c845(0x1c8)],_0x2264a2[_0x27c845(0x163)],_0x1fb5b7,webSocketUtils,_0x58539d);const _0x266154=await _0x4c0fbb['isCliToolInstalled']();_0x2264a2[_0x27c845(0xf8)](printResponse,_0x2264a2[_0x27c845(0x10b)],_0x266154),_0x4c0fbb=await _0x4c0fbb[_0x27c845(0x1cb)]();let _0x2a739f=![];try{_0x2a739f=await _0x4c0fbb['isClusterPresent']();}catch(_0x377438){const _0x49fa04=_0x2264a2[_0x27c845(0x1ac)][_0x27c845(0x1f5)]('|');let _0x1ebf4b=0x0;while(!![]){switch(_0x49fa04[_0x1ebf4b++]){case'0':_0x368fc8+='\x0a'+JSON[_0x27c845(0x132)](_0x377438[_0x27c845(0x137)]);continue;case'1':await _0x2264a2[_0x27c845(0x1a8)](reportToGalactusAndSendToEDS,_0x58539d,_0x1fb5b7,_0x368fc8,messageTypes[_0x27c845(0x153)],_0x2264a2[_0x27c845(0xff)],'cluster-check-failed-'+global_registry[_0x27c845(0x1b2)],_0x2264a2[_0x27c845(0x1e0)]);continue;case'2':logger[_0x27c845(0xf7)](_0x368fc8);continue;case'3':_0x368fc8=_0x27c845(0x193)+global_registry[_0x27c845(0x1c8)]+_0x27c845(0x1a3)+global_registry[_0x27c845(0x16b)]+_0x27c845(0x150)+_0x377438;continue;case'4':_0x2a739f=null;continue;}break;}}_0x2a739f&&logger[_0x27c845(0x14e)](_0x27c845(0x13c)+global_registry[_0x27c845(0x1c8)]+_0x27c845(0x1c7));const _0x5c3a15=await _0x4c0fbb[_0x27c845(0x140)]();_0x2264a2[_0x27c845(0x12c)](printResponse,_0x2264a2['UMauC'],_0x5c3a15);const _0x359dd7=await _0x2264a2[_0x27c845(0x1f2)](curlRequest);_0x2264a2[_0x27c845(0x126)](printResponse,_0x2264a2[_0x27c845(0x1e3)],_0x359dd7);const _0xe41ee7=await _0x2264a2['ykqOq'](isTlsSupported,_0x2264a2[_0x27c845(0x11c)]);_0x2264a2[_0x27c845(0x126)](printResponse,_0x2264a2[_0x27c845(0x189)],_0xe41ee7);const _0x37f579={};_0x37f579[_0x27c845(0x19a)]=_0x2264a2[_0x27c845(0x128)],_0x37f579[_0x27c845(0x159)]=_0x266154;const _0x3fb25f={};_0x3fb25f[_0x27c845(0x19a)]=_0x2264a2[_0x27c845(0x182)],_0x3fb25f[_0x27c845(0x159)]=_0x5c3a15;const _0x1193c4={};_0x1193c4[_0x27c845(0x19a)]=_0x2264a2['Lexpy'],_0x1193c4['response']=_0x359dd7;const _0x695219={};_0x695219['header']=_0x2264a2[_0x27c845(0x154)],_0x695219['response']=_0xe41ee7;const _0x5676d0=[_0x37f579,_0x3fb25f,_0x1193c4,_0x695219],_0xc8ee76=await _0x2264a2[_0x27c845(0x126)](generateReport,_0x5676d0,_0x2a739f),_0x47d931=new Date(),_0x334c71=_0x47d931[_0x27c845(0x190)]()+'_'+_0x2264a2[_0x27c845(0x17b)](_0x47d931[_0x27c845(0x17e)](),0x1)+'_'+_0x47d931[_0x27c845(0x104)]()+'_'+_0x47d931[_0x27c845(0x145)]()+'_'+_0x47d931[_0x27c845(0x1f3)](),_0x19f695='log/report_'+_0x334c71+'.txt';fs[_0x27c845(0x1d4)](_0x19f695,_0xc8ee76,_0x2264a2[_0x27c845(0x1cf)]),logger[_0x27c845(0x14e)](_0x27c845(0x15e)+_0x19f695),process[_0x27c845(0x177)](0x0);}catch(_0x39e488){let _0x139bfd='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x39e488+'\x20';logger[_0x27c845(0xf7)](_0x139bfd),_0x139bfd+='\x0a'+JSON[_0x27c845(0x132)](_0x39e488[_0x27c845(0x137)]),logger['debug'](_0x27c845(0x15a)+_0x39e488['stack']);if(_0x1fb5b7){const _0x52797c={};_0x52797c['type']=WS_EVENTS[_0x27c845(0x146)],_0x52797c['message']=_0x139bfd,webSocketUtils[_0x27c845(0x14a)](_0x1fb5b7,_0x52797c,_0x2264a2[_0x27c845(0x1e0)],!![]);}await webSocketUtils[_0x27c845(0x12f)](0x7d0);const _0x2664cf={};_0x2664cf[_0x27c845(0xf7)]=_0x139bfd,await _0x2264a2[_0x27c845(0x1d1)](sendInstrumentationEvent,_0x58539d,_0x2264a2[_0x27c845(0xff)],messageTypes['ERROR'],_0x2264a2[_0x27c845(0x1cc)],_0x2664cf,_0x58539d),process['exit'](0x1);}};function a17_0x2fac(_0x3945f0,_0x543621){const _0x1743d0=a17_0x1743();return a17_0x2fac=function(_0x2fac47,_0x431bff){_0x2fac47=_0x2fac47-0xf7;let _0x31dfc8=_0x1743d0[_0x2fac47];return _0x31dfc8;},a17_0x2fac(_0x3945f0,_0x543621);}function a17_0x1743(){const _0x49c61b=['IoEBx','Error\x20Details:\x0a','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','OhGSW','cVkEa','iDZqp','\x20\x20Code:\x20','delay','jLnxk','hkvxQ','stringify','NMfWd','fLOUa','410fiWTNp','eZWrO','stack','N/A','NCeCf','QYWMX','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Cluster\x20`','accessResp','../../config/logger','join','checkAccess','authHeader','xnQiC','nMwHw','\x20data\x20:\x20','getUTCHours','LOG','<PasswordPlaceholder>','6165168EmRxUE','string','sendEventToBackend','dZhjL','4510572TJeUHi','ilMVi','info','ZYNuP','`\x20,error\x20:\x20','llfLz','JsBbS','ERROR','JqGms','nNYne','cloud-provider','status','hbWfT','response','stack\x20trace\x20','will\x20be\x20created','qhHGH','axXHg','Report\x20saved\x20in\x20','ViPXU','replace','region','body','dLApt','24dTiiQh','data','CLOUD_PROVIDER','DVdDR','bstackUsername','pre-check','command','clusterRegion','Missing\x20required\x20arguments:\x20','UTojG','TPGSL','3133hZonEZ','Grid\x20profile\x20fetched\x20for\x20pre-check','HLUDG','../../config/constants','DuwQv','366dDbjEL','method','Tool\x20Installed','exit','nrsab','Status:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','zdGMQ','mHVDL','SJAaz','getUTCMonth','PdEoX','code','eWXQj','cIvCh','MvIsm','OlqzE','cloud-provider-not-supported','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','3|4|2|0|1','aBOhc','xnZny','ywssK','GAwhb','description','\x20\x20Stack:\x20','options','vWQvV','getUTCFullYear','Setting\x20cloud\x20provider\x20as\x20','bstackAccesskey','unable\x20to\x20verify\x20if\x20cluster\x20`','EAkzZ','toLowerCase','\x20error\x20:\x20','4759385qxGSLP','parse','SSL\x20Configured','header','eCasj','find','MylTL','grid-profile','IjhFP','NIAJi','uEKbo','smUNi','`\x20is\x20present\x20in\x20region\x20`','builder','BxVvI','message','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','baNlo','WmqOs','ZmfGg','password','WLuDw','SJHWO','tMhbn','aAtNd','\x20region\x20-\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','cloudProvider','JAXiD','707784WvdVVW','CRTOQ','utf-8','Message:\x20','isTrialGridAccessible','VuJwC','UxKVY','pHmir','raOrO','User\x20Access','kRGbc','FWEKg','tAnag','HMmGy','dummy-grid','LcXiI','DQNus','Jxfyn','../../cloudproviders/utils','`\x20already\x20exists','clusterName','ZIABE','is\x20already\x20present','init','upoHo','iylDE','uuid','TSYCV','SLsrD','PdDjG','rJuvw','headers','writeFileSync','Browserstack','pre-check-grid-called','4nEJRTx','push','../../utils/instrumentationUtils','tJTjk','JmKby','readFileSync','cluster-name','ARhAD','length','xlHEE','ffgEe','MTCEK','xgrOw','\x20\x20Message:\x20','tdtKB','type','\x20===\x0a\x0a','VExYs','help','1086519RFDlIF','error\x20stack\x20:\x20','Pre-check\x20running\x20for\x20Cloud\x20-\x20','120519dSoIuG','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','zPXLm','hHimb','FXJKo','getUTCMinutes','gyvAv','split','133xtlEtM','error','PRfGn','Success','<UsernamePlaceholder>','HkVFb','gridProfile','reconnecting-websocket','grid\x20profile\x20flow\x20','oSzlp','SBrdR','Whitelisted\x20browserstack','desc','JtKKQ','getUTCDate','forEach','INFO','inNrk','../../utils/webSocketUtils','usage','connectionTimeout','ryRfw','grid','WlPVs','pre-check-failed','xlTNt','Failure','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pre_check',']\x20status\x20:\x20','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','name','username','epilogue','fNFQX','jZEnq','aSlhR','viVgT','TzClk','.\x20Please\x20provide\x20all\x20required\x20arguments.','vKVgY','got','pErvC','debug','LArxc','DPpeV','ClTqb','requestId','IvUIZ','Cluster\x20'];a17_0x1743=function(){return _0x49c61b;};return a17_0x1743();}
1
+ const a17_0x4fc318=a17_0x52f8;(function(_0x3bb263,_0x79fd5){const _0x112cb3=a17_0x52f8,_0x2204aa=_0x3bb263();while(!![]){try{const _0x383602=-parseInt(_0x112cb3(0x202))/0x1+-parseInt(_0x112cb3(0x16e))/0x2*(-parseInt(_0x112cb3(0x14c))/0x3)+parseInt(_0x112cb3(0x236))/0x4*(parseInt(_0x112cb3(0x21e))/0x5)+parseInt(_0x112cb3(0x162))/0x6+-parseInt(_0x112cb3(0x15c))/0x7*(parseInt(_0x112cb3(0x1d6))/0x8)+parseInt(_0x112cb3(0x188))/0x9*(-parseInt(_0x112cb3(0x15d))/0xa)+parseInt(_0x112cb3(0x1d4))/0xb;if(_0x383602===_0x79fd5)break;else _0x2204aa['push'](_0x2204aa['shift']());}catch(_0x2b5a7a){_0x2204aa['push'](_0x2204aa['shift']());}}}(a17_0x3887,0x74c77));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x4fc318(0x224)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x4fc318(0x1f9)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x4fc318(0x1b4)),webSocketUtils=require(a17_0x4fc318(0x20c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x4fc318(0x1c0)]=a17_0x4fc318(0x157),exports[a17_0x4fc318(0x1a8)]=a17_0x4fc318(0x215),exports[a17_0x4fc318(0x1a2)]=function(_0x59b4aa){const _0x33e765=a17_0x4fc318,_0x3e7b9c={};_0x3e7b9c[_0x33e765(0x1d1)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x3e7b9c[_0x33e765(0x1e7)]=_0x33e765(0x207),_0x3e7b9c[_0x33e765(0x1ef)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3e7b9c[_0x33e765(0x15f)]=_0x33e765(0x156),_0x3e7b9c[_0x33e765(0x16f)]=_0x33e765(0x158),_0x3e7b9c[_0x33e765(0x218)]=_0x33e765(0x193);const _0x56a051=_0x3e7b9c,_0x6f1e9c={};_0x6f1e9c[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x1d1)],_0x6f1e9c[_0x33e765(0x1a4)]=_0x56a051[_0x33e765(0x1e7)];const _0x3cad93={};_0x3cad93[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x1ef)],_0x3cad93[_0x33e765(0x1a4)]=_0x56a051['yZjth'];const _0x2d6c7f={};_0x2d6c7f[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x15f)],_0x2d6c7f[_0x33e765(0x1a4)]=_0x56a051[_0x33e765(0x1e7)];const _0x17a4fb={};_0x17a4fb[_0x33e765(0x1cd)]=_0x56a051[_0x33e765(0x16f)],_0x17a4fb[_0x33e765(0x1a4)]=_0x56a051[_0x33e765(0x1e7)];const _0x682057={};return _0x682057[_0x33e765(0x16d)]=_0x6f1e9c,_0x682057[_0x33e765(0x1aa)]=_0x3cad93,_0x682057[_0x33e765(0x1ea)]=_0x2d6c7f,_0x682057[_0x33e765(0x1bd)]=_0x17a4fb,_0x59b4aa['usage'](HELP_HEADER_MESSAGE[_0x33e765(0x1df)])[_0x33e765(0x171)](HELP_FOOTER_MESSAGE)['options'](_0x682057)[_0x33e765(0x193)](_0x56a051[_0x33e765(0x218)])[_0x33e765(0x1a3)];};function a17_0x52f8(_0x26963f,_0x23351f){const _0x3887b1=a17_0x3887();return a17_0x52f8=function(_0x52f84f,_0x55aae2){_0x52f84f=_0x52f84f-0x13d;let _0x47b176=_0x3887b1[_0x52f84f];return _0x47b176;},a17_0x52f8(_0x26963f,_0x23351f);}async function inputValidation(_0x50e845,_0x31f755){const _0x36a896=a17_0x4fc318,_0x276964={'myXNR':_0x36a896(0x1ea),'QheFS':_0x36a896(0x1f4),'PerOA':'cluster-name','KrcTT':'is\x20already\x20present','BOwdV':_0x36a896(0x18c),'VMTiL':_0x36a896(0x1aa),'BaiEE':function(_0x3efecd,_0x3ed9fa){return _0x3efecd+_0x3ed9fa;},'bIKnA':_0x36a896(0x1b8),'yNHbK':_0x36a896(0x1f0),'eRVnv':function(_0x4ff491,_0x33cd6a){return _0x4ff491||_0x33cd6a;},'NbUgb':'N/A','zuMcQ':'Error\x20Details:\x0a','tsTbK':_0x36a896(0x185),'myGul':_0x36a896(0x1bb),'gEEsD':_0x36a896(0x207),'xiJMC':_0x36a896(0x1f2),'SKnIg':_0x36a896(0x156),'JHZOo':_0x36a896(0x158),'qhETv':'help','NQKcR':function(_0x5ca35a,_0x164fdb){return _0x5ca35a!==_0x164fdb;},'PtEnU':'GJxvc','yhvUY':_0x36a896(0x1f1),'TUAIp':function(_0x1976a5,_0x466eaf){return _0x1976a5===_0x466eaf;},'KORbC':_0x36a896(0x1ce),'TuYKc':function(_0x2ccfaa,_0x147ac6){return _0x2ccfaa!==_0x147ac6;},'aGTog':_0x36a896(0x210),'uaGaW':'bXspO','hNrrs':_0x36a896(0x189),'prNwi':_0x36a896(0x1de),'jfGgK':'RpPAE','yviMi':function(_0x1aabf4,_0x39c1d5){return _0x1aabf4>_0x39c1d5;},'jEqTF':_0x36a896(0x1b7),'OoNTD':function(_0xa2b332,_0x31e70b,_0x549e07,_0x3a5716,_0xa60829,_0x3cc44f,_0x54b11b,_0x106481){return _0xa2b332(_0x31e70b,_0x549e07,_0x3a5716,_0xa60829,_0x3cc44f,_0x54b11b,_0x106481);},'juGBm':_0x36a896(0x1f8),'tVQFo':_0x36a896(0x19a),'Hbsby':function(_0x4b134b,_0x1ed780){return _0x4b134b!==_0x1ed780;},'ELRzm':_0x36a896(0x234),'RQDUp':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FYiXu':_0x36a896(0x17f),'fdhZI':function(_0x129328,_0x41a711){return _0x129328!==_0x41a711;},'TaZOl':_0x36a896(0x1b9),'ytNst':function(_0xa72cfb,_0x18ca8e){return _0xa72cfb===_0x18ca8e;},'BjHjo':_0x36a896(0x1eb),'aApKE':_0x36a896(0x150),'phAsU':function(_0x38621f,_0x1f1501,_0x220bad){return _0x38621f(_0x1f1501,_0x220bad);},'SGDaF':function(_0x292047,_0x4856d8,_0x3d0d12,_0x3644ce,_0x3e5a62,_0x28f765){return _0x292047(_0x4856d8,_0x3d0d12,_0x3644ce,_0x3e5a62,_0x28f765);},'Wxqfa':_0x36a896(0x22d),'pjnwr':_0x36a896(0x1bd),'OfbqD':function(_0x52acb8,_0x312d93){return _0x52acb8!==_0x312d93;},'RvNww':_0x36a896(0x228),'PRrQH':_0x36a896(0x1c5),'hNFCZ':function(_0x57bd98,_0x5d167e){return _0x57bd98(_0x5d167e);},'bbVkq':function(_0x3b309c,_0x4b1259){return _0x3b309c===_0x4b1259;},'NpsQT':_0x36a896(0x233),'GFWEd':_0x36a896(0x1be),'lHtLV':function(_0x3ec8a0,_0x4a6256){return _0x3ec8a0!==_0x4a6256;},'APRWa':_0x36a896(0x23a),'jRdWq':'CLeai','kSNsn':_0x36a896(0x172),'tFwgB':_0x36a896(0x13d),'tGgEx':'XkFjG','lMtdW':_0x36a896(0x23b),'wkfED':'MpZVW'};let _0x4067ef;try{if(_0x276964[_0x36a896(0x1cb)](_0x276964[_0x36a896(0x1ee)],_0x276964['yhvUY'])){if(_0x50e845[_0x36a896(0x147)]||_0x50e845['cloudProvider']||_0x50e845[_0x36a896(0x1ea)]){if(_0x276964['TUAIp'](_0x276964['KORbC'],_0x276964[_0x36a896(0x13e)])){const _0x58140a=[];!_0x50e845[_0x36a896(0x147)]&&(_0x276964[_0x36a896(0x212)](_0x276964['aGTog'],_0x276964[_0x36a896(0x173)])?_0x58140a[_0x36a896(0x14d)](_0x276964[_0x36a896(0x1a1)]):_0x487fed[_0x36a896(0x14d)](_0x276964[_0x36a896(0x1d8)]));;if(!_0x50e845[_0x36a896(0x18a)]){if(_0x276964[_0x36a896(0x206)](_0x276964['hNrrs'],_0x276964[_0x36a896(0x151)])){const _0x39cb78={};_0x39cb78[_0x36a896(0x1a4)]=_0x2a774c[_0x36a896(0x169)],_0x39cb78['message']=_0x2501ac,_0x5cef23[_0x36a896(0x20b)](_0x545545,_0x39cb78,_0x276964[_0x36a896(0x153)],!![]);}else _0x58140a[_0x36a896(0x14d)](_0x276964['VMTiL']);};!_0x50e845[_0x36a896(0x1ea)]&&(_0x276964[_0x36a896(0x1cb)](_0x276964[_0x36a896(0x223)],_0x276964[_0x36a896(0x223)])?_0x3fbebb[_0x36a896(0x14d)](_0x276964['PerOA']):_0x58140a[_0x36a896(0x14d)](_0x276964[_0x36a896(0x1d8)]));;_0x276964['yviMi'](_0x58140a[_0x36a896(0x15e)],0x0)&&(_0x276964[_0x36a896(0x212)](_0x276964[_0x36a896(0x191)],_0x276964[_0x36a896(0x191)])?_0x2bab18+='Cluster\x20'+_0x1d6ad5[_0x36a896(0x147)]+'\x20'+(_0x447701?_0x276964[_0x36a896(0x159)]:_0x276964[_0x36a896(0x20d)])+'\x0a\x0a':(_0x4067ef=_0x36a896(0x152)+_0x58140a[_0x36a896(0x14e)](',\x20')+_0x36a896(0x19b),await _0x276964['OoNTD'](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes['ERROR'],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x18b)],_0x276964['QheFS']),logger[_0x36a896(0x1f4)](_0x4067ef),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x36a896(0x230)](_0x50e845[_0x36a896(0x18a)][_0x36a896(0x235)]())&&(_0x276964[_0x36a896(0x163)](_0x276964[_0x36a896(0x221)],_0x276964[_0x36a896(0x221)])?_0x44e0cc[_0x36a896(0x14d)](_0x276964['VMTiL']):(_0x4067ef=_0x276964[_0x36a896(0x239)],await _0x276964['OoNTD'](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes[_0x36a896(0x209)],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x21d)],_0x276964[_0x36a896(0x153)]),logger[_0x36a896(0x1f4)](_0x4067ef),!_0x50e845[_0x36a896(0x18a)]&&(_0x276964['fdhZI'](_0x276964[_0x36a896(0x178)],_0x276964[_0x36a896(0x178)])?_0x1883f1[_0x36a896(0x167)](_0x36a896(0x148)+_0x40fdc4[_0x36a896(0x147)]+_0x36a896(0x164)):(logger[_0x36a896(0x167)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x36a896(0x22a)]+'\x20'),_0x50e845[_0x36a896(0x18a)]=DEFAULT_CLUSTER_DETAILS[_0x36a896(0x22a)])))),global_registry[_0x36a896(0x147)]=_0x50e845[_0x36a896(0x147)],global_registry[_0x36a896(0x18a)]=_0x50e845['cloudProvider'],global_registry[_0x36a896(0x15a)]=_0x50e845[_0x36a896(0x1ea)];}else _0x8bf3ba+='Cluster\x20'+_0x3d6142['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else{if(_0x50e845[_0x36a896(0x23d)]){if(_0x276964['ytNst'](_0x276964['BjHjo'],_0x276964['BjHjo'])){global_registry[_0x36a896(0x23d)]=_0x50e845[_0x36a896(0x23d)],logger[_0x36a896(0x14f)]('grid\x20profile\x20flow\x20'+_0x50e845[_0x36a896(0x23d)]);const _0x539dcb='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x1398ae={};_0x1398ae[_0x36a896(0x1e3)]=_0x276964[_0x36a896(0x21c)],_0x1398ae[_0x36a896(0x1e8)]=global_registry[_0x36a896(0x18d)],_0x1398ae[_0x36a896(0x23e)]=![];const _0x4be680=_0x1398ae,_0x232784=await _0x276964[_0x36a896(0x165)](got,_0x539dcb,_0x4be680),_0x58f0ef=await _0x276964['SGDaF'](responseValidation,_0x232784,_0x276964[_0x36a896(0x1ed)],_0x276964[_0x36a896(0x200)],_0x50e845,_0x31f755);let _0x3b8b8b={};if(_0x276964[_0x36a896(0x206)](_0x58f0ef,0xc8)){if(_0x276964[_0x36a896(0x217)](_0x276964[_0x36a896(0x1c3)],_0x276964[_0x36a896(0x1e2)])){const _0x44c31b=JSON[_0x36a896(0x1e6)](_0x232784['body']),_0x161cac=_0x44c31b[_0x36a896(0x15b)](_0x3f82c5=>_0x3f82c5[_0x36a896(0x142)]===_0x50e845[_0x36a896(0x23d)])||null;if(_0x276964[_0x36a896(0x203)](isUndefined,_0x161cac))_0x276964[_0x36a896(0x198)](_0x276964['NpsQT'],_0x276964[_0x36a896(0x20a)])?(_0x4067ef=_0x36a896(0x160)+_0x50e845[_0x36a896(0x23d)]+_0x36a896(0x1a6),await _0x276964[_0x36a896(0x219)](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes[_0x36a896(0x209)],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x1d0)],_0x276964[_0x36a896(0x153)]),logger[_0x36a896(0x1f4)](_0x4067ef),process['exit'](0x1)):_0xb2119b['error'](_0x36a896(0x179)+_0x19ee7c[_0x36a896(0x1f4)][_0x36a896(0x1e0)]);else{if(_0x276964[_0x36a896(0x20e)](_0x276964[_0x36a896(0x17a)],_0x276964[_0x36a896(0x1b5)]))_0x3b8b8b=_0x161cac;else{const {header:_0x1e6ce9,response:_0x1e7110}=_0x39da8a,{status:_0x589d9b,data:_0x975bbc,error:_0x366ea8}=_0x1e7110;_0x520b97+=_0x1e6ce9+'\x20#'+_0x276964[_0x36a896(0x166)](_0x2ec4c3,0x1)+'\x0a',_0x2d101d+='Status:\x20'+(_0x589d9b?_0x276964[_0x36a896(0x192)]:_0x276964[_0x36a896(0x154)])+'\x0a',_0x40467b+=_0x36a896(0x199)+_0x276964['eRVnv'](_0x975bbc,_0x276964['NbUgb'])+'\x0a',_0x366ea8&&(_0xe9b73+=_0x276964[_0x36a896(0x1b6)],_0x4322c7+=_0x36a896(0x1fa)+(_0x366ea8[_0x36a896(0x187)]||_0x276964[_0x36a896(0x1fe)])+'\x0a',_0x4bde2e+=_0x36a896(0x1ac)+(_0x366ea8[_0x36a896(0x18f)]||_0x276964[_0x36a896(0x1fe)])+'\x0a',_0x10cf8d+=_0x36a896(0x1c2)+(_0x366ea8[_0x36a896(0x1e0)]||_0x276964[_0x36a896(0x1fe)])+'\x0a'),_0x27d542+='\x0a\x0a';}}}else _0x3a6cbf[_0x36a896(0x140)](0x1);}else _0x276964[_0x36a896(0x198)](_0x276964[_0x36a896(0x168)],_0x276964[_0x36a896(0x168)])?process[_0x36a896(0x140)](0x1):(_0x261cee[_0x36a896(0x1f4)](_0x276964['tsTbK']),_0x3494ed[_0x36a896(0x140)](0x1));const _0x366965={};_0x366965['type']=WS_EVENTS[_0x36a896(0x169)],_0x366965['message']=_0x276964[_0x36a896(0x186)],webSocketUtils[_0x36a896(0x20b)](_0x31f755,_0x366965),global_registry['cloudProvider']=_0x3b8b8b['cloudProvider'],global_registry['clusterRegion']=_0x3b8b8b[_0x36a896(0x1ea)],global_registry[_0x36a896(0x147)]=_0x3b8b8b[_0x36a896(0x147)];}else{const _0x20437a={};_0x20437a[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x1c9)],_0x20437a[_0x36a896(0x1a4)]=_0x276964[_0x36a896(0x180)];const _0x5e0f20={};_0x5e0f20[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x1cc)],_0x5e0f20[_0x36a896(0x1a4)]=_0x276964[_0x36a896(0x180)];const _0x5ee055={};_0x5ee055[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x21f)],_0x5ee055[_0x36a896(0x1a4)]=_0x276964[_0x36a896(0x180)];const _0x3c2eb1={};_0x3c2eb1[_0x36a896(0x1cd)]=_0x276964[_0x36a896(0x144)],_0x3c2eb1[_0x36a896(0x1a4)]=_0x276964['gEEsD'];const _0x1b0535={};return _0x1b0535[_0x36a896(0x16d)]=_0x20437a,_0x1b0535[_0x36a896(0x1aa)]=_0x5e0f20,_0x1b0535[_0x36a896(0x1ea)]=_0x5ee055,_0x1b0535[_0x36a896(0x1bd)]=_0x3c2eb1,_0x1cb03d['usage'](_0x258871['pre_check'])[_0x36a896(0x171)](_0x39b840)['options'](_0x1b0535)[_0x36a896(0x193)](_0x276964[_0x36a896(0x182)])[_0x36a896(0x1a3)];}}else _0x276964[_0x36a896(0x217)](_0x276964[_0x36a896(0x194)],_0x276964[_0x36a896(0x194)])?(_0xd31e5b[_0x36a896(0x167)]('['+_0x102e87+_0x36a896(0x17c)+_0x3c5478[_0x36a896(0x1dc)]+'\x20data\x20:\x20'+_0x13abeb['data']+_0x36a896(0x19e)+_0x555f61[_0x36a896(0x1f4)]),_0x21bb38['error']&&_0xe1a6f5[_0x36a896(0x1f4)](_0x36a896(0x179)+_0x4a8847[_0x36a896(0x1f4)][_0x36a896(0x1e0)])):(logger[_0x36a896(0x1f4)](_0x276964[_0x36a896(0x1a7)]),process[_0x36a896(0x140)](0x1));}}else _0x2676fc+=_0x276964[_0x36a896(0x1b6)],_0x399dbd+='\x20\x20Message:\x20'+(_0x359652['message']||_0x276964[_0x36a896(0x1fe)])+'\x0a',_0x4bbd87+=_0x36a896(0x1ac)+(_0x2ecfb6[_0x36a896(0x18f)]||_0x276964['NbUgb'])+'\x0a',_0x83fedc+='\x20\x20Stack:\x20'+(_0x172da8[_0x36a896(0x1e0)]||_0x276964[_0x36a896(0x1fe)])+'\x0a';}catch(_0x41f753){_0x276964[_0x36a896(0x17e)](_0x276964[_0x36a896(0x195)],_0x276964[_0x36a896(0x1ab)])?(_0x23e7b0['info']('Setting\x20cloud\x20provider\x20as\x20'+_0x5568d9[_0x36a896(0x22a)]+'\x20'),_0x20a375[_0x36a896(0x18a)]=_0x3022eb[_0x36a896(0x22a)]):(_0x4067ef=_0x36a896(0x204)+_0x41f753+':\x20'+_0x41f753[_0x36a896(0x1e0)],logger['error'](_0x4067ef),await _0x276964[_0x36a896(0x219)](reportToGalactusAndSendToEDS,_0x50e845,_0x31f755,_0x4067ef,messageTypes[_0x36a896(0x209)],_0x276964[_0x36a896(0x220)],_0x276964[_0x36a896(0x21d)],_0x276964[_0x36a896(0x153)]),process['exit'](0x1));}}function a17_0x3887(){const _0x369d43=['message','9XAtuuP','ssdor','cloudProvider','tVQFo','will\x20be\x20created','authHeader','forEach','code','MfaGM','jEqTF','bIKnA','help','tGgEx','lMtdW','zaOtB','aDtzY','bbVkq','Message:\x20','pre-check-cluster-args-not-passed','.\x20Please\x20provide\x20all\x20required\x20arguments.','PsfSy','isClusterPresent','\x20error\x20:\x20','epIbH','WVDkZ','PerOA','builder','argv','type','zQZyg','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','tsTbK','desc','response','cloud-provider','wkfED','\x20\x20Code:\x20','readFileSync','EKxfR','accessResp','isTrialGridAccessible','Pre-check\x20running\x20for\x20Cloud\x20-\x20','requestId','ZtAmo','../../cloudproviders/utils','jRdWq','zuMcQ','SFmQs','Success','jSoFC','Report\x20saved\x20in\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','WTxZD','grid-profile','pre-check-grid-profile-empty','isCliToolInstalled','command','Browserstack','\x20\x20Stack:\x20','RvNww','N/A','nYNRP','SSL\x20Configured','getUTCMonth','<UsernamePlaceholder>','myGul','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','NQKcR','xiJMC','description','LOsSK','mPMnc','GFWEd','BsVTG','stringify','username','2224992OeEYRb','Ujzwu','2582792mqbzFa','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','myXNR','VRELE','NlPeh','\x20===\x0a\x0a','status','password','oJTBw','pre_check','stack','idpTD','PRrQH','method','handler','dDdYF','parse','yZjth','headers','BRBLG','region','pizuD','\x20region\x20-\x20','Wxqfa','PtEnU','MqCnT','Failure','HIJXS','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','vovtb','error','bstackAccesskey','delay','IIlQk','pre-check-grid-called','../../config/logger','\x20\x20Message:\x20','qIgIf','ldOmI','Zhpzn','NbUgb','Whitelisted\x20browserstack','pjnwr','getUTCMinutes','883537Nquqgn','hNFCZ','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','`\x20is\x20present\x20in\x20region\x20`','TUAIp','string','bstackUsername','ERROR','NpsQT','sendEventToBackend','../../utils/webSocketUtils','BOwdV','lHtLV','isTls1_2_SUPPORTED','WwUqP','jdeVV','TuYKc','checkAccess','QzBoJ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','data','OfbqD','TrJZY','OoNTD','QHiJJ','replace','aApKE','FYiXu','8335wBjLLY','SKnIg','juGBm','ELRzm','dummy-grid','jfGgK','reconnecting-websocket','utf-8','PtbUI','`\x20,error\x20:\x20','aZbHg','LFeeh','CLOUD_PROVIDER','===\x20Precheck\x20Report\x20-\x20','tFzXv','pre-check','\x20data\x20:\x20','getUTCFullYear','includes','INFO','GPMbf','YporY','IgHmo','toLowerCase','480FPRvGO','<PasswordPlaceholder>','pEOEi','RQDUp','DVKhw','OmDNJ','Error\x20Details:\x0a','gridProfile','throwHttpErrors','Grid\x20profile\x20fetched\x20for\x20pre-check','KORbC','yjbDU','exit','WebSocket','name','.txt','JHZOo','header','3|2|4|1|0','clusterName','Cluster\x20`','YvGXi','User\x20Access','GYAre','3YNJVnp','push','join','debug','GET','prNwi','Missing\x20required\x20arguments:\x20','QheFS','yNHbK','Cluster\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','grid','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','KrcTT','clusterRegion','find','7GlFCYQ','2174030cORmXo','length','vwuZu','Invalid\x20input.\x20grid\x20profiles:\x20','TLSv1_2_client_method','3783906lJpiyh','Hbsby','`\x20already\x20exists','phAsU','BaiEE','info','kSNsn','LOG','ENMZG','Tool\x20Installed','connectionTimeout','cluster-name','1738306JuJqKP','VVOTQ','stack\x20trace\x20','epilogue','iQGMN','uaGaW','aPioD','Ijpjr','cdTSF','Cluster\x20details\x0a-----------------------\x0a','TaZOl','error\x20stack\x20:\x20','APRWa','iVOqm',']\x20status\x20:\x20','YDEEp','ytNst','cloud-provider-not-supported','gEEsD','split','qhETv','writeFileSync','BrnDc','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','tFwgB'];a17_0x3887=function(){return _0x369d43;};return a17_0x3887();}function printResponse(_0xe2c939,_0xdcd35a){const _0x2aad10=a17_0x4fc318,_0x6e0af8={};_0x6e0af8[_0x2aad10(0x1d9)]=function(_0xc83bde,_0x16aaab){return _0xc83bde!==_0x16aaab;},_0x6e0af8[_0x2aad10(0x184)]=_0x2aad10(0x211),_0x6e0af8[_0x2aad10(0x214)]=_0x2aad10(0x1bc);const _0x186792=_0x6e0af8;logger['info']('['+_0xe2c939+_0x2aad10(0x17c)+_0xdcd35a[_0x2aad10(0x1dc)]+_0x2aad10(0x22e)+_0xdcd35a[_0x2aad10(0x216)]+_0x2aad10(0x19e)+_0xdcd35a[_0x2aad10(0x1f4)]),_0xdcd35a[_0x2aad10(0x1f4)]&&(_0x186792['VRELE'](_0x186792[_0x2aad10(0x184)],_0x186792['QzBoJ'])?logger[_0x2aad10(0x1f4)]('error\x20stack\x20:\x20'+_0xdcd35a[_0x2aad10(0x1f4)][_0x2aad10(0x1e0)]):_0x48c57b=_0x4e85d7);}async function generateReport(_0x5a8240,_0x2a9b0c){const _0x5140a4=a17_0x4fc318,_0x3ec35e={'CRDBs':function(_0x5f5c85,_0x11d6b2){return _0x5f5c85+_0x11d6b2;},'vovtb':_0x5140a4(0x1b8),'PtbUI':_0x5140a4(0x1f0),'cdTSF':function(_0x20dc7e,_0x3a5825){return _0x20dc7e||_0x3a5825;},'WVDkZ':_0x5140a4(0x1c4),'vZCEI':_0x5140a4(0x23c),'lPXEZ':_0x5140a4(0x177),'RdXmJ':function(_0x2f35a6,_0xda8e69){return _0x2f35a6!=_0xda8e69;},'qIgIf':'is\x20already\x20present','MruJG':_0x5140a4(0x18c),'QYAHY':function(_0x586721){return _0x586721();}};let _0xd4ac4c=_0x5140a4(0x22b)+global_registry[_0x5140a4(0x18a)]+_0x5140a4(0x1db);return _0x5a8240[_0x5140a4(0x18e)]((_0x1b6a1c,_0x4ccd13)=>{const _0x11fe6d=_0x5140a4,{header:_0x46d76e,response:_0x3f0249}=_0x1b6a1c,{status:_0x35d23d,data:_0x5ae603,error:_0x41cb2c}=_0x3f0249;_0xd4ac4c+=_0x46d76e+'\x20#'+_0x3ec35e['CRDBs'](_0x4ccd13,0x1)+'\x0a',_0xd4ac4c+='Status:\x20'+(_0x35d23d?_0x3ec35e[_0x11fe6d(0x1f3)]:_0x3ec35e[_0x11fe6d(0x226)])+'\x0a',_0xd4ac4c+=_0x11fe6d(0x199)+_0x3ec35e[_0x11fe6d(0x176)](_0x5ae603,_0x3ec35e['WVDkZ'])+'\x0a',_0x41cb2c&&(_0xd4ac4c+=_0x3ec35e['vZCEI'],_0xd4ac4c+='\x20\x20Message:\x20'+(_0x41cb2c[_0x11fe6d(0x187)]||_0x3ec35e[_0x11fe6d(0x1a0)])+'\x0a',_0xd4ac4c+='\x20\x20Code:\x20'+(_0x41cb2c[_0x11fe6d(0x18f)]||_0x3ec35e[_0x11fe6d(0x1a0)])+'\x0a',_0xd4ac4c+='\x20\x20Stack:\x20'+(_0x41cb2c[_0x11fe6d(0x1e0)]||_0x3ec35e[_0x11fe6d(0x1a0)])+'\x0a'),_0xd4ac4c+='\x0a\x0a';}),_0xd4ac4c+=_0x3ec35e['lPXEZ'],_0x3ec35e['RdXmJ'](_0x2a9b0c,null)?_0xd4ac4c+=_0x5140a4(0x155)+global_registry[_0x5140a4(0x147)]+'\x20'+(_0x2a9b0c?_0x3ec35e[_0x5140a4(0x1fb)]:_0x3ec35e['MruJG'])+'\x0a\x0a':_0xd4ac4c+=_0x5140a4(0x155)+global_registry[_0x5140a4(0x147)]+_0x5140a4(0x1ca),_0xd4ac4c+=_0x3ec35e['QYAHY'](getSystemMetaData),_0xd4ac4c;};exports[a17_0x4fc318(0x1e4)]=async function(_0x337da0){const _0x5505bc=a17_0x4fc318,_0x44c842={'BRBLG':function(_0x65e62c){return _0x65e62c();},'dDdYF':function(_0x3306d9){return _0x3306d9();},'aPioD':_0x5505bc(0x1d7),'PsfSy':function(_0x37e971,_0xe33903,_0x34ebd6,_0xd15151,_0x536b63,_0x5045f2,_0x1447d9,_0x1bf5d9){return _0x37e971(_0xe33903,_0x34ebd6,_0xd15151,_0x536b63,_0x5045f2,_0x1447d9,_0x1bf5d9);},'iVOqm':'pre-check-grid-called','yjbDU':'credential-not-found','idpTD':_0x5505bc(0x1f4),'YDEEp':function(_0x633bd1,_0x33bab1,_0x5070a3,_0x2902b4,_0x379ace,_0x36310f,_0x43c28e){return _0x633bd1(_0x33bab1,_0x5070a3,_0x2902b4,_0x379ace,_0x36310f,_0x43c28e);},'aDtzY':_0x5505bc(0x1c8),'epIbH':_0x5505bc(0x237),'tFzXv':function(_0x1f4ae1,_0x20e00a,_0x5dae77){return _0x1f4ae1(_0x20e00a,_0x5dae77);},'ldOmI':_0x5505bc(0x222),'GYAre':function(_0x17352d,_0x134791,_0x354723){return _0x17352d(_0x134791,_0x354723);},'EKxfR':'toolInstalledResp','GPMbf':_0x5505bc(0x146),'zQZyg':function(_0x572928,_0x564c4c,_0xaa576b,_0xa126a4,_0x256359,_0x358321,_0x22869b,_0x5c8340){return _0x572928(_0x564c4c,_0xaa576b,_0xa126a4,_0x256359,_0x358321,_0x22869b,_0x5c8340);},'pEOEi':function(_0x5ac4ab,_0x51efe6,_0x1093a9){return _0x5ac4ab(_0x51efe6,_0x1093a9);},'Ijpjr':_0x5505bc(0x1af),'QHiJJ':function(_0x5cb59a){return _0x5cb59a();},'MfaGM':function(_0x3d299a,_0x5cb40a,_0x4c084f){return _0x3d299a(_0x5cb40a,_0x4c084f);},'ENMZG':_0x5505bc(0x1b0),'IIlQk':function(_0x449e41,_0x42972a){return _0x449e41(_0x42972a);},'mPMnc':_0x5505bc(0x161),'Zhpzn':function(_0x3de591,_0x2953fe,_0x2ea5b7){return _0x3de591(_0x2953fe,_0x2ea5b7);},'YFiDi':_0x5505bc(0x20f),'YvGXi':_0x5505bc(0x16b),'NlPeh':_0x5505bc(0x14a),'zaOtB':_0x5505bc(0x1ff),'Ujzwu':_0x5505bc(0x1c6),'hjjcT':function(_0x121e75,_0x5daf8f,_0x53dd4b){return _0x121e75(_0x5daf8f,_0x53dd4b);},'XGSKw':function(_0xa121b4,_0x3cddaa){return _0xa121b4+_0x3cddaa;},'AtvEq':_0x5505bc(0x225),'ZtAmo':function(_0x4251ab,_0x5b9123,_0x26a00d,_0x434834,_0x3f672c,_0x346552,_0x17027f){return _0x4251ab(_0x5b9123,_0x26a00d,_0x434834,_0x3f672c,_0x346552,_0x17027f);},'LFeeh':'pre-check-failed'};let _0x38bb99,_0x151a74;try{global_registry[_0x5505bc(0x1b2)]=_0x44c842[_0x5505bc(0x1e9)](uuidv4);!fs['existsSync'](_0x44c842[_0x5505bc(0x1e5)](getCredentialsPath))&&(_0x151a74=_0x44c842[_0x5505bc(0x174)],logger['error'](_0x151a74),await _0x44c842[_0x5505bc(0x19c)](reportToGalactusAndSendToEDS,_0x337da0,_0x38bb99,_0x151a74,messageTypes['ERROR'],_0x44c842['iVOqm'],_0x44c842[_0x5505bc(0x13f)],_0x44c842[_0x5505bc(0x1e1)]),process[_0x5505bc(0x140)](0x1));_0x44c842[_0x5505bc(0x17d)](sendInstrumentationEvent,_0x337da0,_0x44c842[_0x5505bc(0x17b)],messageTypes[_0x5505bc(0x231)],null,null,_0x337da0);const _0x29797b=JSON[_0x5505bc(0x1e6)](fs[_0x5505bc(0x1ad)](_0x44c842[_0x5505bc(0x1e9)](getCredentialsPath)));global_registry['bstackUsername']=_0x29797b[_0x5505bc(0x1c1)][_0x5505bc(0x1d3)],global_registry['bstackAccesskey']=_0x29797b['Browserstack'][_0x5505bc(0x1dd)];const _0x1e9407=WS_ENDPOINT[_0x5505bc(0x21b)](_0x44c842[_0x5505bc(0x197)],_0x29797b[_0x5505bc(0x1c1)][_0x5505bc(0x1d3)])[_0x5505bc(0x21b)](_0x44c842[_0x5505bc(0x19f)],_0x29797b[_0x5505bc(0x1c1)]['password']),_0x2b20b7={};_0x2b20b7[_0x5505bc(0x141)]=ws,_0x2b20b7[_0x5505bc(0x16c)]=0x36ee80,_0x38bb99=new ReconnectingWebSocket(_0x1e9407,[],_0x2b20b7),global_registry[_0x5505bc(0x18d)]=_0x44c842[_0x5505bc(0x22c)](getAuthHeader,global_registry[_0x5505bc(0x208)],global_registry[_0x5505bc(0x1f5)]),await _0x44c842[_0x5505bc(0x22c)](inputValidation,_0x337da0,_0x38bb99),logger[_0x5505bc(0x167)](_0x5505bc(0x1b1)+global_registry[_0x5505bc(0x18a)]+_0x5505bc(0x1ec)+global_registry[_0x5505bc(0x15a)]);let _0x520275=await _0x44c842[_0x5505bc(0x17d)](getCloudProviderObjectWithOutInit,global_registry[_0x5505bc(0x18a)],global_registry[_0x5505bc(0x147)],_0x44c842[_0x5505bc(0x1fc)],_0x38bb99,webSocketUtils,_0x337da0);const _0x23a8e5=await _0x520275[_0x5505bc(0x1bf)]();_0x44c842[_0x5505bc(0x14b)](printResponse,_0x44c842[_0x5505bc(0x1ae)],_0x23a8e5),_0x520275=await _0x520275['init']();let _0x38ade3=![];try{_0x38ade3=await _0x520275[_0x5505bc(0x19d)]();}catch(_0x22950f){const _0x2bc9ac=_0x44c842[_0x5505bc(0x232)][_0x5505bc(0x181)]('|');let _0x2ae670=0x0;while(!![]){switch(_0x2bc9ac[_0x2ae670++]){case'0':await _0x44c842[_0x5505bc(0x1a5)](reportToGalactusAndSendToEDS,_0x337da0,_0x38bb99,_0x151a74,messageTypes[_0x5505bc(0x209)],_0x44c842[_0x5505bc(0x17b)],'cluster-check-failed-'+global_registry['cloudProvider'],_0x44c842['idpTD']);continue;case'1':_0x151a74+='\x0a'+JSON[_0x5505bc(0x1d2)](_0x22950f[_0x5505bc(0x1e0)]);continue;case'2':_0x38ade3=null;continue;case'3':_0x151a74='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x5505bc(0x147)]+_0x5505bc(0x205)+global_registry[_0x5505bc(0x15a)]+_0x5505bc(0x227)+_0x22950f;continue;case'4':logger[_0x5505bc(0x1f4)](_0x151a74);continue;}break;}}_0x38ade3&&logger['info'](_0x5505bc(0x148)+global_registry[_0x5505bc(0x147)]+_0x5505bc(0x164));const _0x55c6ba=await _0x520275[_0x5505bc(0x213)]();_0x44c842[_0x5505bc(0x238)](printResponse,_0x44c842[_0x5505bc(0x175)],_0x55c6ba);const _0x596829=await _0x44c842[_0x5505bc(0x21a)](curlRequest);_0x44c842[_0x5505bc(0x190)](printResponse,_0x44c842[_0x5505bc(0x16a)],_0x596829);const _0x488a5d=await _0x44c842[_0x5505bc(0x1f7)](isTlsSupported,_0x44c842[_0x5505bc(0x1cf)]);_0x44c842[_0x5505bc(0x1fd)](printResponse,_0x44c842['YFiDi'],_0x488a5d);const _0x38b403={};_0x38b403[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x149)],_0x38b403[_0x5505bc(0x1a9)]=_0x23a8e5;const _0x26adbc={};_0x26adbc[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x1da)],_0x26adbc[_0x5505bc(0x1a9)]=_0x55c6ba;const _0x34b401={};_0x34b401[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x196)],_0x34b401[_0x5505bc(0x1a9)]=_0x596829;const _0x248b85={};_0x248b85[_0x5505bc(0x145)]=_0x44c842[_0x5505bc(0x1d5)],_0x248b85[_0x5505bc(0x1a9)]=_0x488a5d;const _0x2a02d4=[_0x38b403,_0x26adbc,_0x34b401,_0x248b85],_0xa08480=await _0x44c842['hjjcT'](generateReport,_0x2a02d4,_0x38ade3),_0x334878=new Date(),_0x599873=_0x334878[_0x5505bc(0x22f)]()+'_'+_0x44c842['XGSKw'](_0x334878[_0x5505bc(0x1c7)](),0x1)+'_'+_0x334878['getUTCDate']()+'_'+_0x334878['getUTCHours']()+'_'+_0x334878[_0x5505bc(0x201)](),_0x428ba9='log/report_'+_0x599873+_0x5505bc(0x143);fs[_0x5505bc(0x183)](_0x428ba9,_0xa08480,_0x44c842['AtvEq']),logger[_0x5505bc(0x167)](_0x5505bc(0x1ba)+_0x428ba9),process['exit'](0x0);}catch(_0x5914e0){let _0x16e434='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x5914e0+'\x20';logger[_0x5505bc(0x1f4)](_0x16e434),_0x16e434+='\x0a'+JSON['stringify'](_0x5914e0[_0x5505bc(0x1e0)]),logger[_0x5505bc(0x14f)](_0x5505bc(0x170)+_0x5914e0[_0x5505bc(0x1e0)]);if(_0x38bb99){const _0x340eee={};_0x340eee['type']=WS_EVENTS[_0x5505bc(0x169)],_0x340eee[_0x5505bc(0x187)]=_0x16e434,webSocketUtils[_0x5505bc(0x20b)](_0x38bb99,_0x340eee,_0x44c842[_0x5505bc(0x1e1)],!![]);}await webSocketUtils[_0x5505bc(0x1f6)](0x7d0);const _0x12bb18={};_0x12bb18[_0x5505bc(0x1f4)]=_0x16e434,await _0x44c842[_0x5505bc(0x1b3)](sendInstrumentationEvent,_0x337da0,_0x44c842['iVOqm'],messageTypes[_0x5505bc(0x209)],_0x44c842[_0x5505bc(0x229)],_0x12bb18,_0x337da0),process[_0x5505bc(0x140)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x56cf18=a18_0x2eb4;function a18_0x148f(){const _0x149bc4=['desc','commandDir','Start\x20an\x20existing\x20Automation\x20grid.','21VpqqSU','vvoIM','command','11MsVWed','48474pvCNdM','100ynCtpf','start_commands','9flVgKj','604596VNcLOu','help','216735cZsKlU','start','demandCommand','recommendCommands','147sggpKs','46660rJBzVt','handler','1005136OOmTAQ','builder','LsAhf','../config/constants','epilogue','10483360bCodXO','25876068jDgdCJ'];a18_0x148f=function(){return _0x149bc4;};return a18_0x148f();}function a18_0x2eb4(_0x25587d,_0x58a5cd){const _0x148f59=a18_0x148f();return a18_0x2eb4=function(_0x2eb4bb,_0x3d0590){_0x2eb4bb=_0x2eb4bb-0x1eb;let _0x3902f1=_0x148f59[_0x2eb4bb];return _0x3902f1;},a18_0x2eb4(_0x25587d,_0x58a5cd);}(function(_0x41e31f,_0x37eb2b){const _0x36d477=a18_0x2eb4,_0x3de143=_0x41e31f();while(!![]){try{const _0x5dc526=-parseInt(_0x36d477(0x1f2))/0x1+parseInt(_0x36d477(0x1fd))/0x2*(-parseInt(_0x36d477(0x1fc))/0x3)+parseInt(_0x36d477(0x1f3))/0x4*(parseInt(_0x36d477(0x1f8))/0x5)+parseInt(_0x36d477(0x1f6))/0x6*(-parseInt(_0x36d477(0x1ee))/0x7)+-parseInt(_0x36d477(0x1ff))/0x8*(parseInt(_0x36d477(0x1f5))/0x9)+-parseInt(_0x36d477(0x204))/0xa+-parseInt(_0x36d477(0x1f1))/0xb*(-parseInt(_0x36d477(0x205))/0xc);if(_0x5dc526===_0x37eb2b)break;else _0x3de143['push'](_0x3de143['shift']());}catch(_0x5efa3c){_0x3de143['push'](_0x3de143['shift']());}}}(a18_0x148f,0x8babe));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x56cf18(0x202));exports[a18_0x56cf18(0x1f0)]=a18_0x56cf18(0x1f9),exports[a18_0x56cf18(0x1eb)]=a18_0x56cf18(0x1ed),exports[a18_0x56cf18(0x200)]=function(_0x3064e1){const _0x34b855=a18_0x56cf18,_0x24487d={};_0x24487d[_0x34b855(0x201)]=_0x34b855(0x1f4),_0x24487d['vvoIM']='help';const _0x26c5ff=_0x24487d;return _0x3064e1['usage'](HELP_HEADER_MESSAGE[_0x34b855(0x1f9)])[_0x34b855(0x203)](HELP_FOOTER_MESSAGE)[_0x34b855(0x1ec)](_0x26c5ff['LsAhf'])[_0x34b855(0x1fa)]()[_0x34b855(0x1fb)]()['strict']()[_0x34b855(0x1f7)](_0x26c5ff[_0x34b855(0x1ef)]);},exports[a18_0x56cf18(0x1fe)]=function(_0x56c06c){};
1
+ const a18_0x47d32f=a18_0x4504;(function(_0x2dae47,_0x106492){const _0x420bf8=a18_0x4504,_0x5b5c6a=_0x2dae47();while(!![]){try{const _0x4c6268=parseInt(_0x420bf8(0x11a))/0x1+parseInt(_0x420bf8(0x129))/0x2*(-parseInt(_0x420bf8(0x120))/0x3)+-parseInt(_0x420bf8(0x11e))/0x4+parseInt(_0x420bf8(0x11b))/0x5*(-parseInt(_0x420bf8(0x117))/0x6)+-parseInt(_0x420bf8(0x124))/0x7+parseInt(_0x420bf8(0x128))/0x8*(parseInt(_0x420bf8(0x12a))/0x9)+parseInt(_0x420bf8(0x127))/0xa;if(_0x4c6268===_0x106492)break;else _0x5b5c6a['push'](_0x5b5c6a['shift']());}catch(_0x47c437){_0x5b5c6a['push'](_0x5b5c6a['shift']());}}}(a18_0x52b0,0xca39f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x47d32f(0x125));function a18_0x4504(_0x19a33e,_0x480f6f){const _0x52b0e8=a18_0x52b0();return a18_0x4504=function(_0x45048f,_0x3ab712){_0x45048f=_0x45048f-0x116;let _0x541717=_0x52b0e8[_0x45048f];return _0x541717;},a18_0x4504(_0x19a33e,_0x480f6f);}exports['command']='start',exports[a18_0x47d32f(0x11c)]=a18_0x47d32f(0x119),exports[a18_0x47d32f(0x11f)]=function(_0x4d977d){const _0x7861f2=a18_0x47d32f,_0xb9e1={};_0xb9e1['INcAl']=_0x7861f2(0x122),_0xb9e1[_0x7861f2(0x123)]='help';const _0x18e0a2=_0xb9e1;return _0x4d977d['usage'](HELP_HEADER_MESSAGE['start'])[_0x7861f2(0x118)](HELP_FOOTER_MESSAGE)[_0x7861f2(0x126)](_0x18e0a2['INcAl'])[_0x7861f2(0x11d)]()[_0x7861f2(0x116)]()['strict']()[_0x7861f2(0x121)](_0x18e0a2['wudTT']);},exports['handler']=function(_0x1246dd){};function a18_0x52b0(){const _0x37358f=['23624CWcawv','934158cuWlDH','4239oWxsRc','recommendCommands','12492Ikhojv','epilogue','Start\x20an\x20existing\x20Automation\x20grid.','1523461SeWUFK','860lkPiTF','desc','demandCommand','3889380dwLLNY','builder','9FUncVZ','help','start_commands','wudTT','6596793iJIUwx','../config/constants','commandDir','15880800yHismu'];a18_0x52b0=function(){return _0x37358f;};return a18_0x52b0();}
@@ -1 +1 @@
1
- const a19_0x1629c1=a19_0x2347;(function(_0x401b76,_0x4758de){const _0x27a1e8=a19_0x2347,_0x5e4cef=_0x401b76();while(!![]){try{const _0x1152af=-parseInt(_0x27a1e8(0xd0))/0x1*(-parseInt(_0x27a1e8(0x120))/0x2)+-parseInt(_0x27a1e8(0xe7))/0x3*(-parseInt(_0x27a1e8(0xe0))/0x4)+-parseInt(_0x27a1e8(0xfc))/0x5+parseInt(_0x27a1e8(0x115))/0x6+-parseInt(_0x27a1e8(0x125))/0x7+parseInt(_0x27a1e8(0xf5))/0x8+-parseInt(_0x27a1e8(0xde))/0x9;if(_0x1152af===_0x4758de)break;else _0x5e4cef['push'](_0x5e4cef['shift']());}catch(_0x5593ef){_0x5e4cef['push'](_0x5e4cef['shift']());}}}(a19_0x5376,0x8509f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1629c1(0xef)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1629c1(0xea)),{logger}=require(a19_0x1629c1(0xee)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x1629c1(0x11c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x1629c1(0x100)),{createK8sClient}=require(a19_0x1629c1(0x126)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x5376(){const _0x5d17ed=['TSpaW','start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../config/logger','reconnecting-websocket','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','init-not-called','Adding\x20Websocket\x20listeners','info','readFileSync','7964104dGqUqX','gridId','clusterName','default','nKIdF','dOffL','vuIWE','2351630FawadH','stack','name','bstackUsername','../../utils/webSocketUtils','skip-tls-cert-verify','unauthorised','PGolg','WebSocket','rPZTi','region','desc','statusCode','skipTlsCertVerify','builder','NXLTI','HnKmU','command','usage','FKjLe','password','PQskF','TLGtv','server-error','debug','2539758CmAbfe','whlUC','stringify','invalid-grid-id','Xnmsx','Starting\x20grid\x20','type','../../utils/gridComponents','grid-id','user','bstackAccesskey','468neMTNc','<UsernamePlaceholder>','existsSync','start-grid-called','yoNGR','1518013KSnotU','../../utils/createk8sClient','vpmVg','ERROR','NopOP','<PasswordPlaceholder>','error','2155UUxtqz','help','description','DqWHR','UfDDg','boolean','Start\x20an\x20existing\x20Automation\x20grid.','Oxjil','Browserstack','addListeners','username','dNguA','parse','replace','8995140yAtNPe','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','8HemNwy','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','cloudProvider','message','string','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','462744aWVYtk','body','exit','../../config/constants'];a19_0x5376=function(){return _0x5d17ed;};return a19_0x5376();}function a19_0x2347(_0x40e322,_0x2c70fa){const _0x53763c=a19_0x5376();return a19_0x2347=function(_0x234775,_0xfcad1f){_0x234775=_0x234775-0xd0;let _0xf7be14=_0x53763c[_0x234775];return _0xf7be14;},a19_0x2347(_0x40e322,_0x2c70fa);}exports[a19_0x1629c1(0x10d)]='grid',exports[a19_0x1629c1(0x107)]=a19_0x1629c1(0xd6),exports[a19_0x1629c1(0x10a)]=function(_0x18c0f9){const _0x33732a=a19_0x1629c1,_0x3d3b15={};_0x3d3b15[_0x33732a(0xd3)]=_0x33732a(0xe6),_0x3d3b15[_0x33732a(0x119)]=_0x33732a(0xe5),_0x3d3b15['Oxjil']='Skip\x20insecure\x20cert\x20verification.',_0x3d3b15[_0x33732a(0xfb)]=_0x33732a(0xd5),_0x3d3b15[_0x33732a(0xd4)]=_0x33732a(0xd1);const _0x4d0b1c=_0x3d3b15,_0x3e6b1e={};_0x3e6b1e[_0x33732a(0xd2)]=_0x4d0b1c[_0x33732a(0xd3)],_0x3e6b1e['type']=_0x4d0b1c['Xnmsx'];const _0x56a692={};_0x56a692[_0x33732a(0xd2)]=_0x4d0b1c[_0x33732a(0xd7)],_0x56a692[_0x33732a(0x11b)]=_0x4d0b1c[_0x33732a(0xfb)],_0x56a692[_0x33732a(0xf8)]=![];const _0x350091={};return _0x350091[_0x33732a(0x11d)]=_0x3e6b1e,_0x350091[_0x33732a(0x101)]=_0x56a692,_0x18c0f9[_0x33732a(0x10e)](HELP_HEADER_MESSAGE[_0x33732a(0xec)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x33732a(0xe1)](_0x350091)[_0x33732a(0xd1)](_0x4d0b1c[_0x33732a(0xd4)])['argv'];},exports['handler']=async function(_0x2a804c){const _0x16c960=a19_0x1629c1,_0x1f229e={'whlUC':_0x16c960(0xdf),'PQskF':function(_0x592919){return _0x592919();},'yoNGR':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dNguA':function(_0x42bfcf,_0x9db9d7,_0x12ff7f,_0x249e68,_0x12694f,_0x12a2d8,_0x4182fb){return _0x42bfcf(_0x9db9d7,_0x12ff7f,_0x249e68,_0x12694f,_0x12a2d8,_0x4182fb);},'NXLTI':_0x16c960(0x123),'uBaiN':_0x16c960(0xf1),'vpmVg':function(_0x48c5b4){return _0x48c5b4();},'TLGtv':_0x16c960(0x121),'FKjLe':_0x16c960(0x12a),'PGolg':_0x16c960(0xf2),'NopOP':function(_0x5a2d46,_0x2fe2d1,_0x1deff8,_0x1f3c0c){return _0x5a2d46(_0x2fe2d1,_0x1deff8,_0x1f3c0c);},'nKIdF':function(_0xba1ab9,_0x16621d,_0x412155){return _0xba1ab9(_0x16621d,_0x412155);},'dOffL':'Grid\x20started','UMuID':function(_0x187fba,_0x396d54){return _0x187fba===_0x396d54;},'aUOyT':_0x16c960(0xed),'HnKmU':_0x16c960(0x102),'yQotO':function(_0x4f423d,_0x34af99){return _0x4f423d===_0x34af99;},'rPZTi':_0x16c960(0x118),'TSpaW':_0x16c960(0x113)};let _0x1d5cbe;try{!_0x2a804c['gridId']&&(logger[_0x16c960(0x12b)](_0x1f229e[_0x16c960(0x116)]),process[_0x16c960(0xe9)](0x1));!fs[_0x16c960(0x122)](_0x1f229e[_0x16c960(0x111)](getCredentialsPath))&&(logger['error'](_0x1f229e[_0x16c960(0x124)]),await _0x1f229e['dNguA'](sendInstrumentationEvent,_0x2a804c,_0x1f229e['NXLTI'],messageTypes[_0x16c960(0x128)],_0x1f229e['uBaiN'],null,_0x2a804c),process[_0x16c960(0xe9)](0x1));logger['info'](_0x16c960(0x11a)+_0x2a804c[_0x16c960(0xf6)]),await _0x1f229e[_0x16c960(0xdb)](sendInstrumentationEvent,_0x2a804c,_0x1f229e[_0x16c960(0x10b)],messageTypes['INFO'],null,null,_0x2a804c);const _0x234042=JSON['parse'](fs[_0x16c960(0xf4)](_0x1f229e[_0x16c960(0x127)](getCredentialsPath)));global_registry[_0x16c960(0xff)]=_0x234042[_0x16c960(0xd8)]['username'],global_registry[_0x16c960(0x11f)]=_0x234042[_0x16c960(0xd8)]['password'];const _0x522378=WS_ENDPOINT[_0x16c960(0xdd)](_0x1f229e[_0x16c960(0x112)],_0x234042[_0x16c960(0xd8)][_0x16c960(0xda)])['replace'](_0x1f229e[_0x16c960(0x10f)],_0x234042[_0x16c960(0xd8)][_0x16c960(0x110)]),_0x22a3e0={};_0x22a3e0[_0x16c960(0x104)]=ws,_0x22a3e0['connectionTimeout']=0x36ee80,_0x1d5cbe=new ReconnectingWebSocket(_0x522378,[],_0x22a3e0),logger[_0x16c960(0x114)](_0x1f229e[_0x16c960(0x103)]),webSocketUtils[_0x16c960(0xd9)](_0x1d5cbe,_0x2a804c[_0x16c960(0x11e)],_0x2a804c[_0x16c960(0x110)]);const [_0x475c6c,_0x5682d1]=await _0x1f229e[_0x16c960(0x129)](getGridDetails,_0x234042['Browserstack'][_0x16c960(0xda)],_0x234042['Browserstack'][_0x16c960(0x110)],_0x2a804c[_0x16c960(0xf6)]);if(_0x5682d1){const _0x155749=_0x5682d1[_0x16c960(0xf3)];global_registry[_0x16c960(0xe3)]=_0x155749[_0x16c960(0xe3)],global_registry['clusterRegion']=_0x155749[_0x16c960(0x106)],global_registry['clusterName']=_0x155749[_0x16c960(0xf7)];const _0x4a4620=await _0x1f229e['dNguA'](getCloudProviderObject,_0x155749[_0x16c960(0xe3)],_0x155749[_0x16c960(0xf7)],_0x155749[_0x16c960(0xfe)],_0x1d5cbe,webSocketUtils,_0x2a804c),[_0x48a32f,_0x240294,_0x5b6a79,_0x5663b1,_0x2e7e0c,_0x568c9f]=await _0x1f229e['nKIdF'](createK8sClient,_0x4a4620,_0x2a804c[_0x16c960(0x109)]);await _0x1f229e[_0x16c960(0xf9)](scaleUpHubDeployment,_0x240294,_0x155749[_0x16c960(0xfe)]),logger[_0x16c960(0xf3)](_0x1f229e[_0x16c960(0xfa)]),process[_0x16c960(0xe9)](0x0);}_0x1f229e['UMuID'](_0x475c6c[_0x16c960(0x108)],0x191)&&(logger[_0x16c960(0x12b)](_0x1f229e['aUOyT']),await _0x1f229e[_0x16c960(0xdb)](sendInstrumentationEvent,_0x2a804c,_0x1f229e['NXLTI'],messageTypes[_0x16c960(0x128)],_0x1f229e[_0x16c960(0x10c)],null,_0x2a804c),process[_0x16c960(0xe9)](0x1)),_0x1f229e['yQotO'](_0x475c6c[_0x16c960(0x108)],0x190)&&(logger['error'](JSON[_0x16c960(0xdc)](_0x475c6c[_0x16c960(0xe8)])[_0x16c960(0xe4)]),await _0x1f229e[_0x16c960(0xdb)](sendInstrumentationEvent,_0x2a804c,_0x1f229e[_0x16c960(0x10b)],messageTypes[_0x16c960(0x128)],_0x1f229e[_0x16c960(0x105)],null,_0x2a804c),process[_0x16c960(0xe9)](0x1)),logger[_0x16c960(0x12b)](_0x16c960(0xe2)+JSON[_0x16c960(0x117)](_0x475c6c)),await _0x1f229e['dNguA'](sendInstrumentationEvent,_0x2a804c,_0x1f229e[_0x16c960(0x10b)],messageTypes['ERROR'],_0x1f229e[_0x16c960(0xeb)],_0x475c6c,_0x2a804c),process[_0x16c960(0xe9)](0x1);}catch(_0x1c40ea){const _0x3d5c54=_0x16c960(0xf0)+_0x1c40ea+'\x20\x0a'+JSON[_0x16c960(0x117)](_0x1c40ea[_0x16c960(0xfd)])+'\x20';logger[_0x16c960(0x12b)](_0x3d5c54),process[_0x16c960(0xe9)](0x1);}};
1
+ const a19_0x34b7e1=a19_0x5b64;function a19_0x5502(){const _0x46e3bb=['Grid\x20started','Starting\x20grid\x20','password','../../utils/utilityMethods','../../utils/createk8sClient','CHoew','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','name','INFO','stack','server-error','connectionTimeout','eRDkQ','message','5wXDTMl','builder','debug','replace','IzDxm','bstackUsername','kCfIP','info','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/gridComponents','readFileSync','exit','error','statusCode','clusterName','help','username','WebSocket','3aCVAWM','lXBgY','unauthorised','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','DMWXx','1425567WenebP','clusterRegion','Start\x20an\x20existing\x20Automation\x20grid.','options','parse','TDDJR','1365406ytMNFb','reconnecting-websocket','grid-id','Qsjqt','skip-tls-cert-verify','body','start','init-not-called','../../config/constants','<UsernamePlaceholder>','78986mRDZoS','TVGoP','string','grid','ERROR','handler','clPmk','cloudProvider','2216416Dmtqzz','ZuHBn','command','skipTlsCertVerify','hrUbO','1059208yjOkKc','CNuXg','default','ZMfIG','SWojP','AHVUg','bstackAccesskey','nLuwd','bPUTB','qcEsl','region','../../utils/instrumentationUtils','type','2619318lHYbpg','9760626iagrfs','usage','Browserstack','invalid-grid-id','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','argv','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','description','existsSync','Adding\x20Websocket\x20listeners','ANFsE','desc','gridId','start-grid-called'];a19_0x5502=function(){return _0x46e3bb;};return a19_0x5502();}function a19_0x5b64(_0x49ea44,_0x1419eb){const _0x55029f=a19_0x5502();return a19_0x5b64=function(_0x5b64e7,_0x3cdb47){_0x5b64e7=_0x5b64e7-0x11f;let _0x1c70c6=_0x55029f[_0x5b64e7];return _0x1c70c6;},a19_0x5b64(_0x49ea44,_0x1419eb);}(function(_0x40abab,_0x617d0b){const _0x42c0db=a19_0x5b64,_0x47132c=_0x40abab();while(!![]){try{const _0x4ff486=-parseInt(_0x42c0db(0x14e))/0x1*(parseInt(_0x42c0db(0x163))/0x2)+-parseInt(_0x42c0db(0x153))/0x3+parseInt(_0x42c0db(0x16b))/0x4+parseInt(_0x42c0db(0x13c))/0x5*(-parseInt(_0x42c0db(0x11f))/0x6)+-parseInt(_0x42c0db(0x159))/0x7+-parseInt(_0x42c0db(0x170))/0x8+parseInt(_0x42c0db(0x120))/0x9;if(_0x4ff486===_0x617d0b)break;else _0x47132c['push'](_0x47132c['shift']());}catch(_0x147d6e){_0x47132c['push'](_0x47132c['shift']());}}}(a19_0x5502,0x4496a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x34b7e1(0x15a)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x34b7e1(0x161)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x34b7e1(0x131)),{scaleUpHubDeployment}=require(a19_0x34b7e1(0x145)),{sendInstrumentationEvent}=require(a19_0x34b7e1(0x17b)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x34b7e1(0x132)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x34b7e1(0x16d)]=a19_0x34b7e1(0x166),exports[a19_0x34b7e1(0x12b)]=a19_0x34b7e1(0x155),exports[a19_0x34b7e1(0x13d)]=function(_0x205a78){const _0x169c01=a19_0x34b7e1,_0x114614={};_0x114614[_0x169c01(0x177)]=_0x169c01(0x151),_0x114614['ANFsE']=_0x169c01(0x165),_0x114614[_0x169c01(0x142)]='Skip\x20insecure\x20cert\x20verification.',_0x114614[_0x169c01(0x158)]='boolean',_0x114614['hrUbO']=_0x169c01(0x14b);const _0x34a93a=_0x114614,_0x1e2401={};_0x1e2401[_0x169c01(0x127)]=_0x34a93a[_0x169c01(0x177)],_0x1e2401[_0x169c01(0x17c)]=_0x34a93a[_0x169c01(0x12a)];const _0x8e300d={};_0x8e300d[_0x169c01(0x127)]=_0x34a93a[_0x169c01(0x142)],_0x8e300d[_0x169c01(0x17c)]=_0x34a93a[_0x169c01(0x158)],_0x8e300d[_0x169c01(0x172)]=![];const _0x1c3c6b={};return _0x1c3c6b[_0x169c01(0x15b)]=_0x1e2401,_0x1c3c6b[_0x169c01(0x15d)]=_0x8e300d,_0x205a78[_0x169c01(0x121)](HELP_HEADER_MESSAGE[_0x169c01(0x15f)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x169c01(0x156)](_0x1c3c6b)[_0x169c01(0x14b)](_0x34a93a[_0x169c01(0x16f)])[_0x169c01(0x125)];},exports[a19_0x34b7e1(0x168)]=async function(_0x48f1f0){const _0x147f17=a19_0x34b7e1,_0x3a0f3b={'IayET':_0x147f17(0x126),'SWojP':function(_0x1a27d2){return _0x1a27d2();},'ZYMhK':_0x147f17(0x144),'AHVUg':function(_0x3b0e85,_0x9a3e5d,_0xd167ca,_0x55379f,_0x1f3db9,_0x1dcfa2,_0x136432){return _0x3b0e85(_0x9a3e5d,_0xd167ca,_0x55379f,_0x1f3db9,_0x1dcfa2,_0x136432);},'CHoew':_0x147f17(0x12d),'IzDxm':_0x147f17(0x160),'lXBgY':_0x147f17(0x162),'TVGoP':'<PasswordPlaceholder>','EqJEB':_0x147f17(0x129),'FYkAm':function(_0x315b60,_0x4f9a3b,_0x1c7ed9,_0x1dd3be){return _0x315b60(_0x4f9a3b,_0x1c7ed9,_0x1dd3be);},'qcEsl':function(_0x13eecf,_0x18e1a2,_0xef34f7,_0x360822,_0x44022c,_0x48abc4,_0x19bd80){return _0x13eecf(_0x18e1a2,_0xef34f7,_0x360822,_0x44022c,_0x48abc4,_0x19bd80);},'eRDkQ':function(_0x4af98b,_0x1d7dd6,_0x4ef184){return _0x4af98b(_0x1d7dd6,_0x4ef184);},'Qsjqt':function(_0x2bf0b0,_0x15f796,_0x94703){return _0x2bf0b0(_0x15f796,_0x94703);},'CNuXg':_0x147f17(0x12e),'clPmk':function(_0x3c080e,_0x4b4c18){return _0x3c080e===_0x4b4c18;},'ZMfIG':_0x147f17(0x134),'YzIFi':_0x147f17(0x150),'DMWXx':function(_0x46ae45,_0x5bb514){return _0x46ae45===_0x5bb514;},'bPUTB':_0x147f17(0x123),'ZuHBn':_0x147f17(0x138)};let _0x30ff38;try{!_0x48f1f0['gridId']&&(logger['error'](_0x3a0f3b['IayET']),process[_0x147f17(0x147)](0x1));!fs[_0x147f17(0x128)](_0x3a0f3b['SWojP'](getCredentialsPath))&&(logger[_0x147f17(0x148)](_0x3a0f3b['ZYMhK']),await _0x3a0f3b[_0x147f17(0x175)](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b['CHoew'],messageTypes[_0x147f17(0x167)],_0x3a0f3b[_0x147f17(0x140)],null,_0x48f1f0),process['exit'](0x1));logger['info'](_0x147f17(0x12f)+_0x48f1f0[_0x147f17(0x12c)]),await _0x3a0f3b['AHVUg'](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b[_0x147f17(0x133)],messageTypes[_0x147f17(0x136)],null,null,_0x48f1f0);const _0x393296=JSON[_0x147f17(0x157)](fs[_0x147f17(0x146)](_0x3a0f3b[_0x147f17(0x174)](getCredentialsPath)));global_registry[_0x147f17(0x141)]=_0x393296[_0x147f17(0x122)][_0x147f17(0x14c)],global_registry[_0x147f17(0x176)]=_0x393296[_0x147f17(0x122)][_0x147f17(0x130)];const _0x25ec0f=WS_ENDPOINT[_0x147f17(0x13f)](_0x3a0f3b[_0x147f17(0x14f)],_0x393296[_0x147f17(0x122)][_0x147f17(0x14c)])[_0x147f17(0x13f)](_0x3a0f3b[_0x147f17(0x164)],_0x393296['Browserstack'][_0x147f17(0x130)]),_0xb02560={};_0xb02560[_0x147f17(0x14d)]=ws,_0xb02560[_0x147f17(0x139)]=0x36ee80,_0x30ff38=new ReconnectingWebSocket(_0x25ec0f,[],_0xb02560),logger[_0x147f17(0x13e)](_0x3a0f3b['EqJEB']),webSocketUtils['addListeners'](_0x30ff38,_0x48f1f0['user'],_0x48f1f0[_0x147f17(0x130)]);const [_0x7a7f5e,_0x259502]=await _0x3a0f3b['FYkAm'](getGridDetails,_0x393296[_0x147f17(0x122)][_0x147f17(0x14c)],_0x393296[_0x147f17(0x122)][_0x147f17(0x130)],_0x48f1f0[_0x147f17(0x12c)]);if(_0x259502){const _0x157cb9=_0x259502[_0x147f17(0x143)];global_registry['cloudProvider']=_0x157cb9[_0x147f17(0x16a)],global_registry[_0x147f17(0x154)]=_0x157cb9[_0x147f17(0x17a)],global_registry['clusterName']=_0x157cb9['clusterName'];const _0x3dd5a7=await _0x3a0f3b[_0x147f17(0x179)](getCloudProviderObject,_0x157cb9[_0x147f17(0x16a)],_0x157cb9[_0x147f17(0x14a)],_0x157cb9[_0x147f17(0x135)],_0x30ff38,webSocketUtils,_0x48f1f0),[_0x553d36,_0x86e806,_0x6f6d3,_0x4e1e11,_0x1aa8cf,_0x225e5d]=await _0x3a0f3b[_0x147f17(0x13a)](createK8sClient,_0x3dd5a7,_0x48f1f0[_0x147f17(0x16e)]);await _0x3a0f3b[_0x147f17(0x15c)](scaleUpHubDeployment,_0x86e806,_0x157cb9[_0x147f17(0x135)]),logger[_0x147f17(0x143)](_0x3a0f3b[_0x147f17(0x171)]),process[_0x147f17(0x147)](0x0);}_0x3a0f3b[_0x147f17(0x169)](_0x7a7f5e[_0x147f17(0x149)],0x191)&&(logger['error'](_0x3a0f3b[_0x147f17(0x173)]),await _0x3a0f3b[_0x147f17(0x179)](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b[_0x147f17(0x133)],messageTypes[_0x147f17(0x167)],_0x3a0f3b['YzIFi'],null,_0x48f1f0),process[_0x147f17(0x147)](0x1)),_0x3a0f3b[_0x147f17(0x152)](_0x7a7f5e[_0x147f17(0x149)],0x190)&&(logger[_0x147f17(0x148)](JSON['parse'](_0x7a7f5e[_0x147f17(0x15e)])[_0x147f17(0x13b)]),await _0x3a0f3b['qcEsl'](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b[_0x147f17(0x133)],messageTypes[_0x147f17(0x167)],_0x3a0f3b[_0x147f17(0x178)],null,_0x48f1f0),process[_0x147f17(0x147)](0x1)),logger[_0x147f17(0x148)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x7a7f5e)),await _0x3a0f3b[_0x147f17(0x179)](sendInstrumentationEvent,_0x48f1f0,_0x3a0f3b[_0x147f17(0x133)],messageTypes[_0x147f17(0x167)],_0x3a0f3b[_0x147f17(0x16c)],_0x7a7f5e,_0x48f1f0),process[_0x147f17(0x147)](0x1);}catch(_0x1f3ddc){const _0x5f2023=_0x147f17(0x124)+_0x1f3ddc+'\x20\x0a'+JSON['stringify'](_0x1f3ddc[_0x147f17(0x137)])+'\x20';logger[_0x147f17(0x148)](_0x5f2023),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0x41cded=a20_0x469a;(function(_0x24c1e6,_0xdc48ce){const _0xa8a179=a20_0x469a,_0x445bb0=_0x24c1e6();while(!![]){try{const _0x5022a8=parseInt(_0xa8a179(0xb7))/0x1*(parseInt(_0xa8a179(0xb8))/0x2)+parseInt(_0xa8a179(0xbc))/0x3+-parseInt(_0xa8a179(0xb6))/0x4*(parseInt(_0xa8a179(0xac))/0x5)+parseInt(_0xa8a179(0xa3))/0x6*(-parseInt(_0xa8a179(0xaa))/0x7)+parseInt(_0xa8a179(0xb5))/0x8*(parseInt(_0xa8a179(0xba))/0x9)+-parseInt(_0xa8a179(0xad))/0xa+-parseInt(_0xa8a179(0xb0))/0xb*(-parseInt(_0xa8a179(0xb3))/0xc);if(_0x5022a8===_0xdc48ce)break;else _0x445bb0['push'](_0x445bb0['shift']());}catch(_0x338a67){_0x445bb0['push'](_0x445bb0['shift']());}}}(a20_0x4731,0xcc314));function a20_0x469a(_0x50c68f,_0x1d9530){const _0x4731e2=a20_0x4731();return a20_0x469a=function(_0x469a5d,_0x3bf132){_0x469a5d=_0x469a5d-0xa3;let _0x46734c=_0x4731e2[_0x469a5d];return _0x46734c;},a20_0x469a(_0x50c68f,_0x1d9530);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x41cded(0xae));exports[a20_0x41cded(0xa9)]=a20_0x41cded(0xab),exports['desc']=a20_0x41cded(0xa8),exports[a20_0x41cded(0xb1)]=function(_0x51db2b){const _0x28825d=a20_0x41cded,_0x35e53e={};_0x35e53e['kpgsQ']=_0x28825d(0xbb),_0x35e53e[_0x28825d(0xa6)]=_0x28825d(0xb4);const _0x512567=_0x35e53e;return _0x51db2b[_0x28825d(0xa4)](HELP_HEADER_MESSAGE[_0x28825d(0xab)])[_0x28825d(0xaf)](HELP_FOOTER_MESSAGE)[_0x28825d(0xb9)](_0x512567['kpgsQ'])[_0x28825d(0xa5)]()[_0x28825d(0xa7)]()[_0x28825d(0xbd)]()['help'](_0x512567[_0x28825d(0xa6)]);},exports[a20_0x41cded(0xb2)]=function(_0x1b0727){};function a20_0x4731(){const _0x460153=['commandDir','113787fFEOtU','stop_commands','3272745QIYuqH','strict','1023954ptALvt','usage','demandCommand','pZSaQ','recommendCommands','Stop\x20a\x20running\x20Automation\x20grid.','command','7DrjzLC','stop','8202055kJjFoz','5019040ZaANtT','../config/constants','epilogue','33QBhGik','builder','handler','2240220DBzBQT','help','728vPdpsX','4czydTr','643emOfHk','1082bphIxr'];a20_0x4731=function(){return _0x460153;};return a20_0x4731();}
1
+ function a20_0x26a0(){const _0x2ac6a9=['desc','1740950bMVXng','stop_commands','handler','QkYjM','218596xAAIBc','3669507nNvOiB','command','Stop\x20a\x20running\x20Automation\x20grid.','196782prRAHi','1378008nVYhKp','3AwtrKC','usage','strict','stop','5rJXfBC','recommendCommands','help','361940ECxBJj','epilogue','commandDir','7wDVHQs','../config/constants','FqLsD','2380264iQmfFT','builder'];a20_0x26a0=function(){return _0x2ac6a9;};return a20_0x26a0();}const a20_0x1e7f19=a20_0x2b2b;(function(_0x4ef603,_0x4e6289){const _0x129b04=a20_0x2b2b,_0x1ba8e4=_0x4ef603();while(!![]){try{const _0xbd0b4f=-parseInt(_0x129b04(0xec))/0x1+parseInt(_0x129b04(0xdf))/0x2*(parseInt(_0x129b04(0xf2))/0x3)+parseInt(_0x129b04(0xf1))/0x4+parseInt(_0x129b04(0xdc))/0x5*(-parseInt(_0x129b04(0xf0))/0x6)+parseInt(_0x129b04(0xe2))/0x7*(-parseInt(_0x129b04(0xe5))/0x8)+parseInt(_0x129b04(0xed))/0x9+-parseInt(_0x129b04(0xe8))/0xa;if(_0xbd0b4f===_0x4e6289)break;else _0x1ba8e4['push'](_0x1ba8e4['shift']());}catch(_0x328972){_0x1ba8e4['push'](_0x1ba8e4['shift']());}}}(a20_0x26a0,0x334fe));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1e7f19(0xe3));function a20_0x2b2b(_0x523758,_0x5bfec3){const _0x26a002=a20_0x26a0();return a20_0x2b2b=function(_0x2b2b90,_0x42a4c5){_0x2b2b90=_0x2b2b90-0xdc;let _0x57ddfd=_0x26a002[_0x2b2b90];return _0x57ddfd;},a20_0x2b2b(_0x523758,_0x5bfec3);}exports[a20_0x1e7f19(0xee)]=a20_0x1e7f19(0xf5),exports[a20_0x1e7f19(0xe7)]=a20_0x1e7f19(0xef),exports[a20_0x1e7f19(0xe6)]=function(_0x4c8d09){const _0x3b692f=a20_0x1e7f19,_0x2b422e={};_0x2b422e[_0x3b692f(0xeb)]=_0x3b692f(0xe9),_0x2b422e[_0x3b692f(0xe4)]=_0x3b692f(0xde);const _0x42d78c=_0x2b422e;return _0x4c8d09[_0x3b692f(0xf3)](HELP_HEADER_MESSAGE['stop'])[_0x3b692f(0xe0)](HELP_FOOTER_MESSAGE)[_0x3b692f(0xe1)](_0x42d78c[_0x3b692f(0xeb)])['demandCommand']()[_0x3b692f(0xdd)]()[_0x3b692f(0xf4)]()[_0x3b692f(0xde)](_0x42d78c[_0x3b692f(0xe4)]);},exports[a20_0x1e7f19(0xea)]=function(_0x484240){};
@@ -1 +1 @@
1
- function a21_0x4be3(){const _0x372227=['body','WebSocket','parse','grid-id','NomEN','stop-grid-called','init-not-called','<UsernamePlaceholder>','default','ggmfu','addListeners','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','IFtJo','name','lZmVr','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','handler','IVKgq','debug','6795acmFgW','6825ZfPvXN','3480grZfSg','tevwg','clusterName','gridId','error','492JYmWyT','LpQqe','unauthorised','bstackUsername','../../utils/createk8sClient','epilogue','cloudProvider','MkuuM','stringify','../../utils/utilityMethods','5543888bhPxaz','Grid\x20stoppped.','clusterRegion','region','Stgrq','uGSYE','password','../../utils/instrumentationUtils','218627xNwwxe','3092DgFxFI','message','grid','4160250rfrSHu','info','6713721QAbNdy','reconnecting-websocket','KzSDr','Stopping\x20grid\x20','help','Browserstack','VoZKg','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','description','Stop\x20a\x20running\x20Automation\x20grid.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','RkllR','type','connectionTimeout','exit','stack','Adding\x20Websocket\x20listeners','USKuI','bstackAccesskey','desc','eTayc','ERROR','1608GoRexg','../../utils/webSocketUtils','replace','lSzGb','existsSync','username','server-error','gXfuB','GnrVr','skip-tls-cert-verify','usage'];a21_0x4be3=function(){return _0x372227;};return a21_0x4be3();}const a21_0x4d00ce=a21_0x4f0c;(function(_0x1c2769,_0x4b4a28){const _0x5c6f59=a21_0x4f0c,_0x1f8bee=_0x1c2769();while(!![]){try{const _0x1a37a9=parseInt(_0x5c6f59(0x11c))/0x1+parseInt(_0x5c6f59(0x10a))/0x2*(-parseInt(_0x5c6f59(0x103))/0x3)+-parseInt(_0x5c6f59(0x11d))/0x4*(-parseInt(_0x5c6f59(0x105))/0x5)+parseInt(_0x5c6f59(0x139))/0x6*(-parseInt(_0x5c6f59(0x104))/0x7)+-parseInt(_0x5c6f59(0x114))/0x8+parseInt(_0x5c6f59(0x122))/0x9+parseInt(_0x5c6f59(0x120))/0xa;if(_0x1a37a9===_0x4b4a28)break;else _0x1f8bee['push'](_0x1f8bee['shift']());}catch(_0x57f249){_0x1f8bee['push'](_0x1f8bee['shift']());}}}(a21_0x4be3,0x63671));function a21_0x4f0c(_0x40ea86,_0x4c75cf){const _0x4be370=a21_0x4be3();return a21_0x4f0c=function(_0x4f0c4e,_0x2e533e){_0x4f0c4e=_0x4f0c4e-0xeb;let _0x5215d5=_0x4be370[_0x4f0c4e];return _0x5215d5;},a21_0x4f0c(_0x40ea86,_0x4c75cf);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4d00ce(0x123)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x4d00ce(0x113)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x4d00ce(0x11b)),webSocketUtils=require(a21_0x4d00ce(0x13a)),{createK8sClient}=require(a21_0x4d00ce(0x10e)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']=a21_0x4d00ce(0x11f),exports[a21_0x4d00ce(0x136)]=a21_0x4d00ce(0x12c),exports['builder']=function(_0x3b1e05){const _0x3d8f9a=a21_0x4d00ce,_0x184985={};_0x184985[_0x3d8f9a(0x119)]=_0x3d8f9a(0xf9),_0x184985['LLtqd']='string',_0x184985[_0x3d8f9a(0x106)]='Skip\x20insecure\x20cert\x20verification.',_0x184985[_0x3d8f9a(0x101)]='boolean',_0x184985[_0x3d8f9a(0xf7)]=_0x3d8f9a(0x126);const _0x4ba77f=_0x184985,_0x5ed9ad={};_0x5ed9ad[_0x3d8f9a(0x12b)]=_0x4ba77f[_0x3d8f9a(0x119)],_0x5ed9ad['type']=_0x4ba77f['LLtqd'];const _0x233c8d={};_0x233c8d[_0x3d8f9a(0x12b)]=_0x4ba77f[_0x3d8f9a(0x106)],_0x233c8d[_0x3d8f9a(0x12f)]=_0x4ba77f[_0x3d8f9a(0x101)],_0x233c8d[_0x3d8f9a(0xf6)]=![];const _0x309460={};return _0x309460[_0x3d8f9a(0xf1)]=_0x5ed9ad,_0x309460[_0x3d8f9a(0xec)]=_0x233c8d,_0x3b1e05[_0x3d8f9a(0xed)](HELP_HEADER_MESSAGE['stop'])[_0x3d8f9a(0x10f)](HELP_FOOTER_MESSAGE)['options'](_0x309460)[_0x3d8f9a(0x126)](_0x4ba77f['ggmfu'])[_0x3d8f9a(0x129)];},exports[a21_0x4d00ce(0x100)]=async function(_0x45e25f){const _0xa78361=a21_0x4d00ce,_0x45bba8={'NXHdL':_0xa78361(0xfb),'NomEN':function(_0x5bcff1){return _0x5bcff1();},'Kerke':_0xa78361(0x12d),'USKuI':function(_0x5d9106,_0x2ab8db,_0x1d943f,_0xf4c4de,_0x35d9f4,_0x25fd02,_0x40396c){return _0x5d9106(_0x2ab8db,_0x1d943f,_0xf4c4de,_0x35d9f4,_0x25fd02,_0x40396c);},'Stgrq':_0xa78361(0xf3),'jufkL':_0xa78361(0xf4),'MkuuM':function(_0x4a6471){return _0x4a6471();},'lZmVr':_0xa78361(0xf5),'KzSDr':'<PasswordPlaceholder>','eTayc':_0xa78361(0x133),'GnrVr':function(_0x3c62fb,_0x1d1f5e,_0x5412b5,_0x586eec){return _0x3c62fb(_0x1d1f5e,_0x5412b5,_0x586eec);},'gXfuB':function(_0x326e19,_0x5003e2,_0x289292){return _0x326e19(_0x5003e2,_0x289292);},'PSpTF':_0xa78361(0x115),'LpQqe':function(_0xa81774,_0x1e4dd9){return _0xa81774===_0x1e4dd9;},'VoZKg':_0xa78361(0xfa),'IFtJo':function(_0x2d9765,_0x31e74b,_0x248ffd,_0x462dce,_0x514c62,_0x1d6a55,_0x3453b9){return _0x2d9765(_0x31e74b,_0x248ffd,_0x462dce,_0x514c62,_0x1d6a55,_0x3453b9);},'lSzGb':_0xa78361(0x10c),'Puyuq':function(_0x439ba9,_0x179b5b,_0x231cb2,_0x41ed07,_0x308bc1,_0x2ab2e3,_0xa41405){return _0x439ba9(_0x179b5b,_0x231cb2,_0x41ed07,_0x308bc1,_0x2ab2e3,_0xa41405);},'hxtQG':'invalid-grid-id','RkllR':_0xa78361(0x13f)};let _0x333246;try{!_0x45e25f[_0xa78361(0x108)]&&(logger[_0xa78361(0x109)](_0x45bba8['NXHdL']),process['exit'](0x1));!fs[_0xa78361(0x13d)](_0x45bba8[_0xa78361(0xf2)](getCredentialsPath))&&(logger[_0xa78361(0x109)](_0x45bba8['Kerke']),await _0x45bba8[_0xa78361(0x134)](sendInstrumentationEvent,_0x45e25f,_0x45bba8[_0xa78361(0x118)],messageTypes['ERROR'],_0x45bba8['jufkL'],null,_0x45e25f),process[_0xa78361(0x131)](0x1));logger[_0xa78361(0x121)](_0xa78361(0x125)+_0x45e25f[_0xa78361(0x108)]),await _0x45bba8[_0xa78361(0x134)](sendInstrumentationEvent,_0x45e25f,_0x45bba8['Stgrq'],messageTypes['INFO'],null,null,_0x45e25f);const _0x208396=JSON[_0xa78361(0xf0)](fs['readFileSync'](_0x45bba8[_0xa78361(0x111)](getCredentialsPath)));global_registry[_0xa78361(0x10d)]=_0x208396[_0xa78361(0x127)][_0xa78361(0x13e)],global_registry[_0xa78361(0x135)]=_0x208396[_0xa78361(0x127)][_0xa78361(0x11a)];const _0x3946c2=WS_ENDPOINT[_0xa78361(0x13b)](_0x45bba8[_0xa78361(0xfe)],_0x208396[_0xa78361(0x127)][_0xa78361(0x13e)])['replace'](_0x45bba8[_0xa78361(0x124)],_0x208396['Browserstack'][_0xa78361(0x11a)]),_0x116cd8={};_0x116cd8[_0xa78361(0xef)]=ws,_0x116cd8[_0xa78361(0x130)]=0x36ee80,_0x333246=new ReconnectingWebSocket(_0x3946c2,[],_0x116cd8),logger[_0xa78361(0x102)](_0x45bba8[_0xa78361(0x137)]),webSocketUtils[_0xa78361(0xf8)](_0x333246,_0x45e25f['user'],_0x45e25f[_0xa78361(0x11a)]);const [_0x48c82d,_0x554ceb]=await _0x45bba8[_0xa78361(0xeb)](getGridDetails,_0x208396[_0xa78361(0x127)][_0xa78361(0x13e)],_0x208396[_0xa78361(0x127)][_0xa78361(0x11a)],_0x45e25f[_0xa78361(0x108)]);if(_0x554ceb){const _0x543b27=_0x554ceb[_0xa78361(0x121)];global_registry['cloudProvider']=_0x543b27[_0xa78361(0x110)],global_registry[_0xa78361(0x116)]=_0x543b27[_0xa78361(0x117)],global_registry[_0xa78361(0x107)]=_0x543b27['clusterName'];const _0x19c41e=await _0x45bba8[_0xa78361(0x134)](getCloudProviderObject,_0x543b27[_0xa78361(0x110)],_0x543b27[_0xa78361(0x107)],_0x543b27['name'],_0x333246,webSocketUtils,_0x45e25f),[_0x2b8095,_0x165bc4,_0x169405,_0x467a6,_0x4dae8b,_0x42fd85]=await _0x45bba8[_0xa78361(0x140)](createK8sClient,_0x19c41e,_0x45e25f['skipTlsCertVerify']);await _0x45bba8[_0xa78361(0x140)](scaleDownHubDeployment,_0x165bc4,_0x543b27[_0xa78361(0xfd)]),logger[_0xa78361(0x121)](_0x45bba8['PSpTF']),process[_0xa78361(0x131)](0x0);}_0x45bba8[_0xa78361(0x10b)](_0x48c82d['statusCode'],0x191)&&(logger[_0xa78361(0x109)](_0x45bba8[_0xa78361(0x128)]),await _0x45bba8[_0xa78361(0xfc)](sendInstrumentationEvent,_0x45e25f,_0x45bba8['Stgrq'],messageTypes[_0xa78361(0x138)],_0x45bba8[_0xa78361(0x13c)],null,_0x45e25f),process[_0xa78361(0x131)](0x1)),_0x45bba8[_0xa78361(0x10b)](_0x48c82d['statusCode'],0x190)&&(logger['error'](JSON[_0xa78361(0xf0)](_0x48c82d[_0xa78361(0xee)])[_0xa78361(0x11e)]),await _0x45bba8['Puyuq'](sendInstrumentationEvent,_0x45e25f,_0x45bba8[_0xa78361(0x118)],messageTypes[_0xa78361(0x138)],_0x45bba8['hxtQG'],null,_0x45e25f),process[_0xa78361(0x131)](0x1)),logger[_0xa78361(0x109)](_0xa78361(0x12a)+JSON[_0xa78361(0x112)](_0x48c82d)),await _0x45bba8[_0xa78361(0xfc)](sendInstrumentationEvent,_0x45e25f,_0x45bba8[_0xa78361(0x118)],messageTypes[_0xa78361(0x138)],_0x45bba8[_0xa78361(0x12e)],_0x48c82d,_0x45e25f),process[_0xa78361(0x131)](0x1);}catch(_0x4bad35){const _0x18fcf6=_0xa78361(0xff)+_0x4bad35+'\x20\x0a'+JSON['stringify'](_0x4bad35[_0xa78361(0x132)])+'\x20';logger['error'](_0x18fcf6),process[_0xa78361(0x131)](0x1);}};
1
+ const a21_0x31d697=a21_0x13fd;function a21_0x13fd(_0xa5b119,_0x14e6c8){const _0x1f528f=a21_0x1f52();return a21_0x13fd=function(_0x13fd55,_0x1257bd){_0x13fd55=_0x13fd55-0x19b;let _0x516fbc=_0x1f528f[_0x13fd55];return _0x516fbc;},a21_0x13fd(_0xa5b119,_0x14e6c8);}(function(_0x36e199,_0x253f2c){const _0x35f65d=a21_0x13fd,_0x1900dc=_0x36e199();while(!![]){try{const _0x454685=-parseInt(_0x35f65d(0x1a1))/0x1*(-parseInt(_0x35f65d(0x1a8))/0x2)+parseInt(_0x35f65d(0x1c7))/0x3+parseInt(_0x35f65d(0x1bc))/0x4+parseInt(_0x35f65d(0x1ca))/0x5+-parseInt(_0x35f65d(0x1d8))/0x6*(-parseInt(_0x35f65d(0x1a6))/0x7)+parseInt(_0x35f65d(0x1ee))/0x8+-parseInt(_0x35f65d(0x1a7))/0x9*(parseInt(_0x35f65d(0x1c0))/0xa);if(_0x454685===_0x253f2c)break;else _0x1900dc['push'](_0x1900dc['shift']());}catch(_0x591901){_0x1900dc['push'](_0x1900dc['shift']());}}}(a21_0x1f52,0x70232));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x31d697(0x1b8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x31d697(0x1b2)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x31d697(0x1b4)),{scaleDownHubDeployment}=require(a21_0x31d697(0x1a5)),{sendInstrumentationEvent}=require(a21_0x31d697(0x19b)),webSocketUtils=require(a21_0x31d697(0x1f3)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x31d697(0x1b1)]=a21_0x31d697(0x1df),exports[a21_0x31d697(0x1c4)]=a21_0x31d697(0x1d5),exports[a21_0x31d697(0x19d)]=function(_0x750f5d){const _0x479a03=a21_0x31d697,_0x168a88={};_0x168a88[_0x479a03(0x1da)]=_0x479a03(0x1e9),_0x168a88[_0x479a03(0x1d0)]=_0x479a03(0x1b9),_0x168a88[_0x479a03(0x1a3)]=_0x479a03(0x1d6),_0x168a88['ORyOn']='boolean',_0x168a88[_0x479a03(0x1ed)]=_0x479a03(0x1d1);const _0x37745e=_0x168a88,_0x44fc01={};_0x44fc01[_0x479a03(0x1be)]=_0x37745e[_0x479a03(0x1da)],_0x44fc01['type']=_0x37745e[_0x479a03(0x1d0)];const _0x1115c4={};_0x1115c4[_0x479a03(0x1be)]=_0x37745e[_0x479a03(0x1a3)],_0x1115c4[_0x479a03(0x1c6)]=_0x37745e[_0x479a03(0x1db)],_0x1115c4[_0x479a03(0x1f0)]=![];const _0x55329b={};return _0x55329b[_0x479a03(0x1c3)]=_0x44fc01,_0x55329b[_0x479a03(0x1c2)]=_0x1115c4,_0x750f5d[_0x479a03(0x1bb)](HELP_HEADER_MESSAGE[_0x479a03(0x1dd)])[_0x479a03(0x1d9)](HELP_FOOTER_MESSAGE)['options'](_0x55329b)['help'](_0x37745e[_0x479a03(0x1ed)])[_0x479a03(0x1c9)];},exports['handler']=async function(_0x572326){const _0x6527a4=a21_0x31d697,_0x40401d={'flJDR':_0x6527a4(0x1cd),'PtNHU':function(_0x378092){return _0x378092();},'dgsbz':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','PFEjM':function(_0x24d3b1,_0x2c51b0,_0xf041c8,_0x33f998,_0x29a222,_0xc0b163,_0x55d279){return _0x24d3b1(_0x2c51b0,_0xf041c8,_0x33f998,_0x29a222,_0xc0b163,_0x55d279);},'czPpT':_0x6527a4(0x1ba),'hDruu':'init-not-called','nbFfn':function(_0x13f0ad,_0x2b6a92,_0x1203a,_0x479460,_0x5284e7,_0x52342f,_0x334e43){return _0x13f0ad(_0x2b6a92,_0x1203a,_0x479460,_0x5284e7,_0x52342f,_0x334e43);},'CxiCS':'<UsernamePlaceholder>','MPQGJ':'<PasswordPlaceholder>','nvwuk':_0x6527a4(0x1ab),'GGJdf':function(_0x2ef15d,_0x490db6,_0x5418c3,_0x16e001){return _0x2ef15d(_0x490db6,_0x5418c3,_0x16e001);},'jAEVH':function(_0x38e8a7,_0x4cf52a,_0x1ebd08,_0x16cec2,_0x54cbca,_0x1a0e1b,_0x4c6093){return _0x38e8a7(_0x4cf52a,_0x1ebd08,_0x16cec2,_0x54cbca,_0x1a0e1b,_0x4c6093);},'NJdYu':function(_0x10920f,_0x274221,_0x4de1d3){return _0x10920f(_0x274221,_0x4de1d3);},'CvwYK':function(_0x41f5c3,_0x3d18c5,_0x599c9c){return _0x41f5c3(_0x3d18c5,_0x599c9c);},'DnRke':_0x6527a4(0x1c1),'dDezF':function(_0x6bddc6,_0x1831b8){return _0x6bddc6===_0x1831b8;},'NKOuO':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XiwxD':function(_0x4a3ce3,_0x44ce12,_0x26149a,_0x5909b4,_0x18f733,_0x4efefc,_0x1c1446){return _0x4a3ce3(_0x44ce12,_0x26149a,_0x5909b4,_0x18f733,_0x4efefc,_0x1c1446);},'IyzEe':_0x6527a4(0x1bd),'cYFvj':function(_0x57b4a2,_0xb975a3){return _0x57b4a2===_0xb975a3;},'lEkNv':function(_0x19beff,_0x5b480a,_0x5648a9,_0x4db4aa,_0x294250,_0x4c55fd,_0x1a52cc){return _0x19beff(_0x5b480a,_0x5648a9,_0x4db4aa,_0x294250,_0x4c55fd,_0x1a52cc);},'MQlIF':_0x6527a4(0x1b7),'pJXmo':function(_0x2d0283,_0x2f2482,_0x4bae9e,_0x5eecdd,_0x490d6c,_0x2db42a,_0x475c9d){return _0x2d0283(_0x2f2482,_0x4bae9e,_0x5eecdd,_0x490d6c,_0x2db42a,_0x475c9d);},'ExaIA':'server-error'};let _0x8a56f6;try{!_0x572326[_0x6527a4(0x1e8)]&&(logger[_0x6527a4(0x1c5)](_0x40401d[_0x6527a4(0x1d2)]),process['exit'](0x1));!fs['existsSync'](_0x40401d[_0x6527a4(0x1d4)](getCredentialsPath))&&(logger[_0x6527a4(0x1c5)](_0x40401d['dgsbz']),await _0x40401d[_0x6527a4(0x1a4)](sendInstrumentationEvent,_0x572326,_0x40401d[_0x6527a4(0x1f1)],messageTypes['ERROR'],_0x40401d[_0x6527a4(0x1d7)],null,_0x572326),process['exit'](0x1));logger[_0x6527a4(0x1bf)]('Stopping\x20grid\x20'+_0x572326[_0x6527a4(0x1e8)]),await _0x40401d['nbFfn'](sendInstrumentationEvent,_0x572326,_0x40401d[_0x6527a4(0x1f1)],messageTypes[_0x6527a4(0x1ce)],null,null,_0x572326);const _0x698446=JSON[_0x6527a4(0x1ac)](fs['readFileSync'](_0x40401d[_0x6527a4(0x1d4)](getCredentialsPath)));global_registry[_0x6527a4(0x1cc)]=_0x698446[_0x6527a4(0x1e4)]['username'],global_registry['bstackAccesskey']=_0x698446[_0x6527a4(0x1e4)][_0x6527a4(0x1e0)];const _0x2d677c=WS_ENDPOINT['replace'](_0x40401d[_0x6527a4(0x1a2)],_0x698446['Browserstack'][_0x6527a4(0x1a9)])['replace'](_0x40401d[_0x6527a4(0x1a0)],_0x698446[_0x6527a4(0x1e4)][_0x6527a4(0x1e0)]),_0x5bbe6a={};_0x5bbe6a['WebSocket']=ws,_0x5bbe6a[_0x6527a4(0x1e1)]=0x36ee80,_0x8a56f6=new ReconnectingWebSocket(_0x2d677c,[],_0x5bbe6a),logger[_0x6527a4(0x1de)](_0x40401d[_0x6527a4(0x1e2)]),webSocketUtils[_0x6527a4(0x19f)](_0x8a56f6,_0x572326[_0x6527a4(0x1e6)],_0x572326[_0x6527a4(0x1e0)]);const [_0x5b0782,_0x2832f3]=await _0x40401d['GGJdf'](getGridDetails,_0x698446[_0x6527a4(0x1e4)][_0x6527a4(0x1a9)],_0x698446[_0x6527a4(0x1e4)][_0x6527a4(0x1e0)],_0x572326['gridId']);if(_0x2832f3){const _0x188bb0=_0x2832f3['info'];global_registry[_0x6527a4(0x1f2)]=_0x188bb0['cloudProvider'],global_registry[_0x6527a4(0x1aa)]=_0x188bb0[_0x6527a4(0x1af)],global_registry[_0x6527a4(0x1e3)]=_0x188bb0[_0x6527a4(0x1e3)];const _0x11a010=await _0x40401d['jAEVH'](getCloudProviderObject,_0x188bb0[_0x6527a4(0x1f2)],_0x188bb0[_0x6527a4(0x1e3)],_0x188bb0['name'],_0x8a56f6,webSocketUtils,_0x572326),[_0x40e76d,_0xc1daf7,_0x19a623,_0x439f1a,_0x1a096e,_0x5cf4ba]=await _0x40401d[_0x6527a4(0x1ea)](createK8sClient,_0x11a010,_0x572326[_0x6527a4(0x1e7)]);await _0x40401d['CvwYK'](scaleDownHubDeployment,_0xc1daf7,_0x188bb0['name']),logger['info'](_0x40401d[_0x6527a4(0x1b3)]),process[_0x6527a4(0x1b5)](0x0);}_0x40401d[_0x6527a4(0x1ec)](_0x5b0782[_0x6527a4(0x1ad)],0x191)&&(logger[_0x6527a4(0x1c5)](_0x40401d[_0x6527a4(0x1d3)]),await _0x40401d[_0x6527a4(0x1e5)](sendInstrumentationEvent,_0x572326,_0x40401d[_0x6527a4(0x1f1)],messageTypes[_0x6527a4(0x1c8)],_0x40401d[_0x6527a4(0x19c)],null,_0x572326),process[_0x6527a4(0x1b5)](0x1)),_0x40401d[_0x6527a4(0x1cb)](_0x5b0782['statusCode'],0x190)&&(logger[_0x6527a4(0x1c5)](JSON[_0x6527a4(0x1ac)](_0x5b0782[_0x6527a4(0x1eb)])[_0x6527a4(0x1dc)]),await _0x40401d[_0x6527a4(0x1cf)](sendInstrumentationEvent,_0x572326,_0x40401d[_0x6527a4(0x1f1)],messageTypes[_0x6527a4(0x1c8)],_0x40401d['MQlIF'],null,_0x572326),process['exit'](0x1)),logger[_0x6527a4(0x1c5)](_0x6527a4(0x1ef)+JSON['stringify'](_0x5b0782)),await _0x40401d['pJXmo'](sendInstrumentationEvent,_0x572326,_0x40401d['czPpT'],messageTypes[_0x6527a4(0x1c8)],_0x40401d[_0x6527a4(0x19e)],_0x5b0782,_0x572326),process[_0x6527a4(0x1b5)](0x1);}catch(_0x5d3c0c){const _0x2de645=_0x6527a4(0x1b0)+_0x5d3c0c+'\x20\x0a'+JSON[_0x6527a4(0x1b6)](_0x5d3c0c[_0x6527a4(0x1ae)])+'\x20';logger[_0x6527a4(0x1c5)](_0x2de645),process[_0x6527a4(0x1b5)](0x1);}};function a21_0x1f52(){const _0x30ba9f=['hDruu','2172EJGoTk','epilogue','frggd','ORyOn','message','stop','debug','grid','password','connectionTimeout','nvwuk','clusterName','Browserstack','XiwxD','user','skipTlsCertVerify','gridId','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','NJdYu','body','dDezF','IUYwQ','4336760EAMtuv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','default','czPpT','cloudProvider','../../utils/webSocketUtils','../../utils/instrumentationUtils','IyzEe','builder','ExaIA','addListeners','MPQGJ','664854wftxCr','CxiCS','AMIMG','PFEjM','../../utils/gridComponents','16737ZxqUMo','2668356vxkYBf','2wjhJXy','username','clusterRegion','Adding\x20Websocket\x20listeners','parse','statusCode','stack','region','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','command','../../config/constants','DnRke','../../utils/utilityMethods','exit','stringify','invalid-grid-id','reconnecting-websocket','string','stop-grid-called','usage','1289524KhdiKo','unauthorised','description','info','80zbxbYO','Grid\x20stoppped.','skip-tls-cert-verify','grid-id','desc','error','type','942879apYnmy','ERROR','argv','610105OEOYiH','cYFvj','bstackUsername','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','INFO','lEkNv','TyXwa','help','flJDR','NKOuO','PtNHU','Stop\x20a\x20running\x20Automation\x20grid.','Skip\x20insecure\x20cert\x20verification.'];a21_0x1f52=function(){return _0x30ba9f;};return a21_0x1f52();}
@@ -1 +1 @@
1
- function a22_0x1b40(){const _0x49bc5e=['GCP','COMMON_HST_TAGS','BrowserStack','split','CP_CONFIG_FILE','high-scale-grid-cluster','pre-check','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','BrowserStack-Automate-TurboScale','stag','DASHBOARD_ENDPOINT','BSTACK-ATS-CLUSTER-HUB-HA','AZURE','grid-preprod.bsstag.com','8452zjreqF','TRIAL_GRID_URL','connect','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','CLUSTER','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','REDACTED','gridUrl','1241268Xzxpkl','delete','unknown','WS_ENDPOINT','log','config','api-devhst.bsstag.com','CLI_RUN_STARTED','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','[REDACTED]','success','root','grid-devhst.bsstag.com','AWS','pre-prod','RAW_ARGS_REGEX','configure','TURBOSCALE_DEPLOYMENT','RESOURCES','warning','api.browserstack.com','ERROR','CLOUD_PROVIDER','HELP_FOOTER_MESSAGE','LOG','INFO','prod','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gcp','197576zugRca','CLI_RUN_FINISHED','global_registry','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','stop','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','list','BS_API_URL','GRID_URL','forEach','CLUSTER_DEP_STACK_NAME','Key','CLUSTER_AUTOSCALER_STACK_NAME','147usrWFp','api-preprod.bsstag.com','browserstack:service','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','HELP_HEADER_MESSAGE','WS_EVENTS','3635460MOFqdi','grid-profile','info','338547LvNliM','530FeHtHU','high-scale-grid','env','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','24443OuLfyB','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','error','messageTypes','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','push','DEFAULT_GRID_NAME','165729MTDiqy','browserstack:managedBy','us-east-1','UNKNOWN','dotenv','preprod','grid.browserstack.com','WARNING','aws','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BrowserStackIAMUser','90adGSPT','LINK_MESSAGE','grid','Value','DEFAULT_CLUSTER_DETAILS','20zuYIpQ','AG_API_URL','gridProfile','credentials','NULL','resourceInfo','TURBOSCALE_CUSTOM_TAGS','CLI_ARGS_REGEX'];a22_0x1b40=function(){return _0x49bc5e;};return a22_0x1b40();}const a22_0x2ab393=a22_0x2459;(function(_0x44e7a5,_0x4e0d46){const _0x1d9efa=a22_0x2459,_0x5b54a9=_0x44e7a5();while(!![]){try{const _0x5116e7=parseInt(_0x1d9efa(0x1dd))/0x1+parseInt(_0x1d9efa(0x183))/0x2*(parseInt(_0x1d9efa(0x1e4))/0x3)+-parseInt(_0x1d9efa(0x19a))/0x4*(parseInt(_0x1d9efa(0x1d8))/0x5)+-parseInt(_0x1d9efa(0x1a2))/0x6+-parseInt(_0x1d9efa(0x1ce))/0x7*(parseInt(_0x1d9efa(0x1c1))/0x8)+parseInt(_0x1d9efa(0x1d4))/0x9+parseInt(_0x1d9efa(0x17e))/0xa*(parseInt(_0x1d9efa(0x1d7))/0xb);if(_0x5116e7===_0x4e0d46)break;else _0x5b54a9['push'](_0x5b54a9['shift']());}catch(_0x1b1716){_0x5b54a9['push'](_0x5b54a9['shift']());}}}(a22_0x1b40,0x4b459),require(a22_0x2ab393(0x1e8))[a22_0x2ab393(0x1a7)]());let gridURL=a22_0x2ab393(0x1ea),bsApiUrl=a22_0x2ab393(0x1b6),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x2ab393(0x1da)]['BROWSERSTACK_ENV']||a22_0x2ab393(0x1bc))['toLowerCase']();if(_env==='staging'||_env===a22_0x2ab393(0x195))gridURL=a22_0x2ab393(0x1ae),bsApiUrl=a22_0x2ab393(0x1a8),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x2ab393(0x1e9)||_env===a22_0x2ab393(0x1b0))&&(gridURL=a22_0x2ab393(0x199),bsApiUrl=a22_0x2ab393(0x1cf),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process[a22_0x2ab393(0x1da)][a22_0x2ab393(0x196)]||gridURL,exports[a22_0x2ab393(0x1c8)]=process[a22_0x2ab393(0x1da)]['BS_API_URL']||bsApiUrl,exports[a22_0x2ab393(0x184)]=process[a22_0x2ab393(0x1da)][a22_0x2ab393(0x184)]||agApiUrl,exports[a22_0x2ab393(0x1a5)]='wss://'+this[a22_0x2ab393(0x184)]+a22_0x2ab393(0x1bf),exports[a22_0x2ab393(0x18f)]=a22_0x2ab393(0x186),exports['IAM_USER_NAME']=a22_0x2ab393(0x1ee),exports[a22_0x2ab393(0x1e3)]=a22_0x2ab393(0x1d9),exports[a22_0x2ab393(0x1af)]=a22_0x2ab393(0x1ec),exports[a22_0x2ab393(0x1cb)]='BSTACK-ATS-CLUSTER',exports[a22_0x2ab393(0x1cd)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x2ab393(0x197),exports[a22_0x2ab393(0x1b3)]='browserstack-turboscale-grid',exports[a22_0x2ab393(0x198)]='azure',exports[a22_0x2ab393(0x18b)]=a22_0x2ab393(0x1c0),exports[a22_0x2ab393(0x192)]=[this[a22_0x2ab393(0x1af)],this[a22_0x2ab393(0x198)],this[a22_0x2ab393(0x18b)]];const a22_0x53f291={};a22_0x53f291[a22_0x2ab393(0x1cc)]=a22_0x2ab393(0x1e5),a22_0x53f291[a22_0x2ab393(0x181)]=a22_0x2ab393(0x18d);const a22_0x13f847={};a22_0x13f847[a22_0x2ab393(0x1cc)]=a22_0x2ab393(0x1d0),a22_0x13f847[a22_0x2ab393(0x181)]=a22_0x2ab393(0x194);const common_hst_tags_list=[a22_0x53f291,a22_0x13f847];if(process['env'][a22_0x2ab393(0x189)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x2ab393(0x18e)](',');parsedTags[a22_0x2ab393(0x1ca)](_0x537c91=>{const _0x58b59e=a22_0x2ab393,_0x2f20ee=_0x537c91[_0x58b59e(0x18e)](':'),_0x43bcee={};_0x43bcee['Key']=_0x2f20ee[0x0],_0x43bcee[_0x58b59e(0x181)]=_0x2f20ee[0x1],common_hst_tags_list[_0x58b59e(0x1e2)](_0x43bcee);});}exports[a22_0x2ab393(0x18c)]=common_hst_tags_list;const a22_0x2746e8={};a22_0x2746e8['browserstack:managedBy']=a22_0x2ab393(0x18d),a22_0x2746e8[a22_0x2ab393(0x1d0)]=a22_0x2ab393(0x194),exports['HST_CLUSTER_TAGS']=a22_0x2746e8,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x2ab393(0x1af)]];const a22_0x4b70cd={};a22_0x4b70cd[a22_0x2ab393(0x1ba)]=a22_0x2ab393(0x1a6),a22_0x4b70cd[a22_0x2ab393(0x1b4)]=a22_0x2ab393(0x188),a22_0x4b70cd[a22_0x2ab393(0x1c9)]=a22_0x2ab393(0x1a1),a22_0x4b70cd[a22_0x2ab393(0x1a9)]='cliRunStarted',a22_0x4b70cd[a22_0x2ab393(0x1c2)]='cliRunFinished',exports[a22_0x2ab393(0x1d3)]=a22_0x4b70cd,exports[a22_0x2ab393(0x1c3)]={},exports['LINK_MESSAGE']=a22_0x2ab393(0x1d1);const a22_0x11bfaa={};function a22_0x2459(_0x220945,_0x1de4e0){const _0x1b4022=a22_0x1b40();return a22_0x2459=function(_0x2459c9,_0x99a87c){_0x2459c9=_0x2459c9-0x17e;let _0xc80eb9=_0x1b4022[_0x2459c9];return _0xc80eb9;},a22_0x2459(_0x220945,_0x1de4e0);}a22_0x11bfaa[a22_0x2ab393(0x1ad)]=a22_0x2ab393(0x193)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1b2)]=a22_0x2ab393(0x1de)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa['create']=a22_0x2ab393(0x1be)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1c7)]={},a22_0x11bfaa[a22_0x2ab393(0x1a3)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x11bfaa[a22_0x2ab393(0x19c)]=a22_0x2ab393(0x1c4)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa['start']=a22_0x2ab393(0x19d)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1c5)]=a22_0x2ab393(0x1aa)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa['pre_check']=a22_0x2ab393(0x19f)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1c7)][a22_0x2ab393(0x1ad)]=a22_0x2ab393(0x1c6)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1c7)][a22_0x2ab393(0x180)]=a22_0x2ab393(0x1bd)+this['LINK_MESSAGE'],a22_0x11bfaa[a22_0x2ab393(0x1c7)][a22_0x2ab393(0x185)]=a22_0x2ab393(0x1db)+this[a22_0x2ab393(0x17f)],exports[a22_0x2ab393(0x1d2)]=a22_0x11bfaa,exports[a22_0x2ab393(0x1b9)]=a22_0x2ab393(0x1e1);const a22_0x5eb502={};a22_0x5eb502['SUCCESS']=a22_0x2ab393(0x1ac),a22_0x5eb502[a22_0x2ab393(0x1b7)]=a22_0x2ab393(0x1df),a22_0x5eb502[a22_0x2ab393(0x1bb)]=a22_0x2ab393(0x1d6),a22_0x5eb502[a22_0x2ab393(0x1eb)]=a22_0x2ab393(0x1b5),a22_0x5eb502[a22_0x2ab393(0x1e7)]=a22_0x2ab393(0x1a4),a22_0x5eb502[a22_0x2ab393(0x187)]=null,exports[a22_0x2ab393(0x1e0)]=a22_0x5eb502,exports[a22_0x2ab393(0x18a)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2ab393(0x1b1)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2ab393(0x1a0)]=a22_0x2ab393(0x1ab);const a22_0x29bd4d={};a22_0x29bd4d[a22_0x2ab393(0x1d5)]=a22_0x2ab393(0x1dc);const a22_0x15f42d={};a22_0x15f42d[a22_0x2ab393(0x191)]=a22_0x29bd4d,exports['MessageDescription']=a22_0x15f42d,exports[a22_0x2ab393(0x19b)]=a22_0x2ab393(0x1ed);const a22_0x930b59={};a22_0x930b59[a22_0x2ab393(0x19e)]=a22_0x2ab393(0x190),a22_0x930b59[a22_0x2ab393(0x1b8)]=a22_0x2ab393(0x1ec),a22_0x930b59['REGION']=a22_0x2ab393(0x1e6),exports[a22_0x2ab393(0x182)]=a22_0x930b59;
1
+ const a22_0x200f91=a22_0x5ee3;(function(_0x4045a2,_0x373a63){const _0x4451f4=a22_0x5ee3,_0x3f85c9=_0x4045a2();while(!![]){try{const _0x190370=-parseInt(_0x4451f4(0xac))/0x1*(-parseInt(_0x4451f4(0xea))/0x2)+-parseInt(_0x4451f4(0xf8))/0x3*(parseInt(_0x4451f4(0xbf))/0x4)+parseInt(_0x4451f4(0xf5))/0x5+-parseInt(_0x4451f4(0xb0))/0x6+parseInt(_0x4451f4(0xab))/0x7+parseInt(_0x4451f4(0xfc))/0x8*(-parseInt(_0x4451f4(0xc7))/0x9)+parseInt(_0x4451f4(0xf4))/0xa*(parseInt(_0x4451f4(0xef))/0xb);if(_0x190370===_0x373a63)break;else _0x3f85c9['push'](_0x3f85c9['shift']());}catch(_0x4a445b){_0x3f85c9['push'](_0x3f85c9['shift']());}}}(a22_0x1dd0,0x18d22),require('dotenv')[a22_0x200f91(0xaf)]());let gridURL=a22_0x200f91(0xe7),bsApiUrl=a22_0x200f91(0xdf),agApiUrl=a22_0x200f91(0xdc);const _env=(process[a22_0x200f91(0xa7)][a22_0x200f91(0x10c)]||'prod')['toLowerCase']();if(_env===a22_0x200f91(0x102)||_env===a22_0x200f91(0xd1))gridURL=a22_0x200f91(0xa6),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x200f91(0xf9)||_env===a22_0x200f91(0xec))&&(gridURL=a22_0x200f91(0xfe),bsApiUrl=a22_0x200f91(0xc4),agApiUrl=a22_0x200f91(0xb8));exports[a22_0x200f91(0xc0)]=process[a22_0x200f91(0xa7)][a22_0x200f91(0xc0)]||gridURL,exports[a22_0x200f91(0xd4)]=process['env']['BS_API_URL']||bsApiUrl,exports['AG_API_URL']=process[a22_0x200f91(0xa7)][a22_0x200f91(0xd0)]||agApiUrl,exports[a22_0x200f91(0xee)]=a22_0x200f91(0xd8)+this[a22_0x200f91(0xd0)]+a22_0x200f91(0xa0),exports[a22_0x200f91(0xe0)]=a22_0x200f91(0xb4),exports[a22_0x200f91(0x9e)]=a22_0x200f91(0xeb),exports[a22_0x200f91(0xc5)]='high-scale-grid',exports[a22_0x200f91(0xe4)]=a22_0x200f91(0x10b),exports[a22_0x200f91(0xfd)]=a22_0x200f91(0x103),exports[a22_0x200f91(0xcb)]=a22_0x200f91(0x106),exports[a22_0x200f91(0xa3)]=a22_0x200f91(0xe5),exports[a22_0x200f91(0xbc)]='browserstack-turboscale-grid',exports[a22_0x200f91(0xcd)]=a22_0x200f91(0xfb),exports['GCP']=a22_0x200f91(0xa1),exports[a22_0x200f91(0xd3)]=[this[a22_0x200f91(0xe4)],this[a22_0x200f91(0xcd)],this[a22_0x200f91(0xba)]];const a22_0x39c999={};a22_0x39c999[a22_0x200f91(0xad)]=a22_0x200f91(0xd7),a22_0x39c999[a22_0x200f91(0xf2)]=a22_0x200f91(0xdd);const a22_0x139b91={};a22_0x139b91[a22_0x200f91(0xad)]=a22_0x200f91(0xd6),a22_0x139b91[a22_0x200f91(0xf2)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x39c999,a22_0x139b91];if(process['env'][a22_0x200f91(0xe8)]){const parsedTags=process[a22_0x200f91(0xa7)][a22_0x200f91(0xe8)][a22_0x200f91(0xa5)](',');parsedTags[a22_0x200f91(0xcf)](_0xb0eb61=>{const _0xc3d989=a22_0x200f91,_0x51451d=_0xb0eb61[_0xc3d989(0xa5)](':'),_0x1f7901={};_0x1f7901[_0xc3d989(0xad)]=_0x51451d[0x0],_0x1f7901['Value']=_0x51451d[0x1],common_hst_tags_list['push'](_0x1f7901);});}exports[a22_0x200f91(0x104)]=common_hst_tags_list;function a22_0x1dd0(){const _0x31f40c=['\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','CLI_RUN_FINISHED','aws','BROWSERSTACK_ENV','IAM_USER_NAME','configure','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gcp','list','CLUSTER_HUB_HA_STACK_NAME','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','split','grid-devhst.bsstag.com','env','SUCCESS','DEFAULT_CLUSTER_DETAILS','high-scale-grid-cluster','996338CuJkOM','1qNwJcd','Key','gridUrl','config','889092cXantO','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','root','init','credentials','RAW_ARGS_REGEX','HST_CLUSTER_TAGS','pre_check','grid-api-preprod.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','GCP','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','TURBOSCALE_DEPLOYMENT','GRID_URL','success','28xCmwVH','DASHBOARD_ENDPOINT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','cliRunFinished','BrowserStack-Automate-TurboScale','api-preprod.bsstag.com','DEFAULT_GRID_NAME','SUPPORTED_CLOUD_PROVIDERS','1713654qaWjHR','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','LINK_MESSAGE','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','CLUSTER_AUTOSCALER_STACK_NAME','CLUSTER','AZURE','REDACTED','forEach','AG_API_URL','stag','gridProfile','ALL_SUPPORTED_CLOUD_PROVIDERS','BS_API_URL','LOG','browserstack:service','browserstack:managedBy','wss://','cliRunStarted','warning','INFO','grid-api.browserstack.com','BrowserStack','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','api.browserstack.com','CP_CONFIG_FILE','info','us-east-1','HELP_FOOTER_MESSAGE','AWS','BSTACK-ATS-CLUSTER-HUB-HA','CLI_ARGS_REGEX','grid.browserstack.com','TURBOSCALE_CUSTOM_TAGS','create','66962aQCLzj','BrowserStackIAMUser','pre-prod','WARNING','WS_ENDPOINT','4697rftLXv','grid','HELP_HEADER_MESSAGE','Value','RESOURCES','4990MbtXMB','348845DIBjfk','TRIAL_GRID_URL','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','7887BekIaT','preprod','delete','azure','8BcefME','CLUSTER_DEP_STACK_NAME','grid-preprod.bsstag.com','pre-check','grid-profile','CLI_RUN_STARTED','staging','BSTACK-ATS-CLUSTER','COMMON_HST_TAGS','ERROR','BSTACK-ATS-CLUSTER-AUTOSCALER','resourceInfo','NULL'];a22_0x1dd0=function(){return _0x31f40c;};return a22_0x1dd0();}const a22_0x3a899a={};a22_0x3a899a[a22_0x200f91(0xd7)]=a22_0x200f91(0xdd),a22_0x3a899a[a22_0x200f91(0xd6)]=a22_0x200f91(0xc3),exports[a22_0x200f91(0xb6)]=a22_0x3a899a,exports[a22_0x200f91(0xc6)]=[this[a22_0x200f91(0xe4)]];const a22_0x53e779={};a22_0x53e779[a22_0x200f91(0xd5)]='log',a22_0x53e779[a22_0x200f91(0xf3)]=a22_0x200f91(0x107),a22_0x53e779[a22_0x200f91(0xbd)]=a22_0x200f91(0xae),a22_0x53e779[a22_0x200f91(0x101)]=a22_0x200f91(0xd9),a22_0x53e779[a22_0x200f91(0x10a)]=a22_0x200f91(0xc2),exports['WS_EVENTS']=a22_0x53e779,exports['global_registry']={},exports[a22_0x200f91(0xc9)]=a22_0x200f91(0xbb);const a22_0x11d428={};a22_0x11d428[a22_0x200f91(0xb2)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xb3)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0x9f)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xe9)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xa2)]={},a22_0x11d428[a22_0x200f91(0xfa)]=a22_0x200f91(0x109)+this[a22_0x200f91(0xc9)],a22_0x11d428['connect']=a22_0x200f91(0xca)+this['LINK_MESSAGE'],a22_0x11d428['start']=a22_0x200f91(0xb1)+this['LINK_MESSAGE'],a22_0x11d428['stop']=a22_0x200f91(0xb9)+this['LINK_MESSAGE'],a22_0x11d428[a22_0x200f91(0xb7)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x11d428[a22_0x200f91(0xa2)][a22_0x200f91(0xb2)]=a22_0x200f91(0xde)+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xa2)][a22_0x200f91(0xf0)]=a22_0x200f91(0xc8)+this[a22_0x200f91(0xc9)],a22_0x11d428[a22_0x200f91(0xa2)][a22_0x200f91(0xd2)]=a22_0x200f91(0xc1)+this[a22_0x200f91(0xc9)],exports[a22_0x200f91(0xf1)]=a22_0x11d428,exports[a22_0x200f91(0xe3)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x4da59e={};a22_0x4da59e[a22_0x200f91(0xa8)]=a22_0x200f91(0xbe),a22_0x4da59e[a22_0x200f91(0x105)]='error',a22_0x4da59e[a22_0x200f91(0xdb)]=a22_0x200f91(0xe1),a22_0x4da59e[a22_0x200f91(0xed)]=a22_0x200f91(0xda),a22_0x4da59e['UNKNOWN']='unknown',a22_0x4da59e[a22_0x200f91(0x108)]=null,exports['messageTypes']=a22_0x4da59e,exports[a22_0x200f91(0xe6)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x200f91(0xb5)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x200f91(0xce)]='[REDACTED]';const a22_0x2f99ab={};a22_0x2f99ab[a22_0x200f91(0x100)]=a22_0x200f91(0xf7);const a22_0x407be1={};function a22_0x5ee3(_0x4db57f,_0x4956c7){const _0x1dd05e=a22_0x1dd0();return a22_0x5ee3=function(_0x5ee39b,_0xc72785){_0x5ee39b=_0x5ee39b-0x9e;let _0x350528=_0x1dd05e[_0x5ee39b];return _0x350528;},a22_0x5ee3(_0x4db57f,_0x4956c7);}a22_0x407be1[a22_0x200f91(0xff)]=a22_0x2f99ab,exports['MessageDescription']=a22_0x407be1,exports[a22_0x200f91(0xf6)]=a22_0x200f91(0xa4);const a22_0x466838={};a22_0x466838[a22_0x200f91(0xcc)]=a22_0x200f91(0xaa),a22_0x466838['CLOUD_PROVIDER']='aws',a22_0x466838['REGION']=a22_0x200f91(0xe2),exports[a22_0x200f91(0xa9)]=a22_0x466838;
@@ -1 +1 @@
1
- function a23_0x37c3(_0x13ae63,_0x383cc5){const _0x488754=a23_0x4887();return a23_0x37c3=function(_0x37c333,_0x3bac1c){_0x37c333=_0x37c333-0x66;let _0x13a84d=_0x488754[_0x37c333];return _0x13a84d;},a23_0x37c3(_0x13ae63,_0x383cc5);}const a23_0x24e20a=a23_0x37c3;(function(_0x34329b,_0x1216c2){const _0x19d01c=a23_0x37c3,_0x3f13c2=_0x34329b();while(!![]){try{const _0x41b5be=parseInt(_0x19d01c(0x86))/0x1*(parseInt(_0x19d01c(0x76))/0x2)+parseInt(_0x19d01c(0x66))/0x3*(parseInt(_0x19d01c(0x69))/0x4)+parseInt(_0x19d01c(0x85))/0x5+-parseInt(_0x19d01c(0x71))/0x6+parseInt(_0x19d01c(0x6e))/0x7*(-parseInt(_0x19d01c(0x84))/0x8)+-parseInt(_0x19d01c(0x74))/0x9*(-parseInt(_0x19d01c(0x6f))/0xa)+-parseInt(_0x19d01c(0x75))/0xb*(-parseInt(_0x19d01c(0x6d))/0xc);if(_0x41b5be===_0x1216c2)break;else _0x3f13c2['push'](_0x3f13c2['shift']());}catch(_0xd04f06){_0x3f13c2['push'](_0x3f13c2['shift']());}}}(a23_0x4887,0x370e7));const winston=require(a23_0x24e20a(0x7c)),fs=require('fs'),path=require(a23_0x24e20a(0x7e)),logDir=a23_0x24e20a(0x67);!fs['existsSync'](logDir)&&fs[a23_0x24e20a(0x81)](logDir);function a23_0x4887(){const _0x5c3b87=['1743vifMee','321080amDeWa','combine','1390512PYmcvg','usage.log','logger','72PSRqJL','209iDGHJD','12xsfvxI','message','YYYY-MM-DD\x20HH:mm:ss','colorize','\x20-\x20','createLogger','winston','name','path','Console','timestamp','mkdirSync','printf','console.info','11056MjFZFz','200265acfiIf','28163CNYZNK','format','File','5895cttekM','log','transports','144yKAmuM','level','debug','join','167208YOFiuG'];a23_0x4887=function(){return _0x5c3b87;};return a23_0x4887();}const a23_0xa35a20={};a23_0xa35a20[a23_0x24e20a(0x87)]=a23_0x24e20a(0x78);const a23_0x3f0abf={};a23_0x3f0abf[a23_0x24e20a(0x6a)]=!![];const a23_0x2f8707={};a23_0x2f8707[a23_0x24e20a(0x7d)]=a23_0x24e20a(0x83),exports[a23_0x24e20a(0x73)]=new winston['createLogger']({'format':winston[a23_0x24e20a(0x87)][a23_0x24e20a(0x70)](winston[a23_0x24e20a(0x87)][a23_0x24e20a(0x80)](a23_0xa35a20),winston[a23_0x24e20a(0x87)][a23_0x24e20a(0x79)](a23_0x3f0abf),winston[a23_0x24e20a(0x87)][a23_0x24e20a(0x82)](_0x5bf925=>_0x5bf925[a23_0x24e20a(0x80)]+a23_0x24e20a(0x7a)+_0x5bf925[a23_0x24e20a(0x6a)]+':\x20'+_0x5bf925[a23_0x24e20a(0x77)])),'transports':[new winston[(a23_0x24e20a(0x68))][(a23_0x24e20a(0x7f))](a23_0x2f8707),new winston[(a23_0x24e20a(0x68))][(a23_0x24e20a(0x88))]({'filename':path[a23_0x24e20a(0x6c)](logDir,'events.log'),'level':a23_0x24e20a(0x6b)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x24e20a(0x68))][(a23_0x24e20a(0x88))]({'filename':path[a23_0x24e20a(0x6c)](logDir,a23_0x24e20a(0x72)),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x24e20a(0x7b))](winstonFileLoggerParams);
1
+ const a23_0x2e46c9=a23_0x301a;function a23_0x301a(_0xe67eb1,_0x1442fd){const _0x1396dc=a23_0x1396();return a23_0x301a=function(_0x301a2f,_0x235af7){_0x301a2f=_0x301a2f-0x94;let _0xdbbfe3=_0x1396dc[_0x301a2f];return _0xdbbfe3;},a23_0x301a(_0xe67eb1,_0x1442fd);}(function(_0x524246,_0x21e396){const _0x38ff4d=a23_0x301a,_0x19b802=_0x524246();while(!![]){try{const _0x1b6805=parseInt(_0x38ff4d(0xaa))/0x1+-parseInt(_0x38ff4d(0xa0))/0x2+-parseInt(_0x38ff4d(0xa1))/0x3*(-parseInt(_0x38ff4d(0x9b))/0x4)+parseInt(_0x38ff4d(0xad))/0x5+parseInt(_0x38ff4d(0xb1))/0x6+-parseInt(_0x38ff4d(0x9e))/0x7+-parseInt(_0x38ff4d(0x9c))/0x8;if(_0x1b6805===_0x21e396)break;else _0x19b802['push'](_0x19b802['shift']());}catch(_0x227ba3){_0x19b802['push'](_0x19b802['shift']());}}}(a23_0x1396,0xce307));const winston=require(a23_0x2e46c9(0xa8)),fs=require('fs'),path=require(a23_0x2e46c9(0x94)),logDir=a23_0x2e46c9(0xa6);!fs[a23_0x2e46c9(0x95)](logDir)&&fs[a23_0x2e46c9(0xae)](logDir);const a23_0x3282b7={};a23_0x3282b7[a23_0x2e46c9(0xb0)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0xbdb9fe={};a23_0xbdb9fe[a23_0x2e46c9(0xa4)]=!![];const a23_0x569949={};a23_0x569949[a23_0x2e46c9(0x9a)]=a23_0x2e46c9(0x9d),exports[a23_0x2e46c9(0xa9)]=new winston[(a23_0x2e46c9(0xa2))]({'format':winston[a23_0x2e46c9(0xb0)][a23_0x2e46c9(0x97)](winston[a23_0x2e46c9(0xb0)][a23_0x2e46c9(0xa7)](a23_0x3282b7),winston['format'][a23_0x2e46c9(0x98)](a23_0xbdb9fe),winston[a23_0x2e46c9(0xb0)]['printf'](_0x54cf78=>_0x54cf78[a23_0x2e46c9(0xa7)]+a23_0x2e46c9(0x99)+_0x54cf78[a23_0x2e46c9(0xa4)]+':\x20'+_0x54cf78[a23_0x2e46c9(0x9f)])),'transports':[new winston[(a23_0x2e46c9(0xa3))]['Console'](a23_0x569949),new winston[(a23_0x2e46c9(0xa3))][(a23_0x2e46c9(0x96))]({'filename':path[a23_0x2e46c9(0xaf)](logDir,a23_0x2e46c9(0xac)),'level':a23_0x2e46c9(0xa5)})]});function a23_0x1396(){const _0x35b719=['winston','logger','1623611RdSWVj','usage.log','events.log','4048045yMCHtU','mkdirSync','join','format','9152646FNuUIS','path','existsSync','File','combine','colorize','\x20-\x20','name','1256472zTflxz','15421168bduoCP','console.info','5696271kaEZJh','message','1373658rxVnbs','3qaTHtV','createLogger','transports','level','debug','log','timestamp'];a23_0x1396=function(){return _0x35b719;};return a23_0x1396();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x2e46c9(0xa3))][(a23_0x2e46c9(0x96))]({'filename':path[a23_0x2e46c9(0xaf)](logDir,a23_0x2e46c9(0xab)),'level':a23_0x2e46c9(0xa5)})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x3cf0(){const _0x104aed=['762270AlofGV','8cftgte','dqIQv','./config/constants','948376UVvMqo','exports','2075103PZaviX','demandCommand','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','672889tDevTJ','env','104469rblxeq','2391356LHyvhd','24690UyBDay','help','44BYnwld','77sICndC','ywWYe','commands','775ETEBWK'];a24_0x3cf0=function(){return _0x104aed;};return a24_0x3cf0();}function a24_0x3387(_0x32568a,_0xf00b7a){const _0x3cf066=a24_0x3cf0();return a24_0x3387=function(_0x3387d8,_0x192620){_0x3387d8=_0x3387d8-0xe6;let _0x5516ef=_0x3cf066[_0x3387d8];return _0x5516ef;},a24_0x3387(_0x32568a,_0xf00b7a);}const a24_0x332635=a24_0x3387;(function(_0x246a99,_0x37146){const _0x3fd403=a24_0x3387,_0x99f3fc=_0x246a99();while(!![]){try{const _0x9f2179=parseInt(_0x3fd403(0xe9))/0x1+-parseInt(_0x3fd403(0xf4))/0x2*(parseInt(_0x3fd403(0xf0))/0x3)+parseInt(_0x3fd403(0xf1))/0x4+parseInt(_0x3fd403(0xf8))/0x5*(parseInt(_0x3fd403(0xf2))/0x6)+parseInt(_0x3fd403(0xee))/0x7*(parseInt(_0x3fd403(0xe6))/0x8)+-parseInt(_0x3fd403(0xeb))/0x9+parseInt(_0x3fd403(0xf9))/0xa*(-parseInt(_0x3fd403(0xf5))/0xb);if(_0x9f2179===_0x37146)break;else _0x99f3fc['push'](_0x99f3fc['shift']());}catch(_0x42422d){_0x99f3fc['push'](_0x99f3fc['shift']());}}}(a24_0x3cf0,0xb7151));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x332635(0xe8));process[a24_0x332635(0xef)][a24_0x332635(0xed)]=0x1;function run(_0x793d9f){const _0x3f9c42=a24_0x332635,_0x47bdcb={};_0x47bdcb[_0x3f9c42(0xf6)]=_0x3f9c42(0xf7),_0x47bdcb[_0x3f9c42(0xe7)]=_0x3f9c42(0xf3);const _0x3564db=_0x47bdcb;_0x793d9f['usage'](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x3564db[_0x3f9c42(0xf6)])[_0x3f9c42(0xec)]()[_0x3f9c42(0xf3)](_0x3564db[_0x3f9c42(0xe7)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x332635(0xea)]=run;
2
+ 'use strict';function a24_0x26df(_0x17b7af,_0x197eae){const _0x11fe07=a24_0x11fe();return a24_0x26df=function(_0x26dfa0,_0x4e0ac1){_0x26dfa0=_0x26dfa0-0xf8;let _0x15984b=_0x11fe07[_0x26dfa0];return _0x15984b;},a24_0x26df(_0x17b7af,_0x197eae);}const a24_0x507e29=a24_0x26df;function a24_0x11fe(){const _0x1a74e9=['2786rfLxJQ','139472RnQgZb','epilogue','895LnrNHi','pEnxF','10ueLKsV','86306srNguC','3338244iUvjMB','410PPifnB','5017248PSsTzG','./config/constants','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','env','demandCommand','DFPOz','root','usage','2386959ryygPc','commands','8934MOhcBu','exports','310YzvStT'];a24_0x11fe=function(){return _0x1a74e9;};return a24_0x11fe();}(function(_0x3b426f,_0x155de7){const _0x27837a=a24_0x26df,_0x29f0f7=_0x3b426f();while(!![]){try{const _0x1e90b7=parseInt(_0x27837a(0xfa))/0x1*(-parseInt(_0x27837a(0x10c))/0x2)+-parseInt(_0x27837a(0x108))/0x3+parseInt(_0x27837a(0xf8))/0x4*(parseInt(_0x27837a(0xfc))/0x5)+parseInt(_0x27837a(0x10a))/0x6*(parseInt(_0x27837a(0x10d))/0x7)+parseInt(_0x27837a(0x100))/0x8+parseInt(_0x27837a(0xfe))/0x9+parseInt(_0x27837a(0xff))/0xa*(-parseInt(_0x27837a(0xfd))/0xb);if(_0x1e90b7===_0x155de7)break;else _0x29f0f7['push'](_0x29f0f7['shift']());}catch(_0x2a2218){_0x29f0f7['push'](_0x29f0f7['shift']());}}}(a24_0x11fe,0x62b8e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x507e29(0x101));process[a24_0x507e29(0x103)][a24_0x507e29(0x102)]=0x1;function run(_0x153d1f){const _0xb4be40=a24_0x507e29,_0x1192a8={};_0x1192a8[_0xb4be40(0x105)]=_0xb4be40(0x109),_0x1192a8[_0xb4be40(0xfb)]='help';const _0x29b3e6=_0x1192a8;_0x153d1f[_0xb4be40(0x107)](HELP_HEADER_MESSAGE[_0xb4be40(0x106)])['commandDir'](_0x29b3e6['DFPOz'])[_0xb4be40(0x104)]()['help'](_0x29b3e6['pEnxF'])[_0xb4be40(0xf9)](HELP_FOOTER_MESSAGE);}module[a24_0x507e29(0x10b)]=run;