browserstack-node-sdk 1.49.11 → 1.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +2 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x501d(){const _0x3c789a=['queued','unauthorised','desc','ofsps','3376050UqJzPc','password','44407qByebM','\x0aFound\x20the\x20following\x20grids:\x0a','../../utils/instrumentationUtils','WfDzU','tmMdC','cluster-name','GKAyh','ERROR','https://','1564112lsJWbp','dUIVQ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GAJeK','12qjPctn','HQnlW','8qRxEvV','exit','bstackAccesskey','parse','xuzHQ','help','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','all-grids','tedij','2322173uuLVTK','416901gfwDtI','clusterName','readFileSync','stringify','423315ceJRxc','qhWFP','10NKtnVN','table','JLiih','usage','name','fkGTf','PWvWV','list-grids-called','3415437fGaTqS','/packages/cli/get-all-grids','grid-id','grids','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','bstackUsername','GET','server-error','stack','builder','statusCode','TgQfr','zioaW','log','username','1690WAQrlo','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','dYClB','uoVSJ','got','Browserstack','running','INFO','error','type','uuid','ZsNpP','/packages/cli/get-grids','FwQQt','allGrids','fSgiX','../../utils/utilityMethods','YbQuW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','status','vPpZE','ZbWdw','epilogue','forEach','WszHB','argv'];a15_0x501d=function(){return _0x3c789a;};return a15_0x501d();}const a15_0x1c2aef=a15_0x4a08;(function(_0x2a157f,_0x50606c){const _0x147f1=a15_0x4a08,_0x314c45=_0x2a157f();while(!![]){try{const _0x402d89=parseInt(_0x147f1(0x140))/0x1+parseInt(_0x147f1(0x142))/0x2*(-parseInt(_0x147f1(0x13c))/0x3)+parseInt(_0x147f1(0x12c))/0x4+-parseInt(_0x147f1(0x121))/0x5+-parseInt(_0x147f1(0x130))/0x6*(-parseInt(_0x147f1(0x13b))/0x7)+-parseInt(_0x147f1(0x132))/0x8*(parseInt(_0x147f1(0x14a))/0x9)+parseInt(_0x147f1(0x159))/0xa*(parseInt(_0x147f1(0x123))/0xb);if(_0x402d89===_0x50606c)break;else _0x314c45['push'](_0x314c45['shift']());}catch(_0x755f78){_0x314c45['push'](_0x314c45['shift']());}}}(a15_0x501d,0x643a8));const fs=require('fs'),got=require(a15_0x1c2aef(0x15d)),{table}=require(a15_0x1c2aef(0x143)),{v4:uuidv4}=require(a15_0x1c2aef(0x163)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x1c2aef(0x169)),{sendInstrumentationEvent}=require(a15_0x1c2aef(0x125));function a15_0x4a08(_0x5b9222,_0xeedf83){const _0x501d72=a15_0x501d();return a15_0x4a08=function(_0x4a086c,_0x225d3a){_0x4a086c=_0x4a086c-0x115;let _0x5dc9fd=_0x501d72[_0x4a086c];return _0x5dc9fd;},a15_0x4a08(_0x5b9222,_0xeedf83);}exports['command']=a15_0x1c2aef(0x14d),exports[a15_0x1c2aef(0x11f)]=a15_0x1c2aef(0x138),exports[a15_0x1c2aef(0x153)]=function(_0x125b06){const _0x2d0e2d=a15_0x1c2aef,_0x439778={};_0x439778[_0x2d0e2d(0x120)]=_0x2d0e2d(0x14e),_0x439778[_0x2d0e2d(0x156)]='boolean',_0x439778['PWvWV']='help';const _0x5c3d52=_0x439778,_0x3467ca={};_0x3467ca['description']=_0x5c3d52[_0x2d0e2d(0x120)],_0x3467ca[_0x2d0e2d(0x162)]=_0x5c3d52[_0x2d0e2d(0x156)];const _0x47372b={};return _0x47372b[_0x2d0e2d(0x139)]=_0x3467ca,_0x125b06[_0x2d0e2d(0x145)](HELP_HEADER_MESSAGE['list']['grid'])[_0x2d0e2d(0x119)](HELP_FOOTER_MESSAGE)['options'](_0x47372b)[_0x2d0e2d(0x137)](_0x5c3d52[_0x2d0e2d(0x148)])[_0x2d0e2d(0x11c)];},exports['handler']=async function(_0x22a648){const _0x1da4d4=a15_0x1c2aef,_0x25522c={'fSgiX':function(_0x34d041){return _0x34d041();},'dUIVQ':_0x1da4d4(0x12e),'GKAyh':function(_0x279c9f,_0x546fee,_0xc02129,_0x437fa9,_0x19e08,_0x2c0dc6,_0x35e2a8){return _0x279c9f(_0x546fee,_0xc02129,_0x437fa9,_0x19e08,_0x2c0dc6,_0x35e2a8);},'TgQfr':_0x1da4d4(0x149),'WszHB':'init-not-called','HQnlW':_0x1da4d4(0x150),'FwQQt':function(_0xfaf554,_0x4c7d5c,_0x334b4c){return _0xfaf554(_0x4c7d5c,_0x334b4c);},'qhWFP':function(_0x1a3e72,_0x565573){return _0x1a3e72!==_0x565573;},'GAJeK':function(_0x3eb158,_0x57350b){return _0x3eb158===_0x57350b;},'WfDzU':_0x1da4d4(0x124),'YbQuW':_0x1da4d4(0x14c),'vPpZE':'grid-name','nqgMf':_0x1da4d4(0x116),'kUHgK':_0x1da4d4(0x15f),'JLiih':'queued','ZbWdw':_0x1da4d4(0x128),'dYClB':function(_0x43751c,_0xb2d28c){return _0x43751c(_0xb2d28c);},'tedij':_0x1da4d4(0x115),'yisDO':function(_0x504c1d,_0x2acc19,_0x39234a,_0x4160be,_0x1c438d,_0x26e788,_0x40c9f5){return _0x504c1d(_0x2acc19,_0x39234a,_0x4160be,_0x1c438d,_0x26e788,_0x40c9f5);},'uoVSJ':_0x1da4d4(0x11e),'ZsNpP':function(_0x5ebf09,_0x28e420,_0x109f6b,_0x130856,_0x29cbe6,_0x43b0af,_0x495139){return _0x5ebf09(_0x28e420,_0x109f6b,_0x130856,_0x29cbe6,_0x43b0af,_0x495139);},'tmMdC':_0x1da4d4(0x151),'xuzHQ':function(_0x559727,_0x81e1ea,_0x3e9fea,_0x9cf59,_0xa31745,_0x481c82,_0x3fff40){return _0x559727(_0x81e1ea,_0x3e9fea,_0x9cf59,_0xa31745,_0x481c82,_0x3fff40);},'fkGTf':'unknown-error'};try{global_registry['requestId']=_0x25522c['fSgiX'](uuidv4);!fs['existsSync'](_0x25522c['fSgiX'](getCredentialsPath))&&(console['error'](_0x25522c[_0x1da4d4(0x12d)]),await _0x25522c[_0x1da4d4(0x129)](sendInstrumentationEvent,_0x22a648,_0x25522c['TgQfr'],messageTypes[_0x1da4d4(0x12a)],_0x25522c[_0x1da4d4(0x11b)],null,_0x22a648),process[_0x1da4d4(0x133)](0x1));const _0x58d031=JSON[_0x1da4d4(0x135)](fs[_0x1da4d4(0x13e)](_0x25522c[_0x1da4d4(0x168)](getCredentialsPath)));let _0x81da6f='https://'+AG_API_URL+_0x1da4d4(0x165);_0x22a648[_0x1da4d4(0x167)]&&(_0x81da6f=_0x1da4d4(0x12b)+AG_API_URL+_0x1da4d4(0x14b));const _0x9e5801={'method':_0x25522c[_0x1da4d4(0x131)],'headers':_0x25522c[_0x1da4d4(0x166)](getAuthHeader,_0x58d031[_0x1da4d4(0x15e)][_0x1da4d4(0x158)],_0x58d031[_0x1da4d4(0x15e)][_0x1da4d4(0x122)]),'throwHttpErrors':![]};global_registry[_0x1da4d4(0x14f)]=_0x58d031[_0x1da4d4(0x15e)][_0x1da4d4(0x158)],global_registry[_0x1da4d4(0x134)]=_0x58d031[_0x1da4d4(0x15e)][_0x1da4d4(0x122)],_0x25522c[_0x1da4d4(0x129)](sendInstrumentationEvent,_0x22a648,_0x25522c[_0x1da4d4(0x155)],messageTypes[_0x1da4d4(0x160)],null,null,_0x22a648);const _0x4eaab3=await _0x25522c[_0x1da4d4(0x166)](got,_0x81da6f,_0x9e5801);if(_0x25522c[_0x1da4d4(0x141)](_0x4eaab3,null)&&_0x25522c['qhWFP'](_0x4eaab3,undefined)&&_0x25522c[_0x1da4d4(0x12f)](_0x4eaab3[_0x1da4d4(0x154)],0xc8)){const _0x4fbe7f=JSON[_0x1da4d4(0x135)](_0x4eaab3['body']);console[_0x1da4d4(0x157)](_0x25522c[_0x1da4d4(0x126)]);const _0x2f6362=[];_0x2f6362['push']([_0x25522c[_0x1da4d4(0x16a)],_0x25522c[_0x1da4d4(0x117)],_0x25522c['nqgMf'],_0x25522c['kUHgK'],_0x25522c[_0x1da4d4(0x144)],_0x25522c[_0x1da4d4(0x118)]]),_0x4fbe7f[_0x1da4d4(0x11a)](_0x314826=>{const _0xff0026=_0x1da4d4;_0x2f6362['push']([_0x314826['id'],_0x314826[_0xff0026(0x146)],_0x314826[_0xff0026(0x116)],_0x314826[_0xff0026(0x15f)],_0x314826[_0xff0026(0x11d)],_0x314826[_0xff0026(0x13d)]]);}),console[_0x1da4d4(0x157)](_0x25522c[_0x1da4d4(0x15b)](table,_0x2f6362)),process[_0x1da4d4(0x133)](0x0);}_0x25522c['GAJeK'](_0x4eaab3[_0x1da4d4(0x154)],0x191)&&(console[_0x1da4d4(0x161)](_0x25522c[_0x1da4d4(0x13a)]),await _0x25522c['yisDO'](sendInstrumentationEvent,_0x22a648,_0x25522c[_0x1da4d4(0x155)],messageTypes[_0x1da4d4(0x12a)],_0x25522c[_0x1da4d4(0x15c)],null,_0x22a648),process[_0x1da4d4(0x133)](0x1)),console[_0x1da4d4(0x161)](_0x1da4d4(0x15a)+JSON[_0x1da4d4(0x13f)](_0x4eaab3)),await _0x25522c[_0x1da4d4(0x164)](sendInstrumentationEvent,_0x22a648,_0x25522c[_0x1da4d4(0x155)],messageTypes['ERROR'],_0x25522c[_0x1da4d4(0x127)],_0x4eaab3,_0x22a648),process[_0x1da4d4(0x133)](0x1);}catch(_0x5b8af1){console[_0x1da4d4(0x161)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5b8af1[_0x1da4d4(0x152)]),await _0x25522c[_0x1da4d4(0x136)](sendInstrumentationEvent,_0x22a648,_0x25522c['TgQfr'],messageTypes[_0x1da4d4(0x12a)],_0x25522c[_0x1da4d4(0x147)],_0x5b8af1,_0x22a648),process['exit'](0x1);}};
1
+ const a15_0x3d7807=a15_0x1be1;(function(_0xad755e,_0x1354ae){const _0x37eb5b=a15_0x1be1,_0x9519c1=_0xad755e();while(!![]){try{const _0x56f687=parseInt(_0x37eb5b(0xeb))/0x1*(-parseInt(_0x37eb5b(0xf8))/0x2)+-parseInt(_0x37eb5b(0xec))/0x3*(-parseInt(_0x37eb5b(0xd6))/0x4)+-parseInt(_0x37eb5b(0xd7))/0x5+parseInt(_0x37eb5b(0xfe))/0x6+parseInt(_0x37eb5b(0xd8))/0x7+-parseInt(_0x37eb5b(0xf3))/0x8+parseInt(_0x37eb5b(0xca))/0x9;if(_0x56f687===_0x1354ae)break;else _0x9519c1['push'](_0x9519c1['shift']());}catch(_0x70c05d){_0x9519c1['push'](_0x9519c1['shift']());}}}(a15_0x89ae,0x772b1));const fs=require('fs'),got=require(a15_0x3d7807(0xed)),{table}=require(a15_0x3d7807(0xf2)),{v4:uuidv4}=require(a15_0x3d7807(0xf0)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x3d7807(0x113)),{getCredentialsPath,getAuthHeader}=require(a15_0x3d7807(0x117)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x3d7807(0xea)]=a15_0x3d7807(0x11b),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x3d7807(0xc7)]=function(_0x4301bb){const _0x29bb91=a15_0x3d7807,_0x36eb05={};_0x36eb05[_0x29bb91(0x104)]=_0x29bb91(0xce),_0x36eb05['cOSId']=_0x29bb91(0xef),_0x36eb05['SngJI']=_0x29bb91(0xc8);const _0x1ce9e7=_0x36eb05,_0x5bad79={};_0x5bad79[_0x29bb91(0xdd)]=_0x1ce9e7[_0x29bb91(0x104)],_0x5bad79[_0x29bb91(0xf9)]=_0x1ce9e7[_0x29bb91(0xe4)];const _0x312001={};return _0x312001['all-grids']=_0x5bad79,_0x4301bb['usage'](HELP_HEADER_MESSAGE[_0x29bb91(0xcd)][_0x29bb91(0xee)])[_0x29bb91(0xcc)](HELP_FOOTER_MESSAGE)['options'](_0x312001)[_0x29bb91(0xc8)](_0x1ce9e7['SngJI'])[_0x29bb91(0x106)];},exports[a15_0x3d7807(0x11c)]=async function(_0x4d929){const _0x3d94f9=a15_0x3d7807,_0x5e585a={'oExJR':function(_0xf4b5d1){return _0xf4b5d1();},'iwQSv':_0x3d94f9(0x10f),'EzAWq':function(_0x5f242e,_0x4a8d7a,_0x59d8d4,_0x313311,_0x5946a1,_0x5e7b6a,_0x3d2d77){return _0x5f242e(_0x4a8d7a,_0x59d8d4,_0x313311,_0x5946a1,_0x5e7b6a,_0x3d2d77);},'JOlSu':_0x3d94f9(0x10d),'WUXAf':_0x3d94f9(0x10b),'VuUbC':_0x3d94f9(0xd3),'qVgmM':function(_0x52295e,_0x558b7f,_0x18a0b5){return _0x52295e(_0x558b7f,_0x18a0b5);},'YVneD':function(_0x3b2bd9,_0x54f282,_0x4d82b6,_0xe1247b,_0x4b37b8,_0x5ab51c,_0x5b0b1a){return _0x3b2bd9(_0x54f282,_0x4d82b6,_0xe1247b,_0x4b37b8,_0x5ab51c,_0x5b0b1a);},'wtYxr':function(_0x196b3d,_0x1e1715,_0x69c3ef){return _0x196b3d(_0x1e1715,_0x69c3ef);},'pWghi':function(_0x19c5a0,_0x3252f0){return _0x19c5a0!==_0x3252f0;},'xHOsm':function(_0x539008,_0x28a002){return _0x539008!==_0x28a002;},'GtpBw':function(_0x57c095,_0x140651){return _0x57c095===_0x140651;},'zKkLX':_0x3d94f9(0xfd),'yrtyb':_0x3d94f9(0x108),'piBbt':'grid-name','cTqwn':_0x3d94f9(0xe2),'XnHzQ':_0x3d94f9(0x105),'BQYdS':_0x3d94f9(0xfc),'ftYnE':_0x3d94f9(0xd0),'fdOcc':function(_0x1c15da,_0x32727e){return _0x1c15da(_0x32727e);},'GFRnz':_0x3d94f9(0xe1),'Phqhv':_0x3d94f9(0xe3),'MWxGR':function(_0x1ecda3,_0x131f84,_0x1eca67,_0x30f17e,_0x2abca9,_0x386fc5,_0x1d617a){return _0x1ecda3(_0x131f84,_0x1eca67,_0x30f17e,_0x2abca9,_0x386fc5,_0x1d617a);},'NbBtG':_0x3d94f9(0x110),'RXNpi':function(_0x1c0380,_0x4673a3,_0x3281f2,_0x217afa,_0x2a8717,_0x25d70e,_0x2b4e42){return _0x1c0380(_0x4673a3,_0x3281f2,_0x217afa,_0x2a8717,_0x25d70e,_0x2b4e42);},'LyrcP':_0x3d94f9(0x116)};try{global_registry[_0x3d94f9(0x103)]=_0x5e585a['oExJR'](uuidv4);!fs[_0x3d94f9(0xd5)](_0x5e585a[_0x3d94f9(0xde)](getCredentialsPath))&&(console[_0x3d94f9(0xfb)](_0x5e585a[_0x3d94f9(0x115)]),await _0x5e585a[_0x3d94f9(0xe7)](sendInstrumentationEvent,_0x4d929,_0x5e585a['JOlSu'],messageTypes[_0x3d94f9(0xe5)],_0x5e585a[_0x3d94f9(0xf6)],null,_0x4d929),process[_0x3d94f9(0x102)](0x1));const _0x4da8ac=JSON[_0x3d94f9(0x11e)](fs[_0x3d94f9(0x118)](_0x5e585a[_0x3d94f9(0xde)](getCredentialsPath)));let _0x1b69bf='https://'+AG_API_URL+_0x3d94f9(0x10c);_0x4d929['allGrids']&&(_0x1b69bf=_0x3d94f9(0xdc)+AG_API_URL+'/packages/cli/get-all-grids');const _0x1ff4b6={'method':_0x5e585a[_0x3d94f9(0xf4)],'headers':_0x5e585a[_0x3d94f9(0xdf)](getAuthHeader,_0x4da8ac[_0x3d94f9(0xf5)]['username'],_0x4da8ac[_0x3d94f9(0xf5)][_0x3d94f9(0xe9)]),'throwHttpErrors':![]};global_registry[_0x3d94f9(0xd4)]=_0x4da8ac[_0x3d94f9(0xf5)][_0x3d94f9(0xf7)],global_registry[_0x3d94f9(0xf1)]=_0x4da8ac[_0x3d94f9(0xf5)]['password'],_0x5e585a[_0x3d94f9(0xff)](sendInstrumentationEvent,_0x4d929,_0x5e585a[_0x3d94f9(0x11d)],messageTypes[_0x3d94f9(0xd1)],null,null,_0x4d929);const _0xd9683f=await _0x5e585a[_0x3d94f9(0xe8)](got,_0x1b69bf,_0x1ff4b6);if(_0x5e585a[_0x3d94f9(0x119)](_0xd9683f,null)&&_0x5e585a[_0x3d94f9(0x100)](_0xd9683f,undefined)&&_0x5e585a[_0x3d94f9(0x11a)](_0xd9683f[_0x3d94f9(0xd2)],0xc8)){const _0x50d448=JSON[_0x3d94f9(0x11e)](_0xd9683f[_0x3d94f9(0x111)]);console[_0x3d94f9(0x107)](_0x5e585a[_0x3d94f9(0xe0)]);const _0x53626f=[];_0x53626f[_0x3d94f9(0xc9)]([_0x5e585a[_0x3d94f9(0xfa)],_0x5e585a['piBbt'],_0x5e585a[_0x3d94f9(0xdb)],_0x5e585a['XnHzQ'],_0x5e585a['BQYdS'],_0x5e585a[_0x3d94f9(0x114)]]),_0x50d448[_0x3d94f9(0xda)](_0x29307d=>{const _0x5bbcb=_0x3d94f9;_0x53626f['push']([_0x29307d['id'],_0x29307d[_0x5bbcb(0xd9)],_0x29307d[_0x5bbcb(0xe2)],_0x29307d[_0x5bbcb(0x105)],_0x29307d[_0x5bbcb(0xfc)],_0x29307d[_0x5bbcb(0xcf)]]);}),console[_0x3d94f9(0x107)](_0x5e585a[_0x3d94f9(0x109)](table,_0x53626f)),process[_0x3d94f9(0x102)](0x0);}_0x5e585a[_0x3d94f9(0x11a)](_0xd9683f['statusCode'],0x191)&&(console[_0x3d94f9(0xfb)](_0x5e585a['GFRnz']),await _0x5e585a[_0x3d94f9(0xe7)](sendInstrumentationEvent,_0x4d929,_0x5e585a[_0x3d94f9(0x11d)],messageTypes['ERROR'],_0x5e585a[_0x3d94f9(0x10e)],null,_0x4d929),process['exit'](0x1)),console[_0x3d94f9(0xfb)](_0x3d94f9(0x10a)+JSON[_0x3d94f9(0xe6)](_0xd9683f)),await _0x5e585a['MWxGR'](sendInstrumentationEvent,_0x4d929,_0x5e585a['JOlSu'],messageTypes['ERROR'],_0x5e585a[_0x3d94f9(0x11f)],_0xd9683f,_0x4d929),process[_0x3d94f9(0x102)](0x1);}catch(_0x38bc99){console['error'](_0x3d94f9(0x112)+_0x38bc99[_0x3d94f9(0xcb)]),await _0x5e585a[_0x3d94f9(0x101)](sendInstrumentationEvent,_0x4d929,_0x5e585a[_0x3d94f9(0x11d)],messageTypes[_0x3d94f9(0xe5)],_0x5e585a['LyrcP'],_0x38bc99,_0x4d929),process[_0x3d94f9(0x102)](0x1);}};function a15_0x1be1(_0x19cfd9,_0x3cc56b){const _0x89ae67=a15_0x89ae();return a15_0x1be1=function(_0x1be1df,_0x31780b){_0x1be1df=_0x1be1df-0xc7;let _0x4a2bf9=_0x89ae67[_0x1be1df];return _0x4a2bf9;},a15_0x1be1(_0x19cfd9,_0x3cc56b);}function a15_0x89ae(){const _0x5797d8=['GtpBw','grids','handler','JOlSu','parse','NbBtG','builder','help','push','4721652xhBhCT','stack','epilogue','list','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','clusterName','cluster-name','INFO','statusCode','GET','bstackUsername','existsSync','12LOJIxJ','2493690NuOylW','2139536FUhcmU','name','forEach','cTqwn','https://','description','oExJR','qVgmM','zKkLX','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','status','unauthorised','cOSId','ERROR','stringify','EzAWq','wtYxr','password','command','164qObAqD','104610UrLpJk','got','grid','boolean','uuid','bstackAccesskey','table','2022592anePjF','VuUbC','Browserstack','WUXAf','username','1730jUomWP','type','yrtyb','error','queued','\x0aFound\x20the\x20following\x20grids:\x0a','2679894SfXbth','YVneD','xHOsm','RXNpi','exit','requestId','QBWha','running','argv','log','grid-id','fdOcc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','init-not-called','/packages/cli/get-grids','list-grids-called','Phqhv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','server-error','body','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../config/constants','ftYnE','iwQSv','unknown-error','../../utils/utilityMethods','readFileSync','pWghi'];a15_0x89ae=function(){return _0x5797d8;};return a15_0x89ae();}
@@ -1 +1 @@
1
- const a16_0x308717=a16_0x2481;(function(_0x3a49bd,_0x1e45c9){const _0x3bdeb0=a16_0x2481,_0x5ce970=_0x3a49bd();while(!![]){try{const _0x3c424c=parseInt(_0x3bdeb0(0xa0))/0x1*(-parseInt(_0x3bdeb0(0xa4))/0x2)+-parseInt(_0x3bdeb0(0x98))/0x3+parseInt(_0x3bdeb0(0xa8))/0x4+parseInt(_0x3bdeb0(0x97))/0x5*(-parseInt(_0x3bdeb0(0xa3))/0x6)+parseInt(_0x3bdeb0(0xa7))/0x7+-parseInt(_0x3bdeb0(0x9c))/0x8*(-parseInt(_0x3bdeb0(0xa5))/0x9)+parseInt(_0x3bdeb0(0x9d))/0xa*(parseInt(_0x3bdeb0(0x9e))/0xb);if(_0x3c424c===_0x1e45c9)break;else _0x5ce970['push'](_0x5ce970['shift']());}catch(_0x5f3f09){_0x5ce970['push'](_0x5ce970['shift']());}}}(a16_0x5cf2,0x1d960));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x308717(0x9b));function a16_0x2481(_0x11765e,_0x1dd556){const _0x5cf24b=a16_0x5cf2();return a16_0x2481=function(_0x248167,_0x474561){_0x248167=_0x248167-0x94;let _0x4d9581=_0x5cf24b[_0x248167];return _0x4d9581;},a16_0x2481(_0x11765e,_0x1dd556);}function a16_0x5cf2(){const _0x2af815=['precheck_commands','builder','21378cBMZIu','261046KJkYfN','46818QLWOqR','desc','131061SDDcMR','737956VFTxkT','help','LAUZh','GhyUf','275YXxITA','377571qSMslv','epilogue','strict','../config/constants','120fxdWOZ','2922870aWGphM','11JUMclI','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1rmIUkC'];a16_0x5cf2=function(){return _0x2af815;};return a16_0x5cf2();}exports['command']='pre-check',exports[a16_0x308717(0xa6)]=a16_0x308717(0x9f),exports[a16_0x308717(0xa2)]=function(_0x3c7694){const _0x155f18=a16_0x308717,_0x12f11a={};_0x12f11a[_0x155f18(0x95)]=_0x155f18(0xa1),_0x12f11a[_0x155f18(0x96)]=_0x155f18(0x94);const _0xa3db14=_0x12f11a;return _0x3c7694['usage'](HELP_HEADER_MESSAGE['pre_check'])[_0x155f18(0x99)](HELP_FOOTER_MESSAGE)['commandDir'](_0xa3db14[_0x155f18(0x95)])['demandCommand']()['recommendCommands']()[_0x155f18(0x9a)]()[_0x155f18(0x94)](_0xa3db14[_0x155f18(0x96)]);},exports['handler']=function(_0x502b08){};
1
+ const a16_0x42c144=a16_0x2048;(function(_0x41aa96,_0x496e0f){const _0x2fe02b=a16_0x2048,_0x472fd9=_0x41aa96();while(!![]){try{const _0x2a3e1e=-parseInt(_0x2fe02b(0x117))/0x1*(-parseInt(_0x2fe02b(0x123))/0x2)+parseInt(_0x2fe02b(0x115))/0x3*(-parseInt(_0x2fe02b(0x11a))/0x4)+-parseInt(_0x2fe02b(0x118))/0x5+parseInt(_0x2fe02b(0x11f))/0x6+-parseInt(_0x2fe02b(0x11b))/0x7+parseInt(_0x2fe02b(0x125))/0x8+parseInt(_0x2fe02b(0x126))/0x9;if(_0x2a3e1e===_0x496e0f)break;else _0x472fd9['push'](_0x472fd9['shift']());}catch(_0x445029){_0x472fd9['push'](_0x472fd9['shift']());}}}(a16_0x58f3,0xdcd67));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x2048(_0x24444f,_0x49b1d1){const _0x58f321=a16_0x58f3();return a16_0x2048=function(_0x204856,_0x3f98e8){_0x204856=_0x204856-0x111;let _0x1e6c83=_0x58f321[_0x204856];return _0x1e6c83;},a16_0x2048(_0x24444f,_0x49b1d1);}exports[a16_0x42c144(0x111)]=a16_0x42c144(0x112),exports[a16_0x42c144(0x119)]=a16_0x42c144(0x114),exports[a16_0x42c144(0x116)]=function(_0x4d4b59){const _0x2480d0=a16_0x42c144,_0x596606={};_0x596606[_0x2480d0(0x124)]=_0x2480d0(0x122),_0x596606[_0x2480d0(0x11e)]='help';const _0x1c57e9=_0x596606;return _0x4d4b59[_0x2480d0(0x11c)](HELP_HEADER_MESSAGE[_0x2480d0(0x11d)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2480d0(0x113)](_0x1c57e9['tyAuZ'])[_0x2480d0(0x121)]()['recommendCommands']()['strict']()[_0x2480d0(0x120)](_0x1c57e9[_0x2480d0(0x11e)]);},exports['handler']=function(_0x1bc545){};function a16_0x58f3(){const _0x11f000=['usage','pre_check','NnSQW','2991942PyDuKq','help','demandCommand','precheck_commands','2pSiohY','tyAuZ','8793616CpQCSV','2551266MtXwYb','command','pre-check','commandDir','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','3ugqpvI','builder','223697QCjyAj','2081190zJCglm','desc','1665968sIgqWR','2574243gkmaMF'];a16_0x58f3=function(){return _0x11f000;};return a16_0x58f3();}
@@ -1 +1 @@
1
- const a17_0x388418=a17_0x9c1d;(function(_0x1c6099,_0x3b4fe4){const _0xb1b472=a17_0x9c1d,_0x51d366=_0x1c6099();while(!![]){try{const _0x54ca0a=-parseInt(_0xb1b472(0x25a))/0x1*(parseInt(_0xb1b472(0x25f))/0x2)+-parseInt(_0xb1b472(0x1f2))/0x3+parseInt(_0xb1b472(0x271))/0x4*(-parseInt(_0xb1b472(0x1a7))/0x5)+-parseInt(_0xb1b472(0x1d1))/0x6+-parseInt(_0xb1b472(0x1fe))/0x7*(parseInt(_0xb1b472(0x18c))/0x8)+parseInt(_0xb1b472(0x208))/0x9*(-parseInt(_0xb1b472(0x1f1))/0xa)+parseInt(_0xb1b472(0x1df))/0xb;if(_0x54ca0a===_0x3b4fe4)break;else _0x51d366['push'](_0x51d366['shift']());}catch(_0x3af1ee){_0x51d366['push'](_0x51d366['shift']());}}}(a17_0x584a,0x274cd));const fs=require('fs'),ws=require('ws'),got=require(a17_0x388418(0x20e)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x388418(0x1f4)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x388418(0x21f)),{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_0x388418(0x28c)),{getCloudProviderObjectWithOutInit}=require(a17_0x388418(0x246)),webSocketUtils=require(a17_0x388418(0x1bf)),{sendInstrumentationEvent}=require(a17_0x388418(0x1e6));exports[a17_0x388418(0x1fb)]=a17_0x388418(0x25b),exports['desc']=a17_0x388418(0x1c8),exports[a17_0x388418(0x1bd)]=function(_0x31a475){const _0x520de2=a17_0x388418,_0x4a0389={};_0x4a0389[_0x520de2(0x1a2)]=_0x520de2(0x1c1),_0x4a0389[_0x520de2(0x1c5)]=_0x520de2(0x22d),_0x4a0389[_0x520de2(0x272)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4a0389[_0x520de2(0x223)]=_0x520de2(0x268),_0x4a0389['oUhIT']=_0x520de2(0x1be),_0x4a0389['hKiHE']=_0x520de2(0x1ec);const _0x4e847c=_0x4a0389,_0x266437={};_0x266437['description']=_0x4e847c[_0x520de2(0x1a2)],_0x266437[_0x520de2(0x1ac)]=_0x4e847c[_0x520de2(0x1c5)];const _0x3dfe4f={};_0x3dfe4f[_0x520de2(0x1e7)]=_0x4e847c['AdjPV'],_0x3dfe4f['type']=_0x4e847c[_0x520de2(0x1c5)];const _0x535065={};_0x535065[_0x520de2(0x1e7)]=_0x4e847c[_0x520de2(0x223)],_0x535065[_0x520de2(0x1ac)]=_0x4e847c['uxDgH'];const _0x9db109={};_0x9db109[_0x520de2(0x1e7)]=_0x4e847c[_0x520de2(0x200)],_0x9db109['type']=_0x4e847c[_0x520de2(0x1c5)];const _0x29b5b5={};return _0x29b5b5['cluster-name']=_0x266437,_0x29b5b5[_0x520de2(0x23e)]=_0x3dfe4f,_0x29b5b5['region']=_0x535065,_0x29b5b5['grid-profile']=_0x9db109,_0x31a475[_0x520de2(0x203)](HELP_HEADER_MESSAGE[_0x520de2(0x21e)])[_0x520de2(0x1c3)](HELP_FOOTER_MESSAGE)['options'](_0x29b5b5)[_0x520de2(0x1ec)](_0x4e847c[_0x520de2(0x221)])['argv'];};async function inputValidation(_0x3bae52,_0x392294){const _0x469a67=a17_0x388418,_0x527303={'RJMSa':_0x469a67(0x198),'jtriU':_0x469a67(0x1c1),'tOtbm':_0x469a67(0x22d),'vSKrK':_0x469a67(0x1e8),'uIoso':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ThZxc':_0x469a67(0x1be),'mypLB':'help','OUvTM':'is\x20already\x20present','qJFJo':_0x469a67(0x1b2),'cOfCM':_0x469a67(0x1e9),'NrrCO':_0x469a67(0x23e),'mgOVV':'Error\x20Details:\x0a','hrgUU':_0x469a67(0x1a3),'WbCPW':'cluster-name','bykVU':_0x469a67(0x276),'PlohP':function(_0x3a359d,_0xa0e1b7){return _0x3a359d===_0xa0e1b7;},'VfWoh':_0x469a67(0x202),'kKlxt':_0x469a67(0x1ad),'RYEwl':function(_0x2035c3,_0x5b5e16){return _0x2035c3!==_0x5b5e16;},'MUHun':_0x469a67(0x1b7),'FiTZN':'Blitf','xTgXa':_0x469a67(0x21b),'EaNrO':_0x469a67(0x1cc),'mAgZu':function(_0xc5fbca,_0xb23b90){return _0xc5fbca===_0xb23b90;},'Orcxm':_0x469a67(0x26b),'KtUat':_0x469a67(0x21d),'XOeJM':_0x469a67(0x233),'PBKyp':function(_0x412c2d,_0x5b3866){return _0x412c2d>_0x5b3866;},'yzBbI':function(_0x51057e,_0x407c55){return _0x51057e===_0x407c55;},'XWnyh':_0x469a67(0x26e),'XVizu':function(_0x3fa42a,_0x12d728,_0x2fbcf0,_0x312a81,_0x25e717,_0x2a4549,_0x78d1f3,_0x18bee8){return _0x3fa42a(_0x12d728,_0x2fbcf0,_0x312a81,_0x25e717,_0x2a4549,_0x78d1f3,_0x18bee8);},'xWoxJ':_0x469a67(0x241),'loEYR':_0x469a67(0x1f3),'VkmcQ':_0x469a67(0x1c9),'rgikL':_0x469a67(0x288),'lvStb':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','tHiAs':function(_0x35c54e,_0x15147a,_0x5d7ad9,_0x2c5e72,_0x2566f5,_0x3a4499,_0x5a1125,_0x430387){return _0x35c54e(_0x15147a,_0x5d7ad9,_0x2c5e72,_0x2566f5,_0x3a4499,_0x5a1125,_0x430387);},'qTfcv':_0x469a67(0x1f5),'hwkwt':_0x469a67(0x25e),'VoPHs':_0x469a67(0x1b1),'rgNbH':'eTmVY','SNFln':_0x469a67(0x1a5),'UWsrB':function(_0x313cc0,_0x416f21,_0x38413a){return _0x313cc0(_0x416f21,_0x38413a);},'fDFKJ':function(_0x4a89f7,_0xf3f6c5,_0x5192dd,_0x1d3328,_0x9baa53,_0xd4d627){return _0x4a89f7(_0xf3f6c5,_0x5192dd,_0x1d3328,_0x9baa53,_0xd4d627);},'xPrOj':'pre-check','hdKQs':_0x469a67(0x191),'orByk':function(_0x5324a7,_0x3f35a1){return _0x5324a7===_0x3f35a1;},'qRDpp':_0x469a67(0x23d),'DvBoR':_0x469a67(0x1bc),'WAgtm':function(_0x182a2f,_0xbdb111){return _0x182a2f(_0xbdb111);},'PTqWi':function(_0x259748,_0x1a0acf){return _0x259748!==_0x1a0acf;},'fFltH':'NYVKt','lemEq':function(_0x1e77b4,_0x354f13,_0x124a69,_0x389a22,_0x15d030,_0x125ae0,_0x1750ac,_0x2593f0){return _0x1e77b4(_0x354f13,_0x124a69,_0x389a22,_0x15d030,_0x125ae0,_0x1750ac,_0x2593f0);},'tJaKo':_0x469a67(0x1f7),'uunNq':_0x469a67(0x1a4),'ixrNt':function(_0x395d7f,_0x423d4c){return _0x395d7f!==_0x423d4c;},'Oylcj':_0x469a67(0x1ee),'FkkKF':_0x469a67(0x281),'FtgCi':_0x469a67(0x1b3),'wwrQi':function(_0x2dbbcb,_0x5b5154){return _0x2dbbcb!==_0x5b5154;},'YTECB':_0x469a67(0x20d),'uxzox':_0x469a67(0x265),'fLPqo':function(_0x2773b5,_0xe65936,_0x3adabe,_0x12713b,_0x1bfd2a,_0x918aa5,_0xd3f07a,_0x541877){return _0x2773b5(_0xe65936,_0x3adabe,_0x12713b,_0x1bfd2a,_0x918aa5,_0xd3f07a,_0x541877);}};let _0x2d023c;try{if(_0x527303[_0x469a67(0x245)](_0x527303['VfWoh'],_0x527303[_0x469a67(0x26d)]))_0x5c95a7[_0x469a67(0x276)](_0x469a67(0x1ff)+_0x4e81a2[_0x469a67(0x276)]['stack']);else{if(_0x3bae52[_0x469a67(0x226)]||_0x3bae52['cloudProvider']||_0x3bae52[_0x469a67(0x198)]){if(_0x527303['RYEwl'](_0x527303[_0x469a67(0x219)],_0x527303[_0x469a67(0x214)])){const _0x313f90=[];!_0x3bae52[_0x469a67(0x226)]&&(_0x527303[_0x469a67(0x1f6)](_0x527303[_0x469a67(0x284)],_0x527303[_0x469a67(0x237)])?_0x313f90[_0x469a67(0x18d)](_0x527303[_0x469a67(0x1cf)]):_0x26e44a['push'](_0x527303['RJMSa']));;if(!_0x3bae52[_0x469a67(0x1a1)]){if(_0x527303['mAgZu'](_0x527303[_0x469a67(0x24c)],_0x527303['KtUat'])){const _0x18fb87={};_0x18fb87[_0x469a67(0x1e7)]=_0x527303['jtriU'],_0x18fb87[_0x469a67(0x1ac)]=_0x527303[_0x469a67(0x275)];const _0x26aeea={};_0x26aeea['description']=_0x527303[_0x469a67(0x201)],_0x26aeea[_0x469a67(0x1ac)]=_0x527303[_0x469a67(0x275)];const _0x3aea31={};_0x3aea31[_0x469a67(0x1e7)]=_0x527303[_0x469a67(0x1d8)],_0x3aea31[_0x469a67(0x1ac)]=_0x527303[_0x469a67(0x275)];const _0xf7ec3f={};_0xf7ec3f[_0x469a67(0x1e7)]=_0x527303[_0x469a67(0x1eb)],_0xf7ec3f[_0x469a67(0x1ac)]=_0x527303['tOtbm'];const _0x5ca896={};return _0x5ca896[_0x469a67(0x255)]=_0x18fb87,_0x5ca896[_0x469a67(0x23e)]=_0x26aeea,_0x5ca896[_0x469a67(0x198)]=_0x3aea31,_0x5ca896[_0x469a67(0x191)]=_0xf7ec3f,_0x257c88[_0x469a67(0x203)](_0x58302a['pre_check'])['epilogue'](_0x30f820)[_0x469a67(0x22c)](_0x5ca896)[_0x469a67(0x1ec)](_0x527303[_0x469a67(0x264)])['argv'];}else _0x313f90[_0x469a67(0x18d)](_0x527303['NrrCO']);};!_0x3bae52[_0x469a67(0x198)]&&(_0x527303[_0x469a67(0x1f6)](_0x527303[_0x469a67(0x1cb)],_0x527303[_0x469a67(0x1cb)])?_0x12465d+=_0x469a67(0x261)+_0x28dc41['clusterName']+'\x20'+(_0x4be80f?_0x527303[_0x469a67(0x252)]:_0x527303['qJFJo'])+'\x0a\x0a':_0x313f90[_0x469a67(0x18d)](_0x527303[_0x469a67(0x277)]));;_0x527303[_0x469a67(0x192)](_0x313f90[_0x469a67(0x238)],0x0)&&(_0x527303['yzBbI'](_0x527303[_0x469a67(0x236)],_0x527303[_0x469a67(0x236)])?(_0x2d023c=_0x469a67(0x1f8)+_0x313f90['join'](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x527303[_0x469a67(0x1fd)](reportToGalactusAndSendToEDS,_0x3bae52,_0x392294,_0x2d023c,messageTypes[_0x469a67(0x1ce)],_0x527303[_0x469a67(0x1b9)],_0x527303[_0x469a67(0x18e)],_0x527303[_0x469a67(0x1ab)]),logger[_0x469a67(0x276)](_0x2d023c),process[_0x469a67(0x1d6)](0x1)):_0x17f21a=_0x3ae813),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x3bae52[_0x469a67(0x1a1)][_0x469a67(0x1c0)]())&&(_0x527303['RYEwl'](_0x527303[_0x469a67(0x199)],_0x527303['rgikL'])?(_0x2d023c=_0x527303[_0x469a67(0x1f0)],await _0x527303['tHiAs'](reportToGalactusAndSendToEDS,_0x3bae52,_0x392294,_0x2d023c,messageTypes['ERROR'],_0x527303[_0x469a67(0x1b9)],_0x527303[_0x469a67(0x196)],_0x527303[_0x469a67(0x1ab)]),logger[_0x469a67(0x276)](_0x2d023c),!_0x3bae52[_0x469a67(0x1a1)]&&(_0x527303[_0x469a67(0x1f6)](_0x527303[_0x469a67(0x254)],_0x527303['VoPHs'])?(logger[_0x469a67(0x1e4)](_0x469a67(0x23a)+DEFAULT_CLUSTER_DETAILS[_0x469a67(0x207)]+'\x20'),_0x3bae52[_0x469a67(0x1a1)]=DEFAULT_CLUSTER_DETAILS[_0x469a67(0x207)]):_0x43c4d8[_0x469a67(0x1e4)](_0x469a67(0x209)+_0x45b708[_0x469a67(0x226)]+_0x469a67(0x1d7)))):_0x4d04b7+=_0x469a67(0x261)+_0x218666[_0x469a67(0x226)]+_0x469a67(0x1c7)),global_registry[_0x469a67(0x226)]=_0x3bae52[_0x469a67(0x226)],global_registry['cloudProvider']=_0x3bae52[_0x469a67(0x1a1)],global_registry[_0x469a67(0x1d3)]=_0x3bae52[_0x469a67(0x198)];}else _0x256b36['error'](_0x527303[_0x469a67(0x1f9)]),_0x1bb8f3['exit'](0x1);}else{if(_0x3bae52[_0x469a67(0x1e1)]){if(_0x527303[_0x469a67(0x1f6)](_0x527303[_0x469a67(0x28d)],_0x527303[_0x469a67(0x28d)]))_0x3a2b8b['push'](_0x527303[_0x469a67(0x1e0)]);else{global_registry[_0x469a67(0x1e1)]=_0x3bae52[_0x469a67(0x1e1)],logger[_0x469a67(0x24a)](_0x469a67(0x210)+_0x3bae52[_0x469a67(0x1e1)]);const _0x5c69f1=_0x469a67(0x287)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x15723f={};_0x15723f[_0x469a67(0x1ba)]=_0x527303['SNFln'],_0x15723f[_0x469a67(0x24b)]=global_registry[_0x469a67(0x1e2)],_0x15723f[_0x469a67(0x24e)]=![];const _0x4a55eb=_0x15723f,_0x12fac0=await _0x527303[_0x469a67(0x19d)](got,_0x5c69f1,_0x4a55eb),_0x4e7633=await _0x527303['fDFKJ'](responseValidation,_0x12fac0,_0x527303['xPrOj'],_0x527303[_0x469a67(0x18f)],_0x3bae52,_0x392294);let _0x41fc85={};if(_0x527303['orByk'](_0x4e7633,0xc8)){if(_0x527303[_0x469a67(0x21a)](_0x527303[_0x469a67(0x1b0)],_0x527303[_0x469a67(0x27f)]))_0x3a1b6f[_0x469a67(0x1d6)](0x1);else{const _0x275e1a=JSON['parse'](_0x12fac0[_0x469a67(0x19f)]),_0x2d4649=_0x275e1a[_0x469a67(0x228)](_0xb73403=>_0xb73403[_0x469a67(0x1d5)]===_0x3bae52[_0x469a67(0x1e1)])||null;_0x527303[_0x469a67(0x1ed)](isUndefined,_0x2d4649)?_0x527303[_0x469a67(0x20a)](_0x527303[_0x469a67(0x1ea)],_0x527303['fFltH'])?(_0x3dbd84[_0x469a67(0x1e4)]('['+_0x4e1200+_0x469a67(0x1a8)+_0x160768[_0x469a67(0x1bb)]+_0x469a67(0x1fa)+_0x4a0b16[_0x469a67(0x27d)]+_0x469a67(0x282)+_0x2b4edf[_0x469a67(0x276)]),_0x3ff0a4['error']&&_0x538b38[_0x469a67(0x276)](_0x469a67(0x1ff)+_0x48ba59[_0x469a67(0x276)][_0x469a67(0x18b)])):(_0x2d023c=_0x469a67(0x19a)+_0x3bae52['gridProfile']+_0x469a67(0x213),await _0x527303[_0x469a67(0x239)](reportToGalactusAndSendToEDS,_0x3bae52,_0x392294,_0x2d023c,messageTypes[_0x469a67(0x1ce)],_0x527303[_0x469a67(0x1b9)],_0x527303[_0x469a67(0x1e3)],_0x527303[_0x469a67(0x1ab)]),logger[_0x469a67(0x276)](_0x2d023c),process['exit'](0x1)):_0x527303[_0x469a67(0x1f6)](_0x527303['uunNq'],_0x527303[_0x469a67(0x220)])?(_0x960bb+=_0x527303[_0x469a67(0x1dc)],_0x417aa6+=_0x469a67(0x224)+(_0x4934ec['message']||_0x527303[_0x469a67(0x27b)])+'\x0a',_0xaab5ac+='\x20\x20Code:\x20'+(_0x2a5b02[_0x469a67(0x230)]||_0x527303['hrgUU'])+'\x0a',_0x4892a7+='\x20\x20Stack:\x20'+(_0x4976ec[_0x469a67(0x18b)]||_0x527303[_0x469a67(0x27b)])+'\x0a'):_0x41fc85=_0x2d4649;}}else _0x527303[_0x469a67(0x1a0)](_0x527303[_0x469a67(0x23f)],_0x527303[_0x469a67(0x23f)])?_0x5026ed['push'](_0x527303[_0x469a67(0x1cf)]):process['exit'](0x1);const _0x36e92f={};_0x36e92f['type']=WS_EVENTS[_0x469a67(0x22f)],_0x36e92f[_0x469a67(0x26c)]=_0x527303[_0x469a67(0x266)],webSocketUtils[_0x469a67(0x206)](_0x392294,_0x36e92f),global_registry[_0x469a67(0x1a1)]=_0x41fc85[_0x469a67(0x1a1)],global_registry[_0x469a67(0x1d3)]=_0x41fc85['region'],global_registry[_0x469a67(0x226)]=_0x41fc85[_0x469a67(0x226)];}}else{if(_0x527303[_0x469a67(0x1f6)](_0x527303[_0x469a67(0x244)],_0x527303['FtgCi'])){const _0x453a9f={};_0x453a9f['type']=_0x124fec[_0x469a67(0x22f)],_0x453a9f[_0x469a67(0x26c)]=_0x4b9633,_0x3de6b9['sendEventToBackend'](_0x51bcce,_0x453a9f,_0x527303[_0x469a67(0x1ab)],!![]);}else logger['error'](_0x527303[_0x469a67(0x1f9)]),process['exit'](0x1);}}}}catch(_0x3d70fe){_0x527303[_0x469a67(0x260)](_0x527303['YTECB'],_0x527303['uxzox'])?(_0x2d023c='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x3d70fe+':\x20'+_0x3d70fe[_0x469a67(0x18b)],logger[_0x469a67(0x276)](_0x2d023c),await _0x527303[_0x469a67(0x258)](reportToGalactusAndSendToEDS,_0x3bae52,_0x392294,_0x2d023c,messageTypes[_0x469a67(0x1ce)],_0x527303[_0x469a67(0x1b9)],_0x527303[_0x469a67(0x196)],_0x527303[_0x469a67(0x1ab)]),process[_0x469a67(0x1d6)](0x1)):(_0x5af0f1[_0x469a67(0x1e4)](_0x469a67(0x23a)+_0x1c7397[_0x469a67(0x207)]+'\x20'),_0x480357['cloudProvider']=_0x2894ff[_0x469a67(0x207)]);}}function printResponse(_0x4d2908,_0x40ddd9){const _0x437691=a17_0x388418,_0x50530e={};_0x50530e['tfecG']=function(_0x9358b8,_0x57dc7c){return _0x9358b8+_0x57dc7c;},_0x50530e[_0x437691(0x26a)]='Success',_0x50530e['KONGI']='Failure',_0x50530e[_0x437691(0x1da)]=function(_0x279238,_0x286dcc){return _0x279238||_0x286dcc;},_0x50530e[_0x437691(0x278)]=_0x437691(0x1a3),_0x50530e['oyFJc']=_0x437691(0x194),_0x50530e[_0x437691(0x1d4)]=function(_0x46f61b,_0x51cbd5){return _0x46f61b===_0x51cbd5;},_0x50530e[_0x437691(0x280)]=_0x437691(0x26f),_0x50530e['WVQhi']=_0x437691(0x1ca);const _0x510d4d=_0x50530e;logger[_0x437691(0x1e4)]('['+_0x4d2908+']\x20status\x20:\x20'+_0x40ddd9['status']+_0x437691(0x1fa)+_0x40ddd9[_0x437691(0x27d)]+_0x437691(0x282)+_0x40ddd9[_0x437691(0x276)]);if(_0x40ddd9[_0x437691(0x276)]){if(_0x510d4d[_0x437691(0x1d4)](_0x510d4d[_0x437691(0x280)],_0x510d4d[_0x437691(0x1b8)])){const {header:_0xf2c23b,response:_0xe78c4}=_0x5f12fa,{status:_0xdb078f,data:_0x132e1d,error:_0xc3ea81}=_0xe78c4;_0x52d32c+=_0xf2c23b+'\x20#'+_0x510d4d[_0x437691(0x243)](_0x22c356,0x1)+'\x0a',_0xc5509b+=_0x437691(0x267)+(_0xdb078f?_0x510d4d[_0x437691(0x26a)]:_0x510d4d['KONGI'])+'\x0a',_0x1d83bf+='Message:\x20'+_0x510d4d[_0x437691(0x1da)](_0x132e1d,_0x510d4d['xQqxL'])+'\x0a',_0xc3ea81&&(_0x62b95+=_0x510d4d[_0x437691(0x225)],_0x291a4d+=_0x437691(0x224)+(_0xc3ea81['message']||_0x510d4d['xQqxL'])+'\x0a',_0x27f5f5+='\x20\x20Code:\x20'+(_0xc3ea81[_0x437691(0x230)]||_0x510d4d['xQqxL'])+'\x0a',_0x108363+=_0x437691(0x289)+(_0xc3ea81[_0x437691(0x18b)]||_0x510d4d['xQqxL'])+'\x0a'),_0x2fbe82+='\x0a\x0a';}else logger[_0x437691(0x276)](_0x437691(0x1ff)+_0x40ddd9['error'][_0x437691(0x18b)]);}}function a17_0x584a(){const _0xbebba0=['got','lHEGX','grid\x20profile\x20flow\x20','.txt','<PasswordPlaceholder>','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','FiTZN','`\x20,error\x20:\x20','Failed\x20in\x20pre-check!\x20Error:\x20','SSL\x20Configured','cluster-check-failed-','MUHun','yzBbI','hfVjj','delay','EJwpZ','pre_check','../../utils/utilityMethods','uunNq','hKiHE','TLSv1_2_client_method','kqetC','\x20\x20Message:\x20','oyFJc','clusterName','lYdmA','find','TYdIM','RVedI','Success','options','string','gncun','LOG','code','readFileSync','getUTCHours','VtmMC','<UsernamePlaceholder>','split','XWnyh','EaNrO','length','lemEq','Setting\x20cloud\x20provider\x20as\x20','\x20region\x20-\x20','parse','BouoH','cloud-provider','Oylcj','jxAnn','pre-check-grid-called','INFO','tfecG','FtgCi','PlohP','../../cloudproviders/utils','rdxWF','VnkKR','pre-check-failed','debug','headers','Orcxm','connectionTimeout','throwHttpErrors','response','SQgBW','QuxiP','OUvTM','dummy-grid','hwkwt','cluster-name','credential-not-found','Message:\x20','fLPqo','Tool\x20Installed','1qSVoRg','grid','yVtiV','JBefc','lMYCH','174606QAVrEs','wwrQi','Cluster\x20','header','isClusterPresent','mypLB','CQCPt','FkkKF','Status:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Cluster\x20details\x0a-----------------------\x0a','zzSrP','BorTp','message','kKlxt','yPfFo','xelkq','toolInstalledResp','304ynvygF','AdjPV','init','GufAE','tOtbm','error','RJMSa','xQqxL','CFOek','replace','hrgUU','KlbeU','data','existsSync','DvBoR','fJdAM','Grid\x20profile\x20fetched\x20for\x20pre-check','\x20error\x20:\x20','requestId','xTgXa','KYCfT','kGqey','https://','lfaXm','\x20\x20Stack:\x20','bstackUsername','isTrialGridAccessible','../../config/constants','rgNbH','stack','8FcAvAd','push','loEYR','hdKQs','pDere','grid-profile','PBKyp','IUHue','Error\x20Details:\x0a','stringify','qTfcv','NoWoG','region','VkmcQ','Invalid\x20input.\x20grid\x20profiles:\x20','`\x20is\x20present\x20in\x20region\x20`','uPWIm','UWsrB','Browserstack','body','ixrNt','cloudProvider','BmLhg','N/A','ptvlw','GET','stack\x20trace\x20','18550ApdbPW',']\x20status\x20:\x20','vMEVv','utf-8','bykVU','type','yphdx','XTNkT','accessResp','qRDpp','XvKiI','will\x20be\x20created','rLzVY','unable\x20to\x20verify\x20if\x20cluster\x20`','getUTCDate','RNXlg','sxSVq','WVQhi','xWoxJ','method','status','ENCAk','builder','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','../../utils/webSocketUtils','toLowerCase','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Ctrkr','epilogue','===\x20Precheck\x20Report\x20-\x20','uxDgH','log/report_','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','SoviC','QMYBX','XOeJM','QXtMM','Failure','ERROR','WbCPW','HzuOh','1897506iSQjtn','isCliToolInstalled','clusterRegion','uHmrt','name','exit','`\x20already\x20exists','uIoso','getUTCMonth','qFSNi','OhnAi','mgOVV','PoRZN','ROOOX','16757092bPlEbO','NrrCO','gridProfile','authHeader','tJaKo','info','username','../../utils/instrumentationUtils','description','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','fFltH','ThZxc','help','WAgtm','YeAhS','Whitelisted\x20browserstack','lvStb','44150YHrlfA','241737pLpnEx','pre-check-cluster-args-not-passed','reconnecting-websocket','cloud-provider-not-supported','RYEwl','pre-check-grid-profile-empty','Missing\x20required\x20arguments:\x20','cOfCM','\x20data\x20:\x20','command','isTls1_2_SUPPORTED','XVizu','2103507ARVmsW','error\x20stack\x20:\x20','oUhIT','vSKrK','UmpOd','usage','wFLoB','NTBjN','sendEventToBackend','CLOUD_PROVIDER','603QvaPhN','Cluster\x20`','PTqWi','getUTCMinutes','password','WxKBw'];a17_0x584a=function(){return _0xbebba0;};return a17_0x584a();}function a17_0x9c1d(_0x2d3089,_0x18385c){const _0x584a4a=a17_0x584a();return a17_0x9c1d=function(_0x9c1d15,_0x441d7a){_0x9c1d15=_0x9c1d15-0x18b;let _0x1dc11b=_0x584a4a[_0x9c1d15];return _0x1dc11b;},a17_0x9c1d(_0x2d3089,_0x18385c);}async function generateReport(_0x4adfec,_0x35363d){const _0x867d5f=a17_0x388418,_0x4d2368={'gncun':function(_0x430448,_0xd00a5){return _0x430448+_0xd00a5;},'stdsi':_0x867d5f(0x22b),'GufAE':_0x867d5f(0x1cd),'OhnAi':function(_0x2e98f8,_0xda5ad8){return _0x2e98f8||_0xda5ad8;},'KYCfT':_0x867d5f(0x1a3),'wFLoB':_0x867d5f(0x194),'HzuOh':_0x867d5f(0x269),'Ctrkr':function(_0x1e6a26,_0x534625){return _0x1e6a26!=_0x534625;},'MDJZb':'is\x20already\x20present','jsHwS':_0x867d5f(0x1b2),'pDere':function(_0x20c2e5){return _0x20c2e5();}};let _0x5c0fda=_0x867d5f(0x1c4)+global_registry[_0x867d5f(0x1a1)]+'\x20===\x0a\x0a';return _0x4adfec['forEach']((_0x10d9b1,_0x37123e)=>{const _0x401bc6=_0x867d5f,{header:_0x266c84,response:_0x4af7b2}=_0x10d9b1,{status:_0xaa18eb,data:_0x179a61,error:_0x1df88}=_0x4af7b2;_0x5c0fda+=_0x266c84+'\x20#'+_0x4d2368[_0x401bc6(0x22e)](_0x37123e,0x1)+'\x0a',_0x5c0fda+='Status:\x20'+(_0xaa18eb?_0x4d2368['stdsi']:_0x4d2368[_0x401bc6(0x274)])+'\x0a',_0x5c0fda+=_0x401bc6(0x257)+_0x4d2368[_0x401bc6(0x1db)](_0x179a61,_0x4d2368[_0x401bc6(0x285)])+'\x0a',_0x1df88&&(_0x5c0fda+=_0x4d2368[_0x401bc6(0x204)],_0x5c0fda+=_0x401bc6(0x224)+(_0x1df88['message']||_0x4d2368[_0x401bc6(0x285)])+'\x0a',_0x5c0fda+='\x20\x20Code:\x20'+(_0x1df88[_0x401bc6(0x230)]||_0x4d2368[_0x401bc6(0x285)])+'\x0a',_0x5c0fda+=_0x401bc6(0x289)+(_0x1df88['stack']||_0x4d2368[_0x401bc6(0x285)])+'\x0a'),_0x5c0fda+='\x0a\x0a';}),_0x5c0fda+=_0x4d2368[_0x867d5f(0x1d0)],_0x4d2368[_0x867d5f(0x1c2)](_0x35363d,null)?_0x5c0fda+='Cluster\x20'+global_registry[_0x867d5f(0x226)]+'\x20'+(_0x35363d?_0x4d2368['MDJZb']:_0x4d2368['jsHwS'])+'\x0a\x0a':_0x5c0fda+='Cluster\x20'+global_registry[_0x867d5f(0x226)]+_0x867d5f(0x1c7),_0x5c0fda+=_0x4d2368[_0x867d5f(0x190)](getSystemMetaData),_0x5c0fda;};exports['handler']=async function(_0x3cdb4e){const _0x5cc0b8=a17_0x388418,_0x241daf={'KlbeU':function(_0x1573d9){return _0x1573d9();},'jxAnn':function(_0x5bc4e4){return _0x5bc4e4();},'jszKM':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VMhbj':function(_0x51860a,_0x58b250,_0x3ecda5,_0x2452fd,_0x1c7e51,_0x365673,_0x328e42,_0x150fe){return _0x51860a(_0x58b250,_0x3ecda5,_0x2452fd,_0x1c7e51,_0x365673,_0x328e42,_0x150fe);},'kGqey':_0x5cc0b8(0x241),'uPWIm':_0x5cc0b8(0x256),'lYdmA':_0x5cc0b8(0x276),'yVtiV':function(_0x514f17,_0x3ced25,_0x3f549c,_0x1f1e03,_0x400116,_0x2593bd,_0x31f2f8){return _0x514f17(_0x3ced25,_0x3f549c,_0x1f1e03,_0x400116,_0x2593bd,_0x31f2f8);},'ZIvLu':function(_0x4989da){return _0x4989da();},'NoWoG':_0x5cc0b8(0x234),'JBefc':_0x5cc0b8(0x212),'TYdIM':function(_0x4c58f6,_0x34d83d,_0xd3bfc5){return _0x4c58f6(_0x34d83d,_0xd3bfc5);},'QwhqM':function(_0x21da97,_0x5a98dc,_0x239781,_0x5437a4,_0x4dc25e,_0x1c3ba8,_0x3b543a){return _0x21da97(_0x5a98dc,_0x239781,_0x5437a4,_0x4dc25e,_0x1c3ba8,_0x3b543a);},'RVedI':_0x5cc0b8(0x253),'vVTBr':function(_0x536adf,_0x334dee,_0x322a96){return _0x536adf(_0x334dee,_0x322a96);},'lHEGX':_0x5cc0b8(0x270),'PoRZN':'3|0|2|4|1','VnkKR':_0x5cc0b8(0x1af),'CFOek':function(_0x9d760a,_0x8b852a,_0x68e143){return _0x9d760a(_0x8b852a,_0x68e143);},'SQgBW':_0x5cc0b8(0x28b),'HmqSn':function(_0x51f7b4,_0x523ba4){return _0x51f7b4(_0x523ba4);},'XTNkT':_0x5cc0b8(0x222),'ROOOX':_0x5cc0b8(0x1fc),'NTBjN':_0x5cc0b8(0x259),'IUHue':'User\x20Access','QuxiP':_0x5cc0b8(0x1ef),'rdxWF':_0x5cc0b8(0x217),'vMEVv':function(_0x3afe2b,_0x24c3e9){return _0x3afe2b+_0x24c3e9;},'dzEln':_0x5cc0b8(0x1aa),'RNXlg':_0x5cc0b8(0x249)};let _0xd46cf9,_0x114338;try{global_registry[_0x5cc0b8(0x283)]=_0x241daf[_0x5cc0b8(0x27c)](uuidv4);!fs[_0x5cc0b8(0x27e)](_0x241daf['jxAnn'](getCredentialsPath))&&(_0x114338=_0x241daf['jszKM'],logger[_0x5cc0b8(0x276)](_0x114338),await _0x241daf['VMhbj'](reportToGalactusAndSendToEDS,_0x3cdb4e,_0xd46cf9,_0x114338,messageTypes[_0x5cc0b8(0x1ce)],_0x241daf['kGqey'],_0x241daf[_0x5cc0b8(0x19c)],_0x241daf[_0x5cc0b8(0x227)]),process['exit'](0x1));_0x241daf[_0x5cc0b8(0x25c)](sendInstrumentationEvent,_0x3cdb4e,_0x241daf[_0x5cc0b8(0x286)],messageTypes[_0x5cc0b8(0x242)],null,null,_0x3cdb4e);const _0xb75963=JSON[_0x5cc0b8(0x23c)](fs[_0x5cc0b8(0x231)](_0x241daf['ZIvLu'](getCredentialsPath)));global_registry[_0x5cc0b8(0x28a)]=_0xb75963[_0x5cc0b8(0x19e)][_0x5cc0b8(0x1e5)],global_registry['bstackAccesskey']=_0xb75963[_0x5cc0b8(0x19e)][_0x5cc0b8(0x20c)];const _0xd3e530=WS_ENDPOINT[_0x5cc0b8(0x27a)](_0x241daf[_0x5cc0b8(0x197)],_0xb75963[_0x5cc0b8(0x19e)][_0x5cc0b8(0x1e5)])['replace'](_0x241daf[_0x5cc0b8(0x25d)],_0xb75963['Browserstack']['password']),_0x5f56e7={};_0x5f56e7['WebSocket']=ws,_0x5f56e7[_0x5cc0b8(0x24d)]=0x36ee80,_0xd46cf9=new ReconnectingWebSocket(_0xd3e530,[],_0x5f56e7),global_registry[_0x5cc0b8(0x1e2)]=_0x241daf[_0x5cc0b8(0x229)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x241daf['TYdIM'](inputValidation,_0x3cdb4e,_0xd46cf9),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+_0x5cc0b8(0x23b)+global_registry['clusterRegion']);let _0x2ad88b=await _0x241daf['QwhqM'](getCloudProviderObjectWithOutInit,global_registry[_0x5cc0b8(0x1a1)],global_registry[_0x5cc0b8(0x226)],_0x241daf[_0x5cc0b8(0x22a)],_0xd46cf9,webSocketUtils,_0x3cdb4e);const _0x3d41f5=await _0x2ad88b[_0x5cc0b8(0x1d2)]();_0x241daf['vVTBr'](printResponse,_0x241daf[_0x5cc0b8(0x20f)],_0x3d41f5),_0x2ad88b=await _0x2ad88b[_0x5cc0b8(0x273)]();let _0x4b8b47=![];try{_0x4b8b47=await _0x2ad88b[_0x5cc0b8(0x263)]();}catch(_0x32ee78){const _0x10340d=_0x241daf[_0x5cc0b8(0x1dd)][_0x5cc0b8(0x235)]('|');let _0x1bfffe=0x0;while(!![]){switch(_0x10340d[_0x1bfffe++]){case'0':_0x4b8b47=null;continue;case'1':await _0x241daf['VMhbj'](reportToGalactusAndSendToEDS,_0x3cdb4e,_0xd46cf9,_0x114338,messageTypes[_0x5cc0b8(0x1ce)],_0x241daf['kGqey'],_0x5cc0b8(0x218)+global_registry[_0x5cc0b8(0x1a1)],_0x241daf['lYdmA']);continue;case'2':logger['error'](_0x114338);continue;case'3':_0x114338=_0x5cc0b8(0x1b4)+global_registry[_0x5cc0b8(0x226)]+_0x5cc0b8(0x19b)+global_registry[_0x5cc0b8(0x1d3)]+_0x5cc0b8(0x215)+_0x32ee78;continue;case'4':_0x114338+='\x0a'+JSON['stringify'](_0x32ee78[_0x5cc0b8(0x18b)]);continue;}break;}}_0x4b8b47&&logger[_0x5cc0b8(0x1e4)](_0x5cc0b8(0x209)+global_registry[_0x5cc0b8(0x226)]+'`\x20already\x20exists');const _0x35117e=await _0x2ad88b['checkAccess']();_0x241daf['vVTBr'](printResponse,_0x241daf[_0x5cc0b8(0x248)],_0x35117e);const _0x24fd05=await _0x241daf[_0x5cc0b8(0x240)](curlRequest);_0x241daf[_0x5cc0b8(0x279)](printResponse,_0x241daf[_0x5cc0b8(0x250)],_0x24fd05);const _0x370230=await _0x241daf['HmqSn'](isTlsSupported,_0x241daf[_0x5cc0b8(0x1ae)]);_0x241daf[_0x5cc0b8(0x229)](printResponse,_0x241daf[_0x5cc0b8(0x1de)],_0x370230);const _0x26df26={};_0x26df26[_0x5cc0b8(0x262)]=_0x241daf[_0x5cc0b8(0x205)],_0x26df26[_0x5cc0b8(0x24f)]=_0x3d41f5;const _0x37336d={};_0x37336d['header']=_0x241daf[_0x5cc0b8(0x193)],_0x37336d[_0x5cc0b8(0x24f)]=_0x35117e;const _0x4e0e7b={};_0x4e0e7b[_0x5cc0b8(0x262)]=_0x241daf[_0x5cc0b8(0x251)],_0x4e0e7b[_0x5cc0b8(0x24f)]=_0x24fd05;const _0x135d8c={};_0x135d8c[_0x5cc0b8(0x262)]=_0x241daf[_0x5cc0b8(0x247)],_0x135d8c[_0x5cc0b8(0x24f)]=_0x370230;const _0x7841ad=[_0x26df26,_0x37336d,_0x4e0e7b,_0x135d8c],_0x1583e5=await _0x241daf[_0x5cc0b8(0x279)](generateReport,_0x7841ad,_0x4b8b47),_0x5dfa39=new Date(),_0x5e434f=_0x5dfa39['getUTCFullYear']()+'_'+_0x241daf[_0x5cc0b8(0x1a9)](_0x5dfa39[_0x5cc0b8(0x1d9)](),0x1)+'_'+_0x5dfa39[_0x5cc0b8(0x1b5)]()+'_'+_0x5dfa39[_0x5cc0b8(0x232)]()+'_'+_0x5dfa39[_0x5cc0b8(0x20b)](),_0x7c6283=_0x5cc0b8(0x1c6)+_0x5e434f+_0x5cc0b8(0x211);fs['writeFileSync'](_0x7c6283,_0x1583e5,_0x241daf['dzEln']),logger['info']('Report\x20saved\x20in\x20'+_0x7c6283),process[_0x5cc0b8(0x1d6)](0x0);}catch(_0x5b4e40){let _0x361aa6=_0x5cc0b8(0x216)+_0x5b4e40+'\x20';logger[_0x5cc0b8(0x276)](_0x361aa6),_0x361aa6+='\x0a'+JSON[_0x5cc0b8(0x195)](_0x5b4e40[_0x5cc0b8(0x18b)]),logger[_0x5cc0b8(0x24a)](_0x5cc0b8(0x1a6)+_0x5b4e40[_0x5cc0b8(0x18b)]);if(_0xd46cf9){const _0x486712={};_0x486712[_0x5cc0b8(0x1ac)]=WS_EVENTS['LOG'],_0x486712['message']=_0x361aa6,webSocketUtils['sendEventToBackend'](_0xd46cf9,_0x486712,_0x241daf[_0x5cc0b8(0x227)],!![]);}await webSocketUtils[_0x5cc0b8(0x21c)](0x7d0);const _0x227d45={};_0x227d45[_0x5cc0b8(0x276)]=_0x361aa6,await _0x241daf[_0x5cc0b8(0x25c)](sendInstrumentationEvent,_0x3cdb4e,_0x241daf[_0x5cc0b8(0x286)],messageTypes['ERROR'],_0x241daf[_0x5cc0b8(0x1b6)],_0x227d45,_0x3cdb4e),process[_0x5cc0b8(0x1d6)](0x1);}};
1
+ const a17_0x95eb67=a17_0x2230;(function(_0x2467e7,_0x19419e){const _0x65717=a17_0x2230,_0x2f6843=_0x2467e7();while(!![]){try{const _0x1ca4ec=-parseInt(_0x65717(0x16b))/0x1*(-parseInt(_0x65717(0xbe))/0x2)+parseInt(_0x65717(0xf3))/0x3+-parseInt(_0x65717(0xc5))/0x4*(-parseInt(_0x65717(0x13b))/0x5)+parseInt(_0x65717(0x142))/0x6+parseInt(_0x65717(0x168))/0x7+-parseInt(_0x65717(0xc6))/0x8*(-parseInt(_0x65717(0xda))/0x9)+parseInt(_0x65717(0x90))/0xa*(-parseInt(_0x65717(0x89))/0xb);if(_0x1ca4ec===_0x19419e)break;else _0x2f6843['push'](_0x2f6843['shift']());}catch(_0x316d7f){_0x2f6843['push'](_0x2f6843['shift']());}}}(a17_0xada1,0x9aad4));function a17_0x2230(_0x5c62e1,_0x54a0b2){const _0xada13a=a17_0xada1();return a17_0x2230=function(_0x2230a1,_0x2a1851){_0x2230a1=_0x2230a1-0x87;let _0x497a7e=_0xada13a[_0x2230a1];return _0x497a7e;},a17_0x2230(_0x5c62e1,_0x54a0b2);}function a17_0xada1(){const _0x135e43=['Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','OWkOv','Pre-check\x20running\x20for\x20Cloud\x20-\x20','grid\x20profile\x20flow\x20','<PasswordPlaceholder>','forEach','isTrialGridAccessible','getUTCMinutes','description','FemZF','GXDrK','requestId','tsBwA','QQZGK','kwBXa','fWdJa','SHReC','gridProfile','zNZOc','5TXXdZE','User\x20Access','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','IWsuJ','rYfcR','Error\x20Details:\x0a','throwHttpErrors','5150064oJWXhl','string','type','exit','SSL\x20Configured','WebSocket','UBAQF','TidDR','isCliToolInstalled','command','mWKMs','3|0|1|4|2','stack','UadRm','bstackAccesskey','delay','password','pre-check','IhcFs','name','cNcRM','utf-8','Status:\x20','cloud-provider','getUTCMonth','RRuTW','LTddN','error','../../cloudproviders/utils','clusterRegion','argv','NYfyQ','OUOfC','ZuZaY','DoYYl','uqqrG','sendEventToBackend','Whitelisted\x20browserstack','7467341YTseyb','zlEzJ','Report\x20saved\x20in\x20','183tmLpOq','KRLAs','Failed\x20in\x20pre-check!\x20Error:\x20','INFO','\x20\x20Message:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','response','LOG','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','YtnKh','`\x20already\x20exists','LfSFr','IvHcv','sKQuk','vgBoZ','UjCle','.\x20Please\x20provide\x20all\x20required\x20arguments.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','huweR','options','cGHPG','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','653301XtkYAf','kHWsS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','iyIHK','IBzBS','zZcsb','wxwKc','660NjQyEm','N/A','lgyrf','hXezs','fHqwV','HvBEf','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','username','boeCJ','TLSv1_2_client_method','rRVUN','init','\x20===\x0a\x0a','bstackUsername','eMESS','\x20error\x20:\x20','szoiI','CeFvB','Nxchf','qeHEh','DQnHT','Grid\x20profile\x20fetched\x20for\x20pre-check','Cluster\x20','ALCRg','../../utils/instrumentationUtils','connectionTimeout','UASBD','nyJyx','unable\x20to\x20verify\x20if\x20cluster\x20`','QUYmQ','status','writeFileSync','is\x20already\x20present','zRjoF','info','lwkvt','https://','grid','region','DzKrc','qXtxX','Tool\x20Installed','pre-check-grid-profile-empty','GlMPp','clusterName','parse','7918RXFVyr','ERROR','getUTCHours','cloud-provider-not-supported','bedGm','header','error\x20stack\x20:\x20','3003772rqcVwO','8xyluGZ','yFXAv','Message:\x20','jmnBn','\x20\x20Stack:\x20','HNKDo','===\x20Precheck\x20Report\x20-\x20','cloudProvider','ILPGM','message','usage','data','IiJoq','grid-profile','nhOhp','Browserstack','Success','KGova','GtZjJ','sBNbz','1190223gUZrQp','<UsernamePlaceholder>','Failure','Cluster\x20`','accessResp','Lbeqs','pre-check-failed','HvfIL','lGrlV','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','join','stack\x20trace\x20','getUTCDate','XoXUk','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','got','LHkBS','\x20data\x20:\x20','pre_check','/packages/cli/get-all-grid-profiles','`\x20,error\x20:\x20','yfwVP','AcgwR','EMVIA','pre-check-cluster-args-not-passed','3061704iQlTVs','ojZev','find','isTls1_2_SUPPORTED','Setting\x20cloud\x20provider\x20as\x20','ULqnn','xwTLZ','ctcLr','cluster-check-failed-','CCOpY','uKgpV','replace','reconnecting-websocket','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','GHMFw','dWXjR','BuAOP','WcMSU','qpfAC','uhQub','yvVDo','isClusterPresent','epilogue','oSxTR','Ufpog','GET','QVLhk','debug','cluster-name','CLOUD_PROVIDER','../../config/logger','desc','Dewul','push','\x20\x20Code:\x20','pre-check-grid-called','Missing\x20required\x20arguments:\x20','xAEep','length','GlsNa','YKRIx','checkAccess','help','toolInstalledResp',']\x20status\x20:\x20','handler','authHeader','Invalid\x20input.\x20grid\x20profiles:\x20','TQrtS','code','will\x20be\x20created','log/report_','QMVZf'];a17_0xada1=function(){return _0x135e43;};return a17_0xada1();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x95eb67(0xe9)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x95eb67(0xff)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x95eb67(0x111)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x95eb67(0x15e)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x95eb67(0xa8));exports[a17_0x95eb67(0x14b)]=a17_0x95eb67(0xb5),exports[a17_0x95eb67(0x112)]=a17_0x95eb67(0x173),exports['builder']=function(_0x566609){const _0x20872c=a17_0x95eb67,_0x2a45d7={};_0x2a45d7[_0x20872c(0xe7)]=_0x20872c(0x8b),_0x2a45d7['ILPGM']=_0x20872c(0x143),_0x2a45d7['MUiXg']=_0x20872c(0x13d),_0x2a45d7[_0x20872c(0x131)]=_0x20872c(0x96),_0x2a45d7['fWdJa']=_0x20872c(0x17c),_0x2a45d7[_0x20872c(0xea)]=_0x20872c(0x11d);const _0x543dc6=_0x2a45d7,_0x4e4887={};_0x4e4887['description']=_0x543dc6[_0x20872c(0xe7)],_0x4e4887['type']=_0x543dc6[_0x20872c(0xce)];const _0x2c45e7={};_0x2c45e7[_0x20872c(0x130)]=_0x543dc6['MUiXg'],_0x2c45e7['type']=_0x543dc6['ILPGM'];const _0x40f969={};_0x40f969['description']=_0x543dc6[_0x20872c(0x131)],_0x40f969[_0x20872c(0x144)]=_0x543dc6[_0x20872c(0xce)];const _0x577956={};_0x577956[_0x20872c(0x130)]=_0x543dc6[_0x20872c(0x137)],_0x577956['type']=_0x543dc6[_0x20872c(0xce)];const _0xebe981={};return _0xebe981[_0x20872c(0x10f)]=_0x4e4887,_0xebe981[_0x20872c(0x159)]=_0x2c45e7,_0xebe981[_0x20872c(0xb6)]=_0x40f969,_0xebe981[_0x20872c(0xd3)]=_0x577956,_0x566609[_0x20872c(0xd0)](HELP_HEADER_MESSAGE[_0x20872c(0xec)])[_0x20872c(0x109)](HELP_FOOTER_MESSAGE)[_0x20872c(0x17e)](_0xebe981)[_0x20872c(0x11d)](_0x543dc6['LHkBS'])[_0x20872c(0x160)];};async function inputValidation(_0x33300a,_0x418209){const _0x4500e8=a17_0x95eb67,_0x5d69ce={'UjCle':_0x4500e8(0x10f),'reyFA':_0x4500e8(0x8b),'uhQub':_0x4500e8(0x143),'fWMyH':_0x4500e8(0x13d),'IDAZc':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','rRVUN':_0x4500e8(0x17c),'CCOpY':_0x4500e8(0x11d),'QUYmQ':_0x4500e8(0x15d),'qeHEh':_0x4500e8(0x159),'UASBD':_0x4500e8(0x140),'uqqrG':_0x4500e8(0x91),'YKRIx':function(_0x57545d,_0x46e2a6){return _0x57545d+_0x46e2a6;},'vgBoZ':_0x4500e8(0xd6),'UBAQF':_0x4500e8(0xdc),'QVLhk':function(_0x2d4a6d,_0x2bc1b7){return _0x2d4a6d||_0x2bc1b7;},'ojZev':_0x4500e8(0xb0),'MAzUB':_0x4500e8(0x125),'zemog':_0x4500e8(0x128),'ALCRg':function(_0x15c9e5,_0x5a2648){return _0x15c9e5===_0x5a2648;},'fHqwV':_0x4500e8(0x8a),'iyIHK':function(_0x1c61fa,_0x5ddd9e){return _0x1c61fa!==_0x5ddd9e;},'nhOhp':_0x4500e8(0xa4),'pKPBq':function(_0x3b6ccd,_0x400eb7){return _0x3b6ccd===_0x400eb7;},'zNZOc':_0x4500e8(0x101),'kwBXa':function(_0x4f4daf,_0x6a0304){return _0x4f4daf!==_0x6a0304;},'xwTLZ':'qXzNy','ctcLr':_0x4500e8(0x13f),'HvBEf':_0x4500e8(0x10b),'lGrlV':'region','LGMVY':function(_0x4efa8a,_0x41252b){return _0x4efa8a>_0x41252b;},'QQZGK':function(_0x119d12,_0x25951c){return _0x119d12===_0x25951c;},'tsBwA':_0x4500e8(0xe1),'LfSFr':_0x4500e8(0x15c),'nyJyx':function(_0x254d42,_0x307e32,_0x3f9156,_0x42a15b,_0xd706b8,_0x4d2564,_0x2bbeb9,_0x50c1a5){return _0x254d42(_0x307e32,_0x3f9156,_0x42a15b,_0xd706b8,_0x4d2564,_0x2bbeb9,_0x50c1a5);},'zRjoF':'pre-check-grid-called','wPPnV':_0x4500e8(0xf2),'IvHcv':function(_0x5a1077,_0x1dcb2a){return _0x5a1077!==_0x1dcb2a;},'ErYkl':_0x4500e8(0x174),'XZPwJ':'wzhBr','zuEij':_0x4500e8(0x88),'dWXjR':_0x4500e8(0xc1),'vaHVj':function(_0x5e743e,_0x49f875){return _0x5e743e===_0x49f875;},'cGHPG':_0x4500e8(0xd7),'GtZjJ':_0x4500e8(0x107),'Wtmyh':_0x4500e8(0x10c),'jxQkN':function(_0x242629,_0x501c37,_0x3ffe5e){return _0x242629(_0x501c37,_0x3ffe5e);},'zWXaw':function(_0x10aeef,_0x16b8b8,_0x3817f5,_0x292c84,_0x598679,_0x1df665){return _0x10aeef(_0x16b8b8,_0x3817f5,_0x292c84,_0x598679,_0x1df665);},'wxwKc':_0x4500e8(0x153),'bedGm':_0x4500e8(0xd3),'cHfGe':function(_0x9cb991,_0x26ac5c){return _0x9cb991===_0x26ac5c;},'hXezs':_0x4500e8(0x169),'szoiI':function(_0x3d0f84,_0x2bb4be){return _0x3d0f84(_0x2bb4be);},'huweR':'ayfJP','lgyrf':function(_0x251276,_0x58a692,_0x5c5a52,_0x3c2b66,_0x1d3ca3,_0x38b118,_0x300720,_0x3eadce){return _0x251276(_0x58a692,_0x5c5a52,_0x3c2b66,_0x1d3ca3,_0x38b118,_0x300720,_0x3eadce);},'qXtxX':_0x4500e8(0xba),'jTVWC':function(_0x58dd8c,_0x3eb241){return _0x58dd8c!==_0x3eb241;},'sBNbz':'EtmHe','boeCJ':'sVNoa','BuAOP':function(_0x1897cf,_0x101550){return _0x1897cf!==_0x101550;},'DzKrc':'ejwzQ','IWsuJ':_0x4500e8(0xa5),'EMVIA':function(_0x2f6276,_0x17ebdb){return _0x2f6276!==_0x17ebdb;},'mWKMs':_0x4500e8(0xc9),'KSHpy':_0x4500e8(0x14f),'INrOl':function(_0x34e55d,_0x259bae,_0x749082,_0x389547,_0x3e1bd3,_0x475f27,_0xb31ade,_0x24c568){return _0x34e55d(_0x259bae,_0x749082,_0x389547,_0x3e1bd3,_0x475f27,_0xb31ade,_0x24c568);}};let _0x238aa4;try{if(_0x5d69ce['ALCRg'](_0x5d69ce[_0x4500e8(0x94)],_0x5d69ce['fHqwV'])){if(_0x33300a[_0x4500e8(0xbc)]||_0x33300a[_0x4500e8(0xcd)]||_0x33300a['region']){if(_0x5d69ce[_0x4500e8(0x8c)](_0x5d69ce[_0x4500e8(0xd4)],_0x5d69ce['nhOhp']))_0x44964b[_0x4500e8(0x114)](_0x5d69ce[_0x4500e8(0x17a)]);else{const _0x2b69d4=[];!_0x33300a[_0x4500e8(0xbc)]&&(_0x5d69ce['pKPBq'](_0x5d69ce[_0x4500e8(0x13a)],_0x5d69ce[_0x4500e8(0x13a)])?_0x2b69d4['push'](_0x5d69ce[_0x4500e8(0x17a)]):(_0x1387b0[_0x4500e8(0xb2)]('['+_0x5456bb+_0x4500e8(0x11f)+_0x226554[_0x4500e8(0xae)]+_0x4500e8(0xeb)+_0x35b30f['data']+_0x4500e8(0x9f)+_0x41702f[_0x4500e8(0x15d)]),_0x189907[_0x4500e8(0x15d)]&&_0x1da9fe[_0x4500e8(0x15d)](_0x4500e8(0xc4)+_0x5e5f04[_0x4500e8(0x15d)][_0x4500e8(0x14e)])));;!_0x33300a[_0x4500e8(0xcd)]&&(_0x5d69ce[_0x4500e8(0x136)](_0x5d69ce[_0x4500e8(0xf9)],_0x5d69ce['xwTLZ'])?(_0x19c6f3[_0x4500e8(0xb2)](_0x4500e8(0xf7)+_0x1717c0[_0x4500e8(0x110)]+'\x20'),_0x44e351[_0x4500e8(0xcd)]=_0x670544[_0x4500e8(0x110)]):_0x2b69d4[_0x4500e8(0x114)](_0x5d69ce[_0x4500e8(0xa3)]));;if(!_0x33300a[_0x4500e8(0xb6)]){if(_0x5d69ce['pKPBq'](_0x5d69ce[_0x4500e8(0xfa)],_0x5d69ce[_0x4500e8(0x95)])){const _0x1611b5={};_0x1611b5['description']=_0x5d69ce['reyFA'],_0x1611b5[_0x4500e8(0x144)]=_0x5d69ce[_0x4500e8(0x106)];const _0x4a585a={};_0x4a585a['description']=_0x5d69ce['fWMyH'],_0x4a585a[_0x4500e8(0x144)]=_0x5d69ce[_0x4500e8(0x106)];const _0x5500a7={};_0x5500a7[_0x4500e8(0x130)]=_0x5d69ce['IDAZc'],_0x5500a7[_0x4500e8(0x144)]=_0x5d69ce[_0x4500e8(0x106)];const _0xa46f0={};_0xa46f0[_0x4500e8(0x130)]=_0x5d69ce[_0x4500e8(0x9a)],_0xa46f0[_0x4500e8(0x144)]=_0x5d69ce[_0x4500e8(0x106)];const _0x7a8d76={};return _0x7a8d76['cluster-name']=_0x1611b5,_0x7a8d76[_0x4500e8(0x159)]=_0x4a585a,_0x7a8d76[_0x4500e8(0xb6)]=_0x5500a7,_0x7a8d76[_0x4500e8(0xd3)]=_0xa46f0,_0x2671b4[_0x4500e8(0xd0)](_0x1176ff[_0x4500e8(0xec)])['epilogue'](_0x41c3e6)[_0x4500e8(0x17e)](_0x7a8d76)[_0x4500e8(0x11d)](_0x5d69ce[_0x4500e8(0xfc)])[_0x4500e8(0x160)];}else _0x2b69d4[_0x4500e8(0x114)](_0x5d69ce[_0x4500e8(0xe2)]);};_0x5d69ce['LGMVY'](_0x2b69d4[_0x4500e8(0x119)],0x0)&&(_0x5d69ce['QQZGK'](_0x5d69ce[_0x4500e8(0x134)],_0x5d69ce[_0x4500e8(0x176)])?_0x28f450[_0x4500e8(0x15d)](_0x4500e8(0xc4)+_0xd32a9b[_0x4500e8(0x15d)][_0x4500e8(0x14e)]):(_0x238aa4=_0x4500e8(0x117)+_0x2b69d4[_0x4500e8(0xe4)](',\x20')+_0x4500e8(0x17b),await _0x5d69ce[_0x4500e8(0xab)](reportToGalactusAndSendToEDS,_0x33300a,_0x418209,_0x238aa4,messageTypes[_0x4500e8(0xbf)],_0x5d69ce['zRjoF'],_0x5d69ce['wPPnV'],_0x5d69ce[_0x4500e8(0xad)]),logger[_0x4500e8(0x15d)](_0x238aa4),process[_0x4500e8(0x145)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x33300a[_0x4500e8(0xcd)]['toLowerCase']())){if(_0x5d69ce[_0x4500e8(0x177)](_0x5d69ce['ErYkl'],_0x5d69ce['XZPwJ']))_0x238aa4=_0x5d69ce['zuEij'],await _0x5d69ce['nyJyx'](reportToGalactusAndSendToEDS,_0x33300a,_0x418209,_0x238aa4,messageTypes['ERROR'],_0x5d69ce[_0x4500e8(0xb1)],_0x5d69ce[_0x4500e8(0x102)],_0x5d69ce['QUYmQ']),logger[_0x4500e8(0x15d)](_0x238aa4),!_0x33300a['cloudProvider']&&(_0x5d69ce['vaHVj'](_0x5d69ce[_0x4500e8(0x87)],_0x5d69ce[_0x4500e8(0x87)])?(logger[_0x4500e8(0xb2)](_0x4500e8(0xf7)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x33300a['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x4500e8(0x110)]):_0x568009[_0x4500e8(0xb2)](_0x4500e8(0xdd)+_0x20420d[_0x4500e8(0xbc)]+_0x4500e8(0x175)));else{const _0x2f5593={};_0x2f5593['type']=_0x10ecf9[_0x4500e8(0x172)],_0x2f5593[_0x4500e8(0xcf)]=_0x17f95f,_0x137c71[_0x4500e8(0x166)](_0x54ad1e,_0x2f5593,_0x5d69ce[_0x4500e8(0xad)],!![]);}}global_registry[_0x4500e8(0xbc)]=_0x33300a[_0x4500e8(0xbc)],global_registry[_0x4500e8(0xcd)]=_0x33300a[_0x4500e8(0xcd)],global_registry[_0x4500e8(0x15f)]=_0x33300a[_0x4500e8(0xb6)];}}else{if(_0x33300a['gridProfile']){if(_0x5d69ce[_0x4500e8(0x177)](_0x5d69ce[_0x4500e8(0xd8)],_0x5d69ce[_0x4500e8(0xd8)]))_0x3e5da9[_0x4500e8(0x114)](_0x5d69ce['qeHEh']);else{global_registry[_0x4500e8(0x139)]=_0x33300a['gridProfile'],logger[_0x4500e8(0x10e)](_0x4500e8(0x12b)+_0x33300a['gridProfile']);const _0x31519a=_0x4500e8(0xb4)+AG_API_URL+_0x4500e8(0xed),_0x585320={};_0x585320['method']=_0x5d69ce['Wtmyh'],_0x585320['headers']=global_registry[_0x4500e8(0x121)],_0x585320[_0x4500e8(0x141)]=![];const _0x5da679=_0x585320,_0x46d07e=await _0x5d69ce['jxQkN'](got,_0x31519a,_0x5da679),_0x127d58=await _0x5d69ce['zWXaw'](responseValidation,_0x46d07e,_0x5d69ce[_0x4500e8(0x8f)],_0x5d69ce[_0x4500e8(0xc2)],_0x33300a,_0x418209);let _0x5109f5={};if(_0x5d69ce[_0x4500e8(0x135)](_0x127d58,0xc8)){if(_0x5d69ce['cHfGe'](_0x5d69ce[_0x4500e8(0x93)],_0x5d69ce[_0x4500e8(0x93)])){const _0x4af890=JSON[_0x4500e8(0xbd)](_0x46d07e['body']),_0x170144=_0x4af890[_0x4500e8(0xf5)](_0x4233ba=>_0x4233ba[_0x4500e8(0x155)]===_0x33300a[_0x4500e8(0x139)])||null;_0x5d69ce[_0x4500e8(0xa0)](isUndefined,_0x170144)?_0x5d69ce['ALCRg'](_0x5d69ce[_0x4500e8(0x17d)],_0x5d69ce[_0x4500e8(0x17d)])?(_0x238aa4=_0x4500e8(0x122)+_0x33300a[_0x4500e8(0x139)]+_0x4500e8(0xe3),await _0x5d69ce[_0x4500e8(0x92)](reportToGalactusAndSendToEDS,_0x33300a,_0x418209,_0x238aa4,messageTypes[_0x4500e8(0xbf)],_0x5d69ce[_0x4500e8(0xb1)],_0x5d69ce[_0x4500e8(0xb8)],_0x5d69ce[_0x4500e8(0xad)]),logger['error'](_0x238aa4),process[_0x4500e8(0x145)](0x1)):_0xda7e8a+='Cluster\x20'+_0x325a53[_0x4500e8(0xbc)]+_0x4500e8(0x100):_0x5d69ce['jTVWC'](_0x5d69ce[_0x4500e8(0xd9)],_0x5d69ce[_0x4500e8(0x98)])?_0x5109f5=_0x170144:(_0xb1b537+=_0x5d69ce[_0x4500e8(0xaa)],_0x1c8c74+=_0x4500e8(0x16f)+(_0x32d69[_0x4500e8(0xcf)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x46abe5+=_0x4500e8(0x115)+(_0x14461f[_0x4500e8(0x124)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x1d03b3+=_0x4500e8(0xca)+(_0x44d038[_0x4500e8(0x14e)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a');}else{const {header:_0x2048cb,response:_0x23888d}=_0x31d4a7,{status:_0x14444c,data:_0x268b4b,error:_0x3882ec}=_0x23888d;_0x5a5e94+=_0x2048cb+'\x20#'+_0x5d69ce[_0x4500e8(0x11b)](_0x4df941,0x1)+'\x0a',_0x27c995+=_0x4500e8(0x158)+(_0x14444c?_0x5d69ce[_0x4500e8(0x179)]:_0x5d69ce[_0x4500e8(0x148)])+'\x0a',_0x3d0893+=_0x4500e8(0xc8)+_0x5d69ce[_0x4500e8(0x10d)](_0x268b4b,_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x3882ec&&(_0x489e43+=_0x5d69ce[_0x4500e8(0xaa)],_0x4fcf95+=_0x4500e8(0x16f)+(_0x3882ec[_0x4500e8(0xcf)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x2e30bb+='\x20\x20Code:\x20'+(_0x3882ec[_0x4500e8(0x124)]||_0x5d69ce[_0x4500e8(0x165)])+'\x0a',_0x3609f8+='\x20\x20Stack:\x20'+(_0x3882ec['stack']||_0x5d69ce['uqqrG'])+'\x0a'),_0x40f543+='\x0a\x0a';}}else _0x5d69ce[_0x4500e8(0x103)](_0x5d69ce[_0x4500e8(0xb7)],_0x5d69ce['DzKrc'])?_0x48a19a+=_0x4500e8(0xa6)+_0x7f8be3['clusterName']+'\x20'+(_0x2ebc3f?_0x5d69ce[_0x4500e8(0xf4)]:_0x5d69ce['MAzUB'])+'\x0a\x0a':process[_0x4500e8(0x145)](0x1);const _0x59cf34={};_0x59cf34['type']=WS_EVENTS[_0x4500e8(0x172)],_0x59cf34['message']=_0x5d69ce[_0x4500e8(0x13e)],webSocketUtils[_0x4500e8(0x166)](_0x418209,_0x59cf34),global_registry[_0x4500e8(0xcd)]=_0x5109f5[_0x4500e8(0xcd)],global_registry['clusterRegion']=_0x5109f5[_0x4500e8(0xb6)],global_registry[_0x4500e8(0xbc)]=_0x5109f5[_0x4500e8(0xbc)];}}else _0x5d69ce[_0x4500e8(0xf1)](_0x5d69ce[_0x4500e8(0x14c)],_0x5d69ce[_0x4500e8(0x14c)])?_0x216efa[_0x4500e8(0x145)](0x1):(logger[_0x4500e8(0x15d)](_0x5d69ce['zemog']),process[_0x4500e8(0x145)](0x1));}}else _0x4e3ebc[_0x4500e8(0x15d)](_0x5d69ce['zemog']),_0xeff2a2['exit'](0x1);}catch(_0x11e2d6){_0x5d69ce[_0x4500e8(0xa7)](_0x5d69ce['KSHpy'],_0x5d69ce['KSHpy'])?(_0x238aa4=_0x4500e8(0xe8)+_0x11e2d6+':\x20'+_0x11e2d6[_0x4500e8(0x14e)],logger[_0x4500e8(0x15d)](_0x238aa4),await _0x5d69ce['INrOl'](reportToGalactusAndSendToEDS,_0x33300a,_0x418209,_0x238aa4,messageTypes['ERROR'],_0x5d69ce[_0x4500e8(0xb1)],_0x5d69ce[_0x4500e8(0x102)],_0x5d69ce['QUYmQ']),process['exit'](0x1)):_0x2123c1=_0x1c6c03;}}function printResponse(_0xd52916,_0x22df5d){const _0xa15c5d=a17_0x95eb67,_0x322cbf={};_0x322cbf[_0xa15c5d(0xbb)]=_0xa15c5d(0xb6),_0x322cbf[_0xa15c5d(0x10a)]=function(_0x3959e7,_0x134c6f){return _0x3959e7!==_0x134c6f;},_0x322cbf[_0xa15c5d(0x138)]=_0xa15c5d(0xb3),_0x322cbf['IiJoq']=_0xa15c5d(0xfd);const _0x126128=_0x322cbf;logger[_0xa15c5d(0xb2)]('['+_0xd52916+_0xa15c5d(0x11f)+_0x22df5d[_0xa15c5d(0xae)]+_0xa15c5d(0xeb)+_0x22df5d[_0xa15c5d(0xd1)]+'\x20error\x20:\x20'+_0x22df5d[_0xa15c5d(0x15d)]),_0x22df5d[_0xa15c5d(0x15d)]&&(_0x126128[_0xa15c5d(0x10a)](_0x126128[_0xa15c5d(0x138)],_0x126128[_0xa15c5d(0xd2)])?logger[_0xa15c5d(0x15d)](_0xa15c5d(0xc4)+_0x22df5d[_0xa15c5d(0x15d)][_0xa15c5d(0x14e)]):_0x5631dc['push'](_0x126128['GlMPp']));}async function generateReport(_0x5eab74,_0x1b5f7c){const _0x3e5143=a17_0x95eb67,_0x4c95b5={'RRuTW':function(_0x1debeb,_0x4add5e){return _0x1debeb+_0x4add5e;},'IBzBS':'Success','kRwyE':_0x3e5143(0xdc),'yFXAv':function(_0x2fcb9c,_0x49d606){return _0x2fcb9c||_0x49d606;},'QMVZf':_0x3e5143(0x91),'KRLAs':_0x3e5143(0x140),'Lbeqs':'Cluster\x20details\x0a-----------------------\x0a','zZcsb':function(_0x218879,_0x5aae2d){return _0x218879!=_0x5aae2d;},'Nxchf':_0x3e5143(0xb0),'AcgwR':'will\x20be\x20created','OUOfC':function(_0x3c4087){return _0x3c4087();}};let _0x2fe016=_0x3e5143(0xcc)+global_registry[_0x3e5143(0xcd)]+_0x3e5143(0x9c);return _0x5eab74[_0x3e5143(0x12d)]((_0x596a61,_0x1dc72e)=>{const _0x13ab42=_0x3e5143,{header:_0x1b8cbc,response:_0x119ccc}=_0x596a61,{status:_0x587762,data:_0xffad78,error:_0x45f2ea}=_0x119ccc;_0x2fe016+=_0x1b8cbc+'\x20#'+_0x4c95b5[_0x13ab42(0x15b)](_0x1dc72e,0x1)+'\x0a',_0x2fe016+=_0x13ab42(0x158)+(_0x587762?_0x4c95b5[_0x13ab42(0x8d)]:_0x4c95b5['kRwyE'])+'\x0a',_0x2fe016+='Message:\x20'+_0x4c95b5[_0x13ab42(0xc7)](_0xffad78,_0x4c95b5[_0x13ab42(0x127)])+'\x0a',_0x45f2ea&&(_0x2fe016+=_0x4c95b5[_0x13ab42(0x16c)],_0x2fe016+='\x20\x20Message:\x20'+(_0x45f2ea[_0x13ab42(0xcf)]||_0x4c95b5[_0x13ab42(0x127)])+'\x0a',_0x2fe016+=_0x13ab42(0x115)+(_0x45f2ea['code']||_0x4c95b5[_0x13ab42(0x127)])+'\x0a',_0x2fe016+='\x20\x20Stack:\x20'+(_0x45f2ea[_0x13ab42(0x14e)]||_0x4c95b5[_0x13ab42(0x127)])+'\x0a'),_0x2fe016+='\x0a\x0a';}),_0x2fe016+=_0x4c95b5[_0x3e5143(0xdf)],_0x4c95b5[_0x3e5143(0x8e)](_0x1b5f7c,null)?_0x2fe016+=_0x3e5143(0xa6)+global_registry[_0x3e5143(0xbc)]+'\x20'+(_0x1b5f7c?_0x4c95b5[_0x3e5143(0xa2)]:_0x4c95b5[_0x3e5143(0xf0)])+'\x0a\x0a':_0x2fe016+=_0x3e5143(0xa6)+global_registry[_0x3e5143(0xbc)]+_0x3e5143(0x100),_0x2fe016+=_0x4c95b5[_0x3e5143(0x162)](getSystemMetaData),_0x2fe016;};exports[a17_0x95eb67(0x120)]=async function(_0x243287){const _0x517319=a17_0x95eb67,_0x629583={'DoYYl':function(_0x4c3453){return _0x4c3453();},'HNKDo':_0x517319(0x170),'LRkGW':function(_0x5c7a65,_0x4c4fd5,_0x3edbe9,_0x27922e,_0x4561b6,_0x46c70d,_0x3ffb2c,_0x2e9ae2){return _0x5c7a65(_0x4c4fd5,_0x3edbe9,_0x27922e,_0x4561b6,_0x46c70d,_0x3ffb2c,_0x2e9ae2);},'qpfAC':_0x517319(0x116),'OWkOv':'credential-not-found','NYfyQ':'error','ypTHT':function(_0x3b6674,_0x254002,_0x3649e0,_0x2e6eab,_0x210367,_0x370b00,_0x28d0a0){return _0x3b6674(_0x254002,_0x3649e0,_0x2e6eab,_0x210367,_0x370b00,_0x28d0a0);},'TQrtS':function(_0x16ed90){return _0x16ed90();},'QwFJn':_0x517319(0xdb),'yfwVP':_0x517319(0x12c),'cNcRM':function(_0x17962a,_0x4741c0,_0x21ff43){return _0x17962a(_0x4741c0,_0x21ff43);},'WcMSU':'dummy-grid','HaACH':_0x517319(0x11e),'aqgnZ':_0x517319(0x14d),'ZuZaY':function(_0x3ac073,_0x557286,_0x4b1604,_0x2349de,_0xe5d4e6,_0x2a5687,_0xc2504d,_0x2f1ec8){return _0x3ac073(_0x557286,_0x4b1604,_0x2349de,_0xe5d4e6,_0x2a5687,_0xc2504d,_0x2f1ec8);},'Dewul':function(_0x4bb4b8,_0x26c722,_0x42da45){return _0x4bb4b8(_0x26c722,_0x42da45);},'TidDR':_0x517319(0xde),'KxwFI':_0x517319(0x12e),'CeFvB':function(_0x4bb293,_0x5ec10c){return _0x4bb293(_0x5ec10c);},'eMESS':_0x517319(0x99),'mZZcG':_0x517319(0xf6),'GXDrK':_0x517319(0xb9),'IhcFs':_0x517319(0x13c),'GlsNa':_0x517319(0x167),'xAEep':_0x517319(0x146),'QtwcI':function(_0x3ffcf9,_0x1370ee,_0x28d4a9){return _0x3ffcf9(_0x1370ee,_0x28d4a9);},'YBshc':function(_0x5f404e,_0x200752){return _0x5f404e+_0x200752;},'EnPFE':_0x517319(0x157),'sKQuk':function(_0x3b14c0,_0x3e9697,_0x1b761f,_0x15e9e0,_0x4e23d3,_0x57cbf2,_0xb00d1a){return _0x3b14c0(_0x3e9697,_0x1b761f,_0x15e9e0,_0x4e23d3,_0x57cbf2,_0xb00d1a);},'ULqnn':_0x517319(0xe0)};let _0x2fe3b9,_0x1ca70f;try{global_registry[_0x517319(0x133)]=_0x629583[_0x517319(0x164)](uuidv4);!fs['existsSync'](_0x629583[_0x517319(0x164)](getCredentialsPath))&&(_0x1ca70f=_0x629583[_0x517319(0xcb)],logger[_0x517319(0x15d)](_0x1ca70f),await _0x629583['LRkGW'](reportToGalactusAndSendToEDS,_0x243287,_0x2fe3b9,_0x1ca70f,messageTypes['ERROR'],_0x629583[_0x517319(0x105)],_0x629583[_0x517319(0x129)],_0x629583[_0x517319(0x161)]),process[_0x517319(0x145)](0x1));_0x629583['ypTHT'](sendInstrumentationEvent,_0x243287,_0x629583[_0x517319(0x105)],messageTypes[_0x517319(0x16e)],null,null,_0x243287);const _0x5e9596=JSON[_0x517319(0xbd)](fs['readFileSync'](_0x629583[_0x517319(0x123)](getCredentialsPath)));global_registry[_0x517319(0x9d)]=_0x5e9596['Browserstack']['username'],global_registry[_0x517319(0x150)]=_0x5e9596[_0x517319(0xd5)][_0x517319(0x152)];const _0x14e50d=WS_ENDPOINT[_0x517319(0xfe)](_0x629583['QwFJn'],_0x5e9596[_0x517319(0xd5)][_0x517319(0x97)])[_0x517319(0xfe)](_0x629583[_0x517319(0xef)],_0x5e9596[_0x517319(0xd5)]['password']),_0xaf634f={};_0xaf634f[_0x517319(0x147)]=ws,_0xaf634f[_0x517319(0xa9)]=0x36ee80,_0x2fe3b9=new ReconnectingWebSocket(_0x14e50d,[],_0xaf634f),global_registry[_0x517319(0x121)]=_0x629583[_0x517319(0x156)](getAuthHeader,global_registry[_0x517319(0x9d)],global_registry[_0x517319(0x150)]),await _0x629583[_0x517319(0x156)](inputValidation,_0x243287,_0x2fe3b9),logger['info'](_0x517319(0x12a)+global_registry[_0x517319(0xcd)]+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x2c10d1=await _0x629583['ypTHT'](getCloudProviderObjectWithOutInit,global_registry[_0x517319(0xcd)],global_registry[_0x517319(0xbc)],_0x629583[_0x517319(0x104)],_0x2fe3b9,webSocketUtils,_0x243287);const _0x1e1879=await _0x2c10d1[_0x517319(0x14a)]();_0x629583[_0x517319(0x156)](printResponse,_0x629583['HaACH'],_0x1e1879),_0x2c10d1=await _0x2c10d1[_0x517319(0x9b)]();let _0x3564af=![];try{_0x3564af=await _0x2c10d1[_0x517319(0x108)]();}catch(_0x3ca51a){const _0x4271a8=_0x629583['aqgnZ']['split']('|');let _0x42f599=0x0;while(!![]){switch(_0x4271a8[_0x42f599++]){case'0':_0x3564af=null;continue;case'1':logger['error'](_0x1ca70f);continue;case'2':await _0x629583[_0x517319(0x163)](reportToGalactusAndSendToEDS,_0x243287,_0x2fe3b9,_0x1ca70f,messageTypes[_0x517319(0xbf)],_0x629583[_0x517319(0x105)],_0x517319(0xfb)+global_registry[_0x517319(0xcd)],_0x629583['NYfyQ']);continue;case'3':_0x1ca70f=_0x517319(0xac)+global_registry[_0x517319(0xbc)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x517319(0x15f)]+_0x517319(0xee)+_0x3ca51a;continue;case'4':_0x1ca70f+='\x0a'+JSON['stringify'](_0x3ca51a[_0x517319(0x14e)]);continue;}break;}}_0x3564af&&logger[_0x517319(0xb2)](_0x517319(0xdd)+global_registry[_0x517319(0xbc)]+_0x517319(0x175));const _0x26680f=await _0x2c10d1[_0x517319(0x11c)]();_0x629583[_0x517319(0x113)](printResponse,_0x629583[_0x517319(0x149)],_0x26680f);const _0x1c368a=await _0x629583[_0x517319(0x123)](curlRequest);_0x629583[_0x517319(0x113)](printResponse,_0x629583['KxwFI'],_0x1c368a);const _0x13428c=await _0x629583[_0x517319(0xa1)](isTlsSupported,_0x629583[_0x517319(0x9e)]);_0x629583[_0x517319(0x156)](printResponse,_0x629583['mZZcG'],_0x13428c);const _0x42bef8={};_0x42bef8['header']=_0x629583[_0x517319(0x132)],_0x42bef8[_0x517319(0x171)]=_0x1e1879;const _0x5232ad={};_0x5232ad[_0x517319(0xc3)]=_0x629583[_0x517319(0x154)],_0x5232ad[_0x517319(0x171)]=_0x26680f;const _0x54e274={};_0x54e274[_0x517319(0xc3)]=_0x629583[_0x517319(0x11a)],_0x54e274[_0x517319(0x171)]=_0x1c368a;const _0x164840={};_0x164840[_0x517319(0xc3)]=_0x629583[_0x517319(0x118)],_0x164840['response']=_0x13428c;const _0xf59829=[_0x42bef8,_0x5232ad,_0x54e274,_0x164840],_0x2b723f=await _0x629583['QtwcI'](generateReport,_0xf59829,_0x3564af),_0x34f0a7=new Date(),_0x5163bf=_0x34f0a7['getUTCFullYear']()+'_'+_0x629583['YBshc'](_0x34f0a7[_0x517319(0x15a)](),0x1)+'_'+_0x34f0a7[_0x517319(0xe6)]()+'_'+_0x34f0a7[_0x517319(0xc0)]()+'_'+_0x34f0a7[_0x517319(0x12f)](),_0x28b728=_0x517319(0x126)+_0x5163bf+'.txt';fs[_0x517319(0xaf)](_0x28b728,_0x2b723f,_0x629583['EnPFE']),logger[_0x517319(0xb2)](_0x517319(0x16a)+_0x28b728),process[_0x517319(0x145)](0x0);}catch(_0x1c4f5c){let _0x3abc56=_0x517319(0x16d)+_0x1c4f5c+'\x20';logger[_0x517319(0x15d)](_0x3abc56),_0x3abc56+='\x0a'+JSON['stringify'](_0x1c4f5c[_0x517319(0x14e)]),logger[_0x517319(0x10e)](_0x517319(0xe5)+_0x1c4f5c['stack']);if(_0x2fe3b9){const _0xa1e1bd={};_0xa1e1bd[_0x517319(0x144)]=WS_EVENTS[_0x517319(0x172)],_0xa1e1bd[_0x517319(0xcf)]=_0x3abc56,webSocketUtils['sendEventToBackend'](_0x2fe3b9,_0xa1e1bd,_0x629583['NYfyQ'],!![]);}await webSocketUtils[_0x517319(0x151)](0x7d0);const _0x4f8e7a={};_0x4f8e7a[_0x517319(0x15d)]=_0x3abc56,await _0x629583[_0x517319(0x178)](sendInstrumentationEvent,_0x243287,_0x629583[_0x517319(0x105)],messageTypes[_0x517319(0xbf)],_0x629583[_0x517319(0xf8)],_0x4f8e7a,_0x243287),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a18_0x320e(_0x52b951,_0x2d3906){const _0x5d0612=a18_0x5d06();return a18_0x320e=function(_0x320ecf,_0x565706){_0x320ecf=_0x320ecf-0x8b;let _0x4ca21a=_0x5d0612[_0x320ecf];return _0x4ca21a;},a18_0x320e(_0x52b951,_0x2d3906);}const a18_0x396fbb=a18_0x320e;(function(_0x42f8de,_0x493cff){const _0x3dd464=a18_0x320e,_0x30a494=_0x42f8de();while(!![]){try{const _0x3be9e3=-parseInt(_0x3dd464(0x95))/0x1*(parseInt(_0x3dd464(0x90))/0x2)+parseInt(_0x3dd464(0x98))/0x3*(parseInt(_0x3dd464(0x92))/0x4)+-parseInt(_0x3dd464(0x9f))/0x5*(parseInt(_0x3dd464(0x8e))/0x6)+-parseInt(_0x3dd464(0x9c))/0x7+-parseInt(_0x3dd464(0x9b))/0x8+-parseInt(_0x3dd464(0x9d))/0x9+parseInt(_0x3dd464(0xa0))/0xa*(parseInt(_0x3dd464(0x91))/0xb);if(_0x3be9e3===_0x493cff)break;else _0x30a494['push'](_0x30a494['shift']());}catch(_0x56b55b){_0x30a494['push'](_0x30a494['shift']());}}}(a18_0x5d06,0xaab53));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x396fbb(0xa1));function a18_0x5d06(){const _0x7f4063=['22MLTCWh','20316wmlFBn','recommendCommands','commandDir','22459BKJPFd','epilogue','demandCommand','651NAKozo','start','usage','2943104sPNjgP','1599857xKATdc','4479741RwmSQF','help','75OGVsTJ','7101530VSaxIm','../config/constants','xkwQK','builder','ezPQC','strict','264666zvyFMq','desc','6bgZLcE'];a18_0x5d06=function(){return _0x7f4063;};return a18_0x5d06();}exports['command']=a18_0x396fbb(0x99),exports[a18_0x396fbb(0x8f)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x396fbb(0x8b)]=function(_0x117a73){const _0x19525d=a18_0x396fbb,_0x1a9097={};_0x1a9097[_0x19525d(0xa2)]='start_commands',_0x1a9097['ezPQC']='help';const _0x20c6f9=_0x1a9097;return _0x117a73[_0x19525d(0x9a)](HELP_HEADER_MESSAGE[_0x19525d(0x99)])[_0x19525d(0x96)](HELP_FOOTER_MESSAGE)[_0x19525d(0x94)](_0x20c6f9[_0x19525d(0xa2)])[_0x19525d(0x97)]()[_0x19525d(0x93)]()[_0x19525d(0x8d)]()[_0x19525d(0x9e)](_0x20c6f9[_0x19525d(0x8c)]);},exports['handler']=function(_0x13ec24){};
1
+ const a18_0x33fe8c=a18_0x30fe;(function(_0x123815,_0xb5a47a){const _0x5a58a9=a18_0x30fe,_0x156790=_0x123815();while(!![]){try{const _0x12cd50=-parseInt(_0x5a58a9(0x1a2))/0x1+-parseInt(_0x5a58a9(0x19d))/0x2*(-parseInt(_0x5a58a9(0x19b))/0x3)+-parseInt(_0x5a58a9(0x195))/0x4+-parseInt(_0x5a58a9(0x197))/0x5+parseInt(_0x5a58a9(0x19e))/0x6+parseInt(_0x5a58a9(0x19f))/0x7+parseInt(_0x5a58a9(0x198))/0x8;if(_0x12cd50===_0xb5a47a)break;else _0x156790['push'](_0x156790['shift']());}catch(_0x51fdc9){_0x156790['push'](_0x156790['shift']());}}}(a18_0x5a36,0x8fd12));function a18_0x5a36(){const _0x37a080=['KqlaD','builder','42fiHcHW','demandCommand','56828jSkUwr','2372694rkcKGA','6353557RVROUX','recommendCommands','usage','83882YsJSab','SWHuD','epilogue','command','help','commandDir','4303232nPRvRk','start','3153965fmlXbn','5429288HyXPEi'];a18_0x5a36=function(){return _0x37a080;};return a18_0x5a36();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a18_0x30fe(_0x43c713,_0x1ce03e){const _0x5a360a=a18_0x5a36();return a18_0x30fe=function(_0x30fe77,_0x296407){_0x30fe77=_0x30fe77-0x194;let _0x2f6bec=_0x5a360a[_0x30fe77];return _0x2f6bec;},a18_0x30fe(_0x43c713,_0x1ce03e);}exports[a18_0x33fe8c(0x1a5)]=a18_0x33fe8c(0x196),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x33fe8c(0x19a)]=function(_0x4bb038){const _0x2280b0=a18_0x33fe8c,_0x46389a={};_0x46389a[_0x2280b0(0x1a3)]='start_commands',_0x46389a[_0x2280b0(0x199)]=_0x2280b0(0x1a6);const _0x2c4fab=_0x46389a;return _0x4bb038[_0x2280b0(0x1a1)](HELP_HEADER_MESSAGE[_0x2280b0(0x196)])[_0x2280b0(0x1a4)](HELP_FOOTER_MESSAGE)[_0x2280b0(0x194)](_0x2c4fab[_0x2280b0(0x1a3)])[_0x2280b0(0x19c)]()[_0x2280b0(0x1a0)]()['strict']()[_0x2280b0(0x1a6)](_0x2c4fab[_0x2280b0(0x199)]);},exports['handler']=function(_0x2cf56d){};
@@ -1 +1 @@
1
- const a19_0x33d8d3=a19_0x4c4d;(function(_0x33ad3b,_0x1671d6){const _0xada787=a19_0x4c4d,_0x48a292=_0x33ad3b();while(!![]){try{const _0xc65ebe=parseInt(_0xada787(0xae))/0x1*(parseInt(_0xada787(0x80))/0x2)+-parseInt(_0xada787(0xbf))/0x3*(-parseInt(_0xada787(0xd1))/0x4)+-parseInt(_0xada787(0xd7))/0x5+parseInt(_0xada787(0x9d))/0x6+-parseInt(_0xada787(0xd6))/0x7+parseInt(_0xada787(0xd9))/0x8*(parseInt(_0xada787(0x7d))/0x9)+parseInt(_0xada787(0xb5))/0xa*(-parseInt(_0xada787(0x8e))/0xb);if(_0xc65ebe===_0x1671d6)break;else _0x48a292['push'](_0x48a292['shift']());}catch(_0x3db1e6){_0x48a292['push'](_0x48a292['shift']());}}}(a19_0x22fe,0xa141e));function a19_0x4c4d(_0x17b5fb,_0x153768){const _0x22fe13=a19_0x22fe();return a19_0x4c4d=function(_0x4c4da4,_0x2eaa22){_0x4c4da4=_0x4c4da4-0x77;let _0x336420=_0x22fe13[_0x4c4da4];return _0x336420;},a19_0x4c4d(_0x17b5fb,_0x153768);}function a19_0x22fe(){const _0x109768=['type','statusCode','NsUoO','usyPl','debug','stringify','ERROR','XTZZE','server-error','password','4191036lfLheY','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Skip\x20insecure\x20cert\x20verification.','<PasswordPlaceholder>','command','help','../../cloudproviders/utils','user','IPtph','argv','readFileSync','uIJrm','kebfV','RXFQo','../../utils/gridComponents','description','default','758753ONRjGK','clusterName','skip-tls-cert-verify','parse','name','Start\x20an\x20existing\x20Automation\x20grid.','skipTlsCertVerify','90uSbbSh','replace','qkyVy','clusterRegion','pdrmR','bzrCr','plceE','INFO','handler','info','1795722KuxTaS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','epilogue','../../config/constants','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gridId','YuRCs','wCYLI','gjAWc','XlKif','rxMka','YkjeQ','addListeners','builder','HTxfV','fhAop','existsSync','start-grid-called','8gKtsyO','wOvUB','Starting\x20grid\x20','body','../../utils/webSocketUtils','1809479EENPdT','731345nevTGO','CwVnY','688aqscIk','Browserstack','region','QIJIG','../../config/logger','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','string','104472mgHpIz','desc','error','2aofrJD','../../utils/instrumentationUtils','start','options','Adding\x20Websocket\x20listeners','DnOpX','WebSocket','bstackAccesskey','cloudProvider','uQgXx','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','../../utils/createk8sClient','grid-id','<UsernamePlaceholder>','3162401Irrkjv','exit','username','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','init-not-called'];a19_0x22fe=function(){return _0x109768;};return a19_0x22fe();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x33d8d3(0xc2)),{logger}=require(a19_0x33d8d3(0x7a)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x33d8d3(0xab)),{sendInstrumentationEvent}=require(a19_0x33d8d3(0x81)),webSocketUtils=require(a19_0x33d8d3(0xd5)),{createK8sClient}=require(a19_0x33d8d3(0x8b)),{getCloudProviderObject}=require(a19_0x33d8d3(0xa3));exports[a19_0x33d8d3(0xa1)]='grid',exports[a19_0x33d8d3(0x7e)]=a19_0x33d8d3(0xb3),exports[a19_0x33d8d3(0xcc)]=function(_0x2b57d6){const _0x3af002=a19_0x33d8d3,_0x7052c1={};_0x7052c1['rxMka']=_0x3af002(0x91),_0x7052c1[_0x3af002(0xd8)]=_0x3af002(0x7c),_0x7052c1[_0x3af002(0xc5)]=_0x3af002(0x9f),_0x7052c1[_0x3af002(0x89)]='boolean',_0x7052c1[_0x3af002(0xaa)]=_0x3af002(0xa2);const _0x24dd61=_0x7052c1,_0x4fe11e={};_0x4fe11e[_0x3af002(0xac)]=_0x24dd61[_0x3af002(0xc9)],_0x4fe11e[_0x3af002(0x93)]=_0x24dd61[_0x3af002(0xd8)];const _0x162bae={};_0x162bae[_0x3af002(0xac)]=_0x24dd61[_0x3af002(0xc5)],_0x162bae[_0x3af002(0x93)]=_0x24dd61['uQgXx'],_0x162bae[_0x3af002(0xad)]=![];const _0x130a03={};return _0x130a03[_0x3af002(0x8c)]=_0x4fe11e,_0x130a03[_0x3af002(0xb0)]=_0x162bae,_0x2b57d6['usage'](HELP_HEADER_MESSAGE[_0x3af002(0x82)])[_0x3af002(0xc1)](HELP_FOOTER_MESSAGE)[_0x3af002(0x83)](_0x130a03)[_0x3af002(0xa2)](_0x24dd61['RXFQo'])[_0x3af002(0xa6)];},exports[a19_0x33d8d3(0xbd)]=async function(_0x28fc15){const _0x33cf0a=a19_0x33d8d3,_0x45987e={'bzrCr':_0x33cf0a(0x9e),'NsUoO':function(_0x25b1e5){return _0x25b1e5();},'IPtph':_0x33cf0a(0xc3),'usyPl':function(_0x148308,_0x1410ca,_0x556b07,_0x37b0b0,_0x3b0fb9,_0x1def32,_0x31bf98){return _0x148308(_0x1410ca,_0x556b07,_0x37b0b0,_0x3b0fb9,_0x1def32,_0x31bf98);},'DnOpX':_0x33cf0a(0xd0),'XTZZE':_0x33cf0a(0x92),'fhAop':function(_0x185339){return _0x185339();},'HTxfV':_0x33cf0a(0x8d),'pdrmR':_0x33cf0a(0xa0),'tFcwl':_0x33cf0a(0x84),'kebfV':function(_0x1ff4f9,_0x57e4bb,_0x11f3fc,_0x1b132c){return _0x1ff4f9(_0x57e4bb,_0x11f3fc,_0x1b132c);},'wCYLI':function(_0x55c1c5,_0x287b80,_0x3242cf,_0x219c4b,_0x765679,_0x30ddb9,_0x26efd8){return _0x55c1c5(_0x287b80,_0x3242cf,_0x219c4b,_0x765679,_0x30ddb9,_0x26efd8);},'XlKif':function(_0x135447,_0x14cce0,_0x3d6027){return _0x135447(_0x14cce0,_0x3d6027);},'taWCx':'Grid\x20started','QIJIG':function(_0x3f8334,_0x1f79de){return _0x3f8334===_0x1f79de;},'plceE':_0x33cf0a(0xc0),'YkjeQ':function(_0x124f2b,_0x2c1574,_0x5238fe,_0x1b39ec,_0x57471b,_0x287e0e,_0x41c4f3){return _0x124f2b(_0x2c1574,_0x5238fe,_0x1b39ec,_0x57471b,_0x287e0e,_0x41c4f3);},'qkyVy':'unauthorised','uIJrm':function(_0x4c8b71,_0x2d5f1e,_0x3fc47f,_0x4023be,_0x5d4ef8,_0x1346cd,_0x15e3e3){return _0x4c8b71(_0x2d5f1e,_0x3fc47f,_0x4023be,_0x5d4ef8,_0x1346cd,_0x15e3e3);},'wOvUB':'invalid-grid-id','gjAWc':_0x33cf0a(0x9b)};let _0x45b56f;try{!_0x28fc15[_0x33cf0a(0xc4)]&&(logger[_0x33cf0a(0x7f)](_0x45987e[_0x33cf0a(0xba)]),process[_0x33cf0a(0x8f)](0x1));!fs[_0x33cf0a(0xcf)](_0x45987e[_0x33cf0a(0x95)](getCredentialsPath))&&(logger[_0x33cf0a(0x7f)](_0x45987e[_0x33cf0a(0xa5)]),await _0x45987e[_0x33cf0a(0x96)](sendInstrumentationEvent,_0x28fc15,_0x45987e[_0x33cf0a(0x85)],messageTypes[_0x33cf0a(0x99)],_0x45987e[_0x33cf0a(0x9a)],null,_0x28fc15),process[_0x33cf0a(0x8f)](0x1));logger[_0x33cf0a(0xbe)](_0x33cf0a(0xd3)+_0x28fc15[_0x33cf0a(0xc4)]),await _0x45987e[_0x33cf0a(0x96)](sendInstrumentationEvent,_0x28fc15,_0x45987e[_0x33cf0a(0x85)],messageTypes[_0x33cf0a(0xbc)],null,null,_0x28fc15);const _0x3713bd=JSON[_0x33cf0a(0xb1)](fs[_0x33cf0a(0xa7)](_0x45987e[_0x33cf0a(0xce)](getCredentialsPath)));global_registry['bstackUsername']=_0x3713bd[_0x33cf0a(0x77)][_0x33cf0a(0x90)],global_registry[_0x33cf0a(0x87)]=_0x3713bd[_0x33cf0a(0x77)]['password'];const _0x22449d=WS_ENDPOINT[_0x33cf0a(0xb6)](_0x45987e[_0x33cf0a(0xcd)],_0x3713bd['Browserstack'][_0x33cf0a(0x90)])[_0x33cf0a(0xb6)](_0x45987e[_0x33cf0a(0xb9)],_0x3713bd[_0x33cf0a(0x77)]['password']),_0x2c8654={};_0x2c8654[_0x33cf0a(0x86)]=ws,_0x2c8654['connectionTimeout']=0x36ee80,_0x45b56f=new ReconnectingWebSocket(_0x22449d,[],_0x2c8654),logger[_0x33cf0a(0x97)](_0x45987e['tFcwl']),webSocketUtils[_0x33cf0a(0xcb)](_0x45b56f,_0x28fc15[_0x33cf0a(0xa4)],_0x28fc15[_0x33cf0a(0x9c)]);const [_0x3510ff,_0x8cbd05]=await _0x45987e[_0x33cf0a(0xa9)](getGridDetails,_0x3713bd['Browserstack'][_0x33cf0a(0x90)],_0x3713bd['Browserstack']['password'],_0x28fc15[_0x33cf0a(0xc4)]);if(_0x8cbd05){const _0x3f6177=_0x8cbd05['info'];global_registry['cloudProvider']=_0x3f6177[_0x33cf0a(0x88)],global_registry[_0x33cf0a(0xb8)]=_0x3f6177[_0x33cf0a(0x78)],global_registry[_0x33cf0a(0xaf)]=_0x3f6177[_0x33cf0a(0xaf)];const _0x240689=await _0x45987e[_0x33cf0a(0xc6)](getCloudProviderObject,_0x3f6177[_0x33cf0a(0x88)],_0x3f6177[_0x33cf0a(0xaf)],_0x3f6177[_0x33cf0a(0xb2)],_0x45b56f,webSocketUtils,_0x28fc15),[_0x2a6b1d,_0x508a0c,_0x21e4e3,_0x481bd3,_0x535859,_0x2cf6e8]=await _0x45987e[_0x33cf0a(0xc8)](createK8sClient,_0x240689,_0x28fc15[_0x33cf0a(0xb4)]);await _0x45987e[_0x33cf0a(0xc8)](scaleUpHubDeployment,_0x508a0c,_0x3f6177[_0x33cf0a(0xb2)]),logger[_0x33cf0a(0xbe)](_0x45987e['taWCx']),process[_0x33cf0a(0x8f)](0x0);}_0x45987e[_0x33cf0a(0x79)](_0x3510ff['statusCode'],0x191)&&(logger[_0x33cf0a(0x7f)](_0x45987e[_0x33cf0a(0xbb)]),await _0x45987e[_0x33cf0a(0xca)](sendInstrumentationEvent,_0x28fc15,_0x45987e[_0x33cf0a(0x85)],messageTypes[_0x33cf0a(0x99)],_0x45987e[_0x33cf0a(0xb7)],null,_0x28fc15),process[_0x33cf0a(0x8f)](0x1)),_0x45987e[_0x33cf0a(0x79)](_0x3510ff[_0x33cf0a(0x94)],0x190)&&(logger[_0x33cf0a(0x7f)](JSON[_0x33cf0a(0xb1)](_0x3510ff[_0x33cf0a(0xd4)])['message']),await _0x45987e[_0x33cf0a(0xa8)](sendInstrumentationEvent,_0x28fc15,_0x45987e['DnOpX'],messageTypes[_0x33cf0a(0x99)],_0x45987e[_0x33cf0a(0xd2)],null,_0x28fc15),process['exit'](0x1)),logger[_0x33cf0a(0x7f)](_0x33cf0a(0x7b)+JSON[_0x33cf0a(0x98)](_0x3510ff)),await _0x45987e[_0x33cf0a(0xc6)](sendInstrumentationEvent,_0x28fc15,_0x45987e['DnOpX'],messageTypes['ERROR'],_0x45987e[_0x33cf0a(0xc7)],_0x3510ff,_0x28fc15),process[_0x33cf0a(0x8f)](0x1);}catch(_0xcf1e2){const _0x26a1b1=_0x33cf0a(0x8a)+_0xcf1e2+'\x20\x0a'+JSON[_0x33cf0a(0x98)](_0xcf1e2['stack'])+'\x20';logger['error'](_0x26a1b1),process[_0x33cf0a(0x8f)](0x1);}};
1
+ const a19_0x2170e2=a19_0xce40;function a19_0xce40(_0x56a1e4,_0x4c8325){const _0x3d0781=a19_0x3d07();return a19_0xce40=function(_0xce406,_0xe70eb5){_0xce406=_0xce406-0x1bb;let _0x326293=_0x3d0781[_0xce406];return _0x326293;},a19_0xce40(_0x56a1e4,_0x4c8325);}function a19_0x3d07(){const _0x39ea6f=['ERROR','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','rekdY','Browserstack','password','existsSync','reconnecting-websocket','../../utils/instrumentationUtils','343612iLTSHp','WebSocket','clusterRegion','exit','PvEws','command','Adding\x20Websocket\x20listeners','jBdls','QIewv','Skip\x20insecure\x20cert\x20verification.','cloudProvider','handler','stack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','438714giKZur','readFileSync','Starting\x20grid\x20','21uKKrpn','151336FIYtVI','type','dbCWd','default','server-error','aWYxU','info','parse','../../utils/webSocketUtils','../../utils/utilityMethods','usYms','qRjZH','error','grid','<UsernamePlaceholder>','argv','gridId','../../config/constants','oHoPV','options','unauthorised','replace','usage','message','statusCode','user','7136928hBGjPr','grid-id','QyxfY','username','LvMbD','init-not-called','bstackUsername','addListeners','zPHDm','ZEjhc','description','lEuDi','name','start-grid-called','bstackAccesskey','clusterName','207295lKOpxq','epilogue','1563060lFyzmt','MWgeE','INFO','LeUUs','help','tupRR','bOGwv','374232FCTqjW','10EvTtOb','../../config/logger','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fEqmz','KjRMK','skip-tls-cert-verify','<PasswordPlaceholder>','start'];a19_0x3d07=function(){return _0x39ea6f;};return a19_0x3d07();}(function(_0x15a59f,_0x24e60d){const _0x46266c=a19_0xce40,_0x4e3e0f=_0x15a59f();while(!![]){try{const _0x52e541=-parseInt(_0x46266c(0x20f))/0x1+parseInt(_0x46266c(0x1c2))/0x2+-parseInt(_0x46266c(0x1e1))/0x3+-parseInt(_0x46266c(0x1d3))/0x4*(parseInt(_0x46266c(0x1c3))/0x5)+-parseInt(_0x46266c(0x1bb))/0x6+parseInt(_0x46266c(0x1e4))/0x7*(-parseInt(_0x46266c(0x1e5))/0x8)+parseInt(_0x46266c(0x1ff))/0x9;if(_0x52e541===_0x24e60d)break;else _0x4e3e0f['push'](_0x4e3e0f['shift']());}catch(_0x61012d){_0x4e3e0f['push'](_0x4e3e0f['shift']());}}}(a19_0x3d07,0x21924));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2170e2(0x1d1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2170e2(0x1f6)),{logger}=require(a19_0x2170e2(0x1c4)),{getCredentialsPath,getGridDetails}=require(a19_0x2170e2(0x1ee)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x2170e2(0x1d2)),webSocketUtils=require(a19_0x2170e2(0x1ed)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x2170e2(0x1d8)]=a19_0x2170e2(0x1f2),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x5a36e5){const _0x192e80=a19_0x2170e2,_0x195787={};_0x195787['LeUUs']=_0x192e80(0x1cc),_0x195787[_0x192e80(0x1ea)]='string',_0x195787[_0x192e80(0x20a)]=_0x192e80(0x1dc),_0x195787['oHoPV']='boolean',_0x195787[_0x192e80(0x1c1)]=_0x192e80(0x1bf);const _0x4490c5=_0x195787,_0x3764a6={};_0x3764a6[_0x192e80(0x209)]=_0x4490c5[_0x192e80(0x1be)],_0x3764a6[_0x192e80(0x1e6)]=_0x4490c5[_0x192e80(0x1ea)];const _0x3b3ac5={};_0x3b3ac5['description']=_0x4490c5[_0x192e80(0x20a)],_0x3b3ac5['type']=_0x4490c5[_0x192e80(0x1f7)],_0x3b3ac5[_0x192e80(0x1e8)]=![];const _0x53a8b7={};return _0x53a8b7[_0x192e80(0x200)]=_0x3764a6,_0x53a8b7[_0x192e80(0x1c8)]=_0x3b3ac5,_0x5a36e5[_0x192e80(0x1fb)](HELP_HEADER_MESSAGE[_0x192e80(0x1ca)])[_0x192e80(0x210)](HELP_FOOTER_MESSAGE)[_0x192e80(0x1f8)](_0x53a8b7)[_0x192e80(0x1bf)](_0x4490c5[_0x192e80(0x1c1)])[_0x192e80(0x1f4)];},exports[a19_0x2170e2(0x1de)]=async function(_0x4323b3){const _0x5bcb79=a19_0x2170e2,_0x3ffb84={'qRjZH':_0x5bcb79(0x1e0),'MWgeE':function(_0xc1efdd){return _0xc1efdd();},'QyxfY':_0x5bcb79(0x1c5),'fEqmz':function(_0x598bdf,_0x369484,_0x62975b,_0x557998,_0x47f566,_0x47a4af,_0x4dcd80){return _0x598bdf(_0x369484,_0x62975b,_0x557998,_0x47f566,_0x47a4af,_0x4dcd80);},'zPHDm':_0x5bcb79(0x20c),'KjRMK':_0x5bcb79(0x204),'jBdls':_0x5bcb79(0x1f3),'ZEjhc':_0x5bcb79(0x1c9),'usYms':_0x5bcb79(0x1d9),'rekdY':function(_0x4b6627,_0x327256,_0x191ae4,_0x95c4e9){return _0x4b6627(_0x327256,_0x191ae4,_0x95c4e9);},'LvMbD':function(_0x26411c,_0x50e45e,_0x44bedc){return _0x26411c(_0x50e45e,_0x44bedc);},'bgaDD':'Grid\x20started','QIewv':function(_0x4345b9,_0x38b98b){return _0x4345b9===_0x38b98b;},'dbCWd':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','tupRR':_0x5bcb79(0x1f9),'GWAHc':'invalid-grid-id','PvEws':_0x5bcb79(0x1e9)};let _0x6544e8;try{!_0x4323b3['gridId']&&(logger['error'](_0x3ffb84[_0x5bcb79(0x1f0)]),process[_0x5bcb79(0x1d6)](0x1));!fs[_0x5bcb79(0x1d0)](_0x3ffb84[_0x5bcb79(0x1bc)](getCredentialsPath))&&(logger[_0x5bcb79(0x1f1)](_0x3ffb84[_0x5bcb79(0x201)]),await _0x3ffb84[_0x5bcb79(0x1c6)](sendInstrumentationEvent,_0x4323b3,_0x3ffb84['zPHDm'],messageTypes[_0x5bcb79(0x1cb)],_0x3ffb84[_0x5bcb79(0x1c7)],null,_0x4323b3),process[_0x5bcb79(0x1d6)](0x1));logger[_0x5bcb79(0x1eb)](_0x5bcb79(0x1e3)+_0x4323b3[_0x5bcb79(0x1f5)]),await _0x3ffb84[_0x5bcb79(0x1c6)](sendInstrumentationEvent,_0x4323b3,_0x3ffb84['zPHDm'],messageTypes[_0x5bcb79(0x1bd)],null,null,_0x4323b3);const _0x44e45d=JSON[_0x5bcb79(0x1ec)](fs[_0x5bcb79(0x1e2)](_0x3ffb84[_0x5bcb79(0x1bc)](getCredentialsPath)));global_registry[_0x5bcb79(0x205)]=_0x44e45d[_0x5bcb79(0x1ce)][_0x5bcb79(0x202)],global_registry[_0x5bcb79(0x20d)]=_0x44e45d[_0x5bcb79(0x1ce)]['password'];const _0x2ef70b=WS_ENDPOINT[_0x5bcb79(0x1fa)](_0x3ffb84[_0x5bcb79(0x1da)],_0x44e45d[_0x5bcb79(0x1ce)]['username'])[_0x5bcb79(0x1fa)](_0x3ffb84[_0x5bcb79(0x208)],_0x44e45d['Browserstack']['password']),_0x218f79={};_0x218f79[_0x5bcb79(0x1d4)]=ws,_0x218f79['connectionTimeout']=0x36ee80,_0x6544e8=new ReconnectingWebSocket(_0x2ef70b,[],_0x218f79),logger['debug'](_0x3ffb84[_0x5bcb79(0x1ef)]),webSocketUtils[_0x5bcb79(0x206)](_0x6544e8,_0x4323b3[_0x5bcb79(0x1fe)],_0x4323b3[_0x5bcb79(0x1cf)]);const [_0x1db1ea,_0x305578]=await _0x3ffb84[_0x5bcb79(0x1cd)](getGridDetails,_0x44e45d[_0x5bcb79(0x1ce)][_0x5bcb79(0x202)],_0x44e45d[_0x5bcb79(0x1ce)][_0x5bcb79(0x1cf)],_0x4323b3[_0x5bcb79(0x1f5)]);if(_0x305578){const _0x2e16cc=_0x305578['info'];global_registry[_0x5bcb79(0x1dd)]=_0x2e16cc[_0x5bcb79(0x1dd)],global_registry[_0x5bcb79(0x1d5)]=_0x2e16cc['region'],global_registry[_0x5bcb79(0x20e)]=_0x2e16cc['clusterName'];const _0xdc057e=await _0x3ffb84[_0x5bcb79(0x1c6)](getCloudProviderObject,_0x2e16cc[_0x5bcb79(0x1dd)],_0x2e16cc[_0x5bcb79(0x20e)],_0x2e16cc[_0x5bcb79(0x20b)],_0x6544e8,webSocketUtils,_0x4323b3),[_0xb14ddf,_0x5546f0,_0x33e0f1,_0x692aa8,_0x391ed9,_0x5b4795]=await _0x3ffb84[_0x5bcb79(0x203)](createK8sClient,_0xdc057e,_0x4323b3['skipTlsCertVerify']);await _0x3ffb84[_0x5bcb79(0x203)](scaleUpHubDeployment,_0x5546f0,_0x2e16cc['name']),logger['info'](_0x3ffb84['bgaDD']),process[_0x5bcb79(0x1d6)](0x0);}_0x3ffb84['QIewv'](_0x1db1ea[_0x5bcb79(0x1fd)],0x191)&&(logger[_0x5bcb79(0x1f1)](_0x3ffb84[_0x5bcb79(0x1e7)]),await _0x3ffb84[_0x5bcb79(0x1c6)](sendInstrumentationEvent,_0x4323b3,_0x3ffb84['zPHDm'],messageTypes[_0x5bcb79(0x1cb)],_0x3ffb84[_0x5bcb79(0x1c0)],null,_0x4323b3),process['exit'](0x1)),_0x3ffb84[_0x5bcb79(0x1db)](_0x1db1ea[_0x5bcb79(0x1fd)],0x190)&&(logger['error'](JSON['parse'](_0x1db1ea['body'])[_0x5bcb79(0x1fc)]),await _0x3ffb84['fEqmz'](sendInstrumentationEvent,_0x4323b3,_0x3ffb84[_0x5bcb79(0x207)],messageTypes[_0x5bcb79(0x1cb)],_0x3ffb84['GWAHc'],null,_0x4323b3),process[_0x5bcb79(0x1d6)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x1db1ea)),await _0x3ffb84['fEqmz'](sendInstrumentationEvent,_0x4323b3,_0x3ffb84[_0x5bcb79(0x207)],messageTypes['ERROR'],_0x3ffb84[_0x5bcb79(0x1d7)],_0x1db1ea,_0x4323b3),process[_0x5bcb79(0x1d6)](0x1);}catch(_0x2aca95){const _0x2fb4c9='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x2aca95+'\x20\x0a'+JSON['stringify'](_0x2aca95[_0x5bcb79(0x1df)])+'\x20';logger[_0x5bcb79(0x1f1)](_0x2fb4c9),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0x4384dd=a20_0x1e85;(function(_0x3aae57,_0x2d1d56){const _0x309b6d=a20_0x1e85,_0x6045d0=_0x3aae57();while(!![]){try{const _0x4d8ab2=-parseInt(_0x309b6d(0x1bf))/0x1*(parseInt(_0x309b6d(0x1cb))/0x2)+-parseInt(_0x309b6d(0x1ca))/0x3+parseInt(_0x309b6d(0x1d3))/0x4*(-parseInt(_0x309b6d(0x1be))/0x5)+parseInt(_0x309b6d(0x1ce))/0x6*(-parseInt(_0x309b6d(0x1c4))/0x7)+parseInt(_0x309b6d(0x1d5))/0x8*(parseInt(_0x309b6d(0x1c3))/0x9)+-parseInt(_0x309b6d(0x1bd))/0xa*(parseInt(_0x309b6d(0x1c7))/0xb)+parseInt(_0x309b6d(0x1c9))/0xc;if(_0x4d8ab2===_0x2d1d56)break;else _0x6045d0['push'](_0x6045d0['shift']());}catch(_0x5052bc){_0x6045d0['push'](_0x6045d0['shift']());}}}(a20_0x93c3,0xd9f4b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x4384dd(0x1c8));exports[a20_0x4384dd(0x1c6)]=a20_0x4384dd(0x1d1),exports[a20_0x4384dd(0x1cc)]=a20_0x4384dd(0x1c5),exports['builder']=function(_0x1139bf){const _0x3c6024=a20_0x4384dd,_0x3ca1b4={};_0x3ca1b4[_0x3c6024(0x1d6)]='stop_commands',_0x3ca1b4[_0x3c6024(0x1c0)]=_0x3c6024(0x1d0);const _0x1c551f=_0x3ca1b4;return _0x1139bf[_0x3c6024(0x1cd)](HELP_HEADER_MESSAGE[_0x3c6024(0x1d1)])[_0x3c6024(0x1d2)](HELP_FOOTER_MESSAGE)[_0x3c6024(0x1cf)](_0x1c551f['APHiG'])[_0x3c6024(0x1c2)]()['recommendCommands']()[_0x3c6024(0x1c1)]()['help'](_0x1c551f[_0x3c6024(0x1c0)]);},exports[a20_0x4384dd(0x1d4)]=function(_0x1e45a2){};function a20_0x1e85(_0x3d136d,_0xce869e){const _0x93c3e6=a20_0x93c3();return a20_0x1e85=function(_0x1e85cf,_0x243a76){_0x1e85cf=_0x1e85cf-0x1bd;let _0x43cca2=_0x93c3e6[_0x1e85cf];return _0x43cca2;},a20_0x1e85(_0x3d136d,_0xce869e);}function a20_0x93c3(){const _0x5373ee=['7LAJzOD','OAczs','strict','demandCommand','31347uzDtvN','7MYLOBT','Stop\x20a\x20running\x20Automation\x20grid.','command','14874717lLJVtO','../config/constants','66009348awXYIv','2131527dPJKUZ','149060QUkDOY','desc','usage','10537458UvXnmv','commandDir','help','stop','epilogue','2908316dMEQBy','handler','1056WJfmDD','APHiG','10BHmQFu','5dlSTYt'];a20_0x93c3=function(){return _0x5373ee;};return a20_0x93c3();}
1
+ function a20_0xedad(){const _0x1b5d38=['strict','epilogue','40fbKjKW','254375kWMjFa','327482ojKVMh','commandDir','11280QogwrS','desc','2374825vCvxAZ','Stop\x20a\x20running\x20Automation\x20grid.','usage','recommendCommands','15691aLNLQq','demandCommand','973OvHGJl','3rYqoPl','ORPYX','1441542zaMnSl','../config/constants','builder','help','tihgP','1848lbsUfN','18378PdYKjd','stop_commands','2043ElYJIR','stop','4vPpIYU','handler'];a20_0xedad=function(){return _0x1b5d38;};return a20_0xedad();}const a20_0x5e57e3=a20_0x28a8;function a20_0x28a8(_0x12b81b,_0x253073){const _0xedad2b=a20_0xedad();return a20_0x28a8=function(_0x28a8a1,_0x2a294d){_0x28a8a1=_0x28a8a1-0x138;let _0x46faff=_0xedad2b[_0x28a8a1];return _0x46faff;},a20_0x28a8(_0x12b81b,_0x253073);}(function(_0x1bcb04,_0x3f94ac){const _0x5229c4=a20_0x28a8,_0x2d0283=_0x1bcb04();while(!![]){try{const _0x320c1d=parseInt(_0x5229c4(0x13e))/0x1+-parseInt(_0x5229c4(0x14b))/0x2*(-parseInt(_0x5229c4(0x149))/0x3)+-parseInt(_0x5229c4(0x138))/0x4*(-parseInt(_0x5229c4(0x142))/0x5)+parseInt(_0x5229c4(0x151))/0x6*(-parseInt(_0x5229c4(0x148))/0x7)+-parseInt(_0x5229c4(0x140))/0x8*(parseInt(_0x5229c4(0x153))/0x9)+parseInt(_0x5229c4(0x13c))/0xa*(-parseInt(_0x5229c4(0x13d))/0xb)+-parseInt(_0x5229c4(0x150))/0xc*(parseInt(_0x5229c4(0x146))/0xd);if(_0x320c1d===_0x3f94ac)break;else _0x2d0283['push'](_0x2d0283['shift']());}catch(_0x35b772){_0x2d0283['push'](_0x2d0283['shift']());}}}(a20_0xedad,0x79d45));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5e57e3(0x14c));exports['command']='stop',exports[a20_0x5e57e3(0x141)]=a20_0x5e57e3(0x143),exports[a20_0x5e57e3(0x14d)]=function(_0x55b0c7){const _0x22dbdc=a20_0x5e57e3,_0x1b25fd={};_0x1b25fd[_0x22dbdc(0x14f)]=_0x22dbdc(0x152),_0x1b25fd[_0x22dbdc(0x14a)]=_0x22dbdc(0x14e);const _0xd3382=_0x1b25fd;return _0x55b0c7[_0x22dbdc(0x144)](HELP_HEADER_MESSAGE[_0x22dbdc(0x154)])[_0x22dbdc(0x13b)](HELP_FOOTER_MESSAGE)[_0x22dbdc(0x13f)](_0xd3382[_0x22dbdc(0x14f)])[_0x22dbdc(0x147)]()[_0x22dbdc(0x145)]()[_0x22dbdc(0x13a)]()['help'](_0xd3382['ORPYX']);},exports[a20_0x5e57e3(0x139)]=function(_0x59cf7f){};
@@ -1 +1 @@
1
- const a21_0x578ebe=a21_0x5c3c;(function(_0x317886,_0x16598f){const _0x4b6aa4=a21_0x5c3c,_0x1bb00f=_0x317886();while(!![]){try{const _0x169dba=parseInt(_0x4b6aa4(0x14c))/0x1*(parseInt(_0x4b6aa4(0x174))/0x2)+-parseInt(_0x4b6aa4(0x188))/0x3+parseInt(_0x4b6aa4(0x140))/0x4*(parseInt(_0x4b6aa4(0x171))/0x5)+parseInt(_0x4b6aa4(0x145))/0x6+-parseInt(_0x4b6aa4(0x150))/0x7*(parseInt(_0x4b6aa4(0x134))/0x8)+parseInt(_0x4b6aa4(0x14f))/0x9*(-parseInt(_0x4b6aa4(0x175))/0xa)+parseInt(_0x4b6aa4(0x13a))/0xb*(-parseInt(_0x4b6aa4(0x17d))/0xc);if(_0x169dba===_0x16598f)break;else _0x1bb00f['push'](_0x1bb00f['shift']());}catch(_0x543c79){_0x1bb00f['push'](_0x1bb00f['shift']());}}}(a21_0x109d,0xa1219));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x578ebe(0x16f)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x578ebe(0x18f)),{logger}=require(a21_0x578ebe(0x15f)),{getCredentialsPath,getGridDetails}=require(a21_0x578ebe(0x183)),{scaleDownHubDeployment}=require(a21_0x578ebe(0x181)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x578ebe(0x170)),{createK8sClient}=require(a21_0x578ebe(0x142)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x5c3c(_0x2c07fa,_0x13e5bb){const _0x109d0c=a21_0x109d();return a21_0x5c3c=function(_0x5c3c99,_0x809516){_0x5c3c99=_0x5c3c99-0x130;let _0x23de68=_0x109d0c[_0x5c3c99];return _0x23de68;},a21_0x5c3c(_0x2c07fa,_0x13e5bb);}exports[a21_0x578ebe(0x133)]='grid',exports['desc']=a21_0x578ebe(0x169),exports[a21_0x578ebe(0x18a)]=function(_0x1f8b7d){const _0x4c744e=a21_0x578ebe,_0x1ea7a9={};_0x1ea7a9[_0x4c744e(0x151)]=_0x4c744e(0x15e),_0x1ea7a9['uzUUI']=_0x4c744e(0x14d),_0x1ea7a9[_0x4c744e(0x137)]=_0x4c744e(0x154),_0x1ea7a9['WpWcc']='boolean',_0x1ea7a9[_0x4c744e(0x13b)]='help';const _0x47d4e7=_0x1ea7a9,_0x5cdbc1={};_0x5cdbc1[_0x4c744e(0x17a)]=_0x47d4e7['BmyYE'],_0x5cdbc1[_0x4c744e(0x187)]=_0x47d4e7[_0x4c744e(0x13e)];const _0x24dcaf={};_0x24dcaf['description']=_0x47d4e7[_0x4c744e(0x137)],_0x24dcaf[_0x4c744e(0x187)]=_0x47d4e7[_0x4c744e(0x15a)],_0x24dcaf[_0x4c744e(0x143)]=![];const _0x596e16={};return _0x596e16[_0x4c744e(0x172)]=_0x5cdbc1,_0x596e16[_0x4c744e(0x17e)]=_0x24dcaf,_0x1f8b7d[_0x4c744e(0x16c)](HELP_HEADER_MESSAGE[_0x4c744e(0x17b)])[_0x4c744e(0x136)](HELP_FOOTER_MESSAGE)[_0x4c744e(0x167)](_0x596e16)[_0x4c744e(0x14e)](_0x47d4e7['WJbXi'])[_0x4c744e(0x190)];},exports[a21_0x578ebe(0x179)]=async function(_0x5db5d4){const _0x4e61e7=a21_0x578ebe,_0x1fd3da={'iAtOd':_0x4e61e7(0x18e),'nGWYJ':function(_0x551328){return _0x551328();},'QmJic':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qjpnR':function(_0x229c20,_0x48a4de,_0x4799f1,_0x573d3f,_0x12a7d4,_0x15c021,_0x5495fd){return _0x229c20(_0x48a4de,_0x4799f1,_0x573d3f,_0x12a7d4,_0x15c021,_0x5495fd);},'MjdrF':'stop-grid-called','sgJhA':_0x4e61e7(0x163),'mKgvh':function(_0xe4b243,_0x68da65,_0x3003be,_0x22771e,_0x409014,_0x468733,_0x456c55){return _0xe4b243(_0x68da65,_0x3003be,_0x22771e,_0x409014,_0x468733,_0x456c55);},'nXZvo':function(_0x42e1c1){return _0x42e1c1();},'EnYKc':_0x4e61e7(0x182),'uIAvf':_0x4e61e7(0x147),'VpJJZ':_0x4e61e7(0x13f),'FmBFU':function(_0x25f6df,_0x2136fa,_0x2fcfe0,_0x320441){return _0x25f6df(_0x2136fa,_0x2fcfe0,_0x320441);},'CimVV':function(_0x119457,_0xb7dbdc,_0x4e31a9,_0x5e8d12,_0x18b0b8,_0x340170,_0x303d7f){return _0x119457(_0xb7dbdc,_0x4e31a9,_0x5e8d12,_0x18b0b8,_0x340170,_0x303d7f);},'UhmYW':function(_0x52333b,_0x7810ba,_0x3f1292){return _0x52333b(_0x7810ba,_0x3f1292);},'SicxM':function(_0x11924d,_0x4dab52,_0x2ef928){return _0x11924d(_0x4dab52,_0x2ef928);},'NMrbQ':_0x4e61e7(0x160),'gRDih':function(_0x29261f,_0x233804){return _0x29261f===_0x233804;},'JevOS':_0x4e61e7(0x164),'uGCUz':_0x4e61e7(0x15b),'DpGlf':function(_0x3b5b46,_0x1a886a){return _0x3b5b46===_0x1a886a;},'wSNfr':_0x4e61e7(0x16a),'GiOaa':function(_0x8fe3f8,_0x59c5ae,_0xb0364,_0x219646,_0x3c1d84,_0x3ec2ae,_0x41e062){return _0x8fe3f8(_0x59c5ae,_0xb0364,_0x219646,_0x3c1d84,_0x3ec2ae,_0x41e062);},'RoLxp':'server-error'};let _0x2dd6d2;try{!_0x5db5d4[_0x4e61e7(0x155)]&&(logger['error'](_0x1fd3da['iAtOd']),process[_0x4e61e7(0x132)](0x1));!fs['existsSync'](_0x1fd3da[_0x4e61e7(0x166)](getCredentialsPath))&&(logger[_0x4e61e7(0x185)](_0x1fd3da['QmJic']),await _0x1fd3da[_0x4e61e7(0x159)](sendInstrumentationEvent,_0x5db5d4,_0x1fd3da[_0x4e61e7(0x16e)],messageTypes[_0x4e61e7(0x17c)],_0x1fd3da['sgJhA'],null,_0x5db5d4),process['exit'](0x1));logger[_0x4e61e7(0x153)](_0x4e61e7(0x16b)+_0x5db5d4[_0x4e61e7(0x155)]),await _0x1fd3da[_0x4e61e7(0x138)](sendInstrumentationEvent,_0x5db5d4,_0x1fd3da['MjdrF'],messageTypes[_0x4e61e7(0x152)],null,null,_0x5db5d4);const _0x2ef1db=JSON[_0x4e61e7(0x18d)](fs['readFileSync'](_0x1fd3da[_0x4e61e7(0x18c)](getCredentialsPath)));global_registry['bstackUsername']=_0x2ef1db['Browserstack'][_0x4e61e7(0x178)],global_registry[_0x4e61e7(0x146)]=_0x2ef1db['Browserstack']['password'];const _0x335524=WS_ENDPOINT[_0x4e61e7(0x13d)](_0x1fd3da[_0x4e61e7(0x135)],_0x2ef1db['Browserstack'][_0x4e61e7(0x178)])[_0x4e61e7(0x13d)](_0x1fd3da[_0x4e61e7(0x149)],_0x2ef1db[_0x4e61e7(0x161)][_0x4e61e7(0x131)]),_0x524d22={};_0x524d22[_0x4e61e7(0x15d)]=ws,_0x524d22[_0x4e61e7(0x176)]=0x36ee80,_0x2dd6d2=new ReconnectingWebSocket(_0x335524,[],_0x524d22),logger[_0x4e61e7(0x14b)](_0x1fd3da['VpJJZ']),webSocketUtils[_0x4e61e7(0x184)](_0x2dd6d2,_0x5db5d4[_0x4e61e7(0x130)],_0x5db5d4[_0x4e61e7(0x131)]);const [_0xf06dd5,_0xf02dc2]=await _0x1fd3da['FmBFU'](getGridDetails,_0x2ef1db[_0x4e61e7(0x161)][_0x4e61e7(0x178)],_0x2ef1db[_0x4e61e7(0x161)]['password'],_0x5db5d4[_0x4e61e7(0x155)]);if(_0xf02dc2){const _0x1aa5bd=_0xf02dc2[_0x4e61e7(0x153)];global_registry['cloudProvider']=_0x1aa5bd[_0x4e61e7(0x158)],global_registry[_0x4e61e7(0x180)]=_0x1aa5bd['region'],global_registry['clusterName']=_0x1aa5bd['clusterName'];const _0x4e1688=await _0x1fd3da['CimVV'](getCloudProviderObject,_0x1aa5bd[_0x4e61e7(0x158)],_0x1aa5bd[_0x4e61e7(0x17f)],_0x1aa5bd[_0x4e61e7(0x156)],_0x2dd6d2,webSocketUtils,_0x5db5d4),[_0x1e283e,_0x125101,_0xdbaf1d,_0x5ae0f6,_0x1300f7,_0x2a574c]=await _0x1fd3da[_0x4e61e7(0x16d)](createK8sClient,_0x4e1688,_0x5db5d4[_0x4e61e7(0x165)]);await _0x1fd3da[_0x4e61e7(0x141)](scaleDownHubDeployment,_0x125101,_0x1aa5bd['name']),logger[_0x4e61e7(0x153)](_0x1fd3da[_0x4e61e7(0x189)]),process['exit'](0x0);}_0x1fd3da[_0x4e61e7(0x18b)](_0xf06dd5[_0x4e61e7(0x186)],0x191)&&(logger[_0x4e61e7(0x185)](_0x1fd3da[_0x4e61e7(0x173)]),await _0x1fd3da[_0x4e61e7(0x162)](sendInstrumentationEvent,_0x5db5d4,_0x1fd3da['MjdrF'],messageTypes[_0x4e61e7(0x17c)],_0x1fd3da[_0x4e61e7(0x14a)],null,_0x5db5d4),process[_0x4e61e7(0x132)](0x1)),_0x1fd3da[_0x4e61e7(0x13c)](_0xf06dd5['statusCode'],0x190)&&(logger['error'](JSON['parse'](_0xf06dd5['body'])[_0x4e61e7(0x144)]),await _0x1fd3da[_0x4e61e7(0x138)](sendInstrumentationEvent,_0x5db5d4,_0x1fd3da['MjdrF'],messageTypes['ERROR'],_0x1fd3da[_0x4e61e7(0x157)],null,_0x5db5d4),process['exit'](0x1)),logger[_0x4e61e7(0x185)](_0x4e61e7(0x15c)+JSON[_0x4e61e7(0x139)](_0xf06dd5)),await _0x1fd3da[_0x4e61e7(0x148)](sendInstrumentationEvent,_0x5db5d4,_0x1fd3da[_0x4e61e7(0x16e)],messageTypes[_0x4e61e7(0x17c)],_0x1fd3da['RoLxp'],_0xf06dd5,_0x5db5d4),process[_0x4e61e7(0x132)](0x1);}catch(_0xdf5194){const _0x5a8368=_0x4e61e7(0x177)+_0xdf5194+'\x20\x0a'+JSON[_0x4e61e7(0x139)](_0xdf5194[_0x4e61e7(0x168)])+'\x20';logger[_0x4e61e7(0x185)](_0x5a8368),process[_0x4e61e7(0x132)](0x1);}};function a21_0x109d(){const _0x226cb7=['argv','user','password','exit','command','2497120cFrhAf','EnYKc','epilogue','NQmyB','mKgvh','stringify','11XehUhT','WJbXi','DpGlf','replace','uzUUI','Adding\x20Websocket\x20listeners','183860UPiZHq','SicxM','../../utils/createk8sClient','default','message','2499966pRcihR','bstackAccesskey','<PasswordPlaceholder>','GiOaa','uIAvf','uGCUz','debug','394EmlVKf','string','help','9dxxfBr','7EXjmqk','BmyYE','INFO','info','Skip\x20insecure\x20cert\x20verification.','gridId','name','wSNfr','cloudProvider','qjpnR','WpWcc','unauthorised','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','WebSocket','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','../../config/logger','Grid\x20stoppped.','Browserstack','CimVV','init-not-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skipTlsCertVerify','nGWYJ','options','stack','Stop\x20a\x20running\x20Automation\x20grid.','invalid-grid-id','Stopping\x20grid\x20','usage','UhmYW','MjdrF','reconnecting-websocket','../../utils/webSocketUtils','35SfZSIK','grid-id','JevOS','4832WIMOpp','1223450yohFbu','connectionTimeout','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','username','handler','description','stop','ERROR','5085924OEhkad','skip-tls-cert-verify','clusterName','clusterRegion','../../utils/gridComponents','<UsernamePlaceholder>','../../utils/utilityMethods','addListeners','error','statusCode','type','516045UbQmTb','NMrbQ','builder','gRDih','nXZvo','parse','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','../../config/constants'];a21_0x109d=function(){return _0x226cb7;};return a21_0x109d();}
1
+ const a21_0x5ade58=a21_0xf271;(function(_0x2e9875,_0x3b48f5){const _0x5bf5f9=a21_0xf271,_0x2b7d08=_0x2e9875();while(!![]){try{const _0x586992=-parseInt(_0x5bf5f9(0x1b7))/0x1*(-parseInt(_0x5bf5f9(0x1a7))/0x2)+parseInt(_0x5bf5f9(0x1ce))/0x3*(parseInt(_0x5bf5f9(0x1ec))/0x4)+parseInt(_0x5bf5f9(0x1d8))/0x5*(-parseInt(_0x5bf5f9(0x1d3))/0x6)+parseInt(_0x5bf5f9(0x1c6))/0x7*(parseInt(_0x5bf5f9(0x1b9))/0x8)+parseInt(_0x5bf5f9(0x1ea))/0x9*(parseInt(_0x5bf5f9(0x19e))/0xa)+parseInt(_0x5bf5f9(0x1c7))/0xb*(-parseInt(_0x5bf5f9(0x1af))/0xc)+-parseInt(_0x5bf5f9(0x1ab))/0xd;if(_0x586992===_0x3b48f5)break;else _0x2b7d08['push'](_0x2b7d08['shift']());}catch(_0x5d8414){_0x2b7d08['push'](_0x2b7d08['shift']());}}}(a21_0x93f4,0xe6e4f));function a21_0x93f4(){const _0x1e9437=['958440YCzRrZ','RtNWf','Ulnqt','../../utils/createk8sClient','SYFxN','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','../../utils/utilityMethods','addListeners','readFileSync','sVsgP','Stop\x20a\x20running\x20Automation\x20grid.','fVwEF','stack','skipTlsCertVerify','info','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','<UsernamePlaceholder>','3080680fqRFgc','stop-grid-called','MwtAA','handler','BeHEd','rPbZU','gridId','username','../../config/logger','11882ycituV','password','XNFxE','DupBh','58166771yUqguB','tDgpS','fEwri','kXOWY','36RBYVgs','statusCode','reconnecting-websocket','VlgsJ','usage','pxfWi','unauthorised','bstackUsername','215IWJRli','Stopping\x20grid\x20','8UWYGPN','Browserstack','string','bstackAccesskey','skip-tls-cert-verify','options','default','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','error','YWEGt','GrOaK','clusterName','../../utils/gridComponents','7437878JeWKZU','1356553ZsQMCF','connectionTimeout','argv','grid-id','Adding\x20Websocket\x20listeners','existsSync','parse','21XKDzFZ','help','message','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','server-error','7944FQlhFM','stringify','clusterRegion','type','cloudProvider','285rPlYhB','init-not-called','Grid\x20stoppped.','exit','invalid-grid-id','ERROR','OeDXp','stop','region','GOzBG','description','debug','../../utils/webSocketUtils','WebSocket','oIuVU','name','replace','Skip\x20insecure\x20cert\x20verification.','54shszAE','Txzni'];a21_0x93f4=function(){return _0x1e9437;};return a21_0x93f4();}function a21_0xf271(_0x219140,_0x40d012){const _0x93f469=a21_0x93f4();return a21_0xf271=function(_0xf27185,_0x50a5ed){_0xf27185=_0xf27185-0x198;let _0x524ba0=_0x93f469[_0xf27185];return _0x524ba0;},a21_0xf271(_0x219140,_0x40d012);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x5ade58(0x1b1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x5ade58(0x1a6)),{getCredentialsPath,getGridDetails}=require(a21_0x5ade58(0x1f2)),{scaleDownHubDeployment}=require(a21_0x5ade58(0x1c5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x5ade58(0x1e4)),{createK8sClient}=require(a21_0x5ade58(0x1ef)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports['desc']=a21_0x5ade58(0x1f6),exports['builder']=function(_0x3bebab){const _0x33d289=a21_0x5ade58,_0x257536={};_0x257536[_0x33d289(0x1c3)]=_0x33d289(0x19c),_0x257536['sVsgP']=_0x33d289(0x1bb),_0x257536['pxfWi']=_0x33d289(0x1e9),_0x257536['rPbZU']='boolean',_0x257536[_0x33d289(0x1b2)]=_0x33d289(0x1cf);const _0x23e0c7=_0x257536,_0x3f9590={};_0x3f9590[_0x33d289(0x1e2)]=_0x23e0c7[_0x33d289(0x1c3)],_0x3f9590[_0x33d289(0x1d6)]=_0x23e0c7[_0x33d289(0x1f5)];const _0xc6a59d={};_0xc6a59d['description']=_0x23e0c7[_0x33d289(0x1b4)],_0xc6a59d['type']=_0x23e0c7[_0x33d289(0x1a3)],_0xc6a59d[_0x33d289(0x1bf)]=![];const _0x4c0018={};return _0x4c0018[_0x33d289(0x1ca)]=_0x3f9590,_0x4c0018[_0x33d289(0x1bd)]=_0xc6a59d,_0x3bebab[_0x33d289(0x1b3)](HELP_HEADER_MESSAGE[_0x33d289(0x1df)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x33d289(0x1be)](_0x4c0018)[_0x33d289(0x1cf)](_0x23e0c7[_0x33d289(0x1b2)])[_0x33d289(0x1c9)];},exports[a21_0x5ade58(0x1a1)]=async function(_0x23c270){const _0x273238=a21_0x5ade58,_0x4d5320={'GOzBG':_0x273238(0x1f1),'zqYBX':function(_0x48b20a){return _0x48b20a();},'kXOWY':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DupBh':function(_0x9df66f,_0x156cda,_0x206d11,_0x33daea,_0x396b9c,_0x2821b8,_0x1c51a){return _0x9df66f(_0x156cda,_0x206d11,_0x33daea,_0x396b9c,_0x2821b8,_0x1c51a);},'tDgpS':_0x273238(0x19f),'Ulnqt':_0x273238(0x1d9),'fEwri':function(_0x827d85){return _0x827d85();},'orxfk':_0x273238(0x19d),'MwtAA':'<PasswordPlaceholder>','lAsBO':_0x273238(0x1cb),'YWEGt':function(_0x21057e,_0x591971,_0xe5f352,_0x389f05){return _0x21057e(_0x591971,_0xe5f352,_0x389f05);},'fVwEF':function(_0x1547af,_0x50ecdf,_0x134798){return _0x1547af(_0x50ecdf,_0x134798);},'XsOsC':_0x273238(0x1da),'XNFxE':function(_0x5662a3,_0x3fd299){return _0x5662a3===_0x3fd299;},'SYFxN':_0x273238(0x1c0),'RtNWf':_0x273238(0x1b5),'OeDXp':function(_0x353d33,_0x79dfb9){return _0x353d33===_0x79dfb9;},'BeHEd':_0x273238(0x1dc),'oIuVU':function(_0x308e01,_0x3a0ffd,_0x1ba502,_0x6d128b,_0x8df333,_0x19731b,_0x390b41){return _0x308e01(_0x3a0ffd,_0x1ba502,_0x6d128b,_0x8df333,_0x19731b,_0x390b41);},'Txzni':_0x273238(0x1d2)};let _0x4c235d;try{!_0x23c270[_0x273238(0x1a4)]&&(logger['error'](_0x4d5320[_0x273238(0x1e1)]),process['exit'](0x1));!fs[_0x273238(0x1cc)](_0x4d5320['zqYBX'](getCredentialsPath))&&(logger[_0x273238(0x1c1)](_0x4d5320[_0x273238(0x1ae)]),await _0x4d5320[_0x273238(0x1aa)](sendInstrumentationEvent,_0x23c270,_0x4d5320['tDgpS'],messageTypes[_0x273238(0x1dd)],_0x4d5320[_0x273238(0x1ee)],null,_0x23c270),process[_0x273238(0x1db)](0x1));logger['info'](_0x273238(0x1b8)+_0x23c270[_0x273238(0x1a4)]),await _0x4d5320[_0x273238(0x1aa)](sendInstrumentationEvent,_0x23c270,_0x4d5320['tDgpS'],messageTypes['INFO'],null,null,_0x23c270);const _0x276fff=JSON[_0x273238(0x1cd)](fs[_0x273238(0x1f4)](_0x4d5320[_0x273238(0x1ad)](getCredentialsPath)));global_registry[_0x273238(0x1b6)]=_0x276fff[_0x273238(0x1ba)]['username'],global_registry[_0x273238(0x1bc)]=_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a8)];const _0x1df23a=WS_ENDPOINT['replace'](_0x4d5320['orxfk'],_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a5)])[_0x273238(0x1e8)](_0x4d5320[_0x273238(0x1a0)],_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a8)]),_0x57e5e4={};_0x57e5e4[_0x273238(0x1e5)]=ws,_0x57e5e4[_0x273238(0x1c8)]=0x36ee80,_0x4c235d=new ReconnectingWebSocket(_0x1df23a,[],_0x57e5e4),logger[_0x273238(0x1e3)](_0x4d5320['lAsBO']),webSocketUtils[_0x273238(0x1f3)](_0x4c235d,_0x23c270['user'],_0x23c270[_0x273238(0x1a8)]);const [_0x132fe7,_0x3b9d48]=await _0x4d5320[_0x273238(0x1c2)](getGridDetails,_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a5)],_0x276fff[_0x273238(0x1ba)][_0x273238(0x1a8)],_0x23c270[_0x273238(0x1a4)]);if(_0x3b9d48){const _0x531573=_0x3b9d48[_0x273238(0x19b)];global_registry[_0x273238(0x1d7)]=_0x531573['cloudProvider'],global_registry[_0x273238(0x1d5)]=_0x531573[_0x273238(0x1e0)],global_registry['clusterName']=_0x531573[_0x273238(0x1c4)];const _0x458fda=await _0x4d5320['DupBh'](getCloudProviderObject,_0x531573[_0x273238(0x1d7)],_0x531573[_0x273238(0x1c4)],_0x531573[_0x273238(0x1e7)],_0x4c235d,webSocketUtils,_0x23c270),[_0x1c5719,_0x319b2a,_0x24a2be,_0x442601,_0x91fb73,_0x3aaa7e]=await _0x4d5320[_0x273238(0x198)](createK8sClient,_0x458fda,_0x23c270[_0x273238(0x19a)]);await _0x4d5320['fVwEF'](scaleDownHubDeployment,_0x319b2a,_0x531573[_0x273238(0x1e7)]),logger[_0x273238(0x19b)](_0x4d5320['XsOsC']),process[_0x273238(0x1db)](0x0);}_0x4d5320[_0x273238(0x1a9)](_0x132fe7[_0x273238(0x1b0)],0x191)&&(logger[_0x273238(0x1c1)](_0x4d5320[_0x273238(0x1f0)]),await _0x4d5320[_0x273238(0x1aa)](sendInstrumentationEvent,_0x23c270,_0x4d5320['tDgpS'],messageTypes['ERROR'],_0x4d5320[_0x273238(0x1ed)],null,_0x23c270),process[_0x273238(0x1db)](0x1)),_0x4d5320[_0x273238(0x1de)](_0x132fe7[_0x273238(0x1b0)],0x190)&&(logger['error'](JSON[_0x273238(0x1cd)](_0x132fe7['body'])[_0x273238(0x1d0)]),await _0x4d5320[_0x273238(0x1aa)](sendInstrumentationEvent,_0x23c270,_0x4d5320[_0x273238(0x1ac)],messageTypes['ERROR'],_0x4d5320[_0x273238(0x1a2)],null,_0x23c270),process[_0x273238(0x1db)](0x1)),logger[_0x273238(0x1c1)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x273238(0x1d4)](_0x132fe7)),await _0x4d5320[_0x273238(0x1e6)](sendInstrumentationEvent,_0x23c270,_0x4d5320[_0x273238(0x1ac)],messageTypes['ERROR'],_0x4d5320[_0x273238(0x1eb)],_0x132fe7,_0x23c270),process[_0x273238(0x1db)](0x1);}catch(_0x2206a0){const _0x9b8c98=_0x273238(0x1d1)+_0x2206a0+'\x20\x0a'+JSON[_0x273238(0x1d4)](_0x2206a0[_0x273238(0x199)])+'\x20';logger['error'](_0x9b8c98),process[_0x273238(0x1db)](0x1);}};
@@ -1 +1 @@
1
- const a22_0xb6903e=a22_0x3cc3;(function(_0x110852,_0xcc9552){const _0x2d2360=a22_0x3cc3,_0x7b9b6f=_0x110852();while(!![]){try{const _0x68378a=parseInt(_0x2d2360(0x10e))/0x1+parseInt(_0x2d2360(0x126))/0x2+parseInt(_0x2d2360(0xea))/0x3*(parseInt(_0x2d2360(0xdb))/0x4)+parseInt(_0x2d2360(0x129))/0x5+-parseInt(_0x2d2360(0xf6))/0x6+parseInt(_0x2d2360(0xf7))/0x7+-parseInt(_0x2d2360(0xf3))/0x8*(parseInt(_0x2d2360(0x11e))/0x9);if(_0x68378a===_0xcc9552)break;else _0x7b9b6f['push'](_0x7b9b6f['shift']());}catch(_0x56ff63){_0x7b9b6f['push'](_0x7b9b6f['shift']());}}}(a22_0x496e,0x4b52a),require('dotenv')[a22_0xb6903e(0x100)]());let gridURL=a22_0xb6903e(0xf8),bsApiUrl=a22_0xb6903e(0x10b),agApiUrl='grid-api.browserstack.com';const _env=(process['env'][a22_0xb6903e(0x13b)]||a22_0xb6903e(0x110))[a22_0xb6903e(0x135)]();if(_env===a22_0xb6903e(0x131)||_env===a22_0xb6903e(0xd8))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0xb6903e(0x13c);else(_env===a22_0xb6903e(0x12a)||_env===a22_0xb6903e(0x101))&&(gridURL=a22_0xb6903e(0x123),bsApiUrl=a22_0xb6903e(0x127),agApiUrl=a22_0xb6903e(0x10a));exports[a22_0xb6903e(0x10c)]=process[a22_0xb6903e(0xdf)][a22_0xb6903e(0x10c)]||gridURL,exports[a22_0xb6903e(0x11c)]=process[a22_0xb6903e(0xdf)][a22_0xb6903e(0x11c)]||bsApiUrl,exports[a22_0xb6903e(0x11f)]=process['env'][a22_0xb6903e(0x11f)]||agApiUrl,exports[a22_0xb6903e(0xe1)]='wss://'+this[a22_0xb6903e(0x11f)]+a22_0xb6903e(0xe4),exports[a22_0xb6903e(0x11a)]='credentials',exports[a22_0xb6903e(0x111)]=a22_0xb6903e(0x134),exports[a22_0xb6903e(0xf5)]='high-scale-grid',exports[a22_0xb6903e(0x139)]=a22_0xb6903e(0xfc),exports[a22_0xb6903e(0x103)]=a22_0xb6903e(0x12f),exports[a22_0xb6903e(0x13e)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0xb6903e(0xd9)]=a22_0xb6903e(0xe8),exports[a22_0xb6903e(0xd4)]=a22_0xb6903e(0x125),exports[a22_0xb6903e(0x11b)]=a22_0xb6903e(0x138),exports[a22_0xb6903e(0x142)]='gcp',exports[a22_0xb6903e(0x124)]=[this[a22_0xb6903e(0x139)],this[a22_0xb6903e(0x11b)],this[a22_0xb6903e(0x142)]];const a22_0x512af7={};a22_0x512af7[a22_0xb6903e(0xe6)]=a22_0xb6903e(0x117),a22_0x512af7['Value']=a22_0xb6903e(0xdd);const a22_0xef7d80={};a22_0xef7d80['Key']=a22_0xb6903e(0x122),a22_0xef7d80[a22_0xb6903e(0xe9)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x512af7,a22_0xef7d80];if(process['env'][a22_0xb6903e(0x132)]){const parsedTags=process[a22_0xb6903e(0xdf)]['TURBOSCALE_CUSTOM_TAGS']['split'](',');parsedTags[a22_0xb6903e(0x128)](_0x2138e2=>{const _0x1c4269=a22_0xb6903e,_0x33f5d3=_0x2138e2[_0x1c4269(0x136)](':'),_0x324413={};_0x324413[_0x1c4269(0xe6)]=_0x33f5d3[0x0],_0x324413[_0x1c4269(0xe9)]=_0x33f5d3[0x1],common_hst_tags_list[_0x1c4269(0x12b)](_0x324413);});}exports[a22_0xb6903e(0x130)]=common_hst_tags_list;const a22_0x3da138={};a22_0x3da138['browserstack:managedBy']='BrowserStack',a22_0x3da138['browserstack:service']=a22_0xb6903e(0x121),exports['HST_CLUSTER_TAGS']=a22_0x3da138,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0xb6903e(0x139)]];const a22_0x933e90={};a22_0x933e90[a22_0xb6903e(0x114)]=a22_0xb6903e(0xfe),a22_0x933e90[a22_0xb6903e(0x10f)]=a22_0xb6903e(0xf1),a22_0x933e90['GRID_URL']=a22_0xb6903e(0xed),a22_0x933e90[a22_0xb6903e(0x104)]=a22_0xb6903e(0xec),a22_0x933e90[a22_0xb6903e(0x113)]='cliRunFinished',exports[a22_0xb6903e(0xe3)]=a22_0x933e90,exports[a22_0xb6903e(0x106)]={},exports['LINK_MESSAGE']=a22_0xb6903e(0x112);const a22_0x195dca={};a22_0x195dca[a22_0xb6903e(0x118)]=a22_0xb6903e(0xde)+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0xf2)]=a22_0xb6903e(0x143)+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0x115)]=a22_0xb6903e(0xe7)+this['LINK_MESSAGE'],a22_0x195dca[a22_0xb6903e(0x108)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0xeb)]={},a22_0x195dca['delete']=a22_0xb6903e(0xef)+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0x13d)]=a22_0xb6903e(0xe5)+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0x119)]=a22_0xb6903e(0xf4)+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0xd7)]=a22_0xb6903e(0x10d)+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0x140)]=a22_0xb6903e(0xf0)+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0xeb)]['root']=a22_0xb6903e(0x116)+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0xeb)]['grid']=a22_0xb6903e(0x141)+this[a22_0xb6903e(0xda)],a22_0x195dca[a22_0xb6903e(0xeb)][a22_0xb6903e(0x12e)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports[a22_0xb6903e(0x105)]=a22_0x195dca,exports[a22_0xb6903e(0x12c)]=a22_0xb6903e(0x102);const a22_0x56934f={};function a22_0x3cc3(_0x19b5ee,_0x4f1af6){const _0x496eab=a22_0x496e();return a22_0x3cc3=function(_0x3cc32b,_0x17e31b){_0x3cc32b=_0x3cc32b-0xd3;let _0x276913=_0x496eab[_0x3cc32b];return _0x276913;},a22_0x3cc3(_0x19b5ee,_0x4f1af6);}a22_0x56934f[a22_0xb6903e(0xe0)]='success',a22_0x56934f['ERROR']=a22_0xb6903e(0x133),a22_0x56934f[a22_0xb6903e(0xff)]='info',a22_0x56934f[a22_0xb6903e(0x13f)]=a22_0xb6903e(0xdc),a22_0x56934f['UNKNOWN']=a22_0xb6903e(0xf9),a22_0x56934f[a22_0xb6903e(0xee)]=null,exports[a22_0xb6903e(0xd3)]=a22_0x56934f,exports[a22_0xb6903e(0x107)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0xb6903e(0xd6)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0xb6903e(0xfb)]=a22_0xb6903e(0x137);const a22_0x147a11={};a22_0x147a11['grid-profile']=a22_0xb6903e(0x120);const a22_0xae2f89={};a22_0xae2f89[a22_0xb6903e(0xd5)]=a22_0x147a11,exports['MessageDescription']=a22_0xae2f89,exports[a22_0xb6903e(0xfa)]=a22_0xb6903e(0x13a);const a22_0x427691={};function a22_0x496e(){const _0x51e6b1=['Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','CLUSTER_DEP_STACK_NAME','CLI_RUN_STARTED','HELP_HEADER_MESSAGE','global_registry','CLI_ARGS_REGEX','create','us-east-1','grid-api-preprod.bsstag.com','api.browserstack.com','DASHBOARD_ENDPOINT','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','555172tilCSB','RESOURCES','prod','IAM_USER_NAME','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLI_RUN_FINISHED','LOG','configure','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','browserstack:managedBy','root','start','CP_CONFIG_FILE','AZURE','BS_API_URL','CLOUD_PROVIDER','27jduBUn','AG_API_URL','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','BrowserStack-Automate-TurboScale','browserstack:service','grid-preprod.bsstag.com','ALL_SUPPORTED_CLOUD_PROVIDERS','browserstack-turboscale-grid','299782oKEiNR','api-preprod.bsstag.com','forEach','1681840BseOeK','preprod','push','HELP_FOOTER_MESSAGE','high-scale-grid-cluster','gridProfile','BSTACK-ATS-CLUSTER','COMMON_HST_TAGS','staging','TURBOSCALE_CUSTOM_TAGS','error','BrowserStackIAMUser','toLowerCase','split','[REDACTED]','azure','AWS','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BROWSERSTACK_ENV','grid-api-devhst.bsstag.com','connect','CLUSTER_AUTOSCALER_STACK_NAME','WARNING','pre_check','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','GCP','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','messageTypes','TURBOSCALE_DEPLOYMENT','pre-check','RAW_ARGS_REGEX','stop','stag','CLUSTER_HUB_HA_STACK_NAME','LINK_MESSAGE','4VwScNT','warning','BrowserStack','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','env','SUCCESS','WS_ENDPOINT','DEFAULT_CLUSTER_DETAILS','WS_EVENTS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','Key','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER-HUB-HA','Value','259137eXKCKu','list','cliRunStarted','gridUrl','NULL','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','resourceInfo','init','1353048RvNejy','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','DEFAULT_GRID_NAME','2855112nPxmoa','1147699kmOuby','grid.browserstack.com','unknown','TRIAL_GRID_URL','REDACTED','aws','REGION','log','INFO','config','pre-prod'];a22_0x496e=function(){return _0x51e6b1;};return a22_0x496e();}a22_0x427691['CLUSTER']=a22_0xb6903e(0x12d),a22_0x427691[a22_0xb6903e(0x11d)]=a22_0xb6903e(0xfc),a22_0x427691[a22_0xb6903e(0xfd)]=a22_0xb6903e(0x109),exports[a22_0xb6903e(0xe2)]=a22_0x427691;
1
+ const a22_0x5211db=a22_0x2c3e;(function(_0x3d5804,_0x125d89){const _0x1eccb1=a22_0x2c3e,_0x2eee73=_0x3d5804();while(!![]){try{const _0x33f5dc=parseInt(_0x1eccb1(0xfc))/0x1*(parseInt(_0x1eccb1(0xe9))/0x2)+-parseInt(_0x1eccb1(0x127))/0x3*(parseInt(_0x1eccb1(0x11a))/0x4)+parseInt(_0x1eccb1(0xbb))/0x5+parseInt(_0x1eccb1(0x111))/0x6*(parseInt(_0x1eccb1(0xd0))/0x7)+-parseInt(_0x1eccb1(0xf9))/0x8*(parseInt(_0x1eccb1(0xef))/0x9)+parseInt(_0x1eccb1(0x10c))/0xa+parseInt(_0x1eccb1(0xdb))/0xb*(parseInt(_0x1eccb1(0x121))/0xc);if(_0x33f5dc===_0x125d89)break;else _0x2eee73['push'](_0x2eee73['shift']());}catch(_0x32e4dc){_0x2eee73['push'](_0x2eee73['shift']());}}}(a22_0x5550,0x4cfe9),require(a22_0x5211db(0xe5))[a22_0x5211db(0xfb)]());let gridURL='grid.browserstack.com',bsApiUrl='api.browserstack.com',agApiUrl='grid-api.browserstack.com';const _env=(process['env'][a22_0x5211db(0xe6)]||a22_0x5211db(0x10a))['toLowerCase']();if(_env===a22_0x5211db(0xcb)||_env===a22_0x5211db(0x123))gridURL=a22_0x5211db(0xcd),bsApiUrl=a22_0x5211db(0xeb),agApiUrl=a22_0x5211db(0x117);else(_env===a22_0x5211db(0xea)||_env===a22_0x5211db(0xdd))&&(gridURL=a22_0x5211db(0xc4),bsApiUrl=a22_0x5211db(0xc1),agApiUrl=a22_0x5211db(0xc5));exports[a22_0x5211db(0xbf)]=process[a22_0x5211db(0x102)][a22_0x5211db(0xbf)]||gridURL,exports[a22_0x5211db(0xd3)]=process[a22_0x5211db(0x102)][a22_0x5211db(0xd3)]||bsApiUrl,exports[a22_0x5211db(0xbe)]=process[a22_0x5211db(0x102)]['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x5211db(0x106)+this['AG_API_URL']+a22_0x5211db(0x10d),exports[a22_0x5211db(0x116)]=a22_0x5211db(0xd7),exports[a22_0x5211db(0x108)]=a22_0x5211db(0x114),exports[a22_0x5211db(0xcc)]=a22_0x5211db(0x118),exports[a22_0x5211db(0xbc)]='aws',exports[a22_0x5211db(0x107)]='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x5211db(0xc3),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x5211db(0xc8),exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x5211db(0xf1)]=a22_0x5211db(0x126),exports['GCP']=a22_0x5211db(0xdf),exports[a22_0x5211db(0xe4)]=[this[a22_0x5211db(0xbc)],this[a22_0x5211db(0xf1)],this[a22_0x5211db(0xf3)]];const a22_0x573e4d={};a22_0x573e4d[a22_0x5211db(0xfa)]='browserstack:managedBy',a22_0x573e4d[a22_0x5211db(0xe3)]=a22_0x5211db(0xce);const a22_0x30cf60={};a22_0x30cf60[a22_0x5211db(0xfa)]=a22_0x5211db(0xb7),a22_0x30cf60[a22_0x5211db(0xe3)]=a22_0x5211db(0x119);const common_hst_tags_list=[a22_0x573e4d,a22_0x30cf60];function a22_0x2c3e(_0x4cb890,_0x26e76b){const _0x5550a1=a22_0x5550();return a22_0x2c3e=function(_0x2c3e9b,_0x2b8fd1){_0x2c3e9b=_0x2c3e9b-0xb7;let _0x102dcf=_0x5550a1[_0x2c3e9b];return _0x102dcf;},a22_0x2c3e(_0x4cb890,_0x26e76b);}if(process[a22_0x5211db(0x102)][a22_0x5211db(0xc2)]){const parsedTags=process[a22_0x5211db(0x102)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x5211db(0xdc)](',');parsedTags[a22_0x5211db(0x10f)](_0x1744eb=>{const _0x31e17e=a22_0x5211db,_0x4c02ea=_0x1744eb[_0x31e17e(0xdc)](':'),_0x49d437={};_0x49d437['Key']=_0x4c02ea[0x0],_0x49d437[_0x31e17e(0xe3)]=_0x4c02ea[0x1],common_hst_tags_list[_0x31e17e(0xfe)](_0x49d437);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x21c833={};a22_0x21c833[a22_0x5211db(0xf4)]=a22_0x5211db(0xce),a22_0x21c833[a22_0x5211db(0xb7)]=a22_0x5211db(0x119),exports[a22_0x5211db(0xca)]=a22_0x21c833,exports[a22_0x5211db(0xe1)]=[this[a22_0x5211db(0xbc)]];const a22_0x1418c3={};a22_0x1418c3[a22_0x5211db(0x105)]=a22_0x5211db(0x122),a22_0x1418c3[a22_0x5211db(0x120)]='resourceInfo',a22_0x1418c3[a22_0x5211db(0x125)]='gridUrl',a22_0x1418c3['CLI_RUN_STARTED']=a22_0x5211db(0xda),a22_0x1418c3[a22_0x5211db(0x11f)]=a22_0x5211db(0xc6),exports[a22_0x5211db(0xe8)]=a22_0x1418c3,exports[a22_0x5211db(0xb8)]={},exports['LINK_MESSAGE']=a22_0x5211db(0xd6);const a22_0x482b3d={};a22_0x482b3d['root']=a22_0x5211db(0x101)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0xd4)]=a22_0x5211db(0xc9)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0xd2)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x110)]=a22_0x5211db(0x109)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11d)]={},a22_0x482b3d[a22_0x5211db(0xb9)]=a22_0x5211db(0xff)+this['LINK_MESSAGE'],a22_0x482b3d[a22_0x5211db(0x104)]=a22_0x5211db(0xc0)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11b)]=a22_0x5211db(0xcf)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0xf6)]=a22_0x5211db(0xd5)+this[a22_0x5211db(0x112)],a22_0x482b3d['pre_check']=a22_0x5211db(0xe0)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11d)][a22_0x5211db(0x10e)]=a22_0x5211db(0xde)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11d)][a22_0x5211db(0x100)]=a22_0x5211db(0xf2)+this[a22_0x5211db(0x112)],a22_0x482b3d[a22_0x5211db(0x11d)][a22_0x5211db(0xf8)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x5211db(0x112)],exports['HELP_HEADER_MESSAGE']=a22_0x482b3d,exports[a22_0x5211db(0x115)]=a22_0x5211db(0x113);const a22_0x1a49d1={};a22_0x1a49d1['SUCCESS']=a22_0x5211db(0x11e),a22_0x1a49d1[a22_0x5211db(0xd9)]=a22_0x5211db(0xe7),a22_0x1a49d1[a22_0x5211db(0xd8)]=a22_0x5211db(0xc7),a22_0x1a49d1[a22_0x5211db(0xfd)]='warning',a22_0x1a49d1['UNKNOWN']='unknown',a22_0x1a49d1[a22_0x5211db(0x10b)]=null,exports[a22_0x5211db(0x11c)]=a22_0x1a49d1,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5211db(0xf0)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x5211db(0xe2);function a22_0x5550(){const _0x54481a=['GRID_URL','azure','14571QvNKkY','browserstack:service','global_registry','delete','DEFAULT_CLUSTER_DETAILS','1259335xZDpZA','AWS','us-east-1','AG_API_URL','DASHBOARD_ENDPOINT','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','api-preprod.bsstag.com','TURBOSCALE_CUSTOM_TAGS','BSTACK-ATS-CLUSTER-AUTOSCALER','grid-preprod.bsstag.com','grid-api-preprod.bsstag.com','cliRunFinished','info','BSTACK-ATS-CLUSTER-HUB-HA','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','HST_CLUSTER_TAGS','staging','DEFAULT_GRID_NAME','grid-devhst.bsstag.com','BrowserStack','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','749161oiAVjK','CLOUD_PROVIDER','configure','BS_API_URL','init','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','credentials','INFO','ERROR','cliRunStarted','11qjEeaQ','split','pre-prod','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','gcp','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','SUPPORTED_CLOUD_PROVIDERS','[REDACTED]','Value','ALL_SUPPORTED_CLOUD_PROVIDERS','dotenv','BROWSERSTACK_ENV','error','WS_EVENTS','489142eDJxIZ','preprod','api-devhst.bsstag.com','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','TRIAL_GRID_URL','CLUSTER','1096668WvUOoP','RAW_ARGS_REGEX','AZURE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','GCP','browserstack:managedBy','pre-check','stop','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','gridProfile','40nhyTdA','Key','config','1avjoUx','WARNING','push','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','env','grid-profile','connect','LOG','wss://','CLUSTER_DEP_STACK_NAME','IAM_USER_NAME','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','prod','NULL','5862800OfPdLr','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','root','forEach','create','6syzRPw','LINK_MESSAGE','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','BrowserStackIAMUser','HELP_FOOTER_MESSAGE','CP_CONFIG_FILE','grid-api-devhst.bsstag.com','high-scale-grid','BrowserStack-Automate-TurboScale','436kwuEjY','start','messageTypes','list','success','CLI_RUN_FINISHED','RESOURCES','3171612DaGiJP','log','stag','MessageDescription'];a22_0x5550=function(){return _0x54481a;};return a22_0x5550();}const a22_0x5042b2={};a22_0x5042b2[a22_0x5211db(0x103)]=a22_0x5211db(0xec);const a22_0x4c9f9b={};a22_0x4c9f9b[a22_0x5211db(0xf5)]=a22_0x5042b2,exports[a22_0x5211db(0x124)]=a22_0x4c9f9b,exports[a22_0x5211db(0xed)]=a22_0x5211db(0xf7);const a22_0x5acf24={};a22_0x5acf24[a22_0x5211db(0xee)]='high-scale-grid-cluster',a22_0x5acf24[a22_0x5211db(0xd1)]='aws',a22_0x5acf24['REGION']=a22_0x5211db(0xbd),exports[a22_0x5211db(0xba)]=a22_0x5acf24;
@@ -1 +1 @@
1
- const a23_0x91abf6=a23_0x4069;(function(_0x293611,_0x158767){const _0xcc2b75=a23_0x4069,_0x293495=_0x293611();while(!![]){try{const _0x21ea9f=parseInt(_0xcc2b75(0x139))/0x1+parseInt(_0xcc2b75(0x131))/0x2*(-parseInt(_0xcc2b75(0x13f))/0x3)+parseInt(_0xcc2b75(0x136))/0x4*(-parseInt(_0xcc2b75(0x137))/0x5)+-parseInt(_0xcc2b75(0x13a))/0x6*(parseInt(_0xcc2b75(0x13d))/0x7)+-parseInt(_0xcc2b75(0x138))/0x8+-parseInt(_0xcc2b75(0x148))/0x9*(parseInt(_0xcc2b75(0x143))/0xa)+-parseInt(_0xcc2b75(0x12f))/0xb*(-parseInt(_0xcc2b75(0x145))/0xc);if(_0x21ea9f===_0x158767)break;else _0x293495['push'](_0x293495['shift']());}catch(_0x1cd17e){_0x293495['push'](_0x293495['shift']());}}}(a23_0x1a79,0x54042));function a23_0x4069(_0x196e77,_0x485002){const _0x1a79dd=a23_0x1a79();return a23_0x4069=function(_0x4069dd,_0x3a80ff){_0x4069dd=_0x4069dd-0x12f;let _0x5b999c=_0x1a79dd[_0x4069dd];return _0x5b999c;},a23_0x4069(_0x196e77,_0x485002);}function a23_0x1a79(){const _0x559d6a=['467348LSwZwI','25NBuIVj','4739496DAKLEK','512746EkKmRu','466758LVElwZ','name','winston','35vLSpFn','printf','9rNInQL','log','\x20-\x20','usage.log','6750wCYXOr','join','1440prJtvb','File','mkdirSync','4923WouIMp','colorize','level','events.log','YYYY-MM-DD\x20HH:mm:ss','debug','162448DTMavv','transports','3976dEHOUi','timestamp','logger','format','path'];a23_0x1a79=function(){return _0x559d6a;};return a23_0x1a79();}const winston=require(a23_0x91abf6(0x13c)),fs=require('fs'),path=require(a23_0x91abf6(0x135)),logDir=a23_0x91abf6(0x140);!fs['existsSync'](logDir)&&fs[a23_0x91abf6(0x147)](logDir);const a23_0x44f1b2={};a23_0x44f1b2[a23_0x91abf6(0x134)]=a23_0x91abf6(0x14c);const a23_0xf43544={};a23_0xf43544[a23_0x91abf6(0x14a)]=!![];const a23_0x393186={};a23_0x393186[a23_0x91abf6(0x13b)]='console.info',exports[a23_0x91abf6(0x133)]=new winston['createLogger']({'format':winston[a23_0x91abf6(0x134)]['combine'](winston['format']['timestamp'](a23_0x44f1b2),winston['format'][a23_0x91abf6(0x149)](a23_0xf43544),winston[a23_0x91abf6(0x134)][a23_0x91abf6(0x13e)](_0x1702dd=>_0x1702dd[a23_0x91abf6(0x132)]+a23_0x91abf6(0x141)+_0x1702dd[a23_0x91abf6(0x14a)]+':\x20'+_0x1702dd['message'])),'transports':[new winston['transports']['Console'](a23_0x393186),new winston[(a23_0x91abf6(0x130))][(a23_0x91abf6(0x146))]({'filename':path[a23_0x91abf6(0x144)](logDir,a23_0x91abf6(0x14b)),'level':a23_0x91abf6(0x14d)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x91abf6(0x130))][(a23_0x91abf6(0x146))]({'filename':path['join'](logDir,a23_0x91abf6(0x142)),'level':a23_0x91abf6(0x14d)})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x50a9e7=a23_0x114f;(function(_0x117b26,_0x2a971a){const _0x5bf640=a23_0x114f,_0x4a028b=_0x117b26();while(!![]){try{const _0x5f3d1c=parseInt(_0x5bf640(0x118))/0x1+-parseInt(_0x5bf640(0x133))/0x2*(-parseInt(_0x5bf640(0x12d))/0x3)+parseInt(_0x5bf640(0x121))/0x4*(-parseInt(_0x5bf640(0x11a))/0x5)+-parseInt(_0x5bf640(0x127))/0x6*(-parseInt(_0x5bf640(0x122))/0x7)+parseInt(_0x5bf640(0x129))/0x8+-parseInt(_0x5bf640(0x11f))/0x9+parseInt(_0x5bf640(0x134))/0xa;if(_0x5f3d1c===_0x2a971a)break;else _0x4a028b['push'](_0x4a028b['shift']());}catch(_0x1fa01b){_0x4a028b['push'](_0x4a028b['shift']());}}}(a23_0x5096,0x98f30));const winston=require(a23_0x50a9e7(0x12a)),fs=require('fs'),path=require(a23_0x50a9e7(0x12e)),logDir=a23_0x50a9e7(0x131);!fs[a23_0x50a9e7(0x117)](logDir)&&fs[a23_0x50a9e7(0x130)](logDir);const a23_0x3d03ee={};a23_0x3d03ee[a23_0x50a9e7(0x128)]=a23_0x50a9e7(0x119);const a23_0x5002a8={};function a23_0x5096(){const _0x49d88f=['\x20-\x20','6029082HVENZt','console.info','152fDrSYD','384363QouaHE','logger','message','timestamp','events.log','108KXFHBY','format','3389152lVtkNC','winston','combine','debug','67995zPmYyd','path','transports','mkdirSync','log','level','4DLwLgo','2804440NTLsdd','fileLogger','printf','existsSync','738650FYuVYF','YYYY-MM-DD\x20HH:mm:ss','155270rCPtIs','Console','join','File'];a23_0x5096=function(){return _0x49d88f;};return a23_0x5096();}a23_0x5002a8['level']=!![];const a23_0x6f9460={};function a23_0x114f(_0x2ee342,_0x40f0ea){const _0x509610=a23_0x5096();return a23_0x114f=function(_0x114fe0,_0x49e607){_0x114fe0=_0x114fe0-0x115;let _0x652772=_0x509610[_0x114fe0];return _0x652772;},a23_0x114f(_0x2ee342,_0x40f0ea);}a23_0x6f9460['name']=a23_0x50a9e7(0x120),exports[a23_0x50a9e7(0x123)]=new winston['createLogger']({'format':winston[a23_0x50a9e7(0x128)][a23_0x50a9e7(0x12b)](winston['format'][a23_0x50a9e7(0x125)](a23_0x3d03ee),winston[a23_0x50a9e7(0x128)]['colorize'](a23_0x5002a8),winston['format'][a23_0x50a9e7(0x116)](_0x274102=>_0x274102['timestamp']+a23_0x50a9e7(0x11e)+_0x274102[a23_0x50a9e7(0x132)]+':\x20'+_0x274102[a23_0x50a9e7(0x124)])),'transports':[new winston[(a23_0x50a9e7(0x12f))][(a23_0x50a9e7(0x11b))](a23_0x6f9460),new winston['transports'][(a23_0x50a9e7(0x11d))]({'filename':path[a23_0x50a9e7(0x11c)](logDir,a23_0x50a9e7(0x126)),'level':a23_0x50a9e7(0x12c)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x50a9e7(0x12f))]['File']({'filename':path[a23_0x50a9e7(0x11c)](logDir,'usage.log'),'level':a23_0x50a9e7(0x12c)})]};exports[a23_0x50a9e7(0x115)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x53419a=a24_0x580c;(function(_0xed75d9,_0x6b5b7e){const _0x441096=a24_0x580c,_0x573c8d=_0xed75d9();while(!![]){try{const _0x534830=parseInt(_0x441096(0xa6))/0x1*(-parseInt(_0x441096(0xaa))/0x2)+parseInt(_0x441096(0xa7))/0x3+parseInt(_0x441096(0xa8))/0x4+parseInt(_0x441096(0xa4))/0x5*(parseInt(_0x441096(0xa3))/0x6)+-parseInt(_0x441096(0xa1))/0x7*(-parseInt(_0x441096(0x9c))/0x8)+-parseInt(_0x441096(0xa2))/0x9+parseInt(_0x441096(0x9d))/0xa*(-parseInt(_0x441096(0xaf))/0xb);if(_0x534830===_0x6b5b7e)break;else _0x573c8d['push'](_0x573c8d['shift']());}catch(_0x31f970){_0x573c8d['push'](_0x573c8d['shift']());}}}(a24_0x49e1,0xc24c2));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x53419a(0x9e));process[a24_0x53419a(0xb0)][a24_0x53419a(0x9f)]=0x1;function a24_0x580c(_0x144a2c,_0x4761e1){const _0x49e167=a24_0x49e1();return a24_0x580c=function(_0x580c47,_0x20b3cf){_0x580c47=_0x580c47-0x9c;let _0x459d82=_0x49e167[_0x580c47];return _0x459d82;},a24_0x580c(_0x144a2c,_0x4761e1);}function run(_0x279ff6){const _0x1a40e3=a24_0x53419a,_0x52750f={};_0x52750f[_0x1a40e3(0xac)]=_0x1a40e3(0xae),_0x52750f[_0x1a40e3(0xab)]=_0x1a40e3(0xb1);const _0x153779=_0x52750f;_0x279ff6[_0x1a40e3(0xa5)](HELP_HEADER_MESSAGE[_0x1a40e3(0xa9)])[_0x1a40e3(0xad)](_0x153779['qVklr'])[_0x1a40e3(0xa0)]()[_0x1a40e3(0xb1)](_0x153779[_0x1a40e3(0xab)])['epilogue'](HELP_FOOTER_MESSAGE);}function a24_0x49e1(){const _0x3a9043=['help','49384QEUPKK','80fodNtE','./config/constants','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','demandCommand','35kUxwqX','930717SsSydx','18PHVzMA','396765SjnbtF','usage','575896ESzJRr','1255941hHdNAK','5413520ZhCcFq','root','2eMboMU','HLMgC','qVklr','commandDir','commands','777975UNSJWq','env'];a24_0x49e1=function(){return _0x3a9043;};return a24_0x49e1();}module['exports']=run;
2
+ 'use strict';function a24_0x2bbe(_0x3e3419,_0x32744c){const _0x5c205e=a24_0x5c20();return a24_0x2bbe=function(_0x2bbe4b,_0x70dcb0){_0x2bbe4b=_0x2bbe4b-0x148;let _0x396dd6=_0x5c205e[_0x2bbe4b];return _0x396dd6;},a24_0x2bbe(_0x3e3419,_0x32744c);}const a24_0x45cb3c=a24_0x2bbe;(function(_0x2aabd1,_0x5a3776){const _0x206338=a24_0x2bbe,_0x16ba0c=_0x2aabd1();while(!![]){try{const _0x73298f=-parseInt(_0x206338(0x150))/0x1*(parseInt(_0x206338(0x14c))/0x2)+parseInt(_0x206338(0x155))/0x3+parseInt(_0x206338(0x14f))/0x4*(parseInt(_0x206338(0x14b))/0x5)+-parseInt(_0x206338(0x159))/0x6*(-parseInt(_0x206338(0x149))/0x7)+-parseInt(_0x206338(0x14d))/0x8*(-parseInt(_0x206338(0x156))/0x9)+-parseInt(_0x206338(0x14e))/0xa+parseInt(_0x206338(0x15d))/0xb*(parseInt(_0x206338(0x15f))/0xc);if(_0x73298f===_0x5a3776)break;else _0x16ba0c['push'](_0x16ba0c['shift']());}catch(_0x199311){_0x16ba0c['push'](_0x16ba0c['shift']());}}}(a24_0x5c20,0x89948));function a24_0x5c20(){const _0x9a1e1=['epilogue','commandDir','env','help','126948KNbTZP','9matoxv','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','demandCommand','6nrfvRZ','PEOgM','exports','root','721391UlSOpD','commands','60FzKJpn','VPyfN','3277862QPCooX','./config/constants','426680vavEcq','6602qwtiVH','985664WHfVdy','7086930lfjubn','52gIavCG','242nDHaNb'];a24_0x5c20=function(){return _0x9a1e1;};return a24_0x5c20();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x45cb3c(0x14a));process[a24_0x45cb3c(0x153)][a24_0x45cb3c(0x157)]=0x1;function run(_0x2904f7){const _0x214ab8=a24_0x45cb3c,_0x52c855={};_0x52c855['VPyfN']=_0x214ab8(0x15e),_0x52c855[_0x214ab8(0x15a)]=_0x214ab8(0x154);const _0x10f1af=_0x52c855;_0x2904f7['usage'](HELP_HEADER_MESSAGE[_0x214ab8(0x15c)])[_0x214ab8(0x152)](_0x10f1af[_0x214ab8(0x148)])[_0x214ab8(0x158)]()[_0x214ab8(0x154)](_0x10f1af[_0x214ab8(0x15a)])[_0x214ab8(0x151)](HELP_FOOTER_MESSAGE);}module[a24_0x45cb3c(0x15b)]=run;