browserstack-node-sdk 1.50.7 → 1.50.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x412dfb=a15_0xc8a5;function a15_0x3b50(){const _0x5ca67a=['\x0aFound\x20the\x20following\x20grids:\x0a','Failed\x20to\x20list\x20resources!\x20Error:\x20','name','KgZAU','HmVMs','Royfk','unauthorised','type','mmNzy','3217255fHcHPz','command','AKffw','kkPCt','cluster-name','UCMsP','allGrids','password','../../config/constants','ZuZoZ','qrbpj','uuid','got','AuGTx','ZQSJe','10871WqcUsW','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','zNLIf','1924434luUNSt','yQAIZ','clusterName','4XgvMgP','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','init-not-called','WemPE','epilogue','statusCode','stack','GET','queued','forEach','table','INFO','15507doUTho','ERROR','tZPqB','parse','server-error','bstackAccesskey','error','username','mUXpB','exit','gWKLp','mLBhp','rLQZl','readFileSync','log','usage','body','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unknown-error','status','handler','running','../../utils/utilityMethods','/packages/cli/get-all-grids','push','bqWao','Browserstack','options','wdMCi','MgStI','tLuFw','Jsgdq','UwwAB','/packages/cli/get-grids','grid','https://','azbOq','gMFrc','existsSync','19178720qDCiRp','list','1522372UOAmDw','description','help','3144WBaroL','grid-id','grid-name','boolean','all-grids','1248876naVBIp','jxWFG','264ASZevO','stringify','bstackUsername'];a15_0x3b50=function(){return _0x5ca67a;};return a15_0x3b50();}(function(_0x10aa4b,_0x26d73d){const _0x4f676f=a15_0xc8a5,_0x166e21=_0x10aa4b();while(!![]){try{const _0x460c69=-parseInt(_0x4f676f(0x1f4))/0x1+parseInt(_0x4f676f(0x1bb))/0x2+-parseInt(_0x4f676f(0x1fc))/0x3+parseInt(_0x4f676f(0x1be))/0x4*(parseInt(_0x4f676f(0x1a8))/0x5)+parseInt(_0x4f676f(0x1fe))/0x6*(-parseInt(_0x4f676f(0x1b7))/0x7)+parseInt(_0x4f676f(0x1f7))/0x8*(-parseInt(_0x4f676f(0x1ca))/0x9)+parseInt(_0x4f676f(0x1f2))/0xa;if(_0x460c69===_0x26d73d)break;else _0x166e21['push'](_0x166e21['shift']());}catch(_0x27ea04){_0x166e21['push'](_0x166e21['shift']());}}}(a15_0x3b50,0xcceed));const fs=require('fs'),got=require(a15_0x412dfb(0x1b4)),{table}=require(a15_0x412dfb(0x1c8)),{v4:uuidv4}=require(a15_0x412dfb(0x1b3)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x412dfb(0x1b0)),{getCredentialsPath,getAuthHeader}=require(a15_0x412dfb(0x1e1)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0xc8a5(_0x5b5465,_0x912453){const _0x3b50cf=a15_0x3b50();return a15_0xc8a5=function(_0xc8a5c4,_0x78a165){_0xc8a5c4=_0xc8a5c4-0x1a4;let _0x2915b5=_0x3b50cf[_0xc8a5c4];return _0x2915b5;},a15_0xc8a5(_0x5b5465,_0x912453);}exports[a15_0x412dfb(0x1a9)]='grids',exports['desc']=a15_0x412dfb(0x1db),exports['builder']=function(_0x48ed30){const _0x253050=a15_0x412dfb,_0x2c8694={};_0x2c8694[_0x253050(0x1bc)]=_0x253050(0x1b9),_0x2c8694[_0x253050(0x1e8)]=_0x253050(0x1fa),_0x2c8694[_0x253050(0x1d2)]=_0x253050(0x1f6);const _0x2d4caa=_0x2c8694,_0x4e6d5d={};_0x4e6d5d[_0x253050(0x1f5)]=_0x2d4caa[_0x253050(0x1bc)],_0x4e6d5d[_0x253050(0x1a6)]=_0x2d4caa[_0x253050(0x1e8)];const _0x2e6f1e={};return _0x2e6f1e[_0x253050(0x1fb)]=_0x4e6d5d,_0x48ed30[_0x253050(0x1d9)](HELP_HEADER_MESSAGE[_0x253050(0x1f3)][_0x253050(0x1ed)])[_0x253050(0x1c2)](HELP_FOOTER_MESSAGE)[_0x253050(0x1e6)](_0x2e6f1e)['help'](_0x2d4caa['mUXpB'])['argv'];},exports[a15_0x412dfb(0x1df)]=async function(_0x44bfe3){const _0x15813c=a15_0x412dfb,_0x5dfce7={'tZPqB':function(_0x4f6b91){return _0x4f6b91();},'gWKLp':function(_0x17c575){return _0x17c575();},'wdMCi':_0x15813c(0x1b8),'Royfk':function(_0x5af267,_0x44a589,_0x5bfc3e,_0x353c2b,_0xec8443,_0x4e6cae,_0x2d65f7){return _0x5af267(_0x44a589,_0x5bfc3e,_0x353c2b,_0xec8443,_0x4e6cae,_0x2d65f7);},'Jsgdq':'list-grids-called','AKffw':_0x15813c(0x1c0),'azbOq':_0x15813c(0x1c5),'ZuZoZ':function(_0x1cb393,_0x1294c0,_0x3e92ad){return _0x1cb393(_0x1294c0,_0x3e92ad);},'KgZAU':function(_0x3d625d,_0x345cbf,_0x4e6705,_0x17baf8,_0x1b328c,_0x557ab0,_0x2d301b){return _0x3d625d(_0x345cbf,_0x4e6705,_0x17baf8,_0x1b328c,_0x557ab0,_0x2d301b);},'kkPCt':function(_0x54ab3d,_0x36721c){return _0x54ab3d!==_0x36721c;},'gMFrc':function(_0x42b75a,_0x57c481){return _0x42b75a!==_0x57c481;},'jxWFG':function(_0x355e21,_0xbe46f4){return _0x355e21===_0xbe46f4;},'mLBhp':_0x15813c(0x201),'tLuFw':_0x15813c(0x1f8),'UwwAB':_0x15813c(0x1f9),'rLQZl':_0x15813c(0x1de),'AuGTx':_0x15813c(0x1e0),'bqWao':'queued','MALmG':_0x15813c(0x1ac),'dkfOn':function(_0x24f123,_0x42125a){return _0x24f123(_0x42125a);},'WemPE':function(_0x7fc102,_0x1dc66e){return _0x7fc102===_0x1dc66e;},'UCMsP':_0x15813c(0x1dc),'HmVMs':function(_0x84ecec,_0x536e48,_0x1eeb35,_0x2164b7,_0x6d22b0,_0x4be178,_0x3dfa09){return _0x84ecec(_0x536e48,_0x1eeb35,_0x2164b7,_0x6d22b0,_0x4be178,_0x3dfa09);},'mmNzy':_0x15813c(0x1a5),'qrbpj':_0x15813c(0x1ce),'ZQSJe':function(_0x42ed24,_0x25695f,_0x2941e5,_0x4394f2,_0x307ed6,_0x67621e,_0x3948d9){return _0x42ed24(_0x25695f,_0x2941e5,_0x4394f2,_0x307ed6,_0x67621e,_0x3948d9);},'zNLIf':_0x15813c(0x1dd)};try{global_registry['requestId']=_0x5dfce7[_0x15813c(0x1cc)](uuidv4);!fs[_0x15813c(0x1f1)](_0x5dfce7[_0x15813c(0x1d4)](getCredentialsPath))&&(console['error'](_0x5dfce7[_0x15813c(0x1e7)]),await _0x5dfce7[_0x15813c(0x1a4)](sendInstrumentationEvent,_0x44bfe3,_0x5dfce7[_0x15813c(0x1ea)],messageTypes[_0x15813c(0x1cb)],_0x5dfce7[_0x15813c(0x1aa)],null,_0x44bfe3),process[_0x15813c(0x1d3)](0x1));const _0x1e9285=JSON[_0x15813c(0x1cd)](fs[_0x15813c(0x1d7)](_0x5dfce7[_0x15813c(0x1d4)](getCredentialsPath)));let _0x3c81fa=_0x15813c(0x1ee)+AG_API_URL+_0x15813c(0x1ec);_0x44bfe3[_0x15813c(0x1ae)]&&(_0x3c81fa=_0x15813c(0x1ee)+AG_API_URL+_0x15813c(0x1e2));const _0x3363f6={'method':_0x5dfce7[_0x15813c(0x1ef)],'headers':_0x5dfce7['ZuZoZ'](getAuthHeader,_0x1e9285[_0x15813c(0x1e5)][_0x15813c(0x1d1)],_0x1e9285[_0x15813c(0x1e5)][_0x15813c(0x1af)]),'throwHttpErrors':![]};global_registry[_0x15813c(0x200)]=_0x1e9285[_0x15813c(0x1e5)][_0x15813c(0x1d1)],global_registry[_0x15813c(0x1cf)]=_0x1e9285[_0x15813c(0x1e5)][_0x15813c(0x1af)],_0x5dfce7[_0x15813c(0x204)](sendInstrumentationEvent,_0x44bfe3,_0x5dfce7[_0x15813c(0x1ea)],messageTypes[_0x15813c(0x1c9)],null,null,_0x44bfe3);const _0x5ef20f=await _0x5dfce7[_0x15813c(0x1b1)](got,_0x3c81fa,_0x3363f6);if(_0x5dfce7[_0x15813c(0x1ab)](_0x5ef20f,null)&&_0x5dfce7[_0x15813c(0x1f0)](_0x5ef20f,undefined)&&_0x5dfce7[_0x15813c(0x1fd)](_0x5ef20f[_0x15813c(0x1c3)],0xc8)){const _0x27ff9e=JSON[_0x15813c(0x1cd)](_0x5ef20f[_0x15813c(0x1da)]);console[_0x15813c(0x1d8)](_0x5dfce7[_0x15813c(0x1d5)]);const _0x53ab0d=[];_0x53ab0d['push']([_0x5dfce7[_0x15813c(0x1e9)],_0x5dfce7[_0x15813c(0x1eb)],_0x5dfce7[_0x15813c(0x1d6)],_0x5dfce7[_0x15813c(0x1b5)],_0x5dfce7[_0x15813c(0x1e4)],_0x5dfce7['MALmG']]),_0x27ff9e[_0x15813c(0x1c7)](_0x388e3c=>{const _0x55b7f8=_0x15813c;_0x53ab0d[_0x55b7f8(0x1e3)]([_0x388e3c['id'],_0x388e3c[_0x55b7f8(0x203)],_0x388e3c[_0x55b7f8(0x1de)],_0x388e3c['running'],_0x388e3c[_0x55b7f8(0x1c6)],_0x388e3c[_0x55b7f8(0x1bd)]]);}),console['log'](_0x5dfce7['dkfOn'](table,_0x53ab0d)),process[_0x15813c(0x1d3)](0x0);}_0x5dfce7[_0x15813c(0x1c1)](_0x5ef20f[_0x15813c(0x1c3)],0x191)&&(console[_0x15813c(0x1d0)](_0x5dfce7[_0x15813c(0x1ad)]),await _0x5dfce7[_0x15813c(0x205)](sendInstrumentationEvent,_0x44bfe3,_0x5dfce7[_0x15813c(0x1ea)],messageTypes['ERROR'],_0x5dfce7[_0x15813c(0x1a7)],null,_0x44bfe3),process[_0x15813c(0x1d3)](0x1)),console[_0x15813c(0x1d0)](_0x15813c(0x1bf)+JSON[_0x15813c(0x1ff)](_0x5ef20f)),await _0x5dfce7[_0x15813c(0x204)](sendInstrumentationEvent,_0x44bfe3,_0x5dfce7[_0x15813c(0x1ea)],messageTypes[_0x15813c(0x1cb)],_0x5dfce7[_0x15813c(0x1b2)],_0x5ef20f,_0x44bfe3),process[_0x15813c(0x1d3)](0x1);}catch(_0x2c6d2d){console[_0x15813c(0x1d0)](_0x15813c(0x202)+_0x2c6d2d[_0x15813c(0x1c4)]),await _0x5dfce7[_0x15813c(0x1b6)](sendInstrumentationEvent,_0x44bfe3,_0x5dfce7[_0x15813c(0x1ea)],messageTypes[_0x15813c(0x1cb)],_0x5dfce7[_0x15813c(0x1ba)],_0x2c6d2d,_0x44bfe3),process[_0x15813c(0x1d3)](0x1);}};
1
+ const a15_0x4de038=a15_0x45ce;(function(_0x39a2be,_0x475d0c){const _0x13ddc3=a15_0x45ce,_0x330300=_0x39a2be();while(!![]){try{const _0x4d255c=-parseInt(_0x13ddc3(0x170))/0x1*(-parseInt(_0x13ddc3(0x144))/0x2)+-parseInt(_0x13ddc3(0x162))/0x3*(parseInt(_0x13ddc3(0x184))/0x4)+parseInt(_0x13ddc3(0x179))/0x5*(-parseInt(_0x13ddc3(0x155))/0x6)+parseInt(_0x13ddc3(0x15e))/0x7+parseInt(_0x13ddc3(0x13f))/0x8+parseInt(_0x13ddc3(0x15b))/0x9*(-parseInt(_0x13ddc3(0x152))/0xa)+parseInt(_0x13ddc3(0x150))/0xb;if(_0x4d255c===_0x475d0c)break;else _0x330300['push'](_0x330300['shift']());}catch(_0x20438f){_0x330300['push'](_0x330300['shift']());}}}(a15_0x112e,0x530d7));function a15_0x45ce(_0x556bee,_0x423083){const _0x112efc=a15_0x112e();return a15_0x45ce=function(_0x45ce0f,_0x2c8abe){_0x45ce0f=_0x45ce0f-0x134;let _0x4a0b9e=_0x112efc[_0x45ce0f];return _0x4a0b9e;},a15_0x45ce(_0x556bee,_0x423083);}function a15_0x112e(){const _0x2bd43b=['ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','allGrids','status','description','body','vYHNa','31940axXtaU','builder','mGoKQ','mFiWH','error','push','uuid','abbnc','vRUuA','../../utils/utilityMethods','statusCode','../../config/constants','cluster-name','23792igrTtX','username','list','argv','fwoTA','1438ALTFvj','bstackAccesskey','/packages/cli/get-grids','NfDeF','zJsSX','\x0aFound\x20the\x20following\x20grids:\x0a','parse','help','grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','jWqeu','XhBSu','12309627tVnZmv','https://','122920GTRufD','stringify','log','809502qcRqsR','/packages/cli/get-all-grids','clusterName','Ggvox','BhPyB','type','405iujGzj','XCMyr','uizQx','809725JqXKLw','usage','exit','INFO','78ovjmOq','ghQMb','MZVYT','VUGxt','grids','running','requestId','boolean','init-not-called','HqiFs','password','stack','Browserstack','server-error','748RqNYhY','NUEmF','xzese','MCsvH','desc','options','queued','ezZCG','command','25RHbJNb','IBCjS','name'];a15_0x112e=function(){return _0x2bd43b;};return a15_0x112e();}const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a15_0x4de038(0x138)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4de038(0x13d)),{getCredentialsPath,getAuthHeader}=require(a15_0x4de038(0x13b)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x4de038(0x178)]=a15_0x4de038(0x166),exports[a15_0x4de038(0x174)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x4de038(0x185)]=function(_0x454a61){const _0x22ec91=a15_0x4de038,_0x4ba7c5={};_0x4ba7c5[_0x22ec91(0x165)]=_0x22ec91(0x17e),_0x4ba7c5[_0x22ec91(0x164)]=_0x22ec91(0x169),_0x4ba7c5[_0x22ec91(0x15c)]='help';const _0x3b7d22=_0x4ba7c5,_0x406d75={};_0x406d75[_0x22ec91(0x181)]=_0x3b7d22[_0x22ec91(0x165)],_0x406d75[_0x22ec91(0x15a)]=_0x3b7d22['MZVYT'];const _0x4c05fa={};return _0x4c05fa['all-grids']=_0x406d75,_0x454a61[_0x22ec91(0x15f)](HELP_HEADER_MESSAGE[_0x22ec91(0x141)][_0x22ec91(0x14c)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x22ec91(0x175)](_0x4c05fa)[_0x22ec91(0x14b)](_0x3b7d22['XCMyr'])[_0x22ec91(0x142)];},exports['handler']=async function(_0x1c2ab8){const _0x11958e=a15_0x4de038,_0x5fc64f={'ezZCG':function(_0x4b6dfa){return _0x4b6dfa();},'HqiFs':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Ggvox':function(_0x1f0ebb,_0x32fc9d,_0x4ad8ed,_0x325f22,_0x112ddd,_0x4d028e,_0x11a044){return _0x1f0ebb(_0x32fc9d,_0x4ad8ed,_0x325f22,_0x112ddd,_0x4d028e,_0x11a044);},'XhBSu':'list-grids-called','fwoTA':_0x11958e(0x16a),'zJsSX':function(_0xd0bda8){return _0xd0bda8();},'tTeII':'GET','vRUuA':function(_0x386bc4,_0x1a8ee1,_0x198c7c){return _0x386bc4(_0x1a8ee1,_0x198c7c);},'BhPyB':function(_0x11a8b7,_0x1e00da){return _0x11a8b7!==_0x1e00da;},'mFiWH':function(_0xa3cc94,_0x416fff){return _0xa3cc94===_0x416fff;},'vYHNa':_0x11958e(0x149),'ghQMb':'grid-id','abbnc':'grid-name','ABmle':'status','xzese':_0x11958e(0x167),'jWqeu':_0x11958e(0x176),'uTrxF':_0x11958e(0x13e),'EosuO':function(_0x5b1206,_0x1d9623){return _0x5b1206(_0x1d9623);},'NUEmF':function(_0x158621,_0x3428d0){return _0x158621===_0x3428d0;},'uizQx':_0x11958e(0x17d),'NfDeF':function(_0x1f2f0e,_0x3c8add,_0x29c5fc,_0x57b65f,_0x39f740,_0x1dd6b6,_0x37ac0b){return _0x1f2f0e(_0x3c8add,_0x29c5fc,_0x57b65f,_0x39f740,_0x1dd6b6,_0x37ac0b);},'mGoKQ':'unauthorised','MCsvH':_0x11958e(0x16f),'IBCjS':'unknown-error'};try{global_registry[_0x11958e(0x168)]=_0x5fc64f[_0x11958e(0x177)](uuidv4);!fs['existsSync'](_0x5fc64f[_0x11958e(0x177)](getCredentialsPath))&&(console[_0x11958e(0x136)](_0x5fc64f[_0x11958e(0x16b)]),await _0x5fc64f[_0x11958e(0x158)](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f[_0x11958e(0x14f)],messageTypes[_0x11958e(0x17c)],_0x5fc64f[_0x11958e(0x143)],null,_0x1c2ab8),process[_0x11958e(0x160)](0x1));const _0x379118=JSON[_0x11958e(0x14a)](fs['readFileSync'](_0x5fc64f[_0x11958e(0x148)](getCredentialsPath)));let _0x4c10bf=_0x11958e(0x151)+AG_API_URL+_0x11958e(0x146);_0x1c2ab8[_0x11958e(0x17f)]&&(_0x4c10bf='https://'+AG_API_URL+_0x11958e(0x156));const _0x189dd3={'method':_0x5fc64f['tTeII'],'headers':_0x5fc64f['vRUuA'](getAuthHeader,_0x379118[_0x11958e(0x16e)]['username'],_0x379118[_0x11958e(0x16e)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x379118['Browserstack'][_0x11958e(0x140)],global_registry[_0x11958e(0x145)]=_0x379118[_0x11958e(0x16e)][_0x11958e(0x16c)],_0x5fc64f['Ggvox'](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f[_0x11958e(0x14f)],messageTypes[_0x11958e(0x161)],null,null,_0x1c2ab8);const _0x5b6385=await _0x5fc64f[_0x11958e(0x13a)](got,_0x4c10bf,_0x189dd3);if(_0x5fc64f[_0x11958e(0x159)](_0x5b6385,null)&&_0x5fc64f[_0x11958e(0x159)](_0x5b6385,undefined)&&_0x5fc64f[_0x11958e(0x135)](_0x5b6385[_0x11958e(0x13c)],0xc8)){const _0x708303=JSON[_0x11958e(0x14a)](_0x5b6385[_0x11958e(0x182)]);console['log'](_0x5fc64f[_0x11958e(0x183)]);const _0xbe863d=[];_0xbe863d[_0x11958e(0x137)]([_0x5fc64f[_0x11958e(0x163)],_0x5fc64f[_0x11958e(0x139)],_0x5fc64f['ABmle'],_0x5fc64f[_0x11958e(0x172)],_0x5fc64f[_0x11958e(0x14e)],_0x5fc64f['uTrxF']]),_0x708303['forEach'](_0x478611=>{const _0x328ef0=_0x11958e;_0xbe863d['push']([_0x478611['id'],_0x478611[_0x328ef0(0x17b)],_0x478611[_0x328ef0(0x180)],_0x478611[_0x328ef0(0x167)],_0x478611[_0x328ef0(0x176)],_0x478611[_0x328ef0(0x157)]]);}),console[_0x11958e(0x154)](_0x5fc64f['EosuO'](table,_0xbe863d)),process['exit'](0x0);}_0x5fc64f[_0x11958e(0x171)](_0x5b6385['statusCode'],0x191)&&(console['error'](_0x5fc64f[_0x11958e(0x15d)]),await _0x5fc64f[_0x11958e(0x147)](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f[_0x11958e(0x14f)],messageTypes[_0x11958e(0x17c)],_0x5fc64f[_0x11958e(0x134)],null,_0x1c2ab8),process['exit'](0x1)),console[_0x11958e(0x136)](_0x11958e(0x14d)+JSON[_0x11958e(0x153)](_0x5b6385)),await _0x5fc64f['Ggvox'](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f['XhBSu'],messageTypes[_0x11958e(0x17c)],_0x5fc64f[_0x11958e(0x173)],_0x5b6385,_0x1c2ab8),process['exit'](0x1);}catch(_0x9e163){console[_0x11958e(0x136)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x9e163[_0x11958e(0x16d)]),await _0x5fc64f['Ggvox'](sendInstrumentationEvent,_0x1c2ab8,_0x5fc64f[_0x11958e(0x14f)],messageTypes['ERROR'],_0x5fc64f[_0x11958e(0x17a)],_0x9e163,_0x1c2ab8),process[_0x11958e(0x160)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x26abcf=a16_0xd4d1;function a16_0x1cf9(){const _0x2cea3d=['pre_check','strict','497620xGhUuN','precheck_commands','27741BeeyVS','29781XHHoEU','vjuOr','usage','../config/constants','handler','desc','help','116dpYvJk','6589128GzcAcX','builder','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','4781195WQqMvF','command','demandCommand','1194axapNM','3779112QrdiKN','recommendCommands','4113072BzNLnP','epilogue'];a16_0x1cf9=function(){return _0x2cea3d;};return a16_0x1cf9();}function a16_0xd4d1(_0x2ae234,_0x9d72c5){const _0x1cf982=a16_0x1cf9();return a16_0xd4d1=function(_0xd4d11f,_0x6acd8b){_0xd4d11f=_0xd4d11f-0x127;let _0x254cff=_0x1cf982[_0xd4d11f];return _0x254cff;},a16_0xd4d1(_0x2ae234,_0x9d72c5);}(function(_0x47ec95,_0x59669c){const _0x145b10=a16_0xd4d1,_0x468880=_0x47ec95();while(!![]){try{const _0x2128b5=parseInt(_0x145b10(0x13c))/0x1+parseInt(_0x145b10(0x12e))/0x2*(parseInt(_0x145b10(0x127))/0x3)+-parseInt(_0x145b10(0x136))/0x4+parseInt(_0x145b10(0x132))/0x5+-parseInt(_0x145b10(0x135))/0x6*(parseInt(_0x145b10(0x13e))/0x7)+parseInt(_0x145b10(0x12f))/0x8+-parseInt(_0x145b10(0x138))/0x9;if(_0x2128b5===_0x59669c)break;else _0x468880['push'](_0x468880['shift']());}catch(_0x20e749){_0x468880['push'](_0x468880['shift']());}}}(a16_0x1cf9,0xa1d3b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x26abcf(0x12a));exports[a16_0x26abcf(0x133)]='pre-check',exports[a16_0x26abcf(0x12c)]=a16_0x26abcf(0x131),exports[a16_0x26abcf(0x130)]=function(_0x166a4b){const _0x2228c6=a16_0x26abcf,_0x2ef19d={};_0x2ef19d['Iqrwy']=_0x2228c6(0x13d),_0x2ef19d[_0x2228c6(0x128)]='help';const _0x1eafc2=_0x2ef19d;return _0x166a4b[_0x2228c6(0x129)](HELP_HEADER_MESSAGE[_0x2228c6(0x13a)])[_0x2228c6(0x139)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1eafc2['Iqrwy'])[_0x2228c6(0x134)]()[_0x2228c6(0x137)]()[_0x2228c6(0x13b)]()[_0x2228c6(0x12d)](_0x1eafc2[_0x2228c6(0x128)]);},exports[a16_0x26abcf(0x12b)]=function(_0x475c99){};
1
+ const a16_0xc7b2ef=a16_0x2256;function a16_0x2256(_0x471c0b,_0xc52175){const _0x860307=a16_0x8603();return a16_0x2256=function(_0x225651,_0x193741){_0x225651=_0x225651-0x78;let _0x12f1ef=_0x860307[_0x225651];return _0x12f1ef;},a16_0x2256(_0x471c0b,_0xc52175);}(function(_0x1e6cd5,_0x5939b3){const _0x5a8bbd=a16_0x2256,_0x3ca99c=_0x1e6cd5();while(!![]){try{const _0x2a2fe0=-parseInt(_0x5a8bbd(0x81))/0x1*(parseInt(_0x5a8bbd(0x7b))/0x2)+parseInt(_0x5a8bbd(0x79))/0x3*(parseInt(_0x5a8bbd(0x7d))/0x4)+parseInt(_0x5a8bbd(0x8c))/0x5+parseInt(_0x5a8bbd(0x89))/0x6+parseInt(_0x5a8bbd(0x8a))/0x7*(parseInt(_0x5a8bbd(0x8b))/0x8)+-parseInt(_0x5a8bbd(0x8d))/0x9+-parseInt(_0x5a8bbd(0x86))/0xa;if(_0x2a2fe0===_0x5939b3)break;else _0x3ca99c['push'](_0x3ca99c['shift']());}catch(_0x50274b){_0x3ca99c['push'](_0x3ca99c['shift']());}}}(a16_0x8603,0x57df7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xc7b2ef(0x7f));function a16_0x8603(){const _0x48fc63=['demandCommand','654215eYcawD','recommendCommands','handler','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','859220TntZnL','pre_check','EMjBB','1812564WlNwne','1225WzkfWb','27320pYDrKe','824465fNqobi','842472xgmByt','precheck_commands','epilogue','UxVab','desc','commandDir','180XbuXUW','pre-check','2IYxUdP','strict','8604YGELNc','command','../config/constants'];a16_0x8603=function(){return _0x48fc63;};return a16_0x8603();}exports[a16_0xc7b2ef(0x7e)]=a16_0xc7b2ef(0x7a),exports[a16_0xc7b2ef(0x91)]=a16_0xc7b2ef(0x84),exports['builder']=function(_0x627445){const _0x1d4eb1=a16_0xc7b2ef,_0x266b70={};_0x266b70[_0x1d4eb1(0x88)]=_0x1d4eb1(0x8e),_0x266b70['UxVab']=_0x1d4eb1(0x85);const _0x201976=_0x266b70;return _0x627445['usage'](HELP_HEADER_MESSAGE[_0x1d4eb1(0x87)])[_0x1d4eb1(0x8f)](HELP_FOOTER_MESSAGE)[_0x1d4eb1(0x78)](_0x201976['EMjBB'])[_0x1d4eb1(0x80)]()[_0x1d4eb1(0x82)]()[_0x1d4eb1(0x7c)]()['help'](_0x201976[_0x1d4eb1(0x90)]);},exports[a16_0xc7b2ef(0x83)]=function(_0x50c9eb){};
@@ -1 +1 @@
1
- const a17_0x4ac99a=a17_0x42eb;(function(_0x5c6e36,_0x1ca89e){const _0x295989=a17_0x42eb,_0x1752f5=_0x5c6e36();while(!![]){try{const _0x22bbf5=-parseInt(_0x295989(0x173))/0x1+parseInt(_0x295989(0x190))/0x2+parseInt(_0x295989(0x10e))/0x3*(-parseInt(_0x295989(0x14f))/0x4)+-parseInt(_0x295989(0x103))/0x5+-parseInt(_0x295989(0xf8))/0x6+parseInt(_0x295989(0x19f))/0x7+parseInt(_0x295989(0x118))/0x8;if(_0x22bbf5===_0x1ca89e)break;else _0x1752f5['push'](_0x1752f5['shift']());}catch(_0x412ea8){_0x1752f5['push'](_0x1752f5['shift']());}}}(a17_0x49eb,0x7c543));function a17_0x42eb(_0x579c92,_0x1f724c){const _0x49eb50=a17_0x49eb();return a17_0x42eb=function(_0x42ebac,_0x1b671a){_0x42ebac=_0x42ebac-0xe8;let _0x47f207=_0x49eb50[_0x42ebac];return _0x47f207;},a17_0x42eb(_0x579c92,_0x1f724c);}const fs=require('fs'),ws=require('ws'),got=require(a17_0x4ac99a(0x1e0)),{v4:uuidv4}=require(a17_0x4ac99a(0x180)),ReconnectingWebSocket=require(a17_0x4ac99a(0x152)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x4ac99a(0x1b3)),{logger}=require(a17_0x4ac99a(0x181)),{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_0x4ac99a(0x1a7)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x4ac99a(0x130)),{sendInstrumentationEvent}=require(a17_0x4ac99a(0xf0));exports[a17_0x4ac99a(0x1cd)]='grid',exports[a17_0x4ac99a(0x119)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x116a6e){const _0x2efcaf=a17_0x4ac99a,_0x1c0e45={};_0x1c0e45[_0x2efcaf(0x1d1)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x1c0e45[_0x2efcaf(0x1a0)]='string',_0x1c0e45[_0x2efcaf(0x111)]=_0x2efcaf(0x1dc),_0x1c0e45[_0x2efcaf(0x161)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x1c0e45['TqQBW']=_0x2efcaf(0x195),_0x1c0e45[_0x2efcaf(0x1a9)]='help';const _0x1aef35=_0x1c0e45,_0x57b33e={};_0x57b33e['description']=_0x1aef35[_0x2efcaf(0x1d1)],_0x57b33e[_0x2efcaf(0x157)]=_0x1aef35[_0x2efcaf(0x1a0)];const _0x3e088b={};_0x3e088b[_0x2efcaf(0x113)]=_0x1aef35['NAWcU'],_0x3e088b[_0x2efcaf(0x157)]=_0x1aef35['zNVJQ'];const _0x9cd8bf={};_0x9cd8bf['description']=_0x1aef35[_0x2efcaf(0x161)],_0x9cd8bf[_0x2efcaf(0x157)]=_0x1aef35[_0x2efcaf(0x1a0)];const _0x7a683={};_0x7a683[_0x2efcaf(0x113)]=_0x1aef35[_0x2efcaf(0x1ad)],_0x7a683[_0x2efcaf(0x157)]=_0x1aef35['zNVJQ'];const _0x3d3b49={};return _0x3d3b49[_0x2efcaf(0xef)]=_0x57b33e,_0x3d3b49['cloud-provider']=_0x3e088b,_0x3d3b49[_0x2efcaf(0x15f)]=_0x9cd8bf,_0x3d3b49[_0x2efcaf(0x1a6)]=_0x7a683,_0x116a6e[_0x2efcaf(0x126)](HELP_HEADER_MESSAGE[_0x2efcaf(0x185)])[_0x2efcaf(0x12d)](HELP_FOOTER_MESSAGE)[_0x2efcaf(0xff)](_0x3d3b49)[_0x2efcaf(0x1d5)](_0x1aef35['QxWVR'])['argv'];};async function inputValidation(_0x59e81d,_0x311fd9){const _0xce4a50=a17_0x4ac99a,_0x2382f3={'HuYus':_0xce4a50(0x193),'mYuyf':_0xce4a50(0x100),'pkhNb':_0xce4a50(0x133),'SxQHH':_0xce4a50(0x1e5),'EzLYw':_0xce4a50(0xfb),'heuPm':'will\x20be\x20created','ZMYMc':_0xce4a50(0xef),'qsxSL':_0xce4a50(0x15f),'Mvhxs':'error','oDouT':_0xce4a50(0x139),'owBSJ':_0xce4a50(0x1df),'mZcdR':_0xce4a50(0x1dc),'MfsWu':_0xce4a50(0xea),'zKkjQ':_0xce4a50(0x195),'JNCBv':_0xce4a50(0x1d5),'OLQuA':function(_0x152b59,_0x2cba41){return _0x152b59+_0x2cba41;},'gCfUr':_0xce4a50(0x101),'KMVKX':_0xce4a50(0x1e1),'HtxbR':function(_0x9be6a,_0x557a78){return _0x9be6a||_0x557a78;},'nfAun':function(_0xa317b3,_0x1e5ec0){return _0xa317b3!==_0x1e5ec0;},'jJXlE':_0xce4a50(0x184),'uWWsV':'pXvee','cEfeg':function(_0x382fbb,_0x332eb7){return _0x382fbb===_0x332eb7;},'WuSqz':_0xce4a50(0x171),'bvyRv':_0xce4a50(0x1bb),'NKFdc':_0xce4a50(0x146),'pGPlV':_0xce4a50(0x12e),'AiKSh':function(_0x2d69c3,_0x37034d){return _0x2d69c3!==_0x37034d;},'OUzxq':_0xce4a50(0x168),'DQBKE':function(_0x599513,_0x26203c){return _0x599513>_0x26203c;},'HcweS':_0xce4a50(0x1b4),'Osgit':function(_0x2b4d11,_0x4230cd,_0x188f11,_0x4ac5c1,_0x199613,_0x518cb1,_0x44d159,_0xe07bbf){return _0x2b4d11(_0x4230cd,_0x188f11,_0x4ac5c1,_0x199613,_0x518cb1,_0x44d159,_0xe07bbf);},'KFBWQ':_0xce4a50(0x1e3),'gumFW':_0xce4a50(0x147),'ETCXo':'gMqUF','xRBMd':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','DLNHc':_0xce4a50(0x125),'sYiQP':_0xce4a50(0x1d6),'tbrzz':_0xce4a50(0x104),'TftPR':_0xce4a50(0x129),'TueGq':'GET','ztkXO':function(_0x10b9e9,_0x5f6227,_0x204b49){return _0x10b9e9(_0x5f6227,_0x204b49);},'FOMPH':function(_0xb2fb3c,_0x59d402,_0x52f9b0,_0xba51fe,_0x1ce51b,_0x50b347){return _0xb2fb3c(_0x59d402,_0x52f9b0,_0xba51fe,_0x1ce51b,_0x50b347);},'CFYhx':_0xce4a50(0x1a5),'qSZnd':_0xce4a50(0x1a6),'HWATm':_0xce4a50(0x13b),'AtsEx':_0xce4a50(0x182),'EwfAJ':function(_0xe867c,_0x5cd8a1){return _0xe867c(_0x5cd8a1);},'OHfel':function(_0x131724,_0x242aec){return _0x131724!==_0x242aec;},'EZdke':_0xce4a50(0x150),'AeJJB':_0xce4a50(0x110),'bKHSv':_0xce4a50(0x172),'qyTtG':function(_0x5edd78,_0x48f292){return _0x5edd78===_0x48f292;},'mMMai':'IALSh','yutuE':_0xce4a50(0x1cf),'ZifPr':'mamuD','BZvWd':_0xce4a50(0x163),'rNfdN':_0xce4a50(0xe9),'KLWqV':_0xce4a50(0x1e4),'PydcP':function(_0x60b23f,_0x1fd4a7){return _0x60b23f!==_0x1fd4a7;},'QDTYb':_0xce4a50(0x128),'ifxRP':_0xce4a50(0x15a),'zDpnB':function(_0x520d78,_0x5f0305,_0x90d4bc,_0x4076df,_0x19f147,_0x27a398,_0x187a96,_0x488e2c){return _0x520d78(_0x5f0305,_0x90d4bc,_0x4076df,_0x19f147,_0x27a398,_0x187a96,_0x488e2c);}};let _0x208b07;try{if(_0x2382f3[_0xce4a50(0x188)](_0x2382f3[_0xce4a50(0x15e)],_0x2382f3[_0xce4a50(0x16d)])){if(_0x59e81d[_0xce4a50(0x166)]||_0x59e81d['cloudProvider']||_0x59e81d[_0xce4a50(0x15f)]){if(_0x2382f3[_0xce4a50(0x1ab)](_0x2382f3[_0xce4a50(0x19a)],_0x2382f3['bvyRv']))_0x200b3e+=_0x2382f3['HuYus'],_0x8f1ebf+=_0xce4a50(0x1da)+(_0x23f941[_0xce4a50(0x1d3)]||_0x2382f3[_0xce4a50(0x145)])+'\x0a',_0x139742+='\x20\x20Code:\x20'+(_0x3d1f4c[_0xce4a50(0x13f)]||_0x2382f3[_0xce4a50(0x145)])+'\x0a',_0x1e0160+=_0xce4a50(0x13a)+(_0x8cef99[_0xce4a50(0xed)]||_0x2382f3[_0xce4a50(0x145)])+'\x0a';else{const _0x460685=[];!_0x59e81d['clusterName']&&(_0x2382f3[_0xce4a50(0x1ab)](_0x2382f3[_0xce4a50(0x19e)],_0x2382f3['NKFdc'])?_0x460685[_0xce4a50(0x11e)](_0x2382f3[_0xce4a50(0x1d7)]):(_0x4e91cc[_0xce4a50(0x197)](_0xce4a50(0x122)+_0x465d33[_0xce4a50(0x1a4)]+'\x20'),_0x44b1b3[_0xce4a50(0x1b8)]=_0x7675e0[_0xce4a50(0x1a4)]));;!_0x59e81d['cloudProvider']&&(_0x2382f3[_0xce4a50(0x188)](_0x2382f3['pGPlV'],_0x2382f3['pGPlV'])?(_0x63a968[_0xce4a50(0xfd)](_0x2382f3['pkhNb']),_0xadb8e6['exit'](0x1)):_0x460685[_0xce4a50(0x11e)](_0x2382f3[_0xce4a50(0x19c)]));;!_0x59e81d[_0xce4a50(0x15f)]&&(_0x2382f3[_0xce4a50(0x1a1)](_0x2382f3[_0xce4a50(0x19b)],_0x2382f3[_0xce4a50(0x19b)])?_0x14af6e[_0xce4a50(0x11e)](_0x2382f3[_0xce4a50(0x19c)]):_0x460685[_0xce4a50(0x11e)](_0x2382f3['qsxSL']));;_0x2382f3[_0xce4a50(0x1b7)](_0x460685[_0xce4a50(0x189)],0x0)&&(_0x2382f3[_0xce4a50(0x1ab)](_0x2382f3['HcweS'],_0x2382f3['HcweS'])?(_0x208b07=_0xce4a50(0x183)+_0x460685['join'](',\x20')+_0xce4a50(0x18b),await _0x2382f3[_0xce4a50(0x1ca)](reportToGalactusAndSendToEDS,_0x59e81d,_0x311fd9,_0x208b07,messageTypes[_0xce4a50(0x1d2)],_0x2382f3[_0xce4a50(0x17c)],_0x2382f3[_0xce4a50(0x17f)],_0x2382f3[_0xce4a50(0x127)]),logger[_0xce4a50(0xfd)](_0x208b07),process[_0xce4a50(0x1a2)](0x1)):_0x82e785+=_0xce4a50(0x12b)+_0x143025[_0xce4a50(0x166)]+'\x20'+(_0x6a328f?_0x2382f3[_0xce4a50(0x154)]:_0x2382f3['heuPm'])+'\x0a\x0a'),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x59e81d['cloudProvider'][_0xce4a50(0x179)]())&&(_0x2382f3[_0xce4a50(0x1a1)](_0x2382f3[_0xce4a50(0x178)],_0x2382f3['ETCXo'])?_0x4f5622[_0xce4a50(0x11e)](_0x2382f3[_0xce4a50(0x1d7)]):(_0x208b07=_0x2382f3[_0xce4a50(0x156)],await _0x2382f3[_0xce4a50(0x1ca)](reportToGalactusAndSendToEDS,_0x59e81d,_0x311fd9,_0x208b07,messageTypes[_0xce4a50(0x1d2)],_0x2382f3['KFBWQ'],_0x2382f3[_0xce4a50(0x167)],_0x2382f3['Mvhxs']),logger[_0xce4a50(0xfd)](_0x208b07),!_0x59e81d[_0xce4a50(0x1b8)]&&(_0x2382f3[_0xce4a50(0x188)](_0x2382f3[_0xce4a50(0x1de)],_0x2382f3[_0xce4a50(0x18c)])?(logger[_0xce4a50(0x197)](_0xce4a50(0x122)+DEFAULT_CLUSTER_DETAILS[_0xce4a50(0x1a4)]+'\x20'),_0x59e81d['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x4144c6['push'](_0x2382f3[_0xce4a50(0x1ba)])))),global_registry[_0xce4a50(0x166)]=_0x59e81d[_0xce4a50(0x166)],global_registry[_0xce4a50(0x1b8)]=_0x59e81d[_0xce4a50(0x1b8)],global_registry[_0xce4a50(0x11a)]=_0x59e81d[_0xce4a50(0x15f)];}}else{if(_0x59e81d[_0xce4a50(0x102)]){if(_0x2382f3[_0xce4a50(0x1a1)](_0x2382f3['TftPR'],_0x2382f3[_0xce4a50(0x1b6)])){const _0x363717={};_0x363717[_0xce4a50(0x157)]=_0x400f50[_0xce4a50(0x138)],_0x363717['message']=_0x484017,_0x2c5763[_0xce4a50(0x148)](_0x1412b5,_0x363717,_0x2382f3[_0xce4a50(0x127)],!![]);}else{global_registry['gridProfile']=_0x59e81d[_0xce4a50(0x102)],logger[_0xce4a50(0x143)](_0xce4a50(0x15c)+_0x59e81d[_0xce4a50(0x102)]);const _0x405b09='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x1d16a6={};_0x1d16a6[_0xce4a50(0x12c)]=_0x2382f3[_0xce4a50(0x11f)],_0x1d16a6[_0xce4a50(0x16c)]=global_registry['authHeader'],_0x1d16a6[_0xce4a50(0xf5)]=![];const _0x81651a=_0x1d16a6,_0x1eed98=await _0x2382f3[_0xce4a50(0x16e)](got,_0x405b09,_0x81651a),_0x4834ad=await _0x2382f3[_0xce4a50(0x192)](responseValidation,_0x1eed98,_0x2382f3['CFYhx'],_0x2382f3[_0xce4a50(0x136)],_0x59e81d,_0x311fd9);let _0x30d127={};if(_0x2382f3[_0xce4a50(0x1ab)](_0x4834ad,0xc8)){if(_0x2382f3[_0xce4a50(0x188)](_0x2382f3[_0xce4a50(0x115)],_0x2382f3[_0xce4a50(0x1d0)])){const _0x5ec4d4=JSON[_0xce4a50(0x1c0)](_0x1eed98['body']),_0x2d97cb=_0x5ec4d4[_0xce4a50(0x16f)](_0x460cf6=>_0x460cf6[_0xce4a50(0x144)]===_0x59e81d['gridProfile'])||null;_0x2382f3['EwfAJ'](isUndefined,_0x2d97cb)?_0x2382f3[_0xce4a50(0x196)](_0x2382f3[_0xce4a50(0x124)],_0x2382f3[_0xce4a50(0xf9)])?(_0x208b07=_0xce4a50(0x105)+_0x59e81d['gridProfile']+_0xce4a50(0x1c5),await _0x2382f3[_0xce4a50(0x1ca)](reportToGalactusAndSendToEDS,_0x59e81d,_0x311fd9,_0x208b07,messageTypes['ERROR'],_0x2382f3['KFBWQ'],_0x2382f3['bKHSv'],_0x2382f3[_0xce4a50(0x127)]),logger[_0xce4a50(0xfd)](_0x208b07),process[_0xce4a50(0x1a2)](0x1)):_0x3831c5+=_0xce4a50(0x12b)+_0x20cb13[_0xce4a50(0x166)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':_0x2382f3[_0xce4a50(0x175)](_0x2382f3[_0xce4a50(0x153)],_0x2382f3[_0xce4a50(0x1c9)])?_0xb8d63d=_0x230364:_0x30d127=_0x2d97cb;}else _0x2aaeb3['error'](_0xce4a50(0x1af)+_0x479769[_0xce4a50(0xfd)]['stack']);}else{if(_0x2382f3['cEfeg'](_0x2382f3[_0xce4a50(0x15d)],_0x2382f3[_0xce4a50(0x10d)])){const _0x3a7798={};_0x3a7798['description']=_0x2382f3[_0xce4a50(0x1bf)],_0x3a7798['type']=_0x2382f3[_0xce4a50(0x170)];const _0x499804={};_0x499804[_0xce4a50(0x113)]=_0x2382f3[_0xce4a50(0x10b)],_0x499804['type']=_0x2382f3['owBSJ'];const _0xe0a7d3={};_0xe0a7d3[_0xce4a50(0x113)]=_0x2382f3['MfsWu'],_0xe0a7d3[_0xce4a50(0x157)]=_0x2382f3['owBSJ'];const _0x2a1684={};_0x2a1684[_0xce4a50(0x113)]=_0x2382f3[_0xce4a50(0x13c)],_0x2a1684[_0xce4a50(0x157)]=_0x2382f3[_0xce4a50(0x170)];const _0x44ce74={};return _0x44ce74[_0xce4a50(0xef)]=_0x3a7798,_0x44ce74[_0xce4a50(0x1e5)]=_0x499804,_0x44ce74[_0xce4a50(0x15f)]=_0xe0a7d3,_0x44ce74['grid-profile']=_0x2a1684,_0x47e423['usage'](_0x548a1b['pre_check'])['epilogue'](_0x1e9a01)['options'](_0x44ce74)[_0xce4a50(0x1d5)](_0x2382f3[_0xce4a50(0x134)])['argv'];}else process[_0xce4a50(0x1a2)](0x1);}const _0x2d884f={};_0x2d884f[_0xce4a50(0x157)]=WS_EVENTS['LOG'],_0x2d884f[_0xce4a50(0x1d3)]=_0x2382f3[_0xce4a50(0x11d)],webSocketUtils[_0xce4a50(0x148)](_0x311fd9,_0x2d884f),global_registry[_0xce4a50(0x1b8)]=_0x30d127[_0xce4a50(0x1b8)],global_registry['clusterRegion']=_0x30d127['region'],global_registry[_0xce4a50(0x166)]=_0x30d127[_0xce4a50(0x166)];}}else _0x2382f3[_0xce4a50(0x196)](_0x2382f3[_0xce4a50(0x1bc)],_0x2382f3[_0xce4a50(0x1bc)])?_0x4e5d91[_0xce4a50(0x197)]('Cluster\x20`'+_0xf635f[_0xce4a50(0x166)]+_0xce4a50(0x17d)):(logger[_0xce4a50(0xfd)](_0x2382f3[_0xce4a50(0x13d)]),process[_0xce4a50(0x1a2)](0x1));}}else{const {header:_0x109171,response:_0x1bc4a5}=_0x21ad99,{status:_0x88e9ec,data:_0x367823,error:_0x549e62}=_0x1bc4a5;_0x5147d0+=_0x109171+'\x20#'+_0x2382f3['OLQuA'](_0x81d3c8,0x1)+'\x0a',_0x5b2617+='Status:\x20'+(_0x88e9ec?_0x2382f3[_0xce4a50(0x1c7)]:_0x2382f3[_0xce4a50(0x199)])+'\x0a',_0x3879f5+=_0xce4a50(0x191)+_0x2382f3['HtxbR'](_0x367823,_0x2382f3[_0xce4a50(0x145)])+'\x0a',_0x549e62&&(_0x24a5f3+=_0x2382f3['HuYus'],_0x1352b6+='\x20\x20Message:\x20'+(_0x549e62['message']||_0x2382f3[_0xce4a50(0x145)])+'\x0a',_0xa30944+=_0xce4a50(0x107)+(_0x549e62[_0xce4a50(0x13f)]||_0x2382f3['mYuyf'])+'\x0a',_0x6531da+=_0xce4a50(0x13a)+(_0x549e62['stack']||_0x2382f3[_0xce4a50(0x145)])+'\x0a'),_0x565ece+='\x0a\x0a';}}catch(_0x309ff6){_0x2382f3[_0xce4a50(0x16b)](_0x2382f3[_0xce4a50(0x17a)],_0x2382f3[_0xce4a50(0x1d9)])?(_0x208b07='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x309ff6+':\x20'+_0x309ff6['stack'],logger['error'](_0x208b07),await _0x2382f3[_0xce4a50(0x198)](reportToGalactusAndSendToEDS,_0x59e81d,_0x311fd9,_0x208b07,messageTypes[_0xce4a50(0x1d2)],_0x2382f3[_0xce4a50(0x17c)],_0x2382f3[_0xce4a50(0x167)],_0x2382f3[_0xce4a50(0x127)]),process[_0xce4a50(0x1a2)](0x1)):_0x4b9ae8[_0xce4a50(0x1a2)](0x1);}}function printResponse(_0xf8b768,_0x512001){const _0x5d48fd=a17_0x4ac99a,_0x3cd4ba={};_0x3cd4ba[_0x5d48fd(0x132)]=function(_0x5236c1,_0x24b703){return _0x5236c1!==_0x24b703;},_0x3cd4ba['frHoq']='KFZuT',_0x3cd4ba[_0x5d48fd(0x12f)]=_0x5d48fd(0xfe);const _0x3d8719=_0x3cd4ba;logger['info']('['+_0xf8b768+_0x5d48fd(0x18d)+_0x512001[_0x5d48fd(0x121)]+_0x5d48fd(0x1b9)+_0x512001[_0x5d48fd(0x1bd)]+_0x5d48fd(0x1dd)+_0x512001['error']),_0x512001[_0x5d48fd(0xfd)]&&(_0x3d8719[_0x5d48fd(0x132)](_0x3d8719[_0x5d48fd(0x14a)],_0x3d8719[_0x5d48fd(0x12f)])?logger[_0x5d48fd(0xfd)]('error\x20stack\x20:\x20'+_0x512001[_0x5d48fd(0xfd)][_0x5d48fd(0xed)]):(_0x5540fc[_0x5d48fd(0x197)]('['+_0x5a17a9+']\x20status\x20:\x20'+_0x36558e['status']+_0x5d48fd(0x1b9)+_0x3bc8c3[_0x5d48fd(0x1bd)]+_0x5d48fd(0x1dd)+_0x47bfb0[_0x5d48fd(0xfd)]),_0x5d464f[_0x5d48fd(0xfd)]&&_0x5c02f4[_0x5d48fd(0xfd)](_0x5d48fd(0x1af)+_0xb7965f['error']['stack'])));}async function generateReport(_0x30c3d0,_0xa512ac){const _0x98e894=a17_0x4ac99a,_0x1cbdbb={'otAUG':function(_0x3d45ff,_0x7a66b2){return _0x3d45ff+_0x7a66b2;},'wXveo':_0x98e894(0x101),'iHHeQ':'Failure','EWlkh':function(_0x2f7768,_0x1a3cd3){return _0x2f7768||_0x1a3cd3;},'FUeEE':'N/A','MEGoG':_0x98e894(0x193),'IrCdG':_0x98e894(0xfc),'bOjBY':function(_0x1d5d24,_0x822c7d){return _0x1d5d24!=_0x822c7d;},'BoroI':_0x98e894(0xfb),'mrnxC':_0x98e894(0x112),'kCGPW':function(_0x3295ae){return _0x3295ae();}};let _0x1c7ca1='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x98e894(0x1b8)]+_0x98e894(0x141);return _0x30c3d0['forEach']((_0x4c3006,_0x55ce7c)=>{const _0x430350=_0x98e894,{header:_0x37d340,response:_0x4be1c3}=_0x4c3006,{status:_0x47437a,data:_0xf22d5a,error:_0x4a0f2c}=_0x4be1c3;_0x1c7ca1+=_0x37d340+'\x20#'+_0x1cbdbb[_0x430350(0x1cb)](_0x55ce7c,0x1)+'\x0a',_0x1c7ca1+=_0x430350(0x1aa)+(_0x47437a?_0x1cbdbb[_0x430350(0x1d8)]:_0x1cbdbb['iHHeQ'])+'\x0a',_0x1c7ca1+=_0x430350(0x191)+_0x1cbdbb[_0x430350(0x18a)](_0xf22d5a,_0x1cbdbb[_0x430350(0x1c6)])+'\x0a',_0x4a0f2c&&(_0x1c7ca1+=_0x1cbdbb[_0x430350(0xec)],_0x1c7ca1+=_0x430350(0x1da)+(_0x4a0f2c['message']||_0x1cbdbb['FUeEE'])+'\x0a',_0x1c7ca1+=_0x430350(0x107)+(_0x4a0f2c[_0x430350(0x13f)]||_0x1cbdbb[_0x430350(0x1c6)])+'\x0a',_0x1c7ca1+=_0x430350(0x13a)+(_0x4a0f2c[_0x430350(0xed)]||_0x1cbdbb['FUeEE'])+'\x0a'),_0x1c7ca1+='\x0a\x0a';}),_0x1c7ca1+=_0x1cbdbb[_0x98e894(0x13e)],_0x1cbdbb['bOjBY'](_0xa512ac,null)?_0x1c7ca1+=_0x98e894(0x12b)+global_registry[_0x98e894(0x166)]+'\x20'+(_0xa512ac?_0x1cbdbb[_0x98e894(0x116)]:_0x1cbdbb[_0x98e894(0x142)])+'\x0a\x0a':_0x1c7ca1+=_0x98e894(0x12b)+global_registry[_0x98e894(0x166)]+_0x98e894(0x18f),_0x1c7ca1+=_0x1cbdbb[_0x98e894(0x109)](getSystemMetaData),_0x1c7ca1;};function a17_0x49eb(){const _0x3366cb=['Cluster\x20details\x0a-----------------------\x0a','error','bmwAK','options','N/A','Success','gridProfile','2476185VoaaPk','sBuSc','Invalid\x20input.\x20grid\x20profiles:\x20','accessResp','\x20\x20Code:\x20','CjlpJ','kCGPW','handler','mZcdR','delay','BZvWd','277719AhBhsr','bstackUsername','fGPfC','NAWcU','will\x20be\x20created','description','isTls1_2_SUPPORTED','HWATm','BoroI','TLSv1_2_client_method','8624168pOEwcW','desc','clusterRegion','getUTCFullYear','cFnBw','rNfdN','push','TueGq','wNJkU','status','Setting\x20cloud\x20provider\x20as\x20','\x20region\x20-\x20','EZdke','cloud-provider-not-supported','usage','Mvhxs','dVkbZ','vlSQl','init','Cluster\x20','method','epilogue','eSlSt','tzyRk','../../utils/webSocketUtils','Pre-check\x20running\x20for\x20Cloud\x20-\x20','sjIKZ','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','JNCBv','pPATy','qSZnd','nUJUP','LOG','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','\x20\x20Stack:\x20','cYYmE','zKkjQ','pkhNb','IrCdG','code','toolInstalledResp','\x20===\x0a\x0a','mrnxC','debug','name','mYuyf','fftTm','pre-check-cluster-args-not-passed','sendEventToBackend','yrQJp','frHoq','User\x20Access','checkAccess','writeFileSync','.txt','28HvgRYg','JYcps','<PasswordPlaceholder>','reconnecting-websocket','mMMai','EzLYw','Browserstack','xRBMd','type','irfEZ','isClusterPresent','iAyns','utf-8','grid\x20profile\x20flow\x20','ZifPr','jJXlE','region','bwyYR','ezBvR','<UsernamePlaceholder>','lJcST','Report\x20saved\x20in\x20','getUTCMonth','clusterName','DLNHc','GtuZS','username','hvold','PydcP','headers','uWWsV','ztkXO','find','owBSJ','NhxOr','pre-check-grid-profile-empty','498968uMVDqK','fvzcI','qyTtG','SHbEb','stringify','ETCXo','toLowerCase','QDTYb','TuAvW','KFBWQ','`\x20already\x20exists','INLgx','gumFW','uuid','../../config/logger','CTvYT','Missing\x20required\x20arguments:\x20','EtBTz','pre_check','password','replace','nfAun','length','EWlkh','.\x20Please\x20provide\x20all\x20required\x20arguments.','tbrzz',']\x20status\x20:\x20','response','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','2014282rughMF','Message:\x20','FOMPH','Error\x20Details:\x0a','readFileSync','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','OHfel','info','zDpnB','KMVKX','WuSqz','OUzxq','SxQHH','`\x20,error\x20:\x20','NKFdc','5122411svPwyD','zNVJQ','AiKSh','exit','isCliToolInstalled','CLOUD_PROVIDER','pre-check','grid-profile','../../config/constants','bstackAccesskey','QxWVR','Status:\x20','cEfeg','Tool\x20Installed','TqQBW','dummy-grid','error\x20stack\x20:\x20','ccwkU','SSL\x20Configured','header','../../utils/utilityMethods','dtaYy','rwtHm','TftPR','DQBKE','cloudProvider','\x20data\x20:\x20','qsxSL','AIIFm','KLWqV','data','EytCD','oDouT','parse','kbikE','unable\x20to\x20verify\x20if\x20cluster\x20`','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WqReB','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','FUeEE','gCfUr','credential-not-found','yutuE','Osgit','otAUG','FXqOi','command','authHeader','fAGBf','AtsEx','jsGjk','ERROR','message','connectionTimeout','help','wGFGm','ZMYMc','wXveo','ifxRP','\x20\x20Message:\x20','acRpS','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20error\x20:\x20','sYiQP','string','got','Failure','WebSocket','pre-check-grid-called','BMWqi','cloud-provider','requestId','Grid\x20profile\x20fetched\x20for\x20pre-check','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','EJZcz','MEGoG','stack','log/report_','cluster-name','../../utils/instrumentationUtils','hzQwk','scTJr','split','getUTCHours','throwHttpErrors','kpady','ufYoP','3992808YoCwYi','AeJJB','Cluster\x20`','is\x20already\x20present'];a17_0x49eb=function(){return _0x3366cb;};return a17_0x49eb();}exports[a17_0x4ac99a(0x10a)]=async function(_0x3f9a5f){const _0x537452=a17_0x4ac99a,_0x5d84d8={'EytCD':function(_0x1081d1){return _0x1081d1();},'ufYoP':function(_0x306cef){return _0x306cef();},'irfEZ':_0x537452(0x1c3),'pPATy':function(_0x6b79c,_0x46e0d4,_0x2e7316,_0x5873f5,_0x595ae9,_0x4276dc,_0x4f08c0,_0x2161b7){return _0x6b79c(_0x46e0d4,_0x2e7316,_0x5873f5,_0x595ae9,_0x4276dc,_0x4f08c0,_0x2161b7);},'rwtHm':_0x537452(0x1e3),'INLgx':_0x537452(0x1c8),'hvold':_0x537452(0xfd),'TuAvW':function(_0x3656d4,_0x360a00,_0x581d6f,_0x273e50,_0x26c254,_0xb05bfa,_0xd1d9b){return _0x3656d4(_0x360a00,_0x581d6f,_0x273e50,_0x26c254,_0xb05bfa,_0xd1d9b);},'WqReB':function(_0x173ded){return _0x173ded();},'ixjcV':_0x537452(0x162),'wNJkU':_0x537452(0x151),'scTJr':function(_0x1fc6b3,_0x5f0edf,_0xd1bf64){return _0x1fc6b3(_0x5f0edf,_0xd1bf64);},'bwyYR':function(_0x323d1a,_0x3c42e1,_0x52dc50){return _0x323d1a(_0x3c42e1,_0x52dc50);},'yrQJp':_0x537452(0x1ae),'fvzcI':_0x537452(0x140),'hzQwk':'2|0|3|4|1','cFnBw':_0x537452(0x106),'nUJUP':function(_0x46769d){return _0x46769d();},'kpady':'isTrialGridAccessible','acRpS':function(_0x1c0c24,_0x5e4abc){return _0x1c0c24(_0x5e4abc);},'FXqOi':_0x537452(0x117),'ZjUGe':function(_0x3083d7,_0x5d99a6,_0x58491f){return _0x3083d7(_0x5d99a6,_0x58491f);},'kbikE':_0x537452(0x114),'IoKcJ':_0x537452(0x1ac),'SHbEb':_0x537452(0x14b),'ccwkU':'Whitelisted\x20browserstack','rVnhb':_0x537452(0x1b1),'CjlpJ':function(_0x138ad8,_0x5e8c5f,_0x1af21e){return _0x138ad8(_0x5e8c5f,_0x1af21e);},'EJZcz':function(_0x449dd0,_0x54b0f7){return _0x449dd0+_0x54b0f7;},'tckaD':_0x537452(0x15b),'KoNma':'pre-check-failed'};let _0x1ac878,_0x3fbae7;try{global_registry[_0x537452(0xe8)]=_0x5d84d8[_0x537452(0x1be)](uuidv4);!fs['existsSync'](_0x5d84d8[_0x537452(0xf7)](getCredentialsPath))&&(_0x3fbae7=_0x5d84d8[_0x537452(0x158)],logger['error'](_0x3fbae7),await _0x5d84d8[_0x537452(0x135)](reportToGalactusAndSendToEDS,_0x3f9a5f,_0x1ac878,_0x3fbae7,messageTypes['ERROR'],_0x5d84d8['rwtHm'],_0x5d84d8[_0x537452(0x17e)],_0x5d84d8['hvold']),process[_0x537452(0x1a2)](0x1));_0x5d84d8['TuAvW'](sendInstrumentationEvent,_0x3f9a5f,_0x5d84d8['rwtHm'],messageTypes['INFO'],null,null,_0x3f9a5f);const _0x459dc8=JSON[_0x537452(0x1c0)](fs[_0x537452(0x194)](_0x5d84d8[_0x537452(0x1c4)](getCredentialsPath)));global_registry[_0x537452(0x10f)]=_0x459dc8[_0x537452(0x155)][_0x537452(0x169)],global_registry[_0x537452(0x1a8)]=_0x459dc8['Browserstack'][_0x537452(0x186)];const _0x466f66=WS_ENDPOINT[_0x537452(0x187)](_0x5d84d8['ixjcV'],_0x459dc8[_0x537452(0x155)][_0x537452(0x169)])['replace'](_0x5d84d8[_0x537452(0x120)],_0x459dc8[_0x537452(0x155)][_0x537452(0x186)]),_0x5c1141={};_0x5c1141[_0x537452(0x1e2)]=ws,_0x5c1141[_0x537452(0x1d4)]=0x36ee80,_0x1ac878=new ReconnectingWebSocket(_0x466f66,[],_0x5c1141),global_registry[_0x537452(0x1ce)]=_0x5d84d8[_0x537452(0xf2)](getAuthHeader,global_registry[_0x537452(0x10f)],global_registry[_0x537452(0x1a8)]),await _0x5d84d8[_0x537452(0x160)](inputValidation,_0x3f9a5f,_0x1ac878),logger['info'](_0x537452(0x131)+global_registry[_0x537452(0x1b8)]+_0x537452(0x123)+global_registry['clusterRegion']);let _0x422820=await _0x5d84d8['TuAvW'](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x537452(0x166)],_0x5d84d8[_0x537452(0x149)],_0x1ac878,webSocketUtils,_0x3f9a5f);const _0x21883f=await _0x422820[_0x537452(0x1a3)]();_0x5d84d8[_0x537452(0xf2)](printResponse,_0x5d84d8[_0x537452(0x174)],_0x21883f),_0x422820=await _0x422820[_0x537452(0x12a)]();let _0xa62adc=![];try{_0xa62adc=await _0x422820[_0x537452(0x159)]();}catch(_0x8bf24d){const _0x3b2649=_0x5d84d8[_0x537452(0xf1)][_0x537452(0xf3)]('|');let _0x2282d9=0x0;while(!![]){switch(_0x3b2649[_0x2282d9++]){case'0':_0xa62adc=null;continue;case'1':await _0x5d84d8[_0x537452(0x135)](reportToGalactusAndSendToEDS,_0x3f9a5f,_0x1ac878,_0x3fbae7,messageTypes[_0x537452(0x1d2)],_0x5d84d8[_0x537452(0x1b5)],'cluster-check-failed-'+global_registry[_0x537452(0x1b8)],_0x5d84d8[_0x537452(0x16a)]);continue;case'2':_0x3fbae7=_0x537452(0x1c2)+global_registry[_0x537452(0x166)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x537452(0x11a)]+_0x537452(0x19d)+_0x8bf24d;continue;case'3':logger[_0x537452(0xfd)](_0x3fbae7);continue;case'4':_0x3fbae7+='\x0a'+JSON[_0x537452(0x177)](_0x8bf24d[_0x537452(0xed)]);continue;}break;}}_0xa62adc&&logger[_0x537452(0x197)](_0x537452(0xfa)+global_registry['clusterName']+'`\x20already\x20exists');const _0x496ccf=await _0x422820[_0x537452(0x14c)]();_0x5d84d8[_0x537452(0x160)](printResponse,_0x5d84d8[_0x537452(0x11c)],_0x496ccf);const _0xcadffc=await _0x5d84d8[_0x537452(0x137)](curlRequest);_0x5d84d8['scTJr'](printResponse,_0x5d84d8[_0x537452(0xf6)],_0xcadffc);const _0x25b856=await _0x5d84d8[_0x537452(0x1db)](isTlsSupported,_0x5d84d8[_0x537452(0x1cc)]);_0x5d84d8['ZjUGe'](printResponse,_0x5d84d8[_0x537452(0x1c1)],_0x25b856);const _0x1aaf2f={};_0x1aaf2f['header']=_0x5d84d8['IoKcJ'],_0x1aaf2f[_0x537452(0x18e)]=_0x21883f;const _0x266d4a={};_0x266d4a[_0x537452(0x1b2)]=_0x5d84d8[_0x537452(0x176)],_0x266d4a[_0x537452(0x18e)]=_0x496ccf;const _0x47933f={};_0x47933f[_0x537452(0x1b2)]=_0x5d84d8[_0x537452(0x1b0)],_0x47933f[_0x537452(0x18e)]=_0xcadffc;const _0x1da06e={};_0x1da06e[_0x537452(0x1b2)]=_0x5d84d8['rVnhb'],_0x1da06e[_0x537452(0x18e)]=_0x25b856;const _0x55e79d=[_0x1aaf2f,_0x266d4a,_0x47933f,_0x1da06e],_0x980c3d=await _0x5d84d8[_0x537452(0x108)](generateReport,_0x55e79d,_0xa62adc),_0x26f864=new Date(),_0xb46fd7=_0x26f864[_0x537452(0x11b)]()+'_'+_0x5d84d8[_0x537452(0xeb)](_0x26f864[_0x537452(0x165)](),0x1)+'_'+_0x26f864['getUTCDate']()+'_'+_0x26f864[_0x537452(0xf4)]()+'_'+_0x26f864['getUTCMinutes'](),_0x11d799=_0x537452(0xee)+_0xb46fd7+_0x537452(0x14e);fs[_0x537452(0x14d)](_0x11d799,_0x980c3d,_0x5d84d8['tckaD']),logger['info'](_0x537452(0x164)+_0x11d799),process[_0x537452(0x1a2)](0x0);}catch(_0x3144e4){let _0x58ba71='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x3144e4+'\x20';logger['error'](_0x58ba71),_0x58ba71+='\x0a'+JSON[_0x537452(0x177)](_0x3144e4[_0x537452(0xed)]),logger['debug']('stack\x20trace\x20'+_0x3144e4[_0x537452(0xed)]);if(_0x1ac878){const _0x5cf09d={};_0x5cf09d[_0x537452(0x157)]=WS_EVENTS['LOG'],_0x5cf09d[_0x537452(0x1d3)]=_0x58ba71,webSocketUtils[_0x537452(0x148)](_0x1ac878,_0x5cf09d,_0x5d84d8['hvold'],!![]);}await webSocketUtils[_0x537452(0x10c)](0x7d0);const _0x59fa42={};_0x59fa42['error']=_0x58ba71,await _0x5d84d8[_0x537452(0x17b)](sendInstrumentationEvent,_0x3f9a5f,_0x5d84d8[_0x537452(0x1b5)],messageTypes[_0x537452(0x1d2)],_0x5d84d8['KoNma'],_0x59fa42,_0x3f9a5f),process[_0x537452(0x1a2)](0x1);}};
1
+ const a17_0x588aba=a17_0x7cbb;(function(_0xe438d9,_0x48b9a7){const _0x2b927b=a17_0x7cbb,_0xd0915a=_0xe438d9();while(!![]){try{const _0x379827=parseInt(_0x2b927b(0x149))/0x1+-parseInt(_0x2b927b(0x89))/0x2+-parseInt(_0x2b927b(0xd8))/0x3*(parseInt(_0x2b927b(0x154))/0x4)+-parseInt(_0x2b927b(0x124))/0x5+parseInt(_0x2b927b(0x16d))/0x6*(parseInt(_0x2b927b(0x113))/0x7)+-parseInt(_0x2b927b(0x118))/0x8+-parseInt(_0x2b927b(0x146))/0x9*(-parseInt(_0x2b927b(0x8f))/0xa);if(_0x379827===_0x48b9a7)break;else _0xd0915a['push'](_0xd0915a['shift']());}catch(_0x3c2fc4){_0xd0915a['push'](_0xd0915a['shift']());}}}(a17_0x21aa,0x613b5));const fs=require('fs'),ws=require('ws'),got=require(a17_0x588aba(0xc2)),{v4:uuidv4}=require(a17_0x588aba(0x173)),ReconnectingWebSocket=require(a17_0x588aba(0xf2)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x588aba(0xfb)),{logger}=require(a17_0x588aba(0x179)),{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_0x588aba(0xf4)),webSocketUtils=require(a17_0x588aba(0xc1)),{sendInstrumentationEvent}=require(a17_0x588aba(0xf5));exports['command']=a17_0x588aba(0x12c),exports[a17_0x588aba(0xc7)]=a17_0x588aba(0x9a),exports[a17_0x588aba(0x12e)]=function(_0x5997f8){const _0x27ca50=a17_0x588aba,_0x2cf09e={};_0x2cf09e[_0x27ca50(0x12b)]=_0x27ca50(0x84),_0x2cf09e[_0x27ca50(0x135)]=_0x27ca50(0xcd),_0x2cf09e[_0x27ca50(0x8c)]=_0x27ca50(0x148),_0x2cf09e['Flbrg']=_0x27ca50(0xb3),_0x2cf09e[_0x27ca50(0x166)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2cf09e['CAVoS']=_0x27ca50(0x110);const _0x99b08f=_0x2cf09e,_0x2a803e={};_0x2a803e[_0x27ca50(0x133)]=_0x99b08f['Ukyin'],_0x2a803e['type']=_0x99b08f[_0x27ca50(0x135)];const _0x5c5554={};_0x5c5554[_0x27ca50(0x133)]=_0x99b08f[_0x27ca50(0x8c)],_0x5c5554[_0x27ca50(0x103)]=_0x99b08f['eqCGe'];const _0x439ea7={};_0x439ea7[_0x27ca50(0x133)]=_0x99b08f[_0x27ca50(0x152)],_0x439ea7[_0x27ca50(0x103)]=_0x99b08f['eqCGe'];const _0x53a200={};_0x53a200['description']=_0x99b08f[_0x27ca50(0x166)],_0x53a200[_0x27ca50(0x103)]=_0x99b08f[_0x27ca50(0x135)];const _0x1bb27c={};return _0x1bb27c['cluster-name']=_0x2a803e,_0x1bb27c['cloud-provider']=_0x5c5554,_0x1bb27c[_0x27ca50(0x138)]=_0x439ea7,_0x1bb27c[_0x27ca50(0xba)]=_0x53a200,_0x5997f8[_0x27ca50(0x104)](HELP_HEADER_MESSAGE[_0x27ca50(0xe2)])[_0x27ca50(0x163)](HELP_FOOTER_MESSAGE)[_0x27ca50(0x141)](_0x1bb27c)[_0x27ca50(0x110)](_0x99b08f[_0x27ca50(0xc6)])[_0x27ca50(0xb9)];};function a17_0x21aa(){const _0x5a7e06=['AxYfo','stringify','QbDdj','stack\x20trace\x20','yrALt','pre-check','buxLF','Error\x20Details:\x0a','XkYcW','tfqTi','parse','isTrialGridAccessible','DLlHl','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Missing\x20required\x20arguments:\x20','KaZQf','utf-8','xmCmf','FHptX','argv','grid-profile','ZayoU','`\x20already\x20exists','TFCWJ','DpktC','clusterRegion','pre-check-failed','../../utils/webSocketUtils','got','mLhRo','iLOcO','ewuwu','CAVoS','desc','LtPZe','XNISK','MOzYP','hnDpi','oxRNz','string','ZeYzQ','pre-check-grid-called','error\x20stack\x20:\x20','zpbCG','\x20error\x20:\x20','tjSyu','password','\x20===\x0a\x0a','SZakU','<PasswordPlaceholder>','21zMsnZk','Pre-check\x20running\x20for\x20Cloud\x20-\x20','https://','<UsernamePlaceholder>','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','AHZwr','TmmOF','HqhmW','bjuXp','PQLIC','pre_check','getUTCFullYear','cloudProvider','HWWyH','yfLhE','mimEV','VYkqA','pmWES',']\x20status\x20:\x20','CLOUD_PROVIDER','ikWVh','replace','hpLqc','smSun','WLjAm','error','reconnecting-websocket','ERROR','../../cloudproviders/utils','../../utils/instrumentationUtils','===\x20Precheck\x20Report\x20-\x20','length','readFileSync','BzWGQ','USUvc','../../utils/utilityMethods','.txt','Cluster\x20','cloud-provider','YrAUL','name','pYhAT','\x20\x20Message:\x20','type','usage','ocHnP','PalvA','ILEvi','LkSbl','\x20\x20Stack:\x20','dummy-grid','UKkcI','vfBYo','cloud-provider-not-supported','XRtBc','Status:\x20','help','ihJUL','tfPuF','3868501RFnycm','handler','RwBrB','TqMwX','code','505000peLmKc','log/report_','PHZOC','unable\x20to\x20verify\x20if\x20cluster\x20`','push','Success','qYfxa','lDbEa','`\x20is\x20present\x20in\x20region\x20`','Message:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','split','2571675qrlvyt','Failure','pJSQy','JYtka','biWtd','stack','existsSync','Ukyin','grid','ZwYAv','builder','NvgLe','HhRhO','message','Kmwif','description','forEach','eqCGe','xmjPe','CRzrh','region','sendEventToBackend','YGniw','username','hsXTl','connectionTimeout','kwdLJ','1|2|4|3|0','fcNgf','options','EYneI','LOG','is\x20already\x20present','isbhD','501219TwOgDO','XpxIv','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','599732nVoyWT','init','feMbj','.\x20Please\x20provide\x20all\x20required\x20arguments.','exit','header','rwCKr','Cluster\x20`','join','Flbrg','data','67748IErWid','KKumW','bstackUsername','WebSocket','INFO','status','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BCYFy','Report\x20saved\x20in\x20','body','yUEnV','GET','toolInstalledResp','IVYSX','authHeader','epilogue','isTls1_2_SUPPORTED','\x20region\x20-\x20','uslbc','cvLLz','User\x20Access','KYVBX','will\x20be\x20created','PVYny','RQzmn','6oBNpMp','uDPUe','uPwXy','bKvuA','iPaAS','XTuhO','uuid','tSnqV','dUkuY','gzVDW','Tool\x20Installed','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','../../config/logger','ajxPa','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','clusterName','toLowerCase','fMFDn','TLSv1_2_client_method','axMSc','Browserstack','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','\x20data\x20:\x20','\x20\x20Code:\x20','requestId','cluster-name','561718bcDAHB','N/A','bWRyf','ldLDy','info','DhCbb','40kIMxyT','isCliToolInstalled','dcMhO','BVzOP','Invalid\x20input.\x20grid\x20profiles:\x20','Whitelisted\x20browserstack','bstackAccesskey','gridProfile','pre-check-grid-profile-empty','response','OBELK','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','kgNkr','nDMHH','enJCV','method','Failed\x20in\x20pre-check!\x20Error:\x20','QkPvw','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','GBsyo','tSEKw','TnbOS','debug'];a17_0x21aa=function(){return _0x5a7e06;};return a17_0x21aa();}async function inputValidation(_0x2d52b4,_0xcb5f08){const _0x34ec2e=a17_0x588aba,_0x363088={'ocHnP':_0x34ec2e(0x144),'zpbCG':_0x34ec2e(0x16a),'iPaAS':'error','FHptX':'region','UKkcI':_0x34ec2e(0xa1),'USUvc':_0x34ec2e(0xad),'XNISK':_0x34ec2e(0x8a),'biWtd':_0x34ec2e(0x84),'KYVBX':'string','GBaSv':_0x34ec2e(0x148),'tSEKw':_0x34ec2e(0xb3),'hFqJd':_0x34ec2e(0x122),'NVERt':_0x34ec2e(0x110),'LkSbl':_0x34ec2e(0xfe),'QkPvw':function(_0x307a39,_0x17234a){return _0x307a39+_0x17234a;},'isbhD':_0x34ec2e(0x11d),'pYhAT':_0x34ec2e(0x125),'NvgLe':function(_0x3afe51,_0x2be132){return _0x3afe51||_0x2be132;},'fcNgf':'cluster-name','JYtka':function(_0x5e3667,_0x48fb16){return _0x5e3667!==_0x48fb16;},'kgNkr':_0x34ec2e(0x82),'mimEV':function(_0x388159,_0x20bcef){return _0x388159===_0x20bcef;},'ikWVh':_0x34ec2e(0xcb),'uGOtN':_0x34ec2e(0x115),'dcMhO':_0x34ec2e(0x16c),'pBjml':'CYqxI','PQLIC':function(_0x521252,_0x1238a8){return _0x521252===_0x1238a8;},'bhWOb':_0x34ec2e(0xe9),'HWWyH':_0x34ec2e(0xac),'ewuwu':function(_0x9223cd,_0x4ace4b){return _0x9223cd!==_0x4ace4b;},'AxYfo':'tZqtS','XTuhO':function(_0x1e82c9,_0x3d6355){return _0x1e82c9>_0x3d6355;},'Cbuom':_0x34ec2e(0x17e),'IVYSX':_0x34ec2e(0xb7),'JOoKi':function(_0x2f9256,_0x4a8b11,_0x54adb1,_0x48edbe,_0x1d2716,_0x1db7d3,_0x294166,_0x51bfd1){return _0x2f9256(_0x4a8b11,_0x54adb1,_0x48edbe,_0x1d2716,_0x1db7d3,_0x294166,_0x51bfd1);},'XpxIv':'pre-check-grid-called','XRtBc':'pre-check-cluster-args-not-passed','smSun':_0x34ec2e(0xce),'uPwXy':_0x34ec2e(0x17b),'kwdLJ':function(_0x55ae1e,_0xb81766,_0x1b8e1c,_0x36ae78,_0x18d342,_0x1b32cf,_0x34350c,_0x2c461b){return _0x55ae1e(_0xb81766,_0x1b8e1c,_0x36ae78,_0x18d342,_0x1b32cf,_0x34350c,_0x2c461b);},'afGXj':_0x34ec2e(0x10d),'OBELK':_0x34ec2e(0xe0),'tfqTi':function(_0x4cf97d,_0x26137b){return _0x4cf97d===_0x26137b;},'pJSQy':_0x34ec2e(0x9c),'HSiAA':_0x34ec2e(0xe6),'tjSyu':_0x34ec2e(0x15f),'YGniw':function(_0x17bf46,_0x2d9348,_0x5e357c){return _0x17bf46(_0x2d9348,_0x5e357c);},'HeWvh':function(_0x3de7f2,_0xb89b75,_0x4a3e58,_0x5b0321,_0x489172,_0x5dbc5d){return _0x3de7f2(_0xb89b75,_0x4a3e58,_0x5b0321,_0x489172,_0x5dbc5d);},'SZakU':_0x34ec2e(0xab),'mLhRo':'grid-profile','hsXTl':function(_0x29ccb0,_0x1397a5){return _0x29ccb0===_0x1397a5;},'yrALt':_0x34ec2e(0x130),'CRzrh':function(_0x5791cb,_0x3075e5){return _0x5791cb(_0x3075e5);},'DhCbb':'nldtJ','feMbj':_0x34ec2e(0x11f),'qixRS':function(_0x49ffb2,_0xaffaf9,_0x17eab7,_0x53c3a3,_0x2f7964,_0x11be6b,_0x589970,_0x3d6194){return _0x49ffb2(_0xaffaf9,_0x17eab7,_0x53c3a3,_0x2f7964,_0x11be6b,_0x589970,_0x3d6194);},'VYkqA':_0x34ec2e(0x97),'vfBYo':_0x34ec2e(0xc8),'PVYny':_0x34ec2e(0xb5),'MEPJq':_0x34ec2e(0x92),'DpktC':'Grid\x20profile\x20fetched\x20for\x20pre-check','hpLqc':'gyPid','AHZwr':function(_0x5be0ad,_0x38e12c){return _0x5be0ad===_0x38e12c;},'ILEvi':'yoWOk','bWRyf':_0x34ec2e(0x174),'ajxPa':function(_0x36cae1,_0x57d811,_0x167fd9,_0x1e651d,_0x274426,_0x40831b,_0x516a91,_0x2c844a){return _0x36cae1(_0x57d811,_0x167fd9,_0x1e651d,_0x274426,_0x40831b,_0x516a91,_0x2c844a);}};let _0x3f0627;try{if(_0x363088[_0x34ec2e(0x127)](_0x363088[_0x34ec2e(0x9b)],_0x363088[_0x34ec2e(0x9b)]))_0x5c11a4+=_0x34ec2e(0xfd)+_0x72aef2[_0x34ec2e(0x17c)]+'\x20'+(_0x560365?_0x363088[_0x34ec2e(0x105)]:_0x363088[_0x34ec2e(0xd1)])+'\x0a\x0a';else{if(_0x2d52b4['clusterName']||_0x2d52b4[_0x34ec2e(0xe4)]||_0x2d52b4['region']){if(_0x363088[_0x34ec2e(0xe7)](_0x363088[_0x34ec2e(0xec)],_0x363088['uGOtN'])){const _0x15b5e4={};_0x15b5e4['type']=_0x39fea2['LOG'],_0x15b5e4[_0x34ec2e(0x131)]=_0xb93aa7,_0x301b30[_0x34ec2e(0x139)](_0x52b7fd,_0x15b5e4,_0x363088[_0x34ec2e(0x171)],!![]);}else{const _0x444b9e=[];!_0x2d52b4[_0x34ec2e(0x17c)]&&(_0x363088['JYtka'](_0x363088[_0x34ec2e(0x91)],_0x363088['pBjml'])?_0x444b9e['push'](_0x363088[_0x34ec2e(0x140)]):_0x3158a4[_0x34ec2e(0xf1)](_0x34ec2e(0xd0)+_0x4414af[_0x34ec2e(0xf1)][_0x34ec2e(0x129)]));;!_0x2d52b4[_0x34ec2e(0xe4)]&&(_0x363088[_0x34ec2e(0xe1)](_0x363088['bhWOb'],_0x363088[_0x34ec2e(0xe5)])?_0x21f361+=_0x34ec2e(0xfd)+_0x3b9b17[_0x34ec2e(0x17c)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':_0x444b9e[_0x34ec2e(0x11c)](_0x363088[_0x34ec2e(0x108)]));;!_0x2d52b4[_0x34ec2e(0x138)]&&(_0x363088[_0x34ec2e(0xc5)](_0x363088[_0x34ec2e(0xa6)],_0x363088[_0x34ec2e(0xa6)])?_0x542f3b['push'](_0x363088[_0x34ec2e(0xb8)]):_0x444b9e[_0x34ec2e(0x11c)](_0x363088[_0x34ec2e(0xb8)]));;_0x363088[_0x34ec2e(0x172)](_0x444b9e[_0x34ec2e(0xf7)],0x0)&&(_0x363088[_0x34ec2e(0xe1)](_0x363088['Cbuom'],_0x363088[_0x34ec2e(0x161)])?(_0x5bdf81['info']('['+_0xc08e81+_0x34ec2e(0xea)+_0x504e6d[_0x34ec2e(0x159)]+_0x34ec2e(0x85)+_0x2c587b[_0x34ec2e(0x153)]+_0x34ec2e(0xd2)+_0x39e712[_0x34ec2e(0xf1)]),_0x87c0fa[_0x34ec2e(0xf1)]&&_0x116f36['error'](_0x34ec2e(0xd0)+_0x111596[_0x34ec2e(0xf1)]['stack'])):(_0x3f0627=_0x34ec2e(0xb4)+_0x444b9e[_0x34ec2e(0x151)](',\x20')+_0x34ec2e(0x14c),await _0x363088['JOoKi'](reportToGalactusAndSendToEDS,_0x2d52b4,_0xcb5f08,_0x3f0627,messageTypes[_0x34ec2e(0xf3)],_0x363088[_0x34ec2e(0x147)],_0x363088[_0x34ec2e(0x10e)],_0x363088['iPaAS']),logger[_0x34ec2e(0xf1)](_0x3f0627),process[_0x34ec2e(0x14d)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x2d52b4[_0x34ec2e(0xe4)][_0x34ec2e(0x17d)]())&&(_0x363088[_0x34ec2e(0xe1)](_0x363088['smSun'],_0x363088[_0x34ec2e(0xef)])?(_0x3f0627=_0x363088[_0x34ec2e(0x16f)],await _0x363088[_0x34ec2e(0x13e)](reportToGalactusAndSendToEDS,_0x2d52b4,_0xcb5f08,_0x3f0627,messageTypes[_0x34ec2e(0xf3)],_0x363088[_0x34ec2e(0x147)],_0x363088['afGXj'],_0x363088['iPaAS']),logger['error'](_0x3f0627),!_0x2d52b4[_0x34ec2e(0xe4)]&&(_0x363088[_0x34ec2e(0x127)](_0x363088['OBELK'],_0x363088[_0x34ec2e(0x99)])?_0x21269a[_0x34ec2e(0x8d)](_0x34ec2e(0x150)+_0x302c27[_0x34ec2e(0x17c)]+_0x34ec2e(0xbc)):(logger[_0x34ec2e(0x8d)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x34ec2e(0xeb)]+'\x20'),_0x2d52b4[_0x34ec2e(0xe4)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']))):(_0x2b6120[_0x34ec2e(0xf1)](_0x363088['UKkcI']),_0x363bbe[_0x34ec2e(0x14d)](0x1))),global_registry['clusterName']=_0x2d52b4['clusterName'],global_registry[_0x34ec2e(0xe4)]=_0x2d52b4[_0x34ec2e(0xe4)],global_registry[_0x34ec2e(0xbf)]=_0x2d52b4[_0x34ec2e(0x138)];}}else{if(_0x2d52b4[_0x34ec2e(0x96)]){if(_0x363088['tfqTi'](_0x363088[_0x34ec2e(0x126)],_0x363088['HSiAA']))_0x5538ba+=_0x363088[_0x34ec2e(0xfa)],_0x1a2b67+=_0x34ec2e(0x102)+(_0x41076a[_0x34ec2e(0x131)]||_0x363088['XNISK'])+'\x0a',_0x4ce935+=_0x34ec2e(0x86)+(_0x31487b['code']||_0x363088[_0x34ec2e(0xc9)])+'\x0a',_0x1244aa+=_0x34ec2e(0x109)+(_0x4cd2a4[_0x34ec2e(0x129)]||_0x363088[_0x34ec2e(0xc9)])+'\x0a';else{global_registry[_0x34ec2e(0x96)]=_0x2d52b4['gridProfile'],logger[_0x34ec2e(0xa5)]('grid\x20profile\x20flow\x20'+_0x2d52b4[_0x34ec2e(0x96)]);const _0x886c47=_0x34ec2e(0xda)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0xb8bd0={};_0xb8bd0[_0x34ec2e(0x9e)]=_0x363088[_0x34ec2e(0xd3)],_0xb8bd0['headers']=global_registry['authHeader'],_0xb8bd0['throwHttpErrors']=![];const _0x378b9e=_0xb8bd0,_0x269c6b=await _0x363088[_0x34ec2e(0x13a)](got,_0x886c47,_0x378b9e),_0x3a3ab0=await _0x363088['HeWvh'](responseValidation,_0x269c6b,_0x363088[_0x34ec2e(0xd6)],_0x363088[_0x34ec2e(0xc3)],_0x2d52b4,_0xcb5f08);let _0x35b3a0={};if(_0x363088[_0x34ec2e(0x13c)](_0x3a3ab0,0xc8)){if(_0x363088[_0x34ec2e(0x127)](_0x363088['yrALt'],_0x363088[_0x34ec2e(0xaa)])){const _0xe4fc7c={};_0xe4fc7c[_0x34ec2e(0x133)]=_0x363088[_0x34ec2e(0x128)],_0xe4fc7c['type']=_0x363088[_0x34ec2e(0x169)];const _0x403ce6={};_0x403ce6[_0x34ec2e(0x133)]=_0x363088['GBaSv'],_0x403ce6[_0x34ec2e(0x103)]=_0x363088[_0x34ec2e(0x169)];const _0x19a8b0={};_0x19a8b0[_0x34ec2e(0x133)]=_0x363088[_0x34ec2e(0xa3)],_0x19a8b0['type']=_0x363088['KYVBX'];const _0x4e724f={};_0x4e724f['description']=_0x363088['hFqJd'],_0x4e724f[_0x34ec2e(0x103)]=_0x363088[_0x34ec2e(0x169)];const _0x19b4cd={};return _0x19b4cd[_0x34ec2e(0x88)]=_0xe4fc7c,_0x19b4cd[_0x34ec2e(0xfe)]=_0x403ce6,_0x19b4cd[_0x34ec2e(0x138)]=_0x19a8b0,_0x19b4cd[_0x34ec2e(0xba)]=_0x4e724f,_0x14434f[_0x34ec2e(0x104)](_0x3737a5[_0x34ec2e(0xe2)])[_0x34ec2e(0x163)](_0x3c5272)[_0x34ec2e(0x141)](_0x19b4cd)['help'](_0x363088['NVERt'])[_0x34ec2e(0xb9)];}else{const _0x5d6be7=JSON[_0x34ec2e(0xb0)](_0x269c6b[_0x34ec2e(0x15d)]),_0x10baf3=_0x5d6be7['find'](_0x4dca72=>_0x4dca72[_0x34ec2e(0x100)]===_0x2d52b4[_0x34ec2e(0x96)])||null;_0x363088[_0x34ec2e(0x137)](isUndefined,_0x10baf3)?_0x363088[_0x34ec2e(0xaf)](_0x363088[_0x34ec2e(0x8e)],_0x363088[_0x34ec2e(0x14b)])?_0x5d657b[_0x34ec2e(0x11c)](_0x363088[_0x34ec2e(0x108)]):(_0x3f0627=_0x34ec2e(0x93)+_0x2d52b4[_0x34ec2e(0x96)]+_0x34ec2e(0xdc),await _0x363088['qixRS'](reportToGalactusAndSendToEDS,_0x2d52b4,_0xcb5f08,_0x3f0627,messageTypes[_0x34ec2e(0xf3)],_0x363088['XpxIv'],_0x363088[_0x34ec2e(0xe8)],_0x363088[_0x34ec2e(0x171)]),logger['error'](_0x3f0627),process[_0x34ec2e(0x14d)](0x1)):_0x363088[_0x34ec2e(0xc5)](_0x363088[_0x34ec2e(0x10c)],_0x363088[_0x34ec2e(0x10c)])?(_0x5a21f5[_0x34ec2e(0x8d)]('Setting\x20cloud\x20provider\x20as\x20'+_0x3231d5[_0x34ec2e(0xeb)]+'\x20'),_0x16dee3[_0x34ec2e(0xe4)]=_0x28b986['CLOUD_PROVIDER']):_0x35b3a0=_0x10baf3;}}else{if(_0x363088['hsXTl'](_0x363088[_0x34ec2e(0x16b)],_0x363088['MEPJq'])){const {header:_0x2af6e0,response:_0x15231f}=_0x3b91ee,{status:_0x2fa136,data:_0x2f5cff,error:_0x3c7728}=_0x15231f;_0x16c365+=_0x2af6e0+'\x20#'+_0x363088[_0x34ec2e(0xa0)](_0x24c5b4,0x1)+'\x0a',_0xde9349+='Status:\x20'+(_0x2fa136?_0x363088[_0x34ec2e(0x145)]:_0x363088[_0x34ec2e(0x101)])+'\x0a',_0x5572fe+=_0x34ec2e(0x121)+_0x363088[_0x34ec2e(0x12f)](_0x2f5cff,_0x363088[_0x34ec2e(0xc9)])+'\x0a',_0x3c7728&&(_0x17e745+=_0x363088['USUvc'],_0x13e235+='\x20\x20Message:\x20'+(_0x3c7728[_0x34ec2e(0x131)]||_0x363088['XNISK'])+'\x0a',_0x55155c+=_0x34ec2e(0x86)+(_0x3c7728[_0x34ec2e(0x117)]||_0x363088[_0x34ec2e(0xc9)])+'\x0a',_0x171407+=_0x34ec2e(0x109)+(_0x3c7728['stack']||_0x363088[_0x34ec2e(0xc9)])+'\x0a'),_0x3845f2+='\x0a\x0a';}else process['exit'](0x1);}const _0x5ea373={};_0x5ea373[_0x34ec2e(0x103)]=WS_EVENTS[_0x34ec2e(0x143)],_0x5ea373[_0x34ec2e(0x131)]=_0x363088[_0x34ec2e(0xbe)],webSocketUtils[_0x34ec2e(0x139)](_0xcb5f08,_0x5ea373),global_registry[_0x34ec2e(0xe4)]=_0x35b3a0[_0x34ec2e(0xe4)],global_registry[_0x34ec2e(0xbf)]=_0x35b3a0[_0x34ec2e(0x138)],global_registry[_0x34ec2e(0x17c)]=_0x35b3a0[_0x34ec2e(0x17c)];}}else _0x363088[_0x34ec2e(0xc5)](_0x363088[_0x34ec2e(0xee)],_0x363088[_0x34ec2e(0xee)])?_0x249cf3[_0x34ec2e(0x11c)](_0x363088[_0x34ec2e(0x140)]):(logger[_0x34ec2e(0xf1)](_0x363088[_0x34ec2e(0x10b)]),process[_0x34ec2e(0x14d)](0x1));}}}catch(_0xd3298d){_0x363088[_0x34ec2e(0xdd)](_0x363088[_0x34ec2e(0x107)],_0x363088[_0x34ec2e(0x8b)])?_0x1bee54[_0x34ec2e(0x14d)](0x1):(_0x3f0627=_0x34ec2e(0x178)+_0xd3298d+':\x20'+_0xd3298d[_0x34ec2e(0x129)],logger[_0x34ec2e(0xf1)](_0x3f0627),await _0x363088[_0x34ec2e(0x17a)](reportToGalactusAndSendToEDS,_0x2d52b4,_0xcb5f08,_0x3f0627,messageTypes[_0x34ec2e(0xf3)],_0x363088[_0x34ec2e(0x147)],_0x363088['afGXj'],_0x363088[_0x34ec2e(0x171)]),process['exit'](0x1));}}function printResponse(_0x46e599,_0x3b596c){const _0x22a13a=a17_0x588aba,_0x31d0d3={};_0x31d0d3[_0x22a13a(0x155)]=function(_0x1d7dc7,_0x5d2204){return _0x1d7dc7!==_0x5d2204;},_0x31d0d3[_0x22a13a(0x15b)]='LehzQ',_0x31d0d3[_0x22a13a(0x11e)]=_0x22a13a(0xc4);const _0x96c0f3=_0x31d0d3;logger[_0x22a13a(0x8d)]('['+_0x46e599+']\x20status\x20:\x20'+_0x3b596c[_0x22a13a(0x159)]+_0x22a13a(0x85)+_0x3b596c[_0x22a13a(0x153)]+'\x20error\x20:\x20'+_0x3b596c['error']),_0x3b596c[_0x22a13a(0xf1)]&&(_0x96c0f3[_0x22a13a(0x155)](_0x96c0f3[_0x22a13a(0x15b)],_0x96c0f3[_0x22a13a(0x11e)])?logger[_0x22a13a(0xf1)](_0x22a13a(0xd0)+_0x3b596c[_0x22a13a(0xf1)]['stack']):_0xf46e78=_0x2e667b);}function a17_0x7cbb(_0x14e4a5,_0x445aa1){const _0x21aa4a=a17_0x21aa();return a17_0x7cbb=function(_0x7cbb2d,_0x1f5d34){_0x7cbb2d=_0x7cbb2d-0x81;let _0x18bc09=_0x21aa4a[_0x7cbb2d];return _0x18bc09;},a17_0x7cbb(_0x14e4a5,_0x445aa1);}async function generateReport(_0x46ac98,_0x907dba){const _0xd9bfa=a17_0x588aba,_0x305fea={'tfPuF':function(_0x8f54f8,_0x161fcb){return _0x8f54f8+_0x161fcb;},'bKvuA':_0xd9bfa(0x11d),'xmjPe':_0xd9bfa(0x125),'ZwYAv':function(_0x30aa6d,_0x3bbbd9){return _0x30aa6d||_0x3bbbd9;},'BzWGQ':_0xd9bfa(0x8a),'ZayoU':_0xd9bfa(0xad),'yUEnV':'Cluster\x20details\x0a-----------------------\x0a','ONvKH':function(_0x294d3e,_0x38827e){return _0x294d3e!=_0x38827e;},'gzVDW':_0xd9bfa(0x144),'VlcIq':_0xd9bfa(0x16a),'oxRNz':function(_0x22a7ea){return _0x22a7ea();}};let _0xc24124=_0xd9bfa(0xf6)+global_registry[_0xd9bfa(0xe4)]+_0xd9bfa(0xd5);return _0x46ac98[_0xd9bfa(0x134)]((_0x4629f4,_0x8a53ae)=>{const _0x57797a=_0xd9bfa,{header:_0x4948f5,response:_0x112b44}=_0x4629f4,{status:_0x16b369,data:_0x299134,error:_0x13d00f}=_0x112b44;_0xc24124+=_0x4948f5+'\x20#'+_0x305fea[_0x57797a(0x112)](_0x8a53ae,0x1)+'\x0a',_0xc24124+=_0x57797a(0x10f)+(_0x16b369?_0x305fea[_0x57797a(0x170)]:_0x305fea[_0x57797a(0x136)])+'\x0a',_0xc24124+='Message:\x20'+_0x305fea[_0x57797a(0x12d)](_0x299134,_0x305fea[_0x57797a(0xf9)])+'\x0a',_0x13d00f&&(_0xc24124+=_0x305fea[_0x57797a(0xbb)],_0xc24124+=_0x57797a(0x102)+(_0x13d00f['message']||_0x305fea[_0x57797a(0xf9)])+'\x0a',_0xc24124+=_0x57797a(0x86)+(_0x13d00f[_0x57797a(0x117)]||_0x305fea[_0x57797a(0xf9)])+'\x0a',_0xc24124+=_0x57797a(0x109)+(_0x13d00f[_0x57797a(0x129)]||_0x305fea[_0x57797a(0xf9)])+'\x0a'),_0xc24124+='\x0a\x0a';}),_0xc24124+=_0x305fea[_0xd9bfa(0x15e)],_0x305fea['ONvKH'](_0x907dba,null)?_0xc24124+='Cluster\x20'+global_registry[_0xd9bfa(0x17c)]+'\x20'+(_0x907dba?_0x305fea[_0xd9bfa(0x176)]:_0x305fea['VlcIq'])+'\x0a\x0a':_0xc24124+=_0xd9bfa(0xfd)+global_registry[_0xd9bfa(0x17c)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0xc24124+=_0x305fea[_0xd9bfa(0xcc)](getSystemMetaData),_0xc24124;};exports[a17_0x588aba(0x114)]=async function(_0x15d503){const _0x467837=a17_0x588aba,_0x4391fc={'TnbOS':function(_0x1091d7){return _0x1091d7();},'TqMwX':function(_0x5d97d8){return _0x5d97d8();},'ARDTv':_0x467837(0x15a),'YrAUL':function(_0x5362b1,_0x197900,_0x4d9c57,_0x4cdb06,_0x18b169,_0x145047,_0x2cb4f7,_0x109406){return _0x5362b1(_0x197900,_0x4d9c57,_0x4cdb06,_0x18b169,_0x145047,_0x2cb4f7,_0x109406);},'TmmOF':_0x467837(0xcf),'uDPUe':'credential-not-found','ihJUL':_0x467837(0xf1),'enJCV':function(_0xe0f622,_0x5378f2,_0x46d9bb,_0x3d98ac,_0x144219,_0x51b0bf,_0x27681c){return _0xe0f622(_0x5378f2,_0x46d9bb,_0x3d98ac,_0x144219,_0x51b0bf,_0x27681c);},'fFWgm':function(_0x78fa2c){return _0x78fa2c();},'huoRk':_0x467837(0xdb),'GBsyo':_0x467837(0xd7),'HqhmW':function(_0x2da87b,_0x56dd21,_0xf49aad){return _0x2da87b(_0x56dd21,_0xf49aad);},'WFJMt':_0x467837(0x10a),'PHZOC':_0x467837(0x160),'rwCKr':_0x467837(0x13f),'BMsHb':function(_0x287b96,_0x55d37f,_0x5f57dc){return _0x287b96(_0x55d37f,_0x5f57dc);},'PalvA':'accessResp','QbDdj':function(_0xdbec3a,_0x23d5fe,_0x2005fd){return _0xdbec3a(_0x23d5fe,_0x2005fd);},'DLlHl':_0x467837(0xb1),'MOzYP':function(_0x73274a,_0x2a875e){return _0x73274a(_0x2a875e);},'EYneI':_0x467837(0x81),'RGFXe':function(_0x3b46d3,_0x23ef83,_0x4908dd){return _0x3b46d3(_0x23ef83,_0x4908dd);},'dSVDE':_0x467837(0x164),'PGfPg':_0x467837(0x177),'cvLLz':_0x467837(0x168),'dUkuY':_0x467837(0x94),'ONkom':'SSL\x20Configured','XkYcW':function(_0x4eca0d,_0x463336,_0xd93f38){return _0x4eca0d(_0x463336,_0xd93f38);},'Kmwif':function(_0x30cc84,_0xc6bb8d){return _0x30cc84+_0xc6bb8d;},'TFCWJ':_0x467837(0xb6),'WLjAm':_0x467837(0xc0)};let _0x4028b4,_0x16e745;try{global_registry[_0x467837(0x87)]=_0x4391fc['TnbOS'](uuidv4);!fs[_0x467837(0x12a)](_0x4391fc[_0x467837(0x116)](getCredentialsPath))&&(_0x16e745=_0x4391fc['ARDTv'],logger[_0x467837(0xf1)](_0x16e745),await _0x4391fc[_0x467837(0xff)](reportToGalactusAndSendToEDS,_0x15d503,_0x4028b4,_0x16e745,messageTypes[_0x467837(0xf3)],_0x4391fc['TmmOF'],_0x4391fc[_0x467837(0x16e)],_0x4391fc[_0x467837(0x111)]),process['exit'](0x1));_0x4391fc['enJCV'](sendInstrumentationEvent,_0x15d503,_0x4391fc[_0x467837(0xde)],messageTypes[_0x467837(0x158)],null,null,_0x15d503);const _0x203503=JSON[_0x467837(0xb0)](fs[_0x467837(0xf8)](_0x4391fc['fFWgm'](getCredentialsPath)));global_registry[_0x467837(0x156)]=_0x203503[_0x467837(0x83)][_0x467837(0x13b)],global_registry['bstackAccesskey']=_0x203503[_0x467837(0x83)][_0x467837(0xd4)];const _0x5f0d28=WS_ENDPOINT[_0x467837(0xed)](_0x4391fc['huoRk'],_0x203503[_0x467837(0x83)][_0x467837(0x13b)])['replace'](_0x4391fc[_0x467837(0xa2)],_0x203503[_0x467837(0x83)]['password']),_0x8c07e5={};_0x8c07e5[_0x467837(0x157)]=ws,_0x8c07e5[_0x467837(0x13d)]=0x36ee80,_0x4028b4=new ReconnectingWebSocket(_0x5f0d28,[],_0x8c07e5),global_registry[_0x467837(0x162)]=_0x4391fc[_0x467837(0xdf)](getAuthHeader,global_registry[_0x467837(0x156)],global_registry[_0x467837(0x95)]),await _0x4391fc[_0x467837(0xdf)](inputValidation,_0x15d503,_0x4028b4),logger['info'](_0x467837(0xd9)+global_registry[_0x467837(0xe4)]+_0x467837(0x165)+global_registry[_0x467837(0xbf)]);let _0x99ca57=await _0x4391fc[_0x467837(0x9d)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x467837(0x17c)],_0x4391fc['WFJMt'],_0x4028b4,webSocketUtils,_0x15d503);const _0x494682=await _0x99ca57[_0x467837(0x90)]();_0x4391fc[_0x467837(0xdf)](printResponse,_0x4391fc[_0x467837(0x11a)],_0x494682),_0x99ca57=await _0x99ca57[_0x467837(0x14a)]();let _0x3997a2=![];try{_0x3997a2=await _0x99ca57['isClusterPresent']();}catch(_0x2d90f5){const _0x1128ef=_0x4391fc[_0x467837(0x14f)][_0x467837(0x123)]('|');let _0x37ade8=0x0;while(!![]){switch(_0x1128ef[_0x37ade8++]){case'0':await _0x4391fc[_0x467837(0xff)](reportToGalactusAndSendToEDS,_0x15d503,_0x4028b4,_0x16e745,messageTypes['ERROR'],_0x4391fc[_0x467837(0xde)],'cluster-check-failed-'+global_registry[_0x467837(0xe4)],_0x4391fc[_0x467837(0x111)]);continue;case'1':_0x16e745=_0x467837(0x11b)+global_registry[_0x467837(0x17c)]+_0x467837(0x120)+global_registry[_0x467837(0xbf)]+'`\x20,error\x20:\x20'+_0x2d90f5;continue;case'2':_0x3997a2=null;continue;case'3':_0x16e745+='\x0a'+JSON[_0x467837(0xa7)](_0x2d90f5[_0x467837(0x129)]);continue;case'4':logger[_0x467837(0xf1)](_0x16e745);continue;}break;}}_0x3997a2&&logger[_0x467837(0x8d)](_0x467837(0x150)+global_registry[_0x467837(0x17c)]+_0x467837(0xbc));const _0x37d3fb=await _0x99ca57['checkAccess']();_0x4391fc['BMsHb'](printResponse,_0x4391fc[_0x467837(0x106)],_0x37d3fb);const _0x346d02=await _0x4391fc[_0x467837(0xa4)](curlRequest);_0x4391fc[_0x467837(0xa8)](printResponse,_0x4391fc[_0x467837(0xb2)],_0x346d02);const _0x3784d6=await _0x4391fc[_0x467837(0xca)](isTlsSupported,_0x4391fc[_0x467837(0x142)]);_0x4391fc['RGFXe'](printResponse,_0x4391fc['dSVDE'],_0x3784d6);const _0xc35bc1={};_0xc35bc1[_0x467837(0x14e)]=_0x4391fc['PGfPg'],_0xc35bc1[_0x467837(0x98)]=_0x494682;const _0xd3f558={};_0xd3f558[_0x467837(0x14e)]=_0x4391fc[_0x467837(0x167)],_0xd3f558[_0x467837(0x98)]=_0x37d3fb;const _0x2c953a={};_0x2c953a[_0x467837(0x14e)]=_0x4391fc[_0x467837(0x175)],_0x2c953a[_0x467837(0x98)]=_0x346d02;const _0xe2db3c={};_0xe2db3c[_0x467837(0x14e)]=_0x4391fc['ONkom'],_0xe2db3c[_0x467837(0x98)]=_0x3784d6;const _0x4b7fbf=[_0xc35bc1,_0xd3f558,_0x2c953a,_0xe2db3c],_0x5f54a2=await _0x4391fc[_0x467837(0xae)](generateReport,_0x4b7fbf,_0x3997a2),_0x40783d=new Date(),_0x3a77e6=_0x40783d[_0x467837(0xe3)]()+'_'+_0x4391fc[_0x467837(0x132)](_0x40783d['getUTCMonth'](),0x1)+'_'+_0x40783d['getUTCDate']()+'_'+_0x40783d['getUTCHours']()+'_'+_0x40783d['getUTCMinutes'](),_0x3dd3dd=_0x467837(0x119)+_0x3a77e6+_0x467837(0xfc);fs['writeFileSync'](_0x3dd3dd,_0x5f54a2,_0x4391fc[_0x467837(0xbd)]),logger['info'](_0x467837(0x15c)+_0x3dd3dd),process[_0x467837(0x14d)](0x0);}catch(_0x5d9e16){let _0x6b0628=_0x467837(0x9f)+_0x5d9e16+'\x20';logger[_0x467837(0xf1)](_0x6b0628),_0x6b0628+='\x0a'+JSON[_0x467837(0xa7)](_0x5d9e16[_0x467837(0x129)]),logger[_0x467837(0xa5)](_0x467837(0xa9)+_0x5d9e16[_0x467837(0x129)]);if(_0x4028b4){const _0x436980={};_0x436980[_0x467837(0x103)]=WS_EVENTS[_0x467837(0x143)],_0x436980[_0x467837(0x131)]=_0x6b0628,webSocketUtils[_0x467837(0x139)](_0x4028b4,_0x436980,_0x4391fc[_0x467837(0x111)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x40a48e={};_0x40a48e[_0x467837(0xf1)]=_0x6b0628,await _0x4391fc[_0x467837(0x9d)](sendInstrumentationEvent,_0x15d503,_0x4391fc['TmmOF'],messageTypes[_0x467837(0xf3)],_0x4391fc[_0x467837(0xf0)],_0x40a48e,_0x15d503),process[_0x467837(0x14d)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x16470c=a18_0x5b98;function a18_0x5b98(_0xa08078,_0xd21886){const _0x4b636e=a18_0x4b63();return a18_0x5b98=function(_0x5b98c5,_0x561599){_0x5b98c5=_0x5b98c5-0xa9;let _0x48574a=_0x4b636e[_0x5b98c5];return _0x48574a;},a18_0x5b98(_0xa08078,_0xd21886);}(function(_0x27b1d6,_0x2cb065){const _0x569308=a18_0x5b98,_0x2cc54a=_0x27b1d6();while(!![]){try{const _0x1a4e35=-parseInt(_0x569308(0xbb))/0x1*(parseInt(_0x569308(0xac))/0x2)+-parseInt(_0x569308(0xab))/0x3+parseInt(_0x569308(0xb5))/0x4+parseInt(_0x569308(0xb4))/0x5+parseInt(_0x569308(0xb2))/0x6+parseInt(_0x569308(0xaf))/0x7+parseInt(_0x569308(0xb1))/0x8*(-parseInt(_0x569308(0xba))/0x9);if(_0x1a4e35===_0x2cb065)break;else _0x2cc54a['push'](_0x2cc54a['shift']());}catch(_0x36e9ba){_0x2cc54a['push'](_0x2cc54a['shift']());}}}(a18_0x4b63,0x7d6da));function a18_0x4b63(){const _0x4c4714=['4LJvmfp','builder','demandCommand','strict','89772grKfoW','368678qxgghk','HNcam','start','2480114SsPMdX','Start\x20an\x20existing\x20Automation\x20grid.','10219120vEzBPn','2562912NozPwU','command','5073735zFSPAq','3048892teaJEY','../config/constants','commandDir','vBQOv','help','9kqehIf'];a18_0x4b63=function(){return _0x4c4714;};return a18_0x4b63();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x16470c(0xb6));exports[a18_0x16470c(0xb3)]=a18_0x16470c(0xae),exports['desc']=a18_0x16470c(0xb0),exports[a18_0x16470c(0xbc)]=function(_0x226a29){const _0x2f12d7=a18_0x16470c,_0x273cc2={};_0x273cc2[_0x2f12d7(0xb8)]='start_commands',_0x273cc2[_0x2f12d7(0xad)]='help';const _0x4b5ae3=_0x273cc2;return _0x226a29['usage'](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2f12d7(0xb7)](_0x4b5ae3[_0x2f12d7(0xb8)])[_0x2f12d7(0xa9)]()['recommendCommands']()[_0x2f12d7(0xaa)]()[_0x2f12d7(0xb9)](_0x4b5ae3[_0x2f12d7(0xad)]);},exports['handler']=function(_0x2451da){};
1
+ const a18_0x50a5f4=a18_0x48b4;function a18_0x48b4(_0x1e36c3,_0x5e74d7){const _0x4d575e=a18_0x4d57();return a18_0x48b4=function(_0x48b419,_0x3631dd){_0x48b419=_0x48b419-0x108;let _0x3a24cb=_0x4d575e[_0x48b419];return _0x3a24cb;},a18_0x48b4(_0x1e36c3,_0x5e74d7);}(function(_0x4880e9,_0x97d754){const _0x1e120e=a18_0x48b4,_0x2324c4=_0x4880e9();while(!![]){try{const _0x3cc1ef=-parseInt(_0x1e120e(0x10d))/0x1+-parseInt(_0x1e120e(0x10b))/0x2+parseInt(_0x1e120e(0x118))/0x3*(-parseInt(_0x1e120e(0x112))/0x4)+parseInt(_0x1e120e(0x110))/0x5*(-parseInt(_0x1e120e(0x108))/0x6)+parseInt(_0x1e120e(0x117))/0x7+parseInt(_0x1e120e(0x115))/0x8*(parseInt(_0x1e120e(0x119))/0x9)+parseInt(_0x1e120e(0x11a))/0xa*(parseInt(_0x1e120e(0x10a))/0xb);if(_0x3cc1ef===_0x97d754)break;else _0x2324c4['push'](_0x2324c4['shift']());}catch(_0x163369){_0x2324c4['push'](_0x2324c4['shift']());}}}(a18_0x4d57,0xa8042));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x50a5f4(0x114));exports[a18_0x50a5f4(0x10f)]='start',exports[a18_0x50a5f4(0x111)]=a18_0x50a5f4(0x11b),exports['builder']=function(_0x2c640a){const _0x2e8cfc=a18_0x50a5f4,_0x410e8e={};_0x410e8e[_0x2e8cfc(0x109)]=_0x2e8cfc(0x11c),_0x410e8e['NGgDP']='help';const _0x381d50=_0x410e8e;return _0x2c640a[_0x2e8cfc(0x113)](HELP_HEADER_MESSAGE['start'])[_0x2e8cfc(0x10e)](HELP_FOOTER_MESSAGE)['commandDir'](_0x381d50[_0x2e8cfc(0x109)])[_0x2e8cfc(0x11e)]()['recommendCommands']()[_0x2e8cfc(0x10c)]()['help'](_0x381d50[_0x2e8cfc(0x11d)]);},exports[a18_0x50a5f4(0x116)]=function(_0x8bf47d){};function a18_0x4d57(){const _0x415939=['5CwpdvI','desc','4EmrODl','usage','../config/constants','112DoNqBM','handler','714938syUSJz','4012863yHvdWY','744687UwkTaI','110YtuRiX','Start\x20an\x20existing\x20Automation\x20grid.','start_commands','NGgDP','demandCommand','7534836mIteRs','bVujP','4174269NIvKDh','2458830nAPhie','strict','923769dNQvUg','epilogue','command'];a18_0x4d57=function(){return _0x415939;};return a18_0x4d57();}
@@ -1 +1 @@
1
- function a19_0x2c6e(){const _0x41a526=['SWPAq','../../config/logger','JlayU','../../utils/webSocketUtils','reconnecting-websocket','body','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','grid','existsSync','PDKGH','../../config/constants','GvKER','readFileSync','skip-tls-cert-verify','../../utils/gridComponents','ELBtj','NBJuz','Grid\x20started','../../utils/utilityMethods','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Starting\x20grid\x20','aQEBH','info','bstackUsername','debug','region','error','../../utils/instrumentationUtils','vYHBB','Browserstack','<UsernamePlaceholder>','Szkwn','user','56dfkjwe','WebSocket','desc','statusCode','LnlZh','EsdoZ','sQKvH','NQESo','server-error','exit','start-grid-called','gridId','30543337YaOIKE','xZYzr','27pWnLNt','addListeners','replace','gBvwL','clusterRegion','uCidv','help','connectionTimeout','description','QbtYw','grid-id','username','parse','INFO','<PasswordPlaceholder>','clusterName','znGRL','XkKDo','xgdLm','type','QydXk','tnDbA','unauthorised','epilogue','Adding\x20Websocket\x20listeners','11986177cEJxFk','3166105TPrkth','8bxWgEQ','message','Skip\x20insecure\x20cert\x20verification.','4086150MMsFgn','76VqozSQ','../../utils/createk8sClient','name','ERROR','start','bstackAccesskey','CmtMs','skipTlsCertVerify','4746174wEPyxy','312621DUQNBT','password','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','mTODl','21381CsDbog','stringify','rySWs','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a19_0x2c6e=function(){return _0x41a526;};return a19_0x2c6e();}const a19_0xb0654c=a19_0x26cf;(function(_0x2049b8,_0x113435){const _0x2c755a=a19_0x26cf,_0x4a570e=_0x2049b8();while(!![]){try{const _0x35e584=-parseInt(_0x2c755a(0x1b9))/0x1*(-parseInt(_0x2c755a(0x17f))/0x2)+parseInt(_0x2c755a(0x1b5))/0x3*(parseInt(_0x2c755a(0x1ac))/0x4)+-parseInt(_0x2c755a(0x1a7))/0x5+-parseInt(_0x2c755a(0x1b4))/0x6+-parseInt(_0x2c755a(0x1a6))/0x7*(parseInt(_0x2c755a(0x1a8))/0x8)+parseInt(_0x2c755a(0x18d))/0x9*(-parseInt(_0x2c755a(0x1ab))/0xa)+parseInt(_0x2c755a(0x18b))/0xb;if(_0x35e584===_0x113435)break;else _0x4a570e['push'](_0x4a570e['shift']());}catch(_0x57dfb6){_0x4a570e['push'](_0x4a570e['shift']());}}}(a19_0x2c6e,0xf265e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0xb0654c(0x1c2)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0xb0654c(0x1c8)),{logger}=require(a19_0xb0654c(0x1bf)),{getCredentialsPath,getGridDetails}=require(a19_0xb0654c(0x1d0)),{scaleUpHubDeployment}=require(a19_0xb0654c(0x1cc)),{sendInstrumentationEvent}=require(a19_0xb0654c(0x1d9)),webSocketUtils=require(a19_0xb0654c(0x1c1)),{createK8sClient}=require(a19_0xb0654c(0x1ad)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x26cf(_0x15686f,_0x151f4c){const _0x2c6e31=a19_0x2c6e();return a19_0x26cf=function(_0x26cf2b,_0x3efd00){_0x26cf2b=_0x26cf2b-0x17b;let _0x59d30d=_0x2c6e31[_0x26cf2b];return _0x59d30d;},a19_0x26cf(_0x15686f,_0x151f4c);}exports['command']=a19_0xb0654c(0x1c5),exports[a19_0xb0654c(0x181)]='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x3f2d53){const _0x2645fd=a19_0xb0654c,_0x2db1b5={};_0x2db1b5[_0x2645fd(0x19d)]=_0x2645fd(0x1c4),_0x2db1b5[_0x2645fd(0x1a1)]='string',_0x2db1b5['qvppw']=_0x2645fd(0x1aa),_0x2db1b5[_0x2645fd(0x186)]='boolean',_0x2db1b5['LnlZh']='help';const _0x98a37a=_0x2db1b5,_0x4bb50b={};_0x4bb50b[_0x2645fd(0x195)]=_0x98a37a[_0x2645fd(0x19d)],_0x4bb50b[_0x2645fd(0x1a0)]=_0x98a37a[_0x2645fd(0x1a1)];const _0x678ba4={};_0x678ba4[_0x2645fd(0x195)]=_0x98a37a['qvppw'],_0x678ba4['type']=_0x98a37a[_0x2645fd(0x186)],_0x678ba4['default']=![];const _0x5eaaaf={};return _0x5eaaaf[_0x2645fd(0x197)]=_0x4bb50b,_0x5eaaaf[_0x2645fd(0x1cb)]=_0x678ba4,_0x3f2d53['usage'](HELP_HEADER_MESSAGE[_0x2645fd(0x1b0)])[_0x2645fd(0x1a4)](HELP_FOOTER_MESSAGE)['options'](_0x5eaaaf)[_0x2645fd(0x193)](_0x98a37a[_0x2645fd(0x183)])['argv'];},exports['handler']=async function(_0x3197af){const _0x1f5e44=a19_0xb0654c,_0x3c9a47={'rySWs':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','ELBtj':function(_0x2f6359){return _0x2f6359();},'mHfHO':_0x1f5e44(0x1d1),'uCidv':function(_0x2a416b,_0x38736a,_0x1e4039,_0x12169d,_0x1d66aa,_0x3f65ad,_0x237385){return _0x2a416b(_0x38736a,_0x1e4039,_0x12169d,_0x1d66aa,_0x3f65ad,_0x237385);},'xZYzr':_0x1f5e44(0x189),'mTODl':'init-not-called','sQKvH':function(_0x327bb3,_0x3301e2,_0xeeb850,_0x3cee55,_0xeb870,_0x14d22d,_0x23ddc6){return _0x327bb3(_0x3301e2,_0xeeb850,_0x3cee55,_0xeb870,_0x14d22d,_0x23ddc6);},'tnDbA':_0x1f5e44(0x17c),'Szkwn':_0x1f5e44(0x19b),'XkKDo':_0x1f5e44(0x1a5),'vYHBB':function(_0x4c6210,_0x36cbe2,_0x2fa602,_0x50700b){return _0x4c6210(_0x36cbe2,_0x2fa602,_0x50700b);},'gBvwL':function(_0x4098d9,_0x371415,_0x3547c8){return _0x4098d9(_0x371415,_0x3547c8);},'xgdLm':function(_0x334bd9,_0x33c427,_0x578612){return _0x334bd9(_0x33c427,_0x578612);},'EsdoZ':_0x1f5e44(0x1cf),'QbtYw':function(_0x22af6b,_0x1a25ba){return _0x22af6b===_0x1a25ba;},'NBJuz':_0x1f5e44(0x1b7),'JlayU':function(_0x1b1d73,_0x456279,_0x531cca,_0x549f7b,_0x3f8f4e,_0x3b65c3,_0x483019){return _0x1b1d73(_0x456279,_0x531cca,_0x549f7b,_0x3f8f4e,_0x3b65c3,_0x483019);},'GvKER':_0x1f5e44(0x1a3),'iGbWB':function(_0xb08dc7,_0x2ed31c){return _0xb08dc7===_0x2ed31c;},'CmtMs':function(_0x3b67a0,_0x4b1852,_0x45c17d,_0x1290b1,_0x477216,_0x477cfe,_0x505640){return _0x3b67a0(_0x4b1852,_0x45c17d,_0x1290b1,_0x477216,_0x477cfe,_0x505640);},'PDKGH':'invalid-grid-id','SWPAq':function(_0x822b42,_0x5a39b9,_0x1a948e,_0x25ffb0,_0x5d0140,_0x239aac,_0xa8b2ea){return _0x822b42(_0x5a39b9,_0x1a948e,_0x25ffb0,_0x5d0140,_0x239aac,_0xa8b2ea);},'aQEBH':_0x1f5e44(0x187)};let _0x422334;try{!_0x3197af['gridId']&&(logger[_0x1f5e44(0x1d8)](_0x3c9a47[_0x1f5e44(0x1bb)]),process[_0x1f5e44(0x188)](0x1));!fs[_0x1f5e44(0x1c6)](_0x3c9a47[_0x1f5e44(0x1cd)](getCredentialsPath))&&(logger[_0x1f5e44(0x1d8)](_0x3c9a47['mHfHO']),await _0x3c9a47['uCidv'](sendInstrumentationEvent,_0x3197af,_0x3c9a47['xZYzr'],messageTypes[_0x1f5e44(0x1af)],_0x3c9a47[_0x1f5e44(0x1b8)],null,_0x3197af),process[_0x1f5e44(0x188)](0x1));logger[_0x1f5e44(0x1d4)](_0x1f5e44(0x1d2)+_0x3197af[_0x1f5e44(0x18a)]),await _0x3c9a47[_0x1f5e44(0x185)](sendInstrumentationEvent,_0x3197af,_0x3c9a47[_0x1f5e44(0x18c)],messageTypes[_0x1f5e44(0x19a)],null,null,_0x3197af);const _0x4db42c=JSON[_0x1f5e44(0x199)](fs[_0x1f5e44(0x1ca)](_0x3c9a47[_0x1f5e44(0x1cd)](getCredentialsPath)));global_registry[_0x1f5e44(0x1d5)]=_0x4db42c[_0x1f5e44(0x17b)]['username'],global_registry[_0x1f5e44(0x1b1)]=_0x4db42c[_0x1f5e44(0x17b)]['password'];const _0x286a3a=WS_ENDPOINT['replace'](_0x3c9a47[_0x1f5e44(0x1a2)],_0x4db42c[_0x1f5e44(0x17b)]['username'])[_0x1f5e44(0x18f)](_0x3c9a47[_0x1f5e44(0x17d)],_0x4db42c[_0x1f5e44(0x17b)][_0x1f5e44(0x1b6)]),_0x1e88ca={};_0x1e88ca[_0x1f5e44(0x180)]=ws,_0x1e88ca[_0x1f5e44(0x194)]=0x36ee80,_0x422334=new ReconnectingWebSocket(_0x286a3a,[],_0x1e88ca),logger[_0x1f5e44(0x1d6)](_0x3c9a47[_0x1f5e44(0x19e)]),webSocketUtils[_0x1f5e44(0x18e)](_0x422334,_0x3197af[_0x1f5e44(0x17e)],_0x3197af[_0x1f5e44(0x1b6)]);const [_0x323d30,_0x5803f6]=await _0x3c9a47[_0x1f5e44(0x1da)](getGridDetails,_0x4db42c[_0x1f5e44(0x17b)][_0x1f5e44(0x198)],_0x4db42c['Browserstack'][_0x1f5e44(0x1b6)],_0x3197af[_0x1f5e44(0x18a)]);if(_0x5803f6){const _0x146ed6=_0x5803f6['info'];global_registry['cloudProvider']=_0x146ed6['cloudProvider'],global_registry[_0x1f5e44(0x191)]=_0x146ed6[_0x1f5e44(0x1d7)],global_registry[_0x1f5e44(0x19c)]=_0x146ed6[_0x1f5e44(0x19c)];const _0x43ee69=await _0x3c9a47[_0x1f5e44(0x192)](getCloudProviderObject,_0x146ed6['cloudProvider'],_0x146ed6['clusterName'],_0x146ed6[_0x1f5e44(0x1ae)],_0x422334,webSocketUtils,_0x3197af),[_0x23e077,_0x2a6765,_0x38c825,_0x44406f,_0x46796c,_0xc53819]=await _0x3c9a47[_0x1f5e44(0x190)](createK8sClient,_0x43ee69,_0x3197af[_0x1f5e44(0x1b3)]);await _0x3c9a47[_0x1f5e44(0x19f)](scaleUpHubDeployment,_0x2a6765,_0x146ed6[_0x1f5e44(0x1ae)]),logger[_0x1f5e44(0x1d4)](_0x3c9a47[_0x1f5e44(0x184)]),process[_0x1f5e44(0x188)](0x0);}_0x3c9a47[_0x1f5e44(0x196)](_0x323d30['statusCode'],0x191)&&(logger[_0x1f5e44(0x1d8)](_0x3c9a47[_0x1f5e44(0x1ce)]),await _0x3c9a47[_0x1f5e44(0x1c0)](sendInstrumentationEvent,_0x3197af,_0x3c9a47[_0x1f5e44(0x18c)],messageTypes[_0x1f5e44(0x1af)],_0x3c9a47[_0x1f5e44(0x1c9)],null,_0x3197af),process[_0x1f5e44(0x188)](0x1)),_0x3c9a47['iGbWB'](_0x323d30[_0x1f5e44(0x182)],0x190)&&(logger[_0x1f5e44(0x1d8)](JSON[_0x1f5e44(0x199)](_0x323d30[_0x1f5e44(0x1c3)])[_0x1f5e44(0x1a9)]),await _0x3c9a47[_0x1f5e44(0x1b2)](sendInstrumentationEvent,_0x3197af,_0x3c9a47[_0x1f5e44(0x18c)],messageTypes[_0x1f5e44(0x1af)],_0x3c9a47[_0x1f5e44(0x1c7)],null,_0x3197af),process[_0x1f5e44(0x188)](0x1)),logger[_0x1f5e44(0x1d8)](_0x1f5e44(0x1bd)+JSON[_0x1f5e44(0x1ba)](_0x323d30)),await _0x3c9a47[_0x1f5e44(0x1be)](sendInstrumentationEvent,_0x3197af,_0x3c9a47[_0x1f5e44(0x18c)],messageTypes[_0x1f5e44(0x1af)],_0x3c9a47[_0x1f5e44(0x1d3)],_0x323d30,_0x3197af),process['exit'](0x1);}catch(_0x1d33c4){const _0x310c8a='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x1d33c4+'\x20\x0a'+JSON[_0x1f5e44(0x1ba)](_0x1d33c4[_0x1f5e44(0x1bc)])+'\x20';logger[_0x1f5e44(0x1d8)](_0x310c8a),process[_0x1f5e44(0x188)](0x1);}};
1
+ const a19_0x2d4045=a19_0x73ca;function a19_0x15d5(){const _0x196804=['error','gridId','name','desc','KVCNA','password','../../config/constants','UPvBv','addListeners','start','1199635IVLYjZ','existsSync','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../utils/webSocketUtils','7678mwStwg','727692oVEVrL','yJzoI','options','skipTlsCertVerify','clusterRegion','../../utils/utilityMethods','replace','6dbLhfS','3868725iNfqTa','RfNzL','start-grid-called','4dpKIlM','epilogue','connectionTimeout','unauthorised','handler','boolean','<PasswordPlaceholder>','bstackUsername','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','PibIS','uvcfR','skip-tls-cert-verify','statusCode','Skip\x20insecure\x20cert\x20verification.','suwXZ','builder','mWRiK','JyFWh','Grid\x20started','command','ERROR','9090DuGAmW','Ylmdq','server-error','username','bstackAccesskey','INFO','default','Vaqgt','argv','../../config/logger','7144lcdBxB','stack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','invalid-grid-id','EHgpA','parse','FPhpe','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','info','LeRRS','readFileSync','zvxgE','btJpL','clusterName','reconnecting-websocket','VjrQI','460329ZOHnio','aAQvK','GQjoN','grid','stringify','cloudProvider','bCkIo','grid-id','uWthm','WebSocket','10176tuVbSS','exit','user','Starting\x20grid\x20','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','type','yuXGd','Browserstack','Start\x20an\x20existing\x20Automation\x20grid.','HyYzB','530300gxzcMR','../../utils/gridComponents','xNrrK','<UsernamePlaceholder>','uImny','6UOfrMw'];a19_0x15d5=function(){return _0x196804;};return a19_0x15d5();}(function(_0xf5b797,_0x326d2d){const _0x46a36e=a19_0x73ca,_0x55a693=_0xf5b797();while(!![]){try{const _0x3d67c2=parseInt(_0x46a36e(0x16c))/0x1+-parseInt(_0x46a36e(0x15c))/0x2*(-parseInt(_0x46a36e(0x142))/0x3)+-parseInt(_0x46a36e(0x177))/0x4*(-parseInt(_0x46a36e(0x167))/0x5)+-parseInt(_0x46a36e(0x173))/0x6*(-parseInt(_0x46a36e(0x174))/0x7)+parseInt(_0x46a36e(0x132))/0x8*(-parseInt(_0x46a36e(0x18c))/0x9)+parseInt(_0x46a36e(0x157))/0xa+-parseInt(_0x46a36e(0x16b))/0xb*(parseInt(_0x46a36e(0x14c))/0xc);if(_0x3d67c2===_0x326d2d)break;else _0x55a693['push'](_0x55a693['shift']());}catch(_0x511fc0){_0x55a693['push'](_0x55a693['shift']());}}}(a19_0x15d5,0x83cab));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2d4045(0x140)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2d4045(0x163)),{logger}=require(a19_0x2d4045(0x131)),{getCredentialsPath,getGridDetails}=require(a19_0x2d4045(0x171)),{scaleUpHubDeployment}=require(a19_0x2d4045(0x158)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x2d4045(0x16a)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x73ca(_0x87c1e6,_0x340b15){const _0x15d5b6=a19_0x15d5();return a19_0x73ca=function(_0x73caa0,_0x10fc99){_0x73caa0=_0x73caa0-0x12a;let _0x2699d1=_0x15d5b6[_0x73caa0];return _0x2699d1;},a19_0x73ca(_0x87c1e6,_0x340b15);}exports[a19_0x2d4045(0x18a)]=a19_0x2d4045(0x145),exports[a19_0x2d4045(0x160)]=a19_0x2d4045(0x155),exports[a19_0x2d4045(0x186)]=function(_0x3f4ac0){const _0x567117=a19_0x2d4045,_0x28f68c={};_0x28f68c[_0x567117(0x181)]=_0x567117(0x169),_0x28f68c['GQjoN']='string',_0x28f68c['uWthm']=_0x567117(0x184),_0x28f68c[_0x567117(0x188)]=_0x567117(0x17c),_0x28f68c[_0x567117(0x15b)]=_0x567117(0x150);const _0x54faf9=_0x28f68c,_0x5b6a39={};_0x5b6a39['description']=_0x54faf9['uvcfR'],_0x5b6a39['type']=_0x54faf9[_0x567117(0x144)];const _0x1e1418={};_0x1e1418['description']=_0x54faf9[_0x567117(0x14a)],_0x1e1418[_0x567117(0x152)]=_0x54faf9[_0x567117(0x188)],_0x1e1418[_0x567117(0x12e)]=![];const _0x292c6a={};return _0x292c6a[_0x567117(0x149)]=_0x5b6a39,_0x292c6a[_0x567117(0x182)]=_0x1e1418,_0x3f4ac0['usage'](HELP_HEADER_MESSAGE[_0x567117(0x166)])[_0x567117(0x178)](HELP_FOOTER_MESSAGE)[_0x567117(0x16e)](_0x292c6a)[_0x567117(0x150)](_0x54faf9[_0x567117(0x15b)])[_0x567117(0x130)];},exports[a19_0x2d4045(0x17b)]=async function(_0x4b51e9){const _0x83c500=a19_0x2d4045,_0x277236={'EHgpA':_0x83c500(0x134),'RfNzL':function(_0x4c4a9a){return _0x4c4a9a();},'FPhpe':_0x83c500(0x17f),'UPvBv':function(_0x1f5e59,_0x8a231,_0x15ffc6,_0x18512c,_0x5c9591,_0x49006d,_0x121f71){return _0x1f5e59(_0x8a231,_0x15ffc6,_0x18512c,_0x5c9591,_0x49006d,_0x121f71);},'yuXGd':_0x83c500(0x176),'Ylmdq':'init-not-called','LeRRS':function(_0x235dd9,_0x4c88e7,_0x5c565b,_0x4dec43,_0x465469,_0x21c8ab,_0x12c1fd){return _0x235dd9(_0x4c88e7,_0x5c565b,_0x4dec43,_0x465469,_0x21c8ab,_0x12c1fd);},'mWRiK':function(_0x1a554e){return _0x1a554e();},'KVCNA':_0x83c500(0x15a),'vwBiY':_0x83c500(0x17d),'UmDva':'Adding\x20Websocket\x20listeners','xNrrK':function(_0x4befeb,_0xb512f4,_0x2cb98d,_0x5775b0){return _0x4befeb(_0xb512f4,_0x2cb98d,_0x5775b0);},'suwXZ':function(_0x57e69d,_0x512d54,_0x3810f3,_0x146614,_0x407000,_0x4b24f5,_0x5f1ada){return _0x57e69d(_0x512d54,_0x3810f3,_0x146614,_0x407000,_0x4b24f5,_0x5f1ada);},'yJzoI':function(_0x48915d,_0x3a8ebc,_0x5ae044){return _0x48915d(_0x3a8ebc,_0x5ae044);},'bCkIo':function(_0x5e1ca3,_0x443c60,_0x4d41b8){return _0x5e1ca3(_0x443c60,_0x4d41b8);},'Vaqgt':_0x83c500(0x189),'HyYzB':function(_0x3d9c78,_0x360a40){return _0x3d9c78===_0x360a40;},'VjrQI':_0x83c500(0x151),'btJpL':_0x83c500(0x17a),'PibIS':_0x83c500(0x135),'zvxgE':function(_0x2030d1,_0x3ccebf,_0x549f86,_0x34db9c,_0xc5f4a8,_0x282067,_0x3e2469){return _0x2030d1(_0x3ccebf,_0x549f86,_0x34db9c,_0xc5f4a8,_0x282067,_0x3e2469);},'aAQvK':_0x83c500(0x12a)};let _0x47797c;try{!_0x4b51e9[_0x83c500(0x15e)]&&(logger[_0x83c500(0x15d)](_0x277236[_0x83c500(0x136)]),process['exit'](0x1));!fs[_0x83c500(0x168)](_0x277236[_0x83c500(0x175)](getCredentialsPath))&&(logger[_0x83c500(0x15d)](_0x277236[_0x83c500(0x138)]),await _0x277236[_0x83c500(0x164)](sendInstrumentationEvent,_0x4b51e9,_0x277236[_0x83c500(0x153)],messageTypes[_0x83c500(0x18b)],_0x277236[_0x83c500(0x18d)],null,_0x4b51e9),process['exit'](0x1));logger[_0x83c500(0x13a)](_0x83c500(0x14f)+_0x4b51e9[_0x83c500(0x15e)]),await _0x277236[_0x83c500(0x13b)](sendInstrumentationEvent,_0x4b51e9,_0x277236[_0x83c500(0x153)],messageTypes[_0x83c500(0x12d)],null,null,_0x4b51e9);const _0x55e5b6=JSON[_0x83c500(0x137)](fs[_0x83c500(0x13c)](_0x277236[_0x83c500(0x187)](getCredentialsPath)));global_registry[_0x83c500(0x17e)]=_0x55e5b6[_0x83c500(0x154)][_0x83c500(0x12b)],global_registry[_0x83c500(0x12c)]=_0x55e5b6[_0x83c500(0x154)][_0x83c500(0x162)];const _0x5a1e7f=WS_ENDPOINT[_0x83c500(0x172)](_0x277236[_0x83c500(0x161)],_0x55e5b6[_0x83c500(0x154)]['username'])['replace'](_0x277236['vwBiY'],_0x55e5b6[_0x83c500(0x154)][_0x83c500(0x162)]),_0x1bdc80={};_0x1bdc80[_0x83c500(0x14b)]=ws,_0x1bdc80[_0x83c500(0x179)]=0x36ee80,_0x47797c=new ReconnectingWebSocket(_0x5a1e7f,[],_0x1bdc80),logger['debug'](_0x277236['UmDva']),webSocketUtils[_0x83c500(0x165)](_0x47797c,_0x4b51e9[_0x83c500(0x14e)],_0x4b51e9[_0x83c500(0x162)]);const [_0x21243e,_0x4fdb12]=await _0x277236[_0x83c500(0x159)](getGridDetails,_0x55e5b6[_0x83c500(0x154)][_0x83c500(0x12b)],_0x55e5b6['Browserstack']['password'],_0x4b51e9['gridId']);if(_0x4fdb12){const _0x104a16=_0x4fdb12[_0x83c500(0x13a)];global_registry['cloudProvider']=_0x104a16[_0x83c500(0x147)],global_registry[_0x83c500(0x170)]=_0x104a16['region'],global_registry['clusterName']=_0x104a16[_0x83c500(0x13f)];const _0x302e0f=await _0x277236[_0x83c500(0x185)](getCloudProviderObject,_0x104a16[_0x83c500(0x147)],_0x104a16['clusterName'],_0x104a16[_0x83c500(0x15f)],_0x47797c,webSocketUtils,_0x4b51e9),[_0x13baca,_0xeea59f,_0x83baee,_0x15fb3b,_0x5b7bcc,_0x497ec1]=await _0x277236[_0x83c500(0x16d)](createK8sClient,_0x302e0f,_0x4b51e9[_0x83c500(0x16f)]);await _0x277236[_0x83c500(0x148)](scaleUpHubDeployment,_0xeea59f,_0x104a16[_0x83c500(0x15f)]),logger[_0x83c500(0x13a)](_0x277236[_0x83c500(0x12f)]),process[_0x83c500(0x14d)](0x0);}_0x277236[_0x83c500(0x156)](_0x21243e[_0x83c500(0x183)],0x191)&&(logger['error'](_0x277236[_0x83c500(0x141)]),await _0x277236[_0x83c500(0x13b)](sendInstrumentationEvent,_0x4b51e9,_0x277236['yuXGd'],messageTypes[_0x83c500(0x18b)],_0x277236[_0x83c500(0x13e)],null,_0x4b51e9),process[_0x83c500(0x14d)](0x1)),_0x277236[_0x83c500(0x156)](_0x21243e['statusCode'],0x190)&&(logger[_0x83c500(0x15d)](JSON[_0x83c500(0x137)](_0x21243e['body'])['message']),await _0x277236[_0x83c500(0x164)](sendInstrumentationEvent,_0x4b51e9,_0x277236['yuXGd'],messageTypes[_0x83c500(0x18b)],_0x277236[_0x83c500(0x180)],null,_0x4b51e9),process[_0x83c500(0x14d)](0x1)),logger[_0x83c500(0x15d)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x21243e)),await _0x277236[_0x83c500(0x13d)](sendInstrumentationEvent,_0x4b51e9,_0x277236[_0x83c500(0x153)],messageTypes[_0x83c500(0x18b)],_0x277236[_0x83c500(0x143)],_0x21243e,_0x4b51e9),process[_0x83c500(0x14d)](0x1);}catch(_0x314df7){const _0x4ef75f=_0x83c500(0x139)+_0x314df7+'\x20\x0a'+JSON[_0x83c500(0x146)](_0x314df7[_0x83c500(0x133)])+'\x20';logger[_0x83c500(0x15d)](_0x4ef75f),process[_0x83c500(0x14d)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x3679db=a20_0x5038;function a20_0x4643(){const _0x53165d=['87HzpazO','Stop\x20a\x20running\x20Automation\x20grid.','demandCommand','1421312QTjZbl','1074511bzrJbl','epilogue','177918QdSSho','PqnLa','8NAixvi','builder','40878zfZwek','desc','commandDir','recommendCommands','7jBrpOJ','395790PDRmLM','stop','44455170dtzLtS','handler','RTuBg','../config/constants','14045391CkDkqF','help','strict'];a20_0x4643=function(){return _0x53165d;};return a20_0x4643();}function a20_0x5038(_0x4e61ef,_0x137fed){const _0x4643de=a20_0x4643();return a20_0x5038=function(_0x503895,_0x5e0279){_0x503895=_0x503895-0x6e;let _0x20f3dc=_0x4643de[_0x503895];return _0x20f3dc;},a20_0x5038(_0x4e61ef,_0x137fed);}(function(_0xa6580d,_0x53c30c){const _0x55c940=a20_0x5038,_0x22b3ea=_0xa6580d();while(!![]){try{const _0x154b2f=-parseInt(_0x55c940(0x81))/0x1+-parseInt(_0x55c940(0x6f))/0x2*(parseInt(_0x55c940(0x7d))/0x3)+-parseInt(_0x55c940(0x80))/0x4+-parseInt(_0x55c940(0x74))/0x5+parseInt(_0x55c940(0x83))/0x6*(parseInt(_0x55c940(0x73))/0x7)+parseInt(_0x55c940(0x85))/0x8*(-parseInt(_0x55c940(0x7a))/0x9)+parseInt(_0x55c940(0x76))/0xa;if(_0x154b2f===_0x53c30c)break;else _0x22b3ea['push'](_0x22b3ea['shift']());}catch(_0x2e70a0){_0x22b3ea['push'](_0x22b3ea['shift']());}}}(a20_0x4643,0xc672b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x3679db(0x79));exports['command']='stop',exports[a20_0x3679db(0x70)]=a20_0x3679db(0x7e),exports[a20_0x3679db(0x6e)]=function(_0x206ca4){const _0x2b4112=a20_0x3679db,_0x342240={};_0x342240[_0x2b4112(0x78)]='stop_commands',_0x342240['PqnLa']=_0x2b4112(0x7b);const _0x11c16a=_0x342240;return _0x206ca4['usage'](HELP_HEADER_MESSAGE[_0x2b4112(0x75)])[_0x2b4112(0x82)](HELP_FOOTER_MESSAGE)[_0x2b4112(0x71)](_0x11c16a['RTuBg'])[_0x2b4112(0x7f)]()[_0x2b4112(0x72)]()[_0x2b4112(0x7c)]()['help'](_0x11c16a[_0x2b4112(0x84)]);},exports[a20_0x3679db(0x77)]=function(_0x7e5dc8){};
1
+ const a20_0x14c506=a20_0x226a;function a20_0x4e3c(){const _0x41be37=['handler','245RPnXLF','abGls','1674810WvQkkA','391167Ptvide','usage','desc','8011792gqGPpf','487359GEnsrf','70024eVibKD','stop','builder','Stop\x20a\x20running\x20Automation\x20grid.','1128768repBPp','recommendCommands','strict','demandCommand','5670756BoPogq','JINBH','help','../config/constants'];a20_0x4e3c=function(){return _0x41be37;};return a20_0x4e3c();}function a20_0x226a(_0x315633,_0x1ae08b){const _0x4e3c50=a20_0x4e3c();return a20_0x226a=function(_0x226a39,_0xd83cd0){_0x226a39=_0x226a39-0xa8;let _0x2842b3=_0x4e3c50[_0x226a39];return _0x2842b3;},a20_0x226a(_0x315633,_0x1ae08b);}(function(_0xd0693a,_0x1085f9){const _0x321bac=a20_0x226a,_0x582b65=_0xd0693a();while(!![]){try{const _0xd354e3=parseInt(_0x321bac(0xbc))/0x1+parseInt(_0x321bac(0xb0))/0x2+parseInt(_0x321bac(0xab))/0x3+parseInt(_0x321bac(0xac))/0x4*(parseInt(_0x321bac(0xb9))/0x5)+parseInt(_0x321bac(0xbb))/0x6+-parseInt(_0x321bac(0xb4))/0x7+-parseInt(_0x321bac(0xaa))/0x8;if(_0xd354e3===_0x1085f9)break;else _0x582b65['push'](_0x582b65['shift']());}catch(_0x18e9c5){_0x582b65['push'](_0x582b65['shift']());}}}(a20_0x4e3c,0x6c3d7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x14c506(0xb7));exports['command']='stop',exports[a20_0x14c506(0xa9)]=a20_0x14c506(0xaf),exports[a20_0x14c506(0xae)]=function(_0x117a6c){const _0x3919a0=a20_0x14c506,_0x57c0f5={};_0x57c0f5['abGls']='stop_commands',_0x57c0f5[_0x3919a0(0xb5)]=_0x3919a0(0xb6);const _0xb8956e=_0x57c0f5;return _0x117a6c[_0x3919a0(0xa8)](HELP_HEADER_MESSAGE[_0x3919a0(0xad)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0xb8956e[_0x3919a0(0xba)])[_0x3919a0(0xb3)]()[_0x3919a0(0xb1)]()[_0x3919a0(0xb2)]()[_0x3919a0(0xb6)](_0xb8956e[_0x3919a0(0xb5)]);},exports[a20_0x14c506(0xb8)]=function(_0x58f7f5){};
@@ -1 +1 @@
1
- const a21_0x1e8597=a21_0x3661;function a21_0x24d9(){const _0xf1e814=['unauthorised','305512WSniYr','bstackUsername','../../config/logger','invalid-grid-id','argv','Stopping\x20grid\x20','replace','command','../../utils/createk8sClient','YelPk','61298EpteeI','existsSync','TVSai','fGhQM','epilogue','hayte','3191040JDMoPP','skipTlsCertVerify','grid-id','username','gridId','87944HLUGDP','skip-tls-cert-verify','DTQLF','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','UGcPM','clusterRegion','type','Grid\x20stoppped.','debug','help','196qxIMgZ','stack','liQNq','description','user','statusCode','wXvPy','error','../../utils/webSocketUtils','usage','exit','363448qOohEP','cZYsz','init-not-called','boolean','../../utils/gridComponents','RRoko','desc','stringify','../../utils/instrumentationUtils','iGSwA','ZJGOG','parse','WvQir','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','default','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','string','INFO','1383775gNkYUK','body','24oYCkUE','gsHwn','name','stop','gIRTp','Browserstack','kotin','ERROR','addListeners','cloudProvider','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2281140gkLdbg','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','message','<UsernamePlaceholder>','server-error','YOPKR','GLkXH','../../cloudproviders/utils','clusterName','reconnecting-websocket','../../utils/utilityMethods','builder','WebSocket','Adding\x20Websocket\x20listeners','SetRr','CbqOq','info','password'];a21_0x24d9=function(){return _0xf1e814;};return a21_0x24d9();}function a21_0x3661(_0x5993cf,_0x12a863){const _0x24d988=a21_0x24d9();return a21_0x3661=function(_0x3661e0,_0x3398f6){_0x3661e0=_0x3661e0-0x83;let _0x4727fd=_0x24d988[_0x3661e0];return _0x4727fd;},a21_0x3661(_0x5993cf,_0x12a863);}(function(_0x5c6867,_0x5c5dcd){const _0x26b463=a21_0x3661,_0x104778=_0x5c6867();while(!![]){try{const _0x31d5c3=parseInt(_0x26b463(0x95))/0x1+parseInt(_0x26b463(0x9f))/0x2*(-parseInt(_0x26b463(0xd3))/0x3)+parseInt(_0x26b463(0xbf))/0x4+-parseInt(_0x26b463(0xd1))/0x5+parseInt(_0x26b463(0xde))/0x6+-parseInt(_0x26b463(0xb4))/0x7*(-parseInt(_0x26b463(0xaa))/0x8)+-parseInt(_0x26b463(0xa5))/0x9;if(_0x31d5c3===_0x5c5dcd)break;else _0x104778['push'](_0x104778['shift']());}catch(_0x18fa49){_0x104778['push'](_0x104778['shift']());}}}(a21_0x24d9,0x32bf5));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x1e8597(0x8b)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x1e8597(0x97)),{getCredentialsPath,getGridDetails}=require(a21_0x1e8597(0x8c)),{scaleDownHubDeployment}=require(a21_0x1e8597(0xc3)),{sendInstrumentationEvent}=require(a21_0x1e8597(0xc7)),webSocketUtils=require(a21_0x1e8597(0xbc)),{createK8sClient}=require(a21_0x1e8597(0x9d)),{getCloudProviderObject}=require(a21_0x1e8597(0x89));exports[a21_0x1e8597(0x9c)]='grid',exports[a21_0x1e8597(0xc5)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x1e8597(0x8d)]=function(_0x54ad06){const _0x387eff=a21_0x1e8597,_0x4aecb2={};_0x4aecb2[_0x387eff(0x87)]=_0x387eff(0xad),_0x4aecb2['ZJGOG']=_0x387eff(0xcf),_0x4aecb2['CbqOq']='Skip\x20insecure\x20cert\x20verification.',_0x4aecb2[_0x387eff(0xc8)]=_0x387eff(0xc2),_0x4aecb2['ZCTEu']=_0x387eff(0xb3);const _0x3372bb=_0x4aecb2,_0x805ddf={};_0x805ddf[_0x387eff(0xb7)]=_0x3372bb[_0x387eff(0x87)],_0x805ddf[_0x387eff(0xb0)]=_0x3372bb[_0x387eff(0xc9)];const _0x1b2987={};_0x1b2987[_0x387eff(0xb7)]=_0x3372bb[_0x387eff(0x91)],_0x1b2987['type']=_0x3372bb[_0x387eff(0xc8)],_0x1b2987[_0x387eff(0xcd)]=![];const _0xaac582={};return _0xaac582[_0x387eff(0xa7)]=_0x805ddf,_0xaac582[_0x387eff(0xab)]=_0x1b2987,_0x54ad06[_0x387eff(0xbd)](HELP_HEADER_MESSAGE[_0x387eff(0xd6)])[_0x387eff(0xa3)](HELP_FOOTER_MESSAGE)['options'](_0xaac582)[_0x387eff(0xb3)](_0x3372bb['ZCTEu'])[_0x387eff(0x99)];},exports['handler']=async function(_0x27dc8b){const _0x22a54d=a21_0x1e8597,_0x3ccaaf={'DTQLF':_0x22a54d(0xce),'fGhQM':function(_0x2682f3){return _0x2682f3();},'gIRTp':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YelPk':function(_0x4ca182,_0x5e5bba,_0x26876d,_0x1cdece,_0x2a72ac,_0x4fcdc5,_0x3c560d){return _0x4ca182(_0x5e5bba,_0x26876d,_0x1cdece,_0x2a72ac,_0x4fcdc5,_0x3c560d);},'cZYsz':'stop-grid-called','MYwTt':_0x22a54d(0xc1),'wXvPy':_0x22a54d(0x85),'RxKeo':'<PasswordPlaceholder>','TVSai':_0x22a54d(0x8f),'RRoko':function(_0x17d633,_0x548a88,_0x4535a1,_0x1fb960){return _0x17d633(_0x548a88,_0x4535a1,_0x1fb960);},'hayte':function(_0x2cde29,_0x36ea0d,_0x38bbf8,_0x317936,_0x20fabe,_0x31eb59,_0x58170d){return _0x2cde29(_0x36ea0d,_0x38bbf8,_0x317936,_0x20fabe,_0x31eb59,_0x58170d);},'gsHwn':function(_0x513ec9,_0x208ab4,_0x14a276){return _0x513ec9(_0x208ab4,_0x14a276);},'kotin':function(_0x1e3d78,_0x10380a,_0x3a32b8){return _0x1e3d78(_0x10380a,_0x3a32b8);},'GLkXH':_0x22a54d(0xb1),'UGOol':function(_0x2f7039,_0x14153a){return _0x2f7039===_0x14153a;},'WvQir':_0x22a54d(0xcc),'liQNq':function(_0x5a8fb3,_0x5f671f,_0x46a4ad,_0x451a21,_0x48b904,_0x458616,_0x1bc3d6){return _0x5a8fb3(_0x5f671f,_0x46a4ad,_0x451a21,_0x48b904,_0x458616,_0x1bc3d6);},'UGcPM':_0x22a54d(0x94),'OClnB':_0x22a54d(0x98),'SetRr':_0x22a54d(0x86)};let _0x46304e;try{!_0x27dc8b['gridId']&&(logger[_0x22a54d(0xbb)](_0x3ccaaf[_0x22a54d(0xac)]),process[_0x22a54d(0xbe)](0x1));!fs[_0x22a54d(0xa0)](_0x3ccaaf[_0x22a54d(0xa2)](getCredentialsPath))&&(logger['error'](_0x3ccaaf[_0x22a54d(0xd7)]),await _0x3ccaaf[_0x22a54d(0x9e)](sendInstrumentationEvent,_0x27dc8b,_0x3ccaaf[_0x22a54d(0xc0)],messageTypes[_0x22a54d(0xda)],_0x3ccaaf['MYwTt'],null,_0x27dc8b),process[_0x22a54d(0xbe)](0x1));logger[_0x22a54d(0x92)](_0x22a54d(0x9a)+_0x27dc8b['gridId']),await _0x3ccaaf[_0x22a54d(0x9e)](sendInstrumentationEvent,_0x27dc8b,_0x3ccaaf[_0x22a54d(0xc0)],messageTypes[_0x22a54d(0xd0)],null,null,_0x27dc8b);const _0x54e8d7=JSON[_0x22a54d(0xca)](fs['readFileSync'](_0x3ccaaf['fGhQM'](getCredentialsPath)));global_registry[_0x22a54d(0x96)]=_0x54e8d7[_0x22a54d(0xd8)][_0x22a54d(0xa8)],global_registry['bstackAccesskey']=_0x54e8d7[_0x22a54d(0xd8)][_0x22a54d(0x93)];const _0x2adc08=WS_ENDPOINT[_0x22a54d(0x9b)](_0x3ccaaf[_0x22a54d(0xba)],_0x54e8d7['Browserstack'][_0x22a54d(0xa8)])[_0x22a54d(0x9b)](_0x3ccaaf['RxKeo'],_0x54e8d7[_0x22a54d(0xd8)]['password']),_0x4d5867={};_0x4d5867[_0x22a54d(0x8e)]=ws,_0x4d5867['connectionTimeout']=0x36ee80,_0x46304e=new ReconnectingWebSocket(_0x2adc08,[],_0x4d5867),logger[_0x22a54d(0xb2)](_0x3ccaaf[_0x22a54d(0xa1)]),webSocketUtils[_0x22a54d(0xdb)](_0x46304e,_0x27dc8b[_0x22a54d(0xb8)],_0x27dc8b[_0x22a54d(0x93)]);const [_0x543c85,_0xe5d8c2]=await _0x3ccaaf[_0x22a54d(0xc4)](getGridDetails,_0x54e8d7['Browserstack'][_0x22a54d(0xa8)],_0x54e8d7[_0x22a54d(0xd8)]['password'],_0x27dc8b[_0x22a54d(0xa9)]);if(_0xe5d8c2){const _0x4117f2=_0xe5d8c2[_0x22a54d(0x92)];global_registry[_0x22a54d(0xdc)]=_0x4117f2[_0x22a54d(0xdc)],global_registry[_0x22a54d(0xaf)]=_0x4117f2['region'],global_registry[_0x22a54d(0x8a)]=_0x4117f2[_0x22a54d(0x8a)];const _0x13b52f=await _0x3ccaaf[_0x22a54d(0xa4)](getCloudProviderObject,_0x4117f2[_0x22a54d(0xdc)],_0x4117f2['clusterName'],_0x4117f2[_0x22a54d(0xd5)],_0x46304e,webSocketUtils,_0x27dc8b),[_0x440ea6,_0x33a75b,_0x19eab6,_0x150d4e,_0x11fa23,_0x33c33c]=await _0x3ccaaf[_0x22a54d(0xd4)](createK8sClient,_0x13b52f,_0x27dc8b[_0x22a54d(0xa6)]);await _0x3ccaaf[_0x22a54d(0xd9)](scaleDownHubDeployment,_0x33a75b,_0x4117f2['name']),logger[_0x22a54d(0x92)](_0x3ccaaf[_0x22a54d(0x88)]),process['exit'](0x0);}_0x3ccaaf['UGOol'](_0x543c85[_0x22a54d(0xb9)],0x191)&&(logger[_0x22a54d(0xbb)](_0x3ccaaf[_0x22a54d(0xcb)]),await _0x3ccaaf['liQNq'](sendInstrumentationEvent,_0x27dc8b,_0x3ccaaf[_0x22a54d(0xc0)],messageTypes[_0x22a54d(0xda)],_0x3ccaaf[_0x22a54d(0xae)],null,_0x27dc8b),process['exit'](0x1)),_0x3ccaaf['UGOol'](_0x543c85[_0x22a54d(0xb9)],0x190)&&(logger[_0x22a54d(0xbb)](JSON[_0x22a54d(0xca)](_0x543c85[_0x22a54d(0xd2)])[_0x22a54d(0x84)]),await _0x3ccaaf[_0x22a54d(0xa4)](sendInstrumentationEvent,_0x27dc8b,_0x3ccaaf['cZYsz'],messageTypes[_0x22a54d(0xda)],_0x3ccaaf['OClnB'],null,_0x27dc8b),process['exit'](0x1)),logger[_0x22a54d(0xbb)](_0x22a54d(0xdd)+JSON['stringify'](_0x543c85)),await _0x3ccaaf[_0x22a54d(0xb6)](sendInstrumentationEvent,_0x27dc8b,_0x3ccaaf['cZYsz'],messageTypes[_0x22a54d(0xda)],_0x3ccaaf[_0x22a54d(0x90)],_0x543c85,_0x27dc8b),process[_0x22a54d(0xbe)](0x1);}catch(_0x269c6a){const _0x5015a8=_0x22a54d(0x83)+_0x269c6a+'\x20\x0a'+JSON[_0x22a54d(0xc6)](_0x269c6a[_0x22a54d(0xb5)])+'\x20';logger[_0x22a54d(0xbb)](_0x5015a8),process[_0x22a54d(0xbe)](0x1);}};
1
+ const a21_0x449c20=a21_0x3b82;function a21_0x3e17(){const _0xf522f9=['wzqgu','exit','Grid\x20stoppped.','string','bstackUsername','Browserstack','existsSync','100407Myvogd','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Adding\x20Websocket\x20listeners','14qHFkwE','debug','119WxledM','pyTdV','yJwSK','init-not-called','stringify','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','WebSocket','replace','3260496JXlMCw','nyXKk','hZisd','password','skipTlsCertVerify','server-error','bstackAccesskey','174599QIoxsx','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','<UsernamePlaceholder>','stop-grid-called','statusCode','Bectg','UAYmt','name','cloudProvider','boolean','uCrBT','error','4kKOYPM','message','NaHuu','BlgBL','950830pYEiIq','stack','aawCl','reconnecting-websocket','clusterName','help','jNLiV','default','desc','aHqGY','clusterRegion','rUmbH','TCuDZ','840530riPARa','INFO','../../config/logger','AsQjW','gridId','connectionTimeout','GYYKp','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','grid','grid-id','ixylG','usage','oznfe','DYVFu','parse','options','skip-tls-cert-verify','../../utils/utilityMethods','NIFhs','../../utils/instrumentationUtils','Stopping\x20grid\x20','description','body','../../utils/gridComponents','scbvc','../../cloudproviders/utils','93714duyaXv','ERROR','region','692847AFAhpy','builder','type','info'];a21_0x3e17=function(){return _0xf522f9;};return a21_0x3e17();}function a21_0x3b82(_0x2f7173,_0x378d13){const _0x3e176b=a21_0x3e17();return a21_0x3b82=function(_0x3b82d7,_0x2a69cc){_0x3b82d7=_0x3b82d7-0x1ca;let _0x1ba22d=_0x3e176b[_0x3b82d7];return _0x1ba22d;},a21_0x3b82(_0x2f7173,_0x378d13);}(function(_0x1c70da,_0x817a69){const _0x51f88b=a21_0x3b82,_0x36479a=_0x1c70da();while(!![]){try{const _0x150a29=parseInt(_0x51f88b(0x1ef))/0x1+parseInt(_0x51f88b(0x1de))/0x2*(parseInt(_0x51f88b(0x1db))/0x3)+-parseInt(_0x51f88b(0x1fd))/0x4*(parseInt(_0x51f88b(0x20e))/0x5)+parseInt(_0x51f88b(0x1cd))/0x6*(-parseInt(_0x51f88b(0x1e0))/0x7)+parseInt(_0x51f88b(0x1e8))/0x8+-parseInt(_0x51f88b(0x1d0))/0x9+-parseInt(_0x51f88b(0x201))/0xa;if(_0x150a29===_0x817a69)break;else _0x36479a['push'](_0x36479a['shift']());}catch(_0x104ccd){_0x36479a['push'](_0x36479a['shift']());}}}(a21_0x3e17,0x3373d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x449c20(0x204)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x449c20(0x210)),{getCredentialsPath,getGridDetails}=require(a21_0x449c20(0x220)),{scaleDownHubDeployment}=require(a21_0x449c20(0x1ca)),{sendInstrumentationEvent}=require(a21_0x449c20(0x222)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x449c20(0x1cc));exports['command']=a21_0x449c20(0x217),exports[a21_0x449c20(0x209)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x449c20(0x1d1)]=function(_0x488e0c){const _0xa95f8e=a21_0x449c20,_0x4cd8a8={};_0x4cd8a8[_0xa95f8e(0x219)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x4cd8a8[_0xa95f8e(0x21c)]=_0xa95f8e(0x1d7),_0x4cd8a8['GYYKp']='Skip\x20insecure\x20cert\x20verification.',_0x4cd8a8['UAYmt']=_0xa95f8e(0x1fa),_0x4cd8a8['nyXKk']=_0xa95f8e(0x206);const _0x5c92b3=_0x4cd8a8,_0x52f08f={};_0x52f08f[_0xa95f8e(0x224)]=_0x5c92b3['ixylG'],_0x52f08f[_0xa95f8e(0x1d2)]=_0x5c92b3[_0xa95f8e(0x21c)];const _0x44e1d4={};_0x44e1d4['description']=_0x5c92b3[_0xa95f8e(0x214)],_0x44e1d4[_0xa95f8e(0x1d2)]=_0x5c92b3[_0xa95f8e(0x1f7)],_0x44e1d4[_0xa95f8e(0x208)]=![];const _0x54fb5f={};return _0x54fb5f[_0xa95f8e(0x218)]=_0x52f08f,_0x54fb5f[_0xa95f8e(0x21f)]=_0x44e1d4,_0x488e0c[_0xa95f8e(0x21a)](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0xa95f8e(0x21e)](_0x54fb5f)[_0xa95f8e(0x206)](_0x5c92b3[_0xa95f8e(0x1e9)])['argv'];},exports['handler']=async function(_0xb2755d){const _0x2bdf9c=a21_0x449c20,_0x2e482d={'oznfe':_0x2bdf9c(0x1f2),'wzqgu':function(_0x4b8a84){return _0x4b8a84();},'PXwoi':_0x2bdf9c(0x1f0),'NIFhs':function(_0x481b17,_0x487195,_0x2141b9,_0x1f9cd6,_0x1cdd8b,_0x4c56ff,_0x244e38){return _0x481b17(_0x487195,_0x2141b9,_0x1f9cd6,_0x1cdd8b,_0x4c56ff,_0x244e38);},'AsQjW':_0x2bdf9c(0x1f4),'jNLiV':_0x2bdf9c(0x1e3),'TCuDZ':_0x2bdf9c(0x1f3),'vRhKN':'<PasswordPlaceholder>','dDoVX':_0x2bdf9c(0x1dd),'hZisd':function(_0x916d48,_0x1f2405,_0x4e46fa,_0x4b9b56){return _0x916d48(_0x1f2405,_0x4e46fa,_0x4b9b56);},'scbvc':function(_0x12ec67,_0x2337d9,_0x2923f3){return _0x12ec67(_0x2337d9,_0x2923f3);},'aawCl':function(_0x253f2a,_0x3c6b15,_0x21d118){return _0x253f2a(_0x3c6b15,_0x21d118);},'rUmbH':_0x2bdf9c(0x1d6),'yJwSK':function(_0x27d8c3,_0x42b4bb){return _0x27d8c3===_0x42b4bb;},'aHqGY':_0x2bdf9c(0x216),'pyTdV':function(_0x538cc5,_0x385171,_0x3df8ce,_0x232519,_0x1e1607,_0x558589,_0xdbde48){return _0x538cc5(_0x385171,_0x3df8ce,_0x232519,_0x1e1607,_0x558589,_0xdbde48);},'NaHuu':'unauthorised','uCrBT':'invalid-grid-id','Bectg':function(_0x4caad8,_0xe432d2,_0x42e2be,_0x210e2f,_0x1a9e94,_0x4ee3f0,_0x2a5a14){return _0x4caad8(_0xe432d2,_0x42e2be,_0x210e2f,_0x1a9e94,_0x4ee3f0,_0x2a5a14);},'BlgBL':_0x2bdf9c(0x1ed)};let _0x3c93cf;try{!_0xb2755d[_0x2bdf9c(0x212)]&&(logger[_0x2bdf9c(0x1fc)](_0x2e482d[_0x2bdf9c(0x21b)]),process[_0x2bdf9c(0x1d5)](0x1));!fs[_0x2bdf9c(0x1da)](_0x2e482d['wzqgu'](getCredentialsPath))&&(logger[_0x2bdf9c(0x1fc)](_0x2e482d['PXwoi']),await _0x2e482d[_0x2bdf9c(0x221)](sendInstrumentationEvent,_0xb2755d,_0x2e482d['AsQjW'],messageTypes[_0x2bdf9c(0x1ce)],_0x2e482d[_0x2bdf9c(0x207)],null,_0xb2755d),process['exit'](0x1));logger[_0x2bdf9c(0x1d3)](_0x2bdf9c(0x223)+_0xb2755d[_0x2bdf9c(0x212)]),await _0x2e482d[_0x2bdf9c(0x221)](sendInstrumentationEvent,_0xb2755d,_0x2e482d[_0x2bdf9c(0x211)],messageTypes[_0x2bdf9c(0x20f)],null,null,_0xb2755d);const _0x4f5ce6=JSON['parse'](fs[_0x2bdf9c(0x215)](_0x2e482d[_0x2bdf9c(0x1d4)](getCredentialsPath)));global_registry[_0x2bdf9c(0x1d8)]=_0x4f5ce6[_0x2bdf9c(0x1d9)][_0x2bdf9c(0x1f1)],global_registry[_0x2bdf9c(0x1ee)]=_0x4f5ce6['Browserstack'][_0x2bdf9c(0x1eb)];const _0x417717=WS_ENDPOINT[_0x2bdf9c(0x1e7)](_0x2e482d[_0x2bdf9c(0x20d)],_0x4f5ce6[_0x2bdf9c(0x1d9)][_0x2bdf9c(0x1f1)])[_0x2bdf9c(0x1e7)](_0x2e482d['vRhKN'],_0x4f5ce6['Browserstack'][_0x2bdf9c(0x1eb)]),_0x4ffbe2={};_0x4ffbe2[_0x2bdf9c(0x1e6)]=ws,_0x4ffbe2[_0x2bdf9c(0x213)]=0x36ee80,_0x3c93cf=new ReconnectingWebSocket(_0x417717,[],_0x4ffbe2),logger[_0x2bdf9c(0x1df)](_0x2e482d['dDoVX']),webSocketUtils['addListeners'](_0x3c93cf,_0xb2755d['user'],_0xb2755d[_0x2bdf9c(0x1eb)]);const [_0x239a35,_0x16718b]=await _0x2e482d[_0x2bdf9c(0x1ea)](getGridDetails,_0x4f5ce6['Browserstack'][_0x2bdf9c(0x1f1)],_0x4f5ce6[_0x2bdf9c(0x1d9)][_0x2bdf9c(0x1eb)],_0xb2755d['gridId']);if(_0x16718b){const _0x3729a2=_0x16718b[_0x2bdf9c(0x1d3)];global_registry[_0x2bdf9c(0x1f9)]=_0x3729a2[_0x2bdf9c(0x1f9)],global_registry[_0x2bdf9c(0x20b)]=_0x3729a2[_0x2bdf9c(0x1cf)],global_registry[_0x2bdf9c(0x205)]=_0x3729a2[_0x2bdf9c(0x205)];const _0x598061=await _0x2e482d[_0x2bdf9c(0x221)](getCloudProviderObject,_0x3729a2['cloudProvider'],_0x3729a2['clusterName'],_0x3729a2[_0x2bdf9c(0x1f8)],_0x3c93cf,webSocketUtils,_0xb2755d),[_0x5574b0,_0x5ed05e,_0x2998ec,_0xbd5f43,_0x1baf0a,_0x32ef89]=await _0x2e482d[_0x2bdf9c(0x1cb)](createK8sClient,_0x598061,_0xb2755d[_0x2bdf9c(0x1ec)]);await _0x2e482d[_0x2bdf9c(0x203)](scaleDownHubDeployment,_0x5ed05e,_0x3729a2[_0x2bdf9c(0x1f8)]),logger['info'](_0x2e482d[_0x2bdf9c(0x20c)]),process[_0x2bdf9c(0x1d5)](0x0);}_0x2e482d[_0x2bdf9c(0x1e2)](_0x239a35[_0x2bdf9c(0x1f5)],0x191)&&(logger[_0x2bdf9c(0x1fc)](_0x2e482d[_0x2bdf9c(0x20a)]),await _0x2e482d[_0x2bdf9c(0x1e1)](sendInstrumentationEvent,_0xb2755d,_0x2e482d['AsQjW'],messageTypes[_0x2bdf9c(0x1ce)],_0x2e482d[_0x2bdf9c(0x1ff)],null,_0xb2755d),process[_0x2bdf9c(0x1d5)](0x1)),_0x2e482d[_0x2bdf9c(0x1e2)](_0x239a35[_0x2bdf9c(0x1f5)],0x190)&&(logger[_0x2bdf9c(0x1fc)](JSON[_0x2bdf9c(0x21d)](_0x239a35[_0x2bdf9c(0x225)])[_0x2bdf9c(0x1fe)]),await _0x2e482d['pyTdV'](sendInstrumentationEvent,_0xb2755d,_0x2e482d[_0x2bdf9c(0x211)],messageTypes[_0x2bdf9c(0x1ce)],_0x2e482d[_0x2bdf9c(0x1fb)],null,_0xb2755d),process[_0x2bdf9c(0x1d5)](0x1)),logger[_0x2bdf9c(0x1fc)](_0x2bdf9c(0x1dc)+JSON['stringify'](_0x239a35)),await _0x2e482d[_0x2bdf9c(0x1f6)](sendInstrumentationEvent,_0xb2755d,_0x2e482d[_0x2bdf9c(0x211)],messageTypes[_0x2bdf9c(0x1ce)],_0x2e482d[_0x2bdf9c(0x200)],_0x239a35,_0xb2755d),process[_0x2bdf9c(0x1d5)](0x1);}catch(_0x23fc63){const _0x2bb6a7=_0x2bdf9c(0x1e5)+_0x23fc63+'\x20\x0a'+JSON[_0x2bdf9c(0x1e4)](_0x23fc63[_0x2bdf9c(0x202)])+'\x20';logger[_0x2bdf9c(0x1fc)](_0x2bb6a7),process[_0x2bdf9c(0x1d5)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x2c986d=a22_0x112b;(function(_0x2bc634,_0x16502e){const _0x30af33=a22_0x112b,_0x2a377d=_0x2bc634();while(!![]){try{const _0x4a748b=-parseInt(_0x30af33(0xe4))/0x1+-parseInt(_0x30af33(0xa5))/0x2+parseInt(_0x30af33(0xdc))/0x3*(parseInt(_0x30af33(0xde))/0x4)+parseInt(_0x30af33(0xf9))/0x5+parseInt(_0x30af33(0xf5))/0x6*(-parseInt(_0x30af33(0xd3))/0x7)+parseInt(_0x30af33(0xd1))/0x8*(parseInt(_0x30af33(0xcc))/0x9)+parseInt(_0x30af33(0xb4))/0xa;if(_0x4a748b===_0x16502e)break;else _0x2a377d['push'](_0x2a377d['shift']());}catch(_0x1053b7){_0x2a377d['push'](_0x2a377d['shift']());}}}(a22_0x4a41,0xd5774),require('dotenv')[a22_0x2c986d(0xd2)]());let gridURL=a22_0x2c986d(0xba),bsApiUrl=a22_0x2c986d(0xda),agApiUrl=a22_0x2c986d(0xf3);const _env=(process[a22_0x2c986d(0xa2)][a22_0x2c986d(0xeb)]||a22_0x2c986d(0x10d))[a22_0x2c986d(0xef)]();if(_env==='staging'||_env===a22_0x2c986d(0x101))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x2c986d(0x103),agApiUrl=a22_0x2c986d(0xfd);else(_env===a22_0x2c986d(0xce)||_env==='pre-prod')&&(gridURL=a22_0x2c986d(0xe9),bsApiUrl=a22_0x2c986d(0xe1),agApiUrl=a22_0x2c986d(0x10f));exports['DASHBOARD_ENDPOINT']=process['env'][a22_0x2c986d(0xa4)]||gridURL,exports[a22_0x2c986d(0xb8)]=process[a22_0x2c986d(0xa2)][a22_0x2c986d(0xb8)]||bsApiUrl,exports[a22_0x2c986d(0xf7)]=process[a22_0x2c986d(0xa2)][a22_0x2c986d(0xf7)]||agApiUrl,exports[a22_0x2c986d(0xb3)]=a22_0x2c986d(0xee)+this['AG_API_URL']+a22_0x2c986d(0xff),exports[a22_0x2c986d(0xd5)]=a22_0x2c986d(0xd4),exports['IAM_USER_NAME']='BrowserStackIAMUser',exports[a22_0x2c986d(0xc6)]=a22_0x2c986d(0xd7),exports['AWS']=a22_0x2c986d(0x100),exports['CLUSTER_DEP_STACK_NAME']=a22_0x2c986d(0xbf),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x2c986d(0xaa)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x2c986d(0xad)]=a22_0x2c986d(0xea),exports[a22_0x2c986d(0xb9)]=a22_0x2c986d(0xe8),exports[a22_0x2c986d(0x10a)]='gcp',exports[a22_0x2c986d(0xdb)]=[this['AWS'],this['AZURE'],this[a22_0x2c986d(0x10a)]];const a22_0x39e870={};function a22_0x112b(_0xa72077,_0x33fda5){const _0x4a415c=a22_0x4a41();return a22_0x112b=function(_0x112b18,_0x13f3d9){_0x112b18=_0x112b18-0xa1;let _0x3cc9c8=_0x4a415c[_0x112b18];return _0x3cc9c8;},a22_0x112b(_0xa72077,_0x33fda5);}a22_0x39e870[a22_0x2c986d(0xaf)]=a22_0x2c986d(0xa6),a22_0x39e870[a22_0x2c986d(0xf8)]='BrowserStack';const a22_0x1322d3={};a22_0x1322d3[a22_0x2c986d(0xaf)]=a22_0x2c986d(0xa9),a22_0x1322d3['Value']=a22_0x2c986d(0xd8);const common_hst_tags_list=[a22_0x39e870,a22_0x1322d3];if(process[a22_0x2c986d(0xa2)][a22_0x2c986d(0x107)]){const parsedTags=process['env'][a22_0x2c986d(0x107)][a22_0x2c986d(0xbb)](',');parsedTags[a22_0x2c986d(0xa1)](_0x127c99=>{const _0x2fce3b=a22_0x2c986d,_0x2a8311=_0x127c99[_0x2fce3b(0xbb)](':'),_0x2b3cab={};_0x2b3cab[_0x2fce3b(0xaf)]=_0x2a8311[0x0],_0x2b3cab['Value']=_0x2a8311[0x1],common_hst_tags_list[_0x2fce3b(0xac)](_0x2b3cab);});}exports[a22_0x2c986d(0xae)]=common_hst_tags_list;const a22_0x53ec0a={};a22_0x53ec0a[a22_0x2c986d(0xa6)]=a22_0x2c986d(0xb7),a22_0x53ec0a['browserstack:service']=a22_0x2c986d(0xd8),exports[a22_0x2c986d(0xd0)]=a22_0x53ec0a,exports[a22_0x2c986d(0xe5)]=[this[a22_0x2c986d(0x10b)]];const a22_0x44c6e0={};a22_0x44c6e0[a22_0x2c986d(0xc9)]='log',a22_0x44c6e0[a22_0x2c986d(0x102)]=a22_0x2c986d(0xe7),a22_0x44c6e0[a22_0x2c986d(0xbd)]='gridUrl',a22_0x44c6e0[a22_0x2c986d(0xa8)]=a22_0x2c986d(0xb2),a22_0x44c6e0['CLI_RUN_FINISHED']='cliRunFinished',exports[a22_0x2c986d(0xc4)]=a22_0x44c6e0,exports[a22_0x2c986d(0xe0)]={},exports[a22_0x2c986d(0xec)]=a22_0x2c986d(0xc1);const a22_0x1184f9={};a22_0x1184f9[a22_0x2c986d(0x106)]=a22_0x2c986d(0xbe)+this['LINK_MESSAGE'],a22_0x1184f9[a22_0x2c986d(0xd6)]=a22_0x2c986d(0xc5)+this[a22_0x2c986d(0xec)],a22_0x1184f9[a22_0x2c986d(0xa7)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x2c986d(0xec)],a22_0x1184f9[a22_0x2c986d(0xc2)]=a22_0x2c986d(0xab)+this[a22_0x2c986d(0xec)],a22_0x1184f9[a22_0x2c986d(0x108)]={},a22_0x1184f9[a22_0x2c986d(0xb6)]=a22_0x2c986d(0xa3)+this[a22_0x2c986d(0xec)],a22_0x1184f9[a22_0x2c986d(0x10e)]=a22_0x2c986d(0xe3)+this['LINK_MESSAGE'],a22_0x1184f9[a22_0x2c986d(0xcd)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x2c986d(0xec)],a22_0x1184f9[a22_0x2c986d(0xf4)]=a22_0x2c986d(0xf6)+this['LINK_MESSAGE'],a22_0x1184f9[a22_0x2c986d(0xf1)]=a22_0x2c986d(0xcb)+this[a22_0x2c986d(0xec)],a22_0x1184f9[a22_0x2c986d(0x108)][a22_0x2c986d(0x106)]=a22_0x2c986d(0xb0)+this[a22_0x2c986d(0xec)],a22_0x1184f9[a22_0x2c986d(0x108)][a22_0x2c986d(0xfc)]=a22_0x2c986d(0xb1)+this[a22_0x2c986d(0xec)],a22_0x1184f9[a22_0x2c986d(0x108)][a22_0x2c986d(0x109)]=a22_0x2c986d(0xe6)+this['LINK_MESSAGE'],exports[a22_0x2c986d(0xfb)]=a22_0x1184f9,exports[a22_0x2c986d(0xcf)]=a22_0x2c986d(0xfa);const a22_0x1e0e19={};a22_0x1e0e19[a22_0x2c986d(0x111)]='success',a22_0x1e0e19[a22_0x2c986d(0xca)]=a22_0x2c986d(0xf0),a22_0x1e0e19[a22_0x2c986d(0xc7)]=a22_0x2c986d(0xb5),a22_0x1e0e19[a22_0x2c986d(0xf2)]=a22_0x2c986d(0x110),a22_0x1e0e19['UNKNOWN']=a22_0x2c986d(0xc0),a22_0x1e0e19['NULL']=null,exports[a22_0x2c986d(0xc3)]=a22_0x1e0e19,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2c986d(0x10c)]='[REDACTED]';const a22_0x18d90f={};a22_0x18d90f[a22_0x2c986d(0xc8)]=a22_0x2c986d(0xdf);function a22_0x4a41(){const _0x3b6cd2=['DEFAULT_GRID_NAME','INFO','grid-profile','LOG','ERROR','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','78957vxXMlM','start','preprod','HELP_FOOTER_MESSAGE','HST_CLUSTER_TAGS','1080NwoVNy','config','3202913RTfKQl','credentials','CP_CONFIG_FILE','init','high-scale-grid','BrowserStack-Automate-TurboScale','us-east-1','api.browserstack.com','ALL_SUPPORTED_CLOUD_PROVIDERS','35409DMnAWN','REGION','548aUIjKo','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','global_registry','api-preprod.bsstag.com','pre-check','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','72325IAJOTX','SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','resourceInfo','azure','grid-preprod.bsstag.com','browserstack-turboscale-grid','BROWSERSTACK_ENV','LINK_MESSAGE','DEFAULT_CLUSTER_DETAILS','wss://','toLowerCase','error','pre_check','WARNING','grid-api.browserstack.com','stop','12ojXQwo','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','AG_API_URL','Value','315100ONrpvN','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','HELP_HEADER_MESSAGE','grid','grid-api-devhst.bsstag.com','CLUSTER','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','aws','stag','RESOURCES','api-devhst.bsstag.com','MessageDescription','TRIAL_GRID_URL','root','TURBOSCALE_CUSTOM_TAGS','list','gridProfile','GCP','AWS','REDACTED','prod','connect','grid-api-preprod.bsstag.com','warning','SUCCESS','forEach','env','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','DASHBOARD_ENDPOINT','2094164HUMIVk','browserstack:managedBy','configure','CLI_RUN_STARTED','browserstack:service','CLUSTER_HUB_HA_STACK_NAME','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','push','TURBOSCALE_DEPLOYMENT','COMMON_HST_TAGS','Key','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','cliRunStarted','WS_ENDPOINT','444950bJWvzA','info','delete','BrowserStack','BS_API_URL','AZURE','grid.browserstack.com','split','CLOUD_PROVIDER','GRID_URL','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','BSTACK-ATS-CLUSTER','unknown','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','create','messageTypes','WS_EVENTS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'];a22_0x4a41=function(){return _0x3b6cd2;};return a22_0x4a41();}const a22_0x201b83={};a22_0x201b83[a22_0x2c986d(0xe2)]=a22_0x18d90f,exports[a22_0x2c986d(0x104)]=a22_0x201b83,exports[a22_0x2c986d(0x105)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x3b8c63={};a22_0x3b8c63[a22_0x2c986d(0xfe)]='high-scale-grid-cluster',a22_0x3b8c63[a22_0x2c986d(0xbc)]=a22_0x2c986d(0x100),a22_0x3b8c63[a22_0x2c986d(0xdd)]=a22_0x2c986d(0xd9),exports[a22_0x2c986d(0xed)]=a22_0x3b8c63;
1
+ const a22_0x3ae494=a22_0x5400;(function(_0x52ecc8,_0x351ab0){const _0x45ccc1=a22_0x5400,_0x46e676=_0x52ecc8();while(!![]){try{const _0x22a777=parseInt(_0x45ccc1(0x150))/0x1+parseInt(_0x45ccc1(0x134))/0x2*(parseInt(_0x45ccc1(0x120))/0x3)+-parseInt(_0x45ccc1(0xf8))/0x4+-parseInt(_0x45ccc1(0x14b))/0x5+-parseInt(_0x45ccc1(0x117))/0x6*(-parseInt(_0x45ccc1(0x13b))/0x7)+-parseInt(_0x45ccc1(0x146))/0x8*(parseInt(_0x45ccc1(0x12c))/0x9)+-parseInt(_0x45ccc1(0x11a))/0xa;if(_0x22a777===_0x351ab0)break;else _0x46e676['push'](_0x46e676['shift']());}catch(_0xf0556f){_0x46e676['push'](_0x46e676['shift']());}}}(a22_0x10c2,0x94379),require('dotenv')['config']());let gridURL=a22_0x3ae494(0x152),bsApiUrl=a22_0x3ae494(0x101),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x3ae494(0x12f)][a22_0x3ae494(0x13e)]||'prod')[a22_0x3ae494(0x106)]();if(_env===a22_0x3ae494(0x155)||_env==='stag')gridURL=a22_0x3ae494(0x107),bsApiUrl=a22_0x3ae494(0xfa),agApiUrl=a22_0x3ae494(0x12d);else(_env==='preprod'||_env===a22_0x3ae494(0xfd))&&(gridURL=a22_0x3ae494(0x138),bsApiUrl=a22_0x3ae494(0x113),agApiUrl=a22_0x3ae494(0x160));function a22_0x5400(_0x45d9a2,_0x3a2d46){const _0x10c23c=a22_0x10c2();return a22_0x5400=function(_0x5400f9,_0x2817f8){_0x5400f9=_0x5400f9-0xf6;let _0x3c6ce8=_0x10c23c[_0x5400f9];return _0x3c6ce8;},a22_0x5400(_0x45d9a2,_0x3a2d46);}exports['DASHBOARD_ENDPOINT']=process[a22_0x3ae494(0x12f)][a22_0x3ae494(0x149)]||gridURL,exports[a22_0x3ae494(0x10e)]=process[a22_0x3ae494(0x12f)]['BS_API_URL']||bsApiUrl,exports[a22_0x3ae494(0x11e)]=process[a22_0x3ae494(0x12f)][a22_0x3ae494(0x11e)]||agApiUrl,exports[a22_0x3ae494(0x156)]=a22_0x3ae494(0x13a)+this[a22_0x3ae494(0x11e)]+a22_0x3ae494(0x15b),exports[a22_0x3ae494(0x127)]=a22_0x3ae494(0x10d),exports[a22_0x3ae494(0x14f)]=a22_0x3ae494(0x10c),exports[a22_0x3ae494(0x109)]=a22_0x3ae494(0x165),exports[a22_0x3ae494(0x132)]=a22_0x3ae494(0xf9),exports[a22_0x3ae494(0x10a)]=a22_0x3ae494(0x147),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x3ae494(0x126)]=a22_0x3ae494(0xf6),exports[a22_0x3ae494(0x13d)]=a22_0x3ae494(0x13f),exports[a22_0x3ae494(0x129)]='azure',exports[a22_0x3ae494(0x102)]=a22_0x3ae494(0x141),exports[a22_0x3ae494(0x112)]=[this['AWS'],this[a22_0x3ae494(0x129)],this[a22_0x3ae494(0x102)]];function a22_0x10c2(){const _0x550ac5=['resourceInfo','IAM_USER_NAME','322687nzNeqc','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','grid.browserstack.com','REDACTED','WARNING','staging','WS_ENDPOINT','BrowserStack-Automate-TurboScale','init','MessageDescription','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gridUrl','root','pre-check','split','grid-api-preprod.bsstag.com','REGION','us-east-1','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','UNKNOWN','high-scale-grid','cliRunStarted','BSTACK-ATS-CLUSTER-HUB-HA','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','710640crlKcC','aws','api-devhst.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','Key','pre-prod','SUPPORTED_CLOUD_PROVIDERS','CLI_RUN_STARTED','CLI_RUN_FINISHED','api.browserstack.com','GCP','browserstack:managedBy','unknown','[REDACTED]','toLowerCase','grid-devhst.bsstag.com','GRID_URL','DEFAULT_GRID_NAME','CLUSTER_DEP_STACK_NAME','connect','BrowserStackIAMUser','credentials','BS_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','delete','pre_check','ALL_SUPPORTED_CLOUD_PROVIDERS','api-preprod.bsstag.com','push','cliRunFinished','high-scale-grid-cluster','3450JCmPsh','list','Value','1201470xgLiRw','global_registry','INFO','HELP_HEADER_MESSAGE','AG_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','8013UyDfSg','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid','NULL','success','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','CLUSTER_HUB_HA_STACK_NAME','CP_CONFIG_FILE','start','AZURE','RESOURCES','LINK_MESSAGE','216CbrVrL','grid-api-devhst.bsstag.com','TURBOSCALE_CUSTOM_TAGS','env','COMMON_HST_TAGS','grid-profile','AWS','forEach','458LroBXS','info','CLUSTER','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','grid-preprod.bsstag.com','create','wss://','7196JpBIhF','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TURBOSCALE_DEPLOYMENT','BROWSERSTACK_ENV','browserstack-turboscale-grid','RAW_ARGS_REGEX','gcp','TRIAL_GRID_URL','error','browserstack:service','configure','80960YVZtdv','BSTACK-ATS-CLUSTER','HELP_FOOTER_MESSAGE','DASHBOARD_ENDPOINT','CLI_ARGS_REGEX','1888310dRNeiM','gridProfile','SUCCESS'];a22_0x10c2=function(){return _0x550ac5;};return a22_0x10c2();}const a22_0x10f2f1={};a22_0x10f2f1[a22_0x3ae494(0xfc)]=a22_0x3ae494(0x103),a22_0x10f2f1['Value']='BrowserStack';const a22_0x1f419f={};a22_0x1f419f['Key']='browserstack:service',a22_0x1f419f[a22_0x3ae494(0x119)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x10f2f1,a22_0x1f419f];if(process[a22_0x3ae494(0x12f)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x3ae494(0x12f)][a22_0x3ae494(0x12e)][a22_0x3ae494(0x15f)](',');parsedTags[a22_0x3ae494(0x133)](_0x5042a2=>{const _0x2f5146=a22_0x3ae494,_0x5ea92e=_0x5042a2['split'](':'),_0x588d97={};_0x588d97[_0x2f5146(0xfc)]=_0x5ea92e[0x0],_0x588d97[_0x2f5146(0x119)]=_0x5ea92e[0x1],common_hst_tags_list[_0x2f5146(0x114)](_0x588d97);});}exports[a22_0x3ae494(0x130)]=common_hst_tags_list;const a22_0x4b0f01={};a22_0x4b0f01['browserstack:managedBy']='BrowserStack',a22_0x4b0f01[a22_0x3ae494(0x144)]=a22_0x3ae494(0x157),exports['HST_CLUSTER_TAGS']=a22_0x4b0f01,exports[a22_0x3ae494(0xfe)]=[this['AWS']];const a22_0x3895b3={};a22_0x3895b3['LOG']='log',a22_0x3895b3[a22_0x3ae494(0x12a)]=a22_0x3ae494(0x14e),a22_0x3895b3[a22_0x3ae494(0x108)]=a22_0x3ae494(0x15c),a22_0x3895b3[a22_0x3ae494(0xff)]=a22_0x3ae494(0x166),a22_0x3895b3[a22_0x3ae494(0x100)]=a22_0x3ae494(0x115),exports['WS_EVENTS']=a22_0x3895b3,exports[a22_0x3ae494(0x11b)]={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x281eb9={};a22_0x281eb9[a22_0x3ae494(0x15d)]=a22_0x3ae494(0x137)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x158)]=a22_0x3ae494(0x11f)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x145)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x139)]=a22_0x3ae494(0x151)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x118)]={},a22_0x281eb9[a22_0x3ae494(0x110)]=a22_0x3ae494(0x121)+this['LINK_MESSAGE'],a22_0x281eb9[a22_0x3ae494(0x10b)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x128)]=a22_0x3ae494(0x15a)+this[a22_0x3ae494(0x12b)],a22_0x281eb9['stop']=a22_0x3ae494(0xfb)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x111)]=a22_0x3ae494(0x163)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x118)][a22_0x3ae494(0x15d)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x118)][a22_0x3ae494(0x122)]=a22_0x3ae494(0x10f)+this[a22_0x3ae494(0x12b)],a22_0x281eb9[a22_0x3ae494(0x118)][a22_0x3ae494(0x14c)]=a22_0x3ae494(0x13c)+this['LINK_MESSAGE'],exports[a22_0x3ae494(0x11d)]=a22_0x281eb9,exports[a22_0x3ae494(0x148)]=a22_0x3ae494(0xf7);const a22_0x4fa9d7={};a22_0x4fa9d7[a22_0x3ae494(0x14d)]=a22_0x3ae494(0x124),a22_0x4fa9d7['ERROR']=a22_0x3ae494(0x143),a22_0x4fa9d7[a22_0x3ae494(0x11c)]=a22_0x3ae494(0x135),a22_0x4fa9d7[a22_0x3ae494(0x154)]='warning',a22_0x4fa9d7[a22_0x3ae494(0x164)]=a22_0x3ae494(0x104),a22_0x4fa9d7[a22_0x3ae494(0x123)]=null,exports['messageTypes']=a22_0x4fa9d7,exports[a22_0x3ae494(0x14a)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x3ae494(0x140)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x3ae494(0x153)]=a22_0x3ae494(0x105);const a22_0x20ad48={};a22_0x20ad48[a22_0x3ae494(0x131)]=a22_0x3ae494(0x125);const a22_0x4201cc={};a22_0x4201cc[a22_0x3ae494(0x15e)]=a22_0x20ad48,exports[a22_0x3ae494(0x159)]=a22_0x4201cc,exports[a22_0x3ae494(0x142)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x233799={};a22_0x233799[a22_0x3ae494(0x136)]=a22_0x3ae494(0x116),a22_0x233799['CLOUD_PROVIDER']=a22_0x3ae494(0xf9),a22_0x233799[a22_0x3ae494(0x161)]=a22_0x3ae494(0x162),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x233799;
@@ -1 +1 @@
1
- const a23_0x4e1193=a23_0xa7f0;(function(_0x20616a,_0x1f3d11){const _0x52f006=a23_0xa7f0,_0x59b222=_0x20616a();while(!![]){try{const _0x111005=-parseInt(_0x52f006(0x19b))/0x1*(-parseInt(_0x52f006(0x196))/0x2)+parseInt(_0x52f006(0x182))/0x3+parseInt(_0x52f006(0x186))/0x4*(parseInt(_0x52f006(0x187))/0x5)+-parseInt(_0x52f006(0x17e))/0x6*(-parseInt(_0x52f006(0x193))/0x7)+-parseInt(_0x52f006(0x19a))/0x8+-parseInt(_0x52f006(0x184))/0x9+-parseInt(_0x52f006(0x191))/0xa;if(_0x111005===_0x1f3d11)break;else _0x59b222['push'](_0x59b222['shift']());}catch(_0x3d440b){_0x59b222['push'](_0x59b222['shift']());}}}(a23_0x5198,0xd0d65));const winston=require(a23_0x4e1193(0x18a)),fs=require('fs'),path=require(a23_0x4e1193(0x198)),logDir='log';!fs[a23_0x4e1193(0x19d)](logDir)&&fs[a23_0x4e1193(0x18f)](logDir);const a23_0x1498fc={};a23_0x1498fc[a23_0x4e1193(0x194)]=a23_0x4e1193(0x192);const a23_0x4e7cfe={};a23_0x4e7cfe['level']=!![];const a23_0x9b888d={};a23_0x9b888d[a23_0x4e1193(0x189)]=a23_0x4e1193(0x17f),exports[a23_0x4e1193(0x180)]=new winston[(a23_0x4e1193(0x17c))]({'format':winston[a23_0x4e1193(0x194)][a23_0x4e1193(0x18c)](winston[a23_0x4e1193(0x194)]['timestamp'](a23_0x1498fc),winston[a23_0x4e1193(0x194)][a23_0x4e1193(0x17b)](a23_0x4e7cfe),winston['format'][a23_0x4e1193(0x181)](_0x328bcc=>_0x328bcc[a23_0x4e1193(0x18b)]+a23_0x4e1193(0x183)+_0x328bcc[a23_0x4e1193(0x18e)]+':\x20'+_0x328bcc[a23_0x4e1193(0x185)])),'transports':[new winston[(a23_0x4e1193(0x197))][(a23_0x4e1193(0x195))](a23_0x9b888d),new winston[(a23_0x4e1193(0x197))][(a23_0x4e1193(0x188))]({'filename':path[a23_0x4e1193(0x19c)](logDir,a23_0x4e1193(0x18d)),'level':a23_0x4e1193(0x199)})]});function a23_0x5198(){const _0x427ed5=['printf','1942881GRiJsh','\x20-\x20','10535058nMrMbA','message','43512xJLgZm','695QtxrOc','File','name','winston','timestamp','combine','events.log','level','mkdirSync','usage.log','10142980jJsDFQ','YYYY-MM-DD\x20HH:mm:ss','5054RfwlRE','format','Console','124oGzqeQ','transports','path','debug','13378928iZyhEn','19703gVJzIO','join','existsSync','colorize','createLogger','fileLogger','11064oSXRBf','console.info','logger'];a23_0x5198=function(){return _0x427ed5;};return a23_0x5198();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x4e1193(0x197))][(a23_0x4e1193(0x188))]({'filename':path[a23_0x4e1193(0x19c)](logDir,a23_0x4e1193(0x190)),'level':a23_0x4e1193(0x199)})]};function a23_0xa7f0(_0x2c7432,_0x1b9964){const _0x51982f=a23_0x5198();return a23_0xa7f0=function(_0xa7f089,_0x3b2e73){_0xa7f089=_0xa7f089-0x17b;let _0x3befa2=_0x51982f[_0xa7f089];return _0x3befa2;},a23_0xa7f0(_0x2c7432,_0x1b9964);}exports[a23_0x4e1193(0x17d)]=new winston[(a23_0x4e1193(0x17c))](winstonFileLoggerParams);
1
+ const a23_0x432fa0=a23_0x5ace;(function(_0x23726e,_0x28cdd0){const _0x11f5b3=a23_0x5ace,_0x2575fb=_0x23726e();while(!![]){try{const _0x49e7ea=parseInt(_0x11f5b3(0xb3))/0x1*(-parseInt(_0x11f5b3(0xaf))/0x2)+-parseInt(_0x11f5b3(0xb1))/0x3+parseInt(_0x11f5b3(0xb4))/0x4+parseInt(_0x11f5b3(0xa9))/0x5+-parseInt(_0x11f5b3(0xbf))/0x6*(-parseInt(_0x11f5b3(0xba))/0x7)+parseInt(_0x11f5b3(0xa4))/0x8*(parseInt(_0x11f5b3(0xbc))/0x9)+-parseInt(_0x11f5b3(0xac))/0xa;if(_0x49e7ea===_0x28cdd0)break;else _0x2575fb['push'](_0x2575fb['shift']());}catch(_0x3ffc08){_0x2575fb['push'](_0x2575fb['shift']());}}}(a23_0x3a6c,0xbe881));function a23_0x3a6c(){const _0x555349=['File','Console','format','existsSync','993995NNMguF','debug','level','9758140YfmRdl','timestamp','YYYY-MM-DD\x20HH:mm:ss','1840508xCRGeG','logger','2350659zoKVWN','transports','1dSRvWs','2198204UoHXxN','path','fileLogger','createLogger','events.log','join','21ARmobz','winston','9801GmpGor','\x20-\x20','console.info','2546238juACWs','10568bewpek'];a23_0x3a6c=function(){return _0x555349;};return a23_0x3a6c();}const winston=require(a23_0x432fa0(0xbb)),fs=require('fs'),path=require(a23_0x432fa0(0xb5)),logDir='log';!fs[a23_0x432fa0(0xa8)](logDir)&&fs['mkdirSync'](logDir);const a23_0x17ef76={};a23_0x17ef76[a23_0x432fa0(0xa7)]=a23_0x432fa0(0xae);const a23_0x5c6302={};a23_0x5c6302[a23_0x432fa0(0xab)]=!![];function a23_0x5ace(_0x1ffbf9,_0x13a459){const _0x3a6c1c=a23_0x3a6c();return a23_0x5ace=function(_0x5aceff,_0x9659a1){_0x5aceff=_0x5aceff-0xa4;let _0xb67ffc=_0x3a6c1c[_0x5aceff];return _0xb67ffc;},a23_0x5ace(_0x1ffbf9,_0x13a459);}const a23_0xaa8dff={};a23_0xaa8dff['name']=a23_0x432fa0(0xbe),exports[a23_0x432fa0(0xb0)]=new winston[(a23_0x432fa0(0xb7))]({'format':winston['format']['combine'](winston['format']['timestamp'](a23_0x17ef76),winston[a23_0x432fa0(0xa7)]['colorize'](a23_0x5c6302),winston[a23_0x432fa0(0xa7)]['printf'](_0x2cabfe=>_0x2cabfe[a23_0x432fa0(0xad)]+a23_0x432fa0(0xbd)+_0x2cabfe['level']+':\x20'+_0x2cabfe['message'])),'transports':[new winston[(a23_0x432fa0(0xb2))][(a23_0x432fa0(0xa6))](a23_0xaa8dff),new winston[(a23_0x432fa0(0xb2))]['File']({'filename':path[a23_0x432fa0(0xb9)](logDir,a23_0x432fa0(0xb8)),'level':a23_0x432fa0(0xaa)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x432fa0(0xb2))][(a23_0x432fa0(0xa5))]({'filename':path[a23_0x432fa0(0xb9)](logDir,'usage.log'),'level':a23_0x432fa0(0xaa)})]};exports[a23_0x432fa0(0xb6)]=new winston[(a23_0x432fa0(0xb7))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x1ff211=a24_0x215a;(function(_0x3fdb19,_0x21a5dc){const _0x2bed13=a24_0x215a,_0x255dc2=_0x3fdb19();while(!![]){try{const _0x528553=parseInt(_0x2bed13(0x17d))/0x1*(parseInt(_0x2bed13(0x17a))/0x2)+-parseInt(_0x2bed13(0x176))/0x3*(-parseInt(_0x2bed13(0x16d))/0x4)+-parseInt(_0x2bed13(0x17b))/0x5*(-parseInt(_0x2bed13(0x17e))/0x6)+parseInt(_0x2bed13(0x178))/0x7*(parseInt(_0x2bed13(0x173))/0x8)+parseInt(_0x2bed13(0x171))/0x9+-parseInt(_0x2bed13(0x177))/0xa+-parseInt(_0x2bed13(0x16f))/0xb;if(_0x528553===_0x21a5dc)break;else _0x255dc2['push'](_0x255dc2['shift']());}catch(_0x5e1387){_0x255dc2['push'](_0x255dc2['shift']());}}}(a24_0x5050,0x30451));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x1ff211(0x174));process[a24_0x1ff211(0x172)][a24_0x1ff211(0x17f)]=0x1;function run(_0x312e20){const _0x2357c2=a24_0x1ff211,_0x2dc141={};_0x2dc141[_0x2357c2(0x179)]=_0x2357c2(0x180),_0x2dc141[_0x2357c2(0x170)]=_0x2357c2(0x175);const _0x34150f=_0x2dc141;_0x312e20[_0x2357c2(0x16e)](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x34150f['ExoeA'])[_0x2357c2(0x17c)]()[_0x2357c2(0x175)](_0x34150f[_0x2357c2(0x170)])[_0x2357c2(0x181)](HELP_FOOTER_MESSAGE);}function a24_0x215a(_0x579f55,_0x1ffd2c){const _0x50507c=a24_0x5050();return a24_0x215a=function(_0x215a71,_0xca2802){_0x215a71=_0x215a71-0x16d;let _0x359bc8=_0x50507c[_0x215a71];return _0x359bc8;},a24_0x215a(_0x579f55,_0x1ffd2c);}function a24_0x5050(){const _0x4103b2=['env','8WhMbVu','./config/constants','help','559311yLTkBU','2853450FuYqpM','568183AujBIO','ExoeA','15338mILLyX','125NuULEA','demandCommand','7UMxwKX','91482KRVRrK','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','commands','epilogue','4XSBRaw','usage','3610882WJuwij','ElNjZ','979704qxlEdG'];a24_0x5050=function(){return _0x4103b2;};return a24_0x5050();}module['exports']=run;
2
+ 'use strict';const a24_0x29f4e9=a24_0x54c9;(function(_0x3cdf17,_0x520f5a){const _0x36245b=a24_0x54c9,_0xedf0d=_0x3cdf17();while(!![]){try{const _0x22b2be=parseInt(_0x36245b(0x120))/0x1+parseInt(_0x36245b(0x121))/0x2+parseInt(_0x36245b(0x129))/0x3*(-parseInt(_0x36245b(0x124))/0x4)+-parseInt(_0x36245b(0x11a))/0x5*(parseInt(_0x36245b(0x12a))/0x6)+-parseInt(_0x36245b(0x11b))/0x7+parseInt(_0x36245b(0x11e))/0x8+parseInt(_0x36245b(0x12b))/0x9*(parseInt(_0x36245b(0x11f))/0xa);if(_0x22b2be===_0x520f5a)break;else _0xedf0d['push'](_0xedf0d['shift']());}catch(_0x58c84b){_0xedf0d['push'](_0xedf0d['shift']());}}}(a24_0x33bf,0x35d8e));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x29f4e9(0x118));process[a24_0x29f4e9(0x122)][a24_0x29f4e9(0x12c)]=0x1;function a24_0x33bf(){const _0x53218b=['13846JyQIFL','466772ZxJSKH','env','PMniW','45044BApHOQ','PkBWk','root','demandCommand','commands','75AgTWQl','135414NzyIpr','18fQukwd','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','exports','./config/constants','usage','95gMTsMG','67109wzxwPn','help','commandDir','1984184cHAMuf','2226130pQBciu'];a24_0x33bf=function(){return _0x53218b;};return a24_0x33bf();}function a24_0x54c9(_0x34640e,_0xa7c7f7){const _0x33bfca=a24_0x33bf();return a24_0x54c9=function(_0x54c967,_0x103148){_0x54c967=_0x54c967-0x117;let _0x3df1a3=_0x33bfca[_0x54c967];return _0x3df1a3;},a24_0x54c9(_0x34640e,_0xa7c7f7);}function run(_0x85b176){const _0x143552=a24_0x29f4e9,_0x517ac0={};_0x517ac0[_0x143552(0x123)]=_0x143552(0x128),_0x517ac0['PkBWk']=_0x143552(0x11c);const _0x4c1c92=_0x517ac0;_0x85b176[_0x143552(0x119)](HELP_HEADER_MESSAGE[_0x143552(0x126)])[_0x143552(0x11d)](_0x4c1c92[_0x143552(0x123)])[_0x143552(0x127)]()[_0x143552(0x11c)](_0x4c1c92[_0x143552(0x125)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x29f4e9(0x117)]=run;