browserstack-node-sdk 1.42.4 → 1.42.5

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
+ const a15_0x5df693=a15_0x3a16;(function(_0x5850b0,_0x4878dc){const _0x207070=a15_0x3a16,_0x3b9fa2=_0x5850b0();while(!![]){try{const _0x359783=-parseInt(_0x207070(0x17e))/0x1*(-parseInt(_0x207070(0x191))/0x2)+parseInt(_0x207070(0x173))/0x3+parseInt(_0x207070(0x184))/0x4+-parseInt(_0x207070(0x196))/0x5+-parseInt(_0x207070(0x1c5))/0x6*(parseInt(_0x207070(0x1af))/0x7)+parseInt(_0x207070(0x17c))/0x8+parseInt(_0x207070(0x172))/0x9*(-parseInt(_0x207070(0x189))/0xa);if(_0x359783===_0x4878dc)break;else _0x3b9fa2['push'](_0x3b9fa2['shift']());}catch(_0x1299ff){_0x3b9fa2['push'](_0x3b9fa2['shift']());}}}(a15_0x1d76,0xe62da));const fs=require('fs'),got=require(a15_0x5df693(0x186)),{table}=require(a15_0x5df693(0x1ab)),{v4:uuidv4}=require(a15_0x5df693(0x179)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5df693(0x188)),{getCredentialsPath,getAuthHeader}=require(a15_0x5df693(0x19e)),{sendInstrumentationEvent}=require(a15_0x5df693(0x19b));function a15_0x3a16(_0x2dd2,_0x796ef2){const _0x1d760a=a15_0x1d76();return a15_0x3a16=function(_0x3a166d,_0x1d4758){_0x3a166d=_0x3a166d-0x171;let _0x28b6b7=_0x1d760a[_0x3a166d];return _0x28b6b7;},a15_0x3a16(_0x2dd2,_0x796ef2);}function a15_0x1d76(){const _0x1fa623=['qgLbc','../../utils/utilityMethods','existsSync','GzXmb','grid-name','username','gbbUJ','unauthorised','Failed\x20to\x20list\x20resources!\x20Error:\x20','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','usage','vERzV','bstackUsername','table','/packages/cli/get-grids','ERROR','forEach','71687ijKJJr','clusterName','dkCwH','Browserstack','KXMAk','error','/packages/cli/get-all-grids','help','XLSvL','stringify','allGrids','MxQKL','list-grids-called','CfSIv','grid-id','type','cluster-name','KYmwM','unknown-error','init-not-called','readFileSync','running','150EDPaID','INFO','lZzDU','UsEES','bstackAccesskey','all-grids','282537lQNbPx','1266132hpYFyK','YRAPM','WElQt','uvkvq','IBKbt','server-error','uuid','boolean','builder','13880440WWWfMJ','grids','28DjECgd','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','SNeyY','parse','stack','log','5996240jEcxHY','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','got','aORTQ','../../config/constants','620uSdutQ','epilogue','GiPQw','requestId','yAIuk','YpNQG','desc','push','83742UnMXHM','EfRIO','command','options','body','8416730SfKdzn','exit','queued','TwOTi','password','../../utils/instrumentationUtils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a15_0x1d76=function(){return _0x1fa623;};return a15_0x1d76();}exports[a15_0x5df693(0x193)]=a15_0x5df693(0x17d),exports[a15_0x5df693(0x18f)]=a15_0x5df693(0x17f),exports[a15_0x5df693(0x17b)]=function(_0x189ed0){const _0x2a682d=a15_0x5df693,_0xbf4c4={};_0xbf4c4[_0x2a682d(0x187)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0xbf4c4['yAIuk']=_0x2a682d(0x17a),_0xbf4c4[_0x2a682d(0x1ba)]=_0x2a682d(0x1b6);const _0x5f178e=_0xbf4c4,_0x100e62={};_0x100e62['description']=_0x5f178e[_0x2a682d(0x187)],_0x100e62[_0x2a682d(0x1be)]=_0x5f178e[_0x2a682d(0x18d)];const _0x2b3339={};return _0x2b3339[_0x2a682d(0x171)]=_0x100e62,_0x189ed0[_0x2a682d(0x1a8)](HELP_HEADER_MESSAGE['list']['grid'])[_0x2a682d(0x18a)](HELP_FOOTER_MESSAGE)[_0x2a682d(0x194)](_0x2b3339)[_0x2a682d(0x1b6)](_0x5f178e[_0x2a682d(0x1ba)])['argv'];},exports['handler']=async function(_0x7786b1){const _0x50794d=a15_0x5df693,_0x33960e={'ZZLrG':function(_0x2bcf52){return _0x2bcf52();},'XLSvL':function(_0x4f550a){return _0x4f550a();},'YRAPM':_0x50794d(0x19c),'KXMAk':function(_0x2e375e,_0x5512e7,_0x2793f9,_0x220219,_0x1a4e74,_0x5d352c,_0x55e1d1){return _0x2e375e(_0x5512e7,_0x2793f9,_0x220219,_0x1a4e74,_0x5d352c,_0x55e1d1);},'vERzV':_0x50794d(0x1bb),'IgDKt':_0x50794d(0x1c2),'dkCwH':function(_0x4a3a30){return _0x4a3a30();},'WElQt':'GET','SNeyY':function(_0x3e9c5a,_0x13cf1f,_0x218a1c){return _0x3e9c5a(_0x13cf1f,_0x218a1c);},'TwOTi':function(_0x489d6e,_0x2ede6a,_0x49b450,_0x505784,_0x55a8a6,_0x2873b0,_0x4509e1){return _0x489d6e(_0x2ede6a,_0x49b450,_0x505784,_0x55a8a6,_0x2873b0,_0x4509e1);},'GiPQw':function(_0x588d13,_0x4407bd,_0x526026){return _0x588d13(_0x4407bd,_0x526026);},'NJdqN':function(_0x1a55eb,_0x5f1715){return _0x1a55eb!==_0x5f1715;},'YpNQG':function(_0x113a54,_0x52e1d9){return _0x113a54===_0x52e1d9;},'GzXmb':'\x0aFound\x20the\x20following\x20grids:\x0a','IBKbt':_0x50794d(0x1bd),'uvkvq':_0x50794d(0x1a1),'gbbUJ':'status','qgLbc':_0x50794d(0x1c4),'UsEES':_0x50794d(0x198),'EfRIO':_0x50794d(0x1bf),'uxdzW':function(_0x31888a,_0x37cee5){return _0x31888a(_0x37cee5);},'kGXXZ':function(_0x5d54e8,_0x5d075c){return _0x5d54e8===_0x5d075c;},'CfSIv':_0x50794d(0x185),'KYmwM':_0x50794d(0x1a4),'lZzDU':_0x50794d(0x178),'VyZnV':_0x50794d(0x1c1)};try{global_registry[_0x50794d(0x18c)]=_0x33960e['ZZLrG'](uuidv4);!fs[_0x50794d(0x19f)](_0x33960e[_0x50794d(0x1b7)](getCredentialsPath))&&(console[_0x50794d(0x1b4)](_0x33960e[_0x50794d(0x174)]),await _0x33960e[_0x50794d(0x1b3)](sendInstrumentationEvent,_0x7786b1,_0x33960e['vERzV'],messageTypes['ERROR'],_0x33960e['IgDKt'],null,_0x7786b1),process[_0x50794d(0x197)](0x1));const _0xd55ffa=JSON[_0x50794d(0x181)](fs[_0x50794d(0x1c3)](_0x33960e[_0x50794d(0x1b1)](getCredentialsPath)));let _0x3af29b=_0x50794d(0x1a6)+AG_API_URL+_0x50794d(0x1ac);_0x7786b1[_0x50794d(0x1b9)]&&(_0x3af29b=_0x50794d(0x1a6)+AG_API_URL+_0x50794d(0x1b5));const _0x116eff={'method':_0x33960e[_0x50794d(0x175)],'headers':_0x33960e[_0x50794d(0x180)](getAuthHeader,_0xd55ffa['Browserstack'][_0x50794d(0x1a2)],_0xd55ffa[_0x50794d(0x1b2)][_0x50794d(0x19a)]),'throwHttpErrors':![]};global_registry[_0x50794d(0x1aa)]=_0xd55ffa['Browserstack'][_0x50794d(0x1a2)],global_registry[_0x50794d(0x1c9)]=_0xd55ffa[_0x50794d(0x1b2)][_0x50794d(0x19a)],_0x33960e[_0x50794d(0x199)](sendInstrumentationEvent,_0x7786b1,_0x33960e[_0x50794d(0x1a9)],messageTypes[_0x50794d(0x1c6)],null,null,_0x7786b1);const _0x42bf43=await _0x33960e[_0x50794d(0x18b)](got,_0x3af29b,_0x116eff);if(_0x33960e['NJdqN'](_0x42bf43,null)&&_0x33960e['NJdqN'](_0x42bf43,undefined)&&_0x33960e[_0x50794d(0x18e)](_0x42bf43['statusCode'],0xc8)){const _0xaff0aa=JSON['parse'](_0x42bf43[_0x50794d(0x195)]);console[_0x50794d(0x183)](_0x33960e[_0x50794d(0x1a0)]);const _0x4370e9=[];_0x4370e9[_0x50794d(0x190)]([_0x33960e[_0x50794d(0x177)],_0x33960e[_0x50794d(0x176)],_0x33960e[_0x50794d(0x1a3)],_0x33960e[_0x50794d(0x19d)],_0x33960e[_0x50794d(0x1c8)],_0x33960e[_0x50794d(0x192)]]),_0xaff0aa[_0x50794d(0x1ae)](_0xdb7433=>{const _0x314425=_0x50794d;_0x4370e9[_0x314425(0x190)]([_0xdb7433['id'],_0xdb7433['name'],_0xdb7433['status'],_0xdb7433[_0x314425(0x1c4)],_0xdb7433['queued'],_0xdb7433[_0x314425(0x1b0)]]);}),console[_0x50794d(0x183)](_0x33960e['uxdzW'](table,_0x4370e9)),process['exit'](0x0);}_0x33960e['kGXXZ'](_0x42bf43['statusCode'],0x191)&&(console[_0x50794d(0x1b4)](_0x33960e[_0x50794d(0x1bc)]),await _0x33960e['KXMAk'](sendInstrumentationEvent,_0x7786b1,_0x33960e['vERzV'],messageTypes['ERROR'],_0x33960e[_0x50794d(0x1c0)],null,_0x7786b1),process['exit'](0x1)),console[_0x50794d(0x1b4)](_0x50794d(0x1a7)+JSON[_0x50794d(0x1b8)](_0x42bf43)),await _0x33960e[_0x50794d(0x1b3)](sendInstrumentationEvent,_0x7786b1,_0x33960e[_0x50794d(0x1a9)],messageTypes[_0x50794d(0x1ad)],_0x33960e[_0x50794d(0x1c7)],_0x42bf43,_0x7786b1),process[_0x50794d(0x197)](0x1);}catch(_0x482cc4){console[_0x50794d(0x1b4)](_0x50794d(0x1a5)+_0x482cc4[_0x50794d(0x182)]),await _0x33960e[_0x50794d(0x1b3)](sendInstrumentationEvent,_0x7786b1,_0x33960e['vERzV'],messageTypes[_0x50794d(0x1ad)],_0x33960e['VyZnV'],_0x482cc4,_0x7786b1),process[_0x50794d(0x197)](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_0x283606=a16_0x5424;(function(_0x2a1068,_0x54040a){const _0x46ac90=a16_0x5424,_0x4ee16a=_0x2a1068();while(!![]){try{const _0x59a51e=-parseInt(_0x46ac90(0x9d))/0x1+parseInt(_0x46ac90(0xac))/0x2*(parseInt(_0x46ac90(0xa3))/0x3)+parseInt(_0x46ac90(0xa0))/0x4+-parseInt(_0x46ac90(0x9b))/0x5+parseInt(_0x46ac90(0xa5))/0x6*(parseInt(_0x46ac90(0xad))/0x7)+-parseInt(_0x46ac90(0xab))/0x8*(-parseInt(_0x46ac90(0x9e))/0x9)+-parseInt(_0x46ac90(0xaf))/0xa;if(_0x59a51e===_0x54040a)break;else _0x4ee16a['push'](_0x4ee16a['shift']());}catch(_0x21b805){_0x4ee16a['push'](_0x4ee16a['shift']());}}}(a16_0x2310,0x998ad));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x283606(0x9a));exports[a16_0x283606(0xae)]=a16_0x283606(0xa2),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x283606(0xaa)]=function(_0x378ed6){const _0x18886a=a16_0x283606,_0x27eb3c={};_0x27eb3c['qnsZN']=_0x18886a(0xa8),_0x27eb3c[_0x18886a(0xa1)]=_0x18886a(0xa7);const _0x19c549=_0x27eb3c;return _0x378ed6[_0x18886a(0x9f)](HELP_HEADER_MESSAGE[_0x18886a(0xb0)])[_0x18886a(0xa4)](HELP_FOOTER_MESSAGE)[_0x18886a(0x9c)](_0x19c549[_0x18886a(0xa9)])['demandCommand']()['recommendCommands']()[_0x18886a(0xa6)]()[_0x18886a(0xa7)](_0x19c549[_0x18886a(0xa1)]);},exports['handler']=function(_0x173814){};function a16_0x5424(_0x276b34,_0x33459f){const _0x231013=a16_0x2310();return a16_0x5424=function(_0x54242e,_0x50a1f6){_0x54242e=_0x54242e-0x9a;let _0x2876ec=_0x231013[_0x54242e];return _0x2876ec;},a16_0x5424(_0x276b34,_0x33459f);}function a16_0x2310(){const _0x4e8ca9=['command','14036960gVVyZD','pre_check','../config/constants','2394685dvTZqA','commandDir','1097745FPuhLi','9yuxeHY','usage','3206904WeJwdl','hCSrR','pre-check','3cKLPxP','epilogue','12qoMshQ','strict','help','precheck_commands','qnsZN','builder','2825896qFRZCP','2402552mnxIwz','4385668ZWxyCi'];a16_0x2310=function(){return _0x4e8ca9;};return a16_0x2310();}
@@ -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_0x357d9e=a17_0x3d22;(function(_0x5e1597,_0x587e99){const _0x21a98a=a17_0x3d22,_0x18fbd2=_0x5e1597();while(!![]){try{const _0x417ba6=parseInt(_0x21a98a(0x2b5))/0x1+-parseInt(_0x21a98a(0x2ce))/0x2*(-parseInt(_0x21a98a(0x1e5))/0x3)+-parseInt(_0x21a98a(0x2c5))/0x4*(-parseInt(_0x21a98a(0x270))/0x5)+-parseInt(_0x21a98a(0x2a4))/0x6+parseInt(_0x21a98a(0x22f))/0x7*(-parseInt(_0x21a98a(0x206))/0x8)+parseInt(_0x21a98a(0x26a))/0x9+-parseInt(_0x21a98a(0x1f9))/0xa;if(_0x417ba6===_0x587e99)break;else _0x18fbd2['push'](_0x18fbd2['shift']());}catch(_0x3c4688){_0x18fbd2['push'](_0x18fbd2['shift']());}}}(a17_0x1736,0x6d14b));const fs=require('fs'),ws=require('ws'),got=require(a17_0x357d9e(0x2cc)),{v4:uuidv4}=require(a17_0x357d9e(0x21c)),ReconnectingWebSocket=require(a17_0x357d9e(0x246)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x357d9e(0x268)),{logger}=require(a17_0x357d9e(0x21e)),{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_0x357d9e(0x28d)),{getCloudProviderObjectWithOutInit}=require(a17_0x357d9e(0x208)),webSocketUtils=require(a17_0x357d9e(0x293)),{sendInstrumentationEvent}=require(a17_0x357d9e(0x2a3));exports[a17_0x357d9e(0x27a)]=a17_0x357d9e(0x26b),exports['desc']=a17_0x357d9e(0x201),exports[a17_0x357d9e(0x2b0)]=function(_0x2354d4){const _0x3f7317=a17_0x357d9e,_0x1452ba={};_0x1452ba[_0x3f7317(0x224)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x1452ba[_0x3f7317(0x228)]=_0x3f7317(0x23b),_0x1452ba[_0x3f7317(0x21f)]=_0x3f7317(0x20d),_0x1452ba[_0x3f7317(0x2be)]=_0x3f7317(0x20e),_0x1452ba[_0x3f7317(0x25d)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x1452ba['NQSwJ']=_0x3f7317(0x2d4);const _0x1de7b1=_0x1452ba,_0x119cea={};_0x119cea[_0x3f7317(0x29d)]=_0x1de7b1[_0x3f7317(0x224)],_0x119cea['type']=_0x1de7b1['Tsuxx'];const _0x4bcdb8={};_0x4bcdb8[_0x3f7317(0x29d)]=_0x1de7b1[_0x3f7317(0x21f)],_0x4bcdb8[_0x3f7317(0x265)]=_0x1de7b1[_0x3f7317(0x228)];const _0x5535a6={};_0x5535a6['description']=_0x1de7b1[_0x3f7317(0x2be)],_0x5535a6['type']=_0x1de7b1['Tsuxx'];const _0x425fb4={};_0x425fb4[_0x3f7317(0x29d)]=_0x1de7b1[_0x3f7317(0x25d)],_0x425fb4[_0x3f7317(0x265)]=_0x1de7b1[_0x3f7317(0x228)];const _0x135b2e={};return _0x135b2e[_0x3f7317(0x1e9)]=_0x119cea,_0x135b2e[_0x3f7317(0x2d0)]=_0x4bcdb8,_0x135b2e[_0x3f7317(0x28e)]=_0x5535a6,_0x135b2e[_0x3f7317(0x211)]=_0x425fb4,_0x2354d4[_0x3f7317(0x234)](HELP_HEADER_MESSAGE[_0x3f7317(0x254)])[_0x3f7317(0x269)](HELP_FOOTER_MESSAGE)['options'](_0x135b2e)[_0x3f7317(0x2d4)](_0x1de7b1[_0x3f7317(0x24f)])[_0x3f7317(0x2d1)];};function a17_0x3d22(_0x35a52f,_0x2c6a62){const _0x173681=a17_0x1736();return a17_0x3d22=function(_0x3d2236,_0x2e8395){_0x3d2236=_0x3d2236-0x1d9;let _0x32b863=_0x173681[_0x3d2236];return _0x32b863;},a17_0x3d22(_0x35a52f,_0x2c6a62);}async function inputValidation(_0x54a367,_0x2e032a){const _0x3a5e71=a17_0x357d9e,_0x427aff={'BDecB':_0x3a5e71(0x1dd),'qUtXI':_0x3a5e71(0x1d9),'PqwKJ':_0x3a5e71(0x284),'EGalS':_0x3a5e71(0x216),'dPMlX':_0x3a5e71(0x2d0),'UBcuH':_0x3a5e71(0x1e9),'KmLRq':_0x3a5e71(0x229),'sJUPP':_0x3a5e71(0x1f0),'PDavB':'region','VVxtz':_0x3a5e71(0x226),'XZEhE':_0x3a5e71(0x23b),'ybPzg':_0x3a5e71(0x20d),'SdOGc':_0x3a5e71(0x20e),'ixNgW':_0x3a5e71(0x214),'PURCP':_0x3a5e71(0x2d4),'dSgEv':function(_0x9d1999,_0x2b5b16){return _0x9d1999+_0x2b5b16;},'GcomJ':_0x3a5e71(0x2b4),'PXpCY':_0x3a5e71(0x29b),'KBdPu':function(_0x4e4588,_0x4421dd){return _0x4e4588||_0x4421dd;},'ffkfW':function(_0x2ffac7,_0x78fd9){return _0x2ffac7===_0x78fd9;},'yPnpa':'sBkZd','fecpZ':function(_0x19864f,_0x156ead){return _0x19864f!==_0x156ead;},'JVzMK':'WlCvn','xuBhu':function(_0x13177b,_0x22d7fb){return _0x13177b===_0x22d7fb;},'WCwFa':_0x3a5e71(0x288),'NFuiq':function(_0x4d7d63,_0x35dea0){return _0x4d7d63!==_0x35dea0;},'rhnVQ':_0x3a5e71(0x222),'tbtpQ':function(_0x37bf5f,_0x475225){return _0x37bf5f!==_0x475225;},'LdtXR':_0x3a5e71(0x207),'ZRFrV':_0x3a5e71(0x27c),'kbKvO':function(_0x232837,_0xe5aa85){return _0x232837>_0xe5aa85;},'ohdCj':function(_0x225248,_0x421b94){return _0x225248!==_0x421b94;},'YncaH':_0x3a5e71(0x257),'EyLuo':function(_0x1153fd,_0x133cca,_0x455690,_0x1bfd9e,_0x1a16a9,_0x5f27bd,_0x36d582,_0x3c7c92){return _0x1153fd(_0x133cca,_0x455690,_0x1bfd9e,_0x1a16a9,_0x5f27bd,_0x36d582,_0x3c7c92);},'AFlVb':'pre-check-grid-called','bOVMI':'pre-check-cluster-args-not-passed','MhonP':function(_0x4252bc,_0x15549a){return _0x4252bc===_0x15549a;},'brMgO':'AhuGR','YhzQo':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','oFGHo':_0x3a5e71(0x241),'qaAcc':'fLMdg','sTnZm':function(_0x40ac7c,_0x4903ce){return _0x40ac7c!==_0x4903ce;},'FCqrL':_0x3a5e71(0x23a),'XMANG':'GET','vZoYa':function(_0xb59cde,_0x10bcac,_0x20f28e){return _0xb59cde(_0x10bcac,_0x20f28e);},'kyBCM':function(_0x3c1448,_0x4dcace,_0x1a0f84,_0x13ad19,_0x3e966e,_0x1bef1d){return _0x3c1448(_0x4dcace,_0x1a0f84,_0x13ad19,_0x3e966e,_0x1bef1d);},'hcrhk':_0x3a5e71(0x2ca),'OLkvc':_0x3a5e71(0x211),'jDHFj':_0x3a5e71(0x1e7),'HYemY':_0x3a5e71(0x22c),'LyHnC':function(_0x292164,_0x387b3f){return _0x292164(_0x387b3f);},'roXXQ':function(_0x3df98d,_0x9b167){return _0x3df98d!==_0x9b167;},'wKwkn':_0x3a5e71(0x2a5),'tHFeZ':_0x3a5e71(0x2ab),'COiOP':function(_0x222d4a,_0x5ccad4,_0x2b394a,_0x426bc6,_0x2dfa45,_0x1ad42b,_0x57303d,_0x56eb3b){return _0x222d4a(_0x5ccad4,_0x2b394a,_0x426bc6,_0x2dfa45,_0x1ad42b,_0x57303d,_0x56eb3b);},'SqSAY':_0x3a5e71(0x1f4),'QYsci':function(_0x79ae48,_0x546c65){return _0x79ae48!==_0x546c65;},'cCpvR':_0x3a5e71(0x1ed),'sugTp':'GDfwK','nUPir':_0x3a5e71(0x21a),'ycnqY':'VaUOG','CWGEU':_0x3a5e71(0x2a9),'gnXFr':_0x3a5e71(0x2a8)};let _0x11973c;try{if(_0x427aff[_0x3a5e71(0x253)](_0x427aff['yPnpa'],_0x427aff[_0x3a5e71(0x2ac)])){if(_0x54a367[_0x3a5e71(0x218)]||_0x54a367[_0x3a5e71(0x28c)]||_0x54a367[_0x3a5e71(0x28e)]){if(_0x427aff[_0x3a5e71(0x250)](_0x427aff['JVzMK'],_0x427aff[_0x3a5e71(0x239)]))_0x49f957[_0x3a5e71(0x1d9)](_0x427aff[_0x3a5e71(0x21b)]),_0x86fb08[_0x3a5e71(0x2bc)](0x1);else{const _0x46a5fc=[];!_0x54a367[_0x3a5e71(0x218)]&&(_0x427aff[_0x3a5e71(0x205)](_0x427aff[_0x3a5e71(0x2c6)],_0x427aff[_0x3a5e71(0x2c6)])?_0x46a5fc[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x23e)]):_0x15f32f[_0x3a5e71(0x1d9)](_0x3a5e71(0x2d5)+_0x5b7d69[_0x3a5e71(0x1d9)][_0x3a5e71(0x23d)]));;!_0x54a367[_0x3a5e71(0x28c)]&&(_0x427aff[_0x3a5e71(0x200)](_0x427aff[_0x3a5e71(0x210)],_0x427aff['rhnVQ'])?(_0x5aa78a[_0x3a5e71(0x25e)]('['+_0x28ef50+_0x3a5e71(0x29e)+_0xbd3af5[_0x3a5e71(0x1e3)]+_0x3a5e71(0x1ee)+_0x1dcb1[_0x3a5e71(0x262)]+'\x20error\x20:\x20'+_0x502033[_0x3a5e71(0x1d9)]),_0x293efd[_0x3a5e71(0x1d9)]&&_0xa71f0e[_0x3a5e71(0x1d9)](_0x3a5e71(0x2d5)+_0x5902f1[_0x3a5e71(0x1d9)][_0x3a5e71(0x23d)])):_0x46a5fc[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x225)]));;if(!_0x54a367[_0x3a5e71(0x28e)]){if(_0x427aff[_0x3a5e71(0x233)](_0x427aff[_0x3a5e71(0x1e0)],_0x427aff[_0x3a5e71(0x28f)]))_0x46a5fc['push'](_0x427aff[_0x3a5e71(0x236)]);else{const _0x5b5a66={};_0x5b5a66[_0x3a5e71(0x265)]=_0x59a8d3[_0x3a5e71(0x27e)],_0x5b5a66[_0x3a5e71(0x223)]=_0xc3732d,_0x4ffcbc[_0x3a5e71(0x1ef)](_0x272d2d,_0x5b5a66,_0x427aff[_0x3a5e71(0x247)],!![]);}};_0x427aff[_0x3a5e71(0x291)](_0x46a5fc[_0x3a5e71(0x25b)],0x0)&&(_0x427aff[_0x3a5e71(0x2d3)](_0x427aff[_0x3a5e71(0x29f)],_0x427aff[_0x3a5e71(0x29f)])?(_0x5afe15['info'](_0x3a5e71(0x202)+_0x138dc7[_0x3a5e71(0x1db)]+'\x20'),_0xf9a881[_0x3a5e71(0x28c)]=_0x55ed58[_0x3a5e71(0x1db)]):(_0x11973c=_0x3a5e71(0x237)+_0x46a5fc[_0x3a5e71(0x2bd)](',\x20')+_0x3a5e71(0x2c9),await _0x427aff[_0x3a5e71(0x2af)](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes['ERROR'],_0x427aff[_0x3a5e71(0x2ba)],_0x427aff[_0x3a5e71(0x240)],_0x427aff['qUtXI']),logger[_0x3a5e71(0x1d9)](_0x11973c),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3a5e71(0x261)](_0x54a367[_0x3a5e71(0x28c)][_0x3a5e71(0x23c)]())&&(_0x427aff['MhonP'](_0x427aff['brMgO'],_0x427aff[_0x3a5e71(0x21d)])?(_0x11973c=_0x427aff[_0x3a5e71(0x20b)],await _0x427aff[_0x3a5e71(0x2af)](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes[_0x3a5e71(0x24c)],_0x427aff[_0x3a5e71(0x2ba)],_0x427aff['oFGHo'],_0x427aff[_0x3a5e71(0x247)]),logger[_0x3a5e71(0x1d9)](_0x11973c),!_0x54a367[_0x3a5e71(0x28c)]&&(_0x427aff['ffkfW'](_0x427aff[_0x3a5e71(0x1dc)],_0x427aff[_0x3a5e71(0x1dc)])?(logger[_0x3a5e71(0x25e)](_0x3a5e71(0x202)+DEFAULT_CLUSTER_DETAILS[_0x3a5e71(0x1db)]+'\x20'),_0x54a367[_0x3a5e71(0x28c)]=DEFAULT_CLUSTER_DETAILS[_0x3a5e71(0x1db)]):_0x3cde22[_0x3a5e71(0x2bc)](0x1))):_0xc49328+='Cluster\x20'+_0xe9c04[_0x3a5e71(0x218)]+'\x20'+(_0xa16ddf?_0x427aff['PqwKJ']:_0x427aff['EGalS'])+'\x0a\x0a'),global_registry['clusterName']=_0x54a367[_0x3a5e71(0x218)],global_registry[_0x3a5e71(0x28c)]=_0x54a367[_0x3a5e71(0x28c)],global_registry['clusterRegion']=_0x54a367['region'];}}else{if(_0x54a367[_0x3a5e71(0x203)]){if(_0x427aff['sTnZm'](_0x427aff['FCqrL'],_0x427aff[_0x3a5e71(0x1fa)]))_0x7114bf[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x225)]);else{global_registry[_0x3a5e71(0x203)]=_0x54a367[_0x3a5e71(0x203)],logger['debug'](_0x3a5e71(0x20a)+_0x54a367[_0x3a5e71(0x203)]);const _0x1853a2=_0x3a5e71(0x2c4)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x38904d={};_0x38904d[_0x3a5e71(0x26c)]=_0x427aff[_0x3a5e71(0x2a7)],_0x38904d[_0x3a5e71(0x1fe)]=global_registry['authHeader'],_0x38904d[_0x3a5e71(0x259)]=![];const _0x5e7d4f=_0x38904d,_0x47c866=await _0x427aff[_0x3a5e71(0x1fb)](got,_0x1853a2,_0x5e7d4f),_0x4d7506=await _0x427aff[_0x3a5e71(0x260)](responseValidation,_0x47c866,_0x427aff[_0x3a5e71(0x1e4)],_0x427aff[_0x3a5e71(0x297)],_0x54a367,_0x2e032a);let _0x49c5bb={};if(_0x427aff[_0x3a5e71(0x205)](_0x4d7506,0xc8)){if(_0x427aff['xuBhu'](_0x427aff[_0x3a5e71(0x1f5)],_0x427aff['HYemY']))_0x5ee2d4=_0x423d06;else{const _0x381097=JSON['parse'](_0x47c866['body']),_0x72ec24=_0x381097[_0x3a5e71(0x1f8)](_0x2158ed=>_0x2158ed['name']===_0x54a367['gridProfile'])||null;_0x427aff[_0x3a5e71(0x2b7)](isUndefined,_0x72ec24)?_0x427aff[_0x3a5e71(0x221)](_0x427aff[_0x3a5e71(0x1f6)],_0x427aff[_0x3a5e71(0x2c1)])?(_0x11973c=_0x3a5e71(0x295)+_0x54a367[_0x3a5e71(0x203)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x427aff['COiOP'](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes[_0x3a5e71(0x24c)],_0x427aff['AFlVb'],_0x427aff['SqSAY'],_0x427aff['qUtXI']),logger[_0x3a5e71(0x1d9)](_0x11973c),process['exit'](0x1)):_0x52a286['push'](_0x427aff[_0x3a5e71(0x23e)]):_0x427aff[_0x3a5e71(0x258)](_0x427aff[_0x3a5e71(0x23f)],_0x427aff[_0x3a5e71(0x23f)])?(_0x409d01+=_0x427aff[_0x3a5e71(0x26e)],_0x3d1514+=_0x3a5e71(0x2b6)+(_0x5c5464[_0x3a5e71(0x223)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0x2bfff2+=_0x3a5e71(0x209)+(_0x2e3b27['code']||_0x427aff['sJUPP'])+'\x0a',_0x59bca2+=_0x3a5e71(0x296)+(_0x5d73c1[_0x3a5e71(0x23d)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a'):_0x49c5bb=_0x72ec24;}}else _0x427aff['xuBhu'](_0x427aff['sugTp'],_0x427aff[_0x3a5e71(0x285)])?process[_0x3a5e71(0x2bc)](0x1):_0x1f20d8[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x236)]);const _0x1d6186={};_0x1d6186[_0x3a5e71(0x265)]=WS_EVENTS[_0x3a5e71(0x27e)],_0x1d6186['message']=_0x427aff[_0x3a5e71(0x2cd)],webSocketUtils[_0x3a5e71(0x1ef)](_0x2e032a,_0x1d6186),global_registry[_0x3a5e71(0x28c)]=_0x49c5bb[_0x3a5e71(0x28c)],global_registry[_0x3a5e71(0x2bb)]=_0x49c5bb[_0x3a5e71(0x28e)],global_registry[_0x3a5e71(0x218)]=_0x49c5bb['clusterName'];}}else _0x427aff[_0x3a5e71(0x205)](_0x427aff[_0x3a5e71(0x252)],_0x427aff[_0x3a5e71(0x25f)])?_0x5b4545+=_0x3a5e71(0x24b)+_0x4029b1['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(logger[_0x3a5e71(0x1d9)](_0x427aff['BDecB']),process[_0x3a5e71(0x2bc)](0x1));}}else{const _0x361627={};_0x361627[_0x3a5e71(0x29d)]=_0x427aff['VVxtz'],_0x361627[_0x3a5e71(0x265)]=_0x427aff[_0x3a5e71(0x231)];const _0x1edf6d={};_0x1edf6d[_0x3a5e71(0x29d)]=_0x427aff['ybPzg'],_0x1edf6d[_0x3a5e71(0x265)]=_0x427aff[_0x3a5e71(0x231)];const _0x42adf7={};_0x42adf7[_0x3a5e71(0x29d)]=_0x427aff[_0x3a5e71(0x2cb)],_0x42adf7['type']=_0x427aff[_0x3a5e71(0x231)];const _0x423e12={};_0x423e12[_0x3a5e71(0x29d)]=_0x427aff[_0x3a5e71(0x1fc)],_0x423e12[_0x3a5e71(0x265)]=_0x427aff[_0x3a5e71(0x231)];const _0x34a312={};return _0x34a312[_0x3a5e71(0x1e9)]=_0x361627,_0x34a312['cloud-provider']=_0x1edf6d,_0x34a312[_0x3a5e71(0x28e)]=_0x42adf7,_0x34a312[_0x3a5e71(0x211)]=_0x423e12,_0x2d66e1[_0x3a5e71(0x234)](_0x443927[_0x3a5e71(0x254)])[_0x3a5e71(0x269)](_0x1542e1)[_0x3a5e71(0x1f3)](_0x34a312)[_0x3a5e71(0x2d4)](_0x427aff[_0x3a5e71(0x219)])['argv'];}}catch(_0x43e650){if(_0x427aff[_0x3a5e71(0x264)](_0x427aff[_0x3a5e71(0x2c8)],_0x427aff['gnXFr']))_0x11973c=_0x3a5e71(0x25c)+_0x43e650+':\x20'+_0x43e650[_0x3a5e71(0x23d)],logger[_0x3a5e71(0x1d9)](_0x11973c),await _0x427aff[_0x3a5e71(0x2af)](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes['ERROR'],_0x427aff[_0x3a5e71(0x2ba)],_0x427aff['oFGHo'],_0x427aff[_0x3a5e71(0x247)]),process[_0x3a5e71(0x2bc)](0x1);else{const {header:_0xb5b1de,response:_0x27c888}=_0x25b3a3,{status:_0x1b8c46,data:_0x5e8dd4,error:_0x163545}=_0x27c888;_0x2c7ada+=_0xb5b1de+'\x20#'+_0x427aff['dSgEv'](_0x250fcf,0x1)+'\x0a',_0x127801+=_0x3a5e71(0x255)+(_0x1b8c46?_0x427aff[_0x3a5e71(0x29c)]:_0x427aff[_0x3a5e71(0x1fd)])+'\x0a',_0x326968+=_0x3a5e71(0x248)+_0x427aff[_0x3a5e71(0x29a)](_0x5e8dd4,_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0x163545&&(_0x36f547+=_0x427aff['KmLRq'],_0x449132+=_0x3a5e71(0x2b6)+(_0x163545['message']||_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0xddc596+=_0x3a5e71(0x209)+(_0x163545[_0x3a5e71(0x251)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0x30ccab+=_0x3a5e71(0x296)+(_0x163545[_0x3a5e71(0x23d)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a'),_0x1e156f+='\x0a\x0a';}}}function printResponse(_0x4918b3,_0x581eb0){const _0x3ce247=a17_0x357d9e,_0x36475f={};_0x36475f[_0x3ce247(0x290)]=function(_0xc8f8b,_0x4d7c15){return _0xc8f8b===_0x4d7c15;},_0x36475f[_0x3ce247(0x2c2)]=_0x3ce247(0x278),_0x36475f[_0x3ce247(0x292)]=_0x3ce247(0x2b9);const _0x15dfc6=_0x36475f;logger[_0x3ce247(0x25e)]('['+_0x4918b3+_0x3ce247(0x29e)+_0x581eb0['status']+_0x3ce247(0x1ee)+_0x581eb0['data']+_0x3ce247(0x2a0)+_0x581eb0[_0x3ce247(0x1d9)]),_0x581eb0[_0x3ce247(0x1d9)]&&(_0x15dfc6['mpiBE'](_0x15dfc6['dUTco'],_0x15dfc6[_0x3ce247(0x292)])?_0xfc9153['info'](_0x3ce247(0x266)+_0xf2ae21[_0x3ce247(0x218)]+_0x3ce247(0x289)):logger[_0x3ce247(0x1d9)](_0x3ce247(0x2d5)+_0x581eb0[_0x3ce247(0x1d9)]['stack']));}async function generateReport(_0x5874e0,_0x3cd494){const _0x4bc054=a17_0x357d9e,_0x547486={'Pwqga':function(_0xe7645c,_0x47b365){return _0xe7645c+_0x47b365;},'twLtr':_0x4bc054(0x2b4),'jiYCJ':_0x4bc054(0x29b),'PcLCJ':function(_0x2adac4,_0x58266e){return _0x2adac4||_0x58266e;},'uxSCy':'N/A','VyZaQ':'Error\x20Details:\x0a','VmgAx':_0x4bc054(0x1f2),'hTUIZ':function(_0x4a061d,_0x641d17){return _0x4a061d!=_0x641d17;},'DvKij':'is\x20already\x20present','lBVWM':'will\x20be\x20created','rIopf':function(_0x5b58af){return _0x5b58af();}};let _0x4d4e90='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x4bc054(0x28c)]+_0x4bc054(0x1e6);return _0x5874e0[_0x4bc054(0x1e8)]((_0x37da4f,_0x3a0e68)=>{const _0x159185=_0x4bc054,{header:_0x39ce36,response:_0x394d91}=_0x37da4f,{status:_0x5cf4c6,data:_0x3a6423,error:_0x4d7876}=_0x394d91;_0x4d4e90+=_0x39ce36+'\x20#'+_0x547486['Pwqga'](_0x3a0e68,0x1)+'\x0a',_0x4d4e90+=_0x159185(0x255)+(_0x5cf4c6?_0x547486['twLtr']:_0x547486[_0x159185(0x272)])+'\x0a',_0x4d4e90+=_0x159185(0x248)+_0x547486[_0x159185(0x28a)](_0x3a6423,_0x547486[_0x159185(0x277)])+'\x0a',_0x4d7876&&(_0x4d4e90+=_0x547486[_0x159185(0x27b)],_0x4d4e90+='\x20\x20Message:\x20'+(_0x4d7876[_0x159185(0x223)]||_0x547486[_0x159185(0x277)])+'\x0a',_0x4d4e90+=_0x159185(0x209)+(_0x4d7876[_0x159185(0x251)]||_0x547486[_0x159185(0x277)])+'\x0a',_0x4d4e90+='\x20\x20Stack:\x20'+(_0x4d7876['stack']||_0x547486[_0x159185(0x277)])+'\x0a'),_0x4d4e90+='\x0a\x0a';}),_0x4d4e90+=_0x547486[_0x4bc054(0x282)],_0x547486['hTUIZ'](_0x3cd494,null)?_0x4d4e90+=_0x4bc054(0x24b)+global_registry['clusterName']+'\x20'+(_0x3cd494?_0x547486[_0x4bc054(0x2a2)]:_0x547486[_0x4bc054(0x232)])+'\x0a\x0a':_0x4d4e90+=_0x4bc054(0x24b)+global_registry[_0x4bc054(0x218)]+_0x4bc054(0x1df),_0x4d4e90+=_0x547486['rIopf'](getSystemMetaData),_0x4d4e90;};exports[a17_0x357d9e(0x2c7)]=async function(_0x1c59f8){const _0x47bb8d=a17_0x357d9e,_0x249ec8={'dENtq':function(_0x2716d4){return _0x2716d4();},'ffNVO':function(_0x5dc98e){return _0x5dc98e();},'JLBay':_0x47bb8d(0x1f7),'iVfLE':function(_0x5abc4c,_0x38721f,_0x1c6701,_0x12a8a6,_0x4e35a2,_0x1cfb02,_0x180d71,_0x3aa19e){return _0x5abc4c(_0x38721f,_0x1c6701,_0x12a8a6,_0x4e35a2,_0x1cfb02,_0x180d71,_0x3aa19e);},'kMJyr':_0x47bb8d(0x263),'ccKXr':_0x47bb8d(0x249),'VxMld':_0x47bb8d(0x1d9),'sDAdh':function(_0x126fb1,_0x4d2c2c,_0x1f9545,_0x5930a4,_0x4c2b1e,_0xa45b05,_0x32c446){return _0x126fb1(_0x4d2c2c,_0x1f9545,_0x5930a4,_0x4c2b1e,_0xa45b05,_0x32c446);},'wJfUe':function(_0x4b5fe6){return _0x4b5fe6();},'paxiK':_0x47bb8d(0x27f),'NbbJz':_0x47bb8d(0x2a6),'DcykP':function(_0x511261,_0x5bd5b6,_0x51dddc){return _0x511261(_0x5bd5b6,_0x51dddc);},'yQMGz':function(_0x350bec,_0x3b8529,_0x283d7d){return _0x350bec(_0x3b8529,_0x283d7d);},'NOvxw':_0x47bb8d(0x256),'QfRhm':_0x47bb8d(0x2ae),'VVToG':_0x47bb8d(0x275),'PNomD':function(_0x4e5db7,_0x5f09da,_0x5dbd9f){return _0x4e5db7(_0x5f09da,_0x5dbd9f);},'OfZwV':_0x47bb8d(0x1e2),'hQIIc':function(_0x3827f8,_0x2b0408,_0x1afd17){return _0x3827f8(_0x2b0408,_0x1afd17);},'ChWtm':'isTrialGridAccessible','AOtuf':function(_0x2e19f1,_0x1c1435){return _0x2e19f1(_0x1c1435);},'WGQRP':_0x47bb8d(0x24d),'JJznc':'isTls1_2_SUPPORTED','MlXKF':_0x47bb8d(0x281),'CmoIk':_0x47bb8d(0x2aa),'vKxcQ':_0x47bb8d(0x227),'FzfUg':_0x47bb8d(0x2d2),'COZmo':function(_0x26ecf1,_0x17150c){return _0x26ecf1+_0x17150c;},'GunTR':'utf-8','Apkky':function(_0x5adea9,_0x4a2f93,_0x3fe259,_0x4831d5,_0x1f1249,_0xc41cfd,_0x52fd8c){return _0x5adea9(_0x4a2f93,_0x3fe259,_0x4831d5,_0x1f1249,_0xc41cfd,_0x52fd8c);},'HqTzj':'pre-check-failed'};let _0x335ac7,_0x36e987;try{global_registry[_0x47bb8d(0x274)]=_0x249ec8[_0x47bb8d(0x1de)](uuidv4);!fs[_0x47bb8d(0x235)](_0x249ec8[_0x47bb8d(0x28b)](getCredentialsPath))&&(_0x36e987=_0x249ec8['JLBay'],logger[_0x47bb8d(0x1d9)](_0x36e987),await _0x249ec8['iVfLE'](reportToGalactusAndSendToEDS,_0x1c59f8,_0x335ac7,_0x36e987,messageTypes[_0x47bb8d(0x24c)],_0x249ec8['kMJyr'],_0x249ec8['ccKXr'],_0x249ec8[_0x47bb8d(0x2b8)]),process[_0x47bb8d(0x2bc)](0x1));_0x249ec8[_0x47bb8d(0x299)](sendInstrumentationEvent,_0x1c59f8,_0x249ec8[_0x47bb8d(0x26f)],messageTypes[_0x47bb8d(0x220)],null,null,_0x1c59f8);const _0x12eed1=JSON[_0x47bb8d(0x1e1)](fs[_0x47bb8d(0x230)](_0x249ec8['wJfUe'](getCredentialsPath)));global_registry[_0x47bb8d(0x20f)]=_0x12eed1[_0x47bb8d(0x217)][_0x47bb8d(0x2c0)],global_registry[_0x47bb8d(0x279)]=_0x12eed1['Browserstack']['password'];const _0x55d967=WS_ENDPOINT[_0x47bb8d(0x1ea)](_0x249ec8['paxiK'],_0x12eed1[_0x47bb8d(0x217)][_0x47bb8d(0x2c0)])['replace'](_0x249ec8[_0x47bb8d(0x286)],_0x12eed1[_0x47bb8d(0x217)]['password']),_0x4057fa={};_0x4057fa[_0x47bb8d(0x1ec)]=ws,_0x4057fa[_0x47bb8d(0x298)]=0x36ee80,_0x335ac7=new ReconnectingWebSocket(_0x55d967,[],_0x4057fa),global_registry[_0x47bb8d(0x1eb)]=_0x249ec8['DcykP'](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x249ec8['yQMGz'](inputValidation,_0x1c59f8,_0x335ac7),logger[_0x47bb8d(0x25e)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x47bb8d(0x28c)]+_0x47bb8d(0x212)+global_registry[_0x47bb8d(0x2bb)]);let _0x399279=await _0x249ec8[_0x47bb8d(0x299)](getCloudProviderObjectWithOutInit,global_registry[_0x47bb8d(0x28c)],global_registry[_0x47bb8d(0x218)],_0x249ec8[_0x47bb8d(0x26d)],_0x335ac7,webSocketUtils,_0x1c59f8);const _0x3ebfab=await _0x399279[_0x47bb8d(0x243)]();_0x249ec8[_0x47bb8d(0x22a)](printResponse,_0x249ec8[_0x47bb8d(0x215)],_0x3ebfab),_0x399279=await _0x399279['init']();let _0x4d172f=![];try{_0x4d172f=await _0x399279[_0x47bb8d(0x20c)]();}catch(_0x1c6d01){const _0x4321d0=_0x249ec8[_0x47bb8d(0x22b)][_0x47bb8d(0x24e)]('|');let _0x3a818a=0x0;while(!![]){switch(_0x4321d0[_0x3a818a++]){case'0':_0x36e987=_0x47bb8d(0x276)+global_registry[_0x47bb8d(0x218)]+_0x47bb8d(0x238)+global_registry[_0x47bb8d(0x2bb)]+'`\x20,error\x20:\x20'+_0x1c6d01;continue;case'1':_0x4d172f=null;continue;case'2':logger['error'](_0x36e987);continue;case'3':_0x36e987+='\x0a'+JSON[_0x47bb8d(0x25a)](_0x1c6d01[_0x47bb8d(0x23d)]);continue;case'4':await _0x249ec8[_0x47bb8d(0x1ff)](reportToGalactusAndSendToEDS,_0x1c59f8,_0x335ac7,_0x36e987,messageTypes[_0x47bb8d(0x24c)],_0x249ec8[_0x47bb8d(0x26f)],_0x47bb8d(0x267)+global_registry[_0x47bb8d(0x28c)],_0x249ec8[_0x47bb8d(0x2b8)]);continue;}break;}}_0x4d172f&&logger[_0x47bb8d(0x25e)]('Cluster\x20`'+global_registry[_0x47bb8d(0x218)]+_0x47bb8d(0x289));const _0x2792f1=await _0x399279[_0x47bb8d(0x2b3)]();_0x249ec8[_0x47bb8d(0x273)](printResponse,_0x249ec8[_0x47bb8d(0x283)],_0x2792f1);const _0x471060=await _0x249ec8[_0x47bb8d(0x244)](curlRequest);_0x249ec8['hQIIc'](printResponse,_0x249ec8['ChWtm'],_0x471060);const _0x4c4766=await _0x249ec8['AOtuf'](isTlsSupported,_0x249ec8[_0x47bb8d(0x280)]);_0x249ec8[_0x47bb8d(0x2a1)](printResponse,_0x249ec8[_0x47bb8d(0x213)],_0x4c4766);const _0x1cc43f={};_0x1cc43f[_0x47bb8d(0x2bf)]=_0x249ec8[_0x47bb8d(0x22e)],_0x1cc43f['response']=_0x3ebfab;const _0x19657f={};_0x19657f[_0x47bb8d(0x2bf)]=_0x249ec8['CmoIk'],_0x19657f['response']=_0x2792f1;const _0x2ef143={};_0x2ef143['header']=_0x249ec8[_0x47bb8d(0x2cf)],_0x2ef143[_0x47bb8d(0x2b2)]=_0x471060;const _0x210782={};_0x210782[_0x47bb8d(0x2bf)]=_0x249ec8[_0x47bb8d(0x1f1)],_0x210782['response']=_0x4c4766;const _0x1e9cbb=[_0x1cc43f,_0x19657f,_0x2ef143,_0x210782],_0x3b0f18=await _0x249ec8[_0x47bb8d(0x2a1)](generateReport,_0x1e9cbb,_0x4d172f),_0x476c2a=new Date(),_0x5a1008=_0x476c2a[_0x47bb8d(0x24a)]()+'_'+_0x249ec8['COZmo'](_0x476c2a[_0x47bb8d(0x242)](),0x1)+'_'+_0x476c2a[_0x47bb8d(0x27d)]()+'_'+_0x476c2a['getUTCHours']()+'_'+_0x476c2a['getUTCMinutes'](),_0x2b56e9=_0x47bb8d(0x204)+_0x5a1008+'.txt';fs[_0x47bb8d(0x1da)](_0x2b56e9,_0x3b0f18,_0x249ec8[_0x47bb8d(0x22d)]),logger[_0x47bb8d(0x25e)](_0x47bb8d(0x2c3)+_0x2b56e9),process[_0x47bb8d(0x2bc)](0x0);}catch(_0x1ff381){let _0xc6bd1f=_0x47bb8d(0x287)+_0x1ff381+'\x20';logger[_0x47bb8d(0x1d9)](_0xc6bd1f),_0xc6bd1f+='\x0a'+JSON[_0x47bb8d(0x25a)](_0x1ff381[_0x47bb8d(0x23d)]),logger['debug'](_0x47bb8d(0x294)+_0x1ff381[_0x47bb8d(0x23d)]);if(_0x335ac7){const _0x25a1ab={};_0x25a1ab[_0x47bb8d(0x265)]=WS_EVENTS[_0x47bb8d(0x27e)],_0x25a1ab[_0x47bb8d(0x223)]=_0xc6bd1f,webSocketUtils['sendEventToBackend'](_0x335ac7,_0x25a1ab,_0x249ec8[_0x47bb8d(0x2b8)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x1f41a3={};_0x1f41a3['error']=_0xc6bd1f,await _0x249ec8[_0x47bb8d(0x2b1)](sendInstrumentationEvent,_0x1c59f8,_0x249ec8[_0x47bb8d(0x26f)],messageTypes[_0x47bb8d(0x24c)],_0x249ec8[_0x47bb8d(0x271)],_0x1f41a3,_0x1c59f8),process['exit'](0x1);}};function a17_0x1736(){const _0x156d34=['PDavB','Missing\x20required\x20arguments:\x20','`\x20is\x20present\x20in\x20region\x20`','JVzMK','EuhWO','string','toLowerCase','stack','UBcuH','cCpvR','bOVMI','cloud-provider-not-supported','getUTCMonth','isCliToolInstalled','wJfUe','sJUPP','reconnecting-websocket','qUtXI','Message:\x20','credential-not-found','getUTCFullYear','Cluster\x20','ERROR','TLSv1_2_client_method','split','NQSwJ','fecpZ','code','ycnqY','ffkfW','pre_check','Status:\x20','dummy-grid','XHuUX','QYsci','throwHttpErrors','stringify','length','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','NmvXi','info','CWGEU','kyBCM','includes','data','pre-check-grid-called','MhonP','type','Cluster\x20`','cluster-check-failed-','../../utils/utilityMethods','epilogue','877392shGyle','grid','method','NOvxw','KmLRq','kMJyr','15140CZbyyr','HqTzj','jiYCJ','PNomD','requestId','0|1|2|3|4','unable\x20to\x20verify\x20if\x20cluster\x20`','uxSCy','ueUnz','bstackAccesskey','command','VyZaQ','Cnsnb','getUTCDate','LOG','<UsernamePlaceholder>','WGQRP','Tool\x20Installed','VmgAx','OfZwV','is\x20already\x20present','sugTp','NbbJz','Failed\x20in\x20pre-check!\x20Error:\x20','JqTBo','`\x20already\x20exists','PcLCJ','ffNVO','cloudProvider','../../config/constants','region','ZRFrV','mpiBE','kbKvO','toVvV','../../utils/webSocketUtils','stack\x20trace\x20','Invalid\x20input.\x20grid\x20profiles:\x20','\x20\x20Stack:\x20','OLkvc','connectionTimeout','sDAdh','KBdPu','Failure','GcomJ','description',']\x20status\x20:\x20','YncaH','\x20error\x20:\x20','DcykP','DvKij','../../utils/instrumentationUtils','935478LpoaVG','qvaTr','<PasswordPlaceholder>','XMANG','NkCCO','oCekW','User\x20Access','LkbjT','yPnpa','push','toolInstalledResp','EyLuo','builder','Apkky','response','checkAccess','Success','255164cHZyDq','\x20\x20Message:\x20','LyHnC','VxMld','aPRKN','AFlVb','clusterRegion','exit','join','AqiYg','header','username','tHFeZ','dUTco','Report\x20saved\x20in\x20','https://','1112eaYSHD','WCwFa','handler','gnXFr','.\x20Please\x20provide\x20all\x20required\x20arguments.','pre-check','SdOGc','got','nUPir','11366tjzRhV','vKxcQ','cloud-provider','argv','SSL\x20Configured','ohdCj','help','error\x20stack\x20:\x20','error','writeFileSync','CLOUD_PROVIDER','qaAcc','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','dENtq','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','LdtXR','parse','accessResp','status','hcrhk','225rZWhno','\x20===\x0a\x0a','WXPqs','forEach','cluster-name','replace','authHeader','WebSocket','lZXnE','\x20data\x20:\x20','sendEventToBackend','N/A','FzfUg','Cluster\x20details\x0a-----------------------\x0a','options','pre-check-grid-profile-empty','jDHFj','wKwkn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','find','8904730qtyjgJ','FCqrL','vZoYa','ixNgW','PXpCY','headers','iVfLE','NFuiq','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Setting\x20cloud\x20provider\x20as\x20','gridProfile','log/report_','xuBhu','80oDMVQy','EYICw','../../cloudproviders/utils','\x20\x20Code:\x20','grid\x20profile\x20flow\x20','YhzQo','isClusterPresent','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','bstackUsername','rhnVQ','grid-profile','\x20region\x20-\x20','JJznc','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','QfRhm','will\x20be\x20created','Browserstack','clusterName','PURCP','Grid\x20profile\x20fetched\x20for\x20pre-check','BDecB','uuid','brMgO','../../config/logger','sHUpR','INFO','roXXQ','fmcWQ','message','yFVwl','dPMlX','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Whitelisted\x20browserstack','Tsuxx','Error\x20Details:\x0a','yQMGz','VVToG','aznSY','GunTR','MlXKF','89236QlXEaZ','readFileSync','XZEhE','lBVWM','tbtpQ','usage','existsSync'];a17_0x1736=function(){return _0x156d34;};return a17_0x1736();}
@@ -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_0x4eb497=a18_0x3979;(function(_0x567318,_0x2dfbd5){const _0x4d131e=a18_0x3979,_0x3072c4=_0x567318();while(!![]){try{const _0x149c06=parseInt(_0x4d131e(0x109))/0x1*(-parseInt(_0x4d131e(0xf9))/0x2)+-parseInt(_0x4d131e(0x102))/0x3+-parseInt(_0x4d131e(0x105))/0x4+-parseInt(_0x4d131e(0x101))/0x5+-parseInt(_0x4d131e(0xfd))/0x6*(parseInt(_0x4d131e(0xf5))/0x7)+parseInt(_0x4d131e(0x104))/0x8*(parseInt(_0x4d131e(0xf6))/0x9)+parseInt(_0x4d131e(0x106))/0xa;if(_0x149c06===_0x2dfbd5)break;else _0x3072c4['push'](_0x3072c4['shift']());}catch(_0x536712){_0x3072c4['push'](_0x3072c4['shift']());}}}(a18_0x2aff,0x8df28));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x4eb497(0x100));exports[a18_0x4eb497(0xfc)]='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x4104df){const _0x507510=a18_0x4eb497,_0x1db032={};_0x1db032[_0x507510(0x107)]=_0x507510(0xf8),_0x1db032[_0x507510(0xfe)]=_0x507510(0x10a);const _0x5903ba=_0x1db032;return _0x4104df['usage'](HELP_HEADER_MESSAGE[_0x507510(0xfb)])[_0x507510(0xfa)](HELP_FOOTER_MESSAGE)[_0x507510(0xf7)](_0x5903ba[_0x507510(0x107)])[_0x507510(0x108)]()[_0x507510(0xff)]()['strict']()[_0x507510(0x10a)](_0x5903ba[_0x507510(0xfe)]);},exports[a18_0x4eb497(0x103)]=function(_0x1fbf32){};function a18_0x3979(_0x1d4796,_0x4e99af){const _0x2affe7=a18_0x2aff();return a18_0x3979=function(_0x3979f0,_0x28a691){_0x3979f0=_0x3979f0-0xf5;let _0x5c2864=_0x2affe7[_0x3979f0];return _0x5c2864;},a18_0x3979(_0x1d4796,_0x4e99af);}function a18_0x2aff(){const _0x5e367a=['26266230gNjvyu','WCcxM','demandCommand','435558zgTKgh','help','27090jFNoBL','28035yOHIsq','commandDir','start_commands','4CUzsYP','epilogue','start','command','654vxqUmr','OsJhN','recommendCommands','../config/constants','1371215THGdpu','770190lUjNIZ','handler','1912DHWIfN','3863092drWjni'];a18_0x2aff=function(){return _0x5e367a;};return a18_0x2aff();}
@@ -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_0x20c2f2=a19_0x16d5;function a19_0x16d5(_0x3aaa5e,_0x30c04f){const _0x23128e=a19_0x2312();return a19_0x16d5=function(_0x16d559,_0xa38d11){_0x16d559=_0x16d559-0xd5;let _0x9696fa=_0x23128e[_0x16d559];return _0x9696fa;},a19_0x16d5(_0x3aaa5e,_0x30c04f);}function a19_0x2312(){const _0x3a05ed=['start-grid-called','wCnJr','replace','error','1255135dkLtsT','Browserstack','AMiZe','brZeV','cloudProvider','../../utils/gridComponents','NAERk','../../utils/utilityMethods','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','handler','NEHPz','skip-tls-cert-verify','nEjuN','794352lCPEZp','name','parse','clusterName','<UsernamePlaceholder>','default','../../config/logger','desc','usage','cyovw','bstackUsername','stringify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','clusterRegion','5uFKtDd','statusCode','159gziGgd','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','ERROR','TnPtd','wTdbJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','11UKMmRM','6164076AkcAxO','eorTf','VJNLK','hVYmi','password','addListeners','1356664QGmOKL','existsSync','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','639970AcaLVW','../../utils/instrumentationUtils','../../utils/webSocketUtils','tkLVx','info','start','unauthorised','qxjYs','bQNXg','1031oseAyF','invalid-grid-id','username','help','190wAXtEh','reconnecting-websocket','Start\x20an\x20existing\x20Automation\x20grid.','SQawo','server-error','gridId','aebTT','bstackAccesskey','readFileSync','grid','epilogue','string','skipTlsCertVerify','INFO','command','message','JSguy','grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HwEZY','connectionTimeout','init-not-called','KVGMt','region','boolean','type','27qJzeux','2996xcEDJD','description','<PasswordPlaceholder>','Grid\x20started','rHpnC'];a19_0x2312=function(){return _0x3a05ed;};return a19_0x2312();}(function(_0x1bbf69,_0x8724f9){const _0x467c6a=a19_0x16d5,_0x20edf5=_0x1bbf69();while(!![]){try{const _0x3380cd=-parseInt(_0x467c6a(0xef))/0x1*(parseInt(_0x467c6a(0xf3))/0x2)+parseInt(_0x467c6a(0xd5))/0x3*(parseInt(_0x467c6a(0x10e))/0x4)+-parseInt(_0x467c6a(0x132))/0x5*(parseInt(_0x467c6a(0x124))/0x6)+-parseInt(_0x467c6a(0x117))/0x7+parseInt(_0x467c6a(0xe2))/0x8+-parseInt(_0x467c6a(0x10d))/0x9*(parseInt(_0x467c6a(0xe6))/0xa)+parseInt(_0x467c6a(0xdb))/0xb*(parseInt(_0x467c6a(0xdc))/0xc);if(_0x3380cd===_0x8724f9)break;else _0x20edf5['push'](_0x20edf5['shift']());}catch(_0x5504f2){_0x20edf5['push'](_0x20edf5['shift']());}}}(a19_0x2312,0x1d9e8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x20c2f2(0xf4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x20c2f2(0x12a)),{getCredentialsPath,getGridDetails}=require(a19_0x20c2f2(0x11e)),{scaleUpHubDeployment}=require(a19_0x20c2f2(0x11c)),{sendInstrumentationEvent}=require(a19_0x20c2f2(0xe7)),webSocketUtils=require(a19_0x20c2f2(0xe8)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x20c2f2(0x101)]=a19_0x20c2f2(0xfc),exports[a19_0x20c2f2(0x12b)]=a19_0x20c2f2(0xf5),exports['builder']=function(_0x18017a){const _0x3b3266=a19_0x20c2f2,_0x16a48e={};_0x16a48e[_0x3b3266(0x12d)]=_0x3b3266(0x130),_0x16a48e['aebTT']=_0x3b3266(0xfe),_0x16a48e[_0x3b3266(0x103)]='Skip\x20insecure\x20cert\x20verification.',_0x16a48e[_0x3b3266(0x112)]=_0x3b3266(0x10b),_0x16a48e[_0x3b3266(0xdd)]=_0x3b3266(0xf2);const _0x27a1cb=_0x16a48e,_0x4dd921={};_0x4dd921['description']=_0x27a1cb[_0x3b3266(0x12d)],_0x4dd921['type']=_0x27a1cb[_0x3b3266(0xf9)];const _0x3af6b7={};_0x3af6b7[_0x3b3266(0x10f)]=_0x27a1cb[_0x3b3266(0x103)],_0x3af6b7[_0x3b3266(0x10c)]=_0x27a1cb[_0x3b3266(0x112)],_0x3af6b7[_0x3b3266(0x129)]=![];const _0x3a231e={};return _0x3a231e[_0x3b3266(0x104)]=_0x4dd921,_0x3a231e[_0x3b3266(0x122)]=_0x3af6b7,_0x18017a[_0x3b3266(0x12c)](HELP_HEADER_MESSAGE[_0x3b3266(0xeb)])[_0x3b3266(0xfd)](HELP_FOOTER_MESSAGE)['options'](_0x3a231e)[_0x3b3266(0xf2)](_0x27a1cb[_0x3b3266(0xdd)])['argv'];},exports[a19_0x20c2f2(0x120)]=async function(_0x6222b2){const _0x79f173=a19_0x20c2f2,_0x1348bc={'GHtAC':_0x79f173(0x11f),'nEjuN':function(_0x4a3526){return _0x4a3526();},'VJNLK':_0x79f173(0x105),'NEHPz':function(_0x3cc4fd,_0x2d89ce,_0x3420df,_0x243c1c,_0x1c5493,_0x52ad17,_0x3d1b45){return _0x3cc4fd(_0x2d89ce,_0x3420df,_0x243c1c,_0x1c5493,_0x52ad17,_0x3d1b45);},'AMiZe':_0x79f173(0x113),'hVYmi':_0x79f173(0x108),'brZeV':function(_0x4e84a1,_0x280683,_0x4368cc,_0x59426b,_0x4dc8a4,_0x598b13,_0x1321d7){return _0x4e84a1(_0x280683,_0x4368cc,_0x59426b,_0x4dc8a4,_0x598b13,_0x1321d7);},'KsrcC':function(_0x194954){return _0x194954();},'PMISK':_0x79f173(0x128),'wCnJr':_0x79f173(0x110),'IPMhF':'Adding\x20Websocket\x20listeners','SQawo':function(_0x179398,_0x14b718,_0x5124d6,_0x54057f){return _0x179398(_0x14b718,_0x5124d6,_0x54057f);},'TnPtd':function(_0xec6e19,_0xb8a203,_0x292d85){return _0xec6e19(_0xb8a203,_0x292d85);},'bQNXg':function(_0x322f85,_0x32839e,_0x56daf3){return _0x322f85(_0x32839e,_0x56daf3);},'KVGMt':_0x79f173(0x111),'tkLVx':function(_0x313c7a,_0x1be44f){return _0x313c7a===_0x1be44f;},'HwEZY':_0x79f173(0xe5),'tmuGt':_0x79f173(0xec),'YFfFr':function(_0x34f0ac,_0x43c56d){return _0x34f0ac===_0x43c56d;},'jLKAn':function(_0x265a1c,_0x863a72,_0x1d5ed8,_0x39141a,_0x1b6019,_0x2eb473,_0x4d3024){return _0x265a1c(_0x863a72,_0x1d5ed8,_0x39141a,_0x1b6019,_0x2eb473,_0x4d3024);},'qxjYs':_0x79f173(0xf0),'NAERk':function(_0x4b126f,_0x5c5d8d,_0x481da2,_0x447666,_0x369ee2,_0x20bfe9,_0xabbc10){return _0x4b126f(_0x5c5d8d,_0x481da2,_0x447666,_0x369ee2,_0x20bfe9,_0xabbc10);},'wTdbJ':_0x79f173(0xf7)};let _0x1627b7;try{!_0x6222b2[_0x79f173(0xf8)]&&(logger['error'](_0x1348bc['GHtAC']),process['exit'](0x1));!fs[_0x79f173(0xe3)](_0x1348bc[_0x79f173(0x123)](getCredentialsPath))&&(logger[_0x79f173(0x116)](_0x1348bc[_0x79f173(0xde)]),await _0x1348bc[_0x79f173(0x121)](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes[_0x79f173(0xd7)],_0x1348bc[_0x79f173(0xdf)],null,_0x6222b2),process[_0x79f173(0xe4)](0x1));logger[_0x79f173(0xea)]('Starting\x20grid\x20'+_0x6222b2['gridId']),await _0x1348bc['brZeV'](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes[_0x79f173(0x100)],null,null,_0x6222b2);const _0x371c9a=JSON[_0x79f173(0x126)](fs[_0x79f173(0xfb)](_0x1348bc['KsrcC'](getCredentialsPath)));global_registry[_0x79f173(0x12e)]=_0x371c9a['Browserstack'][_0x79f173(0xf1)],global_registry[_0x79f173(0xfa)]=_0x371c9a[_0x79f173(0x118)]['password'];const _0x2031bb=WS_ENDPOINT[_0x79f173(0x115)](_0x1348bc['PMISK'],_0x371c9a[_0x79f173(0x118)]['username'])[_0x79f173(0x115)](_0x1348bc[_0x79f173(0x114)],_0x371c9a['Browserstack'][_0x79f173(0xe0)]),_0x2d108a={};_0x2d108a['WebSocket']=ws,_0x2d108a[_0x79f173(0x107)]=0x36ee80,_0x1627b7=new ReconnectingWebSocket(_0x2031bb,[],_0x2d108a),logger['debug'](_0x1348bc['IPMhF']),webSocketUtils[_0x79f173(0xe1)](_0x1627b7,_0x6222b2['user'],_0x6222b2[_0x79f173(0xe0)]);const [_0x59c914,_0x1d2f55]=await _0x1348bc[_0x79f173(0xf6)](getGridDetails,_0x371c9a[_0x79f173(0x118)][_0x79f173(0xf1)],_0x371c9a['Browserstack'][_0x79f173(0xe0)],_0x6222b2[_0x79f173(0xf8)]);if(_0x1d2f55){const _0x4add88=_0x1d2f55[_0x79f173(0xea)];global_registry[_0x79f173(0x11b)]=_0x4add88[_0x79f173(0x11b)],global_registry[_0x79f173(0x131)]=_0x4add88[_0x79f173(0x10a)],global_registry[_0x79f173(0x127)]=_0x4add88[_0x79f173(0x127)];const _0x50aa37=await _0x1348bc[_0x79f173(0x11a)](getCloudProviderObject,_0x4add88[_0x79f173(0x11b)],_0x4add88[_0x79f173(0x127)],_0x4add88[_0x79f173(0x125)],_0x1627b7,webSocketUtils,_0x6222b2),[_0x605892,_0x466ea8,_0x18ebf2,_0x4c1c6d,_0x12556c,_0x2e5f57]=await _0x1348bc[_0x79f173(0xd8)](createK8sClient,_0x50aa37,_0x6222b2[_0x79f173(0xff)]);await _0x1348bc[_0x79f173(0xee)](scaleUpHubDeployment,_0x466ea8,_0x4add88['name']),logger[_0x79f173(0xea)](_0x1348bc[_0x79f173(0x109)]),process['exit'](0x0);}_0x1348bc[_0x79f173(0xe9)](_0x59c914['statusCode'],0x191)&&(logger[_0x79f173(0x116)](_0x1348bc[_0x79f173(0x106)]),await _0x1348bc[_0x79f173(0x11a)](sendInstrumentationEvent,_0x6222b2,_0x1348bc['AMiZe'],messageTypes[_0x79f173(0xd7)],_0x1348bc['tmuGt'],null,_0x6222b2),process['exit'](0x1)),_0x1348bc['YFfFr'](_0x59c914[_0x79f173(0x133)],0x190)&&(logger[_0x79f173(0x116)](JSON['parse'](_0x59c914['body'])[_0x79f173(0x102)]),await _0x1348bc['jLKAn'](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes['ERROR'],_0x1348bc[_0x79f173(0xed)],null,_0x6222b2),process[_0x79f173(0xe4)](0x1)),logger[_0x79f173(0x116)](_0x79f173(0xda)+JSON[_0x79f173(0x12f)](_0x59c914)),await _0x1348bc[_0x79f173(0x11d)](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes[_0x79f173(0xd7)],_0x1348bc[_0x79f173(0xd9)],_0x59c914,_0x6222b2),process['exit'](0x1);}catch(_0x54b429){const _0x25202e=_0x79f173(0xd6)+_0x54b429+'\x20\x0a'+JSON[_0x79f173(0x12f)](_0x54b429['stack'])+'\x20';logger[_0x79f173(0x116)](_0x25202e),process[_0x79f173(0xe4)](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
+ const a20_0x162003=a20_0xf4e6;(function(_0x16cc55,_0x4f8034){const _0x4312a1=a20_0xf4e6,_0x193ed6=_0x16cc55();while(!![]){try{const _0x548c60=parseInt(_0x4312a1(0xca))/0x1*(-parseInt(_0x4312a1(0xdd))/0x2)+-parseInt(_0x4312a1(0xcb))/0x3*(parseInt(_0x4312a1(0xc5))/0x4)+parseInt(_0x4312a1(0xd8))/0x5*(parseInt(_0x4312a1(0xd4))/0x6)+-parseInt(_0x4312a1(0xc7))/0x7+parseInt(_0x4312a1(0xd3))/0x8*(parseInt(_0x4312a1(0xcd))/0x9)+-parseInt(_0x4312a1(0xdc))/0xa+parseInt(_0x4312a1(0xcf))/0xb*(parseInt(_0x4312a1(0xd5))/0xc);if(_0x548c60===_0x4f8034)break;else _0x193ed6['push'](_0x193ed6['shift']());}catch(_0x32da4c){_0x193ed6['push'](_0x193ed6['shift']());}}}(a20_0x1f6d,0xaec74));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0xf4e6(_0x546a68,_0x4bbcee){const _0x1f6dce=a20_0x1f6d();return a20_0xf4e6=function(_0xf4e638,_0x222984){_0xf4e638=_0xf4e638-0xc4;let _0x759e71=_0x1f6dce[_0xf4e638];return _0x759e71;},a20_0xf4e6(_0x546a68,_0x4bbcee);}function a20_0x1f6d(){const _0x107ae1=['fwCiT','22hdaCJK','help','desc','usage','42568FgFuvU','6JNVdLY','26159076JNngyF','epilogue','stop','826905gxKOOs','commandDir','builder','stop_commands','3357590uoxkoW','2mqfzFm','command','5276DkUQjA','handler','5692400rlIKdg','Iqolg','recommendCommands','1427201mGFQMl','2829IsIPEN','demandCommand','18hfpbqI'];a20_0x1f6d=function(){return _0x107ae1;};return a20_0x1f6d();}exports[a20_0x162003(0xc4)]=a20_0x162003(0xd7),exports[a20_0x162003(0xd1)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x162003(0xda)]=function(_0x34ffbf){const _0x5d912b=a20_0x162003,_0x3a84c2={};_0x3a84c2[_0x5d912b(0xce)]=_0x5d912b(0xdb),_0x3a84c2[_0x5d912b(0xc8)]='help';const _0x5ba3b3=_0x3a84c2;return _0x34ffbf[_0x5d912b(0xd2)](HELP_HEADER_MESSAGE['stop'])[_0x5d912b(0xd6)](HELP_FOOTER_MESSAGE)[_0x5d912b(0xd9)](_0x5ba3b3[_0x5d912b(0xce)])[_0x5d912b(0xcc)]()[_0x5d912b(0xc9)]()['strict']()[_0x5d912b(0xd0)](_0x5ba3b3[_0x5d912b(0xc8)]);},exports[a20_0x162003(0xc6)]=function(_0x19f867){};
@@ -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
+ function a21_0x5247(_0x3991e2,_0x295a62){const _0x2873c1=a21_0x2873();return a21_0x5247=function(_0x52470c,_0x18eacb){_0x52470c=_0x52470c-0x17a;let _0xf1e8d2=_0x2873c1[_0x52470c];return _0xf1e8d2;},a21_0x5247(_0x3991e2,_0x295a62);}const a21_0x2aded9=a21_0x5247;(function(_0x429bb4,_0x4d1abf){const _0x232b97=a21_0x5247,_0x50e2ed=_0x429bb4();while(!![]){try{const _0x51f64b=parseInt(_0x232b97(0x1a4))/0x1+parseInt(_0x232b97(0x196))/0x2+parseInt(_0x232b97(0x1c5))/0x3+parseInt(_0x232b97(0x1bc))/0x4+-parseInt(_0x232b97(0x1bb))/0x5*(parseInt(_0x232b97(0x18a))/0x6)+parseInt(_0x232b97(0x1a6))/0x7+-parseInt(_0x232b97(0x17f))/0x8*(parseInt(_0x232b97(0x1c9))/0x9);if(_0x51f64b===_0x4d1abf)break;else _0x50e2ed['push'](_0x50e2ed['shift']());}catch(_0x24cc82){_0x50e2ed['push'](_0x50e2ed['shift']());}}}(a21_0x2873,0xb196b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2aded9(0x1d5)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2aded9(0x1b7)),{logger}=require(a21_0x2aded9(0x199)),{getCredentialsPath,getGridDetails}=require(a21_0x2aded9(0x1b8)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x2aded9(0x19f)),webSocketUtils=require(a21_0x2aded9(0x1cd)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x2aded9(0x187));exports[a21_0x2aded9(0x1ae)]=a21_0x2aded9(0x1b1),exports[a21_0x2aded9(0x1aa)]=a21_0x2aded9(0x1d4),exports[a21_0x2aded9(0x1a0)]=function(_0x5d0339){const _0x379407=a21_0x2aded9,_0x52aed4={};_0x52aed4[_0x379407(0x1b2)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x52aed4[_0x379407(0x17c)]=_0x379407(0x1d0),_0x52aed4[_0x379407(0x1a2)]=_0x379407(0x1a5),_0x52aed4[_0x379407(0x19b)]=_0x379407(0x1b4),_0x52aed4[_0x379407(0x1ba)]=_0x379407(0x1ab);const _0x89c4e4=_0x52aed4,_0x5940b8={};_0x5940b8[_0x379407(0x17d)]=_0x89c4e4[_0x379407(0x1b2)],_0x5940b8[_0x379407(0x19c)]=_0x89c4e4[_0x379407(0x17c)];const _0x588bc2={};_0x588bc2[_0x379407(0x17d)]=_0x89c4e4[_0x379407(0x1a2)],_0x588bc2[_0x379407(0x19c)]=_0x89c4e4[_0x379407(0x19b)],_0x588bc2[_0x379407(0x190)]=![];const _0x3de20d={};return _0x3de20d[_0x379407(0x185)]=_0x5940b8,_0x3de20d[_0x379407(0x188)]=_0x588bc2,_0x5d0339['usage'](HELP_HEADER_MESSAGE[_0x379407(0x1d3)])[_0x379407(0x191)](HELP_FOOTER_MESSAGE)['options'](_0x3de20d)[_0x379407(0x1ab)](_0x89c4e4[_0x379407(0x1ba)])[_0x379407(0x18c)];},exports['handler']=async function(_0x5d284c){const _0x2dc7a3=a21_0x2aded9,_0xc5772c={'ZOrFR':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','PfWkD':function(_0x225701){return _0x225701();},'VmQkm':_0x2dc7a3(0x1c0),'aUWCS':function(_0x75ece5,_0x201252,_0x4923fe,_0x1df418,_0x1fbbcb,_0x5d3bf8,_0x224f03){return _0x75ece5(_0x201252,_0x4923fe,_0x1df418,_0x1fbbcb,_0x5d3bf8,_0x224f03);},'QUiyR':_0x2dc7a3(0x189),'ReyxZ':_0x2dc7a3(0x1af),'eGDyO':function(_0x22d41e){return _0x22d41e();},'aZcIx':_0x2dc7a3(0x192),'oDMYQ':_0x2dc7a3(0x1b0),'KHdMI':_0x2dc7a3(0x1ad),'Rskkp':function(_0x268aea,_0x3ce5cc,_0x3ca24c,_0x304738){return _0x268aea(_0x3ce5cc,_0x3ca24c,_0x304738);},'rsPWp':function(_0x309193,_0xadd410,_0x1b0095,_0x3ad870,_0x30457f,_0x3da2cb,_0x2169ca){return _0x309193(_0xadd410,_0x1b0095,_0x3ad870,_0x30457f,_0x3da2cb,_0x2169ca);},'IoLXH':function(_0x48afb3,_0x2e81db,_0x31f863){return _0x48afb3(_0x2e81db,_0x31f863);},'oBGqj':function(_0x1c1b83,_0x96a664,_0x19339e){return _0x1c1b83(_0x96a664,_0x19339e);},'BwLvq':_0x2dc7a3(0x1b6),'VjTxX':function(_0x4221a4,_0x15d068){return _0x4221a4===_0x15d068;},'MFvyQ':_0x2dc7a3(0x17e),'xEkab':'unauthorised','Tzalr':function(_0x25b9b9,_0x26c9e8,_0x35adf0,_0x3c736d,_0x556cf3,_0x48f2e0,_0xb12c38){return _0x25b9b9(_0x26c9e8,_0x35adf0,_0x3c736d,_0x556cf3,_0x48f2e0,_0xb12c38);},'dBvBP':_0x2dc7a3(0x198),'YOXOG':_0x2dc7a3(0x194)};let _0x3503bd;try{!_0x5d284c[_0x2dc7a3(0x1bd)]&&(logger['error'](_0xc5772c[_0x2dc7a3(0x1ca)]),process[_0x2dc7a3(0x181)](0x1));!fs[_0x2dc7a3(0x1d7)](_0xc5772c[_0x2dc7a3(0x180)](getCredentialsPath))&&(logger['error'](_0xc5772c[_0x2dc7a3(0x1ce)]),await _0xc5772c['aUWCS'](sendInstrumentationEvent,_0x5d284c,_0xc5772c[_0x2dc7a3(0x1bf)],messageTypes[_0x2dc7a3(0x182)],_0xc5772c[_0x2dc7a3(0x1cc)],null,_0x5d284c),process['exit'](0x1));logger[_0x2dc7a3(0x1cf)]('Stopping\x20grid\x20'+_0x5d284c[_0x2dc7a3(0x1bd)]),await _0xc5772c[_0x2dc7a3(0x1c1)](sendInstrumentationEvent,_0x5d284c,_0xc5772c[_0x2dc7a3(0x1bf)],messageTypes[_0x2dc7a3(0x18f)],null,null,_0x5d284c);const _0x5a04cb=JSON[_0x2dc7a3(0x1c3)](fs[_0x2dc7a3(0x1d2)](_0xc5772c['eGDyO'](getCredentialsPath)));global_registry[_0x2dc7a3(0x186)]=_0x5a04cb[_0x2dc7a3(0x1d6)][_0x2dc7a3(0x1a1)],global_registry[_0x2dc7a3(0x19a)]=_0x5a04cb['Browserstack']['password'];const _0x2acb89=WS_ENDPOINT[_0x2dc7a3(0x1d1)](_0xc5772c[_0x2dc7a3(0x193)],_0x5a04cb[_0x2dc7a3(0x1d6)][_0x2dc7a3(0x1a1)])[_0x2dc7a3(0x1d1)](_0xc5772c['oDMYQ'],_0x5a04cb[_0x2dc7a3(0x1d6)]['password']),_0xc2c991={};_0xc2c991[_0x2dc7a3(0x1c4)]=ws,_0xc2c991[_0x2dc7a3(0x17a)]=0x36ee80,_0x3503bd=new ReconnectingWebSocket(_0x2acb89,[],_0xc2c991),logger[_0x2dc7a3(0x18d)](_0xc5772c[_0x2dc7a3(0x1a7)]),webSocketUtils[_0x2dc7a3(0x1b5)](_0x3503bd,_0x5d284c[_0x2dc7a3(0x1a8)],_0x5d284c[_0x2dc7a3(0x1a9)]);const [_0x2e7443,_0x2b8a50]=await _0xc5772c[_0x2dc7a3(0x1cb)](getGridDetails,_0x5a04cb['Browserstack'][_0x2dc7a3(0x1a1)],_0x5a04cb['Browserstack']['password'],_0x5d284c[_0x2dc7a3(0x1bd)]);if(_0x2b8a50){const _0x20aff9=_0x2b8a50[_0x2dc7a3(0x1cf)];global_registry[_0x2dc7a3(0x1c6)]=_0x20aff9[_0x2dc7a3(0x1c6)],global_registry[_0x2dc7a3(0x18b)]=_0x20aff9['region'],global_registry[_0x2dc7a3(0x1c7)]=_0x20aff9['clusterName'];const _0xa7e00=await _0xc5772c[_0x2dc7a3(0x1c8)](getCloudProviderObject,_0x20aff9[_0x2dc7a3(0x1c6)],_0x20aff9['clusterName'],_0x20aff9[_0x2dc7a3(0x1c2)],_0x3503bd,webSocketUtils,_0x5d284c),[_0x665c49,_0x18d0eb,_0x2bd43e,_0x145954,_0x3808b6,_0x408ab1]=await _0xc5772c[_0x2dc7a3(0x1a3)](createK8sClient,_0xa7e00,_0x5d284c[_0x2dc7a3(0x1ac)]);await _0xc5772c['oBGqj'](scaleDownHubDeployment,_0x18d0eb,_0x20aff9['name']),logger['info'](_0xc5772c[_0x2dc7a3(0x19d)]),process[_0x2dc7a3(0x181)](0x0);}_0xc5772c[_0x2dc7a3(0x1b9)](_0x2e7443[_0x2dc7a3(0x1b3)],0x191)&&(logger['error'](_0xc5772c[_0x2dc7a3(0x183)]),await _0xc5772c['rsPWp'](sendInstrumentationEvent,_0x5d284c,_0xc5772c['QUiyR'],messageTypes[_0x2dc7a3(0x182)],_0xc5772c[_0x2dc7a3(0x17b)],null,_0x5d284c),process[_0x2dc7a3(0x181)](0x1)),_0xc5772c[_0x2dc7a3(0x1b9)](_0x2e7443['statusCode'],0x190)&&(logger[_0x2dc7a3(0x184)](JSON['parse'](_0x2e7443['body'])['message']),await _0xc5772c[_0x2dc7a3(0x19e)](sendInstrumentationEvent,_0x5d284c,_0xc5772c['QUiyR'],messageTypes['ERROR'],_0xc5772c['dBvBP'],null,_0x5d284c),process[_0x2dc7a3(0x181)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2dc7a3(0x197)](_0x2e7443)),await _0xc5772c[_0x2dc7a3(0x1c1)](sendInstrumentationEvent,_0x5d284c,_0xc5772c[_0x2dc7a3(0x1bf)],messageTypes[_0x2dc7a3(0x182)],_0xc5772c[_0x2dc7a3(0x18e)],_0x2e7443,_0x5d284c),process[_0x2dc7a3(0x181)](0x1);}catch(_0xb79e1a){const _0x21725b=_0x2dc7a3(0x195)+_0xb79e1a+'\x20\x0a'+JSON[_0x2dc7a3(0x197)](_0xb79e1a[_0x2dc7a3(0x1be)])+'\x20';logger[_0x2dc7a3(0x184)](_0x21725b),process[_0x2dc7a3(0x181)](0x1);}};function a21_0x2873(){const _0x2b9fab=['VmQkm','info','string','replace','readFileSync','stop','Stop\x20a\x20running\x20Automation\x20grid.','reconnecting-websocket','Browserstack','existsSync','connectionTimeout','xEkab','gXBgZ','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','2264gtGwyL','PfWkD','exit','ERROR','MFvyQ','error','grid-id','bstackUsername','../../cloudproviders/utils','skip-tls-cert-verify','stop-grid-called','2490xucyPb','clusterRegion','argv','debug','YOXOG','INFO','default','epilogue','<UsernamePlaceholder>','aZcIx','server-error','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','2247072kgugRI','stringify','invalid-grid-id','../../config/logger','bstackAccesskey','qonGd','type','BwLvq','Tzalr','../../utils/instrumentationUtils','builder','username','fCRey','IoLXH','1038877ruBdHH','Skip\x20insecure\x20cert\x20verification.','8104313EsbSWW','KHdMI','user','password','desc','help','skipTlsCertVerify','Adding\x20Websocket\x20listeners','command','init-not-called','<PasswordPlaceholder>','grid','TxjTx','statusCode','boolean','addListeners','Grid\x20stoppped.','../../config/constants','../../utils/utilityMethods','VjTxX','uFpEt','12370voQBoF','5755096WwsKsJ','gridId','stack','QUiyR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','aUWCS','name','parse','WebSocket','1221894PpAmXx','cloudProvider','clusterName','rsPWp','108513bAvFAD','ZOrFR','Rskkp','ReyxZ','../../utils/webSocketUtils'];a21_0x2873=function(){return _0x2b9fab;};return a21_0x2873();}
@@ -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_0x4aeaef=a22_0x357a;(function(_0x991eba,_0x1f5e32){const _0x2a2beb=a22_0x357a,_0x5c5b28=_0x991eba();while(!![]){try{const _0x2575ff=-parseInt(_0x2a2beb(0xdc))/0x1*(-parseInt(_0x2a2beb(0xd4))/0x2)+parseInt(_0x2a2beb(0xb4))/0x3+parseInt(_0x2a2beb(0xb0))/0x4*(parseInt(_0x2a2beb(0x99))/0x5)+parseInt(_0x2a2beb(0xa0))/0x6*(parseInt(_0x2a2beb(0xe6))/0x7)+parseInt(_0x2a2beb(0x9e))/0x8*(parseInt(_0x2a2beb(0xc9))/0x9)+parseInt(_0x2a2beb(0xe8))/0xa*(parseInt(_0x2a2beb(0x94))/0xb)+-parseInt(_0x2a2beb(0xb7))/0xc;if(_0x2575ff===_0x1f5e32)break;else _0x5c5b28['push'](_0x5c5b28['shift']());}catch(_0x1d9682){_0x5c5b28['push'](_0x5c5b28['shift']());}}}(a22_0x38bc,0xe4a1c),require('dotenv')['config']());let gridURL=a22_0x4aeaef(0xa5),bsApiUrl=a22_0x4aeaef(0xaf),agApiUrl='grid-api.browserstack.com';const _env=(process['env'][a22_0x4aeaef(0x95)]||a22_0x4aeaef(0xd6))['toLowerCase']();if(_env==='staging'||_env===a22_0x4aeaef(0xdb))gridURL=a22_0x4aeaef(0xeb),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x4aeaef(0xe7),agApiUrl=a22_0x4aeaef(0xa9));exports[a22_0x4aeaef(0xf7)]=process['env'][a22_0x4aeaef(0xf7)]||gridURL,exports[a22_0x4aeaef(0x96)]=process[a22_0x4aeaef(0xdd)][a22_0x4aeaef(0x96)]||bsApiUrl,exports[a22_0x4aeaef(0xc4)]=process[a22_0x4aeaef(0xdd)]['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x4aeaef(0xac)+this[a22_0x4aeaef(0xc4)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x4aeaef(0xcb)]='credentials',exports[a22_0x4aeaef(0xf3)]='BrowserStackIAMUser',exports[a22_0x4aeaef(0x9b)]='high-scale-grid',exports[a22_0x4aeaef(0xda)]=a22_0x4aeaef(0xba),exports[a22_0x4aeaef(0xb6)]='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x4aeaef(0xdf)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x4aeaef(0xbc)]=a22_0x4aeaef(0xef),exports[a22_0x4aeaef(0xc3)]=a22_0x4aeaef(0xcd),exports[a22_0x4aeaef(0xd0)]=a22_0x4aeaef(0xa1),exports[a22_0x4aeaef(0xed)]=[this['AWS'],this[a22_0x4aeaef(0xc3)],this[a22_0x4aeaef(0xd0)]];const a22_0x4898c0={};a22_0x4898c0[a22_0x4aeaef(0xf6)]=a22_0x4aeaef(0xa3),a22_0x4898c0['Value']=a22_0x4aeaef(0xd8);const a22_0x5415d8={};a22_0x5415d8[a22_0x4aeaef(0xf6)]='browserstack:service',a22_0x5415d8[a22_0x4aeaef(0x97)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x4898c0,a22_0x5415d8];function a22_0x357a(_0x32740c,_0xcf17d){const _0x38bc3c=a22_0x38bc();return a22_0x357a=function(_0x357a2d,_0x5db95d){_0x357a2d=_0x357a2d-0x90;let _0x4ca6c9=_0x38bc3c[_0x357a2d];return _0x4ca6c9;},a22_0x357a(_0x32740c,_0xcf17d);}if(process[a22_0x4aeaef(0xdd)][a22_0x4aeaef(0xa2)]){const parsedTags=process[a22_0x4aeaef(0xdd)][a22_0x4aeaef(0xa2)][a22_0x4aeaef(0xab)](',');parsedTags[a22_0x4aeaef(0xe4)](_0x4ee387=>{const _0x49e7f5=a22_0x4aeaef,_0x3c27f0=_0x4ee387[_0x49e7f5(0xab)](':'),_0x385c85={};_0x385c85[_0x49e7f5(0xf6)]=_0x3c27f0[0x0],_0x385c85[_0x49e7f5(0x97)]=_0x3c27f0[0x1],common_hst_tags_list['push'](_0x385c85);});}exports[a22_0x4aeaef(0xe5)]=common_hst_tags_list;const a22_0x1efda2={};a22_0x1efda2[a22_0x4aeaef(0xa3)]=a22_0x4aeaef(0xd8),a22_0x1efda2['browserstack:service']='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0x1efda2,exports[a22_0x4aeaef(0xd3)]=[this[a22_0x4aeaef(0xda)]];function a22_0x38bc(){const _0x578334=['DEFAULT_CLUSTER_DETAILS','messageTypes','GCP','global_registry','connect','SUPPORTED_CLOUD_PROVIDERS','2nInrwE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','prod','CLI_RUN_STARTED','BrowserStack','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','AWS','stag','182239VvGbhA','env','HELP_FOOTER_MESSAGE','CLUSTER_HUB_HA_STACK_NAME','cliRunFinished','gridProfile','LINK_MESSAGE','GRID_URL','forEach','COMMON_HST_TAGS','637hlaktC','api-preprod.bsstag.com','2349290hzMQln','grid','HELP_HEADER_MESSAGE','grid-devhst.bsstag.com','TRIAL_GRID_URL','ALL_SUPPORTED_CLOUD_PROVIDERS','WARNING','browserstack-turboscale-grid','start','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','configure','IAM_USER_NAME','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','Key','DASHBOARD_ENDPOINT','SUCCESS','root','info','pre-check','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','resourceInfo','77LaJxmN','BROWSERSTACK_ENV','BS_API_URL','Value','INFO','10JiOzDd','gridUrl','DEFAULT_GRID_NAME','NULL','UNKNOWN','32Kkalbo','warning','45078zDjGUv','gcp','TURBOSCALE_CUSTOM_TAGS','browserstack:managedBy','cliRunStarted','grid.browserstack.com','WS_EVENTS','CLOUD_PROVIDER','success','grid-api-preprod.bsstag.com','grid-profile','split','wss://','us-east-1','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','api.browserstack.com','2933992lZSrOu','REGION','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','RESOURCES','4939515BCjsAd','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLUSTER_DEP_STACK_NAME','66912936jetpPn','create','pre_check','aws','MessageDescription','TURBOSCALE_DEPLOYMENT','log','list','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','REDACTED','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AZURE','AG_API_URL','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLI_ARGS_REGEX','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','stop','1999413jTcOOE','[REDACTED]','CP_CONFIG_FILE','unknown','azure'];a22_0x38bc=function(){return _0x578334;};return a22_0x38bc();}const a22_0x34e18e={};a22_0x34e18e['LOG']=a22_0x4aeaef(0xbd),a22_0x34e18e[a22_0x4aeaef(0xb3)]=a22_0x4aeaef(0x93),a22_0x34e18e[a22_0x4aeaef(0xe3)]=a22_0x4aeaef(0x9a),a22_0x34e18e[a22_0x4aeaef(0xd7)]=a22_0x4aeaef(0xa4),a22_0x34e18e['CLI_RUN_FINISHED']=a22_0x4aeaef(0xe0),exports[a22_0x4aeaef(0xa6)]=a22_0x34e18e,exports[a22_0x4aeaef(0xd1)]={},exports[a22_0x4aeaef(0xe2)]=a22_0x4aeaef(0xc5);const a22_0x2141a8={};a22_0x2141a8['root']=a22_0x4aeaef(0x92)+this['LINK_MESSAGE'],a22_0x2141a8['init']=a22_0x4aeaef(0xc0)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xf2)]=a22_0x4aeaef(0xb5)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xb8)]=a22_0x4aeaef(0xd9)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)]={},a22_0x2141a8['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xd2)]=a22_0x4aeaef(0xf4)+this['LINK_MESSAGE'],a22_0x2141a8[a22_0x4aeaef(0xf0)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xc8)]=a22_0x4aeaef(0xae)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xb9)]=a22_0x4aeaef(0xf5)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)][a22_0x4aeaef(0xf9)]=a22_0x4aeaef(0xf1)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)][a22_0x4aeaef(0xe9)]=a22_0x4aeaef(0xd5)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)][a22_0x4aeaef(0xe1)]=a22_0x4aeaef(0xc2)+this['LINK_MESSAGE'],exports[a22_0x4aeaef(0xea)]=a22_0x2141a8,exports[a22_0x4aeaef(0xde)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x2821a7={};a22_0x2821a7[a22_0x4aeaef(0xf8)]=a22_0x4aeaef(0xa8),a22_0x2821a7['ERROR']='error',a22_0x2821a7[a22_0x4aeaef(0x98)]=a22_0x4aeaef(0x90),a22_0x2821a7[a22_0x4aeaef(0xee)]=a22_0x4aeaef(0x9f),a22_0x2821a7[a22_0x4aeaef(0x9d)]=a22_0x4aeaef(0xcc),a22_0x2821a7[a22_0x4aeaef(0x9c)]=null,exports[a22_0x4aeaef(0xcf)]=a22_0x2821a7,exports[a22_0x4aeaef(0xc6)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x4aeaef(0xbf)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x4aeaef(0xc1)]=a22_0x4aeaef(0xca);const a22_0x34bde9={};a22_0x34bde9[a22_0x4aeaef(0xaa)]=a22_0x4aeaef(0xb2);const a22_0x5b32d3={};a22_0x5b32d3[a22_0x4aeaef(0x91)]=a22_0x34bde9,exports[a22_0x4aeaef(0xbb)]=a22_0x5b32d3,exports[a22_0x4aeaef(0xec)]=a22_0x4aeaef(0xc7);const a22_0x156ce4={};a22_0x156ce4['CLUSTER']='high-scale-grid-cluster',a22_0x156ce4[a22_0x4aeaef(0xa7)]=a22_0x4aeaef(0xba),a22_0x156ce4[a22_0x4aeaef(0xb1)]=a22_0x4aeaef(0xad),exports[a22_0x4aeaef(0xce)]=a22_0x156ce4;
@@ -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
+ function a23_0x2825(){const _0x2c0187=['path','8247411FVRUuj','2046610MCikgI','4194KAKYmo','level','\x20-\x20','log','Console','winston','colorize','combine','createLogger','logger','18613rcxhGP','YYYY-MM-DD\x20HH:mm:ss','name','4808526oKzszC','2745JzFXZJ','980133sUEfpW','2472SjfkON','debug','transports','2365824SpRYKr','events.log','printf','join','4cAxUxe','timestamp','usage.log','message','format','File'];a23_0x2825=function(){return _0x2c0187;};return a23_0x2825();}const a23_0x3b225d=a23_0x24a4;(function(_0x1447d2,_0x465bc4){const _0x15e364=a23_0x24a4,_0xcb8a76=_0x1447d2();while(!![]){try{const _0x49aa19=parseInt(_0x15e364(0xdd))/0x1+-parseInt(_0x15e364(0xe1))/0x2+parseInt(_0x15e364(0xdb))/0x3*(parseInt(_0x15e364(0xe5))/0x4)+parseInt(_0x15e364(0xdc))/0x5*(-parseInt(_0x15e364(0xee))/0x6)+-parseInt(_0x15e364(0xd8))/0x7*(parseInt(_0x15e364(0xde))/0x8)+parseInt(_0x15e364(0xec))/0x9+-parseInt(_0x15e364(0xed))/0xa;if(_0x49aa19===_0x465bc4)break;else _0xcb8a76['push'](_0xcb8a76['shift']());}catch(_0x13a343){_0xcb8a76['push'](_0xcb8a76['shift']());}}}(a23_0x2825,0xdd49f));const winston=require(a23_0x3b225d(0xd3)),fs=require('fs'),path=require(a23_0x3b225d(0xeb)),logDir=a23_0x3b225d(0xd1);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x1b294f={};a23_0x1b294f[a23_0x3b225d(0xe9)]=a23_0x3b225d(0xd9);const a23_0x3cd93c={};a23_0x3cd93c['level']=!![];function a23_0x24a4(_0x56e7dd,_0xacdb9c){const _0x2825a6=a23_0x2825();return a23_0x24a4=function(_0x24a416,_0xa0690b){_0x24a416=_0x24a416-0xcf;let _0x1f4aab=_0x2825a6[_0x24a416];return _0x1f4aab;},a23_0x24a4(_0x56e7dd,_0xacdb9c);}const a23_0x2db9ea={};a23_0x2db9ea[a23_0x3b225d(0xda)]='console.info',exports[a23_0x3b225d(0xd7)]=new winston[(a23_0x3b225d(0xd6))]({'format':winston['format'][a23_0x3b225d(0xd5)](winston[a23_0x3b225d(0xe9)][a23_0x3b225d(0xe6)](a23_0x1b294f),winston[a23_0x3b225d(0xe9)][a23_0x3b225d(0xd4)](a23_0x3cd93c),winston['format'][a23_0x3b225d(0xe3)](_0x833e90=>_0x833e90[a23_0x3b225d(0xe6)]+a23_0x3b225d(0xd0)+_0x833e90[a23_0x3b225d(0xcf)]+':\x20'+_0x833e90[a23_0x3b225d(0xe8)])),'transports':[new winston[(a23_0x3b225d(0xe0))][(a23_0x3b225d(0xd2))](a23_0x2db9ea),new winston[(a23_0x3b225d(0xe0))]['File']({'filename':path[a23_0x3b225d(0xe4)](logDir,a23_0x3b225d(0xe2)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3b225d(0xe0))][(a23_0x3b225d(0xea))]({'filename':path[a23_0x3b225d(0xe4)](logDir,a23_0x3b225d(0xe7)),'level':a23_0x3b225d(0xdf)})]};exports['fileLogger']=new winston[(a23_0x3b225d(0xd6))](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';const a24_0x3b9ac6=a24_0x204d;function a24_0x204d(_0xb33e91,_0x202089){const _0x5c22f6=a24_0x5c22();return a24_0x204d=function(_0x204d8d,_0x33cfc4){_0x204d8d=_0x204d8d-0x1dc;let _0x49663f=_0x5c22f6[_0x204d8d];return _0x49663f;},a24_0x204d(_0xb33e91,_0x202089);}function a24_0x5c22(){const _0x206846=['2063944lVmKKL','2630136bfIqyy','exports','commandDir','ycWUf','3472308dbjPEl','ueHFs','31642164jdJXhX','1072JnTyiX','env','help','./config/constants','9515002YlRoas','demandCommand','root','24nslEHy','epilogue','2042SMHvtC','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1945970rQeoiN'];a24_0x5c22=function(){return _0x206846;};return a24_0x5c22();}(function(_0x552341,_0x3e8e00){const _0x47f800=a24_0x204d,_0x2d6c48=_0x552341();while(!![]){try{const _0x5623da=-parseInt(_0x47f800(0x1e0))/0x1*(-parseInt(_0x47f800(0x1eb))/0x2)+-parseInt(_0x47f800(0x1e8))/0x3+parseInt(_0x47f800(0x1e4))/0x4+-parseInt(_0x47f800(0x1e2))/0x5*(parseInt(_0x47f800(0x1de))/0x6)+-parseInt(_0x47f800(0x1ef))/0x7+-parseInt(_0x47f800(0x1e3))/0x8+parseInt(_0x47f800(0x1ea))/0x9;if(_0x5623da===_0x3e8e00)break;else _0x2d6c48['push'](_0x2d6c48['shift']());}catch(_0x3bb09a){_0x2d6c48['push'](_0x2d6c48['shift']());}}}(a24_0x5c22,0xe499f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3b9ac6(0x1ee));process[a24_0x3b9ac6(0x1ec)][a24_0x3b9ac6(0x1e1)]=0x1;function run(_0x35a46b){const _0x58f415=a24_0x3b9ac6,_0x53c57c={};_0x53c57c[_0x58f415(0x1e7)]='commands',_0x53c57c[_0x58f415(0x1e9)]='help';const _0xac3caf=_0x53c57c;_0x35a46b['usage'](HELP_HEADER_MESSAGE[_0x58f415(0x1dd)])[_0x58f415(0x1e6)](_0xac3caf[_0x58f415(0x1e7)])[_0x58f415(0x1dc)]()[_0x58f415(0x1ed)](_0xac3caf[_0x58f415(0x1e9)])[_0x58f415(0x1df)](HELP_FOOTER_MESSAGE);}module[a24_0x3b9ac6(0x1e5)]=run;