browserstack-node-sdk 1.53.5 → 1.53.6

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 (193) 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/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x5526e4=a15_0x2494;(function(_0x1f0a95,_0x1dc83f){const _0x399c52=a15_0x2494,_0x4dda75=_0x1f0a95();while(!![]){try{const _0x35619f=parseInt(_0x399c52(0x124))/0x1+-parseInt(_0x399c52(0xfa))/0x2*(parseInt(_0x399c52(0x120))/0x3)+-parseInt(_0x399c52(0xf3))/0x4+parseInt(_0x399c52(0x121))/0x5+parseInt(_0x399c52(0xf0))/0x6+parseInt(_0x399c52(0x101))/0x7+parseInt(_0x399c52(0x128))/0x8;if(_0x35619f===_0x1dc83f)break;else _0x4dda75['push'](_0x4dda75['shift']());}catch(_0x50b72b){_0x4dda75['push'](_0x4dda75['shift']());}}}(a15_0x5efc,0x73e9a));const fs=require('fs'),got=require('got'),{table}=require(a15_0x5526e4(0xfb)),{v4:uuidv4}=require(a15_0x5526e4(0x11d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5526e4(0x123)),{getCredentialsPath,getAuthHeader}=require(a15_0x5526e4(0x10d)),{sendInstrumentationEvent}=require(a15_0x5526e4(0x12d));exports[a15_0x5526e4(0xed)]=a15_0x5526e4(0x102),exports[a15_0x5526e4(0x122)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x592b60){const _0x4e2b15=a15_0x5526e4,_0xd09cce={};_0xd09cce['tQEtF']=_0x4e2b15(0x104),_0xd09cce[_0x4e2b15(0xf7)]='boolean',_0xd09cce[_0x4e2b15(0x11b)]='help';const _0x37af36=_0xd09cce,_0x12bd30={};_0x12bd30[_0x4e2b15(0xf1)]=_0x37af36[_0x4e2b15(0x118)],_0x12bd30[_0x4e2b15(0x10b)]=_0x37af36[_0x4e2b15(0xf7)];const _0x56fd87={};return _0x56fd87['all-grids']=_0x12bd30,_0x592b60['usage'](HELP_HEADER_MESSAGE['list'][_0x4e2b15(0xfe)])[_0x4e2b15(0xe9)](HELP_FOOTER_MESSAGE)['options'](_0x56fd87)['help'](_0x37af36[_0x4e2b15(0x11b)])[_0x4e2b15(0xf8)];},exports[a15_0x5526e4(0x127)]=async function(_0x577d9e){const _0x5e4515=a15_0x5526e4,_0x3eba65={'kmbYo':function(_0x1934c8){return _0x1934c8();},'YDEcC':_0x5e4515(0x107),'TACUh':function(_0x513de0,_0x1e1eb4,_0x234349,_0x5e1c6e,_0x3448ac,_0x227345,_0x4dbc6f){return _0x513de0(_0x1e1eb4,_0x234349,_0x5e1c6e,_0x3448ac,_0x227345,_0x4dbc6f);},'TymUb':'list-grids-called','ZHDXp':'init-not-called','EauIT':'GET','hagEk':function(_0x5082b3,_0x2e4fc9,_0x407849){return _0x5082b3(_0x2e4fc9,_0x407849);},'KkWAR':function(_0x2cb796,_0x29546b,_0x50bb2f,_0x365a25,_0x291c78,_0x4af269,_0x402179){return _0x2cb796(_0x29546b,_0x50bb2f,_0x365a25,_0x291c78,_0x4af269,_0x402179);},'FzxuM':function(_0x95ee9f,_0x189596){return _0x95ee9f!==_0x189596;},'NvSIl':function(_0x3db3f7,_0x3fcc15){return _0x3db3f7===_0x3fcc15;},'vDKZH':_0x5e4515(0xfd),'owrzY':_0x5e4515(0x129),'DjNiS':'grid-name','xACpC':'status','gHKfl':_0x5e4515(0x113),'ENYWj':_0x5e4515(0xea),'exFrp':_0x5e4515(0xef),'wjSQM':function(_0x58db2a,_0x357dbc){return _0x58db2a(_0x357dbc);},'pqNlP':_0x5e4515(0x112),'qpyvW':_0x5e4515(0xeb),'AwYLD':function(_0x4787cf,_0xd5406d,_0x49376c,_0x26b574,_0x55d3c9,_0xc59f59,_0x6b8aef){return _0x4787cf(_0xd5406d,_0x49376c,_0x26b574,_0x55d3c9,_0xc59f59,_0x6b8aef);},'Mclmq':_0x5e4515(0x126),'PCemB':'unknown-error'};try{global_registry[_0x5e4515(0xf4)]=_0x3eba65[_0x5e4515(0x10c)](uuidv4);!fs[_0x5e4515(0xe8)](_0x3eba65['kmbYo'](getCredentialsPath))&&(console[_0x5e4515(0xec)](_0x3eba65[_0x5e4515(0x12f)]),await _0x3eba65[_0x5e4515(0x116)](sendInstrumentationEvent,_0x577d9e,_0x3eba65['TymUb'],messageTypes[_0x5e4515(0xf6)],_0x3eba65['ZHDXp'],null,_0x577d9e),process[_0x5e4515(0x111)](0x1));const _0x52ce65=JSON[_0x5e4515(0x12e)](fs['readFileSync'](_0x3eba65[_0x5e4515(0x10c)](getCredentialsPath)));let _0x49619d=_0x5e4515(0x109)+AG_API_URL+'/packages/cli/get-grids';_0x577d9e['allGrids']&&(_0x49619d='https://'+AG_API_URL+_0x5e4515(0x100));const _0x2c844e={'method':_0x3eba65['EauIT'],'headers':_0x3eba65[_0x5e4515(0x106)](getAuthHeader,_0x52ce65[_0x5e4515(0xfc)][_0x5e4515(0x10a)],_0x52ce65[_0x5e4515(0xfc)]['password']),'throwHttpErrors':![]};global_registry[_0x5e4515(0x11f)]=_0x52ce65[_0x5e4515(0xfc)][_0x5e4515(0x10a)],global_registry['bstackAccesskey']=_0x52ce65['Browserstack'][_0x5e4515(0xf2)],_0x3eba65[_0x5e4515(0x110)](sendInstrumentationEvent,_0x577d9e,_0x3eba65[_0x5e4515(0x117)],messageTypes['INFO'],null,null,_0x577d9e);const _0x130f89=await _0x3eba65[_0x5e4515(0x106)](got,_0x49619d,_0x2c844e);if(_0x3eba65['FzxuM'](_0x130f89,null)&&_0x3eba65[_0x5e4515(0x10f)](_0x130f89,undefined)&&_0x3eba65[_0x5e4515(0x114)](_0x130f89[_0x5e4515(0x12a)],0xc8)){const _0x5aca5c=JSON[_0x5e4515(0x12e)](_0x130f89[_0x5e4515(0x11a)]);console[_0x5e4515(0x12b)](_0x3eba65[_0x5e4515(0xff)]);const _0x31ba56=[];_0x31ba56[_0x5e4515(0x11e)]([_0x3eba65['owrzY'],_0x3eba65[_0x5e4515(0x10e)],_0x3eba65[_0x5e4515(0x105)],_0x3eba65[_0x5e4515(0xf9)],_0x3eba65[_0x5e4515(0x130)],_0x3eba65[_0x5e4515(0xf5)]]),_0x5aca5c[_0x5e4515(0x108)](_0x4997a0=>{const _0x19efcf=_0x5e4515;_0x31ba56[_0x19efcf(0x11e)]([_0x4997a0['id'],_0x4997a0[_0x19efcf(0x12c)],_0x4997a0[_0x19efcf(0x125)],_0x4997a0['running'],_0x4997a0['queued'],_0x4997a0[_0x19efcf(0x115)]]);}),console[_0x5e4515(0x12b)](_0x3eba65['wjSQM'](table,_0x31ba56)),process[_0x5e4515(0x111)](0x0);}_0x3eba65[_0x5e4515(0x114)](_0x130f89[_0x5e4515(0x12a)],0x191)&&(console[_0x5e4515(0xec)](_0x3eba65[_0x5e4515(0x11c)]),await _0x3eba65['KkWAR'](sendInstrumentationEvent,_0x577d9e,_0x3eba65[_0x5e4515(0x117)],messageTypes[_0x5e4515(0xf6)],_0x3eba65[_0x5e4515(0x103)],null,_0x577d9e),process[_0x5e4515(0x111)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x130f89)),await _0x3eba65[_0x5e4515(0xee)](sendInstrumentationEvent,_0x577d9e,_0x3eba65[_0x5e4515(0x117)],messageTypes[_0x5e4515(0xf6)],_0x3eba65[_0x5e4515(0x119)],_0x130f89,_0x577d9e),process[_0x5e4515(0x111)](0x1);}catch(_0x59b98e){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x59b98e['stack']),await _0x3eba65[_0x5e4515(0x116)](sendInstrumentationEvent,_0x577d9e,_0x3eba65[_0x5e4515(0x117)],messageTypes[_0x5e4515(0xf6)],_0x3eba65[_0x5e4515(0x131)],_0x59b98e,_0x577d9e),process['exit'](0x1);}};function a15_0x2494(_0x52ea41,_0x77c5fa){const _0x5efcb4=a15_0x5efc();return a15_0x2494=function(_0x2494b9,_0x2fa690){_0x2494b9=_0x2494b9-0xe8;let _0x350905=_0x5efcb4[_0x2494b9];return _0x350905;},a15_0x2494(_0x52ea41,_0x77c5fa);}function a15_0x5efc(){const _0x2895a9=['unauthorised','error','command','AwYLD','cluster-name','1295454ndRYwY','description','password','2572904eksSab','requestId','exFrp','ERROR','HvCud','argv','gHKfl','4wbYsLv','table','Browserstack','\x0aFound\x20the\x20following\x20grids:\x0a','grid','vDKZH','/packages/cli/get-all-grids','2152850YmIFVc','grids','qpyvW','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','xACpC','hagEk','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','forEach','https://','username','type','kmbYo','../../utils/utilityMethods','DjNiS','FzxuM','KkWAR','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','running','NvSIl','clusterName','TACUh','TymUb','tQEtF','Mclmq','body','xEuxP','pqNlP','uuid','push','bstackUsername','1415604TYdJKG','3771755QZqSfd','desc','../../config/constants','505373XDpnKl','status','server-error','handler','2228456laBHQB','grid-id','statusCode','log','name','../../utils/instrumentationUtils','parse','YDEcC','ENYWj','PCemB','existsSync','epilogue','queued'];a15_0x5efc=function(){return _0x2895a9;};return a15_0x5efc();}
1
+ const a15_0x14682c=a15_0xde7a;function a15_0xde7a(_0x3fc33e,_0x45b309){const _0xf47b85=a15_0xf47b();return a15_0xde7a=function(_0xde7a4b,_0x4cb46a){_0xde7a4b=_0xde7a4b-0x1ba;let _0x6be9aa=_0xf47b85[_0xde7a4b];return _0x6be9aa;},a15_0xde7a(_0x3fc33e,_0x45b309);}function a15_0xf47b(){const _0x56d6c6=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','log','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','../../config/constants','all-grids','grid-name','queued','stack','971988piaPmQ','LSCOF','push','60JAANku','forEach','unauthorised','https://','JfVbP','bstackAccesskey','qkaoV','5Qifxse','error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','XlxSI','GET','nPOWH','parse','PcTEV','statusCode','Failed\x20to\x20list\x20resources!\x20Error:\x20','cluster-name','../../utils/utilityMethods','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','argv','list-grids-called','5381448LlMVcf','table','/packages/cli/get-grids','dSfRP','stringify','boolean','got','clusterName','WUuBi','yYZfy','password','grid','iLeWP','ERROR','wSouL','help','1eppiZa','7640689hVJGEN','431058nEvpxy','mhoLl','777501OhXVKS','server-error','exit','type','Browserstack','eGUAf','requestId','ITpTh','name','readFileSync','\x0aFound\x20the\x20following\x20grids:\x0a','plJil','hpBlM','existsSync','grids','uuid','10792208jKyKZi','username','running','OUvGc','XFyaG','body','command','2632548JKfdzN','UCLSe','handler','allGrids','status','description','builder'];a15_0xf47b=function(){return _0x56d6c6;};return a15_0xf47b();}(function(_0x270cd5,_0x543cd6){const _0x377868=a15_0xde7a,_0x584f35=_0x270cd5();while(!![]){try{const _0x3a3526=-parseInt(_0x377868(0x1ea))/0x1*(-parseInt(_0x377868(0x1ec))/0x2)+parseInt(_0x377868(0x205))/0x3+-parseInt(_0x377868(0x1da))/0x4+-parseInt(_0x377868(0x1ca))/0x5*(-parseInt(_0x377868(0x1c0))/0x6)+-parseInt(_0x377868(0x1eb))/0x7+parseInt(_0x377868(0x1fe))/0x8+-parseInt(_0x377868(0x1ee))/0x9*(-parseInt(_0x377868(0x1c3))/0xa);if(_0x3a3526===_0x543cd6)break;else _0x584f35['push'](_0x584f35['shift']());}catch(_0x9611ef){_0x584f35['push'](_0x584f35['shift']());}}}(a15_0xf47b,0xa75ca));const fs=require('fs'),got=require(a15_0x14682c(0x1e0)),{table}=require(a15_0x14682c(0x1db)),{v4:uuidv4}=require(a15_0x14682c(0x1fd)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x14682c(0x1bb)),{getCredentialsPath,getAuthHeader}=require(a15_0x14682c(0x1d5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x14682c(0x204)]=a15_0x14682c(0x1fc),exports['desc']=a15_0x14682c(0x1d6),exports[a15_0x14682c(0x20b)]=function(_0x46cb65){const _0x967a57=a15_0x14682c,_0x2dce08={};_0x2dce08[_0x967a57(0x1f5)]=_0x967a57(0x1ba),_0x2dce08[_0x967a57(0x1c9)]=_0x967a57(0x1df),_0x2dce08[_0x967a57(0x1ed)]=_0x967a57(0x1e9);const _0x144852=_0x2dce08,_0x58ed9d={};_0x58ed9d[_0x967a57(0x20a)]=_0x144852[_0x967a57(0x1f5)],_0x58ed9d[_0x967a57(0x1f1)]=_0x144852['qkaoV'];const _0xcd6b67={};return _0xcd6b67[_0x967a57(0x1bc)]=_0x58ed9d,_0x46cb65['usage'](HELP_HEADER_MESSAGE['list'][_0x967a57(0x1e5)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0xcd6b67)[_0x967a57(0x1e9)](_0x144852[_0x967a57(0x1ed)])[_0x967a57(0x1d8)];},exports[a15_0x14682c(0x207)]=async function(_0x1c294c){const _0x56134d=a15_0x14682c,_0x5c6ef0={'plJil':function(_0x24beb3){return _0x24beb3();},'eGUAf':_0x56134d(0x1cc),'XlxSI':function(_0x1ff811,_0x2d3e21,_0x594ad6,_0x467775,_0x2bdba8,_0x269c4c,_0x490922){return _0x1ff811(_0x2d3e21,_0x594ad6,_0x467775,_0x2bdba8,_0x269c4c,_0x490922);},'nPOWH':_0x56134d(0x1d9),'dSfRP':'init-not-called','XFyaG':function(_0x32d66c){return _0x32d66c();},'JfVbP':_0x56134d(0x1ce),'oyHLe':function(_0x5283b0,_0x3465be,_0x28bb3f){return _0x5283b0(_0x3465be,_0x28bb3f);},'PcTEV':function(_0x5b0a1e,_0x54a77b){return _0x5b0a1e!==_0x54a77b;},'UCLSe':function(_0x5461fa,_0x239dea){return _0x5461fa===_0x239dea;},'OUvGc':_0x56134d(0x1f8),'hpBlM':'grid-id','wSouL':_0x56134d(0x1bd),'jXCTb':_0x56134d(0x209),'OkxJw':_0x56134d(0x200),'ziTPl':_0x56134d(0x1be),'yYZfy':_0x56134d(0x1d4),'LSCOF':function(_0x55e179,_0x1b255e){return _0x55e179(_0x1b255e);},'WUuBi':_0x56134d(0x20c),'ixhQX':_0x56134d(0x1c5),'XRAGW':_0x56134d(0x1ef),'iLeWP':function(_0x2e081c,_0x1f4767,_0x2f7317,_0xca90fb,_0x1c7628,_0x4dcf36,_0x30ee1d){return _0x2e081c(_0x1f4767,_0x2f7317,_0xca90fb,_0x1c7628,_0x4dcf36,_0x30ee1d);},'OgBsZ':'unknown-error'};try{global_registry[_0x56134d(0x1f4)]=_0x5c6ef0['plJil'](uuidv4);!fs[_0x56134d(0x1fb)](_0x5c6ef0[_0x56134d(0x1f9)](getCredentialsPath))&&(console['error'](_0x5c6ef0[_0x56134d(0x1f3)]),await _0x5c6ef0[_0x56134d(0x1cd)](sendInstrumentationEvent,_0x1c294c,_0x5c6ef0[_0x56134d(0x1cf)],messageTypes[_0x56134d(0x1e7)],_0x5c6ef0[_0x56134d(0x1dd)],null,_0x1c294c),process['exit'](0x1));const _0xe509be=JSON[_0x56134d(0x1d0)](fs[_0x56134d(0x1f7)](_0x5c6ef0[_0x56134d(0x202)](getCredentialsPath)));let _0x32cf6a='https://'+AG_API_URL+_0x56134d(0x1dc);_0x1c294c[_0x56134d(0x208)]&&(_0x32cf6a=_0x56134d(0x1c6)+AG_API_URL+'/packages/cli/get-all-grids');const _0x1083f5={'method':_0x5c6ef0[_0x56134d(0x1c7)],'headers':_0x5c6ef0['oyHLe'](getAuthHeader,_0xe509be['Browserstack']['username'],_0xe509be['Browserstack'][_0x56134d(0x1e4)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0xe509be[_0x56134d(0x1f2)][_0x56134d(0x1ff)],global_registry[_0x56134d(0x1c8)]=_0xe509be[_0x56134d(0x1f2)][_0x56134d(0x1e4)],_0x5c6ef0[_0x56134d(0x1cd)](sendInstrumentationEvent,_0x1c294c,_0x5c6ef0[_0x56134d(0x1cf)],messageTypes['INFO'],null,null,_0x1c294c);const _0x1e815c=await _0x5c6ef0['oyHLe'](got,_0x32cf6a,_0x1083f5);if(_0x5c6ef0[_0x56134d(0x1d1)](_0x1e815c,null)&&_0x5c6ef0[_0x56134d(0x1d1)](_0x1e815c,undefined)&&_0x5c6ef0[_0x56134d(0x206)](_0x1e815c['statusCode'],0xc8)){const _0x304eb7=JSON['parse'](_0x1e815c[_0x56134d(0x203)]);console['log'](_0x5c6ef0[_0x56134d(0x201)]);const _0x2a9fd1=[];_0x2a9fd1[_0x56134d(0x1c2)]([_0x5c6ef0[_0x56134d(0x1fa)],_0x5c6ef0[_0x56134d(0x1e8)],_0x5c6ef0['jXCTb'],_0x5c6ef0['OkxJw'],_0x5c6ef0['ziTPl'],_0x5c6ef0[_0x56134d(0x1e3)]]),_0x304eb7[_0x56134d(0x1c4)](_0x1d1cc3=>{const _0x4e3db9=_0x56134d;_0x2a9fd1[_0x4e3db9(0x1c2)]([_0x1d1cc3['id'],_0x1d1cc3[_0x4e3db9(0x1f6)],_0x1d1cc3['status'],_0x1d1cc3[_0x4e3db9(0x200)],_0x1d1cc3[_0x4e3db9(0x1be)],_0x1d1cc3[_0x4e3db9(0x1e1)]]);}),console[_0x56134d(0x20d)](_0x5c6ef0[_0x56134d(0x1c1)](table,_0x2a9fd1)),process[_0x56134d(0x1f0)](0x0);}_0x5c6ef0[_0x56134d(0x206)](_0x1e815c[_0x56134d(0x1d2)],0x191)&&(console[_0x56134d(0x1cb)](_0x5c6ef0[_0x56134d(0x1e2)]),await _0x5c6ef0['XlxSI'](sendInstrumentationEvent,_0x1c294c,_0x5c6ef0[_0x56134d(0x1cf)],messageTypes[_0x56134d(0x1e7)],_0x5c6ef0['ixhQX'],null,_0x1c294c),process[_0x56134d(0x1f0)](0x1)),console[_0x56134d(0x1cb)](_0x56134d(0x1d7)+JSON[_0x56134d(0x1de)](_0x1e815c)),await _0x5c6ef0[_0x56134d(0x1cd)](sendInstrumentationEvent,_0x1c294c,_0x5c6ef0[_0x56134d(0x1cf)],messageTypes[_0x56134d(0x1e7)],_0x5c6ef0['XRAGW'],_0x1e815c,_0x1c294c),process[_0x56134d(0x1f0)](0x1);}catch(_0x436c95){console['error'](_0x56134d(0x1d3)+_0x436c95[_0x56134d(0x1bf)]),await _0x5c6ef0[_0x56134d(0x1e6)](sendInstrumentationEvent,_0x1c294c,_0x5c6ef0[_0x56134d(0x1cf)],messageTypes[_0x56134d(0x1e7)],_0x5c6ef0['OgBsZ'],_0x436c95,_0x1c294c),process[_0x56134d(0x1f0)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x1f11(){const _0x49a414=['1048308sUQyLn','FGEsP','recommendCommands','1821MkTYGp','8vTvwpl','150BHTmOy','desc','pre-check','handler','epilogue','command','681425xUSgUd','../config/constants','1804313qhTorg','1648008AtHGFs','commandDir','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','9464958PjErkT','usage','49263chcoUt','ynnhK','pre_check'];a16_0x1f11=function(){return _0x49a414;};return a16_0x1f11();}const a16_0x30e19a=a16_0x2ff4;function a16_0x2ff4(_0x11f480,_0x481bc7){const _0x1f1118=a16_0x1f11();return a16_0x2ff4=function(_0x2ff49c,_0x4b9ef3){_0x2ff49c=_0x2ff49c-0xa2;let _0x4d6bae=_0x1f1118[_0x2ff49c];return _0x4d6bae;},a16_0x2ff4(_0x11f480,_0x481bc7);}(function(_0x433339,_0x123b05){const _0x48f721=a16_0x2ff4,_0x38c2a5=_0x433339();while(!![]){try{const _0x5260c2=-parseInt(_0x48f721(0xb3))/0x1*(parseInt(_0x48f721(0xb5))/0x2)+parseInt(_0x48f721(0xad))/0x3+-parseInt(_0x48f721(0xa7))/0x4+parseInt(_0x48f721(0xa4))/0x5+-parseInt(_0x48f721(0xb0))/0x6+-parseInt(_0x48f721(0xa6))/0x7*(parseInt(_0x48f721(0xb4))/0x8)+parseInt(_0x48f721(0xab))/0x9;if(_0x5260c2===_0x123b05)break;else _0x38c2a5['push'](_0x38c2a5['shift']());}catch(_0x397153){_0x38c2a5['push'](_0x38c2a5['shift']());}}}(a16_0x1f11,0x36852));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x30e19a(0xa5));exports[a16_0x30e19a(0xa3)]=a16_0x30e19a(0xb7),exports[a16_0x30e19a(0xb6)]=a16_0x30e19a(0xa9),exports['builder']=function(_0x3fb5e2){const _0x3b9219=a16_0x30e19a,_0x4b3e77={};_0x4b3e77[_0x3b9219(0xae)]='precheck_commands',_0x4b3e77[_0x3b9219(0xb1)]=_0x3b9219(0xaa);const _0x244350=_0x4b3e77;return _0x3fb5e2[_0x3b9219(0xac)](HELP_HEADER_MESSAGE[_0x3b9219(0xaf)])[_0x3b9219(0xa2)](HELP_FOOTER_MESSAGE)[_0x3b9219(0xa8)](_0x244350[_0x3b9219(0xae)])['demandCommand']()[_0x3b9219(0xb2)]()['strict']()[_0x3b9219(0xaa)](_0x244350[_0x3b9219(0xb1)]);},exports[a16_0x30e19a(0xb8)]=function(_0x19e286){};
1
+ const a16_0x256aeb=a16_0x1c7a;(function(_0x484120,_0x409d42){const _0x523fe6=a16_0x1c7a,_0x1b013f=_0x484120();while(!![]){try{const _0x155f4a=parseInt(_0x523fe6(0xac))/0x1+parseInt(_0x523fe6(0x9d))/0x2+-parseInt(_0x523fe6(0xa1))/0x3+parseInt(_0x523fe6(0xa2))/0x4+-parseInt(_0x523fe6(0xa9))/0x5+parseInt(_0x523fe6(0xa8))/0x6*(-parseInt(_0x523fe6(0x9f))/0x7)+parseInt(_0x523fe6(0xa4))/0x8*(parseInt(_0x523fe6(0x9a))/0x9);if(_0x155f4a===_0x409d42)break;else _0x1b013f['push'](_0x1b013f['shift']());}catch(_0x1fe697){_0x1b013f['push'](_0x1b013f['shift']());}}}(a16_0x5dd3,0xa7c6d));function a16_0x5dd3(){const _0x2925e8=['epilogue','388464QQiQSl','2688045OQKgPV','handler','Kdgjv','1290796SVJeDu','recommendCommands','command','desc','strict','demandCommand','pre-check','../config/constants','72yvRRZP','pre_check','help','815102lfrQzl','precheck_commands','112tnbezR','usage','1837806lEpUys','2203988HbmOQO','builder','623984EdxOlO','ZPmKm','commandDir'];a16_0x5dd3=function(){return _0x2925e8;};return a16_0x5dd3();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x256aeb(0x99));function a16_0x1c7a(_0x55c84f,_0x5957bb){const _0x5dd3fa=a16_0x5dd3();return a16_0x1c7a=function(_0x1c7ad7,_0x4d9cc4){_0x1c7ad7=_0x1c7ad7-0x95;let _0x46b5e9=_0x5dd3fa[_0x1c7ad7];return _0x46b5e9;},a16_0x1c7a(_0x55c84f,_0x5957bb);}exports[a16_0x256aeb(0xae)]=a16_0x256aeb(0x98),exports[a16_0x256aeb(0x95)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x256aeb(0xa3)]=function(_0x436460){const _0x27346b=a16_0x256aeb,_0x69623f={};_0x69623f[_0x27346b(0xa5)]=_0x27346b(0x9e),_0x69623f['Kdgjv']=_0x27346b(0x9c);const _0x2fbb02=_0x69623f;return _0x436460[_0x27346b(0xa0)](HELP_HEADER_MESSAGE[_0x27346b(0x9b)])[_0x27346b(0xa7)](HELP_FOOTER_MESSAGE)[_0x27346b(0xa6)](_0x2fbb02['ZPmKm'])[_0x27346b(0x97)]()[_0x27346b(0xad)]()[_0x27346b(0x96)]()['help'](_0x2fbb02[_0x27346b(0xab)]);},exports[a16_0x256aeb(0xaa)]=function(_0x4b55bd){};
@@ -1 +1 @@
1
- const a17_0x13a3af=a17_0x39cf;(function(_0x5f4f2f,_0x13b7a8){const _0x1b13c4=a17_0x39cf,_0x1d159f=_0x5f4f2f();while(!![]){try{const _0x4d55b4=parseInt(_0x1b13c4(0x147))/0x1+-parseInt(_0x1b13c4(0xd9))/0x2*(parseInt(_0x1b13c4(0xc5))/0x3)+parseInt(_0x1b13c4(0xfa))/0x4*(parseInt(_0x1b13c4(0x184))/0x5)+-parseInt(_0x1b13c4(0x193))/0x6*(-parseInt(_0x1b13c4(0x16d))/0x7)+-parseInt(_0x1b13c4(0x167))/0x8+parseInt(_0x1b13c4(0xe8))/0x9*(-parseInt(_0x1b13c4(0x13f))/0xa)+parseInt(_0x1b13c4(0xc6))/0xb*(parseInt(_0x1b13c4(0x139))/0xc);if(_0x4d55b4===_0x13b7a8)break;else _0x1d159f['push'](_0x1d159f['shift']());}catch(_0x36918a){_0x1d159f['push'](_0x1d159f['shift']());}}}(a17_0x5723,0x85c92));const fs=require('fs'),ws=require('ws'),got=require(a17_0x13a3af(0x1ae)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x13a3af(0xda)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a17_0x39cf(_0x37dfb6,_0x255035){const _0x572300=a17_0x5723();return a17_0x39cf=function(_0x39cfcd,_0x3f3586){_0x39cfcd=_0x39cfcd-0xc2;let _0x4e8ce9=_0x572300[_0x39cfcd];return _0x4e8ce9;},a17_0x39cf(_0x37dfb6,_0x255035);}exports[a17_0x13a3af(0x170)]=a17_0x13a3af(0xca),exports[a17_0x13a3af(0x1ac)]=a17_0x13a3af(0x14b),exports['builder']=function(_0x53f919){const _0x526613=a17_0x13a3af,_0x8a7c4f={};_0x8a7c4f[_0x526613(0x102)]=_0x526613(0x18b),_0x8a7c4f[_0x526613(0xd8)]=_0x526613(0x12d),_0x8a7c4f[_0x526613(0x1ad)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x8a7c4f[_0x526613(0xc8)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x8a7c4f[_0x526613(0x15f)]=_0x526613(0x19c),_0x8a7c4f[_0x526613(0x166)]=_0x526613(0x109);const _0x1b3ae2=_0x8a7c4f,_0x2f4fb5={};_0x2f4fb5[_0x526613(0x107)]=_0x1b3ae2['xAxOG'],_0x2f4fb5[_0x526613(0x165)]=_0x1b3ae2[_0x526613(0xd8)];const _0x4a1715={};_0x4a1715[_0x526613(0x107)]=_0x1b3ae2[_0x526613(0x1ad)],_0x4a1715[_0x526613(0x165)]=_0x1b3ae2[_0x526613(0xd8)];const _0x463f41={};_0x463f41[_0x526613(0x107)]=_0x1b3ae2['BvTEy'],_0x463f41[_0x526613(0x165)]=_0x1b3ae2['agsKI'];const _0x175e2e={};_0x175e2e['description']=_0x1b3ae2[_0x526613(0x15f)],_0x175e2e[_0x526613(0x165)]=_0x1b3ae2[_0x526613(0xd8)];const _0x4b5658={};return _0x4b5658[_0x526613(0x14f)]=_0x2f4fb5,_0x4b5658['cloud-provider']=_0x4a1715,_0x4b5658[_0x526613(0xe2)]=_0x463f41,_0x4b5658[_0x526613(0x1b0)]=_0x175e2e,_0x53f919[_0x526613(0xef)](HELP_HEADER_MESSAGE['pre_check'])[_0x526613(0x1a2)](HELP_FOOTER_MESSAGE)[_0x526613(0x11c)](_0x4b5658)[_0x526613(0x109)](_0x1b3ae2[_0x526613(0x166)])['argv'];};async function inputValidation(_0x5dd221,_0x160a43){const _0x598e1e=a17_0x13a3af,_0x376950={'gOeoi':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','RJifK':_0x598e1e(0x12d),'oAbNQ':_0x598e1e(0x188),'ozusw':_0x598e1e(0xc4),'KSSLr':_0x598e1e(0x19c),'iUJxG':_0x598e1e(0x109),'jGkWD':_0x598e1e(0x17b),'TEEdM':_0x598e1e(0x127),'mRqFa':_0x598e1e(0x17e),'HYQZP':function(_0x57533a,_0x5eae68){return _0x57533a+_0x5eae68;},'fUecv':'Success','jlpGq':_0x598e1e(0x121),'AKyJT':function(_0x997cfb,_0xf8d706){return _0x997cfb||_0xf8d706;},'MaOSu':_0x598e1e(0x1a8),'KtrMN':_0x598e1e(0xe2),'gLpxg':'error','XtFLs':'is\x20already\x20present','rPMeS':_0x598e1e(0x135),'qxABS':function(_0x41a78c,_0x52f18a){return _0x41a78c===_0x52f18a;},'XAsbW':_0x598e1e(0x11a),'TuaYp':'yTOZe','cuxKA':function(_0x1c655f,_0x451d26){return _0x1c655f!==_0x451d26;},'yVOnx':'PvMAH','DAxck':'nSSLS','ryWwK':_0x598e1e(0x14f),'TSWxU':_0x598e1e(0x119),'KQaCu':_0x598e1e(0xed),'gMipR':_0x598e1e(0x150),'RcXLb':function(_0x245428,_0x321f06){return _0x245428>_0x321f06;},'SLRJv':function(_0x337084,_0x254f33){return _0x337084===_0x254f33;},'OtnXf':_0x598e1e(0x15c),'pzJib':'CpnOz','DVSVx':function(_0x55932f,_0x486e03,_0x5ead80,_0x49a9c6,_0xd4a7b9,_0x5dec12,_0x1c1c2e,_0x48652d){return _0x55932f(_0x486e03,_0x5ead80,_0x49a9c6,_0xd4a7b9,_0x5dec12,_0x1c1c2e,_0x48652d);},'ZerTy':_0x598e1e(0x17a),'WtZDI':'pre-check-cluster-args-not-passed','StbIg':function(_0x25e874,_0x26d8d4){return _0x25e874!==_0x26d8d4;},'hdjft':_0x598e1e(0xec),'fGZXV':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','QtuOV':function(_0x3e42eb,_0x21828c,_0x2b68e2,_0x133831,_0x3d4f22,_0x29577a,_0x21059e,_0x1e6eda){return _0x3e42eb(_0x21828c,_0x2b68e2,_0x133831,_0x3d4f22,_0x29577a,_0x21059e,_0x1e6eda);},'wbmwS':'cloud-provider-not-supported','IpJUt':_0x598e1e(0x10f),'UsEgQ':function(_0x51253d,_0x22ae9c){return _0x51253d!==_0x22ae9c;},'WByma':_0x598e1e(0x182),'mLIzc':_0x598e1e(0x18f),'hiHDM':'GET','GkSGZ':function(_0x77c3a3,_0x1d8aca,_0x45d6bf){return _0x77c3a3(_0x1d8aca,_0x45d6bf);},'LkOcF':function(_0x20f922,_0x2c583d,_0x21e906,_0x1a9460,_0x59b754,_0x64864f){return _0x20f922(_0x2c583d,_0x21e906,_0x1a9460,_0x59b754,_0x64864f);},'twSGx':_0x598e1e(0xd7),'njOFq':_0x598e1e(0x1b0),'DWMtb':_0x598e1e(0x129),'insvD':function(_0x4aea76,_0x3b3171){return _0x4aea76(_0x3b3171);},'foYzw':_0x598e1e(0x131),'eyeAi':_0x598e1e(0x105),'MAyPI':function(_0x53e780,_0x4de8cd,_0x2b6a3b,_0x1a650f,_0x268baa,_0x191c5c,_0x10be2e,_0x33a05b){return _0x53e780(_0x4de8cd,_0x2b6a3b,_0x1a650f,_0x268baa,_0x191c5c,_0x10be2e,_0x33a05b);},'oHjuB':_0x598e1e(0x112),'gfphu':_0x598e1e(0x159),'cqUbL':_0x598e1e(0xcd),'xBnKN':_0x598e1e(0x157),'SAedF':_0x598e1e(0x179),'bysUv':function(_0x405148,_0x50aa6f){return _0x405148===_0x50aa6f;},'wNdBT':_0x598e1e(0x164),'AjMPF':function(_0x3b0401,_0x5184d6){return _0x3b0401!==_0x5184d6;},'VltEu':_0x598e1e(0xcb)};let _0x4d5d45;try{if(_0x376950[_0x598e1e(0x16a)](_0x376950['XAsbW'],_0x376950['TuaYp']))_0x3a5755['info'](_0x598e1e(0x11d)+_0x7969e5[_0x598e1e(0xdb)]+'\x20'),_0x19f2f1['cloudProvider']=_0x3362b5[_0x598e1e(0xdb)];else{if(_0x5dd221[_0x598e1e(0xd4)]||_0x5dd221[_0x598e1e(0x1a9)]||_0x5dd221[_0x598e1e(0xe2)]){if(_0x376950[_0x598e1e(0x124)](_0x376950[_0x598e1e(0x134)],_0x376950[_0x598e1e(0x134)])){const _0x13f01b={};_0x13f01b['description']=_0x376950['gOeoi'],_0x13f01b[_0x598e1e(0x165)]=_0x376950[_0x598e1e(0x128)];const _0x33e31c={};_0x33e31c[_0x598e1e(0x107)]=_0x376950[_0x598e1e(0x19d)],_0x33e31c['type']=_0x376950[_0x598e1e(0x128)];const _0x507757={};_0x507757[_0x598e1e(0x107)]=_0x376950['ozusw'],_0x507757[_0x598e1e(0x165)]=_0x376950[_0x598e1e(0x128)];const _0x14cc98={};_0x14cc98['description']=_0x376950['KSSLr'],_0x14cc98[_0x598e1e(0x165)]=_0x376950[_0x598e1e(0x128)];const _0x4979d4={};return _0x4979d4[_0x598e1e(0x14f)]=_0x13f01b,_0x4979d4[_0x598e1e(0x17e)]=_0x33e31c,_0x4979d4[_0x598e1e(0xe2)]=_0x507757,_0x4979d4[_0x598e1e(0x1b0)]=_0x14cc98,_0x37ebfd[_0x598e1e(0xef)](_0x5216f8[_0x598e1e(0x19a)])['epilogue'](_0x38a2bb)['options'](_0x4979d4)[_0x598e1e(0x109)](_0x376950['iUJxG'])[_0x598e1e(0x16e)];}else{const _0x2d4482=[];!_0x5dd221[_0x598e1e(0xd4)]&&(_0x376950['qxABS'](_0x376950[_0x598e1e(0x1a3)],_0x376950[_0x598e1e(0x1a3)])?_0x2d4482[_0x598e1e(0xe1)](_0x376950[_0x598e1e(0x19e)]):_0x1ea22c=_0xfe680d);;!_0x5dd221[_0x598e1e(0x1a9)]&&(_0x376950[_0x598e1e(0x16a)](_0x376950[_0x598e1e(0x11f)],_0x376950['TSWxU'])?_0x2d4482[_0x598e1e(0xe1)](_0x376950[_0x598e1e(0x14a)]):(_0x5593fc+=_0x376950[_0x598e1e(0x14c)],_0x59dc45+='\x20\x20Message:\x20'+(_0xe34cfb['message']||_0x376950[_0x598e1e(0xd2)])+'\x0a',_0x3ca9f0+=_0x598e1e(0x10a)+(_0x276cad[_0x598e1e(0x101)]||_0x376950[_0x598e1e(0xd2)])+'\x0a',_0xaf38a1+=_0x598e1e(0x15b)+(_0x177033[_0x598e1e(0x12e)]||_0x376950[_0x598e1e(0xd2)])+'\x0a'));;!_0x5dd221['region']&&(_0x376950['cuxKA'](_0x376950[_0x598e1e(0x11b)],_0x376950['gMipR'])?_0x2d4482[_0x598e1e(0xe1)](_0x376950['KtrMN']):_0x220334[_0x598e1e(0xe1)](_0x376950['mRqFa']));;if(_0x376950[_0x598e1e(0x140)](_0x2d4482[_0x598e1e(0x113)],0x0)){if(_0x376950[_0x598e1e(0x169)](_0x376950[_0x598e1e(0x146)],_0x376950[_0x598e1e(0x116)])){const {header:_0x87f6f1,response:_0x4b7fc9}=_0x16a0ed,{status:_0x370898,data:_0x248e3d,error:_0x19ed84}=_0x4b7fc9;_0x5af134+=_0x87f6f1+'\x20#'+_0x376950[_0x598e1e(0xf0)](_0x3d5d55,0x1)+'\x0a',_0x170835+=_0x598e1e(0x16c)+(_0x370898?_0x376950[_0x598e1e(0x111)]:_0x376950[_0x598e1e(0x19f)])+'\x0a',_0x51e589+=_0x598e1e(0xfc)+_0x376950[_0x598e1e(0x100)](_0x248e3d,_0x376950['TEEdM'])+'\x0a',_0x19ed84&&(_0x1c5903+=_0x376950[_0x598e1e(0x14c)],_0x29a81d+=_0x598e1e(0x13c)+(_0x19ed84[_0x598e1e(0x16f)]||_0x376950[_0x598e1e(0xd2)])+'\x0a',_0x13bbd4+=_0x598e1e(0x10a)+(_0x19ed84[_0x598e1e(0x101)]||_0x376950[_0x598e1e(0xd2)])+'\x0a',_0x287dc7+=_0x598e1e(0x15b)+(_0x19ed84[_0x598e1e(0x12e)]||_0x376950['TEEdM'])+'\x0a'),_0x98ca69+='\x0a\x0a';}else _0x4d5d45='Missing\x20required\x20arguments:\x20'+_0x2d4482[_0x598e1e(0xd5)](',\x20')+_0x598e1e(0x148),await _0x376950[_0x598e1e(0xea)](reportToGalactusAndSendToEDS,_0x5dd221,_0x160a43,_0x4d5d45,messageTypes['ERROR'],_0x376950[_0x598e1e(0x1a6)],_0x376950[_0x598e1e(0x177)],_0x376950[_0x598e1e(0xf5)]),logger[_0x598e1e(0x1a1)](_0x4d5d45),process[_0x598e1e(0xc9)](0x1);}!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x598e1e(0x18d)](_0x5dd221['cloudProvider'][_0x598e1e(0x17c)]())&&(_0x376950[_0x598e1e(0x18c)](_0x376950[_0x598e1e(0x1a4)],_0x376950[_0x598e1e(0x1a4)])?_0x1f4729+=_0x598e1e(0xf1)+_0xa8f096[_0x598e1e(0xd4)]+_0x598e1e(0x126):(_0x4d5d45=_0x376950[_0x598e1e(0x17f)],await _0x376950[_0x598e1e(0x110)](reportToGalactusAndSendToEDS,_0x5dd221,_0x160a43,_0x4d5d45,messageTypes[_0x598e1e(0x10d)],_0x376950[_0x598e1e(0x1a6)],_0x376950['wbmwS'],_0x376950['gLpxg']),logger[_0x598e1e(0x1a1)](_0x4d5d45),!_0x5dd221[_0x598e1e(0x1a9)]&&(_0x376950[_0x598e1e(0x18c)](_0x376950[_0x598e1e(0xe9)],_0x376950[_0x598e1e(0xe9)])?(_0x2b3c40[_0x598e1e(0x11e)]('['+_0x13a6b2+_0x598e1e(0x10c)+_0x5959d9[_0x598e1e(0x197)]+_0x598e1e(0x14d)+_0x2a3dd7['data']+_0x598e1e(0x10b)+_0x5a22d1['error']),_0x31ab98[_0x598e1e(0x1a1)]&&_0x4d3678[_0x598e1e(0x1a1)]('error\x20stack\x20:\x20'+_0x397034[_0x598e1e(0x1a1)][_0x598e1e(0x12e)])):(logger[_0x598e1e(0x11e)](_0x598e1e(0x11d)+DEFAULT_CLUSTER_DETAILS[_0x598e1e(0xdb)]+'\x20'),_0x5dd221[_0x598e1e(0x1a9)]=DEFAULT_CLUSTER_DETAILS[_0x598e1e(0xdb)])))),global_registry['clusterName']=_0x5dd221[_0x598e1e(0xd4)],global_registry[_0x598e1e(0x1a9)]=_0x5dd221['cloudProvider'],global_registry[_0x598e1e(0x15e)]=_0x5dd221[_0x598e1e(0xe2)];}}else{if(_0x5dd221['gridProfile']){if(_0x376950['UsEgQ'](_0x376950['WByma'],_0x376950['mLIzc'])){global_registry[_0x598e1e(0x13a)]=_0x5dd221[_0x598e1e(0x13a)],logger[_0x598e1e(0x145)](_0x598e1e(0x194)+_0x5dd221[_0x598e1e(0x13a)]);const _0x3d50fd='https://'+AG_API_URL+_0x598e1e(0x115),_0x428fc6={};_0x428fc6['method']=_0x376950[_0x598e1e(0x132)],_0x428fc6[_0x598e1e(0x1a5)]=global_registry[_0x598e1e(0x187)],_0x428fc6[_0x598e1e(0x1a0)]=![];const _0x546149=_0x428fc6,_0x42377f=await _0x376950[_0x598e1e(0xc2)](got,_0x3d50fd,_0x546149),_0xb79084=await _0x376950[_0x598e1e(0x1aa)](responseValidation,_0x42377f,_0x376950[_0x598e1e(0x108)],_0x376950[_0x598e1e(0x1b1)],_0x5dd221,_0x160a43);let _0x163197={};if(_0x376950[_0x598e1e(0x16a)](_0xb79084,0xc8)){if(_0x376950[_0x598e1e(0x169)](_0x376950[_0x598e1e(0x143)],_0x376950[_0x598e1e(0x143)])){const _0x36c011=JSON[_0x598e1e(0x173)](_0x42377f[_0x598e1e(0x191)]),_0x4630e8=_0x36c011[_0x598e1e(0x175)](_0x385ba4=>_0x385ba4[_0x598e1e(0xeb)]===_0x5dd221[_0x598e1e(0x13a)])||null;_0x376950[_0x598e1e(0x138)](isUndefined,_0x4630e8)?_0x376950[_0x598e1e(0xe5)](_0x376950['foYzw'],_0x376950[_0x598e1e(0xee)])?(_0x4d5d45='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x5dd221[_0x598e1e(0x13a)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x376950['MAyPI'](reportToGalactusAndSendToEDS,_0x5dd221,_0x160a43,_0x4d5d45,messageTypes[_0x598e1e(0x10d)],_0x376950[_0x598e1e(0x1a6)],_0x376950[_0x598e1e(0x168)],_0x376950[_0x598e1e(0xf5)]),logger['error'](_0x4d5d45),process['exit'](0x1)):_0x226f18[_0x598e1e(0xc9)](0x1):_0x376950['SLRJv'](_0x376950['gfphu'],_0x376950[_0x598e1e(0xf8)])?_0x163197=_0x4630e8:(_0x160f5a['error'](_0x376950['MaOSu']),_0x587c1c['exit'](0x1));}else _0x9574bc[_0x598e1e(0xe1)](_0x376950['KtrMN']);}else _0x376950['SLRJv'](_0x376950[_0x598e1e(0x12f)],_0x376950[_0x598e1e(0x190)])?_0x4585dc[_0x598e1e(0x11e)](_0x598e1e(0x178)+_0x5a7486[_0x598e1e(0xd4)]+_0x598e1e(0x151)):process['exit'](0x1);const _0x5f2c8a={};_0x5f2c8a['type']=WS_EVENTS[_0x598e1e(0x1a7)],_0x5f2c8a[_0x598e1e(0x16f)]=_0x376950[_0x598e1e(0x192)],webSocketUtils[_0x598e1e(0x15d)](_0x160a43,_0x5f2c8a),global_registry[_0x598e1e(0x1a9)]=_0x163197[_0x598e1e(0x1a9)],global_registry[_0x598e1e(0x15e)]=_0x163197[_0x598e1e(0xe2)],global_registry['clusterName']=_0x163197[_0x598e1e(0xd4)];}else{const _0x2f3a28={};_0x2f3a28[_0x598e1e(0x165)]=_0x5ecdfe[_0x598e1e(0x1a7)],_0x2f3a28[_0x598e1e(0x16f)]=_0x82efc0,_0x27916e[_0x598e1e(0x15d)](_0x5b32bd,_0x2f3a28,_0x376950['gLpxg'],!![]);}}else _0x376950['bysUv'](_0x376950[_0x598e1e(0x117)],_0x376950[_0x598e1e(0x117)])?(logger[_0x598e1e(0x1a1)](_0x376950[_0x598e1e(0xf7)]),process[_0x598e1e(0xc9)](0x1)):_0x47a58f+=_0x598e1e(0xf1)+_0x303966[_0x598e1e(0xd4)]+'\x20'+(_0x3a6edd?_0x376950[_0x598e1e(0xe6)]:_0x376950[_0x598e1e(0x18a)])+'\x0a\x0a';}}}catch(_0x5a43a3){_0x376950[_0x598e1e(0xd0)](_0x376950[_0x598e1e(0xdd)],_0x376950[_0x598e1e(0xdd)])?_0x1cd88e[_0x598e1e(0x1a1)](_0x598e1e(0xe3)+_0x418ae9[_0x598e1e(0x1a1)]['stack']):(_0x4d5d45=_0x598e1e(0xfd)+_0x5a43a3+':\x20'+_0x5a43a3[_0x598e1e(0x12e)],logger['error'](_0x4d5d45),await _0x376950[_0x598e1e(0x110)](reportToGalactusAndSendToEDS,_0x5dd221,_0x160a43,_0x4d5d45,messageTypes[_0x598e1e(0x10d)],_0x376950[_0x598e1e(0x1a6)],_0x376950['wbmwS'],_0x376950[_0x598e1e(0xf5)]),process['exit'](0x1));}}function printResponse(_0x1c8339,_0x1337e5){const _0x3ef998=a17_0x13a3af,_0x41525c={};_0x41525c[_0x3ef998(0xf9)]=_0x3ef998(0x14f),_0x41525c[_0x3ef998(0x186)]=function(_0x2633e3,_0x3f514d){return _0x2633e3===_0x3f514d;},_0x41525c['OAMbh']=_0x3ef998(0x17d),_0x41525c[_0x3ef998(0x152)]='NXvyX';const _0x580b57=_0x41525c;logger[_0x3ef998(0x11e)]('['+_0x1c8339+_0x3ef998(0x10c)+_0x1337e5[_0x3ef998(0x197)]+_0x3ef998(0x14d)+_0x1337e5[_0x3ef998(0x13d)]+_0x3ef998(0x10b)+_0x1337e5[_0x3ef998(0x1a1)]),_0x1337e5['error']&&(_0x580b57[_0x3ef998(0x186)](_0x580b57[_0x3ef998(0x103)],_0x580b57[_0x3ef998(0x152)])?_0x439107[_0x3ef998(0xe1)](_0x580b57[_0x3ef998(0xf9)]):logger['error'](_0x3ef998(0xe3)+_0x1337e5['error']['stack']));}async function generateReport(_0x373f90,_0x1d2791){const _0x599ccb=a17_0x13a3af,_0x8f475={'GLUek':function(_0x2b0d9d,_0x357ea7){return _0x2b0d9d+_0x357ea7;},'aoXhr':_0x599ccb(0x122),'DeNCZ':'Failure','eAyJH':function(_0x5429b5,_0x240aee){return _0x5429b5||_0x240aee;},'sHpPC':_0x599ccb(0x127),'ERWSV':_0x599ccb(0x17b),'wSpcU':_0x599ccb(0xf4),'QYDvw':function(_0x501596,_0x2d87d7){return _0x501596!=_0x2d87d7;},'rdBcB':'is\x20already\x20present','EdJlx':_0x599ccb(0x135),'frZYt':function(_0x5aa84b){return _0x5aa84b();}};let _0xf826ce=_0x599ccb(0x14e)+global_registry[_0x599ccb(0x1a9)]+'\x20===\x0a\x0a';return _0x373f90['forEach']((_0xd97726,_0x37850d)=>{const _0x49fd5c=_0x599ccb,{header:_0x38cf43,response:_0x323756}=_0xd97726,{status:_0x81f55a,data:_0x2408d2,error:_0x27e147}=_0x323756;_0xf826ce+=_0x38cf43+'\x20#'+_0x8f475['GLUek'](_0x37850d,0x1)+'\x0a',_0xf826ce+=_0x49fd5c(0x16c)+(_0x81f55a?_0x8f475[_0x49fd5c(0xe4)]:_0x8f475['DeNCZ'])+'\x0a',_0xf826ce+=_0x49fd5c(0xfc)+_0x8f475[_0x49fd5c(0xfe)](_0x2408d2,_0x8f475[_0x49fd5c(0xd6)])+'\x0a',_0x27e147&&(_0xf826ce+=_0x8f475[_0x49fd5c(0x161)],_0xf826ce+=_0x49fd5c(0x13c)+(_0x27e147['message']||_0x8f475['sHpPC'])+'\x0a',_0xf826ce+=_0x49fd5c(0x10a)+(_0x27e147[_0x49fd5c(0x101)]||_0x8f475['sHpPC'])+'\x0a',_0xf826ce+=_0x49fd5c(0x15b)+(_0x27e147['stack']||_0x8f475['sHpPC'])+'\x0a'),_0xf826ce+='\x0a\x0a';}),_0xf826ce+=_0x8f475[_0x599ccb(0x1b2)],_0x8f475['QYDvw'](_0x1d2791,null)?_0xf826ce+=_0x599ccb(0xf1)+global_registry[_0x599ccb(0xd4)]+'\x20'+(_0x1d2791?_0x8f475['rdBcB']:_0x8f475[_0x599ccb(0x137)])+'\x0a\x0a':_0xf826ce+='Cluster\x20'+global_registry['clusterName']+_0x599ccb(0x126),_0xf826ce+=_0x8f475[_0x599ccb(0xd3)](getSystemMetaData),_0xf826ce;}function a17_0x5723(){const _0x3ede8a=['options','Setting\x20cloud\x20provider\x20as\x20','info','TSWxU','XixsA','Failure','Success','replace','cuxKA','bstackUsername','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','N/A','RJifK','kXjil','stringify','connectionTimeout','TLSv1_2_client_method','string','stack','cqUbL','wlFfC','GsWKn','hiHDM','pre-check-failed','yVOnx','will\x20be\x20created','Failed\x20in\x20pre-check!\x20Error:\x20','EdJlx','insvD','3660GMgZmO','gridProfile','split','\x20\x20Message:\x20','data','DzBxl','10729970qLckkE','RcXLb','getUTCHours','YZAJL','DWMtb','isTrialGridAccessible','debug','OtnXf','400023IZQTFZ','.\x20Please\x20provide\x20all\x20required\x20arguments.','readFileSync','mRqFa','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','jGkWD','\x20data\x20:\x20','===\x20Precheck\x20Report\x20-\x20','cluster-name','CvovA','`\x20already\x20exists','WzBBd','zGYmg','Whitelisted\x20browserstack','isClusterPresent','eLPUr','xeDVx','yEZNE','gLUsu','bstackAccesskey','\x20\x20Stack:\x20','RRwTx','sendEventToBackend','clusterRegion','KIAXB','utf-8','ERWSV','RWXes','getUTCMinutes','matUi','type','wCDOA','2496488MnCcsW','oHjuB','SLRJv','qxABS','password','Status:\x20','21XLWxSn','argv','message','command','Bzdhy','fVdiF','parse','UYaXt','find','DMrCw','WtZDI','Cluster\x20`','Grid\x20profile\x20fetched\x20for\x20pre-check','pre-check-grid-called','Error\x20Details:\x0a','toLowerCase','HSbSK','cloud-provider','fGZXV','dummy-grid','vqNqH','GDWGW','vJgFz','2365QrHfJi','Report\x20saved\x20in\x20','usaXV','authHeader','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','getUTCFullYear','rPMeS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','StbIg','includes','`\x20is\x20present\x20in\x20region\x20`','sIiyI','xBnKN','body','SAedF','16242PzPIVX','grid\x20profile\x20flow\x20','getUTCDate','yPCTV','status','INFO','VnnWw','pre_check','stack\x20trace\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','oAbNQ','ryWwK','jlpGq','throwHttpErrors','error','epilogue','DAxck','hdjft','headers','ZerTy','LOG','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','cloudProvider','LkOcF','`\x20,error\x20:\x20','desc','QBsls','got','header','grid-profile','njOFq','wSpcU','GkSGZ','Tool\x20Installed','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','63syXzXv','43604CPhIeG','OXHkW','BvTEy','exit','grid','dvbDC','.txt','CzHTS','eypzI','<UsernamePlaceholder>','AjMPF','credential-not-found','TEEdM','frZYt','clusterName','join','sHpPC','pre-check','agsKI','70958ccggiE','../../config/constants','CLOUD_PROVIDER','Pre-check\x20running\x20for\x20Cloud\x20-\x20','VltEu','zVUfw','delay','OJpJV','push','region','error\x20stack\x20:\x20','aoXhr','UsEgQ','XtFLs','tOAQW','9EFICxU','IpJUt','DVSVx','name','wRCvn','cQIUj','eyeAi','usage','HYQZP','Cluster\x20','Akozk','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Cluster\x20details\x0a-----------------------\x0a','gLpxg','4|0|1|3|2','MaOSu','gfphu','rjQzR','8972kAJkqC','username','Message:\x20','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','eAyJH','NzfaT','AKyJT','code','xAxOG','OAMbh','Browserstack','EZEnw','sSkmG','description','twSGx','help','\x20\x20Code:\x20','\x20error\x20:\x20',']\x20status\x20:\x20','ERROR','xnIbj','wCeZU','QtuOV','fUecv','pre-check-grid-profile-empty','length','response','/packages/cli/get-all-grid-profiles','pzJib','wNdBT','handler','uYnsE','NXPtr','KQaCu'];a17_0x5723=function(){return _0x3ede8a;};return a17_0x5723();};exports[a17_0x13a3af(0x118)]=async function(_0x2bb69c){const _0x107f74=a17_0x13a3af,_0xbc7779={'DgKuy':function(_0x194df5){return _0x194df5();},'cgcwj':function(_0x5a7530){return _0x5a7530();},'eLPUr':_0x107f74(0xf3),'Bzdhy':function(_0x47e918,_0x271131,_0x32e7cc,_0x3ab086,_0x5a3b6d,_0x5eeb56,_0x15bf15,_0x434e0a){return _0x47e918(_0x271131,_0x32e7cc,_0x3ab086,_0x5a3b6d,_0x5eeb56,_0x15bf15,_0x434e0a);},'zGYmg':_0x107f74(0x17a),'DMrCw':_0x107f74(0xd1),'Akozk':_0x107f74(0x1a1),'ujIYf':function(_0x5f3829,_0x346d41,_0xa92a64,_0x3d1ec9,_0x4cfaec,_0x4e763e,_0x29ad21){return _0x5f3829(_0x346d41,_0xa92a64,_0x3d1ec9,_0x4cfaec,_0x4e763e,_0x29ad21);},'NzfaT':function(_0x2deb4a){return _0x2deb4a();},'YZAJL':_0x107f74(0xcf),'LFlNE':'<PasswordPlaceholder>','fVdiF':function(_0x23f38c,_0x1e8ef9,_0x5eadd6){return _0x23f38c(_0x1e8ef9,_0x5eadd6);},'yEZNE':function(_0x1ddd4e,_0x2967d2,_0x5282ed,_0xe7a1a7,_0x1515fe,_0x3f34f4,_0x5c4fd4){return _0x1ddd4e(_0x2967d2,_0x5282ed,_0xe7a1a7,_0x1515fe,_0x3f34f4,_0x5c4fd4);},'eypzI':_0x107f74(0x180),'hCGcO':function(_0x40356f,_0x316696,_0x1514ac){return _0x40356f(_0x316696,_0x1514ac);},'tOAQW':'toolInstalledResp','vqNqH':_0x107f74(0xf6),'vJgFz':'accessResp','zVUfw':_0x107f74(0x144),'OJpJV':function(_0x1219cd,_0x51b59d){return _0x1219cd(_0x51b59d);},'XixsA':_0x107f74(0x12c),'RWVXb':function(_0x5b335b,_0xc4a11e,_0x4ff50b){return _0x5b335b(_0xc4a11e,_0x4ff50b);},'RWXes':'isTls1_2_SUPPORTED','OXHkW':_0x107f74(0xc3),'ZDegW':'User\x20Access','xnIbj':_0x107f74(0x154),'DzBxl':'SSL\x20Configured','UYaXt':function(_0x3ad699,_0x4957df,_0x1fe0e0){return _0x3ad699(_0x4957df,_0x1fe0e0);},'wlFfC':function(_0x19fea7,_0x3c619e){return _0x19fea7+_0x3c619e;},'sSkmG':_0x107f74(0x160),'yPCTV':function(_0x1dbdf2,_0x126e66,_0x551620,_0x58cf48,_0x309eab,_0x1063a5,_0x8fc0fa){return _0x1dbdf2(_0x126e66,_0x551620,_0x58cf48,_0x309eab,_0x1063a5,_0x8fc0fa);},'VnnWw':_0x107f74(0x133)};let _0x278583,_0x2f98ea;try{global_registry['requestId']=_0xbc7779['DgKuy'](uuidv4);!fs['existsSync'](_0xbc7779['cgcwj'](getCredentialsPath))&&(_0x2f98ea=_0xbc7779[_0x107f74(0x156)],logger[_0x107f74(0x1a1)](_0x2f98ea),await _0xbc7779[_0x107f74(0x171)](reportToGalactusAndSendToEDS,_0x2bb69c,_0x278583,_0x2f98ea,messageTypes['ERROR'],_0xbc7779['zGYmg'],_0xbc7779[_0x107f74(0x176)],_0xbc7779[_0x107f74(0xf2)]),process[_0x107f74(0xc9)](0x1));_0xbc7779['ujIYf'](sendInstrumentationEvent,_0x2bb69c,_0xbc7779[_0x107f74(0x153)],messageTypes[_0x107f74(0x198)],null,null,_0x2bb69c);const _0x38bbc6=JSON[_0x107f74(0x173)](fs[_0x107f74(0x149)](_0xbc7779[_0x107f74(0xff)](getCredentialsPath)));global_registry[_0x107f74(0x125)]=_0x38bbc6[_0x107f74(0x104)][_0x107f74(0xfb)],global_registry[_0x107f74(0x15a)]=_0x38bbc6['Browserstack'][_0x107f74(0x16b)];const _0x292296=WS_ENDPOINT[_0x107f74(0x123)](_0xbc7779[_0x107f74(0x142)],_0x38bbc6[_0x107f74(0x104)][_0x107f74(0xfb)])[_0x107f74(0x123)](_0xbc7779['LFlNE'],_0x38bbc6[_0x107f74(0x104)]['password']),_0x3610e1={};_0x3610e1['WebSocket']=ws,_0x3610e1[_0x107f74(0x12b)]=0x36ee80,_0x278583=new ReconnectingWebSocket(_0x292296,[],_0x3610e1),global_registry[_0x107f74(0x187)]=_0xbc7779['fVdiF'](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0xbc7779[_0x107f74(0x172)](inputValidation,_0x2bb69c,_0x278583),logger[_0x107f74(0x11e)](_0x107f74(0xdc)+global_registry[_0x107f74(0x1a9)]+'\x20region\x20-\x20'+global_registry[_0x107f74(0x15e)]);let _0x5a07dc=await _0xbc7779[_0x107f74(0x158)](getCloudProviderObjectWithOutInit,global_registry[_0x107f74(0x1a9)],global_registry['clusterName'],_0xbc7779[_0x107f74(0xce)],_0x278583,webSocketUtils,_0x2bb69c);const _0x5f1e8d=await _0x5a07dc['isCliToolInstalled']();_0xbc7779['hCGcO'](printResponse,_0xbc7779[_0x107f74(0xe7)],_0x5f1e8d),_0x5a07dc=await _0x5a07dc['init']();let _0x23af1f=![];try{_0x23af1f=await _0x5a07dc[_0x107f74(0x155)]();}catch(_0x426ebf){const _0x561b1b=_0xbc7779[_0x107f74(0x181)][_0x107f74(0x13b)]('|');let _0x292a5a=0x0;while(!![]){switch(_0x561b1b[_0x292a5a++]){case'0':_0x23af1f=null;continue;case'1':logger[_0x107f74(0x1a1)](_0x2f98ea);continue;case'2':await _0xbc7779[_0x107f74(0x171)](reportToGalactusAndSendToEDS,_0x2bb69c,_0x278583,_0x2f98ea,messageTypes[_0x107f74(0x10d)],_0xbc7779['zGYmg'],'cluster-check-failed-'+global_registry[_0x107f74(0x1a9)],_0xbc7779['Akozk']);continue;case'3':_0x2f98ea+='\x0a'+JSON['stringify'](_0x426ebf[_0x107f74(0x12e)]);continue;case'4':_0x2f98ea='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x107f74(0xd4)]+_0x107f74(0x18e)+global_registry[_0x107f74(0x15e)]+_0x107f74(0x1ab)+_0x426ebf;continue;}break;}}_0x23af1f&&logger[_0x107f74(0x11e)](_0x107f74(0x178)+global_registry[_0x107f74(0xd4)]+'`\x20already\x20exists');const _0x878a64=await _0x5a07dc['checkAccess']();_0xbc7779[_0x107f74(0x172)](printResponse,_0xbc7779[_0x107f74(0x183)],_0x878a64);const _0x54ed22=await _0xbc7779[_0x107f74(0xff)](curlRequest);_0xbc7779['hCGcO'](printResponse,_0xbc7779[_0x107f74(0xde)],_0x54ed22);const _0x4468d3=await _0xbc7779[_0x107f74(0xe0)](isTlsSupported,_0xbc7779[_0x107f74(0x120)]);_0xbc7779['RWVXb'](printResponse,_0xbc7779[_0x107f74(0x162)],_0x4468d3);const _0x39a2e9={};_0x39a2e9[_0x107f74(0x1af)]=_0xbc7779[_0x107f74(0xc7)],_0x39a2e9['response']=_0x5f1e8d;const _0x3068a8={};_0x3068a8[_0x107f74(0x1af)]=_0xbc7779['ZDegW'],_0x3068a8[_0x107f74(0x114)]=_0x878a64;const _0x314df8={};_0x314df8[_0x107f74(0x1af)]=_0xbc7779[_0x107f74(0x10e)],_0x314df8[_0x107f74(0x114)]=_0x54ed22;const _0x115dcd={};_0x115dcd[_0x107f74(0x1af)]=_0xbc7779[_0x107f74(0x13e)],_0x115dcd[_0x107f74(0x114)]=_0x4468d3;const _0x391b81=[_0x39a2e9,_0x3068a8,_0x314df8,_0x115dcd],_0x11616e=await _0xbc7779[_0x107f74(0x174)](generateReport,_0x391b81,_0x23af1f),_0x2dbdce=new Date(),_0x34b15c=_0x2dbdce[_0x107f74(0x189)]()+'_'+_0xbc7779[_0x107f74(0x130)](_0x2dbdce['getUTCMonth'](),0x1)+'_'+_0x2dbdce[_0x107f74(0x195)]()+'_'+_0x2dbdce[_0x107f74(0x141)]()+'_'+_0x2dbdce[_0x107f74(0x163)](),_0x4718a1='log/report_'+_0x34b15c+_0x107f74(0xcc);fs['writeFileSync'](_0x4718a1,_0x11616e,_0xbc7779[_0x107f74(0x106)]),logger['info'](_0x107f74(0x185)+_0x4718a1),process[_0x107f74(0xc9)](0x0);}catch(_0x3d39f5){let _0x232ada=_0x107f74(0x136)+_0x3d39f5+'\x20';logger[_0x107f74(0x1a1)](_0x232ada),_0x232ada+='\x0a'+JSON[_0x107f74(0x12a)](_0x3d39f5[_0x107f74(0x12e)]),logger[_0x107f74(0x145)](_0x107f74(0x19b)+_0x3d39f5[_0x107f74(0x12e)]);if(_0x278583){const _0x23ebb5={};_0x23ebb5[_0x107f74(0x165)]=WS_EVENTS['LOG'],_0x23ebb5[_0x107f74(0x16f)]=_0x232ada,webSocketUtils[_0x107f74(0x15d)](_0x278583,_0x23ebb5,_0xbc7779[_0x107f74(0xf2)],!![]);}await webSocketUtils[_0x107f74(0xdf)](0x7d0);const _0x15b71e={};_0x15b71e[_0x107f74(0x1a1)]=_0x232ada,await _0xbc7779[_0x107f74(0x196)](sendInstrumentationEvent,_0x2bb69c,_0xbc7779[_0x107f74(0x153)],messageTypes[_0x107f74(0x10d)],_0xbc7779[_0x107f74(0x199)],_0x15b71e,_0x2bb69c),process[_0x107f74(0xc9)](0x1);}};
1
+ const a17_0x1af37d=a17_0x1271;(function(_0x149efb,_0x267dce){const _0x2973fc=a17_0x1271,_0x5ed090=_0x149efb();while(!![]){try{const _0x216bc8=parseInt(_0x2973fc(0x297))/0x1*(-parseInt(_0x2973fc(0x263))/0x2)+-parseInt(_0x2973fc(0x245))/0x3+parseInt(_0x2973fc(0x1f6))/0x4*(parseInt(_0x2973fc(0x265))/0x5)+parseInt(_0x2973fc(0x284))/0x6+-parseInt(_0x2973fc(0x236))/0x7*(parseInt(_0x2973fc(0x2d5))/0x8)+-parseInt(_0x2973fc(0x21a))/0x9+parseInt(_0x2973fc(0x2d3))/0xa;if(_0x216bc8===_0x267dce)break;else _0x5ed090['push'](_0x5ed090['shift']());}catch(_0x4585a0){_0x5ed090['push'](_0x5ed090['shift']());}}}(a17_0x47f8,0xf3bf2));function a17_0x1271(_0xca05e6,_0x4ebe5d){const _0x47f8d0=a17_0x47f8();return a17_0x1271=function(_0x12717a,_0x141881){_0x12717a=_0x12717a-0x1d9;let _0x2d2dab=_0x47f8d0[_0x12717a];return _0x2d2dab;},a17_0x1271(_0xca05e6,_0x4ebe5d);}const fs=require('fs'),ws=require('ws'),got=require(a17_0x1af37d(0x1e7)),{v4:uuidv4}=require(a17_0x1af37d(0x23d)),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x1af37d(0x28f)),{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_0x1af37d(0x293)),{getCloudProviderObjectWithOutInit}=require(a17_0x1af37d(0x29e)),webSocketUtils=require(a17_0x1af37d(0x1e8)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x1af37d(0x1fe)]='grid',exports[a17_0x1af37d(0x246)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x1af37d(0x224)]=function(_0x67df9f){const _0x4bfb66=a17_0x1af37d,_0x50b90c={};_0x50b90c[_0x4bfb66(0x27f)]=_0x4bfb66(0x23b),_0x50b90c[_0x4bfb66(0x1f8)]='string',_0x50b90c[_0x4bfb66(0x237)]=_0x4bfb66(0x2c2),_0x50b90c[_0x4bfb66(0x2b5)]=_0x4bfb66(0x2ca),_0x50b90c[_0x4bfb66(0x1e9)]=_0x4bfb66(0x23e),_0x50b90c[_0x4bfb66(0x227)]=_0x4bfb66(0x1e0);const _0x567f53=_0x50b90c,_0x96c31d={};_0x96c31d[_0x4bfb66(0x2ad)]=_0x567f53[_0x4bfb66(0x27f)],_0x96c31d[_0x4bfb66(0x2dd)]=_0x567f53[_0x4bfb66(0x1f8)];const _0x1f825e={};_0x1f825e[_0x4bfb66(0x2ad)]=_0x567f53[_0x4bfb66(0x237)],_0x1f825e[_0x4bfb66(0x2dd)]=_0x567f53[_0x4bfb66(0x1f8)];const _0x22e3d2={};_0x22e3d2[_0x4bfb66(0x2ad)]=_0x567f53['Ehhsx'],_0x22e3d2[_0x4bfb66(0x2dd)]=_0x567f53[_0x4bfb66(0x1f8)];const _0x5a3c47={};_0x5a3c47[_0x4bfb66(0x2ad)]=_0x567f53['exPgA'],_0x5a3c47[_0x4bfb66(0x2dd)]=_0x567f53[_0x4bfb66(0x1f8)];const _0x15d312={};return _0x15d312[_0x4bfb66(0x2c5)]=_0x96c31d,_0x15d312['cloud-provider']=_0x1f825e,_0x15d312[_0x4bfb66(0x22e)]=_0x22e3d2,_0x15d312[_0x4bfb66(0x1db)]=_0x5a3c47,_0x67df9f[_0x4bfb66(0x1e3)](HELP_HEADER_MESSAGE[_0x4bfb66(0x291)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x15d312)['help'](_0x567f53[_0x4bfb66(0x227)])[_0x4bfb66(0x22b)];};async function inputValidation(_0x4b517,_0x2e0463){const _0x428d5b=a17_0x1af37d,_0x101b7b={'UwiKr':'Error\x20Details:\x0a','tONTO':_0x428d5b(0x259),'VDtRZ':'error','wlMZg':_0x428d5b(0x1e6),'UfSBG':function(_0x3301f2,_0x25d4df){return _0x3301f2+_0x25d4df;},'qRrgQ':'Success','ZvMuC':_0x428d5b(0x261),'rzeeF':function(_0x4b4135,_0x4d5644){return _0x4b4135||_0x4d5644;},'YEdEm':_0x428d5b(0x22e),'aeerk':'cluster-name','LVLxP':_0x428d5b(0x23b),'ZOAdQ':_0x428d5b(0x24f),'mjuuU':_0x428d5b(0x2c2),'xHoSL':_0x428d5b(0x2ca),'ITFLm':_0x428d5b(0x23e),'eiBYB':_0x428d5b(0x1e0),'KYnDp':_0x428d5b(0x286),'yCbhO':_0x428d5b(0x1ef),'XUsLz':function(_0x3b469a,_0x5a432c){return _0x3b469a!==_0x5a432c;},'oSSnu':_0x428d5b(0x1f9),'GqtIu':function(_0x33987b,_0x2927da){return _0x33987b===_0x2927da;},'plyYd':_0x428d5b(0x21d),'KJvrp':_0x428d5b(0x21e),'bKyuw':function(_0x424f03,_0x1fd9ea){return _0x424f03!==_0x1fd9ea;},'qyruQ':'qIQev','nqRfj':_0x428d5b(0x2d1),'KmOwR':function(_0x5ba1dd,_0x4e1c97){return _0x5ba1dd!==_0x4e1c97;},'BrnoJ':_0x428d5b(0x24d),'QiplA':'cloud-provider','ziDCc':_0x428d5b(0x25c),'WAbXD':_0x428d5b(0x2c0),'PDaGS':function(_0x41a534,_0x1ae36e){return _0x41a534>_0x1ae36e;},'arNgv':_0x428d5b(0x21f),'QcWpI':function(_0x2d7755,_0x1bc5eb,_0xd8da20,_0x35a33d,_0x50a217,_0x51bc68,_0x2725bd,_0x2f0225){return _0x2d7755(_0x1bc5eb,_0xd8da20,_0x35a33d,_0x50a217,_0x51bc68,_0x2725bd,_0x2f0225);},'KFqbT':'pre-check-grid-called','PMESL':_0x428d5b(0x231),'gsBwv':_0x428d5b(0x26b),'UFnzd':_0x428d5b(0x1de),'SXeby':_0x428d5b(0x2d9),'jfKeS':_0x428d5b(0x294),'SGMBB':function(_0x4ea533,_0x41f8b6){return _0x4ea533!==_0x41f8b6;},'aDXtu':_0x428d5b(0x2ce),'twxyd':_0x428d5b(0x1ed),'MfpQF':_0x428d5b(0x26f),'naMpt':_0x428d5b(0x25b),'jDNTn':function(_0x1100ed,_0x6a9dd4,_0x42e1cb){return _0x1100ed(_0x6a9dd4,_0x42e1cb);},'YOQmn':function(_0x280100,_0x394fee,_0x1c9c3b,_0x29868d,_0x4a9bce,_0x3a2759){return _0x280100(_0x394fee,_0x1c9c3b,_0x29868d,_0x4a9bce,_0x3a2759);},'bYDwe':'pre-check','UReYv':'grid-profile','YwYJJ':function(_0x59e9eb,_0x1156b8){return _0x59e9eb===_0x1156b8;},'ZwXcn':function(_0x1cc06b,_0x5a65ea){return _0x1cc06b!==_0x5a65ea;},'rkjfj':_0x428d5b(0x2bd),'QaApu':_0x428d5b(0x281),'CwtZV':function(_0x1c072e,_0x5da9fd){return _0x1c072e(_0x5da9fd);},'hCTuX':_0x428d5b(0x29a),'JcRIl':_0x428d5b(0x222),'Dqpvf':function(_0x4a4dfe,_0xb6c7fc){return _0x4a4dfe!==_0xb6c7fc;},'noWbB':_0x428d5b(0x28b),'hVXdi':function(_0x4a5130,_0x1edcef){return _0x4a5130!==_0x1edcef;},'tGxKo':'KubBI','aHdQO':_0x428d5b(0x221),'KcIol':_0x428d5b(0x2a7),'yWgNh':'XMIoQ','XwthL':function(_0x3bce39,_0x2bd116){return _0x3bce39!==_0x2bd116;},'SWUIa':_0x428d5b(0x204),'Lkfyi':_0x428d5b(0x219),'RGCmy':function(_0x5589c5,_0x27e709,_0x4d8ad8,_0x1f4d64,_0x44da47,_0x34b8a7,_0x4b6032,_0xc79388){return _0x5589c5(_0x27e709,_0x4d8ad8,_0x1f4d64,_0x44da47,_0x34b8a7,_0x4b6032,_0xc79388);}};let _0x52f604;try{if(_0x101b7b['XUsLz'](_0x101b7b[_0x428d5b(0x2b1)],_0x101b7b[_0x428d5b(0x2b1)]))_0x559763+=_0x101b7b[_0x428d5b(0x285)],_0x4273f1+=_0x428d5b(0x258)+(_0x211462[_0x428d5b(0x216)]||_0x101b7b[_0x428d5b(0x29b)])+'\x0a',_0xb728d0+='\x20\x20Code:\x20'+(_0x6ee806[_0x428d5b(0x277)]||_0x101b7b['tONTO'])+'\x0a',_0x2c7a8d+=_0x428d5b(0x229)+(_0x120d8a[_0x428d5b(0x273)]||_0x101b7b['tONTO'])+'\x0a';else{if(_0x4b517[_0x428d5b(0x20b)]||_0x4b517[_0x428d5b(0x270)]||_0x4b517['region']){if(_0x101b7b[_0x428d5b(0x2aa)](_0x101b7b[_0x428d5b(0x20f)],_0x101b7b[_0x428d5b(0x262)])){const _0x18bf52={};_0x18bf52['type']=_0x17a196[_0x428d5b(0x247)],_0x18bf52[_0x428d5b(0x216)]=_0x46a838,_0x6c701e['sendEventToBackend'](_0x481e96,_0x18bf52,_0x101b7b[_0x428d5b(0x234)],!![]);}else{const _0x176556=[];!_0x4b517[_0x428d5b(0x20b)]&&(_0x101b7b[_0x428d5b(0x2d2)](_0x101b7b[_0x428d5b(0x23c)],_0x101b7b[_0x428d5b(0x20d)])?_0x176556[_0x428d5b(0x278)](_0x101b7b[_0x428d5b(0x2b4)]):(_0x4092d4[_0x428d5b(0x209)](_0x428d5b(0x28e)+_0x192ab1[_0x428d5b(0x200)]+'\x20'),_0x347cce[_0x428d5b(0x270)]=_0x4a6130[_0x428d5b(0x200)]));;!_0x4b517[_0x428d5b(0x270)]&&(_0x101b7b[_0x428d5b(0x1f0)](_0x101b7b[_0x428d5b(0x268)],_0x101b7b[_0x428d5b(0x268)])?_0x1f65bb['info']('Cluster\x20`'+_0x23d0bc[_0x428d5b(0x20b)]+_0x428d5b(0x26c)):_0x176556['push'](_0x101b7b['QiplA']));;!_0x4b517['region']&&(_0x101b7b[_0x428d5b(0x1e4)](_0x101b7b[_0x428d5b(0x2b3)],_0x101b7b[_0x428d5b(0x212)])?_0x176556[_0x428d5b(0x278)](_0x101b7b['YEdEm']):_0x51c862+=_0x428d5b(0x298)+_0x4cb539[_0x428d5b(0x20b)]+_0x428d5b(0x2b6));;_0x101b7b[_0x428d5b(0x24c)](_0x176556['length'],0x0)&&(_0x101b7b[_0x428d5b(0x2aa)](_0x101b7b[_0x428d5b(0x267)],_0x101b7b[_0x428d5b(0x267)])?(_0x52f604='Missing\x20required\x20arguments:\x20'+_0x176556[_0x428d5b(0x25e)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x101b7b[_0x428d5b(0x243)](reportToGalactusAndSendToEDS,_0x4b517,_0x2e0463,_0x52f604,messageTypes[_0x428d5b(0x29f)],_0x101b7b[_0x428d5b(0x214)],_0x101b7b['PMESL'],_0x101b7b[_0x428d5b(0x234)]),logger['error'](_0x52f604),process[_0x428d5b(0x252)](0x1)):_0x5e3107['error'](_0x428d5b(0x206)+_0x3a1729['error'][_0x428d5b(0x273)]));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x428d5b(0x2b8)](_0x4b517[_0x428d5b(0x270)][_0x428d5b(0x27c)]())){if(_0x101b7b[_0x428d5b(0x2d2)](_0x101b7b[_0x428d5b(0x2d6)],_0x101b7b[_0x428d5b(0x239)]))_0x52f604=_0x101b7b['SXeby'],await _0x101b7b[_0x428d5b(0x243)](reportToGalactusAndSendToEDS,_0x4b517,_0x2e0463,_0x52f604,messageTypes['ERROR'],_0x101b7b[_0x428d5b(0x214)],_0x101b7b[_0x428d5b(0x23a)],_0x101b7b[_0x428d5b(0x234)]),logger['error'](_0x52f604),!_0x4b517[_0x428d5b(0x270)]&&(_0x101b7b[_0x428d5b(0x254)](_0x101b7b[_0x428d5b(0x24a)],_0x101b7b['aDXtu'])?(_0x23558d[_0x428d5b(0x2b0)](_0x101b7b['wlMZg']),_0x404691[_0x428d5b(0x252)](0x1)):(logger['info'](_0x428d5b(0x28e)+DEFAULT_CLUSTER_DETAILS[_0x428d5b(0x200)]+'\x20'),_0x4b517['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x428d5b(0x200)]));else{const {header:_0x318d5f,response:_0x303b10}=_0x34a5be,{status:_0x3ca684,data:_0x2748bd,error:_0x33a1f8}=_0x303b10;_0x2925c4+=_0x318d5f+'\x20#'+_0x101b7b['UfSBG'](_0x4cc474,0x1)+'\x0a',_0x3910f3+=_0x428d5b(0x1f3)+(_0x3ca684?_0x101b7b[_0x428d5b(0x21c)]:_0x101b7b[_0x428d5b(0x244)])+'\x0a',_0x3a6623+=_0x428d5b(0x1fa)+_0x101b7b[_0x428d5b(0x2a9)](_0x2748bd,_0x101b7b[_0x428d5b(0x29b)])+'\x0a',_0x33a1f8&&(_0x27fe55+=_0x101b7b[_0x428d5b(0x285)],_0x5362c8+=_0x428d5b(0x258)+(_0x33a1f8[_0x428d5b(0x216)]||_0x101b7b[_0x428d5b(0x29b)])+'\x0a',_0x3577c4+=_0x428d5b(0x1ee)+(_0x33a1f8['code']||_0x101b7b[_0x428d5b(0x29b)])+'\x0a',_0x19a173+=_0x428d5b(0x229)+(_0x33a1f8[_0x428d5b(0x273)]||_0x101b7b[_0x428d5b(0x29b)])+'\x0a'),_0x56ef5c+='\x0a\x0a';}}global_registry['clusterName']=_0x4b517[_0x428d5b(0x20b)],global_registry['cloudProvider']=_0x4b517[_0x428d5b(0x270)],global_registry[_0x428d5b(0x2da)]=_0x4b517['region'];}}else{if(_0x4b517[_0x428d5b(0x288)]){if(_0x101b7b['XUsLz'](_0x101b7b[_0x428d5b(0x202)],_0x101b7b[_0x428d5b(0x2bf)])){global_registry[_0x428d5b(0x288)]=_0x4b517[_0x428d5b(0x288)],logger[_0x428d5b(0x1fb)](_0x428d5b(0x20a)+_0x4b517[_0x428d5b(0x288)]);const _0x118b9e=_0x428d5b(0x25f)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x25a244={};_0x25a244[_0x428d5b(0x255)]=_0x101b7b[_0x428d5b(0x2be)],_0x25a244[_0x428d5b(0x225)]=global_registry['authHeader'],_0x25a244[_0x428d5b(0x2af)]=![];const _0x455ebe=_0x25a244,_0x1d8448=await _0x101b7b[_0x428d5b(0x27e)](got,_0x118b9e,_0x455ebe),_0x509734=await _0x101b7b[_0x428d5b(0x25a)](responseValidation,_0x1d8448,_0x101b7b[_0x428d5b(0x1f2)],_0x101b7b[_0x428d5b(0x207)],_0x4b517,_0x2e0463);let _0x3a6816={};if(_0x101b7b[_0x428d5b(0x2ae)](_0x509734,0xc8)){if(_0x101b7b[_0x428d5b(0x28a)](_0x101b7b[_0x428d5b(0x2b7)],_0x101b7b[_0x428d5b(0x1e2)])){const _0x270f72=JSON['parse'](_0x1d8448['body']),_0x4f635c=_0x270f72[_0x428d5b(0x292)](_0x698fd9=>_0x698fd9[_0x428d5b(0x1f4)]===_0x4b517['gridProfile'])||null;_0x101b7b[_0x428d5b(0x27a)](isUndefined,_0x4f635c)?_0x101b7b[_0x428d5b(0x2d2)](_0x101b7b[_0x428d5b(0x290)],_0x101b7b[_0x428d5b(0x290)])?_0x2ea4af[_0x428d5b(0x278)](_0x101b7b['YEdEm']):(_0x52f604=_0x428d5b(0x20c)+_0x4b517['gridProfile']+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x101b7b['QcWpI'](reportToGalactusAndSendToEDS,_0x4b517,_0x2e0463,_0x52f604,messageTypes['ERROR'],_0x101b7b[_0x428d5b(0x214)],_0x101b7b['JcRIl'],_0x101b7b[_0x428d5b(0x234)]),logger[_0x428d5b(0x2b0)](_0x52f604),process['exit'](0x1)):_0x101b7b['Dqpvf'](_0x101b7b[_0x428d5b(0x266)],_0x101b7b[_0x428d5b(0x266)])?_0x3ac3b9[_0x428d5b(0x278)](_0x101b7b[_0x428d5b(0x2b4)]):_0x3a6816=_0x4f635c;}else{const _0x43733d={};_0x43733d[_0x428d5b(0x2ad)]=_0x101b7b['LVLxP'],_0x43733d['type']=_0x101b7b['ZOAdQ'];const _0x406bad={};_0x406bad[_0x428d5b(0x2ad)]=_0x101b7b[_0x428d5b(0x1fd)],_0x406bad['type']=_0x101b7b[_0x428d5b(0x25d)];const _0x24673e={};_0x24673e[_0x428d5b(0x2ad)]=_0x101b7b[_0x428d5b(0x2d0)],_0x24673e[_0x428d5b(0x2dd)]=_0x101b7b[_0x428d5b(0x25d)];const _0x549082={};_0x549082[_0x428d5b(0x2ad)]=_0x101b7b[_0x428d5b(0x208)],_0x549082[_0x428d5b(0x2dd)]=_0x101b7b[_0x428d5b(0x25d)];const _0x3e9f25={};return _0x3e9f25[_0x428d5b(0x2c5)]=_0x43733d,_0x3e9f25[_0x428d5b(0x1ff)]=_0x406bad,_0x3e9f25[_0x428d5b(0x22e)]=_0x24673e,_0x3e9f25[_0x428d5b(0x1db)]=_0x549082,_0x1b86dd['usage'](_0x2f4687[_0x428d5b(0x291)])[_0x428d5b(0x2d8)](_0x5b3381)[_0x428d5b(0x250)](_0x3e9f25)[_0x428d5b(0x1e0)](_0x101b7b[_0x428d5b(0x280)])[_0x428d5b(0x22b)];}}else _0x101b7b[_0x428d5b(0x1eb)](_0x101b7b[_0x428d5b(0x256)],_0x101b7b[_0x428d5b(0x233)])?process[_0x428d5b(0x252)](0x1):_0x2dda5b+=_0x428d5b(0x298)+_0x164f45[_0x428d5b(0x20b)]+'\x20'+(_0x4d720b?_0x101b7b[_0x428d5b(0x228)]:_0x101b7b[_0x428d5b(0x274)])+'\x0a\x0a';const _0x389f1d={};_0x389f1d[_0x428d5b(0x2dd)]=WS_EVENTS[_0x428d5b(0x247)],_0x389f1d['message']=_0x101b7b[_0x428d5b(0x2ba)],webSocketUtils[_0x428d5b(0x23f)](_0x2e0463,_0x389f1d),global_registry['cloudProvider']=_0x3a6816[_0x428d5b(0x270)],global_registry[_0x428d5b(0x2da)]=_0x3a6816[_0x428d5b(0x22e)],global_registry[_0x428d5b(0x20b)]=_0x3a6816[_0x428d5b(0x20b)];}else _0x2d05cc[_0x428d5b(0x252)](0x1);}else _0x101b7b[_0x428d5b(0x2ae)](_0x101b7b[_0x428d5b(0x289)],_0x101b7b[_0x428d5b(0x289)])?(logger['error'](_0x101b7b[_0x428d5b(0x2b2)]),process[_0x428d5b(0x252)](0x1)):_0x39f97c=_0x4ea0a6;}}}catch(_0xe062ca){_0x101b7b['XwthL'](_0x101b7b[_0x428d5b(0x269)],_0x101b7b['Lkfyi'])?(_0x52f604='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0xe062ca+':\x20'+_0xe062ca[_0x428d5b(0x273)],logger['error'](_0x52f604),await _0x101b7b['RGCmy'](reportToGalactusAndSendToEDS,_0x4b517,_0x2e0463,_0x52f604,messageTypes[_0x428d5b(0x29f)],_0x101b7b['KFqbT'],_0x101b7b['jfKeS'],_0x101b7b['VDtRZ']),process[_0x428d5b(0x252)](0x1)):(_0x3f4a72[_0x428d5b(0x209)]('['+_0x338012+_0x428d5b(0x211)+_0x17275f['status']+_0x428d5b(0x235)+_0x2ee395['data']+_0x428d5b(0x271)+_0x1c2049['error']),_0x48cd72['error']&&_0x571f5a['error'](_0x428d5b(0x206)+_0x164b90[_0x428d5b(0x2b0)][_0x428d5b(0x273)]));}}function printResponse(_0x19428a,_0x528b18){const _0x3ad412=a17_0x1af37d,_0x31bb91={};_0x31bb91[_0x3ad412(0x217)]=_0x3ad412(0x1ff),_0x31bb91['MGJmh']=function(_0x4f107a,_0x47ab4a){return _0x4f107a===_0x47ab4a;},_0x31bb91[_0x3ad412(0x22a)]=_0x3ad412(0x299);const _0x1e9dab=_0x31bb91;logger[_0x3ad412(0x209)]('['+_0x19428a+_0x3ad412(0x211)+_0x528b18['status']+'\x20data\x20:\x20'+_0x528b18[_0x3ad412(0x2cb)]+'\x20error\x20:\x20'+_0x528b18[_0x3ad412(0x2b0)]),_0x528b18['error']&&(_0x1e9dab[_0x3ad412(0x2a6)](_0x1e9dab[_0x3ad412(0x22a)],_0x1e9dab[_0x3ad412(0x22a)])?logger[_0x3ad412(0x2b0)]('error\x20stack\x20:\x20'+_0x528b18[_0x3ad412(0x2b0)][_0x3ad412(0x273)]):_0x20c8ac[_0x3ad412(0x278)](_0x1e9dab[_0x3ad412(0x217)]));}function a17_0x47f8(){const _0x4a72d3=['SGMBB','method','tGxKo','response','\x20\x20Message:\x20','N/A','YOQmn','GET','MjsNn','ZOAdQ','join','https://','vTRkD','Failure','KJvrp','4vyRrOC','getUTCHours','80wMdccW','noWbB','arNgv','BrnoJ','SWUIa','EfOfk','TCoTr','`\x20already\x20exists','authHeader','pveqY','kdccD','cloudProvider','\x20error\x20:\x20','isTls1_2_SUPPORTED','stack','yCbhO','cluster-check-failed-','init','code','push','Pre-check\x20running\x20for\x20Cloud\x20-\x20','CwtZV','stringify','toLowerCase','\x20region\x20-\x20','jDNTn','nQwUF','eiBYB','SNXps','VDKqI','accessResp','5211270ELmRfa','UwiKr','is\x20already\x20present','parse','gridProfile','yWgNh','ZwXcn','mHOlB','INFO','QhUZP','Setting\x20cloud\x20provider\x20as\x20','../../config/logger','hCTuX','pre_check','find','../../config/constants','cloud-provider-not-supported','zqXgV','KVLct','844277XXDeig','Cluster\x20','pJcUG','MZoHI','tONTO','CWwzo','`\x20,error\x20:\x20','../../cloudproviders/utils','ERROR','HXuHV','xNVlT','password','pre-check-grid-called','iAoZr','requestId','MGJmh','Grid\x20profile\x20fetched\x20for\x20pre-check','PYAbx','rzeeF','GqtIu','readFileSync','HrcJb','description','YwYJJ','throwHttpErrors','error','oSSnu','wlMZg','ziDCc','aeerk','Ehhsx','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','rkjfj','includes','isTrialGridAccessible','KcIol','`\x20is\x20present\x20in\x20region\x20`','yacBT','iDdhp','naMpt','MfpQF','ZYAGw','replace','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','===\x20Precheck\x20Report\x20-\x20','existsSync','cluster-name','1|4|0|3|2','getUTCFullYear','Report\x20saved\x20in\x20','writeFileSync','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','data','kECYz','<PasswordPlaceholder>','vFYns','bstackAccesskey','xHoSL','rWAbo','bKyuw','31648800VdtVCz','User\x20Access','6088728oRciMC','gsBwv','MSXen','epilogue','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','clusterRegion','Lxcfm','Tool\x20Installed','type','jbyqL','unable\x20to\x20verify\x20if\x20cluster\x20`','header','grid-profile','tmaJz','uVOSJ','kUVqP','VoiuY','help','PoIuq','QaApu','usage','XUsLz','Cluster\x20`','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','got','../../utils/webSocketUtils','exPgA','teGZQ','hVXdi','BbAtm','facGJ','\x20\x20Code:\x20','will\x20be\x20created','KmOwR','Browserstack','bYDwe','Status:\x20','name','sUdUO','425756BDsIgo','eAEjq','LJnhx','tjPsX','Message:\x20','debug','qAywU','mjuuU','command','cloud-provider','CLOUD_PROVIDER','DBXsp','twxyd','etoZZ','SbYXL','getUTCDate','error\x20stack\x20:\x20','UReYv','ITFLm','info','grid\x20profile\x20flow\x20','clusterName','Invalid\x20input.\x20grid\x20profiles:\x20','nqRfj','Eefwx','plyYd','forEach',']\x20status\x20:\x20','WAbXD','NxDXV','KFqbT','Error\x20Details:\x0a','message','DyDLa','utf-8','JbUyJ','13427370kiHAEy','credential-not-found','qRrgQ','uEjog','xjDdy','cBQde','delay','BGwjv','pre-check-grid-profile-empty','reLod','builder','headers','SSL\x20Configured','mYxsO','KYnDp','\x20\x20Stack:\x20','VeIZD','argv','bstackUsername','Cluster\x20details\x0a-----------------------\x0a','region','.txt','dummy-grid','pre-check-cluster-args-not-passed','OayeB','aHdQO','VDtRZ','\x20data\x20:\x20','14npbRrj','aknfD','getUTCMonth','UFnzd','jfKeS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','qyruQ','uuid','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','sendEventToBackend','username','EYVce','rbehg','QcWpI','ZvMuC','106191EXVAlI','desc','LOG','WebSocket','connectionTimeout','aDXtu','checkAccess','PDaGS','sJiWW','isClusterPresent','string','options','<UsernamePlaceholder>','exit','vcrIk'];a17_0x47f8=function(){return _0x4a72d3;};return a17_0x47f8();}async function generateReport(_0x561637,_0x523da0){const _0x2cbb43=a17_0x1af37d,_0x462bce={'uVOSJ':function(_0x166c74,_0x2a85f7){return _0x166c74+_0x2a85f7;},'xNVlT':'Success','tmaJz':_0x2cbb43(0x261),'Eefwx':function(_0x5d1ce7,_0xdb9bdc){return _0x5d1ce7||_0xdb9bdc;},'PYAbx':_0x2cbb43(0x259),'reLod':_0x2cbb43(0x215),'vTRkD':_0x2cbb43(0x22d),'VDKqI':function(_0x1b9844,_0x190922){return _0x1b9844!=_0x190922;},'qAywU':_0x2cbb43(0x286),'QhUZP':_0x2cbb43(0x1ef),'lreSD':function(_0xf8a27d){return _0xf8a27d();}};let _0x19bfad=_0x2cbb43(0x2c3)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x561637[_0x2cbb43(0x210)]((_0x5be9e1,_0x4ee82d)=>{const _0xd87470=_0x2cbb43,{header:_0x526ac8,response:_0x43980d}=_0x5be9e1,{status:_0x2d3a44,data:_0x1e6084,error:_0x1feef5}=_0x43980d;_0x19bfad+=_0x526ac8+'\x20#'+_0x462bce[_0xd87470(0x1dd)](_0x4ee82d,0x1)+'\x0a',_0x19bfad+=_0xd87470(0x1f3)+(_0x2d3a44?_0x462bce[_0xd87470(0x2a1)]:_0x462bce[_0xd87470(0x1dc)])+'\x0a',_0x19bfad+='Message:\x20'+_0x462bce[_0xd87470(0x20e)](_0x1e6084,_0x462bce['PYAbx'])+'\x0a',_0x1feef5&&(_0x19bfad+=_0x462bce[_0xd87470(0x223)],_0x19bfad+=_0xd87470(0x258)+(_0x1feef5['message']||_0x462bce[_0xd87470(0x2a8)])+'\x0a',_0x19bfad+='\x20\x20Code:\x20'+(_0x1feef5[_0xd87470(0x277)]||_0x462bce[_0xd87470(0x2a8)])+'\x0a',_0x19bfad+=_0xd87470(0x229)+(_0x1feef5[_0xd87470(0x273)]||_0x462bce[_0xd87470(0x2a8)])+'\x0a'),_0x19bfad+='\x0a\x0a';}),_0x19bfad+=_0x462bce[_0x2cbb43(0x260)],_0x462bce[_0x2cbb43(0x282)](_0x523da0,null)?_0x19bfad+=_0x2cbb43(0x298)+global_registry[_0x2cbb43(0x20b)]+'\x20'+(_0x523da0?_0x462bce[_0x2cbb43(0x1fc)]:_0x462bce[_0x2cbb43(0x28d)])+'\x0a\x0a':_0x19bfad+=_0x2cbb43(0x298)+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x19bfad+=_0x462bce['lreSD'](getSystemMetaData),_0x19bfad;};exports['handler']=async function(_0xa1cae0){const _0x182a6f=a17_0x1af37d,_0x636f77={'HXuHV':function(_0x398ce1){return _0x398ce1();},'jbyqL':function(_0x5035db){return _0x5035db();},'QVBYS':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pveqY':function(_0x429b01,_0x3e9b6d,_0x293226,_0xbefb79,_0x5b2ee5,_0x542157,_0xc72317,_0x5cfd8d){return _0x429b01(_0x3e9b6d,_0x293226,_0xbefb79,_0x5b2ee5,_0x542157,_0xc72317,_0x5cfd8d);},'VoiuY':_0x182a6f(0x2a3),'BbAtm':_0x182a6f(0x21b),'iAoZr':_0x182a6f(0x2b0),'qkULp':function(_0x54c258,_0x1b3acb,_0x217406,_0x649394,_0x2ff611,_0x11eff5,_0x209b40){return _0x54c258(_0x1b3acb,_0x217406,_0x649394,_0x2ff611,_0x11eff5,_0x209b40);},'vfuVi':function(_0x48a2fb){return _0x48a2fb();},'teGZQ':_0x182a6f(0x251),'IjaKq':_0x182a6f(0x2cd),'sUdUO':function(_0x93eb8,_0x3d1c8d,_0x21a1bc){return _0x93eb8(_0x3d1c8d,_0x21a1bc);},'etoZZ':function(_0x7e4a46,_0x2f5796,_0x284cc1){return _0x7e4a46(_0x2f5796,_0x284cc1);},'KPjZh':function(_0x32bad7,_0x40c092,_0x42e175,_0x188853,_0x4e53c6,_0x43219d,_0x5c631c){return _0x32bad7(_0x40c092,_0x42e175,_0x188853,_0x4e53c6,_0x43219d,_0x5c631c);},'Lxcfm':_0x182a6f(0x230),'OayeB':function(_0x21a8ca,_0x4d3106,_0x1d1ec0){return _0x21a8ca(_0x4d3106,_0x1d1ec0);},'CWwzo':'toolInstalledResp','rbehg':_0x182a6f(0x2c6),'EfOfk':function(_0xf11a08,_0x11f277,_0x59a649){return _0xf11a08(_0x11f277,_0x59a649);},'eAEjq':_0x182a6f(0x283),'vcrIk':function(_0x551356,_0x291c92,_0x18a46b){return _0x551356(_0x291c92,_0x18a46b);},'MSXen':_0x182a6f(0x2b9),'gShRx':function(_0x13a0d4,_0x6a3a3b){return _0x13a0d4(_0x6a3a3b);},'zqXgV':'TLSv1_2_client_method','PoIuq':_0x182a6f(0x272),'kECYz':_0x182a6f(0x2dc),'EYVce':_0x182a6f(0x2d4),'DBXsp':'Whitelisted\x20browserstack','KVLct':_0x182a6f(0x226),'yacBT':function(_0x3a92ab,_0x41d69a){return _0x3a92ab+_0x41d69a;},'NxDXV':_0x182a6f(0x218),'HrcJb':function(_0x9ec2d6,_0x2f4863,_0x4b6268,_0x27ca8b,_0x5edf54,_0x1e96aa,_0x29bf9e){return _0x9ec2d6(_0x2f4863,_0x4b6268,_0x27ca8b,_0x5edf54,_0x1e96aa,_0x29bf9e);},'yzFLF':'pre-check-failed'};let _0xddacd8,_0x79b52d;try{global_registry[_0x182a6f(0x2a5)]=_0x636f77[_0x182a6f(0x2a0)](uuidv4);!fs[_0x182a6f(0x2c4)](_0x636f77[_0x182a6f(0x2de)](getCredentialsPath))&&(_0x79b52d=_0x636f77['QVBYS'],logger['error'](_0x79b52d),await _0x636f77['pveqY'](reportToGalactusAndSendToEDS,_0xa1cae0,_0xddacd8,_0x79b52d,messageTypes[_0x182a6f(0x29f)],_0x636f77['VoiuY'],_0x636f77[_0x182a6f(0x1ec)],_0x636f77[_0x182a6f(0x2a4)]),process['exit'](0x1));_0x636f77['qkULp'](sendInstrumentationEvent,_0xa1cae0,_0x636f77[_0x182a6f(0x1df)],messageTypes[_0x182a6f(0x28c)],null,null,_0xa1cae0);const _0x1277d1=JSON[_0x182a6f(0x287)](fs[_0x182a6f(0x2ab)](_0x636f77['vfuVi'](getCredentialsPath)));global_registry[_0x182a6f(0x22c)]=_0x1277d1[_0x182a6f(0x1f1)][_0x182a6f(0x240)],global_registry['bstackAccesskey']=_0x1277d1[_0x182a6f(0x1f1)][_0x182a6f(0x2a2)];const _0x55f0b4=WS_ENDPOINT[_0x182a6f(0x2c1)](_0x636f77[_0x182a6f(0x1ea)],_0x1277d1['Browserstack'][_0x182a6f(0x240)])['replace'](_0x636f77['IjaKq'],_0x1277d1[_0x182a6f(0x1f1)]['password']),_0x1d8160={};_0x1d8160[_0x182a6f(0x248)]=ws,_0x1d8160[_0x182a6f(0x249)]=0x36ee80,_0xddacd8=new ReconnectingWebSocket(_0x55f0b4,[],_0x1d8160),global_registry[_0x182a6f(0x26d)]=_0x636f77[_0x182a6f(0x1f5)](getAuthHeader,global_registry[_0x182a6f(0x22c)],global_registry[_0x182a6f(0x2cf)]),await _0x636f77[_0x182a6f(0x203)](inputValidation,_0xa1cae0,_0xddacd8),logger['info'](_0x182a6f(0x279)+global_registry[_0x182a6f(0x270)]+_0x182a6f(0x27d)+global_registry[_0x182a6f(0x2da)]);let _0x4f9fa7=await _0x636f77['KPjZh'](getCloudProviderObjectWithOutInit,global_registry[_0x182a6f(0x270)],global_registry[_0x182a6f(0x20b)],_0x636f77[_0x182a6f(0x2db)],_0xddacd8,webSocketUtils,_0xa1cae0);const _0x4900ba=await _0x4f9fa7['isCliToolInstalled']();_0x636f77[_0x182a6f(0x232)](printResponse,_0x636f77[_0x182a6f(0x29c)],_0x4900ba),_0x4f9fa7=await _0x4f9fa7[_0x182a6f(0x276)]();let _0x516d1d=![];try{_0x516d1d=await _0x4f9fa7[_0x182a6f(0x24e)]();}catch(_0x5cef4e){const _0x5443dd=_0x636f77[_0x182a6f(0x242)]['split']('|');let _0x422619=0x0;while(!![]){switch(_0x5443dd[_0x422619++]){case'0':logger['error'](_0x79b52d);continue;case'1':_0x79b52d=_0x182a6f(0x1d9)+global_registry[_0x182a6f(0x20b)]+_0x182a6f(0x2bb)+global_registry[_0x182a6f(0x2da)]+_0x182a6f(0x29d)+_0x5cef4e;continue;case'2':await _0x636f77[_0x182a6f(0x26e)](reportToGalactusAndSendToEDS,_0xa1cae0,_0xddacd8,_0x79b52d,messageTypes[_0x182a6f(0x29f)],_0x636f77[_0x182a6f(0x1df)],_0x182a6f(0x275)+global_registry['cloudProvider'],_0x636f77['iAoZr']);continue;case'3':_0x79b52d+='\x0a'+JSON[_0x182a6f(0x27b)](_0x5cef4e['stack']);continue;case'4':_0x516d1d=null;continue;}break;}}_0x516d1d&&logger[_0x182a6f(0x209)](_0x182a6f(0x1e5)+global_registry[_0x182a6f(0x20b)]+_0x182a6f(0x26c));const _0x44e579=await _0x4f9fa7[_0x182a6f(0x24b)]();_0x636f77[_0x182a6f(0x26a)](printResponse,_0x636f77[_0x182a6f(0x1f7)],_0x44e579);const _0x1987b0=await _0x636f77[_0x182a6f(0x2de)](curlRequest);_0x636f77[_0x182a6f(0x253)](printResponse,_0x636f77[_0x182a6f(0x2d7)],_0x1987b0);const _0x203208=await _0x636f77['gShRx'](isTlsSupported,_0x636f77[_0x182a6f(0x295)]);_0x636f77['vcrIk'](printResponse,_0x636f77[_0x182a6f(0x1e1)],_0x203208);const _0x3098eb={};_0x3098eb[_0x182a6f(0x1da)]=_0x636f77[_0x182a6f(0x2cc)],_0x3098eb[_0x182a6f(0x257)]=_0x4900ba;const _0x1e9482={};_0x1e9482[_0x182a6f(0x1da)]=_0x636f77[_0x182a6f(0x241)],_0x1e9482[_0x182a6f(0x257)]=_0x44e579;const _0x1353a6={};_0x1353a6[_0x182a6f(0x1da)]=_0x636f77[_0x182a6f(0x201)],_0x1353a6[_0x182a6f(0x257)]=_0x1987b0;const _0x2b9c2a={};_0x2b9c2a['header']=_0x636f77[_0x182a6f(0x296)],_0x2b9c2a[_0x182a6f(0x257)]=_0x203208;const _0x29121e=[_0x3098eb,_0x1e9482,_0x1353a6,_0x2b9c2a],_0x453884=await _0x636f77[_0x182a6f(0x203)](generateReport,_0x29121e,_0x516d1d),_0x29b262=new Date(),_0x3efe02=_0x29b262[_0x182a6f(0x2c7)]()+'_'+_0x636f77[_0x182a6f(0x2bc)](_0x29b262[_0x182a6f(0x238)](),0x1)+'_'+_0x29b262[_0x182a6f(0x205)]()+'_'+_0x29b262[_0x182a6f(0x264)]()+'_'+_0x29b262['getUTCMinutes'](),_0x41c36a='log/report_'+_0x3efe02+_0x182a6f(0x22f);fs[_0x182a6f(0x2c9)](_0x41c36a,_0x453884,_0x636f77[_0x182a6f(0x213)]),logger[_0x182a6f(0x209)](_0x182a6f(0x2c8)+_0x41c36a),process['exit'](0x0);}catch(_0x5d0914){let _0x537dd7='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x5d0914+'\x20';logger['error'](_0x537dd7),_0x537dd7+='\x0a'+JSON[_0x182a6f(0x27b)](_0x5d0914['stack']),logger[_0x182a6f(0x1fb)]('stack\x20trace\x20'+_0x5d0914['stack']);if(_0xddacd8){const _0x3ef6e4={};_0x3ef6e4[_0x182a6f(0x2dd)]=WS_EVENTS[_0x182a6f(0x247)],_0x3ef6e4[_0x182a6f(0x216)]=_0x537dd7,webSocketUtils[_0x182a6f(0x23f)](_0xddacd8,_0x3ef6e4,_0x636f77[_0x182a6f(0x2a4)],!![]);}await webSocketUtils[_0x182a6f(0x220)](0x7d0);const _0x390252={};_0x390252[_0x182a6f(0x2b0)]=_0x537dd7,await _0x636f77[_0x182a6f(0x2ac)](sendInstrumentationEvent,_0xa1cae0,_0x636f77['VoiuY'],messageTypes[_0x182a6f(0x29f)],_0x636f77['yzFLF'],_0x390252,_0xa1cae0),process[_0x182a6f(0x252)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x39e6(_0x21232f,_0x229a69){const _0x57584c=a18_0x5758();return a18_0x39e6=function(_0x39e676,_0x1e3aff){_0x39e676=_0x39e676-0x6d;let _0x115bf3=_0x57584c[_0x39e676];return _0x115bf3;},a18_0x39e6(_0x21232f,_0x229a69);}const a18_0x3189f7=a18_0x39e6;(function(_0x105015,_0x30af51){const _0x530fbd=a18_0x39e6,_0xda621e=_0x105015();while(!![]){try{const _0x260743=-parseInt(_0x530fbd(0x7a))/0x1+-parseInt(_0x530fbd(0x7c))/0x2*(parseInt(_0x530fbd(0x74))/0x3)+parseInt(_0x530fbd(0x84))/0x4+parseInt(_0x530fbd(0x78))/0x5*(-parseInt(_0x530fbd(0x7d))/0x6)+parseInt(_0x530fbd(0x7f))/0x7*(parseInt(_0x530fbd(0x83))/0x8)+parseInt(_0x530fbd(0x85))/0x9*(-parseInt(_0x530fbd(0x71))/0xa)+parseInt(_0x530fbd(0x81))/0xb;if(_0x260743===_0x30af51)break;else _0xda621e['push'](_0xda621e['shift']());}catch(_0x1d35b7){_0xda621e['push'](_0xda621e['shift']());}}}(a18_0x5758,0xe042a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3189f7(0x7e));exports[a18_0x3189f7(0x6d)]='start',exports[a18_0x3189f7(0x79)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x3189f7(0x75)]=function(_0x296f6d){const _0x5c3d99=a18_0x3189f7,_0x313b9e={};_0x313b9e[_0x5c3d99(0x7b)]=_0x5c3d99(0x76),_0x313b9e[_0x5c3d99(0x86)]=_0x5c3d99(0x70);const _0x4fd602=_0x313b9e;return _0x296f6d[_0x5c3d99(0x77)](HELP_HEADER_MESSAGE[_0x5c3d99(0x72)])[_0x5c3d99(0x73)](HELP_FOOTER_MESSAGE)[_0x5c3d99(0x82)](_0x4fd602[_0x5c3d99(0x7b)])[_0x5c3d99(0x6f)]()['recommendCommands']()[_0x5c3d99(0x6e)]()[_0x5c3d99(0x70)](_0x4fd602[_0x5c3d99(0x86)]);},exports[a18_0x3189f7(0x80)]=function(_0x3078c9){};function a18_0x5758(){const _0x124891=['15160XBJRBX','start','epilogue','1455yGKqZZ','builder','start_commands','usage','5DPJJvP','desc','209525utYRaB','jadlf','1358TvADcA','7371564XmgraO','../config/constants','3563441WysyCp','handler','8328320pUePVI','commandDir','16xxXNBp','4146344wBqCQZ','747HcFbok','Dnebe','command','strict','demandCommand','help'];a18_0x5758=function(){return _0x124891;};return a18_0x5758();}
1
+ const a18_0x23d44f=a18_0x1580;function a18_0xe8a2(){const _0x30ec0b=['529728zhGOIJ','786gsMtoO','handler','336xjlMhz','hGrgc','builder','576123KpstoA','start','start_commands','1596990tYQMtU','recommendCommands','strict','command','demandCommand','commandDir','216649ieCQWu','Start\x20an\x20existing\x20Automation\x20grid.','CNknz','2310867cLnCcF','epilogue','4nxXxjb','usage','33NorqjL','42632vtggWa','help','11535VXHyBx'];a18_0xe8a2=function(){return _0x30ec0b;};return a18_0xe8a2();}(function(_0xcd628f,_0x2e7811){const _0x53e6e3=a18_0x1580,_0x3d18d4=_0xcd628f();while(!![]){try{const _0x11a5ce=-parseInt(_0x53e6e3(0x1b4))/0x1+-parseInt(_0x53e6e3(0x19f))/0x2*(-parseInt(_0x53e6e3(0x1ab))/0x3)+-parseInt(_0x53e6e3(0x1a5))/0x4+parseInt(_0x53e6e3(0x1a4))/0x5*(-parseInt(_0x53e6e3(0x1a6))/0x6)+-parseInt(_0x53e6e3(0x1a8))/0x7*(parseInt(_0x53e6e3(0x1a2))/0x8)+parseInt(_0x53e6e3(0x1b7))/0x9+-parseInt(_0x53e6e3(0x1ae))/0xa*(-parseInt(_0x53e6e3(0x1a1))/0xb);if(_0x11a5ce===_0x2e7811)break;else _0x3d18d4['push'](_0x3d18d4['shift']());}catch(_0x4d8241){_0x3d18d4['push'](_0x3d18d4['shift']());}}}(a18_0xe8a2,0x33f74));function a18_0x1580(_0x51007e,_0x4f0fdc){const _0xe8a29c=a18_0xe8a2();return a18_0x1580=function(_0x1580df,_0x2dee3e){_0x1580df=_0x1580df-0x19e;let _0x48c489=_0xe8a29c[_0x1580df];return _0x48c489;},a18_0x1580(_0x51007e,_0x4f0fdc);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x23d44f(0x1b1)]=a18_0x23d44f(0x1ac),exports['desc']=a18_0x23d44f(0x1b5),exports[a18_0x23d44f(0x1aa)]=function(_0x1ddeb2){const _0x1c6ed3=a18_0x23d44f,_0x487f00={};_0x487f00['CNknz']=_0x1c6ed3(0x1ad),_0x487f00['hGrgc']=_0x1c6ed3(0x1a3);const _0x1d6e31=_0x487f00;return _0x1ddeb2[_0x1c6ed3(0x1a0)](HELP_HEADER_MESSAGE[_0x1c6ed3(0x1ac)])[_0x1c6ed3(0x19e)](HELP_FOOTER_MESSAGE)[_0x1c6ed3(0x1b3)](_0x1d6e31[_0x1c6ed3(0x1b6)])[_0x1c6ed3(0x1b2)]()[_0x1c6ed3(0x1af)]()[_0x1c6ed3(0x1b0)]()[_0x1c6ed3(0x1a3)](_0x1d6e31[_0x1c6ed3(0x1a9)]);},exports[a18_0x23d44f(0x1a7)]=function(_0x55a3f8){};
@@ -1 +1 @@
1
- const a19_0x2d1442=a19_0x3087;(function(_0x53b225,_0x27af51){const _0xb916cb=a19_0x3087,_0x5f4b08=_0x53b225();while(!![]){try{const _0x411173=-parseInt(_0xb916cb(0xfc))/0x1*(-parseInt(_0xb916cb(0xd3))/0x2)+-parseInt(_0xb916cb(0x10f))/0x3*(-parseInt(_0xb916cb(0xef))/0x4)+-parseInt(_0xb916cb(0xec))/0x5*(-parseInt(_0xb916cb(0x102))/0x6)+-parseInt(_0xb916cb(0x12a))/0x7+-parseInt(_0xb916cb(0xea))/0x8+parseInt(_0xb916cb(0xe0))/0x9+-parseInt(_0xb916cb(0xdf))/0xa*(parseInt(_0xb916cb(0xfb))/0xb);if(_0x411173===_0x27af51)break;else _0x5f4b08['push'](_0x5f4b08['shift']());}catch(_0x5fc534){_0x5f4b08['push'](_0x5f4b08['shift']());}}}(a19_0x1e27,0x58c82));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2d1442(0xe9)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x2d1442(0x12b)),{sendInstrumentationEvent}=require(a19_0x2d1442(0xd1)),webSocketUtils=require(a19_0x2d1442(0xe5)),{createK8sClient}=require(a19_0x2d1442(0x11f)),{getCloudProviderObject}=require(a19_0x2d1442(0x12c));function a19_0x3087(_0x28b82e,_0x452029){const _0x1e2798=a19_0x1e27();return a19_0x3087=function(_0x308734,_0x42b61b){_0x308734=_0x308734-0xd1;let _0x123df1=_0x1e2798[_0x308734];return _0x123df1;},a19_0x3087(_0x28b82e,_0x452029);}exports['command']=a19_0x2d1442(0x11b),exports[a19_0x2d1442(0x110)]=a19_0x2d1442(0xe2),exports[a19_0x2d1442(0x10b)]=function(_0x3eb569){const _0xbf8bc9=a19_0x2d1442,_0x2cd5b7={};_0x2cd5b7[_0xbf8bc9(0xee)]=_0xbf8bc9(0xf2),_0x2cd5b7[_0xbf8bc9(0xfd)]='string',_0x2cd5b7[_0xbf8bc9(0x103)]=_0xbf8bc9(0xf7),_0x2cd5b7[_0xbf8bc9(0xd2)]=_0xbf8bc9(0x126),_0x2cd5b7[_0xbf8bc9(0x10c)]=_0xbf8bc9(0x130);const _0x45567c=_0x2cd5b7,_0x58d058={};_0x58d058[_0xbf8bc9(0x106)]=_0x45567c['iKNlw'],_0x58d058[_0xbf8bc9(0x104)]=_0x45567c[_0xbf8bc9(0xfd)];const _0x2d6c49={};_0x2d6c49[_0xbf8bc9(0x106)]=_0x45567c[_0xbf8bc9(0x103)],_0x2d6c49['type']=_0x45567c[_0xbf8bc9(0xd2)],_0x2d6c49[_0xbf8bc9(0x123)]=![];const _0x236808={};return _0x236808[_0xbf8bc9(0xd5)]=_0x58d058,_0x236808[_0xbf8bc9(0xd4)]=_0x2d6c49,_0x3eb569[_0xbf8bc9(0x111)](HELP_HEADER_MESSAGE[_0xbf8bc9(0xe3)])[_0xbf8bc9(0xdb)](HELP_FOOTER_MESSAGE)[_0xbf8bc9(0xd7)](_0x236808)['help'](_0x45567c['iKGZz'])['argv'];},exports[a19_0x2d1442(0xd9)]=async function(_0x1547ce){const _0x5b612a=a19_0x2d1442,_0x5871ae={'cpqry':_0x5b612a(0x10d),'Ogpfc':function(_0x4f1c37){return _0x4f1c37();},'QMQNV':_0x5b612a(0xe4),'Fiisv':function(_0x299f41,_0x2a6ba9,_0x1b7820,_0x22c9b9,_0x374685,_0x822737,_0x30e1cc){return _0x299f41(_0x2a6ba9,_0x1b7820,_0x22c9b9,_0x374685,_0x822737,_0x30e1cc);},'xOTji':'start-grid-called','FlyDw':_0x5b612a(0x115),'YRiHt':function(_0x4a39d2,_0x36d1be,_0x50be27,_0x29687a,_0x2ed2b8,_0x18f172,_0x59372c){return _0x4a39d2(_0x36d1be,_0x50be27,_0x29687a,_0x2ed2b8,_0x18f172,_0x59372c);},'PTTnj':function(_0x88aca1){return _0x88aca1();},'gbWME':_0x5b612a(0x113),'dnoPs':_0x5b612a(0x12f),'AFcjb':_0x5b612a(0x121),'puTPx':function(_0x44afa2,_0x1e0a72,_0x13d673,_0x733418){return _0x44afa2(_0x1e0a72,_0x13d673,_0x733418);},'FYJen':function(_0x5a48ee,_0x589795,_0x2c798e){return _0x5a48ee(_0x589795,_0x2c798e);},'kQexI':_0x5b612a(0xf6),'UfZXC':function(_0x2fdb09,_0x287aa5){return _0x2fdb09===_0x287aa5;},'XBxXA':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','lowoK':_0x5b612a(0xf4),'RRffJ':function(_0x36da30,_0x36214f){return _0x36da30===_0x36214f;},'PdwTY':_0x5b612a(0x116),'CTEob':function(_0x50ad8b,_0x482f19,_0x310a95,_0x4048c6,_0x16302d,_0xf79f22,_0x21f02a){return _0x50ad8b(_0x482f19,_0x310a95,_0x4048c6,_0x16302d,_0xf79f22,_0x21f02a);},'TeuVp':_0x5b612a(0x12d)};let _0x3f7234;try{!_0x1547ce[_0x5b612a(0x100)]&&(logger[_0x5b612a(0xf8)](_0x5871ae['cpqry']),process['exit'](0x1));!fs['existsSync'](_0x5871ae[_0x5b612a(0xfa)](getCredentialsPath))&&(logger[_0x5b612a(0xf8)](_0x5871ae[_0x5b612a(0x127)]),await _0x5871ae[_0x5b612a(0xdd)](sendInstrumentationEvent,_0x1547ce,_0x5871ae[_0x5b612a(0xf5)],messageTypes[_0x5b612a(0xf0)],_0x5871ae[_0x5b612a(0x108)],null,_0x1547ce),process[_0x5b612a(0x10a)](0x1));logger[_0x5b612a(0xff)](_0x5b612a(0x125)+_0x1547ce['gridId']),await _0x5871ae[_0x5b612a(0x11d)](sendInstrumentationEvent,_0x1547ce,_0x5871ae[_0x5b612a(0xf5)],messageTypes[_0x5b612a(0xdc)],null,null,_0x1547ce);const _0x598b02=JSON[_0x5b612a(0x105)](fs['readFileSync'](_0x5871ae['PTTnj'](getCredentialsPath)));global_registry[_0x5b612a(0x107)]=_0x598b02[_0x5b612a(0xd6)][_0x5b612a(0x124)],global_registry[_0x5b612a(0xed)]=_0x598b02['Browserstack'][_0x5b612a(0xd8)];const _0x2fec11=WS_ENDPOINT[_0x5b612a(0x109)](_0x5871ae[_0x5b612a(0x11a)],_0x598b02[_0x5b612a(0xd6)][_0x5b612a(0x124)])['replace'](_0x5871ae[_0x5b612a(0x129)],_0x598b02[_0x5b612a(0xd6)][_0x5b612a(0xd8)]),_0x5b7494={};_0x5b7494[_0x5b612a(0xeb)]=ws,_0x5b7494[_0x5b612a(0xe1)]=0x36ee80,_0x3f7234=new ReconnectingWebSocket(_0x2fec11,[],_0x5b7494),logger[_0x5b612a(0x122)](_0x5871ae[_0x5b612a(0x10e)]),webSocketUtils[_0x5b612a(0x11c)](_0x3f7234,_0x1547ce[_0x5b612a(0x119)],_0x1547ce[_0x5b612a(0xd8)]);const [_0x2174cc,_0x76e2ba]=await _0x5871ae[_0x5b612a(0xf3)](getGridDetails,_0x598b02[_0x5b612a(0xd6)]['username'],_0x598b02['Browserstack'][_0x5b612a(0xd8)],_0x1547ce[_0x5b612a(0x100)]);if(_0x76e2ba){const _0x1a498f=_0x76e2ba[_0x5b612a(0xff)];global_registry[_0x5b612a(0x117)]=_0x1a498f['cloudProvider'],global_registry['clusterRegion']=_0x1a498f['region'],global_registry[_0x5b612a(0xf1)]=_0x1a498f['clusterName'];const _0x47293f=await _0x5871ae[_0x5b612a(0x11d)](getCloudProviderObject,_0x1a498f[_0x5b612a(0x117)],_0x1a498f[_0x5b612a(0xf1)],_0x1a498f[_0x5b612a(0x112)],_0x3f7234,webSocketUtils,_0x1547ce),[_0x2d7a3a,_0x3962cf,_0x49fa88,_0x124e9f,_0x22381c,_0x1efaac]=await _0x5871ae[_0x5b612a(0x128)](createK8sClient,_0x47293f,_0x1547ce[_0x5b612a(0xfe)]);await _0x5871ae[_0x5b612a(0x128)](scaleUpHubDeployment,_0x3962cf,_0x1a498f[_0x5b612a(0x112)]),logger[_0x5b612a(0xff)](_0x5871ae[_0x5b612a(0xda)]),process[_0x5b612a(0x10a)](0x0);}_0x5871ae[_0x5b612a(0x101)](_0x2174cc[_0x5b612a(0xe7)],0x191)&&(logger[_0x5b612a(0xf8)](_0x5871ae[_0x5b612a(0x114)]),await _0x5871ae[_0x5b612a(0x11d)](sendInstrumentationEvent,_0x1547ce,_0x5871ae[_0x5b612a(0xf5)],messageTypes[_0x5b612a(0xf0)],_0x5871ae[_0x5b612a(0xe8)],null,_0x1547ce),process[_0x5b612a(0x10a)](0x1)),_0x5871ae['RRffJ'](_0x2174cc[_0x5b612a(0xe7)],0x190)&&(logger[_0x5b612a(0xf8)](JSON['parse'](_0x2174cc['body'])[_0x5b612a(0x118)]),await _0x5871ae[_0x5b612a(0xdd)](sendInstrumentationEvent,_0x1547ce,_0x5871ae[_0x5b612a(0xf5)],messageTypes['ERROR'],_0x5871ae[_0x5b612a(0xe6)],null,_0x1547ce),process[_0x5b612a(0x10a)](0x1)),logger[_0x5b612a(0xf8)](_0x5b612a(0x120)+JSON['stringify'](_0x2174cc)),await _0x5871ae[_0x5b612a(0xf9)](sendInstrumentationEvent,_0x1547ce,_0x5871ae[_0x5b612a(0xf5)],messageTypes['ERROR'],_0x5871ae[_0x5b612a(0x12e)],_0x2174cc,_0x1547ce),process[_0x5b612a(0x10a)](0x1);}catch(_0x4c3cb9){const _0x5be76c=_0x5b612a(0x11e)+_0x4c3cb9+'\x20\x0a'+JSON[_0x5b612a(0xde)](_0x4c3cb9['stack'])+'\x20';logger[_0x5b612a(0xf8)](_0x5be76c),process[_0x5b612a(0x10a)](0x1);}};function a19_0x1e27(){const _0x2a177d=['Grid\x20started','Skip\x20insecure\x20cert\x20verification.','error','CTEob','Ogpfc','32659tKRgTx','1JaeKLP','jbrIg','skipTlsCertVerify','info','gridId','UfZXC','443934dfOEqp','IHXEs','type','parse','description','bstackUsername','FlyDw','replace','exit','builder','iKGZz','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','AFcjb','3JrtVki','desc','usage','name','<UsernamePlaceholder>','XBxXA','init-not-called','invalid-grid-id','cloudProvider','message','user','gbWME','grid','addListeners','YRiHt','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','../../utils/createk8sClient','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Adding\x20Websocket\x20listeners','debug','default','username','Starting\x20grid\x20','boolean','QMQNV','FYJen','dnoPs','774326aLbuFR','../../utils/gridComponents','../../cloudproviders/utils','server-error','TeuVp','<PasswordPlaceholder>','help','../../utils/instrumentationUtils','zEtag','1087654dxLkXw','skip-tls-cert-verify','grid-id','Browserstack','options','password','handler','kQexI','epilogue','INFO','Fiisv','stringify','3650tGykOG','6138765xHaODL','connectionTimeout','Start\x20an\x20existing\x20Automation\x20grid.','start','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/webSocketUtils','PdwTY','statusCode','lowoK','reconnecting-websocket','3036064TMPTEU','WebSocket','45MUEWxB','bstackAccesskey','iKNlw','182592ladfco','ERROR','clusterName','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','puTPx','unauthorised','xOTji'];a19_0x1e27=function(){return _0x2a177d;};return a19_0x1e27();}
1
+ function a19_0x38ea(){const _0x4884ef=['Grid\x20started','62360dZvcCn','Skip\x20insecure\x20cert\x20verification.','1IvviFs','jFGti','reconnecting-websocket','handler','Starting\x20grid\x20','addListeners','epilogue','help','oJrOw','1966672rfxOPi','body','name','uDXql','default','KxURC','invalid-grid-id','server-error','CNKrD','VrZsa','325082CemZLP','user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','gridId','enaMr','INFO','../../utils/instrumentationUtils','oxnMi','existsSync','start-grid-called','560952wDuZMA','../../cloudproviders/utils','options','HmEyK','start','grid','../../utils/webSocketUtils','clusterName','init-not-called','../../utils/createk8sClient','rtoRN','boolean','description','WebSocket','WuJYl','parse','string','message','exit','11140jxdSNM','SPVRd','Adding\x20Websocket\x20listeners','username','debug','../../config/logger','error','command','eEYvY','readFileSync','builder','ERROR','qNqwM','405exNGhW','TIsVR','<UsernamePlaceholder>','replace','489QyDmeL','jQYPT','stack','cloudProvider','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Browserstack','../../utils/gridComponents','2009016pqJQIH','skip-tls-cert-verify','<PasswordPlaceholder>','Start\x20an\x20existing\x20Automation\x20grid.','info','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','type','1182770kTxohp','password','kzxzJ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','argv','desc','statusCode','rniDz'];a19_0x38ea=function(){return _0x4884ef;};return a19_0x38ea();}const a19_0x3683eb=a19_0x2240;(function(_0xd17e54,_0x51ba4b){const _0x56f610=a19_0x2240,_0x29ca8c=_0xd17e54();while(!![]){try{const _0x23633a=parseInt(_0x56f610(0x103))/0x1*(parseInt(_0x56f610(0xba))/0x2)+-parseInt(_0x56f610(0xe8))/0x3*(parseInt(_0x56f610(0xd7))/0x4)+-parseInt(_0x56f610(0xf8))/0x5+parseInt(_0x56f610(0xf0))/0x6+-parseInt(_0x56f610(0xc4))/0x7+parseInt(_0x56f610(0x10c))/0x8+-parseInt(_0x56f610(0xe4))/0x9*(-parseInt(_0x56f610(0x101))/0xa);if(_0x23633a===_0x51ba4b)break;else _0x29ca8c['push'](_0x29ca8c['shift']());}catch(_0x356c2){_0x29ca8c['push'](_0x29ca8c['shift']());}}}(a19_0x38ea,0x3dd02));function a19_0x2240(_0x329c35,_0x370c2c){const _0x38ea6e=a19_0x38ea();return a19_0x2240=function(_0x224030,_0x4b830b){_0x224030=_0x224030-0xb3;let _0x31eeb5=_0x38ea6e[_0x224030];return _0x31eeb5;},a19_0x2240(_0x329c35,_0x370c2c);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3683eb(0x105)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x3683eb(0xdc)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x3683eb(0xef)),{sendInstrumentationEvent}=require(a19_0x3683eb(0xc0)),webSocketUtils=require(a19_0x3683eb(0xca)),{createK8sClient}=require(a19_0x3683eb(0xcd)),{getCloudProviderObject}=require(a19_0x3683eb(0xc5));exports[a19_0x3683eb(0xde)]=a19_0x3683eb(0xc9),exports[a19_0x3683eb(0xfd)]=a19_0x3683eb(0xf3),exports[a19_0x3683eb(0xe1)]=function(_0x31ccfb){const _0xad3bbd=a19_0x3683eb,_0x527869={};_0x527869['TXRRO']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x527869[_0xad3bbd(0xb9)]=_0xad3bbd(0xd4),_0x527869['rniDz']=_0xad3bbd(0x102),_0x527869[_0xad3bbd(0xc7)]=_0xad3bbd(0xcf),_0x527869['kzxzJ']=_0xad3bbd(0x10a);const _0x110217=_0x527869,_0x454486={};_0x454486[_0xad3bbd(0xd0)]=_0x110217['TXRRO'],_0x454486[_0xad3bbd(0xf7)]=_0x110217[_0xad3bbd(0xb9)];const _0x23433e={};_0x23433e[_0xad3bbd(0xd0)]=_0x110217[_0xad3bbd(0xff)],_0x23433e['type']=_0x110217[_0xad3bbd(0xc7)],_0x23433e[_0xad3bbd(0xb4)]=![];const _0xf6fe26={};return _0xf6fe26['grid-id']=_0x454486,_0xf6fe26[_0xad3bbd(0xf1)]=_0x23433e,_0x31ccfb['usage'](HELP_HEADER_MESSAGE[_0xad3bbd(0xc8)])[_0xad3bbd(0x109)](HELP_FOOTER_MESSAGE)[_0xad3bbd(0xc6)](_0xf6fe26)['help'](_0x110217[_0xad3bbd(0xfa)])[_0xad3bbd(0xfc)];},exports[a19_0x3683eb(0x106)]=async function(_0x3c1506){const _0x195fd6=a19_0x3683eb,_0x533311={'jQYPT':_0x195fd6(0xfb),'KxURC':function(_0x483f0f){return _0x483f0f();},'enaMr':_0x195fd6(0xed),'SPVRd':function(_0x13bbd2,_0x4fa08b,_0x32be05,_0x308666,_0x22d25a,_0x4d2175,_0x9ba5c4){return _0x13bbd2(_0x4fa08b,_0x32be05,_0x308666,_0x22d25a,_0x4d2175,_0x9ba5c4);},'oxnMi':_0x195fd6(0xc3),'XJwnT':_0x195fd6(0xcc),'eEYvY':function(_0x4651a3){return _0x4651a3();},'TIsVR':_0x195fd6(0xe6),'CNKrD':_0x195fd6(0xf2),'SGgmo':_0x195fd6(0xd9),'jFGti':function(_0x3046b3,_0x456a1a,_0x2a320e,_0x3369be){return _0x3046b3(_0x456a1a,_0x2a320e,_0x3369be);},'uDXql':function(_0x198c32,_0x4fdd61,_0x9a8de4,_0x49a35b,_0x212ab8,_0x368680,_0x5395bf){return _0x198c32(_0x4fdd61,_0x9a8de4,_0x49a35b,_0x212ab8,_0x368680,_0x5395bf);},'WuJYl':function(_0x2928be,_0x3a2ca7,_0x4a7f36){return _0x2928be(_0x3a2ca7,_0x4a7f36);},'rtoRN':function(_0x7067c0,_0x94961a,_0x36016e){return _0x7067c0(_0x94961a,_0x36016e);},'MkbBi':_0x195fd6(0x100),'HTVgx':function(_0x4de40b,_0x51a1ab){return _0x4de40b===_0x51a1ab;},'qNqwM':_0x195fd6(0xf6),'GihrY':function(_0x12f667,_0x3fdcdd,_0x19b3a8,_0x1053c8,_0x591afd,_0x2f3321,_0x426d09){return _0x12f667(_0x3fdcdd,_0x19b3a8,_0x1053c8,_0x591afd,_0x2f3321,_0x426d09);},'mQVnC':'unauthorised','ncAmh':function(_0x55951b,_0x49d8a7){return _0x55951b===_0x49d8a7;},'oJrOw':_0x195fd6(0xb6),'MsRQg':_0x195fd6(0xb7)};let _0x39e68a;try{!_0x3c1506[_0x195fd6(0xbd)]&&(logger[_0x195fd6(0xdd)](_0x533311[_0x195fd6(0xe9)]),process[_0x195fd6(0xd6)](0x1));!fs[_0x195fd6(0xc2)](_0x533311[_0x195fd6(0xb5)](getCredentialsPath))&&(logger[_0x195fd6(0xdd)](_0x533311[_0x195fd6(0xbe)]),await _0x533311[_0x195fd6(0xd8)](sendInstrumentationEvent,_0x3c1506,_0x533311[_0x195fd6(0xc1)],messageTypes['ERROR'],_0x533311['XJwnT'],null,_0x3c1506),process[_0x195fd6(0xd6)](0x1));logger[_0x195fd6(0xf4)](_0x195fd6(0x107)+_0x3c1506['gridId']),await _0x533311[_0x195fd6(0xd8)](sendInstrumentationEvent,_0x3c1506,_0x533311[_0x195fd6(0xc1)],messageTypes[_0x195fd6(0xbf)],null,null,_0x3c1506);const _0x31b80e=JSON['parse'](fs[_0x195fd6(0xe0)](_0x533311[_0x195fd6(0xdf)](getCredentialsPath)));global_registry['bstackUsername']=_0x31b80e[_0x195fd6(0xee)][_0x195fd6(0xda)],global_registry[_0x195fd6(0xf5)]=_0x31b80e['Browserstack'][_0x195fd6(0xf9)];const _0x2aa469=WS_ENDPOINT['replace'](_0x533311[_0x195fd6(0xe5)],_0x31b80e[_0x195fd6(0xee)]['username'])[_0x195fd6(0xe7)](_0x533311[_0x195fd6(0xb8)],_0x31b80e[_0x195fd6(0xee)][_0x195fd6(0xf9)]),_0x3535a8={};_0x3535a8[_0x195fd6(0xd1)]=ws,_0x3535a8['connectionTimeout']=0x36ee80,_0x39e68a=new ReconnectingWebSocket(_0x2aa469,[],_0x3535a8),logger[_0x195fd6(0xdb)](_0x533311['SGgmo']),webSocketUtils[_0x195fd6(0x108)](_0x39e68a,_0x3c1506[_0x195fd6(0xbb)],_0x3c1506[_0x195fd6(0xf9)]);const [_0x58169a,_0x4e7d2d]=await _0x533311[_0x195fd6(0x104)](getGridDetails,_0x31b80e[_0x195fd6(0xee)][_0x195fd6(0xda)],_0x31b80e[_0x195fd6(0xee)]['password'],_0x3c1506['gridId']);if(_0x4e7d2d){const _0x299bd9=_0x4e7d2d[_0x195fd6(0xf4)];global_registry[_0x195fd6(0xeb)]=_0x299bd9[_0x195fd6(0xeb)],global_registry['clusterRegion']=_0x299bd9['region'],global_registry[_0x195fd6(0xcb)]=_0x299bd9[_0x195fd6(0xcb)];const _0x4405a0=await _0x533311[_0x195fd6(0xb3)](getCloudProviderObject,_0x299bd9[_0x195fd6(0xeb)],_0x299bd9['clusterName'],_0x299bd9[_0x195fd6(0x10e)],_0x39e68a,webSocketUtils,_0x3c1506),[_0x1fcbea,_0x467504,_0x697016,_0x5e7a3b,_0x1bed2e,_0x2d7ba0]=await _0x533311[_0x195fd6(0xd2)](createK8sClient,_0x4405a0,_0x3c1506['skipTlsCertVerify']);await _0x533311[_0x195fd6(0xce)](scaleUpHubDeployment,_0x467504,_0x299bd9[_0x195fd6(0x10e)]),logger[_0x195fd6(0xf4)](_0x533311['MkbBi']),process['exit'](0x0);}_0x533311['HTVgx'](_0x58169a['statusCode'],0x191)&&(logger[_0x195fd6(0xdd)](_0x533311[_0x195fd6(0xe3)]),await _0x533311['GihrY'](sendInstrumentationEvent,_0x3c1506,_0x533311[_0x195fd6(0xc1)],messageTypes[_0x195fd6(0xe2)],_0x533311['mQVnC'],null,_0x3c1506),process[_0x195fd6(0xd6)](0x1)),_0x533311['ncAmh'](_0x58169a[_0x195fd6(0xfe)],0x190)&&(logger[_0x195fd6(0xdd)](JSON[_0x195fd6(0xd3)](_0x58169a[_0x195fd6(0x10d)])[_0x195fd6(0xd5)]),await _0x533311[_0x195fd6(0xb3)](sendInstrumentationEvent,_0x3c1506,_0x533311[_0x195fd6(0xc1)],messageTypes[_0x195fd6(0xe2)],_0x533311[_0x195fd6(0x10b)],null,_0x3c1506),process[_0x195fd6(0xd6)](0x1)),logger[_0x195fd6(0xdd)](_0x195fd6(0xbc)+JSON['stringify'](_0x58169a)),await _0x533311['GihrY'](sendInstrumentationEvent,_0x3c1506,_0x533311[_0x195fd6(0xc1)],messageTypes[_0x195fd6(0xe2)],_0x533311['MsRQg'],_0x58169a,_0x3c1506),process[_0x195fd6(0xd6)](0x1);}catch(_0x5db059){const _0x4f6aa4=_0x195fd6(0xec)+_0x5db059+'\x20\x0a'+JSON['stringify'](_0x5db059[_0x195fd6(0xea)])+'\x20';logger['error'](_0x4f6aa4),process[_0x195fd6(0xd6)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x2d86(_0x3bdcea,_0x18cb11){const _0x41d4ab=a20_0x41d4();return a20_0x2d86=function(_0x2d86ae,_0x1d92b4){_0x2d86ae=_0x2d86ae-0xb5;let _0x3086a0=_0x41d4ab[_0x2d86ae];return _0x3086a0;},a20_0x2d86(_0x3bdcea,_0x18cb11);}const a20_0x591f05=a20_0x2d86;(function(_0x2b9337,_0x2e6b8e){const _0x1c8a73=a20_0x2d86,_0x29e69c=_0x2b9337();while(!![]){try{const _0x3d25ed=-parseInt(_0x1c8a73(0xc5))/0x1+-parseInt(_0x1c8a73(0xca))/0x2+-parseInt(_0x1c8a73(0xc4))/0x3*(parseInt(_0x1c8a73(0xb5))/0x4)+parseInt(_0x1c8a73(0xbd))/0x5+parseInt(_0x1c8a73(0xbe))/0x6+-parseInt(_0x1c8a73(0xc8))/0x7*(parseInt(_0x1c8a73(0xcb))/0x8)+parseInt(_0x1c8a73(0xc1))/0x9;if(_0x3d25ed===_0x2e6b8e)break;else _0x29e69c['push'](_0x29e69c['shift']());}catch(_0x5e8c64){_0x29e69c['push'](_0x29e69c['shift']());}}}(a20_0x41d4,0x99a39));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x591f05(0xba));function a20_0x41d4(){const _0x3eef69=['stop','../config/constants','builder','epilogue','3681995TvQPLc','3318720mQRtXb','command','Stop\x20a\x20running\x20Automation\x20grid.','9600840UNQLeI','recommendCommands','desc','1527ldRcrh','251862GnYnqV','commandDir','qiukY','16310INKiHl','MAygI','225922CdFRLP','1096AmJNSU','8196XYpVzd','help','usage','demandCommand'];a20_0x41d4=function(){return _0x3eef69;};return a20_0x41d4();}exports[a20_0x591f05(0xbf)]=a20_0x591f05(0xb9),exports[a20_0x591f05(0xc3)]=a20_0x591f05(0xc0),exports[a20_0x591f05(0xbb)]=function(_0x596bc9){const _0x456c45=a20_0x591f05,_0x56a462={};_0x56a462['qiukY']='stop_commands',_0x56a462['MAygI']='help';const _0x1f6f59=_0x56a462;return _0x596bc9[_0x456c45(0xb7)](HELP_HEADER_MESSAGE['stop'])[_0x456c45(0xbc)](HELP_FOOTER_MESSAGE)[_0x456c45(0xc6)](_0x1f6f59[_0x456c45(0xc7)])[_0x456c45(0xb8)]()[_0x456c45(0xc2)]()['strict']()[_0x456c45(0xb6)](_0x1f6f59[_0x456c45(0xc9)]);},exports['handler']=function(_0x3aaee0){};
1
+ const a20_0x49de9c=a20_0x41ef;(function(_0x5371be,_0x4c47d9){const _0x3b1eb4=a20_0x41ef,_0x420330=_0x5371be();while(!![]){try{const _0x5a291a=parseInt(_0x3b1eb4(0xf9))/0x1*(-parseInt(_0x3b1eb4(0x104))/0x2)+parseInt(_0x3b1eb4(0xfb))/0x3*(-parseInt(_0x3b1eb4(0xfc))/0x4)+-parseInt(_0x3b1eb4(0x108))/0x5*(-parseInt(_0x3b1eb4(0x109))/0x6)+-parseInt(_0x3b1eb4(0xfd))/0x7+-parseInt(_0x3b1eb4(0x105))/0x8+-parseInt(_0x3b1eb4(0x101))/0x9+-parseInt(_0x3b1eb4(0x10c))/0xa*(-parseInt(_0x3b1eb4(0x102))/0xb);if(_0x5a291a===_0x4c47d9)break;else _0x420330['push'](_0x420330['shift']());}catch(_0x521249){_0x420330['push'](_0x420330['shift']());}}}(a20_0x58ce,0xc0f6e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x49de9c(0xff));function a20_0x58ce(){const _0x42f531=['strict','../config/constants','stop','254133WHlWcy','47219986KMJuUd','demandCommand','2tAAspH','8664112mPFNcT','FdDIW','desc','3569165AxIynY','6qzYAkG','epilogue','command','10ojjAin','Stop\x20a\x20running\x20Automation\x20grid.','builder','iMLnp','stop_commands','handler','help','1573132CDUXWw','usage','7917aFjJqY','668nnpIiO','7637567ssFugL'];a20_0x58ce=function(){return _0x42f531;};return a20_0x58ce();}function a20_0x41ef(_0x7cda2f,_0xca962e){const _0x58ce67=a20_0x58ce();return a20_0x41ef=function(_0x41ef6a,_0x2fc18f){_0x41ef6a=_0x41ef6a-0xf9;let _0x1e4b37=_0x58ce67[_0x41ef6a];return _0x1e4b37;},a20_0x41ef(_0x7cda2f,_0xca962e);}exports[a20_0x49de9c(0x10b)]='stop',exports[a20_0x49de9c(0x107)]=a20_0x49de9c(0x10d),exports[a20_0x49de9c(0x10e)]=function(_0x1554e9){const _0x4a70ed=a20_0x49de9c,_0x10b7d1={};_0x10b7d1[_0x4a70ed(0x106)]=_0x4a70ed(0x110),_0x10b7d1[_0x4a70ed(0x10f)]=_0x4a70ed(0x112);const _0x2aae59=_0x10b7d1;return _0x1554e9[_0x4a70ed(0xfa)](HELP_HEADER_MESSAGE[_0x4a70ed(0x100)])[_0x4a70ed(0x10a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2aae59[_0x4a70ed(0x106)])[_0x4a70ed(0x103)]()['recommendCommands']()[_0x4a70ed(0xfe)]()['help'](_0x2aae59['iMLnp']);},exports[a20_0x49de9c(0x111)]=function(_0x153644){};
@@ -1 +1 @@
1
- const a21_0x22fea3=a21_0x4f41;(function(_0x4e5c2a,_0x4f3faf){const _0x2c5c9a=a21_0x4f41,_0x41d783=_0x4e5c2a();while(!![]){try{const _0xa753e2=parseInt(_0x2c5c9a(0x1d9))/0x1+-parseInt(_0x2c5c9a(0x1da))/0x2*(parseInt(_0x2c5c9a(0x1c2))/0x3)+parseInt(_0x2c5c9a(0x180))/0x4*(-parseInt(_0x2c5c9a(0x1b7))/0x5)+-parseInt(_0x2c5c9a(0x18a))/0x6*(-parseInt(_0x2c5c9a(0x1b0))/0x7)+parseInt(_0x2c5c9a(0x1d5))/0x8*(parseInt(_0x2c5c9a(0x1a1))/0x9)+-parseInt(_0x2c5c9a(0x199))/0xa*(-parseInt(_0x2c5c9a(0x1bb))/0xb)+parseInt(_0x2c5c9a(0x1d2))/0xc;if(_0xa753e2===_0x4f3faf)break;else _0x41d783['push'](_0x41d783['shift']());}catch(_0x3b38f6){_0x41d783['push'](_0x41d783['shift']());}}}(a21_0x531f,0x1aa4c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x22fea3(0x1c7)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x22fea3(0x1ab)),{logger}=require(a21_0x22fea3(0x1bf)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x22fea3(0x1a7)),{sendInstrumentationEvent}=require(a21_0x22fea3(0x18b)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x22fea3(0x185)),{getCloudProviderObject}=require(a21_0x22fea3(0x1c8));function a21_0x4f41(_0x30fd43,_0x533964){const _0x531f52=a21_0x531f();return a21_0x4f41=function(_0x4f41ff,_0x5e2dcb){_0x4f41ff=_0x4f41ff-0x17f;let _0xadbe9b=_0x531f52[_0x4f41ff];return _0xadbe9b;},a21_0x4f41(_0x30fd43,_0x533964);}function a21_0x531f(){const _0x44d990=['region','skipTlsCertVerify','4OmlcPE','INFO','command','IlJWi','grid-id','../../utils/createk8sClient','message','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Browserstack','cVSJq','323358oGYXQQ','../../utils/instrumentationUtils','zNXMo','replace','exit','bstackUsername','skip-tls-cert-verify','acjKh','LCjfx','uCvtW','JDgUQ','jgKbQ','WebSocket','dmeWx','Adding\x20Websocket\x20listeners','10aQRYbb','ntrdW','invalid-grid-id','existsSync','afilL','stringify','password','qUWcI','9IjyCOZ','Iatvl','description','help','username','options','../../utils/gridComponents','<UsernamePlaceholder>','stack','addListeners','../../config/constants','type','egnCI','parse','gridId','14DJxdwW','init-not-called','OHsmq','user','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','default','Grid\x20stoppped.','958345hErkwk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qinJG','567193huzbeE','string','boolean','grid','../../config/logger','KtoJj','unauthorised','37302kcJUqb','BIYcE','info','handler','server-error','reconnecting-websocket','../../cloudproviders/utils','bstackAccesskey','RoLXI','stop-grid-called','error','WwJoK','connectionTimeout','eFUnB','dyJGy','cloudProvider','2740128vZpZPi','statusCode','clusterName','102136dunFwK','XqlCi','PyXAM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','86851rsNLoa','30gveOVO','nlYPe','name','ERROR'];a21_0x531f=function(){return _0x44d990;};return a21_0x531f();}exports[a21_0x22fea3(0x182)]=a21_0x22fea3(0x1be),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x2700cf){const _0x9577a4=a21_0x22fea3,_0x40e890={};_0x40e890[_0x9577a4(0x191)]=_0x9577a4(0x1b4),_0x40e890[_0x9577a4(0x1ca)]=_0x9577a4(0x1bc),_0x40e890[_0x9577a4(0x1a0)]='Skip\x20insecure\x20cert\x20verification.',_0x40e890[_0x9577a4(0x197)]=_0x9577a4(0x1bd),_0x40e890[_0x9577a4(0x1cd)]=_0x9577a4(0x1a4);const _0x969a4a=_0x40e890,_0x2497e8={};_0x2497e8['description']=_0x969a4a[_0x9577a4(0x191)],_0x2497e8[_0x9577a4(0x1ac)]=_0x969a4a[_0x9577a4(0x1ca)];const _0x2024eb={};_0x2024eb[_0x9577a4(0x1a3)]=_0x969a4a[_0x9577a4(0x1a0)],_0x2024eb[_0x9577a4(0x1ac)]=_0x969a4a[_0x9577a4(0x197)],_0x2024eb[_0x9577a4(0x1b5)]=![];const _0x2bbfad={};return _0x2bbfad[_0x9577a4(0x184)]=_0x2497e8,_0x2bbfad[_0x9577a4(0x190)]=_0x2024eb,_0x2700cf['usage'](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x9577a4(0x1a6)](_0x2bbfad)[_0x9577a4(0x1a4)](_0x969a4a[_0x9577a4(0x1cd)])['argv'];},exports[a21_0x22fea3(0x1c5)]=async function(_0x66b7ad){const _0x102dfd=a21_0x22fea3,_0xb84585={'eFUnB':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','IlJWi':function(_0x27a7b6){return _0x27a7b6();},'oUtAH':_0x102dfd(0x1b9),'nlYPe':function(_0x31976c,_0x117955,_0x2a6d04,_0x4fe07f,_0x478dd0,_0x555def,_0x29a0c1){return _0x31976c(_0x117955,_0x2a6d04,_0x4fe07f,_0x478dd0,_0x555def,_0x29a0c1);},'qinJG':_0x102dfd(0x1cb),'JGQDq':_0x102dfd(0x1b1),'JDgUQ':function(_0x33528c,_0x160fb3,_0x3641eb,_0x3cf796,_0x118214,_0x14ad8e,_0x5b16af){return _0x33528c(_0x160fb3,_0x3641eb,_0x3cf796,_0x118214,_0x14ad8e,_0x5b16af);},'egnCI':function(_0x1302fd){return _0x1302fd();},'BIYcE':_0x102dfd(0x1a8),'OHsmq':'<PasswordPlaceholder>','PyXAM':_0x102dfd(0x198),'dyJGy':function(_0x1073a1,_0x4170a4,_0x441709,_0x5b4e26){return _0x1073a1(_0x4170a4,_0x441709,_0x5b4e26);},'zNXMo':function(_0x27fd63,_0x4c698f,_0x55385b){return _0x27fd63(_0x4c698f,_0x55385b);},'HzwGL':function(_0x46c76a,_0x5cb5d7,_0x2f2813){return _0x46c76a(_0x5cb5d7,_0x2f2813);},'ntrdW':_0x102dfd(0x1b6),'JKplC':function(_0x1d1509,_0x343225){return _0x1d1509===_0x343225;},'LCjfx':_0x102dfd(0x1b8),'uCvtW':function(_0x2ea7c6,_0x59296b,_0x4d9069,_0x5e9524,_0x37a242,_0x9f99a,_0x470cde){return _0x2ea7c6(_0x59296b,_0x4d9069,_0x5e9524,_0x37a242,_0x9f99a,_0x470cde);},'Iatvl':_0x102dfd(0x1c1),'XqlCi':function(_0x7a4080,_0x4ede37){return _0x7a4080===_0x4ede37;},'KtoJj':function(_0x44800a,_0x1395ae,_0x261c3a,_0x111748,_0x52a670,_0x31eddc,_0x4e92de){return _0x44800a(_0x1395ae,_0x261c3a,_0x111748,_0x52a670,_0x31eddc,_0x4e92de);},'jgKbQ':_0x102dfd(0x19b),'afilL':function(_0x89b7ef,_0x6cd6b5,_0x256136,_0x5b1571,_0x95e436,_0x3c6ac4,_0x174d9d){return _0x89b7ef(_0x6cd6b5,_0x256136,_0x5b1571,_0x95e436,_0x3c6ac4,_0x174d9d);},'cVSJq':_0x102dfd(0x1c6)};let _0x2b5469;try{!_0x66b7ad[_0x102dfd(0x1af)]&&(logger['error'](_0xb84585[_0x102dfd(0x1cf)]),process[_0x102dfd(0x18e)](0x1));!fs[_0x102dfd(0x19c)](_0xb84585[_0x102dfd(0x183)](getCredentialsPath))&&(logger[_0x102dfd(0x1cc)](_0xb84585['oUtAH']),await _0xb84585[_0x102dfd(0x1db)](sendInstrumentationEvent,_0x66b7ad,_0xb84585[_0x102dfd(0x1ba)],messageTypes[_0x102dfd(0x1dd)],_0xb84585['JGQDq'],null,_0x66b7ad),process[_0x102dfd(0x18e)](0x1));logger[_0x102dfd(0x1c4)]('Stopping\x20grid\x20'+_0x66b7ad['gridId']),await _0xb84585[_0x102dfd(0x194)](sendInstrumentationEvent,_0x66b7ad,_0xb84585[_0x102dfd(0x1ba)],messageTypes[_0x102dfd(0x181)],null,null,_0x66b7ad);const _0x284866=JSON[_0x102dfd(0x1ae)](fs['readFileSync'](_0xb84585[_0x102dfd(0x1ad)](getCredentialsPath)));global_registry[_0x102dfd(0x18f)]=_0x284866['Browserstack'][_0x102dfd(0x1a5)],global_registry[_0x102dfd(0x1c9)]=_0x284866[_0x102dfd(0x188)]['password'];const _0x24c2b2=WS_ENDPOINT[_0x102dfd(0x18d)](_0xb84585[_0x102dfd(0x1c3)],_0x284866[_0x102dfd(0x188)][_0x102dfd(0x1a5)])[_0x102dfd(0x18d)](_0xb84585[_0x102dfd(0x1b2)],_0x284866[_0x102dfd(0x188)]['password']),_0x3e7cd7={};_0x3e7cd7[_0x102dfd(0x196)]=ws,_0x3e7cd7[_0x102dfd(0x1ce)]=0x36ee80,_0x2b5469=new ReconnectingWebSocket(_0x24c2b2,[],_0x3e7cd7),logger['debug'](_0xb84585[_0x102dfd(0x1d7)]),webSocketUtils[_0x102dfd(0x1aa)](_0x2b5469,_0x66b7ad[_0x102dfd(0x1b3)],_0x66b7ad[_0x102dfd(0x19f)]);const [_0x4bd8e9,_0x17c33]=await _0xb84585[_0x102dfd(0x1d0)](getGridDetails,_0x284866['Browserstack'][_0x102dfd(0x1a5)],_0x284866['Browserstack'][_0x102dfd(0x19f)],_0x66b7ad[_0x102dfd(0x1af)]);if(_0x17c33){const _0x5026a3=_0x17c33['info'];global_registry[_0x102dfd(0x1d1)]=_0x5026a3['cloudProvider'],global_registry['clusterRegion']=_0x5026a3[_0x102dfd(0x1de)],global_registry[_0x102dfd(0x1d4)]=_0x5026a3['clusterName'];const _0x328762=await _0xb84585[_0x102dfd(0x194)](getCloudProviderObject,_0x5026a3['cloudProvider'],_0x5026a3[_0x102dfd(0x1d4)],_0x5026a3['name'],_0x2b5469,webSocketUtils,_0x66b7ad),[_0x1f3ff5,_0x40f1a1,_0x48220f,_0x527dff,_0x531342,_0x411105]=await _0xb84585[_0x102dfd(0x18c)](createK8sClient,_0x328762,_0x66b7ad[_0x102dfd(0x17f)]);await _0xb84585['HzwGL'](scaleDownHubDeployment,_0x40f1a1,_0x5026a3[_0x102dfd(0x1dc)]),logger[_0x102dfd(0x1c4)](_0xb84585[_0x102dfd(0x19a)]),process['exit'](0x0);}_0xb84585['JKplC'](_0x4bd8e9[_0x102dfd(0x1d3)],0x191)&&(logger[_0x102dfd(0x1cc)](_0xb84585[_0x102dfd(0x192)]),await _0xb84585[_0x102dfd(0x193)](sendInstrumentationEvent,_0x66b7ad,_0xb84585[_0x102dfd(0x1ba)],messageTypes[_0x102dfd(0x1dd)],_0xb84585[_0x102dfd(0x1a2)],null,_0x66b7ad),process[_0x102dfd(0x18e)](0x1)),_0xb84585[_0x102dfd(0x1d6)](_0x4bd8e9['statusCode'],0x190)&&(logger[_0x102dfd(0x1cc)](JSON[_0x102dfd(0x1ae)](_0x4bd8e9['body'])[_0x102dfd(0x186)]),await _0xb84585[_0x102dfd(0x1c0)](sendInstrumentationEvent,_0x66b7ad,_0xb84585[_0x102dfd(0x1ba)],messageTypes[_0x102dfd(0x1dd)],_0xb84585[_0x102dfd(0x195)],null,_0x66b7ad),process[_0x102dfd(0x18e)](0x1)),logger['error'](_0x102dfd(0x1d8)+JSON[_0x102dfd(0x19e)](_0x4bd8e9)),await _0xb84585[_0x102dfd(0x19d)](sendInstrumentationEvent,_0x66b7ad,_0xb84585['qinJG'],messageTypes[_0x102dfd(0x1dd)],_0xb84585[_0x102dfd(0x189)],_0x4bd8e9,_0x66b7ad),process['exit'](0x1);}catch(_0xf8fa34){const _0x8433a3=_0x102dfd(0x187)+_0xf8fa34+'\x20\x0a'+JSON['stringify'](_0xf8fa34[_0x102dfd(0x1a9)])+'\x20';logger[_0x102dfd(0x1cc)](_0x8433a3),process[_0x102dfd(0x18e)](0x1);}};
1
+ function a21_0x159d(){const _0x3623b2=['Stopping\x20grid\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','parse','reconnecting-websocket','exit','grid','usage','WebSocket','2786512iroVOQ','argv','UEAjB','822mMbByi','1767464khwwHT','gridId','error','bstackAccesskey','stringify','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','qfPhw','../../config/logger','options','handler','FAIMR','hAYjO','nlcXK','INFO','clusterRegion','username','DaZcq','ZyzsZ','4863292glqMYK','Grid\x20stoppped.','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','invalid-grid-id','VPFdX','<PasswordPlaceholder>','1360989akpEiQ','18nrDNge','ERROR','desc','Adding\x20Websocket\x20listeners','message','iSvTE','bstackUsername','rpGGI','EekQI','kXHjl','KyjOL','295lcUvMU','1Ujbtyb','../../utils/gridComponents','ouBAg','default','Stop\x20a\x20running\x20Automation\x20grid.','stop','YZdXt','password','4778640Ecddyz','ThmPL','GCyPc','../../utils/webSocketUtils','replace','EWUWJ','../../utils/instrumentationUtils','init-not-called','command','1785832qoUkoS','LgyYe','type','lFuYT','stack','region','server-error','unauthorised','addListeners','grid-id','connectionTimeout','skip-tls-cert-verify','statusCode','EYPCU','UUuxD','HhNjV','skipTlsCertVerify','Browserstack','boolean','cloudProvider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','existsSync','clusterName'];a21_0x159d=function(){return _0x3623b2;};return a21_0x159d();}const a21_0x5921fd=a21_0x2091;(function(_0x4944d1,_0x43ef0e){const _0x3f17fe=a21_0x2091,_0x4352d4=_0x4944d1();while(!![]){try{const _0x184b82=parseInt(_0x3f17fe(0x199))/0x1*(-parseInt(_0x3f17fe(0x173))/0x2)+parseInt(_0x3f17fe(0x18c))/0x3+parseInt(_0x3f17fe(0x16f))/0x4+-parseInt(_0x3f17fe(0x198))/0x5*(parseInt(_0x3f17fe(0x172))/0x6)+-parseInt(_0x3f17fe(0x186))/0x7+-parseInt(_0x3f17fe(0x1aa))/0x8*(-parseInt(_0x3f17fe(0x18d))/0x9)+parseInt(_0x3f17fe(0x1a1))/0xa;if(_0x184b82===_0x43ef0e)break;else _0x4352d4['push'](_0x4352d4['shift']());}catch(_0x29e99a){_0x4352d4['push'](_0x4352d4['shift']());}}}(a21_0x159d,0x7726a));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5921fd(0x1c4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x5921fd(0x17b)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x5921fd(0x19a)),{sendInstrumentationEvent}=require(a21_0x5921fd(0x1a7)),webSocketUtils=require(a21_0x5921fd(0x1a4)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x2091(_0x40dd2e,_0x1133a1){const _0x159dd4=a21_0x159d();return a21_0x2091=function(_0x2091f8,_0x418ec1){_0x2091f8=_0x2091f8-0x16c;let _0x3ce027=_0x159dd4[_0x2091f8];return _0x3ce027;},a21_0x2091(_0x40dd2e,_0x1133a1);}exports[a21_0x5921fd(0x1a9)]=a21_0x5921fd(0x16c),exports[a21_0x5921fd(0x18f)]=a21_0x5921fd(0x19d),exports['builder']=function(_0x365293){const _0x58c890=a21_0x5921fd,_0x1be959={};_0x1be959[_0x58c890(0x196)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x1be959[_0x58c890(0x1b7)]='string',_0x1be959[_0x58c890(0x19f)]='Skip\x20insecure\x20cert\x20verification.',_0x1be959[_0x58c890(0x17a)]=_0x58c890(0x1bc),_0x1be959[_0x58c890(0x192)]='help';const _0x6e9b4a=_0x1be959,_0x42f81e={};_0x42f81e['description']=_0x6e9b4a[_0x58c890(0x196)],_0x42f81e[_0x58c890(0x1ac)]=_0x6e9b4a[_0x58c890(0x1b7)];const _0x5941ac={};_0x5941ac['description']=_0x6e9b4a['YZdXt'],_0x5941ac[_0x58c890(0x1ac)]=_0x6e9b4a[_0x58c890(0x17a)],_0x5941ac[_0x58c890(0x19c)]=![];const _0x5790f1={};return _0x5790f1[_0x58c890(0x1b3)]=_0x42f81e,_0x5790f1[_0x58c890(0x1b5)]=_0x5941ac,_0x365293[_0x58c890(0x16d)](HELP_HEADER_MESSAGE[_0x58c890(0x19e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x58c890(0x17c)](_0x5790f1)['help'](_0x6e9b4a[_0x58c890(0x192)])[_0x58c890(0x170)];},exports[a21_0x5921fd(0x17d)]=async function(_0x2b2a6f){const _0xac9435=a21_0x5921fd,_0x398080={'LgyYe':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','EWUWJ':function(_0x44d310){return _0x44d310();},'hAYjO':_0xac9435(0x1be),'VPFdX':function(_0x4387e2,_0x5cc906,_0x55aabf,_0x524a11,_0x1ce0da,_0xbe5e7a,_0x4495b9){return _0x4387e2(_0x5cc906,_0x55aabf,_0x524a11,_0x1ce0da,_0xbe5e7a,_0x4495b9);},'rpGGI':'stop-grid-called','UUuxD':_0xac9435(0x1a8),'nlcXK':function(_0x3579e0){return _0x3579e0();},'lFuYT':'<UsernamePlaceholder>','ZyzsZ':_0xac9435(0x18b),'KyjOL':_0xac9435(0x190),'FAIMR':function(_0x2a8f95,_0xa30b31,_0x570a34,_0x2a31c0){return _0x2a8f95(_0xa30b31,_0x570a34,_0x2a31c0);},'EekQI':function(_0xd50685,_0x431cb7,_0x5dfc59){return _0xd50685(_0x431cb7,_0x5dfc59);},'ouBAg':function(_0x29843b,_0x42a901,_0x41f079){return _0x29843b(_0x42a901,_0x41f079);},'MFyCQ':_0xac9435(0x187),'mfgfs':function(_0x1b9037,_0x50686e){return _0x1b9037===_0x50686e;},'HhNjV':_0xac9435(0x179),'UEAjB':function(_0x15ea32,_0x4f52e3,_0x324289,_0x116683,_0x51ac2e,_0x112e9d,_0x181e65){return _0x15ea32(_0x4f52e3,_0x324289,_0x116683,_0x51ac2e,_0x112e9d,_0x181e65);},'ThmPL':_0xac9435(0x1b1),'GCyPc':function(_0x32549d,_0x5d9ea0){return _0x32549d===_0x5d9ea0;},'DaZcq':_0xac9435(0x189),'lVpSs':function(_0x4047d8,_0xca3216,_0x23af47,_0x114716,_0x169a9e,_0x105b26,_0x39c23f){return _0x4047d8(_0xca3216,_0x23af47,_0x114716,_0x169a9e,_0x105b26,_0x39c23f);},'zPtBw':_0xac9435(0x1b0)};let _0x57c425;try{!_0x2b2a6f['gridId']&&(logger['error'](_0x398080[_0xac9435(0x1ab)]),process[_0xac9435(0x1c5)](0x1));!fs[_0xac9435(0x1bf)](_0x398080[_0xac9435(0x1a6)](getCredentialsPath))&&(logger[_0xac9435(0x175)](_0x398080[_0xac9435(0x17f)]),await _0x398080[_0xac9435(0x18a)](sendInstrumentationEvent,_0x2b2a6f,_0x398080['rpGGI'],messageTypes[_0xac9435(0x18e)],_0x398080[_0xac9435(0x1b8)],null,_0x2b2a6f),process[_0xac9435(0x1c5)](0x1));logger['info'](_0xac9435(0x1c1)+_0x2b2a6f[_0xac9435(0x174)]),await _0x398080[_0xac9435(0x18a)](sendInstrumentationEvent,_0x2b2a6f,_0x398080[_0xac9435(0x194)],messageTypes[_0xac9435(0x181)],null,null,_0x2b2a6f);const _0x176acb=JSON[_0xac9435(0x1c3)](fs['readFileSync'](_0x398080[_0xac9435(0x180)](getCredentialsPath)));global_registry[_0xac9435(0x193)]=_0x176acb['Browserstack'][_0xac9435(0x183)],global_registry[_0xac9435(0x176)]=_0x176acb[_0xac9435(0x1bb)][_0xac9435(0x1a0)];const _0x243f78=WS_ENDPOINT[_0xac9435(0x1a5)](_0x398080[_0xac9435(0x1ad)],_0x176acb[_0xac9435(0x1bb)]['username'])[_0xac9435(0x1a5)](_0x398080[_0xac9435(0x185)],_0x176acb[_0xac9435(0x1bb)][_0xac9435(0x1a0)]),_0x44d6ad={};_0x44d6ad[_0xac9435(0x16e)]=ws,_0x44d6ad[_0xac9435(0x1b4)]=0x36ee80,_0x57c425=new ReconnectingWebSocket(_0x243f78,[],_0x44d6ad),logger['debug'](_0x398080[_0xac9435(0x197)]),webSocketUtils[_0xac9435(0x1b2)](_0x57c425,_0x2b2a6f['user'],_0x2b2a6f[_0xac9435(0x1a0)]);const [_0x25d6a0,_0x5b7c95]=await _0x398080[_0xac9435(0x17e)](getGridDetails,_0x176acb['Browserstack'][_0xac9435(0x183)],_0x176acb['Browserstack'][_0xac9435(0x1a0)],_0x2b2a6f[_0xac9435(0x174)]);if(_0x5b7c95){const _0x3d828e=_0x5b7c95['info'];global_registry[_0xac9435(0x1bd)]=_0x3d828e[_0xac9435(0x1bd)],global_registry[_0xac9435(0x182)]=_0x3d828e[_0xac9435(0x1af)],global_registry[_0xac9435(0x1c0)]=_0x3d828e[_0xac9435(0x1c0)];const _0x4c6d86=await _0x398080[_0xac9435(0x18a)](getCloudProviderObject,_0x3d828e[_0xac9435(0x1bd)],_0x3d828e[_0xac9435(0x1c0)],_0x3d828e[_0xac9435(0x178)],_0x57c425,webSocketUtils,_0x2b2a6f),[_0x3cdfda,_0x2e35fd,_0x53b4f8,_0x1a68b4,_0x308e0b,_0xb9fbe0]=await _0x398080[_0xac9435(0x195)](createK8sClient,_0x4c6d86,_0x2b2a6f[_0xac9435(0x1ba)]);await _0x398080[_0xac9435(0x19b)](scaleDownHubDeployment,_0x2e35fd,_0x3d828e[_0xac9435(0x178)]),logger['info'](_0x398080['MFyCQ']),process[_0xac9435(0x1c5)](0x0);}_0x398080['mfgfs'](_0x25d6a0[_0xac9435(0x1b6)],0x191)&&(logger[_0xac9435(0x175)](_0x398080[_0xac9435(0x1b9)]),await _0x398080[_0xac9435(0x171)](sendInstrumentationEvent,_0x2b2a6f,_0x398080[_0xac9435(0x194)],messageTypes[_0xac9435(0x18e)],_0x398080[_0xac9435(0x1a2)],null,_0x2b2a6f),process[_0xac9435(0x1c5)](0x1)),_0x398080[_0xac9435(0x1a3)](_0x25d6a0['statusCode'],0x190)&&(logger[_0xac9435(0x175)](JSON[_0xac9435(0x1c3)](_0x25d6a0['body'])[_0xac9435(0x191)]),await _0x398080[_0xac9435(0x171)](sendInstrumentationEvent,_0x2b2a6f,_0x398080['rpGGI'],messageTypes[_0xac9435(0x18e)],_0x398080[_0xac9435(0x184)],null,_0x2b2a6f),process[_0xac9435(0x1c5)](0x1)),logger[_0xac9435(0x175)](_0xac9435(0x1c2)+JSON[_0xac9435(0x177)](_0x25d6a0)),await _0x398080['lVpSs'](sendInstrumentationEvent,_0x2b2a6f,_0x398080[_0xac9435(0x194)],messageTypes[_0xac9435(0x18e)],_0x398080['zPtBw'],_0x25d6a0,_0x2b2a6f),process['exit'](0x1);}catch(_0x14c372){const _0x1f1d49=_0xac9435(0x188)+_0x14c372+'\x20\x0a'+JSON[_0xac9435(0x177)](_0x14c372[_0xac9435(0x1ae)])+'\x20';logger[_0xac9435(0x175)](_0x1f1d49),process[_0xac9435(0x1c5)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x4a9101=a22_0x2901;(function(_0x55a810,_0x5a3cef){const _0x1f1afb=a22_0x2901,_0x5343be=_0x55a810();while(!![]){try{const _0x40fc26=parseInt(_0x1f1afb(0xc7))/0x1*(parseInt(_0x1f1afb(0x119))/0x2)+parseInt(_0x1f1afb(0xcb))/0x3*(-parseInt(_0x1f1afb(0xf1))/0x4)+parseInt(_0x1f1afb(0x10f))/0x5*(-parseInt(_0x1f1afb(0xe8))/0x6)+-parseInt(_0x1f1afb(0xf3))/0x7+-parseInt(_0x1f1afb(0x10b))/0x8+parseInt(_0x1f1afb(0x123))/0x9*(parseInt(_0x1f1afb(0xf7))/0xa)+parseInt(_0x1f1afb(0xe7))/0xb*(parseInt(_0x1f1afb(0x122))/0xc);if(_0x40fc26===_0x5a3cef)break;else _0x5343be['push'](_0x5343be['shift']());}catch(_0x123c56){_0x5343be['push'](_0x5343be['shift']());}}}(a22_0x135e,0xd7226),require(a22_0x4a9101(0x118))[a22_0x4a9101(0xc5)]());let gridURL='grid.browserstack.com',bsApiUrl=a22_0x4a9101(0x11c),agApiUrl=a22_0x4a9101(0xca);function a22_0x2901(_0x258e03,_0x395218){const _0x135ec4=a22_0x135e();return a22_0x2901=function(_0x2901bb,_0x1d90e1){_0x2901bb=_0x2901bb-0xbb;let _0x44916c=_0x135ec4[_0x2901bb];return _0x44916c;},a22_0x2901(_0x258e03,_0x395218);}const _env=(process['env']['BROWSERSTACK_ENV']||a22_0x4a9101(0x120))[a22_0x4a9101(0xcf)]();function a22_0x135e(){const _0x53d8ae=['grid-api-preprod.bsstag.com','CLI_RUN_FINISHED','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','CLUSTER_AUTOSCALER_STACK_NAME','cliRunStarted','3479144uTvPay','GCP','api-preprod.bsstag.com','wss://','10tEtZBA','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','DASHBOARD_ENDPOINT','env','global_registry','WS_EVENTS','CP_CONFIG_FILE','browserstack:service','browserstack:managedBy','dotenv','61342KDHjjD','list','credentials','api.browserstack.com','info','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','AG_API_URL','prod','HELP_HEADER_MESSAGE','24gWGSju','9DQGQBS','connect','BrowserStack','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','WARNING','grid-profile','pre-check','BSTACK-ATS-CLUSTER-AUTOSCALER','ERROR','configure','TURBOSCALE_CUSTOM_TAGS','grid-api-devhst.bsstag.com','config','high-scale-grid','5NONjUy','SUCCESS','CLUSTER_DEP_STACK_NAME','grid-api.browserstack.com','845946wDUoZP','unknown','gcp','CLOUD_PROVIDER','toLowerCase','delete','UNKNOWN','BSTACK-ATS-CLUSTER','CLUSTER_HUB_HA_STACK_NAME','gridProfile','REGION','high-scale-grid-cluster','GRID_URL','us-east-1','LINK_MESSAGE','success','CLUSTER','Value','Key','CLI_ARGS_REGEX','pre_check','AZURE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','root','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','forEach','cliRunFinished','22401951jdPKXj','1807458iZifjs','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','NULL','error','COMMON_HST_TAGS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','create','AWS','SUPPORTED_CLOUD_PROVIDERS','12AmJfDx','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','12170165iQKGSm','grid-devhst.bsstag.com','IAM_USER_NAME','TRIAL_GRID_URL','2766730QGjxOX','api-devhst.bsstag.com','preprod','split','BrowserStack-Automate-TurboScale','TURBOSCALE_DEPLOYMENT','aws','RAW_ARGS_REGEX','gridUrl','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLI_RUN_STARTED','BS_API_URL','WS_ENDPOINT'];a22_0x135e=function(){return _0x53d8ae;};return a22_0x135e();}if(_env==='staging'||_env==='stag')gridURL=a22_0x4a9101(0xf4),bsApiUrl=a22_0x4a9101(0xf8),agApiUrl=a22_0x4a9101(0xc4);else(_env===a22_0x4a9101(0xf9)||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x4a9101(0x10d),agApiUrl=a22_0x4a9101(0x106));exports['DASHBOARD_ENDPOINT']=process[a22_0x4a9101(0x112)][a22_0x4a9101(0x111)]||gridURL,exports[a22_0x4a9101(0x104)]=process[a22_0x4a9101(0x112)]['BS_API_URL']||bsApiUrl,exports[a22_0x4a9101(0x11f)]=process[a22_0x4a9101(0x112)][a22_0x4a9101(0x11f)]||agApiUrl,exports[a22_0x4a9101(0x105)]=a22_0x4a9101(0x10e)+this[a22_0x4a9101(0x11f)]+a22_0x4a9101(0x100),exports[a22_0x4a9101(0x115)]=a22_0x4a9101(0x11b),exports[a22_0x4a9101(0xf5)]='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']=a22_0x4a9101(0xc6),exports[a22_0x4a9101(0xef)]=a22_0x4a9101(0xfd),exports[a22_0x4a9101(0xc9)]=a22_0x4a9101(0xd2),exports[a22_0x4a9101(0x109)]=a22_0x4a9101(0xc0),exports[a22_0x4a9101(0xd3)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x4a9101(0xfc)]='browserstack-turboscale-grid',exports[a22_0x4a9101(0xe0)]='azure',exports[a22_0x4a9101(0x10c)]=a22_0x4a9101(0xcd),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x4a9101(0xef)],this[a22_0x4a9101(0xe0)],this[a22_0x4a9101(0x10c)]];const a22_0x487b2c={};a22_0x487b2c[a22_0x4a9101(0xdd)]=a22_0x4a9101(0x117),a22_0x487b2c[a22_0x4a9101(0xdc)]='BrowserStack';const a22_0x5181b2={};a22_0x5181b2[a22_0x4a9101(0xdd)]=a22_0x4a9101(0x116),a22_0x5181b2[a22_0x4a9101(0xdc)]=a22_0x4a9101(0xfb);const common_hst_tags_list=[a22_0x487b2c,a22_0x5181b2];if(process[a22_0x4a9101(0x112)][a22_0x4a9101(0xc3)]){const parsedTags=process[a22_0x4a9101(0x112)][a22_0x4a9101(0xc3)][a22_0x4a9101(0xfa)](',');parsedTags[a22_0x4a9101(0xe5)](_0x3efad6=>{const _0x90506b=a22_0x4a9101,_0xa20360=_0x3efad6[_0x90506b(0xfa)](':'),_0x1de00b={};_0x1de00b[_0x90506b(0xdd)]=_0xa20360[0x0],_0x1de00b[_0x90506b(0xdc)]=_0xa20360[0x1],common_hst_tags_list['push'](_0x1de00b);});}exports[a22_0x4a9101(0xec)]=common_hst_tags_list;const a22_0x638e91={};a22_0x638e91['browserstack:managedBy']=a22_0x4a9101(0xbb),a22_0x638e91[a22_0x4a9101(0x116)]=a22_0x4a9101(0xfb),exports['HST_CLUSTER_TAGS']=a22_0x638e91,exports[a22_0x4a9101(0xf0)]=[this['AWS']];const a22_0x5876dc={};a22_0x5876dc['LOG']='log',a22_0x5876dc['RESOURCES']='resourceInfo',a22_0x5876dc[a22_0x4a9101(0xd7)]=a22_0x4a9101(0xff),a22_0x5876dc[a22_0x4a9101(0x103)]=a22_0x4a9101(0x10a),a22_0x5876dc[a22_0x4a9101(0x107)]=a22_0x4a9101(0xe6),exports[a22_0x4a9101(0x114)]=a22_0x5876dc,exports[a22_0x4a9101(0x113)]={},exports[a22_0x4a9101(0xd9)]=a22_0x4a9101(0x110);const a22_0xd2a585={};a22_0xd2a585[a22_0x4a9101(0xe3)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x4a9101(0xd9)],a22_0xd2a585['init']=a22_0x4a9101(0x11e)+this[a22_0x4a9101(0xd9)],a22_0xd2a585[a22_0x4a9101(0xc2)]=a22_0x4a9101(0x102)+this[a22_0x4a9101(0xd9)],a22_0xd2a585[a22_0x4a9101(0xee)]=a22_0x4a9101(0xf2)+this[a22_0x4a9101(0xd9)],a22_0xd2a585[a22_0x4a9101(0x11a)]={},a22_0xd2a585[a22_0x4a9101(0xd0)]=a22_0x4a9101(0xe4)+this[a22_0x4a9101(0xd9)],a22_0xd2a585[a22_0x4a9101(0x124)]=a22_0x4a9101(0xbc)+this[a22_0x4a9101(0xd9)],a22_0xd2a585['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x4a9101(0xd9)],a22_0xd2a585['stop']=a22_0x4a9101(0xe1)+this['LINK_MESSAGE'],a22_0xd2a585[a22_0x4a9101(0xdf)]=a22_0x4a9101(0x101)+this[a22_0x4a9101(0xd9)],a22_0xd2a585[a22_0x4a9101(0x11a)][a22_0x4a9101(0xe3)]=a22_0x4a9101(0xed)+this[a22_0x4a9101(0xd9)],a22_0xd2a585[a22_0x4a9101(0x11a)]['grid']=a22_0x4a9101(0x108)+this[a22_0x4a9101(0xd9)],a22_0xd2a585[a22_0x4a9101(0x11a)][a22_0x4a9101(0xd4)]=a22_0x4a9101(0xe9)+this[a22_0x4a9101(0xd9)],exports[a22_0x4a9101(0x121)]=a22_0xd2a585,exports['HELP_FOOTER_MESSAGE']=a22_0x4a9101(0xe2);const a22_0x179fd6={};a22_0x179fd6[a22_0x4a9101(0xc8)]=a22_0x4a9101(0xda),a22_0x179fd6[a22_0x4a9101(0xc1)]=a22_0x4a9101(0xeb),a22_0x179fd6['INFO']=a22_0x4a9101(0x11d),a22_0x179fd6[a22_0x4a9101(0xbd)]='warning',a22_0x179fd6[a22_0x4a9101(0xd1)]=a22_0x4a9101(0xcc),a22_0x179fd6[a22_0x4a9101(0xea)]=null,exports['messageTypes']=a22_0x179fd6,exports[a22_0x4a9101(0xde)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x4a9101(0xfe)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0x18c33c={};a22_0x18c33c[a22_0x4a9101(0xbe)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x4b3d5f={};a22_0x4b3d5f[a22_0x4a9101(0xbf)]=a22_0x18c33c,exports['MessageDescription']=a22_0x4b3d5f,exports[a22_0x4a9101(0xf6)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x354193={};a22_0x354193[a22_0x4a9101(0xdb)]=a22_0x4a9101(0xd6),a22_0x354193[a22_0x4a9101(0xce)]=a22_0x4a9101(0xfd),a22_0x354193[a22_0x4a9101(0xd5)]=a22_0x4a9101(0xd8),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x354193;
1
+ const a22_0x34a161=a22_0x1889;(function(_0x2d41f4,_0x57a024){const _0x2b77e8=a22_0x1889,_0x9e124d=_0x2d41f4();while(!![]){try{const _0x5a2c70=parseInt(_0x2b77e8(0x1a3))/0x1+-parseInt(_0x2b77e8(0x17a))/0x2+parseInt(_0x2b77e8(0x16d))/0x3+parseInt(_0x2b77e8(0x161))/0x4+parseInt(_0x2b77e8(0x14a))/0x5*(-parseInt(_0x2b77e8(0x190))/0x6)+parseInt(_0x2b77e8(0x193))/0x7*(-parseInt(_0x2b77e8(0x173))/0x8)+parseInt(_0x2b77e8(0x17b))/0x9;if(_0x5a2c70===_0x57a024)break;else _0x9e124d['push'](_0x9e124d['shift']());}catch(_0x27b970){_0x9e124d['push'](_0x9e124d['shift']());}}}(a22_0x5aa4,0x1e300),require(a22_0x34a161(0x17e))[a22_0x34a161(0x179)]());let gridURL=a22_0x34a161(0x13e),bsApiUrl=a22_0x34a161(0x15a),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x34a161(0x19c)]['BROWSERSTACK_ENV']||a22_0x34a161(0x177))['toLowerCase']();if(_env==='staging'||_env===a22_0x34a161(0x156))gridURL=a22_0x34a161(0x16e),bsApiUrl=a22_0x34a161(0x15b),agApiUrl=a22_0x34a161(0x148);else(_env==='preprod'||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x34a161(0x15e),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x34a161(0x18d)]=process[a22_0x34a161(0x19c)][a22_0x34a161(0x18d)]||gridURL,exports['BS_API_URL']=process[a22_0x34a161(0x19c)][a22_0x34a161(0x18b)]||bsApiUrl,exports[a22_0x34a161(0x176)]=process[a22_0x34a161(0x19c)][a22_0x34a161(0x176)]||agApiUrl,exports[a22_0x34a161(0x172)]=a22_0x34a161(0x194)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x34a161(0x182)]=a22_0x34a161(0x196),exports['IAM_USER_NAME']=a22_0x34a161(0x195),exports[a22_0x34a161(0x151)]=a22_0x34a161(0x154),exports[a22_0x34a161(0x14c)]=a22_0x34a161(0x14d),exports['CLUSTER_DEP_STACK_NAME']=a22_0x34a161(0x170),exports[a22_0x34a161(0x197)]=a22_0x34a161(0x189),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x34a161(0x169),exports[a22_0x34a161(0x147)]=a22_0x34a161(0x1a2),exports[a22_0x34a161(0x152)]=a22_0x34a161(0x16a),exports[a22_0x34a161(0x191)]=a22_0x34a161(0x18c),exports[a22_0x34a161(0x167)]=[this[a22_0x34a161(0x14c)],this[a22_0x34a161(0x152)],this['GCP']];const a22_0x1d2f88={};a22_0x1d2f88[a22_0x34a161(0x140)]=a22_0x34a161(0x174),a22_0x1d2f88[a22_0x34a161(0x13f)]=a22_0x34a161(0x146);const a22_0x30583b={};a22_0x30583b[a22_0x34a161(0x140)]='browserstack:service',a22_0x30583b[a22_0x34a161(0x13f)]=a22_0x34a161(0x165);const common_hst_tags_list=[a22_0x1d2f88,a22_0x30583b];if(process[a22_0x34a161(0x19c)][a22_0x34a161(0x153)]){const parsedTags=process[a22_0x34a161(0x19c)][a22_0x34a161(0x153)]['split'](',');parsedTags[a22_0x34a161(0x145)](_0x4187cd=>{const _0x5c7da5=a22_0x34a161,_0x5ca136=_0x4187cd[_0x5c7da5(0x181)](':'),_0x2cf375={};_0x2cf375[_0x5c7da5(0x140)]=_0x5ca136[0x0],_0x2cf375[_0x5c7da5(0x13f)]=_0x5ca136[0x1],common_hst_tags_list[_0x5c7da5(0x149)](_0x2cf375);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x200609={};a22_0x200609[a22_0x34a161(0x174)]=a22_0x34a161(0x146),a22_0x200609['browserstack:service']=a22_0x34a161(0x165),exports[a22_0x34a161(0x155)]=a22_0x200609,exports[a22_0x34a161(0x157)]=[this[a22_0x34a161(0x14c)]];function a22_0x5aa4(){const _0x35f962=['\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','root','info','log','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','error','BSTACK-ATS-CLUSTER-AUTOSCALER','NULL','BS_API_URL','gcp','DASHBOARD_ENDPOINT','CLI_RUN_STARTED','HELP_HEADER_MESSAGE','90tVzBVL','GCP','REGION','10339SIttNx','wss://','BrowserStackIAMUser','credentials','CLUSTER_AUTOSCALER_STACK_NAME','TRIAL_GRID_URL','stop','MessageDescription','UNKNOWN','env','start','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','init','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','high-scale-grid-cluster','browserstack-turboscale-grid','183782RpseJk','grid.browserstack.com','Value','Key','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLOUD_PROVIDER','gridUrl','HELP_FOOTER_MESSAGE','forEach','BrowserStack','TURBOSCALE_DEPLOYMENT','grid-api-devhst.bsstag.com','push','24285KUfYaA','create','AWS','aws','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','CLUSTER','success','DEFAULT_GRID_NAME','AZURE','TURBOSCALE_CUSTOM_TAGS','high-scale-grid','HST_CLUSTER_TAGS','stag','SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','warning','api.browserstack.com','api-devhst.bsstag.com','resourceInfo','REDACTED','api-preprod.bsstag.com','WARNING','messageTypes','502016oGpPLy','cliRunStarted','LINK_MESSAGE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BrowserStack-Automate-TurboScale','pre_check','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','BSTACK-ATS-CLUSTER-HUB-HA','azure','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','list','110811JZKbFa','grid-devhst.bsstag.com','pre-check','BSTACK-ATS-CLUSTER','RAW_ARGS_REGEX','WS_ENDPOINT','1080aYmdZm','browserstack:managedBy','INFO','AG_API_URL','prod','ERROR','config','431532PTemhy','2388969iUtsJV','CLI_RUN_FINISHED','DEFAULT_CLUSTER_DETAILS','dotenv','unknown','WS_EVENTS','split','CP_CONFIG_FILE'];a22_0x5aa4=function(){return _0x35f962;};return a22_0x5aa4();}const a22_0x48fae3={};a22_0x48fae3['LOG']=a22_0x34a161(0x186),a22_0x48fae3['RESOURCES']=a22_0x34a161(0x15c),a22_0x48fae3['GRID_URL']=a22_0x34a161(0x143),a22_0x48fae3[a22_0x34a161(0x18e)]=a22_0x34a161(0x162),a22_0x48fae3[a22_0x34a161(0x17c)]='cliRunFinished',exports[a22_0x34a161(0x180)]=a22_0x48fae3,exports['global_registry']={},exports[a22_0x34a161(0x163)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';function a22_0x1889(_0x11bc14,_0x27c17f){const _0x5aa4aa=a22_0x5aa4();return a22_0x1889=function(_0x1889e3,_0x45707f){_0x1889e3=_0x1889e3-0x13e;let _0x35bd4f=_0x5aa4aa[_0x1889e3];return _0x35bd4f;},a22_0x1889(_0x11bc14,_0x27c17f);}const a22_0x413865={};a22_0x413865[a22_0x34a161(0x184)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x34a161(0x163)],a22_0x413865[a22_0x34a161(0x19f)]=a22_0x34a161(0x19e)+this[a22_0x34a161(0x163)],a22_0x413865['configure']=a22_0x34a161(0x1a0)+this[a22_0x34a161(0x163)],a22_0x413865[a22_0x34a161(0x14b)]=a22_0x34a161(0x164)+this[a22_0x34a161(0x163)],a22_0x413865[a22_0x34a161(0x16c)]={},a22_0x413865['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x34a161(0x163)],a22_0x413865['connect']=a22_0x34a161(0x183)+this[a22_0x34a161(0x163)],a22_0x413865[a22_0x34a161(0x19d)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x34a161(0x163)],a22_0x413865[a22_0x34a161(0x199)]=a22_0x34a161(0x16b)+this[a22_0x34a161(0x163)],a22_0x413865[a22_0x34a161(0x166)]=a22_0x34a161(0x168)+this[a22_0x34a161(0x163)],a22_0x413865[a22_0x34a161(0x16c)][a22_0x34a161(0x184)]=a22_0x34a161(0x14e)+this['LINK_MESSAGE'],a22_0x413865[a22_0x34a161(0x16c)]['grid']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x413865[a22_0x34a161(0x16c)]['gridProfile']=a22_0x34a161(0x158)+this['LINK_MESSAGE'],exports[a22_0x34a161(0x18f)]=a22_0x413865,exports[a22_0x34a161(0x144)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x3b5631={};a22_0x3b5631['SUCCESS']=a22_0x34a161(0x150),a22_0x3b5631[a22_0x34a161(0x178)]=a22_0x34a161(0x188),a22_0x3b5631[a22_0x34a161(0x175)]=a22_0x34a161(0x185),a22_0x3b5631[a22_0x34a161(0x15f)]=a22_0x34a161(0x159),a22_0x3b5631[a22_0x34a161(0x19b)]=a22_0x34a161(0x17f),a22_0x3b5631[a22_0x34a161(0x18a)]=null,exports[a22_0x34a161(0x160)]=a22_0x3b5631,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x34a161(0x171)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x34a161(0x15d)]='[REDACTED]';const a22_0x25dc48={};a22_0x25dc48['grid-profile']=a22_0x34a161(0x187);const a22_0x3840bb={};a22_0x3840bb[a22_0x34a161(0x16f)]=a22_0x25dc48,exports[a22_0x34a161(0x19a)]=a22_0x3840bb,exports[a22_0x34a161(0x198)]=a22_0x34a161(0x141);const a22_0x45b231={};a22_0x45b231[a22_0x34a161(0x14f)]=a22_0x34a161(0x1a1),a22_0x45b231[a22_0x34a161(0x142)]='aws',a22_0x45b231[a22_0x34a161(0x192)]='us-east-1',exports[a22_0x34a161(0x17d)]=a22_0x45b231;
@@ -1 +1 @@
1
- const a23_0x5e058e=a23_0x3a0a;(function(_0x3390cc,_0x5784c4){const _0x3f8a4a=a23_0x3a0a,_0x3279fd=_0x3390cc();while(!![]){try{const _0x48d488=-parseInt(_0x3f8a4a(0x1d9))/0x1*(-parseInt(_0x3f8a4a(0x1de))/0x2)+parseInt(_0x3f8a4a(0x1e3))/0x3*(-parseInt(_0x3f8a4a(0x1ed))/0x4)+-parseInt(_0x3f8a4a(0x1d5))/0x5+-parseInt(_0x3f8a4a(0x1d1))/0x6*(parseInt(_0x3f8a4a(0x1ec))/0x7)+-parseInt(_0x3f8a4a(0x1d8))/0x8*(parseInt(_0x3f8a4a(0x1eb))/0x9)+parseInt(_0x3f8a4a(0x1e2))/0xa*(parseInt(_0x3f8a4a(0x1ee))/0xb)+parseInt(_0x3f8a4a(0x1e4))/0xc;if(_0x48d488===_0x5784c4)break;else _0x3279fd['push'](_0x3279fd['shift']());}catch(_0x1e702e){_0x3279fd['push'](_0x3279fd['shift']());}}}(a23_0x257c,0xb626e));const winston=require('winston'),fs=require('fs'),path=require(a23_0x5e058e(0x1da)),logDir=a23_0x5e058e(0x1dd);!fs[a23_0x5e058e(0x1d7)](logDir)&&fs['mkdirSync'](logDir);const a23_0x474bff={};a23_0x474bff[a23_0x5e058e(0x1ef)]=a23_0x5e058e(0x1dc);const a23_0x407474={};a23_0x407474['level']=!![];function a23_0x3a0a(_0x19e92d,_0x31b201){const _0x257c0d=a23_0x257c();return a23_0x3a0a=function(_0x3a0a89,_0x1d8954){_0x3a0a89=_0x3a0a89-0x1d1;let _0x56cd33=_0x257c0d[_0x3a0a89];return _0x56cd33;},a23_0x3a0a(_0x19e92d,_0x31b201);}function a23_0x257c(){const _0x26a35b=['join','combine','3222220bJeuIV','usage.log','existsSync','2341896PmWuic','39794wCcujn','path','console.info','YYYY-MM-DD\x20HH:mm:ss','log','44RtNwvw','timestamp','fileLogger','Console','10eIDSnu','15WVCfhn','29671560TwoTlx','debug','message','colorize','level','transports','createLogger','9mmPazs','14cwbcdE','1166200aJONkW','7862063pMigJH','format','\x20-\x20','2765418OYneWl','printf'];a23_0x257c=function(){return _0x26a35b;};return a23_0x257c();}const a23_0x351a9d={};a23_0x351a9d['name']=a23_0x5e058e(0x1db),exports['logger']=new winston[(a23_0x5e058e(0x1ea))]({'format':winston[a23_0x5e058e(0x1ef)][a23_0x5e058e(0x1d4)](winston[a23_0x5e058e(0x1ef)]['timestamp'](a23_0x474bff),winston[a23_0x5e058e(0x1ef)][a23_0x5e058e(0x1e7)](a23_0x407474),winston[a23_0x5e058e(0x1ef)][a23_0x5e058e(0x1d2)](_0xe496e0=>_0xe496e0[a23_0x5e058e(0x1df)]+a23_0x5e058e(0x1f0)+_0xe496e0[a23_0x5e058e(0x1e8)]+':\x20'+_0xe496e0[a23_0x5e058e(0x1e6)])),'transports':[new winston[(a23_0x5e058e(0x1e9))][(a23_0x5e058e(0x1e1))](a23_0x351a9d),new winston[(a23_0x5e058e(0x1e9))]['File']({'filename':path[a23_0x5e058e(0x1d3)](logDir,'events.log'),'level':a23_0x5e058e(0x1e5)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x5e058e(0x1e9))]['File']({'filename':path[a23_0x5e058e(0x1d3)](logDir,a23_0x5e058e(0x1d6)),'level':a23_0x5e058e(0x1e5)})]};exports[a23_0x5e058e(0x1e0)]=new winston[(a23_0x5e058e(0x1ea))](winstonFileLoggerParams);
1
+ const a23_0x2c0b27=a23_0x3d54;(function(_0xdf44f1,_0x3fb5d7){const _0x1a3c5f=a23_0x3d54,_0x3496d0=_0xdf44f1();while(!![]){try{const _0x5a1ff4=parseInt(_0x1a3c5f(0x1f0))/0x1+-parseInt(_0x1a3c5f(0x1ed))/0x2*(-parseInt(_0x1a3c5f(0x1dc))/0x3)+-parseInt(_0x1a3c5f(0x1f1))/0x4+-parseInt(_0x1a3c5f(0x1e8))/0x5+-parseInt(_0x1a3c5f(0x1e6))/0x6+-parseInt(_0x1a3c5f(0x1fa))/0x7*(-parseInt(_0x1a3c5f(0x1f5))/0x8)+-parseInt(_0x1a3c5f(0x1ee))/0x9*(-parseInt(_0x1a3c5f(0x1e1))/0xa);if(_0x5a1ff4===_0x3fb5d7)break;else _0x3496d0['push'](_0x3496d0['shift']());}catch(_0x359b8a){_0x3496d0['push'](_0x3496d0['shift']());}}}(a23_0x3ac2,0x8cf3e));const winston=require(a23_0x2c0b27(0x1de)),fs=require('fs'),path=require(a23_0x2c0b27(0x1ea)),logDir=a23_0x2c0b27(0x1df);!fs['existsSync'](logDir)&&fs[a23_0x2c0b27(0x1dd)](logDir);const a23_0x57572f={};a23_0x57572f[a23_0x2c0b27(0x1f4)]=a23_0x2c0b27(0x1e7);function a23_0x3ac2(){const _0x31bc58=['events.log','format','7096QdLCdy','logger','level','printf','debug','3829ffsNyD','18AwFpKK','mkdirSync','winston','log','File','310dKWyZC','usage.log','colorize','timestamp','transports','3582102XbEItn','YYYY-MM-DD\x20HH:mm:ss','2004820Dadifl','name','path','createLogger','Console','270606jefnIC','139644wzSapt','combine','646374GdXcos','3396216dfOypj','join'];a23_0x3ac2=function(){return _0x31bc58;};return a23_0x3ac2();}function a23_0x3d54(_0x241fb8,_0x7ad7f3){const _0x3ac204=a23_0x3ac2();return a23_0x3d54=function(_0x3d54c6,_0x309292){_0x3d54c6=_0x3d54c6-0x1dc;let _0x44ad51=_0x3ac204[_0x3d54c6];return _0x44ad51;},a23_0x3d54(_0x241fb8,_0x7ad7f3);}const a23_0x4c2dfe={};a23_0x4c2dfe[a23_0x2c0b27(0x1f7)]=!![];const a23_0x4b48d3={};a23_0x4b48d3[a23_0x2c0b27(0x1e9)]='console.info',exports[a23_0x2c0b27(0x1f6)]=new winston[(a23_0x2c0b27(0x1eb))]({'format':winston[a23_0x2c0b27(0x1f4)][a23_0x2c0b27(0x1ef)](winston[a23_0x2c0b27(0x1f4)][a23_0x2c0b27(0x1e4)](a23_0x57572f),winston['format'][a23_0x2c0b27(0x1e3)](a23_0x4c2dfe),winston[a23_0x2c0b27(0x1f4)][a23_0x2c0b27(0x1f8)](_0x3542a3=>_0x3542a3[a23_0x2c0b27(0x1e4)]+'\x20-\x20'+_0x3542a3[a23_0x2c0b27(0x1f7)]+':\x20'+_0x3542a3['message'])),'transports':[new winston[(a23_0x2c0b27(0x1e5))][(a23_0x2c0b27(0x1ec))](a23_0x4b48d3),new winston[(a23_0x2c0b27(0x1e5))]['File']({'filename':path[a23_0x2c0b27(0x1f2)](logDir,a23_0x2c0b27(0x1f3)),'level':a23_0x2c0b27(0x1f9)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x2c0b27(0x1e0))]({'filename':path[a23_0x2c0b27(0x1f2)](logDir,a23_0x2c0b27(0x1e2)),'level':a23_0x2c0b27(0x1f9)})]};exports['fileLogger']=new winston[(a23_0x2c0b27(0x1eb))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x50e624=a24_0x52ed;(function(_0x202a1e,_0x540374){const _0x5e14ba=a24_0x52ed,_0x49214d=_0x202a1e();while(!![]){try{const _0x465ce1=parseInt(_0x5e14ba(0x8b))/0x1+-parseInt(_0x5e14ba(0x8f))/0x2*(-parseInt(_0x5e14ba(0x89))/0x3)+parseInt(_0x5e14ba(0x85))/0x4+parseInt(_0x5e14ba(0x8a))/0x5*(-parseInt(_0x5e14ba(0x83))/0x6)+-parseInt(_0x5e14ba(0x82))/0x7+-parseInt(_0x5e14ba(0x8d))/0x8+parseInt(_0x5e14ba(0x8c))/0x9*(parseInt(_0x5e14ba(0x87))/0xa);if(_0x465ce1===_0x540374)break;else _0x49214d['push'](_0x49214d['shift']());}catch(_0x5ae125){_0x49214d['push'](_0x49214d['shift']());}}}(a24_0x3cb8,0xdcaa1));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x50e624(0x91));function a24_0x3cb8(){const _0x2626b9=['demandCommand','commandDir','usage','iBmGN','6078618PkeLWp','6SumIxz','env','304468XPmDnh','epilogue','10NqBvXD','root','21yLDxkd','8474165tVPwDk','927665Lrrtuj','25523334iVsBvL','8017976FfEFkD','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','179882vALQhY','exports','./config/constants','SqzOh'];a24_0x3cb8=function(){return _0x2626b9;};return a24_0x3cb8();}function a24_0x52ed(_0x31ac88,_0x4d315f){const _0x3cb872=a24_0x3cb8();return a24_0x52ed=function(_0x52ed2a,_0x101596){_0x52ed2a=_0x52ed2a-0x81;let _0x4e431f=_0x3cb872[_0x52ed2a];return _0x4e431f;},a24_0x52ed(_0x31ac88,_0x4d315f);}process[a24_0x50e624(0x84)][a24_0x50e624(0x8e)]=0x1;function run(_0x49119f){const _0x3ef9ba=a24_0x50e624,_0x4e61cd={};_0x4e61cd[_0x3ef9ba(0x92)]='commands',_0x4e61cd[_0x3ef9ba(0x81)]='help';const _0x372aae=_0x4e61cd;_0x49119f[_0x3ef9ba(0x95)](HELP_HEADER_MESSAGE[_0x3ef9ba(0x88)])[_0x3ef9ba(0x94)](_0x372aae[_0x3ef9ba(0x92)])[_0x3ef9ba(0x93)]()['help'](_0x372aae['iBmGN'])[_0x3ef9ba(0x86)](HELP_FOOTER_MESSAGE);}module[a24_0x50e624(0x90)]=run;
2
+ 'use strict';const a24_0x47304b=a24_0x4ce8;(function(_0x69e0c6,_0x243277){const _0x131571=a24_0x4ce8,_0x4c0cc9=_0x69e0c6();while(!![]){try{const _0x1537b6=-parseInt(_0x131571(0x70))/0x1*(-parseInt(_0x131571(0x76))/0x2)+-parseInt(_0x131571(0x78))/0x3+-parseInt(_0x131571(0x81))/0x4+-parseInt(_0x131571(0x7c))/0x5+-parseInt(_0x131571(0x77))/0x6+parseInt(_0x131571(0x7b))/0x7*(-parseInt(_0x131571(0x71))/0x8)+parseInt(_0x131571(0x7e))/0x9*(parseInt(_0x131571(0x80))/0xa);if(_0x1537b6===_0x243277)break;else _0x4c0cc9['push'](_0x4c0cc9['shift']());}catch(_0x32d834){_0x4c0cc9['push'](_0x4c0cc9['shift']());}}}(a24_0x5e2c,0xdac37));function a24_0x4ce8(_0x4f7725,_0x50a940){const _0x5e2c61=a24_0x5e2c();return a24_0x4ce8=function(_0x4ce831,_0x4628fe){_0x4ce831=_0x4ce831-0x6f;let _0x38032b=_0x5e2c61[_0x4ce831];return _0x38032b;},a24_0x4ce8(_0x4f7725,_0x50a940);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x47304b(0x75));process['env'][a24_0x47304b(0x72)]=0x1;function a24_0x5e2c(){const _0x383ef0=['help','usage','5118743KerWst','7377635mAhkdT','commandDir','27vfQXGV','demandCommand','18578420uSAHuQ','2267004Itpvmo','epilogue','8350LiOPtY','8FGknJU','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','commands','BIfrJ','./config/constants','84dvvkaw','9225510EQZERj','2151177aGbEje'];a24_0x5e2c=function(){return _0x383ef0;};return a24_0x5e2c();}function run(_0x32327c){const _0x385b4b=a24_0x47304b,_0x26ed58={};_0x26ed58['rXZPt']=_0x385b4b(0x73),_0x26ed58[_0x385b4b(0x74)]=_0x385b4b(0x79);const _0x165bdc=_0x26ed58;_0x32327c[_0x385b4b(0x7a)](HELP_HEADER_MESSAGE['root'])[_0x385b4b(0x7d)](_0x165bdc['rXZPt'])[_0x385b4b(0x7f)]()[_0x385b4b(0x79)](_0x165bdc['BIfrJ'])[_0x385b4b(0x6f)](HELP_FOOTER_MESSAGE);}module['exports']=run;