browserstack-node-sdk 1.50.2 → 1.50.4

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 +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/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
- const a15_0x2781e5=a15_0x5e8c;function a15_0x5825(){const _0xbbd7f3=['statusCode','2926683DUmpsw','unknown-error','parse','5304648fTriEL','226MZJnwX','command','push','/packages/cli/get-all-grids','DmgMz','emlcV','../../utils/instrumentationUtils','usage','bstackAccesskey','error','unauthorised','azLsS','got','QyabG','Browserstack','https://','grid-id','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid','cluster-name','username','zWDvB','fULdZ','init-not-called','Failed\x20to\x20list\x20resources!\x20Error:\x20','/packages/cli/get-grids','868986fOfvwb','builder','1986388yKyPdL','list','queued','28BeYhIx','grids','lGFkR','../../utils/utilityMethods','desc','status','description','lPqlN','password','\x0aFound\x20the\x20following\x20grids:\x0a','TSeJt','45175rrpyCe','bIrKw','log','list-grids-called','help','cJMoz','1926dSiLUq','IfkQH','uDYlo','ERROR','QgYBV','type','YxOru','jSFVl','hHrEV','mhOHX','readFileSync','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','running','ahDRp','TYwpn','ZBziQ','FATsO','stringify','forEach','GET','INFO','boolean','uBISK','wiQyF','requestId','body','1185256iSzPjp'];a15_0x5825=function(){return _0xbbd7f3;};return a15_0x5825();}(function(_0x4d1b1b,_0x178dc0){const _0x844f3=a15_0x5e8c,_0x309851=_0x4d1b1b();while(!![]){try{const _0x4a3b9b=parseInt(_0x844f3(0xcf))/0x1*(-parseInt(_0x844f3(0x101))/0x2)+parseInt(_0x844f3(0xeb))/0x3+-parseInt(_0x844f3(0xed))/0x4+-parseInt(_0x844f3(0xfb))/0x5+parseInt(_0x844f3(0xce))/0x6+-parseInt(_0x844f3(0xf0))/0x7*(-parseInt(_0x844f3(0xc9))/0x8)+-parseInt(_0x844f3(0xcb))/0x9;if(_0x4a3b9b===_0x178dc0)break;else _0x309851['push'](_0x309851['shift']());}catch(_0x42d5a3){_0x309851['push'](_0x309851['shift']());}}}(a15_0x5825,0xaf475));const fs=require('fs'),got=require(a15_0x2781e5(0xdb)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x2781e5(0xf3)),{sendInstrumentationEvent}=require(a15_0x2781e5(0xd5));function a15_0x5e8c(_0x4a303f,_0x25211f){const _0x58250e=a15_0x5825();return a15_0x5e8c=function(_0x5e8c5d,_0x219084){_0x5e8c5d=_0x5e8c5d-0xc3;let _0x15e0bd=_0x58250e[_0x5e8c5d];return _0x15e0bd;},a15_0x5e8c(_0x4a303f,_0x25211f);}exports[a15_0x2781e5(0xd0)]=a15_0x2781e5(0xf1),exports[a15_0x2781e5(0xf4)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x2781e5(0xec)]=function(_0x584731){const _0x1028aa=a15_0x2781e5,_0x5401cb={};_0x5401cb['azLsS']=_0x1028aa(0xe0),_0x5401cb[_0x1028aa(0xd4)]=_0x1028aa(0xc4),_0x5401cb[_0x1028aa(0x111)]=_0x1028aa(0xff);const _0x33eb8e=_0x5401cb,_0x3a461b={};_0x3a461b[_0x1028aa(0xf6)]=_0x33eb8e[_0x1028aa(0xda)],_0x3a461b[_0x1028aa(0x106)]=_0x33eb8e[_0x1028aa(0xd4)];const _0x16d894={};return _0x16d894['all-grids']=_0x3a461b,_0x584731[_0x1028aa(0xd6)](HELP_HEADER_MESSAGE[_0x1028aa(0xee)][_0x1028aa(0xe3)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x16d894)[_0x1028aa(0xff)](_0x33eb8e['ZBziQ'])['argv'];},exports['handler']=async function(_0x20fc4f){const _0x4f2cf3=a15_0x2781e5,_0x4bf77e={'lPqlN':function(_0x607507){return _0x607507();},'hHrEV':function(_0x546ea3){return _0x546ea3();},'wiQyF':_0x4f2cf3(0x10c),'QgYBV':function(_0x5e541f,_0x1947bd,_0x5dd7f5,_0x1ccca9,_0x401aa9,_0x43b76c,_0x486fbe){return _0x5e541f(_0x1947bd,_0x5dd7f5,_0x1ccca9,_0x401aa9,_0x43b76c,_0x486fbe);},'DmgMz':_0x4f2cf3(0xfe),'TYwpn':_0x4f2cf3(0xe8),'lGFkR':function(_0x21bbaa){return _0x21bbaa();},'uDYlo':_0x4f2cf3(0x115),'QyabG':function(_0x35ef0a,_0x38b16b,_0x3c29ad){return _0x35ef0a(_0x38b16b,_0x3c29ad);},'fULdZ':function(_0x20126a,_0x5aa70,_0x518b0f){return _0x20126a(_0x5aa70,_0x518b0f);},'mhOHX':function(_0x506207,_0x4fd00a){return _0x506207!==_0x4fd00a;},'bIrKw':function(_0x50a7ab,_0x440067){return _0x50a7ab!==_0x440067;},'cJMoz':function(_0x23418e,_0x1de156){return _0x23418e===_0x1de156;},'lUgNY':_0x4f2cf3(0xf9),'IfkQH':_0x4f2cf3(0xdf),'ahDRp':'grid-name','uBISK':_0x4f2cf3(0xf5),'TSeJt':'running','YxOru':_0x4f2cf3(0xef),'VDyPq':_0x4f2cf3(0xe4),'XoaPA':function(_0xac2418,_0x5c1c26){return _0xac2418(_0x5c1c26);},'zWDvB':_0x4f2cf3(0xe2),'FATsO':_0x4f2cf3(0xd9),'jSFVl':'server-error','ixENc':_0x4f2cf3(0xcc)};try{global_registry[_0x4f2cf3(0xc7)]=_0x4bf77e[_0x4f2cf3(0xf7)](uuidv4);!fs[_0x4f2cf3(0xe1)](_0x4bf77e[_0x4f2cf3(0x109)](getCredentialsPath))&&(console[_0x4f2cf3(0xd8)](_0x4bf77e[_0x4f2cf3(0xc6)]),await _0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes['ERROR'],_0x4bf77e[_0x4f2cf3(0x110)],null,_0x20fc4f),process[_0x4f2cf3(0x10d)](0x1));const _0x551ee9=JSON[_0x4f2cf3(0xcd)](fs[_0x4f2cf3(0x10b)](_0x4bf77e[_0x4f2cf3(0xf2)](getCredentialsPath)));let _0x1cd045=_0x4f2cf3(0xde)+AG_API_URL+_0x4f2cf3(0xea);_0x20fc4f['allGrids']&&(_0x1cd045='https://'+AG_API_URL+_0x4f2cf3(0xd2));const _0x456dea={'method':_0x4bf77e[_0x4f2cf3(0x103)],'headers':_0x4bf77e[_0x4f2cf3(0xdc)](getAuthHeader,_0x551ee9[_0x4f2cf3(0xdd)][_0x4f2cf3(0xe5)],_0x551ee9[_0x4f2cf3(0xdd)][_0x4f2cf3(0xf8)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x551ee9['Browserstack'][_0x4f2cf3(0xe5)],global_registry[_0x4f2cf3(0xd7)]=_0x551ee9[_0x4f2cf3(0xdd)][_0x4f2cf3(0xf8)],_0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes[_0x4f2cf3(0xc3)],null,null,_0x20fc4f);const _0x58aae9=await _0x4bf77e[_0x4f2cf3(0xe7)](got,_0x1cd045,_0x456dea);if(_0x4bf77e[_0x4f2cf3(0x10a)](_0x58aae9,null)&&_0x4bf77e[_0x4f2cf3(0xfc)](_0x58aae9,undefined)&&_0x4bf77e[_0x4f2cf3(0x100)](_0x58aae9[_0x4f2cf3(0xca)],0xc8)){const _0x2d9d01=JSON[_0x4f2cf3(0xcd)](_0x58aae9[_0x4f2cf3(0xc8)]);console[_0x4f2cf3(0xfd)](_0x4bf77e['lUgNY']);const _0x5ce86f=[];_0x5ce86f['push']([_0x4bf77e[_0x4f2cf3(0x102)],_0x4bf77e[_0x4f2cf3(0x10f)],_0x4bf77e[_0x4f2cf3(0xc5)],_0x4bf77e[_0x4f2cf3(0xfa)],_0x4bf77e[_0x4f2cf3(0x107)],_0x4bf77e['VDyPq']]),_0x2d9d01[_0x4f2cf3(0x114)](_0x399142=>{const _0x2ccf6e=_0x4f2cf3;_0x5ce86f[_0x2ccf6e(0xd1)]([_0x399142['id'],_0x399142['name'],_0x399142[_0x2ccf6e(0xf5)],_0x399142[_0x2ccf6e(0x10e)],_0x399142['queued'],_0x399142['clusterName']]);}),console[_0x4f2cf3(0xfd)](_0x4bf77e['XoaPA'](table,_0x5ce86f)),process[_0x4f2cf3(0x10d)](0x0);}_0x4bf77e[_0x4f2cf3(0x100)](_0x58aae9[_0x4f2cf3(0xca)],0x191)&&(console[_0x4f2cf3(0xd8)](_0x4bf77e[_0x4f2cf3(0xe6)]),await _0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes[_0x4f2cf3(0x104)],_0x4bf77e[_0x4f2cf3(0x112)],null,_0x20fc4f),process['exit'](0x1)),console[_0x4f2cf3(0xd8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4f2cf3(0x113)](_0x58aae9)),await _0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes[_0x4f2cf3(0x104)],_0x4bf77e[_0x4f2cf3(0x108)],_0x58aae9,_0x20fc4f),process[_0x4f2cf3(0x10d)](0x1);}catch(_0x239e9c){console[_0x4f2cf3(0xd8)](_0x4f2cf3(0xe9)+_0x239e9c['stack']),await _0x4bf77e[_0x4f2cf3(0x105)](sendInstrumentationEvent,_0x20fc4f,_0x4bf77e[_0x4f2cf3(0xd3)],messageTypes['ERROR'],_0x4bf77e['ixENc'],_0x239e9c,_0x20fc4f),process[_0x4f2cf3(0x10d)](0x1);}};
1
+ const a15_0x16de10=a15_0x745e;function a15_0x2cce(){const _0x5350bb=['clusterName','queued','argv','grid','wwCZS','/packages/cli/get-all-grids','wsBGH','INFO','XmFKH','4205005TWuQDo','mVhrd','grids','help','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','XkZRH','gcSBR','vgCCb','WADDH','allGrids','2424mrtSHI','tOdpA','nXcHk','DDZSx','33318aZLTVF','bstackUsername','HDWXh','bstackAccesskey','\x0aFound\x20the\x20following\x20grids:\x0a','options','parse','REdVD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','usage','push','1686190eMWtCW','UjmwI','zsZLj','Failed\x20to\x20list\x20resources!\x20Error:\x20','699846OGmChz','body','JJJqe','running','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','/packages/cli/get-grids','log','epilogue','password','wRfWC','name','init-not-called','table','description','type','forEach','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','xfMia','statusCode','status','ERROR','../../config/constants','kwaNS','username','Browserstack','got','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','1458VVZBYD','2830984TJpazg','xUwst','stack','../../utils/instrumentationUtils','RYpzb','list-grids-called','ReSHP','../../utils/utilityMethods','server-error','GET','exit','error','2661352PqFybO','handler','list','HmUMZ','grid-id','all-grids','https://'];a15_0x2cce=function(){return _0x5350bb;};return a15_0x2cce();}(function(_0x3fd26e,_0x30179a){const _0x39d146=a15_0x745e,_0x8d3b89=_0x3fd26e();while(!![]){try{const _0x538497=-parseInt(_0x39d146(0x1bb))/0x1+-parseInt(_0x39d146(0x1a8))/0x2*(-parseInt(_0x39d146(0x181))/0x3)+-parseInt(_0x39d146(0x182))/0x4+parseInt(_0x39d146(0x1b7))/0x5+-parseInt(_0x39d146(0x1ac))/0x6+parseInt(_0x39d146(0x19e))/0x7+parseInt(_0x39d146(0x18e))/0x8;if(_0x538497===_0x30179a)break;else _0x8d3b89['push'](_0x8d3b89['shift']());}catch(_0x466946){_0x8d3b89['push'](_0x8d3b89['shift']());}}}(a15_0x2cce,0x6d02d));function a15_0x745e(_0x3645e4,_0x4e26a3){const _0x2ccef6=a15_0x2cce();return a15_0x745e=function(_0x745e81,_0x3d776d){_0x745e81=_0x745e81-0x170;let _0x3ec6f6=_0x2ccef6[_0x745e81];return _0x3ec6f6;},a15_0x745e(_0x3645e4,_0x4e26a3);}const fs=require('fs'),got=require(a15_0x16de10(0x17f)),{table}=require(a15_0x16de10(0x171)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x16de10(0x17b)),{getCredentialsPath,getAuthHeader}=require(a15_0x16de10(0x189)),{sendInstrumentationEvent}=require(a15_0x16de10(0x185));exports['command']=a15_0x16de10(0x1a0),exports['desc']=a15_0x16de10(0x1a2),exports['builder']=function(_0x19d60a){const _0x3998c2=a15_0x16de10,_0x16268b={};_0x16268b['REdVD']=_0x3998c2(0x180),_0x16268b[_0x3998c2(0x19f)]='boolean',_0x16268b[_0x3998c2(0x1b9)]=_0x3998c2(0x1a1);const _0x3c7589=_0x16268b,_0x21d0e2={};_0x21d0e2[_0x3998c2(0x172)]=_0x3c7589[_0x3998c2(0x1b3)],_0x21d0e2[_0x3998c2(0x173)]=_0x3c7589['mVhrd'];const _0x58068c={};return _0x58068c[_0x3998c2(0x193)]=_0x21d0e2,_0x19d60a[_0x3998c2(0x1b5)](HELP_HEADER_MESSAGE[_0x3998c2(0x190)][_0x3998c2(0x198)])[_0x3998c2(0x1c3)](HELP_FOOTER_MESSAGE)[_0x3998c2(0x1b1)](_0x58068c)['help'](_0x3c7589['zsZLj'])[_0x3998c2(0x197)];},exports[a15_0x16de10(0x18f)]=async function(_0x458533){const _0x583cc8=a15_0x16de10,_0x150081={'nXcHk':function(_0x56f58e){return _0x56f58e();},'vgCCb':function(_0x57de24){return _0x57de24();},'WADDH':_0x583cc8(0x1b4),'HDWXh':function(_0x550550,_0x3fa796,_0x4c687a,_0x197223,_0x2e336a,_0x32a46a,_0x36021a){return _0x550550(_0x3fa796,_0x4c687a,_0x197223,_0x2e336a,_0x32a46a,_0x36021a);},'wRfWC':_0x583cc8(0x187),'tOdpA':_0x583cc8(0x170),'kwaNS':function(_0x31ff2c){return _0x31ff2c();},'qUgHf':_0x583cc8(0x18b),'RYpzb':function(_0x1de45b,_0x201c42,_0x5c8806){return _0x1de45b(_0x201c42,_0x5c8806);},'UuEZC':function(_0x1b7cbd,_0x4a360b){return _0x1b7cbd!==_0x4a360b;},'gcSBR':function(_0x10c576,_0x5ad85a){return _0x10c576===_0x5ad85a;},'XmFKH':_0x583cc8(0x1b0),'JJJqe':_0x583cc8(0x192),'nHzDm':'grid-name','UjmwI':_0x583cc8(0x179),'DDZSx':_0x583cc8(0x1be),'ReSHP':_0x583cc8(0x196),'PciGg':'cluster-name','wsBGH':function(_0x176c7b,_0x56d52b){return _0x176c7b(_0x56d52b);},'XkZRH':_0x583cc8(0x1bf),'xUwst':'unauthorised','xfMia':function(_0x11fb39,_0x2544b7,_0xf3f75d,_0x113ed7,_0x17acef,_0x5c841d,_0x3877f4){return _0x11fb39(_0x2544b7,_0xf3f75d,_0x113ed7,_0x17acef,_0x5c841d,_0x3877f4);},'HmUMZ':_0x583cc8(0x18a),'wwCZS':'unknown-error'};try{global_registry['requestId']=_0x150081[_0x583cc8(0x1aa)](uuidv4);!fs[_0x583cc8(0x176)](_0x150081[_0x583cc8(0x1a5)](getCredentialsPath))&&(console[_0x583cc8(0x18d)](_0x150081[_0x583cc8(0x1a6)]),await _0x150081['HDWXh'](sendInstrumentationEvent,_0x458533,_0x150081['wRfWC'],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x1a9)],null,_0x458533),process['exit'](0x1));const _0x1dd750=JSON[_0x583cc8(0x1b2)](fs['readFileSync'](_0x150081[_0x583cc8(0x17c)](getCredentialsPath)));let _0x23c071=_0x583cc8(0x194)+AG_API_URL+_0x583cc8(0x1c1);_0x458533[_0x583cc8(0x1a7)]&&(_0x23c071=_0x583cc8(0x194)+AG_API_URL+_0x583cc8(0x19a));const _0x4ded9b={'method':_0x150081['qUgHf'],'headers':_0x150081[_0x583cc8(0x186)](getAuthHeader,_0x1dd750[_0x583cc8(0x17e)][_0x583cc8(0x17d)],_0x1dd750[_0x583cc8(0x17e)][_0x583cc8(0x1c4)]),'throwHttpErrors':![]};global_registry[_0x583cc8(0x1ad)]=_0x1dd750['Browserstack'][_0x583cc8(0x17d)],global_registry[_0x583cc8(0x1af)]=_0x1dd750['Browserstack']['password'],_0x150081[_0x583cc8(0x1ae)](sendInstrumentationEvent,_0x458533,_0x150081['wRfWC'],messageTypes[_0x583cc8(0x19c)],null,null,_0x458533);const _0x35c686=await _0x150081[_0x583cc8(0x186)](got,_0x23c071,_0x4ded9b);if(_0x150081['UuEZC'](_0x35c686,null)&&_0x150081['UuEZC'](_0x35c686,undefined)&&_0x150081[_0x583cc8(0x1a4)](_0x35c686[_0x583cc8(0x178)],0xc8)){const _0xed2632=JSON[_0x583cc8(0x1b2)](_0x35c686[_0x583cc8(0x1bc)]);console['log'](_0x150081[_0x583cc8(0x19d)]);const _0x535f7d=[];_0x535f7d[_0x583cc8(0x1b6)]([_0x150081[_0x583cc8(0x1bd)],_0x150081['nHzDm'],_0x150081[_0x583cc8(0x1b8)],_0x150081[_0x583cc8(0x1ab)],_0x150081[_0x583cc8(0x188)],_0x150081['PciGg']]),_0xed2632[_0x583cc8(0x174)](_0x565e12=>{const _0xce31fa=_0x583cc8;_0x535f7d['push']([_0x565e12['id'],_0x565e12[_0xce31fa(0x1c6)],_0x565e12[_0xce31fa(0x179)],_0x565e12['running'],_0x565e12['queued'],_0x565e12[_0xce31fa(0x195)]]);}),console[_0x583cc8(0x1c2)](_0x150081[_0x583cc8(0x19b)](table,_0x535f7d)),process[_0x583cc8(0x18c)](0x0);}_0x150081['gcSBR'](_0x35c686[_0x583cc8(0x178)],0x191)&&(console['error'](_0x150081[_0x583cc8(0x1a3)]),await _0x150081[_0x583cc8(0x1ae)](sendInstrumentationEvent,_0x458533,_0x150081[_0x583cc8(0x1c5)],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x183)],null,_0x458533),process[_0x583cc8(0x18c)](0x1)),console['error'](_0x583cc8(0x175)+JSON[_0x583cc8(0x1c0)](_0x35c686)),await _0x150081[_0x583cc8(0x177)](sendInstrumentationEvent,_0x458533,_0x150081[_0x583cc8(0x1c5)],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x191)],_0x35c686,_0x458533),process['exit'](0x1);}catch(_0x5a3b20){console[_0x583cc8(0x18d)](_0x583cc8(0x1ba)+_0x5a3b20[_0x583cc8(0x184)]),await _0x150081[_0x583cc8(0x177)](sendInstrumentationEvent,_0x458533,_0x150081[_0x583cc8(0x1c5)],messageTypes[_0x583cc8(0x17a)],_0x150081[_0x583cc8(0x199)],_0x5a3b20,_0x458533),process[_0x583cc8(0x18c)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x5a3b6b=a16_0x3265;function a16_0x3265(_0x444986,_0x37bd1a){const _0x3973f3=a16_0x3973();return a16_0x3265=function(_0x3265c4,_0x529ca5){_0x3265c4=_0x3265c4-0x11d;let _0x27f8bc=_0x3973f3[_0x3265c4];return _0x27f8bc;},a16_0x3265(_0x444986,_0x37bd1a);}(function(_0x3d8d5b,_0x26730f){const _0xfa4173=a16_0x3265,_0x22f948=_0x3d8d5b();while(!![]){try{const _0x29b973=-parseInt(_0xfa4173(0x131))/0x1*(-parseInt(_0xfa4173(0x12c))/0x2)+-parseInt(_0xfa4173(0x11d))/0x3+-parseInt(_0xfa4173(0x124))/0x4+-parseInt(_0xfa4173(0x132))/0x5*(parseInt(_0xfa4173(0x135))/0x6)+parseInt(_0xfa4173(0x134))/0x7*(parseInt(_0xfa4173(0x123))/0x8)+parseInt(_0xfa4173(0x122))/0x9*(-parseInt(_0xfa4173(0x139))/0xa)+-parseInt(_0xfa4173(0x12f))/0xb*(-parseInt(_0xfa4173(0x121))/0xc);if(_0x29b973===_0x26730f)break;else _0x22f948['push'](_0x22f948['shift']());}catch(_0xa46846){_0x22f948['push'](_0x22f948['shift']());}}}(a16_0x3973,0xa8673));function a16_0x3973(){const _0x2f98c6=['precheck_commands','commandDir','9352cWgFet','../config/constants','GDwnp','11DMsayj','help','137ZKBNrA','700485YOxGgT','handler','1841aNwReT','12lgSGck','demandCommand','epilogue','desc','13740SoDAbG','464877nKydfj','builder','command','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','14181420PDMhog','3771gJgPdo','36528wmJYZg','5290468emxOTM','pre-check','recommendCommands','usage','strict','YgOQz'];a16_0x3973=function(){return _0x2f98c6;};return a16_0x3973();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5a3b6b(0x12d));exports[a16_0x5a3b6b(0x11f)]=a16_0x5a3b6b(0x125),exports[a16_0x5a3b6b(0x138)]=a16_0x5a3b6b(0x120),exports[a16_0x5a3b6b(0x11e)]=function(_0x35856e){const _0x52cb6b=a16_0x5a3b6b,_0x15dc3f={};_0x15dc3f[_0x52cb6b(0x129)]=_0x52cb6b(0x12a),_0x15dc3f[_0x52cb6b(0x12e)]=_0x52cb6b(0x130);const _0x164205=_0x15dc3f;return _0x35856e[_0x52cb6b(0x127)](HELP_HEADER_MESSAGE['pre_check'])[_0x52cb6b(0x137)](HELP_FOOTER_MESSAGE)[_0x52cb6b(0x12b)](_0x164205['YgOQz'])[_0x52cb6b(0x136)]()[_0x52cb6b(0x126)]()[_0x52cb6b(0x128)]()['help'](_0x164205[_0x52cb6b(0x12e)]);},exports[a16_0x5a3b6b(0x133)]=function(_0x8239c6){};
1
+ function a16_0x220e(){const _0xb9ae2c=['2547809PTXzqD','recommendCommands','precheck_commands','builder','epilogue','44NjsSTi','demandCommand','usage','fLIds','639696ULEauE','65288MgkeGZ','../config/constants','7MyQwaj','2922LWEuaR','pre_check','handler','234zSDguy','3743870FQTCpB','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','desc','command','15pOOWIn','166224TNbKLK','52496UwYGtY','dEuxR'];a16_0x220e=function(){return _0xb9ae2c;};return a16_0x220e();}const a16_0x229cda=a16_0x4146;(function(_0x610cc,_0x24b0eb){const _0x466bd0=a16_0x4146,_0x504277=_0x610cc();while(!![]){try{const _0xd7f653=-parseInt(_0x466bd0(0x19c))/0x1*(parseInt(_0x466bd0(0x1a4))/0x2)+parseInt(_0x466bd0(0x1a0))/0x3+-parseInt(_0x466bd0(0x1a1))/0x4*(-parseInt(_0x466bd0(0x1ad))/0x5)+parseInt(_0x466bd0(0x1ae))/0x6*(-parseInt(_0x466bd0(0x1a3))/0x7)+parseInt(_0x466bd0(0x1af))/0x8*(parseInt(_0x466bd0(0x1a7))/0x9)+-parseInt(_0x466bd0(0x1a8))/0xa+parseInt(_0x466bd0(0x197))/0xb;if(_0xd7f653===_0x24b0eb)break;else _0x504277['push'](_0x504277['shift']());}catch(_0x41c97f){_0x504277['push'](_0x504277['shift']());}}}(a16_0x220e,0x305a6));function a16_0x4146(_0x32cf6f,_0x298995){const _0x220e44=a16_0x220e();return a16_0x4146=function(_0x41462e,_0x58c063){_0x41462e=_0x41462e-0x197;let _0x2405f6=_0x220e44[_0x41462e];return _0x2405f6;},a16_0x4146(_0x32cf6f,_0x298995);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x229cda(0x1a2));exports[a16_0x229cda(0x1ac)]='pre-check',exports[a16_0x229cda(0x1ab)]=a16_0x229cda(0x1a9),exports[a16_0x229cda(0x19a)]=function(_0xebcf6e){const _0x4c01f2=a16_0x229cda,_0x5508dd={};_0x5508dd['fLIds']=_0x4c01f2(0x199),_0x5508dd['dEuxR']=_0x4c01f2(0x1aa);const _0x5e14f7=_0x5508dd;return _0xebcf6e[_0x4c01f2(0x19e)](HELP_HEADER_MESSAGE[_0x4c01f2(0x1a5)])[_0x4c01f2(0x19b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5e14f7[_0x4c01f2(0x19f)])[_0x4c01f2(0x19d)]()[_0x4c01f2(0x198)]()['strict']()['help'](_0x5e14f7[_0x4c01f2(0x1b0)]);},exports[a16_0x229cda(0x1a6)]=function(_0x212f0d){};
@@ -1 +1 @@
1
- const a17_0x45e102=a17_0x45b1;(function(_0x5d2f58,_0x46af90){const _0x38629c=a17_0x45b1,_0x105ff3=_0x5d2f58();while(!![]){try{const _0x165eef=-parseInt(_0x38629c(0x1e8))/0x1*(-parseInt(_0x38629c(0x2d2))/0x2)+-parseInt(_0x38629c(0x225))/0x3+parseInt(_0x38629c(0x295))/0x4*(parseInt(_0x38629c(0x259))/0x5)+-parseInt(_0x38629c(0x216))/0x6+-parseInt(_0x38629c(0x2de))/0x7*(parseInt(_0x38629c(0x1fd))/0x8)+parseInt(_0x38629c(0x250))/0x9+parseInt(_0x38629c(0x26a))/0xa;if(_0x165eef===_0x46af90)break;else _0x105ff3['push'](_0x105ff3['shift']());}catch(_0x4284cd){_0x105ff3['push'](_0x105ff3['shift']());}}}(a17_0x37b8,0x7be6f));const fs=require('fs'),ws=require('ws'),got=require(a17_0x45e102(0x298)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x45e102(0x2e1)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x45e102(0x219)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x45e102(0x203)),{getCloudProviderObjectWithOutInit}=require(a17_0x45e102(0x2af)),webSocketUtils=require(a17_0x45e102(0x2d8)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x45b1(_0x57c3c0,_0x49dc3a){const _0x37b845=a17_0x37b8();return a17_0x45b1=function(_0x45b1e1,_0x2e2b3b){_0x45b1e1=_0x45b1e1-0x1e6;let _0x195639=_0x37b845[_0x45b1e1];return _0x195639;},a17_0x45b1(_0x57c3c0,_0x49dc3a);}exports[a17_0x45e102(0x1f3)]=a17_0x45e102(0x21a),exports[a17_0x45e102(0x239)]=a17_0x45e102(0x286),exports[a17_0x45e102(0x2d0)]=function(_0x307e74){const _0xa89d84=a17_0x45e102,_0x1b2d61={};_0x1b2d61[_0xa89d84(0x276)]=_0xa89d84(0x237),_0x1b2d61[_0xa89d84(0x247)]=_0xa89d84(0x210),_0x1b2d61['xbVri']=_0xa89d84(0x208),_0x1b2d61[_0xa89d84(0x26e)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1b2d61[_0xa89d84(0x292)]=_0xa89d84(0x2b1),_0x1b2d61[_0xa89d84(0x243)]='help';const _0x120f79=_0x1b2d61,_0x19eeba={};_0x19eeba[_0xa89d84(0x227)]=_0x120f79[_0xa89d84(0x276)],_0x19eeba[_0xa89d84(0x1fa)]=_0x120f79[_0xa89d84(0x247)];const _0x1204b0={};_0x1204b0[_0xa89d84(0x227)]=_0x120f79[_0xa89d84(0x217)],_0x1204b0['type']=_0x120f79[_0xa89d84(0x247)];const _0x444eae={};_0x444eae[_0xa89d84(0x227)]=_0x120f79[_0xa89d84(0x26e)],_0x444eae['type']=_0x120f79[_0xa89d84(0x247)];const _0x578a73={};_0x578a73[_0xa89d84(0x227)]=_0x120f79[_0xa89d84(0x292)],_0x578a73['type']=_0x120f79[_0xa89d84(0x247)];const _0x5bddce={};return _0x5bddce[_0xa89d84(0x2a0)]=_0x19eeba,_0x5bddce['cloud-provider']=_0x1204b0,_0x5bddce[_0xa89d84(0x296)]=_0x444eae,_0x5bddce[_0xa89d84(0x291)]=_0x578a73,_0x307e74[_0xa89d84(0x22e)](HELP_HEADER_MESSAGE[_0xa89d84(0x224)])[_0xa89d84(0x27b)](HELP_FOOTER_MESSAGE)['options'](_0x5bddce)['help'](_0x120f79[_0xa89d84(0x243)])[_0xa89d84(0x2dc)];};async function inputValidation(_0x4eeded,_0x480aac){const _0x10e056=a17_0x45e102,_0x415e74={'EqHhN':_0x10e056(0x28c),'ZpxCM':_0x10e056(0x268),'GuUpJ':_0x10e056(0x2be),'gDeKI':_0x10e056(0x218),'QcYqA':_0x10e056(0x237),'RPkFZ':_0x10e056(0x210),'HBzKm':_0x10e056(0x208),'hNive':_0x10e056(0x2a1),'tHJQA':_0x10e056(0x2b1),'epmIR':_0x10e056(0x24d),'LmIUV':'cluster-name','GLTIK':_0x10e056(0x2d7),'RLJMK':_0x10e056(0x212),'UEUln':_0x10e056(0x211),'dLMNO':function(_0x3d7dd5,_0x8b0f13){return _0x3d7dd5+_0x8b0f13;},'TqEYn':_0x10e056(0x255),'dyStE':_0x10e056(0x248),'iwKxA':function(_0xb857ea,_0x266016){return _0xb857ea||_0x266016;},'sSLZH':function(_0x58433d,_0x4184a4){return _0x58433d===_0x4184a4;},'AAPPN':'VSAsC','gkbeE':_0x10e056(0x24a),'BPPeE':function(_0xcfc2f8,_0x2dcfd6){return _0xcfc2f8!==_0x2dcfd6;},'cYCvI':_0x10e056(0x1ed),'ctkmC':_0x10e056(0x21c),'XaFVv':_0x10e056(0x2ca),'MFvCo':_0x10e056(0x201),'KfBYf':_0x10e056(0x235),'hAciT':function(_0x27dc75,_0x51882e){return _0x27dc75===_0x51882e;},'mbMHo':_0x10e056(0x287),'aXVSq':_0x10e056(0x209),'StaBx':_0x10e056(0x296),'QieAp':function(_0x1e2705,_0x5e1ef7){return _0x1e2705>_0x5e1ef7;},'njHtB':'cYHVM','fMUTn':'Fafsv','tUJYh':function(_0x3e2267,_0x267f4c,_0x1704f9,_0x877c4,_0x37625c,_0x1d2693,_0x2f7fe9,_0x4aa208){return _0x3e2267(_0x267f4c,_0x1704f9,_0x877c4,_0x37625c,_0x1d2693,_0x2f7fe9,_0x4aa208);},'fSDyR':_0x10e056(0x1ee),'JwkaS':_0x10e056(0x28a),'KKtiO':function(_0x4f0ef6,_0x48f66c){return _0x4f0ef6!==_0x48f66c;},'OYlaw':_0x10e056(0x21e),'uMxte':_0x10e056(0x267),'JeEXQ':function(_0x3f7986,_0x32426b,_0x157605,_0xe98f5c,_0x50a11c,_0x50a76b,_0x2b2db6,_0x38e8b4){return _0x3f7986(_0x32426b,_0x157605,_0xe98f5c,_0x50a11c,_0x50a76b,_0x2b2db6,_0x38e8b4);},'VcVwt':_0x10e056(0x2d1),'QxTVv':function(_0x2376ed,_0x3162d5){return _0x2376ed===_0x3162d5;},'xLBfj':_0x10e056(0x228),'mDZvL':'DGQpH','QsrKc':_0x10e056(0x264),'wzkKG':'GET','fQysO':function(_0x5c663f,_0x283831,_0x34cb4f){return _0x5c663f(_0x283831,_0x34cb4f);},'WZNyk':function(_0x51114e,_0x531e22,_0x2bfb2e,_0x3b244c,_0xd61f28,_0x153d16){return _0x51114e(_0x531e22,_0x2bfb2e,_0x3b244c,_0xd61f28,_0x153d16);},'enmhN':'pre-check','EsLGR':_0x10e056(0x291),'JpAZc':function(_0x172f2d,_0x3bc640){return _0x172f2d===_0x3bc640;},'zVIxz':_0x10e056(0x1f6),'kMHsh':function(_0x15e005,_0x548d95){return _0x15e005(_0x548d95);},'JKnuz':'MiXct','ALqbE':'WQKNN','QWPXs':'pre-check-grid-profile-empty','gwClx':function(_0x5b247e,_0x916a0f){return _0x5b247e===_0x916a0f;},'EPnjI':_0x10e056(0x266),'JDXCL':_0x10e056(0x215),'filht':function(_0x3d6789,_0x37e100){return _0x3d6789!==_0x37e100;},'CTqtg':_0x10e056(0x2d3),'kuFHj':_0x10e056(0x226),'owCpH':_0x10e056(0x25f),'MlhMS':function(_0x27ca47,_0x48b6b0){return _0x27ca47===_0x48b6b0;},'DXVux':_0x10e056(0x223),'YAzyc':function(_0x39e3bd,_0x3bf6f9){return _0x39e3bd===_0x3bf6f9;},'oaqAU':'ZlHDb'};let _0x1f9b62;try{if(_0x415e74['sSLZH'](_0x415e74[_0x10e056(0x26b)],_0x415e74[_0x10e056(0x24f)]))_0x546986['error']('error\x20stack\x20:\x20'+_0x55b0eb[_0x10e056(0x268)][_0x10e056(0x1f5)]);else{if(_0x4eeded['clusterName']||_0x4eeded['cloudProvider']||_0x4eeded[_0x10e056(0x296)]){if(_0x415e74['BPPeE'](_0x415e74[_0x10e056(0x27d)],_0x415e74[_0x10e056(0x27d)]))_0x39fbd1['exit'](0x1);else{const _0x4be264=[];!_0x4eeded[_0x10e056(0x2ae)]&&(_0x415e74['BPPeE'](_0x415e74['ctkmC'],_0x415e74[_0x10e056(0x22a)])?_0x4be264[_0x10e056(0x252)](_0x415e74['LmIUV']):_0x466c01[_0x10e056(0x252)](_0x415e74[_0x10e056(0x1ff)]));;if(!_0x4eeded[_0x10e056(0x29d)]){if(_0x415e74[_0x10e056(0x20a)](_0x415e74[_0x10e056(0x1f8)],_0x415e74[_0x10e056(0x1fc)]))_0x4be264[_0x10e056(0x252)](_0x415e74[_0x10e056(0x1ff)]);else{const _0x5b3f76={};_0x5b3f76['type']=_0x453abd[_0x10e056(0x261)],_0x5b3f76[_0x10e056(0x244)]=_0x3b3fa1,_0x1f7568[_0x10e056(0x1f0)](_0x28f370,_0x5b3f76,_0x415e74[_0x10e056(0x240)],!![]);}};!_0x4eeded[_0x10e056(0x296)]&&(_0x415e74[_0x10e056(0x25a)](_0x415e74[_0x10e056(0x26c)],_0x415e74[_0x10e056(0x207)])?(_0x3d5abc[_0x10e056(0x22b)](_0x10e056(0x2ab)+_0x1eeabc[_0x10e056(0x265)]+'\x20'),_0xf228e7[_0x10e056(0x29d)]=_0x2425dc['CLOUD_PROVIDER']):_0x4be264[_0x10e056(0x252)](_0x415e74[_0x10e056(0x274)]));;_0x415e74[_0x10e056(0x2a2)](_0x4be264[_0x10e056(0x2ba)],0x0)&&(_0x415e74['BPPeE'](_0x415e74[_0x10e056(0x23d)],_0x415e74[_0x10e056(0x251)])?(_0x1f9b62=_0x10e056(0x238)+_0x4be264[_0x10e056(0x28e)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x415e74[_0x10e056(0x2b7)](reportToGalactusAndSendToEDS,_0x4eeded,_0x480aac,_0x1f9b62,messageTypes[_0x10e056(0x290)],_0x415e74['fSDyR'],_0x415e74[_0x10e056(0x273)],_0x415e74[_0x10e056(0x240)]),logger['error'](_0x1f9b62),process['exit'](0x1)):_0x48d86e+='Cluster\x20'+_0x3d92d4['clusterName']+'\x20'+(_0x5329d9?_0x415e74[_0x10e056(0x214)]:_0x415e74['gDeKI'])+'\x0a\x0a');if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x4eeded[_0x10e056(0x29d)][_0x10e056(0x22f)]())){if(_0x415e74['KKtiO'](_0x415e74[_0x10e056(0x2bc)],_0x415e74['OYlaw']))_0x97854c+=_0x10e056(0x2b4)+_0x334e6b[_0x10e056(0x2ae)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{_0x1f9b62=_0x415e74[_0x10e056(0x205)],await _0x415e74[_0x10e056(0x2a9)](reportToGalactusAndSendToEDS,_0x4eeded,_0x480aac,_0x1f9b62,messageTypes['ERROR'],_0x415e74['fSDyR'],_0x415e74[_0x10e056(0x289)],_0x415e74[_0x10e056(0x240)]),logger[_0x10e056(0x268)](_0x1f9b62);if(!_0x4eeded[_0x10e056(0x29d)]){if(_0x415e74[_0x10e056(0x2c3)](_0x415e74[_0x10e056(0x2a4)],_0x415e74[_0x10e056(0x2a4)]))logger[_0x10e056(0x22b)](_0x10e056(0x2ab)+DEFAULT_CLUSTER_DETAILS[_0x10e056(0x265)]+'\x20'),_0x4eeded[_0x10e056(0x29d)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'];else{const _0x4db333={};_0x4db333[_0x10e056(0x227)]=_0x415e74[_0x10e056(0x288)],_0x4db333[_0x10e056(0x1fa)]=_0x415e74[_0x10e056(0x234)];const _0x546407={};_0x546407['description']=_0x415e74[_0x10e056(0x275)],_0x546407[_0x10e056(0x1fa)]=_0x415e74[_0x10e056(0x234)];const _0x17da35={};_0x17da35[_0x10e056(0x227)]=_0x415e74[_0x10e056(0x1e7)],_0x17da35[_0x10e056(0x1fa)]=_0x415e74[_0x10e056(0x234)];const _0x21ff52={};_0x21ff52['description']=_0x415e74[_0x10e056(0x1ec)],_0x21ff52[_0x10e056(0x1fa)]=_0x415e74[_0x10e056(0x234)];const _0x24cbee={};return _0x24cbee[_0x10e056(0x2a0)]=_0x4db333,_0x24cbee[_0x10e056(0x28c)]=_0x546407,_0x24cbee[_0x10e056(0x296)]=_0x17da35,_0x24cbee['grid-profile']=_0x21ff52,_0x567e04[_0x10e056(0x22e)](_0x469884[_0x10e056(0x224)])[_0x10e056(0x27b)](_0x1b3543)[_0x10e056(0x299)](_0x24cbee)[_0x10e056(0x24d)](_0x415e74['epmIR'])[_0x10e056(0x2dc)];}}}}global_registry[_0x10e056(0x2ae)]=_0x4eeded[_0x10e056(0x2ae)],global_registry[_0x10e056(0x29d)]=_0x4eeded['cloudProvider'],global_registry['clusterRegion']=_0x4eeded[_0x10e056(0x296)];}}else{if(_0x4eeded[_0x10e056(0x2a5)]){if(_0x415e74['sSLZH'](_0x415e74[_0x10e056(0x1f4)],_0x415e74['QsrKc']))_0x4994c1['push'](_0x415e74[_0x10e056(0x254)]);else{global_registry[_0x10e056(0x2a5)]=_0x4eeded[_0x10e056(0x2a5)],logger[_0x10e056(0x27f)](_0x10e056(0x277)+_0x4eeded['gridProfile']);const _0x2b018e='https://'+AG_API_URL+_0x10e056(0x29f),_0x551960={};_0x551960[_0x10e056(0x202)]=_0x415e74['wzkKG'],_0x551960[_0x10e056(0x1ea)]=global_registry[_0x10e056(0x23e)],_0x551960[_0x10e056(0x24e)]=![];const _0x119669=_0x551960,_0x5e0e63=await _0x415e74[_0x10e056(0x2e3)](got,_0x2b018e,_0x119669),_0x2c5dda=await _0x415e74[_0x10e056(0x2dd)](responseValidation,_0x5e0e63,_0x415e74[_0x10e056(0x204)],_0x415e74[_0x10e056(0x1fe)],_0x4eeded,_0x480aac);let _0x3c27db={};if(_0x415e74[_0x10e056(0x2df)](_0x2c5dda,0xc8)){if(_0x415e74[_0x10e056(0x20a)](_0x415e74[_0x10e056(0x2c6)],_0x415e74[_0x10e056(0x2c6)]))_0x577d9a['error'](_0x415e74[_0x10e056(0x221)]),_0x338520['exit'](0x1);else{const _0x1f6cf8=JSON[_0x10e056(0x21f)](_0x5e0e63[_0x10e056(0x22d)]),_0x390bf1=_0x1f6cf8['find'](_0x1a5d78=>_0x1a5d78[_0x10e056(0x281)]===_0x4eeded['gridProfile'])||null;if(_0x415e74[_0x10e056(0x2e4)](isUndefined,_0x390bf1))_0x415e74['KKtiO'](_0x415e74[_0x10e056(0x2cf)],_0x415e74[_0x10e056(0x249)])?(_0x1f9b62='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x4eeded[_0x10e056(0x2a5)]+_0x10e056(0x229),await _0x415e74[_0x10e056(0x2a9)](reportToGalactusAndSendToEDS,_0x4eeded,_0x480aac,_0x1f9b62,messageTypes[_0x10e056(0x290)],_0x415e74[_0x10e056(0x2ce)],_0x415e74[_0x10e056(0x2d4)],_0x415e74['ZpxCM']),logger[_0x10e056(0x268)](_0x1f9b62),process[_0x10e056(0x26f)](0x1)):(_0x5acc27+=_0x415e74['RLJMK'],_0x5b8380+=_0x10e056(0x279)+(_0x22d0ac[_0x10e056(0x244)]||_0x415e74[_0x10e056(0x200)])+'\x0a',_0x356b71+=_0x10e056(0x2da)+(_0xb1444b[_0x10e056(0x29e)]||_0x415e74[_0x10e056(0x200)])+'\x0a',_0x2d1b0f+=_0x10e056(0x2aa)+(_0x2effc3[_0x10e056(0x1f5)]||_0x415e74[_0x10e056(0x200)])+'\x0a');else{if(_0x415e74[_0x10e056(0x2e0)](_0x415e74[_0x10e056(0x2b0)],_0x415e74[_0x10e056(0x2c9)])){const {header:_0x5465e3,response:_0x197ad1}=_0x49dbf3,{status:_0x50a915,data:_0x3284de,error:_0xc8a20b}=_0x197ad1;_0x34c0e0+=_0x5465e3+'\x20#'+_0x415e74['dLMNO'](_0x47a1ea,0x1)+'\x0a',_0x354dbb+=_0x10e056(0x206)+(_0x50a915?_0x415e74['TqEYn']:_0x415e74[_0x10e056(0x213)])+'\x0a',_0x1c295a+=_0x10e056(0x2c5)+_0x415e74['iwKxA'](_0x3284de,_0x415e74[_0x10e056(0x200)])+'\x0a',_0xc8a20b&&(_0x11f410+=_0x415e74[_0x10e056(0x20f)],_0x573d57+=_0x10e056(0x279)+(_0xc8a20b[_0x10e056(0x244)]||_0x415e74[_0x10e056(0x200)])+'\x0a',_0xed5230+=_0x10e056(0x2da)+(_0xc8a20b['code']||_0x415e74[_0x10e056(0x200)])+'\x0a',_0x326e87+='\x20\x20Stack:\x20'+(_0xc8a20b['stack']||_0x415e74[_0x10e056(0x200)])+'\x0a'),_0x32a44d+='\x0a\x0a';}else _0x3c27db=_0x390bf1;}}}else _0x415e74[_0x10e056(0x2b8)](_0x415e74[_0x10e056(0x2b3)],_0x415e74[_0x10e056(0x2bb)])?process[_0x10e056(0x26f)](0x1):_0x37cc9c['info']('Cluster\x20`'+_0x1e4f62[_0x10e056(0x2ae)]+_0x10e056(0x2c1));const _0x11103e={};_0x11103e[_0x10e056(0x1fa)]=WS_EVENTS[_0x10e056(0x261)],_0x11103e[_0x10e056(0x244)]=_0x415e74[_0x10e056(0x20d)],webSocketUtils[_0x10e056(0x1f0)](_0x480aac,_0x11103e),global_registry[_0x10e056(0x29d)]=_0x3c27db[_0x10e056(0x29d)],global_registry[_0x10e056(0x262)]=_0x3c27db[_0x10e056(0x296)],global_registry['clusterName']=_0x3c27db['clusterName'];}}else _0x415e74[_0x10e056(0x294)](_0x415e74[_0x10e056(0x263)],_0x415e74[_0x10e056(0x263)])?(logger[_0x10e056(0x268)](_0x415e74[_0x10e056(0x221)]),process['exit'](0x1)):(_0x58033e[_0x10e056(0x22b)]('['+_0x60a25b+_0x10e056(0x285)+_0x2e1526[_0x10e056(0x27a)]+_0x10e056(0x2bd)+_0x5af628[_0x10e056(0x1fb)]+_0x10e056(0x2c4)+_0x5e2dad['error']),_0x4a92ee[_0x10e056(0x268)]&&_0x31606f[_0x10e056(0x268)](_0x10e056(0x2cb)+_0x4f1bec[_0x10e056(0x268)][_0x10e056(0x1f5)]));}}}catch(_0x1b06f5){_0x415e74[_0x10e056(0x270)](_0x415e74[_0x10e056(0x21d)],_0x415e74[_0x10e056(0x21d)])?(_0x1f9b62=_0x10e056(0x25b)+_0x1b06f5+':\x20'+_0x1b06f5[_0x10e056(0x1f5)],logger['error'](_0x1f9b62),await _0x415e74[_0x10e056(0x2a9)](reportToGalactusAndSendToEDS,_0x4eeded,_0x480aac,_0x1f9b62,messageTypes[_0x10e056(0x290)],_0x415e74[_0x10e056(0x2ce)],_0x415e74['VcVwt'],_0x415e74[_0x10e056(0x240)]),process[_0x10e056(0x26f)](0x1)):_0x21da86=_0x319599;}}function a17_0x37b8(){const _0x578c90=['Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','wokBs','BPPeE','handler','grUxl','owCpH','FVSFq','RLJMK','string','N/A','Error\x20Details:\x0a','dyStE','GuUpJ','ATMMS','4123068CnzUmx','xbVri','will\x20be\x20created','../../utils/utilityMethods','grid','bstackUsername','WGDSz','oaqAU','ZtQru','parse','vXkzm','GLTIK','tJFpN','zDDNz','pre_check','2058258IQmpDZ','AAGeK','description','JBsHV','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','XaFVv','info','Failed\x20in\x20pre-check!\x20Error:\x20','body','usage','toLowerCase','mgwur','bstackAccesskey','TLSv1_2_client_method','isTrialGridAccessible','RPkFZ','oWHoB','LuGvC','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Missing\x20required\x20arguments:\x20','desc','<UsernamePlaceholder>','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Cluster\x20`','njHtB','authHeader','pPRcf','ZpxCM','FNpIE','\x20===\x0a\x0a','hSxSo','message','unable\x20to\x20verify\x20if\x20cluster\x20`','`\x20is\x20present\x20in\x20region\x20`','JKAxC','Failure','ALqbE','fKvhV','forEach','CXuJF','help','throwHttpErrors','gkbeE','2185173ndbCyI','fMUTn','push','delay','LmIUV','Success','SSL\x20Configured','isClusterPresent','iOxTJ','130GJQKih','hAciT','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','KaDYv','ZaPsS','log/report_','Grid\x20profile\x20fetched\x20for\x20pre-check','credential-not-found','LOG','clusterRegion','DXVux','uWJws','CLOUD_PROVIDER','oyMlb','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','error','checkAccess','11865880XmLkjq','AAPPN','mbMHo','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Ewwex','exit','YAzyc','stringify','readFileSync','JwkaS','StaBx','HBzKm','nfLVl','grid\x20profile\x20flow\x20','connectionTimeout','\x20\x20Message:\x20','status','epilogue','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','cYCvI','kHXMc','debug','DdlHv','name','aWsNt','kPbpb','toolInstalledResp',']\x20status\x20:\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','drlMt','QcYqA','VcVwt','pre-check-cluster-args-not-passed','WPZnS','cloud-provider','existsSync','join','Report\x20saved\x20in\x20','ERROR','grid-profile','bUMLK','vDgWK','MlhMS','29644PuOAQW','region','response','got','options','\x20region\x20-\x20','getUTCHours','pGrwa','cloudProvider','code','/packages/cli/get-all-grid-profiles','cluster-name','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','QieAp','Browserstack','xLBfj','gridProfile','Ufstx','3|1|2|0|4','Cluster\x20details\x0a-----------------------\x0a','JeEXQ','\x20\x20Stack:\x20','Setting\x20cloud\x20provider\x20as\x20','nFxhf','mHvGG','clusterName','../../cloudproviders/utils','EPnjI','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','vUfBX','CTqtg','Cluster\x20','gRvUL','utf-8','tUJYh','filht','isCliToolInstalled','length','kuFHj','OYlaw','\x20data\x20:\x20','is\x20already\x20present','getUTCMonth','pre-check-failed','`\x20already\x20exists','INFO','QxTVv','\x20error\x20:\x20','Message:\x20','zVIxz','init','writeFileSync','JDXCL','Vqztp','error\x20stack\x20:\x20','header','GBvRB','fSDyR','JKnuz','builder','cloud-provider-not-supported','2ywfNIP','ERfvb','QWPXs','dummy-grid','accessResp','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','../../utils/webSocketUtils','YmUPL','\x20\x20Code:\x20','replace','argv','WZNyk','1337fgViHF','JpAZc','gwClx','reconnecting-websocket','RUVZG','fQysO','kMHsh','LqYEI','hNive','561622VuMnAa','owXGQ','headers','cluster-check-failed-','tHJQA','YeCkD','pre-check-grid-called','User\x20Access','sendEventToBackend','dKntM','utTBD','command','mDZvL','stack','uQUlf','dvXpe','MFvCo','.txt','type','data','KfBYf','12688ZVtfup','EsLGR','EqHhN','UEUln','DCYns','method','../../config/constants','enmhN','uMxte','Status:\x20','aXVSq'];a17_0x37b8=function(){return _0x578c90;};return a17_0x37b8();}function printResponse(_0x2f3148,_0x8d288){const _0xe5a83a=a17_0x45e102,_0x4a261f={};_0x4a261f[_0xe5a83a(0x2d9)]=_0xe5a83a(0x296),_0x4a261f[_0xe5a83a(0x2b2)]=function(_0x46737b,_0xf03f5f){return _0x46737b===_0xf03f5f;},_0x4a261f['utTBD']=_0xe5a83a(0x220);const _0x3e6e36=_0x4a261f;logger[_0xe5a83a(0x22b)]('['+_0x2f3148+']\x20status\x20:\x20'+_0x8d288[_0xe5a83a(0x27a)]+_0xe5a83a(0x2bd)+_0x8d288[_0xe5a83a(0x1fb)]+'\x20error\x20:\x20'+_0x8d288[_0xe5a83a(0x268)]),_0x8d288[_0xe5a83a(0x268)]&&(_0x3e6e36[_0xe5a83a(0x2b2)](_0x3e6e36['utTBD'],_0x3e6e36[_0xe5a83a(0x1f2)])?logger[_0xe5a83a(0x268)](_0xe5a83a(0x2cb)+_0x8d288[_0xe5a83a(0x268)][_0xe5a83a(0x1f5)]):_0xcd05c5[_0xe5a83a(0x252)](_0x3e6e36[_0xe5a83a(0x2d9)]));}async function generateReport(_0x3a5309,_0xa71d02){const _0x9b3b09=a17_0x45e102,_0x22715d={'DdlHv':function(_0x598525,_0x338be4){return _0x598525+_0x338be4;},'FVSFq':'Success','dKntM':'Failure','Ufstx':function(_0x2425ef,_0xc9a8af){return _0x2425ef||_0xc9a8af;},'CXuJF':_0x9b3b09(0x211),'WPZnS':'Error\x20Details:\x0a','mHvGG':_0x9b3b09(0x2a8),'RqkqO':function(_0x3d0704,_0xfa78d0){return _0x3d0704!=_0xfa78d0;},'RJvQX':'is\x20already\x20present','oJWYm':'will\x20be\x20created','KaDYv':function(_0x30dbcd){return _0x30dbcd();}};let _0x54d337='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x9b3b09(0x242);return _0x3a5309[_0x9b3b09(0x24b)]((_0xa353ab,_0x4c62d2)=>{const _0x517214=_0x9b3b09,{header:_0x3e3292,response:_0x45e0e0}=_0xa353ab,{status:_0xacafc6,data:_0x215b79,error:_0x454aee}=_0x45e0e0;_0x54d337+=_0x3e3292+'\x20#'+_0x22715d[_0x517214(0x280)](_0x4c62d2,0x1)+'\x0a',_0x54d337+=_0x517214(0x206)+(_0xacafc6?_0x22715d[_0x517214(0x20e)]:_0x22715d[_0x517214(0x1f1)])+'\x0a',_0x54d337+=_0x517214(0x2c5)+_0x22715d[_0x517214(0x2a6)](_0x215b79,_0x22715d[_0x517214(0x24c)])+'\x0a',_0x454aee&&(_0x54d337+=_0x22715d[_0x517214(0x28b)],_0x54d337+=_0x517214(0x279)+(_0x454aee['message']||_0x22715d[_0x517214(0x24c)])+'\x0a',_0x54d337+=_0x517214(0x2da)+(_0x454aee[_0x517214(0x29e)]||_0x22715d[_0x517214(0x24c)])+'\x0a',_0x54d337+='\x20\x20Stack:\x20'+(_0x454aee[_0x517214(0x1f5)]||_0x22715d[_0x517214(0x24c)])+'\x0a'),_0x54d337+='\x0a\x0a';}),_0x54d337+=_0x22715d[_0x9b3b09(0x2ad)],_0x22715d['RqkqO'](_0xa71d02,null)?_0x54d337+=_0x9b3b09(0x2b4)+global_registry[_0x9b3b09(0x2ae)]+'\x20'+(_0xa71d02?_0x22715d['RJvQX']:_0x22715d['oJWYm'])+'\x0a\x0a':_0x54d337+=_0x9b3b09(0x2b4)+global_registry[_0x9b3b09(0x2ae)]+_0x9b3b09(0x27c),_0x54d337+=_0x22715d[_0x9b3b09(0x25c)](getSystemMetaData),_0x54d337;};exports[a17_0x45e102(0x20b)]=async function(_0x1fa241){const _0x5ebd7b=a17_0x45e102,_0x1bf533={'FNpIE':function(_0x1ff687){return _0x1ff687();},'aWsNt':_0x5ebd7b(0x23b),'owXGQ':function(_0x1b804d,_0x35d73b,_0x417a90,_0x56b690,_0x905397,_0x2baa3c,_0xe4e76,_0x3d4d70){return _0x1b804d(_0x35d73b,_0x417a90,_0x56b690,_0x905397,_0x2baa3c,_0xe4e76,_0x3d4d70);},'LuGvC':_0x5ebd7b(0x1ee),'ZaPsS':_0x5ebd7b(0x260),'nFxhf':_0x5ebd7b(0x268),'RUVZG':function(_0x288861,_0x2021c8,_0x42a01f,_0x2b7ec2,_0x462b57,_0x599cf7,_0x46d1bf){return _0x288861(_0x2021c8,_0x42a01f,_0x2b7ec2,_0x462b57,_0x599cf7,_0x46d1bf);},'RLVnZ':_0x5ebd7b(0x23a),'dvXpe':'<PasswordPlaceholder>','kHXMc':function(_0x30556c,_0x352af2,_0x491fac){return _0x30556c(_0x352af2,_0x491fac);},'kPbpb':function(_0x1a1425,_0x25bd04,_0xda39e8){return _0x1a1425(_0x25bd04,_0xda39e8);},'pGrwa':_0x5ebd7b(0x2d5),'iOxTJ':_0x5ebd7b(0x284),'grUxl':_0x5ebd7b(0x2a7),'pPRcf':_0x5ebd7b(0x2d6),'jSsdv':_0x5ebd7b(0x233),'RFJLa':function(_0x63715b,_0x23cca1){return _0x63715b(_0x23cca1);},'LqYEI':_0x5ebd7b(0x232),'AcIKa':function(_0x5dd14b,_0x2e96e0,_0x2798b1){return _0x5dd14b(_0x2e96e0,_0x2798b1);},'tJFpN':'isTls1_2_SUPPORTED','mgwur':'Tool\x20Installed','vDgWK':_0x5ebd7b(0x1ef),'gRvUL':'Whitelisted\x20browserstack','gdqmJ':_0x5ebd7b(0x256),'DPizN':function(_0x1952f4,_0x388e82){return _0x1952f4+_0x388e82;},'eMYDD':_0x5ebd7b(0x2b6),'IAtxi':function(_0x10f1fc,_0xd245a6,_0x524380,_0x623f69,_0x554050,_0x5e148a,_0x54a0c1){return _0x10f1fc(_0xd245a6,_0x524380,_0x623f69,_0x554050,_0x5e148a,_0x54a0c1);},'GBvRB':_0x5ebd7b(0x2c0)};let _0xc9a544,_0x2d6d8c;try{global_registry['requestId']=_0x1bf533[_0x5ebd7b(0x241)](uuidv4);!fs[_0x5ebd7b(0x28d)](_0x1bf533[_0x5ebd7b(0x241)](getCredentialsPath))&&(_0x2d6d8c=_0x1bf533[_0x5ebd7b(0x282)],logger['error'](_0x2d6d8c),await _0x1bf533[_0x5ebd7b(0x1e9)](reportToGalactusAndSendToEDS,_0x1fa241,_0xc9a544,_0x2d6d8c,messageTypes[_0x5ebd7b(0x290)],_0x1bf533[_0x5ebd7b(0x236)],_0x1bf533[_0x5ebd7b(0x25d)],_0x1bf533['nFxhf']),process[_0x5ebd7b(0x26f)](0x1));_0x1bf533[_0x5ebd7b(0x2e2)](sendInstrumentationEvent,_0x1fa241,_0x1bf533[_0x5ebd7b(0x236)],messageTypes[_0x5ebd7b(0x2c2)],null,null,_0x1fa241);const _0x14c8f5=JSON['parse'](fs[_0x5ebd7b(0x272)](_0x1bf533[_0x5ebd7b(0x241)](getCredentialsPath)));global_registry['bstackUsername']=_0x14c8f5[_0x5ebd7b(0x2a3)]['username'],global_registry[_0x5ebd7b(0x231)]=_0x14c8f5[_0x5ebd7b(0x2a3)]['password'];const _0x1999dd=WS_ENDPOINT[_0x5ebd7b(0x2db)](_0x1bf533['RLVnZ'],_0x14c8f5[_0x5ebd7b(0x2a3)]['username'])[_0x5ebd7b(0x2db)](_0x1bf533[_0x5ebd7b(0x1f7)],_0x14c8f5['Browserstack']['password']),_0x5ee3b6={};_0x5ee3b6['WebSocket']=ws,_0x5ee3b6[_0x5ebd7b(0x278)]=0x36ee80,_0xc9a544=new ReconnectingWebSocket(_0x1999dd,[],_0x5ee3b6),global_registry[_0x5ebd7b(0x23e)]=_0x1bf533[_0x5ebd7b(0x27e)](getAuthHeader,global_registry[_0x5ebd7b(0x21b)],global_registry[_0x5ebd7b(0x231)]),await _0x1bf533[_0x5ebd7b(0x283)](inputValidation,_0x1fa241,_0xc9a544),logger[_0x5ebd7b(0x22b)](_0x5ebd7b(0x26d)+global_registry['cloudProvider']+_0x5ebd7b(0x29a)+global_registry['clusterRegion']);let _0xd05152=await _0x1bf533[_0x5ebd7b(0x2e2)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x5ebd7b(0x2ae)],_0x1bf533[_0x5ebd7b(0x29c)],_0xc9a544,webSocketUtils,_0x1fa241);const _0x190d53=await _0xd05152[_0x5ebd7b(0x2b9)]();_0x1bf533[_0x5ebd7b(0x283)](printResponse,_0x1bf533[_0x5ebd7b(0x258)],_0x190d53),_0xd05152=await _0xd05152[_0x5ebd7b(0x2c7)]();let _0x2e0592=![];try{_0x2e0592=await _0xd05152[_0x5ebd7b(0x257)]();}catch(_0x466325){const _0x1a0365=_0x1bf533[_0x5ebd7b(0x20c)]['split']('|');let _0x354b77=0x0;while(!![]){switch(_0x1a0365[_0x354b77++]){case'0':_0x2d6d8c+='\x0a'+JSON[_0x5ebd7b(0x271)](_0x466325[_0x5ebd7b(0x1f5)]);continue;case'1':_0x2e0592=null;continue;case'2':logger[_0x5ebd7b(0x268)](_0x2d6d8c);continue;case'3':_0x2d6d8c=_0x5ebd7b(0x245)+global_registry['clusterName']+_0x5ebd7b(0x246)+global_registry[_0x5ebd7b(0x262)]+'`\x20,error\x20:\x20'+_0x466325;continue;case'4':await _0x1bf533['owXGQ'](reportToGalactusAndSendToEDS,_0x1fa241,_0xc9a544,_0x2d6d8c,messageTypes[_0x5ebd7b(0x290)],_0x1bf533[_0x5ebd7b(0x236)],_0x5ebd7b(0x1eb)+global_registry[_0x5ebd7b(0x29d)],_0x1bf533[_0x5ebd7b(0x2ac)]);continue;}break;}}_0x2e0592&&logger['info'](_0x5ebd7b(0x23c)+global_registry['clusterName']+_0x5ebd7b(0x2c1));const _0x320cfe=await _0xd05152[_0x5ebd7b(0x269)]();_0x1bf533['kPbpb'](printResponse,_0x1bf533[_0x5ebd7b(0x23f)],_0x320cfe);const _0x4e42d7=await _0x1bf533[_0x5ebd7b(0x241)](curlRequest);_0x1bf533[_0x5ebd7b(0x283)](printResponse,_0x1bf533['jSsdv'],_0x4e42d7);const _0x1b546f=await _0x1bf533['RFJLa'](isTlsSupported,_0x1bf533[_0x5ebd7b(0x1e6)]);_0x1bf533['AcIKa'](printResponse,_0x1bf533[_0x5ebd7b(0x222)],_0x1b546f);const _0x517be6={};_0x517be6['header']=_0x1bf533[_0x5ebd7b(0x230)],_0x517be6[_0x5ebd7b(0x297)]=_0x190d53;const _0x576e2d={};_0x576e2d[_0x5ebd7b(0x2cc)]=_0x1bf533[_0x5ebd7b(0x293)],_0x576e2d['response']=_0x320cfe;const _0x276850={};_0x276850[_0x5ebd7b(0x2cc)]=_0x1bf533[_0x5ebd7b(0x2b5)],_0x276850[_0x5ebd7b(0x297)]=_0x4e42d7;const _0x1d602d={};_0x1d602d[_0x5ebd7b(0x2cc)]=_0x1bf533['gdqmJ'],_0x1d602d['response']=_0x1b546f;const _0x5d92e8=[_0x517be6,_0x576e2d,_0x276850,_0x1d602d],_0x4970e1=await _0x1bf533[_0x5ebd7b(0x283)](generateReport,_0x5d92e8,_0x2e0592),_0x2517ee=new Date(),_0x114c1f=_0x2517ee['getUTCFullYear']()+'_'+_0x1bf533['DPizN'](_0x2517ee[_0x5ebd7b(0x2bf)](),0x1)+'_'+_0x2517ee['getUTCDate']()+'_'+_0x2517ee[_0x5ebd7b(0x29b)]()+'_'+_0x2517ee['getUTCMinutes'](),_0x4452a3=_0x5ebd7b(0x25e)+_0x114c1f+_0x5ebd7b(0x1f9);fs[_0x5ebd7b(0x2c8)](_0x4452a3,_0x4970e1,_0x1bf533['eMYDD']),logger[_0x5ebd7b(0x22b)](_0x5ebd7b(0x28f)+_0x4452a3),process[_0x5ebd7b(0x26f)](0x0);}catch(_0x20b1b5){let _0x2db7ea=_0x5ebd7b(0x22c)+_0x20b1b5+'\x20';logger[_0x5ebd7b(0x268)](_0x2db7ea),_0x2db7ea+='\x0a'+JSON['stringify'](_0x20b1b5[_0x5ebd7b(0x1f5)]),logger[_0x5ebd7b(0x27f)]('stack\x20trace\x20'+_0x20b1b5[_0x5ebd7b(0x1f5)]);if(_0xc9a544){const _0x2ca7ea={};_0x2ca7ea[_0x5ebd7b(0x1fa)]=WS_EVENTS[_0x5ebd7b(0x261)],_0x2ca7ea[_0x5ebd7b(0x244)]=_0x2db7ea,webSocketUtils['sendEventToBackend'](_0xc9a544,_0x2ca7ea,_0x1bf533[_0x5ebd7b(0x2ac)],!![]);}await webSocketUtils[_0x5ebd7b(0x253)](0x7d0);const _0x574776={};_0x574776[_0x5ebd7b(0x268)]=_0x2db7ea,await _0x1bf533['IAtxi'](sendInstrumentationEvent,_0x1fa241,_0x1bf533[_0x5ebd7b(0x236)],messageTypes[_0x5ebd7b(0x290)],_0x1bf533[_0x5ebd7b(0x2cd)],_0x574776,_0x1fa241),process[_0x5ebd7b(0x26f)](0x1);}};
1
+ const a17_0x16b4ca=a17_0x209a;(function(_0x2bacc5,_0x562da0){const _0x3dcf70=a17_0x209a,_0x5ab279=_0x2bacc5();while(!![]){try{const _0x42c148=parseInt(_0x3dcf70(0x1b1))/0x1*(parseInt(_0x3dcf70(0x136))/0x2)+-parseInt(_0x3dcf70(0x1c8))/0x3+-parseInt(_0x3dcf70(0x230))/0x4*(parseInt(_0x3dcf70(0x17c))/0x5)+-parseInt(_0x3dcf70(0x1a9))/0x6*(parseInt(_0x3dcf70(0x176))/0x7)+-parseInt(_0x3dcf70(0x228))/0x8*(parseInt(_0x3dcf70(0x205))/0x9)+-parseInt(_0x3dcf70(0x150))/0xa*(parseInt(_0x3dcf70(0x153))/0xb)+parseInt(_0x3dcf70(0x186))/0xc*(parseInt(_0x3dcf70(0x17b))/0xd);if(_0x42c148===_0x562da0)break;else _0x5ab279['push'](_0x5ab279['shift']());}catch(_0x258582){_0x5ab279['push'](_0x5ab279['shift']());}}}(a17_0x4dfc,0x1b7fc));const fs=require('fs'),ws=require('ws'),got=require(a17_0x16b4ca(0x225)),{v4:uuidv4}=require(a17_0x16b4ca(0x236)),ReconnectingWebSocket=require(a17_0x16b4ca(0x148)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x16b4ca(0x231)),{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_0x16b4ca(0x211)),{getCloudProviderObjectWithOutInit}=require(a17_0x16b4ca(0x1c6)),webSocketUtils=require(a17_0x16b4ca(0x170)),{sendInstrumentationEvent}=require(a17_0x16b4ca(0x21c));exports[a17_0x16b4ca(0x202)]='grid',exports['desc']=a17_0x16b4ca(0x175),exports[a17_0x16b4ca(0x21b)]=function(_0x2b7ac4){const _0x3214ad=a17_0x16b4ca,_0x3c0ca1={};_0x3c0ca1['LFKca']=_0x3214ad(0x1bd),_0x3c0ca1[_0x3214ad(0x1f1)]=_0x3214ad(0x135),_0x3c0ca1['bZYup']=_0x3214ad(0x187),_0x3c0ca1['dgEwi']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3c0ca1['gblNT']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x3c0ca1[_0x3214ad(0x1df)]=_0x3214ad(0x13d);const _0x484adf=_0x3c0ca1,_0x1be455={};_0x1be455[_0x3214ad(0x1e6)]=_0x484adf[_0x3214ad(0x1f8)],_0x1be455[_0x3214ad(0x1d3)]=_0x484adf['iyBpP'];const _0x10c872={};_0x10c872[_0x3214ad(0x1e6)]=_0x484adf[_0x3214ad(0x16b)],_0x10c872[_0x3214ad(0x1d3)]=_0x484adf[_0x3214ad(0x1f1)];const _0xa85af8={};_0xa85af8[_0x3214ad(0x1e6)]=_0x484adf[_0x3214ad(0x160)],_0xa85af8[_0x3214ad(0x1d3)]=_0x484adf['iyBpP'];const _0x3ed338={};_0x3ed338[_0x3214ad(0x1e6)]=_0x484adf['gblNT'],_0x3ed338[_0x3214ad(0x1d3)]=_0x484adf[_0x3214ad(0x1f1)];const _0x5debe6={};return _0x5debe6[_0x3214ad(0x221)]=_0x1be455,_0x5debe6[_0x3214ad(0x1ae)]=_0x10c872,_0x5debe6['region']=_0xa85af8,_0x5debe6[_0x3214ad(0x1b8)]=_0x3ed338,_0x2b7ac4[_0x3214ad(0x22e)](HELP_HEADER_MESSAGE[_0x3214ad(0x1ff)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5debe6)['help'](_0x484adf['ZAeem'])[_0x3214ad(0x1e5)];};async function inputValidation(_0x36c17d,_0x19f6b7){const _0x3b5e3d=a17_0x16b4ca,_0x200a8a={'SHgpD':'is\x20already\x20present','ntICf':_0x3b5e3d(0x174),'jJetH':'Error\x20Details:\x0a','wnqdf':_0x3b5e3d(0x1f2),'XCmnt':_0x3b5e3d(0x221),'yDvxN':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','QErHc':_0x3b5e3d(0x20a),'AECUj':'region','WlWna':_0x3b5e3d(0x1ae),'JgJsO':function(_0x42be1b,_0x157939){return _0x42be1b+_0x157939;},'bViBg':_0x3b5e3d(0x19b),'naoZu':_0x3b5e3d(0x238),'cVteS':function(_0x27327f,_0x292f7c){return _0x27327f||_0x292f7c;},'sjLGe':function(_0x5d7e84,_0x1fe5bd){return _0x5d7e84===_0x1fe5bd;},'IvoWi':_0x3b5e3d(0x235),'wLnCK':_0x3b5e3d(0x21a),'VGWuT':function(_0x5c51b8,_0xd2624f){return _0x5c51b8!==_0xd2624f;},'mcNXL':'ITcsn','mWpSN':_0x3b5e3d(0x242),'IuQFN':function(_0x436d7d,_0x46b00b){return _0x436d7d!==_0x46b00b;},'jOGTu':_0x3b5e3d(0x15d),'iLAJq':_0x3b5e3d(0x1c0),'EmZiy':function(_0x1ad58f,_0x5346fb){return _0x1ad58f===_0x5346fb;},'sGiUM':_0x3b5e3d(0x1eb),'FxVLi':function(_0xa6cee5,_0x755dc1){return _0xa6cee5>_0x755dc1;},'TjZls':'qMMCV','dlrde':'ZKGOA','ktDcl':function(_0xf8ba61,_0x372f53,_0x4aac6f,_0x1b12a7,_0xbc8b31,_0xa38cab,_0x29aed6,_0x22b991){return _0xf8ba61(_0x372f53,_0x4aac6f,_0x1b12a7,_0xbc8b31,_0xa38cab,_0x29aed6,_0x22b991);},'ewWkz':_0x3b5e3d(0x13c),'Twrfq':'pre-check-cluster-args-not-passed','dInZC':_0x3b5e3d(0x1f0),'iTzMg':'fYJEZ','bPVVr':_0x3b5e3d(0x241),'AitkJ':_0x3b5e3d(0x20c),'Smxxp':function(_0x45f2c9,_0x3c87d8){return _0x45f2c9===_0x3c87d8;},'RqJdr':_0x3b5e3d(0x191),'FFmoA':'wjxMk','QQqfA':_0x3b5e3d(0x1af),'baKXi':_0x3b5e3d(0x1dd),'KhGrx':_0x3b5e3d(0x1a4),'eCMjo':function(_0x48ae27,_0x479cac,_0x3de73e){return _0x48ae27(_0x479cac,_0x3de73e);},'XyPqo':function(_0x5e6966,_0x5aa26f,_0xd71f0a,_0x50b2e3,_0x2db646,_0x5488b6){return _0x5e6966(_0x5aa26f,_0xd71f0a,_0x50b2e3,_0x2db646,_0x5488b6);},'xoOnx':_0x3b5e3d(0x240),'NRwRG':_0x3b5e3d(0x1b8),'XxvLx':function(_0x503c28,_0x4ed278){return _0x503c28===_0x4ed278;},'fWOkX':function(_0x5d06a8,_0x26d583){return _0x5d06a8!==_0x26d583;},'KuhfE':_0x3b5e3d(0x1e8),'pEcan':_0x3b5e3d(0x159),'ffGVq':function(_0x5084fe,_0x4fe097){return _0x5084fe(_0x4fe097);},'qcSTu':function(_0x3b70ff,_0x474054){return _0x3b70ff!==_0x474054;},'ObXjo':_0x3b5e3d(0x19f),'gSPGm':function(_0x7ef811,_0x5c41f1,_0x412835,_0x3f709d,_0x30a77b,_0x576799,_0x582bd0,_0x582705){return _0x7ef811(_0x5c41f1,_0x412835,_0x3f709d,_0x30a77b,_0x576799,_0x582bd0,_0x582705);},'uHhsm':_0x3b5e3d(0x1f5),'YzHYr':_0x3b5e3d(0x13b),'SqRHR':_0x3b5e3d(0x1be),'fxWaP':_0x3b5e3d(0x20f),'qQmRo':function(_0x120afe,_0x40b40e){return _0x120afe===_0x40b40e;},'ToEZn':_0x3b5e3d(0x1d1),'JUEQv':_0x3b5e3d(0x156),'pkLXw':function(_0x435f39,_0x19e072){return _0x435f39===_0x19e072;},'mZeZF':_0x3b5e3d(0x13f),'Tdseu':_0x3b5e3d(0x184)};let _0x1bbf53;try{if(_0x200a8a[_0x3b5e3d(0x219)](_0x200a8a[_0x3b5e3d(0x20e)],_0x200a8a[_0x3b5e3d(0x18b)]))_0x4eea34[_0x3b5e3d(0x232)]('['+_0x3b045f+_0x3b5e3d(0x245)+_0x224d08['status']+_0x3b5e3d(0x1ec)+_0x1db024[_0x3b5e3d(0x18d)]+_0x3b5e3d(0x146)+_0x47ea08[_0x3b5e3d(0x20a)]),_0x4636c4['error']&&_0x2e5775[_0x3b5e3d(0x20a)](_0x3b5e3d(0x237)+_0x4fc0de[_0x3b5e3d(0x20a)]['stack']);else{if(_0x36c17d[_0x3b5e3d(0x165)]||_0x36c17d[_0x3b5e3d(0x15c)]||_0x36c17d['region']){if(_0x200a8a['VGWuT'](_0x200a8a[_0x3b5e3d(0x197)],_0x200a8a[_0x3b5e3d(0x229)])){const _0x368840=[];!_0x36c17d[_0x3b5e3d(0x165)]&&(_0x200a8a[_0x3b5e3d(0x1e2)](_0x200a8a[_0x3b5e3d(0x154)],_0x200a8a[_0x3b5e3d(0x154)])?_0x51610c[_0x3b5e3d(0x1ca)](0x1):_0x368840['push'](_0x200a8a[_0x3b5e3d(0x178)]));;!_0x36c17d[_0x3b5e3d(0x15c)]&&(_0x200a8a['VGWuT'](_0x200a8a[_0x3b5e3d(0x16a)],_0x200a8a[_0x3b5e3d(0x16a)])?_0x572399[_0x3b5e3d(0x20a)](_0x3b5e3d(0x237)+_0x4fe4c9['error'][_0x3b5e3d(0x23d)]):_0x368840['push'](_0x200a8a[_0x3b5e3d(0x16f)]));;!_0x36c17d[_0x3b5e3d(0x1de)]&&(_0x200a8a[_0x3b5e3d(0x1db)](_0x200a8a['sGiUM'],_0x200a8a[_0x3b5e3d(0x1da)])?_0x368840[_0x3b5e3d(0x1ab)](_0x200a8a[_0x3b5e3d(0x182)]):_0x2c5ee6+=_0x3b5e3d(0x1a6)+_0x52b717['clusterName']+'\x20'+(_0x318802?_0x200a8a[_0x3b5e3d(0x1c1)]:_0x200a8a[_0x3b5e3d(0x17f)])+'\x0a\x0a');;_0x200a8a[_0x3b5e3d(0x1b4)](_0x368840[_0x3b5e3d(0x1fa)],0x0)&&(_0x200a8a[_0x3b5e3d(0x219)](_0x200a8a[_0x3b5e3d(0x142)],_0x200a8a[_0x3b5e3d(0x209)])?(_0x2ae189+=_0x200a8a[_0x3b5e3d(0x1d2)],_0x1f188e+=_0x3b5e3d(0x199)+(_0x493a41[_0x3b5e3d(0x1ce)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x34f6c1+='\x20\x20Code:\x20'+(_0x13651f['code']||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x2efd11+='\x20\x20Stack:\x20'+(_0x1fb6fb[_0x3b5e3d(0x23d)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a'):(_0x1bbf53='Missing\x20required\x20arguments:\x20'+_0x368840[_0x3b5e3d(0x1bf)](',\x20')+_0x3b5e3d(0x196),await _0x200a8a[_0x3b5e3d(0x155)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes[_0x3b5e3d(0x1c2)],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a[_0x3b5e3d(0x16e)],_0x200a8a['QErHc']),logger[_0x3b5e3d(0x20a)](_0x1bbf53),process[_0x3b5e3d(0x1ca)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3b5e3d(0x22d)](_0x36c17d[_0x3b5e3d(0x15c)][_0x3b5e3d(0x139)]())&&(_0x200a8a[_0x3b5e3d(0x1e4)](_0x200a8a['dInZC'],_0x200a8a[_0x3b5e3d(0x1c7)])?(_0x1bbf53=_0x200a8a[_0x3b5e3d(0x22b)],await _0x200a8a[_0x3b5e3d(0x155)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes[_0x3b5e3d(0x1c2)],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a[_0x3b5e3d(0x1d4)],_0x200a8a[_0x3b5e3d(0x1d0)]),logger[_0x3b5e3d(0x20a)](_0x1bbf53),!_0x36c17d[_0x3b5e3d(0x15c)]&&(_0x200a8a['Smxxp'](_0x200a8a[_0x3b5e3d(0x1b0)],_0x200a8a[_0x3b5e3d(0x1ad)])?_0x190eef['info'](_0x3b5e3d(0x212)+_0x109e86[_0x3b5e3d(0x165)]+_0x3b5e3d(0x1ed)):(logger['info'](_0x3b5e3d(0x140)+DEFAULT_CLUSTER_DETAILS[_0x3b5e3d(0x23b)]+'\x20'),_0x36c17d[_0x3b5e3d(0x15c)]=DEFAULT_CLUSTER_DETAILS[_0x3b5e3d(0x23b)]))):_0x96c7b1[_0x3b5e3d(0x1ab)](_0x200a8a[_0x3b5e3d(0x178)])),global_registry[_0x3b5e3d(0x165)]=_0x36c17d['clusterName'],global_registry['cloudProvider']=_0x36c17d[_0x3b5e3d(0x15c)],global_registry[_0x3b5e3d(0x18e)]=_0x36c17d[_0x3b5e3d(0x1de)];}else _0x589c16[_0x3b5e3d(0x20a)](_0x200a8a[_0x3b5e3d(0x1a1)]),_0x12942f[_0x3b5e3d(0x1ca)](0x1);}else{if(_0x36c17d[_0x3b5e3d(0x1f7)]){if(_0x200a8a[_0x3b5e3d(0x1db)](_0x200a8a['QQqfA'],_0x200a8a[_0x3b5e3d(0x151)])){const _0xcb3308={};_0xcb3308[_0x3b5e3d(0x1d3)]=_0x2e4ca4[_0x3b5e3d(0x1e9)],_0xcb3308[_0x3b5e3d(0x1ce)]=_0x36a259,_0xf140ed[_0x3b5e3d(0x16c)](_0x14abdc,_0xcb3308,_0x200a8a[_0x3b5e3d(0x1d0)],!![]);}else{global_registry[_0x3b5e3d(0x1f7)]=_0x36c17d[_0x3b5e3d(0x1f7)],logger[_0x3b5e3d(0x201)](_0x3b5e3d(0x157)+_0x36c17d[_0x3b5e3d(0x1f7)]);const _0x5c28c4=_0x3b5e3d(0x16d)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0xcc8da9={};_0xcc8da9[_0x3b5e3d(0x1ba)]=_0x200a8a[_0x3b5e3d(0x1a2)],_0xcc8da9[_0x3b5e3d(0x23c)]=global_registry[_0x3b5e3d(0x22c)],_0xcc8da9[_0x3b5e3d(0x19d)]=![];const _0x2a5184=_0xcc8da9,_0x3ad447=await _0x200a8a['eCMjo'](got,_0x5c28c4,_0x2a5184),_0x585939=await _0x200a8a[_0x3b5e3d(0x246)](responseValidation,_0x3ad447,_0x200a8a[_0x3b5e3d(0x1a7)],_0x200a8a[_0x3b5e3d(0x1fe)],_0x36c17d,_0x19f6b7);let _0x3b9273={};if(_0x200a8a[_0x3b5e3d(0x1c9)](_0x585939,0xc8)){if(_0x200a8a[_0x3b5e3d(0x1b7)](_0x200a8a['KuhfE'],_0x200a8a['pEcan'])){const _0x38fc8e=JSON[_0x3b5e3d(0x190)](_0x3ad447[_0x3b5e3d(0x216)]),_0x54c3f5=_0x38fc8e[_0x3b5e3d(0x188)](_0x527968=>_0x527968[_0x3b5e3d(0x1a5)]===_0x36c17d['gridProfile'])||null;_0x200a8a[_0x3b5e3d(0x185)](isUndefined,_0x54c3f5)?_0x200a8a[_0x3b5e3d(0x203)](_0x200a8a[_0x3b5e3d(0x172)],_0x200a8a[_0x3b5e3d(0x172)])?_0x36eeba[_0x3b5e3d(0x1ab)](_0x200a8a['AECUj']):(_0x1bbf53=_0x3b5e3d(0x210)+_0x36c17d[_0x3b5e3d(0x1f7)]+_0x3b5e3d(0x164),await _0x200a8a[_0x3b5e3d(0x166)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes[_0x3b5e3d(0x1c2)],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a[_0x3b5e3d(0x1d6)],_0x200a8a[_0x3b5e3d(0x1d0)]),logger['error'](_0x1bbf53),process[_0x3b5e3d(0x1ca)](0x1)):_0x200a8a[_0x3b5e3d(0x163)](_0x200a8a['YzHYr'],_0x200a8a[_0x3b5e3d(0x144)])?_0x3b9273=_0x54c3f5:_0x996dbe+=_0x3b5e3d(0x1a6)+_0x2b4fd7[_0x3b5e3d(0x165)]+_0x3b5e3d(0x244);}else _0x32ef10[_0x3b5e3d(0x1ab)](_0x200a8a[_0x3b5e3d(0x16f)]);}else{if(_0x200a8a[_0x3b5e3d(0x1c9)](_0x200a8a[_0x3b5e3d(0x21f)],_0x200a8a['SqRHR']))process[_0x3b5e3d(0x1ca)](0x1);else{const {header:_0x5077d1,response:_0x534653}=_0x24cb46,{status:_0x403c2a,data:_0x100616,error:_0x2aa451}=_0x534653;_0x4e2f2b+=_0x5077d1+'\x20#'+_0x200a8a[_0x3b5e3d(0x204)](_0x6215fe,0x1)+'\x0a',_0x27233c+=_0x3b5e3d(0x218)+(_0x403c2a?_0x200a8a[_0x3b5e3d(0x171)]:_0x200a8a[_0x3b5e3d(0x243)])+'\x0a',_0x312fa1+=_0x3b5e3d(0x177)+_0x200a8a[_0x3b5e3d(0x1f3)](_0x100616,_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x2aa451&&(_0x2d6f65+=_0x200a8a[_0x3b5e3d(0x1d2)],_0x26500b+=_0x3b5e3d(0x199)+(_0x2aa451[_0x3b5e3d(0x1ce)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a',_0x2b829d+='\x20\x20Code:\x20'+(_0x2aa451['code']||_0x200a8a['wnqdf'])+'\x0a',_0x496620+='\x20\x20Stack:\x20'+(_0x2aa451[_0x3b5e3d(0x23d)]||_0x200a8a[_0x3b5e3d(0x1dc)])+'\x0a'),_0x7540d9+='\x0a\x0a';}}const _0x518c09={};_0x518c09[_0x3b5e3d(0x1d3)]=WS_EVENTS[_0x3b5e3d(0x1e9)],_0x518c09[_0x3b5e3d(0x1ce)]=_0x200a8a['fxWaP'],webSocketUtils['sendEventToBackend'](_0x19f6b7,_0x518c09),global_registry[_0x3b5e3d(0x15c)]=_0x3b9273[_0x3b5e3d(0x15c)],global_registry[_0x3b5e3d(0x18e)]=_0x3b9273[_0x3b5e3d(0x1de)],global_registry[_0x3b5e3d(0x165)]=_0x3b9273[_0x3b5e3d(0x165)];}}else _0x200a8a[_0x3b5e3d(0x13e)](_0x200a8a[_0x3b5e3d(0x17e)],_0x200a8a['JUEQv'])?(_0x4f1dc1['info'](_0x3b5e3d(0x140)+_0x4c5919[_0x3b5e3d(0x23b)]+'\x20'),_0x1d53d9[_0x3b5e3d(0x15c)]=_0x11af10['CLOUD_PROVIDER']):(logger['error'](_0x200a8a[_0x3b5e3d(0x1a1)]),process['exit'](0x1));}}}catch(_0xdb3de2){_0x200a8a[_0x3b5e3d(0x15b)](_0x200a8a[_0x3b5e3d(0x1b5)],_0x200a8a['Tdseu'])?_0x391123=_0x184c77:(_0x1bbf53='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0xdb3de2+':\x20'+_0xdb3de2[_0x3b5e3d(0x23d)],logger[_0x3b5e3d(0x20a)](_0x1bbf53),await _0x200a8a[_0x3b5e3d(0x155)](reportToGalactusAndSendToEDS,_0x36c17d,_0x19f6b7,_0x1bbf53,messageTypes['ERROR'],_0x200a8a[_0x3b5e3d(0x13a)],_0x200a8a['AitkJ'],_0x200a8a['QErHc']),process['exit'](0x1));}}function a17_0x4dfc(){const _0x302a44=['dlrde','error','SSL\x20Configured','cloud-provider-not-supported','RRkZI','IvoWi','Grid\x20profile\x20fetched\x20for\x20pre-check','Invalid\x20input.\x20grid\x20profiles:\x20','../../config/constants','Cluster\x20`','accessResp','gIBWf','isTls1_2_SUPPORTED','body','ddvkc','Status:\x20','sjLGe','uXWWB','builder','../../utils/instrumentationUtils','TLSv1_2_client_method','KrQZY','SqRHR','getUTCDate','cluster-name','readFileSync','yYBaI','vuham','got','INFO','IuEpG','16iOANYV','mWpSN','Cluster\x20details\x0a-----------------------\x0a','bPVVr','authHeader','includes','usage','getUTCMonth','524YyAoop','../../config/logger','info','lEZhs','===\x20Precheck\x20Report\x20-\x20','aBAPy','uuid','error\x20stack\x20:\x20','Failure','delay','Error\x20Details:\x0a','CLOUD_PROVIDER','headers','stack','stbgg','`\x20is\x20present\x20in\x20region\x20`','pre-check','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','BtbvX','naoZu','\x20details\x20cannot\x20be\x20fetched\x0a\x0a',']\x20status\x20:\x20','XyPqo','log/report_','unable\x20to\x20verify\x20if\x20cluster\x20`','string','35306mlsRTu','response','WJNNB','toLowerCase','ewWkz','vLdvN','pre-check-grid-called','help','qQmRo','MpmYw','Setting\x20cloud\x20provider\x20as\x20','HKNgj','TjZls','replace','YzHYr','writeFileSync','\x20error\x20:\x20','gNAgf','reconnecting-websocket','User\x20Access','IxaWi','EVfuo','sQRaM','\x20region\x20-\x20','fNqke','PyICi','219780UUzuQb','baKXi','.txt','110QmjONd','jOGTu','ktDcl','QUtZW','grid\x20profile\x20flow\x20','ofZSl','FVQVV','2|3|1|0|4','pkLXw','cloudProvider','Cnhwf','bstackUsername','iQaFe','dgEwi','<PasswordPlaceholder>','stringify','Smxxp','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','clusterName','gSPGm','connectionTimeout','init','Browserstack','iLAJq','bZYup','sendEventToBackend','https://','Twrfq','WlWna','../../utils/webSocketUtils','bViBg','ObXjo','status','will\x20be\x20created','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','915033TmYcbO','Message:\x20','XCmnt','EBfUk','Whitelisted\x20browserstack','15509BuksKn','655pqmFTh','OhmIX','ToEZn','ntICf','isTrialGridAccessible','ckqgy','AECUj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cSIzb','ffGVq','5604EvHuiE','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','find','FZfIN','getUTCMinutes','wLnCK','FoHZN','data','clusterRegion','sIPdb','parse','sMuxq','cJDgS','VRuwY','kvAng','password','.\x20Please\x20provide\x20all\x20required\x20arguments.','mcNXL','UkbRD','\x20\x20Message:\x20','DndDf','Success','split','throwHttpErrors','epilogue','XeHPC','nKhBb','yDvxN','KhGrx','toolInstalledResp','GET','name','Cluster\x20','xoOnx','getUTCHours','6pDAUQa','jDCtr','push','azOSU','FFmoA','cloud-provider','cOfDi','RqJdr','11SvNxVp','EtnlU','`\x20,error\x20:\x20','FxVLi','mZeZF','header','fWOkX','grid-profile','dummy-grid','method','code','FrNHK','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rAaTq','join','tofyY','SHgpD','ERROR','forEach','username','stack\x20trace\x20','../../cloudproviders/utils','iTzMg','533976fAchtc','XxvLx','exit','\x20===\x0a\x0a','utf-8','pre-check-failed','message','<UsernamePlaceholder>','QErHc','fLPvE','jJetH','type','AitkJ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','uHhsm','PfnwZ','isCliToolInstalled','Report\x20saved\x20in\x20','sGiUM','EmZiy','wnqdf','GqlwG','region','ZAeem','is\x20already\x20present','\x20\x20Code:\x20','IuQFN','handler','VGWuT','argv','description','options','DLadf','LOG','eyacW','CddBR','\x20data\x20:\x20','`\x20already\x20exists','gcibH','lSjLD','JDWmY','iyBpP','N/A','cVteS','vIzgW','pre-check-grid-profile-empty','\x20\x20Stack:\x20','gridProfile','LFKca','Vvrre','length','bstackAccesskey','requestId','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','NRwRG','pre_check','qNmCT','debug','command','qcSTu','JgJsO','418617qsevzW','Tool\x20Installed','FLMbi','EMRcH'];a17_0x4dfc=function(){return _0x302a44;};return a17_0x4dfc();}function printResponse(_0x40dbe8,_0x137c7c){const _0xc0a5d5=a17_0x16b4ca,_0x241469={};_0x241469['ofZSl']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x241469[_0xc0a5d5(0x194)]=_0xc0a5d5(0x135),_0x241469[_0xc0a5d5(0x224)]=_0xc0a5d5(0x187),_0x241469[_0xc0a5d5(0x1ac)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x241469[_0xc0a5d5(0x19a)]=_0xc0a5d5(0x1fd),_0x241469['lEZhs']=_0xc0a5d5(0x13d),_0x241469[_0xc0a5d5(0x1f4)]=function(_0x2b528a,_0x28c3b7){return _0x2b528a===_0x28c3b7;},_0x241469[_0xc0a5d5(0x138)]=_0xc0a5d5(0x147),_0x241469['gIBWf']=_0xc0a5d5(0x207);const _0x5d0635=_0x241469;logger[_0xc0a5d5(0x232)]('['+_0x40dbe8+_0xc0a5d5(0x245)+_0x137c7c[_0xc0a5d5(0x173)]+_0xc0a5d5(0x1ec)+_0x137c7c[_0xc0a5d5(0x18d)]+_0xc0a5d5(0x146)+_0x137c7c[_0xc0a5d5(0x20a)]);if(_0x137c7c[_0xc0a5d5(0x20a)]){if(_0x5d0635[_0xc0a5d5(0x1f4)](_0x5d0635[_0xc0a5d5(0x138)],_0x5d0635[_0xc0a5d5(0x214)])){const _0x1a44cc={};_0x1a44cc[_0xc0a5d5(0x1e6)]=_0x5d0635[_0xc0a5d5(0x158)],_0x1a44cc['type']=_0x5d0635[_0xc0a5d5(0x194)];const _0x4dad35={};_0x4dad35[_0xc0a5d5(0x1e6)]=_0x5d0635[_0xc0a5d5(0x224)],_0x4dad35[_0xc0a5d5(0x1d3)]=_0x5d0635[_0xc0a5d5(0x194)];const _0x4c55ab={};_0x4c55ab[_0xc0a5d5(0x1e6)]=_0x5d0635['azOSU'],_0x4c55ab['type']=_0x5d0635[_0xc0a5d5(0x194)];const _0xf062a4={};_0xf062a4[_0xc0a5d5(0x1e6)]=_0x5d0635['DndDf'],_0xf062a4['type']=_0x5d0635[_0xc0a5d5(0x194)];const _0x2c6eb9={};return _0x2c6eb9[_0xc0a5d5(0x221)]=_0x1a44cc,_0x2c6eb9[_0xc0a5d5(0x1ae)]=_0x4dad35,_0x2c6eb9['region']=_0x4c55ab,_0x2c6eb9[_0xc0a5d5(0x1b8)]=_0xf062a4,_0x132c3f[_0xc0a5d5(0x22e)](_0x99e899[_0xc0a5d5(0x1ff)])[_0xc0a5d5(0x19e)](_0x188b6f)[_0xc0a5d5(0x1e7)](_0x2c6eb9)[_0xc0a5d5(0x13d)](_0x5d0635[_0xc0a5d5(0x233)])[_0xc0a5d5(0x1e5)];}else logger['error']('error\x20stack\x20:\x20'+_0x137c7c[_0xc0a5d5(0x20a)]['stack']);}}async function generateReport(_0x2affb3,_0x4b1072){const _0x5da325=a17_0x16b4ca,_0x1ebdc1={'iQaFe':function(_0x1e8e7c,_0x8bf801){return _0x1e8e7c+_0x8bf801;},'EtnlU':_0x5da325(0x19b),'nKhBb':_0x5da325(0x238),'EMRcH':function(_0x200f92,_0x5a38d2){return _0x200f92||_0x5a38d2;},'jDCtr':_0x5da325(0x1f2),'lSjLD':_0x5da325(0x23a),'JMBAg':_0x5da325(0x22a),'sQRaM':function(_0x1ea863,_0x85d183){return _0x1ea863!=_0x85d183;},'EVfuo':_0x5da325(0x1e0),'PfnwZ':_0x5da325(0x174),'UkbRD':function(_0x29d1a2){return _0x29d1a2();}};let _0x549808=_0x5da325(0x234)+global_registry[_0x5da325(0x15c)]+_0x5da325(0x1cb);return _0x2affb3[_0x5da325(0x1c3)]((_0x2cb685,_0x1e7c69)=>{const _0x307a11=_0x5da325,{header:_0x3ef90d,response:_0x1cb38d}=_0x2cb685,{status:_0x2e67fa,data:_0x35c01e,error:_0xc36b31}=_0x1cb38d;_0x549808+=_0x3ef90d+'\x20#'+_0x1ebdc1[_0x307a11(0x15f)](_0x1e7c69,0x1)+'\x0a',_0x549808+=_0x307a11(0x218)+(_0x2e67fa?_0x1ebdc1[_0x307a11(0x1b2)]:_0x1ebdc1[_0x307a11(0x1a0)])+'\x0a',_0x549808+=_0x307a11(0x177)+_0x1ebdc1[_0x307a11(0x208)](_0x35c01e,_0x1ebdc1[_0x307a11(0x1aa)])+'\x0a',_0xc36b31&&(_0x549808+=_0x1ebdc1[_0x307a11(0x1ef)],_0x549808+=_0x307a11(0x199)+(_0xc36b31[_0x307a11(0x1ce)]||_0x1ebdc1[_0x307a11(0x1aa)])+'\x0a',_0x549808+=_0x307a11(0x1e1)+(_0xc36b31[_0x307a11(0x1bb)]||_0x1ebdc1['jDCtr'])+'\x0a',_0x549808+=_0x307a11(0x1f6)+(_0xc36b31[_0x307a11(0x23d)]||_0x1ebdc1[_0x307a11(0x1aa)])+'\x0a'),_0x549808+='\x0a\x0a';}),_0x549808+=_0x1ebdc1['JMBAg'],_0x1ebdc1[_0x5da325(0x14c)](_0x4b1072,null)?_0x549808+=_0x5da325(0x1a6)+global_registry[_0x5da325(0x165)]+'\x20'+(_0x4b1072?_0x1ebdc1[_0x5da325(0x14b)]:_0x1ebdc1[_0x5da325(0x1d7)])+'\x0a\x0a':_0x549808+=_0x5da325(0x1a6)+global_registry[_0x5da325(0x165)]+_0x5da325(0x244),_0x549808+=_0x1ebdc1[_0x5da325(0x198)](getSystemMetaData),_0x549808;};function a17_0x209a(_0x35d338,_0x2f1ace){const _0x4dfc79=a17_0x4dfc();return a17_0x209a=function(_0x209aee,_0x2c6073){_0x209aee=_0x209aee-0x134;let _0x2ab8de=_0x4dfc79[_0x209aee];return _0x2ab8de;},a17_0x209a(_0x35d338,_0x2f1ace);}exports[a17_0x16b4ca(0x1e3)]=async function(_0x1761a5){const _0x1c6aa2=a17_0x16b4ca,_0x51b9f8={'KrQZY':function(_0x469d5b){return _0x469d5b();},'ckqgy':function(_0x569566){return _0x569566();},'stbgg':_0x1c6aa2(0x183),'IuEpG':function(_0x4ddfc3,_0x4a68a6,_0x5a13a8,_0x10d81c,_0x3b728f,_0x4ab8bd,_0x4dcf44,_0xca8fbc){return _0x4ddfc3(_0x4a68a6,_0x5a13a8,_0x10d81c,_0x3b728f,_0x4ab8bd,_0x4dcf44,_0xca8fbc);},'FZfIN':_0x1c6aa2(0x13c),'EBfUk':'credential-not-found','Vvrre':_0x1c6aa2(0x20a),'fNqke':function(_0x444d05,_0x408400,_0x138cb1,_0x395faf,_0x4c1cd4,_0x4a3849,_0x10bce3){return _0x444d05(_0x408400,_0x138cb1,_0x395faf,_0x4c1cd4,_0x4a3849,_0x10bce3);},'IxaWi':_0x1c6aa2(0x1cf),'RRkZI':_0x1c6aa2(0x161),'cJDgS':function(_0x1e96c3,_0x24a500,_0x2f49e8){return _0x1e96c3(_0x24a500,_0x2f49e8);},'qNmCT':function(_0x23cc5d,_0x6de770,_0xff844d){return _0x23cc5d(_0x6de770,_0xff844d);},'sIPdb':_0x1c6aa2(0x1b9),'bymGw':function(_0x6a8ba2,_0x5ef6f1,_0xdf277c){return _0x6a8ba2(_0x5ef6f1,_0xdf277c);},'HKNgj':_0x1c6aa2(0x1a3),'OhmIX':_0x1c6aa2(0x15a),'xaAhP':_0x1c6aa2(0x213),'ddvkc':function(_0x4f1f66,_0x176a02,_0x5dd783){return _0x4f1f66(_0x176a02,_0x5dd783);},'PyICi':_0x1c6aa2(0x180),'yYBaI':function(_0x4317f1,_0x39f6f2){return _0x4317f1(_0x39f6f2);},'tzBxz':_0x1c6aa2(0x21d),'VRuwY':_0x1c6aa2(0x215),'FrNHK':_0x1c6aa2(0x206),'FoHZN':_0x1c6aa2(0x149),'OvoSf':_0x1c6aa2(0x17a),'EEtgz':_0x1c6aa2(0x20b),'gcibH':function(_0x5bab5d,_0x24ba2f){return _0x5bab5d+_0x24ba2f;},'eyacW':_0x1c6aa2(0x1cc),'bBmCz':function(_0x3f3d1b,_0x5a74ff,_0x3aa7b1,_0x1690da,_0x1631fb,_0x3db380,_0xcc6bfc){return _0x3f3d1b(_0x5a74ff,_0x3aa7b1,_0x1690da,_0x1631fb,_0x3db380,_0xcc6bfc);},'byaQj':_0x1c6aa2(0x1cd)};let _0x49d331,_0x7b35a5;try{global_registry[_0x1c6aa2(0x1fc)]=_0x51b9f8[_0x1c6aa2(0x21e)](uuidv4);!fs['existsSync'](_0x51b9f8[_0x1c6aa2(0x181)](getCredentialsPath))&&(_0x7b35a5=_0x51b9f8[_0x1c6aa2(0x23e)],logger[_0x1c6aa2(0x20a)](_0x7b35a5),await _0x51b9f8[_0x1c6aa2(0x227)](reportToGalactusAndSendToEDS,_0x1761a5,_0x49d331,_0x7b35a5,messageTypes['ERROR'],_0x51b9f8[_0x1c6aa2(0x189)],_0x51b9f8[_0x1c6aa2(0x179)],_0x51b9f8[_0x1c6aa2(0x1f9)]),process[_0x1c6aa2(0x1ca)](0x1));_0x51b9f8[_0x1c6aa2(0x14e)](sendInstrumentationEvent,_0x1761a5,_0x51b9f8[_0x1c6aa2(0x189)],messageTypes[_0x1c6aa2(0x226)],null,null,_0x1761a5);const _0x84b3e3=JSON[_0x1c6aa2(0x190)](fs[_0x1c6aa2(0x222)](_0x51b9f8['ckqgy'](getCredentialsPath)));global_registry[_0x1c6aa2(0x15e)]=_0x84b3e3[_0x1c6aa2(0x169)]['username'],global_registry[_0x1c6aa2(0x1fb)]=_0x84b3e3['Browserstack'][_0x1c6aa2(0x195)];const _0x3abe23=WS_ENDPOINT[_0x1c6aa2(0x143)](_0x51b9f8[_0x1c6aa2(0x14a)],_0x84b3e3[_0x1c6aa2(0x169)][_0x1c6aa2(0x1c4)])[_0x1c6aa2(0x143)](_0x51b9f8[_0x1c6aa2(0x20d)],_0x84b3e3['Browserstack'][_0x1c6aa2(0x195)]),_0x19f121={};_0x19f121['WebSocket']=ws,_0x19f121[_0x1c6aa2(0x167)]=0x36ee80,_0x49d331=new ReconnectingWebSocket(_0x3abe23,[],_0x19f121),global_registry[_0x1c6aa2(0x22c)]=_0x51b9f8[_0x1c6aa2(0x192)](getAuthHeader,global_registry[_0x1c6aa2(0x15e)],global_registry['bstackAccesskey']),await _0x51b9f8[_0x1c6aa2(0x200)](inputValidation,_0x1761a5,_0x49d331),logger[_0x1c6aa2(0x232)](_0x1c6aa2(0x1d5)+global_registry[_0x1c6aa2(0x15c)]+_0x1c6aa2(0x14d)+global_registry['clusterRegion']);let _0x89943b=await _0x51b9f8[_0x1c6aa2(0x14e)](getCloudProviderObjectWithOutInit,global_registry[_0x1c6aa2(0x15c)],global_registry[_0x1c6aa2(0x165)],_0x51b9f8[_0x1c6aa2(0x18f)],_0x49d331,webSocketUtils,_0x1761a5);const _0x5157d5=await _0x89943b[_0x1c6aa2(0x1d8)]();_0x51b9f8['bymGw'](printResponse,_0x51b9f8[_0x1c6aa2(0x141)],_0x5157d5),_0x89943b=await _0x89943b[_0x1c6aa2(0x168)]();let _0x593db8=![];try{_0x593db8=await _0x89943b['isClusterPresent']();}catch(_0x5c994c){const _0xd8f703=_0x51b9f8[_0x1c6aa2(0x17d)][_0x1c6aa2(0x19c)]('|');let _0x16211e=0x0;while(!![]){switch(_0xd8f703[_0x16211e++]){case'0':_0x7b35a5+='\x0a'+JSON[_0x1c6aa2(0x162)](_0x5c994c[_0x1c6aa2(0x23d)]);continue;case'1':logger['error'](_0x7b35a5);continue;case'2':_0x7b35a5=_0x1c6aa2(0x134)+global_registry[_0x1c6aa2(0x165)]+_0x1c6aa2(0x23f)+global_registry[_0x1c6aa2(0x18e)]+_0x1c6aa2(0x1b3)+_0x5c994c;continue;case'3':_0x593db8=null;continue;case'4':await _0x51b9f8['IuEpG'](reportToGalactusAndSendToEDS,_0x1761a5,_0x49d331,_0x7b35a5,messageTypes[_0x1c6aa2(0x1c2)],_0x51b9f8[_0x1c6aa2(0x189)],'cluster-check-failed-'+global_registry[_0x1c6aa2(0x15c)],_0x51b9f8[_0x1c6aa2(0x1f9)]);continue;}break;}}_0x593db8&&logger[_0x1c6aa2(0x232)](_0x1c6aa2(0x212)+global_registry[_0x1c6aa2(0x165)]+_0x1c6aa2(0x1ed));const _0x4e0065=await _0x89943b['checkAccess']();_0x51b9f8[_0x1c6aa2(0x192)](printResponse,_0x51b9f8['xaAhP'],_0x4e0065);const _0x4578ec=await _0x51b9f8['ckqgy'](curlRequest);_0x51b9f8[_0x1c6aa2(0x217)](printResponse,_0x51b9f8[_0x1c6aa2(0x14f)],_0x4578ec);const _0x8c8d5c=await _0x51b9f8[_0x1c6aa2(0x223)](isTlsSupported,_0x51b9f8['tzBxz']);_0x51b9f8[_0x1c6aa2(0x200)](printResponse,_0x51b9f8[_0x1c6aa2(0x193)],_0x8c8d5c);const _0x293aac={};_0x293aac[_0x1c6aa2(0x1b6)]=_0x51b9f8[_0x1c6aa2(0x1bc)],_0x293aac[_0x1c6aa2(0x137)]=_0x5157d5;const _0xb7a8b2={};_0xb7a8b2[_0x1c6aa2(0x1b6)]=_0x51b9f8[_0x1c6aa2(0x18c)],_0xb7a8b2[_0x1c6aa2(0x137)]=_0x4e0065;const _0x961a07={};_0x961a07[_0x1c6aa2(0x1b6)]=_0x51b9f8['OvoSf'],_0x961a07[_0x1c6aa2(0x137)]=_0x4578ec;const _0x20a986={};_0x20a986[_0x1c6aa2(0x1b6)]=_0x51b9f8['EEtgz'],_0x20a986['response']=_0x8c8d5c;const _0x1f8510=[_0x293aac,_0xb7a8b2,_0x961a07,_0x20a986],_0x41b7bc=await _0x51b9f8['qNmCT'](generateReport,_0x1f8510,_0x593db8),_0x5d3f7e=new Date(),_0x39441b=_0x5d3f7e['getUTCFullYear']()+'_'+_0x51b9f8[_0x1c6aa2(0x1ee)](_0x5d3f7e[_0x1c6aa2(0x22f)](),0x1)+'_'+_0x5d3f7e[_0x1c6aa2(0x220)]()+'_'+_0x5d3f7e[_0x1c6aa2(0x1a8)]()+'_'+_0x5d3f7e[_0x1c6aa2(0x18a)](),_0x4cb94e=_0x1c6aa2(0x247)+_0x39441b+_0x1c6aa2(0x152);fs[_0x1c6aa2(0x145)](_0x4cb94e,_0x41b7bc,_0x51b9f8[_0x1c6aa2(0x1ea)]),logger[_0x1c6aa2(0x232)](_0x1c6aa2(0x1d9)+_0x4cb94e),process[_0x1c6aa2(0x1ca)](0x0);}catch(_0x19b1d6){let _0x1b6f6a='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x19b1d6+'\x20';logger['error'](_0x1b6f6a),_0x1b6f6a+='\x0a'+JSON[_0x1c6aa2(0x162)](_0x19b1d6[_0x1c6aa2(0x23d)]),logger[_0x1c6aa2(0x201)](_0x1c6aa2(0x1c5)+_0x19b1d6['stack']);if(_0x49d331){const _0x3360f8={};_0x3360f8[_0x1c6aa2(0x1d3)]=WS_EVENTS[_0x1c6aa2(0x1e9)],_0x3360f8['message']=_0x1b6f6a,webSocketUtils['sendEventToBackend'](_0x49d331,_0x3360f8,_0x51b9f8['Vvrre'],!![]);}await webSocketUtils[_0x1c6aa2(0x239)](0x7d0);const _0x2cf342={};_0x2cf342[_0x1c6aa2(0x20a)]=_0x1b6f6a,await _0x51b9f8['bBmCz'](sendInstrumentationEvent,_0x1761a5,_0x51b9f8[_0x1c6aa2(0x189)],messageTypes[_0x1c6aa2(0x1c2)],_0x51b9f8['byaQj'],_0x2cf342,_0x1761a5),process[_0x1c6aa2(0x1ca)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x757a40=a18_0x4c4e;function a18_0x3c15(){const _0x428aa4=['nTWGq','Start\x20an\x20existing\x20Automation\x20grid.','../config/constants','strict','6hRmxOY','11291gSaZnl','desc','5391220zAKFjO','recommendCommands','start_commands','command','1688cvrTuX','2778465mhzuey','12885257zsGYAZ','117oXUeYy','1982136ndvIhU','commandDir','help','handler','qTOcW','852981kXxghD','usage','1211pEIcek','start','24yFXdXe','9NxmHhq','2022hfqQgr'];a18_0x3c15=function(){return _0x428aa4;};return a18_0x3c15();}(function(_0xa7ec47,_0x261b68){const _0x2fb88e=a18_0x4c4e,_0x4a7842=_0xa7ec47();while(!![]){try{const _0x32a574=parseInt(_0x2fb88e(0xa5))/0x1*(-parseInt(_0x2fb88e(0xa9))/0x2)+parseInt(_0x2fb88e(0xa3))/0x3*(parseInt(_0x2fb88e(0xa7))/0x4)+-parseInt(_0x2fb88e(0x9b))/0x5*(-parseInt(_0x2fb88e(0xae))/0x6)+parseInt(_0x2fb88e(0x94))/0x7*(-parseInt(_0x2fb88e(0x9a))/0x8)+-parseInt(_0x2fb88e(0xa8))/0x9*(-parseInt(_0x2fb88e(0x96))/0xa)+parseInt(_0x2fb88e(0x9c))/0xb+parseInt(_0x2fb88e(0x9e))/0xc*(-parseInt(_0x2fb88e(0x9d))/0xd);if(_0x32a574===_0x261b68)break;else _0x4a7842['push'](_0x4a7842['shift']());}catch(_0x3cad17){_0x4a7842['push'](_0x4a7842['shift']());}}}(a18_0x3c15,0xe0d42));function a18_0x4c4e(_0x24e760,_0x341618){const _0x3c15b9=a18_0x3c15();return a18_0x4c4e=function(_0x4c4eb2,_0x1a1a53){_0x4c4eb2=_0x4c4eb2-0x94;let _0x29cc60=_0x3c15b9[_0x4c4eb2];return _0x29cc60;},a18_0x4c4e(_0x24e760,_0x341618);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x757a40(0xac));exports[a18_0x757a40(0x99)]=a18_0x757a40(0xa6),exports[a18_0x757a40(0x95)]=a18_0x757a40(0xab),exports['builder']=function(_0x4a79ad){const _0x4fe9eb=a18_0x757a40,_0x3f7e1b={};_0x3f7e1b[_0x4fe9eb(0xaa)]=_0x4fe9eb(0x98),_0x3f7e1b[_0x4fe9eb(0xa2)]='help';const _0x3d7b8b=_0x3f7e1b;return _0x4a79ad[_0x4fe9eb(0xa4)](HELP_HEADER_MESSAGE[_0x4fe9eb(0xa6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4fe9eb(0x9f)](_0x3d7b8b[_0x4fe9eb(0xaa)])['demandCommand']()[_0x4fe9eb(0x97)]()[_0x4fe9eb(0xad)]()[_0x4fe9eb(0xa0)](_0x3d7b8b[_0x4fe9eb(0xa2)]);},exports[a18_0x757a40(0xa1)]=function(_0x2b2f7e){};
1
+ function a18_0x1bd4(){const _0x87dcbd=['120582vRcorT','start_commands','82926LTOdKb','1486785EeyHiv','demandCommand','start','578448ZfsEjN','handler','4QVJEHx','commandDir','builder','recommendCommands','84eFMpAU','help','203007fhlTrG','command','usage','KyfNW','sWRUb','epilogue','Start\x20an\x20existing\x20Automation\x20grid.','191345AcKgNE','816608quZpAV'];a18_0x1bd4=function(){return _0x87dcbd;};return a18_0x1bd4();}const a18_0x5a899a=a18_0x1224;(function(_0x37c9ae,_0x563651){const _0x177ff2=a18_0x1224,_0x263b81=_0x37c9ae();while(!![]){try{const _0x108089=parseInt(_0x177ff2(0x1b3))/0x1+parseInt(_0x177ff2(0x1b5))/0x2+-parseInt(_0x177ff2(0x1c3))/0x3+-parseInt(_0x177ff2(0x1bd))/0x4*(parseInt(_0x177ff2(0x1b8))/0x5)+-parseInt(_0x177ff2(0x1b7))/0x6*(-parseInt(_0x177ff2(0x1c1))/0x7)+parseInt(_0x177ff2(0x1b4))/0x8+parseInt(_0x177ff2(0x1bb))/0x9;if(_0x108089===_0x563651)break;else _0x263b81['push'](_0x263b81['shift']());}catch(_0x269235){_0x263b81['push'](_0x263b81['shift']());}}}(a18_0x1bd4,0x356ba));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x1224(_0x31d5c3,_0x1a96f2){const _0x1bd4a2=a18_0x1bd4();return a18_0x1224=function(_0x12242e,_0xaa9dd3){_0x12242e=_0x12242e-0x1af;let _0x30ef51=_0x1bd4a2[_0x12242e];return _0x30ef51;},a18_0x1224(_0x31d5c3,_0x1a96f2);}exports[a18_0x5a899a(0x1c4)]='start',exports['desc']=a18_0x5a899a(0x1b2),exports[a18_0x5a899a(0x1bf)]=function(_0x3150ff){const _0x2fa3cd=a18_0x5a899a,_0x4b1943={};_0x4b1943['sWRUb']=_0x2fa3cd(0x1b6),_0x4b1943[_0x2fa3cd(0x1af)]=_0x2fa3cd(0x1c2);const _0x4565a5=_0x4b1943;return _0x3150ff[_0x2fa3cd(0x1c5)](HELP_HEADER_MESSAGE[_0x2fa3cd(0x1ba)])[_0x2fa3cd(0x1b1)](HELP_FOOTER_MESSAGE)[_0x2fa3cd(0x1be)](_0x4565a5[_0x2fa3cd(0x1b0)])[_0x2fa3cd(0x1b9)]()[_0x2fa3cd(0x1c0)]()['strict']()[_0x2fa3cd(0x1c2)](_0x4565a5['KyfNW']);},exports[a18_0x5a899a(0x1bc)]=function(_0x6f61d4){};
@@ -1 +1 @@
1
- const a19_0x47fdab=a19_0x1e1a;(function(_0x51a569,_0x27b1ca){const _0x218b58=a19_0x1e1a,_0x4a315d=_0x51a569();while(!![]){try{const _0x3be763=parseInt(_0x218b58(0x172))/0x1*(-parseInt(_0x218b58(0x14e))/0x2)+parseInt(_0x218b58(0x162))/0x3+-parseInt(_0x218b58(0x16b))/0x4*(-parseInt(_0x218b58(0x14f))/0x5)+parseInt(_0x218b58(0x163))/0x6*(parseInt(_0x218b58(0x177))/0x7)+parseInt(_0x218b58(0x16f))/0x8*(parseInt(_0x218b58(0x16d))/0x9)+-parseInt(_0x218b58(0x158))/0xa+-parseInt(_0x218b58(0x198))/0xb*(parseInt(_0x218b58(0x165))/0xc);if(_0x3be763===_0x27b1ca)break;else _0x4a315d['push'](_0x4a315d['shift']());}catch(_0x3ffc61){_0x4a315d['push'](_0x4a315d['shift']());}}}(a19_0x3faa,0x7dfc5));function a19_0x1e1a(_0x45c499,_0x203309){const _0x3faabb=a19_0x3faa();return a19_0x1e1a=function(_0x1e1a3e,_0x10e191){_0x1e1a3e=_0x1e1a3e-0x144;let _0x1c7375=_0x3faabb[_0x1e1a3e];return _0x1c7375;},a19_0x1e1a(_0x45c499,_0x203309);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x47fdab(0x19d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x47fdab(0x17e)),{logger}=require(a19_0x47fdab(0x181)),{getCredentialsPath,getGridDetails}=require(a19_0x47fdab(0x186)),{scaleUpHubDeployment}=require(a19_0x47fdab(0x14a)),{sendInstrumentationEvent}=require(a19_0x47fdab(0x196)),webSocketUtils=require(a19_0x47fdab(0x189)),{createK8sClient}=require(a19_0x47fdab(0x1a1)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x3faa(){const _0x32e06b=['user','gReSR','Start\x20an\x20existing\x20Automation\x20grid.','body','7SPnPpv','parse','DBrZn','Skip\x20insecure\x20cert\x20verification.','name','description','statusCode','../../config/constants','INFO','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../config/logger','grid-id','Browserstack','server-error','desc','../../utils/utilityMethods','exit','boolean','../../utils/webSocketUtils','clusterName','Adding\x20Websocket\x20listeners','KXSLW','Starting\x20grid\x20','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','start','region','Xhcud','xIcJf','stack','../../utils/instrumentationUtils','lorXF','44kUQsYn','meyyY','mgtmI','<PasswordPlaceholder>','Grid\x20started','reconnecting-websocket','WebSocket','addListeners','bstackAccesskey','../../utils/createk8sClient','connectionTimeout','username','ERROR','help','OrZRw','skipTlsCertVerify','EPExE','../../utils/gridComponents','debug','readFileSync','error','19532QAAOri','5bwwQIq','vfnig','BxZIw','dPApN','init-not-called','argv','AZlzJ','leGMK','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','2096300RwetCp','stringify','cloudProvider','wZbag','HxnXA','password','rLReW','grid','YevDa','type','27579AFVHFE','3056286bywSSA','lAdzu','969756xIVQrQ','NLlbX','gridId','start-grid-called','GhXbI','clusterRegion','318460xCWfvc','mfqqL','1850256uTRLGa','string','24PHsVNk','bstackUsername','replace','17OPijko'];a19_0x3faa=function(){return _0x32e06b;};return a19_0x3faa();}exports['command']=a19_0x47fdab(0x15f),exports[a19_0x47fdab(0x185)]=a19_0x47fdab(0x175),exports['builder']=function(_0x53f251){const _0x61173e=a19_0x47fdab,_0x58fa85={};_0x58fa85[_0x61173e(0x179)]=_0x61173e(0x180),_0x58fa85[_0x61173e(0x193)]=_0x61173e(0x16e),_0x58fa85[_0x61173e(0x197)]=_0x61173e(0x17a),_0x58fa85['GhXbI']=_0x61173e(0x188),_0x58fa85[_0x61173e(0x149)]=_0x61173e(0x146);const _0xd1452d=_0x58fa85,_0x26da3f={};_0x26da3f[_0x61173e(0x17c)]=_0xd1452d[_0x61173e(0x179)],_0x26da3f[_0x61173e(0x161)]=_0xd1452d['Xhcud'];const _0x35d7bb={};_0x35d7bb['description']=_0xd1452d['lorXF'],_0x35d7bb[_0x61173e(0x161)]=_0xd1452d[_0x61173e(0x169)],_0x35d7bb['default']=![];const _0x4d6474={};return _0x4d6474[_0x61173e(0x182)]=_0x26da3f,_0x4d6474['skip-tls-cert-verify']=_0x35d7bb,_0x53f251['usage'](HELP_HEADER_MESSAGE[_0x61173e(0x191)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4d6474)['help'](_0xd1452d[_0x61173e(0x149)])[_0x61173e(0x154)];},exports['handler']=async function(_0x1b25ad){const _0x14639a=a19_0x47fdab,_0xd17f5={'OeqQz':_0x14639a(0x18e),'NLlbX':function(_0x19fe95){return _0x19fe95();},'BxZIw':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vfnig':function(_0x36e7c0,_0x2344d3,_0x3c1115,_0x4ef87d,_0x70de60,_0x400a49,_0x3c86d4){return _0x36e7c0(_0x2344d3,_0x3c1115,_0x4ef87d,_0x70de60,_0x400a49,_0x3c86d4);},'wZbag':_0x14639a(0x168),'gReSR':_0x14639a(0x153),'mgtmI':function(_0x32f640,_0x4ee9a8,_0x3dc979,_0x390305,_0x415977,_0x575d14,_0x164b8f){return _0x32f640(_0x4ee9a8,_0x3dc979,_0x390305,_0x415977,_0x575d14,_0x164b8f);},'mfqqL':'<UsernamePlaceholder>','leGMK':_0x14639a(0x19b),'AZlzJ':_0x14639a(0x18b),'dPApN':function(_0x168992,_0x4c1c0a,_0x3103ce,_0x451eaa){return _0x168992(_0x4c1c0a,_0x3103ce,_0x451eaa);},'KXSLW':function(_0x596d8a,_0x521abf,_0x57781c,_0x5416b1,_0x7b01cb,_0x361ea0,_0x47aa2c){return _0x596d8a(_0x521abf,_0x57781c,_0x5416b1,_0x7b01cb,_0x361ea0,_0x47aa2c);},'YevDa':function(_0x3a3661,_0x172af7,_0x4e7505){return _0x3a3661(_0x172af7,_0x4e7505);},'xIcJf':_0x14639a(0x19c),'OrZRw':function(_0x5383fa,_0x55ad05){return _0x5383fa===_0x55ad05;},'HxnXA':_0x14639a(0x18f),'meyyY':'unauthorised','sFZdx':function(_0x199da1,_0x5d61d9,_0x5a7ce8,_0x4921af,_0x2685f8,_0x12c153,_0x254e65){return _0x199da1(_0x5d61d9,_0x5a7ce8,_0x4921af,_0x2685f8,_0x12c153,_0x254e65);},'lAdzu':'invalid-grid-id','rLReW':_0x14639a(0x184)};let _0x28e925;try{!_0x1b25ad[_0x14639a(0x167)]&&(logger[_0x14639a(0x14d)](_0xd17f5['OeqQz']),process[_0x14639a(0x187)](0x1));!fs['existsSync'](_0xd17f5[_0x14639a(0x166)](getCredentialsPath))&&(logger[_0x14639a(0x14d)](_0xd17f5[_0x14639a(0x151)]),await _0xd17f5[_0x14639a(0x150)](sendInstrumentationEvent,_0x1b25ad,_0xd17f5[_0x14639a(0x15b)],messageTypes[_0x14639a(0x145)],_0xd17f5[_0x14639a(0x174)],null,_0x1b25ad),process['exit'](0x1));logger[_0x14639a(0x190)](_0x14639a(0x18d)+_0x1b25ad[_0x14639a(0x167)]),await _0xd17f5[_0x14639a(0x19a)](sendInstrumentationEvent,_0x1b25ad,_0xd17f5[_0x14639a(0x15b)],messageTypes[_0x14639a(0x17f)],null,null,_0x1b25ad);const _0x7d6c51=JSON[_0x14639a(0x178)](fs[_0x14639a(0x14c)](_0xd17f5[_0x14639a(0x166)](getCredentialsPath)));global_registry[_0x14639a(0x170)]=_0x7d6c51[_0x14639a(0x183)][_0x14639a(0x144)],global_registry[_0x14639a(0x1a0)]=_0x7d6c51['Browserstack'][_0x14639a(0x15d)];const _0x33c647=WS_ENDPOINT['replace'](_0xd17f5[_0x14639a(0x16c)],_0x7d6c51[_0x14639a(0x183)][_0x14639a(0x144)])[_0x14639a(0x171)](_0xd17f5[_0x14639a(0x156)],_0x7d6c51[_0x14639a(0x183)][_0x14639a(0x15d)]),_0x1cba4a={};_0x1cba4a[_0x14639a(0x19e)]=ws,_0x1cba4a[_0x14639a(0x1a2)]=0x36ee80,_0x28e925=new ReconnectingWebSocket(_0x33c647,[],_0x1cba4a),logger[_0x14639a(0x14b)](_0xd17f5[_0x14639a(0x155)]),webSocketUtils[_0x14639a(0x19f)](_0x28e925,_0x1b25ad[_0x14639a(0x173)],_0x1b25ad[_0x14639a(0x15d)]);const [_0x4fb81d,_0x4b69b4]=await _0xd17f5[_0x14639a(0x152)](getGridDetails,_0x7d6c51[_0x14639a(0x183)][_0x14639a(0x144)],_0x7d6c51[_0x14639a(0x183)]['password'],_0x1b25ad[_0x14639a(0x167)]);if(_0x4b69b4){const _0x20e14c=_0x4b69b4[_0x14639a(0x190)];global_registry['cloudProvider']=_0x20e14c[_0x14639a(0x15a)],global_registry[_0x14639a(0x16a)]=_0x20e14c[_0x14639a(0x192)],global_registry[_0x14639a(0x18a)]=_0x20e14c[_0x14639a(0x18a)];const _0x47d2e9=await _0xd17f5['KXSLW'](getCloudProviderObject,_0x20e14c['cloudProvider'],_0x20e14c['clusterName'],_0x20e14c[_0x14639a(0x17b)],_0x28e925,webSocketUtils,_0x1b25ad),[_0x58e215,_0x54a786,_0x20d12f,_0x19b759,_0x269052,_0x2621d4]=await _0xd17f5[_0x14639a(0x160)](createK8sClient,_0x47d2e9,_0x1b25ad[_0x14639a(0x148)]);await _0xd17f5['YevDa'](scaleUpHubDeployment,_0x54a786,_0x20e14c[_0x14639a(0x17b)]),logger['info'](_0xd17f5[_0x14639a(0x194)]),process[_0x14639a(0x187)](0x0);}_0xd17f5['OrZRw'](_0x4fb81d[_0x14639a(0x17d)],0x191)&&(logger[_0x14639a(0x14d)](_0xd17f5[_0x14639a(0x15c)]),await _0xd17f5[_0x14639a(0x18c)](sendInstrumentationEvent,_0x1b25ad,_0xd17f5['wZbag'],messageTypes[_0x14639a(0x145)],_0xd17f5[_0x14639a(0x199)],null,_0x1b25ad),process[_0x14639a(0x187)](0x1)),_0xd17f5[_0x14639a(0x147)](_0x4fb81d[_0x14639a(0x17d)],0x190)&&(logger[_0x14639a(0x14d)](JSON[_0x14639a(0x178)](_0x4fb81d[_0x14639a(0x176)])['message']),await _0xd17f5['sFZdx'](sendInstrumentationEvent,_0x1b25ad,_0xd17f5[_0x14639a(0x15b)],messageTypes[_0x14639a(0x145)],_0xd17f5[_0x14639a(0x164)],null,_0x1b25ad),process['exit'](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x14639a(0x159)](_0x4fb81d)),await _0xd17f5[_0x14639a(0x18c)](sendInstrumentationEvent,_0x1b25ad,_0xd17f5[_0x14639a(0x15b)],messageTypes[_0x14639a(0x145)],_0xd17f5[_0x14639a(0x15e)],_0x4fb81d,_0x1b25ad),process[_0x14639a(0x187)](0x1);}catch(_0x389e14){const _0x2b899d=_0x14639a(0x157)+_0x389e14+'\x20\x0a'+JSON[_0x14639a(0x159)](_0x389e14[_0x14639a(0x195)])+'\x20';logger[_0x14639a(0x14d)](_0x2b899d),process[_0x14639a(0x187)](0x1);}};
1
+ function a19_0x5407(){const _0x47da78=['flVtJ','<PasswordPlaceholder>','kDQYc','WRDio','string','message','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','VpAWU','4676864tkvUmr','INFO','parse','63CYZkbh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','TDEKx','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YSAQr','iOeuf','grid','type','skip-tls-cert-verify','sJjEg','grid-id','exit','gIcRh','cloudProvider','3300885HRwokr','Acqzl','description','EKBVN','OBBaV','connectionTimeout','stack','ERROR','../../utils/utilityMethods','2402028WXeYOd','../../utils/createk8sClient','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','<UsernamePlaceholder>','vZkXk','server-error','bDSaA','bstackAccesskey','Skip\x20insecure\x20cert\x20verification.','SbnrW','559720wbapwo','command','options','../../cloudproviders/utils','usage','start','1744833fsmYuZ','handler','Browserstack','epilogue','414zmBFXc','password','name','oOcIY','addListeners','619588JHoABk','Grid\x20started','Starting\x20grid\x20','stringify','boolean','user','error','QlzzK','YkQIx','MNucX','help','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gridId','Luqjt','RcMZL','start-grid-called','username','xLhfL','builder','clusterName','body','bstackUsername','existsSync','WebSocket','info','statusCode','replace'];a19_0x5407=function(){return _0x47da78;};return a19_0x5407();}const a19_0x5037bb=a19_0x473c;(function(_0x25146c,_0x55580c){const _0x400fd0=a19_0x473c,_0x4195fa=_0x25146c();while(!![]){try{const _0x2c83b8=-parseInt(_0x400fd0(0x13f))/0x1*(-parseInt(_0x400fd0(0x16a))/0x2)+parseInt(_0x400fd0(0x166))/0x3+parseInt(_0x400fd0(0x16f))/0x4+parseInt(_0x400fd0(0x160))/0x5+-parseInt(_0x400fd0(0x156))/0x6+-parseInt(_0x400fd0(0x14d))/0x7+parseInt(_0x400fd0(0x13c))/0x8;if(_0x2c83b8===_0x55580c)break;else _0x4195fa['push'](_0x4195fa['shift']());}catch(_0xb1c4bc){_0x4195fa['push'](_0x4195fa['shift']());}}}(a19_0x5407,0x8c300));function a19_0x473c(_0x2c2596,_0x582df4){const _0x540721=a19_0x5407();return a19_0x473c=function(_0x473c89,_0x534e3f){_0x473c89=_0x473c89-0x128;let _0x4e71a3=_0x540721[_0x473c89];return _0x4e71a3;},a19_0x473c(_0x2c2596,_0x582df4);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x5037bb(0x155)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x5037bb(0x157)),{getCloudProviderObject}=require(a19_0x5037bb(0x163));exports[a19_0x5037bb(0x161)]=a19_0x5037bb(0x145),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x5037bb(0x12b)]=function(_0x417859){const _0x5666b7=a19_0x5037bb,_0x57b239={};_0x57b239['cpqvq']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x57b239[_0x5666b7(0x12a)]=_0x5666b7(0x138),_0x57b239['RcMZL']=_0x5666b7(0x15e),_0x57b239['YSAQr']=_0x5666b7(0x173),_0x57b239[_0x5666b7(0x16d)]=_0x5666b7(0x179);const _0xefbe56=_0x57b239,_0x3d8f09={};_0x3d8f09[_0x5666b7(0x14f)]=_0xefbe56['cpqvq'],_0x3d8f09['type']=_0xefbe56[_0x5666b7(0x12a)];const _0x13c2a9={};_0x13c2a9[_0x5666b7(0x14f)]=_0xefbe56[_0x5666b7(0x17d)],_0x13c2a9[_0x5666b7(0x146)]=_0xefbe56[_0x5666b7(0x143)],_0x13c2a9['default']=![];const _0xe75ae={};return _0xe75ae[_0x5666b7(0x149)]=_0x3d8f09,_0xe75ae[_0x5666b7(0x147)]=_0x13c2a9,_0x417859[_0x5666b7(0x164)](HELP_HEADER_MESSAGE[_0x5666b7(0x165)])[_0x5666b7(0x169)](HELP_FOOTER_MESSAGE)[_0x5666b7(0x162)](_0xe75ae)[_0x5666b7(0x179)](_0xefbe56[_0x5666b7(0x16d)])['argv'];},exports[a19_0x5037bb(0x167)]=async function(_0x7edd21){const _0x168ce7=a19_0x5037bb,_0x206f5a={'vZkXk':_0x168ce7(0x13a),'VpAWU':function(_0x248aa3){return _0x248aa3();},'SbnrW':_0x168ce7(0x17a),'EKBVN':function(_0xe2b91f,_0x5aeb7d,_0x32da49,_0x501091,_0x3ed777,_0xa6eeac,_0x56d90a){return _0xe2b91f(_0x5aeb7d,_0x32da49,_0x501091,_0x3ed777,_0xa6eeac,_0x56d90a);},'QlzzK':_0x168ce7(0x128),'YkQIx':'init-not-called','Luqjt':function(_0x3663fa,_0x546634,_0x93941e,_0xfcbfeb,_0x13eaa0,_0x5d9552,_0x4bb0bc){return _0x3663fa(_0x546634,_0x93941e,_0xfcbfeb,_0x13eaa0,_0x5d9552,_0x4bb0bc);},'OBBaV':function(_0x6f37be){return _0x6f37be();},'iijoe':_0x168ce7(0x159),'kDQYc':_0x168ce7(0x135),'MNucX':'Adding\x20Websocket\x20listeners','WRDio':function(_0x2ca6b8,_0x166ad5,_0x1764a5,_0x1b3dac){return _0x2ca6b8(_0x166ad5,_0x1764a5,_0x1b3dac);},'pwqWz':function(_0x1e1ec2,_0x4de697,_0x224901,_0x30e30c,_0xd96ef4,_0x2dcfa3,_0x247b53){return _0x1e1ec2(_0x4de697,_0x224901,_0x30e30c,_0xd96ef4,_0x2dcfa3,_0x247b53);},'flVtJ':function(_0x28021f,_0x21ba71,_0x48c24e){return _0x28021f(_0x21ba71,_0x48c24e);},'TDEKx':_0x168ce7(0x170),'TRsLD':function(_0x3fc069,_0x42b3d4){return _0x3fc069===_0x42b3d4;},'bDSaA':_0x168ce7(0x142),'sJjEg':function(_0x4e7e1a,_0x5f4140,_0x57be39,_0x48e888,_0x2ca0c3,_0x5858ae,_0x36e259){return _0x4e7e1a(_0x5f4140,_0x57be39,_0x48e888,_0x2ca0c3,_0x5858ae,_0x36e259);},'Rnjso':'unauthorised','gIcRh':function(_0x4a8160,_0x141f78){return _0x4a8160===_0x141f78;},'iOeuf':'invalid-grid-id','Acqzl':_0x168ce7(0x15b)};let _0xe1c036;try{!_0x7edd21[_0x168ce7(0x17b)]&&(logger[_0x168ce7(0x175)](_0x206f5a[_0x168ce7(0x15a)]),process[_0x168ce7(0x14a)](0x1));!fs[_0x168ce7(0x12f)](_0x206f5a[_0x168ce7(0x13b)](getCredentialsPath))&&(logger[_0x168ce7(0x175)](_0x206f5a[_0x168ce7(0x15f)]),await _0x206f5a[_0x168ce7(0x150)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes['ERROR'],_0x206f5a[_0x168ce7(0x177)],null,_0x7edd21),process[_0x168ce7(0x14a)](0x1));logger[_0x168ce7(0x131)](_0x168ce7(0x171)+_0x7edd21[_0x168ce7(0x17b)]),await _0x206f5a[_0x168ce7(0x17c)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes[_0x168ce7(0x13d)],null,null,_0x7edd21);const _0x7e6326=JSON[_0x168ce7(0x13e)](fs['readFileSync'](_0x206f5a[_0x168ce7(0x151)](getCredentialsPath)));global_registry[_0x168ce7(0x12e)]=_0x7e6326[_0x168ce7(0x168)]['username'],global_registry[_0x168ce7(0x15d)]=_0x7e6326['Browserstack']['password'];const _0x2b3e25=WS_ENDPOINT[_0x168ce7(0x133)](_0x206f5a['iijoe'],_0x7e6326[_0x168ce7(0x168)][_0x168ce7(0x129)])[_0x168ce7(0x133)](_0x206f5a[_0x168ce7(0x136)],_0x7e6326[_0x168ce7(0x168)]['password']),_0x15dbc7={};_0x15dbc7[_0x168ce7(0x130)]=ws,_0x15dbc7[_0x168ce7(0x152)]=0x36ee80,_0xe1c036=new ReconnectingWebSocket(_0x2b3e25,[],_0x15dbc7),logger['debug'](_0x206f5a[_0x168ce7(0x178)]),webSocketUtils[_0x168ce7(0x16e)](_0xe1c036,_0x7edd21[_0x168ce7(0x174)],_0x7edd21[_0x168ce7(0x16b)]);const [_0x1b4979,_0x1c1a90]=await _0x206f5a[_0x168ce7(0x137)](getGridDetails,_0x7e6326[_0x168ce7(0x168)]['username'],_0x7e6326['Browserstack']['password'],_0x7edd21[_0x168ce7(0x17b)]);if(_0x1c1a90){const _0x398844=_0x1c1a90[_0x168ce7(0x131)];global_registry[_0x168ce7(0x14c)]=_0x398844[_0x168ce7(0x14c)],global_registry['clusterRegion']=_0x398844['region'],global_registry['clusterName']=_0x398844[_0x168ce7(0x12c)];const _0x324225=await _0x206f5a['pwqWz'](getCloudProviderObject,_0x398844[_0x168ce7(0x14c)],_0x398844[_0x168ce7(0x12c)],_0x398844[_0x168ce7(0x16c)],_0xe1c036,webSocketUtils,_0x7edd21),[_0x2b9960,_0x23d35c,_0x1e69e1,_0x154925,_0x5e8500,_0x50eb7f]=await _0x206f5a[_0x168ce7(0x134)](createK8sClient,_0x324225,_0x7edd21['skipTlsCertVerify']);await _0x206f5a[_0x168ce7(0x134)](scaleUpHubDeployment,_0x23d35c,_0x398844[_0x168ce7(0x16c)]),logger[_0x168ce7(0x131)](_0x206f5a[_0x168ce7(0x141)]),process[_0x168ce7(0x14a)](0x0);}_0x206f5a['TRsLD'](_0x1b4979[_0x168ce7(0x132)],0x191)&&(logger['error'](_0x206f5a[_0x168ce7(0x15c)]),await _0x206f5a[_0x168ce7(0x148)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes[_0x168ce7(0x154)],_0x206f5a['Rnjso'],null,_0x7edd21),process[_0x168ce7(0x14a)](0x1)),_0x206f5a[_0x168ce7(0x14b)](_0x1b4979[_0x168ce7(0x132)],0x190)&&(logger[_0x168ce7(0x175)](JSON[_0x168ce7(0x13e)](_0x1b4979[_0x168ce7(0x12d)])[_0x168ce7(0x139)]),await _0x206f5a[_0x168ce7(0x148)](sendInstrumentationEvent,_0x7edd21,_0x206f5a[_0x168ce7(0x176)],messageTypes[_0x168ce7(0x154)],_0x206f5a[_0x168ce7(0x144)],null,_0x7edd21),process[_0x168ce7(0x14a)](0x1)),logger['error'](_0x168ce7(0x140)+JSON[_0x168ce7(0x172)](_0x1b4979)),await _0x206f5a[_0x168ce7(0x148)](sendInstrumentationEvent,_0x7edd21,_0x206f5a['QlzzK'],messageTypes[_0x168ce7(0x154)],_0x206f5a[_0x168ce7(0x14e)],_0x1b4979,_0x7edd21),process[_0x168ce7(0x14a)](0x1);}catch(_0x5393f5){const _0x40e003=_0x168ce7(0x158)+_0x5393f5+'\x20\x0a'+JSON['stringify'](_0x5393f5[_0x168ce7(0x153)])+'\x20';logger[_0x168ce7(0x175)](_0x40e003),process[_0x168ce7(0x14a)](0x1);}};
@@ -1 +1 @@
1
- function a20_0xc750(){const _0x1e5c50=['desc','builder','stop','1574hhARpg','commandDir','1511565TjgYSD','547IsVpzS','7255567dISHxh','42sDHptw','115044YsgGBl','epilogue','help','demandCommand','Stop\x20a\x20running\x20Automation\x20grid.','10KVRNkS','TOfIo','3818790AkKbdr','handler','21973GkColM','362946sdNWAL','strict','usage','stop_commands','528huyjAu'];a20_0xc750=function(){return _0x1e5c50;};return a20_0xc750();}function a20_0xa880(_0x4844b3,_0x125d6d){const _0xc75076=a20_0xc750();return a20_0xa880=function(_0xa88015,_0x200fff){_0xa88015=_0xa88015-0x8e;let _0x23c975=_0xc75076[_0xa88015];return _0x23c975;},a20_0xa880(_0x4844b3,_0x125d6d);}const a20_0x531bfd=a20_0xa880;(function(_0x846b17,_0x17b837){const _0x8d8f71=a20_0xa880,_0x517b21=_0x846b17();while(!![]){try{const _0x3cd72d=parseInt(_0x8d8f71(0x97))/0x1*(parseInt(_0x8d8f71(0x94))/0x2)+-parseInt(_0x8d8f71(0x99))/0x3*(parseInt(_0x8d8f71(0x9a))/0x4)+parseInt(_0x8d8f71(0x96))/0x5+-parseInt(_0x8d8f71(0xa4))/0x6+-parseInt(_0x8d8f71(0xa3))/0x7*(-parseInt(_0x8d8f71(0x90))/0x8)+parseInt(_0x8d8f71(0xa1))/0x9+parseInt(_0x8d8f71(0x9f))/0xa*(-parseInt(_0x8d8f71(0x98))/0xb);if(_0x3cd72d===_0x17b837)break;else _0x517b21['push'](_0x517b21['shift']());}catch(_0x453983){_0x517b21['push'](_0x517b21['shift']());}}}(a20_0xc750,0x3af88));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a20_0x531bfd(0x93),exports[a20_0x531bfd(0x91)]=a20_0x531bfd(0x9e),exports[a20_0x531bfd(0x92)]=function(_0x36b669){const _0x35ecba=a20_0x531bfd,_0x28e53f={};_0x28e53f[_0x35ecba(0xa0)]=_0x35ecba(0x8f),_0x28e53f['xlqdM']=_0x35ecba(0x9c);const _0x314e2a=_0x28e53f;return _0x36b669[_0x35ecba(0x8e)](HELP_HEADER_MESSAGE[_0x35ecba(0x93)])[_0x35ecba(0x9b)](HELP_FOOTER_MESSAGE)[_0x35ecba(0x95)](_0x314e2a['TOfIo'])[_0x35ecba(0x9d)]()['recommendCommands']()[_0x35ecba(0xa5)]()[_0x35ecba(0x9c)](_0x314e2a['xlqdM']);},exports[a20_0x531bfd(0xa2)]=function(_0xb11a17){};
1
+ const a20_0x217af2=a20_0x30e6;function a20_0x30e6(_0x3a5adc,_0x379610){const _0x3aab8e=a20_0x3aab();return a20_0x30e6=function(_0x30e674,_0x51b39b){_0x30e674=_0x30e674-0xf1;let _0x9bbde0=_0x3aab8e[_0x30e674];return _0x9bbde0;},a20_0x30e6(_0x3a5adc,_0x379610);}(function(_0x310429,_0x270c23){const _0x2da035=a20_0x30e6,_0x5548f3=_0x310429();while(!![]){try{const _0x44c242=-parseInt(_0x2da035(0x101))/0x1+parseInt(_0x2da035(0xfe))/0x2*(-parseInt(_0x2da035(0xf1))/0x3)+-parseInt(_0x2da035(0xff))/0x4+-parseInt(_0x2da035(0x109))/0x5+-parseInt(_0x2da035(0xf3))/0x6+parseInt(_0x2da035(0x105))/0x7*(parseInt(_0x2da035(0xf5))/0x8)+parseInt(_0x2da035(0xfc))/0x9*(parseInt(_0x2da035(0x104))/0xa);if(_0x44c242===_0x270c23)break;else _0x5548f3['push'](_0x5548f3['shift']());}catch(_0x58eb77){_0x5548f3['push'](_0x5548f3['shift']());}}}(a20_0x3aab,0xe33d1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x3aab(){const _0x3e61d7=['stop','handler','help','kxPIG','216Kyyknj','desc','1817016lgwHZR','4537888VEGYzl','commandDir','786989VjiKhD','stop_commands','GdTAT','2389430dvxNpw','30289uQKoGS','builder','epilogue','strict','7954690QIALqT','6VeUFnB','command','3882390hZgvJO','usage','2168aTnSVl','demandCommand','recommendCommands'];a20_0x3aab=function(){return _0x3e61d7;};return a20_0x3aab();}exports[a20_0x217af2(0xf2)]=a20_0x217af2(0xf8),exports[a20_0x217af2(0xfd)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x217af2(0x106)]=function(_0x53bc79){const _0x56ff8c=a20_0x217af2,_0x45f9dd={};_0x45f9dd[_0x56ff8c(0x103)]=_0x56ff8c(0x102),_0x45f9dd[_0x56ff8c(0xfb)]='help';const _0x2b5298=_0x45f9dd;return _0x53bc79[_0x56ff8c(0xf4)](HELP_HEADER_MESSAGE['stop'])[_0x56ff8c(0x107)](HELP_FOOTER_MESSAGE)[_0x56ff8c(0x100)](_0x2b5298[_0x56ff8c(0x103)])[_0x56ff8c(0xf6)]()[_0x56ff8c(0xf7)]()[_0x56ff8c(0x108)]()[_0x56ff8c(0xfa)](_0x2b5298[_0x56ff8c(0xfb)]);},exports[a20_0x217af2(0xf9)]=function(_0x19f144){};
@@ -1 +1 @@
1
- const a21_0x15c91d=a21_0x3ac6;function a21_0x3ac6(_0x32f3a1,_0x5ec6b8){const _0x3974cf=a21_0x3974();return a21_0x3ac6=function(_0x3ac614,_0x19d229){_0x3ac614=_0x3ac614-0xee;let _0x9f209c=_0x3974cf[_0x3ac614];return _0x9f209c;},a21_0x3ac6(_0x32f3a1,_0x5ec6b8);}(function(_0x188d45,_0x3a234b){const _0x2cc9d3=a21_0x3ac6,_0x5bf946=_0x188d45();while(!![]){try{const _0x844597=-parseInt(_0x2cc9d3(0x100))/0x1*(parseInt(_0x2cc9d3(0x118))/0x2)+parseInt(_0x2cc9d3(0x130))/0x3+parseInt(_0x2cc9d3(0x148))/0x4+parseInt(_0x2cc9d3(0x12a))/0x5*(-parseInt(_0x2cc9d3(0x112))/0x6)+parseInt(_0x2cc9d3(0xef))/0x7+parseInt(_0x2cc9d3(0x103))/0x8+parseInt(_0x2cc9d3(0x145))/0x9*(-parseInt(_0x2cc9d3(0x12f))/0xa);if(_0x844597===_0x3a234b)break;else _0x5bf946['push'](_0x5bf946['shift']());}catch(_0x99ee7d){_0x5bf946['push'](_0x5bf946['shift']());}}}(a21_0x3974,0xaa8c2));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x15c91d(0x127)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x15c91d(0x129)),{logger}=require(a21_0x15c91d(0xf6)),{getCredentialsPath,getGridDetails}=require(a21_0x15c91d(0x13c)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x15c91d(0x13f)),webSocketUtils=require(a21_0x15c91d(0x106)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x15c91d(0x14b)]=a21_0x15c91d(0xf3),exports[a21_0x15c91d(0x11e)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x5b7109){const _0x3fab05=a21_0x15c91d,_0x38c425={};_0x38c425[_0x3fab05(0xf4)]=_0x3fab05(0xee),_0x38c425['pyNNX']=_0x3fab05(0x139),_0x38c425[_0x3fab05(0x141)]=_0x3fab05(0xff),_0x38c425[_0x3fab05(0x122)]=_0x3fab05(0xfc),_0x38c425['kTCYo']='help';const _0x113e8d=_0x38c425,_0x4a18bb={};_0x4a18bb[_0x3fab05(0x115)]=_0x113e8d[_0x3fab05(0xf4)],_0x4a18bb[_0x3fab05(0xf2)]=_0x113e8d[_0x3fab05(0x128)];const _0x274e20={};_0x274e20[_0x3fab05(0x115)]=_0x113e8d[_0x3fab05(0x141)],_0x274e20['type']=_0x113e8d[_0x3fab05(0x122)],_0x274e20['default']=![];const _0x11f1a2={};return _0x11f1a2['grid-id']=_0x4a18bb,_0x11f1a2['skip-tls-cert-verify']=_0x274e20,_0x5b7109[_0x3fab05(0x11a)](HELP_HEADER_MESSAGE[_0x3fab05(0x11b)])[_0x3fab05(0x108)](HELP_FOOTER_MESSAGE)[_0x3fab05(0x124)](_0x11f1a2)[_0x3fab05(0x11d)](_0x113e8d[_0x3fab05(0x147)])[_0x3fab05(0x134)];},exports[a21_0x15c91d(0x10f)]=async function(_0x2db2f5){const _0x3bf2ca=a21_0x15c91d,_0x2972cb={'oiMWh':_0x3bf2ca(0x135),'WcbEu':function(_0x3ff542){return _0x3ff542();},'xcVsD':_0x3bf2ca(0x110),'myblZ':function(_0x47bef4,_0x6a612e,_0xdf7be5,_0x58f8d3,_0x1b6f39,_0x442c70,_0x4d436c){return _0x47bef4(_0x6a612e,_0xdf7be5,_0x58f8d3,_0x1b6f39,_0x442c70,_0x4d436c);},'PYDhQ':_0x3bf2ca(0x125),'Sodlq':_0x3bf2ca(0x104),'UVtzy':function(_0x109cc5,_0x1eb223,_0x4aed80,_0x4cd555,_0x5412a0,_0x2e728f,_0x41b52d){return _0x109cc5(_0x1eb223,_0x4aed80,_0x4cd555,_0x5412a0,_0x2e728f,_0x41b52d);},'RiPpf':function(_0x3d2b7e){return _0x3d2b7e();},'tPYsm':_0x3bf2ca(0xf7),'vXGyk':_0x3bf2ca(0x149),'XXWhj':_0x3bf2ca(0xf0),'FikIW':function(_0xca94ea,_0xc5e85f,_0x6bce98,_0x1e2d5e){return _0xca94ea(_0xc5e85f,_0x6bce98,_0x1e2d5e);},'rfFeF':function(_0x79e20d,_0x42e420,_0x203864,_0x30dfa2,_0x336059,_0x46993b,_0x4f0888){return _0x79e20d(_0x42e420,_0x203864,_0x30dfa2,_0x336059,_0x46993b,_0x4f0888);},'uTSUL':function(_0x5c1ccd,_0x4d75e1,_0x3ac04d){return _0x5c1ccd(_0x4d75e1,_0x3ac04d);},'BNjzP':function(_0x4ca223,_0x37cd76,_0x2415df){return _0x4ca223(_0x37cd76,_0x2415df);},'tsftw':_0x3bf2ca(0x10d),'gHVfp':function(_0x184f36,_0x27db2a){return _0x184f36===_0x27db2a;},'wbdyl':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hhqMC':function(_0xbaa460,_0x4c2b75,_0x1e9fbc,_0x12471e,_0x404c60,_0xc2a74c,_0x1e1bbe){return _0xbaa460(_0x4c2b75,_0x1e9fbc,_0x12471e,_0x404c60,_0xc2a74c,_0x1e1bbe);},'yNVmp':_0x3bf2ca(0x114),'tLZBH':function(_0x25aa20,_0x2da18d){return _0x25aa20===_0x2da18d;},'VGKoh':function(_0x26df72,_0x460e91,_0x4b632f,_0x531c94,_0x4031fb,_0x2a813d,_0x1b93ac){return _0x26df72(_0x460e91,_0x4b632f,_0x531c94,_0x4031fb,_0x2a813d,_0x1b93ac);},'bNMve':'invalid-grid-id','OyIAl':_0x3bf2ca(0xfe)};let _0xdd5682;try{!_0x2db2f5[_0x3bf2ca(0x123)]&&(logger[_0x3bf2ca(0x144)](_0x2972cb[_0x3bf2ca(0x119)]),process[_0x3bf2ca(0xfb)](0x1));!fs[_0x3bf2ca(0x132)](_0x2972cb[_0x3bf2ca(0x113)](getCredentialsPath))&&(logger[_0x3bf2ca(0x144)](_0x2972cb[_0x3bf2ca(0x13e)]),await _0x2972cb[_0x3bf2ca(0x117)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb[_0x3bf2ca(0x136)],messageTypes[_0x3bf2ca(0x105)],_0x2972cb['Sodlq'],null,_0x2db2f5),process[_0x3bf2ca(0xfb)](0x1));logger[_0x3bf2ca(0x121)](_0x3bf2ca(0x138)+_0x2db2f5[_0x3bf2ca(0x123)]),await _0x2972cb[_0x3bf2ca(0xf5)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb['PYDhQ'],messageTypes[_0x3bf2ca(0x10b)],null,null,_0x2db2f5);const _0x545947=JSON[_0x3bf2ca(0x131)](fs[_0x3bf2ca(0x126)](_0x2972cb[_0x3bf2ca(0x14d)](getCredentialsPath)));global_registry[_0x3bf2ca(0x13d)]=_0x545947['Browserstack'][_0x3bf2ca(0xf8)],global_registry['bstackAccesskey']=_0x545947['Browserstack'][_0x3bf2ca(0x107)];const _0x921cd8=WS_ENDPOINT[_0x3bf2ca(0x140)](_0x2972cb['tPYsm'],_0x545947['Browserstack'][_0x3bf2ca(0xf8)])[_0x3bf2ca(0x140)](_0x2972cb[_0x3bf2ca(0x137)],_0x545947[_0x3bf2ca(0x146)]['password']),_0x4c5c91={};_0x4c5c91[_0x3bf2ca(0x109)]=ws,_0x4c5c91['connectionTimeout']=0x36ee80,_0xdd5682=new ReconnectingWebSocket(_0x921cd8,[],_0x4c5c91),logger['debug'](_0x2972cb[_0x3bf2ca(0x14c)]),webSocketUtils[_0x3bf2ca(0x12d)](_0xdd5682,_0x2db2f5[_0x3bf2ca(0x11c)],_0x2db2f5[_0x3bf2ca(0x107)]);const [_0x27ca54,_0x3f3f41]=await _0x2972cb[_0x3bf2ca(0x11f)](getGridDetails,_0x545947[_0x3bf2ca(0x146)]['username'],_0x545947[_0x3bf2ca(0x146)][_0x3bf2ca(0x107)],_0x2db2f5[_0x3bf2ca(0x123)]);if(_0x3f3f41){const _0x459a7b=_0x3f3f41[_0x3bf2ca(0x121)];global_registry[_0x3bf2ca(0x12c)]=_0x459a7b[_0x3bf2ca(0x12c)],global_registry[_0x3bf2ca(0x142)]=_0x459a7b[_0x3bf2ca(0xf9)],global_registry['clusterName']=_0x459a7b['clusterName'];const _0x1a136f=await _0x2972cb[_0x3bf2ca(0x133)](getCloudProviderObject,_0x459a7b[_0x3bf2ca(0x12c)],_0x459a7b['clusterName'],_0x459a7b[_0x3bf2ca(0x13a)],_0xdd5682,webSocketUtils,_0x2db2f5),[_0xa1df3a,_0x2c83fd,_0x1217ce,_0x122c48,_0xc4105d,_0x58dbc5]=await _0x2972cb['uTSUL'](createK8sClient,_0x1a136f,_0x2db2f5[_0x3bf2ca(0xfa)]);await _0x2972cb[_0x3bf2ca(0x14a)](scaleDownHubDeployment,_0x2c83fd,_0x459a7b['name']),logger['info'](_0x2972cb['tsftw']),process[_0x3bf2ca(0xfb)](0x0);}_0x2972cb[_0x3bf2ca(0x10c)](_0x27ca54[_0x3bf2ca(0x116)],0x191)&&(logger[_0x3bf2ca(0x144)](_0x2972cb[_0x3bf2ca(0x143)]),await _0x2972cb[_0x3bf2ca(0x12e)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb[_0x3bf2ca(0x136)],messageTypes[_0x3bf2ca(0x105)],_0x2972cb[_0x3bf2ca(0x10a)],null,_0x2db2f5),process[_0x3bf2ca(0xfb)](0x1)),_0x2972cb[_0x3bf2ca(0xf1)](_0x27ca54[_0x3bf2ca(0x116)],0x190)&&(logger[_0x3bf2ca(0x144)](JSON[_0x3bf2ca(0x131)](_0x27ca54[_0x3bf2ca(0x12b)])[_0x3bf2ca(0x111)]),await _0x2972cb[_0x3bf2ca(0x120)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb['PYDhQ'],messageTypes['ERROR'],_0x2972cb['bNMve'],null,_0x2db2f5),process[_0x3bf2ca(0xfb)](0x1)),logger[_0x3bf2ca(0x144)](_0x3bf2ca(0xfd)+JSON[_0x3bf2ca(0x13b)](_0x27ca54)),await _0x2972cb[_0x3bf2ca(0xf5)](sendInstrumentationEvent,_0x2db2f5,_0x2972cb[_0x3bf2ca(0x136)],messageTypes[_0x3bf2ca(0x105)],_0x2972cb[_0x3bf2ca(0x102)],_0x27ca54,_0x2db2f5),process[_0x3bf2ca(0xfb)](0x1);}catch(_0x505004){const _0x20f10c=_0x3bf2ca(0x101)+_0x505004+'\x20\x0a'+JSON[_0x3bf2ca(0x13b)](_0x505004[_0x3bf2ca(0x10e)])+'\x20';logger['error'](_0x20f10c),process['exit'](0x1);}};function a21_0x3974(){const _0x21066b=['error','6633HSXDrD','Browserstack','kTCYo','3912668QXIxoP','<PasswordPlaceholder>','BNjzP','command','XXWhj','RiPpf','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','6309835grkSZs','Adding\x20Websocket\x20listeners','tLZBH','type','grid','jeyDf','UVtzy','../../config/logger','<UsernamePlaceholder>','username','region','skipTlsCertVerify','exit','boolean','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','server-error','Skip\x20insecure\x20cert\x20verification.','1yrlbpw','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','OyIAl','7566040vGbdWL','init-not-called','ERROR','../../utils/webSocketUtils','password','epilogue','WebSocket','yNVmp','INFO','gHVfp','Grid\x20stoppped.','stack','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','message','318ibnyAJ','WcbEu','unauthorised','description','statusCode','myblZ','80722UlnXQA','oiMWh','usage','stop','user','help','desc','FikIW','VGKoh','info','vfRoi','gridId','options','stop-grid-called','readFileSync','reconnecting-websocket','pyNNX','../../config/constants','28555IvkOOB','body','cloudProvider','addListeners','hhqMC','29530NLZziU','1177920XcfOjC','parse','existsSync','rfFeF','argv','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','PYDhQ','vXGyk','Stopping\x20grid\x20','string','name','stringify','../../utils/utilityMethods','bstackUsername','xcVsD','../../utils/instrumentationUtils','replace','ewQaH','clusterRegion','wbdyl'];a21_0x3974=function(){return _0x21066b;};return a21_0x3974();}
1
+ function a21_0x5064(){const _0x3ae817=['../../config/constants','zPesU','../../utils/createk8sClient','error','username','FUlMO','clusterRegion','DFOmZ','../../utils/webSocketUtils','bAJFN','gridId','jifhh','1359246bjMDNn','type','jWzjI','PvpyN','addListeners','builder','name','Stopping\x20grid\x20','<UsernamePlaceholder>','skipTlsCertVerify','../../utils/gridComponents','string','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','epilogue','connectionTimeout','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1091554cbuxPl','454776njVjJA','lBhFB','lgxrm','rXwql','Browserstack','762XGrwOT','boolean','unauthorised','parse','replace','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','ZAbgI','help','12JmDnbA','stack','Adding\x20Websocket\x20listeners','options','Pnooh','nXQyD','9309771ORgIIo','password','7616104kveGRP','default','RZNIp','init-not-called','desc','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','bstackAccesskey','handler','UxuFk','WoIQZ','region','stop-grid-called','bGZJr','umrfY','cloudProvider','description','Stop\x20a\x20running\x20Automation\x20grid.','Grid\x20stoppped.','command','stop','grid','user','INFO','5780474NvcsCM','debug','body','clusterName','ERROR','statusCode','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','reconnecting-websocket','invalid-grid-id','info','pwaOY','52445mcxDwj','server-error','ypLZi','exit','../../utils/instrumentationUtils','WXlKD','argv','POnnQ','../../cloudproviders/utils','CCWlT','xkIlT'];a21_0x5064=function(){return _0x3ae817;};return a21_0x5064();}const a21_0x23b827=a21_0x589b;(function(_0x4df967,_0x1b9172){const _0x380efd=a21_0x589b,_0x5ccb25=_0x4df967();while(!![]){try{const _0x12336f=parseInt(_0x380efd(0xbc))/0x1+parseInt(_0x380efd(0xac))/0x2+parseInt(_0x380efd(0xcb))/0x3*(parseInt(_0x380efd(0xbd))/0x4)+parseInt(_0x380efd(0x95))/0x5*(parseInt(_0x380efd(0xc2))/0x6)+-parseInt(_0x380efd(0xea))/0x7+-parseInt(_0x380efd(0xd3))/0x8+-parseInt(_0x380efd(0xd1))/0x9;if(_0x12336f===_0x1b9172)break;else _0x5ccb25['push'](_0x5ccb25['shift']());}catch(_0x419f3c){_0x5ccb25['push'](_0x5ccb25['shift']());}}}(a21_0x5064,0xb6172));function a21_0x589b(_0x432850,_0x563df5){const _0x506468=a21_0x5064();return a21_0x589b=function(_0x589b7d,_0x366462){_0x589b7d=_0x589b7d-0x8d;let _0x2ea17e=_0x506468[_0x589b7d];return _0x2ea17e;},a21_0x589b(_0x432850,_0x563df5);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x23b827(0x91)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x23b827(0xa0)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x23b827(0xc8)),{scaleDownHubDeployment}=require(a21_0x23b827(0xb6)),{sendInstrumentationEvent}=require(a21_0x23b827(0x99)),webSocketUtils=require(a21_0x23b827(0xa8)),{createK8sClient}=require(a21_0x23b827(0xa2)),{getCloudProviderObject}=require(a21_0x23b827(0x9d));exports[a21_0x23b827(0xe5)]=a21_0x23b827(0xe7),exports[a21_0x23b827(0xd7)]=a21_0x23b827(0xe3),exports[a21_0x23b827(0xb1)]=function(_0x91b2fe){const _0xd3e440=a21_0x23b827,_0x1c56e5={};_0x1c56e5[_0xd3e440(0xa9)]=_0xd3e440(0xd8),_0x1c56e5[_0xd3e440(0xa1)]=_0xd3e440(0xb7),_0x1c56e5[_0xd3e440(0x9e)]='Skip\x20insecure\x20cert\x20verification.',_0x1c56e5[_0xd3e440(0xc0)]=_0xd3e440(0xc3),_0x1c56e5[_0xd3e440(0xbf)]=_0xd3e440(0xca);const _0x527ca8=_0x1c56e5,_0x7fd1bd={};_0x7fd1bd['description']=_0x527ca8[_0xd3e440(0xa9)],_0x7fd1bd[_0xd3e440(0xad)]=_0x527ca8[_0xd3e440(0xa1)];const _0x15323d={};_0x15323d[_0xd3e440(0xe2)]=_0x527ca8['CCWlT'],_0x15323d[_0xd3e440(0xad)]=_0x527ca8['rXwql'],_0x15323d[_0xd3e440(0xd4)]=![];const _0x34c714={};return _0x34c714['grid-id']=_0x7fd1bd,_0x34c714['skip-tls-cert-verify']=_0x15323d,_0x91b2fe['usage'](HELP_HEADER_MESSAGE[_0xd3e440(0xe6)])[_0xd3e440(0xb9)](HELP_FOOTER_MESSAGE)[_0xd3e440(0xce)](_0x34c714)[_0xd3e440(0xca)](_0x527ca8[_0xd3e440(0xbf)])[_0xd3e440(0x9b)];},exports[a21_0x23b827(0xda)]=async function(_0x4e6630){const _0x506024=a21_0x23b827,_0x17b3f9={'UxuFk':_0x506024(0x90),'wOmuJ':function(_0x430b9a){return _0x430b9a();},'pwaOY':_0x506024(0xc7),'bGZJr':function(_0x12eab9,_0x3d3115,_0x13644a,_0x2f298d,_0x2008ae,_0x2c13cb,_0x546238){return _0x12eab9(_0x3d3115,_0x13644a,_0x2f298d,_0x2008ae,_0x2c13cb,_0x546238);},'ZAbgI':_0x506024(0xde),'jWzjI':_0x506024(0xd6),'ypLZi':function(_0x14e537){return _0x14e537();},'nXQyD':_0x506024(0xb4),'lBhFB':'<PasswordPlaceholder>','fSnOo':_0x506024(0xcd),'PvpyN':function(_0x5de23c,_0xbef858,_0x1ef813,_0x4fcaa2){return _0x5de23c(_0xbef858,_0x1ef813,_0x4fcaa2);},'WXlKD':function(_0x2d9b71,_0x4ec8fa,_0xac84a8){return _0x2d9b71(_0x4ec8fa,_0xac84a8);},'POnnQ':_0x506024(0xe4),'RZNIp':function(_0x51cc51,_0x207108){return _0x51cc51===_0x207108;},'WoIQZ':_0x506024(0xb8),'xkIlT':function(_0x333185,_0xd77754,_0x18035c,_0x1ffd7e,_0x412357,_0x27dfe8,_0x82605f){return _0x333185(_0xd77754,_0x18035c,_0x1ffd7e,_0x412357,_0x27dfe8,_0x82605f);},'umrfY':_0x506024(0xc4),'DFOmZ':function(_0x121cb2,_0x20e300){return _0x121cb2===_0x20e300;},'jifhh':function(_0x23996a,_0x224869,_0x5bf9ca,_0xfda1af,_0x334d96,_0xd71cea,_0x45a4e4){return _0x23996a(_0x224869,_0x5bf9ca,_0xfda1af,_0x334d96,_0xd71cea,_0x45a4e4);},'FUlMO':_0x506024(0x92),'Pnooh':_0x506024(0x96)};let _0x3b196c;try{!_0x4e6630[_0x506024(0xaa)]&&(logger['error'](_0x17b3f9[_0x506024(0xdb)]),process[_0x506024(0x98)](0x1));!fs['existsSync'](_0x17b3f9['wOmuJ'](getCredentialsPath))&&(logger[_0x506024(0xa3)](_0x17b3f9[_0x506024(0x94)]),await _0x17b3f9[_0x506024(0xdf)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9[_0x506024(0xc9)],messageTypes['ERROR'],_0x17b3f9[_0x506024(0xae)],null,_0x4e6630),process['exit'](0x1));logger['info'](_0x506024(0xb3)+_0x4e6630['gridId']),await _0x17b3f9[_0x506024(0xdf)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9['ZAbgI'],messageTypes[_0x506024(0xe9)],null,null,_0x4e6630);const _0x2fe560=JSON[_0x506024(0xc5)](fs['readFileSync'](_0x17b3f9[_0x506024(0x97)](getCredentialsPath)));global_registry['bstackUsername']=_0x2fe560[_0x506024(0xc1)][_0x506024(0xa4)],global_registry[_0x506024(0xd9)]=_0x2fe560[_0x506024(0xc1)][_0x506024(0xd2)];const _0x16d86a=WS_ENDPOINT['replace'](_0x17b3f9[_0x506024(0xd0)],_0x2fe560[_0x506024(0xc1)][_0x506024(0xa4)])[_0x506024(0xc6)](_0x17b3f9[_0x506024(0xbe)],_0x2fe560[_0x506024(0xc1)][_0x506024(0xd2)]),_0x39291b={};_0x39291b['WebSocket']=ws,_0x39291b[_0x506024(0xba)]=0x36ee80,_0x3b196c=new ReconnectingWebSocket(_0x16d86a,[],_0x39291b),logger[_0x506024(0xeb)](_0x17b3f9['fSnOo']),webSocketUtils[_0x506024(0xb0)](_0x3b196c,_0x4e6630[_0x506024(0xe8)],_0x4e6630[_0x506024(0xd2)]);const [_0x2ae979,_0x2ace43]=await _0x17b3f9[_0x506024(0xaf)](getGridDetails,_0x2fe560[_0x506024(0xc1)][_0x506024(0xa4)],_0x2fe560[_0x506024(0xc1)][_0x506024(0xd2)],_0x4e6630[_0x506024(0xaa)]);if(_0x2ace43){const _0x23cd5b=_0x2ace43[_0x506024(0x93)];global_registry[_0x506024(0xe1)]=_0x23cd5b[_0x506024(0xe1)],global_registry[_0x506024(0xa6)]=_0x23cd5b[_0x506024(0xdd)],global_registry[_0x506024(0x8d)]=_0x23cd5b['clusterName'];const _0x26b740=await _0x17b3f9['bGZJr'](getCloudProviderObject,_0x23cd5b['cloudProvider'],_0x23cd5b[_0x506024(0x8d)],_0x23cd5b[_0x506024(0xb2)],_0x3b196c,webSocketUtils,_0x4e6630),[_0x129a17,_0x5a7f1b,_0x34a789,_0x2c7b7e,_0xd10264,_0xf5caf5]=await _0x17b3f9[_0x506024(0x9a)](createK8sClient,_0x26b740,_0x4e6630[_0x506024(0xb5)]);await _0x17b3f9[_0x506024(0x9a)](scaleDownHubDeployment,_0x5a7f1b,_0x23cd5b[_0x506024(0xb2)]),logger[_0x506024(0x93)](_0x17b3f9[_0x506024(0x9c)]),process[_0x506024(0x98)](0x0);}_0x17b3f9[_0x506024(0xd5)](_0x2ae979[_0x506024(0x8f)],0x191)&&(logger[_0x506024(0xa3)](_0x17b3f9[_0x506024(0xdc)]),await _0x17b3f9[_0x506024(0x9f)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9[_0x506024(0xc9)],messageTypes[_0x506024(0x8e)],_0x17b3f9[_0x506024(0xe0)],null,_0x4e6630),process[_0x506024(0x98)](0x1)),_0x17b3f9[_0x506024(0xa7)](_0x2ae979[_0x506024(0x8f)],0x190)&&(logger['error'](JSON[_0x506024(0xc5)](_0x2ae979[_0x506024(0xec)])['message']),await _0x17b3f9[_0x506024(0xab)](sendInstrumentationEvent,_0x4e6630,_0x17b3f9[_0x506024(0xc9)],messageTypes[_0x506024(0x8e)],_0x17b3f9[_0x506024(0xa5)],null,_0x4e6630),process['exit'](0x1)),logger[_0x506024(0xa3)](_0x506024(0xbb)+JSON['stringify'](_0x2ae979)),await _0x17b3f9['jifhh'](sendInstrumentationEvent,_0x4e6630,_0x17b3f9['ZAbgI'],messageTypes[_0x506024(0x8e)],_0x17b3f9[_0x506024(0xcf)],_0x2ae979,_0x4e6630),process[_0x506024(0x98)](0x1);}catch(_0x2b7f53){const _0x28c086='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x2b7f53+'\x20\x0a'+JSON['stringify'](_0x2b7f53[_0x506024(0xcc)])+'\x20';logger[_0x506024(0xa3)](_0x28c086),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x59d4cd=a22_0x26ce;(function(_0x250a36,_0x5f3349){const _0x12c427=a22_0x26ce,_0x4ab18a=_0x250a36();while(!![]){try{const _0x59a5c0=-parseInt(_0x12c427(0x82))/0x1+parseInt(_0x12c427(0xa4))/0x2+parseInt(_0x12c427(0x76))/0x3*(-parseInt(_0x12c427(0x8d))/0x4)+parseInt(_0x12c427(0x80))/0x5*(-parseInt(_0x12c427(0x8e))/0x6)+parseInt(_0x12c427(0xa8))/0x7+parseInt(_0x12c427(0xae))/0x8+parseInt(_0x12c427(0x83))/0x9*(-parseInt(_0x12c427(0x91))/0xa);if(_0x59a5c0===_0x5f3349)break;else _0x4ab18a['push'](_0x4ab18a['shift']());}catch(_0x26fc49){_0x4ab18a['push'](_0x4ab18a['shift']());}}}(a22_0x2278,0x61b83),require('dotenv')[a22_0x59d4cd(0xc4)]());let gridURL=a22_0x59d4cd(0x74),bsApiUrl=a22_0x59d4cd(0x6f),agApiUrl=a22_0x59d4cd(0xbb);const _env=(process[a22_0x59d4cd(0x92)]['BROWSERSTACK_ENV']||'prod')[a22_0x59d4cd(0x7e)]();if(_env==='staging'||_env==='stag')gridURL=a22_0x59d4cd(0xa7),bsApiUrl=a22_0x59d4cd(0xc5),agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl='api-preprod.bsstag.com',agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x59d4cd(0x8f)]=process[a22_0x59d4cd(0x92)][a22_0x59d4cd(0x8f)]||gridURL,exports['BS_API_URL']=process[a22_0x59d4cd(0x92)][a22_0x59d4cd(0xa3)]||bsApiUrl,exports[a22_0x59d4cd(0xc9)]=process['env'][a22_0x59d4cd(0xc9)]||agApiUrl,exports[a22_0x59d4cd(0x95)]='wss://'+this['AG_API_URL']+a22_0x59d4cd(0x75),exports[a22_0x59d4cd(0x90)]='credentials',exports[a22_0x59d4cd(0xc6)]=a22_0x59d4cd(0xb1),exports['DEFAULT_GRID_NAME']=a22_0x59d4cd(0x89),exports[a22_0x59d4cd(0xc7)]=a22_0x59d4cd(0x7b),exports[a22_0x59d4cd(0x8b)]=a22_0x59d4cd(0xb9),exports[a22_0x59d4cd(0xb8)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x59d4cd(0xcb)]='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x59d4cd(0x86)]=a22_0x59d4cd(0xb4),exports[a22_0x59d4cd(0xcc)]=a22_0x59d4cd(0x78),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x59d4cd(0x86)],this['GCP']];const a22_0x169ba0={};a22_0x169ba0[a22_0x59d4cd(0x9d)]=a22_0x59d4cd(0x6e),a22_0x169ba0[a22_0x59d4cd(0x9e)]=a22_0x59d4cd(0x77);const a22_0x56c357={};a22_0x56c357[a22_0x59d4cd(0x9d)]='browserstack:service',a22_0x56c357[a22_0x59d4cd(0x9e)]='BrowserStack-Automate-TurboScale';function a22_0x2278(){const _0x247517=['\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','BrowserStackIAMUser','gridUrl','configure','azure','unknown','success','HST_CLUSTER_TAGS','CLUSTER_AUTOSCALER_STACK_NAME','BSTACK-ATS-CLUSTER','CLI_RUN_STARTED','grid-api.browserstack.com','REDACTED','grid-profile','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','LOG','WS_EVENTS','CLOUD_PROVIDER','us-east-1','warning','config','api-devhst.bsstag.com','IAM_USER_NAME','AWS','HELP_HEADER_MESSAGE','AG_API_URL','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','CLUSTER_HUB_HA_STACK_NAME','GCP','CLI_ARGS_REGEX','ERROR','browserstack:managedBy','api.browserstack.com','LINK_MESSAGE','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','info','split','grid.browserstack.com','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','21pzLkqq','BrowserStack','gcp','TRIAL_GRID_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','aws','COMMON_HST_TAGS','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','toLowerCase','grid','30cjQGBt','CLUSTER','149261yqUPFJ','3714327FNZJoO','root','DEFAULT_CLUSTER_DETAILS','AZURE','SUPPORTED_CLOUD_PROVIDERS','CLI_RUN_FINISHED','high-scale-grid','connect','CLUSTER_DEP_STACK_NAME','UNKNOWN','141988lfiraJ','157098yERDqe','DASHBOARD_ENDPOINT','CP_CONFIG_FILE','10mrakwH','env','start','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','WS_ENDPOINT','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','gridProfile','pre_check','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','INFO','Key','Value','push','WARNING','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','BS_API_URL','1064234CCTzHe','browserstack:service','delete','grid-devhst.bsstag.com','2462642msKbxY','NULL','RAW_ARGS_REGEX','list','TURBOSCALE_CUSTOM_TAGS','forEach','3871016mSOWYc','init'];a22_0x2278=function(){return _0x247517;};return a22_0x2278();}const common_hst_tags_list=[a22_0x169ba0,a22_0x56c357];if(process['env'][a22_0x59d4cd(0xac)]){const parsedTags=process[a22_0x59d4cd(0x92)][a22_0x59d4cd(0xac)][a22_0x59d4cd(0x73)](',');parsedTags[a22_0x59d4cd(0xad)](_0x5dc768=>{const _0x55963d=a22_0x59d4cd,_0x4057c6=_0x5dc768[_0x55963d(0x73)](':'),_0x281175={};_0x281175[_0x55963d(0x9d)]=_0x4057c6[0x0],_0x281175[_0x55963d(0x9e)]=_0x4057c6[0x1],common_hst_tags_list[_0x55963d(0x9f)](_0x281175);});}exports[a22_0x59d4cd(0x7c)]=common_hst_tags_list;const a22_0x19d5d2={};a22_0x19d5d2[a22_0x59d4cd(0x6e)]=a22_0x59d4cd(0x77),a22_0x19d5d2[a22_0x59d4cd(0xa5)]=a22_0x59d4cd(0xa1),exports[a22_0x59d4cd(0xb7)]=a22_0x19d5d2,exports[a22_0x59d4cd(0x87)]=[this['AWS']];const a22_0x4b5322={};a22_0x4b5322[a22_0x59d4cd(0xbf)]='log',a22_0x4b5322['RESOURCES']='resourceInfo',a22_0x4b5322['GRID_URL']=a22_0x59d4cd(0xb2),a22_0x4b5322[a22_0x59d4cd(0xba)]='cliRunStarted',a22_0x4b5322[a22_0x59d4cd(0x88)]='cliRunFinished',exports[a22_0x59d4cd(0xc0)]=a22_0x4b5322,exports['global_registry']={},exports[a22_0x59d4cd(0x70)]=a22_0x59d4cd(0x96);const a22_0x27fefe={};a22_0x27fefe[a22_0x59d4cd(0x84)]=a22_0x59d4cd(0xbe)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0xaf)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0xb3)]=a22_0x59d4cd(0x9b)+this[a22_0x59d4cd(0x70)],a22_0x27fefe['create']=a22_0x59d4cd(0x94)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0xab)]={},a22_0x27fefe[a22_0x59d4cd(0xa6)]=a22_0x59d4cd(0x71)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0x8a)]=a22_0x59d4cd(0x97)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0x93)]=a22_0x59d4cd(0x7d)+this[a22_0x59d4cd(0x70)],a22_0x27fefe['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0x99)]=a22_0x59d4cd(0xa2)+this['LINK_MESSAGE'],a22_0x27fefe[a22_0x59d4cd(0xab)][a22_0x59d4cd(0x84)]=a22_0x59d4cd(0x7a)+this[a22_0x59d4cd(0x70)],a22_0x27fefe[a22_0x59d4cd(0xab)][a22_0x59d4cd(0x7f)]=a22_0x59d4cd(0xb0)+this['LINK_MESSAGE'],a22_0x27fefe[a22_0x59d4cd(0xab)][a22_0x59d4cd(0x98)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x59d4cd(0x70)],exports[a22_0x59d4cd(0xc8)]=a22_0x27fefe,exports['HELP_FOOTER_MESSAGE']=a22_0x59d4cd(0xca);const a22_0x268d55={};a22_0x268d55['SUCCESS']=a22_0x59d4cd(0xb6),a22_0x268d55[a22_0x59d4cd(0x6d)]='error',a22_0x268d55[a22_0x59d4cd(0x9c)]=a22_0x59d4cd(0x72),a22_0x268d55[a22_0x59d4cd(0xa0)]=a22_0x59d4cd(0xc3),a22_0x268d55[a22_0x59d4cd(0x8c)]=a22_0x59d4cd(0xb5),a22_0x268d55[a22_0x59d4cd(0xa9)]=null,exports['messageTypes']=a22_0x268d55,exports[a22_0x59d4cd(0x6c)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x59d4cd(0xaa)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x59d4cd(0xbc)]='[REDACTED]';const a22_0x2d7e21={};function a22_0x26ce(_0x456480,_0x3c5675){const _0x227894=a22_0x2278();return a22_0x26ce=function(_0x26ce1e,_0x2a0b91){_0x26ce1e=_0x26ce1e-0x6c;let _0x4b776f=_0x227894[_0x26ce1e];return _0x4b776f;},a22_0x26ce(_0x456480,_0x3c5675);}a22_0x2d7e21[a22_0x59d4cd(0xbd)]=a22_0x59d4cd(0x9a);const a22_0x165d7b={};a22_0x165d7b['pre-check']=a22_0x2d7e21,exports['MessageDescription']=a22_0x165d7b,exports[a22_0x59d4cd(0x79)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x52a9bb={};a22_0x52a9bb[a22_0x59d4cd(0x81)]='high-scale-grid-cluster',a22_0x52a9bb[a22_0x59d4cd(0xc1)]=a22_0x59d4cd(0x7b),a22_0x52a9bb['REGION']=a22_0x59d4cd(0xc2),exports[a22_0x59d4cd(0x85)]=a22_0x52a9bb;
1
+ const a22_0x43a234=a22_0x3665;(function(_0x4db5ef,_0x1aa370){const _0x2ad58c=a22_0x3665,_0x2f725a=_0x4db5ef();while(!![]){try{const _0x5b8a89=parseInt(_0x2ad58c(0xff))/0x1+parseInt(_0x2ad58c(0x10c))/0x2+parseInt(_0x2ad58c(0x14f))/0x3*(-parseInt(_0x2ad58c(0x118))/0x4)+-parseInt(_0x2ad58c(0x131))/0x5+-parseInt(_0x2ad58c(0x11a))/0x6*(-parseInt(_0x2ad58c(0x15d))/0x7)+parseInt(_0x2ad58c(0x111))/0x8*(-parseInt(_0x2ad58c(0x11d))/0x9)+parseInt(_0x2ad58c(0x100))/0xa;if(_0x5b8a89===_0x1aa370)break;else _0x2f725a['push'](_0x2f725a['shift']());}catch(_0xe33df2){_0x2f725a['push'](_0x2f725a['shift']());}}}(a22_0x97ad,0x56472),require(a22_0x43a234(0x123))[a22_0x43a234(0x10a)]());let gridURL=a22_0x43a234(0x15b),bsApiUrl=a22_0x43a234(0xf8),agApiUrl=a22_0x43a234(0x14d);const _env=(process[a22_0x43a234(0x145)]['BROWSERSTACK_ENV']||a22_0x43a234(0x114))[a22_0x43a234(0x11c)]();if(_env===a22_0x43a234(0x15a)||_env===a22_0x43a234(0x128))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x43a234(0x149);else(_env===a22_0x43a234(0x147)||_env===a22_0x43a234(0x15f))&&(gridURL=a22_0x43a234(0x160),bsApiUrl=a22_0x43a234(0x122),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x43a234(0x117)]=process[a22_0x43a234(0x145)][a22_0x43a234(0x117)]||gridURL,exports[a22_0x43a234(0x153)]=process['env'][a22_0x43a234(0x153)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x43a234(0x145)]['AG_API_URL']||agApiUrl,exports[a22_0x43a234(0x14b)]='wss://'+this['AG_API_URL']+a22_0x43a234(0x11f),exports['CP_CONFIG_FILE']=a22_0x43a234(0x130),exports[a22_0x43a234(0x125)]=a22_0x43a234(0x101),exports[a22_0x43a234(0x119)]='high-scale-grid',exports['AWS']='aws',exports[a22_0x43a234(0x132)]='BSTACK-ATS-CLUSTER',exports[a22_0x43a234(0x152)]=a22_0x43a234(0x13c),exports[a22_0x43a234(0x13e)]=a22_0x43a234(0x13b),exports[a22_0x43a234(0x129)]=a22_0x43a234(0x10e),exports[a22_0x43a234(0x133)]='azure',exports['GCP']=a22_0x43a234(0x154),exports[a22_0x43a234(0x138)]=[this[a22_0x43a234(0x112)],this[a22_0x43a234(0x133)],this[a22_0x43a234(0x15e)]];const a22_0x12b545={};a22_0x12b545[a22_0x43a234(0x148)]='browserstack:managedBy',a22_0x12b545['Value']='BrowserStack';const a22_0x6d525={};a22_0x6d525[a22_0x43a234(0x148)]=a22_0x43a234(0x13a),a22_0x6d525[a22_0x43a234(0x155)]=a22_0x43a234(0x106);const common_hst_tags_list=[a22_0x12b545,a22_0x6d525];if(process[a22_0x43a234(0x145)][a22_0x43a234(0x126)]){const parsedTags=process[a22_0x43a234(0x145)][a22_0x43a234(0x126)][a22_0x43a234(0x10b)](',');parsedTags[a22_0x43a234(0x10f)](_0xef91be=>{const _0x25a514=a22_0x43a234,_0x385f70=_0xef91be[_0x25a514(0x10b)](':'),_0x57f2c7={};_0x57f2c7[_0x25a514(0x148)]=_0x385f70[0x0],_0x57f2c7['Value']=_0x385f70[0x1],common_hst_tags_list['push'](_0x57f2c7);});}exports[a22_0x43a234(0x12f)]=common_hst_tags_list;function a22_0x3665(_0x5b5635,_0x3591c1){const _0x97ad17=a22_0x97ad();return a22_0x3665=function(_0x366596,_0x558e27){_0x366596=_0x366596-0xf6;let _0x895101=_0x97ad17[_0x366596];return _0x895101;},a22_0x3665(_0x5b5635,_0x3591c1);}const a22_0x252fd9={};a22_0x252fd9[a22_0x43a234(0x15c)]=a22_0x43a234(0xfe),a22_0x252fd9[a22_0x43a234(0x13a)]='BrowserStack-Automate-TurboScale',exports[a22_0x43a234(0x11e)]=a22_0x252fd9,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x175844={};a22_0x175844['LOG']=a22_0x43a234(0x143),a22_0x175844[a22_0x43a234(0x137)]=a22_0x43a234(0x115),a22_0x175844[a22_0x43a234(0x12e)]=a22_0x43a234(0x12d),a22_0x175844['CLI_RUN_STARTED']='cliRunStarted',a22_0x175844[a22_0x43a234(0x13d)]='cliRunFinished',exports[a22_0x43a234(0x102)]=a22_0x175844,exports['global_registry']={},exports[a22_0x43a234(0x110)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x7d28fb={};a22_0x7d28fb[a22_0x43a234(0x13f)]=a22_0x43a234(0x144)+this['LINK_MESSAGE'],a22_0x7d28fb[a22_0x43a234(0xfb)]=a22_0x43a234(0xf7)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0x103)]=a22_0x43a234(0x146)+this[a22_0x43a234(0x110)],a22_0x7d28fb['create']=a22_0x43a234(0x136)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xf6)]={},a22_0x7d28fb['delete']=a22_0x43a234(0x113)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xfc)]=a22_0x43a234(0x105)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0x140)]=a22_0x43a234(0x109)+this['LINK_MESSAGE'],a22_0x7d28fb[a22_0x43a234(0x142)]=a22_0x43a234(0x134)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0x14a)]=a22_0x43a234(0x156)+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xf6)][a22_0x43a234(0x13f)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x7d28fb[a22_0x43a234(0xf6)][a22_0x43a234(0x108)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x43a234(0x110)],a22_0x7d28fb[a22_0x43a234(0xf6)][a22_0x43a234(0xfa)]=a22_0x43a234(0x12a)+this[a22_0x43a234(0x110)],exports['HELP_HEADER_MESSAGE']=a22_0x7d28fb,exports[a22_0x43a234(0x151)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';function a22_0x97ad(){const _0x55c0a9=['1549620GfYylv','BrowserStackIAMUser','WS_EVENTS','configure','TRIAL_GRID_URL','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack-Automate-TurboScale','NULL','grid','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','config','split','1120934Wfhqpt','warning','browserstack-turboscale-grid','forEach','LINK_MESSAGE','830472FebrTn','AWS','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','prod','resourceInfo','REDACTED','DASHBOARD_ENDPOINT','294932JnIPgP','DEFAULT_GRID_NAME','786FTYDNj','[REDACTED]','toLowerCase','9VdCMlw','HST_CLUSTER_TAGS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLUSTER','api-preprod.bsstag.com','dotenv','UNKNOWN','IAM_USER_NAME','TURBOSCALE_CUSTOM_TAGS','info','stag','TURBOSCALE_DEPLOYMENT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','pre-check','high-scale-grid-cluster','gridUrl','GRID_URL','COMMON_HST_TAGS','credentials','1167290yoblEt','CLUSTER_DEP_STACK_NAME','AZURE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CLI_ARGS_REGEX','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','RESOURCES','ALL_SUPPORTED_CLOUD_PROVIDERS','CLOUD_PROVIDER','browserstack:service','BSTACK-ATS-CLUSTER-HUB-HA','BSTACK-ATS-CLUSTER-AUTOSCALER','CLI_RUN_FINISHED','CLUSTER_HUB_HA_STACK_NAME','root','start','success','stop','log','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','env','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','preprod','Key','grid-api-devhst.bsstag.com','pre_check','WS_ENDPOINT','us-east-1','grid-api.browserstack.com','aws','27kQEEpT','grid-profile','HELP_FOOTER_MESSAGE','CLUSTER_AUTOSCALER_STACK_NAME','BS_API_URL','gcp','Value','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','INFO','WARNING','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','staging','grid.browserstack.com','browserstack:managedBy','9737zsOaJh','GCP','pre-prod','grid-preprod.bsstag.com','list','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','api.browserstack.com','MessageDescription','gridProfile','init','connect','ERROR','BrowserStack','456608YVaGEn'];a22_0x97ad=function(){return _0x55c0a9;};return a22_0x97ad();}const a22_0x599739={};a22_0x599739['SUCCESS']=a22_0x43a234(0x141),a22_0x599739[a22_0x43a234(0xfd)]='error',a22_0x599739[a22_0x43a234(0x157)]=a22_0x43a234(0x127),a22_0x599739[a22_0x43a234(0x158)]=a22_0x43a234(0x10d),a22_0x599739[a22_0x43a234(0x124)]='unknown',a22_0x599739[a22_0x43a234(0x107)]=null,exports['messageTypes']=a22_0x599739,exports[a22_0x43a234(0x135)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x43a234(0x116)]=a22_0x43a234(0x11b);const a22_0x3c4b23={};a22_0x3c4b23[a22_0x43a234(0x150)]=a22_0x43a234(0x159);const a22_0x195ab0={};a22_0x195ab0[a22_0x43a234(0x12b)]=a22_0x3c4b23,exports[a22_0x43a234(0xf9)]=a22_0x195ab0,exports[a22_0x43a234(0x104)]=a22_0x43a234(0x120);const a22_0x2caa37={};a22_0x2caa37[a22_0x43a234(0x121)]=a22_0x43a234(0x12c),a22_0x2caa37[a22_0x43a234(0x139)]=a22_0x43a234(0x14e),a22_0x2caa37['REGION']=a22_0x43a234(0x14c),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x2caa37;
@@ -1 +1 @@
1
- const a23_0xed45d2=a23_0x3309;(function(_0x2d6244,_0xf80c88){const _0x26a433=a23_0x3309,_0x503016=_0x2d6244();while(!![]){try{const _0x449c06=parseInt(_0x26a433(0x184))/0x1*(parseInt(_0x26a433(0x186))/0x2)+parseInt(_0x26a433(0x183))/0x3*(parseInt(_0x26a433(0x1a1))/0x4)+-parseInt(_0x26a433(0x188))/0x5+-parseInt(_0x26a433(0x1a2))/0x6*(parseInt(_0x26a433(0x19c))/0x7)+parseInt(_0x26a433(0x197))/0x8*(parseInt(_0x26a433(0x19f))/0x9)+parseInt(_0x26a433(0x182))/0xa*(parseInt(_0x26a433(0x199))/0xb)+parseInt(_0x26a433(0x196))/0xc*(parseInt(_0x26a433(0x18f))/0xd);if(_0x449c06===_0xf80c88)break;else _0x503016['push'](_0x503016['shift']());}catch(_0x1cd810){_0x503016['push'](_0x503016['shift']());}}}(a23_0x14be,0x38838));const winston=require(a23_0xed45d2(0x19a)),fs=require('fs'),path=require(a23_0xed45d2(0x192)),logDir='log';function a23_0x3309(_0x428d05,_0x25144a){const _0x14bea8=a23_0x14be();return a23_0x3309=function(_0x33090c,_0x3510cf){_0x33090c=_0x33090c-0x182;let _0x4619ab=_0x14bea8[_0x33090c];return _0x4619ab;},a23_0x3309(_0x428d05,_0x25144a);}!fs[a23_0xed45d2(0x187)](logDir)&&fs[a23_0xed45d2(0x18c)](logDir);function a23_0x14be(){const _0x1f4e32=['existsSync','1504895vQAFvP','name','File','level','mkdirSync','debug','transports','70291stjCdU','fileLogger','timestamp','path','format','console.info','combine','588mYgQfx','3296vVSqCh','usage.log','33iYACPo','winston','createLogger','487172LsidSd','message','printf','1629zrQEnZ','\x20-\x20','4dSATat','12CrqRAQ','colorize','logger','join','14710yINOGC','951567venVNO','46sOgjlG','Console','458IjyIIm'];a23_0x14be=function(){return _0x1f4e32;};return a23_0x14be();}const a23_0x43f3f0={};a23_0x43f3f0[a23_0xed45d2(0x193)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x47d6c1={};a23_0x47d6c1[a23_0xed45d2(0x18b)]=!![];const a23_0x1dd581={};a23_0x1dd581[a23_0xed45d2(0x189)]=a23_0xed45d2(0x194),exports[a23_0xed45d2(0x1a4)]=new winston[(a23_0xed45d2(0x19b))]({'format':winston[a23_0xed45d2(0x193)][a23_0xed45d2(0x195)](winston[a23_0xed45d2(0x193)][a23_0xed45d2(0x191)](a23_0x43f3f0),winston[a23_0xed45d2(0x193)][a23_0xed45d2(0x1a3)](a23_0x47d6c1),winston[a23_0xed45d2(0x193)][a23_0xed45d2(0x19e)](_0x3df32e=>_0x3df32e[a23_0xed45d2(0x191)]+a23_0xed45d2(0x1a0)+_0x3df32e[a23_0xed45d2(0x18b)]+':\x20'+_0x3df32e[a23_0xed45d2(0x19d)])),'transports':[new winston[(a23_0xed45d2(0x18e))][(a23_0xed45d2(0x185))](a23_0x1dd581),new winston['transports']['File']({'filename':path[a23_0xed45d2(0x1a5)](logDir,'events.log'),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0xed45d2(0x18e))][(a23_0xed45d2(0x18a))]({'filename':path[a23_0xed45d2(0x1a5)](logDir,a23_0xed45d2(0x198)),'level':a23_0xed45d2(0x18d)})]};exports[a23_0xed45d2(0x190)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x34bcbd=a23_0x2706;(function(_0x382f5a,_0x388afc){const _0x38c684=a23_0x2706,_0x7ce34c=_0x382f5a();while(!![]){try{const _0x1bfd5b=parseInt(_0x38c684(0x11a))/0x1+-parseInt(_0x38c684(0x116))/0x2*(-parseInt(_0x38c684(0x10f))/0x3)+parseInt(_0x38c684(0x112))/0x4*(-parseInt(_0x38c684(0x103))/0x5)+parseInt(_0x38c684(0x118))/0x6*(parseInt(_0x38c684(0x117))/0x7)+-parseInt(_0x38c684(0x108))/0x8+parseInt(_0x38c684(0x107))/0x9*(-parseInt(_0x38c684(0x104))/0xa)+parseInt(_0x38c684(0x113))/0xb;if(_0x1bfd5b===_0x388afc)break;else _0x7ce34c['push'](_0x7ce34c['shift']());}catch(_0x369b96){_0x7ce34c['push'](_0x7ce34c['shift']());}}}(a23_0x3515,0xe85f3));const winston=require(a23_0x34bcbd(0x114)),fs=require('fs'),path=require('path'),logDir=a23_0x34bcbd(0x10c);!fs[a23_0x34bcbd(0xff)](logDir)&&fs['mkdirSync'](logDir);function a23_0x2706(_0xb9c01c,_0x55baa6){const _0x351516=a23_0x3515();return a23_0x2706=function(_0x2706cf,_0x1430ea){_0x2706cf=_0x2706cf-0xfd;let _0xcae0f3=_0x351516[_0x2706cf];return _0xcae0f3;},a23_0x2706(_0xb9c01c,_0x55baa6);}const a23_0x81f76c={};a23_0x81f76c['format']=a23_0x34bcbd(0x110);function a23_0x3515(){const _0x4491d7=['debug','existsSync','Console','message','level','65wnbVLM','670270peVpma','join','printf','153KkCHmz','8171176KUbVlK','createLogger','usage.log','format','log','combine','File','126933TdbHOp','YYYY-MM-DD\x20HH:mm:ss','timestamp','550572wwLYHj','43934957dswPvF','winston','\x20-\x20','6YzpTLX','14omNRIq','1007892IFaagw','console.info','445026WNyOTd','transports','colorize','events.log'];a23_0x3515=function(){return _0x4491d7;};return a23_0x3515();}const a23_0x45e540={};a23_0x45e540[a23_0x34bcbd(0x102)]=!![];const a23_0x4be6c9={};a23_0x4be6c9['name']=a23_0x34bcbd(0x119),exports['logger']=new winston[(a23_0x34bcbd(0x109))]({'format':winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x10d)](winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x111)](a23_0x81f76c),winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x11c)](a23_0x45e540),winston[a23_0x34bcbd(0x10b)][a23_0x34bcbd(0x106)](_0x5f4870=>_0x5f4870[a23_0x34bcbd(0x111)]+a23_0x34bcbd(0x115)+_0x5f4870['level']+':\x20'+_0x5f4870[a23_0x34bcbd(0x101)])),'transports':[new winston[(a23_0x34bcbd(0x11b))][(a23_0x34bcbd(0x100))](a23_0x4be6c9),new winston[(a23_0x34bcbd(0x11b))][(a23_0x34bcbd(0x10e))]({'filename':path[a23_0x34bcbd(0x105)](logDir,a23_0x34bcbd(0xfd)),'level':a23_0x34bcbd(0xfe)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x34bcbd(0x11b))][(a23_0x34bcbd(0x10e))]({'filename':path[a23_0x34bcbd(0x105)](logDir,a23_0x34bcbd(0x10a)),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x34bcbd(0x109))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x4264(){const _0x4957f1=['env','commandDir','728768SQdnbR','12461688eSbRWo','9XbAeOM','XJfFe','EInjG','help','159759WykSMa','./config/constants','exports','788748bIgCAT','epilogue','617410jrEJvw','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','689940ylKKdE','usage','35qQdZgR','commands','1024392jehbpj'];a24_0x4264=function(){return _0x4957f1;};return a24_0x4264();}function a24_0x79ec(_0x276a6d,_0x5786c6){const _0x42642d=a24_0x4264();return a24_0x79ec=function(_0x79ece0,_0x3d0bad){_0x79ece0=_0x79ece0-0x9d;let _0x58d6a5=_0x42642d[_0x79ece0];return _0x58d6a5;},a24_0x79ec(_0x276a6d,_0x5786c6);}const a24_0x54c1bc=a24_0x79ec;(function(_0x486f8b,_0x4c0f05){const _0x9ad2ac=a24_0x79ec,_0x59a032=_0x486f8b();while(!![]){try{const _0x18e8c3=parseInt(_0x9ad2ac(0xa6))/0x1+parseInt(_0x9ad2ac(0x9d))/0x2+parseInt(_0x9ad2ac(0xac))/0x3+parseInt(_0x9ad2ac(0xaf))/0x4+-parseInt(_0x9ad2ac(0x9f))/0x5+-parseInt(_0x9ad2ac(0xa3))/0x6*(-parseInt(_0x9ad2ac(0xa1))/0x7)+-parseInt(_0x9ad2ac(0xa7))/0x8*(parseInt(_0x9ad2ac(0xa8))/0x9);if(_0x18e8c3===_0x4c0f05)break;else _0x59a032['push'](_0x59a032['shift']());}catch(_0x38fd6b){_0x59a032['push'](_0x59a032['shift']());}}}(a24_0x4264,0x6cdb2));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x54c1bc(0xad));process[a24_0x54c1bc(0xa4)][a24_0x54c1bc(0x9e)]=0x1;function run(_0x12fe87){const _0xd26c47=a24_0x54c1bc,_0x352924={};_0x352924[_0xd26c47(0xa9)]=_0xd26c47(0xa2),_0x352924[_0xd26c47(0xaa)]=_0xd26c47(0xab);const _0x2ff02a=_0x352924;_0x12fe87[_0xd26c47(0xa0)](HELP_HEADER_MESSAGE['root'])[_0xd26c47(0xa5)](_0x2ff02a[_0xd26c47(0xa9)])['demandCommand']()[_0xd26c47(0xab)](_0x2ff02a[_0xd26c47(0xaa)])[_0xd26c47(0xb0)](HELP_FOOTER_MESSAGE);}module[a24_0x54c1bc(0xae)]=run;
2
+ 'use strict';const a24_0x18cfb7=a24_0x455b;(function(_0x466f81,_0x6f7815){const _0x138e9d=a24_0x455b,_0x5eb49c=_0x466f81();while(!![]){try{const _0x27d62d=parseInt(_0x138e9d(0xda))/0x1+parseInt(_0x138e9d(0xd9))/0x2+parseInt(_0x138e9d(0xe1))/0x3+parseInt(_0x138e9d(0xd0))/0x4*(-parseInt(_0x138e9d(0xd6))/0x5)+-parseInt(_0x138e9d(0xdd))/0x6*(parseInt(_0x138e9d(0xdb))/0x7)+-parseInt(_0x138e9d(0xd5))/0x8*(-parseInt(_0x138e9d(0xd4))/0x9)+-parseInt(_0x138e9d(0xe2))/0xa;if(_0x27d62d===_0x6f7815)break;else _0x5eb49c['push'](_0x5eb49c['shift']());}catch(_0x9252bc){_0x5eb49c['push'](_0x5eb49c['shift']());}}}(a24_0x2489,0xec63e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x18cfb7(0xd8));process[a24_0x18cfb7(0xd2)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x3713c1){const _0x45c988=a24_0x18cfb7,_0x213274={};_0x213274[_0x45c988(0xd3)]=_0x45c988(0xcf),_0x213274[_0x45c988(0xde)]='help';const _0x41fd15=_0x213274;_0x3713c1[_0x45c988(0xdc)](HELP_HEADER_MESSAGE[_0x45c988(0xd7)])[_0x45c988(0xdf)](_0x41fd15[_0x45c988(0xd3)])[_0x45c988(0xe0)]()['help'](_0x41fd15[_0x45c988(0xde)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x18cfb7(0xd1)]=run;function a24_0x455b(_0x237284,_0x35a365){const _0x2489f9=a24_0x2489();return a24_0x455b=function(_0x455baf,_0x22e5da){_0x455baf=_0x455baf-0xcf;let _0x24e7e8=_0x2489f9[_0x455baf];return _0x24e7e8;},a24_0x455b(_0x237284,_0x35a365);}function a24_0x2489(){const _0x306abe=['usage','37314MUxAFx','blLaL','commandDir','demandCommand','5096229mJCIry','9296360EYTihD','commands','20NvIelY','exports','env','hkCGc','54063zRYWlB','136yDhwAm','142465amHMaZ','root','./config/constants','1913602viiPuA','22753wwNvVy','833bBqKYh'];a24_0x2489=function(){return _0x306abe;};return a24_0x2489();}