browserstack-node-sdk 1.37.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) 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 +66 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  69. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  70. package/src/bin/mocha/command.js +1 -1
  71. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  72. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  73. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  74. package/src/bin/mocha/test.setup.js +1 -1
  75. package/src/bin/nightwatch/command.js +1 -1
  76. package/src/bin/playwright/accessibility-helper.js +1 -1
  77. package/src/bin/playwright/command.js +1 -1
  78. package/src/bin/playwright/globalSetup.js +1 -1
  79. package/src/bin/playwright/mock-process.js +1 -1
  80. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  81. package/src/bin/playwright/patches.js +1 -1
  82. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  83. package/src/bin/playwright/reporter/reporter.js +1 -1
  84. package/src/bin/playwright/reporter/test-details.js +1 -1
  85. package/src/bin/playwright/sessionDetails.js +1 -1
  86. package/src/bin/runner.js +1 -1
  87. package/src/bin/setup.js +1 -1
  88. package/src/bin/test-runner/index.js +1 -1
  89. package/src/bin/test-runner/runTest.js +1 -1
  90. package/src/bin/test-runner/testWorker.js +1 -1
  91. package/src/bin/utils/constants.js +1 -1
  92. package/src/bin/utils/log4jsAppender.js +1 -1
  93. package/src/bin/utils/logPatcher.js +1 -1
  94. package/src/bin/utils/logReportingAPI.js +1 -1
  95. package/src/bin/v2/TestInfo.js +1 -1
  96. package/src/bin/v2/browserstackCLI.js +1 -1
  97. package/src/bin/v2/cliUtils.js +1 -1
  98. package/src/bin/v2/customTagManager.js +1 -1
  99. package/src/bin/v2/eventDispatcher.js +1 -1
  100. package/src/bin/v2/framework/automationFramework.js +1 -1
  101. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  102. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  103. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  104. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  105. package/src/bin/v2/framework/testFramework.js +1 -1
  106. package/src/bin/v2/grpcClient.js +1 -1
  107. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  108. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  109. package/src/bin/v2/instances/trackedContext.js +1 -1
  110. package/src/bin/v2/instances/trackedInstance.js +1 -1
  111. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  112. package/src/bin/v2/modules/baseModule.js +1 -1
  113. package/src/bin/v2/modules/observabilityModule.js +1 -1
  114. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  115. package/src/bin/v2/modules/testhubModule.js +1 -1
  116. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  117. package/src/bin/v2/state/hookState.js +1 -1
  118. package/src/bin/v2/state/testFrameworkState.js +1 -1
  119. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  120. package/src/bin/vanilla-js/command.js +1 -1
  121. package/src/browserStackSdk.js +1 -1
  122. package/src/helpers/BrowserStackSetup.js +1 -1
  123. package/src/helpers/accessibility-automation/constants.js +1 -1
  124. package/src/helpers/accessibility-automation/helper.js +1 -1
  125. package/src/helpers/accessibility-automation/scripts.js +1 -1
  126. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  127. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  128. package/src/helpers/ats/constants.js +1 -1
  129. package/src/helpers/ats/helper.js +1 -1
  130. package/src/helpers/capsMapping.js +1 -1
  131. package/src/helpers/central-scanner/constants.js +1 -1
  132. package/src/helpers/central-scanner/helpers.js +1 -1
  133. package/src/helpers/classLogger.js +1 -1
  134. package/src/helpers/globals.js +1 -1
  135. package/src/helpers/helper.js +1 -1
  136. package/src/helpers/logger.js +1 -1
  137. package/src/helpers/metadata.js +1 -1
  138. package/src/helpers/patchHelper.js +1 -1
  139. package/src/helpers/patchHelpers.js +1 -1
  140. package/src/helpers/percy/Percy.js +1 -1
  141. package/src/helpers/percy/PercyBinary.js +1 -1
  142. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  143. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  144. package/src/helpers/percy/PercySDK.js +1 -1
  145. package/src/helpers/percy/index.js +1 -1
  146. package/src/helpers/percy/utils.js +1 -1
  147. package/src/helpers/performance/constants.js +1 -1
  148. package/src/helpers/performance/performance-tester.js +1 -1
  149. package/src/helpers/processHelper.js +1 -1
  150. package/src/helpers/request-spy.js +1 -1
  151. package/src/helpers/setKeepAlive.js +1 -1
  152. package/src/helpers/test-observability/constants.js +1 -1
  153. package/src/helpers/test-observability/error-handler.js +1 -1
  154. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  155. package/src/helpers/test-observability/sessionHandler.js +1 -1
  156. package/src/helpers/test-observability/utils.js +1 -1
  157. package/src/helpers/test-orchestration/constants.js +1 -1
  158. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  159. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  160. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  161. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  162. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  163. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  164. package/src/helpers/testhub/constants.js +1 -1
  165. package/src/helpers/testhub/testhubHandler.js +1 -1
  166. package/src/helpers/testhub/utils.js +1 -1
  167. package/src/helpers/timeoutPromise.js +1 -1
  168. package/src/helpers/utilities.js +1 -1
  169. package/src/helpers/w3cMapping.js +1 -1
  170. package/src/hubAllocationMethods.js +1 -1
  171. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x403b23=a15_0x34a0;function a15_0x34a0(_0x5592ac,_0x7b5d30){const _0xab622b=a15_0xab62();return a15_0x34a0=function(_0x34a0ff,_0x341663){_0x34a0ff=_0x34a0ff-0xa1;let _0x4a2bd3=_0xab622b[_0x34a0ff];return _0x4a2bd3;},a15_0x34a0(_0x5592ac,_0x7b5d30);}(function(_0x4839d3,_0x698695){const _0x34abcc=a15_0x34a0,_0x56237c=_0x4839d3();while(!![]){try{const _0x195a35=parseInt(_0x34abcc(0xd2))/0x1+-parseInt(_0x34abcc(0xb7))/0x2*(parseInt(_0x34abcc(0xb6))/0x3)+-parseInt(_0x34abcc(0xe3))/0x4*(parseInt(_0x34abcc(0xc2))/0x5)+-parseInt(_0x34abcc(0xe4))/0x6*(-parseInt(_0x34abcc(0xca))/0x7)+-parseInt(_0x34abcc(0xa3))/0x8*(-parseInt(_0x34abcc(0xf2))/0x9)+-parseInt(_0x34abcc(0xde))/0xa+-parseInt(_0x34abcc(0xec))/0xb*(-parseInt(_0x34abcc(0xb9))/0xc);if(_0x195a35===_0x698695)break;else _0x56237c['push'](_0x56237c['shift']());}catch(_0x5a0214){_0x56237c['push'](_0x56237c['shift']());}}}(a15_0xab62,0x56f80));const fs=require('fs'),got=require('got'),{table}=require(a15_0x403b23(0xcc)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x403b23(0xf1)),{getCredentialsPath,getAuthHeader}=require(a15_0x403b23(0xd4)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x403b23(0xe9)]=a15_0x403b23(0xaa),exports[a15_0x403b23(0xef)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x1a0df1){const _0x324f19=a15_0x403b23,_0x25bef7={};_0x25bef7['LYeEm']=_0x324f19(0xc1),_0x25bef7['dOPSz']=_0x324f19(0xe5),_0x25bef7[_0x324f19(0xcd)]=_0x324f19(0xc5);const _0x49cf8d=_0x25bef7,_0x230fb1={};_0x230fb1[_0x324f19(0xdf)]=_0x49cf8d[_0x324f19(0xd8)],_0x230fb1['type']=_0x49cf8d['dOPSz'];const _0x4af3e4={};return _0x4af3e4[_0x324f19(0xea)]=_0x230fb1,_0x1a0df1[_0x324f19(0xd7)](HELP_HEADER_MESSAGE['list'][_0x324f19(0xc3)])[_0x324f19(0xdb)](HELP_FOOTER_MESSAGE)[_0x324f19(0xdd)](_0x4af3e4)[_0x324f19(0xc5)](_0x49cf8d['tBhbE'])[_0x324f19(0xe6)];},exports[a15_0x403b23(0xa1)]=async function(_0x38e183){const _0x20fd18=a15_0x403b23,_0x4b6d50={'Etmta':function(_0x1a5bda){return _0x1a5bda();},'wLbrE':function(_0x53861d){return _0x53861d();},'bXpXy':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bGLXI':function(_0x402f03,_0x5c4e10,_0x175940,_0x2737b3,_0x5f04b9,_0x46f191,_0x2e98b1){return _0x402f03(_0x5c4e10,_0x175940,_0x2737b3,_0x5f04b9,_0x46f191,_0x2e98b1);},'CLBum':_0x20fd18(0xb1),'Quqxh':_0x20fd18(0xaf),'IpZzd':_0x20fd18(0xd1),'FAmvF':function(_0x47e49e,_0x747e04,_0x24fdc4){return _0x47e49e(_0x747e04,_0x24fdc4);},'GcfjF':function(_0x17c15a,_0x317fd8,_0x54d7ad,_0xd4cd45,_0x23dfa1,_0x581eca,_0x1e1897){return _0x17c15a(_0x317fd8,_0x54d7ad,_0xd4cd45,_0x23dfa1,_0x581eca,_0x1e1897);},'IsVPD':function(_0x2fa06f,_0x340b96,_0x10ab6f){return _0x2fa06f(_0x340b96,_0x10ab6f);},'MPQDB':function(_0x74aab,_0x596f46){return _0x74aab!==_0x596f46;},'XlPDg':function(_0x31866,_0x1e29a8){return _0x31866===_0x1e29a8;},'pqeiM':_0x20fd18(0xc8),'TahLt':_0x20fd18(0xd5),'VtAsz':_0x20fd18(0xa9),'wWEnL':_0x20fd18(0xf3),'YHICH':_0x20fd18(0xba),'mezmu':'queued','PymUA':_0x20fd18(0xda),'JAmVj':function(_0x24db4c,_0x22549e){return _0x24db4c(_0x22549e);},'aTyYd':function(_0x53910c,_0x454ec6){return _0x53910c===_0x454ec6;},'fahli':_0x20fd18(0xa2),'mkurE':function(_0x281977,_0x4e3aa2,_0x662534,_0x43390c,_0x5bb963,_0x316fde,_0x5a33ac){return _0x281977(_0x4e3aa2,_0x662534,_0x43390c,_0x5bb963,_0x316fde,_0x5a33ac);},'mWMpc':'unauthorised','Kflag':_0x20fd18(0xdc),'OhQYO':_0x20fd18(0xd9)};try{global_registry[_0x20fd18(0xb0)]=_0x4b6d50['Etmta'](uuidv4);!fs[_0x20fd18(0xae)](_0x4b6d50[_0x20fd18(0xc6)](getCredentialsPath))&&(console['error'](_0x4b6d50['bXpXy']),await _0x4b6d50['bGLXI'](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes['ERROR'],_0x4b6d50[_0x20fd18(0xd6)],null,_0x38e183),process[_0x20fd18(0xed)](0x1));const _0x3a6f7f=JSON[_0x20fd18(0xb5)](fs['readFileSync'](_0x4b6d50[_0x20fd18(0xbb)](getCredentialsPath)));let _0x5e0d52=_0x20fd18(0xf0)+AG_API_URL+_0x20fd18(0xa7);_0x38e183[_0x20fd18(0xb4)]&&(_0x5e0d52=_0x20fd18(0xf0)+AG_API_URL+'/packages/cli/get-all-grids');const _0x30e095={'method':_0x4b6d50[_0x20fd18(0xd0)],'headers':_0x4b6d50['FAmvF'](getAuthHeader,_0x3a6f7f[_0x20fd18(0xa4)]['username'],_0x3a6f7f[_0x20fd18(0xa4)][_0x20fd18(0xa6)]),'throwHttpErrors':![]};global_registry[_0x20fd18(0xce)]=_0x3a6f7f['Browserstack'][_0x20fd18(0xeb)],global_registry[_0x20fd18(0xc4)]=_0x3a6f7f['Browserstack'][_0x20fd18(0xa6)],_0x4b6d50[_0x20fd18(0xbe)](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes[_0x20fd18(0xe1)],null,null,_0x38e183);const _0x5a3479=await _0x4b6d50[_0x20fd18(0xac)](got,_0x5e0d52,_0x30e095);if(_0x4b6d50['MPQDB'](_0x5a3479,null)&&_0x4b6d50[_0x20fd18(0xb3)](_0x5a3479,undefined)&&_0x4b6d50[_0x20fd18(0xf6)](_0x5a3479[_0x20fd18(0xe2)],0xc8)){const _0x190ca4=JSON['parse'](_0x5a3479['body']);console['log'](_0x4b6d50[_0x20fd18(0xbf)]);const _0x377589=[];_0x377589['push']([_0x4b6d50[_0x20fd18(0xc9)],_0x4b6d50[_0x20fd18(0xab)],_0x4b6d50['wWEnL'],_0x4b6d50[_0x20fd18(0xb2)],_0x4b6d50[_0x20fd18(0xa8)],_0x4b6d50['PymUA']]),_0x190ca4[_0x20fd18(0xad)](_0x31136f=>{const _0x395fa8=_0x20fd18;_0x377589[_0x395fa8(0xe0)]([_0x31136f['id'],_0x31136f[_0x395fa8(0xa5)],_0x31136f[_0x395fa8(0xf3)],_0x31136f[_0x395fa8(0xba)],_0x31136f[_0x395fa8(0xe8)],_0x31136f[_0x395fa8(0xb8)]]);}),console['log'](_0x4b6d50['JAmVj'](table,_0x377589)),process['exit'](0x0);}_0x4b6d50[_0x20fd18(0xe7)](_0x5a3479[_0x20fd18(0xe2)],0x191)&&(console['error'](_0x4b6d50['fahli']),await _0x4b6d50[_0x20fd18(0xcb)](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes[_0x20fd18(0xc7)],_0x4b6d50[_0x20fd18(0xee)],null,_0x38e183),process['exit'](0x1)),console[_0x20fd18(0xc0)](_0x20fd18(0xbd)+JSON[_0x20fd18(0xbc)](_0x5a3479)),await _0x4b6d50['GcfjF'](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes['ERROR'],_0x4b6d50['Kflag'],_0x5a3479,_0x38e183),process[_0x20fd18(0xed)](0x1);}catch(_0x3e35bb){console[_0x20fd18(0xc0)](_0x20fd18(0xd3)+_0x3e35bb[_0x20fd18(0xf4)]),await _0x4b6d50[_0x20fd18(0xbe)](sendInstrumentationEvent,_0x38e183,_0x4b6d50[_0x20fd18(0xf5)],messageTypes[_0x20fd18(0xc7)],_0x4b6d50[_0x20fd18(0xcf)],_0x3e35bb,_0x38e183),process[_0x20fd18(0xed)](0x1);}};function a15_0xab62(){const _0x8db912=['grid','bstackAccesskey','help','wLbrE','ERROR','\x0aFound\x20the\x20following\x20grids:\x0a','TahLt','483PYyGxL','mkurE','table','tBhbE','bstackUsername','OhQYO','IpZzd','GET','133300wglQHj','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../utils/utilityMethods','grid-id','Quqxh','usage','LYeEm','unknown-error','cluster-name','epilogue','server-error','options','1543970UYjeaD','description','push','INFO','statusCode','28KAxvIt','50982nQlqCl','boolean','argv','aTyYd','queued','command','all-grids','username','186483VifOQY','exit','mWMpc','desc','https://','../../config/constants','9HqsJAF','status','stack','CLBum','XlPDg','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1754120uPVaDK','Browserstack','name','password','/packages/cli/get-grids','mezmu','grid-name','grids','VtAsz','IsVPD','forEach','existsSync','init-not-called','requestId','list-grids-called','YHICH','MPQDB','allGrids','parse','3147YdVcMF','1226quuXDQ','clusterName','444GHwuRO','running','Etmta','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GcfjF','pqeiM','error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','294615DOXvWB'];a15_0xab62=function(){return _0x8db912;};return a15_0xab62();}
1
+ function a15_0x44ae(_0x8d1f9f,_0x4c9bc1){const _0x126039=a15_0x1260();return a15_0x44ae=function(_0x44ae52,_0x3dcd72){_0x44ae52=_0x44ae52-0xb9;let _0x22479c=_0x126039[_0x44ae52];return _0x22479c;},a15_0x44ae(_0x8d1f9f,_0x4c9bc1);}const a15_0x30d192=a15_0x44ae;function a15_0x1260(){const _0x32f65f=['qeUre','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','forEach','argv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','allGrids','grid','all-grids','204ERnFvg','593197jahrfd','grid-name','NSSyw','TNKKx','345208xAGgIb','ERROR','1160996ZAGVPD','log','https://','aZCol','420232CKxmQM','password','/packages/cli/get-all-grids','existsSync','bstackUsername','unauthorised','cluster-name','VfmRx','desc','YRhgO','SyzHO','GET','60ulhJYX','parse','table','Failed\x20to\x20list\x20resources!\x20Error:\x20','dJzbP','clusterName','Browserstack','readFileSync','10389840MZtDVK','exit','fSOcT','builder','running','/packages/cli/get-grids','username','grid-id','list-grids-called','../../config/constants','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','list','statusCode','unknown-error','773745uPMDDk','requestId','name','status','hjKLu','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','KTHfw','WbADM','BZywj','uuid','QnpXa','sLXrc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ZGRcW','epilogue','2Srvgmi','queued','AkogI','options','error','../../utils/instrumentationUtils','jZnKS','\x0aFound\x20the\x20following\x20grids:\x0a','mpSnY','99RXyPLQ','AtEIU','server-error','cMXjF','bstackAccesskey','help','3338646tkbRtC','stringify','push','25ZggdAX'];a15_0x1260=function(){return _0x32f65f;};return a15_0x1260();}(function(_0x271fb1,_0x41322f){const _0x1bd297=a15_0x44ae,_0x213011=_0x271fb1();while(!![]){try{const _0x265f83=parseInt(_0x1bd297(0xc7))/0x1*(-parseInt(_0x1bd297(0xe9))/0x2)+-parseInt(_0x1bd297(0xd6))/0x3+parseInt(_0x1bd297(0xe7))/0x4*(parseInt(_0x1bd297(0xd9))/0x5)+-parseInt(_0x1bd297(0xf9))/0x6*(-parseInt(_0x1bd297(0x10f))/0x7)+parseInt(_0x1bd297(0xed))/0x8*(-parseInt(_0x1bd297(0xd0))/0x9)+parseInt(_0x1bd297(0x101))/0xa+parseInt(_0x1bd297(0xe3))/0xb*(parseInt(_0x1bd297(0xe2))/0xc);if(_0x265f83===_0x41322f)break;else _0x213011['push'](_0x213011['shift']());}catch(_0x32ff70){_0x213011['push'](_0x213011['shift']());}}}(a15_0x1260,0x9c78a));const fs=require('fs'),got=require('got'),{table}=require(a15_0x30d192(0xfb)),{v4:uuidv4}=require(a15_0x30d192(0xc1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x30d192(0x10a)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x30d192(0xcc));exports['command']='grids',exports[a15_0x30d192(0xf5)]=a15_0x30d192(0xbd),exports[a15_0x30d192(0x104)]=function(_0x2ce564){const _0x53907f=a15_0x30d192,_0x50a304={};_0x50a304[_0x53907f(0xe5)]=_0x53907f(0x10b),_0x50a304['uUqGZ']='boolean',_0x50a304[_0x53907f(0xf4)]=_0x53907f(0xd5);const _0x15c737=_0x50a304,_0x3be212={};_0x3be212['description']=_0x15c737['NSSyw'],_0x3be212['type']=_0x15c737['uUqGZ'];const _0x3bd06e={};return _0x3bd06e[_0x53907f(0xe1)]=_0x3be212,_0x2ce564['usage'](HELP_HEADER_MESSAGE[_0x53907f(0x10c)][_0x53907f(0xe0)])[_0x53907f(0xc6)](HELP_FOOTER_MESSAGE)[_0x53907f(0xca)](_0x3bd06e)['help'](_0x15c737[_0x53907f(0xf4)])[_0x53907f(0xdd)];},exports['handler']=async function(_0x330642){const _0xc9ca97=a15_0x30d192,_0x514644={'iKPpT':function(_0x4d3cd4){return _0x4d3cd4();},'AkogI':function(_0x4b0220){return _0x4b0220();},'WbADM':_0xc9ca97(0xde),'qeUre':function(_0x535436,_0x4a9193,_0x3917f6,_0x3ea0cd,_0xf73537,_0x2b0ffb,_0x30749d){return _0x535436(_0x4a9193,_0x3917f6,_0x3ea0cd,_0xf73537,_0x2b0ffb,_0x30749d);},'TNKKx':_0xc9ca97(0x109),'KTHfw':'init-not-called','dJzbP':function(_0x45f220){return _0x45f220();},'ZGRcW':_0xc9ca97(0xf8),'hjKLu':function(_0x21a3f4,_0x48022e,_0x1cac1b){return _0x21a3f4(_0x48022e,_0x1cac1b);},'AtEIU':function(_0xbd02f5,_0x72dd3a){return _0xbd02f5!==_0x72dd3a;},'SyzHO':function(_0x4de00c,_0x4d5748){return _0x4de00c!==_0x4d5748;},'YRhgO':function(_0x29af4c,_0x134bdd){return _0x29af4c===_0x134bdd;},'eeZzL':_0xc9ca97(0xce),'DghEf':_0xc9ca97(0x108),'jZnKS':_0xc9ca97(0xe4),'fSOcT':_0xc9ca97(0xbb),'QnpXa':_0xc9ca97(0x105),'Jwlek':'queued','BZywj':_0xc9ca97(0xf3),'hDhla':function(_0x2d8d8b,_0xe4fe2e){return _0x2d8d8b(_0xe4fe2e);},'cMXjF':_0xc9ca97(0xdb),'aZCol':_0xc9ca97(0xf2),'mpSnY':_0xc9ca97(0xd2),'sLXrc':function(_0x2328d2,_0x2f1b16,_0x491326,_0x2366ef,_0x28309c,_0x5eb125,_0x33a6ee){return _0x2328d2(_0x2f1b16,_0x491326,_0x2366ef,_0x28309c,_0x5eb125,_0x33a6ee);},'hyVQi':_0xc9ca97(0x10e)};try{global_registry[_0xc9ca97(0xb9)]=_0x514644['iKPpT'](uuidv4);!fs[_0xc9ca97(0xf0)](_0x514644[_0xc9ca97(0xc9)](getCredentialsPath))&&(console[_0xc9ca97(0xcb)](_0x514644[_0xc9ca97(0xbf)]),await _0x514644[_0xc9ca97(0xda)](sendInstrumentationEvent,_0x330642,_0x514644[_0xc9ca97(0xe6)],messageTypes[_0xc9ca97(0xe8)],_0x514644[_0xc9ca97(0xbe)],null,_0x330642),process[_0xc9ca97(0x102)](0x1));const _0x1ceafb=JSON[_0xc9ca97(0xfa)](fs[_0xc9ca97(0x100)](_0x514644[_0xc9ca97(0xfd)](getCredentialsPath)));let _0x4c1706=_0xc9ca97(0xeb)+AG_API_URL+_0xc9ca97(0x106);_0x330642[_0xc9ca97(0xdf)]&&(_0x4c1706=_0xc9ca97(0xeb)+AG_API_URL+_0xc9ca97(0xef));const _0x55ffc8={'method':_0x514644[_0xc9ca97(0xc5)],'headers':_0x514644[_0xc9ca97(0xbc)](getAuthHeader,_0x1ceafb[_0xc9ca97(0xff)]['username'],_0x1ceafb['Browserstack'][_0xc9ca97(0xee)]),'throwHttpErrors':![]};global_registry[_0xc9ca97(0xf1)]=_0x1ceafb[_0xc9ca97(0xff)][_0xc9ca97(0x107)],global_registry[_0xc9ca97(0xd4)]=_0x1ceafb[_0xc9ca97(0xff)][_0xc9ca97(0xee)],_0x514644[_0xc9ca97(0xda)](sendInstrumentationEvent,_0x330642,_0x514644['TNKKx'],messageTypes['INFO'],null,null,_0x330642);const _0x2438c0=await _0x514644[_0xc9ca97(0xbc)](got,_0x4c1706,_0x55ffc8);if(_0x514644[_0xc9ca97(0xd1)](_0x2438c0,null)&&_0x514644[_0xc9ca97(0xf7)](_0x2438c0,undefined)&&_0x514644[_0xc9ca97(0xf6)](_0x2438c0[_0xc9ca97(0x10d)],0xc8)){const _0x46fa23=JSON['parse'](_0x2438c0['body']);console[_0xc9ca97(0xea)](_0x514644['eeZzL']);const _0x13beb5=[];_0x13beb5[_0xc9ca97(0xd8)]([_0x514644['DghEf'],_0x514644[_0xc9ca97(0xcd)],_0x514644[_0xc9ca97(0x103)],_0x514644[_0xc9ca97(0xc2)],_0x514644['Jwlek'],_0x514644[_0xc9ca97(0xc0)]]),_0x46fa23[_0xc9ca97(0xdc)](_0x1ac9e5=>{const _0x13f53e=_0xc9ca97;_0x13beb5['push']([_0x1ac9e5['id'],_0x1ac9e5[_0x13f53e(0xba)],_0x1ac9e5[_0x13f53e(0xbb)],_0x1ac9e5[_0x13f53e(0x105)],_0x1ac9e5[_0x13f53e(0xc8)],_0x1ac9e5[_0x13f53e(0xfe)]]);}),console[_0xc9ca97(0xea)](_0x514644['hDhla'](table,_0x13beb5)),process[_0xc9ca97(0x102)](0x0);}_0x514644[_0xc9ca97(0xf6)](_0x2438c0['statusCode'],0x191)&&(console[_0xc9ca97(0xcb)](_0x514644[_0xc9ca97(0xd3)]),await _0x514644['qeUre'](sendInstrumentationEvent,_0x330642,_0x514644['TNKKx'],messageTypes[_0xc9ca97(0xe8)],_0x514644[_0xc9ca97(0xec)],null,_0x330642),process['exit'](0x1)),console[_0xc9ca97(0xcb)](_0xc9ca97(0xc4)+JSON[_0xc9ca97(0xd7)](_0x2438c0)),await _0x514644[_0xc9ca97(0xda)](sendInstrumentationEvent,_0x330642,_0x514644[_0xc9ca97(0xe6)],messageTypes[_0xc9ca97(0xe8)],_0x514644[_0xc9ca97(0xcf)],_0x2438c0,_0x330642),process[_0xc9ca97(0x102)](0x1);}catch(_0x242541){console[_0xc9ca97(0xcb)](_0xc9ca97(0xfc)+_0x242541['stack']),await _0x514644[_0xc9ca97(0xc3)](sendInstrumentationEvent,_0x330642,_0x514644[_0xc9ca97(0xe6)],messageTypes['ERROR'],_0x514644['hyVQi'],_0x242541,_0x330642),process[_0xc9ca97(0x102)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x56dc99=a16_0x5c81;(function(_0x24a696,_0x58ecde){const _0x1e67e2=a16_0x5c81,_0x4c5e8e=_0x24a696();while(!![]){try{const _0x32be54=parseInt(_0x1e67e2(0x6c))/0x1*(parseInt(_0x1e67e2(0x70))/0x2)+parseInt(_0x1e67e2(0x7e))/0x3+parseInt(_0x1e67e2(0x77))/0x4+-parseInt(_0x1e67e2(0x81))/0x5+-parseInt(_0x1e67e2(0x6f))/0x6*(parseInt(_0x1e67e2(0x74))/0x7)+-parseInt(_0x1e67e2(0x7f))/0x8*(parseInt(_0x1e67e2(0x6b))/0x9)+parseInt(_0x1e67e2(0x69))/0xa*(parseInt(_0x1e67e2(0x82))/0xb);if(_0x32be54===_0x58ecde)break;else _0x4c5e8e['push'](_0x4c5e8e['shift']());}catch(_0x20f9c9){_0x4c5e8e['push'](_0x4c5e8e['shift']());}}}(a16_0x44dc,0xc9562));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x56dc99(0x80));function a16_0x5c81(_0x53b0dc,_0x34f7ac){const _0x44dc8c=a16_0x44dc();return a16_0x5c81=function(_0x5c812f,_0x250330){_0x5c812f=_0x5c812f-0x69;let _0x1a3d29=_0x44dc8c[_0x5c812f];return _0x1a3d29;},a16_0x5c81(_0x53b0dc,_0x34f7ac);}function a16_0x44dc(){const _0x378396=['4650260vlkYop','1045264kEZtJP','440IUbndb','pre_check','95301oCqWAl','311551HKxHGo','precheck_commands','epilogue','6aKxJrz','2yFLegV','strict','demandCommand','recommendCommands','9745771OTPwAh','help','handler','197520CkCkVJ','desc','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','EdGbg','usage','builder','JPtGx','738861BioYEf','1240VbJGmV','../config/constants'];a16_0x44dc=function(){return _0x378396;};return a16_0x44dc();}exports['command']='pre-check',exports[a16_0x56dc99(0x78)]=a16_0x56dc99(0x79),exports[a16_0x56dc99(0x7c)]=function(_0x182991){const _0x3ebd9e=a16_0x56dc99,_0x21423a={};_0x21423a[_0x3ebd9e(0x7a)]=_0x3ebd9e(0x6d),_0x21423a[_0x3ebd9e(0x7d)]=_0x3ebd9e(0x75);const _0x1836f2=_0x21423a;return _0x182991[_0x3ebd9e(0x7b)](HELP_HEADER_MESSAGE[_0x3ebd9e(0x6a)])[_0x3ebd9e(0x6e)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1836f2[_0x3ebd9e(0x7a)])[_0x3ebd9e(0x72)]()[_0x3ebd9e(0x73)]()[_0x3ebd9e(0x71)]()[_0x3ebd9e(0x75)](_0x1836f2['JPtGx']);},exports[a16_0x56dc99(0x76)]=function(_0x11b947){};
1
+ function a16_0x520a(_0x34def0,_0x1f8a41){const _0x5f5a1c=a16_0x5f5a();return a16_0x520a=function(_0x520ade,_0x209c28){_0x520ade=_0x520ade-0x182;let _0x28d072=_0x5f5a1c[_0x520ade];return _0x28d072;},a16_0x520a(_0x34def0,_0x1f8a41);}function a16_0x5f5a(){const _0x3971b1=['epilogue','260094xZIERI','help','211873ovbLln','../config/constants','commandDir','10921450NZVlJR','TAAfs','6780904DziJaQ','4502241MvBTKx','pre-check','UJCYu','6iHJuzE','precheck_commands','handler','245CFwBeC','pre_check','command','77FDkvOW','21396MUYSzS','3486168AwjrNP','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','desc','demandCommand','recommendCommands'];a16_0x5f5a=function(){return _0x3971b1;};return a16_0x5f5a();}const a16_0x450f00=a16_0x520a;(function(_0x4905b4,_0x10c020){const _0x432aeb=a16_0x520a,_0x4617ce=_0x4905b4();while(!![]){try{const _0x5a7369=-parseInt(_0x432aeb(0x196))/0x1*(-parseInt(_0x432aeb(0x185))/0x2)+parseInt(_0x432aeb(0x182))/0x3+-parseInt(_0x432aeb(0x18c))/0x4*(parseInt(_0x432aeb(0x188))/0x5)+-parseInt(_0x432aeb(0x194))/0x6*(parseInt(_0x432aeb(0x18b))/0x7)+parseInt(_0x432aeb(0x19b))/0x8+-parseInt(_0x432aeb(0x18d))/0x9+-parseInt(_0x432aeb(0x199))/0xa;if(_0x5a7369===_0x10c020)break;else _0x4617ce['push'](_0x4617ce['shift']());}catch(_0x20fcff){_0x4617ce['push'](_0x4617ce['shift']());}}}(a16_0x5f5a,0xbae66));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x450f00(0x197));exports[a16_0x450f00(0x18a)]=a16_0x450f00(0x183),exports[a16_0x450f00(0x190)]=a16_0x450f00(0x18f),exports['builder']=function(_0x47bcbf){const _0x196219=a16_0x450f00,_0x319d4b={};_0x319d4b[_0x196219(0x19a)]=_0x196219(0x186),_0x319d4b['UJCYu']=_0x196219(0x195);const _0xf5e72c=_0x319d4b;return _0x47bcbf[_0x196219(0x18e)](HELP_HEADER_MESSAGE[_0x196219(0x189)])[_0x196219(0x193)](HELP_FOOTER_MESSAGE)[_0x196219(0x198)](_0xf5e72c['TAAfs'])[_0x196219(0x191)]()[_0x196219(0x192)]()['strict']()[_0x196219(0x195)](_0xf5e72c[_0x196219(0x184)]);},exports[a16_0x450f00(0x187)]=function(_0x4736c3){};
@@ -1 +1 @@
1
- const a17_0x21cb24=a17_0x2c0a;(function(_0x475d15,_0x297d64){const _0x5e0f93=a17_0x2c0a,_0x4164ff=_0x475d15();while(!![]){try{const _0x52c6e0=parseInt(_0x5e0f93(0x189))/0x1+-parseInt(_0x5e0f93(0x19b))/0x2+parseInt(_0x5e0f93(0x123))/0x3+parseInt(_0x5e0f93(0x1c9))/0x4*(-parseInt(_0x5e0f93(0x13d))/0x5)+parseInt(_0x5e0f93(0x1e4))/0x6+parseInt(_0x5e0f93(0x148))/0x7+-parseInt(_0x5e0f93(0x1d8))/0x8;if(_0x52c6e0===_0x297d64)break;else _0x4164ff['push'](_0x4164ff['shift']());}catch(_0x41693c){_0x4164ff['push'](_0x4164ff['shift']());}}}(a17_0x231c,0x2fdf0));const fs=require('fs'),ws=require('ws'),got=require(a17_0x21cb24(0x203)),{v4:uuidv4}=require(a17_0x21cb24(0x1c3)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x21cb24(0x1b9)),{getCloudProviderObjectWithOutInit}=require(a17_0x21cb24(0x132)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x21cb24(0x108)]=a17_0x21cb24(0x14a),exports['desc']=a17_0x21cb24(0x147),exports[a17_0x21cb24(0x12d)]=function(_0x488722){const _0x130171=a17_0x21cb24,_0x2ac674={};_0x2ac674['OMDhS']=_0x130171(0x106),_0x2ac674['BpBqd']='string',_0x2ac674['RRJeE']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2ac674[_0x130171(0x1c2)]=_0x130171(0x139),_0x2ac674[_0x130171(0x201)]=_0x130171(0x1bc),_0x2ac674[_0x130171(0x112)]=_0x130171(0x1da);const _0x1b033d=_0x2ac674,_0x333433={};_0x333433['description']=_0x1b033d['OMDhS'],_0x333433[_0x130171(0x170)]=_0x1b033d[_0x130171(0x152)];const _0x203cca={};_0x203cca[_0x130171(0x1c4)]=_0x1b033d[_0x130171(0x166)],_0x203cca[_0x130171(0x170)]=_0x1b033d['BpBqd'];const _0x2e573e={};_0x2e573e[_0x130171(0x1c4)]=_0x1b033d[_0x130171(0x1c2)],_0x2e573e['type']=_0x1b033d[_0x130171(0x152)];const _0xc10a21={};_0xc10a21[_0x130171(0x1c4)]=_0x1b033d['htyQp'],_0xc10a21['type']=_0x1b033d['BpBqd'];const _0x379039={};return _0x379039[_0x130171(0x167)]=_0x333433,_0x379039[_0x130171(0x184)]=_0x203cca,_0x379039['region']=_0x2e573e,_0x379039[_0x130171(0x1af)]=_0xc10a21,_0x488722['usage'](HELP_HEADER_MESSAGE[_0x130171(0x143)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x130171(0x168)](_0x379039)[_0x130171(0x1da)](_0x1b033d['FXBvs'])['argv'];};async function inputValidation(_0x44b505,_0x2fa191){const _0x3c8a5e=a17_0x21cb24,_0x27142b={'PDtax':_0x3c8a5e(0x167),'sCkeL':_0x3c8a5e(0x106),'iXzHq':_0x3c8a5e(0x1f6),'oPTAS':_0x3c8a5e(0x1c0),'ihiPs':_0x3c8a5e(0x139),'yCXSh':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','JnOhe':'help','ORgsF':'error','YgPqD':_0x3c8a5e(0x171),'RUOZP':_0x3c8a5e(0x184),'bNHSI':'is\x20already\x20present','OHSlD':'will\x20be\x20created','vkLiy':_0x3c8a5e(0x121),'cGbkT':_0x3c8a5e(0x158),'tsckX':_0x3c8a5e(0x15d),'MsYMP':function(_0x3aec17,_0x3d7f04){return _0x3aec17+_0x3d7f04;},'fPWwU':_0x3c8a5e(0x205),'ToFPo':_0x3c8a5e(0x1f1),'zebEH':function(_0x27c190,_0x266609){return _0x27c190||_0x266609;},'ZHlNf':function(_0xe10f62,_0x50a778){return _0xe10f62===_0x50a778;},'UupRK':_0x3c8a5e(0x122),'tFgBN':_0x3c8a5e(0x105),'wYsEB':function(_0x344685,_0x39bbe7){return _0x344685!==_0x39bbe7;},'JIQHv':'ijuxH','jhctB':function(_0x2b90c7,_0x5ead75){return _0x2b90c7===_0x5ead75;},'pnfAG':_0x3c8a5e(0x1f2),'BzPXt':_0x3c8a5e(0x179),'BvpcE':_0x3c8a5e(0x1b2),'LZPGi':function(_0x45813c,_0x334912){return _0x45813c!==_0x334912;},'qTUJu':_0x3c8a5e(0x18b),'sOZuJ':_0x3c8a5e(0x19e),'KmapL':function(_0x46dff7,_0x178df7){return _0x46dff7>_0x178df7;},'vWBAK':_0x3c8a5e(0x1a3),'SYVYS':_0x3c8a5e(0x15a),'KDWcq':function(_0x522142,_0x1e7e71,_0x374a39,_0x227a66,_0x4f6d59,_0x4df007,_0x157964,_0xc232c3){return _0x522142(_0x1e7e71,_0x374a39,_0x227a66,_0x4f6d59,_0x4df007,_0x157964,_0xc232c3);},'UjTHO':'pre-check-grid-called','slOYS':_0x3c8a5e(0x204),'QOMrx':function(_0x561502,_0x13964e){return _0x561502!==_0x13964e;},'sIVin':_0x3c8a5e(0x186),'RZRfK':_0x3c8a5e(0x13e),'WrKYt':function(_0x192628,_0x306bc8,_0x47a804,_0x22617a,_0x28c01d,_0x412e4e,_0x81497b,_0x25e65c){return _0x192628(_0x306bc8,_0x47a804,_0x22617a,_0x28c01d,_0x412e4e,_0x81497b,_0x25e65c);},'DVEsC':_0x3c8a5e(0x1f8),'lAwFD':function(_0x1a823f,_0x39c688){return _0x1a823f===_0x39c688;},'npWmn':_0x3c8a5e(0x137),'NjlZD':_0x3c8a5e(0x195),'vYycc':function(_0x41a0e5,_0x4c787d){return _0x41a0e5===_0x4c787d;},'pIXgW':_0x3c8a5e(0x120),'UqRFZ':_0x3c8a5e(0x1cd),'UMvTR':function(_0x55a9d9,_0x2348c0,_0x230869){return _0x55a9d9(_0x2348c0,_0x230869);},'SuDiG':function(_0x1cf28c,_0x1481e2,_0x24bbe0,_0x43583c,_0x1bba61,_0x4cf6e7){return _0x1cf28c(_0x1481e2,_0x24bbe0,_0x43583c,_0x1bba61,_0x4cf6e7);},'zYALl':'pre-check','NRZwJ':_0x3c8a5e(0x1af),'lYnfe':function(_0xcd730b,_0x4f18a3){return _0xcd730b!==_0x4f18a3;},'NPrSv':'tdgxM','KiRwR':function(_0x2085dc,_0x10a5e5){return _0x2085dc(_0x10a5e5);},'Rcbpc':function(_0x4b21be,_0x1be5af){return _0x4b21be===_0x1be5af;},'ZTrvU':'TPLkM','ZtQqy':_0x3c8a5e(0x1e3),'lbHHm':function(_0x183390,_0x2f6aac){return _0x183390===_0x2f6aac;},'PKaEZ':_0x3c8a5e(0x176),'EvMPj':'TWssr','QoxPo':_0x3c8a5e(0x14d),'IyCgZ':_0x3c8a5e(0x174),'AJprn':_0x3c8a5e(0xff),'BIPqK':'YzXZy','DNasr':function(_0x3f059f,_0x405ae9){return _0x3f059f===_0x405ae9;},'zQinc':_0x3c8a5e(0x1a2),'BwfgK':_0x3c8a5e(0x116),'bJDwT':function(_0xbd4067,_0x38341f,_0x481abf,_0x63495,_0x25b62a,_0x1714aa,_0x1f55e8,_0x1e7652){return _0xbd4067(_0x38341f,_0x481abf,_0x63495,_0x25b62a,_0x1714aa,_0x1f55e8,_0x1e7652);}};let _0x1e9a8a;try{if(_0x27142b[_0x3c8a5e(0x12c)](_0x27142b[_0x3c8a5e(0x1f5)],_0x27142b[_0x3c8a5e(0x1a1)]))_0x366839[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0xfc)]);else{if(_0x44b505[_0x3c8a5e(0x1e7)]||_0x44b505['cloudProvider']||_0x44b505[_0x3c8a5e(0x171)]){if(_0x27142b['wYsEB'](_0x27142b[_0x3c8a5e(0x1e2)],_0x27142b['JIQHv'])){const _0x58890e={};_0x58890e[_0x3c8a5e(0x1c4)]=_0x27142b[_0x3c8a5e(0x1b4)],_0x58890e[_0x3c8a5e(0x170)]=_0x27142b[_0x3c8a5e(0x1c6)];const _0x43918e={};_0x43918e['description']=_0x27142b[_0x3c8a5e(0x1c8)],_0x43918e[_0x3c8a5e(0x170)]=_0x27142b[_0x3c8a5e(0x1c6)];const _0x923d19={};_0x923d19[_0x3c8a5e(0x1c4)]=_0x27142b[_0x3c8a5e(0x1ad)],_0x923d19['type']=_0x27142b[_0x3c8a5e(0x1c6)];const _0x404a91={};_0x404a91[_0x3c8a5e(0x1c4)]=_0x27142b['yCXSh'],_0x404a91[_0x3c8a5e(0x170)]=_0x27142b['iXzHq'];const _0x5533bc={};return _0x5533bc['cluster-name']=_0x58890e,_0x5533bc[_0x3c8a5e(0x184)]=_0x43918e,_0x5533bc[_0x3c8a5e(0x171)]=_0x923d19,_0x5533bc[_0x3c8a5e(0x1af)]=_0x404a91,_0x2c8e91['usage'](_0xf2e350[_0x3c8a5e(0x143)])[_0x3c8a5e(0x135)](_0x4b62d2)['options'](_0x5533bc)[_0x3c8a5e(0x1da)](_0x27142b['JnOhe'])[_0x3c8a5e(0x16a)];}else{const _0x4a941c=[];if(!_0x44b505[_0x3c8a5e(0x1e7)]){if(_0x27142b[_0x3c8a5e(0x103)](_0x27142b['pnfAG'],_0x27142b[_0x3c8a5e(0x1fe)]))_0x4a941c[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0xfc)]);else{const _0x38fb14={};_0x38fb14[_0x3c8a5e(0x170)]=_0x414cfd[_0x3c8a5e(0x111)],_0x38fb14['message']=_0x248690,_0x4ea18a['sendEventToBackend'](_0x5ba51a,_0x38fb14,_0x27142b[_0x3c8a5e(0x1b7)],!![]);}};!_0x44b505[_0x3c8a5e(0x18a)]&&(_0x27142b[_0x3c8a5e(0x126)](_0x27142b[_0x3c8a5e(0x131)],_0x27142b[_0x3c8a5e(0x10c)])?_0x4a941c[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0x15c)]):_0x3f2fe3['push'](_0x27142b[_0x3c8a5e(0x17d)]));;!_0x44b505[_0x3c8a5e(0x171)]&&(_0x27142b['LZPGi'](_0x27142b[_0x3c8a5e(0x196)],_0x27142b[_0x3c8a5e(0x1a9)])?_0x4a941c['push'](_0x27142b[_0x3c8a5e(0x17d)]):_0x1de742[_0x3c8a5e(0x144)](_0x27142b[_0x3c8a5e(0x15c)]));;_0x27142b['KmapL'](_0x4a941c['length'],0x0)&&(_0x27142b[_0x3c8a5e(0x12c)](_0x27142b[_0x3c8a5e(0x188)],_0x27142b[_0x3c8a5e(0x13b)])?_0x4df143+=_0x3c8a5e(0x16e)+_0x42b92c[_0x3c8a5e(0x1e7)]+'\x20'+(_0x32e8f5?_0x27142b[_0x3c8a5e(0x1ba)]:_0x27142b[_0x3c8a5e(0x1ca)])+'\x0a\x0a':(_0x1e9a8a=_0x3c8a5e(0x150)+_0x4a941c[_0x3c8a5e(0x1a8)](',\x20')+_0x3c8a5e(0x13a),await _0x27142b[_0x3c8a5e(0x156)](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b[_0x3c8a5e(0x17c)],_0x27142b[_0x3c8a5e(0x1b7)]),logger['error'](_0x1e9a8a),process[_0x3c8a5e(0x163)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3c8a5e(0x18c)](_0x44b505['cloudProvider'][_0x3c8a5e(0x1ee)]())&&(_0x27142b[_0x3c8a5e(0x1bd)](_0x27142b[_0x3c8a5e(0x12a)],_0x27142b[_0x3c8a5e(0x12a)])?(_0x37d572+=_0x27142b[_0x3c8a5e(0x18d)],_0x535d5b+=_0x3c8a5e(0x1e8)+(_0x5c6a25[_0x3c8a5e(0x165)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a',_0x981f6f+='\x20\x20Code:\x20'+(_0x4d5112[_0x3c8a5e(0xfd)]||_0x27142b['cGbkT'])+'\x0a',_0x4bf6dc+=_0x3c8a5e(0x153)+(_0x1534d6[_0x3c8a5e(0x1ab)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a'):(_0x1e9a8a=_0x27142b[_0x3c8a5e(0x1fb)],await _0x27142b[_0x3c8a5e(0x1be)](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b[_0x3c8a5e(0x12f)],_0x27142b[_0x3c8a5e(0x1b7)]),logger[_0x3c8a5e(0x104)](_0x1e9a8a),!_0x44b505[_0x3c8a5e(0x18a)]&&(_0x27142b[_0x3c8a5e(0x142)](_0x27142b['npWmn'],_0x27142b[_0x3c8a5e(0x127)])?_0x504f83[_0x3c8a5e(0x141)](_0x3c8a5e(0x15e)+_0x3035c6[_0x3c8a5e(0x1e7)]+_0x3c8a5e(0x180)):(logger['info'](_0x3c8a5e(0x130)+DEFAULT_CLUSTER_DETAILS[_0x3c8a5e(0x1db)]+'\x20'),_0x44b505['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'])))),global_registry[_0x3c8a5e(0x1e7)]=_0x44b505[_0x3c8a5e(0x1e7)],global_registry[_0x3c8a5e(0x18a)]=_0x44b505[_0x3c8a5e(0x18a)],global_registry[_0x3c8a5e(0x1cc)]=_0x44b505['region'];}}else{if(_0x44b505[_0x3c8a5e(0x164)]){if(_0x27142b['vYycc'](_0x27142b[_0x3c8a5e(0x15b)],_0x27142b[_0x3c8a5e(0x15b)])){global_registry[_0x3c8a5e(0x164)]=_0x44b505['gridProfile'],logger[_0x3c8a5e(0x1a7)](_0x3c8a5e(0x15f)+_0x44b505[_0x3c8a5e(0x164)]);const _0x5ca9c9='https://'+AG_API_URL+_0x3c8a5e(0x1a5),_0x3bf1a6={};_0x3bf1a6[_0x3c8a5e(0x10f)]=_0x27142b['UqRFZ'],_0x3bf1a6[_0x3c8a5e(0x109)]=global_registry[_0x3c8a5e(0x1b0)],_0x3bf1a6[_0x3c8a5e(0x155)]=![];const _0x2a7286=_0x3bf1a6,_0x26ac5d=await _0x27142b[_0x3c8a5e(0x1f9)](got,_0x5ca9c9,_0x2a7286),_0x42b5a8=await _0x27142b['SuDiG'](responseValidation,_0x26ac5d,_0x27142b[_0x3c8a5e(0x1c7)],_0x27142b[_0x3c8a5e(0x1ef)],_0x44b505,_0x2fa191);let _0x7341a7={};if(_0x27142b[_0x3c8a5e(0x103)](_0x42b5a8,0xc8)){if(_0x27142b[_0x3c8a5e(0x1f0)](_0x27142b[_0x3c8a5e(0x1ae)],_0x27142b[_0x3c8a5e(0x1ae)]))_0x25261d['error'](_0x27142b['tsckX']),_0x2ddfcb[_0x3c8a5e(0x163)](0x1);else{const _0x527780=JSON[_0x3c8a5e(0x1fa)](_0x26ac5d[_0x3c8a5e(0x1de)]),_0x3a53e8=_0x527780['find'](_0x4d0239=>_0x4d0239[_0x3c8a5e(0x11a)]===_0x44b505[_0x3c8a5e(0x164)])||null;_0x27142b[_0x3c8a5e(0x1b6)](isUndefined,_0x3a53e8)?_0x27142b[_0x3c8a5e(0x1fd)](_0x27142b[_0x3c8a5e(0x177)],_0x27142b[_0x3c8a5e(0x177)])?(_0x1e9a8a='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x44b505['gridProfile']+_0x3c8a5e(0x1e9),await _0x27142b['KDWcq'](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b[_0x3c8a5e(0x13f)],_0x27142b[_0x3c8a5e(0x1b7)]),logger[_0x3c8a5e(0x104)](_0x1e9a8a),process[_0x3c8a5e(0x163)](0x1)):_0x3e1319[_0x3c8a5e(0x104)]('error\x20stack\x20:\x20'+_0x57395a[_0x3c8a5e(0x104)][_0x3c8a5e(0x1ab)]):_0x27142b[_0x3c8a5e(0x17b)](_0x27142b[_0x3c8a5e(0x173)],_0x27142b[_0x3c8a5e(0x173)])?_0x7341a7=_0x3a53e8:_0x50e420[_0x3c8a5e(0x163)](0x1);}}else _0x27142b[_0x3c8a5e(0x1f0)](_0x27142b[_0x3c8a5e(0x1ff)],_0x27142b[_0x3c8a5e(0x107)])?process[_0x3c8a5e(0x163)](0x1):_0x1a39cc=_0x5540bd;const _0x443da6={};_0x443da6['type']=WS_EVENTS[_0x3c8a5e(0x111)],_0x443da6[_0x3c8a5e(0x165)]=_0x27142b[_0x3c8a5e(0x1df)],webSocketUtils[_0x3c8a5e(0x124)](_0x2fa191,_0x443da6),global_registry[_0x3c8a5e(0x18a)]=_0x7341a7[_0x3c8a5e(0x18a)],global_registry[_0x3c8a5e(0x1cc)]=_0x7341a7[_0x3c8a5e(0x171)],global_registry['clusterName']=_0x7341a7[_0x3c8a5e(0x1e7)];}else _0xe9518c['info']('['+_0x388298+_0x3c8a5e(0x16b)+_0x39c79d[_0x3c8a5e(0x17e)]+'\x20data\x20:\x20'+_0x41b5c7[_0x3c8a5e(0x1ec)]+'\x20error\x20:\x20'+_0x4f052d[_0x3c8a5e(0x104)]),_0x291bbf['error']&&_0x341789[_0x3c8a5e(0x104)](_0x3c8a5e(0x162)+_0x5d3e6a['error']['stack']);}else{if(_0x27142b[_0x3c8a5e(0x1f0)](_0x27142b['AJprn'],_0x27142b[_0x3c8a5e(0x119)]))logger['error'](_0x27142b['tsckX']),process[_0x3c8a5e(0x163)](0x1);else{const {header:_0x33969e,response:_0x2adadf}=_0x2f93fc,{status:_0xf0b35b,data:_0x5ecdf2,error:_0x141128}=_0x2adadf;_0x878ba1+=_0x33969e+'\x20#'+_0x27142b[_0x3c8a5e(0x14b)](_0x411f18,0x1)+'\x0a',_0x4b7c51+=_0x3c8a5e(0x1a6)+(_0xf0b35b?_0x27142b[_0x3c8a5e(0x13c)]:_0x27142b[_0x3c8a5e(0x160)])+'\x0a',_0x5393ce+=_0x3c8a5e(0x1fc)+_0x27142b[_0x3c8a5e(0x1f7)](_0x5ecdf2,_0x27142b['cGbkT'])+'\x0a',_0x141128&&(_0x3b3e0e+=_0x27142b[_0x3c8a5e(0x18d)],_0x19ae8c+=_0x3c8a5e(0x1e8)+(_0x141128['message']||_0x27142b['cGbkT'])+'\x0a',_0x1bad25+='\x20\x20Code:\x20'+(_0x141128[_0x3c8a5e(0xfd)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a',_0x44e07f+=_0x3c8a5e(0x153)+(_0x141128[_0x3c8a5e(0x1ab)]||_0x27142b[_0x3c8a5e(0x202)])+'\x0a'),_0x2a90e7+='\x0a\x0a';}}}}}catch(_0x1da53b){_0x27142b[_0x3c8a5e(0x183)](_0x27142b['zQinc'],_0x27142b[_0x3c8a5e(0x11e)])?(_0x30c115[_0x3c8a5e(0x141)](_0x3c8a5e(0x130)+_0x4dcd45[_0x3c8a5e(0x1db)]+'\x20'),_0x28805c['cloudProvider']=_0x514609[_0x3c8a5e(0x1db)]):(_0x1e9a8a=_0x3c8a5e(0x1c5)+_0x1da53b+':\x20'+_0x1da53b[_0x3c8a5e(0x1ab)],logger[_0x3c8a5e(0x104)](_0x1e9a8a),await _0x27142b[_0x3c8a5e(0x1e5)](reportToGalactusAndSendToEDS,_0x44b505,_0x2fa191,_0x1e9a8a,messageTypes[_0x3c8a5e(0x159)],_0x27142b[_0x3c8a5e(0x101)],_0x27142b['DVEsC'],_0x27142b[_0x3c8a5e(0x1b7)]),process[_0x3c8a5e(0x163)](0x1));}}function printResponse(_0x5818e7,_0x3eaaca){const _0x3776d3=a17_0x21cb24,_0x177f11={};_0x177f11['reHql']=function(_0x4a339c,_0x555eef){return _0x4a339c!==_0x555eef;},_0x177f11[_0x3776d3(0x1b3)]=_0x3776d3(0x1b5),_0x177f11[_0x3776d3(0x12e)]=_0x3776d3(0x157);const _0x30bcde=_0x177f11;logger['info']('['+_0x5818e7+']\x20status\x20:\x20'+_0x3eaaca[_0x3776d3(0x17e)]+_0x3776d3(0x1b1)+_0x3eaaca[_0x3776d3(0x1ec)]+'\x20error\x20:\x20'+_0x3eaaca['error']),_0x3eaaca[_0x3776d3(0x104)]&&(_0x30bcde[_0x3776d3(0x1ac)](_0x30bcde['ufDxj'],_0x30bcde[_0x3776d3(0x12e)])?logger[_0x3776d3(0x104)](_0x3776d3(0x162)+_0x3eaaca['error']['stack']):_0x1094e3+='Cluster\x20'+_0x402161[_0x3776d3(0x1e7)]+_0x3776d3(0x1eb));}function a17_0x231c(){const _0x1b586a=['SRuCE','username','password','wenyx','pre-check-grid-called','existsSync','heIPI','qTUJu','XPczr','HLshN','\x20===\x0a\x0a','getUTCDate','380814wwQKoc','init','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EyVMV','forEach','xIFJG','tFgBN','CHnEi','pYOnx','<UsernamePlaceholder>','/packages/cli/get-all-grid-profiles','Status:\x20','debug','join','sOZuJ','isTls1_2_SUPPORTED','stack','reHql','ihiPs','NPrSv','grid-profile','authHeader','\x20data\x20:\x20','UykAY','ufDxj','sCkeL','wQWYO','KiRwR','ORgsF','ZTPvt','../../config/constants','bNHSI','hdcaq','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','QOMrx','WrKYt','mxRhm','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','log/report_','kzSIY','uuid','description','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','iXzHq','zYALl','oPTAS','20caZvNb','OHSlD','requestId','clusterRegion','GET','2|3|1|0|4','dummy-grid','ZoFRV','\x20\x20Code:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','checkAccess','<PasswordPlaceholder>','hKndY','FLVUC','VvNga','7705440rjeABo','FrTzC','help','CLOUD_PROVIDER','will\x20be\x20created','OUZmX','body','IyCgZ','SSL\x20Configured','\x20region\x20-\x20','JIQHv','pre-check-grid-profile-empty','2195742YDHpqq','bJDwT','QMjtf','clusterName','\x20\x20Message:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','delay','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','data','header','toLowerCase','NRZwJ','lYnfe','Failure','zoyFa','swafr','sUvtC','UupRK','string','zebEH','cloud-provider-not-supported','UMvTR','parse','RZRfK','Message:\x20','Rcbpc','pnfAG','EvMPj','bstackAccesskey','htyQp','cGbkT','got','pre-check-cluster-args-not-passed','Success','PDtax','code','AKIsL','TPjUH','credential-not-found','UjTHO','KBzfU','jhctB','error','wMsOV','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','QoxPo','command','headers','Pre-check\x20running\x20for\x20Cloud\x20-\x20','sCcOE','BvpcE','stringify','stack\x20trace\x20','method','IsRPt','LOG','FXBvs','`\x20,error\x20:\x20','utf-8','yuLtL','vHoNR','isTrialGridAccessible','MBdOP','BIPqK','name','cluster-check-failed-','handler','bstackUsername','BwfgK','getUTCHours','FtCQa','Error\x20Details:\x0a','KfjFp','1149579nLcKXM','sendEventToBackend','myQfn','wYsEB','NjlZD','fdGkh','INFO','sIVin','is\x20already\x20present','ZHlNf','builder','WUfrE','DVEsC','Setting\x20cloud\x20provider\x20as\x20','BzPXt','../../cloudproviders/utils','RBdQF','Cluster\x20details\x0a-----------------------\x0a','epilogue','FkBAS','XjVpx','Browserstack','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','.\x20Please\x20provide\x20all\x20required\x20arguments.','SYVYS','fPWwU','97315pXkttc','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ZtQqy','accessResp','info','lAwFD','pre_check','push','JuNnc','getUTCMonth','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','2671816yGCCzW','writeFileSync','grid','MsYMP','rhefO','LPGda','mnjBT','LAfpj','Missing\x20required\x20arguments:\x20','response','BpBqd','\x20\x20Stack:\x20','toolInstalledResp','throwHttpErrors','KDWcq','mesGX','N/A','ERROR','MOMeG','pIXgW','RUOZP','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Cluster\x20`','grid\x20profile\x20flow\x20','ToFPo','hiyFU','error\x20stack\x20:\x20','exit','gridProfile','message','RRJeE','cluster-name','options','replace','argv',']\x20status\x20:\x20','getUTCFullYear','bbxYn','Cluster\x20','Report\x20saved\x20in\x20','type','region','WebSocket','PKaEZ','Grid\x20profile\x20fetched\x20for\x20pre-check','mvIuz','miEcl','ZTrvU','connectionTimeout','shAuj','xjGaa','lbHHm','slOYS','YgPqD','status','pre-check-failed','`\x20already\x20exists','oVxLD','isClusterPresent','DNasr','cloud-provider','PWGYV','IKqeC','POzxO','vWBAK','316144DyzvkB','cloudProvider','DKYoD','includes','vkLiy','Failed\x20in\x20pre-check!\x20Error:\x20'];a17_0x231c=function(){return _0x1b586a;};return a17_0x231c();}async function generateReport(_0x80e4c2,_0x47e4b0){const _0x46fee2=a17_0x21cb24,_0x2dde1d={'xjGaa':function(_0x2c439e,_0x2a78b8){return _0x2c439e+_0x2a78b8;},'sCcOE':_0x46fee2(0x205),'fLDqe':_0x46fee2(0x1f1),'QMjtf':function(_0x46d18d,_0x5ab1c3){return _0x46d18d||_0x5ab1c3;},'fdGkh':_0x46fee2(0x158),'hdcaq':_0x46fee2(0x121),'oVxLD':_0x46fee2(0x134),'myQfn':function(_0x178a90,_0x3bfde2){return _0x178a90!=_0x3bfde2;},'OUZmX':_0x46fee2(0x12b),'SRuCE':_0x46fee2(0x1dc),'JuNnc':function(_0x12acbd){return _0x12acbd();}};let _0x35ae89='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x46fee2(0x18a)]+_0x46fee2(0x199);return _0x80e4c2[_0x46fee2(0x19f)]((_0x43116d,_0x1ddd0f)=>{const _0x268797=_0x46fee2,{header:_0x5a2dad,response:_0x253d7d}=_0x43116d,{status:_0x1d7456,data:_0x1297f5,error:_0x426c89}=_0x253d7d;_0x35ae89+=_0x5a2dad+'\x20#'+_0x2dde1d[_0x268797(0x17a)](_0x1ddd0f,0x1)+'\x0a',_0x35ae89+='Status:\x20'+(_0x1d7456?_0x2dde1d[_0x268797(0x10b)]:_0x2dde1d['fLDqe'])+'\x0a',_0x35ae89+=_0x268797(0x1fc)+_0x2dde1d[_0x268797(0x1e6)](_0x1297f5,_0x2dde1d['fdGkh'])+'\x0a',_0x426c89&&(_0x35ae89+=_0x2dde1d[_0x268797(0x1bb)],_0x35ae89+=_0x268797(0x1e8)+(_0x426c89[_0x268797(0x165)]||_0x2dde1d[_0x268797(0x128)])+'\x0a',_0x35ae89+=_0x268797(0x1d1)+(_0x426c89['code']||_0x2dde1d['fdGkh'])+'\x0a',_0x35ae89+='\x20\x20Stack:\x20'+(_0x426c89[_0x268797(0x1ab)]||_0x2dde1d[_0x268797(0x128)])+'\x0a'),_0x35ae89+='\x0a\x0a';}),_0x35ae89+=_0x2dde1d[_0x46fee2(0x181)],_0x2dde1d[_0x46fee2(0x125)](_0x47e4b0,null)?_0x35ae89+=_0x46fee2(0x16e)+global_registry[_0x46fee2(0x1e7)]+'\x20'+(_0x47e4b0?_0x2dde1d[_0x46fee2(0x1dd)]:_0x2dde1d[_0x46fee2(0x18f)])+'\x0a\x0a':_0x35ae89+=_0x46fee2(0x16e)+global_registry['clusterName']+_0x46fee2(0x1eb),_0x35ae89+=_0x2dde1d[_0x46fee2(0x145)](getSystemMetaData),_0x35ae89;}function a17_0x2c0a(_0x544b39,_0x338c1c){const _0x231c73=a17_0x231c();return a17_0x2c0a=function(_0x2c0a50,_0x474688){_0x2c0a50=_0x2c0a50-0xfc;let _0x45424e=_0x231c73[_0x2c0a50];return _0x45424e;},a17_0x2c0a(_0x544b39,_0x338c1c);};exports[a17_0x21cb24(0x11c)]=async function(_0x1493d6){const _0x4f7620=a17_0x21cb24,_0x164d2b={'FLVUC':function(_0x32616c){return _0x32616c();},'FrTzC':function(_0xba974a){return _0xba974a();},'HLshN':_0x4f7620(0x19d),'hiyFU':function(_0x118fa7,_0x4a37ea,_0x12804d,_0x4d0ed1,_0x5ef7cc,_0x2f8440,_0x2505ad,_0x2c6429){return _0x118fa7(_0x4a37ea,_0x12804d,_0x4d0ed1,_0x5ef7cc,_0x2f8440,_0x2505ad,_0x2c6429);},'VvNga':_0x4f7620(0x193),'mxRhm':_0x4f7620(0x100),'mvIuz':_0x4f7620(0x104),'mnjBT':function(_0x3a0415,_0x1dcafc,_0x4dffe2,_0x37c018,_0x247a92,_0x879c8a,_0xb6c406){return _0x3a0415(_0x1dcafc,_0x4dffe2,_0x37c018,_0x247a92,_0x879c8a,_0xb6c406);},'xIFJG':function(_0x3f82d8){return _0x3f82d8();},'wenyx':_0x4f7620(0x1a4),'POzxO':_0x4f7620(0x1d4),'FkBAS':function(_0x2c4685,_0x27a471,_0x3376ce){return _0x2c4685(_0x27a471,_0x3376ce);},'rhefO':function(_0x3dc21e,_0xc70d5d,_0x41c13c){return _0x3dc21e(_0xc70d5d,_0x41c13c);},'RBdQF':_0x4f7620(0x1cf),'yuLtL':_0x4f7620(0x154),'sUvtC':_0x4f7620(0x1ce),'XPczr':function(_0x2286a2,_0x143350,_0x48e9e1,_0x7942e1,_0x2f4ed6,_0x385897,_0x7c2804,_0x301d54){return _0x2286a2(_0x143350,_0x48e9e1,_0x7942e1,_0x2f4ed6,_0x385897,_0x7c2804,_0x301d54);},'bbxYn':function(_0x430a35,_0x40df72,_0x556356){return _0x430a35(_0x40df72,_0x556356);},'UteIi':_0x4f7620(0x140),'ZTPvt':function(_0x4b851f,_0x3af877,_0xde50fd){return _0x4b851f(_0x3af877,_0xde50fd);},'IsRPt':_0x4f7620(0x117),'hKndY':function(_0x2a8796,_0xc0af65){return _0x2a8796(_0xc0af65);},'UZdHx':'TLSv1_2_client_method','AKIsL':function(_0x2698e9,_0x659909,_0x13ab92){return _0x2698e9(_0x659909,_0x13ab92);},'ACIux':_0x4f7620(0x1aa),'MBdOP':'Tool\x20Installed','PWGYV':'User\x20Access','EgRNR':'Whitelisted\x20browserstack','swafr':_0x4f7620(0x1e0),'ZoFRV':function(_0x358290,_0x29bf2c){return _0x358290+_0x29bf2c;},'LAfpj':_0x4f7620(0x114),'KBzfU':function(_0x5f5201,_0x3ff62c,_0x2a9a4b,_0x262cfa,_0x3324df,_0x36c7fb,_0x12bfa9){return _0x5f5201(_0x3ff62c,_0x2a9a4b,_0x262cfa,_0x3324df,_0x36c7fb,_0x12bfa9);},'UKjMw':_0x4f7620(0x17f)};let _0x57890f,_0x186526;try{global_registry[_0x4f7620(0x1cb)]=_0x164d2b[_0x4f7620(0x1d6)](uuidv4);!fs[_0x4f7620(0x194)](_0x164d2b[_0x4f7620(0x1d9)](getCredentialsPath))&&(_0x186526=_0x164d2b[_0x4f7620(0x198)],logger[_0x4f7620(0x104)](_0x186526),await _0x164d2b[_0x4f7620(0x161)](reportToGalactusAndSendToEDS,_0x1493d6,_0x57890f,_0x186526,messageTypes[_0x4f7620(0x159)],_0x164d2b[_0x4f7620(0x1d7)],_0x164d2b[_0x4f7620(0x1bf)],_0x164d2b['mvIuz']),process[_0x4f7620(0x163)](0x1));_0x164d2b[_0x4f7620(0x14e)](sendInstrumentationEvent,_0x1493d6,_0x164d2b[_0x4f7620(0x1d7)],messageTypes[_0x4f7620(0x129)],null,null,_0x1493d6);const _0x3a50b0=JSON[_0x4f7620(0x1fa)](fs['readFileSync'](_0x164d2b[_0x4f7620(0x1a0)](getCredentialsPath)));global_registry[_0x4f7620(0x11d)]=_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x190)],global_registry[_0x4f7620(0x200)]=_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x191)];const _0xc22c1f=WS_ENDPOINT[_0x4f7620(0x169)](_0x164d2b[_0x4f7620(0x192)],_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x190)])[_0x4f7620(0x169)](_0x164d2b[_0x4f7620(0x187)],_0x3a50b0[_0x4f7620(0x138)][_0x4f7620(0x191)]),_0x1708da={};_0x1708da[_0x4f7620(0x172)]=ws,_0x1708da[_0x4f7620(0x178)]=0x36ee80,_0x57890f=new ReconnectingWebSocket(_0xc22c1f,[],_0x1708da),global_registry['authHeader']=_0x164d2b['FkBAS'](getAuthHeader,global_registry[_0x4f7620(0x11d)],global_registry['bstackAccesskey']),await _0x164d2b[_0x4f7620(0x14c)](inputValidation,_0x1493d6,_0x57890f),logger[_0x4f7620(0x141)](_0x4f7620(0x10a)+global_registry[_0x4f7620(0x18a)]+_0x4f7620(0x1e1)+global_registry[_0x4f7620(0x1cc)]);let _0x1e2d29=await _0x164d2b[_0x4f7620(0x14e)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x4f7620(0x1e7)],_0x164d2b[_0x4f7620(0x133)],_0x57890f,webSocketUtils,_0x1493d6);const _0xe6bfed=await _0x1e2d29['isCliToolInstalled']();_0x164d2b[_0x4f7620(0x136)](printResponse,_0x164d2b[_0x4f7620(0x115)],_0xe6bfed),_0x1e2d29=await _0x1e2d29[_0x4f7620(0x19c)]();let _0x2b508c=![];try{_0x2b508c=await _0x1e2d29[_0x4f7620(0x182)]();}catch(_0x45b568){const _0x2d8c22=_0x164d2b[_0x4f7620(0x1f4)]['split']('|');let _0x278e13=0x0;while(!![]){switch(_0x2d8c22[_0x278e13++]){case'0':_0x186526+='\x0a'+JSON[_0x4f7620(0x10d)](_0x45b568[_0x4f7620(0x1ab)]);continue;case'1':logger['error'](_0x186526);continue;case'2':_0x186526=_0x4f7620(0x1d2)+global_registry[_0x4f7620(0x1e7)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry['clusterRegion']+_0x4f7620(0x113)+_0x45b568;continue;case'3':_0x2b508c=null;continue;case'4':await _0x164d2b[_0x4f7620(0x197)](reportToGalactusAndSendToEDS,_0x1493d6,_0x57890f,_0x186526,messageTypes['ERROR'],_0x164d2b['VvNga'],_0x4f7620(0x11b)+global_registry[_0x4f7620(0x18a)],_0x164d2b['mvIuz']);continue;}break;}}_0x2b508c&&logger[_0x4f7620(0x141)](_0x4f7620(0x15e)+global_registry['clusterName']+'`\x20already\x20exists');const _0x122b6b=await _0x1e2d29[_0x4f7620(0x1d3)]();_0x164d2b[_0x4f7620(0x16d)](printResponse,_0x164d2b['UteIi'],_0x122b6b);const _0x2bf59d=await _0x164d2b[_0x4f7620(0x1a0)](curlRequest);_0x164d2b[_0x4f7620(0x1b8)](printResponse,_0x164d2b[_0x4f7620(0x110)],_0x2bf59d);const _0x3610d2=await _0x164d2b[_0x4f7620(0x1d5)](isTlsSupported,_0x164d2b['UZdHx']);_0x164d2b[_0x4f7620(0xfe)](printResponse,_0x164d2b['ACIux'],_0x3610d2);const _0xb9835={};_0xb9835[_0x4f7620(0x1ed)]=_0x164d2b[_0x4f7620(0x118)],_0xb9835[_0x4f7620(0x151)]=_0xe6bfed;const _0x54b60d={};_0x54b60d[_0x4f7620(0x1ed)]=_0x164d2b[_0x4f7620(0x185)],_0x54b60d[_0x4f7620(0x151)]=_0x122b6b;const _0x13e3ff={};_0x13e3ff['header']=_0x164d2b['EgRNR'],_0x13e3ff['response']=_0x2bf59d;const _0x14621f={};_0x14621f['header']=_0x164d2b[_0x4f7620(0x1f3)],_0x14621f[_0x4f7620(0x151)]=_0x3610d2;const _0x101a0e=[_0xb9835,_0x54b60d,_0x13e3ff,_0x14621f],_0x11b1a5=await _0x164d2b[_0x4f7620(0x1b8)](generateReport,_0x101a0e,_0x2b508c),_0x574e7e=new Date(),_0x2e3146=_0x574e7e[_0x4f7620(0x16c)]()+'_'+_0x164d2b[_0x4f7620(0x1d0)](_0x574e7e[_0x4f7620(0x146)](),0x1)+'_'+_0x574e7e[_0x4f7620(0x19a)]()+'_'+_0x574e7e[_0x4f7620(0x11f)]()+'_'+_0x574e7e['getUTCMinutes'](),_0x44d423=_0x4f7620(0x1c1)+_0x2e3146+'.txt';fs[_0x4f7620(0x149)](_0x44d423,_0x11b1a5,_0x164d2b[_0x4f7620(0x14f)]),logger[_0x4f7620(0x141)](_0x4f7620(0x16f)+_0x44d423),process[_0x4f7620(0x163)](0x0);}catch(_0x5379d3){let _0x4927fd=_0x4f7620(0x18e)+_0x5379d3+'\x20';logger['error'](_0x4927fd),_0x4927fd+='\x0a'+JSON[_0x4f7620(0x10d)](_0x5379d3[_0x4f7620(0x1ab)]),logger[_0x4f7620(0x1a7)](_0x4f7620(0x10e)+_0x5379d3[_0x4f7620(0x1ab)]);if(_0x57890f){const _0x4cbf6d={};_0x4cbf6d[_0x4f7620(0x170)]=WS_EVENTS[_0x4f7620(0x111)],_0x4cbf6d[_0x4f7620(0x165)]=_0x4927fd,webSocketUtils['sendEventToBackend'](_0x57890f,_0x4cbf6d,_0x164d2b[_0x4f7620(0x175)],!![]);}await webSocketUtils[_0x4f7620(0x1ea)](0x7d0);const _0x47d74b={};_0x47d74b['error']=_0x4927fd,await _0x164d2b[_0x4f7620(0x102)](sendInstrumentationEvent,_0x1493d6,_0x164d2b['VvNga'],messageTypes[_0x4f7620(0x159)],_0x164d2b['UKjMw'],_0x47d74b,_0x1493d6),process[_0x4f7620(0x163)](0x1);}};
1
+ const a17_0x1ebd0b=a17_0xfd75;(function(_0x2b9d09,_0x1f7a54){const _0x88f3fd=a17_0xfd75,_0x3918f2=_0x2b9d09();while(!![]){try{const _0x57d32f=parseInt(_0x88f3fd(0x1a7))/0x1*(-parseInt(_0x88f3fd(0x1ac))/0x2)+parseInt(_0x88f3fd(0xfd))/0x3+-parseInt(_0x88f3fd(0x17e))/0x4+parseInt(_0x88f3fd(0x19e))/0x5+parseInt(_0x88f3fd(0x15e))/0x6*(-parseInt(_0x88f3fd(0x15d))/0x7)+-parseInt(_0x88f3fd(0xc2))/0x8+parseInt(_0x88f3fd(0x157))/0x9;if(_0x57d32f===_0x1f7a54)break;else _0x3918f2['push'](_0x3918f2['shift']());}catch(_0x4c0f61){_0x3918f2['push'](_0x3918f2['shift']());}}}(a17_0x597d,0x7650c));const fs=require('fs'),ws=require('ws'),got=require(a17_0x1ebd0b(0x105)),{v4:uuidv4}=require(a17_0x1ebd0b(0x165)),ReconnectingWebSocket=require(a17_0x1ebd0b(0xd3)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1ebd0b(0x156)),{logger}=require(a17_0x1ebd0b(0x133)),{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_0x1ebd0b(0x173)),{getCloudProviderObjectWithOutInit}=require(a17_0x1ebd0b(0x14b)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x1ebd0b(0xc4));exports['command']=a17_0x1ebd0b(0x1a5),exports[a17_0x1ebd0b(0x1b7)]=a17_0x1ebd0b(0x10b),exports[a17_0x1ebd0b(0x1af)]=function(_0xe49852){const _0x522d98=a17_0x1ebd0b,_0x888d5e={};_0x888d5e[_0x522d98(0x111)]=_0x522d98(0x125),_0x888d5e[_0x522d98(0x124)]='string',_0x888d5e['DRGPO']=_0x522d98(0x11c),_0x888d5e['prfiA']=_0x522d98(0xdf),_0x888d5e[_0x522d98(0x17a)]=_0x522d98(0x109),_0x888d5e[_0x522d98(0x194)]='help';const _0x478020=_0x888d5e,_0x3d0c20={};_0x3d0c20[_0x522d98(0xcb)]=_0x478020['YqGix'],_0x3d0c20[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x2b7917={};_0x2b7917[_0x522d98(0xcb)]=_0x478020[_0x522d98(0x19c)],_0x2b7917[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x568217={};_0x568217[_0x522d98(0xcb)]=_0x478020[_0x522d98(0x130)],_0x568217[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x342695={};_0x342695[_0x522d98(0xcb)]=_0x478020[_0x522d98(0x17a)],_0x342695[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x23cdd8={};return _0x23cdd8[_0x522d98(0xea)]=_0x3d0c20,_0x23cdd8['cloud-provider']=_0x2b7917,_0x23cdd8['region']=_0x568217,_0x23cdd8[_0x522d98(0x195)]=_0x342695,_0xe49852[_0x522d98(0x176)](HELP_HEADER_MESSAGE[_0x522d98(0xf5)])[_0x522d98(0x1b0)](HELP_FOOTER_MESSAGE)[_0x522d98(0xeb)](_0x23cdd8)['help'](_0x478020[_0x522d98(0x194)])[_0x522d98(0x140)];};async function inputValidation(_0xdb9f74,_0x20e3de){const _0x1f771a=a17_0x1ebd0b,_0x1af88f={'RLTwv':_0x1f771a(0x125),'hXvGU':_0x1f771a(0x1b9),'bPxDB':_0x1f771a(0x11c),'sDBpA':_0x1f771a(0xdf),'fjDZj':_0x1f771a(0x109),'SPREQ':_0x1f771a(0x159),'RTBEf':_0x1f771a(0x167),'aTfum':_0x1f771a(0xd6),'amVSX':_0x1f771a(0x18f),'CZnFT':_0x1f771a(0x112),'NLjAK':_0x1f771a(0x138),'pxVhB':_0x1f771a(0x1b3),'edXJW':'error','HAlfg':_0x1f771a(0x16a),'CXYyt':_0x1f771a(0xea),'aRULK':function(_0x511b65,_0x26eac9){return _0x511b65+_0x26eac9;},'DOgxC':_0x1f771a(0x12d),'GWuxb':_0x1f771a(0x1a1),'QegyY':function(_0x47000d,_0x57fbf5){return _0x47000d||_0x57fbf5;},'KeuXG':function(_0x16bec3,_0x2e9a60){return _0x16bec3!==_0x2e9a60;},'GCSwP':_0x1f771a(0xee),'CXvYp':_0x1f771a(0x19b),'sYtlv':_0x1f771a(0xe6),'bbgAz':'minJY','bmupk':function(_0x402f92,_0x22f7bc){return _0x402f92!==_0x22f7bc;},'CACNO':_0x1f771a(0x127),'iBIoX':_0x1f771a(0x131),'yUFtA':function(_0x67c017,_0x5c14e1){return _0x67c017!==_0x5c14e1;},'IFTFd':_0x1f771a(0x103),'UXPZE':function(_0x13858f,_0x3e773f){return _0x13858f===_0x3e773f;},'xQjeH':'vWaGG','RAlGq':function(_0x31d7f8,_0x31f928){return _0x31d7f8>_0x31f928;},'cWoZv':'ekxUO','WYpuV':function(_0xf5a834,_0x4bd932,_0x489199,_0x43add2,_0x2ed438,_0x3e1a12,_0x74bd15,_0x3ca84a){return _0xf5a834(_0x4bd932,_0x489199,_0x43add2,_0x2ed438,_0x3e1a12,_0x74bd15,_0x3ca84a);},'MYVsp':_0x1f771a(0x11b),'nRiCz':_0x1f771a(0x13d),'nLenE':_0x1f771a(0x148),'twoSo':_0x1f771a(0x101),'UGanx':_0x1f771a(0xc7),'ybXnp':'kCRqc','hdrAF':_0x1f771a(0x1b8),'HetUk':function(_0x30f893,_0x584766){return _0x30f893!==_0x584766;},'MpLGT':_0x1f771a(0x188),'Uxhdo':_0x1f771a(0x181),'uhhHC':function(_0x5f2364,_0x3b195d,_0x59fb8a){return _0x5f2364(_0x3b195d,_0x59fb8a);},'dLaJM':function(_0x245675,_0xd18b05,_0x402af7,_0x1a314e,_0x38fafc,_0xbe0461){return _0x245675(_0xd18b05,_0x402af7,_0x1a314e,_0x38fafc,_0xbe0461);},'NeUUK':_0x1f771a(0x13c),'AkGhc':_0x1f771a(0x195),'pJJMA':_0x1f771a(0x170),'gzRgc':_0x1f771a(0x175),'GbtcG':function(_0x4e62f9,_0x588951){return _0x4e62f9(_0x588951);},'kDYSZ':function(_0x4952e7,_0x2498de){return _0x4952e7===_0x2498de;},'fbcig':_0x1f771a(0xe2),'wGBfw':_0x1f771a(0x16b),'chETX':_0x1f771a(0x164),'XSRJE':_0x1f771a(0x166),'SxSms':_0x1f771a(0x10a),'Iwcpp':function(_0x26f233,_0x13952d){return _0x26f233!==_0x13952d;},'nonwl':_0x1f771a(0x169),'rwNoa':'Grid\x20profile\x20fetched\x20for\x20pre-check','KwQAu':function(_0x852175,_0x277899){return _0x852175===_0x277899;},'iWLrL':_0x1f771a(0x17c),'mJEcJ':'Tcagc','KWJUZ':function(_0x1e8d96,_0x2c7e30,_0x367402,_0x250c11,_0x18d2e7,_0x284223,_0x511a67,_0x575c5e){return _0x1e8d96(_0x2c7e30,_0x367402,_0x250c11,_0x18d2e7,_0x284223,_0x511a67,_0x575c5e);}};let _0x9f1cf6;try{if(_0x1af88f['KeuXG'](_0x1af88f[_0x1f771a(0xe7)],_0x1af88f[_0x1f771a(0x120)])){if(_0xdb9f74['clusterName']||_0xdb9f74[_0x1f771a(0x12a)]||_0xdb9f74[_0x1f771a(0x16a)]){if(_0x1af88f[_0x1f771a(0x145)](_0x1af88f['sYtlv'],_0x1af88f['bbgAz'])){const _0x46fbc8=[];if(!_0xdb9f74[_0x1f771a(0x1b5)]){if(_0x1af88f[_0x1f771a(0x161)](_0x1af88f['CACNO'],_0x1af88f['iBIoX']))_0x46fbc8['push'](_0x1af88f[_0x1f771a(0x13a)]);else{const _0x253e43={};_0x253e43['description']=_0x1af88f[_0x1f771a(0xe0)],_0x253e43['type']=_0x1af88f[_0x1f771a(0xda)];const _0x377a41={};_0x377a41['description']=_0x1af88f['bPxDB'],_0x377a41[_0x1f771a(0xd4)]=_0x1af88f[_0x1f771a(0xda)];const _0x36c6f9={};_0x36c6f9[_0x1f771a(0xcb)]=_0x1af88f[_0x1f771a(0x18a)],_0x36c6f9['type']=_0x1af88f[_0x1f771a(0xda)];const _0x2b0576={};_0x2b0576[_0x1f771a(0xcb)]=_0x1af88f[_0x1f771a(0x15a)],_0x2b0576['type']=_0x1af88f[_0x1f771a(0xda)];const _0xbfee52={};return _0xbfee52['cluster-name']=_0x253e43,_0xbfee52[_0x1f771a(0x167)]=_0x377a41,_0xbfee52[_0x1f771a(0x16a)]=_0x36c6f9,_0xbfee52[_0x1f771a(0x195)]=_0x2b0576,_0x2cbf8d['usage'](_0x30fe52[_0x1f771a(0xf5)])[_0x1f771a(0x1b0)](_0x10dc0a)[_0x1f771a(0xeb)](_0xbfee52)[_0x1f771a(0x159)](_0x1af88f[_0x1f771a(0x19f)])[_0x1f771a(0x140)];}};!_0xdb9f74['cloudProvider']&&(_0x1af88f[_0x1f771a(0x183)](_0x1af88f['IFTFd'],_0x1af88f['IFTFd'])?_0x1cab90[_0x1f771a(0x107)](_0x1af88f[_0x1f771a(0xde)]):_0x46fbc8['push'](_0x1af88f[_0x1f771a(0xde)]));;!_0xdb9f74[_0x1f771a(0x16a)]&&(_0x1af88f[_0x1f771a(0x177)](_0x1af88f[_0x1f771a(0xe5)],_0x1af88f[_0x1f771a(0xe5)])?_0x46fbc8['push'](_0x1af88f[_0x1f771a(0x137)]):(_0xef3874[_0x1f771a(0x144)](_0x1af88f['aTfum']),_0x5b6fb6[_0x1f771a(0xf2)](0x1)));;_0x1af88f[_0x1f771a(0x126)](_0x46fbc8[_0x1f771a(0x155)],0x0)&&(_0x1af88f[_0x1f771a(0x177)](_0x1af88f[_0x1f771a(0xd1)],_0x1af88f['cWoZv'])?(_0x9f1cf6='Missing\x20required\x20arguments:\x20'+_0x46fbc8['join'](',\x20')+_0x1f771a(0x142),await _0x1af88f[_0x1f771a(0x13b)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes['ERROR'],_0x1af88f[_0x1f771a(0x1a2)],_0x1af88f[_0x1f771a(0xfc)],_0x1af88f[_0x1f771a(0x12e)]),logger[_0x1f771a(0x144)](_0x9f1cf6),process[_0x1f771a(0xf2)](0x1)):_0x51af9d+=_0x1f771a(0x10e)+_0x3a797b['clusterName']+'\x20'+(_0x2840b4?_0x1af88f[_0x1f771a(0x182)]:_0x1af88f[_0x1f771a(0x13e)])+'\x0a\x0a');if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1f771a(0x18b)](_0xdb9f74[_0x1f771a(0x12a)][_0x1f771a(0x1ae)]())){if(_0x1af88f['yUFtA'](_0x1af88f[_0x1f771a(0x178)],_0x1af88f[_0x1f771a(0x178)]))_0x26a27d+=_0x1af88f[_0x1f771a(0x163)],_0x50b3b2+=_0x1f771a(0x10c)+(_0x493bb4[_0x1f771a(0x185)]||_0x1af88f['pxVhB'])+'\x0a',_0x2c298d+=_0x1f771a(0xc8)+(_0x45d202[_0x1f771a(0x199)]||_0x1af88f['pxVhB'])+'\x0a',_0x665073+='\x20\x20Stack:\x20'+(_0x5572e3[_0x1f771a(0x149)]||_0x1af88f[_0x1f771a(0x116)])+'\x0a';else{_0x9f1cf6=_0x1af88f[_0x1f771a(0x17f)],await _0x1af88f[_0x1f771a(0x13b)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes[_0x1f771a(0xdc)],_0x1af88f[_0x1f771a(0x1a2)],_0x1af88f[_0x1f771a(0x197)],_0x1af88f['edXJW']),logger[_0x1f771a(0x144)](_0x9f1cf6);if(!_0xdb9f74[_0x1f771a(0x12a)]){if(_0x1af88f[_0x1f771a(0x145)](_0x1af88f[_0x1f771a(0xf3)],_0x1af88f[_0x1f771a(0x11f)]))logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x1f771a(0xe1)]+'\x20'),_0xdb9f74[_0x1f771a(0x12a)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'];else{const _0x2f62c6={};_0x2f62c6['type']=_0x5de08f[_0x1f771a(0x1a8)],_0x2f62c6[_0x1f771a(0x185)]=_0x17f79e,_0x286d26[_0x1f771a(0xf9)](_0x25a52d,_0x2f62c6,_0x1af88f['edXJW'],!![]);}}}}global_registry[_0x1f771a(0x1b5)]=_0xdb9f74[_0x1f771a(0x1b5)],global_registry[_0x1f771a(0x12a)]=_0xdb9f74[_0x1f771a(0x12a)],global_registry[_0x1f771a(0x1a0)]=_0xdb9f74[_0x1f771a(0x16a)];}else _0x1249a1=_0x42c23f;}else{if(_0xdb9f74['gridProfile']){if(_0x1af88f[_0x1f771a(0x114)](_0x1af88f[_0x1f771a(0x102)],_0x1af88f[_0x1f771a(0x102)]))_0x30a5f7[_0x1f771a(0x11a)]('Cluster\x20`'+_0x2cf86b[_0x1f771a(0x1b5)]+_0x1f771a(0x1a3));else{global_registry[_0x1f771a(0xc3)]=_0xdb9f74['gridProfile'],logger[_0x1f771a(0xed)](_0x1f771a(0x154)+_0xdb9f74[_0x1f771a(0xc3)]);const _0x478488=_0x1f771a(0x1b4)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x41c17e={};_0x41c17e[_0x1f771a(0x184)]=_0x1af88f['Uxhdo'],_0x41c17e[_0x1f771a(0x136)]=global_registry[_0x1f771a(0xdb)],_0x41c17e[_0x1f771a(0x17b)]=![];const _0x499656=_0x41c17e,_0x4571fa=await _0x1af88f[_0x1f771a(0x1b1)](got,_0x478488,_0x499656),_0x1f3312=await _0x1af88f['dLaJM'](responseValidation,_0x4571fa,_0x1af88f[_0x1f771a(0x180)],_0x1af88f['AkGhc'],_0xdb9f74,_0x20e3de);let _0x213538={};if(_0x1af88f['UXPZE'](_0x1f3312,0xc8)){if(_0x1af88f[_0x1f771a(0x177)](_0x1af88f[_0x1f771a(0xfb)],_0x1af88f['gzRgc']))_0x468440[_0x1f771a(0xf2)](0x1);else{const _0x2cc1f5=JSON[_0x1f771a(0x15b)](_0x4571fa[_0x1f771a(0x14a)]),_0x1b6847=_0x2cc1f5[_0x1f771a(0xd8)](_0x192f08=>_0x192f08[_0x1f771a(0x143)]===_0xdb9f74[_0x1f771a(0xc3)])||null;_0x1af88f[_0x1f771a(0xdd)](isUndefined,_0x1b6847)?_0x1af88f[_0x1f771a(0xd9)](_0x1af88f['fbcig'],_0x1af88f[_0x1f771a(0x11e)])?_0x33f986[_0x1f771a(0x107)](_0x1af88f['HAlfg']):(_0x9f1cf6=_0x1f771a(0x108)+_0xdb9f74['gridProfile']+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x1af88f[_0x1f771a(0x13b)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes[_0x1f771a(0xdc)],_0x1af88f['MYVsp'],_0x1af88f['chETX'],_0x1af88f[_0x1f771a(0x12e)]),logger[_0x1f771a(0x144)](_0x9f1cf6),process[_0x1f771a(0xf2)](0x1)):_0x1af88f[_0x1f771a(0x161)](_0x1af88f['XSRJE'],_0x1af88f[_0x1f771a(0xe8)])?_0x213538=_0x1b6847:_0x1a2ad4['error'](_0x1f771a(0x1b6)+_0x10b65c[_0x1f771a(0x144)][_0x1f771a(0x149)]);}}else _0x1af88f[_0x1f771a(0x122)](_0x1af88f[_0x1f771a(0x151)],_0x1af88f[_0x1f771a(0x151)])?(_0x3b6302[_0x1f771a(0x11a)](_0x1f771a(0x115)+_0x46d4fd[_0x1f771a(0xe1)]+'\x20'),_0x391f91[_0x1f771a(0x12a)]=_0x3be4e8[_0x1f771a(0xe1)]):process['exit'](0x1);const _0x4027ec={};_0x4027ec[_0x1f771a(0xd4)]=WS_EVENTS[_0x1f771a(0x1a8)],_0x4027ec[_0x1f771a(0x185)]=_0x1af88f[_0x1f771a(0xc6)],webSocketUtils[_0x1f771a(0xf9)](_0x20e3de,_0x4027ec),global_registry[_0x1f771a(0x12a)]=_0x213538[_0x1f771a(0x12a)],global_registry[_0x1f771a(0x1a0)]=_0x213538[_0x1f771a(0x16a)],global_registry[_0x1f771a(0x1b5)]=_0x213538['clusterName'];}}else _0x1af88f[_0x1f771a(0xd5)](_0x1af88f[_0x1f771a(0x110)],_0x1af88f['iWLrL'])?(logger[_0x1f771a(0x144)](_0x1af88f['aTfum']),process[_0x1f771a(0xf2)](0x1)):_0x779fb7[_0x1f771a(0x107)](_0x1af88f[_0x1f771a(0x13a)]);}}else{const {header:_0x144b7c,response:_0x153a39}=_0x47dfaa,{status:_0x12c147,data:_0x2d36a2,error:_0x5087cc}=_0x153a39;_0x3d845c+=_0x144b7c+'\x20#'+_0x1af88f[_0x1f771a(0x12f)](_0x2b6460,0x1)+'\x0a',_0x590e8d+=_0x1f771a(0x146)+(_0x12c147?_0x1af88f['DOgxC']:_0x1af88f[_0x1f771a(0x162)])+'\x0a',_0x193e4d+=_0x1f771a(0x160)+_0x1af88f[_0x1f771a(0x14f)](_0x2d36a2,_0x1af88f[_0x1f771a(0x116)])+'\x0a',_0x5087cc&&(_0x3ad9e1+=_0x1af88f[_0x1f771a(0x163)],_0x266175+=_0x1f771a(0x10c)+(_0x5087cc[_0x1f771a(0x185)]||_0x1af88f[_0x1f771a(0x116)])+'\x0a',_0x10d47f+='\x20\x20Code:\x20'+(_0x5087cc['code']||_0x1af88f[_0x1f771a(0x116)])+'\x0a',_0x290338+='\x20\x20Stack:\x20'+(_0x5087cc[_0x1f771a(0x149)]||_0x1af88f[_0x1f771a(0x116)])+'\x0a'),_0x1f4ddd+='\x0a\x0a';}}catch(_0x2f54bf){_0x1af88f['KeuXG'](_0x1af88f[_0x1f771a(0x113)],_0x1af88f[_0x1f771a(0x113)])?(_0x192b21['info']('['+_0x42d839+']\x20status\x20:\x20'+_0xb4b024[_0x1f771a(0x1ad)]+_0x1f771a(0x189)+_0x1bb007[_0x1f771a(0x12c)]+_0x1f771a(0x104)+_0x29d4d0[_0x1f771a(0x144)]),_0x58fd90[_0x1f771a(0x144)]&&_0x2e6c04[_0x1f771a(0x144)](_0x1f771a(0x1b6)+_0x565eff[_0x1f771a(0x144)][_0x1f771a(0x149)])):(_0x9f1cf6=_0x1f771a(0x187)+_0x2f54bf+':\x20'+_0x2f54bf[_0x1f771a(0x149)],logger['error'](_0x9f1cf6),await _0x1af88f[_0x1f771a(0x19d)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes['ERROR'],_0x1af88f['MYVsp'],_0x1af88f[_0x1f771a(0x197)],_0x1af88f[_0x1f771a(0x12e)]),process[_0x1f771a(0xf2)](0x1));}}function printResponse(_0x1d77fc,_0x4603b8){const _0x4664a1=a17_0x1ebd0b,_0x349701={};_0x349701['JhVrd']=function(_0x4d118,_0x34353d){return _0x4d118===_0x34353d;},_0x349701[_0x4664a1(0x16d)]=_0x4664a1(0x135),_0x349701['KzwBy']=_0x4664a1(0x1ab);const _0x2cf11a=_0x349701;logger[_0x4664a1(0x11a)]('['+_0x1d77fc+_0x4664a1(0xca)+_0x4603b8['status']+_0x4664a1(0x189)+_0x4603b8['data']+'\x20error\x20:\x20'+_0x4603b8['error']),_0x4603b8[_0x4664a1(0x144)]&&(_0x2cf11a[_0x4664a1(0xc9)](_0x2cf11a['ZRFlh'],_0x2cf11a[_0x4664a1(0x152)])?_0x3988d6+='Cluster\x20'+_0x1f19cc[_0x4664a1(0x1b5)]+_0x4664a1(0x14d):logger['error'](_0x4664a1(0x1b6)+_0x4603b8['error']['stack']));}async function generateReport(_0x175123,_0x5ce4d7){const _0x551517=a17_0x1ebd0b,_0x1e4787={'pMfoO':function(_0x5b8cb0,_0x5ddd86){return _0x5b8cb0+_0x5ddd86;},'unLrA':_0x551517(0x12d),'jcBEc':'Failure','kKzcH':function(_0x540402,_0x48b383){return _0x540402||_0x48b383;},'ozuJr':_0x551517(0x1b3),'xuMfo':'Error\x20Details:\x0a','LFRPp':_0x551517(0xd7),'JskvP':function(_0x357704,_0xe24494){return _0x357704!=_0xe24494;},'DrMaL':_0x551517(0x18f),'wNGYi':_0x551517(0x112),'oQDLt':function(_0x375cf6){return _0x375cf6();}};let _0x1ff2ea=_0x551517(0x1a4)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x175123[_0x551517(0x134)]((_0x5ecc01,_0xfab38d)=>{const _0x334db9=_0x551517,{header:_0x3d3905,response:_0x15c283}=_0x5ecc01,{status:_0x2c7c7f,data:_0x53c910,error:_0x68d3e0}=_0x15c283;_0x1ff2ea+=_0x3d3905+'\x20#'+_0x1e4787['pMfoO'](_0xfab38d,0x1)+'\x0a',_0x1ff2ea+='Status:\x20'+(_0x2c7c7f?_0x1e4787[_0x334db9(0x198)]:_0x1e4787[_0x334db9(0xec)])+'\x0a',_0x1ff2ea+=_0x334db9(0x160)+_0x1e4787[_0x334db9(0xcc)](_0x53c910,_0x1e4787[_0x334db9(0xc5)])+'\x0a',_0x68d3e0&&(_0x1ff2ea+=_0x1e4787['xuMfo'],_0x1ff2ea+=_0x334db9(0x10c)+(_0x68d3e0['message']||_0x1e4787[_0x334db9(0xc5)])+'\x0a',_0x1ff2ea+='\x20\x20Code:\x20'+(_0x68d3e0[_0x334db9(0x199)]||_0x1e4787[_0x334db9(0xc5)])+'\x0a',_0x1ff2ea+='\x20\x20Stack:\x20'+(_0x68d3e0[_0x334db9(0x149)]||_0x1e4787['ozuJr'])+'\x0a'),_0x1ff2ea+='\x0a\x0a';}),_0x1ff2ea+=_0x1e4787[_0x551517(0x139)],_0x1e4787[_0x551517(0x119)](_0x5ce4d7,null)?_0x1ff2ea+='Cluster\x20'+global_registry[_0x551517(0x1b5)]+'\x20'+(_0x5ce4d7?_0x1e4787['DrMaL']:_0x1e4787['wNGYi'])+'\x0a\x0a':_0x1ff2ea+='Cluster\x20'+global_registry[_0x551517(0x1b5)]+_0x551517(0x14d),_0x1ff2ea+=_0x1e4787['oQDLt'](getSystemMetaData),_0x1ff2ea;};exports['handler']=async function(_0x5e8221){const _0xccc0b7=a17_0x1ebd0b,_0x5453f9={'sKzXy':function(_0xe07309){return _0xe07309();},'RMUjI':function(_0x30fa0c){return _0x30fa0c();},'DCNym':_0xccc0b7(0xe4),'jMFJb':function(_0x1cac66,_0xf7ab96,_0x55f153,_0x27da1a,_0xa8ed10,_0x49f38f,_0xf10db7,_0x23e975){return _0x1cac66(_0xf7ab96,_0x55f153,_0x27da1a,_0xa8ed10,_0x49f38f,_0xf10db7,_0x23e975);},'KOEwY':_0xccc0b7(0x11b),'FCYsD':_0xccc0b7(0x16e),'LOIaA':'error','Qxwho':function(_0x18f0aa,_0x53c73b,_0x39e619,_0x5a1e9f,_0x5204ce,_0x51dd26,_0x45f3b2){return _0x18f0aa(_0x53c73b,_0x39e619,_0x5a1e9f,_0x5204ce,_0x51dd26,_0x45f3b2);},'TMuaU':'<UsernamePlaceholder>','VfiDy':_0xccc0b7(0x1a9),'SnMgI':function(_0x254ee2,_0x1e4fa6,_0x48fd9e){return _0x254ee2(_0x1e4fa6,_0x48fd9e);},'euPGI':function(_0x5f2ef0,_0x209a3b,_0x3a759a,_0x2ef681,_0x2bf1ca,_0x5522f3,_0x569e5c){return _0x5f2ef0(_0x209a3b,_0x3a759a,_0x2ef681,_0x2bf1ca,_0x5522f3,_0x569e5c);},'pNjHs':_0xccc0b7(0x15c),'zbWpF':'toolInstalledResp','SVMuV':'1|0|3|4|2','kLmWC':function(_0x4173e1,_0x162402,_0xe8219c){return _0x4173e1(_0x162402,_0xe8219c);},'VKuef':_0xccc0b7(0x168),'uyfpH':function(_0x37fae6){return _0x37fae6();},'cKOku':function(_0x3460ce,_0x16f97c,_0x10b705){return _0x3460ce(_0x16f97c,_0x10b705);},'RUsPm':_0xccc0b7(0x1a6),'DmODF':function(_0x20cdf8,_0x137fcd){return _0x20cdf8(_0x137fcd);},'TcgHS':_0xccc0b7(0xf8),'xAqvw':function(_0x3289d6,_0x5a4ee9,_0x4f3f7e){return _0x3289d6(_0x5a4ee9,_0x4f3f7e);},'UGRQn':'isTls1_2_SUPPORTED','xzScx':'Tool\x20Installed','nytsu':_0xccc0b7(0x192),'neuyZ':'Whitelisted\x20browserstack','cVmDG':_0xccc0b7(0x106),'jFYQB':function(_0x2839b8,_0x13e5c0){return _0x2839b8+_0x13e5c0;},'lQxPe':'utf-8','kfZVE':_0xccc0b7(0x174)};let _0x26b5f1,_0x521e5d;try{global_registry['requestId']=_0x5453f9[_0xccc0b7(0x11d)](uuidv4);!fs[_0xccc0b7(0x141)](_0x5453f9['RMUjI'](getCredentialsPath))&&(_0x521e5d=_0x5453f9[_0xccc0b7(0x15f)],logger['error'](_0x521e5d),await _0x5453f9['jMFJb'](reportToGalactusAndSendToEDS,_0x5e8221,_0x26b5f1,_0x521e5d,messageTypes[_0xccc0b7(0xdc)],_0x5453f9[_0xccc0b7(0x172)],_0x5453f9[_0xccc0b7(0xe3)],_0x5453f9[_0xccc0b7(0x118)]),process[_0xccc0b7(0xf2)](0x1));_0x5453f9[_0xccc0b7(0x179)](sendInstrumentationEvent,_0x5e8221,_0x5453f9[_0xccc0b7(0x172)],messageTypes[_0xccc0b7(0xf6)],null,null,_0x5e8221);const _0x33e106=JSON[_0xccc0b7(0x15b)](fs[_0xccc0b7(0x129)](_0x5453f9[_0xccc0b7(0x19a)](getCredentialsPath)));global_registry[_0xccc0b7(0x153)]=_0x33e106['Browserstack'][_0xccc0b7(0x18d)],global_registry[_0xccc0b7(0x1aa)]=_0x33e106['Browserstack'][_0xccc0b7(0xf7)];const _0x465710=WS_ENDPOINT[_0xccc0b7(0xff)](_0x5453f9[_0xccc0b7(0x158)],_0x33e106[_0xccc0b7(0x14c)][_0xccc0b7(0x18d)])[_0xccc0b7(0xff)](_0x5453f9[_0xccc0b7(0x12b)],_0x33e106[_0xccc0b7(0x14c)][_0xccc0b7(0xf7)]),_0x321e27={};_0x321e27[_0xccc0b7(0xce)]=ws,_0x321e27[_0xccc0b7(0x121)]=0x36ee80,_0x26b5f1=new ReconnectingWebSocket(_0x465710,[],_0x321e27),global_registry['authHeader']=_0x5453f9[_0xccc0b7(0xf4)](getAuthHeader,global_registry[_0xccc0b7(0x153)],global_registry[_0xccc0b7(0x1aa)]),await _0x5453f9[_0xccc0b7(0xf4)](inputValidation,_0x5e8221,_0x26b5f1),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x4a671e=await _0x5453f9[_0xccc0b7(0xf1)](getCloudProviderObjectWithOutInit,global_registry[_0xccc0b7(0x12a)],global_registry[_0xccc0b7(0x1b5)],_0x5453f9[_0xccc0b7(0x10f)],_0x26b5f1,webSocketUtils,_0x5e8221);const _0x262c79=await _0x4a671e[_0xccc0b7(0x14e)]();_0x5453f9[_0xccc0b7(0xf4)](printResponse,_0x5453f9['zbWpF'],_0x262c79),_0x4a671e=await _0x4a671e[_0xccc0b7(0xef)]();let _0x4c1281=![];try{_0x4c1281=await _0x4a671e[_0xccc0b7(0x100)]();}catch(_0x2932a2){const _0x3232c4=_0x5453f9[_0xccc0b7(0x1ba)][_0xccc0b7(0x117)]('|');let _0x247e6f=0x0;while(!![]){switch(_0x3232c4[_0x247e6f++]){case'0':_0x4c1281=null;continue;case'1':_0x521e5d=_0xccc0b7(0x10d)+global_registry[_0xccc0b7(0x1b5)]+_0xccc0b7(0x193)+global_registry[_0xccc0b7(0x1a0)]+_0xccc0b7(0x18c)+_0x2932a2;continue;case'2':await _0x5453f9[_0xccc0b7(0x16c)](reportToGalactusAndSendToEDS,_0x5e8221,_0x26b5f1,_0x521e5d,messageTypes[_0xccc0b7(0xdc)],_0x5453f9['KOEwY'],'cluster-check-failed-'+global_registry['cloudProvider'],_0x5453f9[_0xccc0b7(0x118)]);continue;case'3':logger[_0xccc0b7(0x144)](_0x521e5d);continue;case'4':_0x521e5d+='\x0a'+JSON[_0xccc0b7(0x186)](_0x2932a2['stack']);continue;}break;}}_0x4c1281&&logger[_0xccc0b7(0x11a)](_0xccc0b7(0x196)+global_registry[_0xccc0b7(0x1b5)]+'`\x20already\x20exists');const _0x2e0d98=await _0x4a671e['checkAccess']();_0x5453f9[_0xccc0b7(0x1b2)](printResponse,_0x5453f9[_0xccc0b7(0xcd)],_0x2e0d98);const _0x2c8d1f=await _0x5453f9['uyfpH'](curlRequest);_0x5453f9['cKOku'](printResponse,_0x5453f9[_0xccc0b7(0x18e)],_0x2c8d1f);const _0x2041a1=await _0x5453f9[_0xccc0b7(0x190)](isTlsSupported,_0x5453f9['TcgHS']);_0x5453f9[_0xccc0b7(0x16f)](printResponse,_0x5453f9['UGRQn'],_0x2041a1);const _0x37da62={};_0x37da62[_0xccc0b7(0xd0)]=_0x5453f9['xzScx'],_0x37da62[_0xccc0b7(0x128)]=_0x262c79;const _0x5ac319={};_0x5ac319[_0xccc0b7(0xd0)]=_0x5453f9[_0xccc0b7(0x150)],_0x5ac319[_0xccc0b7(0x128)]=_0x2e0d98;const _0x591c92={};_0x591c92[_0xccc0b7(0xd0)]=_0x5453f9[_0xccc0b7(0x171)],_0x591c92[_0xccc0b7(0x128)]=_0x2c8d1f;const _0x1a6555={};_0x1a6555[_0xccc0b7(0xd0)]=_0x5453f9[_0xccc0b7(0xd2)],_0x1a6555['response']=_0x2041a1;const _0x1d6a15=[_0x37da62,_0x5ac319,_0x591c92,_0x1a6555],_0x6bdc91=await _0x5453f9[_0xccc0b7(0xf4)](generateReport,_0x1d6a15,_0x4c1281),_0x427c96=new Date(),_0x1c5727=_0x427c96[_0xccc0b7(0xfe)]()+'_'+_0x5453f9['jFYQB'](_0x427c96[_0xccc0b7(0x13f)](),0x1)+'_'+_0x427c96[_0xccc0b7(0xfa)]()+'_'+_0x427c96[_0xccc0b7(0x123)]()+'_'+_0x427c96[_0xccc0b7(0x147)](),_0x5b3df7=_0xccc0b7(0xcf)+_0x1c5727+_0xccc0b7(0xf0);fs[_0xccc0b7(0x17d)](_0x5b3df7,_0x6bdc91,_0x5453f9[_0xccc0b7(0xe9)]),logger['info']('Report\x20saved\x20in\x20'+_0x5b3df7),process[_0xccc0b7(0xf2)](0x0);}catch(_0x970a34){let _0x53624c='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x970a34+'\x20';logger[_0xccc0b7(0x144)](_0x53624c),_0x53624c+='\x0a'+JSON[_0xccc0b7(0x186)](_0x970a34['stack']),logger['debug'](_0xccc0b7(0x132)+_0x970a34[_0xccc0b7(0x149)]);if(_0x26b5f1){const _0x8a9756={};_0x8a9756[_0xccc0b7(0xd4)]=WS_EVENTS[_0xccc0b7(0x1a8)],_0x8a9756[_0xccc0b7(0x185)]=_0x53624c,webSocketUtils[_0xccc0b7(0xf9)](_0x26b5f1,_0x8a9756,_0x5453f9[_0xccc0b7(0x118)],!![]);}await webSocketUtils[_0xccc0b7(0x191)](0x7d0);const _0x66175={};_0x66175[_0xccc0b7(0x144)]=_0x53624c,await _0x5453f9[_0xccc0b7(0x179)](sendInstrumentationEvent,_0x5e8221,_0x5453f9[_0xccc0b7(0x172)],messageTypes[_0xccc0b7(0xdc)],_0x5453f9['kfZVE'],_0x66175,_0x5e8221),process['exit'](0x1);}};function a17_0xfd75(_0x45af83,_0x854aa6){const _0x597de7=a17_0x597d();return a17_0xfd75=function(_0xfd75e7,_0x3decfd){_0xfd75e7=_0xfd75e7-0xc2;let _0x598d48=_0x597de7[_0xfd75e7];return _0x598d48;},a17_0xfd75(_0x45af83,_0x854aa6);}function a17_0x597d(){const _0x3431e9=['split','LOIaA','JskvP','info','pre-check-grid-called','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','sKzXy','wGBfw','hdrAF','CXvYp','connectionTimeout','Iwcpp','getUTCHours','LcsLW','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','RAlGq','IpVzo','response','readFileSync','cloudProvider','VfiDy','data','Success','edXJW','aRULK','prfiA','TgRfs','stack\x20trace\x20','../../config/logger','forEach','wIqGO','headers','HAlfg','Error\x20Details:\x0a','LFRPp','CXYyt','WYpuV','pre-check','pre-check-cluster-args-not-passed','CZnFT','getUTCMonth','argv','existsSync','.\x20Please\x20provide\x20all\x20required\x20arguments.','name','error','KeuXG','Status:\x20','getUTCMinutes','ncOpZ','stack','body','../../cloudproviders/utils','Browserstack','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','isCliToolInstalled','QegyY','nytsu','nonwl','KzwBy','bstackUsername','grid\x20profile\x20flow\x20','length','../../utils/utilityMethods','18711594eXrwzE','TMuaU','help','fjDZj','parse','dummy-grid','7GBoLEb','3654306CNcVib','DCNym','Message:\x20','bmupk','GWuxb','NLjAK','pre-check-grid-profile-empty','uuid','mxKhH','cloud-provider','accessResp','zHPKK','region','QCAAL','jMFJb','ZRFlh','credential-not-found','xAqvw','Ntddp','neuyZ','KOEwY','../../config/constants','pre-check-failed','Ttlni','usage','UXPZE','nLenE','Qxwho','MuLZk','throwHttpErrors','rmXWb','writeFileSync','2002068iUSfkb','twoSo','NeUUK','GET','amVSX','yUFtA','method','message','stringify','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','sQQwJ','\x20data\x20:\x20','sDBpA','includes','`\x20,error\x20:\x20','username','RUsPm','is\x20already\x20present','DmODF','delay','User\x20Access','`\x20is\x20present\x20in\x20region\x20`','LOnZY','grid-profile','Cluster\x20`','UGanx','unLrA','code','RMUjI','dOvZI','DRGPO','KWJUZ','770000CTHeHZ','SPREQ','clusterRegion','Failure','MYVsp','`\x20already\x20exists','===\x20Precheck\x20Report\x20-\x20','grid','isTrialGridAccessible','95151MxbHgx','LOG','<PasswordPlaceholder>','bstackAccesskey','GEbNe','6dhCwEe','status','toLowerCase','builder','epilogue','uhhHC','kLmWC','N/A','https://','clusterName','error\x20stack\x20:\x20','desc','igIZR','string','SVMuV','3041944ePswWU','gridProfile','../../utils/instrumentationUtils','ozuJr','rwNoa','cloud-provider-not-supported','\x20\x20Code:\x20','JhVrd',']\x20status\x20:\x20','description','kKzcH','VKuef','WebSocket','log/report_','header','cWoZv','cVmDG','reconnecting-websocket','type','KwQAu','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Cluster\x20details\x0a-----------------------\x0a','find','kDYSZ','hXvGU','authHeader','ERROR','GbtcG','RTBEf','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','RLTwv','CLOUD_PROVIDER','PgHiv','FCYsD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','xQjeH','TMUEA','GCSwP','SxSms','lQxPe','cluster-name','options','jcBEc','debug','EHUHX','init','.txt','euPGI','exit','ybXnp','SnMgI','pre_check','INFO','password','TLSv1_2_client_method','sendEventToBackend','getUTCDate','pJJMA','nRiCz','80454XdjNWv','getUTCFullYear','replace','isClusterPresent','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','MpLGT','IvMbf','\x20error\x20:\x20','got','SSL\x20Configured','push','Invalid\x20input.\x20grid\x20profiles:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YzGKo','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','\x20\x20Message:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','Cluster\x20','pNjHs','iWLrL','YqGix','will\x20be\x20created','mJEcJ','HetUk','Setting\x20cloud\x20provider\x20as\x20','pxVhB'];a17_0x597d=function(){return _0x3431e9;};return a17_0x597d();}
@@ -1 +1 @@
1
- const a18_0x2eeebf=a18_0x4bac;(function(_0x5b036f,_0x4cafbe){const _0x27f3c6=a18_0x4bac,_0x196c68=_0x5b036f();while(!![]){try{const _0x5dbcc8=-parseInt(_0x27f3c6(0x1bb))/0x1+parseInt(_0x27f3c6(0x1b2))/0x2*(parseInt(_0x27f3c6(0x1a7))/0x3)+-parseInt(_0x27f3c6(0x1b1))/0x4+parseInt(_0x27f3c6(0x1b8))/0x5+-parseInt(_0x27f3c6(0x1ac))/0x6+parseInt(_0x27f3c6(0x1b5))/0x7*(-parseInt(_0x27f3c6(0x1b3))/0x8)+parseInt(_0x27f3c6(0x1b0))/0x9*(parseInt(_0x27f3c6(0x1b7))/0xa);if(_0x5dbcc8===_0x4cafbe)break;else _0x196c68['push'](_0x196c68['shift']());}catch(_0x12fd8f){_0x196c68['push'](_0x196c68['shift']());}}}(a18_0xb623,0x1e43f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2eeebf(0x1ba));exports[a18_0x2eeebf(0x1ae)]=a18_0x2eeebf(0x1aa),exports[a18_0x2eeebf(0x1bc)]=a18_0x2eeebf(0x1a8),exports[a18_0x2eeebf(0x1b9)]=function(_0xea95f){const _0x28b8b6=a18_0x2eeebf,_0x370413={};_0x370413[_0x28b8b6(0x1b4)]=_0x28b8b6(0x1bf),_0x370413['yKfyE']='help';const _0x42a5c1=_0x370413;return _0xea95f[_0x28b8b6(0x1b6)](HELP_HEADER_MESSAGE[_0x28b8b6(0x1aa)])[_0x28b8b6(0x1ad)](HELP_FOOTER_MESSAGE)[_0x28b8b6(0x1bd)](_0x42a5c1['sZuaF'])['demandCommand']()[_0x28b8b6(0x1ab)]()[_0x28b8b6(0x1a9)]()['help'](_0x42a5c1[_0x28b8b6(0x1be)]);},exports[a18_0x2eeebf(0x1af)]=function(_0x4835a4){};function a18_0x4bac(_0x422c83,_0x5780bb){const _0xb623b1=a18_0xb623();return a18_0x4bac=function(_0x4bac8e,_0x5d6004){_0x4bac8e=_0x4bac8e-0x1a7;let _0x1b0415=_0xb623b1[_0x4bac8e];return _0x1b0415;},a18_0x4bac(_0x422c83,_0x5780bb);}function a18_0xb623(){const _0x36eaa3=['strict','start','recommendCommands','1247442FMLwjS','epilogue','command','handler','279KPelAq','144248dqdIlO','66964NWtFzt','32BvmgGG','sZuaF','156737rHxuzj','usage','97310amxPui','529635HJfQZb','builder','../config/constants','184462JVZIGe','desc','commandDir','yKfyE','start_commands','21ndGWQd','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0xb623=function(){return _0x36eaa3;};return a18_0xb623();}
1
+ const a18_0x10412a=a18_0x8787;function a18_0x8787(_0x5a7424,_0x2bc1ab){const _0x6eeb50=a18_0x6eeb();return a18_0x8787=function(_0x8787d5,_0x1f934f){_0x8787d5=_0x8787d5-0xf2;let _0x14b45b=_0x6eeb50[_0x8787d5];return _0x14b45b;},a18_0x8787(_0x5a7424,_0x2bc1ab);}function a18_0x6eeb(){const _0x4b435f=['handler','945152UoAqZh','demandCommand','help','Start\x20an\x20existing\x20Automation\x20grid.','747jXsIkT','commandDir','recommendCommands','QdoAD','../config/constants','1096571EmEwMK','569370JNIwIB','start','9010kxSPDh','strict','ZWQSf','epilogue','1153866OrsLBD','101PFqLCc','builder','928188jRgMqe','128648LQPaCk','start_commands'];a18_0x6eeb=function(){return _0x4b435f;};return a18_0x6eeb();}(function(_0x2bb2f7,_0x5a1b9c){const _0x120c01=a18_0x8787,_0x10aafb=_0x2bb2f7();while(!![]){try{const _0x14bfeb=-parseInt(_0x120c01(0xfc))/0x1*(parseInt(_0x120c01(0xf7))/0x2)+-parseInt(_0x120c01(0xfe))/0x3+-parseInt(_0x120c01(0x102))/0x4+parseInt(_0x120c01(0xf5))/0x5+parseInt(_0x120c01(0xfb))/0x6+-parseInt(_0x120c01(0xf4))/0x7+parseInt(_0x120c01(0xff))/0x8*(parseInt(_0x120c01(0x106))/0x9);if(_0x14bfeb===_0x5a1b9c)break;else _0x10aafb['push'](_0x10aafb['shift']());}catch(_0xcb3a1b){_0x10aafb['push'](_0x10aafb['shift']());}}}(a18_0x6eeb,0x760ee));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x10412a(0xf3));exports['command']='start',exports['desc']=a18_0x10412a(0x105),exports[a18_0x10412a(0xfd)]=function(_0x526e12){const _0x559b7c=a18_0x10412a,_0x2cd698={};_0x2cd698['ZWQSf']=_0x559b7c(0x100),_0x2cd698['QdoAD']=_0x559b7c(0x104);const _0x105243=_0x2cd698;return _0x526e12['usage'](HELP_HEADER_MESSAGE[_0x559b7c(0xf6)])[_0x559b7c(0xfa)](HELP_FOOTER_MESSAGE)[_0x559b7c(0x107)](_0x105243[_0x559b7c(0xf9)])[_0x559b7c(0x103)]()[_0x559b7c(0x108)]()[_0x559b7c(0xf8)]()['help'](_0x105243[_0x559b7c(0xf2)]);},exports[a18_0x10412a(0x101)]=function(_0x246ce4){};
@@ -1 +1 @@
1
- function a19_0x20b5(){const _0x21191c=['PvGtN','hTone','bstackAccesskey','clusterName','BfaZG','info','qNdEr','139839LLtjCw','gahhJ','Adding\x20Websocket\x20listeners','invalid-grid-id','builder','../../utils/utilityMethods','2192212QGxFCX','grid-id','7774929atiEyp','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','sYvvC','type','handler','SUFlm','default','usage','../../utils/webSocketUtils','Skip\x20insecure\x20cert\x20verification.','string','init-not-called','Ehtnl','epilogue','3OpMoYj','wbXtD','stringify','354wHsCfj','region','server-error','stack','../../cloudproviders/utils','../../utils/gridComponents','Start\x20an\x20existing\x20Automation\x20grid.','8MiuNyc','exit','error','jMHpY','uUnIX','skipTlsCertVerify','parse','eNHEd','bstackUsername','help','4578150iizYfb','rLdRY','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','addListeners','message','tODGG','name','tTVoY','start','../../utils/createk8sClient','FixHJ','ERROR','gridId','username','argv','user','<UsernamePlaceholder>','6142790pxpEGo','body','<PasswordPlaceholder>','password','969252GOTAKo','YSFGv','readFileSync','Iozcp','AclvL','statusCode','JIMeg','QJYzn','XaIpq','../../utils/instrumentationUtils','description','connectionTimeout','ytDLy','ClLXY','grid','unauthorised','WhUBG','replace','KkNdV','4256592ShQMrx','cloudProvider','desc','FkQwM'];a19_0x20b5=function(){return _0x21191c;};return a19_0x20b5();}const a19_0xe21a2c=a19_0x21f2;(function(_0x956f33,_0x28572f){const _0x44b23f=a19_0x21f2,_0x1af73e=_0x956f33();while(!![]){try{const _0x39b0f5=parseInt(_0x44b23f(0x10a))/0x1+-parseInt(_0x44b23f(0x12e))/0x2*(-parseInt(_0x44b23f(0x13f))/0x3)+-parseInt(_0x44b23f(0x11d))/0x4+parseInt(_0x44b23f(0x106))/0x5+-parseInt(_0x44b23f(0x142))/0x6*(parseInt(_0x44b23f(0x128))/0x7)+parseInt(_0x44b23f(0x149))/0x8*(-parseInt(_0x44b23f(0x130))/0x9)+parseInt(_0x44b23f(0xf4))/0xa;if(_0x39b0f5===_0x28572f)break;else _0x1af73e['push'](_0x1af73e['shift']());}catch(_0x4bf8af){_0x1af73e['push'](_0x1af73e['shift']());}}}(a19_0x20b5,0x9d7c3));function a19_0x21f2(_0x54517d,_0x2d7a8e){const _0x20b5e1=a19_0x20b5();return a19_0x21f2=function(_0x21f21a,_0xb0a7dc){_0x21f21a=_0x21f21a-0xf0;let _0x38b18c=_0x20b5e1[_0x21f21a];return _0x38b18c;},a19_0x21f2(_0x54517d,_0x2d7a8e);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0xe21a2c(0x12d)),{scaleUpHubDeployment}=require(a19_0xe21a2c(0x147)),{sendInstrumentationEvent}=require(a19_0xe21a2c(0x113)),webSocketUtils=require(a19_0xe21a2c(0x139)),{createK8sClient}=require(a19_0xe21a2c(0xfe)),{getCloudProviderObject}=require(a19_0xe21a2c(0x146));exports['command']=a19_0xe21a2c(0x118),exports[a19_0xe21a2c(0x11f)]=a19_0xe21a2c(0x148),exports[a19_0xe21a2c(0x12c)]=function(_0xb5cae2){const _0x1faf66=a19_0xe21a2c,_0x984896={};_0x984896[_0x1faf66(0xfa)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x984896['BfaZG']=_0x1faf66(0x13b),_0x984896[_0x1faf66(0x111)]=_0x1faf66(0x13a),_0x984896[_0x1faf66(0x121)]='boolean',_0x984896[_0x1faf66(0x127)]=_0x1faf66(0xf3);const _0x479164=_0x984896,_0x239a8a={};_0x239a8a[_0x1faf66(0x114)]=_0x479164['tODGG'],_0x239a8a[_0x1faf66(0x134)]=_0x479164[_0x1faf66(0x125)];const _0x4aaa9a={};_0x4aaa9a['description']=_0x479164[_0x1faf66(0x111)],_0x4aaa9a['type']=_0x479164['PvGtN'],_0x4aaa9a[_0x1faf66(0x137)]=![];const _0x4f18a1={};return _0x4f18a1[_0x1faf66(0x12f)]=_0x239a8a,_0x4f18a1['skip-tls-cert-verify']=_0x4aaa9a,_0xb5cae2[_0x1faf66(0x138)](HELP_HEADER_MESSAGE[_0x1faf66(0xfd)])[_0x1faf66(0x13e)](HELP_FOOTER_MESSAGE)['options'](_0x4f18a1)[_0x1faf66(0xf3)](_0x479164[_0x1faf66(0x127)])[_0x1faf66(0x103)];},exports[a19_0xe21a2c(0x135)]=async function(_0x4ac496){const _0x41fce0=a19_0xe21a2c,_0x14461d={'jMHpY':_0x41fce0(0x132),'rLdRY':function(_0x506644){return _0x506644();},'KkNdV':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ClLXY':function(_0x24062c,_0x69c139,_0xcdde60,_0xde64a6,_0x10ec7e,_0x80b217,_0x3f151a){return _0x24062c(_0x69c139,_0xcdde60,_0xde64a6,_0x10ec7e,_0x80b217,_0x3f151a);},'gahhJ':'start-grid-called','tTVoY':_0x41fce0(0x13c),'hTone':function(_0x13aaba,_0x76192e,_0x5b8352,_0x5b08c6,_0x4e0143,_0x588a7a,_0x463b1d){return _0x13aaba(_0x76192e,_0x5b8352,_0x5b08c6,_0x4e0143,_0x588a7a,_0x463b1d);},'eNHEd':function(_0xaeab22){return _0xaeab22();},'WhUBG':_0x41fce0(0x105),'YSFGv':_0x41fce0(0x108),'sYvvC':_0x41fce0(0x12a),'uUnIX':function(_0x102407,_0x3fb49d,_0x1f21a6,_0x2686b6){return _0x102407(_0x3fb49d,_0x1f21a6,_0x2686b6);},'Ehtnl':function(_0x148f29,_0x3cdf62,_0x5394ff,_0xc00e3e,_0x1512e5,_0x4d7d3f,_0x3edd24){return _0x148f29(_0x3cdf62,_0x5394ff,_0xc00e3e,_0x1512e5,_0x4d7d3f,_0x3edd24);},'XaIpq':function(_0x1c23b1,_0x1a77f0,_0x4e741c){return _0x1c23b1(_0x1a77f0,_0x4e741c);},'AclvL':function(_0x555e2b,_0x49080e,_0x8fd6a2){return _0x555e2b(_0x49080e,_0x8fd6a2);},'SUFlm':'Grid\x20started','cNGzc':function(_0x2f6552,_0xbad343){return _0x2f6552===_0xbad343;},'wbXtD':_0x41fce0(0xf6),'ytDLy':function(_0x10c260,_0x15bcff,_0x440bad,_0x50acea,_0x2dc6bd,_0x534013,_0x17fe0f){return _0x10c260(_0x15bcff,_0x440bad,_0x50acea,_0x2dc6bd,_0x534013,_0x17fe0f);},'Iozcp':_0x41fce0(0x119),'FkQwM':function(_0x15b4dd,_0x315e6c){return _0x15b4dd===_0x315e6c;},'JIMeg':_0x41fce0(0x12b),'FixHJ':function(_0x21e363,_0x1324cf,_0x31a4c5,_0x110df5,_0x3b7a8e,_0x3e5d89,_0x185369){return _0x21e363(_0x1324cf,_0x31a4c5,_0x110df5,_0x3b7a8e,_0x3e5d89,_0x185369);},'xTzNA':_0x41fce0(0x144)};let _0x423850;try{!_0x4ac496['gridId']&&(logger[_0x41fce0(0x14b)](_0x14461d[_0x41fce0(0x14c)]),process[_0x41fce0(0x14a)](0x1));!fs['existsSync'](_0x14461d[_0x41fce0(0xf5)](getCredentialsPath))&&(logger[_0x41fce0(0x14b)](_0x14461d[_0x41fce0(0x11c)]),await _0x14461d[_0x41fce0(0x117)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes[_0x41fce0(0x100)],_0x14461d[_0x41fce0(0xfc)],null,_0x4ac496),process[_0x41fce0(0x14a)](0x1));logger[_0x41fce0(0x126)]('Starting\x20grid\x20'+_0x4ac496[_0x41fce0(0x101)]),await _0x14461d[_0x41fce0(0x122)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes['INFO'],null,null,_0x4ac496);const _0x50ff8f=JSON[_0x41fce0(0xf0)](fs[_0x41fce0(0x10c)](_0x14461d[_0x41fce0(0xf1)](getCredentialsPath)));global_registry[_0x41fce0(0xf2)]=_0x50ff8f['Browserstack'][_0x41fce0(0x102)],global_registry[_0x41fce0(0x123)]=_0x50ff8f[_0x41fce0(0xf7)]['password'];const _0x9b2b29=WS_ENDPOINT[_0x41fce0(0x11b)](_0x14461d[_0x41fce0(0x11a)],_0x50ff8f['Browserstack'][_0x41fce0(0x102)])[_0x41fce0(0x11b)](_0x14461d[_0x41fce0(0x10b)],_0x50ff8f[_0x41fce0(0xf7)][_0x41fce0(0x109)]),_0x2195f5={};_0x2195f5['WebSocket']=ws,_0x2195f5[_0x41fce0(0x115)]=0x36ee80,_0x423850=new ReconnectingWebSocket(_0x9b2b29,[],_0x2195f5),logger['debug'](_0x14461d[_0x41fce0(0x133)]),webSocketUtils[_0x41fce0(0xf8)](_0x423850,_0x4ac496[_0x41fce0(0x104)],_0x4ac496['password']);const [_0x4295a9,_0x3befd9]=await _0x14461d[_0x41fce0(0x14d)](getGridDetails,_0x50ff8f['Browserstack'][_0x41fce0(0x102)],_0x50ff8f[_0x41fce0(0xf7)][_0x41fce0(0x109)],_0x4ac496[_0x41fce0(0x101)]);if(_0x3befd9){const _0x48e6b1=_0x3befd9['info'];global_registry[_0x41fce0(0x11e)]=_0x48e6b1[_0x41fce0(0x11e)],global_registry['clusterRegion']=_0x48e6b1[_0x41fce0(0x143)],global_registry[_0x41fce0(0x124)]=_0x48e6b1[_0x41fce0(0x124)];const _0x31f2f0=await _0x14461d[_0x41fce0(0x13d)](getCloudProviderObject,_0x48e6b1[_0x41fce0(0x11e)],_0x48e6b1[_0x41fce0(0x124)],_0x48e6b1[_0x41fce0(0xfb)],_0x423850,webSocketUtils,_0x4ac496),[_0x53f313,_0x1245d5,_0x4b0dd4,_0x1e3517,_0x1dc0e3,_0x4d5af3]=await _0x14461d[_0x41fce0(0x112)](createK8sClient,_0x31f2f0,_0x4ac496[_0x41fce0(0x14e)]);await _0x14461d[_0x41fce0(0x10e)](scaleUpHubDeployment,_0x1245d5,_0x48e6b1[_0x41fce0(0xfb)]),logger['info'](_0x14461d[_0x41fce0(0x136)]),process[_0x41fce0(0x14a)](0x0);}_0x14461d['cNGzc'](_0x4295a9[_0x41fce0(0x10f)],0x191)&&(logger['error'](_0x14461d[_0x41fce0(0x140)]),await _0x14461d[_0x41fce0(0x116)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes[_0x41fce0(0x100)],_0x14461d[_0x41fce0(0x10d)],null,_0x4ac496),process[_0x41fce0(0x14a)](0x1)),_0x14461d[_0x41fce0(0x120)](_0x4295a9[_0x41fce0(0x10f)],0x190)&&(logger[_0x41fce0(0x14b)](JSON[_0x41fce0(0xf0)](_0x4295a9[_0x41fce0(0x107)])[_0x41fce0(0xf9)]),await _0x14461d[_0x41fce0(0x116)](sendInstrumentationEvent,_0x4ac496,_0x14461d[_0x41fce0(0x129)],messageTypes['ERROR'],_0x14461d[_0x41fce0(0x110)],null,_0x4ac496),process['exit'](0x1)),logger[_0x41fce0(0x14b)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x41fce0(0x141)](_0x4295a9)),await _0x14461d[_0x41fce0(0xff)](sendInstrumentationEvent,_0x4ac496,_0x14461d['gahhJ'],messageTypes['ERROR'],_0x14461d['xTzNA'],_0x4295a9,_0x4ac496),process[_0x41fce0(0x14a)](0x1);}catch(_0x11e063){const _0x5e27a9=_0x41fce0(0x131)+_0x11e063+'\x20\x0a'+JSON['stringify'](_0x11e063[_0x41fce0(0x145)])+'\x20';logger[_0x41fce0(0x14b)](_0x5e27a9),process[_0x41fce0(0x14a)](0x1);}};
1
+ const a19_0x51f12a=a19_0x2bda;(function(_0x82c4ab,_0x6fe244){const _0x2f0f3d=a19_0x2bda,_0x15db94=_0x82c4ab();while(!![]){try{const _0x323332=-parseInt(_0x2f0f3d(0x1e8))/0x1*(parseInt(_0x2f0f3d(0x1df))/0x2)+parseInt(_0x2f0f3d(0x1c7))/0x3+parseInt(_0x2f0f3d(0x1d9))/0x4*(parseInt(_0x2f0f3d(0x1f9))/0x5)+-parseInt(_0x2f0f3d(0x1cd))/0x6*(parseInt(_0x2f0f3d(0x1f4))/0x7)+-parseInt(_0x2f0f3d(0x20d))/0x8*(parseInt(_0x2f0f3d(0x1e2))/0x9)+parseInt(_0x2f0f3d(0x200))/0xa*(-parseInt(_0x2f0f3d(0x1d1))/0xb)+parseInt(_0x2f0f3d(0x1ca))/0xc*(parseInt(_0x2f0f3d(0x1da))/0xd);if(_0x323332===_0x6fe244)break;else _0x15db94['push'](_0x15db94['shift']());}catch(_0x1f394f){_0x15db94['push'](_0x15db94['shift']());}}}(a19_0x20fc,0x7f77d));function a19_0x2bda(_0x220654,_0x20bdf4){const _0x20fc44=a19_0x20fc();return a19_0x2bda=function(_0x2bda0c,_0x4df244){_0x2bda0c=_0x2bda0c-0x1bd;let _0x1015fc=_0x20fc44[_0x2bda0c];return _0x1015fc;},a19_0x2bda(_0x220654,_0x20bdf4);}function a19_0x20fc(){const _0x334ed2=['3652130bltToc','rQSoq','bstackUsername','cloudProvider','message','username','statusCode','IiKzU','invalid-grid-id','help','MbQgm','default','error','479296zNKZOp','info','../../utils/utilityMethods','readFileSync','type','wNzRi','parse','sEyPy','Skip\x20insecure\x20cert\x20verification.','fgQNz','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','INFO','Starting\x20grid\x20','VCZsC','unauthorised','xElmP','clusterName','2078823PQFwyt','replace','grid-id','180GxQRNi','epilogue','user','42bXiMYT','ZNlaC','clusterRegion','argv','11XVuJly','connectionTimeout','addListeners','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','handler','Adding\x20Websocket\x20listeners','nHnfj','3653416wLPdXq','515047ZBPJVp','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','start','iZZfc','string','16dnKYUz','WebSocket','FUecj','54mUAFwq','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skip-tls-cert-verify','region','<PasswordPlaceholder>','name','6588bFcNhw','usage','../../utils/gridComponents','<UsernamePlaceholder>','Browserstack','boolean','cXWJx','ERROR','desc','gridId','WKmDx','GIJCZ','901082NcnGUV','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackAccesskey','Qhhuc','5pHDpEX','builder','password','exit','debug','body','YmciY'];a19_0x20fc=function(){return _0x334ed2;};return a19_0x20fc();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x51f12a(0x20f)),{scaleUpHubDeployment}=require(a19_0x51f12a(0x1ea)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports[a19_0x51f12a(0x1f0)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x51f12a(0x1fa)]=function(_0xcb0796){const _0x531d09=a19_0x51f12a,_0x28f89e={};_0x28f89e[_0x531d09(0x20a)]=_0x531d09(0x1d5),_0x28f89e[_0x531d09(0x1bd)]=_0x531d09(0x1de),_0x28f89e[_0x531d09(0x1d8)]=_0x531d09(0x1be),_0x28f89e[_0x531d09(0x1ce)]=_0x531d09(0x1ed),_0x28f89e['FUecj']=_0x531d09(0x209);const _0x440197=_0x28f89e,_0x3d73b5={};_0x3d73b5['description']=_0x440197[_0x531d09(0x20a)],_0x3d73b5[_0x531d09(0x211)]=_0x440197[_0x531d09(0x1bd)];const _0x2bf9a9={};_0x2bf9a9['description']=_0x440197[_0x531d09(0x1d8)],_0x2bf9a9[_0x531d09(0x211)]=_0x440197[_0x531d09(0x1ce)],_0x2bf9a9[_0x531d09(0x20b)]=![];const _0x2e0eb3={};return _0x2e0eb3[_0x531d09(0x1c9)]=_0x3d73b5,_0x2e0eb3[_0x531d09(0x1e4)]=_0x2bf9a9,_0xcb0796[_0x531d09(0x1e9)](HELP_HEADER_MESSAGE[_0x531d09(0x1dc)])[_0x531d09(0x1cb)](HELP_FOOTER_MESSAGE)['options'](_0x2e0eb3)[_0x531d09(0x209)](_0x440197[_0x531d09(0x1e1)])[_0x531d09(0x1d0)];},exports[a19_0x51f12a(0x1d6)]=async function(_0x4a9320){const _0x3715ea=a19_0x51f12a,_0x2d5376={'ggVjt':_0x3715ea(0x1db),'WKmDx':function(_0x20df90){return _0x20df90();},'dyHgJ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','iZZfc':function(_0x1c4e5c,_0x275b2b,_0xf1e4e0,_0xb293,_0x59776b,_0x421f36,_0x31fb79){return _0x1c4e5c(_0x275b2b,_0xf1e4e0,_0xb293,_0x59776b,_0x421f36,_0x31fb79);},'cXWJx':'start-grid-called','yCnyH':'init-not-called','PuATd':_0x3715ea(0x1eb),'dAsDX':_0x3715ea(0x1e6),'YmciY':_0x3715ea(0x1d7),'VCZsC':function(_0x4d285a,_0x2ddb0a,_0x1ddbf2,_0x1dc70a){return _0x4d285a(_0x2ddb0a,_0x1ddbf2,_0x1dc70a);},'GIJCZ':function(_0x4706b9,_0x12f05b,_0x293398){return _0x4706b9(_0x12f05b,_0x293398);},'Qhhuc':function(_0x12e273,_0x5e40d9,_0xa68647){return _0x12e273(_0x5e40d9,_0xa68647);},'wNzRi':'Grid\x20started','IiKzU':function(_0x15a24a,_0x254d87){return _0x15a24a===_0x254d87;},'rQSoq':_0x3715ea(0x1e3),'arVfd':function(_0x1a3661,_0x16b890,_0x107ede,_0x565d72,_0x2d1f17,_0x57361f,_0x27796f){return _0x1a3661(_0x16b890,_0x107ede,_0x565d72,_0x2d1f17,_0x57361f,_0x27796f);},'TEEVA':_0x3715ea(0x1c4),'Plqrc':function(_0x8f15d1,_0x231eaa,_0x39ccef,_0x3129c5,_0x41198a,_0x31f1d9,_0x2d616c){return _0x8f15d1(_0x231eaa,_0x39ccef,_0x3129c5,_0x41198a,_0x31f1d9,_0x2d616c);},'LMvFc':_0x3715ea(0x208),'xElmP':function(_0x2dd0dd,_0x3de05a,_0x2f33e2,_0x569bd8,_0x5be9aa,_0x506f8e,_0x43895f){return _0x2dd0dd(_0x3de05a,_0x2f33e2,_0x569bd8,_0x5be9aa,_0x506f8e,_0x43895f);},'fgQNz':'server-error'};let _0xef9668;try{!_0x4a9320[_0x3715ea(0x1f1)]&&(logger['error'](_0x2d5376['ggVjt']),process[_0x3715ea(0x1fc)](0x1));!fs['existsSync'](_0x2d5376[_0x3715ea(0x1f2)](getCredentialsPath))&&(logger[_0x3715ea(0x20c)](_0x2d5376['dyHgJ']),await _0x2d5376[_0x3715ea(0x1dd)](sendInstrumentationEvent,_0x4a9320,_0x2d5376[_0x3715ea(0x1ee)],messageTypes[_0x3715ea(0x1ef)],_0x2d5376['yCnyH'],null,_0x4a9320),process[_0x3715ea(0x1fc)](0x1));logger[_0x3715ea(0x20e)](_0x3715ea(0x1c2)+_0x4a9320[_0x3715ea(0x1f1)]),await _0x2d5376[_0x3715ea(0x1dd)](sendInstrumentationEvent,_0x4a9320,_0x2d5376[_0x3715ea(0x1ee)],messageTypes[_0x3715ea(0x1c1)],null,null,_0x4a9320);const _0x5d1f24=JSON[_0x3715ea(0x213)](fs[_0x3715ea(0x210)](_0x2d5376[_0x3715ea(0x1f2)](getCredentialsPath)));global_registry[_0x3715ea(0x202)]=_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x205)],global_registry[_0x3715ea(0x1f7)]=_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x1fb)];const _0x19be8d=WS_ENDPOINT[_0x3715ea(0x1c8)](_0x2d5376['PuATd'],_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x205)])[_0x3715ea(0x1c8)](_0x2d5376['dAsDX'],_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x1fb)]),_0x339d10={};_0x339d10[_0x3715ea(0x1e0)]=ws,_0x339d10[_0x3715ea(0x1d2)]=0x36ee80,_0xef9668=new ReconnectingWebSocket(_0x19be8d,[],_0x339d10),logger[_0x3715ea(0x1fd)](_0x2d5376[_0x3715ea(0x1ff)]),webSocketUtils[_0x3715ea(0x1d3)](_0xef9668,_0x4a9320[_0x3715ea(0x1cc)],_0x4a9320[_0x3715ea(0x1fb)]);const [_0x3cadab,_0x4f30bb]=await _0x2d5376[_0x3715ea(0x1c3)](getGridDetails,_0x5d1f24['Browserstack'][_0x3715ea(0x205)],_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x1fb)],_0x4a9320[_0x3715ea(0x1f1)]);if(_0x4f30bb){const _0x5025ea=_0x4f30bb[_0x3715ea(0x20e)];global_registry['cloudProvider']=_0x5025ea[_0x3715ea(0x203)],global_registry[_0x3715ea(0x1cf)]=_0x5025ea[_0x3715ea(0x1e5)],global_registry[_0x3715ea(0x1c6)]=_0x5025ea[_0x3715ea(0x1c6)];const _0x4fe101=await _0x2d5376[_0x3715ea(0x1dd)](getCloudProviderObject,_0x5025ea[_0x3715ea(0x203)],_0x5025ea[_0x3715ea(0x1c6)],_0x5025ea['name'],_0xef9668,webSocketUtils,_0x4a9320),[_0x7951b3,_0x48ed25,_0x7afe15,_0x595ee7,_0x443548,_0x5ca652]=await _0x2d5376[_0x3715ea(0x1f3)](createK8sClient,_0x4fe101,_0x4a9320[_0x3715ea(0x1d4)]);await _0x2d5376[_0x3715ea(0x1f8)](scaleUpHubDeployment,_0x48ed25,_0x5025ea[_0x3715ea(0x1e7)]),logger[_0x3715ea(0x20e)](_0x2d5376[_0x3715ea(0x212)]),process['exit'](0x0);}_0x2d5376[_0x3715ea(0x207)](_0x3cadab[_0x3715ea(0x206)],0x191)&&(logger[_0x3715ea(0x20c)](_0x2d5376[_0x3715ea(0x201)]),await _0x2d5376['arVfd'](sendInstrumentationEvent,_0x4a9320,_0x2d5376['cXWJx'],messageTypes['ERROR'],_0x2d5376['TEEVA'],null,_0x4a9320),process[_0x3715ea(0x1fc)](0x1)),_0x2d5376[_0x3715ea(0x207)](_0x3cadab[_0x3715ea(0x206)],0x190)&&(logger[_0x3715ea(0x20c)](JSON[_0x3715ea(0x213)](_0x3cadab[_0x3715ea(0x1fe)])[_0x3715ea(0x204)]),await _0x2d5376['Plqrc'](sendInstrumentationEvent,_0x4a9320,_0x2d5376['cXWJx'],messageTypes['ERROR'],_0x2d5376['LMvFc'],null,_0x4a9320),process[_0x3715ea(0x1fc)](0x1)),logger[_0x3715ea(0x20c)](_0x3715ea(0x1f6)+JSON['stringify'](_0x3cadab)),await _0x2d5376[_0x3715ea(0x1c5)](sendInstrumentationEvent,_0x4a9320,_0x2d5376[_0x3715ea(0x1ee)],messageTypes[_0x3715ea(0x1ef)],_0x2d5376[_0x3715ea(0x1bf)],_0x3cadab,_0x4a9320),process[_0x3715ea(0x1fc)](0x1);}catch(_0x58fe9b){const _0x2913e3=_0x3715ea(0x1c0)+_0x58fe9b+'\x20\x0a'+JSON[_0x3715ea(0x1f5)](_0x58fe9b['stack'])+'\x20';logger[_0x3715ea(0x20c)](_0x2913e3),process[_0x3715ea(0x1fc)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x4998bf=a20_0x12a0;(function(_0x4a50ed,_0x1d38d5){const _0x33b35f=a20_0x12a0,_0x33b94b=_0x4a50ed();while(!![]){try{const _0x12c24f=-parseInt(_0x33b35f(0x1d7))/0x1+-parseInt(_0x33b35f(0x1d4))/0x2+-parseInt(_0x33b35f(0x1ca))/0x3+parseInt(_0x33b35f(0x1c9))/0x4*(parseInt(_0x33b35f(0x1bf))/0x5)+-parseInt(_0x33b35f(0x1bd))/0x6*(-parseInt(_0x33b35f(0x1cb))/0x7)+-parseInt(_0x33b35f(0x1c2))/0x8*(-parseInt(_0x33b35f(0x1c4))/0x9)+-parseInt(_0x33b35f(0x1bc))/0xa*(-parseInt(_0x33b35f(0x1ce))/0xb);if(_0x12c24f===_0x1d38d5)break;else _0x33b94b['push'](_0x33b94b['shift']());}catch(_0x5ab901){_0x33b94b['push'](_0x33b94b['shift']());}}}(a20_0x2bd0,0xcfcbd));function a20_0x2bd0(){const _0x84b925=['stop_commands','handler','8gHRNHK','820662qPmknW','11244821VdSXVz','../config/constants','demandCommand','4684944qHMdct','epilogue','commandDir','help','recommendCommands','desc','2690036TzrTos','strict','stop','1681751tCJzAS','10AaSfoo','6toSDkr','Stop\x20a\x20running\x20Automation\x20grid.','1237975WHxxAB','RNXlf','zRjDN','8lGsWsZ','command','14615631PrIddY','usage','builder'];a20_0x2bd0=function(){return _0x84b925;};return a20_0x2bd0();}function a20_0x12a0(_0x1586e6,_0x14cb29){const _0x2bd071=a20_0x2bd0();return a20_0x12a0=function(_0x12a0cc,_0x5af283){_0x12a0cc=_0x12a0cc-0x1bc;let _0x175886=_0x2bd071[_0x12a0cc];return _0x175886;},a20_0x12a0(_0x1586e6,_0x14cb29);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x4998bf(0x1cc));exports[a20_0x4998bf(0x1c3)]=a20_0x4998bf(0x1d6),exports[a20_0x4998bf(0x1d3)]=a20_0x4998bf(0x1be),exports[a20_0x4998bf(0x1c6)]=function(_0x3f24a9){const _0x52966b=a20_0x4998bf,_0x94f87={};_0x94f87[_0x52966b(0x1c1)]=_0x52966b(0x1c7),_0x94f87[_0x52966b(0x1c0)]=_0x52966b(0x1d1);const _0x3f33e5=_0x94f87;return _0x3f24a9[_0x52966b(0x1c5)](HELP_HEADER_MESSAGE[_0x52966b(0x1d6)])[_0x52966b(0x1cf)](HELP_FOOTER_MESSAGE)[_0x52966b(0x1d0)](_0x3f33e5['zRjDN'])[_0x52966b(0x1cd)]()[_0x52966b(0x1d2)]()[_0x52966b(0x1d5)]()[_0x52966b(0x1d1)](_0x3f33e5[_0x52966b(0x1c0)]);},exports[a20_0x4998bf(0x1c8)]=function(_0x3c6f7f){};
1
+ const a20_0x5032f0=a20_0x25f3;function a20_0x25f3(_0x40021b,_0x5cbb32){const _0xfa940=a20_0xfa94();return a20_0x25f3=function(_0x25f341,_0x191ed9){_0x25f341=_0x25f341-0x1cb;let _0x1e2a70=_0xfa940[_0x25f341];return _0x1e2a70;},a20_0x25f3(_0x40021b,_0x5cbb32);}(function(_0x5ab377,_0x53ac66){const _0x68f073=a20_0x25f3,_0x3433bf=_0x5ab377();while(!![]){try{const _0x12c608=parseInt(_0x68f073(0x1d1))/0x1+parseInt(_0x68f073(0x1e2))/0x2+parseInt(_0x68f073(0x1ce))/0x3*(parseInt(_0x68f073(0x1d6))/0x4)+parseInt(_0x68f073(0x1dc))/0x5*(parseInt(_0x68f073(0x1d7))/0x6)+parseInt(_0x68f073(0x1cb))/0x7*(parseInt(_0x68f073(0x1dd))/0x8)+parseInt(_0x68f073(0x1e3))/0x9*(parseInt(_0x68f073(0x1da))/0xa)+-parseInt(_0x68f073(0x1d2))/0xb;if(_0x12c608===_0x53ac66)break;else _0x3433bf['push'](_0x3433bf['shift']());}catch(_0xb7656e){_0x3433bf['push'](_0x3433bf['shift']());}}}(a20_0xfa94,0xca17d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5032f0(0x1d9));exports[a20_0x5032f0(0x1e0)]=a20_0x5032f0(0x1d8),exports[a20_0x5032f0(0x1d4)]=a20_0x5032f0(0x1cd),exports[a20_0x5032f0(0x1e1)]=function(_0x27ffc5){const _0x878b76=a20_0x5032f0,_0x445fac={};_0x445fac[_0x878b76(0x1db)]=_0x878b76(0x1df),_0x445fac[_0x878b76(0x1d5)]='help';const _0x5bdf85=_0x445fac;return _0x27ffc5['usage'](HELP_HEADER_MESSAGE['stop'])[_0x878b76(0x1d0)](HELP_FOOTER_MESSAGE)[_0x878b76(0x1cf)](_0x5bdf85[_0x878b76(0x1db)])[_0x878b76(0x1d3)]()[_0x878b76(0x1de)]()['strict']()['help'](_0x5bdf85['WSdFv']);},exports[a20_0x5032f0(0x1cc)]=function(_0x4a0ffd){};function a20_0xfa94(){const _0x4036c8=['stop_commands','command','builder','2457410HSaJTL','9pRsrvC','1612716CDjlLg','handler','Stop\x20a\x20running\x20Automation\x20grid.','87TVWLKR','commandDir','epilogue','1105042WjZXzI','51422558ucyWRC','demandCommand','desc','WSdFv','115684xJeyzg','2386764aYzmXz','stop','../config/constants','8433430yNzPUe','kMXzd','10rSfixM','24QYXJnt','recommendCommands'];a20_0xfa94=function(){return _0x4036c8;};return a20_0xfa94();}
@@ -1 +1 @@
1
- const a21_0x531523=a21_0x14ce;function a21_0x1e7d(){const _0x36f133=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','epilogue','Stop\x20a\x20running\x20Automation\x20grid.','phhlm','command','stringify','stack','default','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hkumy','statusCode','message','Skip\x20insecure\x20cert\x20verification.','options','readFileSync','connectionTimeout','qGccg','Adding\x20Websocket\x20listeners','gridId','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','cloudProvider','Okjne','parse','help','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','135INoJHX','../../config/logger','name','grid-id','exit','grid','tnGmC','2FxaHRl','replace','lzjIx','eEfUR','ERROR','stop','username','../../cloudproviders/utils','../../utils/webSocketUtils','zpSNc','2062370KmzgCQ','builder','error','BynlA','9099220ZeUBPn','NLizh','1321563iURdFw','9206834eJqyog','<UsernamePlaceholder>','nWxot','MzjDh','password','PyKma','kILuv','mukOn','zYOVq','<PasswordPlaceholder>','type','cMTCl','../../utils/createk8sClient','NgEGu','rUjKA','invalid-grid-id','7070304joXNai','skip-tls-cert-verify','description','reconnecting-websocket','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','clusterName','WWBPm','desc','1096426RvkNgb','init-not-called','Grid\x20stoppped.','Idydl','server-error','vFBzD','bstackUsername','argv','body','INFO','403976MHLgvO','Browserstack','info','6PwFrpt','../../utils/utilityMethods','clusterRegion','usage','Xsgee','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'];a21_0x1e7d=function(){return _0x36f133;};return a21_0x1e7d();}(function(_0x260a7d,_0x2bb3cb){const _0x54a860=a21_0x14ce,_0x1b22f9=_0x260a7d();while(!![]){try{const _0x73c2cc=-parseInt(_0x54a860(0x1f9))/0x1*(parseInt(_0x54a860(0x22d))/0x2)+-parseInt(_0x54a860(0x1df))/0x3+parseInt(_0x54a860(0x1f0))/0x4+parseInt(_0x54a860(0x1d9))/0x5+-parseInt(_0x54a860(0x206))/0x6*(parseInt(_0x54a860(0x1e0))/0x7)+-parseInt(_0x54a860(0x203))/0x8*(-parseInt(_0x54a860(0x226))/0x9)+parseInt(_0x54a860(0x1dd))/0xa;if(_0x73c2cc===_0x2bb3cb)break;else _0x1b22f9['push'](_0x1b22f9['shift']());}catch(_0x2e3b10){_0x1b22f9['push'](_0x1b22f9['shift']());}}}(a21_0x1e7d,0xf2f92));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x531523(0x1f3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x531523(0x227)),{getCredentialsPath,getGridDetails}=require(a21_0x531523(0x207)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x531523(0x1d7)),{createK8sClient}=require(a21_0x531523(0x1ec)),{getCloudProviderObject}=require(a21_0x531523(0x1d6));function a21_0x14ce(_0xb5e8f5,_0x3aa09b){const _0x1e7dc3=a21_0x1e7d();return a21_0x14ce=function(_0x14cee7,_0x5971d0){_0x14cee7=_0x14cee7-0x1d5;let _0x44a17f=_0x1e7dc3[_0x14cee7];return _0x44a17f;},a21_0x14ce(_0xb5e8f5,_0x3aa09b);}exports[a21_0x531523(0x210)]=a21_0x531523(0x22b),exports[a21_0x531523(0x1f8)]=a21_0x531523(0x20e),exports[a21_0x531523(0x1da)]=function(_0x204f0b){const _0x4abad6=a21_0x531523,_0x226029={};_0x226029['lzjIx']=_0x4abad6(0x220),_0x226029[_0x4abad6(0x1e3)]='string',_0x226029['mukOn']=_0x4abad6(0x219),_0x226029[_0x4abad6(0x230)]='boolean',_0x226029[_0x4abad6(0x1de)]=_0x4abad6(0x224);const _0x555d3d=_0x226029,_0x5f3fe3={};_0x5f3fe3['description']=_0x555d3d[_0x4abad6(0x22f)],_0x5f3fe3['type']=_0x555d3d['MzjDh'];const _0x4eef40={};_0x4eef40[_0x4abad6(0x1f2)]=_0x555d3d[_0x4abad6(0x1e7)],_0x4eef40[_0x4abad6(0x1ea)]=_0x555d3d['eEfUR'],_0x4eef40[_0x4abad6(0x213)]=![];const _0x387236={};return _0x387236[_0x4abad6(0x229)]=_0x5f3fe3,_0x387236[_0x4abad6(0x1f1)]=_0x4eef40,_0x204f0b[_0x4abad6(0x209)](HELP_HEADER_MESSAGE[_0x4abad6(0x232)])[_0x4abad6(0x20d)](HELP_FOOTER_MESSAGE)[_0x4abad6(0x21a)](_0x387236)[_0x4abad6(0x224)](_0x555d3d[_0x4abad6(0x1de)])[_0x4abad6(0x200)];},exports[a21_0x531523(0x214)]=async function(_0xd30302){const _0x1cb2fc=a21_0x531523,_0x21ad44={'zpSNc':_0x1cb2fc(0x225),'phhlm':function(_0x4f5f50){return _0x4f5f50();},'rUjKA':_0x1cb2fc(0x20c),'qGccg':function(_0x5c9d5d,_0x25b2ae,_0x41552b,_0x22ccf1,_0x3f9ed0,_0x291b70,_0x22dfdd){return _0x5c9d5d(_0x25b2ae,_0x41552b,_0x22ccf1,_0x3f9ed0,_0x291b70,_0x22dfdd);},'vFBzD':'stop-grid-called','BynlA':_0x1cb2fc(0x1fa),'DZowA':function(_0x196175,_0x1875de,_0x33f2a5,_0x5c23c9,_0x2bce96,_0x42bc5b,_0x33dccb){return _0x196175(_0x1875de,_0x33f2a5,_0x5c23c9,_0x2bce96,_0x42bc5b,_0x33dccb);},'nWxot':function(_0x34a509){return _0x34a509();},'wYaQT':_0x1cb2fc(0x1e1),'dzReD':_0x1cb2fc(0x1e9),'NgEGu':_0x1cb2fc(0x21e),'PyKma':function(_0x7fad8d,_0x4b8db5,_0x1a0b87,_0x350382){return _0x7fad8d(_0x4b8db5,_0x1a0b87,_0x350382);},'Xsgee':function(_0x11e4a2,_0x2f9b77,_0x39033c,_0x35cc41,_0x540d0e,_0x1ff91c,_0x43208e){return _0x11e4a2(_0x2f9b77,_0x39033c,_0x35cc41,_0x540d0e,_0x1ff91c,_0x43208e);},'WWBPm':function(_0x109e51,_0x113de7,_0x4985c3){return _0x109e51(_0x113de7,_0x4985c3);},'zYOVq':function(_0x229fd1,_0x29d041,_0x2e4e3d){return _0x229fd1(_0x29d041,_0x2e4e3d);},'dYDaD':_0x1cb2fc(0x1fb),'kILuv':function(_0xbf406f,_0x32d740){return _0xbf406f===_0x32d740;},'AnZVf':_0x1cb2fc(0x215),'hkumy':function(_0x533d85,_0x16edb1,_0x5a4bce,_0x197f81,_0x4a1b97,_0x24bca1,_0x45d3ea){return _0x533d85(_0x16edb1,_0x5a4bce,_0x197f81,_0x4a1b97,_0x24bca1,_0x45d3ea);},'cMTCl':'unauthorised','Idydl':function(_0x81582d,_0x38a571){return _0x81582d===_0x38a571;},'tnGmC':function(_0x30d9a0,_0x36c747,_0x1ddb25,_0x189c2e,_0x203670,_0x585035,_0x649180){return _0x30d9a0(_0x36c747,_0x1ddb25,_0x189c2e,_0x203670,_0x585035,_0x649180);},'nQRkD':_0x1cb2fc(0x1ef),'Okjne':_0x1cb2fc(0x1fd)};let _0x2bcadb;try{!_0xd30302[_0x1cb2fc(0x21f)]&&(logger['error'](_0x21ad44[_0x1cb2fc(0x1d8)]),process['exit'](0x1));!fs[_0x1cb2fc(0x1f4)](_0x21ad44[_0x1cb2fc(0x20f)](getCredentialsPath))&&(logger[_0x1cb2fc(0x1db)](_0x21ad44[_0x1cb2fc(0x1ee)]),await _0x21ad44[_0x1cb2fc(0x21d)](sendInstrumentationEvent,_0xd30302,_0x21ad44['vFBzD'],messageTypes[_0x1cb2fc(0x231)],_0x21ad44[_0x1cb2fc(0x1dc)],null,_0xd30302),process[_0x1cb2fc(0x22a)](0x1));logger['info']('Stopping\x20grid\x20'+_0xd30302['gridId']),await _0x21ad44['DZowA'](sendInstrumentationEvent,_0xd30302,_0x21ad44[_0x1cb2fc(0x1fe)],messageTypes[_0x1cb2fc(0x202)],null,null,_0xd30302);const _0x3ead4c=JSON[_0x1cb2fc(0x223)](fs[_0x1cb2fc(0x21b)](_0x21ad44[_0x1cb2fc(0x1e2)](getCredentialsPath)));global_registry[_0x1cb2fc(0x1ff)]=_0x3ead4c[_0x1cb2fc(0x204)][_0x1cb2fc(0x1d5)],global_registry['bstackAccesskey']=_0x3ead4c[_0x1cb2fc(0x204)]['password'];const _0x59d084=WS_ENDPOINT[_0x1cb2fc(0x22e)](_0x21ad44['wYaQT'],_0x3ead4c['Browserstack'][_0x1cb2fc(0x1d5)])[_0x1cb2fc(0x22e)](_0x21ad44['dzReD'],_0x3ead4c[_0x1cb2fc(0x204)]['password']),_0x503fea={};_0x503fea['WebSocket']=ws,_0x503fea[_0x1cb2fc(0x21c)]=0x36ee80,_0x2bcadb=new ReconnectingWebSocket(_0x59d084,[],_0x503fea),logger['debug'](_0x21ad44[_0x1cb2fc(0x1ed)]),webSocketUtils['addListeners'](_0x2bcadb,_0xd30302['user'],_0xd30302[_0x1cb2fc(0x1e4)]);const [_0x4db74d,_0x4d76e8]=await _0x21ad44[_0x1cb2fc(0x1e5)](getGridDetails,_0x3ead4c['Browserstack'][_0x1cb2fc(0x1d5)],_0x3ead4c['Browserstack'][_0x1cb2fc(0x1e4)],_0xd30302[_0x1cb2fc(0x21f)]);if(_0x4d76e8){const _0x286303=_0x4d76e8[_0x1cb2fc(0x205)];global_registry[_0x1cb2fc(0x221)]=_0x286303[_0x1cb2fc(0x221)],global_registry[_0x1cb2fc(0x208)]=_0x286303['region'],global_registry[_0x1cb2fc(0x1f6)]=_0x286303[_0x1cb2fc(0x1f6)];const _0x516460=await _0x21ad44[_0x1cb2fc(0x20a)](getCloudProviderObject,_0x286303[_0x1cb2fc(0x221)],_0x286303['clusterName'],_0x286303[_0x1cb2fc(0x228)],_0x2bcadb,webSocketUtils,_0xd30302),[_0x276a41,_0x4fea74,_0x57dd18,_0x471915,_0x169a8c,_0x236672]=await _0x21ad44[_0x1cb2fc(0x1f7)](createK8sClient,_0x516460,_0xd30302['skipTlsCertVerify']);await _0x21ad44[_0x1cb2fc(0x1e8)](scaleDownHubDeployment,_0x4fea74,_0x286303[_0x1cb2fc(0x228)]),logger[_0x1cb2fc(0x205)](_0x21ad44['dYDaD']),process[_0x1cb2fc(0x22a)](0x0);}_0x21ad44[_0x1cb2fc(0x1e6)](_0x4db74d[_0x1cb2fc(0x217)],0x191)&&(logger['error'](_0x21ad44['AnZVf']),await _0x21ad44[_0x1cb2fc(0x216)](sendInstrumentationEvent,_0xd30302,_0x21ad44['vFBzD'],messageTypes['ERROR'],_0x21ad44[_0x1cb2fc(0x1eb)],null,_0xd30302),process[_0x1cb2fc(0x22a)](0x1)),_0x21ad44[_0x1cb2fc(0x1fc)](_0x4db74d[_0x1cb2fc(0x217)],0x190)&&(logger['error'](JSON[_0x1cb2fc(0x223)](_0x4db74d[_0x1cb2fc(0x201)])[_0x1cb2fc(0x218)]),await _0x21ad44[_0x1cb2fc(0x22c)](sendInstrumentationEvent,_0xd30302,_0x21ad44[_0x1cb2fc(0x1fe)],messageTypes['ERROR'],_0x21ad44['nQRkD'],null,_0xd30302),process[_0x1cb2fc(0x22a)](0x1)),logger[_0x1cb2fc(0x1db)](_0x1cb2fc(0x1f5)+JSON[_0x1cb2fc(0x211)](_0x4db74d)),await _0x21ad44[_0x1cb2fc(0x21d)](sendInstrumentationEvent,_0xd30302,_0x21ad44[_0x1cb2fc(0x1fe)],messageTypes['ERROR'],_0x21ad44[_0x1cb2fc(0x222)],_0x4db74d,_0xd30302),process['exit'](0x1);}catch(_0x5ea6d0){const _0x5b6061=_0x1cb2fc(0x20b)+_0x5ea6d0+'\x20\x0a'+JSON[_0x1cb2fc(0x211)](_0x5ea6d0[_0x1cb2fc(0x212)])+'\x20';logger[_0x1cb2fc(0x1db)](_0x5b6061),process[_0x1cb2fc(0x22a)](0x1);}};
1
+ function a21_0x3a17(_0x4edd63,_0x58bfb1){const _0x5a4e81=a21_0x5a4e();return a21_0x3a17=function(_0x3a1733,_0x4900c9){_0x3a1733=_0x3a1733-0x16e;let _0x5a8d2b=_0x5a4e81[_0x3a1733];return _0x5a8d2b;},a21_0x3a17(_0x4edd63,_0x58bfb1);}const a21_0x1a5a06=a21_0x3a17;function a21_0x5a4e(){const _0x58eddb=['handler','exit','cloudProvider','boolean','49xAlpca','statusCode','JnOZl','bstackAccesskey','skipTlsCertVerify','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../cloudproviders/utils','PUCPr','parse','djwgc','Kokgn','1991403AKoNBW','stop','unauthorised','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','rwalK','desc','eAVVw','type','ERROR','HXKlj','twTxk','ZmsOf','server-error','skip-tls-cert-verify','bvXPQ','clusterRegion','../../utils/gridComponents','PjYml','2189qxsVEs','456hUsnBK','922452gTNJEv','../../config/constants','clusterName','name','readFileSync','AsaIK','addListeners','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','debug','command','Stopping\x20grid\x20','2798rwBQjh','stop-grid-called','JWeYE','32510IxoOSc','VjmdT','<PasswordPlaceholder>','replace','mbknY','init-not-called','user','../../utils/instrumentationUtils','error','../../config/logger','bstackUsername','message','14967qvaPrf','Adding\x20Websocket\x20listeners','pOXtc','default','4oiJclv','invalid-grid-id','126042NqODMc','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','username','string','Stop\x20a\x20running\x20Automation\x20grid.','gridId','721985yVlGnT','description','Browserstack','existsSync','INFO','WebSocket','../../utils/utilityMethods','usage','Grid\x20stoppped.','password','<UsernamePlaceholder>','argv','3296joOQHw','156XShFcm','../../utils/createk8sClient','info','region','stack','../../utils/webSocketUtils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','qddRk','pKeJX','qUZDB','YWzqP','kZBha','help'];a21_0x5a4e=function(){return _0x58eddb;};return a21_0x5a4e();}(function(_0x361ef7,_0x2b15d4){const _0x2f84e7=a21_0x3a17,_0x3efc56=_0x361ef7();while(!![]){try{const _0x2516ef=parseInt(_0x2f84e7(0x1b2))/0x1*(-parseInt(_0x2f84e7(0x1be))/0x2)+parseInt(_0x2f84e7(0x19e))/0x3+-parseInt(_0x2f84e7(0x1d1))/0x4*(parseInt(_0x2f84e7(0x174))/0x5)+parseInt(_0x2f84e7(0x16e))/0x6*(parseInt(_0x2f84e7(0x193))/0x7)+-parseInt(_0x2f84e7(0x180))/0x8*(-parseInt(_0x2f84e7(0x1cd))/0x9)+-parseInt(_0x2f84e7(0x1c1))/0xa*(-parseInt(_0x2f84e7(0x1b1))/0xb)+-parseInt(_0x2f84e7(0x1b3))/0xc*(parseInt(_0x2f84e7(0x181))/0xd);if(_0x2516ef===_0x2b15d4)break;else _0x3efc56['push'](_0x3efc56['shift']());}catch(_0x37c395){_0x3efc56['push'](_0x3efc56['shift']());}}}(a21_0x5a4e,0x6af92));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1a5a06(0x1b4)),{logger}=require(a21_0x1a5a06(0x1ca)),{getCredentialsPath,getGridDetails}=require(a21_0x1a5a06(0x17a)),{scaleDownHubDeployment}=require(a21_0x1a5a06(0x1af)),{sendInstrumentationEvent}=require(a21_0x1a5a06(0x1c8)),webSocketUtils=require(a21_0x1a5a06(0x186)),{createK8sClient}=require(a21_0x1a5a06(0x182)),{getCloudProviderObject}=require(a21_0x1a5a06(0x199));exports[a21_0x1a5a06(0x1bc)]='grid',exports[a21_0x1a5a06(0x1a4)]=a21_0x1a5a06(0x172),exports['builder']=function(_0x15b59e){const _0x1737d9=a21_0x1a5a06,_0x381964={};_0x381964['PjYml']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x381964[_0x1737d9(0x18d)]=_0x1737d9(0x171),_0x381964['Kokgn']='Skip\x20insecure\x20cert\x20verification.',_0x381964[_0x1737d9(0x19c)]=_0x1737d9(0x192),_0x381964[_0x1737d9(0x18a)]=_0x1737d9(0x18e);const _0x1546aa=_0x381964,_0x3fe75b={};_0x3fe75b[_0x1737d9(0x175)]=_0x1546aa[_0x1737d9(0x1b0)],_0x3fe75b[_0x1737d9(0x1a6)]=_0x1546aa[_0x1737d9(0x18d)];const _0x111786={};_0x111786['description']=_0x1546aa[_0x1737d9(0x19d)],_0x111786[_0x1737d9(0x1a6)]=_0x1546aa[_0x1737d9(0x19c)],_0x111786[_0x1737d9(0x1d0)]=![];const _0x4691be={};return _0x4691be['grid-id']=_0x3fe75b,_0x4691be[_0x1737d9(0x1ac)]=_0x111786,_0x15b59e[_0x1737d9(0x17b)](HELP_HEADER_MESSAGE[_0x1737d9(0x19f)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4691be)[_0x1737d9(0x18e)](_0x1546aa[_0x1737d9(0x18a)])[_0x1737d9(0x17f)];},exports[a21_0x1a5a06(0x18f)]=async function(_0x29ac6e){const _0x194d58=a21_0x1a5a06,_0x4464f4={'TRFam':_0x194d58(0x16f),'dftkg':function(_0x4e3dcf){return _0x4e3dcf();},'JWeYE':_0x194d58(0x187),'JnOZl':function(_0x2b9896,_0x41d4c5,_0x56dc60,_0x333f86,_0x5c8a83,_0x545a84,_0x2878c0){return _0x2b9896(_0x41d4c5,_0x56dc60,_0x333f86,_0x5c8a83,_0x545a84,_0x2878c0);},'ZmsOf':_0x194d58(0x1bf),'HXKlj':_0x194d58(0x1c6),'rwalK':function(_0x2deba6,_0x3a1d74,_0xf567e0,_0x51e22e,_0x4dd981,_0x44126f,_0x5ca1ae){return _0x2deba6(_0x3a1d74,_0xf567e0,_0x51e22e,_0x4dd981,_0x44126f,_0x5ca1ae);},'YWzqP':function(_0x3f62e8){return _0x3f62e8();},'eAVVw':_0x194d58(0x17e),'bvXPQ':_0x194d58(0x1c3),'PQZZu':_0x194d58(0x1ce),'qddRk':function(_0x424b82,_0x514197,_0x158997,_0x48bf75){return _0x424b82(_0x514197,_0x158997,_0x48bf75);},'liWUF':function(_0x28e165,_0x4362d0,_0x21afca){return _0x28e165(_0x4362d0,_0x21afca);},'VjmdT':function(_0x3fff48,_0x35f2d0,_0x23f0e1){return _0x3fff48(_0x35f2d0,_0x23f0e1);},'PUCPr':_0x194d58(0x17c),'twTxk':function(_0x1cd579,_0x395f8d){return _0x1cd579===_0x395f8d;},'AsaIK':_0x194d58(0x1ba),'qUZDB':_0x194d58(0x1a0),'mbknY':function(_0x39c7d8,_0x29122c){return _0x39c7d8===_0x29122c;},'pOXtc':function(_0x204b9b,_0x3af1a3,_0xdac4fb,_0x222004,_0x54b524,_0x4e9f04,_0x2b1c52){return _0x204b9b(_0x3af1a3,_0xdac4fb,_0x222004,_0x54b524,_0x4e9f04,_0x2b1c52);},'YkyDW':_0x194d58(0x1d2),'yrDFW':_0x194d58(0x1ab)};let _0x390273;try{!_0x29ac6e[_0x194d58(0x173)]&&(logger[_0x194d58(0x1c9)](_0x4464f4['TRFam']),process[_0x194d58(0x190)](0x1));!fs[_0x194d58(0x177)](_0x4464f4['dftkg'](getCredentialsPath))&&(logger[_0x194d58(0x1c9)](_0x4464f4[_0x194d58(0x1c0)]),await _0x4464f4[_0x194d58(0x195)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes[_0x194d58(0x1a7)],_0x4464f4[_0x194d58(0x1a8)],null,_0x29ac6e),process[_0x194d58(0x190)](0x1));logger['info'](_0x194d58(0x1bd)+_0x29ac6e[_0x194d58(0x173)]),await _0x4464f4[_0x194d58(0x1a3)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes[_0x194d58(0x178)],null,null,_0x29ac6e);const _0x44a96b=JSON[_0x194d58(0x19b)](fs[_0x194d58(0x1b7)](_0x4464f4[_0x194d58(0x18c)](getCredentialsPath)));global_registry[_0x194d58(0x1cb)]=_0x44a96b['Browserstack'][_0x194d58(0x170)],global_registry[_0x194d58(0x196)]=_0x44a96b[_0x194d58(0x176)]['password'];const _0x1f445c=WS_ENDPOINT[_0x194d58(0x1c4)](_0x4464f4[_0x194d58(0x1a5)],_0x44a96b['Browserstack'][_0x194d58(0x170)])[_0x194d58(0x1c4)](_0x4464f4[_0x194d58(0x1ad)],_0x44a96b[_0x194d58(0x176)][_0x194d58(0x17d)]),_0xab0419={};_0xab0419[_0x194d58(0x179)]=ws,_0xab0419['connectionTimeout']=0x36ee80,_0x390273=new ReconnectingWebSocket(_0x1f445c,[],_0xab0419),logger[_0x194d58(0x1bb)](_0x4464f4['PQZZu']),webSocketUtils[_0x194d58(0x1b9)](_0x390273,_0x29ac6e[_0x194d58(0x1c7)],_0x29ac6e[_0x194d58(0x17d)]);const [_0x373c93,_0x393180]=await _0x4464f4[_0x194d58(0x189)](getGridDetails,_0x44a96b[_0x194d58(0x176)][_0x194d58(0x170)],_0x44a96b[_0x194d58(0x176)]['password'],_0x29ac6e[_0x194d58(0x173)]);if(_0x393180){const _0x249377=_0x393180[_0x194d58(0x183)];global_registry[_0x194d58(0x191)]=_0x249377[_0x194d58(0x191)],global_registry[_0x194d58(0x1ae)]=_0x249377[_0x194d58(0x184)],global_registry['clusterName']=_0x249377[_0x194d58(0x1b5)];const _0x3e6b25=await _0x4464f4[_0x194d58(0x1a3)](getCloudProviderObject,_0x249377[_0x194d58(0x191)],_0x249377[_0x194d58(0x1b5)],_0x249377[_0x194d58(0x1b6)],_0x390273,webSocketUtils,_0x29ac6e),[_0x1bdef7,_0x582009,_0x406655,_0x13d4d1,_0x55aa65,_0x34d5b1]=await _0x4464f4['liWUF'](createK8sClient,_0x3e6b25,_0x29ac6e[_0x194d58(0x197)]);await _0x4464f4[_0x194d58(0x1c2)](scaleDownHubDeployment,_0x582009,_0x249377['name']),logger['info'](_0x4464f4[_0x194d58(0x19a)]),process[_0x194d58(0x190)](0x0);}_0x4464f4[_0x194d58(0x1a9)](_0x373c93[_0x194d58(0x194)],0x191)&&(logger['error'](_0x4464f4[_0x194d58(0x1b8)]),await _0x4464f4['rwalK'](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes['ERROR'],_0x4464f4[_0x194d58(0x18b)],null,_0x29ac6e),process[_0x194d58(0x190)](0x1)),_0x4464f4[_0x194d58(0x1c5)](_0x373c93['statusCode'],0x190)&&(logger[_0x194d58(0x1c9)](JSON[_0x194d58(0x19b)](_0x373c93[_0x194d58(0x188)])[_0x194d58(0x1cc)]),await _0x4464f4[_0x194d58(0x1cf)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes['ERROR'],_0x4464f4['YkyDW'],null,_0x29ac6e),process[_0x194d58(0x190)](0x1)),logger[_0x194d58(0x1c9)](_0x194d58(0x1a1)+JSON[_0x194d58(0x1a2)](_0x373c93)),await _0x4464f4[_0x194d58(0x1a3)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4['ZmsOf'],messageTypes['ERROR'],_0x4464f4['yrDFW'],_0x373c93,_0x29ac6e),process['exit'](0x1);}catch(_0x1c45b1){const _0x4102a5=_0x194d58(0x198)+_0x1c45b1+'\x20\x0a'+JSON[_0x194d58(0x1a2)](_0x1c45b1[_0x194d58(0x185)])+'\x20';logger['error'](_0x4102a5),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x25972c=a22_0x2bd8;(function(_0x135b66,_0x801a46){const _0x2cfd6d=a22_0x2bd8,_0x1289d3=_0x135b66();while(!![]){try{const _0x17cc06=-parseInt(_0x2cfd6d(0x1c9))/0x1*(-parseInt(_0x2cfd6d(0x1e8))/0x2)+-parseInt(_0x2cfd6d(0x1c0))/0x3+-parseInt(_0x2cfd6d(0x1a7))/0x4*(parseInt(_0x2cfd6d(0x1cd))/0x5)+-parseInt(_0x2cfd6d(0x1c2))/0x6*(-parseInt(_0x2cfd6d(0x1a8))/0x7)+-parseInt(_0x2cfd6d(0x20b))/0x8*(parseInt(_0x2cfd6d(0x1e5))/0x9)+-parseInt(_0x2cfd6d(0x1b3))/0xa+parseInt(_0x2cfd6d(0x1c5))/0xb;if(_0x17cc06===_0x801a46)break;else _0x1289d3['push'](_0x1289d3['shift']());}catch(_0x5ad352){_0x1289d3['push'](_0x1289d3['shift']());}}}(a22_0x5406,0xd14e1),require(a22_0x25972c(0x1fa))[a22_0x25972c(0x1bd)]());let gridURL=a22_0x25972c(0x1d9),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x25972c(0x1fb);const _env=(process['env'][a22_0x25972c(0x20a)]||'prod')[a22_0x25972c(0x1ac)]();if(_env===a22_0x25972c(0x1b4)||_env===a22_0x25972c(0x1f9))gridURL=a22_0x25972c(0x1e2),bsApiUrl=a22_0x25972c(0x1de),agApiUrl=a22_0x25972c(0x1f3);else(_env===a22_0x25972c(0x20d)||_env===a22_0x25972c(0x1ec))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x25972c(0x1b2),agApiUrl=a22_0x25972c(0x1ee));exports[a22_0x25972c(0x1e3)]=process['env'][a22_0x25972c(0x1e3)]||gridURL,exports[a22_0x25972c(0x1c3)]=process[a22_0x25972c(0x1c1)][a22_0x25972c(0x1c3)]||bsApiUrl,exports[a22_0x25972c(0x1ed)]=process['env']['AG_API_URL']||agApiUrl,exports[a22_0x25972c(0x1bc)]=a22_0x25972c(0x207)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x25972c(0x201)]=a22_0x25972c(0x1aa),exports[a22_0x25972c(0x1d7)]='BrowserStackIAMUser',exports[a22_0x25972c(0x1b6)]='high-scale-grid',exports[a22_0x25972c(0x1e7)]=a22_0x25972c(0x1d3),exports['CLUSTER_DEP_STACK_NAME']=a22_0x25972c(0x1ce),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x25972c(0x1b8)]=a22_0x25972c(0x1cf),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x25972c(0x1a9)]=a22_0x25972c(0x1ea),exports['GCP']=a22_0x25972c(0x1ba),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x25972c(0x1e7)],this[a22_0x25972c(0x1a9)],this[a22_0x25972c(0x1fd)]];const a22_0x1721d8={};a22_0x1721d8['Key']=a22_0x25972c(0x1e4),a22_0x1721d8[a22_0x25972c(0x1e9)]='BrowserStack';const a22_0x2689bb={};a22_0x2689bb[a22_0x25972c(0x1d5)]=a22_0x25972c(0x209),a22_0x2689bb[a22_0x25972c(0x1e9)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x1721d8,a22_0x2689bb];function a22_0x5406(){const _0x5e9279=['warning','29UNInMB','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','INFO','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','3187955iSVQvV','BSTACK-ATS-CLUSTER','BSTACK-ATS-CLUSTER-HUB-HA','HELP_FOOTER_MESSAGE','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','CLUSTER','aws','SUCCESS','Key','ERROR','IAM_USER_NAME','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid.browserstack.com','TRIAL_GRID_URL','init','REDACTED','us-east-1','api-devhst.bsstag.com','cliRunStarted','WS_EVENTS','CLI_ARGS_REGEX','grid-devhst.bsstag.com','DASHBOARD_ENDPOINT','browserstack:managedBy','731529uGmZzs','root','AWS','284FyADNL','Value','azure','gridUrl','pre-prod','AG_API_URL','grid-api-preprod.bsstag.com','WARNING','forEach','resourceInfo','global_registry','grid-api-devhst.bsstag.com','grid','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','info','HST_CLUSTER_TAGS','stag','dotenv','grid-api.browserstack.com','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','GCP','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','create','messageTypes','CP_CONFIG_FILE','CLOUD_PROVIDER','list','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','RESOURCES','SUPPORTED_CLOUD_PROVIDERS','wss://','BrowserStack','browserstack:service','BROWSERSTACK_ENV','16RPoIDJ','stop','preprod','COMMON_HST_TAGS','pre-check','4RlpfUD','1307929Fvkwzi','AZURE','credentials','connect','toLowerCase','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','LINK_MESSAGE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','api-preprod.bsstag.com','14961000iRyFzG','staging','split','DEFAULT_GRID_NAME','start','CLUSTER_HUB_HA_STACK_NAME','MessageDescription','gcp','delete','WS_ENDPOINT','config','push','pre_check','4752114scXmPY','env','12Aeftew','BS_API_URL','GRID_URL','47957712SQMCpe','RAW_ARGS_REGEX','LOG'];a22_0x5406=function(){return _0x5e9279;};return a22_0x5406();}if(process[a22_0x25972c(0x1c1)][a22_0x25972c(0x1ae)]){const parsedTags=process[a22_0x25972c(0x1c1)][a22_0x25972c(0x1ae)]['split'](',');parsedTags[a22_0x25972c(0x1f0)](_0x2067be=>{const _0x111f5c=a22_0x25972c,_0x32273c=_0x2067be[_0x111f5c(0x1b5)](':'),_0x3014d7={};_0x3014d7[_0x111f5c(0x1d5)]=_0x32273c[0x0],_0x3014d7[_0x111f5c(0x1e9)]=_0x32273c[0x1],common_hst_tags_list[_0x111f5c(0x1be)](_0x3014d7);});}exports[a22_0x25972c(0x20e)]=common_hst_tags_list;function a22_0x2bd8(_0x4ff6d8,_0x16187d){const _0x540615=a22_0x5406();return a22_0x2bd8=function(_0x2bd807,_0x3887d6){_0x2bd807=_0x2bd807-0x1a6;let _0x1f73f9=_0x540615[_0x2bd807];return _0x1f73f9;},a22_0x2bd8(_0x4ff6d8,_0x16187d);}const a22_0x17eb9a={};a22_0x17eb9a[a22_0x25972c(0x1e4)]=a22_0x25972c(0x208),a22_0x17eb9a[a22_0x25972c(0x209)]='BrowserStack-Automate-TurboScale',exports[a22_0x25972c(0x1f8)]=a22_0x17eb9a,exports[a22_0x25972c(0x206)]=[this[a22_0x25972c(0x1e7)]];const a22_0x2c511b={};a22_0x2c511b[a22_0x25972c(0x1c7)]='log',a22_0x2c511b[a22_0x25972c(0x205)]=a22_0x25972c(0x1f1),a22_0x2c511b[a22_0x25972c(0x1c4)]=a22_0x25972c(0x1eb),a22_0x2c511b['CLI_RUN_STARTED']=a22_0x25972c(0x1df),a22_0x2c511b['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x25972c(0x1e0)]=a22_0x2c511b,exports[a22_0x25972c(0x1f2)]={},exports[a22_0x25972c(0x1b0)]=a22_0x25972c(0x1ca);const a22_0x388a82={};a22_0x388a82['root']='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1db)]=a22_0x25972c(0x1d8)+this[a22_0x25972c(0x1b0)],a22_0x388a82['configure']=a22_0x25972c(0x1fe)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1ff)]=a22_0x25972c(0x1b1)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)]={},a22_0x388a82[a22_0x25972c(0x1bb)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1ab)]=a22_0x25972c(0x1af)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1b7)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x20c)]=a22_0x25972c(0x1cc)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x1bf)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)][a22_0x25972c(0x1e6)]=a22_0x25972c(0x1f5)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)][a22_0x25972c(0x1f4)]=a22_0x25972c(0x1f6)+this[a22_0x25972c(0x1b0)],a22_0x388a82[a22_0x25972c(0x203)]['gridProfile']=a22_0x25972c(0x204)+this[a22_0x25972c(0x1b0)],exports['HELP_HEADER_MESSAGE']=a22_0x388a82,exports[a22_0x25972c(0x1d0)]=a22_0x25972c(0x1ad);const a22_0x403a58={};a22_0x403a58[a22_0x25972c(0x1d4)]='success',a22_0x403a58[a22_0x25972c(0x1d6)]='error',a22_0x403a58[a22_0x25972c(0x1cb)]=a22_0x25972c(0x1f7),a22_0x403a58[a22_0x25972c(0x1ef)]=a22_0x25972c(0x1c8),a22_0x403a58['UNKNOWN']='unknown',a22_0x403a58['NULL']=null,exports[a22_0x25972c(0x200)]=a22_0x403a58,exports[a22_0x25972c(0x1e1)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x25972c(0x1c6)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x25972c(0x1dc)]='[REDACTED]';const a22_0x110c5d={};a22_0x110c5d['grid-profile']=a22_0x25972c(0x1d1);const a22_0x54c30d={};a22_0x54c30d[a22_0x25972c(0x1a6)]=a22_0x110c5d,exports[a22_0x25972c(0x1b9)]=a22_0x54c30d,exports[a22_0x25972c(0x1da)]=a22_0x25972c(0x1fc);const a22_0x307531={};a22_0x307531[a22_0x25972c(0x1d2)]='high-scale-grid-cluster',a22_0x307531[a22_0x25972c(0x202)]=a22_0x25972c(0x1d3),a22_0x307531['REGION']=a22_0x25972c(0x1dd),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x307531;
1
+ const a22_0x5b213e=a22_0x4f66;(function(_0x164ddf,_0x4bcdfd){const _0x210c4a=a22_0x4f66,_0x2ad177=_0x164ddf();while(!![]){try{const _0x33881a=parseInt(_0x210c4a(0x1ce))/0x1*(parseInt(_0x210c4a(0x1e3))/0x2)+-parseInt(_0x210c4a(0x1fb))/0x3*(-parseInt(_0x210c4a(0x1d5))/0x4)+-parseInt(_0x210c4a(0x1db))/0x5*(parseInt(_0x210c4a(0x1d6))/0x6)+parseInt(_0x210c4a(0x20d))/0x7*(parseInt(_0x210c4a(0x1e7))/0x8)+-parseInt(_0x210c4a(0x1dd))/0x9*(-parseInt(_0x210c4a(0x1f6))/0xa)+-parseInt(_0x210c4a(0x23b))/0xb*(-parseInt(_0x210c4a(0x1e4))/0xc)+-parseInt(_0x210c4a(0x1c7))/0xd*(parseInt(_0x210c4a(0x218))/0xe);if(_0x33881a===_0x4bcdfd)break;else _0x2ad177['push'](_0x2ad177['shift']());}catch(_0x2bc505){_0x2ad177['push'](_0x2ad177['shift']());}}}(a22_0x3430,0x87380),require(a22_0x5b213e(0x233))[a22_0x5b213e(0x226)]());let gridURL=a22_0x5b213e(0x1ef),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x5b213e(0x20f);const _env=(process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x1e9)]||a22_0x5b213e(0x220))['toLowerCase']();if(_env==='staging'||_env==='stag')gridURL=a22_0x5b213e(0x1f3),bsApiUrl=a22_0x5b213e(0x23a),agApiUrl=a22_0x5b213e(0x236);else(_env===a22_0x5b213e(0x237)||_env===a22_0x5b213e(0x1e8))&&(gridURL=a22_0x5b213e(0x214),bsApiUrl=a22_0x5b213e(0x1f8),agApiUrl=a22_0x5b213e(0x1ee));exports[a22_0x5b213e(0x1f1)]=process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x1f1)]||gridURL,exports['BS_API_URL']=process[a22_0x5b213e(0x1e6)]['BS_API_URL']||bsApiUrl,exports[a22_0x5b213e(0x1ed)]=process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x1ed)]||agApiUrl,exports[a22_0x5b213e(0x204)]='wss://'+this[a22_0x5b213e(0x1ed)]+a22_0x5b213e(0x1d8),exports[a22_0x5b213e(0x1d4)]=a22_0x5b213e(0x219),exports[a22_0x5b213e(0x1c9)]='BrowserStackIAMUser',exports[a22_0x5b213e(0x1ec)]=a22_0x5b213e(0x1f5),exports[a22_0x5b213e(0x210)]=a22_0x5b213e(0x1d2),exports[a22_0x5b213e(0x229)]=a22_0x5b213e(0x20a),exports[a22_0x5b213e(0x1cc)]=a22_0x5b213e(0x230),exports[a22_0x5b213e(0x1f4)]=a22_0x5b213e(0x1c8),exports[a22_0x5b213e(0x234)]=a22_0x5b213e(0x22d),exports[a22_0x5b213e(0x211)]='azure',exports['GCP']=a22_0x5b213e(0x231),exports[a22_0x5b213e(0x21c)]=[this[a22_0x5b213e(0x210)],this[a22_0x5b213e(0x211)],this[a22_0x5b213e(0x216)]];const a22_0x1a75cc={};a22_0x1a75cc[a22_0x5b213e(0x207)]=a22_0x5b213e(0x203),a22_0x1a75cc[a22_0x5b213e(0x20e)]=a22_0x5b213e(0x1e5);function a22_0x4f66(_0x2f9264,_0x34da4a){const _0x3430fd=a22_0x3430();return a22_0x4f66=function(_0x4f6698,_0x1d1ccf){_0x4f6698=_0x4f6698-0x1c7;let _0x5cd429=_0x3430fd[_0x4f6698];return _0x5cd429;},a22_0x4f66(_0x2f9264,_0x34da4a);}const a22_0x4ede32={};a22_0x4ede32['Key']=a22_0x5b213e(0x215),a22_0x4ede32[a22_0x5b213e(0x20e)]=a22_0x5b213e(0x208);const common_hst_tags_list=[a22_0x1a75cc,a22_0x4ede32];if(process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x200)]){const parsedTags=process[a22_0x5b213e(0x1e6)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x5b213e(0x228)](',');parsedTags['forEach'](_0x4104d5=>{const _0x4dc23b=a22_0x5b213e,_0x1c6d66=_0x4104d5['split'](':'),_0x1d5d4f={};_0x1d5d4f[_0x4dc23b(0x207)]=_0x1c6d66[0x0],_0x1d5d4f[_0x4dc23b(0x20e)]=_0x1c6d66[0x1],common_hst_tags_list['push'](_0x1d5d4f);});}exports[a22_0x5b213e(0x1f2)]=common_hst_tags_list;const a22_0x56cbe9={};a22_0x56cbe9[a22_0x5b213e(0x203)]=a22_0x5b213e(0x1e5),a22_0x56cbe9[a22_0x5b213e(0x215)]=a22_0x5b213e(0x208),exports['HST_CLUSTER_TAGS']=a22_0x56cbe9,exports[a22_0x5b213e(0x1f0)]=[this[a22_0x5b213e(0x210)]];const a22_0x406bab={};a22_0x406bab[a22_0x5b213e(0x1d7)]=a22_0x5b213e(0x20b),a22_0x406bab[a22_0x5b213e(0x20c)]=a22_0x5b213e(0x21a),a22_0x406bab[a22_0x5b213e(0x21b)]=a22_0x5b213e(0x1e2),a22_0x406bab[a22_0x5b213e(0x22a)]=a22_0x5b213e(0x1cd),a22_0x406bab[a22_0x5b213e(0x1de)]='cliRunFinished',exports[a22_0x5b213e(0x221)]=a22_0x406bab,exports[a22_0x5b213e(0x1da)]={},exports[a22_0x5b213e(0x1d9)]=a22_0x5b213e(0x21d);const a22_0x3372fd={};a22_0x3372fd[a22_0x5b213e(0x223)]=a22_0x5b213e(0x22e)+this['LINK_MESSAGE'],a22_0x3372fd['init']=a22_0x5b213e(0x201)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x1d0)]=a22_0x5b213e(0x1ff)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x1e1)]=a22_0x5b213e(0x1eb)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x209)]={},a22_0x3372fd[a22_0x5b213e(0x22f)]=a22_0x5b213e(0x1ca)+this['LINK_MESSAGE'],a22_0x3372fd[a22_0x5b213e(0x22c)]=a22_0x5b213e(0x217)+this['LINK_MESSAGE'],a22_0x3372fd[a22_0x5b213e(0x227)]=a22_0x5b213e(0x22b)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x1ea)]=a22_0x5b213e(0x1dc)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x224)]=a22_0x5b213e(0x222)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x209)][a22_0x5b213e(0x223)]=a22_0x5b213e(0x202)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x209)][a22_0x5b213e(0x21e)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x3372fd[a22_0x5b213e(0x209)][a22_0x5b213e(0x1cf)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x5b213e(0x1d9)],exports[a22_0x5b213e(0x213)]=a22_0x3372fd,exports[a22_0x5b213e(0x1cb)]=a22_0x5b213e(0x205);const a22_0x19ae43={};a22_0x19ae43['SUCCESS']=a22_0x5b213e(0x21f),a22_0x19ae43[a22_0x5b213e(0x238)]=a22_0x5b213e(0x1f7),a22_0x19ae43['INFO']='info',a22_0x19ae43[a22_0x5b213e(0x232)]='warning',a22_0x19ae43[a22_0x5b213e(0x1fe)]=a22_0x5b213e(0x1fc),a22_0x19ae43[a22_0x5b213e(0x235)]=null,exports['messageTypes']=a22_0x19ae43,exports[a22_0x5b213e(0x206)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5b213e(0x1fd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5b213e(0x239)]=a22_0x5b213e(0x1df);const a22_0x3d0eb5={};a22_0x3d0eb5[a22_0x5b213e(0x225)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x445973={};a22_0x445973[a22_0x5b213e(0x1d3)]=a22_0x3d0eb5,exports[a22_0x5b213e(0x1f9)]=a22_0x445973,exports['TRIAL_GRID_URL']=a22_0x5b213e(0x1e0);const a22_0x635cef={};function a22_0x3430(){const _0x125313=['connect','browserstack-turboscale-grid','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','delete','BSTACK-ATS-CLUSTER-AUTOSCALER','gcp','WARNING','dotenv','TURBOSCALE_DEPLOYMENT','NULL','grid-api-devhst.bsstag.com','preprod','ERROR','REDACTED','api-devhst.bsstag.com','176pkHxhP','1339468MqAkxu','BSTACK-ATS-CLUSTER-HUB-HA','IAM_USER_NAME','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','HELP_FOOTER_MESSAGE','CLUSTER_AUTOSCALER_STACK_NAME','cliRunStarted','172tzPxVc','gridProfile','configure','CLOUD_PROVIDER','aws','pre-check','CP_CONFIG_FILE','12umpMcr','6eOKKIP','LOG','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','LINK_MESSAGE','global_registry','5296265RGLIuv','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','279bNkUlt','CLI_RUN_FINISHED','[REDACTED]','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','create','gridUrl','6542xYhXSO','206988iqksWa','BrowserStack','env','8zPJtBs','pre-prod','BROWSERSTACK_ENV','stop','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','DEFAULT_GRID_NAME','AG_API_URL','grid-api-preprod.bsstag.com','grid.browserstack.com','SUPPORTED_CLOUD_PROVIDERS','DASHBOARD_ENDPOINT','COMMON_HST_TAGS','grid-devhst.bsstag.com','CLUSTER_HUB_HA_STACK_NAME','high-scale-grid','18950ucFilP','error','api-preprod.bsstag.com','MessageDescription','us-east-1','839559BXhveN','unknown','RAW_ARGS_REGEX','UNKNOWN','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','browserstack:managedBy','WS_ENDPOINT','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','CLI_ARGS_REGEX','Key','BrowserStack-Automate-TurboScale','list','BSTACK-ATS-CLUSTER','log','RESOURCES','4182227MvatzW','Value','grid-api.browserstack.com','AWS','AZURE','DEFAULT_CLUSTER_DETAILS','HELP_HEADER_MESSAGE','grid-preprod.bsstag.com','browserstack:service','GCP','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','98jiRgTI','credentials','resourceInfo','GRID_URL','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','grid','success','prod','WS_EVENTS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','root','pre_check','grid-profile','config','start','split','CLUSTER_DEP_STACK_NAME','CLI_RUN_STARTED','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'];a22_0x3430=function(){return _0x125313;};return a22_0x3430();}a22_0x635cef['CLUSTER']='high-scale-grid-cluster',a22_0x635cef[a22_0x5b213e(0x1d1)]=a22_0x5b213e(0x1d2),a22_0x635cef['REGION']=a22_0x5b213e(0x1fa),exports[a22_0x5b213e(0x212)]=a22_0x635cef;
@@ -1 +1 @@
1
- const a23_0x50a082=a23_0x1cfe;(function(_0x36cf67,_0x556334){const _0x421a4a=a23_0x1cfe,_0x3abf98=_0x36cf67();while(!![]){try{const _0x4fa30a=parseInt(_0x421a4a(0x17a))/0x1+parseInt(_0x421a4a(0x17b))/0x2+-parseInt(_0x421a4a(0x187))/0x3*(-parseInt(_0x421a4a(0x175))/0x4)+parseInt(_0x421a4a(0x18b))/0x5+parseInt(_0x421a4a(0x17f))/0x6+parseInt(_0x421a4a(0x184))/0x7+-parseInt(_0x421a4a(0x177))/0x8;if(_0x4fa30a===_0x556334)break;else _0x3abf98['push'](_0x3abf98['shift']());}catch(_0x135826){_0x3abf98['push'](_0x3abf98['shift']());}}}(a23_0x40e4,0xd7fcb));const winston=require(a23_0x50a082(0x190)),fs=require('fs'),path=require(a23_0x50a082(0x176)),logDir=a23_0x50a082(0x178);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x845e22={};function a23_0x1cfe(_0xb4f4ea,_0x389e6e){const _0x40e4e4=a23_0x40e4();return a23_0x1cfe=function(_0x1cfe9b,_0x1f3be9){_0x1cfe9b=_0x1cfe9b-0x172;let _0x6a63b6=_0x40e4e4[_0x1cfe9b];return _0x6a63b6;},a23_0x1cfe(_0xb4f4ea,_0x389e6e);}a23_0x845e22['format']=a23_0x50a082(0x18a);const a23_0xf9d88e={};a23_0xf9d88e['level']=!![];const a23_0x317361={};a23_0x317361[a23_0x50a082(0x179)]=a23_0x50a082(0x18d),exports[a23_0x50a082(0x186)]=new winston[(a23_0x50a082(0x185))]({'format':winston[a23_0x50a082(0x17c)][a23_0x50a082(0x182)](winston[a23_0x50a082(0x17c)][a23_0x50a082(0x17e)](a23_0x845e22),winston['format'][a23_0x50a082(0x174)](a23_0xf9d88e),winston[a23_0x50a082(0x17c)][a23_0x50a082(0x181)](_0x59e223=>_0x59e223[a23_0x50a082(0x17e)]+a23_0x50a082(0x183)+_0x59e223[a23_0x50a082(0x180)]+':\x20'+_0x59e223[a23_0x50a082(0x189)])),'transports':[new winston[(a23_0x50a082(0x18c))][(a23_0x50a082(0x188))](a23_0x317361),new winston[(a23_0x50a082(0x18c))][(a23_0x50a082(0x173))]({'filename':path[a23_0x50a082(0x172)](logDir,a23_0x50a082(0x18e)),'level':a23_0x50a082(0x18f)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x50a082(0x18c))]['File']({'filename':path[a23_0x50a082(0x172)](logDir,a23_0x50a082(0x191)),'level':a23_0x50a082(0x18f)})]};function a23_0x40e4(){const _0xabbb38=['\x20-\x20','4363373eEySOv','createLogger','logger','3105807bEmgVG','Console','message','YYYY-MM-DD\x20HH:mm:ss','3216555khGFCr','transports','console.info','events.log','debug','winston','usage.log','join','File','colorize','4kCvpQl','path','34757656bfKgew','log','name','1438109ftTYNd','2940530tyWyyG','format','fileLogger','timestamp','114582LmYVbm','level','printf','combine'];a23_0x40e4=function(){return _0xabbb38;};return a23_0x40e4();}exports[a23_0x50a082(0x17d)]=new winston[(a23_0x50a082(0x185))](winstonFileLoggerParams);
1
+ const a23_0x39ada7=a23_0x112f;(function(_0x53f2e1,_0x21b72e){const _0x212d6a=a23_0x112f,_0x4c641a=_0x53f2e1();while(!![]){try{const _0xe55ebe=-parseInt(_0x212d6a(0x1a7))/0x1+-parseInt(_0x212d6a(0x1b4))/0x2+parseInt(_0x212d6a(0x1ad))/0x3+parseInt(_0x212d6a(0x1c2))/0x4*(parseInt(_0x212d6a(0x1ac))/0x5)+parseInt(_0x212d6a(0x1b7))/0x6*(parseInt(_0x212d6a(0x1a6))/0x7)+-parseInt(_0x212d6a(0x1a3))/0x8+parseInt(_0x212d6a(0x1bc))/0x9;if(_0xe55ebe===_0x21b72e)break;else _0x4c641a['push'](_0x4c641a['shift']());}catch(_0x2dc7aa){_0x4c641a['push'](_0x4c641a['shift']());}}}(a23_0x2387,0xaec0a));const winston=require(a23_0x39ada7(0x1ab)),fs=require('fs'),path=require(a23_0x39ada7(0x1aa)),logDir=a23_0x39ada7(0x1bd);!fs[a23_0x39ada7(0x1ae)](logDir)&&fs[a23_0x39ada7(0x1bf)](logDir);function a23_0x2387(){const _0x1b8a2c=['Console','usage.log','console.info','19181619yKKxnT','log','level','mkdirSync','combine','createLogger','180BEcUay','join','logger','9694208tozlxF','\x20-\x20','name','7HCpxRB','76398GBmCWw','message','YYYY-MM-DD\x20HH:mm:ss','path','winston','25eMlLfQ','805311jdWEmU','existsSync','printf','File','timestamp','fileLogger','format','2385632DFBLNN','debug','transports','4780938MzhLSg','events.log'];a23_0x2387=function(){return _0x1b8a2c;};return a23_0x2387();}const a23_0x55bd3a={};function a23_0x112f(_0x2f5157,_0x4582e2){const _0x238725=a23_0x2387();return a23_0x112f=function(_0x112f46,_0xdb1a73){_0x112f46=_0x112f46-0x1a2;let _0x2142ac=_0x238725[_0x112f46];return _0x2142ac;},a23_0x112f(_0x2f5157,_0x4582e2);}a23_0x55bd3a[a23_0x39ada7(0x1b3)]=a23_0x39ada7(0x1a9);const a23_0x209308={};a23_0x209308[a23_0x39ada7(0x1be)]=!![];const a23_0x12d2b1={};a23_0x12d2b1[a23_0x39ada7(0x1a5)]=a23_0x39ada7(0x1bb),exports[a23_0x39ada7(0x1a2)]=new winston['createLogger']({'format':winston[a23_0x39ada7(0x1b3)][a23_0x39ada7(0x1c0)](winston[a23_0x39ada7(0x1b3)][a23_0x39ada7(0x1b1)](a23_0x55bd3a),winston[a23_0x39ada7(0x1b3)]['colorize'](a23_0x209308),winston[a23_0x39ada7(0x1b3)][a23_0x39ada7(0x1af)](_0x315458=>_0x315458[a23_0x39ada7(0x1b1)]+a23_0x39ada7(0x1a4)+_0x315458[a23_0x39ada7(0x1be)]+':\x20'+_0x315458[a23_0x39ada7(0x1a8)])),'transports':[new winston[(a23_0x39ada7(0x1b6))][(a23_0x39ada7(0x1b9))](a23_0x12d2b1),new winston[(a23_0x39ada7(0x1b6))][(a23_0x39ada7(0x1b0))]({'filename':path[a23_0x39ada7(0x1c3)](logDir,a23_0x39ada7(0x1b8)),'level':a23_0x39ada7(0x1b5)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x39ada7(0x1b6))][(a23_0x39ada7(0x1b0))]({'filename':path['join'](logDir,a23_0x39ada7(0x1ba)),'level':'debug'})]};exports[a23_0x39ada7(0x1b2)]=new winston[(a23_0x39ada7(0x1c1))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x205bae=a24_0x1a1d;(function(_0x20d1e1,_0x348d42){const _0x343a80=a24_0x1a1d,_0x24aa4a=_0x20d1e1();while(!![]){try{const _0x1f5ea2=parseInt(_0x343a80(0x69))/0x1+parseInt(_0x343a80(0x7b))/0x2*(parseInt(_0x343a80(0x70))/0x3)+-parseInt(_0x343a80(0x77))/0x4*(parseInt(_0x343a80(0x7a))/0x5)+parseInt(_0x343a80(0x68))/0x6*(parseInt(_0x343a80(0x74))/0x7)+parseInt(_0x343a80(0x6e))/0x8+parseInt(_0x343a80(0x79))/0x9*(-parseInt(_0x343a80(0x73))/0xa)+-parseInt(_0x343a80(0x75))/0xb*(parseInt(_0x343a80(0x6b))/0xc);if(_0x1f5ea2===_0x348d42)break;else _0x24aa4a['push'](_0x24aa4a['shift']());}catch(_0x500089){_0x24aa4a['push'](_0x24aa4a['shift']());}}}(a24_0x2a8d,0x50672));function a24_0x2a8d(){const _0x36a37d=['xNJhI','help','36170hYerBs','278089PErFFa','22zxYeAW','YYLjV','4372fuqvOv','root','1413LwXoYH','35JBrDTI','121886ZxclPj','24YWlYof','119353NwJneK','usage','696972RhINLf','demandCommand','exports','2041656jsYcDN','commandDir','24QfWfEW'];a24_0x2a8d=function(){return _0x36a37d;};return a24_0x2a8d();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x1a1d(_0x481047,_0x2e441a){const _0x2a8d2b=a24_0x2a8d();return a24_0x1a1d=function(_0x1a1d30,_0x46de9a){_0x1a1d30=_0x1a1d30-0x68;let _0x327317=_0x2a8d2b[_0x1a1d30];return _0x327317;},a24_0x1a1d(_0x481047,_0x2e441a);}process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0xb4f94c){const _0x199c90=a24_0x1a1d,_0x56945d={};_0x56945d[_0x199c90(0x76)]='commands',_0x56945d[_0x199c90(0x71)]=_0x199c90(0x72);const _0xb1d94a=_0x56945d;_0xb4f94c[_0x199c90(0x6a)](HELP_HEADER_MESSAGE[_0x199c90(0x78)])[_0x199c90(0x6f)](_0xb1d94a['YYLjV'])[_0x199c90(0x6c)]()[_0x199c90(0x72)](_0xb1d94a[_0x199c90(0x71)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x205bae(0x6d)]=run;
2
+ 'use strict';const a24_0x35720c=a24_0x239d;(function(_0x1e4e9e,_0x454e7f){const _0x4e03c2=a24_0x239d,_0x33da42=_0x1e4e9e();while(!![]){try{const _0x59382c=parseInt(_0x4e03c2(0x1af))/0x1+-parseInt(_0x4e03c2(0x1a8))/0x2+parseInt(_0x4e03c2(0x1b6))/0x3*(-parseInt(_0x4e03c2(0x1ae))/0x4)+-parseInt(_0x4e03c2(0x1ab))/0x5+parseInt(_0x4e03c2(0x1b5))/0x6*(parseInt(_0x4e03c2(0x1a6))/0x7)+parseInt(_0x4e03c2(0x1b8))/0x8*(-parseInt(_0x4e03c2(0x1a9))/0x9)+-parseInt(_0x4e03c2(0x1b1))/0xa*(-parseInt(_0x4e03c2(0x1b7))/0xb);if(_0x59382c===_0x454e7f)break;else _0x33da42['push'](_0x33da42['shift']());}catch(_0x280bf8){_0x33da42['push'](_0x33da42['shift']());}}}(a24_0x45d5,0xb3507));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x35720c(0x1b2)][a24_0x35720c(0x1ba)]=0x1;function a24_0x45d5(){const _0x23c929=['7HXeDWB','commands','1729278zkvOgN','4437wxaykQ','CsMfN','6802175FNLcWe','demandCommand','usage','9960lWPUIu','777218XLLdcJ','exports','6190fkNDwq','env','commandDir','epilogue','3291234tuqcvE','135ihdcVV','53251mIPdlq','20296AQGuig','help','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','HJrsd'];a24_0x45d5=function(){return _0x23c929;};return a24_0x45d5();}function run(_0x4104e9){const _0x3b0a72=a24_0x35720c,_0x481c31={};_0x481c31[_0x3b0a72(0x1bb)]=_0x3b0a72(0x1a7),_0x481c31[_0x3b0a72(0x1aa)]='help';const _0x414dc7=_0x481c31;_0x4104e9[_0x3b0a72(0x1ad)](HELP_HEADER_MESSAGE['root'])[_0x3b0a72(0x1b3)](_0x414dc7[_0x3b0a72(0x1bb)])[_0x3b0a72(0x1ac)]()[_0x3b0a72(0x1b9)](_0x414dc7[_0x3b0a72(0x1aa)])[_0x3b0a72(0x1b4)](HELP_FOOTER_MESSAGE);}function a24_0x239d(_0x1cb9cf,_0x108966){const _0x45d58e=a24_0x45d5();return a24_0x239d=function(_0x239da5,_0x59802f){_0x239da5=_0x239da5-0x1a6;let _0x180450=_0x45d58e[_0x239da5];return _0x180450;},a24_0x239d(_0x1cb9cf,_0x108966);}module[a24_0x35720c(0x1b0)]=run;