browserstack-node-sdk 1.48.1 → 1.49.1

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 (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +3 -2
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x5c90(){const _0x401c53=['AbJkf','JOOCc','stack','WCsVy','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','allGrids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','emtOa','all-grids','bstackUsername','454096gTEVaS','boolean','clusterName','running','../../config/constants','password','body','BIgBV','list-grids-called','username','../../utils/instrumentationUtils','table','handler','iXgwh','grids','BaXRM','CfmNS','GET','statusCode','unknown-error','list','existsSync','KtxTi','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','rYxzI','forEach','264078rqzbDL','/packages/cli/get-grids','grid-id','status','ERROR','1079930pSbtJP','grid','Vhoec','queued','log','parse','help','uuid','got','ghLlG','RbIDo','KNVPz','type','\x0aFound\x20the\x20following\x20grids:\x0a','13410207JdkNvh','jwJkU','2157974OSHLvF','2028984OgpkbY','command','3477186DwIDxy','https://','bLnRl','8rnzbxS','error','bstackAccesskey','CWMvH','push','desc','grid-name','45mFJsVp','requestId','Browserstack','YzaxE','usage'];a15_0x5c90=function(){return _0x401c53;};return a15_0x5c90();}const a15_0x61ee0e=a15_0x3dea;(function(_0x1c191,_0x5299b6){const _0x238e58=a15_0x3dea,_0x60f2ec=_0x1c191();while(!![]){try{const _0x5daf75=-parseInt(_0x238e58(0x173))/0x1+-parseInt(_0x238e58(0x178))/0x2+parseInt(_0x238e58(0x13d))/0x3+parseInt(_0x238e58(0x159))/0x4*(-parseInt(_0x238e58(0x149))/0x5)+parseInt(_0x238e58(0x13f))/0x6+-parseInt(_0x238e58(0x13c))/0x7*(parseInt(_0x238e58(0x142))/0x8)+parseInt(_0x238e58(0x186))/0x9;if(_0x5daf75===_0x5299b6)break;else _0x60f2ec['push'](_0x60f2ec['shift']());}catch(_0x38df6d){_0x60f2ec['push'](_0x60f2ec['shift']());}}}(a15_0x5c90,0x95601));const fs=require('fs'),got=require(a15_0x61ee0e(0x180)),{table}=require(a15_0x61ee0e(0x164)),{v4:uuidv4}=require(a15_0x61ee0e(0x17f)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x61ee0e(0x15d)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x61ee0e(0x163));function a15_0x3dea(_0x5d253a,_0x1a1d39){const _0x5c9096=a15_0x5c90();return a15_0x3dea=function(_0x3dea12,_0x32c872){_0x3dea12=_0x3dea12-0x13c;let _0x77f8c2=_0x5c9096[_0x3dea12];return _0x77f8c2;},a15_0x3dea(_0x5d253a,_0x1a1d39);}exports[a15_0x61ee0e(0x13e)]=a15_0x61ee0e(0x167),exports[a15_0x61ee0e(0x147)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x382d92){const _0x409f88=a15_0x61ee0e,_0x37e97e={};_0x37e97e['AbJkf']=_0x409f88(0x170),_0x37e97e[_0x409f88(0x151)]=_0x409f88(0x15a),_0x37e97e[_0x409f88(0x17a)]=_0x409f88(0x17e);const _0x51f4ba=_0x37e97e,_0x418dbc={};_0x418dbc['description']=_0x51f4ba[_0x409f88(0x14e)],_0x418dbc[_0x409f88(0x184)]=_0x51f4ba['WCsVy'];const _0x124570={};return _0x124570[_0x409f88(0x157)]=_0x418dbc,_0x382d92[_0x409f88(0x14d)](HELP_HEADER_MESSAGE[_0x409f88(0x16d)][_0x409f88(0x179)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x124570)[_0x409f88(0x17e)](_0x51f4ba[_0x409f88(0x17a)])['argv'];},exports[a15_0x61ee0e(0x165)]=async function(_0x2b8a57){const _0x4b890f=a15_0x61ee0e,_0x1226d0={'KUTUq':function(_0x472bc1){return _0x472bc1();},'GaQhG':function(_0x30d04d){return _0x30d04d();},'Uovlf':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BIgBV':function(_0x2522fa,_0x1bd0c9,_0x313675,_0x55e69c,_0x32b59c,_0x431592,_0x4257f7){return _0x2522fa(_0x1bd0c9,_0x313675,_0x55e69c,_0x32b59c,_0x431592,_0x4257f7);},'emtOa':_0x4b890f(0x161),'ghLlG':'init-not-called','sBcTR':function(_0x3a397b){return _0x3a397b();},'rYxzI':_0x4b890f(0x16a),'YzaxE':function(_0x408559,_0x4e7064,_0x4441b0){return _0x408559(_0x4e7064,_0x4441b0);},'CWMvH':function(_0x4f7e6e,_0x481efc){return _0x4f7e6e!==_0x481efc;},'jwJkU':function(_0xb7a0d3,_0x3324d1){return _0xb7a0d3===_0x3324d1;},'LoZUv':_0x4b890f(0x185),'vEfBs':_0x4b890f(0x175),'iXgwh':_0x4b890f(0x148),'BaXRM':_0x4b890f(0x176),'JOOCc':_0x4b890f(0x15c),'YfOpv':_0x4b890f(0x17b),'bLnRl':'cluster-name','NYTvH':function(_0xef4d0c,_0x2ebc44){return _0xef4d0c(_0x2ebc44);},'Gbnwb':function(_0xad9dca,_0x17729b){return _0xad9dca===_0x17729b;},'KNVPz':_0x4b890f(0x152),'CfmNS':'unauthorised','KtxTi':function(_0x11a0e3,_0x17e8b1,_0x184abc,_0x1871ee,_0xd8c624,_0x23c873,_0x18b581){return _0x11a0e3(_0x17e8b1,_0x184abc,_0x1871ee,_0xd8c624,_0x23c873,_0x18b581);},'sKQAX':'server-error','RbIDo':_0x4b890f(0x16c)};try{global_registry[_0x4b890f(0x14a)]=_0x1226d0['KUTUq'](uuidv4);!fs[_0x4b890f(0x16e)](_0x1226d0['GaQhG'](getCredentialsPath))&&(console[_0x4b890f(0x143)](_0x1226d0['Uovlf']),await _0x1226d0['BIgBV'](sendInstrumentationEvent,_0x2b8a57,_0x1226d0[_0x4b890f(0x156)],messageTypes[_0x4b890f(0x177)],_0x1226d0[_0x4b890f(0x181)],null,_0x2b8a57),process['exit'](0x1));const _0x38476b=JSON[_0x4b890f(0x17d)](fs['readFileSync'](_0x1226d0['sBcTR'](getCredentialsPath)));let _0x1dd788='https://'+AG_API_URL+_0x4b890f(0x174);_0x2b8a57[_0x4b890f(0x154)]&&(_0x1dd788=_0x4b890f(0x140)+AG_API_URL+'/packages/cli/get-all-grids');const _0x23f8a8={'method':_0x1226d0[_0x4b890f(0x171)],'headers':_0x1226d0[_0x4b890f(0x14c)](getAuthHeader,_0x38476b[_0x4b890f(0x14b)][_0x4b890f(0x162)],_0x38476b[_0x4b890f(0x14b)][_0x4b890f(0x15e)]),'throwHttpErrors':![]};global_registry[_0x4b890f(0x158)]=_0x38476b[_0x4b890f(0x14b)][_0x4b890f(0x162)],global_registry[_0x4b890f(0x144)]=_0x38476b[_0x4b890f(0x14b)]['password'],_0x1226d0['BIgBV'](sendInstrumentationEvent,_0x2b8a57,_0x1226d0[_0x4b890f(0x156)],messageTypes['INFO'],null,null,_0x2b8a57);const _0x27b9f4=await _0x1226d0[_0x4b890f(0x14c)](got,_0x1dd788,_0x23f8a8);if(_0x1226d0['CWMvH'](_0x27b9f4,null)&&_0x1226d0[_0x4b890f(0x145)](_0x27b9f4,undefined)&&_0x1226d0[_0x4b890f(0x187)](_0x27b9f4[_0x4b890f(0x16b)],0xc8)){const _0x276c9f=JSON[_0x4b890f(0x17d)](_0x27b9f4[_0x4b890f(0x15f)]);console[_0x4b890f(0x17c)](_0x1226d0['LoZUv']);const _0x4b49a3=[];_0x4b49a3[_0x4b890f(0x146)]([_0x1226d0['vEfBs'],_0x1226d0[_0x4b890f(0x166)],_0x1226d0[_0x4b890f(0x168)],_0x1226d0[_0x4b890f(0x14f)],_0x1226d0['YfOpv'],_0x1226d0[_0x4b890f(0x141)]]),_0x276c9f[_0x4b890f(0x172)](_0xc98ab0=>{const _0x2002d2=_0x4b890f;_0x4b49a3[_0x2002d2(0x146)]([_0xc98ab0['id'],_0xc98ab0['name'],_0xc98ab0[_0x2002d2(0x176)],_0xc98ab0[_0x2002d2(0x15c)],_0xc98ab0[_0x2002d2(0x17b)],_0xc98ab0[_0x2002d2(0x15b)]]);}),console[_0x4b890f(0x17c)](_0x1226d0['NYTvH'](table,_0x4b49a3)),process[_0x4b890f(0x153)](0x0);}_0x1226d0['Gbnwb'](_0x27b9f4[_0x4b890f(0x16b)],0x191)&&(console['error'](_0x1226d0[_0x4b890f(0x183)]),await _0x1226d0[_0x4b890f(0x160)](sendInstrumentationEvent,_0x2b8a57,_0x1226d0[_0x4b890f(0x156)],messageTypes[_0x4b890f(0x177)],_0x1226d0[_0x4b890f(0x169)],null,_0x2b8a57),process['exit'](0x1)),console[_0x4b890f(0x143)](_0x4b890f(0x155)+JSON['stringify'](_0x27b9f4)),await _0x1226d0[_0x4b890f(0x16f)](sendInstrumentationEvent,_0x2b8a57,_0x1226d0[_0x4b890f(0x156)],messageTypes[_0x4b890f(0x177)],_0x1226d0['sKQAX'],_0x27b9f4,_0x2b8a57),process[_0x4b890f(0x153)](0x1);}catch(_0x2c98aa){console[_0x4b890f(0x143)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x2c98aa[_0x4b890f(0x150)]),await _0x1226d0[_0x4b890f(0x160)](sendInstrumentationEvent,_0x2b8a57,_0x1226d0['emtOa'],messageTypes[_0x4b890f(0x177)],_0x1226d0[_0x4b890f(0x182)],_0x2c98aa,_0x2b8a57),process[_0x4b890f(0x153)](0x1);}};
1
+ const a15_0x49e2f1=a15_0x5c92;(function(_0x58c565,_0x16177f){const _0x267767=a15_0x5c92,_0x36d5af=_0x58c565();while(!![]){try{const _0x20a12d=parseInt(_0x267767(0x228))/0x1+-parseInt(_0x267767(0x200))/0x2*(-parseInt(_0x267767(0x22e))/0x3)+parseInt(_0x267767(0x1eb))/0x4+parseInt(_0x267767(0x1e7))/0x5*(parseInt(_0x267767(0x1ed))/0x6)+-parseInt(_0x267767(0x1f0))/0x7+parseInt(_0x267767(0x220))/0x8+parseInt(_0x267767(0x1f3))/0x9*(-parseInt(_0x267767(0x1f8))/0xa);if(_0x20a12d===_0x16177f)break;else _0x36d5af['push'](_0x36d5af['shift']());}catch(_0x1c5f0b){_0x36d5af['push'](_0x36d5af['shift']());}}}(a15_0x52ba,0xb3e18));const fs=require('fs'),got=require(a15_0x49e2f1(0x230)),{table}=require(a15_0x49e2f1(0x206)),{v4:uuidv4}=require(a15_0x49e2f1(0x1f5)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x49e2f1(0x238));function a15_0x5c92(_0x4d2123,_0x3440ca){const _0x52ba5c=a15_0x52ba();return a15_0x5c92=function(_0x5c9281,_0x996002){_0x5c9281=_0x5c9281-0x1e6;let _0x4efbdc=_0x52ba5c[_0x5c9281];return _0x4efbdc;},a15_0x5c92(_0x4d2123,_0x3440ca);}exports[a15_0x49e2f1(0x235)]=a15_0x49e2f1(0x1f1),exports[a15_0x49e2f1(0x20d)]=a15_0x49e2f1(0x203),exports['builder']=function(_0x5071c4){const _0x25a6dd=a15_0x49e2f1,_0x183910={};_0x183910[_0x25a6dd(0x1fb)]=_0x25a6dd(0x210),_0x183910[_0x25a6dd(0x1ee)]=_0x25a6dd(0x213),_0x183910[_0x25a6dd(0x211)]=_0x25a6dd(0x204);const _0x4461d7=_0x183910,_0x246a61={};_0x246a61[_0x25a6dd(0x232)]=_0x4461d7[_0x25a6dd(0x1fb)],_0x246a61[_0x25a6dd(0x1f2)]=_0x4461d7['nBRsw'];const _0x37d9e8={};return _0x37d9e8[_0x25a6dd(0x225)]=_0x246a61,_0x5071c4[_0x25a6dd(0x231)](HELP_HEADER_MESSAGE[_0x25a6dd(0x23a)][_0x25a6dd(0x20a)])[_0x25a6dd(0x1fa)](HELP_FOOTER_MESSAGE)['options'](_0x37d9e8)[_0x25a6dd(0x204)](_0x4461d7[_0x25a6dd(0x211)])[_0x25a6dd(0x1ea)];},exports[a15_0x49e2f1(0x236)]=async function(_0x204d41){const _0x3a7d5e=a15_0x49e2f1,_0x247a6d={'IupPb':function(_0x12176a){return _0x12176a();},'PvMIK':_0x3a7d5e(0x1ff),'fHgLy':function(_0x27b531,_0x406456,_0x4bd6ad,_0x56b9a7,_0x58798b,_0x2775a7,_0x2200ca){return _0x27b531(_0x406456,_0x4bd6ad,_0x56b9a7,_0x58798b,_0x2775a7,_0x2200ca);},'hISXV':_0x3a7d5e(0x208),'czhzK':'init-not-called','pSohT':_0x3a7d5e(0x209),'PVCEo':function(_0x17d6f8,_0x1834cb,_0x265a3d){return _0x17d6f8(_0x1834cb,_0x265a3d);},'ZyMVt':function(_0x430cd3,_0x150096,_0x59f163,_0x35cd7b,_0x5d6ad7,_0x450123,_0x20d82e){return _0x430cd3(_0x150096,_0x59f163,_0x35cd7b,_0x5d6ad7,_0x450123,_0x20d82e);},'gnVhz':function(_0x516e77,_0xb035d4,_0x4826b6){return _0x516e77(_0xb035d4,_0x4826b6);},'AfeQK':function(_0x40b9fc,_0x3014c3){return _0x40b9fc!==_0x3014c3;},'KFBZp':function(_0x426fdf,_0x5342a1){return _0x426fdf===_0x5342a1;},'SdJDS':_0x3a7d5e(0x215),'EiQpf':_0x3a7d5e(0x22a),'cmkCc':_0x3a7d5e(0x202),'hSzKd':_0x3a7d5e(0x1f4),'XAllB':_0x3a7d5e(0x22c),'RPkka':'queued','GPNSS':_0x3a7d5e(0x229),'BWuwp':function(_0x584ed7,_0x3ef5e9){return _0x584ed7(_0x3ef5e9);},'eAGVh':function(_0x3658d0,_0x43797e){return _0x3658d0===_0x43797e;},'KYtSS':_0x3a7d5e(0x1ef),'bxwnG':function(_0x5e7449,_0x41c679,_0x229d8e,_0x10d8ee,_0x526d1e,_0x19df5a,_0x14b4f3){return _0x5e7449(_0x41c679,_0x229d8e,_0x10d8ee,_0x526d1e,_0x19df5a,_0x14b4f3);},'Bavvu':_0x3a7d5e(0x216),'WDmgg':function(_0x3bc32d,_0x305d6d,_0x153018,_0x14688a,_0x3769d1,_0x52acbb,_0x499c51){return _0x3bc32d(_0x305d6d,_0x153018,_0x14688a,_0x3769d1,_0x52acbb,_0x499c51);},'VoATh':_0x3a7d5e(0x221),'IJsac':function(_0x16e657,_0x19e13,_0x293850,_0x1d2f0d,_0xb2be5a,_0x269d5a,_0x171448){return _0x16e657(_0x19e13,_0x293850,_0x1d2f0d,_0xb2be5a,_0x269d5a,_0x171448);},'tJIBG':_0x3a7d5e(0x205)};try{global_registry['requestId']=_0x247a6d['IupPb'](uuidv4);!fs[_0x3a7d5e(0x1e8)](_0x247a6d[_0x3a7d5e(0x21b)](getCredentialsPath))&&(console[_0x3a7d5e(0x21a)](_0x247a6d['PvMIK']),await _0x247a6d['fHgLy'](sendInstrumentationEvent,_0x204d41,_0x247a6d[_0x3a7d5e(0x1f9)],messageTypes['ERROR'],_0x247a6d[_0x3a7d5e(0x1ec)],null,_0x204d41),process[_0x3a7d5e(0x217)](0x1));const _0x48ed10=JSON['parse'](fs['readFileSync'](_0x247a6d[_0x3a7d5e(0x21b)](getCredentialsPath)));let _0x1e34e0=_0x3a7d5e(0x21c)+AG_API_URL+_0x3a7d5e(0x22d);_0x204d41['allGrids']&&(_0x1e34e0=_0x3a7d5e(0x21c)+AG_API_URL+_0x3a7d5e(0x219));const _0x3d180b={'method':_0x247a6d['pSohT'],'headers':_0x247a6d[_0x3a7d5e(0x21d)](getAuthHeader,_0x48ed10['Browserstack'][_0x3a7d5e(0x20e)],_0x48ed10[_0x3a7d5e(0x224)][_0x3a7d5e(0x227)]),'throwHttpErrors':![]};global_registry[_0x3a7d5e(0x1f6)]=_0x48ed10[_0x3a7d5e(0x224)][_0x3a7d5e(0x20e)],global_registry['bstackAccesskey']=_0x48ed10[_0x3a7d5e(0x224)][_0x3a7d5e(0x227)],_0x247a6d['ZyMVt'](sendInstrumentationEvent,_0x204d41,_0x247a6d[_0x3a7d5e(0x1f9)],messageTypes['INFO'],null,null,_0x204d41);const _0x545b2e=await _0x247a6d[_0x3a7d5e(0x201)](got,_0x1e34e0,_0x3d180b);if(_0x247a6d['AfeQK'](_0x545b2e,null)&&_0x247a6d[_0x3a7d5e(0x207)](_0x545b2e,undefined)&&_0x247a6d[_0x3a7d5e(0x20c)](_0x545b2e['statusCode'],0xc8)){const _0x14ed3e=JSON['parse'](_0x545b2e[_0x3a7d5e(0x1fd)]);console[_0x3a7d5e(0x20f)](_0x247a6d[_0x3a7d5e(0x233)]);const _0x2bfb49=[];_0x2bfb49['push']([_0x247a6d[_0x3a7d5e(0x22b)],_0x247a6d['cmkCc'],_0x247a6d['hSzKd'],_0x247a6d[_0x3a7d5e(0x1fe)],_0x247a6d['RPkka'],_0x247a6d[_0x3a7d5e(0x226)]]),_0x14ed3e[_0x3a7d5e(0x21e)](_0x5e647f=>{const _0x16dd80=_0x3a7d5e;_0x2bfb49[_0x16dd80(0x222)]([_0x5e647f['id'],_0x5e647f[_0x16dd80(0x1e6)],_0x5e647f[_0x16dd80(0x1f4)],_0x5e647f[_0x16dd80(0x22c)],_0x5e647f[_0x16dd80(0x237)],_0x5e647f[_0x16dd80(0x218)]]);}),console[_0x3a7d5e(0x20f)](_0x247a6d[_0x3a7d5e(0x1fc)](table,_0x2bfb49)),process[_0x3a7d5e(0x217)](0x0);}_0x247a6d[_0x3a7d5e(0x21f)](_0x545b2e['statusCode'],0x191)&&(console[_0x3a7d5e(0x21a)](_0x247a6d['KYtSS']),await _0x247a6d[_0x3a7d5e(0x20b)](sendInstrumentationEvent,_0x204d41,_0x247a6d[_0x3a7d5e(0x1f9)],messageTypes[_0x3a7d5e(0x239)],_0x247a6d[_0x3a7d5e(0x22f)],null,_0x204d41),process[_0x3a7d5e(0x217)](0x1)),console[_0x3a7d5e(0x21a)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3a7d5e(0x1e9)](_0x545b2e)),await _0x247a6d[_0x3a7d5e(0x1f7)](sendInstrumentationEvent,_0x204d41,_0x247a6d['hISXV'],messageTypes[_0x3a7d5e(0x239)],_0x247a6d['VoATh'],_0x545b2e,_0x204d41),process[_0x3a7d5e(0x217)](0x1);}catch(_0x45c360){console[_0x3a7d5e(0x21a)](_0x3a7d5e(0x223)+_0x45c360[_0x3a7d5e(0x212)]),await _0x247a6d[_0x3a7d5e(0x214)](sendInstrumentationEvent,_0x204d41,_0x247a6d[_0x3a7d5e(0x1f9)],messageTypes[_0x3a7d5e(0x239)],_0x247a6d[_0x3a7d5e(0x234)],_0x45c360,_0x204d41),process[_0x3a7d5e(0x217)](0x1);}};function a15_0x52ba(){const _0x4cef6b=['GPNSS','password','774854nFaNyE','cluster-name','grid-id','EiQpf','running','/packages/cli/get-grids','2328594zgKljU','Bavvu','got','usage','description','SdJDS','tJIBG','command','handler','queued','../../utils/instrumentationUtils','ERROR','list','name','40HqfcYU','existsSync','stringify','argv','561656CrUIEh','czhzK','86694siFjpk','nBRsw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','794395FueGVx','grids','type','6543972xHiKze','status','uuid','bstackUsername','WDmgg','20TeDBIs','hISXV','epilogue','BHgVK','BWuwp','body','XAllB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','2jhtxcS','gnVhz','grid-name','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','help','unknown-error','table','AfeQK','list-grids-called','GET','grid','bxwnG','KFBZp','desc','username','log','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','acrxb','stack','boolean','IJsac','\x0aFound\x20the\x20following\x20grids:\x0a','unauthorised','exit','clusterName','/packages/cli/get-all-grids','error','IupPb','https://','PVCEo','forEach','eAGVh','3979480RkeXfA','server-error','push','Failed\x20to\x20list\x20resources!\x20Error:\x20','Browserstack','all-grids'];a15_0x52ba=function(){return _0x4cef6b;};return a15_0x52ba();}
@@ -1 +1 @@
1
- const a16_0x31aa51=a16_0x20c2;function a16_0x20c2(_0x3feecb,_0x8a9e4f){const _0x43331d=a16_0x4333();return a16_0x20c2=function(_0x20c2ae,_0x322d11){_0x20c2ae=_0x20c2ae-0x18b;let _0x305a3a=_0x43331d[_0x20c2ae];return _0x305a3a;},a16_0x20c2(_0x3feecb,_0x8a9e4f);}(function(_0xe499e8,_0x2ab042){const _0x5decff=a16_0x20c2,_0x865fad=_0xe499e8();while(!![]){try{const _0x38333e=parseInt(_0x5decff(0x19b))/0x1*(parseInt(_0x5decff(0x18d))/0x2)+-parseInt(_0x5decff(0x197))/0x3+-parseInt(_0x5decff(0x18c))/0x4*(parseInt(_0x5decff(0x190))/0x5)+-parseInt(_0x5decff(0x18b))/0x6+parseInt(_0x5decff(0x1a4))/0x7*(-parseInt(_0x5decff(0x19f))/0x8)+-parseInt(_0x5decff(0x18e))/0x9+parseInt(_0x5decff(0x199))/0xa*(parseInt(_0x5decff(0x1a3))/0xb);if(_0x38333e===_0x2ab042)break;else _0x865fad['push'](_0x865fad['shift']());}catch(_0xc597ef){_0x865fad['push'](_0x865fad['shift']());}}}(a16_0x4333,0xd7e8a));function a16_0x4333(){const _0xe66d0f=['help','demandCommand','3494370bOjeHy','UqNfQ','40517210qaJpOM','recommendCommands','1290298SQoGfk','handler','emlmu','pre_check','8zFWBaj','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','epilogue','builder','11cdybNq','8357629XDmYHj','3584610GTDCef','5657204FODGdZ','2YrEfSt','784656gDqsou','precheck_commands','5TRtgaY','pre-check','commandDir','usage','strict'];a16_0x4333=function(){return _0xe66d0f;};return a16_0x4333();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a16_0x31aa51(0x191),exports['desc']=a16_0x31aa51(0x1a0),exports[a16_0x31aa51(0x1a2)]=function(_0x3e9178){const _0x1f3aa4=a16_0x31aa51,_0x3b52f5={};_0x3b52f5[_0x1f3aa4(0x19d)]=_0x1f3aa4(0x18f),_0x3b52f5[_0x1f3aa4(0x198)]='help';const _0x5c6cd9=_0x3b52f5;return _0x3e9178[_0x1f3aa4(0x193)](HELP_HEADER_MESSAGE[_0x1f3aa4(0x19e)])[_0x1f3aa4(0x1a1)](HELP_FOOTER_MESSAGE)[_0x1f3aa4(0x192)](_0x5c6cd9[_0x1f3aa4(0x19d)])[_0x1f3aa4(0x196)]()[_0x1f3aa4(0x19a)]()[_0x1f3aa4(0x194)]()[_0x1f3aa4(0x195)](_0x5c6cd9['UqNfQ']);},exports[a16_0x31aa51(0x19c)]=function(_0x45ae91){};
1
+ function a16_0x2459(_0x142bc1,_0x5318f0){const _0xbaa4a3=a16_0xbaa4();return a16_0x2459=function(_0x24596b,_0x524dbe){_0x24596b=_0x24596b-0x135;let _0x3c9162=_0xbaa4a3[_0x24596b];return _0x3c9162;},a16_0x2459(_0x142bc1,_0x5318f0);}const a16_0x23ad7f=a16_0x2459;(function(_0x20a1b8,_0x359dc4){const _0x598344=a16_0x2459,_0x4f1beb=_0x20a1b8();while(!![]){try{const _0x27ceee=parseInt(_0x598344(0x150))/0x1+-parseInt(_0x598344(0x14f))/0x2*(-parseInt(_0x598344(0x139))/0x3)+-parseInt(_0x598344(0x13b))/0x4+-parseInt(_0x598344(0x13a))/0x5*(-parseInt(_0x598344(0x13f))/0x6)+-parseInt(_0x598344(0x138))/0x7*(-parseInt(_0x598344(0x137))/0x8)+-parseInt(_0x598344(0x148))/0x9+parseInt(_0x598344(0x13c))/0xa*(-parseInt(_0x598344(0x143))/0xb);if(_0x27ceee===_0x359dc4)break;else _0x4f1beb['push'](_0x4f1beb['shift']());}catch(_0x78c838){_0x4f1beb['push'](_0x4f1beb['shift']());}}}(a16_0xbaa4,0x1c333));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x23ad7f(0x140));exports[a16_0x23ad7f(0x145)]=a16_0x23ad7f(0x135),exports[a16_0x23ad7f(0x14c)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x23ad7f(0x144)]=function(_0x480969){const _0x536ade=a16_0x23ad7f,_0x4e208c={};_0x4e208c[_0x536ade(0x149)]=_0x536ade(0x14e),_0x4e208c[_0x536ade(0x14a)]=_0x536ade(0x142);const _0x3fbf5f=_0x4e208c;return _0x480969[_0x536ade(0x13d)](HELP_HEADER_MESSAGE[_0x536ade(0x14b)])[_0x536ade(0x136)](HELP_FOOTER_MESSAGE)[_0x536ade(0x141)](_0x3fbf5f[_0x536ade(0x149)])[_0x536ade(0x147)]()[_0x536ade(0x146)]()[_0x536ade(0x14d)]()[_0x536ade(0x142)](_0x3fbf5f[_0x536ade(0x14a)]);},exports[a16_0x23ad7f(0x13e)]=function(_0x4410f1){};function a16_0xbaa4(){const _0xa0f951=['2898jsELbu','../config/constants','commandDir','help','1743621vPACAc','builder','command','recommendCommands','demandCommand','22383nuYHUD','aMnus','cZkjC','pre_check','desc','strict','precheck_commands','392eMhojq','30450MaNdxs','pre-check','epilogue','727752vAslNI','7HhXyBB','3171dpjXjm','1535zGMHcq','167424LtVdFb','20aBEYkK','usage','handler'];a16_0xbaa4=function(){return _0xa0f951;};return a16_0xbaa4();}
@@ -1 +1 @@
1
- const a17_0x331781=a17_0x45ab;(function(_0x51416b,_0x2180d7){const _0x1bc908=a17_0x45ab,_0x3d28ec=_0x51416b();while(!![]){try{const _0x481c7d=parseInt(_0x1bc908(0x189))/0x1*(parseInt(_0x1bc908(0x147))/0x2)+parseInt(_0x1bc908(0x14b))/0x3+-parseInt(_0x1bc908(0x123))/0x4*(parseInt(_0x1bc908(0x16c))/0x5)+parseInt(_0x1bc908(0x1cb))/0x6+parseInt(_0x1bc908(0x20e))/0x7*(parseInt(_0x1bc908(0x14c))/0x8)+parseInt(_0x1bc908(0x1b0))/0x9+-parseInt(_0x1bc908(0x1d9))/0xa;if(_0x481c7d===_0x2180d7)break;else _0x3d28ec['push'](_0x3d28ec['shift']());}catch(_0x48f384){_0x3d28ec['push'](_0x3d28ec['shift']());}}}(a17_0x38cf,0x5d3d4));const fs=require('fs'),ws=require('ws'),got=require(a17_0x331781(0x1d7)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x331781(0x19e)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x331781(0x199)),{logger}=require(a17_0x331781(0x18d)),{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_0x331781(0x16a)),{getCloudProviderObjectWithOutInit}=require(a17_0x331781(0x151)),webSocketUtils=require(a17_0x331781(0x12f)),{sendInstrumentationEvent}=require(a17_0x331781(0x164));exports[a17_0x331781(0x16f)]=a17_0x331781(0x133),exports['desc']=a17_0x331781(0x187),exports[a17_0x331781(0x1f9)]=function(_0x3904b8){const _0x33028f=a17_0x331781,_0x47169c={};_0x47169c[_0x33028f(0x15b)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x47169c[_0x33028f(0x1c6)]=_0x33028f(0x210),_0x47169c[_0x33028f(0x1d8)]=_0x33028f(0x1ea),_0x47169c['uOTat']=_0x33028f(0x168),_0x47169c[_0x33028f(0x17b)]=_0x33028f(0x171),_0x47169c[_0x33028f(0x1cd)]=_0x33028f(0x140);const _0x538039=_0x47169c,_0x5d9b55={};_0x5d9b55[_0x33028f(0x1de)]=_0x538039['qzdBq'],_0x5d9b55['type']=_0x538039['zEAce'];const _0x39c6df={};_0x39c6df[_0x33028f(0x1de)]=_0x538039[_0x33028f(0x1d8)],_0x39c6df[_0x33028f(0x146)]=_0x538039[_0x33028f(0x1c6)];const _0x571833={};_0x571833['description']=_0x538039['uOTat'],_0x571833[_0x33028f(0x146)]=_0x538039['zEAce'];const _0x237d91={};_0x237d91[_0x33028f(0x1de)]=_0x538039['gbJBI'],_0x237d91[_0x33028f(0x146)]=_0x538039[_0x33028f(0x1c6)];const _0x4cefef={};return _0x4cefef[_0x33028f(0x1da)]=_0x5d9b55,_0x4cefef[_0x33028f(0x1f7)]=_0x39c6df,_0x4cefef[_0x33028f(0x1ef)]=_0x571833,_0x4cefef[_0x33028f(0x1e3)]=_0x237d91,_0x3904b8[_0x33028f(0x138)](HELP_HEADER_MESSAGE[_0x33028f(0x1d4)])[_0x33028f(0x1d3)](HELP_FOOTER_MESSAGE)[_0x33028f(0x1d1)](_0x4cefef)[_0x33028f(0x140)](_0x538039[_0x33028f(0x1cd)])[_0x33028f(0x19d)];};function a17_0x45ab(_0x4f58b1,_0x5e9201){const _0x38cf6f=a17_0x38cf();return a17_0x45ab=function(_0x45abe4,_0x27b43b){_0x45abe4=_0x45abe4-0x10e;let _0x3ac326=_0x38cf6f[_0x45abe4];return _0x3ac326;},a17_0x45ab(_0x4f58b1,_0x5e9201);}async function inputValidation(_0x38ceff,_0x1a5e8b){const _0x1e7ead=a17_0x331781,_0x3c7221={'TWaCy':_0x1e7ead(0x1f7),'kYcNX':_0x1e7ead(0x169),'KmSus':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','zxzin':_0x1e7ead(0x210),'fVkyL':_0x1e7ead(0x1ea),'pPPVu':_0x1e7ead(0x168),'nyBca':_0x1e7ead(0x171),'UMMHa':_0x1e7ead(0x140),'hcrqH':function(_0x4e5218,_0x4fb4e8){return _0x4e5218+_0x4fb4e8;},'HBDuz':_0x1e7ead(0x126),'ihEoJ':_0x1e7ead(0x14a),'RoVph':function(_0x861e43,_0x1bd37f){return _0x861e43||_0x1bd37f;},'guOiP':_0x1e7ead(0x19c),'EeIpW':_0x1e7ead(0x1c4),'XCEUp':'cluster-name','wbbXy':_0x1e7ead(0x1b8),'jIaUv':'region','tvDet':_0x1e7ead(0x1e9),'CadbP':_0x1e7ead(0x11a),'QdMIt':function(_0x2a0e89,_0x51055e){return _0x2a0e89!==_0x51055e;},'FeOZR':_0x1e7ead(0x1a1),'GQPES':function(_0x49e187,_0x35e34c){return _0x49e187===_0x35e34c;},'GESxT':_0x1e7ead(0x195),'evjIg':function(_0x205ab4,_0x155525){return _0x205ab4===_0x155525;},'jShTe':_0x1e7ead(0x139),'CzUCX':_0x1e7ead(0x1a4),'IvZai':_0x1e7ead(0x1dc),'sTmHO':_0x1e7ead(0x1f5),'XXoZj':_0x1e7ead(0x1d5),'LvwJy':function(_0x249ebd,_0x8c83eb){return _0x249ebd>_0x8c83eb;},'nokux':function(_0x407d83,_0x34e70d){return _0x407d83!==_0x34e70d;},'owrOx':_0x1e7ead(0x1aa),'yovlZ':_0x1e7ead(0x1b9),'BgKpD':function(_0x4287a6,_0x142ffa,_0x324d0e,_0x2cc94d,_0x1defab,_0x40a3f3,_0xf2a920,_0x37c2be){return _0x4287a6(_0x142ffa,_0x324d0e,_0x2cc94d,_0x1defab,_0x40a3f3,_0xf2a920,_0x37c2be);},'vMoBI':_0x1e7ead(0x1c0),'HcCfT':_0x1e7ead(0x124),'EuGSt':function(_0x3398a4,_0x4f0063){return _0x3398a4!==_0x4f0063;},'PcBDN':_0x1e7ead(0x198),'qNQmn':_0x1e7ead(0x13a),'UveEO':function(_0x9d2e85,_0x324873,_0x3340f1,_0x3f29a1,_0x5bc1b0,_0x235dba,_0x2f8c71,_0x38fc51){return _0x9d2e85(_0x324873,_0x3340f1,_0x3f29a1,_0x5bc1b0,_0x235dba,_0x2f8c71,_0x38fc51);},'zUYTA':_0x1e7ead(0x1bb),'TsldJ':function(_0x2997fa,_0x4e6d83){return _0x2997fa===_0x4e6d83;},'ZrtsR':_0x1e7ead(0x1ed),'jOetm':function(_0x2fb306,_0x28eaa){return _0x2fb306===_0x28eaa;},'LKjmb':_0x1e7ead(0x1ff),'GLpnx':_0x1e7ead(0x121),'aMNip':'GET','pGIYJ':function(_0x4e38db,_0x39a647,_0x10036a){return _0x4e38db(_0x39a647,_0x10036a);},'WcNti':function(_0x82c07a,_0x7493a4,_0x1b1657,_0x5273d5,_0x462625,_0xd1c263){return _0x82c07a(_0x7493a4,_0x1b1657,_0x5273d5,_0x462625,_0xd1c263);},'fXGli':_0x1e7ead(0x1b6),'hATKw':_0x1e7ead(0x1e3),'zKgzb':function(_0x2ec4e6,_0x151d29){return _0x2ec4e6===_0x151d29;},'xWVeX':function(_0x7ad761,_0x7f0105){return _0x7ad761===_0x7f0105;},'HcYqy':_0x1e7ead(0x190),'AeVGb':_0x1e7ead(0x153),'tTuPe':function(_0x1de671,_0x44b9ba){return _0x1de671(_0x44b9ba);},'bglDw':_0x1e7ead(0x1f1),'JBZZW':_0x1e7ead(0x110),'Jnkuy':function(_0x135c02,_0x468716,_0x10b961,_0x34dad7,_0x277e18,_0x2072d6,_0x1100f2,_0x273a54){return _0x135c02(_0x468716,_0x10b961,_0x34dad7,_0x277e18,_0x2072d6,_0x1100f2,_0x273a54);},'sskGZ':_0x1e7ead(0x1ba),'zkpVG':function(_0xf85432,_0x591e97){return _0xf85432===_0x591e97;},'PpJgc':_0x1e7ead(0x134),'qeYrv':function(_0x4a1ac4,_0x5b2905){return _0x4a1ac4!==_0x5b2905;},'kzuGO':_0x1e7ead(0x211),'NULCW':_0x1e7ead(0x1fd),'pstmV':_0x1e7ead(0x1ac),'fPNyb':_0x1e7ead(0x13c),'SwZdx':_0x1e7ead(0x179),'WpsZv':_0x1e7ead(0x1bc),'HVQNa':function(_0x23bbf4,_0x5540f5,_0xe160e2,_0x4c136b,_0xb0ba50,_0x14cb1d,_0x5eeecb,_0x42e39e){return _0x23bbf4(_0x5540f5,_0xe160e2,_0x4c136b,_0xb0ba50,_0x14cb1d,_0x5eeecb,_0x42e39e);}};let _0x43934c;try{if(_0x3c7221[_0x1e7ead(0x16d)](_0x3c7221[_0x1e7ead(0x1cc)],_0x3c7221['FeOZR']))_0x221c31[_0x1e7ead(0x136)]('Setting\x20cloud\x20provider\x20as\x20'+_0x4bbbe8[_0x1e7ead(0x149)]+'\x20'),_0x37fe6f[_0x1e7ead(0x13d)]=_0x2b9f5b[_0x1e7ead(0x149)];else{if(_0x38ceff[_0x1e7ead(0x16e)]||_0x38ceff['cloudProvider']||_0x38ceff[_0x1e7ead(0x1ef)]){if(_0x3c7221[_0x1e7ead(0x1b4)](_0x3c7221[_0x1e7ead(0x12c)],_0x3c7221[_0x1e7ead(0x12c)])){const _0x1b4904=[];!_0x38ceff[_0x1e7ead(0x16e)]&&(_0x3c7221[_0x1e7ead(0x112)](_0x3c7221[_0x1e7ead(0x1f2)],_0x3c7221['CzUCX'])?_0x3267a2[_0x1e7ead(0x14d)](_0x3c7221['TWaCy']):_0x1b4904[_0x1e7ead(0x14d)](_0x3c7221[_0x1e7ead(0x204)]));;!_0x38ceff[_0x1e7ead(0x13d)]&&(_0x3c7221[_0x1e7ead(0x112)](_0x3c7221[_0x1e7ead(0x1ca)],_0x3c7221[_0x1e7ead(0x1ca)])?_0x1b4904[_0x1e7ead(0x14d)](_0x3c7221[_0x1e7ead(0x1ce)]):(_0x16e17a[_0x1e7ead(0x1b8)](_0x3c7221[_0x1e7ead(0x1b2)]),_0x5279e4[_0x1e7ead(0x161)](0x1)));;if(!_0x38ceff[_0x1e7ead(0x1ef)]){if(_0x3c7221[_0x1e7ead(0x16d)](_0x3c7221[_0x1e7ead(0x1a2)],_0x3c7221[_0x1e7ead(0x156)]))_0x1b4904[_0x1e7ead(0x14d)](_0x3c7221[_0x1e7ead(0x1ab)]);else{const _0x2b83b8={};_0x2b83b8[_0x1e7ead(0x1de)]=_0x3c7221[_0x1e7ead(0x1b1)],_0x2b83b8[_0x1e7ead(0x146)]=_0x3c7221['zxzin'];const _0x5d91c0={};_0x5d91c0['description']=_0x3c7221[_0x1e7ead(0x197)],_0x5d91c0['type']=_0x3c7221[_0x1e7ead(0x172)];const _0x13fd5f={};_0x13fd5f[_0x1e7ead(0x1de)]=_0x3c7221[_0x1e7ead(0x200)],_0x13fd5f[_0x1e7ead(0x146)]=_0x3c7221[_0x1e7ead(0x172)];const _0x3388ae={};_0x3388ae[_0x1e7ead(0x1de)]=_0x3c7221['nyBca'],_0x3388ae[_0x1e7ead(0x146)]=_0x3c7221[_0x1e7ead(0x172)];const _0xc848b0={};return _0xc848b0[_0x1e7ead(0x1da)]=_0x2b83b8,_0xc848b0[_0x1e7ead(0x1f7)]=_0x5d91c0,_0xc848b0[_0x1e7ead(0x1ef)]=_0x13fd5f,_0xc848b0[_0x1e7ead(0x1e3)]=_0x3388ae,_0x113e92[_0x1e7ead(0x138)](_0xc9c36['pre_check'])[_0x1e7ead(0x1d3)](_0x132863)[_0x1e7ead(0x1d1)](_0xc848b0)[_0x1e7ead(0x140)](_0x3c7221['UMMHa'])[_0x1e7ead(0x19d)];}};if(_0x3c7221[_0x1e7ead(0x1fe)](_0x1b4904[_0x1e7ead(0x1ad)],0x0)){if(_0x3c7221[_0x1e7ead(0x11b)](_0x3c7221[_0x1e7ead(0x12b)],_0x3c7221[_0x1e7ead(0x185)]))_0x43934c='Missing\x20required\x20arguments:\x20'+_0x1b4904[_0x1e7ead(0x17d)](',\x20')+_0x1e7ead(0x137),await _0x3c7221[_0x1e7ead(0x14e)](reportToGalactusAndSendToEDS,_0x38ceff,_0x1a5e8b,_0x43934c,messageTypes['ERROR'],_0x3c7221[_0x1e7ead(0x1c8)],_0x3c7221[_0x1e7ead(0x20c)],_0x3c7221[_0x1e7ead(0x1eb)]),logger['error'](_0x43934c),process[_0x1e7ead(0x161)](0x1);else{const {header:_0x1d7913,response:_0x2bfc1e}=_0x5137b8,{status:_0x5dde10,data:_0x193038,error:_0x11ab93}=_0x2bfc1e;_0x2cd9cf+=_0x1d7913+'\x20#'+_0x3c7221[_0x1e7ead(0x1d0)](_0x3de706,0x1)+'\x0a',_0x556dce+=_0x1e7ead(0x1bf)+(_0x5dde10?_0x3c7221[_0x1e7ead(0x129)]:_0x3c7221[_0x1e7ead(0x1a0)])+'\x0a',_0x49d108+=_0x1e7ead(0x18f)+_0x3c7221[_0x1e7ead(0x1e7)](_0x193038,_0x3c7221[_0x1e7ead(0x128)])+'\x0a',_0x11ab93&&(_0x2c2622+=_0x3c7221[_0x1e7ead(0x194)],_0x1b6dea+=_0x1e7ead(0x150)+(_0x11ab93['message']||_0x3c7221[_0x1e7ead(0x128)])+'\x0a',_0x1c286b+=_0x1e7ead(0x118)+(_0x11ab93[_0x1e7ead(0x205)]||_0x3c7221[_0x1e7ead(0x128)])+'\x0a',_0x5d675f+=_0x1e7ead(0x188)+(_0x11ab93['stack']||_0x3c7221[_0x1e7ead(0x128)])+'\x0a'),_0x337e36+='\x0a\x0a';}}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1e7ead(0x191)](_0x38ceff['cloudProvider'][_0x1e7ead(0x177)]())&&(_0x3c7221['EuGSt'](_0x3c7221[_0x1e7ead(0x162)],_0x3c7221[_0x1e7ead(0x162)])?_0x5a7c79=_0x338773:(_0x43934c=_0x3c7221[_0x1e7ead(0x11c)],await _0x3c7221[_0x1e7ead(0x207)](reportToGalactusAndSendToEDS,_0x38ceff,_0x1a5e8b,_0x43934c,messageTypes[_0x1e7ead(0x20b)],_0x3c7221['vMoBI'],_0x3c7221[_0x1e7ead(0x17a)],_0x3c7221['wbbXy']),logger[_0x1e7ead(0x1b8)](_0x43934c),!_0x38ceff[_0x1e7ead(0x13d)]&&(_0x3c7221[_0x1e7ead(0x18a)](_0x3c7221[_0x1e7ead(0x19f)],_0x3c7221['ZrtsR'])?(logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x1e7ead(0x149)]+'\x20'),_0x38ceff[_0x1e7ead(0x13d)]=DEFAULT_CLUSTER_DETAILS[_0x1e7ead(0x149)]):_0x3ce8cd['push'](_0x3c7221[_0x1e7ead(0x204)])))),global_registry[_0x1e7ead(0x16e)]=_0x38ceff[_0x1e7ead(0x16e)],global_registry[_0x1e7ead(0x13d)]=_0x38ceff[_0x1e7ead(0x13d)],global_registry[_0x1e7ead(0x12d)]=_0x38ceff['region'];}else{const _0x69609f={};_0x69609f[_0x1e7ead(0x146)]=_0x376afb[_0x1e7ead(0x15e)],_0x69609f[_0x1e7ead(0x120)]=_0x478d0c,_0x262953['sendEventToBackend'](_0x5ea662,_0x69609f,_0x3c7221['wbbXy'],!![]);}}else{if(_0x38ceff[_0x1e7ead(0x19b)]){if(_0x3c7221['jOetm'](_0x3c7221[_0x1e7ead(0x15a)],_0x3c7221[_0x1e7ead(0x15d)]))_0x21b1db[_0x1e7ead(0x136)](_0x1e7ead(0x196)+_0x396878[_0x1e7ead(0x16e)]+_0x1e7ead(0x1bd));else{global_registry[_0x1e7ead(0x19b)]=_0x38ceff[_0x1e7ead(0x19b)],logger[_0x1e7ead(0x201)](_0x1e7ead(0x1ee)+_0x38ceff[_0x1e7ead(0x19b)]);const _0x5caaa3=_0x1e7ead(0x1ae)+AG_API_URL+_0x1e7ead(0x209),_0x321ac8={};_0x321ac8[_0x1e7ead(0x10f)]=_0x3c7221[_0x1e7ead(0x12e)],_0x321ac8[_0x1e7ead(0x1df)]=global_registry['authHeader'],_0x321ac8[_0x1e7ead(0x1af)]=![];const _0x17232a=_0x321ac8,_0x2ab84a=await _0x3c7221[_0x1e7ead(0x202)](got,_0x5caaa3,_0x17232a),_0x3bbd25=await _0x3c7221[_0x1e7ead(0x11f)](responseValidation,_0x2ab84a,_0x3c7221['fXGli'],_0x3c7221[_0x1e7ead(0x1db)],_0x38ceff,_0x1a5e8b);let _0x38ac1c={};if(_0x3c7221['zKgzb'](_0x3bbd25,0xc8)){if(_0x3c7221[_0x1e7ead(0x1e0)](_0x3c7221[_0x1e7ead(0x119)],_0x3c7221[_0x1e7ead(0x116)]))_0x20871f+=_0x1e7ead(0x1e1)+_0x41fdd6[_0x1e7ead(0x16e)]+_0x1e7ead(0x1e4);else{const _0x3e997a=JSON[_0x1e7ead(0x1c9)](_0x2ab84a['body']),_0x15afa2=_0x3e997a[_0x1e7ead(0x17e)](_0x163bd1=>_0x163bd1[_0x1e7ead(0x143)]===_0x38ceff[_0x1e7ead(0x19b)])||null;_0x3c7221['tTuPe'](isUndefined,_0x15afa2)?_0x3c7221[_0x1e7ead(0x16d)](_0x3c7221['bglDw'],_0x3c7221['JBZZW'])?(_0x43934c=_0x1e7ead(0x1cf)+_0x38ceff[_0x1e7ead(0x19b)]+_0x1e7ead(0x160),await _0x3c7221['Jnkuy'](reportToGalactusAndSendToEDS,_0x38ceff,_0x1a5e8b,_0x43934c,messageTypes['ERROR'],_0x3c7221[_0x1e7ead(0x1c8)],_0x3c7221['sskGZ'],_0x3c7221[_0x1e7ead(0x1eb)]),logger[_0x1e7ead(0x1b8)](_0x43934c),process['exit'](0x1)):_0x43ec60[_0x1e7ead(0x1b8)](_0x1e7ead(0x170)+_0x108871[_0x1e7ead(0x1b8)][_0x1e7ead(0x117)]):_0x3c7221['zkpVG'](_0x3c7221[_0x1e7ead(0x11d)],_0x3c7221[_0x1e7ead(0x11d)])?_0x38ac1c=_0x15afa2:(_0x56a365[_0x1e7ead(0x136)]('['+_0x3d08fa+_0x1e7ead(0x15f)+_0x200522[_0x1e7ead(0x1a7)]+_0x1e7ead(0x1b7)+_0x41ebb4['data']+_0x1e7ead(0x174)+_0x34b9ff['error']),_0x5b0ae7[_0x1e7ead(0x1b8)]&&_0x417e53[_0x1e7ead(0x1b8)](_0x1e7ead(0x170)+_0xdced2d[_0x1e7ead(0x1b8)][_0x1e7ead(0x117)]));}}else _0x3c7221[_0x1e7ead(0x1f8)](_0x3c7221['kzuGO'],_0x3c7221[_0x1e7ead(0x1fc)])?process[_0x1e7ead(0x161)](0x1):(_0x254009+=_0x3c7221[_0x1e7ead(0x194)],_0x38ded9+=_0x1e7ead(0x150)+(_0x44e8fe[_0x1e7ead(0x120)]||_0x3c7221[_0x1e7ead(0x128)])+'\x0a',_0x59c2c8+='\x20\x20Code:\x20'+(_0x27ca15['code']||_0x3c7221['guOiP'])+'\x0a',_0x3be9d4+=_0x1e7ead(0x188)+(_0x10e1e5[_0x1e7ead(0x117)]||_0x3c7221['guOiP'])+'\x0a');const _0x229061={};_0x229061['type']=WS_EVENTS[_0x1e7ead(0x15e)],_0x229061[_0x1e7ead(0x120)]=_0x3c7221[_0x1e7ead(0x1ec)],webSocketUtils['sendEventToBackend'](_0x1a5e8b,_0x229061),global_registry['cloudProvider']=_0x38ac1c[_0x1e7ead(0x13d)],global_registry[_0x1e7ead(0x12d)]=_0x38ac1c[_0x1e7ead(0x1ef)],global_registry['clusterName']=_0x38ac1c[_0x1e7ead(0x16e)];}}else _0x3c7221[_0x1e7ead(0x135)](_0x3c7221[_0x1e7ead(0x113)],_0x3c7221['fPNyb'])?(logger[_0x1e7ead(0x1b8)](_0x3c7221[_0x1e7ead(0x1b2)]),process[_0x1e7ead(0x161)](0x1)):_0x29c639[_0x1e7ead(0x14d)](_0x3c7221['jIaUv']);}}}catch(_0x9eab52){_0x3c7221[_0x1e7ead(0x16d)](_0x3c7221[_0x1e7ead(0x18b)],_0x3c7221[_0x1e7ead(0x13f)])?(_0x43934c=_0x1e7ead(0x20a)+_0x9eab52+':\x20'+_0x9eab52['stack'],logger[_0x1e7ead(0x1b8)](_0x43934c),await _0x3c7221[_0x1e7ead(0x1f0)](reportToGalactusAndSendToEDS,_0x38ceff,_0x1a5e8b,_0x43934c,messageTypes[_0x1e7ead(0x20b)],_0x3c7221['vMoBI'],_0x3c7221[_0x1e7ead(0x17a)],_0x3c7221['wbbXy']),process[_0x1e7ead(0x161)](0x1)):_0x43e43f+=_0x1e7ead(0x1e1)+_0x10d68d['clusterName']+'\x20'+(_0x5b9110?_0x3c7221['tvDet']:_0x3c7221['CadbP'])+'\x0a\x0a';}}function printResponse(_0x3ef247,_0x4e4344){const _0x791d9b=a17_0x331781,_0x400c29={};_0x400c29[_0x791d9b(0x1c1)]=function(_0xa0665a,_0x281ccf){return _0xa0665a===_0x281ccf;},_0x400c29['RIlaD']='xmSxo',_0x400c29[_0x791d9b(0x1f6)]=_0x791d9b(0x1fb);const _0x5868dc=_0x400c29;logger[_0x791d9b(0x136)]('['+_0x3ef247+_0x791d9b(0x15f)+_0x4e4344[_0x791d9b(0x1a7)]+_0x791d9b(0x1b7)+_0x4e4344[_0x791d9b(0x114)]+_0x791d9b(0x174)+_0x4e4344[_0x791d9b(0x1b8)]),_0x4e4344[_0x791d9b(0x1b8)]&&(_0x5868dc['xPIwL'](_0x5868dc[_0x791d9b(0x111)],_0x5868dc[_0x791d9b(0x1f6)])?_0x13fa51[_0x791d9b(0x161)](0x1):logger[_0x791d9b(0x1b8)](_0x791d9b(0x170)+_0x4e4344[_0x791d9b(0x1b8)]['stack']));}async function generateReport(_0x27e79c,_0x4714f8){const _0x15fe82=a17_0x331781,_0x1e6eb1={'dBzvl':function(_0x32ffcf,_0x2a0225){return _0x32ffcf+_0x2a0225;},'WDYTD':_0x15fe82(0x126),'JMKnp':'Failure','ZdfEd':function(_0x267a68,_0x32fa94){return _0x267a68||_0x32fa94;},'VkYjs':_0x15fe82(0x19c),'FpPvd':_0x15fe82(0x1c4),'GjVEN':_0x15fe82(0x16b),'XriIE':function(_0x484b69,_0x190f80){return _0x484b69!=_0x190f80;},'xlRjS':'is\x20already\x20present','BoDRP':'will\x20be\x20created','EqSGD':function(_0x13993e){return _0x13993e();}};let _0x2587a5=_0x15fe82(0x148)+global_registry[_0x15fe82(0x13d)]+_0x15fe82(0x1f3);return _0x27e79c['forEach']((_0x37002b,_0x5b756f)=>{const _0x4153ac=_0x15fe82,{header:_0x4b8bfb,response:_0xf251ed}=_0x37002b,{status:_0x4f9153,data:_0x47577c,error:_0xc81fd3}=_0xf251ed;_0x2587a5+=_0x4b8bfb+'\x20#'+_0x1e6eb1[_0x4153ac(0x1c2)](_0x5b756f,0x1)+'\x0a',_0x2587a5+='Status:\x20'+(_0x4f9153?_0x1e6eb1['WDYTD']:_0x1e6eb1[_0x4153ac(0x1f4)])+'\x0a',_0x2587a5+=_0x4153ac(0x18f)+_0x1e6eb1[_0x4153ac(0x154)](_0x47577c,_0x1e6eb1[_0x4153ac(0x1d6)])+'\x0a',_0xc81fd3&&(_0x2587a5+=_0x1e6eb1[_0x4153ac(0x152)],_0x2587a5+=_0x4153ac(0x150)+(_0xc81fd3[_0x4153ac(0x120)]||_0x1e6eb1[_0x4153ac(0x1d6)])+'\x0a',_0x2587a5+=_0x4153ac(0x118)+(_0xc81fd3['code']||_0x1e6eb1['VkYjs'])+'\x0a',_0x2587a5+=_0x4153ac(0x188)+(_0xc81fd3[_0x4153ac(0x117)]||_0x1e6eb1[_0x4153ac(0x1d6)])+'\x0a'),_0x2587a5+='\x0a\x0a';}),_0x2587a5+=_0x1e6eb1['GjVEN'],_0x1e6eb1[_0x15fe82(0x14f)](_0x4714f8,null)?_0x2587a5+=_0x15fe82(0x1e1)+global_registry['clusterName']+'\x20'+(_0x4714f8?_0x1e6eb1['xlRjS']:_0x1e6eb1[_0x15fe82(0x212)])+'\x0a\x0a':_0x2587a5+=_0x15fe82(0x1e1)+global_registry[_0x15fe82(0x16e)]+_0x15fe82(0x1e4),_0x2587a5+=_0x1e6eb1[_0x15fe82(0x13b)](getSystemMetaData),_0x2587a5;};exports[a17_0x331781(0x11e)]=async function(_0x33882b){const _0x5f4270=a17_0x331781,_0x14de41={'FrnJb':function(_0x4c4d15){return _0x4c4d15();},'TLora':function(_0x9bbf75){return _0x9bbf75();},'UqTZq':_0x5f4270(0x17c),'OmjDc':function(_0x19a2fc,_0x136600,_0x29c0a7,_0x17e8b9,_0x20bb44,_0x3b7784,_0x177874,_0x41c0b8){return _0x19a2fc(_0x136600,_0x29c0a7,_0x17e8b9,_0x20bb44,_0x3b7784,_0x177874,_0x41c0b8);},'QongB':'pre-check-grid-called','reZiP':_0x5f4270(0x1a8),'oCcdx':_0x5f4270(0x1b8),'NrJaN':function(_0x1d1d18,_0x27b5d2,_0x3fa031,_0x5110cb,_0xa4c5e9,_0x381f53,_0x155102){return _0x1d1d18(_0x27b5d2,_0x3fa031,_0x5110cb,_0xa4c5e9,_0x381f53,_0x155102);},'nOLpw':function(_0x5cb474){return _0x5cb474();},'fpnOR':'<UsernamePlaceholder>','wqfPL':_0x5f4270(0x20f),'nfsoZ':function(_0x3e5339,_0x5198b8,_0x37bd4b){return _0x3e5339(_0x5198b8,_0x37bd4b);},'DZbfV':function(_0x37d4e0,_0x3415f0,_0x7da6,_0x31b8f6,_0x2e18af,_0x5525ac,_0x5a5f72){return _0x37d4e0(_0x3415f0,_0x7da6,_0x31b8f6,_0x2e18af,_0x5525ac,_0x5a5f72);},'iwqUw':_0x5f4270(0x145),'fwlvd':_0x5f4270(0x131),'qbEvG':'0|2|3|4|1','mibGV':'accessResp','AyaPN':_0x5f4270(0x1d2),'cQSUJ':function(_0x300e40,_0xc82f5f){return _0x300e40(_0xc82f5f);},'hDpcr':_0x5f4270(0x1a3),'WfLuD':function(_0x51a7fa,_0x5a0ed8,_0x5a0625){return _0x51a7fa(_0x5a0ed8,_0x5a0625);},'DPVlb':'isTls1_2_SUPPORTED','adCrv':'Tool\x20Installed','AcpVm':_0x5f4270(0x1b3),'oWpMz':_0x5f4270(0x1be),'lXhpJ':_0x5f4270(0x208),'GCPZM':function(_0xf0c08b,_0xb94c32,_0x1c9bfe){return _0xf0c08b(_0xb94c32,_0x1c9bfe);},'KvEyI':function(_0xc9213,_0x1c1c9c){return _0xc9213+_0x1c1c9c;},'gQxRx':_0x5f4270(0x159),'uwjVF':_0x5f4270(0x192)};let _0x5c957a,_0x23f894;try{global_registry[_0x5f4270(0x1b5)]=_0x14de41['FrnJb'](uuidv4);!fs[_0x5f4270(0x125)](_0x14de41[_0x5f4270(0x165)](getCredentialsPath))&&(_0x23f894=_0x14de41[_0x5f4270(0x20d)],logger[_0x5f4270(0x1b8)](_0x23f894),await _0x14de41['OmjDc'](reportToGalactusAndSendToEDS,_0x33882b,_0x5c957a,_0x23f894,messageTypes[_0x5f4270(0x20b)],_0x14de41[_0x5f4270(0x206)],_0x14de41[_0x5f4270(0x1e6)],_0x14de41[_0x5f4270(0x182)]),process[_0x5f4270(0x161)](0x1));_0x14de41[_0x5f4270(0x158)](sendInstrumentationEvent,_0x33882b,_0x14de41['QongB'],messageTypes[_0x5f4270(0x173)],null,null,_0x33882b);const _0x2f380a=JSON[_0x5f4270(0x1c9)](fs[_0x5f4270(0x203)](_0x14de41[_0x5f4270(0x144)](getCredentialsPath)));global_registry[_0x5f4270(0x130)]=_0x2f380a[_0x5f4270(0x13e)][_0x5f4270(0x176)],global_registry[_0x5f4270(0x184)]=_0x2f380a['Browserstack'][_0x5f4270(0x155)];const _0x384d2a=WS_ENDPOINT[_0x5f4270(0x178)](_0x14de41[_0x5f4270(0x163)],_0x2f380a['Browserstack']['username'])['replace'](_0x14de41['wqfPL'],_0x2f380a[_0x5f4270(0x13e)][_0x5f4270(0x155)]),_0x280f9d={};_0x280f9d['WebSocket']=ws,_0x280f9d[_0x5f4270(0x1c3)]=0x36ee80,_0x5c957a=new ReconnectingWebSocket(_0x384d2a,[],_0x280f9d),global_registry[_0x5f4270(0x1c5)]=_0x14de41['nfsoZ'](getAuthHeader,global_registry[_0x5f4270(0x130)],global_registry[_0x5f4270(0x184)]),await _0x14de41[_0x5f4270(0x142)](inputValidation,_0x33882b,_0x5c957a),logger['info'](_0x5f4270(0x10e)+global_registry[_0x5f4270(0x13d)]+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x5ac15d=await _0x14de41[_0x5f4270(0x175)](getCloudProviderObjectWithOutInit,global_registry[_0x5f4270(0x13d)],global_registry[_0x5f4270(0x16e)],_0x14de41[_0x5f4270(0x18c)],_0x5c957a,webSocketUtils,_0x33882b);const _0x14282f=await _0x5ac15d[_0x5f4270(0x17f)]();_0x14de41[_0x5f4270(0x142)](printResponse,_0x14de41[_0x5f4270(0x166)],_0x14282f),_0x5ac15d=await _0x5ac15d[_0x5f4270(0x141)]();let _0x25881a=![];try{_0x25881a=await _0x5ac15d['isClusterPresent']();}catch(_0x4316eb){const _0xacbb09=_0x14de41[_0x5f4270(0x1a9)]['split']('|');let _0x47350f=0x0;while(!![]){switch(_0xacbb09[_0x47350f++]){case'0':_0x23f894='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x5f4270(0x12d)]+_0x5f4270(0x157)+_0x4316eb;continue;case'1':await _0x14de41['OmjDc'](reportToGalactusAndSendToEDS,_0x33882b,_0x5c957a,_0x23f894,messageTypes['ERROR'],_0x14de41[_0x5f4270(0x206)],_0x5f4270(0x1e5)+global_registry['cloudProvider'],_0x14de41[_0x5f4270(0x182)]);continue;case'2':_0x25881a=null;continue;case'3':logger[_0x5f4270(0x1b8)](_0x23f894);continue;case'4':_0x23f894+='\x0a'+JSON[_0x5f4270(0x132)](_0x4316eb[_0x5f4270(0x117)]);continue;}break;}}_0x25881a&&logger['info'](_0x5f4270(0x196)+global_registry[_0x5f4270(0x16e)]+'`\x20already\x20exists');const _0x2b2b2a=await _0x5ac15d['checkAccess']();_0x14de41['nfsoZ'](printResponse,_0x14de41['mibGV'],_0x2b2b2a);const _0x30dc8b=await _0x14de41['FrnJb'](curlRequest);_0x14de41[_0x5f4270(0x142)](printResponse,_0x14de41[_0x5f4270(0x1dd)],_0x30dc8b);const _0x33982a=await _0x14de41[_0x5f4270(0x181)](isTlsSupported,_0x14de41[_0x5f4270(0x1a6)]);_0x14de41[_0x5f4270(0x15c)](printResponse,_0x14de41[_0x5f4270(0x183)],_0x33982a);const _0x3021a3={};_0x3021a3[_0x5f4270(0x115)]=_0x14de41['adCrv'],_0x3021a3[_0x5f4270(0x18e)]=_0x14282f;const _0x47bd26={};_0x47bd26['header']=_0x14de41['AcpVm'],_0x47bd26['response']=_0x2b2b2a;const _0x13bf9b={};_0x13bf9b[_0x5f4270(0x115)]=_0x14de41[_0x5f4270(0x1fa)],_0x13bf9b[_0x5f4270(0x18e)]=_0x30dc8b;const _0x4d0b93={};_0x4d0b93['header']=_0x14de41[_0x5f4270(0x1c7)],_0x4d0b93[_0x5f4270(0x18e)]=_0x33982a;const _0x45d721=[_0x3021a3,_0x47bd26,_0x13bf9b,_0x4d0b93],_0x38a9b1=await _0x14de41[_0x5f4270(0x180)](generateReport,_0x45d721,_0x25881a),_0x2e1a6b=new Date(),_0x1e7bff=_0x2e1a6b['getUTCFullYear']()+'_'+_0x14de41['KvEyI'](_0x2e1a6b['getUTCMonth'](),0x1)+'_'+_0x2e1a6b[_0x5f4270(0x193)]()+'_'+_0x2e1a6b[_0x5f4270(0x127)]()+'_'+_0x2e1a6b[_0x5f4270(0x167)](),_0xb796fd=_0x5f4270(0x1e8)+_0x1e7bff+_0x5f4270(0x12a);fs[_0x5f4270(0x19a)](_0xb796fd,_0x38a9b1,_0x14de41[_0x5f4270(0x1e2)]),logger[_0x5f4270(0x136)](_0x5f4270(0x186)+_0xb796fd),process[_0x5f4270(0x161)](0x0);}catch(_0x51f7ec){let _0x59800e='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x51f7ec+'\x20';logger['error'](_0x59800e),_0x59800e+='\x0a'+JSON[_0x5f4270(0x132)](_0x51f7ec[_0x5f4270(0x117)]),logger[_0x5f4270(0x201)]('stack\x20trace\x20'+_0x51f7ec['stack']);if(_0x5c957a){const _0x1e416a={};_0x1e416a['type']=WS_EVENTS['LOG'],_0x1e416a['message']=_0x59800e,webSocketUtils['sendEventToBackend'](_0x5c957a,_0x1e416a,_0x14de41['oCcdx'],!![]);}await webSocketUtils[_0x5f4270(0x1a5)](0x7d0);const _0x56f38d={};_0x56f38d[_0x5f4270(0x1b8)]=_0x59800e,await _0x14de41[_0x5f4270(0x158)](sendInstrumentationEvent,_0x33882b,_0x14de41[_0x5f4270(0x206)],messageTypes['ERROR'],_0x14de41[_0x5f4270(0x122)],_0x56f38d,_0x33882b),process[_0x5f4270(0x161)](0x1);}};function a17_0x38cf(){const _0x1ab1c3=['EqSGD','BFKqj','cloudProvider','Browserstack','WpsZv','help','init','nfsoZ','name','nOLpw','dummy-grid','type','134rAoxGX','===\x20Precheck\x20Report\x20-\x20','CLOUD_PROVIDER','Failure','811368PWnFPG','8hannwF','push','BgKpD','XriIE','\x20\x20Message:\x20','../../cloudproviders/utils','FpPvd','jlvcZ','ZdfEd','password','XXoZj','`\x20,error\x20:\x20','NrJaN','utf-8','LKjmb','qzdBq','WfLuD','GLpnx','LOG',']\x20status\x20:\x20','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','exit','PcBDN','fpnOR','../../utils/instrumentationUtils','TLora','fwlvd','getUTCMinutes','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','../../config/constants','Cluster\x20details\x0a-----------------------\x0a','45aLAZKS','QdMIt','clusterName','command','error\x20stack\x20:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','zxzin','INFO','\x20error\x20:\x20','DZbfV','username','toLowerCase','replace','IbKlo','zUYTA','gbJBI','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','join','find','isCliToolInstalled','GCPZM','cQSUJ','oCcdx','DPVlb','bstackAccesskey','yovlZ','Report\x20saved\x20in\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','\x20\x20Stack:\x20','4913eBoLRP','TsldJ','SwZdx','iwqUw','../../config/logger','response','Message:\x20','YFkBG','includes','pre-check-failed','getUTCDate','EeIpW','YQTvg','Cluster\x20`','fVkyL','JoDYv','../../utils/utilityMethods','writeFileSync','gridProfile','N/A','argv','reconnecting-websocket','ZrtsR','ihEoJ','fVHyJ','sTmHO','TLSv1_2_client_method','ioXDN','delay','hDpcr','status','credential-not-found','qbEvG','mWxsa','jIaUv','Grid\x20profile\x20fetched\x20for\x20pre-check','length','https://','throwHttpErrors','5056074ibeUPq','KmSus','kYcNX','User\x20Access','GQPES','requestId','pre-check','\x20data\x20:\x20','error','qfWhi','pre-check-grid-profile-empty','cloud-provider-not-supported','bMYgo','`\x20already\x20exists','Whitelisted\x20browserstack','Status:\x20','pre-check-grid-called','xPIwL','dBzvl','connectionTimeout','Error\x20Details:\x0a','authHeader','zEAce','lXhpJ','vMoBI','parse','IvZai','1107030ajcrMK','FeOZR','isGDg','TWaCy','Invalid\x20input.\x20grid\x20profiles:\x20','hcrqH','options','isTrialGridAccessible','epilogue','pre_check','YwPaZ','VkYjs','got','pyvpl','10276280dnLDJL','cluster-name','hATKw','JYZHB','AyaPN','description','headers','xWVeX','Cluster\x20','gQxRx','grid-profile','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','cluster-check-failed-','reZiP','RoVph','log/report_','is\x20already\x20present','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','wbbXy','pstmV','mjjyI','grid\x20profile\x20flow\x20','region','HVQNa','XCdUC','jShTe','\x20===\x0a\x0a','JMKnp','XQboN','UAeaN','cloud-provider','qeYrv','builder','oWpMz','evRac','NULCW','nOzOY','LvwJy','SSDop','pPPVu','debug','pGIYJ','readFileSync','XCEUp','code','QongB','UveEO','SSL\x20Configured','/packages/cli/get-all-grid-profiles','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','ERROR','HcCfT','UqTZq','1887963oyWdcP','<PasswordPlaceholder>','string','Kjjae','BoDRP','Pre-check\x20running\x20for\x20Cloud\x20-\x20','method','YWnra','RIlaD','evjIg','fPNyb','data','header','AeVGb','stack','\x20\x20Code:\x20','HcYqy','will\x20be\x20created','nokux','qNQmn','PpJgc','handler','WcNti','message','KUigV','uwjVF','91596HFOiAB','pre-check-cluster-args-not-passed','existsSync','Success','getUTCHours','guOiP','HBDuz','.txt','owrOx','GESxT','clusterRegion','aMNip','../../utils/webSocketUtils','bstackUsername','toolInstalledResp','stringify','grid','kFdlL','zKgzb','info','.\x20Please\x20provide\x20all\x20required\x20arguments.','usage','KpeRQ','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.'];a17_0x38cf=function(){return _0x1ab1c3;};return a17_0x38cf();}
1
+ const a17_0xec0c0a=a17_0x2617;(function(_0x53ca0e,_0x460d93){const _0x4ae25f=a17_0x2617,_0x586ed3=_0x53ca0e();while(!![]){try{const _0xa5ddc1=parseInt(_0x4ae25f(0x2d7))/0x1+parseInt(_0x4ae25f(0x260))/0x2+-parseInt(_0x4ae25f(0x2e2))/0x3*(parseInt(_0x4ae25f(0x20a))/0x4)+parseInt(_0x4ae25f(0x2e6))/0x5*(-parseInt(_0x4ae25f(0x208))/0x6)+-parseInt(_0x4ae25f(0x227))/0x7+parseInt(_0x4ae25f(0x212))/0x8+parseInt(_0x4ae25f(0x2da))/0x9*(-parseInt(_0x4ae25f(0x1f5))/0xa);if(_0xa5ddc1===_0x460d93)break;else _0x586ed3['push'](_0x586ed3['shift']());}catch(_0xe91369){_0x586ed3['push'](_0x586ed3['shift']());}}}(a17_0x49cb,0x6bbfd));const fs=require('fs'),ws=require('ws'),got=require(a17_0xec0c0a(0x289)),{v4:uuidv4}=require(a17_0xec0c0a(0x224)),ReconnectingWebSocket=require(a17_0xec0c0a(0x21c)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0xec0c0a(0x237)),{logger}=require(a17_0xec0c0a(0x276)),{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_0xec0c0a(0x2e9)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0xec0c0a(0x2b6));exports[a17_0xec0c0a(0x2aa)]=a17_0xec0c0a(0x2cd),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0xec0c0a(0x2cc)]=function(_0x1a25b5){const _0x5aed69=a17_0xec0c0a,_0x4a84f7={};_0x4a84f7[_0x5aed69(0x2ed)]=_0x5aed69(0x1f6),_0x4a84f7[_0x5aed69(0x2e7)]=_0x5aed69(0x252),_0x4a84f7[_0x5aed69(0x2df)]=_0x5aed69(0x213),_0x4a84f7[_0x5aed69(0x257)]=_0x5aed69(0x2f3),_0x4a84f7[_0x5aed69(0x2bb)]=_0x5aed69(0x258),_0x4a84f7[_0x5aed69(0x220)]=_0x5aed69(0x22d);const _0xcf7fd7=_0x4a84f7,_0x552ad0={};_0x552ad0[_0x5aed69(0x221)]=_0xcf7fd7[_0x5aed69(0x2ed)],_0x552ad0[_0x5aed69(0x22f)]=_0xcf7fd7[_0x5aed69(0x2e7)];const _0x5b6de2={};_0x5b6de2[_0x5aed69(0x221)]=_0xcf7fd7['fDixr'],_0x5b6de2[_0x5aed69(0x22f)]=_0xcf7fd7[_0x5aed69(0x2e7)];const _0x27734e={};_0x27734e[_0x5aed69(0x221)]=_0xcf7fd7['XOvPv'],_0x27734e[_0x5aed69(0x22f)]=_0xcf7fd7[_0x5aed69(0x2e7)];const _0x29d3c3={};_0x29d3c3[_0x5aed69(0x221)]=_0xcf7fd7[_0x5aed69(0x2bb)],_0x29d3c3[_0x5aed69(0x22f)]=_0xcf7fd7['gdqdr'];const _0x40e787={};return _0x40e787[_0x5aed69(0x21d)]=_0x552ad0,_0x40e787[_0x5aed69(0x249)]=_0x5b6de2,_0x40e787[_0x5aed69(0x1fb)]=_0x27734e,_0x40e787[_0x5aed69(0x29d)]=_0x29d3c3,_0x1a25b5[_0x5aed69(0x2dc)](HELP_HEADER_MESSAGE[_0x5aed69(0x21a)])[_0x5aed69(0x2c3)](HELP_FOOTER_MESSAGE)[_0x5aed69(0x202)](_0x40e787)[_0x5aed69(0x22d)](_0xcf7fd7[_0x5aed69(0x220)])[_0x5aed69(0x207)];};async function inputValidation(_0x425778,_0x257d5d){const _0x2d6b07=a17_0xec0c0a,_0x4ca740={'ExbJB':_0x2d6b07(0x21f),'UqPOU':_0x2d6b07(0x25e),'tgsYA':_0x2d6b07(0x2a3),'POTRx':_0x2d6b07(0x1f6),'bAedQ':_0x2d6b07(0x252),'sjXxA':_0x2d6b07(0x213),'wcjQc':_0x2d6b07(0x2f3),'JKaxj':_0x2d6b07(0x258),'VgaBo':_0x2d6b07(0x22d),'hbHGd':_0x2d6b07(0x21d),'gFzLn':'cloud-provider','AmroR':function(_0x201b53,_0x210ee3){return _0x201b53+_0x210ee3;},'HUZJW':_0x2d6b07(0x2a8),'tAzCz':_0x2d6b07(0x239),'NVLvZ':function(_0x3ca825,_0x416338){return _0x3ca825||_0x416338;},'fAEwe':'N/A','QCfcH':_0x2d6b07(0x25c),'FMUdZ':_0x2d6b07(0x1fb),'XelWt':_0x2d6b07(0x270),'iENSG':function(_0x25689d,_0x1a9f5a){return _0x25689d===_0x1a9f5a;},'leyRP':_0x2d6b07(0x1f9),'cJSIz':_0x2d6b07(0x27c),'UmBKs':function(_0x56404c,_0x3b3499){return _0x56404c===_0x3b3499;},'pYVrd':'LdmBd','ZgBPd':'YWlqB','REdhv':function(_0x2df61b,_0x3f1ee2){return _0x2df61b!==_0x3f1ee2;},'OgTaA':_0x2d6b07(0x2e8),'xVkba':function(_0x214460,_0x17141d){return _0x214460===_0x17141d;},'YaCXW':_0x2d6b07(0x2d4),'lXkTF':_0x2d6b07(0x27f),'Fxhxr':function(_0xc5407e,_0x4ac7cf){return _0xc5407e===_0x4ac7cf;},'WCfSu':_0x2d6b07(0x269),'CYwOc':_0x2d6b07(0x2e3),'DHInf':function(_0x47d732,_0x25888d){return _0x47d732>_0x25888d;},'lOJLQ':function(_0x5199c0,_0x2838de){return _0x5199c0!==_0x2838de;},'qgNVm':_0x2d6b07(0x219),'TcICi':function(_0x12ca4f,_0x18e340,_0x548934,_0x1fae1d,_0x311506,_0x1e5666,_0x2b0e56,_0x316986){return _0x12ca4f(_0x18e340,_0x548934,_0x1fae1d,_0x311506,_0x1e5666,_0x2b0e56,_0x316986);},'ZpYnR':_0x2d6b07(0x21b),'SVtbt':_0x2d6b07(0x2a1),'HTHTl':function(_0x22b610,_0x1b24bf){return _0x22b610===_0x1b24bf;},'jCyMf':'GhVMo','bUwiF':_0x2d6b07(0x254),'fpOkh':_0x2d6b07(0x21e),'yfXrQ':function(_0xda007c,_0x34b891,_0x13a9aa,_0x49ca6d,_0x598067,_0x4d6374,_0x481b34,_0x15875b){return _0xda007c(_0x34b891,_0x13a9aa,_0x49ca6d,_0x598067,_0x4d6374,_0x481b34,_0x15875b);},'NpzDJ':'cloud-provider-not-supported','hxXCY':_0x2d6b07(0x2f9),'leOWl':_0x2d6b07(0x218),'WxPnT':function(_0x5122e1,_0x2b9419){return _0x5122e1===_0x2b9419;},'NwSlJ':_0x2d6b07(0x20e),'ukUoE':_0x2d6b07(0x247),'vCXzQ':_0x2d6b07(0x2f2),'uDNql':function(_0x417d29,_0x3db456,_0x574e7a){return _0x417d29(_0x3db456,_0x574e7a);},'Twlzg':function(_0x51e0b0,_0x4fcd8a,_0x16f30f,_0x19e2ba,_0x25b342,_0x5f351c){return _0x51e0b0(_0x4fcd8a,_0x16f30f,_0x19e2ba,_0x25b342,_0x5f351c);},'oSKzH':'pre-check','kygeJ':_0x2d6b07(0x29d),'wFOnO':function(_0x236653,_0x15cd82){return _0x236653===_0x15cd82;},'NCUnz':function(_0xcb1659,_0x355e6e){return _0xcb1659!==_0x355e6e;},'Apyxd':'GCpPV','TVfOU':function(_0x5599d5,_0x3f48fb){return _0x5599d5(_0x3f48fb);},'QilnW':_0x2d6b07(0x2bd),'ylChK':_0x2d6b07(0x2af),'AXaSH':function(_0x364d97,_0x1a9a30,_0x31be24,_0x234cb9,_0x2deadd,_0x394937,_0x13beab,_0x1ac77b){return _0x364d97(_0x1a9a30,_0x31be24,_0x234cb9,_0x2deadd,_0x394937,_0x13beab,_0x1ac77b);},'DgjgQ':_0x2d6b07(0x235),'VGQiA':function(_0x37195e,_0xd12d85){return _0x37195e!==_0xd12d85;},'xSLnY':_0x2d6b07(0x22b),'GXywY':_0x2d6b07(0x278),'qFOsP':_0x2d6b07(0x2cf),'sdWro':function(_0x25600e,_0x3b67df){return _0x25600e!==_0x3b67df;},'XTvnr':_0x2d6b07(0x290),'lqsyn':'hEzOL','jMUmK':function(_0xb66890,_0x24adbd){return _0xb66890!==_0x24adbd;},'KPgep':_0x2d6b07(0x1fc),'QwKTu':_0x2d6b07(0x24e),'hhZzH':function(_0x40594f,_0x3a5354,_0x3d2924,_0x224ab4,_0x115073,_0x52285f,_0x20b5ac,_0x5d73de){return _0x40594f(_0x3a5354,_0x3d2924,_0x224ab4,_0x115073,_0x52285f,_0x20b5ac,_0x5d73de);}};let _0x28824e;try{if(_0x4ca740[_0x2d6b07(0x271)](_0x4ca740[_0x2d6b07(0x24d)],_0x4ca740[_0x2d6b07(0x25f)]))_0x3be23e[_0x2d6b07(0x28c)]('['+_0x3bd413+']\x20status\x20:\x20'+_0x273503['status']+_0x2d6b07(0x28f)+_0x22fe12['data']+_0x2d6b07(0x256)+_0x1f1cc6['error']),_0x1263ba['error']&&_0x4f89c7[_0x2d6b07(0x2a3)](_0x2d6b07(0x24c)+_0x5c272c['error'][_0x2d6b07(0x2ec)]);else{if(_0x425778['clusterName']||_0x425778[_0x2d6b07(0x242)]||_0x425778[_0x2d6b07(0x1fb)]){if(_0x4ca740['UmBKs'](_0x4ca740[_0x2d6b07(0x28b)],_0x4ca740[_0x2d6b07(0x2f4)]))_0x19e007[_0x2d6b07(0x268)](0x1);else{const _0x37d7da=[];!_0x425778[_0x2d6b07(0x232)]&&(_0x4ca740[_0x2d6b07(0x2a5)](_0x4ca740['OgTaA'],_0x4ca740[_0x2d6b07(0x2b5)])?_0x2d3128+=_0x2d6b07(0x2b1)+_0x3fe9d1[_0x2d6b07(0x232)]+_0x2d6b07(0x2cb):_0x37d7da[_0x2d6b07(0x266)](_0x4ca740[_0x2d6b07(0x250)]));;!_0x425778[_0x2d6b07(0x242)]&&(_0x4ca740[_0x2d6b07(0x2bc)](_0x4ca740[_0x2d6b07(0x244)],_0x4ca740['lXkTF'])?_0x1759db=_0x1fc2ae:_0x37d7da[_0x2d6b07(0x266)](_0x4ca740[_0x2d6b07(0x203)]));;!_0x425778[_0x2d6b07(0x1fb)]&&(_0x4ca740[_0x2d6b07(0x253)](_0x4ca740[_0x2d6b07(0x2a0)],_0x4ca740['CYwOc'])?_0x586774+='Cluster\x20'+_0x39538d[_0x2d6b07(0x232)]+'\x20'+(_0x4c30a6?_0x4ca740['ExbJB']:_0x4ca740[_0x2d6b07(0x29f)])+'\x0a\x0a':_0x37d7da[_0x2d6b07(0x266)](_0x4ca740[_0x2d6b07(0x297)]));;if(_0x4ca740[_0x2d6b07(0x26f)](_0x37d7da[_0x2d6b07(0x2b3)],0x0)){if(_0x4ca740[_0x2d6b07(0x222)](_0x4ca740[_0x2d6b07(0x2d5)],_0x4ca740['qgNVm'])){const _0x3f4e38={};_0x3f4e38[_0x2d6b07(0x22f)]=_0x15e19c[_0x2d6b07(0x201)],_0x3f4e38['message']=_0x3d6e1c,_0x1da93b[_0x2d6b07(0x2f1)](_0x20c2fc,_0x3f4e38,_0x4ca740[_0x2d6b07(0x243)],!![]);}else _0x28824e=_0x2d6b07(0x274)+_0x37d7da[_0x2d6b07(0x2b4)](',\x20')+_0x2d6b07(0x2a9),await _0x4ca740[_0x2d6b07(0x2f0)](reportToGalactusAndSendToEDS,_0x425778,_0x257d5d,_0x28824e,messageTypes[_0x2d6b07(0x2c4)],_0x4ca740[_0x2d6b07(0x24f)],_0x4ca740[_0x2d6b07(0x2b0)],_0x4ca740[_0x2d6b07(0x243)]),logger[_0x2d6b07(0x2a3)](_0x28824e),process[_0x2d6b07(0x268)](0x1);}if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2d6b07(0x2d8)](_0x425778[_0x2d6b07(0x242)][_0x2d6b07(0x27a)]())){if(_0x4ca740[_0x2d6b07(0x211)](_0x4ca740[_0x2d6b07(0x261)],_0x4ca740[_0x2d6b07(0x2ae)])){const _0x1a4d8e={};_0x1a4d8e['description']=_0x4ca740[_0x2d6b07(0x251)],_0x1a4d8e[_0x2d6b07(0x22f)]=_0x4ca740[_0x2d6b07(0x23e)];const _0x43b8fd={};_0x43b8fd['description']=_0x4ca740['sjXxA'],_0x43b8fd[_0x2d6b07(0x22f)]=_0x4ca740[_0x2d6b07(0x23e)];const _0x189df3={};_0x189df3[_0x2d6b07(0x221)]=_0x4ca740['wcjQc'],_0x189df3[_0x2d6b07(0x22f)]=_0x4ca740[_0x2d6b07(0x23e)];const _0xd238af={};_0xd238af[_0x2d6b07(0x221)]=_0x4ca740[_0x2d6b07(0x2c7)],_0xd238af[_0x2d6b07(0x22f)]=_0x4ca740[_0x2d6b07(0x23e)];const _0x16b57f={};return _0x16b57f['cluster-name']=_0x1a4d8e,_0x16b57f['cloud-provider']=_0x43b8fd,_0x16b57f['region']=_0x189df3,_0x16b57f[_0x2d6b07(0x29d)]=_0xd238af,_0x16c3be['usage'](_0x5bc8cf[_0x2d6b07(0x21a)])[_0x2d6b07(0x2c3)](_0x20473c)['options'](_0x16b57f)[_0x2d6b07(0x22d)](_0x4ca740['VgaBo'])[_0x2d6b07(0x207)];}else _0x28824e=_0x4ca740['fpOkh'],await _0x4ca740['yfXrQ'](reportToGalactusAndSendToEDS,_0x425778,_0x257d5d,_0x28824e,messageTypes[_0x2d6b07(0x2c4)],_0x4ca740[_0x2d6b07(0x24f)],_0x4ca740[_0x2d6b07(0x294)],_0x4ca740[_0x2d6b07(0x243)]),logger[_0x2d6b07(0x2a3)](_0x28824e),!_0x425778[_0x2d6b07(0x242)]&&(_0x4ca740['iENSG'](_0x4ca740['hxXCY'],_0x4ca740[_0x2d6b07(0x236)])?_0x56b747[_0x2d6b07(0x2a3)](_0x2d6b07(0x24c)+_0xfb48be[_0x2d6b07(0x2a3)][_0x2d6b07(0x2ec)]):(logger[_0x2d6b07(0x28c)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x2d6b07(0x291)]+'\x20'),_0x425778['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x2d6b07(0x291)]));}global_registry['clusterName']=_0x425778['clusterName'],global_registry[_0x2d6b07(0x242)]=_0x425778[_0x2d6b07(0x242)],global_registry[_0x2d6b07(0x28e)]=_0x425778['region'];}}else{if(_0x425778[_0x2d6b07(0x20d)]){if(_0x4ca740['WxPnT'](_0x4ca740[_0x2d6b07(0x267)],_0x4ca740[_0x2d6b07(0x230)]))_0x486624[_0x2d6b07(0x266)](_0x4ca740['hbHGd']);else{global_registry['gridProfile']=_0x425778[_0x2d6b07(0x20d)],logger[_0x2d6b07(0x2ef)](_0x2d6b07(0x2c5)+_0x425778[_0x2d6b07(0x20d)]);const _0x37529d=_0x2d6b07(0x286)+AG_API_URL+_0x2d6b07(0x24a),_0x5d8ae4={};_0x5d8ae4[_0x2d6b07(0x293)]=_0x4ca740[_0x2d6b07(0x2e5)],_0x5d8ae4[_0x2d6b07(0x27e)]=global_registry[_0x2d6b07(0x2dd)],_0x5d8ae4['throwHttpErrors']=![];const _0x360887=_0x5d8ae4,_0x275988=await _0x4ca740['uDNql'](got,_0x37529d,_0x360887),_0x544811=await _0x4ca740[_0x2d6b07(0x29b)](responseValidation,_0x275988,_0x4ca740['oSKzH'],_0x4ca740[_0x2d6b07(0x2ee)],_0x425778,_0x257d5d);let _0x2c5da1={};if(_0x4ca740['wFOnO'](_0x544811,0xc8)){if(_0x4ca740[_0x2d6b07(0x25b)](_0x4ca740[_0x2d6b07(0x259)],_0x4ca740[_0x2d6b07(0x259)]))_0x87d958[_0x2d6b07(0x28c)](_0x2d6b07(0x288)+_0x1bf0c0['clusterName']+_0x2d6b07(0x2db));else{const _0x296e17=JSON[_0x2d6b07(0x209)](_0x275988[_0x2d6b07(0x1fd)]),_0x998164=_0x296e17[_0x2d6b07(0x25a)](_0x2aa935=>_0x2aa935[_0x2d6b07(0x241)]===_0x425778['gridProfile'])||null;if(_0x4ca740['TVfOU'](isUndefined,_0x998164))_0x4ca740[_0x2d6b07(0x222)](_0x4ca740[_0x2d6b07(0x2d9)],_0x4ca740[_0x2d6b07(0x26c)])?(_0x28824e='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x425778[_0x2d6b07(0x20d)]+_0x2d6b07(0x1f8),await _0x4ca740[_0x2d6b07(0x204)](reportToGalactusAndSendToEDS,_0x425778,_0x257d5d,_0x28824e,messageTypes[_0x2d6b07(0x2c4)],_0x4ca740[_0x2d6b07(0x24f)],_0x4ca740[_0x2d6b07(0x2a2)],_0x4ca740[_0x2d6b07(0x243)]),logger[_0x2d6b07(0x2a3)](_0x28824e),process[_0x2d6b07(0x268)](0x1)):_0x55c546['push'](_0x4ca740['gFzLn']);else{if(_0x4ca740[_0x2d6b07(0x240)](_0x4ca740[_0x2d6b07(0x2b9)],_0x4ca740[_0x2d6b07(0x2b9)])){const {header:_0x419b7b,response:_0x16f7d7}=_0x3cbbf1,{status:_0x14ed7b,data:_0x3d7da5,error:_0x14a530}=_0x16f7d7;_0x39b219+=_0x419b7b+'\x20#'+_0x4ca740['AmroR'](_0x4a0e7e,0x1)+'\x0a',_0x55fcb6+=_0x2d6b07(0x228)+(_0x14ed7b?_0x4ca740['HUZJW']:_0x4ca740[_0x2d6b07(0x2f8)])+'\x0a',_0xe90d2b+=_0x2d6b07(0x22e)+_0x4ca740[_0x2d6b07(0x296)](_0x3d7da5,_0x4ca740['fAEwe'])+'\x0a',_0x14a530&&(_0x12a54a+=_0x4ca740[_0x2d6b07(0x26e)],_0x4a770f+=_0x2d6b07(0x277)+(_0x14a530[_0x2d6b07(0x2d2)]||_0x4ca740[_0x2d6b07(0x2eb)])+'\x0a',_0x5d523d+=_0x2d6b07(0x284)+(_0x14a530['code']||_0x4ca740[_0x2d6b07(0x2eb)])+'\x0a',_0x2110a4+=_0x2d6b07(0x29e)+(_0x14a530[_0x2d6b07(0x2ec)]||_0x4ca740[_0x2d6b07(0x2eb)])+'\x0a'),_0x4242cb+='\x0a\x0a';}else _0x2c5da1=_0x998164;}}}else _0x4ca740[_0x2d6b07(0x2a5)](_0x4ca740[_0x2d6b07(0x2a7)],_0x4ca740[_0x2d6b07(0x2a7)])?(_0x56e54d+=_0x4ca740['QCfcH'],_0x373564+=_0x2d6b07(0x277)+(_0x1b5f82[_0x2d6b07(0x2d2)]||_0x4ca740['fAEwe'])+'\x0a',_0x57756c+=_0x2d6b07(0x284)+(_0x20245a[_0x2d6b07(0x26a)]||_0x4ca740[_0x2d6b07(0x2eb)])+'\x0a',_0x57a888+=_0x2d6b07(0x29e)+(_0x1b4c1b[_0x2d6b07(0x2ec)]||_0x4ca740[_0x2d6b07(0x2eb)])+'\x0a'):process[_0x2d6b07(0x268)](0x1);const _0x341819={};_0x341819[_0x2d6b07(0x22f)]=WS_EVENTS[_0x2d6b07(0x201)],_0x341819[_0x2d6b07(0x2d2)]=_0x4ca740[_0x2d6b07(0x205)],webSocketUtils[_0x2d6b07(0x2f1)](_0x257d5d,_0x341819),global_registry[_0x2d6b07(0x242)]=_0x2c5da1[_0x2d6b07(0x242)],global_registry[_0x2d6b07(0x28e)]=_0x2c5da1[_0x2d6b07(0x1fb)],global_registry[_0x2d6b07(0x232)]=_0x2c5da1[_0x2d6b07(0x232)];}}else _0x4ca740[_0x2d6b07(0x20c)](_0x4ca740[_0x2d6b07(0x272)],_0x4ca740[_0x2d6b07(0x23f)])?(logger[_0x2d6b07(0x2a3)](_0x4ca740[_0x2d6b07(0x1fe)]),process[_0x2d6b07(0x268)](0x1)):_0x3b5058[_0x2d6b07(0x266)](_0x4ca740[_0x2d6b07(0x297)]);}}}catch(_0x34a6a9){_0x4ca740[_0x2d6b07(0x22c)](_0x4ca740[_0x2d6b07(0x2b2)],_0x4ca740[_0x2d6b07(0x273)])?(_0x28824e=_0x2d6b07(0x200)+_0x34a6a9+':\x20'+_0x34a6a9[_0x2d6b07(0x2ec)],logger['error'](_0x28824e),await _0x4ca740[_0x2d6b07(0x215)](reportToGalactusAndSendToEDS,_0x425778,_0x257d5d,_0x28824e,messageTypes[_0x2d6b07(0x2c4)],_0x4ca740[_0x2d6b07(0x24f)],_0x4ca740[_0x2d6b07(0x294)],_0x4ca740[_0x2d6b07(0x243)]),process[_0x2d6b07(0x268)](0x1)):(_0x213a6a[_0x2d6b07(0x2a3)](_0x4ca740[_0x2d6b07(0x1fe)]),_0xcd59de[_0x2d6b07(0x268)](0x1));}}function printResponse(_0xa8b9ee,_0x11374f){const _0x237980=a17_0xec0c0a,_0x2b5593={};_0x2b5593[_0x237980(0x2d6)]=function(_0x19bac5,_0x30e8be){return _0x19bac5===_0x30e8be;},_0x2b5593[_0x237980(0x22a)]='IbQcp',_0x2b5593[_0x237980(0x20b)]='mHZwH';const _0x3184c6=_0x2b5593;logger['info']('['+_0xa8b9ee+']\x20status\x20:\x20'+_0x11374f[_0x237980(0x29c)]+_0x237980(0x28f)+_0x11374f[_0x237980(0x2fb)]+_0x237980(0x256)+_0x11374f['error']),_0x11374f[_0x237980(0x2a3)]&&(_0x3184c6['ODgrh'](_0x3184c6[_0x237980(0x22a)],_0x3184c6[_0x237980(0x20b)])?(_0xddfdc2[_0x237980(0x28c)](_0x237980(0x295)+_0x3bf11b['CLOUD_PROVIDER']+'\x20'),_0x1a41a5[_0x237980(0x242)]=_0x1d3c5e[_0x237980(0x291)]):logger[_0x237980(0x2a3)]('error\x20stack\x20:\x20'+_0x11374f[_0x237980(0x2a3)][_0x237980(0x2ec)]));}function a17_0x49cb(){const _0x5b8cfc=['YaCXW','\x20===\x0a\x0a','thSFo','vsZZC','isClusterPresent','cloud-provider','/packages/cli/get-all-grid-profiles','requestId','error\x20stack\x20:\x20','leyRP','CoYWe','ZpYnR','hbHGd','POTRx','string','Fxhxr','xiLSY','lgJmv','\x20error\x20:\x20','XOvPv','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Apyxd','find','NCUnz','Error\x20Details:\x0a','handler','will\x20be\x20created','cJSIz','1265630LecYjG','jCyMf','\x20region\x20-\x20','HoGxf','qgran','cluster-check-failed-','push','NwSlJ','exit','rTdBB','code','rOlxW','ylChK','UjpcY','QCfcH','DHInf','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','iENSG','XTvnr','QwKTu','Missing\x20required\x20arguments:\x20','utf-8','../../config/logger','\x20\x20Message:\x20','vOUDC','getUTCHours','toLowerCase','bstackUsername','XXdYk','BhZXl','headers','jRnXl','LIvvX','Qbxiu','flqaB','KkWrj','\x20\x20Code:\x20','`\x20is\x20present\x20in\x20region\x20`','https://','forEach','Cluster\x20`','got','stack\x20trace\x20','pYVrd','info','goYTX','clusterRegion','\x20data\x20:\x20','RfZUg','CLOUD_PROVIDER','Mhdci','method','NpzDJ','Setting\x20cloud\x20provider\x20as\x20','NVLvZ','FMUdZ','existsSync','qesna','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Twlzg','status','grid-profile','\x20\x20Stack:\x20','UqPOU','WCfSu','pre-check-cluster-args-not-passed','DgjgQ','error','log/report_','REdhv','KzBaF','GXywY','Success','.\x20Please\x20provide\x20all\x20required\x20arguments.','command','sAibj','bstackAccesskey','Tool\x20Installed','bUwiF','RVoic','SVtbt','Cluster\x20','KPgep','length','join','OgTaA','../../utils/instrumentationUtils','KMNcV','getUTCFullYear','xSLnY','header','ZYAlM','xVkba','IGymA','credential-not-found','zqhaf','unable\x20to\x20verify\x20if\x20cluster\x20`','delay','tIPSz','epilogue','ERROR','grid\x20profile\x20flow\x20','0|3|4|1|2','JKaxj','N/A','username','accessResp','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','builder','grid','Report\x20saved\x20in\x20','Grid\x20profile\x20fetched\x20for\x20pre-check','.txt','readFileSync','message','getUTCMinutes','UFibH','qgNVm','ODgrh','739813Qpmkhc','includes','QilnW','5074389ESMlNO','`\x20already\x20exists','usage','authHeader','IjMcC','fDixr','dummy-grid','TABUN','6CiJMZr','DyKun','kZCXC','vCXzQ','282265CztbkN','gdqdr','UmeHR','../../cloudproviders/utils','aunkb','fAEwe','stack','wsHOM','kygeJ','debug','TcICi','sendEventToBackend','GET','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ZgBPd','response','fJphS','replace','tAzCz','ylUWi','password','data','nPfib','10arLZmg','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Cluster\x20details\x0a-----------------------\x0a','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','etxhV','Browserstack','region','opYQD','body','XelWt','isCliToolInstalled','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','LOG','options','gFzLn','AXaSH','qFOsP','YzPdj','argv','12TajldU','parse','825524STtuFU','TQXdp','sdWro','gridProfile','HKbgv','kHJbK','stringify','HTHTl','3295912RVFnTm','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','writeFileSync','hhZzH','JflWi','cnVuE','KbHVm','vccQd','pre_check','pre-check-grid-called','reconnecting-websocket','cluster-name','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','is\x20already\x20present','uegbr','description','lOJLQ','qQtdR','uuid','nKeYm','`\x20,error\x20:\x20','1776509afZnTL','Status:\x20','KQsha','JeQrp','lzkrN','jMUmK','help','Message:\x20','type','ukUoE','toolInstalledResp','clusterName','Failed\x20in\x20pre-check!\x20Error:\x20','dJMbG','pre-check-grid-profile-empty','leOWl','../../utils/utilityMethods','WebSocket','Failure','oFMoE','Whitelisted\x20browserstack','checkAccess','isTls1_2_SUPPORTED','bAedQ','lqsyn','VGQiA','name','cloudProvider','tgsYA'];a17_0x49cb=function(){return _0x5b8cfc;};return a17_0x49cb();}async function generateReport(_0x284c88,_0x49a08a){const _0x15a856=a17_0xec0c0a,_0x1728c6={'aunkb':function(_0x584e87,_0x2f3f4c){return _0x584e87+_0x2f3f4c;},'KzBaF':_0x15a856(0x2a8),'OAwRp':_0x15a856(0x239),'nPfib':function(_0xb0f1f3,_0x1c04b3){return _0xb0f1f3||_0x1c04b3;},'qgran':_0x15a856(0x2c8),'BhZXl':_0x15a856(0x25c),'JflWi':_0x15a856(0x1f7),'nAAuS':function(_0x1a2ad9,_0x121394){return _0x1a2ad9!=_0x121394;},'eGWtv':_0x15a856(0x21f),'kZCXC':_0x15a856(0x25e),'KkWrj':function(_0x38c5d1){return _0x38c5d1();}};let _0x557f73='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x15a856(0x242)]+_0x15a856(0x245);return _0x284c88[_0x15a856(0x287)]((_0x305b1f,_0x2d94d6)=>{const _0x5df2e5=_0x15a856,{header:_0x1dd65d,response:_0x4412d7}=_0x305b1f,{status:_0x5c170c,data:_0x5ca1a0,error:_0x48f888}=_0x4412d7;_0x557f73+=_0x1dd65d+'\x20#'+_0x1728c6[_0x5df2e5(0x2ea)](_0x2d94d6,0x1)+'\x0a',_0x557f73+=_0x5df2e5(0x228)+(_0x5c170c?_0x1728c6[_0x5df2e5(0x2a6)]:_0x1728c6['OAwRp'])+'\x0a',_0x557f73+=_0x5df2e5(0x22e)+_0x1728c6[_0x5df2e5(0x1f4)](_0x5ca1a0,_0x1728c6[_0x5df2e5(0x264)])+'\x0a',_0x48f888&&(_0x557f73+=_0x1728c6[_0x5df2e5(0x27d)],_0x557f73+='\x20\x20Message:\x20'+(_0x48f888['message']||_0x1728c6['qgran'])+'\x0a',_0x557f73+=_0x5df2e5(0x284)+(_0x48f888['code']||_0x1728c6[_0x5df2e5(0x264)])+'\x0a',_0x557f73+=_0x5df2e5(0x29e)+(_0x48f888[_0x5df2e5(0x2ec)]||_0x1728c6[_0x5df2e5(0x264)])+'\x0a'),_0x557f73+='\x0a\x0a';}),_0x557f73+=_0x1728c6[_0x15a856(0x216)],_0x1728c6['nAAuS'](_0x49a08a,null)?_0x557f73+='Cluster\x20'+global_registry[_0x15a856(0x232)]+'\x20'+(_0x49a08a?_0x1728c6['eGWtv']:_0x1728c6[_0x15a856(0x2e4)])+'\x0a\x0a':_0x557f73+='Cluster\x20'+global_registry[_0x15a856(0x232)]+_0x15a856(0x2cb),_0x557f73+=_0x1728c6[_0x15a856(0x283)](getSystemMetaData),_0x557f73;}function a17_0x2617(_0x1e4183,_0x226a6e){const _0x49cb32=a17_0x49cb();return a17_0x2617=function(_0x26174a,_0x1de7da){_0x26174a=_0x26174a-0x1f4;let _0x114e8d=_0x49cb32[_0x26174a];return _0x114e8d;},a17_0x2617(_0x1e4183,_0x226a6e);};exports[a17_0xec0c0a(0x25d)]=async function(_0x243f36){const _0x29d840=a17_0xec0c0a,_0x294e02={'zqhaf':function(_0x319385){return _0x319385();},'lgJmv':function(_0x46408b){return _0x46408b();},'LIvvX':_0x29d840(0x29a),'KMNcV':function(_0x2403f3,_0x4f2cf6,_0x3fd75f,_0x3d16ad,_0x2ddbc5,_0x45e7c4,_0x1b09a9,_0x39ac12){return _0x2403f3(_0x4f2cf6,_0x3fd75f,_0x3d16ad,_0x2ddbc5,_0x45e7c4,_0x1b09a9,_0x39ac12);},'YzPdj':_0x29d840(0x21b),'IjMcC':_0x29d840(0x2be),'goYTX':_0x29d840(0x2a3),'sAibj':function(_0x1ca7d8,_0x5948f3,_0x63d907,_0x39a0f5,_0x26d97d,_0x79432f,_0x2afa84){return _0x1ca7d8(_0x5948f3,_0x63d907,_0x39a0f5,_0x26d97d,_0x79432f,_0x2afa84);},'nKeYm':function(_0x41efb8){return _0x41efb8();},'kHJbK':'<UsernamePlaceholder>','vbMsb':'<PasswordPlaceholder>','HoGxf':function(_0x293cf6,_0x5ee15e,_0x4dd818){return _0x293cf6(_0x5ee15e,_0x4dd818);},'Mhdci':function(_0x1ffbf8,_0x5b9f9e,_0x1a74ec){return _0x1ffbf8(_0x5b9f9e,_0x1a74ec);},'flqaB':_0x29d840(0x2e0),'tIPSz':_0x29d840(0x231),'fJphS':_0x29d840(0x2c6),'njiOw':function(_0x450f22,_0x1c5693,_0x12d090,_0x23c382,_0x10952e,_0x396089,_0x11b668,_0x437300){return _0x450f22(_0x1c5693,_0x12d090,_0x23c382,_0x10952e,_0x396089,_0x11b668,_0x437300);},'RQIEp':function(_0x15c49a,_0x58401a,_0x4b03fd){return _0x15c49a(_0x58401a,_0x4b03fd);},'cnVuE':_0x29d840(0x2ca),'qesna':function(_0x5d8f1c,_0x1f1e9b,_0x854f7c){return _0x5d8f1c(_0x1f1e9b,_0x854f7c);},'wPswU':'isTrialGridAccessible','qQtdR':function(_0x54d26b,_0x38721c){return _0x54d26b(_0x38721c);},'KQsha':'TLSv1_2_client_method','thSFo':function(_0x12251e,_0x438b18,_0x298a4c){return _0x12251e(_0x438b18,_0x298a4c);},'UjpcY':_0x29d840(0x23d),'Qbxiu':_0x29d840(0x2ad),'kPZzy':'User\x20Access','TABUN':_0x29d840(0x23b),'oFMoE':'SSL\x20Configured','rOlxW':function(_0x3d3d55,_0xe19a8b){return _0x3d3d55+_0xe19a8b;},'dJMbG':_0x29d840(0x275),'bDLhZ':'pre-check-failed'};let _0x5a8cc3,_0x50f6f5;try{global_registry[_0x29d840(0x24b)]=_0x294e02[_0x29d840(0x2bf)](uuidv4);!fs[_0x29d840(0x298)](_0x294e02[_0x29d840(0x255)](getCredentialsPath))&&(_0x50f6f5=_0x294e02[_0x29d840(0x280)],logger[_0x29d840(0x2a3)](_0x50f6f5),await _0x294e02[_0x29d840(0x2b7)](reportToGalactusAndSendToEDS,_0x243f36,_0x5a8cc3,_0x50f6f5,messageTypes[_0x29d840(0x2c4)],_0x294e02['YzPdj'],_0x294e02[_0x29d840(0x2de)],_0x294e02[_0x29d840(0x28d)]),process[_0x29d840(0x268)](0x1));_0x294e02[_0x29d840(0x2ab)](sendInstrumentationEvent,_0x243f36,_0x294e02[_0x29d840(0x206)],messageTypes['INFO'],null,null,_0x243f36);const _0x7ec395=JSON[_0x29d840(0x209)](fs[_0x29d840(0x2d1)](_0x294e02['nKeYm'](getCredentialsPath)));global_registry[_0x29d840(0x27b)]=_0x7ec395[_0x29d840(0x1fa)][_0x29d840(0x2c9)],global_registry[_0x29d840(0x2ac)]=_0x7ec395[_0x29d840(0x1fa)]['password'];const _0x1d6e7a=WS_ENDPOINT[_0x29d840(0x2f7)](_0x294e02[_0x29d840(0x20f)],_0x7ec395[_0x29d840(0x1fa)][_0x29d840(0x2c9)])['replace'](_0x294e02['vbMsb'],_0x7ec395[_0x29d840(0x1fa)][_0x29d840(0x2fa)]),_0x1a5446={};_0x1a5446[_0x29d840(0x238)]=ws,_0x1a5446['connectionTimeout']=0x36ee80,_0x5a8cc3=new ReconnectingWebSocket(_0x1d6e7a,[],_0x1a5446),global_registry[_0x29d840(0x2dd)]=_0x294e02[_0x29d840(0x263)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x294e02['Mhdci'](inputValidation,_0x243f36,_0x5a8cc3),logger[_0x29d840(0x28c)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+_0x29d840(0x262)+global_registry[_0x29d840(0x28e)]);let _0x359f8c=await _0x294e02['sAibj'](getCloudProviderObjectWithOutInit,global_registry[_0x29d840(0x242)],global_registry[_0x29d840(0x232)],_0x294e02[_0x29d840(0x282)],_0x5a8cc3,webSocketUtils,_0x243f36);const _0x2d3010=await _0x359f8c[_0x29d840(0x1ff)]();_0x294e02[_0x29d840(0x292)](printResponse,_0x294e02[_0x29d840(0x2c2)],_0x2d3010),_0x359f8c=await _0x359f8c['init']();let _0x318bd2=![];try{_0x318bd2=await _0x359f8c[_0x29d840(0x248)]();}catch(_0x40c4f1){const _0xc54090=_0x294e02[_0x29d840(0x2f6)]['split']('|');let _0x4501b2=0x0;while(!![]){switch(_0xc54090[_0x4501b2++]){case'0':_0x50f6f5=_0x29d840(0x2c0)+global_registry['clusterName']+_0x29d840(0x285)+global_registry[_0x29d840(0x28e)]+_0x29d840(0x226)+_0x40c4f1;continue;case'1':_0x50f6f5+='\x0a'+JSON[_0x29d840(0x210)](_0x40c4f1[_0x29d840(0x2ec)]);continue;case'2':await _0x294e02['njiOw'](reportToGalactusAndSendToEDS,_0x243f36,_0x5a8cc3,_0x50f6f5,messageTypes['ERROR'],_0x294e02[_0x29d840(0x206)],_0x29d840(0x265)+global_registry[_0x29d840(0x242)],_0x294e02['goYTX']);continue;case'3':_0x318bd2=null;continue;case'4':logger[_0x29d840(0x2a3)](_0x50f6f5);continue;}break;}}_0x318bd2&&logger['info']('Cluster\x20`'+global_registry[_0x29d840(0x232)]+_0x29d840(0x2db));const _0x1cfce7=await _0x359f8c[_0x29d840(0x23c)]();_0x294e02['RQIEp'](printResponse,_0x294e02[_0x29d840(0x217)],_0x1cfce7);const _0x59c02a=await _0x294e02[_0x29d840(0x225)](curlRequest);_0x294e02[_0x29d840(0x299)](printResponse,_0x294e02['wPswU'],_0x59c02a);const _0x58dd1c=await _0x294e02[_0x29d840(0x223)](isTlsSupported,_0x294e02[_0x29d840(0x229)]);_0x294e02[_0x29d840(0x246)](printResponse,_0x294e02[_0x29d840(0x26d)],_0x58dd1c);const _0x599444={};_0x599444[_0x29d840(0x2ba)]=_0x294e02[_0x29d840(0x281)],_0x599444['response']=_0x2d3010;const _0x203deb={};_0x203deb[_0x29d840(0x2ba)]=_0x294e02['kPZzy'],_0x203deb[_0x29d840(0x2f5)]=_0x1cfce7;const _0x3f7803={};_0x3f7803[_0x29d840(0x2ba)]=_0x294e02[_0x29d840(0x2e1)],_0x3f7803['response']=_0x59c02a;const _0x2aed3f={};_0x2aed3f[_0x29d840(0x2ba)]=_0x294e02[_0x29d840(0x23a)],_0x2aed3f[_0x29d840(0x2f5)]=_0x58dd1c;const _0x1fb2d6=[_0x599444,_0x203deb,_0x3f7803,_0x2aed3f],_0x8a2a=await _0x294e02[_0x29d840(0x263)](generateReport,_0x1fb2d6,_0x318bd2),_0x543b8a=new Date(),_0x4a3a73=_0x543b8a[_0x29d840(0x2b8)]()+'_'+_0x294e02[_0x29d840(0x26b)](_0x543b8a['getUTCMonth'](),0x1)+'_'+_0x543b8a['getUTCDate']()+'_'+_0x543b8a[_0x29d840(0x279)]()+'_'+_0x543b8a[_0x29d840(0x2d3)](),_0x9680cc=_0x29d840(0x2a4)+_0x4a3a73+_0x29d840(0x2d0);fs[_0x29d840(0x214)](_0x9680cc,_0x8a2a,_0x294e02[_0x29d840(0x234)]),logger['info'](_0x29d840(0x2ce)+_0x9680cc),process[_0x29d840(0x268)](0x0);}catch(_0x14ab19){let _0x1bfb41=_0x29d840(0x233)+_0x14ab19+'\x20';logger['error'](_0x1bfb41),_0x1bfb41+='\x0a'+JSON[_0x29d840(0x210)](_0x14ab19[_0x29d840(0x2ec)]),logger[_0x29d840(0x2ef)](_0x29d840(0x28a)+_0x14ab19[_0x29d840(0x2ec)]);if(_0x5a8cc3){const _0x2d4604={};_0x2d4604['type']=WS_EVENTS[_0x29d840(0x201)],_0x2d4604['message']=_0x1bfb41,webSocketUtils[_0x29d840(0x2f1)](_0x5a8cc3,_0x2d4604,_0x294e02[_0x29d840(0x28d)],!![]);}await webSocketUtils[_0x29d840(0x2c1)](0x7d0);const _0x18988b={};_0x18988b[_0x29d840(0x2a3)]=_0x1bfb41,await _0x294e02[_0x29d840(0x2ab)](sendInstrumentationEvent,_0x243f36,_0x294e02[_0x29d840(0x206)],messageTypes[_0x29d840(0x2c4)],_0x294e02['bDLhZ'],_0x18988b,_0x243f36),process[_0x29d840(0x268)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x5046(){const _0x3a4c43=['4528hctueQ','usage','strict','9JwtzTN','9052911gQZSsx','806qACZdK','demandCommand','2211dAIWgo','Start\x20an\x20existing\x20Automation\x20grid.','tOAvI','recommendCommands','90AOOWki','1635fTYcpq','9909656gcMmSW','handler','command','26fVbjOn','5643048eRSXkO','11cQpeKD','epilogue','132895WVWbdd','start_commands','start','commandDir','8729690jsudHd','help'];a18_0x5046=function(){return _0x3a4c43;};return a18_0x5046();}const a18_0x53a833=a18_0x289f;function a18_0x289f(_0x3d5a72,_0x1d7fe5){const _0x5046ec=a18_0x5046();return a18_0x289f=function(_0x289f59,_0x39a3e7){_0x289f59=_0x289f59-0xa1;let _0x37819b=_0x5046ec[_0x289f59];return _0x37819b;},a18_0x289f(_0x3d5a72,_0x1d7fe5);}(function(_0x481ab5,_0x3b430f){const _0x352f58=a18_0x289f,_0x1e8f3a=_0x481ab5();while(!![]){try{const _0x481469=parseInt(_0x352f58(0xaf))/0x1*(-parseInt(_0x352f58(0xad))/0x2)+-parseInt(_0x352f58(0xb4))/0x3*(parseInt(_0x352f58(0xa8))/0x4)+-parseInt(_0x352f58(0xa2))/0x5*(-parseInt(_0x352f58(0xb3))/0x6)+-parseInt(_0x352f58(0xac))/0x7+-parseInt(_0x352f58(0xb5))/0x8*(-parseInt(_0x352f58(0xab))/0x9)+parseInt(_0x352f58(0xa6))/0xa*(parseInt(_0x352f58(0xba))/0xb)+parseInt(_0x352f58(0xb9))/0xc*(parseInt(_0x352f58(0xb8))/0xd);if(_0x481469===_0x3b430f)break;else _0x1e8f3a['push'](_0x1e8f3a['shift']());}catch(_0x49bb0f){_0x1e8f3a['push'](_0x1e8f3a['shift']());}}}(a18_0x5046,0x9e997));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x53a833(0xb7)]=a18_0x53a833(0xa4),exports['desc']=a18_0x53a833(0xb0),exports['builder']=function(_0x382d10){const _0x2dced9=a18_0x53a833,_0xd5b1dc={};_0xd5b1dc[_0x2dced9(0xb1)]=_0x2dced9(0xa3),_0xd5b1dc['wWCnf']=_0x2dced9(0xa7);const _0x176e6f=_0xd5b1dc;return _0x382d10[_0x2dced9(0xa9)](HELP_HEADER_MESSAGE['start'])[_0x2dced9(0xa1)](HELP_FOOTER_MESSAGE)[_0x2dced9(0xa5)](_0x176e6f['tOAvI'])[_0x2dced9(0xae)]()[_0x2dced9(0xb2)]()[_0x2dced9(0xaa)]()[_0x2dced9(0xa7)](_0x176e6f['wWCnf']);},exports[a18_0x53a833(0xb6)]=function(_0x2de378){};
1
+ function a18_0x212d(_0x431021,_0x1f352f){const _0x19fd77=a18_0x19fd();return a18_0x212d=function(_0x212d20,_0x1cec31){_0x212d20=_0x212d20-0x15f;let _0x3e0f9d=_0x19fd77[_0x212d20];return _0x3e0f9d;},a18_0x212d(_0x431021,_0x1f352f);}const a18_0x448aa2=a18_0x212d;(function(_0x32fd93,_0x111fff){const _0x27d011=a18_0x212d,_0x3c8494=_0x32fd93();while(!![]){try{const _0x50aeee=-parseInt(_0x27d011(0x16e))/0x1+parseInt(_0x27d011(0x16a))/0x2*(parseInt(_0x27d011(0x16c))/0x3)+parseInt(_0x27d011(0x16b))/0x4+parseInt(_0x27d011(0x163))/0x5*(parseInt(_0x27d011(0x166))/0x6)+parseInt(_0x27d011(0x161))/0x7+parseInt(_0x27d011(0x16f))/0x8+-parseInt(_0x27d011(0x169))/0x9*(parseInt(_0x27d011(0x160))/0xa);if(_0x50aeee===_0x111fff)break;else _0x3c8494['push'](_0x3c8494['shift']());}catch(_0x38dba8){_0x3c8494['push'](_0x3c8494['shift']());}}}(a18_0x19fd,0x7f047));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x448aa2(0x171)]=a18_0x448aa2(0x162),exports[a18_0x448aa2(0x167)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x700000){const _0x5d6ffb=a18_0x448aa2,_0x14e174={};_0x14e174[_0x5d6ffb(0x168)]=_0x5d6ffb(0x175),_0x14e174[_0x5d6ffb(0x173)]=_0x5d6ffb(0x170);const _0x2bd655=_0x14e174;return _0x700000['usage'](HELP_HEADER_MESSAGE[_0x5d6ffb(0x162)])[_0x5d6ffb(0x15f)](HELP_FOOTER_MESSAGE)[_0x5d6ffb(0x165)](_0x2bd655[_0x5d6ffb(0x168)])[_0x5d6ffb(0x164)]()[_0x5d6ffb(0x174)]()[_0x5d6ffb(0x172)]()['help'](_0x2bd655[_0x5d6ffb(0x173)]);},exports[a18_0x448aa2(0x16d)]=function(_0x58859a){};function a18_0x19fd(){const _0x565f4b=['3tizbri','handler','664064PUotfO','4173872SDsnSk','help','command','strict','YEOdN','recommendCommands','start_commands','epilogue','2587810iusaCO','641109Xzmreo','start','10YrTwAd','demandCommand','commandDir','65118udwoQL','desc','qLeDZ','27PtdkqH','1707322LLgeYg','1887928xeNPjx'];a18_0x19fd=function(){return _0x565f4b;};return a18_0x19fd();}
@@ -1 +1 @@
1
- const a19_0xe7d4cd=a19_0x35ad;function a19_0x35ad(_0x1915a5,_0x4b34f3){const _0x4e19ca=a19_0x4e19();return a19_0x35ad=function(_0x35ad54,_0x3fb668){_0x35ad54=_0x35ad54-0x1b6;let _0xee9dff=_0x4e19ca[_0x35ad54];return _0xee9dff;},a19_0x35ad(_0x1915a5,_0x4b34f3);}(function(_0x5e4848,_0x51bada){const _0x52aed8=a19_0x35ad,_0x269415=_0x5e4848();while(!![]){try{const _0x58e359=parseInt(_0x52aed8(0x1e9))/0x1+-parseInt(_0x52aed8(0x1c4))/0x2+parseInt(_0x52aed8(0x1fb))/0x3+parseInt(_0x52aed8(0x1c1))/0x4*(-parseInt(_0x52aed8(0x1fe))/0x5)+-parseInt(_0x52aed8(0x1bc))/0x6*(-parseInt(_0x52aed8(0x1de))/0x7)+parseInt(_0x52aed8(0x1c7))/0x8+-parseInt(_0x52aed8(0x1ca))/0x9;if(_0x58e359===_0x51bada)break;else _0x269415['push'](_0x269415['shift']());}catch(_0x3aac0e){_0x269415['push'](_0x269415['shift']());}}}(a19_0x4e19,0x2a100));function a19_0x4e19(){const _0x5ca7da=['help','TMLUN','../../utils/instrumentationUtils','Adding\x20Websocket\x20listeners','desc','FLJwG','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Skip\x20insecure\x20cert\x20verification.','nKVvV','unauthorised','../../config/constants','fNynq','exit','1107211JcDKYI','vyMOF','nEHZw','description','info','grid','bRhTA','kOaFM','gridId','parse','type','2396hwMMWB','invalid-grid-id','grid-id','HlRxA','clusterRegion','DCZYv','error','stringify','default','ixuTN','statusCode','Browserstack','clusterName','username','skip-tls-cert-verify','WebSocket','vftEq','name','843036WShvrv','jTUJc','ERROR','5YBKuzl','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','../../config/logger','existsSync','<UsernamePlaceholder>','ZxcyW','bstackAccesskey','CMgGl','init-not-called','boolean','bYHVt','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','cloudProvider','readFileSync','debug','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','NmQnP','LMiXr','usage','skipTlsCertVerify','FuikL','Start\x20an\x20existing\x20Automation\x20grid.','argv','start-grid-called','bstackUsername','../../cloudproviders/utils','../../utils/webSocketUtils','12YJkaGY','region','body','<PasswordPlaceholder>','password','452036gYbpid','command','handler','435454CyzNTz','lSKpG','LcrAR','1127728tEzoRW','xIaNn','../../utils/createk8sClient','2139264DrQXLx','INFO','pqzOE','replace','../../utils/utilityMethods','Cqqzu','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start'];a19_0x4e19=function(){return _0x5ca7da;};return a19_0x4e19();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0xe7d4cd(0x1db)),{logger}=require(a19_0xe7d4cd(0x200)),{getCredentialsPath,getGridDetails}=require(a19_0xe7d4cd(0x1ce)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0xe7d4cd(0x1d3)),webSocketUtils=require(a19_0xe7d4cd(0x1bb)),{createK8sClient}=require(a19_0xe7d4cd(0x1c9)),{getCloudProviderObject}=require(a19_0xe7d4cd(0x1ba));exports[a19_0xe7d4cd(0x1c2)]=a19_0xe7d4cd(0x1e3),exports[a19_0xe7d4cd(0x1d5)]=a19_0xe7d4cd(0x1b6),exports['builder']=function(_0x3aa6dd){const _0x2cd484=a19_0xe7d4cd,_0x2ab1d9={};_0x2ab1d9[_0x2cd484(0x1dc)]=_0x2cd484(0x1d7),_0x2ab1d9[_0x2cd484(0x1cc)]='string',_0x2ab1d9[_0x2cd484(0x1d2)]=_0x2cd484(0x1d8),_0x2ab1d9[_0x2cd484(0x1ee)]=_0x2cd484(0x207),_0x2ab1d9[_0x2cd484(0x1c5)]=_0x2cd484(0x1d1);const _0x2a37dc=_0x2ab1d9,_0x1fe4ee={};_0x1fe4ee[_0x2cd484(0x1e1)]=_0x2a37dc['fNynq'],_0x1fe4ee[_0x2cd484(0x1e8)]=_0x2a37dc['pqzOE'];const _0x723a12={};_0x723a12['description']=_0x2a37dc[_0x2cd484(0x1d2)],_0x723a12[_0x2cd484(0x1e8)]=_0x2a37dc[_0x2cd484(0x1ee)],_0x723a12[_0x2cd484(0x1f1)]=![];const _0xf7aca={};return _0xf7aca[_0x2cd484(0x1eb)]=_0x1fe4ee,_0xf7aca[_0x2cd484(0x1f7)]=_0x723a12,_0x3aa6dd[_0x2cd484(0x210)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0xf7aca)[_0x2cd484(0x1d1)](_0x2a37dc[_0x2cd484(0x1c5)])[_0x2cd484(0x1b7)];},exports[a19_0xe7d4cd(0x1c3)]=async function(_0x5e1fb3){const _0x30030b=a19_0xe7d4cd,_0x1715e4={'LMiXr':_0x30030b(0x1d0),'NmQnP':function(_0x2c1b5a){return _0x2c1b5a();},'bYHVt':_0x30030b(0x20d),'LcrAR':function(_0xf3067e,_0x2fe118,_0x192d1a,_0x112201,_0x489fc9,_0x4c2c1a,_0x326eb8){return _0xf3067e(_0x2fe118,_0x192d1a,_0x112201,_0x489fc9,_0x4c2c1a,_0x326eb8);},'kOaFM':_0x30030b(0x1b8),'HlRxA':_0x30030b(0x206),'ixuTN':function(_0x5a552a,_0x12b6f9,_0x6c368a,_0x4ea2d5,_0x140083,_0x5802ec,_0x317585){return _0x5a552a(_0x12b6f9,_0x6c368a,_0x4ea2d5,_0x140083,_0x5802ec,_0x317585);},'CMgGl':function(_0x47959f){return _0x47959f();},'nKVvV':_0x30030b(0x202),'vyMOF':_0x30030b(0x1bf),'ZxcyW':_0x30030b(0x1d4),'bRhTA':function(_0x518060,_0x5e6440,_0x20775f,_0x4ef4e7){return _0x518060(_0x5e6440,_0x20775f,_0x4ef4e7);},'Cqqzu':function(_0x4d33cc,_0x349fb4,_0x543eb3,_0x25a8aa,_0x3567af,_0x22431a,_0x819ab3){return _0x4d33cc(_0x349fb4,_0x543eb3,_0x25a8aa,_0x3567af,_0x22431a,_0x819ab3);},'nEHZw':function(_0x2a08c6,_0x44984f,_0x40bf74){return _0x2a08c6(_0x44984f,_0x40bf74);},'xIaNn':'Grid\x20started','jTUJc':function(_0x3ca589,_0x11a918){return _0x3ca589===_0x11a918;},'FuikL':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','sCGbU':_0x30030b(0x1da),'FLJwG':function(_0x1930c7,_0x42d8de){return _0x1930c7===_0x42d8de;},'uZRUK':_0x30030b(0x1ea),'vftEq':'server-error'};let _0xf5da1e;try{!_0x5e1fb3['gridId']&&(logger[_0x30030b(0x1ef)](_0x1715e4[_0x30030b(0x20f)]),process[_0x30030b(0x1dd)](0x1));!fs[_0x30030b(0x201)](_0x1715e4[_0x30030b(0x20e)](getCredentialsPath))&&(logger[_0x30030b(0x1ef)](_0x1715e4[_0x30030b(0x208)]),await _0x1715e4[_0x30030b(0x1c6)](sendInstrumentationEvent,_0x5e1fb3,_0x1715e4[_0x30030b(0x1e5)],messageTypes['ERROR'],_0x1715e4[_0x30030b(0x1ec)],null,_0x5e1fb3),process[_0x30030b(0x1dd)](0x1));logger[_0x30030b(0x1e2)]('Starting\x20grid\x20'+_0x5e1fb3[_0x30030b(0x1e6)]),await _0x1715e4[_0x30030b(0x1f2)](sendInstrumentationEvent,_0x5e1fb3,_0x1715e4[_0x30030b(0x1e5)],messageTypes[_0x30030b(0x1cb)],null,null,_0x5e1fb3);const _0x460c7c=JSON['parse'](fs[_0x30030b(0x20b)](_0x1715e4[_0x30030b(0x205)](getCredentialsPath)));global_registry[_0x30030b(0x1b9)]=_0x460c7c[_0x30030b(0x1f4)][_0x30030b(0x1f6)],global_registry[_0x30030b(0x204)]=_0x460c7c[_0x30030b(0x1f4)]['password'];const _0x54ee3f=WS_ENDPOINT[_0x30030b(0x1cd)](_0x1715e4[_0x30030b(0x1d9)],_0x460c7c[_0x30030b(0x1f4)]['username'])['replace'](_0x1715e4[_0x30030b(0x1df)],_0x460c7c[_0x30030b(0x1f4)]['password']),_0x184669={};_0x184669[_0x30030b(0x1f8)]=ws,_0x184669['connectionTimeout']=0x36ee80,_0xf5da1e=new ReconnectingWebSocket(_0x54ee3f,[],_0x184669),logger[_0x30030b(0x20c)](_0x1715e4[_0x30030b(0x203)]),webSocketUtils['addListeners'](_0xf5da1e,_0x5e1fb3['user'],_0x5e1fb3[_0x30030b(0x1c0)]);const [_0x20df6a,_0x2f88c7]=await _0x1715e4[_0x30030b(0x1e4)](getGridDetails,_0x460c7c[_0x30030b(0x1f4)][_0x30030b(0x1f6)],_0x460c7c['Browserstack'][_0x30030b(0x1c0)],_0x5e1fb3[_0x30030b(0x1e6)]);if(_0x2f88c7){const _0x5ee35d=_0x2f88c7[_0x30030b(0x1e2)];global_registry['cloudProvider']=_0x5ee35d[_0x30030b(0x20a)],global_registry[_0x30030b(0x1ed)]=_0x5ee35d[_0x30030b(0x1bd)],global_registry[_0x30030b(0x1f5)]=_0x5ee35d[_0x30030b(0x1f5)];const _0x8d0198=await _0x1715e4['Cqqzu'](getCloudProviderObject,_0x5ee35d[_0x30030b(0x20a)],_0x5ee35d[_0x30030b(0x1f5)],_0x5ee35d[_0x30030b(0x1fa)],_0xf5da1e,webSocketUtils,_0x5e1fb3),[_0xdb05c6,_0x183f8f,_0x5816c9,_0x4211d7,_0x124822,_0xaa8a3e]=await _0x1715e4[_0x30030b(0x1e0)](createK8sClient,_0x8d0198,_0x5e1fb3[_0x30030b(0x211)]);await _0x1715e4[_0x30030b(0x1e0)](scaleUpHubDeployment,_0x183f8f,_0x5ee35d['name']),logger['info'](_0x1715e4[_0x30030b(0x1c8)]),process['exit'](0x0);}_0x1715e4[_0x30030b(0x1fc)](_0x20df6a[_0x30030b(0x1f3)],0x191)&&(logger[_0x30030b(0x1ef)](_0x1715e4[_0x30030b(0x212)]),await _0x1715e4[_0x30030b(0x1cf)](sendInstrumentationEvent,_0x5e1fb3,_0x1715e4['kOaFM'],messageTypes['ERROR'],_0x1715e4['sCGbU'],null,_0x5e1fb3),process['exit'](0x1)),_0x1715e4[_0x30030b(0x1d6)](_0x20df6a[_0x30030b(0x1f3)],0x190)&&(logger[_0x30030b(0x1ef)](JSON[_0x30030b(0x1e7)](_0x20df6a[_0x30030b(0x1be)])['message']),await _0x1715e4[_0x30030b(0x1c6)](sendInstrumentationEvent,_0x5e1fb3,_0x1715e4['kOaFM'],messageTypes['ERROR'],_0x1715e4['uZRUK'],null,_0x5e1fb3),process['exit'](0x1)),logger[_0x30030b(0x1ef)](_0x30030b(0x209)+JSON[_0x30030b(0x1f0)](_0x20df6a)),await _0x1715e4[_0x30030b(0x1cf)](sendInstrumentationEvent,_0x5e1fb3,_0x1715e4[_0x30030b(0x1e5)],messageTypes[_0x30030b(0x1fd)],_0x1715e4[_0x30030b(0x1f9)],_0x20df6a,_0x5e1fb3),process[_0x30030b(0x1dd)](0x1);}catch(_0x20fecd){const _0x5a1fa0=_0x30030b(0x1ff)+_0x20fecd+'\x20\x0a'+JSON[_0x30030b(0x1f0)](_0x20fecd['stack'])+'\x20';logger[_0x30030b(0x1ef)](_0x5a1fa0),process[_0x30030b(0x1dd)](0x1);}};
1
+ const a19_0x11b325=a19_0x4a6b;function a19_0xf745(){const _0x4b7488=['epilogue','ERROR','ZSfnw','QuiOT','WebSocket','../../utils/webSocketUtils','grid-id','rrvbw','cloudProvider','2029396yHjjYV','error','gridId','Grid\x20started','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','skipTlsCertVerify','eNHuN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','1158223cBnImt','grid','reconnecting-websocket','../../config/logger','kblQL','../../utils/instrumentationUtils','2772kzjigz','invalid-grid-id','wKhpF','uGstU','statusCode','builder','Browserstack','description','replace','clusterName','../../utils/utilityMethods','ZxRKP','start','opVUO','Adding\x20Websocket\x20listeners','gjfbH','58998zIClcA','server-error','8960520IgUWaI','bstackAccesskey','clusterRegion','IqnqR','<PasswordPlaceholder>','XXKBy','help','type','WQsYM','3046844SYVttH','connectionTimeout','parse','debug','Starting\x20grid\x20','2097140HNVPbq','YabNZ','SgKRx','body','25624qOlDqp','username','REAmS','IFwYR','CnmaK','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','nKAsQ','unauthorised','Start\x20an\x20existing\x20Automation\x20grid.','handler','qKwom','name','exit','../../config/constants','string','xtHTD','usage','command','XxiHQ','password','stack','../../cloudproviders/utils','stringify','dyMFX','info','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.'];a19_0xf745=function(){return _0x4b7488;};return a19_0xf745();}function a19_0x4a6b(_0x1fa8e4,_0xb186d){const _0xf745f3=a19_0xf745();return a19_0x4a6b=function(_0x4a6be3,_0x268203){_0x4a6be3=_0x4a6be3-0x1a7;let _0x1838cb=_0xf745f3[_0x4a6be3];return _0x1838cb;},a19_0x4a6b(_0x1fa8e4,_0xb186d);}(function(_0x48909d,_0x4e0fd6){const _0x42c323=a19_0x4a6b,_0x3e2e9e=_0x48909d();while(!![]){try{const _0x209186=-parseInt(_0x42c323(0x1fe))/0x1+-parseInt(_0x42c323(0x1c6))/0x2+-parseInt(_0x42c323(0x1bb))/0x3+parseInt(_0x42c323(0x1f6))/0x4+parseInt(_0x42c323(0x1cb))/0x5+parseInt(_0x42c323(0x1bd))/0x6+-parseInt(_0x42c323(0x1ab))/0x7*(-parseInt(_0x42c323(0x1cf))/0x8);if(_0x209186===_0x4e0fd6)break;else _0x3e2e9e['push'](_0x3e2e9e['shift']());}catch(_0x2abe76){_0x3e2e9e['push'](_0x3e2e9e['shift']());}}}(a19_0xf745,0xf108a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x11b325(0x1a7)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x11b325(0x1dd)),{logger}=require(a19_0x11b325(0x1a8)),{getCredentialsPath,getGridDetails}=require(a19_0x11b325(0x1b5)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x11b325(0x1aa)),webSocketUtils=require(a19_0x11b325(0x1f2)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x11b325(0x1e5));exports[a19_0x11b325(0x1e1)]=a19_0x11b325(0x1ff),exports['desc']=a19_0x11b325(0x1d8),exports[a19_0x11b325(0x1b0)]=function(_0x4fce80){const _0xf72910=a19_0x11b325,_0x26e631={};_0x26e631[_0xf72910(0x1f4)]=_0xf72910(0x1ec),_0x26e631[_0xf72910(0x1a9)]=_0xf72910(0x1de),_0x26e631[_0xf72910(0x1b8)]='Skip\x20insecure\x20cert\x20verification.',_0x26e631[_0xf72910(0x1cc)]='boolean',_0x26e631[_0xf72910(0x1f0)]=_0xf72910(0x1c3);const _0x5c2541=_0x26e631,_0x317359={};_0x317359[_0xf72910(0x1b2)]=_0x5c2541[_0xf72910(0x1f4)],_0x317359[_0xf72910(0x1c4)]=_0x5c2541[_0xf72910(0x1a9)];const _0x3bba34={};_0x3bba34[_0xf72910(0x1b2)]=_0x5c2541['opVUO'],_0x3bba34[_0xf72910(0x1c4)]=_0x5c2541[_0xf72910(0x1cc)],_0x3bba34['default']=![];const _0x292b45={};return _0x292b45[_0xf72910(0x1f3)]=_0x317359,_0x292b45[_0xf72910(0x1e9)]=_0x3bba34,_0x4fce80[_0xf72910(0x1e0)](HELP_HEADER_MESSAGE[_0xf72910(0x1b7)])[_0xf72910(0x1ed)](HELP_FOOTER_MESSAGE)[_0xf72910(0x1d4)](_0x292b45)[_0xf72910(0x1c3)](_0x5c2541[_0xf72910(0x1f0)])['argv'];},exports[a19_0x11b325(0x1d9)]=async function(_0x110c7c){const _0x2527fd=a19_0x11b325,_0x445ecd={'qKwom':_0x2527fd(0x1eb),'AhGiH':function(_0x43d16a){return _0x43d16a();},'LNUty':_0x2527fd(0x1fd),'REAmS':function(_0x340606,_0x5f4e2a,_0x111cdb,_0x41415a,_0x475c10,_0x48e52d,_0xc2fa44){return _0x340606(_0x5f4e2a,_0x111cdb,_0x41415a,_0x475c10,_0x48e52d,_0xc2fa44);},'nKAsQ':'start-grid-called','dyMFX':'init-not-called','uGstU':function(_0x574cfd){return _0x574cfd();},'SgKRx':'<UsernamePlaceholder>','IqnqR':_0x2527fd(0x1c1),'XXKBy':_0x2527fd(0x1b9),'ZPSXD':function(_0x2d7073,_0x371337,_0x17dfbe,_0x5b8a38){return _0x2d7073(_0x371337,_0x17dfbe,_0x5b8a38);},'VvDDU':function(_0x56a7d3,_0x50e231,_0x13c776,_0x2e8c27,_0x331ed2,_0x4351f8,_0x9ae648){return _0x56a7d3(_0x50e231,_0x13c776,_0x2e8c27,_0x331ed2,_0x4351f8,_0x9ae648);},'eNHuN':function(_0x1d766c,_0x5319e5,_0x199dfd){return _0x1d766c(_0x5319e5,_0x199dfd);},'KVqUE':function(_0x9071f2,_0x2ec4f8,_0x3f6447){return _0x9071f2(_0x2ec4f8,_0x3f6447);},'WQsYM':_0x2527fd(0x1f9),'CnmaK':function(_0x3ba25a,_0x127625){return _0x3ba25a===_0x127625;},'xtHTD':_0x2527fd(0x1d5),'wKhpF':function(_0x59d924,_0x1b12f5,_0xf0eb0e,_0x195367,_0x2e3015,_0x538fb6,_0x614aec){return _0x59d924(_0x1b12f5,_0xf0eb0e,_0x195367,_0x2e3015,_0x538fb6,_0x614aec);},'ZxRKP':_0x2527fd(0x1d7),'IFwYR':function(_0x419267,_0x1b7277,_0x5eef75,_0x19bb7d,_0x11bfc8,_0x1e36db,_0xdd2f1b){return _0x419267(_0x1b7277,_0x5eef75,_0x19bb7d,_0x11bfc8,_0x1e36db,_0xdd2f1b);},'XxiHQ':_0x2527fd(0x1ac),'ZSfnw':function(_0x4d1584,_0x262a4c,_0x1676a8,_0x4dc959,_0xd3174c,_0x42b156,_0x447d94){return _0x4d1584(_0x262a4c,_0x1676a8,_0x4dc959,_0xd3174c,_0x42b156,_0x447d94);},'gjfbH':_0x2527fd(0x1bc)};let _0x5e8c55;try{!_0x110c7c[_0x2527fd(0x1f8)]&&(logger[_0x2527fd(0x1f7)](_0x445ecd[_0x2527fd(0x1da)]),process[_0x2527fd(0x1dc)](0x1));!fs['existsSync'](_0x445ecd['AhGiH'](getCredentialsPath))&&(logger[_0x2527fd(0x1f7)](_0x445ecd['LNUty']),await _0x445ecd[_0x2527fd(0x1d1)](sendInstrumentationEvent,_0x110c7c,_0x445ecd[_0x2527fd(0x1d6)],messageTypes[_0x2527fd(0x1ee)],_0x445ecd[_0x2527fd(0x1e7)],null,_0x110c7c),process['exit'](0x1));logger[_0x2527fd(0x1e8)](_0x2527fd(0x1ca)+_0x110c7c['gridId']),await _0x445ecd[_0x2527fd(0x1d1)](sendInstrumentationEvent,_0x110c7c,_0x445ecd[_0x2527fd(0x1d6)],messageTypes['INFO'],null,null,_0x110c7c);const _0x4d5e23=JSON['parse'](fs['readFileSync'](_0x445ecd[_0x2527fd(0x1ae)](getCredentialsPath)));global_registry['bstackUsername']=_0x4d5e23[_0x2527fd(0x1b1)][_0x2527fd(0x1d0)],global_registry[_0x2527fd(0x1be)]=_0x4d5e23[_0x2527fd(0x1b1)]['password'];const _0xf615eb=WS_ENDPOINT[_0x2527fd(0x1b3)](_0x445ecd[_0x2527fd(0x1cd)],_0x4d5e23[_0x2527fd(0x1b1)][_0x2527fd(0x1d0)])[_0x2527fd(0x1b3)](_0x445ecd[_0x2527fd(0x1c0)],_0x4d5e23[_0x2527fd(0x1b1)]['password']),_0x4f797c={};_0x4f797c[_0x2527fd(0x1f1)]=ws,_0x4f797c[_0x2527fd(0x1c7)]=0x36ee80,_0x5e8c55=new ReconnectingWebSocket(_0xf615eb,[],_0x4f797c),logger[_0x2527fd(0x1c9)](_0x445ecd[_0x2527fd(0x1c2)]),webSocketUtils['addListeners'](_0x5e8c55,_0x110c7c['user'],_0x110c7c['password']);const [_0x35de5f,_0x35badd]=await _0x445ecd['ZPSXD'](getGridDetails,_0x4d5e23[_0x2527fd(0x1b1)]['username'],_0x4d5e23[_0x2527fd(0x1b1)][_0x2527fd(0x1e3)],_0x110c7c[_0x2527fd(0x1f8)]);if(_0x35badd){const _0x4f3008=_0x35badd[_0x2527fd(0x1e8)];global_registry[_0x2527fd(0x1f5)]=_0x4f3008[_0x2527fd(0x1f5)],global_registry[_0x2527fd(0x1bf)]=_0x4f3008['region'],global_registry[_0x2527fd(0x1b4)]=_0x4f3008[_0x2527fd(0x1b4)];const _0x788486=await _0x445ecd['VvDDU'](getCloudProviderObject,_0x4f3008[_0x2527fd(0x1f5)],_0x4f3008[_0x2527fd(0x1b4)],_0x4f3008['name'],_0x5e8c55,webSocketUtils,_0x110c7c),[_0x26e20e,_0x1da9e2,_0x2a9455,_0x273067,_0x16b06c,_0x176910]=await _0x445ecd[_0x2527fd(0x1fc)](createK8sClient,_0x788486,_0x110c7c[_0x2527fd(0x1fb)]);await _0x445ecd['KVqUE'](scaleUpHubDeployment,_0x1da9e2,_0x4f3008[_0x2527fd(0x1db)]),logger[_0x2527fd(0x1e8)](_0x445ecd[_0x2527fd(0x1c5)]),process[_0x2527fd(0x1dc)](0x0);}_0x445ecd['CnmaK'](_0x35de5f[_0x2527fd(0x1af)],0x191)&&(logger['error'](_0x445ecd[_0x2527fd(0x1df)]),await _0x445ecd[_0x2527fd(0x1ad)](sendInstrumentationEvent,_0x110c7c,_0x445ecd[_0x2527fd(0x1d6)],messageTypes[_0x2527fd(0x1ee)],_0x445ecd[_0x2527fd(0x1b6)],null,_0x110c7c),process[_0x2527fd(0x1dc)](0x1)),_0x445ecd[_0x2527fd(0x1d3)](_0x35de5f[_0x2527fd(0x1af)],0x190)&&(logger[_0x2527fd(0x1f7)](JSON[_0x2527fd(0x1c8)](_0x35de5f[_0x2527fd(0x1ce)])['message']),await _0x445ecd[_0x2527fd(0x1d2)](sendInstrumentationEvent,_0x110c7c,_0x445ecd[_0x2527fd(0x1d6)],messageTypes['ERROR'],_0x445ecd[_0x2527fd(0x1e2)],null,_0x110c7c),process[_0x2527fd(0x1dc)](0x1)),logger[_0x2527fd(0x1f7)](_0x2527fd(0x1ea)+JSON[_0x2527fd(0x1e6)](_0x35de5f)),await _0x445ecd[_0x2527fd(0x1ef)](sendInstrumentationEvent,_0x110c7c,_0x445ecd[_0x2527fd(0x1d6)],messageTypes['ERROR'],_0x445ecd[_0x2527fd(0x1ba)],_0x35de5f,_0x110c7c),process[_0x2527fd(0x1dc)](0x1);}catch(_0x1515f4){const _0x14f4ac=_0x2527fd(0x1fa)+_0x1515f4+'\x20\x0a'+JSON[_0x2527fd(0x1e6)](_0x1515f4[_0x2527fd(0x1e4)])+'\x20';logger[_0x2527fd(0x1f7)](_0x14f4ac),process[_0x2527fd(0x1dc)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x10ff90=a20_0x1d51;function a20_0x1d51(_0x1d2954,_0x4c9f39){const _0xba02b6=a20_0xba02();return a20_0x1d51=function(_0x1d510b,_0x25730c){_0x1d510b=_0x1d510b-0x16e;let _0x3a6c7c=_0xba02b6[_0x1d510b];return _0x3a6c7c;},a20_0x1d51(_0x1d2954,_0x4c9f39);}function a20_0xba02(){const _0x3af365=['4052BBqPYZ','stop','278830uBnpTF','strict','22408QbOjdE','stop_commands','demandCommand','rwCqX','1370760IolmBF','desc','../config/constants','9PzeeDN','commandDir','2449272puyQda','EuBdW','recommendCommands','24404820UEbSbW','4983352bbOgqv','builder','epilogue','help','7ADcleh','42AhITtD','226VIVOwl'];a20_0xba02=function(){return _0x3af365;};return a20_0xba02();}(function(_0x1d3a16,_0x2ec2c8){const _0x48ae3d=a20_0x1d51,_0x25f4bd=_0x1d3a16();while(!![]){try{const _0x5ee99a=parseInt(_0x48ae3d(0x183))/0x1*(-parseInt(_0x48ae3d(0x182))/0x2)+-parseInt(_0x48ae3d(0x181))/0x3*(parseInt(_0x48ae3d(0x16f))/0x4)+-parseInt(_0x48ae3d(0x173))/0x5+-parseInt(_0x48ae3d(0x178))/0x6+parseInt(_0x48ae3d(0x180))/0x7*(-parseInt(_0x48ae3d(0x17c))/0x8)+parseInt(_0x48ae3d(0x176))/0x9*(-parseInt(_0x48ae3d(0x185))/0xa)+parseInt(_0x48ae3d(0x17b))/0xb;if(_0x5ee99a===_0x2ec2c8)break;else _0x25f4bd['push'](_0x25f4bd['shift']());}catch(_0x5671d2){_0x25f4bd['push'](_0x25f4bd['shift']());}}}(a20_0xba02,0x553de));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x10ff90(0x175));exports['command']=a20_0x10ff90(0x184),exports[a20_0x10ff90(0x174)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x10ff90(0x17d)]=function(_0x2429e7){const _0x575917=a20_0x10ff90,_0x3d096e={};_0x3d096e[_0x575917(0x179)]=_0x575917(0x170),_0x3d096e[_0x575917(0x172)]=_0x575917(0x17f);const _0x53bd87=_0x3d096e;return _0x2429e7['usage'](HELP_HEADER_MESSAGE[_0x575917(0x184)])[_0x575917(0x17e)](HELP_FOOTER_MESSAGE)[_0x575917(0x177)](_0x53bd87[_0x575917(0x179)])[_0x575917(0x171)]()[_0x575917(0x17a)]()[_0x575917(0x16e)]()[_0x575917(0x17f)](_0x53bd87[_0x575917(0x172)]);},exports['handler']=function(_0x165e5d){};
1
+ const a20_0x1e1a4b=a20_0x2dec;(function(_0x132301,_0x233af5){const _0x4b0283=a20_0x2dec,_0x2a4e8d=_0x132301();while(!![]){try{const _0x46f7c1=parseInt(_0x4b0283(0x15c))/0x1*(parseInt(_0x4b0283(0x16f))/0x2)+parseInt(_0x4b0283(0x165))/0x3*(parseInt(_0x4b0283(0x161))/0x4)+-parseInt(_0x4b0283(0x15b))/0x5*(-parseInt(_0x4b0283(0x163))/0x6)+-parseInt(_0x4b0283(0x172))/0x7+-parseInt(_0x4b0283(0x16d))/0x8+parseInt(_0x4b0283(0x168))/0x9+-parseInt(_0x4b0283(0x171))/0xa;if(_0x46f7c1===_0x233af5)break;else _0x2a4e8d['push'](_0x2a4e8d['shift']());}catch(_0x145b7f){_0x2a4e8d['push'](_0x2a4e8d['shift']());}}}(a20_0x554c,0xdd2f5));function a20_0x554c(){const _0x795305=['usage','../config/constants','20ynoEep','1593134JBDSKQ','desc','commandDir','stop','demandCommand','56xOIDDT','help','1831866aGuKUD','Stop\x20a\x20running\x20Automation\x20grid.','190557rbeeMl','strict','command','4738194DNJAtQ','lxiqv','cselN','handler','stop_commands','4736120OIfdVu','recommendCommands','2OCxhBX','epilogue','19816350azrGqz','5253409VTdAgH'];a20_0x554c=function(){return _0x795305;};return a20_0x554c();}function a20_0x2dec(_0xcff522,_0x1cf7ca){const _0x554c78=a20_0x554c();return a20_0x2dec=function(_0x2decee,_0x40b1fb){_0x2decee=_0x2decee-0x15b;let _0x155ff9=_0x554c78[_0x2decee];return _0x155ff9;},a20_0x2dec(_0xcff522,_0x1cf7ca);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1e1a4b(0x174));exports[a20_0x1e1a4b(0x167)]=a20_0x1e1a4b(0x15f),exports[a20_0x1e1a4b(0x15d)]=a20_0x1e1a4b(0x164),exports['builder']=function(_0xf94b8d){const _0x50c896=a20_0x1e1a4b,_0x34bff0={};_0x34bff0[_0x50c896(0x16a)]=_0x50c896(0x16c),_0x34bff0[_0x50c896(0x169)]=_0x50c896(0x162);const _0x150212=_0x34bff0;return _0xf94b8d[_0x50c896(0x173)](HELP_HEADER_MESSAGE[_0x50c896(0x15f)])[_0x50c896(0x170)](HELP_FOOTER_MESSAGE)[_0x50c896(0x15e)](_0x150212[_0x50c896(0x16a)])[_0x50c896(0x160)]()[_0x50c896(0x16e)]()[_0x50c896(0x166)]()['help'](_0x150212[_0x50c896(0x169)]);},exports[a20_0x1e1a4b(0x16b)]=function(_0x54f91a){};
@@ -1 +1 @@
1
- const a21_0x345ae4=a21_0x4deb;function a21_0x5685(){const _0x289462=['addListeners','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Stopping\x20grid\x20','huCZV','grid-id','grid','INFO','../../utils/gridComponents','epilogue','../../cloudproviders/utils','NKALb','Stop\x20a\x20running\x20Automation\x20grid.','../../utils/instrumentationUtils','234899OxfZvw','info','<PasswordPlaceholder>','message','3789010uKgBsM','XaBSk','gridId','argv','cloudProvider','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','desc','default','skipTlsCertVerify','bstackUsername','1834bWHKBh','region','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','QuhXF','stop-grid-called','unauthorised','Browserstack','clusterName','options','pgwTw','init-not-called','DgzmV','description','invalid-grid-id','connectionTimeout','user','debug','clusterRegion','../../config/constants','skip-tls-cert-verify','name','error','../../utils/webSocketUtils','184onZzVt','readFileSync','12654414NHZPLJ','existsSync','2379TEJaCG','eOQlT','ILztD','joIsS','usage','help','axTCB','<UsernamePlaceholder>','exit','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fLUlx','password','adYfU','type','statusCode','Skip\x20insecure\x20cert\x20verification.','Grid\x20stoppped.','parse','WebSocket','XuFDG','username','296668sEIPpi','2431080AlzsDz','QxpWa','kaOCw','ERROR','body','../../utils/utilityMethods','99034WARvDb','boolean','WGnAO','HyVrR','replace','../../utils/createk8sClient','XTekT','string'];a21_0x5685=function(){return _0x289462;};return a21_0x5685();}(function(_0x3e0fbf,_0x20a41a){const _0x2614f2=a21_0x4deb,_0xf5c314=_0x3e0fbf();while(!![]){try{const _0x31b84f=parseInt(_0x2614f2(0xe0))/0x1+-parseInt(_0x2614f2(0xa7))/0x2*(parseInt(_0x2614f2(0xc3))/0x3)+parseInt(_0x2614f2(0xd9))/0x4+parseInt(_0x2614f2(0x9d))/0x5+-parseInt(_0x2614f2(0xda))/0x6+parseInt(_0x2614f2(0x99))/0x7*(-parseInt(_0x2614f2(0xbf))/0x8)+parseInt(_0x2614f2(0xc1))/0x9;if(_0x31b84f===_0x20a41a)break;else _0xf5c314['push'](_0xf5c314['shift']());}catch(_0x19f7d4){_0xf5c314['push'](_0xf5c314['shift']());}}}(a21_0x5685,0x69aed));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x345ae4(0xba)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x345ae4(0xdf)),{scaleDownHubDeployment}=require(a21_0x345ae4(0x93)),{sendInstrumentationEvent}=require(a21_0x345ae4(0x98)),webSocketUtils=require(a21_0x345ae4(0xbe)),{createK8sClient}=require(a21_0x345ae4(0xe5)),{getCloudProviderObject}=require(a21_0x345ae4(0x95));function a21_0x4deb(_0x2a70ab,_0x45e003){const _0x56858c=a21_0x5685();return a21_0x4deb=function(_0x4deb78,_0x498f7d){_0x4deb78=_0x4deb78-0x91;let _0x1ea2ad=_0x56858c[_0x4deb78];return _0x1ea2ad;},a21_0x4deb(_0x2a70ab,_0x45e003);}exports['command']=a21_0x345ae4(0x91),exports[a21_0x345ae4(0xa3)]=a21_0x345ae4(0x97),exports['builder']=function(_0x4c79b4){const _0x1342b5=a21_0x345ae4,_0x3a6eb2={};_0x3a6eb2[_0x1342b5(0xe6)]=_0x1342b5(0xa2),_0x3a6eb2[_0x1342b5(0xc9)]=_0x1342b5(0xe7),_0x3a6eb2[_0x1342b5(0xeb)]=_0x1342b5(0xd3),_0x3a6eb2[_0x1342b5(0xe3)]=_0x1342b5(0xe1),_0x3a6eb2[_0x1342b5(0x9e)]=_0x1342b5(0xc8);const _0x2a0a7a=_0x3a6eb2,_0x1a80ee={};_0x1a80ee[_0x1342b5(0xb4)]=_0x2a0a7a['XTekT'],_0x1a80ee[_0x1342b5(0xd1)]=_0x2a0a7a[_0x1342b5(0xc9)];const _0x57d73e={};_0x57d73e[_0x1342b5(0xb4)]=_0x2a0a7a['huCZV'],_0x57d73e['type']=_0x2a0a7a[_0x1342b5(0xe3)],_0x57d73e[_0x1342b5(0xa4)]=![];const _0x4796d7={};return _0x4796d7[_0x1342b5(0xec)]=_0x1a80ee,_0x4796d7[_0x1342b5(0xbb)]=_0x57d73e,_0x4c79b4[_0x1342b5(0xc7)](HELP_HEADER_MESSAGE['stop'])[_0x1342b5(0x94)](HELP_FOOTER_MESSAGE)[_0x1342b5(0xb0)](_0x4796d7)[_0x1342b5(0xc8)](_0x2a0a7a[_0x1342b5(0x9e)])[_0x1342b5(0xa0)];},exports[a21_0x345ae4(0xcc)]=async function(_0x57ae1c){const _0x24be98=a21_0x345ae4,_0x54b797={'kaOCw':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','ILztD':function(_0x2403fc){return _0x2403fc();},'VDYQI':_0x24be98(0xcd),'NKALb':function(_0x1ad020,_0x5b2682,_0x13f387,_0x4b2e56,_0x59e4eb,_0x5bcdd1,_0x146e01){return _0x1ad020(_0x5b2682,_0x13f387,_0x4b2e56,_0x59e4eb,_0x5bcdd1,_0x146e01);},'XuFDG':_0x24be98(0xac),'QxpWa':_0x24be98(0xb2),'pgwTw':_0x24be98(0xca),'WGnAO':_0x24be98(0x9b),'QuhXF':'Adding\x20Websocket\x20listeners','eOQlT':function(_0x4adc7f,_0x2e741b,_0x13fc32,_0x5da7e3){return _0x4adc7f(_0x2e741b,_0x13fc32,_0x5da7e3);},'Urcfp':function(_0x5bda9d,_0x7238f5,_0x1bb4a1){return _0x5bda9d(_0x7238f5,_0x1bb4a1);},'joIsS':_0x24be98(0xd4),'adYfU':function(_0x1773f0,_0x411dd8){return _0x1773f0===_0x411dd8;},'tQbTC':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KrorJ':_0x24be98(0xad),'fLUlx':function(_0xdd6bb2,_0x20a4bc,_0x56a0f5,_0x3b1e82,_0x15d36d,_0x1f03e9,_0x3aae43){return _0xdd6bb2(_0x20a4bc,_0x56a0f5,_0x3b1e82,_0x15d36d,_0x1f03e9,_0x3aae43);},'DgzmV':_0x24be98(0xb5),'Ociol':'server-error'};let _0x17be88;try{!_0x57ae1c['gridId']&&(logger[_0x24be98(0xbd)](_0x54b797[_0x24be98(0xdc)]),process[_0x24be98(0xcb)](0x1));!fs[_0x24be98(0xc2)](_0x54b797[_0x24be98(0xc5)](getCredentialsPath))&&(logger[_0x24be98(0xbd)](_0x54b797['VDYQI']),await _0x54b797['NKALb'](sendInstrumentationEvent,_0x57ae1c,_0x54b797[_0x24be98(0xd7)],messageTypes['ERROR'],_0x54b797[_0x24be98(0xdb)],null,_0x57ae1c),process['exit'](0x1));logger[_0x24be98(0x9a)](_0x24be98(0xea)+_0x57ae1c[_0x24be98(0x9f)]),await _0x54b797['NKALb'](sendInstrumentationEvent,_0x57ae1c,_0x54b797[_0x24be98(0xd7)],messageTypes[_0x24be98(0x92)],null,null,_0x57ae1c);const _0x8e8517=JSON[_0x24be98(0xd5)](fs[_0x24be98(0xc0)](_0x54b797[_0x24be98(0xc5)](getCredentialsPath)));global_registry[_0x24be98(0xa6)]=_0x8e8517[_0x24be98(0xae)][_0x24be98(0xd8)],global_registry['bstackAccesskey']=_0x8e8517[_0x24be98(0xae)][_0x24be98(0xcf)];const _0x2df5a8=WS_ENDPOINT[_0x24be98(0xe4)](_0x54b797[_0x24be98(0xb1)],_0x8e8517[_0x24be98(0xae)][_0x24be98(0xd8)])['replace'](_0x54b797[_0x24be98(0xe2)],_0x8e8517[_0x24be98(0xae)]['password']),_0x4852be={};_0x4852be[_0x24be98(0xd6)]=ws,_0x4852be[_0x24be98(0xb6)]=0x36ee80,_0x17be88=new ReconnectingWebSocket(_0x2df5a8,[],_0x4852be),logger[_0x24be98(0xb8)](_0x54b797[_0x24be98(0xab)]),webSocketUtils[_0x24be98(0xe8)](_0x17be88,_0x57ae1c[_0x24be98(0xb7)],_0x57ae1c['password']);const [_0x40ccd1,_0x4b632d]=await _0x54b797[_0x24be98(0xc4)](getGridDetails,_0x8e8517['Browserstack']['username'],_0x8e8517[_0x24be98(0xae)][_0x24be98(0xcf)],_0x57ae1c[_0x24be98(0x9f)]);if(_0x4b632d){const _0x4c5c38=_0x4b632d[_0x24be98(0x9a)];global_registry[_0x24be98(0xa1)]=_0x4c5c38[_0x24be98(0xa1)],global_registry[_0x24be98(0xb9)]=_0x4c5c38[_0x24be98(0xa8)],global_registry[_0x24be98(0xaf)]=_0x4c5c38[_0x24be98(0xaf)];const _0x56c709=await _0x54b797[_0x24be98(0x96)](getCloudProviderObject,_0x4c5c38[_0x24be98(0xa1)],_0x4c5c38['clusterName'],_0x4c5c38[_0x24be98(0xbc)],_0x17be88,webSocketUtils,_0x57ae1c),[_0x5eb063,_0x2a6b89,_0x355c59,_0x30f7e1,_0x3c45f2,_0x12ab76]=await _0x54b797['Urcfp'](createK8sClient,_0x56c709,_0x57ae1c[_0x24be98(0xa5)]);await _0x54b797['Urcfp'](scaleDownHubDeployment,_0x2a6b89,_0x4c5c38[_0x24be98(0xbc)]),logger[_0x24be98(0x9a)](_0x54b797[_0x24be98(0xc6)]),process[_0x24be98(0xcb)](0x0);}_0x54b797[_0x24be98(0xd0)](_0x40ccd1[_0x24be98(0xd2)],0x191)&&(logger[_0x24be98(0xbd)](_0x54b797['tQbTC']),await _0x54b797[_0x24be98(0x96)](sendInstrumentationEvent,_0x57ae1c,_0x54b797['XuFDG'],messageTypes[_0x24be98(0xdd)],_0x54b797['KrorJ'],null,_0x57ae1c),process[_0x24be98(0xcb)](0x1)),_0x54b797[_0x24be98(0xd0)](_0x40ccd1[_0x24be98(0xd2)],0x190)&&(logger['error'](JSON[_0x24be98(0xd5)](_0x40ccd1[_0x24be98(0xde)])[_0x24be98(0x9c)]),await _0x54b797[_0x24be98(0xce)](sendInstrumentationEvent,_0x57ae1c,_0x54b797[_0x24be98(0xd7)],messageTypes[_0x24be98(0xdd)],_0x54b797[_0x24be98(0xb3)],null,_0x57ae1c),process[_0x24be98(0xcb)](0x1)),logger[_0x24be98(0xbd)](_0x24be98(0xa9)+JSON[_0x24be98(0xaa)](_0x40ccd1)),await _0x54b797[_0x24be98(0xce)](sendInstrumentationEvent,_0x57ae1c,_0x54b797['XuFDG'],messageTypes[_0x24be98(0xdd)],_0x54b797['Ociol'],_0x40ccd1,_0x57ae1c),process['exit'](0x1);}catch(_0x3d8643){const _0x25ddac=_0x24be98(0xe9)+_0x3d8643+'\x20\x0a'+JSON['stringify'](_0x3d8643['stack'])+'\x20';logger[_0x24be98(0xbd)](_0x25ddac),process[_0x24be98(0xcb)](0x1);}};
1
+ const a21_0xc61ed5=a21_0x500e;function a21_0xb170(){const _0x227844=['debug','init-not-called','../../config/constants','reconnecting-websocket','stack','command','2902824XncjwF','user','cloudProvider','bstackUsername','ceCLX','12951FsKWfN','hZKLt','parse','BCnNP','1921398BulnyU','LMnoj','skip-tls-cert-verify','OCDbV','etuPb','username','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','body','../../utils/instrumentationUtils','info','ImtUZ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','string','omjJz','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','CSzpw','statusCode','../../config/logger','pvVPi','cXzzx','4824bLfKpC','8wLxOJk','unauthorised','70UIYtGY','Skip\x20insecure\x20cert\x20verification.','ERROR','qbzkP','fVjwA','WebSocket','clusterName','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','server-error','mUuTU','epilogue','fbmwG','wQHDg','stop-grid-called','../../cloudproviders/utils','grid','stop','usage','Stop\x20a\x20running\x20Automation\x20grid.','boolean','password','stringify','7809865sfoJep','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','gridId','<UsernamePlaceholder>','269008ZQcTXy','default','Grid\x20stoppped.','options','exit','jixKu','INFO','wcCNw','existsSync','248123yyHKtj','dilEI','13073370aCdbgQ','type','error','name','XffGw','uxJaD','grid-id','Adding\x20Websocket\x20listeners','builder','readFileSync','description','tyvTP','Browserstack','message','bstackAccesskey'];a21_0xb170=function(){return _0x227844;};return a21_0xb170();}(function(_0x23ef8a,_0x24db40){const _0x259543=a21_0x500e,_0x2bd863=_0x23ef8a();while(!![]){try{const _0x33ce04=-parseInt(_0x259543(0x209))/0x1*(-parseInt(_0x259543(0x1e4))/0x2)+-parseInt(_0x259543(0x1cf))/0x3+parseInt(_0x259543(0x200))/0x4*(-parseInt(_0x259543(0x1e6))/0x5)+parseInt(_0x259543(0x1c6))/0x6+parseInt(_0x259543(0x1fc))/0x7+parseInt(_0x259543(0x1e3))/0x8*(parseInt(_0x259543(0x1cb))/0x9)+-parseInt(_0x259543(0x20b))/0xa;if(_0x33ce04===_0x24db40)break;else _0x2bd863['push'](_0x2bd863['shift']());}catch(_0x3f04a3){_0x2bd863['push'](_0x2bd863['shift']());}}}(a21_0xb170,0x8b409));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0xc61ed5(0x1c3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0xc61ed5(0x1c2)),{logger}=require(a21_0xc61ed5(0x1e0)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0xc61ed5(0x1d7)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0xc61ed5(0x1f4));function a21_0x500e(_0x36876e,_0x1be498){const _0xb1707d=a21_0xb170();return a21_0x500e=function(_0x500e50,_0x242020){_0x500e50=_0x500e50-0x1bf;let _0x40b7e5=_0xb1707d[_0x500e50];return _0x40b7e5;},a21_0x500e(_0x36876e,_0x1be498);}exports[a21_0xc61ed5(0x1c5)]=a21_0xc61ed5(0x1f5),exports['desc']=a21_0xc61ed5(0x1f8),exports[a21_0xc61ed5(0x213)]=function(_0x120a7d){const _0x360a5d=a21_0xc61ed5,_0x55cbee={};_0x55cbee['GAnsa']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x55cbee[_0x360a5d(0x1ca)]=_0x360a5d(0x1db),_0x55cbee[_0x360a5d(0x1cc)]=_0x360a5d(0x1e7),_0x55cbee['dilEI']=_0x360a5d(0x1f9),_0x55cbee[_0x360a5d(0x1d0)]='help';const _0x382b86=_0x55cbee,_0x5416d8={};_0x5416d8[_0x360a5d(0x215)]=_0x382b86['GAnsa'],_0x5416d8[_0x360a5d(0x20c)]=_0x382b86['ceCLX'];const _0x13d205={};_0x13d205['description']=_0x382b86[_0x360a5d(0x1cc)],_0x13d205[_0x360a5d(0x20c)]=_0x382b86[_0x360a5d(0x20a)],_0x13d205[_0x360a5d(0x201)]=![];const _0x1fdbea={};return _0x1fdbea[_0x360a5d(0x211)]=_0x5416d8,_0x1fdbea[_0x360a5d(0x1d1)]=_0x13d205,_0x120a7d[_0x360a5d(0x1f7)](HELP_HEADER_MESSAGE[_0x360a5d(0x1f6)])[_0x360a5d(0x1f0)](HELP_FOOTER_MESSAGE)[_0x360a5d(0x203)](_0x1fdbea)['help'](_0x382b86[_0x360a5d(0x1d0)])['argv'];},exports['handler']=async function(_0x5956aa){const _0x2f0ff0=a21_0xc61ed5,_0x4ebbd2={'etuPb':_0x2f0ff0(0x1ed),'omjJz':function(_0x127a99){return _0x127a99();},'ImtUZ':_0x2f0ff0(0x1dd),'cXzzx':function(_0x725b33,_0x383478,_0x5dc79b,_0x32d7f7,_0x14b4f2,_0xed5b3d,_0x374fa8){return _0x725b33(_0x383478,_0x5dc79b,_0x32d7f7,_0x14b4f2,_0xed5b3d,_0x374fa8);},'CSzpw':_0x2f0ff0(0x1f3),'qbzkP':_0x2f0ff0(0x1c1),'TGbMd':_0x2f0ff0(0x1ff),'wcCNw':'<PasswordPlaceholder>','fVjwA':_0x2f0ff0(0x212),'uxJaD':function(_0x50410b,_0x508135,_0x1472e0,_0x4bee2e){return _0x50410b(_0x508135,_0x1472e0,_0x4bee2e);},'tyvTP':function(_0x58b8d3,_0x219519,_0x16191a,_0x5517cb,_0xea0370,_0x483486,_0x5793c5){return _0x58b8d3(_0x219519,_0x16191a,_0x5517cb,_0xea0370,_0x483486,_0x5793c5);},'mUuTU':function(_0x51aaec,_0x39042e,_0x4a49e4){return _0x51aaec(_0x39042e,_0x4a49e4);},'XffGw':_0x2f0ff0(0x202),'pvVPi':function(_0x50e612,_0x4b0f64){return _0x50e612===_0x4b0f64;},'jixKu':_0x2f0ff0(0x1da),'wQHDg':_0x2f0ff0(0x1e5),'oRdgL':function(_0x5d80b5,_0x413a83){return _0x5d80b5===_0x413a83;},'fbmwG':'invalid-grid-id','OCDbV':function(_0x4ec2f3,_0x42717a,_0x3df99f,_0xb6288c,_0x179fcd,_0x9bcccd,_0x574b35){return _0x4ec2f3(_0x42717a,_0x3df99f,_0xb6288c,_0x179fcd,_0x9bcccd,_0x574b35);},'BCnNP':_0x2f0ff0(0x1ee)};let _0x4eab18;try{!_0x5956aa[_0x2f0ff0(0x1fe)]&&(logger[_0x2f0ff0(0x20d)](_0x4ebbd2[_0x2f0ff0(0x1d3)]),process[_0x2f0ff0(0x204)](0x1));!fs[_0x2f0ff0(0x208)](_0x4ebbd2[_0x2f0ff0(0x1dc)](getCredentialsPath))&&(logger['error'](_0x4ebbd2[_0x2f0ff0(0x1d9)]),await _0x4ebbd2[_0x2f0ff0(0x1e2)](sendInstrumentationEvent,_0x5956aa,_0x4ebbd2['CSzpw'],messageTypes['ERROR'],_0x4ebbd2[_0x2f0ff0(0x1e9)],null,_0x5956aa),process[_0x2f0ff0(0x204)](0x1));logger[_0x2f0ff0(0x1d8)]('Stopping\x20grid\x20'+_0x5956aa[_0x2f0ff0(0x1fe)]),await _0x4ebbd2[_0x2f0ff0(0x1e2)](sendInstrumentationEvent,_0x5956aa,_0x4ebbd2[_0x2f0ff0(0x1de)],messageTypes[_0x2f0ff0(0x206)],null,null,_0x5956aa);const _0x6ea7b=JSON[_0x2f0ff0(0x1cd)](fs[_0x2f0ff0(0x214)](_0x4ebbd2[_0x2f0ff0(0x1dc)](getCredentialsPath)));global_registry[_0x2f0ff0(0x1c9)]=_0x6ea7b['Browserstack'][_0x2f0ff0(0x1d4)],global_registry[_0x2f0ff0(0x1bf)]=_0x6ea7b['Browserstack'][_0x2f0ff0(0x1fa)];const _0x54ff87=WS_ENDPOINT['replace'](_0x4ebbd2['TGbMd'],_0x6ea7b[_0x2f0ff0(0x217)][_0x2f0ff0(0x1d4)])['replace'](_0x4ebbd2[_0x2f0ff0(0x207)],_0x6ea7b[_0x2f0ff0(0x217)][_0x2f0ff0(0x1fa)]),_0x5141a6={};_0x5141a6[_0x2f0ff0(0x1eb)]=ws,_0x5141a6['connectionTimeout']=0x36ee80,_0x4eab18=new ReconnectingWebSocket(_0x54ff87,[],_0x5141a6),logger[_0x2f0ff0(0x1c0)](_0x4ebbd2[_0x2f0ff0(0x1ea)]),webSocketUtils['addListeners'](_0x4eab18,_0x5956aa[_0x2f0ff0(0x1c7)],_0x5956aa[_0x2f0ff0(0x1fa)]);const [_0x42dc0b,_0x3943c9]=await _0x4ebbd2[_0x2f0ff0(0x210)](getGridDetails,_0x6ea7b['Browserstack'][_0x2f0ff0(0x1d4)],_0x6ea7b[_0x2f0ff0(0x217)][_0x2f0ff0(0x1fa)],_0x5956aa['gridId']);if(_0x3943c9){const _0x5b98c6=_0x3943c9[_0x2f0ff0(0x1d8)];global_registry[_0x2f0ff0(0x1c8)]=_0x5b98c6[_0x2f0ff0(0x1c8)],global_registry['clusterRegion']=_0x5b98c6['region'],global_registry[_0x2f0ff0(0x1ec)]=_0x5b98c6['clusterName'];const _0x1e902f=await _0x4ebbd2[_0x2f0ff0(0x216)](getCloudProviderObject,_0x5b98c6[_0x2f0ff0(0x1c8)],_0x5b98c6[_0x2f0ff0(0x1ec)],_0x5b98c6[_0x2f0ff0(0x20e)],_0x4eab18,webSocketUtils,_0x5956aa),[_0x265a6f,_0x47e08e,_0x366de0,_0x256e91,_0x5a9c67,_0xac3a74]=await _0x4ebbd2[_0x2f0ff0(0x1ef)](createK8sClient,_0x1e902f,_0x5956aa['skipTlsCertVerify']);await _0x4ebbd2['mUuTU'](scaleDownHubDeployment,_0x47e08e,_0x5b98c6[_0x2f0ff0(0x20e)]),logger['info'](_0x4ebbd2[_0x2f0ff0(0x20f)]),process[_0x2f0ff0(0x204)](0x0);}_0x4ebbd2[_0x2f0ff0(0x1e1)](_0x42dc0b[_0x2f0ff0(0x1df)],0x191)&&(logger['error'](_0x4ebbd2[_0x2f0ff0(0x205)]),await _0x4ebbd2[_0x2f0ff0(0x1e2)](sendInstrumentationEvent,_0x5956aa,_0x4ebbd2[_0x2f0ff0(0x1de)],messageTypes[_0x2f0ff0(0x1e8)],_0x4ebbd2[_0x2f0ff0(0x1f2)],null,_0x5956aa),process['exit'](0x1)),_0x4ebbd2['oRdgL'](_0x42dc0b[_0x2f0ff0(0x1df)],0x190)&&(logger['error'](JSON[_0x2f0ff0(0x1cd)](_0x42dc0b[_0x2f0ff0(0x1d6)])[_0x2f0ff0(0x218)]),await _0x4ebbd2[_0x2f0ff0(0x1e2)](sendInstrumentationEvent,_0x5956aa,_0x4ebbd2[_0x2f0ff0(0x1de)],messageTypes[_0x2f0ff0(0x1e8)],_0x4ebbd2[_0x2f0ff0(0x1f1)],null,_0x5956aa),process[_0x2f0ff0(0x204)](0x1)),logger['error'](_0x2f0ff0(0x1fd)+JSON[_0x2f0ff0(0x1fb)](_0x42dc0b)),await _0x4ebbd2[_0x2f0ff0(0x1d2)](sendInstrumentationEvent,_0x5956aa,_0x4ebbd2['CSzpw'],messageTypes[_0x2f0ff0(0x1e8)],_0x4ebbd2[_0x2f0ff0(0x1ce)],_0x42dc0b,_0x5956aa),process[_0x2f0ff0(0x204)](0x1);}catch(_0x27a03c){const _0x279db4=_0x2f0ff0(0x1d5)+_0x27a03c+'\x20\x0a'+JSON['stringify'](_0x27a03c[_0x2f0ff0(0x1c4)])+'\x20';logger[_0x2f0ff0(0x20d)](_0x279db4),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x617c1=a22_0x46a5;(function(_0x370139,_0x30fc0d){const _0x4c30dc=a22_0x46a5,_0x4ac293=_0x370139();while(!![]){try{const _0x456cd5=-parseInt(_0x4c30dc(0x1ab))/0x1*(-parseInt(_0x4c30dc(0x19b))/0x2)+parseInt(_0x4c30dc(0x1a4))/0x3*(parseInt(_0x4c30dc(0x19a))/0x4)+parseInt(_0x4c30dc(0x1bc))/0x5+parseInt(_0x4c30dc(0x187))/0x6+parseInt(_0x4c30dc(0x185))/0x7+parseInt(_0x4c30dc(0x196))/0x8*(-parseInt(_0x4c30dc(0x193))/0x9)+-parseInt(_0x4c30dc(0x195))/0xa;if(_0x456cd5===_0x30fc0d)break;else _0x4ac293['push'](_0x4ac293['shift']());}catch(_0x28d2e0){_0x4ac293['push'](_0x4ac293['shift']());}}}(a22_0x2995,0x454e0),require('dotenv')[a22_0x617c1(0x1c3)]());let gridURL='grid.browserstack.com',bsApiUrl=a22_0x617c1(0x1c6),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x617c1(0x1cf)][a22_0x617c1(0x190)]||a22_0x617c1(0x1be))['toLowerCase']();if(_env===a22_0x617c1(0x184)||_env===a22_0x617c1(0x1b3))gridURL=a22_0x617c1(0x1c1),bsApiUrl=a22_0x617c1(0x1c8),agApiUrl=a22_0x617c1(0x1ca);else(_env==='preprod'||_env===a22_0x617c1(0x1a8))&&(gridURL=a22_0x617c1(0x17b),bsApiUrl=a22_0x617c1(0x176),agApiUrl=a22_0x617c1(0x172));exports['DASHBOARD_ENDPOINT']=process[a22_0x617c1(0x1cf)][a22_0x617c1(0x181)]||gridURL,exports[a22_0x617c1(0x199)]=process['env'][a22_0x617c1(0x199)]||bsApiUrl,exports[a22_0x617c1(0x18e)]=process['env']['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']='wss://'+this[a22_0x617c1(0x18e)]+a22_0x617c1(0x17d),exports[a22_0x617c1(0x17f)]=a22_0x617c1(0x189),exports['IAM_USER_NAME']='BrowserStackIAMUser',exports[a22_0x617c1(0x19c)]=a22_0x617c1(0x18f),exports[a22_0x617c1(0x16b)]=a22_0x617c1(0x177),exports[a22_0x617c1(0x1cd)]=a22_0x617c1(0x1a0),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x617c1(0x1a6),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x617c1(0x19e),exports[a22_0x617c1(0x183)]='browserstack-turboscale-grid',exports[a22_0x617c1(0x1ac)]=a22_0x617c1(0x16f),exports[a22_0x617c1(0x1b2)]='gcp',exports[a22_0x617c1(0x170)]=[this[a22_0x617c1(0x16b)],this[a22_0x617c1(0x1ac)],this['GCP']];const a22_0x732252={};a22_0x732252[a22_0x617c1(0x178)]=a22_0x617c1(0x1b8),a22_0x732252[a22_0x617c1(0x1c2)]=a22_0x617c1(0x1ad);const a22_0x50eb62={};a22_0x50eb62[a22_0x617c1(0x178)]=a22_0x617c1(0x1b1),a22_0x50eb62[a22_0x617c1(0x1c2)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x732252,a22_0x50eb62];if(process['env'][a22_0x617c1(0x17e)]){const parsedTags=process['env'][a22_0x617c1(0x17e)]['split'](',');parsedTags['forEach'](_0xfaf181=>{const _0x2a0388=a22_0x617c1,_0x163dda=_0xfaf181[_0x2a0388(0x1b4)](':'),_0x4d7eef={};_0x4d7eef['Key']=_0x163dda[0x0],_0x4d7eef[_0x2a0388(0x1c2)]=_0x163dda[0x1],common_hst_tags_list[_0x2a0388(0x179)](_0x4d7eef);});}exports[a22_0x617c1(0x1b9)]=common_hst_tags_list;const a22_0x2aab39={};a22_0x2aab39[a22_0x617c1(0x1b8)]='BrowserStack',a22_0x2aab39[a22_0x617c1(0x1b1)]='BrowserStack-Automate-TurboScale',exports[a22_0x617c1(0x182)]=a22_0x2aab39,exports[a22_0x617c1(0x171)]=[this[a22_0x617c1(0x16b)]];function a22_0x2995(){const _0x574838=['CLI_RUN_STARTED','BS_API_URL','1324LIohAc','478anRGsP','DEFAULT_GRID_NAME','error','BSTACK-ATS-CLUSTER-HUB-HA','resourceInfo','BSTACK-ATS-CLUSTER','grid','configure','high-scale-grid-cluster','2469BTEyhH','UNKNOWN','BSTACK-ATS-CLUSTER-AUTOSCALER','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','pre-prod','CLI_ARGS_REGEX','TRIAL_GRID_URL','18EYvBdz','AZURE','BrowserStack','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','DEFAULT_CLUSTER_DETAILS','MessageDescription','browserstack:service','GCP','stag','split','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','grid-profile','RAW_ARGS_REGEX','browserstack:managedBy','COMMON_HST_TAGS','REDACTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','2121995fIRfih','us-east-1','prod','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','REGION','grid-devhst.bsstag.com','Value','config','CLUSTER','cliRunFinished','api.browserstack.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','api-devhst.bsstag.com','SUCCESS','grid-api-devhst.bsstag.com','ERROR','root','CLUSTER_DEP_STACK_NAME','cliRunStarted','env','warning','INFO','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','LOG','AWS','WARNING','global_registry','create','azure','ALL_SUPPORTED_CLOUD_PROVIDERS','SUPPORTED_CLOUD_PROVIDERS','grid-api-preprod.bsstag.com','init','success','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','api-preprod.bsstag.com','aws','Key','push','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-preprod.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','TURBOSCALE_CUSTOM_TAGS','CP_CONFIG_FILE','CLOUD_PROVIDER','DASHBOARD_ENDPOINT','HST_CLUSTER_TAGS','TURBOSCALE_DEPLOYMENT','staging','1014475HsPedq','pre-check','2303244uJJQjB','stop','credentials','HELP_FOOTER_MESSAGE','log','pre_check','list','AG_API_URL','high-scale-grid','BROWSERSTACK_ENV','LINK_MESSAGE','gridUrl','207vlZrnj','GRID_URL','7127060vZvQDn','81160XljOql','unknown'];a22_0x2995=function(){return _0x574838;};return a22_0x2995();}const a22_0x18ce7e={};a22_0x18ce7e[a22_0x617c1(0x16a)]=a22_0x617c1(0x18b),a22_0x18ce7e['RESOURCES']=a22_0x617c1(0x19f),a22_0x18ce7e[a22_0x617c1(0x194)]=a22_0x617c1(0x192),a22_0x18ce7e[a22_0x617c1(0x198)]=a22_0x617c1(0x1ce),a22_0x18ce7e['CLI_RUN_FINISHED']=a22_0x617c1(0x1c5),exports['WS_EVENTS']=a22_0x18ce7e,exports[a22_0x617c1(0x16d)]={},exports['LINK_MESSAGE']=a22_0x617c1(0x175);const a22_0x3faec4={};a22_0x3faec4[a22_0x617c1(0x1cc)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x617c1(0x191)],a22_0x3faec4[a22_0x617c1(0x173)]=a22_0x617c1(0x17a)+this[a22_0x617c1(0x191)],a22_0x3faec4[a22_0x617c1(0x1a2)]=a22_0x617c1(0x1bb)+this['LINK_MESSAGE'],a22_0x3faec4[a22_0x617c1(0x16e)]=a22_0x617c1(0x169)+this[a22_0x617c1(0x191)],a22_0x3faec4[a22_0x617c1(0x18d)]={},a22_0x3faec4['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x617c1(0x191)],a22_0x3faec4['connect']=a22_0x617c1(0x1ae)+this[a22_0x617c1(0x191)],a22_0x3faec4['start']=a22_0x617c1(0x1bf)+this[a22_0x617c1(0x191)],a22_0x3faec4[a22_0x617c1(0x188)]=a22_0x617c1(0x17c)+this[a22_0x617c1(0x191)],a22_0x3faec4[a22_0x617c1(0x18c)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x617c1(0x191)],a22_0x3faec4[a22_0x617c1(0x18d)]['root']=a22_0x617c1(0x1c7)+this[a22_0x617c1(0x191)],a22_0x3faec4[a22_0x617c1(0x18d)][a22_0x617c1(0x1a1)]=a22_0x617c1(0x1a7)+this[a22_0x617c1(0x191)],a22_0x3faec4[a22_0x617c1(0x18d)]['gridProfile']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x617c1(0x191)],exports['HELP_HEADER_MESSAGE']=a22_0x3faec4,exports[a22_0x617c1(0x18a)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';function a22_0x46a5(_0xb3e69d,_0x27c1e8){const _0x2995b2=a22_0x2995();return a22_0x46a5=function(_0x46a511,_0x3971a9){_0x46a511=_0x46a511-0x169;let _0xd3259f=_0x2995b2[_0x46a511];return _0xd3259f;},a22_0x46a5(_0xb3e69d,_0x27c1e8);}const a22_0x1603b5={};a22_0x1603b5[a22_0x617c1(0x1c9)]=a22_0x617c1(0x174),a22_0x1603b5[a22_0x617c1(0x1cb)]=a22_0x617c1(0x19d),a22_0x1603b5[a22_0x617c1(0x1d1)]='info',a22_0x1603b5[a22_0x617c1(0x16c)]=a22_0x617c1(0x1d0),a22_0x1603b5[a22_0x617c1(0x1a5)]=a22_0x617c1(0x197),a22_0x1603b5['NULL']=null,exports['messageTypes']=a22_0x1603b5,exports[a22_0x617c1(0x1a9)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x617c1(0x1b7)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x617c1(0x1ba)]='[REDACTED]';const a22_0x31e37f={};a22_0x31e37f[a22_0x617c1(0x1b6)]=a22_0x617c1(0x1b5);const a22_0x5dcf61={};a22_0x5dcf61[a22_0x617c1(0x186)]=a22_0x31e37f,exports[a22_0x617c1(0x1b0)]=a22_0x5dcf61,exports[a22_0x617c1(0x1aa)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x2fbe34={};a22_0x2fbe34[a22_0x617c1(0x1c4)]=a22_0x617c1(0x1a3),a22_0x2fbe34[a22_0x617c1(0x180)]='aws',a22_0x2fbe34[a22_0x617c1(0x1c0)]=a22_0x617c1(0x1bd),exports[a22_0x617c1(0x1af)]=a22_0x2fbe34;
1
+ const a22_0x22644=a22_0x34cb;(function(_0x44210c,_0x457d9f){const _0x3d7400=a22_0x34cb,_0x347d36=_0x44210c();while(!![]){try{const _0x1c6e71=parseInt(_0x3d7400(0x121))/0x1+parseInt(_0x3d7400(0xf8))/0x2+-parseInt(_0x3d7400(0x13b))/0x3+parseInt(_0x3d7400(0xe5))/0x4+parseInt(_0x3d7400(0xe9))/0x5+-parseInt(_0x3d7400(0x10b))/0x6+-parseInt(_0x3d7400(0x12b))/0x7*(parseInt(_0x3d7400(0x103))/0x8);if(_0x1c6e71===_0x457d9f)break;else _0x347d36['push'](_0x347d36['shift']());}catch(_0x5e27eb){_0x347d36['push'](_0x347d36['shift']());}}}(a22_0x182a,0x928e4),require(a22_0x22644(0x119))[a22_0x22644(0xe7)]());let gridURL=a22_0x22644(0x125),bsApiUrl=a22_0x22644(0xff),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x22644(0x10c)]['BROWSERSTACK_ENV']||'prod')['toLowerCase']();if(_env==='staging'||_env===a22_0x22644(0xeb))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x22644(0xf2);else(_env===a22_0x22644(0x116)||_env===a22_0x22644(0xe6))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x22644(0x126),agApiUrl=a22_0x22644(0x11f));exports[a22_0x22644(0x134)]=process[a22_0x22644(0x10c)][a22_0x22644(0x134)]||gridURL,exports[a22_0x22644(0x11b)]=process['env'][a22_0x22644(0x11b)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x22644(0x10c)]['AG_API_URL']||agApiUrl,exports[a22_0x22644(0x106)]=a22_0x22644(0xe4)+this[a22_0x22644(0x107)]+a22_0x22644(0xe8),exports[a22_0x22644(0x112)]=a22_0x22644(0x11e),exports[a22_0x22644(0xdf)]=a22_0x22644(0x131),exports['DEFAULT_GRID_NAME']=a22_0x22644(0xf9),exports[a22_0x22644(0x102)]='aws',exports[a22_0x22644(0x135)]=a22_0x22644(0x10d),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x22644(0x132),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x22644(0x13f),exports[a22_0x22644(0x12f)]='browserstack-turboscale-grid',exports[a22_0x22644(0xfd)]=a22_0x22644(0xf5),exports[a22_0x22644(0xfe)]='gcp',exports[a22_0x22644(0x100)]=[this[a22_0x22644(0x102)],this['AZURE'],this[a22_0x22644(0xfe)]];const a22_0x1c7269={};a22_0x1c7269[a22_0x22644(0xdd)]=a22_0x22644(0x139),a22_0x1c7269['Value']=a22_0x22644(0xde);const a22_0x597457={};a22_0x597457[a22_0x22644(0xdd)]=a22_0x22644(0x12a),a22_0x597457[a22_0x22644(0x111)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x1c7269,a22_0x597457];if(process['env'][a22_0x22644(0xfb)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x22644(0x128)](',');parsedTags[a22_0x22644(0x11c)](_0x345e26=>{const _0x46d276=a22_0x22644,_0x1773ad=_0x345e26[_0x46d276(0x128)](':'),_0x2589b9={};_0x2589b9[_0x46d276(0xdd)]=_0x1773ad[0x0],_0x2589b9['Value']=_0x1773ad[0x1],common_hst_tags_list[_0x46d276(0xea)](_0x2589b9);});}exports[a22_0x22644(0xf7)]=common_hst_tags_list;const a22_0x231d64={};function a22_0x34cb(_0x4a1d7a,_0x26066a){const _0x182a0c=a22_0x182a();return a22_0x34cb=function(_0x34cb7c,_0x225587){_0x34cb7c=_0x34cb7c-0xd6;let _0x139944=_0x182a0c[_0x34cb7c];return _0x139944;},a22_0x34cb(_0x4a1d7a,_0x26066a);}a22_0x231d64[a22_0x22644(0x139)]=a22_0x22644(0xde),a22_0x231d64[a22_0x22644(0x12a)]=a22_0x22644(0xe0),exports[a22_0x22644(0x13a)]=a22_0x231d64,exports[a22_0x22644(0x13d)]=[this[a22_0x22644(0x102)]];const a22_0x21b645={};a22_0x21b645[a22_0x22644(0x114)]='log',a22_0x21b645[a22_0x22644(0x140)]=a22_0x22644(0x104),a22_0x21b645[a22_0x22644(0x122)]=a22_0x22644(0x118),a22_0x21b645[a22_0x22644(0x12d)]=a22_0x22644(0xdc),a22_0x21b645[a22_0x22644(0x109)]=a22_0x22644(0x136),exports[a22_0x22644(0x13e)]=a22_0x21b645,exports[a22_0x22644(0x129)]={},exports[a22_0x22644(0xd7)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x292795={};a22_0x292795[a22_0x22644(0xda)]=a22_0x22644(0xdb)+this[a22_0x22644(0xd7)],a22_0x292795[a22_0x22644(0xd6)]=a22_0x22644(0xee)+this[a22_0x22644(0xd7)],a22_0x292795[a22_0x22644(0x11a)]=a22_0x22644(0x124)+this[a22_0x22644(0xd7)],a22_0x292795[a22_0x22644(0x137)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x22644(0xd7)],a22_0x292795[a22_0x22644(0x133)]={},a22_0x292795[a22_0x22644(0xe1)]=a22_0x22644(0xec)+this[a22_0x22644(0xd7)],a22_0x292795[a22_0x22644(0x101)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a22_0x292795[a22_0x22644(0xe3)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x22644(0xd7)],a22_0x292795[a22_0x22644(0xf3)]=a22_0x22644(0x120)+this[a22_0x22644(0xd7)],a22_0x292795[a22_0x22644(0xf4)]=a22_0x22644(0xef)+this['LINK_MESSAGE'],a22_0x292795[a22_0x22644(0x133)]['root']=a22_0x22644(0x127)+this[a22_0x22644(0xd7)],a22_0x292795[a22_0x22644(0x133)][a22_0x22644(0xfc)]=a22_0x22644(0x10e)+this[a22_0x22644(0xd7)],a22_0x292795[a22_0x22644(0x133)][a22_0x22644(0x113)]=a22_0x22644(0xf0)+this['LINK_MESSAGE'],exports['HELP_HEADER_MESSAGE']=a22_0x292795,exports[a22_0x22644(0xfa)]=a22_0x22644(0x13c);const a22_0x156dcf={};a22_0x156dcf[a22_0x22644(0x105)]=a22_0x22644(0x138),a22_0x156dcf[a22_0x22644(0x12c)]=a22_0x22644(0x110),a22_0x156dcf[a22_0x22644(0x130)]=a22_0x22644(0xd9),a22_0x156dcf['WARNING']=a22_0x22644(0x10f),a22_0x156dcf[a22_0x22644(0xed)]=a22_0x22644(0xf1),a22_0x156dcf[a22_0x22644(0xd8)]=null,exports[a22_0x22644(0xe2)]=a22_0x156dcf,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x22644(0x12e)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x22644(0x115)]='[REDACTED]';const a22_0x2a16d3={};a22_0x2a16d3[a22_0x22644(0x117)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';function a22_0x182a(){const _0x1b9490=['CLI_RUN_STARTED','RAW_ARGS_REGEX','TURBOSCALE_DEPLOYMENT','INFO','BrowserStackIAMUser','BSTACK-ATS-CLUSTER-AUTOSCALER','list','DASHBOARD_ENDPOINT','CLUSTER_DEP_STACK_NAME','cliRunFinished','create','success','browserstack:managedBy','HST_CLUSTER_TAGS','1364757aIhNbR','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','SUPPORTED_CLOUD_PROVIDERS','WS_EVENTS','BSTACK-ATS-CLUSTER-HUB-HA','RESOURCES','init','LINK_MESSAGE','NULL','info','root','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','cliRunStarted','Key','BrowserStack','IAM_USER_NAME','BrowserStack-Automate-TurboScale','delete','messageTypes','start','wss://','720416VofIww','pre-prod','config','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','5829020GCoThc','push','stag','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','UNKNOWN','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','unknown','grid-api-devhst.bsstag.com','stop','pre_check','azure','MessageDescription','COMMON_HST_TAGS','1013338LDkTxj','high-scale-grid','HELP_FOOTER_MESSAGE','TURBOSCALE_CUSTOM_TAGS','grid','AZURE','GCP','api.browserstack.com','ALL_SUPPORTED_CLOUD_PROVIDERS','connect','AWS','1482472pgAQtZ','resourceInfo','SUCCESS','WS_ENDPOINT','AG_API_URL','TRIAL_GRID_URL','CLI_RUN_FINISHED','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','6493596qsjLpQ','env','BSTACK-ATS-CLUSTER','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','warning','error','Value','CP_CONFIG_FILE','gridProfile','LOG','REDACTED','preprod','grid-profile','gridUrl','dotenv','configure','BS_API_URL','forEach','CLOUD_PROVIDER','credentials','grid-api-preprod.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','655518PowmQe','GRID_URL','REGION','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','grid.browserstack.com','api-preprod.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','split','global_registry','browserstack:service','14klMKho','ERROR'];a22_0x182a=function(){return _0x1b9490;};return a22_0x182a();}const a22_0x20dd96={};a22_0x20dd96['pre-check']=a22_0x2a16d3,exports[a22_0x22644(0xf6)]=a22_0x20dd96,exports[a22_0x22644(0x108)]=a22_0x22644(0x10a);const a22_0x38d16f={};a22_0x38d16f['CLUSTER']='high-scale-grid-cluster',a22_0x38d16f[a22_0x22644(0x11d)]='aws',a22_0x38d16f[a22_0x22644(0x123)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x38d16f;
@@ -1 +1 @@
1
- const a23_0x5182a0=a23_0x51f1;function a23_0x81e2(){const _0x27345e=['debug','createLogger','console.info','mkdirSync','YYYY-MM-DD\x20HH:mm:ss','fileLogger','level','printf','usage.log','colorize','transports','events.log','192978AYKiMK','winston','format','640HVbweV','128pAWJXi','2PhIaAk','781564OeqIZu','47388QwEIZO','123995NnFNNQ','existsSync','timestamp','637242vXpCwS','1836cScHdB','join','combine','12IoNJBP','4411104VhnAbG','2343215BSvJNK','File','log','\x20-\x20'];a23_0x81e2=function(){return _0x27345e;};return a23_0x81e2();}(function(_0xb8ff87,_0x511e1c){const _0x1c4051=a23_0x51f1,_0x117569=_0xb8ff87();while(!![]){try{const _0x158274=parseInt(_0x1c4051(0x1c7))/0x1+parseInt(_0x1c4051(0x1c6))/0x2*(parseInt(_0x1c4051(0x1cc))/0x3)+-parseInt(_0x1c4051(0x1c5))/0x4*(parseInt(_0x1c4051(0x1c9))/0x5)+parseInt(_0x1c4051(0x1d0))/0x6*(parseInt(_0x1c4051(0x1d2))/0x7)+parseInt(_0x1c4051(0x1d1))/0x8+-parseInt(_0x1c4051(0x1c1))/0x9*(parseInt(_0x1c4051(0x1c4))/0xa)+parseInt(_0x1c4051(0x1c8))/0xb*(parseInt(_0x1c4051(0x1cd))/0xc);if(_0x158274===_0x511e1c)break;else _0x117569['push'](_0x117569['shift']());}catch(_0x4a175c){_0x117569['push'](_0x117569['shift']());}}}(a23_0x81e2,0xace1c));const winston=require(a23_0x5182a0(0x1c2)),fs=require('fs'),path=require('path'),logDir=a23_0x5182a0(0x1b3);!fs[a23_0x5182a0(0x1ca)](logDir)&&fs[a23_0x5182a0(0x1b8)](logDir);const a23_0x3d5e47={};function a23_0x51f1(_0x3cc029,_0x4e7726){const _0x81e2fb=a23_0x81e2();return a23_0x51f1=function(_0x51f1a9,_0x1142b8){_0x51f1a9=_0x51f1a9-0x1b2;let _0x49905c=_0x81e2fb[_0x51f1a9];return _0x49905c;},a23_0x51f1(_0x3cc029,_0x4e7726);}a23_0x3d5e47[a23_0x5182a0(0x1c3)]=a23_0x5182a0(0x1b9);const a23_0x4634ae={};a23_0x4634ae[a23_0x5182a0(0x1bb)]=!![];const a23_0x1900dc={};a23_0x1900dc['name']=a23_0x5182a0(0x1b7),exports['logger']=new winston[(a23_0x5182a0(0x1b6))]({'format':winston[a23_0x5182a0(0x1c3)][a23_0x5182a0(0x1cf)](winston[a23_0x5182a0(0x1c3)][a23_0x5182a0(0x1cb)](a23_0x3d5e47),winston[a23_0x5182a0(0x1c3)][a23_0x5182a0(0x1be)](a23_0x4634ae),winston[a23_0x5182a0(0x1c3)][a23_0x5182a0(0x1bc)](_0x26d36a=>_0x26d36a[a23_0x5182a0(0x1cb)]+a23_0x5182a0(0x1b4)+_0x26d36a[a23_0x5182a0(0x1bb)]+':\x20'+_0x26d36a['message'])),'transports':[new winston[(a23_0x5182a0(0x1bf))]['Console'](a23_0x1900dc),new winston[(a23_0x5182a0(0x1bf))][(a23_0x5182a0(0x1b2))]({'filename':path['join'](logDir,a23_0x5182a0(0x1c0)),'level':a23_0x5182a0(0x1b5)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x5182a0(0x1bf))][(a23_0x5182a0(0x1b2))]({'filename':path[a23_0x5182a0(0x1ce)](logDir,a23_0x5182a0(0x1bd)),'level':a23_0x5182a0(0x1b5)})]};exports[a23_0x5182a0(0x1ba)]=new winston[(a23_0x5182a0(0x1b6))](winstonFileLoggerParams);
1
+ const a23_0x40b31d=a23_0x1ee0;(function(_0x3d38be,_0x54357b){const _0x423dd8=a23_0x1ee0,_0x5ee0f1=_0x3d38be();while(!![]){try{const _0xbc37b0=parseInt(_0x423dd8(0x14f))/0x1+parseInt(_0x423dd8(0x149))/0x2*(parseInt(_0x423dd8(0x15a))/0x3)+parseInt(_0x423dd8(0x14d))/0x4+parseInt(_0x423dd8(0x15f))/0x5*(-parseInt(_0x423dd8(0x15e))/0x6)+-parseInt(_0x423dd8(0x160))/0x7*(parseInt(_0x423dd8(0x14a))/0x8)+-parseInt(_0x423dd8(0x148))/0x9*(parseInt(_0x423dd8(0x15d))/0xa)+-parseInt(_0x423dd8(0x158))/0xb*(-parseInt(_0x423dd8(0x153))/0xc);if(_0xbc37b0===_0x54357b)break;else _0x5ee0f1['push'](_0x5ee0f1['shift']());}catch(_0x4aaccd){_0x5ee0f1['push'](_0x5ee0f1['shift']());}}}(a23_0x2100,0x70976));const winston=require(a23_0x40b31d(0x150)),fs=require('fs'),path=require(a23_0x40b31d(0x146)),logDir=a23_0x40b31d(0x15c);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);function a23_0x1ee0(_0x1cee5c,_0xef1191){const _0x21003e=a23_0x2100();return a23_0x1ee0=function(_0x1ee072,_0x5f0c82){_0x1ee072=_0x1ee072-0x145;let _0x1516b2=_0x21003e[_0x1ee072];return _0x1516b2;},a23_0x1ee0(_0x1cee5c,_0xef1191);}const a23_0xad815e={};a23_0xad815e[a23_0x40b31d(0x152)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x44e0d9={};a23_0x44e0d9[a23_0x40b31d(0x159)]=!![];function a23_0x2100(){const _0x50cb39=['7oGqmkf','fileLogger','events.log','console.info','debug','message','path','File','4083381ZpCpDg','934rSHMiG','7215344sEabyq','name','createLogger','291872FImnaZ','logger','831345xnxTrE','winston','transports','format','7631124kbCgnB','join','usage.log','colorize','\x20-\x20','11hPRBUE','level','2955FzcdAV','timestamp','log','10UHXOHw','1100604hTORCO','5vJIPVI'];a23_0x2100=function(){return _0x50cb39;};return a23_0x2100();}const a23_0x12bff2={};a23_0x12bff2[a23_0x40b31d(0x14b)]=a23_0x40b31d(0x163),exports[a23_0x40b31d(0x14e)]=new winston[(a23_0x40b31d(0x14c))]({'format':winston[a23_0x40b31d(0x152)]['combine'](winston[a23_0x40b31d(0x152)][a23_0x40b31d(0x15b)](a23_0xad815e),winston[a23_0x40b31d(0x152)][a23_0x40b31d(0x156)](a23_0x44e0d9),winston[a23_0x40b31d(0x152)]['printf'](_0x1a8ee6=>_0x1a8ee6['timestamp']+a23_0x40b31d(0x157)+_0x1a8ee6[a23_0x40b31d(0x159)]+':\x20'+_0x1a8ee6[a23_0x40b31d(0x145)])),'transports':[new winston[(a23_0x40b31d(0x151))]['Console'](a23_0x12bff2),new winston[(a23_0x40b31d(0x151))][(a23_0x40b31d(0x147))]({'filename':path[a23_0x40b31d(0x154)](logDir,a23_0x40b31d(0x162)),'level':a23_0x40b31d(0x164)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x40b31d(0x151))][(a23_0x40b31d(0x147))]({'filename':path['join'](logDir,a23_0x40b31d(0x155)),'level':'debug'})]};exports[a23_0x40b31d(0x161)]=new winston[(a23_0x40b31d(0x14c))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x23cb0d=a24_0x29ca;function a24_0x236d(){const _0x2c499f=['env','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','96NVyYUZ','6IaWaaN','36gsKaJA','./config/constants','639969hSYXcv','commandDir','usage','89530ShwlAP','156331hfGfHg','demandCommand','root','204951OTbnjw','417010uyvTRO','exports','help','69204ubTheF','28wHHjZw','commands','XeeqP','YSezI','459526CgrSGX'];a24_0x236d=function(){return _0x2c499f;};return a24_0x236d();}function a24_0x29ca(_0x5a8d03,_0x3b8fbb){const _0x236d76=a24_0x236d();return a24_0x29ca=function(_0x29cabd,_0x3ddc67){_0x29cabd=_0x29cabd-0x188;let _0xf6489=_0x236d76[_0x29cabd];return _0xf6489;},a24_0x29ca(_0x5a8d03,_0x3b8fbb);}(function(_0x59931a,_0x3a47e3){const _0x4e6200=a24_0x29ca,_0x466f5d=_0x59931a();while(!![]){try{const _0x116802=parseInt(_0x4e6200(0x194))/0x1+-parseInt(_0x4e6200(0x19d))/0x2+-parseInt(_0x4e6200(0x198))/0x3*(parseInt(_0x4e6200(0x199))/0x4)+-parseInt(_0x4e6200(0x190))/0x5*(-parseInt(_0x4e6200(0x18a))/0x6)+-parseInt(_0x4e6200(0x191))/0x7*(-parseInt(_0x4e6200(0x189))/0x8)+-parseInt(_0x4e6200(0x18b))/0x9*(-parseInt(_0x4e6200(0x195))/0xa)+-parseInt(_0x4e6200(0x18d))/0xb;if(_0x116802===_0x3a47e3)break;else _0x466f5d['push'](_0x466f5d['shift']());}catch(_0x13711d){_0x466f5d['push'](_0x466f5d['shift']());}}}(a24_0x236d,0x32d6f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x23cb0d(0x18c));process[a24_0x23cb0d(0x19e)][a24_0x23cb0d(0x188)]=0x1;function run(_0x5eb2ac){const _0x5dfe6f=a24_0x23cb0d,_0x46cd3b={};_0x46cd3b[_0x5dfe6f(0x19c)]=_0x5dfe6f(0x19a),_0x46cd3b['XeeqP']=_0x5dfe6f(0x197);const _0x1024f9=_0x46cd3b;_0x5eb2ac[_0x5dfe6f(0x18f)](HELP_HEADER_MESSAGE[_0x5dfe6f(0x193)])[_0x5dfe6f(0x18e)](_0x1024f9[_0x5dfe6f(0x19c)])[_0x5dfe6f(0x192)]()[_0x5dfe6f(0x197)](_0x1024f9[_0x5dfe6f(0x19b)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x23cb0d(0x196)]=run;
2
+ 'use strict';const a24_0x28de3c=a24_0x63c3;function a24_0x63c3(_0x194d2f,_0x369629){const _0x2e60d0=a24_0x2e60();return a24_0x63c3=function(_0x63c32f,_0x58da82){_0x63c32f=_0x63c32f-0x80;let _0x4dae8a=_0x2e60d0[_0x63c32f];return _0x4dae8a;},a24_0x63c3(_0x194d2f,_0x369629);}(function(_0x30f5d6,_0x57f122){const _0x537d1c=a24_0x63c3,_0x35240e=_0x30f5d6();while(!![]){try{const _0x404732=parseInt(_0x537d1c(0x88))/0x1+-parseInt(_0x537d1c(0x81))/0x2+-parseInt(_0x537d1c(0x86))/0x3+parseInt(_0x537d1c(0x89))/0x4+parseInt(_0x537d1c(0x8c))/0x5+-parseInt(_0x537d1c(0x8e))/0x6+-parseInt(_0x537d1c(0x8a))/0x7*(-parseInt(_0x537d1c(0x87))/0x8);if(_0x404732===_0x57f122)break;else _0x35240e['push'](_0x35240e['shift']());}catch(_0x99691b){_0x35240e['push'](_0x35240e['shift']());}}}(a24_0x2e60,0x6df0f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x28de3c(0x8f));function a24_0x2e60(){const _0x4dd356=['425016qpnLAW','commands','usNuE','root','epilogue','2016981aXMCdt','40tIDuGB','510460UjKrxX','1567940OpVzVx','1117074oVwvpo','exports','1762805WDyiml','demandCommand','4306572YAzyTS','./config/constants','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','help'];a24_0x2e60=function(){return _0x4dd356;};return a24_0x2e60();}process['env'][a24_0x28de3c(0x90)]=0x1;function run(_0x210c3d){const _0xab03f6=a24_0x28de3c,_0x231c02={};_0x231c02[_0xab03f6(0x83)]=_0xab03f6(0x82),_0x231c02['nweLR']=_0xab03f6(0x80);const _0x4da6dd=_0x231c02;_0x210c3d['usage'](HELP_HEADER_MESSAGE[_0xab03f6(0x84)])['commandDir'](_0x4da6dd[_0xab03f6(0x83)])[_0xab03f6(0x8d)]()[_0xab03f6(0x80)](_0x4da6dd['nweLR'])[_0xab03f6(0x85)](HELP_FOOTER_MESSAGE);}module[a24_0x28de3c(0x8b)]=run;