browserstack-node-sdk 1.46.7 → 1.47.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 (187) 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/generated/sdk-messages_pb.d.ts +18 -0
  41. package/generated/sdk-messages_pb.js +147 -3
  42. package/package.json +1 -1
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test.setup.js +1 -1
  69. package/src/bin/jest/test_before.setup.js +1 -1
  70. package/src/bin/launcher/launcher.js +1 -1
  71. package/src/bin/load/index.js +1 -1
  72. package/src/bin/load/loadUtils.js +1 -1
  73. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  74. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  75. package/src/bin/mocha/command.js +1 -1
  76. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  77. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  78. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  79. package/src/bin/mocha/test.setup.js +1 -1
  80. package/src/bin/nightwatch/command.js +1 -1
  81. package/src/bin/playwright/accessibility-helper.js +1 -1
  82. package/src/bin/playwright/command.js +1 -1
  83. package/src/bin/playwright/globalSetup.js +1 -1
  84. package/src/bin/playwright/mock-process.js +1 -1
  85. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  86. package/src/bin/playwright/patches.js +1 -1
  87. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  88. package/src/bin/playwright/reporter/reporter.js +1 -1
  89. package/src/bin/playwright/reporter/test-details.js +1 -1
  90. package/src/bin/playwright/sessionDetails.js +1 -1
  91. package/src/bin/runner.js +1 -1
  92. package/src/bin/setup.js +1 -1
  93. package/src/bin/test-runner/index.js +1 -1
  94. package/src/bin/test-runner/runTest.js +1 -1
  95. package/src/bin/test-runner/testWorker.js +1 -1
  96. package/src/bin/utils/apiUtilityMethods.js +1 -1
  97. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  98. package/src/bin/utils/constants.js +1 -1
  99. package/src/bin/utils/log4jsAppender.js +1 -1
  100. package/src/bin/utils/logPatcher.js +1 -1
  101. package/src/bin/utils/logReportingAPI.js +1 -1
  102. package/src/bin/utils/playwright-patcher.js +1 -1
  103. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  104. package/src/bin/utils/sharedUtils.js +1 -1
  105. package/src/bin/v2/TestInfo.js +1 -1
  106. package/src/bin/v2/browserstackCLI.js +1 -1
  107. package/src/bin/v2/cliUtils.js +1 -1
  108. package/src/bin/v2/customTagManager.js +1 -1
  109. package/src/bin/v2/eventDispatcher.js +1 -1
  110. package/src/bin/v2/framework/automationFramework.js +1 -1
  111. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  112. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  113. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  114. package/src/bin/v2/framework/jestTestFramework.js +1 -0
  115. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  116. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  117. package/src/bin/v2/framework/testFramework.js +1 -1
  118. package/src/bin/v2/grpcClient.js +1 -1
  119. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  120. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  121. package/src/bin/v2/instances/trackedContext.js +1 -1
  122. package/src/bin/v2/instances/trackedInstance.js +1 -1
  123. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  124. package/src/bin/v2/modules/baseModule.js +1 -1
  125. package/src/bin/v2/modules/observabilityModule.js +1 -1
  126. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  127. package/src/bin/v2/modules/testhubModule.js +1 -1
  128. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  129. package/src/bin/v2/state/hookState.js +1 -1
  130. package/src/bin/v2/state/testFrameworkState.js +1 -1
  131. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  132. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  133. package/src/bin/v2/utils/jest-utils.js +1 -0
  134. package/src/bin/vanilla-js/command.js +1 -1
  135. package/src/browserStackSdk.js +1 -1
  136. package/src/helpers/BrowserStackSetup.js +1 -1
  137. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  138. package/src/helpers/accessibility-automation/constants.js +1 -1
  139. package/src/helpers/accessibility-automation/helper.js +1 -1
  140. package/src/helpers/accessibility-automation/scripts.js +1 -1
  141. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  142. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  143. package/src/helpers/ats/constants.js +1 -1
  144. package/src/helpers/ats/helper.js +1 -1
  145. package/src/helpers/capsMapping.js +1 -1
  146. package/src/helpers/central-scanner/constants.js +1 -1
  147. package/src/helpers/central-scanner/helpers.js +1 -1
  148. package/src/helpers/classLogger.js +1 -1
  149. package/src/helpers/globals.js +1 -1
  150. package/src/helpers/helper.js +1 -1
  151. package/src/helpers/logger.js +1 -1
  152. package/src/helpers/metadata.js +1 -1
  153. package/src/helpers/patchHelper.js +1 -1
  154. package/src/helpers/patchHelpers.js +1 -1
  155. package/src/helpers/percy/Percy.js +1 -1
  156. package/src/helpers/percy/PercyBinary.js +1 -1
  157. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  158. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  159. package/src/helpers/percy/PercySDK.js +1 -1
  160. package/src/helpers/percy/index.js +1 -1
  161. package/src/helpers/percy/utils.js +1 -1
  162. package/src/helpers/performance/constants.js +1 -1
  163. package/src/helpers/performance/performance-tester.js +1 -1
  164. package/src/helpers/playwright-helper.js +1 -1
  165. package/src/helpers/processHelper.js +1 -1
  166. package/src/helpers/request-spy.js +1 -1
  167. package/src/helpers/setKeepAlive.js +1 -1
  168. package/src/helpers/test-observability/constants.js +1 -1
  169. package/src/helpers/test-observability/error-handler.js +1 -1
  170. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  171. package/src/helpers/test-observability/sessionHandler.js +1 -1
  172. package/src/helpers/test-observability/utils.js +1 -1
  173. package/src/helpers/test-orchestration/constants.js +1 -1
  174. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  175. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  176. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  177. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  178. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  179. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  180. package/src/helpers/testhub/constants.js +1 -1
  181. package/src/helpers/testhub/testhubHandler.js +1 -1
  182. package/src/helpers/testhub/utils.js +1 -1
  183. package/src/helpers/timeoutPromise.js +1 -1
  184. package/src/helpers/utilities.js +1 -1
  185. package/src/helpers/w3cMapping.js +1 -1
  186. package/src/hubAllocationMethods.js +1 -1
  187. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x44a20c=a15_0x2316;(function(_0x4daab5,_0x41b43c){const _0x201ed8=a15_0x2316,_0x3bf1b3=_0x4daab5();while(!![]){try{const _0x46d188=-parseInt(_0x201ed8(0xe6))/0x1+parseInt(_0x201ed8(0xc5))/0x2+-parseInt(_0x201ed8(0xb9))/0x3*(-parseInt(_0x201ed8(0xf3))/0x4)+-parseInt(_0x201ed8(0xfc))/0x5*(parseInt(_0x201ed8(0xea))/0x6)+parseInt(_0x201ed8(0xcd))/0x7*(parseInt(_0x201ed8(0xbf))/0x8)+parseInt(_0x201ed8(0xbe))/0x9+-parseInt(_0x201ed8(0xcc))/0xa;if(_0x46d188===_0x41b43c)break;else _0x3bf1b3['push'](_0x3bf1b3['shift']());}catch(_0x44984b){_0x3bf1b3['push'](_0x3bf1b3['shift']());}}}(a15_0x487c,0x2aea2));function a15_0x2316(_0x1da38a,_0x2a44de){const _0x487c8e=a15_0x487c();return a15_0x2316=function(_0x23164e,_0x1a38ec){_0x23164e=_0x23164e-0xb2;let _0x6c0930=_0x487c8e[_0x23164e];return _0x6c0930;},a15_0x2316(_0x1da38a,_0x2a44de);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x44a20c(0xee)),{v4:uuidv4}=require(a15_0x44a20c(0xd2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x44a20c(0xe8)),{getCredentialsPath,getAuthHeader}=require(a15_0x44a20c(0xcb)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x487c(){const _0x480003=['356214VfInsJ','queued','bstackAccesskey','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','table','vMcEc','oUwmo','grids','https://','44ANvxkj','log','grid-name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','clusterName','LMTun','parse','5YwGcbg','tOdeS','ERROR','command','name','stack','\x0aFound\x20the\x20following\x20grids:\x0a','usage','uhGYU','/packages/cli/get-grids','options','exit','pAFoN','unauthorised','push','LisIU','DDesA','trZHS','81261WuiOEY','bstackUsername','yClDQ','boolean','rMEgx','2486358XhxwZS','32lgyMBq','help','nnyun','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','jXFeA','133124CfXlhB','running','username','forEach','epilogue','grid','../../utils/utilityMethods','2627460kXXIwj','353402hZNMsv','VRfVM','readFileSync','INFO','server-error','uuid','list','VkGfo','allGrids','Browserstack','status','iINYM','desc','description','ATGNr','body','GSIhO','statusCode','jRhOg','password','KjLpt','cluster-name','list-grids-called','stringify','SoXyf','344832OowkAK','TlBeE','../../config/constants','unknown-error'];a15_0x487c=function(){return _0x480003;};return a15_0x487c();}exports[a15_0x44a20c(0xff)]=a15_0x44a20c(0xf1),exports[a15_0x44a20c(0xd9)]=a15_0x44a20c(0xc3),exports['builder']=function(_0x415a11){const _0x563e10=a15_0x44a20c,_0x505314={};_0x505314[_0x563e10(0xb3)]=_0x563e10(0xed),_0x505314[_0x563e10(0xd4)]=_0x563e10(0xbc),_0x505314['oUwmo']=_0x563e10(0xc0);const _0x46b089=_0x505314,_0x367460={};_0x367460[_0x563e10(0xda)]=_0x46b089[_0x563e10(0xb3)],_0x367460['type']=_0x46b089[_0x563e10(0xd4)];const _0x456f16={};return _0x456f16['all-grids']=_0x367460,_0x415a11[_0x563e10(0x103)](HELP_HEADER_MESSAGE[_0x563e10(0xd3)][_0x563e10(0xca)])[_0x563e10(0xc9)](HELP_FOOTER_MESSAGE)[_0x563e10(0x106)](_0x456f16)[_0x563e10(0xc0)](_0x46b089[_0x563e10(0xf0)])['argv'];},exports['handler']=async function(_0x1fe5d9){const _0x41afdc=a15_0x44a20c,_0x544640={'tOdeS':function(_0x51229f){return _0x51229f();},'KjLpt':_0x41afdc(0xf7),'trZHS':function(_0x544cb6,_0x2262ec,_0x179cbd,_0x4851c5,_0x53aade,_0xe79894,_0x638fee){return _0x544cb6(_0x2262ec,_0x179cbd,_0x4851c5,_0x53aade,_0xe79894,_0x638fee);},'iINYM':_0x41afdc(0xe3),'uhGYU':_0x41afdc(0xc2),'cjKpI':'GET','nnyun':function(_0x3da4c7,_0x185186,_0xdfe11e){return _0x3da4c7(_0x185186,_0xdfe11e);},'TlBeE':function(_0x50cbba,_0x44181d){return _0x50cbba!==_0x44181d;},'ALbUF':function(_0x55f88d,_0x164144){return _0x55f88d===_0x164144;},'Tdqtl':_0x41afdc(0x102),'DDesA':'grid-id','EvmuI':_0x41afdc(0xf5),'rMEgx':_0x41afdc(0xd7),'jRhOg':_0x41afdc(0xc6),'SoXyf':'queued','vMcEc':_0x41afdc(0xe2),'ATGNr':function(_0x2a779c,_0x2e65f6){return _0x2a779c(_0x2e65f6);},'CqrAY':function(_0x2d6aab,_0x368105){return _0x2d6aab===_0x368105;},'jXFeA':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','LMTun':function(_0x4cb290,_0x3e5f07,_0x11dbb8,_0x2fdfd8,_0x54a5a1,_0x49b07e,_0x4cde89){return _0x4cb290(_0x3e5f07,_0x11dbb8,_0x2fdfd8,_0x54a5a1,_0x49b07e,_0x4cde89);},'yClDQ':_0x41afdc(0xb4),'IZdlH':function(_0x6f5dba,_0x5e8771,_0x37fa55,_0x794ec5,_0x5e3f67,_0x5de28f,_0x2a4aa1){return _0x6f5dba(_0x5e8771,_0x37fa55,_0x794ec5,_0x5e3f67,_0x5de28f,_0x2a4aa1);},'LisIU':_0x41afdc(0xd1),'GSIhO':function(_0x4b83ac,_0x12f8a6,_0x3dd56f,_0x12ff54,_0x393b9b,_0x47b025,_0x470494){return _0x4b83ac(_0x12f8a6,_0x3dd56f,_0x12ff54,_0x393b9b,_0x47b025,_0x470494);},'VRfVM':_0x41afdc(0xe9)};try{global_registry['requestId']=_0x544640['tOdeS'](uuidv4);!fs['existsSync'](_0x544640['tOdeS'](getCredentialsPath))&&(console[_0x41afdc(0xf8)](_0x544640[_0x41afdc(0xe1)]),await _0x544640['trZHS'](sendInstrumentationEvent,_0x1fe5d9,_0x544640[_0x41afdc(0xd8)],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0x104)],null,_0x1fe5d9),process[_0x41afdc(0xb2)](0x1));const _0x3855e7=JSON['parse'](fs[_0x41afdc(0xcf)](_0x544640[_0x41afdc(0xfd)](getCredentialsPath)));let _0x362516='https://'+AG_API_URL+_0x41afdc(0x105);_0x1fe5d9[_0x41afdc(0xd5)]&&(_0x362516=_0x41afdc(0xf2)+AG_API_URL+'/packages/cli/get-all-grids');const _0x405be5={'method':_0x544640['cjKpI'],'headers':_0x544640[_0x41afdc(0xc1)](getAuthHeader,_0x3855e7['Browserstack'][_0x41afdc(0xc7)],_0x3855e7['Browserstack'][_0x41afdc(0xe0)]),'throwHttpErrors':![]};global_registry[_0x41afdc(0xba)]=_0x3855e7[_0x41afdc(0xd6)][_0x41afdc(0xc7)],global_registry[_0x41afdc(0xec)]=_0x3855e7['Browserstack'][_0x41afdc(0xe0)],_0x544640[_0x41afdc(0xb8)](sendInstrumentationEvent,_0x1fe5d9,_0x544640['iINYM'],messageTypes[_0x41afdc(0xd0)],null,null,_0x1fe5d9);const _0x19af61=await _0x544640[_0x41afdc(0xc1)](got,_0x362516,_0x405be5);if(_0x544640[_0x41afdc(0xe7)](_0x19af61,null)&&_0x544640[_0x41afdc(0xe7)](_0x19af61,undefined)&&_0x544640['ALbUF'](_0x19af61[_0x41afdc(0xde)],0xc8)){const _0x3ae8c3=JSON[_0x41afdc(0xfb)](_0x19af61[_0x41afdc(0xdc)]);console[_0x41afdc(0xf4)](_0x544640['Tdqtl']);const _0x39c7d8=[];_0x39c7d8[_0x41afdc(0xb5)]([_0x544640[_0x41afdc(0xb7)],_0x544640['EvmuI'],_0x544640[_0x41afdc(0xbd)],_0x544640[_0x41afdc(0xdf)],_0x544640[_0x41afdc(0xe5)],_0x544640[_0x41afdc(0xef)]]),_0x3ae8c3[_0x41afdc(0xc8)](_0x24dc79=>{const _0x5bdf05=_0x41afdc;_0x39c7d8[_0x5bdf05(0xb5)]([_0x24dc79['id'],_0x24dc79[_0x5bdf05(0x100)],_0x24dc79[_0x5bdf05(0xd7)],_0x24dc79[_0x5bdf05(0xc6)],_0x24dc79[_0x5bdf05(0xeb)],_0x24dc79[_0x5bdf05(0xf9)]]);}),console['log'](_0x544640[_0x41afdc(0xdb)](table,_0x39c7d8)),process[_0x41afdc(0xb2)](0x0);}_0x544640['CqrAY'](_0x19af61['statusCode'],0x191)&&(console[_0x41afdc(0xf8)](_0x544640[_0x41afdc(0xc4)]),await _0x544640[_0x41afdc(0xfa)](sendInstrumentationEvent,_0x1fe5d9,_0x544640[_0x41afdc(0xd8)],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0xbb)],null,_0x1fe5d9),process['exit'](0x1)),console[_0x41afdc(0xf8)](_0x41afdc(0xf6)+JSON[_0x41afdc(0xe4)](_0x19af61)),await _0x544640['IZdlH'](sendInstrumentationEvent,_0x1fe5d9,_0x544640[_0x41afdc(0xd8)],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0xb6)],_0x19af61,_0x1fe5d9),process[_0x41afdc(0xb2)](0x1);}catch(_0x32be2e){console[_0x41afdc(0xf8)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x32be2e[_0x41afdc(0x101)]),await _0x544640[_0x41afdc(0xdd)](sendInstrumentationEvent,_0x1fe5d9,_0x544640['iINYM'],messageTypes[_0x41afdc(0xfe)],_0x544640[_0x41afdc(0xce)],_0x32be2e,_0x1fe5d9),process['exit'](0x1);}};
1
+ function a15_0x5553(){const _0xf81aba=['25fBtpPj','table','KaDvV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','description','builder','got','AGcsE','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','DyszJ','unauthorised','grid-name','log','2184bKJAoA','../../config/constants','vSZWM','ttNjB','INFO','existsSync','bstackUsername','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','236244dndCDu','type','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','2658890NDuaqP','PvJrT','1866753wlnATA','exit','status','PComQ','GET','handler','2496SlxAof','grid','hWpgg','https://','list','boolean','allGrids','GmOqw','3524XzaUUL','bqPbY','vkCVY','readFileSync','uuid','parse','queued','argv','push','ONpdv','all-grids','command','cluster-name','grids','GbMub','dNmRu','AVisf','TGzGm','options','699aQjRlW','name','statusCode','stack','oBquG','Browserstack','LYknA','hSIyB','../../utils/instrumentationUtils','\x0aFound\x20the\x20following\x20grids:\x0a','jxafa','ERROR','dhrrb','desc','error','password','173528JlNLps','EZPAT','265868WhVMJV','running','username','IghFt','requestId','help'];a15_0x5553=function(){return _0xf81aba;};return a15_0x5553();}const a15_0x13e38d=a15_0x5f06;(function(_0x56ecaf,_0x59dbe4){const _0xf2bfdd=a15_0x5f06,_0x172401=_0x56ecaf();while(!![]){try{const _0x388868=-parseInt(_0xf2bfdd(0x101))/0x1+parseInt(_0xf2bfdd(0x103))/0x2+-parseInt(_0xf2bfdd(0xf1))/0x3*(parseInt(_0xf2bfdd(0xde))/0x4)+parseInt(_0xf2bfdd(0x109))/0x5*(parseInt(_0xf2bfdd(0x11e))/0x6)+-parseInt(_0xf2bfdd(0x116))/0x7*(-parseInt(_0xf2bfdd(0xd6))/0x8)+-parseInt(_0xf2bfdd(0xd0))/0x9+parseInt(_0xf2bfdd(0xce))/0xa;if(_0x388868===_0x59dbe4)break;else _0x172401['push'](_0x172401['shift']());}catch(_0xd72630){_0x172401['push'](_0x172401['shift']());}}}(a15_0x5553,0x1a143));function a15_0x5f06(_0x1250cb,_0x5c3316){const _0x5553d5=a15_0x5553();return a15_0x5f06=function(_0x5f06e5,_0x5937f9){_0x5f06e5=_0x5f06e5-0xcd;let _0x3ef068=_0x5553d5[_0x5f06e5];return _0x3ef068;},a15_0x5f06(_0x1250cb,_0x5c3316);}const fs=require('fs'),got=require(a15_0x13e38d(0x10f)),{table}=require(a15_0x13e38d(0x10a)),{v4:uuidv4}=require(a15_0x13e38d(0xe2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x13e38d(0x117)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x13e38d(0xf9));exports[a15_0x13e38d(0xe9)]=a15_0x13e38d(0xeb),exports[a15_0x13e38d(0xfe)]=a15_0x13e38d(0xcd),exports[a15_0x13e38d(0x10e)]=function(_0x36cb21){const _0x52425e=a15_0x13e38d,_0x4168f9={};_0x4168f9[_0x52425e(0x10b)]=_0x52425e(0x111),_0x4168f9[_0x52425e(0xcf)]=_0x52425e(0xdb),_0x4168f9[_0x52425e(0xed)]=_0x52425e(0x108);const _0xb0bece=_0x4168f9,_0x2a88c4={};_0x2a88c4[_0x52425e(0x10d)]=_0xb0bece['KaDvV'],_0x2a88c4[_0x52425e(0x11f)]=_0xb0bece[_0x52425e(0xcf)];const _0x5331de={};return _0x5331de[_0x52425e(0xe8)]=_0x2a88c4,_0x36cb21['usage'](HELP_HEADER_MESSAGE[_0x52425e(0xda)][_0x52425e(0xd7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x52425e(0xf0)](_0x5331de)['help'](_0xb0bece['dNmRu'])[_0x52425e(0xe5)];},exports[a15_0x13e38d(0xd5)]=async function(_0x238ee6){const _0x5837c5=a15_0x13e38d,_0x1039ab={'jxafa':function(_0x126ab8){return _0x126ab8();},'DyszJ':_0x5837c5(0x11d),'IghFt':function(_0x1edefd,_0x2c2f1c,_0x44ad5a,_0x2c28bc,_0x5eb545,_0x53f3aa,_0x54e40f){return _0x1edefd(_0x2c2f1c,_0x44ad5a,_0x2c28bc,_0x5eb545,_0x53f3aa,_0x54e40f);},'vkCVY':'list-grids-called','LYknA':'init-not-called','ONpdv':function(_0x38e27e){return _0x38e27e();},'TGzGm':_0x5837c5(0xd4),'wUhaO':function(_0x139f9b,_0x10952e,_0x4b4fe9){return _0x139f9b(_0x10952e,_0x4b4fe9);},'EZPAT':function(_0x1bc6b2,_0xaf958a,_0x5a5018){return _0x1bc6b2(_0xaf958a,_0x5a5018);},'dhrrb':function(_0x258ce2,_0x387e09){return _0x258ce2!==_0x387e09;},'GmOqw':function(_0xddacf9,_0x25de0f){return _0xddacf9===_0x25de0f;},'PComQ':_0x5837c5(0xfa),'AVisf':'grid-id','ttNjB':_0x5837c5(0x114),'vSZWM':_0x5837c5(0xd2),'CVfky':_0x5837c5(0x104),'oBquG':_0x5837c5(0xe4),'stPqe':_0x5837c5(0xea),'hWpgg':function(_0xd950de,_0x274d0d){return _0xd950de(_0x274d0d);},'hSIyB':function(_0x360b1d,_0x1575b8){return _0x360b1d===_0x1575b8;},'GbMub':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','bqPbY':_0x5837c5(0x113),'gAYsO':function(_0x14201b,_0x23ee90,_0x2f836b,_0x52265b,_0x34efac,_0x1fb95a,_0x1df0d2){return _0x14201b(_0x23ee90,_0x2f836b,_0x52265b,_0x34efac,_0x1fb95a,_0x1df0d2);},'AGcsE':'server-error','szFjn':function(_0xce96b2,_0x577962,_0x21c3b9,_0x35f06b,_0x2e6b8a,_0x29b7d5,_0x5eeb83){return _0xce96b2(_0x577962,_0x21c3b9,_0x35f06b,_0x2e6b8a,_0x29b7d5,_0x5eeb83);},'jIFGS':'unknown-error'};try{global_registry[_0x5837c5(0x107)]=_0x1039ab[_0x5837c5(0xfb)](uuidv4);!fs[_0x5837c5(0x11b)](_0x1039ab[_0x5837c5(0xfb)](getCredentialsPath))&&(console['error'](_0x1039ab[_0x5837c5(0x112)]),await _0x1039ab[_0x5837c5(0x106)](sendInstrumentationEvent,_0x238ee6,_0x1039ab['vkCVY'],messageTypes[_0x5837c5(0xfc)],_0x1039ab[_0x5837c5(0xf7)],null,_0x238ee6),process[_0x5837c5(0xd1)](0x1));const _0x5512c2=JSON[_0x5837c5(0xe3)](fs[_0x5837c5(0xe1)](_0x1039ab[_0x5837c5(0xe7)](getCredentialsPath)));let _0x117f47=_0x5837c5(0xd9)+AG_API_URL+'/packages/cli/get-grids';_0x238ee6[_0x5837c5(0xdc)]&&(_0x117f47='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0xa238b9={'method':_0x1039ab[_0x5837c5(0xef)],'headers':_0x1039ab['wUhaO'](getAuthHeader,_0x5512c2[_0x5837c5(0xf6)][_0x5837c5(0x105)],_0x5512c2['Browserstack'][_0x5837c5(0x100)]),'throwHttpErrors':![]};global_registry[_0x5837c5(0x11c)]=_0x5512c2[_0x5837c5(0xf6)][_0x5837c5(0x105)],global_registry['bstackAccesskey']=_0x5512c2[_0x5837c5(0xf6)][_0x5837c5(0x100)],_0x1039ab[_0x5837c5(0x106)](sendInstrumentationEvent,_0x238ee6,_0x1039ab[_0x5837c5(0xe0)],messageTypes[_0x5837c5(0x11a)],null,null,_0x238ee6);const _0x3f7e3b=await _0x1039ab[_0x5837c5(0x102)](got,_0x117f47,_0xa238b9);if(_0x1039ab['dhrrb'](_0x3f7e3b,null)&&_0x1039ab[_0x5837c5(0xfd)](_0x3f7e3b,undefined)&&_0x1039ab[_0x5837c5(0xdd)](_0x3f7e3b[_0x5837c5(0xf3)],0xc8)){const _0x490106=JSON[_0x5837c5(0xe3)](_0x3f7e3b['body']);console[_0x5837c5(0x115)](_0x1039ab[_0x5837c5(0xd3)]);const _0x45f78a=[];_0x45f78a[_0x5837c5(0xe6)]([_0x1039ab[_0x5837c5(0xee)],_0x1039ab[_0x5837c5(0x119)],_0x1039ab[_0x5837c5(0x118)],_0x1039ab['CVfky'],_0x1039ab[_0x5837c5(0xf5)],_0x1039ab['stPqe']]),_0x490106['forEach'](_0x3e33ea=>{const _0x4cd468=_0x5837c5;_0x45f78a[_0x4cd468(0xe6)]([_0x3e33ea['id'],_0x3e33ea[_0x4cd468(0xf2)],_0x3e33ea[_0x4cd468(0xd2)],_0x3e33ea[_0x4cd468(0x104)],_0x3e33ea['queued'],_0x3e33ea['clusterName']]);}),console['log'](_0x1039ab[_0x5837c5(0xd8)](table,_0x45f78a)),process[_0x5837c5(0xd1)](0x0);}_0x1039ab[_0x5837c5(0xf8)](_0x3f7e3b[_0x5837c5(0xf3)],0x191)&&(console['error'](_0x1039ab[_0x5837c5(0xec)]),await _0x1039ab['IghFt'](sendInstrumentationEvent,_0x238ee6,_0x1039ab[_0x5837c5(0xe0)],messageTypes['ERROR'],_0x1039ab[_0x5837c5(0xdf)],null,_0x238ee6),process[_0x5837c5(0xd1)](0x1)),console['error'](_0x5837c5(0x10c)+JSON['stringify'](_0x3f7e3b)),await _0x1039ab['gAYsO'](sendInstrumentationEvent,_0x238ee6,_0x1039ab[_0x5837c5(0xe0)],messageTypes[_0x5837c5(0xfc)],_0x1039ab[_0x5837c5(0x110)],_0x3f7e3b,_0x238ee6),process[_0x5837c5(0xd1)](0x1);}catch(_0x35bacd){console[_0x5837c5(0xff)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x35bacd[_0x5837c5(0xf4)]),await _0x1039ab['szFjn'](sendInstrumentationEvent,_0x238ee6,_0x1039ab['vkCVY'],messageTypes[_0x5837c5(0xfc)],_0x1039ab['jIFGS'],_0x35bacd,_0x238ee6),process[_0x5837c5(0xd1)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x5ea5e8=a16_0x4317;function a16_0x26d2(){const _0x311cad=['DRSgu','builder','help','187032gHkhPL','desc','pre_check','9GBnAjQ','655431pOQmuU','demandCommand','44092xRQYYx','bBOAR','157963auJzMX','292RedTAB','35NyzmSK','16225BjvEqb','3153640lrZVyU','strict','1302952oScxxy','usage','pre-check','commandDir','handler','command','precheck_commands','recommendCommands','../config/constants'];a16_0x26d2=function(){return _0x311cad;};return a16_0x26d2();}(function(_0x384551,_0x2de060){const _0x3e7131=a16_0x4317,_0x24792b=_0x384551();while(!![]){try{const _0x269323=-parseInt(_0x3e7131(0x92))/0x1+parseInt(_0x3e7131(0x90))/0x2+parseInt(_0x3e7131(0x8e))/0x3+-parseInt(_0x3e7131(0x93))/0x4*(parseInt(_0x3e7131(0x95))/0x5)+parseInt(_0x3e7131(0xa4))/0x6*(parseInt(_0x3e7131(0x94))/0x7)+parseInt(_0x3e7131(0x98))/0x8*(-parseInt(_0x3e7131(0x8d))/0x9)+parseInt(_0x3e7131(0x96))/0xa;if(_0x269323===_0x2de060)break;else _0x24792b['push'](_0x24792b['shift']());}catch(_0x4bfa4b){_0x24792b['push'](_0x24792b['shift']());}}}(a16_0x26d2,0x259ae));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5ea5e8(0xa0));function a16_0x4317(_0x577825,_0x5c974b){const _0x26d290=a16_0x26d2();return a16_0x4317=function(_0x431712,_0x3e2f8c){_0x431712=_0x431712-0x8d;let _0x497e73=_0x26d290[_0x431712];return _0x497e73;},a16_0x4317(_0x577825,_0x5c974b);}exports[a16_0x5ea5e8(0x9d)]=a16_0x5ea5e8(0x9a),exports[a16_0x5ea5e8(0xa5)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x5ea5e8(0xa2)]=function(_0x3f84f3){const _0x2f5124=a16_0x5ea5e8,_0x4e4287={};_0x4e4287[_0x2f5124(0xa1)]=_0x2f5124(0x9e),_0x4e4287[_0x2f5124(0x91)]=_0x2f5124(0xa3);const _0xb7cdc1=_0x4e4287;return _0x3f84f3[_0x2f5124(0x99)](HELP_HEADER_MESSAGE[_0x2f5124(0xa6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2f5124(0x9b)](_0xb7cdc1[_0x2f5124(0xa1)])[_0x2f5124(0x8f)]()[_0x2f5124(0x9f)]()[_0x2f5124(0x97)]()['help'](_0xb7cdc1[_0x2f5124(0x91)]);},exports[a16_0x5ea5e8(0x9c)]=function(_0x51e089){};
1
+ const a16_0x3c4d58=a16_0x1703;(function(_0x3a61fc,_0x7cece5){const _0xd9ebdb=a16_0x1703,_0x39b195=_0x3a61fc();while(!![]){try{const _0x4e61e6=parseInt(_0xd9ebdb(0x136))/0x1*(-parseInt(_0xd9ebdb(0x130))/0x2)+-parseInt(_0xd9ebdb(0x135))/0x3*(parseInt(_0xd9ebdb(0x129))/0x4)+-parseInt(_0xd9ebdb(0x133))/0x5+parseInt(_0xd9ebdb(0x13d))/0x6+-parseInt(_0xd9ebdb(0x13e))/0x7+parseInt(_0xd9ebdb(0x13f))/0x8+parseInt(_0xd9ebdb(0x12e))/0x9;if(_0x4e61e6===_0x7cece5)break;else _0x39b195['push'](_0x39b195['shift']());}catch(_0x3ed1ba){_0x39b195['push'](_0x39b195['shift']());}}}(a16_0x481e,0x1a613));function a16_0x1703(_0x3f3079,_0x4e9f50){const _0x481ee6=a16_0x481e();return a16_0x1703=function(_0x1703a0,_0x22cd8e){_0x1703a0=_0x1703a0-0x127;let _0x4718e1=_0x481ee6[_0x1703a0];return _0x4718e1;},a16_0x1703(_0x3f3079,_0x4e9f50);}function a16_0x481e(){const _0x2b04a6=['desc','XhPVJ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','DUVBz','builder','commandDir','773430YeowPa','591836tQJHST','610504MSoxvg','strict','command','pre-check','497516yJtRNE','demandCommand','pre_check','../config/constants','help','3296358oXcetT','recommendCommands','2104PLGoqq','handler','epilogue','252070kBQyhv','usage','3AufNqo','194beFtNg'];a16_0x481e=function(){return _0x2b04a6;};return a16_0x481e();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x3c4d58(0x12c));exports[a16_0x3c4d58(0x127)]=a16_0x3c4d58(0x128),exports[a16_0x3c4d58(0x137)]=a16_0x3c4d58(0x139),exports[a16_0x3c4d58(0x13b)]=function(_0xf59062){const _0x51c9eb=a16_0x3c4d58,_0x89b2f5={};_0x89b2f5['DUVBz']='precheck_commands',_0x89b2f5[_0x51c9eb(0x138)]=_0x51c9eb(0x12d);const _0x30705d=_0x89b2f5;return _0xf59062[_0x51c9eb(0x134)](HELP_HEADER_MESSAGE[_0x51c9eb(0x12b)])[_0x51c9eb(0x132)](HELP_FOOTER_MESSAGE)[_0x51c9eb(0x13c)](_0x30705d[_0x51c9eb(0x13a)])[_0x51c9eb(0x12a)]()[_0x51c9eb(0x12f)]()[_0x51c9eb(0x140)]()['help'](_0x30705d[_0x51c9eb(0x138)]);},exports[a16_0x3c4d58(0x131)]=function(_0x29aecb){};
@@ -1 +1 @@
1
- const a17_0x3e02de=a17_0x2381;function a17_0x2381(_0x4d56af,_0xfa3ec3){const _0x338ef2=a17_0x338e();return a17_0x2381=function(_0x23813e,_0xf8af56){_0x23813e=_0x23813e-0x167;let _0x36bb29=_0x338ef2[_0x23813e];return _0x36bb29;},a17_0x2381(_0x4d56af,_0xfa3ec3);}(function(_0x2b68df,_0x151197){const _0x25761a=a17_0x2381,_0x2e60b0=_0x2b68df();while(!![]){try{const _0x3578a5=-parseInt(_0x25761a(0x21f))/0x1*(-parseInt(_0x25761a(0x21d))/0x2)+parseInt(_0x25761a(0x23a))/0x3*(parseInt(_0x25761a(0x228))/0x4)+parseInt(_0x25761a(0x177))/0x5*(parseInt(_0x25761a(0x1c5))/0x6)+parseInt(_0x25761a(0x21a))/0x7*(parseInt(_0x25761a(0x24a))/0x8)+parseInt(_0x25761a(0x1de))/0x9+-parseInt(_0x25761a(0x1dd))/0xa+-parseInt(_0x25761a(0x190))/0xb;if(_0x3578a5===_0x151197)break;else _0x2e60b0['push'](_0x2e60b0['shift']());}catch(_0x4f9e77){_0x2e60b0['push'](_0x2e60b0['shift']());}}}(a17_0x338e,0x22aaa));const fs=require('fs'),ws=require('ws'),got=require(a17_0x3e02de(0x218)),{v4:uuidv4}=require(a17_0x3e02de(0x19a)),ReconnectingWebSocket=require(a17_0x3e02de(0x1f1)),{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_0x3e02de(0x1d3)),{getCloudProviderObjectWithOutInit}=require(a17_0x3e02de(0x1b4)),webSocketUtils=require(a17_0x3e02de(0x254)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x3e02de(0x25e)]=a17_0x3e02de(0x229),exports[a17_0x3e02de(0x18b)]=a17_0x3e02de(0x1ec),exports[a17_0x3e02de(0x20c)]=function(_0x271be6){const _0x287a05=a17_0x3e02de,_0x5c5616={};_0x5c5616[_0x287a05(0x1db)]=_0x287a05(0x21e),_0x5c5616[_0x287a05(0x1cc)]=_0x287a05(0x1ce),_0x5c5616[_0x287a05(0x1c3)]=_0x287a05(0x192),_0x5c5616[_0x287a05(0x1a9)]=_0x287a05(0x18a),_0x5c5616[_0x287a05(0x18c)]=_0x287a05(0x23e),_0x5c5616[_0x287a05(0x207)]=_0x287a05(0x1bc);const _0x158a60=_0x5c5616,_0x55342b={};_0x55342b[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x1db)],_0x55342b[_0x287a05(0x184)]=_0x158a60['eusPr'];const _0x3c71c8={};_0x3c71c8[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x1c3)],_0x3c71c8[_0x287a05(0x184)]=_0x158a60[_0x287a05(0x1cc)];const _0x33c807={};_0x33c807[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x1a9)],_0x33c807[_0x287a05(0x184)]=_0x158a60[_0x287a05(0x1cc)];const _0x41e46b={};_0x41e46b[_0x287a05(0x191)]=_0x158a60[_0x287a05(0x18c)],_0x41e46b['type']=_0x158a60[_0x287a05(0x1cc)];const _0xc42868={};return _0xc42868['cluster-name']=_0x55342b,_0xc42868[_0x287a05(0x1f3)]=_0x3c71c8,_0xc42868[_0x287a05(0x1eb)]=_0x33c807,_0xc42868[_0x287a05(0x19f)]=_0x41e46b,_0x271be6[_0x287a05(0x1ff)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x287a05(0x1b0)](_0xc42868)[_0x287a05(0x1bc)](_0x158a60[_0x287a05(0x207)])[_0x287a05(0x25a)];};async function inputValidation(_0x552483,_0x2ec854){const _0x484fa4=a17_0x3e02de,_0xbd3c1={'OLvhJ':function(_0x412217,_0xb8d2a){return _0x412217+_0xb8d2a;},'ebVmK':_0x484fa4(0x239),'iNySX':_0x484fa4(0x22d),'yyUbs':function(_0xb5e552,_0x2c72c9){return _0xb5e552||_0x2c72c9;},'RmKIL':_0x484fa4(0x25d),'XZwhk':_0x484fa4(0x215),'GLShy':_0x484fa4(0x269),'XqSCQ':_0x484fa4(0x1e6),'qKUVg':_0x484fa4(0x20a),'xGshs':'cloud-provider','RIJfY':_0x484fa4(0x1eb),'HNeIS':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','TibXJ':_0x484fa4(0x1ce),'nmchv':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','QTOwe':_0x484fa4(0x18a),'GYZjB':_0x484fa4(0x23e),'tLCUc':_0x484fa4(0x1bc),'ggkzA':function(_0x404866,_0x5f5cda){return _0x404866===_0x5f5cda;},'cakMm':_0x484fa4(0x261),'BEYiY':_0x484fa4(0x1a7),'jcwPU':function(_0x18cc10,_0x39b9dd){return _0x18cc10!==_0x39b9dd;},'bbglh':_0x484fa4(0x1e0),'YpCoZ':function(_0x41a5a7,_0x1ab781){return _0x41a5a7===_0x1ab781;},'neogl':_0x484fa4(0x1af),'aJeIQ':_0x484fa4(0x1ea),'OZEBH':_0x484fa4(0x22a),'TkZIx':'PEwkl','BCcpH':function(_0x83d4d1,_0x1df3f3){return _0x83d4d1>_0x1df3f3;},'LrpRY':function(_0x18ba04,_0x2df2ba){return _0x18ba04!==_0x2df2ba;},'vGtrq':_0x484fa4(0x238),'ucmGg':function(_0x484d49,_0x36688a,_0x3dcd1c,_0x5f352c,_0x247883,_0x39ca7c,_0x568d05,_0x147797){return _0x484d49(_0x36688a,_0x3dcd1c,_0x5f352c,_0x247883,_0x39ca7c,_0x568d05,_0x147797);},'UOlie':_0x484fa4(0x213),'rIzqP':_0x484fa4(0x256),'osyIz':_0x484fa4(0x1c9),'ybjLm':_0x484fa4(0x202),'TyWzo':'cloud-provider-not-supported','WCaTT':function(_0x4f0646,_0x55b0b6){return _0x4f0646===_0x55b0b6;},'gRPYS':_0x484fa4(0x16c),'gCgzv':'YeBwj','gauTj':_0x484fa4(0x1be),'hXgfx':'GET','TTqAs':function(_0x4a3bb6,_0x524899,_0x65bb0e){return _0x4a3bb6(_0x524899,_0x65bb0e);},'HYcbG':function(_0x2850cb,_0xe2307a,_0x219adf,_0x238df9,_0x2e8098,_0x3a195a){return _0x2850cb(_0xe2307a,_0x219adf,_0x238df9,_0x2e8098,_0x3a195a);},'nUJpU':_0x484fa4(0x167),'HMNlS':_0x484fa4(0x19f),'ZmzqY':function(_0x377f45,_0x587b51){return _0x377f45!==_0x587b51;},'EdryL':_0x484fa4(0x210),'ZTkJs':'DekJs','grUhR':function(_0x19654b,_0x51e819){return _0x19654b(_0x51e819);},'NSIfJ':_0x484fa4(0x250),'EzsQB':_0x484fa4(0x1b5),'IsIpn':function(_0x35ae3e,_0x241c33,_0x163fed,_0x175052,_0x30e804,_0xb305b3,_0x24c04d,_0x3d8f3b){return _0x35ae3e(_0x241c33,_0x163fed,_0x175052,_0x30e804,_0xb305b3,_0x24c04d,_0x3d8f3b);},'fIPPL':_0x484fa4(0x231),'SdLxX':function(_0x44f6d4,_0x2f141f){return _0x44f6d4!==_0x2f141f;},'WFWuQ':_0x484fa4(0x247),'sZVSv':'nqCEg','MzMIx':_0x484fa4(0x1a2),'wibTH':'DzDPU','FObic':_0x484fa4(0x236),'frGVi':function(_0x15af6d,_0x41748e){return _0x15af6d===_0x41748e;},'pkmkw':'Xrjwi','sAzmG':_0x484fa4(0x199),'vHhsc':function(_0x4703e1,_0x41d7c9){return _0x4703e1===_0x41d7c9;},'VwvzY':_0x484fa4(0x19e),'rXqjP':_0x484fa4(0x24e),'dzLDD':function(_0x1bd356,_0x16dfbc,_0x217f9c,_0x31de68,_0x3fc715,_0x43b427,_0x157435,_0x5f4d87){return _0x1bd356(_0x16dfbc,_0x217f9c,_0x31de68,_0x3fc715,_0x43b427,_0x157435,_0x5f4d87);}};let _0x2aa9fb;try{if(_0xbd3c1[_0x484fa4(0x1f6)](_0xbd3c1[_0x484fa4(0x223)],_0xbd3c1[_0x484fa4(0x1a1)])){const {header:_0x3bd19e,response:_0x25fd48}=_0x5c1fbb,{status:_0x1c40df,data:_0x282b4c,error:_0x1df45a}=_0x25fd48;_0x29f2d6+=_0x3bd19e+'\x20#'+_0xbd3c1[_0x484fa4(0x17c)](_0x25b6d1,0x1)+'\x0a',_0x1bc785+=_0x484fa4(0x265)+(_0x1c40df?_0xbd3c1[_0x484fa4(0x240)]:_0xbd3c1[_0x484fa4(0x237)])+'\x0a',_0x13da9b+=_0x484fa4(0x1d5)+_0xbd3c1[_0x484fa4(0x266)](_0x282b4c,_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x1df45a&&(_0x3ed9df+=_0xbd3c1[_0x484fa4(0x168)],_0x94beb7+=_0x484fa4(0x1c7)+(_0x1df45a[_0x484fa4(0x21c)]||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x26d242+=_0x484fa4(0x1f2)+(_0x1df45a['code']||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x2765bf+=_0x484fa4(0x249)+(_0x1df45a['stack']||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a'),_0xdc27ce+='\x0a\x0a';}else{if(_0x552483[_0x484fa4(0x214)]||_0x552483[_0x484fa4(0x189)]||_0x552483[_0x484fa4(0x1eb)]){if(_0xbd3c1[_0x484fa4(0x1ae)](_0xbd3c1[_0x484fa4(0x217)],_0xbd3c1['bbglh']))_0x1e955c[_0x484fa4(0x197)]('['+_0x51347e+_0x484fa4(0x172)+_0x59d903[_0x484fa4(0x253)]+_0x484fa4(0x183)+_0x488ac6[_0x484fa4(0x198)]+'\x20error\x20:\x20'+_0x54a69b['error']),_0x15d5b2[_0x484fa4(0x20a)]&&_0x56863['error'](_0x484fa4(0x208)+_0x359885['error'][_0x484fa4(0x186)]);else{const _0xf28f9c=[];!_0x552483['clusterName']&&(_0xbd3c1[_0x484fa4(0x246)](_0xbd3c1[_0x484fa4(0x1e9)],_0xbd3c1[_0x484fa4(0x1dc)])?_0x212436+=_0x484fa4(0x1e1)+_0x55db09[_0x484fa4(0x214)]+_0x484fa4(0x23b):_0xf28f9c[_0x484fa4(0x262)](_0xbd3c1[_0x484fa4(0x1b6)]));;!_0x552483[_0x484fa4(0x189)]&&(_0xbd3c1[_0x484fa4(0x246)](_0xbd3c1[_0x484fa4(0x196)],_0xbd3c1[_0x484fa4(0x196)])?_0xf28f9c[_0x484fa4(0x262)](_0xbd3c1['xGshs']):_0x4e0477[_0x484fa4(0x262)](_0xbd3c1['GLShy']));;!_0x552483[_0x484fa4(0x1eb)]&&(_0xbd3c1['jcwPU'](_0xbd3c1[_0x484fa4(0x187)],_0xbd3c1[_0x484fa4(0x187)])?(_0x1d2859['error'](_0xbd3c1[_0x484fa4(0x1e8)]),_0x108ae2[_0x484fa4(0x201)](0x1)):_0xf28f9c[_0x484fa4(0x262)](_0xbd3c1[_0x484fa4(0x220)]));;_0xbd3c1[_0x484fa4(0x185)](_0xf28f9c[_0x484fa4(0x25b)],0x0)&&(_0xbd3c1[_0x484fa4(0x18f)](_0xbd3c1[_0x484fa4(0x1b9)],_0xbd3c1[_0x484fa4(0x1b9)])?_0x357fc6[_0x484fa4(0x201)](0x1):(_0x2aa9fb='Missing\x20required\x20arguments:\x20'+_0xf28f9c[_0x484fa4(0x1f8)](',\x20')+_0x484fa4(0x23d),await _0xbd3c1[_0x484fa4(0x19b)](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes[_0x484fa4(0x23c)],_0xbd3c1[_0x484fa4(0x241)],_0xbd3c1[_0x484fa4(0x1c8)],_0xbd3c1['qKUVg']),logger['error'](_0x2aa9fb),process['exit'](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x484fa4(0x25c)](_0x552483['cloudProvider'][_0x484fa4(0x1f5)]())){if(_0xbd3c1[_0x484fa4(0x18f)](_0xbd3c1[_0x484fa4(0x1b3)],_0xbd3c1[_0x484fa4(0x1b3)])){const _0xb875b4={};_0xb875b4[_0x484fa4(0x184)]=_0x34ba9b['LOG'],_0xb875b4[_0x484fa4(0x21c)]=_0x265b64,_0x4c76c2[_0x484fa4(0x17d)](_0x2f110b,_0xb875b4,_0xbd3c1['qKUVg'],!![]);}else _0x2aa9fb=_0xbd3c1[_0x484fa4(0x1d8)],await _0xbd3c1[_0x484fa4(0x19b)](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes['ERROR'],_0xbd3c1['UOlie'],_0xbd3c1['TyWzo'],_0xbd3c1[_0x484fa4(0x1f0)]),logger[_0x484fa4(0x20a)](_0x2aa9fb),!_0x552483[_0x484fa4(0x189)]&&(_0xbd3c1[_0x484fa4(0x252)](_0xbd3c1[_0x484fa4(0x17e)],_0xbd3c1[_0x484fa4(0x235)])?(_0x567686+=_0xbd3c1[_0x484fa4(0x168)],_0x2f5bd0+=_0x484fa4(0x1c7)+(_0x534079['message']||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x593bf3+=_0x484fa4(0x1f2)+(_0x9ac67c[_0x484fa4(0x188)]||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a',_0x333627+=_0x484fa4(0x249)+(_0x2e9cf2[_0x484fa4(0x186)]||_0xbd3c1[_0x484fa4(0x1ba)])+'\x0a'):(logger[_0x484fa4(0x197)](_0x484fa4(0x1f4)+DEFAULT_CLUSTER_DETAILS[_0x484fa4(0x1b8)]+'\x20'),_0x552483['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));}global_registry['clusterName']=_0x552483[_0x484fa4(0x214)],global_registry[_0x484fa4(0x189)]=_0x552483['cloudProvider'],global_registry[_0x484fa4(0x1aa)]=_0x552483[_0x484fa4(0x1eb)];}}else{if(_0x552483['gridProfile']){if(_0xbd3c1['jcwPU'](_0xbd3c1['gauTj'],_0xbd3c1['gauTj']))_0x444508['push'](_0xbd3c1['xGshs']);else{global_registry[_0x484fa4(0x193)]=_0x552483[_0x484fa4(0x193)],logger['debug']('grid\x20profile\x20flow\x20'+_0x552483[_0x484fa4(0x193)]);const _0x3a3226=_0x484fa4(0x180)+AG_API_URL+_0x484fa4(0x1ef),_0x591bab={};_0x591bab['method']=_0xbd3c1['hXgfx'],_0x591bab[_0x484fa4(0x170)]=global_registry[_0x484fa4(0x200)],_0x591bab[_0x484fa4(0x24b)]=![];const _0x5eafa8=_0x591bab,_0x312394=await _0xbd3c1['TTqAs'](got,_0x3a3226,_0x5eafa8),_0xaad640=await _0xbd3c1[_0x484fa4(0x20b)](responseValidation,_0x312394,_0xbd3c1[_0x484fa4(0x260)],_0xbd3c1[_0x484fa4(0x23f)],_0x552483,_0x2ec854);let _0x1bb07e={};if(_0xbd3c1[_0x484fa4(0x252)](_0xaad640,0xc8)){if(_0xbd3c1[_0x484fa4(0x1b2)](_0xbd3c1['EdryL'],_0xbd3c1['ZTkJs'])){const _0x5de70b=JSON[_0x484fa4(0x1d6)](_0x312394[_0x484fa4(0x16f)]),_0x48e489=_0x5de70b[_0x484fa4(0x1cd)](_0x34dc1a=>_0x34dc1a[_0x484fa4(0x1bb)]===_0x552483[_0x484fa4(0x193)])||null;if(_0xbd3c1[_0x484fa4(0x1fc)](isUndefined,_0x48e489))_0xbd3c1[_0x484fa4(0x246)](_0xbd3c1['NSIfJ'],_0xbd3c1[_0x484fa4(0x243)])?_0x1007cc['push'](_0xbd3c1[_0x484fa4(0x220)]):(_0x2aa9fb=_0x484fa4(0x232)+_0x552483['gridProfile']+_0x484fa4(0x257),await _0xbd3c1[_0x484fa4(0x26a)](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes['ERROR'],_0xbd3c1[_0x484fa4(0x241)],_0xbd3c1['fIPPL'],_0xbd3c1[_0x484fa4(0x1f0)]),logger['error'](_0x2aa9fb),process[_0x484fa4(0x201)](0x1));else{if(_0xbd3c1['SdLxX'](_0xbd3c1[_0x484fa4(0x21b)],_0xbd3c1['sZVSv']))_0x1bb07e=_0x48e489;else{const _0x43cb49={};_0x43cb49['description']=_0xbd3c1['HNeIS'],_0x43cb49[_0x484fa4(0x184)]=_0xbd3c1['TibXJ'];const _0x33ca13={};_0x33ca13['description']=_0xbd3c1['nmchv'],_0x33ca13[_0x484fa4(0x184)]=_0xbd3c1[_0x484fa4(0x1d9)];const _0x311a72={};_0x311a72['description']=_0xbd3c1[_0x484fa4(0x206)],_0x311a72[_0x484fa4(0x184)]=_0xbd3c1[_0x484fa4(0x1d9)];const _0x86f485={};_0x86f485[_0x484fa4(0x191)]=_0xbd3c1[_0x484fa4(0x216)],_0x86f485[_0x484fa4(0x184)]=_0xbd3c1[_0x484fa4(0x1d9)];const _0x81fcf0={};return _0x81fcf0['cluster-name']=_0x43cb49,_0x81fcf0[_0x484fa4(0x1f3)]=_0x33ca13,_0x81fcf0[_0x484fa4(0x1eb)]=_0x311a72,_0x81fcf0[_0x484fa4(0x19f)]=_0x86f485,_0x452b5a[_0x484fa4(0x1ff)](_0xd9c437[_0x484fa4(0x1a0)])[_0x484fa4(0x1c1)](_0x43a96b)[_0x484fa4(0x1b0)](_0x81fcf0)[_0x484fa4(0x1bc)](_0xbd3c1[_0x484fa4(0x221)])[_0x484fa4(0x25a)];}}}else _0x5cb0cb[_0x484fa4(0x197)]('Cluster\x20`'+_0x4e314e[_0x484fa4(0x214)]+_0x484fa4(0x1a4));}else _0xbd3c1[_0x484fa4(0x1d1)](_0xbd3c1[_0x484fa4(0x169)],_0xbd3c1[_0x484fa4(0x1ac)])?process[_0x484fa4(0x201)](0x1):(_0x53bc53[_0x484fa4(0x197)](_0x484fa4(0x1f4)+_0x21a661[_0x484fa4(0x1b8)]+'\x20'),_0x4f66f2[_0x484fa4(0x189)]=_0x31739e[_0x484fa4(0x1b8)]);const _0x2a2c07={};_0x2a2c07['type']=WS_EVENTS[_0x484fa4(0x264)],_0x2a2c07[_0x484fa4(0x21c)]=_0xbd3c1[_0x484fa4(0x174)],webSocketUtils[_0x484fa4(0x17d)](_0x2ec854,_0x2a2c07),global_registry[_0x484fa4(0x189)]=_0x1bb07e['cloudProvider'],global_registry[_0x484fa4(0x1aa)]=_0x1bb07e[_0x484fa4(0x1eb)],global_registry[_0x484fa4(0x214)]=_0x1bb07e[_0x484fa4(0x214)];}}else _0xbd3c1[_0x484fa4(0x227)](_0xbd3c1[_0x484fa4(0x24d)],_0xbd3c1['sAzmG'])?_0x381287['error'](_0x484fa4(0x208)+_0x35b448[_0x484fa4(0x20a)]['stack']):(logger['error'](_0xbd3c1[_0x484fa4(0x1e8)]),process['exit'](0x1));}}}catch(_0x486d81){_0xbd3c1['vHhsc'](_0xbd3c1[_0x484fa4(0x267)],_0xbd3c1['rXqjP'])?_0x5804bb=_0x4cfee3:(_0x2aa9fb=_0x484fa4(0x224)+_0x486d81+':\x20'+_0x486d81[_0x484fa4(0x186)],logger['error'](_0x2aa9fb),await _0xbd3c1['dzLDD'](reportToGalactusAndSendToEDS,_0x552483,_0x2ec854,_0x2aa9fb,messageTypes['ERROR'],_0xbd3c1[_0x484fa4(0x241)],_0xbd3c1[_0x484fa4(0x24c)],_0xbd3c1[_0x484fa4(0x1f0)]),process[_0x484fa4(0x201)](0x1));}}function printResponse(_0x34d5a8,_0xc34124){const _0x466a5c=a17_0x3e02de,_0x1193f9={};_0x1193f9[_0x466a5c(0x176)]='is\x20already\x20present',_0x1193f9[_0x466a5c(0x1c6)]=_0x466a5c(0x1b1),_0x1193f9[_0x466a5c(0x1bf)]=function(_0x545a74,_0x4d88ae){return _0x545a74!==_0x4d88ae;},_0x1193f9[_0x466a5c(0x1e4)]=_0x466a5c(0x226);const _0x33975b=_0x1193f9;logger[_0x466a5c(0x197)]('['+_0x34d5a8+']\x20status\x20:\x20'+_0xc34124[_0x466a5c(0x253)]+_0x466a5c(0x183)+_0xc34124[_0x466a5c(0x198)]+_0x466a5c(0x233)+_0xc34124[_0x466a5c(0x20a)]),_0xc34124[_0x466a5c(0x20a)]&&(_0x33975b[_0x466a5c(0x1bf)](_0x33975b[_0x466a5c(0x1e4)],_0x33975b['nwPuQ'])?_0x1de563+=_0x466a5c(0x1e1)+_0x5a9e1d[_0x466a5c(0x214)]+'\x20'+(_0xa5931?_0x33975b[_0x466a5c(0x176)]:_0x33975b[_0x466a5c(0x1c6)])+'\x0a\x0a':logger[_0x466a5c(0x20a)](_0x466a5c(0x208)+_0xc34124['error'][_0x466a5c(0x186)]));}async function generateReport(_0x3ae5fd,_0x4f8cf3){const _0x449404=a17_0x3e02de,_0x3e55b7={'qmpdv':function(_0x1a2428,_0x470290){return _0x1a2428+_0x470290;},'FLiBM':_0x449404(0x239),'lIkFk':'Failure','vVexC':function(_0x3de529,_0x2b702a){return _0x3de529||_0x2b702a;},'slPMu':_0x449404(0x25d),'SYNcP':_0x449404(0x215),'pZMac':_0x449404(0x1c4),'XuPUX':function(_0x259000,_0x3f7818){return _0x259000!=_0x3f7818;},'viJxK':'is\x20already\x20present','ZKkje':'will\x20be\x20created','MsCFN':function(_0x127f23){return _0x127f23();}};let _0x4907a6=_0x449404(0x1ab)+global_registry['cloudProvider']+_0x449404(0x230);return _0x3ae5fd[_0x449404(0x1f7)]((_0x48d307,_0x51e141)=>{const _0x13debc=_0x449404,{header:_0x228fc3,response:_0x50e561}=_0x48d307,{status:_0x2f429d,data:_0x316266,error:_0x554608}=_0x50e561;_0x4907a6+=_0x228fc3+'\x20#'+_0x3e55b7[_0x13debc(0x1fa)](_0x51e141,0x1)+'\x0a',_0x4907a6+=_0x13debc(0x265)+(_0x2f429d?_0x3e55b7[_0x13debc(0x1c0)]:_0x3e55b7[_0x13debc(0x22b)])+'\x0a',_0x4907a6+=_0x13debc(0x1d5)+_0x3e55b7[_0x13debc(0x203)](_0x316266,_0x3e55b7['slPMu'])+'\x0a',_0x554608&&(_0x4907a6+=_0x3e55b7[_0x13debc(0x20d)],_0x4907a6+=_0x13debc(0x1c7)+(_0x554608[_0x13debc(0x21c)]||_0x3e55b7[_0x13debc(0x1cb)])+'\x0a',_0x4907a6+=_0x13debc(0x1f2)+(_0x554608[_0x13debc(0x188)]||_0x3e55b7['slPMu'])+'\x0a',_0x4907a6+=_0x13debc(0x249)+(_0x554608[_0x13debc(0x186)]||_0x3e55b7[_0x13debc(0x1cb)])+'\x0a'),_0x4907a6+='\x0a\x0a';}),_0x4907a6+=_0x3e55b7['pZMac'],_0x3e55b7[_0x449404(0x1f9)](_0x4f8cf3,null)?_0x4907a6+='Cluster\x20'+global_registry[_0x449404(0x214)]+'\x20'+(_0x4f8cf3?_0x3e55b7[_0x449404(0x1a5)]:_0x3e55b7[_0x449404(0x22c)])+'\x0a\x0a':_0x4907a6+=_0x449404(0x1e1)+global_registry[_0x449404(0x214)]+_0x449404(0x23b),_0x4907a6+=_0x3e55b7['MsCFN'](getSystemMetaData),_0x4907a6;};exports['handler']=async function(_0x3d6d28){const _0x1a2d1f=a17_0x3e02de,_0x263b3f={'Jeduw':function(_0x5e0b3b){return _0x5e0b3b();},'vLgKM':function(_0xd4014b){return _0xd4014b();},'ILFID':_0x1a2d1f(0x1a6),'sySWw':function(_0x2591e5,_0x4377ff,_0x38cf8b,_0x83998c,_0x1a7aa0,_0x2938f1,_0x32d84b,_0x2e55dc){return _0x2591e5(_0x4377ff,_0x38cf8b,_0x83998c,_0x1a7aa0,_0x2938f1,_0x32d84b,_0x2e55dc);},'nsblp':_0x1a2d1f(0x213),'baclH':_0x1a2d1f(0x268),'XFEDr':_0x1a2d1f(0x20a),'FNTUH':function(_0x1414fe,_0x866e55,_0x1283ad,_0x58dcb0,_0x361ff5,_0x1fc7aa,_0x49e62e){return _0x1414fe(_0x866e55,_0x1283ad,_0x58dcb0,_0x361ff5,_0x1fc7aa,_0x49e62e);},'zIcwE':function(_0x392412){return _0x392412();},'dwhjF':'<UsernamePlaceholder>','aSWlf':_0x1a2d1f(0x181),'wdLPU':function(_0x50b511,_0x54a5c7,_0x3a3c4f){return _0x50b511(_0x54a5c7,_0x3a3c4f);},'BdYuY':function(_0x244604,_0xe9a945,_0x410091){return _0x244604(_0xe9a945,_0x410091);},'aDtJT':function(_0x6b5d1c,_0x1676e5,_0x41f2a1,_0x2fb5f2,_0x382279,_0x5c0b1e,_0x4515e7){return _0x6b5d1c(_0x1676e5,_0x41f2a1,_0x2fb5f2,_0x382279,_0x5c0b1e,_0x4515e7);},'ntXxv':'dummy-grid','axBkK':'toolInstalledResp','IQIAO':_0x1a2d1f(0x19d),'gjJuA':function(_0x2ae546,_0x282756,_0x55859d){return _0x2ae546(_0x282756,_0x55859d);},'UMlmV':_0x1a2d1f(0x222),'xjDAQ':function(_0x1f7d76,_0x22fca4,_0x579bb9){return _0x1f7d76(_0x22fca4,_0x579bb9);},'CJULG':'isTrialGridAccessible','sGSQQ':function(_0x8eee7d,_0xdbdec6){return _0x8eee7d(_0xdbdec6);},'csdFK':_0x1a2d1f(0x1d0),'svpQR':_0x1a2d1f(0x1ee),'kQmqs':_0x1a2d1f(0x1d4),'IjmuW':_0x1a2d1f(0x22f),'ZtyeM':_0x1a2d1f(0x18e),'zMRZW':_0x1a2d1f(0x212),'mWasZ':function(_0x2a721a,_0x45715c){return _0x2a721a+_0x45715c;},'IasWl':_0x1a2d1f(0x1c2),'EmoXR':function(_0x363c71,_0x12b4d1,_0x4c33c3,_0x5eeda5,_0xcfdd14,_0x420837,_0x3f386f){return _0x363c71(_0x12b4d1,_0x4c33c3,_0x5eeda5,_0xcfdd14,_0x420837,_0x3f386f);},'AUZBr':_0x1a2d1f(0x1e2)};let _0x69cf25,_0x5ac80d;try{global_registry[_0x1a2d1f(0x173)]=_0x263b3f[_0x1a2d1f(0x178)](uuidv4);!fs[_0x1a2d1f(0x18d)](_0x263b3f[_0x1a2d1f(0x17f)](getCredentialsPath))&&(_0x5ac80d=_0x263b3f['ILFID'],logger[_0x1a2d1f(0x20a)](_0x5ac80d),await _0x263b3f[_0x1a2d1f(0x1cf)](reportToGalactusAndSendToEDS,_0x3d6d28,_0x69cf25,_0x5ac80d,messageTypes[_0x1a2d1f(0x23c)],_0x263b3f['nsblp'],_0x263b3f['baclH'],_0x263b3f['XFEDr']),process['exit'](0x1));_0x263b3f[_0x1a2d1f(0x209)](sendInstrumentationEvent,_0x3d6d28,_0x263b3f[_0x1a2d1f(0x1e3)],messageTypes[_0x1a2d1f(0x22e)],null,null,_0x3d6d28);const _0x4b3733=JSON['parse'](fs['readFileSync'](_0x263b3f['zIcwE'](getCredentialsPath)));global_registry[_0x1a2d1f(0x16b)]=_0x4b3733[_0x1a2d1f(0x248)][_0x1a2d1f(0x195)],global_registry['bstackAccesskey']=_0x4b3733[_0x1a2d1f(0x248)][_0x1a2d1f(0x179)];const _0x434427=WS_ENDPOINT[_0x1a2d1f(0x1a8)](_0x263b3f[_0x1a2d1f(0x17a)],_0x4b3733[_0x1a2d1f(0x248)][_0x1a2d1f(0x195)])[_0x1a2d1f(0x1a8)](_0x263b3f[_0x1a2d1f(0x1fe)],_0x4b3733['Browserstack']['password']),_0x356104={};_0x356104[_0x1a2d1f(0x245)]=ws,_0x356104[_0x1a2d1f(0x16e)]=0x36ee80,_0x69cf25=new ReconnectingWebSocket(_0x434427,[],_0x356104),global_registry[_0x1a2d1f(0x200)]=_0x263b3f[_0x1a2d1f(0x1ca)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x263b3f['BdYuY'](inputValidation,_0x3d6d28,_0x69cf25),logger['info'](_0x1a2d1f(0x1e5)+global_registry['cloudProvider']+_0x1a2d1f(0x1df)+global_registry[_0x1a2d1f(0x1aa)]);let _0x53de70=await _0x263b3f['aDtJT'](getCloudProviderObjectWithOutInit,global_registry[_0x1a2d1f(0x189)],global_registry[_0x1a2d1f(0x214)],_0x263b3f[_0x1a2d1f(0x263)],_0x69cf25,webSocketUtils,_0x3d6d28);const _0x5e03e4=await _0x53de70[_0x1a2d1f(0x258)]();_0x263b3f[_0x1a2d1f(0x1ca)](printResponse,_0x263b3f[_0x1a2d1f(0x242)],_0x5e03e4),_0x53de70=await _0x53de70['init']();let _0x11e368=![];try{_0x11e368=await _0x53de70[_0x1a2d1f(0x1bd)]();}catch(_0x23d0d0){const _0x450fd7=_0x263b3f['IQIAO']['split']('|');let _0xca2d0b=0x0;while(!![]){switch(_0x450fd7[_0xca2d0b++]){case'0':logger['error'](_0x5ac80d);continue;case'1':_0x5ac80d=_0x1a2d1f(0x1fb)+global_registry[_0x1a2d1f(0x214)]+_0x1a2d1f(0x25f)+global_registry[_0x1a2d1f(0x1aa)]+_0x1a2d1f(0x24f)+_0x23d0d0;continue;case'2':_0x5ac80d+='\x0a'+JSON[_0x1a2d1f(0x234)](_0x23d0d0['stack']);continue;case'3':await _0x263b3f['sySWw'](reportToGalactusAndSendToEDS,_0x3d6d28,_0x69cf25,_0x5ac80d,messageTypes[_0x1a2d1f(0x23c)],_0x263b3f[_0x1a2d1f(0x1e3)],_0x1a2d1f(0x244)+global_registry['cloudProvider'],_0x263b3f[_0x1a2d1f(0x1d2)]);continue;case'4':_0x11e368=null;continue;}break;}}_0x11e368&&logger[_0x1a2d1f(0x197)](_0x1a2d1f(0x16d)+global_registry[_0x1a2d1f(0x214)]+_0x1a2d1f(0x1a4));const _0x48c7ca=await _0x53de70[_0x1a2d1f(0x259)]();_0x263b3f[_0x1a2d1f(0x205)](printResponse,_0x263b3f[_0x1a2d1f(0x16a)],_0x48c7ca);const _0x4b5f3f=await _0x263b3f['zIcwE'](curlRequest);_0x263b3f[_0x1a2d1f(0x1e7)](printResponse,_0x263b3f['CJULG'],_0x4b5f3f);const _0x1f7b9c=await _0x263b3f[_0x1a2d1f(0x1fd)](isTlsSupported,_0x263b3f[_0x1a2d1f(0x1b7)]);_0x263b3f[_0x1a2d1f(0x1ca)](printResponse,_0x263b3f[_0x1a2d1f(0x1d7)],_0x1f7b9c);const _0x3b9655={};_0x3b9655['header']=_0x263b3f[_0x1a2d1f(0x20e)],_0x3b9655[_0x1a2d1f(0x204)]=_0x5e03e4;const _0x57570b={};_0x57570b[_0x1a2d1f(0x19c)]=_0x263b3f['IjmuW'],_0x57570b[_0x1a2d1f(0x204)]=_0x48c7ca;const _0x2478e8={};_0x2478e8[_0x1a2d1f(0x19c)]=_0x263b3f[_0x1a2d1f(0x182)],_0x2478e8[_0x1a2d1f(0x204)]=_0x4b5f3f;const _0x4ab0c5={};_0x4ab0c5['header']=_0x263b3f[_0x1a2d1f(0x211)],_0x4ab0c5[_0x1a2d1f(0x204)]=_0x1f7b9c;const _0x8f5b90=[_0x3b9655,_0x57570b,_0x2478e8,_0x4ab0c5],_0x3c99c6=await _0x263b3f[_0x1a2d1f(0x1a3)](generateReport,_0x8f5b90,_0x11e368),_0x2d4ca3=new Date(),_0x265f18=_0x2d4ca3[_0x1a2d1f(0x175)]()+'_'+_0x263b3f['mWasZ'](_0x2d4ca3[_0x1a2d1f(0x171)](),0x1)+'_'+_0x2d4ca3[_0x1a2d1f(0x219)]()+'_'+_0x2d4ca3['getUTCHours']()+'_'+_0x2d4ca3[_0x1a2d1f(0x1da)](),_0xb2c401=_0x1a2d1f(0x194)+_0x265f18+_0x1a2d1f(0x255);fs['writeFileSync'](_0xb2c401,_0x3c99c6,_0x263b3f['IasWl']),logger[_0x1a2d1f(0x197)](_0x1a2d1f(0x17b)+_0xb2c401),process['exit'](0x0);}catch(_0xf31e34){let _0x413ae=_0x1a2d1f(0x1ad)+_0xf31e34+'\x20';logger[_0x1a2d1f(0x20a)](_0x413ae),_0x413ae+='\x0a'+JSON[_0x1a2d1f(0x234)](_0xf31e34['stack']),logger[_0x1a2d1f(0x20f)](_0x1a2d1f(0x251)+_0xf31e34[_0x1a2d1f(0x186)]);if(_0x69cf25){const _0x128612={};_0x128612[_0x1a2d1f(0x184)]=WS_EVENTS[_0x1a2d1f(0x264)],_0x128612['message']=_0x413ae,webSocketUtils[_0x1a2d1f(0x17d)](_0x69cf25,_0x128612,_0x263b3f[_0x1a2d1f(0x1d2)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x5e27fb={};_0x5e27fb[_0x1a2d1f(0x20a)]=_0x413ae,await _0x263b3f[_0x1a2d1f(0x1ed)](sendInstrumentationEvent,_0x3d6d28,_0x263b3f[_0x1a2d1f(0x1e3)],messageTypes[_0x1a2d1f(0x23c)],_0x263b3f[_0x1a2d1f(0x225)],_0x5e27fb,_0x3d6d28),process[_0x1a2d1f(0x201)](0x1);}};function a17_0x338e(){const _0x3aa0f5=['BdYuY','`\x20already\x20exists','viJxK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','MikuR','replace','bdhUz','clusterRegion','===\x20Precheck\x20Report\x20-\x20','wibTH','Failed\x20in\x20pre-check!\x20Error:\x20','jcwPU','AFMLU','options','will\x20be\x20created','ZmzqY','osyIz','../../cloudproviders/utils','supAD','GLShy','csdFK','CLOUD_PROVIDER','vGtrq','RmKIL','name','help','isClusterPresent','hmKzH','UfjEU','FLiBM','epilogue','utf-8','Ozrbs','Cluster\x20details\x0a-----------------------\x0a','1321746BmHgXM','URFph','\x20\x20Message:\x20','rIzqP','MDGnL','wdLPU','slPMu','eusPr','find','string','sySWw','TLSv1_2_client_method','SdLxX','XFEDr','../../config/constants','Tool\x20Installed','Message:\x20','parse','svpQR','ybjLm','TibXJ','getUTCMinutes','hrKen','aJeIQ','2399540zZAJIo','1057968SJCvzL','\x20region\x20-\x20','ITNCw','Cluster\x20','pre-check-failed','nsblp','nwPuQ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','xjDAQ','XqSCQ','neogl','BJsHV','region','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','EmoXR','isTls1_2_SUPPORTED','/packages/cli/get-all-grid-profiles','qKUVg','reconnecting-websocket','\x20\x20Code:\x20','cloud-provider','Setting\x20cloud\x20provider\x20as\x20','toLowerCase','ggkzA','forEach','join','XuPUX','qmpdv','unable\x20to\x20verify\x20if\x20cluster\x20`','grUhR','sGSQQ','aSWlf','usage','authHeader','exit','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','vVexC','response','gjJuA','QTOwe','iZTGA','error\x20stack\x20:\x20','FNTUH','error','HYcbG','builder','SYNcP','kQmqs','debug','BXnKF','zMRZW','SSL\x20Configured','pre-check-grid-called','clusterName','Error\x20Details:\x0a','GYZjB','bbglh','got','getUTCDate','7QZejsv','WFWuQ','message','2FMTEZJ','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','165101njhlmd','RIJfY','tLCUc','accessResp','cakMm','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','AUZBr','bZUaD','frGVi','228PbZkVb','grid','qGDeq','lIkFk','ZKkje','Failure','INFO','User\x20Access','\x20===\x0a\x0a','pre-check-grid-profile-empty','Invalid\x20input.\x20grid\x20profiles:\x20','\x20error\x20:\x20','stringify','gCgzv','Grid\x20profile\x20fetched\x20for\x20pre-check','iNySX','OHdkS','Success','9003DcAzsA','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','ERROR','.\x20Please\x20provide\x20all\x20required\x20arguments.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','HMNlS','ebVmK','UOlie','axBkK','EzsQB','cluster-check-failed-','WebSocket','YpCoZ','kVArf','Browserstack','\x20\x20Stack:\x20','40448FgLwDq','throwHttpErrors','TyWzo','pkmkw','JEOcP','`\x20,error\x20:\x20','SYBkx','stack\x20trace\x20','WCaTT','status','../../utils/webSocketUtils','.txt','pre-check-cluster-args-not-passed','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','isCliToolInstalled','checkAccess','argv','length','includes','N/A','command','`\x20is\x20present\x20in\x20region\x20`','nUJpU','vnMMf','push','ntXxv','LOG','Status:\x20','yyUbs','VwvzY','credential-not-found','cluster-name','IsIpn','pre-check','XZwhk','MzMIx','UMlmV','bstackUsername','akWum','Cluster\x20`','connectionTimeout','body','headers','getUTCMonth',']\x20status\x20:\x20','requestId','FObic','getUTCFullYear','uBMBy','5gfQSXm','Jeduw','password','dwhjF','Report\x20saved\x20in\x20','OLvhJ','sendEventToBackend','gRPYS','vLgKM','https://','<PasswordPlaceholder>','ZtyeM','\x20data\x20:\x20','type','BCcpH','stack','TkZIx','code','cloudProvider','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','desc','Rjttc','existsSync','Whitelisted\x20browserstack','LrpRY','3268199ixFsXj','description','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','gridProfile','log/report_','username','OZEBH','info','data','pIdVp','uuid','ucmGg','header','1|4|0|2|3','kxPLB','grid-profile','pre_check','BEYiY','atZBN'];a17_0x338e=function(){return _0x3aa0f5;};return a17_0x338e();}
1
+ function a17_0x2f66(_0x68c8bc,_0x2e0024){const _0x33ce5f=a17_0x33ce();return a17_0x2f66=function(_0x2f66da,_0x4d3a7a){_0x2f66da=_0x2f66da-0x18d;let _0x1da5a4=_0x33ce5f[_0x2f66da];return _0x1da5a4;},a17_0x2f66(_0x68c8bc,_0x2e0024);}function a17_0x33ce(){const _0x42dfaa=['OinXM','bSRtv','xYsuS','name','.\x20Please\x20provide\x20all\x20required\x20arguments.','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','region','agpUz','OqFnS','WOzYc','stack\x20trace\x20','WXTqC','log/report_','https://','vKemF','fFXUY','zZnwy','Whitelisted\x20browserstack','../../utils/instrumentationUtils','type','Error\x20Details:\x0a','../../config/logger','username','exit','cloud-provider-not-supported','TEdXa','XSVIf','handler','TWAtw','Sottd','replace','pre-check-grid-called','BBJJz','wTarR','cluster-check-failed-','cloud-provider','qvgNK','uoqqg','rdGxD','cluster-name','error\x20stack\x20:\x20','clusterName','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','YVUkT','yehtP','stringify','body','ZTbhf','requestId','OWLjp','uabNZ','pLNVh','header','response','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','<UsernamePlaceholder>','getUTCMonth','info','throwHttpErrors','mhFgf','IlyyE','pre_check','WJPmg','getUTCFullYear','eMLNQ','8943660pJfSKP','data','QklnW','ZKSmZ','Tool\x20Installed','hFuQq','vWLbd','lDtFJ','`\x20is\x20present\x20in\x20region\x20`','NJtJX','gridProfile','suwez','CLOUD_PROVIDER','method','clusterRegion','HJseP','NcUXD','pFQLX','lpyzI','3582837lXIRBL','ZsVvX','init','.txt','PotqK','===\x20Precheck\x20Report\x20-\x20','jJHQB','toolInstalledResp','dHZKv','oBfGh','fjbdD','kgUSt','string','QRpyT','ZGKHH','../../utils/webSocketUtils','nxtdI','OEDeY','GET','existsSync','command','parse','accessResp','push','options','DMoVV','isClusterPresent','PJajj','Failure','Grid\x20profile\x20fetched\x20for\x20pre-check','credential-not-found','`\x20already\x20exists','Invalid\x20input.\x20grid\x20profiles:\x20','message','Browserstack','connectionTimeout','cEdFL','length','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','stack','VhdLe','Setting\x20cloud\x20provider\x20as\x20','\x20error\x20:\x20','TLSv1_2_client_method','2756932yLMIKV','split','../../utils/utilityMethods','2890324MkHUzz','eLlPD','qzrZw','oCeJq','KNuSB','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','grid','Status:\x20','Message:\x20','reconnecting-websocket','lsOtF','\x20\x20Stack:\x20','readFileSync','Missing\x20required\x20arguments:\x20','kDLzr','ZmmBb','bNOUv','yLQtj','`\x20,error\x20:\x20','delay','desc','isTls1_2_SUPPORTED','AUQot','VGhMM','forEach','wZyMS','tsTLe','pre-check-cluster-args-not-passed','Cluster\x20','vKsEx','find','bstackAccesskey','code','pre-check','AfoNu','VRGtP','zZxtg','usage','description','\x20data\x20:\x20','grid\x20profile\x20flow\x20','HXdiO','LPdFV','oPkls','iQcjo','WaFng','0|4|3|1|2','hisgN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','getUTCHours','is\x20already\x20present','help','1451787FWnYNI','epilogue','AQglj','GSlQf','debug','1308066BTyHNl','pEjQW','nXPZE','pre-check-failed','NNuSC','argft','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','XLAat','Tbrdo','cHhFv','aLBWh','pkzrQ','QNeYo','\x20\x20Message:\x20','grid-profile','TEaAD','mIGZd','Erxjx','hMWGF','7zJYwLW','password','nBLlh','../../cloudproviders/utils','DFPKF','HKnmG','CBhaH','wewkd','tNtYA','FRNlx','Kermw','will\x20be\x20created','LOG',']\x20status\x20:\x20','bOkBc','uAKqu','aozKg','qAamm','LXxYS','\x20\x20Code:\x20','bstackUsername','Izcct','sendEventToBackend','UOzGk','argv','qlwas','Success','checkAccess','isTrialGridAccessible','tKWWd','authHeader','getUTCMinutes','\x20region\x20-\x20','Report\x20saved\x20in\x20','13127800yBvZLw','uGIWR','ERROR','N/A','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','DqMKn','got','cloudProvider','VsdSH','WebSocket','JJAhO','isCliToolInstalled','wiMog','edNlf','INFO','Failed\x20in\x20pre-check!\x20Error:\x20','builder','Cluster\x20`','GONfs','sRwGr','includes'];a17_0x33ce=function(){return _0x42dfaa;};return a17_0x33ce();}const a17_0x29a230=a17_0x2f66;(function(_0x55d49d,_0x41b10a){const _0x52548a=a17_0x2f66,_0x16b64b=_0x55d49d();while(!![]){try{const _0x10f50e=parseInt(_0x52548a(0x291))/0x1+-parseInt(_0x52548a(0x259))/0x2+parseInt(_0x52548a(0x22d))/0x3+-parseInt(_0x52548a(0x25c))/0x4+parseInt(_0x52548a(0x21a))/0x5+parseInt(_0x52548a(0x18f))/0x6*(parseInt(_0x52548a(0x1a2))/0x7)+-parseInt(_0x52548a(0x1c4))/0x8;if(_0x10f50e===_0x41b10a)break;else _0x16b64b['push'](_0x16b64b['shift']());}catch(_0x3a6bf5){_0x16b64b['push'](_0x16b64b['shift']());}}}(a17_0x33ce,0xde5c3));const fs=require('fs'),ws=require('ws'),got=require(a17_0x29a230(0x1ca)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x29a230(0x265)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x29a230(0x25b)),{logger}=require(a17_0x29a230(0x1ee)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x29a230(0x1a5)),webSocketUtils=require(a17_0x29a230(0x23c)),{sendInstrumentationEvent}=require(a17_0x29a230(0x1eb));exports[a17_0x29a230(0x241)]=a17_0x29a230(0x262),exports[a17_0x29a230(0x270)]=a17_0x29a230(0x261),exports[a17_0x29a230(0x1d4)]=function(_0x3bc60e){const _0x5b68ce=a17_0x29a230,_0xec0622={};_0xec0622[_0x5b68ce(0x20c)]=_0x5b68ce(0x195),_0xec0622[_0x5b68ce(0x199)]=_0x5b68ce(0x239),_0xec0622[_0x5b68ce(0x1d0)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0xec0622[_0x5b68ce(0x1f3)]=_0x5b68ce(0x253),_0xec0622['AHpvO']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0xec0622[_0x5b68ce(0x193)]=_0x5b68ce(0x290);const _0x11c09e=_0xec0622,_0x23920a={};_0x23920a[_0x5b68ce(0x282)]=_0x11c09e[_0x5b68ce(0x20c)],_0x23920a[_0x5b68ce(0x1ec)]=_0x11c09e[_0x5b68ce(0x199)];const _0x5a822b={};_0x5a822b[_0x5b68ce(0x282)]=_0x11c09e[_0x5b68ce(0x1d0)],_0x5a822b[_0x5b68ce(0x1ec)]=_0x11c09e['aLBWh'];const _0x123649={};_0x123649[_0x5b68ce(0x282)]=_0x11c09e[_0x5b68ce(0x1f3)],_0x123649[_0x5b68ce(0x1ec)]=_0x11c09e['aLBWh'];const _0xaa85e4={};_0xaa85e4[_0x5b68ce(0x282)]=_0x11c09e['AHpvO'],_0xaa85e4[_0x5b68ce(0x1ec)]=_0x11c09e[_0x5b68ce(0x199)];const _0x14f29d={};return _0x14f29d[_0x5b68ce(0x200)]=_0x23920a,_0x14f29d['cloud-provider']=_0x5a822b,_0x14f29d['region']=_0x123649,_0x14f29d[_0x5b68ce(0x19d)]=_0xaa85e4,_0x3bc60e[_0x5b68ce(0x281)](HELP_HEADER_MESSAGE[_0x5b68ce(0x216)])[_0x5b68ce(0x292)](HELP_FOOTER_MESSAGE)[_0x5b68ce(0x245)](_0x14f29d)[_0x5b68ce(0x290)](_0x11c09e[_0x5b68ce(0x193)])[_0x5b68ce(0x1ba)];};async function inputValidation(_0x48a872,_0x36c542){const _0x5bf44c=a17_0x29a230,_0x7eebab={'oBfGh':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','dHZKv':'string','VhdLe':_0x5bf44c(0x203),'iQcjo':_0x5bf44c(0x253),'BBJJz':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','kyYjw':_0x5bf44c(0x290),'KgBLC':'Error\x20Details:\x0a','Sottd':_0x5bf44c(0x1c7),'aCqpK':_0x5bf44c(0x28f),'YVUkT':_0x5bf44c(0x1ad),'QNeYo':_0x5bf44c(0x200),'oPkls':'error','ZTbhf':_0x5bf44c(0x1df),'edNlf':_0x5bf44c(0x1fc),'uabNZ':_0x5bf44c(0x1c8),'fjbdD':function(_0x481460,_0x15e8d2){return _0x481460!==_0x15e8d2;},'XLAat':'WOdIz','OqFnS':_0x5bf44c(0x229),'abfgW':'etnca','qXJkw':_0x5bf44c(0x22a),'VGhMM':function(_0xbcf3e,_0x41680c){return _0xbcf3e===_0x41680c;},'DqMKn':_0x5bf44c(0x198),'Izcct':_0x5bf44c(0x279),'AQglj':_0x5bf44c(0x217),'Kermw':_0x5bf44c(0x191),'suwez':'wsFdp','LnaZa':_0x5bf44c(0x1ff),'VRGtP':function(_0x514017,_0x3bc453){return _0x514017>_0x3bc453;},'lDtFJ':function(_0x238ced,_0x50e06d){return _0x238ced!==_0x50e06d;},'qatJd':'pbrNr','QklnW':function(_0x5f480a,_0x19649d,_0x433163,_0x1d10fe,_0x5f0cee,_0x52dbbf,_0x145f01,_0x27d967){return _0x5f480a(_0x19649d,_0x433163,_0x1d10fe,_0x5f0cee,_0x52dbbf,_0x145f01,_0x27d967);},'lsOtF':_0x5bf44c(0x1f8),'GSlQf':_0x5bf44c(0x277),'VsdSH':_0x5bf44c(0x246),'qvgNK':_0x5bf44c(0x1a4),'bOkBc':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','bNOUv':_0x5bf44c(0x1f1),'OinXM':function(_0x568db5,_0x1de972){return _0x568db5===_0x1de972;},'vcLmT':_0x5bf44c(0x20a),'cEdFL':_0x5bf44c(0x1fe),'oCeJq':function(_0x5a071c,_0x106150){return _0x5a071c!==_0x106150;},'eLlPD':_0x5bf44c(0x1e7),'vIRLV':_0x5bf44c(0x23f),'bSRtv':function(_0xebb6a9,_0x2199a3,_0x26776c){return _0xebb6a9(_0x2199a3,_0x26776c);},'ieSfw':function(_0x677022,_0x454584,_0x451b36,_0xbcda2c,_0x530572,_0x57e094){return _0x677022(_0x454584,_0x451b36,_0xbcda2c,_0x530572,_0x57e094);},'fFXUY':_0x5bf44c(0x27d),'wZyMS':_0x5bf44c(0x19d),'Erxjx':'iAnFM','UOzGk':function(_0x16a101,_0x176564){return _0x16a101(_0x176564);},'pEjQW':function(_0x5de0e0,_0x54ba8d){return _0x5de0e0===_0x54ba8d;},'wTarR':_0x5bf44c(0x1d7),'hMWGF':_0x5bf44c(0x1b3),'HqHce':'pre-check-grid-profile-empty','AjnVQ':'ItzUV','ZmmBb':_0x5bf44c(0x26d),'jJHQB':_0x5bf44c(0x22b),'ZsVvX':_0x5bf44c(0x24a),'aozKg':_0x5bf44c(0x1aa),'uAKqu':_0x5bf44c(0x19f),'kDLzr':_0x5bf44c(0x1a8),'FRNlx':_0x5bf44c(0x238),'AUQot':function(_0x4dce31,_0x4d3473,_0x56850e,_0x25b0ed,_0x3fc906,_0x2e4c29,_0xd5020f,_0x3dfe96){return _0x4dce31(_0x4d3473,_0x56850e,_0x25b0ed,_0x3fc906,_0x2e4c29,_0xd5020f,_0x3dfe96);}};let _0x34d680;try{if(_0x7eebab['fjbdD'](_0x7eebab[_0x5bf44c(0x196)],_0x7eebab[_0x5bf44c(0x1e1)])){if(_0x48a872[_0x5bf44c(0x202)]||_0x48a872[_0x5bf44c(0x1cb)]||_0x48a872[_0x5bf44c(0x1df)]){if(_0x7eebab['fjbdD'](_0x7eebab['abfgW'],_0x7eebab['qXJkw'])){const _0x50796a=[];!_0x48a872[_0x5bf44c(0x202)]&&(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x1c9)],_0x7eebab[_0x5bf44c(0x1b7)])?(_0x496767[_0x5bf44c(0x212)]('['+_0x77aa9d+_0x5bf44c(0x1af)+_0x47c38a['status']+'\x20data\x20:\x20'+_0x3aa31b[_0x5bf44c(0x21b)]+_0x5bf44c(0x257)+_0x5da84e[_0x5bf44c(0x28d)]),_0x532fb2[_0x5bf44c(0x28d)]&&_0x4d1e1b[_0x5bf44c(0x28d)](_0x5bf44c(0x201)+_0xcf545a[_0x5bf44c(0x28d)][_0x5bf44c(0x254)])):_0x50796a[_0x5bf44c(0x244)](_0x7eebab[_0x5bf44c(0x19b)]));;if(!_0x48a872['cloudProvider']){if(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x293)],_0x7eebab[_0x5bf44c(0x1ac)])){const _0x45abfe={};_0x45abfe['description']=_0x7eebab[_0x5bf44c(0x236)],_0x45abfe[_0x5bf44c(0x1ec)]=_0x7eebab['dHZKv'];const _0x2384a6={};_0x2384a6[_0x5bf44c(0x282)]=_0x7eebab[_0x5bf44c(0x255)],_0x2384a6[_0x5bf44c(0x1ec)]=_0x7eebab[_0x5bf44c(0x235)];const _0x1b9271={};_0x1b9271[_0x5bf44c(0x282)]=_0x7eebab[_0x5bf44c(0x288)],_0x1b9271['type']=_0x7eebab[_0x5bf44c(0x235)];const _0x3a3cb2={};_0x3a3cb2[_0x5bf44c(0x282)]=_0x7eebab[_0x5bf44c(0x1f9)],_0x3a3cb2[_0x5bf44c(0x1ec)]=_0x7eebab[_0x5bf44c(0x235)];const _0x4dcc8d={};return _0x4dcc8d[_0x5bf44c(0x200)]=_0x45abfe,_0x4dcc8d[_0x5bf44c(0x1fc)]=_0x2384a6,_0x4dcc8d[_0x5bf44c(0x1df)]=_0x1b9271,_0x4dcc8d[_0x5bf44c(0x19d)]=_0x3a3cb2,_0x4f94b6['usage'](_0x3c2789['pre_check'])[_0x5bf44c(0x292)](_0x5c3d01)['options'](_0x4dcc8d)[_0x5bf44c(0x290)](_0x7eebab['kyYjw'])[_0x5bf44c(0x1ba)];}else _0x50796a['push'](_0x7eebab[_0x5bf44c(0x1d1)]);};!_0x48a872[_0x5bf44c(0x1df)]&&(_0x7eebab[_0x5bf44c(0x237)](_0x7eebab[_0x5bf44c(0x225)],_0x7eebab['LnaZa'])?_0x50796a[_0x5bf44c(0x244)](_0x7eebab['ZTbhf']):_0x306dcf[_0x5bf44c(0x212)]('Cluster\x20`'+_0x3bdbba['clusterName']+'`\x20already\x20exists'));;_0x7eebab[_0x5bf44c(0x27f)](_0x50796a[_0x5bf44c(0x252)],0x0)&&(_0x7eebab[_0x5bf44c(0x221)](_0x7eebab['qatJd'],_0x7eebab['qatJd'])?_0x20dff5[_0x5bf44c(0x1f0)](0x1):(_0x34d680=_0x5bf44c(0x269)+_0x50796a['join'](',\x20')+_0x5bf44c(0x1dd),await _0x7eebab[_0x5bf44c(0x21c)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab[_0x5bf44c(0x18d)],_0x7eebab[_0x5bf44c(0x287)]),logger[_0x5bf44c(0x28d)](_0x34d680),process[_0x5bf44c(0x1f0)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x5bf44c(0x1d8)](_0x48a872[_0x5bf44c(0x1cb)]['toLowerCase']())&&(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x1cc)],_0x7eebab[_0x5bf44c(0x1fd)])?_0x1f2ec4[_0x5bf44c(0x28d)]('error\x20stack\x20:\x20'+_0x5626d6[_0x5bf44c(0x28d)]['stack']):(_0x34d680=_0x7eebab[_0x5bf44c(0x1b0)],await _0x7eebab[_0x5bf44c(0x21c)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab[_0x5bf44c(0x26c)],_0x7eebab['oPkls']),logger[_0x5bf44c(0x28d)](_0x34d680),!_0x48a872['cloudProvider']&&(_0x7eebab[_0x5bf44c(0x1d9)](_0x7eebab['vcLmT'],_0x7eebab[_0x5bf44c(0x251)])?(_0x54edca+=_0x7eebab['KgBLC'],_0x30b17d+=_0x5bf44c(0x19c)+(_0x32b83f['message']||_0x7eebab[_0x5bf44c(0x1f6)])+'\x0a',_0x144891+='\x20\x20Code:\x20'+(_0x4378c4[_0x5bf44c(0x27c)]||_0x7eebab[_0x5bf44c(0x1f6)])+'\x0a',_0x2e2d5f+=_0x5bf44c(0x267)+(_0x5bded1[_0x5bf44c(0x254)]||_0x7eebab[_0x5bf44c(0x1f6)])+'\x0a'):(logger[_0x5bf44c(0x212)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x48a872[_0x5bf44c(0x1cb)]=DEFAULT_CLUSTER_DETAILS[_0x5bf44c(0x226)])))),global_registry['clusterName']=_0x48a872[_0x5bf44c(0x202)],global_registry[_0x5bf44c(0x1cb)]=_0x48a872[_0x5bf44c(0x1cb)],global_registry[_0x5bf44c(0x228)]=_0x48a872['region'];}else _0x13f512[_0x5bf44c(0x212)](_0x5bf44c(0x256)+_0x2bb1ea[_0x5bf44c(0x226)]+'\x20'),_0x2dbcc3[_0x5bf44c(0x1cb)]=_0x115228[_0x5bf44c(0x226)];}else{if(_0x48a872['gridProfile']){if(_0x7eebab['oCeJq'](_0x7eebab[_0x5bf44c(0x25d)],_0x7eebab[_0x5bf44c(0x25d)]))_0x5c7f26+='Cluster\x20'+_0x29f470[_0x5bf44c(0x202)]+_0x5bf44c(0x1de);else{global_registry[_0x5bf44c(0x224)]=_0x48a872[_0x5bf44c(0x224)],logger[_0x5bf44c(0x18e)](_0x5bf44c(0x284)+_0x48a872[_0x5bf44c(0x224)]);const _0x4bce8b=_0x5bf44c(0x1e6)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x142af8={};_0x142af8[_0x5bf44c(0x227)]=_0x7eebab['vIRLV'],_0x142af8['headers']=global_registry[_0x5bf44c(0x1c0)],_0x142af8[_0x5bf44c(0x213)]=![];const _0x3fec8b=_0x142af8,_0x3b67ad=await _0x7eebab[_0x5bf44c(0x1da)](got,_0x4bce8b,_0x3fec8b),_0x76d67e=await _0x7eebab['ieSfw'](responseValidation,_0x3b67ad,_0x7eebab[_0x5bf44c(0x1e8)],_0x7eebab[_0x5bf44c(0x275)],_0x48a872,_0x36c542);let _0x2b459d={};if(_0x7eebab[_0x5bf44c(0x1d9)](_0x76d67e,0xc8)){if(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x1a0)],_0x7eebab[_0x5bf44c(0x1a0)])){const _0x5e844a=JSON[_0x5bf44c(0x242)](_0x3b67ad[_0x5bf44c(0x207)]),_0x168f17=_0x5e844a[_0x5bf44c(0x27a)](_0x186cce=>_0x186cce[_0x5bf44c(0x1dc)]===_0x48a872[_0x5bf44c(0x224)])||null;_0x7eebab[_0x5bf44c(0x1b9)](isUndefined,_0x168f17)?_0x7eebab[_0x5bf44c(0x190)](_0x7eebab[_0x5bf44c(0x1fa)],_0x7eebab[_0x5bf44c(0x1a1)])?_0x4219cb+=_0x5bf44c(0x278)+_0x349556[_0x5bf44c(0x202)]+'\x20'+(_0x48a1d6?_0x7eebab['aCqpK']:_0x7eebab[_0x5bf44c(0x204)])+'\x0a\x0a':(_0x34d680=_0x5bf44c(0x24d)+_0x48a872[_0x5bf44c(0x224)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x7eebab[_0x5bf44c(0x21c)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab['HqHce'],_0x7eebab[_0x5bf44c(0x287)]),logger[_0x5bf44c(0x28d)](_0x34d680),process[_0x5bf44c(0x1f0)](0x1)):_0x7eebab[_0x5bf44c(0x221)](_0x7eebab['AjnVQ'],_0x7eebab[_0x5bf44c(0x26b)])?_0x2b459d=_0x168f17:_0x4e4d10=_0x4844f2;}else _0x42e64d['push'](_0x7eebab[_0x5bf44c(0x19b)]);}else{if(_0x7eebab[_0x5bf44c(0x1d9)](_0x7eebab[_0x5bf44c(0x233)],_0x7eebab[_0x5bf44c(0x233)]))process['exit'](0x1);else{const _0x24f0ce={};_0x24f0ce[_0x5bf44c(0x1ec)]=_0x407b4f['LOG'],_0x24f0ce['message']=_0x18dc13,_0x3f5000[_0x5bf44c(0x1b8)](_0x5ce005,_0x24f0ce,_0x7eebab['oPkls'],!![]);}}const _0x5af3bb={};_0x5af3bb[_0x5bf44c(0x1ec)]=WS_EVENTS[_0x5bf44c(0x1ae)],_0x5af3bb[_0x5bf44c(0x24e)]=_0x7eebab[_0x5bf44c(0x22e)],webSocketUtils[_0x5bf44c(0x1b8)](_0x36c542,_0x5af3bb),global_registry['cloudProvider']=_0x2b459d[_0x5bf44c(0x1cb)],global_registry['clusterRegion']=_0x2b459d[_0x5bf44c(0x1df)],global_registry['clusterName']=_0x2b459d[_0x5bf44c(0x202)];}}else _0x7eebab[_0x5bf44c(0x25f)](_0x7eebab[_0x5bf44c(0x1b2)],_0x7eebab[_0x5bf44c(0x1b1)])?(logger[_0x5bf44c(0x28d)](_0x7eebab[_0x5bf44c(0x20b)]),process[_0x5bf44c(0x1f0)](0x1)):_0x59435d[_0x5bf44c(0x244)](_0x7eebab[_0x5bf44c(0x208)]);}}else _0x36ee34[_0x5bf44c(0x244)](_0x7eebab['edNlf']);}catch(_0x4d520b){_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x26a)],_0x7eebab[_0x5bf44c(0x1ab)])?(_0x3ce95e[_0x5bf44c(0x28d)](_0x7eebab[_0x5bf44c(0x20b)]),_0x1378a5[_0x5bf44c(0x1f0)](0x1)):(_0x34d680=_0x5bf44c(0x20f)+_0x4d520b+':\x20'+_0x4d520b[_0x5bf44c(0x254)],logger[_0x5bf44c(0x28d)](_0x34d680),await _0x7eebab[_0x5bf44c(0x272)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab[_0x5bf44c(0x26c)],_0x7eebab[_0x5bf44c(0x287)]),process['exit'](0x1));}}function printResponse(_0x49c816,_0x2ff2f4){const _0x50cfd6=a17_0x29a230,_0x233cff={};_0x233cff[_0x50cfd6(0x1a7)]=function(_0x12d096,_0x3f2859){return _0x12d096+_0x3f2859;},_0x233cff[_0x50cfd6(0x197)]=_0x50cfd6(0x1bc),_0x233cff['ZKSmZ']=_0x50cfd6(0x249),_0x233cff['DFPKF']=function(_0x5455fa,_0x14e1aa){return _0x5455fa||_0x14e1aa;},_0x233cff[_0x50cfd6(0x25e)]=_0x50cfd6(0x1c7),_0x233cff[_0x50cfd6(0x1ce)]=_0x50cfd6(0x1ed),_0x233cff[_0x50cfd6(0x280)]=function(_0x59702f,_0x461af8){return _0x59702f!==_0x461af8;},_0x233cff[_0x50cfd6(0x276)]=_0x50cfd6(0x215);const _0x55c8a3=_0x233cff;logger[_0x50cfd6(0x212)]('['+_0x49c816+_0x50cfd6(0x1af)+_0x2ff2f4['status']+_0x50cfd6(0x283)+_0x2ff2f4[_0x50cfd6(0x21b)]+_0x50cfd6(0x257)+_0x2ff2f4['error']);if(_0x2ff2f4[_0x50cfd6(0x28d)]){if(_0x55c8a3[_0x50cfd6(0x280)](_0x55c8a3[_0x50cfd6(0x276)],_0x55c8a3[_0x50cfd6(0x276)])){const {header:_0x1d7877,response:_0x1fc10a}=_0x1c25d0,{status:_0x12d8ff,data:_0x3f50a2,error:_0x5d1ca5}=_0x1fc10a;_0x23c8d0+=_0x1d7877+'\x20#'+_0x55c8a3[_0x50cfd6(0x1a7)](_0x344041,0x1)+'\x0a',_0x432e84+=_0x50cfd6(0x263)+(_0x12d8ff?_0x55c8a3[_0x50cfd6(0x197)]:_0x55c8a3[_0x50cfd6(0x21d)])+'\x0a',_0x2e8239+=_0x50cfd6(0x264)+_0x55c8a3[_0x50cfd6(0x1a6)](_0x3f50a2,_0x55c8a3[_0x50cfd6(0x25e)])+'\x0a',_0x5d1ca5&&(_0x27ecd7+=_0x55c8a3[_0x50cfd6(0x1ce)],_0x420f1c+='\x20\x20Message:\x20'+(_0x5d1ca5[_0x50cfd6(0x24e)]||_0x55c8a3[_0x50cfd6(0x25e)])+'\x0a',_0xd168b+='\x20\x20Code:\x20'+(_0x5d1ca5[_0x50cfd6(0x27c)]||_0x55c8a3['qzrZw'])+'\x0a',_0x49b703+=_0x50cfd6(0x267)+(_0x5d1ca5[_0x50cfd6(0x254)]||_0x55c8a3['qzrZw'])+'\x0a'),_0x38853d+='\x0a\x0a';}else logger['error'](_0x50cfd6(0x201)+_0x2ff2f4['error'][_0x50cfd6(0x254)]);}}async function generateReport(_0xcec4d7,_0x12eebf){const _0x19be35=a17_0x29a230,_0x136f2a={'hFuQq':function(_0x316247,_0x1287a1){return _0x316247+_0x1287a1;},'TWAtw':_0x19be35(0x1bc),'eMLNQ':_0x19be35(0x249),'OHRIS':function(_0x4ccc81,_0x497994){return _0x4ccc81||_0x497994;},'HXdiO':_0x19be35(0x1c7),'QRpyT':'Error\x20Details:\x0a','CRLym':'Cluster\x20details\x0a-----------------------\x0a','uGIWR':function(_0x160aba,_0xdfe1f4){return _0x160aba!=_0xdfe1f4;},'WaFng':_0x19be35(0x28f),'vWLbd':_0x19be35(0x1ad),'hisgN':function(_0x55da93){return _0x55da93();}};let _0x2d8fd6=_0x19be35(0x232)+global_registry[_0x19be35(0x1cb)]+'\x20===\x0a\x0a';return _0xcec4d7[_0x19be35(0x274)]((_0x186e1a,_0x39cf04)=>{const _0x1d9083=_0x19be35,{header:_0x48a511,response:_0x4d1dce}=_0x186e1a,{status:_0xe5e7b0,data:_0xd24633,error:_0xae60dd}=_0x4d1dce;_0x2d8fd6+=_0x48a511+'\x20#'+_0x136f2a[_0x1d9083(0x21f)](_0x39cf04,0x1)+'\x0a',_0x2d8fd6+=_0x1d9083(0x263)+(_0xe5e7b0?_0x136f2a[_0x1d9083(0x1f5)]:_0x136f2a[_0x1d9083(0x219)])+'\x0a',_0x2d8fd6+=_0x1d9083(0x264)+_0x136f2a['OHRIS'](_0xd24633,_0x136f2a[_0x1d9083(0x285)])+'\x0a',_0xae60dd&&(_0x2d8fd6+=_0x136f2a[_0x1d9083(0x23a)],_0x2d8fd6+=_0x1d9083(0x19c)+(_0xae60dd['message']||_0x136f2a[_0x1d9083(0x285)])+'\x0a',_0x2d8fd6+=_0x1d9083(0x1b5)+(_0xae60dd[_0x1d9083(0x27c)]||_0x136f2a[_0x1d9083(0x285)])+'\x0a',_0x2d8fd6+='\x20\x20Stack:\x20'+(_0xae60dd[_0x1d9083(0x254)]||_0x136f2a[_0x1d9083(0x285)])+'\x0a'),_0x2d8fd6+='\x0a\x0a';}),_0x2d8fd6+=_0x136f2a['CRLym'],_0x136f2a[_0x19be35(0x1c5)](_0x12eebf,null)?_0x2d8fd6+=_0x19be35(0x278)+global_registry['clusterName']+'\x20'+(_0x12eebf?_0x136f2a[_0x19be35(0x289)]:_0x136f2a[_0x19be35(0x220)])+'\x0a\x0a':_0x2d8fd6+=_0x19be35(0x278)+global_registry[_0x19be35(0x202)]+_0x19be35(0x1de),_0x2d8fd6+=_0x136f2a[_0x19be35(0x28b)](getSystemMetaData),_0x2d8fd6;};exports[a17_0x29a230(0x1f4)]=async function(_0xeaea1d){const _0x3c834=a17_0x29a230,_0x47a2c2={'KNuSB':function(_0x283239){return _0x283239();},'TEaAD':function(_0x398398){return _0x398398();},'Ajglk':_0x3c834(0x28c),'yehtP':function(_0x5109c4,_0x1cafd7,_0x41bd4b,_0x3878f0,_0x20eac8,_0x279c0f,_0x343a8e,_0x4aef2b){return _0x5109c4(_0x1cafd7,_0x41bd4b,_0x3878f0,_0x20eac8,_0x279c0f,_0x343a8e,_0x4aef2b);},'PotqK':_0x3c834(0x1f8),'zZnwy':_0x3c834(0x24b),'wewkd':'error','argft':function(_0x2b703a,_0x316652,_0x1c2fa0,_0x2690ae,_0x1c22d7,_0xb91666,_0x11c5b4){return _0x2b703a(_0x316652,_0x1c2fa0,_0x2690ae,_0x1c22d7,_0xb91666,_0x11c5b4);},'GONfs':_0x3c834(0x210),'lpyzI':'<PasswordPlaceholder>','agpUz':function(_0x1c307d,_0x55ceaf,_0x3816d1){return _0x1c307d(_0x55ceaf,_0x3816d1);},'OEDeY':function(_0x8c4dba,_0x3529b3,_0x37a420,_0x190739,_0x488dc7,_0x383ce1,_0x8d0b40){return _0x8c4dba(_0x3529b3,_0x37a420,_0x190739,_0x488dc7,_0x383ce1,_0x8d0b40);},'ZGKHH':'dummy-grid','ApoiO':_0x3c834(0x234),'pkzrQ':_0x3c834(0x28a),'JhCSD':function(_0x104f83,_0x13948b,_0x9f33ed,_0xa1ceea,_0x4e0f36,_0x50a4b2,_0x5bae12,_0xa9d460){return _0x104f83(_0x13948b,_0x9f33ed,_0xa1ceea,_0x4e0f36,_0x50a4b2,_0x5bae12,_0xa9d460);},'nxtdI':_0x3c834(0x243),'qlwas':function(_0x1565a1){return _0x1565a1();},'LXxYS':function(_0x257a78,_0xf00bb3,_0x4bb786){return _0x257a78(_0xf00bb3,_0x4bb786);},'AfoNu':_0x3c834(0x1be),'wQFWz':function(_0x193d9d,_0x3e4924){return _0x193d9d(_0x3e4924);},'tKWWd':_0x3c834(0x258),'WXTqC':_0x3c834(0x271),'LPdFV':_0x3c834(0x21e),'TEdXa':'User\x20Access','ZkwcC':_0x3c834(0x1ea),'PJajj':'SSL\x20Configured','WOzYc':function(_0x39eee4,_0x3b4133,_0x1d051a){return _0x39eee4(_0x3b4133,_0x1d051a);},'TSxZY':function(_0x12c71b,_0x3f66da){return _0x12c71b+_0x3f66da;},'NJtJX':'utf-8','mhFgf':function(_0x139d67,_0x2b1a41,_0x48f26b,_0x499ef2,_0x134bec,_0x47a765,_0x57c9a7){return _0x139d67(_0x2b1a41,_0x48f26b,_0x499ef2,_0x134bec,_0x47a765,_0x57c9a7);},'xYsuS':_0x3c834(0x192)};let _0x1424df,_0x3cf469;try{global_registry[_0x3c834(0x209)]=_0x47a2c2[_0x3c834(0x260)](uuidv4);!fs[_0x3c834(0x240)](_0x47a2c2[_0x3c834(0x19e)](getCredentialsPath))&&(_0x3cf469=_0x47a2c2['Ajglk'],logger[_0x3c834(0x28d)](_0x3cf469),await _0x47a2c2[_0x3c834(0x205)](reportToGalactusAndSendToEDS,_0xeaea1d,_0x1424df,_0x3cf469,messageTypes[_0x3c834(0x1c6)],_0x47a2c2[_0x3c834(0x231)],_0x47a2c2[_0x3c834(0x1e9)],_0x47a2c2[_0x3c834(0x1a9)]),process[_0x3c834(0x1f0)](0x1));_0x47a2c2[_0x3c834(0x194)](sendInstrumentationEvent,_0xeaea1d,_0x47a2c2[_0x3c834(0x231)],messageTypes[_0x3c834(0x1d2)],null,null,_0xeaea1d);const _0x40fd2b=JSON['parse'](fs[_0x3c834(0x268)](_0x47a2c2[_0x3c834(0x19e)](getCredentialsPath)));global_registry[_0x3c834(0x1b6)]=_0x40fd2b[_0x3c834(0x24f)][_0x3c834(0x1ef)],global_registry[_0x3c834(0x27b)]=_0x40fd2b[_0x3c834(0x24f)][_0x3c834(0x1a3)];const _0x35e834=WS_ENDPOINT[_0x3c834(0x1f7)](_0x47a2c2[_0x3c834(0x1d6)],_0x40fd2b[_0x3c834(0x24f)][_0x3c834(0x1ef)])[_0x3c834(0x1f7)](_0x47a2c2[_0x3c834(0x22c)],_0x40fd2b[_0x3c834(0x24f)]['password']),_0x2aa260={};_0x2aa260[_0x3c834(0x1cd)]=ws,_0x2aa260[_0x3c834(0x250)]=0x36ee80,_0x1424df=new ReconnectingWebSocket(_0x35e834,[],_0x2aa260),global_registry[_0x3c834(0x1c0)]=_0x47a2c2[_0x3c834(0x1e0)](getAuthHeader,global_registry[_0x3c834(0x1b6)],global_registry['bstackAccesskey']),await _0x47a2c2['agpUz'](inputValidation,_0xeaea1d,_0x1424df),logger[_0x3c834(0x212)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x3c834(0x1cb)]+_0x3c834(0x1c2)+global_registry['clusterRegion']);let _0x2105f5=await _0x47a2c2[_0x3c834(0x23e)](getCloudProviderObjectWithOutInit,global_registry[_0x3c834(0x1cb)],global_registry['clusterName'],_0x47a2c2[_0x3c834(0x23b)],_0x1424df,webSocketUtils,_0xeaea1d);const _0x5a91cd=await _0x2105f5[_0x3c834(0x1cf)]();_0x47a2c2[_0x3c834(0x1e0)](printResponse,_0x47a2c2['ApoiO'],_0x5a91cd),_0x2105f5=await _0x2105f5[_0x3c834(0x22f)]();let _0x4a6d6d=![];try{_0x4a6d6d=await _0x2105f5[_0x3c834(0x247)]();}catch(_0x426ac1){const _0x4b45df=_0x47a2c2[_0x3c834(0x19a)][_0x3c834(0x25a)]('|');let _0x9ca3d2=0x0;while(!![]){switch(_0x4b45df[_0x9ca3d2++]){case'0':_0x3cf469='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+_0x3c834(0x222)+global_registry[_0x3c834(0x228)]+_0x3c834(0x26e)+_0x426ac1;continue;case'1':_0x3cf469+='\x0a'+JSON[_0x3c834(0x206)](_0x426ac1[_0x3c834(0x254)]);continue;case'2':await _0x47a2c2['JhCSD'](reportToGalactusAndSendToEDS,_0xeaea1d,_0x1424df,_0x3cf469,messageTypes[_0x3c834(0x1c6)],_0x47a2c2['PotqK'],_0x3c834(0x1fb)+global_registry[_0x3c834(0x1cb)],_0x47a2c2[_0x3c834(0x1a9)]);continue;case'3':logger[_0x3c834(0x28d)](_0x3cf469);continue;case'4':_0x4a6d6d=null;continue;}break;}}_0x4a6d6d&&logger[_0x3c834(0x212)](_0x3c834(0x1d5)+global_registry['clusterName']+_0x3c834(0x24c));const _0x10ac2c=await _0x2105f5[_0x3c834(0x1bd)]();_0x47a2c2[_0x3c834(0x1e0)](printResponse,_0x47a2c2[_0x3c834(0x23d)],_0x10ac2c);const _0x5f0212=await _0x47a2c2[_0x3c834(0x1bb)](curlRequest);_0x47a2c2[_0x3c834(0x1b4)](printResponse,_0x47a2c2[_0x3c834(0x27e)],_0x5f0212);const _0x3e2c36=await _0x47a2c2['wQFWz'](isTlsSupported,_0x47a2c2[_0x3c834(0x1bf)]);_0x47a2c2[_0x3c834(0x1e0)](printResponse,_0x47a2c2[_0x3c834(0x1e4)],_0x3e2c36);const _0x5412ce={};_0x5412ce[_0x3c834(0x20d)]=_0x47a2c2[_0x3c834(0x286)],_0x5412ce[_0x3c834(0x20e)]=_0x5a91cd;const _0xb56bba={};_0xb56bba[_0x3c834(0x20d)]=_0x47a2c2[_0x3c834(0x1f2)],_0xb56bba['response']=_0x10ac2c;const _0x15465a={};_0x15465a[_0x3c834(0x20d)]=_0x47a2c2['ZkwcC'],_0x15465a['response']=_0x5f0212;const _0x49d94c={};_0x49d94c[_0x3c834(0x20d)]=_0x47a2c2[_0x3c834(0x248)],_0x49d94c[_0x3c834(0x20e)]=_0x3e2c36;const _0x5a2604=[_0x5412ce,_0xb56bba,_0x15465a,_0x49d94c],_0x4e3dad=await _0x47a2c2[_0x3c834(0x1e2)](generateReport,_0x5a2604,_0x4a6d6d),_0x50e6fc=new Date(),_0x916dfe=_0x50e6fc[_0x3c834(0x218)]()+'_'+_0x47a2c2['TSxZY'](_0x50e6fc[_0x3c834(0x211)](),0x1)+'_'+_0x50e6fc['getUTCDate']()+'_'+_0x50e6fc[_0x3c834(0x28e)]()+'_'+_0x50e6fc[_0x3c834(0x1c1)](),_0x525d82=_0x3c834(0x1e5)+_0x916dfe+_0x3c834(0x230);fs['writeFileSync'](_0x525d82,_0x4e3dad,_0x47a2c2[_0x3c834(0x223)]),logger[_0x3c834(0x212)](_0x3c834(0x1c3)+_0x525d82),process['exit'](0x0);}catch(_0xd36207){let _0x38ff4a=_0x3c834(0x1d3)+_0xd36207+'\x20';logger[_0x3c834(0x28d)](_0x38ff4a),_0x38ff4a+='\x0a'+JSON[_0x3c834(0x206)](_0xd36207[_0x3c834(0x254)]),logger[_0x3c834(0x18e)](_0x3c834(0x1e3)+_0xd36207[_0x3c834(0x254)]);if(_0x1424df){const _0x3939cf={};_0x3939cf[_0x3c834(0x1ec)]=WS_EVENTS[_0x3c834(0x1ae)],_0x3939cf['message']=_0x38ff4a,webSocketUtils[_0x3c834(0x1b8)](_0x1424df,_0x3939cf,_0x47a2c2[_0x3c834(0x1a9)],!![]);}await webSocketUtils[_0x3c834(0x26f)](0x7d0);const _0x134ecb={};_0x134ecb[_0x3c834(0x28d)]=_0x38ff4a,await _0x47a2c2[_0x3c834(0x214)](sendInstrumentationEvent,_0xeaea1d,_0x47a2c2[_0x3c834(0x231)],messageTypes[_0x3c834(0x1c6)],_0x47a2c2[_0x3c834(0x1db)],_0x134ecb,_0xeaea1d),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a18_0x49cdf8=a18_0x4034;function a18_0x3779(){const _0x1eef66=['recommendCommands','553692EMJwsj','handler','builder','start_commands','27ndMNeK','635668RcOBmr','epilogue','help','start','98965jMnGxA','strict','commandDir','315iWgqZA','command','usage','607864qxsmRk','18nnqhEW','1068HmFrWT','104062qMxtQW','cgDoY','10956RPjyFq','2AvhYjr','20IrlYZZ','demandCommand','chyce'];a18_0x3779=function(){return _0x1eef66;};return a18_0x3779();}(function(_0x258fec,_0x431451){const _0x528f5a=a18_0x4034,_0x3c0399=_0x258fec();while(!![]){try{const _0x1008b1=parseInt(_0x528f5a(0xd0))/0x1*(parseInt(_0x528f5a(0xdc))/0x2)+parseInt(_0x528f5a(0xe5))/0x3*(-parseInt(_0x528f5a(0xdb))/0x4)+-parseInt(_0x528f5a(0xd3))/0x5*(parseInt(_0x528f5a(0xd8))/0x6)+-parseInt(_0x528f5a(0xd9))/0x7+-parseInt(_0x528f5a(0xd6))/0x8*(-parseInt(_0x528f5a(0xd7))/0x9)+-parseInt(_0x528f5a(0xdd))/0xa*(parseInt(_0x528f5a(0xe6))/0xb)+parseInt(_0x528f5a(0xe1))/0xc;if(_0x1008b1===_0x431451)break;else _0x3c0399['push'](_0x3c0399['shift']());}catch(_0x5e1fbb){_0x3c0399['push'](_0x3c0399['shift']());}}}(a18_0x3779,0x1fecd));function a18_0x4034(_0x5f075e,_0x5ea556){const _0x377943=a18_0x3779();return a18_0x4034=function(_0x403421,_0x452fe8){_0x403421=_0x403421-0xcf;let _0x305f19=_0x377943[_0x403421];return _0x305f19;},a18_0x4034(_0x5f075e,_0x5ea556);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x49cdf8(0xd4)]='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x49cdf8(0xe3)]=function(_0x1ee20a){const _0x573928=a18_0x49cdf8,_0x2a5885={};_0x2a5885[_0x573928(0xdf)]=_0x573928(0xe4),_0x2a5885[_0x573928(0xda)]=_0x573928(0xe8);const _0x121e9c=_0x2a5885;return _0x1ee20a[_0x573928(0xd5)](HELP_HEADER_MESSAGE[_0x573928(0xcf)])[_0x573928(0xe7)](HELP_FOOTER_MESSAGE)[_0x573928(0xd2)](_0x121e9c[_0x573928(0xdf)])[_0x573928(0xde)]()[_0x573928(0xe0)]()[_0x573928(0xd1)]()[_0x573928(0xe8)](_0x121e9c[_0x573928(0xda)]);},exports[a18_0x49cdf8(0xe2)]=function(_0x335ca0){};
1
+ function a18_0x1798(_0x4a5612,_0x3f2f5b){const _0x5465d0=a18_0x5465();return a18_0x1798=function(_0x179894,_0x512ed1){_0x179894=_0x179894-0x137;let _0x400a9e=_0x5465d0[_0x179894];return _0x400a9e;},a18_0x1798(_0x4a5612,_0x3f2f5b);}function a18_0x5465(){const _0x27de54=['demandCommand','63620wGSEJQ','start','recommendCommands','desc','4dWuHYI','2691396TUIwvC','start_commands','5rcMGwr','1317080rwsDVd','236756YWUUtD','Injuq','help','2943668sVrDfF','epilogue','../config/constants','strict','Start\x20an\x20existing\x20Automation\x20grid.','525381ZEizLe','handler','300039eWmOsC','882GFviwo','usage','GPPQd'];a18_0x5465=function(){return _0x27de54;};return a18_0x5465();}const a18_0x2d01d3=a18_0x1798;(function(_0x27b473,_0x2e2c5d){const _0x2659ef=a18_0x1798,_0xc7abf5=_0x27b473();while(!![]){try{const _0x25e099=parseInt(_0x2659ef(0x13a))/0x1*(-parseInt(_0x2659ef(0x143))/0x2)+parseInt(_0x2659ef(0x138))/0x3+parseInt(_0x2659ef(0x148))/0x4*(parseInt(_0x2659ef(0x146))/0x5)+parseInt(_0x2659ef(0x144))/0x6+-parseInt(_0x2659ef(0x14b))/0x7+parseInt(_0x2659ef(0x147))/0x8+parseInt(_0x2659ef(0x13b))/0x9*(parseInt(_0x2659ef(0x13f))/0xa);if(_0x25e099===_0x2e2c5d)break;else _0xc7abf5['push'](_0xc7abf5['shift']());}catch(_0x3e244a){_0xc7abf5['push'](_0xc7abf5['shift']());}}}(a18_0x5465,0x6df57));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2d01d3(0x14d));exports['command']=a18_0x2d01d3(0x140),exports[a18_0x2d01d3(0x142)]=a18_0x2d01d3(0x137),exports['builder']=function(_0x2b5b3d){const _0x568de1=a18_0x2d01d3,_0x31d41e={};_0x31d41e[_0x568de1(0x13d)]=_0x568de1(0x145),_0x31d41e[_0x568de1(0x149)]=_0x568de1(0x14a);const _0x37b33b=_0x31d41e;return _0x2b5b3d[_0x568de1(0x13c)](HELP_HEADER_MESSAGE[_0x568de1(0x140)])[_0x568de1(0x14c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x37b33b['GPPQd'])[_0x568de1(0x13e)]()[_0x568de1(0x141)]()[_0x568de1(0x14e)]()[_0x568de1(0x14a)](_0x37b33b[_0x568de1(0x149)]);},exports[a18_0x2d01d3(0x139)]=function(_0x4ae80f){};
@@ -1 +1 @@
1
- const a19_0x91acf=a19_0x2d16;function a19_0x2d16(_0x2fa702,_0x22e247){const _0x14a95f=a19_0x14a9();return a19_0x2d16=function(_0x2d1666,_0x501840){_0x2d1666=_0x2d1666-0x6b;let _0x568e04=_0x14a95f[_0x2d1666];return _0x568e04;},a19_0x2d16(_0x2fa702,_0x22e247);}(function(_0x50d78e,_0x217f87){const _0x3968df=a19_0x2d16,_0x5c9ba3=_0x50d78e();while(!![]){try{const _0x512e68=-parseInt(_0x3968df(0xa5))/0x1+parseInt(_0x3968df(0x7f))/0x2*(-parseInt(_0x3968df(0xa4))/0x3)+parseInt(_0x3968df(0x6b))/0x4*(-parseInt(_0x3968df(0x7a))/0x5)+parseInt(_0x3968df(0x7e))/0x6*(-parseInt(_0x3968df(0xa9))/0x7)+parseInt(_0x3968df(0xb5))/0x8+parseInt(_0x3968df(0x76))/0x9+parseInt(_0x3968df(0xa8))/0xa;if(_0x512e68===_0x217f87)break;else _0x5c9ba3['push'](_0x5c9ba3['shift']());}catch(_0xed45dc){_0x5c9ba3['push'](_0x5c9ba3['shift']());}}}(a19_0x14a9,0x76843));function a19_0x14a9(){const _0x4aba35=['Grid\x20started','kXgjX','cloudProvider','ZhBon','start','eXbYB','command','bstackAccesskey','error','../../config/logger','Browserstack','connectionTimeout','enNOV','<UsernamePlaceholder>','ZBDmb','stringify','parse','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','info','reconnecting-websocket','nPriO','epilogue','3OMJcIK','489103ucegeh','body','clusterName','9826840HWlaqA','946743dEgCCH','desc','options','default','../../cloudproviders/utils','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid-id','readFileSync','XPzbR','unauthorised','bstackUsername','5990824SXoKfR','../../utils/createk8sClient','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','fKqfL','ERROR','gridId','wQomh','skip-tls-cert-verify','string','password','addListeners','WebSocket','20pKMmAw','type','NaMdS','description','exit','hxzKp','server-error','INFO','init-not-called','existsSync','PCCJq','3155355ujjcIj','RwalV','NuhKz','grid','277715KgAeRT','clusterRegion','replace','PHALY','12UJVWCb','1118746eAuLuF','argv','username','kNTfA','sRlHn','nTYRt','name','help','debug','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','uTyXy','usage','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','KonyZ','builder'];a19_0x14a9=function(){return _0x4aba35;};return a19_0x14a9();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x91acf(0xa1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x91acf(0x97)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x91acf(0xb6)),{getCloudProviderObject}=require(a19_0x91acf(0xad));exports[a19_0x91acf(0x94)]=a19_0x91acf(0x79),exports[a19_0x91acf(0xaa)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x91acf(0x8d)]=function(_0x178998){const _0x35076d=a19_0x91acf,_0x409260={};_0x409260['FBCQJ']=_0x35076d(0x9f),_0x409260['NuhKz']=_0x35076d(0xbd),_0x409260['kwrBk']='Skip\x20insecure\x20cert\x20verification.',_0x409260[_0x35076d(0x82)]='boolean',_0x409260[_0x35076d(0x7d)]=_0x35076d(0x86);const _0x40ca1d=_0x409260,_0x3ba793={};_0x3ba793['description']=_0x40ca1d['FBCQJ'],_0x3ba793[_0x35076d(0x6c)]=_0x40ca1d[_0x35076d(0x78)];const _0x539c63={};_0x539c63[_0x35076d(0x6e)]=_0x40ca1d['kwrBk'],_0x539c63[_0x35076d(0x6c)]=_0x40ca1d[_0x35076d(0x82)],_0x539c63[_0x35076d(0xac)]=![];const _0x244de3={};return _0x244de3[_0x35076d(0xb0)]=_0x3ba793,_0x244de3[_0x35076d(0xbc)]=_0x539c63,_0x178998[_0x35076d(0x8a)](HELP_HEADER_MESSAGE[_0x35076d(0x92)])[_0x35076d(0xa3)](HELP_FOOTER_MESSAGE)[_0x35076d(0xab)](_0x244de3)['help'](_0x40ca1d['PHALY'])[_0x35076d(0x80)];},exports['handler']=async function(_0x20dd66){const _0x3513bf=a19_0x91acf,_0x3077a9={'NaMdS':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','nTYRt':function(_0x35b720){return _0x35b720();},'dOYNs':_0x3513bf(0x8b),'fKqfL':function(_0x4bca46,_0x425f5a,_0x191a4a,_0x370b9e,_0x5280d2,_0x5ebaff,_0xa23d65){return _0x4bca46(_0x425f5a,_0x191a4a,_0x370b9e,_0x5280d2,_0x5ebaff,_0xa23d65);},'wQomh':'start-grid-called','ZBDmb':_0x3513bf(0x73),'PCCJq':function(_0x5d1ed2){return _0x5d1ed2();},'fJuGR':_0x3513bf(0x9b),'sRlHn':'<PasswordPlaceholder>','kXgjX':'Adding\x20Websocket\x20listeners','nPriO':function(_0x501eb3,_0x228e69,_0x471ec9,_0x6bc61c){return _0x501eb3(_0x228e69,_0x471ec9,_0x6bc61c);},'uTyXy':function(_0x4a5d77,_0x43a410,_0x4fa5e3,_0x46f648,_0x55b06f,_0x297cae,_0x65a7f){return _0x4a5d77(_0x43a410,_0x4fa5e3,_0x46f648,_0x55b06f,_0x297cae,_0x65a7f);},'ZhBon':function(_0x39032b,_0x44a59e,_0x54e750){return _0x39032b(_0x44a59e,_0x54e750);},'RwalV':function(_0x241a1c,_0x25c859,_0xa43691){return _0x241a1c(_0x25c859,_0xa43691);},'enNOV':_0x3513bf(0x8e),'KonyZ':function(_0x17dd3f,_0x30a03d){return _0x17dd3f===_0x30a03d;},'GmhtR':_0x3513bf(0xb7),'eXbYB':_0x3513bf(0xb3),'hxzKp':'invalid-grid-id','rLUmr':function(_0x27b5f1,_0x1c901e,_0x55b11d,_0x4dc9ad,_0x495f7d,_0x207e94,_0x357f88){return _0x27b5f1(_0x1c901e,_0x55b11d,_0x4dc9ad,_0x495f7d,_0x207e94,_0x357f88);},'XPzbR':_0x3513bf(0x71)};let _0x109d70;try{!_0x20dd66[_0x3513bf(0xba)]&&(logger[_0x3513bf(0x96)](_0x3077a9[_0x3513bf(0x6d)]),process[_0x3513bf(0x6f)](0x1));!fs[_0x3513bf(0x74)](_0x3077a9[_0x3513bf(0x84)](getCredentialsPath))&&(logger[_0x3513bf(0x96)](_0x3077a9['dOYNs']),await _0x3077a9[_0x3513bf(0xb8)](sendInstrumentationEvent,_0x20dd66,_0x3077a9[_0x3513bf(0xbb)],messageTypes['ERROR'],_0x3077a9[_0x3513bf(0x9c)],null,_0x20dd66),process[_0x3513bf(0x6f)](0x1));logger[_0x3513bf(0xa0)]('Starting\x20grid\x20'+_0x20dd66[_0x3513bf(0xba)]),await _0x3077a9['fKqfL'](sendInstrumentationEvent,_0x20dd66,_0x3077a9[_0x3513bf(0xbb)],messageTypes[_0x3513bf(0x72)],null,null,_0x20dd66);const _0x5de2f9=JSON[_0x3513bf(0x9e)](fs[_0x3513bf(0xb1)](_0x3077a9[_0x3513bf(0x75)](getCredentialsPath)));global_registry[_0x3513bf(0xb4)]=_0x5de2f9['Browserstack']['username'],global_registry[_0x3513bf(0x95)]=_0x5de2f9[_0x3513bf(0x98)][_0x3513bf(0xbe)];const _0x311249=WS_ENDPOINT[_0x3513bf(0x7c)](_0x3077a9['fJuGR'],_0x5de2f9[_0x3513bf(0x98)][_0x3513bf(0x81)])[_0x3513bf(0x7c)](_0x3077a9[_0x3513bf(0x83)],_0x5de2f9[_0x3513bf(0x98)]['password']),_0x48ad8d={};_0x48ad8d[_0x3513bf(0xc0)]=ws,_0x48ad8d[_0x3513bf(0x99)]=0x36ee80,_0x109d70=new ReconnectingWebSocket(_0x311249,[],_0x48ad8d),logger[_0x3513bf(0x87)](_0x3077a9[_0x3513bf(0x8f)]),webSocketUtils[_0x3513bf(0xbf)](_0x109d70,_0x20dd66['user'],_0x20dd66[_0x3513bf(0xbe)]);const [_0x65bef8,_0x28edf8]=await _0x3077a9[_0x3513bf(0xa2)](getGridDetails,_0x5de2f9[_0x3513bf(0x98)]['username'],_0x5de2f9[_0x3513bf(0x98)][_0x3513bf(0xbe)],_0x20dd66[_0x3513bf(0xba)]);if(_0x28edf8){const _0x315ef9=_0x28edf8[_0x3513bf(0xa0)];global_registry[_0x3513bf(0x90)]=_0x315ef9[_0x3513bf(0x90)],global_registry[_0x3513bf(0x7b)]=_0x315ef9['region'],global_registry[_0x3513bf(0xa7)]=_0x315ef9['clusterName'];const _0x1e3f80=await _0x3077a9[_0x3513bf(0x89)](getCloudProviderObject,_0x315ef9[_0x3513bf(0x90)],_0x315ef9[_0x3513bf(0xa7)],_0x315ef9[_0x3513bf(0x85)],_0x109d70,webSocketUtils,_0x20dd66),[_0x87110e,_0x1f8310,_0x235edf,_0x4e03d0,_0x117baa,_0x175bf4]=await _0x3077a9[_0x3513bf(0x91)](createK8sClient,_0x1e3f80,_0x20dd66['skipTlsCertVerify']);await _0x3077a9[_0x3513bf(0x77)](scaleUpHubDeployment,_0x1f8310,_0x315ef9[_0x3513bf(0x85)]),logger[_0x3513bf(0xa0)](_0x3077a9[_0x3513bf(0x9a)]),process[_0x3513bf(0x6f)](0x0);}_0x3077a9['KonyZ'](_0x65bef8['statusCode'],0x191)&&(logger[_0x3513bf(0x96)](_0x3077a9['GmhtR']),await _0x3077a9[_0x3513bf(0xb8)](sendInstrumentationEvent,_0x20dd66,_0x3077a9['wQomh'],messageTypes[_0x3513bf(0xb9)],_0x3077a9[_0x3513bf(0x93)],null,_0x20dd66),process[_0x3513bf(0x6f)](0x1)),_0x3077a9[_0x3513bf(0x8c)](_0x65bef8['statusCode'],0x190)&&(logger[_0x3513bf(0x96)](JSON[_0x3513bf(0x9e)](_0x65bef8[_0x3513bf(0xa6)])['message']),await _0x3077a9[_0x3513bf(0x89)](sendInstrumentationEvent,_0x20dd66,_0x3077a9[_0x3513bf(0xbb)],messageTypes[_0x3513bf(0xb9)],_0x3077a9[_0x3513bf(0x70)],null,_0x20dd66),process[_0x3513bf(0x6f)](0x1)),logger[_0x3513bf(0x96)](_0x3513bf(0xaf)+JSON[_0x3513bf(0x9d)](_0x65bef8)),await _0x3077a9['rLUmr'](sendInstrumentationEvent,_0x20dd66,_0x3077a9['wQomh'],messageTypes[_0x3513bf(0xb9)],_0x3077a9[_0x3513bf(0xb2)],_0x65bef8,_0x20dd66),process[_0x3513bf(0x6f)](0x1);}catch(_0x1eee52){const _0x1f7d84=_0x3513bf(0x88)+_0x1eee52+'\x20\x0a'+JSON[_0x3513bf(0x9d)](_0x1eee52[_0x3513bf(0xae)])+'\x20';logger[_0x3513bf(0x96)](_0x1f7d84),process[_0x3513bf(0x6f)](0x1);}};
1
+ function a19_0x4561(){const _0xadf0be=['Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','165085NdiAKl','command','Start\x20an\x20existing\x20Automation\x20grid.','4986EepNpE','help','clusterName','string','14424SNujGT','Browserstack','../../utils/instrumentationUtils','usage','existsSync','jpAOQ','invalid-grid-id','../../cloudproviders/utils','../../utils/gridComponents','desc','SDWnv','rbeMs','8880qwKEau','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','<UsernamePlaceholder>','skipTlsCertVerify','clusterRegion','statusCode','JLmkD','reconnecting-websocket','1344740eAFRas','start-grid-called','bstackAccesskey','grid-id','cloudProvider','84TJuNab','exit','body','replace','AcJba','boolean','21044340uPDqJz','readFileSync','EiMOj','../../utils/utilityMethods','1182HyNZKs','rBXez','unauthorised','stack','10991141dvuWoE','skip-tls-cert-verify','username','ERROR','NdUAg','cOYWv','password','debug','<PasswordPlaceholder>','WejpL','twrWT','handler','server-error','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','IrPmA','user','aXUhS','connectionTimeout','message','dulGq','Starting\x20grid\x20','type','800337elfRIr','stringify','parse','WebSocket','wYObw','eVUZE','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','addListeners','nyedO','description','sqHNI','../../config/logger','options','kdwwn','Skip\x20insecure\x20cert\x20verification.','xtoUV','gridId','init-not-called','ElwhY','error','KEMlY','../../config/constants','builder','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','info','argv','name'];a19_0x4561=function(){return _0xadf0be;};return a19_0x4561();}const a19_0x411848=a19_0x3d8b;function a19_0x3d8b(_0x4c29d7,_0x75dcea){const _0x456126=a19_0x4561();return a19_0x3d8b=function(_0x3d8bcf,_0x564333){_0x3d8bcf=_0x3d8bcf-0x8a;let _0x548143=_0x456126[_0x3d8bcf];return _0x548143;},a19_0x3d8b(_0x4c29d7,_0x75dcea);}(function(_0x4caedd,_0x1527c2){const _0x2e49d5=a19_0x3d8b,_0x2a5155=_0x4caedd();while(!![]){try{const _0x4c6a91=parseInt(_0x2e49d5(0x8a))/0x1+-parseInt(_0x2e49d5(0xb9))/0x2*(parseInt(_0x2e49d5(0xd1))/0x3)+-parseInt(_0x2e49d5(0xc2))/0x4+parseInt(_0x2e49d5(0xa6))/0x5*(-parseInt(_0x2e49d5(0xc7))/0x6)+parseInt(_0x2e49d5(0xd5))/0x7+-parseInt(_0x2e49d5(0xad))/0x8*(parseInt(_0x2e49d5(0xa9))/0x9)+parseInt(_0x2e49d5(0xcd))/0xa;if(_0x4c6a91===_0x1527c2)break;else _0x2a5155['push'](_0x2a5155['shift']());}catch(_0x518414){_0x2a5155['push'](_0x2a5155['shift']());}}}(a19_0x4561,0xe2a21));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x411848(0xc1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x411848(0x9f)),{logger}=require(a19_0x411848(0x95)),{getCredentialsPath,getGridDetails}=require(a19_0x411848(0xd0)),{scaleUpHubDeployment}=require(a19_0x411848(0xb5)),{sendInstrumentationEvent}=require(a19_0x411848(0xaf)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x411848(0xb4));exports[a19_0x411848(0xa7)]='grid',exports[a19_0x411848(0xb6)]=a19_0x411848(0xa8),exports[a19_0x411848(0xa0)]=function(_0x29fab5){const _0x167e35=a19_0x411848,_0x3af45a={};_0x3af45a[_0x167e35(0xcb)]=_0x167e35(0xa5),_0x3af45a[_0x167e35(0xb2)]=_0x167e35(0xac),_0x3af45a['SDWnv']=_0x167e35(0x98),_0x3af45a[_0x167e35(0x8f)]=_0x167e35(0xcc),_0x3af45a[_0x167e35(0xe8)]=_0x167e35(0xaa);const _0x5c12ab=_0x3af45a,_0x3f0773={};_0x3f0773[_0x167e35(0x93)]=_0x5c12ab[_0x167e35(0xcb)],_0x3f0773['type']=_0x5c12ab[_0x167e35(0xb2)];const _0xb74a75={};_0xb74a75['description']=_0x5c12ab[_0x167e35(0xb7)],_0xb74a75[_0x167e35(0xea)]=_0x5c12ab[_0x167e35(0x8f)],_0xb74a75['default']=![];const _0x434bf3={};return _0x434bf3[_0x167e35(0xc5)]=_0x3f0773,_0x434bf3[_0x167e35(0xd6)]=_0xb74a75,_0x29fab5[_0x167e35(0xb0)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x167e35(0x96)](_0x434bf3)[_0x167e35(0xaa)](_0x5c12ab[_0x167e35(0xe8)])[_0x167e35(0xa3)];},exports[a19_0x411848(0xe0)]=async function(_0x4c8fa6){const _0x12aa55=a19_0x411848,_0x1bb2ff={'ElwhY':_0x12aa55(0x90),'rBXez':function(_0x16a2ed){return _0x16a2ed();},'cOYWv':_0x12aa55(0xba),'wYObw':function(_0x48c59c,_0x322964,_0x5086b8,_0x4f6392,_0x39d97a,_0x1e3564,_0x56c13c){return _0x48c59c(_0x322964,_0x5086b8,_0x4f6392,_0x39d97a,_0x1e3564,_0x56c13c);},'WejpL':_0x12aa55(0xc3),'KEMlY':_0x12aa55(0x9b),'nyedO':function(_0x9b0231){return _0x9b0231();},'xtoUV':_0x12aa55(0xbc),'rbeMs':_0x12aa55(0xdd),'twrWT':'Adding\x20Websocket\x20listeners','NdUAg':function(_0x33db03,_0x22faab,_0x19af8c,_0x4a9632){return _0x33db03(_0x22faab,_0x19af8c,_0x4a9632);},'foVmj':function(_0x3a1a46,_0x158fab,_0x34db9c){return _0x3a1a46(_0x158fab,_0x34db9c);},'sqHNI':function(_0xd8713b,_0x1bca24,_0x1369bc){return _0xd8713b(_0x1bca24,_0x1369bc);},'bTQGd':'Grid\x20started','IrPmA':function(_0x381e03,_0x404979){return _0x381e03===_0x404979;},'gDTRO':_0x12aa55(0xbb),'EiMOj':_0x12aa55(0xd3),'JLmkD':function(_0xd4e86e,_0x56cabb){return _0xd4e86e===_0x56cabb;},'aXUhS':function(_0x3b91c7,_0x1abd4f,_0x2329ed,_0x522474,_0x3b39df,_0xfd9965,_0x4b32fb){return _0x3b91c7(_0x1abd4f,_0x2329ed,_0x522474,_0x3b39df,_0xfd9965,_0x4b32fb);},'dUHDr':_0x12aa55(0xb3),'kdwwn':function(_0x27660d,_0xbcfff5,_0x53be82,_0x5300db,_0x49bbe1,_0x424a0c,_0x76aabc){return _0x27660d(_0xbcfff5,_0x53be82,_0x5300db,_0x49bbe1,_0x424a0c,_0x76aabc);},'HUWxS':_0x12aa55(0xe1)};let _0x324c54;try{!_0x4c8fa6[_0x12aa55(0x9a)]&&(logger[_0x12aa55(0x9d)](_0x1bb2ff[_0x12aa55(0x9c)]),process[_0x12aa55(0xc8)](0x1));!fs[_0x12aa55(0xb1)](_0x1bb2ff[_0x12aa55(0xd2)](getCredentialsPath))&&(logger['error'](_0x1bb2ff[_0x12aa55(0xda)]),await _0x1bb2ff['wYObw'](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff['WejpL'],messageTypes['ERROR'],_0x1bb2ff[_0x12aa55(0x9e)],null,_0x4c8fa6),process[_0x12aa55(0xc8)](0x1));logger[_0x12aa55(0xa2)](_0x12aa55(0xe9)+_0x4c8fa6[_0x12aa55(0x9a)]),await _0x1bb2ff['wYObw'](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff[_0x12aa55(0xde)],messageTypes['INFO'],null,null,_0x4c8fa6);const _0x32d1db=JSON[_0x12aa55(0x8c)](fs[_0x12aa55(0xce)](_0x1bb2ff[_0x12aa55(0x92)](getCredentialsPath)));global_registry['bstackUsername']=_0x32d1db[_0x12aa55(0xae)][_0x12aa55(0xd7)],global_registry[_0x12aa55(0xc4)]=_0x32d1db['Browserstack'][_0x12aa55(0xdb)];const _0x49396c=WS_ENDPOINT[_0x12aa55(0xca)](_0x1bb2ff[_0x12aa55(0x99)],_0x32d1db[_0x12aa55(0xae)]['username'])[_0x12aa55(0xca)](_0x1bb2ff[_0x12aa55(0xb8)],_0x32d1db[_0x12aa55(0xae)]['password']),_0x2cd57d={};_0x2cd57d[_0x12aa55(0x8d)]=ws,_0x2cd57d[_0x12aa55(0xe6)]=0x36ee80,_0x324c54=new ReconnectingWebSocket(_0x49396c,[],_0x2cd57d),logger[_0x12aa55(0xdc)](_0x1bb2ff[_0x12aa55(0xdf)]),webSocketUtils[_0x12aa55(0x91)](_0x324c54,_0x4c8fa6[_0x12aa55(0xe4)],_0x4c8fa6['password']);const [_0x1088f6,_0x465d4a]=await _0x1bb2ff[_0x12aa55(0xd9)](getGridDetails,_0x32d1db[_0x12aa55(0xae)][_0x12aa55(0xd7)],_0x32d1db[_0x12aa55(0xae)][_0x12aa55(0xdb)],_0x4c8fa6[_0x12aa55(0x9a)]);if(_0x465d4a){const _0x1ae34c=_0x465d4a['info'];global_registry[_0x12aa55(0xc6)]=_0x1ae34c['cloudProvider'],global_registry[_0x12aa55(0xbe)]=_0x1ae34c['region'],global_registry[_0x12aa55(0xab)]=_0x1ae34c['clusterName'];const _0xf7335b=await _0x1bb2ff[_0x12aa55(0x8e)](getCloudProviderObject,_0x1ae34c[_0x12aa55(0xc6)],_0x1ae34c[_0x12aa55(0xab)],_0x1ae34c[_0x12aa55(0xa4)],_0x324c54,webSocketUtils,_0x4c8fa6),[_0x1b525c,_0x5dd118,_0xeeb72c,_0x1a9491,_0x23b715,_0x2bba1c]=await _0x1bb2ff['foVmj'](createK8sClient,_0xf7335b,_0x4c8fa6[_0x12aa55(0xbd)]);await _0x1bb2ff[_0x12aa55(0x94)](scaleUpHubDeployment,_0x5dd118,_0x1ae34c['name']),logger[_0x12aa55(0xa2)](_0x1bb2ff['bTQGd']),process[_0x12aa55(0xc8)](0x0);}_0x1bb2ff[_0x12aa55(0xe3)](_0x1088f6['statusCode'],0x191)&&(logger[_0x12aa55(0x9d)](_0x1bb2ff['gDTRO']),await _0x1bb2ff[_0x12aa55(0x8e)](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff[_0x12aa55(0xde)],messageTypes[_0x12aa55(0xd8)],_0x1bb2ff[_0x12aa55(0xcf)],null,_0x4c8fa6),process[_0x12aa55(0xc8)](0x1)),_0x1bb2ff[_0x12aa55(0xc0)](_0x1088f6[_0x12aa55(0xbf)],0x190)&&(logger[_0x12aa55(0x9d)](JSON[_0x12aa55(0x8c)](_0x1088f6[_0x12aa55(0xc9)])[_0x12aa55(0xe7)]),await _0x1bb2ff[_0x12aa55(0xe5)](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff[_0x12aa55(0xde)],messageTypes[_0x12aa55(0xd8)],_0x1bb2ff['dUHDr'],null,_0x4c8fa6),process['exit'](0x1)),logger[_0x12aa55(0x9d)](_0x12aa55(0xa1)+JSON[_0x12aa55(0x8b)](_0x1088f6)),await _0x1bb2ff[_0x12aa55(0x97)](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff[_0x12aa55(0xde)],messageTypes[_0x12aa55(0xd8)],_0x1bb2ff['HUWxS'],_0x1088f6,_0x4c8fa6),process[_0x12aa55(0xc8)](0x1);}catch(_0x313c21){const _0x4daf93=_0x12aa55(0xe2)+_0x313c21+'\x20\x0a'+JSON[_0x12aa55(0x8b)](_0x313c21[_0x12aa55(0xd4)])+'\x20';logger[_0x12aa55(0x9d)](_0x4daf93),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0x259d9a=a20_0x14bb;(function(_0x1d1ac2,_0x1ed53f){const _0x77b98f=a20_0x14bb,_0x517127=_0x1d1ac2();while(!![]){try{const _0x5de83c=-parseInt(_0x77b98f(0x1a9))/0x1+parseInt(_0x77b98f(0x1b0))/0x2+-parseInt(_0x77b98f(0x1a6))/0x3*(parseInt(_0x77b98f(0x1b1))/0x4)+-parseInt(_0x77b98f(0x1ac))/0x5*(parseInt(_0x77b98f(0x1a1))/0x6)+parseInt(_0x77b98f(0x1a5))/0x7+-parseInt(_0x77b98f(0x1ab))/0x8*(parseInt(_0x77b98f(0x1ad))/0x9)+parseInt(_0x77b98f(0x1a3))/0xa;if(_0x5de83c===_0x1ed53f)break;else _0x517127['push'](_0x517127['shift']());}catch(_0x18a584){_0x517127['push'](_0x517127['shift']());}}}(a20_0x4679,0xa7f48));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x259d9a(0x1b6));function a20_0x14bb(_0x3bcef1,_0x34840f){const _0x467900=a20_0x4679();return a20_0x14bb=function(_0x14bb3d,_0xa122d2){_0x14bb3d=_0x14bb3d-0x1a1;let _0x379953=_0x467900[_0x14bb3d];return _0x379953;},a20_0x14bb(_0x3bcef1,_0x34840f);}exports[a20_0x259d9a(0x1a2)]=a20_0x259d9a(0x1b3),exports[a20_0x259d9a(0x1ae)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x259d9a(0x1a8)]=function(_0x43b586){const _0x4dc064=a20_0x259d9a,_0x3c4345={};_0x3c4345[_0x4dc064(0x1a7)]=_0x4dc064(0x1af),_0x3c4345['QCHVj']='help';const _0x56ec37=_0x3c4345;return _0x43b586[_0x4dc064(0x1b5)](HELP_HEADER_MESSAGE[_0x4dc064(0x1b3)])[_0x4dc064(0x1b8)](HELP_FOOTER_MESSAGE)[_0x4dc064(0x1a4)](_0x56ec37[_0x4dc064(0x1a7)])[_0x4dc064(0x1b2)]()[_0x4dc064(0x1b7)]()[_0x4dc064(0x1b4)]()[_0x4dc064(0x1aa)](_0x56ec37['QCHVj']);},exports['handler']=function(_0x11e42d){};function a20_0x4679(){const _0x3ca210=['demandCommand','stop','strict','usage','../config/constants','recommendCommands','epilogue','871356YYClia','command','19987790UqRUlL','commandDir','6821353BHIMZj','14109BcnSFD','rXxyG','builder','897032GthZpn','help','32nFRxdO','5GcSERC','2526030Ufrzmo','desc','stop_commands','2496394rROBxN','1164ZzDziP'];a20_0x4679=function(){return _0x3ca210;};return a20_0x4679();}
1
+ const a20_0x157041=a20_0x4ec2;function a20_0x4ec2(_0x36a1c3,_0xf9504b){const _0x46d35a=a20_0x46d3();return a20_0x4ec2=function(_0x4ec20c,_0x1e85f6){_0x4ec20c=_0x4ec20c-0x129;let _0x49af81=_0x46d35a[_0x4ec20c];return _0x49af81;},a20_0x4ec2(_0x36a1c3,_0xf9504b);}function a20_0x46d3(){const _0x53b77b=['7986040RsauXj','epilogue','78QreuxL','handler','1037262rjOlow','Stop\x20a\x20running\x20Automation\x20grid.','16tlGjiq','XFRIe','4254105EjdoFk','stop','help','4050632GaFGPI','recommendCommands','builder','1509966IfzmDi','753198cHVevn','../config/constants','stop_commands','3yOYCwc','usage','strict','514927xoHvxA','mwhVm','command'];a20_0x46d3=function(){return _0x53b77b;};return a20_0x46d3();}(function(_0x290475,_0x15c415){const _0x47fd9c=a20_0x4ec2,_0x19e49e=_0x290475();while(!![]){try{const _0x263f58=-parseInt(_0x47fd9c(0x13b))/0x1+-parseInt(_0x47fd9c(0x130))/0x2+parseInt(_0x47fd9c(0x13e))/0x3*(-parseInt(_0x47fd9c(0x137))/0x4)+parseInt(_0x47fd9c(0x134))/0x5+-parseInt(_0x47fd9c(0x12e))/0x6*(-parseInt(_0x47fd9c(0x129))/0x7)+parseInt(_0x47fd9c(0x132))/0x8*(parseInt(_0x47fd9c(0x13a))/0x9)+parseInt(_0x47fd9c(0x12c))/0xa;if(_0x263f58===_0x15c415)break;else _0x19e49e['push'](_0x19e49e['shift']());}catch(_0x263286){_0x19e49e['push'](_0x19e49e['shift']());}}}(a20_0x46d3,0xa058b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x157041(0x13c));exports[a20_0x157041(0x12b)]=a20_0x157041(0x135),exports['desc']=a20_0x157041(0x131),exports[a20_0x157041(0x139)]=function(_0x5e6ca6){const _0x14d6e5=a20_0x157041,_0x784b63={};_0x784b63['XFRIe']=_0x14d6e5(0x13d),_0x784b63['mwhVm']=_0x14d6e5(0x136);const _0x3a3cd7=_0x784b63;return _0x5e6ca6[_0x14d6e5(0x13f)](HELP_HEADER_MESSAGE['stop'])[_0x14d6e5(0x12d)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3a3cd7[_0x14d6e5(0x133)])['demandCommand']()[_0x14d6e5(0x138)]()[_0x14d6e5(0x140)]()[_0x14d6e5(0x136)](_0x3a3cd7[_0x14d6e5(0x12a)]);},exports[a20_0x157041(0x12f)]=function(_0x380d4b){};
@@ -1 +1 @@
1
- const a21_0x5d30d2=a21_0x48dc;function a21_0x2949(){const _0x258a30=['stack','zwMMO','name','UnMFa','../../utils/webSocketUtils','goZCe','exit','6959228rjsNds','epilogue','PvIvr','gbbSX','bstackAccesskey','XKttA','default','87560hKaeLY','../../utils/instrumentationUtils','LqTgu','CtbOq','nyrAk','../../cloudproviders/utils','8yiOmpX','options','../../utils/createk8sClient','help','reconnecting-websocket','parse','ERROR','1200fLTzFH','crWWe','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','info','debug','Stop\x20a\x20running\x20Automation\x20grid.','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','15558ELkWMl','type','45528cMUHYa','password','Skip\x20insecure\x20cert\x20verification.','MFwXc','gridId','139NRYePQ','replace','gajGR','grid-id','INFO','body','3806SbBXTv','invalid-grid-id','region','7083387xQptIP','Browserstack','2819058SHfJcu','IsKTx','connectionTimeout','statusCode','../../utils/utilityMethods','kYEQf','clusterRegion','GiUkH','eDmNd','existsSync','skipTlsCertVerify','stop','8275730SCOsKJ','bstackUsername','MayQh','KWkvo','../../config/logger','<UsernamePlaceholder>','username','clusterName','usage','<PasswordPlaceholder>','WbRFh','stringify','unauthorised','RluQV','cloudProvider','JCSIZ','stop-grid-called','description','argv','MkDvx','grid','lSQrx','error','handler'];a21_0x2949=function(){return _0x258a30;};return a21_0x2949();}(function(_0x1c7620,_0x3b5d6d){const _0x346c22=a21_0x48dc,_0x420ac4=_0x1c7620();while(!![]){try{const _0x1be921=parseInt(_0x346c22(0x198))/0x1*(parseInt(_0x346c22(0x191))/0x2)+parseInt(_0x346c22(0x1a3))/0x3+-parseInt(_0x346c22(0x176))/0x4+parseInt(_0x346c22(0x1af))/0x5+parseInt(_0x346c22(0x18a))/0x6*(parseInt(_0x346c22(0x193))/0x7)+-parseInt(_0x346c22(0x183))/0x8*(-parseInt(_0x346c22(0x1a1))/0x9)+-parseInt(_0x346c22(0x17d))/0xa*(parseInt(_0x346c22(0x19e))/0xb);if(_0x1be921===_0x3b5d6d)break;else _0x420ac4['push'](_0x420ac4['shift']());}catch(_0x260fea){_0x420ac4['push'](_0x420ac4['shift']());}}}(a21_0x2949,0xf2d0d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5d30d2(0x187)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x5d30d2(0x1b3)),{getCredentialsPath,getGridDetails}=require(a21_0x5d30d2(0x1a7)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x5d30d2(0x17e)),webSocketUtils=require(a21_0x5d30d2(0x173)),{createK8sClient}=require(a21_0x5d30d2(0x185)),{getCloudProviderObject}=require(a21_0x5d30d2(0x182));function a21_0x48dc(_0x5eb7d5,_0x42b787){const _0x2949c5=a21_0x2949();return a21_0x48dc=function(_0x48dcf5,_0x2cfd86){_0x48dcf5=_0x48dcf5-0x160;let _0x53f0be=_0x2949c5[_0x48dcf5];return _0x53f0be;},a21_0x48dc(_0x5eb7d5,_0x42b787);}exports['command']=a21_0x5d30d2(0x16b),exports['desc']=a21_0x5d30d2(0x18f),exports['builder']=function(_0x29f332){const _0x2f94e2=a21_0x5d30d2,_0x1f41f9={};_0x1f41f9['kYEQf']=_0x2f94e2(0x190),_0x1f41f9[_0x2f94e2(0x181)]='string',_0x1f41f9[_0x2f94e2(0x16c)]=_0x2f94e2(0x195),_0x1f41f9[_0x2f94e2(0x16a)]='boolean',_0x1f41f9['dBGZl']=_0x2f94e2(0x186);const _0x8fae79=_0x1f41f9,_0x1748d5={};_0x1748d5[_0x2f94e2(0x168)]=_0x8fae79[_0x2f94e2(0x1a8)],_0x1748d5['type']=_0x8fae79['nyrAk'];const _0x1bea75={};_0x1bea75[_0x2f94e2(0x168)]=_0x8fae79['lSQrx'],_0x1bea75[_0x2f94e2(0x192)]=_0x8fae79[_0x2f94e2(0x16a)],_0x1bea75[_0x2f94e2(0x17c)]=![];const _0x29af2a={};return _0x29af2a[_0x2f94e2(0x19b)]=_0x1748d5,_0x29af2a['skip-tls-cert-verify']=_0x1bea75,_0x29f332[_0x2f94e2(0x1b7)](HELP_HEADER_MESSAGE[_0x2f94e2(0x1ae)])[_0x2f94e2(0x177)](HELP_FOOTER_MESSAGE)[_0x2f94e2(0x184)](_0x29af2a)[_0x2f94e2(0x186)](_0x8fae79['dBGZl'])[_0x2f94e2(0x169)];},exports[a21_0x5d30d2(0x16e)]=async function(_0x2aaf59){const _0x511517=a21_0x5d30d2,_0x34e23e={'goZCe':_0x511517(0x18c),'KWkvo':function(_0x941f6d){return _0x941f6d();},'UnMFa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','CtbOq':function(_0x1d0da3,_0x4fd11b,_0xf31d70,_0x4b1415,_0x274041,_0x5acc5a,_0x38bb26){return _0x1d0da3(_0x4fd11b,_0xf31d70,_0x4b1415,_0x274041,_0x5acc5a,_0x38bb26);},'JCSIZ':_0x511517(0x167),'gajGR':'init-not-called','zwMMO':_0x511517(0x1b4),'crWWe':_0x511517(0x160),'RluQV':'Adding\x20Websocket\x20listeners','MFwXc':function(_0xb7788b,_0x3854f2,_0x15e9db,_0x5a33f8){return _0xb7788b(_0x3854f2,_0x15e9db,_0x5a33f8);},'LqTgu':function(_0x4cbeee,_0x25e4d3,_0x2884b6,_0x253a40,_0xd71e87,_0x4d09d7,_0x145b68){return _0x4cbeee(_0x25e4d3,_0x2884b6,_0x253a40,_0xd71e87,_0x4d09d7,_0x145b68);},'PvIvr':function(_0x30b2ed,_0x2ce927,_0x26c283){return _0x30b2ed(_0x2ce927,_0x26c283);},'IsKTx':function(_0x54872f,_0x4778f4,_0x241ea4){return _0x54872f(_0x4778f4,_0x241ea4);},'gbbSX':'Grid\x20stoppped.','mndmI':function(_0x2ac890,_0x478642){return _0x2ac890===_0x478642;},'XKttA':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WbRFh':function(_0x4290bf,_0x1e7793,_0x18efe2,_0x11b77e,_0x16366f,_0x40ccc1,_0x21d716){return _0x4290bf(_0x1e7793,_0x18efe2,_0x11b77e,_0x16366f,_0x40ccc1,_0x21d716);},'GiUkH':_0x511517(0x163),'eDmNd':function(_0x36db52,_0x1d7f20,_0x38e7a1,_0x23b4a6,_0x291c7e,_0x527706,_0xa3607a){return _0x36db52(_0x1d7f20,_0x38e7a1,_0x23b4a6,_0x291c7e,_0x527706,_0xa3607a);},'unzsK':_0x511517(0x19f),'MayQh':'server-error'};let _0x8ab08c;try{!_0x2aaf59[_0x511517(0x197)]&&(logger[_0x511517(0x16d)](_0x34e23e[_0x511517(0x174)]),process[_0x511517(0x175)](0x1));!fs[_0x511517(0x1ac)](_0x34e23e[_0x511517(0x1b2)](getCredentialsPath))&&(logger[_0x511517(0x16d)](_0x34e23e[_0x511517(0x172)]),await _0x34e23e['CtbOq'](sendInstrumentationEvent,_0x2aaf59,_0x34e23e['JCSIZ'],messageTypes['ERROR'],_0x34e23e[_0x511517(0x19a)],null,_0x2aaf59),process[_0x511517(0x175)](0x1));logger[_0x511517(0x18d)]('Stopping\x20grid\x20'+_0x2aaf59[_0x511517(0x197)]),await _0x34e23e[_0x511517(0x180)](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes[_0x511517(0x19c)],null,null,_0x2aaf59);const _0x245552=JSON[_0x511517(0x188)](fs['readFileSync'](_0x34e23e['KWkvo'](getCredentialsPath)));global_registry[_0x511517(0x1b0)]=_0x245552[_0x511517(0x1a2)][_0x511517(0x1b5)],global_registry[_0x511517(0x17a)]=_0x245552[_0x511517(0x1a2)]['password'];const _0x3aba5b=WS_ENDPOINT[_0x511517(0x199)](_0x34e23e[_0x511517(0x170)],_0x245552['Browserstack']['username'])[_0x511517(0x199)](_0x34e23e[_0x511517(0x18b)],_0x245552[_0x511517(0x1a2)]['password']),_0x522817={};_0x522817['WebSocket']=ws,_0x522817[_0x511517(0x1a5)]=0x36ee80,_0x8ab08c=new ReconnectingWebSocket(_0x3aba5b,[],_0x522817),logger[_0x511517(0x18e)](_0x34e23e[_0x511517(0x164)]),webSocketUtils['addListeners'](_0x8ab08c,_0x2aaf59['user'],_0x2aaf59[_0x511517(0x194)]);const [_0x4d7f12,_0x24b615]=await _0x34e23e[_0x511517(0x196)](getGridDetails,_0x245552[_0x511517(0x1a2)][_0x511517(0x1b5)],_0x245552[_0x511517(0x1a2)][_0x511517(0x194)],_0x2aaf59[_0x511517(0x197)]);if(_0x24b615){const _0x56beec=_0x24b615[_0x511517(0x18d)];global_registry[_0x511517(0x165)]=_0x56beec[_0x511517(0x165)],global_registry[_0x511517(0x1a9)]=_0x56beec[_0x511517(0x1a0)],global_registry[_0x511517(0x1b6)]=_0x56beec[_0x511517(0x1b6)];const _0x25b972=await _0x34e23e[_0x511517(0x17f)](getCloudProviderObject,_0x56beec[_0x511517(0x165)],_0x56beec[_0x511517(0x1b6)],_0x56beec[_0x511517(0x171)],_0x8ab08c,webSocketUtils,_0x2aaf59),[_0x4fc06a,_0x1bb96e,_0x355741,_0x16614b,_0x21e2c3,_0x5239b4]=await _0x34e23e[_0x511517(0x178)](createK8sClient,_0x25b972,_0x2aaf59[_0x511517(0x1ad)]);await _0x34e23e[_0x511517(0x1a4)](scaleDownHubDeployment,_0x1bb96e,_0x56beec[_0x511517(0x171)]),logger['info'](_0x34e23e[_0x511517(0x179)]),process[_0x511517(0x175)](0x0);}_0x34e23e['mndmI'](_0x4d7f12[_0x511517(0x1a6)],0x191)&&(logger[_0x511517(0x16d)](_0x34e23e[_0x511517(0x17b)]),await _0x34e23e[_0x511517(0x161)](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes[_0x511517(0x189)],_0x34e23e[_0x511517(0x1aa)],null,_0x2aaf59),process[_0x511517(0x175)](0x1)),_0x34e23e['mndmI'](_0x4d7f12['statusCode'],0x190)&&(logger[_0x511517(0x16d)](JSON[_0x511517(0x188)](_0x4d7f12[_0x511517(0x19d)])['message']),await _0x34e23e[_0x511517(0x1ab)](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes['ERROR'],_0x34e23e['unzsK'],null,_0x2aaf59),process[_0x511517(0x175)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x511517(0x162)](_0x4d7f12)),await _0x34e23e['eDmNd'](sendInstrumentationEvent,_0x2aaf59,_0x34e23e[_0x511517(0x166)],messageTypes[_0x511517(0x189)],_0x34e23e[_0x511517(0x1b1)],_0x4d7f12,_0x2aaf59),process['exit'](0x1);}catch(_0x72abf3){const _0x485474='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x72abf3+'\x20\x0a'+JSON[_0x511517(0x162)](_0x72abf3[_0x511517(0x16f)])+'\x20';logger['error'](_0x485474),process[_0x511517(0x175)](0x1);}};
1
+ const a21_0x4c6938=a21_0x10bc;(function(_0xea4057,_0x1f0999){const _0x21c3cf=a21_0x10bc,_0x1fe4ab=_0xea4057();while(!![]){try{const _0x4d659f=parseInt(_0x21c3cf(0x1ca))/0x1*(parseInt(_0x21c3cf(0x1be))/0x2)+-parseInt(_0x21c3cf(0x191))/0x3*(-parseInt(_0x21c3cf(0x193))/0x4)+-parseInt(_0x21c3cf(0x1b6))/0x5*(-parseInt(_0x21c3cf(0x190))/0x6)+parseInt(_0x21c3cf(0x1ba))/0x7+parseInt(_0x21c3cf(0x198))/0x8*(-parseInt(_0x21c3cf(0x197))/0x9)+parseInt(_0x21c3cf(0x1c5))/0xa+-parseInt(_0x21c3cf(0x1d1))/0xb*(parseInt(_0x21c3cf(0x19b))/0xc);if(_0x4d659f===_0x1f0999)break;else _0x1fe4ab['push'](_0x1fe4ab['shift']());}catch(_0x579912){_0x1fe4ab['push'](_0x1fe4ab['shift']());}}}(a21_0x21d7,0x1a42b));function a21_0x21d7(){const _0x2d1bd3=['DvvBv','163193mwriQk','username','MzytS','INFO','qsqMN','clusterRegion','bstackUsername','6674327TDcbnE','KWPRA','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','grid','JTqHL','stringify','command','info','existsSync','EKBCK','bstackAccesskey','clusterName','string','name','unauthorised','Browserstack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','reconnecting-websocket','qkhIY','exit','../../utils/instrumentationUtils','546xBllSN','51pqipZr','readFileSync','44276jgputY','Adding\x20Websocket\x20listeners','parse','skip-tls-cert-verify','6381YjFiUz','712SRvjKj','error','Skip\x20insecure\x20cert\x20verification.','12PclZzd','vAFLN','password','aNVtO','statusCode','WebSocket','cloudProvider','gridId','Stop\x20a\x20running\x20Automation\x20grid.','stop-grid-called','../../cloudproviders/utils','boolean','HBdzT','IhFZl','handler','TqLrJ','argv','stop','description','addListeners','muMJz','TEpfV','QczWR','ERROR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','message','11815VMSjyg','../../utils/gridComponents','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1363908KKdkpp','body','server-error','../../utils/createk8sClient','2PuCzAB','LTvFO','<UsernamePlaceholder>','MJkuD','type','Lnpzl','debug','161780fSnjVc','connectionTimeout','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','ahNoQ'];a21_0x21d7=function(){return _0x2d1bd3;};return a21_0x21d7();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4c6938(0x18c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x4c6938(0x1b7)),{sendInstrumentationEvent}=require(a21_0x4c6938(0x18f)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x4c6938(0x1bd)),{getCloudProviderObject}=require(a21_0x4c6938(0x1a5));function a21_0x10bc(_0x14cfea,_0x1103cc){const _0x21d750=a21_0x21d7();return a21_0x10bc=function(_0x10bc13,_0x48fb0a){_0x10bc13=_0x10bc13-0x188;let _0x30fbdb=_0x21d750[_0x10bc13];return _0x30fbdb;},a21_0x10bc(_0x14cfea,_0x1103cc);}exports[a21_0x4c6938(0x1d7)]=a21_0x4c6938(0x1d4),exports['desc']=a21_0x4c6938(0x1a3),exports['builder']=function(_0x4233a2){const _0x1c575f=a21_0x4c6938,_0x276261={};_0x276261[_0x1c575f(0x1a8)]=_0x1c575f(0x1c7),_0x276261[_0x1c575f(0x1d2)]=_0x1c575f(0x1dd),_0x276261[_0x1c575f(0x19c)]=_0x1c575f(0x19a),_0x276261['rkUeP']=_0x1c575f(0x1a6),_0x276261['yrTHi']='help';const _0x1b9956=_0x276261,_0x5d337f={};_0x5d337f[_0x1c575f(0x1ad)]=_0x1b9956[_0x1c575f(0x1a8)],_0x5d337f[_0x1c575f(0x1c2)]=_0x1b9956[_0x1c575f(0x1d2)];const _0x11dba4={};_0x11dba4['description']=_0x1b9956[_0x1c575f(0x19c)],_0x11dba4[_0x1c575f(0x1c2)]=_0x1b9956['rkUeP'],_0x11dba4['default']=![];const _0x4c3e02={};return _0x4c3e02['grid-id']=_0x5d337f,_0x4c3e02[_0x1c575f(0x196)]=_0x11dba4,_0x4233a2['usage'](HELP_HEADER_MESSAGE[_0x1c575f(0x1ac)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1c575f(0x1b8)](_0x4c3e02)[_0x1c575f(0x1b4)](_0x1b9956['yrTHi'])[_0x1c575f(0x1ab)];},exports[a21_0x4c6938(0x1a9)]=async function(_0x2ea5b6){const _0x585ba1=a21_0x4c6938,_0x3c7620={'TEpfV':_0x585ba1(0x18b),'aNVtO':function(_0x227fdb){return _0x227fdb();},'qkhIY':_0x585ba1(0x1b3),'HBdzT':function(_0x15bd7e,_0x327bfd,_0x3e6601,_0x113425,_0x38fcd6,_0x1ac93a,_0x599be7){return _0x15bd7e(_0x327bfd,_0x3e6601,_0x113425,_0x38fcd6,_0x1ac93a,_0x599be7);},'JTqHL':_0x585ba1(0x1a4),'LTvFO':'init-not-called','Lnpzl':function(_0x48d895,_0x95a6a0,_0x45f8d1,_0x4fdc50,_0x457b69,_0x42ad8b,_0x5cee71){return _0x48d895(_0x95a6a0,_0x45f8d1,_0x4fdc50,_0x457b69,_0x42ad8b,_0x5cee71);},'qsqMN':function(_0x5243f1){return _0x5243f1();},'lySdU':_0x585ba1(0x1c0),'MJkuD':'<PasswordPlaceholder>','TqLrJ':_0x585ba1(0x194),'gMbCn':function(_0x907627,_0x19b94f,_0x144d71,_0xab3615){return _0x907627(_0x19b94f,_0x144d71,_0xab3615);},'MzytS':function(_0x70fc27,_0x383dc2,_0x2a5418){return _0x70fc27(_0x383dc2,_0x2a5418);},'QczWR':'Grid\x20stoppped.','ahNoQ':function(_0x14194b,_0x3cacc9){return _0x14194b===_0x3cacc9;},'DvvBv':_0x585ba1(0x1b9),'EKBCK':function(_0x4a6c06,_0x788bbb,_0x4a8840,_0x4eb470,_0x4a5027,_0x393200,_0x832615){return _0x4a6c06(_0x788bbb,_0x4a8840,_0x4eb470,_0x4a5027,_0x393200,_0x832615);},'CfoLN':_0x585ba1(0x189),'hLtPO':function(_0x457598,_0x2aaa4f){return _0x457598===_0x2aaa4f;},'muMJz':'invalid-grid-id','JEYUa':_0x585ba1(0x1bc)};let _0x445c83;try{!_0x2ea5b6[_0x585ba1(0x1a2)]&&(logger[_0x585ba1(0x199)](_0x3c7620[_0x585ba1(0x1b0)]),process[_0x585ba1(0x18e)](0x1));!fs[_0x585ba1(0x1d9)](_0x3c7620[_0x585ba1(0x19e)](getCredentialsPath))&&(logger[_0x585ba1(0x199)](_0x3c7620[_0x585ba1(0x18d)]),await _0x3c7620[_0x585ba1(0x1a7)](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620[_0x585ba1(0x1d5)],messageTypes['ERROR'],_0x3c7620[_0x585ba1(0x1bf)],null,_0x2ea5b6),process[_0x585ba1(0x18e)](0x1));logger[_0x585ba1(0x1d8)]('Stopping\x20grid\x20'+_0x2ea5b6[_0x585ba1(0x1a2)]),await _0x3c7620[_0x585ba1(0x1c3)](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620[_0x585ba1(0x1d5)],messageTypes[_0x585ba1(0x1cd)],null,null,_0x2ea5b6);const _0x4ff244=JSON[_0x585ba1(0x195)](fs[_0x585ba1(0x192)](_0x3c7620[_0x585ba1(0x1ce)](getCredentialsPath)));global_registry[_0x585ba1(0x1d0)]=_0x4ff244[_0x585ba1(0x18a)]['username'],global_registry[_0x585ba1(0x1db)]=_0x4ff244[_0x585ba1(0x18a)][_0x585ba1(0x19d)];const _0x2ebdea=WS_ENDPOINT['replace'](_0x3c7620['lySdU'],_0x4ff244[_0x585ba1(0x18a)]['username'])['replace'](_0x3c7620[_0x585ba1(0x1c1)],_0x4ff244[_0x585ba1(0x18a)]['password']),_0x3af231={};_0x3af231[_0x585ba1(0x1a0)]=ws,_0x3af231[_0x585ba1(0x1c6)]=0x36ee80,_0x445c83=new ReconnectingWebSocket(_0x2ebdea,[],_0x3af231),logger[_0x585ba1(0x1c4)](_0x3c7620[_0x585ba1(0x1aa)]),webSocketUtils[_0x585ba1(0x1ae)](_0x445c83,_0x2ea5b6['user'],_0x2ea5b6[_0x585ba1(0x19d)]);const [_0x2f1ebc,_0x38e195]=await _0x3c7620['gMbCn'](getGridDetails,_0x4ff244[_0x585ba1(0x18a)][_0x585ba1(0x1cb)],_0x4ff244['Browserstack'][_0x585ba1(0x19d)],_0x2ea5b6[_0x585ba1(0x1a2)]);if(_0x38e195){const _0x3d228a=_0x38e195[_0x585ba1(0x1d8)];global_registry['cloudProvider']=_0x3d228a[_0x585ba1(0x1a1)],global_registry[_0x585ba1(0x1cf)]=_0x3d228a['region'],global_registry['clusterName']=_0x3d228a['clusterName'];const _0x1524a3=await _0x3c7620['Lnpzl'](getCloudProviderObject,_0x3d228a[_0x585ba1(0x1a1)],_0x3d228a[_0x585ba1(0x1dc)],_0x3d228a[_0x585ba1(0x188)],_0x445c83,webSocketUtils,_0x2ea5b6),[_0x5e896c,_0x599abb,_0x984908,_0xf81522,_0x13a0df,_0x5d5855]=await _0x3c7620[_0x585ba1(0x1cc)](createK8sClient,_0x1524a3,_0x2ea5b6['skipTlsCertVerify']);await _0x3c7620[_0x585ba1(0x1cc)](scaleDownHubDeployment,_0x599abb,_0x3d228a['name']),logger[_0x585ba1(0x1d8)](_0x3c7620[_0x585ba1(0x1b1)]),process['exit'](0x0);}_0x3c7620[_0x585ba1(0x1c8)](_0x2f1ebc['statusCode'],0x191)&&(logger[_0x585ba1(0x199)](_0x3c7620[_0x585ba1(0x1c9)]),await _0x3c7620[_0x585ba1(0x1da)](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620[_0x585ba1(0x1d5)],messageTypes[_0x585ba1(0x1b2)],_0x3c7620['CfoLN'],null,_0x2ea5b6),process[_0x585ba1(0x18e)](0x1)),_0x3c7620['hLtPO'](_0x2f1ebc[_0x585ba1(0x19f)],0x190)&&(logger['error'](JSON['parse'](_0x2f1ebc[_0x585ba1(0x1bb)])[_0x585ba1(0x1b5)]),await _0x3c7620[_0x585ba1(0x1da)](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620['JTqHL'],messageTypes[_0x585ba1(0x1b2)],_0x3c7620[_0x585ba1(0x1af)],null,_0x2ea5b6),process[_0x585ba1(0x18e)](0x1)),logger[_0x585ba1(0x199)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2f1ebc)),await _0x3c7620['HBdzT'](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620[_0x585ba1(0x1d5)],messageTypes['ERROR'],_0x3c7620['JEYUa'],_0x2f1ebc,_0x2ea5b6),process[_0x585ba1(0x18e)](0x1);}catch(_0x3593a4){const _0x2d33c5=_0x585ba1(0x1d3)+_0x3593a4+'\x20\x0a'+JSON[_0x585ba1(0x1d6)](_0x3593a4['stack'])+'\x20';logger[_0x585ba1(0x199)](_0x2d33c5),process[_0x585ba1(0x18e)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x3e7c9a=a22_0x5577;(function(_0x2cbb81,_0x4454c7){const _0x100305=a22_0x5577,_0x31544b=_0x2cbb81();while(!![]){try{const _0x19b27d=-parseInt(_0x100305(0xb9))/0x1+parseInt(_0x100305(0xda))/0x2*(-parseInt(_0x100305(0xb5))/0x3)+-parseInt(_0x100305(0xe9))/0x4+parseInt(_0x100305(0x9e))/0x5*(parseInt(_0x100305(0xbe))/0x6)+parseInt(_0x100305(0x8a))/0x7*(parseInt(_0x100305(0x9d))/0x8)+parseInt(_0x100305(0x86))/0x9*(-parseInt(_0x100305(0xe2))/0xa)+parseInt(_0x100305(0x83))/0xb*(-parseInt(_0x100305(0xd2))/0xc);if(_0x19b27d===_0x4454c7)break;else _0x31544b['push'](_0x31544b['shift']());}catch(_0x201294){_0x31544b['push'](_0x31544b['shift']());}}}(a22_0x1469,0x58a5a),require(a22_0x3e7c9a(0x99))[a22_0x3e7c9a(0x90)]());let gridURL=a22_0x3e7c9a(0xc9),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x3e7c9a(0xa6);const _env=(process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0x85)]||a22_0x3e7c9a(0xec))['toLowerCase']();if(_env===a22_0x3e7c9a(0xb6)||_env===a22_0x3e7c9a(0xc7))gridURL=a22_0x3e7c9a(0xdc),bsApiUrl=a22_0x3e7c9a(0xb3),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env===a22_0x3e7c9a(0x81))&&(gridURL=a22_0x3e7c9a(0xed),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x3e7c9a(0x82));exports[a22_0x3e7c9a(0xa7)]=process['env'][a22_0x3e7c9a(0xa7)]||gridURL,exports[a22_0x3e7c9a(0xc3)]=process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0xc3)]||bsApiUrl,exports[a22_0x3e7c9a(0x88)]=process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0x88)]||agApiUrl,exports[a22_0x3e7c9a(0xc2)]=a22_0x3e7c9a(0xaf)+this[a22_0x3e7c9a(0x88)]+a22_0x3e7c9a(0x98),exports['CP_CONFIG_FILE']=a22_0x3e7c9a(0x91),exports[a22_0x3e7c9a(0xdb)]=a22_0x3e7c9a(0xb0),exports[a22_0x3e7c9a(0xab)]=a22_0x3e7c9a(0xe0),exports[a22_0x3e7c9a(0xce)]=a22_0x3e7c9a(0x7d),exports[a22_0x3e7c9a(0x8d)]='BSTACK-ATS-CLUSTER',exports[a22_0x3e7c9a(0xc6)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x3e7c9a(0xbd)]=a22_0x3e7c9a(0x9a),exports[a22_0x3e7c9a(0x8e)]=a22_0x3e7c9a(0xa1),exports['AZURE']=a22_0x3e7c9a(0xd8),exports['GCP']=a22_0x3e7c9a(0xdd),exports[a22_0x3e7c9a(0xe5)]=[this[a22_0x3e7c9a(0xce)],this[a22_0x3e7c9a(0xd9)],this[a22_0x3e7c9a(0xa0)]];const a22_0x1f4f40={};function a22_0x5577(_0x197973,_0x25f6eb){const _0x146901=a22_0x1469();return a22_0x5577=function(_0x5577e2,_0x5f0642){_0x5577e2=_0x5577e2-0x7c;let _0x3f9224=_0x146901[_0x5577e2];return _0x3f9224;},a22_0x5577(_0x197973,_0x25f6eb);}a22_0x1f4f40[a22_0x3e7c9a(0xaa)]=a22_0x3e7c9a(0xac),a22_0x1f4f40[a22_0x3e7c9a(0xe6)]=a22_0x3e7c9a(0xa4);const a22_0x398340={};a22_0x398340[a22_0x3e7c9a(0xaa)]=a22_0x3e7c9a(0x89),a22_0x398340[a22_0x3e7c9a(0xe6)]=a22_0x3e7c9a(0xeb);function a22_0x1469(){const _0x435088=['CLUSTER_AUTOSCALER_STACK_NAME','stag','GRID_URL','grid.browserstack.com','NULL','ERROR','REDACTED','error','AWS','env','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','HELP_HEADER_MESSAGE','246624ixcinG','configure','resourceInfo','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','HELP_FOOTER_MESSAGE','messageTypes','azure','AZURE','54558SOQHZQ','IAM_USER_NAME','grid-devhst.bsstag.com','gcp','COMMON_HST_TAGS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','high-scale-grid','WS_EVENTS','189560UFCbLo','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','DEFAULT_CLUSTER_DETAILS','ALL_SUPPORTED_CLOUD_PROVIDERS','Value','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','TURBOSCALE_CUSTOM_TAGS','881520XlQdvk','SUPPORTED_CLOUD_PROVIDERS','BrowserStack-Automate-TurboScale','prod','grid-preprod.bsstag.com','split','stop','aws','us-east-1','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','start','pre-prod','grid-api-preprod.bsstag.com','187isVFCC','CLI_RUN_STARTED','BROWSERSTACK_ENV','9umEMYZ','root','AG_API_URL','browserstack:service','7ISNTql','gridProfile','push','CLUSTER_DEP_STACK_NAME','TURBOSCALE_DEPLOYMENT','RESOURCES','config','credentials','gridUrl','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','create','log','LOG','CLUSTER','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','dotenv','BSTACK-ATS-CLUSTER-HUB-HA','cliRunStarted','CLI_RUN_FINISHED','2447840cLUxua','20135dlUlii','TRIAL_GRID_URL','GCP','browserstack-turboscale-grid','success','pre-check','BrowserStack','LINK_MESSAGE','grid-api.browserstack.com','DASHBOARD_ENDPOINT','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Key','DEFAULT_GRID_NAME','browserstack:managedBy','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','grid-profile','wss://','BrowserStackIAMUser','CLI_ARGS_REGEX','forEach','api-devhst.bsstag.com','INFO','6civACi','staging','init','delete','8356ictTEg','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','list','UNKNOWN','CLUSTER_HUB_HA_STACK_NAME','1056hapLOh','warning','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','WS_ENDPOINT','BS_API_URL','[REDACTED]','REGION'];a22_0x1469=function(){return _0x435088;};return a22_0x1469();}const common_hst_tags_list=[a22_0x1f4f40,a22_0x398340];if(process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0xe8)]){const parsedTags=process[a22_0x3e7c9a(0xcf)][a22_0x3e7c9a(0xe8)][a22_0x3e7c9a(0xee)](',');parsedTags[a22_0x3e7c9a(0xb2)](_0x101032=>{const _0x7a8648=a22_0x3e7c9a,_0x3fcd66=_0x101032['split'](':'),_0x331513={};_0x331513[_0x7a8648(0xaa)]=_0x3fcd66[0x0],_0x331513[_0x7a8648(0xe6)]=_0x3fcd66[0x1],common_hst_tags_list[_0x7a8648(0x8c)](_0x331513);});}exports[a22_0x3e7c9a(0xde)]=common_hst_tags_list;const a22_0x2ce470={};a22_0x2ce470[a22_0x3e7c9a(0xac)]=a22_0x3e7c9a(0xa4),a22_0x2ce470[a22_0x3e7c9a(0x89)]=a22_0x3e7c9a(0xeb),exports['HST_CLUSTER_TAGS']=a22_0x2ce470,exports[a22_0x3e7c9a(0xea)]=[this[a22_0x3e7c9a(0xce)]];const a22_0x439b7f={};a22_0x439b7f[a22_0x3e7c9a(0x96)]=a22_0x3e7c9a(0x95),a22_0x439b7f[a22_0x3e7c9a(0x8f)]=a22_0x3e7c9a(0xd4),a22_0x439b7f[a22_0x3e7c9a(0xc8)]=a22_0x3e7c9a(0x92),a22_0x439b7f[a22_0x3e7c9a(0x84)]=a22_0x3e7c9a(0x9b),a22_0x439b7f[a22_0x3e7c9a(0x9c)]='cliRunFinished',exports[a22_0x3e7c9a(0xe1)]=a22_0x439b7f,exports['global_registry']={},exports[a22_0x3e7c9a(0xa5)]=a22_0x3e7c9a(0x7f);const a22_0x520b85={};a22_0x520b85['root']=a22_0x3e7c9a(0xa8)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xb7)]=a22_0x3e7c9a(0xd0)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xd3)]=a22_0x3e7c9a(0xc0)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0x94)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xbb)]={},a22_0x520b85[a22_0x3e7c9a(0xb8)]=a22_0x3e7c9a(0xc1)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85['connect']=a22_0x3e7c9a(0xba)+this['LINK_MESSAGE'],a22_0x520b85[a22_0x3e7c9a(0x80)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0x7c)]=a22_0x3e7c9a(0xe7)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xbb)][a22_0x3e7c9a(0x87)]=a22_0x3e7c9a(0xa9)+this[a22_0x3e7c9a(0xa5)],a22_0x520b85[a22_0x3e7c9a(0xbb)]['grid']=a22_0x3e7c9a(0x93)+this['LINK_MESSAGE'],a22_0x520b85[a22_0x3e7c9a(0xbb)][a22_0x3e7c9a(0x8b)]=a22_0x3e7c9a(0xad)+this[a22_0x3e7c9a(0xa5)],exports[a22_0x3e7c9a(0xd1)]=a22_0x520b85,exports[a22_0x3e7c9a(0xd6)]=a22_0x3e7c9a(0xdf);const a22_0xdfd70e={};a22_0xdfd70e['SUCCESS']=a22_0x3e7c9a(0xa2),a22_0xdfd70e[a22_0x3e7c9a(0xcb)]=a22_0x3e7c9a(0xcd),a22_0xdfd70e[a22_0x3e7c9a(0xb4)]='info',a22_0xdfd70e['WARNING']=a22_0x3e7c9a(0xbf),a22_0xdfd70e[a22_0x3e7c9a(0xbc)]='unknown',a22_0xdfd70e[a22_0x3e7c9a(0xca)]=null,exports[a22_0x3e7c9a(0xd7)]=a22_0xdfd70e,exports[a22_0x3e7c9a(0xb1)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x3e7c9a(0xcc)]=a22_0x3e7c9a(0xc4);const a22_0x47a381={};a22_0x47a381[a22_0x3e7c9a(0xae)]=a22_0x3e7c9a(0xd5);const a22_0x853314={};a22_0x853314[a22_0x3e7c9a(0xa3)]=a22_0x47a381,exports['MessageDescription']=a22_0x853314,exports[a22_0x3e7c9a(0x9f)]=a22_0x3e7c9a(0xe3);const a22_0xfdac6b={};a22_0xfdac6b[a22_0x3e7c9a(0x97)]='high-scale-grid-cluster',a22_0xfdac6b['CLOUD_PROVIDER']=a22_0x3e7c9a(0x7d),a22_0xfdac6b[a22_0x3e7c9a(0xc5)]=a22_0x3e7c9a(0x7e),exports[a22_0x3e7c9a(0xe4)]=a22_0xfdac6b;
1
+ const a22_0x432e54=a22_0x5c23;(function(_0x5993f6,_0x10f937){const _0xbda1a6=a22_0x5c23,_0x13334a=_0x5993f6();while(!![]){try{const _0x162f16=-parseInt(_0xbda1a6(0x1cf))/0x1*(-parseInt(_0xbda1a6(0x181))/0x2)+-parseInt(_0xbda1a6(0x19b))/0x3+parseInt(_0xbda1a6(0x1a0))/0x4*(-parseInt(_0xbda1a6(0x195))/0x5)+parseInt(_0xbda1a6(0x1de))/0x6*(-parseInt(_0xbda1a6(0x1e1))/0x7)+parseInt(_0xbda1a6(0x194))/0x8+parseInt(_0xbda1a6(0x1aa))/0x9*(parseInt(_0xbda1a6(0x191))/0xa)+parseInt(_0xbda1a6(0x178))/0xb;if(_0x162f16===_0x10f937)break;else _0x13334a['push'](_0x13334a['shift']());}catch(_0x19f7af){_0x13334a['push'](_0x13334a['shift']());}}}(a22_0x21d3,0x271e3),require('dotenv')[a22_0x432e54(0x1c3)]());let gridURL=a22_0x432e54(0x1b4),bsApiUrl=a22_0x432e54(0x1a4),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x432e54(0x196)]['BROWSERSTACK_ENV']||'prod')['toLowerCase']();if(_env===a22_0x432e54(0x1dd)||_env===a22_0x432e54(0x1d7))gridURL=a22_0x432e54(0x18e),bsApiUrl=a22_0x432e54(0x192),agApiUrl=a22_0x432e54(0x1db);else(_env===a22_0x432e54(0x197)||_env===a22_0x432e54(0x173))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x432e54(0x188),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x432e54(0x198)]=process[a22_0x432e54(0x196)][a22_0x432e54(0x198)]||gridURL,exports['BS_API_URL']=process[a22_0x432e54(0x196)][a22_0x432e54(0x1c1)]||bsApiUrl,exports[a22_0x432e54(0x1b3)]=process[a22_0x432e54(0x196)][a22_0x432e54(0x1b3)]||agApiUrl,exports[a22_0x432e54(0x19c)]=a22_0x432e54(0x1cb)+this['AG_API_URL']+a22_0x432e54(0x1da),exports[a22_0x432e54(0x1ae)]=a22_0x432e54(0x1be),exports['IAM_USER_NAME']=a22_0x432e54(0x1d4),exports['DEFAULT_GRID_NAME']=a22_0x432e54(0x193),exports['AWS']=a22_0x432e54(0x1df),exports[a22_0x432e54(0x1e2)]=a22_0x432e54(0x19a),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x432e54(0x1bd),exports[a22_0x432e54(0x1ba)]=a22_0x432e54(0x1b1),exports[a22_0x432e54(0x185)]=a22_0x432e54(0x180),exports[a22_0x432e54(0x1b9)]='azure',exports[a22_0x432e54(0x171)]=a22_0x432e54(0x1d0),exports[a22_0x432e54(0x17d)]=[this[a22_0x432e54(0x1bf)],this['AZURE'],this['GCP']];const a22_0x1fd944={};a22_0x1fd944[a22_0x432e54(0x182)]='browserstack:managedBy',a22_0x1fd944[a22_0x432e54(0x187)]='BrowserStack';const a22_0x3baa88={};a22_0x3baa88[a22_0x432e54(0x182)]=a22_0x432e54(0x1d1),a22_0x3baa88['Value']=a22_0x432e54(0x172);const common_hst_tags_list=[a22_0x1fd944,a22_0x3baa88];if(process[a22_0x432e54(0x196)][a22_0x432e54(0x18b)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x432e54(0x1c0)](',');parsedTags[a22_0x432e54(0x1a2)](_0x3936de=>{const _0x2090d5=a22_0x432e54,_0x575af5=_0x3936de[_0x2090d5(0x1c0)](':'),_0xdf259={};_0xdf259[_0x2090d5(0x182)]=_0x575af5[0x0],_0xdf259[_0x2090d5(0x187)]=_0x575af5[0x1],common_hst_tags_list[_0x2090d5(0x1c2)](_0xdf259);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x578a87={};a22_0x578a87[a22_0x432e54(0x18a)]=a22_0x432e54(0x190),a22_0x578a87[a22_0x432e54(0x1d1)]=a22_0x432e54(0x172),exports[a22_0x432e54(0x1b8)]=a22_0x578a87,exports[a22_0x432e54(0x1cc)]=[this[a22_0x432e54(0x1bf)]];const a22_0x1e8a02={};a22_0x1e8a02[a22_0x432e54(0x1dc)]=a22_0x432e54(0x1ac),a22_0x1e8a02[a22_0x432e54(0x1b5)]=a22_0x432e54(0x189),a22_0x1e8a02[a22_0x432e54(0x175)]=a22_0x432e54(0x1d8),a22_0x1e8a02[a22_0x432e54(0x1b0)]=a22_0x432e54(0x1ce),a22_0x1e8a02[a22_0x432e54(0x199)]=a22_0x432e54(0x1a6),exports[a22_0x432e54(0x1a1)]=a22_0x1e8a02,exports['global_registry']={},exports[a22_0x432e54(0x1c5)]=a22_0x432e54(0x183);const a22_0x560968={};function a22_0x21d3(){const _0x248b01=['57022ixPOPe','CLUSTER_DEP_STACK_NAME','CLUSTER','GCP','BrowserStack-Automate-TurboScale','pre-prod','unknown','GRID_URL','REGION','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','5215265dPuHmP','WARNING','warning','[REDACTED]','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','ALL_SUPPORTED_CLOUD_PROVIDERS','REDACTED','grid-profile','browserstack-turboscale-grid','19036JazAbG','Key','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','root','TURBOSCALE_DEPLOYMENT','init','Value','api-preprod.bsstag.com','resourceInfo','browserstack:managedBy','TURBOSCALE_CUSTOM_TAGS','list','pre-check','grid-devhst.bsstag.com','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BrowserStack','50rTgkXz','api-devhst.bsstag.com','high-scale-grid','471488iHjoYU','423740SHIWRI','env','preprod','DASHBOARD_ENDPOINT','CLI_RUN_FINISHED','BSTACK-ATS-CLUSTER','685221jjgzNk','WS_ENDPOINT','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','UNKNOWN','create','12DBMDDs','WS_EVENTS','forEach','ERROR','api.browserstack.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','cliRunFinished','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','us-east-1','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','576297rbthKr','success','log','CLOUD_PROVIDER','CP_CONFIG_FILE','TRIAL_GRID_URL','CLI_RUN_STARTED','BSTACK-ATS-CLUSTER-HUB-HA','info','AG_API_URL','grid.browserstack.com','RESOURCES','HELP_HEADER_MESSAGE','connect','HST_CLUSTER_TAGS','AZURE','CLUSTER_HUB_HA_STACK_NAME','CLI_ARGS_REGEX','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','BSTACK-ATS-CLUSTER-AUTOSCALER','credentials','AWS','split','BS_API_URL','push','config','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','LINK_MESSAGE','SUCCESS','gridProfile','INFO','error','high-scale-grid-cluster','wss://','SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','cliRunStarted','7uUBDaw','gcp','browserstack:service','pre_check','messageTypes','BrowserStackIAMUser','NULL','start','stag','gridUrl','HELP_FOOTER_MESSAGE','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','grid-api-devhst.bsstag.com','LOG','staging','204NXwLla','aws','DEFAULT_CLUSTER_DETAILS'];a22_0x21d3=function(){return _0x248b01;};return a22_0x21d3();}a22_0x560968[a22_0x432e54(0x184)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this['LINK_MESSAGE'],a22_0x560968[a22_0x432e54(0x186)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x432e54(0x1c5)],a22_0x560968['configure']=a22_0x432e54(0x1a5)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x19f)]=a22_0x432e54(0x177)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x18c)]={},a22_0x560968['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x1b7)]=a22_0x432e54(0x1a9)+this['LINK_MESSAGE'],a22_0x560968[a22_0x432e54(0x1d6)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x432e54(0x1c5)],a22_0x560968['stop']=a22_0x432e54(0x19d)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x1d2)]=a22_0x432e54(0x17c)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x18c)][a22_0x432e54(0x184)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x560968[a22_0x432e54(0x18c)]['grid']=a22_0x432e54(0x1bc)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x18c)][a22_0x432e54(0x1c7)]=a22_0x432e54(0x1cd)+this['LINK_MESSAGE'],exports[a22_0x432e54(0x1b6)]=a22_0x560968,exports[a22_0x432e54(0x1d9)]=a22_0x432e54(0x1a7);const a22_0x30a5cf={};a22_0x30a5cf[a22_0x432e54(0x1c6)]=a22_0x432e54(0x1ab),a22_0x30a5cf[a22_0x432e54(0x1a3)]=a22_0x432e54(0x1c9),a22_0x30a5cf[a22_0x432e54(0x1c8)]=a22_0x432e54(0x1b2),a22_0x30a5cf[a22_0x432e54(0x179)]=a22_0x432e54(0x17a),a22_0x30a5cf[a22_0x432e54(0x19e)]=a22_0x432e54(0x174),a22_0x30a5cf[a22_0x432e54(0x1d5)]=null,exports[a22_0x432e54(0x1d3)]=a22_0x30a5cf,exports[a22_0x432e54(0x1bb)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x432e54(0x17e)]=a22_0x432e54(0x17b);const a22_0x57a65b={};a22_0x57a65b[a22_0x432e54(0x17f)]=a22_0x432e54(0x1c4);const a22_0x27953d={};function a22_0x5c23(_0x17b3d4,_0x35792b){const _0x21d381=a22_0x21d3();return a22_0x5c23=function(_0x5c23a0,_0x4644fa){_0x5c23a0=_0x5c23a0-0x171;let _0x43b623=_0x21d381[_0x5c23a0];return _0x43b623;},a22_0x5c23(_0x17b3d4,_0x35792b);}a22_0x27953d[a22_0x432e54(0x18d)]=a22_0x57a65b,exports['MessageDescription']=a22_0x27953d,exports[a22_0x432e54(0x1af)]=a22_0x432e54(0x18f);const a22_0x7c3279={};a22_0x7c3279[a22_0x432e54(0x1e3)]=a22_0x432e54(0x1ca),a22_0x7c3279[a22_0x432e54(0x1ad)]=a22_0x432e54(0x1df),a22_0x7c3279[a22_0x432e54(0x176)]=a22_0x432e54(0x1a8),exports[a22_0x432e54(0x1e0)]=a22_0x7c3279;
@@ -1 +1 @@
1
- const a23_0x208a42=a23_0x56a3;(function(_0x3e9ea3,_0x2f12e1){const _0x1d3c8d=a23_0x56a3,_0x4b025c=_0x3e9ea3();while(!![]){try{const _0x252920=-parseInt(_0x1d3c8d(0x8d))/0x1+-parseInt(_0x1d3c8d(0x88))/0x2+-parseInt(_0x1d3c8d(0x95))/0x3+parseInt(_0x1d3c8d(0x83))/0x4+parseInt(_0x1d3c8d(0x9b))/0x5+parseInt(_0x1d3c8d(0x90))/0x6+-parseInt(_0x1d3c8d(0x9a))/0x7*(-parseInt(_0x1d3c8d(0x8c))/0x8);if(_0x252920===_0x2f12e1)break;else _0x4b025c['push'](_0x4b025c['shift']());}catch(_0x4258b3){_0x4b025c['push'](_0x4b025c['shift']());}}}(a23_0x24f3,0x48767));const winston=require(a23_0x208a42(0x9c)),fs=require('fs'),path=require(a23_0x208a42(0xa0)),logDir='log';function a23_0x24f3(){const _0x31116d=['join','combine','level','444689VMubwY','1125215rhDaYO','winston','createLogger','mkdirSync','name','path','existsSync','365612XDQQiZ','File','colorize','console.info','YYYY-MM-DD\x20HH:mm:ss','816608IHgIWW','events.log','Console','format','64FhkFbR','56911kQuyap','\x20-\x20','transports','3113550CxdKQb','message','usage.log','printf','logger','1744695bJIOSW','timestamp'];a23_0x24f3=function(){return _0x31116d;};return a23_0x24f3();}!fs[a23_0x208a42(0xa1)](logDir)&&fs[a23_0x208a42(0x9e)](logDir);const a23_0x1003fb={};a23_0x1003fb[a23_0x208a42(0x8b)]=a23_0x208a42(0x87);const a23_0x56f0a7={};a23_0x56f0a7[a23_0x208a42(0x99)]=!![];function a23_0x56a3(_0x1499d1,_0x20ff21){const _0x24f386=a23_0x24f3();return a23_0x56a3=function(_0x56a300,_0x565006){_0x56a300=_0x56a300-0x83;let _0x560789=_0x24f386[_0x56a300];return _0x560789;},a23_0x56a3(_0x1499d1,_0x20ff21);}const a23_0x2c7224={};a23_0x2c7224[a23_0x208a42(0x9f)]=a23_0x208a42(0x86),exports[a23_0x208a42(0x94)]=new winston[(a23_0x208a42(0x9d))]({'format':winston[a23_0x208a42(0x8b)][a23_0x208a42(0x98)](winston[a23_0x208a42(0x8b)][a23_0x208a42(0x96)](a23_0x1003fb),winston[a23_0x208a42(0x8b)][a23_0x208a42(0x85)](a23_0x56f0a7),winston[a23_0x208a42(0x8b)][a23_0x208a42(0x93)](_0x33e703=>_0x33e703[a23_0x208a42(0x96)]+a23_0x208a42(0x8e)+_0x33e703[a23_0x208a42(0x99)]+':\x20'+_0x33e703[a23_0x208a42(0x91)])),'transports':[new winston['transports'][(a23_0x208a42(0x8a))](a23_0x2c7224),new winston[(a23_0x208a42(0x8f))][(a23_0x208a42(0x84))]({'filename':path[a23_0x208a42(0x97)](logDir,a23_0x208a42(0x89)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x208a42(0x8f))]['File']({'filename':path[a23_0x208a42(0x97)](logDir,a23_0x208a42(0x92)),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x208a42(0x9d))](winstonFileLoggerParams);
1
+ const a23_0x171afd=a23_0x521a;(function(_0x2cc99a,_0x209e15){const _0x2106fa=a23_0x521a,_0x4e9f73=_0x2cc99a();while(!![]){try{const _0x76ed82=-parseInt(_0x2106fa(0xf7))/0x1+-parseInt(_0x2106fa(0xf4))/0x2+-parseInt(_0x2106fa(0x10b))/0x3+-parseInt(_0x2106fa(0xf0))/0x4+-parseInt(_0x2106fa(0xf3))/0x5*(-parseInt(_0x2106fa(0x105))/0x6)+parseInt(_0x2106fa(0x104))/0x7*(-parseInt(_0x2106fa(0x10f))/0x8)+parseInt(_0x2106fa(0xf5))/0x9;if(_0x76ed82===_0x209e15)break;else _0x4e9f73['push'](_0x4e9f73['shift']());}catch(_0x5756a6){_0x4e9f73['push'](_0x4e9f73['shift']());}}}(a23_0x4f66,0x89de9));const winston=require(a23_0x171afd(0xf6)),fs=require('fs'),path=require(a23_0x171afd(0x106)),logDir=a23_0x171afd(0x10d);!fs[a23_0x171afd(0x10a)](logDir)&&fs[a23_0x171afd(0xf1)](logDir);const a23_0x20e207={};a23_0x20e207[a23_0x171afd(0x109)]=a23_0x171afd(0x100);function a23_0x521a(_0xa2b2da,_0x535720){const _0x4f66c3=a23_0x4f66();return a23_0x521a=function(_0x521aa5,_0x2baeb4){_0x521aa5=_0x521aa5-0xf0;let _0x5b9498=_0x4f66c3[_0x521aa5];return _0x5b9498;},a23_0x521a(_0xa2b2da,_0x535720);}const a23_0x385c3f={};a23_0x385c3f[a23_0x171afd(0x107)]=!![];const a23_0x59adf7={};a23_0x59adf7[a23_0x171afd(0xf2)]=a23_0x171afd(0x101),exports[a23_0x171afd(0x108)]=new winston[(a23_0x171afd(0x103))]({'format':winston[a23_0x171afd(0x109)]['combine'](winston[a23_0x171afd(0x109)][a23_0x171afd(0xfa)](a23_0x20e207),winston[a23_0x171afd(0x109)][a23_0x171afd(0xff)](a23_0x385c3f),winston[a23_0x171afd(0x109)]['printf'](_0x5a883d=>_0x5a883d['timestamp']+a23_0x171afd(0xfc)+_0x5a883d[a23_0x171afd(0x107)]+':\x20'+_0x5a883d[a23_0x171afd(0xfd)])),'transports':[new winston[(a23_0x171afd(0xfe))][(a23_0x171afd(0xf9))](a23_0x59adf7),new winston['transports'][(a23_0x171afd(0x10e))]({'filename':path[a23_0x171afd(0xfb)](logDir,a23_0x171afd(0xf8)),'level':a23_0x171afd(0x102)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x171afd(0xfe))][(a23_0x171afd(0x10e))]({'filename':path[a23_0x171afd(0xfb)](logDir,a23_0x171afd(0x10c)),'level':a23_0x171afd(0x102)})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);function a23_0x4f66(){const _0x3a48c0=['826712SAxSIm','mkdirSync','name','5qNGFzX','1001532MGqdDd','21518262YqTfxB','winston','268875xXyjIp','events.log','Console','timestamp','join','\x20-\x20','message','transports','colorize','YYYY-MM-DD\x20HH:mm:ss','console.info','debug','createLogger','5469751pLvQZT','1164558KdrJNx','path','level','logger','format','existsSync','787758OeqzBb','usage.log','log','File','8zLuIqh'];a23_0x4f66=function(){return _0x3a48c0;};return a23_0x4f66();}
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x3594(){const _0x524131=['10888seuoTi','5660930kSONWQ','usage','env','1350TisiIl','epilogue','./config/constants','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','commands','2114NjaGSD','5660GAwUim','1695365GYmYel','help','3nfZRss','TdeZQ','554721IKZucE','2FFiQEI','oGVyO','26ThJjLK','demandCommand','13794276IPdcLr','6jcJODr','2966252cSojrw'];a24_0x3594=function(){return _0x524131;};return a24_0x3594();}function a24_0x2fec(_0x196cf7,_0x1897ec){const _0x359422=a24_0x3594();return a24_0x2fec=function(_0x2fec66,_0x1861f8){_0x2fec66=_0x2fec66-0x95;let _0x50cc32=_0x359422[_0x2fec66];return _0x50cc32;},a24_0x2fec(_0x196cf7,_0x1897ec);}const a24_0x20277e=a24_0x2fec;(function(_0x1f419e,_0x1f63a5){const _0xd7567f=a24_0x2fec,_0x4f30b4=_0x1f419e();while(!![]){try{const _0x6312fe=parseInt(_0xd7567f(0x98))/0x1*(-parseInt(_0xd7567f(0x99))/0x2)+-parseInt(_0xd7567f(0x96))/0x3*(parseInt(_0xd7567f(0x9f))/0x4)+-parseInt(_0xd7567f(0xab))/0x5*(parseInt(_0xd7567f(0x9e))/0x6)+-parseInt(_0xd7567f(0xa9))/0x7*(-parseInt(_0xd7567f(0xa0))/0x8)+-parseInt(_0xd7567f(0xa4))/0x9*(parseInt(_0xd7567f(0xaa))/0xa)+-parseInt(_0xd7567f(0xa1))/0xb+-parseInt(_0xd7567f(0x9d))/0xc*(-parseInt(_0xd7567f(0x9b))/0xd);if(_0x6312fe===_0x1f63a5)break;else _0x4f30b4['push'](_0x4f30b4['shift']());}catch(_0x347666){_0x4f30b4['push'](_0x4f30b4['shift']());}}}(a24_0x3594,0x7402d));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x20277e(0xa6));process[a24_0x20277e(0xa3)][a24_0x20277e(0xa7)]=0x1;function run(_0x496b00){const _0x3214c9=a24_0x20277e,_0x16f403={};_0x16f403[_0x3214c9(0x97)]=_0x3214c9(0xa8),_0x16f403[_0x3214c9(0x9a)]='help';const _0x263135=_0x16f403;_0x496b00[_0x3214c9(0xa2)](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x263135[_0x3214c9(0x97)])[_0x3214c9(0x9c)]()[_0x3214c9(0x95)](_0x263135[_0x3214c9(0x9a)])[_0x3214c9(0xa5)](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a24_0x2adef1=a24_0x3e52;function a24_0x3e52(_0xb90851,_0x552f71){const _0x4ff377=a24_0x4ff3();return a24_0x3e52=function(_0x3e5218,_0x4a22f4){_0x3e5218=_0x3e5218-0x1e1;let _0x42fb2f=_0x4ff377[_0x3e5218];return _0x42fb2f;},a24_0x3e52(_0xb90851,_0x552f71);}(function(_0x4f4980,_0x156d6d){const _0x5efe0e=a24_0x3e52,_0x2d451a=_0x4f4980();while(!![]){try{const _0xe9b30=-parseInt(_0x5efe0e(0x1e1))/0x1+parseInt(_0x5efe0e(0x1e7))/0x2*(parseInt(_0x5efe0e(0x1e8))/0x3)+parseInt(_0x5efe0e(0x1e6))/0x4*(-parseInt(_0x5efe0e(0x1ec))/0x5)+parseInt(_0x5efe0e(0x1f1))/0x6+-parseInt(_0x5efe0e(0x1e9))/0x7+-parseInt(_0x5efe0e(0x1f2))/0x8*(parseInt(_0x5efe0e(0x1f0))/0x9)+parseInt(_0x5efe0e(0x1ed))/0xa*(parseInt(_0x5efe0e(0x1e3))/0xb);if(_0xe9b30===_0x156d6d)break;else _0x2d451a['push'](_0x2d451a['shift']());}catch(_0x2683fc){_0x2d451a['push'](_0x2d451a['shift']());}}}(a24_0x4ff3,0x9ad94));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2adef1(0x1f3));process[a24_0x2adef1(0x1ea)][a24_0x2adef1(0x1e5)]=0x1;function run(_0x2ce40a){const _0x44bf85=a24_0x2adef1,_0x322e39={};_0x322e39[_0x44bf85(0x1f7)]=_0x44bf85(0x1e2),_0x322e39[_0x44bf85(0x1ee)]=_0x44bf85(0x1f6);const _0x4790be=_0x322e39;_0x2ce40a[_0x44bf85(0x1f5)](HELP_HEADER_MESSAGE['root'])[_0x44bf85(0x1f4)](_0x4790be[_0x44bf85(0x1f7)])[_0x44bf85(0x1e4)]()['help'](_0x4790be[_0x44bf85(0x1ee)])[_0x44bf85(0x1ef)](HELP_FOOTER_MESSAGE);}module[a24_0x2adef1(0x1eb)]=run;function a24_0x4ff3(){const _0x99021=['459080PpuQhQ','./config/constants','commandDir','usage','help','OcNpQ','648082diihYc','commands','55pEOzwq','demandCommand','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','52PUNsif','8oxkQqG','554052aifYQN','1365539XsPzJa','env','exports','13715CFSQEu','1916470KMdiNx','zRUkR','epilogue','198buxJIn','6471462jdtoXj'];a24_0x4ff3=function(){return _0x99021;};return a24_0x4ff3();}