browserstack-node-sdk 1.42.2 → 1.42.3

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 (176) 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/cucumber-sessionDetails.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/playwright-patcher.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/playwright-helper.js +1 -1
  154. package/src/helpers/processHelper.js +1 -1
  155. package/src/helpers/request-spy.js +1 -1
  156. package/src/helpers/setKeepAlive.js +1 -1
  157. package/src/helpers/test-observability/constants.js +1 -1
  158. package/src/helpers/test-observability/error-handler.js +1 -1
  159. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  160. package/src/helpers/test-observability/sessionHandler.js +1 -1
  161. package/src/helpers/test-observability/utils.js +1 -1
  162. package/src/helpers/test-orchestration/constants.js +1 -1
  163. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  164. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  165. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  166. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  167. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  168. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  169. package/src/helpers/testhub/constants.js +1 -1
  170. package/src/helpers/testhub/testhubHandler.js +1 -1
  171. package/src/helpers/testhub/utils.js +1 -1
  172. package/src/helpers/timeoutPromise.js +1 -1
  173. package/src/helpers/utilities.js +1 -1
  174. package/src/helpers/w3cMapping.js +1 -1
  175. package/src/hubAllocationMethods.js +1 -1
  176. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x2d32(_0x6a40e4,_0x238355){const _0x5f23fe=a15_0x5f23();return a15_0x2d32=function(_0x2d323c,_0xe1c42b){_0x2d323c=_0x2d323c-0x19d;let _0x2d51=_0x5f23fe[_0x2d323c];return _0x2d51;},a15_0x2d32(_0x6a40e4,_0x238355);}const a15_0x5a55dc=a15_0x2d32;function a15_0x5f23(){const _0x1ea39f=['315495mmdwDM','\x0aFound\x20the\x20following\x20grids:\x0a','init-not-called','clusterName','2355236KkDlhv','50678VqxSlG','https://','iKfXs','eUpXi','kFKPR','cluster-name','nyqhP','queued','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GFvPz','qvuVd','grid','stringify','body','../../utils/instrumentationUtils','uuid','Browserstack','../../utils/utilityMethods','BMuzq','Failed\x20to\x20list\x20resources!\x20Error:\x20','grid-id','xHYmV','server-error','ERROR','jmESp','statusCode','requestId','WEvrR','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','username','tTAiQ','push','options','3420030AhMxKl','7mVYPpR','bstackAccesskey','password','forEach','/packages/cli/get-all-grids','oRqLh','pBcNG','DFWbn','4761368CGmaPX','uPJCS','JXUox','description','RLxAs','10535859ljuwEI','type','exit','got','allGrids','ElTdY','readFileSync','kElZL','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','AcNZm','../../config/constants','parse','unknown-error','list-grids-called','22iNbwmb','boolean','grid-name','command','iDxGW','help','name','grids','error','CdLIC','INFO','desc','cbtLh','log','epilogue','argv','running','table','/packages/cli/get-grids','1044490VWofFk'];a15_0x5f23=function(){return _0x1ea39f;};return a15_0x5f23();}(function(_0x491230,_0x1dc74e){const _0x56c9fd=a15_0x2d32,_0xefc0c8=_0x491230();while(!![]){try{const _0x1313f1=-parseInt(_0x56c9fd(0x1c6))/0x1*(parseInt(_0x56c9fd(0x1df))/0x2)+parseInt(_0x56c9fd(0x1da))/0x3+-parseInt(_0x56c9fd(0x1de))/0x4+parseInt(_0x56c9fd(0x1d9))/0x5+parseInt(_0x56c9fd(0x1aa))/0x6*(parseInt(_0x56c9fd(0x1ab))/0x7)+-parseInt(_0x56c9fd(0x1b3))/0x8+parseInt(_0x56c9fd(0x1b8))/0x9;if(_0x1313f1===_0x1dc74e)break;else _0xefc0c8['push'](_0xefc0c8['shift']());}catch(_0x2f62c1){_0xefc0c8['push'](_0xefc0c8['shift']());}}}(a15_0x5f23,0x4c7c1));const fs=require('fs'),got=require(a15_0x5a55dc(0x1bb)),{table}=require(a15_0x5a55dc(0x1d7)),{v4:uuidv4}=require(a15_0x5a55dc(0x1ee)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5a55dc(0x1c2)),{getCredentialsPath,getAuthHeader}=require(a15_0x5a55dc(0x1f0)),{sendInstrumentationEvent}=require(a15_0x5a55dc(0x1ed));exports[a15_0x5a55dc(0x1c9)]=a15_0x5a55dc(0x1cd),exports[a15_0x5a55dc(0x1d1)]=a15_0x5a55dc(0x1a5),exports['builder']=function(_0x1d680){const _0x208681=a15_0x5a55dc,_0x56cd84={};_0x56cd84[_0x208681(0x1ca)]=_0x208681(0x1c0),_0x56cd84[_0x208681(0x1a7)]=_0x208681(0x1c7),_0x56cd84[_0x208681(0x19e)]=_0x208681(0x1cb);const _0x2aadc2=_0x56cd84,_0x2ad68d={};_0x2ad68d[_0x208681(0x1b6)]=_0x2aadc2[_0x208681(0x1ca)],_0x2ad68d[_0x208681(0x1b9)]=_0x2aadc2[_0x208681(0x1a7)];const _0x7cdb6c={};return _0x7cdb6c['all-grids']=_0x2ad68d,_0x1d680['usage'](HELP_HEADER_MESSAGE['list'][_0x208681(0x1ea)])[_0x208681(0x1d4)](HELP_FOOTER_MESSAGE)[_0x208681(0x1a9)](_0x7cdb6c)[_0x208681(0x1cb)](_0x2aadc2['xHYmV'])[_0x208681(0x1d5)];},exports['handler']=async function(_0x3bc463){const _0x266415=a15_0x5a55dc,_0x2f6dff={'DFWbn':function(_0x2d6671){return _0x2d6671();},'RLxAs':_0x266415(0x1e7),'NPzIr':function(_0x3283e4,_0x5a4dc7,_0x2128a3,_0xaa82d4,_0x15d409,_0x56ed53,_0x1c3aa5){return _0x3283e4(_0x5a4dc7,_0x2128a3,_0xaa82d4,_0x15d409,_0x56ed53,_0x1c3aa5);},'oRqLh':_0x266415(0x1c5),'uPJCS':_0x266415(0x1dc),'qvuVd':'GET','WEvrR':function(_0x43b55b,_0x38a810,_0x4af0c6){return _0x43b55b(_0x38a810,_0x4af0c6);},'BMuzq':function(_0x501a29,_0x50cb59,_0x3c2a4a,_0xa7d8ef,_0x14243a,_0x18bc5e,_0x406fa4){return _0x501a29(_0x50cb59,_0x3c2a4a,_0xa7d8ef,_0x14243a,_0x18bc5e,_0x406fa4);},'MZXYd':function(_0x48e3c8,_0x1770ea,_0x4c6fa2){return _0x48e3c8(_0x1770ea,_0x4c6fa2);},'FMUmt':function(_0x2e9379,_0x17e5e7){return _0x2e9379!==_0x17e5e7;},'JXUox':function(_0x525553,_0x5e10c0){return _0x525553!==_0x5e10c0;},'ElTdY':function(_0x3359db,_0x253ec1){return _0x3359db===_0x253ec1;},'ZDRWO':_0x266415(0x1db),'DjqxO':_0x266415(0x19d),'jmESp':_0x266415(0x1c8),'kFKPR':'status','eUpXi':_0x266415(0x1d6),'pBcNG':_0x266415(0x1e6),'iKfXs':_0x266415(0x1e4),'cbtLh':function(_0x3de3d7,_0x25bc70){return _0x3de3d7(_0x25bc70);},'GFvPz':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','AcNZm':function(_0x232833,_0x565c92,_0x54c315,_0x65e12f,_0x151f8e,_0x2a28c7,_0x3f1b43){return _0x232833(_0x565c92,_0x54c315,_0x65e12f,_0x151f8e,_0x2a28c7,_0x3f1b43);},'nyqhP':'unauthorised','kElZL':function(_0x3611a9,_0x48b675,_0x175695,_0x522b4e,_0x2ecc57,_0x67c3e3,_0x53641f){return _0x3611a9(_0x48b675,_0x175695,_0x522b4e,_0x2ecc57,_0x67c3e3,_0x53641f);},'QFGYX':_0x266415(0x19f),'CdLIC':_0x266415(0x1c4)};try{global_registry[_0x266415(0x1a3)]=_0x2f6dff[_0x266415(0x1b2)](uuidv4);!fs['existsSync'](_0x2f6dff[_0x266415(0x1b2)](getCredentialsPath))&&(console[_0x266415(0x1ce)](_0x2f6dff[_0x266415(0x1b7)]),await _0x2f6dff['NPzIr'](sendInstrumentationEvent,_0x3bc463,_0x2f6dff['oRqLh'],messageTypes[_0x266415(0x1a0)],_0x2f6dff[_0x266415(0x1b4)],null,_0x3bc463),process['exit'](0x1));const _0x1de6e3=JSON[_0x266415(0x1c3)](fs[_0x266415(0x1be)](_0x2f6dff[_0x266415(0x1b2)](getCredentialsPath)));let _0x4459b8=_0x266415(0x1e0)+AG_API_URL+_0x266415(0x1d8);_0x3bc463[_0x266415(0x1bc)]&&(_0x4459b8=_0x266415(0x1e0)+AG_API_URL+_0x266415(0x1af));const _0x980b3={'method':_0x2f6dff[_0x266415(0x1e9)],'headers':_0x2f6dff[_0x266415(0x1a4)](getAuthHeader,_0x1de6e3[_0x266415(0x1ef)][_0x266415(0x1a6)],_0x1de6e3[_0x266415(0x1ef)][_0x266415(0x1ad)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x1de6e3[_0x266415(0x1ef)]['username'],global_registry[_0x266415(0x1ac)]=_0x1de6e3[_0x266415(0x1ef)]['password'],_0x2f6dff[_0x266415(0x1f1)](sendInstrumentationEvent,_0x3bc463,_0x2f6dff[_0x266415(0x1b0)],messageTypes[_0x266415(0x1d0)],null,null,_0x3bc463);const _0x1965ed=await _0x2f6dff['MZXYd'](got,_0x4459b8,_0x980b3);if(_0x2f6dff['FMUmt'](_0x1965ed,null)&&_0x2f6dff[_0x266415(0x1b5)](_0x1965ed,undefined)&&_0x2f6dff[_0x266415(0x1bd)](_0x1965ed[_0x266415(0x1a2)],0xc8)){const _0x3a1714=JSON[_0x266415(0x1c3)](_0x1965ed[_0x266415(0x1ec)]);console['log'](_0x2f6dff['ZDRWO']);const _0x9b16e7=[];_0x9b16e7[_0x266415(0x1a8)]([_0x2f6dff['DjqxO'],_0x2f6dff[_0x266415(0x1a1)],_0x2f6dff[_0x266415(0x1e3)],_0x2f6dff[_0x266415(0x1e2)],_0x2f6dff[_0x266415(0x1b1)],_0x2f6dff[_0x266415(0x1e1)]]),_0x3a1714[_0x266415(0x1ae)](_0x3f0c1b=>{const _0x9d676=_0x266415;_0x9b16e7[_0x9d676(0x1a8)]([_0x3f0c1b['id'],_0x3f0c1b[_0x9d676(0x1cc)],_0x3f0c1b['status'],_0x3f0c1b['running'],_0x3f0c1b[_0x9d676(0x1e6)],_0x3f0c1b[_0x9d676(0x1dd)]]);}),console[_0x266415(0x1d3)](_0x2f6dff[_0x266415(0x1d2)](table,_0x9b16e7)),process[_0x266415(0x1ba)](0x0);}_0x2f6dff[_0x266415(0x1bd)](_0x1965ed['statusCode'],0x191)&&(console[_0x266415(0x1ce)](_0x2f6dff[_0x266415(0x1e8)]),await _0x2f6dff[_0x266415(0x1c1)](sendInstrumentationEvent,_0x3bc463,_0x2f6dff[_0x266415(0x1b0)],messageTypes['ERROR'],_0x2f6dff[_0x266415(0x1e5)],null,_0x3bc463),process[_0x266415(0x1ba)](0x1)),console[_0x266415(0x1ce)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x266415(0x1eb)](_0x1965ed)),await _0x2f6dff[_0x266415(0x1bf)](sendInstrumentationEvent,_0x3bc463,_0x2f6dff[_0x266415(0x1b0)],messageTypes[_0x266415(0x1a0)],_0x2f6dff['QFGYX'],_0x1965ed,_0x3bc463),process[_0x266415(0x1ba)](0x1);}catch(_0x47787f){console[_0x266415(0x1ce)](_0x266415(0x1f2)+_0x47787f['stack']),await _0x2f6dff[_0x266415(0x1bf)](sendInstrumentationEvent,_0x3bc463,_0x2f6dff[_0x266415(0x1b0)],messageTypes[_0x266415(0x1a0)],_0x2f6dff[_0x266415(0x1cf)],_0x47787f,_0x3bc463),process[_0x266415(0x1ba)](0x1);}};
1
+ const a15_0x2ca05d=a15_0x2b7d;(function(_0x53a4ce,_0xcf5fb2){const _0x54622e=a15_0x2b7d,_0x455fd2=_0x53a4ce();while(!![]){try{const _0x333de6=-parseInt(_0x54622e(0x109))/0x1+parseInt(_0x54622e(0x134))/0x2*(-parseInt(_0x54622e(0xfc))/0x3)+-parseInt(_0x54622e(0xf6))/0x4+parseInt(_0x54622e(0x103))/0x5+-parseInt(_0x54622e(0xfe))/0x6*(parseInt(_0x54622e(0x107))/0x7)+-parseInt(_0x54622e(0x106))/0x8*(parseInt(_0x54622e(0x11b))/0x9)+parseInt(_0x54622e(0x123))/0xa*(parseInt(_0x54622e(0x13b))/0xb);if(_0x333de6===_0xcf5fb2)break;else _0x455fd2['push'](_0x455fd2['shift']());}catch(_0x4b9a09){_0x455fd2['push'](_0x455fd2['shift']());}}}(a15_0x61dc,0xbd328));function a15_0x2b7d(_0x463ab8,_0x3f8703){const _0x61dccd=a15_0x61dc();return a15_0x2b7d=function(_0x2b7dca,_0x1e9fd7){_0x2b7dca=_0x2b7dca-0xec;let _0x590b1e=_0x61dccd[_0x2b7dca];return _0x590b1e;},a15_0x2b7d(_0x463ab8,_0x3f8703);}const fs=require('fs'),got=require(a15_0x2ca05d(0x137)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2ca05d(0x104)),{getCredentialsPath,getAuthHeader}=require(a15_0x2ca05d(0x10b)),{sendInstrumentationEvent}=require(a15_0x2ca05d(0xec));function a15_0x61dc(){const _0x54ca9c=['6858845KSizwG','../../config/constants','requestId','51728BmmBGX','1029BTIrVA','SSNWS','284649EoefVj','clusterName','../../utils/utilityMethods','kGonW','boolean','name','list-grids-called','existsSync','status','parse','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','LHzBb','unknown-error','handler','running','pmRCt','DGJtm','315ZElcJm','\x0aFound\x20the\x20following\x20grids:\x0a','grid-name','all-grids','bstackUsername','/packages/cli/get-grids','yQLDm','desc','20LtMbPb','forEach','password','allGrids','BXllZ','type','argv','stack','builder','UvtRo','jrBSA','ARTfq','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','queued','UqORK','init-not-called','qzmxX','2iLkaRR','DSTIS','server-error','got','body','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','error','9674753vfDIEK','stringify','sOhsA','GET','list','Failed\x20to\x20list\x20resources!\x20Error:\x20','help','../../utils/instrumentationUtils','username','usage','/packages/cli/get-all-grids','LnJAR','command','XaYAR','oozsv','exit','QxZam','1280360YQYDTC','readFileSync','GpWQa','RgBGP','ERROR','cEQWK','3104589cyJxVU','ncUHf','19998gOpeib','statusCode','paEEX','Browserstack','push'];a15_0x61dc=function(){return _0x54ca9c;};return a15_0x61dc();}exports[a15_0x2ca05d(0xf1)]='grids',exports[a15_0x2ca05d(0x122)]=a15_0x2ca05d(0x139),exports[a15_0x2ca05d(0x12b)]=function(_0x2fccbb){const _0x4cd742=a15_0x2ca05d,_0x52f92b={};_0x52f92b[_0x4cd742(0x11a)]=_0x4cd742(0x12f),_0x52f92b[_0x4cd742(0xf9)]=_0x4cd742(0x10d),_0x52f92b['ncUHf']=_0x4cd742(0x141);const _0x1e88ba=_0x52f92b,_0x1eeb7d={};_0x1eeb7d['description']=_0x1e88ba[_0x4cd742(0x11a)],_0x1eeb7d[_0x4cd742(0x128)]=_0x1e88ba['RgBGP'];const _0x5f11fb={};return _0x5f11fb[_0x4cd742(0x11e)]=_0x1eeb7d,_0x2fccbb[_0x4cd742(0xee)](HELP_HEADER_MESSAGE[_0x4cd742(0x13f)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5f11fb)[_0x4cd742(0x141)](_0x1e88ba[_0x4cd742(0xfd)])[_0x4cd742(0x129)];},exports[a15_0x2ca05d(0x117)]=async function(_0x27cc57){const _0x2c2669=a15_0x2ca05d,_0x4dcfed={'SSNWS':function(_0x272877){return _0x272877();},'oozsv':function(_0x274b8a){return _0x274b8a();},'LHzBb':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UvtRo':function(_0x2b6534,_0x3c74c5,_0x369b24,_0xbf7a50,_0x192752,_0x4e2508,_0x5e1f04){return _0x2b6534(_0x3c74c5,_0x369b24,_0xbf7a50,_0x192752,_0x4e2508,_0x5e1f04);},'kGonW':_0x2c2669(0x10f),'jrBSA':_0x2c2669(0x132),'YBBGu':function(_0x124c36){return _0x124c36();},'yQLDm':_0x2c2669(0x13e),'GpWQa':function(_0x2deea4,_0x50bdd6,_0x4dc210){return _0x2deea4(_0x50bdd6,_0x4dc210);},'cEQWK':function(_0x1fe24c,_0x46353e){return _0x1fe24c!==_0x46353e;},'LnJAR':function(_0x391d34,_0xfed966){return _0x391d34===_0xfed966;},'qzmxX':_0x2c2669(0x11c),'RtIzd':'grid-id','ARTfq':_0x2c2669(0x11d),'UqORK':_0x2c2669(0x111),'paEEX':'running','pmRCt':_0x2c2669(0x130),'XaYAR':'cluster-name','DSTIS':function(_0x16e92d,_0x139cd0){return _0x16e92d(_0x139cd0);},'sOhsA':_0x2c2669(0x114),'nWVdJ':'unauthorised','oFjDR':function(_0x3f6459,_0x3e525e,_0x38c2d2,_0x508097,_0x5f1c5b,_0x3a2df8,_0x2617c4){return _0x3f6459(_0x3e525e,_0x38c2d2,_0x508097,_0x5f1c5b,_0x3a2df8,_0x2617c4);},'xBTNZ':_0x2c2669(0x136),'QxZam':function(_0x5baf8d,_0x418fb2,_0x7dcda1,_0xcc1ea9,_0x489965,_0xa336e7,_0x2c06fc){return _0x5baf8d(_0x418fb2,_0x7dcda1,_0xcc1ea9,_0x489965,_0xa336e7,_0x2c06fc);},'BXllZ':_0x2c2669(0x116)};try{global_registry[_0x2c2669(0x105)]=_0x4dcfed[_0x2c2669(0x108)](uuidv4);!fs[_0x2c2669(0x110)](_0x4dcfed[_0x2c2669(0xf3)](getCredentialsPath))&&(console[_0x2c2669(0x13a)](_0x4dcfed[_0x2c2669(0x115)]),await _0x4dcfed[_0x2c2669(0x12c)](sendInstrumentationEvent,_0x27cc57,_0x4dcfed[_0x2c2669(0x10c)],messageTypes[_0x2c2669(0xfa)],_0x4dcfed[_0x2c2669(0x12d)],null,_0x27cc57),process[_0x2c2669(0xf4)](0x1));const _0x49d215=JSON[_0x2c2669(0x112)](fs[_0x2c2669(0xf7)](_0x4dcfed['YBBGu'](getCredentialsPath)));let _0x31fedc=_0x2c2669(0x113)+AG_API_URL+_0x2c2669(0x120);_0x27cc57[_0x2c2669(0x126)]&&(_0x31fedc=_0x2c2669(0x113)+AG_API_URL+_0x2c2669(0xef));const _0x12b734={'method':_0x4dcfed[_0x2c2669(0x121)],'headers':_0x4dcfed[_0x2c2669(0xf8)](getAuthHeader,_0x49d215[_0x2c2669(0x101)][_0x2c2669(0xed)],_0x49d215['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x2c2669(0x11f)]=_0x49d215['Browserstack'][_0x2c2669(0xed)],global_registry['bstackAccesskey']=_0x49d215[_0x2c2669(0x101)][_0x2c2669(0x125)],_0x4dcfed[_0x2c2669(0x12c)](sendInstrumentationEvent,_0x27cc57,_0x4dcfed[_0x2c2669(0x10c)],messageTypes['INFO'],null,null,_0x27cc57);const _0xc8d347=await _0x4dcfed[_0x2c2669(0xf8)](got,_0x31fedc,_0x12b734);if(_0x4dcfed[_0x2c2669(0xfb)](_0xc8d347,null)&&_0x4dcfed[_0x2c2669(0xfb)](_0xc8d347,undefined)&&_0x4dcfed[_0x2c2669(0xf0)](_0xc8d347[_0x2c2669(0xff)],0xc8)){const _0x52b7ed=JSON[_0x2c2669(0x112)](_0xc8d347[_0x2c2669(0x138)]);console['log'](_0x4dcfed[_0x2c2669(0x133)]);const _0x5333ed=[];_0x5333ed['push']([_0x4dcfed['RtIzd'],_0x4dcfed[_0x2c2669(0x12e)],_0x4dcfed[_0x2c2669(0x131)],_0x4dcfed[_0x2c2669(0x100)],_0x4dcfed[_0x2c2669(0x119)],_0x4dcfed[_0x2c2669(0xf2)]]),_0x52b7ed[_0x2c2669(0x124)](_0x4bc2e9=>{const _0x5d1e8c=_0x2c2669;_0x5333ed[_0x5d1e8c(0x102)]([_0x4bc2e9['id'],_0x4bc2e9[_0x5d1e8c(0x10e)],_0x4bc2e9['status'],_0x4bc2e9[_0x5d1e8c(0x118)],_0x4bc2e9[_0x5d1e8c(0x130)],_0x4bc2e9[_0x5d1e8c(0x10a)]]);}),console['log'](_0x4dcfed[_0x2c2669(0x135)](table,_0x5333ed)),process[_0x2c2669(0xf4)](0x0);}_0x4dcfed[_0x2c2669(0xf0)](_0xc8d347['statusCode'],0x191)&&(console[_0x2c2669(0x13a)](_0x4dcfed[_0x2c2669(0x13d)]),await _0x4dcfed[_0x2c2669(0x12c)](sendInstrumentationEvent,_0x27cc57,_0x4dcfed[_0x2c2669(0x10c)],messageTypes['ERROR'],_0x4dcfed['nWVdJ'],null,_0x27cc57),process[_0x2c2669(0xf4)](0x1)),console[_0x2c2669(0x13a)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2c2669(0x13c)](_0xc8d347)),await _0x4dcfed['oFjDR'](sendInstrumentationEvent,_0x27cc57,_0x4dcfed[_0x2c2669(0x10c)],messageTypes[_0x2c2669(0xfa)],_0x4dcfed['xBTNZ'],_0xc8d347,_0x27cc57),process[_0x2c2669(0xf4)](0x1);}catch(_0x552502){console['error'](_0x2c2669(0x140)+_0x552502[_0x2c2669(0x12a)]),await _0x4dcfed[_0x2c2669(0xf5)](sendInstrumentationEvent,_0x27cc57,_0x4dcfed['kGonW'],messageTypes[_0x2c2669(0xfa)],_0x4dcfed[_0x2c2669(0x127)],_0x552502,_0x27cc57),process[_0x2c2669(0xf4)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x1d5edd=a16_0x31b0;function a16_0x31b0(_0x3f241b,_0x340f6d){const _0x1b072a=a16_0x1b07();return a16_0x31b0=function(_0x31b05d,_0x84eb1b){_0x31b05d=_0x31b05d-0x149;let _0x5df19e=_0x1b072a[_0x31b05d];return _0x5df19e;},a16_0x31b0(_0x3f241b,_0x340f6d);}(function(_0x3c9cf8,_0x3d70b2){const _0x567e72=a16_0x31b0,_0x27abe3=_0x3c9cf8();while(!![]){try{const _0x5a392d=-parseInt(_0x567e72(0x14b))/0x1*(-parseInt(_0x567e72(0x154))/0x2)+parseInt(_0x567e72(0x151))/0x3+-parseInt(_0x567e72(0x153))/0x4+-parseInt(_0x567e72(0x156))/0x5+-parseInt(_0x567e72(0x158))/0x6+-parseInt(_0x567e72(0x152))/0x7*(-parseInt(_0x567e72(0x14e))/0x8)+parseInt(_0x567e72(0x15b))/0x9*(parseInt(_0x567e72(0x14c))/0xa);if(_0x5a392d===_0x3d70b2)break;else _0x27abe3['push'](_0x27abe3['shift']());}catch(_0x1f941b){_0x27abe3['push'](_0x27abe3['shift']());}}}(a16_0x1b07,0x6abe8));function a16_0x1b07(){const _0x303a77=['desc','usage','1lHMmVC','2990QtiUGD','help','64096ExKaKW','StoAl','command','1081230JwUnWP','161TvijSs','1372092TewZxL','256570nDvBsb','hTYGp','2891630xnYJRC','strict','3527034bZkJXS','recommendCommands','../config/constants','38331nUiqMA','pre_check','precheck_commands','epilogue','handler'];a16_0x1b07=function(){return _0x303a77;};return a16_0x1b07();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1d5edd(0x15a));exports[a16_0x1d5edd(0x150)]='pre-check',exports[a16_0x1d5edd(0x149)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x145603){const _0x490fea=a16_0x1d5edd,_0x1094d5={};_0x1094d5[_0x490fea(0x14f)]=_0x490fea(0x15d),_0x1094d5[_0x490fea(0x155)]=_0x490fea(0x14d);const _0x211b59=_0x1094d5;return _0x145603[_0x490fea(0x14a)](HELP_HEADER_MESSAGE[_0x490fea(0x15c)])[_0x490fea(0x15e)](HELP_FOOTER_MESSAGE)['commandDir'](_0x211b59[_0x490fea(0x14f)])['demandCommand']()[_0x490fea(0x159)]()[_0x490fea(0x157)]()[_0x490fea(0x14d)](_0x211b59[_0x490fea(0x155)]);},exports[a16_0x1d5edd(0x15f)]=function(_0x2387e2){};
1
+ const a16_0x1b9d41=a16_0xbacb;function a16_0x495a(){const _0x517bc3=['HmFgh','builder','2191546laIEYu','help','strict','12eBEJSb','342jzvtaK','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Sqppm','924060TRtHZp','../config/constants','121325OOSkfK','7133994ZPDSsA','1071ysVdIt','1298648doBGvl','pre-check','command','recommendCommands','1413448odKhov','epilogue','pre_check'];a16_0x495a=function(){return _0x517bc3;};return a16_0x495a();}function a16_0xbacb(_0x12c254,_0x205f10){const _0x495a8a=a16_0x495a();return a16_0xbacb=function(_0xbacb6,_0x4925ea){_0xbacb6=_0xbacb6-0x87;let _0x562502=_0x495a8a[_0xbacb6];return _0x562502;},a16_0xbacb(_0x12c254,_0x205f10);}(function(_0x56fb85,_0xd4796c){const _0x18bfae=a16_0xbacb,_0x4f126d=_0x56fb85();while(!![]){try{const _0x4ce4c8=-parseInt(_0x18bfae(0x88))/0x1*(parseInt(_0x18bfae(0x96))/0x2)+parseInt(_0x18bfae(0x99))/0x3+parseInt(_0x18bfae(0x89))/0x4+-parseInt(_0x18bfae(0x9b))/0x5*(-parseInt(_0x18bfae(0x95))/0x6)+parseInt(_0x18bfae(0x92))/0x7+parseInt(_0x18bfae(0x8d))/0x8+-parseInt(_0x18bfae(0x87))/0x9;if(_0x4ce4c8===_0xd4796c)break;else _0x4f126d['push'](_0x4f126d['shift']());}catch(_0x1cb10c){_0x4f126d['push'](_0x4f126d['shift']());}}}(a16_0x495a,0x2fa5c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1b9d41(0x9a));exports[a16_0x1b9d41(0x8b)]=a16_0x1b9d41(0x8a),exports['desc']=a16_0x1b9d41(0x97),exports[a16_0x1b9d41(0x91)]=function(_0x45f58a){const _0x5664f9=a16_0x1b9d41,_0x1bbcd7={};_0x1bbcd7[_0x5664f9(0x98)]='precheck_commands',_0x1bbcd7[_0x5664f9(0x90)]='help';const _0x1e6da7=_0x1bbcd7;return _0x45f58a['usage'](HELP_HEADER_MESSAGE[_0x5664f9(0x8f)])[_0x5664f9(0x8e)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1e6da7[_0x5664f9(0x98)])['demandCommand']()[_0x5664f9(0x8c)]()[_0x5664f9(0x94)]()[_0x5664f9(0x93)](_0x1e6da7[_0x5664f9(0x90)]);},exports['handler']=function(_0xaef647){};
@@ -1 +1 @@
1
- const a17_0x476c6f=a17_0x583b;(function(_0x386855,_0x5c0b3f){const _0xd9eb0f=a17_0x583b,_0x26502b=_0x386855();while(!![]){try{const _0x3a711b=parseInt(_0xd9eb0f(0x1b5))/0x1+parseInt(_0xd9eb0f(0x24d))/0x2*(-parseInt(_0xd9eb0f(0x1ff))/0x3)+parseInt(_0xd9eb0f(0x1e6))/0x4+-parseInt(_0xd9eb0f(0x273))/0x5*(-parseInt(_0xd9eb0f(0x1fe))/0x6)+-parseInt(_0xd9eb0f(0x1cf))/0x7*(-parseInt(_0xd9eb0f(0x286))/0x8)+-parseInt(_0xd9eb0f(0x1ac))/0x9+parseInt(_0xd9eb0f(0x242))/0xa*(-parseInt(_0xd9eb0f(0x1b7))/0xb);if(_0x3a711b===_0x5c0b3f)break;else _0x26502b['push'](_0x26502b['shift']());}catch(_0x1d2388){_0x26502b['push'](_0x26502b['shift']());}}}(a17_0x16c1,0xc2296));function a17_0x583b(_0xa52408,_0x307013){const _0x16c194=a17_0x16c1();return a17_0x583b=function(_0x583bbe,_0x47ede0){_0x583bbe=_0x583bbe-0x1aa;let _0x417323=_0x16c194[_0x583bbe];return _0x417323;},a17_0x583b(_0xa52408,_0x307013);}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x476c6f(0x221)),ReconnectingWebSocket=require(a17_0x476c6f(0x1d2)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x476c6f(0x287)),{logger}=require('../../config/logger'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x476c6f(0x276)),{getCloudProviderObjectWithOutInit}=require(a17_0x476c6f(0x279)),webSocketUtils=require(a17_0x476c6f(0x1e0)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x476c6f(0x259)]=a17_0x476c6f(0x214),exports[a17_0x476c6f(0x1c8)]=a17_0x476c6f(0x1de),exports[a17_0x476c6f(0x227)]=function(_0x407f94){const _0x2c18ec=a17_0x476c6f,_0x55cec1={};_0x55cec1[_0x2c18ec(0x23c)]=_0x2c18ec(0x1b3),_0x55cec1[_0x2c18ec(0x284)]=_0x2c18ec(0x1c4),_0x55cec1[_0x2c18ec(0x2a3)]=_0x2c18ec(0x1b0),_0x55cec1[_0x2c18ec(0x1f2)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x55cec1[_0x2c18ec(0x274)]=_0x2c18ec(0x21a),_0x55cec1[_0x2c18ec(0x1db)]=_0x2c18ec(0x238);const _0x1b0c21=_0x55cec1,_0x355c5f={};_0x355c5f[_0x2c18ec(0x249)]=_0x1b0c21['nSzoJ'],_0x355c5f[_0x2c18ec(0x246)]=_0x1b0c21[_0x2c18ec(0x284)];const _0x42ca63={};_0x42ca63[_0x2c18ec(0x249)]=_0x1b0c21[_0x2c18ec(0x2a3)],_0x42ca63[_0x2c18ec(0x246)]=_0x1b0c21[_0x2c18ec(0x284)];const _0x2d7752={};_0x2d7752['description']=_0x1b0c21[_0x2c18ec(0x1f2)],_0x2d7752[_0x2c18ec(0x246)]=_0x1b0c21[_0x2c18ec(0x284)];const _0x25d7a1={};_0x25d7a1[_0x2c18ec(0x249)]=_0x1b0c21[_0x2c18ec(0x274)],_0x25d7a1[_0x2c18ec(0x246)]=_0x1b0c21['TcDLz'];const _0x210050={};return _0x210050[_0x2c18ec(0x25b)]=_0x355c5f,_0x210050[_0x2c18ec(0x1e9)]=_0x42ca63,_0x210050[_0x2c18ec(0x228)]=_0x2d7752,_0x210050[_0x2c18ec(0x1ae)]=_0x25d7a1,_0x407f94[_0x2c18ec(0x215)](HELP_HEADER_MESSAGE[_0x2c18ec(0x27c)])[_0x2c18ec(0x27f)](HELP_FOOTER_MESSAGE)[_0x2c18ec(0x1d5)](_0x210050)[_0x2c18ec(0x238)](_0x1b0c21['EbByU'])[_0x2c18ec(0x24b)];};async function inputValidation(_0x404773,_0x3b50c4){const _0x3f4cc0=a17_0x476c6f,_0x4ee0f4={'tDgSR':_0x3f4cc0(0x1b3),'jGveC':_0x3f4cc0(0x1c4),'YpbWI':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ZKfWa':_0x3f4cc0(0x25d),'jcNMG':_0x3f4cc0(0x21a),'uhpRT':_0x3f4cc0(0x238),'GndVm':_0x3f4cc0(0x24c),'oFYax':'region','Baufv':function(_0x3c2e67,_0x5dc3c5){return _0x3c2e67+_0x5dc3c5;},'VCwHp':'Success','lBxnE':_0x3f4cc0(0x266),'kgHZG':function(_0xd678bd,_0x1f8df5){return _0xd678bd||_0x1f8df5;},'QLVpf':'N/A','hKfpe':_0x3f4cc0(0x1ba),'Lnxal':_0x3f4cc0(0x25b),'htJpe':_0x3f4cc0(0x1e9),'crcLO':_0x3f4cc0(0x270),'MLtkS':'will\x20be\x20created','lxWpT':_0x3f4cc0(0x1fc),'ADdXj':function(_0x111f6f,_0x587daa){return _0x111f6f!==_0x587daa;},'sBxgx':_0x3f4cc0(0x204),'JhfBS':function(_0x5da28b,_0x26672e){return _0x5da28b!==_0x26672e;},'bGeGn':_0x3f4cc0(0x225),'XtjrY':_0x3f4cc0(0x20f),'WyIhD':function(_0x386690,_0x5dc22c){return _0x386690===_0x5dc22c;},'fgqSW':_0x3f4cc0(0x22c),'nTyjN':function(_0x5486df,_0x57e58c){return _0x5486df===_0x57e58c;},'hCMFH':_0x3f4cc0(0x1ad),'ypBCN':_0x3f4cc0(0x218),'ccHZw':function(_0x38acc3,_0x45fea0){return _0x38acc3>_0x45fea0;},'Czeuj':function(_0x32cd00,_0x572265){return _0x32cd00===_0x572265;},'LqhBV':'ntFjS','BrkCg':_0x3f4cc0(0x257),'XWbIp':function(_0x56ed5d,_0x25ca55,_0x5d0a95,_0x1ae793,_0x6d649c,_0x469a82,_0x4057d9,_0x56d9d5){return _0x56ed5d(_0x25ca55,_0x5d0a95,_0x1ae793,_0x6d649c,_0x469a82,_0x4057d9,_0x56d9d5);},'BVWjF':'pre-check-grid-called','eDIeH':_0x3f4cc0(0x20e),'DtExs':function(_0x596a26,_0x38c724){return _0x596a26!==_0x38c724;},'xvNxd':_0x3f4cc0(0x233),'MyKkG':_0x3f4cc0(0x275),'kUmhR':_0x3f4cc0(0x216),'WBUIM':'cloud-provider-not-supported','yrcyU':_0x3f4cc0(0x1d6),'bKsMq':_0x3f4cc0(0x1cd),'PrpKn':_0x3f4cc0(0x240),'vCRKj':'GET','QZbwU':function(_0x2746c6,_0x5804ba,_0x5e8af4){return _0x2746c6(_0x5804ba,_0x5e8af4);},'IrALB':function(_0x54b4e7,_0x534317,_0x568788,_0x4ed678,_0x2bb138,_0x4deeb0){return _0x54b4e7(_0x534317,_0x568788,_0x4ed678,_0x2bb138,_0x4deeb0);},'SOHQy':_0x3f4cc0(0x206),'SquJw':_0x3f4cc0(0x1ae),'bwBwR':function(_0x47eaaa,_0x3e587a){return _0x47eaaa===_0x3e587a;},'AyYeg':'XJcxU','LCQCZ':'sDtbz','rEdRh':function(_0x1818b3,_0x53d563){return _0x1818b3(_0x53d563);},'PxrCO':function(_0x5c988c,_0x4c933){return _0x5c988c!==_0x4c933;},'TomQI':_0x3f4cc0(0x265),'dgFcN':_0x3f4cc0(0x28d),'WMvsh':function(_0x27be24,_0x27ea12,_0x2ab644,_0x3d4b18,_0x247bd7,_0x3d7411,_0x14156c,_0x2fcad5){return _0x27be24(_0x27ea12,_0x2ab644,_0x3d4b18,_0x247bd7,_0x3d7411,_0x14156c,_0x2fcad5);},'CZuvC':_0x3f4cc0(0x1f0),'KPCTP':_0x3f4cc0(0x271),'duykT':'DtQqL','lXWgv':function(_0x688b6b,_0x4a72cf){return _0x688b6b===_0x4a72cf;},'LSRle':'wDoSr','BEZsU':_0x3f4cc0(0x251),'uWUPm':function(_0x47f522,_0x558c2a){return _0x47f522!==_0x558c2a;},'Obgqg':_0x3f4cc0(0x231),'pMcCE':_0x3f4cc0(0x1b9),'wSAgx':function(_0x1fc48d,_0x26e15b){return _0x1fc48d!==_0x26e15b;},'JtoId':'donLu','FqXFu':function(_0x59692c,_0x18bf8e,_0x25d96e,_0x49de8a,_0x503a9c,_0x255e28,_0x47a991,_0x1c6259){return _0x59692c(_0x18bf8e,_0x25d96e,_0x49de8a,_0x503a9c,_0x255e28,_0x47a991,_0x1c6259);}};let _0x47f528;try{if(_0x4ee0f4[_0x3f4cc0(0x21b)](_0x4ee0f4['sBxgx'],_0x4ee0f4['sBxgx']))_0x18f732[_0x3f4cc0(0x1c7)]('['+_0x32a210+_0x3f4cc0(0x285)+_0x471da7['status']+_0x3f4cc0(0x1bd)+_0x1c6499[_0x3f4cc0(0x29f)]+_0x3f4cc0(0x248)+_0x195b21[_0x3f4cc0(0x1fc)]),_0x25a8f6[_0x3f4cc0(0x1fc)]&&_0x3f7d27['error'](_0x3f4cc0(0x1d8)+_0x3db01a['error'][_0x3f4cc0(0x29d)]);else{if(_0x404773['clusterName']||_0x404773[_0x3f4cc0(0x1d7)]||_0x404773['region']){if(_0x4ee0f4[_0x3f4cc0(0x250)](_0x4ee0f4[_0x3f4cc0(0x1b4)],_0x4ee0f4[_0x3f4cc0(0x1b4)])){const _0x421aed={};_0x421aed[_0x3f4cc0(0x249)]=_0x4ee0f4[_0x3f4cc0(0x1f9)],_0x421aed[_0x3f4cc0(0x246)]=_0x4ee0f4[_0x3f4cc0(0x29c)];const _0x44da57={};_0x44da57[_0x3f4cc0(0x249)]=_0x4ee0f4[_0x3f4cc0(0x1b1)],_0x44da57[_0x3f4cc0(0x246)]=_0x4ee0f4[_0x3f4cc0(0x29c)];const _0x32cfda={};_0x32cfda[_0x3f4cc0(0x249)]=_0x4ee0f4[_0x3f4cc0(0x1e8)],_0x32cfda[_0x3f4cc0(0x246)]=_0x4ee0f4[_0x3f4cc0(0x29c)];const _0x5900c2={};_0x5900c2['description']=_0x4ee0f4['jcNMG'],_0x5900c2[_0x3f4cc0(0x246)]=_0x4ee0f4[_0x3f4cc0(0x29c)];const _0x33e857={};return _0x33e857[_0x3f4cc0(0x25b)]=_0x421aed,_0x33e857[_0x3f4cc0(0x1e9)]=_0x44da57,_0x33e857[_0x3f4cc0(0x228)]=_0x32cfda,_0x33e857[_0x3f4cc0(0x1ae)]=_0x5900c2,_0x324a21[_0x3f4cc0(0x215)](_0x375d6c[_0x3f4cc0(0x27c)])[_0x3f4cc0(0x27f)](_0x1233af)[_0x3f4cc0(0x1d5)](_0x33e857)['help'](_0x4ee0f4[_0x3f4cc0(0x1c6)])[_0x3f4cc0(0x24b)];}else{const _0x5df98f=[];!_0x404773['clusterName']&&(_0x4ee0f4[_0x3f4cc0(0x250)](_0x4ee0f4['XtjrY'],_0x4ee0f4['XtjrY'])?(_0x2c2705['error'](_0x4ee0f4[_0x3f4cc0(0x26a)]),_0x924b8d[_0x3f4cc0(0x1af)](0x1)):_0x5df98f[_0x3f4cc0(0x1b6)](_0x4ee0f4[_0x3f4cc0(0x24f)]));;!_0x404773[_0x3f4cc0(0x1d7)]&&(_0x4ee0f4[_0x3f4cc0(0x237)](_0x4ee0f4[_0x3f4cc0(0x1bc)],_0x4ee0f4[_0x3f4cc0(0x1bc)])?_0x5df98f[_0x3f4cc0(0x1b6)](_0x4ee0f4[_0x3f4cc0(0x1f4)]):(_0x3a7267[_0x3f4cc0(0x1c7)](_0x3f4cc0(0x278)+_0x38b309[_0x3f4cc0(0x1c5)]+'\x20'),_0x423d5e[_0x3f4cc0(0x1d7)]=_0x25fbda[_0x3f4cc0(0x1c5)]));;!_0x404773[_0x3f4cc0(0x228)]&&(_0x4ee0f4[_0x3f4cc0(0x1be)](_0x4ee0f4[_0x3f4cc0(0x264)],_0x4ee0f4[_0x3f4cc0(0x1ab)])?_0x541602=_0x3d337e:_0x5df98f[_0x3f4cc0(0x1b6)](_0x4ee0f4[_0x3f4cc0(0x1dc)]));;_0x4ee0f4[_0x3f4cc0(0x293)](_0x5df98f['length'],0x0)&&(_0x4ee0f4[_0x3f4cc0(0x1ee)](_0x4ee0f4[_0x3f4cc0(0x1f3)],_0x4ee0f4[_0x3f4cc0(0x234)])?_0x5f5d2d[_0x3f4cc0(0x1af)](0x1):(_0x47f528='Missing\x20required\x20arguments:\x20'+_0x5df98f[_0x3f4cc0(0x1e5)](',\x20')+_0x3f4cc0(0x2a5),await _0x4ee0f4[_0x3f4cc0(0x1d0)](reportToGalactusAndSendToEDS,_0x404773,_0x3b50c4,_0x47f528,messageTypes[_0x3f4cc0(0x1da)],_0x4ee0f4[_0x3f4cc0(0x1cb)],_0x4ee0f4[_0x3f4cc0(0x236)],_0x4ee0f4[_0x3f4cc0(0x20d)]),logger[_0x3f4cc0(0x1fc)](_0x47f528),process[_0x3f4cc0(0x1af)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3f4cc0(0x1f5)](_0x404773[_0x3f4cc0(0x1d7)][_0x3f4cc0(0x252)]())){if(_0x4ee0f4[_0x3f4cc0(0x1f7)](_0x4ee0f4['xvNxd'],_0x4ee0f4[_0x3f4cc0(0x25c)]))_0x47f528=_0x4ee0f4['kUmhR'],await _0x4ee0f4[_0x3f4cc0(0x1d0)](reportToGalactusAndSendToEDS,_0x404773,_0x3b50c4,_0x47f528,messageTypes[_0x3f4cc0(0x1da)],_0x4ee0f4['BVWjF'],_0x4ee0f4[_0x3f4cc0(0x1cc)],_0x4ee0f4['lxWpT']),logger[_0x3f4cc0(0x1fc)](_0x47f528),!_0x404773[_0x3f4cc0(0x1d7)]&&(_0x4ee0f4[_0x3f4cc0(0x1ee)](_0x4ee0f4['yrcyU'],_0x4ee0f4['yrcyU'])?(logger['info'](_0x3f4cc0(0x278)+DEFAULT_CLUSTER_DETAILS[_0x3f4cc0(0x1c5)]+'\x20'),_0x404773[_0x3f4cc0(0x1d7)]=DEFAULT_CLUSTER_DETAILS[_0x3f4cc0(0x1c5)]):_0x34003b[_0x3f4cc0(0x1b6)](_0x4ee0f4[_0x3f4cc0(0x1dc)]));else{const {header:_0x4069e1,response:_0x7b6fd5}=_0x47fd7d,{status:_0xcf0d47,data:_0x47ed42,error:_0x148124}=_0x7b6fd5;_0x823e0b+=_0x4069e1+'\x20#'+_0x4ee0f4['Baufv'](_0x249079,0x1)+'\x0a',_0xd60cf0+=_0x3f4cc0(0x23d)+(_0xcf0d47?_0x4ee0f4['VCwHp']:_0x4ee0f4[_0x3f4cc0(0x260)])+'\x0a',_0x46807a+=_0x3f4cc0(0x22b)+_0x4ee0f4[_0x3f4cc0(0x24a)](_0x47ed42,_0x4ee0f4[_0x3f4cc0(0x277)])+'\x0a',_0x148124&&(_0x4a15e2+=_0x4ee0f4[_0x3f4cc0(0x2a0)],_0x3abf4a+=_0x3f4cc0(0x267)+(_0x148124[_0x3f4cc0(0x28c)]||_0x4ee0f4[_0x3f4cc0(0x277)])+'\x0a',_0x2e9be3+=_0x3f4cc0(0x245)+(_0x148124[_0x3f4cc0(0x258)]||_0x4ee0f4[_0x3f4cc0(0x277)])+'\x0a',_0x1e37b5+=_0x3f4cc0(0x1aa)+(_0x148124[_0x3f4cc0(0x29d)]||_0x4ee0f4[_0x3f4cc0(0x277)])+'\x0a'),_0x416c9d+='\x0a\x0a';}}global_registry[_0x3f4cc0(0x235)]=_0x404773['clusterName'],global_registry[_0x3f4cc0(0x1d7)]=_0x404773['cloudProvider'],global_registry['clusterRegion']=_0x404773['region'];}}else{if(_0x404773['gridProfile']){if(_0x4ee0f4['DtExs'](_0x4ee0f4[_0x3f4cc0(0x263)],_0x4ee0f4[_0x3f4cc0(0x21c)])){global_registry[_0x3f4cc0(0x226)]=_0x404773[_0x3f4cc0(0x226)],logger[_0x3f4cc0(0x205)]('grid\x20profile\x20flow\x20'+_0x404773[_0x3f4cc0(0x226)]);const _0x22ad9d=_0x3f4cc0(0x219)+AG_API_URL+_0x3f4cc0(0x1ea),_0xf6cd87={};_0xf6cd87[_0x3f4cc0(0x280)]=_0x4ee0f4[_0x3f4cc0(0x254)],_0xf6cd87[_0x3f4cc0(0x207)]=global_registry[_0x3f4cc0(0x22f)],_0xf6cd87[_0x3f4cc0(0x243)]=![];const _0x5bf36f=_0xf6cd87,_0x548aad=await _0x4ee0f4[_0x3f4cc0(0x292)](got,_0x22ad9d,_0x5bf36f),_0x48d49b=await _0x4ee0f4[_0x3f4cc0(0x21d)](responseValidation,_0x548aad,_0x4ee0f4[_0x3f4cc0(0x26c)],_0x4ee0f4[_0x3f4cc0(0x1d1)],_0x404773,_0x3b50c4);let _0x5f4601={};if(_0x4ee0f4[_0x3f4cc0(0x261)](_0x48d49b,0xc8)){if(_0x4ee0f4[_0x3f4cc0(0x250)](_0x4ee0f4[_0x3f4cc0(0x210)],_0x4ee0f4[_0x3f4cc0(0x239)])){const _0x20c1f2=JSON[_0x3f4cc0(0x1ef)](_0x548aad['body']),_0x10c28f=_0x20c1f2[_0x3f4cc0(0x268)](_0x8b8b34=>_0x8b8b34['name']===_0x404773[_0x3f4cc0(0x226)])||null;_0x4ee0f4['rEdRh'](isUndefined,_0x10c28f)?_0x4ee0f4[_0x3f4cc0(0x1d9)](_0x4ee0f4['TomQI'],_0x4ee0f4[_0x3f4cc0(0x28a)])?(_0x47f528=_0x3f4cc0(0x26b)+_0x404773[_0x3f4cc0(0x226)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x4ee0f4[_0x3f4cc0(0x282)](reportToGalactusAndSendToEDS,_0x404773,_0x3b50c4,_0x47f528,messageTypes[_0x3f4cc0(0x1da)],_0x4ee0f4[_0x3f4cc0(0x1cb)],_0x4ee0f4[_0x3f4cc0(0x1e1)],_0x4ee0f4[_0x3f4cc0(0x20d)]),logger[_0x3f4cc0(0x1fc)](_0x47f528),process[_0x3f4cc0(0x1af)](0x1)):_0x41f40c[_0x3f4cc0(0x1b6)](_0x4ee0f4[_0x3f4cc0(0x24f)]):_0x4ee0f4[_0x3f4cc0(0x1ee)](_0x4ee0f4[_0x3f4cc0(0x27a)],_0x4ee0f4[_0x3f4cc0(0x281)])?_0x222e63['push'](_0x4ee0f4[_0x3f4cc0(0x1f4)]):_0x5f4601=_0x10c28f;}else _0x2ccb33+=_0x3f4cc0(0x26e)+_0x3852c4[_0x3f4cc0(0x235)]+_0x3f4cc0(0x1c0);}else _0x4ee0f4['lXWgv'](_0x4ee0f4[_0x3f4cc0(0x202)],_0x4ee0f4[_0x3f4cc0(0x202)])?process[_0x3f4cc0(0x1af)](0x1):_0x41f0aa+=_0x3f4cc0(0x26e)+_0x23390b['clusterName']+'\x20'+(_0x3b196b?_0x4ee0f4[_0x3f4cc0(0x299)]:_0x4ee0f4[_0x3f4cc0(0x23b)])+'\x0a\x0a';const _0x5a8e1d={};_0x5a8e1d[_0x3f4cc0(0x246)]=WS_EVENTS[_0x3f4cc0(0x247)],_0x5a8e1d[_0x3f4cc0(0x28c)]=_0x4ee0f4['BEZsU'],webSocketUtils['sendEventToBackend'](_0x3b50c4,_0x5a8e1d),global_registry[_0x3f4cc0(0x1d7)]=_0x5f4601[_0x3f4cc0(0x1d7)],global_registry['clusterRegion']=_0x5f4601[_0x3f4cc0(0x228)],global_registry[_0x3f4cc0(0x235)]=_0x5f4601['clusterName'];}else{const _0x2e778c={};_0x2e778c[_0x3f4cc0(0x246)]=_0x212993['LOG'],_0x2e778c[_0x3f4cc0(0x28c)]=_0x2c464b,_0x194aaf[_0x3f4cc0(0x296)](_0x55ea2b,_0x2e778c,_0x4ee0f4[_0x3f4cc0(0x20d)],!![]);}}else _0x4ee0f4['uWUPm'](_0x4ee0f4['Obgqg'],_0x4ee0f4[_0x3f4cc0(0x1ce)])?(logger[_0x3f4cc0(0x1fc)](_0x4ee0f4[_0x3f4cc0(0x26a)]),process[_0x3f4cc0(0x1af)](0x1)):(_0x13d586+=_0x4ee0f4[_0x3f4cc0(0x2a0)],_0x93e10c+=_0x3f4cc0(0x267)+(_0x5a8503['message']||_0x4ee0f4[_0x3f4cc0(0x277)])+'\x0a',_0x1c6789+=_0x3f4cc0(0x245)+(_0x24c736[_0x3f4cc0(0x258)]||_0x4ee0f4[_0x3f4cc0(0x277)])+'\x0a',_0x3dc12a+=_0x3f4cc0(0x1aa)+(_0x3cf2b3['stack']||_0x4ee0f4[_0x3f4cc0(0x277)])+'\x0a');}}}catch(_0x148a9c){_0x4ee0f4[_0x3f4cc0(0x213)](_0x4ee0f4['JtoId'],_0x4ee0f4['JtoId'])?_0x20f433[_0x3f4cc0(0x1c7)](_0x3f4cc0(0x201)+_0x31375c['clusterName']+_0x3f4cc0(0x23f)):(_0x47f528=_0x3f4cc0(0x1df)+_0x148a9c+':\x20'+_0x148a9c[_0x3f4cc0(0x29d)],logger['error'](_0x47f528),await _0x4ee0f4[_0x3f4cc0(0x25f)](reportToGalactusAndSendToEDS,_0x404773,_0x3b50c4,_0x47f528,messageTypes[_0x3f4cc0(0x1da)],_0x4ee0f4[_0x3f4cc0(0x1cb)],_0x4ee0f4[_0x3f4cc0(0x1cc)],_0x4ee0f4[_0x3f4cc0(0x20d)]),process[_0x3f4cc0(0x1af)](0x1));}}function printResponse(_0x3a1f6e,_0x1893b6){const _0x87099d=a17_0x476c6f,_0x3b9a68={};_0x3b9a68['tjMjA']=function(_0x3c23c3,_0x105578){return _0x3c23c3!==_0x105578;},_0x3b9a68[_0x87099d(0x2a6)]=_0x87099d(0x298);const _0x1f74b2=_0x3b9a68;logger[_0x87099d(0x1c7)]('['+_0x3a1f6e+_0x87099d(0x285)+_0x1893b6['status']+_0x87099d(0x1bd)+_0x1893b6[_0x87099d(0x29f)]+_0x87099d(0x248)+_0x1893b6[_0x87099d(0x1fc)]),_0x1893b6[_0x87099d(0x1fc)]&&(_0x1f74b2['tjMjA'](_0x1f74b2[_0x87099d(0x2a6)],_0x1f74b2[_0x87099d(0x2a6)])?_0x532918[_0x87099d(0x1fc)]('error\x20stack\x20:\x20'+_0x68c539[_0x87099d(0x1fc)]['stack']):logger[_0x87099d(0x1fc)]('error\x20stack\x20:\x20'+_0x1893b6['error'][_0x87099d(0x29d)]));}function a17_0x16c1(){const _0x4a9936=['KPCTP','blkWj','pre_check','BJXYT','IszEI','epilogue','method','duykT','WMvsh','unable\x20to\x20verify\x20if\x20cluster\x20`','TcDLz',']\x20status\x20:\x20','4029752nFltzN','../../utils/utilityMethods','will\x20be\x20created','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dgFcN','kxHcJ','message','QeQxW','credential-not-found','WebSocket','XmALA','<PasswordPlaceholder>','QZbwU','ccHZw','readFileSync','stringify','sendEventToBackend','kCqKl','AQcCA','crcLO','`\x20is\x20present\x20in\x20region\x20`','mIypj','jGveC','stack','isClusterPresent','data','hKfpe','cbzpX','isCliToolInstalled','jTPbb','eHZKS','.\x20Please\x20provide\x20all\x20required\x20arguments.','yvEAz','\x20\x20Stack:\x20','ypBCN','5085999SdAcSx','tGdtI','grid-profile','exit','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','YpbWI','bstackAccesskey','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','bGeGn','457340mxWOkK','push','9383wkywBF','Pre-check\x20running\x20for\x20Cloud\x20-\x20','owIOs','Error\x20Details:\x0a','yfnNR','fgqSW','\x20data\x20:\x20','nTyjN','getUTCFullYear','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','ypTig','header','accessResp','string','CLOUD_PROVIDER','uhpRT','info','desc','pre-check-grid-called','pBhNy','BVWjF','WBUIM','GUQqE','pMcCE','7WgiwhD','XWbIp','SquJw','reconnecting-websocket','replace','NsaUW','options','ZhaSa','cloudProvider','error\x20stack\x20:\x20','PxrCO','ERROR','EbByU','oFYax','delay','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','../../utils/webSocketUtils','CZuvC','TnOdS','SMqMO','zEqRe','join','6017904ulkbRP','TLSv1_2_client_method','ZKfWa','cloud-provider','/packages/cli/get-all-grid-profiles','pHIcT','INFO','uszaV','Czeuj','parse','pre-check-grid-profile-empty','split','xWicn','LqhBV','htJpe','includes','yQsZx','DtExs','utf-8','tDgSR','ApPmr','log/report_','error','HWBbQ','39486NAlMCU','3RzSJTh','dKeRj','Cluster\x20`','LSRle','`\x20,error\x20:\x20','OAmSd','debug','pre-check','headers','SiBkm','NloTC','checkAccess','iFSHZ','SSL\x20Configured','lxWpT','pre-check-cluster-args-not-passed','IzxuQ','AyYeg','getUTCMonth','writeFileSync','wSAgx','grid','usage','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Whitelisted\x20browserstack','KJFUh','https://','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ADdXj','PrpKn','IrALB','Browserstack','N/A','handler','uuid','aWlbA','password','eqaII','vHfdY','gridProfile','builder','region','clusterRegion','KtZWp','Message:\x20','wsLBo','IBdqG','cluster-check-failed-','authHeader','Cluster\x20details\x0a-----------------------\x0a','JpeVf','username','OAsTP','BrkCg','clusterName','eDIeH','WyIhD','help','LCQCZ','requestId','MLtkS','nSzoJ','Status:\x20','<UsernamePlaceholder>','`\x20already\x20exists','kpSsp','Success','14330QFUWIF','throwHttpErrors','jflGh','\x20\x20Code:\x20','type','LOG','\x20error\x20:\x20','description','kgHZG','argv','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','1200236clBHgh','getUTCHours','Lnxal','JhfBS','Grid\x20profile\x20fetched\x20for\x20pre-check','toLowerCase','isTls1_2_SUPPORTED','vCRKj','===\x20Precheck\x20Report\x20-\x20','lSZiH','RIjkV','code','command','getUTCMinutes','cluster-name','MyKkG','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','response','FqXFu','lBxnE','bwBwR','existsSync','bKsMq','hCMFH','xnLpQ','Failure','\x20\x20Message:\x20','find','nmZUk','GndVm','Invalid\x20input.\x20grid\x20profiles:\x20','SOHQy','User\x20Access','Cluster\x20','bstackUsername','is\x20already\x20present','mijmE','toolInstalledResp','545BmJRBo','lqfqW','WDIQl','../../config/constants','QLVpf','Setting\x20cloud\x20provider\x20as\x20','../../cloudproviders/utils'];a17_0x16c1=function(){return _0x4a9936;};return a17_0x16c1();}async function generateReport(_0x1a3033,_0x14386e){const _0xa3297a=a17_0x476c6f,_0x5b81f3={'BJXYT':function(_0x2c743f,_0x57cdad){return _0x2c743f+_0x57cdad;},'NloTC':_0xa3297a(0x241),'jflGh':_0xa3297a(0x266),'cbzpX':function(_0x2fe839,_0xae2124){return _0x2fe839||_0xae2124;},'pBhNy':_0xa3297a(0x21f),'NsaUW':_0xa3297a(0x1ba),'iCHpR':_0xa3297a(0x230),'SiBkm':function(_0x3f1d98,_0x2872cc){return _0x3f1d98!=_0x2872cc;},'aWlbA':_0xa3297a(0x270),'tklOQ':_0xa3297a(0x288),'eqaII':function(_0x1dc5a9){return _0x1dc5a9();}};let _0x20678b=_0xa3297a(0x255)+global_registry[_0xa3297a(0x1d7)]+'\x20===\x0a\x0a';return _0x1a3033['forEach']((_0x551e56,_0x2bd76a)=>{const _0x2cf8c4=_0xa3297a,{header:_0x51bd8a,response:_0x34961f}=_0x551e56,{status:_0xbf855b,data:_0x324005,error:_0x48964d}=_0x34961f;_0x20678b+=_0x51bd8a+'\x20#'+_0x5b81f3[_0x2cf8c4(0x27d)](_0x2bd76a,0x1)+'\x0a',_0x20678b+='Status:\x20'+(_0xbf855b?_0x5b81f3[_0x2cf8c4(0x209)]:_0x5b81f3[_0x2cf8c4(0x244)])+'\x0a',_0x20678b+=_0x2cf8c4(0x22b)+_0x5b81f3[_0x2cf8c4(0x2a1)](_0x324005,_0x5b81f3[_0x2cf8c4(0x1ca)])+'\x0a',_0x48964d&&(_0x20678b+=_0x5b81f3[_0x2cf8c4(0x1d4)],_0x20678b+=_0x2cf8c4(0x267)+(_0x48964d[_0x2cf8c4(0x28c)]||_0x5b81f3[_0x2cf8c4(0x1ca)])+'\x0a',_0x20678b+='\x20\x20Code:\x20'+(_0x48964d['code']||_0x5b81f3[_0x2cf8c4(0x1ca)])+'\x0a',_0x20678b+=_0x2cf8c4(0x1aa)+(_0x48964d[_0x2cf8c4(0x29d)]||_0x5b81f3[_0x2cf8c4(0x1ca)])+'\x0a'),_0x20678b+='\x0a\x0a';}),_0x20678b+=_0x5b81f3['iCHpR'],_0x5b81f3[_0xa3297a(0x208)](_0x14386e,null)?_0x20678b+=_0xa3297a(0x26e)+global_registry[_0xa3297a(0x235)]+'\x20'+(_0x14386e?_0x5b81f3[_0xa3297a(0x222)]:_0x5b81f3['tklOQ'])+'\x0a\x0a':_0x20678b+='Cluster\x20'+global_registry[_0xa3297a(0x235)]+_0xa3297a(0x1c0),_0x20678b+=_0x5b81f3[_0xa3297a(0x224)](getSystemMetaData),_0x20678b;};exports[a17_0x476c6f(0x220)]=async function(_0xff131b){const _0x57beb1=a17_0x476c6f,_0x5d02cf={'HWBbQ':function(_0x4de4b2){return _0x4de4b2();},'nmZUk':_0x57beb1(0x289),'yfnNR':function(_0xd089a,_0x3b0f72,_0x1f17b1,_0x4a6b09,_0xb5278b,_0x1a77e1,_0x4843cc,_0xf7fad0){return _0xd089a(_0x3b0f72,_0x1f17b1,_0x4a6b09,_0xb5278b,_0x1a77e1,_0x4843cc,_0xf7fad0);},'IszEI':_0x57beb1(0x1c9),'iFSHZ':_0x57beb1(0x28e),'blkWj':_0x57beb1(0x1fc),'dKeRj':function(_0x399360,_0x1a6b5f,_0x41473d,_0x24d9d3,_0x983e9e,_0x226d5a,_0x289082){return _0x399360(_0x1a6b5f,_0x41473d,_0x24d9d3,_0x983e9e,_0x226d5a,_0x289082);},'kxHcJ':function(_0x3a0a58){return _0x3a0a58();},'SMqMO':_0x57beb1(0x23e),'zEqRe':_0x57beb1(0x291),'pHIcT':function(_0x467786,_0x3835a9,_0x2b2da8){return _0x467786(_0x3835a9,_0x2b2da8);},'TnOdS':'dummy-grid','mIypj':_0x57beb1(0x272),'IBdqG':'2|1|3|0|4','ApPmr':function(_0x59b622,_0x2ec7b7,_0x9b6c13){return _0x59b622(_0x2ec7b7,_0x9b6c13);},'joSAz':_0x57beb1(0x1c3),'eHZKS':function(_0x51c77b,_0x4b8bbf,_0x143452){return _0x51c77b(_0x4b8bbf,_0x143452);},'kCqKl':'isTrialGridAccessible','KtZWp':function(_0x4ba192,_0xd8bd5d){return _0x4ba192(_0xd8bd5d);},'XmALA':_0x57beb1(0x1e7),'lSZiH':_0x57beb1(0x253),'uszaV':'Tool\x20Installed','BGlRF':_0x57beb1(0x26d),'kiVMv':_0x57beb1(0x217),'CVfEa':_0x57beb1(0x20c),'KhleN':function(_0x9093c0,_0xfcceb4){return _0x9093c0+_0xfcceb4;},'ypTig':_0x57beb1(0x1f8),'yQsZx':function(_0x473df1,_0x487e12,_0x10653d,_0x3b89d1,_0x1a00c5,_0x2bdd54,_0x1fdec2){return _0x473df1(_0x487e12,_0x10653d,_0x3b89d1,_0x1a00c5,_0x2bdd54,_0x1fdec2);},'dQXiy':'pre-check-failed'};let _0xf6203a,_0x51f70d;try{global_registry[_0x57beb1(0x23a)]=_0x5d02cf[_0x57beb1(0x1fd)](uuidv4);!fs[_0x57beb1(0x262)](_0x5d02cf['HWBbQ'](getCredentialsPath))&&(_0x51f70d=_0x5d02cf[_0x57beb1(0x269)],logger[_0x57beb1(0x1fc)](_0x51f70d),await _0x5d02cf[_0x57beb1(0x1bb)](reportToGalactusAndSendToEDS,_0xff131b,_0xf6203a,_0x51f70d,messageTypes[_0x57beb1(0x1da)],_0x5d02cf[_0x57beb1(0x27e)],_0x5d02cf[_0x57beb1(0x20b)],_0x5d02cf[_0x57beb1(0x27b)]),process[_0x57beb1(0x1af)](0x1));_0x5d02cf[_0x57beb1(0x200)](sendInstrumentationEvent,_0xff131b,_0x5d02cf[_0x57beb1(0x27e)],messageTypes[_0x57beb1(0x1ec)],null,null,_0xff131b);const _0x4b9872=JSON[_0x57beb1(0x1ef)](fs[_0x57beb1(0x294)](_0x5d02cf[_0x57beb1(0x28b)](getCredentialsPath)));global_registry[_0x57beb1(0x26f)]=_0x4b9872[_0x57beb1(0x21e)]['username'],global_registry[_0x57beb1(0x1b2)]=_0x4b9872['Browserstack']['password'];const _0x16a320=WS_ENDPOINT['replace'](_0x5d02cf[_0x57beb1(0x1e3)],_0x4b9872[_0x57beb1(0x21e)][_0x57beb1(0x232)])[_0x57beb1(0x1d3)](_0x5d02cf[_0x57beb1(0x1e4)],_0x4b9872[_0x57beb1(0x21e)][_0x57beb1(0x223)]),_0x41d459={};_0x41d459[_0x57beb1(0x28f)]=ws,_0x41d459['connectionTimeout']=0x36ee80,_0xf6203a=new ReconnectingWebSocket(_0x16a320,[],_0x41d459),global_registry[_0x57beb1(0x22f)]=_0x5d02cf[_0x57beb1(0x1eb)](getAuthHeader,global_registry[_0x57beb1(0x26f)],global_registry[_0x57beb1(0x1b2)]),await _0x5d02cf['pHIcT'](inputValidation,_0xff131b,_0xf6203a),logger[_0x57beb1(0x1c7)](_0x57beb1(0x1b8)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x57beb1(0x229)]);let _0x4c0306=await _0x5d02cf[_0x57beb1(0x200)](getCloudProviderObjectWithOutInit,global_registry[_0x57beb1(0x1d7)],global_registry[_0x57beb1(0x235)],_0x5d02cf[_0x57beb1(0x1e2)],_0xf6203a,webSocketUtils,_0xff131b);const _0x25486c=await _0x4c0306[_0x57beb1(0x2a2)]();_0x5d02cf[_0x57beb1(0x1eb)](printResponse,_0x5d02cf[_0x57beb1(0x29b)],_0x25486c),_0x4c0306=await _0x4c0306['init']();let _0x17a9c1=![];try{_0x17a9c1=await _0x4c0306[_0x57beb1(0x29e)]();}catch(_0x59135d){const _0x3ed74c=_0x5d02cf[_0x57beb1(0x22d)][_0x57beb1(0x1f1)]('|');let _0x384387=0x0;while(!![]){switch(_0x3ed74c[_0x384387++]){case'0':_0x51f70d+='\x0a'+JSON[_0x57beb1(0x295)](_0x59135d[_0x57beb1(0x29d)]);continue;case'1':_0x17a9c1=null;continue;case'2':_0x51f70d=_0x57beb1(0x283)+global_registry[_0x57beb1(0x235)]+_0x57beb1(0x29a)+global_registry[_0x57beb1(0x229)]+_0x57beb1(0x203)+_0x59135d;continue;case'3':logger['error'](_0x51f70d);continue;case'4':await _0x5d02cf[_0x57beb1(0x1bb)](reportToGalactusAndSendToEDS,_0xff131b,_0xf6203a,_0x51f70d,messageTypes['ERROR'],_0x5d02cf[_0x57beb1(0x27e)],_0x57beb1(0x22e)+global_registry[_0x57beb1(0x1d7)],_0x5d02cf[_0x57beb1(0x27b)]);continue;}break;}}_0x17a9c1&&logger[_0x57beb1(0x1c7)](_0x57beb1(0x201)+global_registry[_0x57beb1(0x235)]+_0x57beb1(0x23f));const _0x4617b9=await _0x4c0306[_0x57beb1(0x20a)]();_0x5d02cf[_0x57beb1(0x1fa)](printResponse,_0x5d02cf['joSAz'],_0x4617b9);const _0x2617fa=await _0x5d02cf[_0x57beb1(0x28b)](curlRequest);_0x5d02cf['eHZKS'](printResponse,_0x5d02cf[_0x57beb1(0x297)],_0x2617fa);const _0x3b264d=await _0x5d02cf[_0x57beb1(0x22a)](isTlsSupported,_0x5d02cf[_0x57beb1(0x290)]);_0x5d02cf[_0x57beb1(0x2a4)](printResponse,_0x5d02cf[_0x57beb1(0x256)],_0x3b264d);const _0x566d8b={};_0x566d8b[_0x57beb1(0x1c2)]=_0x5d02cf[_0x57beb1(0x1ed)],_0x566d8b[_0x57beb1(0x25e)]=_0x25486c;const _0xb8e806={};_0xb8e806[_0x57beb1(0x1c2)]=_0x5d02cf['BGlRF'],_0xb8e806[_0x57beb1(0x25e)]=_0x4617b9;const _0x2e461d={};_0x2e461d[_0x57beb1(0x1c2)]=_0x5d02cf['kiVMv'],_0x2e461d[_0x57beb1(0x25e)]=_0x2617fa;const _0x1bc803={};_0x1bc803[_0x57beb1(0x1c2)]=_0x5d02cf['CVfEa'],_0x1bc803[_0x57beb1(0x25e)]=_0x3b264d;const _0x207d5d=[_0x566d8b,_0xb8e806,_0x2e461d,_0x1bc803],_0x4753c4=await _0x5d02cf[_0x57beb1(0x1eb)](generateReport,_0x207d5d,_0x17a9c1),_0x578375=new Date(),_0x321038=_0x578375[_0x57beb1(0x1bf)]()+'_'+_0x5d02cf['KhleN'](_0x578375[_0x57beb1(0x211)](),0x1)+'_'+_0x578375['getUTCDate']()+'_'+_0x578375[_0x57beb1(0x24e)]()+'_'+_0x578375[_0x57beb1(0x25a)](),_0x23f708=_0x57beb1(0x1fb)+_0x321038+'.txt';fs[_0x57beb1(0x212)](_0x23f708,_0x4753c4,_0x5d02cf[_0x57beb1(0x1c1)]),logger[_0x57beb1(0x1c7)]('Report\x20saved\x20in\x20'+_0x23f708),process[_0x57beb1(0x1af)](0x0);}catch(_0x4d415a){let _0xf1b063='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x4d415a+'\x20';logger[_0x57beb1(0x1fc)](_0xf1b063),_0xf1b063+='\x0a'+JSON['stringify'](_0x4d415a[_0x57beb1(0x29d)]),logger[_0x57beb1(0x205)]('stack\x20trace\x20'+_0x4d415a['stack']);if(_0xf6203a){const _0x51a5ac={};_0x51a5ac[_0x57beb1(0x246)]=WS_EVENTS[_0x57beb1(0x247)],_0x51a5ac[_0x57beb1(0x28c)]=_0xf1b063,webSocketUtils['sendEventToBackend'](_0xf6203a,_0x51a5ac,_0x5d02cf[_0x57beb1(0x27b)],!![]);}await webSocketUtils[_0x57beb1(0x1dd)](0x7d0);const _0x252e4b={};_0x252e4b['error']=_0xf1b063,await _0x5d02cf[_0x57beb1(0x1f6)](sendInstrumentationEvent,_0xff131b,_0x5d02cf[_0x57beb1(0x27e)],messageTypes[_0x57beb1(0x1da)],_0x5d02cf['dQXiy'],_0x252e4b,_0xff131b),process[_0x57beb1(0x1af)](0x1);}};
1
+ const a17_0xe16171=a17_0x2dbf;(function(_0x3e8244,_0x4bc142){const _0x356925=a17_0x2dbf,_0x521553=_0x3e8244();while(!![]){try{const _0x12a8ce=-parseInt(_0x356925(0x253))/0x1+parseInt(_0x356925(0x212))/0x2*(-parseInt(_0x356925(0x21d))/0x3)+parseInt(_0x356925(0x1ba))/0x4+parseInt(_0x356925(0x22f))/0x5*(parseInt(_0x356925(0x1cf))/0x6)+-parseInt(_0x356925(0x1fa))/0x7+-parseInt(_0x356925(0x1ab))/0x8*(parseInt(_0x356925(0x1f5))/0x9)+parseInt(_0x356925(0x24f))/0xa;if(_0x12a8ce===_0x4bc142)break;else _0x521553['push'](_0x521553['shift']());}catch(_0x102192){_0x521553['push'](_0x521553['shift']());}}}(a17_0x3e69,0x8ac32));const fs=require('fs'),ws=require('ws'),got=require(a17_0xe16171(0x24a)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0xe16171(0x225)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0xe16171(0x1aa)),{logger}=require(a17_0xe16171(0x1f4)),{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_0xe16171(0x1ad)),{getCloudProviderObjectWithOutInit}=require(a17_0xe16171(0x1a2)),webSocketUtils=require(a17_0xe16171(0x180)),{sendInstrumentationEvent}=require(a17_0xe16171(0x1f7));exports[a17_0xe16171(0x18f)]=a17_0xe16171(0x1b9),exports[a17_0xe16171(0x1dc)]=a17_0xe16171(0x1a1),exports['builder']=function(_0x1d519a){const _0x52fc28=a17_0xe16171,_0x61304a={};_0x61304a[_0x52fc28(0x1eb)]=_0x52fc28(0x196),_0x61304a['tpHqQ']=_0x52fc28(0x173),_0x61304a[_0x52fc28(0x1d5)]=_0x52fc28(0x1cc),_0x61304a[_0x52fc28(0x1e5)]=_0x52fc28(0x187),_0x61304a['zGaAR']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x61304a[_0x52fc28(0x199)]=_0x52fc28(0x1c8);const _0x138458=_0x61304a,_0x1bf53a={};_0x1bf53a['description']=_0x138458[_0x52fc28(0x1eb)],_0x1bf53a['type']=_0x138458['tpHqQ'];const _0x53c5db={};_0x53c5db[_0x52fc28(0x24c)]=_0x138458[_0x52fc28(0x1d5)],_0x53c5db[_0x52fc28(0x214)]=_0x138458[_0x52fc28(0x1b0)];const _0x25eb42={};_0x25eb42[_0x52fc28(0x24c)]=_0x138458['yBzQF'],_0x25eb42[_0x52fc28(0x214)]=_0x138458['tpHqQ'];const _0xbc8620={};_0xbc8620[_0x52fc28(0x24c)]=_0x138458[_0x52fc28(0x188)],_0xbc8620['type']=_0x138458['tpHqQ'];const _0x3fd3d4={};return _0x3fd3d4['cluster-name']=_0x1bf53a,_0x3fd3d4[_0x52fc28(0x21e)]=_0x53c5db,_0x3fd3d4[_0x52fc28(0x232)]=_0x25eb42,_0x3fd3d4['grid-profile']=_0xbc8620,_0x1d519a[_0x52fc28(0x242)](HELP_HEADER_MESSAGE['pre_check'])[_0x52fc28(0x252)](HELP_FOOTER_MESSAGE)[_0x52fc28(0x244)](_0x3fd3d4)[_0x52fc28(0x1c8)](_0x138458[_0x52fc28(0x199)])['argv'];};function a17_0x3e69(){const _0x15398a=['CLOUD_PROVIDER','string','\x20\x20Message:\x20','zXDUM','koxaj','VfLCN','push','/packages/cli/get-all-grid-profiles','Zgvzz','rAHJz','OyoDX','bstackUsername','LxWxy','ERROR','../../utils/webSocketUtils','hWVRE','parse','ZTNIY','AcrdZ','rWtbx','YiLDy','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','zGaAR','pre-check-failed','init','qXbav','split','grid\x20profile\x20flow\x20','QbMnw','command','Invalid\x20input.\x20grid\x20profiles:\x20','info','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','iokuD','User\x20Access','JoCZY','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pJPsk','toLowerCase','azgsi','AHTsM','code','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Error\x20Details:\x0a','credential-not-found','LRgTx','YGOXv','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','../../cloudproviders/utils','Cluster\x20`','ycKnS','IBUbD','rVGMJ','cnmQC','yXWtx','\x20\x20Stack:\x20','../../utils/utilityMethods','174632LTNunz','XfQVQ','../../config/constants','N/A','username','tpHqQ','XtYVo','UJNjS','sendEventToBackend','CZHGP','dnKhN','Pre-check\x20running\x20for\x20Cloud\x20-\x20','VFphr','password','grid','3011456WiatvX','XFvKi','INFO','join','Status:\x20','YeQNa','pre-check-grid-profile-empty','jTgZd','getUTCMonth','status','\x20\x20Code:\x20','GggEd','isCliToolInstalled','PgNHx','help','is\x20already\x20present','`\x20is\x20present\x20in\x20region\x20`','Pquiy','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','XWbCo','wGmjm','10548LUKmbR','length','rpnOU','checkAccess','authHeader','pPGly','hbJid','vwSve','NnAkQ','LPLgu','WiGmr','iwVNh','QEEZg','desc','HTMWn','data','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Sfsgd','https://','PpFrm','clusterName','unable\x20to\x20verify\x20if\x20cluster\x20`','yBzQF','getUTCMinutes','OouQT','Cluster\x20','qGWMA',']\x20status\x20:\x20','QFwUi','Message:\x20','.txt','FXgZT','vFzht','clusterRegion','rnOlV','YoQVa','name','../../config/logger','9JxIPyW','message','../../utils/instrumentationUtils','eYNAq','getUTCHours','3049452zNLWIi','ygLdO','LOG','Tool\x20Installed','<PasswordPlaceholder>','nRfRc','dummy-grid','connectionTimeout','MqWox','getUTCFullYear','wNsvk','headers','ujIhD','lhtZu','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','utf-8','HSooL','bstackAccesskey','xWmnu','oQOrm','QlnkH','cloudProvider','AxFWC','log/report_','68ecXGoa','effTS','type','QfuFZ','XdQEg','pre-check','Missing\x20required\x20arguments:\x20','QNWkO','fAoYA','JugQN','Success','1143uciWJr','cloud-provider','nRMSO','ONkTv','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','\x20data\x20:\x20','gridProfile','RopWx','reconnecting-websocket','FoYoo','`\x20already\x20exists','Failure','PkyVI','error','TmiHC','Setting\x20cloud\x20provider\x20as\x20','ZuqEN','replace','310mFgtnW','GFFhV','KCRpu','region','cloud-provider-not-supported','Whitelisted\x20browserstack','response','VEgVx','HwAwB','GET','isTls1_2_SUPPORTED','zVBsv','JNEfR','hXshe','Grid\x20profile\x20fetched\x20for\x20pre-check','SSL\x20Configured','CwSoL','Browserstack','stringify','usage','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','options','buBfS','pre-check-cluster-args-not-passed','NVMXT','cluster-name','exit','got','Report\x20saved\x20in\x20','description','NKHqV','find','11067150Uzgpdh','\x20error\x20:\x20','CNBlF','epilogue','929786FEmCRC','delay','SyPwg','will\x20be\x20created','includes','ZjhmR','\x20===\x0a\x0a','lCWEc','stack','error\x20stack\x20:\x20','handler','\x20region\x20-\x20','isClusterPresent','XYTEN','header','body','Failed\x20in\x20pre-check!\x20Error:\x20','readFileSync','ilrwU','pJmXB','uLMyV'];a17_0x3e69=function(){return _0x15398a;};return a17_0x3e69();}function a17_0x2dbf(_0x535b81,_0x196e40){const _0x3e69fb=a17_0x3e69();return a17_0x2dbf=function(_0x2dbf55,_0xfff576){_0x2dbf55=_0x2dbf55-0x170;let _0x4e5df6=_0x3e69fb[_0x2dbf55];return _0x4e5df6;},a17_0x2dbf(_0x535b81,_0x196e40);}async function inputValidation(_0x3e1852,_0x26b11b){const _0x344054=a17_0xe16171,_0x2d5cc3={'rpnOU':function(_0x3efef9,_0x2f4701){return _0x3efef9+_0x2f4701;},'QImQl':_0x344054(0x21c),'kjIid':_0x344054(0x228),'XWbCo':function(_0x4d3f01,_0x1cf74a){return _0x4d3f01||_0x1cf74a;},'XfQVQ':'N/A','QfuFZ':_0x344054(0x19d),'AHTsM':_0x344054(0x22a),'JoCZY':_0x344054(0x248),'BSsAZ':_0x344054(0x196),'ZuqEN':_0x344054(0x173),'sYiTF':_0x344054(0x1cc),'wGmjm':_0x344054(0x187),'HwAwB':_0x344054(0x192),'OouQT':_0x344054(0x1c8),'iokuD':'region','QlnkH':_0x344054(0x1c9),'MqWox':_0x344054(0x256),'rAHJz':_0x344054(0x1df),'cnmQC':function(_0x39c968,_0x429d0e){return _0x39c968===_0x429d0e;},'CNBlF':_0x344054(0x1cb),'oQOrm':'IJhBm','NVMXT':function(_0xdeac2,_0x86a039){return _0xdeac2!==_0x86a039;},'vFzht':_0x344054(0x20a),'xWmnu':_0x344054(0x236),'ilrwU':_0x344054(0x258),'LfbtH':_0x344054(0x1db),'QbMnw':_0x344054(0x206),'kVNWj':_0x344054(0x21e),'Sfsgd':function(_0x640974,_0x309a80){return _0x640974===_0x309a80;},'LRgTx':'FEJeI','npzFf':function(_0x379ee3,_0x25b37f){return _0x379ee3>_0x25b37f;},'OyoDX':_0x344054(0x197),'QNWkO':function(_0x273ba4,_0x38b9f8,_0x787505,_0x34af46,_0x13ed41,_0x24b9c2,_0x58e234,_0x2c9636){return _0x273ba4(_0x38b9f8,_0x787505,_0x34af46,_0x13ed41,_0x24b9c2,_0x58e234,_0x2c9636);},'LPLgu':'pre-check-grid-called','pJmXB':_0x344054(0x246),'FoYoo':'stXLK','rnOlV':_0x344054(0x243),'XYTEN':function(_0x64b9,_0x5978ac,_0xd1d540,_0x2a1bc8,_0xa0d1e9,_0x558668,_0x459727,_0x3db047){return _0x64b9(_0x5978ac,_0xd1d540,_0x2a1bc8,_0xa0d1e9,_0x558668,_0x459727,_0x3db047);},'vwSve':_0x344054(0x233),'qXbav':_0x344054(0x1fb),'iwVNh':function(_0x20a1c1,_0x37620e){return _0x20a1c1===_0x37620e;},'NnAkQ':_0x344054(0x21f),'JNEfR':_0x344054(0x238),'UJNjS':function(_0x5c4cc7,_0x107158,_0x4ca71b){return _0x5c4cc7(_0x107158,_0x4ca71b);},'SyPwg':function(_0xab6115,_0x1e26b6,_0x576bc9,_0x57875d,_0x5ee791,_0x3f0a73){return _0xab6115(_0x1e26b6,_0x576bc9,_0x57875d,_0x5ee791,_0x3f0a73);},'hXshe':_0x344054(0x217),'SHElB':'grid-profile','YGOXv':function(_0x3bbb86,_0xa564d3){return _0x3bbb86!==_0xa564d3;},'CwYvV':'BHitY','PkyVI':_0x344054(0x1a4),'CZHGP':function(_0x8c8bc6,_0x4f28ee){return _0x8c8bc6(_0x4f28ee);},'uUkwW':function(_0x254544,_0x2c118f){return _0x254544===_0x2c118f;},'TmiHC':_0x344054(0x1b1),'mMALD':_0x344054(0x1c0),'rWtbx':_0x344054(0x230),'VFphr':_0x344054(0x183),'WKJpU':_0x344054(0x23d),'YoQVa':function(_0x4a8bc7,_0x281979){return _0x4a8bc7===_0x281979;},'uLMyV':_0x344054(0x17a),'jTgZd':'ZCDMr','XFvKi':'QrsTe','rVGMJ':_0x344054(0x224),'dnKhN':function(_0x5c3be9,_0x14076d,_0x108802,_0x598b07,_0x4950a2,_0x321faa,_0x4d93ff,_0x428252){return _0x5c3be9(_0x14076d,_0x108802,_0x598b07,_0x4950a2,_0x321faa,_0x4d93ff,_0x428252);}};let _0x581f0e;try{if(_0x2d5cc3[_0x344054(0x1a7)](_0x2d5cc3[_0x344054(0x251)],_0x2d5cc3[_0x344054(0x20d)])){const {header:_0x386a3d,response:_0x23a28f}=_0x3e2624,{status:_0x2cc109,data:_0x8500df,error:_0x1b223d}=_0x23a28f;_0x5c6268+=_0x386a3d+'\x20#'+_0x2d5cc3[_0x344054(0x1d1)](_0x2d9875,0x1)+'\x0a',_0x2cc740+=_0x344054(0x1be)+(_0x2cc109?_0x2d5cc3['QImQl']:_0x2d5cc3['kjIid'])+'\x0a',_0x215c18+=_0x344054(0x1ec)+_0x2d5cc3[_0x344054(0x1cd)](_0x8500df,_0x2d5cc3['XfQVQ'])+'\x0a',_0x1b223d&&(_0x53c8d3+=_0x2d5cc3[_0x344054(0x215)],_0x37941a+=_0x344054(0x174)+(_0x1b223d[_0x344054(0x1f6)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a',_0x13db00+=_0x344054(0x1c4)+(_0x1b223d[_0x344054(0x19b)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a',_0x4afe6b+=_0x344054(0x1a9)+(_0x1b223d[_0x344054(0x25b)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a'),_0x33ca2b+='\x0a\x0a';}else{if(_0x3e1852['clusterName']||_0x3e1852[_0x344054(0x20f)]||_0x3e1852[_0x344054(0x232)]){if(_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3['vFzht'],_0x2d5cc3[_0x344054(0x1ef)])){const _0x554de9={};_0x554de9[_0x344054(0x214)]=_0x35704f[_0x344054(0x1fc)],_0x554de9[_0x344054(0x1f6)]=_0x5cdb09,_0xd31c7[_0x344054(0x1b3)](_0x56b467,_0x554de9,_0x2d5cc3[_0x344054(0x19a)],!![]);}else{const _0x1bc994=[];!_0x3e1852[_0x344054(0x1e3)]&&(_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3[_0x344054(0x20c)],_0x2d5cc3[_0x344054(0x265)])?_0x1bc994[_0x344054(0x178)](_0x2d5cc3[_0x344054(0x195)]):_0x1173d0+=_0x344054(0x1e8)+_0x4ba901[_0x344054(0x1e3)]+_0x344054(0x19c));;!_0x3e1852[_0x344054(0x20f)]&&(_0x2d5cc3['NVMXT'](_0x2d5cc3['LfbtH'],_0x2d5cc3[_0x344054(0x18e)])?_0x1bc994[_0x344054(0x178)](_0x2d5cc3['kVNWj']):_0x41585b[_0x344054(0x178)](_0x2d5cc3['JoCZY']));;if(!_0x3e1852[_0x344054(0x232)]){if(_0x2d5cc3[_0x344054(0x1e0)](_0x2d5cc3[_0x344054(0x19f)],_0x2d5cc3[_0x344054(0x19f)]))_0x1bc994[_0x344054(0x178)](_0x2d5cc3[_0x344054(0x193)]);else{const _0xf005ec={};_0xf005ec[_0x344054(0x24c)]=_0x2d5cc3['BSsAZ'],_0xf005ec[_0x344054(0x214)]=_0x2d5cc3['ZuqEN'];const _0x15307d={};_0x15307d[_0x344054(0x24c)]=_0x2d5cc3['sYiTF'],_0x15307d[_0x344054(0x214)]=_0x2d5cc3[_0x344054(0x22d)];const _0x113883={};_0x113883[_0x344054(0x24c)]=_0x2d5cc3[_0x344054(0x1ce)],_0x113883[_0x344054(0x214)]=_0x2d5cc3[_0x344054(0x22d)];const _0x2b6fbf={};_0x2b6fbf[_0x344054(0x24c)]=_0x2d5cc3[_0x344054(0x237)],_0x2b6fbf[_0x344054(0x214)]=_0x2d5cc3['ZuqEN'];const _0x2f3c7f={};return _0x2f3c7f[_0x344054(0x248)]=_0xf005ec,_0x2f3c7f['cloud-provider']=_0x15307d,_0x2f3c7f[_0x344054(0x232)]=_0x113883,_0x2f3c7f['grid-profile']=_0x2b6fbf,_0x3eeb58['usage'](_0x4357d6['pre_check'])[_0x344054(0x252)](_0xd803cc)['options'](_0x2f3c7f)['help'](_0x2d5cc3[_0x344054(0x1e7)])['argv'];}};_0x2d5cc3['npzFf'](_0x1bc994[_0x344054(0x1d0)],0x0)&&(_0x2d5cc3['cnmQC'](_0x2d5cc3['OyoDX'],_0x2d5cc3[_0x344054(0x17c)])?(_0x581f0e=_0x344054(0x218)+_0x1bc994[_0x344054(0x1bd)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x2d5cc3[_0x344054(0x219)](reportToGalactusAndSendToEDS,_0x3e1852,_0x26b11b,_0x581f0e,messageTypes[_0x344054(0x17f)],_0x2d5cc3[_0x344054(0x1d8)],_0x2d5cc3[_0x344054(0x170)],_0x2d5cc3[_0x344054(0x19a)]),logger[_0x344054(0x22a)](_0x581f0e),process[_0x344054(0x249)](0x1)):_0x42df6d[_0x344054(0x191)](_0x344054(0x1a3)+_0x44af98[_0x344054(0x1e3)]+_0x344054(0x227))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x344054(0x257)](_0x3e1852[_0x344054(0x20f)][_0x344054(0x198)]())&&(_0x2d5cc3['NVMXT'](_0x2d5cc3[_0x344054(0x226)],_0x2d5cc3[_0x344054(0x226)])?_0x2441e0['exit'](0x1):(_0x581f0e=_0x2d5cc3[_0x344054(0x1f1)],await _0x2d5cc3[_0x344054(0x260)](reportToGalactusAndSendToEDS,_0x3e1852,_0x26b11b,_0x581f0e,messageTypes[_0x344054(0x17f)],_0x2d5cc3[_0x344054(0x1d8)],_0x2d5cc3[_0x344054(0x1d6)],_0x2d5cc3[_0x344054(0x19a)]),logger[_0x344054(0x22a)](_0x581f0e),!_0x3e1852[_0x344054(0x20f)]&&(_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3['qXbav'],_0x2d5cc3[_0x344054(0x18b)])?(_0x1a3cb6[_0x344054(0x191)](_0x344054(0x22c)+_0x2a92c3['CLOUD_PROVIDER']+'\x20'),_0x58354a[_0x344054(0x20f)]=_0x348d6d[_0x344054(0x172)]):(logger[_0x344054(0x191)](_0x344054(0x22c)+DEFAULT_CLUSTER_DETAILS[_0x344054(0x172)]+'\x20'),_0x3e1852[_0x344054(0x20f)]=DEFAULT_CLUSTER_DETAILS[_0x344054(0x172)])))),global_registry[_0x344054(0x1e3)]=_0x3e1852[_0x344054(0x1e3)],global_registry['cloudProvider']=_0x3e1852[_0x344054(0x20f)],global_registry[_0x344054(0x1f0)]=_0x3e1852['region'];}}else{if(_0x3e1852[_0x344054(0x223)]){if(_0x2d5cc3[_0x344054(0x1da)](_0x2d5cc3['NnAkQ'],_0x2d5cc3[_0x344054(0x1d7)])){global_registry['gridProfile']=_0x3e1852['gridProfile'],logger['debug'](_0x344054(0x18d)+_0x3e1852['gridProfile']);const _0x190899=_0x344054(0x1e1)+AG_API_URL+_0x344054(0x179),_0x4f2e99={};_0x4f2e99['method']=_0x2d5cc3[_0x344054(0x23b)],_0x4f2e99[_0x344054(0x205)]=global_registry[_0x344054(0x1d3)],_0x4f2e99['throwHttpErrors']=![];const _0x57ac2a=_0x4f2e99,_0x20e7a1=await _0x2d5cc3[_0x344054(0x1b2)](got,_0x190899,_0x57ac2a),_0x32199b=await _0x2d5cc3[_0x344054(0x255)](responseValidation,_0x20e7a1,_0x2d5cc3[_0x344054(0x23c)],_0x2d5cc3['SHElB'],_0x3e1852,_0x26b11b);let _0x5818c1={};if(_0x2d5cc3[_0x344054(0x1da)](_0x32199b,0xc8)){if(_0x2d5cc3[_0x344054(0x1a0)](_0x2d5cc3['CwYvV'],_0x2d5cc3[_0x344054(0x229)])){const _0x4d0aab=JSON[_0x344054(0x182)](_0x20e7a1[_0x344054(0x262)]),_0x55b6b1=_0x4d0aab[_0x344054(0x24e)](_0x25fee9=>_0x25fee9[_0x344054(0x1f3)]===_0x3e1852[_0x344054(0x223)])||null;_0x2d5cc3[_0x344054(0x1b4)](isUndefined,_0x55b6b1)?_0x2d5cc3['uUkwW'](_0x2d5cc3[_0x344054(0x22b)],_0x2d5cc3[_0x344054(0x22b)])?(_0x581f0e=_0x344054(0x190)+_0x3e1852[_0x344054(0x223)]+_0x344054(0x221),await _0x2d5cc3['QNWkO'](reportToGalactusAndSendToEDS,_0x3e1852,_0x26b11b,_0x581f0e,messageTypes[_0x344054(0x17f)],_0x2d5cc3[_0x344054(0x1d8)],_0x2d5cc3['mMALD'],_0x2d5cc3[_0x344054(0x19a)]),logger['error'](_0x581f0e),process[_0x344054(0x249)](0x1)):_0x29e50d[_0x344054(0x22a)](_0x344054(0x25c)+_0x4d99fe['error']['stack']):_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3[_0x344054(0x185)],_0x2d5cc3[_0x344054(0x185)])?_0x28659a['push'](_0x2d5cc3[_0x344054(0x193)]):_0x5818c1=_0x55b6b1;}else _0x109b19[_0x344054(0x191)]('['+_0x1f4739+']\x20status\x20:\x20'+_0x31a79f[_0x344054(0x1c3)]+_0x344054(0x222)+_0x81b84a['data']+_0x344054(0x250)+_0x2c3ef5[_0x344054(0x22a)]),_0x350329[_0x344054(0x22a)]&&_0x73b60c['error'](_0x344054(0x25c)+_0x5be569['error'][_0x344054(0x25b)]);}else _0x2d5cc3[_0x344054(0x1e0)](_0x2d5cc3['VFphr'],_0x2d5cc3[_0x344054(0x1b7)])?process['exit'](0x1):_0x5b0b81=_0x2a072a;const _0x7900b8={};_0x7900b8[_0x344054(0x214)]=WS_EVENTS[_0x344054(0x1fc)],_0x7900b8['message']=_0x2d5cc3['WKJpU'],webSocketUtils['sendEventToBackend'](_0x26b11b,_0x7900b8),global_registry['cloudProvider']=_0x5818c1['cloudProvider'],global_registry[_0x344054(0x1f0)]=_0x5818c1[_0x344054(0x232)],global_registry[_0x344054(0x1e3)]=_0x5818c1['clusterName'];}else _0x47de3f+=_0x344054(0x1e8)+_0x1f7e8c[_0x344054(0x1e3)]+'\x20'+(_0x4fa5b0?_0x2d5cc3[_0x344054(0x20e)]:_0x2d5cc3[_0x344054(0x202)])+'\x0a\x0a';}else _0x2d5cc3[_0x344054(0x1f2)](_0x2d5cc3[_0x344054(0x171)],_0x2d5cc3[_0x344054(0x1c1)])?(_0x4b4256[_0x344054(0x22a)](_0x2d5cc3[_0x344054(0x17b)]),_0x3682cc['exit'](0x1)):(logger[_0x344054(0x22a)](_0x2d5cc3['rAHJz']),process['exit'](0x1));}}}catch(_0x1127b2){_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3[_0x344054(0x1bb)],_0x2d5cc3[_0x344054(0x1a6)])?(_0x581f0e=_0x344054(0x208)+_0x1127b2+':\x20'+_0x1127b2[_0x344054(0x25b)],logger['error'](_0x581f0e),await _0x2d5cc3[_0x344054(0x1b5)](reportToGalactusAndSendToEDS,_0x3e1852,_0x26b11b,_0x581f0e,messageTypes[_0x344054(0x17f)],_0x2d5cc3[_0x344054(0x1d8)],_0x2d5cc3[_0x344054(0x1d6)],_0x2d5cc3['AHTsM']),process[_0x344054(0x249)](0x1)):(_0x1563cd+=_0x2d5cc3[_0x344054(0x215)],_0x46a6bf+=_0x344054(0x174)+(_0x8c3db['message']||_0x2d5cc3['XfQVQ'])+'\x0a',_0x1262fa+='\x20\x20Code:\x20'+(_0x424ea9[_0x344054(0x19b)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a',_0x428621+=_0x344054(0x1a9)+(_0xf2c83[_0x344054(0x25b)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a');}}function printResponse(_0x10814b,_0x22916a){const _0x3b78db=a17_0xe16171,_0x7dce3d={};_0x7dce3d[_0x3b78db(0x186)]=_0x3b78db(0x21e),_0x7dce3d['lCWEc']=function(_0x13face,_0x496a1a){return _0x13face!==_0x496a1a;},_0x7dce3d[_0x3b78db(0x17e)]=_0x3b78db(0x23f),_0x7dce3d[_0x3b78db(0x204)]=_0x3b78db(0x21a);const _0x3c5348=_0x7dce3d;logger[_0x3b78db(0x191)]('['+_0x10814b+_0x3b78db(0x1ea)+_0x22916a['status']+_0x3b78db(0x222)+_0x22916a[_0x3b78db(0x1de)]+_0x3b78db(0x250)+_0x22916a[_0x3b78db(0x22a)]),_0x22916a[_0x3b78db(0x22a)]&&(_0x3c5348[_0x3b78db(0x25a)](_0x3c5348[_0x3b78db(0x17e)],_0x3c5348[_0x3b78db(0x204)])?logger[_0x3b78db(0x22a)](_0x3b78db(0x25c)+_0x22916a[_0x3b78db(0x22a)][_0x3b78db(0x25b)]):_0x1cd541[_0x3b78db(0x178)](_0x3c5348[_0x3b78db(0x186)]));}async function generateReport(_0x511a2c,_0x410649){const _0x356c52=a17_0xe16171,_0x1711bd={'yNvAJ':function(_0x86026a,_0x18f860){return _0x86026a+_0x18f860;},'HTMWn':'Success','TWTOo':_0x356c52(0x228),'dcMGO':function(_0x5a77de,_0x4dfda3){return _0x5a77de||_0x4dfda3;},'zVBsv':_0x356c52(0x1ae),'DdZzI':'Error\x20Details:\x0a','eYNAq':'Cluster\x20details\x0a-----------------------\x0a','yXWtx':function(_0xf3c518,_0x51b3ed){return _0xf3c518!=_0x51b3ed;},'IBUbD':_0x356c52(0x1c9),'effTS':_0x356c52(0x256),'AxFWC':function(_0x53c70d){return _0x53c70d();}};let _0x52c3a0='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x356c52(0x20f)]+_0x356c52(0x259);return _0x511a2c['forEach']((_0xc20f16,_0xfe18ce)=>{const _0x15cf76=_0x356c52,{header:_0x22ce32,response:_0x4f7bba}=_0xc20f16,{status:_0x4ce368,data:_0x322069,error:_0x5ec05f}=_0x4f7bba;_0x52c3a0+=_0x22ce32+'\x20#'+_0x1711bd['yNvAJ'](_0xfe18ce,0x1)+'\x0a',_0x52c3a0+=_0x15cf76(0x1be)+(_0x4ce368?_0x1711bd[_0x15cf76(0x1dd)]:_0x1711bd['TWTOo'])+'\x0a',_0x52c3a0+=_0x15cf76(0x1ec)+_0x1711bd['dcMGO'](_0x322069,_0x1711bd[_0x15cf76(0x23a)])+'\x0a',_0x5ec05f&&(_0x52c3a0+=_0x1711bd['DdZzI'],_0x52c3a0+=_0x15cf76(0x174)+(_0x5ec05f[_0x15cf76(0x1f6)]||_0x1711bd['zVBsv'])+'\x0a',_0x52c3a0+=_0x15cf76(0x1c4)+(_0x5ec05f['code']||_0x1711bd[_0x15cf76(0x23a)])+'\x0a',_0x52c3a0+=_0x15cf76(0x1a9)+(_0x5ec05f[_0x15cf76(0x25b)]||_0x1711bd['zVBsv'])+'\x0a'),_0x52c3a0+='\x0a\x0a';}),_0x52c3a0+=_0x1711bd[_0x356c52(0x1f8)],_0x1711bd[_0x356c52(0x1a8)](_0x410649,null)?_0x52c3a0+=_0x356c52(0x1e8)+global_registry['clusterName']+'\x20'+(_0x410649?_0x1711bd[_0x356c52(0x1a5)]:_0x1711bd[_0x356c52(0x213)])+'\x0a\x0a':_0x52c3a0+='Cluster\x20'+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x52c3a0+=_0x1711bd[_0x356c52(0x210)](getSystemMetaData),_0x52c3a0;};exports[a17_0xe16171(0x25d)]=async function(_0x3658f0){const _0x2dbe06=a17_0xe16171,_0x10250a={'eqNHg':function(_0x35ee26){return _0x35ee26();},'koxaj':function(_0x345609){return _0x345609();},'WiGmr':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hWVRE':function(_0x5f4893,_0x7c6120,_0x67b012,_0x516b0a,_0x4e9f4a,_0x485550,_0x360f17,_0x26e579){return _0x5f4893(_0x7c6120,_0x67b012,_0x516b0a,_0x4e9f4a,_0x485550,_0x360f17,_0x26e579);},'GggEd':'pre-check-grid-called','YaViu':_0x2dbe06(0x19e),'pPGly':_0x2dbe06(0x22a),'nRfRc':function(_0x445bac,_0x4fe190,_0x39917c,_0x4db49e,_0x2c870e,_0x2e153e,_0x143c20){return _0x445bac(_0x4fe190,_0x39917c,_0x4db49e,_0x2c870e,_0x2e153e,_0x143c20);},'NKHqV':function(_0x1cb084){return _0x1cb084();},'qGWMA':'<UsernamePlaceholder>','lhtZu':_0x2dbe06(0x1fe),'XdQEg':function(_0x5b4540,_0x43c765,_0x56560a){return _0x5b4540(_0x43c765,_0x56560a);},'uYqug':_0x2dbe06(0x200),'aOnjz':function(_0x4fb923,_0x55cdbb,_0x29e2d2){return _0x4fb923(_0x55cdbb,_0x29e2d2);},'PgNHx':'toolInstalledResp','KCRpu':'3|1|0|4|2','zXDUM':function(_0x392b48,_0x3d8bfc,_0x551262){return _0x392b48(_0x3d8bfc,_0x551262);},'JugQN':'accessResp','iuJkN':function(_0x410e22){return _0x410e22();},'bBLtW':'isTrialGridAccessible','YklgL':function(_0x174ad8,_0xb36c73){return _0x174ad8(_0xb36c73);},'YeQNa':'TLSv1_2_client_method','CYxKd':_0x2dbe06(0x239),'PpFrm':_0x2dbe06(0x1fd),'VfLCN':_0x2dbe06(0x194),'FXgZT':_0x2dbe06(0x234),'ONkTv':_0x2dbe06(0x23e),'nQGvy':function(_0x2a6c3a,_0x2ae540){return _0x2a6c3a+_0x2ae540;},'bFMiN':_0x2dbe06(0x209),'AcrdZ':function(_0x23be0f,_0x3b7e9b,_0xc407d8,_0x5bdf17,_0x1f0a9f,_0x51799e,_0x1dde85){return _0x23be0f(_0x3b7e9b,_0xc407d8,_0x5bdf17,_0x1f0a9f,_0x51799e,_0x1dde85);},'buBfS':_0x2dbe06(0x189)};let _0x812ce2,_0xdcde4e;try{global_registry['requestId']=_0x10250a['eqNHg'](uuidv4);!fs['existsSync'](_0x10250a[_0x2dbe06(0x176)](getCredentialsPath))&&(_0xdcde4e=_0x10250a[_0x2dbe06(0x1d9)],logger[_0x2dbe06(0x22a)](_0xdcde4e),await _0x10250a[_0x2dbe06(0x181)](reportToGalactusAndSendToEDS,_0x3658f0,_0x812ce2,_0xdcde4e,messageTypes['ERROR'],_0x10250a[_0x2dbe06(0x1c5)],_0x10250a['YaViu'],_0x10250a['pPGly']),process[_0x2dbe06(0x249)](0x1));_0x10250a['nRfRc'](sendInstrumentationEvent,_0x3658f0,_0x10250a[_0x2dbe06(0x1c5)],messageTypes[_0x2dbe06(0x1bc)],null,null,_0x3658f0);const _0x1c98ec=JSON[_0x2dbe06(0x182)](fs[_0x2dbe06(0x264)](_0x10250a[_0x2dbe06(0x24d)](getCredentialsPath)));global_registry[_0x2dbe06(0x17d)]=_0x1c98ec[_0x2dbe06(0x240)][_0x2dbe06(0x1af)],global_registry[_0x2dbe06(0x20b)]=_0x1c98ec[_0x2dbe06(0x240)]['password'];const _0x106331=WS_ENDPOINT[_0x2dbe06(0x22e)](_0x10250a[_0x2dbe06(0x1e9)],_0x1c98ec[_0x2dbe06(0x240)][_0x2dbe06(0x1af)])[_0x2dbe06(0x22e)](_0x10250a[_0x2dbe06(0x207)],_0x1c98ec[_0x2dbe06(0x240)][_0x2dbe06(0x1b8)]),_0x5c4c3b={};_0x5c4c3b['WebSocket']=ws,_0x5c4c3b[_0x2dbe06(0x201)]=0x36ee80,_0x812ce2=new ReconnectingWebSocket(_0x106331,[],_0x5c4c3b),global_registry[_0x2dbe06(0x1d3)]=_0x10250a[_0x2dbe06(0x216)](getAuthHeader,global_registry[_0x2dbe06(0x17d)],global_registry[_0x2dbe06(0x20b)]),await _0x10250a[_0x2dbe06(0x216)](inputValidation,_0x3658f0,_0x812ce2),logger[_0x2dbe06(0x191)](_0x2dbe06(0x1b6)+global_registry[_0x2dbe06(0x20f)]+_0x2dbe06(0x25e)+global_registry[_0x2dbe06(0x1f0)]);let _0x281b56=await _0x10250a[_0x2dbe06(0x1ff)](getCloudProviderObjectWithOutInit,global_registry[_0x2dbe06(0x20f)],global_registry[_0x2dbe06(0x1e3)],_0x10250a['uYqug'],_0x812ce2,webSocketUtils,_0x3658f0);const _0x3c3a1b=await _0x281b56[_0x2dbe06(0x1c6)]();_0x10250a['aOnjz'](printResponse,_0x10250a[_0x2dbe06(0x1c7)],_0x3c3a1b),_0x281b56=await _0x281b56[_0x2dbe06(0x18a)]();let _0x54cc89=![];try{_0x54cc89=await _0x281b56[_0x2dbe06(0x25f)]();}catch(_0x4b062f){const _0x2ee695=_0x10250a[_0x2dbe06(0x231)][_0x2dbe06(0x18c)]('|');let _0x27f334=0x0;while(!![]){switch(_0x2ee695[_0x27f334++]){case'0':logger[_0x2dbe06(0x22a)](_0xdcde4e);continue;case'1':_0x54cc89=null;continue;case'2':await _0x10250a[_0x2dbe06(0x181)](reportToGalactusAndSendToEDS,_0x3658f0,_0x812ce2,_0xdcde4e,messageTypes[_0x2dbe06(0x17f)],_0x10250a['GggEd'],'cluster-check-failed-'+global_registry[_0x2dbe06(0x20f)],_0x10250a[_0x2dbe06(0x1d4)]);continue;case'3':_0xdcde4e=_0x2dbe06(0x1e4)+global_registry['clusterName']+_0x2dbe06(0x1ca)+global_registry[_0x2dbe06(0x1f0)]+'`\x20,error\x20:\x20'+_0x4b062f;continue;case'4':_0xdcde4e+='\x0a'+JSON[_0x2dbe06(0x241)](_0x4b062f[_0x2dbe06(0x25b)]);continue;}break;}}_0x54cc89&&logger[_0x2dbe06(0x191)](_0x2dbe06(0x1a3)+global_registry[_0x2dbe06(0x1e3)]+_0x2dbe06(0x227));const _0x1b6df6=await _0x281b56[_0x2dbe06(0x1d2)]();_0x10250a['zXDUM'](printResponse,_0x10250a[_0x2dbe06(0x21b)],_0x1b6df6);const _0x413d7f=await _0x10250a['iuJkN'](curlRequest);_0x10250a[_0x2dbe06(0x175)](printResponse,_0x10250a['bBLtW'],_0x413d7f);const _0x3a0793=await _0x10250a['YklgL'](isTlsSupported,_0x10250a[_0x2dbe06(0x1bf)]);_0x10250a[_0x2dbe06(0x175)](printResponse,_0x10250a['CYxKd'],_0x3a0793);const _0x1af275={};_0x1af275[_0x2dbe06(0x261)]=_0x10250a[_0x2dbe06(0x1e2)],_0x1af275[_0x2dbe06(0x235)]=_0x3c3a1b;const _0x120321={};_0x120321[_0x2dbe06(0x261)]=_0x10250a[_0x2dbe06(0x177)],_0x120321[_0x2dbe06(0x235)]=_0x1b6df6;const _0x326e9f={};_0x326e9f[_0x2dbe06(0x261)]=_0x10250a[_0x2dbe06(0x1ee)],_0x326e9f[_0x2dbe06(0x235)]=_0x413d7f;const _0x15000a={};_0x15000a[_0x2dbe06(0x261)]=_0x10250a[_0x2dbe06(0x220)],_0x15000a[_0x2dbe06(0x235)]=_0x3a0793;const _0x2baed0=[_0x1af275,_0x120321,_0x326e9f,_0x15000a],_0x42c836=await _0x10250a['XdQEg'](generateReport,_0x2baed0,_0x54cc89),_0x27b25c=new Date(),_0x41a9f7=_0x27b25c[_0x2dbe06(0x203)]()+'_'+_0x10250a['nQGvy'](_0x27b25c[_0x2dbe06(0x1c2)](),0x1)+'_'+_0x27b25c['getUTCDate']()+'_'+_0x27b25c[_0x2dbe06(0x1f9)]()+'_'+_0x27b25c[_0x2dbe06(0x1e6)](),_0x4e276e=_0x2dbe06(0x211)+_0x41a9f7+_0x2dbe06(0x1ed);fs['writeFileSync'](_0x4e276e,_0x42c836,_0x10250a['bFMiN']),logger[_0x2dbe06(0x191)](_0x2dbe06(0x24b)+_0x4e276e),process['exit'](0x0);}catch(_0x51255f){let _0x1be24e=_0x2dbe06(0x263)+_0x51255f+'\x20';logger[_0x2dbe06(0x22a)](_0x1be24e),_0x1be24e+='\x0a'+JSON[_0x2dbe06(0x241)](_0x51255f[_0x2dbe06(0x25b)]),logger['debug']('stack\x20trace\x20'+_0x51255f['stack']);if(_0x812ce2){const _0x24f5e1={};_0x24f5e1[_0x2dbe06(0x214)]=WS_EVENTS[_0x2dbe06(0x1fc)],_0x24f5e1[_0x2dbe06(0x1f6)]=_0x1be24e,webSocketUtils[_0x2dbe06(0x1b3)](_0x812ce2,_0x24f5e1,_0x10250a[_0x2dbe06(0x1d4)],!![]);}await webSocketUtils[_0x2dbe06(0x254)](0x7d0);const _0x40e4ac={};_0x40e4ac[_0x2dbe06(0x22a)]=_0x1be24e,await _0x10250a[_0x2dbe06(0x184)](sendInstrumentationEvent,_0x3658f0,_0x10250a[_0x2dbe06(0x1c5)],messageTypes[_0x2dbe06(0x17f)],_0x10250a[_0x2dbe06(0x245)],_0x40e4ac,_0x3658f0),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a18_0x2cac(){const _0x218cad=['usage','9fSrOdV','builder','3SaJzEJ','1936590iMoPbB','epilogue','7721598zmVXIa','start_commands','2786560LVITcx','3444730vSbtmx','1mBnWrT','1611068srwQLv','start','Start\x20an\x20existing\x20Automation\x20grid.','recommendCommands','19565315UyRcoG','handler','KovIa','demandCommand','194992jXlgjQ','182wxcYJI','PIpQk','strict','desc'];a18_0x2cac=function(){return _0x218cad;};return a18_0x2cac();}const a18_0x562891=a18_0x4958;function a18_0x4958(_0x5a6ce6,_0x20b264){const _0x2cac22=a18_0x2cac();return a18_0x4958=function(_0x49589f,_0x321c9b){_0x49589f=_0x49589f-0x1c6;let _0x59509f=_0x2cac22[_0x49589f];return _0x59509f;},a18_0x4958(_0x5a6ce6,_0x20b264);}(function(_0x21839e,_0x77093){const _0x7e9f47=a18_0x4958,_0x161b77=_0x21839e();while(!![]){try{const _0x3e2166=-parseInt(_0x7e9f47(0x1c9))/0x1*(parseInt(_0x7e9f47(0x1db))/0x2)+parseInt(_0x7e9f47(0x1da))/0x3*(parseInt(_0x7e9f47(0x1ca))/0x4)+parseInt(_0x7e9f47(0x1c7))/0x5+-parseInt(_0x7e9f47(0x1dd))/0x6+-parseInt(_0x7e9f47(0x1d3))/0x7*(-parseInt(_0x7e9f47(0x1d2))/0x8)+parseInt(_0x7e9f47(0x1d8))/0x9*(-parseInt(_0x7e9f47(0x1c8))/0xa)+parseInt(_0x7e9f47(0x1ce))/0xb;if(_0x3e2166===_0x77093)break;else _0x161b77['push'](_0x161b77['shift']());}catch(_0x1c0766){_0x161b77['push'](_0x161b77['shift']());}}}(a18_0x2cac,0xbca9f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x562891(0x1cb),exports[a18_0x562891(0x1d6)]=a18_0x562891(0x1cc),exports[a18_0x562891(0x1d9)]=function(_0xd31dd9){const _0x4f03e2=a18_0x562891,_0x25551e={};_0x25551e['KovIa']=_0x4f03e2(0x1c6),_0x25551e[_0x4f03e2(0x1d4)]='help';const _0x3bf881=_0x25551e;return _0xd31dd9[_0x4f03e2(0x1d7)](HELP_HEADER_MESSAGE[_0x4f03e2(0x1cb)])[_0x4f03e2(0x1dc)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3bf881[_0x4f03e2(0x1d0)])[_0x4f03e2(0x1d1)]()[_0x4f03e2(0x1cd)]()[_0x4f03e2(0x1d5)]()['help'](_0x3bf881['PIpQk']);},exports[a18_0x562891(0x1cf)]=function(_0x2affa7){};
1
+ function a18_0x52ab(){const _0xa72484=['usage','apSOv','commandDir','../config/constants','handler','246807GXGZBL','start','help','epilogue','1048730wiNJGM','374LIrWiq','recommendCommands','529648roCYYS','1042818kWUDTf','775866tXMQaE','start_commands','Start\x20an\x20existing\x20Automation\x20grid.','QGqSf','desc','252820VqGxZP','command'];a18_0x52ab=function(){return _0xa72484;};return a18_0x52ab();}const a18_0x1e087=a18_0x38fc;function a18_0x38fc(_0x6cef04,_0x74cf7d){const _0x52ab65=a18_0x52ab();return a18_0x38fc=function(_0x38fc69,_0x35bf01){_0x38fc69=_0x38fc69-0x1bc;let _0x3d8b02=_0x52ab65[_0x38fc69];return _0x3d8b02;},a18_0x38fc(_0x6cef04,_0x74cf7d);}(function(_0xcd09,_0x514760){const _0x3bb9b3=a18_0x38fc,_0x55ac68=_0xcd09();while(!![]){try{const _0x12c1ad=parseInt(_0x3bb9b3(0x1ce))/0x1+parseInt(_0x3bb9b3(0x1d0))/0x2+parseInt(_0x3bb9b3(0x1c9))/0x3+-parseInt(_0x3bb9b3(0x1c2))/0x4+-parseInt(_0x3bb9b3(0x1cd))/0x5+parseInt(_0x3bb9b3(0x1bc))/0x6+-parseInt(_0x3bb9b3(0x1bd))/0x7;if(_0x12c1ad===_0x514760)break;else _0x55ac68['push'](_0x55ac68['shift']());}catch(_0x183b99){_0x55ac68['push'](_0x55ac68['shift']());}}}(a18_0x52ab,0x21909));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1e087(0x1c7));exports[a18_0x1e087(0x1c3)]=a18_0x1e087(0x1ca),exports[a18_0x1e087(0x1c1)]=a18_0x1e087(0x1bf),exports['builder']=function(_0x589e6c){const _0x4da86a=a18_0x1e087,_0x359801={};_0x359801[_0x4da86a(0x1c0)]=_0x4da86a(0x1be),_0x359801[_0x4da86a(0x1c5)]=_0x4da86a(0x1cb);const _0x289ee9=_0x359801;return _0x589e6c[_0x4da86a(0x1c4)](HELP_HEADER_MESSAGE[_0x4da86a(0x1ca)])[_0x4da86a(0x1cc)](HELP_FOOTER_MESSAGE)[_0x4da86a(0x1c6)](_0x289ee9[_0x4da86a(0x1c0)])['demandCommand']()[_0x4da86a(0x1cf)]()['strict']()[_0x4da86a(0x1cb)](_0x289ee9[_0x4da86a(0x1c5)]);},exports[a18_0x1e087(0x1c8)]=function(_0x539bed){};
@@ -1 +1 @@
1
- const a19_0x521872=a19_0x55bd;(function(_0x56455e,_0x4ed653){const _0x53d1fd=a19_0x55bd,_0x11c83d=_0x56455e();while(!![]){try{const _0x1975f4=-parseInt(_0x53d1fd(0x1d2))/0x1*(-parseInt(_0x53d1fd(0x209))/0x2)+parseInt(_0x53d1fd(0x228))/0x3*(-parseInt(_0x53d1fd(0x235))/0x4)+-parseInt(_0x53d1fd(0x1ce))/0x5*(-parseInt(_0x53d1fd(0x1d8))/0x6)+parseInt(_0x53d1fd(0x216))/0x7*(-parseInt(_0x53d1fd(0x1ff))/0x8)+-parseInt(_0x53d1fd(0x1f7))/0x9+-parseInt(_0x53d1fd(0x1cf))/0xa*(parseInt(_0x53d1fd(0x200))/0xb)+-parseInt(_0x53d1fd(0x1de))/0xc*(-parseInt(_0x53d1fd(0x211))/0xd);if(_0x1975f4===_0x4ed653)break;else _0x11c83d['push'](_0x11c83d['shift']());}catch(_0x2290e5){_0x11c83d['push'](_0x11c83d['shift']());}}}(a19_0x1a1a,0x9d564));function a19_0x1a1a(){const _0x34c763=['skTJC','YIbNf','name','invalid-grid-id','message','stringify','InxLu','stack','default','password','readFileSync','30jmPJTL','unauthorised','statusCode','region','Starting\x20grid\x20','GvamV','string','../../utils/utilityMethods','bstackUsername','cloudProvider','ytqMh','UMPIX','info','796yFDCAM','skipTlsCertVerify','debug','15935hYTwNg','83240GlhHKw','argv','start','277dmZUPF','<PasswordPlaceholder>','jiJYL','parse','skip-tls-cert-verify','replace','816qemQEx','desc','CfPqD','bstackAccesskey','options','addListeners','175416pSHchb','username','Skip\x20insecure\x20cert\x20verification.','Agsvw','../../utils/webSocketUtils','clusterRegion','RHpjM','MqApG','eVdOC','exit','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','type','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','body','gridId','../../config/constants','cZdpB','start-grid-called','../../cloudproviders/utils','Grid\x20started','ZjDMI','usage','epilogue','URBic','7069644YWlvQf','../../utils/createk8sClient','../../config/logger','grid','INFO','tdTzs','oBMJL','Start\x20an\x20existing\x20Automation\x20grid.','7432EXyWAF','682jFSNQl','ERROR','help','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','description','WebSocket','KSOUj','kJKwW','4586CGYUuI','IOwNF','../../utils/gridComponents','error','existsSync','handler','UWRxL','init-not-called','1391cMuEWF','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','fmQhm','../../utils/instrumentationUtils','builder','5159jIlVkM','grid-id','DbcQk','user','clusterName','boolean','command'];a19_0x1a1a=function(){return _0x34c763;};return a19_0x1a1a();}function a19_0x55bd(_0x46a067,_0x1e692e){const _0x1a1a78=a19_0x1a1a();return a19_0x55bd=function(_0x55bdf4,_0x533773){_0x55bdf4=_0x55bdf4-0x1cc;let _0x34505c=_0x1a1a78[_0x55bdf4];return _0x34505c;},a19_0x55bd(_0x46a067,_0x1e692e);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x521872(0x1ee)),{logger}=require(a19_0x521872(0x1f9)),{getCredentialsPath,getGridDetails}=require(a19_0x521872(0x22f)),{scaleUpHubDeployment}=require(a19_0x521872(0x20b)),{sendInstrumentationEvent}=require(a19_0x521872(0x214)),webSocketUtils=require(a19_0x521872(0x1e2)),{createK8sClient}=require(a19_0x521872(0x1f8)),{getCloudProviderObject}=require(a19_0x521872(0x1f1));exports[a19_0x521872(0x21c)]=a19_0x521872(0x1fa),exports[a19_0x521872(0x1d9)]=a19_0x521872(0x1fe),exports[a19_0x521872(0x215)]=function(_0x26e8b2){const _0x238bae=a19_0x521872,_0x6c6ea5={};_0x6c6ea5[_0x238bae(0x223)]=_0x238bae(0x1eb),_0x6c6ea5[_0x238bae(0x233)]=_0x238bae(0x22e),_0x6c6ea5[_0x238bae(0x232)]=_0x238bae(0x1e0),_0x6c6ea5[_0x238bae(0x1f6)]=_0x238bae(0x21b),_0x6c6ea5['eKeKL']=_0x238bae(0x202);const _0xf2e674=_0x6c6ea5,_0x203c44={};_0x203c44['description']=_0xf2e674[_0x238bae(0x223)],_0x203c44[_0x238bae(0x1e9)]=_0xf2e674[_0x238bae(0x233)];const _0x12839f={};_0x12839f[_0x238bae(0x205)]=_0xf2e674['ytqMh'],_0x12839f[_0x238bae(0x1e9)]=_0xf2e674[_0x238bae(0x1f6)],_0x12839f[_0x238bae(0x225)]=![];const _0x4fed52={};return _0x4fed52[_0x238bae(0x217)]=_0x203c44,_0x4fed52[_0x238bae(0x1d6)]=_0x12839f,_0x26e8b2[_0x238bae(0x1f4)](HELP_HEADER_MESSAGE[_0x238bae(0x1d1)])[_0x238bae(0x1f5)](HELP_FOOTER_MESSAGE)[_0x238bae(0x1dc)](_0x4fed52)[_0x238bae(0x202)](_0xf2e674['eKeKL'])[_0x238bae(0x1d0)];},exports[a19_0x521872(0x20e)]=async function(_0x5e9068){const _0xe4ca4c=a19_0x521872,_0x198c6d={'tdTzs':_0xe4ca4c(0x1ea),'GvamV':function(_0x55052f){return _0x55052f();},'cZdpB':_0xe4ca4c(0x1e8),'jiJYL':function(_0x33286e,_0x2442dc,_0x2508dc,_0x434108,_0x5503f0,_0x5d094d,_0x4361b2){return _0x33286e(_0x2442dc,_0x2508dc,_0x434108,_0x5503f0,_0x5d094d,_0x4361b2);},'RHpjM':_0xe4ca4c(0x1f0),'CfPqD':_0xe4ca4c(0x210),'ZjDMI':'<UsernamePlaceholder>','MqApG':_0xe4ca4c(0x1d3),'IOwNF':'Adding\x20Websocket\x20listeners','fmQhm':function(_0x4cea11,_0x1f4616,_0x6ccc43,_0x318d81){return _0x4cea11(_0x1f4616,_0x6ccc43,_0x318d81);},'CuXRM':function(_0x38b699,_0x16eac6,_0x710c7c){return _0x38b699(_0x16eac6,_0x710c7c);},'KSOUj':function(_0x3d8e92,_0x12b410,_0x1e2f79){return _0x3d8e92(_0x12b410,_0x1e2f79);},'Agsvw':_0xe4ca4c(0x1f2),'skTJC':function(_0x3a99df,_0xc08efc){return _0x3a99df===_0xc08efc;},'oBMJL':_0xe4ca4c(0x204),'eVdOC':function(_0x4b1b93,_0x22b806,_0x7756ce,_0x50a62e,_0x25f965,_0x220b1f,_0x59021a){return _0x4b1b93(_0x22b806,_0x7756ce,_0x50a62e,_0x25f965,_0x220b1f,_0x59021a);},'YIbNf':_0xe4ca4c(0x229),'DbcQk':function(_0x528f34,_0xe116a1,_0x173e29,_0x489a1d,_0xdd308f,_0x1e79f0,_0x613770){return _0x528f34(_0xe116a1,_0x173e29,_0x489a1d,_0xdd308f,_0x1e79f0,_0x613770);},'UWRxL':_0xe4ca4c(0x220),'kJKwW':function(_0x46bee6,_0x3bbd46,_0xbc3b11,_0xe36889,_0x5edd8a,_0x2e366d,_0xcc3efd){return _0x46bee6(_0x3bbd46,_0xbc3b11,_0xe36889,_0x5edd8a,_0x2e366d,_0xcc3efd);},'ISKsL':'server-error'};let _0x522a8f;try{!_0x5e9068['gridId']&&(logger[_0xe4ca4c(0x20c)](_0x198c6d[_0xe4ca4c(0x1fc)]),process[_0xe4ca4c(0x1e7)](0x1));!fs[_0xe4ca4c(0x20d)](_0x198c6d[_0xe4ca4c(0x22d)](getCredentialsPath))&&(logger[_0xe4ca4c(0x20c)](_0x198c6d[_0xe4ca4c(0x1ef)]),await _0x198c6d[_0xe4ca4c(0x1d4)](sendInstrumentationEvent,_0x5e9068,_0x198c6d[_0xe4ca4c(0x1e4)],messageTypes['ERROR'],_0x198c6d[_0xe4ca4c(0x1da)],null,_0x5e9068),process[_0xe4ca4c(0x1e7)](0x1));logger['info'](_0xe4ca4c(0x22c)+_0x5e9068[_0xe4ca4c(0x1ed)]),await _0x198c6d[_0xe4ca4c(0x1d4)](sendInstrumentationEvent,_0x5e9068,_0x198c6d[_0xe4ca4c(0x1e4)],messageTypes[_0xe4ca4c(0x1fb)],null,null,_0x5e9068);const _0x53b5a1=JSON[_0xe4ca4c(0x1d5)](fs[_0xe4ca4c(0x227)](_0x198c6d[_0xe4ca4c(0x22d)](getCredentialsPath)));global_registry[_0xe4ca4c(0x230)]=_0x53b5a1['Browserstack']['username'],global_registry[_0xe4ca4c(0x1db)]=_0x53b5a1[_0xe4ca4c(0x203)][_0xe4ca4c(0x226)];const _0x4182ec=WS_ENDPOINT[_0xe4ca4c(0x1d7)](_0x198c6d[_0xe4ca4c(0x1f3)],_0x53b5a1[_0xe4ca4c(0x203)][_0xe4ca4c(0x1df)])[_0xe4ca4c(0x1d7)](_0x198c6d[_0xe4ca4c(0x1e5)],_0x53b5a1['Browserstack'][_0xe4ca4c(0x226)]),_0x5c5ac2={};_0x5c5ac2[_0xe4ca4c(0x206)]=ws,_0x5c5ac2['connectionTimeout']=0x36ee80,_0x522a8f=new ReconnectingWebSocket(_0x4182ec,[],_0x5c5ac2),logger[_0xe4ca4c(0x1cd)](_0x198c6d[_0xe4ca4c(0x20a)]),webSocketUtils[_0xe4ca4c(0x1dd)](_0x522a8f,_0x5e9068[_0xe4ca4c(0x219)],_0x5e9068[_0xe4ca4c(0x226)]);const [_0x18c117,_0x46ebbd]=await _0x198c6d[_0xe4ca4c(0x213)](getGridDetails,_0x53b5a1[_0xe4ca4c(0x203)][_0xe4ca4c(0x1df)],_0x53b5a1[_0xe4ca4c(0x203)][_0xe4ca4c(0x226)],_0x5e9068[_0xe4ca4c(0x1ed)]);if(_0x46ebbd){const _0x30970f=_0x46ebbd[_0xe4ca4c(0x234)];global_registry[_0xe4ca4c(0x231)]=_0x30970f[_0xe4ca4c(0x231)],global_registry[_0xe4ca4c(0x1e3)]=_0x30970f[_0xe4ca4c(0x22b)],global_registry[_0xe4ca4c(0x21a)]=_0x30970f[_0xe4ca4c(0x21a)];const _0x5e9c34=await _0x198c6d['jiJYL'](getCloudProviderObject,_0x30970f[_0xe4ca4c(0x231)],_0x30970f[_0xe4ca4c(0x21a)],_0x30970f['name'],_0x522a8f,webSocketUtils,_0x5e9068),[_0x29462d,_0x559187,_0x51272e,_0x191494,_0x2ccbec,_0x56b152]=await _0x198c6d['CuXRM'](createK8sClient,_0x5e9c34,_0x5e9068[_0xe4ca4c(0x1cc)]);await _0x198c6d[_0xe4ca4c(0x207)](scaleUpHubDeployment,_0x559187,_0x30970f[_0xe4ca4c(0x21f)]),logger[_0xe4ca4c(0x234)](_0x198c6d[_0xe4ca4c(0x1e1)]),process[_0xe4ca4c(0x1e7)](0x0);}_0x198c6d[_0xe4ca4c(0x21d)](_0x18c117[_0xe4ca4c(0x22a)],0x191)&&(logger['error'](_0x198c6d[_0xe4ca4c(0x1fd)]),await _0x198c6d[_0xe4ca4c(0x1e6)](sendInstrumentationEvent,_0x5e9068,_0x198c6d[_0xe4ca4c(0x1e4)],messageTypes[_0xe4ca4c(0x201)],_0x198c6d[_0xe4ca4c(0x21e)],null,_0x5e9068),process[_0xe4ca4c(0x1e7)](0x1)),_0x198c6d['skTJC'](_0x18c117[_0xe4ca4c(0x22a)],0x190)&&(logger[_0xe4ca4c(0x20c)](JSON[_0xe4ca4c(0x1d5)](_0x18c117[_0xe4ca4c(0x1ec)])[_0xe4ca4c(0x221)]),await _0x198c6d[_0xe4ca4c(0x218)](sendInstrumentationEvent,_0x5e9068,_0x198c6d['RHpjM'],messageTypes[_0xe4ca4c(0x201)],_0x198c6d[_0xe4ca4c(0x20f)],null,_0x5e9068),process[_0xe4ca4c(0x1e7)](0x1)),logger[_0xe4ca4c(0x20c)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0xe4ca4c(0x222)](_0x18c117)),await _0x198c6d[_0xe4ca4c(0x208)](sendInstrumentationEvent,_0x5e9068,_0x198c6d[_0xe4ca4c(0x1e4)],messageTypes[_0xe4ca4c(0x201)],_0x198c6d['ISKsL'],_0x18c117,_0x5e9068),process[_0xe4ca4c(0x1e7)](0x1);}catch(_0x59c018){const _0x5f17bf=_0xe4ca4c(0x212)+_0x59c018+'\x20\x0a'+JSON[_0xe4ca4c(0x222)](_0x59c018[_0xe4ca4c(0x224)])+'\x20';logger[_0xe4ca4c(0x20c)](_0x5f17bf),process[_0xe4ca4c(0x1e7)](0x1);}};
1
+ const a19_0x3eeac2=a19_0x1ac0;(function(_0x4e1245,_0x5e3504){const _0xeafd9b=a19_0x1ac0,_0x859daf=_0x4e1245();while(!![]){try{const _0x2eb75b=-parseInt(_0xeafd9b(0x11c))/0x1+-parseInt(_0xeafd9b(0x129))/0x2+parseInt(_0xeafd9b(0x159))/0x3+parseInt(_0xeafd9b(0x120))/0x4+parseInt(_0xeafd9b(0x178))/0x5+-parseInt(_0xeafd9b(0x130))/0x6+parseInt(_0xeafd9b(0x14d))/0x7;if(_0x2eb75b===_0x5e3504)break;else _0x859daf['push'](_0x859daf['shift']());}catch(_0x348439){_0x859daf['push'](_0x859daf['shift']());}}}(a19_0x42cd,0x6f792));function a19_0x42cd(){const _0x4c86f3=['djewS','../../utils/gridComponents','5594778zXXFxa','connectionTimeout','IXPrU','epilogue','grid-id','iEgaV','description','name','body','CQrfu','Start\x20an\x20existing\x20Automation\x20grid.','<UsernamePlaceholder>','609810guyMzK','WebSocket','KzYkq','cloudProvider','UtLae','OoJqx','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','username','reconnecting-websocket','KmpAp','start','error','../../config/constants','SUqIf','default','lIESS','IWBbh','gridId','password','readFileSync','WTQSY','zPpOy','ujbwL','start-grid-called','skipTlsCertVerify','message','sZcRr','zBIZg','aOnba','PFwGu','OReFg','1316445RgiAZc','stringify','219358HMstno','help','server-error','TiHBa','1870476oqFvUO','ldeLZ','LxFar','boolean','<PasswordPlaceholder>','type','string','RHcvr','FElfe','1065622bHzmiw','fZjzR','exit','skip-tls-cert-verify','../../utils/createk8sClient','../../config/logger','HYqbI','3148014yXDXkw','Starting\x20grid\x20','Skip\x20insecure\x20cert\x20verification.','IbDUl','statusCode','Adding\x20Websocket\x20listeners','info','INFO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','handler','Grid\x20started','clusterRegion','ERROR','rCqCQ','clusterName','Browserstack','argv','region','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','usage','options','debug','MdYQS','replace','../../utils/webSocketUtils','../../utils/instrumentationUtils'];a19_0x42cd=function(){return _0x4c86f3;};return a19_0x42cd();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3eeac2(0x161)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3eeac2(0x165)),{logger}=require(a19_0x3eeac2(0x12e)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x3eeac2(0x14c)),{sendInstrumentationEvent}=require(a19_0x3eeac2(0x14a)),webSocketUtils=require(a19_0x3eeac2(0x149)),{createK8sClient}=require(a19_0x3eeac2(0x12d)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x1ac0(_0x3f7dcb,_0x16eb81){const _0x42cdab=a19_0x42cd();return a19_0x1ac0=function(_0x1ac073,_0x200123){_0x1ac073=_0x1ac073-0x11c;let _0x389753=_0x42cdab[_0x1ac073];return _0x389753;},a19_0x1ac0(_0x3f7dcb,_0x16eb81);}exports['command']='grid',exports['desc']=a19_0x3eeac2(0x157),exports['builder']=function(_0x5eb1aa){const _0x565dd2=a19_0x3eeac2,_0x2773c3={};_0x2773c3[_0x565dd2(0x156)]=_0x565dd2(0x142),_0x2773c3[_0x565dd2(0x173)]=_0x565dd2(0x126),_0x2773c3[_0x565dd2(0x15e)]=_0x565dd2(0x132),_0x2773c3[_0x565dd2(0x14b)]=_0x565dd2(0x123),_0x2773c3[_0x565dd2(0x127)]=_0x565dd2(0x11d);const _0x5acb9f=_0x2773c3,_0x262ccd={};_0x262ccd['description']=_0x5acb9f[_0x565dd2(0x156)],_0x262ccd[_0x565dd2(0x125)]=_0x5acb9f['sZcRr'];const _0x3c51e5={};_0x3c51e5[_0x565dd2(0x153)]=_0x5acb9f[_0x565dd2(0x15e)],_0x3c51e5['type']=_0x5acb9f[_0x565dd2(0x14b)],_0x3c51e5[_0x565dd2(0x167)]=![];const _0x5a29ba={};return _0x5a29ba[_0x565dd2(0x151)]=_0x262ccd,_0x5a29ba[_0x565dd2(0x12c)]=_0x3c51e5,_0x5eb1aa[_0x565dd2(0x144)](HELP_HEADER_MESSAGE[_0x565dd2(0x163)])[_0x565dd2(0x150)](HELP_FOOTER_MESSAGE)[_0x565dd2(0x145)](_0x5a29ba)[_0x565dd2(0x11d)](_0x5acb9f[_0x565dd2(0x127)])[_0x565dd2(0x140)];},exports[a19_0x3eeac2(0x139)]=async function(_0x1b44c3){const _0x4d38c9=a19_0x3eeac2,_0x2ff08f={'zBIZg':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','SUqIf':function(_0x22600f){return _0x22600f();},'HYqbI':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','KmpAp':function(_0x1f3b28,_0x141a5d,_0x4b2d76,_0x5b57fd,_0x1504fd,_0x5a4b17,_0x17f12d){return _0x1f3b28(_0x141a5d,_0x4b2d76,_0x5b57fd,_0x1504fd,_0x5a4b17,_0x17f12d);},'OReFg':_0x4d38c9(0x170),'iEgaV':'init-not-called','ldeLZ':function(_0x24ebfe,_0x4f272c,_0x3846da,_0x5a970c,_0x52f90b,_0x4f44ea,_0x1186f4){return _0x24ebfe(_0x4f272c,_0x3846da,_0x5a970c,_0x52f90b,_0x4f44ea,_0x1186f4);},'fZjzR':function(_0x2dc0de){return _0x2dc0de();},'MdYQS':_0x4d38c9(0x158),'KzYkq':_0x4d38c9(0x124),'LxFar':_0x4d38c9(0x135),'IbDUl':function(_0x480e73,_0x2833c3,_0x24aa1e,_0x301a11){return _0x480e73(_0x2833c3,_0x24aa1e,_0x301a11);},'IXPrU':function(_0x282c0c,_0x14f33a,_0x328baf,_0x165c86,_0x39d5b3,_0x13afdc,_0x563c0b){return _0x282c0c(_0x14f33a,_0x328baf,_0x165c86,_0x39d5b3,_0x13afdc,_0x563c0b);},'WTQSY':function(_0x5bf65b,_0x1f424e,_0x12f165){return _0x5bf65b(_0x1f424e,_0x12f165);},'aOnba':_0x4d38c9(0x13a),'FElfe':function(_0x4bc2ed,_0x9ec1f4){return _0x4bc2ed===_0x9ec1f4;},'TiHBa':_0x4d38c9(0x15f),'zPpOy':function(_0x19b675,_0x6e9618,_0x5f1692,_0x38777f,_0x24bd80,_0x459aa4,_0x28938e){return _0x19b675(_0x6e9618,_0x5f1692,_0x38777f,_0x24bd80,_0x459aa4,_0x28938e);},'IWBbh':'unauthorised','lIESS':function(_0x2bed37,_0x53e6ca){return _0x2bed37===_0x53e6ca;},'ujbwL':function(_0x44ed86,_0x13ed5c,_0x5e44ac,_0x366505,_0x1647a4,_0x3a193f,_0x1e554e){return _0x44ed86(_0x13ed5c,_0x5e44ac,_0x366505,_0x1647a4,_0x3a193f,_0x1e554e);},'rCqCQ':'invalid-grid-id','UtLae':function(_0x2b9567,_0x2a810f,_0x3201f1,_0x36ff26,_0x45accd,_0xdf6cd,_0x120744){return _0x2b9567(_0x2a810f,_0x3201f1,_0x36ff26,_0x45accd,_0xdf6cd,_0x120744);},'PFwGu':_0x4d38c9(0x11e)};let _0x3460d0;try{!_0x1b44c3[_0x4d38c9(0x16a)]&&(logger[_0x4d38c9(0x164)](_0x2ff08f[_0x4d38c9(0x174)]),process[_0x4d38c9(0x12b)](0x1));!fs['existsSync'](_0x2ff08f[_0x4d38c9(0x166)](getCredentialsPath))&&(logger['error'](_0x2ff08f[_0x4d38c9(0x12f)]),await _0x2ff08f[_0x4d38c9(0x162)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes[_0x4d38c9(0x13c)],_0x2ff08f[_0x4d38c9(0x152)],null,_0x1b44c3),process[_0x4d38c9(0x12b)](0x1));logger[_0x4d38c9(0x136)](_0x4d38c9(0x131)+_0x1b44c3[_0x4d38c9(0x16a)]),await _0x2ff08f[_0x4d38c9(0x121)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes[_0x4d38c9(0x137)],null,null,_0x1b44c3);const _0xee38ab=JSON['parse'](fs[_0x4d38c9(0x16c)](_0x2ff08f[_0x4d38c9(0x12a)](getCredentialsPath)));global_registry['bstackUsername']=_0xee38ab[_0x4d38c9(0x13f)][_0x4d38c9(0x160)],global_registry['bstackAccesskey']=_0xee38ab['Browserstack'][_0x4d38c9(0x16b)];const _0x357464=WS_ENDPOINT['replace'](_0x2ff08f[_0x4d38c9(0x147)],_0xee38ab[_0x4d38c9(0x13f)]['username'])[_0x4d38c9(0x148)](_0x2ff08f[_0x4d38c9(0x15b)],_0xee38ab['Browserstack'][_0x4d38c9(0x16b)]),_0x5b0332={};_0x5b0332[_0x4d38c9(0x15a)]=ws,_0x5b0332[_0x4d38c9(0x14e)]=0x36ee80,_0x3460d0=new ReconnectingWebSocket(_0x357464,[],_0x5b0332),logger[_0x4d38c9(0x146)](_0x2ff08f[_0x4d38c9(0x122)]),webSocketUtils['addListeners'](_0x3460d0,_0x1b44c3['user'],_0x1b44c3[_0x4d38c9(0x16b)]);const [_0x55ee7f,_0x5f1316]=await _0x2ff08f[_0x4d38c9(0x133)](getGridDetails,_0xee38ab['Browserstack']['username'],_0xee38ab[_0x4d38c9(0x13f)][_0x4d38c9(0x16b)],_0x1b44c3[_0x4d38c9(0x16a)]);if(_0x5f1316){const _0x1c331a=_0x5f1316['info'];global_registry[_0x4d38c9(0x15c)]=_0x1c331a[_0x4d38c9(0x15c)],global_registry[_0x4d38c9(0x13b)]=_0x1c331a[_0x4d38c9(0x141)],global_registry[_0x4d38c9(0x13e)]=_0x1c331a[_0x4d38c9(0x13e)];const _0x6769ec=await _0x2ff08f[_0x4d38c9(0x14f)](getCloudProviderObject,_0x1c331a['cloudProvider'],_0x1c331a[_0x4d38c9(0x13e)],_0x1c331a[_0x4d38c9(0x154)],_0x3460d0,webSocketUtils,_0x1b44c3),[_0x5684cf,_0x2f4abc,_0x83fb7a,_0x4d8078,_0x16f328,_0x4c0350]=await _0x2ff08f[_0x4d38c9(0x16d)](createK8sClient,_0x6769ec,_0x1b44c3[_0x4d38c9(0x171)]);await _0x2ff08f[_0x4d38c9(0x16d)](scaleUpHubDeployment,_0x2f4abc,_0x1c331a[_0x4d38c9(0x154)]),logger[_0x4d38c9(0x136)](_0x2ff08f[_0x4d38c9(0x175)]),process[_0x4d38c9(0x12b)](0x0);}_0x2ff08f[_0x4d38c9(0x128)](_0x55ee7f['statusCode'],0x191)&&(logger[_0x4d38c9(0x164)](_0x2ff08f[_0x4d38c9(0x11f)]),await _0x2ff08f[_0x4d38c9(0x16e)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes['ERROR'],_0x2ff08f[_0x4d38c9(0x169)],null,_0x1b44c3),process[_0x4d38c9(0x12b)](0x1)),_0x2ff08f[_0x4d38c9(0x168)](_0x55ee7f[_0x4d38c9(0x134)],0x190)&&(logger[_0x4d38c9(0x164)](JSON['parse'](_0x55ee7f[_0x4d38c9(0x155)])[_0x4d38c9(0x172)]),await _0x2ff08f[_0x4d38c9(0x16f)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes[_0x4d38c9(0x13c)],_0x2ff08f[_0x4d38c9(0x13d)],null,_0x1b44c3),process[_0x4d38c9(0x12b)](0x1)),logger[_0x4d38c9(0x164)](_0x4d38c9(0x138)+JSON[_0x4d38c9(0x179)](_0x55ee7f)),await _0x2ff08f[_0x4d38c9(0x15d)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes[_0x4d38c9(0x13c)],_0x2ff08f[_0x4d38c9(0x176)],_0x55ee7f,_0x1b44c3),process[_0x4d38c9(0x12b)](0x1);}catch(_0x2090b1){const _0x2e60d9=_0x4d38c9(0x143)+_0x2090b1+'\x20\x0a'+JSON['stringify'](_0x2090b1['stack'])+'\x20';logger[_0x4d38c9(0x164)](_0x2e60d9),process[_0x4d38c9(0x12b)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x3d6849=a20_0x3015;(function(_0x2475e5,_0x4ecb13){const _0x21d758=a20_0x3015,_0x50688c=_0x2475e5();while(!![]){try{const _0x3e8ce8=-parseInt(_0x21d758(0xe1))/0x1*(parseInt(_0x21d758(0xdb))/0x2)+-parseInt(_0x21d758(0xe0))/0x3+-parseInt(_0x21d758(0xec))/0x4+parseInt(_0x21d758(0xe4))/0x5*(parseInt(_0x21d758(0xef))/0x6)+-parseInt(_0x21d758(0xdc))/0x7*(parseInt(_0x21d758(0xda))/0x8)+-parseInt(_0x21d758(0xdf))/0x9*(-parseInt(_0x21d758(0xe2))/0xa)+parseInt(_0x21d758(0xe8))/0xb*(parseInt(_0x21d758(0xe5))/0xc);if(_0x3e8ce8===_0x4ecb13)break;else _0x50688c['push'](_0x50688c['shift']());}catch(_0x428932){_0x50688c['push'](_0x50688c['shift']());}}}(a20_0x3ee6,0x28a5e));function a20_0x3ee6(){const _0x4f50c1=['stop','usage','2404881SvimuL','74658JqEaJn','193WtGUVW','10lUSnNg','strict','1580030xZuEpb','9540SCTNoy','builder','demandCommand','3883EyLJrg','command','hEnKg','ONuXV','356720gMgnWm','handler','help','6cOQgMu','2158864nGkrre','3248sMSHUZ','7sJNdFX'];a20_0x3ee6=function(){return _0x4f50c1;};return a20_0x3ee6();}function a20_0x3015(_0x5f00ec,_0x186ace){const _0x3ee6b0=a20_0x3ee6();return a20_0x3015=function(_0x301599,_0x2c715d){_0x301599=_0x301599-0xda;let _0x292536=_0x3ee6b0[_0x301599];return _0x292536;},a20_0x3015(_0x5f00ec,_0x186ace);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x3d6849(0xe9)]='stop',exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x3d6849(0xe6)]=function(_0x25a1c6){const _0x52680d=a20_0x3d6849,_0x1a4be7={};_0x1a4be7[_0x52680d(0xeb)]='stop_commands',_0x1a4be7[_0x52680d(0xea)]=_0x52680d(0xee);const _0x384918=_0x1a4be7;return _0x25a1c6[_0x52680d(0xde)](HELP_HEADER_MESSAGE[_0x52680d(0xdd)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x384918[_0x52680d(0xeb)])[_0x52680d(0xe7)]()['recommendCommands']()[_0x52680d(0xe3)]()[_0x52680d(0xee)](_0x384918[_0x52680d(0xea)]);},exports[a20_0x3d6849(0xed)]=function(_0x2dbf1e){};
1
+ function a20_0x4dc3(){const _0x3b2933=['epilogue','help','1208566IFfnLh','commandDir','builder','1127434TzDhqn','strict','2807742gIhcbt','16563099OrUZbs','../config/constants','3822360cTHbgw','EUzCQ','stop','command','iTsAZ','desc','871015VvUWAI','stop_commands','821688DtjBbd','handler'];a20_0x4dc3=function(){return _0x3b2933;};return a20_0x4dc3();}function a20_0x3caf(_0x3e11f5,_0x5c8c7b){const _0x4dc33b=a20_0x4dc3();return a20_0x3caf=function(_0x3cafd7,_0x478512){_0x3cafd7=_0x3cafd7-0x1af;let _0x5e71dd=_0x4dc33b[_0x3cafd7];return _0x5e71dd;},a20_0x3caf(_0x3e11f5,_0x5c8c7b);}const a20_0x24c3a7=a20_0x3caf;(function(_0x400102,_0x1d22ff){const _0x416df8=a20_0x3caf,_0x40f972=_0x400102();while(!![]){try{const _0x4668d1=-parseInt(_0x416df8(0x1be))/0x1+parseInt(_0x416df8(0x1c1))/0x2+parseInt(_0x416df8(0x1ba))/0x3+-parseInt(_0x416df8(0x1b2))/0x4+parseInt(_0x416df8(0x1b8))/0x5+-parseInt(_0x416df8(0x1af))/0x6+parseInt(_0x416df8(0x1b0))/0x7;if(_0x4668d1===_0x1d22ff)break;else _0x40f972['push'](_0x40f972['shift']());}catch(_0x40fe87){_0x40f972['push'](_0x40f972['shift']());}}}(a20_0x4dc3,0xb6184));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x24c3a7(0x1b1));exports[a20_0x24c3a7(0x1b5)]=a20_0x24c3a7(0x1b4),exports[a20_0x24c3a7(0x1b7)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x24c3a7(0x1c0)]=function(_0x3f0d83){const _0x8a6d70=a20_0x24c3a7,_0x2a4ba5={};_0x2a4ba5['iTsAZ']=_0x8a6d70(0x1b9),_0x2a4ba5[_0x8a6d70(0x1b3)]=_0x8a6d70(0x1bd);const _0x40e985=_0x2a4ba5;return _0x3f0d83['usage'](HELP_HEADER_MESSAGE[_0x8a6d70(0x1b4)])[_0x8a6d70(0x1bc)](HELP_FOOTER_MESSAGE)[_0x8a6d70(0x1bf)](_0x40e985[_0x8a6d70(0x1b6)])['demandCommand']()['recommendCommands']()[_0x8a6d70(0x1c2)]()[_0x8a6d70(0x1bd)](_0x40e985['EUzCQ']);},exports[a20_0x24c3a7(0x1bb)]=function(_0x5ea05f){};
@@ -1 +1 @@
1
- function a21_0x525a(){const _0x478b8d=['statusCode','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','QXLHI','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','password','../../config/logger','WebSocket','PmFlL','builder','2084094DfoziV','argv','bstackAccesskey','20tJFndJ','Grid\x20stoppped.','../../utils/instrumentationUtils','string','aTqHG','type','replace','yhOqd','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cloudProvider','epilogue','155154XBPIqJ','../../utils/gridComponents','suroL','connectionTimeout','stringify','description','Dkkag','<UsernamePlaceholder>','exit','Adding\x20Websocket\x20listeners','debug','37294990CCOKSd','FItmq','invalid-grid-id','HBcgl','boolean','body','unauthorised','../../cloudproviders/utils','ViwCr','INFO','default','username','grid-id','Stop\x20a\x20running\x20Automation\x20grid.','Browserstack','415nHGJgY','name','kIfMh','parse','gridId','Skip\x20insecure\x20cert\x20verification.','tuWJM','40INDAnA','sBAUW','region','error','clusterRegion','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','jeAOc','desc','484377lhxIbA','stack','uSTWa','<PasswordPlaceholder>','11016ROlHDN','ERROR','jdFik','skipTlsCertVerify','Cmrwd','handler','IOkel','stop-grid-called','dAGPP','Stopping\x20grid\x20','clusterName','skip-tls-cert-verify','server-error','info','808409LxwrOm','mwvgQ','IuIdB','107611ySIECh','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','HlgML','user','message','help','usage'];a21_0x525a=function(){return _0x478b8d;};return a21_0x525a();}function a21_0x7981(_0x2e41f9,_0x566ded){const _0x525ab4=a21_0x525a();return a21_0x7981=function(_0x798197,_0x1f29dd){_0x798197=_0x798197-0x162;let _0xf063aa=_0x525ab4[_0x798197];return _0xf063aa;},a21_0x7981(_0x2e41f9,_0x566ded);}const a21_0x4817fe=a21_0x7981;(function(_0x3a8d4e,_0xa86370){const _0x2b347f=a21_0x7981,_0x388523=_0x3a8d4e();while(!![]){try{const _0x2975b0=-parseInt(_0x2b347f(0x18a))/0x1+-parseInt(_0x2b347f(0x1ad))/0x2+parseInt(_0x2b347f(0x178))/0x3*(-parseInt(_0x2b347f(0x1a2))/0x4)+-parseInt(_0x2b347f(0x169))/0x5*(parseInt(_0x2b347f(0x17c))/0x6)+-parseInt(_0x2b347f(0x18d))/0x7+-parseInt(_0x2b347f(0x170))/0x8*(parseInt(_0x2b347f(0x19f))/0x9)+parseInt(_0x2b347f(0x1b8))/0xa;if(_0x2975b0===_0xa86370)break;else _0x388523['push'](_0x388523['shift']());}catch(_0x3d4b9b){_0x388523['push'](_0x388523['shift']());}}}(a21_0x525a,0xad7e3));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x4817fe(0x19b)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x4817fe(0x1ae)),{sendInstrumentationEvent}=require(a21_0x4817fe(0x1a4)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x4817fe(0x1bf));exports['command']='grid',exports[a21_0x4817fe(0x177)]=a21_0x4817fe(0x167),exports[a21_0x4817fe(0x19e)]=function(_0x1a8c7e){const _0x269120=a21_0x4817fe,_0x3d08c4={};_0x3d08c4[_0x269120(0x19d)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x3d08c4[_0x269120(0x17e)]=_0x269120(0x1a5),_0x3d08c4[_0x269120(0x1b9)]=_0x269120(0x16e),_0x3d08c4[_0x269120(0x182)]=_0x269120(0x1bc),_0x3d08c4['MErQv']=_0x269120(0x192);const _0x6b3bf2=_0x3d08c4,_0x2112e9={};_0x2112e9[_0x269120(0x1b2)]=_0x6b3bf2['PmFlL'],_0x2112e9['type']=_0x6b3bf2['jdFik'];const _0x87c990={};_0x87c990[_0x269120(0x1b2)]=_0x6b3bf2[_0x269120(0x1b9)],_0x87c990[_0x269120(0x1a7)]=_0x6b3bf2['IOkel'],_0x87c990[_0x269120(0x164)]=![];const _0x45f2a3={};return _0x45f2a3[_0x269120(0x166)]=_0x2112e9,_0x45f2a3[_0x269120(0x187)]=_0x87c990,_0x1a8c7e[_0x269120(0x193)](HELP_HEADER_MESSAGE['stop'])[_0x269120(0x1ac)](HELP_FOOTER_MESSAGE)[_0x269120(0x198)](_0x45f2a3)[_0x269120(0x192)](_0x6b3bf2['MErQv'])[_0x269120(0x1a0)];},exports[a21_0x4817fe(0x181)]=async function(_0xc5d710){const _0x56bfa3=a21_0x4817fe,_0x5ddad2={'uSTWa':_0x56bfa3(0x175),'suroL':function(_0x264fcd){return _0x264fcd();},'KuddC':_0x56bfa3(0x199),'mwvgQ':function(_0x5d6c2c,_0x154492,_0x270b9c,_0x52d409,_0x4edc03,_0x2e6683,_0x1a866d){return _0x5d6c2c(_0x154492,_0x270b9c,_0x52d409,_0x4edc03,_0x2e6683,_0x1a866d);},'HlgML':_0x56bfa3(0x183),'sBAUW':'init-not-called','yhOqd':function(_0x20ad5a,_0x204e1e,_0x53abbe,_0x2bf0e4,_0x6d01d3,_0x5ec06a,_0x3561ea){return _0x20ad5a(_0x204e1e,_0x53abbe,_0x2bf0e4,_0x6d01d3,_0x5ec06a,_0x3561ea);},'Dkkag':_0x56bfa3(0x1b4),'IFBxt':_0x56bfa3(0x17b),'tuWJM':_0x56bfa3(0x1b6),'VVMrx':function(_0x119045,_0x57d20c,_0x8f50f7,_0x5ba85e){return _0x119045(_0x57d20c,_0x8f50f7,_0x5ba85e);},'wrtar':function(_0x512966,_0x561eda,_0x169ee3){return _0x512966(_0x561eda,_0x169ee3);},'aTqHG':function(_0x2962c3,_0x41bd1b,_0x3e5067){return _0x2962c3(_0x41bd1b,_0x3e5067);},'IuIdB':_0x56bfa3(0x1a3),'ViwCr':function(_0x462e97,_0x2a5000){return _0x462e97===_0x2a5000;},'dAGPP':_0x56bfa3(0x1aa),'Cmrwd':function(_0x29c7a1,_0x46c2f7,_0x5d069f,_0x134544,_0x4f7d44,_0x314067,_0x54cb76){return _0x29c7a1(_0x46c2f7,_0x5d069f,_0x134544,_0x4f7d44,_0x314067,_0x54cb76);},'QXLHI':_0x56bfa3(0x1be),'HBcgl':function(_0x5c180d,_0x4b04ad){return _0x5c180d===_0x4b04ad;},'kIfMh':_0x56bfa3(0x1ba),'jeAOc':_0x56bfa3(0x188)};let _0x279926;try{!_0xc5d710[_0x56bfa3(0x16d)]&&(logger[_0x56bfa3(0x173)](_0x5ddad2[_0x56bfa3(0x17a)]),process[_0x56bfa3(0x1b5)](0x1));!fs['existsSync'](_0x5ddad2[_0x56bfa3(0x1af)](getCredentialsPath))&&(logger['error'](_0x5ddad2['KuddC']),await _0x5ddad2[_0x56bfa3(0x18b)](sendInstrumentationEvent,_0xc5d710,_0x5ddad2[_0x56bfa3(0x18f)],messageTypes[_0x56bfa3(0x17d)],_0x5ddad2[_0x56bfa3(0x171)],null,_0xc5d710),process['exit'](0x1));logger[_0x56bfa3(0x189)](_0x56bfa3(0x185)+_0xc5d710[_0x56bfa3(0x16d)]),await _0x5ddad2[_0x56bfa3(0x1a9)](sendInstrumentationEvent,_0xc5d710,_0x5ddad2[_0x56bfa3(0x18f)],messageTypes[_0x56bfa3(0x163)],null,null,_0xc5d710);const _0x1fca2a=JSON[_0x56bfa3(0x16c)](fs[_0x56bfa3(0x195)](_0x5ddad2[_0x56bfa3(0x1af)](getCredentialsPath)));global_registry['bstackUsername']=_0x1fca2a[_0x56bfa3(0x168)]['username'],global_registry[_0x56bfa3(0x1a1)]=_0x1fca2a[_0x56bfa3(0x168)][_0x56bfa3(0x19a)];const _0xd1b2b2=WS_ENDPOINT['replace'](_0x5ddad2[_0x56bfa3(0x1b3)],_0x1fca2a['Browserstack'][_0x56bfa3(0x165)])[_0x56bfa3(0x1a8)](_0x5ddad2['IFBxt'],_0x1fca2a[_0x56bfa3(0x168)][_0x56bfa3(0x19a)]),_0x4d1dee={};_0x4d1dee[_0x56bfa3(0x19c)]=ws,_0x4d1dee[_0x56bfa3(0x1b0)]=0x36ee80,_0x279926=new ReconnectingWebSocket(_0xd1b2b2,[],_0x4d1dee),logger[_0x56bfa3(0x1b7)](_0x5ddad2[_0x56bfa3(0x16f)]),webSocketUtils['addListeners'](_0x279926,_0xc5d710[_0x56bfa3(0x190)],_0xc5d710['password']);const [_0x45b638,_0x21dd76]=await _0x5ddad2['VVMrx'](getGridDetails,_0x1fca2a['Browserstack'][_0x56bfa3(0x165)],_0x1fca2a[_0x56bfa3(0x168)]['password'],_0xc5d710[_0x56bfa3(0x16d)]);if(_0x21dd76){const _0x2e31af=_0x21dd76[_0x56bfa3(0x189)];global_registry[_0x56bfa3(0x1ab)]=_0x2e31af[_0x56bfa3(0x1ab)],global_registry[_0x56bfa3(0x174)]=_0x2e31af[_0x56bfa3(0x172)],global_registry[_0x56bfa3(0x186)]=_0x2e31af[_0x56bfa3(0x186)];const _0x1242ee=await _0x5ddad2[_0x56bfa3(0x1a9)](getCloudProviderObject,_0x2e31af['cloudProvider'],_0x2e31af[_0x56bfa3(0x186)],_0x2e31af['name'],_0x279926,webSocketUtils,_0xc5d710),[_0x2378d6,_0x5ef380,_0x356758,_0x28c2fa,_0x4f5832,_0x25a5b4]=await _0x5ddad2['wrtar'](createK8sClient,_0x1242ee,_0xc5d710[_0x56bfa3(0x17f)]);await _0x5ddad2[_0x56bfa3(0x1a6)](scaleDownHubDeployment,_0x5ef380,_0x2e31af[_0x56bfa3(0x16a)]),logger[_0x56bfa3(0x189)](_0x5ddad2[_0x56bfa3(0x18c)]),process[_0x56bfa3(0x1b5)](0x0);}_0x5ddad2[_0x56bfa3(0x162)](_0x45b638[_0x56bfa3(0x194)],0x191)&&(logger['error'](_0x5ddad2[_0x56bfa3(0x184)]),await _0x5ddad2['Cmrwd'](sendInstrumentationEvent,_0xc5d710,_0x5ddad2['HlgML'],messageTypes[_0x56bfa3(0x17d)],_0x5ddad2[_0x56bfa3(0x197)],null,_0xc5d710),process[_0x56bfa3(0x1b5)](0x1)),_0x5ddad2[_0x56bfa3(0x1bb)](_0x45b638['statusCode'],0x190)&&(logger[_0x56bfa3(0x173)](JSON[_0x56bfa3(0x16c)](_0x45b638[_0x56bfa3(0x1bd)])[_0x56bfa3(0x191)]),await _0x5ddad2[_0x56bfa3(0x180)](sendInstrumentationEvent,_0xc5d710,_0x5ddad2['HlgML'],messageTypes[_0x56bfa3(0x17d)],_0x5ddad2[_0x56bfa3(0x16b)],null,_0xc5d710),process[_0x56bfa3(0x1b5)](0x1)),logger[_0x56bfa3(0x173)](_0x56bfa3(0x196)+JSON[_0x56bfa3(0x1b1)](_0x45b638)),await _0x5ddad2[_0x56bfa3(0x1a9)](sendInstrumentationEvent,_0xc5d710,_0x5ddad2[_0x56bfa3(0x18f)],messageTypes['ERROR'],_0x5ddad2[_0x56bfa3(0x176)],_0x45b638,_0xc5d710),process[_0x56bfa3(0x1b5)](0x1);}catch(_0x490e41){const _0x2e3713=_0x56bfa3(0x18e)+_0x490e41+'\x20\x0a'+JSON[_0x56bfa3(0x1b1)](_0x490e41[_0x56bfa3(0x179)])+'\x20';logger[_0x56bfa3(0x173)](_0x2e3713),process[_0x56bfa3(0x1b5)](0x1);}};
1
+ function a21_0x2404(_0x543322,_0x3d9b68){const _0x137aee=a21_0x137a();return a21_0x2404=function(_0x240402,_0x58a599){_0x240402=_0x240402-0x130;let _0x5379fd=_0x137aee[_0x240402];return _0x5379fd;},a21_0x2404(_0x543322,_0x3d9b68);}const a21_0x1ee0f1=a21_0x2404;(function(_0x27ccf3,_0x16de1d){const _0x1421cc=a21_0x2404,_0x59b670=_0x27ccf3();while(!![]){try{const _0x92af93=parseInt(_0x1421cc(0x18b))/0x1+parseInt(_0x1421cc(0x150))/0x2*(parseInt(_0x1421cc(0x15d))/0x3)+parseInt(_0x1421cc(0x16b))/0x4*(parseInt(_0x1421cc(0x166))/0x5)+parseInt(_0x1421cc(0x180))/0x6+parseInt(_0x1421cc(0x160))/0x7+parseInt(_0x1421cc(0x132))/0x8+-parseInt(_0x1421cc(0x145))/0x9;if(_0x92af93===_0x16de1d)break;else _0x59b670['push'](_0x59b670['shift']());}catch(_0x2c71c7){_0x59b670['push'](_0x59b670['shift']());}}}(a21_0x137a,0xf1a49));function a21_0x137a(){const _0x3438a1=['YzOEn','bstackAccesskey','mTkeZ','debug','OFdqS','9696492bVKnwK','XIBjT','Grid\x20stoppped.','HKQFy','gridId','body','boolean','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','type','cloudProvider','<PasswordPlaceholder>','839189lobnFw','parse','mSwmj','name','9523056MJGoQc','SIrjG','../../utils/createk8sClient','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','kLTAf','RbQoO','WgwpC','../../utils/webSocketUtils','argv','handler','Browserstack','existsSync','description','stop-grid-called','stop','../../config/constants','password','builder','../../utils/gridComponents','69999678szlmRY','stack','uqICg','statusCode','WebSocket','clusterRegion','invalid-grid-id','Skip\x20insecure\x20cert\x20verification.','GOQff','BtZgz','gjMPM','50RqUVtN','../../config/logger','RtPfn','usage','replace','<UsernamePlaceholder>','string','addListeners','Adding\x20Websocket\x20listeners','info','../../cloudproviders/utils','jsLvG','readFileSync','215157NyiPwN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','rkoAR','12029283WrDZhq','nIzPf','../../utils/utilityMethods','OOmxt','reconnecting-websocket','INFO','350090ytNQjB','GwitQ','init-not-called','Stop\x20a\x20running\x20Automation\x20grid.','default','92GsdMnL','ERROR','user','kSkrw','help','desc','skipTlsCertVerify','region','options','iWZQN','clusterName','exit','RXtJd','error','server-error','grid'];a21_0x137a=function(){return _0x3438a1;};return a21_0x137a();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x1ee0f1(0x164)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1ee0f1(0x141)),{logger}=require(a21_0x1ee0f1(0x151)),{getCredentialsPath,getGridDetails}=require(a21_0x1ee0f1(0x162)),{scaleDownHubDeployment}=require(a21_0x1ee0f1(0x144)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x1ee0f1(0x139)),{createK8sClient}=require(a21_0x1ee0f1(0x134)),{getCloudProviderObject}=require(a21_0x1ee0f1(0x15a));exports['command']=a21_0x1ee0f1(0x17a),exports[a21_0x1ee0f1(0x170)]=a21_0x1ee0f1(0x169),exports[a21_0x1ee0f1(0x143)]=function(_0x13e60c){const _0x512d90=a21_0x1ee0f1,_0x42a8ff={};_0x42a8ff['SIrjG']=_0x512d90(0x187),_0x42a8ff[_0x512d90(0x174)]=_0x512d90(0x156),_0x42a8ff[_0x512d90(0x14d)]=_0x512d90(0x14c),_0x42a8ff[_0x512d90(0x14f)]=_0x512d90(0x186),_0x42a8ff['TNPgM']=_0x512d90(0x16f);const _0x2c7e13=_0x42a8ff,_0x473601={};_0x473601[_0x512d90(0x13e)]=_0x2c7e13[_0x512d90(0x133)],_0x473601[_0x512d90(0x188)]=_0x2c7e13[_0x512d90(0x174)];const _0x676d2f={};_0x676d2f['description']=_0x2c7e13[_0x512d90(0x14d)],_0x676d2f[_0x512d90(0x188)]=_0x2c7e13[_0x512d90(0x14f)],_0x676d2f[_0x512d90(0x16a)]=![];const _0x15edce={};return _0x15edce['grid-id']=_0x473601,_0x15edce['skip-tls-cert-verify']=_0x676d2f,_0x13e60c[_0x512d90(0x153)](HELP_HEADER_MESSAGE[_0x512d90(0x140)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x512d90(0x173)](_0x15edce)[_0x512d90(0x16f)](_0x2c7e13['TNPgM'])[_0x512d90(0x13a)];},exports[a21_0x1ee0f1(0x13b)]=async function(_0x5741c1){const _0x3d889a=a21_0x1ee0f1,_0x3bcc49={'rkoAR':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','HKQFy':function(_0x8010e9){return _0x8010e9();},'RtPfn':_0x3d889a(0x135),'YzOEn':function(_0x2bcdb1,_0x118cf4,_0x1544b3,_0x70ba58,_0x5a6f2a,_0x4b7c9f,_0xccfd9f){return _0x2bcdb1(_0x118cf4,_0x1544b3,_0x70ba58,_0x5a6f2a,_0x4b7c9f,_0xccfd9f);},'jsLvG':_0x3d889a(0x13f),'sOEbT':_0x3d889a(0x168),'kSkrw':function(_0x523e0c,_0x3a2c93,_0x199dff,_0x1407f0,_0x3eff9e,_0x4a61cd,_0x2a0f6c){return _0x523e0c(_0x3a2c93,_0x199dff,_0x1407f0,_0x3eff9e,_0x4a61cd,_0x2a0f6c);},'OOmxt':function(_0x303415){return _0x303415();},'XIBjT':_0x3d889a(0x155),'nIzPf':_0x3d889a(0x18a),'WgwpC':_0x3d889a(0x158),'nyNlS':function(_0x4e4533,_0x4e9390,_0x35b94f,_0x41dd4b){return _0x4e4533(_0x4e9390,_0x35b94f,_0x41dd4b);},'OFdqS':function(_0x3a7274,_0x270446,_0x47e3f5){return _0x3a7274(_0x270446,_0x47e3f5);},'BtZgz':function(_0x2eed17,_0x4f5e8b,_0x34e334){return _0x2eed17(_0x4f5e8b,_0x34e334);},'QroHe':_0x3d889a(0x182),'mTkeZ':function(_0x2a3e05,_0x59fce0){return _0x2a3e05===_0x59fce0;},'kLTAf':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','RXtJd':function(_0x339edd,_0x25fb7e,_0x46427f,_0x4c22a7,_0x241d08,_0x53d35f,_0x4af7d2){return _0x339edd(_0x25fb7e,_0x46427f,_0x4c22a7,_0x241d08,_0x53d35f,_0x4af7d2);},'RbQoO':'unauthorised','mSwmj':function(_0x2a61a7,_0x85b92b){return _0x2a61a7===_0x85b92b;},'rCjdh':_0x3d889a(0x14b),'GwitQ':function(_0x7f2187,_0x3d68be,_0x1a0a18,_0x211c83,_0x1528bc,_0x2b7db2,_0x146c12){return _0x7f2187(_0x3d68be,_0x1a0a18,_0x211c83,_0x1528bc,_0x2b7db2,_0x146c12);},'uqICg':_0x3d889a(0x179)};let _0x213b20;try{!_0x5741c1[_0x3d889a(0x184)]&&(logger[_0x3d889a(0x178)](_0x3bcc49[_0x3d889a(0x15f)]),process[_0x3d889a(0x176)](0x1));!fs[_0x3d889a(0x13d)](_0x3bcc49[_0x3d889a(0x183)](getCredentialsPath))&&(logger[_0x3d889a(0x178)](_0x3bcc49[_0x3d889a(0x152)]),await _0x3bcc49[_0x3d889a(0x17b)](sendInstrumentationEvent,_0x5741c1,_0x3bcc49[_0x3d889a(0x15b)],messageTypes[_0x3d889a(0x16c)],_0x3bcc49['sOEbT'],null,_0x5741c1),process[_0x3d889a(0x176)](0x1));logger[_0x3d889a(0x159)]('Stopping\x20grid\x20'+_0x5741c1[_0x3d889a(0x184)]),await _0x3bcc49[_0x3d889a(0x16e)](sendInstrumentationEvent,_0x5741c1,_0x3bcc49[_0x3d889a(0x15b)],messageTypes[_0x3d889a(0x165)],null,null,_0x5741c1);const _0x3111c6=JSON[_0x3d889a(0x18c)](fs[_0x3d889a(0x15c)](_0x3bcc49[_0x3d889a(0x163)](getCredentialsPath)));global_registry['bstackUsername']=_0x3111c6[_0x3d889a(0x13c)]['username'],global_registry[_0x3d889a(0x17c)]=_0x3111c6[_0x3d889a(0x13c)][_0x3d889a(0x142)];const _0x44084f=WS_ENDPOINT[_0x3d889a(0x154)](_0x3bcc49[_0x3d889a(0x181)],_0x3111c6[_0x3d889a(0x13c)]['username'])[_0x3d889a(0x154)](_0x3bcc49[_0x3d889a(0x161)],_0x3111c6[_0x3d889a(0x13c)][_0x3d889a(0x142)]),_0x398af0={};_0x398af0[_0x3d889a(0x149)]=ws,_0x398af0['connectionTimeout']=0x36ee80,_0x213b20=new ReconnectingWebSocket(_0x44084f,[],_0x398af0),logger[_0x3d889a(0x17e)](_0x3bcc49[_0x3d889a(0x138)]),webSocketUtils[_0x3d889a(0x157)](_0x213b20,_0x5741c1[_0x3d889a(0x16d)],_0x5741c1[_0x3d889a(0x142)]);const [_0xaa540d,_0xf27f6d]=await _0x3bcc49['nyNlS'](getGridDetails,_0x3111c6['Browserstack']['username'],_0x3111c6['Browserstack']['password'],_0x5741c1[_0x3d889a(0x184)]);if(_0xf27f6d){const _0x43efea=_0xf27f6d[_0x3d889a(0x159)];global_registry['cloudProvider']=_0x43efea[_0x3d889a(0x189)],global_registry[_0x3d889a(0x14a)]=_0x43efea[_0x3d889a(0x172)],global_registry[_0x3d889a(0x175)]=_0x43efea[_0x3d889a(0x175)];const _0xa5e667=await _0x3bcc49[_0x3d889a(0x16e)](getCloudProviderObject,_0x43efea[_0x3d889a(0x189)],_0x43efea['clusterName'],_0x43efea['name'],_0x213b20,webSocketUtils,_0x5741c1),[_0x464e26,_0x3f529c,_0x2cc383,_0x316583,_0x5b28ee,_0x4b5af7]=await _0x3bcc49[_0x3d889a(0x17f)](createK8sClient,_0xa5e667,_0x5741c1[_0x3d889a(0x171)]);await _0x3bcc49[_0x3d889a(0x14e)](scaleDownHubDeployment,_0x3f529c,_0x43efea[_0x3d889a(0x131)]),logger[_0x3d889a(0x159)](_0x3bcc49['QroHe']),process[_0x3d889a(0x176)](0x0);}_0x3bcc49[_0x3d889a(0x17d)](_0xaa540d[_0x3d889a(0x148)],0x191)&&(logger[_0x3d889a(0x178)](_0x3bcc49[_0x3d889a(0x136)]),await _0x3bcc49[_0x3d889a(0x177)](sendInstrumentationEvent,_0x5741c1,_0x3bcc49['jsLvG'],messageTypes[_0x3d889a(0x16c)],_0x3bcc49[_0x3d889a(0x137)],null,_0x5741c1),process[_0x3d889a(0x176)](0x1)),_0x3bcc49[_0x3d889a(0x130)](_0xaa540d[_0x3d889a(0x148)],0x190)&&(logger[_0x3d889a(0x178)](JSON[_0x3d889a(0x18c)](_0xaa540d[_0x3d889a(0x185)])['message']),await _0x3bcc49['RXtJd'](sendInstrumentationEvent,_0x5741c1,_0x3bcc49['jsLvG'],messageTypes['ERROR'],_0x3bcc49['rCjdh'],null,_0x5741c1),process[_0x3d889a(0x176)](0x1)),logger[_0x3d889a(0x178)](_0x3d889a(0x15e)+JSON['stringify'](_0xaa540d)),await _0x3bcc49[_0x3d889a(0x167)](sendInstrumentationEvent,_0x5741c1,_0x3bcc49[_0x3d889a(0x15b)],messageTypes['ERROR'],_0x3bcc49[_0x3d889a(0x147)],_0xaa540d,_0x5741c1),process[_0x3d889a(0x176)](0x1);}catch(_0x5d9541){const _0x51b89e='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x5d9541+'\x20\x0a'+JSON['stringify'](_0x5d9541[_0x3d889a(0x146)])+'\x20';logger[_0x3d889a(0x178)](_0x51b89e),process[_0x3d889a(0x176)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x748f6=a22_0x37bf;function a22_0x37bf(_0x12d18c,_0x1bd4f5){const _0x35dd4e=a22_0x35dd();return a22_0x37bf=function(_0x37bf24,_0x59f91d){_0x37bf24=_0x37bf24-0xa9;let _0x53cd81=_0x35dd4e[_0x37bf24];return _0x53cd81;},a22_0x37bf(_0x12d18c,_0x1bd4f5);}(function(_0x1a80b4,_0x5f0a7c){const _0x1e17aa=a22_0x37bf,_0xa14ff0=_0x1a80b4();while(!![]){try{const _0x327e99=-parseInt(_0x1e17aa(0xde))/0x1+-parseInt(_0x1e17aa(0xc0))/0x2*(-parseInt(_0x1e17aa(0xb0))/0x3)+-parseInt(_0x1e17aa(0xbc))/0x4+parseInt(_0x1e17aa(0xbf))/0x5*(parseInt(_0x1e17aa(0x112))/0x6)+-parseInt(_0x1e17aa(0xae))/0x7*(parseInt(_0x1e17aa(0xf4))/0x8)+parseInt(_0x1e17aa(0xc2))/0x9+-parseInt(_0x1e17aa(0xdd))/0xa;if(_0x327e99===_0x5f0a7c)break;else _0xa14ff0['push'](_0xa14ff0['shift']());}catch(_0x358a8e){_0xa14ff0['push'](_0xa14ff0['shift']());}}}(a22_0x35dd,0x8e116),require(a22_0x748f6(0x107))[a22_0x748f6(0xd1)]());function a22_0x35dd(){const _0xaade12=['api-devhst.bsstag.com','list','CLI_RUN_STARTED','1903684izsyBm','CLUSTER_HUB_HA_STACK_NAME','gridProfile','397565fWNONs','2248yHzrmr','DEFAULT_GRID_NAME','40023AWZdrJ','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','configure','BrowserStack','HELP_FOOTER_MESSAGE','CLOUD_PROVIDER','grid-preprod.bsstag.com','grid-profile','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','env','init','NULL','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','GCP','config','log','push','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','split','WARNING','BrowserStack-Automate-TurboScale','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','WS_EVENTS','grid-api-preprod.bsstag.com','AZURE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','2839390XNsbnx','245879lwHDxq','Key','toLowerCase','HST_CLUSTER_TAGS','BSTACK-ATS-CLUSTER','LINK_MESSAGE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','DASHBOARD_ENDPOINT','root','BSTACK-ATS-CLUSTER-AUTOSCALER','resourceInfo','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','unknown','INFO','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','api.browserstack.com','Value','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','browserstack:managedBy','browserstack-turboscale-grid','RAW_ARGS_REGEX','api-preprod.bsstag.com','968JpNoMN','stop','preprod','browserstack:service','cliRunStarted','grid-api-devhst.bsstag.com','messageTypes','us-east-1','high-scale-grid-cluster','create','global_registry','CLUSTER','CLI_ARGS_REGEX','ERROR','grid-devhst.bsstag.com','cliRunFinished','pre-check','TURBOSCALE_CUSTOM_TAGS','MessageDescription','dotenv','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gridUrl','CP_CONFIG_FILE','IAM_USER_NAME','grid.browserstack.com','AG_API_URL','aws','prod','gcp','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','66zjWdBD','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','AWS','BROWSERSTACK_ENV','TRIAL_GRID_URL','CLUSTER_AUTOSCALER_STACK_NAME','pre_check','connect','24619VfMaNc','SUCCESS','3027tHfQsc','high-scale-grid','TURBOSCALE_DEPLOYMENT','BS_API_URL','stag','info','CLUSTER_DEP_STACK_NAME','WS_ENDPOINT','HELP_HEADER_MESSAGE'];a22_0x35dd=function(){return _0xaade12;};return a22_0x35dd();}let gridURL=a22_0x748f6(0x10c),bsApiUrl=a22_0x748f6(0xed),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x748f6(0xcb)][a22_0x748f6(0xa9)]||a22_0x748f6(0x10f))[a22_0x748f6(0xe0)]();if(_env==='staging'||_env===a22_0x748f6(0xb4))gridURL=a22_0x748f6(0x102),bsApiUrl=a22_0x748f6(0xb9),agApiUrl=a22_0x748f6(0xf9);else(_env===a22_0x748f6(0xf6)||_env==='pre-prod')&&(gridURL=a22_0x748f6(0xc8),bsApiUrl=a22_0x748f6(0xf3),agApiUrl=a22_0x748f6(0xda));exports[a22_0x748f6(0xe5)]=process['env']['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x748f6(0xb3)]=process[a22_0x748f6(0xcb)][a22_0x748f6(0xb3)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x748f6(0xcb)][a22_0x748f6(0x10d)]||agApiUrl,exports[a22_0x748f6(0xb7)]='wss://'+this['AG_API_URL']+a22_0x748f6(0xca),exports[a22_0x748f6(0x10a)]='credentials',exports[a22_0x748f6(0x10b)]='BrowserStackIAMUser',exports[a22_0x748f6(0xc1)]=a22_0x748f6(0xb1),exports['AWS']=a22_0x748f6(0x10e),exports[a22_0x748f6(0xb6)]=a22_0x748f6(0xe2),exports[a22_0x748f6(0xab)]=a22_0x748f6(0xe7),exports[a22_0x748f6(0xbd)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x748f6(0xb2)]=a22_0x748f6(0xf1),exports[a22_0x748f6(0xdb)]='azure',exports[a22_0x748f6(0xd0)]=a22_0x748f6(0x110),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x748f6(0xdb)],this['GCP']];const a22_0x672e9c={};a22_0x672e9c[a22_0x748f6(0xdf)]=a22_0x748f6(0xf0),a22_0x672e9c['Value']='BrowserStack';const a22_0x3a6821={};a22_0x3a6821[a22_0x748f6(0xdf)]='browserstack:service',a22_0x3a6821[a22_0x748f6(0xee)]=a22_0x748f6(0xd7);const common_hst_tags_list=[a22_0x672e9c,a22_0x3a6821];if(process[a22_0x748f6(0xcb)][a22_0x748f6(0x105)]){const parsedTags=process['env'][a22_0x748f6(0x105)][a22_0x748f6(0xd5)](',');parsedTags['forEach'](_0x55dbe8=>{const _0x11512a=a22_0x748f6,_0x1d4377=_0x55dbe8[_0x11512a(0xd5)](':'),_0x429c9f={};_0x429c9f[_0x11512a(0xdf)]=_0x1d4377[0x0],_0x429c9f[_0x11512a(0xee)]=_0x1d4377[0x1],common_hst_tags_list[_0x11512a(0xd3)](_0x429c9f);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x54f71b={};a22_0x54f71b[a22_0x748f6(0xf0)]=a22_0x748f6(0xc5),a22_0x54f71b[a22_0x748f6(0xf7)]='BrowserStack-Automate-TurboScale',exports[a22_0x748f6(0xe1)]=a22_0x54f71b,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x748f6(0x114)]];const a22_0x2dbce4={};a22_0x2dbce4['LOG']=a22_0x748f6(0xd2),a22_0x2dbce4['RESOURCES']=a22_0x748f6(0xe8),a22_0x2dbce4['GRID_URL']=a22_0x748f6(0x109),a22_0x2dbce4[a22_0x748f6(0xbb)]=a22_0x748f6(0xf8),a22_0x2dbce4['CLI_RUN_FINISHED']=a22_0x748f6(0x103),exports[a22_0x748f6(0xd9)]=a22_0x2dbce4,exports[a22_0x748f6(0xfe)]={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x26084c={};a22_0x26084c[a22_0x748f6(0xe6)]=a22_0x748f6(0xe9)+this[a22_0x748f6(0xe3)],a22_0x26084c[a22_0x748f6(0xcc)]=a22_0x748f6(0x113)+this[a22_0x748f6(0xe3)],a22_0x26084c[a22_0x748f6(0xc4)]=a22_0x748f6(0x108)+this[a22_0x748f6(0xe3)],a22_0x26084c[a22_0x748f6(0xfd)]=a22_0x748f6(0xe4)+this['LINK_MESSAGE'],a22_0x26084c[a22_0x748f6(0xba)]={},a22_0x26084c['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x748f6(0xe3)],a22_0x26084c[a22_0x748f6(0xad)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x748f6(0xe3)],a22_0x26084c['start']=a22_0x748f6(0xec)+this[a22_0x748f6(0xe3)],a22_0x26084c[a22_0x748f6(0xf5)]=a22_0x748f6(0xce)+this[a22_0x748f6(0xe3)],a22_0x26084c[a22_0x748f6(0xac)]=a22_0x748f6(0xd4)+this[a22_0x748f6(0xe3)],a22_0x26084c[a22_0x748f6(0xba)]['root']=a22_0x748f6(0xdc)+this[a22_0x748f6(0xe3)],a22_0x26084c[a22_0x748f6(0xba)]['grid']=a22_0x748f6(0xef)+this[a22_0x748f6(0xe3)],a22_0x26084c[a22_0x748f6(0xba)][a22_0x748f6(0xbe)]=a22_0x748f6(0x111)+this[a22_0x748f6(0xe3)],exports[a22_0x748f6(0xb8)]=a22_0x26084c,exports[a22_0x748f6(0xc6)]=a22_0x748f6(0xcf);const a22_0x2200a1={};a22_0x2200a1[a22_0x748f6(0xaf)]='success',a22_0x2200a1[a22_0x748f6(0x101)]='error',a22_0x2200a1[a22_0x748f6(0xeb)]=a22_0x748f6(0xb5),a22_0x2200a1[a22_0x748f6(0xd6)]='warning',a22_0x2200a1['UNKNOWN']=a22_0x748f6(0xea),a22_0x2200a1[a22_0x748f6(0xcd)]=null,exports[a22_0x748f6(0xfa)]=a22_0x2200a1,exports[a22_0x748f6(0x100)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x748f6(0xf2)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']='[REDACTED]';const a22_0xcf1c1b={};a22_0xcf1c1b[a22_0x748f6(0xc9)]=a22_0x748f6(0xd8);const a22_0x3d7137={};a22_0x3d7137[a22_0x748f6(0x104)]=a22_0xcf1c1b,exports[a22_0x748f6(0x106)]=a22_0x3d7137,exports[a22_0x748f6(0xaa)]=a22_0x748f6(0xc3);const a22_0xfe7295={};a22_0xfe7295[a22_0x748f6(0xff)]=a22_0x748f6(0xfc),a22_0xfe7295[a22_0x748f6(0xc7)]=a22_0x748f6(0x10e),a22_0xfe7295['REGION']=a22_0x748f6(0xfb),exports['DEFAULT_CLUSTER_DETAILS']=a22_0xfe7295;
1
+ const a22_0x23dce3=a22_0x3409;(function(_0x2165f0,_0x29d341){const _0x10ba32=a22_0x3409,_0x463529=_0x2165f0();while(!![]){try{const _0x2fec55=parseInt(_0x10ba32(0x1e9))/0x1*(parseInt(_0x10ba32(0x1e0))/0x2)+parseInt(_0x10ba32(0x1a3))/0x3+-parseInt(_0x10ba32(0x203))/0x4*(-parseInt(_0x10ba32(0x1ca))/0x5)+parseInt(_0x10ba32(0x204))/0x6*(parseInt(_0x10ba32(0x1cc))/0x7)+parseInt(_0x10ba32(0x1fe))/0x8+-parseInt(_0x10ba32(0x209))/0x9*(parseInt(_0x10ba32(0x1f0))/0xa)+-parseInt(_0x10ba32(0x1f1))/0xb;if(_0x2fec55===_0x29d341)break;else _0x463529['push'](_0x463529['shift']());}catch(_0x1e2bcb){_0x463529['push'](_0x463529['shift']());}}}(a22_0x10eb,0x336b6),require(a22_0x23dce3(0x1e4))['config']());let gridURL=a22_0x23dce3(0x1cb),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x23dce3(0x1a4);function a22_0x10eb(){const _0x3931f9=['\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','browserstack-turboscale-grid','BrowserStack-Automate-TurboScale','INFO','start','messageTypes','split','log','CLUSTER','CLUSTER_AUTOSCALER_STACK_NAME','AZURE','info','cliRunStarted','TURBOSCALE_CUSTOM_TAGS','browserstack:service','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','gridUrl','NULL','init','CLI_RUN_FINISHED','error','grid','Key','5YtUrna','grid.browserstack.com','616721PMPAwH','pre-prod','list','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','REDACTED','pre_check','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','LOG','toLowerCase','AWS','browserstack:managedBy','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','GCP','delete','forEach','pre-check','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gcp','DASHBOARD_ENDPOINT','success','7278fFbwzU','api-preprod.bsstag.com','RAW_ARGS_REGEX','CLUSTER_HUB_HA_STACK_NAME','dotenv','CLI_RUN_STARTED','BSTACK-ATS-CLUSTER-AUTOSCALER','connect','CLOUD_PROVIDER','18DpCvwL','push','COMMON_HST_TAGS','high-scale-grid-cluster','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','DEFAULT_CLUSTER_DETAILS','prod','430MeRHlr','4628173MaSeef','LINK_MESSAGE','IAM_USER_NAME','unknown','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','BS_API_URL','grid-api-preprod.bsstag.com','CLI_ARGS_REGEX','stop','staging','WS_EVENTS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','107912tCPASM','BROWSERSTACK_ENV','env','aws','gridProfile','1463296fIDTZE','18KQDLMj','preprod','Value','HELP_FOOTER_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','69444PjGWuh','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','resourceInfo','BrowserStackIAMUser','grid-preprod.bsstag.com','DEFAULT_GRID_NAME','762063ztCAJm','grid-api.browserstack.com','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid-api-devhst.bsstag.com','AG_API_URL','HELP_HEADER_MESSAGE','stag','TRIAL_GRID_URL','credentials','warning','azure','RESOURCES','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','wss://','BrowserStack','high-scale-grid'];a22_0x10eb=function(){return _0x3931f9;};return a22_0x10eb();}const _env=(process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1ff)]||a22_0x23dce3(0x1ef))[a22_0x23dce3(0x1d4)]();if(_env===a22_0x23dce3(0x1fa)||_env===a22_0x23dce3(0x1a9))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x23dce3(0x1a6);else(_env===a22_0x23dce3(0x205)||_env===a22_0x23dce3(0x1cd))&&(gridURL=a22_0x23dce3(0x1a1),bsApiUrl=a22_0x23dce3(0x1e1),agApiUrl=a22_0x23dce3(0x1f7));exports['DASHBOARD_ENDPOINT']=process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1de)]||gridURL,exports[a22_0x23dce3(0x1f6)]=process[a22_0x23dce3(0x200)]['BS_API_URL']||bsApiUrl,exports['AG_API_URL']=process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1a7)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x23dce3(0x1b0)+this['AG_API_URL']+a22_0x23dce3(0x1dc),exports['CP_CONFIG_FILE']=a22_0x23dce3(0x1ab),exports[a22_0x23dce3(0x1f3)]=a22_0x23dce3(0x20c),exports[a22_0x23dce3(0x1a2)]=a22_0x23dce3(0x1b2),exports[a22_0x23dce3(0x1d5)]=a22_0x23dce3(0x201),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x23dce3(0x1bc)]=a22_0x23dce3(0x1e6),exports[a22_0x23dce3(0x1e3)]='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']=a22_0x23dce3(0x1b4),exports[a22_0x23dce3(0x1bd)]=a22_0x23dce3(0x1ad),exports[a22_0x23dce3(0x1d8)]=a22_0x23dce3(0x1dd),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x23dce3(0x1d5)],this[a22_0x23dce3(0x1bd)],this[a22_0x23dce3(0x1d8)]];function a22_0x3409(_0x15433b,_0x311bbd){const _0x10ebfe=a22_0x10eb();return a22_0x3409=function(_0x34093d,_0x3b55b8){_0x34093d=_0x34093d-0x1a1;let _0x2eeed0=_0x10ebfe[_0x34093d];return _0x2eeed0;},a22_0x3409(_0x15433b,_0x311bbd);}const a22_0x38f77b={};a22_0x38f77b[a22_0x23dce3(0x1c9)]=a22_0x23dce3(0x1d6),a22_0x38f77b['Value']=a22_0x23dce3(0x1b1);const a22_0x44b0a1={};a22_0x44b0a1[a22_0x23dce3(0x1c9)]='browserstack:service',a22_0x44b0a1[a22_0x23dce3(0x206)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x38f77b,a22_0x44b0a1];if(process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1c0)]){const parsedTags=process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1c0)][a22_0x23dce3(0x1b9)](',');parsedTags[a22_0x23dce3(0x1da)](_0x31e117=>{const _0x4a42fb=a22_0x23dce3,_0x2b8a55=_0x31e117[_0x4a42fb(0x1b9)](':'),_0x5531d2={};_0x5531d2[_0x4a42fb(0x1c9)]=_0x2b8a55[0x0],_0x5531d2[_0x4a42fb(0x206)]=_0x2b8a55[0x1],common_hst_tags_list[_0x4a42fb(0x1ea)](_0x5531d2);});}exports[a22_0x23dce3(0x1eb)]=common_hst_tags_list;const a22_0x48bc86={};a22_0x48bc86[a22_0x23dce3(0x1d6)]=a22_0x23dce3(0x1b1),a22_0x48bc86[a22_0x23dce3(0x1c1)]=a22_0x23dce3(0x1b5),exports['HST_CLUSTER_TAGS']=a22_0x48bc86,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x23dce3(0x1d5)]];const a22_0x283e18={};a22_0x283e18[a22_0x23dce3(0x1d3)]=a22_0x23dce3(0x1ba),a22_0x283e18[a22_0x23dce3(0x1ae)]=a22_0x23dce3(0x20b),a22_0x283e18['GRID_URL']=a22_0x23dce3(0x1c3),a22_0x283e18[a22_0x23dce3(0x1e5)]=a22_0x23dce3(0x1bf),a22_0x283e18[a22_0x23dce3(0x1c6)]='cliRunFinished',exports[a22_0x23dce3(0x1fb)]=a22_0x283e18,exports['global_registry']={},exports['LINK_MESSAGE']=a22_0x23dce3(0x1fc);const a22_0xd66161={};a22_0xd66161['root']=a22_0x23dce3(0x1d2)+this['LINK_MESSAGE'],a22_0xd66161[a22_0x23dce3(0x1c5)]=a22_0x23dce3(0x1b3)+this['LINK_MESSAGE'],a22_0xd66161['configure']=a22_0x23dce3(0x1ed)+this[a22_0x23dce3(0x1f2)],a22_0xd66161['create']='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1ce)]={},a22_0xd66161[a22_0x23dce3(0x1d9)]=a22_0x23dce3(0x1fd)+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1e7)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a22_0xd66161[a22_0x23dce3(0x1b7)]=a22_0x23dce3(0x1f5)+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1f9)]=a22_0x23dce3(0x20a)+this['LINK_MESSAGE'],a22_0xd66161[a22_0x23dce3(0x1d1)]=a22_0x23dce3(0x1af)+this['LINK_MESSAGE'],a22_0xd66161[a22_0x23dce3(0x1ce)]['root']=a22_0x23dce3(0x1d7)+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1ce)][a22_0x23dce3(0x1c8)]=a22_0x23dce3(0x208)+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1ce)][a22_0x23dce3(0x202)]=a22_0x23dce3(0x1c2)+this[a22_0x23dce3(0x1f2)],exports[a22_0x23dce3(0x1a8)]=a22_0xd66161,exports[a22_0x23dce3(0x207)]=a22_0x23dce3(0x1a5);const a22_0x5eaa2e={};a22_0x5eaa2e['SUCCESS']=a22_0x23dce3(0x1df),a22_0x5eaa2e['ERROR']=a22_0x23dce3(0x1c7),a22_0x5eaa2e[a22_0x23dce3(0x1b6)]=a22_0x23dce3(0x1be),a22_0x5eaa2e['WARNING']=a22_0x23dce3(0x1ac),a22_0x5eaa2e['UNKNOWN']=a22_0x23dce3(0x1f4),a22_0x5eaa2e[a22_0x23dce3(0x1c4)]=null,exports[a22_0x23dce3(0x1b8)]=a22_0x5eaa2e,exports[a22_0x23dce3(0x1f8)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x23dce3(0x1e2)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x23dce3(0x1d0)]='[REDACTED]';const a22_0x506fb7={};a22_0x506fb7['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x104218={};a22_0x104218[a22_0x23dce3(0x1db)]=a22_0x506fb7,exports['MessageDescription']=a22_0x104218,exports[a22_0x23dce3(0x1aa)]=a22_0x23dce3(0x1cf);const a22_0xfa3c71={};a22_0xfa3c71[a22_0x23dce3(0x1bb)]=a22_0x23dce3(0x1ec),a22_0xfa3c71[a22_0x23dce3(0x1e8)]=a22_0x23dce3(0x201),a22_0xfa3c71['REGION']='us-east-1',exports[a22_0x23dce3(0x1ee)]=a22_0xfa3c71;
@@ -1 +1 @@
1
- const a23_0xd7d33d=a23_0x4feb;(function(_0x2b762c,_0x4df095){const _0x180be5=a23_0x4feb,_0x1ceb44=_0x2b762c();while(!![]){try{const _0x48a839=-parseInt(_0x180be5(0x12b))/0x1+parseInt(_0x180be5(0x11a))/0x2+-parseInt(_0x180be5(0x11b))/0x3+parseInt(_0x180be5(0x132))/0x4*(-parseInt(_0x180be5(0x131))/0x5)+parseInt(_0x180be5(0x12a))/0x6+parseInt(_0x180be5(0x11e))/0x7*(parseInt(_0x180be5(0x11c))/0x8)+parseInt(_0x180be5(0x114))/0x9;if(_0x48a839===_0x4df095)break;else _0x1ceb44['push'](_0x1ceb44['shift']());}catch(_0x25600e){_0x1ceb44['push'](_0x1ceb44['shift']());}}}(a23_0x36f3,0x606a9));function a23_0x4feb(_0x182ca6,_0x4b7f92){const _0x36f31d=a23_0x36f3();return a23_0x4feb=function(_0x4febb1,_0xef88c1){_0x4febb1=_0x4febb1-0x114;let _0xcb10a1=_0x36f31d[_0x4febb1];return _0xcb10a1;},a23_0x4feb(_0x182ca6,_0x4b7f92);}const winston=require(a23_0xd7d33d(0x12f)),fs=require('fs'),path=require(a23_0xd7d33d(0x123)),logDir=a23_0xd7d33d(0x118);!fs[a23_0xd7d33d(0x133)](logDir)&&fs[a23_0xd7d33d(0x115)](logDir);const a23_0x5ae6b0={};a23_0x5ae6b0[a23_0xd7d33d(0x117)]=a23_0xd7d33d(0x12d);const a23_0x58567d={};function a23_0x36f3(){const _0x3e7148=['printf','winston','transports','30yoKvpt','431800gddtBB','existsSync','1464183oHgkxp','mkdirSync','\x20-\x20','format','log','combine','1425846SzgPHO','2335023VrDyeQ','2168RngTyH','usage.log','9058OGzLnZ','Console','level','colorize','message','path','events.log','debug','timestamp','File','console.info','join','4525200TPcDEt','159522wEaVwl','name','YYYY-MM-DD\x20HH:mm:ss'];a23_0x36f3=function(){return _0x3e7148;};return a23_0x36f3();}a23_0x58567d[a23_0xd7d33d(0x120)]=!![];const a23_0x57f08c={};a23_0x57f08c[a23_0xd7d33d(0x12c)]=a23_0xd7d33d(0x128),exports['logger']=new winston['createLogger']({'format':winston[a23_0xd7d33d(0x117)][a23_0xd7d33d(0x119)](winston[a23_0xd7d33d(0x117)][a23_0xd7d33d(0x126)](a23_0x5ae6b0),winston[a23_0xd7d33d(0x117)][a23_0xd7d33d(0x121)](a23_0x58567d),winston['format'][a23_0xd7d33d(0x12e)](_0x3f4d00=>_0x3f4d00[a23_0xd7d33d(0x126)]+a23_0xd7d33d(0x116)+_0x3f4d00[a23_0xd7d33d(0x120)]+':\x20'+_0x3f4d00[a23_0xd7d33d(0x122)])),'transports':[new winston[(a23_0xd7d33d(0x130))][(a23_0xd7d33d(0x11f))](a23_0x57f08c),new winston['transports'][(a23_0xd7d33d(0x127))]({'filename':path[a23_0xd7d33d(0x129)](logDir,a23_0xd7d33d(0x124)),'level':a23_0xd7d33d(0x125)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0xd7d33d(0x127))]({'filename':path[a23_0xd7d33d(0x129)](logDir,a23_0xd7d33d(0x11d)),'level':a23_0xd7d33d(0x125)})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
1
+ function a23_0x1751(){const _0x33701c=['console.info','printf','name','join','4ybKqpA','level','\x20-\x20','createLogger','7dyRCPf','combine','usage.log','360eeIYUQ','colorize','debug','winston','6ZgBTsI','events.log','6843947ynfkzV','YYYY-MM-DD\x20HH:mm:ss','timestamp','message','File','1842558VJhFSO','194179rRCnRB','Console','existsSync','mkdirSync','transports','355445cAVTJj','5501136kZAPXJ','format','166384SEZdLJ','51102744sdqjya','10rLYtQa'];a23_0x1751=function(){return _0x33701c;};return a23_0x1751();}const a23_0x46bf56=a23_0x2a59;(function(_0x56262a,_0x14984c){const _0x4fa837=a23_0x2a59,_0x414511=_0x56262a();while(!![]){try{const _0x41830b=-parseInt(_0x4fa837(0xeb))/0x1*(parseInt(_0x4fa837(0xe3))/0x2)+-parseInt(_0x4fa837(0xea))/0x3+-parseInt(_0x4fa837(0xd8))/0x4*(parseInt(_0x4fa837(0xf0))/0x5)+-parseInt(_0x4fa837(0xf1))/0x6*(parseInt(_0x4fa837(0xdc))/0x7)+parseInt(_0x4fa837(0xd1))/0x8*(-parseInt(_0x4fa837(0xdf))/0x9)+parseInt(_0x4fa837(0xd3))/0xa*(-parseInt(_0x4fa837(0xe5))/0xb)+parseInt(_0x4fa837(0xd2))/0xc;if(_0x41830b===_0x14984c)break;else _0x414511['push'](_0x414511['shift']());}catch(_0x59ff09){_0x414511['push'](_0x414511['shift']());}}}(a23_0x1751,0x97515));const winston=require(a23_0x46bf56(0xe2)),fs=require('fs'),path=require('path'),logDir='log';!fs[a23_0x46bf56(0xed)](logDir)&&fs[a23_0x46bf56(0xee)](logDir);const a23_0x48c6b2={};a23_0x48c6b2[a23_0x46bf56(0xf2)]=a23_0x46bf56(0xe6);const a23_0x3cd318={};a23_0x3cd318['level']=!![];const a23_0x29f381={};a23_0x29f381[a23_0x46bf56(0xd6)]=a23_0x46bf56(0xd4),exports['logger']=new winston[(a23_0x46bf56(0xdb))]({'format':winston[a23_0x46bf56(0xf2)][a23_0x46bf56(0xdd)](winston[a23_0x46bf56(0xf2)][a23_0x46bf56(0xe7)](a23_0x48c6b2),winston[a23_0x46bf56(0xf2)][a23_0x46bf56(0xe0)](a23_0x3cd318),winston[a23_0x46bf56(0xf2)][a23_0x46bf56(0xd5)](_0x58c623=>_0x58c623[a23_0x46bf56(0xe7)]+a23_0x46bf56(0xda)+_0x58c623[a23_0x46bf56(0xd9)]+':\x20'+_0x58c623[a23_0x46bf56(0xe8)])),'transports':[new winston[(a23_0x46bf56(0xef))][(a23_0x46bf56(0xec))](a23_0x29f381),new winston['transports'][(a23_0x46bf56(0xe9))]({'filename':path[a23_0x46bf56(0xd7)](logDir,a23_0x46bf56(0xe4)),'level':a23_0x46bf56(0xe1)})]});function a23_0x2a59(_0x5b6623,_0x493e78){const _0x17515f=a23_0x1751();return a23_0x2a59=function(_0x2a5948,_0x7fc67f){_0x2a5948=_0x2a5948-0xd1;let _0x5e78d0=_0x17515f[_0x2a5948];return _0x5e78d0;},a23_0x2a59(_0x5b6623,_0x493e78);}const winstonFileLoggerParams={'transports':[new winston[(a23_0x46bf56(0xef))][(a23_0x46bf56(0xe9))]({'filename':path[a23_0x46bf56(0xd7)](logDir,a23_0x46bf56(0xde)),'level':'debug'})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x34aa8f=a24_0x23e8;(function(_0x218cf4,_0x49daa4){const _0x382d1b=a24_0x23e8,_0x3f6b47=_0x218cf4();while(!![]){try{const _0x683810=-parseInt(_0x382d1b(0x126))/0x1*(-parseInt(_0x382d1b(0x12c))/0x2)+-parseInt(_0x382d1b(0x11d))/0x3*(parseInt(_0x382d1b(0x11f))/0x4)+-parseInt(_0x382d1b(0x119))/0x5+parseInt(_0x382d1b(0x122))/0x6*(-parseInt(_0x382d1b(0x127))/0x7)+parseInt(_0x382d1b(0x121))/0x8+-parseInt(_0x382d1b(0x12a))/0x9+-parseInt(_0x382d1b(0x120))/0xa*(-parseInt(_0x382d1b(0x118))/0xb);if(_0x683810===_0x49daa4)break;else _0x3f6b47['push'](_0x3f6b47['shift']());}catch(_0x4ed63a){_0x3f6b47['push'](_0x3f6b47['shift']());}}}(a24_0x49dd,0x229ad));function a24_0x23e8(_0x2046ea,_0x50df25){const _0x49ddf0=a24_0x49dd();return a24_0x23e8=function(_0x23e856,_0x584622){_0x23e856=_0x23e856-0x118;let _0x14622b=_0x49ddf0[_0x23e856];return _0x14622b;},a24_0x23e8(_0x2046ea,_0x50df25);}function a24_0x49dd(){const _0x1c6b77=['28iSQpoC','commands','2071454PsTgTM','548065ldnmdx','./config/constants','env','help','546zWHIDD','commandDir','5960sMBZpF','40mEyuRR','319896kksShd','30lUsBUH','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','epilogue','ZioOD','3730nbbsGH','274316scYGGR','usage','NPHZM','1142901nWwQkS','root'];a24_0x49dd=function(){return _0x1c6b77;};return a24_0x49dd();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x34aa8f(0x11a));process[a24_0x34aa8f(0x11b)][a24_0x34aa8f(0x123)]=0x1;function run(_0x5c41be){const _0x35f494=a24_0x34aa8f,_0x1b0d52={};_0x1b0d52[_0x35f494(0x129)]=_0x35f494(0x12d),_0x1b0d52[_0x35f494(0x125)]=_0x35f494(0x11c);const _0x2f4d3e=_0x1b0d52;_0x5c41be[_0x35f494(0x128)](HELP_HEADER_MESSAGE[_0x35f494(0x12b)])[_0x35f494(0x11e)](_0x2f4d3e[_0x35f494(0x129)])['demandCommand']()['help'](_0x2f4d3e['ZioOD'])[_0x35f494(0x124)](HELP_FOOTER_MESSAGE);}module['exports']=run;
2
+ 'use strict';const a24_0x3fd340=a24_0x15b8;(function(_0xbce957,_0x549746){const _0x44ac95=a24_0x15b8,_0x3608ff=_0xbce957();while(!![]){try{const _0x1158e7=parseInt(_0x44ac95(0x208))/0x1+-parseInt(_0x44ac95(0x1f6))/0x2+parseInt(_0x44ac95(0x203))/0x3+-parseInt(_0x44ac95(0x202))/0x4*(-parseInt(_0x44ac95(0x207))/0x5)+-parseInt(_0x44ac95(0x200))/0x6*(parseInt(_0x44ac95(0x1fb))/0x7)+-parseInt(_0x44ac95(0x1ff))/0x8*(parseInt(_0x44ac95(0x1fd))/0x9)+parseInt(_0x44ac95(0x201))/0xa;if(_0x1158e7===_0x549746)break;else _0x3608ff['push'](_0x3608ff['shift']());}catch(_0x2dd8a5){_0x3608ff['push'](_0x3608ff['shift']());}}}(a24_0x10b0,0x71f57));function a24_0x15b8(_0x9dbd4d,_0x2f5f3f){const _0x10b0f1=a24_0x10b0();return a24_0x15b8=function(_0x15b87b,_0x529b6f){_0x15b87b=_0x15b87b-0x1f4;let _0x5556cf=_0x10b0f1[_0x15b87b];return _0x5556cf;},a24_0x15b8(_0x9dbd4d,_0x2f5f3f);}function a24_0x10b0(){const _0x4d7a43=['10716740JRDMIC','4SbdZPf','1401888Krmruv','help','exports','zAKlY','712735KzSDIx','111760kXAwNA','env','hKkGI','790304FpegLQ','commandDir','commands','./config/constants','demandCommand','196ZohJHy','root','522xEwiVV','epilogue','7448mIkvyi','188004yNubVx'];a24_0x10b0=function(){return _0x4d7a43;};return a24_0x10b0();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3fd340(0x1f9));process[a24_0x3fd340(0x1f4)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0xdf1cac){const _0x4367a3=a24_0x3fd340,_0x1eb217={};_0x1eb217[_0x4367a3(0x1f5)]=_0x4367a3(0x1f8),_0x1eb217[_0x4367a3(0x206)]=_0x4367a3(0x204);const _0x48f56d=_0x1eb217;_0xdf1cac['usage'](HELP_HEADER_MESSAGE[_0x4367a3(0x1fc)])[_0x4367a3(0x1f7)](_0x48f56d[_0x4367a3(0x1f5)])[_0x4367a3(0x1fa)]()['help'](_0x48f56d['zAKlY'])[_0x4367a3(0x1fe)](HELP_FOOTER_MESSAGE);}module[a24_0x3fd340(0x205)]=run;