browserstack-node-sdk 1.42.7 → 1.42.8

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_0x3544(){const _0x486e73=['PRxxV','ncgQM','statusCode','allGrids','INFO','dpJri','okuki','oGEWy','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','8PPakPa','SjJiB','NmsgM','log','51310WfsLpp','IlITY','bstackAccesskey','grid-id','Failed\x20to\x20list\x20resources!\x20Error:\x20','stack','push','boolean','error','17143698GkxXyK','body','FumCX','67znuhql','clusterName','/packages/cli/get-all-grids','EGeLU','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','username','list-grids-called','argv','uuid','ikAbV','usage','builder','369GyaZJA','3814144wDLKsj','description','unauthorised','https://','15326rAxLIi','table','Odjii','ERROR','bstackUsername','xgflU','grid','oZXVL','Browserstack','grids','Vzirw','../../utils/utilityMethods','type','exit','11851WCMFSf','eoHnx','status','all-grids','CledB','hmtvN','eqKSf','running','1219175XQCdzP','unknown-error','epilogue','options','requestId','readFileSync','1328766xUWLay','password','../../config/constants','queued','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OYUXm','cracd','OElbK','parse','VkNLE','help','GET','1068izlHOu'];a15_0x3544=function(){return _0x486e73;};return a15_0x3544();}function a15_0x2ac6(_0x394067,_0x47e858){const _0x3544fb=a15_0x3544();return a15_0x2ac6=function(_0x2ac6bf,_0x405ea9){_0x2ac6bf=_0x2ac6bf-0x9b;let _0x1a91f6=_0x3544fb[_0x2ac6bf];return _0x1a91f6;},a15_0x2ac6(_0x394067,_0x47e858);}const a15_0x56bc50=a15_0x2ac6;(function(_0x117ce8,_0x1664da){const _0x4a15e2=a15_0x2ac6,_0x45a82b=_0x117ce8();while(!![]){try{const _0x274d7a=-parseInt(_0x4a15e2(0xe3))/0x1*(-parseInt(_0x4a15e2(0xa1))/0x2)+parseInt(_0x4a15e2(0xbd))/0x3+parseInt(_0x4a15e2(0xd3))/0x4*(parseInt(_0x4a15e2(0xb7))/0x5)+parseInt(_0x4a15e2(0xc9))/0x6*(-parseInt(_0x4a15e2(0xaf))/0x7)+parseInt(_0x4a15e2(0x9d))/0x8+parseInt(_0x4a15e2(0x9c))/0x9*(parseInt(_0x4a15e2(0xd7))/0xa)+-parseInt(_0x4a15e2(0xe0))/0xb;if(_0x274d7a===_0x1664da)break;else _0x45a82b['push'](_0x45a82b['shift']());}catch(_0x12a14d){_0x45a82b['push'](_0x45a82b['shift']());}}}(a15_0x3544,0x423b0));const fs=require('fs'),got=require('got'),{table}=require(a15_0x56bc50(0xa2)),{v4:uuidv4}=require(a15_0x56bc50(0xeb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x56bc50(0xbf)),{getCredentialsPath,getAuthHeader}=require(a15_0x56bc50(0xac)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a15_0x56bc50(0xaa),exports['desc']=a15_0x56bc50(0xd2),exports[a15_0x56bc50(0x9b)]=function(_0xceb49a){const _0x3329a1=a15_0x56bc50,_0x494882={};_0x494882['HWZDw']=_0x3329a1(0xe7),_0x494882[_0x3329a1(0xb0)]=_0x3329a1(0xde),_0x494882[_0x3329a1(0xd1)]=_0x3329a1(0xc7);const _0x561d8e=_0x494882,_0x4e3dc3={};_0x4e3dc3[_0x3329a1(0x9e)]=_0x561d8e['HWZDw'],_0x4e3dc3[_0x3329a1(0xad)]=_0x561d8e['eoHnx'];const _0x437b3a={};return _0x437b3a[_0x3329a1(0xb2)]=_0x4e3dc3,_0xceb49a[_0x3329a1(0xed)](HELP_HEADER_MESSAGE['list'][_0x3329a1(0xa7)])[_0x3329a1(0xb9)](HELP_FOOTER_MESSAGE)[_0x3329a1(0xba)](_0x437b3a)[_0x3329a1(0xc7)](_0x561d8e['oGEWy'])[_0x3329a1(0xea)];},exports['handler']=async function(_0x52cc47){const _0x596417=a15_0x56bc50,_0x131f35={'NmsgM':function(_0x506272){return _0x506272();},'OYUXm':_0x596417(0xc1),'EGeLU':function(_0x144a99,_0x47f6f2,_0x19a2dc,_0x1cc1cd,_0xc9ac72,_0x339b46,_0x36d432){return _0x144a99(_0x47f6f2,_0x19a2dc,_0x1cc1cd,_0xc9ac72,_0x339b46,_0x36d432);},'Odjii':_0x596417(0xe9),'cracd':'init-not-called','hmtvN':function(_0x2db5b6){return _0x2db5b6();},'SjJiB':_0x596417(0xc8),'okuki':function(_0x4228ed,_0x599466,_0x2eaf4e){return _0x4228ed(_0x599466,_0x2eaf4e);},'CledB':function(_0x4dbb69,_0x1c76d2,_0x10ff22,_0x1fc48f,_0x501d55,_0x161704,_0xacaf80){return _0x4dbb69(_0x1c76d2,_0x10ff22,_0x1fc48f,_0x501d55,_0x161704,_0xacaf80);},'Vzirw':function(_0x27f73f,_0x50fed8,_0x35e341){return _0x27f73f(_0x50fed8,_0x35e341);},'GOoQQ':function(_0x1462cf,_0xa9111c){return _0x1462cf!==_0xa9111c;},'OElbK':function(_0x561a97,_0x15bb30){return _0x561a97!==_0x15bb30;},'VkNLE':function(_0x433ea2,_0x5d3335){return _0x433ea2===_0x5d3335;},'PRxxV':'\x0aFound\x20the\x20following\x20grids:\x0a','sDjNb':_0x596417(0xda),'ikAbV':'grid-name','dpJri':'status','wdqvW':_0x596417(0xb6),'ncgQM':'queued','oZXVL':'cluster-name','IZGFk':function(_0x3ab47c,_0x520cb0){return _0x3ab47c(_0x520cb0);},'xgflU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FumCX':function(_0x1bceb7,_0x2ff3e4,_0x5da2c7,_0x5db067,_0x31baca,_0x50baec,_0xc5358a){return _0x1bceb7(_0x2ff3e4,_0x5da2c7,_0x5db067,_0x31baca,_0x50baec,_0xc5358a);},'eqKSf':_0x596417(0x9f),'ikabD':'server-error','IlITY':_0x596417(0xb8)};try{global_registry[_0x596417(0xbb)]=_0x131f35[_0x596417(0xd5)](uuidv4);!fs['existsSync'](_0x131f35['NmsgM'](getCredentialsPath))&&(console[_0x596417(0xdf)](_0x131f35[_0x596417(0xc2)]),await _0x131f35['EGeLU'](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xc3)],null,_0x52cc47),process['exit'](0x1));const _0x4c272e=JSON[_0x596417(0xc5)](fs[_0x596417(0xbc)](_0x131f35[_0x596417(0xb4)](getCredentialsPath)));let _0x4e2468=_0x596417(0xa0)+AG_API_URL+'/packages/cli/get-grids';_0x52cc47[_0x596417(0xcd)]&&(_0x4e2468=_0x596417(0xa0)+AG_API_URL+_0x596417(0xe5));const _0x18c468={'method':_0x131f35[_0x596417(0xd4)],'headers':_0x131f35[_0x596417(0xd0)](getAuthHeader,_0x4c272e[_0x596417(0xa9)][_0x596417(0xe8)],_0x4c272e[_0x596417(0xa9)][_0x596417(0xbe)]),'throwHttpErrors':![]};global_registry[_0x596417(0xa5)]=_0x4c272e[_0x596417(0xa9)]['username'],global_registry[_0x596417(0xd9)]=_0x4c272e[_0x596417(0xa9)][_0x596417(0xbe)],_0x131f35['CledB'](sendInstrumentationEvent,_0x52cc47,_0x131f35[_0x596417(0xa3)],messageTypes[_0x596417(0xce)],null,null,_0x52cc47);const _0x1ebffb=await _0x131f35[_0x596417(0xab)](got,_0x4e2468,_0x18c468);if(_0x131f35['GOoQQ'](_0x1ebffb,null)&&_0x131f35[_0x596417(0xc4)](_0x1ebffb,undefined)&&_0x131f35[_0x596417(0xc6)](_0x1ebffb[_0x596417(0xcc)],0xc8)){const _0x156876=JSON[_0x596417(0xc5)](_0x1ebffb[_0x596417(0xe1)]);console[_0x596417(0xd6)](_0x131f35[_0x596417(0xca)]);const _0x4e36ac=[];_0x4e36ac['push']([_0x131f35['sDjNb'],_0x131f35[_0x596417(0xec)],_0x131f35[_0x596417(0xcf)],_0x131f35['wdqvW'],_0x131f35[_0x596417(0xcb)],_0x131f35[_0x596417(0xa8)]]),_0x156876['forEach'](_0x576ad5=>{const _0x13467f=_0x596417;_0x4e36ac[_0x13467f(0xdd)]([_0x576ad5['id'],_0x576ad5['name'],_0x576ad5[_0x13467f(0xb1)],_0x576ad5[_0x13467f(0xb6)],_0x576ad5[_0x13467f(0xc0)],_0x576ad5[_0x13467f(0xe4)]]);}),console[_0x596417(0xd6)](_0x131f35['IZGFk'](table,_0x4e36ac)),process[_0x596417(0xae)](0x0);}_0x131f35['VkNLE'](_0x1ebffb[_0x596417(0xcc)],0x191)&&(console[_0x596417(0xdf)](_0x131f35[_0x596417(0xa6)]),await _0x131f35[_0x596417(0xe2)](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xb5)],null,_0x52cc47),process[_0x596417(0xae)](0x1)),console[_0x596417(0xdf)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x1ebffb)),await _0x131f35[_0x596417(0xe6)](sendInstrumentationEvent,_0x52cc47,_0x131f35[_0x596417(0xa3)],messageTypes[_0x596417(0xa4)],_0x131f35['ikabD'],_0x1ebffb,_0x52cc47),process[_0x596417(0xae)](0x1);}catch(_0x5b52dd){console[_0x596417(0xdf)](_0x596417(0xdb)+_0x5b52dd[_0x596417(0xdc)]),await _0x131f35[_0x596417(0xb3)](sendInstrumentationEvent,_0x52cc47,_0x131f35['Odjii'],messageTypes[_0x596417(0xa4)],_0x131f35[_0x596417(0xd8)],_0x5b52dd,_0x52cc47),process[_0x596417(0xae)](0x1);}};
1
+ function a15_0x2b4e(_0xae73ab,_0x392ec6){const _0x4d0757=a15_0x4d07();return a15_0x2b4e=function(_0x2b4e55,_0x28ccd4){_0x2b4e55=_0x2b4e55-0x1a5;let _0xe0b096=_0x4d0757[_0x2b4e55];return _0xe0b096;},a15_0x2b4e(_0xae73ab,_0x392ec6);}const a15_0x9c3b4f=a15_0x2b4e;(function(_0x539719,_0x3aebb5){const _0x1b2bf0=a15_0x2b4e,_0xc754b9=_0x539719();while(!![]){try{const _0x1c7d0c=-parseInt(_0x1b2bf0(0x1b9))/0x1+-parseInt(_0x1b2bf0(0x1d7))/0x2+-parseInt(_0x1b2bf0(0x1d9))/0x3*(-parseInt(_0x1b2bf0(0x1f1))/0x4)+parseInt(_0x1b2bf0(0x1dd))/0x5*(parseInt(_0x1b2bf0(0x1d8))/0x6)+parseInt(_0x1b2bf0(0x1f6))/0x7*(-parseInt(_0x1b2bf0(0x1cc))/0x8)+-parseInt(_0x1b2bf0(0x1d6))/0x9+parseInt(_0x1b2bf0(0x1b0))/0xa;if(_0x1c7d0c===_0x3aebb5)break;else _0xc754b9['push'](_0xc754b9['shift']());}catch(_0xef6c68){_0xc754b9['push'](_0xc754b9['shift']());}}}(a15_0x4d07,0x19820));const fs=require('fs'),got=require(a15_0x9c3b4f(0x1e3)),{table}=require(a15_0x9c3b4f(0x1ed)),{v4:uuidv4}=require(a15_0x9c3b4f(0x1ef)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x9c3b4f(0x1d4)),{sendInstrumentationEvent}=require(a15_0x9c3b4f(0x1a7));function a15_0x4d07(){const _0x3f2782=['description','/packages/cli/get-all-grids','GET','push','list','allGrids','cwCTp','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','command','name','cluster-name','Ydjkp','403336fpPUgq','qUhzi','iRZrv','username','boolean','readFileSync','INFO','stringify','../../utils/utilityMethods','password','1259253QfAhAv','39578SKNYnr','6UoQbgP','3lbpLnZ','running','https://','Browserstack','142985innSQs','requestId','ERROR','handler','EAXTi','status','got','vhSqO','type','uOtxG','eVbNz','server-error','usage','Failed\x20to\x20list\x20resources!\x20Error:\x20','fPowk','tHvDR','table','grids','uuid','list-grids-called','256148kfVGIV','GcJqa','hXBnt','log','all-grids','14jPiHLe','njOIY','bstackUsername','forEach','QCrTd','existsSync','EOQzH','../../utils/instrumentationUtils','wRCFM','body','options','grid-id','help','RRtAd','/packages/cli/get-grids','unknown-error','3610250pHPeQd','init-not-called','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QidVP','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','elyMy','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','bstackAccesskey','exit','88639KFnYGz','error','nQJhN','argv','queued','statusCode','mtCoP'];a15_0x4d07=function(){return _0x3f2782;};return a15_0x4d07();}exports[a15_0x9c3b4f(0x1c8)]=a15_0x9c3b4f(0x1ee),exports['desc']=a15_0x9c3b4f(0x1b6),exports['builder']=function(_0x32b113){const _0x4ffd91=a15_0x9c3b4f,_0x30d3ff={};_0x30d3ff['nQJhN']=_0x4ffd91(0x1b4),_0x30d3ff[_0x4ffd91(0x1ce)]=_0x4ffd91(0x1d0),_0x30d3ff['HvNQy']=_0x4ffd91(0x1ac);const _0x32f7d5=_0x30d3ff,_0x3c671a={};_0x3c671a[_0x4ffd91(0x1c0)]=_0x32f7d5[_0x4ffd91(0x1bb)],_0x3c671a[_0x4ffd91(0x1e5)]=_0x32f7d5[_0x4ffd91(0x1ce)];const _0x5a65b9={};return _0x5a65b9[_0x4ffd91(0x1f5)]=_0x3c671a,_0x32b113[_0x4ffd91(0x1e9)](HELP_HEADER_MESSAGE[_0x4ffd91(0x1c4)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4ffd91(0x1aa)](_0x5a65b9)['help'](_0x32f7d5['HvNQy'])[_0x4ffd91(0x1bc)];},exports[a15_0x9c3b4f(0x1e0)]=async function(_0x338d4a){const _0xb688e=a15_0x9c3b4f,_0x267199={'EAXTi':function(_0x2161d6){return _0x2161d6();},'fPowk':function(_0x176f9c){return _0x176f9c();},'RRtAd':_0xb688e(0x1b2),'DmVri':function(_0x3c2015,_0x132c53,_0x4e559e,_0xbc9e17,_0x15c86d,_0x12d30e,_0x23d5c9){return _0x3c2015(_0x132c53,_0x4e559e,_0xbc9e17,_0x15c86d,_0x12d30e,_0x23d5c9);},'Ydjkp':_0xb688e(0x1f0),'QCrTd':_0xb688e(0x1b1),'mtCoP':_0xb688e(0x1c2),'GcJqa':function(_0x95b840,_0x42f963,_0x3e16a9){return _0x95b840(_0x42f963,_0x3e16a9);},'uOtxG':function(_0x5a96dd,_0x653f9,_0x195c32,_0x23c672,_0x56bfe3,_0x535df1,_0x2afb80){return _0x5a96dd(_0x653f9,_0x195c32,_0x23c672,_0x56bfe3,_0x535df1,_0x2afb80);},'wRCFM':function(_0xa93bd2,_0x4775ac){return _0xa93bd2!==_0x4775ac;},'qUhzi':function(_0x128b8f,_0x1fd2c0){return _0x128b8f===_0x1fd2c0;},'HQrEv':'\x0aFound\x20the\x20following\x20grids:\x0a','Zdqfj':_0xb688e(0x1ab),'cwCTp':'grid-name','GSOfe':_0xb688e(0x1e2),'hXBnt':_0xb688e(0x1da),'eVbNz':_0xb688e(0x1bd),'elyMy':_0xb688e(0x1ca),'njOIY':function(_0x281ab7,_0x2dae72){return _0x281ab7(_0x2dae72);},'eljTL':_0xb688e(0x1c7),'vhSqO':function(_0x2f81a3,_0x2d8037,_0x3bba43,_0xe50b7a,_0x4d8dff,_0x412d59,_0x1a710c){return _0x2f81a3(_0x2d8037,_0x3bba43,_0xe50b7a,_0x4d8dff,_0x412d59,_0x1a710c);},'EOQzH':'unauthorised','QidVP':function(_0xfaae1d,_0x1a2f37,_0x39d419,_0x3348e8,_0x31d72a,_0x5f93a5,_0x218440){return _0xfaae1d(_0x1a2f37,_0x39d419,_0x3348e8,_0x31d72a,_0x5f93a5,_0x218440);},'tHvDR':_0xb688e(0x1e8),'xpEUH':function(_0x21fd60,_0x14c7da,_0x97d8ae,_0x148481,_0xfe5294,_0x4eeffc,_0x2597be){return _0x21fd60(_0x14c7da,_0x97d8ae,_0x148481,_0xfe5294,_0x4eeffc,_0x2597be);},'jtkAJ':_0xb688e(0x1af)};try{global_registry[_0xb688e(0x1de)]=_0x267199['EAXTi'](uuidv4);!fs[_0xb688e(0x1a5)](_0x267199[_0xb688e(0x1eb)](getCredentialsPath))&&(console[_0xb688e(0x1ba)](_0x267199[_0xb688e(0x1ad)]),await _0x267199['DmVri'](sendInstrumentationEvent,_0x338d4a,_0x267199['Ydjkp'],messageTypes[_0xb688e(0x1df)],_0x267199[_0xb688e(0x1fa)],null,_0x338d4a),process[_0xb688e(0x1b8)](0x1));const _0x4a2e2=JSON['parse'](fs[_0xb688e(0x1d1)](_0x267199[_0xb688e(0x1e1)](getCredentialsPath)));let _0x36d3e1=_0xb688e(0x1db)+AG_API_URL+_0xb688e(0x1ae);_0x338d4a[_0xb688e(0x1c5)]&&(_0x36d3e1=_0xb688e(0x1db)+AG_API_URL+_0xb688e(0x1c1));const _0x3a9635={'method':_0x267199[_0xb688e(0x1bf)],'headers':_0x267199[_0xb688e(0x1f2)](getAuthHeader,_0x4a2e2[_0xb688e(0x1dc)][_0xb688e(0x1cf)],_0x4a2e2[_0xb688e(0x1dc)][_0xb688e(0x1d5)]),'throwHttpErrors':![]};global_registry[_0xb688e(0x1f8)]=_0x4a2e2[_0xb688e(0x1dc)][_0xb688e(0x1cf)],global_registry[_0xb688e(0x1b7)]=_0x4a2e2['Browserstack']['password'],_0x267199[_0xb688e(0x1e6)](sendInstrumentationEvent,_0x338d4a,_0x267199[_0xb688e(0x1cb)],messageTypes[_0xb688e(0x1d2)],null,null,_0x338d4a);const _0x266954=await _0x267199[_0xb688e(0x1f2)](got,_0x36d3e1,_0x3a9635);if(_0x267199[_0xb688e(0x1a8)](_0x266954,null)&&_0x267199['wRCFM'](_0x266954,undefined)&&_0x267199[_0xb688e(0x1cd)](_0x266954[_0xb688e(0x1be)],0xc8)){const _0x50ea42=JSON['parse'](_0x266954[_0xb688e(0x1a9)]);console[_0xb688e(0x1f4)](_0x267199['HQrEv']);const _0x598f6b=[];_0x598f6b[_0xb688e(0x1c3)]([_0x267199['Zdqfj'],_0x267199[_0xb688e(0x1c6)],_0x267199['GSOfe'],_0x267199[_0xb688e(0x1f3)],_0x267199[_0xb688e(0x1e7)],_0x267199[_0xb688e(0x1b5)]]),_0x50ea42[_0xb688e(0x1f9)](_0x23235a=>{const _0x460207=_0xb688e;_0x598f6b[_0x460207(0x1c3)]([_0x23235a['id'],_0x23235a[_0x460207(0x1c9)],_0x23235a[_0x460207(0x1e2)],_0x23235a[_0x460207(0x1da)],_0x23235a[_0x460207(0x1bd)],_0x23235a['clusterName']]);}),console[_0xb688e(0x1f4)](_0x267199[_0xb688e(0x1f7)](table,_0x598f6b)),process[_0xb688e(0x1b8)](0x0);}_0x267199['qUhzi'](_0x266954[_0xb688e(0x1be)],0x191)&&(console[_0xb688e(0x1ba)](_0x267199['eljTL']),await _0x267199[_0xb688e(0x1e4)](sendInstrumentationEvent,_0x338d4a,_0x267199[_0xb688e(0x1cb)],messageTypes[_0xb688e(0x1df)],_0x267199[_0xb688e(0x1a6)],null,_0x338d4a),process[_0xb688e(0x1b8)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0xb688e(0x1d3)](_0x266954)),await _0x267199[_0xb688e(0x1b3)](sendInstrumentationEvent,_0x338d4a,_0x267199[_0xb688e(0x1cb)],messageTypes[_0xb688e(0x1df)],_0x267199[_0xb688e(0x1ec)],_0x266954,_0x338d4a),process[_0xb688e(0x1b8)](0x1);}catch(_0xc3d10e){console['error'](_0xb688e(0x1ea)+_0xc3d10e['stack']),await _0x267199['xpEUH'](sendInstrumentationEvent,_0x338d4a,_0x267199[_0xb688e(0x1cb)],messageTypes[_0xb688e(0x1df)],_0x267199['jtkAJ'],_0xc3d10e,_0x338d4a),process[_0xb688e(0x1b8)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x4c1995=a16_0x20be;(function(_0x1542ea,_0x4a5076){const _0x7c2d1b=a16_0x20be,_0x4bba5b=_0x1542ea();while(!![]){try{const _0x2ec6ea=parseInt(_0x7c2d1b(0x84))/0x1+-parseInt(_0x7c2d1b(0x7c))/0x2+-parseInt(_0x7c2d1b(0x92))/0x3+-parseInt(_0x7c2d1b(0x81))/0x4*(-parseInt(_0x7c2d1b(0x89))/0x5)+parseInt(_0x7c2d1b(0x8f))/0x6*(parseInt(_0x7c2d1b(0x86))/0x7)+parseInt(_0x7c2d1b(0x7e))/0x8+parseInt(_0x7c2d1b(0x80))/0x9;if(_0x2ec6ea===_0x4a5076)break;else _0x4bba5b['push'](_0x4bba5b['shift']());}catch(_0xf3081f){_0x4bba5b['push'](_0x4bba5b['shift']());}}}(a16_0x3415,0x44778));function a16_0x20be(_0x33d84e,_0x464fde){const _0x3415c0=a16_0x3415();return a16_0x20be=function(_0x20be47,_0x1f34bc){_0x20be47=_0x20be47-0x7c;let _0x2943fb=_0x3415c0[_0x20be47];return _0x2943fb;},a16_0x20be(_0x33d84e,_0x464fde);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x3415(){const _0x23ea43=['demandCommand','epilogue','commandDir','handler','pre-check','1362okjFHQ','FsSRW','ybDtL','1204986jASvgY','strict','recommendCommands','1083650zPxNju','command','2373032HGaUOb','precheck_commands','1112103bURNJj','4hBTobQ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','402843OXpsnm','usage','5194utxDKJ','builder','pre_check','1162270HogOVh'];a16_0x3415=function(){return _0x23ea43;};return a16_0x3415();}exports[a16_0x4c1995(0x7d)]=a16_0x4c1995(0x8e),exports['desc']=a16_0x4c1995(0x82),exports[a16_0x4c1995(0x87)]=function(_0x594e34){const _0x5db112=a16_0x4c1995,_0x23f521={};_0x23f521[_0x5db112(0x91)]=_0x5db112(0x7f),_0x23f521[_0x5db112(0x90)]=_0x5db112(0x83);const _0x4110a9=_0x23f521;return _0x594e34[_0x5db112(0x85)](HELP_HEADER_MESSAGE[_0x5db112(0x88)])[_0x5db112(0x8b)](HELP_FOOTER_MESSAGE)[_0x5db112(0x8c)](_0x4110a9[_0x5db112(0x91)])[_0x5db112(0x8a)]()[_0x5db112(0x94)]()[_0x5db112(0x93)]()[_0x5db112(0x83)](_0x4110a9[_0x5db112(0x90)]);},exports[a16_0x4c1995(0x8d)]=function(_0x1c3d2b){};
1
+ const a16_0x12eeb7=a16_0x2b8b;(function(_0x36edbf,_0x1ffc28){const _0x10c0b4=a16_0x2b8b,_0x55005f=_0x36edbf();while(!![]){try{const _0x8cd3e4=parseInt(_0x10c0b4(0x1ec))/0x1+parseInt(_0x10c0b4(0x1f0))/0x2*(parseInt(_0x10c0b4(0x1eb))/0x3)+parseInt(_0x10c0b4(0x1f2))/0x4+-parseInt(_0x10c0b4(0x1e7))/0x5+parseInt(_0x10c0b4(0x1df))/0x6+-parseInt(_0x10c0b4(0x1dc))/0x7*(-parseInt(_0x10c0b4(0x1f1))/0x8)+-parseInt(_0x10c0b4(0x1e8))/0x9;if(_0x8cd3e4===_0x1ffc28)break;else _0x55005f['push'](_0x55005f['shift']());}catch(_0x52f62e){_0x55005f['push'](_0x55005f['shift']());}}}(a16_0x1ac5,0x2808e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x2b8b(_0x12a869,_0x5135f5){const _0x1ac559=a16_0x1ac5();return a16_0x2b8b=function(_0x2b8b35,_0x1b7f77){_0x2b8b35=_0x2b8b35-0x1dc;let _0x90b3a4=_0x1ac559[_0x2b8b35];return _0x90b3a4;},a16_0x2b8b(_0x12a869,_0x5135f5);}function a16_0x1ac5(){const _0x2f5575=['7STuWiU','desc','pre-check','1668228FnojrN','precheck_commands','strict','help','demandCommand','QhoVt','handler','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1034185wfwLUz','4230630KjckrI','recommendCommands','epilogue','6eTqeKz','206607DGLkMP','commandDir','usage','builder','12572ENVyPL','2320944bTuKxO','214216uUdnoO','yimtn'];a16_0x1ac5=function(){return _0x2f5575;};return a16_0x1ac5();}exports['command']=a16_0x12eeb7(0x1de),exports[a16_0x12eeb7(0x1dd)]=a16_0x12eeb7(0x1e6),exports[a16_0x12eeb7(0x1ef)]=function(_0x12fffc){const _0x4edf34=a16_0x12eeb7,_0x1a3ead={};_0x1a3ead[_0x4edf34(0x1f3)]=_0x4edf34(0x1e0),_0x1a3ead[_0x4edf34(0x1e4)]=_0x4edf34(0x1e2);const _0x3a190d=_0x1a3ead;return _0x12fffc[_0x4edf34(0x1ee)](HELP_HEADER_MESSAGE['pre_check'])[_0x4edf34(0x1ea)](HELP_FOOTER_MESSAGE)[_0x4edf34(0x1ed)](_0x3a190d[_0x4edf34(0x1f3)])[_0x4edf34(0x1e3)]()[_0x4edf34(0x1e9)]()[_0x4edf34(0x1e1)]()[_0x4edf34(0x1e2)](_0x3a190d[_0x4edf34(0x1e4)]);},exports[a16_0x12eeb7(0x1e5)]=function(_0x2c5d7a){};
@@ -1 +1 @@
1
- const a17_0x3b23b4=a17_0x4f2e;(function(_0x5cc7a4,_0x4d1503){const _0x1c72ba=a17_0x4f2e,_0x1413d4=_0x5cc7a4();while(!![]){try{const _0x2dd175=parseInt(_0x1c72ba(0x237))/0x1+-parseInt(_0x1c72ba(0x207))/0x2+-parseInt(_0x1c72ba(0x2aa))/0x3*(parseInt(_0x1c72ba(0x1cc))/0x4)+parseInt(_0x1c72ba(0x1dc))/0x5*(parseInt(_0x1c72ba(0x247))/0x6)+parseInt(_0x1c72ba(0x1ce))/0x7*(-parseInt(_0x1c72ba(0x1f6))/0x8)+-parseInt(_0x1c72ba(0x26b))/0x9*(-parseInt(_0x1c72ba(0x20a))/0xa)+parseInt(_0x1c72ba(0x22a))/0xb;if(_0x2dd175===_0x4d1503)break;else _0x1413d4['push'](_0x1413d4['shift']());}catch(_0x1998ed){_0x1413d4['push'](_0x1413d4['shift']());}}}(a17_0x5a37,0x246c0));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3b23b4(0x2ac)),{v4:uuidv4}=require(a17_0x3b23b4(0x262)),ReconnectingWebSocket=require(a17_0x3b23b4(0x212)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x3b23b4(0x1c8)),{logger}=require(a17_0x3b23b4(0x1b5)),{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_0x3b23b4(0x1f9)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x3b23b4(0x238)),{sendInstrumentationEvent}=require(a17_0x3b23b4(0x1b2));function a17_0x5a37(){const _0x245faf=['Yqqhy','UqqBU','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','FaxkM','N/A','YypAh','cedbw','/packages/cli/get-all-grid-profiles','\x20region\x20-\x20','DoUSf','PCcLr','MEsdo','1644bAIKLU','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','IDULv','message','dozFS','OXSEe','WebSocket','===\x20Precheck\x20Report\x20-\x20','oEaLW','npHta','FGyrY','readFileSync','ELoVu','raQGU','ZLLlc','Whitelisted\x20browserstack','<UsernamePlaceholder>','User\x20Access','ditbQ','Missing\x20required\x20arguments:\x20','Failure','iEEBC','jquqf','grid','forEach','ETTjo','lzMNE','uuid','status','getUTCMinutes','help','epilogue','`\x20,error\x20:\x20','aRFsr','wjBhA','ROsGz','31446YCfULg','stringify','odXMq','pSTXw','LOG','stack\x20trace\x20','cloudProvider','authHeader','zxJfJ','description','VWQWe','grid\x20profile\x20flow\x20','FHwTG','buZya','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','oPDNK','KorlP','\x20\x20Message:\x20','JSKhF','tOUyW','join','accessResp','MxsFN','VMpwJ','gkGEn','wmEws','dNYDs','exit','WXcIA','push','DrKNg','.txt','tztQl','AQeMt','getUTCHours','code','Browserstack','getUTCFullYear','command','nrbaf','AHkQn','qLHZz','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region',']\x20status\x20:\x20','BCKEZ','connectionTimeout','UdEih','xCQor','header','qxzZP','XeNKN','hBxlo','IcSKc','\x20data\x20:\x20','WOZLs','bstackUsername','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','options','Message:\x20','oXTBX','bTUao','Opfrh','headers','6iUDoXH','jovYx','got','SQGlS','\x20===\x0a\x0a','CXjMw','debug','gylTh','pSWLG','KYytK','tDAzA','includes','../../utils/instrumentationUtils','clusterRegion','Report\x20saved\x20in\x20','../../config/logger','response','`\x20already\x20exists','body','bstackAccesskey','ivzdH','grid-profile','IaeYC','credential-not-found','unable\x20to\x20verify\x20if\x20cluster\x20`','usage','jVxfZ','init','GET','Setting\x20cloud\x20provider\x20as\x20','\x20error\x20:\x20','length','ERROR','ZQsHV','../../utils/utilityMethods','YFaLs','IowOS','msZEz','506392wYFztf','vlnPk','1112237KnwjKb','TLSv1_2_client_method','delay','cloud-provider','QDBdu','\x20\x20Stack:\x20','LXdpJ','Invalid\x20input.\x20grid\x20profiles:\x20','Status:\x20','gLFKd','cluster-name','ukNaj','bQscv','pre-check-failed','2050QoFmGm','is\x20already\x20present','string','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','tpmel','toLowerCase','oJxjX','pre_check','type','ozNBA','cloud-provider-not-supported','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','Success','gridProfile','eEvNb','rQpnj','replace','split','mlsza','hGDDq','FCRPN','IdJYj','JrMDz','wJQrl','handler','error\x20stack\x20:\x20','8tQATkI','thycr','isCliToolInstalled','../../config/constants','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x20\x20Code:\x20','ySQOW','Grid\x20profile\x20fetched\x20for\x20pre-check','dXwky','getUTCDate','ZIvxH','getUTCMonth','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WIjPj','SSL\x20Configured','iJqen','468652VeahEY','password','JMynb','340DjCJDF','utf-8','VEVXT','Cluster\x20`','parse','region','XTfSt','yXzPS','reconnecting-websocket','KwqWM','stack','Error\x20Details:\x0a','ZWWER','BaNOs','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','2|4|3|1|0','method','Cluster\x20','CLOUD_PROVIDER','Pre-check\x20running\x20for\x20Cloud\x20-\x20','tLkPP','clusterName','name','YqVNl','vARYS','twzBv','toolInstalledResp','vYPSk','data','checkAccess','Failed\x20in\x20pre-check!\x20Error:\x20','sendEventToBackend','4142281ofVPOd','pre-check','isvIy','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','isClusterPresent','nylzK','rTxav','fymVV','error','LivPY','info','YeOSd','will\x20be\x20created','187890ZGoRrV','../../utils/webSocketUtils','log/report_','isTls1_2_SUPPORTED'];a17_0x5a37=function(){return _0x245faf;};return a17_0x5a37();}exports[a17_0x3b23b4(0x291)]=a17_0x3b23b4(0x25e),exports[a17_0x3b23b4(0x1fa)]=a17_0x3b23b4(0x279),exports['builder']=function(_0x46bfbb){const _0x31be11=a17_0x3b23b4,_0x942fc={};_0x942fc['dozFS']=_0x31be11(0x23d),_0x942fc['wJQrl']=_0x31be11(0x1de),_0x942fc[_0x31be11(0x26d)]=_0x31be11(0x2a3),_0x942fc[_0x31be11(0x28c)]=_0x31be11(0x248),_0x942fc[_0x31be11(0x2af)]=_0x31be11(0x203),_0x942fc[_0x31be11(0x246)]=_0x31be11(0x265);const _0x282ea2=_0x942fc,_0x1d3849={};_0x1d3849[_0x31be11(0x274)]=_0x282ea2[_0x31be11(0x24b)],_0x1d3849[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x5b6bb9={};_0x5b6bb9['description']=_0x282ea2[_0x31be11(0x26d)],_0x5b6bb9[_0x31be11(0x1e4)]=_0x282ea2['wJQrl'];const _0x3e0f4a={};_0x3e0f4a[_0x31be11(0x274)]=_0x282ea2['AQeMt'],_0x3e0f4a[_0x31be11(0x1e4)]=_0x282ea2[_0x31be11(0x1f3)];const _0x1091f7={};_0x1091f7[_0x31be11(0x274)]=_0x282ea2['CXjMw'],_0x1091f7['type']=_0x282ea2[_0x31be11(0x1f3)];const _0x36eb4f={};return _0x36eb4f[_0x31be11(0x1d8)]=_0x1d3849,_0x36eb4f[_0x31be11(0x1d1)]=_0x5b6bb9,_0x36eb4f[_0x31be11(0x20f)]=_0x3e0f4a,_0x36eb4f[_0x31be11(0x1bb)]=_0x1091f7,_0x46bfbb[_0x31be11(0x1bf)](HELP_HEADER_MESSAGE[_0x31be11(0x1e3)])[_0x31be11(0x266)](HELP_FOOTER_MESSAGE)[_0x31be11(0x2a4)](_0x36eb4f)[_0x31be11(0x265)](_0x282ea2[_0x31be11(0x246)])['argv'];};async function inputValidation(_0x5c791e,_0x5aebcf){const _0x1556ce=a17_0x3b23b4,_0x4c8df1={'ROsGz':_0x1556ce(0x232),'Ugqrz':_0x1556ce(0x23d),'zxJfJ':'string','oPDNK':_0x1556ce(0x2a3),'UqqBU':_0x1556ce(0x248),'DoUSf':_0x1556ce(0x203),'NBDCq':_0x1556ce(0x265),'IaeYC':_0x1556ce(0x1d8),'VMpwJ':_0x1556ce(0x295),'YqVNl':function(_0x2a0e8d,_0x4b21b6){return _0x2a0e8d+_0x4b21b6;},'twzBv':_0x1556ce(0x1e8),'aQKVB':_0x1556ce(0x25b),'msZEz':function(_0x465296,_0x2ce77d){return _0x465296||_0x2ce77d;},'bQscv':'N/A','IcSKc':_0x1556ce(0x215),'itnRN':_0x1556ce(0x1dd),'dNYDs':_0x1556ce(0x236),'jquqf':_0x1556ce(0x1d1),'aRFsr':function(_0x34ee35,_0x58126e){return _0x34ee35!==_0x58126e;},'JikjW':_0x1556ce(0x1f7),'UvXQb':_0x1556ce(0x209),'dXwky':function(_0x56479b,_0x52a6c8){return _0x56479b===_0x52a6c8;},'vARYS':'Uemab','KYytK':function(_0x389fbb,_0x24e735){return _0x389fbb!==_0x24e735;},'tpmel':_0x1556ce(0x261),'wjBhA':_0x1556ce(0x22f),'wmEws':_0x1556ce(0x29c),'YeOSd':_0x1556ce(0x297),'ksGVY':_0x1556ce(0x23b),'riDmp':_0x1556ce(0x253),'ZWWER':_0x1556ce(0x20f),'ukNaj':function(_0x5b4955,_0x208f12){return _0x5b4955>_0x208f12;},'ditbQ':_0x1556ce(0x275),'WXcIA':_0x1556ce(0x245),'WOZLs':function(_0x12f49e,_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020){return _0x12f49e(_0x47d729,_0x2aa527,_0x1d5126,_0x2fee33,_0x47e424,_0x445cd8,_0x5b6020);},'FHwTG':'pre-check-grid-called','FCRPN':'pre-check-cluster-args-not-passed','xzGOJ':function(_0x5ed734,_0x6a2f2f){return _0x5ed734!==_0x6a2f2f;},'KorlP':_0x1556ce(0x2b4),'ZIvxH':_0x1556ce(0x22d),'pNDLo':_0x1556ce(0x1e6),'ivzdH':function(_0x573bbd,_0x168946){return _0x573bbd!==_0x168946;},'UdEih':'nfXXy','eEvNb':function(_0x17308f,_0x2eeae0){return _0x17308f===_0x2eeae0;},'lkKYF':_0x1556ce(0x23e),'iEEBC':_0x1556ce(0x24f),'oXTBX':_0x1556ce(0x1c2),'AHkQn':function(_0x37f311,_0x27ecfc,_0x3c7ebe){return _0x37f311(_0x27ecfc,_0x3c7ebe);},'OXSEe':function(_0x9ff1f1,_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb){return _0x9ff1f1(_0x7659eb,_0x4f6ffe,_0x49a80a,_0x54db22,_0x7abacb);},'jovYx':_0x1556ce(0x22b),'KpYLp':_0x1556ce(0x1bb),'elfmu':_0x1556ce(0x254),'ZQWJc':function(_0x949141,_0x5bb083){return _0x949141(_0x5bb083);},'hGDDq':function(_0x4fd96e,_0xa45690){return _0x4fd96e!==_0xa45690;},'vYPSk':_0x1556ce(0x231),'JSKhF':'pre-check-grid-profile-empty','WIjPj':'Jvajr','ZLLlc':'QVnGK','qLHZz':_0x1556ce(0x28b),'bTUao':_0x1556ce(0x1fe),'KwqWM':_0x1556ce(0x1eb),'YFaLs':_0x1556ce(0x21e),'ETTjo':function(_0x777856,_0x2ba190){return _0x777856===_0x2ba190;},'isvIy':_0x1556ce(0x210)};let _0x11e858;try{if(_0x4c8df1[_0x1556ce(0x268)](_0x4c8df1['JikjW'],_0x4c8df1['UvXQb'])){if(_0x5c791e['clusterName']||_0x5c791e[_0x1556ce(0x271)]||_0x5c791e[_0x1556ce(0x20f)]){if(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1[_0x1556ce(0x222)],_0x4c8df1[_0x1556ce(0x222)])){const _0xaa35b8=[];!_0x5c791e[_0x1556ce(0x21f)]&&(_0x4c8df1['KYytK'](_0x4c8df1[_0x1556ce(0x1e0)],_0x4c8df1[_0x1556ce(0x269)])?_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):_0x4d64f3['info'](_0x1556ce(0x20d)+_0x573a20[_0x1556ce(0x21f)]+_0x1556ce(0x1b7)));;if(!_0x5c791e['cloudProvider']){if(_0x4c8df1['dXwky'](_0x4c8df1[_0x1556ce(0x284)],_0x4c8df1[_0x1556ce(0x235)])){const _0x18ca36={};_0x18ca36[_0x1556ce(0x1e4)]=_0x51cf20[_0x1556ce(0x26f)],_0x18ca36[_0x1556ce(0x24a)]=_0x3bc148,_0x25f7a9[_0x1556ce(0x229)](_0x414166,_0x18ca36,_0x4c8df1[_0x1556ce(0x26a)],!![]);}else _0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x25d)]);};!_0x5c791e[_0x1556ce(0x20f)]&&(_0x4c8df1[_0x1556ce(0x1ff)](_0x4c8df1['ksGVY'],_0x4c8df1['riDmp'])?(_0x2aff6e[_0x1556ce(0x234)](_0x1556ce(0x1c3)+_0x343376['CLOUD_PROVIDER']+'\x20'),_0x507fe5['cloudProvider']=_0x582c2b[_0x1556ce(0x21c)]):_0xaa35b8[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x216)]));;if(_0x4c8df1[_0x1556ce(0x1d9)](_0xaa35b8[_0x1556ce(0x1c5)],0x0)){if(_0x4c8df1[_0x1556ce(0x2b3)](_0x4c8df1[_0x1556ce(0x259)],_0x4c8df1[_0x1556ce(0x287)]))_0x11e858=_0x1556ce(0x25a)+_0xaa35b8[_0x1556ce(0x27f)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x1f0)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1);else{const _0x8b7acb={};_0x8b7acb[_0x1556ce(0x274)]=_0x4c8df1['Ugqrz'],_0x8b7acb[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x5d21f5={};_0x5d21f5[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x27a)],_0x5d21f5[_0x1556ce(0x1e4)]=_0x4c8df1[_0x1556ce(0x273)];const _0x3517ed={};_0x3517ed[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x23c)],_0x3517ed[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0x19c15d={};_0x19c15d[_0x1556ce(0x274)]=_0x4c8df1[_0x1556ce(0x244)],_0x19c15d[_0x1556ce(0x1e4)]=_0x4c8df1['zxJfJ'];const _0xf5b738={};return _0xf5b738[_0x1556ce(0x1d8)]=_0x8b7acb,_0xf5b738[_0x1556ce(0x1d1)]=_0x5d21f5,_0xf5b738[_0x1556ce(0x20f)]=_0x3517ed,_0xf5b738[_0x1556ce(0x1bb)]=_0x19c15d,_0x3c246e[_0x1556ce(0x1bf)](_0x11e770['pre_check'])[_0x1556ce(0x266)](_0x1163df)[_0x1556ce(0x2a4)](_0xf5b738)['help'](_0x4c8df1['NBDCq'])['argv'];}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1556ce(0x1b1)](_0x5c791e[_0x1556ce(0x271)][_0x1556ce(0x1e1)]())&&(_0x4c8df1['xzGOJ'](_0x4c8df1[_0x1556ce(0x27b)],_0x4c8df1[_0x1556ce(0x27b)])?_0x202fb5[_0x1556ce(0x288)](_0x4c8df1[_0x1556ce(0x1bc)]):(_0x11e858=_0x4c8df1[_0x1556ce(0x201)],await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),!_0x5c791e[_0x1556ce(0x271)]&&(_0x4c8df1['ivzdH'](_0x4c8df1[_0x1556ce(0x299)],_0x4c8df1[_0x1556ce(0x299)])?_0x1472e9[_0x1556ce(0x232)](_0x1556ce(0x1f5)+_0x45e7bd[_0x1556ce(0x232)]['stack']):(logger[_0x1556ce(0x234)](_0x1556ce(0x1c3)+DEFAULT_CLUSTER_DETAILS[_0x1556ce(0x21c)]+'\x20'),_0x5c791e[_0x1556ce(0x271)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x1556ce(0x21f)]=_0x5c791e['clusterName'],global_registry[_0x1556ce(0x271)]=_0x5c791e[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x5c791e['region'];}else _0x1ebae2['info']('['+_0x9eba50+']\x20status\x20:\x20'+_0x2e1b62[_0x1556ce(0x263)]+_0x1556ce(0x2a0)+_0x89e54d[_0x1556ce(0x226)]+'\x20error\x20:\x20'+_0x5adc42['error']),_0x54ce21[_0x1556ce(0x232)]&&_0x1858c9[_0x1556ce(0x232)]('error\x20stack\x20:\x20'+_0x57294d[_0x1556ce(0x232)][_0x1556ce(0x214)]);}else{if(_0x5c791e['gridProfile']){if(_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1['lkKYF'],_0x4c8df1[_0x1556ce(0x25c)]))_0x4b7aab[_0x1556ce(0x232)](_0x4c8df1[_0x1556ce(0x282)]),_0x3502a5[_0x1556ce(0x286)](0x1);else{global_registry[_0x1556ce(0x1e9)]=_0x5c791e[_0x1556ce(0x1e9)],logger[_0x1556ce(0x2b0)](_0x1556ce(0x276)+_0x5c791e[_0x1556ce(0x1e9)]);const _0x2112d7='https://'+AG_API_URL+_0x1556ce(0x242),_0x35ea78={};_0x35ea78[_0x1556ce(0x21a)]=_0x4c8df1[_0x1556ce(0x2a6)],_0x35ea78[_0x1556ce(0x2a9)]=global_registry['authHeader'],_0x35ea78['throwHttpErrors']=![];const _0x1f6b0e=_0x35ea78,_0x2d1def=await _0x4c8df1[_0x1556ce(0x293)](got,_0x2112d7,_0x1f6b0e),_0x61d6cf=await _0x4c8df1[_0x1556ce(0x24c)](responseValidation,_0x2d1def,_0x4c8df1[_0x1556ce(0x2ab)],_0x4c8df1['KpYLp'],_0x5c791e,_0x5aebcf);let _0x46b3ea={};if(_0x4c8df1[_0x1556ce(0x1ea)](_0x61d6cf,0xc8)){if(_0x4c8df1[_0x1556ce(0x1ba)](_0x4c8df1['elfmu'],_0x4c8df1['elfmu'])){const {header:_0x40111c,response:_0x5087db}=_0x1b5130,{status:_0x357d5f,data:_0x53a1ed,error:_0x2e407c}=_0x5087db;_0xf00a70+=_0x40111c+'\x20#'+_0x4c8df1[_0x1556ce(0x221)](_0x737f63,0x1)+'\x0a',_0x38c65d+=_0x1556ce(0x1d6)+(_0x357d5f?_0x4c8df1[_0x1556ce(0x223)]:_0x4c8df1['aQKVB'])+'\x0a',_0x52eeb5+=_0x1556ce(0x2a5)+_0x4c8df1[_0x1556ce(0x1cb)](_0x53a1ed,_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x2e407c&&(_0x426533+=_0x4c8df1[_0x1556ce(0x29f)],_0x18e08b+=_0x1556ce(0x27c)+(_0x2e407c[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0xfe6d6d+=_0x1556ce(0x1fc)+(_0x2e407c[_0x1556ce(0x28e)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x10a204+=_0x1556ce(0x1d3)+(_0x2e407c['stack']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a'),_0xfe2560+='\x0a\x0a';}else{const _0x46bfc8=JSON[_0x1556ce(0x20e)](_0x2d1def[_0x1556ce(0x1b8)]),_0x5d3e61=_0x46bfc8['find'](_0x59bb50=>_0x59bb50[_0x1556ce(0x220)]===_0x5c791e[_0x1556ce(0x1e9)])||null;_0x4c8df1['ZQWJc'](isUndefined,_0x5d3e61)?_0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1['vYPSk'],_0x4c8df1[_0x1556ce(0x225)])?_0x361e43+=_0x1556ce(0x21b)+_0x52d505[_0x1556ce(0x21f)]+'\x20'+(_0x5796b9?_0x4c8df1['itnRN']:_0x4c8df1[_0x1556ce(0x285)])+'\x0a\x0a':(_0x11e858=_0x1556ce(0x1d5)+_0x5c791e[_0x1556ce(0x1e9)]+_0x1556ce(0x1e7),await _0x4c8df1[_0x1556ce(0x2a1)](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1[_0x1556ce(0x27d)],_0x4c8df1['ROsGz']),logger[_0x1556ce(0x232)](_0x11e858),process[_0x1556ce(0x286)](0x1)):_0x4c8df1[_0x1556ce(0x1ea)](_0x4c8df1[_0x1556ce(0x204)],_0x4c8df1[_0x1556ce(0x255)])?_0x29dfdb+=_0x1556ce(0x21b)+_0x2262c2[_0x1556ce(0x21f)]+_0x1556ce(0x1df):_0x46b3ea=_0x5d3e61;}}else _0x4c8df1[_0x1556ce(0x1ef)](_0x4c8df1[_0x1556ce(0x294)],_0x4c8df1[_0x1556ce(0x294)])?(_0x26f256+=_0x4c8df1[_0x1556ce(0x29f)],_0x2fb7d7+=_0x1556ce(0x27c)+(_0x42786b[_0x1556ce(0x24a)]||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x5b6d52+=_0x1556ce(0x1fc)+(_0x24e16b['code']||_0x4c8df1[_0x1556ce(0x1da)])+'\x0a',_0x17f2d8+=_0x1556ce(0x1d3)+(_0x5378cd[_0x1556ce(0x214)]||_0x4c8df1['bQscv'])+'\x0a'):process[_0x1556ce(0x286)](0x1);const _0x1da674={};_0x1da674[_0x1556ce(0x1e4)]=WS_EVENTS[_0x1556ce(0x26f)],_0x1da674[_0x1556ce(0x24a)]=_0x4c8df1[_0x1556ce(0x2a7)],webSocketUtils[_0x1556ce(0x229)](_0x5aebcf,_0x1da674),global_registry[_0x1556ce(0x271)]=_0x46b3ea[_0x1556ce(0x271)],global_registry[_0x1556ce(0x1b3)]=_0x46b3ea[_0x1556ce(0x20f)],global_registry[_0x1556ce(0x21f)]=_0x46b3ea[_0x1556ce(0x21f)];}}else _0x4c8df1['hGDDq'](_0x4c8df1[_0x1556ce(0x213)],_0x4c8df1[_0x1556ce(0x1c9)])?(logger[_0x1556ce(0x232)](_0x4c8df1['VMpwJ']),process['exit'](0x1)):_0x10ad27=_0x1c4d6b;}}else _0x4b3146[_0x1556ce(0x286)](0x1);}catch(_0x3f4633){_0x4c8df1[_0x1556ce(0x260)](_0x4c8df1[_0x1556ce(0x22c)],_0x4c8df1[_0x1556ce(0x22c)])?(_0x11e858=_0x1556ce(0x218)+_0x3f4633+':\x20'+_0x3f4633[_0x1556ce(0x214)],logger[_0x1556ce(0x232)](_0x11e858),await _0x4c8df1['WOZLs'](reportToGalactusAndSendToEDS,_0x5c791e,_0x5aebcf,_0x11e858,messageTypes[_0x1556ce(0x1c6)],_0x4c8df1[_0x1556ce(0x277)],_0x4c8df1['pNDLo'],_0x4c8df1['ROsGz']),process[_0x1556ce(0x286)](0x1)):_0x354fe0[_0x1556ce(0x288)](_0x4c8df1['jquqf']);}}function printResponse(_0x5db037,_0x3cd99f){const _0xa51358=a17_0x3b23b4,_0x5bcf14={};_0x5bcf14[_0xa51358(0x1e2)]=_0xa51358(0x20f),_0x5bcf14[_0xa51358(0x1c7)]=function(_0x32d8e3,_0x5f1334){return _0x32d8e3===_0x5f1334;},_0x5bcf14[_0xa51358(0x27e)]='tRiuG',_0x5bcf14[_0xa51358(0x1e5)]=_0xa51358(0x26e);const _0x32ca75=_0x5bcf14;logger[_0xa51358(0x234)]('['+_0x5db037+_0xa51358(0x296)+_0x3cd99f[_0xa51358(0x263)]+_0xa51358(0x2a0)+_0x3cd99f[_0xa51358(0x226)]+_0xa51358(0x1c4)+_0x3cd99f['error']),_0x3cd99f[_0xa51358(0x232)]&&(_0x32ca75['ZQsHV'](_0x32ca75[_0xa51358(0x27e)],_0x32ca75['ozNBA'])?_0x34d312['push'](_0x32ca75[_0xa51358(0x1e2)]):logger[_0xa51358(0x232)]('error\x20stack\x20:\x20'+_0x3cd99f[_0xa51358(0x232)][_0xa51358(0x214)]));}function a17_0x4f2e(_0x240957,_0x26979c){const _0x5a37a9=a17_0x5a37();return a17_0x4f2e=function(_0x4f2e09,_0x4cb122){_0x4f2e09=_0x4f2e09-0x1b1;let _0x357962=_0x5a37a9[_0x4f2e09];return _0x357962;},a17_0x4f2e(_0x240957,_0x26979c);}async function generateReport(_0x4ed127,_0x17c68d){const _0x2b7e67=a17_0x3b23b4,_0x28aa2a={'PfLYK':function(_0x41c4bf,_0x2ed62e){return _0x41c4bf+_0x2ed62e;},'iydNY':'Success','mlsza':_0x2b7e67(0x25b),'buZya':function(_0x167aae,_0x45c867){return _0x167aae||_0x45c867;},'YypAh':_0x2b7e67(0x23f),'gylTh':_0x2b7e67(0x215),'iJqen':'Cluster\x20details\x0a-----------------------\x0a','FGyrY':function(_0x412d87,_0x46f33e){return _0x412d87!=_0x46f33e;},'IDULv':_0x2b7e67(0x1dd),'yXzPS':_0x2b7e67(0x236),'pygnY':function(_0x5a74e4){return _0x5a74e4();}};let _0x1ce5a3=_0x2b7e67(0x24e)+global_registry['cloudProvider']+_0x2b7e67(0x2ae);return _0x4ed127[_0x2b7e67(0x25f)]((_0x1401e7,_0xa7ed1)=>{const _0x5a4093=_0x2b7e67,{header:_0x33903d,response:_0xe0fb3c}=_0x1401e7,{status:_0x3c8449,data:_0x1b8642,error:_0x2dfe89}=_0xe0fb3c;_0x1ce5a3+=_0x33903d+'\x20#'+_0x28aa2a['PfLYK'](_0xa7ed1,0x1)+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d6)+(_0x3c8449?_0x28aa2a['iydNY']:_0x28aa2a[_0x5a4093(0x1ee)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x2a5)+_0x28aa2a[_0x5a4093(0x278)](_0x1b8642,_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x2dfe89&&(_0x1ce5a3+=_0x28aa2a[_0x5a4093(0x2b1)],_0x1ce5a3+=_0x5a4093(0x27c)+(_0x2dfe89[_0x5a4093(0x24a)]||_0x28aa2a['YypAh'])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1fc)+(_0x2dfe89[_0x5a4093(0x28e)]||_0x28aa2a[_0x5a4093(0x240)])+'\x0a',_0x1ce5a3+=_0x5a4093(0x1d3)+(_0x2dfe89[_0x5a4093(0x214)]||_0x28aa2a['YypAh'])+'\x0a'),_0x1ce5a3+='\x0a\x0a';}),_0x1ce5a3+=_0x28aa2a[_0x2b7e67(0x206)],_0x28aa2a[_0x2b7e67(0x251)](_0x17c68d,null)?_0x1ce5a3+='Cluster\x20'+global_registry[_0x2b7e67(0x21f)]+'\x20'+(_0x17c68d?_0x28aa2a[_0x2b7e67(0x249)]:_0x28aa2a[_0x2b7e67(0x211)])+'\x0a\x0a':_0x1ce5a3+=_0x2b7e67(0x21b)+global_registry[_0x2b7e67(0x21f)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x1ce5a3+=_0x28aa2a['pygnY'](getSystemMetaData),_0x1ce5a3;};exports[a17_0x3b23b4(0x1f4)]=async function(_0x50bbec){const _0x38e0d8=a17_0x3b23b4,_0x405bcc={'LXdpJ':function(_0x3e8de4){return _0x3e8de4();},'pzDof':function(_0x2c999c){return _0x2c999c();},'VEVXT':_0x38e0d8(0x1fb),'nrbaf':function(_0x16c0ce,_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270){return _0x16c0ce(_0x6f986f,_0x278caa,_0x2d30c5,_0x4a2ab0,_0x2ebb1f,_0x290381,_0x57b270);},'gLFKd':'pre-check-grid-called','jVxfZ':_0x38e0d8(0x1bd),'rTxav':_0x38e0d8(0x232),'npHta':function(_0x5024d9,_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85){return _0x5024d9(_0x3456bd,_0xf9e615,_0x48aa65,_0x3c18f0,_0x3918cb,_0x53ae85);},'gkGEn':_0x38e0d8(0x257),'ySQOW':'<PasswordPlaceholder>','MxsFN':function(_0x3ec305,_0xdc097f,_0x19401c){return _0x3ec305(_0xdc097f,_0x19401c);},'vESCO':function(_0x18845a,_0x2d904b,_0x3ea541){return _0x18845a(_0x2d904b,_0x3ea541);},'hBxlo':function(_0x4e40c2,_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b){return _0x4e40c2(_0x5dfd98,_0x45f9b0,_0x1d1248,_0xfbdfe,_0x53003a,_0x3b200b);},'cedbw':'dummy-grid','wwSvv':function(_0x3586c5,_0x4cebdf,_0x20661b){return _0x3586c5(_0x4cebdf,_0x20661b);},'BaNOs':_0x38e0d8(0x224),'LivPY':_0x38e0d8(0x219),'xCQor':function(_0x20c007,_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818){return _0x20c007(_0x263189,_0x53ae62,_0x3fc9e5,_0x10d43d,_0x1b4697,_0x562d0f,_0x41b818);},'Opfrh':_0x38e0d8(0x280),'pSWLG':function(_0x557d00){return _0x557d00();},'SQGlS':function(_0x314b21,_0xdd5775,_0x14b665){return _0x314b21(_0xdd5775,_0x14b665);},'ikvdt':'isTrialGridAccessible','ETySx':function(_0x2ce930,_0x4a2bce){return _0x2ce930(_0x4a2bce);},'QDBdu':_0x38e0d8(0x1cf),'IowOS':function(_0x3a0f28,_0x455a10,_0x5f31cd){return _0x3a0f28(_0x455a10,_0x5f31cd);},'zMUOb':_0x38e0d8(0x23a),'JrMDz':'Tool\x20Installed','DrKNg':_0x38e0d8(0x258),'yLXBm':_0x38e0d8(0x256),'vlnPk':_0x38e0d8(0x205),'XeNKN':function(_0x3eb2ea,_0x244372,_0x3287df){return _0x3eb2ea(_0x244372,_0x3287df);},'AefdU':function(_0x171867,_0x485ab4){return _0x171867+_0x485ab4;},'MgAGI':_0x38e0d8(0x20b),'IdJYj':function(_0x2f905f,_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12){return _0x2f905f(_0x27ce11,_0x7fd545,_0x434434,_0x2402b3,_0x526aba,_0x41db12);},'gXJaK':_0x38e0d8(0x1db)};let _0x118434,_0x396019;try{global_registry['requestId']=_0x405bcc[_0x38e0d8(0x1d4)](uuidv4);!fs['existsSync'](_0x405bcc['pzDof'](getCredentialsPath))&&(_0x396019=_0x405bcc[_0x38e0d8(0x20c)],logger[_0x38e0d8(0x232)](_0x396019),await _0x405bcc[_0x38e0d8(0x292)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],_0x405bcc[_0x38e0d8(0x1c0)],_0x405bcc['rTxav']),process[_0x38e0d8(0x286)](0x1));_0x405bcc[_0x38e0d8(0x250)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes['INFO'],null,null,_0x50bbec);const _0x104fa6=JSON[_0x38e0d8(0x20e)](fs[_0x38e0d8(0x252)](_0x405bcc['LXdpJ'](getCredentialsPath)));global_registry[_0x38e0d8(0x2a2)]=_0x104fa6['Browserstack']['username'],global_registry['bstackAccesskey']=_0x104fa6[_0x38e0d8(0x28f)]['password'];const _0x560874=WS_ENDPOINT['replace'](_0x405bcc[_0x38e0d8(0x283)],_0x104fa6[_0x38e0d8(0x28f)]['username'])[_0x38e0d8(0x1ec)](_0x405bcc[_0x38e0d8(0x1fd)],_0x104fa6[_0x38e0d8(0x28f)][_0x38e0d8(0x208)]),_0x4cafc9={};_0x4cafc9[_0x38e0d8(0x24d)]=ws,_0x4cafc9[_0x38e0d8(0x298)]=0x36ee80,_0x118434=new ReconnectingWebSocket(_0x560874,[],_0x4cafc9),global_registry[_0x38e0d8(0x272)]=_0x405bcc[_0x38e0d8(0x281)](getAuthHeader,global_registry[_0x38e0d8(0x2a2)],global_registry[_0x38e0d8(0x1b9)]),await _0x405bcc['vESCO'](inputValidation,_0x50bbec,_0x118434),logger[_0x38e0d8(0x234)](_0x38e0d8(0x21d)+global_registry[_0x38e0d8(0x271)]+_0x38e0d8(0x243)+global_registry[_0x38e0d8(0x1b3)]);let _0x583331=await _0x405bcc[_0x38e0d8(0x29e)](getCloudProviderObjectWithOutInit,global_registry[_0x38e0d8(0x271)],global_registry[_0x38e0d8(0x21f)],_0x405bcc[_0x38e0d8(0x241)],_0x118434,webSocketUtils,_0x50bbec);const _0x3b5349=await _0x583331[_0x38e0d8(0x1f8)]();_0x405bcc['wwSvv'](printResponse,_0x405bcc[_0x38e0d8(0x217)],_0x3b5349),_0x583331=await _0x583331[_0x38e0d8(0x1c1)]();let _0x70b294=![];try{_0x70b294=await _0x583331[_0x38e0d8(0x22e)]();}catch(_0x36116c){const _0x855fe7=_0x405bcc[_0x38e0d8(0x233)][_0x38e0d8(0x1ed)]('|');let _0x506d09=0x0;while(!![]){switch(_0x855fe7[_0x506d09++]){case'0':await _0x405bcc[_0x38e0d8(0x29a)](reportToGalactusAndSendToEDS,_0x50bbec,_0x118434,_0x396019,messageTypes[_0x38e0d8(0x1c6)],_0x405bcc[_0x38e0d8(0x1d7)],'cluster-check-failed-'+global_registry[_0x38e0d8(0x271)],_0x405bcc['rTxav']);continue;case'1':_0x396019+='\x0a'+JSON[_0x38e0d8(0x26c)](_0x36116c[_0x38e0d8(0x214)]);continue;case'2':_0x396019=_0x38e0d8(0x1be)+global_registry[_0x38e0d8(0x21f)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x38e0d8(0x1b3)]+_0x38e0d8(0x267)+_0x36116c;continue;case'3':logger[_0x38e0d8(0x232)](_0x396019);continue;case'4':_0x70b294=null;continue;}break;}}_0x70b294&&logger['info'](_0x38e0d8(0x20d)+global_registry['clusterName']+_0x38e0d8(0x1b7));const _0x117912=await _0x583331[_0x38e0d8(0x227)]();_0x405bcc['MxsFN'](printResponse,_0x405bcc[_0x38e0d8(0x2a8)],_0x117912);const _0x3d824d=await _0x405bcc[_0x38e0d8(0x2b2)](curlRequest);_0x405bcc[_0x38e0d8(0x2ad)](printResponse,_0x405bcc['ikvdt'],_0x3d824d);const _0x24ad1c=await _0x405bcc['ETySx'](isTlsSupported,_0x405bcc[_0x38e0d8(0x1d2)]);_0x405bcc[_0x38e0d8(0x1ca)](printResponse,_0x405bcc['zMUOb'],_0x24ad1c);const _0x5e179a={};_0x5e179a[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x1f2)],_0x5e179a[_0x38e0d8(0x1b6)]=_0x3b5349;const _0x23dc9d={};_0x23dc9d[_0x38e0d8(0x29b)]=_0x405bcc[_0x38e0d8(0x289)],_0x23dc9d[_0x38e0d8(0x1b6)]=_0x117912;const _0xd71ec4={};_0xd71ec4[_0x38e0d8(0x29b)]=_0x405bcc['yLXBm'],_0xd71ec4['response']=_0x3d824d;const _0x1b9cc3={};_0x1b9cc3['header']=_0x405bcc[_0x38e0d8(0x1cd)],_0x1b9cc3['response']=_0x24ad1c;const _0x23d763=[_0x5e179a,_0x23dc9d,_0xd71ec4,_0x1b9cc3],_0x12d6db=await _0x405bcc[_0x38e0d8(0x29d)](generateReport,_0x23d763,_0x70b294),_0x119caa=new Date(),_0x1b9c9a=_0x119caa[_0x38e0d8(0x290)]()+'_'+_0x405bcc['AefdU'](_0x119caa[_0x38e0d8(0x202)](),0x1)+'_'+_0x119caa[_0x38e0d8(0x200)]()+'_'+_0x119caa[_0x38e0d8(0x28d)]()+'_'+_0x119caa[_0x38e0d8(0x264)](),_0x1244bd=_0x38e0d8(0x239)+_0x1b9c9a+_0x38e0d8(0x28a);fs['writeFileSync'](_0x1244bd,_0x12d6db,_0x405bcc['MgAGI']),logger[_0x38e0d8(0x234)](_0x38e0d8(0x1b4)+_0x1244bd),process['exit'](0x0);}catch(_0x3c6ae8){let _0x374078=_0x38e0d8(0x228)+_0x3c6ae8+'\x20';logger[_0x38e0d8(0x232)](_0x374078),_0x374078+='\x0a'+JSON['stringify'](_0x3c6ae8[_0x38e0d8(0x214)]),logger[_0x38e0d8(0x2b0)](_0x38e0d8(0x270)+_0x3c6ae8[_0x38e0d8(0x214)]);if(_0x118434){const _0xa60cf1={};_0xa60cf1['type']=WS_EVENTS[_0x38e0d8(0x26f)],_0xa60cf1[_0x38e0d8(0x24a)]=_0x374078,webSocketUtils[_0x38e0d8(0x229)](_0x118434,_0xa60cf1,_0x405bcc[_0x38e0d8(0x230)],!![]);}await webSocketUtils[_0x38e0d8(0x1d0)](0x7d0);const _0x3224c7={};_0x3224c7[_0x38e0d8(0x232)]=_0x374078,await _0x405bcc[_0x38e0d8(0x1f1)](sendInstrumentationEvent,_0x50bbec,_0x405bcc[_0x38e0d8(0x1d7)],messageTypes[_0x38e0d8(0x1c6)],_0x405bcc['gXJaK'],_0x3224c7,_0x50bbec),process[_0x38e0d8(0x286)](0x1);}};
1
+ const a17_0x9fc242=a17_0x39e1;function a17_0x39e1(_0x483107,_0x3a2f07){const _0x34c75a=a17_0x34c7();return a17_0x39e1=function(_0x39e1cb,_0x528313){_0x39e1cb=_0x39e1cb-0xc8;let _0x494e96=_0x34c75a[_0x39e1cb];return _0x494e96;},a17_0x39e1(_0x483107,_0x3a2f07);}(function(_0x49460f,_0xe0c525){const _0xb1ff32=a17_0x39e1,_0x37b43d=_0x49460f();while(!![]){try{const _0x4200ff=parseInt(_0xb1ff32(0x118))/0x1*(parseInt(_0xb1ff32(0x148))/0x2)+-parseInt(_0xb1ff32(0x1a4))/0x3+parseInt(_0xb1ff32(0xeb))/0x4*(parseInt(_0xb1ff32(0x152))/0x5)+-parseInt(_0xb1ff32(0x104))/0x6+-parseInt(_0xb1ff32(0x111))/0x7*(parseInt(_0xb1ff32(0x18f))/0x8)+-parseInt(_0xb1ff32(0x19b))/0x9*(-parseInt(_0xb1ff32(0x18a))/0xa)+-parseInt(_0xb1ff32(0x1c5))/0xb*(-parseInt(_0xb1ff32(0x127))/0xc);if(_0x4200ff===_0xe0c525)break;else _0x37b43d['push'](_0x37b43d['shift']());}catch(_0xf7f03e){_0x37b43d['push'](_0x37b43d['shift']());}}}(a17_0x34c7,0x66f37));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x9fc242(0x10d)),ReconnectingWebSocket=require(a17_0x9fc242(0x181)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x9fc242(0x168)),{logger}=require(a17_0x9fc242(0x147)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x9fc242(0x180)),webSocketUtils=require(a17_0x9fc242(0x183)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x34c7(){const _0x5cf105=['lqNii','TwPct','fqkuT','qcGxA','GYWgj','lsnwA','mCUUo','vUals','Missing\x20required\x20arguments:\x20','pre-check-grid-called','epilogue','gridProfile','SSL\x20Configured','Whitelisted\x20browserstack','cloudProvider','accessResp','cluster-check-failed-','clusterRegion','dEqdQ','stringify','../../utils/utilityMethods','\x20\x20Stack:\x20','exit','JXUGQ','method','eAHYq','FRxfo','dummy-grid','`\x20is\x20present\x20in\x20region\x20`','wvJKl','dMnNK','FTDqe','N/A','kMBKu','nzSWV','Success','JuwcP','ORJdw','EIEos','includes','tDdGi','TyteC','Failure','KYmxw','../../cloudproviders/utils','reconnecting-websocket','pre-check-cluster-args-not-passed','../../utils/webSocketUtils','tXwiH','Status:\x20','grid\x20profile\x20flow\x20','code','\x20\x20Message:\x20','RJudq','10nOJFRI','===\x20Precheck\x20Report\x20-\x20','`\x20already\x20exists','xKwTl','sFhcC','8GEcPip','pre_check','region','status','type','MwngB','push','username','iScMd','ieVSa','BjtgA','\x20\x20Code:\x20','344079SOIfGC','zBbuB','https://','igOlb','Cluster\x20','pliAW','eywgB','credential-not-found','vBSPn','1372389xeXYEB','aHjoY','WebSocket','UANfO','isTls1_2_SUPPORTED','bstackAccesskey','clusterName','hZMyk','data','nVDNU','viDje','sendEventToBackend','error','usage','fQsJd','cloud-provider','stack','unable\x20to\x20verify\x20if\x20cluster\x20`','find','szCXE','headers',']\x20status\x20:\x20','VHBjJ','iBTtm','Pre-check\x20running\x20for\x20Cloud\x20-\x20','SfLdE','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','bstackUsername','sCUIS','XfSKx','jUfwv','init','29865WguUbj','aWJRG','grid','help','`\x20,error\x20:\x20','tEVbY','getUTCMinutes','Cluster\x20details\x0a-----------------------\x0a','GET','Grid\x20profile\x20fetched\x20for\x20pre-check','Tool\x20Installed','is\x20already\x20present','description','TLSv1_2_client_method','nQCcU','gjdeD','IXRkf','Browserstack','irifU','IwhsL','ZzmdT','zGrDp','CLOUD_PROVIDER','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','PTdfp','luiWm','delay','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','aeDWd','getUTCFullYear','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','<UsernamePlaceholder>','OXAam','IWcbl','authHeader','readFileSync','GMjVf','debug','awEJi','MgNdZ','opUOe','password','Error\x20Details:\x0a','60EOJFsx','handler','connectionTimeout','Failed\x20in\x20pre-check!\x20Error:\x20','XZxku','dICvx','mshdJ','Invalid\x20input.\x20grid\x20profiles:\x20','message','Qdbiu','ESGkf','getUTCMonth','existsSync','Yyvte','BSCUs','.\x20Please\x20provide\x20all\x20required\x20arguments.','lJRjJ','aEohq','command','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','oGgRq','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','string','tdBYQ','pWnCL','1996416DmOUjB','EOOqB','builder','utf-8','LBVFr','UhAPA','QXjMF','YztWo','Setting\x20cloud\x20provider\x20as\x20','uuid','LcqWr','LOG','FeGDC','5649441SoFPWv','cgWuu','\x20data\x20:\x20','Message:\x20','rrWcp','LIAWF','getUTCDate','16bSIWzX','join','MRCrk','.txt','EifKE','KsxJh','ERROR','pVVGp','JjrCj','UANMQ','fjOxL','toolInstalledResp','will\x20be\x20created','\x20error\x20:\x20','User\x20Access','3684tLSIgd','UdSmK','YkDDI','GjkTw','CSXUF','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','pre-check-failed','CmWcW','Cluster\x20`','mUCaQ','Report\x20saved\x20in\x20','getUTCHours','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','czwLT','options','grid-profile','ttENv','toLowerCase','wRAXF','length','cloud-provider-not-supported','ctcEM','CdLKi','info','parse','yzxWK','checkAccess','cZbFb','NYyND','hKKRE','cluster-name','stack\x20trace\x20','../../config/logger','50396Etulid','OOomz','header','<PasswordPlaceholder>','NWhpg','nCzZv','error\x20stack\x20:\x20','split','argv','response','248015PzeYmL','body'];a17_0x34c7=function(){return _0x5cf105;};return a17_0x34c7();}exports[a17_0x9fc242(0xfd)]=a17_0x9fc242(0x1c7),exports['desc']=a17_0x9fc242(0x100),exports[a17_0x9fc242(0x106)]=function(_0x300f4d){const _0x448770=a17_0x9fc242,_0x421204={};_0x421204[_0x448770(0x14c)]=_0x448770(0x1bf),_0x421204[_0x448770(0x120)]=_0x448770(0x101),_0x421204[_0x448770(0x10a)]=_0x448770(0xd7),_0x421204[_0x448770(0x19c)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x421204['HGOqy']=_0x448770(0x1be),_0x421204[_0x448770(0xce)]=_0x448770(0x1c8);const _0x5af1e1=_0x421204,_0x1030c4={};_0x1030c4[_0x448770(0xcc)]=_0x5af1e1['NWhpg'],_0x1030c4[_0x448770(0x193)]=_0x5af1e1['JjrCj'];const _0x3b264c={};_0x3b264c['description']=_0x5af1e1[_0x448770(0x10a)],_0x3b264c[_0x448770(0x193)]=_0x5af1e1[_0x448770(0x120)];const _0xa7d7ca={};_0xa7d7ca['description']=_0x5af1e1[_0x448770(0x19c)],_0xa7d7ca[_0x448770(0x193)]=_0x5af1e1['JjrCj'];const _0x36e97a={};_0x36e97a[_0x448770(0xcc)]=_0x5af1e1['HGOqy'],_0x36e97a['type']=_0x5af1e1[_0x448770(0x120)];const _0x72f8a9={};return _0x72f8a9['cluster-name']=_0x1030c4,_0x72f8a9[_0x448770(0x1b3)]=_0x3b264c,_0x72f8a9[_0x448770(0x191)]=_0xa7d7ca,_0x72f8a9['grid-profile']=_0x36e97a,_0x300f4d[_0x448770(0x1b1)](HELP_HEADER_MESSAGE['pre_check'])[_0x448770(0x15e)](HELP_FOOTER_MESSAGE)[_0x448770(0x135)](_0x72f8a9)[_0x448770(0x1c8)](_0x5af1e1[_0x448770(0xce)])[_0x448770(0x150)];};async function inputValidation(_0x9bcc11,_0x1dc6f2){const _0x3a7b8a=a17_0x9fc242,_0xa2b1ae={'UhAPA':_0x3a7b8a(0x133),'looXF':function(_0x1b60f1,_0x2e9428){return _0x1b60f1+_0x2e9428;},'DTLOS':_0x3a7b8a(0x177),'iYjbV':'Failure','SAwut':function(_0x6d7966,_0x2c9fc3){return _0x6d7966||_0x2c9fc3;},'tXwiH':_0x3a7b8a(0x174),'LlIuj':_0x3a7b8a(0xea),'Qdbiu':_0x3a7b8a(0x1b3),'qVglg':_0x3a7b8a(0x1bf),'IwhsL':'string','tDdGi':_0x3a7b8a(0xd7),'xKwTl':_0x3a7b8a(0xdb),'fQsJd':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','LIAWF':_0x3a7b8a(0x1c8),'vBSPn':_0x3a7b8a(0xcb),'nzSWV':_0x3a7b8a(0x124),'zGrDp':'error','aEohq':_0x3a7b8a(0x191),'MgNdZ':function(_0x34ef33,_0x1a100d){return _0x34ef33===_0x1a100d;},'hZMyk':_0x3a7b8a(0x18e),'srKMD':function(_0xaf190b,_0x5f59ac){return _0xaf190b===_0x5f59ac;},'viDje':_0x3a7b8a(0xd0),'UANfO':_0x3a7b8a(0x1bd),'UdSmK':function(_0x48497b,_0x53c906){return _0x48497b!==_0x53c906;},'EifKE':_0x3a7b8a(0x1bb),'JuwcP':'Kjgqh','pJBTV':'cluster-name','EOOqB':'ivJUK','dEqdQ':'KfiqG','ZzmdT':function(_0x140c58,_0x3ee839){return _0x140c58!==_0x3ee839;},'YSMMC':'ltgoJ','KYmxw':_0x3a7b8a(0x171),'eVERP':function(_0x5c9bdd,_0x5742d9){return _0x5c9bdd>_0x5742d9;},'ttENv':function(_0x5a1ca5,_0x3371cd){return _0x5a1ca5===_0x3371cd;},'cZbFb':_0x3a7b8a(0x173),'luiWm':_0x3a7b8a(0x1c3),'GMjVf':function(_0x8d19ac,_0x215d43,_0x23e99c,_0x3e249c,_0x319082,_0x4354fd,_0xda6057,_0x3aea9a){return _0x8d19ac(_0x215d43,_0x23e99c,_0x3e249c,_0x319082,_0x4354fd,_0xda6057,_0x3aea9a);},'oGgRq':_0x3a7b8a(0x15d),'ehllK':_0x3a7b8a(0x182),'FIbCc':function(_0x5883d6,_0x1b46e2){return _0x5883d6===_0x1b46e2;},'dMnNK':_0x3a7b8a(0x143),'emWwY':'MnaDp','cRoFN':_0x3a7b8a(0x12c),'GjkTw':function(_0x3b9b32,_0x384bd8,_0x4dae67,_0x1588ac,_0x465c25,_0x5ba92e,_0x33fb67,_0x56af33){return _0x3b9b32(_0x384bd8,_0x4dae67,_0x1588ac,_0x465c25,_0x5ba92e,_0x33fb67,_0x56af33);},'awEJi':_0x3a7b8a(0x13b),'kMBKu':_0x3a7b8a(0xe0),'WghAj':_0x3a7b8a(0x16e),'vUals':function(_0xea9b71,_0x5b16ea){return _0xea9b71===_0x5b16ea;},'hKKRE':_0x3a7b8a(0x1a1),'dICvx':_0x3a7b8a(0xc8),'GWPOQ':function(_0x4823a2,_0x4e59d5,_0x2b8014){return _0x4823a2(_0x4e59d5,_0x2b8014);},'KsxJh':function(_0x231cd0,_0x3b7518,_0x5f1bfe,_0x5245ff,_0x39ef4c,_0x1736af){return _0x231cd0(_0x3b7518,_0x5f1bfe,_0x5245ff,_0x39ef4c,_0x1736af);},'ESGkf':'pre-check','igOlb':_0x3a7b8a(0x136),'XZxku':_0x3a7b8a(0xd8),'opUOe':_0x3a7b8a(0x110),'nCzZv':function(_0x1b1013,_0x3f85e9){return _0x1b1013(_0x3f85e9);},'sCUIS':_0x3a7b8a(0x12e),'cgWuu':'Dwfsz','nVDNU':'pre-check-grid-profile-empty','tdBYQ':function(_0x5ee356,_0x1d0f2d){return _0x5ee356===_0x1d0f2d;},'UANMQ':'tnUya','GYWgj':_0x3a7b8a(0x103),'abkRI':function(_0x75d68d,_0xc683be){return _0x75d68d!==_0xc683be;},'LBVFr':_0x3a7b8a(0x16d),'ORJdw':_0x3a7b8a(0xc9),'iScMd':function(_0x22ea07,_0x1fe16f){return _0x22ea07===_0x1fe16f;},'czwLT':_0x3a7b8a(0x129),'CdLKi':'opoTE','SXYvc':_0x3a7b8a(0x194)};let _0x11a89b;try{if(_0xa2b1ae[_0x3a7b8a(0xe7)](_0xa2b1ae['hZMyk'],_0xa2b1ae[_0x3a7b8a(0x1ab)])){if(_0x9bcc11['clusterName']||_0x9bcc11[_0x3a7b8a(0x162)]||_0x9bcc11[_0x3a7b8a(0x191)]){if(_0xa2b1ae['srKMD'](_0xa2b1ae[_0x3a7b8a(0x1ae)],_0xa2b1ae[_0x3a7b8a(0x1a7)]))_0x4968c8[_0x3a7b8a(0x1b0)](_0x3a7b8a(0x14e)+_0x5b5d32['error']['stack']);else{const _0x253bdb=[];!_0x9bcc11[_0x3a7b8a(0x1aa)]&&(_0xa2b1ae[_0x3a7b8a(0x128)](_0xa2b1ae[_0x3a7b8a(0x11c)],_0xa2b1ae[_0x3a7b8a(0x178)])?_0x253bdb[_0x3a7b8a(0x195)](_0xa2b1ae['pJBTV']):(_0x4f2c06[_0x3a7b8a(0x1b0)](_0xa2b1ae[_0x3a7b8a(0x109)]),_0x5ee6b7['exit'](0x1)));;!_0x9bcc11[_0x3a7b8a(0x162)]&&(_0xa2b1ae[_0x3a7b8a(0x128)](_0xa2b1ae[_0x3a7b8a(0x105)],_0xa2b1ae[_0x3a7b8a(0x166)])?_0x253bdb[_0x3a7b8a(0x195)](_0xa2b1ae[_0x3a7b8a(0xf4)]):(_0xf8c348[_0x3a7b8a(0x13e)]('['+_0x2d0bd8+_0x3a7b8a(0x1b9)+_0x1dda86['status']+'\x20data\x20:\x20'+_0xe8a12c[_0x3a7b8a(0x1ac)]+_0x3a7b8a(0x125)+_0x599216[_0x3a7b8a(0x1b0)]),_0x2144eb[_0x3a7b8a(0x1b0)]&&_0x6c2a20[_0x3a7b8a(0x1b0)](_0x3a7b8a(0x14e)+_0x33c999[_0x3a7b8a(0x1b0)][_0x3a7b8a(0x1b4)])));;!_0x9bcc11['region']&&(_0xa2b1ae[_0x3a7b8a(0xd4)](_0xa2b1ae['YSMMC'],_0xa2b1ae[_0x3a7b8a(0x17f)])?_0x253bdb['push'](_0xa2b1ae[_0x3a7b8a(0xfc)]):_0x522baf[_0x3a7b8a(0x16a)](0x1));;if(_0xa2b1ae['eVERP'](_0x253bdb[_0x3a7b8a(0x13a)],0x0)){if(_0xa2b1ae[_0x3a7b8a(0x137)](_0xa2b1ae[_0x3a7b8a(0x142)],_0xa2b1ae[_0x3a7b8a(0xd9)])){const {header:_0x18e269,response:_0x1d576a}=_0x478895,{status:_0x1fbcfd,data:_0x29b025,error:_0x10ae29}=_0x1d576a;_0x1b898a+=_0x18e269+'\x20#'+_0xa2b1ae['looXF'](_0x48799d,0x1)+'\x0a',_0x9a3200+=_0x3a7b8a(0x185)+(_0x1fbcfd?_0xa2b1ae['DTLOS']:_0xa2b1ae['iYjbV'])+'\x0a',_0x4ddbb7+=_0x3a7b8a(0x114)+_0xa2b1ae['SAwut'](_0x29b025,_0xa2b1ae['tXwiH'])+'\x0a',_0x10ae29&&(_0x2c27be+=_0xa2b1ae['LlIuj'],_0x1bbdf7+=_0x3a7b8a(0x188)+(_0x10ae29['message']||_0xa2b1ae['tXwiH'])+'\x0a',_0x167aa8+=_0x3a7b8a(0x19a)+(_0x10ae29[_0x3a7b8a(0x187)]||_0xa2b1ae[_0x3a7b8a(0x184)])+'\x0a',_0x53addf+=_0x3a7b8a(0x169)+(_0x10ae29[_0x3a7b8a(0x1b4)]||_0xa2b1ae[_0x3a7b8a(0x184)])+'\x0a'),_0x4e3bfc+='\x0a\x0a';}else _0x11a89b=_0x3a7b8a(0x15c)+_0x253bdb[_0x3a7b8a(0x119)](',\x20')+_0x3a7b8a(0xfa),await _0xa2b1ae[_0x3a7b8a(0xe4)](reportToGalactusAndSendToEDS,_0x9bcc11,_0x1dc6f2,_0x11a89b,messageTypes[_0x3a7b8a(0x11e)],_0xa2b1ae[_0x3a7b8a(0xff)],_0xa2b1ae['ehllK'],_0xa2b1ae[_0x3a7b8a(0xd5)]),logger['error'](_0x11a89b),process[_0x3a7b8a(0x16a)](0x1);}if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3a7b8a(0x17b)](_0x9bcc11[_0x3a7b8a(0x162)][_0x3a7b8a(0x138)]())){if(_0xa2b1ae['FIbCc'](_0xa2b1ae[_0x3a7b8a(0x172)],_0xa2b1ae['emWwY']))_0x562ee7[_0x3a7b8a(0x195)](_0xa2b1ae[_0x3a7b8a(0xf4)]);else{_0x11a89b=_0xa2b1ae['cRoFN'],await _0xa2b1ae[_0x3a7b8a(0x12a)](reportToGalactusAndSendToEDS,_0x9bcc11,_0x1dc6f2,_0x11a89b,messageTypes[_0x3a7b8a(0x11e)],_0xa2b1ae[_0x3a7b8a(0xff)],_0xa2b1ae[_0x3a7b8a(0xe6)],_0xa2b1ae['zGrDp']),logger['error'](_0x11a89b);if(!_0x9bcc11[_0x3a7b8a(0x162)]){if(_0xa2b1ae[_0x3a7b8a(0xd4)](_0xa2b1ae[_0x3a7b8a(0x175)],_0xa2b1ae['WghAj']))logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x9bcc11[_0x3a7b8a(0x162)]=DEFAULT_CLUSTER_DETAILS[_0x3a7b8a(0xd6)];else{const _0x8696={};_0x8696[_0x3a7b8a(0xcc)]=_0xa2b1ae['qVglg'],_0x8696[_0x3a7b8a(0x193)]=_0xa2b1ae[_0x3a7b8a(0xd3)];const _0x6d67da={};_0x6d67da[_0x3a7b8a(0xcc)]=_0xa2b1ae[_0x3a7b8a(0x17c)],_0x6d67da[_0x3a7b8a(0x193)]=_0xa2b1ae[_0x3a7b8a(0xd3)];const _0xb69669={};_0xb69669[_0x3a7b8a(0xcc)]=_0xa2b1ae[_0x3a7b8a(0x18d)],_0xb69669[_0x3a7b8a(0x193)]=_0xa2b1ae[_0x3a7b8a(0xd3)];const _0x16db23={};_0x16db23[_0x3a7b8a(0xcc)]=_0xa2b1ae[_0x3a7b8a(0x1b2)],_0x16db23[_0x3a7b8a(0x193)]=_0xa2b1ae[_0x3a7b8a(0xd3)];const _0x25d721={};return _0x25d721[_0x3a7b8a(0x145)]=_0x8696,_0x25d721[_0x3a7b8a(0x1b3)]=_0x6d67da,_0x25d721[_0x3a7b8a(0x191)]=_0xb69669,_0x25d721[_0x3a7b8a(0x136)]=_0x16db23,_0x565d99['usage'](_0x50ec36[_0x3a7b8a(0x190)])[_0x3a7b8a(0x15e)](_0x4a746e)[_0x3a7b8a(0x135)](_0x25d721)['help'](_0xa2b1ae[_0x3a7b8a(0x116)])[_0x3a7b8a(0x150)];}}}}global_registry[_0x3a7b8a(0x1aa)]=_0x9bcc11['clusterName'],global_registry[_0x3a7b8a(0x162)]=_0x9bcc11[_0x3a7b8a(0x162)],global_registry[_0x3a7b8a(0x165)]=_0x9bcc11[_0x3a7b8a(0x191)];}}else{if(_0x9bcc11[_0x3a7b8a(0x15f)]){if(_0xa2b1ae[_0x3a7b8a(0x15b)](_0xa2b1ae[_0x3a7b8a(0x144)],_0xa2b1ae[_0x3a7b8a(0x144)])){global_registry[_0x3a7b8a(0x15f)]=_0x9bcc11[_0x3a7b8a(0x15f)],logger[_0x3a7b8a(0xe5)](_0x3a7b8a(0x186)+_0x9bcc11[_0x3a7b8a(0x15f)]);const _0x2441f5=_0x3a7b8a(0x19d)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x2b3bd1={};_0x2b3bd1[_0x3a7b8a(0x16c)]=_0xa2b1ae[_0x3a7b8a(0xf0)],_0x2b3bd1[_0x3a7b8a(0x1b8)]=global_registry[_0x3a7b8a(0xe2)],_0x2b3bd1['throwHttpErrors']=![];const _0x273766=_0x2b3bd1,_0x207a01=await _0xa2b1ae['GWPOQ'](got,_0x2441f5,_0x273766),_0x266913=await _0xa2b1ae[_0x3a7b8a(0x11d)](responseValidation,_0x207a01,_0xa2b1ae[_0x3a7b8a(0xf5)],_0xa2b1ae[_0x3a7b8a(0x19e)],_0x9bcc11,_0x1dc6f2);let _0x44dc6f={};if(_0xa2b1ae[_0x3a7b8a(0xe7)](_0x266913,0xc8)){if(_0xa2b1ae[_0x3a7b8a(0x137)](_0xa2b1ae[_0x3a7b8a(0xef)],_0xa2b1ae[_0x3a7b8a(0xe8)]))_0x3fe52e+=_0x3a7b8a(0x19f)+_0x53f070[_0x3a7b8a(0x1aa)]+'\x20'+(_0x1d478a?_0xa2b1ae[_0x3a7b8a(0x1a3)]:_0xa2b1ae[_0x3a7b8a(0x176)])+'\x0a\x0a';else{const _0x32974c=JSON[_0x3a7b8a(0x13f)](_0x207a01[_0x3a7b8a(0x153)]),_0x388d46=_0x32974c[_0x3a7b8a(0x1b6)](_0x4ec950=>_0x4ec950['name']===_0x9bcc11[_0x3a7b8a(0x15f)])||null;_0xa2b1ae[_0x3a7b8a(0x14d)](isUndefined,_0x388d46)?_0xa2b1ae[_0x3a7b8a(0xd4)](_0xa2b1ae[_0x3a7b8a(0x1c1)],_0xa2b1ae[_0x3a7b8a(0x112)])?(_0x11a89b=_0x3a7b8a(0xf2)+_0x9bcc11['gridProfile']+_0x3a7b8a(0xde),await _0xa2b1ae[_0x3a7b8a(0xe4)](reportToGalactusAndSendToEDS,_0x9bcc11,_0x1dc6f2,_0x11a89b,messageTypes[_0x3a7b8a(0x11e)],_0xa2b1ae[_0x3a7b8a(0xff)],_0xa2b1ae[_0x3a7b8a(0x1ad)],_0xa2b1ae[_0x3a7b8a(0xd5)]),logger[_0x3a7b8a(0x1b0)](_0x11a89b),process[_0x3a7b8a(0x16a)](0x1)):_0x4d995e=_0x30e698:_0xa2b1ae[_0x3a7b8a(0x102)](_0xa2b1ae[_0x3a7b8a(0x121)],_0xa2b1ae[_0x3a7b8a(0x158)])?(_0x7e8da5[_0x3a7b8a(0x13e)](_0x3a7b8a(0x10c)+_0xc36b99[_0x3a7b8a(0xd6)]+'\x20'),_0x18a9b7[_0x3a7b8a(0x162)]=_0x118b01['CLOUD_PROVIDER']):_0x44dc6f=_0x388d46;}}else _0xa2b1ae['abkRI'](_0xa2b1ae[_0x3a7b8a(0x108)],_0xa2b1ae['LBVFr'])?(_0x58e0b3+=_0xa2b1ae['LlIuj'],_0x4c9798+='\x20\x20Message:\x20'+(_0x1f5a38[_0x3a7b8a(0xf3)]||_0xa2b1ae[_0x3a7b8a(0x184)])+'\x0a',_0xfc8d3a+=_0x3a7b8a(0x19a)+(_0x3a1b67[_0x3a7b8a(0x187)]||_0xa2b1ae['tXwiH'])+'\x0a',_0x189cd6+=_0x3a7b8a(0x169)+(_0x4a57ab[_0x3a7b8a(0x1b4)]||_0xa2b1ae[_0x3a7b8a(0x184)])+'\x0a'):process[_0x3a7b8a(0x16a)](0x1);const _0x3ca410={};_0x3ca410[_0x3a7b8a(0x193)]=WS_EVENTS['LOG'],_0x3ca410[_0x3a7b8a(0xf3)]=_0xa2b1ae[_0x3a7b8a(0x179)],webSocketUtils['sendEventToBackend'](_0x1dc6f2,_0x3ca410),global_registry[_0x3a7b8a(0x162)]=_0x44dc6f[_0x3a7b8a(0x162)],global_registry[_0x3a7b8a(0x165)]=_0x44dc6f[_0x3a7b8a(0x191)],global_registry[_0x3a7b8a(0x1aa)]=_0x44dc6f[_0x3a7b8a(0x1aa)];}else _0x2234d5+=_0x3a7b8a(0x19f)+_0x557e2c[_0x3a7b8a(0x1aa)]+_0x3a7b8a(0xfe);}else _0xa2b1ae[_0x3a7b8a(0x197)](_0xa2b1ae[_0x3a7b8a(0x134)],_0xa2b1ae[_0x3a7b8a(0x134)])?(logger['error'](_0xa2b1ae[_0x3a7b8a(0x109)]),process[_0x3a7b8a(0x16a)](0x1)):_0x137b00[_0x3a7b8a(0x13e)](_0x3a7b8a(0x12f)+_0x3c6bf5['clusterName']+_0x3a7b8a(0x18c));}}else{const _0x8dc616={};_0x8dc616[_0x3a7b8a(0x193)]=_0x46b296[_0x3a7b8a(0x10f)],_0x8dc616[_0x3a7b8a(0xf3)]=_0x135b19,_0x27661b[_0x3a7b8a(0x1af)](_0x11cfc7,_0x8dc616,_0xa2b1ae[_0x3a7b8a(0xd5)],!![]);}}catch(_0x2d58e0){_0xa2b1ae['srKMD'](_0xa2b1ae[_0x3a7b8a(0x13d)],_0xa2b1ae['SXYvc'])?_0x433623[_0x3a7b8a(0x195)](_0xa2b1ae[_0x3a7b8a(0xfc)]):(_0x11a89b='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x2d58e0+':\x20'+_0x2d58e0['stack'],logger['error'](_0x11a89b),await _0xa2b1ae[_0x3a7b8a(0x12a)](reportToGalactusAndSendToEDS,_0x9bcc11,_0x1dc6f2,_0x11a89b,messageTypes[_0x3a7b8a(0x11e)],_0xa2b1ae['oGgRq'],_0xa2b1ae[_0x3a7b8a(0xe6)],_0xa2b1ae['zGrDp']),process['exit'](0x1));}}function printResponse(_0x30972a,_0x22cdc7){const _0x1cb877=a17_0x9fc242,_0x2df009={};_0x2df009[_0x1cb877(0x13c)]=_0x1cb877(0x145),_0x2df009['szCXE']=function(_0x582c2c,_0x180247){return _0x582c2c!==_0x180247;},_0x2df009[_0x1cb877(0xdc)]=_0x1cb877(0x10e);const _0x37a2e3=_0x2df009;logger[_0x1cb877(0x13e)]('['+_0x30972a+_0x1cb877(0x1b9)+_0x22cdc7[_0x1cb877(0x192)]+_0x1cb877(0x113)+_0x22cdc7['data']+_0x1cb877(0x125)+_0x22cdc7['error']),_0x22cdc7[_0x1cb877(0x1b0)]&&(_0x37a2e3[_0x1cb877(0x1b7)](_0x37a2e3[_0x1cb877(0xdc)],_0x37a2e3[_0x1cb877(0xdc)])?_0x13f28c[_0x1cb877(0x195)](_0x37a2e3['ctcEM']):logger[_0x1cb877(0x1b0)](_0x1cb877(0x14e)+_0x22cdc7[_0x1cb877(0x1b0)][_0x1cb877(0x1b4)]));}async function generateReport(_0x4806f0,_0x115702){const _0xfb729f=a17_0x9fc242,_0x2d06f8={'lqNii':function(_0x5ca2d0,_0x39834f){return _0x5ca2d0+_0x39834f;},'mUCaQ':_0xfb729f(0x177),'fqkuT':_0xfb729f(0x17e),'WQZPl':function(_0x358817,_0x195db6){return _0x358817||_0x195db6;},'tEVbY':_0xfb729f(0x174),'mCUUo':'Error\x20Details:\x0a','cEEDX':_0xfb729f(0x1cc),'TFpfx':function(_0x41e3b9,_0x4b3318){return _0x41e3b9!=_0x4b3318;},'ieVSa':'is\x20already\x20present','lsnwA':_0xfb729f(0x124),'IWcbl':function(_0x270439){return _0x270439();}};let _0x16bbd5=_0xfb729f(0x18b)+global_registry[_0xfb729f(0x162)]+'\x20===\x0a\x0a';return _0x4806f0['forEach']((_0xe47be2,_0x3fb887)=>{const _0xd2d9d0=_0xfb729f,{header:_0x4995da,response:_0xada8de}=_0xe47be2,{status:_0x4c703b,data:_0x3d78da,error:_0x3a74fe}=_0xada8de;_0x16bbd5+=_0x4995da+'\x20#'+_0x2d06f8[_0xd2d9d0(0x154)](_0x3fb887,0x1)+'\x0a',_0x16bbd5+=_0xd2d9d0(0x185)+(_0x4c703b?_0x2d06f8[_0xd2d9d0(0x130)]:_0x2d06f8[_0xd2d9d0(0x156)])+'\x0a',_0x16bbd5+=_0xd2d9d0(0x114)+_0x2d06f8['WQZPl'](_0x3d78da,_0x2d06f8['tEVbY'])+'\x0a',_0x3a74fe&&(_0x16bbd5+=_0x2d06f8[_0xd2d9d0(0x15a)],_0x16bbd5+=_0xd2d9d0(0x188)+(_0x3a74fe[_0xd2d9d0(0xf3)]||_0x2d06f8['tEVbY'])+'\x0a',_0x16bbd5+=_0xd2d9d0(0x19a)+(_0x3a74fe['code']||_0x2d06f8[_0xd2d9d0(0x1ca)])+'\x0a',_0x16bbd5+=_0xd2d9d0(0x169)+(_0x3a74fe[_0xd2d9d0(0x1b4)]||_0x2d06f8[_0xd2d9d0(0x1ca)])+'\x0a'),_0x16bbd5+='\x0a\x0a';}),_0x16bbd5+=_0x2d06f8['cEEDX'],_0x2d06f8['TFpfx'](_0x115702,null)?_0x16bbd5+='Cluster\x20'+global_registry[_0xfb729f(0x1aa)]+'\x20'+(_0x115702?_0x2d06f8[_0xfb729f(0x198)]:_0x2d06f8[_0xfb729f(0x159)])+'\x0a\x0a':_0x16bbd5+=_0xfb729f(0x19f)+global_registry[_0xfb729f(0x1aa)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x16bbd5+=_0x2d06f8[_0xfb729f(0xe1)](getSystemMetaData),_0x16bbd5;};exports[a17_0x9fc242(0xec)]=async function(_0x24fcfb){const _0x231106=a17_0x9fc242,_0x18f438={'CSXUF':function(_0x232ec4){return _0x232ec4();},'pVVGp':function(_0xb3e47c){return _0xb3e47c();},'aHjoY':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VHBjJ':function(_0x10b552,_0x564de6,_0x48823e,_0x3c3d64,_0x309837,_0x5dad96,_0x105954,_0x4e72f6){return _0x10b552(_0x564de6,_0x48823e,_0x3c3d64,_0x309837,_0x5dad96,_0x105954,_0x4e72f6);},'OOomz':_0x231106(0x15d),'TyteC':_0x231106(0x1a2),'pliAW':_0x231106(0x1b0),'BSCUs':function(_0x54b9cb,_0x4074ca,_0x400348,_0x539dea,_0x4ada97,_0x36917a,_0x9be8f3){return _0x54b9cb(_0x4074ca,_0x400348,_0x539dea,_0x4ada97,_0x36917a,_0x9be8f3);},'Yyvte':function(_0x56f5fe){return _0x56f5fe();},'lJRjJ':_0x231106(0xdf),'JXUGQ':_0x231106(0x14b),'irifU':function(_0x422458,_0x2997a6,_0xf7d288){return _0x422458(_0x2997a6,_0xf7d288);},'aWJRG':function(_0xff30f7,_0x33ebf8,_0x4761b4,_0x4e6d15,_0x26a924,_0x336444,_0xd96bd6){return _0xff30f7(_0x33ebf8,_0x4761b4,_0x4e6d15,_0x26a924,_0x336444,_0xd96bd6);},'weOAU':_0x231106(0x16f),'MUfvv':_0x231106(0x123),'wRAXF':'0|3|1|2|4','ISwHI':function(_0x5cc28d,_0x341999,_0x46771d,_0x959a1e,_0x55df16,_0x701fd6,_0x4e0826,_0x319a3b){return _0x5cc28d(_0x341999,_0x46771d,_0x959a1e,_0x55df16,_0x701fd6,_0x4e0826,_0x319a3b);},'EIEos':function(_0x414d8e,_0xc309b,_0x3558ea){return _0x414d8e(_0xc309b,_0x3558ea);},'BjtgA':_0x231106(0x163),'qcGxA':'isTrialGridAccessible','XfSKx':function(_0x439e6e,_0x19b87f){return _0x439e6e(_0x19b87f);},'TwPct':_0x231106(0xcd),'MRCrk':function(_0x4fa159,_0x2a7750,_0x242e5b){return _0x4fa159(_0x2a7750,_0x242e5b);},'fjOxL':_0x231106(0x1a8),'gjdeD':_0x231106(0xca),'yzxWK':_0x231106(0x126),'SKopL':_0x231106(0x161),'RJudq':_0x231106(0x160),'YztWo':function(_0x3d13b3,_0x4ad552,_0x294a76){return _0x3d13b3(_0x4ad552,_0x294a76);},'rrWcp':function(_0x2ca360,_0x2afc4d){return _0x2ca360+_0x2afc4d;},'zXsvC':_0x231106(0x107),'mshdJ':_0x231106(0x12d)};let _0x555f01,_0x526bba;try{global_registry['requestId']=_0x18f438[_0x231106(0x12b)](uuidv4);!fs[_0x231106(0xf7)](_0x18f438[_0x231106(0x11f)](getCredentialsPath))&&(_0x526bba=_0x18f438[_0x231106(0x1a5)],logger[_0x231106(0x1b0)](_0x526bba),await _0x18f438[_0x231106(0x1ba)](reportToGalactusAndSendToEDS,_0x24fcfb,_0x555f01,_0x526bba,messageTypes[_0x231106(0x11e)],_0x18f438[_0x231106(0x149)],_0x18f438[_0x231106(0x17d)],_0x18f438[_0x231106(0x1a0)]),process[_0x231106(0x16a)](0x1));_0x18f438[_0x231106(0xf9)](sendInstrumentationEvent,_0x24fcfb,_0x18f438['OOomz'],messageTypes['INFO'],null,null,_0x24fcfb);const _0x1f6ccf=JSON[_0x231106(0x13f)](fs[_0x231106(0xe3)](_0x18f438[_0x231106(0xf8)](getCredentialsPath)));global_registry[_0x231106(0x1c0)]=_0x1f6ccf['Browserstack']['username'],global_registry[_0x231106(0x1a9)]=_0x1f6ccf[_0x231106(0xd1)][_0x231106(0xe9)];const _0x20631e=WS_ENDPOINT['replace'](_0x18f438[_0x231106(0xfb)],_0x1f6ccf[_0x231106(0xd1)][_0x231106(0x196)])['replace'](_0x18f438[_0x231106(0x16b)],_0x1f6ccf[_0x231106(0xd1)][_0x231106(0xe9)]),_0x4d2809={};_0x4d2809[_0x231106(0x1a6)]=ws,_0x4d2809[_0x231106(0xed)]=0x36ee80,_0x555f01=new ReconnectingWebSocket(_0x20631e,[],_0x4d2809),global_registry[_0x231106(0xe2)]=_0x18f438[_0x231106(0xd2)](getAuthHeader,global_registry[_0x231106(0x1c0)],global_registry[_0x231106(0x1a9)]),await _0x18f438[_0x231106(0xd2)](inputValidation,_0x24fcfb,_0x555f01),logger['info'](_0x231106(0x1bc)+global_registry[_0x231106(0x162)]+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x1fbc81=await _0x18f438[_0x231106(0x1c6)](getCloudProviderObjectWithOutInit,global_registry[_0x231106(0x162)],global_registry['clusterName'],_0x18f438['weOAU'],_0x555f01,webSocketUtils,_0x24fcfb);const _0x1851ff=await _0x1fbc81['isCliToolInstalled']();_0x18f438[_0x231106(0xd2)](printResponse,_0x18f438['MUfvv'],_0x1851ff),_0x1fbc81=await _0x1fbc81[_0x231106(0x1c4)]();let _0x46e0ba=![];try{_0x46e0ba=await _0x1fbc81['isClusterPresent']();}catch(_0x4cbd42){const _0xa7a9b=_0x18f438[_0x231106(0x139)][_0x231106(0x14f)]('|');let _0x3d4c53=0x0;while(!![]){switch(_0xa7a9b[_0x3d4c53++]){case'0':_0x526bba=_0x231106(0x1b5)+global_registry[_0x231106(0x1aa)]+_0x231106(0x170)+global_registry['clusterRegion']+_0x231106(0x1c9)+_0x4cbd42;continue;case'1':logger[_0x231106(0x1b0)](_0x526bba);continue;case'2':_0x526bba+='\x0a'+JSON[_0x231106(0x167)](_0x4cbd42[_0x231106(0x1b4)]);continue;case'3':_0x46e0ba=null;continue;case'4':await _0x18f438['ISwHI'](reportToGalactusAndSendToEDS,_0x24fcfb,_0x555f01,_0x526bba,messageTypes['ERROR'],_0x18f438['OOomz'],_0x231106(0x164)+global_registry[_0x231106(0x162)],_0x18f438[_0x231106(0x1a0)]);continue;}break;}}_0x46e0ba&&logger[_0x231106(0x13e)](_0x231106(0x12f)+global_registry[_0x231106(0x1aa)]+_0x231106(0x18c));const _0x55ff9=await _0x1fbc81[_0x231106(0x141)]();_0x18f438[_0x231106(0x17a)](printResponse,_0x18f438[_0x231106(0x199)],_0x55ff9);const _0x5481db=await _0x18f438[_0x231106(0x12b)](curlRequest);_0x18f438[_0x231106(0xd2)](printResponse,_0x18f438[_0x231106(0x157)],_0x5481db);const _0xebf062=await _0x18f438[_0x231106(0x1c2)](isTlsSupported,_0x18f438[_0x231106(0x155)]);_0x18f438[_0x231106(0x11a)](printResponse,_0x18f438[_0x231106(0x122)],_0xebf062);const _0x11aa87={};_0x11aa87[_0x231106(0x14a)]=_0x18f438[_0x231106(0xcf)],_0x11aa87[_0x231106(0x151)]=_0x1851ff;const _0x5c2d54={};_0x5c2d54[_0x231106(0x14a)]=_0x18f438[_0x231106(0x140)],_0x5c2d54['response']=_0x55ff9;const _0x24b2d7={};_0x24b2d7[_0x231106(0x14a)]=_0x18f438['SKopL'],_0x24b2d7[_0x231106(0x151)]=_0x5481db;const _0x41b6d9={};_0x41b6d9[_0x231106(0x14a)]=_0x18f438[_0x231106(0x189)],_0x41b6d9[_0x231106(0x151)]=_0xebf062;const _0x575ffa=[_0x11aa87,_0x5c2d54,_0x24b2d7,_0x41b6d9],_0x257a08=await _0x18f438[_0x231106(0x10b)](generateReport,_0x575ffa,_0x46e0ba),_0x2ebad7=new Date(),_0xc91886=_0x2ebad7[_0x231106(0xdd)]()+'_'+_0x18f438[_0x231106(0x115)](_0x2ebad7[_0x231106(0xf6)](),0x1)+'_'+_0x2ebad7[_0x231106(0x117)]()+'_'+_0x2ebad7[_0x231106(0x132)]()+'_'+_0x2ebad7[_0x231106(0x1cb)](),_0x2e7165='log/report_'+_0xc91886+_0x231106(0x11b);fs['writeFileSync'](_0x2e7165,_0x257a08,_0x18f438['zXsvC']),logger[_0x231106(0x13e)](_0x231106(0x131)+_0x2e7165),process[_0x231106(0x16a)](0x0);}catch(_0x4d2911){let _0xb7d548=_0x231106(0xee)+_0x4d2911+'\x20';logger[_0x231106(0x1b0)](_0xb7d548),_0xb7d548+='\x0a'+JSON[_0x231106(0x167)](_0x4d2911[_0x231106(0x1b4)]),logger['debug'](_0x231106(0x146)+_0x4d2911[_0x231106(0x1b4)]);if(_0x555f01){const _0x986214={};_0x986214[_0x231106(0x193)]=WS_EVENTS[_0x231106(0x10f)],_0x986214[_0x231106(0xf3)]=_0xb7d548,webSocketUtils[_0x231106(0x1af)](_0x555f01,_0x986214,_0x18f438[_0x231106(0x1a0)],!![]);}await webSocketUtils[_0x231106(0xda)](0x7d0);const _0x30c05c={};_0x30c05c['error']=_0xb7d548,await _0x18f438[_0x231106(0xf9)](sendInstrumentationEvent,_0x24fcfb,_0x18f438[_0x231106(0x149)],messageTypes[_0x231106(0x11e)],_0x18f438[_0x231106(0xf1)],_0x30c05c,_0x24fcfb),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a18_0x1b96f7=a18_0x1ff9;(function(_0x3b7fe3,_0x20732a){const _0x21b239=a18_0x1ff9,_0x2ad848=_0x3b7fe3();while(!![]){try{const _0x387a64=parseInt(_0x21b239(0x13a))/0x1+parseInt(_0x21b239(0x139))/0x2*(-parseInt(_0x21b239(0x13e))/0x3)+parseInt(_0x21b239(0x130))/0x4*(-parseInt(_0x21b239(0x13d))/0x5)+-parseInt(_0x21b239(0x12b))/0x6*(-parseInt(_0x21b239(0x12e))/0x7)+parseInt(_0x21b239(0x13c))/0x8+parseInt(_0x21b239(0x128))/0x9+-parseInt(_0x21b239(0x137))/0xa;if(_0x387a64===_0x20732a)break;else _0x2ad848['push'](_0x2ad848['shift']());}catch(_0x3ff225){_0x2ad848['push'](_0x2ad848['shift']());}}}(a18_0x5754,0xa6826));function a18_0x5754(){const _0x33e628=['desc','start','strict','commandDir','builder','21878720VTSczY','handler','289042maErMQ','1155287lAdVjD','Uewjp','4450144qStgwI','294990cXqeaI','9eOkfmR','usage','bFUEG','recommendCommands','4083534TYcwPj','demandCommand','../config/constants','292260PhjPHp','start_commands','command','189HtwzOF','Start\x20an\x20existing\x20Automation\x20grid.','12CtPJqc','help'];a18_0x5754=function(){return _0x33e628;};return a18_0x5754();}function a18_0x1ff9(_0x5d722d,_0x208459){const _0x575481=a18_0x5754();return a18_0x1ff9=function(_0x1ff92c,_0x4ea4fe){_0x1ff92c=_0x1ff92c-0x126;let _0x55811f=_0x575481[_0x1ff92c];return _0x55811f;},a18_0x1ff9(_0x5d722d,_0x208459);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1b96f7(0x12a));exports[a18_0x1b96f7(0x12d)]=a18_0x1b96f7(0x133),exports[a18_0x1b96f7(0x132)]=a18_0x1b96f7(0x12f),exports[a18_0x1b96f7(0x136)]=function(_0x2c39ea){const _0x43ea0f=a18_0x1b96f7,_0x430db5={};_0x430db5[_0x43ea0f(0x126)]=_0x43ea0f(0x12c),_0x430db5['Uewjp']=_0x43ea0f(0x131);const _0x2211d7=_0x430db5;return _0x2c39ea[_0x43ea0f(0x13f)](HELP_HEADER_MESSAGE[_0x43ea0f(0x133)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x43ea0f(0x135)](_0x2211d7['bFUEG'])[_0x43ea0f(0x129)]()[_0x43ea0f(0x127)]()[_0x43ea0f(0x134)]()['help'](_0x2211d7[_0x43ea0f(0x13b)]);},exports[a18_0x1b96f7(0x138)]=function(_0x35f552){};
1
+ const a18_0x30a1e2=a18_0x179f;(function(_0x35901b,_0x273a08){const _0x5061c5=a18_0x179f,_0x43746f=_0x35901b();while(!![]){try{const _0x1f2bba=parseInt(_0x5061c5(0xe1))/0x1+parseInt(_0x5061c5(0xdd))/0x2*(parseInt(_0x5061c5(0xe7))/0x3)+parseInt(_0x5061c5(0xe2))/0x4*(parseInt(_0x5061c5(0xdc))/0x5)+parseInt(_0x5061c5(0xd1))/0x6*(parseInt(_0x5061c5(0xd7))/0x7)+parseInt(_0x5061c5(0xd5))/0x8+-parseInt(_0x5061c5(0xd6))/0x9*(parseInt(_0x5061c5(0xd0))/0xa)+parseInt(_0x5061c5(0xd4))/0xb*(-parseInt(_0x5061c5(0xda))/0xc);if(_0x1f2bba===_0x273a08)break;else _0x43746f['push'](_0x43746f['shift']());}catch(_0x47ad23){_0x43746f['push'](_0x43746f['shift']());}}}(a18_0x4045,0x73bd5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x30a1e2(0xe5));function a18_0x4045(){const _0x356008=['start_commands','40kHCKmZ','6DQBtMZ','help','demandCommand','6454811XxlOOt','549552KKCBMt','57087yOyuOg','5467721sQrzhZ','Start\x20an\x20existing\x20Automation\x20grid.','epilogue','36RTYJoq','command','255NzRrpy','2jOcEds','commandDir','recommendCommands','handler','419026aBJJxK','63516GTBoLt','lPEyH','usage','../config/constants','strict','543576vFcoRT','desc'];a18_0x4045=function(){return _0x356008;};return a18_0x4045();}function a18_0x179f(_0x444bbe,_0x653cc4){const _0x4045dc=a18_0x4045();return a18_0x179f=function(_0x179f01,_0x56d0a1){_0x179f01=_0x179f01-0xd0;let _0x30d043=_0x4045dc[_0x179f01];return _0x30d043;},a18_0x179f(_0x444bbe,_0x653cc4);}exports[a18_0x30a1e2(0xdb)]='start',exports[a18_0x30a1e2(0xe8)]=a18_0x30a1e2(0xd8),exports['builder']=function(_0x92c5b1){const _0x190f45=a18_0x30a1e2,_0x5d3e71={};_0x5d3e71['HgHma']=_0x190f45(0xe9),_0x5d3e71[_0x190f45(0xe3)]='help';const _0x49b200=_0x5d3e71;return _0x92c5b1[_0x190f45(0xe4)](HELP_HEADER_MESSAGE['start'])[_0x190f45(0xd9)](HELP_FOOTER_MESSAGE)[_0x190f45(0xde)](_0x49b200['HgHma'])[_0x190f45(0xd3)]()[_0x190f45(0xdf)]()[_0x190f45(0xe6)]()[_0x190f45(0xd2)](_0x49b200[_0x190f45(0xe3)]);},exports[a18_0x30a1e2(0xe0)]=function(_0x390144){};
@@ -1 +1 @@
1
- const a19_0x3c67a7=a19_0x4dcb;(function(_0xe12203,_0x1d03cb){const _0x13eb35=a19_0x4dcb,_0x545e37=_0xe12203();while(!![]){try{const _0x281fbf=-parseInt(_0x13eb35(0xb7))/0x1*(-parseInt(_0x13eb35(0xd7))/0x2)+-parseInt(_0x13eb35(0xbb))/0x3+parseInt(_0x13eb35(0xe6))/0x4+-parseInt(_0x13eb35(0xa6))/0x5+-parseInt(_0x13eb35(0xb1))/0x6*(-parseInt(_0x13eb35(0xd4))/0x7)+-parseInt(_0x13eb35(0xcb))/0x8+-parseInt(_0x13eb35(0xcf))/0x9*(-parseInt(_0x13eb35(0xc6))/0xa);if(_0x281fbf===_0x1d03cb)break;else _0x545e37['push'](_0x545e37['shift']());}catch(_0x57fa27){_0x545e37['push'](_0x545e37['shift']());}}}(a19_0x46ee,0xc6d5a));function a19_0x46ee(){const _0xc2cef6=['49TdGAZR','info','bstackUsername','2vEfVrJ','Adding\x20Websocket\x20listeners','../../utils/createk8sClient','replace','hjJel','ERROR','options','statusCode','connectionTimeout','gridId','addListeners','command','JqHHI','bstackAccesskey','unauthorised','3505876gbITrK','<PasswordPlaceholder>','grid-id','body','OxbcR','parse','type','name','menyG','uuMlP','user','password','../../utils/gridComponents','MAliK','argv','YQmTW','UaNow','Gutut','Start\x20an\x20existing\x20Automation\x20grid.','boolean','tdXCS','../../cloudproviders/utils','error','7111910oiHqra','description','../../utils/utilityMethods','clusterName','builder','INFO','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','RpgXp','OMOmv','server-error','462846lBtZEJ','reconnecting-websocket','../../utils/webSocketUtils','RDLqS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','280794xQrlJa','zflWd','desc','region','2080134bQJHWC','debug','jhQSL','readFileSync','usage','clusterRegion','Grid\x20started','Starting\x20grid\x20','ZuZSd','Skip\x20insecure\x20cert\x20verification.','Browserstack','2990VEgoHk','start-grid-called','<UsernamePlaceholder>','stringify','IWakk','9313176ZIojzS','cloudProvider','EMTiy','exit','72153yyjgPy','username','start','../../utils/instrumentationUtils','TOSyT'];a19_0x46ee=function(){return _0xc2cef6;};return a19_0x46ee();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3c67a7(0xb2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x3c67a7(0xa8)),{scaleUpHubDeployment}=require(a19_0x3c67a7(0xf2)),{sendInstrumentationEvent}=require(a19_0x3c67a7(0xd2)),webSocketUtils=require(a19_0x3c67a7(0xb3)),{createK8sClient}=require(a19_0x3c67a7(0xd9)),{getCloudProviderObject}=require(a19_0x3c67a7(0xa4));function a19_0x4dcb(_0x44cf5f,_0x341ff7){const _0x46eeee=a19_0x46ee();return a19_0x4dcb=function(_0x4dcb57,_0x321c42){_0x4dcb57=_0x4dcb57-0x9f;let _0x5f0735=_0x46eeee[_0x4dcb57];return _0x5f0735;},a19_0x4dcb(_0x44cf5f,_0x341ff7);}exports[a19_0x3c67a7(0xe2)]='grid',exports[a19_0x3c67a7(0xb9)]=a19_0x3c67a7(0xa1),exports[a19_0x3c67a7(0xaa)]=function(_0xb34c27){const _0x5f27c1=a19_0x3c67a7,_0x565324={};_0x565324[_0x5f27c1(0xe3)]=_0x5f27c1(0xad),_0x565324[_0x5f27c1(0xae)]='string',_0x565324[_0x5f27c1(0xb8)]=_0x5f27c1(0xc4),_0x565324[_0x5f27c1(0xd3)]=_0x5f27c1(0xa2),_0x565324[_0x5f27c1(0xf5)]='help';const _0x57e5fd=_0x565324,_0x6abb3b={};_0x6abb3b[_0x5f27c1(0xa7)]=_0x57e5fd['JqHHI'],_0x6abb3b[_0x5f27c1(0xec)]=_0x57e5fd[_0x5f27c1(0xae)];const _0xa8859b={};_0xa8859b[_0x5f27c1(0xa7)]=_0x57e5fd[_0x5f27c1(0xb8)],_0xa8859b[_0x5f27c1(0xec)]=_0x57e5fd['TOSyT'],_0xa8859b['default']=![];const _0x4e80e1={};return _0x4e80e1[_0x5f27c1(0xe8)]=_0x6abb3b,_0x4e80e1['skip-tls-cert-verify']=_0xa8859b,_0xb34c27[_0x5f27c1(0xbf)](HELP_HEADER_MESSAGE[_0x5f27c1(0xd1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f27c1(0xdd)](_0x4e80e1)['help'](_0x57e5fd[_0x5f27c1(0xf5)])[_0x5f27c1(0xf4)];},exports['handler']=async function(_0x46a9dc){const _0x16ee09=a19_0x3c67a7,_0x2dc354={'IllXl':_0x16ee09(0xb6),'wtFyF':function(_0x26aa03){return _0x26aa03();},'igMvz':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UaNow':function(_0x468a02,_0x28b913,_0x20f433,_0x4f3cb9,_0x35b57f,_0x677ff8,_0x529b74){return _0x468a02(_0x28b913,_0x20f433,_0x4f3cb9,_0x35b57f,_0x677ff8,_0x529b74);},'OxbcR':_0x16ee09(0xc7),'Gutut':'init-not-called','ilxNp':function(_0x168fae){return _0x168fae();},'RDLqS':_0x16ee09(0xc8),'MAliK':_0x16ee09(0xe7),'menyG':_0x16ee09(0xd8),'IWakk':function(_0x540f23,_0x2d36a7,_0x4bd64e,_0x1d536d){return _0x540f23(_0x2d36a7,_0x4bd64e,_0x1d536d);},'EMTiy':function(_0x4492c1,_0xf71466,_0x1721cc){return _0x4492c1(_0xf71466,_0x1721cc);},'tdXCS':function(_0x980aac,_0x3c94c5,_0x1cfc63){return _0x980aac(_0x3c94c5,_0x1cfc63);},'uuMlP':_0x16ee09(0xc1),'OMOmv':function(_0x4a318a,_0x31353e){return _0x4a318a===_0x31353e;},'ZrEtt':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TPBzs':function(_0xfe79a,_0x2dd05a,_0x2ce8d5,_0x4fc4e1,_0x376169,_0x18fb67,_0x2827b5){return _0xfe79a(_0x2dd05a,_0x2ce8d5,_0x4fc4e1,_0x376169,_0x18fb67,_0x2827b5);},'hjJel':_0x16ee09(0xe5),'ZuZSd':function(_0x2afa86,_0x40ccd9,_0x4b80d3,_0x3dd835,_0x156f86,_0x543f93,_0x2ba1be){return _0x2afa86(_0x40ccd9,_0x4b80d3,_0x3dd835,_0x156f86,_0x543f93,_0x2ba1be);},'RzlUR':'invalid-grid-id','jhQSL':_0x16ee09(0xb0)};let _0x3475c6;try{!_0x46a9dc['gridId']&&(logger[_0x16ee09(0xa5)](_0x2dc354['IllXl']),process['exit'](0x1));!fs['existsSync'](_0x2dc354['wtFyF'](getCredentialsPath))&&(logger[_0x16ee09(0xa5)](_0x2dc354['igMvz']),await _0x2dc354[_0x16ee09(0x9f)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xa0)],null,_0x46a9dc),process['exit'](0x1));logger[_0x16ee09(0xd5)](_0x16ee09(0xc2)+_0x46a9dc[_0x16ee09(0xe0)]),await _0x2dc354['UaNow'](sendInstrumentationEvent,_0x46a9dc,_0x2dc354['OxbcR'],messageTypes[_0x16ee09(0xab)],null,null,_0x46a9dc);const _0x3284db=JSON[_0x16ee09(0xeb)](fs[_0x16ee09(0xbe)](_0x2dc354['ilxNp'](getCredentialsPath)));global_registry[_0x16ee09(0xd6)]=_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xd0)],global_registry[_0x16ee09(0xe4)]=_0x3284db[_0x16ee09(0xc5)]['password'];const _0xbc260e=WS_ENDPOINT[_0x16ee09(0xda)](_0x2dc354[_0x16ee09(0xb4)],_0x3284db['Browserstack'][_0x16ee09(0xd0)])[_0x16ee09(0xda)](_0x2dc354[_0x16ee09(0xf3)],_0x3284db[_0x16ee09(0xc5)]['password']),_0x20c44c={};_0x20c44c['WebSocket']=ws,_0x20c44c[_0x16ee09(0xdf)]=0x36ee80,_0x3475c6=new ReconnectingWebSocket(_0xbc260e,[],_0x20c44c),logger[_0x16ee09(0xbc)](_0x2dc354[_0x16ee09(0xee)]),webSocketUtils[_0x16ee09(0xe1)](_0x3475c6,_0x46a9dc[_0x16ee09(0xf0)],_0x46a9dc[_0x16ee09(0xf1)]);const [_0x605c03,_0x2a1649]=await _0x2dc354[_0x16ee09(0xca)](getGridDetails,_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xd0)],_0x3284db[_0x16ee09(0xc5)][_0x16ee09(0xf1)],_0x46a9dc[_0x16ee09(0xe0)]);if(_0x2a1649){const _0x390710=_0x2a1649[_0x16ee09(0xd5)];global_registry[_0x16ee09(0xcc)]=_0x390710[_0x16ee09(0xcc)],global_registry[_0x16ee09(0xc0)]=_0x390710[_0x16ee09(0xba)],global_registry['clusterName']=_0x390710[_0x16ee09(0xa9)];const _0x46c041=await _0x2dc354[_0x16ee09(0x9f)](getCloudProviderObject,_0x390710[_0x16ee09(0xcc)],_0x390710['clusterName'],_0x390710[_0x16ee09(0xed)],_0x3475c6,webSocketUtils,_0x46a9dc),[_0x2f7bf7,_0x14ab66,_0x5f1769,_0x6988e6,_0x44d091,_0x5729d6]=await _0x2dc354[_0x16ee09(0xcd)](createK8sClient,_0x46c041,_0x46a9dc[_0x16ee09(0xac)]);await _0x2dc354[_0x16ee09(0xa3)](scaleUpHubDeployment,_0x14ab66,_0x390710[_0x16ee09(0xed)]),logger[_0x16ee09(0xd5)](_0x2dc354[_0x16ee09(0xef)]),process[_0x16ee09(0xce)](0x0);}_0x2dc354[_0x16ee09(0xaf)](_0x605c03[_0x16ee09(0xde)],0x191)&&(logger['error'](_0x2dc354['ZrEtt']),await _0x2dc354['TPBzs'](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xdb)],null,_0x46a9dc),process['exit'](0x1)),_0x2dc354[_0x16ee09(0xaf)](_0x605c03[_0x16ee09(0xde)],0x190)&&(logger[_0x16ee09(0xa5)](JSON['parse'](_0x605c03[_0x16ee09(0xe9)])['message']),await _0x2dc354[_0x16ee09(0xc3)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes['ERROR'],_0x2dc354['RzlUR'],null,_0x46a9dc),process[_0x16ee09(0xce)](0x1)),logger[_0x16ee09(0xa5)](_0x16ee09(0xb5)+JSON[_0x16ee09(0xc9)](_0x605c03)),await _0x2dc354[_0x16ee09(0xc3)](sendInstrumentationEvent,_0x46a9dc,_0x2dc354[_0x16ee09(0xea)],messageTypes[_0x16ee09(0xdc)],_0x2dc354[_0x16ee09(0xbd)],_0x605c03,_0x46a9dc),process['exit'](0x1);}catch(_0x425391){const _0x1b7b6b='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x425391+'\x20\x0a'+JSON[_0x16ee09(0xc9)](_0x425391['stack'])+'\x20';logger['error'](_0x1b7b6b),process[_0x16ee09(0xce)](0x1);}};
1
+ const a19_0x2c6e91=a19_0x4a8c;function a19_0x3969(){const _0x553b52=['Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','60228CDMIzu','region','password','../../utils/webSocketUtils','body','debug','gridId','info','gtcHj','init-not-called','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder','stack','<PasswordPlaceholder>','11hXUDkT','viwko','IQgUK','qruIO','clusterName','connectionTimeout','server-error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ocdes','readFileSync','ozblo','617540yGplOc','exit','epilogue','220119YofTkW','Skip\x20insecure\x20cert\x20verification.','type','statusCode','Start\x20an\x20existing\x20Automation\x20grid.','../../config/logger','udDpk','name','WebSocket','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','handler','command','../../utils/utilityMethods','1VDGPpZ','407254hnRREx','liHdZ','cloudProvider','string','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','grid-id','../../config/constants','argv','bstackUsername','lUTQL','<UsernamePlaceholder>','4ybrESy','Grid\x20started','help','HQpRj','existsSync','parse','cOOuZ','replace','30jpcYFc','SZmFK','ERROR','error','../../cloudproviders/utils','bstackAccesskey','226534zFxKzn','username','stringify','start-grid-called','INFO','ZgRgK','Adding\x20Websocket\x20listeners','mYrHx','skip-tls-cert-verify','iRnQr','2625564IgSzhx','hEXXv','2054490DtZweo','112VaYcHa','addListeners','hHpMc','Starting\x20grid\x20','MIcIf','user','../../utils/instrumentationUtils','default','../../utils/gridComponents','unauthorised','mXOeh','boolean','ANGyj','Browserstack','NCgcx'];a19_0x3969=function(){return _0x553b52;};return a19_0x3969();}function a19_0x4a8c(_0x47f2d5,_0x4e9d77){const _0x396930=a19_0x3969();return a19_0x4a8c=function(_0x4a8c2f,_0x5240ee){_0x4a8c2f=_0x4a8c2f-0x6a;let _0x22863b=_0x396930[_0x4a8c2f];return _0x22863b;},a19_0x4a8c(_0x47f2d5,_0x4e9d77);}(function(_0x4f0911,_0x40baa0){const _0x2ea4b9=a19_0x4a8c,_0x29455d=_0x4f0911();while(!![]){try{const _0x3352c4=-parseInt(_0x2ea4b9(0x9e))/0x1*(parseInt(_0x2ea4b9(0x9f))/0x2)+parseInt(_0x2ea4b9(0x91))/0x3*(-parseInt(_0x2ea4b9(0xaa))/0x4)+-parseInt(_0x2ea4b9(0x8e))/0x5+parseInt(_0x2ea4b9(0xb2))/0x6*(parseInt(_0x2ea4b9(0xb8))/0x7)+-parseInt(_0x2ea4b9(0xc5))/0x8*(-parseInt(_0x2ea4b9(0x74))/0x9)+parseInt(_0x2ea4b9(0xc4))/0xa+parseInt(_0x2ea4b9(0x83))/0xb*(parseInt(_0x2ea4b9(0xc2))/0xc);if(_0x3352c4===_0x40baa0)break;else _0x29455d['push'](_0x29455d['shift']());}catch(_0x3f1e6d){_0x29455d['push'](_0x29455d['shift']());}}}(a19_0x3969,0x442c4));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2c6e91(0xa5)),{logger}=require(a19_0x2c6e91(0x96)),{getCredentialsPath,getGridDetails}=require(a19_0x2c6e91(0x9d)),{scaleUpHubDeployment}=require(a19_0x2c6e91(0x6c)),{sendInstrumentationEvent}=require(a19_0x2c6e91(0x6a)),webSocketUtils=require(a19_0x2c6e91(0x77)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x2c6e91(0xb6));exports[a19_0x2c6e91(0x9c)]='grid',exports['desc']=a19_0x2c6e91(0x95),exports[a19_0x2c6e91(0x80)]=function(_0x1ff99c){const _0x8db710=a19_0x2c6e91,_0x27eb2e={};_0x27eb2e[_0x8db710(0xad)]=_0x8db710(0x9a),_0x27eb2e['hEXXv']=_0x8db710(0xa2),_0x27eb2e['BppYN']=_0x8db710(0x92),_0x27eb2e[_0x8db710(0x70)]=_0x8db710(0x6f),_0x27eb2e[_0x8db710(0xc9)]=_0x8db710(0xac);const _0x3be1af=_0x27eb2e,_0x2a4c64={};_0x2a4c64[_0x8db710(0x7e)]=_0x3be1af[_0x8db710(0xad)],_0x2a4c64[_0x8db710(0x93)]=_0x3be1af[_0x8db710(0xc3)];const _0x298425={};_0x298425[_0x8db710(0x7e)]=_0x3be1af['BppYN'],_0x298425[_0x8db710(0x93)]=_0x3be1af['ANGyj'],_0x298425[_0x8db710(0x6b)]=![];const _0x2cd13d={};return _0x2cd13d[_0x8db710(0xa4)]=_0x2a4c64,_0x2cd13d[_0x8db710(0xc0)]=_0x298425,_0x1ff99c['usage'](HELP_HEADER_MESSAGE['start'])[_0x8db710(0x90)](HELP_FOOTER_MESSAGE)['options'](_0x2cd13d)['help'](_0x3be1af['MIcIf'])[_0x8db710(0xa6)];},exports[a19_0x2c6e91(0x9b)]=async function(_0x33843e){const _0x1372be=a19_0x2c6e91,_0x11e87d={'mXOeh':_0x1372be(0x73),'ocdes':function(_0xd83e71){return _0xd83e71();},'lUTQL':_0x1372be(0x8a),'MrbUW':function(_0x57334b,_0xa67320,_0x2662a2,_0x38485b,_0x131ce2,_0x54e683,_0x3263e0){return _0x57334b(_0xa67320,_0x2662a2,_0x38485b,_0x131ce2,_0x54e683,_0x3263e0);},'ozblo':_0x1372be(0xbb),'mYrHx':_0x1372be(0x7d),'IQgUK':function(_0x19cf41,_0x58e9f4,_0x4062cf,_0x1b7704,_0xf9b149,_0x1c8783,_0xe3e114){return _0x19cf41(_0x58e9f4,_0x4062cf,_0x1b7704,_0xf9b149,_0x1c8783,_0xe3e114);},'SENuS':_0x1372be(0xa9),'qruIO':_0x1372be(0x82),'ZgRgK':_0x1372be(0xbe),'hHpMc':function(_0x3b3761,_0x3aaf19,_0x18c839,_0x45fd1c){return _0x3b3761(_0x3aaf19,_0x18c839,_0x45fd1c);},'cOOuZ':function(_0x333551,_0x579768,_0x277068){return _0x333551(_0x579768,_0x277068);},'ITpzL':_0x1372be(0xab),'NCgcx':function(_0x233491,_0x8ceeb3){return _0x233491===_0x8ceeb3;},'iRnQr':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','liHdZ':function(_0x350290,_0x696eb1,_0x415d73,_0x4078b4,_0x31c426,_0xb783bd,_0x1e3233){return _0x350290(_0x696eb1,_0x415d73,_0x4078b4,_0x31c426,_0xb783bd,_0x1e3233);},'SZmFK':_0x1372be(0x6d),'udDpk':'invalid-grid-id','gtcHj':function(_0x3652d2,_0x39cb35,_0x3455b3,_0x4d7483,_0x4a10b9,_0x3af535,_0x54a8bb){return _0x3652d2(_0x39cb35,_0x3455b3,_0x4d7483,_0x4a10b9,_0x3af535,_0x54a8bb);},'viwko':_0x1372be(0x89)};let _0x588807;try{!_0x33843e[_0x1372be(0x7a)]&&(logger[_0x1372be(0xb5)](_0x11e87d[_0x1372be(0x6e)]),process['exit'](0x1));!fs[_0x1372be(0xae)](_0x11e87d[_0x1372be(0x8b)](getCredentialsPath))&&(logger[_0x1372be(0xb5)](_0x11e87d[_0x1372be(0xa8)]),await _0x11e87d['MrbUW'](sendInstrumentationEvent,_0x33843e,_0x11e87d[_0x1372be(0x8d)],messageTypes[_0x1372be(0xb4)],_0x11e87d[_0x1372be(0xbf)],null,_0x33843e),process[_0x1372be(0x8f)](0x1));logger[_0x1372be(0x7b)](_0x1372be(0xc8)+_0x33843e[_0x1372be(0x7a)]),await _0x11e87d[_0x1372be(0x85)](sendInstrumentationEvent,_0x33843e,_0x11e87d[_0x1372be(0x8d)],messageTypes[_0x1372be(0xbc)],null,null,_0x33843e);const _0x294b4a=JSON[_0x1372be(0xaf)](fs[_0x1372be(0x8c)](_0x11e87d['ocdes'](getCredentialsPath)));global_registry[_0x1372be(0xa7)]=_0x294b4a[_0x1372be(0x71)][_0x1372be(0xb9)],global_registry[_0x1372be(0xb7)]=_0x294b4a[_0x1372be(0x71)][_0x1372be(0x76)];const _0x4abea4=WS_ENDPOINT[_0x1372be(0xb1)](_0x11e87d['SENuS'],_0x294b4a[_0x1372be(0x71)][_0x1372be(0xb9)])[_0x1372be(0xb1)](_0x11e87d[_0x1372be(0x86)],_0x294b4a[_0x1372be(0x71)]['password']),_0x215777={};_0x215777[_0x1372be(0x99)]=ws,_0x215777[_0x1372be(0x88)]=0x36ee80,_0x588807=new ReconnectingWebSocket(_0x4abea4,[],_0x215777),logger[_0x1372be(0x79)](_0x11e87d[_0x1372be(0xbd)]),webSocketUtils[_0x1372be(0xc6)](_0x588807,_0x33843e[_0x1372be(0xca)],_0x33843e['password']);const [_0x437cf2,_0x26c880]=await _0x11e87d[_0x1372be(0xc7)](getGridDetails,_0x294b4a[_0x1372be(0x71)]['username'],_0x294b4a[_0x1372be(0x71)][_0x1372be(0x76)],_0x33843e[_0x1372be(0x7a)]);if(_0x26c880){const _0x114191=_0x26c880[_0x1372be(0x7b)];global_registry['cloudProvider']=_0x114191[_0x1372be(0xa1)],global_registry['clusterRegion']=_0x114191[_0x1372be(0x75)],global_registry[_0x1372be(0x87)]=_0x114191[_0x1372be(0x87)];const _0x50acc7=await _0x11e87d['IQgUK'](getCloudProviderObject,_0x114191[_0x1372be(0xa1)],_0x114191[_0x1372be(0x87)],_0x114191[_0x1372be(0x98)],_0x588807,webSocketUtils,_0x33843e),[_0x751f25,_0x1f3efc,_0x56cb2a,_0x383846,_0x4119e2,_0x5b02db]=await _0x11e87d[_0x1372be(0xb0)](createK8sClient,_0x50acc7,_0x33843e['skipTlsCertVerify']);await _0x11e87d[_0x1372be(0xb0)](scaleUpHubDeployment,_0x1f3efc,_0x114191[_0x1372be(0x98)]),logger['info'](_0x11e87d['ITpzL']),process[_0x1372be(0x8f)](0x0);}_0x11e87d['NCgcx'](_0x437cf2[_0x1372be(0x94)],0x191)&&(logger[_0x1372be(0xb5)](_0x11e87d[_0x1372be(0xc1)]),await _0x11e87d['liHdZ'](sendInstrumentationEvent,_0x33843e,_0x11e87d[_0x1372be(0x8d)],messageTypes[_0x1372be(0xb4)],_0x11e87d[_0x1372be(0xb3)],null,_0x33843e),process[_0x1372be(0x8f)](0x1)),_0x11e87d[_0x1372be(0x72)](_0x437cf2[_0x1372be(0x94)],0x190)&&(logger['error'](JSON[_0x1372be(0xaf)](_0x437cf2[_0x1372be(0x78)])['message']),await _0x11e87d[_0x1372be(0xa0)](sendInstrumentationEvent,_0x33843e,_0x11e87d['ozblo'],messageTypes['ERROR'],_0x11e87d[_0x1372be(0x97)],null,_0x33843e),process['exit'](0x1)),logger[_0x1372be(0xb5)](_0x1372be(0x7f)+JSON[_0x1372be(0xba)](_0x437cf2)),await _0x11e87d[_0x1372be(0x7c)](sendInstrumentationEvent,_0x33843e,_0x11e87d[_0x1372be(0x8d)],messageTypes[_0x1372be(0xb4)],_0x11e87d[_0x1372be(0x84)],_0x437cf2,_0x33843e),process[_0x1372be(0x8f)](0x1);}catch(_0x56787b){const _0x4dd80c=_0x1372be(0xa3)+_0x56787b+'\x20\x0a'+JSON[_0x1372be(0xba)](_0x56787b[_0x1372be(0x81)])+'\x20';logger['error'](_0x4dd80c),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0x507def=a20_0x4a4e;function a20_0x4a4e(_0x11cf95,_0x5a3591){const _0x191050=a20_0x1910();return a20_0x4a4e=function(_0x4a4ea0,_0x39a6ad){_0x4a4ea0=_0x4a4ea0-0x7e;let _0x5966e4=_0x191050[_0x4a4ea0];return _0x5966e4;},a20_0x4a4e(_0x11cf95,_0x5a3591);}function a20_0x1910(){const _0x4ba88b=['handler','XZqqF','usage','fTVXc','help','228102LwVZdV','91435yCSuNX','builder','12511490TpDoRb','command','787874oCMuYc','66dRCoqS','commandDir','138987ESascC','1328810rKteio','1pBesLF','stop','stop_commands','recommendCommands','../config/constants','desc','Stop\x20a\x20running\x20Automation\x20grid.','192ikMukX','1052096GgNeik'];a20_0x1910=function(){return _0x4ba88b;};return a20_0x1910();}(function(_0x5e12d8,_0x50c767){const _0x29fd3c=a20_0x4a4e,_0x44c63e=_0x5e12d8();while(!![]){try{const _0x1cf60e=parseInt(_0x29fd3c(0x8f))/0x1*(-parseInt(_0x29fd3c(0x8a))/0x2)+-parseInt(_0x29fd3c(0x85))/0x3+parseInt(_0x29fd3c(0x7f))/0x4+-parseInt(_0x29fd3c(0x86))/0x5*(parseInt(_0x29fd3c(0x8b))/0x6)+-parseInt(_0x29fd3c(0x8e))/0x7+parseInt(_0x29fd3c(0x7e))/0x8*(-parseInt(_0x29fd3c(0x8d))/0x9)+parseInt(_0x29fd3c(0x88))/0xa;if(_0x1cf60e===_0x50c767)break;else _0x44c63e['push'](_0x44c63e['shift']());}catch(_0x4ac5ae){_0x44c63e['push'](_0x44c63e['shift']());}}}(a20_0x1910,0x44fd7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x507def(0x93));exports[a20_0x507def(0x89)]='stop',exports[a20_0x507def(0x94)]=a20_0x507def(0x95),exports[a20_0x507def(0x87)]=function(_0x27ca59){const _0x39257a=a20_0x507def,_0x6e4e7d={};_0x6e4e7d['XZqqF']=_0x39257a(0x91),_0x6e4e7d[_0x39257a(0x83)]=_0x39257a(0x84);const _0x2c36a8=_0x6e4e7d;return _0x27ca59[_0x39257a(0x82)](HELP_HEADER_MESSAGE[_0x39257a(0x90)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x39257a(0x8c)](_0x2c36a8[_0x39257a(0x81)])['demandCommand']()[_0x39257a(0x92)]()['strict']()[_0x39257a(0x84)](_0x2c36a8[_0x39257a(0x83)]);},exports[a20_0x507def(0x80)]=function(_0x40ce8d){};
1
+ const a20_0x1d880c=a20_0x4858;(function(_0x529cfd,_0x594883){const _0x2e8ca3=a20_0x4858,_0x59aa36=_0x529cfd();while(!![]){try{const _0x2f0686=-parseInt(_0x2e8ca3(0x108))/0x1+-parseInt(_0x2e8ca3(0x100))/0x2+parseInt(_0x2e8ca3(0x103))/0x3*(-parseInt(_0x2e8ca3(0x109))/0x4)+-parseInt(_0x2e8ca3(0xf8))/0x5*(parseInt(_0x2e8ca3(0xff))/0x6)+parseInt(_0x2e8ca3(0x105))/0x7+-parseInt(_0x2e8ca3(0xf7))/0x8+parseInt(_0x2e8ca3(0x102))/0x9*(parseInt(_0x2e8ca3(0x106))/0xa);if(_0x2f0686===_0x594883)break;else _0x59aa36['push'](_0x59aa36['shift']());}catch(_0x4c2e86){_0x59aa36['push'](_0x59aa36['shift']());}}}(a20_0x3931,0x9712c));function a20_0x3931(){const _0x28425a=['stop_commands','WUpIV','commandDir','1517840qYVUFM','790610ABwSPB','usage','epilogue','command','demandCommand','help','builder','12qAexot','2030004lBsVDe','RYRet','2540187JQYXjD','2211dqntlu','stop','4491095mpDedZ','100soAwoE','Stop\x20a\x20running\x20Automation\x20grid.','1226222HFGtLl','532hxBqyz','desc'];a20_0x3931=function(){return _0x28425a;};return a20_0x3931();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x4858(_0x53bf05,_0x46c4de){const _0x39312f=a20_0x3931();return a20_0x4858=function(_0x485872,_0x2987ed){_0x485872=_0x485872-0xf5;let _0x3209b4=_0x39312f[_0x485872];return _0x3209b4;},a20_0x4858(_0x53bf05,_0x46c4de);}exports[a20_0x1d880c(0xfb)]=a20_0x1d880c(0x104),exports[a20_0x1d880c(0x10a)]=a20_0x1d880c(0x107),exports[a20_0x1d880c(0xfe)]=function(_0x5834ba){const _0x413264=a20_0x1d880c,_0x3ecc70={};_0x3ecc70[_0x413264(0x101)]=_0x413264(0x10b),_0x3ecc70[_0x413264(0xf5)]=_0x413264(0xfd);const _0x5dd01c=_0x3ecc70;return _0x5834ba[_0x413264(0xf9)](HELP_HEADER_MESSAGE[_0x413264(0x104)])[_0x413264(0xfa)](HELP_FOOTER_MESSAGE)[_0x413264(0xf6)](_0x5dd01c[_0x413264(0x101)])[_0x413264(0xfc)]()['recommendCommands']()['strict']()[_0x413264(0xfd)](_0x5dd01c[_0x413264(0xf5)]);},exports['handler']=function(_0xe2b4c){};
@@ -1 +1 @@
1
- const a21_0x40d87d=a21_0x1007;function a21_0x398e(){const _0x596252=['<PasswordPlaceholder>','ERROR','../../config/logger','3647124bxbblA','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','epilogue','invalid-grid-id','nXQLv','../../utils/gridComponents','grid-id','686885xbbRXG','skipTlsCertVerify','../../utils/instrumentationUtils','LwHOp','YyLDh','connectionTimeout','WebSocket','stack','command','ncGIW','../../config/constants','boolean','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','init-not-called','Adding\x20Websocket\x20listeners','string','AvxnF','JxhiN','type','36213OzIDXU','help','clusterName','gridId','region','1103893nKpIIm','unauthorised','password','argv','QkeJv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','RSFFo','cloudProvider','name','user','error','JSkcV','scNtO','XpOwE','existsSync','info','12lbBhYj','Stop\x20a\x20running\x20Automation\x20grid.','statusCode','reconnecting-websocket','1287304gBkYsH','<UsernamePlaceholder>','description','readFileSync','MEfaD','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','skip-tls-cert-verify','stop','username','body','txEhl','../../utils/createk8sClient','AMoOI','hwbLH','bstackUsername','21337376oVzXhU','usage','kgeBS','desc','../../utils/webSocketUtils','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','myUlG','exit','default','Browserstack','3620199MYxJWy','handler','DvdPQ','message','bstackAccesskey','MWcCU'];a21_0x398e=function(){return _0x596252;};return a21_0x398e();}(function(_0x2c738a,_0x2903df){const _0x59dff5=a21_0x1007,_0x401509=_0x2c738a();while(!![]){try{const _0x379683=-parseInt(_0x59dff5(0x90))/0x1+parseInt(_0x59dff5(0xa9))/0x2+-parseInt(_0x59dff5(0xc3))/0x3+-parseInt(_0x59dff5(0x76))/0x4+parseInt(_0x59dff5(0x7d))/0x5+parseInt(_0x59dff5(0xa5))/0x6*(-parseInt(_0x59dff5(0x95))/0x7)+parseInt(_0x59dff5(0xb8))/0x8;if(_0x379683===_0x2903df)break;else _0x401509['push'](_0x401509['shift']());}catch(_0x305195){_0x401509['push'](_0x401509['shift']());}}}(a21_0x398e,0xeec9c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x40d87d(0xa8)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x40d87d(0x87)),{logger}=require(a21_0x40d87d(0x75)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x40d87d(0x7b)),{sendInstrumentationEvent}=require(a21_0x40d87d(0x7f)),webSocketUtils=require(a21_0x40d87d(0xbc)),{createK8sClient}=require(a21_0x40d87d(0xb4)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x1007(_0x10a980,_0x2a6aa0){const _0x398e19=a21_0x398e();return a21_0x1007=function(_0x100775,_0x5eb099){_0x100775=_0x100775-0x75;let _0x403444=_0x398e19[_0x100775];return _0x403444;},a21_0x1007(_0x10a980,_0x2a6aa0);}exports[a21_0x40d87d(0x85)]='grid',exports[a21_0x40d87d(0xbb)]=a21_0x40d87d(0xa6),exports['builder']=function(_0x1523f8){const _0x404826=a21_0x40d87d,_0x1b98ba={};_0x1b98ba[_0x404826(0x8e)]=_0x404826(0xae),_0x1b98ba[_0x404826(0xa2)]=_0x404826(0x8c),_0x1b98ba[_0x404826(0x9b)]='Skip\x20insecure\x20cert\x20verification.',_0x1b98ba[_0x404826(0xb5)]=_0x404826(0x88),_0x1b98ba['tudoa']=_0x404826(0x91);const _0x3220d0=_0x1b98ba,_0x4cddaa={};_0x4cddaa[_0x404826(0xab)]=_0x3220d0['JxhiN'],_0x4cddaa[_0x404826(0x8f)]=_0x3220d0['XpOwE'];const _0x3aa181={};_0x3aa181['description']=_0x3220d0[_0x404826(0x9b)],_0x3aa181[_0x404826(0x8f)]=_0x3220d0[_0x404826(0xb5)],_0x3aa181[_0x404826(0xc1)]=![];const _0x535797={};return _0x535797[_0x404826(0x7c)]=_0x4cddaa,_0x535797[_0x404826(0xaf)]=_0x3aa181,_0x1523f8[_0x404826(0xb9)](HELP_HEADER_MESSAGE[_0x404826(0xb0)])[_0x404826(0x78)](HELP_FOOTER_MESSAGE)[_0x404826(0xbd)](_0x535797)['help'](_0x3220d0['tudoa'])[_0x404826(0x98)];},exports[a21_0x40d87d(0xc4)]=async function(_0x4bcdab){const _0x1398ff=a21_0x40d87d,_0x1eb35d={'YyLDh':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','kDheu':function(_0xf01e23){return _0xf01e23();},'TAwPk':_0x1398ff(0xbe),'kgeBS':function(_0x2b623b,_0x16a0d1,_0x9a1bf5,_0xf576ee,_0xab0f9f,_0x4787c0,_0x3b1989){return _0x2b623b(_0x16a0d1,_0x9a1bf5,_0xf576ee,_0xab0f9f,_0x4787c0,_0x3b1989);},'nXQLv':'stop-grid-called','JSkcV':_0x1398ff(0x8a),'hwbLH':function(_0x5e5a0b,_0x59890e,_0x2b0842,_0x215742,_0x2091e3,_0x44c1d6,_0x2f97c4){return _0x5e5a0b(_0x59890e,_0x2b0842,_0x215742,_0x2091e3,_0x44c1d6,_0x2f97c4);},'cVXGp':function(_0x26ceb9){return _0x26ceb9();},'uwmke':_0x1398ff(0xaa),'scNtO':_0x1398ff(0xc9),'DvdPQ':_0x1398ff(0x8b),'hZEcA':function(_0x3d9dff,_0x39e829,_0x5c6729,_0x288fe1){return _0x3d9dff(_0x39e829,_0x5c6729,_0x288fe1);},'AvxnF':function(_0x17bca8,_0x3fb7d1,_0x2e244f){return _0x17bca8(_0x3fb7d1,_0x2e244f);},'myUlG':function(_0xf17430,_0x371be0,_0x13d67b){return _0xf17430(_0x371be0,_0x13d67b);},'MWcCU':'Grid\x20stoppped.','LwHOp':function(_0x1e90ca,_0x536248){return _0x1e90ca===_0x536248;},'MEfaD':_0x1398ff(0x89),'txEhl':_0x1398ff(0x96),'liuPb':function(_0x2586e8,_0x22bda9){return _0x2586e8===_0x22bda9;},'QkeJv':_0x1398ff(0x79),'ncGIW':'server-error'};let _0x5a0570;try{!_0x4bcdab[_0x1398ff(0x93)]&&(logger[_0x1398ff(0x9f)](_0x1eb35d[_0x1398ff(0x81)]),process[_0x1398ff(0xc0)](0x1));!fs[_0x1398ff(0xa3)](_0x1eb35d['kDheu'](getCredentialsPath))&&(logger[_0x1398ff(0x9f)](_0x1eb35d['TAwPk']),await _0x1eb35d['kgeBS'](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0xa0)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1));logger[_0x1398ff(0xa4)]('Stopping\x20grid\x20'+_0x4bcdab[_0x1398ff(0x93)]),await _0x1eb35d[_0x1398ff(0xb6)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes['INFO'],null,null,_0x4bcdab);const _0x39cdc7=JSON['parse'](fs[_0x1398ff(0xac)](_0x1eb35d['cVXGp'](getCredentialsPath)));global_registry[_0x1398ff(0xb7)]=_0x39cdc7[_0x1398ff(0xc2)]['username'],global_registry[_0x1398ff(0xc7)]=_0x39cdc7['Browserstack'][_0x1398ff(0x97)];const _0xec67e4=WS_ENDPOINT['replace'](_0x1eb35d['uwmke'],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0xb1)])['replace'](_0x1eb35d[_0x1398ff(0xa1)],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0x97)]),_0x1ca27e={};_0x1ca27e[_0x1398ff(0x83)]=ws,_0x1ca27e[_0x1398ff(0x82)]=0x36ee80,_0x5a0570=new ReconnectingWebSocket(_0xec67e4,[],_0x1ca27e),logger['debug'](_0x1eb35d[_0x1398ff(0xc5)]),webSocketUtils['addListeners'](_0x5a0570,_0x4bcdab[_0x1398ff(0x9e)],_0x4bcdab['password']);const [_0x1a0fec,_0x406906]=await _0x1eb35d['hZEcA'](getGridDetails,_0x39cdc7['Browserstack'][_0x1398ff(0xb1)],_0x39cdc7[_0x1398ff(0xc2)][_0x1398ff(0x97)],_0x4bcdab[_0x1398ff(0x93)]);if(_0x406906){const _0xdb9db=_0x406906['info'];global_registry[_0x1398ff(0x9c)]=_0xdb9db[_0x1398ff(0x9c)],global_registry['clusterRegion']=_0xdb9db[_0x1398ff(0x94)],global_registry[_0x1398ff(0x92)]=_0xdb9db[_0x1398ff(0x92)];const _0x5eb537=await _0x1eb35d['kgeBS'](getCloudProviderObject,_0xdb9db['cloudProvider'],_0xdb9db['clusterName'],_0xdb9db[_0x1398ff(0x9d)],_0x5a0570,webSocketUtils,_0x4bcdab),[_0x2c4c11,_0x2a3c07,_0x2a07ed,_0xaa2aa7,_0x1eb8c6,_0x16f405]=await _0x1eb35d[_0x1398ff(0x8d)](createK8sClient,_0x5eb537,_0x4bcdab[_0x1398ff(0x7e)]);await _0x1eb35d[_0x1398ff(0xbf)](scaleDownHubDeployment,_0x2a3c07,_0xdb9db[_0x1398ff(0x9d)]),logger['info'](_0x1eb35d[_0x1398ff(0xc8)]),process[_0x1398ff(0xc0)](0x0);}_0x1eb35d[_0x1398ff(0x80)](_0x1a0fec[_0x1398ff(0xa7)],0x191)&&(logger[_0x1398ff(0x9f)](_0x1eb35d[_0x1398ff(0xad)]),await _0x1eb35d[_0x1398ff(0xba)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d[_0x1398ff(0x7a)],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0xb3)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1)),_0x1eb35d['liuPb'](_0x1a0fec[_0x1398ff(0xa7)],0x190)&&(logger[_0x1398ff(0x9f)](JSON['parse'](_0x1a0fec[_0x1398ff(0xb2)])[_0x1398ff(0xc6)]),await _0x1eb35d[_0x1398ff(0xb6)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d['nXQLv'],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0x99)],null,_0x4bcdab),process[_0x1398ff(0xc0)](0x1)),logger['error'](_0x1398ff(0x9a)+JSON['stringify'](_0x1a0fec)),await _0x1eb35d[_0x1398ff(0xba)](sendInstrumentationEvent,_0x4bcdab,_0x1eb35d[_0x1398ff(0x7a)],messageTypes[_0x1398ff(0xca)],_0x1eb35d[_0x1398ff(0x86)],_0x1a0fec,_0x4bcdab),process[_0x1398ff(0xc0)](0x1);}catch(_0x1f9023){const _0x5c33a5=_0x1398ff(0x77)+_0x1f9023+'\x20\x0a'+JSON['stringify'](_0x1f9023[_0x1398ff(0x84)])+'\x20';logger[_0x1398ff(0x9f)](_0x5c33a5),process[_0x1398ff(0xc0)](0x1);}};
1
+ const a21_0x187fcf=a21_0x354e;(function(_0x1bc4ea,_0x78237a){const _0x4f9bc9=a21_0x354e,_0x3a53d4=_0x1bc4ea();while(!![]){try{const _0x3885e5=-parseInt(_0x4f9bc9(0x19b))/0x1+parseInt(_0x4f9bc9(0x153))/0x2*(-parseInt(_0x4f9bc9(0x160))/0x3)+-parseInt(_0x4f9bc9(0x16f))/0x4*(parseInt(_0x4f9bc9(0x173))/0x5)+parseInt(_0x4f9bc9(0x195))/0x6*(parseInt(_0x4f9bc9(0x1a2))/0x7)+-parseInt(_0x4f9bc9(0x174))/0x8+parseInt(_0x4f9bc9(0x15e))/0x9*(-parseInt(_0x4f9bc9(0x17f))/0xa)+parseInt(_0x4f9bc9(0x159))/0xb;if(_0x3885e5===_0x78237a)break;else _0x3a53d4['push'](_0x3a53d4['shift']());}catch(_0x433c00){_0x3a53d4['push'](_0x3a53d4['shift']());}}}(a21_0x4596,0xe593a));function a21_0x4596(){const _0x57c3a7=['JtpWh','2855247lfffHH','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','debug','WebSocket','FqKCe','skip-tls-cert-verify','dxazI','../../utils/gridComponents','XAmtC','desc','clusterName','vwHif','grid-id','Stop\x20a\x20running\x20Automation\x20grid.','Adding\x20Websocket\x20listeners','3548oRrKWw','jaMDW','init-not-called','../../cloudproviders/utils','4630zphzUv','7107432DqODux','password','kAQiR','<PasswordPlaceholder>','stack','exit','readFileSync','info','replace','OpFRe','parse','10ZajozB','Browserstack','unauthorised','RjyDh','name','error','OcOiZ','cloudProvider','gridId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackUsername','../../utils/createk8sClient','UHQdL','reconnecting-websocket','qCqbc','WdtAe','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','stringify','Stopping\x20grid\x20','grid','user','138JUDUPQ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','string','command','stop-grid-called','description','141437cRUdoX','rnywf','type','cZGnV','XXgsq','qknEk','username','171031oQIZQG','cGirN','server-error','2flGFjv','ERROR','clusterRegion','connectionTimeout','OcKVu','../../utils/instrumentationUtils','38718504ycAvcS','yhopC','help','usage','YAZNA','3046500KanlpD'];a21_0x4596=function(){return _0x57c3a7;};return a21_0x4596();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x187fcf(0x18c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x187fcf(0x167)),{sendInstrumentationEvent}=require(a21_0x187fcf(0x158)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x187fcf(0x18a)),{getCloudProviderObject}=require(a21_0x187fcf(0x172));function a21_0x354e(_0x3cc5c1,_0x38f3ed){const _0x45962f=a21_0x4596();return a21_0x354e=function(_0x354ec8,_0x1497ba){_0x354ec8=_0x354ec8-0x152;let _0x5d8ac4=_0x45962f[_0x354ec8];return _0x5d8ac4;},a21_0x354e(_0x3cc5c1,_0x38f3ed);}exports[a21_0x187fcf(0x198)]=a21_0x187fcf(0x193),exports[a21_0x187fcf(0x169)]=a21_0x187fcf(0x16d),exports['builder']=function(_0x30a3aa){const _0x591b39=a21_0x187fcf,_0x489835={};_0x489835[_0x591b39(0x19c)]=_0x591b39(0x190),_0x489835[_0x591b39(0x18b)]=_0x591b39(0x197),_0x489835[_0x591b39(0x164)]='Skip\x20insecure\x20cert\x20verification.',_0x489835['yhopC']='boolean',_0x489835[_0x591b39(0x157)]=_0x591b39(0x15b);const _0x4daa8e=_0x489835,_0x1f69f6={};_0x1f69f6[_0x591b39(0x19a)]=_0x4daa8e[_0x591b39(0x19c)],_0x1f69f6[_0x591b39(0x19d)]=_0x4daa8e['UHQdL'];const _0x418cb3={};_0x418cb3[_0x591b39(0x19a)]=_0x4daa8e[_0x591b39(0x164)],_0x418cb3[_0x591b39(0x19d)]=_0x4daa8e[_0x591b39(0x15a)],_0x418cb3['default']=![];const _0x174308={};return _0x174308[_0x591b39(0x16c)]=_0x1f69f6,_0x174308[_0x591b39(0x165)]=_0x418cb3,_0x30a3aa[_0x591b39(0x15c)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x174308)[_0x591b39(0x15b)](_0x4daa8e[_0x591b39(0x157)])['argv'];},exports['handler']=async function(_0x2a7dd4){const _0x1926e2=a21_0x187fcf,_0x199d9a={'kAQiR':_0x1926e2(0x196),'XAmtC':function(_0x3b9e11){return _0x3b9e11();},'aHEzB':_0x1926e2(0x161),'mtgbt':function(_0x1e7c45,_0x210776,_0x287f19,_0x30b844,_0x3f4f30,_0x11fc31,_0x5d7c94){return _0x1e7c45(_0x210776,_0x287f19,_0x30b844,_0x3f4f30,_0x11fc31,_0x5d7c94);},'OpFRe':_0x1926e2(0x199),'OcOiZ':_0x1926e2(0x171),'JtpWh':function(_0x3899a4,_0x62c8b1,_0x4759e8,_0x3a22be,_0x6768a,_0x2d521e,_0x350b9c){return _0x3899a4(_0x62c8b1,_0x4759e8,_0x3a22be,_0x6768a,_0x2d521e,_0x350b9c);},'RjyDh':function(_0x3b3cb9){return _0x3b3cb9();},'OfMQb':'<UsernamePlaceholder>','WdtAe':_0x1926e2(0x177),'NjRUD':_0x1926e2(0x16e),'cGirN':function(_0x278a98,_0x5c6117,_0x142498,_0x1f06d9){return _0x278a98(_0x5c6117,_0x142498,_0x1f06d9);},'YAZNA':function(_0x28ed47,_0xbcac63,_0x3d0e46,_0x240a91,_0x501a3f,_0x3a32cb,_0x15a5c0){return _0x28ed47(_0xbcac63,_0x3d0e46,_0x240a91,_0x501a3f,_0x3a32cb,_0x15a5c0);},'cZGnV':function(_0x5b42c8,_0x4f95a5,_0xe2f396){return _0x5b42c8(_0x4f95a5,_0xe2f396);},'qCqbc':'Grid\x20stoppped.','dxazI':function(_0xfa2a31,_0x32f4b7){return _0xfa2a31===_0x32f4b7;},'vwHif':_0x1926e2(0x18f),'qknEk':_0x1926e2(0x181),'jaMDW':function(_0x4e69bb,_0x2680b3){return _0x4e69bb===_0x2680b3;},'sUJck':function(_0x16ac9f,_0x92926e,_0x369a45,_0xe8de82,_0x23dc2d,_0x56263e,_0xd5ab76){return _0x16ac9f(_0x92926e,_0x369a45,_0xe8de82,_0x23dc2d,_0x56263e,_0xd5ab76);},'mIHJy':'invalid-grid-id','XXgsq':_0x1926e2(0x152)};let _0x1014ee;try{!_0x2a7dd4[_0x1926e2(0x187)]&&(logger[_0x1926e2(0x184)](_0x199d9a[_0x1926e2(0x176)]),process[_0x1926e2(0x179)](0x1));!fs['existsSync'](_0x199d9a[_0x1926e2(0x168)](getCredentialsPath))&&(logger['error'](_0x199d9a['aHEzB']),await _0x199d9a['mtgbt'](sendInstrumentationEvent,_0x2a7dd4,_0x199d9a[_0x1926e2(0x17d)],messageTypes[_0x1926e2(0x154)],_0x199d9a[_0x1926e2(0x185)],null,_0x2a7dd4),process[_0x1926e2(0x179)](0x1));logger[_0x1926e2(0x17b)](_0x1926e2(0x192)+_0x2a7dd4[_0x1926e2(0x187)]),await _0x199d9a[_0x1926e2(0x15f)](sendInstrumentationEvent,_0x2a7dd4,_0x199d9a[_0x1926e2(0x17d)],messageTypes['INFO'],null,null,_0x2a7dd4);const _0x228266=JSON[_0x1926e2(0x17e)](fs[_0x1926e2(0x17a)](_0x199d9a[_0x1926e2(0x182)](getCredentialsPath)));global_registry[_0x1926e2(0x189)]=_0x228266[_0x1926e2(0x180)]['username'],global_registry['bstackAccesskey']=_0x228266[_0x1926e2(0x180)][_0x1926e2(0x175)];const _0x2a9d59=WS_ENDPOINT['replace'](_0x199d9a['OfMQb'],_0x228266[_0x1926e2(0x180)][_0x1926e2(0x1a1)])[_0x1926e2(0x17c)](_0x199d9a[_0x1926e2(0x18e)],_0x228266[_0x1926e2(0x180)][_0x1926e2(0x175)]),_0x3fb59f={};_0x3fb59f[_0x1926e2(0x163)]=ws,_0x3fb59f[_0x1926e2(0x156)]=0x36ee80,_0x1014ee=new ReconnectingWebSocket(_0x2a9d59,[],_0x3fb59f),logger[_0x1926e2(0x162)](_0x199d9a['NjRUD']),webSocketUtils['addListeners'](_0x1014ee,_0x2a7dd4[_0x1926e2(0x194)],_0x2a7dd4[_0x1926e2(0x175)]);const [_0x4590dd,_0xa964fb]=await _0x199d9a[_0x1926e2(0x1a3)](getGridDetails,_0x228266[_0x1926e2(0x180)]['username'],_0x228266[_0x1926e2(0x180)][_0x1926e2(0x175)],_0x2a7dd4[_0x1926e2(0x187)]);if(_0xa964fb){const _0x3991bf=_0xa964fb[_0x1926e2(0x17b)];global_registry[_0x1926e2(0x186)]=_0x3991bf[_0x1926e2(0x186)],global_registry[_0x1926e2(0x155)]=_0x3991bf['region'],global_registry[_0x1926e2(0x16a)]=_0x3991bf[_0x1926e2(0x16a)];const _0xe0596d=await _0x199d9a[_0x1926e2(0x15d)](getCloudProviderObject,_0x3991bf[_0x1926e2(0x186)],_0x3991bf['clusterName'],_0x3991bf[_0x1926e2(0x183)],_0x1014ee,webSocketUtils,_0x2a7dd4),[_0x326368,_0x505ef4,_0x13b25f,_0x668812,_0x35fec8,_0x448fcd]=await _0x199d9a[_0x1926e2(0x19e)](createK8sClient,_0xe0596d,_0x2a7dd4['skipTlsCertVerify']);await _0x199d9a['cZGnV'](scaleDownHubDeployment,_0x505ef4,_0x3991bf[_0x1926e2(0x183)]),logger[_0x1926e2(0x17b)](_0x199d9a[_0x1926e2(0x18d)]),process['exit'](0x0);}_0x199d9a[_0x1926e2(0x166)](_0x4590dd['statusCode'],0x191)&&(logger['error'](_0x199d9a[_0x1926e2(0x16b)]),await _0x199d9a['mtgbt'](sendInstrumentationEvent,_0x2a7dd4,_0x199d9a[_0x1926e2(0x17d)],messageTypes[_0x1926e2(0x154)],_0x199d9a[_0x1926e2(0x1a0)],null,_0x2a7dd4),process[_0x1926e2(0x179)](0x1)),_0x199d9a[_0x1926e2(0x170)](_0x4590dd['statusCode'],0x190)&&(logger['error'](JSON[_0x1926e2(0x17e)](_0x4590dd['body'])['message']),await _0x199d9a['sUJck'](sendInstrumentationEvent,_0x2a7dd4,_0x199d9a['OpFRe'],messageTypes[_0x1926e2(0x154)],_0x199d9a['mIHJy'],null,_0x2a7dd4),process[_0x1926e2(0x179)](0x1)),logger[_0x1926e2(0x184)](_0x1926e2(0x188)+JSON[_0x1926e2(0x191)](_0x4590dd)),await _0x199d9a[_0x1926e2(0x15d)](sendInstrumentationEvent,_0x2a7dd4,_0x199d9a[_0x1926e2(0x17d)],messageTypes['ERROR'],_0x199d9a[_0x1926e2(0x19f)],_0x4590dd,_0x2a7dd4),process['exit'](0x1);}catch(_0x4db0bd){const _0x3a0183='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x4db0bd+'\x20\x0a'+JSON[_0x1926e2(0x191)](_0x4db0bd[_0x1926e2(0x178)])+'\x20';logger[_0x1926e2(0x184)](_0x3a0183),process[_0x1926e2(0x179)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x50086a=a22_0x3b8f;(function(_0x4d819b,_0x490808){const _0x37e1ec=a22_0x3b8f,_0x1f8ed2=_0x4d819b();while(!![]){try{const _0x4edf8f=parseInt(_0x37e1ec(0xd3))/0x1*(parseInt(_0x37e1ec(0xb1))/0x2)+parseInt(_0x37e1ec(0xe0))/0x3*(parseInt(_0x37e1ec(0xdb))/0x4)+-parseInt(_0x37e1ec(0xd5))/0x5+parseInt(_0x37e1ec(0xcf))/0x6*(parseInt(_0x37e1ec(0xe1))/0x7)+parseInt(_0x37e1ec(0xb0))/0x8+parseInt(_0x37e1ec(0xb2))/0x9*(-parseInt(_0x37e1ec(0x9d))/0xa)+-parseInt(_0x37e1ec(0xf8))/0xb;if(_0x4edf8f===_0x490808)break;else _0x1f8ed2['push'](_0x1f8ed2['shift']());}catch(_0x4b753e){_0x1f8ed2['push'](_0x1f8ed2['shift']());}}}(a22_0x3266,0x7025d),require(a22_0x50086a(0xbe))[a22_0x50086a(0xe4)]());let gridURL=a22_0x50086a(0xca),bsApiUrl=a22_0x50086a(0xf5),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x50086a(0xa0)][a22_0x50086a(0xc0)]||a22_0x50086a(0xb6))[a22_0x50086a(0x98)]();if(_env===a22_0x50086a(0x9b)||_env==='stag')gridURL=a22_0x50086a(0xaa),bsApiUrl=a22_0x50086a(0x95),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x50086a(0xe8))&&(gridURL=a22_0x50086a(0x9e),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x50086a(0x92));exports[a22_0x50086a(0xf6)]=process[a22_0x50086a(0xa0)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x50086a(0xc7)]=process[a22_0x50086a(0xa0)][a22_0x50086a(0xc7)]||bsApiUrl,exports[a22_0x50086a(0xa3)]=process[a22_0x50086a(0xa0)]['AG_API_URL']||agApiUrl,exports[a22_0x50086a(0xea)]=a22_0x50086a(0xeb)+this['AG_API_URL']+a22_0x50086a(0xa1),exports[a22_0x50086a(0x8f)]=a22_0x50086a(0xf0),exports[a22_0x50086a(0x8a)]=a22_0x50086a(0xd4),exports[a22_0x50086a(0xdd)]=a22_0x50086a(0xe6),exports[a22_0x50086a(0xc3)]=a22_0x50086a(0x89),exports[a22_0x50086a(0xba)]=a22_0x50086a(0xa4),exports[a22_0x50086a(0xed)]=a22_0x50086a(0xb4),exports[a22_0x50086a(0xfb)]=a22_0x50086a(0xee),exports[a22_0x50086a(0xec)]=a22_0x50086a(0xd9),exports['AZURE']=a22_0x50086a(0xcd),exports[a22_0x50086a(0xae)]=a22_0x50086a(0xc8),exports[a22_0x50086a(0xda)]=[this['AWS'],this[a22_0x50086a(0xbb)],this[a22_0x50086a(0xae)]];function a22_0x3266(){const _0x301655=['configure','1659QbMXby','14idqhvp','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','config','root','high-scale-grid','REGION','pre-prod','Value','WS_ENDPOINT','wss://','TURBOSCALE_DEPLOYMENT','CLUSTER_AUTOSCALER_STACK_NAME','BSTACK-ATS-CLUSTER-HUB-HA','CLOUD_PROVIDER','credentials','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','list','SUPPORTED_CLOUD_PROVIDERS','RESOURCES','api.browserstack.com','DASHBOARD_ENDPOINT','unknown','8208574gMaxbi','browserstack:service','TURBOSCALE_CUSTOM_TAGS','CLUSTER_HUB_HA_STACK_NAME','NULL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','aws','IAM_USER_NAME','warning','LOG','gridUrl','UNKNOWN','CP_CONFIG_FILE','cliRunStarted','grid-profile','grid-api-preprod.bsstag.com','stop','split','api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','toLowerCase','CLI_ARGS_REGEX','gridProfile','staging','info','3860arUEjy','grid-preprod.bsstag.com','resourceInfo','env','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','AG_API_URL','BSTACK-ATS-CLUSTER','DEFAULT_CLUSTER_DETAILS','INFO','us-east-1','TRIAL_GRID_URL','global_registry','grid-devhst.bsstag.com','BrowserStack','log','CLI_RUN_FINISHED','GCP','Key','5194672aRTVOD','2SLqSEX','5121zbyFSR','CLUSTER','BSTACK-ATS-CLUSTER-AUTOSCALER','HELP_FOOTER_MESSAGE','prod','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','create','CLUSTER_DEP_STACK_NAME','AZURE','SUCCESS','high-scale-grid-cluster','dotenv','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BROWSERSTACK_ENV','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AWS','CLI_RUN_STARTED','cliRunFinished','[REDACTED]','BS_API_URL','gcp','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid.browserstack.com','start','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','azure','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','842034fPoGko','ERROR','WS_EVENTS','LINK_MESSAGE','619008DfmPCZ','BrowserStackIAMUser','3641120MtPRsz','messageTypes','WARNING','grid','browserstack-turboscale-grid','ALL_SUPPORTED_CLOUD_PROVIDERS','4372KcBpix','GRID_URL','DEFAULT_GRID_NAME','browserstack:managedBy'];a22_0x3266=function(){return _0x301655;};return a22_0x3266();}const a22_0x3da3e4={};a22_0x3da3e4[a22_0x50086a(0xaf)]=a22_0x50086a(0xde),a22_0x3da3e4[a22_0x50086a(0xe9)]=a22_0x50086a(0xab);const a22_0xc82ce8={};a22_0xc82ce8['Key']=a22_0x50086a(0xf9),a22_0xc82ce8[a22_0x50086a(0xe9)]=a22_0x50086a(0xe2);const common_hst_tags_list=[a22_0x3da3e4,a22_0xc82ce8];if(process[a22_0x50086a(0xa0)][a22_0x50086a(0xfa)]){const parsedTags=process[a22_0x50086a(0xa0)][a22_0x50086a(0xfa)]['split'](',');parsedTags['forEach'](_0x3b7f1c=>{const _0x4ae65b=a22_0x50086a,_0x1c149f=_0x3b7f1c[_0x4ae65b(0x94)](':'),_0x50de5a={};_0x50de5a[_0x4ae65b(0xaf)]=_0x1c149f[0x0],_0x50de5a[_0x4ae65b(0xe9)]=_0x1c149f[0x1],common_hst_tags_list['push'](_0x50de5a);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x2393fd={};a22_0x2393fd['browserstack:managedBy']=a22_0x50086a(0xab),a22_0x2393fd[a22_0x50086a(0xf9)]=a22_0x50086a(0xe2),exports['HST_CLUSTER_TAGS']=a22_0x2393fd,exports[a22_0x50086a(0xf3)]=[this[a22_0x50086a(0xc3)]];const a22_0x26d524={};a22_0x26d524[a22_0x50086a(0x8c)]=a22_0x50086a(0xac),a22_0x26d524[a22_0x50086a(0xf4)]=a22_0x50086a(0x9f),a22_0x26d524[a22_0x50086a(0xdc)]=a22_0x50086a(0x8d),a22_0x26d524[a22_0x50086a(0xc4)]=a22_0x50086a(0x90),a22_0x26d524[a22_0x50086a(0xad)]=a22_0x50086a(0xc5),exports[a22_0x50086a(0xd1)]=a22_0x26d524,exports[a22_0x50086a(0xa9)]={},exports[a22_0x50086a(0xd2)]=a22_0x50086a(0xb8);const a22_0x36a236={};a22_0x36a236['root']=a22_0x50086a(0xb7)+this[a22_0x50086a(0xd2)],a22_0x36a236['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xdf)]=a22_0x50086a(0x88)+this['LINK_MESSAGE'],a22_0x36a236[a22_0x50086a(0xb9)]=a22_0x50086a(0xbf)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)]={},a22_0x36a236[a22_0x50086a(0xc1)]=a22_0x50086a(0xc9)+this[a22_0x50086a(0xd2)],a22_0x36a236['connect']=a22_0x50086a(0xe3)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xcb)]=a22_0x50086a(0xcc)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0x93)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x50086a(0xd2)],a22_0x36a236['pre_check']=a22_0x50086a(0xf1)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0xe5)]=a22_0x50086a(0x96)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0xd8)]=a22_0x50086a(0xa2)+this[a22_0x50086a(0xd2)],a22_0x36a236[a22_0x50086a(0xf2)][a22_0x50086a(0x9a)]=a22_0x50086a(0xc2)+this[a22_0x50086a(0xd2)],exports['HELP_HEADER_MESSAGE']=a22_0x36a236,exports[a22_0x50086a(0xb5)]=a22_0x50086a(0xce);const a22_0x577d26={};function a22_0x3b8f(_0x1aaaa6,_0x79a752){const _0x3266a8=a22_0x3266();return a22_0x3b8f=function(_0x3b8f5a,_0x38c978){_0x3b8f5a=_0x3b8f5a-0x88;let _0x549345=_0x3266a8[_0x3b8f5a];return _0x549345;},a22_0x3b8f(_0x1aaaa6,_0x79a752);}a22_0x577d26[a22_0x50086a(0xbc)]='success',a22_0x577d26[a22_0x50086a(0xd0)]='error',a22_0x577d26[a22_0x50086a(0xa6)]=a22_0x50086a(0x9c),a22_0x577d26[a22_0x50086a(0xd7)]=a22_0x50086a(0x8b),a22_0x577d26[a22_0x50086a(0x8e)]=a22_0x50086a(0xf7),a22_0x577d26[a22_0x50086a(0xfc)]=null,exports[a22_0x50086a(0xd6)]=a22_0x577d26,exports[a22_0x50086a(0x99)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x50086a(0xc6);const a22_0x29e9f7={};a22_0x29e9f7[a22_0x50086a(0x91)]=a22_0x50086a(0x97);const a22_0x23b957={};a22_0x23b957['pre-check']=a22_0x29e9f7,exports['MessageDescription']=a22_0x23b957,exports[a22_0x50086a(0xa8)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x3dda79={};a22_0x3dda79[a22_0x50086a(0xb3)]=a22_0x50086a(0xbd),a22_0x3dda79[a22_0x50086a(0xef)]=a22_0x50086a(0x89),a22_0x3dda79[a22_0x50086a(0xe7)]=a22_0x50086a(0xa7),exports[a22_0x50086a(0xa5)]=a22_0x3dda79;
1
+ const a22_0x2724d8=a22_0x1a01;(function(_0x33e262,_0x24e5d0){const _0x2ff7f9=a22_0x1a01,_0x39b0b5=_0x33e262();while(!![]){try{const _0x47fec7=parseInt(_0x2ff7f9(0x181))/0x1*(-parseInt(_0x2ff7f9(0x15e))/0x2)+parseInt(_0x2ff7f9(0x18a))/0x3+parseInt(_0x2ff7f9(0x13a))/0x4*(parseInt(_0x2ff7f9(0x183))/0x5)+-parseInt(_0x2ff7f9(0x13b))/0x6*(-parseInt(_0x2ff7f9(0x13c))/0x7)+parseInt(_0x2ff7f9(0x18e))/0x8+parseInt(_0x2ff7f9(0x135))/0x9+-parseInt(_0x2ff7f9(0x177))/0xa;if(_0x47fec7===_0x24e5d0)break;else _0x39b0b5['push'](_0x39b0b5['shift']());}catch(_0x26284f){_0x39b0b5['push'](_0x39b0b5['shift']());}}}(a22_0x21ab,0x31cbc),require('dotenv')['config']());let gridURL=a22_0x2724d8(0x15b),bsApiUrl=a22_0x2724d8(0x16b),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x2724d8(0x140)][a22_0x2724d8(0x16c)]||'prod')[a22_0x2724d8(0x17b)]();if(_env===a22_0x2724d8(0x151)||_env===a22_0x2724d8(0x15f))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x2724d8(0x162))&&(gridURL=a22_0x2724d8(0x172),bsApiUrl=a22_0x2724d8(0x16e),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x2724d8(0x14a)]=process[a22_0x2724d8(0x140)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x2724d8(0x18c)]=process[a22_0x2724d8(0x140)][a22_0x2724d8(0x18c)]||bsApiUrl,exports[a22_0x2724d8(0x15c)]=process[a22_0x2724d8(0x140)]['AG_API_URL']||agApiUrl,exports[a22_0x2724d8(0x185)]=a22_0x2724d8(0x180)+this[a22_0x2724d8(0x15c)]+a22_0x2724d8(0x18d),exports[a22_0x2724d8(0x17f)]=a22_0x2724d8(0x14c),exports[a22_0x2724d8(0x164)]=a22_0x2724d8(0x174),exports[a22_0x2724d8(0x136)]=a22_0x2724d8(0x189),exports[a22_0x2724d8(0x14e)]=a22_0x2724d8(0x167),exports[a22_0x2724d8(0x176)]=a22_0x2724d8(0x156),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x2724d8(0x16a),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x2724d8(0x175),exports[a22_0x2724d8(0x184)]=a22_0x2724d8(0x14d),exports['AZURE']=a22_0x2724d8(0x173),exports[a22_0x2724d8(0x169)]=a22_0x2724d8(0x192),exports[a22_0x2724d8(0x12e)]=[this[a22_0x2724d8(0x14e)],this[a22_0x2724d8(0x12f)],this['GCP']];const a22_0x4af78c={};a22_0x4af78c[a22_0x2724d8(0x12b)]=a22_0x2724d8(0x14f),a22_0x4af78c['Value']=a22_0x2724d8(0x186);const a22_0x4a1e20={};function a22_0x1a01(_0x584345,_0x718ca7){const _0x21abe5=a22_0x21ab();return a22_0x1a01=function(_0x1a015e,_0x3edb87){_0x1a015e=_0x1a015e-0x127;let _0x5ddf1c=_0x21abe5[_0x1a015e];return _0x5ddf1c;},a22_0x1a01(_0x584345,_0x718ca7);}a22_0x4a1e20['Key']=a22_0x2724d8(0x128),a22_0x4a1e20[a22_0x2724d8(0x182)]=a22_0x2724d8(0x179);const common_hst_tags_list=[a22_0x4af78c,a22_0x4a1e20];if(process[a22_0x2724d8(0x140)][a22_0x2724d8(0x159)]){const parsedTags=process[a22_0x2724d8(0x140)][a22_0x2724d8(0x159)]['split'](',');parsedTags['forEach'](_0x1d3706=>{const _0x47ea03=a22_0x2724d8,_0x23f1d5=_0x1d3706[_0x47ea03(0x150)](':'),_0x2184eb={};_0x2184eb[_0x47ea03(0x12b)]=_0x23f1d5[0x0],_0x2184eb[_0x47ea03(0x182)]=_0x23f1d5[0x1],common_hst_tags_list[_0x47ea03(0x171)](_0x2184eb);});}exports[a22_0x2724d8(0x17a)]=common_hst_tags_list;const a22_0x16fb03={};a22_0x16fb03[a22_0x2724d8(0x14f)]=a22_0x2724d8(0x186),a22_0x16fb03[a22_0x2724d8(0x128)]=a22_0x2724d8(0x179),exports[a22_0x2724d8(0x168)]=a22_0x16fb03,exports[a22_0x2724d8(0x134)]=[this[a22_0x2724d8(0x14e)]];const a22_0x4136e6={};a22_0x4136e6[a22_0x2724d8(0x160)]=a22_0x2724d8(0x188),a22_0x4136e6['RESOURCES']=a22_0x2724d8(0x166),a22_0x4136e6[a22_0x2724d8(0x187)]=a22_0x2724d8(0x145),a22_0x4136e6['CLI_RUN_STARTED']=a22_0x2724d8(0x127),a22_0x4136e6[a22_0x2724d8(0x17e)]=a22_0x2724d8(0x146),exports[a22_0x2724d8(0x144)]=a22_0x4136e6,exports['global_registry']={},exports[a22_0x2724d8(0x12a)]=a22_0x2724d8(0x12c);function a22_0x21ab(){const _0x3abcc4=['CLI_RUN_FINISHED','CP_CONFIG_FILE','wss://','11EWiTBI','Value','5PdOFxV','TURBOSCALE_DEPLOYMENT','WS_ENDPOINT','BrowserStack','GRID_URL','log','high-scale-grid','1057782CekIOf','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','BS_API_URL','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','2226072TIFTcV','[REDACTED]','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','NULL','gcp','cliRunStarted','browserstack:service','gridProfile','LINK_MESSAGE','Key','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','ALL_SUPPORTED_CLOUD_PROVIDERS','AZURE','TRIAL_GRID_URL','root','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','info','SUPPORTED_CLOUD_PROVIDERS','3219795uHOeuO','DEFAULT_GRID_NAME','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','ERROR','configure','436116VosrEU','221862ATPQxA','77nWrIWA','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','stop','connect','env','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','MessageDescription','WS_EVENTS','gridUrl','cliRunFinished','RAW_ARGS_REGEX','init','us-east-1','DASHBOARD_ENDPOINT','list','credentials','browserstack-turboscale-grid','AWS','browserstack:managedBy','split','staging','error','WARNING','pre_check','HELP_HEADER_MESSAGE','BSTACK-ATS-CLUSTER','start','high-scale-grid-cluster','TURBOSCALE_CUSTOM_TAGS','warning','grid.browserstack.com','AG_API_URL','CLI_ARGS_REGEX','48814dzGxlW','stag','LOG','create','pre-prod','CLOUD_PROVIDER','IAM_USER_NAME','REDACTED','resourceInfo','aws','HST_CLUSTER_TAGS','GCP','BSTACK-ATS-CLUSTER-AUTOSCALER','api.browserstack.com','BROWSERSTACK_ENV','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','api-preprod.bsstag.com','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','DEFAULT_CLUSTER_DETAILS','push','grid-preprod.bsstag.com','azure','BrowserStackIAMUser','BSTACK-ATS-CLUSTER-HUB-HA','CLUSTER_DEP_STACK_NAME','10319430JkKxVS','grid-profile','BrowserStack-Automate-TurboScale','COMMON_HST_TAGS','toLowerCase','pre-check','messageTypes'];a22_0x21ab=function(){return _0x3abcc4;};return a22_0x21ab();}const a22_0x4878cb={};a22_0x4878cb[a22_0x2724d8(0x131)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this['LINK_MESSAGE'],a22_0x4878cb[a22_0x2724d8(0x148)]=a22_0x2724d8(0x137)+this['LINK_MESSAGE'],a22_0x4878cb[a22_0x2724d8(0x139)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x2724d8(0x12a)],a22_0x4878cb[a22_0x2724d8(0x161)]=a22_0x2724d8(0x142)+this[a22_0x2724d8(0x12a)],a22_0x4878cb[a22_0x2724d8(0x14b)]={},a22_0x4878cb['delete']=a22_0x2724d8(0x12d)+this[a22_0x2724d8(0x12a)],a22_0x4878cb[a22_0x2724d8(0x13f)]=a22_0x2724d8(0x16f)+this[a22_0x2724d8(0x12a)],a22_0x4878cb[a22_0x2724d8(0x157)]=a22_0x2724d8(0x13d)+this[a22_0x2724d8(0x12a)],a22_0x4878cb[a22_0x2724d8(0x13e)]=a22_0x2724d8(0x18b)+this[a22_0x2724d8(0x12a)],a22_0x4878cb[a22_0x2724d8(0x154)]=a22_0x2724d8(0x16d)+this['LINK_MESSAGE'],a22_0x4878cb[a22_0x2724d8(0x14b)][a22_0x2724d8(0x131)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x4878cb[a22_0x2724d8(0x14b)]['grid']=a22_0x2724d8(0x141)+this[a22_0x2724d8(0x12a)],a22_0x4878cb[a22_0x2724d8(0x14b)][a22_0x2724d8(0x129)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x2724d8(0x12a)],exports[a22_0x2724d8(0x155)]=a22_0x4878cb,exports['HELP_FOOTER_MESSAGE']=a22_0x2724d8(0x190);const a22_0x73072f={};a22_0x73072f['SUCCESS']='success',a22_0x73072f[a22_0x2724d8(0x138)]=a22_0x2724d8(0x152),a22_0x73072f['INFO']=a22_0x2724d8(0x133),a22_0x73072f[a22_0x2724d8(0x153)]=a22_0x2724d8(0x15a),a22_0x73072f['UNKNOWN']='unknown',a22_0x73072f[a22_0x2724d8(0x191)]=null,exports[a22_0x2724d8(0x17d)]=a22_0x73072f,exports[a22_0x2724d8(0x15d)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2724d8(0x147)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2724d8(0x165)]=a22_0x2724d8(0x18f);const a22_0xcef88f={};a22_0xcef88f[a22_0x2724d8(0x178)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0xf60aa3={};a22_0xf60aa3[a22_0x2724d8(0x17c)]=a22_0xcef88f,exports[a22_0x2724d8(0x143)]=a22_0xf60aa3,exports[a22_0x2724d8(0x130)]=a22_0x2724d8(0x132);const a22_0x587d70={};a22_0x587d70['CLUSTER']=a22_0x2724d8(0x158),a22_0x587d70[a22_0x2724d8(0x163)]=a22_0x2724d8(0x167),a22_0x587d70['REGION']=a22_0x2724d8(0x149),exports[a22_0x2724d8(0x170)]=a22_0x587d70;
@@ -1 +1 @@
1
- const a23_0x211a41=a23_0x5873;function a23_0x5873(_0x18f089,_0x28c624){const _0x20e7e5=a23_0x20e7();return a23_0x5873=function(_0x58731f,_0x1f7a5d){_0x58731f=_0x58731f-0xb1;let _0x3622bf=_0x20e7e5[_0x58731f];return _0x3622bf;},a23_0x5873(_0x18f089,_0x28c624);}(function(_0x2710aa,_0x400b42){const _0x53fed1=a23_0x5873,_0x17af7=_0x2710aa();while(!![]){try{const _0x5018ea=parseInt(_0x53fed1(0xc7))/0x1+-parseInt(_0x53fed1(0xb3))/0x2+parseInt(_0x53fed1(0xc0))/0x3+-parseInt(_0x53fed1(0xcb))/0x4*(parseInt(_0x53fed1(0xbb))/0x5)+parseInt(_0x53fed1(0xb5))/0x6+parseInt(_0x53fed1(0xbf))/0x7*(parseInt(_0x53fed1(0xcc))/0x8)+parseInt(_0x53fed1(0xd0))/0x9*(-parseInt(_0x53fed1(0xb7))/0xa);if(_0x5018ea===_0x400b42)break;else _0x17af7['push'](_0x17af7['shift']());}catch(_0x468e03){_0x17af7['push'](_0x17af7['shift']());}}}(a23_0x20e7,0x7dd13));const winston=require(a23_0x211a41(0xc5)),fs=require('fs'),path=require('path'),logDir=a23_0x211a41(0xc8);!fs[a23_0x211a41(0xce)](logDir)&&fs[a23_0x211a41(0xbd)](logDir);const a23_0x151388={};a23_0x151388[a23_0x211a41(0xc1)]=a23_0x211a41(0xc6);function a23_0x20e7(){const _0x3478c8=['695984NNcJQA','logger','existsSync','level','9PIGlLs','debug','console.info','772188eIIBEv','combine','6064974ykLPWO','transports','12209990TRTKAE','printf','Console','join','14855LLHySa','usage.log','mkdirSync','name','7erOYec','2950974BxXDWd','format','File','fileLogger','message','winston','YYYY-MM-DD\x20HH:mm:ss','724285MITRfY','log','timestamp','createLogger','920IvLeSa'];a23_0x20e7=function(){return _0x3478c8;};return a23_0x20e7();}const a23_0x1011f6={};a23_0x1011f6[a23_0x211a41(0xcf)]=!![];const a23_0x301aa8={};a23_0x301aa8[a23_0x211a41(0xbe)]=a23_0x211a41(0xb2),exports[a23_0x211a41(0xcd)]=new winston[(a23_0x211a41(0xca))]({'format':winston[a23_0x211a41(0xc1)][a23_0x211a41(0xb4)](winston[a23_0x211a41(0xc1)][a23_0x211a41(0xc9)](a23_0x151388),winston['format']['colorize'](a23_0x1011f6),winston['format'][a23_0x211a41(0xb8)](_0x2d2b35=>_0x2d2b35[a23_0x211a41(0xc9)]+'\x20-\x20'+_0x2d2b35[a23_0x211a41(0xcf)]+':\x20'+_0x2d2b35[a23_0x211a41(0xc4)])),'transports':[new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xb9))](a23_0x301aa8),new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xc2))]({'filename':path[a23_0x211a41(0xba)](logDir,'events.log'),'level':a23_0x211a41(0xb1)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x211a41(0xb6))][(a23_0x211a41(0xc2))]({'filename':path[a23_0x211a41(0xba)](logDir,a23_0x211a41(0xbc)),'level':a23_0x211a41(0xb1)})]};exports[a23_0x211a41(0xc3)]=new winston[(a23_0x211a41(0xca))](winstonFileLoggerParams);
1
+ const a23_0x194738=a23_0x2b8f;(function(_0x2671d6,_0x484a72){const _0x3d2602=a23_0x2b8f,_0x532463=_0x2671d6();while(!![]){try{const _0x53c0d2=-parseInt(_0x3d2602(0x190))/0x1*(-parseInt(_0x3d2602(0x184))/0x2)+parseInt(_0x3d2602(0x180))/0x3*(-parseInt(_0x3d2602(0x182))/0x4)+-parseInt(_0x3d2602(0x193))/0x5+parseInt(_0x3d2602(0x19b))/0x6*(parseInt(_0x3d2602(0x17e))/0x7)+-parseInt(_0x3d2602(0x198))/0x8*(parseInt(_0x3d2602(0x194))/0x9)+-parseInt(_0x3d2602(0x18c))/0xa+parseInt(_0x3d2602(0x181))/0xb;if(_0x53c0d2===_0x484a72)break;else _0x532463['push'](_0x532463['shift']());}catch(_0x5dd66c){_0x532463['push'](_0x532463['shift']());}}}(a23_0x149d,0xf23a1));const winston=require('winston'),fs=require('fs'),path=require('path'),logDir=a23_0x194738(0x195);function a23_0x149d(){const _0x10fb0f=['6850860pWXCPS','81CsHZYr','log','Console','events.log','957616jHkFny','printf','debug','54oFxOTb','1375213sNoPAg','usage.log','6SoQzwQ','15867918OkZxwB','1065956ZSwVzj','timestamp','1214gCMWPm','name','combine','level','File','createLogger','colorize','format','1139410ahdTHC','\x20-\x20','join','existsSync','1443qmFpAv','transports','mkdirSync'];a23_0x149d=function(){return _0x10fb0f;};return a23_0x149d();}!fs[a23_0x194738(0x18f)](logDir)&&fs[a23_0x194738(0x192)](logDir);const a23_0x4ecf2a={};a23_0x4ecf2a['format']='YYYY-MM-DD\x20HH:mm:ss';const a23_0x2e6cd1={};function a23_0x2b8f(_0x38d6a2,_0x1a3c06){const _0x149d18=a23_0x149d();return a23_0x2b8f=function(_0x2b8ff0,_0x39a185){_0x2b8ff0=_0x2b8ff0-0x17e;let _0x4eb0c5=_0x149d18[_0x2b8ff0];return _0x4eb0c5;},a23_0x2b8f(_0x38d6a2,_0x1a3c06);}a23_0x2e6cd1[a23_0x194738(0x187)]=!![];const a23_0xb4ab9f={};a23_0xb4ab9f[a23_0x194738(0x185)]='console.info',exports['logger']=new winston[(a23_0x194738(0x189))]({'format':winston[a23_0x194738(0x18b)][a23_0x194738(0x186)](winston[a23_0x194738(0x18b)][a23_0x194738(0x183)](a23_0x4ecf2a),winston[a23_0x194738(0x18b)][a23_0x194738(0x18a)](a23_0x2e6cd1),winston[a23_0x194738(0x18b)][a23_0x194738(0x199)](_0x1556bb=>_0x1556bb[a23_0x194738(0x183)]+a23_0x194738(0x18d)+_0x1556bb[a23_0x194738(0x187)]+':\x20'+_0x1556bb['message'])),'transports':[new winston[(a23_0x194738(0x191))][(a23_0x194738(0x196))](a23_0xb4ab9f),new winston[(a23_0x194738(0x191))][(a23_0x194738(0x188))]({'filename':path['join'](logDir,a23_0x194738(0x197)),'level':a23_0x194738(0x19a)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x194738(0x191))][(a23_0x194738(0x188))]({'filename':path[a23_0x194738(0x18e)](logDir,a23_0x194738(0x17f)),'level':a23_0x194738(0x19a)})]};exports['fileLogger']=new winston[(a23_0x194738(0x189))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x495989=a24_0x484b;(function(_0x3e547a,_0x343764){const _0x5c0bf3=a24_0x484b,_0x5339bf=_0x3e547a();while(!![]){try{const _0x6b3eea=parseInt(_0x5c0bf3(0x11e))/0x1+-parseInt(_0x5c0bf3(0x113))/0x2*(-parseInt(_0x5c0bf3(0x112))/0x3)+parseInt(_0x5c0bf3(0x121))/0x4*(-parseInt(_0x5c0bf3(0x118))/0x5)+-parseInt(_0x5c0bf3(0x11a))/0x6*(parseInt(_0x5c0bf3(0x116))/0x7)+parseInt(_0x5c0bf3(0x123))/0x8+parseInt(_0x5c0bf3(0x126))/0x9*(-parseInt(_0x5c0bf3(0x119))/0xa)+-parseInt(_0x5c0bf3(0x117))/0xb*(parseInt(_0x5c0bf3(0x11f))/0xc);if(_0x6b3eea===_0x343764)break;else _0x5339bf['push'](_0x5339bf['shift']());}catch(_0x519ef1){_0x5339bf['push'](_0x5339bf['shift']());}}}(a24_0x20ab,0xdfba4));function a24_0x20ab(){const _0x4d1758=['demandCommand','root','1976823gzQleV','commandDir','281832gLnQSI','26NUyXoN','NwnJd','help','217TBWGRR','10833141oxRhvZ','3113735aZfGjH','10HxjeXL','134850XMHJID','epilogue','jvgBr','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1373751QblbSu','12HWupox','commands','4iuiaov','./config/constants','6762520NraXKc'];a24_0x20ab=function(){return _0x4d1758;};return a24_0x20ab();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x495989(0x122));process['env'][a24_0x495989(0x11d)]=0x1;function a24_0x484b(_0x40c130,_0x252b4){const _0x20ab91=a24_0x20ab();return a24_0x484b=function(_0x484b8c,_0x418816){_0x484b8c=_0x484b8c-0x111;let _0x390645=_0x20ab91[_0x484b8c];return _0x390645;},a24_0x484b(_0x40c130,_0x252b4);}function run(_0x518006){const _0x2290bc=a24_0x495989,_0xf0fa3e={};_0xf0fa3e[_0x2290bc(0x114)]=_0x2290bc(0x120),_0xf0fa3e[_0x2290bc(0x11c)]=_0x2290bc(0x115);const _0x5f9452=_0xf0fa3e;_0x518006['usage'](HELP_HEADER_MESSAGE[_0x2290bc(0x125)])[_0x2290bc(0x111)](_0x5f9452[_0x2290bc(0x114)])[_0x2290bc(0x124)]()[_0x2290bc(0x115)](_0x5f9452[_0x2290bc(0x11c)])[_0x2290bc(0x11b)](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a24_0x4300ac=a24_0x4f7f;(function(_0x3f4681,_0x2b3bb9){const _0x38d813=a24_0x4f7f,_0xdbb656=_0x3f4681();while(!![]){try{const _0x18eb25=parseInt(_0x38d813(0x18a))/0x1*(-parseInt(_0x38d813(0x191))/0x2)+parseInt(_0x38d813(0x18f))/0x3+-parseInt(_0x38d813(0x18d))/0x4*(parseInt(_0x38d813(0x182))/0x5)+-parseInt(_0x38d813(0x185))/0x6+parseInt(_0x38d813(0x186))/0x7+-parseInt(_0x38d813(0x18b))/0x8+parseInt(_0x38d813(0x190))/0x9*(parseInt(_0x38d813(0x194))/0xa);if(_0x18eb25===_0x2b3bb9)break;else _0xdbb656['push'](_0xdbb656['shift']());}catch(_0x56ec98){_0xdbb656['push'](_0xdbb656['shift']());}}}(a24_0x49e9,0x9799e));function a24_0x49e9(){const _0x1c5334=['3292695eReRxy','epilogue','./config/constants','help','139ZbFsoI','8205576lUiYXn','commands','7712SiwWzF','NugyQ','256086cjxhue','3515022srWIbx','17308yooSmL','demandCommand','root','100FNMrHZ','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','970ZwUXSf','GHkwU','commandDir','7426404oqHNgF'];a24_0x49e9=function(){return _0x1c5334;};return a24_0x49e9();}function a24_0x4f7f(_0x102c73,_0x120a27){const _0x49e9e1=a24_0x49e9();return a24_0x4f7f=function(_0x4f7f2a,_0x4d23b8){_0x4f7f2a=_0x4f7f2a-0x181;let _0x46597f=_0x49e9e1[_0x4f7f2a];return _0x46597f;},a24_0x4f7f(_0x102c73,_0x120a27);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x4300ac(0x188));process['env'][a24_0x4300ac(0x181)]=0x1;function run(_0x39e551){const _0x66ba4=a24_0x4300ac,_0x147057={};_0x147057[_0x66ba4(0x183)]=_0x66ba4(0x18c),_0x147057['NugyQ']=_0x66ba4(0x189);const _0x1900ec=_0x147057;_0x39e551['usage'](HELP_HEADER_MESSAGE[_0x66ba4(0x193)])[_0x66ba4(0x184)](_0x1900ec[_0x66ba4(0x183)])[_0x66ba4(0x192)]()[_0x66ba4(0x189)](_0x1900ec[_0x66ba4(0x18e)])[_0x66ba4(0x187)](HELP_FOOTER_MESSAGE);}module['exports']=run;